1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * This header defines replacements for CMSIS compiler attributes.
9  */
10 
11 #ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
12 #define BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
13 
14 #include <zephyr/toolchain.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #ifndef __PACKED
21 #define __PACKED __packed
22 #endif
23 
24 #ifndef __PACKED_STRUCT
25 #define __PACKED_STRUCT struct __packed
26 #endif
27 
28 #ifndef __PACKED_UNION
29 #define __PACKED_UNION union __packed
30 #endif
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif /* BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H */
37