Page 1 of 1

SMALL_TEST in FreeRTOSConfig.h

Posted: Tue Jun 19, 2018 7:42 am
by maxzen
Looking at FreeRTOSConfig.h, I see:

Code: Select all

/* This has impact on speed of search for highest priority */
#ifdef SMALL_TEST
#define configMAX_PRIORITIES			( 7 )
#else
#define configMAX_PRIORITIES			( 25 )
#endif
How can I define/undefine SMALL_TEST?

Re: SMALL_TEST in FreeRTOSConfig.h

Posted: Tue Jun 19, 2018 8:47 am
by ESP_Sprite
We'd advise not to mess in the freertos config as some other components are dependent on certain things set to certain values. With that being said: Is there a reason you need to change this?

Re: SMALL_TEST in FreeRTOSConfig.h

Posted: Tue Jun 19, 2018 2:19 pm
by maxzen
Usually I use freertos with cmsis-rtos interface, so I use 7 priorities because cmsis-rtos has such number, but I use only two of them: watchdog has the higher pri and all the other tasks have the same pri

I agree with the comment: too much priorities can be inefficient, so I would like to have the lowest number, but this depends on SMALL_TEST

Re: SMALL_TEST in FreeRTOSConfig.h

Posted: Tue Jun 19, 2018 4:54 pm
by WiFive