AnsweredAssumed Answered

FreeRTOSConfig.h in In the Kenetis SDK 2.0 examples

Question asked by David Findlay on Nov 3, 2016
Latest reply on Nov 7, 2016 by David Findlay

I hope this is the right place to post this. I am looking at the Kenetis SDK demo project for FreeRTOS using the SPI

 

FreeRTOSConfig.h includes these defines

 

/* The lowest interrupt priority that can be used in a call to a "set priority"
function. */

#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0xf
/* The highest interrupt priority that can be used by any interrupt service
routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
PRIORITY THAN THIS! (higher priorities are lower numeric values. */

#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5

 

Yet the code sets the interrupt priority to 2 for my processors SPI interrupt.

 

#if (__CORTEX_M >= 0x03)
#define SPI_NVIC_PRIO 6
#else
#define SPI_NVIC_PRIO 2
#endif

 

This seems to be incorrect according to everything I read. But I am hesitant to change my code from your example. Can you explain this?

 

Thanks

Outcomes