WXK
2024-09-18 05e2e954bd127de378a9d1dfbb0ed95d725aad63
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * 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 */