|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
NVIC driver implementation (API in nvic.h). More...
Go to the source code of this file.
Functions | |
| static DriverStatus_e | nvicValidateIrq (IRQn_e irqn) |
| Accept only a real device interrupt. | |
| static void | nvicCompilerBarrier (void) |
| Compiler barrier: stops stores being reordered across the ISER write (as CMSIS __NVIC_EnableIRQ() does). | |
| static void | nvicSyncBarrier (void) |
| DSB then ISB on the target (a compiler barrier on the host), so a disabled interrupt cannot be taken after nvicDisableIrq() returns. | |
| static uint32_t | nvicIrqWord (IRQn_e irqn) |
| Word index into ISER/ICER/ISPR/ICPR for a validated IRQn. | |
| static uint32_t | nvicIrqBit (IRQn_e irqn) |
| Bit mask within that word for a validated IRQn. | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicEnableIrq (NvicRegisters_t *nvic, IRQn_e irqn) |
| Enable a device interrupt. | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicDisableIrq (NvicRegisters_t *nvic, IRQn_e irqn) |
| Disable a device interrupt. | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicSetPending (NvicRegisters_t *nvic, IRQn_e irqn) |
| Make a device interrupt pending (ISPR). | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicClearPending (NvicRegisters_t *nvic, IRQn_e irqn) |
| Clear a device interrupt's pending state (ICPR). | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicSetPriority (NvicRegisters_t *nvic, IRQn_e irqn, uint32_t priority) |
| Set a device interrupt's priority. | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicGetPriority (const NvicRegisters_t *nvic, IRQn_e irqn, uint32_t *priority) |
| Read a device interrupt's priority, as nvicSetPriority() takes it. | |
| DRIVER_MUST_CHECK DriverStatus_e | nvicSetSystemHandlerPriority (ScbRegisters_t *scb, IRQn_e irqn, uint32_t priority) |
| Set a configurable system handler's priority (SCB SHPR1-3). | |