STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
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
51
DRIVER_MUST_CHECK
DriverStatus_e
pwrSetVoltageScale
(
PwrRegisters_t
*pwr, uint32_t vos);
52
61
DRIVER_MUST_CHECK
DriverStatus_e
pwrWaitVoltageScaleReady
(
const
PwrRegisters_t
*pwr);
62
77
DRIVER_MUST_CHECK
DriverStatus_e
pwrEnableOverdrive
(
PwrRegisters_t
*pwr);
78
80
81
#endif
/* PWR_H */
driver_status.h
The status every fallible driver function returns.
DriverStatus_e
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
Definition
driver_status.h:32
DRIVER_MUST_CHECK
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
Definition
driver_status.h:22
pwrEnableOverdrive
DRIVER_MUST_CHECK DriverStatus_e pwrEnableOverdrive(PwrRegisters_t *pwr)
Enable over-drive, to run above the scale's normal maximum.
Definition
pwr.c:63
pwrWaitVoltageScaleReady
DRIVER_MUST_CHECK DriverStatus_e pwrWaitVoltageScaleReady(const PwrRegisters_t *pwr)
Wait until the regulator reaches the selected scale (CSR.VOSRDY).
Definition
pwr.c:58
pwrSetVoltageScale
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_reg.h
PWR registers: regulator voltage scaling and over-drive (RM0390 section 5.4).
PwrRegisters_t
PWR register block.
Definition
pwr_reg.h:23
drivers
inc
pwr.h
Generated by
1.18.0