2020-06-12 13:31:15 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Oticon A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This header defines replacements for inline
|
|
|
|
* ARM Cortex-M CMSIS intrinsics.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_H
|
|
|
|
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-06-12 13:57:39 +02:00
|
|
|
/* Implement the following ARM intrinsics as no-op:
|
|
|
|
* - ARM Data Synchronization Barrier
|
|
|
|
* - ARM Data Memory Synchronization Barrier
|
|
|
|
* - ARM Instruction Synchronization Barrier
|
|
|
|
* - ARM No Operation
|
|
|
|
*/
|
|
|
|
static inline void __DMB(void) {}
|
2020-06-12 13:31:15 +02:00
|
|
|
static inline void __DSB(void) {}
|
2020-06-12 13:57:39 +02:00
|
|
|
static inline void __ISB(void) {}
|
|
|
|
static inline void __NOP(void) {}
|
2020-06-12 13:31:15 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* BOARDS_POSIX_NRF52_BSIM_CMSIS_H */
|