hw_sysctl.h 204 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642
  1. //*****************************************************************************
  2. //
  3. // hw_sysctl.h - Macros used when accessing the system control hardware.
  4. //
  5. // Copyright (c) 2005-2011 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Texas Instruments (TI) is supplying this software for use solely and
  9. // exclusively on TI's microcontroller products. The software is owned by
  10. // TI and/or its suppliers, and is protected under applicable copyright
  11. // laws. You may not combine this software with "viral" open-source
  12. // software in order to form a larger program.
  13. //
  14. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. // DAMAGES, FOR ANY REASON WHATSOEVER.
  20. //
  21. // This is part of revision 8264 of the Stellaris Firmware Development Package.
  22. //
  23. //*****************************************************************************
  24. #ifndef __HW_SYSCTL_H__
  25. #define __HW_SYSCTL_H__
  26. //*****************************************************************************
  27. //
  28. // The following are defines for the System Control register addresses.
  29. //
  30. //*****************************************************************************
  31. #define SYSCTL_DID0 0x400FE000 // Device Identification 0
  32. #define SYSCTL_DID1 0x400FE004 // Device Identification 1
  33. #define SYSCTL_DC0 0x400FE008 // Device Capabilities 0
  34. #define SYSCTL_DC1 0x400FE010 // Device Capabilities 1
  35. #define SYSCTL_DC2 0x400FE014 // Device Capabilities 2
  36. #define SYSCTL_DC3 0x400FE018 // Device Capabilities 3
  37. #define SYSCTL_DC4 0x400FE01C // Device Capabilities 4
  38. #define SYSCTL_DC5 0x400FE020 // Device Capabilities 5
  39. #define SYSCTL_DC6 0x400FE024 // Device Capabilities 6
  40. #define SYSCTL_DC7 0x400FE028 // Device Capabilities 7
  41. #define SYSCTL_DC8 0x400FE02C // Device Capabilities 8 ADC
  42. // Channels
  43. #define SYSCTL_PBORCTL 0x400FE030 // Brown-Out Reset Control
  44. #define SYSCTL_LDOPCTL 0x400FE034 // LDO Power Control
  45. #define SYSCTL_SRCR0 0x400FE040 // Software Reset Control 0
  46. #define SYSCTL_SRCR1 0x400FE044 // Software Reset Control 1
  47. #define SYSCTL_SRCR2 0x400FE048 // Software Reset Control 2
  48. #define SYSCTL_RIS 0x400FE050 // Raw Interrupt Status
  49. #define SYSCTL_IMC 0x400FE054 // Interrupt Mask Control
  50. #define SYSCTL_MISC 0x400FE058 // Masked Interrupt Status and
  51. // Clear
  52. #define SYSCTL_RESC 0x400FE05C // Reset Cause
  53. #define SYSCTL_RCC 0x400FE060 // Run-Mode Clock Configuration
  54. #define SYSCTL_PLLCFG 0x400FE064 // XTAL to PLL Translation
  55. #define SYSCTL_GPIOHBCTL 0x400FE06C // GPIO High-Performance Bus
  56. // Control
  57. #define SYSCTL_RCC2 0x400FE070 // Run-Mode Clock Configuration 2
  58. #define SYSCTL_MOSCCTL 0x400FE07C // Main Oscillator Control
  59. #define SYSCTL_RCGC0 0x400FE100 // Run Mode Clock Gating Control
  60. // Register 0
  61. #define SYSCTL_RCGC1 0x400FE104 // Run Mode Clock Gating Control
  62. // Register 1
  63. #define SYSCTL_RCGC2 0x400FE108 // Run Mode Clock Gating Control
  64. // Register 2
  65. #define SYSCTL_SCGC0 0x400FE110 // Sleep Mode Clock Gating Control
  66. // Register 0
  67. #define SYSCTL_SCGC1 0x400FE114 // Sleep Mode Clock Gating Control
  68. // Register 1
  69. #define SYSCTL_SCGC2 0x400FE118 // Sleep Mode Clock Gating Control
  70. // Register 2
  71. #define SYSCTL_DCGC0 0x400FE120 // Deep Sleep Mode Clock Gating
  72. // Control Register 0
  73. #define SYSCTL_DCGC1 0x400FE124 // Deep-Sleep Mode Clock Gating
  74. // Control Register 1
  75. #define SYSCTL_DCGC2 0x400FE128 // Deep Sleep Mode Clock Gating
  76. // Control Register 2
  77. #define SYSCTL_DSLPCLKCFG 0x400FE144 // Deep Sleep Clock Configuration
  78. #define SYSCTL_SYSPROP 0x400FE14C // System Properties
  79. #define SYSCTL_PIOSCCAL 0x400FE150 // Precision Internal Oscillator
  80. // Calibration
  81. #define SYSCTL_CLKVCLR 0x400FE150 // Clock Verification Clear
  82. #define SYSCTL_PIOSCSTAT 0x400FE154 // Precision Internal Oscillator
  83. // Statistics
  84. #define SYSCTL_LDOARST 0x400FE160 // Allow Unregulated LDO to Reset
  85. // the Part
  86. #define SYSCTL_PLLFREQ0 0x400FE160 // PLL Frequency 0
  87. #define SYSCTL_PLLFREQ1 0x400FE164 // PLL Frequency
  88. #define SYSCTL_PLLSTAT 0x400FE168 // PLL Status
  89. #define SYSCTL_I2SMCLKCFG 0x400FE170 // I2S MCLK Configuration
  90. #define SYSCTL_DC9 0x400FE190 // Device Capabilities 9 ADC
  91. // Digital Comparators
  92. #define SYSCTL_NVMSTAT 0x400FE1A0 // Non-Volatile Memory Information
  93. #define SYSCTL_PPWD 0x400FE300 // Watchdog Timer Peripheral
  94. // Present
  95. #define SYSCTL_PPTIMER 0x400FE304 // Timer Peripheral Present
  96. #define SYSCTL_PPGPIO 0x400FE308 // General-Purpose Input/Output
  97. // Peripheral Present
  98. #define SYSCTL_PPDMA 0x400FE30C // Micro Direct Memory Access
  99. // Peripheral Present
  100. #define SYSCTL_PPHIB 0x400FE314 // Hibernation Peripheral Present
  101. #define SYSCTL_PPUART 0x400FE318 // Universal Asynchronous
  102. // Receiver/Transmitter Peripheral
  103. // Present
  104. #define SYSCTL_PPSSI 0x400FE31C // Synchronous Serial Interface
  105. // Peripheral Present
  106. #define SYSCTL_PPI2C 0x400FE320 // Inter-Integrated Circuit
  107. // Peripheral Present
  108. #define SYSCTL_PPUSB 0x400FE328 // Universal Serial Bus Peripheral
  109. // Present
  110. #define SYSCTL_PPCAN 0x400FE334 // Controller Area Network
  111. // Peripheral Present
  112. #define SYSCTL_PPADC 0x400FE338 // Analog-to-Digital Converter
  113. // Peripheral Present
  114. #define SYSCTL_PPACMP 0x400FE33C // Analog Comparator Peripheral
  115. // Present
  116. #define SYSCTL_PPPWM 0x400FE340 // Pulse Width Modulator Peripheral
  117. // Present
  118. #define SYSCTL_PPQEI 0x400FE344 // Quadrature Encoder Interface
  119. // Peripheral Present
  120. #define SYSCTL_PPLPC 0x400FE348 // Low Pin Count Interface
  121. // Peripheral Present
  122. #define SYSCTL_PPPECI 0x400FE350 // Platform Environment Control
  123. // Interface Peripheral Present
  124. #define SYSCTL_PPFAN 0x400FE354 // FAN Peripheral Present
  125. #define SYSCTL_PPEEPROM 0x400FE358 // EEPROM Peripheral Present
  126. #define SYSCTL_PPWTIMER 0x400FE35C // Wide Timer Peripheral Present
  127. #define SYSCTL_SRWD 0x400FE500 // Watchdog Timer Software Reset
  128. #define SYSCTL_SRTIMER 0x400FE504 // Timer Software Reset
  129. #define SYSCTL_SRGPIO 0x400FE508 // General-Purpose Input/Output
  130. // Software Reset
  131. #define SYSCTL_SRDMA 0x400FE50C // Micro Direct Memory Access
  132. // Software Reset
  133. #define SYSCTL_SRHIB 0x400FE514 // Hibernation Software Reset
  134. #define SYSCTL_SRUART 0x400FE518 // Universal Asynchronous
  135. // Receiver/Transmitter Software
  136. // Reset
  137. #define SYSCTL_SRSSI 0x400FE51C // Synchronous Serial Interface
  138. // Software Reset
  139. #define SYSCTL_SRI2C 0x400FE520 // Inter-Integrated Circuit
  140. // Software Reset
  141. #define SYSCTL_SRUSB 0x400FE528 // Universal Serial Bus Software
  142. // Reset
  143. #define SYSCTL_SRCAN 0x400FE534 // Controller Area Network Software
  144. // Reset
  145. #define SYSCTL_SRADC 0x400FE538 // Analog-to-Digital Converter
  146. // Software Reset
  147. #define SYSCTL_SRACMP 0x400FE53C // Analog Comparator Software Reset
  148. #define SYSCTL_SRPWM 0x400FE540 // Pulse Width Modulator Software
  149. // Reset
  150. #define SYSCTL_SRQEI 0x400FE544 // Quadrature Encoder Interface
  151. // Software Reset
  152. #define SYSCTL_SRLPC 0x400FE548 // Low Pin Count Interface Software
  153. // Reset
  154. #define SYSCTL_SRPECI 0x400FE550 // Platform Environment Control
  155. // Interface Software Reset
  156. #define SYSCTL_SRFAN 0x400FE554 // FAN Software Reset
  157. #define SYSCTL_SREEPROM 0x400FE558 // EEPROM Software Reset
  158. #define SYSCTL_SRWTIMER 0x400FE55C // Wide Timer Software Reset
  159. #define SYSCTL_RCGCWD 0x400FE600 // Watchdog Timer Run Mode Clock
  160. // Gating Control
  161. #define SYSCTL_RCGCTIMER 0x400FE604 // Timer Run Mode Clock Gating
  162. // Control
  163. #define SYSCTL_RCGCGPIO 0x400FE608 // General-Purpose Input/Output Run
  164. // Mode Clock Gating Control
  165. #define SYSCTL_RCGCDMA 0x400FE60C // Micro Direct Memory Access Run
  166. // Mode Clock Gating Control
  167. #define SYSCTL_RCGCHIB 0x400FE614 // Hibernation Run Mode Clock
  168. // Gating Control
  169. #define SYSCTL_RCGCUART 0x400FE618 // Universal Asynchronous
  170. // Receiver/Transmitter Run Mode
  171. // Clock Gating Control
  172. #define SYSCTL_RCGCSSI 0x400FE61C // Synchronous Serial Interface Run
  173. // Mode Clock Gating Control
  174. #define SYSCTL_RCGCI2C 0x400FE620 // Inter-Integrated Circuit Run
  175. // Mode Clock Gating Control
  176. #define SYSCTL_RCGCUSB 0x400FE628 // Universal Serial Bus Run Mode
  177. // Clock Gating Control
  178. #define SYSCTL_RCGCCAN 0x400FE634 // Controller Area Network Run Mode
  179. // Clock Gating Control
  180. #define SYSCTL_RCGCADC 0x400FE638 // Analog-to-Digital Converter Run
  181. // Mode Clock Gating Control
  182. #define SYSCTL_RCGCACMP 0x400FE63C // Analog Comparator Run Mode Clock
  183. // Gating Control
  184. #define SYSCTL_RCGCPWM 0x400FE640 // Pulse Width Modulator Run Mode
  185. // Clock Gating Control
  186. #define SYSCTL_RCGCQEI 0x400FE644 // Quadrature Encoder Interface Run
  187. // Mode Clock Gating Control
  188. #define SYSCTL_RCGCLPC 0x400FE648 // Low Pin Count Interface Run Mode
  189. // Clock Gating Control
  190. #define SYSCTL_RCGCPECI 0x400FE650 // Platform Environment Control
  191. // Interface Run Mode Clock Gating
  192. // Control
  193. #define SYSCTL_RCGCFAN 0x400FE654 // FAN Run Mode Clock Gating
  194. // Control
  195. #define SYSCTL_RCGCEEPROM 0x400FE658 // EEPROM Run Mode Clock Gating
  196. // Control
  197. #define SYSCTL_RCGCWTIMER 0x400FE65C // Wide Timer Run Mode Clock Gating
  198. // Control
  199. #define SYSCTL_SCGCWD 0x400FE700 // Watchdog Timer Sleep Mode Clock
  200. // Gating Control
  201. #define SYSCTL_SCGCTIMER 0x400FE704 // Timer Sleep Mode Clock Gating
  202. // Control
  203. #define SYSCTL_SCGCGPIO 0x400FE708 // General-Purpose Input/Output
  204. // Sleep Mode Clock Gating Control
  205. #define SYSCTL_SCGCDMA 0x400FE70C // Micro Direct Memory Access Sleep
  206. // Mode Clock Gating Control
  207. #define SYSCTL_SCGCHIB 0x400FE714 // Hibernation Sleep Mode Clock
  208. // Gating Control
  209. #define SYSCTL_SCGCUART 0x400FE718 // Universal Asynchronous
  210. // Receiver/Transmitter Sleep Mode
  211. // Clock Gating Control
  212. #define SYSCTL_SCGCSSI 0x400FE71C // Synchronous Serial Interface
  213. // Sleep Mode Clock Gating Control
  214. #define SYSCTL_SCGCI2C 0x400FE720 // Inter-Integrated Circuit Sleep
  215. // Mode Clock Gating Control
  216. #define SYSCTL_SCGCUSB 0x400FE728 // Universal Serial Bus Sleep Mode
  217. // Clock Gating Control
  218. #define SYSCTL_SCGCCAN 0x400FE734 // Controller Area Network Sleep
  219. // Mode Clock Gating Control
  220. #define SYSCTL_SCGCADC 0x400FE738 // Analog-to-Digital Converter
  221. // Sleep Mode Clock Gating Control
  222. #define SYSCTL_SCGCACMP 0x400FE73C // Analog Comparator Sleep Mode
  223. // Clock Gating Control
  224. #define SYSCTL_SCGCPWM 0x400FE740 // Pulse Width Modulator Sleep Mode
  225. // Clock Gating Control
  226. #define SYSCTL_SCGCQEI 0x400FE744 // Quadrature Encoder Interface
  227. // Sleep Mode Clock Gating Control
  228. #define SYSCTL_SCGCLPC 0x400FE748 // Low Pin Count Interface Sleep
  229. // Mode Clock Gating Control
  230. #define SYSCTL_SCGCPECI 0x400FE750 // Platform Environment Control
  231. // Interface Sleep Mode Clock
  232. // Gating Control
  233. #define SYSCTL_SCGCFAN 0x400FE754 // FAN Sleep Mode Clock Gating
  234. // Control
  235. #define SYSCTL_SCGCEEPROM 0x400FE758 // EEPROM Sleep Mode Clock Gating
  236. // Control
  237. #define SYSCTL_SCGCWTIMER 0x400FE75C // Wide Timer Sleep Mode Clock
  238. // Gating Control
  239. #define SYSCTL_DCGCWD 0x400FE800 // Watchdog Timer Deep-Sleep Mode
  240. // Clock Gating Control
  241. #define SYSCTL_DCGCTIMER 0x400FE804 // Timer Deep-Sleep Mode Clock
  242. // Gating Control
  243. #define SYSCTL_DCGCGPIO 0x400FE808 // General-Purpose Input/Output
  244. // Deep-Sleep Mode Clock Gating
  245. // Control
  246. #define SYSCTL_DCGCDMA 0x400FE80C // Micro Direct Memory Access
  247. // Deep-Sleep Mode Clock Gating
  248. // Control
  249. #define SYSCTL_DCGCHIB 0x400FE814 // Hibernation Deep-Sleep Mode
  250. // Clock Gating Control
  251. #define SYSCTL_DCGCUART 0x400FE818 // Universal Asynchronous
  252. // Receiver/Transmitter Deep-Sleep
  253. // Mode Clock Gating Control
  254. #define SYSCTL_DCGCSSI 0x400FE81C // Synchronous Serial Interface
  255. // Deep-Sleep Mode Clock Gating
  256. // Control
  257. #define SYSCTL_DCGCI2C 0x400FE820 // Inter-Integrated Circuit
  258. // Deep-Sleep Mode Clock Gating
  259. // Control
  260. #define SYSCTL_DCGCUSB 0x400FE828 // Universal Serial Bus Deep-Sleep
  261. // Mode Clock Gating Control
  262. #define SYSCTL_DCGCCAN 0x400FE834 // Controller Area Network
  263. // Deep-Sleep Mode Clock Gating
  264. // Control
  265. #define SYSCTL_DCGCADC 0x400FE838 // Analog-to-Digital Converter
  266. // Deep-Sleep Mode Clock Gating
  267. // Control
  268. #define SYSCTL_DCGCACMP 0x400FE83C // Analog Comparator Deep-Sleep
  269. // Mode Clock Gating Control
  270. #define SYSCTL_DCGCPWM 0x400FE840 // Pulse Width Modulator Deep-Sleep
  271. // Mode Clock Gating Control
  272. #define SYSCTL_DCGCQEI 0x400FE844 // Quadrature Encoder Interface
  273. // Deep-Sleep Mode Clock Gating
  274. // Control
  275. #define SYSCTL_DCGCLPC 0x400FE848 // Low Pin Count Interface
  276. // Deep-Sleep Mode Clock Gating
  277. // Control
  278. #define SYSCTL_DCGCPECI 0x400FE850 // Platform Environment Control
  279. // Interface Deep-Sleep Mode Clock
  280. // Gating Control
  281. #define SYSCTL_DCGCFAN 0x400FE854 // FAN Deep-Sleep Mode Clock Gating
  282. // Control
  283. #define SYSCTL_DCGCEEPROM 0x400FE858 // EEPROM Deep-Sleep Mode Clock
  284. // Gating Control
  285. #define SYSCTL_DCGCWTIMER 0x400FE85C // Wide Timer Deep-Sleep Mode Clock
  286. // Gating Control
  287. #define SYSCTL_PCWD 0x400FE900 // Watchdog Timer Power Control
  288. #define SYSCTL_PCTIMER 0x400FE904 // Timer Power Control
  289. #define SYSCTL_PCGPIO 0x400FE908 // General-Purpose Input/Output
  290. // Power Control
  291. #define SYSCTL_PCDMA 0x400FE90C // Micro Direct Memory Access Power
  292. // Control
  293. #define SYSCTL_PCHIB 0x400FE914 // Hibernation Power Control
  294. #define SYSCTL_PCUART 0x400FE918 // Universal Asynchronous
  295. // Receiver/Transmitter Power
  296. // Control
  297. #define SYSCTL_PCSSI 0x400FE91C // Synchronous Serial Interface
  298. // Power Control
  299. #define SYSCTL_PCI2C 0x400FE920 // Inter-Integrated Circuit Power
  300. // Control
  301. #define SYSCTL_PCUSB 0x400FE928 // Universal Serial Bus Power
  302. // Control
  303. #define SYSCTL_PCCAN 0x400FE934 // Controller Area Network Power
  304. // Control
  305. #define SYSCTL_PCADC 0x400FE938 // Analog-to-Digital Converter
  306. // Power Control
  307. #define SYSCTL_PCACMP 0x400FE93C // Analog Comparator Power Control
  308. #define SYSCTL_PCPWM 0x400FE940 // Pulse Width Modulator Power
  309. // Control
  310. #define SYSCTL_PCQEI 0x400FE944 // Quadrature Encoder Interface
  311. // Power Control
  312. #define SYSCTL_PCLPC 0x400FE948 // Low Pin Count Interface Power
  313. // Control
  314. #define SYSCTL_PCPECI 0x400FE950 // Platform Environment Control
  315. // Interface Power Control
  316. #define SYSCTL_PCFAN 0x400FE954 // Fan Power Control
  317. #define SYSCTL_PCEEPROM 0x400FE958 // EEPROM Power Control
  318. #define SYSCTL_PCWTIMER 0x400FE95C // Wide Timer Power Control
  319. #define SYSCTL_PRWD 0x400FEA00 // Watchdog Timer Peripheral Ready
  320. #define SYSCTL_PRTIMER 0x400FEA04 // Timer Peripheral Ready
  321. #define SYSCTL_PRGPIO 0x400FEA08 // General-Purpose Input/Output
  322. // Peripheral Ready
  323. #define SYSCTL_PRDMA 0x400FEA0C // Micro Direct Memory Access
  324. // Peripheral Ready
  325. #define SYSCTL_PRHIB 0x400FEA14 // Hibernation Peripheral Ready
  326. #define SYSCTL_PRUART 0x400FEA18 // Universal Asynchronous
  327. // Receiver/Transmitter Peripheral
  328. // Ready
  329. #define SYSCTL_PRSSI 0x400FEA1C // Synchronous Serial Interface
  330. // Peripheral Ready
  331. #define SYSCTL_PRI2C 0x400FEA20 // Inter-Integrated Circuit
  332. // Peripheral Ready
  333. #define SYSCTL_PRUSB 0x400FEA28 // Universal Serial Bus Peripheral
  334. // Ready
  335. #define SYSCTL_PRCAN 0x400FEA34 // Controller Area Network
  336. // Peripheral Ready
  337. #define SYSCTL_PRADC 0x400FEA38 // Analog-to-Digital Converter
  338. // Peripheral Ready
  339. #define SYSCTL_PRACMP 0x400FEA3C // Analog Comparator Peripheral
  340. // Ready
  341. #define SYSCTL_PRPWM 0x400FEA40 // Pulse Width Modulator Peripheral
  342. // Ready
  343. #define SYSCTL_PRQEI 0x400FEA44 // Quadrature Encoder Interface
  344. // Peripheral Ready
  345. #define SYSCTL_PRLPC 0x400FEA48 // Low Pin Count Interface
  346. // Peripheral Ready
  347. #define SYSCTL_PRPECI 0x400FEA50 // Platform Environment Control
  348. // Interface Peripheral Ready
  349. #define SYSCTL_PRFAN 0x400FEA54 // FAN Peripheral Ready
  350. #define SYSCTL_PREEPROM 0x400FEA58 // EEPROM Peripheral Ready
  351. #define SYSCTL_PRWTIMER 0x400FEA5C // Wide Timer Peripheral Ready
  352. //*****************************************************************************
  353. //
  354. // The following are defines for the bit fields in the SYSCTL_DID0 register.
  355. //
  356. //*****************************************************************************
  357. #define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
  358. #define SYSCTL_DID0_VER_0 0x00000000 // Initial DID0 register format
  359. // definition for Stellaris(R)
  360. // Sandstorm-class devices
  361. #define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
  362. // register format
  363. #define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
  364. #define SYSCTL_DID0_CLASS_SANDSTORM \
  365. 0x00000000 // Sandstorm-class Device
  366. #define SYSCTL_DID0_CLASS_FURY 0x00010000 // Stellaris(R) Fury-class devices
  367. #define SYSCTL_DID0_CLASS_DUSTDEVIL \
  368. 0x00030000 // Stellaris(R) DustDevil-class
  369. // devices
  370. #define SYSCTL_DID0_CLASS_TEMPEST \
  371. 0x00040000 // Stellaris(R) Tempest-class
  372. // microcontrollers
  373. #define SYSCTL_DID0_CLASS_BLIZZARD \
  374. 0x00050000 // Stellaris(R) Blizzard-class
  375. // microcontrollers
  376. #define SYSCTL_DID0_CLASS_FIRESTORM \
  377. 0x00060000 // Stellaris(R) Firestorm-class
  378. // microcontrollers
  379. #define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
  380. #define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
  381. #define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
  382. // revision)
  383. #define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
  384. // revision)
  385. #define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
  386. #define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
  387. // revision update
  388. #define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
  389. #define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
  390. #define SYSCTL_DID0_MIN_3 0x00000003 // Minor revision 3
  391. #define SYSCTL_DID0_MIN_4 0x00000004 // Minor revision 4
  392. #define SYSCTL_DID0_MIN_5 0x00000005 // Minor revision 5
  393. //*****************************************************************************
  394. //
  395. // The following are defines for the bit fields in the SYSCTL_DID1 register.
  396. //
  397. //*****************************************************************************
  398. #define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
  399. #define SYSCTL_DID1_VER_0 0x00000000 // Initial DID1 register format
  400. // definition, indicating a
  401. // Stellaris LM3Snnn device
  402. #define SYSCTL_DID1_VER_1 0x10000000 // Second version of the DID1
  403. // register format
  404. #define SYSCTL_DID1_FAM_M 0x0F000000 // Family
  405. #define SYSCTL_DID1_FAM_STELLARIS \
  406. 0x00000000 // Stellaris family of
  407. // microcontollers, that is, all
  408. // devices with external part
  409. // numbers starting with LM3S
  410. #define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
  411. #define SYSCTL_DID1_PRTNO_101 0x00010000 // LM3S101
  412. #define SYSCTL_DID1_PRTNO_102 0x00020000 // LM3S102
  413. #define SYSCTL_DID1_PRTNO_300 0x00190000 // LM3S300
  414. #define SYSCTL_DID1_PRTNO_301 0x00110000 // LM3S301
  415. #define SYSCTL_DID1_PRTNO_308 0x001A0000 // LM3S308
  416. #define SYSCTL_DID1_PRTNO_310 0x00120000 // LM3S310
  417. #define SYSCTL_DID1_PRTNO_315 0x00130000 // LM3S315
  418. #define SYSCTL_DID1_PRTNO_316 0x00140000 // LM3S316
  419. #define SYSCTL_DID1_PRTNO_317 0x00170000 // LM3S317
  420. #define SYSCTL_DID1_PRTNO_328 0x00150000 // LM3S328
  421. #define SYSCTL_DID1_PRTNO_600 0x002A0000 // LM3S600
  422. #define SYSCTL_DID1_PRTNO_601 0x00210000 // LM3S601
  423. #define SYSCTL_DID1_PRTNO_608 0x002B0000 // LM3S608
  424. #define SYSCTL_DID1_PRTNO_610 0x00220000 // LM3S610
  425. #define SYSCTL_DID1_PRTNO_611 0x00230000 // LM3S611
  426. #define SYSCTL_DID1_PRTNO_612 0x00240000 // LM3S612
  427. #define SYSCTL_DID1_PRTNO_613 0x00250000 // LM3S613
  428. #define SYSCTL_DID1_PRTNO_615 0x00260000 // LM3S615
  429. #define SYSCTL_DID1_PRTNO_617 0x00280000 // LM3S617
  430. #define SYSCTL_DID1_PRTNO_618 0x00290000 // LM3S618
  431. #define SYSCTL_DID1_PRTNO_628 0x00270000 // LM3S628
  432. #define SYSCTL_DID1_PRTNO_800 0x00380000 // LM3S800
  433. #define SYSCTL_DID1_PRTNO_801 0x00310000 // LM3S801
  434. #define SYSCTL_DID1_PRTNO_808 0x00390000 // LM3S808
  435. #define SYSCTL_DID1_PRTNO_811 0x00320000 // LM3S811
  436. #define SYSCTL_DID1_PRTNO_812 0x00330000 // LM3S812
  437. #define SYSCTL_DID1_PRTNO_815 0x00340000 // LM3S815
  438. #define SYSCTL_DID1_PRTNO_817 0x00360000 // LM3S817
  439. #define SYSCTL_DID1_PRTNO_818 0x00370000 // LM3S818
  440. #define SYSCTL_DID1_PRTNO_828 0x00350000 // LM3S828
  441. #define SYSCTL_DID1_PRTNO_1110 0x00BF0000 // LM3S1110
  442. #define SYSCTL_DID1_PRTNO_1133 0x00C30000 // LM3S1133
  443. #define SYSCTL_DID1_PRTNO_1138 0x00C50000 // LM3S1138
  444. #define SYSCTL_DID1_PRTNO_1150 0x00C10000 // LM3S1150
  445. #define SYSCTL_DID1_PRTNO_1162 0x00C40000 // LM3S1162
  446. #define SYSCTL_DID1_PRTNO_1165 0x00C20000 // LM3S1165
  447. #define SYSCTL_DID1_PRTNO_1166 0x00EC0000 // LM3S1166
  448. #define SYSCTL_DID1_PRTNO_1332 0x00C60000 // LM3S1332
  449. #define SYSCTL_DID1_PRTNO_1435 0x00BC0000 // LM3S1435
  450. #define SYSCTL_DID1_PRTNO_1439 0x00BA0000 // LM3S1439
  451. #define SYSCTL_DID1_PRTNO_1512 0x00BB0000 // LM3S1512
  452. #define SYSCTL_DID1_PRTNO_1538 0x00C70000 // LM3S1538
  453. #define SYSCTL_DID1_PRTNO_1601 0x00DB0000 // LM3S1601
  454. #define SYSCTL_DID1_PRTNO_1607 0x00060000 // LM3S1607
  455. #define SYSCTL_DID1_PRTNO_1608 0x00DA0000 // LM3S1608
  456. #define SYSCTL_DID1_PRTNO_1620 0x00C00000 // LM3S1620
  457. #define SYSCTL_DID1_PRTNO_1621 0x00CD0000 // LM3S1621
  458. #define SYSCTL_DID1_PRTNO_1625 0x00030000 // LM3S1625
  459. #define SYSCTL_DID1_PRTNO_1626 0x00040000 // LM3S1626
  460. #define SYSCTL_DID1_PRTNO_1627 0x00050000 // LM3S1627
  461. #define SYSCTL_DID1_PRTNO_1635 0x00B30000 // LM3S1635
  462. #define SYSCTL_DID1_PRTNO_1636 0x00EB0000 // LM3S1636
  463. #define SYSCTL_DID1_PRTNO_1637 0x00BD0000 // LM3S1637
  464. #define SYSCTL_DID1_PRTNO_1651 0x00B10000 // LM3S1651
  465. #define SYSCTL_DID1_PRTNO_1751 0x00B90000 // LM3S1751
  466. #define SYSCTL_DID1_PRTNO_1776 0x00100000 // LM3S1776
  467. #define SYSCTL_DID1_PRTNO_1811 0x00160000 // LM3S1811
  468. #define SYSCTL_DID1_PRTNO_1816 0x003D0000 // LM3S1816
  469. #define SYSCTL_DID1_PRTNO_1850 0x00B40000 // LM3S1850
  470. #define SYSCTL_DID1_PRTNO_1911 0x00DD0000 // LM3S1911
  471. #define SYSCTL_DID1_PRTNO_1918 0x00DC0000 // LM3S1918
  472. #define SYSCTL_DID1_PRTNO_1937 0x00B70000 // LM3S1937
  473. #define SYSCTL_DID1_PRTNO_1958 0x00BE0000 // LM3S1958
  474. #define SYSCTL_DID1_PRTNO_1960 0x00B50000 // LM3S1960
  475. #define SYSCTL_DID1_PRTNO_1968 0x00B80000 // LM3S1968
  476. #define SYSCTL_DID1_PRTNO_1969 0x00EA0000 // LM3S1969
  477. #define SYSCTL_DID1_PRTNO_1B21 0x00CE0000 // LM3S1B21
  478. #define SYSCTL_DID1_PRTNO_1C21 0x00CA0000 // LM3S1C21
  479. #define SYSCTL_DID1_PRTNO_1C26 0x00CB0000 // LM3S1C26
  480. #define SYSCTL_DID1_PRTNO_1C58 0x00980000 // LM3S1C58
  481. #define SYSCTL_DID1_PRTNO_1D21 0x00B00000 // LM3S1D21
  482. #define SYSCTL_DID1_PRTNO_1D26 0x00CC0000 // LM3S1D26
  483. #define SYSCTL_DID1_PRTNO_1F11 0x001D0000 // LM3S1F11
  484. #define SYSCTL_DID1_PRTNO_1F16 0x001B0000 // LM3S1F16
  485. #define SYSCTL_DID1_PRTNO_1G21 0x00AF0000 // LM3S1G21
  486. #define SYSCTL_DID1_PRTNO_1G58 0x00950000 // LM3S1G58
  487. #define SYSCTL_DID1_PRTNO_1H11 0x001E0000 // LM3S1H11
  488. #define SYSCTL_DID1_PRTNO_1H16 0x001C0000 // LM3S1H16
  489. #define SYSCTL_DID1_PRTNO_1J11 0x000F0000 // LM3S1J11
  490. #define SYSCTL_DID1_PRTNO_1J16 0x003C0000 // LM3S1J16
  491. #define SYSCTL_DID1_PRTNO_1N11 0x000E0000 // LM3S1N11
  492. #define SYSCTL_DID1_PRTNO_1N16 0x003B0000 // LM3S1N16
  493. #define SYSCTL_DID1_PRTNO_1P51 0x00B20000 // LM3S1P51
  494. #define SYSCTL_DID1_PRTNO_1R21 0x009E0000 // LM3S1R21
  495. #define SYSCTL_DID1_PRTNO_1R26 0x00C90000 // LM3S1R26
  496. #define SYSCTL_DID1_PRTNO_1W16 0x00300000 // LM3S1W16
  497. #define SYSCTL_DID1_PRTNO_1Z16 0x002F0000 // LM3S1Z16
  498. #define SYSCTL_DID1_PRTNO_2016 0x00D40000 // LM3S2016
  499. #define SYSCTL_DID1_PRTNO_2110 0x00510000 // LM3S2110
  500. #define SYSCTL_DID1_PRTNO_2139 0x00840000 // LM3S2139
  501. #define SYSCTL_DID1_PRTNO_2276 0x00390000 // LM3S2276
  502. #define SYSCTL_DID1_PRTNO_2410 0x00A20000 // LM3S2410
  503. #define SYSCTL_DID1_PRTNO_2412 0x00590000 // LM3S2412
  504. #define SYSCTL_DID1_PRTNO_2432 0x00560000 // LM3S2432
  505. #define SYSCTL_DID1_PRTNO_2533 0x005A0000 // LM3S2533
  506. #define SYSCTL_DID1_PRTNO_2601 0x00E10000 // LM3S2601
  507. #define SYSCTL_DID1_PRTNO_2608 0x00E00000 // LM3S2608
  508. #define SYSCTL_DID1_PRTNO_2616 0x00330000 // LM3S2616
  509. #define SYSCTL_DID1_PRTNO_2620 0x00570000 // LM3S2620
  510. #define SYSCTL_DID1_PRTNO_2637 0x00850000 // LM3S2637
  511. #define SYSCTL_DID1_PRTNO_2651 0x00530000 // LM3S2651
  512. #define SYSCTL_DID1_PRTNO_2671 0x00800000 // LM3S2671
  513. #define SYSCTL_DID1_PRTNO_2678 0x00500000 // LM3S2678
  514. #define SYSCTL_DID1_PRTNO_2730 0x00A40000 // LM3S2730
  515. #define SYSCTL_DID1_PRTNO_2739 0x00520000 // LM3S2739
  516. #define SYSCTL_DID1_PRTNO_2776 0x003A0000 // LM3S2776
  517. #define SYSCTL_DID1_PRTNO_2793 0x006D0000 // LM3S2793
  518. #define SYSCTL_DID1_PRTNO_2911 0x00E30000 // LM3S2911
  519. #define SYSCTL_DID1_PRTNO_2918 0x00E20000 // LM3S2918
  520. #define SYSCTL_DID1_PRTNO_2919 0x00ED0000 // LM3S2919
  521. #define SYSCTL_DID1_PRTNO_2939 0x00540000 // LM3S2939
  522. #define SYSCTL_DID1_PRTNO_2948 0x008F0000 // LM3S2948
  523. #define SYSCTL_DID1_PRTNO_2950 0x00580000 // LM3S2950
  524. #define SYSCTL_DID1_PRTNO_2965 0x00550000 // LM3S2965
  525. #define SYSCTL_DID1_PRTNO_2B93 0x006C0000 // LM3S2B93
  526. #define SYSCTL_DID1_PRTNO_2D93 0x00940000 // LM3S2D93
  527. #define SYSCTL_DID1_PRTNO_2U93 0x00930000 // LM3S2U93
  528. #define SYSCTL_DID1_PRTNO_3634 0x00080000 // LM3S3634
  529. #define SYSCTL_DID1_PRTNO_3651 0x00430000 // LM3S3651
  530. #define SYSCTL_DID1_PRTNO_3654 0x00C80000 // LM3S3654
  531. #define SYSCTL_DID1_PRTNO_3739 0x00440000 // LM3S3739
  532. #define SYSCTL_DID1_PRTNO_3748 0x00490000 // LM3S3748
  533. #define SYSCTL_DID1_PRTNO_3749 0x00450000 // LM3S3749
  534. #define SYSCTL_DID1_PRTNO_3826 0x00420000 // LM3S3826
  535. #define SYSCTL_DID1_PRTNO_3J26 0x00410000 // LM3S3J26
  536. #define SYSCTL_DID1_PRTNO_3N26 0x00400000 // LM3S3N26
  537. #define SYSCTL_DID1_PRTNO_3W26 0x003F0000 // LM3S3W26
  538. #define SYSCTL_DID1_PRTNO_3Z26 0x003E0000 // LM3S3Z26
  539. #define SYSCTL_DID1_PRTNO_5632 0x00810000 // LM3S5632
  540. #define SYSCTL_DID1_PRTNO_5651 0x000C0000 // LM3S5651
  541. #define SYSCTL_DID1_PRTNO_5652 0x008A0000 // LM3S5652
  542. #define SYSCTL_DID1_PRTNO_5656 0x004D0000 // LM3S5656
  543. #define SYSCTL_DID1_PRTNO_5662 0x00910000 // LM3S5662
  544. #define SYSCTL_DID1_PRTNO_5732 0x00960000 // LM3S5732
  545. #define SYSCTL_DID1_PRTNO_5737 0x00970000 // LM3S5737
  546. #define SYSCTL_DID1_PRTNO_5739 0x00A00000 // LM3S5739
  547. #define SYSCTL_DID1_PRTNO_5747 0x00990000 // LM3S5747
  548. #define SYSCTL_DID1_PRTNO_5749 0x00A70000 // LM3S5749
  549. #define SYSCTL_DID1_PRTNO_5752 0x009A0000 // LM3S5752
  550. #define SYSCTL_DID1_PRTNO_5762 0x009C0000 // LM3S5762
  551. #define SYSCTL_DID1_PRTNO_5791 0x00690000 // LM3S5791
  552. #define SYSCTL_DID1_PRTNO_5951 0x000B0000 // LM3S5951
  553. #define SYSCTL_DID1_PRTNO_5956 0x004E0000 // LM3S5956
  554. #define SYSCTL_DID1_PRTNO_5B91 0x00680000 // LM3S5B91
  555. #define SYSCTL_DID1_PRTNO_5C31 0x002E0000 // LM3S5C31
  556. #define SYSCTL_DID1_PRTNO_5C36 0x002C0000 // LM3S5C36
  557. #define SYSCTL_DID1_PRTNO_5C51 0x005E0000 // LM3S5C51
  558. #define SYSCTL_DID1_PRTNO_5C56 0x005B0000 // LM3S5C56
  559. #define SYSCTL_DID1_PRTNO_5D51 0x005F0000 // LM3S5D51
  560. #define SYSCTL_DID1_PRTNO_5D56 0x005C0000 // LM3S5D56
  561. #define SYSCTL_DID1_PRTNO_5D91 0x00870000 // LM3S5D91
  562. #define SYSCTL_DID1_PRTNO_5G31 0x002D0000 // LM3S5G31
  563. #define SYSCTL_DID1_PRTNO_5G36 0x001F0000 // LM3S5G36
  564. #define SYSCTL_DID1_PRTNO_5G51 0x005D0000 // LM3S5G51
  565. #define SYSCTL_DID1_PRTNO_5G56 0x004F0000 // LM3S5G56
  566. #define SYSCTL_DID1_PRTNO_5K31 0x00090000 // LM3S5K31
  567. #define SYSCTL_DID1_PRTNO_5K36 0x004A0000 // LM3S5K36
  568. #define SYSCTL_DID1_PRTNO_5P31 0x000A0000 // LM3S5P31
  569. #define SYSCTL_DID1_PRTNO_5P36 0x00480000 // LM3S5P36
  570. #define SYSCTL_DID1_PRTNO_5P3B 0x00B60000 // LM3S5P3B
  571. #define SYSCTL_DID1_PRTNO_5P51 0x000D0000 // LM3S5P51
  572. #define SYSCTL_DID1_PRTNO_5P56 0x004C0000 // LM3S5P56
  573. #define SYSCTL_DID1_PRTNO_5R31 0x00070000 // LM3S5R31
  574. #define SYSCTL_DID1_PRTNO_5R36 0x004B0000 // LM3S5R36
  575. #define SYSCTL_DID1_PRTNO_5T36 0x00470000 // LM3S5T36
  576. #define SYSCTL_DID1_PRTNO_5U91 0x007F0000 // LM3S5U91
  577. #define SYSCTL_DID1_PRTNO_5Y36 0x00460000 // LM3S5Y36
  578. #define SYSCTL_DID1_PRTNO_6100 0x00A10000 // LM3S6100
  579. #define SYSCTL_DID1_PRTNO_6110 0x00740000 // LM3S6110
  580. #define SYSCTL_DID1_PRTNO_6420 0x00A50000 // LM3S6420
  581. #define SYSCTL_DID1_PRTNO_6422 0x00820000 // LM3S6422
  582. #define SYSCTL_DID1_PRTNO_6432 0x00750000 // LM3S6432
  583. #define SYSCTL_DID1_PRTNO_6537 0x00760000 // LM3S6537
  584. #define SYSCTL_DID1_PRTNO_6610 0x00710000 // LM3S6610
  585. #define SYSCTL_DID1_PRTNO_6611 0x00E70000 // LM3S6611
  586. #define SYSCTL_DID1_PRTNO_6618 0x00E60000 // LM3S6618
  587. #define SYSCTL_DID1_PRTNO_6633 0x00830000 // LM3S6633
  588. #define SYSCTL_DID1_PRTNO_6637 0x008B0000 // LM3S6637
  589. #define SYSCTL_DID1_PRTNO_6730 0x00A30000 // LM3S6730
  590. #define SYSCTL_DID1_PRTNO_6753 0x00770000 // LM3S6753
  591. #define SYSCTL_DID1_PRTNO_6816 0x00D10000 // LM3S6816
  592. #define SYSCTL_DID1_PRTNO_6911 0x00E90000 // LM3S6911
  593. #define SYSCTL_DID1_PRTNO_6916 0x00D30000 // LM3S6916
  594. #define SYSCTL_DID1_PRTNO_6918 0x00E80000 // LM3S6918
  595. #define SYSCTL_DID1_PRTNO_6938 0x00890000 // LM3S6938
  596. #define SYSCTL_DID1_PRTNO_6950 0x00720000 // LM3S6950
  597. #define SYSCTL_DID1_PRTNO_6952 0x00780000 // LM3S6952
  598. #define SYSCTL_DID1_PRTNO_6965 0x00730000 // LM3S6965
  599. #define SYSCTL_DID1_PRTNO_6C11 0x00AA0000 // LM3S6C11
  600. #define SYSCTL_DID1_PRTNO_6C65 0x00AC0000 // LM3S6C65
  601. #define SYSCTL_DID1_PRTNO_6G11 0x009F0000 // LM3S6G11
  602. #define SYSCTL_DID1_PRTNO_6G65 0x00AB0000 // LM3S6G65
  603. #define SYSCTL_DID1_PRTNO_8530 0x00640000 // LM3S8530
  604. #define SYSCTL_DID1_PRTNO_8538 0x008E0000 // LM3S8538
  605. #define SYSCTL_DID1_PRTNO_8630 0x00610000 // LM3S8630
  606. #define SYSCTL_DID1_PRTNO_8730 0x00630000 // LM3S8730
  607. #define SYSCTL_DID1_PRTNO_8733 0x008D0000 // LM3S8733
  608. #define SYSCTL_DID1_PRTNO_8738 0x00860000 // LM3S8738
  609. #define SYSCTL_DID1_PRTNO_8930 0x00650000 // LM3S8930
  610. #define SYSCTL_DID1_PRTNO_8933 0x008C0000 // LM3S8933
  611. #define SYSCTL_DID1_PRTNO_8938 0x00880000 // LM3S8938
  612. #define SYSCTL_DID1_PRTNO_8962 0x00A60000 // LM3S8962
  613. #define SYSCTL_DID1_PRTNO_8970 0x00620000 // LM3S8970
  614. #define SYSCTL_DID1_PRTNO_8971 0x00D70000 // LM3S8971
  615. #define SYSCTL_DID1_PRTNO_8C62 0x00AE0000 // LM3S8C62
  616. #define SYSCTL_DID1_PRTNO_8G62 0x00AD0000 // LM3S8G62
  617. #define SYSCTL_DID1_PRTNO_9781 0x00CF0000 // LM3S9781
  618. #define SYSCTL_DID1_PRTNO_9790 0x00670000 // LM3S9790
  619. #define SYSCTL_DID1_PRTNO_9792 0x006B0000 // LM3S9792
  620. #define SYSCTL_DID1_PRTNO_9971 0x002D0000 // LM3S9971
  621. #define SYSCTL_DID1_PRTNO_9997 0x00200000 // LM3S9997
  622. #define SYSCTL_DID1_PRTNO_9B81 0x00D00000 // LM3S9B81
  623. #define SYSCTL_DID1_PRTNO_9B90 0x00660000 // LM3S9B90
  624. #define SYSCTL_DID1_PRTNO_9B92 0x006A0000 // LM3S9B92
  625. #define SYSCTL_DID1_PRTNO_9B95 0x006E0000 // LM3S9B95
  626. #define SYSCTL_DID1_PRTNO_9B96 0x006F0000 // LM3S9B96
  627. #define SYSCTL_DID1_PRTNO_9BN2 0x001D0000 // LM3S9BN2
  628. #define SYSCTL_DID1_PRTNO_9BN5 0x001E0000 // LM3S9BN5
  629. #define SYSCTL_DID1_PRTNO_9BN6 0x001F0000 // LM3S9BN6
  630. #define SYSCTL_DID1_PRTNO_9C97 0x00700000 // LM3S9C97
  631. #define SYSCTL_DID1_PRTNO_9CN5 0x007A0000 // LM3S9CN5
  632. #define SYSCTL_DID1_PRTNO_9D81 0x00A90000 // LM3S9D81
  633. #define SYSCTL_DID1_PRTNO_9D90 0x007E0000 // LM3S9D90
  634. #define SYSCTL_DID1_PRTNO_9D92 0x00920000 // LM3S9D92
  635. #define SYSCTL_DID1_PRTNO_9D95 0x00C80000 // LM3S9D95
  636. #define SYSCTL_DID1_PRTNO_9D96 0x009D0000 // LM3S9D96
  637. #define SYSCTL_DID1_PRTNO_9DN5 0x007B0000 // LM3S9DN5
  638. #define SYSCTL_DID1_PRTNO_9DN6 0x007C0000 // LM3S9DN6
  639. #define SYSCTL_DID1_PRTNO_9G97 0x00600000 // LM3S9G97
  640. #define SYSCTL_DID1_PRTNO_9GN5 0x00790000 // LM3S9GN5
  641. #define SYSCTL_DID1_PRTNO_9L71 0x001B0000 // LM3S9L71
  642. #define SYSCTL_DID1_PRTNO_9L97 0x00180000 // LM3S9L97
  643. #define SYSCTL_DID1_PRTNO_9U81 0x00A80000 // LM3S9U81
  644. #define SYSCTL_DID1_PRTNO_9U90 0x007D0000 // LM3S9U90
  645. #define SYSCTL_DID1_PRTNO_9U92 0x00900000 // LM3S9U92
  646. #define SYSCTL_DID1_PRTNO_9U95 0x00B70000 // LM3S9U95
  647. #define SYSCTL_DID1_PRTNO_9U96 0x009B0000 // LM3S9U96
  648. #define SYSCTL_DID1_PRTNO_LM4F110B2QR \
  649. 0x00180000 // LM4F110B2QR
  650. #define SYSCTL_DID1_PRTNO_LM4F110C4QR \
  651. 0x00190000 // LM4F110C4QR
  652. #define SYSCTL_DID1_PRTNO_LM4F110E5QR \
  653. 0x00100000 // LM4F110E5QR
  654. #define SYSCTL_DID1_PRTNO_LM4F110H5QR \
  655. 0x00110000 // LM4F110H5QR
  656. #define SYSCTL_DID1_PRTNO_LM4F111B2QR \
  657. 0x00220000 // LM4F111B2QR
  658. #define SYSCTL_DID1_PRTNO_LM4F111C4QR \
  659. 0x00230000 // LM4F111C4QR
  660. #define SYSCTL_DID1_PRTNO_LM4F111E5QR \
  661. 0x00200000 // LM4F111E5QR
  662. #define SYSCTL_DID1_PRTNO_LM4F111H5QR \
  663. 0x00210000 // LM4F111H5QR
  664. #define SYSCTL_DID1_PRTNO_LM4F112C4QC \
  665. 0x00360000 // LM4F112C4QC
  666. #define SYSCTL_DID1_PRTNO_LM4F112E5QC \
  667. 0x00300000 // LM4F112E5QC
  668. #define SYSCTL_DID1_PRTNO_LM4F112H5QC \
  669. 0x00310000 // LM4F112H5QC
  670. #define SYSCTL_DID1_PRTNO_LM4F112H5QD \
  671. 0x00350000 // LM4F112H5QD
  672. #define SYSCTL_DID1_PRTNO_LM4F120B2QR \
  673. 0x00010000 // LM4F120B2QR
  674. #define SYSCTL_DID1_PRTNO_LM4F120C4QR \
  675. 0x00020000 // LM4F120C4QR
  676. #define SYSCTL_DID1_PRTNO_LM4F120E5QR \
  677. 0x00030000 // LM4F120E5QR
  678. #define SYSCTL_DID1_PRTNO_LM4F120H5QR \
  679. 0x00040000 // LM4F120H5QR
  680. #define SYSCTL_DID1_PRTNO_LM4F121B2QR \
  681. 0x00080000 // LM4F121B2QR
  682. #define SYSCTL_DID1_PRTNO_LM4F121C4QR \
  683. 0x00090000 // LM4F121C4QR
  684. #define SYSCTL_DID1_PRTNO_LM4F121E5QR \
  685. 0x000A0000 // LM4F121E5QR
  686. #define SYSCTL_DID1_PRTNO_LM4F121H5QR \
  687. 0x000B0000 // LM4F121H5QR
  688. #define SYSCTL_DID1_PRTNO_LM4F122C4QC \
  689. 0x00D00000 // LM4F122C4QC
  690. #define SYSCTL_DID1_PRTNO_LM4F122E5QC \
  691. 0x00D10000 // LM4F122E5QC
  692. #define SYSCTL_DID1_PRTNO_LM4F122H5QC \
  693. 0x00D20000 // LM4F122H5QC
  694. #define SYSCTL_DID1_PRTNO_LM4F122H5QD \
  695. 0x00D60000 // LM4F122H5QD
  696. #define SYSCTL_DID1_PRTNO_LM4F130C4QR \
  697. 0x00480000 // LM4F130C4QR
  698. #define SYSCTL_DID1_PRTNO_LM4F130E5QR \
  699. 0x00400000 // LM4F130E5QR
  700. #define SYSCTL_DID1_PRTNO_LM4F130H5QR \
  701. 0x00410000 // LM4F130H5QR
  702. #define SYSCTL_DID1_PRTNO_LM4F131C4QR \
  703. 0x00520000 // LM4F131C4QR
  704. #define SYSCTL_DID1_PRTNO_LM4F131E5QR \
  705. 0x00500000 // LM4F131E5QR
  706. #define SYSCTL_DID1_PRTNO_LM4F131H5QR \
  707. 0x00510000 // LM4F131H5QR
  708. #define SYSCTL_DID1_PRTNO_LM4F132C4QC \
  709. 0x00660000 // LM4F132C4QC
  710. #define SYSCTL_DID1_PRTNO_LM4F132E5QC \
  711. 0x00600000 // LM4F132E5QC
  712. #define SYSCTL_DID1_PRTNO_LM4F132H5QC \
  713. 0x00610000 // LM4F132H5QC
  714. #define SYSCTL_DID1_PRTNO_LM4F132H5QD \
  715. 0x00650000 // LM4F132H5QD
  716. #define SYSCTL_DID1_PRTNO_LM4F230E5QR \
  717. 0x00A00000 // LM4F230E5QR
  718. #define SYSCTL_DID1_PRTNO_LM4F230H5QR \
  719. 0x00A10000 // LM4F230H5QR
  720. #define SYSCTL_DID1_PRTNO_LM4F231E5QR \
  721. 0x00B00000 // LM4F231E5QR
  722. #define SYSCTL_DID1_PRTNO_LM4F231H5QR \
  723. 0x00B10000 // LM4F231H5QR
  724. #define SYSCTL_DID1_PRTNO_LM4F232E5QC \
  725. 0x00C00000 // LM4F232E5QC
  726. #define SYSCTL_DID1_PRTNO_LM4F232H5BB \
  727. 0x00E30000 // LM4F232H5BB
  728. #define SYSCTL_DID1_PRTNO_LM4F232H5QC \
  729. 0x00C10000 // LM4F232H5QC
  730. #define SYSCTL_DID1_PRTNO_LM4F232H5QD \
  731. 0x00C50000 // LM4F232H5QD
  732. #define SYSCTL_DID1_PRTNO_LM4FS1AH5BB \
  733. 0x00E50000 // LM4FS1AH5BB
  734. #define SYSCTL_DID1_PRTNO_LM4FS99H5BB \
  735. 0x00E40000 // LM4FS99H5BB
  736. #define SYSCTL_DID1_PRTNO_LM4FSXAH5BB \
  737. 0x00E00000 // LM4FSXAH5BB
  738. #define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
  739. #define SYSCTL_DID1_PINCNT_28 0x00000000 // 28 pin package
  740. #define SYSCTL_DID1_PINCNT_48 0x00002000 // 48-pin package
  741. #define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin package
  742. #define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin package
  743. #define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin package
  744. #define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin package
  745. #define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
  746. #define SYSCTL_DID1_TEMP_C 0x00000000 // Commercial temperature range (0C
  747. // to 70C)
  748. #define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
  749. // (-40C to 85C)
  750. #define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range (-40C
  751. // to 105C)
  752. #define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
  753. #define SYSCTL_DID1_PKG_SOIC 0x00000000 // SOIC package
  754. #define SYSCTL_DID1_PKG_QFP 0x00000008 // LQFP package
  755. #define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
  756. #define SYSCTL_DID1_PKG_QFN 0x00000018 // QFN package
  757. #define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
  758. #define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
  759. #define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
  760. #define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
  761. #define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
  762. #define SYSCTL_DID1_PRTNO_S 16 // Part number shift
  763. //*****************************************************************************
  764. //
  765. // The following are defines for the bit fields in the SYSCTL_DC0 register.
  766. //
  767. //*****************************************************************************
  768. #define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000 // SRAM Size
  769. #define SYSCTL_DC0_SRAMSZ_2KB 0x00070000 // 2 KB of SRAM
  770. #define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000 // 4 KB of SRAM
  771. #define SYSCTL_DC0_SRAMSZ_6KB 0x00170000 // 6 KB of SRAM
  772. #define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000 // 8 KB of SRAM
  773. #define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000 // 12 KB of SRAM
  774. #define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000 // 16 KB of SRAM
  775. #define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000 // 20 KB of SRAM
  776. #define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000 // 24 KB of SRAM
  777. #define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000 // 32 KB of SRAM
  778. #define SYSCTL_DC0_SRAMSZ_48KB 0x00BF0000 // 48 KB of SRAM
  779. #define SYSCTL_DC0_SRAMSZ_64KB 0x00FF0000 // 64 KB of SRAM
  780. #define SYSCTL_DC0_SRAMSZ_96KB 0x017F0000 // 96 KB of SRAM
  781. #define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF // Flash Size
  782. #define SYSCTL_DC0_FLASHSZ_8KB 0x00000003 // 8 KB of Flash
  783. #define SYSCTL_DC0_FLASHSZ_16KB 0x00000007 // 16 KB of Flash
  784. #define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F // 32 KB of Flash
  785. #define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F // 64 KB of Flash
  786. #define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F // 96 KB of Flash
  787. #define SYSCTL_DC0_FLASHSZ_128K 0x0000003F // 128 KB of Flash
  788. #define SYSCTL_DC0_FLASHSZ_192K 0x0000005F // 192 KB of Flash
  789. #define SYSCTL_DC0_FLASHSZ_256K 0x0000007F // 256 KB of Flash
  790. #define SYSCTL_DC0_FLASHSZ_384K 0x000000BF // 384 KB of Flash
  791. #define SYSCTL_DC0_FLASHSZ_512K 0x000000FF // 512 KB of Flash
  792. #define SYSCTL_DC0_SRAMSZ_S 16 // SRAM size shift
  793. #define SYSCTL_DC0_FLASHSZ_S 0 // Flash size shift
  794. //*****************************************************************************
  795. //
  796. // The following are defines for the bit fields in the SYSCTL_DC1 register.
  797. //
  798. //*****************************************************************************
  799. #define SYSCTL_DC1_WDT1 0x10000000 // Watchdog Timer1 Present
  800. #define SYSCTL_DC1_CAN2 0x04000000 // CAN Module 2 Present
  801. #define SYSCTL_DC1_CAN1 0x02000000 // CAN Module 1 Present
  802. #define SYSCTL_DC1_CAN0 0x01000000 // CAN Module 0 Present
  803. #define SYSCTL_DC1_PWM1 0x00200000 // PWM Module 1 Present
  804. #define SYSCTL_DC1_PWM0 0x00100000 // PWM Module 0 Present
  805. #define SYSCTL_DC1_ADC1 0x00020000 // ADC Module 1 Present
  806. #define SYSCTL_DC1_ADC0 0x00010000 // ADC Module 0 Present
  807. #define SYSCTL_DC1_MINSYSDIV_M 0x0000F000 // System Clock Divider
  808. #define SYSCTL_DC1_MINSYSDIV_100 \
  809. 0x00001000 // Divide VCO (400MHZ) by 5 minimum
  810. #define SYSCTL_DC1_MINSYSDIV_66 0x00002000 // Divide VCO (400MHZ) by 2*2 + 2 =
  811. // 6 minimum
  812. #define SYSCTL_DC1_MINSYSDIV_50 0x00003000 // Specifies a 50-MHz CPU clock
  813. // with a PLL divider of 4
  814. #define SYSCTL_DC1_MINSYSDIV_40 0x00004000 // Specifies a 40-MHz CPU clock
  815. // with a PLL divider of 5
  816. #define SYSCTL_DC1_MINSYSDIV_25 0x00007000 // Specifies a 25-MHz clock with a
  817. // PLL divider of 8
  818. #define SYSCTL_DC1_MINSYSDIV_20 0x00009000 // Specifies a 20-MHz clock with a
  819. // PLL divider of 10
  820. #define SYSCTL_DC1_ADC1SPD_M 0x00000C00 // Max ADC1 Speed
  821. #define SYSCTL_DC1_ADC1SPD_125K 0x00000000 // 125K samples/second
  822. #define SYSCTL_DC1_ADC1SPD_250K 0x00000400 // 250K samples/second
  823. #define SYSCTL_DC1_ADC1SPD_500K 0x00000800 // 500K samples/second
  824. #define SYSCTL_DC1_ADC1SPD_1M 0x00000C00 // 1M samples/second
  825. #define SYSCTL_DC1_ADC0SPD_M 0x00000300 // Max ADC0 Speed
  826. #define SYSCTL_DC1_ADC0SPD_125K 0x00000000 // 125K samples/second
  827. #define SYSCTL_DC1_ADC0SPD_250K 0x00000100 // 250K samples/second
  828. #define SYSCTL_DC1_ADC0SPD_500K 0x00000200 // 500K samples/second
  829. #define SYSCTL_DC1_ADC0SPD_1M 0x00000300 // 1M samples/second
  830. #define SYSCTL_DC1_MPU 0x00000080 // MPU Present
  831. #define SYSCTL_DC1_HIB 0x00000040 // Hibernation Module Present
  832. #define SYSCTL_DC1_TEMP 0x00000020 // Temp Sensor Present
  833. #define SYSCTL_DC1_PLL 0x00000010 // PLL Present
  834. #define SYSCTL_DC1_WDT0 0x00000008 // Watchdog Timer 0 Present
  835. #define SYSCTL_DC1_SWO 0x00000004 // SWO Trace Port Present
  836. #define SYSCTL_DC1_SWD 0x00000002 // SWD Present
  837. #define SYSCTL_DC1_JTAG 0x00000001 // JTAG Present
  838. //*****************************************************************************
  839. //
  840. // The following are defines for the bit fields in the SYSCTL_DC2 register.
  841. //
  842. //*****************************************************************************
  843. #define SYSCTL_DC2_EPI0 0x40000000 // EPI Module 0 Present
  844. #define SYSCTL_DC2_I2S0 0x10000000 // I2S Module 0 Present
  845. #define SYSCTL_DC2_COMP2 0x04000000 // Analog Comparator 2 Present
  846. #define SYSCTL_DC2_COMP1 0x02000000 // Analog Comparator 1 Present
  847. #define SYSCTL_DC2_COMP0 0x01000000 // Analog Comparator 0 Present
  848. #define SYSCTL_DC2_TIMER3 0x00080000 // Timer Module 3 Present
  849. #define SYSCTL_DC2_TIMER2 0x00040000 // Timer Module 2 Present
  850. #define SYSCTL_DC2_TIMER1 0x00020000 // Timer Module 1 Present
  851. #define SYSCTL_DC2_TIMER0 0x00010000 // Timer Module 0 Present
  852. #define SYSCTL_DC2_I2C1HS 0x00008000 // I2C Module 1 Speed
  853. #define SYSCTL_DC2_I2C1 0x00004000 // I2C Module 1 Present
  854. #define SYSCTL_DC2_I2C0HS 0x00002000 // I2C Module 0 Speed
  855. #define SYSCTL_DC2_I2C0 0x00001000 // I2C Module 0 Present
  856. #define SYSCTL_DC2_QEI1 0x00000200 // QEI Module 1 Present
  857. #define SYSCTL_DC2_QEI0 0x00000100 // QEI Module 0 Present
  858. #define SYSCTL_DC2_SSI1 0x00000020 // SSI Module 1 Present
  859. #define SYSCTL_DC2_SSI0 0x00000010 // SSI Module 0 Present
  860. #define SYSCTL_DC2_UART2 0x00000004 // UART Module 2 Present
  861. #define SYSCTL_DC2_UART1 0x00000002 // UART Module 1 Present
  862. #define SYSCTL_DC2_UART0 0x00000001 // UART Module 0 Present
  863. //*****************************************************************************
  864. //
  865. // The following are defines for the bit fields in the SYSCTL_DC3 register.
  866. //
  867. //*****************************************************************************
  868. #define SYSCTL_DC3_32KHZ 0x80000000 // 32KHz Input Clock Available
  869. #define SYSCTL_DC3_CCP5 0x20000000 // CCP5 Pin Present
  870. #define SYSCTL_DC3_CCP4 0x10000000 // CCP4 Pin Present
  871. #define SYSCTL_DC3_CCP3 0x08000000 // CCP3 Pin Present
  872. #define SYSCTL_DC3_CCP2 0x04000000 // CCP2 Pin Present
  873. #define SYSCTL_DC3_CCP1 0x02000000 // CCP1 Pin Present
  874. #define SYSCTL_DC3_CCP0 0x01000000 // CCP0 Pin Present
  875. #define SYSCTL_DC3_ADC0AIN7 0x00800000 // ADC Module 0 AIN7 Pin Present
  876. #define SYSCTL_DC3_ADC0AIN6 0x00400000 // ADC Module 0 AIN6 Pin Present
  877. #define SYSCTL_DC3_ADC0AIN5 0x00200000 // ADC Module 0 AIN5 Pin Present
  878. #define SYSCTL_DC3_ADC0AIN4 0x00100000 // ADC Module 0 AIN4 Pin Present
  879. #define SYSCTL_DC3_ADC0AIN3 0x00080000 // ADC Module 0 AIN3 Pin Present
  880. #define SYSCTL_DC3_ADC0AIN2 0x00040000 // ADC Module 0 AIN2 Pin Present
  881. #define SYSCTL_DC3_ADC0AIN1 0x00020000 // ADC Module 0 AIN1 Pin Present
  882. #define SYSCTL_DC3_ADC0AIN0 0x00010000 // ADC Module 0 AIN0 Pin Present
  883. #define SYSCTL_DC3_PWMFAULT 0x00008000 // PWM Fault Pin Present
  884. #define SYSCTL_DC3_C2O 0x00004000 // C2o Pin Present
  885. #define SYSCTL_DC3_C2PLUS 0x00002000 // C2+ Pin Present
  886. #define SYSCTL_DC3_C2MINUS 0x00001000 // C2- Pin Present
  887. #define SYSCTL_DC3_C1O 0x00000800 // C1o Pin Present
  888. #define SYSCTL_DC3_C1PLUS 0x00000400 // C1+ Pin Present
  889. #define SYSCTL_DC3_C1MINUS 0x00000200 // C1- Pin Present
  890. #define SYSCTL_DC3_C0O 0x00000100 // C0o Pin Present
  891. #define SYSCTL_DC3_C0PLUS 0x00000080 // C0+ Pin Present
  892. #define SYSCTL_DC3_C0MINUS 0x00000040 // C0- Pin Present
  893. #define SYSCTL_DC3_PWM5 0x00000020 // PWM5 Pin Present
  894. #define SYSCTL_DC3_PWM4 0x00000010 // PWM4 Pin Present
  895. #define SYSCTL_DC3_PWM3 0x00000008 // PWM3 Pin Present
  896. #define SYSCTL_DC3_PWM2 0x00000004 // PWM2 Pin Present
  897. #define SYSCTL_DC3_PWM1 0x00000002 // PWM1 Pin Present
  898. #define SYSCTL_DC3_PWM0 0x00000001 // PWM0 Pin Present
  899. //*****************************************************************************
  900. //
  901. // The following are defines for the bit fields in the SYSCTL_DC4 register.
  902. //
  903. //*****************************************************************************
  904. #define SYSCTL_DC4_ETH 0x50000000 // Ethernet present
  905. #define SYSCTL_DC4_EPHY0 0x40000000 // Ethernet PHY Layer 0 Present
  906. #define SYSCTL_DC4_EMAC0 0x10000000 // Ethernet MAC Layer 0 Present
  907. #define SYSCTL_DC4_E1588 0x01000000 // 1588 Capable
  908. #define SYSCTL_DC4_PICAL 0x00040000 // PIOSC Calibrate
  909. #define SYSCTL_DC4_CCP7 0x00008000 // CCP7 Pin Present
  910. #define SYSCTL_DC4_CCP6 0x00004000 // CCP6 Pin Present
  911. #define SYSCTL_DC4_UDMA 0x00002000 // Micro-DMA Module Present
  912. #define SYSCTL_DC4_ROM 0x00001000 // Internal Code ROM Present
  913. #define SYSCTL_DC4_GPIOJ 0x00000100 // GPIO Port J Present
  914. #define SYSCTL_DC4_GPIOH 0x00000080 // GPIO Port H Present
  915. #define SYSCTL_DC4_GPIOG 0x00000040 // GPIO Port G Present
  916. #define SYSCTL_DC4_GPIOF 0x00000020 // GPIO Port F Present
  917. #define SYSCTL_DC4_GPIOE 0x00000010 // GPIO Port E Present
  918. #define SYSCTL_DC4_GPIOD 0x00000008 // GPIO Port D Present
  919. #define SYSCTL_DC4_GPIOC 0x00000004 // GPIO Port C Present
  920. #define SYSCTL_DC4_GPIOB 0x00000002 // GPIO Port B Present
  921. #define SYSCTL_DC4_GPIOA 0x00000001 // GPIO Port A Present
  922. //*****************************************************************************
  923. //
  924. // The following are defines for the bit fields in the SYSCTL_DC5 register.
  925. //
  926. //*****************************************************************************
  927. #define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present
  928. #define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present
  929. #define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present
  930. #define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present
  931. #define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault Active
  932. #define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC Active
  933. #define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present
  934. #define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present
  935. #define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present
  936. #define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present
  937. #define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present
  938. #define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present
  939. #define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present
  940. #define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present
  941. //*****************************************************************************
  942. //
  943. // The following are defines for the bit fields in the SYSCTL_DC6 register.
  944. //
  945. //*****************************************************************************
  946. #define SYSCTL_DC6_USB0PHY 0x00000010 // USB Module 0 PHY Present
  947. #define SYSCTL_DC6_USB0_M 0x00000003 // USB Module 0 Present
  948. #define SYSCTL_DC6_USB0_DEV 0x00000001 // USB0 is Device Only
  949. #define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is Device or Host
  950. #define SYSCTL_DC6_USB0_OTG 0x00000003 // USB0 is OTG
  951. //*****************************************************************************
  952. //
  953. // The following are defines for the bit fields in the SYSCTL_DC7 register.
  954. //
  955. //*****************************************************************************
  956. #define SYSCTL_DC7_SW 0x40000000 // Software transfer on uDMA Ch30
  957. #define SYSCTL_DC7_DMACH30 0x40000000 // SW
  958. #define SYSCTL_DC7_DMACH29 0x20000000 // I2S0_TX / CAN1_TX
  959. #define SYSCTL_DC7_DMACH28 0x10000000 // I2S0_RX / CAN1_RX
  960. #define SYSCTL_DC7_DMACH27 0x08000000 // CAN1_TX / ADC1_SS3
  961. #define SYSCTL_DC7_DMACH26 0x04000000 // CAN1_RX / ADC1_SS2
  962. #define SYSCTL_DC7_DMACH25 0x02000000 // SSI1_TX / ADC1_SS1
  963. #define SYSCTL_DC7_SSI1_TX 0x02000000 // SSI1 TX on uDMA Ch25
  964. #define SYSCTL_DC7_SSI1_RX 0x01000000 // SSI1 RX on uDMA Ch24
  965. #define SYSCTL_DC7_DMACH24 0x01000000 // SSI1_RX / ADC1_SS0
  966. #define SYSCTL_DC7_UART1_TX 0x00800000 // UART1 TX on uDMA Ch23
  967. #define SYSCTL_DC7_DMACH23 0x00800000 // UART1_TX / CAN2_TX
  968. #define SYSCTL_DC7_DMACH22 0x00400000 // UART1_RX / CAN2_RX
  969. #define SYSCTL_DC7_UART1_RX 0x00400000 // UART1 RX on uDMA Ch22
  970. #define SYSCTL_DC7_DMACH21 0x00200000 // Timer1B / EPI0_WFIFO
  971. #define SYSCTL_DC7_DMACH20 0x00100000 // Timer1A / EPI0_NBRFIFO
  972. #define SYSCTL_DC7_DMACH19 0x00080000 // Timer0B / Timer1B
  973. #define SYSCTL_DC7_DMACH18 0x00040000 // Timer0A / Timer1A
  974. #define SYSCTL_DC7_DMACH17 0x00020000 // ADC0_SS3
  975. #define SYSCTL_DC7_DMACH16 0x00010000 // ADC0_SS2
  976. #define SYSCTL_DC7_DMACH15 0x00008000 // ADC0_SS1 / Timer2B
  977. #define SYSCTL_DC7_DMACH14 0x00004000 // ADC0_SS0 / Timer2A
  978. #define SYSCTL_DC7_DMACH13 0x00002000 // CAN0_TX / UART2_TX
  979. #define SYSCTL_DC7_DMACH12 0x00001000 // CAN0_RX / UART2_RX
  980. #define SYSCTL_DC7_SSI0_TX 0x00000800 // SSI0 TX on uDMA Ch11
  981. #define SYSCTL_DC7_DMACH11 0x00000800 // SSI0_TX / SSI1_TX
  982. #define SYSCTL_DC7_SSI0_RX 0x00000400 // SSI0 RX on uDMA Ch10
  983. #define SYSCTL_DC7_DMACH10 0x00000400 // SSI0_RX / SSI1_RX
  984. #define SYSCTL_DC7_UART0_TX 0x00000200 // UART0 TX on uDMA Ch9
  985. #define SYSCTL_DC7_DMACH9 0x00000200 // UART0_TX / UART1_TX
  986. #define SYSCTL_DC7_DMACH8 0x00000100 // UART0_RX / UART1_RX
  987. #define SYSCTL_DC7_UART0_RX 0x00000100 // UART0 RX on uDMA Ch8
  988. #define SYSCTL_DC7_DMACH7 0x00000080 // ETH_TX / Timer2B
  989. #define SYSCTL_DC7_DMACH6 0x00000040 // ETH_RX / Timer2A
  990. #define SYSCTL_DC7_DMACH5 0x00000020 // USB_EP3_TX / Timer2B
  991. #define SYSCTL_DC7_USB_EP3_TX 0x00000020 // USB EP3 TX on uDMA Ch5
  992. #define SYSCTL_DC7_USB_EP3_RX 0x00000010 // USB EP3 RX on uDMA Ch4
  993. #define SYSCTL_DC7_DMACH4 0x00000010 // USB_EP3_RX / Timer2A
  994. #define SYSCTL_DC7_USB_EP2_TX 0x00000008 // USB EP2 TX on uDMA Ch3
  995. #define SYSCTL_DC7_DMACH3 0x00000008 // USB_EP2_TX / Timer3B
  996. #define SYSCTL_DC7_USB_EP2_RX 0x00000004 // USB EP2 RX on uDMA Ch2
  997. #define SYSCTL_DC7_DMACH2 0x00000004 // USB_EP2_RX / Timer3A
  998. #define SYSCTL_DC7_USB_EP1_TX 0x00000002 // USB EP1 TX on uDMA Ch1
  999. #define SYSCTL_DC7_DMACH1 0x00000002 // USB_EP1_TX / UART2_TX
  1000. #define SYSCTL_DC7_DMACH0 0x00000001 // USB_EP1_RX / UART2_RX
  1001. #define SYSCTL_DC7_USB_EP1_RX 0x00000001 // USB EP1 RX on uDMA Ch0
  1002. //*****************************************************************************
  1003. //
  1004. // The following are defines for the bit fields in the SYSCTL_DC8 register.
  1005. //
  1006. //*****************************************************************************
  1007. #define SYSCTL_DC8_ADC1AIN15 0x80000000 // ADC Module 1 AIN15 Pin Present
  1008. #define SYSCTL_DC8_ADC1AIN14 0x40000000 // ADC Module 1 AIN14 Pin Present
  1009. #define SYSCTL_DC8_ADC1AIN13 0x20000000 // ADC Module 1 AIN13 Pin Present
  1010. #define SYSCTL_DC8_ADC1AIN12 0x10000000 // ADC Module 1 AIN12 Pin Present
  1011. #define SYSCTL_DC8_ADC1AIN11 0x08000000 // ADC Module 1 AIN11 Pin Present
  1012. #define SYSCTL_DC8_ADC1AIN10 0x04000000 // ADC Module 1 AIN10 Pin Present
  1013. #define SYSCTL_DC8_ADC1AIN9 0x02000000 // ADC Module 1 AIN9 Pin Present
  1014. #define SYSCTL_DC8_ADC1AIN8 0x01000000 // ADC Module 1 AIN8 Pin Present
  1015. #define SYSCTL_DC8_ADC1AIN7 0x00800000 // ADC Module 1 AIN7 Pin Present
  1016. #define SYSCTL_DC8_ADC1AIN6 0x00400000 // ADC Module 1 AIN6 Pin Present
  1017. #define SYSCTL_DC8_ADC1AIN5 0x00200000 // ADC Module 1 AIN5 Pin Present
  1018. #define SYSCTL_DC8_ADC1AIN4 0x00100000 // ADC Module 1 AIN4 Pin Present
  1019. #define SYSCTL_DC8_ADC1AIN3 0x00080000 // ADC Module 1 AIN3 Pin Present
  1020. #define SYSCTL_DC8_ADC1AIN2 0x00040000 // ADC Module 1 AIN2 Pin Present
  1021. #define SYSCTL_DC8_ADC1AIN1 0x00020000 // ADC Module 1 AIN1 Pin Present
  1022. #define SYSCTL_DC8_ADC1AIN0 0x00010000 // ADC Module 1 AIN0 Pin Present
  1023. #define SYSCTL_DC8_ADC0AIN15 0x00008000 // ADC Module 0 AIN15 Pin Present
  1024. #define SYSCTL_DC8_ADC0AIN14 0x00004000 // ADC Module 0 AIN14 Pin Present
  1025. #define SYSCTL_DC8_ADC0AIN13 0x00002000 // ADC Module 0 AIN13 Pin Present
  1026. #define SYSCTL_DC8_ADC0AIN12 0x00001000 // ADC Module 0 AIN12 Pin Present
  1027. #define SYSCTL_DC8_ADC0AIN11 0x00000800 // ADC Module 0 AIN11 Pin Present
  1028. #define SYSCTL_DC8_ADC0AIN10 0x00000400 // ADC Module 0 AIN10 Pin Present
  1029. #define SYSCTL_DC8_ADC0AIN9 0x00000200 // ADC Module 0 AIN9 Pin Present
  1030. #define SYSCTL_DC8_ADC0AIN8 0x00000100 // ADC Module 0 AIN8 Pin Present
  1031. #define SYSCTL_DC8_ADC0AIN7 0x00000080 // ADC Module 0 AIN7 Pin Present
  1032. #define SYSCTL_DC8_ADC0AIN6 0x00000040 // ADC Module 0 AIN6 Pin Present
  1033. #define SYSCTL_DC8_ADC0AIN5 0x00000020 // ADC Module 0 AIN5 Pin Present
  1034. #define SYSCTL_DC8_ADC0AIN4 0x00000010 // ADC Module 0 AIN4 Pin Present
  1035. #define SYSCTL_DC8_ADC0AIN3 0x00000008 // ADC Module 0 AIN3 Pin Present
  1036. #define SYSCTL_DC8_ADC0AIN2 0x00000004 // ADC Module 0 AIN2 Pin Present
  1037. #define SYSCTL_DC8_ADC0AIN1 0x00000002 // ADC Module 0 AIN1 Pin Present
  1038. #define SYSCTL_DC8_ADC0AIN0 0x00000001 // ADC Module 0 AIN0 Pin Present
  1039. //*****************************************************************************
  1040. //
  1041. // The following are defines for the bit fields in the SYSCTL_PBORCTL register.
  1042. //
  1043. //*****************************************************************************
  1044. #define SYSCTL_PBORCTL_BORTIM_M 0x0000FFFC // BOR Time Delay
  1045. #define SYSCTL_PBORCTL_BORIOR 0x00000002 // BOR Interrupt or Reset
  1046. #define SYSCTL_PBORCTL_BORWT 0x00000001 // BOR Wait and Check for Noise
  1047. #define SYSCTL_PBORCTL_BORTIM_S 2
  1048. //*****************************************************************************
  1049. //
  1050. // The following are defines for the bit fields in the SYSCTL_LDOPCTL register.
  1051. //
  1052. //*****************************************************************************
  1053. #define SYSCTL_LDOPCTL_M 0x0000003F // LDO Output Voltage
  1054. #define SYSCTL_LDOPCTL_2_50V 0x00000000 // 2.50
  1055. #define SYSCTL_LDOPCTL_2_45V 0x00000001 // 2.45
  1056. #define SYSCTL_LDOPCTL_2_40V 0x00000002 // 2.40
  1057. #define SYSCTL_LDOPCTL_2_35V 0x00000003 // 2.35
  1058. #define SYSCTL_LDOPCTL_2_30V 0x00000004 // 2.30
  1059. #define SYSCTL_LDOPCTL_2_25V 0x00000005 // 2.25
  1060. #define SYSCTL_LDOPCTL_2_75V 0x0000001B // 2.75
  1061. #define SYSCTL_LDOPCTL_2_70V 0x0000001C // 2.70
  1062. #define SYSCTL_LDOPCTL_2_65V 0x0000001D // 2.65
  1063. #define SYSCTL_LDOPCTL_2_60V 0x0000001E // 2.60
  1064. #define SYSCTL_LDOPCTL_2_55V 0x0000001F // 2.55
  1065. //*****************************************************************************
  1066. //
  1067. // The following are defines for the bit fields in the SYSCTL_SRCR0 register.
  1068. //
  1069. //*****************************************************************************
  1070. #define SYSCTL_SRCR0_WDT1 0x10000000 // WDT1 Reset Control
  1071. #define SYSCTL_SRCR0_CAN2 0x04000000 // CAN2 Reset Control
  1072. #define SYSCTL_SRCR0_CAN1 0x02000000 // CAN1 Reset Control
  1073. #define SYSCTL_SRCR0_CAN0 0x01000000 // CAN0 Reset Control
  1074. #define SYSCTL_SRCR0_PWM0 0x00100000 // PWM Reset Control
  1075. #define SYSCTL_SRCR0_ADC1 0x00020000 // ADC1 Reset Control
  1076. #define SYSCTL_SRCR0_ADC0 0x00010000 // ADC0 Reset Control
  1077. #define SYSCTL_SRCR0_HIB 0x00000040 // HIB Reset Control
  1078. #define SYSCTL_SRCR0_WDT0 0x00000008 // WDT0 Reset Control
  1079. //*****************************************************************************
  1080. //
  1081. // The following are defines for the bit fields in the SYSCTL_SRCR1 register.
  1082. //
  1083. //*****************************************************************************
  1084. #define SYSCTL_SRCR1_EPI0 0x40000000 // EPI0 Reset Control
  1085. #define SYSCTL_SRCR1_I2S0 0x10000000 // I2S0 Reset Control
  1086. #define SYSCTL_SRCR1_COMP2 0x04000000 // Analog Comp 2 Reset Control
  1087. #define SYSCTL_SRCR1_COMP1 0x02000000 // Analog Comp 1 Reset Control
  1088. #define SYSCTL_SRCR1_COMP0 0x01000000 // Analog Comp 0 Reset Control
  1089. #define SYSCTL_SRCR1_TIMER3 0x00080000 // Timer 3 Reset Control
  1090. #define SYSCTL_SRCR1_TIMER2 0x00040000 // Timer 2 Reset Control
  1091. #define SYSCTL_SRCR1_TIMER1 0x00020000 // Timer 1 Reset Control
  1092. #define SYSCTL_SRCR1_TIMER0 0x00010000 // Timer 0 Reset Control
  1093. #define SYSCTL_SRCR1_I2C1 0x00004000 // I2C1 Reset Control
  1094. #define SYSCTL_SRCR1_I2C0 0x00001000 // I2C0 Reset Control
  1095. #define SYSCTL_SRCR1_QEI1 0x00000200 // QEI1 Reset Control
  1096. #define SYSCTL_SRCR1_QEI0 0x00000100 // QEI0 Reset Control
  1097. #define SYSCTL_SRCR1_SSI1 0x00000020 // SSI1 Reset Control
  1098. #define SYSCTL_SRCR1_SSI0 0x00000010 // SSI0 Reset Control
  1099. #define SYSCTL_SRCR1_UART2 0x00000004 // UART2 Reset Control
  1100. #define SYSCTL_SRCR1_UART1 0x00000002 // UART1 Reset Control
  1101. #define SYSCTL_SRCR1_UART0 0x00000001 // UART0 Reset Control
  1102. //*****************************************************************************
  1103. //
  1104. // The following are defines for the bit fields in the SYSCTL_SRCR2 register.
  1105. //
  1106. //*****************************************************************************
  1107. #define SYSCTL_SRCR2_EPHY0 0x40000000 // PHY0 Reset Control
  1108. #define SYSCTL_SRCR2_EMAC0 0x10000000 // MAC0 Reset Control
  1109. #define SYSCTL_SRCR2_USB0 0x00010000 // USB0 Reset Control
  1110. #define SYSCTL_SRCR2_UDMA 0x00002000 // Micro-DMA Reset Control
  1111. #define SYSCTL_SRCR2_GPIOJ 0x00000100 // Port J Reset Control
  1112. #define SYSCTL_SRCR2_GPIOH 0x00000080 // Port H Reset Control
  1113. #define SYSCTL_SRCR2_GPIOG 0x00000040 // Port G Reset Control
  1114. #define SYSCTL_SRCR2_GPIOF 0x00000020 // Port F Reset Control
  1115. #define SYSCTL_SRCR2_GPIOE 0x00000010 // Port E Reset Control
  1116. #define SYSCTL_SRCR2_GPIOD 0x00000008 // Port D Reset Control
  1117. #define SYSCTL_SRCR2_GPIOC 0x00000004 // Port C Reset Control
  1118. #define SYSCTL_SRCR2_GPIOB 0x00000002 // Port B Reset Control
  1119. #define SYSCTL_SRCR2_GPIOA 0x00000001 // Port A Reset Control
  1120. //*****************************************************************************
  1121. //
  1122. // The following are defines for the bit fields in the SYSCTL_RIS register.
  1123. //
  1124. //*****************************************************************************
  1125. #define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
  1126. // Status
  1127. #define SYSCTL_RIS_USBPLLLRIS 0x00000080 // USB PLL Lock Raw Interrupt
  1128. // Status
  1129. #define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
  1130. #define SYSCTL_RIS_CLRIS 0x00000020 // Current Limit Raw Interrupt
  1131. // Status
  1132. #define SYSCTL_RIS_IOFRIS 0x00000010 // Internal Oscillator Fault Raw
  1133. // Interrupt Status
  1134. #define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Fault Raw
  1135. // Interrupt Status
  1136. #define SYSCTL_RIS_LDORIS 0x00000004 // LDO Power Unregulated Raw
  1137. // Interrupt Status
  1138. #define SYSCTL_RIS_BORRIS 0x00000002 // Brown-Out Reset Raw Interrupt
  1139. // Status
  1140. #define SYSCTL_RIS_PLLFRIS 0x00000001 // PLL Fault Raw Interrupt Status
  1141. //*****************************************************************************
  1142. //
  1143. // The following are defines for the bit fields in the SYSCTL_IMC register.
  1144. //
  1145. //*****************************************************************************
  1146. #define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
  1147. #define SYSCTL_IMC_USBPLLLIM 0x00000080 // USB PLL Lock Interrupt Mask
  1148. #define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
  1149. #define SYSCTL_IMC_CLIM 0x00000020 // Current Limit Interrupt Mask
  1150. #define SYSCTL_IMC_IOFIM 0x00000010 // Internal Oscillator Fault
  1151. // Interrupt Mask
  1152. #define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Fault Interrupt
  1153. // Mask
  1154. #define SYSCTL_IMC_LDOIM 0x00000004 // LDO Power Unregulated Interrupt
  1155. // Mask
  1156. #define SYSCTL_IMC_BORIM 0x00000002 // Brown-Out Reset Interrupt Mask
  1157. #define SYSCTL_IMC_PLLFIM 0x00000001 // PLL Fault Interrupt Mask
  1158. //*****************************************************************************
  1159. //
  1160. // The following are defines for the bit fields in the SYSCTL_MISC register.
  1161. //
  1162. //*****************************************************************************
  1163. #define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
  1164. // Status
  1165. #define SYSCTL_MISC_USBPLLLMIS 0x00000080 // USB PLL Lock Masked Interrupt
  1166. // Status
  1167. #define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
  1168. #define SYSCTL_MISC_CLMIS 0x00000020 // Current Limit Masked Interrupt
  1169. // Status
  1170. #define SYSCTL_MISC_IOFMIS 0x00000010 // Internal Oscillator Fault Masked
  1171. // Interrupt Status
  1172. #define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Fault Masked
  1173. // Interrupt Status
  1174. #define SYSCTL_MISC_LDOMIS 0x00000004 // LDO Power Unregulated Masked
  1175. // Interrupt Status
  1176. #define SYSCTL_MISC_BORMIS 0x00000002 // BOR Masked Interrupt Status
  1177. //*****************************************************************************
  1178. //
  1179. // The following are defines for the bit fields in the SYSCTL_RESC register.
  1180. //
  1181. //*****************************************************************************
  1182. #define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
  1183. #define SYSCTL_RESC_LDO 0x00000020 // LDO Reset
  1184. #define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
  1185. #define SYSCTL_RESC_SW 0x00000010 // Software Reset
  1186. #define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
  1187. #define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
  1188. #define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
  1189. #define SYSCTL_RESC_EXT 0x00000001 // External Reset
  1190. //*****************************************************************************
  1191. //
  1192. // The following are defines for the bit fields in the SYSCTL_RCC register.
  1193. //
  1194. //*****************************************************************************
  1195. #define SYSCTL_RCC_ACG 0x08000000 // Auto Clock Gating
  1196. #define SYSCTL_RCC_SYSDIV_M 0x07800000 // System Clock Divisor
  1197. #define SYSCTL_RCC_SYSDIV_2 0x00800000 // System clock /2
  1198. #define SYSCTL_RCC_SYSDIV_3 0x01000000 // System clock /3
  1199. #define SYSCTL_RCC_SYSDIV_4 0x01800000 // System clock /4
  1200. #define SYSCTL_RCC_SYSDIV_5 0x02000000 // System clock /5
  1201. #define SYSCTL_RCC_SYSDIV_6 0x02800000 // System clock /6
  1202. #define SYSCTL_RCC_SYSDIV_7 0x03000000 // System clock /7
  1203. #define SYSCTL_RCC_SYSDIV_8 0x03800000 // System clock /8
  1204. #define SYSCTL_RCC_SYSDIV_9 0x04000000 // System clock /9
  1205. #define SYSCTL_RCC_SYSDIV_10 0x04800000 // System clock /10
  1206. #define SYSCTL_RCC_SYSDIV_11 0x05000000 // System clock /11
  1207. #define SYSCTL_RCC_SYSDIV_12 0x05800000 // System clock /12
  1208. #define SYSCTL_RCC_SYSDIV_13 0x06000000 // System clock /13
  1209. #define SYSCTL_RCC_SYSDIV_14 0x06800000 // System clock /14
  1210. #define SYSCTL_RCC_SYSDIV_15 0x07000000 // System clock /15
  1211. #define SYSCTL_RCC_SYSDIV_16 0x07800000 // System clock /16
  1212. #define SYSCTL_RCC_USESYSDIV 0x00400000 // Enable System Clock Divider
  1213. #define SYSCTL_RCC_USEPWMDIV 0x00100000 // Enable PWM Clock Divisor
  1214. #define SYSCTL_RCC_PWMDIV_M 0x000E0000 // PWM Unit Clock Divisor
  1215. #define SYSCTL_RCC_PWMDIV_2 0x00000000 // PWM clock /2
  1216. #define SYSCTL_RCC_PWMDIV_4 0x00020000 // PWM clock /4
  1217. #define SYSCTL_RCC_PWMDIV_8 0x00040000 // PWM clock /8
  1218. #define SYSCTL_RCC_PWMDIV_16 0x00060000 // PWM clock /16
  1219. #define SYSCTL_RCC_PWMDIV_32 0x00080000 // PWM clock /32
  1220. #define SYSCTL_RCC_PWMDIV_64 0x000A0000 // PWM clock /64
  1221. #define SYSCTL_RCC_PWRDN 0x00002000 // PLL Power Down
  1222. #define SYSCTL_RCC_OEN 0x00001000 // PLL Output Enable
  1223. #define SYSCTL_RCC_BYPASS 0x00000800 // PLL Bypass
  1224. #define SYSCTL_RCC_XTAL_M 0x000007C0 // Crystal Value
  1225. #define SYSCTL_RCC_XTAL_1MHZ 0x00000000 // 1 MHz
  1226. #define SYSCTL_RCC_XTAL_1_84MHZ 0x00000040 // 1.8432 MHz
  1227. #define SYSCTL_RCC_XTAL_2MHZ 0x00000080 // 2 MHz
  1228. #define SYSCTL_RCC_XTAL_2_45MHZ 0x000000C0 // 2.4576 MHz
  1229. #define SYSCTL_RCC_XTAL_3_57MHZ 0x00000100 // 3.579545 MHz
  1230. #define SYSCTL_RCC_XTAL_3_68MHZ 0x00000140 // 3.6864 MHz
  1231. #define SYSCTL_RCC_XTAL_4MHZ 0x00000180 // 4 MHz
  1232. #define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0 // 4.096 MHz
  1233. #define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200 // 4.9152 MHz
  1234. #define SYSCTL_RCC_XTAL_5MHZ 0x00000240 // 5 MHz
  1235. #define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280 // 5.12 MHz
  1236. #define SYSCTL_RCC_XTAL_6MHZ 0x000002C0 // 6 MHz
  1237. #define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300 // 6.144 MHz
  1238. #define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340 // 7.3728 MHz
  1239. #define SYSCTL_RCC_XTAL_8MHZ 0x00000380 // 8 MHz
  1240. #define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0 // 8.192 MHz
  1241. #define SYSCTL_RCC_XTAL_10MHZ 0x00000400 // 10 MHz
  1242. #define SYSCTL_RCC_XTAL_12MHZ 0x00000440 // 12 MHz
  1243. #define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480 // 12.288 MHz
  1244. #define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0 // 13.56 MHz
  1245. #define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500 // 14.31818 MHz
  1246. #define SYSCTL_RCC_XTAL_16MHZ 0x00000540 // 16 MHz
  1247. #define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580 // 16.384 MHz
  1248. #define SYSCTL_RCC_XTAL_18MHZ 0x000005C0 // 18.0 MHz
  1249. #define SYSCTL_RCC_XTAL_20MHZ 0x00000600 // 20.0 MHz
  1250. #define SYSCTL_RCC_XTAL_24MHZ 0x00000640 // 24.0 MHz
  1251. #define SYSCTL_RCC_XTAL_25MHZ 0x00000680 // 25.0 MHz
  1252. #define SYSCTL_RCC_PLLVER 0x00000400 // PLL Verification
  1253. #define SYSCTL_RCC_OSCSRC_M 0x00000030 // Oscillator Source
  1254. #define SYSCTL_RCC_OSCSRC_MAIN 0x00000000 // MOSC
  1255. #define SYSCTL_RCC_OSCSRC_INT 0x00000010 // IOSC
  1256. #define SYSCTL_RCC_OSCSRC_INT4 0x00000020 // IOSC/4
  1257. #define SYSCTL_RCC_OSCSRC_30 0x00000030 // 30 kHz
  1258. #define SYSCTL_RCC_IOSCVER 0x00000008 // Internal Oscillator Verification
  1259. // Timer
  1260. #define SYSCTL_RCC_MOSCVER 0x00000004 // Main Oscillator Verification
  1261. // Timer
  1262. #define SYSCTL_RCC_IOSCDIS 0x00000002 // Internal Oscillator Disable
  1263. #define SYSCTL_RCC_MOSCDIS 0x00000001 // Main Oscillator Disable
  1264. #define SYSCTL_RCC_SYSDIV_S 23
  1265. #define SYSCTL_RCC_PWMDIV_S 17 // Shift to the PWMDIV field
  1266. #define SYSCTL_RCC_XTAL_S 6 // Shift to the XTAL field
  1267. #define SYSCTL_RCC_OSCSRC_S 4 // Shift to the OSCSRC field
  1268. //*****************************************************************************
  1269. //
  1270. // The following are defines for the bit fields in the SYSCTL_PLLCFG register.
  1271. //
  1272. //*****************************************************************************
  1273. #define SYSCTL_PLLCFG_OD_M 0x0000C000 // PLL OD Value
  1274. #define SYSCTL_PLLCFG_OD_1 0x00000000 // Divide by 1
  1275. #define SYSCTL_PLLCFG_OD_2 0x00004000 // Divide by 2
  1276. #define SYSCTL_PLLCFG_OD_4 0x00008000 // Divide by 4
  1277. #define SYSCTL_PLLCFG_F_M 0x00003FE0 // PLL F Value
  1278. #define SYSCTL_PLLCFG_R_M 0x0000001F // PLL R Value
  1279. #define SYSCTL_PLLCFG_F_S 5
  1280. #define SYSCTL_PLLCFG_R_S 0
  1281. //*****************************************************************************
  1282. //
  1283. // The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
  1284. // register.
  1285. //
  1286. //*****************************************************************************
  1287. #define SYSCTL_GPIOHBCTL_PORTJ 0x00000100 // Port J Advanced High-Performance
  1288. // Bus
  1289. #define SYSCTL_GPIOHBCTL_PORTH 0x00000080 // Port H Advanced High-Performance
  1290. // Bus
  1291. #define SYSCTL_GPIOHBCTL_PORTG 0x00000040 // Port G Advanced High-Performance
  1292. // Bus
  1293. #define SYSCTL_GPIOHBCTL_PORTF 0x00000020 // Port F Advanced High-Performance
  1294. // Bus
  1295. #define SYSCTL_GPIOHBCTL_PORTE 0x00000010 // Port E Advanced High-Performance
  1296. // Bus
  1297. #define SYSCTL_GPIOHBCTL_PORTD 0x00000008 // Port D Advanced High-Performance
  1298. // Bus
  1299. #define SYSCTL_GPIOHBCTL_PORTC 0x00000004 // Port C Advanced High-Performance
  1300. // Bus
  1301. #define SYSCTL_GPIOHBCTL_PORTB 0x00000002 // Port B Advanced High-Performance
  1302. // Bus
  1303. #define SYSCTL_GPIOHBCTL_PORTA 0x00000001 // Port A Advanced High-Performance
  1304. // Bus
  1305. //*****************************************************************************
  1306. //
  1307. // The following are defines for the bit fields in the SYSCTL_RCC2 register.
  1308. //
  1309. //*****************************************************************************
  1310. #define SYSCTL_RCC2_USERCC2 0x80000000 // Use RCC2
  1311. #define SYSCTL_RCC2_DIV400 0x40000000 // Divide PLL as 400 MHz vs. 200
  1312. // MHz
  1313. #define SYSCTL_RCC2_SYSDIV2_M 0x1F800000 // System Clock Divisor 2
  1314. #define SYSCTL_RCC2_SYSDIV2_2 0x00800000 // System clock /2
  1315. #define SYSCTL_RCC2_SYSDIV2_3 0x01000000 // System clock /3
  1316. #define SYSCTL_RCC2_SYSDIV2_4 0x01800000 // System clock /4
  1317. #define SYSCTL_RCC2_SYSDIV2_5 0x02000000 // System clock /5
  1318. #define SYSCTL_RCC2_SYSDIV2_6 0x02800000 // System clock /6
  1319. #define SYSCTL_RCC2_SYSDIV2_7 0x03000000 // System clock /7
  1320. #define SYSCTL_RCC2_SYSDIV2_8 0x03800000 // System clock /8
  1321. #define SYSCTL_RCC2_SYSDIV2_9 0x04000000 // System clock /9
  1322. #define SYSCTL_RCC2_SYSDIV2_10 0x04800000 // System clock /10
  1323. #define SYSCTL_RCC2_SYSDIV2_11 0x05000000 // System clock /11
  1324. #define SYSCTL_RCC2_SYSDIV2_12 0x05800000 // System clock /12
  1325. #define SYSCTL_RCC2_SYSDIV2_13 0x06000000 // System clock /13
  1326. #define SYSCTL_RCC2_SYSDIV2_14 0x06800000 // System clock /14
  1327. #define SYSCTL_RCC2_SYSDIV2_15 0x07000000 // System clock /15
  1328. #define SYSCTL_RCC2_SYSDIV2_16 0x07800000 // System clock /16
  1329. #define SYSCTL_RCC2_SYSDIV2_17 0x08000000 // System clock /17
  1330. #define SYSCTL_RCC2_SYSDIV2_18 0x08800000 // System clock /18
  1331. #define SYSCTL_RCC2_SYSDIV2_19 0x09000000 // System clock /19
  1332. #define SYSCTL_RCC2_SYSDIV2_20 0x09800000 // System clock /20
  1333. #define SYSCTL_RCC2_SYSDIV2_21 0x0A000000 // System clock /21
  1334. #define SYSCTL_RCC2_SYSDIV2_22 0x0A800000 // System clock /22
  1335. #define SYSCTL_RCC2_SYSDIV2_23 0x0B000000 // System clock /23
  1336. #define SYSCTL_RCC2_SYSDIV2_24 0x0B800000 // System clock /24
  1337. #define SYSCTL_RCC2_SYSDIV2_25 0x0C000000 // System clock /25
  1338. #define SYSCTL_RCC2_SYSDIV2_26 0x0C800000 // System clock /26
  1339. #define SYSCTL_RCC2_SYSDIV2_27 0x0D000000 // System clock /27
  1340. #define SYSCTL_RCC2_SYSDIV2_28 0x0D800000 // System clock /28
  1341. #define SYSCTL_RCC2_SYSDIV2_29 0x0E000000 // System clock /29
  1342. #define SYSCTL_RCC2_SYSDIV2_30 0x0E800000 // System clock /30
  1343. #define SYSCTL_RCC2_SYSDIV2_31 0x0F000000 // System clock /31
  1344. #define SYSCTL_RCC2_SYSDIV2_32 0x0F800000 // System clock /32
  1345. #define SYSCTL_RCC2_SYSDIV2_33 0x10000000 // System clock /33
  1346. #define SYSCTL_RCC2_SYSDIV2_34 0x10800000 // System clock /34
  1347. #define SYSCTL_RCC2_SYSDIV2_35 0x11000000 // System clock /35
  1348. #define SYSCTL_RCC2_SYSDIV2_36 0x11800000 // System clock /36
  1349. #define SYSCTL_RCC2_SYSDIV2_37 0x12000000 // System clock /37
  1350. #define SYSCTL_RCC2_SYSDIV2_38 0x12800000 // System clock /38
  1351. #define SYSCTL_RCC2_SYSDIV2_39 0x13000000 // System clock /39
  1352. #define SYSCTL_RCC2_SYSDIV2_40 0x13800000 // System clock /40
  1353. #define SYSCTL_RCC2_SYSDIV2_41 0x14000000 // System clock /41
  1354. #define SYSCTL_RCC2_SYSDIV2_42 0x14800000 // System clock /42
  1355. #define SYSCTL_RCC2_SYSDIV2_43 0x15000000 // System clock /43
  1356. #define SYSCTL_RCC2_SYSDIV2_44 0x15800000 // System clock /44
  1357. #define SYSCTL_RCC2_SYSDIV2_45 0x16000000 // System clock /45
  1358. #define SYSCTL_RCC2_SYSDIV2_46 0x16800000 // System clock /46
  1359. #define SYSCTL_RCC2_SYSDIV2_47 0x17000000 // System clock /47
  1360. #define SYSCTL_RCC2_SYSDIV2_48 0x17800000 // System clock /48
  1361. #define SYSCTL_RCC2_SYSDIV2_49 0x18000000 // System clock /49
  1362. #define SYSCTL_RCC2_SYSDIV2_50 0x18800000 // System clock /50
  1363. #define SYSCTL_RCC2_SYSDIV2_51 0x19000000 // System clock /51
  1364. #define SYSCTL_RCC2_SYSDIV2_52 0x19800000 // System clock /52
  1365. #define SYSCTL_RCC2_SYSDIV2_53 0x1A000000 // System clock /53
  1366. #define SYSCTL_RCC2_SYSDIV2_54 0x1A800000 // System clock /54
  1367. #define SYSCTL_RCC2_SYSDIV2_55 0x1B000000 // System clock /55
  1368. #define SYSCTL_RCC2_SYSDIV2_56 0x1B800000 // System clock /56
  1369. #define SYSCTL_RCC2_SYSDIV2_57 0x1C000000 // System clock /57
  1370. #define SYSCTL_RCC2_SYSDIV2_58 0x1C800000 // System clock /58
  1371. #define SYSCTL_RCC2_SYSDIV2_59 0x1D000000 // System clock /59
  1372. #define SYSCTL_RCC2_SYSDIV2_60 0x1D800000 // System clock /60
  1373. #define SYSCTL_RCC2_SYSDIV2_61 0x1E000000 // System clock /61
  1374. #define SYSCTL_RCC2_SYSDIV2_62 0x1E800000 // System clock /62
  1375. #define SYSCTL_RCC2_SYSDIV2_63 0x1F000000 // System clock /63
  1376. #define SYSCTL_RCC2_SYSDIV2_64 0x1F800000 // System clock /64
  1377. #define SYSCTL_RCC2_SYSDIV2LSB 0x00400000 // Additional LSB for SYSDIV2
  1378. #define SYSCTL_RCC2_USBPWRDN 0x00004000 // Power-Down USB PLL
  1379. #define SYSCTL_RCC2_PWRDN2 0x00002000 // Power-Down PLL 2
  1380. #define SYSCTL_RCC2_BYPASS2 0x00000800 // PLL Bypass 2
  1381. #define SYSCTL_RCC2_OSCSRC2_M 0x00000070 // Oscillator Source 2
  1382. #define SYSCTL_RCC2_OSCSRC2_MO 0x00000000 // MOSC
  1383. #define SYSCTL_RCC2_OSCSRC2_IO 0x00000010 // PIOSC
  1384. #define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020 // PIOSC/4
  1385. #define SYSCTL_RCC2_OSCSRC2_30 0x00000030 // 30 kHz
  1386. #define SYSCTL_RCC2_OSCSRC2_419 0x00000060 // 4.194304 MHz
  1387. #define SYSCTL_RCC2_OSCSRC2_32 0x00000070 // 32.768 kHz
  1388. #define SYSCTL_RCC2_SYSDIV2_S 23
  1389. //*****************************************************************************
  1390. //
  1391. // The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
  1392. //
  1393. //*****************************************************************************
  1394. #define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
  1395. #define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
  1396. #define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
  1397. //*****************************************************************************
  1398. //
  1399. // The following are defines for the bit fields in the SYSCTL_RCGC0 register.
  1400. //
  1401. //*****************************************************************************
  1402. #define SYSCTL_RCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  1403. #define SYSCTL_RCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  1404. #define SYSCTL_RCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  1405. #define SYSCTL_RCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  1406. #define SYSCTL_RCGC0_PWM0 0x00100000 // PWM Clock Gating Control
  1407. #define SYSCTL_RCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  1408. #define SYSCTL_RCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  1409. #define SYSCTL_RCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed
  1410. #define SYSCTL_RCGC0_ADCSPD125K 0x00000000 // 125K samples/second
  1411. #define SYSCTL_RCGC0_ADCSPD250K 0x00000100 // 250K samples/second
  1412. #define SYSCTL_RCGC0_ADCSPD500K 0x00000200 // 500K samples/second
  1413. #define SYSCTL_RCGC0_ADCSPD1M 0x00000300 // 1M samples/second
  1414. #define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
  1415. #define SYSCTL_RCGC0_ADC1SPD_125K \
  1416. 0x00000000 // 125K samples/second
  1417. #define SYSCTL_RCGC0_ADC1SPD_250K \
  1418. 0x00000400 // 250K samples/second
  1419. #define SYSCTL_RCGC0_ADC1SPD_500K \
  1420. 0x00000800 // 500K samples/second
  1421. #define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
  1422. #define SYSCTL_RCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
  1423. #define SYSCTL_RCGC0_ADC0SPD_125K \
  1424. 0x00000000 // 125K samples/second
  1425. #define SYSCTL_RCGC0_ADC0SPD_250K \
  1426. 0x00000100 // 250K samples/second
  1427. #define SYSCTL_RCGC0_ADC0SPD_500K \
  1428. 0x00000200 // 500K samples/second
  1429. #define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
  1430. #define SYSCTL_RCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1431. #define SYSCTL_RCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1432. //*****************************************************************************
  1433. //
  1434. // The following are defines for the bit fields in the SYSCTL_RCGC1 register.
  1435. //
  1436. //*****************************************************************************
  1437. #define SYSCTL_RCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1438. #define SYSCTL_RCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1439. #define SYSCTL_RCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1440. #define SYSCTL_RCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1441. #define SYSCTL_RCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1442. #define SYSCTL_RCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1443. #define SYSCTL_RCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1444. #define SYSCTL_RCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1445. #define SYSCTL_RCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1446. #define SYSCTL_RCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1447. #define SYSCTL_RCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1448. #define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1449. #define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1450. #define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1451. #define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1452. #define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1453. #define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1454. #define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1455. //*****************************************************************************
  1456. //
  1457. // The following are defines for the bit fields in the SYSCTL_RCGC2 register.
  1458. //
  1459. //*****************************************************************************
  1460. #define SYSCTL_RCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1461. #define SYSCTL_RCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1462. #define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1463. #define SYSCTL_RCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1464. #define SYSCTL_RCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1465. #define SYSCTL_RCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1466. #define SYSCTL_RCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1467. #define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1468. #define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1469. #define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1470. #define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1471. #define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1472. #define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1473. //*****************************************************************************
  1474. //
  1475. // The following are defines for the bit fields in the SYSCTL_SCGC0 register.
  1476. //
  1477. //*****************************************************************************
  1478. #define SYSCTL_SCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  1479. #define SYSCTL_SCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  1480. #define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  1481. #define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  1482. #define SYSCTL_SCGC0_PWM0 0x00100000 // PWM Clock Gating Control
  1483. #define SYSCTL_SCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  1484. #define SYSCTL_SCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  1485. #define SYSCTL_SCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed
  1486. #define SYSCTL_SCGC0_ADCSPD125K 0x00000000 // 125K samples/second
  1487. #define SYSCTL_SCGC0_ADCSPD250K 0x00000100 // 250K samples/second
  1488. #define SYSCTL_SCGC0_ADCSPD500K 0x00000200 // 500K samples/second
  1489. #define SYSCTL_SCGC0_ADCSPD1M 0x00000300 // 1M samples/second
  1490. #define SYSCTL_SCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
  1491. #define SYSCTL_SCGC0_ADC1SPD_125K \
  1492. 0x00000000 // 125K samples/second
  1493. #define SYSCTL_SCGC0_ADC1SPD_250K \
  1494. 0x00000400 // 250K samples/second
  1495. #define SYSCTL_SCGC0_ADC1SPD_500K \
  1496. 0x00000800 // 500K samples/second
  1497. #define SYSCTL_SCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
  1498. #define SYSCTL_SCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
  1499. #define SYSCTL_SCGC0_ADC0SPD_125K \
  1500. 0x00000000 // 125K samples/second
  1501. #define SYSCTL_SCGC0_ADC0SPD_250K \
  1502. 0x00000100 // 250K samples/second
  1503. #define SYSCTL_SCGC0_ADC0SPD_500K \
  1504. 0x00000200 // 500K samples/second
  1505. #define SYSCTL_SCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
  1506. #define SYSCTL_SCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1507. #define SYSCTL_SCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1508. //*****************************************************************************
  1509. //
  1510. // The following are defines for the bit fields in the SYSCTL_SCGC1 register.
  1511. //
  1512. //*****************************************************************************
  1513. #define SYSCTL_SCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1514. #define SYSCTL_SCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1515. #define SYSCTL_SCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1516. #define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1517. #define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1518. #define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1519. #define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1520. #define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1521. #define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1522. #define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1523. #define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1524. #define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1525. #define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1526. #define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1527. #define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1528. #define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1529. #define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1530. #define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1531. //*****************************************************************************
  1532. //
  1533. // The following are defines for the bit fields in the SYSCTL_SCGC2 register.
  1534. //
  1535. //*****************************************************************************
  1536. #define SYSCTL_SCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1537. #define SYSCTL_SCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1538. #define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1539. #define SYSCTL_SCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1540. #define SYSCTL_SCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1541. #define SYSCTL_SCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1542. #define SYSCTL_SCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1543. #define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1544. #define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1545. #define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1546. #define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1547. #define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1548. #define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1549. //*****************************************************************************
  1550. //
  1551. // The following are defines for the bit fields in the SYSCTL_DCGC0 register.
  1552. //
  1553. //*****************************************************************************
  1554. #define SYSCTL_DCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  1555. #define SYSCTL_DCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  1556. #define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  1557. #define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  1558. #define SYSCTL_DCGC0_PWM0 0x00100000 // PWM Clock Gating Control
  1559. #define SYSCTL_DCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  1560. #define SYSCTL_DCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  1561. #define SYSCTL_DCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1562. #define SYSCTL_DCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1563. //*****************************************************************************
  1564. //
  1565. // The following are defines for the bit fields in the SYSCTL_DCGC1 register.
  1566. //
  1567. //*****************************************************************************
  1568. #define SYSCTL_DCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1569. #define SYSCTL_DCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1570. #define SYSCTL_DCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1571. #define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1572. #define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1573. #define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1574. #define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1575. #define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1576. #define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1577. #define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1578. #define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1579. #define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1580. #define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1581. #define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1582. #define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1583. #define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1584. #define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1585. #define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1586. //*****************************************************************************
  1587. //
  1588. // The following are defines for the bit fields in the SYSCTL_DCGC2 register.
  1589. //
  1590. //*****************************************************************************
  1591. #define SYSCTL_DCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1592. #define SYSCTL_DCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1593. #define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1594. #define SYSCTL_DCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1595. #define SYSCTL_DCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1596. #define SYSCTL_DCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1597. #define SYSCTL_DCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1598. #define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1599. #define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1600. #define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1601. #define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1602. #define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1603. #define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1604. //*****************************************************************************
  1605. //
  1606. // The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
  1607. // register.
  1608. //
  1609. //*****************************************************************************
  1610. #define SYSCTL_DSLPCLKCFG_D_M 0x1F800000 // Divider Field Override
  1611. #define SYSCTL_DSLPCLKCFG_D_1 0x00000000 // System clock /1
  1612. #define SYSCTL_DSLPCLKCFG_D_2 0x00800000 // System clock /2
  1613. #define SYSCTL_DSLPCLKCFG_D_3 0x01000000 // System clock /3
  1614. #define SYSCTL_DSLPCLKCFG_D_4 0x01800000 // System clock /4
  1615. #define SYSCTL_DSLPCLKCFG_D_5 0x02000000 // System clock /5
  1616. #define SYSCTL_DSLPCLKCFG_D_6 0x02800000 // System clock /6
  1617. #define SYSCTL_DSLPCLKCFG_D_7 0x03000000 // System clock /7
  1618. #define SYSCTL_DSLPCLKCFG_D_8 0x03800000 // System clock /8
  1619. #define SYSCTL_DSLPCLKCFG_D_9 0x04000000 // System clock /9
  1620. #define SYSCTL_DSLPCLKCFG_D_10 0x04800000 // System clock /10
  1621. #define SYSCTL_DSLPCLKCFG_D_11 0x05000000 // System clock /11
  1622. #define SYSCTL_DSLPCLKCFG_D_12 0x05800000 // System clock /12
  1623. #define SYSCTL_DSLPCLKCFG_D_13 0x06000000 // System clock /13
  1624. #define SYSCTL_DSLPCLKCFG_D_14 0x06800000 // System clock /14
  1625. #define SYSCTL_DSLPCLKCFG_D_15 0x07000000 // System clock /15
  1626. #define SYSCTL_DSLPCLKCFG_D_16 0x07800000 // System clock /16
  1627. #define SYSCTL_DSLPCLKCFG_D_17 0x08000000 // System clock /17
  1628. #define SYSCTL_DSLPCLKCFG_D_18 0x08800000 // System clock /18
  1629. #define SYSCTL_DSLPCLKCFG_D_19 0x09000000 // System clock /19
  1630. #define SYSCTL_DSLPCLKCFG_D_20 0x09800000 // System clock /20
  1631. #define SYSCTL_DSLPCLKCFG_D_21 0x0A000000 // System clock /21
  1632. #define SYSCTL_DSLPCLKCFG_D_22 0x0A800000 // System clock /22
  1633. #define SYSCTL_DSLPCLKCFG_D_23 0x0B000000 // System clock /23
  1634. #define SYSCTL_DSLPCLKCFG_D_24 0x0B800000 // System clock /24
  1635. #define SYSCTL_DSLPCLKCFG_D_25 0x0C000000 // System clock /25
  1636. #define SYSCTL_DSLPCLKCFG_D_26 0x0C800000 // System clock /26
  1637. #define SYSCTL_DSLPCLKCFG_D_27 0x0D000000 // System clock /27
  1638. #define SYSCTL_DSLPCLKCFG_D_28 0x0D800000 // System clock /28
  1639. #define SYSCTL_DSLPCLKCFG_D_29 0x0E000000 // System clock /29
  1640. #define SYSCTL_DSLPCLKCFG_D_30 0x0E800000 // System clock /30
  1641. #define SYSCTL_DSLPCLKCFG_D_31 0x0F000000 // System clock /31
  1642. #define SYSCTL_DSLPCLKCFG_D_32 0x0F800000 // System clock /32
  1643. #define SYSCTL_DSLPCLKCFG_D_33 0x10000000 // System clock /33
  1644. #define SYSCTL_DSLPCLKCFG_D_34 0x10800000 // System clock /34
  1645. #define SYSCTL_DSLPCLKCFG_D_35 0x11000000 // System clock /35
  1646. #define SYSCTL_DSLPCLKCFG_D_36 0x11800000 // System clock /36
  1647. #define SYSCTL_DSLPCLKCFG_D_37 0x12000000 // System clock /37
  1648. #define SYSCTL_DSLPCLKCFG_D_38 0x12800000 // System clock /38
  1649. #define SYSCTL_DSLPCLKCFG_D_39 0x13000000 // System clock /39
  1650. #define SYSCTL_DSLPCLKCFG_D_40 0x13800000 // System clock /40
  1651. #define SYSCTL_DSLPCLKCFG_D_41 0x14000000 // System clock /41
  1652. #define SYSCTL_DSLPCLKCFG_D_42 0x14800000 // System clock /42
  1653. #define SYSCTL_DSLPCLKCFG_D_43 0x15000000 // System clock /43
  1654. #define SYSCTL_DSLPCLKCFG_D_44 0x15800000 // System clock /44
  1655. #define SYSCTL_DSLPCLKCFG_D_45 0x16000000 // System clock /45
  1656. #define SYSCTL_DSLPCLKCFG_D_46 0x16800000 // System clock /46
  1657. #define SYSCTL_DSLPCLKCFG_D_47 0x17000000 // System clock /47
  1658. #define SYSCTL_DSLPCLKCFG_D_48 0x17800000 // System clock /48
  1659. #define SYSCTL_DSLPCLKCFG_D_49 0x18000000 // System clock /49
  1660. #define SYSCTL_DSLPCLKCFG_D_50 0x18800000 // System clock /50
  1661. #define SYSCTL_DSLPCLKCFG_D_51 0x19000000 // System clock /51
  1662. #define SYSCTL_DSLPCLKCFG_D_52 0x19800000 // System clock /52
  1663. #define SYSCTL_DSLPCLKCFG_D_53 0x1A000000 // System clock /53
  1664. #define SYSCTL_DSLPCLKCFG_D_54 0x1A800000 // System clock /54
  1665. #define SYSCTL_DSLPCLKCFG_D_55 0x1B000000 // System clock /55
  1666. #define SYSCTL_DSLPCLKCFG_D_56 0x1B800000 // System clock /56
  1667. #define SYSCTL_DSLPCLKCFG_D_57 0x1C000000 // System clock /57
  1668. #define SYSCTL_DSLPCLKCFG_D_58 0x1C800000 // System clock /58
  1669. #define SYSCTL_DSLPCLKCFG_D_59 0x1D000000 // System clock /59
  1670. #define SYSCTL_DSLPCLKCFG_D_60 0x1D800000 // System clock /60
  1671. #define SYSCTL_DSLPCLKCFG_D_61 0x1E000000 // System clock /61
  1672. #define SYSCTL_DSLPCLKCFG_D_62 0x1E800000 // System clock /62
  1673. #define SYSCTL_DSLPCLKCFG_D_63 0x1F000000 // System clock /63
  1674. #define SYSCTL_DSLPCLKCFG_D_64 0x1F800000 // System clock /64
  1675. #define SYSCTL_DSLPCLKCFG_O_M 0x00000070 // Clock Source
  1676. #define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000 // MOSC
  1677. #define SYSCTL_DSLPCLKCFG_O_IO 0x00000010 // PIOSC
  1678. #define SYSCTL_DSLPCLKCFG_O_30 0x00000030 // 30 kHz
  1679. #define SYSCTL_DSLPCLKCFG_O_32 0x00000070 // 32.768 kHz
  1680. #define SYSCTL_DSLPCLKCFG_PIOSCPD \
  1681. 0x00000002 // PIOSC Power Down Request
  1682. #define SYSCTL_DSLPCLKCFG_IOSC 0x00000001 // IOSC Clock Source
  1683. #define SYSCTL_DSLPCLKCFG_D_S 23
  1684. //*****************************************************************************
  1685. //
  1686. // The following are defines for the bit fields in the SYSCTL_SYSPROP register.
  1687. //
  1688. //*****************************************************************************
  1689. #define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
  1690. //*****************************************************************************
  1691. //
  1692. // The following are defines for the bit fields in the SYSCTL_PIOSCCAL
  1693. // register.
  1694. //
  1695. //*****************************************************************************
  1696. #define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
  1697. #define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
  1698. #define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
  1699. #define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
  1700. #define SYSCTL_PIOSCCAL_UT_S 0
  1701. //*****************************************************************************
  1702. //
  1703. // The following are defines for the bit fields in the SYSCTL_CLKVCLR register.
  1704. //
  1705. //*****************************************************************************
  1706. #define SYSCTL_CLKVCLR_VERCLR 0x00000001 // Clock Verification Clear
  1707. //*****************************************************************************
  1708. //
  1709. // The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
  1710. // register.
  1711. //
  1712. //*****************************************************************************
  1713. #define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
  1714. #define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
  1715. #define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
  1716. // attempted
  1717. #define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
  1718. // completed to meet 1% accuracy
  1719. #define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
  1720. // failed to meet 1% accuracy
  1721. #define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
  1722. #define SYSCTL_PIOSCSTAT_DT_S 16
  1723. #define SYSCTL_PIOSCSTAT_CT_S 0
  1724. //*****************************************************************************
  1725. //
  1726. // The following are defines for the bit fields in the SYSCTL_LDOARST register.
  1727. //
  1728. //*****************************************************************************
  1729. #define SYSCTL_LDOARST_LDOARST 0x00000001 // LDO Reset
  1730. //*****************************************************************************
  1731. //
  1732. // The following are defines for the bit fields in the SYSCTL_PLLFREQ0
  1733. // register.
  1734. //
  1735. //*****************************************************************************
  1736. #define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
  1737. #define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
  1738. #define SYSCTL_PLLFREQ0_MFRAC_S 10
  1739. #define SYSCTL_PLLFREQ0_MINT_S 0
  1740. //*****************************************************************************
  1741. //
  1742. // The following are defines for the bit fields in the SYSCTL_PLLFREQ1
  1743. // register.
  1744. //
  1745. //*****************************************************************************
  1746. #define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
  1747. #define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
  1748. #define SYSCTL_PLLFREQ1_Q_S 8
  1749. #define SYSCTL_PLLFREQ1_N_S 0
  1750. //*****************************************************************************
  1751. //
  1752. // The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
  1753. //
  1754. //*****************************************************************************
  1755. #define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
  1756. //*****************************************************************************
  1757. //
  1758. // The following are defines for the bit fields in the SYSCTL_I2SMCLKCFG
  1759. // register.
  1760. //
  1761. //*****************************************************************************
  1762. #define SYSCTL_I2SMCLKCFG_RXEN 0x80000000 // RX Clock Enable
  1763. #define SYSCTL_I2SMCLKCFG_RXI_M 0x3FF00000 // RX Clock Integer Input
  1764. #define SYSCTL_I2SMCLKCFG_RXF_M 0x000F0000 // RX Clock Fractional Input
  1765. #define SYSCTL_I2SMCLKCFG_TXEN 0x00008000 // TX Clock Enable
  1766. #define SYSCTL_I2SMCLKCFG_TXI_M 0x00003FF0 // TX Clock Integer Input
  1767. #define SYSCTL_I2SMCLKCFG_TXF_M 0x0000000F // TX Clock Fractional Input
  1768. #define SYSCTL_I2SMCLKCFG_RXI_S 20
  1769. #define SYSCTL_I2SMCLKCFG_RXF_S 16
  1770. #define SYSCTL_I2SMCLKCFG_TXI_S 4
  1771. #define SYSCTL_I2SMCLKCFG_TXF_S 0
  1772. //*****************************************************************************
  1773. //
  1774. // The following are defines for the bit fields in the SYSCTL_DC9 register.
  1775. //
  1776. //*****************************************************************************
  1777. #define SYSCTL_DC9_ADC1DC7 0x00800000 // ADC1 DC7 Present
  1778. #define SYSCTL_DC9_ADC1DC6 0x00400000 // ADC1 DC6 Present
  1779. #define SYSCTL_DC9_ADC1DC5 0x00200000 // ADC1 DC5 Present
  1780. #define SYSCTL_DC9_ADC1DC4 0x00100000 // ADC1 DC4 Present
  1781. #define SYSCTL_DC9_ADC1DC3 0x00080000 // ADC1 DC3 Present
  1782. #define SYSCTL_DC9_ADC1DC2 0x00040000 // ADC1 DC2 Present
  1783. #define SYSCTL_DC9_ADC1DC1 0x00020000 // ADC1 DC1 Present
  1784. #define SYSCTL_DC9_ADC1DC0 0x00010000 // ADC1 DC0 Present
  1785. #define SYSCTL_DC9_ADC0DC7 0x00000080 // ADC0 DC7 Present
  1786. #define SYSCTL_DC9_ADC0DC6 0x00000040 // ADC0 DC6 Present
  1787. #define SYSCTL_DC9_ADC0DC5 0x00000020 // ADC0 DC5 Present
  1788. #define SYSCTL_DC9_ADC0DC4 0x00000010 // ADC0 DC4 Present
  1789. #define SYSCTL_DC9_ADC0DC3 0x00000008 // ADC0 DC3 Present
  1790. #define SYSCTL_DC9_ADC0DC2 0x00000004 // ADC0 DC2 Present
  1791. #define SYSCTL_DC9_ADC0DC1 0x00000002 // ADC0 DC1 Present
  1792. #define SYSCTL_DC9_ADC0DC0 0x00000001 // ADC0 DC0 Present
  1793. //*****************************************************************************
  1794. //
  1795. // The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
  1796. //
  1797. //*****************************************************************************
  1798. #define SYSCTL_NVMSTAT_TPSW 0x00000010 // Third Party Software Present
  1799. #define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
  1800. // Active
  1801. //*****************************************************************************
  1802. //
  1803. // The following are defines for the bit fields in the SYSCTL_PPWD register.
  1804. //
  1805. //*****************************************************************************
  1806. #define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
  1807. #define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
  1808. //*****************************************************************************
  1809. //
  1810. // The following are defines for the bit fields in the SYSCTL_PPTIMER register.
  1811. //
  1812. //*****************************************************************************
  1813. #define SYSCTL_PPTIMER_P5 0x00000020 // Timer 5 Present
  1814. #define SYSCTL_PPTIMER_P4 0x00000010 // Timer 4 Present
  1815. #define SYSCTL_PPTIMER_P3 0x00000008 // Timer 3 Present
  1816. #define SYSCTL_PPTIMER_P2 0x00000004 // Timer 2 Present
  1817. #define SYSCTL_PPTIMER_P1 0x00000002 // Timer 1 Present
  1818. #define SYSCTL_PPTIMER_P0 0x00000001 // Timer 0 Present
  1819. //*****************************************************************************
  1820. //
  1821. // The following are defines for the bit fields in the SYSCTL_PPGPIO register.
  1822. //
  1823. //*****************************************************************************
  1824. #define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
  1825. #define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
  1826. #define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
  1827. #define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
  1828. #define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
  1829. #define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
  1830. #define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
  1831. #define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
  1832. #define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
  1833. #define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
  1834. #define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
  1835. #define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
  1836. #define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
  1837. #define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
  1838. #define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
  1839. //*****************************************************************************
  1840. //
  1841. // The following are defines for the bit fields in the SYSCTL_PPDMA register.
  1842. //
  1843. //*****************************************************************************
  1844. #define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
  1845. //*****************************************************************************
  1846. //
  1847. // The following are defines for the bit fields in the SYSCTL_PPHIB register.
  1848. //
  1849. //*****************************************************************************
  1850. #define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
  1851. //*****************************************************************************
  1852. //
  1853. // The following are defines for the bit fields in the SYSCTL_PPUART register.
  1854. //
  1855. //*****************************************************************************
  1856. #define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
  1857. #define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
  1858. #define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
  1859. #define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
  1860. #define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
  1861. #define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
  1862. #define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
  1863. #define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
  1864. //*****************************************************************************
  1865. //
  1866. // The following are defines for the bit fields in the SYSCTL_PPSSI register.
  1867. //
  1868. //*****************************************************************************
  1869. #define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
  1870. #define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
  1871. #define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
  1872. #define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
  1873. //*****************************************************************************
  1874. //
  1875. // The following are defines for the bit fields in the SYSCTL_PPI2C register.
  1876. //
  1877. //*****************************************************************************
  1878. #define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
  1879. #define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
  1880. #define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
  1881. #define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
  1882. #define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
  1883. #define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
  1884. //*****************************************************************************
  1885. //
  1886. // The following are defines for the bit fields in the SYSCTL_PPUSB register.
  1887. //
  1888. //*****************************************************************************
  1889. #define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
  1890. //*****************************************************************************
  1891. //
  1892. // The following are defines for the bit fields in the SYSCTL_PPCAN register.
  1893. //
  1894. //*****************************************************************************
  1895. #define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
  1896. #define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
  1897. //*****************************************************************************
  1898. //
  1899. // The following are defines for the bit fields in the SYSCTL_PPADC register.
  1900. //
  1901. //*****************************************************************************
  1902. #define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
  1903. #define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
  1904. //*****************************************************************************
  1905. //
  1906. // The following are defines for the bit fields in the SYSCTL_PPACMP register.
  1907. //
  1908. //*****************************************************************************
  1909. #define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
  1910. //*****************************************************************************
  1911. //
  1912. // The following are defines for the bit fields in the SYSCTL_PPPWM register.
  1913. //
  1914. //*****************************************************************************
  1915. #define SYSCTL_PPPWM_P1 0x00000002 // PWM Module 1 Present
  1916. #define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
  1917. //*****************************************************************************
  1918. //
  1919. // The following are defines for the bit fields in the SYSCTL_PPQEI register.
  1920. //
  1921. //*****************************************************************************
  1922. #define SYSCTL_PPQEI_P1 0x00000002 // QEI Module 1 Present
  1923. #define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
  1924. //*****************************************************************************
  1925. //
  1926. // The following are defines for the bit fields in the SYSCTL_PPLPC register.
  1927. //
  1928. //*****************************************************************************
  1929. #define SYSCTL_PPLPC_P0 0x00000001 // LPC Module Present
  1930. //*****************************************************************************
  1931. //
  1932. // The following are defines for the bit fields in the SYSCTL_PPPECI register.
  1933. //
  1934. //*****************************************************************************
  1935. #define SYSCTL_PPPECI_P0 0x00000001 // PECI Module Present
  1936. //*****************************************************************************
  1937. //
  1938. // The following are defines for the bit fields in the SYSCTL_PPFAN register.
  1939. //
  1940. //*****************************************************************************
  1941. #define SYSCTL_PPFAN_P0 0x00000001 // FAN Module Present
  1942. //*****************************************************************************
  1943. //
  1944. // The following are defines for the bit fields in the SYSCTL_PPEEPROM
  1945. // register.
  1946. //
  1947. //*****************************************************************************
  1948. #define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
  1949. //*****************************************************************************
  1950. //
  1951. // The following are defines for the bit fields in the SYSCTL_PPWTIMER
  1952. // register.
  1953. //
  1954. //*****************************************************************************
  1955. #define SYSCTL_PPWTIMER_P5 0x00000020 // Wide Timer 5 Present
  1956. #define SYSCTL_PPWTIMER_P4 0x00000010 // Wide Timer 4 Present
  1957. #define SYSCTL_PPWTIMER_P3 0x00000008 // Wide Timer 3 Present
  1958. #define SYSCTL_PPWTIMER_P2 0x00000004 // Wide Timer 2 Present
  1959. #define SYSCTL_PPWTIMER_P1 0x00000002 // Wide Timer 1 Present
  1960. #define SYSCTL_PPWTIMER_P0 0x00000001 // Wide Timer 0 Present
  1961. //*****************************************************************************
  1962. //
  1963. // The following are defines for the bit fields in the SYSCTL_SRWD register.
  1964. //
  1965. //*****************************************************************************
  1966. #define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
  1967. #define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
  1968. //*****************************************************************************
  1969. //
  1970. // The following are defines for the bit fields in the SYSCTL_SRTIMER register.
  1971. //
  1972. //*****************************************************************************
  1973. #define SYSCTL_SRTIMER_R5 0x00000020 // Timer 5 Software Reset
  1974. #define SYSCTL_SRTIMER_R4 0x00000010 // Timer 4 Software Reset
  1975. #define SYSCTL_SRTIMER_R3 0x00000008 // Timer 3 Software Reset
  1976. #define SYSCTL_SRTIMER_R2 0x00000004 // Timer 2 Software Reset
  1977. #define SYSCTL_SRTIMER_R1 0x00000002 // Timer 1 Software Reset
  1978. #define SYSCTL_SRTIMER_R0 0x00000001 // Timer 0 Software Reset
  1979. //*****************************************************************************
  1980. //
  1981. // The following are defines for the bit fields in the SYSCTL_SRGPIO register.
  1982. //
  1983. //*****************************************************************************
  1984. #define SYSCTL_SRGPIO_R14 0x00004000 // GPIO Port Q Software Reset
  1985. #define SYSCTL_SRGPIO_R13 0x00002000 // GPIO Port P Software Reset
  1986. #define SYSCTL_SRGPIO_R12 0x00001000 // GPIO Port N Software Reset
  1987. #define SYSCTL_SRGPIO_R11 0x00000800 // GPIO Port M Software Reset
  1988. #define SYSCTL_SRGPIO_R10 0x00000400 // GPIO Port L Software Reset
  1989. #define SYSCTL_SRGPIO_R9 0x00000200 // GPIO Port K Software Reset
  1990. #define SYSCTL_SRGPIO_R8 0x00000100 // GPIO Port J Software Reset
  1991. #define SYSCTL_SRGPIO_R7 0x00000080 // GPIO Port H Software Reset
  1992. #define SYSCTL_SRGPIO_R6 0x00000040 // GPIO Port G Software Reset
  1993. #define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
  1994. #define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
  1995. #define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
  1996. #define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
  1997. #define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
  1998. #define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
  1999. //*****************************************************************************
  2000. //
  2001. // The following are defines for the bit fields in the SYSCTL_SRDMA register.
  2002. //
  2003. //*****************************************************************************
  2004. #define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
  2005. //*****************************************************************************
  2006. //
  2007. // The following are defines for the bit fields in the SYSCTL_SRHIB register.
  2008. //
  2009. //*****************************************************************************
  2010. #define SYSCTL_SRHIB_R0 0x00000001 // Hibernation Module Software
  2011. // Reset
  2012. //*****************************************************************************
  2013. //
  2014. // The following are defines for the bit fields in the SYSCTL_SRUART register.
  2015. //
  2016. //*****************************************************************************
  2017. #define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
  2018. #define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
  2019. #define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
  2020. #define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
  2021. #define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
  2022. #define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
  2023. #define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
  2024. #define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
  2025. //*****************************************************************************
  2026. //
  2027. // The following are defines for the bit fields in the SYSCTL_SRSSI register.
  2028. //
  2029. //*****************************************************************************
  2030. #define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
  2031. #define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
  2032. #define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
  2033. #define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
  2034. //*****************************************************************************
  2035. //
  2036. // The following are defines for the bit fields in the SYSCTL_SRI2C register.
  2037. //
  2038. //*****************************************************************************
  2039. #define SYSCTL_SRI2C_R5 0x00000020 // I2C Module 5 Software Reset
  2040. #define SYSCTL_SRI2C_R4 0x00000010 // I2C Module 4 Software Reset
  2041. #define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
  2042. #define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
  2043. #define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
  2044. #define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
  2045. //*****************************************************************************
  2046. //
  2047. // The following are defines for the bit fields in the SYSCTL_SRUSB register.
  2048. //
  2049. //*****************************************************************************
  2050. #define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
  2051. //*****************************************************************************
  2052. //
  2053. // The following are defines for the bit fields in the SYSCTL_SRCAN register.
  2054. //
  2055. //*****************************************************************************
  2056. #define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
  2057. #define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
  2058. //*****************************************************************************
  2059. //
  2060. // The following are defines for the bit fields in the SYSCTL_SRADC register.
  2061. //
  2062. //*****************************************************************************
  2063. #define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
  2064. #define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
  2065. //*****************************************************************************
  2066. //
  2067. // The following are defines for the bit fields in the SYSCTL_SRACMP register.
  2068. //
  2069. //*****************************************************************************
  2070. #define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module
  2071. // Software Reset
  2072. //*****************************************************************************
  2073. //
  2074. // The following are defines for the bit fields in the SYSCTL_SRPWM register.
  2075. //
  2076. //*****************************************************************************
  2077. #define SYSCTL_SRPWM_R1 0x00000002 // PWM Module 1 Software Reset
  2078. #define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
  2079. //*****************************************************************************
  2080. //
  2081. // The following are defines for the bit fields in the SYSCTL_SRQEI register.
  2082. //
  2083. //*****************************************************************************
  2084. #define SYSCTL_SRQEI_R1 0x00000002 // QEI Module 1 Software Reset
  2085. #define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
  2086. //*****************************************************************************
  2087. //
  2088. // The following are defines for the bit fields in the SYSCTL_SRLPC register.
  2089. //
  2090. //*****************************************************************************
  2091. #define SYSCTL_SRLPC_R0 0x00000001 // LPC Module Software Reset
  2092. //*****************************************************************************
  2093. //
  2094. // The following are defines for the bit fields in the SYSCTL_SRPECI register.
  2095. //
  2096. //*****************************************************************************
  2097. #define SYSCTL_SRPECI_R0 0x00000001 // PECI Module Software Reset
  2098. //*****************************************************************************
  2099. //
  2100. // The following are defines for the bit fields in the SYSCTL_SRFAN register.
  2101. //
  2102. //*****************************************************************************
  2103. #define SYSCTL_SRFAN_R0 0x00000001 // FAN Module Software Reset
  2104. //*****************************************************************************
  2105. //
  2106. // The following are defines for the bit fields in the SYSCTL_SREEPROM
  2107. // register.
  2108. //
  2109. //*****************************************************************************
  2110. #define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
  2111. //*****************************************************************************
  2112. //
  2113. // The following are defines for the bit fields in the SYSCTL_SRWTIMER
  2114. // register.
  2115. //
  2116. //*****************************************************************************
  2117. #define SYSCTL_SRWTIMER_R5 0x00000020 // Wide Timer 5 Software Reset
  2118. #define SYSCTL_SRWTIMER_R4 0x00000010 // Wide Timer 4 Software Reset
  2119. #define SYSCTL_SRWTIMER_R3 0x00000008 // Wide Timer 3 Software Reset
  2120. #define SYSCTL_SRWTIMER_R2 0x00000004 // Wide Timer 2 Software Reset
  2121. #define SYSCTL_SRWTIMER_R1 0x00000002 // Wide Timer 1 Software Reset
  2122. #define SYSCTL_SRWTIMER_R0 0x00000001 // Wide Timer 0 Software Reset
  2123. //*****************************************************************************
  2124. //
  2125. // The following are defines for the bit fields in the SYSCTL_RCGCWD register.
  2126. //
  2127. //*****************************************************************************
  2128. #define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
  2129. // Gating Control
  2130. #define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
  2131. // Gating Control
  2132. //*****************************************************************************
  2133. //
  2134. // The following are defines for the bit fields in the SYSCTL_RCGCTIMER
  2135. // register.
  2136. //
  2137. //*****************************************************************************
  2138. #define SYSCTL_RCGCTIMER_R5 0x00000020 // Timer 5 Run Mode Clock Gating
  2139. // Control
  2140. #define SYSCTL_RCGCTIMER_R4 0x00000010 // Timer 4 Run Mode Clock Gating
  2141. // Control
  2142. #define SYSCTL_RCGCTIMER_R3 0x00000008 // Timer 3 Run Mode Clock Gating
  2143. // Control
  2144. #define SYSCTL_RCGCTIMER_R2 0x00000004 // Timer 2 Run Mode Clock Gating
  2145. // Control
  2146. #define SYSCTL_RCGCTIMER_R1 0x00000002 // Timer 1 Run Mode Clock Gating
  2147. // Control
  2148. #define SYSCTL_RCGCTIMER_R0 0x00000001 // Timer 0 Run Mode Clock Gating
  2149. // Control
  2150. //*****************************************************************************
  2151. //
  2152. // The following are defines for the bit fields in the SYSCTL_RCGCGPIO
  2153. // register.
  2154. //
  2155. //*****************************************************************************
  2156. #define SYSCTL_RCGCGPIO_R14 0x00004000 // GPIO Port Q Run Mode Clock
  2157. // Gating Control
  2158. #define SYSCTL_RCGCGPIO_R13 0x00002000 // GPIO Port P Run Mode Clock
  2159. // Gating Control
  2160. #define SYSCTL_RCGCGPIO_R12 0x00001000 // GPIO Port N Run Mode Clock
  2161. // Gating Control
  2162. #define SYSCTL_RCGCGPIO_R11 0x00000800 // GPIO Port M Run Mode Clock
  2163. // Gating Control
  2164. #define SYSCTL_RCGCGPIO_R10 0x00000400 // GPIO Port L Run Mode Clock
  2165. // Gating Control
  2166. #define SYSCTL_RCGCGPIO_R9 0x00000200 // GPIO Port K Run Mode Clock
  2167. // Gating Control
  2168. #define SYSCTL_RCGCGPIO_R8 0x00000100 // GPIO Port J Run Mode Clock
  2169. // Gating Control
  2170. #define SYSCTL_RCGCGPIO_R7 0x00000080 // GPIO Port H Run Mode Clock
  2171. // Gating Control
  2172. #define SYSCTL_RCGCGPIO_R6 0x00000040 // GPIO Port G Run Mode Clock
  2173. // Gating Control
  2174. #define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
  2175. // Gating Control
  2176. #define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
  2177. // Gating Control
  2178. #define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
  2179. // Gating Control
  2180. #define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
  2181. // Gating Control
  2182. #define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
  2183. // Gating Control
  2184. #define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
  2185. // Gating Control
  2186. //*****************************************************************************
  2187. //
  2188. // The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
  2189. //
  2190. //*****************************************************************************
  2191. #define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
  2192. // Gating Control
  2193. //*****************************************************************************
  2194. //
  2195. // The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
  2196. //
  2197. //*****************************************************************************
  2198. #define SYSCTL_RCGCHIB_R0 0x00000001 // Hibernation Module Run Mode
  2199. // Clock Gating Control
  2200. //*****************************************************************************
  2201. //
  2202. // The following are defines for the bit fields in the SYSCTL_RCGCUART
  2203. // register.
  2204. //
  2205. //*****************************************************************************
  2206. #define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
  2207. // Gating Control
  2208. #define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
  2209. // Gating Control
  2210. #define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
  2211. // Gating Control
  2212. #define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
  2213. // Gating Control
  2214. #define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
  2215. // Gating Control
  2216. #define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
  2217. // Gating Control
  2218. #define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
  2219. // Gating Control
  2220. #define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
  2221. // Gating Control
  2222. //*****************************************************************************
  2223. //
  2224. // The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
  2225. //
  2226. //*****************************************************************************
  2227. #define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
  2228. // Gating Control
  2229. #define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
  2230. // Gating Control
  2231. #define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
  2232. // Gating Control
  2233. #define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
  2234. // Gating Control
  2235. //*****************************************************************************
  2236. //
  2237. // The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
  2238. //
  2239. //*****************************************************************************
  2240. #define SYSCTL_RCGCI2C_R5 0x00000020 // I2C Module 5 Run Mode Clock
  2241. // Gating Control
  2242. #define SYSCTL_RCGCI2C_R4 0x00000010 // I2C Module 4 Run Mode Clock
  2243. // Gating Control
  2244. #define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
  2245. // Gating Control
  2246. #define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
  2247. // Gating Control
  2248. #define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
  2249. // Gating Control
  2250. #define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
  2251. // Gating Control
  2252. //*****************************************************************************
  2253. //
  2254. // The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
  2255. //
  2256. //*****************************************************************************
  2257. #define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
  2258. // Control
  2259. //*****************************************************************************
  2260. //
  2261. // The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
  2262. //
  2263. //*****************************************************************************
  2264. #define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
  2265. // Gating Control
  2266. #define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
  2267. // Gating Control
  2268. //*****************************************************************************
  2269. //
  2270. // The following are defines for the bit fields in the SYSCTL_RCGCADC register.
  2271. //
  2272. //*****************************************************************************
  2273. #define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
  2274. // Gating Control
  2275. #define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
  2276. // Gating Control
  2277. //*****************************************************************************
  2278. //
  2279. // The following are defines for the bit fields in the SYSCTL_RCGCACMP
  2280. // register.
  2281. //
  2282. //*****************************************************************************
  2283. #define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module Run
  2284. // Mode Clock Gating Control
  2285. //*****************************************************************************
  2286. //
  2287. // The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
  2288. //
  2289. //*****************************************************************************
  2290. #define SYSCTL_RCGCPWM_R1 0x00000002 // PWM Module 1 Run Mode Clock
  2291. // Gating Control
  2292. #define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
  2293. // Gating Control
  2294. //*****************************************************************************
  2295. //
  2296. // The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
  2297. //
  2298. //*****************************************************************************
  2299. #define SYSCTL_RCGCQEI_R1 0x00000002 // QEI Module 1 Run Mode Clock
  2300. // Gating Control
  2301. #define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
  2302. // Gating Control
  2303. //*****************************************************************************
  2304. //
  2305. // The following are defines for the bit fields in the SYSCTL_RCGCLPC register.
  2306. //
  2307. //*****************************************************************************
  2308. #define SYSCTL_RCGCLPC_R0 0x00000001 // LPC Module Run Mode Clock Gating
  2309. // Control
  2310. //*****************************************************************************
  2311. //
  2312. // The following are defines for the bit fields in the SYSCTL_RCGCPECI
  2313. // register.
  2314. //
  2315. //*****************************************************************************
  2316. #define SYSCTL_RCGCPECI_R0 0x00000001 // PECI Module Run Mode Clock
  2317. // Gating Control
  2318. //*****************************************************************************
  2319. //
  2320. // The following are defines for the bit fields in the SYSCTL_RCGCFAN register.
  2321. //
  2322. //*****************************************************************************
  2323. #define SYSCTL_RCGCFAN_R0 0x00000001 // FAN Module Run Mode Clock Gating
  2324. // Control
  2325. //*****************************************************************************
  2326. //
  2327. // The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
  2328. // register.
  2329. //
  2330. //*****************************************************************************
  2331. #define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
  2332. // Gating Control
  2333. //*****************************************************************************
  2334. //
  2335. // The following are defines for the bit fields in the SYSCTL_RCGCWTIMER
  2336. // register.
  2337. //
  2338. //*****************************************************************************
  2339. #define SYSCTL_RCGCWTIMER_R5 0x00000020 // Wide Timer 5 Run Mode Clock
  2340. // Gating Control
  2341. #define SYSCTL_RCGCWTIMER_R4 0x00000010 // Wide Timer 4 Run Mode Clock
  2342. // Gating Control
  2343. #define SYSCTL_RCGCWTIMER_R3 0x00000008 // Wide Timer 3 Run Mode Clock
  2344. // Gating Control
  2345. #define SYSCTL_RCGCWTIMER_R2 0x00000004 // Wide Timer 2 Run Mode Clock
  2346. // Gating Control
  2347. #define SYSCTL_RCGCWTIMER_R1 0x00000002 // Wide Timer 1 Run Mode Clock
  2348. // Gating Control
  2349. #define SYSCTL_RCGCWTIMER_R0 0x00000001 // Wide Timer 0 Run Mode Clock
  2350. // Gating Control
  2351. //*****************************************************************************
  2352. //
  2353. // The following are defines for the bit fields in the SYSCTL_SCGCWD register.
  2354. //
  2355. //*****************************************************************************
  2356. #define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
  2357. // Clock Gating Control
  2358. #define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
  2359. // Clock Gating Control
  2360. //*****************************************************************************
  2361. //
  2362. // The following are defines for the bit fields in the SYSCTL_SCGCTIMER
  2363. // register.
  2364. //
  2365. //*****************************************************************************
  2366. #define SYSCTL_SCGCTIMER_S5 0x00000020 // Timer 5 Sleep Mode Clock Gating
  2367. // Control
  2368. #define SYSCTL_SCGCTIMER_S4 0x00000010 // Timer 4 Sleep Mode Clock Gating
  2369. // Control
  2370. #define SYSCTL_SCGCTIMER_S3 0x00000008 // Timer 3 Sleep Mode Clock Gating
  2371. // Control
  2372. #define SYSCTL_SCGCTIMER_S2 0x00000004 // Timer 2 Sleep Mode Clock Gating
  2373. // Control
  2374. #define SYSCTL_SCGCTIMER_S1 0x00000002 // Timer 1 Sleep Mode Clock Gating
  2375. // Control
  2376. #define SYSCTL_SCGCTIMER_S0 0x00000001 // Timer 0 Sleep Mode Clock Gating
  2377. // Control
  2378. //*****************************************************************************
  2379. //
  2380. // The following are defines for the bit fields in the SYSCTL_SCGCGPIO
  2381. // register.
  2382. //
  2383. //*****************************************************************************
  2384. #define SYSCTL_SCGCGPIO_S14 0x00004000 // GPIO Port Q Sleep Mode Clock
  2385. // Gating Control
  2386. #define SYSCTL_SCGCGPIO_S13 0x00002000 // GPIO Port P Sleep Mode Clock
  2387. // Gating Control
  2388. #define SYSCTL_SCGCGPIO_S12 0x00001000 // GPIO Port N Sleep Mode Clock
  2389. // Gating Control
  2390. #define SYSCTL_SCGCGPIO_S11 0x00000800 // GPIO Port M Sleep Mode Clock
  2391. // Gating Control
  2392. #define SYSCTL_SCGCGPIO_S10 0x00000400 // GPIO Port L Sleep Mode Clock
  2393. // Gating Control
  2394. #define SYSCTL_SCGCGPIO_S9 0x00000200 // GPIO Port K Sleep Mode Clock
  2395. // Gating Control
  2396. #define SYSCTL_SCGCGPIO_S8 0x00000100 // GPIO Port J Sleep Mode Clock
  2397. // Gating Control
  2398. #define SYSCTL_SCGCGPIO_S7 0x00000080 // GPIO Port H Sleep Mode Clock
  2399. // Gating Control
  2400. #define SYSCTL_SCGCGPIO_S6 0x00000040 // GPIO Port G Sleep Mode Clock
  2401. // Gating Control
  2402. #define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
  2403. // Gating Control
  2404. #define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
  2405. // Gating Control
  2406. #define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
  2407. // Gating Control
  2408. #define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
  2409. // Gating Control
  2410. #define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
  2411. // Gating Control
  2412. #define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
  2413. // Gating Control
  2414. //*****************************************************************************
  2415. //
  2416. // The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
  2417. //
  2418. //*****************************************************************************
  2419. #define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
  2420. // Gating Control
  2421. //*****************************************************************************
  2422. //
  2423. // The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
  2424. //
  2425. //*****************************************************************************
  2426. #define SYSCTL_SCGCHIB_S0 0x00000001 // Hibernation Module Sleep Mode
  2427. // Clock Gating Control
  2428. //*****************************************************************************
  2429. //
  2430. // The following are defines for the bit fields in the SYSCTL_SCGCUART
  2431. // register.
  2432. //
  2433. //*****************************************************************************
  2434. #define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
  2435. // Gating Control
  2436. #define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
  2437. // Gating Control
  2438. #define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
  2439. // Gating Control
  2440. #define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
  2441. // Gating Control
  2442. #define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
  2443. // Gating Control
  2444. #define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
  2445. // Gating Control
  2446. #define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
  2447. // Gating Control
  2448. #define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
  2449. // Gating Control
  2450. //*****************************************************************************
  2451. //
  2452. // The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
  2453. //
  2454. //*****************************************************************************
  2455. #define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
  2456. // Gating Control
  2457. #define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
  2458. // Gating Control
  2459. #define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
  2460. // Gating Control
  2461. #define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
  2462. // Gating Control
  2463. //*****************************************************************************
  2464. //
  2465. // The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
  2466. //
  2467. //*****************************************************************************
  2468. #define SYSCTL_SCGCI2C_S5 0x00000020 // I2C Module 5 Sleep Mode Clock
  2469. // Gating Control
  2470. #define SYSCTL_SCGCI2C_S4 0x00000010 // I2C Module 4 Sleep Mode Clock
  2471. // Gating Control
  2472. #define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
  2473. // Gating Control
  2474. #define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
  2475. // Gating Control
  2476. #define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
  2477. // Gating Control
  2478. #define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
  2479. // Gating Control
  2480. //*****************************************************************************
  2481. //
  2482. // The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
  2483. //
  2484. //*****************************************************************************
  2485. #define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
  2486. // Gating Control
  2487. //*****************************************************************************
  2488. //
  2489. // The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
  2490. //
  2491. //*****************************************************************************
  2492. #define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
  2493. // Gating Control
  2494. #define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
  2495. // Gating Control
  2496. //*****************************************************************************
  2497. //
  2498. // The following are defines for the bit fields in the SYSCTL_SCGCADC register.
  2499. //
  2500. //*****************************************************************************
  2501. #define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
  2502. // Gating Control
  2503. #define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
  2504. // Gating Control
  2505. //*****************************************************************************
  2506. //
  2507. // The following are defines for the bit fields in the SYSCTL_SCGCACMP
  2508. // register.
  2509. //
  2510. //*****************************************************************************
  2511. #define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module Sleep
  2512. // Mode Clock Gating Control
  2513. //*****************************************************************************
  2514. //
  2515. // The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
  2516. //
  2517. //*****************************************************************************
  2518. #define SYSCTL_SCGCPWM_S1 0x00000002 // PWM Module 1 Sleep Mode Clock
  2519. // Gating Control
  2520. #define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
  2521. // Gating Control
  2522. //*****************************************************************************
  2523. //
  2524. // The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
  2525. //
  2526. //*****************************************************************************
  2527. #define SYSCTL_SCGCQEI_S1 0x00000002 // QEI Module 1 Sleep Mode Clock
  2528. // Gating Control
  2529. #define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
  2530. // Gating Control
  2531. //*****************************************************************************
  2532. //
  2533. // The following are defines for the bit fields in the SYSCTL_SCGCLPC register.
  2534. //
  2535. //*****************************************************************************
  2536. #define SYSCTL_SCGCLPC_S0 0x00000001 // LPC Module Sleep Mode Clock
  2537. // Gating Control
  2538. //*****************************************************************************
  2539. //
  2540. // The following are defines for the bit fields in the SYSCTL_SCGCPECI
  2541. // register.
  2542. //
  2543. //*****************************************************************************
  2544. #define SYSCTL_SCGCPECI_S0 0x00000001 // PECI Module Sleep Mode Clock
  2545. // Gating Control
  2546. //*****************************************************************************
  2547. //
  2548. // The following are defines for the bit fields in the SYSCTL_SCGCFAN register.
  2549. //
  2550. //*****************************************************************************
  2551. #define SYSCTL_SCGCFAN_S0 0x00000001 // FAN Module Sleep Mode Clock
  2552. // Gating Control
  2553. //*****************************************************************************
  2554. //
  2555. // The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
  2556. // register.
  2557. //
  2558. //*****************************************************************************
  2559. #define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
  2560. // Gating Control
  2561. //*****************************************************************************
  2562. //
  2563. // The following are defines for the bit fields in the SYSCTL_SCGCWTIMER
  2564. // register.
  2565. //
  2566. //*****************************************************************************
  2567. #define SYSCTL_SCGCWTIMER_S5 0x00000020 // Wide Timer 5 Sleep Mode Clock
  2568. // Gating Control
  2569. #define SYSCTL_SCGCWTIMER_S4 0x00000010 // Wide Timer 4 Sleep Mode Clock
  2570. // Gating Control
  2571. #define SYSCTL_SCGCWTIMER_S3 0x00000008 // Wide Timer 3 Sleep Mode Clock
  2572. // Gating Control
  2573. #define SYSCTL_SCGCWTIMER_S2 0x00000004 // Wide Timer 2 Sleep Mode Clock
  2574. // Gating Control
  2575. #define SYSCTL_SCGCWTIMER_S1 0x00000002 // Wide Timer 1 Sleep Mode Clock
  2576. // Gating Control
  2577. #define SYSCTL_SCGCWTIMER_S0 0x00000001 // Wide Timer 0 Sleep Mode Clock
  2578. // Gating Control
  2579. //*****************************************************************************
  2580. //
  2581. // The following are defines for the bit fields in the SYSCTL_DCGCWD register.
  2582. //
  2583. //*****************************************************************************
  2584. #define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
  2585. // Clock Gating Control
  2586. #define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
  2587. // Clock Gating Control
  2588. //*****************************************************************************
  2589. //
  2590. // The following are defines for the bit fields in the SYSCTL_DCGCTIMER
  2591. // register.
  2592. //
  2593. //*****************************************************************************
  2594. #define SYSCTL_DCGCTIMER_D5 0x00000020 // Timer 5 Deep-Sleep Mode Clock
  2595. // Gating Control
  2596. #define SYSCTL_DCGCTIMER_D4 0x00000010 // Timer 4 Deep-Sleep Mode Clock
  2597. // Gating Control
  2598. #define SYSCTL_DCGCTIMER_D3 0x00000008 // Timer 3 Deep-Sleep Mode Clock
  2599. // Gating Control
  2600. #define SYSCTL_DCGCTIMER_D2 0x00000004 // Timer 2 Deep-Sleep Mode Clock
  2601. // Gating Control
  2602. #define SYSCTL_DCGCTIMER_D1 0x00000002 // Timer 1 Deep-Sleep Mode Clock
  2603. // Gating Control
  2604. #define SYSCTL_DCGCTIMER_D0 0x00000001 // Timer 0 Deep-Sleep Mode Clock
  2605. // Gating Control
  2606. //*****************************************************************************
  2607. //
  2608. // The following are defines for the bit fields in the SYSCTL_DCGCGPIO
  2609. // register.
  2610. //
  2611. //*****************************************************************************
  2612. #define SYSCTL_DCGCGPIO_D14 0x00004000 // GPIO Port Q Deep-Sleep Mode
  2613. // Clock Gating Control
  2614. #define SYSCTL_DCGCGPIO_D13 0x00002000 // GPIO Port P Deep-Sleep Mode
  2615. // Clock Gating Control
  2616. #define SYSCTL_DCGCGPIO_D12 0x00001000 // GPIO Port N Deep-Sleep Mode
  2617. // Clock Gating Control
  2618. #define SYSCTL_DCGCGPIO_D11 0x00000800 // GPIO Port M Deep-Sleep Mode
  2619. // Clock Gating Control
  2620. #define SYSCTL_DCGCGPIO_D10 0x00000400 // GPIO Port L Deep-Sleep Mode
  2621. // Clock Gating Control
  2622. #define SYSCTL_DCGCGPIO_D9 0x00000200 // GPIO Port K Deep-Sleep Mode
  2623. // Clock Gating Control
  2624. #define SYSCTL_DCGCGPIO_D8 0x00000100 // GPIO Port J Deep-Sleep Mode
  2625. // Clock Gating Control
  2626. #define SYSCTL_DCGCGPIO_D7 0x00000080 // 0Mode Clock Gating Control
  2627. #define SYSCTL_DCGCGPIO_D6 0x00000040 // GPIO Port G Deep-Sleep Mode
  2628. // Clock Gating Control
  2629. #define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
  2630. // Clock Gating Control
  2631. #define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
  2632. // Clock Gating Control
  2633. #define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
  2634. // Clock Gating Control
  2635. #define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
  2636. // Clock Gating Control
  2637. #define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
  2638. // Clock Gating Control
  2639. #define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
  2640. // Clock Gating Control
  2641. //*****************************************************************************
  2642. //
  2643. // The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
  2644. //
  2645. //*****************************************************************************
  2646. #define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
  2647. // Clock Gating Control
  2648. //*****************************************************************************
  2649. //
  2650. // The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
  2651. //
  2652. //*****************************************************************************
  2653. #define SYSCTL_DCGCHIB_D0 0x00000001 // Hibernation Module Deep-Sleep
  2654. // Mode Clock Gating Control
  2655. //*****************************************************************************
  2656. //
  2657. // The following are defines for the bit fields in the SYSCTL_DCGCUART
  2658. // register.
  2659. //
  2660. //*****************************************************************************
  2661. #define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
  2662. // Clock Gating Control
  2663. #define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
  2664. // Clock Gating Control
  2665. #define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
  2666. // Clock Gating Control
  2667. #define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
  2668. // Clock Gating Control
  2669. #define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
  2670. // Clock Gating Control
  2671. #define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
  2672. // Clock Gating Control
  2673. #define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
  2674. // Clock Gating Control
  2675. #define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
  2676. // Clock Gating Control
  2677. //*****************************************************************************
  2678. //
  2679. // The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
  2680. //
  2681. //*****************************************************************************
  2682. #define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
  2683. // Clock Gating Control
  2684. #define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
  2685. // Clock Gating Control
  2686. #define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
  2687. // Clock Gating Control
  2688. #define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
  2689. // Clock Gating Control
  2690. //*****************************************************************************
  2691. //
  2692. // The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
  2693. //
  2694. //*****************************************************************************
  2695. #define SYSCTL_DCGCI2C_D5 0x00000020 // I2C Module 5 Deep-Sleep Mode
  2696. // Clock Gating Control
  2697. #define SYSCTL_DCGCI2C_D4 0x00000010 // I2C Module 4 Deep-Sleep Mode
  2698. // Clock Gating Control
  2699. #define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
  2700. // Clock Gating Control
  2701. #define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
  2702. // Clock Gating Control
  2703. #define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
  2704. // Clock Gating Control
  2705. #define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
  2706. // Clock Gating Control
  2707. //*****************************************************************************
  2708. //
  2709. // The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
  2710. //
  2711. //*****************************************************************************
  2712. #define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
  2713. // Gating Control
  2714. //*****************************************************************************
  2715. //
  2716. // The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
  2717. //
  2718. //*****************************************************************************
  2719. #define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
  2720. // Clock Gating Control
  2721. #define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
  2722. // Clock Gating Control
  2723. //*****************************************************************************
  2724. //
  2725. // The following are defines for the bit fields in the SYSCTL_DCGCADC register.
  2726. //
  2727. //*****************************************************************************
  2728. #define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
  2729. // Clock Gating Control
  2730. #define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
  2731. // Clock Gating Control
  2732. //*****************************************************************************
  2733. //
  2734. // The following are defines for the bit fields in the SYSCTL_DCGCACMP
  2735. // register.
  2736. //
  2737. //*****************************************************************************
  2738. #define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module
  2739. // Deep-Sleep Mode Clock Gating
  2740. // Control
  2741. //*****************************************************************************
  2742. //
  2743. // The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
  2744. //
  2745. //*****************************************************************************
  2746. #define SYSCTL_DCGCPWM_D1 0x00000002 // PWM Module 1 Deep-Sleep Mode
  2747. // Clock Gating Control
  2748. #define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
  2749. // Clock Gating Control
  2750. //*****************************************************************************
  2751. //
  2752. // The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
  2753. //
  2754. //*****************************************************************************
  2755. #define SYSCTL_DCGCQEI_D1 0x00000002 // QEI Module 1 Deep-Sleep Mode
  2756. // Clock Gating Control
  2757. #define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
  2758. // Clock Gating Control
  2759. //*****************************************************************************
  2760. //
  2761. // The following are defines for the bit fields in the SYSCTL_DCGCLPC register.
  2762. //
  2763. //*****************************************************************************
  2764. #define SYSCTL_DCGCLPC_D0 0x00000001 // LPC Module Deep-Sleep Mode Clock
  2765. // Gating Control
  2766. //*****************************************************************************
  2767. //
  2768. // The following are defines for the bit fields in the SYSCTL_DCGCPECI
  2769. // register.
  2770. //
  2771. //*****************************************************************************
  2772. #define SYSCTL_DCGCPECI_D0 0x00000001 // PECI Module Deep-Sleep Mode
  2773. // Clock Gating Control
  2774. //*****************************************************************************
  2775. //
  2776. // The following are defines for the bit fields in the SYSCTL_DCGCFAN register.
  2777. //
  2778. //*****************************************************************************
  2779. #define SYSCTL_DCGCFAN_D0 0x00000001 // FAN Module Deep-Sleep Mode Clock
  2780. // Gating Control
  2781. //*****************************************************************************
  2782. //
  2783. // The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
  2784. // register.
  2785. //
  2786. //*****************************************************************************
  2787. #define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
  2788. // Clock Gating Control
  2789. //*****************************************************************************
  2790. //
  2791. // The following are defines for the bit fields in the SYSCTL_DCGCWTIMER
  2792. // register.
  2793. //
  2794. //*****************************************************************************
  2795. #define SYSCTL_DCGCWTIMER_D5 0x00000020 // Wide Timer 5 Deep-Sleep Mode
  2796. // Clock Gating Control
  2797. #define SYSCTL_DCGCWTIMER_D4 0x00000010 // Wide Timer 4 Deep-Sleep Mode
  2798. // Clock Gating Control
  2799. #define SYSCTL_DCGCWTIMER_D3 0x00000008 // Wide Timer 3 Deep-Sleep Mode
  2800. // Clock Gating Control
  2801. #define SYSCTL_DCGCWTIMER_D2 0x00000004 // Wide Timer 2 Deep-Sleep Mode
  2802. // Clock Gating Control
  2803. #define SYSCTL_DCGCWTIMER_D1 0x00000002 // Wide Timer 1 Deep-Sleep Mode
  2804. // Clock Gating Control
  2805. #define SYSCTL_DCGCWTIMER_D0 0x00000001 // Wide Timer 0 Deep-Sleep Mode
  2806. // Clock Gating Control
  2807. //*****************************************************************************
  2808. //
  2809. // The following are defines for the bit fields in the SYSCTL_PCWD register.
  2810. //
  2811. //*****************************************************************************
  2812. #define SYSCTL_PCWD_P1 0x00000002 // Watchdog Timer 1 Power Control
  2813. #define SYSCTL_PCWD_P0 0x00000001 // Watchdog Timer 0 Power Control
  2814. //*****************************************************************************
  2815. //
  2816. // The following are defines for the bit fields in the SYSCTL_PCTIMER register.
  2817. //
  2818. //*****************************************************************************
  2819. #define SYSCTL_PCTIMER_P5 0x00000020 // Timer 5 Power Control
  2820. #define SYSCTL_PCTIMER_P4 0x00000010 // Timer 4 Power Control
  2821. #define SYSCTL_PCTIMER_P3 0x00000008 // Timer 3 Power Control
  2822. #define SYSCTL_PCTIMER_P2 0x00000004 // Timer 2 Power Control
  2823. #define SYSCTL_PCTIMER_P1 0x00000002 // Timer 1 Power Control
  2824. #define SYSCTL_PCTIMER_P0 0x00000001 // Timer 0 Power Control
  2825. //*****************************************************************************
  2826. //
  2827. // The following are defines for the bit fields in the SYSCTL_PCGPIO register.
  2828. //
  2829. //*****************************************************************************
  2830. #define SYSCTL_PCGPIO_P14 0x00004000 // GPIO Port Q Power Control
  2831. #define SYSCTL_PCGPIO_P13 0x00002000 // GPIO Port P Power Control
  2832. #define SYSCTL_PCGPIO_P12 0x00001000 // GPIO Port N Power Control
  2833. #define SYSCTL_PCGPIO_P11 0x00000800 // GPIO Port M Power Control
  2834. #define SYSCTL_PCGPIO_P10 0x00000400 // GPIO Port L Power Control
  2835. #define SYSCTL_PCGPIO_P9 0x00000200 // GPIO Port K Power Control
  2836. #define SYSCTL_PCGPIO_P8 0x00000100 // GPIO Port J Power Control
  2837. #define SYSCTL_PCGPIO_P7 0x00000080 // GPIO Port H Power Control
  2838. #define SYSCTL_PCGPIO_P6 0x00000040 // GPIO Port G Power Control
  2839. #define SYSCTL_PCGPIO_P5 0x00000020 // GPIO Port F Power Control
  2840. #define SYSCTL_PCGPIO_P4 0x00000010 // GPIO Port E Power Control
  2841. #define SYSCTL_PCGPIO_P3 0x00000008 // GPIO Port D Power Control
  2842. #define SYSCTL_PCGPIO_P2 0x00000004 // GPIO Port C Power Control
  2843. #define SYSCTL_PCGPIO_P1 0x00000002 // GPIO Port B Power Control
  2844. #define SYSCTL_PCGPIO_P0 0x00000001 // GPIO Port A Power Control
  2845. //*****************************************************************************
  2846. //
  2847. // The following are defines for the bit fields in the SYSCTL_PCDMA register.
  2848. //
  2849. //*****************************************************************************
  2850. #define SYSCTL_PCDMA_P0 0x00000001 // uDMA Module Power Control
  2851. //*****************************************************************************
  2852. //
  2853. // The following are defines for the bit fields in the SYSCTL_PCHIB register.
  2854. //
  2855. //*****************************************************************************
  2856. #define SYSCTL_PCHIB_P0 0x00000001 // Hibernation Module Power Control
  2857. //*****************************************************************************
  2858. //
  2859. // The following are defines for the bit fields in the SYSCTL_PCUART register.
  2860. //
  2861. //*****************************************************************************
  2862. #define SYSCTL_PCUART_P7 0x00000080 // UART Module 7 Power Control
  2863. #define SYSCTL_PCUART_P6 0x00000040 // UART Module 6 Power Control
  2864. #define SYSCTL_PCUART_P5 0x00000020 // UART Module 5 Power Control
  2865. #define SYSCTL_PCUART_P4 0x00000010 // UART Module 4 Power Control
  2866. #define SYSCTL_PCUART_P3 0x00000008 // UART Module 3 Power Control
  2867. #define SYSCTL_PCUART_P2 0x00000004 // UART Module 2 Power Control
  2868. #define SYSCTL_PCUART_P1 0x00000002 // UART Module 1 Power Control
  2869. #define SYSCTL_PCUART_P0 0x00000001 // UART Module 0 Power Control
  2870. //*****************************************************************************
  2871. //
  2872. // The following are defines for the bit fields in the SYSCTL_PCSSI register.
  2873. //
  2874. //*****************************************************************************
  2875. #define SYSCTL_PCSSI_P3 0x00000008 // SSI Module 3 Power Control
  2876. #define SYSCTL_PCSSI_P2 0x00000004 // SSI Module 2 Power Control
  2877. #define SYSCTL_PCSSI_P1 0x00000002 // SSI Module 1 Power Control
  2878. #define SYSCTL_PCSSI_P0 0x00000001 // SSI Module 0 Power Control
  2879. //*****************************************************************************
  2880. //
  2881. // The following are defines for the bit fields in the SYSCTL_PCI2C register.
  2882. //
  2883. //*****************************************************************************
  2884. #define SYSCTL_PCI2C_P5 0x00000020 // I2C Module 5 Power Control
  2885. #define SYSCTL_PCI2C_P4 0x00000010 // I2C Module 4 Power Control
  2886. #define SYSCTL_PCI2C_P3 0x00000008 // I2C Module 3 Power Control
  2887. #define SYSCTL_PCI2C_P2 0x00000004 // I2C Module 2 Power Control
  2888. #define SYSCTL_PCI2C_P1 0x00000002 // I2C Module 1 Power Control
  2889. #define SYSCTL_PCI2C_P0 0x00000001 // I2C Module 0 Power Control
  2890. //*****************************************************************************
  2891. //
  2892. // The following are defines for the bit fields in the SYSCTL_PCUSB register.
  2893. //
  2894. //*****************************************************************************
  2895. #define SYSCTL_PCUSB_P0 0x00000001 // USB Module Power Control
  2896. //*****************************************************************************
  2897. //
  2898. // The following are defines for the bit fields in the SYSCTL_PCCAN register.
  2899. //
  2900. //*****************************************************************************
  2901. #define SYSCTL_PCCAN_P1 0x00000002 // CAN Module 1 Power Control
  2902. #define SYSCTL_PCCAN_P0 0x00000001 // CAN Module 0 Power Control
  2903. //*****************************************************************************
  2904. //
  2905. // The following are defines for the bit fields in the SYSCTL_PCADC register.
  2906. //
  2907. //*****************************************************************************
  2908. #define SYSCTL_PCADC_P1 0x00000002 // ADC Module 1 Power Control
  2909. #define SYSCTL_PCADC_P0 0x00000001 // ADC Module 0 Power Control
  2910. //*****************************************************************************
  2911. //
  2912. // The following are defines for the bit fields in the SYSCTL_PCACMP register.
  2913. //
  2914. //*****************************************************************************
  2915. #define SYSCTL_PCACMP_P0 0x00000001 // Analog Comparator Module 0 Power
  2916. // Control
  2917. //*****************************************************************************
  2918. //
  2919. // The following are defines for the bit fields in the SYSCTL_PCPWM register.
  2920. //
  2921. //*****************************************************************************
  2922. #define SYSCTL_PCPWM_P1 0x00000002 // PWM Module 1 Power Control
  2923. #define SYSCTL_PCPWM_P0 0x00000001 // PWM Module 0 Power Control
  2924. //*****************************************************************************
  2925. //
  2926. // The following are defines for the bit fields in the SYSCTL_PCQEI register.
  2927. //
  2928. //*****************************************************************************
  2929. #define SYSCTL_PCQEI_P1 0x00000002 // QEI Module 1 Power Control
  2930. #define SYSCTL_PCQEI_P0 0x00000001 // QEI Module 0 Power Control
  2931. //*****************************************************************************
  2932. //
  2933. // The following are defines for the bit fields in the SYSCTL_PCLPC register.
  2934. //
  2935. //*****************************************************************************
  2936. #define SYSCTL_PCLPC_P0 0x00000001 // LPC Module Power Control
  2937. //*****************************************************************************
  2938. //
  2939. // The following are defines for the bit fields in the SYSCTL_PCPECI register.
  2940. //
  2941. //*****************************************************************************
  2942. #define SYSCTL_PCPECI_P0 0x00000001 // PECI Module Power Control
  2943. //*****************************************************************************
  2944. //
  2945. // The following are defines for the bit fields in the SYSCTL_PCFAN register.
  2946. //
  2947. //*****************************************************************************
  2948. #define SYSCTL_PCFAN_P0 0x00000001 // FAN Module Power Control
  2949. //*****************************************************************************
  2950. //
  2951. // The following are defines for the bit fields in the SYSCTL_PCEEPROM
  2952. // register.
  2953. //
  2954. //*****************************************************************************
  2955. #define SYSCTL_PCEEPROM_P0 0x00000001 // EEPROM Module Power Control
  2956. //*****************************************************************************
  2957. //
  2958. // The following are defines for the bit fields in the SYSCTL_PCWTIMER
  2959. // register.
  2960. //
  2961. //*****************************************************************************
  2962. #define SYSCTL_PCWTIMER_P5 0x00000020 // Wide Timer 5 Power Control
  2963. #define SYSCTL_PCWTIMER_P4 0x00000010 // Wide Timer 4 Power Control
  2964. #define SYSCTL_PCWTIMER_P3 0x00000008 // Wide Timer 3 Power Control
  2965. #define SYSCTL_PCWTIMER_P2 0x00000004 // Wide Timer 2 Power Control
  2966. #define SYSCTL_PCWTIMER_P1 0x00000002 // Wide Timer 1 Power Control
  2967. #define SYSCTL_PCWTIMER_P0 0x00000001 // Wide Timer 0 Power Control
  2968. //*****************************************************************************
  2969. //
  2970. // The following are defines for the bit fields in the SYSCTL_PRWD register.
  2971. //
  2972. //*****************************************************************************
  2973. #define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
  2974. // Ready
  2975. #define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
  2976. // Ready
  2977. //*****************************************************************************
  2978. //
  2979. // The following are defines for the bit fields in the SYSCTL_PRTIMER register.
  2980. //
  2981. //*****************************************************************************
  2982. #define SYSCTL_PRTIMER_R5 0x00000020 // Timer 5 Peripheral Ready
  2983. #define SYSCTL_PRTIMER_R4 0x00000010 // Timer 4 Peripheral Ready
  2984. #define SYSCTL_PRTIMER_R3 0x00000008 // Timer 3 Peripheral Ready
  2985. #define SYSCTL_PRTIMER_R2 0x00000004 // Timer 2 Peripheral Ready
  2986. #define SYSCTL_PRTIMER_R1 0x00000002 // Timer 1 Peripheral Ready
  2987. #define SYSCTL_PRTIMER_R0 0x00000001 // Timer 0 Peripheral Ready
  2988. //*****************************************************************************
  2989. //
  2990. // The following are defines for the bit fields in the SYSCTL_PRGPIO register.
  2991. //
  2992. //*****************************************************************************
  2993. #define SYSCTL_PRGPIO_R14 0x00004000 // GPIO Port Q Peripheral Ready
  2994. #define SYSCTL_PRGPIO_R13 0x00002000 // GPIO Port P Peripheral Ready
  2995. #define SYSCTL_PRGPIO_R12 0x00001000 // GPIO Port N Peripheral Ready
  2996. #define SYSCTL_PRGPIO_R11 0x00000800 // GPIO Port M Peripheral Ready
  2997. #define SYSCTL_PRGPIO_R10 0x00000400 // GPIO Port L Peripheral Ready
  2998. #define SYSCTL_PRGPIO_R9 0x00000200 // GPIO Port K Peripheral Ready
  2999. #define SYSCTL_PRGPIO_R8 0x00000100 // GPIO Port J Peripheral Ready
  3000. #define SYSCTL_PRGPIO_R7 0x00000080 // GPIO Port H Peripheral Ready
  3001. #define SYSCTL_PRGPIO_R6 0x00000040 // GPIO Port G Peripheral Ready
  3002. #define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
  3003. #define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
  3004. #define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
  3005. #define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
  3006. #define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
  3007. #define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
  3008. //*****************************************************************************
  3009. //
  3010. // The following are defines for the bit fields in the SYSCTL_PRDMA register.
  3011. //
  3012. //*****************************************************************************
  3013. #define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
  3014. //*****************************************************************************
  3015. //
  3016. // The following are defines for the bit fields in the SYSCTL_PRHIB register.
  3017. //
  3018. //*****************************************************************************
  3019. #define SYSCTL_PRHIB_R0 0x00000001 // Hibernation Module Peripheral
  3020. // Ready
  3021. //*****************************************************************************
  3022. //
  3023. // The following are defines for the bit fields in the SYSCTL_PRUART register.
  3024. //
  3025. //*****************************************************************************
  3026. #define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
  3027. #define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
  3028. #define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
  3029. #define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
  3030. #define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
  3031. #define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
  3032. #define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
  3033. #define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
  3034. //*****************************************************************************
  3035. //
  3036. // The following are defines for the bit fields in the SYSCTL_PRSSI register.
  3037. //
  3038. //*****************************************************************************
  3039. #define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
  3040. #define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
  3041. #define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
  3042. #define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
  3043. //*****************************************************************************
  3044. //
  3045. // The following are defines for the bit fields in the SYSCTL_PRI2C register.
  3046. //
  3047. //*****************************************************************************
  3048. #define SYSCTL_PRI2C_R5 0x00000020 // I2C Module 5 Peripheral Ready
  3049. #define SYSCTL_PRI2C_R4 0x00000010 // I2C Module 4 Peripheral Ready
  3050. #define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
  3051. #define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
  3052. #define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
  3053. #define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
  3054. //*****************************************************************************
  3055. //
  3056. // The following are defines for the bit fields in the SYSCTL_PRUSB register.
  3057. //
  3058. //*****************************************************************************
  3059. #define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
  3060. //*****************************************************************************
  3061. //
  3062. // The following are defines for the bit fields in the SYSCTL_PRCAN register.
  3063. //
  3064. //*****************************************************************************
  3065. #define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
  3066. #define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
  3067. //*****************************************************************************
  3068. //
  3069. // The following are defines for the bit fields in the SYSCTL_PRADC register.
  3070. //
  3071. //*****************************************************************************
  3072. #define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
  3073. #define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
  3074. //*****************************************************************************
  3075. //
  3076. // The following are defines for the bit fields in the SYSCTL_PRACMP register.
  3077. //
  3078. //*****************************************************************************
  3079. #define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module
  3080. // Peripheral Ready
  3081. //*****************************************************************************
  3082. //
  3083. // The following are defines for the bit fields in the SYSCTL_PRPWM register.
  3084. //
  3085. //*****************************************************************************
  3086. #define SYSCTL_PRPWM_R1 0x00000002 // PWM Module 1 Peripheral Ready
  3087. #define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
  3088. //*****************************************************************************
  3089. //
  3090. // The following are defines for the bit fields in the SYSCTL_PRQEI register.
  3091. //
  3092. //*****************************************************************************
  3093. #define SYSCTL_PRQEI_R1 0x00000002 // QEI Module 1 Peripheral Ready
  3094. #define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
  3095. //*****************************************************************************
  3096. //
  3097. // The following are defines for the bit fields in the SYSCTL_PRLPC register.
  3098. //
  3099. //*****************************************************************************
  3100. #define SYSCTL_PRLPC_R0 0x00000001 // LPC Module Peripheral Ready
  3101. //*****************************************************************************
  3102. //
  3103. // The following are defines for the bit fields in the SYSCTL_PRPECI register.
  3104. //
  3105. //*****************************************************************************
  3106. #define SYSCTL_PRPECI_R0 0x00000001 // PECI Module Peripheral Ready
  3107. //*****************************************************************************
  3108. //
  3109. // The following are defines for the bit fields in the SYSCTL_PRFAN register.
  3110. //
  3111. //*****************************************************************************
  3112. #define SYSCTL_PRFAN_R0 0x00000001 // FAN Module Peripheral Ready
  3113. //*****************************************************************************
  3114. //
  3115. // The following are defines for the bit fields in the SYSCTL_PREEPROM
  3116. // register.
  3117. //
  3118. //*****************************************************************************
  3119. #define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
  3120. //*****************************************************************************
  3121. //
  3122. // The following are defines for the bit fields in the SYSCTL_PRWTIMER
  3123. // register.
  3124. //
  3125. //*****************************************************************************
  3126. #define SYSCTL_PRWTIMER_R5 0x00000020 // Wide Timer 5 Peripheral Ready
  3127. #define SYSCTL_PRWTIMER_R4 0x00000010 // Wide Timer 4 Peripheral Ready
  3128. #define SYSCTL_PRWTIMER_R3 0x00000008 // Wide Timer 3 Peripheral Ready
  3129. #define SYSCTL_PRWTIMER_R2 0x00000004 // Wide Timer 2 Peripheral Ready
  3130. #define SYSCTL_PRWTIMER_R1 0x00000002 // Wide Timer 1 Peripheral Ready
  3131. #define SYSCTL_PRWTIMER_R0 0x00000001 // Wide Timer 0 Peripheral Ready
  3132. //*****************************************************************************
  3133. //
  3134. // The following definitions are deprecated.
  3135. //
  3136. //*****************************************************************************
  3137. #ifndef DEPRECATED
  3138. //*****************************************************************************
  3139. //
  3140. // The following are deprecated defines for the System Control register
  3141. // addresses.
  3142. //
  3143. //*****************************************************************************
  3144. #define SYSCTL_GPIOHSCTL 0x400FE06C // GPIO High-Speed Control
  3145. #define SYSCTL_USER0 0x400FE1E0 // NV User Register 0
  3146. #define SYSCTL_USER1 0x400FE1E4 // NV User Register 1
  3147. //*****************************************************************************
  3148. //
  3149. // The following are deprecated defines for the bit fields in the SYSCTL_DID0
  3150. // register.
  3151. //
  3152. //*****************************************************************************
  3153. #define SYSCTL_DID0_VER_MASK 0x70000000 // DID0 version mask
  3154. #define SYSCTL_DID0_CLASS_MASK 0x00FF0000 // Device Class
  3155. #define SYSCTL_DID0_MAJ_MASK 0x0000FF00 // Major revision mask
  3156. #define SYSCTL_DID0_MAJ_A 0x00000000 // Major revision A
  3157. #define SYSCTL_DID0_MAJ_B 0x00000100 // Major revision B
  3158. #define SYSCTL_DID0_MAJ_C 0x00000200 // Major revision C
  3159. #define SYSCTL_DID0_MIN_MASK 0x000000FF // Minor revision mask
  3160. //*****************************************************************************
  3161. //
  3162. // The following are deprecated defines for the bit fields in the SYSCTL_DID1
  3163. // register.
  3164. //
  3165. //*****************************************************************************
  3166. #define SYSCTL_DID1_VER_MASK 0xF0000000 // Register version mask
  3167. #define SYSCTL_DID1_FAM_MASK 0x0F000000 // Family mask
  3168. #define SYSCTL_DID1_FAM_S 0x00000000 // Stellaris family
  3169. #define SYSCTL_DID1_PRTNO_MASK 0x00FF0000 // Part number mask
  3170. #define SYSCTL_DID1_PINCNT_MASK 0x0000E000 // Pin count
  3171. #define SYSCTL_DID1_TEMP_MASK 0x000000E0 // Temperature range mask
  3172. #define SYSCTL_DID1_PKG_MASK 0x00000018 // Package mask
  3173. #define SYSCTL_DID1_PKG_48QFP 0x00000008 // QFP package
  3174. #define SYSCTL_DID1_QUAL_MASK 0x00000003 // Qualification status mask
  3175. #define SYSCTL_DID1_PKG_28SOIC 0x00000000 // SOIC package
  3176. #define SYSCTL_DID1_PRTNO_SHIFT 16
  3177. //*****************************************************************************
  3178. //
  3179. // The following are deprecated defines for the bit fields in the SYSCTL_DC0
  3180. // register.
  3181. //
  3182. //*****************************************************************************
  3183. #define SYSCTL_DC0_SRAMSZ_MASK 0xFFFF0000 // SRAM size mask
  3184. #define SYSCTL_DC0_FLASHSZ_MASK 0x0000FFFF // Flash size mask
  3185. //*****************************************************************************
  3186. //
  3187. // The following are deprecated defines for the bit fields in the SYSCTL_DC1
  3188. // register.
  3189. //
  3190. //*****************************************************************************
  3191. #define SYSCTL_DC1_PWM 0x00100000 // PWM Module Present
  3192. #define SYSCTL_DC1_ADC 0x00010000 // ADC Module Present
  3193. #define SYSCTL_DC1_SYSDIV_MASK 0x0000F000 // Minimum system divider mask
  3194. #define SYSCTL_DC1_ADCSPD_MASK 0x00000F00 // ADC speed mask
  3195. #define SYSCTL_DC1_ADCSPD_M 0x00000F00 // Max ADC Speed
  3196. #define SYSCTL_DC1_ADCSPD_125K 0x00000000 // 125Ksps ADC
  3197. #define SYSCTL_DC1_ADCSPD_250K 0x00000100 // 250K samples/second
  3198. #define SYSCTL_DC1_ADCSPD_500K 0x00000200 // 500K samples/second
  3199. #define SYSCTL_DC1_ADCSPD_1M 0x00000300 // 1M samples/second
  3200. #define SYSCTL_DC1_WDOG 0x00000008 // Watchdog present
  3201. #define SYSCTL_DC1_WDT 0x00000008 // Watchdog Timer Present
  3202. //*****************************************************************************
  3203. //
  3204. // The following are deprecated defines for the bit fields in the SYSCTL_DC2
  3205. // register.
  3206. //
  3207. //*****************************************************************************
  3208. #define SYSCTL_DC2_I2C 0x00001000 // I2C present
  3209. #define SYSCTL_DC2_QEI 0x00000100 // QEI present
  3210. #define SYSCTL_DC2_SSI 0x00000010 // SSI present
  3211. //*****************************************************************************
  3212. //
  3213. // The following are deprecated defines for the bit fields in the SYSCTL_DC3
  3214. // register.
  3215. //
  3216. //*****************************************************************************
  3217. #define SYSCTL_DC3_ADC7 0x00800000 // ADC7 Pin Present
  3218. #define SYSCTL_DC3_ADC6 0x00400000 // ADC6 Pin Present
  3219. #define SYSCTL_DC3_ADC5 0x00200000 // ADC5 Pin Present
  3220. #define SYSCTL_DC3_ADC4 0x00100000 // ADC4 Pin Present
  3221. #define SYSCTL_DC3_ADC3 0x00080000 // ADC3 Pin Present
  3222. #define SYSCTL_DC3_ADC2 0x00040000 // ADC2 Pin Present
  3223. #define SYSCTL_DC3_ADC1 0x00020000 // ADC1 Pin Present
  3224. #define SYSCTL_DC3_ADC0 0x00010000 // ADC0 Pin Present
  3225. #define SYSCTL_DC3_MC_FAULT0 0x00008000 // MC0 fault pin present
  3226. //*****************************************************************************
  3227. //
  3228. // The following are deprecated defines for the bit fields in the
  3229. // SYSCTL_PBORCTL register.
  3230. //
  3231. //*****************************************************************************
  3232. #define SYSCTL_PBORCTL_BOR_MASK 0x0000FFFC // BOR wait timer
  3233. #define SYSCTL_PBORCTL_BOR_SH 2
  3234. //*****************************************************************************
  3235. //
  3236. // The following are deprecated defines for the bit fields in the
  3237. // SYSCTL_LDOPCTL register.
  3238. //
  3239. //*****************************************************************************
  3240. #define SYSCTL_LDOPCTL_MASK 0x0000003F // Voltage adjust mask
  3241. //*****************************************************************************
  3242. //
  3243. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR0
  3244. // register.
  3245. //
  3246. //*****************************************************************************
  3247. #define SYSCTL_SRCR0_PWM 0x00100000 // PWM Reset Control
  3248. #define SYSCTL_SRCR0_ADC 0x00010000 // ADC0 Reset Control
  3249. #define SYSCTL_SRCR0_WDT 0x00000008 // WDT Reset Control
  3250. //*****************************************************************************
  3251. //
  3252. // The following are deprecated defines for the bit fields in the SYSCTL_RESC
  3253. // register.
  3254. //
  3255. //*****************************************************************************
  3256. #define SYSCTL_RESC_WDOG 0x00000008 // Watchdog reset
  3257. #define SYSCTL_RESC_WDT 0x00000008 // Watchdog Timer Reset
  3258. //*****************************************************************************
  3259. //
  3260. // The following are deprecated defines for the bit fields in the SYSCTL_RCC
  3261. // register.
  3262. //
  3263. //*****************************************************************************
  3264. #define SYSCTL_RCC_SYSDIV_MASK 0x07800000 // System clock divider
  3265. #define SYSCTL_RCC_USE_SYSDIV 0x00400000 // Use sytem clock divider
  3266. #define SYSCTL_RCC_USE_PWMDIV 0x00100000 // Use PWM clock divider
  3267. #define SYSCTL_RCC_PWMDIV_MASK 0x000E0000 // PWM clock divider
  3268. #define SYSCTL_RCC_OE 0x00001000 // PLL output enable
  3269. #define SYSCTL_RCC_XTAL_3_68MHz 0x00000140 // Using a 3.6864 MHz crystal
  3270. #define SYSCTL_RCC_XTAL_4MHz 0x00000180 // Using a 4 MHz crystal
  3271. #define SYSCTL_RCC_XTAL_MASK 0x000003C0 // Crystal attached to main osc
  3272. #define SYSCTL_RCC_OSCSRC_MASK 0x00000030 // Oscillator input select
  3273. #define SYSCTL_RCC_SYSDIV_SHIFT 23 // Shift to the SYSDIV field
  3274. #define SYSCTL_RCC_PWMDIV_SHIFT 17 // Shift to the PWMDIV field
  3275. #define SYSCTL_RCC_XTAL_SHIFT 6 // Shift to the XTAL field
  3276. #define SYSCTL_RCC_OSCSRC_SHIFT 4 // Shift to the OSCSRC field
  3277. //*****************************************************************************
  3278. //
  3279. // The following are deprecated defines for the bit fields in the SYSCTL_PLLCFG
  3280. // register.
  3281. //
  3282. //*****************************************************************************
  3283. #define SYSCTL_PLLCFG_OD_MASK 0x0000C000 // Output divider
  3284. #define SYSCTL_PLLCFG_F_MASK 0x00003FE0 // PLL multiplier
  3285. #define SYSCTL_PLLCFG_R_MASK 0x0000001F // Input predivider
  3286. #define SYSCTL_PLLCFG_F_SHIFT 5
  3287. #define SYSCTL_PLLCFG_R_SHIFT 0
  3288. //*****************************************************************************
  3289. //
  3290. // The following are deprecated defines for the bit fields in the
  3291. // SYSCTL_GPIOHSCTL register.
  3292. //
  3293. //*****************************************************************************
  3294. #define SYSCTL_GPIOHSCTL_PORTA 0x00000001 // Port A High-Speed
  3295. #define SYSCTL_GPIOHSCTL_PORTB 0x00000002 // Port B High-Speed
  3296. #define SYSCTL_GPIOHSCTL_PORTC 0x00000004 // Port C High-Speed
  3297. #define SYSCTL_GPIOHSCTL_PORTD 0x00000008 // Port D High-Speed
  3298. #define SYSCTL_GPIOHSCTL_PORTE 0x00000010 // Port E High-Speed
  3299. #define SYSCTL_GPIOHSCTL_PORTF 0x00000020 // Port F High-Speed
  3300. #define SYSCTL_GPIOHSCTL_PORTG 0x00000040 // Port G High-Speed
  3301. #define SYSCTL_GPIOHSCTL_PORTH 0x00000080 // Port H High-Speed
  3302. //*****************************************************************************
  3303. //
  3304. // The following are deprecated defines for the bit fields in the SYSCTL_RCC2
  3305. // register.
  3306. //
  3307. //*****************************************************************************
  3308. #define SYSCTL_RCC2_USEFRACT 0x40000000 // Use fractional divider
  3309. #define SYSCTL_RCC2_SYSDIV2_MSK 0x1F800000 // System clock divider
  3310. #define SYSCTL_RCC2_FRACT 0x00400000 // Fractional divide
  3311. #define SYSCTL_RCC2_OSCSRC2_MSK 0x00000070 // Oscillator input select
  3312. //*****************************************************************************
  3313. //
  3314. // The following are deprecated defines for the bit fields in the SYSCTL_RCGC0
  3315. // register.
  3316. //
  3317. //*****************************************************************************
  3318. #define SYSCTL_RCGC0_PWM 0x00100000 // PWM Clock Gating Control
  3319. #define SYSCTL_RCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  3320. #define SYSCTL_RCGC0_WDT 0x00000008 // WDT Clock Gating Control
  3321. //*****************************************************************************
  3322. //
  3323. // The following are deprecated defines for the bit fields in the SYSCTL_SCGC0
  3324. // register.
  3325. //
  3326. //*****************************************************************************
  3327. #define SYSCTL_SCGC0_PWM 0x00100000 // PWM Clock Gating Control
  3328. #define SYSCTL_SCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  3329. #define SYSCTL_SCGC0_WDT 0x00000008 // WDT Clock Gating Control
  3330. //*****************************************************************************
  3331. //
  3332. // The following are deprecated defines for the bit fields in the SYSCTL_DCGC0
  3333. // register.
  3334. //
  3335. //*****************************************************************************
  3336. #define SYSCTL_DCGC0_PWM 0x00100000 // PWM Clock Gating Control
  3337. #define SYSCTL_DCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  3338. #define SYSCTL_DCGC0_WDT 0x00000008 // WDT Clock Gating Control
  3339. //*****************************************************************************
  3340. //
  3341. // The following are deprecated defines for the bit fields in the
  3342. // SYSCTL_DSLPCLKCFG register.
  3343. //
  3344. //*****************************************************************************
  3345. #define SYSCTL_DSLPCLKCFG_D_MSK 0x1F800000 // Deep sleep system clock override
  3346. #define SYSCTL_DSLPCLKCFG_O_MSK 0x00000070 // Deep sleep oscillator override
  3347. //*****************************************************************************
  3348. //
  3349. // The following are deprecated defines for the bit fields in the
  3350. // SYSCTL_CLKVCLR register.
  3351. //
  3352. //*****************************************************************************
  3353. #define SYSCTL_CLKVCLR_CLR 0x00000001 // Clear clock verification fault
  3354. //*****************************************************************************
  3355. //
  3356. // The following are deprecated defines for the bit fields in the
  3357. // SYSCTL_LDOARST register.
  3358. //
  3359. //*****************************************************************************
  3360. #define SYSCTL_LDOARST_ARST 0x00000001 // Allow LDO to reset device
  3361. //*****************************************************************************
  3362. //
  3363. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR0,
  3364. // SYSCTL_RCGC0, SYSCTL_SCGC0, and SYSCTL_DCGC0 registers.
  3365. //
  3366. //*****************************************************************************
  3367. #define SYSCTL_SET0_CAN2 0x04000000 // CAN 2 module
  3368. #define SYSCTL_SET0_CAN1 0x02000000 // CAN 1 module
  3369. #define SYSCTL_SET0_CAN0 0x01000000 // CAN 0 module
  3370. #define SYSCTL_SET0_PWM 0x00100000 // PWM module
  3371. #define SYSCTL_SET0_ADC 0x00010000 // ADC module
  3372. #define SYSCTL_SET0_ADCSPD_MASK 0x00000F00 // ADC speed mask
  3373. #define SYSCTL_SET0_ADCSPD_125K 0x00000000 // 125Ksps ADC
  3374. #define SYSCTL_SET0_ADCSPD_250K 0x00000100 // 250Ksps ADC
  3375. #define SYSCTL_SET0_ADCSPD_500K 0x00000200 // 500Ksps ADC
  3376. #define SYSCTL_SET0_ADCSPD_1M 0x00000300 // 1Msps ADC
  3377. #define SYSCTL_SET0_HIB 0x00000040 // Hibernation module
  3378. #define SYSCTL_SET0_WDOG 0x00000008 // Watchdog module
  3379. //*****************************************************************************
  3380. //
  3381. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR1,
  3382. // SYSCTL_RCGC1, SYSCTL_SCGC1, and SYSCTL_DCGC1 registers.
  3383. //
  3384. //*****************************************************************************
  3385. #define SYSCTL_SET1_COMP2 0x04000000 // Analog comparator module 2
  3386. #define SYSCTL_SET1_COMP1 0x02000000 // Analog comparator module 1
  3387. #define SYSCTL_SET1_COMP0 0x01000000 // Analog comparator module 0
  3388. #define SYSCTL_SET1_TIMER3 0x00080000 // Timer module 3
  3389. #define SYSCTL_SET1_TIMER2 0x00040000 // Timer module 2
  3390. #define SYSCTL_SET1_TIMER1 0x00020000 // Timer module 1
  3391. #define SYSCTL_SET1_TIMER0 0x00010000 // Timer module 0
  3392. #define SYSCTL_SET1_I2C1 0x00002000 // I2C module 1
  3393. #define SYSCTL_SET1_I2C0 0x00001000 // I2C module 0
  3394. #define SYSCTL_SET1_I2C 0x00001000 // I2C module
  3395. #define SYSCTL_SET1_QEI1 0x00000200 // QEI module 1
  3396. #define SYSCTL_SET1_QEI 0x00000100 // QEI module
  3397. #define SYSCTL_SET1_QEI0 0x00000100 // QEI module 0
  3398. #define SYSCTL_SET1_SSI1 0x00000020 // SSI module 1
  3399. #define SYSCTL_SET1_SSI0 0x00000010 // SSI module 0
  3400. #define SYSCTL_SET1_SSI 0x00000010 // SSI module
  3401. #define SYSCTL_SET1_UART2 0x00000004 // UART module 2
  3402. #define SYSCTL_SET1_UART1 0x00000002 // UART module 1
  3403. #define SYSCTL_SET1_UART0 0x00000001 // UART module 0
  3404. //*****************************************************************************
  3405. //
  3406. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR2,
  3407. // SYSCTL_RCGC2, SYSCTL_SCGC2, and SYSCTL_DCGC2 registers.
  3408. //
  3409. //*****************************************************************************
  3410. #define SYSCTL_SET2_ETH 0x50000000 // ETH module
  3411. #define SYSCTL_SET2_GPIOH 0x00000080 // GPIO H module
  3412. #define SYSCTL_SET2_GPIOG 0x00000040 // GPIO G module
  3413. #define SYSCTL_SET2_GPIOF 0x00000020 // GPIO F module
  3414. #define SYSCTL_SET2_GPIOE 0x00000010 // GPIO E module
  3415. #define SYSCTL_SET2_GPIOD 0x00000008 // GPIO D module
  3416. #define SYSCTL_SET2_GPIOC 0x00000004 // GPIO C module
  3417. #define SYSCTL_SET2_GPIOB 0x00000002 // GPIO B module
  3418. #define SYSCTL_SET2_GPIOA 0x00000001 // GIPO A module
  3419. //*****************************************************************************
  3420. //
  3421. // The following are deprecated defines for the bit fields in the SYSCTL_RIS,
  3422. // SYSCTL_IMC, and SYSCTL_IMS registers.
  3423. //
  3424. //*****************************************************************************
  3425. #define SYSCTL_INT_PLL_LOCK 0x00000040 // PLL lock interrupt
  3426. #define SYSCTL_INT_CUR_LIMIT 0x00000020 // Current limit interrupt
  3427. #define SYSCTL_INT_IOSC_FAIL 0x00000010 // Internal oscillator failure int
  3428. #define SYSCTL_INT_MOSC_FAIL 0x00000008 // Main oscillator failure int
  3429. #define SYSCTL_INT_POR 0x00000004 // Power on reset interrupt
  3430. #define SYSCTL_INT_BOR 0x00000002 // Brown out interrupt
  3431. #define SYSCTL_INT_PLL_FAIL 0x00000001 // PLL failure interrupt
  3432. #endif
  3433. #endif // __HW_SYSCTL_H__