2016-03-28 02:46 PM
I am trying to use the CMSIS interface to FreeRTOS that is generated by the Cube application. Specifically, I am trying to use the osSignalWait, osSignalSet, and osSignalClear functions.
Problem 1: osSignalClear is only defined as a function prototype. There is no code for it. Problem 2: My understanding from reading about osSignalWait is that if there are signal events returned, it will always clear them all automatically. If you want to wait on ANY signal instead of all of the defined signals, you pass 0 in for the signals parameter, e.g. osSignalWait (0, osWaitForever). What I am seeing is that the reported signals are not being cleared. Is this the correct behavior for this function?2016-04-13 04:35 AM
Hi wired,
I think in that case, you should use semaphore to wait for new input. osSignalWait is dedicated to wait spesific signal(s) that should be mentioned as function parameters. To get more details about semaphore use , refer to ''FreeRtos_Semaphore'' example at this path : stm32cubef7\STM32Cube_FW_F7_V1.3.0\Projects\STM32756G_EVAL\Applications\FreeRTOS\FreeRTOS_Semaphore -Hannibal-