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:
Alberto Escolar Piedras 2024-10-21 15:45:16 +02:00 committed by Fabio Baltieri
parent c4e6ec89a7
commit 1c7540883f
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);