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:
Rubin Gerritsen 2020-09-20 20:08:30 +02:00 committed by Alberto Escolar
commit 857ed0a380

View file

@ -22,10 +22,21 @@ extern "C" {
* - ARM Instruction Synchronization Barrier * - ARM Instruction Synchronization Barrier
* - ARM No Operation * - ARM No Operation
*/ */
static inline void __DMB(void) {} #ifndef __DMB
static inline void __DSB(void) {} #define __DMB()
static inline void __ISB(void) {} #endif
static inline void __NOP(void) {}
#ifndef __DSB
#define __DSB()
#endif
#ifndef __ISB
#define __ISB()
#endif
#ifndef __NOP
#define __NOP()
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }