Hello,
I've been unable to find the documentation explaining the "number of message queues" required for the MSGQ_Obj array used in the MSGQ_Config. Looking at the DSP/BIOS documentation for message queue, there seems to be a correlation between a message queue and the number of MSGQ_open functions called.
In the following example, from the TI Audio SoC example, there are 6 message queues defined, however there are only 3 MSGQ_open calls made.
I'd like to know the "formula" required to determine the number of message queues in a DSPLink-enabled application.
Thanks!
http://software-dl.ti.com/dsps/dsps_public_sw/apps_processors/Audio_soc_example/1_00/index_FDS.html
msgqConfig.c:
/* The number of local message queues. */
#define NUMMSGQUEUES 6
/* Array of local message queues */
static MSGQ_Obj msgQueues[NUMMSGQUEUES];
/* MSGQ config required structure */
MSGQ_Config MSGQ_config = {
msgQueues, /* Array of message queues */
transports, /* Array of transports */
NUMMSGQUEUES, /* # of message queues in array */
MAX_PROCESSORS, /* # of transports in array */
0, /* 1st uninitialized msg queue */
MSGQ_INVALIDMSGQ, /* no error handler queue */
POOL_INVALIDID /* allocator id for errors */
};