STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
Loading...
Searching...
No Matches
iwdg_reg.h
Go to the documentation of this file.
1
12
#ifndef IWDG_REG_H
13
#define IWDG_REG_H
14
15
#include <stdint.h>
16
21
22
#define IWDG_BASE (0x40003000UL)
23
25
typedef
struct
IwdgRegisters_t
26
{
27
volatile
uint32_t
KR
;
28
volatile
uint32_t
PR
;
29
volatile
uint32_t
RLR
;
30
volatile
const
uint32_t
SR
;
31
}
IwdgRegisters_t
;
32
33
#define IWDG ((IwdgRegisters_t *)IWDG_BASE)
34
37
#define IWDG_KEY_RELOAD (0xAAAAU)
38
#define IWDG_KEY_ENABLE_ACCESS (0x5555U)
39
#define IWDG_KEY_START (0xCCCCU)
41
44
#define IWDG_PR_PR_Pos (0U)
46
#define IWDG_PR_PR_Msk ((uint32_t)0x7U << IWDG_PR_PR_Pos)
48
52
#define IWDG_PR_DIV4 (0x0U)
53
#define IWDG_PR_DIV8 (0x1U)
54
#define IWDG_PR_DIV16 (0x2U)
55
#define IWDG_PR_DIV32 (0x3U)
56
#define IWDG_PR_DIV64 (0x4U)
57
#define IWDG_PR_DIV128 (0x5U)
58
#define IWDG_PR_DIV256 (0x6U)
60
63
#define IWDG_RLR_RL_Pos (0U)
65
#define IWDG_RLR_RL_Msk ((uint32_t)0xFFFU << IWDG_RLR_RL_Pos)
67
70
#define IWDG_SR_PVU_Pos (0U)
72
#define IWDG_SR_PVU ((uint32_t)1U << IWDG_SR_PVU_Pos)
73
#define IWDG_SR_RVU_Pos (1U)
75
#define IWDG_SR_RVU ((uint32_t)1U << IWDG_SR_RVU_Pos)
77
79
80
#endif
/* IWDG_REG_H */
IwdgRegisters_t
IWDG register block.
Definition
iwdg_reg.h:26
IwdgRegisters_t::SR
volatile const uint32_t SR
0x0C: status, <span class="regaccess">ro</span>
Definition
iwdg_reg.h:30
IwdgRegisters_t::KR
volatile uint32_t KR
0x00: key, <span class="regaccess">wo</span>
Definition
iwdg_reg.h:27
IwdgRegisters_t::PR
volatile uint32_t PR
0x04: prescaler
Definition
iwdg_reg.h:28
IwdgRegisters_t::RLR
volatile uint32_t RLR
0x08: reload value
Definition
iwdg_reg.h:29
soc
stm32f446
inc
iwdg_reg.h
Generated by
1.18.0