Clear Interrupt Flag (CLI) Handling.
More...
Clear Interrupt Flag (CLI) Handling.
Manages nested CLI (Clear Interrupt Flag) calls.
|
| #define | CLI_SCOPE() |
| | Macro to increment CLI depth for the duration of the current scope.
|
| |
|
| static void | cli_push (void) |
| | Increments the CLI depth, disabling interrupts if depth was zero.
|
| |
| static void | cli_pop (void) |
| | Decrements the CLI depth, re-enabling interrupts if depth reaches zero and interrupts were enabled prior to the first cli_push() call.
|
| |
| static void | cli_scope_cleanup (int *_) |
| |
◆ CLI_SCOPE
Value:
static void cli_push(void)
Increments the CLI depth, disabling interrupts if depth was zero.
static void cli_scope_cleanup(int *_)
#define CONCAT(a, b)
Concatenates two tokens.
Macro to increment CLI depth for the duration of the current scope.
Definition at line 56 of file cli.h.
◆ cli_push()
| static void cli_push |
( |
void |
| ) |
|
|
inlinestatic |
Increments the CLI depth, disabling interrupts if depth was zero.
- Warning
- Must have a matching
cli_pop() call to re-enable interrupts when depth reaches zero.
Definition at line 24 of file cli.h.
◆ cli_pop()
| static void cli_pop |
( |
void |
| ) |
|
|
inlinestatic |
Decrements the CLI depth, re-enabling interrupts if depth reaches zero and interrupts were enabled prior to the first cli_push() call.
- Warning
- This function should only be called after a
cli_push() call.
Definition at line 42 of file cli.h.
◆ cli_scope_cleanup()
| static void cli_scope_cleanup |
( |
int * |
_ | ) |
|
|
inlinestatic |
Definition at line 60 of file cli.h.