25.1.3.1 atomic_enter_critical
Disable interrupts, enter critical section.
void atomic_enter_critical(
hal_atomic_t volatile * atomic
)
Disables global interrupts. Supports nested critical sections, so that global interrupts are only re-enabled upon leaving the outermost nested critical section.
Parameters
- atomic
-
Type: hal_atomic_t typedef volatile *
The pointer to a variable to store the value of global interrupt enable flag
Returns
Type: void