boards: nrf52_bsim: no-op arm functions as defines
The nrf52 bsim hw models now require some of these to be defined. For this case we cannot implement these as static inline functions as that would redefinitions of the functions. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
parent
fac4a6a4fe
commit
857ed0a380
1 changed files with 15 additions and 4 deletions
|
@ -22,10 +22,21 @@ extern "C" {
|
|||
* - ARM Instruction Synchronization Barrier
|
||||
* - ARM No Operation
|
||||
*/
|
||||
static inline void __DMB(void) {}
|
||||
static inline void __DSB(void) {}
|
||||
static inline void __ISB(void) {}
|
||||
static inline void __NOP(void) {}
|
||||
#ifndef __DMB
|
||||
#define __DMB()
|
||||
#endif
|
||||
|
||||
#ifndef __DSB
|
||||
#define __DSB()
|
||||
#endif
|
||||
|
||||
#ifndef __ISB
|
||||
#define __ISB()
|
||||
#endif
|
||||
|
||||
#ifndef __NOP
|
||||
#define __NOP()
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue