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:
parent
8b3d7f2a43
commit
304c42c39c
2 changed files with 13 additions and 0 deletions
|
@ -67,3 +67,8 @@ uint32_t __get_PRIMASK(void)
|
||||||
{
|
{
|
||||||
return hw_irq_ctrl_get_current_lock();
|
return hw_irq_ctrl_get_current_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __set_PRIMASK(uint32_t primask)
|
||||||
|
{
|
||||||
|
hw_irq_ctrl_change_lock(primask != 0);
|
||||||
|
}
|
||||||
|
|
|
@ -38,6 +38,14 @@ extern "C" {
|
||||||
#define __NOP()
|
#define __NOP()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void __enable_irq(void);
|
||||||
|
|
||||||
|
void __disable_irq(void);
|
||||||
|
|
||||||
|
uint32_t __get_PRIMASK(void);
|
||||||
|
|
||||||
|
void __set_PRIMASK(uint32_t primask);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue