STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
pwr.h
Go to the documentation of this file.
1
26#ifndef PWR_H
27#define PWR_H
28
29#include "driver_status.h"
30#include "pwr_reg.h"
31
32#include <stdint.h>
33
38
52
62
78
80
81#endif /* PWR_H */
The status every fallible driver function returns.
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
DRIVER_MUST_CHECK DriverStatus_e pwrEnableOverdrive(PwrRegisters_t *pwr)
Enable over-drive, to run above the scale's normal maximum.
Definition pwr.c:63
DRIVER_MUST_CHECK DriverStatus_e pwrWaitVoltageScaleReady(const PwrRegisters_t *pwr)
Wait until the regulator reaches the selected scale (CSR.VOSRDY).
Definition pwr.c:58
DRIVER_MUST_CHECK DriverStatus_e pwrSetVoltageScale(PwrRegisters_t *pwr, uint32_t vos)
Select the regulator voltage scale for the coming PLL frequency.
Definition pwr.c:42
PWR registers: regulator voltage scaling and over-drive (RM0390 section 5.4).
PWR register block.
Definition pwr_reg.h:23