Interrupts namespace. More...
Classes | |
class | critical_section |
Interrupts critical section RAII helper. More... | |
class | lockable |
Interrupts standard locker. More... | |
class | uncritical_section |
Interrupts critical section RAII helper. More... | |
Typedefs | |
using | state_t = port::interrupts::state_t |
Type of variables holding interrupts statu codes. | |
Functions | |
bool | in_handler_mode (void) |
Check if the CPU is in handler mode. | |
class thread::stack * | stack (void) |
Get the interrupts stack. | |
Interrupts namespace.
The os::rtos::interrupts namespace groups interrupts related types and enumerations.
using os::rtos::interrupts::state_t = typedef port::interrupts::state_t |
Type of variables holding interrupts statu codes.
Usually an integer large enough to hold the CPU register where the interrupt priorities are stored.
Used to temporarily store the CPU register during critical sections.
Definition at line 243 of file os-decls.h.
|
inline |
Check if the CPU is in handler mode.
true | Execution is in an exception handler context. |
false | Execution is in a thread context. |
Definition at line 1108 of file os-sched.h.