 |
Edge AI Add-on API 2.2.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
6#ifndef _NRF_EDGEAI_PLATFORM_H_
7#define _NRF_EDGEAI_PLATFORM_H_
11#define __NRF_EDGEAI_STATIC_INLINE static inline
14#define __NRF_EDGEAI_WEAK __attribute__((weak))
15#define __NRF_EDGEAI_ALIGN(x) __attribute__((aligned(x)))
16#define __NRF_EDGEAI_ALIGNED __attribute__((aligned))
17#define __NRF_EDGEAI_PACKED __attribute__((__packed__))
18#define __NRF_EDGEAI_STATIC_FORCEINLINE __attribute__((always_inline)) static inline
19#elif defined(__ICCARM__)
20#define __NRF_EDGEAI_WEAK __weak
21#define __NRF_EDGEAI_PACKED __packed
22#define __NRF_EDGEAI_ALIGNED __attribute__((aligned))
23#define __NRF_EDGEAI_ALIGN(x) __attribute__((aligned(x)))
24#define __NRF_EDGEAI_STATIC_FORCEINLINE _Pragma("inline=forced") __NRF_EDGEAI_STATIC_INLINE
25#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
26#define __NRF_EDGEAI_WEAK __attribute__((weak))
27#define __NRF_EDGEAI_ALIGN(x) __attribute__((aligned(x)))
28#define __NRF_EDGEAI_ALIGNED __attribute__((aligned))
29#define __NRF_EDGEAI_PACKED __attribute__((packed))
30#define __NRF_EDGEAI_STATIC_FORCEINLINE __NRF_EDGEAI_STATIC_INLINE
32#define __NRF_EDGEAI_WEAK __attribute__((weak))
33#define __NRF_EDGEAI_ALIGN(x) __attribute__((aligned(x)))
34#define __NRF_EDGEAI_ALIGNED __attribute__((aligned))
35#define __NRF_EDGEAI_PACKED __attribute__((__packed__))
36#define __NRF_EDGEAI_STATIC_FORCEINLINE __NRF_EDGEAI_STATIC_INLINE
39#define NRF_EDGEAI_UNUSED(x) ((void)(x))
40#define NRF_EDGEAI_VOID_VALUE
43#define __UNUSED_ARG NRF_EDGEAI_UNUSED
47#define __VOID_VALUE NRF_EDGEAI_VOID_VALUE