+/rtos
git clone https://git.julia.blue/+/rtos
da8d6f3
master
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 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 128 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 129 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 130 defined(TARGET_IS_TM4C129_RA2 ) 131#define ROM_ADCSequenceDataGet \ 132 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32SequenceNum, \ 133 uint32_t * pui32Buffer)) ROM_ADCTABLE[0]) 134#endif 135#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 136 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 137 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 138 defined(TARGET_IS_TM4C129_RA2 ) 139#define ROM_ADCIntDisable \ 140 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[1]) 141#endif 142#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 143 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 144 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 145 defined(TARGET_IS_TM4C129_RA2 ) 146#define ROM_ADCIntEnable \ 147 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[2]) 148#endif 149#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 150 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 151 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 152 defined(TARGET_IS_TM4C129_RA2 ) 153#define ROM_ADCIntStatus \ 154 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32SequenceNum, \ 155 bool bMasked))ROM_ADCTABLE[3]) 156#endif 157#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 158 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 159 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 160 defined(TARGET_IS_TM4C129_RA2 ) 161#define ROM_ADCIntClear \ 162 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[4]) 163#endif 164#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 165 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 166 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 167 defined(TARGET_IS_TM4C129_RA2 ) 168#define ROM_ADCSequenceEnable \ 169 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[5]) 170#endif 171#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 172 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 173 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 174 defined(TARGET_IS_TM4C129_RA2 ) 175#define ROM_ADCSequenceDisable \ 176 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[6]) 177#endif 178#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 179 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 180 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 181 defined(TARGET_IS_TM4C129_RA2 ) 182#define ROM_ADCSequenceConfigure \ 183 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum, \ 184 uint32_t ui32Trigger, uint32_t ui32Priority))ROM_ADCTABLE[7]) 185#endif 186#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 187 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 188 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 189 defined(TARGET_IS_TM4C129_RA2 ) 190#define ROM_ADCSequenceStepConfigure \ 191 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum, uint32_t ui32Step, \ 192 uint32_t ui32Config))ROM_ADCTABLE[8]) 193#endif 194#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 195 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 196 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 197 defined(TARGET_IS_TM4C129_RA2 ) 198#define ROM_ADCSequenceOverflow \ 199 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[9]) 200#endif 201#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 202 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 203 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 204 defined(TARGET_IS_TM4C129_RA2 ) 205#define ROM_ADCSequenceOverflowClear \ 206 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[10]) 207#endif 208#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 209 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 210 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 211 defined(TARGET_IS_TM4C129_RA2 ) 212#define ROM_ADCSequenceUnderflow \ 213 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[11]) 214#endif 215#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 216 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 217 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 218 defined(TARGET_IS_TM4C129_RA2 ) 219#define ROM_ADCSequenceUnderflowClear \ 220 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[12]) 221#endif 222#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 223 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 224 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 225 defined(TARGET_IS_TM4C129_RA2 ) 226#define ROM_ADCProcessorTrigger \ 227 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[13]) 228#endif 229#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 230 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 231 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 232 defined(TARGET_IS_TM4C129_RA2 ) 233#define ROM_ADCHardwareOversampleConfigure \ 234 ((void (*)(uint32_t ui32Base, uint32_t ui32Factor))ROM_ADCTABLE[14]) 235#endif 236#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 237 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 238 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 239 defined(TARGET_IS_TM4C129_RA2 ) 240#define ROM_ADCComparatorConfigure \ 241 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp, \ 242 uint32_t ui32Config))ROM_ADCTABLE[15]) 243#endif 244#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 245 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 246 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 247 defined(TARGET_IS_TM4C129_RA2 ) 248#define ROM_ADCComparatorRegionSet \ 249 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp, uint32_t ui32LowRef, \ 250 uint32_t ui32HighRef))ROM_ADCTABLE[16]) 251#endif 252#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 253 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 254 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 255 defined(TARGET_IS_TM4C129_RA2 ) 256#define ROM_ADCComparatorReset \ 257 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp, bool bTrigger, \ 258 bool bInterrupt))ROM_ADCTABLE[17]) 259#endif 260#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 261 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 262 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 263 defined(TARGET_IS_TM4C129_RA2 ) 264#define ROM_ADCComparatorIntDisable \ 265 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[18]) 266#endif 267#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 268 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 269 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 270 defined(TARGET_IS_TM4C129_RA2 ) 271#define ROM_ADCComparatorIntEnable \ 272 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[19]) 273#endif 274#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 275 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 276 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 277 defined(TARGET_IS_TM4C129_RA2 ) 278#define ROM_ADCComparatorIntStatus \ 279 ((uint32_t(*)(uint32_t ui32Base))ROM_ADCTABLE[20]) 280#endif 281#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 282 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 283 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 284 defined(TARGET_IS_TM4C129_RA2 ) 285#define ROM_ADCComparatorIntClear \ 286 ((void (*)(uint32_t ui32Base, uint32_t ui32Status))ROM_ADCTABLE[21]) 287#endif 288#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 289 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 290 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 291 defined(TARGET_IS_TM4C129_RA2 ) 292#define ROM_ADCReferenceSet \ 293 ((void (*)(uint32_t ui32Base, uint32_t ui32Ref))ROM_ADCTABLE[22]) 294#endif 295#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 296 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 297 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 298 defined(TARGET_IS_TM4C129_RA2 ) 299#define ROM_ADCReferenceGet ((uint32_t(*)(uint32_t ui32Base))ROM_ADCTABLE[23]) 300#endif 301#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 302 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 303 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 304 defined(TARGET_IS_TM4C129_RA2 ) 305#define ROM_ADCPhaseDelaySet \ 306 ((void (*)(uint32_t ui32Base, uint32_t ui32Phase))ROM_ADCTABLE[24]) 307#endif 308#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 309 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 310 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 311 defined(TARGET_IS_TM4C129_RA2 ) 312#define ROM_ADCPhaseDelayGet ((uint32_t(*)(uint32_t ui32Base))ROM_ADCTABLE[25]) 313#endif 314#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 315 defined(TARGET_IS_TM4C129_RA2 ) 316#define ROM_ADCIntDisableEx \ 317 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_ADCTABLE[29]) 318#endif 319#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 320 defined(TARGET_IS_TM4C129_RA2 ) 321#define ROM_ADCIntEnableEx \ 322 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_ADCTABLE[30]) 323#endif 324#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 325 defined(TARGET_IS_TM4C129_RA2 ) 326#define ROM_ADCIntStatusEx \ 327 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_ADCTABLE[31]) 328#endif 329#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 330 defined(TARGET_IS_TM4C129_RA2 ) 331#define ROM_ADCSequenceDMAEnable \ 332 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[32]) 333#endif 334#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 335 defined(TARGET_IS_TM4C129_RA2 ) 336#define ROM_ADCSequenceDMADisable \ 337 ((void (*)(uint32_t ui32Base, uint32_t ui32SequenceNum))ROM_ADCTABLE[33]) 338#endif 339#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 340 defined(TARGET_IS_TM4C129_RA2 ) 341#define ROM_ADCBusy ((bool (*)(uint32_t ui32Base))ROM_ADCTABLE[34]) 342#endif 343 344//***************************************************************************** 345// 346// Macros for calling ROM functions in the AES API. 347// 348//***************************************************************************** 349#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 350 defined(TARGET_IS_TM4C129_RA2 ) 351#define ROM_AESIntStatus \ 352 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_AESTABLE[0]) 353#endif 354#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 355 defined(TARGET_IS_TM4C129_RA2 ) 356#define ROM_AESAuthLengthSet \ 357 ((void (*)(uint32_t ui32Base, uint32_t ui32Length))ROM_AESTABLE[1]) 358#endif 359#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 360 defined(TARGET_IS_TM4C129_RA2 ) 361#define ROM_AESConfigSet \ 362 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_AESTABLE[2]) 363#endif 364#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 365 defined(TARGET_IS_TM4C129_RA2 ) 366#define ROM_AESDataAuth \ 367 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src, uint32_t ui32Length, \ 368 uint32_t * pui32Tag)) ROM_AESTABLE[3]) 369#endif 370#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 371 defined(TARGET_IS_TM4C129_RA2 ) 372#define ROM_AESDataProcess \ 373 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src, uint32_t * pui32Dest, \ 374 uint32_t ui32Length)) ROM_AESTABLE[4]) 375#endif 376#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 377 defined(TARGET_IS_TM4C129_RA2 ) 378#define ROM_AESDataProcessAuth \ 379 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src, uint32_t * pui32Dest, \ 380 uint32_t ui32Length, uint32_t * pui32AuthSrc, \ 381 uint32_t ui32AuthLength, uint32_t * pui32Tag)) ROM_AESTABLE[5]) 382#endif 383#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 384 defined(TARGET_IS_TM4C129_RA2 ) 385#define ROM_AESDataRead \ 386 ((void (*)(uint32_t ui32Base, uint32_t * pui32Dest)) ROM_AESTABLE[6]) 387#endif 388#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 389 defined(TARGET_IS_TM4C129_RA2 ) 390#define ROM_AESDataReadNonBlocking \ 391 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Dest)) ROM_AESTABLE[7]) 392#endif 393#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 394 defined(TARGET_IS_TM4C129_RA2 ) 395#define ROM_AESDataWrite \ 396 ((void (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_AESTABLE[8]) 397#endif 398#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 399 defined(TARGET_IS_TM4C129_RA2 ) 400#define ROM_AESDataWriteNonBlocking \ 401 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_AESTABLE[9]) 402#endif 403#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 404 defined(TARGET_IS_TM4C129_RA2 ) 405#define ROM_AESDMADisable \ 406 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_AESTABLE[10]) 407#endif 408#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 409 defined(TARGET_IS_TM4C129_RA2 ) 410#define ROM_AESDMAEnable \ 411 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_AESTABLE[11]) 412#endif 413#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 414 defined(TARGET_IS_TM4C129_RA2 ) 415#define ROM_AESIntClear \ 416 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_AESTABLE[12]) 417#endif 418#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 419 defined(TARGET_IS_TM4C129_RA2 ) 420#define ROM_AESIntDisable \ 421 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_AESTABLE[13]) 422#endif 423#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 424 defined(TARGET_IS_TM4C129_RA2 ) 425#define ROM_AESIntEnable \ 426 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_AESTABLE[14]) 427#endif 428#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 429 defined(TARGET_IS_TM4C129_RA2 ) 430#define ROM_AESIVSet \ 431 ((void (*)(uint32_t ui32Base, uint32_t * pui32IVdata)) ROM_AESTABLE[15]) 432#endif 433#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 434 defined(TARGET_IS_TM4C129_RA2 ) 435#define ROM_AESKey1Set \ 436 ((void (*)(uint32_t ui32Base, uint32_t * pui32Key, uint32_t ui32Keysize)) \ 437 ROM_AESTABLE[16]) 438#endif 439#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 440 defined(TARGET_IS_TM4C129_RA2 ) 441#define ROM_AESKey2Set \ 442 ((void (*)(uint32_t ui32Base, uint32_t * pui32Key, uint32_t ui32Keysize)) \ 443 ROM_AESTABLE[17]) 444#endif 445#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 446 defined(TARGET_IS_TM4C129_RA2 ) 447#define ROM_AESKey3Set \ 448 ((void (*)(uint32_t ui32Base, uint32_t * pui32Key)) ROM_AESTABLE[18]) 449#endif 450#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 451 defined(TARGET_IS_TM4C129_RA2 ) 452#define ROM_AESLengthSet \ 453 ((void (*)(uint32_t ui32Base, uint64_t ui64Length))ROM_AESTABLE[19]) 454#endif 455#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 456 defined(TARGET_IS_TM4C129_RA2 ) 457#define ROM_AESReset ((void (*)(uint32_t ui32Base))ROM_AESTABLE[20]) 458#endif 459#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 460 defined(TARGET_IS_TM4C129_RA2 ) 461#define ROM_AESTagRead \ 462 ((void (*)(uint32_t ui32Base, uint32_t * pui32TagData)) ROM_AESTABLE[21]) 463#endif 464#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 465#define ROM_AESIVRead \ 466 ((void (*)(uint32_t ui32Base, uint32_t * pui32IVdata)) ROM_AESTABLE[22]) 467#endif 468 469//***************************************************************************** 470// 471// Macros for calling ROM functions in the CAN API. 472// 473//***************************************************************************** 474#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 475 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 476 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 477 defined(TARGET_IS_TM4C129_RA2 ) 478#define ROM_CANIntClear \ 479 ((void (*)(uint32_t ui32Base, uint32_t ui32IntClr))ROM_CANTABLE[0]) 480#endif 481#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 482 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 483 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 484 defined(TARGET_IS_TM4C129_RA2 ) 485#define ROM_CANInit ((void (*)(uint32_t ui32Base))ROM_CANTABLE[1]) 486#endif 487#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 488 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 489 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 490 defined(TARGET_IS_TM4C129_RA2 ) 491#define ROM_CANEnable ((void (*)(uint32_t ui32Base))ROM_CANTABLE[2]) 492#endif 493#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 494 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 495 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 496 defined(TARGET_IS_TM4C129_RA2 ) 497#define ROM_CANDisable ((void (*)(uint32_t ui32Base))ROM_CANTABLE[3]) 498#endif 499#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 500 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 501 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 502 defined(TARGET_IS_TM4C129_RA2 ) 503#define ROM_CANBitTimingSet \ 504 ((void (*)(uint32_t ui32Base, tCANBitClkParms * psClkParms)) \ 505 ROM_CANTABLE[4]) 506#endif 507#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 508 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 509 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 510 defined(TARGET_IS_TM4C129_RA2 ) 511#define ROM_CANBitTimingGet \ 512 ((void (*)(uint32_t ui32Base, tCANBitClkParms * psClkParms)) \ 513 ROM_CANTABLE[5]) 514#endif 515#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 516 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 517 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 518 defined(TARGET_IS_TM4C129_RA2 ) 519#define ROM_CANMessageSet \ 520 ((void (*)(uint32_t ui32Base, uint32_t ui32ObjID, \ 521 tCANMsgObject * psMsgObject, tMsgObjType eMsgType)) \ 522 ROM_CANTABLE[6]) 523#endif 524#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 525 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 526 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 527 defined(TARGET_IS_TM4C129_RA2 ) 528#define ROM_CANMessageGet \ 529 ((void (*)(uint32_t ui32Base, uint32_t ui32ObjID, \ 530 tCANMsgObject * psMsgObject, bool bClrPendingInt)) \ 531 ROM_CANTABLE[7]) 532#endif 533#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 534 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 535 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 536 defined(TARGET_IS_TM4C129_RA2 ) 537#define ROM_CANStatusGet \ 538 ((uint32_t(*)(uint32_t ui32Base, tCANStsReg eStatusReg))ROM_CANTABLE[8]) 539#endif 540#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 541 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 542 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 543 defined(TARGET_IS_TM4C129_RA2 ) 544#define ROM_CANMessageClear \ 545 ((void (*)(uint32_t ui32Base, uint32_t ui32ObjID))ROM_CANTABLE[9]) 546#endif 547#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 548 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 549 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 550 defined(TARGET_IS_TM4C129_RA2 ) 551#define ROM_CANIntEnable \ 552 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_CANTABLE[10]) 553#endif 554#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 555 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 556 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 557 defined(TARGET_IS_TM4C129_RA2 ) 558#define ROM_CANIntDisable \ 559 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_CANTABLE[11]) 560#endif 561#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 562 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 563 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 564 defined(TARGET_IS_TM4C129_RA2 ) 565#define ROM_CANIntStatus \ 566 ((uint32_t(*)(uint32_t ui32Base, tCANIntStsReg eIntStsReg))ROM_CANTABLE[12]) 567#endif 568#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 569 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 570 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 571 defined(TARGET_IS_TM4C129_RA2 ) 572#define ROM_CANRetryGet ((bool (*)(uint32_t ui32Base))ROM_CANTABLE[13]) 573#endif 574#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 575 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 576 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 577 defined(TARGET_IS_TM4C129_RA2 ) 578#define ROM_CANRetrySet \ 579 ((void (*)(uint32_t ui32Base, bool bAutoRetry))ROM_CANTABLE[14]) 580#endif 581#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 582 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 583 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 584 defined(TARGET_IS_TM4C129_RA2 ) 585#define ROM_CANErrCntrGet \ 586 ((bool (*)(uint32_t ui32Base, uint32_t * pui32RxCount, \ 587 uint32_t * pui32TxCount)) ROM_CANTABLE[15]) 588#endif 589#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 590 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 591 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 592 defined(TARGET_IS_TM4C129_RA2 ) 593#define ROM_CANBitRateSet \ 594 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32SourceClock, \ 595 uint32_t ui32BitRate))ROM_CANTABLE[16]) 596#endif 597 598//***************************************************************************** 599// 600// Macros for calling ROM functions in the Comparator API. 601// 602//***************************************************************************** 603#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 604 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 605 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 606 defined(TARGET_IS_TM4C129_RA2 ) 607#define ROM_ComparatorIntClear \ 608 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp))ROM_COMPARATORTABLE[0]) 609#endif 610#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 611 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 612 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 613 defined(TARGET_IS_TM4C129_RA2 ) 614#define ROM_ComparatorConfigure \ 615 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp, \ 616 uint32_t ui32Config))ROM_COMPARATORTABLE[1]) 617#endif 618#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 619 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 620 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 621 defined(TARGET_IS_TM4C129_RA2 ) 622#define ROM_ComparatorRefSet \ 623 ((void (*)(uint32_t ui32Base, uint32_t ui32Ref))ROM_COMPARATORTABLE[2]) 624#endif 625#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 626 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 627 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 628 defined(TARGET_IS_TM4C129_RA2 ) 629#define ROM_ComparatorValueGet \ 630 ((bool (*)(uint32_t ui32Base, uint32_t ui32Comp))ROM_COMPARATORTABLE[3]) 631#endif 632#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 633 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 634 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 635 defined(TARGET_IS_TM4C129_RA2 ) 636#define ROM_ComparatorIntEnable \ 637 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp))ROM_COMPARATORTABLE[4]) 638#endif 639#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 640 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 641 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 642 defined(TARGET_IS_TM4C129_RA2 ) 643#define ROM_ComparatorIntDisable \ 644 ((void (*)(uint32_t ui32Base, uint32_t ui32Comp))ROM_COMPARATORTABLE[5]) 645#endif 646#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 647 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 648 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 649 defined(TARGET_IS_TM4C129_RA2 ) 650#define ROM_ComparatorIntStatus \ 651 ((bool (*)(uint32_t ui32Base, uint32_t ui32Comp, \ 652 bool bMasked))ROM_COMPARATORTABLE[6]) 653#endif 654 655//***************************************************************************** 656// 657// Macros for calling ROM functions in the CRC API. 658// 659//***************************************************************************** 660#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 661 defined(TARGET_IS_TM4C129_RA2 ) 662#define ROM_CRCConfigSet \ 663 ((void (*)(uint32_t ui32Base, uint32_t ui32CRCConfig))ROM_CRCTABLE[0]) 664#endif 665#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 666 defined(TARGET_IS_TM4C129_RA2 ) 667#define ROM_CRCDataProcess \ 668 ((uint32_t(*)(uint32_t ui32Base, uint32_t * pui32DataIn, \ 669 uint32_t ui32DataLength, bool bPPResult)) ROM_CRCTABLE[1]) 670#endif 671#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 672 defined(TARGET_IS_TM4C129_RA2 ) 673#define ROM_CRCDataWrite \ 674 ((void (*)(uint32_t ui32Base, uint32_t ui32Data))ROM_CRCTABLE[2]) 675#endif 676#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 677 defined(TARGET_IS_TM4C129_RA2 ) 678#define ROM_CRCResultRead \ 679 ((uint32_t(*)(uint32_t ui32Base, bool bPPResult))ROM_CRCTABLE[3]) 680#endif 681#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 682 defined(TARGET_IS_TM4C129_RA2 ) 683#define ROM_CRCSeedSet \ 684 ((void (*)(uint32_t ui32Base, uint32_t ui32Seed))ROM_CRCTABLE[4]) 685#endif 686 687//***************************************************************************** 688// 689// Macros for calling ROM functions in the DES API. 690// 691//***************************************************************************** 692#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 693 defined(TARGET_IS_TM4C129_RA2 ) 694#define ROM_DESIntStatus \ 695 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_DESTABLE[0]) 696#endif 697#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 698 defined(TARGET_IS_TM4C129_RA2 ) 699#define ROM_DESConfigSet \ 700 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_DESTABLE[1]) 701#endif 702#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 703 defined(TARGET_IS_TM4C129_RA2 ) 704#define ROM_DESDataRead \ 705 ((void (*)(uint32_t ui32Base, uint32_t * pui32Dest)) ROM_DESTABLE[2]) 706#endif 707#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 708 defined(TARGET_IS_TM4C129_RA2 ) 709#define ROM_DESDataReadNonBlocking \ 710 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Dest)) ROM_DESTABLE[3]) 711#endif 712#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 713 defined(TARGET_IS_TM4C129_RA2 ) 714#define ROM_DESDataProcess \ 715 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src, uint32_t * pui32Dest, \ 716 uint32_t ui32Length)) ROM_DESTABLE[4]) 717#endif 718#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 719 defined(TARGET_IS_TM4C129_RA2 ) 720#define ROM_DESDataWrite \ 721 ((void (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_DESTABLE[5]) 722#endif 723#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 724 defined(TARGET_IS_TM4C129_RA2 ) 725#define ROM_DESDataWriteNonBlocking \ 726 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_DESTABLE[6]) 727#endif 728#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 729 defined(TARGET_IS_TM4C129_RA2 ) 730#define ROM_DESDMADisable \ 731 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_DESTABLE[7]) 732#endif 733#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 734 defined(TARGET_IS_TM4C129_RA2 ) 735#define ROM_DESDMAEnable \ 736 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_DESTABLE[8]) 737#endif 738#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 739 defined(TARGET_IS_TM4C129_RA2 ) 740#define ROM_DESIntClear \ 741 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_DESTABLE[9]) 742#endif 743#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 744 defined(TARGET_IS_TM4C129_RA2 ) 745#define ROM_DESIntDisable \ 746 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_DESTABLE[10]) 747#endif 748#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 749 defined(TARGET_IS_TM4C129_RA2 ) 750#define ROM_DESIntEnable \ 751 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_DESTABLE[11]) 752#endif 753#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 754 defined(TARGET_IS_TM4C129_RA2 ) 755#define ROM_DESIVSet \ 756 ((bool (*)(uint32_t ui32Base, uint32_t * pui32IVdata)) ROM_DESTABLE[12]) 757#endif 758#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 759 defined(TARGET_IS_TM4C129_RA2 ) 760#define ROM_DESKeySet \ 761 ((void (*)(uint32_t ui32Base, uint32_t * pui32Key)) ROM_DESTABLE[13]) 762#endif 763#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 764 defined(TARGET_IS_TM4C129_RA2 ) 765#define ROM_DESLengthSet \ 766 ((void (*)(uint32_t ui32Base, uint32_t ui32Length))ROM_DESTABLE[14]) 767#endif 768#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 769 defined(TARGET_IS_TM4C129_RA2 ) 770#define ROM_DESReset ((void (*)(uint32_t ui32Base))ROM_DESTABLE[15]) 771#endif 772 773//***************************************************************************** 774// 775// Macros for calling ROM functions in the EEPROM API. 776// 777//***************************************************************************** 778#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 779 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 780 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 781#define ROM_EEPROMRead \ 782 ((void (*)(uint32_t * pui32Data, uint32_t ui32Address, \ 783 uint32_t ui32Count)) ROM_EEPROMTABLE[0]) 784#endif 785#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 786 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 787 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 788#define ROM_EEPROMBlockCountGet ((uint32_t(*)(void))ROM_EEPROMTABLE[1]) 789#endif 790#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 791 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 792 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 793#define ROM_EEPROMBlockHide ((void (*)(uint32_t ui32Block))ROM_EEPROMTABLE[2]) 794#endif 795#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 796 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 797 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 798#define ROM_EEPROMBlockLock \ 799 ((uint32_t(*)(uint32_t ui32Block))ROM_EEPROMTABLE[3]) 800#endif 801#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 802 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 803 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 804#define ROM_EEPROMBlockPasswordSet \ 805 ((uint32_t(*)(uint32_t ui32Block, uint32_t * pui32Password, \ 806 uint32_t ui32Count)) ROM_EEPROMTABLE[4]) 807#endif 808#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 809 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 810 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 811#define ROM_EEPROMBlockProtectGet \ 812 ((uint32_t(*)(uint32_t ui32Block))ROM_EEPROMTABLE[5]) 813#endif 814#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 815 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 816 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 817#define ROM_EEPROMBlockProtectSet \ 818 ((uint32_t(*)(uint32_t ui32Block, uint32_t ui32Protect))ROM_EEPROMTABLE[6]) 819#endif 820#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 821 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 822 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 823#define ROM_EEPROMBlockUnlock \ 824 ((uint32_t(*)(uint32_t ui32Block, uint32_t * pui32Password, \ 825 uint32_t ui32Count)) ROM_EEPROMTABLE[7]) 826#endif 827#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 828 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 829 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 830#define ROM_EEPROMIntClear ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[8]) 831#endif 832#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 833 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 834 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 835#define ROM_EEPROMIntDisable \ 836 ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[9]) 837#endif 838#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 839 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 840 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 841#define ROM_EEPROMIntEnable \ 842 ((void (*)(uint32_t ui32IntFlags))ROM_EEPROMTABLE[10]) 843#endif 844#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 845 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 846 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 847#define ROM_EEPROMIntStatus ((uint32_t(*)(bool bMasked))ROM_EEPROMTABLE[11]) 848#endif 849#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 ) 850#define ROM_EEPROMMassErase ((uint32_t(*)(void))ROM_EEPROMTABLE[12]) 851#endif 852#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 853 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 854 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 855#define ROM_EEPROMProgram \ 856 ((uint32_t(*)(uint32_t * pui32Data, uint32_t ui32Address, \ 857 uint32_t ui32Count)) ROM_EEPROMTABLE[13]) 858#endif 859#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 860 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 861 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 862#define ROM_EEPROMProgramNonBlocking \ 863 ((uint32_t(*)(uint32_t ui32Data, uint32_t ui32Address))ROM_EEPROMTABLE[14]) 864#endif 865#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 866 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 867 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 868#define ROM_EEPROMSizeGet ((uint32_t(*)(void))ROM_EEPROMTABLE[15]) 869#endif 870#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 871 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 872 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 873#define ROM_EEPROMStatusGet ((uint32_t(*)(void))ROM_EEPROMTABLE[16]) 874#endif 875#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 876 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 877 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 878#define ROM_EEPROMInit ((uint32_t(*)(void))ROM_EEPROMTABLE[17]) 879#endif 880 881//***************************************************************************** 882// 883// Macros for calling ROM functions in the EPI API. 884// 885//***************************************************************************** 886#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 887 defined(TARGET_IS_TM4C129_RA2 ) 888#define ROM_EPIIntStatus \ 889 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_EPITABLE[0]) 890#endif 891#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 892 defined(TARGET_IS_TM4C129_RA2 ) 893#define ROM_EPIModeSet \ 894 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_EPITABLE[1]) 895#endif 896#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 897 defined(TARGET_IS_TM4C129_RA2 ) 898#define ROM_EPIDividerSet \ 899 ((void (*)(uint32_t ui32Base, uint32_t ui32Divider))ROM_EPITABLE[2]) 900#endif 901#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 902 defined(TARGET_IS_TM4C129_RA2 ) 903#define ROM_EPIConfigSDRAMSet \ 904 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 905 uint32_t ui32Refresh))ROM_EPITABLE[3]) 906#endif 907#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 908 defined(TARGET_IS_TM4C129_RA2 ) 909#define ROM_EPIConfigGPModeSet \ 910 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 911 uint32_t ui32FrameCount, uint32_t ui32MaxWait))ROM_EPITABLE[4]) 912#endif 913#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 914 defined(TARGET_IS_TM4C129_RA2 ) 915#define ROM_EPIConfigHB8Set \ 916 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 917 uint32_t ui32MaxWait))ROM_EPITABLE[5]) 918#endif 919#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 920 defined(TARGET_IS_TM4C129_RA2 ) 921#define ROM_EPIConfigHB16Set \ 922 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 923 uint32_t ui32MaxWait))ROM_EPITABLE[6]) 924#endif 925#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 926 defined(TARGET_IS_TM4C129_RA2 ) 927#define ROM_EPIAddressMapSet \ 928 ((void (*)(uint32_t ui32Base, uint32_t ui32Map))ROM_EPITABLE[7]) 929#endif 930#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 931 defined(TARGET_IS_TM4C129_RA2 ) 932#define ROM_EPINonBlockingReadConfigure \ 933 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32DataSize, \ 934 uint32_t ui32Address))ROM_EPITABLE[8]) 935#endif 936#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 937 defined(TARGET_IS_TM4C129_RA2 ) 938#define ROM_EPINonBlockingReadStart \ 939 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel, \ 940 uint32_t ui32Count))ROM_EPITABLE[9]) 941#endif 942#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 943 defined(TARGET_IS_TM4C129_RA2 ) 944#define ROM_EPINonBlockingReadStop \ 945 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_EPITABLE[10]) 946#endif 947#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 948 defined(TARGET_IS_TM4C129_RA2 ) 949#define ROM_EPINonBlockingReadCount \ 950 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_EPITABLE[11]) 951#endif 952#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 953 defined(TARGET_IS_TM4C129_RA2 ) 954#define ROM_EPINonBlockingReadAvail \ 955 ((uint32_t(*)(uint32_t ui32Base))ROM_EPITABLE[12]) 956#endif 957#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 958 defined(TARGET_IS_TM4C129_RA2 ) 959#define ROM_EPINonBlockingReadGet32 \ 960 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Count, uint32_t * pui32Buf)) \ 961 ROM_EPITABLE[13]) 962#endif 963#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 964 defined(TARGET_IS_TM4C129_RA2 ) 965#define ROM_EPINonBlockingReadGet16 \ 966 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Count, uint16_t * pui16Buf)) \ 967 ROM_EPITABLE[14]) 968#endif 969#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 970 defined(TARGET_IS_TM4C129_RA2 ) 971#define ROM_EPINonBlockingReadGet8 \ 972 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Count, uint8_t * pui8Buf)) \ 973 ROM_EPITABLE[15]) 974#endif 975#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 976 defined(TARGET_IS_TM4C129_RA2 ) 977#define ROM_EPIFIFOConfig \ 978 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_EPITABLE[16]) 979#endif 980#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 981 defined(TARGET_IS_TM4C129_RA2 ) 982#define ROM_EPIWriteFIFOCountGet \ 983 ((uint32_t(*)(uint32_t ui32Base))ROM_EPITABLE[17]) 984#endif 985#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 986 defined(TARGET_IS_TM4C129_RA2 ) 987#define ROM_EPIIntEnable \ 988 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_EPITABLE[18]) 989#endif 990#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 991 defined(TARGET_IS_TM4C129_RA2 ) 992#define ROM_EPIIntDisable \ 993 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_EPITABLE[19]) 994#endif 995#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 996 defined(TARGET_IS_TM4C129_RA2 ) 997#define ROM_EPIIntErrorStatus ((uint32_t(*)(uint32_t ui32Base))ROM_EPITABLE[20]) 998#endif 999#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1000 defined(TARGET_IS_TM4C129_RA2 ) 1001#define ROM_EPIIntErrorClear \ 1002 ((void (*)(uint32_t ui32Base, uint32_t ui32ErrFlags))ROM_EPITABLE[21]) 1003#endif 1004#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1005 defined(TARGET_IS_TM4C129_RA2 ) 1006#define ROM_EPIDividerCSSet \ 1007 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1008 uint32_t ui32Divider))ROM_EPITABLE[22]) 1009#endif 1010#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1011 defined(TARGET_IS_TM4C129_RA2 ) 1012#define ROM_EPIDMATxCount \ 1013 ((void (*)(uint32_t ui32Base, uint32_t ui32Count))ROM_EPITABLE[23]) 1014#endif 1015#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1016 defined(TARGET_IS_TM4C129_RA2 ) 1017#define ROM_EPIConfigHB8CSSet \ 1018 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1019 uint32_t ui32Config))ROM_EPITABLE[24]) 1020#endif 1021#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1022 defined(TARGET_IS_TM4C129_RA2 ) 1023#define ROM_EPIConfigHB16CSSet \ 1024 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1025 uint32_t ui32Config))ROM_EPITABLE[25]) 1026#endif 1027#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1028 defined(TARGET_IS_TM4C129_RA2 ) 1029#define ROM_EPIConfigHB8TimingSet \ 1030 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1031 uint32_t ui32Config))ROM_EPITABLE[26]) 1032#endif 1033#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1034 defined(TARGET_IS_TM4C129_RA2 ) 1035#define ROM_EPIConfigHB16TimingSet \ 1036 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1037 uint32_t ui32Config))ROM_EPITABLE[27]) 1038#endif 1039#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1040 defined(TARGET_IS_TM4C129_RA2 ) 1041#define ROM_EPIPSRAMConfigRegSet \ 1042 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 1043 uint32_t ui32CR))ROM_EPITABLE[28]) 1044#endif 1045#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1046 defined(TARGET_IS_TM4C129_RA2 ) 1047#define ROM_EPIPSRAMConfigRegRead \ 1048 ((void (*)(uint32_t ui32Base, uint32_t ui32CS))ROM_EPITABLE[29]) 1049#endif 1050#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1051 defined(TARGET_IS_TM4C129_RA2 ) 1052#define ROM_EPIPSRAMConfigRegGetNonBlocking \ 1053 ((bool (*)(uint32_t ui32Base, uint32_t ui32CS, uint32_t * pui32CR)) \ 1054 ROM_EPITABLE[30]) 1055#endif 1056#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1057 defined(TARGET_IS_TM4C129_RA2 ) 1058#define ROM_EPIPSRAMConfigRegGet \ 1059 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32CS))ROM_EPITABLE[31]) 1060#endif 1061 1062//***************************************************************************** 1063// 1064// Macros for calling ROM functions in the EMAC API. 1065// 1066//***************************************************************************** 1067#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1068 defined(TARGET_IS_TM4C129_RA2 ) 1069#define ROM_EMACIntStatus \ 1070 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_EMACTABLE[0]) 1071#endif 1072#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1073 defined(TARGET_IS_TM4C129_RA2 ) 1074#define ROM_EMACAddrGet \ 1075 ((void (*)(uint32_t ui32Base, uint32_t ui32Index, uint8_t * pui8MACAddr)) \ 1076 ROM_EMACTABLE[1]) 1077#endif 1078#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1079 defined(TARGET_IS_TM4C129_RA2 ) 1080#define ROM_EMACAddrSet \ 1081 ((void (*)(uint32_t ui32Base, uint32_t ui32Index, \ 1082 const uint8_t* pui8MACAddr))ROM_EMACTABLE[2]) 1083#endif 1084#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1085 defined(TARGET_IS_TM4C129_RA2 ) 1086#define ROM_EMACConfigGet \ 1087 ((void (*)(uint32_t ui32Base, uint32_t * pui32Config, \ 1088 uint32_t * pui32Mode, uint32_t * pui32RxMaxFrameSize)) \ 1089 ROM_EMACTABLE[3]) 1090#endif 1091#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1092 defined(TARGET_IS_TM4C129_RA2 ) 1093#define ROM_EMACConfigSet \ 1094 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, uint32_t ui32ModeFlags, \ 1095 uint32_t ui32RxMaxFrameSize))ROM_EMACTABLE[4]) 1096#endif 1097#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1098 defined(TARGET_IS_TM4C129_RA2 ) 1099#define ROM_EMACDMAStateGet ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[5]) 1100#endif 1101#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1102 defined(TARGET_IS_TM4C129_RA2 ) 1103#define ROM_EMACFrameFilterGet \ 1104 ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[6]) 1105#endif 1106#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1107 defined(TARGET_IS_TM4C129_RA2 ) 1108#define ROM_EMACFrameFilterSet \ 1109 ((void (*)(uint32_t ui32Base, uint32_t ui32FilterOpts))ROM_EMACTABLE[7]) 1110#endif 1111#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1112#define ROM_EMACInit \ 1113 ((void (*)(uint32_t ui32Base, uint32_t ui32SysClk, uint32_t ui32BusConfig, \ 1114 uint32_t ui32RxBurst, uint32_t ui32TxBurst, \ 1115 uint32_t ui32DescSkipSize))ROM_EMACTABLE[8]) 1116#endif 1117#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1118 defined(TARGET_IS_TM4C129_RA2 ) 1119#define ROM_EMACIntClear \ 1120 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_EMACTABLE[9]) 1121#endif 1122#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1123 defined(TARGET_IS_TM4C129_RA2 ) 1124#define ROM_EMACIntDisable \ 1125 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_EMACTABLE[10]) 1126#endif 1127#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1128 defined(TARGET_IS_TM4C129_RA2 ) 1129#define ROM_EMACIntEnable \ 1130 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_EMACTABLE[11]) 1131#endif 1132#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1133#define ROM_EMACPHYConfigSet \ 1134 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_EMACTABLE[12]) 1135#endif 1136#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1137 defined(TARGET_IS_TM4C129_RA2 ) 1138#define ROM_EMACPHYPowerOff \ 1139 ((void (*)(uint32_t ui32Base, uint8_t ui8PhyAddr))ROM_EMACTABLE[13]) 1140#endif 1141#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1142 defined(TARGET_IS_TM4C129_RA2 ) 1143#define ROM_EMACPHYPowerOn \ 1144 ((void (*)(uint32_t ui32Base, uint8_t ui8PhyAddr))ROM_EMACTABLE[14]) 1145#endif 1146#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1147 defined(TARGET_IS_TM4C129_RA2 ) 1148#define ROM_EMACPHYRead \ 1149 ((uint16_t(*)(uint32_t ui32Base, uint8_t ui8PhyAddr, \ 1150 uint8_t ui8RegAddr))ROM_EMACTABLE[15]) 1151#endif 1152#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1153 defined(TARGET_IS_TM4C129_RA2 ) 1154#define ROM_EMACPHYWrite \ 1155 ((void (*)(uint32_t ui32Base, uint8_t ui8PhyAddr, uint8_t ui8RegAddr, \ 1156 uint16_t ui16Data))ROM_EMACTABLE[16]) 1157#endif 1158#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1159 defined(TARGET_IS_TM4C129_RA2 ) 1160#define ROM_EMACReset ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[17]) 1161#endif 1162#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1163 defined(TARGET_IS_TM4C129_RA2 ) 1164#define ROM_EMACRxDisable ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[18]) 1165#endif 1166#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1167 defined(TARGET_IS_TM4C129_RA2 ) 1168#define ROM_EMACRxDMACurrentBufferGet \ 1169 ((uint8_t * (*)(uint32_t ui32Base)) ROM_EMACTABLE[19]) 1170#endif 1171#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1172 defined(TARGET_IS_TM4C129_RA2 ) 1173#define ROM_EMACRxDMACurrentDescriptorGet \ 1174 ((tEMACDMADescriptor * (*)(uint32_t ui32Base)) ROM_EMACTABLE[20]) 1175#endif 1176#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1177 defined(TARGET_IS_TM4C129_RA2 ) 1178#define ROM_EMACRxDMADescriptorListGet \ 1179 ((tEMACDMADescriptor * (*)(uint32_t ui32Base)) ROM_EMACTABLE[21]) 1180#endif 1181#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1182 defined(TARGET_IS_TM4C129_RA2 ) 1183#define ROM_EMACRxDMADescriptorListSet \ 1184 ((void (*)(uint32_t ui32Base, tEMACDMADescriptor * pDescriptor)) \ 1185 ROM_EMACTABLE[22]) 1186#endif 1187#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1188 defined(TARGET_IS_TM4C129_RA2 ) 1189#define ROM_EMACRxDMAPollDemand ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[23]) 1190#endif 1191#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1192 defined(TARGET_IS_TM4C129_RA2 ) 1193#define ROM_EMACRxEnable ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[24]) 1194#endif 1195#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1196 defined(TARGET_IS_TM4C129_RA2 ) 1197#define ROM_EMACRxWatchdogTimerSet \ 1198 ((void (*)(uint32_t ui32Base, uint8_t ui8Timeout))ROM_EMACTABLE[25]) 1199#endif 1200#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1201 defined(TARGET_IS_TM4C129_RA2 ) 1202#define ROM_EMACStatusGet ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[26]) 1203#endif 1204#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1205 defined(TARGET_IS_TM4C129_RA2 ) 1206#define ROM_EMACTxDisable ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[27]) 1207#endif 1208#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1209 defined(TARGET_IS_TM4C129_RA2 ) 1210#define ROM_EMACTxDMACurrentBufferGet \ 1211 ((uint8_t * (*)(uint32_t ui32Base)) ROM_EMACTABLE[28]) 1212#endif 1213#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1214 defined(TARGET_IS_TM4C129_RA2 ) 1215#define ROM_EMACTxDMACurrentDescriptorGet \ 1216 ((tEMACDMADescriptor * (*)(uint32_t ui32Base)) ROM_EMACTABLE[29]) 1217#endif 1218#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1219 defined(TARGET_IS_TM4C129_RA2 ) 1220#define ROM_EMACTxDMADescriptorListGet \ 1221 ((tEMACDMADescriptor * (*)(uint32_t ui32Base)) ROM_EMACTABLE[30]) 1222#endif 1223#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1224 defined(TARGET_IS_TM4C129_RA2 ) 1225#define ROM_EMACTxDMADescriptorListSet \ 1226 ((void (*)(uint32_t ui32Base, tEMACDMADescriptor * pDescriptor)) \ 1227 ROM_EMACTABLE[31]) 1228#endif 1229#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1230 defined(TARGET_IS_TM4C129_RA2 ) 1231#define ROM_EMACTxDMAPollDemand ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[32]) 1232#endif 1233#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1234 defined(TARGET_IS_TM4C129_RA2 ) 1235#define ROM_EMACTxEnable ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[33]) 1236#endif 1237#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1238 defined(TARGET_IS_TM4C129_RA2 ) 1239#define ROM_EMACTxFlush ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[34]) 1240#endif 1241#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1242#define ROM_EMACAddrFilterGet \ 1243 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Index))ROM_EMACTABLE[35]) 1244#endif 1245#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1246#define ROM_EMACAddrFilterSet \ 1247 ((void (*)(uint32_t ui32Base, uint32_t ui32Index, \ 1248 uint32_t ui32Config))ROM_EMACTABLE[36]) 1249#endif 1250#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1251#define ROM_EMACHashFilterBitCalculate \ 1252 ((uint32_t(*)(uint8_t * pui8MACAddr)) ROM_EMACTABLE[37]) 1253#endif 1254#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1255#define ROM_EMACHashFilterGet \ 1256 ((void (*)(uint32_t ui32Base, uint32_t * pui32HashHi, \ 1257 uint32_t * pui32HashLo)) ROM_EMACTABLE[38]) 1258#endif 1259#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1260 defined(TARGET_IS_TM4C129_RA2 ) 1261#define ROM_EMACHashFilterSet \ 1262 ((void (*)(uint32_t ui32Base, uint32_t ui32HashHi, \ 1263 uint32_t ui32HashLo))ROM_EMACTABLE[39]) 1264#endif 1265#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1266#define ROM_EMACNumAddrGet ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[40]) 1267#endif 1268#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1269#define ROM_EMACPHYExtendedRead \ 1270 ((uint16_t(*)(uint32_t ui32Base, uint8_t ui8PhyAddr, \ 1271 uint16_t ui16RegAddr))ROM_EMACTABLE[41]) 1272#endif 1273#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1274#define ROM_EMACPHYExtendedWrite \ 1275 ((void (*)(uint32_t ui32Base, uint8_t ui8PhyAddr, uint16_t ui16RegAddr, \ 1276 uint16_t ui16Data))ROM_EMACTABLE[42]) 1277#endif 1278#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1279#define ROM_EMACPowerManagementControlGet \ 1280 ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[43]) 1281#endif 1282#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1283#define ROM_EMACPowerManagementControlSet \ 1284 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_EMACTABLE[44]) 1285#endif 1286#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1287#define ROM_EMACPowerManagementStatusGet \ 1288 ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[45]) 1289#endif 1290#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1291#define ROM_EMACRemoteWakeUpFrameFilterGet \ 1292 ((void (*)(uint32_t ui32Base, tEMACWakeUpFrameFilter * pFilter)) \ 1293 ROM_EMACTABLE[46]) 1294#endif 1295#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1296#define ROM_EMACRemoteWakeUpFrameFilterSet \ 1297 ((void (*)(uint32_t ui32Base, \ 1298 const tEMACWakeUpFrameFilter* pFilter))ROM_EMACTABLE[47]) 1299#endif 1300#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1301#define ROM_EMACTimestampAddendSet \ 1302 ((void (*)(uint32_t ui32Base, uint32_t ui32Seconds))ROM_EMACTABLE[48]) 1303#endif 1304#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1305#define ROM_EMACTimestampConfigGet \ 1306 ((uint32_t(*)(uint32_t ui32Base, uint32_t * pui32SubSecondInc)) \ 1307 ROM_EMACTABLE[49]) 1308#endif 1309#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1310#define ROM_EMACTimestampConfigSet \ 1311 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 1312 uint32_t ui32SubSecondInc))ROM_EMACTABLE[50]) 1313#endif 1314#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1315#define ROM_EMACTimestampDisable \ 1316 ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[51]) 1317#endif 1318#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1319#define ROM_EMACTimestampEnable ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[52]) 1320#endif 1321#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1322#define ROM_EMACTimestampIntStatus \ 1323 ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[53]) 1324#endif 1325#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1326#define ROM_EMACTimestampPPSCommand \ 1327 ((void (*)(uint32_t ui32Base, uint8_t ui8Cmd))ROM_EMACTABLE[54]) 1328#endif 1329#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1330#define ROM_EMACTimestampPPSCommandModeSet \ 1331 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_EMACTABLE[55]) 1332#endif 1333#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1334#define ROM_EMACTimestampPPSPeriodSet \ 1335 ((void (*)(uint32_t ui32Base, uint32_t ui32Period, \ 1336 uint32_t ui32Width))ROM_EMACTABLE[56]) 1337#endif 1338#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1339#define ROM_EMACTimestampPPSSimpleModeSet \ 1340 ((void (*)(uint32_t ui32Base, uint32_t ui32FreqConfig))ROM_EMACTABLE[57]) 1341#endif 1342#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1343#define ROM_EMACTimestampSysTimeGet \ 1344 ((void (*)(uint32_t ui32Base, uint32_t * pui32Seconds, \ 1345 uint32_t * pui32SubSeconds)) ROM_EMACTABLE[58]) 1346#endif 1347#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1348#define ROM_EMACTimestampSysTimeSet \ 1349 ((void (*)(uint32_t ui32Base, uint32_t ui32Seconds, \ 1350 uint32_t ui32SubSeconds))ROM_EMACTABLE[59]) 1351#endif 1352#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1353#define ROM_EMACTimestampSysTimeUpdate \ 1354 ((void (*)(uint32_t ui32Base, uint32_t ui32Seconds, \ 1355 uint32_t ui32SubSeconds, bool bInc))ROM_EMACTABLE[60]) 1356#endif 1357#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1358#define ROM_EMACTimestampTargetIntDisable \ 1359 ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[61]) 1360#endif 1361#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1362#define ROM_EMACTimestampTargetIntEnable \ 1363 ((void (*)(uint32_t ui32Base))ROM_EMACTABLE[62]) 1364#endif 1365#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1366#define ROM_EMACTimestampTargetSet \ 1367 ((void (*)(uint32_t ui32Base, uint32_t ui32Seconds, \ 1368 uint32_t ui32Nanoseconds))ROM_EMACTABLE[63]) 1369#endif 1370#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1371#define ROM_EMACVLANHashFilterBitCalculate \ 1372 ((uint32_t(*)(uint16_t ui16Tag))ROM_EMACTABLE[64]) 1373#endif 1374#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1375#define ROM_EMACVLANHashFilterGet \ 1376 ((uint32_t(*)(uint32_t ui32Base))ROM_EMACTABLE[65]) 1377#endif 1378#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1379#define ROM_EMACVLANHashFilterSet \ 1380 ((void (*)(uint32_t ui32Base, uint32_t ui32Hash))ROM_EMACTABLE[66]) 1381#endif 1382#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1383#define ROM_EMACVLANRxConfigGet \ 1384 ((uint32_t(*)(uint32_t ui32Base, uint16_t * pui16Tag)) ROM_EMACTABLE[67]) 1385#endif 1386#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1387#define ROM_EMACVLANRxConfigSet \ 1388 ((void (*)(uint32_t ui32Base, uint16_t ui16Tag, \ 1389 uint32_t ui32Config))ROM_EMACTABLE[68]) 1390#endif 1391#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1392#define ROM_EMACVLANTxConfigGet \ 1393 ((uint32_t(*)(uint32_t ui32Base, uint16_t * pui16Tag)) ROM_EMACTABLE[69]) 1394#endif 1395#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1396#define ROM_EMACVLANTxConfigSet \ 1397 ((void (*)(uint32_t ui32Base, uint16_t ui16Tag, \ 1398 uint32_t ui32Config))ROM_EMACTABLE[70]) 1399#endif 1400#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1401#define ROM_UpdateEMAC ((void (*)(uint32_t ui32Clock))ROM_EMACTABLE[71]) 1402#endif 1403 1404//***************************************************************************** 1405// 1406// Macros for calling ROM functions in the Flash API. 1407// 1408//***************************************************************************** 1409#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1410 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1411 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1412 defined(TARGET_IS_TM4C129_RA2 ) 1413#define ROM_FlashProgram \ 1414 ((int32_t(*)(uint32_t * pui32Data, uint32_t ui32Address, \ 1415 uint32_t ui32Count)) ROM_FLASHTABLE[0]) 1416#endif 1417#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1418 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1419 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1420 defined(TARGET_IS_TM4C129_RA2 ) 1421#define ROM_FlashErase ((int32_t(*)(uint32_t ui32Address))ROM_FLASHTABLE[3]) 1422#endif 1423#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1424 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1425 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1426 defined(TARGET_IS_TM4C129_RA2 ) 1427#define ROM_FlashProtectGet \ 1428 ((tFlashProtection(*)(uint32_t ui32Address))ROM_FLASHTABLE[4]) 1429#endif 1430#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1431 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1432 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1433 defined(TARGET_IS_TM4C129_RA2 ) 1434#define ROM_FlashProtectSet \ 1435 ((int32_t(*)(uint32_t ui32Address, \ 1436 tFlashProtection eProtect))ROM_FLASHTABLE[5]) 1437#endif 1438#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1439 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1440 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1441 defined(TARGET_IS_TM4C129_RA2 ) 1442#define ROM_FlashProtectSave ((int32_t(*)(void))ROM_FLASHTABLE[6]) 1443#endif 1444#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1445 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1446 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1447 defined(TARGET_IS_TM4C129_RA2 ) 1448#define ROM_FlashUserGet \ 1449 ((int32_t(*)(uint32_t * pui32User0, uint32_t * pui32User1)) \ 1450 ROM_FLASHTABLE[7]) 1451#endif 1452#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1453 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1454 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1455 defined(TARGET_IS_TM4C129_RA2 ) 1456#define ROM_FlashUserSet \ 1457 ((int32_t(*)(uint32_t ui32User0, uint32_t ui32User1))ROM_FLASHTABLE[8]) 1458#endif 1459#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1460 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1461 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1462 defined(TARGET_IS_TM4C129_RA2 ) 1463#define ROM_FlashUserSave ((int32_t(*)(void))ROM_FLASHTABLE[9]) 1464#endif 1465#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1466 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1467 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1468 defined(TARGET_IS_TM4C129_RA2 ) 1469#define ROM_FlashIntEnable ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[10]) 1470#endif 1471#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1472 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1473 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1474 defined(TARGET_IS_TM4C129_RA2 ) 1475#define ROM_FlashIntDisable \ 1476 ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[11]) 1477#endif 1478#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1479 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1480 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1481 defined(TARGET_IS_TM4C129_RA2 ) 1482#define ROM_FlashIntStatus ((uint32_t(*)(bool bMasked))ROM_FLASHTABLE[12]) 1483#endif 1484#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1485 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1486 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1487 defined(TARGET_IS_TM4C129_RA2 ) 1488#define ROM_FlashIntClear ((void (*)(uint32_t ui32IntFlags))ROM_FLASHTABLE[13]) 1489#endif 1490 1491//***************************************************************************** 1492// 1493// Macros for calling ROM functions in the FPU API. 1494// 1495//***************************************************************************** 1496#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1497 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1498 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1499 defined(TARGET_IS_TM4C129_RA2 ) 1500#define ROM_FPUEnable ((void (*)(void))ROM_FPUTABLE[0]) 1501#endif 1502#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1503 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1504 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1505 defined(TARGET_IS_TM4C129_RA2 ) 1506#define ROM_FPUDisable ((void (*)(void))ROM_FPUTABLE[1]) 1507#endif 1508#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1509 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1510 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1511 defined(TARGET_IS_TM4C129_RA2 ) 1512#define ROM_FPUFlushToZeroModeSet ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[2]) 1513#endif 1514#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1515 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1516 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1517 defined(TARGET_IS_TM4C129_RA2 ) 1518#define ROM_FPUHalfPrecisionModeSet \ 1519 ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[3]) 1520#endif 1521#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1522 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1523 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1524 defined(TARGET_IS_TM4C129_RA2 ) 1525#define ROM_FPULazyStackingEnable ((void (*)(void))ROM_FPUTABLE[4]) 1526#endif 1527#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1528 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1529 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1530 defined(TARGET_IS_TM4C129_RA2 ) 1531#define ROM_FPUNaNModeSet ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[5]) 1532#endif 1533#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1534 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1535 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1536 defined(TARGET_IS_TM4C129_RA2 ) 1537#define ROM_FPURoundingModeSet ((void (*)(uint32_t ui32Mode))ROM_FPUTABLE[6]) 1538#endif 1539#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1540 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1541 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1542 defined(TARGET_IS_TM4C129_RA2 ) 1543#define ROM_FPUStackingDisable ((void (*)(void))ROM_FPUTABLE[7]) 1544#endif 1545#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1546 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1547 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1548 defined(TARGET_IS_TM4C129_RA2 ) 1549#define ROM_FPUStackingEnable ((void (*)(void))ROM_FPUTABLE[8]) 1550#endif 1551 1552//***************************************************************************** 1553// 1554// Macros for calling ROM functions in the GPIO API. 1555// 1556//***************************************************************************** 1557#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1558 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1559 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1560 defined(TARGET_IS_TM4C129_RA2 ) 1561#define ROM_GPIOPinWrite \ 1562 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins, \ 1563 uint8_t ui8Val))ROM_GPIOTABLE[0]) 1564#endif 1565#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1566 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1567 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1568 defined(TARGET_IS_TM4C129_RA2 ) 1569#define ROM_GPIODirModeSet \ 1570 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins, \ 1571 uint32_t ui32PinIO))ROM_GPIOTABLE[1]) 1572#endif 1573#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1574 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1575 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1576 defined(TARGET_IS_TM4C129_RA2 ) 1577#define ROM_GPIODirModeGet \ 1578 ((uint32_t(*)(uint32_t ui32Port, uint8_t ui8Pin))ROM_GPIOTABLE[2]) 1579#endif 1580#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1581 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1582 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1583 defined(TARGET_IS_TM4C129_RA2 ) 1584#define ROM_GPIOIntTypeSet \ 1585 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins, \ 1586 uint32_t ui32IntType))ROM_GPIOTABLE[3]) 1587#endif 1588#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1589 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1590 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1591 defined(TARGET_IS_TM4C129_RA2 ) 1592#define ROM_GPIOIntTypeGet \ 1593 ((uint32_t(*)(uint32_t ui32Port, uint8_t ui8Pin))ROM_GPIOTABLE[4]) 1594#endif 1595#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1596 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 1597#define ROM_GPIOPadConfigSet \ 1598 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32Strength, \ 1599 uint32_t ui32PadType))ROM_GPIOTABLE[5]) 1600#endif 1601#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1602 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1603 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1604 defined(TARGET_IS_TM4C129_RA2 ) 1605#define ROM_GPIOPadConfigGet \ 1606 ((void (*)(uint32_t ui32Port, uint8_t ui8Pin, uint32_t * pui32Strength, \ 1607 uint32_t * pui32PadType)) ROM_GPIOTABLE[6]) 1608#endif 1609#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1610 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1611 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1612 defined(TARGET_IS_TM4C129_RA2 ) 1613#define ROM_GPIOPinRead \ 1614 ((int32_t(*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[11]) 1615#endif 1616#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1617 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 1618#define ROM_GPIOPinTypeCAN \ 1619 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[12]) 1620#endif 1621#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1622 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1623 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1624 defined(TARGET_IS_TM4C129_RA2 ) 1625#define ROM_GPIOPinTypeComparator \ 1626 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[13]) 1627#endif 1628#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1629 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1630 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1631 defined(TARGET_IS_TM4C129_RA2 ) 1632#define ROM_GPIOPinTypeGPIOInput \ 1633 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[14]) 1634#endif 1635#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1636 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1637 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1638 defined(TARGET_IS_TM4C129_RA2 ) 1639#define ROM_GPIOPinTypeGPIOOutput \ 1640 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[15]) 1641#endif 1642#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1643 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1644 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1645 defined(TARGET_IS_TM4C129_RA2 ) 1646#define ROM_GPIOPinTypeI2C \ 1647 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[16]) 1648#endif 1649#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1650 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1651 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1652 defined(TARGET_IS_TM4C129_RA2 ) 1653#define ROM_GPIOPinTypePWM \ 1654 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[17]) 1655#endif 1656#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1657 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1658 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1659 defined(TARGET_IS_TM4C129_RA2 ) 1660#define ROM_GPIOPinTypeQEI \ 1661 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[18]) 1662#endif 1663#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1664 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1665 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1666 defined(TARGET_IS_TM4C129_RA2 ) 1667#define ROM_GPIOPinTypeSSI \ 1668 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[19]) 1669#endif 1670#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1671 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1672 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1673 defined(TARGET_IS_TM4C129_RA2 ) 1674#define ROM_GPIOPinTypeTimer \ 1675 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[20]) 1676#endif 1677#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1678 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1679 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1680 defined(TARGET_IS_TM4C129_RA2 ) 1681#define ROM_GPIOPinTypeUART \ 1682 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[21]) 1683#endif 1684#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1685 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1686 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1687 defined(TARGET_IS_TM4C129_RA2 ) 1688#define ROM_GPIOPinTypeGPIOOutputOD \ 1689 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[22]) 1690#endif 1691#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1692 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1693 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1694 defined(TARGET_IS_TM4C129_RA2 ) 1695#define ROM_GPIOPinTypeADC \ 1696 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[23]) 1697#endif 1698#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1699 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1700 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1701 defined(TARGET_IS_TM4C129_RA2 ) 1702#define ROM_GPIOPinTypeUSBDigital \ 1703 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[24]) 1704#endif 1705#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1706 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1707 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1708 defined(TARGET_IS_TM4C129_RA2 ) 1709#define ROM_GPIOPinConfigure \ 1710 ((void (*)(uint32_t ui32PinConfig))ROM_GPIOTABLE[26]) 1711#endif 1712#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1713 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1714 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1715 defined(TARGET_IS_TM4C129_RA2 ) 1716#define ROM_GPIOPinTypeUSBAnalog \ 1717 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[28]) 1718#endif 1719#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1720 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1721 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1722 defined(TARGET_IS_TM4C129_RA2 ) 1723#define ROM_GPIODMATriggerEnable \ 1724 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[31]) 1725#endif 1726#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1727 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1728 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1729 defined(TARGET_IS_TM4C129_RA2 ) 1730#define ROM_GPIODMATriggerDisable \ 1731 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[32]) 1732#endif 1733#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1734 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1735 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1736 defined(TARGET_IS_TM4C129_RA2 ) 1737#define ROM_GPIOADCTriggerEnable \ 1738 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[33]) 1739#endif 1740#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1741 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1742 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1743 defined(TARGET_IS_TM4C129_RA2 ) 1744#define ROM_GPIOADCTriggerDisable \ 1745 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[34]) 1746#endif 1747#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 1748 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 1749 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1750#define ROM_GPIOPinTypeI2CSCL \ 1751 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[39]) 1752#endif 1753#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1754 defined(TARGET_IS_TM4C129_RA2 ) 1755#define ROM_GPIOPinTypeOneWire \ 1756 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[44]) 1757#endif 1758#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1759 defined(TARGET_IS_TM4C129_RA2 ) 1760#define ROM_GPIOPinTypeWakeHigh \ 1761 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[48]) 1762#endif 1763#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1764 defined(TARGET_IS_TM4C129_RA2 ) 1765#define ROM_GPIOPinTypeWakeLow \ 1766 ((void (*)(uint32_t ui32Port, uint8_t ui8Pins))ROM_GPIOTABLE[49]) 1767#endif 1768#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1769 defined(TARGET_IS_TM4C129_RA2 ) 1770#define ROM_GPIOIntClear \ 1771 ((void (*)(uint32_t ui32Port, uint32_t ui32IntFlags))ROM_GPIOTABLE[51]) 1772#endif 1773#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1774 defined(TARGET_IS_TM4C129_RA2 ) 1775#define ROM_GPIOIntDisable \ 1776 ((void (*)(uint32_t ui32Port, uint32_t ui32IntFlags))ROM_GPIOTABLE[52]) 1777#endif 1778#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1779 defined(TARGET_IS_TM4C129_RA2 ) 1780#define ROM_GPIOIntEnable \ 1781 ((void (*)(uint32_t ui32Port, uint32_t ui32IntFlags))ROM_GPIOTABLE[53]) 1782#endif 1783#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1784 defined(TARGET_IS_TM4C129_RA2 ) 1785#define ROM_GPIOIntStatus \ 1786 ((uint32_t(*)(uint32_t ui32Port, bool bMasked))ROM_GPIOTABLE[54]) 1787#endif 1788 1789//***************************************************************************** 1790// 1791// Macros for calling ROM functions in the Hibernate API. 1792// 1793//***************************************************************************** 1794#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1795 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1796 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1797 defined(TARGET_IS_TM4C129_RA2 ) 1798#define ROM_HibernateIntClear \ 1799 ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[0]) 1800#endif 1801#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1802 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1803 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1804 defined(TARGET_IS_TM4C129_RA2 ) 1805#define ROM_HibernateEnableExpClk \ 1806 ((void (*)(uint32_t ui32HibClk))ROM_HIBERNATETABLE[1]) 1807#endif 1808#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1809 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1810 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1811 defined(TARGET_IS_TM4C129_RA2 ) 1812#define ROM_HibernateDisable ((void (*)(void))ROM_HIBERNATETABLE[2]) 1813#endif 1814#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1815 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1816 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1817 defined(TARGET_IS_TM4C129_RA2 ) 1818#define ROM_HibernateRTCEnable ((void (*)(void))ROM_HIBERNATETABLE[4]) 1819#endif 1820#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1821 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1822 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1823 defined(TARGET_IS_TM4C129_RA2 ) 1824#define ROM_HibernateRTCDisable ((void (*)(void))ROM_HIBERNATETABLE[5]) 1825#endif 1826#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1827 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1828 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1829 defined(TARGET_IS_TM4C129_RA2 ) 1830#define ROM_HibernateWakeSet \ 1831 ((void (*)(uint32_t ui32WakeFlags))ROM_HIBERNATETABLE[6]) 1832#endif 1833#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1834 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1835 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1836 defined(TARGET_IS_TM4C129_RA2 ) 1837#define ROM_HibernateWakeGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[7]) 1838#endif 1839#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1840 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1841 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1842 defined(TARGET_IS_TM4C129_RA2 ) 1843#define ROM_HibernateLowBatSet \ 1844 ((void (*)(uint32_t ui32LowBatFlags))ROM_HIBERNATETABLE[8]) 1845#endif 1846#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1847 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1848 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1849 defined(TARGET_IS_TM4C129_RA2 ) 1850#define ROM_HibernateLowBatGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[9]) 1851#endif 1852#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1853 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1854 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1855 defined(TARGET_IS_TM4C129_RA2 ) 1856#define ROM_HibernateRTCSet \ 1857 ((void (*)(uint32_t ui32RTCValue))ROM_HIBERNATETABLE[10]) 1858#endif 1859#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1860 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1861 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1862 defined(TARGET_IS_TM4C129_RA2 ) 1863#define ROM_HibernateRTCGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[11]) 1864#endif 1865#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1866 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1867 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1868 defined(TARGET_IS_TM4C129_RA2 ) 1869#define ROM_HibernateRTCTrimSet \ 1870 ((void (*)(uint32_t ui32Trim))ROM_HIBERNATETABLE[16]) 1871#endif 1872#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1873 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1874 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1875 defined(TARGET_IS_TM4C129_RA2 ) 1876#define ROM_HibernateRTCTrimGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[17]) 1877#endif 1878#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1879 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1880 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1881 defined(TARGET_IS_TM4C129_RA2 ) 1882#define ROM_HibernateDataSet \ 1883 ((void (*)(uint32_t * pui32Data, uint32_t ui32Count)) \ 1884 ROM_HIBERNATETABLE[18]) 1885#endif 1886#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1887 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1888 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1889 defined(TARGET_IS_TM4C129_RA2 ) 1890#define ROM_HibernateDataGet \ 1891 ((void (*)(uint32_t * pui32Data, uint32_t ui32Count)) \ 1892 ROM_HIBERNATETABLE[19]) 1893#endif 1894#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1895 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1896 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1897 defined(TARGET_IS_TM4C129_RA2 ) 1898#define ROM_HibernateRequest ((void (*)(void))ROM_HIBERNATETABLE[20]) 1899#endif 1900#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1901 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1902 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1903 defined(TARGET_IS_TM4C129_RA2 ) 1904#define ROM_HibernateIntEnable \ 1905 ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[21]) 1906#endif 1907#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1908 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1909 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1910 defined(TARGET_IS_TM4C129_RA2 ) 1911#define ROM_HibernateIntDisable \ 1912 ((void (*)(uint32_t ui32IntFlags))ROM_HIBERNATETABLE[22]) 1913#endif 1914#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1915 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1916 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1917 defined(TARGET_IS_TM4C129_RA2 ) 1918#define ROM_HibernateIntStatus \ 1919 ((uint32_t(*)(bool bMasked))ROM_HIBERNATETABLE[23]) 1920#endif 1921#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1922 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1923 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1924 defined(TARGET_IS_TM4C129_RA2 ) 1925#define ROM_HibernateIsActive ((uint32_t(*)(void))ROM_HIBERNATETABLE[24]) 1926#endif 1927#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1928 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1929 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1930 defined(TARGET_IS_TM4C129_RA2 ) 1931#define ROM_HibernateRTCSSGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[27]) 1932#endif 1933#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1934 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1935 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1936 defined(TARGET_IS_TM4C129_RA2 ) 1937#define ROM_HibernateClockConfig \ 1938 ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[28]) 1939#endif 1940#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1941 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1942 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1943 defined(TARGET_IS_TM4C129_RA2 ) 1944#define ROM_HibernateBatCheckStart ((void (*)(void))ROM_HIBERNATETABLE[29]) 1945#endif 1946#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 1947 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 1948 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1949 defined(TARGET_IS_TM4C129_RA2 ) 1950#define ROM_HibernateBatCheckDone ((uint32_t(*)(void))ROM_HIBERNATETABLE[30]) 1951#endif 1952#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1953 defined(TARGET_IS_TM4C129_RA2 ) 1954#define ROM_HibernateGPIORetentionEnable \ 1955 ((void (*)(void))ROM_HIBERNATETABLE[31]) 1956#endif 1957#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1958 defined(TARGET_IS_TM4C129_RA2 ) 1959#define ROM_HibernateGPIORetentionDisable \ 1960 ((void (*)(void))ROM_HIBERNATETABLE[32]) 1961#endif 1962#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1963 defined(TARGET_IS_TM4C129_RA2 ) 1964#define ROM_HibernateGPIORetentionGet ((bool (*)(void))ROM_HIBERNATETABLE[33]) 1965#endif 1966#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1967 defined(TARGET_IS_TM4C129_RA2 ) 1968#define ROM_HibernateCounterMode \ 1969 ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[34]) 1970#endif 1971#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 1972 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 1973#define ROM_HibernateCalendarSet \ 1974 ((void (*)(struct tm * psTime)) ROM_HIBERNATETABLE[35]) 1975#endif 1976#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1977 defined(TARGET_IS_TM4C129_RA2 ) 1978#define ROM_HibernateCalendarGet \ 1979 ((int (*)(struct tm * psTime)) ROM_HIBERNATETABLE[36]) 1980#endif 1981#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1982 defined(TARGET_IS_TM4C129_RA2 ) 1983#define ROM_HibernateCalendarMatchSet \ 1984 ((void (*)(uint32_t ui32Index, struct tm * psTime)) ROM_HIBERNATETABLE[37]) 1985#endif 1986#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1987 defined(TARGET_IS_TM4C129_RA2 ) 1988#define ROM_HibernateCalendarMatchGet \ 1989 ((void (*)(uint32_t ui32Index, struct tm * psTime)) ROM_HIBERNATETABLE[38]) 1990#endif 1991#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1992 defined(TARGET_IS_TM4C129_RA2 ) 1993#define ROM_HibernateTamperDisable ((void (*)(void))ROM_HIBERNATETABLE[39]) 1994#endif 1995#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 1996 defined(TARGET_IS_TM4C129_RA2 ) 1997#define ROM_HibernateTamperEnable ((void (*)(void))ROM_HIBERNATETABLE[40]) 1998#endif 1999#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2000 defined(TARGET_IS_TM4C129_RA2 ) 2001#define ROM_HibernateTamperEventsClear ((void (*)(void))ROM_HIBERNATETABLE[41]) 2002#endif 2003#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2004 defined(TARGET_IS_TM4C129_RA2 ) 2005#define ROM_HibernateTamperEventsConfig \ 2006 ((void (*)(uint32_t ui32Config))ROM_HIBERNATETABLE[42]) 2007#endif 2008#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2009 defined(TARGET_IS_TM4C129_RA2 ) 2010#define ROM_HibernateTamperEventsGet \ 2011 ((bool (*)(uint32_t ui32Index, uint32_t * pui32RTC, \ 2012 uint32_t * pui32Event)) ROM_HIBERNATETABLE[43]) 2013#endif 2014#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2015 defined(TARGET_IS_TM4C129_RA2 ) 2016#define ROM_HibernateTamperExtOscValid ((bool (*)(void))ROM_HIBERNATETABLE[44]) 2017#endif 2018#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2019 defined(TARGET_IS_TM4C129_RA2 ) 2020#define ROM_HibernateTamperExtOscRecover \ 2021 ((void (*)(void))ROM_HIBERNATETABLE[45]) 2022#endif 2023#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2024 defined(TARGET_IS_TM4C129_RA2 ) 2025#define ROM_HibernateTamperIODisable \ 2026 ((void (*)(uint32_t ui32Input))ROM_HIBERNATETABLE[46]) 2027#endif 2028#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2029 defined(TARGET_IS_TM4C129_RA2 ) 2030#define ROM_HibernateTamperIOEnable \ 2031 ((void (*)(uint32_t ui32Input, uint32_t ui32Config))ROM_HIBERNATETABLE[47]) 2032#endif 2033#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2034 defined(TARGET_IS_TM4C129_RA2 ) 2035#define ROM_HibernateTamperStatusGet ((uint32_t(*)(void))ROM_HIBERNATETABLE[48]) 2036#endif 2037#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2038#define ROM_HibernateRTCMatchGet \ 2039 ((uint32_t(*)(uint32_t ui32Match))ROM_HIBERNATETABLE[49]) 2040#endif 2041#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2042#define ROM_HibernateRTCMatchSet \ 2043 ((void (*)(uint32_t ui32Match, uint32_t ui32Value))ROM_HIBERNATETABLE[50]) 2044#endif 2045#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2046 defined(TARGET_IS_TM4C129_RA2 ) 2047#define ROM_HibernateRTCSSMatchGet \ 2048 ((uint32_t(*)(uint32_t ui32Match))ROM_HIBERNATETABLE[51]) 2049#endif 2050#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2051#define ROM_HibernateRTCSSMatchSet \ 2052 ((void (*)(uint32_t ui32Match, uint32_t ui32Value))ROM_HIBERNATETABLE[52]) 2053#endif 2054 2055//***************************************************************************** 2056// 2057// Macros for calling ROM functions in the I2C API. 2058// 2059//***************************************************************************** 2060#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2061 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2062 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2063 defined(TARGET_IS_TM4C129_RA2 ) 2064#define ROM_I2CMasterDataPut \ 2065 ((void (*)(uint32_t ui32Base, uint8_t ui8Data))ROM_I2CTABLE[0]) 2066#endif 2067#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2068 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2069 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2070 defined(TARGET_IS_TM4C129_RA2 ) 2071#define ROM_I2CMasterInitExpClk \ 2072 ((void (*)(uint32_t ui32Base, uint32_t ui32I2CClk, \ 2073 bool bFast))ROM_I2CTABLE[1]) 2074#endif 2075#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2076#define ROM_I2CSlaveInit \ 2077 ((void (*)(uint32_t ui32Base, uint8_t ui8SlaveAddr))ROM_I2CTABLE[2]) 2078#endif 2079#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2080 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2081 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2082 defined(TARGET_IS_TM4C129_RA2 ) 2083#define ROM_I2CMasterEnable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[3]) 2084#endif 2085#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2086#define ROM_I2CSlaveEnable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[4]) 2087#endif 2088#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2089 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2090 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2091 defined(TARGET_IS_TM4C129_RA2 ) 2092#define ROM_I2CMasterDisable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[5]) 2093#endif 2094#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2095#define ROM_I2CSlaveDisable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[6]) 2096#endif 2097#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2098 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2099 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2100 defined(TARGET_IS_TM4C129_RA2 ) 2101#define ROM_I2CMasterIntEnable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[7]) 2102#endif 2103#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2104#define ROM_I2CSlaveIntEnable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[8]) 2105#endif 2106#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2107 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2108 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2109 defined(TARGET_IS_TM4C129_RA2 ) 2110#define ROM_I2CMasterIntDisable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[9]) 2111#endif 2112#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2113#define ROM_I2CSlaveIntDisable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[10]) 2114#endif 2115#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2116 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2117 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2118 defined(TARGET_IS_TM4C129_RA2 ) 2119#define ROM_I2CMasterIntStatus \ 2120 ((bool (*)(uint32_t ui32Base, bool bMasked))ROM_I2CTABLE[11]) 2121#endif 2122#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2123#define ROM_I2CSlaveIntStatus \ 2124 ((bool (*)(uint32_t ui32Base, bool bMasked))ROM_I2CTABLE[12]) 2125#endif 2126#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2127 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2128 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2129 defined(TARGET_IS_TM4C129_RA2 ) 2130#define ROM_I2CMasterIntClear ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[13]) 2131#endif 2132#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2133#define ROM_I2CSlaveIntClear ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[14]) 2134#endif 2135#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2136 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2137 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2138 defined(TARGET_IS_TM4C129_RA2 ) 2139#define ROM_I2CMasterSlaveAddrSet \ 2140 ((void (*)(uint32_t ui32Base, uint8_t ui8SlaveAddr, \ 2141 bool bReceive))ROM_I2CTABLE[15]) 2142#endif 2143#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2144 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2145 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2146 defined(TARGET_IS_TM4C129_RA2 ) 2147#define ROM_I2CMasterBusy ((bool (*)(uint32_t ui32Base))ROM_I2CTABLE[16]) 2148#endif 2149#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2150 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2151 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2152 defined(TARGET_IS_TM4C129_RA2 ) 2153#define ROM_I2CMasterBusBusy ((bool (*)(uint32_t ui32Base))ROM_I2CTABLE[17]) 2154#endif 2155#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2156 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2157 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2158 defined(TARGET_IS_TM4C129_RA2 ) 2159#define ROM_I2CMasterControl \ 2160 ((void (*)(uint32_t ui32Base, uint32_t ui32Cmd))ROM_I2CTABLE[18]) 2161#endif 2162#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2163 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2164 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2165 defined(TARGET_IS_TM4C129_RA2 ) 2166#define ROM_I2CMasterErr ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[19]) 2167#endif 2168#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2169 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2170 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2171 defined(TARGET_IS_TM4C129_RA2 ) 2172#define ROM_I2CMasterDataGet ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[20]) 2173#endif 2174#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2175#define ROM_I2CSlaveStatus ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[21]) 2176#endif 2177#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2178#define ROM_I2CSlaveDataPut \ 2179 ((void (*)(uint32_t ui32Base, uint8_t ui8Data))ROM_I2CTABLE[22]) 2180#endif 2181#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2182#define ROM_I2CSlaveDataGet ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[23]) 2183#endif 2184#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2185 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2186 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2187 defined(TARGET_IS_TM4C129_RA2 ) 2188#define ROM_UpdateI2C ((void (*)(void))ROM_I2CTABLE[24]) 2189#endif 2190#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2191#define ROM_I2CSlaveIntEnableEx \ 2192 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[25]) 2193#endif 2194#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2195#define ROM_I2CSlaveIntDisableEx \ 2196 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[26]) 2197#endif 2198#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2199#define ROM_I2CSlaveIntStatusEx \ 2200 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_I2CTABLE[27]) 2201#endif 2202#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2203#define ROM_I2CSlaveIntClearEx \ 2204 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[28]) 2205#endif 2206#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2207 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2208 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2209 defined(TARGET_IS_TM4C129_RA2 ) 2210#define ROM_I2CMasterIntEnableEx \ 2211 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[29]) 2212#endif 2213#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2214 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2215 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2216 defined(TARGET_IS_TM4C129_RA2 ) 2217#define ROM_I2CMasterIntDisableEx \ 2218 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[30]) 2219#endif 2220#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2221 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2222 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2223 defined(TARGET_IS_TM4C129_RA2 ) 2224#define ROM_I2CMasterIntStatusEx \ 2225 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_I2CTABLE[31]) 2226#endif 2227#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2228 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2229 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2230 defined(TARGET_IS_TM4C129_RA2 ) 2231#define ROM_I2CMasterIntClearEx \ 2232 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_I2CTABLE[32]) 2233#endif 2234#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2235 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2236 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2237 defined(TARGET_IS_TM4C129_RA2 ) 2238#define ROM_I2CMasterTimeoutSet \ 2239 ((void (*)(uint32_t ui32Base, uint32_t ui32Value))ROM_I2CTABLE[33]) 2240#endif 2241#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2242#define ROM_I2CSlaveACKOverride \ 2243 ((void (*)(uint32_t ui32Base, bool bEnable))ROM_I2CTABLE[34]) 2244#endif 2245#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2246#define ROM_I2CSlaveACKValueSet \ 2247 ((void (*)(uint32_t ui32Base, bool bACK))ROM_I2CTABLE[35]) 2248#endif 2249#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2250#define ROM_I2CSlaveAddressSet \ 2251 ((void (*)(uint32_t ui32Base, uint8_t ui8AddrNum, \ 2252 uint8_t ui8SlaveAddr))ROM_I2CTABLE[37]) 2253#endif 2254#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2255 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2256 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2257 defined(TARGET_IS_TM4C129_RA2 ) 2258#define ROM_I2CMasterLineStateGet \ 2259 ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[38]) 2260#endif 2261#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2262 defined(TARGET_IS_TM4C129_RA2 ) 2263#define ROM_I2CTxFIFOConfigSet \ 2264 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_I2CTABLE[39]) 2265#endif 2266#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2267 defined(TARGET_IS_TM4C129_RA2 ) 2268#define ROM_I2CTxFIFOFlush ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[40]) 2269#endif 2270#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2271 defined(TARGET_IS_TM4C129_RA2 ) 2272#define ROM_I2CRxFIFOConfigSet \ 2273 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_I2CTABLE[41]) 2274#endif 2275#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2276 defined(TARGET_IS_TM4C129_RA2 ) 2277#define ROM_I2CRxFIFOFlush ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[42]) 2278#endif 2279#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2280 defined(TARGET_IS_TM4C129_RA2 ) 2281#define ROM_I2CFIFOStatus ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[43]) 2282#endif 2283#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2284 defined(TARGET_IS_TM4C129_RA2 ) 2285#define ROM_I2CFIFODataPut \ 2286 ((void (*)(uint32_t ui32Base, uint8_t ui8Data))ROM_I2CTABLE[44]) 2287#endif 2288#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2289 defined(TARGET_IS_TM4C129_RA2 ) 2290#define ROM_I2CFIFODataPutNonBlocking \ 2291 ((uint32_t(*)(uint32_t ui32Base, uint8_t ui8Data))ROM_I2CTABLE[45]) 2292#endif 2293#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2294 defined(TARGET_IS_TM4C129_RA2 ) 2295#define ROM_I2CFIFODataGet ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[46]) 2296#endif 2297#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2298 defined(TARGET_IS_TM4C129_RA2 ) 2299#define ROM_I2CFIFODataGetNonBlocking \ 2300 ((uint32_t(*)(uint32_t ui32Base, uint8_t * pui8Data)) ROM_I2CTABLE[47]) 2301#endif 2302#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2303 defined(TARGET_IS_TM4C129_RA2 ) 2304#define ROM_I2CMasterBurstLengthSet \ 2305 ((void (*)(uint32_t ui32Base, uint8_t ui8Length))ROM_I2CTABLE[48]) 2306#endif 2307#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2308 defined(TARGET_IS_TM4C129_RA2 ) 2309#define ROM_I2CMasterBurstCountGet \ 2310 ((uint32_t(*)(uint32_t ui32Base))ROM_I2CTABLE[49]) 2311#endif 2312#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2313#define ROM_I2CSlaveFIFODisable ((void (*)(uint32_t ui32Base))ROM_I2CTABLE[50]) 2314#endif 2315#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2316#define ROM_I2CSlaveFIFOEnable \ 2317 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_I2CTABLE[51]) 2318#endif 2319#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2320 defined(TARGET_IS_TM4C129_RA2 ) 2321#define ROM_I2CMasterGlitchFilterConfigSet \ 2322 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_I2CTABLE[54]) 2323#endif 2324 2325//***************************************************************************** 2326// 2327// Macros for calling ROM functions in the Interrupt API. 2328// 2329//***************************************************************************** 2330#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2331 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2332 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2333 defined(TARGET_IS_TM4C129_RA2 ) 2334#define ROM_IntEnable ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[0]) 2335#endif 2336#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2337 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2338 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2339 defined(TARGET_IS_TM4C129_RA2 ) 2340#define ROM_IntMasterEnable ((bool (*)(void))ROM_INTERRUPTTABLE[1]) 2341#endif 2342#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2343 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2344 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2345 defined(TARGET_IS_TM4C129_RA2 ) 2346#define ROM_IntMasterDisable ((bool (*)(void))ROM_INTERRUPTTABLE[2]) 2347#endif 2348#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2349 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2350 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2351 defined(TARGET_IS_TM4C129_RA2 ) 2352#define ROM_IntDisable ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[3]) 2353#endif 2354#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2355 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2356 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2357 defined(TARGET_IS_TM4C129_RA2 ) 2358#define ROM_IntPriorityGroupingSet \ 2359 ((void (*)(uint32_t ui32Bits))ROM_INTERRUPTTABLE[4]) 2360#endif 2361#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2362 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2363 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2364 defined(TARGET_IS_TM4C129_RA2 ) 2365#define ROM_IntPriorityGroupingGet ((uint32_t(*)(void))ROM_INTERRUPTTABLE[5]) 2366#endif 2367#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2368 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2369 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2370 defined(TARGET_IS_TM4C129_RA2 ) 2371#define ROM_IntPrioritySet \ 2372 ((void (*)(uint32_t ui32Interrupt, \ 2373 uint8_t ui8Priority))ROM_INTERRUPTTABLE[6]) 2374#endif 2375#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2376 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2377 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2378 defined(TARGET_IS_TM4C129_RA2 ) 2379#define ROM_IntPriorityGet \ 2380 ((int32_t(*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[7]) 2381#endif 2382#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2383 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2384 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2385 defined(TARGET_IS_TM4C129_RA2 ) 2386#define ROM_IntPendSet ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[8]) 2387#endif 2388#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2389 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2390 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2391 defined(TARGET_IS_TM4C129_RA2 ) 2392#define ROM_IntPendClear \ 2393 ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[9]) 2394#endif 2395#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2396 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2397 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2398 defined(TARGET_IS_TM4C129_RA2 ) 2399#define ROM_IntPriorityMaskSet \ 2400 ((void (*)(uint32_t ui32PriorityMask))ROM_INTERRUPTTABLE[10]) 2401#endif 2402#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2403 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2404 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2405 defined(TARGET_IS_TM4C129_RA2 ) 2406#define ROM_IntPriorityMaskGet ((uint32_t(*)(void))ROM_INTERRUPTTABLE[11]) 2407#endif 2408#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 2409 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2410#define ROM_IntIsEnabled \ 2411 ((uint32_t(*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[12]) 2412#endif 2413#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2414#define ROM_IntTrigger \ 2415 ((void (*)(uint32_t ui32Interrupt))ROM_INTERRUPTTABLE[13]) 2416#endif 2417 2418//***************************************************************************** 2419// 2420// Macros for calling ROM functions in the LCD API. 2421// 2422//***************************************************************************** 2423#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2424 defined(TARGET_IS_TM4C129_RA2 ) 2425#define ROM_LCDIntStatus \ 2426 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_LCDTABLE[0]) 2427#endif 2428#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2429 defined(TARGET_IS_TM4C129_RA2 ) 2430#define ROM_LCDClockReset \ 2431 ((void (*)(uint32_t ui32Base, uint32_t ui32Clocks))ROM_LCDTABLE[1]) 2432#endif 2433#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2434 defined(TARGET_IS_TM4C129_RA2 ) 2435#define ROM_LCDDMAConfigSet \ 2436 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_LCDTABLE[2]) 2437#endif 2438#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2439 defined(TARGET_IS_TM4C129_RA2 ) 2440#define ROM_LCDIDDCommandWrite \ 2441 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 2442 uint16_t ui16Cmd))ROM_LCDTABLE[3]) 2443#endif 2444#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2445 defined(TARGET_IS_TM4C129_RA2 ) 2446#define ROM_LCDIDDConfigSet \ 2447 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_LCDTABLE[4]) 2448#endif 2449#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2450 defined(TARGET_IS_TM4C129_RA2 ) 2451#define ROM_LCDIDDDataRead \ 2452 ((uint16_t(*)(uint32_t ui32Base, uint32_t ui32CS))ROM_LCDTABLE[5]) 2453#endif 2454#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2455 defined(TARGET_IS_TM4C129_RA2 ) 2456#define ROM_LCDIDDDataWrite \ 2457 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 2458 uint16_t ui16Data))ROM_LCDTABLE[6]) 2459#endif 2460#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2461 defined(TARGET_IS_TM4C129_RA2 ) 2462#define ROM_LCDIDDDMADisable ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[7]) 2463#endif 2464#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2465 defined(TARGET_IS_TM4C129_RA2 ) 2466#define ROM_LCDIDDDMAWrite \ 2467 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, const uint32_t* pui32Data, \ 2468 uint32_t ui32Count))ROM_LCDTABLE[8]) 2469#endif 2470#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2471 defined(TARGET_IS_TM4C129_RA2 ) 2472#define ROM_LCDIDDIndexedRead \ 2473 ((uint16_t(*)(uint32_t ui32Base, uint32_t ui32CS, \ 2474 uint16_t ui16Addr))ROM_LCDTABLE[9]) 2475#endif 2476#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2477 defined(TARGET_IS_TM4C129_RA2 ) 2478#define ROM_LCDIDDIndexedWrite \ 2479 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, uint16_t ui16Addr, \ 2480 uint16_t ui16Data))ROM_LCDTABLE[10]) 2481#endif 2482#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2483 defined(TARGET_IS_TM4C129_RA2 ) 2484#define ROM_LCDIDDStatusRead \ 2485 ((uint16_t(*)(uint32_t ui32Base, uint32_t ui32CS))ROM_LCDTABLE[11]) 2486#endif 2487#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2488 defined(TARGET_IS_TM4C129_RA2 ) 2489#define ROM_LCDIDDTimingSet \ 2490 ((void (*)(uint32_t ui32Base, uint32_t ui32CS, \ 2491 const tLCDIDDTiming* pTiming))ROM_LCDTABLE[12]) 2492#endif 2493#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2494 defined(TARGET_IS_TM4C129_RA2 ) 2495#define ROM_LCDIntClear \ 2496 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_LCDTABLE[13]) 2497#endif 2498#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2499 defined(TARGET_IS_TM4C129_RA2 ) 2500#define ROM_LCDIntDisable \ 2501 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_LCDTABLE[14]) 2502#endif 2503#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2504 defined(TARGET_IS_TM4C129_RA2 ) 2505#define ROM_LCDIntEnable \ 2506 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_LCDTABLE[15]) 2507#endif 2508#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2509 defined(TARGET_IS_TM4C129_RA2 ) 2510#define ROM_LCDModeSet \ 2511 ((uint32_t(*)(uint32_t ui32Base, uint8_t ui8Mode, uint32_t ui32PixClk, \ 2512 uint32_t ui32SysClk))ROM_LCDTABLE[16]) 2513#endif 2514#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2515 defined(TARGET_IS_TM4C129_RA2 ) 2516#define ROM_LCDRasterACBiasIntCountSet \ 2517 ((void (*)(uint32_t ui32Base, uint8_t ui8Count))ROM_LCDTABLE[17]) 2518#endif 2519#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2520 defined(TARGET_IS_TM4C129_RA2 ) 2521#define ROM_LCDRasterConfigSet \ 2522 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 2523 uint8_t ui8PalLoadDelay))ROM_LCDTABLE[18]) 2524#endif 2525#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2526 defined(TARGET_IS_TM4C129_RA2 ) 2527#define ROM_LCDRasterDisable ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[19]) 2528#endif 2529#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2530 defined(TARGET_IS_TM4C129_RA2 ) 2531#define ROM_LCDRasterEnable ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[20]) 2532#endif 2533#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2534 defined(TARGET_IS_TM4C129_RA2 ) 2535#define ROM_LCDRasterFrameBufferSet \ 2536 ((void (*)(uint32_t ui32Base, uint8_t ui8Buffer, uint32_t * pui32Addr, \ 2537 uint32_t ui32NumBytes)) ROM_LCDTABLE[21]) 2538#endif 2539#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2540 defined(TARGET_IS_TM4C129_RA2 ) 2541#define ROM_LCDRasterPaletteSet \ 2542 ((void (*)(uint32_t ui32Base, uint32_t ui32Type, uint32_t * pui32PalAddr, \ 2543 const uint32_t* pui32SrcColors, uint32_t ui32Start, \ 2544 uint32_t ui32Count)) ROM_LCDTABLE[22]) 2545#endif 2546#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2547 defined(TARGET_IS_TM4C129_RA2 ) 2548#define ROM_LCDRasterSubPanelConfigSet \ 2549 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags, \ 2550 uint32_t ui32BottomLines, \ 2551 uint32_t ui32DefaultPixel))ROM_LCDTABLE[23]) 2552#endif 2553#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2554 defined(TARGET_IS_TM4C129_RA2 ) 2555#define ROM_LCDRasterSubPanelDisable \ 2556 ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[24]) 2557#endif 2558#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2559 defined(TARGET_IS_TM4C129_RA2 ) 2560#define ROM_LCDRasterSubPanelEnable \ 2561 ((void (*)(uint32_t ui32Base))ROM_LCDTABLE[25]) 2562#endif 2563#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2564 defined(TARGET_IS_TM4C129_RA2 ) 2565#define ROM_LCDRasterTimingSet \ 2566 ((void (*)(uint32_t ui32Base, \ 2567 const tLCDRasterTiming* pTiming))ROM_LCDTABLE[26]) 2568#endif 2569#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2570#define ROM_LCDRasterEnabled ((bool (*)(uint32_t ui32Base))ROM_LCDTABLE[27]) 2571#endif 2572 2573//***************************************************************************** 2574// 2575// Macros for calling ROM functions in the MPU API. 2576// 2577//***************************************************************************** 2578#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2579 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2580 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2581 defined(TARGET_IS_TM4C129_RA2 ) 2582#define ROM_MPUEnable ((void (*)(uint32_t ui32MPUConfig))ROM_MPUTABLE[0]) 2583#endif 2584#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2585 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2586 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2587 defined(TARGET_IS_TM4C129_RA2 ) 2588#define ROM_MPUDisable ((void (*)(void))ROM_MPUTABLE[1]) 2589#endif 2590#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2591 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2592 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2593 defined(TARGET_IS_TM4C129_RA2 ) 2594#define ROM_MPURegionCountGet ((uint32_t(*)(void))ROM_MPUTABLE[2]) 2595#endif 2596#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2597 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2598 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2599 defined(TARGET_IS_TM4C129_RA2 ) 2600#define ROM_MPURegionEnable ((void (*)(uint32_t ui32Region))ROM_MPUTABLE[3]) 2601#endif 2602#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2603 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2604 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2605 defined(TARGET_IS_TM4C129_RA2 ) 2606#define ROM_MPURegionDisable ((void (*)(uint32_t ui32Region))ROM_MPUTABLE[4]) 2607#endif 2608#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2609 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2610 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2611 defined(TARGET_IS_TM4C129_RA2 ) 2612#define ROM_MPURegionSet \ 2613 ((void (*)(uint32_t ui32Region, uint32_t ui32Addr, \ 2614 uint32_t ui32Flags))ROM_MPUTABLE[5]) 2615#endif 2616#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2617 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2618 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2619 defined(TARGET_IS_TM4C129_RA2 ) 2620#define ROM_MPURegionGet \ 2621 ((void (*)(uint32_t ui32Region, uint32_t * pui32Addr, \ 2622 uint32_t * pui32Flags)) ROM_MPUTABLE[6]) 2623#endif 2624 2625//***************************************************************************** 2626// 2627// Macros for calling ROM functions in the OneWire API. 2628// 2629//***************************************************************************** 2630#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2631 defined(TARGET_IS_TM4C129_RA2 ) 2632#define ROM_OneWireIntStatus \ 2633 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_ONEWIRETABLE[0]) 2634#endif 2635#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2636 defined(TARGET_IS_TM4C129_RA2 ) 2637#define ROM_OneWireBusReset ((void (*)(uint32_t ui32Base))ROM_ONEWIRETABLE[1]) 2638#endif 2639#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2640 defined(TARGET_IS_TM4C129_RA2 ) 2641#define ROM_OneWireBusStatus \ 2642 ((uint32_t(*)(uint32_t ui32Base))ROM_ONEWIRETABLE[2]) 2643#endif 2644#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2645 defined(TARGET_IS_TM4C129_RA2 ) 2646#define ROM_OneWireDataGet \ 2647 ((void (*)(uint32_t u3i2Base, uint32_t * pui32Data)) ROM_ONEWIRETABLE[3]) 2648#endif 2649#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2650 defined(TARGET_IS_TM4C129_RA2 ) 2651#define ROM_OneWireDataGetNonBlocking \ 2652 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Data)) ROM_ONEWIRETABLE[4]) 2653#endif 2654#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2655 defined(TARGET_IS_TM4C129_RA2 ) 2656#define ROM_OneWireInit \ 2657 ((void (*)(uint32_t ui32Base, uint32_t ui32InitFlags))ROM_ONEWIRETABLE[5]) 2658#endif 2659#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2660 defined(TARGET_IS_TM4C129_RA2 ) 2661#define ROM_OneWireIntClear \ 2662 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_ONEWIRETABLE[6]) 2663#endif 2664#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2665 defined(TARGET_IS_TM4C129_RA2 ) 2666#define ROM_OneWireIntDisable \ 2667 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_ONEWIRETABLE[7]) 2668#endif 2669#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2670 defined(TARGET_IS_TM4C129_RA2 ) 2671#define ROM_OneWireIntEnable \ 2672 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_ONEWIRETABLE[8]) 2673#endif 2674#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2675 defined(TARGET_IS_TM4C129_RA2 ) 2676#define ROM_OneWireTransaction \ 2677 ((void (*)(uint32_t ui32Base, uint32_t ui32OpFlags, uint32_t ui32Data, \ 2678 uint32_t ui32BitCnt))ROM_ONEWIRETABLE[9]) 2679#endif 2680#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2681 defined(TARGET_IS_TM4C129_RA2 ) 2682#define ROM_OneWireDMADisable \ 2683 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_ONEWIRETABLE[10]) 2684#endif 2685#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2686 defined(TARGET_IS_TM4C129_RA2 ) 2687#define ROM_OneWireDMAEnable \ 2688 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_ONEWIRETABLE[11]) 2689#endif 2690 2691//***************************************************************************** 2692// 2693// Macros for calling ROM functions in the PWM API. 2694// 2695//***************************************************************************** 2696#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2697 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2698 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2699 defined(TARGET_IS_TM4C129_RA2 ) 2700#define ROM_PWMPulseWidthSet \ 2701 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOut, \ 2702 uint32_t ui32Width))ROM_PWMTABLE[0]) 2703#endif 2704#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2705 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2706 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2707 defined(TARGET_IS_TM4C129_RA2 ) 2708#define ROM_PWMGenConfigure \ 2709 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2710 uint32_t ui32Config))ROM_PWMTABLE[1]) 2711#endif 2712#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2713 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2714 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2715 defined(TARGET_IS_TM4C129_RA2 ) 2716#define ROM_PWMGenPeriodSet \ 2717 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2718 uint32_t ui32Period))ROM_PWMTABLE[2]) 2719#endif 2720#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2721 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2722 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2723 defined(TARGET_IS_TM4C129_RA2 ) 2724#define ROM_PWMGenPeriodGet \ 2725 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Gen))ROM_PWMTABLE[3]) 2726#endif 2727#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2728 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2729 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2730 defined(TARGET_IS_TM4C129_RA2 ) 2731#define ROM_PWMGenEnable \ 2732 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen))ROM_PWMTABLE[4]) 2733#endif 2734#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2735 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2736 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2737 defined(TARGET_IS_TM4C129_RA2 ) 2738#define ROM_PWMGenDisable \ 2739 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen))ROM_PWMTABLE[5]) 2740#endif 2741#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2742 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2743 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2744 defined(TARGET_IS_TM4C129_RA2 ) 2745#define ROM_PWMPulseWidthGet \ 2746 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32PWMOut))ROM_PWMTABLE[6]) 2747#endif 2748#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2749 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2750 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2751 defined(TARGET_IS_TM4C129_RA2 ) 2752#define ROM_PWMDeadBandEnable \ 2753 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, uint16_t ui16Rise, \ 2754 uint16_t ui16Fall))ROM_PWMTABLE[7]) 2755#endif 2756#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2757 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2758 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2759 defined(TARGET_IS_TM4C129_RA2 ) 2760#define ROM_PWMDeadBandDisable \ 2761 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen))ROM_PWMTABLE[8]) 2762#endif 2763#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2764 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2765 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2766 defined(TARGET_IS_TM4C129_RA2 ) 2767#define ROM_PWMSyncUpdate \ 2768 ((void (*)(uint32_t ui32Base, uint32_t ui32GenBits))ROM_PWMTABLE[9]) 2769#endif 2770#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2771 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2772 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2773 defined(TARGET_IS_TM4C129_RA2 ) 2774#define ROM_PWMSyncTimeBase \ 2775 ((void (*)(uint32_t ui32Base, uint32_t ui32GenBits))ROM_PWMTABLE[10]) 2776#endif 2777#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2778 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2779 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2780 defined(TARGET_IS_TM4C129_RA2 ) 2781#define ROM_PWMOutputState \ 2782 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOutBits, \ 2783 bool bEnable))ROM_PWMTABLE[11]) 2784#endif 2785#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2786 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2787 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2788 defined(TARGET_IS_TM4C129_RA2 ) 2789#define ROM_PWMOutputInvert \ 2790 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOutBits, \ 2791 bool bInvert))ROM_PWMTABLE[12]) 2792#endif 2793#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2794 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2795 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2796 defined(TARGET_IS_TM4C129_RA2 ) 2797#define ROM_PWMOutputFault \ 2798 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOutBits, \ 2799 bool bFaultSuppress))ROM_PWMTABLE[13]) 2800#endif 2801#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2802 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2803 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2804 defined(TARGET_IS_TM4C129_RA2 ) 2805#define ROM_PWMGenIntTrigEnable \ 2806 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2807 uint32_t ui32IntTrig))ROM_PWMTABLE[14]) 2808#endif 2809#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2810 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2811 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2812 defined(TARGET_IS_TM4C129_RA2 ) 2813#define ROM_PWMGenIntTrigDisable \ 2814 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2815 uint32_t ui32IntTrig))ROM_PWMTABLE[15]) 2816#endif 2817#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2818 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2819 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2820 defined(TARGET_IS_TM4C129_RA2 ) 2821#define ROM_PWMGenIntStatus \ 2822 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2823 bool bMasked))ROM_PWMTABLE[16]) 2824#endif 2825#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2826 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2827 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2828 defined(TARGET_IS_TM4C129_RA2 ) 2829#define ROM_PWMGenIntClear \ 2830 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2831 uint32_t ui32Ints))ROM_PWMTABLE[17]) 2832#endif 2833#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2834 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2835 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2836 defined(TARGET_IS_TM4C129_RA2 ) 2837#define ROM_PWMIntEnable \ 2838 ((void (*)(uint32_t ui32Base, uint32_t ui32GenFault))ROM_PWMTABLE[18]) 2839#endif 2840#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2841 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2842 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2843 defined(TARGET_IS_TM4C129_RA2 ) 2844#define ROM_PWMIntDisable \ 2845 ((void (*)(uint32_t ui32Base, uint32_t ui32GenFault))ROM_PWMTABLE[19]) 2846#endif 2847#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2848 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2849 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2850 defined(TARGET_IS_TM4C129_RA2 ) 2851#define ROM_PWMFaultIntClear ((void (*)(uint32_t ui32Base))ROM_PWMTABLE[20]) 2852#endif 2853#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2854 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2855 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2856 defined(TARGET_IS_TM4C129_RA2 ) 2857#define ROM_PWMIntStatus \ 2858 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_PWMTABLE[21]) 2859#endif 2860#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2861 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2862 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2863 defined(TARGET_IS_TM4C129_RA2 ) 2864#define ROM_PWMOutputFaultLevel \ 2865 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOutBits, \ 2866 bool bDriveHigh))ROM_PWMTABLE[22]) 2867#endif 2868#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2869 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2870 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2871 defined(TARGET_IS_TM4C129_RA2 ) 2872#define ROM_PWMFaultIntClearExt \ 2873 ((void (*)(uint32_t ui32Base, uint32_t ui32FaultInts))ROM_PWMTABLE[23]) 2874#endif 2875#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2876 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2877 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2878 defined(TARGET_IS_TM4C129_RA2 ) 2879#define ROM_PWMGenFaultConfigure \ 2880 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2881 uint32_t ui32MinFaultPeriod, \ 2882 uint32_t ui32FaultSenses))ROM_PWMTABLE[24]) 2883#endif 2884#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2885 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2886 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2887 defined(TARGET_IS_TM4C129_RA2 ) 2888#define ROM_PWMGenFaultTriggerSet \ 2889 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group, \ 2890 uint32_t ui32FaultTriggers))ROM_PWMTABLE[25]) 2891#endif 2892#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2893 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2894 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2895 defined(TARGET_IS_TM4C129_RA2 ) 2896#define ROM_PWMGenFaultTriggerGet \ 2897 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2898 uint32_t ui32Group))ROM_PWMTABLE[26]) 2899#endif 2900#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2901 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2902 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2903 defined(TARGET_IS_TM4C129_RA2 ) 2904#define ROM_PWMGenFaultStatus \ 2905 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Gen, \ 2906 uint32_t ui32Group))ROM_PWMTABLE[27]) 2907#endif 2908#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2909 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2910 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2911 defined(TARGET_IS_TM4C129_RA2 ) 2912#define ROM_PWMGenFaultClear \ 2913 ((void (*)(uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group, \ 2914 uint32_t ui32FaultTriggers))ROM_PWMTABLE[28]) 2915#endif 2916#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2917 defined(TARGET_IS_TM4C129_RA2 ) 2918#define ROM_PWMClockSet \ 2919 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_PWMTABLE[29]) 2920#endif 2921#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2922 defined(TARGET_IS_TM4C129_RA2 ) 2923#define ROM_PWMClockGet ((uint32_t(*)(uint32_t ui32Base))ROM_PWMTABLE[30]) 2924#endif 2925#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 2926 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 2927#define ROM_PWMOutputUpdateMode \ 2928 ((void (*)(uint32_t ui32Base, uint32_t ui32PWMOutBits, \ 2929 uint32_t ui32Mode))ROM_PWMTABLE[31]) 2930#endif 2931 2932//***************************************************************************** 2933// 2934// Macros for calling ROM functions in the QEI API. 2935// 2936//***************************************************************************** 2937#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2938 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2939 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2940 defined(TARGET_IS_TM4C129_RA2 ) 2941#define ROM_QEIPositionGet ((uint32_t(*)(uint32_t ui32Base))ROM_QEITABLE[0]) 2942#endif 2943#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2944 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2945 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2946 defined(TARGET_IS_TM4C129_RA2 ) 2947#define ROM_QEIEnable ((void (*)(uint32_t ui32Base))ROM_QEITABLE[1]) 2948#endif 2949#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2950 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2951 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2952 defined(TARGET_IS_TM4C129_RA2 ) 2953#define ROM_QEIDisable ((void (*)(uint32_t ui32Base))ROM_QEITABLE[2]) 2954#endif 2955#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2956 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2957 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2958 defined(TARGET_IS_TM4C129_RA2 ) 2959#define ROM_QEIConfigure \ 2960 ((void (*)(uint32_t ui32Base, uint32_t ui32Config, \ 2961 uint32_t ui32MaxPosition))ROM_QEITABLE[3]) 2962#endif 2963#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2964 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2965 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2966 defined(TARGET_IS_TM4C129_RA2 ) 2967#define ROM_QEIPositionSet \ 2968 ((void (*)(uint32_t ui32Base, uint32_t ui32Position))ROM_QEITABLE[4]) 2969#endif 2970#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2971 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2972 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2973 defined(TARGET_IS_TM4C129_RA2 ) 2974#define ROM_QEIDirectionGet ((int32_t(*)(uint32_t ui32Base))ROM_QEITABLE[5]) 2975#endif 2976#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2977 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2978 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2979 defined(TARGET_IS_TM4C129_RA2 ) 2980#define ROM_QEIErrorGet ((bool (*)(uint32_t ui32Base))ROM_QEITABLE[6]) 2981#endif 2982#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2983 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2984 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2985 defined(TARGET_IS_TM4C129_RA2 ) 2986#define ROM_QEIVelocityEnable ((void (*)(uint32_t ui32Base))ROM_QEITABLE[7]) 2987#endif 2988#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2989 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2990 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2991 defined(TARGET_IS_TM4C129_RA2 ) 2992#define ROM_QEIVelocityDisable ((void (*)(uint32_t ui32Base))ROM_QEITABLE[8]) 2993#endif 2994#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 2995 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 2996 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 2997 defined(TARGET_IS_TM4C129_RA2 ) 2998#define ROM_QEIVelocityConfigure \ 2999 ((void (*)(uint32_t ui32Base, uint32_t ui32PreDiv, \ 3000 uint32_t ui32Period))ROM_QEITABLE[9]) 3001#endif 3002#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3003 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3004 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3005 defined(TARGET_IS_TM4C129_RA2 ) 3006#define ROM_QEIVelocityGet ((uint32_t(*)(uint32_t ui32Base))ROM_QEITABLE[10]) 3007#endif 3008#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3009 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3010 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3011 defined(TARGET_IS_TM4C129_RA2 ) 3012#define ROM_QEIIntEnable \ 3013 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_QEITABLE[11]) 3014#endif 3015#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3016 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3017 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3018 defined(TARGET_IS_TM4C129_RA2 ) 3019#define ROM_QEIIntDisable \ 3020 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_QEITABLE[12]) 3021#endif 3022#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3023 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3024 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3025 defined(TARGET_IS_TM4C129_RA2 ) 3026#define ROM_QEIIntStatus \ 3027 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_QEITABLE[13]) 3028#endif 3029#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3030 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3031 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3032 defined(TARGET_IS_TM4C129_RA2 ) 3033#define ROM_QEIIntClear \ 3034 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_QEITABLE[14]) 3035#endif 3036 3037//***************************************************************************** 3038// 3039// Macros for calling ROM functions in the SHAMD5 API. 3040// 3041//***************************************************************************** 3042#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3043 defined(TARGET_IS_TM4C129_RA2 ) 3044#define ROM_SHAMD5IntStatus \ 3045 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_SHAMD5TABLE[0]) 3046#endif 3047#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3048 defined(TARGET_IS_TM4C129_RA2 ) 3049#define ROM_SHAMD5ConfigSet \ 3050 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_SHAMD5TABLE[1]) 3051#endif 3052#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3053 defined(TARGET_IS_TM4C129_RA2 ) 3054#define ROM_SHAMD5DataProcess \ 3055 ((void (*)(uint32_t ui32Base, uint32_t * pui32DataSrc, \ 3056 uint32_t ui32DataLength, uint32_t * pui32HashResult)) \ 3057 ROM_SHAMD5TABLE[2]) 3058#endif 3059#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3060 defined(TARGET_IS_TM4C129_RA2 ) 3061#define ROM_SHAMD5DataWrite \ 3062 ((void (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_SHAMD5TABLE[3]) 3063#endif 3064#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3065 defined(TARGET_IS_TM4C129_RA2 ) 3066#define ROM_SHAMD5DataWriteNonBlocking \ 3067 ((bool (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_SHAMD5TABLE[4]) 3068#endif 3069#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3070 defined(TARGET_IS_TM4C129_RA2 ) 3071#define ROM_SHAMD5DMADisable ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[5]) 3072#endif 3073#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3074 defined(TARGET_IS_TM4C129_RA2 ) 3075#define ROM_SHAMD5DMAEnable ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[6]) 3076#endif 3077#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3078 defined(TARGET_IS_TM4C129_RA2 ) 3079#define ROM_SHAMD5HashLengthSet \ 3080 ((void (*)(uint32_t ui32Base, uint32_t ui32Length))ROM_SHAMD5TABLE[7]) 3081#endif 3082#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3083 defined(TARGET_IS_TM4C129_RA2 ) 3084#define ROM_SHAMD5HMACKeySet \ 3085 ((void (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_SHAMD5TABLE[8]) 3086#endif 3087#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3088 defined(TARGET_IS_TM4C129_RA2 ) 3089#define ROM_SHAMD5HMACPPKeyGenerate \ 3090 ((void (*)(uint32_t ui32Base, uint32_t * pui32Key, uint32_t * pui32PPKey)) \ 3091 ROM_SHAMD5TABLE[9]) 3092#endif 3093#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3094 defined(TARGET_IS_TM4C129_RA2 ) 3095#define ROM_SHAMD5HMACPPKeySet \ 3096 ((void (*)(uint32_t ui32Base, uint32_t * pui32Src)) ROM_SHAMD5TABLE[10]) 3097#endif 3098#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3099 defined(TARGET_IS_TM4C129_RA2 ) 3100#define ROM_SHAMD5HMACProcess \ 3101 ((void (*)(uint32_t ui32Base, uint32_t * pui32DataSrc, \ 3102 uint32_t ui32DataLength, uint32_t * pui32HashResult)) \ 3103 ROM_SHAMD5TABLE[11]) 3104#endif 3105#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3106 defined(TARGET_IS_TM4C129_RA2 ) 3107#define ROM_SHAMD5IntClear \ 3108 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SHAMD5TABLE[12]) 3109#endif 3110#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3111 defined(TARGET_IS_TM4C129_RA2 ) 3112#define ROM_SHAMD5IntDisable \ 3113 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SHAMD5TABLE[13]) 3114#endif 3115#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3116 defined(TARGET_IS_TM4C129_RA2 ) 3117#define ROM_SHAMD5IntEnable \ 3118 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SHAMD5TABLE[14]) 3119#endif 3120#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3121 defined(TARGET_IS_TM4C129_RA2 ) 3122#define ROM_SHAMD5Reset ((void (*)(uint32_t ui32Base))ROM_SHAMD5TABLE[15]) 3123#endif 3124#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3125 defined(TARGET_IS_TM4C129_RA2 ) 3126#define ROM_SHAMD5ResultRead \ 3127 ((void (*)(uint32_t ui32Base, uint32_t * pui32Dest)) ROM_SHAMD5TABLE[16]) 3128#endif 3129 3130//***************************************************************************** 3131// 3132// Macros for calling ROM functions in the SMBus API. 3133// 3134//***************************************************************************** 3135#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3136 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3137 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3138 defined(TARGET_IS_TM4C129_RA2 ) 3139#define ROM_SMBusMasterIntProcess \ 3140 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[0]) 3141#endif 3142#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3143 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3144 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3145 defined(TARGET_IS_TM4C129_RA2 ) 3146#define ROM_SMBusARPDisable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[1]) 3147#endif 3148#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3149 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3150 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3151 defined(TARGET_IS_TM4C129_RA2 ) 3152#define ROM_SMBusARPEnable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[2]) 3153#endif 3154#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3155 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3156 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3157 defined(TARGET_IS_TM4C129_RA2 ) 3158#define ROM_SMBusARPUDIDPacketDecode \ 3159 ((void (*)(tSMBusUDID * pUDID, uint8_t * pui8Address, uint8_t * pui8Data)) \ 3160 ROM_SMBUSTABLE[3]) 3161#endif 3162#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3163 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3164 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3165 defined(TARGET_IS_TM4C129_RA2 ) 3166#define ROM_SMBusARPUDIDPacketEncode \ 3167 ((void (*)(tSMBusUDID * pUDID, uint8_t ui8Address, uint8_t * pui8Data)) \ 3168 ROM_SMBUSTABLE[4]) 3169#endif 3170#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3171 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3172 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3173 defined(TARGET_IS_TM4C129_RA2 ) 3174#define ROM_SMBusMasterARPAssignAddress \ 3175 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t * pui8Data)) ROM_SMBUSTABLE[5]) 3176#endif 3177#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3178 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3179 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3180 defined(TARGET_IS_TM4C129_RA2 ) 3181#define ROM_SMBusMasterARPGetUDIDDir \ 3182 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3183 uint8_t * pui8Data)) ROM_SMBUSTABLE[6]) 3184#endif 3185#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3186 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3187 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3188 defined(TARGET_IS_TM4C129_RA2 ) 3189#define ROM_SMBusMasterARPGetUDIDGen \ 3190 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t * pui8Data)) ROM_SMBUSTABLE[7]) 3191#endif 3192#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3193 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3194 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3195 defined(TARGET_IS_TM4C129_RA2 ) 3196#define ROM_SMBusMasterARPNotifyMaster \ 3197 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t * pui8Data)) ROM_SMBUSTABLE[8]) 3198#endif 3199#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3200 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3201 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3202 defined(TARGET_IS_TM4C129_RA2 ) 3203#define ROM_SMBusMasterARPPrepareToARP \ 3204 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[9]) 3205#endif 3206#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3207 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3208 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3209 defined(TARGET_IS_TM4C129_RA2 ) 3210#define ROM_SMBusMasterARPResetDeviceDir \ 3211 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress)) \ 3212 ROM_SMBUSTABLE[10]) 3213#endif 3214#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3215 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3216 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3217 defined(TARGET_IS_TM4C129_RA2 ) 3218#define ROM_SMBusMasterARPResetDeviceGen \ 3219 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[11]) 3220#endif 3221#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3222 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3223 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3224 defined(TARGET_IS_TM4C129_RA2 ) 3225#define ROM_SMBusMasterBlockProcessCall \ 3226 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3227 uint8_t ui8Command, uint8_t * pui8TxData, \ 3228 uint8_t ui8TxSize, uint8_t * pui8RxData)) \ 3229 ROM_SMBUSTABLE[12]) 3230#endif 3231#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 3232 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 3233 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 3234#define ROM_SMBusMasterBlockRead \ 3235 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3236 uint8_t ui8Command, uint8_t * pui8Data)) \ 3237 ROM_SMBUSTABLE[13]) 3238#endif 3239#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3240 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3241 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3242 defined(TARGET_IS_TM4C129_RA2 ) 3243#define ROM_SMBusMasterBlockWrite \ 3244 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3245 uint8_t ui8Command, uint8_t * pui8Data, \ 3246 uint8_t ui8Size)) ROM_SMBUSTABLE[14]) 3247#endif 3248#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3249 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3250 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3251 defined(TARGET_IS_TM4C129_RA2 ) 3252#define ROM_SMBusMasterByteReceive \ 3253 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3254 uint8_t * pui8Data)) ROM_SMBUSTABLE[15]) 3255#endif 3256#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3257 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3258 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3259 defined(TARGET_IS_TM4C129_RA2 ) 3260#define ROM_SMBusMasterByteSend \ 3261 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3262 uint8_t ui8Data)) ROM_SMBUSTABLE[16]) 3263#endif 3264#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3265 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3266 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3267 defined(TARGET_IS_TM4C129_RA2 ) 3268#define ROM_SMBusMasterByteWordRead \ 3269 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3270 uint8_t ui8Command, uint8_t * pui8Data, \ 3271 uint8_t ui8Size)) ROM_SMBUSTABLE[17]) 3272#endif 3273#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3274 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3275 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3276 defined(TARGET_IS_TM4C129_RA2 ) 3277#define ROM_SMBusMasterByteWordWrite \ 3278 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3279 uint8_t ui8Command, uint8_t * pui8Data, \ 3280 uint8_t ui8Size)) ROM_SMBUSTABLE[18]) 3281#endif 3282#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3283 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3284 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3285 defined(TARGET_IS_TM4C129_RA2 ) 3286#define ROM_SMBusMasterHostNotify \ 3287 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8OwnSlaveAddress, \ 3288 uint8_t * pui8Data)) ROM_SMBUSTABLE[19]) 3289#endif 3290#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3291 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3292 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3293 defined(TARGET_IS_TM4C129_RA2 ) 3294#define ROM_SMBusMasterI2CRead \ 3295 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3296 uint8_t * pui8Data, uint8_t ui8Size)) \ 3297 ROM_SMBUSTABLE[20]) 3298#endif 3299#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3300 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3301 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3302 defined(TARGET_IS_TM4C129_RA2 ) 3303#define ROM_SMBusMasterI2CWrite \ 3304 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3305 uint8_t * pui8Data, uint8_t ui8Size)) \ 3306 ROM_SMBUSTABLE[21]) 3307#endif 3308#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3309 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3310 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3311 defined(TARGET_IS_TM4C129_RA2 ) 3312#define ROM_SMBusMasterI2CWriteRead \ 3313 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3314 uint8_t * pui8TxData, uint8_t ui8TxSize, \ 3315 uint8_t * pui8RxData, uint8_t ui8RxSize)) \ 3316 ROM_SMBUSTABLE[22]) 3317#endif 3318#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3319 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3320 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3321 defined(TARGET_IS_TM4C129_RA2 ) 3322#define ROM_SMBusMasterInit \ 3323 ((void (*)(tSMBus * psSMBus, uint32_t ui32I2CBase, \ 3324 uint32_t ui32SMBusClock)) ROM_SMBUSTABLE[23]) 3325#endif 3326#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3327 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3328 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3329 defined(TARGET_IS_TM4C129_RA2 ) 3330#define ROM_SMBusMasterIntEnable \ 3331 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[24]) 3332#endif 3333#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3334 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3335 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3336 defined(TARGET_IS_TM4C129_RA2 ) 3337#define ROM_SMBusMasterProcessCall \ 3338 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, \ 3339 uint8_t ui8Command, uint8_t * pui8TxData, \ 3340 uint8_t * pui8RxData)) ROM_SMBUSTABLE[25]) 3341#endif 3342#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3343 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3344 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3345 defined(TARGET_IS_TM4C129_RA2 ) 3346#define ROM_SMBusMasterQuickCommand \ 3347 ((tSMBusStatus(*)(tSMBus * psSMBus, uint8_t ui8TargetAddress, bool bData)) \ 3348 ROM_SMBUSTABLE[26]) 3349#endif 3350#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3351 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3352 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3353 defined(TARGET_IS_TM4C129_RA2 ) 3354#define ROM_SMBusPECDisable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[27]) 3355#endif 3356#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3357 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3358 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3359 defined(TARGET_IS_TM4C129_RA2 ) 3360#define ROM_SMBusPECEnable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[28]) 3361#endif 3362#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3363 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3364 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3365 defined(TARGET_IS_TM4C129_RA2 ) 3366#define ROM_SMBusRxPacketSizeGet \ 3367 ((uint8_t(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[29]) 3368#endif 3369#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3370 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3371 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3372 defined(TARGET_IS_TM4C129_RA2 ) 3373#define ROM_SMBusSlaveACKSend \ 3374 ((void (*)(tSMBus * psSMBus, bool bACK)) ROM_SMBUSTABLE[30]) 3375#endif 3376#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3377 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3378 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3379 defined(TARGET_IS_TM4C129_RA2 ) 3380#define ROM_SMBusSlaveAddressSet \ 3381 ((void (*)(tSMBus * psSMBus, uint8_t ui8AddressNum, \ 3382 uint8_t ui8SlaveAddress)) ROM_SMBUSTABLE[31]) 3383#endif 3384#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3385 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3386 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3387 defined(TARGET_IS_TM4C129_RA2 ) 3388#define ROM_SMBusSlaveARPFlagARGet \ 3389 ((bool (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[32]) 3390#endif 3391#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3392 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3393 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3394 defined(TARGET_IS_TM4C129_RA2 ) 3395#define ROM_SMBusSlaveARPFlagARSet \ 3396 ((void (*)(tSMBus * psSMBus, bool bValue)) ROM_SMBUSTABLE[33]) 3397#endif 3398#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3399 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3400 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3401 defined(TARGET_IS_TM4C129_RA2 ) 3402#define ROM_SMBusSlaveARPFlagAVGet \ 3403 ((bool (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[34]) 3404#endif 3405#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3406 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3407 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3408 defined(TARGET_IS_TM4C129_RA2 ) 3409#define ROM_SMBusSlaveARPFlagAVSet \ 3410 ((void (*)(tSMBus * psSMBus, bool bValue)) ROM_SMBUSTABLE[35]) 3411#endif 3412#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3413 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3414 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3415 defined(TARGET_IS_TM4C129_RA2 ) 3416#define ROM_SMBusSlaveBlockTransferDisable \ 3417 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[36]) 3418#endif 3419#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3420 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3421 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3422 defined(TARGET_IS_TM4C129_RA2 ) 3423#define ROM_SMBusSlaveBlockTransferEnable \ 3424 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[37]) 3425#endif 3426#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3427 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3428 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3429 defined(TARGET_IS_TM4C129_RA2 ) 3430#define ROM_SMBusSlaveCommandGet \ 3431 ((uint8_t(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[38]) 3432#endif 3433#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3434 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3435 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3436 defined(TARGET_IS_TM4C129_RA2 ) 3437#define ROM_SMBusSlaveI2CDisable \ 3438 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[39]) 3439#endif 3440#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3441 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3442 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3443 defined(TARGET_IS_TM4C129_RA2 ) 3444#define ROM_SMBusSlaveI2CEnable \ 3445 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[40]) 3446#endif 3447#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3448 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3449 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3450 defined(TARGET_IS_TM4C129_RA2 ) 3451#define ROM_SMBusSlaveInit \ 3452 ((void (*)(tSMBus * psSMBus, uint32_t ui32I2CBase)) ROM_SMBUSTABLE[41]) 3453#endif 3454#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3455 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3456 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3457 defined(TARGET_IS_TM4C129_RA2 ) 3458#define ROM_SMBusSlaveIntAddressGet \ 3459 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[42]) 3460#endif 3461#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3462 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3463 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3464 defined(TARGET_IS_TM4C129_RA2 ) 3465#define ROM_SMBusSlaveIntEnable \ 3466 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[43]) 3467#endif 3468#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3469 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3470 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3471 defined(TARGET_IS_TM4C129_RA2 ) 3472#define ROM_SMBusSlaveIntProcess \ 3473 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[44]) 3474#endif 3475#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3476 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3477 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3478 defined(TARGET_IS_TM4C129_RA2 ) 3479#define ROM_SMBusSlaveManualACKDisable \ 3480 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[45]) 3481#endif 3482#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3483 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3484 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3485 defined(TARGET_IS_TM4C129_RA2 ) 3486#define ROM_SMBusSlaveManualACKEnable \ 3487 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[46]) 3488#endif 3489#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3490 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3491 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3492 defined(TARGET_IS_TM4C129_RA2 ) 3493#define ROM_SMBusSlaveManualACKStatusGet \ 3494 ((bool (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[47]) 3495#endif 3496#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3497 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3498 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3499 defined(TARGET_IS_TM4C129_RA2 ) 3500#define ROM_SMBusSlaveProcessCallDisable \ 3501 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[48]) 3502#endif 3503#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3504 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3505 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3506 defined(TARGET_IS_TM4C129_RA2 ) 3507#define ROM_SMBusSlaveProcessCallEnable \ 3508 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[49]) 3509#endif 3510#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3511 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3512 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3513 defined(TARGET_IS_TM4C129_RA2 ) 3514#define ROM_SMBusSlaveRxBufferSet \ 3515 ((void (*)(tSMBus * psSMBus, uint8_t * pui8Data, uint8_t ui8Size)) \ 3516 ROM_SMBUSTABLE[50]) 3517#endif 3518#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3519 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3520 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3521 defined(TARGET_IS_TM4C129_RA2 ) 3522#define ROM_SMBusSlaveTransferInit \ 3523 ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[51]) 3524#endif 3525#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3526 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3527 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3528 defined(TARGET_IS_TM4C129_RA2 ) 3529#define ROM_SMBusSlaveTxBufferSet \ 3530 ((void (*)(tSMBus * psSMBus, uint8_t * pui8Data, uint8_t ui8Size)) \ 3531 ROM_SMBUSTABLE[52]) 3532#endif 3533#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3534 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3535 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3536 defined(TARGET_IS_TM4C129_RA2 ) 3537#define ROM_SMBusSlaveUDIDSet \ 3538 ((void (*)(tSMBus * psSMBus, tSMBusUDID * pUDID)) ROM_SMBUSTABLE[53]) 3539#endif 3540#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3541 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3542 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3543 defined(TARGET_IS_TM4C129_RA2 ) 3544#define ROM_SMBusStatusGet \ 3545 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[54]) 3546#endif 3547#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 3548 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 3549 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 3550#define ROM_SMBusSlaveDataSend \ 3551 ((tSMBusStatus(*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[55]) 3552#endif 3553#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3554 defined(TARGET_IS_TM4C129_RA2 ) 3555#define ROM_SMBusFIFOEnable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[56]) 3556#endif 3557#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3558 defined(TARGET_IS_TM4C129_RA2 ) 3559#define ROM_SMBusFIFODisable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[57]) 3560#endif 3561#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3562 defined(TARGET_IS_TM4C129_RA2 ) 3563#define ROM_SMBusDMAEnable \ 3564 ((void (*)(tSMBus * psSMBus, uint8_t ui8TxChannel, uint8_t ui8RxChannel)) \ 3565 ROM_SMBUSTABLE[58]) 3566#endif 3567#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3568 defined(TARGET_IS_TM4C129_RA2 ) 3569#define ROM_SMBusDMADisable ((void (*)(tSMBus * psSMBus)) ROM_SMBUSTABLE[59]) 3570#endif 3571 3572//***************************************************************************** 3573// 3574// Macros for calling ROM functions in the SPIFlash API. 3575// 3576//***************************************************************************** 3577#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3578 defined(TARGET_IS_TM4C129_RA2 ) 3579#define ROM_SPIFlashIntHandler \ 3580 ((uint32_t(*)(tSPIFlashState * pState)) ROM_SPIFLASHTABLE[0]) 3581#endif 3582#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3583 defined(TARGET_IS_TM4C129_RA2 ) 3584#define ROM_SPIFlashInit \ 3585 ((void (*)(uint32_t ui32Base, uint32_t ui32Clock, \ 3586 uint32_t ui32BitRate))ROM_SPIFLASHTABLE[1]) 3587#endif 3588#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3589 defined(TARGET_IS_TM4C129_RA2 ) 3590#define ROM_SPIFlashWriteStatus \ 3591 ((void (*)(uint32_t ui32Base, uint8_t ui8Status))ROM_SPIFLASHTABLE[2]) 3592#endif 3593#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3594 defined(TARGET_IS_TM4C129_RA2 ) 3595#define ROM_SPIFlashPageProgram \ 3596 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr, const uint8_t* pui8Data, \ 3597 uint32_t ui32Count))ROM_SPIFLASHTABLE[3]) 3598#endif 3599#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3600 defined(TARGET_IS_TM4C129_RA2 ) 3601#define ROM_SPIFlashPageProgramNonBlocking \ 3602 ((void (*)(tSPIFlashState * pState, uint32_t ui32Base, uint32_t ui32Addr, \ 3603 const uint8_t* pui8Data, uint32_t ui32Count, bool bUseDMA, \ 3604 uint32_t ui32TxChannel)) ROM_SPIFLASHTABLE[4]) 3605#endif 3606#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3607 defined(TARGET_IS_TM4C129_RA2 ) 3608#define ROM_SPIFlashRead \ 3609 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr, uint8_t * pui8Data, \ 3610 uint32_t ui32Count)) ROM_SPIFLASHTABLE[5]) 3611#endif 3612#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3613 defined(TARGET_IS_TM4C129_RA2 ) 3614#define ROM_SPIFlashReadNonBlocking \ 3615 ((void (*)(tSPIFlashState * pState, uint32_t ui32Base, uint32_t ui32Addr, \ 3616 uint8_t * pui8Data, uint32_t ui32Count, bool bUseDMA, \ 3617 uint32_t ui32TxChannel, uint32_t ui32RxChannel)) \ 3618 ROM_SPIFLASHTABLE[6]) 3619#endif 3620#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3621 defined(TARGET_IS_TM4C129_RA2 ) 3622#define ROM_SPIFlashWriteDisable \ 3623 ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[7]) 3624#endif 3625#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3626 defined(TARGET_IS_TM4C129_RA2 ) 3627#define ROM_SPIFlashReadStatus \ 3628 ((uint8_t(*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[8]) 3629#endif 3630#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3631 defined(TARGET_IS_TM4C129_RA2 ) 3632#define ROM_SPIFlashWriteEnable \ 3633 ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[9]) 3634#endif 3635#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3636 defined(TARGET_IS_TM4C129_RA2 ) 3637#define ROM_SPIFlashFastRead \ 3638 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr, uint8_t * pui8Data, \ 3639 uint32_t ui32Count)) ROM_SPIFLASHTABLE[10]) 3640#endif 3641#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3642 defined(TARGET_IS_TM4C129_RA2 ) 3643#define ROM_SPIFlashFastReadNonBlocking \ 3644 ((void (*)(tSPIFlashState * pState, uint32_t ui32Base, uint32_t ui32Addr, \ 3645 uint8_t * pui8Data, uint32_t ui32Count, bool bUseDMA, \ 3646 uint32_t ui32TxChannel, uint32_t ui32RxChannel)) \ 3647 ROM_SPIFLASHTABLE[11]) 3648#endif 3649#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3650 defined(TARGET_IS_TM4C129_RA2 ) 3651#define ROM_SPIFlashSectorErase \ 3652 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr))ROM_SPIFLASHTABLE[12]) 3653#endif 3654#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3655 defined(TARGET_IS_TM4C129_RA2 ) 3656#define ROM_SPIFlashDualRead \ 3657 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr, uint8_t * pui8Data, \ 3658 uint32_t ui32Count)) ROM_SPIFLASHTABLE[13]) 3659#endif 3660#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3661 defined(TARGET_IS_TM4C129_RA2 ) 3662#define ROM_SPIFlashDualReadNonBlocking \ 3663 ((void (*)(tSPIFlashState * pState, uint32_t ui32Base, uint32_t ui32Addr, \ 3664 uint8_t * pui8Data, uint32_t ui32Count, bool bUseDMA, \ 3665 uint32_t ui32TxChannel, uint32_t ui32RxChannel)) \ 3666 ROM_SPIFLASHTABLE[14]) 3667#endif 3668#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3669 defined(TARGET_IS_TM4C129_RA2 ) 3670#define ROM_SPIFlashBlockErase32 \ 3671 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr))ROM_SPIFLASHTABLE[15]) 3672#endif 3673#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3674 defined(TARGET_IS_TM4C129_RA2 ) 3675#define ROM_SPIFlashQuadRead \ 3676 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr, uint8_t * pui8Data, \ 3677 uint32_t ui32Count)) ROM_SPIFLASHTABLE[16]) 3678#endif 3679#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3680 defined(TARGET_IS_TM4C129_RA2 ) 3681#define ROM_SPIFlashQuadReadNonBlocking \ 3682 ((void (*)(tSPIFlashState * pState, uint32_t ui32Base, uint32_t ui32Addr, \ 3683 uint8_t * pui8Data, uint32_t ui32Count, bool bUseDMA, \ 3684 uint32_t ui32TxChannel, uint32_t ui32RxChannel)) \ 3685 ROM_SPIFLASHTABLE[17]) 3686#endif 3687#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3688 defined(TARGET_IS_TM4C129_RA2 ) 3689#define ROM_SPIFlashReadID \ 3690 ((void (*)(uint32_t ui32Base, uint8_t * pui8ManufacturerID, \ 3691 uint16_t * pui16DeviceID)) ROM_SPIFLASHTABLE[18]) 3692#endif 3693#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3694 defined(TARGET_IS_TM4C129_RA2 ) 3695#define ROM_SPIFlashChipErase \ 3696 ((void (*)(uint32_t ui32Base))ROM_SPIFLASHTABLE[19]) 3697#endif 3698#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3699 defined(TARGET_IS_TM4C129_RA2 ) 3700#define ROM_SPIFlashBlockErase64 \ 3701 ((void (*)(uint32_t ui32Base, uint32_t ui32Addr))ROM_SPIFLASHTABLE[20]) 3702#endif 3703 3704//***************************************************************************** 3705// 3706// Macros for calling ROM functions in the SSI API. 3707// 3708//***************************************************************************** 3709#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3710 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3711 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3712 defined(TARGET_IS_TM4C129_RA2 ) 3713#define ROM_SSIDataPut \ 3714 ((void (*)(uint32_t ui32Base, uint32_t ui32Data))ROM_SSITABLE[0]) 3715#endif 3716#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3717 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3718 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3719 defined(TARGET_IS_TM4C129_RA2 ) 3720#define ROM_SSIConfigSetExpClk \ 3721 ((void (*)(uint32_t ui32Base, uint32_t ui32SSIClk, uint32_t ui32Protocol, \ 3722 uint32_t ui32Mode, uint32_t ui32BitRate, \ 3723 uint32_t ui32DataWidth))ROM_SSITABLE[1]) 3724#endif 3725#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3726 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3727 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3728 defined(TARGET_IS_TM4C129_RA2 ) 3729#define ROM_SSIEnable ((void (*)(uint32_t ui32Base))ROM_SSITABLE[2]) 3730#endif 3731#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3732 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3733 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3734 defined(TARGET_IS_TM4C129_RA2 ) 3735#define ROM_SSIDisable ((void (*)(uint32_t ui32Base))ROM_SSITABLE[3]) 3736#endif 3737#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3738 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3739 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3740 defined(TARGET_IS_TM4C129_RA2 ) 3741#define ROM_SSIIntEnable \ 3742 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SSITABLE[4]) 3743#endif 3744#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3745 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3746 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3747 defined(TARGET_IS_TM4C129_RA2 ) 3748#define ROM_SSIIntDisable \ 3749 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SSITABLE[5]) 3750#endif 3751#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3752 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3753 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3754 defined(TARGET_IS_TM4C129_RA2 ) 3755#define ROM_SSIIntStatus \ 3756 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_SSITABLE[6]) 3757#endif 3758#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3759 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3760 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3761 defined(TARGET_IS_TM4C129_RA2 ) 3762#define ROM_SSIIntClear \ 3763 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_SSITABLE[7]) 3764#endif 3765#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3766 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3767 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3768 defined(TARGET_IS_TM4C129_RA2 ) 3769#define ROM_SSIDataPutNonBlocking \ 3770 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32Data))ROM_SSITABLE[8]) 3771#endif 3772#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3773 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3774 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3775 defined(TARGET_IS_TM4C129_RA2 ) 3776#define ROM_SSIDataGet \ 3777 ((void (*)(uint32_t ui32Base, uint32_t * pui32Data)) ROM_SSITABLE[9]) 3778#endif 3779#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3780 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3781 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3782 defined(TARGET_IS_TM4C129_RA2 ) 3783#define ROM_SSIDataGetNonBlocking \ 3784 ((int32_t(*)(uint32_t ui32Base, uint32_t * pui32Data)) ROM_SSITABLE[10]) 3785#endif 3786#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3787 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3788 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3789 defined(TARGET_IS_TM4C129_RA2 ) 3790#define ROM_UpdateSSI ((void (*)(void))ROM_SSITABLE[11]) 3791#endif 3792#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3793 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3794 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3795 defined(TARGET_IS_TM4C129_RA2 ) 3796#define ROM_SSIDMAEnable \ 3797 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_SSITABLE[12]) 3798#endif 3799#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3800 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3801 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3802 defined(TARGET_IS_TM4C129_RA2 ) 3803#define ROM_SSIDMADisable \ 3804 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_SSITABLE[13]) 3805#endif 3806#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3807 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3808 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3809 defined(TARGET_IS_TM4C129_RA2 ) 3810#define ROM_SSIBusy ((bool (*)(uint32_t ui32Base))ROM_SSITABLE[14]) 3811#endif 3812#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3813 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3814 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3815 defined(TARGET_IS_TM4C129_RA2 ) 3816#define ROM_SSIClockSourceGet ((uint32_t(*)(uint32_t ui32Base))ROM_SSITABLE[15]) 3817#endif 3818#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3819 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3820 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3821 defined(TARGET_IS_TM4C129_RA2 ) 3822#define ROM_SSIClockSourceSet \ 3823 ((void (*)(uint32_t ui32Base, uint32_t ui32Source))ROM_SSITABLE[16]) 3824#endif 3825#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3826 defined(TARGET_IS_TM4C129_RA2 ) 3827#define ROM_SSIAdvModeSet \ 3828 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_SSITABLE[17]) 3829#endif 3830#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3831 defined(TARGET_IS_TM4C129_RA2 ) 3832#define ROM_SSIAdvDataPutFrameEnd \ 3833 ((void (*)(uint32_t ui32Base, uint32_t ui32Data))ROM_SSITABLE[18]) 3834#endif 3835#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3836 defined(TARGET_IS_TM4C129_RA2 ) 3837#define ROM_SSIAdvDataPutFrameEndNonBlocking \ 3838 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32Data))ROM_SSITABLE[19]) 3839#endif 3840#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3841 defined(TARGET_IS_TM4C129_RA2 ) 3842#define ROM_SSIAdvFrameHoldEnable \ 3843 ((void (*)(uint32_t ui32Base))ROM_SSITABLE[20]) 3844#endif 3845#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3846 defined(TARGET_IS_TM4C129_RA2 ) 3847#define ROM_SSIAdvFrameHoldDisable \ 3848 ((void (*)(uint32_t ui32Base))ROM_SSITABLE[21]) 3849#endif 3850 3851//***************************************************************************** 3852// 3853// Macros for calling ROM functions in the SysCtl API. 3854// 3855//***************************************************************************** 3856#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3857 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3858 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3859 defined(TARGET_IS_TM4C129_RA2 ) 3860#define ROM_SysCtlSleep ((void (*)(void))ROM_SYSCTLTABLE[0]) 3861#endif 3862#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3863 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3864 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3865 defined(TARGET_IS_TM4C129_RA2 ) 3866#define ROM_SysCtlSRAMSizeGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[1]) 3867#endif 3868#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3869 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3870 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3871 defined(TARGET_IS_TM4C129_RA2 ) 3872#define ROM_SysCtlFlashSizeGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[2]) 3873#endif 3874#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3875 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3876 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3877 defined(TARGET_IS_TM4C129_RA2 ) 3878#define ROM_SysCtlPeripheralPresent \ 3879 ((bool (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[4]) 3880#endif 3881#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3882 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3883 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3884 defined(TARGET_IS_TM4C129_RA2 ) 3885#define ROM_SysCtlPeripheralReset \ 3886 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[5]) 3887#endif 3888#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3889 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3890 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3891 defined(TARGET_IS_TM4C129_RA2 ) 3892#define ROM_SysCtlPeripheralEnable \ 3893 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[6]) 3894#endif 3895#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3896 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3897 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3898 defined(TARGET_IS_TM4C129_RA2 ) 3899#define ROM_SysCtlPeripheralDisable \ 3900 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[7]) 3901#endif 3902#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3903 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3904 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3905 defined(TARGET_IS_TM4C129_RA2 ) 3906#define ROM_SysCtlPeripheralSleepEnable \ 3907 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[8]) 3908#endif 3909#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3910 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3911 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3912 defined(TARGET_IS_TM4C129_RA2 ) 3913#define ROM_SysCtlPeripheralSleepDisable \ 3914 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[9]) 3915#endif 3916#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3917 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3918 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3919 defined(TARGET_IS_TM4C129_RA2 ) 3920#define ROM_SysCtlPeripheralDeepSleepEnable \ 3921 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[10]) 3922#endif 3923#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3924 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3925 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3926 defined(TARGET_IS_TM4C129_RA2 ) 3927#define ROM_SysCtlPeripheralDeepSleepDisable \ 3928 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[11]) 3929#endif 3930#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3931 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3932 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3933 defined(TARGET_IS_TM4C129_RA2 ) 3934#define ROM_SysCtlPeripheralClockGating \ 3935 ((void (*)(bool bEnable))ROM_SYSCTLTABLE[12]) 3936#endif 3937#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3938 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3939 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3940 defined(TARGET_IS_TM4C129_RA2 ) 3941#define ROM_SysCtlIntEnable ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[13]) 3942#endif 3943#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3944 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3945 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3946 defined(TARGET_IS_TM4C129_RA2 ) 3947#define ROM_SysCtlIntDisable ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[14]) 3948#endif 3949#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3950 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3951 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3952 defined(TARGET_IS_TM4C129_RA2 ) 3953#define ROM_SysCtlIntClear ((void (*)(uint32_t ui32Ints))ROM_SYSCTLTABLE[15]) 3954#endif 3955#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3956 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3957 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3958 defined(TARGET_IS_TM4C129_RA2 ) 3959#define ROM_SysCtlIntStatus ((uint32_t(*)(bool bMasked))ROM_SYSCTLTABLE[16]) 3960#endif 3961#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3962 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3963 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3964 defined(TARGET_IS_TM4C129_RA2 ) 3965#define ROM_SysCtlReset ((void (*)(void))ROM_SYSCTLTABLE[19]) 3966#endif 3967#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3968 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3969 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3970 defined(TARGET_IS_TM4C129_RA2 ) 3971#define ROM_SysCtlDeepSleep ((void (*)(void))ROM_SYSCTLTABLE[20]) 3972#endif 3973#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3974 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3975 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3976 defined(TARGET_IS_TM4C129_RA2 ) 3977#define ROM_SysCtlResetCauseGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[21]) 3978#endif 3979#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3980 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 3981 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 3982 defined(TARGET_IS_TM4C129_RA2 ) 3983#define ROM_SysCtlResetCauseClear \ 3984 ((void (*)(uint32_t ui32Causes))ROM_SYSCTLTABLE[22]) 3985#endif 3986#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3987 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 3988#define ROM_SysCtlClockSet ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[23]) 3989#endif 3990#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3991 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 3992#define ROM_SysCtlClockGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[24]) 3993#endif 3994#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 3995 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 3996#define ROM_SysCtlPWMClockSet \ 3997 ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[25]) 3998#endif 3999#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4000 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4001#define ROM_SysCtlPWMClockGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[26]) 4002#endif 4003#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4004 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4005#define ROM_SysCtlUSBPLLEnable ((void (*)(void))ROM_SYSCTLTABLE[31]) 4006#endif 4007#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4008 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4009#define ROM_SysCtlUSBPLLDisable ((void (*)(void))ROM_SYSCTLTABLE[32]) 4010#endif 4011#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4012 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4013 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4014 defined(TARGET_IS_TM4C129_RA2 ) 4015#define ROM_SysCtlDelay ((void (*)(uint32_t ui32Count))ROM_SYSCTLTABLE[34]) 4016#endif 4017#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4018 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4019 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4020 defined(TARGET_IS_TM4C129_RA2 ) 4021#define ROM_SysCtlPeripheralReady \ 4022 ((bool (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[35]) 4023#endif 4024#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4025 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4026 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4027 defined(TARGET_IS_TM4C129_RA2 ) 4028#define ROM_SysCtlPeripheralPowerOn \ 4029 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[36]) 4030#endif 4031#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4032 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4033 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4034 defined(TARGET_IS_TM4C129_RA2 ) 4035#define ROM_SysCtlPeripheralPowerOff \ 4036 ((void (*)(uint32_t ui32Peripheral))ROM_SYSCTLTABLE[37]) 4037#endif 4038#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4039 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4040 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4041 defined(TARGET_IS_TM4C129_RA2 ) 4042#define ROM_SysCtlMOSCConfigSet \ 4043 ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[44]) 4044#endif 4045#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4046 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4047 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4048 defined(TARGET_IS_TM4C129_RA2 ) 4049#define ROM_SysCtlPIOSCCalibrate \ 4050 ((uint32_t(*)(uint32_t ui32Type))ROM_SYSCTLTABLE[45]) 4051#endif 4052#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4053 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4054#define ROM_SysCtlDeepSleepClockSet \ 4055 ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[46]) 4056#endif 4057#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4058 defined(TARGET_IS_TM4C129_RA2 ) 4059#define ROM_SysCtlDeepSleepClockConfigSet \ 4060 ((void (*)(uint32_t ui32Div, uint32_t ui32Config))ROM_SYSCTLTABLE[47]) 4061#endif 4062#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4063 defined(TARGET_IS_TM4C129_RA2 ) 4064#define ROM_SysCtlResetBehaviorSet \ 4065 ((void (*)(uint32_t ui32Behavior))ROM_SYSCTLTABLE[51]) 4066#endif 4067#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4068 defined(TARGET_IS_TM4C129_RA2 ) 4069#define ROM_SysCtlResetBehaviorGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[52]) 4070#endif 4071#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4072 defined(TARGET_IS_TM4C129_RA2 ) 4073#define ROM_SysCtlFlashSectorSizeGet ((uint32_t(*)(void))ROM_SYSCTLTABLE[54]) 4074#endif 4075#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 4076 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 4077#define ROM_SysCtlVoltageEventConfig \ 4078 ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[55]) 4079#endif 4080#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4081 defined(TARGET_IS_TM4C129_RA2 ) 4082#define ROM_SysCtlVoltageEventStatus ((uint32_t(*)(void))ROM_SYSCTLTABLE[56]) 4083#endif 4084#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4085 defined(TARGET_IS_TM4C129_RA2 ) 4086#define ROM_SysCtlVoltageEventClear \ 4087 ((void (*)(uint32_t ui32Status))ROM_SYSCTLTABLE[57]) 4088#endif 4089#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4090 defined(TARGET_IS_TM4C129_RA2 ) 4091#define ROM_SysCtlNMIStatus ((uint32_t(*)(void))ROM_SYSCTLTABLE[58]) 4092#endif 4093#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4094 defined(TARGET_IS_TM4C129_RA2 ) 4095#define ROM_SysCtlNMIClear ((void (*)(uint32_t ui32Status))ROM_SYSCTLTABLE[59]) 4096#endif 4097#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4098 defined(TARGET_IS_TM4C129_RA2 ) 4099#define ROM_SysCtlClockOutConfig \ 4100 ((void (*)(uint32_t ui32Config, uint32_t ui32Div))ROM_SYSCTLTABLE[60]) 4101#endif 4102#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4103 defined(TARGET_IS_TM4C129_RA2 ) 4104#define ROM_SysCtlAltClkConfig \ 4105 ((void (*)(uint32_t ui32Config))ROM_SYSCTLTABLE[61]) 4106#endif 4107 4108//***************************************************************************** 4109// 4110// Macros for calling ROM functions in the SysExc API. 4111// 4112//***************************************************************************** 4113#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4114 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4115 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4116 defined(TARGET_IS_TM4C129_RA2 ) 4117#define ROM_SysExcIntStatus ((uint32_t(*)(bool bMasked))ROM_SYSEXCTABLE[0]) 4118#endif 4119#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4120 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4121 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4122 defined(TARGET_IS_TM4C129_RA2 ) 4123#define ROM_SysExcIntClear ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[1]) 4124#endif 4125#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4126 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4127 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4128 defined(TARGET_IS_TM4C129_RA2 ) 4129#define ROM_SysExcIntDisable \ 4130 ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[2]) 4131#endif 4132#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4133 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4134 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4135 defined(TARGET_IS_TM4C129_RA2 ) 4136#define ROM_SysExcIntEnable \ 4137 ((void (*)(uint32_t ui32IntFlags))ROM_SYSEXCTABLE[3]) 4138#endif 4139 4140//***************************************************************************** 4141// 4142// Macros for calling ROM functions in the SysTick API. 4143// 4144//***************************************************************************** 4145#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4146 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4147 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4148 defined(TARGET_IS_TM4C129_RA2 ) 4149#define ROM_SysTickValueGet ((uint32_t(*)(void))ROM_SYSTICKTABLE[0]) 4150#endif 4151#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4152 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4153 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4154 defined(TARGET_IS_TM4C129_RA2 ) 4155#define ROM_SysTickEnable ((void (*)(void))ROM_SYSTICKTABLE[1]) 4156#endif 4157#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4158 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4159 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4160 defined(TARGET_IS_TM4C129_RA2 ) 4161#define ROM_SysTickDisable ((void (*)(void))ROM_SYSTICKTABLE[2]) 4162#endif 4163#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4164 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4165 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4166 defined(TARGET_IS_TM4C129_RA2 ) 4167#define ROM_SysTickIntEnable ((void (*)(void))ROM_SYSTICKTABLE[3]) 4168#endif 4169#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4170 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4171 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4172 defined(TARGET_IS_TM4C129_RA2 ) 4173#define ROM_SysTickIntDisable ((void (*)(void))ROM_SYSTICKTABLE[4]) 4174#endif 4175#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4176 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4177 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4178 defined(TARGET_IS_TM4C129_RA2 ) 4179#define ROM_SysTickPeriodSet \ 4180 ((void (*)(uint32_t ui32Period))ROM_SYSTICKTABLE[5]) 4181#endif 4182#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4183 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4184 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4185 defined(TARGET_IS_TM4C129_RA2 ) 4186#define ROM_SysTickPeriodGet ((uint32_t(*)(void))ROM_SYSTICKTABLE[6]) 4187#endif 4188 4189//***************************************************************************** 4190// 4191// Macros for calling ROM functions in the Timer API. 4192// 4193//***************************************************************************** 4194#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4195 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4196 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4197 defined(TARGET_IS_TM4C129_RA2 ) 4198#define ROM_TimerIntClear \ 4199 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_TIMERTABLE[0]) 4200#endif 4201#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4202 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4203 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4204 defined(TARGET_IS_TM4C129_RA2 ) 4205#define ROM_TimerEnable \ 4206 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[1]) 4207#endif 4208#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4209 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4210 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4211 defined(TARGET_IS_TM4C129_RA2 ) 4212#define ROM_TimerDisable \ 4213 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[2]) 4214#endif 4215#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4216 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4217 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4218 defined(TARGET_IS_TM4C129_RA2 ) 4219#define ROM_TimerConfigure \ 4220 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_TIMERTABLE[3]) 4221#endif 4222#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4223 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4224 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4225 defined(TARGET_IS_TM4C129_RA2 ) 4226#define ROM_TimerControlLevel \ 4227 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4228 bool bInvert))ROM_TIMERTABLE[4]) 4229#endif 4230#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4231 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4232 defined(TARGET_IS_TM4C129_RA1 ) 4233#define ROM_TimerControlTrigger \ 4234 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4235 bool bEnable))ROM_TIMERTABLE[5]) 4236#endif 4237#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4238 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4239 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4240 defined(TARGET_IS_TM4C129_RA2 ) 4241#define ROM_TimerControlEvent \ 4242 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4243 uint32_t ui32Event))ROM_TIMERTABLE[6]) 4244#endif 4245#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4246 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4247 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4248 defined(TARGET_IS_TM4C129_RA2 ) 4249#define ROM_TimerControlStall \ 4250 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4251 bool bStall))ROM_TIMERTABLE[7]) 4252#endif 4253#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4254 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4255 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4256 defined(TARGET_IS_TM4C129_RA2 ) 4257#define ROM_TimerRTCEnable ((void (*)(uint32_t ui32Base))ROM_TIMERTABLE[8]) 4258#endif 4259#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4260 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4261 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4262 defined(TARGET_IS_TM4C129_RA2 ) 4263#define ROM_TimerRTCDisable ((void (*)(uint32_t ui32Base))ROM_TIMERTABLE[9]) 4264#endif 4265#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4266 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4267 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4268 defined(TARGET_IS_TM4C129_RA2 ) 4269#define ROM_TimerPrescaleSet \ 4270 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4271 uint32_t ui32Value))ROM_TIMERTABLE[10]) 4272#endif 4273#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4274 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4275 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4276 defined(TARGET_IS_TM4C129_RA2 ) 4277#define ROM_TimerPrescaleGet \ 4278 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[11]) 4279#endif 4280#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4281 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4282 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4283 defined(TARGET_IS_TM4C129_RA2 ) 4284#define ROM_TimerPrescaleMatchSet \ 4285 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4286 uint32_t ui32Value))ROM_TIMERTABLE[12]) 4287#endif 4288#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4289 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4290 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4291 defined(TARGET_IS_TM4C129_RA2 ) 4292#define ROM_TimerPrescaleMatchGet \ 4293 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[13]) 4294#endif 4295#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4296 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4297 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4298 defined(TARGET_IS_TM4C129_RA2 ) 4299#define ROM_TimerLoadSet \ 4300 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4301 uint32_t ui32Value))ROM_TIMERTABLE[14]) 4302#endif 4303#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4304 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4305 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4306 defined(TARGET_IS_TM4C129_RA2 ) 4307#define ROM_TimerLoadGet \ 4308 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[15]) 4309#endif 4310#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4311 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4312 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4313 defined(TARGET_IS_TM4C129_RA2 ) 4314#define ROM_TimerValueGet \ 4315 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[16]) 4316#endif 4317#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4318 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4319 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4320 defined(TARGET_IS_TM4C129_RA2 ) 4321#define ROM_TimerMatchSet \ 4322 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4323 uint32_t ui32Value))ROM_TIMERTABLE[17]) 4324#endif 4325#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4326 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4327 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4328 defined(TARGET_IS_TM4C129_RA2 ) 4329#define ROM_TimerMatchGet \ 4330 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Timer))ROM_TIMERTABLE[18]) 4331#endif 4332#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4333 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4334 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4335 defined(TARGET_IS_TM4C129_RA2 ) 4336#define ROM_TimerIntEnable \ 4337 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_TIMERTABLE[19]) 4338#endif 4339#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4340 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4341 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4342 defined(TARGET_IS_TM4C129_RA2 ) 4343#define ROM_TimerIntDisable \ 4344 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_TIMERTABLE[20]) 4345#endif 4346#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4347 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4348 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4349 defined(TARGET_IS_TM4C129_RA2 ) 4350#define ROM_TimerIntStatus \ 4351 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_TIMERTABLE[21]) 4352#endif 4353#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4354 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4355 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4356 defined(TARGET_IS_TM4C129_RA2 ) 4357#define ROM_TimerControlWaitOnTrigger \ 4358 ((void (*)(uint32_t ui32Base, uint32_t ui32Timer, \ 4359 bool bWait))ROM_TIMERTABLE[22]) 4360#endif 4361#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4362 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4363#define ROM_TimerLoadSet64 \ 4364 ((void (*)(uint32_t ui32Base, uint64_t ui64Value))ROM_TIMERTABLE[23]) 4365#endif 4366#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4367 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4368#define ROM_TimerLoadGet64 ((uint64_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[24]) 4369#endif 4370#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4371 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4372#define ROM_TimerValueGet64 ((uint64_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[25]) 4373#endif 4374#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4375 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4376#define ROM_TimerMatchSet64 \ 4377 ((void (*)(uint32_t ui32Base, uint64_t ui64Value))ROM_TIMERTABLE[26]) 4378#endif 4379#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4380 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 ) 4381#define ROM_TimerMatchGet64 ((uint64_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[27]) 4382#endif 4383#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4384 defined(TARGET_IS_TM4C129_RA2 ) 4385#define ROM_TimerClockSourceGet \ 4386 ((uint32_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[28]) 4387#endif 4388#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4389 defined(TARGET_IS_TM4C129_RA2 ) 4390#define ROM_TimerClockSourceSet \ 4391 ((void (*)(uint32_t ui32Base, uint32_t ui32Source))ROM_TIMERTABLE[29]) 4392#endif 4393#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4394 defined(TARGET_IS_TM4C129_RA2 ) 4395#define ROM_TimerADCEventGet \ 4396 ((uint32_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[30]) 4397#endif 4398#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4399 defined(TARGET_IS_TM4C129_RA2 ) 4400#define ROM_TimerADCEventSet \ 4401 ((void (*)(uint32_t ui32Base, uint32_t ui32ADCEvent))ROM_TIMERTABLE[31]) 4402#endif 4403#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4404 defined(TARGET_IS_TM4C129_RA2 ) 4405#define ROM_TimerDMAEventGet \ 4406 ((uint32_t(*)(uint32_t ui32Base))ROM_TIMERTABLE[32]) 4407#endif 4408#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4409 defined(TARGET_IS_TM4C129_RA2 ) 4410#define ROM_TimerDMAEventSet \ 4411 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAEvent))ROM_TIMERTABLE[33]) 4412#endif 4413#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4414 defined(TARGET_IS_TM4C129_RA2 ) 4415#define ROM_TimerSynchronize \ 4416 ((void (*)(uint32_t ui32Base, uint32_t ui32Timers))ROM_TIMERTABLE[34]) 4417#endif 4418 4419//***************************************************************************** 4420// 4421// Macros for calling ROM functions in the UART API. 4422// 4423//***************************************************************************** 4424#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4425 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4426 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4427 defined(TARGET_IS_TM4C129_RA2 ) 4428#define ROM_UARTCharPut \ 4429 ((void (*)(uint32_t ui32Base, unsigned char ucData))ROM_UARTTABLE[0]) 4430#endif 4431#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4432 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4433 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4434 defined(TARGET_IS_TM4C129_RA2 ) 4435#define ROM_UARTParityModeSet \ 4436 ((void (*)(uint32_t ui32Base, uint32_t ui32Parity))ROM_UARTTABLE[1]) 4437#endif 4438#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4439 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4440 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4441 defined(TARGET_IS_TM4C129_RA2 ) 4442#define ROM_UARTParityModeGet ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[2]) 4443#endif 4444#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4445 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4446 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4447 defined(TARGET_IS_TM4C129_RA2 ) 4448#define ROM_UARTFIFOLevelSet \ 4449 ((void (*)(uint32_t ui32Base, uint32_t ui32TxLevel, \ 4450 uint32_t ui32RxLevel))ROM_UARTTABLE[3]) 4451#endif 4452#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4453 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4454 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4455 defined(TARGET_IS_TM4C129_RA2 ) 4456#define ROM_UARTFIFOLevelGet \ 4457 ((void (*)(uint32_t ui32Base, uint32_t * pui32TxLevel, \ 4458 uint32_t * pui32RxLevel)) ROM_UARTTABLE[4]) 4459#endif 4460#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4461 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4462 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4463 defined(TARGET_IS_TM4C129_RA2 ) 4464#define ROM_UARTConfigSetExpClk \ 4465 ((void (*)(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, \ 4466 uint32_t ui32Config))ROM_UARTTABLE[5]) 4467#endif 4468#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4469 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4470 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4471 defined(TARGET_IS_TM4C129_RA2 ) 4472#define ROM_UARTConfigGetExpClk \ 4473 ((void (*)(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t * pui32Baud, \ 4474 uint32_t * pui32Config)) ROM_UARTTABLE[6]) 4475#endif 4476#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4477 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4478 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4479 defined(TARGET_IS_TM4C129_RA2 ) 4480#define ROM_UARTEnable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[7]) 4481#endif 4482#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4483 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4484 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4485 defined(TARGET_IS_TM4C129_RA2 ) 4486#define ROM_UARTDisable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[8]) 4487#endif 4488#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4489 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4490 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4491 defined(TARGET_IS_TM4C129_RA2 ) 4492#define ROM_UARTEnableSIR \ 4493 ((void (*)(uint32_t ui32Base, bool bLowPower))ROM_UARTTABLE[9]) 4494#endif 4495#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4496 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4497 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4498 defined(TARGET_IS_TM4C129_RA2 ) 4499#define ROM_UARTDisableSIR ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[10]) 4500#endif 4501#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4502 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4503 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4504 defined(TARGET_IS_TM4C129_RA2 ) 4505#define ROM_UARTCharsAvail ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[11]) 4506#endif 4507#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4508 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4509 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4510 defined(TARGET_IS_TM4C129_RA2 ) 4511#define ROM_UARTSpaceAvail ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[12]) 4512#endif 4513#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4514 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4515 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4516 defined(TARGET_IS_TM4C129_RA2 ) 4517#define ROM_UARTCharGetNonBlocking \ 4518 ((int32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[13]) 4519#endif 4520#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4521 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4522 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4523 defined(TARGET_IS_TM4C129_RA2 ) 4524#define ROM_UARTCharGet ((int32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[14]) 4525#endif 4526#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4527 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4528 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4529 defined(TARGET_IS_TM4C129_RA2 ) 4530#define ROM_UARTCharPutNonBlocking \ 4531 ((bool (*)(uint32_t ui32Base, unsigned char ucData))ROM_UARTTABLE[15]) 4532#endif 4533#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4534 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4535 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4536 defined(TARGET_IS_TM4C129_RA2 ) 4537#define ROM_UARTBreakCtl \ 4538 ((void (*)(uint32_t ui32Base, bool bBreakState))ROM_UARTTABLE[16]) 4539#endif 4540#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4541 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4542 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4543 defined(TARGET_IS_TM4C129_RA2 ) 4544#define ROM_UARTIntEnable \ 4545 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_UARTTABLE[17]) 4546#endif 4547#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4548 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4549 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4550 defined(TARGET_IS_TM4C129_RA2 ) 4551#define ROM_UARTIntDisable \ 4552 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_UARTTABLE[18]) 4553#endif 4554#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4555 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4556 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4557 defined(TARGET_IS_TM4C129_RA2 ) 4558#define ROM_UARTIntStatus \ 4559 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_UARTTABLE[19]) 4560#endif 4561#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4562 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4563 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4564 defined(TARGET_IS_TM4C129_RA2 ) 4565#define ROM_UARTIntClear \ 4566 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_UARTTABLE[20]) 4567#endif 4568#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4569 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4570 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4571 defined(TARGET_IS_TM4C129_RA2 ) 4572#define ROM_UpdateUART ((void (*)(void))ROM_UARTTABLE[21]) 4573#endif 4574#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4575 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4576 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4577 defined(TARGET_IS_TM4C129_RA2 ) 4578#define ROM_UARTDMAEnable \ 4579 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_UARTTABLE[22]) 4580#endif 4581#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4582 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4583 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4584 defined(TARGET_IS_TM4C129_RA2 ) 4585#define ROM_UARTDMADisable \ 4586 ((void (*)(uint32_t ui32Base, uint32_t ui32DMAFlags))ROM_UARTTABLE[23]) 4587#endif 4588#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4589 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4590 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4591 defined(TARGET_IS_TM4C129_RA2 ) 4592#define ROM_UARTFIFOEnable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[24]) 4593#endif 4594#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4595 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4596 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4597 defined(TARGET_IS_TM4C129_RA2 ) 4598#define ROM_UARTFIFODisable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[25]) 4599#endif 4600#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4601 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4602 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4603 defined(TARGET_IS_TM4C129_RA2 ) 4604#define ROM_UARTBusy ((bool (*)(uint32_t ui32Base))ROM_UARTTABLE[26]) 4605#endif 4606#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4607 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4608 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4609 defined(TARGET_IS_TM4C129_RA2 ) 4610#define ROM_UARTTxIntModeSet \ 4611 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_UARTTABLE[27]) 4612#endif 4613#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4614 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4615 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4616 defined(TARGET_IS_TM4C129_RA2 ) 4617#define ROM_UARTTxIntModeGet ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[28]) 4618#endif 4619#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4620 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4621 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4622 defined(TARGET_IS_TM4C129_RA2 ) 4623#define ROM_UARTRxErrorGet ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[29]) 4624#endif 4625#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4626 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4627 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4628 defined(TARGET_IS_TM4C129_RA2 ) 4629#define ROM_UARTRxErrorClear ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[30]) 4630#endif 4631#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4632 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4633 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4634 defined(TARGET_IS_TM4C129_RA2 ) 4635#define ROM_UARTClockSourceSet \ 4636 ((void (*)(uint32_t ui32Base, uint32_t ui32Source))ROM_UARTTABLE[31]) 4637#endif 4638#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4639 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4640 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4641 defined(TARGET_IS_TM4C129_RA2 ) 4642#define ROM_UARTClockSourceGet \ 4643 ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[32]) 4644#endif 4645#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4646 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4647 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4648 defined(TARGET_IS_TM4C129_RA2 ) 4649#define ROM_UART9BitEnable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[33]) 4650#endif 4651#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4652 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4653 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4654 defined(TARGET_IS_TM4C129_RA2 ) 4655#define ROM_UART9BitDisable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[34]) 4656#endif 4657#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4658 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4659 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4660 defined(TARGET_IS_TM4C129_RA2 ) 4661#define ROM_UART9BitAddrSet \ 4662 ((void (*)(uint32_t ui32Base, uint8_t ui8Addr, \ 4663 uint8_t ui8Mask))ROM_UARTTABLE[35]) 4664#endif 4665#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4666 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4667 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4668 defined(TARGET_IS_TM4C129_RA2 ) 4669#define ROM_UART9BitAddrSend \ 4670 ((void (*)(uint32_t ui32Base, uint8_t ui8Addr))ROM_UARTTABLE[36]) 4671#endif 4672#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4673 defined(TARGET_IS_TM4C129_RA2 ) 4674#define ROM_UARTSmartCardDisable \ 4675 ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[37]) 4676#endif 4677#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4678 defined(TARGET_IS_TM4C129_RA2 ) 4679#define ROM_UARTSmartCardEnable ((void (*)(uint32_t ui32Base))ROM_UARTTABLE[38]) 4680#endif 4681#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 4682 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 4683#define ROM_UARTModemControlClear \ 4684 ((void (*)(uint32_t ui32Base, uint32_t ui32Control))ROM_UARTTABLE[39]) 4685#endif 4686#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4687 defined(TARGET_IS_TM4C129_RA2 ) 4688#define ROM_UARTModemControlGet \ 4689 ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[40]) 4690#endif 4691#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4692 defined(TARGET_IS_TM4C129_RA2 ) 4693#define ROM_UARTModemControlSet \ 4694 ((void (*)(uint32_t ui32Base, uint32_t ui32Control))ROM_UARTTABLE[41]) 4695#endif 4696#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4697 defined(TARGET_IS_TM4C129_RA2 ) 4698#define ROM_UARTModemStatusGet \ 4699 ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[42]) 4700#endif 4701#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4702 defined(TARGET_IS_TM4C129_RA2 ) 4703#define ROM_UARTFlowControlGet \ 4704 ((uint32_t(*)(uint32_t ui32Base))ROM_UARTTABLE[43]) 4705#endif 4706#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4707 defined(TARGET_IS_TM4C129_RA2 ) 4708#define ROM_UARTFlowControlSet \ 4709 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_UARTTABLE[44]) 4710#endif 4711 4712//***************************************************************************** 4713// 4714// Macros for calling ROM functions in the uDMA API. 4715// 4716//***************************************************************************** 4717#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4718 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4719 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4720 defined(TARGET_IS_TM4C129_RA2 ) 4721#define ROM_uDMAChannelTransferSet \ 4722 ((void (*)(uint32_t ui32ChannelStructIndex, uint32_t ui32Mode, \ 4723 void* pvSrcAddr, void* pvDstAddr, \ 4724 uint32_t ui32TransferSize))ROM_UDMATABLE[0]) 4725#endif 4726#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4727 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4728 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4729 defined(TARGET_IS_TM4C129_RA2 ) 4730#define ROM_uDMAEnable ((void (*)(void))ROM_UDMATABLE[1]) 4731#endif 4732#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4733 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4734 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4735 defined(TARGET_IS_TM4C129_RA2 ) 4736#define ROM_uDMADisable ((void (*)(void))ROM_UDMATABLE[2]) 4737#endif 4738#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4739 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4740 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4741 defined(TARGET_IS_TM4C129_RA2 ) 4742#define ROM_uDMAErrorStatusGet ((uint32_t(*)(void))ROM_UDMATABLE[3]) 4743#endif 4744#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4745 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4746 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4747 defined(TARGET_IS_TM4C129_RA2 ) 4748#define ROM_uDMAErrorStatusClear ((void (*)(void))ROM_UDMATABLE[4]) 4749#endif 4750#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4751 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4752 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4753 defined(TARGET_IS_TM4C129_RA2 ) 4754#define ROM_uDMAChannelEnable \ 4755 ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[5]) 4756#endif 4757#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4758 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4759 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4760 defined(TARGET_IS_TM4C129_RA2 ) 4761#define ROM_uDMAChannelDisable \ 4762 ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[6]) 4763#endif 4764#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4765 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4766 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4767 defined(TARGET_IS_TM4C129_RA2 ) 4768#define ROM_uDMAChannelIsEnabled \ 4769 ((bool (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[7]) 4770#endif 4771#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4772 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4773 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4774 defined(TARGET_IS_TM4C129_RA2 ) 4775#define ROM_uDMAControlBaseSet ((void (*)(void* pControlTable))ROM_UDMATABLE[8]) 4776#endif 4777#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4778 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4779 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4780 defined(TARGET_IS_TM4C129_RA2 ) 4781#define ROM_uDMAControlBaseGet ((void* (*)(void))ROM_UDMATABLE[9]) 4782#endif 4783#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4784 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4785 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4786 defined(TARGET_IS_TM4C129_RA2 ) 4787#define ROM_uDMAChannelRequest \ 4788 ((void (*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[10]) 4789#endif 4790#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4791 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4792 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4793 defined(TARGET_IS_TM4C129_RA2 ) 4794#define ROM_uDMAChannelAttributeEnable \ 4795 ((void (*)(uint32_t ui32ChannelNum, uint32_t ui32Attr))ROM_UDMATABLE[11]) 4796#endif 4797#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4798 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4799 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4800 defined(TARGET_IS_TM4C129_RA2 ) 4801#define ROM_uDMAChannelAttributeDisable \ 4802 ((void (*)(uint32_t ui32ChannelNum, uint32_t ui32Attr))ROM_UDMATABLE[12]) 4803#endif 4804#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4805 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4806 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4807 defined(TARGET_IS_TM4C129_RA2 ) 4808#define ROM_uDMAChannelAttributeGet \ 4809 ((uint32_t(*)(uint32_t ui32ChannelNum))ROM_UDMATABLE[13]) 4810#endif 4811#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4812 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4813 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4814 defined(TARGET_IS_TM4C129_RA2 ) 4815#define ROM_uDMAChannelControlSet \ 4816 ((void (*)(uint32_t ui32ChannelStructIndex, \ 4817 uint32_t ui32Control))ROM_UDMATABLE[14]) 4818#endif 4819#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4820 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4821 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4822 defined(TARGET_IS_TM4C129_RA2 ) 4823#define ROM_uDMAChannelSizeGet \ 4824 ((uint32_t(*)(uint32_t ui32ChannelStructIndex))ROM_UDMATABLE[15]) 4825#endif 4826#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4827 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4828 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4829 defined(TARGET_IS_TM4C129_RA2 ) 4830#define ROM_uDMAChannelModeGet \ 4831 ((uint32_t(*)(uint32_t ui32ChannelStructIndex))ROM_UDMATABLE[16]) 4832#endif 4833#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4834 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4835 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4836 defined(TARGET_IS_TM4C129_RA2 ) 4837#define ROM_uDMAChannelSelectSecondary \ 4838 ((void (*)(uint32_t ui32SecPeriphs))ROM_UDMATABLE[17]) 4839#endif 4840#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4841 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4842 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4843 defined(TARGET_IS_TM4C129_RA2 ) 4844#define ROM_uDMAChannelSelectDefault \ 4845 ((void (*)(uint32_t ui32DefPeriphs))ROM_UDMATABLE[18]) 4846#endif 4847#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4848 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4849 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4850 defined(TARGET_IS_TM4C129_RA2 ) 4851#define ROM_uDMAIntStatus ((uint32_t(*)(void))ROM_UDMATABLE[19]) 4852#endif 4853#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4854 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4855 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4856 defined(TARGET_IS_TM4C129_RA2 ) 4857#define ROM_uDMAIntClear ((void (*)(uint32_t ui32ChanMask))ROM_UDMATABLE[20]) 4858#endif 4859#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4860 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4861 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4862 defined(TARGET_IS_TM4C129_RA2 ) 4863#define ROM_uDMAControlAlternateBaseGet ((void* (*)(void))ROM_UDMATABLE[21]) 4864#endif 4865#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4866 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4867 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4868 defined(TARGET_IS_TM4C129_RA2 ) 4869#define ROM_uDMAChannelScatterGatherSet \ 4870 ((void (*)(uint32_t ui32ChannelNum, uint32_t ui32TaskCount, \ 4871 void* pvTaskList, uint32_t ui32IsPeriphSG))ROM_UDMATABLE[22]) 4872#endif 4873#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4874 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4875 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4876 defined(TARGET_IS_TM4C129_RA2 ) 4877#define ROM_uDMAChannelAssign \ 4878 ((void (*)(uint32_t ui32Mapping))ROM_UDMATABLE[23]) 4879#endif 4880 4881//***************************************************************************** 4882// 4883// Macros for calling ROM functions in the USB API. 4884// 4885//***************************************************************************** 4886#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4887 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4888 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4889 defined(TARGET_IS_TM4C129_RA2 ) 4890#define ROM_USBDevAddrGet ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[1]) 4891#endif 4892#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4893 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4894 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4895 defined(TARGET_IS_TM4C129_RA2 ) 4896#define ROM_USBDevAddrSet \ 4897 ((void (*)(uint32_t ui32Base, uint32_t ui32Address))ROM_USBTABLE[2]) 4898#endif 4899#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4900 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4901 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4902 defined(TARGET_IS_TM4C129_RA2 ) 4903#define ROM_USBDevConnect ((void (*)(uint32_t ui32Base))ROM_USBTABLE[3]) 4904#endif 4905#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4906 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4907 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4908 defined(TARGET_IS_TM4C129_RA2 ) 4909#define ROM_USBDevDisconnect ((void (*)(uint32_t ui32Base))ROM_USBTABLE[4]) 4910#endif 4911#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4912 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4913 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4914 defined(TARGET_IS_TM4C129_RA2 ) 4915#define ROM_USBDevEndpointConfigSet \ 4916 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4917 uint32_t ui32MaxPacketSize, \ 4918 uint32_t ui32Flags))ROM_USBTABLE[5]) 4919#endif 4920#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4921 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4922 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4923 defined(TARGET_IS_TM4C129_RA2 ) 4924#define ROM_USBDevEndpointDataAck \ 4925 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4926 bool bIsLastPacket))ROM_USBTABLE[6]) 4927#endif 4928#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4929 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4930 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4931 defined(TARGET_IS_TM4C129_RA2 ) 4932#define ROM_USBDevEndpointStall \ 4933 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4934 uint32_t ui32Flags))ROM_USBTABLE[7]) 4935#endif 4936#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4937 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4938 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4939 defined(TARGET_IS_TM4C129_RA2 ) 4940#define ROM_USBDevEndpointStallClear \ 4941 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4942 uint32_t ui32Flags))ROM_USBTABLE[8]) 4943#endif 4944#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4945 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4946 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4947 defined(TARGET_IS_TM4C129_RA2 ) 4948#define ROM_USBDevEndpointStatusClear \ 4949 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4950 uint32_t ui32Flags))ROM_USBTABLE[9]) 4951#endif 4952#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4953 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4954 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4955 defined(TARGET_IS_TM4C129_RA2 ) 4956#define ROM_USBEndpointDataGet \ 4957 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t * pui8Data, \ 4958 uint32_t * pui32Size)) ROM_USBTABLE[10]) 4959#endif 4960#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4961 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4962 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4963 defined(TARGET_IS_TM4C129_RA2 ) 4964#define ROM_USBEndpointDataPut \ 4965 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t * pui8Data, \ 4966 uint32_t ui32Size)) ROM_USBTABLE[11]) 4967#endif 4968#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4969 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4970 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4971 defined(TARGET_IS_TM4C129_RA2 ) 4972#define ROM_USBEndpointDataSend \ 4973 ((int32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4974 uint32_t ui32TransType))ROM_USBTABLE[12]) 4975#endif 4976#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4977 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4978 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4979 defined(TARGET_IS_TM4C129_RA2 ) 4980#define ROM_USBEndpointDataToggleClear \ 4981 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 4982 uint32_t ui32Flags))ROM_USBTABLE[13]) 4983#endif 4984#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4985 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4986 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4987 defined(TARGET_IS_TM4C129_RA2 ) 4988#define ROM_USBEndpointStatus \ 4989 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[14]) 4990#endif 4991#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4992 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 4993 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 4994 defined(TARGET_IS_TM4C129_RA2 ) 4995#define ROM_USBFIFOAddrGet \ 4996 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[15]) 4997#endif 4998#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 4999 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5000 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5001 defined(TARGET_IS_TM4C129_RA2 ) 5002#define ROM_USBFIFOConfigGet \ 5003 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5004 uint32_t * pui32FIFOAddress, uint32_t * pui32FIFOSize, \ 5005 uint32_t ui32Flags)) ROM_USBTABLE[16]) 5006#endif 5007#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5008 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5009 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5010 defined(TARGET_IS_TM4C129_RA2 ) 5011#define ROM_USBFIFOConfigSet \ 5012 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5013 uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize, \ 5014 uint32_t ui32Flags))ROM_USBTABLE[17]) 5015#endif 5016#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5017 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5018 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5019 defined(TARGET_IS_TM4C129_RA2 ) 5020#define ROM_USBFIFOFlush \ 5021 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5022 uint32_t ui32Flags))ROM_USBTABLE[18]) 5023#endif 5024#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5025 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5026 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5027 defined(TARGET_IS_TM4C129_RA2 ) 5028#define ROM_USBFrameNumberGet ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[19]) 5029#endif 5030#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5031 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5032 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5033 defined(TARGET_IS_TM4C129_RA2 ) 5034#define ROM_USBHostAddrGet \ 5035 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5036 uint32_t ui32Flags))ROM_USBTABLE[20]) 5037#endif 5038#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5039 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5040 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5041 defined(TARGET_IS_TM4C129_RA2 ) 5042#define ROM_USBHostAddrSet \ 5043 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, \ 5044 uint32_t ui32Flags))ROM_USBTABLE[21]) 5045#endif 5046#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 5047 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 5048 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5049#define ROM_USBHostEndpointConfig \ 5050 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5051 uint32_t ui32MaxPacketSize, uint32_t ui32NAKPollInterval, \ 5052 uint32_t ui32TargetEndpoint, \ 5053 uint32_t ui32Flags))ROM_USBTABLE[22]) 5054#endif 5055#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5056 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5057 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5058 defined(TARGET_IS_TM4C129_RA2 ) 5059#define ROM_USBHostEndpointDataAck \ 5060 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[23]) 5061#endif 5062#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5063 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5064 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5065 defined(TARGET_IS_TM4C129_RA2 ) 5066#define ROM_USBHostEndpointDataToggle \ 5067 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, bool bDataToggle, \ 5068 uint32_t ui32Flags))ROM_USBTABLE[24]) 5069#endif 5070#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5071 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5072 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5073 defined(TARGET_IS_TM4C129_RA2 ) 5074#define ROM_USBHostEndpointStatusClear \ 5075 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5076 uint32_t ui32Flags))ROM_USBTABLE[25]) 5077#endif 5078#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5079 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5080 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5081 defined(TARGET_IS_TM4C129_RA2 ) 5082#define ROM_USBHostHubAddrGet \ 5083 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5084 uint32_t ui32Flags))ROM_USBTABLE[26]) 5085#endif 5086#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5087 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5088 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5089 defined(TARGET_IS_TM4C129_RA2 ) 5090#define ROM_USBHostHubAddrSet \ 5091 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, \ 5092 uint32_t ui32Flags))ROM_USBTABLE[27]) 5093#endif 5094#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5095 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5096 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5097 defined(TARGET_IS_TM4C129_RA2 ) 5098#define ROM_USBHostPwrDisable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[28]) 5099#endif 5100#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5101 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5102 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5103 defined(TARGET_IS_TM4C129_RA2 ) 5104#define ROM_USBHostPwrEnable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[29]) 5105#endif 5106#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5107 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5108 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5109 defined(TARGET_IS_TM4C129_RA2 ) 5110#define ROM_USBHostPwrConfig \ 5111 ((void (*)(uint32_t ui32Base, uint32_t ui32Flags))ROM_USBTABLE[30]) 5112#endif 5113#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5114 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5115 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5116 defined(TARGET_IS_TM4C129_RA2 ) 5117#define ROM_USBHostPwrFaultDisable \ 5118 ((void (*)(uint32_t ui32Base))ROM_USBTABLE[31]) 5119#endif 5120#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5121 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5122 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5123 defined(TARGET_IS_TM4C129_RA2 ) 5124#define ROM_USBHostPwrFaultEnable \ 5125 ((void (*)(uint32_t ui32Base))ROM_USBTABLE[32]) 5126#endif 5127#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5128 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5129 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5130 defined(TARGET_IS_TM4C129_RA2 ) 5131#define ROM_USBHostRequestIN \ 5132 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[33]) 5133#endif 5134#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5135 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5136 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5137 defined(TARGET_IS_TM4C129_RA2 ) 5138#define ROM_USBHostRequestStatus ((void (*)(uint32_t ui32Base))ROM_USBTABLE[34]) 5139#endif 5140#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5141 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5142 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5143 defined(TARGET_IS_TM4C129_RA2 ) 5144#define ROM_USBHostReset \ 5145 ((void (*)(uint32_t ui32Base, bool bStart))ROM_USBTABLE[35]) 5146#endif 5147#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5148 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5149 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5150 defined(TARGET_IS_TM4C129_RA2 ) 5151#define ROM_USBHostResume \ 5152 ((void (*)(uint32_t ui32Base, bool bStart))ROM_USBTABLE[36]) 5153#endif 5154#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5155 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5156 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5157 defined(TARGET_IS_TM4C129_RA2 ) 5158#define ROM_USBHostSpeedGet ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[37]) 5159#endif 5160#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5161 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5162 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5163 defined(TARGET_IS_TM4C129_RA2 ) 5164#define ROM_USBHostSuspend ((void (*)(uint32_t ui32Base))ROM_USBTABLE[38]) 5165#endif 5166#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5167 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5168 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5169 defined(TARGET_IS_TM4C129_RA2 ) 5170#define ROM_USBDevEndpointConfigGet \ 5171 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5172 uint32_t * pui32MaxPacketSize, uint32_t * pui32Flags)) \ 5173 ROM_USBTABLE[41]) 5174#endif 5175#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5176 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5177 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5178 defined(TARGET_IS_TM4C129_RA2 ) 5179#define ROM_USBEndpointDMAEnable \ 5180 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5181 uint32_t ui32Flags))ROM_USBTABLE[42]) 5182#endif 5183#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5184 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5185 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5186 defined(TARGET_IS_TM4C129_RA2 ) 5187#define ROM_USBEndpointDMADisable \ 5188 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5189 uint32_t ui32Flags))ROM_USBTABLE[43]) 5190#endif 5191#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5192 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5193 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5194 defined(TARGET_IS_TM4C129_RA2 ) 5195#define ROM_USBEndpointDataAvail \ 5196 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[44]) 5197#endif 5198#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5199 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5200 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5201 defined(TARGET_IS_TM4C129_RA2 ) 5202#define ROM_USBModeGet ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[46]) 5203#endif 5204#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5205 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5206 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5207 defined(TARGET_IS_TM4C129_RA2 ) 5208#define ROM_USBEndpointDMAChannel \ 5209 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5210 uint32_t ui32Channel))ROM_USBTABLE[47]) 5211#endif 5212#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5213 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5214 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5215 defined(TARGET_IS_TM4C129_RA2 ) 5216#define ROM_USBIntDisableControl \ 5217 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_USBTABLE[48]) 5218#endif 5219#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5220 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5221 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5222 defined(TARGET_IS_TM4C129_RA2 ) 5223#define ROM_USBIntEnableControl \ 5224 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_USBTABLE[49]) 5225#endif 5226#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5227 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5228 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5229 defined(TARGET_IS_TM4C129_RA2 ) 5230#define ROM_USBIntStatusControl \ 5231 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[50]) 5232#endif 5233#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5234 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5235 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5236 defined(TARGET_IS_TM4C129_RA2 ) 5237#define ROM_USBIntDisableEndpoint \ 5238 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_USBTABLE[51]) 5239#endif 5240#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5241 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5242 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5243 defined(TARGET_IS_TM4C129_RA2 ) 5244#define ROM_USBIntEnableEndpoint \ 5245 ((void (*)(uint32_t ui32Base, uint32_t ui32IntFlags))ROM_USBTABLE[52]) 5246#endif 5247#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5248 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5249 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5250 defined(TARGET_IS_TM4C129_RA2 ) 5251#define ROM_USBIntStatusEndpoint \ 5252 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[53]) 5253#endif 5254#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5255 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5256 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5257 defined(TARGET_IS_TM4C129_RA2 ) 5258#define ROM_USBHostMode ((void (*)(uint32_t ui32Base))ROM_USBTABLE[54]) 5259#endif 5260#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5261 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5262 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5263 defined(TARGET_IS_TM4C129_RA2 ) 5264#define ROM_USBDevMode ((void (*)(uint32_t ui32Base))ROM_USBTABLE[55]) 5265#endif 5266#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5267 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5268 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5269 defined(TARGET_IS_TM4C129_RA2 ) 5270#define ROM_USBPHYPowerOff ((void (*)(uint32_t ui32Base))ROM_USBTABLE[56]) 5271#endif 5272#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5273 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5274 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5275 defined(TARGET_IS_TM4C129_RA2 ) 5276#define ROM_USBPHYPowerOn ((void (*)(uint32_t ui32Base))ROM_USBTABLE[57]) 5277#endif 5278#if defined(TARGET_IS_TM4C123_RA3 )|| defined(TARGET_IS_TM4C123_RB1 )|| \ 5279 defined(TARGET_IS_TM4C123_RB2 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 5280 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5281#define ROM_UpdateUSB \ 5282 ((void (*)(uint8_t * pui8DescriptorInfo)) ROM_USBTABLE[58]) 5283#endif 5284#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5285 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5286 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5287 defined(TARGET_IS_TM4C129_RA2 ) 5288#define ROM_USBOTGMode ((void (*)(uint32_t ui32Base))ROM_USBTABLE[59]) 5289#endif 5290#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 5291 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5292#define ROM_USBHostRequestINClear \ 5293 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint))ROM_USBTABLE[60]) 5294#endif 5295#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 5296 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5297#define ROM_USBNumEndpointsGet \ 5298 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[61]) 5299#endif 5300#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5301 defined(TARGET_IS_TM4C129_RA2 ) 5302#define ROM_USBClockDisable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[62]) 5303#endif 5304#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5305 defined(TARGET_IS_TM4C129_RA2 ) 5306#define ROM_USBClockEnable \ 5307 ((void (*)(uint32_t ui32Base, uint32_t ui32Div, \ 5308 uint32_t ui32Flags))ROM_USBTABLE[63]) 5309#endif 5310#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5311 defined(TARGET_IS_TM4C129_RA2 ) 5312#define ROM_USBControllerVersion \ 5313 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[64]) 5314#endif 5315#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5316 defined(TARGET_IS_TM4C129_RA2 ) 5317#define ROM_USBDevLPMConfig \ 5318 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_USBTABLE[65]) 5319#endif 5320#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5321 defined(TARGET_IS_TM4C129_RA2 ) 5322#define ROM_USBDevLPMDisable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[66]) 5323#endif 5324#if defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C129_RA0 )|| \ 5325 defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5326#define ROM_USBDevLPMEnable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[67]) 5327#endif 5328#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5329 defined(TARGET_IS_TM4C129_RA2 ) 5330#define ROM_USBDevLPMRemoteWake ((void (*)(uint32_t ui32Base))ROM_USBTABLE[68]) 5331#endif 5332#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5333 defined(TARGET_IS_TM4C129_RA2 ) 5334#define ROM_USBDevSpeedGet ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[69]) 5335#endif 5336#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5337 defined(TARGET_IS_TM4C129_RA2 ) 5338#define ROM_USBDMAChannelAddressGet \ 5339 ((void* (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[70]) 5340#endif 5341#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5342 defined(TARGET_IS_TM4C129_RA2 ) 5343#define ROM_USBDMAChannelAddressSet \ 5344 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel, \ 5345 void* pvAddress))ROM_USBTABLE[71]) 5346#endif 5347#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5348 defined(TARGET_IS_TM4C129_RA2 ) 5349#define ROM_USBDMAChannelConfigSet \ 5350 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, \ 5351 uint32_t ui32Config))ROM_USBTABLE[72]) 5352#endif 5353#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5354 defined(TARGET_IS_TM4C129_RA2 ) 5355#define ROM_USBDMAChannelDisable \ 5356 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[73]) 5357#endif 5358#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5359 defined(TARGET_IS_TM4C129_RA2 ) 5360#define ROM_USBDMAChannelEnable \ 5361 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[74]) 5362#endif 5363#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5364 defined(TARGET_IS_TM4C129_RA2 ) 5365#define ROM_USBDMAChannelIntDisable \ 5366 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[75]) 5367#endif 5368#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5369 defined(TARGET_IS_TM4C129_RA2 ) 5370#define ROM_USBDMAChannelIntEnable \ 5371 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[76]) 5372#endif 5373#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5374 defined(TARGET_IS_TM4C129_RA2 ) 5375#define ROM_USBDMAChannelCountGet \ 5376 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[77]) 5377#endif 5378#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5379 defined(TARGET_IS_TM4C129_RA2 ) 5380#define ROM_USBDMAChannelCountSet \ 5381 ((void (*)(uint32_t ui32Base, uint32_t ui32Count, \ 5382 uint32_t ui32Channel))ROM_USBTABLE[78]) 5383#endif 5384#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5385 defined(TARGET_IS_TM4C129_RA2 ) 5386#define ROM_USBDMAChannelIntStatus \ 5387 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[79]) 5388#endif 5389#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5390 defined(TARGET_IS_TM4C129_RA2 ) 5391#define ROM_USBDMAChannelStatus \ 5392 ((uint32_t(*)(uint32_t ui32Base, uint32_t ui32Channel))ROM_USBTABLE[80]) 5393#endif 5394#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5395 defined(TARGET_IS_TM4C129_RA2 ) 5396#define ROM_USBDMAChannelStatusClear \ 5397 ((void (*)(uint32_t ui32Base, uint32_t ui32Channel, \ 5398 uint32_t ui32Status))ROM_USBTABLE[81]) 5399#endif 5400#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5401 defined(TARGET_IS_TM4C129_RA2 ) 5402#define ROM_USBHighSpeed \ 5403 ((void (*)(uint32_t ui32Base, bool bEnable))ROM_USBTABLE[82]) 5404#endif 5405#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5406 defined(TARGET_IS_TM4C129_RA2 ) 5407#define ROM_USBHostEndpointPing \ 5408 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5409 bool bEnable))ROM_USBTABLE[83]) 5410#endif 5411#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5412 defined(TARGET_IS_TM4C129_RA2 ) 5413#define ROM_USBHostEndpointSpeed \ 5414 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5415 uint32_t ui32Flags))ROM_USBTABLE[84]) 5416#endif 5417#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5418 defined(TARGET_IS_TM4C129_RA2 ) 5419#define ROM_USBHostLPMConfig \ 5420 ((void (*)(uint32_t ui32Base, uint32_t ui32ResumeTime, \ 5421 uint32_t ui32Config))ROM_USBTABLE[85]) 5422#endif 5423#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5424 defined(TARGET_IS_TM4C129_RA2 ) 5425#define ROM_USBHostLPMResume ((void (*)(uint32_t ui32Base))ROM_USBTABLE[86]) 5426#endif 5427#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5428 defined(TARGET_IS_TM4C129_RA2 ) 5429#define ROM_USBHostLPMSend \ 5430 ((void (*)(uint32_t ui32Base, uint32_t ui32Address, \ 5431 uint32_t uiEndpoint))ROM_USBTABLE[87]) 5432#endif 5433#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5434 defined(TARGET_IS_TM4C129_RA2 ) 5435#define ROM_USBLPMIntDisable \ 5436 ((void (*)(uint32_t ui32Base, uint32_t ui32Ints))ROM_USBTABLE[88]) 5437#endif 5438#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5439 defined(TARGET_IS_TM4C129_RA2 ) 5440#define ROM_USBLPMIntEnable \ 5441 ((void (*)(uint32_t ui32Base, uint32_t ui32Ints))ROM_USBTABLE[89]) 5442#endif 5443#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5444 defined(TARGET_IS_TM4C129_RA2 ) 5445#define ROM_USBLPMIntStatus ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[90]) 5446#endif 5447#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5448 defined(TARGET_IS_TM4C129_RA2 ) 5449#define ROM_USBLPMLinkStateGet \ 5450 ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[91]) 5451#endif 5452#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5453 defined(TARGET_IS_TM4C129_RA2 ) 5454#define ROM_USBEndpointPacketCountSet \ 5455 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5456 uint32_t ui32Count))ROM_USBTABLE[92]) 5457#endif 5458#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5459 defined(TARGET_IS_TM4C129_RA2 ) 5460#define ROM_USBULPIConfig \ 5461 ((void (*)(uint32_t ui32Base, uint32_t ui32Config))ROM_USBTABLE[93]) 5462#endif 5463#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5464 defined(TARGET_IS_TM4C129_RA2 ) 5465#define ROM_USBULPIDisable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[94]) 5466#endif 5467#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5468 defined(TARGET_IS_TM4C129_RA2 ) 5469#define ROM_USBULPIEnable ((void (*)(uint32_t ui32Base))ROM_USBTABLE[95]) 5470#endif 5471#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5472 defined(TARGET_IS_TM4C129_RA2 ) 5473#define ROM_USBULPIRegRead \ 5474 ((uint8_t(*)(uint32_t ui32Base, uint8_t ui8Reg))ROM_USBTABLE[96]) 5475#endif 5476#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5477 defined(TARGET_IS_TM4C129_RA2 ) 5478#define ROM_USBULPIRegWrite \ 5479 ((void (*)(uint32_t ui32Base, uint8_t ui8Reg, \ 5480 uint8_t ui8Data))ROM_USBTABLE[97]) 5481#endif 5482#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5483 defined(TARGET_IS_TM4C129_RA2 ) 5484#define ROM_USBOTGSessionRequest \ 5485 ((void (*)(uint32_t ui32Base, bool bStart))ROM_USBTABLE[98]) 5486#endif 5487#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5488#define ROM_USBDMANumChannels ((uint32_t(*)(uint32_t ui32Base))ROM_USBTABLE[99]) 5489#endif 5490#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5491#define ROM_USBEndpointDMAConfigSet \ 5492 ((void (*)(uint32_t ui32Base, uint32_t ui32Endpoint, \ 5493 uint32_t ui32Config))ROM_USBTABLE[100]) 5494#endif 5495#if defined(TARGET_IS_TM4C129_RA1 )|| defined(TARGET_IS_TM4C129_RA2 ) 5496#define ROM_USBLPMRemoteWakeEnabled \ 5497 ((bool (*)(uint32_t ui32Base))ROM_USBTABLE[102]) 5498#endif 5499#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5500 defined(TARGET_IS_TM4C129_RA2 ) 5501#define ROM_USBModeConfig \ 5502 ((void (*)(uint32_t ui32Base, uint32_t ui32Mode))ROM_USBTABLE[103]) 5503#endif 5504 5505//***************************************************************************** 5506// 5507// Macros for calling ROM functions in the Watchdog API. 5508// 5509//***************************************************************************** 5510#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5511 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5512 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5513 defined(TARGET_IS_TM4C129_RA2 ) 5514#define ROM_WatchdogIntClear ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[0]) 5515#endif 5516#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5517 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5518 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5519 defined(TARGET_IS_TM4C129_RA2 ) 5520#define ROM_WatchdogRunning ((bool (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[1]) 5521#endif 5522#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5523 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5524 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5525 defined(TARGET_IS_TM4C129_RA2 ) 5526#define ROM_WatchdogEnable ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[2]) 5527#endif 5528#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5529 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5530 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5531 defined(TARGET_IS_TM4C129_RA2 ) 5532#define ROM_WatchdogResetEnable \ 5533 ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[3]) 5534#endif 5535#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5536 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5537 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5538 defined(TARGET_IS_TM4C129_RA2 ) 5539#define ROM_WatchdogResetDisable \ 5540 ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[4]) 5541#endif 5542#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5543 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5544 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5545 defined(TARGET_IS_TM4C129_RA2 ) 5546#define ROM_WatchdogLock ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[5]) 5547#endif 5548#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5549 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5550 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5551 defined(TARGET_IS_TM4C129_RA2 ) 5552#define ROM_WatchdogUnlock ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[6]) 5553#endif 5554#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5555 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5556 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5557 defined(TARGET_IS_TM4C129_RA2 ) 5558#define ROM_WatchdogLockState \ 5559 ((bool (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[7]) 5560#endif 5561#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5562 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5563 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5564 defined(TARGET_IS_TM4C129_RA2 ) 5565#define ROM_WatchdogReloadSet \ 5566 ((void (*)(uint32_t ui32Base, uint32_t ui32LoadVal))ROM_WATCHDOGTABLE[8]) 5567#endif 5568#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5569 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5570 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5571 defined(TARGET_IS_TM4C129_RA2 ) 5572#define ROM_WatchdogReloadGet \ 5573 ((uint32_t(*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[9]) 5574#endif 5575#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5576 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5577 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5578 defined(TARGET_IS_TM4C129_RA2 ) 5579#define ROM_WatchdogValueGet \ 5580 ((uint32_t(*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[10]) 5581#endif 5582#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5583 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5584 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5585 defined(TARGET_IS_TM4C129_RA2 ) 5586#define ROM_WatchdogIntEnable \ 5587 ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[11]) 5588#endif 5589#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5590 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5591 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5592 defined(TARGET_IS_TM4C129_RA2 ) 5593#define ROM_WatchdogIntStatus \ 5594 ((uint32_t(*)(uint32_t ui32Base, bool bMasked))ROM_WATCHDOGTABLE[12]) 5595#endif 5596#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5597 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5598 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5599 defined(TARGET_IS_TM4C129_RA2 ) 5600#define ROM_WatchdogStallEnable \ 5601 ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[13]) 5602#endif 5603#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5604 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5605 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5606 defined(TARGET_IS_TM4C129_RA2 ) 5607#define ROM_WatchdogStallDisable \ 5608 ((void (*)(uint32_t ui32Base))ROM_WATCHDOGTABLE[14]) 5609#endif 5610#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5611 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5612 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5613 defined(TARGET_IS_TM4C129_RA2 ) 5614#define ROM_WatchdogIntTypeSet \ 5615 ((void (*)(uint32_t ui32Base, uint32_t ui32Type))ROM_WATCHDOGTABLE[15]) 5616#endif 5617 5618//***************************************************************************** 5619// 5620// Macros for calling ROM functions in the Software API. 5621// 5622//***************************************************************************** 5623#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5624 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5625 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5626 defined(TARGET_IS_TM4C129_RA2 ) 5627#define ROM_Crc16Array \ 5628 ((uint16_t(*)(uint32_t ui32WordLen, \ 5629 const uint32_t* pui32Data))ROM_SOFTWARETABLE[1]) 5630#endif 5631#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5632 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5633 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5634 defined(TARGET_IS_TM4C129_RA2 ) 5635#define ROM_Crc16Array3 \ 5636 ((void (*)(uint32_t ui32WordLen, const uint32_t* pui32Data, \ 5637 uint16_t* pui16Crc3))ROM_SOFTWARETABLE[2]) 5638#endif 5639#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5640 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5641 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5642 defined(TARGET_IS_TM4C129_RA2 ) 5643#define ROM_Crc16 \ 5644 ((uint16_t(*)(uint16_t ui16Crc, const uint8_t* pui8Data, \ 5645 uint32_t ui32Count))ROM_SOFTWARETABLE[3]) 5646#endif 5647#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5648 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5649 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5650 defined(TARGET_IS_TM4C129_RA2 ) 5651#define ROM_Crc8CCITT \ 5652 ((uint8_t(*)(uint8_t ui8Crc, const uint8_t* pui8Data, \ 5653 uint32_t ui32Count))ROM_SOFTWARETABLE[4]) 5654#endif 5655#if defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5656 defined(TARGET_IS_TM4C129_RA2 ) 5657#define ROM_Crc32 \ 5658 ((uint32_t(*)(uint32_t ui32Crc, const uint8_t* pui8Data, \ 5659 uint32_t ui32Count))ROM_SOFTWARETABLE[5]) 5660#endif 5661#if defined(TARGET_IS_TM4C123_RA1 )|| defined(TARGET_IS_TM4C123_RA3 )|| \ 5662 defined(TARGET_IS_TM4C123_RB1 )|| defined(TARGET_IS_TM4C123_RB2 )|| \ 5663 defined(TARGET_IS_TM4C129_RA0 )|| defined(TARGET_IS_TM4C129_RA1 )|| \ 5664 defined(TARGET_IS_TM4C129_RA2 ) 5665#define ROM_pvAESTable ((void*)&(ROM_SOFTWARETABLE[7])) 5666#endif 5667 5668#endif // __DRIVERLIB_ROM_H__