mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Correct interrupt priority assignment.
This commit is contained in:
parent
276356d9b5
commit
0528691833
|
@ -132,7 +132,9 @@ to exclude the API function. */
|
|||
/* Priority 5, or 160 as only the top three bits are implemented. */
|
||||
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )
|
||||
|
||||
|
||||
/* Priorities passed to NVIC_SetPriority() do not require shifting as the
|
||||
function does the shifting itself. */
|
||||
#define configEMAC_INTERRUPT_PRIORITY 5
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ extern void ( vEMAC_ISR_Wrapper )( void );
|
|||
|
||||
/* Set the interrupt priority to the max permissible to cause some
|
||||
interrupt nesting. */
|
||||
NVIC_SetPriority( ENET_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
||||
NVIC_SetPriority( ENET_IRQn, configEMAC_INTERRUPT_PRIORITY );
|
||||
|
||||
/* Enable the interrupt. */
|
||||
NVIC_EnableIRQ( ENET_IRQn );
|
||||
|
|
|
@ -132,6 +132,9 @@ to exclude the API function. */
|
|||
/* Priority 5, or 160 as only the top three bits are implemented. */
|
||||
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )
|
||||
|
||||
/* Priorities passed to NVIC_SetPriority() do not require shifting as the
|
||||
function does the shifting itself. */
|
||||
#define configEMAC_INTERRUPT_PRIORITY 5
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ extern void ( vEMAC_ISR_Wrapper )( void );
|
|||
|
||||
/* Set the interrupt priority to the max permissible to cause some
|
||||
interrupt nesting. */
|
||||
NVIC_SetPriority( ENET_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
||||
NVIC_SetPriority( ENET_IRQn, configEMAC_INTERRUPT_PRIORITY );
|
||||
|
||||
/* Enable the interrupt. */
|
||||
NVIC_EnableIRQ( ENET_IRQn );
|
||||
|
|
Loading…
Reference in a new issue