|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
Register-level drivers. More...
Topics | |
| GPIO | |
| Pin configuration and digital I/O. | |
| RCC | |
| Peripheral clock gating, oscillators, PLL, SYSCLK switch and reset cause. | |
| Flash | |
| Flash wait states, prefetch and caches. | |
| PWR | |
| Regulator voltage scaling and over-drive. | |
| UART | |
| Blocking asynchronous USART/UART transfer. | |
| NVIC | |
| Interrupt enable, pending and priority control. | |
| SysTick | |
| The system tick timer. | |
| EXTI | |
| GPIO-to-line routing, edge triggers, interrupt mask and pending bits. | |
| IWDG | |
| Independent watchdog start, refresh and debug freeze. | |
| WWDG | |
| Window watchdog start, refresh, early wakeup and debug freeze. | |
| Fault | |
| Configurable fault enables and the fault record. | |
Macros | |
| #define | DRIVER_MUST_CHECK __attribute__((warn_unused_result)) |
| Make ignoring a function's result a compile error (with -Werror). | |
Typedefs | |
| typedef enum DriverStatus_e | DriverStatus_e |
| Outcome of a driver call: a category for control flow, not a diagnosis. | |
Enumerations | |
| enum | DriverStatus_e { DRIVER_STATUS_UNINITIALIZED = 0 , DRIVER_STATUS_OK = 1 , DRIVER_STATUS_ERR_INVALID_PARAM = 2 , DRIVER_STATUS_ERR_NOT_INITIALIZED = 3 , DRIVER_STATUS_ERR_TIMEOUT = 4 , DRIVER_STATUS_ERR_HW_FAULT = 5 , DRIVER_STATUS_ERR_BUSY = 6 , DRIVER_STATUS_ERR_UNSUPPORTED = 7 } |
| Outcome of a driver call: a category for control flow, not a diagnosis. More... | |
Register-level drivers.
Each takes its register block as a parameter and returns a DriverStatus_e where it can fail.
| #define DRIVER_MUST_CHECK __attribute__((warn_unused_result)) |
Make ignoring a function's result a compile error (with -Werror).
Definition at line 22 of file driver_status.h.
| typedef enum DriverStatus_e DriverStatus_e |
Outcome of a driver call: a category for control flow, not a diagnosis.
Success is deliberately not 0, so a status variable a code path forgot to assign never reads as success. Add a per-module detail code beside it only when a driver needs one; never add peripheral-specific values here.
| enum DriverStatus_e |
Outcome of a driver call: a category for control flow, not a diagnosis.
Success is deliberately not 0, so a status variable a code path forgot to assign never reads as success. Add a per-module detail code beside it only when a driver needs one; never add peripheral-specific values here.
Definition at line 31 of file driver_status.h.