1
0

hw_usb.h 150 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032
  1. //*****************************************************************************
  2. //
  3. // hw_usb.h - Macros for use in accessing the USB registers.
  4. //
  5. // Copyright (c) 2007-2014 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_USB_H__
  40. #define __HW_USB_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the Univeral Serial Bus register offsets.
  44. //
  45. //*****************************************************************************
  46. #define USB_O_FADDR 0x00000000 // USB Device Functional Address
  47. #define USB_O_POWER 0x00000001 // USB Power
  48. #define USB_O_TXIS 0x00000002 // USB Transmit Interrupt Status
  49. #define USB_O_RXIS 0x00000004 // USB Receive Interrupt Status
  50. #define USB_O_TXIE 0x00000006 // USB Transmit Interrupt Enable
  51. #define USB_O_RXIE 0x00000008 // USB Receive Interrupt Enable
  52. #define USB_O_IS 0x0000000A // USB General Interrupt Status
  53. #define USB_O_IE 0x0000000B // USB Interrupt Enable
  54. #define USB_O_FRAME 0x0000000C // USB Frame Value
  55. #define USB_O_EPIDX 0x0000000E // USB Endpoint Index
  56. #define USB_O_TEST 0x0000000F // USB Test Mode
  57. #define USB_O_FIFO0 0x00000020 // USB FIFO Endpoint 0
  58. #define USB_O_FIFO1 0x00000024 // USB FIFO Endpoint 1
  59. #define USB_O_FIFO2 0x00000028 // USB FIFO Endpoint 2
  60. #define USB_O_FIFO3 0x0000002C // USB FIFO Endpoint 3
  61. #define USB_O_FIFO4 0x00000030 // USB FIFO Endpoint 4
  62. #define USB_O_FIFO5 0x00000034 // USB FIFO Endpoint 5
  63. #define USB_O_FIFO6 0x00000038 // USB FIFO Endpoint 6
  64. #define USB_O_FIFO7 0x0000003C // USB FIFO Endpoint 7
  65. #define USB_O_DEVCTL 0x00000060 // USB Device Control
  66. #define USB_O_CCONF 0x00000061 // USB Common Configuration
  67. #define USB_O_TXFIFOSZ 0x00000062 // USB Transmit Dynamic FIFO Sizing
  68. #define USB_O_RXFIFOSZ 0x00000063 // USB Receive Dynamic FIFO Sizing
  69. #define USB_O_TXFIFOADD 0x00000064 // USB Transmit FIFO Start Address
  70. #define USB_O_RXFIFOADD 0x00000066 // USB Receive FIFO Start Address
  71. #define USB_O_ULPIVBUSCTL 0x00000070 // USB ULPI VBUS Control
  72. #define USB_O_ULPIREGDATA 0x00000074 // USB ULPI Register Data
  73. #define USB_O_ULPIREGADDR 0x00000075 // USB ULPI Register Address
  74. #define USB_O_ULPIREGCTL 0x00000076 // USB ULPI Register Control
  75. #define USB_O_EPINFO 0x00000078 // USB Endpoint Information
  76. #define USB_O_RAMINFO 0x00000079 // USB RAM Information
  77. #define USB_O_CONTIM 0x0000007A // USB Connect Timing
  78. #define USB_O_VPLEN 0x0000007B // USB OTG VBUS Pulse Timing
  79. #define USB_O_HSEOF 0x0000007C // USB High-Speed Last Transaction
  80. // to End of Frame Timing
  81. #define USB_O_FSEOF 0x0000007D // USB Full-Speed Last Transaction
  82. // to End of Frame Timing
  83. #define USB_O_LSEOF 0x0000007E // USB Low-Speed Last Transaction
  84. // to End of Frame Timing
  85. #define USB_O_TXFUNCADDR0 0x00000080 // USB Transmit Functional Address
  86. // Endpoint 0
  87. #define USB_O_TXHUBADDR0 0x00000082 // USB Transmit Hub Address
  88. // Endpoint 0
  89. #define USB_O_TXHUBPORT0 0x00000083 // USB Transmit Hub Port Endpoint 0
  90. #define USB_O_TXFUNCADDR1 0x00000088 // USB Transmit Functional Address
  91. // Endpoint 1
  92. #define USB_O_TXHUBADDR1 0x0000008A // USB Transmit Hub Address
  93. // Endpoint 1
  94. #define USB_O_TXHUBPORT1 0x0000008B // USB Transmit Hub Port Endpoint 1
  95. #define USB_O_RXFUNCADDR1 0x0000008C // USB Receive Functional Address
  96. // Endpoint 1
  97. #define USB_O_RXHUBADDR1 0x0000008E // USB Receive Hub Address Endpoint
  98. // 1
  99. #define USB_O_RXHUBPORT1 0x0000008F // USB Receive Hub Port Endpoint 1
  100. #define USB_O_TXFUNCADDR2 0x00000090 // USB Transmit Functional Address
  101. // Endpoint 2
  102. #define USB_O_TXHUBADDR2 0x00000092 // USB Transmit Hub Address
  103. // Endpoint 2
  104. #define USB_O_TXHUBPORT2 0x00000093 // USB Transmit Hub Port Endpoint 2
  105. #define USB_O_RXFUNCADDR2 0x00000094 // USB Receive Functional Address
  106. // Endpoint 2
  107. #define USB_O_RXHUBADDR2 0x00000096 // USB Receive Hub Address Endpoint
  108. // 2
  109. #define USB_O_RXHUBPORT2 0x00000097 // USB Receive Hub Port Endpoint 2
  110. #define USB_O_TXFUNCADDR3 0x00000098 // USB Transmit Functional Address
  111. // Endpoint 3
  112. #define USB_O_TXHUBADDR3 0x0000009A // USB Transmit Hub Address
  113. // Endpoint 3
  114. #define USB_O_TXHUBPORT3 0x0000009B // USB Transmit Hub Port Endpoint 3
  115. #define USB_O_RXFUNCADDR3 0x0000009C // USB Receive Functional Address
  116. // Endpoint 3
  117. #define USB_O_RXHUBADDR3 0x0000009E // USB Receive Hub Address Endpoint
  118. // 3
  119. #define USB_O_RXHUBPORT3 0x0000009F // USB Receive Hub Port Endpoint 3
  120. #define USB_O_TXFUNCADDR4 0x000000A0 // USB Transmit Functional Address
  121. // Endpoint 4
  122. #define USB_O_TXHUBADDR4 0x000000A2 // USB Transmit Hub Address
  123. // Endpoint 4
  124. #define USB_O_TXHUBPORT4 0x000000A3 // USB Transmit Hub Port Endpoint 4
  125. #define USB_O_RXFUNCADDR4 0x000000A4 // USB Receive Functional Address
  126. // Endpoint 4
  127. #define USB_O_RXHUBADDR4 0x000000A6 // USB Receive Hub Address Endpoint
  128. // 4
  129. #define USB_O_RXHUBPORT4 0x000000A7 // USB Receive Hub Port Endpoint 4
  130. #define USB_O_TXFUNCADDR5 0x000000A8 // USB Transmit Functional Address
  131. // Endpoint 5
  132. #define USB_O_TXHUBADDR5 0x000000AA // USB Transmit Hub Address
  133. // Endpoint 5
  134. #define USB_O_TXHUBPORT5 0x000000AB // USB Transmit Hub Port Endpoint 5
  135. #define USB_O_RXFUNCADDR5 0x000000AC // USB Receive Functional Address
  136. // Endpoint 5
  137. #define USB_O_RXHUBADDR5 0x000000AE // USB Receive Hub Address Endpoint
  138. // 5
  139. #define USB_O_RXHUBPORT5 0x000000AF // USB Receive Hub Port Endpoint 5
  140. #define USB_O_TXFUNCADDR6 0x000000B0 // USB Transmit Functional Address
  141. // Endpoint 6
  142. #define USB_O_TXHUBADDR6 0x000000B2 // USB Transmit Hub Address
  143. // Endpoint 6
  144. #define USB_O_TXHUBPORT6 0x000000B3 // USB Transmit Hub Port Endpoint 6
  145. #define USB_O_RXFUNCADDR6 0x000000B4 // USB Receive Functional Address
  146. // Endpoint 6
  147. #define USB_O_RXHUBADDR6 0x000000B6 // USB Receive Hub Address Endpoint
  148. // 6
  149. #define USB_O_RXHUBPORT6 0x000000B7 // USB Receive Hub Port Endpoint 6
  150. #define USB_O_TXFUNCADDR7 0x000000B8 // USB Transmit Functional Address
  151. // Endpoint 7
  152. #define USB_O_TXHUBADDR7 0x000000BA // USB Transmit Hub Address
  153. // Endpoint 7
  154. #define USB_O_TXHUBPORT7 0x000000BB // USB Transmit Hub Port Endpoint 7
  155. #define USB_O_RXFUNCADDR7 0x000000BC // USB Receive Functional Address
  156. // Endpoint 7
  157. #define USB_O_RXHUBADDR7 0x000000BE // USB Receive Hub Address Endpoint
  158. // 7
  159. #define USB_O_RXHUBPORT7 0x000000BF // USB Receive Hub Port Endpoint 7
  160. #define USB_O_CSRL0 0x00000102 // USB Control and Status Endpoint
  161. // 0 Low
  162. #define USB_O_CSRH0 0x00000103 // USB Control and Status Endpoint
  163. // 0 High
  164. #define USB_O_COUNT0 0x00000108 // USB Receive Byte Count Endpoint
  165. // 0
  166. #define USB_O_TYPE0 0x0000010A // USB Type Endpoint 0
  167. #define USB_O_NAKLMT 0x0000010B // USB NAK Limit
  168. #define USB_O_TXMAXP1 0x00000110 // USB Maximum Transmit Data
  169. // Endpoint 1
  170. #define USB_O_TXCSRL1 0x00000112 // USB Transmit Control and Status
  171. // Endpoint 1 Low
  172. #define USB_O_TXCSRH1 0x00000113 // USB Transmit Control and Status
  173. // Endpoint 1 High
  174. #define USB_O_RXMAXP1 0x00000114 // USB Maximum Receive Data
  175. // Endpoint 1
  176. #define USB_O_RXCSRL1 0x00000116 // USB Receive Control and Status
  177. // Endpoint 1 Low
  178. #define USB_O_RXCSRH1 0x00000117 // USB Receive Control and Status
  179. // Endpoint 1 High
  180. #define USB_O_RXCOUNT1 0x00000118 // USB Receive Byte Count Endpoint
  181. // 1
  182. #define USB_O_TXTYPE1 0x0000011A // USB Host Transmit Configure Type
  183. // Endpoint 1
  184. #define USB_O_TXINTERVAL1 0x0000011B // USB Host Transmit Interval
  185. // Endpoint 1
  186. #define USB_O_RXTYPE1 0x0000011C // USB Host Configure Receive Type
  187. // Endpoint 1
  188. #define USB_O_RXINTERVAL1 0x0000011D // USB Host Receive Polling
  189. // Interval Endpoint 1
  190. #define USB_O_TXMAXP2 0x00000120 // USB Maximum Transmit Data
  191. // Endpoint 2
  192. #define USB_O_TXCSRL2 0x00000122 // USB Transmit Control and Status
  193. // Endpoint 2 Low
  194. #define USB_O_TXCSRH2 0x00000123 // USB Transmit Control and Status
  195. // Endpoint 2 High
  196. #define USB_O_RXMAXP2 0x00000124 // USB Maximum Receive Data
  197. // Endpoint 2
  198. #define USB_O_RXCSRL2 0x00000126 // USB Receive Control and Status
  199. // Endpoint 2 Low
  200. #define USB_O_RXCSRH2 0x00000127 // USB Receive Control and Status
  201. // Endpoint 2 High
  202. #define USB_O_RXCOUNT2 0x00000128 // USB Receive Byte Count Endpoint
  203. // 2
  204. #define USB_O_TXTYPE2 0x0000012A // USB Host Transmit Configure Type
  205. // Endpoint 2
  206. #define USB_O_TXINTERVAL2 0x0000012B // USB Host Transmit Interval
  207. // Endpoint 2
  208. #define USB_O_RXTYPE2 0x0000012C // USB Host Configure Receive Type
  209. // Endpoint 2
  210. #define USB_O_RXINTERVAL2 0x0000012D // USB Host Receive Polling
  211. // Interval Endpoint 2
  212. #define USB_O_TXMAXP3 0x00000130 // USB Maximum Transmit Data
  213. // Endpoint 3
  214. #define USB_O_TXCSRL3 0x00000132 // USB Transmit Control and Status
  215. // Endpoint 3 Low
  216. #define USB_O_TXCSRH3 0x00000133 // USB Transmit Control and Status
  217. // Endpoint 3 High
  218. #define USB_O_RXMAXP3 0x00000134 // USB Maximum Receive Data
  219. // Endpoint 3
  220. #define USB_O_RXCSRL3 0x00000136 // USB Receive Control and Status
  221. // Endpoint 3 Low
  222. #define USB_O_RXCSRH3 0x00000137 // USB Receive Control and Status
  223. // Endpoint 3 High
  224. #define USB_O_RXCOUNT3 0x00000138 // USB Receive Byte Count Endpoint
  225. // 3
  226. #define USB_O_TXTYPE3 0x0000013A // USB Host Transmit Configure Type
  227. // Endpoint 3
  228. #define USB_O_TXINTERVAL3 0x0000013B // USB Host Transmit Interval
  229. // Endpoint 3
  230. #define USB_O_RXTYPE3 0x0000013C // USB Host Configure Receive Type
  231. // Endpoint 3
  232. #define USB_O_RXINTERVAL3 0x0000013D // USB Host Receive Polling
  233. // Interval Endpoint 3
  234. #define USB_O_TXMAXP4 0x00000140 // USB Maximum Transmit Data
  235. // Endpoint 4
  236. #define USB_O_TXCSRL4 0x00000142 // USB Transmit Control and Status
  237. // Endpoint 4 Low
  238. #define USB_O_TXCSRH4 0x00000143 // USB Transmit Control and Status
  239. // Endpoint 4 High
  240. #define USB_O_RXMAXP4 0x00000144 // USB Maximum Receive Data
  241. // Endpoint 4
  242. #define USB_O_RXCSRL4 0x00000146 // USB Receive Control and Status
  243. // Endpoint 4 Low
  244. #define USB_O_RXCSRH4 0x00000147 // USB Receive Control and Status
  245. // Endpoint 4 High
  246. #define USB_O_RXCOUNT4 0x00000148 // USB Receive Byte Count Endpoint
  247. // 4
  248. #define USB_O_TXTYPE4 0x0000014A // USB Host Transmit Configure Type
  249. // Endpoint 4
  250. #define USB_O_TXINTERVAL4 0x0000014B // USB Host Transmit Interval
  251. // Endpoint 4
  252. #define USB_O_RXTYPE4 0x0000014C // USB Host Configure Receive Type
  253. // Endpoint 4
  254. #define USB_O_RXINTERVAL4 0x0000014D // USB Host Receive Polling
  255. // Interval Endpoint 4
  256. #define USB_O_TXMAXP5 0x00000150 // USB Maximum Transmit Data
  257. // Endpoint 5
  258. #define USB_O_TXCSRL5 0x00000152 // USB Transmit Control and Status
  259. // Endpoint 5 Low
  260. #define USB_O_TXCSRH5 0x00000153 // USB Transmit Control and Status
  261. // Endpoint 5 High
  262. #define USB_O_RXMAXP5 0x00000154 // USB Maximum Receive Data
  263. // Endpoint 5
  264. #define USB_O_RXCSRL5 0x00000156 // USB Receive Control and Status
  265. // Endpoint 5 Low
  266. #define USB_O_RXCSRH5 0x00000157 // USB Receive Control and Status
  267. // Endpoint 5 High
  268. #define USB_O_RXCOUNT5 0x00000158 // USB Receive Byte Count Endpoint
  269. // 5
  270. #define USB_O_TXTYPE5 0x0000015A // USB Host Transmit Configure Type
  271. // Endpoint 5
  272. #define USB_O_TXINTERVAL5 0x0000015B // USB Host Transmit Interval
  273. // Endpoint 5
  274. #define USB_O_RXTYPE5 0x0000015C // USB Host Configure Receive Type
  275. // Endpoint 5
  276. #define USB_O_RXINTERVAL5 0x0000015D // USB Host Receive Polling
  277. // Interval Endpoint 5
  278. #define USB_O_TXMAXP6 0x00000160 // USB Maximum Transmit Data
  279. // Endpoint 6
  280. #define USB_O_TXCSRL6 0x00000162 // USB Transmit Control and Status
  281. // Endpoint 6 Low
  282. #define USB_O_TXCSRH6 0x00000163 // USB Transmit Control and Status
  283. // Endpoint 6 High
  284. #define USB_O_RXMAXP6 0x00000164 // USB Maximum Receive Data
  285. // Endpoint 6
  286. #define USB_O_RXCSRL6 0x00000166 // USB Receive Control and Status
  287. // Endpoint 6 Low
  288. #define USB_O_RXCSRH6 0x00000167 // USB Receive Control and Status
  289. // Endpoint 6 High
  290. #define USB_O_RXCOUNT6 0x00000168 // USB Receive Byte Count Endpoint
  291. // 6
  292. #define USB_O_TXTYPE6 0x0000016A // USB Host Transmit Configure Type
  293. // Endpoint 6
  294. #define USB_O_TXINTERVAL6 0x0000016B // USB Host Transmit Interval
  295. // Endpoint 6
  296. #define USB_O_RXTYPE6 0x0000016C // USB Host Configure Receive Type
  297. // Endpoint 6
  298. #define USB_O_RXINTERVAL6 0x0000016D // USB Host Receive Polling
  299. // Interval Endpoint 6
  300. #define USB_O_TXMAXP7 0x00000170 // USB Maximum Transmit Data
  301. // Endpoint 7
  302. #define USB_O_TXCSRL7 0x00000172 // USB Transmit Control and Status
  303. // Endpoint 7 Low
  304. #define USB_O_TXCSRH7 0x00000173 // USB Transmit Control and Status
  305. // Endpoint 7 High
  306. #define USB_O_RXMAXP7 0x00000174 // USB Maximum Receive Data
  307. // Endpoint 7
  308. #define USB_O_RXCSRL7 0x00000176 // USB Receive Control and Status
  309. // Endpoint 7 Low
  310. #define USB_O_RXCSRH7 0x00000177 // USB Receive Control and Status
  311. // Endpoint 7 High
  312. #define USB_O_RXCOUNT7 0x00000178 // USB Receive Byte Count Endpoint
  313. // 7
  314. #define USB_O_TXTYPE7 0x0000017A // USB Host Transmit Configure Type
  315. // Endpoint 7
  316. #define USB_O_TXINTERVAL7 0x0000017B // USB Host Transmit Interval
  317. // Endpoint 7
  318. #define USB_O_RXTYPE7 0x0000017C // USB Host Configure Receive Type
  319. // Endpoint 7
  320. #define USB_O_RXINTERVAL7 0x0000017D // USB Host Receive Polling
  321. // Interval Endpoint 7
  322. #define USB_O_DMAINTR 0x00000200 // USB DMA Interrupt
  323. #define USB_O_DMACTL0 0x00000204 // USB DMA Control 0
  324. #define USB_O_DMAADDR0 0x00000208 // USB DMA Address 0
  325. #define USB_O_DMACOUNT0 0x0000020C // USB DMA Count 0
  326. #define USB_O_DMACTL1 0x00000214 // USB DMA Control 1
  327. #define USB_O_DMAADDR1 0x00000218 // USB DMA Address 1
  328. #define USB_O_DMACOUNT1 0x0000021C // USB DMA Count 1
  329. #define USB_O_DMACTL2 0x00000224 // USB DMA Control 2
  330. #define USB_O_DMAADDR2 0x00000228 // USB DMA Address 2
  331. #define USB_O_DMACOUNT2 0x0000022C // USB DMA Count 2
  332. #define USB_O_DMACTL3 0x00000234 // USB DMA Control 3
  333. #define USB_O_DMAADDR3 0x00000238 // USB DMA Address 3
  334. #define USB_O_DMACOUNT3 0x0000023C // USB DMA Count 3
  335. #define USB_O_DMACTL4 0x00000244 // USB DMA Control 4
  336. #define USB_O_DMAADDR4 0x00000248 // USB DMA Address 4
  337. #define USB_O_DMACOUNT4 0x0000024C // USB DMA Count 4
  338. #define USB_O_DMACTL5 0x00000254 // USB DMA Control 5
  339. #define USB_O_DMAADDR5 0x00000258 // USB DMA Address 5
  340. #define USB_O_DMACOUNT5 0x0000025C // USB DMA Count 5
  341. #define USB_O_DMACTL6 0x00000264 // USB DMA Control 6
  342. #define USB_O_DMAADDR6 0x00000268 // USB DMA Address 6
  343. #define USB_O_DMACOUNT6 0x0000026C // USB DMA Count 6
  344. #define USB_O_DMACTL7 0x00000274 // USB DMA Control 7
  345. #define USB_O_DMAADDR7 0x00000278 // USB DMA Address 7
  346. #define USB_O_DMACOUNT7 0x0000027C // USB DMA Count 7
  347. #define USB_O_RQPKTCOUNT1 0x00000304 // USB Request Packet Count in
  348. // Block Transfer Endpoint 1
  349. #define USB_O_RQPKTCOUNT2 0x00000308 // USB Request Packet Count in
  350. // Block Transfer Endpoint 2
  351. #define USB_O_RQPKTCOUNT3 0x0000030C // USB Request Packet Count in
  352. // Block Transfer Endpoint 3
  353. #define USB_O_RQPKTCOUNT4 0x00000310 // USB Request Packet Count in
  354. // Block Transfer Endpoint 4
  355. #define USB_O_RQPKTCOUNT5 0x00000314 // USB Request Packet Count in
  356. // Block Transfer Endpoint 5
  357. #define USB_O_RQPKTCOUNT6 0x00000318 // USB Request Packet Count in
  358. // Block Transfer Endpoint 6
  359. #define USB_O_RQPKTCOUNT7 0x0000031C // USB Request Packet Count in
  360. // Block Transfer Endpoint 7
  361. #define USB_O_RXDPKTBUFDIS 0x00000340 // USB Receive Double Packet Buffer
  362. // Disable
  363. #define USB_O_TXDPKTBUFDIS 0x00000342 // USB Transmit Double Packet
  364. // Buffer Disable
  365. #define USB_O_CTO 0x00000344 // USB Chirp Timeout
  366. #define USB_O_HHSRTN 0x00000346 // USB High Speed to UTM Operating
  367. // Delay
  368. #define USB_O_HSBT 0x00000348 // USB High Speed Time-out Adder
  369. #define USB_O_LPMATTR 0x00000360 // USB LPM Attributes
  370. #define USB_O_LPMCNTRL 0x00000362 // USB LPM Control
  371. #define USB_O_LPMIM 0x00000363 // USB LPM Interrupt Mask
  372. #define USB_O_LPMRIS 0x00000364 // USB LPM Raw Interrupt Status
  373. #define USB_O_LPMFADDR 0x00000365 // USB LPM Function Address
  374. #define USB_O_EPC 0x00000400 // USB External Power Control
  375. #define USB_O_EPCRIS 0x00000404 // USB External Power Control Raw
  376. // Interrupt Status
  377. #define USB_O_EPCIM 0x00000408 // USB External Power Control
  378. // Interrupt Mask
  379. #define USB_O_EPCISC 0x0000040C // USB External Power Control
  380. // Interrupt Status and Clear
  381. #define USB_O_DRRIS 0x00000410 // USB Device RESUME Raw Interrupt
  382. // Status
  383. #define USB_O_DRIM 0x00000414 // USB Device RESUME Interrupt Mask
  384. #define USB_O_DRISC 0x00000418 // USB Device RESUME Interrupt
  385. // Status and Clear
  386. #define USB_O_GPCS 0x0000041C // USB General-Purpose Control and
  387. // Status
  388. #define USB_O_VDC 0x00000430 // USB VBUS Droop Control
  389. #define USB_O_VDCRIS 0x00000434 // USB VBUS Droop Control Raw
  390. // Interrupt Status
  391. #define USB_O_VDCIM 0x00000438 // USB VBUS Droop Control Interrupt
  392. // Mask
  393. #define USB_O_VDCISC 0x0000043C // USB VBUS Droop Control Interrupt
  394. // Status and Clear
  395. #define USB_O_IDVRIS 0x00000444 // USB ID Valid Detect Raw
  396. // Interrupt Status
  397. #define USB_O_IDVIM 0x00000448 // USB ID Valid Detect Interrupt
  398. // Mask
  399. #define USB_O_IDVISC 0x0000044C // USB ID Valid Detect Interrupt
  400. // Status and Clear
  401. #define USB_O_DMASEL 0x00000450 // USB DMA Select
  402. #define USB_O_PP 0x00000FC0 // USB Peripheral Properties
  403. #define USB_O_PC 0x00000FC4 // USB Peripheral Configuration
  404. #define USB_O_CC 0x00000FC8 // USB Clock Configuration
  405. //*****************************************************************************
  406. //
  407. // The following are defines for the bit fields in the USB_O_FADDR register.
  408. //
  409. //*****************************************************************************
  410. #define USB_FADDR_M 0x0000007F // Function Address
  411. #define USB_FADDR_S 0
  412. //*****************************************************************************
  413. //
  414. // The following are defines for the bit fields in the USB_O_POWER register.
  415. //
  416. //*****************************************************************************
  417. #define USB_POWER_ISOUP 0x00000080 // Isochronous Update
  418. #define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
  419. #define USB_POWER_HSENAB 0x00000020 // High Speed Enable
  420. #define USB_POWER_HSMODE 0x00000010 // High Speed Enable
  421. #define USB_POWER_RESET 0x00000008 // RESET Signaling
  422. #define USB_POWER_RESUME 0x00000004 // RESUME Signaling
  423. #define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
  424. #define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
  425. //*****************************************************************************
  426. //
  427. // The following are defines for the bit fields in the USB_O_TXIS register.
  428. //
  429. //*****************************************************************************
  430. #define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
  431. #define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
  432. #define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
  433. #define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
  434. #define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
  435. #define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
  436. #define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
  437. #define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  438. //*****************************************************************************
  439. //
  440. // The following are defines for the bit fields in the USB_O_RXIS register.
  441. //
  442. //*****************************************************************************
  443. #define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
  444. #define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
  445. #define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
  446. #define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
  447. #define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
  448. #define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
  449. #define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
  450. //*****************************************************************************
  451. //
  452. // The following are defines for the bit fields in the USB_O_TXIE register.
  453. //
  454. //*****************************************************************************
  455. #define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
  456. #define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
  457. #define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
  458. #define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
  459. #define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
  460. #define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
  461. #define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
  462. #define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  463. // Enable
  464. //*****************************************************************************
  465. //
  466. // The following are defines for the bit fields in the USB_O_RXIE register.
  467. //
  468. //*****************************************************************************
  469. #define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
  470. #define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
  471. #define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
  472. #define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
  473. #define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
  474. #define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
  475. #define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
  476. //*****************************************************************************
  477. //
  478. // The following are defines for the bit fields in the USB_O_IS register.
  479. //
  480. //*****************************************************************************
  481. #define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
  482. #define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
  483. #define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
  484. #define USB_IS_CONN 0x00000010 // Session Connect
  485. #define USB_IS_SOF 0x00000008 // Start of Frame
  486. #define USB_IS_BABBLE 0x00000004 // Babble Detected
  487. #define USB_IS_RESET 0x00000004 // RESET Signaling Detected
  488. #define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
  489. #define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
  490. //*****************************************************************************
  491. //
  492. // The following are defines for the bit fields in the USB_O_IE register.
  493. //
  494. //*****************************************************************************
  495. #define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
  496. // only)
  497. #define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
  498. // only)
  499. #define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
  500. #define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
  501. #define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
  502. #define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
  503. #define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
  504. #define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
  505. #define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
  506. //*****************************************************************************
  507. //
  508. // The following are defines for the bit fields in the USB_O_FRAME register.
  509. //
  510. //*****************************************************************************
  511. #define USB_FRAME_M 0x000007FF // Frame Number
  512. #define USB_FRAME_S 0
  513. //*****************************************************************************
  514. //
  515. // The following are defines for the bit fields in the USB_O_EPIDX register.
  516. //
  517. //*****************************************************************************
  518. #define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
  519. #define USB_EPIDX_EPIDX_S 0
  520. //*****************************************************************************
  521. //
  522. // The following are defines for the bit fields in the USB_O_TEST register.
  523. //
  524. //*****************************************************************************
  525. #define USB_TEST_FORCEH 0x00000080 // Force Host Mode
  526. #define USB_TEST_FIFOACC 0x00000040 // FIFO Access
  527. #define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
  528. #define USB_TEST_FORCEHS 0x00000010 // Force High-Speed Mode
  529. #define USB_TEST_TESTPKT 0x00000008 // Test Packet Mode Enable
  530. #define USB_TEST_TESTK 0x00000004 // Test_K Mode Enable
  531. #define USB_TEST_TESTJ 0x00000002 // Test_J Mode Enable
  532. #define USB_TEST_TESTSE0NAK 0x00000001 // Test_SE0_NAK Test Mode Enable
  533. //*****************************************************************************
  534. //
  535. // The following are defines for the bit fields in the USB_O_FIFO0 register.
  536. //
  537. //*****************************************************************************
  538. #define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
  539. #define USB_FIFO0_EPDATA_S 0
  540. //*****************************************************************************
  541. //
  542. // The following are defines for the bit fields in the USB_O_FIFO1 register.
  543. //
  544. //*****************************************************************************
  545. #define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
  546. #define USB_FIFO1_EPDATA_S 0
  547. //*****************************************************************************
  548. //
  549. // The following are defines for the bit fields in the USB_O_FIFO2 register.
  550. //
  551. //*****************************************************************************
  552. #define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
  553. #define USB_FIFO2_EPDATA_S 0
  554. //*****************************************************************************
  555. //
  556. // The following are defines for the bit fields in the USB_O_FIFO3 register.
  557. //
  558. //*****************************************************************************
  559. #define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
  560. #define USB_FIFO3_EPDATA_S 0
  561. //*****************************************************************************
  562. //
  563. // The following are defines for the bit fields in the USB_O_FIFO4 register.
  564. //
  565. //*****************************************************************************
  566. #define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
  567. #define USB_FIFO4_EPDATA_S 0
  568. //*****************************************************************************
  569. //
  570. // The following are defines for the bit fields in the USB_O_FIFO5 register.
  571. //
  572. //*****************************************************************************
  573. #define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
  574. #define USB_FIFO5_EPDATA_S 0
  575. //*****************************************************************************
  576. //
  577. // The following are defines for the bit fields in the USB_O_FIFO6 register.
  578. //
  579. //*****************************************************************************
  580. #define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
  581. #define USB_FIFO6_EPDATA_S 0
  582. //*****************************************************************************
  583. //
  584. // The following are defines for the bit fields in the USB_O_FIFO7 register.
  585. //
  586. //*****************************************************************************
  587. #define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
  588. #define USB_FIFO7_EPDATA_S 0
  589. //*****************************************************************************
  590. //
  591. // The following are defines for the bit fields in the USB_O_DEVCTL register.
  592. //
  593. //*****************************************************************************
  594. #define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
  595. #define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
  596. #define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
  597. #define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
  598. #define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
  599. #define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
  600. #define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
  601. #define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
  602. #define USB_DEVCTL_HOST 0x00000004 // Host Mode
  603. #define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
  604. #define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
  605. //*****************************************************************************
  606. //
  607. // The following are defines for the bit fields in the USB_O_CCONF register.
  608. //
  609. //*****************************************************************************
  610. #define USB_CCONF_TXEDMA 0x00000002 // TX Early DMA Enable
  611. #define USB_CCONF_RXEDMA 0x00000001 // TX Early DMA Enable
  612. //*****************************************************************************
  613. //
  614. // The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
  615. //
  616. //*****************************************************************************
  617. #define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  618. #define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  619. #define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
  620. #define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
  621. #define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
  622. #define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
  623. #define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
  624. #define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
  625. #define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
  626. #define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
  627. #define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
  628. //*****************************************************************************
  629. //
  630. // The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
  631. //
  632. //*****************************************************************************
  633. #define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  634. #define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  635. #define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
  636. #define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
  637. #define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
  638. #define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
  639. #define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
  640. #define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
  641. #define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
  642. #define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
  643. #define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
  644. //*****************************************************************************
  645. //
  646. // The following are defines for the bit fields in the USB_O_TXFIFOADD
  647. // register.
  648. //
  649. //*****************************************************************************
  650. #define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  651. #define USB_TXFIFOADD_ADDR_S 0
  652. //*****************************************************************************
  653. //
  654. // The following are defines for the bit fields in the USB_O_RXFIFOADD
  655. // register.
  656. //
  657. //*****************************************************************************
  658. #define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  659. #define USB_RXFIFOADD_ADDR_S 0
  660. //*****************************************************************************
  661. //
  662. // The following are defines for the bit fields in the USB_O_ULPIVBUSCTL
  663. // register.
  664. //
  665. //*****************************************************************************
  666. #define USB_ULPIVBUSCTL_USEEXTVBUSIND \
  667. 0x00000002 // Use External VBUS Indicator
  668. #define USB_ULPIVBUSCTL_USEEXTVBUS \
  669. 0x00000001 // Use External VBUS
  670. //*****************************************************************************
  671. //
  672. // The following are defines for the bit fields in the USB_O_ULPIREGDATA
  673. // register.
  674. //
  675. //*****************************************************************************
  676. #define USB_ULPIREGDATA_REGDATA_M \
  677. 0x000000FF // Register Data
  678. #define USB_ULPIREGDATA_REGDATA_S \
  679. 0
  680. //*****************************************************************************
  681. //
  682. // The following are defines for the bit fields in the USB_O_ULPIREGADDR
  683. // register.
  684. //
  685. //*****************************************************************************
  686. #define USB_ULPIREGADDR_ADDR_M 0x000000FF // Register Address
  687. #define USB_ULPIREGADDR_ADDR_S 0
  688. //*****************************************************************************
  689. //
  690. // The following are defines for the bit fields in the USB_O_ULPIREGCTL
  691. // register.
  692. //
  693. //*****************************************************************************
  694. #define USB_ULPIREGCTL_RDWR 0x00000004 // Read/Write Control
  695. #define USB_ULPIREGCTL_REGCMPLT 0x00000002 // Register Access Complete
  696. #define USB_ULPIREGCTL_REGACC 0x00000001 // Initiate Register Access
  697. //*****************************************************************************
  698. //
  699. // The following are defines for the bit fields in the USB_O_EPINFO register.
  700. //
  701. //*****************************************************************************
  702. #define USB_EPINFO_RXEP_M 0x000000F0 // RX Endpoints
  703. #define USB_EPINFO_TXEP_M 0x0000000F // TX Endpoints
  704. #define USB_EPINFO_RXEP_S 4
  705. #define USB_EPINFO_TXEP_S 0
  706. //*****************************************************************************
  707. //
  708. // The following are defines for the bit fields in the USB_O_RAMINFO register.
  709. //
  710. //*****************************************************************************
  711. #define USB_RAMINFO_DMACHAN_M 0x000000F0 // DMA Channels
  712. #define USB_RAMINFO_RAMBITS_M 0x0000000F // RAM Address Bus Width
  713. #define USB_RAMINFO_DMACHAN_S 4
  714. #define USB_RAMINFO_RAMBITS_S 0
  715. //*****************************************************************************
  716. //
  717. // The following are defines for the bit fields in the USB_O_CONTIM register.
  718. //
  719. //*****************************************************************************
  720. #define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
  721. #define USB_CONTIM_WTID_M 0x0000000F // Wait ID
  722. #define USB_CONTIM_WTCON_S 4
  723. #define USB_CONTIM_WTID_S 0
  724. //*****************************************************************************
  725. //
  726. // The following are defines for the bit fields in the USB_O_VPLEN register.
  727. //
  728. //*****************************************************************************
  729. #define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
  730. #define USB_VPLEN_VPLEN_S 0
  731. //*****************************************************************************
  732. //
  733. // The following are defines for the bit fields in the USB_O_HSEOF register.
  734. //
  735. //*****************************************************************************
  736. #define USB_HSEOF_HSEOFG_M 0x000000FF // HIgh-Speed End-of-Frame Gap
  737. #define USB_HSEOF_HSEOFG_S 0
  738. //*****************************************************************************
  739. //
  740. // The following are defines for the bit fields in the USB_O_FSEOF register.
  741. //
  742. //*****************************************************************************
  743. #define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
  744. #define USB_FSEOF_FSEOFG_S 0
  745. //*****************************************************************************
  746. //
  747. // The following are defines for the bit fields in the USB_O_LSEOF register.
  748. //
  749. //*****************************************************************************
  750. #define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
  751. #define USB_LSEOF_LSEOFG_S 0
  752. //*****************************************************************************
  753. //
  754. // The following are defines for the bit fields in the USB_O_TXFUNCADDR0
  755. // register.
  756. //
  757. //*****************************************************************************
  758. #define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
  759. #define USB_TXFUNCADDR0_ADDR_S 0
  760. //*****************************************************************************
  761. //
  762. // The following are defines for the bit fields in the USB_O_TXHUBADDR0
  763. // register.
  764. //
  765. //*****************************************************************************
  766. #define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
  767. #define USB_TXHUBADDR0_ADDR_S 0
  768. //*****************************************************************************
  769. //
  770. // The following are defines for the bit fields in the USB_O_TXHUBPORT0
  771. // register.
  772. //
  773. //*****************************************************************************
  774. #define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
  775. #define USB_TXHUBPORT0_PORT_S 0
  776. //*****************************************************************************
  777. //
  778. // The following are defines for the bit fields in the USB_O_TXFUNCADDR1
  779. // register.
  780. //
  781. //*****************************************************************************
  782. #define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  783. #define USB_TXFUNCADDR1_ADDR_S 0
  784. //*****************************************************************************
  785. //
  786. // The following are defines for the bit fields in the USB_O_TXHUBADDR1
  787. // register.
  788. //
  789. //*****************************************************************************
  790. #define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  791. #define USB_TXHUBADDR1_ADDR_S 0
  792. //*****************************************************************************
  793. //
  794. // The following are defines for the bit fields in the USB_O_TXHUBPORT1
  795. // register.
  796. //
  797. //*****************************************************************************
  798. #define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
  799. #define USB_TXHUBPORT1_PORT_S 0
  800. //*****************************************************************************
  801. //
  802. // The following are defines for the bit fields in the USB_O_RXFUNCADDR1
  803. // register.
  804. //
  805. //*****************************************************************************
  806. #define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  807. #define USB_RXFUNCADDR1_ADDR_S 0
  808. //*****************************************************************************
  809. //
  810. // The following are defines for the bit fields in the USB_O_RXHUBADDR1
  811. // register.
  812. //
  813. //*****************************************************************************
  814. #define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  815. #define USB_RXHUBADDR1_ADDR_S 0
  816. //*****************************************************************************
  817. //
  818. // The following are defines for the bit fields in the USB_O_RXHUBPORT1
  819. // register.
  820. //
  821. //*****************************************************************************
  822. #define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
  823. #define USB_RXHUBPORT1_PORT_S 0
  824. //*****************************************************************************
  825. //
  826. // The following are defines for the bit fields in the USB_O_TXFUNCADDR2
  827. // register.
  828. //
  829. //*****************************************************************************
  830. #define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  831. #define USB_TXFUNCADDR2_ADDR_S 0
  832. //*****************************************************************************
  833. //
  834. // The following are defines for the bit fields in the USB_O_TXHUBADDR2
  835. // register.
  836. //
  837. //*****************************************************************************
  838. #define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  839. #define USB_TXHUBADDR2_ADDR_S 0
  840. //*****************************************************************************
  841. //
  842. // The following are defines for the bit fields in the USB_O_TXHUBPORT2
  843. // register.
  844. //
  845. //*****************************************************************************
  846. #define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
  847. #define USB_TXHUBPORT2_PORT_S 0
  848. //*****************************************************************************
  849. //
  850. // The following are defines for the bit fields in the USB_O_RXFUNCADDR2
  851. // register.
  852. //
  853. //*****************************************************************************
  854. #define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  855. #define USB_RXFUNCADDR2_ADDR_S 0
  856. //*****************************************************************************
  857. //
  858. // The following are defines for the bit fields in the USB_O_RXHUBADDR2
  859. // register.
  860. //
  861. //*****************************************************************************
  862. #define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  863. #define USB_RXHUBADDR2_ADDR_S 0
  864. //*****************************************************************************
  865. //
  866. // The following are defines for the bit fields in the USB_O_RXHUBPORT2
  867. // register.
  868. //
  869. //*****************************************************************************
  870. #define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
  871. #define USB_RXHUBPORT2_PORT_S 0
  872. //*****************************************************************************
  873. //
  874. // The following are defines for the bit fields in the USB_O_TXFUNCADDR3
  875. // register.
  876. //
  877. //*****************************************************************************
  878. #define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  879. #define USB_TXFUNCADDR3_ADDR_S 0
  880. //*****************************************************************************
  881. //
  882. // The following are defines for the bit fields in the USB_O_TXHUBADDR3
  883. // register.
  884. //
  885. //*****************************************************************************
  886. #define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  887. #define USB_TXHUBADDR3_ADDR_S 0
  888. //*****************************************************************************
  889. //
  890. // The following are defines for the bit fields in the USB_O_TXHUBPORT3
  891. // register.
  892. //
  893. //*****************************************************************************
  894. #define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
  895. #define USB_TXHUBPORT3_PORT_S 0
  896. //*****************************************************************************
  897. //
  898. // The following are defines for the bit fields in the USB_O_RXFUNCADDR3
  899. // register.
  900. //
  901. //*****************************************************************************
  902. #define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  903. #define USB_RXFUNCADDR3_ADDR_S 0
  904. //*****************************************************************************
  905. //
  906. // The following are defines for the bit fields in the USB_O_RXHUBADDR3
  907. // register.
  908. //
  909. //*****************************************************************************
  910. #define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  911. #define USB_RXHUBADDR3_ADDR_S 0
  912. //*****************************************************************************
  913. //
  914. // The following are defines for the bit fields in the USB_O_RXHUBPORT3
  915. // register.
  916. //
  917. //*****************************************************************************
  918. #define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
  919. #define USB_RXHUBPORT3_PORT_S 0
  920. //*****************************************************************************
  921. //
  922. // The following are defines for the bit fields in the USB_O_TXFUNCADDR4
  923. // register.
  924. //
  925. //*****************************************************************************
  926. #define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  927. #define USB_TXFUNCADDR4_ADDR_S 0
  928. //*****************************************************************************
  929. //
  930. // The following are defines for the bit fields in the USB_O_TXHUBADDR4
  931. // register.
  932. //
  933. //*****************************************************************************
  934. #define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  935. #define USB_TXHUBADDR4_ADDR_S 0
  936. //*****************************************************************************
  937. //
  938. // The following are defines for the bit fields in the USB_O_TXHUBPORT4
  939. // register.
  940. //
  941. //*****************************************************************************
  942. #define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
  943. #define USB_TXHUBPORT4_PORT_S 0
  944. //*****************************************************************************
  945. //
  946. // The following are defines for the bit fields in the USB_O_RXFUNCADDR4
  947. // register.
  948. //
  949. //*****************************************************************************
  950. #define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  951. #define USB_RXFUNCADDR4_ADDR_S 0
  952. //*****************************************************************************
  953. //
  954. // The following are defines for the bit fields in the USB_O_RXHUBADDR4
  955. // register.
  956. //
  957. //*****************************************************************************
  958. #define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  959. #define USB_RXHUBADDR4_ADDR_S 0
  960. //*****************************************************************************
  961. //
  962. // The following are defines for the bit fields in the USB_O_RXHUBPORT4
  963. // register.
  964. //
  965. //*****************************************************************************
  966. #define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
  967. #define USB_RXHUBPORT4_PORT_S 0
  968. //*****************************************************************************
  969. //
  970. // The following are defines for the bit fields in the USB_O_TXFUNCADDR5
  971. // register.
  972. //
  973. //*****************************************************************************
  974. #define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  975. #define USB_TXFUNCADDR5_ADDR_S 0
  976. //*****************************************************************************
  977. //
  978. // The following are defines for the bit fields in the USB_O_TXHUBADDR5
  979. // register.
  980. //
  981. //*****************************************************************************
  982. #define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  983. #define USB_TXHUBADDR5_ADDR_S 0
  984. //*****************************************************************************
  985. //
  986. // The following are defines for the bit fields in the USB_O_TXHUBPORT5
  987. // register.
  988. //
  989. //*****************************************************************************
  990. #define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
  991. #define USB_TXHUBPORT5_PORT_S 0
  992. //*****************************************************************************
  993. //
  994. // The following are defines for the bit fields in the USB_O_RXFUNCADDR5
  995. // register.
  996. //
  997. //*****************************************************************************
  998. #define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  999. #define USB_RXFUNCADDR5_ADDR_S 0
  1000. //*****************************************************************************
  1001. //
  1002. // The following are defines for the bit fields in the USB_O_RXHUBADDR5
  1003. // register.
  1004. //
  1005. //*****************************************************************************
  1006. #define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  1007. #define USB_RXHUBADDR5_ADDR_S 0
  1008. //*****************************************************************************
  1009. //
  1010. // The following are defines for the bit fields in the USB_O_RXHUBPORT5
  1011. // register.
  1012. //
  1013. //*****************************************************************************
  1014. #define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
  1015. #define USB_RXHUBPORT5_PORT_S 0
  1016. //*****************************************************************************
  1017. //
  1018. // The following are defines for the bit fields in the USB_O_TXFUNCADDR6
  1019. // register.
  1020. //
  1021. //*****************************************************************************
  1022. #define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1023. #define USB_TXFUNCADDR6_ADDR_S 0
  1024. //*****************************************************************************
  1025. //
  1026. // The following are defines for the bit fields in the USB_O_TXHUBADDR6
  1027. // register.
  1028. //
  1029. //*****************************************************************************
  1030. #define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1031. #define USB_TXHUBADDR6_ADDR_S 0
  1032. //*****************************************************************************
  1033. //
  1034. // The following are defines for the bit fields in the USB_O_TXHUBPORT6
  1035. // register.
  1036. //
  1037. //*****************************************************************************
  1038. #define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1039. #define USB_TXHUBPORT6_PORT_S 0
  1040. //*****************************************************************************
  1041. //
  1042. // The following are defines for the bit fields in the USB_O_RXFUNCADDR6
  1043. // register.
  1044. //
  1045. //*****************************************************************************
  1046. #define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1047. #define USB_RXFUNCADDR6_ADDR_S 0
  1048. //*****************************************************************************
  1049. //
  1050. // The following are defines for the bit fields in the USB_O_RXHUBADDR6
  1051. // register.
  1052. //
  1053. //*****************************************************************************
  1054. #define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1055. #define USB_RXHUBADDR6_ADDR_S 0
  1056. //*****************************************************************************
  1057. //
  1058. // The following are defines for the bit fields in the USB_O_RXHUBPORT6
  1059. // register.
  1060. //
  1061. //*****************************************************************************
  1062. #define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1063. #define USB_RXHUBPORT6_PORT_S 0
  1064. //*****************************************************************************
  1065. //
  1066. // The following are defines for the bit fields in the USB_O_TXFUNCADDR7
  1067. // register.
  1068. //
  1069. //*****************************************************************************
  1070. #define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1071. #define USB_TXFUNCADDR7_ADDR_S 0
  1072. //*****************************************************************************
  1073. //
  1074. // The following are defines for the bit fields in the USB_O_TXHUBADDR7
  1075. // register.
  1076. //
  1077. //*****************************************************************************
  1078. #define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1079. #define USB_TXHUBADDR7_ADDR_S 0
  1080. //*****************************************************************************
  1081. //
  1082. // The following are defines for the bit fields in the USB_O_TXHUBPORT7
  1083. // register.
  1084. //
  1085. //*****************************************************************************
  1086. #define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1087. #define USB_TXHUBPORT7_PORT_S 0
  1088. //*****************************************************************************
  1089. //
  1090. // The following are defines for the bit fields in the USB_O_RXFUNCADDR7
  1091. // register.
  1092. //
  1093. //*****************************************************************************
  1094. #define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1095. #define USB_RXFUNCADDR7_ADDR_S 0
  1096. //*****************************************************************************
  1097. //
  1098. // The following are defines for the bit fields in the USB_O_RXHUBADDR7
  1099. // register.
  1100. //
  1101. //*****************************************************************************
  1102. #define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1103. #define USB_RXHUBADDR7_ADDR_S 0
  1104. //*****************************************************************************
  1105. //
  1106. // The following are defines for the bit fields in the USB_O_RXHUBPORT7
  1107. // register.
  1108. //
  1109. //*****************************************************************************
  1110. #define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1111. #define USB_RXHUBPORT7_PORT_S 0
  1112. //*****************************************************************************
  1113. //
  1114. // The following are defines for the bit fields in the USB_O_CSRL0 register.
  1115. //
  1116. //*****************************************************************************
  1117. #define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
  1118. #define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
  1119. #define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
  1120. #define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
  1121. #define USB_CSRL0_REQPKT 0x00000020 // Request Packet
  1122. #define USB_CSRL0_STALL 0x00000020 // Send Stall
  1123. #define USB_CSRL0_SETEND 0x00000010 // Setup End
  1124. #define USB_CSRL0_ERROR 0x00000010 // Error
  1125. #define USB_CSRL0_DATAEND 0x00000008 // Data End
  1126. #define USB_CSRL0_SETUP 0x00000008 // Setup Packet
  1127. #define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
  1128. #define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
  1129. #define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
  1130. //*****************************************************************************
  1131. //
  1132. // The following are defines for the bit fields in the USB_O_CSRH0 register.
  1133. //
  1134. //*****************************************************************************
  1135. #define USB_CSRH0_DISPING 0x00000008 // PING Disable
  1136. #define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
  1137. #define USB_CSRH0_DT 0x00000002 // Data Toggle
  1138. #define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
  1139. //*****************************************************************************
  1140. //
  1141. // The following are defines for the bit fields in the USB_O_COUNT0 register.
  1142. //
  1143. //*****************************************************************************
  1144. #define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
  1145. #define USB_COUNT0_COUNT_S 0
  1146. //*****************************************************************************
  1147. //
  1148. // The following are defines for the bit fields in the USB_O_TYPE0 register.
  1149. //
  1150. //*****************************************************************************
  1151. #define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
  1152. #define USB_TYPE0_SPEED_HIGH 0x00000040 // High
  1153. #define USB_TYPE0_SPEED_FULL 0x00000080 // Full
  1154. #define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
  1155. //*****************************************************************************
  1156. //
  1157. // The following are defines for the bit fields in the USB_O_NAKLMT register.
  1158. //
  1159. //*****************************************************************************
  1160. #define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
  1161. #define USB_NAKLMT_NAKLMT_S 0
  1162. //*****************************************************************************
  1163. //
  1164. // The following are defines for the bit fields in the USB_O_TXMAXP1 register.
  1165. //
  1166. //*****************************************************************************
  1167. #define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1168. #define USB_TXMAXP1_MAXLOAD_S 0
  1169. //*****************************************************************************
  1170. //
  1171. // The following are defines for the bit fields in the USB_O_TXCSRL1 register.
  1172. //
  1173. //*****************************************************************************
  1174. #define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
  1175. #define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
  1176. #define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
  1177. #define USB_TXCSRL1_STALL 0x00000010 // Send STALL
  1178. #define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
  1179. #define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
  1180. #define USB_TXCSRL1_ERROR 0x00000004 // Error
  1181. #define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
  1182. #define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
  1183. #define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
  1184. //*****************************************************************************
  1185. //
  1186. // The following are defines for the bit fields in the USB_O_TXCSRH1 register.
  1187. //
  1188. //*****************************************************************************
  1189. #define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
  1190. #define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1191. #define USB_TXCSRH1_MODE 0x00000020 // Mode
  1192. #define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
  1193. #define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
  1194. #define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
  1195. #define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
  1196. #define USB_TXCSRH1_DT 0x00000001 // Data Toggle
  1197. //*****************************************************************************
  1198. //
  1199. // The following are defines for the bit fields in the USB_O_RXMAXP1 register.
  1200. //
  1201. //*****************************************************************************
  1202. #define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1203. #define USB_RXMAXP1_MAXLOAD_S 0
  1204. //*****************************************************************************
  1205. //
  1206. // The following are defines for the bit fields in the USB_O_RXCSRL1 register.
  1207. //
  1208. //*****************************************************************************
  1209. #define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
  1210. #define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
  1211. #define USB_RXCSRL1_STALL 0x00000020 // Send STALL
  1212. #define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
  1213. #define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
  1214. #define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
  1215. #define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
  1216. #define USB_RXCSRL1_OVER 0x00000004 // Overrun
  1217. #define USB_RXCSRL1_ERROR 0x00000004 // Error
  1218. #define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
  1219. #define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
  1220. //*****************************************************************************
  1221. //
  1222. // The following are defines for the bit fields in the USB_O_RXCSRH1 register.
  1223. //
  1224. //*****************************************************************************
  1225. #define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
  1226. #define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
  1227. #define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1228. #define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
  1229. #define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
  1230. #define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
  1231. #define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
  1232. #define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
  1233. #define USB_RXCSRH1_DT 0x00000002 // Data Toggle
  1234. #define USB_RXCSRH1_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1235. // Status
  1236. //*****************************************************************************
  1237. //
  1238. // The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
  1239. //
  1240. //*****************************************************************************
  1241. #define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
  1242. #define USB_RXCOUNT1_COUNT_S 0
  1243. //*****************************************************************************
  1244. //
  1245. // The following are defines for the bit fields in the USB_O_TXTYPE1 register.
  1246. //
  1247. //*****************************************************************************
  1248. #define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  1249. #define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
  1250. #define USB_TXTYPE1_SPEED_HIGH 0x00000040 // High
  1251. #define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
  1252. #define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
  1253. #define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
  1254. #define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
  1255. #define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  1256. #define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
  1257. #define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
  1258. #define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  1259. #define USB_TXTYPE1_TEP_S 0
  1260. //*****************************************************************************
  1261. //
  1262. // The following are defines for the bit fields in the USB_O_TXINTERVAL1
  1263. // register.
  1264. //
  1265. //*****************************************************************************
  1266. #define USB_TXINTERVAL1_NAKLMT_M \
  1267. 0x000000FF // NAK Limit
  1268. #define USB_TXINTERVAL1_TXPOLL_M \
  1269. 0x000000FF // TX Polling
  1270. #define USB_TXINTERVAL1_TXPOLL_S \
  1271. 0
  1272. #define USB_TXINTERVAL1_NAKLMT_S \
  1273. 0
  1274. //*****************************************************************************
  1275. //
  1276. // The following are defines for the bit fields in the USB_O_RXTYPE1 register.
  1277. //
  1278. //*****************************************************************************
  1279. #define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  1280. #define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
  1281. #define USB_RXTYPE1_SPEED_HIGH 0x00000040 // High
  1282. #define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
  1283. #define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
  1284. #define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
  1285. #define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
  1286. #define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  1287. #define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
  1288. #define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
  1289. #define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  1290. #define USB_RXTYPE1_TEP_S 0
  1291. //*****************************************************************************
  1292. //
  1293. // The following are defines for the bit fields in the USB_O_RXINTERVAL1
  1294. // register.
  1295. //
  1296. //*****************************************************************************
  1297. #define USB_RXINTERVAL1_TXPOLL_M \
  1298. 0x000000FF // RX Polling
  1299. #define USB_RXINTERVAL1_NAKLMT_M \
  1300. 0x000000FF // NAK Limit
  1301. #define USB_RXINTERVAL1_TXPOLL_S \
  1302. 0
  1303. #define USB_RXINTERVAL1_NAKLMT_S \
  1304. 0
  1305. //*****************************************************************************
  1306. //
  1307. // The following are defines for the bit fields in the USB_O_TXMAXP2 register.
  1308. //
  1309. //*****************************************************************************
  1310. #define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  1311. #define USB_TXMAXP2_MAXLOAD_S 0
  1312. //*****************************************************************************
  1313. //
  1314. // The following are defines for the bit fields in the USB_O_TXCSRL2 register.
  1315. //
  1316. //*****************************************************************************
  1317. #define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
  1318. #define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
  1319. #define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
  1320. #define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
  1321. #define USB_TXCSRL2_STALL 0x00000010 // Send STALL
  1322. #define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
  1323. #define USB_TXCSRL2_ERROR 0x00000004 // Error
  1324. #define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
  1325. #define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
  1326. #define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
  1327. //*****************************************************************************
  1328. //
  1329. // The following are defines for the bit fields in the USB_O_TXCSRH2 register.
  1330. //
  1331. //*****************************************************************************
  1332. #define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
  1333. #define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
  1334. #define USB_TXCSRH2_MODE 0x00000020 // Mode
  1335. #define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
  1336. #define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
  1337. #define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
  1338. #define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
  1339. #define USB_TXCSRH2_DT 0x00000001 // Data Toggle
  1340. //*****************************************************************************
  1341. //
  1342. // The following are defines for the bit fields in the USB_O_RXMAXP2 register.
  1343. //
  1344. //*****************************************************************************
  1345. #define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  1346. #define USB_RXMAXP2_MAXLOAD_S 0
  1347. //*****************************************************************************
  1348. //
  1349. // The following are defines for the bit fields in the USB_O_RXCSRL2 register.
  1350. //
  1351. //*****************************************************************************
  1352. #define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
  1353. #define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
  1354. #define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
  1355. #define USB_RXCSRL2_STALL 0x00000020 // Send STALL
  1356. #define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
  1357. #define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
  1358. #define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
  1359. #define USB_RXCSRL2_ERROR 0x00000004 // Error
  1360. #define USB_RXCSRL2_OVER 0x00000004 // Overrun
  1361. #define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
  1362. #define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
  1363. //*****************************************************************************
  1364. //
  1365. // The following are defines for the bit fields in the USB_O_RXCSRH2 register.
  1366. //
  1367. //*****************************************************************************
  1368. #define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
  1369. #define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
  1370. #define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
  1371. #define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
  1372. #define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
  1373. #define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
  1374. #define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
  1375. #define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
  1376. #define USB_RXCSRH2_DT 0x00000002 // Data Toggle
  1377. #define USB_RXCSRH2_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1378. // Status
  1379. //*****************************************************************************
  1380. //
  1381. // The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
  1382. //
  1383. //*****************************************************************************
  1384. #define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
  1385. #define USB_RXCOUNT2_COUNT_S 0
  1386. //*****************************************************************************
  1387. //
  1388. // The following are defines for the bit fields in the USB_O_TXTYPE2 register.
  1389. //
  1390. //*****************************************************************************
  1391. #define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  1392. #define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
  1393. #define USB_TXTYPE2_SPEED_HIGH 0x00000040 // High
  1394. #define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
  1395. #define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
  1396. #define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
  1397. #define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
  1398. #define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  1399. #define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
  1400. #define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
  1401. #define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  1402. #define USB_TXTYPE2_TEP_S 0
  1403. //*****************************************************************************
  1404. //
  1405. // The following are defines for the bit fields in the USB_O_TXINTERVAL2
  1406. // register.
  1407. //
  1408. //*****************************************************************************
  1409. #define USB_TXINTERVAL2_TXPOLL_M \
  1410. 0x000000FF // TX Polling
  1411. #define USB_TXINTERVAL2_NAKLMT_M \
  1412. 0x000000FF // NAK Limit
  1413. #define USB_TXINTERVAL2_NAKLMT_S \
  1414. 0
  1415. #define USB_TXINTERVAL2_TXPOLL_S \
  1416. 0
  1417. //*****************************************************************************
  1418. //
  1419. // The following are defines for the bit fields in the USB_O_RXTYPE2 register.
  1420. //
  1421. //*****************************************************************************
  1422. #define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  1423. #define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
  1424. #define USB_RXTYPE2_SPEED_HIGH 0x00000040 // High
  1425. #define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
  1426. #define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
  1427. #define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
  1428. #define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
  1429. #define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  1430. #define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
  1431. #define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
  1432. #define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  1433. #define USB_RXTYPE2_TEP_S 0
  1434. //*****************************************************************************
  1435. //
  1436. // The following are defines for the bit fields in the USB_O_RXINTERVAL2
  1437. // register.
  1438. //
  1439. //*****************************************************************************
  1440. #define USB_RXINTERVAL2_TXPOLL_M \
  1441. 0x000000FF // RX Polling
  1442. #define USB_RXINTERVAL2_NAKLMT_M \
  1443. 0x000000FF // NAK Limit
  1444. #define USB_RXINTERVAL2_TXPOLL_S \
  1445. 0
  1446. #define USB_RXINTERVAL2_NAKLMT_S \
  1447. 0
  1448. //*****************************************************************************
  1449. //
  1450. // The following are defines for the bit fields in the USB_O_TXMAXP3 register.
  1451. //
  1452. //*****************************************************************************
  1453. #define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  1454. #define USB_TXMAXP3_MAXLOAD_S 0
  1455. //*****************************************************************************
  1456. //
  1457. // The following are defines for the bit fields in the USB_O_TXCSRL3 register.
  1458. //
  1459. //*****************************************************************************
  1460. #define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
  1461. #define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
  1462. #define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
  1463. #define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
  1464. #define USB_TXCSRL3_STALL 0x00000010 // Send STALL
  1465. #define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
  1466. #define USB_TXCSRL3_ERROR 0x00000004 // Error
  1467. #define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
  1468. #define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
  1469. #define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
  1470. //*****************************************************************************
  1471. //
  1472. // The following are defines for the bit fields in the USB_O_TXCSRH3 register.
  1473. //
  1474. //*****************************************************************************
  1475. #define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
  1476. #define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
  1477. #define USB_TXCSRH3_MODE 0x00000020 // Mode
  1478. #define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
  1479. #define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
  1480. #define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
  1481. #define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
  1482. #define USB_TXCSRH3_DT 0x00000001 // Data Toggle
  1483. //*****************************************************************************
  1484. //
  1485. // The following are defines for the bit fields in the USB_O_RXMAXP3 register.
  1486. //
  1487. //*****************************************************************************
  1488. #define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  1489. #define USB_RXMAXP3_MAXLOAD_S 0
  1490. //*****************************************************************************
  1491. //
  1492. // The following are defines for the bit fields in the USB_O_RXCSRL3 register.
  1493. //
  1494. //*****************************************************************************
  1495. #define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
  1496. #define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
  1497. #define USB_RXCSRL3_STALL 0x00000020 // Send STALL
  1498. #define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
  1499. #define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
  1500. #define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
  1501. #define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
  1502. #define USB_RXCSRL3_ERROR 0x00000004 // Error
  1503. #define USB_RXCSRL3_OVER 0x00000004 // Overrun
  1504. #define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
  1505. #define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
  1506. //*****************************************************************************
  1507. //
  1508. // The following are defines for the bit fields in the USB_O_RXCSRH3 register.
  1509. //
  1510. //*****************************************************************************
  1511. #define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
  1512. #define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
  1513. #define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
  1514. #define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
  1515. #define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
  1516. #define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
  1517. #define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
  1518. #define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
  1519. #define USB_RXCSRH3_DT 0x00000002 // Data Toggle
  1520. #define USB_RXCSRH3_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1521. // Status
  1522. //*****************************************************************************
  1523. //
  1524. // The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
  1525. //
  1526. //*****************************************************************************
  1527. #define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
  1528. #define USB_RXCOUNT3_COUNT_S 0
  1529. //*****************************************************************************
  1530. //
  1531. // The following are defines for the bit fields in the USB_O_TXTYPE3 register.
  1532. //
  1533. //*****************************************************************************
  1534. #define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  1535. #define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
  1536. #define USB_TXTYPE3_SPEED_HIGH 0x00000040 // High
  1537. #define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
  1538. #define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
  1539. #define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
  1540. #define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
  1541. #define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  1542. #define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
  1543. #define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
  1544. #define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  1545. #define USB_TXTYPE3_TEP_S 0
  1546. //*****************************************************************************
  1547. //
  1548. // The following are defines for the bit fields in the USB_O_TXINTERVAL3
  1549. // register.
  1550. //
  1551. //*****************************************************************************
  1552. #define USB_TXINTERVAL3_TXPOLL_M \
  1553. 0x000000FF // TX Polling
  1554. #define USB_TXINTERVAL3_NAKLMT_M \
  1555. 0x000000FF // NAK Limit
  1556. #define USB_TXINTERVAL3_TXPOLL_S \
  1557. 0
  1558. #define USB_TXINTERVAL3_NAKLMT_S \
  1559. 0
  1560. //*****************************************************************************
  1561. //
  1562. // The following are defines for the bit fields in the USB_O_RXTYPE3 register.
  1563. //
  1564. //*****************************************************************************
  1565. #define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  1566. #define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
  1567. #define USB_RXTYPE3_SPEED_HIGH 0x00000040 // High
  1568. #define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
  1569. #define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
  1570. #define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
  1571. #define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
  1572. #define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  1573. #define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
  1574. #define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
  1575. #define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  1576. #define USB_RXTYPE3_TEP_S 0
  1577. //*****************************************************************************
  1578. //
  1579. // The following are defines for the bit fields in the USB_O_RXINTERVAL3
  1580. // register.
  1581. //
  1582. //*****************************************************************************
  1583. #define USB_RXINTERVAL3_TXPOLL_M \
  1584. 0x000000FF // RX Polling
  1585. #define USB_RXINTERVAL3_NAKLMT_M \
  1586. 0x000000FF // NAK Limit
  1587. #define USB_RXINTERVAL3_TXPOLL_S \
  1588. 0
  1589. #define USB_RXINTERVAL3_NAKLMT_S \
  1590. 0
  1591. //*****************************************************************************
  1592. //
  1593. // The following are defines for the bit fields in the USB_O_TXMAXP4 register.
  1594. //
  1595. //*****************************************************************************
  1596. #define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  1597. #define USB_TXMAXP4_MAXLOAD_S 0
  1598. //*****************************************************************************
  1599. //
  1600. // The following are defines for the bit fields in the USB_O_TXCSRL4 register.
  1601. //
  1602. //*****************************************************************************
  1603. #define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
  1604. #define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
  1605. #define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
  1606. #define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
  1607. #define USB_TXCSRL4_STALL 0x00000010 // Send STALL
  1608. #define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
  1609. #define USB_TXCSRL4_ERROR 0x00000004 // Error
  1610. #define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
  1611. #define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
  1612. #define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
  1613. //*****************************************************************************
  1614. //
  1615. // The following are defines for the bit fields in the USB_O_TXCSRH4 register.
  1616. //
  1617. //*****************************************************************************
  1618. #define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
  1619. #define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
  1620. #define USB_TXCSRH4_MODE 0x00000020 // Mode
  1621. #define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
  1622. #define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
  1623. #define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
  1624. #define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
  1625. #define USB_TXCSRH4_DT 0x00000001 // Data Toggle
  1626. //*****************************************************************************
  1627. //
  1628. // The following are defines for the bit fields in the USB_O_RXMAXP4 register.
  1629. //
  1630. //*****************************************************************************
  1631. #define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  1632. #define USB_RXMAXP4_MAXLOAD_S 0
  1633. //*****************************************************************************
  1634. //
  1635. // The following are defines for the bit fields in the USB_O_RXCSRL4 register.
  1636. //
  1637. //*****************************************************************************
  1638. #define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
  1639. #define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
  1640. #define USB_RXCSRL4_STALL 0x00000020 // Send STALL
  1641. #define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
  1642. #define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
  1643. #define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
  1644. #define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
  1645. #define USB_RXCSRL4_OVER 0x00000004 // Overrun
  1646. #define USB_RXCSRL4_ERROR 0x00000004 // Error
  1647. #define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
  1648. #define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
  1649. //*****************************************************************************
  1650. //
  1651. // The following are defines for the bit fields in the USB_O_RXCSRH4 register.
  1652. //
  1653. //*****************************************************************************
  1654. #define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
  1655. #define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
  1656. #define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
  1657. #define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
  1658. #define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
  1659. #define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
  1660. #define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
  1661. #define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
  1662. #define USB_RXCSRH4_DT 0x00000002 // Data Toggle
  1663. #define USB_RXCSRH4_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1664. // Status
  1665. //*****************************************************************************
  1666. //
  1667. // The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
  1668. //
  1669. //*****************************************************************************
  1670. #define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
  1671. #define USB_RXCOUNT4_COUNT_S 0
  1672. //*****************************************************************************
  1673. //
  1674. // The following are defines for the bit fields in the USB_O_TXTYPE4 register.
  1675. //
  1676. //*****************************************************************************
  1677. #define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  1678. #define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
  1679. #define USB_TXTYPE4_SPEED_HIGH 0x00000040 // High
  1680. #define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
  1681. #define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
  1682. #define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
  1683. #define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
  1684. #define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  1685. #define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
  1686. #define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
  1687. #define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  1688. #define USB_TXTYPE4_TEP_S 0
  1689. //*****************************************************************************
  1690. //
  1691. // The following are defines for the bit fields in the USB_O_TXINTERVAL4
  1692. // register.
  1693. //
  1694. //*****************************************************************************
  1695. #define USB_TXINTERVAL4_TXPOLL_M \
  1696. 0x000000FF // TX Polling
  1697. #define USB_TXINTERVAL4_NAKLMT_M \
  1698. 0x000000FF // NAK Limit
  1699. #define USB_TXINTERVAL4_NAKLMT_S \
  1700. 0
  1701. #define USB_TXINTERVAL4_TXPOLL_S \
  1702. 0
  1703. //*****************************************************************************
  1704. //
  1705. // The following are defines for the bit fields in the USB_O_RXTYPE4 register.
  1706. //
  1707. //*****************************************************************************
  1708. #define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  1709. #define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
  1710. #define USB_RXTYPE4_SPEED_HIGH 0x00000040 // High
  1711. #define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
  1712. #define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
  1713. #define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
  1714. #define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
  1715. #define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  1716. #define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
  1717. #define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
  1718. #define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  1719. #define USB_RXTYPE4_TEP_S 0
  1720. //*****************************************************************************
  1721. //
  1722. // The following are defines for the bit fields in the USB_O_RXINTERVAL4
  1723. // register.
  1724. //
  1725. //*****************************************************************************
  1726. #define USB_RXINTERVAL4_TXPOLL_M \
  1727. 0x000000FF // RX Polling
  1728. #define USB_RXINTERVAL4_NAKLMT_M \
  1729. 0x000000FF // NAK Limit
  1730. #define USB_RXINTERVAL4_NAKLMT_S \
  1731. 0
  1732. #define USB_RXINTERVAL4_TXPOLL_S \
  1733. 0
  1734. //*****************************************************************************
  1735. //
  1736. // The following are defines for the bit fields in the USB_O_TXMAXP5 register.
  1737. //
  1738. //*****************************************************************************
  1739. #define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  1740. #define USB_TXMAXP5_MAXLOAD_S 0
  1741. //*****************************************************************************
  1742. //
  1743. // The following are defines for the bit fields in the USB_O_TXCSRL5 register.
  1744. //
  1745. //*****************************************************************************
  1746. #define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
  1747. #define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
  1748. #define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
  1749. #define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
  1750. #define USB_TXCSRL5_STALL 0x00000010 // Send STALL
  1751. #define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
  1752. #define USB_TXCSRL5_ERROR 0x00000004 // Error
  1753. #define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
  1754. #define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
  1755. #define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
  1756. //*****************************************************************************
  1757. //
  1758. // The following are defines for the bit fields in the USB_O_TXCSRH5 register.
  1759. //
  1760. //*****************************************************************************
  1761. #define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
  1762. #define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
  1763. #define USB_TXCSRH5_MODE 0x00000020 // Mode
  1764. #define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
  1765. #define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
  1766. #define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
  1767. #define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
  1768. #define USB_TXCSRH5_DT 0x00000001 // Data Toggle
  1769. //*****************************************************************************
  1770. //
  1771. // The following are defines for the bit fields in the USB_O_RXMAXP5 register.
  1772. //
  1773. //*****************************************************************************
  1774. #define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  1775. #define USB_RXMAXP5_MAXLOAD_S 0
  1776. //*****************************************************************************
  1777. //
  1778. // The following are defines for the bit fields in the USB_O_RXCSRL5 register.
  1779. //
  1780. //*****************************************************************************
  1781. #define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
  1782. #define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
  1783. #define USB_RXCSRL5_STALL 0x00000020 // Send STALL
  1784. #define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
  1785. #define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
  1786. #define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
  1787. #define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
  1788. #define USB_RXCSRL5_ERROR 0x00000004 // Error
  1789. #define USB_RXCSRL5_OVER 0x00000004 // Overrun
  1790. #define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
  1791. #define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
  1792. //*****************************************************************************
  1793. //
  1794. // The following are defines for the bit fields in the USB_O_RXCSRH5 register.
  1795. //
  1796. //*****************************************************************************
  1797. #define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
  1798. #define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
  1799. #define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
  1800. #define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
  1801. #define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
  1802. #define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
  1803. #define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
  1804. #define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
  1805. #define USB_RXCSRH5_DT 0x00000002 // Data Toggle
  1806. #define USB_RXCSRH5_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1807. // Status
  1808. //*****************************************************************************
  1809. //
  1810. // The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
  1811. //
  1812. //*****************************************************************************
  1813. #define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
  1814. #define USB_RXCOUNT5_COUNT_S 0
  1815. //*****************************************************************************
  1816. //
  1817. // The following are defines for the bit fields in the USB_O_TXTYPE5 register.
  1818. //
  1819. //*****************************************************************************
  1820. #define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  1821. #define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
  1822. #define USB_TXTYPE5_SPEED_HIGH 0x00000040 // High
  1823. #define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
  1824. #define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
  1825. #define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
  1826. #define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
  1827. #define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  1828. #define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
  1829. #define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
  1830. #define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  1831. #define USB_TXTYPE5_TEP_S 0
  1832. //*****************************************************************************
  1833. //
  1834. // The following are defines for the bit fields in the USB_O_TXINTERVAL5
  1835. // register.
  1836. //
  1837. //*****************************************************************************
  1838. #define USB_TXINTERVAL5_TXPOLL_M \
  1839. 0x000000FF // TX Polling
  1840. #define USB_TXINTERVAL5_NAKLMT_M \
  1841. 0x000000FF // NAK Limit
  1842. #define USB_TXINTERVAL5_NAKLMT_S \
  1843. 0
  1844. #define USB_TXINTERVAL5_TXPOLL_S \
  1845. 0
  1846. //*****************************************************************************
  1847. //
  1848. // The following are defines for the bit fields in the USB_O_RXTYPE5 register.
  1849. //
  1850. //*****************************************************************************
  1851. #define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  1852. #define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
  1853. #define USB_RXTYPE5_SPEED_HIGH 0x00000040 // High
  1854. #define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
  1855. #define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
  1856. #define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
  1857. #define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
  1858. #define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  1859. #define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
  1860. #define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
  1861. #define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  1862. #define USB_RXTYPE5_TEP_S 0
  1863. //*****************************************************************************
  1864. //
  1865. // The following are defines for the bit fields in the USB_O_RXINTERVAL5
  1866. // register.
  1867. //
  1868. //*****************************************************************************
  1869. #define USB_RXINTERVAL5_TXPOLL_M \
  1870. 0x000000FF // RX Polling
  1871. #define USB_RXINTERVAL5_NAKLMT_M \
  1872. 0x000000FF // NAK Limit
  1873. #define USB_RXINTERVAL5_TXPOLL_S \
  1874. 0
  1875. #define USB_RXINTERVAL5_NAKLMT_S \
  1876. 0
  1877. //*****************************************************************************
  1878. //
  1879. // The following are defines for the bit fields in the USB_O_TXMAXP6 register.
  1880. //
  1881. //*****************************************************************************
  1882. #define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  1883. #define USB_TXMAXP6_MAXLOAD_S 0
  1884. //*****************************************************************************
  1885. //
  1886. // The following are defines for the bit fields in the USB_O_TXCSRL6 register.
  1887. //
  1888. //*****************************************************************************
  1889. #define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
  1890. #define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
  1891. #define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
  1892. #define USB_TXCSRL6_STALL 0x00000010 // Send STALL
  1893. #define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
  1894. #define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
  1895. #define USB_TXCSRL6_ERROR 0x00000004 // Error
  1896. #define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
  1897. #define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
  1898. #define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
  1899. //*****************************************************************************
  1900. //
  1901. // The following are defines for the bit fields in the USB_O_TXCSRH6 register.
  1902. //
  1903. //*****************************************************************************
  1904. #define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
  1905. #define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
  1906. #define USB_TXCSRH6_MODE 0x00000020 // Mode
  1907. #define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
  1908. #define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
  1909. #define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
  1910. #define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
  1911. #define USB_TXCSRH6_DT 0x00000001 // Data Toggle
  1912. //*****************************************************************************
  1913. //
  1914. // The following are defines for the bit fields in the USB_O_RXMAXP6 register.
  1915. //
  1916. //*****************************************************************************
  1917. #define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  1918. #define USB_RXMAXP6_MAXLOAD_S 0
  1919. //*****************************************************************************
  1920. //
  1921. // The following are defines for the bit fields in the USB_O_RXCSRL6 register.
  1922. //
  1923. //*****************************************************************************
  1924. #define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
  1925. #define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
  1926. #define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
  1927. #define USB_RXCSRL6_STALL 0x00000020 // Send STALL
  1928. #define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
  1929. #define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
  1930. #define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
  1931. #define USB_RXCSRL6_ERROR 0x00000004 // Error
  1932. #define USB_RXCSRL6_OVER 0x00000004 // Overrun
  1933. #define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
  1934. #define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
  1935. //*****************************************************************************
  1936. //
  1937. // The following are defines for the bit fields in the USB_O_RXCSRH6 register.
  1938. //
  1939. //*****************************************************************************
  1940. #define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
  1941. #define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
  1942. #define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
  1943. #define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
  1944. #define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
  1945. #define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
  1946. #define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
  1947. #define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
  1948. #define USB_RXCSRH6_DT 0x00000002 // Data Toggle
  1949. #define USB_RXCSRH6_INCOMPRX 0x00000001 // Incomplete RX Transmission
  1950. // Status
  1951. //*****************************************************************************
  1952. //
  1953. // The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
  1954. //
  1955. //*****************************************************************************
  1956. #define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
  1957. #define USB_RXCOUNT6_COUNT_S 0
  1958. //*****************************************************************************
  1959. //
  1960. // The following are defines for the bit fields in the USB_O_TXTYPE6 register.
  1961. //
  1962. //*****************************************************************************
  1963. #define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  1964. #define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
  1965. #define USB_TXTYPE6_SPEED_HIGH 0x00000040 // High
  1966. #define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
  1967. #define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
  1968. #define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
  1969. #define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
  1970. #define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  1971. #define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
  1972. #define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
  1973. #define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  1974. #define USB_TXTYPE6_TEP_S 0
  1975. //*****************************************************************************
  1976. //
  1977. // The following are defines for the bit fields in the USB_O_TXINTERVAL6
  1978. // register.
  1979. //
  1980. //*****************************************************************************
  1981. #define USB_TXINTERVAL6_TXPOLL_M \
  1982. 0x000000FF // TX Polling
  1983. #define USB_TXINTERVAL6_NAKLMT_M \
  1984. 0x000000FF // NAK Limit
  1985. #define USB_TXINTERVAL6_TXPOLL_S \
  1986. 0
  1987. #define USB_TXINTERVAL6_NAKLMT_S \
  1988. 0
  1989. //*****************************************************************************
  1990. //
  1991. // The following are defines for the bit fields in the USB_O_RXTYPE6 register.
  1992. //
  1993. //*****************************************************************************
  1994. #define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  1995. #define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
  1996. #define USB_RXTYPE6_SPEED_HIGH 0x00000040 // High
  1997. #define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
  1998. #define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
  1999. #define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
  2000. #define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
  2001. #define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  2002. #define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
  2003. #define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
  2004. #define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  2005. #define USB_RXTYPE6_TEP_S 0
  2006. //*****************************************************************************
  2007. //
  2008. // The following are defines for the bit fields in the USB_O_RXINTERVAL6
  2009. // register.
  2010. //
  2011. //*****************************************************************************
  2012. #define USB_RXINTERVAL6_TXPOLL_M \
  2013. 0x000000FF // RX Polling
  2014. #define USB_RXINTERVAL6_NAKLMT_M \
  2015. 0x000000FF // NAK Limit
  2016. #define USB_RXINTERVAL6_NAKLMT_S \
  2017. 0
  2018. #define USB_RXINTERVAL6_TXPOLL_S \
  2019. 0
  2020. //*****************************************************************************
  2021. //
  2022. // The following are defines for the bit fields in the USB_O_TXMAXP7 register.
  2023. //
  2024. //*****************************************************************************
  2025. #define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2026. #define USB_TXMAXP7_MAXLOAD_S 0
  2027. //*****************************************************************************
  2028. //
  2029. // The following are defines for the bit fields in the USB_O_TXCSRL7 register.
  2030. //
  2031. //*****************************************************************************
  2032. #define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
  2033. #define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
  2034. #define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
  2035. #define USB_TXCSRL7_STALL 0x00000010 // Send STALL
  2036. #define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
  2037. #define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
  2038. #define USB_TXCSRL7_ERROR 0x00000004 // Error
  2039. #define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
  2040. #define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
  2041. #define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
  2042. //*****************************************************************************
  2043. //
  2044. // The following are defines for the bit fields in the USB_O_TXCSRH7 register.
  2045. //
  2046. //*****************************************************************************
  2047. #define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
  2048. #define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2049. #define USB_TXCSRH7_MODE 0x00000020 // Mode
  2050. #define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
  2051. #define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
  2052. #define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
  2053. #define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
  2054. #define USB_TXCSRH7_DT 0x00000001 // Data Toggle
  2055. //*****************************************************************************
  2056. //
  2057. // The following are defines for the bit fields in the USB_O_RXMAXP7 register.
  2058. //
  2059. //*****************************************************************************
  2060. #define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2061. #define USB_RXMAXP7_MAXLOAD_S 0
  2062. //*****************************************************************************
  2063. //
  2064. // The following are defines for the bit fields in the USB_O_RXCSRL7 register.
  2065. //
  2066. //*****************************************************************************
  2067. #define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
  2068. #define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
  2069. #define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
  2070. #define USB_RXCSRL7_STALL 0x00000020 // Send STALL
  2071. #define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
  2072. #define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
  2073. #define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
  2074. #define USB_RXCSRL7_ERROR 0x00000004 // Error
  2075. #define USB_RXCSRL7_OVER 0x00000004 // Overrun
  2076. #define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
  2077. #define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
  2078. //*****************************************************************************
  2079. //
  2080. // The following are defines for the bit fields in the USB_O_RXCSRH7 register.
  2081. //
  2082. //*****************************************************************************
  2083. #define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
  2084. #define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2085. #define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
  2086. #define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
  2087. #define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
  2088. #define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
  2089. #define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
  2090. #define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
  2091. #define USB_RXCSRH7_DT 0x00000002 // Data Toggle
  2092. #define USB_RXCSRH7_INCOMPRX 0x00000001 // Incomplete RX Transmission
  2093. // Status
  2094. //*****************************************************************************
  2095. //
  2096. // The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
  2097. //
  2098. //*****************************************************************************
  2099. #define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
  2100. #define USB_RXCOUNT7_COUNT_S 0
  2101. //*****************************************************************************
  2102. //
  2103. // The following are defines for the bit fields in the USB_O_TXTYPE7 register.
  2104. //
  2105. //*****************************************************************************
  2106. #define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2107. #define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
  2108. #define USB_TXTYPE7_SPEED_HIGH 0x00000040 // High
  2109. #define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
  2110. #define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
  2111. #define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
  2112. #define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
  2113. #define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2114. #define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2115. #define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2116. #define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2117. #define USB_TXTYPE7_TEP_S 0
  2118. //*****************************************************************************
  2119. //
  2120. // The following are defines for the bit fields in the USB_O_TXINTERVAL7
  2121. // register.
  2122. //
  2123. //*****************************************************************************
  2124. #define USB_TXINTERVAL7_TXPOLL_M \
  2125. 0x000000FF // TX Polling
  2126. #define USB_TXINTERVAL7_NAKLMT_M \
  2127. 0x000000FF // NAK Limit
  2128. #define USB_TXINTERVAL7_NAKLMT_S \
  2129. 0
  2130. #define USB_TXINTERVAL7_TXPOLL_S \
  2131. 0
  2132. //*****************************************************************************
  2133. //
  2134. // The following are defines for the bit fields in the USB_O_RXTYPE7 register.
  2135. //
  2136. //*****************************************************************************
  2137. #define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2138. #define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
  2139. #define USB_RXTYPE7_SPEED_HIGH 0x00000040 // High
  2140. #define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
  2141. #define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
  2142. #define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
  2143. #define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
  2144. #define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2145. #define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2146. #define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2147. #define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2148. #define USB_RXTYPE7_TEP_S 0
  2149. //*****************************************************************************
  2150. //
  2151. // The following are defines for the bit fields in the USB_O_RXINTERVAL7
  2152. // register.
  2153. //
  2154. //*****************************************************************************
  2155. #define USB_RXINTERVAL7_TXPOLL_M \
  2156. 0x000000FF // RX Polling
  2157. #define USB_RXINTERVAL7_NAKLMT_M \
  2158. 0x000000FF // NAK Limit
  2159. #define USB_RXINTERVAL7_NAKLMT_S \
  2160. 0
  2161. #define USB_RXINTERVAL7_TXPOLL_S \
  2162. 0
  2163. //*****************************************************************************
  2164. //
  2165. // The following are defines for the bit fields in the USB_O_DMAINTR register.
  2166. //
  2167. //*****************************************************************************
  2168. #define USB_DMAINTR_CH7 0x00000080 // Channel 7 DMA Interrupt
  2169. #define USB_DMAINTR_CH6 0x00000040 // Channel 6 DMA Interrupt
  2170. #define USB_DMAINTR_CH5 0x00000020 // Channel 5 DMA Interrupt
  2171. #define USB_DMAINTR_CH4 0x00000010 // Channel 4 DMA Interrupt
  2172. #define USB_DMAINTR_CH3 0x00000008 // Channel 3 DMA Interrupt
  2173. #define USB_DMAINTR_CH2 0x00000004 // Channel 2 DMA Interrupt
  2174. #define USB_DMAINTR_CH1 0x00000002 // Channel 1 DMA Interrupt
  2175. #define USB_DMAINTR_CH0 0x00000001 // Channel 0 DMA Interrupt
  2176. //*****************************************************************************
  2177. //
  2178. // The following are defines for the bit fields in the USB_O_DMACTL0 register.
  2179. //
  2180. //*****************************************************************************
  2181. #define USB_DMACTL0_BRSTM_M 0x00000600 // Burst Mode
  2182. #define USB_DMACTL0_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2183. #define USB_DMACTL0_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2184. #define USB_DMACTL0_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2185. // length
  2186. #define USB_DMACTL0_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2187. // unspecified length
  2188. #define USB_DMACTL0_ERR 0x00000100 // Bus Error Bit
  2189. #define USB_DMACTL0_EP_M 0x000000F0 // Endpoint number
  2190. #define USB_DMACTL0_IE 0x00000008 // DMA Interrupt Enable
  2191. #define USB_DMACTL0_MODE 0x00000004 // DMA Transfer Mode
  2192. #define USB_DMACTL0_DIR 0x00000002 // DMA Direction
  2193. #define USB_DMACTL0_ENABLE 0x00000001 // DMA Transfer Enable
  2194. #define USB_DMACTL0_EP_S 4
  2195. //*****************************************************************************
  2196. //
  2197. // The following are defines for the bit fields in the USB_O_DMAADDR0 register.
  2198. //
  2199. //*****************************************************************************
  2200. #define USB_DMAADDR0_ADDR_M 0xFFFFFFFC // DMA Address
  2201. #define USB_DMAADDR0_ADDR_S 2
  2202. //*****************************************************************************
  2203. //
  2204. // The following are defines for the bit fields in the USB_O_DMACOUNT0
  2205. // register.
  2206. //
  2207. //*****************************************************************************
  2208. #define USB_DMACOUNT0_COUNT_M 0xFFFFFFFC // DMA Count
  2209. #define USB_DMACOUNT0_COUNT_S 2
  2210. //*****************************************************************************
  2211. //
  2212. // The following are defines for the bit fields in the USB_O_DMACTL1 register.
  2213. //
  2214. //*****************************************************************************
  2215. #define USB_DMACTL1_BRSTM_M 0x00000600 // Burst Mode
  2216. #define USB_DMACTL1_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2217. #define USB_DMACTL1_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2218. #define USB_DMACTL1_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2219. // length
  2220. #define USB_DMACTL1_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2221. // unspecified length
  2222. #define USB_DMACTL1_ERR 0x00000100 // Bus Error Bit
  2223. #define USB_DMACTL1_EP_M 0x000000F0 // Endpoint number
  2224. #define USB_DMACTL1_IE 0x00000008 // DMA Interrupt Enable
  2225. #define USB_DMACTL1_MODE 0x00000004 // DMA Transfer Mode
  2226. #define USB_DMACTL1_DIR 0x00000002 // DMA Direction
  2227. #define USB_DMACTL1_ENABLE 0x00000001 // DMA Transfer Enable
  2228. #define USB_DMACTL1_EP_S 4
  2229. //*****************************************************************************
  2230. //
  2231. // The following are defines for the bit fields in the USB_O_DMAADDR1 register.
  2232. //
  2233. //*****************************************************************************
  2234. #define USB_DMAADDR1_ADDR_M 0xFFFFFFFC // DMA Address
  2235. #define USB_DMAADDR1_ADDR_S 2
  2236. //*****************************************************************************
  2237. //
  2238. // The following are defines for the bit fields in the USB_O_DMACOUNT1
  2239. // register.
  2240. //
  2241. //*****************************************************************************
  2242. #define USB_DMACOUNT1_COUNT_M 0xFFFFFFFC // DMA Count
  2243. #define USB_DMACOUNT1_COUNT_S 2
  2244. //*****************************************************************************
  2245. //
  2246. // The following are defines for the bit fields in the USB_O_DMACTL2 register.
  2247. //
  2248. //*****************************************************************************
  2249. #define USB_DMACTL2_BRSTM_M 0x00000600 // Burst Mode
  2250. #define USB_DMACTL2_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2251. #define USB_DMACTL2_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2252. #define USB_DMACTL2_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2253. // length
  2254. #define USB_DMACTL2_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2255. // unspecified length
  2256. #define USB_DMACTL2_ERR 0x00000100 // Bus Error Bit
  2257. #define USB_DMACTL2_EP_M 0x000000F0 // Endpoint number
  2258. #define USB_DMACTL2_IE 0x00000008 // DMA Interrupt Enable
  2259. #define USB_DMACTL2_MODE 0x00000004 // DMA Transfer Mode
  2260. #define USB_DMACTL2_DIR 0x00000002 // DMA Direction
  2261. #define USB_DMACTL2_ENABLE 0x00000001 // DMA Transfer Enable
  2262. #define USB_DMACTL2_EP_S 4
  2263. //*****************************************************************************
  2264. //
  2265. // The following are defines for the bit fields in the USB_O_DMAADDR2 register.
  2266. //
  2267. //*****************************************************************************
  2268. #define USB_DMAADDR2_ADDR_M 0xFFFFFFFC // DMA Address
  2269. #define USB_DMAADDR2_ADDR_S 2
  2270. //*****************************************************************************
  2271. //
  2272. // The following are defines for the bit fields in the USB_O_DMACOUNT2
  2273. // register.
  2274. //
  2275. //*****************************************************************************
  2276. #define USB_DMACOUNT2_COUNT_M 0xFFFFFFFC // DMA Count
  2277. #define USB_DMACOUNT2_COUNT_S 2
  2278. //*****************************************************************************
  2279. //
  2280. // The following are defines for the bit fields in the USB_O_DMACTL3 register.
  2281. //
  2282. //*****************************************************************************
  2283. #define USB_DMACTL3_BRSTM_M 0x00000600 // Burst Mode
  2284. #define USB_DMACTL3_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2285. #define USB_DMACTL3_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2286. #define USB_DMACTL3_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2287. // length
  2288. #define USB_DMACTL3_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2289. // unspecified length
  2290. #define USB_DMACTL3_ERR 0x00000100 // Bus Error Bit
  2291. #define USB_DMACTL3_EP_M 0x000000F0 // Endpoint number
  2292. #define USB_DMACTL3_IE 0x00000008 // DMA Interrupt Enable
  2293. #define USB_DMACTL3_MODE 0x00000004 // DMA Transfer Mode
  2294. #define USB_DMACTL3_DIR 0x00000002 // DMA Direction
  2295. #define USB_DMACTL3_ENABLE 0x00000001 // DMA Transfer Enable
  2296. #define USB_DMACTL3_EP_S 4
  2297. //*****************************************************************************
  2298. //
  2299. // The following are defines for the bit fields in the USB_O_DMAADDR3 register.
  2300. //
  2301. //*****************************************************************************
  2302. #define USB_DMAADDR3_ADDR_M 0xFFFFFFFC // DMA Address
  2303. #define USB_DMAADDR3_ADDR_S 2
  2304. //*****************************************************************************
  2305. //
  2306. // The following are defines for the bit fields in the USB_O_DMACOUNT3
  2307. // register.
  2308. //
  2309. //*****************************************************************************
  2310. #define USB_DMACOUNT3_COUNT_M 0xFFFFFFFC // DMA Count
  2311. #define USB_DMACOUNT3_COUNT_S 2
  2312. //*****************************************************************************
  2313. //
  2314. // The following are defines for the bit fields in the USB_O_DMACTL4 register.
  2315. //
  2316. //*****************************************************************************
  2317. #define USB_DMACTL4_BRSTM_M 0x00000600 // Burst Mode
  2318. #define USB_DMACTL4_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2319. #define USB_DMACTL4_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2320. #define USB_DMACTL4_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2321. // length
  2322. #define USB_DMACTL4_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2323. // unspecified length
  2324. #define USB_DMACTL4_ERR 0x00000100 // Bus Error Bit
  2325. #define USB_DMACTL4_EP_M 0x000000F0 // Endpoint number
  2326. #define USB_DMACTL4_IE 0x00000008 // DMA Interrupt Enable
  2327. #define USB_DMACTL4_MODE 0x00000004 // DMA Transfer Mode
  2328. #define USB_DMACTL4_DIR 0x00000002 // DMA Direction
  2329. #define USB_DMACTL4_ENABLE 0x00000001 // DMA Transfer Enable
  2330. #define USB_DMACTL4_EP_S 4
  2331. //*****************************************************************************
  2332. //
  2333. // The following are defines for the bit fields in the USB_O_DMAADDR4 register.
  2334. //
  2335. //*****************************************************************************
  2336. #define USB_DMAADDR4_ADDR_M 0xFFFFFFFC // DMA Address
  2337. #define USB_DMAADDR4_ADDR_S 2
  2338. //*****************************************************************************
  2339. //
  2340. // The following are defines for the bit fields in the USB_O_DMACOUNT4
  2341. // register.
  2342. //
  2343. //*****************************************************************************
  2344. #define USB_DMACOUNT4_COUNT_M 0xFFFFFFFC // DMA Count
  2345. #define USB_DMACOUNT4_COUNT_S 2
  2346. //*****************************************************************************
  2347. //
  2348. // The following are defines for the bit fields in the USB_O_DMACTL5 register.
  2349. //
  2350. //*****************************************************************************
  2351. #define USB_DMACTL5_BRSTM_M 0x00000600 // Burst Mode
  2352. #define USB_DMACTL5_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2353. #define USB_DMACTL5_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2354. #define USB_DMACTL5_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2355. // length
  2356. #define USB_DMACTL5_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2357. // unspecified length
  2358. #define USB_DMACTL5_ERR 0x00000100 // Bus Error Bit
  2359. #define USB_DMACTL5_EP_M 0x000000F0 // Endpoint number
  2360. #define USB_DMACTL5_IE 0x00000008 // DMA Interrupt Enable
  2361. #define USB_DMACTL5_MODE 0x00000004 // DMA Transfer Mode
  2362. #define USB_DMACTL5_DIR 0x00000002 // DMA Direction
  2363. #define USB_DMACTL5_ENABLE 0x00000001 // DMA Transfer Enable
  2364. #define USB_DMACTL5_EP_S 4
  2365. //*****************************************************************************
  2366. //
  2367. // The following are defines for the bit fields in the USB_O_DMAADDR5 register.
  2368. //
  2369. //*****************************************************************************
  2370. #define USB_DMAADDR5_ADDR_M 0xFFFFFFFC // DMA Address
  2371. #define USB_DMAADDR5_ADDR_S 2
  2372. //*****************************************************************************
  2373. //
  2374. // The following are defines for the bit fields in the USB_O_DMACOUNT5
  2375. // register.
  2376. //
  2377. //*****************************************************************************
  2378. #define USB_DMACOUNT5_COUNT_M 0xFFFFFFFC // DMA Count
  2379. #define USB_DMACOUNT5_COUNT_S 2
  2380. //*****************************************************************************
  2381. //
  2382. // The following are defines for the bit fields in the USB_O_DMACTL6 register.
  2383. //
  2384. //*****************************************************************************
  2385. #define USB_DMACTL6_BRSTM_M 0x00000600 // Burst Mode
  2386. #define USB_DMACTL6_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2387. #define USB_DMACTL6_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2388. #define USB_DMACTL6_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2389. // length
  2390. #define USB_DMACTL6_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2391. // unspecified length
  2392. #define USB_DMACTL6_ERR 0x00000100 // Bus Error Bit
  2393. #define USB_DMACTL6_EP_M 0x000000F0 // Endpoint number
  2394. #define USB_DMACTL6_IE 0x00000008 // DMA Interrupt Enable
  2395. #define USB_DMACTL6_MODE 0x00000004 // DMA Transfer Mode
  2396. #define USB_DMACTL6_DIR 0x00000002 // DMA Direction
  2397. #define USB_DMACTL6_ENABLE 0x00000001 // DMA Transfer Enable
  2398. #define USB_DMACTL6_EP_S 4
  2399. //*****************************************************************************
  2400. //
  2401. // The following are defines for the bit fields in the USB_O_DMAADDR6 register.
  2402. //
  2403. //*****************************************************************************
  2404. #define USB_DMAADDR6_ADDR_M 0xFFFFFFFC // DMA Address
  2405. #define USB_DMAADDR6_ADDR_S 2
  2406. //*****************************************************************************
  2407. //
  2408. // The following are defines for the bit fields in the USB_O_DMACOUNT6
  2409. // register.
  2410. //
  2411. //*****************************************************************************
  2412. #define USB_DMACOUNT6_COUNT_M 0xFFFFFFFC // DMA Count
  2413. #define USB_DMACOUNT6_COUNT_S 2
  2414. //*****************************************************************************
  2415. //
  2416. // The following are defines for the bit fields in the USB_O_DMACTL7 register.
  2417. //
  2418. //*****************************************************************************
  2419. #define USB_DMACTL7_BRSTM_M 0x00000600 // Burst Mode
  2420. #define USB_DMACTL7_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  2421. #define USB_DMACTL7_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  2422. #define USB_DMACTL7_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  2423. // length
  2424. #define USB_DMACTL7_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  2425. // unspecified length
  2426. #define USB_DMACTL7_ERR 0x00000100 // Bus Error Bit
  2427. #define USB_DMACTL7_EP_M 0x000000F0 // Endpoint number
  2428. #define USB_DMACTL7_IE 0x00000008 // DMA Interrupt Enable
  2429. #define USB_DMACTL7_MODE 0x00000004 // DMA Transfer Mode
  2430. #define USB_DMACTL7_DIR 0x00000002 // DMA Direction
  2431. #define USB_DMACTL7_ENABLE 0x00000001 // DMA Transfer Enable
  2432. #define USB_DMACTL7_EP_S 4
  2433. //*****************************************************************************
  2434. //
  2435. // The following are defines for the bit fields in the USB_O_DMAADDR7 register.
  2436. //
  2437. //*****************************************************************************
  2438. #define USB_DMAADDR7_ADDR_M 0xFFFFFFFC // DMA Address
  2439. #define USB_DMAADDR7_ADDR_S 2
  2440. //*****************************************************************************
  2441. //
  2442. // The following are defines for the bit fields in the USB_O_DMACOUNT7
  2443. // register.
  2444. //
  2445. //*****************************************************************************
  2446. #define USB_DMACOUNT7_COUNT_M 0xFFFFFFFC // DMA Count
  2447. #define USB_DMACOUNT7_COUNT_S 2
  2448. //*****************************************************************************
  2449. //
  2450. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
  2451. // register.
  2452. //
  2453. //*****************************************************************************
  2454. #define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
  2455. #define USB_RQPKTCOUNT1_S 0
  2456. //*****************************************************************************
  2457. //
  2458. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
  2459. // register.
  2460. //
  2461. //*****************************************************************************
  2462. #define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
  2463. #define USB_RQPKTCOUNT2_S 0
  2464. //*****************************************************************************
  2465. //
  2466. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
  2467. // register.
  2468. //
  2469. //*****************************************************************************
  2470. #define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
  2471. #define USB_RQPKTCOUNT3_S 0
  2472. //*****************************************************************************
  2473. //
  2474. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
  2475. // register.
  2476. //
  2477. //*****************************************************************************
  2478. #define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  2479. #define USB_RQPKTCOUNT4_COUNT_S 0
  2480. //*****************************************************************************
  2481. //
  2482. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
  2483. // register.
  2484. //
  2485. //*****************************************************************************
  2486. #define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  2487. #define USB_RQPKTCOUNT5_COUNT_S 0
  2488. //*****************************************************************************
  2489. //
  2490. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
  2491. // register.
  2492. //
  2493. //*****************************************************************************
  2494. #define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  2495. #define USB_RQPKTCOUNT6_COUNT_S 0
  2496. //*****************************************************************************
  2497. //
  2498. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
  2499. // register.
  2500. //
  2501. //*****************************************************************************
  2502. #define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  2503. #define USB_RQPKTCOUNT7_COUNT_S 0
  2504. //*****************************************************************************
  2505. //
  2506. // The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
  2507. // register.
  2508. //
  2509. //*****************************************************************************
  2510. #define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
  2511. // Disable
  2512. #define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
  2513. // Disable
  2514. #define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
  2515. // Disable
  2516. #define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
  2517. // Disable
  2518. #define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
  2519. // Disable
  2520. #define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
  2521. // Disable
  2522. #define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
  2523. // Disable
  2524. //*****************************************************************************
  2525. //
  2526. // The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
  2527. // register.
  2528. //
  2529. //*****************************************************************************
  2530. #define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
  2531. // Disable
  2532. #define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
  2533. // Disable
  2534. #define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
  2535. // Disable
  2536. #define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
  2537. // Disable
  2538. #define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
  2539. // Disable
  2540. #define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
  2541. // Disable
  2542. #define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
  2543. // Disable
  2544. //*****************************************************************************
  2545. //
  2546. // The following are defines for the bit fields in the USB_O_CTO register.
  2547. //
  2548. //*****************************************************************************
  2549. #define USB_CTO_CCTV_M 0x0000FFFF // Configurable Chirp Timeout Value
  2550. #define USB_CTO_CCTV_S 0
  2551. //*****************************************************************************
  2552. //
  2553. // The following are defines for the bit fields in the USB_O_HHSRTN register.
  2554. //
  2555. //*****************************************************************************
  2556. #define USB_HHSRTN_HHSRTN_M 0x0000FFFF // HIgh Speed to UTM Operating
  2557. // Delay
  2558. #define USB_HHSRTN_HHSRTN_S 0
  2559. //*****************************************************************************
  2560. //
  2561. // The following are defines for the bit fields in the USB_O_HSBT register.
  2562. //
  2563. //*****************************************************************************
  2564. #define USB_HSBT_HSBT_M 0x0000000F // High Speed Timeout Adder
  2565. #define USB_HSBT_HSBT_S 0
  2566. //*****************************************************************************
  2567. //
  2568. // The following are defines for the bit fields in the USB_O_LPMATTR register.
  2569. //
  2570. //*****************************************************************************
  2571. #define USB_LPMATTR_ENDPT_M 0x0000F000 // Endpoint
  2572. #define USB_LPMATTR_RMTWAK 0x00000100 // Remote Wake
  2573. #define USB_LPMATTR_HIRD_M 0x000000F0 // Host Initiated Resume Duration
  2574. #define USB_LPMATTR_LS_M 0x0000000F // Link State
  2575. #define USB_LPMATTR_LS_L1 0x00000001 // Sleep State (L1)
  2576. #define USB_LPMATTR_ENDPT_S 12
  2577. #define USB_LPMATTR_HIRD_S 4
  2578. //*****************************************************************************
  2579. //
  2580. // The following are defines for the bit fields in the USB_O_LPMCNTRL register.
  2581. //
  2582. //*****************************************************************************
  2583. #define USB_LPMCNTRL_NAK 0x00000010 // LPM NAK
  2584. #define USB_LPMCNTRL_EN_M 0x0000000C // LPM Enable
  2585. #define USB_LPMCNTRL_EN_NONE 0x00000000 // LPM and Extended transactions
  2586. // are not supported. In this case,
  2587. // the USB does not respond to LPM
  2588. // transactions and LPM
  2589. // transactions cause a timeout
  2590. #define USB_LPMCNTRL_EN_EXT 0x00000004 // LPM is not supported but
  2591. // extended transactions are
  2592. // supported. In this case, the USB
  2593. // does respond to an LPM
  2594. // transaction with a STALL
  2595. #define USB_LPMCNTRL_EN_LPMEXT 0x0000000C // The USB supports LPM extended
  2596. // transactions. In this case, the
  2597. // USB responds with a NYET or an
  2598. // ACK as determined by the value
  2599. // of TXLPM and other conditions
  2600. #define USB_LPMCNTRL_RES 0x00000002 // LPM Resume
  2601. #define USB_LPMCNTRL_TXLPM 0x00000001 // Transmit LPM Transaction Enable
  2602. //*****************************************************************************
  2603. //
  2604. // The following are defines for the bit fields in the USB_O_LPMIM register.
  2605. //
  2606. //*****************************************************************************
  2607. #define USB_LPMIM_ERR 0x00000020 // LPM Error Interrupt Mask
  2608. #define USB_LPMIM_RES 0x00000010 // LPM Resume Interrupt Mask
  2609. #define USB_LPMIM_NC 0x00000008 // LPM NC Interrupt Mask
  2610. #define USB_LPMIM_ACK 0x00000004 // LPM ACK Interrupt Mask
  2611. #define USB_LPMIM_NY 0x00000002 // LPM NY Interrupt Mask
  2612. #define USB_LPMIM_STALL 0x00000001 // LPM STALL Interrupt Mask
  2613. //*****************************************************************************
  2614. //
  2615. // The following are defines for the bit fields in the USB_O_LPMRIS register.
  2616. //
  2617. //*****************************************************************************
  2618. #define USB_LPMRIS_ERR 0x00000020 // LPM Interrupt Status
  2619. #define USB_LPMRIS_RES 0x00000010 // LPM Resume Interrupt Status
  2620. #define USB_LPMRIS_NC 0x00000008 // LPM NC Interrupt Status
  2621. #define USB_LPMRIS_ACK 0x00000004 // LPM ACK Interrupt Status
  2622. #define USB_LPMRIS_NY 0x00000002 // LPM NY Interrupt Status
  2623. #define USB_LPMRIS_LPMST 0x00000001 // LPM STALL Interrupt Status
  2624. //*****************************************************************************
  2625. //
  2626. // The following are defines for the bit fields in the USB_O_LPMFADDR register.
  2627. //
  2628. //*****************************************************************************
  2629. #define USB_LPMFADDR_ADDR_M 0x0000007F // LPM Function Address
  2630. #define USB_LPMFADDR_ADDR_S 0
  2631. //*****************************************************************************
  2632. //
  2633. // The following are defines for the bit fields in the USB_O_EPC register.
  2634. //
  2635. //*****************************************************************************
  2636. #define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
  2637. #define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
  2638. #define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
  2639. #define USB_EPC_PFLTACT_LOW 0x00000200 // Low
  2640. #define USB_EPC_PFLTACT_HIGH 0x00000300 // High
  2641. #define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
  2642. #define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
  2643. #define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
  2644. #define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
  2645. #define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
  2646. // Configuration
  2647. #define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
  2648. #define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
  2649. #define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
  2650. // (OTG only)
  2651. #define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
  2652. // (OTG only)
  2653. //*****************************************************************************
  2654. //
  2655. // The following are defines for the bit fields in the USB_O_EPCRIS register.
  2656. //
  2657. //*****************************************************************************
  2658. #define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
  2659. //*****************************************************************************
  2660. //
  2661. // The following are defines for the bit fields in the USB_O_EPCIM register.
  2662. //
  2663. //*****************************************************************************
  2664. #define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
  2665. //*****************************************************************************
  2666. //
  2667. // The following are defines for the bit fields in the USB_O_EPCISC register.
  2668. //
  2669. //*****************************************************************************
  2670. #define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
  2671. // and Clear
  2672. //*****************************************************************************
  2673. //
  2674. // The following are defines for the bit fields in the USB_O_DRRIS register.
  2675. //
  2676. //*****************************************************************************
  2677. #define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
  2678. //*****************************************************************************
  2679. //
  2680. // The following are defines for the bit fields in the USB_O_DRIM register.
  2681. //
  2682. //*****************************************************************************
  2683. #define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
  2684. //*****************************************************************************
  2685. //
  2686. // The following are defines for the bit fields in the USB_O_DRISC register.
  2687. //
  2688. //*****************************************************************************
  2689. #define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
  2690. // Clear
  2691. //*****************************************************************************
  2692. //
  2693. // The following are defines for the bit fields in the USB_O_GPCS register.
  2694. //
  2695. //*****************************************************************************
  2696. #define USB_GPCS_DEVMOD_M 0x00000007 // Device Mode
  2697. #define USB_GPCS_DEVMOD_OTG 0x00000000 // Use USB0VBUS and USB0ID pin
  2698. #define USB_GPCS_DEVMOD_HOST 0x00000002 // Force USB0VBUS and USB0ID low
  2699. #define USB_GPCS_DEVMOD_DEV 0x00000003 // Force USB0VBUS and USB0ID high
  2700. #define USB_GPCS_DEVMOD_HOSTVBUS \
  2701. 0x00000004 // Use USB0VBUS and force USB0ID
  2702. // low
  2703. #define USB_GPCS_DEVMOD_DEVVBUS 0x00000005 // Use USB0VBUS and force USB0ID
  2704. // high
  2705. #define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
  2706. #define USB_GPCS_DEVMOD 0x00000001 // Device Mode
  2707. //*****************************************************************************
  2708. //
  2709. // The following are defines for the bit fields in the USB_O_VDC register.
  2710. //
  2711. //*****************************************************************************
  2712. #define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
  2713. //*****************************************************************************
  2714. //
  2715. // The following are defines for the bit fields in the USB_O_VDCRIS register.
  2716. //
  2717. //*****************************************************************************
  2718. #define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
  2719. //*****************************************************************************
  2720. //
  2721. // The following are defines for the bit fields in the USB_O_VDCIM register.
  2722. //
  2723. //*****************************************************************************
  2724. #define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
  2725. //*****************************************************************************
  2726. //
  2727. // The following are defines for the bit fields in the USB_O_VDCISC register.
  2728. //
  2729. //*****************************************************************************
  2730. #define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
  2731. // Clear
  2732. //*****************************************************************************
  2733. //
  2734. // The following are defines for the bit fields in the USB_O_IDVRIS register.
  2735. //
  2736. //*****************************************************************************
  2737. #define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
  2738. // Status
  2739. //*****************************************************************************
  2740. //
  2741. // The following are defines for the bit fields in the USB_O_IDVIM register.
  2742. //
  2743. //*****************************************************************************
  2744. #define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
  2745. //*****************************************************************************
  2746. //
  2747. // The following are defines for the bit fields in the USB_O_IDVISC register.
  2748. //
  2749. //*****************************************************************************
  2750. #define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
  2751. // and Clear
  2752. //*****************************************************************************
  2753. //
  2754. // The following are defines for the bit fields in the USB_O_DMASEL register.
  2755. //
  2756. //*****************************************************************************
  2757. #define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
  2758. #define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
  2759. #define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
  2760. #define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
  2761. #define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
  2762. #define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
  2763. #define USB_DMASEL_DMACTX_S 20
  2764. #define USB_DMASEL_DMACRX_S 16
  2765. #define USB_DMASEL_DMABTX_S 12
  2766. #define USB_DMASEL_DMABRX_S 8
  2767. #define USB_DMASEL_DMAATX_S 4
  2768. #define USB_DMASEL_DMAARX_S 0
  2769. //*****************************************************************************
  2770. //
  2771. // The following are defines for the bit fields in the USB_O_PP register.
  2772. //
  2773. //*****************************************************************************
  2774. #define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
  2775. #define USB_PP_USB_M 0x000000C0 // USB Capability
  2776. #define USB_PP_USB_DEVICE 0x00000040 // DEVICE
  2777. #define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
  2778. #define USB_PP_USB_OTG 0x000000C0 // OTG
  2779. #define USB_PP_ULPI 0x00000020 // ULPI Present
  2780. #define USB_PP_PHY 0x00000010 // PHY Present
  2781. #define USB_PP_TYPE_M 0x0000000F // Controller Type
  2782. #define USB_PP_TYPE_0 0x00000000 // The first-generation USB
  2783. // controller
  2784. #define USB_PP_TYPE_1 0x00000001 // Second-generation USB
  2785. // controller.The controller
  2786. // implemented in post Icestorm
  2787. // devices that use the 3.0 version
  2788. // of the Mentor controller
  2789. #define USB_PP_ECNT_S 8
  2790. //*****************************************************************************
  2791. //
  2792. // The following are defines for the bit fields in the USB_O_PC register.
  2793. //
  2794. //*****************************************************************************
  2795. #define USB_PC_ULPIEN 0x00010000 // ULPI Enable
  2796. //*****************************************************************************
  2797. //
  2798. // The following are defines for the bit fields in the USB_O_CC register.
  2799. //
  2800. //*****************************************************************************
  2801. #define USB_CC_CLKEN 0x00000200 // USB Clock Enable
  2802. #define USB_CC_CSD 0x00000100 // Clock Source/Direction
  2803. #define USB_CC_CLKDIV_M 0x0000000F // PLL Clock Divisor
  2804. #define USB_CC_CLKDIV_S 0
  2805. #endif // __HW_USB_H__