35#ifndef LM4F_SYSTEMCONTROL_H
36#define LM4F_SYSTEMCONTROL_H
43#define SYSCTL_DID0_OFFSET 0x000
44#define SYSCTL_DID0 MMIO32(SYSCTL_BASE + SYSCTL_DID0_OFFSET)
45#define SYSCTL_DID1_OFFSET 0x004
46#define SYSCTL_DID1 MMIO32(SYSCTL_BASE + SYSCTL_DID1_OFFSET)
47#define SYSCTL_PBORCTL_OFFSET 0x030
48#define SYSCTL_PBORCTL MMIO32(SYSCTL_BASE + SYSCTL_PBORCTL_OFFSET)
49#define SYSCTL_LDORCTL_OFFSET 0x034
50#define SYSCTL_LDORCTL MMIO32(SYSCTL_BASE + SYSCTL_LDORCTL_OFFSET)
51#define SYSCTL_RIS_OFFSET 0x050
52#define SYSCTL_RIS MMIO32(SYSCTL_BASE + SYSCTL_RIS_OFFSET)
53#define SYSCTL_IMC_OFFSET 0x054
54#define SYSCTL_IMC MMIO32(SYSCTL_BASE + SYSCTL_IMC_OFFSET)
55#define SYSCTL_MISC_OFFSET 0x058
56#define SYSCTL_MISC MMIO32(SYSCTL_BASE + SYSCTL_MISC_OFFSET)
57#define SYSCTL_RESC_OFFSET 0x05C
58#define SYSCTL_RESC MMIO32(SYSCTL_BASE + SYSCTL_RESC_OFFSET)
59#define SYSCTL_RCC_OFFSET 0x060
60#define SYSCTL_RCC MMIO32(SYSCTL_BASE + SYSCTL_RCC_OFFSET)
61#define SYSCTL_PLLCFG_OFFSET 0x064
62#define SYSCTL_PLLCFG MMIO32(SYSCTL_BASE + SYSCTL_PLLCFG_OFFSET)
63#define SYSCTL_GPIOHBCTL_OFFSET 0x06C
64#define SYSCTL_GPIOHBCTL MMIO32(SYSCTL_BASE + SYSCTL_GPIOHBCTL_OFFSET)
65#define SYSCTL_RCC2_OFFSET 0x070
66#define SYSCTL_RCC2 MMIO32(SYSCTL_BASE + SYSCTL_RCC2_OFFSET)
67#define SYSCTL_MOSCCTL_OFFSET 0x07C
68#define SYSCTL_MOSCCTL MMIO32(SYSCTL_BASE + SYSCTL_MOSCCTL_OFFSET)
69#define SYSCTL_DSLPCLKCFG_OFFSET 0x144
70#define SYSCTL_DSLPCLKCFG MMIO32(SYSCTL_BASE + SYSCTL_DSLPCLKCFG_OFFSET)
71#define SYSCTL_SYSPROP_OFFSET 0x14C
72#define SYSCTL_SYSPROP MMIO32(SYSCTL_BASE + SYSCTL_SYSPROP_OFFSET)
73#define SYSCTL_PIOSCCAL_OFFSET 0x150
74#define SYSCTL_PIOSCCAL MMIO32(SYSCTL_BASE + SYSCTL_PIOSCCAL_OFFSET)
75#define SYSCTL_PIOSCSTAT_OFFSET 0x154
76#define SYSCTL_PIOSCSTAT MMIO32(SYSCTL_BASE + SYSCTL_PIOSCSTAT_OFFSET)
77#define SYSCTL_PLLFREQ0_OFFSET 0x160
78#define SYSCTL_PLLFREQ0 MMIO32(SYSCTL_BASE + SYSCTL_PLLFREQ0_OFFSET)
79#define SYSCTL_PLLFREQ1_OFFSET 0x164
80#define SYSCTL_PLLFREQ1 MMIO32(SYSCTL_BASE + SYSCTL_PLLFREQ1_OFFSET)
81#define SYSCTL_PLLSTAT_OFFSET 0x168
82#define SYSCTL_PLLSTAT MMIO32(SYSCTL_BASE + SYSCTL_PLLSTAT_OFFSET)
84#define SYSCTL_PPWD_OFFSET 0x300
85#define SYSCTL_PPWD MMIO32(SYSCTL_BASE + SYSCTL_PPWD_OFFSET)
86#define SYSCTL_PPTIMER_OFFSET 0x304
87#define SYSCTL_PPTIMER MMIO32(SYSCTL_BASE + SYSCTL_PPTIMER_OFFSET)
88#define SYSCTL_PPGPIO_OFFSET 0x308
89#define SYSCTL_PPGPIO MMIO32(SYSCTL_BASE + SYSCTL_PPGPIO_OFFSET)
90#define SYSCTL_PPDMA_OFFSET 0x30C
91#define SYSCTL_PPDMA MMIO32(SYSCTL_BASE + SYSCTL_PPDMA_OFFSET)
92#define SYSCTL_PPHIB_OFFSET 0x314
93#define SYSCTL_PPHIB MMIO32(SYSCTL_BASE + SYSCTL_PPHIB_OFFSET)
94#define SYSCTL_PPUART_OFFSET 0x318
95#define SYSCTL_PPUART MMIO32(SYSCTL_BASE + SYSCTL_PPUART_OFFSET)
96#define SYSCTL_PPSSI_OFFSET 0x31C
97#define SYSCTL_PPSSI MMIO32(SYSCTL_BASE + SYSCTL_PPSSI_OFFSET)
98#define SYSCTL_PPI2C_OFFSET 0x320
99#define SYSCTL_PPI2C MMIO32(SYSCTL_BASE + SYSCTL_PPI2C_OFFSET)
100#define SYSCTL_PPUSB_OFFSET 0x328
101#define SYSCTL_PPUSB MMIO32(SYSCTL_BASE + SYSCTL_PPUSB_OFFSET)
102#define SYSCTL_PPCAN_OFFSET 0x334
103#define SYSCTL_PPCAN MMIO32(SYSCTL_BASE + SYSCTL_PPCAN_OFFSET)
104#define SYSCTL_PPADC_OFFSET 0x338
105#define SYSCTL_PPADC MMIO32(SYSCTL_BASE + SYSCTL_PPADC_OFFSET)
106#define SYSCTL_PPACMP_OFFSET 0x33C
107#define SYSCTL_PPACMP MMIO32(SYSCTL_BASE + SYSCTL_PPACMP_OFFSET)
108#define SYSCTL_PPPWM_OFFSET 0x340
109#define SYSCTL_PPPWM MMIO32(SYSCTL_BASE + SYSCTL_PPPWM_OFFSET)
110#define SYSCTL_PPQEI_OFFSET 0x344
111#define SYSCTL_PPQEI MMIO32(SYSCTL_BASE + SYSCTL_PPQEI_OFFSET)
112#define SYSCTL_PPEEPROM_OFFSET 0x358
113#define SYSCTL_PPEEPROM MMIO32(SYSCTL_BASE + SYSCTL_PPEEPROM_OFFSET)
114#define SYSCTL_PPWTIMER_OFFSET 0x35C
115#define SYSCTL_PPWTIMER MMIO32(SYSCTL_BASE + SYSCTL_PPWTIMER_OFFSET)
117#define SYSCTL_SRWD_OFFSET 0x500
118#define SYSCTL_SRWD MMIO32(SYSCTL_BASE + SYSCTL_SRWD_OFFSET)
119#define SYSCTL_SRTIMER_OFFSET 0x504
120#define SYSCTL_SRTIMER MMIO32(SYSCTL_BASE + SYSCTL_SRTIMER_OFFSET)
121#define SYSCTL_SRGPIO_OFFSET 0x508
122#define SYSCTL_SRGPIO MMIO32(SYSCTL_BASE + SYSCTL_SRGPIO_OFFSET)
123#define SYSCTL_SRDMA_OFFSET 0x50C
124#define SYSCTL_SRDMA MMIO32(SYSCTL_BASE + SYSCTL_SRDMA_OFFSET)
125#define SYSCTL_SRHIB_OFFSET 0x514
126#define SYSCTL_SRHIB MMIO32(SYSCTL_BASE + SYSCTL_SRHIB_OFFSET)
127#define SYSCTL_SRUART_OFFSET 0x518
128#define SYSCTL_SRUART MMIO32(SYSCTL_BASE + SYSCTL_SRUART_OFFSET)
129#define SYSCTL_SRSSI_OFFSET 0x51C
130#define SYSCTL_SRSSI MMIO32(SYSCTL_BASE + SYSCTL_SRSSI_OFFSET)
131#define SYSCTL_SRI2C_OFFSET 0x520
132#define SYSCTL_SRI2C MMIO32(SYSCTL_BASE + SYSCTL_SRI2C_OFFSET)
133#define SYSCTL_SRUSB_OFFSET 0x528
134#define SYSCTL_SRUSB MMIO32(SYSCTL_BASE + SYSCTL_SRUSB_OFFSET)
135#define SYSCTL_SRCAN_OFFSET 0x534
136#define SYSCTL_SRCAN MMIO32(SYSCTL_BASE + SYSCTL_SRCAN_OFFSET)
137#define SYSCTL_SRADC_OFFSET 0x538
138#define SYSCTL_SRADC MMIO32(SYSCTL_BASE + SYSCTL_SRADC_OFFSET)
139#define SYSCTL_SRACMP_OFFSET 0x53C
140#define SYSCTL_SRACMP MMIO32(SYSCTL_BASE + SYSCTL_SRACMP_OFFSET)
141#define SYSCTL_SRPWM_OFFSET 0x540
142#define SYSCTL_SRPWM MMIO32(SYSCTL_BASE + SYSCTL_SRPWM_OFFSET)
143#define SYSCTL_SRQEI_OFFSET 0x544
144#define SYSCTL_SRQEI MMIO32(SYSCTL_BASE + SYSCTL_SRQEI_OFFSET)
145#define SYSCTL_SREEPROM_OFFSET 0x558
146#define SYSCTL_SREEPROM MMIO32(SYSCTL_BASE + SYSCTL_SREEPROM_OFFSET)
147#define SYSCTL_SRWTIMER_OFFSET 0x55C
148#define SYSCTL_SRWTIMER MMIO32(SYSCTL_BASE + SYSCTL_SRWTIMER_OFFSET)
150#define SYSCTL_RCGCWD_OFFSET 0x600
151#define SYSCTL_RCGCWD MMIO32(SYSCTL_BASE + SYSCTL_RCGCWD_OFFSET)
152#define SYSCTL_RCGCTIMER_OFFSET 0x604
153#define SYSCTL_RCGCTIMER MMIO32(SYSCTL_BASE + SYSCTL_RCGCTIMER_OFFSET)
154#define SYSCTL_RCGCGPIO_OFFSET 0x608
155#define SYSCTL_RCGCGPIO MMIO32(SYSCTL_BASE + SYSCTL_RCGCGPIO_OFFSET)
156#define SYSCTL_RCGCDMA_OFFSET 0x60C
157#define SYSCTL_RCGCDMA MMIO32(SYSCTL_BASE + SYSCTL_RCGCDMA_OFFSET)
158#define SYSCTL_RCGCHIB_OFFSET 0x614
159#define SYSCTL_RCGCHIB MMIO32(SYSCTL_BASE + SYSCTL_RCGCHIB_OFFSET)
160#define SYSCTL_RCGCUART_OFFSET 0x618
161#define SYSCTL_RCGCUART MMIO32(SYSCTL_BASE + SYSCTL_RCGCUART_OFFSET)
162#define SYSCTL_RCGCSSI_OFFSET 0x61C
163#define SYSCTL_RCGCSSI MMIO32(SYSCTL_BASE + SYSCTL_RCGCSSI_OFFSET)
164#define SYSCTL_RCGCI2C_OFFSET 0x620
165#define SYSCTL_RCGCI2C MMIO32(SYSCTL_BASE + SYSCTL_RCGCI2C_OFFSET)
166#define SYSCTL_RCGCUSB_OFFSET 0x628
167#define SYSCTL_RCGCUSB MMIO32(SYSCTL_BASE + SYSCTL_RCGCUSB_OFFSET)
168#define SYSCTL_RCGCCAN_OFFSET 0x634
169#define SYSCTL_RCGCCAN MMIO32(SYSCTL_BASE + SYSCTL_RCGCCAN_OFFSET)
170#define SYSCTL_RCGCADC_OFFSET 0x638
171#define SYSCTL_RCGCADC MMIO32(SYSCTL_BASE + SYSCTL_RCGCADC_OFFSET)
172#define SYSCTL_RCGCACMP_OFFSET 0x63C
173#define SYSCTL_RCGCACMP MMIO32(SYSCTL_BASE + SYSCTL_RCGCACMP_OFFSET)
174#define SYSCTL_RCGCPWM_OFFSET 0x640
175#define SYSCTL_RCGCPWM MMIO32(SYSCTL_BASE + SYSCTL_RCGCPWM_OFFSET)
176#define SYSCTL_RCGCQEI_OFFSET 0x644
177#define SYSCTL_RCGCQEI MMIO32(SYSCTL_BASE + SYSCTL_RCGCQEI_OFFSET)
178#define SYSCTL_RCGCEEPROM_OFFSET 0x658
179#define SYSCTL_RCGCEEPROM MMIO32(SYSCTL_BASE + SYSCTL_RCGCEEPROM_OFFSET)
180#define SYSCTL_RCGCWTIMER_OFFSET 0x65C
181#define SYSCTL_RCGCWTIMER MMIO32(SYSCTL_BASE + SYSCTL_RCGCWTIMER_OFFSET)
183#define SYSCTL_SCGCWD_OFFSET 0x700
184#define SYSCTL_SCGCWD MMIO32(SYSCTL_BASE + SYSCTL_SCGCWD_OFFSET)
185#define SYSCTL_SCGCTIMER_OFFSET 0x704
186#define SYSCTL_SCGCTIMER MMIO32(SYSCTL_BASE + SYSCTL_SCGCTIMER_OFFSET)
187#define SYSCTL_SCGCGPIO_OFFSET 0x708
188#define SYSCTL_SCGCGPIO MMIO32(SYSCTL_BASE + SYSCTL_SCGCGPIO_OFFSET)
189#define SYSCTL_SCGCDMA_OFFSET 0x70C
190#define SYSCTL_SCGCDMA MMIO32(SYSCTL_BASE + SYSCTL_SCGCDMA_OFFSET)
191#define SYSCTL_SCGCHIB_OFFSET 0x714
192#define SYSCTL_SCGCHIB MMIO32(SYSCTL_BASE + SYSCTL_SCGCHIB_OFFSET)
193#define SYSCTL_SCGCUART_OFFSET 0x718
194#define SYSCTL_SCGCUART MMIO32(SYSCTL_BASE + SYSCTL_SCGCUART_OFFSET)
195#define SYSCTL_SCGCSSI_OFFSET 0x71C
196#define SYSCTL_SCGCSSI MMIO32(SYSCTL_BASE + SYSCTL_SCGCSSI_OFFSET)
197#define SYSCTL_SCGCI2C_OFFSET 0x720
198#define SYSCTL_SCGCI2C MMIO32(SYSCTL_BASE + SYSCTL_SCGCI2C_OFFSET)
199#define SYSCTL_SCGCUSB_OFFSET 0x728
200#define SYSCTL_SCGCUSB MMIO32(SYSCTL_BASE + SYSCTL_SCGCUSB_OFFSET)
201#define SYSCTL_SCGCCAN_OFFSET 0x734
202#define SYSCTL_SCGCCAN MMIO32(SYSCTL_BASE + SYSCTL_SCGCCAN_OFFSET)
203#define SYSCTL_SCGCADC_OFFSET 0x738
204#define SYSCTL_SCGCADC MMIO32(SYSCTL_BASE + SYSCTL_SCGCADC_OFFSET)
205#define SYSCTL_SCGCACMP_OFFSET 0x73C
206#define SYSCTL_SCGCACMP MMIO32(SYSCTL_BASE + SYSCTL_SCGCACMP_OFFSET)
207#define SYSCTL_SCGCPWM_OFFSET 0x740
208#define SYSCTL_SCGCPWM MMIO32(SYSCTL_BASE + SYSCTL_SCGCPWM_OFFSET)
209#define SYSCTL_SCGCQEI_OFFSET 0x744
210#define SYSCTL_SCGCQEI MMIO32(SYSCTL_BASE + SYSCTL_SCGCQEI_OFFSET)
211#define SYSCTL_SCGCEEPROM_OFFSET 0x758
212#define SYSCTL_SCGCEEPROM MMIO32(SYSCTL_BASE + SYSCTL_SCGCEEPROM_OFFSET)
213#define SYSCTL_SCGCWTIMER_OFFSET 0x75C
214#define SYSCTL_SCGCWTIMER MMIO32(SYSCTL_BASE + SYSCTL_SCGCWTIMER_OFFSET)
216#define SYSCTL_DCGCWD_OFFSET 0x800
217#define SYSCTL_DCGCWD MMIO32(SYSCTL_BASE + SYSCTL_DCGCWD_OFFSET)
218#define SYSCTL_DCGCTIMER_OFFSET 0x804
219#define SYSCTL_DCGCTIMER MMIO32(SYSCTL_BASE + SYSCTL_DCGCTIMER_OFFSET)
220#define SYSCTL_DCGCGPIO_OFFSET 0x808
221#define SYSCTL_DCGCGPIO MMIO32(SYSCTL_BASE + SYSCTL_DCGCGPIO_OFFSET)
222#define SYSCTL_DCGCDMA_OFFSET 0x80C
223#define SYSCTL_DCGCDMA MMIO32(SYSCTL_BASE + SYSCTL_DCGCDMA_OFFSET)
224#define SYSCTL_DCGCHIB_OFFSET 0x814
225#define SYSCTL_DCGCHIB MMIO32(SYSCTL_BASE + SYSCTL_DCGCHIB_OFFSET)
226#define SYSCTL_DCGCUART_OFFSET 0x818
227#define SYSCTL_DCGCUART MMIO32(SYSCTL_BASE + SYSCTL_DCGCUART_OFFSET)
228#define SYSCTL_DCGCSSI_OFFSET 0x81C
229#define SYSCTL_DCGCSSI MMIO32(SYSCTL_BASE + SYSCTL_DCGCSSI_OFFSET)
230#define SYSCTL_DCGCI2C_OFFSET 0x820
231#define SYSCTL_DCGCI2C MMIO32(SYSCTL_BASE + SYSCTL_DCGCI2C_OFFSET)
232#define SYSCTL_DCGCUSB_OFFSET 0x828
233#define SYSCTL_DCGCUSB MMIO32(SYSCTL_BASE + SYSCTL_DCGCUSB_OFFSET)
234#define SYSCTL_DCGCCAN_OFFSET 0x834
235#define SYSCTL_DCGCCAN MMIO32(SYSCTL_BASE + SYSCTL_DCGCCAN_OFFSET)
236#define SYSCTL_DCGCADC_OFFSET 0x838
237#define SYSCTL_DCGCADC MMIO32(SYSCTL_BASE + SYSCTL_DCGCADC_OFFSET)
238#define SYSCTL_DCGCACMP_OFFSET 0x83C
239#define SYSCTL_DCGCACMP MMIO32(SYSCTL_BASE + SYSCTL_DCGCACMP_OFFSET)
240#define SYSCTL_DCGCPWM_OFFSET 0x840
241#define SYSCTL_DCGCPWM MMIO32(SYSCTL_BASE + SYSCTL_DCGCPWM_OFFSET)
242#define SYSCTL_DCGCQEI_OFFSET 0x844
243#define SYSCTL_DCGCQEI MMIO32(SYSCTL_BASE + SYSCTL_DCGCQEI_OFFSET)
244#define SYSCTL_DCGCEEPROM_OFFSET 0x858
245#define SYSCTL_DCGCEEPROM MMIO32(SYSCTL_BASE + SYSCTL_DCGCEEPROM_OFFSET)
246#define SYSCTL_DCGCWTIMER_OFFSET 0x85C
247#define SYSCTL_DCGCWTIMER MMIO32(SYSCTL_BASE + SYSCTL_DCGCWTIMER_OFFSET)
249#define SYSCTL_PRWD_OFFSET 0xA00
250#define SYSCTL_PRWD MMIO32(SYSCTL_BASE + SYSCTL_PRWD_OFFSET)
251#define SYSCTL_PRTIMER_OFFSET 0xA04
252#define SYSCTL_PRTIMER MMIO32(SYSCTL_BASE + SYSCTL_PRTIMER_OFFSET)
253#define SYSCTL_PRGPIO_OFFSET 0xA08
254#define SYSCTL_PRGPIO MMIO32(SYSCTL_BASE + SYSCTL_PRGPIO_OFFSET)
255#define SYSCTL_PRDMA_OFFSET 0xA0C
256#define SYSCTL_PRDMA MMIO32(SYSCTL_BASE + SYSCTL_PRDMA_OFFSET)
257#define SYSCTL_PRHIB_OFFSET 0xA14
258#define SYSCTL_PRHIB MMIO32(SYSCTL_BASE + SYSCTL_PRHIB_OFFSET)
259#define SYSCTL_PRUART_OFFSET 0xA18
260#define SYSCTL_PRUART MMIO32(SYSCTL_BASE + SYSCTL_PRUART_OFFSET)
261#define SYSCTL_PRSSI_OFFSET 0xA1C
262#define SYSCTL_PRSSI MMIO32(SYSCTL_BASE + SYSCTL_PRSSI_OFFSET)
263#define SYSCTL_PRI2C_OFFSET 0xA20
264#define SYSCTL_PRI2C MMIO32(SYSCTL_BASE + SYSCTL_PRI2C_OFFSET)
265#define SYSCTL_PRUSB_OFFSET 0xA28
266#define SYSCTL_PRUSB MMIO32(SYSCTL_BASE + SYSCTL_PRUSB_OFFSET)
267#define SYSCTL_PRCAN_OFFSET 0xA34
268#define SYSCTL_PRCAN MMIO32(SYSCTL_BASE + SYSCTL_PRCAN_OFFSET)
269#define SYSCTL_PRADC_OFFSET 0xA38
270#define SYSCTL_PRADC MMIO32(SYSCTL_BASE + SYSCTL_PRADC_OFFSET)
271#define SYSCTL_PRACMP_OFFSET 0xA3C
272#define SYSCTL_PRACMP MMIO32(SYSCTL_BASE + SYSCTL_PRACMP_OFFSET)
273#define SYSCTL_PRPWM_OFFSET 0xA40
274#define SYSCTL_PRPWM MMIO32(SYSCTL_BASE + SYSCTL_PRPWM_OFFSET)
275#define SYSCTL_PRQEI_OFFSET 0xA44
276#define SYSCTL_PRQEI MMIO32(SYSCTL_BASE + SYSCTL_PRQEI_OFFSET)
277#define SYSCTL_PREEPROM_OFFSET 0xA58
278#define SYSCTL_PREEPROM MMIO32(SYSCTL_BASE + SYSCTL_PREEPROM_OFFSET)
279#define SYSCTL_PRWTIMER_OFFSET 0xA5C
280#define SYSCTL_PRWTIMER MMIO32(SYSCTL_BASE + SYSCTL_PRWTIMER_OFFSET)
284#ifdef LM4F_LEGACY_SYSCTL
285#define SYSCTL_DC0_OFFSET 0x008
286#define SYSCTL_DC0 MMIO32(SYSCTL_BASE + SYSCTL_DC0_OFFSET)
287#define SYSCTL_DC1_OFFSET 0x010
288#define SYSCTL_DC1 MMIO32(SYSCTL_BASE + SYSCTL_DC1_OFFSET)
289#define SYSCTL_DC2_OFFSET 0x014
290#define SYSCTL_DC2 MMIO32(SYSCTL_BASE + SYSCTL_DC2_OFFSET)
291#define SYSCTL_DC3_OFFSET 0x018
292#define SYSCTL_DC3 MMIO32(SYSCTL_BASE + SYSCTL_DC3_OFFSET)
293#define SYSCTL_DC4_OFFSET 0x01C
294#define SYSCTL_DC4 MMIO32(SYSCTL_BASE + SYSCTL_DC4_OFFSET)
295#define SYSCTL_DC5_OFFSET 0x020
296#define SYSCTL_DC5 MMIO32(SYSCTL_BASE + SYSCTL_DC5_OFFSET)
297#define SYSCTL_DC6_OFFSET 0x024
298#define SYSCTL_DC6 MMIO32(SYSCTL_BASE + SYSCTL_DC6_OFFSET)
299#define SYSCTL_DC7_OFFSET 0x028
300#define SYSCTL_DC7 MMIO32(SYSCTL_BASE + SYSCTL_DC7_OFFSET)
301#define SYSCTL_DC8_OFFSET 0x02C
302#define SYSCTL_DC8 MMIO32(SYSCTL_BASE + SYSCTL_DC8_OFFSET)
303#define SYSCTL_SRCR0_OFFSET 0x040
304#define SYSCTL_SRCR0 MMIO32(SYSCTL_BASE + SYSCTL_SRCR0_OFFSET)
305#define SYSCTL_SRCR1_OFFSET 0x044
306#define SYSCTL_SRCR1 MMIO32(SYSCTL_BASE + SYSCTL_SRCR1_OFFSET)
307#define SYSCTL_SRCR2_OFFSET 0x048
308#define SYSCTL_SRCR2 MMIO32(SYSCTL_BASE + SYSCTL_SRCR2_OFFSET)
309#define SYSCTL_RCGC0_OFFSET 0x100
310#define SYSCTL_RCGC0 MMIO32(SYSCTL_BASE + SYSCTL_RCGC0_OFFSET)
311#define SYSCTL_RCGC1_OFFSET 0x104
312#define SYSCTL_RCGC1 MMIO32(SYSCTL_BASE + SYSCTL_RCGC1_OFFSET)
313#define SYSCTL_RCGC2_OFFSET 0x108
314#define SYSCTL_RCGC2 MMIO32(SYSCTL_BASE + SYSCTL_RCGC2_OFFSET)
315#define SYSCTL_SCGC0_OFFSET 0x110
316#define SYSCTL_SCGC0 MMIO32(SYSCTL_BASE + SYSCTL_SCGC0_OFFSET)
317#define SYSCTL_SCGC1_OFFSET 0x114
318#define SYSCTL_SCGC1 MMIO32(SYSCTL_BASE + SYSCTL_SCGC1_OFFSET)
319#define SYSCTL_SCGC2_OFFSET 0x118
320#define SYSCTL_SCGC2 MMIO32(SYSCTL_BASE + SYSCTL_SCGC2_OFFSET)
321#define SYSCTL_DCGC0_OFFSET 0x120
322#define SYSCTL_DCGC0 MMIO32(SYSCTL_BASE + SYSCTL_DCGC0_OFFSET)
323#define SYSCTL_DCGC1_OFFSET 0x124
324#define SYSCTL_DCGC1 MMIO32(SYSCTL_BASE + SYSCTL_DCGC1_OFFSET)
325#define SYSCTL_DCGC2_OFFSET 0x128
326#define SYSCTL_DCGC2 MMIO32(SYSCTL_BASE + SYSCTL_DCGC2_OFFSET)
327#define SYSCTL_DC9_OFFSET 0x190
328#define SYSCTL_DC9 MMIO32(SYSCTL_BASE + SYSCTL_DC9_OFFSET)
329#define SYSCTL_NVMSTAT_OFFSET 0x1A0
330#define SYSCTL_NVMSTAT MMIO32(SYSCTL_BASE + SYSCTL_NVMSTAT_OFFSET)
337#define SYSCTL_DID0_VER_MASK (7 << 28)
339#define SYSCTL_DID0_CLASS_MASK (0xFF << 16)
341#define SYSCTL_DID0_MAJOR_MASK (0xFF << 8)
343#define SYSCTL_DID0_MAJOR_MASK (0xFF << 8)
349#define SYSCTL_DID1_VER_MASK (0xF << 28)
351#define SYSCTL_DID1_FAM_MASK (0xF << 24)
353#define SYSCTL_DID1_PARTNO_MASK (0xFF << 16)
355#define SYSCTL_DID1_PINCOUNT_MASK (0x7 << 13)
356#define SYSCTL_DID1_PINCOUNT_28P (0x0 << 13)
357#define SYSCTL_DID1_PINCOUNT_48P (0x1 << 13)
358#define SYSCTL_DID1_PINCOUNT_100P (0x2 << 13)
359#define SYSCTL_DID1_PINCOUNT_64P (0x3 << 13)
360#define SYSCTL_DID1_PINCOUNT_144P (0x4 << 13)
361#define SYSCTL_DID1_PINCOUNT_157P (0x5 << 13)
363#define SYSCTL_DID1_TEMP_MASK (0x7 << 5)
364#define SYSCTL_DID1_TEMP_0_70 (0x0 << 5)
365#define SYSCTL_DID1_TEMP_M40_85 (0x1 << 5)
366#define SYSCTL_DID1_TEMP_M40_105 (0x2 << 5)
368#define SYSCTL_DID1_PKG_MASK (0x3 << 5)
369#define SYSCTL_DID1_PKG_SOIC (0x0 << 5)
370#define SYSCTL_DID1_PKG_LQFP (0x1 << 5)
371#define SYSCTL_DID1_PKG_BGA (0x2 << 5)
373#define SYSCTL_DID1_ROHS (1 << 2)
375#define SYSCTL_DID1_QUAL_MASK (3 << 0)
381#define SYSCTL_PBORCTL_BORIOR (1 << 1)
387#define SYSCTL_RIS_MOSCPUPRIS (1 << 8)
389#define SYSCTL_RIS_USBPLLLRIS (1 << 7)
391#define SYSCTL_RIS_PLLLRIS (1 << 6)
393#define SYSCTL_RIS_MOFRIS (1 << 3)
395#define SYSCTL_RIS_BORRIS (1 << 1)
401#define SYSCTL_IMC_MOSCPUPIM (1 << 8)
403#define SYSCTL_IMC_USBPLLLIM (1 << 7)
405#define SYSCTL_IMC_PLLLIM (1 << 6)
407#define SYSCTL_IMC_MOFIM (1 << 3)
409#define SYSCTL_IMC_BORIM (1 << 1)
415#define SYSCTL_MISC_MOSCPUPMIS (1 << 8)
417#define SYSCTL_MISC_USBPLLLMIS (1 << 7)
419#define SYSCTL_MISC_PLLLMIS (1 << 6)
421#define SYSCTL_MISC_MOFMIS (1 << 3)
423#define SYSCTL_MISC_BORMIS (1 << 1)
429#define SYSCTL_RESC_MOSCFAIL (1 << 18)
431#define SYSCTL_RESC_WDT1 (1 << 5)
433#define SYSCTL_RESC_SW (1 << 4)
435#define SYSCTL_RESC_WDT0 (1 << 3)
437#define SYSCTL_RESC_BOR (1 << 2)
439#define SYSCTL_RESC_POR (1 << 1)
441#define SYSCTL_RESC_EXT (1 << 0)
447#define SYSCTL_RCC_ACG (1 << 27)
449#define SYSCTL_RCC_SYSDIV_MASK (0xF << 23)
451#define SYSCTL_RCC_USESYSDIV (1 << 22)
453#define SYSCTL_RCC_USEPWMDIV (1 << 20)
455#define SYSCTL_RCC_PWMDIV_MASK (0xF << 17)
456#define SYSCTL_RCC_PWMDIV_2 (0x0 << 17)
457#define SYSCTL_RCC_PWMDIV_4 (0x1 << 17)
458#define SYSCTL_RCC_PWMDIV_8 (0x2 << 17)
459#define SYSCTL_RCC_PWMDIV_16 (0x3 << 17)
460#define SYSCTL_RCC_PWMDIV_32 (0x4 << 17)
461#define SYSCTL_RCC_PWMDIV_64 (0x5 << 17)
463#define SYSCTL_RCC_PWRDN (1 << 13)
465#define SYSCTL_RCC_BYPASS (1 << 11)
467#define SYSCTL_RCC_XTAL_MASK (0x1F << 6)
468#define SYSCTL_RCC_XTAL_4M (0x06 << 6)
469#define SYSCTL_RCC_XTAL_4M_096 (0x07 << 6)
470#define SYSCTL_RCC_XTAL_4M_9152 (0x08 << 6)
471#define SYSCTL_RCC_XTAL_5M (0x09 << 6)
472#define SYSCTL_RCC_XTAL_5M_12 (0x0A << 6)
473#define SYSCTL_RCC_XTAL_6M (0x0B << 6)
474#define SYSCTL_RCC_XTAL_6M_144 (0x0C << 6)
475#define SYSCTL_RCC_XTAL_7M_3728 (0x0D << 6)
476#define SYSCTL_RCC_XTAL_8M (0x0E << 6)
477#define SYSCTL_RCC_XTAL_8M_192 (0x0F << 6)
478#define SYSCTL_RCC_XTAL_10M (0x10 << 6)
479#define SYSCTL_RCC_XTAL_12M (0x11 << 6)
480#define SYSCTL_RCC_XTAL_12M_288 (0x12 << 6)
481#define SYSCTL_RCC_XTAL_13M_56 (0x13 << 6)
482#define SYSCTL_RCC_XTAL_14M_31818 (0x14 << 6)
483#define SYSCTL_RCC_XTAL_16M (0x15 << 6)
484#define SYSCTL_RCC_XTAL_16M_384 (0x16 << 6)
485#define SYSCTL_RCC_XTAL_18M (0x17 << 6)
486#define SYSCTL_RCC_XTAL_20M (0x18 << 6)
487#define SYSCTL_RCC_XTAL_24M (0x19 << 6)
488#define SYSCTL_RCC_XTAL_25M (0x1A << 6)
490#define SYSCTL_RCC_OSCSRC_MASK (0x3 << 4)
491#define SYSCTL_RCC_OSCSRC_MOSC (0x0 << 4)
492#define SYSCTL_RCC_OSCSRC_PIOSC (0x1 << 4)
493#define SYSCTL_RCC_OSCSRC_PIOSC_D4 (0x2 << 4)
494#define SYSCTL_RCC_OSCSRC_30K (0x3 << 4)
496#define SYSCTL_RCC_IOSCDIS (1 << 1)
498#define SYSCTL_RCC_MOSCDIS (1 << 0)
503#define SYSCTL_GPIOHBCTL_PORTQ (1 << 14)
504#define SYSCTL_GPIOHBCTL_PORTP (1 << 13)
505#define SYSCTL_GPIOHBCTL_PORTN (1 << 12)
506#define SYSCTL_GPIOHBCTL_PORTM (1 << 11)
507#define SYSCTL_GPIOHBCTL_PORTL (1 << 10)
508#define SYSCTL_GPIOHBCTL_PORTK (1 << 9)
509#define SYSCTL_GPIOHBCTL_PORTJ (1 << 8)
510#define SYSCTL_GPIOHBCTL_PORTH (1 << 7)
511#define SYSCTL_GPIOHBCTL_PORTG (1 << 6)
512#define SYSCTL_GPIOHBCTL_PORTF (1 << 5)
513#define SYSCTL_GPIOHBCTL_PORTE (1 << 4)
514#define SYSCTL_GPIOHBCTL_PORTD (1 << 3)
515#define SYSCTL_GPIOHBCTL_PORTC (1 << 2)
516#define SYSCTL_GPIOHBCTL_PORTB (1 << 1)
517#define SYSCTL_GPIOHBCTL_PORTA (1 << 0)
523#define SYSCTL_RCC2_USERCC2 (1 << 31)
525#define SYSCTL_RCC2_DIV400 (1 << 30)
527#define SYSCTL_RCC2_ACG (1 << 27)
529#define SYSCTL_RCC2_SYSDIV2_MASK (0x3F << 23)
531#define SYSCTL_RCC2_SYSDIV2LSB (1 << 22)
533#define SYSCTL_RCC2_SYSDIV400_MASK (0x7F << 22)
535#define SYSCTL_RCC2_USBPWRDN (1 << 14)
537#define SYSCTL_RCC2_PWRDN2 (1 << 13)
539#define SYSCTL_RCC2_BYPASS2 (1 << 11)
541#define SYSCTL_RCC2_OSCSRC2_MASK (0x7 << 4)
542#define SYSCTL_RCC2_OSCSRC2_MOSC (0x0 << 4)
543#define SYSCTL_RCC2_OSCSRC2_PIOSC (0x1 << 4)
544#define SYSCTL_RCC2_OSCSRC2_PIOSC_D4 (0x2 << 4)
545#define SYSCTL_RCC2_OSCSRC2_30K (0x3 << 4)
546#define SYSCTL_RCC2_OSCSRC2_32K768 (0x7 << 4)
552#define SYSCTL_MOSCCTL_NOXTAL (1 << 2)
554#define SYSCTL_MOSCCTL_MOSCIM (1 << 1)
556#define SYSCTL_MOSCCTL_CVAL (1 << 0)
567#define SYSCTL_SYSPROP_FPU (1 << 0)
573#define SYSCTL_PIOSCCAL_UTEN (1 << 31)
575#define SYSCTL_PIOSCCAL_CAL (1 << 9)
577#define SYSCTL_PIOSCCAL_UPDATE (1 << 8)
579#define SYSCTL_PIOSCCAL_UT_MASK (0x7F << 0)
585#define SYSCTL_PIOSCSTAT_DT_MASK (0x7F << 16)
587#define SYSCTL_PIOSCSTAT_RESULT_MASK (0x3 << 8)
589#define SYSCTL_PIOSCSTAT_CT_MASK (0x7F << 0)
594#define SYSCTL_PLLFREQ0_MFRAC_MASK (0x3FF << 10)
596#define SYSCTL_PLLFREQ0_MINT_MASK (0x3FF << 0)
602#define SYSCTL_PLLFREQ1_Q_MASK (0x1F << 8)
604#define SYSCTL_PLLFREQ1_N_MASK (0x1F << 0)
610#define SYSCTL_PLLSTAT_LOCK (1 << 0)
#define SYSCTL_RCGCUSB_OFFSET
#define SYSCTL_RCGCEEPROM_OFFSET
#define SYSCTL_SCGCGPIO_OFFSET
#define SYSCTL_SCGCWD_OFFSET
#define SYSCTL_SCGCCAN_OFFSET
#define SYSCTL_SCGCI2C_OFFSET
#define SYSCTL_RCGCACMP_OFFSET
#define SYSCTL_RCGCCAN_OFFSET
#define SYSCTL_RCGCTIMER_OFFSET
#define SYSCTL_DCGCCAN_OFFSET
#define SYSCTL_DCGCUART_OFFSET
#define SYSCTL_SCGCUART_OFFSET
lm4f_clken
Clock enable definitions.
#define SYSCTL_DCGCDMA_OFFSET
#define SYSCTL_DCGCEEPROM_OFFSET
#define SYSCTL_RCGCPWM_OFFSET
#define SYSCTL_DCGCI2C_OFFSET
#define SYSCTL_SCGCUSB_OFFSET
#define SYSCTL_DCGCUSB_OFFSET
#define SYSCTL_RCGCUART_OFFSET
#define SYSCTL_SCGCSSI_OFFSET
#define SYSCTL_DCGCSSI_OFFSET
#define SYSCTL_SCGCQEI_OFFSET
#define SYSCTL_DCGCACMP_OFFSET
void periph_clock_enable(enum lm4f_clken periph)
Enable the clock source for the peripheral.
#define SYSCTL_SCGCACMP_OFFSET
#define SYSCTL_RCGCWTIMER_OFFSET
#define SYSCTL_RCGCQEI_OFFSET
#define SYSCTL_SCGCTIMER_OFFSET
#define SYSCTL_SCGCADC_OFFSET
#define SYSCTL_DCGCGPIO_OFFSET
void periph_clock_disable(enum lm4f_clken periph)
Disable the clock source for the peripheral.
#define SYSCTL_RCGCADC_OFFSET
#define SYSCTL_RCGCSSI_OFFSET
#define SYSCTL_DCGCWTIMER_OFFSET
#define SYSCTL_RCGCI2C_OFFSET
#define SYSCTL_RCGCWD_OFFSET
#define SYSCTL_RCGCDMA_OFFSET
#define SYSCTL_SCGCEEPROM_OFFSET
#define SYSCTL_DCGCWD_OFFSET
#define SYSCTL_RCGCGPIO_OFFSET
#define SYSCTL_SCGCWTIMER_OFFSET
#define SYSCTL_DCGCADC_OFFSET
#define SYSCTL_DCGCPWM_OFFSET
#define SYSCTL_DCGCTIMER_OFFSET
#define SYSCTL_DCGCQEI_OFFSET
#define SYSCTL_SCGCDMA_OFFSET
#define SYSCTL_SCGCPWM_OFFSET