STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
Loading...
Searching...
No Matches
syscfg_reg.h
Go to the documentation of this file.
1
9
#ifndef SYSCFG_REG_H
10
#define SYSCFG_REG_H
11
12
#include <stdint.h>
13
18
19
#define SYSCFG_BASE (0x40013800UL)
20
22
typedef
struct
SyscfgRegisters_t
23
{
24
volatile
uint32_t
MEMRMP
;
25
volatile
uint32_t
PMC
;
26
volatile
uint32_t
EXTICR
[4];
27
volatile
uint32_t
RESERVED0
[2];
28
volatile
uint32_t
CMPCR
;
29
}
SyscfgRegisters_t
;
30
31
#define SYSCFG ((SyscfgRegisters_t *)SYSCFG_BASE)
32
38
#define SYSCFG_EXTICR_PA (0x0U)
39
#define SYSCFG_EXTICR_PB (0x1U)
40
#define SYSCFG_EXTICR_PC (0x2U)
41
#define SYSCFG_EXTICR_PD (0x3U)
42
#define SYSCFG_EXTICR_PE (0x4U)
43
#define SYSCFG_EXTICR_PF (0x5U)
44
#define SYSCFG_EXTICR_PG (0x6U)
45
#define SYSCFG_EXTICR_PH (0x7U)
47
50
#define SYSCFG_CMPCR_CMP_PD_Pos (0U)
52
#define SYSCFG_CMPCR_CMP_PD ((uint32_t)1U << SYSCFG_CMPCR_CMP_PD_Pos)
53
#define SYSCFG_CMPCR_READY_Pos (8U)
55
#define SYSCFG_CMPCR_READY ((uint32_t)1U << SYSCFG_CMPCR_READY_Pos)
57
59
60
#endif
/* SYSCFG_REG_H */
SyscfgRegisters_t
SYSCFG register block.
Definition
syscfg_reg.h:23
SyscfgRegisters_t::EXTICR
volatile uint32_t EXTICR[4]
0x08-0x14: EXTI line routing, 4 lines per register
Definition
syscfg_reg.h:26
SyscfgRegisters_t::RESERVED0
volatile uint32_t RESERVED0[2]
0x18-0x1C: gap in the memory map
Definition
syscfg_reg.h:27
SyscfgRegisters_t::CMPCR
volatile uint32_t CMPCR
0x20: compensation cell control
Definition
syscfg_reg.h:28
SyscfgRegisters_t::PMC
volatile uint32_t PMC
0x04: peripheral mode configuration
Definition
syscfg_reg.h:25
SyscfgRegisters_t::MEMRMP
volatile uint32_t MEMRMP
0x00: memory remap
Definition
syscfg_reg.h:24
soc
stm32f446
inc
syscfg_reg.h
Generated by
1.18.0