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.

LAUNCHXL-CC2640R2: Queue with normal malloc and free

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640R2F, SYSBIOS

Hello,

I am using simple_perpheral on cc2640R2f LaunchPad. I am trying to integrate a SDK.

I want to use queue for putting data from the master (then the upper layer dequeue and gets data) and another queue for data coming from the SDK.

I tried to use the queue defined in util.c ( Util_constructQueue, Util_enqueueMsg and Util_dequeueMsg ) as it is using the USE_ICALL and also sets the semaphore that stall the communication.

The SDK ( that i am trying to integrate ) is outside of the ICALL context. So i only want to use a queue that uses malloc() and free().

Is there any sample for that? or the Util_constructQueue is the only queue available in TI RTOS?

Waiting for your kind reply.

Regards

MAbbas 

  • Hello,

    You can find some example RTOS QUEUE code in the SYS/BIOS documentation. E.g., for the SDK 1.40:
    file:///C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/docs/tirtos/sysbios/docs/cdoc/index.html

    Best wishes