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:
Jonathan Rico 2023-01-25 08:15:30 +01:00 committed by Stephanos Ioannidis
parent 3f0487b725
commit 7b48d85dfe

View 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 */