cancel
Showing results for 
Search instead for 
Did you mean: 

FREERTOS: How to enable osThreadIsSuspended ?

ak52
Associate II

Hello Experts,

I see that in cmsis_oc.c that the function osThreadIsSuspended is disabled. The variable INCLUDE_eTaskGetState is responsible for it.

ak52_0-1747306935740.png

But how do we enable INCLUDE_eTaskGetState to 1 by default?

I see in FreeRTOS.h header than the macro is set to 0.

ak52_1-1747307040166.png

 

Can i just force it to 1 in FreeRTOS.h? or do we need to enable any particular config parameters in the .ioc file ?

Kindly Help!

 

 

1 REPLY 1
Guillaume K
ST Employee

You should define INCLUDE_eTaskGetState in project file FreeRTOSConfig.h

 

Note that cmsis_os.c is CMSIS RTOS V1 and it would be better to use cmsis_os2.c for CMSIS RTOS V2.