2016-07-29 07:10 AM
We use CubeMX .
We have selected ''FreeRTOS''In the file ''stm32l4xx_hal_conf.h'' ''USE_RTOS'' is set to 0.See the following line:&sharpdefine USE_RTOS 0U It seems strange .the goal was to modify the __HAL_LOCK macro in the file ''stm32l4xx_hal_def.h'', in order to enter critical section , when freertos used.&sharpif (USE_RTOS == 1) /* Reserved for future use */ &sharperror '' USE_RTOS should be 0 in the current HAL release ''&sharpelse... #hal #cubemx #freertos