2 #define PA_ODR *(unsigned char*)0x5000
3 #define PA_IDR *(unsigned char*)0x5001
4 #define PA_DDR *(unsigned char*)0x5002
5 #define PA_CR1 *(unsigned char*)0x5003
6 #define PA_CR2 *(unsigned char*)0x5004
8 #define PB_ODR *(unsigned char*)0x5005
9 #define PB_IDR *(unsigned char*)0x5006
10 #define PB_DDR *(unsigned char*)0x5007
11 #define PB_CR1 *(unsigned char*)0x5008
12 #define PB_CR2 *(unsigned char*)0x5009
14 #define PC_ODR *(unsigned char*)0x500A
15 #define PC_IDR *(unsigned char*)0x500B
16 #define PC_DDR *(unsigned char*)0x500C
17 #define PC_CR1 *(unsigned char*)0x500D
18 #define PC_CR2 *(unsigned char*)0x500E
20 #define PD_ODR *(unsigned char*)0x500F
21 #define PD_IDR *(unsigned char*)0x5010
22 #define PD_DDR *(unsigned char*)0x5011
23 #define PD_CR1 *(unsigned char*)0x5012
24 #define PD_CR2 *(unsigned char*)0x5013
26 #define PE_ODR *(unsigned char*)0x5014
27 #define PE_IDR *(unsigned char*)0x5015
28 #define PE_DDR *(unsigned char*)0x5016
29 #define PE_CR1 *(unsigned char*)0x5017
30 #define PE_CR2 *(unsigned char*)0x5018
32 #define PF_ODR *(unsigned char*)0x5019
33 #define PF_IDR *(unsigned char*)0x501A
34 #define PF_DDR *(unsigned char*)0x501B
35 #define PF_CR1 *(unsigned char*)0x501C
36 #define PF_CR2 *(unsigned char*)0x501D
39 #define CLK_DIVR *(unsigned char*)0x50C0
40 #define CLK_CRTCR *(unsigned char*)0x50C1
41 #define CLK_ICKR *(unsigned char*)0x50C2
42 #define CLK_PCKENR1 *(unsigned char*)0x50C3
43 #define CLK_PCKENR2 *(unsigned char*)0x50C4
44 #define CLK_CCOR *(unsigned char*)0x50C5
45 #define CLK_ECKR *(unsigned char*)0x50C6
46 #define CLK_SCSR *(unsigned char*)0x50C7
47 #define CLK_SWR *(unsigned char*)0x50C8
48 #define CLK_SWCR *(unsigned char*)0x50C9
49 #define CLK_CSSR *(unsigned char*)0x50CA
50 #define CLK_CBEEPR *(unsigned char*)0x50CB
51 #define CLK_HSICALR *(unsigned char*)0x50CC
52 #define CLK_HSITRIMR *(unsigned char*)0x50CD
53 #define CLK_HSIUNLCKR *(unsigned char*)0x50CE
54 #define CLK_REGCSR *(unsigned char*)0x50CF
58 #define USART1_SR *(unsigned char*)0x5230
59 #define USART1_DR *(unsigned char*)0x5231
60 #define USART1_BRR1 *(unsigned char*)0x5232
61 #define USART1_BRR2 *(unsigned char*)0x5233
62 #define USART1_CR1 *(unsigned char*)0x5234
63 #define USART1_CR2 *(unsigned char*)0x5235
64 #define USART1_CR3 *(unsigned char*)0x5236
65 #define USART1_CR4 *(unsigned char*)0x5237
66 #define USART1_CR5 *(unsigned char*)0x5238
67 #define USART1_GTR *(unsigned char*)0x5239
68 #define USART1_PSCR *(unsigned char*)0x523A
71 #define USART_CR1_R8 (1 << 7)
72 #define USART_CR1_T8 (1 << 6)
73 #define USART_CR1_UARTD (1 << 5)
74 #define USART_CR1_M (1 << 4)
75 #define USART_CR1_WAKE (1 << 3)
76 #define USART_CR1_PCEN (1 << 2)
77 #define USART_CR1_PS (1 << 1)
78 #define USART_CR1_PIEN (1 << 0)
81 #define USART_CR2_TIEN (1 << 7)
82 #define USART_CR2_TCIEN (1 << 6)
83 #define USART_CR2_RIEN (1 << 5)
84 #define USART_CR2_ILIEN (1 << 4)
85 #define USART_CR2_TEN (1 << 3)
86 #define USART_CR2_REN (1 << 2)
87 #define USART_CR2_RWU (1 << 1)
88 #define USART_CR2_SBK (1 << 0)
91 #define USART_CR3_LINEN (1 << 6)
92 #define USART_CR3_STOP2 (1 << 5)
93 #define USART_CR3_STOP1 (1 << 4)
94 #define USART_CR3_CLKEN (1 << 3)
95 #define USART_CR3_CPOL (1 << 2)
96 #define USART_CR3_CPHA (1 << 1)
97 #define USART_CR3_LBCL (1 << 0)
100 #define USART_SR_TXE (1 << 7)
101 #define USART_SR_TC (1 << 6)
102 #define USART_SR_RXNE (1 << 5)
103 #define USART_SR_IDLE (1 << 4)
104 #define USART_SR_OR (1 << 3)
105 #define USART_SR_NF (1 << 2)
106 #define USART_SR_FE (1 << 1)
107 #define USART_SR_PE (1 << 0)