mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 10:09:25 -04:00
Generalize FIFO to specify FIFO size as 2^K.
Configure baseband queue to be larger (4K) than application queue (2K).
This commit is contained in:
parent
4126f1ab1f
commit
52e8093618
3 changed files with 32 additions and 38 deletions
|
@ -32,8 +32,8 @@ struct TouchADCFrame {
|
|||
|
||||
/* NOTE: These structures must be located in the same location in both M4 and M0 binaries */
|
||||
struct SharedMemory {
|
||||
MessageQueue baseband_queue;
|
||||
MessageQueue application_queue;
|
||||
MessageQueue<12> baseband_queue;
|
||||
MessageQueue<11> application_queue;
|
||||
|
||||
// TODO: M0 should directly configure and control DMA channel that is
|
||||
// acquiring ADC samples.
|
||||
|
@ -44,8 +44,8 @@ extern SharedMemory& shared_memory;
|
|||
|
||||
#if defined(LPC43XX_M0)
|
||||
inline void init_message_queues() {
|
||||
new (&shared_memory.baseband_queue) MessageQueue();
|
||||
new (&shared_memory.application_queue) MessageQueue();
|
||||
new (&shared_memory.baseband_queue) MessageQueue<12>();
|
||||
new (&shared_memory.application_queue) MessageQueue<11>();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue