nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches

◆ EXT_API

#define EXT_API ( ext_api_name,
type,
name )

#include <include/fw_info.h>

Value:
Z_GENERIC_SECTION(.ext_apis) \
const uint8_t _CONCAT(name, _ext_api_counter) = 0xFF; \
BUILD_ASSERT((sizeof(type) % 4) == 0, \
"Size of EXT_API " #type " is not word-aligned"); \
struct __packed _CONCAT(name, _t) \
{ \
struct fw_info_ext_api header; \
type ext_api; \
}; \
Z_GENERIC_SECTION(.firmware_info.1) __attribute__((used)) \
const struct _CONCAT(name, _t) name = { \
.header = {\
.magic = {EXT_API_MAGIC}, \
.ext_api_id = CONFIG_ ## ext_api_name ## _EXT_API_ID, \
.ext_api_flags = CONFIG_ ## ext_api_name ## _EXT_API_FLAGS, \
.ext_api_version = CONFIG_ ## ext_api_name ## _EXT_API_VER, \
.ext_api_len = sizeof(struct __packed _CONCAT(name, _t)), \
}, \
.ext_api
Definition fw_info_bare.h:42