| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*
- * Copyright (c) 2020 Oticon A/S
- * Copyright (c) 2021 Codecoup
- *
- * 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
- /* Implement the following ARM intrinsics as no-op:
- * - ARM Data Synchronization Barrier
- * - ARM Data Memory Synchronization Barrier
- * - ARM Instruction Synchronization Barrier
- * - ARM No Operation
- */
- #ifndef __DMB
- #define __DMB()
- #endif
- #ifndef __DSB
- #define __DSB()
- #endif
- #ifndef __ISB
- #define __ISB()
- #endif
- #ifndef __NOP
- #define __NOP()
- #endif
- void NVIC_SystemReset(void);
- void __disable_irq(void);
- void __enable_irq(void);
- uint32_t __get_PRIMASK(void);
- #ifdef __cplusplus
- }
- #endif
- #endif /* BOARDS_POSIX_NRF52_BSIM_CMSIS_H */
|