STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
wwdg_reg.h
Go to the documentation of this file.
1
9#ifndef WWDG_REG_H
10#define WWDG_REG_H
11
12#include <stdint.h>
13
18
19#define WWDG_BASE (0x40002C00UL)
20
22typedef struct WwdgRegisters_t
23{
24 volatile uint32_t CR;
25 volatile uint32_t CFR;
26 volatile uint32_t SR;
28
29#define WWDG ((WwdgRegisters_t *)WWDG_BASE)
30
33#define WWDG_CR_T_Pos (0U)
35#define WWDG_CR_T_Msk ((uint32_t)0x7FU << WWDG_CR_T_Pos)
36#define WWDG_CR_WDGA_Pos (7U)
38#define WWDG_CR_WDGA ((uint32_t)1U << WWDG_CR_WDGA_Pos)
40
43#define WWDG_CFR_W_Pos (0U)
45#define WWDG_CFR_W_Msk ((uint32_t)0x7FU << WWDG_CFR_W_Pos)
46#define WWDG_CFR_WDGTB_Pos (7U)
48#define WWDG_CFR_WDGTB_Msk ((uint32_t)0x3U << WWDG_CFR_WDGTB_Pos)
49#define WWDG_CFR_WDGTB_DIV1 (0x0U)
50#define WWDG_CFR_WDGTB_DIV2 (0x1U)
51#define WWDG_CFR_WDGTB_DIV4 (0x2U)
52#define WWDG_CFR_WDGTB_DIV8 (0x3U)
53#define WWDG_CFR_EWI_Pos (9U)
55#define WWDG_CFR_EWI ((uint32_t)1U << WWDG_CFR_EWI_Pos)
57
60#define WWDG_SR_EWIF_Pos (0U)
62#define WWDG_SR_EWIF ((uint32_t)1U << WWDG_SR_EWIF_Pos)
64
66
67#endif /* WWDG_REG_H */
WWDG register block.
Definition wwdg_reg.h:23
volatile uint32_t CR
0x00: control
Definition wwdg_reg.h:24
volatile uint32_t CFR
0x04: configuration
Definition wwdg_reg.h:25
volatile uint32_t SR
0x08: status
Definition wwdg_reg.h:26