|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
PWR driver implementation (API in pwr.h). More...
#include "pwr.h"Go to the source code of this file.
Macros | |
| #define | PWR_READY_TIMEOUT_ITERATIONS (100000U) |
| Polls allowed for each CSR ready-flag wait (see Poll-count timeouts). | |
Functions | |
| static DriverStatus_e | pwrWaitCsrFlag (const PwrRegisters_t *pwr, uint32_t flag) |
| Poll a CSR flag until it sets or PWR_READY_TIMEOUT_ITERATIONS polls pass. | |
| DRIVER_MUST_CHECK DriverStatus_e | pwrSetVoltageScale (PwrRegisters_t *pwr, uint32_t vos) |
| Select the regulator voltage scale for the coming PLL frequency. | |
| DRIVER_MUST_CHECK DriverStatus_e | pwrWaitVoltageScaleReady (const PwrRegisters_t *pwr) |
| Wait until the regulator reaches the selected scale (CSR.VOSRDY). | |
| DRIVER_MUST_CHECK DriverStatus_e | pwrEnableOverdrive (PwrRegisters_t *pwr) |
| Enable over-drive, to run above the scale's normal maximum. | |