Simplify app->baseband message handling.

No need for a FIFO when all messages are intended to be synchronous.
This commit is contained in:
Jared Boone 2016-06-24 14:16:45 -07:00
parent 61325e4696
commit d41c6ee36a
4 changed files with 37 additions and 36 deletions

View file

@ -33,14 +33,12 @@ struct TouchADCFrame {
/* NOTE: These structures must be located in the same location in both M4 and M0 binaries */
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;
const Message* volatile baseband_message;
MessageQueue application_queue;
MessageQueue app_local_queue;