This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSP/BIOS allocator for MSGQ module

Other Parts Discussed in Thread: SYSBIOS

Hi all,

I wish to use the MSGQ module with DSP/BIOS for DSP inter-processor communication.

In DSP/BIOS User’s Guide (SPRU423F) I found this note:

"This document does not discuss how to write an allocator.
Information about designing allocators and transports will be provided in a
future document"

Is there any document that does discuss how to write an allocator?

Is there any example for it?

Thanks,

Eyal

  • Eyal,

    BIOS provides API's for doing that http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_31_03_25/exports/bios_6_31_03_25/docs/cdoc/ti/sysbios/heaps/HeapMem.html


    For example, you can use HeapMem_create() to create your heap, the handle it returns can be given to the MessageQ API so it registers it, so when MessageQ puts/gets buffers knows on which place of memory to do it.

    Regards

    -Jose Lopez