collab/mm20

git clone https://git.julia.blue/collab/mm20

Joseph RyanAdd starter files39a929c

master
527.6 KiB8350 linesraw
1#include <stdbool.h>
2#include <stdint.h>
3//*****************************************************************************
4//
5// rom.h - Macros to facilitate calling functions in the ROM.
6//
7// Copyright (c) 2007-2017 Texas Instruments Incorporated.  All rights reserved.
8// Software License Agreement
9// 
10//   Redistribution and use in source and binary forms, with or without
11//   modification, are permitted provided that the following conditions
12//   are met:
13// 
14//   Redistributions of source code must retain the above copyright
15//   notice, this list of conditions and the following disclaimer.
16// 
17//   Redistributions in binary form must reproduce the above copyright
18//   notice, this list of conditions and the following disclaimer in the
19//   documentation and/or other materials provided with the  
20//   distribution.
21// 
22//   Neither the name of Texas Instruments Incorporated nor the names of
23//   its contributors may be used to endorse or promote products derived
24//   from this software without specific prior written permission.
25// 
26// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37// 
38// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
39//
40//*****************************************************************************
41
42#ifndef __DRIVERLIB_ROM_H__
43#define __DRIVERLIB_ROM_H__
44
45#define TARGET_IS_TM4C123_RB1
46
47#ifndef DEPRECATED
48//*****************************************************************************
49//
50// ROM selection labels changed between TivaWare 2.0.1 and 2.1.  The following
51// labels are intended to ensure backwards compatibility for applications
52// which have not yet been updated to use the replacement labels.
53//
54//*****************************************************************************
55#ifdef TARGET_IS_SNOWFLAKE_RA0
56#define TARGET_IS_TM4C129_RA0
57#endif
58#ifdef TARGET_IS_SNOWFLAKE_RA1
59#define TARGET_IS_TM4C129_RA1
60#endif
61#ifdef TARGET_IS_SNOWFLAKE_RA2
62#define TARGET_IS_TM4C129_RA2
63#endif
64#ifdef TARGET_IS_BLIZZARD_RA1
65#define TARGET_IS_TM4C123_RA1
66#endif
67#ifdef TARGET_IS_BLIZZARD_RA2
68#define TARGET_IS_TM4C123_RA2
69#endif
70#ifdef TARGET_IS_BLIZZARD_RA3
71#define TARGET_IS_TM4C123_RA3
72#endif
73#ifdef TARGET_IS_BLIZZARD_RB0
74#define TARGET_IS_TM4C123_RB0
75#endif
76#ifdef TARGET_IS_BLIZZARD_RB1
77#define TARGET_IS_TM4C123_RB1
78#endif
79#endif
80
81//*****************************************************************************
82//
83// Pointers to the main API tables.
84//
85//*****************************************************************************
86#define ROM_APITABLE            ((uint32_t *)0x01000010)
87#define ROM_VERSION             (ROM_APITABLE[0])
88#define ROM_UARTTABLE           ((uint32_t *)(ROM_APITABLE[1]))
89#define ROM_SSITABLE            ((uint32_t *)(ROM_APITABLE[2]))
90#define ROM_I2CTABLE            ((uint32_t *)(ROM_APITABLE[3]))
91#define ROM_GPIOTABLE           ((uint32_t *)(ROM_APITABLE[4]))
92#define ROM_ADCTABLE            ((uint32_t *)(ROM_APITABLE[5]))
93#define ROM_COMPARATORTABLE     ((uint32_t *)(ROM_APITABLE[6]))
94#define ROM_FLASHTABLE          ((uint32_t *)(ROM_APITABLE[7]))
95#define ROM_PWMTABLE            ((uint32_t *)(ROM_APITABLE[8]))
96#define ROM_QEITABLE            ((uint32_t *)(ROM_APITABLE[9]))
97#define ROM_SYSTICKTABLE        ((uint32_t *)(ROM_APITABLE[10]))
98#define ROM_TIMERTABLE          ((uint32_t *)(ROM_APITABLE[11]))
99#define ROM_WATCHDOGTABLE       ((uint32_t *)(ROM_APITABLE[12]))
100#define ROM_SYSCTLTABLE         ((uint32_t *)(ROM_APITABLE[13]))
101#define ROM_INTERRUPTTABLE      ((uint32_t *)(ROM_APITABLE[14]))
102#define ROM_USBTABLE            ((uint32_t *)(ROM_APITABLE[16]))
103#define ROM_UDMATABLE           ((uint32_t *)(ROM_APITABLE[17]))
104#define ROM_CANTABLE            ((uint32_t *)(ROM_APITABLE[18]))
105#define ROM_HIBERNATETABLE      ((uint32_t *)(ROM_APITABLE[19]))
106#define ROM_MPUTABLE            ((uint32_t *)(ROM_APITABLE[20]))
107#define ROM_SOFTWARETABLE       ((uint32_t *)(ROM_APITABLE[21]))
108#define ROM_EPITABLE            ((uint32_t *)(ROM_APITABLE[23]))
109#define ROM_EEPROMTABLE         ((uint32_t *)(ROM_APITABLE[24]))
110#define ROM_FPUTABLE            ((uint32_t *)(ROM_APITABLE[26]))
111#define ROM_SMBUSTABLE          ((uint32_t *)(ROM_APITABLE[29]))
112#define ROM_SYSEXCTABLE         ((uint32_t *)(ROM_APITABLE[30]))
113#define ROM_ONEWIRETABLE        ((uint32_t *)(ROM_APITABLE[34]))
114#define ROM_SPIFLASHTABLE       ((uint32_t *)(ROM_APITABLE[38]))
115#define ROM_LCDTABLE            ((uint32_t *)(ROM_APITABLE[41]))
116#define ROM_EMACTABLE           ((uint32_t *)(ROM_APITABLE[42]))
117#define ROM_AESTABLE            ((uint32_t *)(ROM_APITABLE[43]))
118#define ROM_CRCTABLE            ((uint32_t *)(ROM_APITABLE[44]))
119#define ROM_DESTABLE            ((uint32_t *)(ROM_APITABLE[45]))
120#define ROM_SHAMD5TABLE         ((uint32_t *)(ROM_APITABLE[46]))
121
122//*****************************************************************************
123//
124// Macros for calling ROM functions in the ADC API.
125//
126//*****************************************************************************
127#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
128    defined(TARGET_IS_TM4C123_RA3) ||                                         \
129    defined(TARGET_IS_TM4C123_RB1) ||                                         \
130    defined(TARGET_IS_TM4C123_RB2) ||                                         \
131    defined(TARGET_IS_TM4C129_RA0) ||                                         \
132    defined(TARGET_IS_TM4C129_RA1) ||                                         \
133    defined(TARGET_IS_TM4C129_RA2)
134#define ROM_ADCSequenceDataGet                                                \
135        ((int32_t (*)(uint32_t ui32Base,                                      \
136                      uint32_t ui32SequenceNum,                               \
137                      uint32_t *pui32Buffer))ROM_ADCTABLE[0])
138#endif
139#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
140    defined(TARGET_IS_TM4C123_RA3) ||                                         \
141    defined(TARGET_IS_TM4C123_RB1) ||                                         \
142    defined(TARGET_IS_TM4C123_RB2) ||                                         \
143    defined(TARGET_IS_TM4C129_RA0) ||                                         \
144    defined(TARGET_IS_TM4C129_RA1) ||                                         \
145    defined(TARGET_IS_TM4C129_RA2)
146#define ROM_ADCIntDisable                                                     \
147        ((void (*)(uint32_t ui32Base,                                         \
148                   uint32_t ui32SequenceNum))ROM_ADCTABLE[1])
149#endif
150#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
151    defined(TARGET_IS_TM4C123_RA3) ||                                         \
152    defined(TARGET_IS_TM4C123_RB1) ||                                         \
153    defined(TARGET_IS_TM4C123_RB2) ||                                         \
154    defined(TARGET_IS_TM4C129_RA0) ||                                         \
155    defined(TARGET_IS_TM4C129_RA1) ||                                         \
156    defined(TARGET_IS_TM4C129_RA2)
157#define ROM_ADCIntEnable                                                      \
158        ((void (*)(uint32_t ui32Base,                                         \
159                   uint32_t ui32SequenceNum))ROM_ADCTABLE[2])
160#endif
161#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
162    defined(TARGET_IS_TM4C123_RA3) ||                                         \
163    defined(TARGET_IS_TM4C123_RB1) ||                                         \
164    defined(TARGET_IS_TM4C123_RB2) ||                                         \
165    defined(TARGET_IS_TM4C129_RA0) ||                                         \
166    defined(TARGET_IS_TM4C129_RA1) ||                                         \
167    defined(TARGET_IS_TM4C129_RA2)
168#define ROM_ADCIntStatus                                                      \
169        ((uint32_t (*)(uint32_t ui32Base,                                     \
170                       uint32_t ui32SequenceNum,                              \
171                       bool bMasked))ROM_ADCTABLE[3])
172#endif
173#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
174    defined(TARGET_IS_TM4C123_RA3) ||                                         \
175    defined(TARGET_IS_TM4C123_RB1) ||                                         \
176    defined(TARGET_IS_TM4C123_RB2) ||                                         \
177    defined(TARGET_IS_TM4C129_RA0) ||                                         \
178    defined(TARGET_IS_TM4C129_RA1) ||                                         \
179    defined(TARGET_IS_TM4C129_RA2)
180#define ROM_ADCIntClear                                                       \
181        ((void (*)(uint32_t ui32Base,                                         \
182                   uint32_t ui32SequenceNum))ROM_ADCTABLE[4])
183#endif
184#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
185    defined(TARGET_IS_TM4C123_RA3) ||                                         \
186    defined(TARGET_IS_TM4C123_RB1) ||                                         \
187    defined(TARGET_IS_TM4C123_RB2) ||                                         \
188    defined(TARGET_IS_TM4C129_RA0) ||                                         \
189    defined(TARGET_IS_TM4C129_RA1) ||                                         \
190    defined(TARGET_IS_TM4C129_RA2)
191#define ROM_ADCSequenceEnable                                                 \
192        ((void (*)(uint32_t ui32Base,                                         \
193                   uint32_t ui32SequenceNum))ROM_ADCTABLE[5])
194#endif
195#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
196    defined(TARGET_IS_TM4C123_RA3) ||                                         \
197    defined(TARGET_IS_TM4C123_RB1) ||                                         \
198    defined(TARGET_IS_TM4C123_RB2) ||                                         \
199    defined(TARGET_IS_TM4C129_RA0) ||                                         \
200    defined(TARGET_IS_TM4C129_RA1) ||                                         \
201    defined(TARGET_IS_TM4C129_RA2)
202#define ROM_ADCSequenceDisable                                                \
203        ((void (*)(uint32_t ui32Base,                                         \
204                   uint32_t ui32SequenceNum))ROM_ADCTABLE[6])
205#endif
206#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
207    defined(TARGET_IS_TM4C123_RA3) ||                                         \
208    defined(TARGET_IS_TM4C123_RB1) ||                                         \
209    defined(TARGET_IS_TM4C123_RB2) ||                                         \
210    defined(TARGET_IS_TM4C129_RA0) ||                                         \
211    defined(TARGET_IS_TM4C129_RA1) ||                                         \
212    defined(TARGET_IS_TM4C129_RA2)
213#define ROM_ADCSequenceConfigure                                              \
214        ((void (*)(uint32_t ui32Base,                                         \
215                   uint32_t ui32SequenceNum,                                  \
216                   uint32_t ui32Trigger,                                      \
217                   uint32_t ui32Priority))ROM_ADCTABLE[7])
218#endif
219#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
220    defined(TARGET_IS_TM4C123_RA3) ||                                         \
221    defined(TARGET_IS_TM4C123_RB1) ||                                         \
222    defined(TARGET_IS_TM4C123_RB2) ||                                         \
223    defined(TARGET_IS_TM4C129_RA0) ||                                         \
224    defined(TARGET_IS_TM4C129_RA1) ||                                         \
225    defined(TARGET_IS_TM4C129_RA2)
226#define ROM_ADCSequenceStepConfigure                                          \
227        ((void (*)(uint32_t ui32Base,                                         \
228                   uint32_t ui32SequenceNum,                                  \
229                   uint32_t ui32Step,                                         \
230                   uint32_t ui32Config))ROM_ADCTABLE[8])
231#endif
232#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
233    defined(TARGET_IS_TM4C123_RA3) ||                                         \
234    defined(TARGET_IS_TM4C123_RB1) ||                                         \
235    defined(TARGET_IS_TM4C123_RB2) ||                                         \
236    defined(TARGET_IS_TM4C129_RA0) ||                                         \
237    defined(TARGET_IS_TM4C129_RA1) ||                                         \
238    defined(TARGET_IS_TM4C129_RA2)
239#define ROM_ADCSequenceOverflow                                               \
240        ((int32_t (*)(uint32_t ui32Base,                                      \
241                      uint32_t ui32SequenceNum))ROM_ADCTABLE[9])
242#endif
243#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
244    defined(TARGET_IS_TM4C123_RA3) ||                                         \
245    defined(TARGET_IS_TM4C123_RB1) ||                                         \
246    defined(TARGET_IS_TM4C123_RB2) ||                                         \
247    defined(TARGET_IS_TM4C129_RA0) ||                                         \
248    defined(TARGET_IS_TM4C129_RA1) ||                                         \
249    defined(TARGET_IS_TM4C129_RA2)
250#define ROM_ADCSequenceOverflowClear                                          \
251        ((void (*)(uint32_t ui32Base,                                         \
252                   uint32_t ui32SequenceNum))ROM_ADCTABLE[10])
253#endif
254#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
255    defined(TARGET_IS_TM4C123_RA3) ||                                         \
256    defined(TARGET_IS_TM4C123_RB1) ||                                         \
257    defined(TARGET_IS_TM4C123_RB2) ||                                         \
258    defined(TARGET_IS_TM4C129_RA0) ||                                         \
259    defined(TARGET_IS_TM4C129_RA1) ||                                         \
260    defined(TARGET_IS_TM4C129_RA2)
261#define ROM_ADCSequenceUnderflow                                              \
262        ((int32_t (*)(uint32_t ui32Base,                                      \
263                      uint32_t ui32SequenceNum))ROM_ADCTABLE[11])
264#endif
265#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
266    defined(TARGET_IS_TM4C123_RA3) ||                                         \
267    defined(TARGET_IS_TM4C123_RB1) ||                                         \
268    defined(TARGET_IS_TM4C123_RB2) ||                                         \
269    defined(TARGET_IS_TM4C129_RA0) ||                                         \
270    defined(TARGET_IS_TM4C129_RA1) ||                                         \
271    defined(TARGET_IS_TM4C129_RA2)
272#define ROM_ADCSequenceUnderflowClear                                         \
273        ((void (*)(uint32_t ui32Base,                                         \
274                   uint32_t ui32SequenceNum))ROM_ADCTABLE[12])
275#endif
276#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
277    defined(TARGET_IS_TM4C123_RA3) ||                                         \
278    defined(TARGET_IS_TM4C123_RB1) ||                                         \
279    defined(TARGET_IS_TM4C123_RB2) ||                                         \
280    defined(TARGET_IS_TM4C129_RA0) ||                                         \
281    defined(TARGET_IS_TM4C129_RA1) ||                                         \
282    defined(TARGET_IS_TM4C129_RA2)
283#define ROM_ADCProcessorTrigger                                               \
284        ((void (*)(uint32_t ui32Base,                                         \
285                   uint32_t ui32SequenceNum))ROM_ADCTABLE[13])
286#endif
287#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
288    defined(TARGET_IS_TM4C123_RA3) ||                                         \
289    defined(TARGET_IS_TM4C123_RB1) ||                                         \
290    defined(TARGET_IS_TM4C123_RB2) ||                                         \
291    defined(TARGET_IS_TM4C129_RA0) ||                                         \
292    defined(TARGET_IS_TM4C129_RA1) ||                                         \
293    defined(TARGET_IS_TM4C129_RA2)
294#define ROM_ADCHardwareOversampleConfigure                                    \
295        ((void (*)(uint32_t ui32Base,                                         \
296                   uint32_t ui32Factor))ROM_ADCTABLE[14])
297#endif
298#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
299    defined(TARGET_IS_TM4C123_RA3) ||                                         \
300    defined(TARGET_IS_TM4C123_RB1) ||                                         \
301    defined(TARGET_IS_TM4C123_RB2) ||                                         \
302    defined(TARGET_IS_TM4C129_RA0) ||                                         \
303    defined(TARGET_IS_TM4C129_RA1) ||                                         \
304    defined(TARGET_IS_TM4C129_RA2)
305#define ROM_ADCComparatorConfigure                                            \
306        ((void (*)(uint32_t ui32Base,                                         \
307                   uint32_t ui32Comp,                                         \
308                   uint32_t ui32Config))ROM_ADCTABLE[15])
309#endif
310#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
311    defined(TARGET_IS_TM4C123_RA3) ||                                         \
312    defined(TARGET_IS_TM4C123_RB1) ||                                         \
313    defined(TARGET_IS_TM4C123_RB2) ||                                         \
314    defined(TARGET_IS_TM4C129_RA0) ||                                         \
315    defined(TARGET_IS_TM4C129_RA1) ||                                         \
316    defined(TARGET_IS_TM4C129_RA2)
317#define ROM_ADCComparatorRegionSet                                            \
318        ((void (*)(uint32_t ui32Base,                                         \
319                   uint32_t ui32Comp,                                         \
320                   uint32_t ui32LowRef,                                       \
321                   uint32_t ui32HighRef))ROM_ADCTABLE[16])
322#endif
323#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
324    defined(TARGET_IS_TM4C123_RA3) ||                                         \
325    defined(TARGET_IS_TM4C123_RB1) ||                                         \
326    defined(TARGET_IS_TM4C123_RB2) ||                                         \
327    defined(TARGET_IS_TM4C129_RA0) ||                                         \
328    defined(TARGET_IS_TM4C129_RA1) ||                                         \
329    defined(TARGET_IS_TM4C129_RA2)
330#define ROM_ADCComparatorReset                                                \
331        ((void (*)(uint32_t ui32Base,                                         \
332                   uint32_t ui32Comp,                                         \
333                   bool bTrigger,                                             \
334                   bool bInterrupt))ROM_ADCTABLE[17])
335#endif
336#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
337    defined(TARGET_IS_TM4C123_RA3) ||                                         \
338    defined(TARGET_IS_TM4C123_RB1) ||                                         \
339    defined(TARGET_IS_TM4C123_RB2) ||                                         \
340    defined(TARGET_IS_TM4C129_RA0) ||                                         \
341    defined(TARGET_IS_TM4C129_RA1) ||                                         \
342    defined(TARGET_IS_TM4C129_RA2)
343#define ROM_ADCComparatorIntDisable                                           \
344        ((void (*)(uint32_t ui32Base,                                         \
345                   uint32_t ui32SequenceNum))ROM_ADCTABLE[18])
346#endif
347#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
348    defined(TARGET_IS_TM4C123_RA3) ||                                         \
349    defined(TARGET_IS_TM4C123_RB1) ||                                         \
350    defined(TARGET_IS_TM4C123_RB2) ||                                         \
351    defined(TARGET_IS_TM4C129_RA0) ||                                         \
352    defined(TARGET_IS_TM4C129_RA1) ||                                         \
353    defined(TARGET_IS_TM4C129_RA2)
354#define ROM_ADCComparatorIntEnable                                            \
355        ((void (*)(uint32_t ui32Base,                                         \
356                   uint32_t ui32SequenceNum))ROM_ADCTABLE[19])
357#endif
358#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
359    defined(TARGET_IS_TM4C123_RA3) ||                                         \
360    defined(TARGET_IS_TM4C123_RB1) ||                                         \
361    defined(TARGET_IS_TM4C123_RB2) ||                                         \
362    defined(TARGET_IS_TM4C129_RA0) ||                                         \
363    defined(TARGET_IS_TM4C129_RA1) ||                                         \
364    defined(TARGET_IS_TM4C129_RA2)
365#define ROM_ADCComparatorIntStatus                                            \
366        ((uint32_t (*)(uint32_t ui32Base))ROM_ADCTABLE[20])
367#endif
368#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
369    defined(TARGET_IS_TM4C123_RA3) ||                                         \
370    defined(TARGET_IS_TM4C123_RB1) ||                                         \
371    defined(TARGET_IS_TM4C123_RB2) ||                                         \
372    defined(TARGET_IS_TM4C129_RA0) ||                                         \
373    defined(TARGET_IS_TM4C129_RA1) ||                                         \
374    defined(TARGET_IS_TM4C129_RA2)
375#define ROM_ADCComparatorIntClear                                             \
376        ((void (*)(uint32_t ui32Base,                                         \
377                   uint32_t ui32Status))ROM_ADCTABLE[21])
378#endif
379#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
380    defined(TARGET_IS_TM4C123_RA3) ||                                         \
381    defined(TARGET_IS_TM4C123_RB1) ||                                         \
382    defined(TARGET_IS_TM4C123_RB2) ||                                         \
383    defined(TARGET_IS_TM4C129_RA0) ||                                         \
384    defined(TARGET_IS_TM4C129_RA1) ||                                         \
385    defined(TARGET_IS_TM4C129_RA2)
386#define ROM_ADCReferenceSet                                                   \
387        ((void (*)(uint32_t ui32Base,                                         \
388                   uint32_t ui32Ref))ROM_ADCTABLE[22])
389#endif
390#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
391    defined(TARGET_IS_TM4C123_RA3) ||                                         \
392    defined(TARGET_IS_TM4C123_RB1) ||                                         \
393    defined(TARGET_IS_TM4C123_RB2) ||                                         \
394    defined(TARGET_IS_TM4C129_RA0) ||                                         \
395    defined(TARGET_IS_TM4C129_RA1) ||                                         \
396    defined(TARGET_IS_TM4C129_RA2)
397#define ROM_ADCReferenceGet                                                   \
398        ((uint32_t (*)(uint32_t ui32Base))ROM_ADCTABLE[23])
399#endif
400#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
401    defined(TARGET_IS_TM4C123_RA3) ||                                         \
402    defined(TARGET_IS_TM4C123_RB1) ||                                         \
403    defined(TARGET_IS_TM4C123_RB2) ||                                         \
404    defined(TARGET_IS_TM4C129_RA0) ||                                         \
405    defined(TARGET_IS_TM4C129_RA1) ||                                         \
406    defined(TARGET_IS_TM4C129_RA2)
407#define ROM_ADCPhaseDelaySet                                                  \
408        ((void (*)(uint32_t ui32Base,                                         \
409                   uint32_t ui32Phase))ROM_ADCTABLE[24])
410#endif
411#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
412    defined(TARGET_IS_TM4C123_RA3) ||                                         \
413    defined(TARGET_IS_TM4C123_RB1) ||                                         \
414    defined(TARGET_IS_TM4C123_RB2) ||                                         \
415    defined(TARGET_IS_TM4C129_RA0) ||                                         \
416    defined(TARGET_IS_TM4C129_RA1) ||                                         \
417    defined(TARGET_IS_TM4C129_RA2)
418#define ROM_ADCPhaseDelayGet                                                  \
419        ((uint32_t (*)(uint32_t ui32Base))ROM_ADCTABLE[25])
420#endif
421#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
422    defined(TARGET_IS_TM4C129_RA1) ||                                         \
423    defined(TARGET_IS_TM4C129_RA2)
424#define ROM_ADCIntDisableEx                                                   \
425        ((void (*)(uint32_t ui32Base,                                         \
426                   uint32_t ui32IntFlags))ROM_ADCTABLE[29])
427#endif
428#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
429    defined(TARGET_IS_TM4C129_RA1) ||                                         \
430    defined(TARGET_IS_TM4C129_RA2)
431#define ROM_ADCIntEnableEx                                                    \
432        ((void (*)(uint32_t ui32Base,                                         \
433                   uint32_t ui32IntFlags))ROM_ADCTABLE[30])
434#endif
435#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
436    defined(TARGET_IS_TM4C129_RA1) ||                                         \
437    defined(TARGET_IS_TM4C129_RA2)
438#define ROM_ADCIntStatusEx                                                    \
439        ((uint32_t (*)(uint32_t ui32Base,                                     \
440                       bool bMasked))ROM_ADCTABLE[31])
441#endif
442#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
443    defined(TARGET_IS_TM4C129_RA1) ||                                         \
444    defined(TARGET_IS_TM4C129_RA2)
445#define ROM_ADCSequenceDMAEnable                                              \
446        ((void (*)(uint32_t ui32Base,                                         \
447                   uint32_t ui32SequenceNum))ROM_ADCTABLE[32])
448#endif
449#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
450    defined(TARGET_IS_TM4C129_RA1) ||                                         \
451    defined(TARGET_IS_TM4C129_RA2)
452#define ROM_ADCSequenceDMADisable                                             \
453        ((void (*)(uint32_t ui32Base,                                         \
454                   uint32_t ui32SequenceNum))ROM_ADCTABLE[33])
455#endif
456#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
457    defined(TARGET_IS_TM4C129_RA1) ||                                         \
458    defined(TARGET_IS_TM4C129_RA2)
459#define ROM_ADCBusy                                                           \
460        ((bool (*)(uint32_t ui32Base))ROM_ADCTABLE[34])
461#endif
462
463//*****************************************************************************
464//
465// Macros for calling ROM functions in the AES API.
466//
467//*****************************************************************************
468#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
469    defined(TARGET_IS_TM4C129_RA1) ||                                         \
470    defined(TARGET_IS_TM4C129_RA2)
471#define ROM_AESIntStatus                                                      \
472        ((uint32_t (*)(uint32_t ui32Base,                                     \
473                       bool bMasked))ROM_AESTABLE[0])
474#endif
475#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
476    defined(TARGET_IS_TM4C129_RA1) ||                                         \
477    defined(TARGET_IS_TM4C129_RA2)
478#define ROM_AESAuthLengthSet                                                  \
479        ((void (*)(uint32_t ui32Base,                                         \
480                   uint32_t ui32Length))ROM_AESTABLE[1])
481#endif
482#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
483    defined(TARGET_IS_TM4C129_RA1) ||                                         \
484    defined(TARGET_IS_TM4C129_RA2)
485#define ROM_AESConfigSet                                                      \
486        ((void (*)(uint32_t ui32Base,                                         \
487                   uint32_t ui32Config))ROM_AESTABLE[2])
488#endif
489#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
490    defined(TARGET_IS_TM4C129_RA1) ||                                         \
491    defined(TARGET_IS_TM4C129_RA2)
492#define ROM_AESDataAuth                                                       \
493        ((bool (*)(uint32_t ui32Base,                                         \
494                   uint32_t *pui32Src,                                        \
495                   uint32_t ui32Length,                                       \
496                   uint32_t *pui32Tag))ROM_AESTABLE[3])
497#endif
498#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
499    defined(TARGET_IS_TM4C129_RA1) ||                                         \
500    defined(TARGET_IS_TM4C129_RA2)
501#define ROM_AESDataProcess                                                    \
502        ((bool (*)(uint32_t ui32Base,                                         \
503                   uint32_t *pui32Src,                                        \
504                   uint32_t *pui32Dest,                                       \
505                   uint32_t ui32Length))ROM_AESTABLE[4])
506#endif
507#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
508    defined(TARGET_IS_TM4C129_RA1) ||                                         \
509    defined(TARGET_IS_TM4C129_RA2)
510#define ROM_AESDataProcessAuth                                                \
511        ((bool (*)(uint32_t ui32Base,                                         \
512                   uint32_t *pui32Src,                                        \
513                   uint32_t *pui32Dest,                                       \
514                   uint32_t ui32Length,                                       \
515                   uint32_t *pui32AuthSrc,                                    \
516                   uint32_t ui32AuthLength,                                   \
517                   uint32_t *pui32Tag))ROM_AESTABLE[5])
518#endif
519#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
520    defined(TARGET_IS_TM4C129_RA1) ||                                         \
521    defined(TARGET_IS_TM4C129_RA2)
522#define ROM_AESDataRead                                                       \
523        ((void (*)(uint32_t ui32Base,                                         \
524                   uint32_t *pui32Dest))ROM_AESTABLE[6])
525#endif
526#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
527    defined(TARGET_IS_TM4C129_RA1) ||                                         \
528    defined(TARGET_IS_TM4C129_RA2)
529#define ROM_AESDataReadNonBlocking                                            \
530        ((bool (*)(uint32_t ui32Base,                                         \
531                   uint32_t *pui32Dest))ROM_AESTABLE[7])
532#endif
533#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
534    defined(TARGET_IS_TM4C129_RA1) ||                                         \
535    defined(TARGET_IS_TM4C129_RA2)
536#define ROM_AESDataWrite                                                      \
537        ((void (*)(uint32_t ui32Base,                                         \
538                   uint32_t *pui32Src))ROM_AESTABLE[8])
539#endif
540#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
541    defined(TARGET_IS_TM4C129_RA1) ||                                         \
542    defined(TARGET_IS_TM4C129_RA2)
543#define ROM_AESDataWriteNonBlocking                                           \
544        ((bool (*)(uint32_t ui32Base,                                         \
545                   uint32_t *pui32Src))ROM_AESTABLE[9])
546#endif
547#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
548    defined(TARGET_IS_TM4C129_RA1) ||                                         \
549    defined(TARGET_IS_TM4C129_RA2)
550#define ROM_AESDMADisable                                                     \
551        ((void (*)(uint32_t ui32Base,                                         \
552                   uint32_t ui32Flags))ROM_AESTABLE[10])
553#endif
554#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
555    defined(TARGET_IS_TM4C129_RA1) ||                                         \
556    defined(TARGET_IS_TM4C129_RA2)
557#define ROM_AESDMAEnable                                                      \
558        ((void (*)(uint32_t ui32Base,                                         \
559                   uint32_t ui32Flags))ROM_AESTABLE[11])
560#endif
561#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
562    defined(TARGET_IS_TM4C129_RA1) ||                                         \
563    defined(TARGET_IS_TM4C129_RA2)
564#define ROM_AESIntClear                                                       \
565        ((void (*)(uint32_t ui32Base,                                         \
566                   uint32_t ui32IntFlags))ROM_AESTABLE[12])
567#endif
568#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
569    defined(TARGET_IS_TM4C129_RA1) ||                                         \
570    defined(TARGET_IS_TM4C129_RA2)
571#define ROM_AESIntDisable                                                     \
572        ((void (*)(uint32_t ui32Base,                                         \
573                   uint32_t ui32IntFlags))ROM_AESTABLE[13])
574#endif
575#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
576    defined(TARGET_IS_TM4C129_RA1) ||                                         \
577    defined(TARGET_IS_TM4C129_RA2)
578#define ROM_AESIntEnable                                                      \
579        ((void (*)(uint32_t ui32Base,                                         \
580                   uint32_t ui32IntFlags))ROM_AESTABLE[14])
581#endif
582#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
583    defined(TARGET_IS_TM4C129_RA1) ||                                         \
584    defined(TARGET_IS_TM4C129_RA2)
585#define ROM_AESIVSet                                                          \
586        ((void (*)(uint32_t ui32Base,                                         \
587                   uint32_t *pui32IVdata))ROM_AESTABLE[15])
588#endif
589#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
590    defined(TARGET_IS_TM4C129_RA1) ||                                         \
591    defined(TARGET_IS_TM4C129_RA2)
592#define ROM_AESKey1Set                                                        \
593        ((void (*)(uint32_t ui32Base,                                         \
594                   uint32_t *pui32Key,                                        \
595                   uint32_t ui32Keysize))ROM_AESTABLE[16])
596#endif
597#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
598    defined(TARGET_IS_TM4C129_RA1) ||                                         \
599    defined(TARGET_IS_TM4C129_RA2)
600#define ROM_AESKey2Set                                                        \
601        ((void (*)(uint32_t ui32Base,                                         \
602                   uint32_t *pui32Key,                                        \
603                   uint32_t ui32Keysize))ROM_AESTABLE[17])
604#endif
605#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
606    defined(TARGET_IS_TM4C129_RA1) ||                                         \
607    defined(TARGET_IS_TM4C129_RA2)
608#define ROM_AESKey3Set                                                        \
609        ((void (*)(uint32_t ui32Base,                                         \
610                   uint32_t *pui32Key))ROM_AESTABLE[18])
611#endif
612#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
613    defined(TARGET_IS_TM4C129_RA1) ||                                         \
614    defined(TARGET_IS_TM4C129_RA2)
615#define ROM_AESLengthSet                                                      \
616        ((void (*)(uint32_t ui32Base,                                         \
617                   uint64_t ui64Length))ROM_AESTABLE[19])
618#endif
619#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
620    defined(TARGET_IS_TM4C129_RA1) ||                                         \
621    defined(TARGET_IS_TM4C129_RA2)
622#define ROM_AESReset                                                          \
623        ((void (*)(uint32_t ui32Base))ROM_AESTABLE[20])
624#endif
625#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
626    defined(TARGET_IS_TM4C129_RA1) ||                                         \
627    defined(TARGET_IS_TM4C129_RA2)
628#define ROM_AESTagRead                                                        \
629        ((void (*)(uint32_t ui32Base,                                         \
630                   uint32_t *pui32TagData))ROM_AESTABLE[21])
631#endif
632#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
633    defined(TARGET_IS_TM4C129_RA2)
634#define ROM_AESIVRead                                                         \
635        ((void (*)(uint32_t ui32Base,                                         \
636                   uint32_t *pui32IVdata))ROM_AESTABLE[22])
637#endif
638
639//*****************************************************************************
640//
641// Macros for calling ROM functions in the CAN API.
642//
643//*****************************************************************************
644#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
645    defined(TARGET_IS_TM4C123_RA3) ||                                         \
646    defined(TARGET_IS_TM4C123_RB1) ||                                         \
647    defined(TARGET_IS_TM4C123_RB2) ||                                         \
648    defined(TARGET_IS_TM4C129_RA0) ||                                         \
649    defined(TARGET_IS_TM4C129_RA1) ||                                         \
650    defined(TARGET_IS_TM4C129_RA2)
651#define ROM_CANIntClear                                                       \
652        ((void (*)(uint32_t ui32Base,                                         \
653                   uint32_t ui32IntClr))ROM_CANTABLE[0])
654#endif
655#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
656    defined(TARGET_IS_TM4C123_RA3) ||                                         \
657    defined(TARGET_IS_TM4C123_RB1) ||                                         \
658    defined(TARGET_IS_TM4C123_RB2) ||                                         \
659    defined(TARGET_IS_TM4C129_RA0) ||                                         \
660    defined(TARGET_IS_TM4C129_RA1) ||                                         \
661    defined(TARGET_IS_TM4C129_RA2)
662#define ROM_CANInit                                                           \
663        ((void (*)(uint32_t ui32Base))ROM_CANTABLE[1])
664#endif
665#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
666    defined(TARGET_IS_TM4C123_RA3) ||                                         \
667    defined(TARGET_IS_TM4C123_RB1) ||                                         \
668    defined(TARGET_IS_TM4C123_RB2) ||                                         \
669    defined(TARGET_IS_TM4C129_RA0) ||                                         \
670    defined(TARGET_IS_TM4C129_RA1) ||                                         \
671    defined(TARGET_IS_TM4C129_RA2)
672#define ROM_CANEnable                                                         \
673        ((void (*)(uint32_t ui32Base))ROM_CANTABLE[2])
674#endif
675#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
676    defined(TARGET_IS_TM4C123_RA3) ||                                         \
677    defined(TARGET_IS_TM4C123_RB1) ||                                         \
678    defined(TARGET_IS_TM4C123_RB2) ||                                         \
679    defined(TARGET_IS_TM4C129_RA0) ||                                         \
680    defined(TARGET_IS_TM4C129_RA1) ||                                         \
681    defined(TARGET_IS_TM4C129_RA2)
682#define ROM_CANDisable                                                        \
683        ((void (*)(uint32_t ui32Base))ROM_CANTABLE[3])
684#endif
685#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
686    defined(TARGET_IS_TM4C123_RA3) ||                                         \
687    defined(TARGET_IS_TM4C123_RB1) ||                                         \
688    defined(TARGET_IS_TM4C123_RB2) ||                                         \
689    defined(TARGET_IS_TM4C129_RA0) ||                                         \
690    defined(TARGET_IS_TM4C129_RA1) ||                                         \
691    defined(TARGET_IS_TM4C129_RA2)
692#define ROM_CANBitTimingSet                                                   \
693        ((void (*)(uint32_t ui32Base,                                         \
694                   tCANBitClkParms *psClkParms))ROM_CANTABLE[4])
695#endif
696#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
697    defined(TARGET_IS_TM4C123_RA3) ||                                         \
698    defined(TARGET_IS_TM4C123_RB1) ||                                         \
699    defined(TARGET_IS_TM4C123_RB2) ||                                         \
700    defined(TARGET_IS_TM4C129_RA0) ||                                         \
701    defined(TARGET_IS_TM4C129_RA1) ||                                         \
702    defined(TARGET_IS_TM4C129_RA2)
703#define ROM_CANBitTimingGet                                                   \
704        ((void (*)(uint32_t ui32Base,                                         \
705                   tCANBitClkParms *psClkParms))ROM_CANTABLE[5])
706#endif
707#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
708    defined(TARGET_IS_TM4C123_RA3) ||                                         \
709    defined(TARGET_IS_TM4C123_RB1) ||                                         \
710    defined(TARGET_IS_TM4C123_RB2) ||                                         \
711    defined(TARGET_IS_TM4C129_RA0) ||                                         \
712    defined(TARGET_IS_TM4C129_RA1) ||                                         \
713    defined(TARGET_IS_TM4C129_RA2)
714#define ROM_CANMessageSet                                                     \
715        ((void (*)(uint32_t ui32Base,                                         \
716                   uint32_t ui32ObjID,                                        \
717                   tCANMsgObject *psMsgObject,                                \
718                   tMsgObjType eMsgType))ROM_CANTABLE[6])
719#endif
720#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
721    defined(TARGET_IS_TM4C123_RA3) ||                                         \
722    defined(TARGET_IS_TM4C123_RB1) ||                                         \
723    defined(TARGET_IS_TM4C123_RB2) ||                                         \
724    defined(TARGET_IS_TM4C129_RA0) ||                                         \
725    defined(TARGET_IS_TM4C129_RA1) ||                                         \
726    defined(TARGET_IS_TM4C129_RA2)
727#define ROM_CANMessageGet                                                     \
728        ((void (*)(uint32_t ui32Base,                                         \
729                   uint32_t ui32ObjID,                                        \
730                   tCANMsgObject *psMsgObject,                                \
731                   bool bClrPendingInt))ROM_CANTABLE[7])
732#endif
733#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
734    defined(TARGET_IS_TM4C123_RA3) ||                                         \
735    defined(TARGET_IS_TM4C123_RB1) ||                                         \
736    defined(TARGET_IS_TM4C123_RB2) ||                                         \
737    defined(TARGET_IS_TM4C129_RA0) ||                                         \
738    defined(TARGET_IS_TM4C129_RA1) ||                                         \
739    defined(TARGET_IS_TM4C129_RA2)
740#define ROM_CANStatusGet                                                      \
741        ((uint32_t (*)(uint32_t ui32Base,                                     \
742                       tCANStsReg eStatusReg))ROM_CANTABLE[8])
743#endif
744#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
745    defined(TARGET_IS_TM4C123_RA3) ||                                         \
746    defined(TARGET_IS_TM4C123_RB1) ||                                         \
747    defined(TARGET_IS_TM4C123_RB2) ||                                         \
748    defined(TARGET_IS_TM4C129_RA0) ||                                         \
749    defined(TARGET_IS_TM4C129_RA1) ||                                         \
750    defined(TARGET_IS_TM4C129_RA2)
751#define ROM_CANMessageClear                                                   \
752        ((void (*)(uint32_t ui32Base,                                         \
753                   uint32_t ui32ObjID))ROM_CANTABLE[9])
754#endif
755#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
756    defined(TARGET_IS_TM4C123_RA3) ||                                         \
757    defined(TARGET_IS_TM4C123_RB1) ||                                         \
758    defined(TARGET_IS_TM4C123_RB2) ||                                         \
759    defined(TARGET_IS_TM4C129_RA0) ||                                         \
760    defined(TARGET_IS_TM4C129_RA1) ||                                         \
761    defined(TARGET_IS_TM4C129_RA2)
762#define ROM_CANIntEnable                                                      \
763        ((void (*)(uint32_t ui32Base,                                         \
764                   uint32_t ui32IntFlags))ROM_CANTABLE[10])
765#endif
766#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
767    defined(TARGET_IS_TM4C123_RA3) ||                                         \
768    defined(TARGET_IS_TM4C123_RB1) ||                                         \
769    defined(TARGET_IS_TM4C123_RB2) ||                                         \
770    defined(TARGET_IS_TM4C129_RA0) ||                                         \
771    defined(TARGET_IS_TM4C129_RA1) ||                                         \
772    defined(TARGET_IS_TM4C129_RA2)
773#define ROM_CANIntDisable                                                     \
774        ((void (*)(uint32_t ui32Base,                                         \
775                   uint32_t ui32IntFlags))ROM_CANTABLE[11])
776#endif
777#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
778    defined(TARGET_IS_TM4C123_RA3) ||                                         \
779    defined(TARGET_IS_TM4C123_RB1) ||                                         \
780    defined(TARGET_IS_TM4C123_RB2) ||                                         \
781    defined(TARGET_IS_TM4C129_RA0) ||                                         \
782    defined(TARGET_IS_TM4C129_RA1) ||                                         \
783    defined(TARGET_IS_TM4C129_RA2)
784#define ROM_CANIntStatus                                                      \
785        ((uint32_t (*)(uint32_t ui32Base,                                     \
786                       tCANIntStsReg eIntStsReg))ROM_CANTABLE[12])
787#endif
788#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
789    defined(TARGET_IS_TM4C123_RA3) ||                                         \
790    defined(TARGET_IS_TM4C123_RB1) ||                                         \
791    defined(TARGET_IS_TM4C123_RB2) ||                                         \
792    defined(TARGET_IS_TM4C129_RA0) ||                                         \
793    defined(TARGET_IS_TM4C129_RA1) ||                                         \
794    defined(TARGET_IS_TM4C129_RA2)
795#define ROM_CANRetryGet                                                       \
796        ((bool (*)(uint32_t ui32Base))ROM_CANTABLE[13])
797#endif
798#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
799    defined(TARGET_IS_TM4C123_RA3) ||                                         \
800    defined(TARGET_IS_TM4C123_RB1) ||                                         \
801    defined(TARGET_IS_TM4C123_RB2) ||                                         \
802    defined(TARGET_IS_TM4C129_RA0) ||                                         \
803    defined(TARGET_IS_TM4C129_RA1) ||                                         \
804    defined(TARGET_IS_TM4C129_RA2)
805#define ROM_CANRetrySet                                                       \
806        ((void (*)(uint32_t ui32Base,                                         \
807                   bool bAutoRetry))ROM_CANTABLE[14])
808#endif
809#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
810    defined(TARGET_IS_TM4C123_RA3) ||                                         \
811    defined(TARGET_IS_TM4C123_RB1) ||                                         \
812    defined(TARGET_IS_TM4C123_RB2) ||                                         \
813    defined(TARGET_IS_TM4C129_RA0) ||                                         \
814    defined(TARGET_IS_TM4C129_RA1) ||                                         \
815    defined(TARGET_IS_TM4C129_RA2)
816#define ROM_CANErrCntrGet                                                     \
817        ((bool (*)(uint32_t ui32Base,                                         \
818                   uint32_t *pui32RxCount,                                    \
819                   uint32_t *pui32TxCount))ROM_CANTABLE[15])
820#endif
821#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
822    defined(TARGET_IS_TM4C123_RA3) ||                                         \
823    defined(TARGET_IS_TM4C123_RB1) ||                                         \
824    defined(TARGET_IS_TM4C123_RB2) ||                                         \
825    defined(TARGET_IS_TM4C129_RA0) ||                                         \
826    defined(TARGET_IS_TM4C129_RA1) ||                                         \
827    defined(TARGET_IS_TM4C129_RA2)
828#define ROM_CANBitRateSet                                                     \
829        ((uint32_t (*)(uint32_t ui32Base,                                     \
830                       uint32_t ui32SourceClock,                              \
831                       uint32_t ui32BitRate))ROM_CANTABLE[16])
832#endif
833
834//*****************************************************************************
835//
836// Macros for calling ROM functions in the Comparator API.
837//
838//*****************************************************************************
839#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
840    defined(TARGET_IS_TM4C123_RA3) ||                                         \
841    defined(TARGET_IS_TM4C123_RB1) ||                                         \
842    defined(TARGET_IS_TM4C123_RB2) ||                                         \
843    defined(TARGET_IS_TM4C129_RA0) ||                                         \
844    defined(TARGET_IS_TM4C129_RA1) ||                                         \
845    defined(TARGET_IS_TM4C129_RA2)
846#define ROM_ComparatorIntClear                                                \
847        ((void (*)(uint32_t ui32Base,                                         \
848                   uint32_t ui32Comp))ROM_COMPARATORTABLE[0])
849#endif
850#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
851    defined(TARGET_IS_TM4C123_RA3) ||                                         \
852    defined(TARGET_IS_TM4C123_RB1) ||                                         \
853    defined(TARGET_IS_TM4C123_RB2) ||                                         \
854    defined(TARGET_IS_TM4C129_RA0) ||                                         \
855    defined(TARGET_IS_TM4C129_RA1) ||                                         \
856    defined(TARGET_IS_TM4C129_RA2)
857#define ROM_ComparatorConfigure                                               \
858        ((void (*)(uint32_t ui32Base,                                         \
859                   uint32_t ui32Comp,                                         \
860                   uint32_t ui32Config))ROM_COMPARATORTABLE[1])
861#endif
862#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
863    defined(TARGET_IS_TM4C123_RA3) ||                                         \
864    defined(TARGET_IS_TM4C123_RB1) ||                                         \
865    defined(TARGET_IS_TM4C123_RB2) ||                                         \
866    defined(TARGET_IS_TM4C129_RA0) ||                                         \
867    defined(TARGET_IS_TM4C129_RA1) ||                                         \
868    defined(TARGET_IS_TM4C129_RA2)
869#define ROM_ComparatorRefSet                                                  \
870        ((void (*)(uint32_t ui32Base,                                         \
871                   uint32_t ui32Ref))ROM_COMPARATORTABLE[2])
872#endif
873#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
874    defined(TARGET_IS_TM4C123_RA3) ||                                         \
875    defined(TARGET_IS_TM4C123_RB1) ||                                         \
876    defined(TARGET_IS_TM4C123_RB2) ||                                         \
877    defined(TARGET_IS_TM4C129_RA0) ||                                         \
878    defined(TARGET_IS_TM4C129_RA1) ||                                         \
879    defined(TARGET_IS_TM4C129_RA2)
880#define ROM_ComparatorValueGet                                                \
881        ((bool (*)(uint32_t ui32Base,                                         \
882                   uint32_t ui32Comp))ROM_COMPARATORTABLE[3])
883#endif
884#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
885    defined(TARGET_IS_TM4C123_RA3) ||                                         \
886    defined(TARGET_IS_TM4C123_RB1) ||                                         \
887    defined(TARGET_IS_TM4C123_RB2) ||                                         \
888    defined(TARGET_IS_TM4C129_RA0) ||                                         \
889    defined(TARGET_IS_TM4C129_RA1) ||                                         \
890    defined(TARGET_IS_TM4C129_RA2)
891#define ROM_ComparatorIntEnable                                               \
892        ((void (*)(uint32_t ui32Base,                                         \
893                   uint32_t ui32Comp))ROM_COMPARATORTABLE[4])
894#endif
895#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
896    defined(TARGET_IS_TM4C123_RA3) ||                                         \
897    defined(TARGET_IS_TM4C123_RB1) ||                                         \
898    defined(TARGET_IS_TM4C123_RB2) ||                                         \
899    defined(TARGET_IS_TM4C129_RA0) ||                                         \
900    defined(TARGET_IS_TM4C129_RA1) ||                                         \
901    defined(TARGET_IS_TM4C129_RA2)
902#define ROM_ComparatorIntDisable                                              \
903        ((void (*)(uint32_t ui32Base,                                         \
904                   uint32_t ui32Comp))ROM_COMPARATORTABLE[5])
905#endif
906#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
907    defined(TARGET_IS_TM4C123_RA3) ||                                         \
908    defined(TARGET_IS_TM4C123_RB1) ||                                         \
909    defined(TARGET_IS_TM4C123_RB2) ||                                         \
910    defined(TARGET_IS_TM4C129_RA0) ||                                         \
911    defined(TARGET_IS_TM4C129_RA1) ||                                         \
912    defined(TARGET_IS_TM4C129_RA2)
913#define ROM_ComparatorIntStatus                                               \
914        ((bool (*)(uint32_t ui32Base,                                         \
915                   uint32_t ui32Comp,                                         \
916                   bool bMasked))ROM_COMPARATORTABLE[6])
917#endif
918
919//*****************************************************************************
920//
921// Macros for calling ROM functions in the CRC API.
922//
923//*****************************************************************************
924#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
925    defined(TARGET_IS_TM4C129_RA1) ||                                         \
926    defined(TARGET_IS_TM4C129_RA2)
927#define ROM_CRCConfigSet                                                      \
928        ((void (*)(uint32_t ui32Base,                                         \
929                   uint32_t ui32CRCConfig))ROM_CRCTABLE[0])
930#endif
931#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
932    defined(TARGET_IS_TM4C129_RA1) ||                                         \
933    defined(TARGET_IS_TM4C129_RA2)
934#define ROM_CRCDataProcess                                                    \
935        ((uint32_t (*)(uint32_t ui32Base,                                     \
936                       uint32_t *pui32DataIn,                                 \
937                       uint32_t ui32DataLength,                               \
938                       bool bPPResult))ROM_CRCTABLE[1])
939#endif
940#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
941    defined(TARGET_IS_TM4C129_RA1) ||                                         \
942    defined(TARGET_IS_TM4C129_RA2)
943#define ROM_CRCDataWrite                                                      \
944        ((void (*)(uint32_t ui32Base,                                         \
945                   uint32_t ui32Data))ROM_CRCTABLE[2])
946#endif
947#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
948    defined(TARGET_IS_TM4C129_RA1) ||                                         \
949    defined(TARGET_IS_TM4C129_RA2)
950#define ROM_CRCResultRead                                                     \
951        ((uint32_t (*)(uint32_t ui32Base,                                     \
952                       bool bPPResult))ROM_CRCTABLE[3])
953#endif
954#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
955    defined(TARGET_IS_TM4C129_RA1) ||                                         \
956    defined(TARGET_IS_TM4C129_RA2)
957#define ROM_CRCSeedSet                                                        \
958        ((void (*)(uint32_t ui32Base,                                         \
959                   uint32_t ui32Seed))ROM_CRCTABLE[4])
960#endif
961
962//*****************************************************************************
963//
964// Macros for calling ROM functions in the DES API.
965//
966//*****************************************************************************
967#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
968    defined(TARGET_IS_TM4C129_RA1) ||                                         \
969    defined(TARGET_IS_TM4C129_RA2)
970#define ROM_DESIntStatus                                                      \
971        ((uint32_t (*)(uint32_t ui32Base,                                     \
972                       bool bMasked))ROM_DESTABLE[0])
973#endif
974#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
975    defined(TARGET_IS_TM4C129_RA1) ||                                         \
976    defined(TARGET_IS_TM4C129_RA2)
977#define ROM_DESConfigSet                                                      \
978        ((void (*)(uint32_t ui32Base,                                         \
979                   uint32_t ui32Config))ROM_DESTABLE[1])
980#endif
981#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
982    defined(TARGET_IS_TM4C129_RA1) ||                                         \
983    defined(TARGET_IS_TM4C129_RA2)
984#define ROM_DESDataRead                                                       \
985        ((void (*)(uint32_t ui32Base,                                         \
986                   uint32_t *pui32Dest))ROM_DESTABLE[2])
987#endif
988#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
989    defined(TARGET_IS_TM4C129_RA1) ||                                         \
990    defined(TARGET_IS_TM4C129_RA2)
991#define ROM_DESDataReadNonBlocking                                            \
992        ((bool (*)(uint32_t ui32Base,                                         \
993                   uint32_t *pui32Dest))ROM_DESTABLE[3])
994#endif
995#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
996    defined(TARGET_IS_TM4C129_RA1) ||                                         \
997    defined(TARGET_IS_TM4C129_RA2)
998#define ROM_DESDataProcess                                                    \
999        ((bool (*)(uint32_t ui32Base,                                         \
1000                   uint32_t *pui32Src,                                        \
1001                   uint32_t *pui32Dest,                                       \
1002                   uint32_t ui32Length))ROM_DESTABLE[4])
1003#endif
1004#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1005    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1006    defined(TARGET_IS_TM4C129_RA2)
1007#define ROM_DESDataWrite                                                      \
1008        ((void (*)(uint32_t ui32Base,                                         \
1009                   uint32_t *pui32Src))ROM_DESTABLE[5])
1010#endif
1011#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1012    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1013    defined(TARGET_IS_TM4C129_RA2)
1014#define ROM_DESDataWriteNonBlocking                                           \
1015        ((bool (*)(uint32_t ui32Base,                                         \
1016                   uint32_t *pui32Src))ROM_DESTABLE[6])
1017#endif
1018#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1019    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1020    defined(TARGET_IS_TM4C129_RA2)
1021#define ROM_DESDMADisable                                                     \
1022        ((void (*)(uint32_t ui32Base,                                         \
1023                   uint32_t ui32Flags))ROM_DESTABLE[7])
1024#endif
1025#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1026    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1027    defined(TARGET_IS_TM4C129_RA2)
1028#define ROM_DESDMAEnable                                                      \
1029        ((void (*)(uint32_t ui32Base,                                         \
1030                   uint32_t ui32Flags))ROM_DESTABLE[8])
1031#endif
1032#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1033    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1034    defined(TARGET_IS_TM4C129_RA2)
1035#define ROM_DESIntClear                                                       \
1036        ((void (*)(uint32_t ui32Base,                                         \
1037                   uint32_t ui32IntFlags))ROM_DESTABLE[9])
1038#endif
1039#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1040    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1041    defined(TARGET_IS_TM4C129_RA2)
1042#define ROM_DESIntDisable                                                     \
1043        ((void (*)(uint32_t ui32Base,                                         \
1044                   uint32_t ui32IntFlags))ROM_DESTABLE[10])
1045#endif
1046#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1047    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1048    defined(TARGET_IS_TM4C129_RA2)
1049#define ROM_DESIntEnable                                                      \
1050        ((void (*)(uint32_t ui32Base,                                         \
1051                   uint32_t ui32IntFlags))ROM_DESTABLE[11])
1052#endif
1053#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1054    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1055    defined(TARGET_IS_TM4C129_RA2)
1056#define ROM_DESIVSet                                                          \
1057        ((bool (*)(uint32_t ui32Base,                                         \
1058                   uint32_t *pui32IVdata))ROM_DESTABLE[12])
1059#endif
1060#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1061    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1062    defined(TARGET_IS_TM4C129_RA2)
1063#define ROM_DESKeySet                                                         \
1064        ((void (*)(uint32_t ui32Base,                                         \
1065                   uint32_t *pui32Key))ROM_DESTABLE[13])
1066#endif
1067#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1068    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1069    defined(TARGET_IS_TM4C129_RA2)
1070#define ROM_DESLengthSet                                                      \
1071        ((void (*)(uint32_t ui32Base,                                         \
1072                   uint32_t ui32Length))ROM_DESTABLE[14])
1073#endif
1074#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1075    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1076    defined(TARGET_IS_TM4C129_RA2)
1077#define ROM_DESReset                                                          \
1078        ((void (*)(uint32_t ui32Base))ROM_DESTABLE[15])
1079#endif
1080
1081//*****************************************************************************
1082//
1083// Macros for calling ROM functions in the EEPROM API.
1084//
1085//*****************************************************************************
1086#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1087    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1088    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1089    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1090    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1091    defined(TARGET_IS_TM4C129_RA2)
1092#define ROM_EEPROMRead                                                        \
1093        ((void (*)(uint32_t *pui32Data,                                       \
1094                   uint32_t ui32Address,                                      \
1095                   uint32_t ui32Count))ROM_EEPROMTABLE[0])
1096#endif
1097#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1098    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1099    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1100    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1101    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1102    defined(TARGET_IS_TM4C129_RA2)
1103#define ROM_EEPROMBlockCountGet                                               \
1104        ((uint32_t (*)(void))ROM_EEPROMTABLE[1])
1105#endif
1106#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1107    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1108    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1109    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1110    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1111    defined(TARGET_IS_TM4C129_RA2)
1112#define ROM_EEPROMBlockHide                                                   \
1113        ((void (*)(uint32_t ui32Block))ROM_EEPROMTABLE[2])
1114#endif
1115#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1116    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1117    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1118    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1119    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1120    defined(TARGET_IS_TM4C129_RA2)
1121#define ROM_EEPROMBlockLock                                                   \
1122        ((uint32_t (*)(uint32_t ui32Block))ROM_EEPROMTABLE[3])
1123#endif
1124#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1125    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1126    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1127    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1128    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1129    defined(TARGET_IS_TM4C129_RA2)
1130#define ROM_EEPROMBlockPasswordSet                                            \
1131        ((uint32_t (*)(uint32_t ui32Block,                                    \
1132                       uint32_t *pui32Password,                               \
1133                       uint32_t ui32Count))ROM_EEPROMTABLE[4])
1134#endif
1135#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1136    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1137    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1138    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1139    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1140    defined(TARGET_IS_TM4C129_RA2)
1141#define ROM_EEPROMBlockProtectGet                                             \
1142        ((uint32_t (*)(uint32_t ui32Block))ROM_EEPROMTABLE[5])
1143#endif
1144#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1145    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1146    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1147    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1148    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1149    defined(TARGET_IS_TM4C129_RA2)
1150#define ROM_EEPROMBlockProtectSet                                             \
1151        ((uint32_t (*)(uint32_t ui32Block,                                    \
1152                       uint32_t ui32Protect))ROM_EEPROMTABLE[6])
1153#endif
1154#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1155    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1156    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1157    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1158    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1159    defined(TARGET_IS_TM4C129_RA2)
1160#define ROM_EEPROMBlockUnlock                                                 \
1161        ((uint32_t (*)(uint32_t ui32Block,                                    \
1162                       uint32_t *pui32Password,                               \
1163                       uint32_t ui32Count))ROM_EEPROMTABLE[7])
1164#endif
1165#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1166    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1167    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1168    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1169    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1170    defined(TARGET_IS_TM4C129_RA2)
1171#define ROM_EEPROMIntClear                                                    \
1172        ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[8])
1173#endif
1174#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1175    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1176    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1177    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1178    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1179    defined(TARGET_IS_TM4C129_RA2)
1180#define ROM_EEPROMIntDisable                                                  \
1181        ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[9])
1182#endif
1183#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1184    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1185    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1186    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1187    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1188    defined(TARGET_IS_TM4C129_RA2)
1189#define ROM_EEPROMIntEnable                                                   \
1190        ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[10])
1191#endif
1192#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1193    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1194    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1195    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1196    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1197    defined(TARGET_IS_TM4C129_RA2)
1198#define ROM_EEPROMIntStatus                                                   \
1199        ((uint32_t (*)(bool bMasked))ROM_EEPROMTABLE[11])
1200#endif
1201#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1202    defined(TARGET_IS_TM4C123_RB1)
1203#define ROM_EEPROMMassErase                                                   \
1204        ((uint32_t (*)(void))ROM_EEPROMTABLE[12])
1205#endif
1206#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1207    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1208    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1209    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1210    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1211    defined(TARGET_IS_TM4C129_RA2)
1212#define ROM_EEPROMProgram                                                     \
1213        ((uint32_t (*)(uint32_t *pui32Data,                                   \
1214                       uint32_t ui32Address,                                  \
1215                       uint32_t ui32Count))ROM_EEPROMTABLE[13])
1216#endif
1217#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1218    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1219    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1220    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1221    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1222    defined(TARGET_IS_TM4C129_RA2)
1223#define ROM_EEPROMProgramNonBlocking                                          \
1224        ((uint32_t (*)(uint32_t ui32Data,                                     \
1225                       uint32_t ui32Address))ROM_EEPROMTABLE[14])
1226#endif
1227#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1228    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1229    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1230    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1231    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1232    defined(TARGET_IS_TM4C129_RA2)
1233#define ROM_EEPROMSizeGet                                                     \
1234        ((uint32_t (*)(void))ROM_EEPROMTABLE[15])
1235#endif
1236#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1237    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1238    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1239    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1240    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1241    defined(TARGET_IS_TM4C129_RA2)
1242#define ROM_EEPROMStatusGet                                                   \
1243        ((uint32_t (*)(void))ROM_EEPROMTABLE[16])
1244#endif
1245#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
1246    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1247    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1248    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1249    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1250    defined(TARGET_IS_TM4C129_RA2)
1251#define ROM_EEPROMInit                                                        \
1252        ((uint32_t (*)(void))ROM_EEPROMTABLE[17])
1253#endif
1254
1255//*****************************************************************************
1256//
1257// Macros for calling ROM functions in the EPI API.
1258//
1259//*****************************************************************************
1260#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1261    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1262    defined(TARGET_IS_TM4C129_RA2)
1263#define ROM_EPIIntStatus                                                      \
1264        ((uint32_t (*)(uint32_t ui32Base,                                     \
1265                       bool bMasked))ROM_EPITABLE[0])
1266#endif
1267#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1268    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1269    defined(TARGET_IS_TM4C129_RA2)
1270#define ROM_EPIModeSet                                                        \
1271        ((void (*)(uint32_t ui32Base,                                         \
1272                   uint32_t ui32Mode))ROM_EPITABLE[1])
1273#endif
1274#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1275    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1276    defined(TARGET_IS_TM4C129_RA2)
1277#define ROM_EPIDividerSet                                                     \
1278        ((void (*)(uint32_t ui32Base,                                         \
1279                   uint32_t ui32Divider))ROM_EPITABLE[2])
1280#endif
1281#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1282    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1283    defined(TARGET_IS_TM4C129_RA2)
1284#define ROM_EPIConfigSDRAMSet                                                 \
1285        ((void (*)(uint32_t ui32Base,                                         \
1286                   uint32_t ui32Config,                                       \
1287                   uint32_t ui32Refresh))ROM_EPITABLE[3])
1288#endif
1289#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1290    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1291    defined(TARGET_IS_TM4C129_RA2)
1292#define ROM_EPIConfigGPModeSet                                                \
1293        ((void (*)(uint32_t ui32Base,                                         \
1294                   uint32_t ui32Config,                                       \
1295                   uint32_t ui32FrameCount,                                   \
1296                   uint32_t ui32MaxWait))ROM_EPITABLE[4])
1297#endif
1298#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1299    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1300    defined(TARGET_IS_TM4C129_RA2)
1301#define ROM_EPIConfigHB8Set                                                   \
1302        ((void (*)(uint32_t ui32Base,                                         \
1303                   uint32_t ui32Config,                                       \
1304                   uint32_t ui32MaxWait))ROM_EPITABLE[5])
1305#endif
1306#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1307    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1308    defined(TARGET_IS_TM4C129_RA2)
1309#define ROM_EPIConfigHB16Set                                                  \
1310        ((void (*)(uint32_t ui32Base,                                         \
1311                   uint32_t ui32Config,                                       \
1312                   uint32_t ui32MaxWait))ROM_EPITABLE[6])
1313#endif
1314#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1315    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1316    defined(TARGET_IS_TM4C129_RA2)
1317#define ROM_EPIAddressMapSet                                                  \
1318        ((void (*)(uint32_t ui32Base,                                         \
1319                   uint32_t ui32Map))ROM_EPITABLE[7])
1320#endif
1321#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1322    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1323    defined(TARGET_IS_TM4C129_RA2)
1324#define ROM_EPINonBlockingReadConfigure                                       \
1325        ((void (*)(uint32_t ui32Base,                                         \
1326                   uint32_t ui32Channel,                                      \
1327                   uint32_t ui32DataSize,                                     \
1328                   uint32_t ui32Address))ROM_EPITABLE[8])
1329#endif
1330#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1331    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1332    defined(TARGET_IS_TM4C129_RA2)
1333#define ROM_EPINonBlockingReadStart                                           \
1334        ((void (*)(uint32_t ui32Base,                                         \
1335                   uint32_t ui32Channel,                                      \
1336                   uint32_t ui32Count))ROM_EPITABLE[9])
1337#endif
1338#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1339    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1340    defined(TARGET_IS_TM4C129_RA2)
1341#define ROM_EPINonBlockingReadStop                                            \
1342        ((void (*)(uint32_t ui32Base,                                         \
1343                   uint32_t ui32Channel))ROM_EPITABLE[10])
1344#endif
1345#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1346    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1347    defined(TARGET_IS_TM4C129_RA2)
1348#define ROM_EPINonBlockingReadCount                                           \
1349        ((uint32_t (*)(uint32_t ui32Base,                                     \
1350                       uint32_t ui32Channel))ROM_EPITABLE[11])
1351#endif
1352#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1353    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1354    defined(TARGET_IS_TM4C129_RA2)
1355#define ROM_EPINonBlockingReadAvail                                           \
1356        ((uint32_t (*)(uint32_t ui32Base))ROM_EPITABLE[12])
1357#endif
1358#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1359    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1360    defined(TARGET_IS_TM4C129_RA2)
1361#define ROM_EPINonBlockingReadGet32                                           \
1362        ((uint32_t (*)(uint32_t ui32Base,                                     \
1363                       uint32_t ui32Count,                                    \
1364                       uint32_t *pui32Buf))ROM_EPITABLE[13])
1365#endif
1366#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1367    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1368    defined(TARGET_IS_TM4C129_RA2)
1369#define ROM_EPINonBlockingReadGet16                                           \
1370        ((uint32_t (*)(uint32_t ui32Base,                                     \
1371                       uint32_t ui32Count,                                    \
1372                       uint16_t *pui16Buf))ROM_EPITABLE[14])
1373#endif
1374#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1375    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1376    defined(TARGET_IS_TM4C129_RA2)
1377#define ROM_EPINonBlockingReadGet8                                            \
1378        ((uint32_t (*)(uint32_t ui32Base,                                     \
1379                       uint32_t ui32Count,                                    \
1380                       uint8_t *pui8Buf))ROM_EPITABLE[15])
1381#endif
1382#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1383    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1384    defined(TARGET_IS_TM4C129_RA2)
1385#define ROM_EPIFIFOConfig                                                     \
1386        ((void (*)(uint32_t ui32Base,                                         \
1387                   uint32_t ui32Config))ROM_EPITABLE[16])
1388#endif
1389#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1390    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1391    defined(TARGET_IS_TM4C129_RA2)
1392#define ROM_EPIWriteFIFOCountGet                                              \
1393        ((uint32_t (*)(uint32_t ui32Base))ROM_EPITABLE[17])
1394#endif
1395#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1396    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1397    defined(TARGET_IS_TM4C129_RA2)
1398#define ROM_EPIIntEnable                                                      \
1399        ((void (*)(uint32_t ui32Base,                                         \
1400                   uint32_t ui32IntFlags))ROM_EPITABLE[18])
1401#endif
1402#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1403    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1404    defined(TARGET_IS_TM4C129_RA2)
1405#define ROM_EPIIntDisable                                                     \
1406        ((void (*)(uint32_t ui32Base,                                         \
1407                   uint32_t ui32IntFlags))ROM_EPITABLE[19])
1408#endif
1409#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1410    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1411    defined(TARGET_IS_TM4C129_RA2)
1412#define ROM_EPIIntErrorStatus                                                 \
1413        ((uint32_t (*)(uint32_t ui32Base))ROM_EPITABLE[20])
1414#endif
1415#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1416    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1417    defined(TARGET_IS_TM4C129_RA2)
1418#define ROM_EPIIntErrorClear                                                  \
1419        ((void (*)(uint32_t ui32Base,                                         \
1420                   uint32_t ui32ErrFlags))ROM_EPITABLE[21])
1421#endif
1422#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1423    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1424    defined(TARGET_IS_TM4C129_RA2)
1425#define ROM_EPIDividerCSSet                                                   \
1426        ((void (*)(uint32_t ui32Base,                                         \
1427                   uint32_t ui32CS,                                           \
1428                   uint32_t ui32Divider))ROM_EPITABLE[22])
1429#endif
1430#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1431    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1432    defined(TARGET_IS_TM4C129_RA2)
1433#define ROM_EPIDMATxCount                                                     \
1434        ((void (*)(uint32_t ui32Base,                                         \
1435                   uint32_t ui32Count))ROM_EPITABLE[23])
1436#endif
1437#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1438    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1439    defined(TARGET_IS_TM4C129_RA2)
1440#define ROM_EPIConfigHB8CSSet                                                 \
1441        ((void (*)(uint32_t ui32Base,                                         \
1442                   uint32_t ui32CS,                                           \
1443                   uint32_t ui32Config))ROM_EPITABLE[24])
1444#endif
1445#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1446    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1447    defined(TARGET_IS_TM4C129_RA2)
1448#define ROM_EPIConfigHB16CSSet                                                \
1449        ((void (*)(uint32_t ui32Base,                                         \
1450                   uint32_t ui32CS,                                           \
1451                   uint32_t ui32Config))ROM_EPITABLE[25])
1452#endif
1453#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1454    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1455    defined(TARGET_IS_TM4C129_RA2)
1456#define ROM_EPIConfigHB8TimingSet                                             \
1457        ((void (*)(uint32_t ui32Base,                                         \
1458                   uint32_t ui32CS,                                           \
1459                   uint32_t ui32Config))ROM_EPITABLE[26])
1460#endif
1461#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1462    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1463    defined(TARGET_IS_TM4C129_RA2)
1464#define ROM_EPIConfigHB16TimingSet                                            \
1465        ((void (*)(uint32_t ui32Base,                                         \
1466                   uint32_t ui32CS,                                           \
1467                   uint32_t ui32Config))ROM_EPITABLE[27])
1468#endif
1469#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1470    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1471    defined(TARGET_IS_TM4C129_RA2)
1472#define ROM_EPIPSRAMConfigRegSet                                              \
1473        ((void (*)(uint32_t ui32Base,                                         \
1474                   uint32_t ui32CS,                                           \
1475                   uint32_t ui32CR))ROM_EPITABLE[28])
1476#endif
1477#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1478    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1479    defined(TARGET_IS_TM4C129_RA2)
1480#define ROM_EPIPSRAMConfigRegRead                                             \
1481        ((void (*)(uint32_t ui32Base,                                         \
1482                   uint32_t ui32CS))ROM_EPITABLE[29])
1483#endif
1484#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1485    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1486    defined(TARGET_IS_TM4C129_RA2)
1487#define ROM_EPIPSRAMConfigRegGetNonBlocking                                   \
1488        ((bool (*)(uint32_t ui32Base,                                         \
1489                   uint32_t ui32CS,                                           \
1490                   uint32_t *pui32CR))ROM_EPITABLE[30])
1491#endif
1492#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1493    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1494    defined(TARGET_IS_TM4C129_RA2)
1495#define ROM_EPIPSRAMConfigRegGet                                              \
1496        ((uint32_t (*)(uint32_t ui32Base,                                     \
1497                       uint32_t ui32CS))ROM_EPITABLE[31])
1498#endif
1499
1500//*****************************************************************************
1501//
1502// Macros for calling ROM functions in the EMAC API.
1503//
1504//*****************************************************************************
1505#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1506    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1507    defined(TARGET_IS_TM4C129_RA2)
1508#define ROM_EMACIntStatus                                                     \
1509        ((uint32_t (*)(uint32_t ui32Base,                                     \
1510                       bool bMasked))ROM_EMACTABLE[0])
1511#endif
1512#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1513    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1514    defined(TARGET_IS_TM4C129_RA2)
1515#define ROM_EMACAddrGet                                                       \
1516        ((void (*)(uint32_t ui32Base,                                         \
1517                   uint32_t ui32Index,                                        \
1518                   uint8_t *pui8MACAddr))ROM_EMACTABLE[1])
1519#endif
1520#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1521    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1522    defined(TARGET_IS_TM4C129_RA2)
1523#define ROM_EMACAddrSet                                                       \
1524        ((void (*)(uint32_t ui32Base,                                         \
1525                   uint32_t ui32Index,                                        \
1526                   const uint8_t *pui8MACAddr))ROM_EMACTABLE[2])
1527#endif
1528#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1529    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1530    defined(TARGET_IS_TM4C129_RA2)
1531#define ROM_EMACConfigGet                                                     \
1532        ((void (*)(uint32_t ui32Base,                                         \
1533                   uint32_t *pui32Config,                                     \
1534                   uint32_t *pui32Mode,                                       \
1535                   uint32_t *pui32RxMaxFrameSize))ROM_EMACTABLE[3])
1536#endif
1537#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1538    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1539    defined(TARGET_IS_TM4C129_RA2)
1540#define ROM_EMACConfigSet                                                     \
1541        ((void (*)(uint32_t ui32Base,                                         \
1542                   uint32_t ui32Config,                                       \
1543                   uint32_t ui32ModeFlags,                                    \
1544                   uint32_t ui32RxMaxFrameSize))ROM_EMACTABLE[4])
1545#endif
1546#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1547    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1548    defined(TARGET_IS_TM4C129_RA2)
1549#define ROM_EMACDMAStateGet                                                   \
1550        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[5])
1551#endif
1552#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1553    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1554    defined(TARGET_IS_TM4C129_RA2)
1555#define ROM_EMACFrameFilterGet                                                \
1556        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[6])
1557#endif
1558#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1559    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1560    defined(TARGET_IS_TM4C129_RA2)
1561#define ROM_EMACFrameFilterSet                                                \
1562        ((void (*)(uint32_t ui32Base,                                         \
1563                   uint32_t ui32FilterOpts))ROM_EMACTABLE[7])
1564#endif
1565#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1566    defined(TARGET_IS_TM4C129_RA2)
1567#define ROM_EMACInit                                                          \
1568        ((void (*)(uint32_t ui32Base,                                         \
1569                   uint32_t ui32SysClk,                                       \
1570                   uint32_t ui32BusConfig,                                    \
1571                   uint32_t ui32RxBurst,                                      \
1572                   uint32_t ui32TxBurst,                                      \
1573                   uint32_t ui32DescSkipSize))ROM_EMACTABLE[8])
1574#endif
1575#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1576    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1577    defined(TARGET_IS_TM4C129_RA2)
1578#define ROM_EMACIntClear                                                      \
1579        ((void (*)(uint32_t ui32Base,                                         \
1580                   uint32_t ui32IntFlags))ROM_EMACTABLE[9])
1581#endif
1582#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1583    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1584    defined(TARGET_IS_TM4C129_RA2)
1585#define ROM_EMACIntDisable                                                    \
1586        ((void (*)(uint32_t ui32Base,                                         \
1587                   uint32_t ui32IntFlags))ROM_EMACTABLE[10])
1588#endif
1589#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1590    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1591    defined(TARGET_IS_TM4C129_RA2)
1592#define ROM_EMACIntEnable                                                     \
1593        ((void (*)(uint32_t ui32Base,                                         \
1594                   uint32_t ui32IntFlags))ROM_EMACTABLE[11])
1595#endif
1596#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1597    defined(TARGET_IS_TM4C129_RA2)
1598#define ROM_EMACPHYConfigSet                                                  \
1599        ((void (*)(uint32_t ui32Base,                                         \
1600                   uint32_t ui32Config))ROM_EMACTABLE[12])
1601#endif
1602#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1603    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1604    defined(TARGET_IS_TM4C129_RA2)
1605#define ROM_EMACPHYPowerOff                                                   \
1606        ((void (*)(uint32_t ui32Base,                                         \
1607                   uint8_t ui8PhyAddr))ROM_EMACTABLE[13])
1608#endif
1609#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1610    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1611    defined(TARGET_IS_TM4C129_RA2)
1612#define ROM_EMACPHYPowerOn                                                    \
1613        ((void (*)(uint32_t ui32Base,                                         \
1614                   uint8_t ui8PhyAddr))ROM_EMACTABLE[14])
1615#endif
1616#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1617    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1618    defined(TARGET_IS_TM4C129_RA2)
1619#define ROM_EMACPHYRead                                                       \
1620        ((uint16_t (*)(uint32_t ui32Base,                                     \
1621                        uint8_t ui8PhyAddr,                                   \
1622                       uint8_t ui8RegAddr))ROM_EMACTABLE[15])
1623#endif
1624#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1625    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1626    defined(TARGET_IS_TM4C129_RA2)
1627#define ROM_EMACPHYWrite                                                      \
1628        ((void (*)(uint32_t ui32Base,                                         \
1629                   uint8_t ui8PhyAddr,                                        \
1630                   uint8_t ui8RegAddr,                                        \
1631                   uint16_t ui16Data))ROM_EMACTABLE[16])
1632#endif
1633#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1634    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1635    defined(TARGET_IS_TM4C129_RA2)
1636#define ROM_EMACReset                                                         \
1637        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[17])
1638#endif
1639#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1640    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1641    defined(TARGET_IS_TM4C129_RA2)
1642#define ROM_EMACRxDisable                                                     \
1643        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[18])
1644#endif
1645#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1646    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1647    defined(TARGET_IS_TM4C129_RA2)
1648#define ROM_EMACRxDMACurrentBufferGet                                         \
1649        ((uint8_t * (*)(uint32_t ui32Base))ROM_EMACTABLE[19])
1650#endif
1651#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1652    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1653    defined(TARGET_IS_TM4C129_RA2)
1654#define ROM_EMACRxDMACurrentDescriptorGet                                     \
1655        ((tEMACDMADescriptor * (*)(uint32_t ui32Base))ROM_EMACTABLE[20])
1656#endif
1657#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1658    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1659    defined(TARGET_IS_TM4C129_RA2)
1660#define ROM_EMACRxDMADescriptorListGet                                        \
1661        ((tEMACDMADescriptor * (*)(uint32_t ui32Base))ROM_EMACTABLE[21])
1662#endif
1663#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1664    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1665    defined(TARGET_IS_TM4C129_RA2)
1666#define ROM_EMACRxDMADescriptorListSet                                        \
1667        ((void (*)(uint32_t ui32Base,                                         \
1668                   tEMACDMADescriptor *pDescriptor))ROM_EMACTABLE[22])
1669#endif
1670#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1671    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1672    defined(TARGET_IS_TM4C129_RA2)
1673#define ROM_EMACRxDMAPollDemand                                               \
1674        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[23])
1675#endif
1676#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1677    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1678    defined(TARGET_IS_TM4C129_RA2)
1679#define ROM_EMACRxEnable                                                      \
1680        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[24])
1681#endif
1682#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1683    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1684    defined(TARGET_IS_TM4C129_RA2)
1685#define ROM_EMACRxWatchdogTimerSet                                            \
1686        ((void (*)(uint32_t ui32Base,                                         \
1687                   uint8_t ui8Timeout))ROM_EMACTABLE[25])
1688#endif
1689#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1690    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1691    defined(TARGET_IS_TM4C129_RA2)
1692#define ROM_EMACStatusGet                                                     \
1693        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[26])
1694#endif
1695#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1696    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1697    defined(TARGET_IS_TM4C129_RA2)
1698#define ROM_EMACTxDisable                                                     \
1699        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[27])
1700#endif
1701#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1702    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1703    defined(TARGET_IS_TM4C129_RA2)
1704#define ROM_EMACTxDMACurrentBufferGet                                         \
1705        ((uint8_t * (*)(uint32_t ui32Base))ROM_EMACTABLE[28])
1706#endif
1707#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1708    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1709    defined(TARGET_IS_TM4C129_RA2)
1710#define ROM_EMACTxDMACurrentDescriptorGet                                     \
1711        ((tEMACDMADescriptor * (*)(uint32_t ui32Base))ROM_EMACTABLE[29])
1712#endif
1713#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1714    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1715    defined(TARGET_IS_TM4C129_RA2)
1716#define ROM_EMACTxDMADescriptorListGet                                        \
1717        ((tEMACDMADescriptor * (*)(uint32_t ui32Base))ROM_EMACTABLE[30])
1718#endif
1719#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1720    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1721    defined(TARGET_IS_TM4C129_RA2)
1722#define ROM_EMACTxDMADescriptorListSet                                        \
1723        ((void (*)(uint32_t ui32Base,                                         \
1724                   tEMACDMADescriptor *pDescriptor))ROM_EMACTABLE[31])
1725#endif
1726#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1727    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1728    defined(TARGET_IS_TM4C129_RA2)
1729#define ROM_EMACTxDMAPollDemand                                               \
1730        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[32])
1731#endif
1732#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1733    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1734    defined(TARGET_IS_TM4C129_RA2)
1735#define ROM_EMACTxEnable                                                      \
1736        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[33])
1737#endif
1738#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1739    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1740    defined(TARGET_IS_TM4C129_RA2)
1741#define ROM_EMACTxFlush                                                       \
1742        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[34])
1743#endif
1744#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1745    defined(TARGET_IS_TM4C129_RA2)
1746#define ROM_EMACAddrFilterGet                                                 \
1747        ((uint32_t (*)(uint32_t ui32Base,                                     \
1748                       uint32_t ui32Index))ROM_EMACTABLE[35])
1749#endif
1750#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1751    defined(TARGET_IS_TM4C129_RA2)
1752#define ROM_EMACAddrFilterSet                                                 \
1753        ((void (*)(uint32_t ui32Base,                                         \
1754                   uint32_t ui32Index,                                        \
1755                   uint32_t ui32Config))ROM_EMACTABLE[36])
1756#endif
1757#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1758    defined(TARGET_IS_TM4C129_RA2)
1759#define ROM_EMACHashFilterBitCalculate                                        \
1760        ((uint32_t (*)(uint8_t *pui8MACAddr))ROM_EMACTABLE[37])
1761#endif
1762#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1763    defined(TARGET_IS_TM4C129_RA2)
1764#define ROM_EMACHashFilterGet                                                 \
1765        ((void (*)(uint32_t ui32Base,                                         \
1766                   uint32_t *pui32HashHi,                                     \
1767                   uint32_t *pui32HashLo))ROM_EMACTABLE[38])
1768#endif
1769#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
1770    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1771    defined(TARGET_IS_TM4C129_RA2)
1772#define ROM_EMACHashFilterSet                                                 \
1773        ((void (*)(uint32_t ui32Base,                                         \
1774                   uint32_t ui32HashHi,                                       \
1775                   uint32_t ui32HashLo))ROM_EMACTABLE[39])
1776#endif
1777#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1778    defined(TARGET_IS_TM4C129_RA2)
1779#define ROM_EMACNumAddrGet                                                    \
1780        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[40])
1781#endif
1782#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1783    defined(TARGET_IS_TM4C129_RA2)
1784#define ROM_EMACPHYExtendedRead                                               \
1785        ((uint16_t (*)(uint32_t ui32Base,                                     \
1786                       uint8_t ui8PhyAddr,                                    \
1787                       uint16_t ui16RegAddr))ROM_EMACTABLE[41])
1788#endif
1789#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1790    defined(TARGET_IS_TM4C129_RA2)
1791#define ROM_EMACPHYExtendedWrite                                              \
1792        ((void (*)(uint32_t ui32Base,                                         \
1793                   uint8_t ui8PhyAddr,                                        \
1794                   uint16_t ui16RegAddr,                                      \
1795                   uint16_t ui16Data))ROM_EMACTABLE[42])
1796#endif
1797#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1798    defined(TARGET_IS_TM4C129_RA2)
1799#define ROM_EMACPowerManagementControlGet                                     \
1800        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[43])
1801#endif
1802#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1803    defined(TARGET_IS_TM4C129_RA2)
1804#define ROM_EMACPowerManagementControlSet                                     \
1805        ((void (*)(uint32_t ui32Base,                                         \
1806                   uint32_t ui32Flags))ROM_EMACTABLE[44])
1807#endif
1808#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1809    defined(TARGET_IS_TM4C129_RA2)
1810#define ROM_EMACPowerManagementStatusGet                                      \
1811        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[45])
1812#endif
1813#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1814    defined(TARGET_IS_TM4C129_RA2)
1815#define ROM_EMACRemoteWakeUpFrameFilterGet                                    \
1816        ((void (*)(uint32_t ui32Base,                                         \
1817                   tEMACWakeUpFrameFilter *pFilter))ROM_EMACTABLE[46])
1818#endif
1819#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1820    defined(TARGET_IS_TM4C129_RA2)
1821#define ROM_EMACRemoteWakeUpFrameFilterSet                                    \
1822        ((void (*)(uint32_t ui32Base,                                         \
1823                   const tEMACWakeUpFrameFilter *pFilter))ROM_EMACTABLE[47])
1824#endif
1825#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1826    defined(TARGET_IS_TM4C129_RA2)
1827#define ROM_EMACTimestampAddendSet                                            \
1828        ((void (*)(uint32_t ui32Base,                                         \
1829                   uint32_t ui32Seconds))ROM_EMACTABLE[48])
1830#endif
1831#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1832    defined(TARGET_IS_TM4C129_RA2)
1833#define ROM_EMACTimestampConfigGet                                            \
1834        ((uint32_t (*)(uint32_t ui32Base,                                     \
1835                       uint32_t *pui32SubSecondInc))ROM_EMACTABLE[49])
1836#endif
1837#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1838    defined(TARGET_IS_TM4C129_RA2)
1839#define ROM_EMACTimestampConfigSet                                            \
1840        ((void (*)(uint32_t ui32Base,                                         \
1841                   uint32_t ui32Config,                                       \
1842                   uint32_t ui32SubSecondInc))ROM_EMACTABLE[50])
1843#endif
1844#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1845    defined(TARGET_IS_TM4C129_RA2)
1846#define ROM_EMACTimestampDisable                                              \
1847        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[51])
1848#endif
1849#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1850    defined(TARGET_IS_TM4C129_RA2)
1851#define ROM_EMACTimestampEnable                                               \
1852        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[52])
1853#endif
1854#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1855    defined(TARGET_IS_TM4C129_RA2)
1856#define ROM_EMACTimestampIntStatus                                            \
1857        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[53])
1858#endif
1859#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1860    defined(TARGET_IS_TM4C129_RA2)
1861#define ROM_EMACTimestampPPSCommand                                           \
1862        ((void (*)(uint32_t ui32Base,                                         \
1863                   uint8_t ui8Cmd))ROM_EMACTABLE[54])
1864#endif
1865#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1866    defined(TARGET_IS_TM4C129_RA2)
1867#define ROM_EMACTimestampPPSCommandModeSet                                    \
1868        ((void (*)(uint32_t ui32Base,                                         \
1869                   uint32_t ui32Config))ROM_EMACTABLE[55])
1870#endif
1871#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1872    defined(TARGET_IS_TM4C129_RA2)
1873#define ROM_EMACTimestampPPSPeriodSet                                         \
1874        ((void (*)(uint32_t ui32Base,                                         \
1875                   uint32_t ui32Period,                                       \
1876                   uint32_t ui32Width))ROM_EMACTABLE[56])
1877#endif
1878#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1879    defined(TARGET_IS_TM4C129_RA2)
1880#define ROM_EMACTimestampPPSSimpleModeSet                                     \
1881        ((void (*)(uint32_t ui32Base,                                         \
1882                   uint32_t ui32FreqConfig))ROM_EMACTABLE[57])
1883#endif
1884#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1885    defined(TARGET_IS_TM4C129_RA2)
1886#define ROM_EMACTimestampSysTimeGet                                           \
1887        ((void (*)(uint32_t ui32Base,                                         \
1888                   uint32_t *pui32Seconds,                                    \
1889                   uint32_t *pui32SubSeconds))ROM_EMACTABLE[58])
1890#endif
1891#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1892    defined(TARGET_IS_TM4C129_RA2)
1893#define ROM_EMACTimestampSysTimeSet                                           \
1894        ((void (*)(uint32_t ui32Base,                                         \
1895                   uint32_t ui32Seconds,                                      \
1896                   uint32_t ui32SubSeconds))ROM_EMACTABLE[59])
1897#endif
1898#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1899    defined(TARGET_IS_TM4C129_RA2)
1900#define ROM_EMACTimestampSysTimeUpdate                                        \
1901        ((void (*)(uint32_t ui32Base,                                         \
1902                   uint32_t ui32Seconds,                                      \
1903                   uint32_t ui32SubSeconds,                                   \
1904                   bool bInc))ROM_EMACTABLE[60])
1905#endif
1906#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1907    defined(TARGET_IS_TM4C129_RA2)
1908#define ROM_EMACTimestampTargetIntDisable                                     \
1909        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[61])
1910#endif
1911#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1912    defined(TARGET_IS_TM4C129_RA2)
1913#define ROM_EMACTimestampTargetIntEnable                                      \
1914        ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[62])
1915#endif
1916#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1917    defined(TARGET_IS_TM4C129_RA2)
1918#define ROM_EMACTimestampTargetSet                                            \
1919        ((void (*)(uint32_t ui32Base,                                         \
1920                   uint32_t ui32Seconds,                                      \
1921                   uint32_t ui32Nanoseconds))ROM_EMACTABLE[63])
1922#endif
1923#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1924    defined(TARGET_IS_TM4C129_RA2)
1925#define ROM_EMACVLANHashFilterBitCalculate                                    \
1926        ((uint32_t (*)(uint16_t ui16Tag))ROM_EMACTABLE[64])
1927#endif
1928#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1929    defined(TARGET_IS_TM4C129_RA2)
1930#define ROM_EMACVLANHashFilterGet                                             \
1931        ((uint32_t (*)(uint32_t ui32Base))ROM_EMACTABLE[65])
1932#endif
1933#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1934    defined(TARGET_IS_TM4C129_RA2)
1935#define ROM_EMACVLANHashFilterSet                                             \
1936        ((void (*)(uint32_t ui32Base,                                         \
1937                   uint32_t ui32Hash))ROM_EMACTABLE[66])
1938#endif
1939#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1940    defined(TARGET_IS_TM4C129_RA2)
1941#define ROM_EMACVLANRxConfigGet                                               \
1942        ((uint32_t (*)(uint32_t ui32Base,                                     \
1943                       uint16_t *pui16Tag))ROM_EMACTABLE[67])
1944#endif
1945#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1946    defined(TARGET_IS_TM4C129_RA2)
1947#define ROM_EMACVLANRxConfigSet                                               \
1948        ((void (*)(uint32_t ui32Base,                                         \
1949                   uint16_t ui16Tag,                                          \
1950                   uint32_t ui32Config))ROM_EMACTABLE[68])
1951#endif
1952#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1953    defined(TARGET_IS_TM4C129_RA2)
1954#define ROM_EMACVLANTxConfigGet                                               \
1955        ((uint32_t (*)(uint32_t ui32Base,                                     \
1956                       uint16_t *pui16Tag))ROM_EMACTABLE[69])
1957#endif
1958#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1959    defined(TARGET_IS_TM4C129_RA2)
1960#define ROM_EMACVLANTxConfigSet                                               \
1961        ((void (*)(uint32_t ui32Base,                                         \
1962                   uint16_t ui16Tag,                                          \
1963                   uint32_t ui32Config))ROM_EMACTABLE[70])
1964#endif
1965#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
1966    defined(TARGET_IS_TM4C129_RA2)
1967#define ROM_UpdateEMAC                                                        \
1968        ((void (*)(uint32_t ui32Clock))ROM_EMACTABLE[71])
1969#endif
1970
1971//*****************************************************************************
1972//
1973// Macros for calling ROM functions in the Flash API.
1974//
1975//*****************************************************************************
1976#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
1977    defined(TARGET_IS_TM4C123_RA3) ||                                         \
1978    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1979    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1980    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1981    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1982    defined(TARGET_IS_TM4C129_RA2)
1983#define ROM_FlashProgram                                                      \
1984        ((int32_t (*)(uint32_t *pui32Data,                                    \
1985                      uint32_t ui32Address,                                   \
1986                      uint32_t ui32Count))ROM_FLASHTABLE[0])
1987#endif
1988#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
1989    defined(TARGET_IS_TM4C123_RA3) ||                                         \
1990    defined(TARGET_IS_TM4C123_RB1) ||                                         \
1991    defined(TARGET_IS_TM4C123_RB2) ||                                         \
1992    defined(TARGET_IS_TM4C129_RA0) ||                                         \
1993    defined(TARGET_IS_TM4C129_RA1) ||                                         \
1994    defined(TARGET_IS_TM4C129_RA2)
1995#define ROM_FlashErase                                                        \
1996        ((int32_t (*)(uint32_t ui32Address))ROM_FLASHTABLE[3])
1997#endif
1998#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
1999    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2000    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2001    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2002    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2003    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2004    defined(TARGET_IS_TM4C129_RA2)
2005#define ROM_FlashProtectGet                                                   \
2006        ((tFlashProtection (*)(uint32_t ui32Address))ROM_FLASHTABLE[4])
2007#endif
2008#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2009    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2010    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2011    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2012    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2013    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2014    defined(TARGET_IS_TM4C129_RA2)
2015#define ROM_FlashProtectSet                                                   \
2016        ((int32_t (*)(uint32_t ui32Address,                                   \
2017                      tFlashProtection eProtect))ROM_FLASHTABLE[5])
2018#endif
2019#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2020    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2021    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2022    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2023    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2024    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2025    defined(TARGET_IS_TM4C129_RA2)
2026#define ROM_FlashProtectSave                                                  \
2027        ((int32_t (*)(void))ROM_FLASHTABLE[6])
2028#endif
2029#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2030    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2031    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2032    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2033    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2034    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2035    defined(TARGET_IS_TM4C129_RA2)
2036#define ROM_FlashUserGet                                                      \
2037        ((int32_t (*)(uint32_t *pui32User0,                                   \
2038                      uint32_t *pui32User1))ROM_FLASHTABLE[7])
2039#endif
2040#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2041    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2042    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2043    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2044    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2045    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2046    defined(TARGET_IS_TM4C129_RA2)
2047#define ROM_FlashUserSet                                                      \
2048        ((int32_t (*)(uint32_t ui32User0,                                     \
2049                      uint32_t ui32User1))ROM_FLASHTABLE[8])
2050#endif
2051#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2052    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2053    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2054    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2055    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2056    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2057    defined(TARGET_IS_TM4C129_RA2)
2058#define ROM_FlashUserSave                                                     \
2059        ((int32_t (*)(void))ROM_FLASHTABLE[9])
2060#endif
2061#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2062    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2063    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2064    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2065    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2066    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2067    defined(TARGET_IS_TM4C129_RA2)
2068#define ROM_FlashIntEnable                                                    \
2069        ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[10])
2070#endif
2071#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2072    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2073    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2074    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2075    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2076    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2077    defined(TARGET_IS_TM4C129_RA2)
2078#define ROM_FlashIntDisable                                                   \
2079        ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[11])
2080#endif
2081#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2082    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2083    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2084    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2085    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2086    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2087    defined(TARGET_IS_TM4C129_RA2)
2088#define ROM_FlashIntStatus                                                    \
2089        ((uint32_t (*)(bool bMasked))ROM_FLASHTABLE[12])
2090#endif
2091#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2092    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2093    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2094    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2095    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2096    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2097    defined(TARGET_IS_TM4C129_RA2)
2098#define ROM_FlashIntClear                                                     \
2099        ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[13])
2100#endif
2101
2102//*****************************************************************************
2103//
2104// Macros for calling ROM functions in the FPU API.
2105//
2106//*****************************************************************************
2107#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2108    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2109    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2110    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2111    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2112    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2113    defined(TARGET_IS_TM4C129_RA2)
2114#define ROM_FPUEnable                                                         \
2115        ((void (*)(void))ROM_FPUTABLE[0])
2116#endif
2117#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2118    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2119    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2120    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2121    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2122    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2123    defined(TARGET_IS_TM4C129_RA2)
2124#define ROM_FPUDisable                                                        \
2125        ((void (*)(void))ROM_FPUTABLE[1])
2126#endif
2127#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2128    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2129    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2130    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2131    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2132    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2133    defined(TARGET_IS_TM4C129_RA2)
2134#define ROM_FPUFlushToZeroModeSet                                             \
2135        ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[2])
2136#endif
2137#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2138    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2139    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2140    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2141    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2142    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2143    defined(TARGET_IS_TM4C129_RA2)
2144#define ROM_FPUHalfPrecisionModeSet                                           \
2145        ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[3])
2146#endif
2147#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2148    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2149    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2150    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2151    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2152    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2153    defined(TARGET_IS_TM4C129_RA2)
2154#define ROM_FPULazyStackingEnable                                             \
2155        ((void (*)(void))ROM_FPUTABLE[4])
2156#endif
2157#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2158    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2159    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2160    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2161    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2162    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2163    defined(TARGET_IS_TM4C129_RA2)
2164#define ROM_FPUNaNModeSet                                                     \
2165        ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[5])
2166#endif
2167#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2168    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2169    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2170    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2171    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2172    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2173    defined(TARGET_IS_TM4C129_RA2)
2174#define ROM_FPURoundingModeSet                                                \
2175        ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[6])
2176#endif
2177#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2178    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2179    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2180    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2181    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2182    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2183    defined(TARGET_IS_TM4C129_RA2)
2184#define ROM_FPUStackingDisable                                                \
2185        ((void (*)(void))ROM_FPUTABLE[7])
2186#endif
2187#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2188    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2189    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2190    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2191    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2192    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2193    defined(TARGET_IS_TM4C129_RA2)
2194#define ROM_FPUStackingEnable                                                 \
2195        ((void (*)(void))ROM_FPUTABLE[8])
2196#endif
2197
2198//*****************************************************************************
2199//
2200// Macros for calling ROM functions in the GPIO API.
2201//
2202//*****************************************************************************
2203#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2204    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2205    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2206    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2207    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2208    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2209    defined(TARGET_IS_TM4C129_RA2)
2210#define ROM_GPIOPinWrite                                                      \
2211        ((void (*)(uint32_t ui32Port,                                         \
2212                   uint8_t ui8Pins,                                           \
2213                   uint8_t ui8Val))ROM_GPIOTABLE[0])
2214#endif
2215#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2216    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2217    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2218    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2219    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2220    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2221    defined(TARGET_IS_TM4C129_RA2)
2222#define ROM_GPIODirModeSet                                                    \
2223        ((void (*)(uint32_t ui32Port,                                         \
2224                   uint8_t ui8Pins,                                           \
2225                   uint32_t ui32PinIO))ROM_GPIOTABLE[1])
2226#endif
2227#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2228    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2229    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2230    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2231    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2232    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2233    defined(TARGET_IS_TM4C129_RA2)
2234#define ROM_GPIODirModeGet                                                    \
2235        ((uint32_t (*)(uint32_t ui32Port,                                     \
2236                       uint8_t ui8Pin))ROM_GPIOTABLE[2])
2237#endif
2238#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2239    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2240    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2241    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2242    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2243    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2244    defined(TARGET_IS_TM4C129_RA2)
2245#define ROM_GPIOIntTypeSet                                                    \
2246        ((void (*)(uint32_t ui32Port,                                         \
2247                   uint8_t ui8Pins,                                           \
2248                   uint32_t ui32IntType))ROM_GPIOTABLE[3])
2249#endif
2250#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2251    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2252    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2253    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2254    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2255    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2256    defined(TARGET_IS_TM4C129_RA2)
2257#define ROM_GPIOIntTypeGet                                                    \
2258        ((uint32_t (*)(uint32_t ui32Port,                                     \
2259                       uint8_t ui8Pin))ROM_GPIOTABLE[4])
2260#endif
2261#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2262    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2263    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2264    defined(TARGET_IS_TM4C123_RB2)
2265#define ROM_GPIOPadConfigSet                                                  \
2266        ((void (*)(uint32_t ui32Port,                                         \
2267                   uint8_t ui8Pins,                                           \
2268                   uint32_t ui32Strength,                                     \
2269                   uint32_t ui32PadType))ROM_GPIOTABLE[5])
2270#endif
2271#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2272    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2273    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2274    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2275    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2276    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2277    defined(TARGET_IS_TM4C129_RA2)
2278#define ROM_GPIOPadConfigGet                                                  \
2279        ((void (*)(uint32_t ui32Port,                                         \
2280                   uint8_t ui8Pin,                                            \
2281                   uint32_t *pui32Strength,                                   \
2282                   uint32_t *pui32PadType))ROM_GPIOTABLE[6])
2283#endif
2284#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2285    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2286    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2287    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2288    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2289    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2290    defined(TARGET_IS_TM4C129_RA2)
2291#define ROM_GPIOPinRead                                                       \
2292        ((int32_t (*)(uint32_t ui32Port,                                      \
2293                      uint8_t ui8Pins))ROM_GPIOTABLE[11])
2294#endif
2295#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2296    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2297    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2298    defined(TARGET_IS_TM4C123_RB2)
2299#define ROM_GPIOPinTypeCAN                                                    \
2300        ((void (*)(uint32_t ui32Port,                                         \
2301                   uint8_t ui8Pins))ROM_GPIOTABLE[12])
2302#endif
2303#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2304    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2305    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2306    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2307    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2308    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2309    defined(TARGET_IS_TM4C129_RA2)
2310#define ROM_GPIOPinTypeComparator                                             \
2311        ((void (*)(uint32_t ui32Port,                                         \
2312                   uint8_t ui8Pins))ROM_GPIOTABLE[13])
2313#endif
2314#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2315    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2316    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2317    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2318    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2319    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2320    defined(TARGET_IS_TM4C129_RA2)
2321#define ROM_GPIOPinTypeGPIOInput                                              \
2322        ((void (*)(uint32_t ui32Port,                                         \
2323                   uint8_t ui8Pins))ROM_GPIOTABLE[14])
2324#endif
2325#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2326    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2327    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2328    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2329    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2330    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2331    defined(TARGET_IS_TM4C129_RA2)
2332#define ROM_GPIOPinTypeGPIOOutput                                             \
2333        ((void (*)(uint32_t ui32Port,                                         \
2334                   uint8_t ui8Pins))ROM_GPIOTABLE[15])
2335#endif
2336#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2337    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2338    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2339    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2340    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2341    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2342    defined(TARGET_IS_TM4C129_RA2)
2343#define ROM_GPIOPinTypeI2C                                                    \
2344        ((void (*)(uint32_t ui32Port,                                         \
2345                   uint8_t ui8Pins))ROM_GPIOTABLE[16])
2346#endif
2347#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2348    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2349    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2350    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2351    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2352    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2353    defined(TARGET_IS_TM4C129_RA2)
2354#define ROM_GPIOPinTypePWM                                                    \
2355        ((void (*)(uint32_t ui32Port,                                         \
2356                   uint8_t ui8Pins))ROM_GPIOTABLE[17])
2357#endif
2358#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2359    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2360    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2361    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2362    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2363    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2364    defined(TARGET_IS_TM4C129_RA2)
2365#define ROM_GPIOPinTypeQEI                                                    \
2366        ((void (*)(uint32_t ui32Port,                                         \
2367                   uint8_t ui8Pins))ROM_GPIOTABLE[18])
2368#endif
2369#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2370    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2371    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2372    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2373    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2374    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2375    defined(TARGET_IS_TM4C129_RA2)
2376#define ROM_GPIOPinTypeSSI                                                    \
2377        ((void (*)(uint32_t ui32Port,                                         \
2378                   uint8_t ui8Pins))ROM_GPIOTABLE[19])
2379#endif
2380#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2381    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2382    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2383    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2384    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2385    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2386    defined(TARGET_IS_TM4C129_RA2)
2387#define ROM_GPIOPinTypeTimer                                                  \
2388        ((void (*)(uint32_t ui32Port,                                         \
2389                   uint8_t ui8Pins))ROM_GPIOTABLE[20])
2390#endif
2391#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2392    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2393    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2394    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2395    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2396    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2397    defined(TARGET_IS_TM4C129_RA2)
2398#define ROM_GPIOPinTypeUART                                                   \
2399        ((void (*)(uint32_t ui32Port,                                         \
2400                   uint8_t ui8Pins))ROM_GPIOTABLE[21])
2401#endif
2402#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2403    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2404    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2405    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2406    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2407    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2408    defined(TARGET_IS_TM4C129_RA2)
2409#define ROM_GPIOPinTypeGPIOOutputOD                                           \
2410        ((void (*)(uint32_t ui32Port,                                         \
2411                   uint8_t ui8Pins))ROM_GPIOTABLE[22])
2412#endif
2413#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2414    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2415    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2416    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2417    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2418    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2419    defined(TARGET_IS_TM4C129_RA2)
2420#define ROM_GPIOPinTypeADC                                                    \
2421        ((void (*)(uint32_t ui32Port,                                         \
2422                   uint8_t ui8Pins))ROM_GPIOTABLE[23])
2423#endif
2424#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2425    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2426    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2427    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2428    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2429    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2430    defined(TARGET_IS_TM4C129_RA2)
2431#define ROM_GPIOPinTypeUSBDigital                                             \
2432        ((void (*)(uint32_t ui32Port,                                         \
2433                   uint8_t ui8Pins))ROM_GPIOTABLE[24])
2434#endif
2435#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2436    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2437    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2438    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2439    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2440    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2441    defined(TARGET_IS_TM4C129_RA2)
2442#define ROM_GPIOPinConfigure                                                  \
2443        ((void (*)(uint32_t ui32PinConfig))ROM_GPIOTABLE[26])
2444#endif
2445#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2446    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2447    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2448    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2449    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2450    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2451    defined(TARGET_IS_TM4C129_RA2)
2452#define ROM_GPIOPinTypeUSBAnalog                                              \
2453        ((void (*)(uint32_t ui32Port,                                         \
2454                   uint8_t ui8Pins))ROM_GPIOTABLE[28])
2455#endif
2456#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2457    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2458    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2459    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2460    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2461    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2462    defined(TARGET_IS_TM4C129_RA2)
2463#define ROM_GPIODMATriggerEnable                                              \
2464        ((void (*)(uint32_t ui32Port,                                         \
2465                   uint8_t ui8Pins))ROM_GPIOTABLE[31])
2466#endif
2467#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2468    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2469    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2470    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2471    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2472    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2473    defined(TARGET_IS_TM4C129_RA2)
2474#define ROM_GPIODMATriggerDisable                                             \
2475        ((void (*)(uint32_t ui32Port,                                         \
2476                   uint8_t ui8Pins))ROM_GPIOTABLE[32])
2477#endif
2478#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2479    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2480    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2481    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2482    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2483    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2484    defined(TARGET_IS_TM4C129_RA2)
2485#define ROM_GPIOADCTriggerEnable                                              \
2486        ((void (*)(uint32_t ui32Port,                                         \
2487                   uint8_t ui8Pins))ROM_GPIOTABLE[33])
2488#endif
2489#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2490    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2491    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2492    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2493    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2494    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2495    defined(TARGET_IS_TM4C129_RA2)
2496#define ROM_GPIOADCTriggerDisable                                             \
2497        ((void (*)(uint32_t ui32Port,                                         \
2498                   uint8_t ui8Pins))ROM_GPIOTABLE[34])
2499#endif
2500#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
2501    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2502    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2503    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2504    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2505    defined(TARGET_IS_TM4C129_RA2)
2506#define ROM_GPIOPinTypeI2CSCL                                                 \
2507        ((void (*)(uint32_t ui32Port,                                         \
2508                   uint8_t ui8Pins))ROM_GPIOTABLE[39])
2509#endif
2510#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2511    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2512    defined(TARGET_IS_TM4C129_RA2)
2513#define ROM_GPIOPinTypeOneWire                                                \
2514        ((void (*)(uint32_t ui32Port,                                         \
2515                   uint8_t ui8Pins))ROM_GPIOTABLE[44])
2516#endif
2517#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2518    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2519    defined(TARGET_IS_TM4C129_RA2)
2520#define ROM_GPIOPinTypeWakeHigh                                               \
2521        ((void (*)(uint32_t ui32Port,                                         \
2522                   uint8_t ui8Pins))ROM_GPIOTABLE[48])
2523#endif
2524#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2525    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2526    defined(TARGET_IS_TM4C129_RA2)
2527#define ROM_GPIOPinTypeWakeLow                                                \
2528        ((void (*)(uint32_t ui32Port,                                         \
2529                   uint8_t ui8Pins))ROM_GPIOTABLE[49])
2530#endif
2531#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2532    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2533    defined(TARGET_IS_TM4C129_RA2)
2534#define ROM_GPIOIntClear                                                      \
2535        ((void (*)(uint32_t ui32Port,                                         \
2536                   uint32_t ui32IntFlags))ROM_GPIOTABLE[51])
2537#endif
2538#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2539    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2540    defined(TARGET_IS_TM4C129_RA2)
2541#define ROM_GPIOIntDisable                                                    \
2542        ((void (*)(uint32_t ui32Port,                                         \
2543                   uint32_t ui32IntFlags))ROM_GPIOTABLE[52])
2544#endif
2545#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2546    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2547    defined(TARGET_IS_TM4C129_RA2)
2548#define ROM_GPIOIntEnable                                                     \
2549        ((void (*)(uint32_t ui32Port,                                         \
2550                   uint32_t ui32IntFlags))ROM_GPIOTABLE[53])
2551#endif
2552#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2553    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2554    defined(TARGET_IS_TM4C129_RA2)
2555#define ROM_GPIOIntStatus                                                     \
2556        ((uint32_t (*)(uint32_t ui32Port,                                     \
2557                       bool bMasked))ROM_GPIOTABLE[54])
2558#endif
2559
2560//*****************************************************************************
2561//
2562// Macros for calling ROM functions in the Hibernate API.
2563//
2564//*****************************************************************************
2565#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2566    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2567    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2568    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2569    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2570    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2571    defined(TARGET_IS_TM4C129_RA2)
2572#define ROM_HibernateIntClear                                                 \
2573        ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[0])
2574#endif
2575#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2576    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2577    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2578    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2579    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2580    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2581    defined(TARGET_IS_TM4C129_RA2)
2582#define ROM_HibernateEnableExpClk                                             \
2583        ((void (*)(uint32_t ui32HibClk))ROM_HIBERNATETABLE[1])
2584#endif
2585#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2586    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2587    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2588    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2589    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2590    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2591    defined(TARGET_IS_TM4C129_RA2)
2592#define ROM_HibernateDisable                                                  \
2593        ((void (*)(void))ROM_HIBERNATETABLE[2])
2594#endif
2595#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2596    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2597    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2598    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2599    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2600    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2601    defined(TARGET_IS_TM4C129_RA2)
2602#define ROM_HibernateRTCEnable                                                \
2603        ((void (*)(void))ROM_HIBERNATETABLE[4])
2604#endif
2605#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2606    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2607    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2608    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2609    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2610    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2611    defined(TARGET_IS_TM4C129_RA2)
2612#define ROM_HibernateRTCDisable                                               \
2613        ((void (*)(void))ROM_HIBERNATETABLE[5])
2614#endif
2615#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2616    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2617    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2618    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2619    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2620    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2621    defined(TARGET_IS_TM4C129_RA2)
2622#define ROM_HibernateWakeSet                                                  \
2623        ((void (*)(uint32_t ui32WakeFlags))ROM_HIBERNATETABLE[6])
2624#endif
2625#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2626    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2627    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2628    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2629    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2630    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2631    defined(TARGET_IS_TM4C129_RA2)
2632#define ROM_HibernateWakeGet                                                  \
2633        ((uint32_t (*)(void))ROM_HIBERNATETABLE[7])
2634#endif
2635#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2636    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2637    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2638    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2639    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2640    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2641    defined(TARGET_IS_TM4C129_RA2)
2642#define ROM_HibernateLowBatSet                                                \
2643        ((void (*)(uint32_t ui32LowBatFlags))ROM_HIBERNATETABLE[8])
2644#endif
2645#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2646    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2647    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2648    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2649    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2650    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2651    defined(TARGET_IS_TM4C129_RA2)
2652#define ROM_HibernateLowBatGet                                                \
2653        ((uint32_t (*)(void))ROM_HIBERNATETABLE[9])
2654#endif
2655#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2656    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2657    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2658    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2659    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2660    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2661    defined(TARGET_IS_TM4C129_RA2)
2662#define ROM_HibernateRTCSet                                                   \
2663        ((void (*)(uint32_t ui32RTCValue))ROM_HIBERNATETABLE[10])
2664#endif
2665#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2666    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2667    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2668    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2669    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2670    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2671    defined(TARGET_IS_TM4C129_RA2)
2672#define ROM_HibernateRTCGet                                                   \
2673        ((uint32_t (*)(void))ROM_HIBERNATETABLE[11])
2674#endif
2675#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2676    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2677    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2678    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2679    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2680    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2681    defined(TARGET_IS_TM4C129_RA2)
2682#define ROM_HibernateRTCTrimSet                                               \
2683        ((void (*)(uint32_t ui32Trim))ROM_HIBERNATETABLE[16])
2684#endif
2685#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2686    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2687    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2688    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2689    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2690    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2691    defined(TARGET_IS_TM4C129_RA2)
2692#define ROM_HibernateRTCTrimGet                                               \
2693        ((uint32_t (*)(void))ROM_HIBERNATETABLE[17])
2694#endif
2695#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2696    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2697    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2698    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2699    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2700    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2701    defined(TARGET_IS_TM4C129_RA2)
2702#define ROM_HibernateDataSet                                                  \
2703        ((void (*)(uint32_t *pui32Data,                                       \
2704                   uint32_t ui32Count))ROM_HIBERNATETABLE[18])
2705#endif
2706#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2707    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2708    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2709    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2710    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2711    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2712    defined(TARGET_IS_TM4C129_RA2)
2713#define ROM_HibernateDataGet                                                  \
2714        ((void (*)(uint32_t *pui32Data,                                       \
2715                   uint32_t ui32Count))ROM_HIBERNATETABLE[19])
2716#endif
2717#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2718    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2719    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2720    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2721    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2722    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2723    defined(TARGET_IS_TM4C129_RA2)
2724#define ROM_HibernateRequest                                                  \
2725        ((void (*)(void))ROM_HIBERNATETABLE[20])
2726#endif
2727#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2728    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2729    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2730    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2731    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2732    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2733    defined(TARGET_IS_TM4C129_RA2)
2734#define ROM_HibernateIntEnable                                                \
2735        ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[21])
2736#endif
2737#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2738    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2739    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2740    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2741    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2742    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2743    defined(TARGET_IS_TM4C129_RA2)
2744#define ROM_HibernateIntDisable                                               \
2745        ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[22])
2746#endif
2747#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2748    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2749    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2750    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2751    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2752    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2753    defined(TARGET_IS_TM4C129_RA2)
2754#define ROM_HibernateIntStatus                                                \
2755        ((uint32_t (*)(bool bMasked))ROM_HIBERNATETABLE[23])
2756#endif
2757#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2758    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2759    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2760    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2761    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2762    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2763    defined(TARGET_IS_TM4C129_RA2)
2764#define ROM_HibernateIsActive                                                 \
2765        ((uint32_t (*)(void))ROM_HIBERNATETABLE[24])
2766#endif
2767#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2768    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2769    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2770    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2771    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2772    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2773    defined(TARGET_IS_TM4C129_RA2)
2774#define ROM_HibernateRTCSSGet                                                 \
2775        ((uint32_t (*)(void))ROM_HIBERNATETABLE[27])
2776#endif
2777#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2778    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2779    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2780    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2781    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2782    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2783    defined(TARGET_IS_TM4C129_RA2)
2784#define ROM_HibernateClockConfig                                              \
2785        ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[28])
2786#endif
2787#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2788    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2789    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2790    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2791    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2792    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2793    defined(TARGET_IS_TM4C129_RA2)
2794#define ROM_HibernateBatCheckStart                                            \
2795        ((void (*)(void))ROM_HIBERNATETABLE[29])
2796#endif
2797#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2798    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2799    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2800    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2801    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2802    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2803    defined(TARGET_IS_TM4C129_RA2)
2804#define ROM_HibernateBatCheckDone                                             \
2805        ((uint32_t (*)(void))ROM_HIBERNATETABLE[30])
2806#endif
2807#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2808    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2809    defined(TARGET_IS_TM4C129_RA2)
2810#define ROM_HibernateGPIORetentionEnable                                      \
2811        ((void (*)(void))ROM_HIBERNATETABLE[31])
2812#endif
2813#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2814    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2815    defined(TARGET_IS_TM4C129_RA2)
2816#define ROM_HibernateGPIORetentionDisable                                     \
2817        ((void (*)(void))ROM_HIBERNATETABLE[32])
2818#endif
2819#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2820    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2821    defined(TARGET_IS_TM4C129_RA2)
2822#define ROM_HibernateGPIORetentionGet                                         \
2823        ((bool (*)(void))ROM_HIBERNATETABLE[33])
2824#endif
2825#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2826    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2827    defined(TARGET_IS_TM4C129_RA2)
2828#define ROM_HibernateCounterMode                                              \
2829        ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[34])
2830#endif
2831#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
2832    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2833    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2834    defined(TARGET_IS_TM4C129_RA2)
2835#define ROM_HibernateCalendarSet                                              \
2836        ((void (*)(struct tm *psTime))ROM_HIBERNATETABLE[35])
2837#endif
2838#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2839    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2840    defined(TARGET_IS_TM4C129_RA2)
2841#define ROM_HibernateCalendarGet                                              \
2842        ((int (*)(struct tm *psTime))ROM_HIBERNATETABLE[36])
2843#endif
2844#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2845    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2846    defined(TARGET_IS_TM4C129_RA2)
2847#define ROM_HibernateCalendarMatchSet                                         \
2848        ((void (*)(uint32_t ui32Index,                                        \
2849                   struct tm *psTime))ROM_HIBERNATETABLE[37])
2850#endif
2851#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2852    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2853    defined(TARGET_IS_TM4C129_RA2)
2854#define ROM_HibernateCalendarMatchGet                                         \
2855        ((void (*)(uint32_t ui32Index,                                        \
2856                   struct tm *psTime))ROM_HIBERNATETABLE[38])
2857#endif
2858#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2859    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2860    defined(TARGET_IS_TM4C129_RA2)
2861#define ROM_HibernateTamperDisable                                            \
2862        ((void (*)(void))ROM_HIBERNATETABLE[39])
2863#endif
2864#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2865    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2866    defined(TARGET_IS_TM4C129_RA2)
2867#define ROM_HibernateTamperEnable                                             \
2868        ((void (*)(void))ROM_HIBERNATETABLE[40])
2869#endif
2870#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2871    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2872    defined(TARGET_IS_TM4C129_RA2)
2873#define ROM_HibernateTamperEventsClear                                        \
2874        ((void (*)(void))ROM_HIBERNATETABLE[41])
2875#endif
2876#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2877    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2878    defined(TARGET_IS_TM4C129_RA2)
2879#define ROM_HibernateTamperEventsConfig                                       \
2880        ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[42])
2881#endif
2882#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2883    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2884    defined(TARGET_IS_TM4C129_RA2)
2885#define ROM_HibernateTamperEventsGet                                          \
2886        ((bool (*)(uint32_t ui32Index,                                        \
2887                   uint32_t *pui32RTC,                                        \
2888                   uint32_t *pui32Event))ROM_HIBERNATETABLE[43])
2889#endif
2890#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2891    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2892    defined(TARGET_IS_TM4C129_RA2)
2893#define ROM_HibernateTamperExtOscValid                                        \
2894        ((bool (*)(void))ROM_HIBERNATETABLE[44])
2895#endif
2896#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2897    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2898    defined(TARGET_IS_TM4C129_RA2)
2899#define ROM_HibernateTamperExtOscRecover                                      \
2900        ((void (*)(void))ROM_HIBERNATETABLE[45])
2901#endif
2902#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2903    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2904    defined(TARGET_IS_TM4C129_RA2)
2905#define ROM_HibernateTamperIODisable                                          \
2906        ((void (*)(uint32_t ui32Input))ROM_HIBERNATETABLE[46])
2907#endif
2908#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2909    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2910    defined(TARGET_IS_TM4C129_RA2)
2911#define ROM_HibernateTamperIOEnable                                           \
2912        ((void (*)(uint32_t ui32Input,                                        \
2913                   uint32_t ui32Config))ROM_HIBERNATETABLE[47])
2914#endif
2915#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2916    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2917    defined(TARGET_IS_TM4C129_RA2)
2918#define ROM_HibernateTamperStatusGet                                          \
2919        ((uint32_t (*)(void))ROM_HIBERNATETABLE[48])
2920#endif
2921#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
2922    defined(TARGET_IS_TM4C129_RA2)
2923#define ROM_HibernateRTCMatchGet                                              \
2924        ((uint32_t (*)(uint32_t ui32Match))ROM_HIBERNATETABLE[49])
2925#endif
2926#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
2927    defined(TARGET_IS_TM4C129_RA2)
2928#define ROM_HibernateRTCMatchSet                                              \
2929        ((void (*)(uint32_t ui32Match,                                        \
2930                   uint32_t ui32Value))ROM_HIBERNATETABLE[50])
2931#endif
2932#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
2933    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2934    defined(TARGET_IS_TM4C129_RA2)
2935#define ROM_HibernateRTCSSMatchGet                                            \
2936        ((uint32_t (*)(uint32_t ui32Match))ROM_HIBERNATETABLE[51])
2937#endif
2938#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
2939    defined(TARGET_IS_TM4C129_RA2)
2940#define ROM_HibernateRTCSSMatchSet                                            \
2941        ((void (*)(uint32_t ui32Match,                                        \
2942                   uint32_t ui32Value))ROM_HIBERNATETABLE[52])
2943#endif
2944
2945//*****************************************************************************
2946//
2947// Macros for calling ROM functions in the I2C API.
2948//
2949//*****************************************************************************
2950#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2951    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2952    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2953    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2954    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2955    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2956    defined(TARGET_IS_TM4C129_RA2)
2957#define ROM_I2CMasterDataPut                                                  \
2958        ((void (*)(uint32_t ui32Base,                                         \
2959                   uint8_t ui8Data))ROM_I2CTABLE[0])
2960#endif
2961#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2962    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2963    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2964    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2965    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2966    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2967    defined(TARGET_IS_TM4C129_RA2)
2968#define ROM_I2CMasterInitExpClk                                               \
2969        ((void (*)(uint32_t ui32Base,                                         \
2970                   uint32_t ui32I2CClk,                                       \
2971                   bool bFast))ROM_I2CTABLE[1])
2972#endif
2973#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
2974    defined(TARGET_IS_TM4C129_RA2)
2975#define ROM_I2CSlaveInit                                                      \
2976        ((void (*)(uint32_t ui32Base,                                         \
2977                   uint8_t ui8SlaveAddr))ROM_I2CTABLE[2])
2978#endif
2979#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2980    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2981    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2982    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2983    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2984    defined(TARGET_IS_TM4C129_RA1) ||                                         \
2985    defined(TARGET_IS_TM4C129_RA2)
2986#define ROM_I2CMasterEnable                                                   \
2987        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[3])
2988#endif
2989#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
2990    defined(TARGET_IS_TM4C129_RA2)
2991#define ROM_I2CSlaveEnable                                                    \
2992        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[4])
2993#endif
2994#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
2995    defined(TARGET_IS_TM4C123_RA3) ||                                         \
2996    defined(TARGET_IS_TM4C123_RB1) ||                                         \
2997    defined(TARGET_IS_TM4C123_RB2) ||                                         \
2998    defined(TARGET_IS_TM4C129_RA0) ||                                         \
2999    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3000    defined(TARGET_IS_TM4C129_RA2)
3001#define ROM_I2CMasterDisable                                                  \
3002        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[5])
3003#endif
3004#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3005    defined(TARGET_IS_TM4C129_RA2)
3006#define ROM_I2CSlaveDisable                                                   \
3007        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[6])
3008#endif
3009#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3010    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3011    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3012    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3013    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3014    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3015    defined(TARGET_IS_TM4C129_RA2)
3016#define ROM_I2CMasterIntEnable                                                \
3017        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[7])
3018#endif
3019#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3020    defined(TARGET_IS_TM4C129_RA2)
3021#define ROM_I2CSlaveIntEnable                                                 \
3022        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[8])
3023#endif
3024#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3025    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3026    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3027    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3028    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3029    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3030    defined(TARGET_IS_TM4C129_RA2)
3031#define ROM_I2CMasterIntDisable                                               \
3032        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[9])
3033#endif
3034#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3035    defined(TARGET_IS_TM4C129_RA2)
3036#define ROM_I2CSlaveIntDisable                                                \
3037        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[10])
3038#endif
3039#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3040    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3041    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3042    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3043    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3044    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3045    defined(TARGET_IS_TM4C129_RA2)
3046#define ROM_I2CMasterIntStatus                                                \
3047        ((bool (*)(uint32_t ui32Base,                                         \
3048                   bool bMasked))ROM_I2CTABLE[11])
3049#endif
3050#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3051    defined(TARGET_IS_TM4C129_RA2)
3052#define ROM_I2CSlaveIntStatus                                                 \
3053        ((bool (*)(uint32_t ui32Base,                                         \
3054                   bool bMasked))ROM_I2CTABLE[12])
3055#endif
3056#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3057    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3058    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3059    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3060    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3061    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3062    defined(TARGET_IS_TM4C129_RA2)
3063#define ROM_I2CMasterIntClear                                                 \
3064        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[13])
3065#endif
3066#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3067    defined(TARGET_IS_TM4C129_RA2)
3068#define ROM_I2CSlaveIntClear                                                  \
3069        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[14])
3070#endif
3071#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3072    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3073    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3074    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3075    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3076    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3077    defined(TARGET_IS_TM4C129_RA2)
3078#define ROM_I2CMasterSlaveAddrSet                                             \
3079        ((void (*)(uint32_t ui32Base,                                         \
3080                   uint8_t ui8SlaveAddr,                                      \
3081                   bool bReceive))ROM_I2CTABLE[15])
3082#endif
3083#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3084    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3085    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3086    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3087    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3088    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3089    defined(TARGET_IS_TM4C129_RA2)
3090#define ROM_I2CMasterBusy                                                     \
3091        ((bool (*)(uint32_t ui32Base))ROM_I2CTABLE[16])
3092#endif
3093#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3094    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3095    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3096    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3097    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3098    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3099    defined(TARGET_IS_TM4C129_RA2)
3100#define ROM_I2CMasterBusBusy                                                  \
3101        ((bool (*)(uint32_t ui32Base))ROM_I2CTABLE[17])
3102#endif
3103#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3104    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3105    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3106    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3107    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3108    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3109    defined(TARGET_IS_TM4C129_RA2)
3110#define ROM_I2CMasterControl                                                  \
3111        ((void (*)(uint32_t ui32Base,                                         \
3112                   uint32_t ui32Cmd))ROM_I2CTABLE[18])
3113#endif
3114#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3115    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3116    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3117    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3118    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3119    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3120    defined(TARGET_IS_TM4C129_RA2)
3121#define ROM_I2CMasterErr                                                      \
3122        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[19])
3123#endif
3124#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3125    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3126    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3127    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3128    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3129    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3130    defined(TARGET_IS_TM4C129_RA2)
3131#define ROM_I2CMasterDataGet                                                  \
3132        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[20])
3133#endif
3134#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3135    defined(TARGET_IS_TM4C129_RA2)
3136#define ROM_I2CSlaveStatus                                                    \
3137        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[21])
3138#endif
3139#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3140    defined(TARGET_IS_TM4C129_RA2)
3141#define ROM_I2CSlaveDataPut                                                   \
3142        ((void (*)(uint32_t ui32Base,                                         \
3143                   uint8_t ui8Data))ROM_I2CTABLE[22])
3144#endif
3145#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3146    defined(TARGET_IS_TM4C129_RA2)
3147#define ROM_I2CSlaveDataGet                                                   \
3148        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[23])
3149#endif
3150#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3151    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3152    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3153    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3154    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3155    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3156    defined(TARGET_IS_TM4C129_RA2)
3157#define ROM_UpdateI2C                                                         \
3158        ((void (*)(void))ROM_I2CTABLE[24])
3159#endif
3160#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3161    defined(TARGET_IS_TM4C129_RA2)
3162#define ROM_I2CSlaveIntEnableEx                                               \
3163        ((void (*)(uint32_t ui32Base,                                         \
3164                   uint32_t ui32IntFlags))ROM_I2CTABLE[25])
3165#endif
3166#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3167    defined(TARGET_IS_TM4C129_RA2)
3168#define ROM_I2CSlaveIntDisableEx                                              \
3169        ((void (*)(uint32_t ui32Base,                                         \
3170                   uint32_t ui32IntFlags))ROM_I2CTABLE[26])
3171#endif
3172#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3173    defined(TARGET_IS_TM4C129_RA2)
3174#define ROM_I2CSlaveIntStatusEx                                               \
3175        ((uint32_t (*)(uint32_t ui32Base,                                     \
3176                       bool bMasked))ROM_I2CTABLE[27])
3177#endif
3178#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3179    defined(TARGET_IS_TM4C129_RA2)
3180#define ROM_I2CSlaveIntClearEx                                                \
3181        ((void (*)(uint32_t ui32Base,                                         \
3182                   uint32_t ui32IntFlags))ROM_I2CTABLE[28])
3183#endif
3184#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3185    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3186    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3187    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3188    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3189    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3190    defined(TARGET_IS_TM4C129_RA2)
3191#define ROM_I2CMasterIntEnableEx                                              \
3192        ((void (*)(uint32_t ui32Base,                                         \
3193                   uint32_t ui32IntFlags))ROM_I2CTABLE[29])
3194#endif
3195#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3196    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3197    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3198    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3199    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3200    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3201    defined(TARGET_IS_TM4C129_RA2)
3202#define ROM_I2CMasterIntDisableEx                                             \
3203        ((void (*)(uint32_t ui32Base,                                         \
3204                   uint32_t ui32IntFlags))ROM_I2CTABLE[30])
3205#endif
3206#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3207    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3208    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3209    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3210    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3211    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3212    defined(TARGET_IS_TM4C129_RA2)
3213#define ROM_I2CMasterIntStatusEx                                              \
3214        ((uint32_t (*)(uint32_t ui32Base,                                     \
3215                       bool bMasked))ROM_I2CTABLE[31])
3216#endif
3217#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3218    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3219    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3220    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3221    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3222    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3223    defined(TARGET_IS_TM4C129_RA2)
3224#define ROM_I2CMasterIntClearEx                                               \
3225        ((void (*)(uint32_t ui32Base,                                         \
3226                   uint32_t ui32IntFlags))ROM_I2CTABLE[32])
3227#endif
3228#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3229    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3230    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3231    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3232    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3233    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3234    defined(TARGET_IS_TM4C129_RA2)
3235#define ROM_I2CMasterTimeoutSet                                               \
3236        ((void (*)(uint32_t ui32Base,                                         \
3237                   uint32_t ui32Value))ROM_I2CTABLE[33])
3238#endif
3239#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3240    defined(TARGET_IS_TM4C129_RA2)
3241#define ROM_I2CSlaveACKOverride                                               \
3242        ((void (*)(uint32_t ui32Base,                                         \
3243                   bool bEnable))ROM_I2CTABLE[34])
3244#endif
3245#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3246    defined(TARGET_IS_TM4C129_RA2)
3247#define ROM_I2CSlaveACKValueSet                                               \
3248        ((void (*)(uint32_t ui32Base,                                         \
3249                   bool bACK))ROM_I2CTABLE[35])
3250#endif
3251#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3252    defined(TARGET_IS_TM4C129_RA2)
3253#define ROM_I2CSlaveAddressSet                                                \
3254        ((void (*)(uint32_t ui32Base,                                         \
3255                   uint8_t ui8AddrNum,                                        \
3256                   uint8_t ui8SlaveAddr))ROM_I2CTABLE[37])
3257#endif
3258#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3259    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3260    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3261    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3262    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3263    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3264    defined(TARGET_IS_TM4C129_RA2)
3265#define ROM_I2CMasterLineStateGet                                             \
3266        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[38])
3267#endif
3268#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3269    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3270    defined(TARGET_IS_TM4C129_RA2)
3271#define ROM_I2CTxFIFOConfigSet                                                \
3272        ((void (*)(uint32_t ui32Base,                                         \
3273                   uint32_t ui32Config))ROM_I2CTABLE[39])
3274#endif
3275#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3276    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3277    defined(TARGET_IS_TM4C129_RA2)
3278#define ROM_I2CTxFIFOFlush                                                    \
3279        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[40])
3280#endif
3281#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3282    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3283    defined(TARGET_IS_TM4C129_RA2)
3284#define ROM_I2CRxFIFOConfigSet                                                \
3285        ((void (*)(uint32_t ui32Base,                                         \
3286                   uint32_t ui32Config))ROM_I2CTABLE[41])
3287#endif
3288#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3289    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3290    defined(TARGET_IS_TM4C129_RA2)
3291#define ROM_I2CRxFIFOFlush                                                    \
3292        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[42])
3293#endif
3294#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3295    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3296    defined(TARGET_IS_TM4C129_RA2)
3297#define ROM_I2CFIFOStatus                                                     \
3298        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[43])
3299#endif
3300#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3301    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3302    defined(TARGET_IS_TM4C129_RA2)
3303#define ROM_I2CFIFODataPut                                                    \
3304        ((void (*)(uint32_t ui32Base,                                         \
3305                   uint8_t ui8Data))ROM_I2CTABLE[44])
3306#endif
3307#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3308    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3309    defined(TARGET_IS_TM4C129_RA2)
3310#define ROM_I2CFIFODataPutNonBlocking                                         \
3311        ((uint32_t (*)(uint32_t ui32Base,                                     \
3312                       uint8_t ui8Data))ROM_I2CTABLE[45])
3313#endif
3314#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3315    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3316    defined(TARGET_IS_TM4C129_RA2)
3317#define ROM_I2CFIFODataGet                                                    \
3318        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[46])
3319#endif
3320#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3321    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3322    defined(TARGET_IS_TM4C129_RA2)
3323#define ROM_I2CFIFODataGetNonBlocking                                         \
3324        ((uint32_t (*)(uint32_t ui32Base,                                     \
3325                       uint8_t *pui8Data))ROM_I2CTABLE[47])
3326#endif
3327#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3328    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3329    defined(TARGET_IS_TM4C129_RA2)
3330#define ROM_I2CMasterBurstLengthSet                                           \
3331        ((void (*)(uint32_t ui32Base,                                         \
3332                   uint8_t ui8Length))ROM_I2CTABLE[48])
3333#endif
3334#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3335    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3336    defined(TARGET_IS_TM4C129_RA2)
3337#define ROM_I2CMasterBurstCountGet                                            \
3338        ((uint32_t (*)(uint32_t ui32Base))ROM_I2CTABLE[49])
3339#endif
3340#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3341    defined(TARGET_IS_TM4C129_RA2)
3342#define ROM_I2CSlaveFIFODisable                                               \
3343        ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[50])
3344#endif
3345#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3346    defined(TARGET_IS_TM4C129_RA2)
3347#define ROM_I2CSlaveFIFOEnable                                                \
3348        ((void (*)(uint32_t ui32Base,                                         \
3349                   uint32_t ui32Config))ROM_I2CTABLE[51])
3350#endif
3351#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3352    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3353    defined(TARGET_IS_TM4C129_RA2)
3354#define ROM_I2CMasterGlitchFilterConfigSet                                    \
3355        ((void (*)(uint32_t ui32Base,                                         \
3356                   uint32_t ui32Config))ROM_I2CTABLE[54])
3357#endif
3358
3359//*****************************************************************************
3360//
3361// Macros for calling ROM functions in the Interrupt API.
3362//
3363//*****************************************************************************
3364#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3365    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3366    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3367    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3368    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3369    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3370    defined(TARGET_IS_TM4C129_RA2)
3371#define ROM_IntEnable                                                         \
3372        ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[0])
3373#endif
3374#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3375    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3376    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3377    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3378    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3379    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3380    defined(TARGET_IS_TM4C129_RA2)
3381#define ROM_IntMasterEnable                                                   \
3382        ((bool (*)(void))ROM_INTERRUPTTABLE[1])
3383#endif
3384#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3385    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3386    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3387    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3388    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3389    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3390    defined(TARGET_IS_TM4C129_RA2)
3391#define ROM_IntMasterDisable                                                  \
3392        ((bool (*)(void))ROM_INTERRUPTTABLE[2])
3393#endif
3394#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3395    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3396    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3397    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3398    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3399    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3400    defined(TARGET_IS_TM4C129_RA2)
3401#define ROM_IntDisable                                                        \
3402        ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[3])
3403#endif
3404#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3405    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3406    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3407    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3408    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3409    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3410    defined(TARGET_IS_TM4C129_RA2)
3411#define ROM_IntPriorityGroupingSet                                            \
3412        ((void (*)(uint32_t ui32Bits))ROM_INTERRUPTTABLE[4])
3413#endif
3414#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3415    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3416    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3417    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3418    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3419    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3420    defined(TARGET_IS_TM4C129_RA2)
3421#define ROM_IntPriorityGroupingGet                                            \
3422        ((uint32_t (*)(void))ROM_INTERRUPTTABLE[5])
3423#endif
3424#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3425    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3426    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3427    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3428    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3429    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3430    defined(TARGET_IS_TM4C129_RA2)
3431#define ROM_IntPrioritySet                                                    \
3432        ((void (*)(uint32_t ui32Interrupt,                                    \
3433                   uint8_t ui8Priority))ROM_INTERRUPTTABLE[6])
3434#endif
3435#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3436    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3437    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3438    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3439    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3440    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3441    defined(TARGET_IS_TM4C129_RA2)
3442#define ROM_IntPriorityGet                                                    \
3443        ((int32_t (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[7])
3444#endif
3445#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3446    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3447    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3448    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3449    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3450    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3451    defined(TARGET_IS_TM4C129_RA2)
3452#define ROM_IntPendSet                                                        \
3453        ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[8])
3454#endif
3455#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3456    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3457    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3458    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3459    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3460    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3461    defined(TARGET_IS_TM4C129_RA2)
3462#define ROM_IntPendClear                                                      \
3463        ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[9])
3464#endif
3465#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3466    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3467    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3468    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3469    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3470    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3471    defined(TARGET_IS_TM4C129_RA2)
3472#define ROM_IntPriorityMaskSet                                                \
3473        ((void (*)(uint32_t ui32PriorityMask))ROM_INTERRUPTTABLE[10])
3474#endif
3475#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3476    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3477    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3478    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3479    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3480    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3481    defined(TARGET_IS_TM4C129_RA2)
3482#define ROM_IntPriorityMaskGet                                                \
3483        ((uint32_t (*)(void))ROM_INTERRUPTTABLE[11])
3484#endif
3485#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
3486    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3487    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3488    defined(TARGET_IS_TM4C129_RA2)
3489#define ROM_IntIsEnabled                                                      \
3490        ((uint32_t (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[12])
3491#endif
3492#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3493    defined(TARGET_IS_TM4C129_RA2)
3494#define ROM_IntTrigger                                                        \
3495        ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[13])
3496#endif
3497
3498//*****************************************************************************
3499//
3500// Macros for calling ROM functions in the LCD API.
3501//
3502//*****************************************************************************
3503#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3504    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3505    defined(TARGET_IS_TM4C129_RA2)
3506#define ROM_LCDIntStatus                                                      \
3507        ((uint32_t (*)(uint32_t ui32Base,                                     \
3508                       bool bMasked))ROM_LCDTABLE[0])
3509#endif
3510#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3511    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3512    defined(TARGET_IS_TM4C129_RA2)
3513#define ROM_LCDClockReset                                                     \
3514        ((void (*)(uint32_t ui32Base,                                         \
3515                   uint32_t ui32Clocks))ROM_LCDTABLE[1])
3516#endif
3517#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3518    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3519    defined(TARGET_IS_TM4C129_RA2)
3520#define ROM_LCDDMAConfigSet                                                   \
3521        ((void (*)(uint32_t ui32Base,                                         \
3522                   uint32_t ui32Config))ROM_LCDTABLE[2])
3523#endif
3524#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3525    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3526    defined(TARGET_IS_TM4C129_RA2)
3527#define ROM_LCDIDDCommandWrite                                                \
3528        ((void (*)(uint32_t ui32Base,                                         \
3529                   uint32_t ui32CS,                                           \
3530                   uint16_t ui16Cmd))ROM_LCDTABLE[3])
3531#endif
3532#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3533    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3534    defined(TARGET_IS_TM4C129_RA2)
3535#define ROM_LCDIDDConfigSet                                                   \
3536        ((void (*)(uint32_t ui32Base,                                         \
3537                   uint32_t ui32Config))ROM_LCDTABLE[4])
3538#endif
3539#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3540    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3541    defined(TARGET_IS_TM4C129_RA2)
3542#define ROM_LCDIDDDataRead                                                    \
3543        ((uint16_t (*)(uint32_t ui32Base,                                     \
3544                       uint32_t ui32CS))ROM_LCDTABLE[5])
3545#endif
3546#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3547    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3548    defined(TARGET_IS_TM4C129_RA2)
3549#define ROM_LCDIDDDataWrite                                                   \
3550        ((void (*)(uint32_t ui32Base,                                         \
3551                   uint32_t ui32CS,                                           \
3552                   uint16_t ui16Data))ROM_LCDTABLE[6])
3553#endif
3554#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3555    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3556    defined(TARGET_IS_TM4C129_RA2)
3557#define ROM_LCDIDDDMADisable                                                  \
3558        ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[7])
3559#endif
3560#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3561    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3562    defined(TARGET_IS_TM4C129_RA2)
3563#define ROM_LCDIDDDMAWrite                                                    \
3564        ((void (*)(uint32_t ui32Base,                                         \
3565                   uint32_t ui32CS,                                           \
3566                   const uint32_t *pui32Data,                                 \
3567                   uint32_t ui32Count))ROM_LCDTABLE[8])
3568#endif
3569#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3570    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3571    defined(TARGET_IS_TM4C129_RA2)
3572#define ROM_LCDIDDIndexedRead                                                 \
3573        ((uint16_t (*)(uint32_t ui32Base,                                     \
3574                       uint32_t ui32CS,                                       \
3575                       uint16_t ui16Addr))ROM_LCDTABLE[9])
3576#endif
3577#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3578    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3579    defined(TARGET_IS_TM4C129_RA2)
3580#define ROM_LCDIDDIndexedWrite                                                \
3581        ((void (*)(uint32_t ui32Base,                                         \
3582                   uint32_t ui32CS,                                           \
3583                   uint16_t ui16Addr,                                         \
3584                   uint16_t ui16Data))ROM_LCDTABLE[10])
3585#endif
3586#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3587    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3588    defined(TARGET_IS_TM4C129_RA2)
3589#define ROM_LCDIDDStatusRead                                                  \
3590        ((uint16_t (*)(uint32_t ui32Base,                                     \
3591                       uint32_t ui32CS))ROM_LCDTABLE[11])
3592#endif
3593#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3594    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3595    defined(TARGET_IS_TM4C129_RA2)
3596#define ROM_LCDIDDTimingSet                                                   \
3597        ((void (*)(uint32_t ui32Base,                                         \
3598                   uint32_t ui32CS,                                           \
3599                   const tLCDIDDTiming *pTiming))ROM_LCDTABLE[12])
3600#endif
3601#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3602    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3603    defined(TARGET_IS_TM4C129_RA2)
3604#define ROM_LCDIntClear                                                       \
3605        ((void (*)(uint32_t ui32Base,                                         \
3606                   uint32_t ui32IntFlags))ROM_LCDTABLE[13])
3607#endif
3608#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3609    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3610    defined(TARGET_IS_TM4C129_RA2)
3611#define ROM_LCDIntDisable                                                     \
3612        ((void (*)(uint32_t ui32Base,                                         \
3613                   uint32_t ui32IntFlags))ROM_LCDTABLE[14])
3614#endif
3615#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3616    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3617    defined(TARGET_IS_TM4C129_RA2)
3618#define ROM_LCDIntEnable                                                      \
3619        ((void (*)(uint32_t ui32Base,                                         \
3620                   uint32_t ui32IntFlags))ROM_LCDTABLE[15])
3621#endif
3622#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3623    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3624    defined(TARGET_IS_TM4C129_RA2)
3625#define ROM_LCDModeSet                                                        \
3626        ((uint32_t (*)(uint32_t ui32Base,                                     \
3627                       uint8_t ui8Mode,                                       \
3628                       uint32_t ui32PixClk,                                   \
3629                       uint32_t ui32SysClk))ROM_LCDTABLE[16])
3630#endif
3631#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3632    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3633    defined(TARGET_IS_TM4C129_RA2)
3634#define ROM_LCDRasterACBiasIntCountSet                                        \
3635        ((void (*)(uint32_t ui32Base,                                         \
3636                   uint8_t ui8Count))ROM_LCDTABLE[17])
3637#endif
3638#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3639    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3640    defined(TARGET_IS_TM4C129_RA2)
3641#define ROM_LCDRasterConfigSet                                                \
3642        ((void (*)(uint32_t ui32Base,                                         \
3643                   uint32_t ui32Config,                                       \
3644                   uint8_t ui8PalLoadDelay))ROM_LCDTABLE[18])
3645#endif
3646#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3647    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3648    defined(TARGET_IS_TM4C129_RA2)
3649#define ROM_LCDRasterDisable                                                  \
3650        ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[19])
3651#endif
3652#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3653    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3654    defined(TARGET_IS_TM4C129_RA2)
3655#define ROM_LCDRasterEnable                                                   \
3656        ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[20])
3657#endif
3658#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3659    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3660    defined(TARGET_IS_TM4C129_RA2)
3661#define ROM_LCDRasterFrameBufferSet                                           \
3662        ((void (*)(uint32_t ui32Base,                                         \
3663                   uint8_t ui8Buffer,                                         \
3664                   uint32_t *pui32Addr,                                       \
3665                   uint32_t ui32NumBytes))ROM_LCDTABLE[21])
3666#endif
3667#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3668    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3669    defined(TARGET_IS_TM4C129_RA2)
3670#define ROM_LCDRasterPaletteSet                                               \
3671        ((void (*)(uint32_t ui32Base,                                         \
3672                   uint32_t ui32Type,                                         \
3673                   uint32_t *pui32PalAddr,                                    \
3674                   const uint32_t *pui32SrcColors,                            \
3675                   uint32_t ui32Start,                                        \
3676                   uint32_t ui32Count))ROM_LCDTABLE[22])
3677#endif
3678#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3679    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3680    defined(TARGET_IS_TM4C129_RA2)
3681#define ROM_LCDRasterSubPanelConfigSet                                        \
3682        ((void (*)(uint32_t ui32Base,                                         \
3683                   uint32_t ui32Flags,                                        \
3684                   uint32_t ui32BottomLines,                                  \
3685                   uint32_t ui32DefaultPixel))ROM_LCDTABLE[23])
3686#endif
3687#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3688    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3689    defined(TARGET_IS_TM4C129_RA2)
3690#define ROM_LCDRasterSubPanelDisable                                          \
3691        ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[24])
3692#endif
3693#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3694    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3695    defined(TARGET_IS_TM4C129_RA2)
3696#define ROM_LCDRasterSubPanelEnable                                           \
3697        ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[25])
3698#endif
3699#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3700    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3701    defined(TARGET_IS_TM4C129_RA2)
3702#define ROM_LCDRasterTimingSet                                                \
3703        ((void (*)(uint32_t ui32Base,                                         \
3704                   const tLCDRasterTiming *pTiming))ROM_LCDTABLE[26])
3705#endif
3706#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
3707    defined(TARGET_IS_TM4C129_RA2)
3708#define ROM_LCDRasterEnabled                                                  \
3709        ((bool (*)(uint32_t ui32Base))ROM_LCDTABLE[27])
3710#endif
3711
3712//*****************************************************************************
3713//
3714// Macros for calling ROM functions in the MPU API.
3715//
3716//*****************************************************************************
3717#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3718    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3719    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3720    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3721    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3722    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3723    defined(TARGET_IS_TM4C129_RA2)
3724#define ROM_MPUEnable                                                         \
3725        ((void (*)(uint32_t ui32MPUConfig))ROM_MPUTABLE[0])
3726#endif
3727#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3728    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3729    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3730    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3731    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3732    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3733    defined(TARGET_IS_TM4C129_RA2)
3734#define ROM_MPUDisable                                                        \
3735        ((void (*)(void))ROM_MPUTABLE[1])
3736#endif
3737#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3738    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3739    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3740    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3741    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3742    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3743    defined(TARGET_IS_TM4C129_RA2)
3744#define ROM_MPURegionCountGet                                                 \
3745        ((uint32_t (*)(void))ROM_MPUTABLE[2])
3746#endif
3747#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3748    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3749    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3750    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3751    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3752    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3753    defined(TARGET_IS_TM4C129_RA2)
3754#define ROM_MPURegionEnable                                                   \
3755        ((void (*)(uint32_t ui32Region))ROM_MPUTABLE[3])
3756#endif
3757#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3758    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3759    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3760    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3761    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3762    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3763    defined(TARGET_IS_TM4C129_RA2)
3764#define ROM_MPURegionDisable                                                  \
3765        ((void (*)(uint32_t ui32Region))ROM_MPUTABLE[4])
3766#endif
3767#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3768    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3769    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3770    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3771    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3772    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3773    defined(TARGET_IS_TM4C129_RA2)
3774#define ROM_MPURegionSet                                                      \
3775        ((void (*)(uint32_t ui32Region,                                       \
3776                   uint32_t ui32Addr,                                         \
3777                   uint32_t ui32Flags))ROM_MPUTABLE[5])
3778#endif
3779#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3780    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3781    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3782    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3783    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3784    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3785    defined(TARGET_IS_TM4C129_RA2)
3786#define ROM_MPURegionGet                                                      \
3787        ((void (*)(uint32_t ui32Region,                                       \
3788                   uint32_t *pui32Addr,                                       \
3789                   uint32_t *pui32Flags))ROM_MPUTABLE[6])
3790#endif
3791
3792//*****************************************************************************
3793//
3794// Macros for calling ROM functions in the OneWire API.
3795//
3796//*****************************************************************************
3797#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3798    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3799    defined(TARGET_IS_TM4C129_RA2)
3800#define ROM_OneWireIntStatus                                                  \
3801        ((uint32_t (*)(uint32_t ui32Base,                                     \
3802                       bool bMasked))ROM_ONEWIRETABLE[0])
3803#endif
3804#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3805    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3806    defined(TARGET_IS_TM4C129_RA2)
3807#define ROM_OneWireBusReset                                                   \
3808        ((void (*)(uint32_t ui32Base))ROM_ONEWIRETABLE[1])
3809#endif
3810#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3811    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3812    defined(TARGET_IS_TM4C129_RA2)
3813#define ROM_OneWireBusStatus                                                  \
3814        ((uint32_t (*)(uint32_t ui32Base))ROM_ONEWIRETABLE[2])
3815#endif
3816#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3817    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3818    defined(TARGET_IS_TM4C129_RA2)
3819#define ROM_OneWireDataGet                                                    \
3820        ((void (*)(uint32_t u3i2Base,                                         \
3821                   uint32_t *pui32Data))ROM_ONEWIRETABLE[3])
3822#endif
3823#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3824    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3825    defined(TARGET_IS_TM4C129_RA2)
3826#define ROM_OneWireDataGetNonBlocking                                         \
3827        ((bool (*)(uint32_t ui32Base,                                         \
3828                   uint32_t *pui32Data))ROM_ONEWIRETABLE[4])
3829#endif
3830#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3831    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3832    defined(TARGET_IS_TM4C129_RA2)
3833#define ROM_OneWireInit                                                       \
3834        ((void (*)(uint32_t ui32Base,                                         \
3835                   uint32_t ui32InitFlags))ROM_ONEWIRETABLE[5])
3836#endif
3837#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3838    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3839    defined(TARGET_IS_TM4C129_RA2)
3840#define ROM_OneWireIntClear                                                   \
3841        ((void (*)(uint32_t ui32Base,                                         \
3842                   uint32_t ui32IntFlags))ROM_ONEWIRETABLE[6])
3843#endif
3844#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3845    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3846    defined(TARGET_IS_TM4C129_RA2)
3847#define ROM_OneWireIntDisable                                                 \
3848        ((void (*)(uint32_t ui32Base,                                         \
3849                   uint32_t ui32IntFlags))ROM_ONEWIRETABLE[7])
3850#endif
3851#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3852    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3853    defined(TARGET_IS_TM4C129_RA2)
3854#define ROM_OneWireIntEnable                                                  \
3855        ((void (*)(uint32_t ui32Base,                                         \
3856                   uint32_t ui32IntFlags))ROM_ONEWIRETABLE[8])
3857#endif
3858#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3859    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3860    defined(TARGET_IS_TM4C129_RA2)
3861#define ROM_OneWireTransaction                                                \
3862        ((void (*)(uint32_t ui32Base,                                         \
3863                   uint32_t ui32OpFlags,                                      \
3864                   uint32_t ui32Data,                                         \
3865                   uint32_t ui32BitCnt))ROM_ONEWIRETABLE[9])
3866#endif
3867#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3868    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3869    defined(TARGET_IS_TM4C129_RA2)
3870#define ROM_OneWireDMADisable                                                 \
3871        ((void (*)(uint32_t ui32Base,                                         \
3872                   uint32_t ui32DMAFlags))ROM_ONEWIRETABLE[10])
3873#endif
3874#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
3875    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3876    defined(TARGET_IS_TM4C129_RA2)
3877#define ROM_OneWireDMAEnable                                                  \
3878        ((void (*)(uint32_t ui32Base,                                         \
3879                   uint32_t ui32DMAFlags))ROM_ONEWIRETABLE[11])
3880#endif
3881
3882//*****************************************************************************
3883//
3884// Macros for calling ROM functions in the PWM API.
3885//
3886//*****************************************************************************
3887#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3888    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3889    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3890    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3891    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3892    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3893    defined(TARGET_IS_TM4C129_RA2)
3894#define ROM_PWMPulseWidthSet                                                  \
3895        ((void (*)(uint32_t ui32Base,                                         \
3896                   uint32_t ui32PWMOut,                                       \
3897                   uint32_t ui32Width))ROM_PWMTABLE[0])
3898#endif
3899#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3900    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3901    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3902    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3903    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3904    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3905    defined(TARGET_IS_TM4C129_RA2)
3906#define ROM_PWMGenConfigure                                                   \
3907        ((void (*)(uint32_t ui32Base,                                         \
3908                   uint32_t ui32Gen,                                          \
3909                   uint32_t ui32Config))ROM_PWMTABLE[1])
3910#endif
3911#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3912    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3913    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3914    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3915    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3916    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3917    defined(TARGET_IS_TM4C129_RA2)
3918#define ROM_PWMGenPeriodSet                                                   \
3919        ((void (*)(uint32_t ui32Base,                                         \
3920                   uint32_t ui32Gen,                                          \
3921                   uint32_t ui32Period))ROM_PWMTABLE[2])
3922#endif
3923#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3924    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3925    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3926    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3927    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3928    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3929    defined(TARGET_IS_TM4C129_RA2)
3930#define ROM_PWMGenPeriodGet                                                   \
3931        ((uint32_t (*)(uint32_t ui32Base,                                     \
3932                       uint32_t ui32Gen))ROM_PWMTABLE[3])
3933#endif
3934#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3935    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3936    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3937    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3938    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3939    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3940    defined(TARGET_IS_TM4C129_RA2)
3941#define ROM_PWMGenEnable                                                      \
3942        ((void (*)(uint32_t ui32Base,                                         \
3943                   uint32_t ui32Gen))ROM_PWMTABLE[4])
3944#endif
3945#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3946    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3947    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3948    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3949    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3950    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3951    defined(TARGET_IS_TM4C129_RA2)
3952#define ROM_PWMGenDisable                                                     \
3953        ((void (*)(uint32_t ui32Base,                                         \
3954                   uint32_t ui32Gen))ROM_PWMTABLE[5])
3955#endif
3956#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3957    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3958    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3959    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3960    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3961    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3962    defined(TARGET_IS_TM4C129_RA2)
3963#define ROM_PWMPulseWidthGet                                                  \
3964        ((uint32_t (*)(uint32_t ui32Base,                                     \
3965                       uint32_t ui32PWMOut))ROM_PWMTABLE[6])
3966#endif
3967#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3968    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3969    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3970    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3971    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3972    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3973    defined(TARGET_IS_TM4C129_RA2)
3974#define ROM_PWMDeadBandEnable                                                 \
3975        ((void (*)(uint32_t ui32Base,                                         \
3976                   uint32_t ui32Gen,                                          \
3977                   uint16_t ui16Rise,                                         \
3978                   uint16_t ui16Fall))ROM_PWMTABLE[7])
3979#endif
3980#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3981    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3982    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3983    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3984    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3985    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3986    defined(TARGET_IS_TM4C129_RA2)
3987#define ROM_PWMDeadBandDisable                                                \
3988        ((void (*)(uint32_t ui32Base,                                         \
3989                   uint32_t ui32Gen))ROM_PWMTABLE[8])
3990#endif
3991#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
3992    defined(TARGET_IS_TM4C123_RA3) ||                                         \
3993    defined(TARGET_IS_TM4C123_RB1) ||                                         \
3994    defined(TARGET_IS_TM4C123_RB2) ||                                         \
3995    defined(TARGET_IS_TM4C129_RA0) ||                                         \
3996    defined(TARGET_IS_TM4C129_RA1) ||                                         \
3997    defined(TARGET_IS_TM4C129_RA2)
3998#define ROM_PWMSyncUpdate                                                     \
3999        ((void (*)(uint32_t ui32Base,                                         \
4000                   uint32_t ui32GenBits))ROM_PWMTABLE[9])
4001#endif
4002#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4003    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4004    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4005    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4006    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4007    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4008    defined(TARGET_IS_TM4C129_RA2)
4009#define ROM_PWMSyncTimeBase                                                   \
4010        ((void (*)(uint32_t ui32Base,                                         \
4011                   uint32_t ui32GenBits))ROM_PWMTABLE[10])
4012#endif
4013#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4014    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4015    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4016    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4017    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4018    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4019    defined(TARGET_IS_TM4C129_RA2)
4020#define ROM_PWMOutputState                                                    \
4021        ((void (*)(uint32_t ui32Base,                                         \
4022                   uint32_t ui32PWMOutBits,                                   \
4023                   bool bEnable))ROM_PWMTABLE[11])
4024#endif
4025#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4026    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4027    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4028    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4029    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4030    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4031    defined(TARGET_IS_TM4C129_RA2)
4032#define ROM_PWMOutputInvert                                                   \
4033        ((void (*)(uint32_t ui32Base,                                         \
4034                   uint32_t ui32PWMOutBits,                                   \
4035                   bool bInvert))ROM_PWMTABLE[12])
4036#endif
4037#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4038    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4039    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4040    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4041    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4042    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4043    defined(TARGET_IS_TM4C129_RA2)
4044#define ROM_PWMOutputFault                                                    \
4045        ((void (*)(uint32_t ui32Base,                                         \
4046                   uint32_t ui32PWMOutBits,                                   \
4047                   bool bFaultSuppress))ROM_PWMTABLE[13])
4048#endif
4049#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4050    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4051    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4052    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4053    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4054    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4055    defined(TARGET_IS_TM4C129_RA2)
4056#define ROM_PWMGenIntTrigEnable                                               \
4057        ((void (*)(uint32_t ui32Base,                                         \
4058                   uint32_t ui32Gen,                                          \
4059                   uint32_t ui32IntTrig))ROM_PWMTABLE[14])
4060#endif
4061#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4062    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4063    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4064    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4065    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4066    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4067    defined(TARGET_IS_TM4C129_RA2)
4068#define ROM_PWMGenIntTrigDisable                                              \
4069        ((void (*)(uint32_t ui32Base,                                         \
4070                   uint32_t ui32Gen,                                          \
4071                   uint32_t ui32IntTrig))ROM_PWMTABLE[15])
4072#endif
4073#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4074    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4075    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4076    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4077    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4078    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4079    defined(TARGET_IS_TM4C129_RA2)
4080#define ROM_PWMGenIntStatus                                                   \
4081        ((uint32_t (*)(uint32_t ui32Base,                                     \
4082                       uint32_t ui32Gen,                                      \
4083                       bool bMasked))ROM_PWMTABLE[16])
4084#endif
4085#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4086    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4087    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4088    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4089    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4090    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4091    defined(TARGET_IS_TM4C129_RA2)
4092#define ROM_PWMGenIntClear                                                    \
4093        ((void (*)(uint32_t ui32Base,                                         \
4094                   uint32_t ui32Gen,                                          \
4095                   uint32_t ui32Ints))ROM_PWMTABLE[17])
4096#endif
4097#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4098    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4099    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4100    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4101    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4102    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4103    defined(TARGET_IS_TM4C129_RA2)
4104#define ROM_PWMIntEnable                                                      \
4105        ((void (*)(uint32_t ui32Base,                                         \
4106                   uint32_t ui32GenFault))ROM_PWMTABLE[18])
4107#endif
4108#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4109    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4110    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4111    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4112    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4113    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4114    defined(TARGET_IS_TM4C129_RA2)
4115#define ROM_PWMIntDisable                                                     \
4116        ((void (*)(uint32_t ui32Base,                                         \
4117                   uint32_t ui32GenFault))ROM_PWMTABLE[19])
4118#endif
4119#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4120    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4121    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4122    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4123    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4124    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4125    defined(TARGET_IS_TM4C129_RA2)
4126#define ROM_PWMFaultIntClear                                                  \
4127        ((void (*)(uint32_t ui32Base))ROM_PWMTABLE[20])
4128#endif
4129#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4130    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4131    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4132    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4133    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4134    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4135    defined(TARGET_IS_TM4C129_RA2)
4136#define ROM_PWMIntStatus                                                      \
4137        ((uint32_t (*)(uint32_t ui32Base,                                     \
4138                       bool bMasked))ROM_PWMTABLE[21])
4139#endif
4140#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4141    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4142    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4143    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4144    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4145    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4146    defined(TARGET_IS_TM4C129_RA2)
4147#define ROM_PWMOutputFaultLevel                                               \
4148        ((void (*)(uint32_t ui32Base,                                         \
4149                   uint32_t ui32PWMOutBits,                                   \
4150                   bool bDriveHigh))ROM_PWMTABLE[22])
4151#endif
4152#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4153    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4154    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4155    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4156    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4157    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4158    defined(TARGET_IS_TM4C129_RA2)
4159#define ROM_PWMFaultIntClearExt                                               \
4160        ((void (*)(uint32_t ui32Base,                                         \
4161                   uint32_t ui32FaultInts))ROM_PWMTABLE[23])
4162#endif
4163#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4164    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4165    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4166    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4167    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4168    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4169    defined(TARGET_IS_TM4C129_RA2)
4170#define ROM_PWMGenFaultConfigure                                              \
4171        ((void (*)(uint32_t ui32Base,                                         \
4172                   uint32_t ui32Gen,                                          \
4173                   uint32_t ui32MinFaultPeriod,                               \
4174                   uint32_t ui32FaultSenses))ROM_PWMTABLE[24])
4175#endif
4176#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4177    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4178    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4179    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4180    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4181    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4182    defined(TARGET_IS_TM4C129_RA2)
4183#define ROM_PWMGenFaultTriggerSet                                             \
4184        ((void (*)(uint32_t ui32Base,                                         \
4185                   uint32_t ui32Gen,                                          \
4186                   uint32_t ui32Group,                                        \
4187                   uint32_t ui32FaultTriggers))ROM_PWMTABLE[25])
4188#endif
4189#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4190    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4191    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4192    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4193    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4194    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4195    defined(TARGET_IS_TM4C129_RA2)
4196#define ROM_PWMGenFaultTriggerGet                                             \
4197        ((uint32_t (*)(uint32_t ui32Base,                                     \
4198                       uint32_t ui32Gen,                                      \
4199                       uint32_t ui32Group))ROM_PWMTABLE[26])
4200#endif
4201#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4202    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4203    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4204    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4205    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4206    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4207    defined(TARGET_IS_TM4C129_RA2)
4208#define ROM_PWMGenFaultStatus                                                 \
4209        ((uint32_t (*)(uint32_t ui32Base,                                     \
4210                       uint32_t ui32Gen,                                      \
4211                       uint32_t ui32Group))ROM_PWMTABLE[27])
4212#endif
4213#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4214    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4215    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4216    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4217    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4218    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4219    defined(TARGET_IS_TM4C129_RA2)
4220#define ROM_PWMGenFaultClear                                                  \
4221        ((void (*)(uint32_t ui32Base,                                         \
4222                   uint32_t ui32Gen,                                          \
4223                   uint32_t ui32Group,                                        \
4224                   uint32_t ui32FaultTriggers))ROM_PWMTABLE[28])
4225#endif
4226#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4227    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4228    defined(TARGET_IS_TM4C129_RA2)
4229#define ROM_PWMClockSet                                                       \
4230        ((void (*)(uint32_t ui32Base,                                         \
4231                   uint32_t ui32Config))ROM_PWMTABLE[29])
4232#endif
4233#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4234    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4235    defined(TARGET_IS_TM4C129_RA2)
4236#define ROM_PWMClockGet                                                       \
4237        ((uint32_t (*)(uint32_t ui32Base))ROM_PWMTABLE[30])
4238#endif
4239#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
4240    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4241    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4242    defined(TARGET_IS_TM4C129_RA2)
4243#define ROM_PWMOutputUpdateMode                                               \
4244        ((void (*)(uint32_t ui32Base,                                         \
4245                   uint32_t ui32PWMOutBits,                                   \
4246                   uint32_t ui32Mode))ROM_PWMTABLE[31])
4247#endif
4248
4249//*****************************************************************************
4250//
4251// Macros for calling ROM functions in the QEI API.
4252//
4253//*****************************************************************************
4254#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4255    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4256    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4257    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4258    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4259    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4260    defined(TARGET_IS_TM4C129_RA2)
4261#define ROM_QEIPositionGet                                                    \
4262        ((uint32_t (*)(uint32_t ui32Base))ROM_QEITABLE[0])
4263#endif
4264#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4265    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4266    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4267    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4268    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4269    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4270    defined(TARGET_IS_TM4C129_RA2)
4271#define ROM_QEIEnable                                                         \
4272        ((void (*)(uint32_t ui32Base))ROM_QEITABLE[1])
4273#endif
4274#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4275    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4276    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4277    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4278    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4279    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4280    defined(TARGET_IS_TM4C129_RA2)
4281#define ROM_QEIDisable                                                        \
4282        ((void (*)(uint32_t ui32Base))ROM_QEITABLE[2])
4283#endif
4284#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4285    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4286    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4287    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4288    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4289    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4290    defined(TARGET_IS_TM4C129_RA2)
4291#define ROM_QEIConfigure                                                      \
4292        ((void (*)(uint32_t ui32Base,                                         \
4293                   uint32_t ui32Config,                                       \
4294                   uint32_t ui32MaxPosition))ROM_QEITABLE[3])
4295#endif
4296#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4297    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4298    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4299    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4300    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4301    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4302    defined(TARGET_IS_TM4C129_RA2)
4303#define ROM_QEIPositionSet                                                    \
4304        ((void (*)(uint32_t ui32Base,                                         \
4305                   uint32_t ui32Position))ROM_QEITABLE[4])
4306#endif
4307#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4308    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4309    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4310    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4311    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4312    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4313    defined(TARGET_IS_TM4C129_RA2)
4314#define ROM_QEIDirectionGet                                                   \
4315        ((int32_t (*)(uint32_t ui32Base))ROM_QEITABLE[5])
4316#endif
4317#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4318    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4319    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4320    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4321    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4322    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4323    defined(TARGET_IS_TM4C129_RA2)
4324#define ROM_QEIErrorGet                                                       \
4325        ((bool (*)(uint32_t ui32Base))ROM_QEITABLE[6])
4326#endif
4327#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4328    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4329    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4330    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4331    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4332    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4333    defined(TARGET_IS_TM4C129_RA2)
4334#define ROM_QEIVelocityEnable                                                 \
4335        ((void (*)(uint32_t ui32Base))ROM_QEITABLE[7])
4336#endif
4337#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4338    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4339    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4340    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4341    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4342    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4343    defined(TARGET_IS_TM4C129_RA2)
4344#define ROM_QEIVelocityDisable                                                \
4345        ((void (*)(uint32_t ui32Base))ROM_QEITABLE[8])
4346#endif
4347#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4348    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4349    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4350    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4351    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4352    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4353    defined(TARGET_IS_TM4C129_RA2)
4354#define ROM_QEIVelocityConfigure                                              \
4355        ((void (*)(uint32_t ui32Base,                                         \
4356                   uint32_t ui32PreDiv,                                       \
4357                   uint32_t ui32Period))ROM_QEITABLE[9])
4358#endif
4359#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4360    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4361    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4362    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4363    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4364    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4365    defined(TARGET_IS_TM4C129_RA2)
4366#define ROM_QEIVelocityGet                                                    \
4367        ((uint32_t (*)(uint32_t ui32Base))ROM_QEITABLE[10])
4368#endif
4369#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4370    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4371    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4372    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4373    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4374    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4375    defined(TARGET_IS_TM4C129_RA2)
4376#define ROM_QEIIntEnable                                                      \
4377        ((void (*)(uint32_t ui32Base,                                         \
4378                   uint32_t ui32IntFlags))ROM_QEITABLE[11])
4379#endif
4380#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4381    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4382    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4383    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4384    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4385    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4386    defined(TARGET_IS_TM4C129_RA2)
4387#define ROM_QEIIntDisable                                                     \
4388        ((void (*)(uint32_t ui32Base,                                         \
4389                   uint32_t ui32IntFlags))ROM_QEITABLE[12])
4390#endif
4391#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4392    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4393    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4394    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4395    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4396    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4397    defined(TARGET_IS_TM4C129_RA2)
4398#define ROM_QEIIntStatus                                                      \
4399        ((uint32_t (*)(uint32_t ui32Base,                                     \
4400                       bool bMasked))ROM_QEITABLE[13])
4401#endif
4402#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4403    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4404    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4405    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4406    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4407    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4408    defined(TARGET_IS_TM4C129_RA2)
4409#define ROM_QEIIntClear                                                       \
4410        ((void (*)(uint32_t ui32Base,                                         \
4411                   uint32_t ui32IntFlags))ROM_QEITABLE[14])
4412#endif
4413
4414//*****************************************************************************
4415//
4416// Macros for calling ROM functions in the SHAMD5 API.
4417//
4418//*****************************************************************************
4419#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4420    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4421    defined(TARGET_IS_TM4C129_RA2)
4422#define ROM_SHAMD5IntStatus                                                   \
4423        ((uint32_t (*)(uint32_t ui32Base,                                     \
4424                       bool bMasked))ROM_SHAMD5TABLE[0])
4425#endif
4426#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4427    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4428    defined(TARGET_IS_TM4C129_RA2)
4429#define ROM_SHAMD5ConfigSet                                                   \
4430        ((void (*)(uint32_t ui32Base,                                         \
4431                   uint32_t ui32Mode))ROM_SHAMD5TABLE[1])
4432#endif
4433#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4434    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4435    defined(TARGET_IS_TM4C129_RA2)
4436#define ROM_SHAMD5DataProcess                                                 \
4437        ((void (*)(uint32_t ui32Base,                                         \
4438                   uint32_t *pui32DataSrc,                                    \
4439                   uint32_t ui32DataLength,                                   \
4440                   uint32_t *pui32HashResult))ROM_SHAMD5TABLE[2])
4441#endif
4442#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4443    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4444    defined(TARGET_IS_TM4C129_RA2)
4445#define ROM_SHAMD5DataWrite                                                   \
4446        ((void (*)(uint32_t ui32Base,                                         \
4447                   uint32_t *pui32Src))ROM_SHAMD5TABLE[3])
4448#endif
4449#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4450    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4451    defined(TARGET_IS_TM4C129_RA2)
4452#define ROM_SHAMD5DataWriteNonBlocking                                        \
4453        ((bool (*)(uint32_t ui32Base,                                         \
4454                   uint32_t *pui32Src))ROM_SHAMD5TABLE[4])
4455#endif
4456#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4457    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4458    defined(TARGET_IS_TM4C129_RA2)
4459#define ROM_SHAMD5DMADisable                                                  \
4460        ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[5])
4461#endif
4462#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4463    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4464    defined(TARGET_IS_TM4C129_RA2)
4465#define ROM_SHAMD5DMAEnable                                                   \
4466        ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[6])
4467#endif
4468#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4469    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4470    defined(TARGET_IS_TM4C129_RA2)
4471#define ROM_SHAMD5HashLengthSet                                               \
4472        ((void (*)(uint32_t ui32Base,                                         \
4473                   uint32_t ui32Length))ROM_SHAMD5TABLE[7])
4474#endif
4475#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4476    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4477    defined(TARGET_IS_TM4C129_RA2)
4478#define ROM_SHAMD5HMACKeySet                                                  \
4479        ((void (*)(uint32_t ui32Base,                                         \
4480                   uint32_t *pui32Src))ROM_SHAMD5TABLE[8])
4481#endif
4482#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4483    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4484    defined(TARGET_IS_TM4C129_RA2)
4485#define ROM_SHAMD5HMACPPKeyGenerate                                           \
4486        ((void (*)(uint32_t ui32Base,                                         \
4487                   uint32_t *pui32Key,                                        \
4488                   uint32_t *pui32PPKey))ROM_SHAMD5TABLE[9])
4489#endif
4490#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4491    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4492    defined(TARGET_IS_TM4C129_RA2)
4493#define ROM_SHAMD5HMACPPKeySet                                                \
4494        ((void (*)(uint32_t ui32Base,                                         \
4495                   uint32_t *pui32Src))ROM_SHAMD5TABLE[10])
4496#endif
4497#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4498    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4499    defined(TARGET_IS_TM4C129_RA2)
4500#define ROM_SHAMD5HMACProcess                                                 \
4501        ((void (*)(uint32_t ui32Base,                                         \
4502                   uint32_t *pui32DataSrc,                                    \
4503                   uint32_t ui32DataLength,                                   \
4504                   uint32_t *pui32HashResult))ROM_SHAMD5TABLE[11])
4505#endif
4506#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4507    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4508    defined(TARGET_IS_TM4C129_RA2)
4509#define ROM_SHAMD5IntClear                                                    \
4510        ((void (*)(uint32_t ui32Base,                                         \
4511                   uint32_t ui32IntFlags))ROM_SHAMD5TABLE[12])
4512#endif
4513#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4514    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4515    defined(TARGET_IS_TM4C129_RA2)
4516#define ROM_SHAMD5IntDisable                                                  \
4517        ((void (*)(uint32_t ui32Base,                                         \
4518                   uint32_t ui32IntFlags))ROM_SHAMD5TABLE[13])
4519#endif
4520#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4521    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4522    defined(TARGET_IS_TM4C129_RA2)
4523#define ROM_SHAMD5IntEnable                                                   \
4524        ((void (*)(uint32_t ui32Base,                                         \
4525                   uint32_t ui32IntFlags))ROM_SHAMD5TABLE[14])
4526#endif
4527#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4528    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4529    defined(TARGET_IS_TM4C129_RA2)
4530#define ROM_SHAMD5Reset                                                       \
4531        ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[15])
4532#endif
4533#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
4534    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4535    defined(TARGET_IS_TM4C129_RA2)
4536#define ROM_SHAMD5ResultRead                                                  \
4537        ((void (*)(uint32_t ui32Base,                                         \
4538                   uint32_t *pui32Dest))ROM_SHAMD5TABLE[16])
4539#endif
4540
4541//*****************************************************************************
4542//
4543// Macros for calling ROM functions in the SMBus API.
4544//
4545//*****************************************************************************
4546#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4547    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4548    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4549    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4550    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4551    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4552    defined(TARGET_IS_TM4C129_RA2)
4553#define ROM_SMBusMasterIntProcess                                             \
4554        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[0])
4555#endif
4556#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4557    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4558    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4559    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4560    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4561    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4562    defined(TARGET_IS_TM4C129_RA2)
4563#define ROM_SMBusARPDisable                                                   \
4564        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[1])
4565#endif
4566#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4567    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4568    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4569    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4570    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4571    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4572    defined(TARGET_IS_TM4C129_RA2)
4573#define ROM_SMBusARPEnable                                                    \
4574        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[2])
4575#endif
4576#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4577    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4578    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4579    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4580    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4581    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4582    defined(TARGET_IS_TM4C129_RA2)
4583#define ROM_SMBusARPUDIDPacketDecode                                          \
4584        ((void (*)(tSMBusUDID *pUDID,                                         \
4585                   uint8_t *pui8Address,                                      \
4586                   uint8_t *pui8Data))ROM_SMBUSTABLE[3])
4587#endif
4588#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4589    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4590    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4591    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4592    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4593    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4594    defined(TARGET_IS_TM4C129_RA2)
4595#define ROM_SMBusARPUDIDPacketEncode                                          \
4596        ((void (*)(tSMBusUDID *pUDID,                                         \
4597                   uint8_t ui8Address,                                        \
4598                   uint8_t *pui8Data))ROM_SMBUSTABLE[4])
4599#endif
4600#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4601    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4602    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4603    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4604    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4605    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4606    defined(TARGET_IS_TM4C129_RA2)
4607#define ROM_SMBusMasterARPAssignAddress                                       \
4608        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4609                           uint8_t *pui8Data))ROM_SMBUSTABLE[5])
4610#endif
4611#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4612    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4613    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4614    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4615    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4616    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4617    defined(TARGET_IS_TM4C129_RA2)
4618#define ROM_SMBusMasterARPGetUDIDDir                                          \
4619        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4620                           uint8_t ui8TargetAddress,                          \
4621                           uint8_t *pui8Data))ROM_SMBUSTABLE[6])
4622#endif
4623#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4624    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4625    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4626    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4627    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4628    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4629    defined(TARGET_IS_TM4C129_RA2)
4630#define ROM_SMBusMasterARPGetUDIDGen                                          \
4631        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4632                           uint8_t *pui8Data))ROM_SMBUSTABLE[7])
4633#endif
4634#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4635    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4636    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4637    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4638    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4639    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4640    defined(TARGET_IS_TM4C129_RA2)
4641#define ROM_SMBusMasterARPNotifyMaster                                        \
4642        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4643                           uint8_t *pui8Data))ROM_SMBUSTABLE[8])
4644#endif
4645#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4646    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4647    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4648    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4649    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4650    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4651    defined(TARGET_IS_TM4C129_RA2)
4652#define ROM_SMBusMasterARPPrepareToARP                                        \
4653        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[9])
4654#endif
4655#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4656    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4657    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4658    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4659    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4660    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4661    defined(TARGET_IS_TM4C129_RA2)
4662#define ROM_SMBusMasterARPResetDeviceDir                                      \
4663        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4664                           uint8_t ui8TargetAddress))ROM_SMBUSTABLE[10])
4665#endif
4666#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4667    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4668    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4669    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4670    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4671    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4672    defined(TARGET_IS_TM4C129_RA2)
4673#define ROM_SMBusMasterARPResetDeviceGen                                      \
4674        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[11])
4675#endif
4676#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4677    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4678    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4679    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4680    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4681    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4682    defined(TARGET_IS_TM4C129_RA2)
4683#define ROM_SMBusMasterBlockProcessCall                                       \
4684        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4685                           uint8_t ui8TargetAddress,                          \
4686                           uint8_t ui8Command,                                \
4687                           uint8_t *pui8TxData,                               \
4688                           uint8_t ui8TxSize,                                 \
4689                           uint8_t *pui8RxData))ROM_SMBUSTABLE[12])
4690#endif
4691#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
4692    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4693    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4694    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4695    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4696    defined(TARGET_IS_TM4C129_RA2)
4697#define ROM_SMBusMasterBlockRead                                              \
4698        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4699                           uint8_t ui8TargetAddress,                          \
4700                           uint8_t ui8Command,                                \
4701                           uint8_t *pui8Data))ROM_SMBUSTABLE[13])
4702#endif
4703#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4704    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4705    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4706    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4707    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4708    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4709    defined(TARGET_IS_TM4C129_RA2)
4710#define ROM_SMBusMasterBlockWrite                                             \
4711        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4712                           uint8_t ui8TargetAddress,                          \
4713                           uint8_t ui8Command,                                \
4714                           uint8_t *pui8Data,                                 \
4715                           uint8_t ui8Size))ROM_SMBUSTABLE[14])
4716#endif
4717#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4718    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4719    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4720    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4721    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4722    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4723    defined(TARGET_IS_TM4C129_RA2)
4724#define ROM_SMBusMasterByteReceive                                            \
4725        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4726                           uint8_t ui8TargetAddress,                          \
4727                           uint8_t *pui8Data))ROM_SMBUSTABLE[15])
4728#endif
4729#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4730    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4731    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4732    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4733    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4734    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4735    defined(TARGET_IS_TM4C129_RA2)
4736#define ROM_SMBusMasterByteSend                                               \
4737        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4738                           uint8_t ui8TargetAddress,                          \
4739                           uint8_t ui8Data))ROM_SMBUSTABLE[16])
4740#endif
4741#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4742    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4743    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4744    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4745    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4746    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4747    defined(TARGET_IS_TM4C129_RA2)
4748#define ROM_SMBusMasterByteWordRead                                           \
4749        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4750                           uint8_t ui8TargetAddress,                          \
4751                           uint8_t ui8Command,                                \
4752                           uint8_t *pui8Data,                                 \
4753                           uint8_t ui8Size))ROM_SMBUSTABLE[17])
4754#endif
4755#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4756    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4757    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4758    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4759    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4760    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4761    defined(TARGET_IS_TM4C129_RA2)
4762#define ROM_SMBusMasterByteWordWrite                                          \
4763        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4764                           uint8_t ui8TargetAddress,                          \
4765                           uint8_t ui8Command,                                \
4766                           uint8_t *pui8Data,                                 \
4767                           uint8_t ui8Size))ROM_SMBUSTABLE[18])
4768#endif
4769#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4770    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4771    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4772    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4773    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4774    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4775    defined(TARGET_IS_TM4C129_RA2)
4776#define ROM_SMBusMasterHostNotify                                             \
4777        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4778                           uint8_t ui8OwnSlaveAddress,                        \
4779                           uint8_t *pui8Data))ROM_SMBUSTABLE[19])
4780#endif
4781#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4782    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4783    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4784    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4785    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4786    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4787    defined(TARGET_IS_TM4C129_RA2)
4788#define ROM_SMBusMasterI2CRead                                                \
4789        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4790                           uint8_t ui8TargetAddress,                          \
4791                           uint8_t *pui8Data,                                 \
4792                           uint8_t ui8Size))ROM_SMBUSTABLE[20])
4793#endif
4794#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4795    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4796    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4797    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4798    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4799    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4800    defined(TARGET_IS_TM4C129_RA2)
4801#define ROM_SMBusMasterI2CWrite                                               \
4802        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4803                           uint8_t ui8TargetAddress,                          \
4804                           uint8_t *pui8Data,                                 \
4805                           uint8_t ui8Size))ROM_SMBUSTABLE[21])
4806#endif
4807#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4808    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4809    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4810    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4811    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4812    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4813    defined(TARGET_IS_TM4C129_RA2)
4814#define ROM_SMBusMasterI2CWriteRead                                           \
4815        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4816                           uint8_t ui8TargetAddress,                          \
4817                           uint8_t *pui8TxData,                               \
4818                           uint8_t ui8TxSize,                                 \
4819                           uint8_t *pui8RxData,                               \
4820                           uint8_t ui8RxSize))ROM_SMBUSTABLE[22])
4821#endif
4822#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4823    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4824    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4825    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4826    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4827    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4828    defined(TARGET_IS_TM4C129_RA2)
4829#define ROM_SMBusMasterInit                                                   \
4830        ((void (*)(tSMBus *psSMBus,                                           \
4831                   uint32_t ui32I2CBase,                                      \
4832                   uint32_t ui32SMBusClock))ROM_SMBUSTABLE[23])
4833#endif
4834#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4835    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4836    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4837    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4838    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4839    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4840    defined(TARGET_IS_TM4C129_RA2)
4841#define ROM_SMBusMasterIntEnable                                              \
4842        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[24])
4843#endif
4844#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4845    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4846    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4847    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4848    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4849    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4850    defined(TARGET_IS_TM4C129_RA2)
4851#define ROM_SMBusMasterProcessCall                                            \
4852        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4853                           uint8_t ui8TargetAddress,                          \
4854                           uint8_t ui8Command,                                \
4855                           uint8_t *pui8TxData,                               \
4856                           uint8_t *pui8RxData))ROM_SMBUSTABLE[25])
4857#endif
4858#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4859    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4860    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4861    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4862    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4863    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4864    defined(TARGET_IS_TM4C129_RA2)
4865#define ROM_SMBusMasterQuickCommand                                           \
4866        ((tSMBusStatus (*)(tSMBus *psSMBus,                                   \
4867                           uint8_t ui8TargetAddress,                          \
4868                           bool bData))ROM_SMBUSTABLE[26])
4869#endif
4870#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4871    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4872    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4873    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4874    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4875    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4876    defined(TARGET_IS_TM4C129_RA2)
4877#define ROM_SMBusPECDisable                                                   \
4878        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[27])
4879#endif
4880#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4881    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4882    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4883    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4884    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4885    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4886    defined(TARGET_IS_TM4C129_RA2)
4887#define ROM_SMBusPECEnable                                                    \
4888        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[28])
4889#endif
4890#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4891    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4892    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4893    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4894    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4895    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4896    defined(TARGET_IS_TM4C129_RA2)
4897#define ROM_SMBusRxPacketSizeGet                                              \
4898        ((uint8_t (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[29])
4899#endif
4900#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4901    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4902    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4903    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4904    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4905    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4906    defined(TARGET_IS_TM4C129_RA2)
4907#define ROM_SMBusSlaveACKSend                                                 \
4908        ((void (*)(tSMBus *psSMBus,                                           \
4909                   bool bACK))ROM_SMBUSTABLE[30])
4910#endif
4911#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4912    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4913    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4914    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4915    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4916    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4917    defined(TARGET_IS_TM4C129_RA2)
4918#define ROM_SMBusSlaveAddressSet                                              \
4919        ((void (*)(tSMBus *psSMBus,                                           \
4920                   uint8_t ui8AddressNum,                                     \
4921                   uint8_t ui8SlaveAddress))ROM_SMBUSTABLE[31])
4922#endif
4923#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4924    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4925    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4926    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4927    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4928    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4929    defined(TARGET_IS_TM4C129_RA2)
4930#define ROM_SMBusSlaveARPFlagARGet                                            \
4931        ((bool (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[32])
4932#endif
4933#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4934    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4935    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4936    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4937    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4938    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4939    defined(TARGET_IS_TM4C129_RA2)
4940#define ROM_SMBusSlaveARPFlagARSet                                            \
4941        ((void (*)(tSMBus *psSMBus,                                           \
4942                   bool bValue))ROM_SMBUSTABLE[33])
4943#endif
4944#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4945    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4946    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4947    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4948    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4949    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4950    defined(TARGET_IS_TM4C129_RA2)
4951#define ROM_SMBusSlaveARPFlagAVGet                                            \
4952        ((bool (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[34])
4953#endif
4954#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4955    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4956    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4957    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4958    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4959    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4960    defined(TARGET_IS_TM4C129_RA2)
4961#define ROM_SMBusSlaveARPFlagAVSet                                            \
4962        ((void (*)(tSMBus *psSMBus,                                           \
4963                   bool bValue))ROM_SMBUSTABLE[35])
4964#endif
4965#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4966    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4967    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4968    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4969    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4970    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4971    defined(TARGET_IS_TM4C129_RA2)
4972#define ROM_SMBusSlaveBlockTransferDisable                                    \
4973        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[36])
4974#endif
4975#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4976    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4977    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4978    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4979    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4980    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4981    defined(TARGET_IS_TM4C129_RA2)
4982#define ROM_SMBusSlaveBlockTransferEnable                                     \
4983        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[37])
4984#endif
4985#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4986    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4987    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4988    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4989    defined(TARGET_IS_TM4C129_RA0) ||                                         \
4990    defined(TARGET_IS_TM4C129_RA1) ||                                         \
4991    defined(TARGET_IS_TM4C129_RA2)
4992#define ROM_SMBusSlaveCommandGet                                              \
4993        ((uint8_t (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[38])
4994#endif
4995#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
4996    defined(TARGET_IS_TM4C123_RA3) ||                                         \
4997    defined(TARGET_IS_TM4C123_RB1) ||                                         \
4998    defined(TARGET_IS_TM4C123_RB2) ||                                         \
4999    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5000    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5001    defined(TARGET_IS_TM4C129_RA2)
5002#define ROM_SMBusSlaveI2CDisable                                              \
5003        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[39])
5004#endif
5005#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5006    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5007    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5008    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5009    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5010    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5011    defined(TARGET_IS_TM4C129_RA2)
5012#define ROM_SMBusSlaveI2CEnable                                               \
5013        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[40])
5014#endif
5015#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5016    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5017    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5018    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5019    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5020    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5021    defined(TARGET_IS_TM4C129_RA2)
5022#define ROM_SMBusSlaveInit                                                    \
5023        ((void (*)(tSMBus *psSMBus,                                           \
5024                   uint32_t ui32I2CBase))ROM_SMBUSTABLE[41])
5025#endif
5026#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5027    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5028    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5029    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5030    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5031    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5032    defined(TARGET_IS_TM4C129_RA2)
5033#define ROM_SMBusSlaveIntAddressGet                                           \
5034        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[42])
5035#endif
5036#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5037    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5038    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5039    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5040    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5041    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5042    defined(TARGET_IS_TM4C129_RA2)
5043#define ROM_SMBusSlaveIntEnable                                               \
5044        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[43])
5045#endif
5046#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5047    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5048    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5049    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5050    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5051    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5052    defined(TARGET_IS_TM4C129_RA2)
5053#define ROM_SMBusSlaveIntProcess                                              \
5054        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[44])
5055#endif
5056#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5057    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5058    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5059    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5060    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5061    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5062    defined(TARGET_IS_TM4C129_RA2)
5063#define ROM_SMBusSlaveManualACKDisable                                        \
5064        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[45])
5065#endif
5066#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5067    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5068    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5069    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5070    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5071    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5072    defined(TARGET_IS_TM4C129_RA2)
5073#define ROM_SMBusSlaveManualACKEnable                                         \
5074        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[46])
5075#endif
5076#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5077    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5078    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5079    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5080    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5081    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5082    defined(TARGET_IS_TM4C129_RA2)
5083#define ROM_SMBusSlaveManualACKStatusGet                                      \
5084        ((bool (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[47])
5085#endif
5086#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5087    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5088    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5089    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5090    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5091    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5092    defined(TARGET_IS_TM4C129_RA2)
5093#define ROM_SMBusSlaveProcessCallDisable                                      \
5094        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[48])
5095#endif
5096#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5097    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5098    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5099    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5100    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5101    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5102    defined(TARGET_IS_TM4C129_RA2)
5103#define ROM_SMBusSlaveProcessCallEnable                                       \
5104        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[49])
5105#endif
5106#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5107    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5108    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5109    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5110    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5111    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5112    defined(TARGET_IS_TM4C129_RA2)
5113#define ROM_SMBusSlaveRxBufferSet                                             \
5114        ((void (*)(tSMBus *psSMBus,                                           \
5115                   uint8_t *pui8Data,                                         \
5116                   uint8_t ui8Size))ROM_SMBUSTABLE[50])
5117#endif
5118#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5119    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5120    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5121    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5122    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5123    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5124    defined(TARGET_IS_TM4C129_RA2)
5125#define ROM_SMBusSlaveTransferInit                                            \
5126        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[51])
5127#endif
5128#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5129    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5130    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5131    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5132    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5133    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5134    defined(TARGET_IS_TM4C129_RA2)
5135#define ROM_SMBusSlaveTxBufferSet                                             \
5136        ((void (*)(tSMBus *psSMBus,                                           \
5137                   uint8_t *pui8Data,                                         \
5138                   uint8_t ui8Size))ROM_SMBUSTABLE[52])
5139#endif
5140#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5141    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5142    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5143    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5144    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5145    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5146    defined(TARGET_IS_TM4C129_RA2)
5147#define ROM_SMBusSlaveUDIDSet                                                 \
5148        ((void (*)(tSMBus *psSMBus,                                           \
5149                   tSMBusUDID *pUDID))ROM_SMBUSTABLE[53])
5150#endif
5151#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5152    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5153    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5154    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5155    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5156    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5157    defined(TARGET_IS_TM4C129_RA2)
5158#define ROM_SMBusStatusGet                                                    \
5159        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[54])
5160#endif
5161#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
5162    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5163    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5164    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5165    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5166    defined(TARGET_IS_TM4C129_RA2)
5167#define ROM_SMBusSlaveDataSend                                                \
5168        ((tSMBusStatus (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[55])
5169#endif
5170#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5171    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5172    defined(TARGET_IS_TM4C129_RA2)
5173#define ROM_SMBusFIFOEnable                                                   \
5174        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[56])
5175#endif
5176#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5177    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5178    defined(TARGET_IS_TM4C129_RA2)
5179#define ROM_SMBusFIFODisable                                                  \
5180        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[57])
5181#endif
5182#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5183    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5184    defined(TARGET_IS_TM4C129_RA2)
5185#define ROM_SMBusDMAEnable                                                    \
5186        ((void (*)(tSMBus *psSMBus,                                           \
5187                   uint8_t ui8TxChannel,                                      \
5188                   uint8_t ui8RxChannel))ROM_SMBUSTABLE[58])
5189#endif
5190#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5191    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5192    defined(TARGET_IS_TM4C129_RA2)
5193#define ROM_SMBusDMADisable                                                   \
5194        ((void (*)(tSMBus *psSMBus))ROM_SMBUSTABLE[59])
5195#endif
5196
5197//*****************************************************************************
5198//
5199// Macros for calling ROM functions in the SPIFlash API.
5200//
5201//*****************************************************************************
5202#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5203    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5204    defined(TARGET_IS_TM4C129_RA2)
5205#define ROM_SPIFlashIntHandler                                                \
5206        ((uint32_t (*)(tSPIFlashState *pState))ROM_SPIFLASHTABLE[0])
5207#endif
5208#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5209    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5210    defined(TARGET_IS_TM4C129_RA2)
5211#define ROM_SPIFlashInit                                                      \
5212        ((void (*)(uint32_t ui32Base,                                         \
5213                   uint32_t ui32Clock,                                        \
5214                   uint32_t ui32BitRate))ROM_SPIFLASHTABLE[1])
5215#endif
5216#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5217    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5218    defined(TARGET_IS_TM4C129_RA2)
5219#define ROM_SPIFlashWriteStatus                                               \
5220        ((void (*)(uint32_t ui32Base,                                         \
5221                   uint8_t ui8Status))ROM_SPIFLASHTABLE[2])
5222#endif
5223#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5224    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5225    defined(TARGET_IS_TM4C129_RA2)
5226#define ROM_SPIFlashPageProgram                                               \
5227        ((void (*)(uint32_t ui32Base,                                         \
5228                   uint32_t ui32Addr,                                         \
5229                   const uint8_t *pui8Data,                                   \
5230                   uint32_t ui32Count))ROM_SPIFLASHTABLE[3])
5231#endif
5232#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5233    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5234    defined(TARGET_IS_TM4C129_RA2)
5235#define ROM_SPIFlashPageProgramNonBlocking                                    \
5236        ((void (*)(tSPIFlashState *pState,                                    \
5237                   uint32_t ui32Base,                                         \
5238                   uint32_t ui32Addr,                                         \
5239                   const uint8_t *pui8Data,                                   \
5240                   uint32_t ui32Count,                                        \
5241                   bool bUseDMA,                                              \
5242                   uint32_t ui32TxChannel))ROM_SPIFLASHTABLE[4])
5243#endif
5244#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5245    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5246    defined(TARGET_IS_TM4C129_RA2)
5247#define ROM_SPIFlashRead                                                      \
5248        ((void (*)(uint32_t ui32Base,                                         \
5249                   uint32_t ui32Addr,                                         \
5250                   uint8_t *pui8Data,                                         \
5251                   uint32_t ui32Count))ROM_SPIFLASHTABLE[5])
5252#endif
5253#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5254    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5255    defined(TARGET_IS_TM4C129_RA2)
5256#define ROM_SPIFlashReadNonBlocking                                           \
5257        ((void (*)(tSPIFlashState *pState,                                    \
5258                   uint32_t ui32Base,                                         \
5259                   uint32_t ui32Addr,                                         \
5260                   uint8_t *pui8Data,                                         \
5261                   uint32_t ui32Count,                                        \
5262                   bool bUseDMA,                                              \
5263                   uint32_t ui32TxChannel,                                    \
5264                   uint32_t ui32RxChannel))ROM_SPIFLASHTABLE[6])
5265#endif
5266#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5267    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5268    defined(TARGET_IS_TM4C129_RA2)
5269#define ROM_SPIFlashWriteDisable                                              \
5270        ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[7])
5271#endif
5272#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5273    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5274    defined(TARGET_IS_TM4C129_RA2)
5275#define ROM_SPIFlashReadStatus                                                \
5276        ((uint8_t (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[8])
5277#endif
5278#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5279    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5280    defined(TARGET_IS_TM4C129_RA2)
5281#define ROM_SPIFlashWriteEnable                                               \
5282        ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[9])
5283#endif
5284#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5285    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5286    defined(TARGET_IS_TM4C129_RA2)
5287#define ROM_SPIFlashFastRead                                                  \
5288        ((void (*)(uint32_t ui32Base,                                         \
5289                   uint32_t ui32Addr,                                         \
5290                   uint8_t *pui8Data,                                         \
5291                   uint32_t ui32Count))ROM_SPIFLASHTABLE[10])
5292#endif
5293#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5294    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5295    defined(TARGET_IS_TM4C129_RA2)
5296#define ROM_SPIFlashFastReadNonBlocking                                       \
5297        ((void (*)(tSPIFlashState *pState,                                    \
5298                   uint32_t ui32Base,                                         \
5299                   uint32_t ui32Addr,                                         \
5300                   uint8_t *pui8Data,                                         \
5301                   uint32_t ui32Count,                                        \
5302                   bool bUseDMA,                                              \
5303                   uint32_t ui32TxChannel,                                    \
5304                   uint32_t ui32RxChannel))ROM_SPIFLASHTABLE[11])
5305#endif
5306#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5307    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5308    defined(TARGET_IS_TM4C129_RA2)
5309#define ROM_SPIFlashSectorErase                                               \
5310        ((void (*)(uint32_t ui32Base,                                         \
5311                   uint32_t ui32Addr))ROM_SPIFLASHTABLE[12])
5312#endif
5313#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5314    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5315    defined(TARGET_IS_TM4C129_RA2)
5316#define ROM_SPIFlashDualRead                                                  \
5317        ((void (*)(uint32_t ui32Base,                                         \
5318                   uint32_t ui32Addr,                                         \
5319                   uint8_t *pui8Data,                                         \
5320                   uint32_t ui32Count))ROM_SPIFLASHTABLE[13])
5321#endif
5322#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5323    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5324    defined(TARGET_IS_TM4C129_RA2)
5325#define ROM_SPIFlashDualReadNonBlocking                                       \
5326        ((void (*)(tSPIFlashState *pState,                                    \
5327                   uint32_t ui32Base,                                         \
5328                   uint32_t ui32Addr,                                         \
5329                   uint8_t *pui8Data,                                         \
5330                   uint32_t ui32Count,                                        \
5331                   bool bUseDMA,                                              \
5332                   uint32_t ui32TxChannel,                                    \
5333                   uint32_t ui32RxChannel))ROM_SPIFLASHTABLE[14])
5334#endif
5335#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5336    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5337    defined(TARGET_IS_TM4C129_RA2)
5338#define ROM_SPIFlashBlockErase32                                              \
5339        ((void (*)(uint32_t ui32Base,                                         \
5340                   uint32_t ui32Addr))ROM_SPIFLASHTABLE[15])
5341#endif
5342#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5343    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5344    defined(TARGET_IS_TM4C129_RA2)
5345#define ROM_SPIFlashQuadRead                                                  \
5346        ((void (*)(uint32_t ui32Base,                                         \
5347                   uint32_t ui32Addr,                                         \
5348                   uint8_t *pui8Data,                                         \
5349                   uint32_t ui32Count))ROM_SPIFLASHTABLE[16])
5350#endif
5351#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5352    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5353    defined(TARGET_IS_TM4C129_RA2)
5354#define ROM_SPIFlashQuadReadNonBlocking                                       \
5355        ((void (*)(tSPIFlashState *pState,                                    \
5356                   uint32_t ui32Base,                                         \
5357                   uint32_t ui32Addr,                                         \
5358                   uint8_t *pui8Data,                                         \
5359                   uint32_t ui32Count,                                        \
5360                   bool bUseDMA,                                              \
5361                   uint32_t ui32TxChannel,                                    \
5362                   uint32_t ui32RxChannel))ROM_SPIFLASHTABLE[17])
5363#endif
5364#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5365    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5366    defined(TARGET_IS_TM4C129_RA2)
5367#define ROM_SPIFlashReadID                                                    \
5368        ((void (*)(uint32_t ui32Base,                                         \
5369                   uint8_t *pui8ManufacturerID,                               \
5370                   uint16_t *pui16DeviceID))ROM_SPIFLASHTABLE[18])
5371#endif
5372#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5373    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5374    defined(TARGET_IS_TM4C129_RA2)
5375#define ROM_SPIFlashChipErase                                                 \
5376        ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[19])
5377#endif
5378#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5379    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5380    defined(TARGET_IS_TM4C129_RA2)
5381#define ROM_SPIFlashBlockErase64                                              \
5382        ((void (*)(uint32_t ui32Base,                                         \
5383                   uint32_t ui32Addr))ROM_SPIFLASHTABLE[20])
5384#endif
5385
5386//*****************************************************************************
5387//
5388// Macros for calling ROM functions in the SSI API.
5389//
5390//*****************************************************************************
5391#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5392    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5393    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5394    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5395    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5396    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5397    defined(TARGET_IS_TM4C129_RA2)
5398#define ROM_SSIDataPut                                                        \
5399        ((void (*)(uint32_t ui32Base,                                         \
5400                   uint32_t ui32Data))ROM_SSITABLE[0])
5401#endif
5402#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5403    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5404    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5405    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5406    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5407    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5408    defined(TARGET_IS_TM4C129_RA2)
5409#define ROM_SSIConfigSetExpClk                                                \
5410        ((void (*)(uint32_t ui32Base,                                         \
5411                   uint32_t ui32SSIClk,                                       \
5412                   uint32_t ui32Protocol,                                     \
5413                   uint32_t ui32Mode,                                         \
5414                   uint32_t ui32BitRate,                                      \
5415                   uint32_t ui32DataWidth))ROM_SSITABLE[1])
5416#endif
5417#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5418    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5419    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5420    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5421    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5422    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5423    defined(TARGET_IS_TM4C129_RA2)
5424#define ROM_SSIEnable                                                         \
5425        ((void (*)(uint32_t ui32Base))ROM_SSITABLE[2])
5426#endif
5427#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5428    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5429    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5430    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5431    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5432    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5433    defined(TARGET_IS_TM4C129_RA2)
5434#define ROM_SSIDisable                                                        \
5435        ((void (*)(uint32_t ui32Base))ROM_SSITABLE[3])
5436#endif
5437#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5438    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5439    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5440    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5441    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5442    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5443    defined(TARGET_IS_TM4C129_RA2)
5444#define ROM_SSIIntEnable                                                      \
5445        ((void (*)(uint32_t ui32Base,                                         \
5446                   uint32_t ui32IntFlags))ROM_SSITABLE[4])
5447#endif
5448#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5449    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5450    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5451    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5452    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5453    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5454    defined(TARGET_IS_TM4C129_RA2)
5455#define ROM_SSIIntDisable                                                     \
5456        ((void (*)(uint32_t ui32Base,                                         \
5457                   uint32_t ui32IntFlags))ROM_SSITABLE[5])
5458#endif
5459#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5460    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5461    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5462    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5463    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5464    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5465    defined(TARGET_IS_TM4C129_RA2)
5466#define ROM_SSIIntStatus                                                      \
5467        ((uint32_t (*)(uint32_t ui32Base,                                     \
5468                       bool bMasked))ROM_SSITABLE[6])
5469#endif
5470#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5471    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5472    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5473    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5474    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5475    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5476    defined(TARGET_IS_TM4C129_RA2)
5477#define ROM_SSIIntClear                                                       \
5478        ((void (*)(uint32_t ui32Base,                                         \
5479                   uint32_t ui32IntFlags))ROM_SSITABLE[7])
5480#endif
5481#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5482    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5483    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5484    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5485    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5486    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5487    defined(TARGET_IS_TM4C129_RA2)
5488#define ROM_SSIDataPutNonBlocking                                             \
5489        ((int32_t (*)(uint32_t ui32Base,                                      \
5490                      uint32_t ui32Data))ROM_SSITABLE[8])
5491#endif
5492#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5493    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5494    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5495    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5496    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5497    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5498    defined(TARGET_IS_TM4C129_RA2)
5499#define ROM_SSIDataGet                                                        \
5500        ((void (*)(uint32_t ui32Base,                                         \
5501                   uint32_t *pui32Data))ROM_SSITABLE[9])
5502#endif
5503#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5504    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5505    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5506    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5507    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5508    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5509    defined(TARGET_IS_TM4C129_RA2)
5510#define ROM_SSIDataGetNonBlocking                                             \
5511        ((int32_t (*)(uint32_t ui32Base,                                      \
5512                      uint32_t *pui32Data))ROM_SSITABLE[10])
5513#endif
5514#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5515    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5516    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5517    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5518    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5519    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5520    defined(TARGET_IS_TM4C129_RA2)
5521#define ROM_UpdateSSI                                                         \
5522        ((void (*)(void))ROM_SSITABLE[11])
5523#endif
5524#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5525    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5526    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5527    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5528    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5529    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5530    defined(TARGET_IS_TM4C129_RA2)
5531#define ROM_SSIDMAEnable                                                      \
5532        ((void (*)(uint32_t ui32Base,                                         \
5533                   uint32_t ui32DMAFlags))ROM_SSITABLE[12])
5534#endif
5535#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5536    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5537    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5538    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5539    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5540    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5541    defined(TARGET_IS_TM4C129_RA2)
5542#define ROM_SSIDMADisable                                                     \
5543        ((void (*)(uint32_t ui32Base,                                         \
5544                   uint32_t ui32DMAFlags))ROM_SSITABLE[13])
5545#endif
5546#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5547    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5548    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5549    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5550    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5551    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5552    defined(TARGET_IS_TM4C129_RA2)
5553#define ROM_SSIBusy                                                           \
5554        ((bool (*)(uint32_t ui32Base))ROM_SSITABLE[14])
5555#endif
5556#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5557    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5558    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5559    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5560    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5561    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5562    defined(TARGET_IS_TM4C129_RA2)
5563#define ROM_SSIClockSourceGet                                                 \
5564        ((uint32_t (*)(uint32_t ui32Base))ROM_SSITABLE[15])
5565#endif
5566#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5567    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5568    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5569    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5570    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5571    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5572    defined(TARGET_IS_TM4C129_RA2)
5573#define ROM_SSIClockSourceSet                                                 \
5574        ((void (*)(uint32_t ui32Base,                                         \
5575                   uint32_t ui32Source))ROM_SSITABLE[16])
5576#endif
5577#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5578    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5579    defined(TARGET_IS_TM4C129_RA2)
5580#define ROM_SSIAdvModeSet                                                     \
5581        ((void (*)(uint32_t ui32Base,                                         \
5582                   uint32_t ui32Mode))ROM_SSITABLE[17])
5583#endif
5584#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5585    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5586    defined(TARGET_IS_TM4C129_RA2)
5587#define ROM_SSIAdvDataPutFrameEnd                                             \
5588        ((void (*)(uint32_t ui32Base,                                         \
5589                   uint32_t ui32Data))ROM_SSITABLE[18])
5590#endif
5591#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5592    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5593    defined(TARGET_IS_TM4C129_RA2)
5594#define ROM_SSIAdvDataPutFrameEndNonBlocking                                  \
5595        ((int32_t (*)(uint32_t ui32Base,                                      \
5596                      uint32_t ui32Data))ROM_SSITABLE[19])
5597#endif
5598#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5599    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5600    defined(TARGET_IS_TM4C129_RA2)
5601#define ROM_SSIAdvFrameHoldEnable                                             \
5602        ((void (*)(uint32_t ui32Base))ROM_SSITABLE[20])
5603#endif
5604#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5605    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5606    defined(TARGET_IS_TM4C129_RA2)
5607#define ROM_SSIAdvFrameHoldDisable                                            \
5608        ((void (*)(uint32_t ui32Base))ROM_SSITABLE[21])
5609#endif
5610
5611//*****************************************************************************
5612//
5613// Macros for calling ROM functions in the SysCtl API.
5614//
5615//*****************************************************************************
5616#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5617    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5618    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5619    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5620    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5621    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5622    defined(TARGET_IS_TM4C129_RA2)
5623#define ROM_SysCtlSleep                                                       \
5624        ((void (*)(void))ROM_SYSCTLTABLE[0])
5625#endif
5626#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5627    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5628    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5629    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5630    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5631    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5632    defined(TARGET_IS_TM4C129_RA2)
5633#define ROM_SysCtlSRAMSizeGet                                                 \
5634        ((uint32_t (*)(void))ROM_SYSCTLTABLE[1])
5635#endif
5636#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5637    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5638    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5639    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5640    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5641    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5642    defined(TARGET_IS_TM4C129_RA2)
5643#define ROM_SysCtlFlashSizeGet                                                \
5644        ((uint32_t (*)(void))ROM_SYSCTLTABLE[2])
5645#endif
5646#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5647    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5648    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5649    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5650    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5651    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5652    defined(TARGET_IS_TM4C129_RA2)
5653#define ROM_SysCtlPeripheralPresent                                           \
5654        ((bool (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[4])
5655#endif
5656#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5657    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5658    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5659    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5660    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5661    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5662    defined(TARGET_IS_TM4C129_RA2)
5663#define ROM_SysCtlPeripheralReset                                             \
5664        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[5])
5665#endif
5666#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5667    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5668    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5669    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5670    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5671    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5672    defined(TARGET_IS_TM4C129_RA2)
5673#define ROM_SysCtlPeripheralEnable                                            \
5674        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[6])
5675#endif
5676#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5677    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5678    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5679    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5680    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5681    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5682    defined(TARGET_IS_TM4C129_RA2)
5683#define ROM_SysCtlPeripheralDisable                                           \
5684        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[7])
5685#endif
5686#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5687    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5688    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5689    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5690    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5691    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5692    defined(TARGET_IS_TM4C129_RA2)
5693#define ROM_SysCtlPeripheralSleepEnable                                       \
5694        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[8])
5695#endif
5696#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5697    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5698    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5699    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5700    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5701    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5702    defined(TARGET_IS_TM4C129_RA2)
5703#define ROM_SysCtlPeripheralSleepDisable                                      \
5704        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[9])
5705#endif
5706#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5707    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5708    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5709    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5710    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5711    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5712    defined(TARGET_IS_TM4C129_RA2)
5713#define ROM_SysCtlPeripheralDeepSleepEnable                                   \
5714        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[10])
5715#endif
5716#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5717    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5718    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5719    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5720    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5721    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5722    defined(TARGET_IS_TM4C129_RA2)
5723#define ROM_SysCtlPeripheralDeepSleepDisable                                  \
5724        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[11])
5725#endif
5726#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5727    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5728    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5729    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5730    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5731    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5732    defined(TARGET_IS_TM4C129_RA2)
5733#define ROM_SysCtlPeripheralClockGating                                       \
5734        ((void (*)(bool bEnable))ROM_SYSCTLTABLE[12])
5735#endif
5736#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5737    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5738    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5739    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5740    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5741    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5742    defined(TARGET_IS_TM4C129_RA2)
5743#define ROM_SysCtlIntEnable                                                   \
5744        ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[13])
5745#endif
5746#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5747    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5748    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5749    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5750    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5751    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5752    defined(TARGET_IS_TM4C129_RA2)
5753#define ROM_SysCtlIntDisable                                                  \
5754        ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[14])
5755#endif
5756#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5757    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5758    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5759    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5760    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5761    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5762    defined(TARGET_IS_TM4C129_RA2)
5763#define ROM_SysCtlIntClear                                                    \
5764        ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[15])
5765#endif
5766#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5767    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5768    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5769    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5770    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5771    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5772    defined(TARGET_IS_TM4C129_RA2)
5773#define ROM_SysCtlIntStatus                                                   \
5774        ((uint32_t (*)(bool bMasked))ROM_SYSCTLTABLE[16])
5775#endif
5776#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5777    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5778    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5779    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5780    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5781    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5782    defined(TARGET_IS_TM4C129_RA2)
5783#define ROM_SysCtlReset                                                       \
5784        ((void (*)(void))ROM_SYSCTLTABLE[19])
5785#endif
5786#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5787    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5788    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5789    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5790    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5791    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5792    defined(TARGET_IS_TM4C129_RA2)
5793#define ROM_SysCtlDeepSleep                                                   \
5794        ((void (*)(void))ROM_SYSCTLTABLE[20])
5795#endif
5796#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5797    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5798    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5799    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5800    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5801    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5802    defined(TARGET_IS_TM4C129_RA2)
5803#define ROM_SysCtlResetCauseGet                                               \
5804        ((uint32_t (*)(void))ROM_SYSCTLTABLE[21])
5805#endif
5806#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5807    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5808    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5809    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5810    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5811    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5812    defined(TARGET_IS_TM4C129_RA2)
5813#define ROM_SysCtlResetCauseClear                                             \
5814        ((void (*)(uint32_t ui32Causes))ROM_SYSCTLTABLE[22])
5815#endif
5816#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5817    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5818    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5819    defined(TARGET_IS_TM4C123_RB2)
5820#define ROM_SysCtlClockSet                                                    \
5821        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[23])
5822#endif
5823#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5824    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5825    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5826    defined(TARGET_IS_TM4C123_RB2)
5827#define ROM_SysCtlClockGet                                                    \
5828        ((uint32_t (*)(void))ROM_SYSCTLTABLE[24])
5829#endif
5830#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5831    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5832    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5833    defined(TARGET_IS_TM4C123_RB2)
5834#define ROM_SysCtlPWMClockSet                                                 \
5835        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[25])
5836#endif
5837#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5838    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5839    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5840    defined(TARGET_IS_TM4C123_RB2)
5841#define ROM_SysCtlPWMClockGet                                                 \
5842        ((uint32_t (*)(void))ROM_SYSCTLTABLE[26])
5843#endif
5844#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5845    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5846    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5847    defined(TARGET_IS_TM4C123_RB2)
5848#define ROM_SysCtlUSBPLLEnable                                                \
5849        ((void (*)(void))ROM_SYSCTLTABLE[31])
5850#endif
5851#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5852    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5853    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5854    defined(TARGET_IS_TM4C123_RB2)
5855#define ROM_SysCtlUSBPLLDisable                                               \
5856        ((void (*)(void))ROM_SYSCTLTABLE[32])
5857#endif
5858#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5859    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5860    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5861    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5862    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5863    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5864    defined(TARGET_IS_TM4C129_RA2)
5865#define ROM_SysCtlDelay                                                       \
5866        ((void (*)(uint32_t ui32Count))ROM_SYSCTLTABLE[34])
5867#endif
5868#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5869    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5870    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5871    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5872    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5873    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5874    defined(TARGET_IS_TM4C129_RA2)
5875#define ROM_SysCtlPeripheralReady                                             \
5876        ((bool (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[35])
5877#endif
5878#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5879    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5880    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5881    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5882    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5883    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5884    defined(TARGET_IS_TM4C129_RA2)
5885#define ROM_SysCtlPeripheralPowerOn                                           \
5886        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[36])
5887#endif
5888#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5889    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5890    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5891    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5892    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5893    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5894    defined(TARGET_IS_TM4C129_RA2)
5895#define ROM_SysCtlPeripheralPowerOff                                          \
5896        ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[37])
5897#endif
5898#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5899    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5900    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5901    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5902    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5903    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5904    defined(TARGET_IS_TM4C129_RA2)
5905#define ROM_SysCtlMOSCConfigSet                                               \
5906        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[44])
5907#endif
5908#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5909    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5910    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5911    defined(TARGET_IS_TM4C123_RB2) ||                                         \
5912    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5913    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5914    defined(TARGET_IS_TM4C129_RA2)
5915#define ROM_SysCtlPIOSCCalibrate                                              \
5916        ((uint32_t (*)(uint32_t ui32Type))ROM_SYSCTLTABLE[45])
5917#endif
5918#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
5919    defined(TARGET_IS_TM4C123_RA3) ||                                         \
5920    defined(TARGET_IS_TM4C123_RB1) ||                                         \
5921    defined(TARGET_IS_TM4C123_RB2)
5922#define ROM_SysCtlDeepSleepClockSet                                           \
5923        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[46])
5924#endif
5925#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5926    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5927    defined(TARGET_IS_TM4C129_RA2)
5928#define ROM_SysCtlDeepSleepClockConfigSet                                     \
5929        ((void (*)(uint32_t ui32Div,                                          \
5930                   uint32_t ui32Config))ROM_SYSCTLTABLE[47])
5931#endif
5932#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5933    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5934    defined(TARGET_IS_TM4C129_RA2)
5935#define ROM_SysCtlResetBehaviorSet                                            \
5936        ((void (*)(uint32_t ui32Behavior))ROM_SYSCTLTABLE[51])
5937#endif
5938#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5939    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5940    defined(TARGET_IS_TM4C129_RA2)
5941#define ROM_SysCtlResetBehaviorGet                                            \
5942        ((uint32_t (*)(void))ROM_SYSCTLTABLE[52])
5943#endif
5944#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5945    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5946    defined(TARGET_IS_TM4C129_RA2)
5947#define ROM_SysCtlFlashSectorSizeGet                                          \
5948        ((uint32_t (*)(void))ROM_SYSCTLTABLE[54])
5949#endif
5950#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
5951    defined(TARGET_IS_TM4C129_RA0) ||                                         \
5952    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5953    defined(TARGET_IS_TM4C129_RA2)
5954#define ROM_SysCtlVoltageEventConfig                                          \
5955        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[55])
5956#endif
5957#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5958    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5959    defined(TARGET_IS_TM4C129_RA2)
5960#define ROM_SysCtlVoltageEventStatus                                          \
5961        ((uint32_t (*)(void))ROM_SYSCTLTABLE[56])
5962#endif
5963#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5964    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5965    defined(TARGET_IS_TM4C129_RA2)
5966#define ROM_SysCtlVoltageEventClear                                           \
5967        ((void (*)(uint32_t ui32Status))ROM_SYSCTLTABLE[57])
5968#endif
5969#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5970    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5971    defined(TARGET_IS_TM4C129_RA2)
5972#define ROM_SysCtlNMIStatus                                                   \
5973        ((uint32_t (*)(void))ROM_SYSCTLTABLE[58])
5974#endif
5975#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5976    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5977    defined(TARGET_IS_TM4C129_RA2)
5978#define ROM_SysCtlNMIClear                                                    \
5979        ((void (*)(uint32_t ui32Status))ROM_SYSCTLTABLE[59])
5980#endif
5981#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5982    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5983    defined(TARGET_IS_TM4C129_RA2)
5984#define ROM_SysCtlClockOutConfig                                              \
5985        ((void (*)(uint32_t ui32Config,                                       \
5986                   uint32_t ui32Div))ROM_SYSCTLTABLE[60])
5987#endif
5988#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
5989    defined(TARGET_IS_TM4C129_RA1) ||                                         \
5990    defined(TARGET_IS_TM4C129_RA2)
5991#define ROM_SysCtlAltClkConfig                                                \
5992        ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[61])
5993#endif
5994
5995//*****************************************************************************
5996//
5997// Macros for calling ROM functions in the SysExc API.
5998//
5999//*****************************************************************************
6000#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6001    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6002    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6003    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6004    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6005    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6006    defined(TARGET_IS_TM4C129_RA2)
6007#define ROM_SysExcIntStatus                                                   \
6008        ((uint32_t (*)(bool bMasked))ROM_SYSEXCTABLE[0])
6009#endif
6010#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6011    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6012    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6013    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6014    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6015    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6016    defined(TARGET_IS_TM4C129_RA2)
6017#define ROM_SysExcIntClear                                                    \
6018        ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[1])
6019#endif
6020#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6021    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6022    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6023    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6024    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6025    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6026    defined(TARGET_IS_TM4C129_RA2)
6027#define ROM_SysExcIntDisable                                                  \
6028        ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[2])
6029#endif
6030#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6031    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6032    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6033    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6034    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6035    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6036    defined(TARGET_IS_TM4C129_RA2)
6037#define ROM_SysExcIntEnable                                                   \
6038        ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[3])
6039#endif
6040
6041//*****************************************************************************
6042//
6043// Macros for calling ROM functions in the SysTick API.
6044//
6045//*****************************************************************************
6046#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6047    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6048    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6049    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6050    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6051    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6052    defined(TARGET_IS_TM4C129_RA2)
6053#define ROM_SysTickValueGet                                                   \
6054        ((uint32_t (*)(void))ROM_SYSTICKTABLE[0])
6055#endif
6056#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6057    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6058    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6059    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6060    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6061    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6062    defined(TARGET_IS_TM4C129_RA2)
6063#define ROM_SysTickEnable                                                     \
6064        ((void (*)(void))ROM_SYSTICKTABLE[1])
6065#endif
6066#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6067    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6068    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6069    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6070    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6071    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6072    defined(TARGET_IS_TM4C129_RA2)
6073#define ROM_SysTickDisable                                                    \
6074        ((void (*)(void))ROM_SYSTICKTABLE[2])
6075#endif
6076#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6077    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6078    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6079    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6080    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6081    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6082    defined(TARGET_IS_TM4C129_RA2)
6083#define ROM_SysTickIntEnable                                                  \
6084        ((void (*)(void))ROM_SYSTICKTABLE[3])
6085#endif
6086#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6087    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6088    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6089    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6090    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6091    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6092    defined(TARGET_IS_TM4C129_RA2)
6093#define ROM_SysTickIntDisable                                                 \
6094        ((void (*)(void))ROM_SYSTICKTABLE[4])
6095#endif
6096#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6097    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6098    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6099    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6100    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6101    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6102    defined(TARGET_IS_TM4C129_RA2)
6103#define ROM_SysTickPeriodSet                                                  \
6104        ((void (*)(uint32_t ui32Period))ROM_SYSTICKTABLE[5])
6105#endif
6106#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6107    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6108    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6109    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6110    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6111    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6112    defined(TARGET_IS_TM4C129_RA2)
6113#define ROM_SysTickPeriodGet                                                  \
6114        ((uint32_t (*)(void))ROM_SYSTICKTABLE[6])
6115#endif
6116
6117//*****************************************************************************
6118//
6119// Macros for calling ROM functions in the Timer API.
6120//
6121//*****************************************************************************
6122#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6123    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6124    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6125    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6126    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6127    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6128    defined(TARGET_IS_TM4C129_RA2)
6129#define ROM_TimerIntClear                                                     \
6130        ((void (*)(uint32_t ui32Base,                                         \
6131                   uint32_t ui32IntFlags))ROM_TIMERTABLE[0])
6132#endif
6133#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6134    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6135    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6136    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6137    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6138    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6139    defined(TARGET_IS_TM4C129_RA2)
6140#define ROM_TimerEnable                                                       \
6141        ((void (*)(uint32_t ui32Base,                                         \
6142                   uint32_t ui32Timer))ROM_TIMERTABLE[1])
6143#endif
6144#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6145    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6146    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6147    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6148    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6149    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6150    defined(TARGET_IS_TM4C129_RA2)
6151#define ROM_TimerDisable                                                      \
6152        ((void (*)(uint32_t ui32Base,                                         \
6153                   uint32_t ui32Timer))ROM_TIMERTABLE[2])
6154#endif
6155#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6156    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6157    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6158    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6159    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6160    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6161    defined(TARGET_IS_TM4C129_RA2)
6162#define ROM_TimerConfigure                                                    \
6163        ((void (*)(uint32_t ui32Base,                                         \
6164                   uint32_t ui32Config))ROM_TIMERTABLE[3])
6165#endif
6166#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6167    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6168    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6169    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6170    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6171    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6172    defined(TARGET_IS_TM4C129_RA2)
6173#define ROM_TimerControlLevel                                                 \
6174        ((void (*)(uint32_t ui32Base,                                         \
6175                   uint32_t ui32Timer,                                        \
6176                   bool bInvert))ROM_TIMERTABLE[4])
6177#endif
6178#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6179    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6180    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6181    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6182    defined(TARGET_IS_TM4C129_RA1)
6183#define ROM_TimerControlTrigger                                               \
6184        ((void (*)(uint32_t ui32Base,                                         \
6185                   uint32_t ui32Timer,                                        \
6186                   bool bEnable))ROM_TIMERTABLE[5])
6187#endif
6188#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6189    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6190    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6191    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6192    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6193    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6194    defined(TARGET_IS_TM4C129_RA2)
6195#define ROM_TimerControlEvent                                                 \
6196        ((void (*)(uint32_t ui32Base,                                         \
6197                   uint32_t ui32Timer,                                        \
6198                   uint32_t ui32Event))ROM_TIMERTABLE[6])
6199#endif
6200#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6201    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6202    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6203    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6204    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6205    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6206    defined(TARGET_IS_TM4C129_RA2)
6207#define ROM_TimerControlStall                                                 \
6208        ((void (*)(uint32_t ui32Base,                                         \
6209                   uint32_t ui32Timer,                                        \
6210                   bool bStall))ROM_TIMERTABLE[7])
6211#endif
6212#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6213    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6214    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6215    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6216    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6217    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6218    defined(TARGET_IS_TM4C129_RA2)
6219#define ROM_TimerRTCEnable                                                    \
6220        ((void (*)(uint32_t ui32Base))ROM_TIMERTABLE[8])
6221#endif
6222#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6223    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6224    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6225    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6226    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6227    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6228    defined(TARGET_IS_TM4C129_RA2)
6229#define ROM_TimerRTCDisable                                                   \
6230        ((void (*)(uint32_t ui32Base))ROM_TIMERTABLE[9])
6231#endif
6232#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6233    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6234    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6235    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6236    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6237    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6238    defined(TARGET_IS_TM4C129_RA2)
6239#define ROM_TimerPrescaleSet                                                  \
6240        ((void (*)(uint32_t ui32Base,                                         \
6241                   uint32_t ui32Timer,                                        \
6242                   uint32_t ui32Value))ROM_TIMERTABLE[10])
6243#endif
6244#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6245    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6246    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6247    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6248    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6249    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6250    defined(TARGET_IS_TM4C129_RA2)
6251#define ROM_TimerPrescaleGet                                                  \
6252        ((uint32_t (*)(uint32_t ui32Base,                                     \
6253                       uint32_t ui32Timer))ROM_TIMERTABLE[11])
6254#endif
6255#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6256    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6257    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6258    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6259    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6260    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6261    defined(TARGET_IS_TM4C129_RA2)
6262#define ROM_TimerPrescaleMatchSet                                             \
6263        ((void (*)(uint32_t ui32Base,                                         \
6264                   uint32_t ui32Timer,                                        \
6265                   uint32_t ui32Value))ROM_TIMERTABLE[12])
6266#endif
6267#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6268    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6269    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6270    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6271    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6272    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6273    defined(TARGET_IS_TM4C129_RA2)
6274#define ROM_TimerPrescaleMatchGet                                             \
6275        ((uint32_t (*)(uint32_t ui32Base,                                     \
6276                       uint32_t ui32Timer))ROM_TIMERTABLE[13])
6277#endif
6278#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6279    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6280    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6281    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6282    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6283    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6284    defined(TARGET_IS_TM4C129_RA2)
6285#define ROM_TimerLoadSet                                                      \
6286        ((void (*)(uint32_t ui32Base,                                         \
6287                   uint32_t ui32Timer,                                        \
6288                   uint32_t ui32Value))ROM_TIMERTABLE[14])
6289#endif
6290#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6291    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6292    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6293    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6294    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6295    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6296    defined(TARGET_IS_TM4C129_RA2)
6297#define ROM_TimerLoadGet                                                      \
6298        ((uint32_t (*)(uint32_t ui32Base,                                     \
6299                       uint32_t ui32Timer))ROM_TIMERTABLE[15])
6300#endif
6301#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6302    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6303    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6304    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6305    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6306    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6307    defined(TARGET_IS_TM4C129_RA2)
6308#define ROM_TimerValueGet                                                     \
6309        ((uint32_t (*)(uint32_t ui32Base,                                     \
6310                       uint32_t ui32Timer))ROM_TIMERTABLE[16])
6311#endif
6312#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6313    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6314    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6315    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6316    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6317    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6318    defined(TARGET_IS_TM4C129_RA2)
6319#define ROM_TimerMatchSet                                                     \
6320        ((void (*)(uint32_t ui32Base,                                         \
6321                   uint32_t ui32Timer,                                        \
6322                   uint32_t ui32Value))ROM_TIMERTABLE[17])
6323#endif
6324#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6325    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6326    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6327    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6328    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6329    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6330    defined(TARGET_IS_TM4C129_RA2)
6331#define ROM_TimerMatchGet                                                     \
6332        ((uint32_t (*)(uint32_t ui32Base,                                     \
6333                       uint32_t ui32Timer))ROM_TIMERTABLE[18])
6334#endif
6335#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6336    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6337    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6338    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6339    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6340    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6341    defined(TARGET_IS_TM4C129_RA2)
6342#define ROM_TimerIntEnable                                                    \
6343        ((void (*)(uint32_t ui32Base,                                         \
6344                   uint32_t ui32IntFlags))ROM_TIMERTABLE[19])
6345#endif
6346#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6347    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6348    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6349    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6350    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6351    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6352    defined(TARGET_IS_TM4C129_RA2)
6353#define ROM_TimerIntDisable                                                   \
6354        ((void (*)(uint32_t ui32Base,                                         \
6355                   uint32_t ui32IntFlags))ROM_TIMERTABLE[20])
6356#endif
6357#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6358    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6359    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6360    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6361    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6362    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6363    defined(TARGET_IS_TM4C129_RA2)
6364#define ROM_TimerIntStatus                                                    \
6365        ((uint32_t (*)(uint32_t ui32Base,                                     \
6366                       bool bMasked))ROM_TIMERTABLE[21])
6367#endif
6368#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6369    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6370    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6371    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6372    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6373    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6374    defined(TARGET_IS_TM4C129_RA2)
6375#define ROM_TimerControlWaitOnTrigger                                         \
6376        ((void (*)(uint32_t ui32Base,                                         \
6377                   uint32_t ui32Timer,                                        \
6378                   bool bWait))ROM_TIMERTABLE[22])
6379#endif
6380#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6381    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6382    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6383    defined(TARGET_IS_TM4C123_RB2)
6384#define ROM_TimerLoadSet64                                                    \
6385        ((void (*)(uint32_t ui32Base,                                         \
6386                   uint64_t ui64Value))ROM_TIMERTABLE[23])
6387#endif
6388#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6389    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6390    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6391    defined(TARGET_IS_TM4C123_RB2)
6392#define ROM_TimerLoadGet64                                                    \
6393        ((uint64_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[24])
6394#endif
6395#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6396    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6397    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6398    defined(TARGET_IS_TM4C123_RB2)
6399#define ROM_TimerValueGet64                                                   \
6400        ((uint64_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[25])
6401#endif
6402#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6403    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6404    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6405    defined(TARGET_IS_TM4C123_RB2)
6406#define ROM_TimerMatchSet64                                                   \
6407        ((void (*)(uint32_t ui32Base,                                         \
6408                   uint64_t ui64Value))ROM_TIMERTABLE[26])
6409#endif
6410#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6411    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6412    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6413    defined(TARGET_IS_TM4C123_RB2)
6414#define ROM_TimerMatchGet64                                                   \
6415        ((uint64_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[27])
6416#endif
6417#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6418    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6419    defined(TARGET_IS_TM4C129_RA2)
6420#define ROM_TimerClockSourceGet                                               \
6421        ((uint32_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[28])
6422#endif
6423#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6424    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6425    defined(TARGET_IS_TM4C129_RA2)
6426#define ROM_TimerClockSourceSet                                               \
6427        ((void (*)(uint32_t ui32Base,                                         \
6428                   uint32_t ui32Source))ROM_TIMERTABLE[29])
6429#endif
6430#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6431    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6432    defined(TARGET_IS_TM4C129_RA2)
6433#define ROM_TimerADCEventGet                                                  \
6434        ((uint32_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[30])
6435#endif
6436#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6437    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6438    defined(TARGET_IS_TM4C129_RA2)
6439#define ROM_TimerADCEventSet                                                  \
6440        ((void (*)(uint32_t ui32Base,                                         \
6441                   uint32_t ui32ADCEvent))ROM_TIMERTABLE[31])
6442#endif
6443#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6444    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6445    defined(TARGET_IS_TM4C129_RA2)
6446#define ROM_TimerDMAEventGet                                                  \
6447        ((uint32_t (*)(uint32_t ui32Base))ROM_TIMERTABLE[32])
6448#endif
6449#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6450    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6451    defined(TARGET_IS_TM4C129_RA2)
6452#define ROM_TimerDMAEventSet                                                  \
6453        ((void (*)(uint32_t ui32Base,                                         \
6454                   uint32_t ui32DMAEvent))ROM_TIMERTABLE[33])
6455#endif
6456#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6457    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6458    defined(TARGET_IS_TM4C129_RA2)
6459#define ROM_TimerSynchronize                                                  \
6460        ((void (*)(uint32_t ui32Base,                                         \
6461                   uint32_t ui32Timers))ROM_TIMERTABLE[34])
6462#endif
6463
6464//*****************************************************************************
6465//
6466// Macros for calling ROM functions in the UART API.
6467//
6468//*****************************************************************************
6469#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6470    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6471    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6472    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6473    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6474    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6475    defined(TARGET_IS_TM4C129_RA2)
6476#define ROM_UARTCharPut                                                       \
6477        ((void (*)(uint32_t ui32Base,                                         \
6478                   unsigned char ucData))ROM_UARTTABLE[0])
6479#endif
6480#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6481    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6482    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6483    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6484    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6485    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6486    defined(TARGET_IS_TM4C129_RA2)
6487#define ROM_UARTParityModeSet                                                 \
6488        ((void (*)(uint32_t ui32Base,                                         \
6489                   uint32_t ui32Parity))ROM_UARTTABLE[1])
6490#endif
6491#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6492    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6493    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6494    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6495    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6496    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6497    defined(TARGET_IS_TM4C129_RA2)
6498#define ROM_UARTParityModeGet                                                 \
6499        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[2])
6500#endif
6501#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6502    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6503    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6504    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6505    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6506    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6507    defined(TARGET_IS_TM4C129_RA2)
6508#define ROM_UARTFIFOLevelSet                                                  \
6509        ((void (*)(uint32_t ui32Base,                                         \
6510                   uint32_t ui32TxLevel,                                      \
6511                   uint32_t ui32RxLevel))ROM_UARTTABLE[3])
6512#endif
6513#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6514    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6515    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6516    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6517    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6518    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6519    defined(TARGET_IS_TM4C129_RA2)
6520#define ROM_UARTFIFOLevelGet                                                  \
6521        ((void (*)(uint32_t ui32Base,                                         \
6522                   uint32_t *pui32TxLevel,                                    \
6523                   uint32_t *pui32RxLevel))ROM_UARTTABLE[4])
6524#endif
6525#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6526    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6527    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6528    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6529    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6530    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6531    defined(TARGET_IS_TM4C129_RA2)
6532#define ROM_UARTConfigSetExpClk                                               \
6533        ((void (*)(uint32_t ui32Base,                                         \
6534                   uint32_t ui32UARTClk,                                      \
6535                   uint32_t ui32Baud,                                         \
6536                   uint32_t ui32Config))ROM_UARTTABLE[5])
6537#endif
6538#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6539    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6540    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6541    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6542    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6543    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6544    defined(TARGET_IS_TM4C129_RA2)
6545#define ROM_UARTConfigGetExpClk                                               \
6546        ((void (*)(uint32_t ui32Base,                                         \
6547                   uint32_t ui32UARTClk,                                      \
6548                   uint32_t *pui32Baud,                                       \
6549                   uint32_t *pui32Config))ROM_UARTTABLE[6])
6550#endif
6551#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6552    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6553    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6554    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6555    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6556    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6557    defined(TARGET_IS_TM4C129_RA2)
6558#define ROM_UARTEnable                                                        \
6559        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[7])
6560#endif
6561#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6562    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6563    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6564    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6565    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6566    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6567    defined(TARGET_IS_TM4C129_RA2)
6568#define ROM_UARTDisable                                                       \
6569        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[8])
6570#endif
6571#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6572    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6573    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6574    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6575    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6576    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6577    defined(TARGET_IS_TM4C129_RA2)
6578#define ROM_UARTEnableSIR                                                     \
6579        ((void (*)(uint32_t ui32Base,                                         \
6580                   bool bLowPower))ROM_UARTTABLE[9])
6581#endif
6582#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6583    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6584    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6585    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6586    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6587    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6588    defined(TARGET_IS_TM4C129_RA2)
6589#define ROM_UARTDisableSIR                                                    \
6590        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[10])
6591#endif
6592#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6593    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6594    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6595    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6596    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6597    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6598    defined(TARGET_IS_TM4C129_RA2)
6599#define ROM_UARTCharsAvail                                                    \
6600        ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[11])
6601#endif
6602#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6603    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6604    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6605    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6606    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6607    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6608    defined(TARGET_IS_TM4C129_RA2)
6609#define ROM_UARTSpaceAvail                                                    \
6610        ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[12])
6611#endif
6612#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6613    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6614    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6615    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6616    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6617    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6618    defined(TARGET_IS_TM4C129_RA2)
6619#define ROM_UARTCharGetNonBlocking                                            \
6620        ((int32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[13])
6621#endif
6622#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6623    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6624    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6625    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6626    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6627    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6628    defined(TARGET_IS_TM4C129_RA2)
6629#define ROM_UARTCharGet                                                       \
6630        ((int32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[14])
6631#endif
6632#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6633    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6634    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6635    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6636    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6637    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6638    defined(TARGET_IS_TM4C129_RA2)
6639#define ROM_UARTCharPutNonBlocking                                            \
6640        ((bool (*)(uint32_t ui32Base,                                         \
6641                   unsigned char ucData))ROM_UARTTABLE[15])
6642#endif
6643#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6644    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6645    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6646    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6647    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6648    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6649    defined(TARGET_IS_TM4C129_RA2)
6650#define ROM_UARTBreakCtl                                                      \
6651        ((void (*)(uint32_t ui32Base,                                         \
6652                   bool bBreakState))ROM_UARTTABLE[16])
6653#endif
6654#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6655    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6656    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6657    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6658    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6659    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6660    defined(TARGET_IS_TM4C129_RA2)
6661#define ROM_UARTIntEnable                                                     \
6662        ((void (*)(uint32_t ui32Base,                                         \
6663                   uint32_t ui32IntFlags))ROM_UARTTABLE[17])
6664#endif
6665#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6666    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6667    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6668    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6669    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6670    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6671    defined(TARGET_IS_TM4C129_RA2)
6672#define ROM_UARTIntDisable                                                    \
6673        ((void (*)(uint32_t ui32Base,                                         \
6674                   uint32_t ui32IntFlags))ROM_UARTTABLE[18])
6675#endif
6676#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6677    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6678    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6679    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6680    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6681    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6682    defined(TARGET_IS_TM4C129_RA2)
6683#define ROM_UARTIntStatus                                                     \
6684        ((uint32_t (*)(uint32_t ui32Base,                                     \
6685                       bool bMasked))ROM_UARTTABLE[19])
6686#endif
6687#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6688    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6689    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6690    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6691    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6692    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6693    defined(TARGET_IS_TM4C129_RA2)
6694#define ROM_UARTIntClear                                                      \
6695        ((void (*)(uint32_t ui32Base,                                         \
6696                   uint32_t ui32IntFlags))ROM_UARTTABLE[20])
6697#endif
6698#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6699    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6700    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6701    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6702    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6703    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6704    defined(TARGET_IS_TM4C129_RA2)
6705#define ROM_UpdateUART                                                        \
6706        ((void (*)(void))ROM_UARTTABLE[21])
6707#endif
6708#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6709    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6710    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6711    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6712    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6713    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6714    defined(TARGET_IS_TM4C129_RA2)
6715#define ROM_UARTDMAEnable                                                     \
6716        ((void (*)(uint32_t ui32Base,                                         \
6717                   uint32_t ui32DMAFlags))ROM_UARTTABLE[22])
6718#endif
6719#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6720    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6721    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6722    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6723    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6724    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6725    defined(TARGET_IS_TM4C129_RA2)
6726#define ROM_UARTDMADisable                                                    \
6727        ((void (*)(uint32_t ui32Base,                                         \
6728                   uint32_t ui32DMAFlags))ROM_UARTTABLE[23])
6729#endif
6730#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6731    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6732    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6733    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6734    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6735    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6736    defined(TARGET_IS_TM4C129_RA2)
6737#define ROM_UARTFIFOEnable                                                    \
6738        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[24])
6739#endif
6740#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6741    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6742    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6743    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6744    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6745    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6746    defined(TARGET_IS_TM4C129_RA2)
6747#define ROM_UARTFIFODisable                                                   \
6748        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[25])
6749#endif
6750#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6751    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6752    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6753    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6754    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6755    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6756    defined(TARGET_IS_TM4C129_RA2)
6757#define ROM_UARTBusy                                                          \
6758        ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[26])
6759#endif
6760#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6761    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6762    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6763    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6764    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6765    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6766    defined(TARGET_IS_TM4C129_RA2)
6767#define ROM_UARTTxIntModeSet                                                  \
6768        ((void (*)(uint32_t ui32Base,                                         \
6769                   uint32_t ui32Mode))ROM_UARTTABLE[27])
6770#endif
6771#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6772    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6773    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6774    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6775    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6776    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6777    defined(TARGET_IS_TM4C129_RA2)
6778#define ROM_UARTTxIntModeGet                                                  \
6779        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[28])
6780#endif
6781#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6782    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6783    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6784    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6785    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6786    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6787    defined(TARGET_IS_TM4C129_RA2)
6788#define ROM_UARTRxErrorGet                                                    \
6789        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[29])
6790#endif
6791#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6792    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6793    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6794    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6795    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6796    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6797    defined(TARGET_IS_TM4C129_RA2)
6798#define ROM_UARTRxErrorClear                                                  \
6799        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[30])
6800#endif
6801#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6802    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6803    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6804    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6805    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6806    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6807    defined(TARGET_IS_TM4C129_RA2)
6808#define ROM_UARTClockSourceSet                                                \
6809        ((void (*)(uint32_t ui32Base,                                         \
6810                   uint32_t ui32Source))ROM_UARTTABLE[31])
6811#endif
6812#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6813    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6814    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6815    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6816    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6817    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6818    defined(TARGET_IS_TM4C129_RA2)
6819#define ROM_UARTClockSourceGet                                                \
6820        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[32])
6821#endif
6822#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6823    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6824    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6825    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6826    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6827    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6828    defined(TARGET_IS_TM4C129_RA2)
6829#define ROM_UART9BitEnable                                                    \
6830        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[33])
6831#endif
6832#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6833    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6834    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6835    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6836    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6837    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6838    defined(TARGET_IS_TM4C129_RA2)
6839#define ROM_UART9BitDisable                                                   \
6840        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[34])
6841#endif
6842#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6843    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6844    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6845    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6846    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6847    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6848    defined(TARGET_IS_TM4C129_RA2)
6849#define ROM_UART9BitAddrSet                                                   \
6850        ((void (*)(uint32_t ui32Base,                                         \
6851                   uint8_t ui8Addr,                                           \
6852                   uint8_t ui8Mask))ROM_UARTTABLE[35])
6853#endif
6854#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6855    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6856    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6857    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6858    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6859    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6860    defined(TARGET_IS_TM4C129_RA2)
6861#define ROM_UART9BitAddrSend                                                  \
6862        ((void (*)(uint32_t ui32Base,                                         \
6863                   uint8_t ui8Addr))ROM_UARTTABLE[36])
6864#endif
6865#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6866    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6867    defined(TARGET_IS_TM4C129_RA2)
6868#define ROM_UARTSmartCardDisable                                              \
6869        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[37])
6870#endif
6871#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6872    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6873    defined(TARGET_IS_TM4C129_RA2)
6874#define ROM_UARTSmartCardEnable                                               \
6875        ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[38])
6876#endif
6877#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
6878    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6879    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6880    defined(TARGET_IS_TM4C129_RA2)
6881#define ROM_UARTModemControlClear                                             \
6882        ((void (*)(uint32_t ui32Base,                                         \
6883                   uint32_t ui32Control))ROM_UARTTABLE[39])
6884#endif
6885#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6886    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6887    defined(TARGET_IS_TM4C129_RA2)
6888#define ROM_UARTModemControlGet                                               \
6889        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[40])
6890#endif
6891#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6892    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6893    defined(TARGET_IS_TM4C129_RA2)
6894#define ROM_UARTModemControlSet                                               \
6895        ((void (*)(uint32_t ui32Base,                                         \
6896                   uint32_t ui32Control))ROM_UARTTABLE[41])
6897#endif
6898#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6899    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6900    defined(TARGET_IS_TM4C129_RA2)
6901#define ROM_UARTModemStatusGet                                                \
6902        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[42])
6903#endif
6904#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6905    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6906    defined(TARGET_IS_TM4C129_RA2)
6907#define ROM_UARTFlowControlGet                                                \
6908        ((uint32_t (*)(uint32_t ui32Base))ROM_UARTTABLE[43])
6909#endif
6910#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
6911    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6912    defined(TARGET_IS_TM4C129_RA2)
6913#define ROM_UARTFlowControlSet                                                \
6914        ((void (*)(uint32_t ui32Base,                                         \
6915                   uint32_t ui32Mode))ROM_UARTTABLE[44])
6916#endif
6917
6918//*****************************************************************************
6919//
6920// Macros for calling ROM functions in the uDMA API.
6921//
6922//*****************************************************************************
6923#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6924    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6925    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6926    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6927    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6928    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6929    defined(TARGET_IS_TM4C129_RA2)
6930#define ROM_uDMAChannelTransferSet                                            \
6931        ((void (*)(uint32_t ui32ChannelStructIndex,                           \
6932                   uint32_t ui32Mode,                                         \
6933                   void *pvSrcAddr,                                           \
6934                   void *pvDstAddr,                                           \
6935                   uint32_t ui32TransferSize))ROM_UDMATABLE[0])
6936#endif
6937#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6938    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6939    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6940    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6941    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6942    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6943    defined(TARGET_IS_TM4C129_RA2)
6944#define ROM_uDMAEnable                                                        \
6945        ((void (*)(void))ROM_UDMATABLE[1])
6946#endif
6947#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6948    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6949    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6950    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6951    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6952    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6953    defined(TARGET_IS_TM4C129_RA2)
6954#define ROM_uDMADisable                                                       \
6955        ((void (*)(void))ROM_UDMATABLE[2])
6956#endif
6957#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6958    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6959    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6960    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6961    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6962    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6963    defined(TARGET_IS_TM4C129_RA2)
6964#define ROM_uDMAErrorStatusGet                                                \
6965        ((uint32_t (*)(void))ROM_UDMATABLE[3])
6966#endif
6967#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6968    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6969    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6970    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6971    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6972    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6973    defined(TARGET_IS_TM4C129_RA2)
6974#define ROM_uDMAErrorStatusClear                                              \
6975        ((void (*)(void))ROM_UDMATABLE[4])
6976#endif
6977#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6978    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6979    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6980    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6981    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6982    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6983    defined(TARGET_IS_TM4C129_RA2)
6984#define ROM_uDMAChannelEnable                                                 \
6985        ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[5])
6986#endif
6987#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6988    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6989    defined(TARGET_IS_TM4C123_RB1) ||                                         \
6990    defined(TARGET_IS_TM4C123_RB2) ||                                         \
6991    defined(TARGET_IS_TM4C129_RA0) ||                                         \
6992    defined(TARGET_IS_TM4C129_RA1) ||                                         \
6993    defined(TARGET_IS_TM4C129_RA2)
6994#define ROM_uDMAChannelDisable                                                \
6995        ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[6])
6996#endif
6997#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
6998    defined(TARGET_IS_TM4C123_RA3) ||                                         \
6999    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7000    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7001    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7002    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7003    defined(TARGET_IS_TM4C129_RA2)
7004#define ROM_uDMAChannelIsEnabled                                              \
7005        ((bool (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[7])
7006#endif
7007#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7008    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7009    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7010    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7011    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7012    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7013    defined(TARGET_IS_TM4C129_RA2)
7014#define ROM_uDMAControlBaseSet                                                \
7015        ((void (*)(void *pControlTable))ROM_UDMATABLE[8])
7016#endif
7017#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7018    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7019    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7020    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7021    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7022    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7023    defined(TARGET_IS_TM4C129_RA2)
7024#define ROM_uDMAControlBaseGet                                                \
7025        ((void * (*)(void))ROM_UDMATABLE[9])
7026#endif
7027#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7028    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7029    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7030    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7031    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7032    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7033    defined(TARGET_IS_TM4C129_RA2)
7034#define ROM_uDMAChannelRequest                                                \
7035        ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[10])
7036#endif
7037#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7038    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7039    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7040    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7041    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7042    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7043    defined(TARGET_IS_TM4C129_RA2)
7044#define ROM_uDMAChannelAttributeEnable                                        \
7045        ((void (*)(uint32_t ui32ChannelNum,                                   \
7046                   uint32_t ui32Attr))ROM_UDMATABLE[11])
7047#endif
7048#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7049    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7050    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7051    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7052    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7053    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7054    defined(TARGET_IS_TM4C129_RA2)
7055#define ROM_uDMAChannelAttributeDisable                                       \
7056        ((void (*)(uint32_t ui32ChannelNum,                                   \
7057                   uint32_t ui32Attr))ROM_UDMATABLE[12])
7058#endif
7059#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7060    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7061    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7062    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7063    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7064    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7065    defined(TARGET_IS_TM4C129_RA2)
7066#define ROM_uDMAChannelAttributeGet                                           \
7067        ((uint32_t (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[13])
7068#endif
7069#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7070    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7071    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7072    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7073    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7074    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7075    defined(TARGET_IS_TM4C129_RA2)
7076#define ROM_uDMAChannelControlSet                                             \
7077        ((void (*)(uint32_t ui32ChannelStructIndex,                           \
7078                   uint32_t ui32Control))ROM_UDMATABLE[14])
7079#endif
7080#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7081    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7082    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7083    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7084    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7085    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7086    defined(TARGET_IS_TM4C129_RA2)
7087#define ROM_uDMAChannelSizeGet                                                \
7088        ((uint32_t (*)(uint32_t ui32ChannelStructIndex))ROM_UDMATABLE[15])
7089#endif
7090#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7091    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7092    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7093    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7094    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7095    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7096    defined(TARGET_IS_TM4C129_RA2)
7097#define ROM_uDMAChannelModeGet                                                \
7098        ((uint32_t (*)(uint32_t ui32ChannelStructIndex))ROM_UDMATABLE[16])
7099#endif
7100#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7101    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7102    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7103    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7104    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7105    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7106    defined(TARGET_IS_TM4C129_RA2)
7107#define ROM_uDMAChannelSelectSecondary                                        \
7108        ((void (*)(uint32_t ui32SecPeriphs))ROM_UDMATABLE[17])
7109#endif
7110#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7111    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7112    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7113    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7114    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7115    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7116    defined(TARGET_IS_TM4C129_RA2)
7117#define ROM_uDMAChannelSelectDefault                                          \
7118        ((void (*)(uint32_t ui32DefPeriphs))ROM_UDMATABLE[18])
7119#endif
7120#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7121    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7122    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7123    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7124    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7125    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7126    defined(TARGET_IS_TM4C129_RA2)
7127#define ROM_uDMAIntStatus                                                     \
7128        ((uint32_t (*)(void))ROM_UDMATABLE[19])
7129#endif
7130#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7131    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7132    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7133    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7134    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7135    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7136    defined(TARGET_IS_TM4C129_RA2)
7137#define ROM_uDMAIntClear                                                      \
7138        ((void (*)(uint32_t ui32ChanMask))ROM_UDMATABLE[20])
7139#endif
7140#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7141    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7142    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7143    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7144    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7145    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7146    defined(TARGET_IS_TM4C129_RA2)
7147#define ROM_uDMAControlAlternateBaseGet                                       \
7148        ((void * (*)(void))ROM_UDMATABLE[21])
7149#endif
7150#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7151    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7152    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7153    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7154    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7155    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7156    defined(TARGET_IS_TM4C129_RA2)
7157#define ROM_uDMAChannelScatterGatherSet                                       \
7158        ((void (*)(uint32_t ui32ChannelNum,                                   \
7159                   uint32_t ui32TaskCount,                                    \
7160                   void *pvTaskList,                                          \
7161                   uint32_t ui32IsPeriphSG))ROM_UDMATABLE[22])
7162#endif
7163#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7164    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7165    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7166    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7167    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7168    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7169    defined(TARGET_IS_TM4C129_RA2)
7170#define ROM_uDMAChannelAssign                                                 \
7171        ((void (*)(uint32_t ui32Mapping))ROM_UDMATABLE[23])
7172#endif
7173
7174//*****************************************************************************
7175//
7176// Macros for calling ROM functions in the USB API.
7177//
7178//*****************************************************************************
7179#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7180    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7181    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7182    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7183    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7184    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7185    defined(TARGET_IS_TM4C129_RA2)
7186#define ROM_USBDevAddrGet                                                     \
7187        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[1])
7188#endif
7189#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7190    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7191    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7192    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7193    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7194    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7195    defined(TARGET_IS_TM4C129_RA2)
7196#define ROM_USBDevAddrSet                                                     \
7197        ((void (*)(uint32_t ui32Base,                                         \
7198                   uint32_t ui32Address))ROM_USBTABLE[2])
7199#endif
7200#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7201    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7202    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7203    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7204    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7205    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7206    defined(TARGET_IS_TM4C129_RA2)
7207#define ROM_USBDevConnect                                                     \
7208        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[3])
7209#endif
7210#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7211    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7212    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7213    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7214    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7215    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7216    defined(TARGET_IS_TM4C129_RA2)
7217#define ROM_USBDevDisconnect                                                  \
7218        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[4])
7219#endif
7220#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7221    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7222    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7223    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7224    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7225    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7226    defined(TARGET_IS_TM4C129_RA2)
7227#define ROM_USBDevEndpointConfigSet                                           \
7228        ((void (*)(uint32_t ui32Base,                                         \
7229                   uint32_t ui32Endpoint,                                     \
7230                   uint32_t ui32MaxPacketSize,                                \
7231                   uint32_t ui32Flags))ROM_USBTABLE[5])
7232#endif
7233#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7234    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7235    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7236    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7237    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7238    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7239    defined(TARGET_IS_TM4C129_RA2)
7240#define ROM_USBDevEndpointDataAck                                             \
7241        ((void (*)(uint32_t ui32Base,                                         \
7242                   uint32_t ui32Endpoint,                                     \
7243                   bool bIsLastPacket))ROM_USBTABLE[6])
7244#endif
7245#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7246    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7247    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7248    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7249    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7250    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7251    defined(TARGET_IS_TM4C129_RA2)
7252#define ROM_USBDevEndpointStall                                               \
7253        ((void (*)(uint32_t ui32Base,                                         \
7254                   uint32_t ui32Endpoint,                                     \
7255                   uint32_t ui32Flags))ROM_USBTABLE[7])
7256#endif
7257#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7258    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7259    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7260    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7261    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7262    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7263    defined(TARGET_IS_TM4C129_RA2)
7264#define ROM_USBDevEndpointStallClear                                          \
7265        ((void (*)(uint32_t ui32Base,                                         \
7266                   uint32_t ui32Endpoint,                                     \
7267                   uint32_t ui32Flags))ROM_USBTABLE[8])
7268#endif
7269#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7270    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7271    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7272    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7273    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7274    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7275    defined(TARGET_IS_TM4C129_RA2)
7276#define ROM_USBDevEndpointStatusClear                                         \
7277        ((void (*)(uint32_t ui32Base,                                         \
7278                   uint32_t ui32Endpoint,                                     \
7279                   uint32_t ui32Flags))ROM_USBTABLE[9])
7280#endif
7281#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7282    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7283    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7284    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7285    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7286    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7287    defined(TARGET_IS_TM4C129_RA2)
7288#define ROM_USBEndpointDataGet                                                \
7289        ((int32_t (*)(uint32_t ui32Base,                                      \
7290                      uint32_t ui32Endpoint,                                  \
7291                      uint8_t *pui8Data,                                      \
7292                      uint32_t *pui32Size))ROM_USBTABLE[10])
7293#endif
7294#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7295    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7296    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7297    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7298    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7299    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7300    defined(TARGET_IS_TM4C129_RA2)
7301#define ROM_USBEndpointDataPut                                                \
7302        ((int32_t (*)(uint32_t ui32Base,                                      \
7303                      uint32_t ui32Endpoint,                                  \
7304                      uint8_t *pui8Data,                                      \
7305                      uint32_t ui32Size))ROM_USBTABLE[11])
7306#endif
7307#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7308    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7309    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7310    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7311    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7312    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7313    defined(TARGET_IS_TM4C129_RA2)
7314#define ROM_USBEndpointDataSend                                               \
7315        ((int32_t (*)(uint32_t ui32Base,                                      \
7316                      uint32_t ui32Endpoint,                                  \
7317                      uint32_t ui32TransType))ROM_USBTABLE[12])
7318#endif
7319#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7320    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7321    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7322    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7323    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7324    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7325    defined(TARGET_IS_TM4C129_RA2)
7326#define ROM_USBEndpointDataToggleClear                                        \
7327        ((void (*)(uint32_t ui32Base,                                         \
7328                   uint32_t ui32Endpoint,                                     \
7329                   uint32_t ui32Flags))ROM_USBTABLE[13])
7330#endif
7331#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7332    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7333    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7334    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7335    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7336    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7337    defined(TARGET_IS_TM4C129_RA2)
7338#define ROM_USBEndpointStatus                                                 \
7339        ((uint32_t (*)(uint32_t ui32Base,                                     \
7340                       uint32_t ui32Endpoint))ROM_USBTABLE[14])
7341#endif
7342#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7343    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7344    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7345    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7346    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7347    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7348    defined(TARGET_IS_TM4C129_RA2)
7349#define ROM_USBFIFOAddrGet                                                    \
7350        ((uint32_t (*)(uint32_t ui32Base,                                     \
7351                       uint32_t ui32Endpoint))ROM_USBTABLE[15])
7352#endif
7353#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7354    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7355    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7356    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7357    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7358    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7359    defined(TARGET_IS_TM4C129_RA2)
7360#define ROM_USBFIFOConfigGet                                                  \
7361        ((void (*)(uint32_t ui32Base,                                         \
7362                   uint32_t ui32Endpoint,                                     \
7363                   uint32_t *pui32FIFOAddress,                                \
7364                   uint32_t *pui32FIFOSize,                                   \
7365                   uint32_t ui32Flags))ROM_USBTABLE[16])
7366#endif
7367#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7368    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7369    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7370    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7371    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7372    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7373    defined(TARGET_IS_TM4C129_RA2)
7374#define ROM_USBFIFOConfigSet                                                  \
7375        ((void (*)(uint32_t ui32Base,                                         \
7376                   uint32_t ui32Endpoint,                                     \
7377                   uint32_t ui32FIFOAddress,                                  \
7378                   uint32_t ui32FIFOSize,                                     \
7379                   uint32_t ui32Flags))ROM_USBTABLE[17])
7380#endif
7381#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7382    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7383    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7384    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7385    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7386    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7387    defined(TARGET_IS_TM4C129_RA2)
7388#define ROM_USBFIFOFlush                                                      \
7389        ((void (*)(uint32_t ui32Base,                                         \
7390                   uint32_t ui32Endpoint,                                     \
7391                   uint32_t ui32Flags))ROM_USBTABLE[18])
7392#endif
7393#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7394    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7395    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7396    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7397    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7398    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7399    defined(TARGET_IS_TM4C129_RA2)
7400#define ROM_USBFrameNumberGet                                                 \
7401        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[19])
7402#endif
7403#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7404    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7405    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7406    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7407    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7408    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7409    defined(TARGET_IS_TM4C129_RA2)
7410#define ROM_USBHostAddrGet                                                    \
7411        ((uint32_t (*)(uint32_t ui32Base,                                     \
7412                       uint32_t ui32Endpoint,                                 \
7413                       uint32_t ui32Flags))ROM_USBTABLE[20])
7414#endif
7415#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7416    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7417    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7418    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7419    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7420    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7421    defined(TARGET_IS_TM4C129_RA2)
7422#define ROM_USBHostAddrSet                                                    \
7423        ((void (*)(uint32_t ui32Base,                                         \
7424                   uint32_t ui32Endpoint,                                     \
7425                   uint32_t ui32Addr,                                         \
7426                   uint32_t ui32Flags))ROM_USBTABLE[21])
7427#endif
7428#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
7429    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7430    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7431    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7432    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7433    defined(TARGET_IS_TM4C129_RA2)
7434#define ROM_USBHostEndpointConfig                                             \
7435        ((void (*)(uint32_t ui32Base,                                         \
7436                   uint32_t ui32Endpoint,                                     \
7437                   uint32_t ui32MaxPacketSize,                                \
7438                   uint32_t ui32NAKPollInterval,                              \
7439                   uint32_t ui32TargetEndpoint,                               \
7440                   uint32_t ui32Flags))ROM_USBTABLE[22])
7441#endif
7442#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7443    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7444    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7445    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7446    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7447    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7448    defined(TARGET_IS_TM4C129_RA2)
7449#define ROM_USBHostEndpointDataAck                                            \
7450        ((void (*)(uint32_t ui32Base,                                         \
7451                   uint32_t ui32Endpoint))ROM_USBTABLE[23])
7452#endif
7453#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7454    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7455    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7456    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7457    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7458    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7459    defined(TARGET_IS_TM4C129_RA2)
7460#define ROM_USBHostEndpointDataToggle                                         \
7461        ((void (*)(uint32_t ui32Base,                                         \
7462                   uint32_t ui32Endpoint,                                     \
7463                   bool bDataToggle,                                          \
7464                   uint32_t ui32Flags))ROM_USBTABLE[24])
7465#endif
7466#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7467    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7468    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7469    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7470    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7471    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7472    defined(TARGET_IS_TM4C129_RA2)
7473#define ROM_USBHostEndpointStatusClear                                        \
7474        ((void (*)(uint32_t ui32Base,                                         \
7475                   uint32_t ui32Endpoint,                                     \
7476                   uint32_t ui32Flags))ROM_USBTABLE[25])
7477#endif
7478#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7479    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7480    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7481    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7482    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7483    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7484    defined(TARGET_IS_TM4C129_RA2)
7485#define ROM_USBHostHubAddrGet                                                 \
7486        ((uint32_t (*)(uint32_t ui32Base,                                     \
7487                       uint32_t ui32Endpoint,                                 \
7488                       uint32_t ui32Flags))ROM_USBTABLE[26])
7489#endif
7490#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7491    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7492    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7493    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7494    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7495    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7496    defined(TARGET_IS_TM4C129_RA2)
7497#define ROM_USBHostHubAddrSet                                                 \
7498        ((void (*)(uint32_t ui32Base,                                         \
7499                   uint32_t ui32Endpoint,                                     \
7500                   uint32_t ui32Addr,                                         \
7501                   uint32_t ui32Flags))ROM_USBTABLE[27])
7502#endif
7503#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7504    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7505    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7506    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7507    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7508    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7509    defined(TARGET_IS_TM4C129_RA2)
7510#define ROM_USBHostPwrDisable                                                 \
7511        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[28])
7512#endif
7513#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7514    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7515    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7516    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7517    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7518    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7519    defined(TARGET_IS_TM4C129_RA2)
7520#define ROM_USBHostPwrEnable                                                  \
7521        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[29])
7522#endif
7523#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7524    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7525    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7526    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7527    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7528    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7529    defined(TARGET_IS_TM4C129_RA2)
7530#define ROM_USBHostPwrConfig                                                  \
7531        ((void (*)(uint32_t ui32Base,                                         \
7532                   uint32_t ui32Flags))ROM_USBTABLE[30])
7533#endif
7534#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7535    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7536    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7537    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7538    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7539    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7540    defined(TARGET_IS_TM4C129_RA2)
7541#define ROM_USBHostPwrFaultDisable                                            \
7542        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[31])
7543#endif
7544#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7545    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7546    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7547    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7548    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7549    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7550    defined(TARGET_IS_TM4C129_RA2)
7551#define ROM_USBHostPwrFaultEnable                                             \
7552        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[32])
7553#endif
7554#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7555    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7556    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7557    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7558    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7559    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7560    defined(TARGET_IS_TM4C129_RA2)
7561#define ROM_USBHostRequestIN                                                  \
7562        ((void (*)(uint32_t ui32Base,                                         \
7563                   uint32_t ui32Endpoint))ROM_USBTABLE[33])
7564#endif
7565#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7566    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7567    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7568    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7569    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7570    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7571    defined(TARGET_IS_TM4C129_RA2)
7572#define ROM_USBHostRequestStatus                                              \
7573        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[34])
7574#endif
7575#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7576    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7577    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7578    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7579    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7580    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7581    defined(TARGET_IS_TM4C129_RA2)
7582#define ROM_USBHostReset                                                      \
7583        ((void (*)(uint32_t ui32Base,                                         \
7584                   bool bStart))ROM_USBTABLE[35])
7585#endif
7586#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7587    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7588    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7589    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7590    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7591    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7592    defined(TARGET_IS_TM4C129_RA2)
7593#define ROM_USBHostResume                                                     \
7594        ((void (*)(uint32_t ui32Base,                                         \
7595                   bool bStart))ROM_USBTABLE[36])
7596#endif
7597#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7598    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7599    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7600    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7601    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7602    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7603    defined(TARGET_IS_TM4C129_RA2)
7604#define ROM_USBHostSpeedGet                                                   \
7605        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[37])
7606#endif
7607#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7608    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7609    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7610    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7611    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7612    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7613    defined(TARGET_IS_TM4C129_RA2)
7614#define ROM_USBHostSuspend                                                    \
7615        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[38])
7616#endif
7617#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7618    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7619    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7620    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7621    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7622    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7623    defined(TARGET_IS_TM4C129_RA2)
7624#define ROM_USBDevEndpointConfigGet                                           \
7625        ((void (*)(uint32_t ui32Base,                                         \
7626                   uint32_t ui32Endpoint,                                     \
7627                   uint32_t *pui32MaxPacketSize,                              \
7628                   uint32_t *pui32Flags))ROM_USBTABLE[41])
7629#endif
7630#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7631    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7632    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7633    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7634    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7635    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7636    defined(TARGET_IS_TM4C129_RA2)
7637#define ROM_USBEndpointDMAEnable                                              \
7638        ((void (*)(uint32_t ui32Base,                                         \
7639                   uint32_t ui32Endpoint,                                     \
7640                   uint32_t ui32Flags))ROM_USBTABLE[42])
7641#endif
7642#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7643    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7644    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7645    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7646    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7647    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7648    defined(TARGET_IS_TM4C129_RA2)
7649#define ROM_USBEndpointDMADisable                                             \
7650        ((void (*)(uint32_t ui32Base,                                         \
7651                   uint32_t ui32Endpoint,                                     \
7652                   uint32_t ui32Flags))ROM_USBTABLE[43])
7653#endif
7654#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7655    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7656    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7657    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7658    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7659    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7660    defined(TARGET_IS_TM4C129_RA2)
7661#define ROM_USBEndpointDataAvail                                              \
7662        ((uint32_t (*)(uint32_t ui32Base,                                     \
7663                       uint32_t ui32Endpoint))ROM_USBTABLE[44])
7664#endif
7665#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7666    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7667    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7668    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7669    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7670    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7671    defined(TARGET_IS_TM4C129_RA2)
7672#define ROM_USBModeGet                                                        \
7673        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[46])
7674#endif
7675#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7676    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7677    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7678    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7679    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7680    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7681    defined(TARGET_IS_TM4C129_RA2)
7682#define ROM_USBEndpointDMAChannel                                             \
7683        ((void (*)(uint32_t ui32Base,                                         \
7684                   uint32_t ui32Endpoint,                                     \
7685                   uint32_t ui32Channel))ROM_USBTABLE[47])
7686#endif
7687#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7688    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7689    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7690    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7691    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7692    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7693    defined(TARGET_IS_TM4C129_RA2)
7694#define ROM_USBIntDisableControl                                              \
7695        ((void (*)(uint32_t ui32Base,                                         \
7696                   uint32_t ui32IntFlags))ROM_USBTABLE[48])
7697#endif
7698#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7699    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7700    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7701    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7702    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7703    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7704    defined(TARGET_IS_TM4C129_RA2)
7705#define ROM_USBIntEnableControl                                               \
7706        ((void (*)(uint32_t ui32Base,                                         \
7707                   uint32_t ui32IntFlags))ROM_USBTABLE[49])
7708#endif
7709#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7710    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7711    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7712    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7713    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7714    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7715    defined(TARGET_IS_TM4C129_RA2)
7716#define ROM_USBIntStatusControl                                               \
7717        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[50])
7718#endif
7719#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7720    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7721    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7722    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7723    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7724    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7725    defined(TARGET_IS_TM4C129_RA2)
7726#define ROM_USBIntDisableEndpoint                                             \
7727        ((void (*)(uint32_t ui32Base,                                         \
7728                   uint32_t ui32IntFlags))ROM_USBTABLE[51])
7729#endif
7730#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7731    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7732    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7733    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7734    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7735    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7736    defined(TARGET_IS_TM4C129_RA2)
7737#define ROM_USBIntEnableEndpoint                                              \
7738        ((void (*)(uint32_t ui32Base,                                         \
7739                   uint32_t ui32IntFlags))ROM_USBTABLE[52])
7740#endif
7741#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7742    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7743    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7744    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7745    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7746    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7747    defined(TARGET_IS_TM4C129_RA2)
7748#define ROM_USBIntStatusEndpoint                                              \
7749        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[53])
7750#endif
7751#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7752    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7753    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7754    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7755    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7756    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7757    defined(TARGET_IS_TM4C129_RA2)
7758#define ROM_USBHostMode                                                       \
7759        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[54])
7760#endif
7761#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7762    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7763    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7764    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7765    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7766    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7767    defined(TARGET_IS_TM4C129_RA2)
7768#define ROM_USBDevMode                                                        \
7769        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[55])
7770#endif
7771#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7772    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7773    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7774    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7775    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7776    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7777    defined(TARGET_IS_TM4C129_RA2)
7778#define ROM_USBPHYPowerOff                                                    \
7779        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[56])
7780#endif
7781#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7782    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7783    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7784    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7785    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7786    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7787    defined(TARGET_IS_TM4C129_RA2)
7788#define ROM_USBPHYPowerOn                                                     \
7789        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[57])
7790#endif
7791#if defined(TARGET_IS_TM4C123_RA3) ||                                         \
7792    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7793    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7794    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7795    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7796    defined(TARGET_IS_TM4C129_RA2)
7797#define ROM_UpdateUSB                                                         \
7798        ((void (*)(uint8_t *pui8DescriptorInfo))ROM_USBTABLE[58])
7799#endif
7800#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
7801    defined(TARGET_IS_TM4C123_RA3) ||                                         \
7802    defined(TARGET_IS_TM4C123_RB1) ||                                         \
7803    defined(TARGET_IS_TM4C123_RB2) ||                                         \
7804    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7805    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7806    defined(TARGET_IS_TM4C129_RA2)
7807#define ROM_USBOTGMode                                                        \
7808        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[59])
7809#endif
7810#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
7811    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7812    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7813    defined(TARGET_IS_TM4C129_RA2)
7814#define ROM_USBHostRequestINClear                                             \
7815        ((void (*)(uint32_t ui32Base,                                         \
7816                   uint32_t ui32Endpoint))ROM_USBTABLE[60])
7817#endif
7818#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
7819    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7820    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7821    defined(TARGET_IS_TM4C129_RA2)
7822#define ROM_USBNumEndpointsGet                                                \
7823        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[61])
7824#endif
7825#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7826    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7827    defined(TARGET_IS_TM4C129_RA2)
7828#define ROM_USBClockDisable                                                   \
7829        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[62])
7830#endif
7831#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7832    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7833    defined(TARGET_IS_TM4C129_RA2)
7834#define ROM_USBClockEnable                                                    \
7835        ((void (*)(uint32_t ui32Base,                                         \
7836                   uint32_t ui32Div,                                          \
7837                   uint32_t ui32Flags))ROM_USBTABLE[63])
7838#endif
7839#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7840    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7841    defined(TARGET_IS_TM4C129_RA2)
7842#define ROM_USBControllerVersion                                              \
7843        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[64])
7844#endif
7845#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7846    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7847    defined(TARGET_IS_TM4C129_RA2)
7848#define ROM_USBDevLPMConfig                                                   \
7849        ((void (*)(uint32_t ui32Base,                                         \
7850                   uint32_t ui32Config))ROM_USBTABLE[65])
7851#endif
7852#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7853    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7854    defined(TARGET_IS_TM4C129_RA2)
7855#define ROM_USBDevLPMDisable                                                  \
7856        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[66])
7857#endif
7858#if defined(TARGET_IS_TM4C123_RB1) ||                                         \
7859    defined(TARGET_IS_TM4C129_RA0) ||                                         \
7860    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7861    defined(TARGET_IS_TM4C129_RA2)
7862#define ROM_USBDevLPMEnable                                                   \
7863        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[67])
7864#endif
7865#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7866    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7867    defined(TARGET_IS_TM4C129_RA2)
7868#define ROM_USBDevLPMRemoteWake                                               \
7869        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[68])
7870#endif
7871#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7872    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7873    defined(TARGET_IS_TM4C129_RA2)
7874#define ROM_USBDevSpeedGet                                                    \
7875        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[69])
7876#endif
7877#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7878    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7879    defined(TARGET_IS_TM4C129_RA2)
7880#define ROM_USBDMAChannelAddressGet                                           \
7881        ((void * (*)(uint32_t ui32Base,                                       \
7882                     uint32_t ui32Channel))ROM_USBTABLE[70])
7883#endif
7884#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7885    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7886    defined(TARGET_IS_TM4C129_RA2)
7887#define ROM_USBDMAChannelAddressSet                                           \
7888        ((void (*)(uint32_t ui32Base,                                         \
7889                   uint32_t ui32Channel,                                      \
7890                   void *pvAddress))ROM_USBTABLE[71])
7891#endif
7892#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7893    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7894    defined(TARGET_IS_TM4C129_RA2)
7895#define ROM_USBDMAChannelConfigSet                                            \
7896        ((void (*)(uint32_t ui32Base,                                         \
7897                   uint32_t ui32Channel,                                      \
7898                   uint32_t ui32Endpoint,                                     \
7899                   uint32_t ui32Config))ROM_USBTABLE[72])
7900#endif
7901#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7902    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7903    defined(TARGET_IS_TM4C129_RA2)
7904#define ROM_USBDMAChannelDisable                                              \
7905        ((void (*)(uint32_t ui32Base,                                         \
7906                   uint32_t ui32Channel))ROM_USBTABLE[73])
7907#endif
7908#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7909    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7910    defined(TARGET_IS_TM4C129_RA2)
7911#define ROM_USBDMAChannelEnable                                               \
7912        ((void (*)(uint32_t ui32Base,                                         \
7913                   uint32_t ui32Channel))ROM_USBTABLE[74])
7914#endif
7915#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7916    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7917    defined(TARGET_IS_TM4C129_RA2)
7918#define ROM_USBDMAChannelIntDisable                                           \
7919        ((void (*)(uint32_t ui32Base,                                         \
7920                   uint32_t ui32Channel))ROM_USBTABLE[75])
7921#endif
7922#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7923    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7924    defined(TARGET_IS_TM4C129_RA2)
7925#define ROM_USBDMAChannelIntEnable                                            \
7926        ((void (*)(uint32_t ui32Base,                                         \
7927                   uint32_t ui32Channel))ROM_USBTABLE[76])
7928#endif
7929#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7930    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7931    defined(TARGET_IS_TM4C129_RA2)
7932#define ROM_USBDMAChannelCountGet                                             \
7933        ((uint32_t (*)(uint32_t ui32Base,                                     \
7934                       uint32_t ui32Channel))ROM_USBTABLE[77])
7935#endif
7936#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7937    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7938    defined(TARGET_IS_TM4C129_RA2)
7939#define ROM_USBDMAChannelCountSet                                             \
7940        ((void (*)(uint32_t ui32Base,                                         \
7941                   uint32_t ui32Count,                                        \
7942                   uint32_t ui32Channel))ROM_USBTABLE[78])
7943#endif
7944#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7945    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7946    defined(TARGET_IS_TM4C129_RA2)
7947#define ROM_USBDMAChannelIntStatus                                            \
7948        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[79])
7949#endif
7950#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7951    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7952    defined(TARGET_IS_TM4C129_RA2)
7953#define ROM_USBDMAChannelStatus                                               \
7954        ((uint32_t (*)(uint32_t ui32Base,                                     \
7955                       uint32_t ui32Channel))ROM_USBTABLE[80])
7956#endif
7957#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7958    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7959    defined(TARGET_IS_TM4C129_RA2)
7960#define ROM_USBDMAChannelStatusClear                                          \
7961        ((void (*)(uint32_t ui32Base,                                         \
7962                   uint32_t ui32Channel,                                      \
7963                   uint32_t ui32Status))ROM_USBTABLE[81])
7964#endif
7965#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7966    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7967    defined(TARGET_IS_TM4C129_RA2)
7968#define ROM_USBHighSpeed                                                      \
7969        ((void (*)(uint32_t ui32Base,                                         \
7970                   bool bEnable))ROM_USBTABLE[82])
7971#endif
7972#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7973    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7974    defined(TARGET_IS_TM4C129_RA2)
7975#define ROM_USBHostEndpointPing                                               \
7976        ((void (*)(uint32_t ui32Base,                                         \
7977                   uint32_t ui32Endpoint,                                     \
7978                   bool bEnable))ROM_USBTABLE[83])
7979#endif
7980#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7981    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7982    defined(TARGET_IS_TM4C129_RA2)
7983#define ROM_USBHostEndpointSpeed                                              \
7984        ((void (*)(uint32_t ui32Base,                                         \
7985                   uint32_t ui32Endpoint,                                     \
7986                   uint32_t ui32Flags))ROM_USBTABLE[84])
7987#endif
7988#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7989    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7990    defined(TARGET_IS_TM4C129_RA2)
7991#define ROM_USBHostLPMConfig                                                  \
7992        ((void (*)(uint32_t ui32Base,                                         \
7993                   uint32_t ui32ResumeTime,                                   \
7994                   uint32_t ui32Config))ROM_USBTABLE[85])
7995#endif
7996#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
7997    defined(TARGET_IS_TM4C129_RA1) ||                                         \
7998    defined(TARGET_IS_TM4C129_RA2)
7999#define ROM_USBHostLPMResume                                                  \
8000        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[86])
8001#endif
8002#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8003    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8004    defined(TARGET_IS_TM4C129_RA2)
8005#define ROM_USBHostLPMSend                                                    \
8006        ((void (*)(uint32_t ui32Base,                                         \
8007                   uint32_t ui32Address,                                      \
8008                   uint32_t uiEndpoint))ROM_USBTABLE[87])
8009#endif
8010#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8011    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8012    defined(TARGET_IS_TM4C129_RA2)
8013#define ROM_USBLPMIntDisable                                                  \
8014        ((void (*)(uint32_t ui32Base,                                         \
8015                   uint32_t ui32Ints))ROM_USBTABLE[88])
8016#endif
8017#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8018    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8019    defined(TARGET_IS_TM4C129_RA2)
8020#define ROM_USBLPMIntEnable                                                   \
8021        ((void (*)(uint32_t ui32Base,                                         \
8022                   uint32_t ui32Ints))ROM_USBTABLE[89])
8023#endif
8024#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8025    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8026    defined(TARGET_IS_TM4C129_RA2)
8027#define ROM_USBLPMIntStatus                                                   \
8028        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[90])
8029#endif
8030#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8031    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8032    defined(TARGET_IS_TM4C129_RA2)
8033#define ROM_USBLPMLinkStateGet                                                \
8034        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[91])
8035#endif
8036#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8037    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8038    defined(TARGET_IS_TM4C129_RA2)
8039#define ROM_USBEndpointPacketCountSet                                         \
8040        ((void (*)(uint32_t ui32Base,                                         \
8041                   uint32_t ui32Endpoint,                                     \
8042                   uint32_t ui32Count))ROM_USBTABLE[92])
8043#endif
8044#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8045    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8046    defined(TARGET_IS_TM4C129_RA2)
8047#define ROM_USBULPIConfig                                                     \
8048        ((void (*)(uint32_t ui32Base,                                         \
8049                   uint32_t ui32Config))ROM_USBTABLE[93])
8050#endif
8051#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8052    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8053    defined(TARGET_IS_TM4C129_RA2)
8054#define ROM_USBULPIDisable                                                    \
8055        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[94])
8056#endif
8057#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8058    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8059    defined(TARGET_IS_TM4C129_RA2)
8060#define ROM_USBULPIEnable                                                     \
8061        ((void (*)(uint32_t ui32Base))ROM_USBTABLE[95])
8062#endif
8063#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8064    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8065    defined(TARGET_IS_TM4C129_RA2)
8066#define ROM_USBULPIRegRead                                                    \
8067        ((uint8_t (*)(uint32_t ui32Base,                                      \
8068                      uint8_t ui8Reg))ROM_USBTABLE[96])
8069#endif
8070#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8071    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8072    defined(TARGET_IS_TM4C129_RA2)
8073#define ROM_USBULPIRegWrite                                                   \
8074        ((void (*)(uint32_t ui32Base,                                         \
8075                   uint8_t ui8Reg,                                            \
8076                   uint8_t ui8Data))ROM_USBTABLE[97])
8077#endif
8078#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8079    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8080    defined(TARGET_IS_TM4C129_RA2)
8081#define ROM_USBOTGSessionRequest                                              \
8082        ((void (*)(uint32_t ui32Base,                                         \
8083                   bool bStart))ROM_USBTABLE[98])
8084#endif
8085#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
8086    defined(TARGET_IS_TM4C129_RA2)
8087#define ROM_USBDMANumChannels                                                 \
8088        ((uint32_t (*)(uint32_t ui32Base))ROM_USBTABLE[99])
8089#endif
8090#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
8091    defined(TARGET_IS_TM4C129_RA2)
8092#define ROM_USBEndpointDMAConfigSet                                           \
8093        ((void (*)(uint32_t ui32Base,                                         \
8094                   uint32_t ui32Endpoint,                                     \
8095                   uint32_t ui32Config))ROM_USBTABLE[100])
8096#endif
8097#if defined(TARGET_IS_TM4C129_RA1) ||                                         \
8098    defined(TARGET_IS_TM4C129_RA2)
8099#define ROM_USBLPMRemoteWakeEnabled                                           \
8100        ((bool (*)(uint32_t ui32Base))ROM_USBTABLE[102])
8101#endif
8102#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8103    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8104    defined(TARGET_IS_TM4C129_RA2)
8105#define ROM_USBModeConfig                                                     \
8106        ((void (*)(uint32_t ui32Base,                                         \
8107                   uint32_t ui32Mode))ROM_USBTABLE[103])
8108#endif
8109
8110//*****************************************************************************
8111//
8112// Macros for calling ROM functions in the Watchdog API.
8113//
8114//*****************************************************************************
8115#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8116    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8117    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8118    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8119    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8120    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8121    defined(TARGET_IS_TM4C129_RA2)
8122#define ROM_WatchdogIntClear                                                  \
8123        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[0])
8124#endif
8125#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8126    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8127    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8128    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8129    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8130    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8131    defined(TARGET_IS_TM4C129_RA2)
8132#define ROM_WatchdogRunning                                                   \
8133        ((bool (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[1])
8134#endif
8135#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8136    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8137    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8138    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8139    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8140    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8141    defined(TARGET_IS_TM4C129_RA2)
8142#define ROM_WatchdogEnable                                                    \
8143        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[2])
8144#endif
8145#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8146    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8147    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8148    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8149    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8150    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8151    defined(TARGET_IS_TM4C129_RA2)
8152#define ROM_WatchdogResetEnable                                               \
8153        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[3])
8154#endif
8155#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8156    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8157    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8158    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8159    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8160    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8161    defined(TARGET_IS_TM4C129_RA2)
8162#define ROM_WatchdogResetDisable                                              \
8163        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[4])
8164#endif
8165#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8166    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8167    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8168    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8169    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8170    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8171    defined(TARGET_IS_TM4C129_RA2)
8172#define ROM_WatchdogLock                                                      \
8173        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[5])
8174#endif
8175#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8176    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8177    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8178    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8179    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8180    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8181    defined(TARGET_IS_TM4C129_RA2)
8182#define ROM_WatchdogUnlock                                                    \
8183        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[6])
8184#endif
8185#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8186    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8187    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8188    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8189    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8190    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8191    defined(TARGET_IS_TM4C129_RA2)
8192#define ROM_WatchdogLockState                                                 \
8193        ((bool (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[7])
8194#endif
8195#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8196    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8197    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8198    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8199    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8200    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8201    defined(TARGET_IS_TM4C129_RA2)
8202#define ROM_WatchdogReloadSet                                                 \
8203        ((void (*)(uint32_t ui32Base,                                         \
8204                   uint32_t ui32LoadVal))ROM_WATCHDOGTABLE[8])
8205#endif
8206#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8207    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8208    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8209    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8210    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8211    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8212    defined(TARGET_IS_TM4C129_RA2)
8213#define ROM_WatchdogReloadGet                                                 \
8214        ((uint32_t (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[9])
8215#endif
8216#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8217    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8218    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8219    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8220    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8221    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8222    defined(TARGET_IS_TM4C129_RA2)
8223#define ROM_WatchdogValueGet                                                  \
8224        ((uint32_t (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[10])
8225#endif
8226#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8227    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8228    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8229    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8230    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8231    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8232    defined(TARGET_IS_TM4C129_RA2)
8233#define ROM_WatchdogIntEnable                                                 \
8234        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[11])
8235#endif
8236#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8237    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8238    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8239    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8240    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8241    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8242    defined(TARGET_IS_TM4C129_RA2)
8243#define ROM_WatchdogIntStatus                                                 \
8244        ((uint32_t (*)(uint32_t ui32Base,                                     \
8245                       bool bMasked))ROM_WATCHDOGTABLE[12])
8246#endif
8247#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8248    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8249    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8250    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8251    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8252    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8253    defined(TARGET_IS_TM4C129_RA2)
8254#define ROM_WatchdogStallEnable                                               \
8255        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[13])
8256#endif
8257#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8258    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8259    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8260    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8261    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8262    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8263    defined(TARGET_IS_TM4C129_RA2)
8264#define ROM_WatchdogStallDisable                                              \
8265        ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[14])
8266#endif
8267#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8268    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8269    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8270    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8271    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8272    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8273    defined(TARGET_IS_TM4C129_RA2)
8274#define ROM_WatchdogIntTypeSet                                                \
8275        ((void (*)(uint32_t ui32Base,                                         \
8276                   uint32_t ui32Type))ROM_WATCHDOGTABLE[15])
8277#endif
8278
8279//*****************************************************************************
8280//
8281// Macros for calling ROM functions in the Software API.
8282//
8283//*****************************************************************************
8284#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8285    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8286    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8287    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8288    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8289    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8290    defined(TARGET_IS_TM4C129_RA2)
8291#define ROM_Crc16Array                                                        \
8292        ((uint16_t (*)(uint32_t ui32WordLen,                                  \
8293                       const uint32_t *pui32Data))ROM_SOFTWARETABLE[1])
8294#endif
8295#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8296    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8297    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8298    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8299    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8300    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8301    defined(TARGET_IS_TM4C129_RA2)
8302#define ROM_Crc16Array3                                                       \
8303        ((void (*)(uint32_t ui32WordLen,                                      \
8304                   const uint32_t *pui32Data,                                 \
8305                   uint16_t *pui16Crc3))ROM_SOFTWARETABLE[2])
8306#endif
8307#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8308    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8309    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8310    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8311    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8312    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8313    defined(TARGET_IS_TM4C129_RA2)
8314#define ROM_Crc16                                                             \
8315        ((uint16_t (*)(uint16_t ui16Crc,                                      \
8316                       const uint8_t *pui8Data,                               \
8317                       uint32_t ui32Count))ROM_SOFTWARETABLE[3])
8318#endif
8319#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8320    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8321    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8322    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8323    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8324    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8325    defined(TARGET_IS_TM4C129_RA2)
8326#define ROM_Crc8CCITT                                                         \
8327        ((uint8_t (*)(uint8_t ui8Crc,                                         \
8328                      const uint8_t *pui8Data,                                \
8329                      uint32_t ui32Count))ROM_SOFTWARETABLE[4])
8330#endif
8331#if defined(TARGET_IS_TM4C129_RA0) ||                                         \
8332    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8333    defined(TARGET_IS_TM4C129_RA2)
8334#define ROM_Crc32                                                             \
8335        ((uint32_t (*)(uint32_t ui32Crc,                                      \
8336                       const uint8_t *pui8Data,                               \
8337                       uint32_t ui32Count))ROM_SOFTWARETABLE[5])
8338#endif
8339#if defined(TARGET_IS_TM4C123_RA1) ||                                         \
8340    defined(TARGET_IS_TM4C123_RA3) ||                                         \
8341    defined(TARGET_IS_TM4C123_RB1) ||                                         \
8342    defined(TARGET_IS_TM4C123_RB2) ||                                         \
8343    defined(TARGET_IS_TM4C129_RA0) ||                                         \
8344    defined(TARGET_IS_TM4C129_RA1) ||                                         \
8345    defined(TARGET_IS_TM4C129_RA2)
8346#define ROM_pvAESTable                                                        \
8347        ((void *)&(ROM_SOFTWARETABLE[7]))
8348#endif
8349
8350#endif // __DRIVERLIB_ROM_H__