-
Notifications
You must be signed in to change notification settings - Fork 1
/
tm4c123gh6pm_registers.h
210 lines (189 loc) · 12.4 KB
/
tm4c123gh6pm_registers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
#ifndef TM4C123GH6PM_REGISTERS
#define TM4C123GH6PM_REGISTERS
#include "Std_Types.h"
/*****************************************************************************
GPIO registers (PORTA)
*****************************************************************************/
#define GPIO_PORTA_DATA_REG (*((volatile uint32 *)0x400043FC))
#define GPIO_PORTA_DIR_REG (*((volatile uint32 *)0x40004400))
#define GPIO_PORTA_AFSEL_REG (*((volatile uint32 *)0x40004420))
#define GPIO_PORTA_PUR_REG (*((volatile uint32 *)0x40004510))
#define GPIO_PORTA_PDR_REG (*((volatile uint32 *)0x40004514))
#define GPIO_PORTA_DEN_REG (*((volatile uint32 *)0x4000451C))
#define GPIO_PORTA_LOCK_REG (*((volatile uint32 *)0x40004520))
#define GPIO_PORTA_CR_REG (*((volatile uint32 *)0x40004524))
#define GPIO_PORTA_AMSEL_REG (*((volatile uint32 *)0x40004528))
#define GPIO_PORTA_PCTL_REG (*((volatile uint32 *)0x4000452C))
/* PORTA External Interrupts Registers */
#define GPIO_PORTA_IS_REG (*((volatile uint32 *)0x40004404))
#define GPIO_PORTA_IBE_REG (*((volatile uint32 *)0x40004408))
#define GPIO_PORTA_IEV_REG (*((volatile uint32 *)0x4000440C))
#define GPIO_PORTA_IM_REG (*((volatile uint32 *)0x40004410))
#define GPIO_PORTA_RIS_REG (*((volatile uint32 *)0x40004414))
#define GPIO_PORTA_ICR_REG (*((volatile uint32 *)0x4000441C))
/*****************************************************************************
GPIO registers (PORTB)
*****************************************************************************/
#define GPIO_PORTB_DATA_REG (*((volatile uint32 *)0x400053FC))
#define GPIO_PORTB_DIR_REG (*((volatile uint32 *)0x40005400))
#define GPIO_PORTB_AFSEL_REG (*((volatile uint32 *)0x40005420))
#define GPIO_PORTB_PUR_REG (*((volatile uint32 *)0x40005510))
#define GPIO_PORTB_PDR_REG (*((volatile uint32 *)0x40005514))
#define GPIO_PORTB_DEN_REG (*((volatile uint32 *)0x4000551C))
#define GPIO_PORTB_LOCK_REG (*((volatile uint32 *)0x40005520))
#define GPIO_PORTB_CR_REG (*((volatile uint32 *)0x40005524))
#define GPIO_PORTB_AMSEL_REG (*((volatile uint32 *)0x40005528))
#define GPIO_PORTB_PCTL_REG (*((volatile uint32 *)0x4000552C))
/* PORTB External Interrupts Registers */
#define GPIO_PORTB_IS_REG (*((volatile uint32 *)0x40005404))
#define GPIO_PORTB_IBE_REG (*((volatile uint32 *)0x40005408))
#define GPIO_PORTB_IEV_REG (*((volatile uint32 *)0x4000540C))
#define GPIO_PORTB_IM_REG (*((volatile uint32 *)0x40005410))
#define GPIO_PORTB_RIS_REG (*((volatile uint32 *)0x40005414))
#define GPIO_PORTB_ICR_REG (*((volatile uint32 *)0x4000541C))
/*****************************************************************************
GPIO registers (PORTC)
*****************************************************************************/
#define GPIO_PORTC_DATA_REG (*((volatile uint32 *)0x400063FC))
#define GPIO_PORTC_DIR_REG (*((volatile uint32 *)0x40006400))
#define GPIO_PORTC_AFSEL_REG (*((volatile uint32 *)0x40006420))
#define GPIO_PORTC_PUR_REG (*((volatile uint32 *)0x40006510))
#define GPIO_PORTC_PDR_REG (*((volatile uint32 *)0x40006514))
#define GPIO_PORTC_DEN_REG (*((volatile uint32 *)0x4000651C))
#define GPIO_PORTC_LOCK_REG (*((volatile uint32 *)0x40006520))
#define GPIO_PORTC_CR_REG (*((volatile uint32 *)0x40006524))
#define GPIO_PORTC_AMSEL_REG (*((volatile uint32 *)0x40006528))
#define GPIO_PORTC_PCTL_REG (*((volatile uint32 *)0x4000652C))
/* PORTC External Interrupts Registers */
#define GPIO_PORTC_IS_REG (*((volatile uint32 *)0x40006404))
#define GPIO_PORTC_IBE_REG (*((volatile uint32 *)0x40006408))
#define GPIO_PORTC_IEV_REG (*((volatile uint32 *)0x4000640C))
#define GPIO_PORTC_IM_REG (*((volatile uint32 *)0x40006410))
#define GPIO_PORTC_RIS_REG (*((volatile uint32 *)0x40006414))
#define GPIO_PORTC_ICR_REG (*((volatile uint32 *)0x4000641C))
/*****************************************************************************
GPIO registers (PORTD)
*****************************************************************************/
#define GPIO_PORTD_DATA_REG (*((volatile uint32 *)0x400073FC))
#define GPIO_PORTD_DIR_REG (*((volatile uint32 *)0x40007400))
#define GPIO_PORTD_AFSEL_REG (*((volatile uint32 *)0x40007420))
#define GPIO_PORTD_PUR_REG (*((volatile uint32 *)0x40007510))
#define GPIO_PORTD_PDR_REG (*((volatile uint32 *)0x40007514))
#define GPIO_PORTD_DEN_REG (*((volatile uint32 *)0x4000751C))
#define GPIO_PORTD_LOCK_REG (*((volatile uint32 *)0x40007520))
#define GPIO_PORTD_CR_REG (*((volatile uint32 *)0x40007524))
#define GPIO_PORTD_AMSEL_REG (*((volatile uint32 *)0x40007528))
#define GPIO_PORTD_PCTL_REG (*((volatile uint32 *)0x4000752C))
/* PORTD External Interrupts Registers */
#define GPIO_PORTD_IS_REG (*((volatile uint32 *)0x40007404))
#define GPIO_PORTD_IBE_REG (*((volatile uint32 *)0x40007408))
#define GPIO_PORTD_IEV_REG (*((volatile uint32 *)0x4000740C))
#define GPIO_PORTD_IM_REG (*((volatile uint32 *)0x40007410))
#define GPIO_PORTD_RIS_REG (*((volatile uint32 *)0x40007414))
#define GPIO_PORTD_ICR_REG (*((volatile uint32 *)0x4000741C))
/*****************************************************************************
GPIO registers (PORTE)
*****************************************************************************/
#define GPIO_PORTE_DATA_REG (*((volatile uint32 *)0x400243FC))
#define GPIO_PORTE_DIR_REG (*((volatile uint32 *)0x40024400))
#define GPIO_PORTE_AFSEL_REG (*((volatile uint32 *)0x40024420))
#define GPIO_PORTE_PUR_REG (*((volatile uint32 *)0x40024510))
#define GPIO_PORTE_PDR_REG (*((volatile uint32 *)0x40024514))
#define GPIO_PORTE_DEN_REG (*((volatile uint32 *)0x4002451C))
#define GPIO_PORTE_LOCK_REG (*((volatile uint32 *)0x40024520))
#define GPIO_PORTE_CR_REG (*((volatile uint32 *)0x40024524))
#define GPIO_PORTE_AMSEL_REG (*((volatile uint32 *)0x40024528))
#define GPIO_PORTE_PCTL_REG (*((volatile uint32 *)0x4002452C))
/* PORTE External Interrupts Registers */
#define GPIO_PORTE_IS_REG (*((volatile uint32 *)0x40024404))
#define GPIO_PORTE_IBE_REG (*((volatile uint32 *)0x40024408))
#define GPIO_PORTE_IEV_REG (*((volatile uint32 *)0x4002440C))
#define GPIO_PORTE_IM_REG (*((volatile uint32 *)0x40024410))
#define GPIO_PORTE_RIS_REG (*((volatile uint32 *)0x40024414))
#define GPIO_PORTE_ICR_REG (*((volatile uint32 *)0x4002441C))
/*****************************************************************************
GPIO registers (PORTF)
*****************************************************************************/
#define GPIO_PORTF_DATA_REG (*((volatile uint32 *)0x400253FC))
#define GPIO_PORTF_DIR_REG (*((volatile uint32 *)0x40025400))
#define GPIO_PORTF_AFSEL_REG (*((volatile uint32 *)0x40025420))
#define GPIO_PORTF_PUR_REG (*((volatile uint32 *)0x40025510))
#define GPIO_PORTF_PDR_REG (*((volatile uint32 *)0x40025514))
#define GPIO_PORTF_DEN_REG (*((volatile uint32 *)0x4002551C))
#define GPIO_PORTF_LOCK_REG (*((volatile uint32 *)0x40025520))
#define GPIO_PORTF_CR_REG (*((volatile uint32 *)0x40025524))
#define GPIO_PORTF_AMSEL_REG (*((volatile uint32 *)0x40025528))
#define GPIO_PORTF_PCTL_REG (*((volatile uint32 *)0x4002552C))
/* PORTF External Interrupts Registers */
#define GPIO_PORTF_IS_REG (*((volatile uint32 *)0x40025404))
#define GPIO_PORTF_IBE_REG (*((volatile uint32 *)0x40025408))
#define GPIO_PORTF_IEV_REG (*((volatile uint32 *)0x4002540C))
#define GPIO_PORTF_IM_REG (*((volatile uint32 *)0x40025410))
#define GPIO_PORTF_RIS_REG (*((volatile uint32 *)0x40025414))
#define GPIO_PORTF_ICR_REG (*((volatile uint32 *)0x4002541C))
#define SYSCTL_REGCGC2_REG (*((volatile uint32 *)0x400FE108))
/*****************************************************************************
Systick Timer Registers
*****************************************************************************/
#define SYSTICK_CTRL_REG (*((volatile uint32 *)0xE000E010))
#define SYSTICK_RELOAD_REG (*((volatile uint32 *)0xE000E014))
#define SYSTICK_CURRENT_REG (*((volatile uint32 *)0xE000E018))
/*****************************************************************************
PLL Registers
*****************************************************************************/
#define SYSCTL_RIS_REG (*((volatile uint32 *)0x400FE050))
#define SYSCTL_RCC_REG (*((volatile uint32 *)0x400FE060))
#define SYSCTL_RCC2_REG (*((volatile uint32 *)0x400FE070))
/*****************************************************************************
NVIC Registers
*****************************************************************************/
#define NVIC_PRI0_REG (*((volatile uint32 *)0xE000E400))
#define NVIC_PRI1_REG (*((volatile uint32 *)0xE000E404))
#define NVIC_PRI2_REG (*((volatile uint32 *)0xE000E408))
#define NVIC_PRI3_REG (*((volatile uint32 *)0xE000E40C))
#define NVIC_PRI4_REG (*((volatile uint32 *)0xE000E410))
#define NVIC_PRI5_REG (*((volatile uint32 *)0xE000E414))
#define NVIC_PRI6_REG (*((volatile uint32 *)0xE000E418))
#define NVIC_PRI7_REG (*((volatile uint32 *)0xE000E41C))
#define NVIC_PRI8_REG (*((volatile uint32 *)0xE000E420))
#define NVIC_PRI9_REG (*((volatile uint32 *)0xE000E424))
#define NVIC_PRI10_REG (*((volatile uint32 *)0xE000E428))
#define NVIC_PRI11_REG (*((volatile uint32 *)0xE000E42C))
#define NVIC_PRI12_REG (*((volatile uint32 *)0xE000E430))
#define NVIC_PRI13_REG (*((volatile uint32 *)0xE000E434))
#define NVIC_PRI14_REG (*((volatile uint32 *)0xE000E438))
#define NVIC_PRI15_REG (*((volatile uint32 *)0xE000E43C))
#define NVIC_PRI16_REG (*((volatile uint32 *)0xE000E440))
#define NVIC_PRI17_REG (*((volatile uint32 *)0xE000E444))
#define NVIC_PRI18_REG (*((volatile uint32 *)0xE000E448))
#define NVIC_PRI19_REG (*((volatile uint32 *)0xE000E44C))
#define NVIC_PRI20_REG (*((volatile uint32 *)0xE000E450))
#define NVIC_PRI21_REG (*((volatile uint32 *)0xE000E454))
#define NVIC_PRI22_REG (*((volatile uint32 *)0xE000E458))
#define NVIC_PRI23_REG (*((volatile uint32 *)0xE000E45C))
#define NVIC_PRI24_REG (*((volatile uint32 *)0xE000E460))
#define NVIC_PRI25_REG (*((volatile uint32 *)0xE000E464))
#define NVIC_PRI26_REG (*((volatile uint32 *)0xE000E468))
#define NVIC_PRI27_REG (*((volatile uint32 *)0xE000E46C))
#define NVIC_PRI28_REG (*((volatile uint32 *)0xE000E470))
#define NVIC_PRI29_REG (*((volatile uint32 *)0xE000E474))
#define NVIC_PRI30_REG (*((volatile uint32 *)0xE000E478))
#define NVIC_PRI31_REG (*((volatile uint32 *)0xE000E47C))
#define NVIC_PRI32_REG (*((volatile uint32 *)0xE000E480))
#define NVIC_PRI33_REG (*((volatile uint32 *)0xE000E484))
#define NVIC_PRI34_REG (*((volatile uint32 *)0xE000E488))
#define NVIC_EN0_REG (*((volatile uint32 *)0xE000E100))
#define NVIC_EN1_REG (*((volatile uint32 *)0xE000E104))
#define NVIC_EN2_REG (*((volatile uint32 *)0xE000E108))
#define NVIC_EN3_REG (*((volatile uint32 *)0xE000E10C))
#define NVIC_EN4_REG (*((volatile uint32 *)0xE000E110))
#define NVIC_DIS0_REG (*((volatile uint32 *)0xE000E180))
#define NVIC_DIS1_REG (*((volatile uint32 *)0xE000E184))
#define NVIC_DIS2_REG (*((volatile uint32 *)0xE000E188))
#define NVIC_DIS3_REG (*((volatile uint32 *)0xE000E18C))
#define NVIC_DIS4_REG (*((volatile uint32 *)0xE000E190))
#define NVIC_SYSTEM_PRI1_REG (*((volatile uint32 *)0xE000ED18))
#define NVIC_SYSTEM_PRI2_REG (*((volatile uint32 *)0xE000ED1C))
#define NVIC_SYSTEM_PRI3_REG (*((volatile uint32 *)0xE000ED20))
#define NVIC_SYSTEM_SYSHNDCTRL (*((volatile uint32 *)0xE000ED24))
#endif