File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -119,3 +119,7 @@ Patch List:
119
119
* Remove include <cmath> in bsp_tfu.h to avoid build error
120
120
Impacted files:
121
121
zephyr/ra/portable/bsp_tfu.h
122
+
123
+ * Disable the priority setting for IRQ in FSP HAL layer so that priority setting will not be override when Open() API is called.
124
+ Impacted files:
125
+ zephyr/ra/portable/bsp_irq.h
Original file line number Diff line number Diff line change @@ -119,19 +119,8 @@ __STATIC_INLINE void R_BSP_IrqClearPending (IRQn_Type irq)
119
119
**********************************************************************************************************************/
120
120
__STATIC_INLINE void R_BSP_IrqCfg (IRQn_Type const irq , uint32_t priority , void * p_context )
121
121
{
122
- /* The following statement is used in place of NVIC_SetPriority to avoid including a branch for system exceptions
123
- * every time a priority is configured in the NVIC. */
124
- #if (4U == __CORTEX_M )
125
- NVIC -> IPR [((uint32_t ) irq )] = (uint8_t ) ((priority << (8U - __NVIC_PRIO_BITS )) & (uint32_t ) UINT8_MAX );
126
- #elif (33 == __CORTEX_M )
127
- NVIC -> IPR [((uint32_t ) irq )] = (uint8_t ) ((priority << (8U - __NVIC_PRIO_BITS )) & (uint32_t ) UINT8_MAX );
128
- #elif (23 == __CORTEX_M )
129
- NVIC -> IPR [_IP_IDX (irq )] = ((uint32_t ) (NVIC -> IPR [_IP_IDX (irq )] & ~((uint32_t ) UINT8_MAX << _BIT_SHIFT (irq ))) |
130
- (((priority << (8U - __NVIC_PRIO_BITS )) & (uint32_t ) UINT8_MAX ) << _BIT_SHIFT (irq )));
131
- #else
132
- NVIC_SetPriority (irq , priority );
133
- #endif
134
-
122
+ /* Zephyr interrupt priority will have offset, remove priority config in FSP to prevent override seting on Zephyr */
123
+ FSP_PARAMETER_NOT_USED (priority );
135
124
/* Store the context. The context is recovered in the ISR. */
136
125
R_FSP_IsrContextSet (irq , p_context );
137
126
}
You can’t perform that action at this time.
0 commit comments