Skip to content

Commit 6c9cab1

Browse files
committed
fix: set FreeRTOS Kernel priority to 14
Aim is to have Systick priority higher (lower value) than Ethernet Timer Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 382c100 commit 6c9cab1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FreeRTOSConfig_Default.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ PRIORITY THAN THIS! (higher priorities are lower numeric values. */
199199

200200
/* Interrupt priorities used by the kernel port layer itself. These are generic
201201
to all Cortex-M ports, and do not rely on any particular library functions. */
202-
#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
202+
/* Warning in case of Ethernet, this pio (used by systick) should be higher prio (lower value) than ethernet Timer */
203+
#define configKERNEL_INTERRUPT_PRIORITY 14
204+
203205
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
204206
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
205207
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )

0 commit comments

Comments
 (0)