boards: nrf52_bsim: add parts of cmsis_compiler.h
Add a replacement cmsis_compiler.h header for the nrf52_bsim target. Partial version for now, we can more of its contents when needed. Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
This commit is contained in:
parent
3f0487b725
commit
7b48d85dfe
1 changed files with 36 additions and 0 deletions
36
boards/posix/nrf52_bsim/cmsis_compiler.h
Normal file
36
boards/posix/nrf52_bsim/cmsis_compiler.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* This header defines replacements for CMSIS compiler attributes.
|
||||
*/
|
||||
|
||||
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
|
||||
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
|
||||
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __PACKED
|
||||
#define __PACKED __packed
|
||||
#endif
|
||||
|
||||
#ifndef __PACKED_STRUCT
|
||||
#define __PACKED_STRUCT struct __packed
|
||||
#endif
|
||||
|
||||
#ifndef __PACKED_UNION
|
||||
#define __PACKED_UNION union __packed
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H */
|
||||
Loading…
Reference in a new issue