|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Interrupt execution levels and the control critical section. More...
Interrupt execution levels and the control critical section.
One execution-level scheme for the whole library. Every platform's vector table maps onto these names (see <mcu>/driver/priorities.hpp in sbl-hardware); application code never writes a numeric priority. How a level becomes a hardware priority, and how masking is done, is each MCU's interrupts driver (contract: <sbl/hw/validation/interrupts_requirements.hpp>).
Levels are ordered most urgent first: a lower number preempts a higher one.
Definition in file interrupts.hpp.
#include <cstdint>Go to the source code of this file.
Classes | |
| class | sbl::system::interrupts::ScopedControlCritical< Interrupts > |
| RAII critical section against the control tick and everything below. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::system |
| The system layer: execution levels, the control critical section, ring buffers, assertions and the fault handler, profiling, and the port contracts. | |
| namespace | sbl::system::interrupts |
| Execution levels and the control critical section. | |
Enumerations | |
| enum class | sbl::system::interrupts::Level : uint8_t { sbl::system::interrupts::Reserved = 0 , sbl::system::interrupts::ShortDeadline = 1 , sbl::system::interrupts::Audio = 2 , sbl::system::interrupts::UsbMidi = 4 , sbl::system::interrupts::Dma = 5 , sbl::system::interrupts::Bus = 6 , sbl::system::interrupts::ControlTick = 8 , sbl::system::interrupts::SoftPwm = 9 , sbl::system::interrupts::Exti = 10 , sbl::system::interrupts::SoftPend = 11 , sbl::system::interrupts::Debug = 12 , sbl::system::interrupts::SysTick = 14 , sbl::system::interrupts::PendSv = 15 } |
| Execution levels, most urgent first. More... | |
Functions | |
| constexpr bool | sbl::system::interrupts::masked_by_ceiling (Level level) |
Variables | |
| constexpr Level | sbl::system::interrupts::CONTROL_CEILING = Level::ControlTick |