hw_sysctl.h 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688
  1. //*****************************************************************************
  2. //
  3. // hw_sysctl.h - Macros used when accessing the system control hardware.
  4. //
  5. // Copyright (c) 2005-2010 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 6459 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_GPIOHSCTL 0x400FE06C // GPIO High-Speed Control
  56. #define SYSCTL_GPIOHBCTL 0x400FE06C // GPIO High-Performance Bus
  57. // Control
  58. #define SYSCTL_RCC2 0x400FE070 // Run-Mode Clock Configuration 2
  59. #define SYSCTL_MOSCCTL 0x400FE07C // Main Oscillator Control
  60. #define SYSCTL_RCGC0 0x400FE100 // Run Mode Clock Gating Control
  61. // Register 0
  62. #define SYSCTL_RCGC1 0x400FE104 // Run Mode Clock Gating Control
  63. // Register 1
  64. #define SYSCTL_RCGC2 0x400FE108 // Run Mode Clock Gating Control
  65. // Register 2
  66. #define SYSCTL_SCGC0 0x400FE110 // Sleep Mode Clock Gating Control
  67. // Register 0
  68. #define SYSCTL_SCGC1 0x400FE114 // Sleep Mode Clock Gating Control
  69. // Register 1
  70. #define SYSCTL_SCGC2 0x400FE118 // Sleep Mode Clock Gating Control
  71. // Register 2
  72. #define SYSCTL_DCGC0 0x400FE120 // Deep Sleep Mode Clock Gating
  73. // Control Register 0
  74. #define SYSCTL_DCGC1 0x400FE124 // Deep-Sleep Mode Clock Gating
  75. // Control Register 1
  76. #define SYSCTL_DCGC2 0x400FE128 // Deep Sleep Mode Clock Gating
  77. // Control Register 2
  78. #define SYSCTL_DSLPCLKCFG 0x400FE144 // Deep Sleep Clock Configuration
  79. #define SYSCTL_CLKVCLR 0x400FE150 // Clock Verification Clear
  80. #define SYSCTL_PIOSCCAL 0x400FE150 // Precision Internal Oscillator
  81. // Calibration
  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_I2SMCLKCFG 0x400FE170 // I2S MCLK Configuration
  87. #define SYSCTL_DC9 0x400FE190 // Device Capabilities 9 ADC
  88. // Digital Comparators
  89. #define SYSCTL_NVMSTAT 0x400FE1A0 // Non-Volatile Memory Information
  90. //*****************************************************************************
  91. //
  92. // The following are defines for the bit fields in the SYSCTL_DID0 register.
  93. //
  94. //*****************************************************************************
  95. #define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
  96. #define SYSCTL_DID0_VER_0 0x00000000 // Initial DID0 register format
  97. // definition for Stellaris(R)
  98. // Sandstorm-class devices
  99. #define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
  100. // register format
  101. #define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
  102. #define SYSCTL_DID0_CLASS_SANDSTORM \
  103. 0x00000000 // Sandstorm-class Device
  104. #define SYSCTL_DID0_CLASS_FURY 0x00010000 // Stellaris(R) Fury-class devices
  105. #define SYSCTL_DID0_CLASS_DUSTDEVIL \
  106. 0x00030000 // Stellaris(R) DustDevil-class
  107. // devices
  108. #define SYSCTL_DID0_CLASS_TEMPEST \
  109. 0x00040000 // Stellaris(R) Tempest-class
  110. // microcontrollers
  111. #define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
  112. #define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
  113. #define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
  114. // revision)
  115. #define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
  116. // revision)
  117. #define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
  118. #define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
  119. // revision update
  120. #define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
  121. #define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
  122. #define SYSCTL_DID0_MIN_3 0x00000003 // Minor revision 3
  123. #define SYSCTL_DID0_MIN_4 0x00000004 // Minor revision 4
  124. #define SYSCTL_DID0_MIN_5 0x00000005 // Minor revision 5
  125. //*****************************************************************************
  126. //
  127. // The following are defines for the bit fields in the SYSCTL_DID1 register.
  128. //
  129. //*****************************************************************************
  130. #define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
  131. #define SYSCTL_DID1_VER_0 0x00000000 // Initial DID1 register format
  132. // definition, indicating a
  133. // Stellaris LM3Snnn device
  134. #define SYSCTL_DID1_VER_1 0x10000000 // Second version of the DID1
  135. // register format
  136. #define SYSCTL_DID1_FAM_M 0x0F000000 // Family
  137. #define SYSCTL_DID1_FAM_STELLARIS \
  138. 0x00000000 // Stellaris family of
  139. // microcontollers, that is, all
  140. // devices with external part
  141. // numbers starting with LM3S
  142. #define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
  143. #define SYSCTL_DID1_PRTNO_101 0x00010000 // LM3S101
  144. #define SYSCTL_DID1_PRTNO_102 0x00020000 // LM3S102
  145. #define SYSCTL_DID1_PRTNO_300 0x00190000 // LM3S300
  146. #define SYSCTL_DID1_PRTNO_301 0x00110000 // LM3S301
  147. #define SYSCTL_DID1_PRTNO_308 0x001A0000 // LM3S308
  148. #define SYSCTL_DID1_PRTNO_310 0x00120000 // LM3S310
  149. #define SYSCTL_DID1_PRTNO_315 0x00130000 // LM3S315
  150. #define SYSCTL_DID1_PRTNO_316 0x00140000 // LM3S316
  151. #define SYSCTL_DID1_PRTNO_317 0x00170000 // LM3S317
  152. #define SYSCTL_DID1_PRTNO_328 0x00150000 // LM3S328
  153. #define SYSCTL_DID1_PRTNO_600 0x002A0000 // LM3S600
  154. #define SYSCTL_DID1_PRTNO_601 0x00210000 // LM3S601
  155. #define SYSCTL_DID1_PRTNO_608 0x002B0000 // LM3S608
  156. #define SYSCTL_DID1_PRTNO_610 0x00220000 // LM3S610
  157. #define SYSCTL_DID1_PRTNO_611 0x00230000 // LM3S611
  158. #define SYSCTL_DID1_PRTNO_612 0x00240000 // LM3S612
  159. #define SYSCTL_DID1_PRTNO_613 0x00250000 // LM3S613
  160. #define SYSCTL_DID1_PRTNO_615 0x00260000 // LM3S615
  161. #define SYSCTL_DID1_PRTNO_617 0x00280000 // LM3S617
  162. #define SYSCTL_DID1_PRTNO_618 0x00290000 // LM3S618
  163. #define SYSCTL_DID1_PRTNO_628 0x00270000 // LM3S628
  164. #define SYSCTL_DID1_PRTNO_800 0x00380000 // LM3S800
  165. #define SYSCTL_DID1_PRTNO_801 0x00310000 // LM3S801
  166. #define SYSCTL_DID1_PRTNO_808 0x00390000 // LM3S808
  167. #define SYSCTL_DID1_PRTNO_811 0x00320000 // LM3S811
  168. #define SYSCTL_DID1_PRTNO_812 0x00330000 // LM3S812
  169. #define SYSCTL_DID1_PRTNO_815 0x00340000 // LM3S815
  170. #define SYSCTL_DID1_PRTNO_817 0x00360000 // LM3S817
  171. #define SYSCTL_DID1_PRTNO_818 0x00370000 // LM3S818
  172. #define SYSCTL_DID1_PRTNO_828 0x00350000 // LM3S828
  173. #define SYSCTL_DID1_PRTNO_1110 0x00BF0000 // LM3S1110
  174. #define SYSCTL_DID1_PRTNO_1133 0x00C30000 // LM3S1133
  175. #define SYSCTL_DID1_PRTNO_1138 0x00C50000 // LM3S1138
  176. #define SYSCTL_DID1_PRTNO_1150 0x00C10000 // LM3S1150
  177. #define SYSCTL_DID1_PRTNO_1162 0x00C40000 // LM3S1162
  178. #define SYSCTL_DID1_PRTNO_1165 0x00C20000 // LM3S1165
  179. #define SYSCTL_DID1_PRTNO_1332 0x00C60000 // LM3S1332
  180. #define SYSCTL_DID1_PRTNO_1435 0x00BC0000 // LM3S1435
  181. #define SYSCTL_DID1_PRTNO_1439 0x00BA0000 // LM3S1439
  182. #define SYSCTL_DID1_PRTNO_1512 0x00BB0000 // LM3S1512
  183. #define SYSCTL_DID1_PRTNO_1538 0x00C70000 // LM3S1538
  184. #define SYSCTL_DID1_PRTNO_1601 0x00DB0000 // LM3S1601
  185. #define SYSCTL_DID1_PRTNO_1607 0x00060000 // LM3S1607
  186. #define SYSCTL_DID1_PRTNO_1608 0x00DA0000 // LM3S1608
  187. #define SYSCTL_DID1_PRTNO_1620 0x00C00000 // LM3S1620
  188. #define SYSCTL_DID1_PRTNO_1625 0x00030000 // LM3S1625
  189. #define SYSCTL_DID1_PRTNO_1626 0x00040000 // LM3S1626
  190. #define SYSCTL_DID1_PRTNO_1627 0x00050000 // LM3S1627
  191. #define SYSCTL_DID1_PRTNO_1635 0x00B30000 // LM3S1635
  192. #define SYSCTL_DID1_PRTNO_1637 0x00BD0000 // LM3S1637
  193. #define SYSCTL_DID1_PRTNO_1651 0x00B10000 // LM3S1651
  194. #define SYSCTL_DID1_PRTNO_1751 0x00B90000 // LM3S1751
  195. #define SYSCTL_DID1_PRTNO_1776 0x00100000 // LM3S1776
  196. #define SYSCTL_DID1_PRTNO_1811 0x00160000 // LM3S1811
  197. #define SYSCTL_DID1_PRTNO_1816 0x003D0000 // LM3S1816
  198. #define SYSCTL_DID1_PRTNO_1850 0x00B40000 // LM3S1850
  199. #define SYSCTL_DID1_PRTNO_1911 0x00DD0000 // LM3S1911
  200. #define SYSCTL_DID1_PRTNO_1918 0x00DC0000 // LM3S1918
  201. #define SYSCTL_DID1_PRTNO_1937 0x00B70000 // LM3S1937
  202. #define SYSCTL_DID1_PRTNO_1958 0x00BE0000 // LM3S1958
  203. #define SYSCTL_DID1_PRTNO_1960 0x00B50000 // LM3S1960
  204. #define SYSCTL_DID1_PRTNO_1968 0x00B80000 // LM3S1968
  205. #define SYSCTL_DID1_PRTNO_1J11 0x000F0000 // LM3S1J11
  206. #define SYSCTL_DID1_PRTNO_1J16 0x003C0000 // LM3S1J16
  207. #define SYSCTL_DID1_PRTNO_1N11 0x000E0000 // LM3S1N11
  208. #define SYSCTL_DID1_PRTNO_1N16 0x003B0000 // LM3S1N16
  209. #define SYSCTL_DID1_PRTNO_1P51 0x00B20000 // LM3S1P51
  210. #define SYSCTL_DID1_PRTNO_1R21 0x009E0000 // LM3S1R21
  211. #define SYSCTL_DID1_PRTNO_1W16 0x00300000 // LM3S1W16
  212. #define SYSCTL_DID1_PRTNO_1Z16 0x002F0000 // LM3S1Z16
  213. #define SYSCTL_DID1_PRTNO_2110 0x00510000 // LM3S2110
  214. #define SYSCTL_DID1_PRTNO_2139 0x00840000 // LM3S2139
  215. #define SYSCTL_DID1_PRTNO_2276 0x00390000 // LM3S2276
  216. #define SYSCTL_DID1_PRTNO_2410 0x00A20000 // LM3S2410
  217. #define SYSCTL_DID1_PRTNO_2412 0x00590000 // LM3S2412
  218. #define SYSCTL_DID1_PRTNO_2432 0x00560000 // LM3S2432
  219. #define SYSCTL_DID1_PRTNO_2533 0x005A0000 // LM3S2533
  220. #define SYSCTL_DID1_PRTNO_2601 0x00E10000 // LM3S2601
  221. #define SYSCTL_DID1_PRTNO_2608 0x00E00000 // LM3S2608
  222. #define SYSCTL_DID1_PRTNO_2616 0x00330000 // LM3S2616
  223. #define SYSCTL_DID1_PRTNO_2620 0x00570000 // LM3S2620
  224. #define SYSCTL_DID1_PRTNO_2637 0x00850000 // LM3S2637
  225. #define SYSCTL_DID1_PRTNO_2651 0x00530000 // LM3S2651
  226. #define SYSCTL_DID1_PRTNO_2671 0x00800000 // LM3S2671
  227. #define SYSCTL_DID1_PRTNO_2678 0x00500000 // LM3S2678
  228. #define SYSCTL_DID1_PRTNO_2730 0x00A40000 // LM3S2730
  229. #define SYSCTL_DID1_PRTNO_2739 0x00520000 // LM3S2739
  230. #define SYSCTL_DID1_PRTNO_2776 0x003A0000 // LM3S2776
  231. #define SYSCTL_DID1_PRTNO_2793 0x006D0000 // LM3S2793
  232. #define SYSCTL_DID1_PRTNO_2911 0x00E30000 // LM3S2911
  233. #define SYSCTL_DID1_PRTNO_2918 0x00E20000 // LM3S2918
  234. #define SYSCTL_DID1_PRTNO_2939 0x00540000 // LM3S2939
  235. #define SYSCTL_DID1_PRTNO_2948 0x008F0000 // LM3S2948
  236. #define SYSCTL_DID1_PRTNO_2950 0x00580000 // LM3S2950
  237. #define SYSCTL_DID1_PRTNO_2965 0x00550000 // LM3S2965
  238. #define SYSCTL_DID1_PRTNO_2B93 0x006C0000 // LM3S2B93
  239. #define SYSCTL_DID1_PRTNO_3634 0x00080000 // LM3S3634
  240. #define SYSCTL_DID1_PRTNO_3651 0x00430000 // LM3S3651
  241. #define SYSCTL_DID1_PRTNO_3739 0x00440000 // LM3S3739
  242. #define SYSCTL_DID1_PRTNO_3748 0x00490000 // LM3S3748
  243. #define SYSCTL_DID1_PRTNO_3749 0x00450000 // LM3S3749
  244. #define SYSCTL_DID1_PRTNO_3826 0x00420000 // LM3S3826
  245. #define SYSCTL_DID1_PRTNO_3J26 0x00410000 // LM3S3J26
  246. #define SYSCTL_DID1_PRTNO_3N26 0x00400000 // LM3S3N26
  247. #define SYSCTL_DID1_PRTNO_3W26 0x003F0000 // LM3S3W26
  248. #define SYSCTL_DID1_PRTNO_3Z26 0x003E0000 // LM3S3Z26
  249. #define SYSCTL_DID1_PRTNO_5632 0x00810000 // LM3S5632
  250. #define SYSCTL_DID1_PRTNO_5651 0x000C0000 // LM3S5651
  251. #define SYSCTL_DID1_PRTNO_5652 0x008A0000 // LM3S5652
  252. #define SYSCTL_DID1_PRTNO_5656 0x004D0000 // LM3S5656
  253. #define SYSCTL_DID1_PRTNO_5662 0x00910000 // LM3S5662
  254. #define SYSCTL_DID1_PRTNO_5732 0x00960000 // LM3S5732
  255. #define SYSCTL_DID1_PRTNO_5737 0x00970000 // LM3S5737
  256. #define SYSCTL_DID1_PRTNO_5739 0x00A00000 // LM3S5739
  257. #define SYSCTL_DID1_PRTNO_5747 0x00990000 // LM3S5747
  258. #define SYSCTL_DID1_PRTNO_5749 0x00A70000 // LM3S5749
  259. #define SYSCTL_DID1_PRTNO_5752 0x009A0000 // LM3S5752
  260. #define SYSCTL_DID1_PRTNO_5762 0x009C0000 // LM3S5762
  261. #define SYSCTL_DID1_PRTNO_5791 0x00690000 // LM3S5791
  262. #define SYSCTL_DID1_PRTNO_5951 0x000B0000 // LM3S5951
  263. #define SYSCTL_DID1_PRTNO_5956 0x004E0000 // LM3S5956
  264. #define SYSCTL_DID1_PRTNO_5B91 0x00680000 // LM3S5B91
  265. #define SYSCTL_DID1_PRTNO_5K31 0x00090000 // LM3S5K31
  266. #define SYSCTL_DID1_PRTNO_5K36 0x004A0000 // LM3S5K36
  267. #define SYSCTL_DID1_PRTNO_5P31 0x000A0000 // LM3S5P31
  268. #define SYSCTL_DID1_PRTNO_5P36 0x00480000 // LM3S5P36
  269. #define SYSCTL_DID1_PRTNO_5P51 0x000D0000 // LM3S5P51
  270. #define SYSCTL_DID1_PRTNO_5P56 0x004C0000 // LM3S5P56
  271. #define SYSCTL_DID1_PRTNO_5R31 0x00070000 // LM3S5R31
  272. #define SYSCTL_DID1_PRTNO_5R36 0x004B0000 // LM3S5R36
  273. #define SYSCTL_DID1_PRTNO_5T36 0x00470000 // LM3S5T36
  274. #define SYSCTL_DID1_PRTNO_5Y36 0x00460000 // LM3S5Y36
  275. #define SYSCTL_DID1_PRTNO_6100 0x00A10000 // LM3S6100
  276. #define SYSCTL_DID1_PRTNO_6110 0x00740000 // LM3S6110
  277. #define SYSCTL_DID1_PRTNO_6420 0x00A50000 // LM3S6420
  278. #define SYSCTL_DID1_PRTNO_6422 0x00820000 // LM3S6422
  279. #define SYSCTL_DID1_PRTNO_6432 0x00750000 // LM3S6432
  280. #define SYSCTL_DID1_PRTNO_6537 0x00760000 // LM3S6537
  281. #define SYSCTL_DID1_PRTNO_6610 0x00710000 // LM3S6610
  282. #define SYSCTL_DID1_PRTNO_6611 0x00E70000 // LM3S6611
  283. #define SYSCTL_DID1_PRTNO_6618 0x00E60000 // LM3S6618
  284. #define SYSCTL_DID1_PRTNO_6633 0x00830000 // LM3S6633
  285. #define SYSCTL_DID1_PRTNO_6637 0x008B0000 // LM3S6637
  286. #define SYSCTL_DID1_PRTNO_6730 0x00A30000 // LM3S6730
  287. #define SYSCTL_DID1_PRTNO_6753 0x00770000 // LM3S6753
  288. #define SYSCTL_DID1_PRTNO_6911 0x00E90000 // LM3S6911
  289. #define SYSCTL_DID1_PRTNO_6918 0x00E80000 // LM3S6918
  290. #define SYSCTL_DID1_PRTNO_6938 0x00890000 // LM3S6938
  291. #define SYSCTL_DID1_PRTNO_6950 0x00720000 // LM3S6950
  292. #define SYSCTL_DID1_PRTNO_6952 0x00780000 // LM3S6952
  293. #define SYSCTL_DID1_PRTNO_6965 0x00730000 // LM3S6965
  294. #define SYSCTL_DID1_PRTNO_8530 0x00640000 // LM3S8530
  295. #define SYSCTL_DID1_PRTNO_8538 0x008E0000 // LM3S8538
  296. #define SYSCTL_DID1_PRTNO_8630 0x00610000 // LM3S8630
  297. #define SYSCTL_DID1_PRTNO_8730 0x00630000 // LM3S8730
  298. #define SYSCTL_DID1_PRTNO_8733 0x008D0000 // LM3S8733
  299. #define SYSCTL_DID1_PRTNO_8738 0x00860000 // LM3S8738
  300. #define SYSCTL_DID1_PRTNO_8930 0x00650000 // LM3S8930
  301. #define SYSCTL_DID1_PRTNO_8933 0x008C0000 // LM3S8933
  302. #define SYSCTL_DID1_PRTNO_8938 0x00880000 // LM3S8938
  303. #define SYSCTL_DID1_PRTNO_8962 0x00A60000 // LM3S8962
  304. #define SYSCTL_DID1_PRTNO_8970 0x00620000 // LM3S8970
  305. #define SYSCTL_DID1_PRTNO_8971 0x00D70000 // LM3S8971
  306. #define SYSCTL_DID1_PRTNO_9790 0x00670000 // LM3S9790
  307. #define SYSCTL_DID1_PRTNO_9792 0x006B0000 // LM3S9792
  308. #define SYSCTL_DID1_PRTNO_9997 0x00200000 // LM3S9997
  309. #define SYSCTL_DID1_PRTNO_9B90 0x00660000 // LM3S9B90
  310. #define SYSCTL_DID1_PRTNO_9B92 0x006A0000 // LM3S9B92
  311. #define SYSCTL_DID1_PRTNO_9B95 0x006E0000 // LM3S9B95
  312. #define SYSCTL_DID1_PRTNO_9B96 0x006F0000 // LM3S9B96
  313. #define SYSCTL_DID1_PRTNO_9L97 0x00180000 // LM3S9L97
  314. #define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
  315. #define SYSCTL_DID1_PINCNT_28 0x00000000 // 28 pin package
  316. #define SYSCTL_DID1_PINCNT_48 0x00002000 // 48 pin package
  317. #define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin package
  318. #define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin package
  319. #define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
  320. #define SYSCTL_DID1_TEMP_C 0x00000000 // Commercial temperature range (0C
  321. // to 70C)
  322. #define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
  323. // (-40C to 85C)
  324. #define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range (-40C
  325. // to 105C)
  326. #define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
  327. #define SYSCTL_DID1_PKG_SOIC 0x00000000 // SOIC package
  328. #define SYSCTL_DID1_PKG_QFP 0x00000008 // LQFP package
  329. #define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
  330. #define SYSCTL_DID1_PKG_QFN 0x00000018 // QFN package
  331. #define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
  332. #define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
  333. #define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
  334. #define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
  335. #define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
  336. #define SYSCTL_DID1_PRTNO_S 16 // Part number shift
  337. //*****************************************************************************
  338. //
  339. // The following are defines for the bit fields in the SYSCTL_DC0 register.
  340. //
  341. //*****************************************************************************
  342. #define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000 // SRAM Size
  343. #define SYSCTL_DC0_SRAMSZ_2KB 0x00070000 // 2 KB of SRAM
  344. #define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000 // 4 KB of SRAM
  345. #define SYSCTL_DC0_SRAMSZ_6KB 0x00170000 // 6 KB of SRAM
  346. #define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000 // 8 KB of SRAM
  347. #define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000 // 12 KB of SRAM
  348. #define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000 // 16 KB of SRAM
  349. #define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000 // 20 KB of SRAM
  350. #define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000 // 24 KB of SRAM
  351. #define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000 // 32 KB of SRAM
  352. #define SYSCTL_DC0_SRAMSZ_48KB 0x00BF0000 // 48 KB of SRAM
  353. #define SYSCTL_DC0_SRAMSZ_64KB 0x00FF0000 // 64 KB of SRAM
  354. #define SYSCTL_DC0_SRAMSZ_96KB 0x017F0000 // 96 KB of SRAM
  355. #define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF // Flash Size
  356. #define SYSCTL_DC0_FLASHSZ_8KB 0x00000003 // 8 KB of Flash
  357. #define SYSCTL_DC0_FLASHSZ_16KB 0x00000007 // 16 KB of Flash
  358. #define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F // 32 KB of Flash
  359. #define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F // 64 KB of Flash
  360. #define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F // 96 KB of Flash
  361. #define SYSCTL_DC0_FLASHSZ_128K 0x0000003F // 128 KB of Flash
  362. #define SYSCTL_DC0_FLASHSZ_256K 0x0000007F // 256 KB of Flash
  363. #define SYSCTL_DC0_SRAMSZ_S 16 // SRAM size shift
  364. #define SYSCTL_DC0_FLASHSZ_S 0 // Flash size shift
  365. //*****************************************************************************
  366. //
  367. // The following are defines for the bit fields in the SYSCTL_DC1 register.
  368. //
  369. //*****************************************************************************
  370. #define SYSCTL_DC1_WDT1 0x10000000 // Watchdog Timer1 Present
  371. #define SYSCTL_DC1_CAN2 0x04000000 // CAN Module 2 Present
  372. #define SYSCTL_DC1_CAN1 0x02000000 // CAN Module 1 Present
  373. #define SYSCTL_DC1_CAN0 0x01000000 // CAN Module 0 Present
  374. #define SYSCTL_DC1_PWM 0x00100000 // PWM Module Present
  375. #define SYSCTL_DC1_ADC1 0x00020000 // ADC Module 1 Present
  376. #define SYSCTL_DC1_ADC0 0x00010000 // ADC Module 0 Present
  377. #define SYSCTL_DC1_MINSYSDIV_M 0x0000F000 // System Clock Divider
  378. #define SYSCTL_DC1_MINSYSDIV_100 \
  379. 0x00001000 // Divide VCO (400MHZ) by 5 minimum
  380. #define SYSCTL_DC1_MINSYSDIV_66 0x00002000 // Divide VCO (400MHZ) by 2*2 + 2 =
  381. // 6 minimum
  382. #define SYSCTL_DC1_MINSYSDIV_50 0x00003000 // Specifies a 50-MHz CPU clock
  383. // with a PLL divider of 4
  384. #define SYSCTL_DC1_MINSYSDIV_25 0x00007000 // Specifies a 25-MHz clock with a
  385. // PLL divider of 8
  386. #define SYSCTL_DC1_MINSYSDIV_20 0x00009000 // Specifies a 20-MHz clock with a
  387. // PLL divider of 10
  388. #define SYSCTL_DC1_ADCSPD_M 0x00000F00 // Max ADC Speed
  389. #define SYSCTL_DC1_ADCSPD_125K 0x00000000 // 125Ksps ADC
  390. #define SYSCTL_DC1_ADCSPD_250K 0x00000100 // 250K samples/second
  391. #define SYSCTL_DC1_ADCSPD_500K 0x00000200 // 500K samples/second
  392. #define SYSCTL_DC1_ADCSPD_1M 0x00000300 // 1M samples/second
  393. #define SYSCTL_DC1_ADC1SPD_M 0x00000C00 // Max ADC1 Speed
  394. #define SYSCTL_DC1_ADC1SPD_1M 0x00000C00 // 1M samples/second
  395. #define SYSCTL_DC1_ADC0SPD_M 0x00000300 // Max ADC0 Speed
  396. #define SYSCTL_DC1_ADC0SPD_1M 0x00000300 // 1M samples/second
  397. #define SYSCTL_DC1_MPU 0x00000080 // MPU Present
  398. #define SYSCTL_DC1_HIB 0x00000040 // Hibernation Module Present
  399. #define SYSCTL_DC1_TEMP 0x00000020 // Temp Sensor Present
  400. #define SYSCTL_DC1_PLL 0x00000010 // PLL Present
  401. #define SYSCTL_DC1_WDT0 0x00000008 // Watchdog Timer 0 Present
  402. #define SYSCTL_DC1_SWO 0x00000004 // SWO Trace Port Present
  403. #define SYSCTL_DC1_SWD 0x00000002 // SWD Present
  404. #define SYSCTL_DC1_JTAG 0x00000001 // JTAG Present
  405. //*****************************************************************************
  406. //
  407. // The following are defines for the bit fields in the SYSCTL_DC2 register.
  408. //
  409. //*****************************************************************************
  410. #define SYSCTL_DC2_EPI0 0x40000000 // EPI Module 0 Present
  411. #define SYSCTL_DC2_I2S0 0x10000000 // I2S Module 0 Present
  412. #define SYSCTL_DC2_COMP2 0x04000000 // Analog Comparator 2 Present
  413. #define SYSCTL_DC2_COMP1 0x02000000 // Analog Comparator 1 Present
  414. #define SYSCTL_DC2_COMP0 0x01000000 // Analog Comparator 0 Present
  415. #define SYSCTL_DC2_TIMER3 0x00080000 // Timer Module 3 Present
  416. #define SYSCTL_DC2_TIMER2 0x00040000 // Timer Module 2 Present
  417. #define SYSCTL_DC2_TIMER1 0x00020000 // Timer Module 1 Present
  418. #define SYSCTL_DC2_TIMER0 0x00010000 // Timer Module 0 Present
  419. #define SYSCTL_DC2_I2C1 0x00004000 // I2C Module 1 Present
  420. #define SYSCTL_DC2_I2C0 0x00001000 // I2C Module 0 Present
  421. #define SYSCTL_DC2_QEI1 0x00000200 // QEI Module 1 Present
  422. #define SYSCTL_DC2_QEI0 0x00000100 // QEI Module 0 Present
  423. #define SYSCTL_DC2_SSI1 0x00000020 // SSI Module 1 Present
  424. #define SYSCTL_DC2_SSI0 0x00000010 // SSI Module 0 Present
  425. #define SYSCTL_DC2_UART2 0x00000004 // UART Module 2 Present
  426. #define SYSCTL_DC2_UART1 0x00000002 // UART Module 1 Present
  427. #define SYSCTL_DC2_UART0 0x00000001 // UART Module 0 Present
  428. //*****************************************************************************
  429. //
  430. // The following are defines for the bit fields in the SYSCTL_DC3 register.
  431. //
  432. //*****************************************************************************
  433. #define SYSCTL_DC3_32KHZ 0x80000000 // 32KHz Input Clock Available
  434. #define SYSCTL_DC3_CCP5 0x20000000 // CCP5 Pin Present
  435. #define SYSCTL_DC3_CCP4 0x10000000 // CCP4 Pin Present
  436. #define SYSCTL_DC3_CCP3 0x08000000 // CCP3 Pin Present
  437. #define SYSCTL_DC3_CCP2 0x04000000 // CCP2 Pin Present
  438. #define SYSCTL_DC3_CCP1 0x02000000 // CCP1 Pin Present
  439. #define SYSCTL_DC3_CCP0 0x01000000 // CCP0 Pin Present
  440. #define SYSCTL_DC3_ADC0AIN7 0x00800000 // ADC Module 0 AIN7 Pin Present
  441. #define SYSCTL_DC3_ADC0AIN6 0x00400000 // ADC Module 0 AIN6 Pin Present
  442. #define SYSCTL_DC3_ADC0AIN5 0x00200000 // ADC Module 0 AIN5 Pin Present
  443. #define SYSCTL_DC3_ADC0AIN4 0x00100000 // ADC Module 0 AIN4 Pin Present
  444. #define SYSCTL_DC3_ADC0AIN3 0x00080000 // ADC Module 0 AIN3 Pin Present
  445. #define SYSCTL_DC3_ADC0AIN2 0x00040000 // ADC Module 0 AIN2 Pin Present
  446. #define SYSCTL_DC3_ADC0AIN1 0x00020000 // ADC Module 0 AIN1 Pin Present
  447. #define SYSCTL_DC3_ADC0AIN0 0x00010000 // ADC Module 0 AIN0 Pin Present
  448. #define SYSCTL_DC3_PWMFAULT 0x00008000 // PWM Fault Pin Present
  449. #define SYSCTL_DC3_C2O 0x00004000 // C2o Pin Present
  450. #define SYSCTL_DC3_C2PLUS 0x00002000 // C2+ Pin Present
  451. #define SYSCTL_DC3_C2MINUS 0x00001000 // C2- Pin Present
  452. #define SYSCTL_DC3_C1O 0x00000800 // C1o Pin Present
  453. #define SYSCTL_DC3_C1PLUS 0x00000400 // C1+ Pin Present
  454. #define SYSCTL_DC3_C1MINUS 0x00000200 // C1- Pin Present
  455. #define SYSCTL_DC3_C0O 0x00000100 // C0o Pin Present
  456. #define SYSCTL_DC3_C0PLUS 0x00000080 // C0+ Pin Present
  457. #define SYSCTL_DC3_C0MINUS 0x00000040 // C0- Pin Present
  458. #define SYSCTL_DC3_PWM5 0x00000020 // PWM5 Pin Present
  459. #define SYSCTL_DC3_PWM4 0x00000010 // PWM4 Pin Present
  460. #define SYSCTL_DC3_PWM3 0x00000008 // PWM3 Pin Present
  461. #define SYSCTL_DC3_PWM2 0x00000004 // PWM2 Pin Present
  462. #define SYSCTL_DC3_PWM1 0x00000002 // PWM1 Pin Present
  463. #define SYSCTL_DC3_PWM0 0x00000001 // PWM0 Pin Present
  464. //*****************************************************************************
  465. //
  466. // The following are defines for the bit fields in the SYSCTL_DC4 register.
  467. //
  468. //*****************************************************************************
  469. #define SYSCTL_DC4_ETH 0x50000000 // Ethernet present
  470. #define SYSCTL_DC4_EPHY0 0x40000000 // Ethernet PHY Layer 0 Present
  471. #define SYSCTL_DC4_EMAC0 0x10000000 // Ethernet MAC Layer 0 Present
  472. #define SYSCTL_DC4_E1588 0x01000000 // 1588 Capable
  473. #define SYSCTL_DC4_PICAL 0x00040000 // PIOSC Calibrate
  474. #define SYSCTL_DC4_CCP7 0x00008000 // CCP7 Pin Present
  475. #define SYSCTL_DC4_CCP6 0x00004000 // CCP6 Pin Present
  476. #define SYSCTL_DC4_UDMA 0x00002000 // Micro-DMA Module Present
  477. #define SYSCTL_DC4_ROM 0x00001000 // Internal Code ROM Present
  478. #define SYSCTL_DC4_GPIOJ 0x00000100 // GPIO Port J Present
  479. #define SYSCTL_DC4_GPIOH 0x00000080 // GPIO Port H Present
  480. #define SYSCTL_DC4_GPIOG 0x00000040 // GPIO Port G Present
  481. #define SYSCTL_DC4_GPIOF 0x00000020 // GPIO Port F Present
  482. #define SYSCTL_DC4_GPIOE 0x00000010 // GPIO Port E Present
  483. #define SYSCTL_DC4_GPIOD 0x00000008 // GPIO Port D Present
  484. #define SYSCTL_DC4_GPIOC 0x00000004 // GPIO Port C Present
  485. #define SYSCTL_DC4_GPIOB 0x00000002 // GPIO Port B Present
  486. #define SYSCTL_DC4_GPIOA 0x00000001 // GPIO Port A Present
  487. //*****************************************************************************
  488. //
  489. // The following are defines for the bit fields in the SYSCTL_DC5 register.
  490. //
  491. //*****************************************************************************
  492. #define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present
  493. #define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present
  494. #define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present
  495. #define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present
  496. #define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault Active
  497. #define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC Active
  498. #define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present
  499. #define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present
  500. #define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present
  501. #define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present
  502. #define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present
  503. #define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present
  504. #define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present
  505. #define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present
  506. //*****************************************************************************
  507. //
  508. // The following are defines for the bit fields in the SYSCTL_DC6 register.
  509. //
  510. //*****************************************************************************
  511. #define SYSCTL_DC6_USB0PHY 0x00000010 // USB Module 0 PHY Present
  512. #define SYSCTL_DC6_USB0_M 0x00000003 // USB Module 0 Present
  513. #define SYSCTL_DC6_USB0_DEV 0x00000001 // USB0 is Device Only
  514. #define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is Device or Host
  515. #define SYSCTL_DC6_USB0_OTG 0x00000003 // USB0 is OTG
  516. //*****************************************************************************
  517. //
  518. // The following are defines for the bit fields in the SYSCTL_DC7 register.
  519. //
  520. //*****************************************************************************
  521. #define SYSCTL_DC7_SW 0x40000000 // Software transfer on uDMA Ch30
  522. #define SYSCTL_DC7_DMACH30 0x40000000 // SW
  523. #define SYSCTL_DC7_DMACH29 0x20000000 // I2S0_TX / CAN1_TX
  524. #define SYSCTL_DC7_DMACH28 0x10000000 // I2S0_RX / CAN1_RX
  525. #define SYSCTL_DC7_DMACH27 0x08000000 // CAN1_TX / ADC1_SS3
  526. #define SYSCTL_DC7_DMACH26 0x04000000 // CAN1_RX / ADC1_SS2
  527. #define SYSCTL_DC7_DMACH25 0x02000000 // SSI1_TX / ADC1_SS1
  528. #define SYSCTL_DC7_SSI1_TX 0x02000000 // SSI1 TX on uDMA Ch25
  529. #define SYSCTL_DC7_SSI1_RX 0x01000000 // SSI1 RX on uDMA Ch24
  530. #define SYSCTL_DC7_DMACH24 0x01000000 // SSI1_RX / ADC1_SS0
  531. #define SYSCTL_DC7_UART1_TX 0x00800000 // UART1 TX on uDMA Ch23
  532. #define SYSCTL_DC7_DMACH23 0x00800000 // UART1_TX / CAN2_TX
  533. #define SYSCTL_DC7_DMACH22 0x00400000 // UART1_RX / CAN2_RX
  534. #define SYSCTL_DC7_UART1_RX 0x00400000 // UART1 RX on uDMA Ch22
  535. #define SYSCTL_DC7_DMACH21 0x00200000 // Timer1B / EPI0_WFIFO
  536. #define SYSCTL_DC7_DMACH20 0x00100000 // Timer1A / EPI0_NBRFIFO
  537. #define SYSCTL_DC7_DMACH19 0x00080000 // Timer0B / Timer1B
  538. #define SYSCTL_DC7_DMACH18 0x00040000 // Timer0A / Timer1A
  539. #define SYSCTL_DC7_DMACH17 0x00020000 // ADC0_SS3
  540. #define SYSCTL_DC7_DMACH16 0x00010000 // ADC0_SS2
  541. #define SYSCTL_DC7_DMACH15 0x00008000 // ADC0_SS1 / Timer2B
  542. #define SYSCTL_DC7_DMACH14 0x00004000 // ADC0_SS0 / Timer2A
  543. #define SYSCTL_DC7_DMACH13 0x00002000 // CAN0_TX / UART2_TX
  544. #define SYSCTL_DC7_DMACH12 0x00001000 // CAN0_RX / UART2_RX
  545. #define SYSCTL_DC7_SSI0_TX 0x00000800 // SSI0 TX on uDMA Ch11
  546. #define SYSCTL_DC7_DMACH11 0x00000800 // SSI0_TX / SSI1_TX
  547. #define SYSCTL_DC7_SSI0_RX 0x00000400 // SSI0 RX on uDMA Ch10
  548. #define SYSCTL_DC7_DMACH10 0x00000400 // SSI0_RX / SSI1_RX
  549. #define SYSCTL_DC7_UART0_TX 0x00000200 // UART0 TX on uDMA Ch9
  550. #define SYSCTL_DC7_DMACH9 0x00000200 // UART0_TX / UART1_TX
  551. #define SYSCTL_DC7_DMACH8 0x00000100 // UART0_RX / UART1_RX
  552. #define SYSCTL_DC7_UART0_RX 0x00000100 // UART0 RX on uDMA Ch8
  553. #define SYSCTL_DC7_DMACH7 0x00000080 // ETH_TX / Timer2B
  554. #define SYSCTL_DC7_DMACH6 0x00000040 // ETH_RX / Timer2A
  555. #define SYSCTL_DC7_DMACH5 0x00000020 // USB_EP3_TX / Timer2B
  556. #define SYSCTL_DC7_USB_EP3_TX 0x00000020 // USB EP3 TX on uDMA Ch5
  557. #define SYSCTL_DC7_USB_EP3_RX 0x00000010 // USB EP3 RX on uDMA Ch4
  558. #define SYSCTL_DC7_DMACH4 0x00000010 // USB_EP3_RX / Timer2A
  559. #define SYSCTL_DC7_USB_EP2_TX 0x00000008 // USB EP2 TX on uDMA Ch3
  560. #define SYSCTL_DC7_DMACH3 0x00000008 // USB_EP2_TX / Timer3B
  561. #define SYSCTL_DC7_USB_EP2_RX 0x00000004 // USB EP2 RX on uDMA Ch2
  562. #define SYSCTL_DC7_DMACH2 0x00000004 // USB_EP2_RX / Timer3A
  563. #define SYSCTL_DC7_USB_EP1_TX 0x00000002 // USB EP1 TX on uDMA Ch1
  564. #define SYSCTL_DC7_DMACH1 0x00000002 // USB_EP1_TX / UART2_TX
  565. #define SYSCTL_DC7_DMACH0 0x00000001 // USB_EP1_RX / UART2_RX
  566. #define SYSCTL_DC7_USB_EP1_RX 0x00000001 // USB EP1 RX on uDMA Ch0
  567. //*****************************************************************************
  568. //
  569. // The following are defines for the bit fields in the SYSCTL_DC8 register.
  570. //
  571. //*****************************************************************************
  572. #define SYSCTL_DC8_ADC1AIN15 0x80000000 // ADC Module 1 AIN15 Pin Present
  573. #define SYSCTL_DC8_ADC1AIN14 0x40000000 // ADC Module 1 AIN14 Pin Present
  574. #define SYSCTL_DC8_ADC1AIN13 0x20000000 // ADC Module 1 AIN13 Pin Present
  575. #define SYSCTL_DC8_ADC1AIN12 0x10000000 // ADC Module 1 AIN12 Pin Present
  576. #define SYSCTL_DC8_ADC1AIN11 0x08000000 // ADC Module 1 AIN11 Pin Present
  577. #define SYSCTL_DC8_ADC1AIN10 0x04000000 // ADC Module 1 AIN10 Pin Present
  578. #define SYSCTL_DC8_ADC1AIN9 0x02000000 // ADC Module 1 AIN9 Pin Present
  579. #define SYSCTL_DC8_ADC1AIN8 0x01000000 // ADC Module 1 AIN8 Pin Present
  580. #define SYSCTL_DC8_ADC1AIN7 0x00800000 // ADC Module 1 AIN7 Pin Present
  581. #define SYSCTL_DC8_ADC1AIN6 0x00400000 // ADC Module 1 AIN6 Pin Present
  582. #define SYSCTL_DC8_ADC1AIN5 0x00200000 // ADC Module 1 AIN5 Pin Present
  583. #define SYSCTL_DC8_ADC1AIN4 0x00100000 // ADC Module 1 AIN4 Pin Present
  584. #define SYSCTL_DC8_ADC1AIN3 0x00080000 // ADC Module 1 AIN3 Pin Present
  585. #define SYSCTL_DC8_ADC1AIN2 0x00040000 // ADC Module 1 AIN2 Pin Present
  586. #define SYSCTL_DC8_ADC1AIN1 0x00020000 // ADC Module 1 AIN1 Pin Present
  587. #define SYSCTL_DC8_ADC1AIN0 0x00010000 // ADC Module 1 AIN0 Pin Present
  588. #define SYSCTL_DC8_ADC0AIN15 0x00008000 // ADC Module 0 AIN15 Pin Present
  589. #define SYSCTL_DC8_ADC0AIN14 0x00004000 // ADC Module 0 AIN14 Pin Present
  590. #define SYSCTL_DC8_ADC0AIN13 0x00002000 // ADC Module 0 AIN13 Pin Present
  591. #define SYSCTL_DC8_ADC0AIN12 0x00001000 // ADC Module 0 AIN12 Pin Present
  592. #define SYSCTL_DC8_ADC0AIN11 0x00000800 // ADC Module 0 AIN11 Pin Present
  593. #define SYSCTL_DC8_ADC0AIN10 0x00000400 // ADC Module 0 AIN10 Pin Present
  594. #define SYSCTL_DC8_ADC0AIN9 0x00000200 // ADC Module 0 AIN9 Pin Present
  595. #define SYSCTL_DC8_ADC0AIN8 0x00000100 // ADC Module 0 AIN8 Pin Present
  596. #define SYSCTL_DC8_ADC0AIN7 0x00000080 // ADC Module 0 AIN7 Pin Present
  597. #define SYSCTL_DC8_ADC0AIN6 0x00000040 // ADC Module 0 AIN6 Pin Present
  598. #define SYSCTL_DC8_ADC0AIN5 0x00000020 // ADC Module 0 AIN5 Pin Present
  599. #define SYSCTL_DC8_ADC0AIN4 0x00000010 // ADC Module 0 AIN4 Pin Present
  600. #define SYSCTL_DC8_ADC0AIN3 0x00000008 // ADC Module 0 AIN3 Pin Present
  601. #define SYSCTL_DC8_ADC0AIN2 0x00000004 // ADC Module 0 AIN2 Pin Present
  602. #define SYSCTL_DC8_ADC0AIN1 0x00000002 // ADC Module 0 AIN1 Pin Present
  603. #define SYSCTL_DC8_ADC0AIN0 0x00000001 // ADC Module 0 AIN0 Pin Present
  604. //*****************************************************************************
  605. //
  606. // The following are defines for the bit fields in the SYSCTL_PBORCTL register.
  607. //
  608. //*****************************************************************************
  609. #define SYSCTL_PBORCTL_BORTIM_M 0x0000FFFC // BOR Time Delay
  610. #define SYSCTL_PBORCTL_BORIOR 0x00000002 // BOR Interrupt or Reset
  611. #define SYSCTL_PBORCTL_BORWT 0x00000001 // BOR Wait and Check for Noise
  612. #define SYSCTL_PBORCTL_BORTIM_S 2
  613. //*****************************************************************************
  614. //
  615. // The following are defines for the bit fields in the SYSCTL_LDOPCTL register.
  616. //
  617. //*****************************************************************************
  618. #define SYSCTL_LDOPCTL_M 0x0000003F // LDO Output Voltage
  619. #define SYSCTL_LDOPCTL_2_50V 0x00000000 // 2.50
  620. #define SYSCTL_LDOPCTL_2_45V 0x00000001 // 2.45
  621. #define SYSCTL_LDOPCTL_2_40V 0x00000002 // 2.40
  622. #define SYSCTL_LDOPCTL_2_35V 0x00000003 // 2.35
  623. #define SYSCTL_LDOPCTL_2_30V 0x00000004 // 2.30
  624. #define SYSCTL_LDOPCTL_2_25V 0x00000005 // 2.25
  625. #define SYSCTL_LDOPCTL_2_75V 0x0000001B // 2.75
  626. #define SYSCTL_LDOPCTL_2_70V 0x0000001C // 2.70
  627. #define SYSCTL_LDOPCTL_2_65V 0x0000001D // 2.65
  628. #define SYSCTL_LDOPCTL_2_60V 0x0000001E // 2.60
  629. #define SYSCTL_LDOPCTL_2_55V 0x0000001F // 2.55
  630. //*****************************************************************************
  631. //
  632. // The following are defines for the bit fields in the SYSCTL_SRCR0 register.
  633. //
  634. //*****************************************************************************
  635. #define SYSCTL_SRCR0_WDT1 0x10000000 // WDT1 Reset Control
  636. #define SYSCTL_SRCR0_CAN2 0x04000000 // CAN2 Reset Control
  637. #define SYSCTL_SRCR0_CAN1 0x02000000 // CAN1 Reset Control
  638. #define SYSCTL_SRCR0_CAN0 0x01000000 // CAN0 Reset Control
  639. #define SYSCTL_SRCR0_PWM 0x00100000 // PWM Reset Control
  640. #define SYSCTL_SRCR0_ADC1 0x00020000 // ADC1 Reset Control
  641. #define SYSCTL_SRCR0_ADC0 0x00010000 // ADC0 Reset Control
  642. #define SYSCTL_SRCR0_HIB 0x00000040 // HIB Reset Control
  643. #define SYSCTL_SRCR0_WDT0 0x00000008 // WDT0 Reset Control
  644. //*****************************************************************************
  645. //
  646. // The following are defines for the bit fields in the SYSCTL_SRCR1 register.
  647. //
  648. //*****************************************************************************
  649. #define SYSCTL_SRCR1_EPI0 0x40000000 // EPI0 Reset Control
  650. #define SYSCTL_SRCR1_I2S0 0x10000000 // I2S0 Reset Control
  651. #define SYSCTL_SRCR1_COMP2 0x04000000 // Analog Comp 2 Reset Control
  652. #define SYSCTL_SRCR1_COMP1 0x02000000 // Analog Comp 1 Reset Control
  653. #define SYSCTL_SRCR1_COMP0 0x01000000 // Analog Comp 0 Reset Control
  654. #define SYSCTL_SRCR1_TIMER3 0x00080000 // Timer 3 Reset Control
  655. #define SYSCTL_SRCR1_TIMER2 0x00040000 // Timer 2 Reset Control
  656. #define SYSCTL_SRCR1_TIMER1 0x00020000 // Timer 1 Reset Control
  657. #define SYSCTL_SRCR1_TIMER0 0x00010000 // Timer 0 Reset Control
  658. #define SYSCTL_SRCR1_I2C1 0x00004000 // I2C1 Reset Control
  659. #define SYSCTL_SRCR1_I2C0 0x00001000 // I2C0 Reset Control
  660. #define SYSCTL_SRCR1_QEI1 0x00000200 // QEI1 Reset Control
  661. #define SYSCTL_SRCR1_QEI0 0x00000100 // QEI0 Reset Control
  662. #define SYSCTL_SRCR1_SSI1 0x00000020 // SSI1 Reset Control
  663. #define SYSCTL_SRCR1_SSI0 0x00000010 // SSI0 Reset Control
  664. #define SYSCTL_SRCR1_UART2 0x00000004 // UART2 Reset Control
  665. #define SYSCTL_SRCR1_UART1 0x00000002 // UART1 Reset Control
  666. #define SYSCTL_SRCR1_UART0 0x00000001 // UART0 Reset Control
  667. //*****************************************************************************
  668. //
  669. // The following are defines for the bit fields in the SYSCTL_SRCR2 register.
  670. //
  671. //*****************************************************************************
  672. #define SYSCTL_SRCR2_EPHY0 0x40000000 // PHY0 Reset Control
  673. #define SYSCTL_SRCR2_EMAC0 0x10000000 // MAC0 Reset Control
  674. #define SYSCTL_SRCR2_USB0 0x00010000 // USB0 Reset Control
  675. #define SYSCTL_SRCR2_UDMA 0x00002000 // Micro-DMA Reset Control
  676. #define SYSCTL_SRCR2_GPIOJ 0x00000100 // Port J Reset Control
  677. #define SYSCTL_SRCR2_GPIOH 0x00000080 // Port H Reset Control
  678. #define SYSCTL_SRCR2_GPIOG 0x00000040 // Port G Reset Control
  679. #define SYSCTL_SRCR2_GPIOF 0x00000020 // Port F Reset Control
  680. #define SYSCTL_SRCR2_GPIOE 0x00000010 // Port E Reset Control
  681. #define SYSCTL_SRCR2_GPIOD 0x00000008 // Port D Reset Control
  682. #define SYSCTL_SRCR2_GPIOC 0x00000004 // Port C Reset Control
  683. #define SYSCTL_SRCR2_GPIOB 0x00000002 // Port B Reset Control
  684. #define SYSCTL_SRCR2_GPIOA 0x00000001 // Port A Reset Control
  685. //*****************************************************************************
  686. //
  687. // The following are defines for the bit fields in the SYSCTL_RIS register.
  688. //
  689. //*****************************************************************************
  690. #define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
  691. // Status
  692. #define SYSCTL_RIS_USBPLLLRIS 0x00000080 // USB PLL Lock Raw Interrupt
  693. // Status
  694. #define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
  695. #define SYSCTL_RIS_CLRIS 0x00000020 // Current Limit Raw Interrupt
  696. // Status
  697. #define SYSCTL_RIS_IOFRIS 0x00000010 // Internal Oscillator Fault Raw
  698. // Interrupt Status
  699. #define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Fault Raw
  700. // Interrupt Status
  701. #define SYSCTL_RIS_LDORIS 0x00000004 // LDO Power Unregulated Raw
  702. // Interrupt Status
  703. #define SYSCTL_RIS_BORRIS 0x00000002 // Brown-Out Reset Raw Interrupt
  704. // Status
  705. #define SYSCTL_RIS_PLLFRIS 0x00000001 // PLL Fault Raw Interrupt Status
  706. //*****************************************************************************
  707. //
  708. // The following are defines for the bit fields in the SYSCTL_IMC register.
  709. //
  710. //*****************************************************************************
  711. #define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
  712. #define SYSCTL_IMC_USBPLLLIM 0x00000080 // USB PLL Lock Interrupt Mask
  713. #define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
  714. #define SYSCTL_IMC_CLIM 0x00000020 // Current Limit Interrupt Mask
  715. #define SYSCTL_IMC_IOFIM 0x00000010 // Internal Oscillator Fault
  716. // Interrupt Mask
  717. #define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Fault Interrupt
  718. // Mask
  719. #define SYSCTL_IMC_LDOIM 0x00000004 // LDO Power Unregulated Interrupt
  720. // Mask
  721. #define SYSCTL_IMC_BORIM 0x00000002 // Brown-Out Reset Interrupt Mask
  722. #define SYSCTL_IMC_PLLFIM 0x00000001 // PLL Fault Interrupt Mask
  723. //*****************************************************************************
  724. //
  725. // The following are defines for the bit fields in the SYSCTL_MISC register.
  726. //
  727. //*****************************************************************************
  728. #define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
  729. // Status
  730. #define SYSCTL_MISC_USBPLLLMIS 0x00000080 // USB PLL Lock Masked Interrupt
  731. // Status
  732. #define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
  733. #define SYSCTL_MISC_CLMIS 0x00000020 // Current Limit Masked Interrupt
  734. // Status
  735. #define SYSCTL_MISC_IOFMIS 0x00000010 // Internal Oscillator Fault Masked
  736. // Interrupt Status
  737. #define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Fault Masked
  738. // Interrupt Status
  739. #define SYSCTL_MISC_LDOMIS 0x00000004 // LDO Power Unregulated Masked
  740. // Interrupt Status
  741. #define SYSCTL_MISC_BORMIS 0x00000002 // BOR Masked Interrupt Status
  742. //*****************************************************************************
  743. //
  744. // The following are defines for the bit fields in the SYSCTL_RESC register.
  745. //
  746. //*****************************************************************************
  747. #define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
  748. #define SYSCTL_RESC_LDO 0x00000020 // LDO Reset
  749. #define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
  750. #define SYSCTL_RESC_SW 0x00000010 // Software Reset
  751. #define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
  752. #define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
  753. #define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
  754. #define SYSCTL_RESC_EXT 0x00000001 // External Reset
  755. //*****************************************************************************
  756. //
  757. // The following are defines for the bit fields in the SYSCTL_RCC register.
  758. //
  759. //*****************************************************************************
  760. #define SYSCTL_RCC_ACG 0x08000000 // Auto Clock Gating
  761. #define SYSCTL_RCC_SYSDIV_M 0x07800000 // System Clock Divisor
  762. #define SYSCTL_RCC_SYSDIV_2 0x00800000 // System clock /2
  763. #define SYSCTL_RCC_SYSDIV_3 0x01000000 // System clock /3
  764. #define SYSCTL_RCC_SYSDIV_4 0x01800000 // System clock /4
  765. #define SYSCTL_RCC_SYSDIV_5 0x02000000 // System clock /5
  766. #define SYSCTL_RCC_SYSDIV_6 0x02800000 // System clock /6
  767. #define SYSCTL_RCC_SYSDIV_7 0x03000000 // System clock /7
  768. #define SYSCTL_RCC_SYSDIV_8 0x03800000 // System clock /8
  769. #define SYSCTL_RCC_SYSDIV_9 0x04000000 // System clock /9
  770. #define SYSCTL_RCC_SYSDIV_10 0x04800000 // System clock /10
  771. #define SYSCTL_RCC_SYSDIV_11 0x05000000 // System clock /11
  772. #define SYSCTL_RCC_SYSDIV_12 0x05800000 // System clock /12
  773. #define SYSCTL_RCC_SYSDIV_13 0x06000000 // System clock /13
  774. #define SYSCTL_RCC_SYSDIV_14 0x06800000 // System clock /14
  775. #define SYSCTL_RCC_SYSDIV_15 0x07000000 // System clock /15
  776. #define SYSCTL_RCC_SYSDIV_16 0x07800000 // System clock /16
  777. #define SYSCTL_RCC_USESYSDIV 0x00400000 // Enable System Clock Divider
  778. #define SYSCTL_RCC_USEPWMDIV 0x00100000 // Enable PWM Clock Divisor
  779. #define SYSCTL_RCC_PWMDIV_M 0x000E0000 // PWM Unit Clock Divisor
  780. #define SYSCTL_RCC_PWMDIV_2 0x00000000 // PWM clock /2
  781. #define SYSCTL_RCC_PWMDIV_4 0x00020000 // PWM clock /4
  782. #define SYSCTL_RCC_PWMDIV_8 0x00040000 // PWM clock /8
  783. #define SYSCTL_RCC_PWMDIV_16 0x00060000 // PWM clock /16
  784. #define SYSCTL_RCC_PWMDIV_32 0x00080000 // PWM clock /32
  785. #define SYSCTL_RCC_PWMDIV_64 0x000A0000 // PWM clock /64
  786. #define SYSCTL_RCC_PWRDN 0x00002000 // PLL Power Down
  787. #define SYSCTL_RCC_OEN 0x00001000 // PLL Output Enable
  788. #define SYSCTL_RCC_BYPASS 0x00000800 // PLL Bypass
  789. #define SYSCTL_RCC_XTAL_M 0x000007C0 // Crystal Value
  790. #define SYSCTL_RCC_XTAL_1MHZ 0x00000000 // 1 MHz
  791. #define SYSCTL_RCC_XTAL_1_84MHZ 0x00000040 // 1.8432 MHz
  792. #define SYSCTL_RCC_XTAL_2MHZ 0x00000080 // 2 MHz
  793. #define SYSCTL_RCC_XTAL_2_45MHZ 0x000000C0 // 2.4576 MHz
  794. #define SYSCTL_RCC_XTAL_3_57MHZ 0x00000100 // 3.579545 MHz
  795. #define SYSCTL_RCC_XTAL_3_68MHZ 0x00000140 // 3.6864 MHz
  796. #define SYSCTL_RCC_XTAL_4MHZ 0x00000180 // 4 MHz
  797. #define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0 // 4.096 MHz
  798. #define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200 // 4.9152 MHz
  799. #define SYSCTL_RCC_XTAL_5MHZ 0x00000240 // 5 MHz
  800. #define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280 // 5.12 MHz
  801. #define SYSCTL_RCC_XTAL_6MHZ 0x000002C0 // 6 MHz
  802. #define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300 // 6.144 MHz
  803. #define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340 // 7.3728 MHz
  804. #define SYSCTL_RCC_XTAL_8MHZ 0x00000380 // 8 MHz
  805. #define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0 // 8.192 MHz
  806. #define SYSCTL_RCC_XTAL_10MHZ 0x00000400 // 10 MHz
  807. #define SYSCTL_RCC_XTAL_12MHZ 0x00000440 // 12 MHz
  808. #define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480 // 12.288 MHz
  809. #define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0 // 13.56 MHz
  810. #define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500 // 14.31818 MHz
  811. #define SYSCTL_RCC_XTAL_16MHZ 0x00000540 // 16 MHz
  812. #define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580 // 16.384 MHz
  813. #define SYSCTL_RCC_PLLVER 0x00000400 // PLL Verification
  814. #define SYSCTL_RCC_OSCSRC_M 0x00000030 // Oscillator Source
  815. #define SYSCTL_RCC_OSCSRC_MAIN 0x00000000 // MOSC
  816. #define SYSCTL_RCC_OSCSRC_INT 0x00000010 // IOSC
  817. #define SYSCTL_RCC_OSCSRC_INT4 0x00000020 // IOSC/4
  818. #define SYSCTL_RCC_OSCSRC_30 0x00000030 // 30 kHz
  819. #define SYSCTL_RCC_IOSCVER 0x00000008 // Internal Oscillator Verification
  820. // Timer
  821. #define SYSCTL_RCC_MOSCVER 0x00000004 // Main Oscillator Verification
  822. // Timer
  823. #define SYSCTL_RCC_IOSCDIS 0x00000002 // Internal Oscillator Disable
  824. #define SYSCTL_RCC_MOSCDIS 0x00000001 // Main Oscillator Disable
  825. #define SYSCTL_RCC_SYSDIV_S 23
  826. #define SYSCTL_RCC_PWMDIV_S 17 // Shift to the PWMDIV field
  827. #define SYSCTL_RCC_XTAL_S 6 // Shift to the XTAL field
  828. #define SYSCTL_RCC_OSCSRC_S 4 // Shift to the OSCSRC field
  829. //*****************************************************************************
  830. //
  831. // The following are defines for the bit fields in the SYSCTL_PLLCFG register.
  832. //
  833. //*****************************************************************************
  834. #define SYSCTL_PLLCFG_OD_M 0x0000C000 // PLL OD Value
  835. #define SYSCTL_PLLCFG_OD_1 0x00000000 // Divide by 1
  836. #define SYSCTL_PLLCFG_OD_2 0x00004000 // Divide by 2
  837. #define SYSCTL_PLLCFG_OD_4 0x00008000 // Divide by 4
  838. #define SYSCTL_PLLCFG_F_M 0x00003FE0 // PLL F Value
  839. #define SYSCTL_PLLCFG_R_M 0x0000001F // PLL R Value
  840. #define SYSCTL_PLLCFG_F_S 5
  841. #define SYSCTL_PLLCFG_R_S 0
  842. //*****************************************************************************
  843. //
  844. // The following are defines for the bit fields in the SYSCTL_GPIOHSCTL
  845. // register.
  846. //
  847. //*****************************************************************************
  848. #define SYSCTL_GPIOHSCTL_PORTH 0x00000080 // Port H High-Speed
  849. #define SYSCTL_GPIOHSCTL_PORTG 0x00000040 // Port G High-Speed
  850. #define SYSCTL_GPIOHSCTL_PORTF 0x00000020 // Port F High-Speed
  851. #define SYSCTL_GPIOHSCTL_PORTE 0x00000010 // Port E High-Speed
  852. #define SYSCTL_GPIOHSCTL_PORTD 0x00000008 // Port D High-Speed
  853. #define SYSCTL_GPIOHSCTL_PORTC 0x00000004 // Port C High-Speed
  854. #define SYSCTL_GPIOHSCTL_PORTB 0x00000002 // Port B High-Speed
  855. #define SYSCTL_GPIOHSCTL_PORTA 0x00000001 // Port A High-Speed
  856. //*****************************************************************************
  857. //
  858. // The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
  859. // register.
  860. //
  861. //*****************************************************************************
  862. #define SYSCTL_GPIOHBCTL_PORTJ 0x00000100 // Port J Advanced High-Performance
  863. // Bus
  864. #define SYSCTL_GPIOHBCTL_PORTH 0x00000080 // Port H Advanced High-Performance
  865. // Bus
  866. #define SYSCTL_GPIOHBCTL_PORTG 0x00000040 // Port G Advanced High-Performance
  867. // Bus
  868. #define SYSCTL_GPIOHBCTL_PORTF 0x00000020 // Port F Advanced High-Performance
  869. // Bus
  870. #define SYSCTL_GPIOHBCTL_PORTE 0x00000010 // Port E Advanced High-Performance
  871. // Bus
  872. #define SYSCTL_GPIOHBCTL_PORTD 0x00000008 // Port D Advanced High-Performance
  873. // Bus
  874. #define SYSCTL_GPIOHBCTL_PORTC 0x00000004 // Port C Advanced High-Performance
  875. // Bus
  876. #define SYSCTL_GPIOHBCTL_PORTB 0x00000002 // Port B Advanced High-Performance
  877. // Bus
  878. #define SYSCTL_GPIOHBCTL_PORTA 0x00000001 // Port A Advanced High-Performance
  879. // Bus
  880. //*****************************************************************************
  881. //
  882. // The following are defines for the bit fields in the SYSCTL_RCC2 register.
  883. //
  884. //*****************************************************************************
  885. #define SYSCTL_RCC2_USERCC2 0x80000000 // Use RCC2
  886. #define SYSCTL_RCC2_DIV400 0x40000000 // Divide PLL as 400 MHz vs. 200
  887. // MHz
  888. #define SYSCTL_RCC2_SYSDIV2_M 0x1F800000 // System Clock Divisor 2
  889. #define SYSCTL_RCC2_SYSDIV2_2 0x00800000 // System clock /2
  890. #define SYSCTL_RCC2_SYSDIV2_3 0x01000000 // System clock /3
  891. #define SYSCTL_RCC2_SYSDIV2_4 0x01800000 // System clock /4
  892. #define SYSCTL_RCC2_SYSDIV2_5 0x02000000 // System clock /5
  893. #define SYSCTL_RCC2_SYSDIV2_6 0x02800000 // System clock /6
  894. #define SYSCTL_RCC2_SYSDIV2_7 0x03000000 // System clock /7
  895. #define SYSCTL_RCC2_SYSDIV2_8 0x03800000 // System clock /8
  896. #define SYSCTL_RCC2_SYSDIV2_9 0x04000000 // System clock /9
  897. #define SYSCTL_RCC2_SYSDIV2_10 0x04800000 // System clock /10
  898. #define SYSCTL_RCC2_SYSDIV2_11 0x05000000 // System clock /11
  899. #define SYSCTL_RCC2_SYSDIV2_12 0x05800000 // System clock /12
  900. #define SYSCTL_RCC2_SYSDIV2_13 0x06000000 // System clock /13
  901. #define SYSCTL_RCC2_SYSDIV2_14 0x06800000 // System clock /14
  902. #define SYSCTL_RCC2_SYSDIV2_15 0x07000000 // System clock /15
  903. #define SYSCTL_RCC2_SYSDIV2_16 0x07800000 // System clock /16
  904. #define SYSCTL_RCC2_SYSDIV2_17 0x08000000 // System clock /17
  905. #define SYSCTL_RCC2_SYSDIV2_18 0x08800000 // System clock /18
  906. #define SYSCTL_RCC2_SYSDIV2_19 0x09000000 // System clock /19
  907. #define SYSCTL_RCC2_SYSDIV2_20 0x09800000 // System clock /20
  908. #define SYSCTL_RCC2_SYSDIV2_21 0x0A000000 // System clock /21
  909. #define SYSCTL_RCC2_SYSDIV2_22 0x0A800000 // System clock /22
  910. #define SYSCTL_RCC2_SYSDIV2_23 0x0B000000 // System clock /23
  911. #define SYSCTL_RCC2_SYSDIV2_24 0x0B800000 // System clock /24
  912. #define SYSCTL_RCC2_SYSDIV2_25 0x0C000000 // System clock /25
  913. #define SYSCTL_RCC2_SYSDIV2_26 0x0C800000 // System clock /26
  914. #define SYSCTL_RCC2_SYSDIV2_27 0x0D000000 // System clock /27
  915. #define SYSCTL_RCC2_SYSDIV2_28 0x0D800000 // System clock /28
  916. #define SYSCTL_RCC2_SYSDIV2_29 0x0E000000 // System clock /29
  917. #define SYSCTL_RCC2_SYSDIV2_30 0x0E800000 // System clock /30
  918. #define SYSCTL_RCC2_SYSDIV2_31 0x0F000000 // System clock /31
  919. #define SYSCTL_RCC2_SYSDIV2_32 0x0F800000 // System clock /32
  920. #define SYSCTL_RCC2_SYSDIV2_33 0x10000000 // System clock /33
  921. #define SYSCTL_RCC2_SYSDIV2_34 0x10800000 // System clock /34
  922. #define SYSCTL_RCC2_SYSDIV2_35 0x11000000 // System clock /35
  923. #define SYSCTL_RCC2_SYSDIV2_36 0x11800000 // System clock /36
  924. #define SYSCTL_RCC2_SYSDIV2_37 0x12000000 // System clock /37
  925. #define SYSCTL_RCC2_SYSDIV2_38 0x12800000 // System clock /38
  926. #define SYSCTL_RCC2_SYSDIV2_39 0x13000000 // System clock /39
  927. #define SYSCTL_RCC2_SYSDIV2_40 0x13800000 // System clock /40
  928. #define SYSCTL_RCC2_SYSDIV2_41 0x14000000 // System clock /41
  929. #define SYSCTL_RCC2_SYSDIV2_42 0x14800000 // System clock /42
  930. #define SYSCTL_RCC2_SYSDIV2_43 0x15000000 // System clock /43
  931. #define SYSCTL_RCC2_SYSDIV2_44 0x15800000 // System clock /44
  932. #define SYSCTL_RCC2_SYSDIV2_45 0x16000000 // System clock /45
  933. #define SYSCTL_RCC2_SYSDIV2_46 0x16800000 // System clock /46
  934. #define SYSCTL_RCC2_SYSDIV2_47 0x17000000 // System clock /47
  935. #define SYSCTL_RCC2_SYSDIV2_48 0x17800000 // System clock /48
  936. #define SYSCTL_RCC2_SYSDIV2_49 0x18000000 // System clock /49
  937. #define SYSCTL_RCC2_SYSDIV2_50 0x18800000 // System clock /50
  938. #define SYSCTL_RCC2_SYSDIV2_51 0x19000000 // System clock /51
  939. #define SYSCTL_RCC2_SYSDIV2_52 0x19800000 // System clock /52
  940. #define SYSCTL_RCC2_SYSDIV2_53 0x1A000000 // System clock /53
  941. #define SYSCTL_RCC2_SYSDIV2_54 0x1A800000 // System clock /54
  942. #define SYSCTL_RCC2_SYSDIV2_55 0x1B000000 // System clock /55
  943. #define SYSCTL_RCC2_SYSDIV2_56 0x1B800000 // System clock /56
  944. #define SYSCTL_RCC2_SYSDIV2_57 0x1C000000 // System clock /57
  945. #define SYSCTL_RCC2_SYSDIV2_58 0x1C800000 // System clock /58
  946. #define SYSCTL_RCC2_SYSDIV2_59 0x1D000000 // System clock /59
  947. #define SYSCTL_RCC2_SYSDIV2_60 0x1D800000 // System clock /60
  948. #define SYSCTL_RCC2_SYSDIV2_61 0x1E000000 // System clock /61
  949. #define SYSCTL_RCC2_SYSDIV2_62 0x1E800000 // System clock /62
  950. #define SYSCTL_RCC2_SYSDIV2_63 0x1F000000 // System clock /63
  951. #define SYSCTL_RCC2_SYSDIV2_64 0x1F800000 // System clock /64
  952. #define SYSCTL_RCC2_SYSDIV2LSB 0x00400000 // Additional LSB for SYSDIV2
  953. #define SYSCTL_RCC2_USBPWRDN 0x00004000 // Power-Down USB PLL
  954. #define SYSCTL_RCC2_PWRDN2 0x00002000 // Power-Down PLL 2
  955. #define SYSCTL_RCC2_BYPASS2 0x00000800 // PLL Bypass 2
  956. #define SYSCTL_RCC2_OSCSRC2_M 0x00000070 // Oscillator Source 2
  957. #define SYSCTL_RCC2_OSCSRC2_MO 0x00000000 // MOSC
  958. #define SYSCTL_RCC2_OSCSRC2_IO 0x00000010 // PIOSC
  959. #define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020 // PIOSC/4
  960. #define SYSCTL_RCC2_OSCSRC2_30 0x00000030 // 30 kHz
  961. #define SYSCTL_RCC2_OSCSRC2_419 0x00000060 // 4.194304 MHz
  962. #define SYSCTL_RCC2_OSCSRC2_32 0x00000070 // 32.768 kHz
  963. #define SYSCTL_RCC2_SYSDIV2_S 23
  964. //*****************************************************************************
  965. //
  966. // The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
  967. //
  968. //*****************************************************************************
  969. #define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
  970. //*****************************************************************************
  971. //
  972. // The following are defines for the bit fields in the SYSCTL_RCGC0 register.
  973. //
  974. //*****************************************************************************
  975. #define SYSCTL_RCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  976. #define SYSCTL_RCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  977. #define SYSCTL_RCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  978. #define SYSCTL_RCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  979. #define SYSCTL_RCGC0_PWM 0x00100000 // PWM Clock Gating Control
  980. #define SYSCTL_RCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  981. #define SYSCTL_RCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  982. #define SYSCTL_RCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed
  983. #define SYSCTL_RCGC0_ADCSPD125K 0x00000000 // 125K samples/second
  984. #define SYSCTL_RCGC0_ADCSPD250K 0x00000100 // 250K samples/second
  985. #define SYSCTL_RCGC0_ADCSPD500K 0x00000200 // 500K samples/second
  986. #define SYSCTL_RCGC0_ADCSPD1M 0x00000300 // 1M samples/second
  987. #define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
  988. #define SYSCTL_RCGC0_ADC1SPD_125K \
  989. 0x00000000 // 125K samples/second
  990. #define SYSCTL_RCGC0_ADC1SPD_250K \
  991. 0x00000400 // 250K samples/second
  992. #define SYSCTL_RCGC0_ADC1SPD_500K \
  993. 0x00000800 // 500K samples/second
  994. #define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
  995. #define SYSCTL_RCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
  996. #define SYSCTL_RCGC0_ADC0SPD_125K \
  997. 0x00000000 // 125K samples/second
  998. #define SYSCTL_RCGC0_ADC0SPD_250K \
  999. 0x00000100 // 250K samples/second
  1000. #define SYSCTL_RCGC0_ADC0SPD_500K \
  1001. 0x00000200 // 500K samples/second
  1002. #define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
  1003. #define SYSCTL_RCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1004. #define SYSCTL_RCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1005. //*****************************************************************************
  1006. //
  1007. // The following are defines for the bit fields in the SYSCTL_RCGC1 register.
  1008. //
  1009. //*****************************************************************************
  1010. #define SYSCTL_RCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1011. #define SYSCTL_RCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1012. #define SYSCTL_RCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1013. #define SYSCTL_RCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1014. #define SYSCTL_RCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1015. #define SYSCTL_RCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1016. #define SYSCTL_RCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1017. #define SYSCTL_RCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1018. #define SYSCTL_RCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1019. #define SYSCTL_RCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1020. #define SYSCTL_RCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1021. #define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1022. #define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1023. #define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1024. #define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1025. #define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1026. #define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1027. #define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1028. //*****************************************************************************
  1029. //
  1030. // The following are defines for the bit fields in the SYSCTL_RCGC2 register.
  1031. //
  1032. //*****************************************************************************
  1033. #define SYSCTL_RCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1034. #define SYSCTL_RCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1035. #define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1036. #define SYSCTL_RCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1037. #define SYSCTL_RCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1038. #define SYSCTL_RCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1039. #define SYSCTL_RCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1040. #define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1041. #define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1042. #define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1043. #define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1044. #define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1045. #define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1046. //*****************************************************************************
  1047. //
  1048. // The following are defines for the bit fields in the SYSCTL_SCGC0 register.
  1049. //
  1050. //*****************************************************************************
  1051. #define SYSCTL_SCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  1052. #define SYSCTL_SCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  1053. #define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  1054. #define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  1055. #define SYSCTL_SCGC0_PWM 0x00100000 // PWM Clock Gating Control
  1056. #define SYSCTL_SCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  1057. #define SYSCTL_SCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  1058. #define SYSCTL_SCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed
  1059. #define SYSCTL_SCGC0_ADCSPD125K 0x00000000 // 125K samples/second
  1060. #define SYSCTL_SCGC0_ADCSPD250K 0x00000100 // 250K samples/second
  1061. #define SYSCTL_SCGC0_ADCSPD500K 0x00000200 // 500K samples/second
  1062. #define SYSCTL_SCGC0_ADCSPD1M 0x00000300 // 1M samples/second
  1063. #define SYSCTL_SCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
  1064. #define SYSCTL_SCGC0_ADC1SPD_125K \
  1065. 0x00000000 // 125K samples/second
  1066. #define SYSCTL_SCGC0_ADC1SPD_250K \
  1067. 0x00000400 // 250K samples/second
  1068. #define SYSCTL_SCGC0_ADC1SPD_500K \
  1069. 0x00000800 // 500K samples/second
  1070. #define SYSCTL_SCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
  1071. #define SYSCTL_SCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
  1072. #define SYSCTL_SCGC0_ADC0SPD_125K \
  1073. 0x00000000 // 125K samples/second
  1074. #define SYSCTL_SCGC0_ADC0SPD_250K \
  1075. 0x00000100 // 250K samples/second
  1076. #define SYSCTL_SCGC0_ADC0SPD_500K \
  1077. 0x00000200 // 500K samples/second
  1078. #define SYSCTL_SCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
  1079. #define SYSCTL_SCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1080. #define SYSCTL_SCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1081. //*****************************************************************************
  1082. //
  1083. // The following are defines for the bit fields in the SYSCTL_SCGC1 register.
  1084. //
  1085. //*****************************************************************************
  1086. #define SYSCTL_SCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1087. #define SYSCTL_SCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1088. #define SYSCTL_SCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1089. #define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1090. #define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1091. #define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1092. #define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1093. #define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1094. #define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1095. #define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1096. #define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1097. #define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1098. #define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1099. #define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1100. #define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1101. #define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1102. #define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1103. #define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1104. //*****************************************************************************
  1105. //
  1106. // The following are defines for the bit fields in the SYSCTL_SCGC2 register.
  1107. //
  1108. //*****************************************************************************
  1109. #define SYSCTL_SCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1110. #define SYSCTL_SCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1111. #define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1112. #define SYSCTL_SCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1113. #define SYSCTL_SCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1114. #define SYSCTL_SCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1115. #define SYSCTL_SCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1116. #define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1117. #define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1118. #define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1119. #define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1120. #define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1121. #define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1122. //*****************************************************************************
  1123. //
  1124. // The following are defines for the bit fields in the SYSCTL_DCGC0 register.
  1125. //
  1126. //*****************************************************************************
  1127. #define SYSCTL_DCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
  1128. #define SYSCTL_DCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control
  1129. #define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
  1130. #define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
  1131. #define SYSCTL_DCGC0_PWM 0x00100000 // PWM Clock Gating Control
  1132. #define SYSCTL_DCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
  1133. #define SYSCTL_DCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
  1134. #define SYSCTL_DCGC0_HIB 0x00000040 // HIB Clock Gating Control
  1135. #define SYSCTL_DCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
  1136. //*****************************************************************************
  1137. //
  1138. // The following are defines for the bit fields in the SYSCTL_DCGC1 register.
  1139. //
  1140. //*****************************************************************************
  1141. #define SYSCTL_DCGC1_EPI0 0x40000000 // EPI0 Clock Gating
  1142. #define SYSCTL_DCGC1_I2S0 0x10000000 // I2S0 Clock Gating
  1143. #define SYSCTL_DCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock Gating
  1144. #define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
  1145. #define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
  1146. #define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
  1147. #define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
  1148. #define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
  1149. #define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
  1150. #define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
  1151. #define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
  1152. #define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
  1153. #define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
  1154. #define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
  1155. #define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
  1156. #define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control
  1157. #define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control
  1158. #define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control
  1159. //*****************************************************************************
  1160. //
  1161. // The following are defines for the bit fields in the SYSCTL_DCGC2 register.
  1162. //
  1163. //*****************************************************************************
  1164. #define SYSCTL_DCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control
  1165. #define SYSCTL_DCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control
  1166. #define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control
  1167. #define SYSCTL_DCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
  1168. #define SYSCTL_DCGC2_GPIOJ 0x00000100 // Port J Clock Gating Control
  1169. #define SYSCTL_DCGC2_GPIOH 0x00000080 // Port H Clock Gating Control
  1170. #define SYSCTL_DCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
  1171. #define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
  1172. #define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
  1173. #define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
  1174. #define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
  1175. #define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
  1176. #define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
  1177. //*****************************************************************************
  1178. //
  1179. // The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
  1180. // register.
  1181. //
  1182. //*****************************************************************************
  1183. #define SYSCTL_DSLPCLKCFG_D_M 0x1F800000 // Divider Field Override
  1184. #define SYSCTL_DSLPCLKCFG_D_1 0x00000000 // System clock /1
  1185. #define SYSCTL_DSLPCLKCFG_D_2 0x00800000 // System clock /2
  1186. #define SYSCTL_DSLPCLKCFG_D_3 0x01000000 // System clock /3
  1187. #define SYSCTL_DSLPCLKCFG_D_4 0x01800000 // System clock /4
  1188. #define SYSCTL_DSLPCLKCFG_D_5 0x02000000 // System clock /5
  1189. #define SYSCTL_DSLPCLKCFG_D_6 0x02800000 // System clock /6
  1190. #define SYSCTL_DSLPCLKCFG_D_7 0x03000000 // System clock /7
  1191. #define SYSCTL_DSLPCLKCFG_D_8 0x03800000 // System clock /8
  1192. #define SYSCTL_DSLPCLKCFG_D_9 0x04000000 // System clock /9
  1193. #define SYSCTL_DSLPCLKCFG_D_10 0x04800000 // System clock /10
  1194. #define SYSCTL_DSLPCLKCFG_D_11 0x05000000 // System clock /11
  1195. #define SYSCTL_DSLPCLKCFG_D_12 0x05800000 // System clock /12
  1196. #define SYSCTL_DSLPCLKCFG_D_13 0x06000000 // System clock /13
  1197. #define SYSCTL_DSLPCLKCFG_D_14 0x06800000 // System clock /14
  1198. #define SYSCTL_DSLPCLKCFG_D_15 0x07000000 // System clock /15
  1199. #define SYSCTL_DSLPCLKCFG_D_16 0x07800000 // System clock /16
  1200. #define SYSCTL_DSLPCLKCFG_D_17 0x08000000 // System clock /17
  1201. #define SYSCTL_DSLPCLKCFG_D_18 0x08800000 // System clock /18
  1202. #define SYSCTL_DSLPCLKCFG_D_19 0x09000000 // System clock /19
  1203. #define SYSCTL_DSLPCLKCFG_D_20 0x09800000 // System clock /20
  1204. #define SYSCTL_DSLPCLKCFG_D_21 0x0A000000 // System clock /21
  1205. #define SYSCTL_DSLPCLKCFG_D_22 0x0A800000 // System clock /22
  1206. #define SYSCTL_DSLPCLKCFG_D_23 0x0B000000 // System clock /23
  1207. #define SYSCTL_DSLPCLKCFG_D_24 0x0B800000 // System clock /24
  1208. #define SYSCTL_DSLPCLKCFG_D_25 0x0C000000 // System clock /25
  1209. #define SYSCTL_DSLPCLKCFG_D_26 0x0C800000 // System clock /26
  1210. #define SYSCTL_DSLPCLKCFG_D_27 0x0D000000 // System clock /27
  1211. #define SYSCTL_DSLPCLKCFG_D_28 0x0D800000 // System clock /28
  1212. #define SYSCTL_DSLPCLKCFG_D_29 0x0E000000 // System clock /29
  1213. #define SYSCTL_DSLPCLKCFG_D_30 0x0E800000 // System clock /30
  1214. #define SYSCTL_DSLPCLKCFG_D_31 0x0F000000 // System clock /31
  1215. #define SYSCTL_DSLPCLKCFG_D_32 0x0F800000 // System clock /32
  1216. #define SYSCTL_DSLPCLKCFG_D_33 0x10000000 // System clock /33
  1217. #define SYSCTL_DSLPCLKCFG_D_34 0x10800000 // System clock /34
  1218. #define SYSCTL_DSLPCLKCFG_D_35 0x11000000 // System clock /35
  1219. #define SYSCTL_DSLPCLKCFG_D_36 0x11800000 // System clock /36
  1220. #define SYSCTL_DSLPCLKCFG_D_37 0x12000000 // System clock /37
  1221. #define SYSCTL_DSLPCLKCFG_D_38 0x12800000 // System clock /38
  1222. #define SYSCTL_DSLPCLKCFG_D_39 0x13000000 // System clock /39
  1223. #define SYSCTL_DSLPCLKCFG_D_40 0x13800000 // System clock /40
  1224. #define SYSCTL_DSLPCLKCFG_D_41 0x14000000 // System clock /41
  1225. #define SYSCTL_DSLPCLKCFG_D_42 0x14800000 // System clock /42
  1226. #define SYSCTL_DSLPCLKCFG_D_43 0x15000000 // System clock /43
  1227. #define SYSCTL_DSLPCLKCFG_D_44 0x15800000 // System clock /44
  1228. #define SYSCTL_DSLPCLKCFG_D_45 0x16000000 // System clock /45
  1229. #define SYSCTL_DSLPCLKCFG_D_46 0x16800000 // System clock /46
  1230. #define SYSCTL_DSLPCLKCFG_D_47 0x17000000 // System clock /47
  1231. #define SYSCTL_DSLPCLKCFG_D_48 0x17800000 // System clock /48
  1232. #define SYSCTL_DSLPCLKCFG_D_49 0x18000000 // System clock /49
  1233. #define SYSCTL_DSLPCLKCFG_D_50 0x18800000 // System clock /50
  1234. #define SYSCTL_DSLPCLKCFG_D_51 0x19000000 // System clock /51
  1235. #define SYSCTL_DSLPCLKCFG_D_52 0x19800000 // System clock /52
  1236. #define SYSCTL_DSLPCLKCFG_D_53 0x1A000000 // System clock /53
  1237. #define SYSCTL_DSLPCLKCFG_D_54 0x1A800000 // System clock /54
  1238. #define SYSCTL_DSLPCLKCFG_D_55 0x1B000000 // System clock /55
  1239. #define SYSCTL_DSLPCLKCFG_D_56 0x1B800000 // System clock /56
  1240. #define SYSCTL_DSLPCLKCFG_D_57 0x1C000000 // System clock /57
  1241. #define SYSCTL_DSLPCLKCFG_D_58 0x1C800000 // System clock /58
  1242. #define SYSCTL_DSLPCLKCFG_D_59 0x1D000000 // System clock /59
  1243. #define SYSCTL_DSLPCLKCFG_D_60 0x1D800000 // System clock /60
  1244. #define SYSCTL_DSLPCLKCFG_D_61 0x1E000000 // System clock /61
  1245. #define SYSCTL_DSLPCLKCFG_D_62 0x1E800000 // System clock /62
  1246. #define SYSCTL_DSLPCLKCFG_D_63 0x1F000000 // System clock /63
  1247. #define SYSCTL_DSLPCLKCFG_D_64 0x1F800000 // System clock /64
  1248. #define SYSCTL_DSLPCLKCFG_O_M 0x00000070 // Clock Source
  1249. #define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000 // MOSC
  1250. #define SYSCTL_DSLPCLKCFG_O_IO 0x00000010 // PIOSC
  1251. #define SYSCTL_DSLPCLKCFG_O_30 0x00000030 // 30 kHz
  1252. #define SYSCTL_DSLPCLKCFG_O_32 0x00000070 // 32.768 kHz
  1253. #define SYSCTL_DSLPCLKCFG_IOSC 0x00000001 // IOSC Clock Source
  1254. #define SYSCTL_DSLPCLKCFG_D_S 23
  1255. //*****************************************************************************
  1256. //
  1257. // The following are defines for the bit fields in the SYSCTL_CLKVCLR register.
  1258. //
  1259. //*****************************************************************************
  1260. #define SYSCTL_CLKVCLR_VERCLR 0x00000001 // Clock Verification Clear
  1261. //*****************************************************************************
  1262. //
  1263. // The following are defines for the bit fields in the SYSCTL_PIOSCCAL
  1264. // register.
  1265. //
  1266. //*****************************************************************************
  1267. #define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
  1268. #define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
  1269. #define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
  1270. #define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
  1271. #define SYSCTL_PIOSCCAL_UT_S 0
  1272. //*****************************************************************************
  1273. //
  1274. // The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
  1275. // register.
  1276. //
  1277. //*****************************************************************************
  1278. #define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
  1279. #define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
  1280. #define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
  1281. // attempted
  1282. #define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
  1283. // completed to meet 1% accuracy
  1284. #define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
  1285. // failed to meet 1% accuracy
  1286. #define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
  1287. #define SYSCTL_PIOSCSTAT_DT_S 16
  1288. #define SYSCTL_PIOSCSTAT_CT_S 0
  1289. //*****************************************************************************
  1290. //
  1291. // The following are defines for the bit fields in the SYSCTL_LDOARST register.
  1292. //
  1293. //*****************************************************************************
  1294. #define SYSCTL_LDOARST_LDOARST 0x00000001 // LDO Reset
  1295. //*****************************************************************************
  1296. //
  1297. // The following are defines for the bit fields in the SYSCTL_I2SMCLKCFG
  1298. // register.
  1299. //
  1300. //*****************************************************************************
  1301. #define SYSCTL_I2SMCLKCFG_RXEN 0x80000000 // RX Clock Enable
  1302. #define SYSCTL_I2SMCLKCFG_RXI_M 0x3FF00000 // RX Clock Integer Input
  1303. #define SYSCTL_I2SMCLKCFG_RXF_M 0x000F0000 // RX Clock Fractional Input
  1304. #define SYSCTL_I2SMCLKCFG_TXEN 0x00008000 // TX Clock Enable
  1305. #define SYSCTL_I2SMCLKCFG_TXI_M 0x00003FF0 // TX Clock Integer Input
  1306. #define SYSCTL_I2SMCLKCFG_TXF_M 0x0000000F // TX Clock Fractional Input
  1307. #define SYSCTL_I2SMCLKCFG_RXI_S 20
  1308. #define SYSCTL_I2SMCLKCFG_RXF_S 16
  1309. #define SYSCTL_I2SMCLKCFG_TXI_S 4
  1310. #define SYSCTL_I2SMCLKCFG_TXF_S 0
  1311. //*****************************************************************************
  1312. //
  1313. // The following are defines for the bit fields in the SYSCTL_DC9 register.
  1314. //
  1315. //*****************************************************************************
  1316. #define SYSCTL_DC9_ADC1DC7 0x00800000 // ADC1 DC7 Present
  1317. #define SYSCTL_DC9_ADC1DC6 0x00400000 // ADC1 DC6 Present
  1318. #define SYSCTL_DC9_ADC1DC5 0x00200000 // ADC1 DC5 Present
  1319. #define SYSCTL_DC9_ADC1DC4 0x00100000 // ADC1 DC4 Present
  1320. #define SYSCTL_DC9_ADC1DC3 0x00080000 // ADC1 DC3 Present
  1321. #define SYSCTL_DC9_ADC1DC2 0x00040000 // ADC1 DC2 Present
  1322. #define SYSCTL_DC9_ADC1DC1 0x00020000 // ADC1 DC1 Present
  1323. #define SYSCTL_DC9_ADC1DC0 0x00010000 // ADC1 DC0 Present
  1324. #define SYSCTL_DC9_ADC0DC7 0x00000080 // ADC0 DC7 Present
  1325. #define SYSCTL_DC9_ADC0DC6 0x00000040 // ADC0 DC6 Present
  1326. #define SYSCTL_DC9_ADC0DC5 0x00000020 // ADC0 DC5 Present
  1327. #define SYSCTL_DC9_ADC0DC4 0x00000010 // ADC0 DC4 Present
  1328. #define SYSCTL_DC9_ADC0DC3 0x00000008 // ADC0 DC3 Present
  1329. #define SYSCTL_DC9_ADC0DC2 0x00000004 // ADC0 DC2 Present
  1330. #define SYSCTL_DC9_ADC0DC1 0x00000002 // ADC0 DC1 Present
  1331. #define SYSCTL_DC9_ADC0DC0 0x00000001 // ADC0 DC0 Present
  1332. //*****************************************************************************
  1333. //
  1334. // The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
  1335. //
  1336. //*****************************************************************************
  1337. #define SYSCTL_NVMSTAT_TPSW 0x00000010 // Third Party Software Present
  1338. #define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
  1339. // Active
  1340. //*****************************************************************************
  1341. //
  1342. // The following definitions are deprecated.
  1343. //
  1344. //*****************************************************************************
  1345. #ifndef DEPRECATED
  1346. //*****************************************************************************
  1347. //
  1348. // The following are deprecated defines for the System Control register
  1349. // addresses.
  1350. //
  1351. //*****************************************************************************
  1352. #define SYSCTL_USER0 0x400FE1E0 // NV User Register 0
  1353. #define SYSCTL_USER1 0x400FE1E4 // NV User Register 1
  1354. //*****************************************************************************
  1355. //
  1356. // The following are deprecated defines for the bit fields in the SYSCTL_DID0
  1357. // register.
  1358. //
  1359. //*****************************************************************************
  1360. #define SYSCTL_DID0_VER_MASK 0x70000000 // DID0 version mask
  1361. #define SYSCTL_DID0_CLASS_MASK 0x00FF0000 // Device Class
  1362. #define SYSCTL_DID0_MAJ_MASK 0x0000FF00 // Major revision mask
  1363. #define SYSCTL_DID0_MAJ_A 0x00000000 // Major revision A
  1364. #define SYSCTL_DID0_MAJ_B 0x00000100 // Major revision B
  1365. #define SYSCTL_DID0_MAJ_C 0x00000200 // Major revision C
  1366. #define SYSCTL_DID0_MIN_MASK 0x000000FF // Minor revision mask
  1367. //*****************************************************************************
  1368. //
  1369. // The following are deprecated defines for the bit fields in the SYSCTL_DID1
  1370. // register.
  1371. //
  1372. //*****************************************************************************
  1373. #define SYSCTL_DID1_VER_MASK 0xF0000000 // Register version mask
  1374. #define SYSCTL_DID1_FAM_MASK 0x0F000000 // Family mask
  1375. #define SYSCTL_DID1_FAM_S 0x00000000 // Stellaris family
  1376. #define SYSCTL_DID1_PRTNO_MASK 0x00FF0000 // Part number mask
  1377. #define SYSCTL_DID1_PINCNT_MASK 0x0000E000 // Pin count
  1378. #define SYSCTL_DID1_TEMP_MASK 0x000000E0 // Temperature range mask
  1379. #define SYSCTL_DID1_PKG_MASK 0x00000018 // Package mask
  1380. #define SYSCTL_DID1_PKG_48QFP 0x00000008 // QFP package
  1381. #define SYSCTL_DID1_QUAL_MASK 0x00000003 // Qualification status mask
  1382. #define SYSCTL_DID1_PKG_28SOIC 0x00000000 // SOIC package
  1383. #define SYSCTL_DID1_PRTNO_SHIFT 16
  1384. //*****************************************************************************
  1385. //
  1386. // The following are deprecated defines for the bit fields in the SYSCTL_DC0
  1387. // register.
  1388. //
  1389. //*****************************************************************************
  1390. #define SYSCTL_DC0_SRAMSZ_MASK 0xFFFF0000 // SRAM size mask
  1391. #define SYSCTL_DC0_FLASHSZ_MASK 0x0000FFFF // Flash size mask
  1392. //*****************************************************************************
  1393. //
  1394. // The following are deprecated defines for the bit fields in the SYSCTL_DC1
  1395. // register.
  1396. //
  1397. //*****************************************************************************
  1398. #define SYSCTL_DC1_ADC 0x00010000 // ADC Module Present
  1399. #define SYSCTL_DC1_SYSDIV_MASK 0x0000F000 // Minimum system divider mask
  1400. #define SYSCTL_DC1_ADCSPD_MASK 0x00000F00 // ADC speed mask
  1401. #define SYSCTL_DC1_WDOG 0x00000008 // Watchdog present
  1402. #define SYSCTL_DC1_WDT 0x00000008 // Watchdog Timer Present
  1403. //*****************************************************************************
  1404. //
  1405. // The following are deprecated defines for the bit fields in the SYSCTL_DC2
  1406. // register.
  1407. //
  1408. //*****************************************************************************
  1409. #define SYSCTL_DC2_I2C 0x00001000 // I2C present
  1410. #define SYSCTL_DC2_QEI 0x00000100 // QEI present
  1411. #define SYSCTL_DC2_SSI 0x00000010 // SSI present
  1412. //*****************************************************************************
  1413. //
  1414. // The following are deprecated defines for the bit fields in the SYSCTL_DC3
  1415. // register.
  1416. //
  1417. //*****************************************************************************
  1418. #define SYSCTL_DC3_ADC7 0x00800000 // ADC7 Pin Present
  1419. #define SYSCTL_DC3_ADC6 0x00400000 // ADC6 Pin Present
  1420. #define SYSCTL_DC3_ADC5 0x00200000 // ADC5 Pin Present
  1421. #define SYSCTL_DC3_ADC4 0x00100000 // ADC4 Pin Present
  1422. #define SYSCTL_DC3_ADC3 0x00080000 // ADC3 Pin Present
  1423. #define SYSCTL_DC3_ADC2 0x00040000 // ADC2 Pin Present
  1424. #define SYSCTL_DC3_ADC1 0x00020000 // ADC1 Pin Present
  1425. #define SYSCTL_DC3_ADC0 0x00010000 // ADC0 Pin Present
  1426. #define SYSCTL_DC3_MC_FAULT0 0x00008000 // MC0 fault pin present
  1427. //*****************************************************************************
  1428. //
  1429. // The following are deprecated defines for the bit fields in the
  1430. // SYSCTL_PBORCTL register.
  1431. //
  1432. //*****************************************************************************
  1433. #define SYSCTL_PBORCTL_BOR_MASK 0x0000FFFC // BOR wait timer
  1434. #define SYSCTL_PBORCTL_BOR_SH 2
  1435. //*****************************************************************************
  1436. //
  1437. // The following are deprecated defines for the bit fields in the
  1438. // SYSCTL_LDOPCTL register.
  1439. //
  1440. //*****************************************************************************
  1441. #define SYSCTL_LDOPCTL_MASK 0x0000003F // Voltage adjust mask
  1442. //*****************************************************************************
  1443. //
  1444. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR0
  1445. // register.
  1446. //
  1447. //*****************************************************************************
  1448. #define SYSCTL_SRCR0_ADC 0x00010000 // ADC0 Reset Control
  1449. #define SYSCTL_SRCR0_WDT 0x00000008 // WDT Reset Control
  1450. //*****************************************************************************
  1451. //
  1452. // The following are deprecated defines for the bit fields in the SYSCTL_RESC
  1453. // register.
  1454. //
  1455. //*****************************************************************************
  1456. #define SYSCTL_RESC_WDOG 0x00000008 // Watchdog reset
  1457. #define SYSCTL_RESC_WDT 0x00000008 // Watchdog Timer Reset
  1458. //*****************************************************************************
  1459. //
  1460. // The following are deprecated defines for the bit fields in the SYSCTL_RCC
  1461. // register.
  1462. //
  1463. //*****************************************************************************
  1464. #define SYSCTL_RCC_SYSDIV_MASK 0x07800000 // System clock divider
  1465. #define SYSCTL_RCC_USE_SYSDIV 0x00400000 // Use sytem clock divider
  1466. #define SYSCTL_RCC_USE_PWMDIV 0x00100000 // Use PWM clock divider
  1467. #define SYSCTL_RCC_PWMDIV_MASK 0x000E0000 // PWM clock divider
  1468. #define SYSCTL_RCC_OE 0x00001000 // PLL output enable
  1469. #define SYSCTL_RCC_XTAL_3_68MHz 0x00000140 // Using a 3.6864 MHz crystal
  1470. #define SYSCTL_RCC_XTAL_4MHz 0x00000180 // Using a 4 MHz crystal
  1471. #define SYSCTL_RCC_XTAL_MASK 0x000003C0 // Crystal attached to main osc
  1472. #define SYSCTL_RCC_OSCSRC_MASK 0x00000030 // Oscillator input select
  1473. #define SYSCTL_RCC_SYSDIV_SHIFT 23 // Shift to the SYSDIV field
  1474. #define SYSCTL_RCC_PWMDIV_SHIFT 17 // Shift to the PWMDIV field
  1475. #define SYSCTL_RCC_XTAL_SHIFT 6 // Shift to the XTAL field
  1476. #define SYSCTL_RCC_OSCSRC_SHIFT 4 // Shift to the OSCSRC field
  1477. //*****************************************************************************
  1478. //
  1479. // The following are deprecated defines for the bit fields in the SYSCTL_PLLCFG
  1480. // register.
  1481. //
  1482. //*****************************************************************************
  1483. #define SYSCTL_PLLCFG_OD_MASK 0x0000C000 // Output divider
  1484. #define SYSCTL_PLLCFG_F_MASK 0x00003FE0 // PLL multiplier
  1485. #define SYSCTL_PLLCFG_R_MASK 0x0000001F // Input predivider
  1486. #define SYSCTL_PLLCFG_F_SHIFT 5
  1487. #define SYSCTL_PLLCFG_R_SHIFT 0
  1488. //*****************************************************************************
  1489. //
  1490. // The following are deprecated defines for the bit fields in the SYSCTL_RCC2
  1491. // register.
  1492. //
  1493. //*****************************************************************************
  1494. #define SYSCTL_RCC2_USEFRACT 0x40000000 // Use fractional divider
  1495. #define SYSCTL_RCC2_SYSDIV2_MSK 0x1F800000 // System clock divider
  1496. #define SYSCTL_RCC2_FRACT 0x00400000 // Fractional divide
  1497. #define SYSCTL_RCC2_OSCSRC2_MSK 0x00000070 // Oscillator input select
  1498. //*****************************************************************************
  1499. //
  1500. // The following are deprecated defines for the bit fields in the SYSCTL_RCGC0
  1501. // register.
  1502. //
  1503. //*****************************************************************************
  1504. #define SYSCTL_RCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  1505. #define SYSCTL_RCGC0_WDT 0x00000008 // WDT Clock Gating Control
  1506. //*****************************************************************************
  1507. //
  1508. // The following are deprecated defines for the bit fields in the SYSCTL_SCGC0
  1509. // register.
  1510. //
  1511. //*****************************************************************************
  1512. #define SYSCTL_SCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  1513. #define SYSCTL_SCGC0_WDT 0x00000008 // WDT Clock Gating Control
  1514. //*****************************************************************************
  1515. //
  1516. // The following are deprecated defines for the bit fields in the SYSCTL_DCGC0
  1517. // register.
  1518. //
  1519. //*****************************************************************************
  1520. #define SYSCTL_DCGC0_ADC 0x00010000 // ADC0 Clock Gating Control
  1521. #define SYSCTL_DCGC0_WDT 0x00000008 // WDT Clock Gating Control
  1522. //*****************************************************************************
  1523. //
  1524. // The following are deprecated defines for the bit fields in the
  1525. // SYSCTL_DSLPCLKCFG register.
  1526. //
  1527. //*****************************************************************************
  1528. #define SYSCTL_DSLPCLKCFG_D_MSK 0x1F800000 // Deep sleep system clock override
  1529. #define SYSCTL_DSLPCLKCFG_O_MSK 0x00000070 // Deep sleep oscillator override
  1530. //*****************************************************************************
  1531. //
  1532. // The following are deprecated defines for the bit fields in the
  1533. // SYSCTL_CLKVCLR register.
  1534. //
  1535. //*****************************************************************************
  1536. #define SYSCTL_CLKVCLR_CLR 0x00000001 // Clear clock verification fault
  1537. //*****************************************************************************
  1538. //
  1539. // The following are deprecated defines for the bit fields in the
  1540. // SYSCTL_LDOARST register.
  1541. //
  1542. //*****************************************************************************
  1543. #define SYSCTL_LDOARST_ARST 0x00000001 // Allow LDO to reset device
  1544. //*****************************************************************************
  1545. //
  1546. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR0,
  1547. // SYSCTL_RCGC0, SYSCTL_SCGC0, and SYSCTL_DCGC0 registers.
  1548. //
  1549. //*****************************************************************************
  1550. #define SYSCTL_SET0_CAN2 0x04000000 // CAN 2 module
  1551. #define SYSCTL_SET0_CAN1 0x02000000 // CAN 1 module
  1552. #define SYSCTL_SET0_CAN0 0x01000000 // CAN 0 module
  1553. #define SYSCTL_SET0_PWM 0x00100000 // PWM module
  1554. #define SYSCTL_SET0_ADC 0x00010000 // ADC module
  1555. #define SYSCTL_SET0_ADCSPD_MASK 0x00000F00 // ADC speed mask
  1556. #define SYSCTL_SET0_ADCSPD_125K 0x00000000 // 125Ksps ADC
  1557. #define SYSCTL_SET0_ADCSPD_250K 0x00000100 // 250Ksps ADC
  1558. #define SYSCTL_SET0_ADCSPD_500K 0x00000200 // 500Ksps ADC
  1559. #define SYSCTL_SET0_ADCSPD_1M 0x00000300 // 1Msps ADC
  1560. #define SYSCTL_SET0_HIB 0x00000040 // Hibernation module
  1561. #define SYSCTL_SET0_WDOG 0x00000008 // Watchdog module
  1562. //*****************************************************************************
  1563. //
  1564. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR1,
  1565. // SYSCTL_RCGC1, SYSCTL_SCGC1, and SYSCTL_DCGC1 registers.
  1566. //
  1567. //*****************************************************************************
  1568. #define SYSCTL_SET1_COMP2 0x04000000 // Analog comparator module 2
  1569. #define SYSCTL_SET1_COMP1 0x02000000 // Analog comparator module 1
  1570. #define SYSCTL_SET1_COMP0 0x01000000 // Analog comparator module 0
  1571. #define SYSCTL_SET1_TIMER3 0x00080000 // Timer module 3
  1572. #define SYSCTL_SET1_TIMER2 0x00040000 // Timer module 2
  1573. #define SYSCTL_SET1_TIMER1 0x00020000 // Timer module 1
  1574. #define SYSCTL_SET1_TIMER0 0x00010000 // Timer module 0
  1575. #define SYSCTL_SET1_I2C1 0x00002000 // I2C module 1
  1576. #define SYSCTL_SET1_I2C0 0x00001000 // I2C module 0
  1577. #define SYSCTL_SET1_I2C 0x00001000 // I2C module
  1578. #define SYSCTL_SET1_QEI1 0x00000200 // QEI module 1
  1579. #define SYSCTL_SET1_QEI 0x00000100 // QEI module
  1580. #define SYSCTL_SET1_QEI0 0x00000100 // QEI module 0
  1581. #define SYSCTL_SET1_SSI1 0x00000020 // SSI module 1
  1582. #define SYSCTL_SET1_SSI0 0x00000010 // SSI module 0
  1583. #define SYSCTL_SET1_SSI 0x00000010 // SSI module
  1584. #define SYSCTL_SET1_UART2 0x00000004 // UART module 2
  1585. #define SYSCTL_SET1_UART1 0x00000002 // UART module 1
  1586. #define SYSCTL_SET1_UART0 0x00000001 // UART module 0
  1587. //*****************************************************************************
  1588. //
  1589. // The following are deprecated defines for the bit fields in the SYSCTL_SRCR2,
  1590. // SYSCTL_RCGC2, SYSCTL_SCGC2, and SYSCTL_DCGC2 registers.
  1591. //
  1592. //*****************************************************************************
  1593. #define SYSCTL_SET2_ETH 0x50000000 // ETH module
  1594. #define SYSCTL_SET2_GPIOH 0x00000080 // GPIO H module
  1595. #define SYSCTL_SET2_GPIOG 0x00000040 // GPIO G module
  1596. #define SYSCTL_SET2_GPIOF 0x00000020 // GPIO F module
  1597. #define SYSCTL_SET2_GPIOE 0x00000010 // GPIO E module
  1598. #define SYSCTL_SET2_GPIOD 0x00000008 // GPIO D module
  1599. #define SYSCTL_SET2_GPIOC 0x00000004 // GPIO C module
  1600. #define SYSCTL_SET2_GPIOB 0x00000002 // GPIO B module
  1601. #define SYSCTL_SET2_GPIOA 0x00000001 // GIPO A module
  1602. //*****************************************************************************
  1603. //
  1604. // The following are deprecated defines for the bit fields in the SYSCTL_RIS,
  1605. // SYSCTL_IMC, and SYSCTL_IMS registers.
  1606. //
  1607. //*****************************************************************************
  1608. #define SYSCTL_INT_PLL_LOCK 0x00000040 // PLL lock interrupt
  1609. #define SYSCTL_INT_CUR_LIMIT 0x00000020 // Current limit interrupt
  1610. #define SYSCTL_INT_IOSC_FAIL 0x00000010 // Internal oscillator failure int
  1611. #define SYSCTL_INT_MOSC_FAIL 0x00000008 // Main oscillator failure int
  1612. #define SYSCTL_INT_POR 0x00000004 // Power on reset interrupt
  1613. #define SYSCTL_INT_BOR 0x00000002 // Brown out interrupt
  1614. #define SYSCTL_INT_PLL_FAIL 0x00000001 // PLL failure interrupt
  1615. #endif
  1616. #endif // __HW_SYSCTL_H__