Loading...
Searching...
No Matches
29#if !defined __cplusplus
30#define static_assert _Static_assert
33#include "../syscfg/syscfg.h"
34#include "nimble/nimble/include/nimble/nimble_npl.h"
36#define OS_ALIGN(__n, __a) ( \
37 (((__n) & ((__a) - 1)) == 0) ? \
39 ((__n) + ((__a) - ((__n) & ((__a) - 1)))) \
41#define OS_ALIGNMENT (BLE_NPL_OS_ALIGNMENT)
43typedef uint32_t os_sr_t;
44#define OS_ENTER_CRITICAL(_sr) (_sr = ble_npl_hw_enter_critical())
45#define OS_EXIT_CRITICAL(_sr) (ble_npl_hw_exit_critical(_sr))
46#define OS_ASSERT_CRITICAL() assert(ble_npl_hw_is_in_critical())
53#include "os_mempool.h"