hw_sysctl.h 94 KB

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