nRF WiFi
Loading...
Searching...
No Matches
pack_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
11#ifndef __PACK_DEF__
12#define __PACK_DEF__
13
14#ifdef __ZEPHYR__
15#include <zephyr/toolchain.h>
16#elif __KERNEL__
17#include <linux/compiler_attributes.h>
18#else
19#ifndef __packed
20#define __packed __attribute__((packed))
21#endif
22#ifndef __aligned
23#define __aligned(x) __attribute__((aligned(x)))
24#endif
25#endif
26
27#define __NRF_WIFI_PKD __packed
28#define __NRF_WIFI_ALIGN_4 __aligned(4)
29
30#endif