Complete the code to set the maximum syscall interrupt priority.
#define configMAX_SYSCALL_INTERRUPT_PRIORITY [1]
The value 3 is commonly used to set configMAX_SYSCALL_INTERRUPT_PRIORITY to allow interrupts with priority 3 and below to use FreeRTOS API calls.
Complete the code to define the interrupt priority mask using configMAX_SYSCALL_INTERRUPT_PRIORITY.
#define configKERNEL_INTERRUPT_PRIORITY ([1] << (8 - configPRIO_BITS))
The kernel interrupt priority is usually set to 0 (lowest priority) shifted by the number of priority bits.
Fix the error in setting configMAX_SYSCALL_INTERRUPT_PRIORITY to allow safe API calls from interrupts.
#define configMAX_SYSCALL_INTERRUPT_PRIORITY [1]
Setting configMAX_SYSCALL_INTERRUPT_PRIORITY to 5 allows interrupts with priority 5 and lower to safely call FreeRTOS API functions.
Fill both blanks to correctly define kernel and max syscall interrupt priorities.
#define configKERNEL_INTERRUPT_PRIORITY ([1] << (8 - configPRIO_BITS)) #define configMAX_SYSCALL_INTERRUPT_PRIORITY ([2])
The kernel interrupt priority is set to 0 (lowest priority) shifted by priority bits, and max syscall interrupt priority is set to 3 to allow safe API calls.
Fill all three blanks to define priorities and shift correctly for FreeRTOS interrupt configuration.
#define configKERNEL_INTERRUPT_PRIORITY ([1] << (8 - configPRIO_BITS)) #define configMAX_SYSCALL_INTERRUPT_PRIORITY [2] #define configPRIO_BITS [3]
The kernel interrupt priority is 0 shifted by (8 - 4) bits, max syscall interrupt priority is 3, and configPRIO_BITS is 4 for a typical Cortex-M microcontroller.