STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
Loading...
Searching...
No Matches
pwr_reg.h
Go to the documentation of this file.
1
9
#ifndef PWR_REG_H
10
#define PWR_REG_H
11
12
#include <stdint.h>
13
18
19
#define PWR_BASE (0x40007000UL)
20
22
typedef
struct
PwrRegisters_t
23
{
24
volatile
uint32_t
CR
;
25
volatile
uint32_t
CSR
;
26
}
PwrRegisters_t
;
27
28
#define PWR ((PwrRegisters_t *)PWR_BASE)
29
32
#define PWR_CR_LPDS_Pos (0U)
34
#define PWR_CR_LPDS ((uint32_t)1U << PWR_CR_LPDS_Pos)
35
#define PWR_CR_PDDS_Pos (1U)
37
#define PWR_CR_PDDS ((uint32_t)1U << PWR_CR_PDDS_Pos)
38
#define PWR_CR_CWUF_Pos (2U)
40
#define PWR_CR_CWUF ((uint32_t)1U << PWR_CR_CWUF_Pos)
41
#define PWR_CR_CSBF_Pos (3U)
43
#define PWR_CR_CSBF ((uint32_t)1U << PWR_CR_CSBF_Pos)
44
#define PWR_CR_PVDE_Pos (4U)
46
#define PWR_CR_PVDE ((uint32_t)1U << PWR_CR_PVDE_Pos)
47
#define PWR_CR_PLS_Pos (5U)
49
#define PWR_CR_PLS_Msk ((uint32_t)0x7U << PWR_CR_PLS_Pos)
50
#define PWR_CR_DBP_Pos (8U)
52
#define PWR_CR_DBP ((uint32_t)1U << PWR_CR_DBP_Pos)
53
#define PWR_CR_VOS_Pos (14U)
55
#define PWR_CR_VOS_Msk ((uint32_t)0x3U << PWR_CR_VOS_Pos)
56
#define PWR_CR_ODEN_Pos (16U)
58
#define PWR_CR_ODEN ((uint32_t)1U << PWR_CR_ODEN_Pos)
59
#define PWR_CR_ODSWEN_Pos (17U)
61
#define PWR_CR_ODSWEN ((uint32_t)1U << PWR_CR_ODSWEN_Pos)
63
67
#define PWR_CR_VOS_SCALE3 (0x1U)
68
#define PWR_CR_VOS_SCALE2 (0x2U)
69
#define PWR_CR_VOS_SCALE1 (0x3U)
71
74
#define PWR_CSR_WUF_Pos (0U)
76
#define PWR_CSR_WUF ((uint32_t)1U << PWR_CSR_WUF_Pos)
77
#define PWR_CSR_SBF_Pos (1U)
79
#define PWR_CSR_SBF ((uint32_t)1U << PWR_CSR_SBF_Pos)
80
#define PWR_CSR_PVDO_Pos (2U)
82
#define PWR_CSR_PVDO ((uint32_t)1U << PWR_CSR_PVDO_Pos)
83
#define PWR_CSR_VOSRDY_Pos (14U)
85
#define PWR_CSR_VOSRDY ((uint32_t)1U << PWR_CSR_VOSRDY_Pos)
86
#define PWR_CSR_ODRDY_Pos (16U)
88
#define PWR_CSR_ODRDY ((uint32_t)1U << PWR_CSR_ODRDY_Pos)
89
#define PWR_CSR_ODSWRDY_Pos (17U)
91
#define PWR_CSR_ODSWRDY ((uint32_t)1U << PWR_CSR_ODSWRDY_Pos)
93
95
96
#endif
/* PWR_REG_H */
PwrRegisters_t
PWR register block.
Definition
pwr_reg.h:23
PwrRegisters_t::CSR
volatile uint32_t CSR
0x04: power control/status
Definition
pwr_reg.h:25
PwrRegisters_t::CR
volatile uint32_t CR
0x00: power control
Definition
pwr_reg.h:24
soc
stm32f446
inc
pwr_reg.h
Generated by
1.18.0