SMALL_TEST in FreeRTOSConfig.h

maxzen
Posts: 15
Joined: Fri Jun 08, 2018 11:56 am

SMALL_TEST in FreeRTOSConfig.h

Postby maxzen » Tue Jun 19, 2018 7:42 am

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?

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: SMALL_TEST in FreeRTOSConfig.h

Postby ESP_Sprite » Tue Jun 19, 2018 8:47 am

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?

maxzen
Posts: 15
Joined: Fri Jun 08, 2018 11:56 am

Re: SMALL_TEST in FreeRTOSConfig.h

Postby maxzen » Tue Jun 19, 2018 2:19 pm

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SMALL_TEST in FreeRTOSConfig.h

Postby WiFive » Tue Jun 19, 2018 4:54 pm


Who is online

Users browsing this forum: No registered users and 109 guests