mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-07 18:47:54 +00:00
porting: Use common FreeRTOS macros for entering/exiting critical sect
This commit is contained in:
@@ -281,13 +281,15 @@ ble_npl_hw_set_isr(int irqn, uint32_t addr)
|
||||
static inline uint32_t
|
||||
ble_npl_hw_enter_critical(void)
|
||||
{
|
||||
return npl_freertos_hw_enter_critical();
|
||||
vPortEnterCritical();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
ble_npl_hw_exit_critical(uint32_t ctx)
|
||||
{
|
||||
npl_freertos_hw_exit_critical(ctx);
|
||||
vPortExitCritical();
|
||||
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user