|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Typedefs | |
| using | Handler = void(*)() |
| Interrupt handler function type. | |
Enumerations | |
| enum class | Priority : uint8_t { Highest = 0 , High = 4 , Medium = 8 , Low = 12 , Lowest = 15 } |
| Interrupt priority levels for ARM Cortex-M. More... | |
| enum class | Trigger : uint8_t { Rising , Falling , Change , Low , High } |
| External interrupt trigger types. More... | |
Functions | |
| uint32_t | disable_and_save () |
| Disable ARM interrupts and return previous state. | |
| void | restore (uint32_t saved_state) |
| Restore ARM interrupt state. | |
| uint32_t | get_state () |
| Get current ARM interrupt state. | |
| bool | are_enabled () |
| Check if ARM interrupts are enabled. | |
| using sbl::core::hal::interrupts::Handler = typedef void(*)() |
|
strong |
|
strong |
|
inline |
Check if ARM interrupts are enabled.
Definition at line 73 of file control.hpp.
References __get_PRIMASK.
|
inline |
Disable ARM interrupts and return previous state.
Disables all interrupts (except NMI/Hard Fault) using ARM PRIMASK register. Returns previous PRIMASK state for later restoration.
Definition at line 41 of file control.hpp.
References __disable_irq, and __get_PRIMASK.
|
inline |
Get current ARM interrupt state.
Definition at line 64 of file control.hpp.
References __get_PRIMASK.
|
inline |
Restore ARM interrupt state.
Restores PRIMASK register to specified state. Typically used with value returned from disable_and_save().
| saved_state | Previous PRIMASK value to restore |
Definition at line 55 of file control.hpp.
References __set_PRIMASK.
Referenced by sbl::core::patterns::synchronization::CriticalSection::~CriticalSection().