boards: posix: nrf52_bsim: provide missing CMSIS functions

This commit provides missing CMSIS functions for nRF52 babblesim board.

Signed-off-by: Jedrzej Ciupis <jedrzej.ciupis@nordicsemi.no>
This commit is contained in:
Jedrzej Ciupis 2021-11-19 10:47:36 +01:00 committed by Carles Cufí
parent 8b3d7f2a43
commit 304c42c39c
2 changed files with 13 additions and 0 deletions

View file

@ -67,3 +67,8 @@ uint32_t __get_PRIMASK(void)
{
return hw_irq_ctrl_get_current_lock();
}
void __set_PRIMASK(uint32_t primask)
{
hw_irq_ctrl_change_lock(primask != 0);
}

View file

@ -38,6 +38,14 @@ extern "C" {
#define __NOP()
#endif
void __enable_irq(void);
void __disable_irq(void);
uint32_t __get_PRIMASK(void);
void __set_PRIMASK(uint32_t primask);
#ifdef __cplusplus
}
#endif