Add app-local MessageQueue.

This commit is contained in:
Jared Boone 2016-06-21 10:57:44 -07:00
parent 7023616808
commit dbe735233a
3 changed files with 18 additions and 0 deletions

View file

@ -35,11 +35,14 @@ struct TouchADCFrame {
struct SharedMemory {
static constexpr size_t baseband_queue_k = 11;
static constexpr size_t application_queue_k = 11;
static constexpr size_t app_local_queue_k = 11;
uint8_t baseband_queue_data[1 << baseband_queue_k];
uint8_t application_queue_data[1 << application_queue_k];
uint8_t app_local_queue_data[1 << app_local_queue_k];
MessageQueue baseband_queue;
MessageQueue application_queue;
MessageQueue app_local_queue;
// TODO: M0 should directly configure and control DMA channel that is
// acquiring ADC samples.