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"
#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
#define SPI_NVIC_PRIO 2
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?