Skip to content

Commit 6d463ec

Browse files
cversekfpistm
cversek
authored andcommitted
FIXED BUG configKERNEL_INTERRUPT_PRIORITY must be left shifted according to ref: "Cortex-M Internal Priority Representation" https://www.freertos.org/RTOS-Cortex-M3-M4.html
1 parent 727e46a commit 6d463ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FreeRTOSConfig_Default.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ PRIORITY THAN THIS! (higher priorities are lower numeric values. */
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. */
202202
/* Warning in case of Ethernet, this prio (used by systick) should be higher (lower value) than ethernet Timer */
203-
#define configKERNEL_INTERRUPT_PRIORITY 14
203+
#define configKERNEL_INTERRUPT_PRIORITY ( 14 << (8 - configPRIO_BITS) )
204204

205205
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
206206
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */

0 commit comments

Comments
 (0)