|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
PWR driver: regulator voltage scale and over-drive. More...
Go to the source code of this file.
Functions | |
| 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. | |
PWR driver: regulator voltage scale and over-drive.
Voltage scaling is split around the PLL: CR.VOS can be written only while the PLL is off, and the regulator reaches the new scale only once the PLL is on. So pwrSetVoltageScale() runs before rccPllEnable() and pwrWaitVoltageScaleReady() after it. See rcc.h for the full order and Clock bring-up order.
Maximum HCLK per scale (RM0390 section 3.4.1):
| Scale | Normal | With over-drive |
|---|---|---|
| 3 | 120 MHz | - |
| 2 | 144 MHz | 168 MHz |
| 1 | 168 MHz | 180 MHz |
Definition in file pwr.h.