|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
NVIC driver: device interrupt enable, pending and priority, and system-handler priority. More...
Go to the source code of this file.
Macros | |
| #define | NVIC_PRIORITY_MAX ((1U << NVIC_PRIO_BITS) - 1U) |
| Lowest-urgency priority value: 15, from NVIC_PRIO_BITS implemented bits. | |
Functions | |
| 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). | |
NVIC driver: device interrupt enable, pending and priority, and system-handler priority.
Definition in file nvic.h.