mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-30 05:46:53 +08:00
Alter the default priorities in blocktim.c to prevent asserts being triggered when configMAX_PRIORITIES is set to a low number.
This commit is contained in:
@ -67,11 +67,11 @@
|
|||||||
|
|
||||||
/* Task priorities. Allow these to be overridden. */
|
/* Task priorities. Allow these to be overridden. */
|
||||||
#ifndef bktPRIMARY_PRIORITY
|
#ifndef bktPRIMARY_PRIORITY
|
||||||
#define bktPRIMARY_PRIORITY ( 3 )
|
#define bktPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef bktSECONDARY_PRIORITY
|
#ifndef bktSECONDARY_PRIORITY
|
||||||
#define bktSECONDARY_PRIORITY ( 2 )
|
#define bktSECONDARY_PRIORITY ( configMAX_PRIORITIES - 4 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Task behaviour. */
|
/* Task behaviour. */
|
||||||
|
Reference in New Issue
Block a user