boards nrf_bsim: Add NVIC_GetPendingIRQ() equivalent
Add a substitute for NVIC_GetPendingIRQ() Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
c4e6ec89a7
commit
1c7540883f
|
@ -30,6 +30,11 @@ void NVIC_DisableIRQ(IRQn_Type IRQn)
|
|||
hw_irq_ctrl_disable_irq(CONFIG_NATIVE_SIMULATOR_MCU_N, IRQn);
|
||||
}
|
||||
|
||||
uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn)
|
||||
{
|
||||
return hw_irq_ctrl_is_irq_pending(CONFIG_NATIVE_SIMULATOR_MCU_N, IRQn);
|
||||
}
|
||||
|
||||
void NVIC_EnableIRQ(IRQn_Type IRQn)
|
||||
{
|
||||
hw_irq_ctrl_enable_irq(CONFIG_NATIVE_SIMULATOR_MCU_N, IRQn);
|
||||
|
|
|
@ -30,6 +30,7 @@ void __set_PRIMASK(uint32_t primask);
|
|||
void NVIC_SetPendingIRQ(IRQn_Type IRQn);
|
||||
void NVIC_ClearPendingIRQ(IRQn_Type IRQn);
|
||||
void NVIC_DisableIRQ(IRQn_Type IRQn);
|
||||
uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn);
|
||||
void NVIC_EnableIRQ(IRQn_Type IRQn);
|
||||
void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority);
|
||||
uint32_t NVIC_GetPriority(IRQn_Type IRQn);
|
||||
|
|
Loading…
Reference in New Issue