CRITICAL_SECTION_ENTER

#define CRITICAL_SECTION_ENTER( ) {volatile hal_atomic_t __atomic; atomic_enter_critical(&__atomic);

Helper macro for entering critical sections.

This macro is recommended to be used instead of a direct call hal_enterCritical() function to enter critical sections. No semicolon is required after the macro.