33#define DPL_ENTER_CRITICAL(_sr) (_sr = os_hw_enter_critical())
34#define DPL_EXIT_CRITICAL(_sr) (os_hw_exit_critical(_sr))
35#define DPL_ASSERT_CRITICAL() assert(os_hw_is_in_critical())
os_sr_t dpl_sr_t
CPU status register.
static void dpl_hw_exit_critical(uint32_t ctx)
Restores ISR context.
static uint32_t dpl_hw_enter_critical(void)
Disable ISRs.
static bool dpl_hw_is_in_critical(void)
Check if is in critical section.
Apache Mynewt Copyright 2015-2021 The Apache Software Foundation.
static bool os_hw_is_in_critical(void)
Check if is in critical section.
static void os_hw_exit_critical(uint32_t ctx)
Restores ISR context.
static uint32_t os_hw_enter_critical(void)
Disable ISRs.
uint32_t os_sr_t
CPU status register.