From f8dbe9a26ccd6c6be89df4a9e6caf12bee0cdbed Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Thu, 11 Jul 2019 14:19:12 +0200 Subject: [PATCH] fix(FreeRTOS): Set maximum priority to 2 Signed-off-by: Rahix <rahix@rahix.de> --- epicardium/FreeRTOSConfig.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/epicardium/FreeRTOSConfig.h b/epicardium/FreeRTOSConfig.h index ba19e15a..51d3fd3b 100644 --- a/epicardium/FreeRTOSConfig.h +++ b/epicardium/FreeRTOSConfig.h @@ -18,13 +18,15 @@ */ #define configMINIMAL_STACK_SIZE ((unsigned short)128) +/* FIXME: Assign proper priorities to all interrupts */ #define configMAX_PRIORITIES 5 /* # of priority bits (configured in hardware) is provided by CMSIS */ #define configPRIO_BITS __NVIC_PRIO_BITS /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */ -#define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned char ) 7 << ( 8 - configPRIO_BITS) ) -/* Priority 5, or 160 as only the top three bits are implemented. */ -#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned char ) 5 << ( 8 - configPRIO_BITS) ) +#define configKERNEL_INTERRUPT_PRIORITY \ + ( ( unsigned char ) 7 << ( 8 - configPRIO_BITS) ) +#define configMAX_SYSCALL_INTERRUPT_PRIORITY \ + ( ( unsigned char ) 2 << ( 8 - configPRIO_BITS) ) /* We want to use preemption to easier integrate components */ #define configUSE_PREEMPTION 1 -- GitLab