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.

CC2340R5-Q1: How do I add a custom event

Part Number: CC2340R5-Q1
Other Parts Discussed in Thread: CC2340R5

Hi

The SDK I am currently using is simplelink_lowpower_f3_sdk_7_40_00_64, and the project is connection_monitor_LP_EM_CC2340R5_freertos_ticlang.

How do I add a custom event to handle when I want to send an event to micro_cm_app.c after the serial port receives data.

I need to start a monitor session after the other board sends the Bluetooth connection parameters.

Best Regards,

Preston

  • Greetings Preston,

    What type of custom event are you willing to add? You can see in the micro_cm_app.c file that there is a struct of type micro_cm_CtrlData_t which is what will hold the address of the message queue. In the MicroCmApp_taskFxn(), you will see that we dequeue messages from the message queue, which are then passed onto the MicroCmApp_processMicroCmAppMsg() function to be processed. Here you can add the handling for the specific custom message that you would like to add.

    Hope this helps,
    Best,
    Achyut Ray