hw_usb.h 224 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703
  1. /**
  2. * \file hw_usb.h
  3. *
  4. * \brief Macros for use in accessing the USB registers.
  5. */
  6. /*
  7. * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
  8. */
  9. /*
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. *
  14. * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. *
  17. * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the
  20. * distribution.
  21. *
  22. * Neither the name of Texas Instruments Incorporated nor the names of
  23. * its contributors may be used to endorse or promote products derived
  24. * from this software without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  31. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  32. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  33. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  35. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  36. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. *
  38. */
  39. #ifndef __HW_USB_H__
  40. #define __HW_USB_H__
  41. #if defined(am1808)
  42. #include "psc.h"
  43. #include "soc_AM1808.h"
  44. #include "hw_psc_AM1808.h"
  45. #include "hw_usbphyGS60.h"
  46. #include "hw_usbOtg_AM1808.h"
  47. #elif defined(omapl138)
  48. #include "psc.h"
  49. #include "hw_usbOtg_OMAPL138.h"
  50. #include "soc_OMAPL138.h"
  51. #include "hw_psc_OMAPL138.h"
  52. #include "hw_usbphyGS60.h"
  53. #elif defined(c6748)
  54. #include "psc.h"
  55. #include "soc_C6748.h"
  56. #include "hw_psc_C6748.h"
  57. #include "hw_usbphyGS60.h"
  58. #include "hw_usbOtg_C6748.h"
  59. #elif defined(am335x) || defined(am335x_13x13) || defined(am335x_15x15)
  60. #include "soc_AM335x.h"
  61. #include "hw_usbphyGS70.h"
  62. #include "hw_usbOtg_AM335x.h"
  63. #elif defined(c6a811x)
  64. #include "soc_C6A811x.h"
  65. #include "hw_usbphyGS70.h"
  66. #include "hw_usbOtg_C6A811x.h"
  67. #include "evmC6A811x.h"
  68. #elif defined(am386x)
  69. #include "soc_AM386x.h"
  70. #include "hw_usbphyGS70.h"
  71. #include "hw_usbOtg_AM386x.h"
  72. #elif defined(c6741x)
  73. #include "soc_C6741x.h"
  74. #include "hw_usbphyGS70.h"
  75. #include "hw_usbOtg_C6741x.h"
  76. #include "evmC6741x.h"
  77. #endif
  78. //*****************************************************************************
  79. //
  80. // The following are defines for the Univeral Serial Bus register offsets.
  81. //
  82. //*****************************************************************************
  83. #if defined(am335x) || defined(am335x_13x13) || defined(am335x_15x15)
  84. #define USB_CONTROLLER_NUM_INSTANCES (2)
  85. #else
  86. #define USB_CONTROLLER_NUM_INSTANCES (1)
  87. #endif
  88. #define USB0_BASE SOC_USB_0_BASE
  89. #define INT_USB0 SYS_INT_USB0
  90. #if (USB_CONTROLLER_NUM_INSTANCES == 2)
  91. #define USB1_BASE SOC_USB_1_BASE
  92. #define INT_USB1 SYS_INT_USB1
  93. #endif
  94. #define USB_O_FADDR 0x00000000 // USB Device Functional Address
  95. #define USB_O_POWER 0x00000001 // USB Power
  96. #define USB_O_TXIS 0x00000002 // USB Transmit Interrupt Status
  97. #define USB_O_RXIS 0x00000004 // USB Receive Interrupt Status
  98. #define USB_O_TXIE 0x00000006 // USB Transmit Interrupt Enable
  99. #define USB_O_RXIE 0x00000008 // USB Receive Interrupt Enable
  100. #define USB_O_IS 0x0000000A // USB General Interrupt Status
  101. #define USB_O_IE 0x0000000B // USB Interrupt Enable
  102. #define USB_O_FRAME 0x0000000C // USB Frame Value
  103. #define USB_O_EPIDX 0x0000000E // USB Endpoint Index
  104. #define USB_O_TEST 0x0000000F // USB Test Mode
  105. #define USB_O_FIFO0 0x00000020 // USB FIFO Endpoint 0
  106. #define USB_O_FIFO1 0x00000024 // USB FIFO Endpoint 1
  107. #define USB_O_FIFO2 0x00000028 // USB FIFO Endpoint 2
  108. #define USB_O_FIFO3 0x0000002C // USB FIFO Endpoint 3
  109. #define USB_O_FIFO4 0x00000030 // USB FIFO Endpoint 4
  110. #define USB_O_FIFO5 0x00000034 // USB FIFO Endpoint 5
  111. #define USB_O_FIFO6 0x00000038 // USB FIFO Endpoint 6
  112. #define USB_O_FIFO7 0x0000003C // USB FIFO Endpoint 7
  113. #define USB_O_FIFO8 0x00000040 // USB FIFO Endpoint 8
  114. #define USB_O_FIFO9 0x00000044 // USB FIFO Endpoint 9
  115. #define USB_O_FIFO10 0x00000048 // USB FIFO Endpoint 10
  116. #define USB_O_FIFO11 0x0000004C // USB FIFO Endpoint 11
  117. #define USB_O_FIFO12 0x00000050 // USB FIFO Endpoint 12
  118. #define USB_O_FIFO13 0x00000054 // USB FIFO Endpoint 13
  119. #define USB_O_FIFO14 0x00000058 // USB FIFO Endpoint 14
  120. #define USB_O_FIFO15 0x0000005C // USB FIFO Endpoint 15
  121. #define USB_O_DEVCTL 0x00000060 // USB Device Control
  122. #define USB_O_TXFIFOSZ 0x00000062 // USB Transmit Dynamic FIFO Sizing
  123. #define USB_O_RXFIFOSZ 0x00000063 // USB Receive Dynamic FIFO Sizing
  124. #define USB_O_TXFIFOADD 0x00000064 // USB Transmit FIFO Start Address
  125. #define USB_O_RXFIFOADD 0x00000066 // USB Receive FIFO Start Address
  126. #define USB_O_CONTIM 0x0000007A // USB Connect Timing
  127. #define USB_O_VPLEN 0x0000007B // USB OTG VBUS Pulse Timing
  128. #define USB_O_FSEOF 0x0000007D // USB Full-Speed Last Transaction
  129. // to End of Frame Timing
  130. #define USB_O_LSEOF 0x0000007E // USB Low-Speed Last Transaction
  131. // to End of Frame Timing
  132. #define USB_O_TXFUNCADDR0 0x00000080 // USB Transmit Functional Address
  133. // Endpoint 0
  134. #define USB_O_TXHUBADDR0 0x00000082 // USB Transmit Hub Address
  135. // Endpoint 0
  136. #define USB_O_TXHUBPORT0 0x00000083 // USB Transmit Hub Port Endpoint 0
  137. #define USB_O_TXFUNCADDR1 0x00000088 // USB Transmit Functional Address
  138. // Endpoint 1
  139. #define USB_O_TXHUBADDR1 0x0000008A // USB Transmit Hub Address
  140. // Endpoint 1
  141. #define USB_O_TXHUBPORT1 0x0000008B // USB Transmit Hub Port Endpoint 1
  142. #define USB_O_RXFUNCADDR1 0x0000008C // USB Receive Functional Address
  143. // Endpoint 1
  144. #define USB_O_RXHUBADDR1 0x0000008E // USB Receive Hub Address Endpoint
  145. // 1
  146. #define USB_O_RXHUBPORT1 0x0000008F // USB Receive Hub Port Endpoint 1
  147. #define USB_O_TXFUNCADDR2 0x00000090 // USB Transmit Functional Address
  148. // Endpoint 2
  149. #define USB_O_TXHUBADDR2 0x00000092 // USB Transmit Hub Address
  150. // Endpoint 2
  151. #define USB_O_TXHUBPORT2 0x00000093 // USB Transmit Hub Port Endpoint 2
  152. #define USB_O_RXFUNCADDR2 0x00000094 // USB Receive Functional Address
  153. // Endpoint 2
  154. #define USB_O_RXHUBADDR2 0x00000096 // USB Receive Hub Address Endpoint
  155. // 2
  156. #define USB_O_RXHUBPORT2 0x00000097 // USB Receive Hub Port Endpoint 2
  157. #define USB_O_TXFUNCADDR3 0x00000098 // USB Transmit Functional Address
  158. // Endpoint 3
  159. #define USB_O_TXHUBADDR3 0x0000009A // USB Transmit Hub Address
  160. // Endpoint 3
  161. #define USB_O_TXHUBPORT3 0x0000009B // USB Transmit Hub Port Endpoint 3
  162. #define USB_O_RXFUNCADDR3 0x0000009C // USB Receive Functional Address
  163. // Endpoint 3
  164. #define USB_O_RXHUBADDR3 0x0000009E // USB Receive Hub Address Endpoint
  165. // 3
  166. #define USB_O_RXHUBPORT3 0x0000009F // USB Receive Hub Port Endpoint 3
  167. #define USB_O_TXFUNCADDR4 0x000000A0 // USB Transmit Functional Address
  168. // Endpoint 4
  169. #define USB_O_TXHUBADDR4 0x000000A2 // USB Transmit Hub Address
  170. // Endpoint 4
  171. #define USB_O_TXHUBPORT4 0x000000A3 // USB Transmit Hub Port Endpoint 4
  172. #define USB_O_RXFUNCADDR4 0x000000A4 // USB Receive Functional Address
  173. // Endpoint 4
  174. #define USB_O_RXHUBADDR4 0x000000A6 // USB Receive Hub Address Endpoint
  175. // 4
  176. #define USB_O_RXHUBPORT4 0x000000A7 // USB Receive Hub Port Endpoint 4
  177. #define USB_O_TXFUNCADDR5 0x000000A8 // USB Transmit Functional Address
  178. // Endpoint 5
  179. #define USB_O_TXHUBADDR5 0x000000AA // USB Transmit Hub Address
  180. // Endpoint 5
  181. #define USB_O_TXHUBPORT5 0x000000AB // USB Transmit Hub Port Endpoint 5
  182. #define USB_O_RXFUNCADDR5 0x000000AC // USB Receive Functional Address
  183. // Endpoint 5
  184. #define USB_O_RXHUBADDR5 0x000000AE // USB Receive Hub Address Endpoint
  185. // 5
  186. #define USB_O_RXHUBPORT5 0x000000AF // USB Receive Hub Port Endpoint 5
  187. #define USB_O_TXFUNCADDR6 0x000000B0 // USB Transmit Functional Address
  188. // Endpoint 6
  189. #define USB_O_TXHUBADDR6 0x000000B2 // USB Transmit Hub Address
  190. // Endpoint 6
  191. #define USB_O_TXHUBPORT6 0x000000B3 // USB Transmit Hub Port Endpoint 6
  192. #define USB_O_RXFUNCADDR6 0x000000B4 // USB Receive Functional Address
  193. // Endpoint 6
  194. #define USB_O_RXHUBADDR6 0x000000B6 // USB Receive Hub Address Endpoint
  195. // 6
  196. #define USB_O_RXHUBPORT6 0x000000B7 // USB Receive Hub Port Endpoint 6
  197. #define USB_O_TXFUNCADDR7 0x000000B8 // USB Transmit Functional Address
  198. // Endpoint 7
  199. #define USB_O_TXHUBADDR7 0x000000BA // USB Transmit Hub Address
  200. // Endpoint 7
  201. #define USB_O_TXHUBPORT7 0x000000BB // USB Transmit Hub Port Endpoint 7
  202. #define USB_O_RXFUNCADDR7 0x000000BC // USB Receive Functional Address
  203. // Endpoint 7
  204. #define USB_O_RXHUBADDR7 0x000000BE // USB Receive Hub Address Endpoint
  205. // 7
  206. #define USB_O_RXHUBPORT7 0x000000BF // USB Receive Hub Port Endpoint 7
  207. #define USB_O_TXFUNCADDR8 0x000000C0 // USB Transmit Functional Address
  208. // Endpoint 8
  209. #define USB_O_TXHUBADDR8 0x000000C2 // USB Transmit Hub Address
  210. // Endpoint 8
  211. #define USB_O_TXHUBPORT8 0x000000C3 // USB Transmit Hub Port Endpoint 8
  212. #define USB_O_RXFUNCADDR8 0x000000C4 // USB Receive Functional Address
  213. // Endpoint 8
  214. #define USB_O_RXHUBADDR8 0x000000C6 // USB Receive Hub Address Endpoint
  215. // 8
  216. #define USB_O_RXHUBPORT8 0x000000C7 // USB Receive Hub Port Endpoint 8
  217. #define USB_O_TXFUNCADDR9 0x000000C8 // USB Transmit Functional Address
  218. // Endpoint 9
  219. #define USB_O_TXHUBADDR9 0x000000CA // USB Transmit Hub Address
  220. // Endpoint 9
  221. #define USB_O_TXHUBPORT9 0x000000CB // USB Transmit Hub Port Endpoint 9
  222. #define USB_O_RXFUNCADDR9 0x000000CC // USB Receive Functional Address
  223. // Endpoint 9
  224. #define USB_O_RXHUBADDR9 0x000000CE // USB Receive Hub Address Endpoint
  225. // 9
  226. #define USB_O_RXHUBPORT9 0x000000CF // USB Receive Hub Port Endpoint 9
  227. #define USB_O_TXFUNCADDR10 0x000000D0 // USB Transmit Functional Address
  228. // Endpoint 10
  229. #define USB_O_TXHUBADDR10 0x000000D2 // USB Transmit Hub Address
  230. // Endpoint 10
  231. #define USB_O_TXHUBPORT10 0x000000D3 // USB Transmit Hub Port Endpoint
  232. // 10
  233. #define USB_O_RXFUNCADDR10 0x000000D4 // USB Receive Functional Address
  234. // Endpoint 10
  235. #define USB_O_RXHUBADDR10 0x000000D6 // USB Receive Hub Address Endpoint
  236. // 10
  237. #define USB_O_RXHUBPORT10 0x000000D7 // USB Receive Hub Port Endpoint 10
  238. #define USB_O_TXFUNCADDR11 0x000000D8 // USB Transmit Functional Address
  239. // Endpoint 11
  240. #define USB_O_TXHUBADDR11 0x000000DA // USB Transmit Hub Address
  241. // Endpoint 11
  242. #define USB_O_TXHUBPORT11 0x000000DB // USB Transmit Hub Port Endpoint
  243. // 11
  244. #define USB_O_RXFUNCADDR11 0x000000DC // USB Receive Functional Address
  245. // Endpoint 11
  246. #define USB_O_RXHUBADDR11 0x000000DE // USB Receive Hub Address Endpoint
  247. // 11
  248. #define USB_O_RXHUBPORT11 0x000000DF // USB Receive Hub Port Endpoint 11
  249. #define USB_O_TXFUNCADDR12 0x000000E0 // USB Transmit Functional Address
  250. // Endpoint 12
  251. #define USB_O_TXHUBADDR12 0x000000E2 // USB Transmit Hub Address
  252. // Endpoint 12
  253. #define USB_O_TXHUBPORT12 0x000000E3 // USB Transmit Hub Port Endpoint
  254. // 12
  255. #define USB_O_RXFUNCADDR12 0x000000E4 // USB Receive Functional Address
  256. // Endpoint 12
  257. #define USB_O_RXHUBADDR12 0x000000E6 // USB Receive Hub Address Endpoint
  258. // 12
  259. #define USB_O_RXHUBPORT12 0x000000E7 // USB Receive Hub Port Endpoint 12
  260. #define USB_O_TXFUNCADDR13 0x000000E8 // USB Transmit Functional Address
  261. // Endpoint 13
  262. #define USB_O_TXHUBADDR13 0x000000EA // USB Transmit Hub Address
  263. // Endpoint 13
  264. #define USB_O_TXHUBPORT13 0x000000EB // USB Transmit Hub Port Endpoint
  265. // 13
  266. #define USB_O_RXFUNCADDR13 0x000000EC // USB Receive Functional Address
  267. // Endpoint 13
  268. #define USB_O_RXHUBADDR13 0x000000EE // USB Receive Hub Address Endpoint
  269. // 13
  270. #define USB_O_RXHUBPORT13 0x000000EF // USB Receive Hub Port Endpoint 13
  271. #define USB_O_TXFUNCADDR14 0x000000F0 // USB Transmit Functional Address
  272. // Endpoint 14
  273. #define USB_O_TXHUBADDR14 0x000000F2 // USB Transmit Hub Address
  274. // Endpoint 14
  275. #define USB_O_TXHUBPORT14 0x000000F3 // USB Transmit Hub Port Endpoint
  276. // 14
  277. #define USB_O_RXFUNCADDR14 0x000000F4 // USB Receive Functional Address
  278. // Endpoint 14
  279. #define USB_O_RXHUBADDR14 0x000000F6 // USB Receive Hub Address Endpoint
  280. // 14
  281. #define USB_O_RXHUBPORT14 0x000000F7 // USB Receive Hub Port Endpoint 14
  282. #define USB_O_TXFUNCADDR15 0x000000F8 // USB Transmit Functional Address
  283. // Endpoint 15
  284. #define USB_O_TXHUBADDR15 0x000000FA // USB Transmit Hub Address
  285. // Endpoint 15
  286. #define USB_O_TXHUBPORT15 0x000000FB // USB Transmit Hub Port Endpoint
  287. // 15
  288. #define USB_O_RXFUNCADDR15 0x000000FC // USB Receive Functional Address
  289. // Endpoint 15
  290. #define USB_O_RXHUBADDR15 0x000000FE // USB Receive Hub Address Endpoint
  291. // 15
  292. #define USB_O_RXHUBPORT15 0x000000FF // USB Receive Hub Port Endpoint 15
  293. #define USB_O_CSRL0 0x00000102 // USB Control and Status Endpoint
  294. // 0 Low
  295. #define USB_O_CSRH0 0x00000103 // USB Control and Status Endpoint
  296. // 0 High
  297. #define USB_O_COUNT0 0x00000108 // USB Receive Byte Count Endpoint
  298. // 0
  299. #define USB_O_TYPE0 0x0000010A // USB Type Endpoint 0
  300. #define USB_O_NAKLMT 0x0000010B // USB NAK Limit
  301. #define USB_O_TXMAXP1 0x00000110 // USB Maximum Transmit Data
  302. // Endpoint 1
  303. #define USB_O_TXCSRL1 0x00000112 // USB Transmit Control and Status
  304. // Endpoint 1 Low
  305. #define USB_O_TXCSRH1 0x00000113 // USB Transmit Control and Status
  306. // Endpoint 1 High
  307. #define USB_O_RXMAXP1 0x00000114 // USB Maximum Receive Data
  308. // Endpoint 1
  309. #define USB_O_RXCSRL1 0x00000116 // USB Receive Control and Status
  310. // Endpoint 1 Low
  311. #define USB_O_RXCSRH1 0x00000117 // USB Receive Control and Status
  312. // Endpoint 1 High
  313. #define USB_O_RXCOUNT1 0x00000118 // USB Receive Byte Count Endpoint
  314. // 1
  315. #define USB_O_TXTYPE1 0x0000011A // USB Host Transmit Configure Type
  316. // Endpoint 1
  317. #define USB_O_TXINTERVAL1 0x0000011B // USB Host Transmit Interval
  318. // Endpoint 1
  319. #define USB_O_RXTYPE1 0x0000011C // USB Host Configure Receive Type
  320. // Endpoint 1
  321. #define USB_O_RXINTERVAL1 0x0000011D // USB Host Receive Polling
  322. // Interval Endpoint 1
  323. #define USB_O_TXMAXP2 0x00000120 // USB Maximum Transmit Data
  324. // Endpoint 2
  325. #define USB_O_TXCSRL2 0x00000122 // USB Transmit Control and Status
  326. // Endpoint 2 Low
  327. #define USB_O_TXCSRH2 0x00000123 // USB Transmit Control and Status
  328. // Endpoint 2 High
  329. #define USB_O_RXMAXP2 0x00000124 // USB Maximum Receive Data
  330. // Endpoint 2
  331. #define USB_O_RXCSRL2 0x00000126 // USB Receive Control and Status
  332. // Endpoint 2 Low
  333. #define USB_O_RXCSRH2 0x00000127 // USB Receive Control and Status
  334. // Endpoint 2 High
  335. #define USB_O_RXCOUNT2 0x00000128 // USB Receive Byte Count Endpoint
  336. // 2
  337. #define USB_O_TXTYPE2 0x0000012A // USB Host Transmit Configure Type
  338. // Endpoint 2
  339. #define USB_O_TXINTERVAL2 0x0000012B // USB Host Transmit Interval
  340. // Endpoint 2
  341. #define USB_O_RXTYPE2 0x0000012C // USB Host Configure Receive Type
  342. // Endpoint 2
  343. #define USB_O_RXINTERVAL2 0x0000012D // USB Host Receive Polling
  344. // Interval Endpoint 2
  345. #define USB_O_TXMAXP3 0x00000130 // USB Maximum Transmit Data
  346. // Endpoint 3
  347. #define USB_O_TXCSRL3 0x00000132 // USB Transmit Control and Status
  348. // Endpoint 3 Low
  349. #define USB_O_TXCSRH3 0x00000133 // USB Transmit Control and Status
  350. // Endpoint 3 High
  351. #define USB_O_RXMAXP3 0x00000134 // USB Maximum Receive Data
  352. // Endpoint 3
  353. #define USB_O_RXCSRL3 0x00000136 // USB Receive Control and Status
  354. // Endpoint 3 Low
  355. #define USB_O_RXCSRH3 0x00000137 // USB Receive Control and Status
  356. // Endpoint 3 High
  357. #define USB_O_RXCOUNT3 0x00000138 // USB Receive Byte Count Endpoint
  358. // 3
  359. #define USB_O_TXTYPE3 0x0000013A // USB Host Transmit Configure Type
  360. // Endpoint 3
  361. #define USB_O_TXINTERVAL3 0x0000013B // USB Host Transmit Interval
  362. // Endpoint 3
  363. #define USB_O_RXTYPE3 0x0000013C // USB Host Configure Receive Type
  364. // Endpoint 3
  365. #define USB_O_RXINTERVAL3 0x0000013D // USB Host Receive Polling
  366. // Interval Endpoint 3
  367. #define USB_O_TXMAXP4 0x00000140 // USB Maximum Transmit Data
  368. // Endpoint 4
  369. #define USB_O_TXCSRL4 0x00000142 // USB Transmit Control and Status
  370. // Endpoint 4 Low
  371. #define USB_O_TXCSRH4 0x00000143 // USB Transmit Control and Status
  372. // Endpoint 4 High
  373. #define USB_O_RXMAXP4 0x00000144 // USB Maximum Receive Data
  374. // Endpoint 4
  375. #define USB_O_RXCSRL4 0x00000146 // USB Receive Control and Status
  376. // Endpoint 4 Low
  377. #define USB_O_RXCSRH4 0x00000147 // USB Receive Control and Status
  378. // Endpoint 4 High
  379. #define USB_O_RXCOUNT4 0x00000148 // USB Receive Byte Count Endpoint
  380. // 4
  381. #define USB_O_TXTYPE4 0x0000014A // USB Host Transmit Configure Type
  382. // Endpoint 4
  383. #define USB_O_TXINTERVAL4 0x0000014B // USB Host Transmit Interval
  384. // Endpoint 4
  385. #define USB_O_RXTYPE4 0x0000014C // USB Host Configure Receive Type
  386. // Endpoint 4
  387. #define USB_O_RXINTERVAL4 0x0000014D // USB Host Receive Polling
  388. // Interval Endpoint 4
  389. #define USB_O_TXMAXP5 0x00000150 // USB Maximum Transmit Data
  390. // Endpoint 5
  391. #define USB_O_TXCSRL5 0x00000152 // USB Transmit Control and Status
  392. // Endpoint 5 Low
  393. #define USB_O_TXCSRH5 0x00000153 // USB Transmit Control and Status
  394. // Endpoint 5 High
  395. #define USB_O_RXMAXP5 0x00000154 // USB Maximum Receive Data
  396. // Endpoint 5
  397. #define USB_O_RXCSRL5 0x00000156 // USB Receive Control and Status
  398. // Endpoint 5 Low
  399. #define USB_O_RXCSRH5 0x00000157 // USB Receive Control and Status
  400. // Endpoint 5 High
  401. #define USB_O_RXCOUNT5 0x00000158 // USB Receive Byte Count Endpoint
  402. // 5
  403. #define USB_O_TXTYPE5 0x0000015A // USB Host Transmit Configure Type
  404. // Endpoint 5
  405. #define USB_O_TXINTERVAL5 0x0000015B // USB Host Transmit Interval
  406. // Endpoint 5
  407. #define USB_O_RXTYPE5 0x0000015C // USB Host Configure Receive Type
  408. // Endpoint 5
  409. #define USB_O_RXINTERVAL5 0x0000015D // USB Host Receive Polling
  410. // Interval Endpoint 5
  411. #define USB_O_TXMAXP6 0x00000160 // USB Maximum Transmit Data
  412. // Endpoint 6
  413. #define USB_O_TXCSRL6 0x00000162 // USB Transmit Control and Status
  414. // Endpoint 6 Low
  415. #define USB_O_TXCSRH6 0x00000163 // USB Transmit Control and Status
  416. // Endpoint 6 High
  417. #define USB_O_RXMAXP6 0x00000164 // USB Maximum Receive Data
  418. // Endpoint 6
  419. #define USB_O_RXCSRL6 0x00000166 // USB Receive Control and Status
  420. // Endpoint 6 Low
  421. #define USB_O_RXCSRH6 0x00000167 // USB Receive Control and Status
  422. // Endpoint 6 High
  423. #define USB_O_RXCOUNT6 0x00000168 // USB Receive Byte Count Endpoint
  424. // 6
  425. #define USB_O_TXTYPE6 0x0000016A // USB Host Transmit Configure Type
  426. // Endpoint 6
  427. #define USB_O_TXINTERVAL6 0x0000016B // USB Host Transmit Interval
  428. // Endpoint 6
  429. #define USB_O_RXTYPE6 0x0000016C // USB Host Configure Receive Type
  430. // Endpoint 6
  431. #define USB_O_RXINTERVAL6 0x0000016D // USB Host Receive Polling
  432. // Interval Endpoint 6
  433. #define USB_O_TXMAXP7 0x00000170 // USB Maximum Transmit Data
  434. // Endpoint 7
  435. #define USB_O_TXCSRL7 0x00000172 // USB Transmit Control and Status
  436. // Endpoint 7 Low
  437. #define USB_O_TXCSRH7 0x00000173 // USB Transmit Control and Status
  438. // Endpoint 7 High
  439. #define USB_O_RXMAXP7 0x00000174 // USB Maximum Receive Data
  440. // Endpoint 7
  441. #define USB_O_RXCSRL7 0x00000176 // USB Receive Control and Status
  442. // Endpoint 7 Low
  443. #define USB_O_RXCSRH7 0x00000177 // USB Receive Control and Status
  444. // Endpoint 7 High
  445. #define USB_O_RXCOUNT7 0x00000178 // USB Receive Byte Count Endpoint
  446. // 7
  447. #define USB_O_TXTYPE7 0x0000017A // USB Host Transmit Configure Type
  448. // Endpoint 7
  449. #define USB_O_TXINTERVAL7 0x0000017B // USB Host Transmit Interval
  450. // Endpoint 7
  451. #define USB_O_RXTYPE7 0x0000017C // USB Host Configure Receive Type
  452. // Endpoint 7
  453. #define USB_O_RXINTERVAL7 0x0000017D // USB Host Receive Polling
  454. // Interval Endpoint 7
  455. #define USB_O_TXMAXP8 0x00000180 // USB Maximum Transmit Data
  456. // Endpoint 8
  457. #define USB_O_TXCSRL8 0x00000182 // USB Transmit Control and Status
  458. // Endpoint 8 Low
  459. #define USB_O_TXCSRH8 0x00000183 // USB Transmit Control and Status
  460. // Endpoint 8 High
  461. #define USB_O_RXMAXP8 0x00000184 // USB Maximum Receive Data
  462. // Endpoint 8
  463. #define USB_O_RXCSRL8 0x00000186 // USB Receive Control and Status
  464. // Endpoint 8 Low
  465. #define USB_O_RXCSRH8 0x00000187 // USB Receive Control and Status
  466. // Endpoint 8 High
  467. #define USB_O_RXCOUNT8 0x00000188 // USB Receive Byte Count Endpoint
  468. // 8
  469. #define USB_O_TXTYPE8 0x0000018A // USB Host Transmit Configure Type
  470. // Endpoint 8
  471. #define USB_O_TXINTERVAL8 0x0000018B // USB Host Transmit Interval
  472. // Endpoint 8
  473. #define USB_O_RXTYPE8 0x0000018C // USB Host Configure Receive Type
  474. // Endpoint 8
  475. #define USB_O_RXINTERVAL8 0x0000018D // USB Host Receive Polling
  476. // Interval Endpoint 8
  477. #define USB_O_TXMAXP9 0x00000190 // USB Maximum Transmit Data
  478. // Endpoint 9
  479. #define USB_O_TXCSRL9 0x00000192 // USB Transmit Control and Status
  480. // Endpoint 9 Low
  481. #define USB_O_TXCSRH9 0x00000193 // USB Transmit Control and Status
  482. // Endpoint 9 High
  483. #define USB_O_RXMAXP9 0x00000194 // USB Maximum Receive Data
  484. // Endpoint 9
  485. #define USB_O_RXCSRL9 0x00000196 // USB Receive Control and Status
  486. // Endpoint 9 Low
  487. #define USB_O_RXCSRH9 0x00000197 // USB Receive Control and Status
  488. // Endpoint 9 High
  489. #define USB_O_RXCOUNT9 0x00000198 // USB Receive Byte Count Endpoint
  490. // 9
  491. #define USB_O_TXTYPE9 0x0000019A // USB Host Transmit Configure Type
  492. // Endpoint 9
  493. #define USB_O_TXINTERVAL9 0x0000019B // USB Host Transmit Interval
  494. // Endpoint 9
  495. #define USB_O_RXTYPE9 0x0000019C // USB Host Configure Receive Type
  496. // Endpoint 9
  497. #define USB_O_RXINTERVAL9 0x0000019D // USB Host Receive Polling
  498. // Interval Endpoint 9
  499. #define USB_O_TXMAXP10 0x000001A0 // USB Maximum Transmit Data
  500. // Endpoint 10
  501. #define USB_O_TXCSRL10 0x000001A2 // USB Transmit Control and Status
  502. // Endpoint 10 Low
  503. #define USB_O_TXCSRH10 0x000001A3 // USB Transmit Control and Status
  504. // Endpoint 10 High
  505. #define USB_O_RXMAXP10 0x000001A4 // USB Maximum Receive Data
  506. // Endpoint 10
  507. #define USB_O_RXCSRL10 0x000001A6 // USB Receive Control and Status
  508. // Endpoint 10 Low
  509. #define USB_O_RXCSRH10 0x000001A7 // USB Receive Control and Status
  510. // Endpoint 10 High
  511. #define USB_O_RXCOUNT10 0x000001A8 // USB Receive Byte Count Endpoint
  512. // 10
  513. #define USB_O_TXTYPE10 0x000001AA // USB Host Transmit Configure Type
  514. // Endpoint 10
  515. #define USB_O_TXINTERVAL10 0x000001AB // USB Host Transmit Interval
  516. // Endpoint 10
  517. #define USB_O_RXTYPE10 0x000001AC // USB Host Configure Receive Type
  518. // Endpoint 10
  519. #define USB_O_RXINTERVAL10 0x000001AD // USB Host Receive Polling
  520. // Interval Endpoint 10
  521. #define USB_O_TXMAXP11 0x000001B0 // USB Maximum Transmit Data
  522. // Endpoint 11
  523. #define USB_O_TXCSRL11 0x000001B2 // USB Transmit Control and Status
  524. // Endpoint 11 Low
  525. #define USB_O_TXCSRH11 0x000001B3 // USB Transmit Control and Status
  526. // Endpoint 11 High
  527. #define USB_O_RXMAXP11 0x000001B4 // USB Maximum Receive Data
  528. // Endpoint 11
  529. #define USB_O_RXCSRL11 0x000001B6 // USB Receive Control and Status
  530. // Endpoint 11 Low
  531. #define USB_O_RXCSRH11 0x000001B7 // USB Receive Control and Status
  532. // Endpoint 11 High
  533. #define USB_O_RXCOUNT11 0x000001B8 // USB Receive Byte Count Endpoint
  534. // 11
  535. #define USB_O_TXTYPE11 0x000001BA // USB Host Transmit Configure Type
  536. // Endpoint 11
  537. #define USB_O_TXINTERVAL11 0x000001BB // USB Host Transmit Interval
  538. // Endpoint 11
  539. #define USB_O_RXTYPE11 0x000001BC // USB Host Configure Receive Type
  540. // Endpoint 11
  541. #define USB_O_RXINTERVAL11 0x000001BD // USB Host Receive Polling
  542. // Interval Endpoint 11
  543. #define USB_O_TXMAXP12 0x000001C0 // USB Maximum Transmit Data
  544. // Endpoint 12
  545. #define USB_O_TXCSRL12 0x000001C2 // USB Transmit Control and Status
  546. // Endpoint 12 Low
  547. #define USB_O_TXCSRH12 0x000001C3 // USB Transmit Control and Status
  548. // Endpoint 12 High
  549. #define USB_O_RXMAXP12 0x000001C4 // USB Maximum Receive Data
  550. // Endpoint 12
  551. #define USB_O_RXCSRL12 0x000001C6 // USB Receive Control and Status
  552. // Endpoint 12 Low
  553. #define USB_O_RXCSRH12 0x000001C7 // USB Receive Control and Status
  554. // Endpoint 12 High
  555. #define USB_O_RXCOUNT12 0x000001C8 // USB Receive Byte Count Endpoint
  556. // 12
  557. #define USB_O_TXTYPE12 0x000001CA // USB Host Transmit Configure Type
  558. // Endpoint 12
  559. #define USB_O_TXINTERVAL12 0x000001CB // USB Host Transmit Interval
  560. // Endpoint 12
  561. #define USB_O_RXTYPE12 0x000001CC // USB Host Configure Receive Type
  562. // Endpoint 12
  563. #define USB_O_RXINTERVAL12 0x000001CD // USB Host Receive Polling
  564. // Interval Endpoint 12
  565. #define USB_O_TXMAXP13 0x000001D0 // USB Maximum Transmit Data
  566. // Endpoint 13
  567. #define USB_O_TXCSRL13 0x000001D2 // USB Transmit Control and Status
  568. // Endpoint 13 Low
  569. #define USB_O_TXCSRH13 0x000001D3 // USB Transmit Control and Status
  570. // Endpoint 13 High
  571. #define USB_O_RXMAXP13 0x000001D4 // USB Maximum Receive Data
  572. // Endpoint 13
  573. #define USB_O_RXCSRL13 0x000001D6 // USB Receive Control and Status
  574. // Endpoint 13 Low
  575. #define USB_O_RXCSRH13 0x000001D7 // USB Receive Control and Status
  576. // Endpoint 13 High
  577. #define USB_O_RXCOUNT13 0x000001D8 // USB Receive Byte Count Endpoint
  578. // 13
  579. #define USB_O_TXTYPE13 0x000001DA // USB Host Transmit Configure Type
  580. // Endpoint 13
  581. #define USB_O_TXINTERVAL13 0x000001DB // USB Host Transmit Interval
  582. // Endpoint 13
  583. #define USB_O_RXTYPE13 0x000001DC // USB Host Configure Receive Type
  584. // Endpoint 13
  585. #define USB_O_RXINTERVAL13 0x000001DD // USB Host Receive Polling
  586. // Interval Endpoint 13
  587. #define USB_O_TXMAXP14 0x000001E0 // USB Maximum Transmit Data
  588. // Endpoint 14
  589. #define USB_O_TXCSRL14 0x000001E2 // USB Transmit Control and Status
  590. // Endpoint 14 Low
  591. #define USB_O_TXCSRH14 0x000001E3 // USB Transmit Control and Status
  592. // Endpoint 14 High
  593. #define USB_O_RXMAXP14 0x000001E4 // USB Maximum Receive Data
  594. // Endpoint 14
  595. #define USB_O_RXCSRL14 0x000001E6 // USB Receive Control and Status
  596. // Endpoint 14 Low
  597. #define USB_O_RXCSRH14 0x000001E7 // USB Receive Control and Status
  598. // Endpoint 14 High
  599. #define USB_O_RXCOUNT14 0x000001E8 // USB Receive Byte Count Endpoint
  600. // 14
  601. #define USB_O_TXTYPE14 0x000001EA // USB Host Transmit Configure Type
  602. // Endpoint 14
  603. #define USB_O_TXINTERVAL14 0x000001EB // USB Host Transmit Interval
  604. // Endpoint 14
  605. #define USB_O_RXTYPE14 0x000001EC // USB Host Configure Receive Type
  606. // Endpoint 14
  607. #define USB_O_RXINTERVAL14 0x000001ED // USB Host Receive Polling
  608. // Interval Endpoint 14
  609. #define USB_O_TXMAXP15 0x000001F0 // USB Maximum Transmit Data
  610. // Endpoint 15
  611. #define USB_O_TXCSRL15 0x000001F2 // USB Transmit Control and Status
  612. // Endpoint 15 Low
  613. #define USB_O_TXCSRH15 0x000001F3 // USB Transmit Control and Status
  614. // Endpoint 15 High
  615. #define USB_O_RXMAXP15 0x000001F4 // USB Maximum Receive Data
  616. // Endpoint 15
  617. #define USB_O_RXCSRL15 0x000001F6 // USB Receive Control and Status
  618. // Endpoint 15 Low
  619. #define USB_O_RXCSRH15 0x000001F7 // USB Receive Control and Status
  620. // Endpoint 15 High
  621. #define USB_O_RXCOUNT15 0x000001F8 // USB Receive Byte Count Endpoint
  622. // 15
  623. #define USB_O_TXTYPE15 0x000001FA // USB Host Transmit Configure Type
  624. // Endpoint 15
  625. #define USB_O_TXINTERVAL15 0x000001FB // USB Host Transmit Interval
  626. // Endpoint 15
  627. #define USB_O_RXTYPE15 0x000001FC // USB Host Configure Receive Type
  628. // Endpoint 15
  629. #define USB_O_RXINTERVAL15 0x000001FD // USB Host Receive Polling
  630. // Interval Endpoint 15
  631. #define USB_O_RQPKTCOUNT1 0x00000304 // USB Request Packet Count in
  632. // Block Transfer Endpoint 1
  633. #define USB_O_RQPKTCOUNT2 0x00000308 // USB Request Packet Count in
  634. // Block Transfer Endpoint 2
  635. #define USB_O_RQPKTCOUNT3 0x0000030C // USB Request Packet Count in
  636. // Block Transfer Endpoint 3
  637. #define USB_O_RQPKTCOUNT4 0x00000310 // USB Request Packet Count in
  638. // Block Transfer Endpoint 4
  639. #define USB_O_RQPKTCOUNT5 0x00000314 // USB Request Packet Count in
  640. // Block Transfer Endpoint 5
  641. #define USB_O_RQPKTCOUNT6 0x00000318 // USB Request Packet Count in
  642. // Block Transfer Endpoint 6
  643. #define USB_O_RQPKTCOUNT7 0x0000031C // USB Request Packet Count in
  644. // Block Transfer Endpoint 7
  645. #define USB_O_RQPKTCOUNT8 0x00000320 // USB Request Packet Count in
  646. // Block Transfer Endpoint 8
  647. #define USB_O_RQPKTCOUNT9 0x00000324 // USB Request Packet Count in
  648. // Block Transfer Endpoint 9
  649. #define USB_O_RQPKTCOUNT10 0x00000328 // USB Request Packet Count in
  650. // Block Transfer Endpoint 10
  651. #define USB_O_RQPKTCOUNT11 0x0000032C // USB Request Packet Count in
  652. // Block Transfer Endpoint 11
  653. #define USB_O_RQPKTCOUNT12 0x00000330 // USB Request Packet Count in
  654. // Block Transfer Endpoint 12
  655. #define USB_O_RQPKTCOUNT13 0x00000334 // USB Request Packet Count in
  656. // Block Transfer Endpoint 13
  657. #define USB_O_RQPKTCOUNT14 0x00000338 // USB Request Packet Count in
  658. // Block Transfer Endpoint 14
  659. #define USB_O_RQPKTCOUNT15 0x0000033C // USB Request Packet Count in
  660. // Block Transfer Endpoint 15
  661. #define USB_O_RXDPKTBUFDIS 0x00000340 // USB Receive Double Packet Buffer
  662. // Disable
  663. #define USB_O_TXDPKTBUFDIS 0x00000342 // USB Transmit Double Packet
  664. // Buffer Disable
  665. #define USB_O_EPC 0x00000400 // USB External Power Control
  666. #define USB_O_EPCRIS 0x00000404 // USB External Power Control Raw
  667. // Interrupt Status
  668. #define USB_O_EPCIM 0x00000408 // USB External Power Control
  669. // Interrupt Mask
  670. #define USB_O_EPCISC 0x0000040C // USB External Power Control
  671. // Interrupt Status and Clear
  672. #define USB_O_DRRIS 0x00000410 // USB Device RESUME Raw Interrupt
  673. // Status
  674. #define USB_O_DRIM 0x00000414 // USB Device RESUME Interrupt Mask
  675. #define USB_O_DRISC 0x00000418 // USB Device RESUME Interrupt
  676. // Status and Clear
  677. #define USB_O_GPCS 0x0000041C // USB General-Purpose Control and
  678. // Status
  679. #define USB_O_VDC 0x00000430 // USB VBUS Droop Control
  680. #define USB_O_VDCRIS 0x00000434 // USB VBUS Droop Control Raw
  681. // Interrupt Status
  682. #define USB_O_VDCIM 0x00000438 // USB VBUS Droop Control Interrupt
  683. // Mask
  684. #define USB_O_VDCISC 0x0000043C // USB VBUS Droop Control Interrupt
  685. // Status and Clear
  686. #define USB_O_IDVRIS 0x00000444 // USB ID Valid Detect Raw
  687. // Interrupt Status
  688. #define USB_O_IDVIM 0x00000448 // USB ID Valid Detect Interrupt
  689. // Mask
  690. #define USB_O_IDVISC 0x0000044C // USB ID Valid Detect Interrupt
  691. // Status and Clear
  692. #define USB_O_DMASEL 0x00000450 // USB DMA Select
  693. //*****************************************************************************
  694. //
  695. // The following are defines for the bit fields in the USB_O_FADDR register.
  696. //
  697. //*****************************************************************************
  698. #define USB_FADDR_M 0x0000007F // Function Address
  699. #define USB_FADDR_S 0
  700. //*****************************************************************************
  701. //
  702. // The following are defines for the bit fields in the USB_O_POWER register.
  703. //
  704. //*****************************************************************************
  705. #define USB_POWER_ISOUP 0x00000080 // Isochronous Update
  706. #define USB_POWER_HS_MODE 0x00000010 // High speed mode
  707. #define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
  708. #define USB_POWER_RESET 0x00000008 // RESET Signaling
  709. #define USB_POWER_RESUME 0x00000004 // RESUME Signaling
  710. #define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
  711. #define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
  712. //*****************************************************************************
  713. //
  714. // The following are defines for the bit fields in the USB_O_TXIS register.
  715. //
  716. //*****************************************************************************
  717. #define USB_TXIS_EP15 0x00008000 // TX Endpoint 15 Interrupt
  718. #define USB_TXIS_EP14 0x00004000 // TX Endpoint 14 Interrupt
  719. #define USB_TXIS_EP13 0x00002000 // TX Endpoint 13 Interrupt
  720. #define USB_TXIS_EP12 0x00001000 // TX Endpoint 12 Interrupt
  721. #define USB_TXIS_EP11 0x00000800 // TX Endpoint 11 Interrupt
  722. #define USB_TXIS_EP10 0x00000400 // TX Endpoint 10 Interrupt
  723. #define USB_TXIS_EP9 0x00000200 // TX Endpoint 9 Interrupt
  724. #define USB_TXIS_EP8 0x00000100 // TX Endpoint 8 Interrupt
  725. #define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
  726. #define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
  727. #define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
  728. #define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
  729. #define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
  730. #define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
  731. #define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
  732. #define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  733. //*****************************************************************************
  734. //
  735. // The following are defines for the bit fields in the USB_O_RXIS register.
  736. //
  737. //*****************************************************************************
  738. #define USB_RXIS_EP15 0x00008000 // RX Endpoint 15 Interrupt
  739. #define USB_RXIS_EP14 0x00004000 // RX Endpoint 14 Interrupt
  740. #define USB_RXIS_EP13 0x00002000 // RX Endpoint 13 Interrupt
  741. #define USB_RXIS_EP12 0x00001000 // RX Endpoint 12 Interrupt
  742. #define USB_RXIS_EP11 0x00000800 // RX Endpoint 11 Interrupt
  743. #define USB_RXIS_EP10 0x00000400 // RX Endpoint 10 Interrupt
  744. #define USB_RXIS_EP9 0x00000200 // RX Endpoint 9 Interrupt
  745. #define USB_RXIS_EP8 0x00000100 // RX Endpoint 8 Interrupt
  746. #define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
  747. #define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
  748. #define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
  749. #define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
  750. #define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
  751. #define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
  752. #define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
  753. //*****************************************************************************
  754. //
  755. // The following are defines for the bit fields in the USB_O_TXIE register.
  756. //
  757. //*****************************************************************************
  758. #define USB_TXIE_EP15 0x00008000 // TX Endpoint 15 Interrupt Enable
  759. #define USB_TXIE_EP14 0x00004000 // TX Endpoint 14 Interrupt Enable
  760. #define USB_TXIE_EP13 0x00002000 // TX Endpoint 13 Interrupt Enable
  761. #define USB_TXIE_EP12 0x00001000 // TX Endpoint 12 Interrupt Enable
  762. #define USB_TXIE_EP11 0x00000800 // TX Endpoint 11 Interrupt Enable
  763. #define USB_TXIE_EP10 0x00000400 // TX Endpoint 10 Interrupt Enable
  764. #define USB_TXIE_EP9 0x00000200 // TX Endpoint 9 Interrupt Enable
  765. #define USB_TXIE_EP8 0x00000100 // TX Endpoint 8 Interrupt Enable
  766. #define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
  767. #define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
  768. #define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
  769. #define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
  770. #define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
  771. #define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
  772. #define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
  773. #define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  774. // Enable
  775. //*****************************************************************************
  776. //
  777. // The following are defines for the bit fields in the USB_O_RXIE register.
  778. //
  779. //*****************************************************************************
  780. #define USB_RXIE_EP15 0x00008000 // RX Endpoint 15 Interrupt Enable
  781. #define USB_RXIE_EP14 0x00004000 // RX Endpoint 14 Interrupt Enable
  782. #define USB_RXIE_EP13 0x00002000 // RX Endpoint 13 Interrupt Enable
  783. #define USB_RXIE_EP12 0x00001000 // RX Endpoint 12 Interrupt Enable
  784. #define USB_RXIE_EP11 0x00000800 // RX Endpoint 11 Interrupt Enable
  785. #define USB_RXIE_EP10 0x00000400 // RX Endpoint 10 Interrupt Enable
  786. #define USB_RXIE_EP9 0x00000200 // RX Endpoint 9 Interrupt Enable
  787. #define USB_RXIE_EP8 0x00000100 // RX Endpoint 8 Interrupt Enable
  788. #define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
  789. #define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
  790. #define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
  791. #define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
  792. #define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
  793. #define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
  794. #define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
  795. //*****************************************************************************
  796. //
  797. // The following are defines for the bit fields in the USB_O_IS register.
  798. //
  799. //*****************************************************************************
  800. #define USB_IS_VBUSERR 0x00000080 // VBUS Error
  801. #define USB_IS_SESREQ 0x00000040 // SESSION REQUEST
  802. #define USB_IS_DISCON 0x00000020 // Session Disconnect
  803. #define USB_IS_CONN 0x00000010 // Session Connect
  804. #define USB_IS_SOF 0x00000008 // Start of Frame
  805. #define USB_IS_BABBLE 0x00000004 // Babble Detected
  806. #define USB_IS_RESET 0x00000004 // RESET Signaling Detected
  807. #define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
  808. #define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
  809. //*****************************************************************************
  810. //
  811. // The following are defines for the bit fields in the USB_O_IE register.
  812. //
  813. //*****************************************************************************
  814. #define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt
  815. #define USB_IE_SESREQ 0x00000040 // Enable Session Request
  816. #define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
  817. #define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
  818. #define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
  819. #define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
  820. #define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
  821. #define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
  822. #define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
  823. //*****************************************************************************
  824. //
  825. // The following are defines for the bit fields in the USB_O_FRAME register.
  826. //
  827. //*****************************************************************************
  828. #define USB_FRAME_M 0x000007FF // Frame Number
  829. #define USB_FRAME_S 0
  830. //*****************************************************************************
  831. //
  832. // The following are defines for the bit fields in the USB_O_EPIDX register.
  833. //
  834. //*****************************************************************************
  835. #define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
  836. #define USB_EPIDX_EPIDX_S 0
  837. //*****************************************************************************
  838. //
  839. // The following are defines for the bit fields in the USB_O_TEST register.
  840. //
  841. //*****************************************************************************
  842. #define USB_TEST_FORCEH 0x00000080 // Force Host Mode
  843. #define USB_TEST_FIFOACC 0x00000040 // FIFO Access
  844. #define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
  845. //*****************************************************************************
  846. //
  847. // The following are defines for the bit fields in the USB_O_FIFO0 register.
  848. //
  849. //*****************************************************************************
  850. #define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
  851. #define USB_FIFO0_EPDATA_S 0
  852. //*****************************************************************************
  853. //
  854. // The following are defines for the bit fields in the USB_O_FIFO1 register.
  855. //
  856. //*****************************************************************************
  857. #define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
  858. #define USB_FIFO1_EPDATA_S 0
  859. //*****************************************************************************
  860. //
  861. // The following are defines for the bit fields in the USB_O_FIFO2 register.
  862. //
  863. //*****************************************************************************
  864. #define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
  865. #define USB_FIFO2_EPDATA_S 0
  866. //*****************************************************************************
  867. //
  868. // The following are defines for the bit fields in the USB_O_FIFO3 register.
  869. //
  870. //*****************************************************************************
  871. #define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
  872. #define USB_FIFO3_EPDATA_S 0
  873. //*****************************************************************************
  874. //
  875. // The following are defines for the bit fields in the USB_O_FIFO4 register.
  876. //
  877. //*****************************************************************************
  878. #define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
  879. #define USB_FIFO4_EPDATA_S 0
  880. //*****************************************************************************
  881. //
  882. // The following are defines for the bit fields in the USB_O_FIFO5 register.
  883. //
  884. //*****************************************************************************
  885. #define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
  886. #define USB_FIFO5_EPDATA_S 0
  887. //*****************************************************************************
  888. //
  889. // The following are defines for the bit fields in the USB_O_FIFO6 register.
  890. //
  891. //*****************************************************************************
  892. #define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
  893. #define USB_FIFO6_EPDATA_S 0
  894. //*****************************************************************************
  895. //
  896. // The following are defines for the bit fields in the USB_O_FIFO7 register.
  897. //
  898. //*****************************************************************************
  899. #define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
  900. #define USB_FIFO7_EPDATA_S 0
  901. //*****************************************************************************
  902. //
  903. // The following are defines for the bit fields in the USB_O_FIFO8 register.
  904. //
  905. //*****************************************************************************
  906. #define USB_FIFO8_EPDATA_M 0xFFFFFFFF // Endpoint Data
  907. #define USB_FIFO8_EPDATA_S 0
  908. //*****************************************************************************
  909. //
  910. // The following are defines for the bit fields in the USB_O_FIFO9 register.
  911. //
  912. //*****************************************************************************
  913. #define USB_FIFO9_EPDATA_M 0xFFFFFFFF // Endpoint Data
  914. #define USB_FIFO9_EPDATA_S 0
  915. //*****************************************************************************
  916. //
  917. // The following are defines for the bit fields in the USB_O_FIFO10 register.
  918. //
  919. //*****************************************************************************
  920. #define USB_FIFO10_EPDATA_M 0xFFFFFFFF // Endpoint Data
  921. #define USB_FIFO10_EPDATA_S 0
  922. //*****************************************************************************
  923. //
  924. // The following are defines for the bit fields in the USB_O_FIFO11 register.
  925. //
  926. //*****************************************************************************
  927. #define USB_FIFO11_EPDATA_M 0xFFFFFFFF // Endpoint Data
  928. #define USB_FIFO11_EPDATA_S 0
  929. //*****************************************************************************
  930. //
  931. // The following are defines for the bit fields in the USB_O_FIFO12 register.
  932. //
  933. //*****************************************************************************
  934. #define USB_FIFO12_EPDATA_M 0xFFFFFFFF // Endpoint Data
  935. #define USB_FIFO12_EPDATA_S 0
  936. //*****************************************************************************
  937. //
  938. // The following are defines for the bit fields in the USB_O_FIFO13 register.
  939. //
  940. //*****************************************************************************
  941. #define USB_FIFO13_EPDATA_M 0xFFFFFFFF // Endpoint Data
  942. #define USB_FIFO13_EPDATA_S 0
  943. //*****************************************************************************
  944. //
  945. // The following are defines for the bit fields in the USB_O_FIFO14 register.
  946. //
  947. //*****************************************************************************
  948. #define USB_FIFO14_EPDATA_M 0xFFFFFFFF // Endpoint Data
  949. #define USB_FIFO14_EPDATA_S 0
  950. //*****************************************************************************
  951. //
  952. // The following are defines for the bit fields in the USB_O_FIFO15 register.
  953. //
  954. //*****************************************************************************
  955. #define USB_FIFO15_EPDATA_M 0xFFFFFFFF // Endpoint Data
  956. #define USB_FIFO15_EPDATA_S 0
  957. //*****************************************************************************
  958. //
  959. // The following are defines for the bit fields in the USB_O_DEVCTL register.
  960. //
  961. //*****************************************************************************
  962. #define USB_DEVCTL_DEV 0x00000080 // Device Mode
  963. #define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
  964. #define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
  965. #define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level
  966. #define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
  967. #define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
  968. #define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
  969. #define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
  970. #define USB_DEVCTL_HOST 0x00000004 // Host Mode
  971. #define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request
  972. #define USB_DEVCTL_SESSION 0x00000001 // Session Start/End
  973. //*****************************************************************************
  974. //
  975. // The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
  976. //
  977. //*****************************************************************************
  978. #define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  979. #define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  980. #define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
  981. #define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
  982. #define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
  983. #define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
  984. #define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
  985. #define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
  986. #define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
  987. #define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
  988. #define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
  989. //*****************************************************************************
  990. //
  991. // The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
  992. //
  993. //*****************************************************************************
  994. #define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  995. #define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  996. #define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
  997. #define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
  998. #define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
  999. #define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
  1000. #define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
  1001. #define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
  1002. #define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
  1003. #define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
  1004. #define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
  1005. //*****************************************************************************
  1006. //
  1007. // The following are defines for the bit fields in the USB_O_TXFIFOADD
  1008. // register.
  1009. //
  1010. //*****************************************************************************
  1011. #define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  1012. #define USB_TXFIFOADD_ADDR_S 0
  1013. //*****************************************************************************
  1014. //
  1015. // The following are defines for the bit fields in the USB_O_RXFIFOADD
  1016. // register.
  1017. //
  1018. //*****************************************************************************
  1019. #define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  1020. #define USB_RXFIFOADD_ADDR_S 0
  1021. //*****************************************************************************
  1022. //
  1023. // The following are defines for the bit fields in the USB_O_CONTIM register.
  1024. //
  1025. //*****************************************************************************
  1026. #define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
  1027. #define USB_CONTIM_WTID_M 0x0000000F // Wait ID
  1028. #define USB_CONTIM_WTCON_S 4
  1029. #define USB_CONTIM_WTID_S 0
  1030. //*****************************************************************************
  1031. //
  1032. // The following are defines for the bit fields in the USB_O_VPLEN register.
  1033. //
  1034. //*****************************************************************************
  1035. #define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
  1036. #define USB_VPLEN_VPLEN_S 0
  1037. //*****************************************************************************
  1038. //
  1039. // The following are defines for the bit fields in the USB_O_FSEOF register.
  1040. //
  1041. //*****************************************************************************
  1042. #define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
  1043. #define USB_FSEOF_FSEOFG_S 0
  1044. //*****************************************************************************
  1045. //
  1046. // The following are defines for the bit fields in the USB_O_LSEOF register.
  1047. //
  1048. //*****************************************************************************
  1049. #define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
  1050. #define USB_LSEOF_LSEOFG_S 0
  1051. //*****************************************************************************
  1052. //
  1053. // The following are defines for the bit fields in the USB_O_TXFUNCADDR0
  1054. // register.
  1055. //
  1056. //*****************************************************************************
  1057. #define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
  1058. #define USB_TXFUNCADDR0_ADDR_S 0
  1059. //*****************************************************************************
  1060. //
  1061. // The following are defines for the bit fields in the USB_O_TXHUBADDR0
  1062. // register.
  1063. //
  1064. //*****************************************************************************
  1065. #define USB_TXHUBADDR0_MULTTRAN 0x00000080 // Multiple Translators
  1066. #define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
  1067. #define USB_TXHUBADDR0_ADDR_S 0
  1068. //*****************************************************************************
  1069. //
  1070. // The following are defines for the bit fields in the USB_O_TXHUBPORT0
  1071. // register.
  1072. //
  1073. //*****************************************************************************
  1074. #define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
  1075. #define USB_TXHUBPORT0_PORT_S 0
  1076. //*****************************************************************************
  1077. //
  1078. // The following are defines for the bit fields in the USB_O_TXFUNCADDR1
  1079. // register.
  1080. //
  1081. //*****************************************************************************
  1082. #define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  1083. #define USB_TXFUNCADDR1_ADDR_S 0
  1084. //*****************************************************************************
  1085. //
  1086. // The following are defines for the bit fields in the USB_O_TXHUBADDR1
  1087. // register.
  1088. //
  1089. //*****************************************************************************
  1090. #define USB_TXHUBADDR1_MULTTRAN 0x00000080 // Multiple Translators
  1091. #define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  1092. #define USB_TXHUBADDR1_ADDR_S 0
  1093. //*****************************************************************************
  1094. //
  1095. // The following are defines for the bit fields in the USB_O_TXHUBPORT1
  1096. // register.
  1097. //
  1098. //*****************************************************************************
  1099. #define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
  1100. #define USB_TXHUBPORT1_PORT_S 0
  1101. //*****************************************************************************
  1102. //
  1103. // The following are defines for the bit fields in the USB_O_RXFUNCADDR1
  1104. // register.
  1105. //
  1106. //*****************************************************************************
  1107. #define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  1108. #define USB_RXFUNCADDR1_ADDR_S 0
  1109. //*****************************************************************************
  1110. //
  1111. // The following are defines for the bit fields in the USB_O_RXHUBADDR1
  1112. // register.
  1113. //
  1114. //*****************************************************************************
  1115. #define USB_RXHUBADDR1_MULTTRAN 0x00000080 // Multiple Translators
  1116. #define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  1117. #define USB_RXHUBADDR1_ADDR_S 0
  1118. //*****************************************************************************
  1119. //
  1120. // The following are defines for the bit fields in the USB_O_RXHUBPORT1
  1121. // register.
  1122. //
  1123. //*****************************************************************************
  1124. #define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
  1125. #define USB_RXHUBPORT1_PORT_S 0
  1126. //*****************************************************************************
  1127. //
  1128. // The following are defines for the bit fields in the USB_O_TXFUNCADDR2
  1129. // register.
  1130. //
  1131. //*****************************************************************************
  1132. #define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  1133. #define USB_TXFUNCADDR2_ADDR_S 0
  1134. //*****************************************************************************
  1135. //
  1136. // The following are defines for the bit fields in the USB_O_TXHUBADDR2
  1137. // register.
  1138. //
  1139. //*****************************************************************************
  1140. #define USB_TXHUBADDR2_MULTTRAN 0x00000080 // Multiple Translators
  1141. #define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  1142. #define USB_TXHUBADDR2_ADDR_S 0
  1143. //*****************************************************************************
  1144. //
  1145. // The following are defines for the bit fields in the USB_O_TXHUBPORT2
  1146. // register.
  1147. //
  1148. //*****************************************************************************
  1149. #define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
  1150. #define USB_TXHUBPORT2_PORT_S 0
  1151. //*****************************************************************************
  1152. //
  1153. // The following are defines for the bit fields in the USB_O_RXFUNCADDR2
  1154. // register.
  1155. //
  1156. //*****************************************************************************
  1157. #define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  1158. #define USB_RXFUNCADDR2_ADDR_S 0
  1159. //*****************************************************************************
  1160. //
  1161. // The following are defines for the bit fields in the USB_O_RXHUBADDR2
  1162. // register.
  1163. //
  1164. //*****************************************************************************
  1165. #define USB_RXHUBADDR2_MULTTRAN 0x00000080 // Multiple Translators
  1166. #define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  1167. #define USB_RXHUBADDR2_ADDR_S 0
  1168. //*****************************************************************************
  1169. //
  1170. // The following are defines for the bit fields in the USB_O_RXHUBPORT2
  1171. // register.
  1172. //
  1173. //*****************************************************************************
  1174. #define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
  1175. #define USB_RXHUBPORT2_PORT_S 0
  1176. //*****************************************************************************
  1177. //
  1178. // The following are defines for the bit fields in the USB_O_TXFUNCADDR3
  1179. // register.
  1180. //
  1181. //*****************************************************************************
  1182. #define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  1183. #define USB_TXFUNCADDR3_ADDR_S 0
  1184. //*****************************************************************************
  1185. //
  1186. // The following are defines for the bit fields in the USB_O_TXHUBADDR3
  1187. // register.
  1188. //
  1189. //*****************************************************************************
  1190. #define USB_TXHUBADDR3_MULTTRAN 0x00000080 // Multiple Translators
  1191. #define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  1192. #define USB_TXHUBADDR3_ADDR_S 0
  1193. //*****************************************************************************
  1194. //
  1195. // The following are defines for the bit fields in the USB_O_TXHUBPORT3
  1196. // register.
  1197. //
  1198. //*****************************************************************************
  1199. #define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
  1200. #define USB_TXHUBPORT3_PORT_S 0
  1201. //*****************************************************************************
  1202. //
  1203. // The following are defines for the bit fields in the USB_O_RXFUNCADDR3
  1204. // register.
  1205. //
  1206. //*****************************************************************************
  1207. #define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  1208. #define USB_RXFUNCADDR3_ADDR_S 0
  1209. //*****************************************************************************
  1210. //
  1211. // The following are defines for the bit fields in the USB_O_RXHUBADDR3
  1212. // register.
  1213. //
  1214. //*****************************************************************************
  1215. #define USB_RXHUBADDR3_MULTTRAN 0x00000080 // Multiple Translators
  1216. #define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  1217. #define USB_RXHUBADDR3_ADDR_S 0
  1218. //*****************************************************************************
  1219. //
  1220. // The following are defines for the bit fields in the USB_O_RXHUBPORT3
  1221. // register.
  1222. //
  1223. //*****************************************************************************
  1224. #define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
  1225. #define USB_RXHUBPORT3_PORT_S 0
  1226. //*****************************************************************************
  1227. //
  1228. // The following are defines for the bit fields in the USB_O_TXFUNCADDR4
  1229. // register.
  1230. //
  1231. //*****************************************************************************
  1232. #define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  1233. #define USB_TXFUNCADDR4_ADDR_S 0
  1234. //*****************************************************************************
  1235. //
  1236. // The following are defines for the bit fields in the USB_O_TXHUBADDR4
  1237. // register.
  1238. //
  1239. //*****************************************************************************
  1240. #define USB_TXHUBADDR4_MULTTRAN 0x00000080 // Multiple Translators
  1241. #define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  1242. #define USB_TXHUBADDR4_ADDR_S 0
  1243. //*****************************************************************************
  1244. //
  1245. // The following are defines for the bit fields in the USB_O_TXHUBPORT4
  1246. // register.
  1247. //
  1248. //*****************************************************************************
  1249. #define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
  1250. #define USB_TXHUBPORT4_PORT_S 0
  1251. //*****************************************************************************
  1252. //
  1253. // The following are defines for the bit fields in the USB_O_RXFUNCADDR4
  1254. // register.
  1255. //
  1256. //*****************************************************************************
  1257. #define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  1258. #define USB_RXFUNCADDR4_ADDR_S 0
  1259. //*****************************************************************************
  1260. //
  1261. // The following are defines for the bit fields in the USB_O_RXHUBADDR4
  1262. // register.
  1263. //
  1264. //*****************************************************************************
  1265. #define USB_RXHUBADDR4_MULTTRAN 0x00000080 // Multiple Translators
  1266. #define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  1267. #define USB_RXHUBADDR4_ADDR_S 0
  1268. //*****************************************************************************
  1269. //
  1270. // The following are defines for the bit fields in the USB_O_RXHUBPORT4
  1271. // register.
  1272. //
  1273. //*****************************************************************************
  1274. #define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
  1275. #define USB_RXHUBPORT4_PORT_S 0
  1276. //*****************************************************************************
  1277. //
  1278. // The following are defines for the bit fields in the USB_O_TXFUNCADDR5
  1279. // register.
  1280. //
  1281. //*****************************************************************************
  1282. #define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  1283. #define USB_TXFUNCADDR5_ADDR_S 0
  1284. //*****************************************************************************
  1285. //
  1286. // The following are defines for the bit fields in the USB_O_TXHUBADDR5
  1287. // register.
  1288. //
  1289. //*****************************************************************************
  1290. #define USB_TXHUBADDR5_MULTTRAN 0x00000080 // Multiple Translators
  1291. #define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  1292. #define USB_TXHUBADDR5_ADDR_S 0
  1293. //*****************************************************************************
  1294. //
  1295. // The following are defines for the bit fields in the USB_O_TXHUBPORT5
  1296. // register.
  1297. //
  1298. //*****************************************************************************
  1299. #define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
  1300. #define USB_TXHUBPORT5_PORT_S 0
  1301. //*****************************************************************************
  1302. //
  1303. // The following are defines for the bit fields in the USB_O_RXFUNCADDR5
  1304. // register.
  1305. //
  1306. //*****************************************************************************
  1307. #define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  1308. #define USB_RXFUNCADDR5_ADDR_S 0
  1309. //*****************************************************************************
  1310. //
  1311. // The following are defines for the bit fields in the USB_O_RXHUBADDR5
  1312. // register.
  1313. //
  1314. //*****************************************************************************
  1315. #define USB_RXHUBADDR5_MULTTRAN 0x00000080 // Multiple Translators
  1316. #define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  1317. #define USB_RXHUBADDR5_ADDR_S 0
  1318. //*****************************************************************************
  1319. //
  1320. // The following are defines for the bit fields in the USB_O_RXHUBPORT5
  1321. // register.
  1322. //
  1323. //*****************************************************************************
  1324. #define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
  1325. #define USB_RXHUBPORT5_PORT_S 0
  1326. //*****************************************************************************
  1327. //
  1328. // The following are defines for the bit fields in the USB_O_TXFUNCADDR6
  1329. // register.
  1330. //
  1331. //*****************************************************************************
  1332. #define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1333. #define USB_TXFUNCADDR6_ADDR_S 0
  1334. //*****************************************************************************
  1335. //
  1336. // The following are defines for the bit fields in the USB_O_TXHUBADDR6
  1337. // register.
  1338. //
  1339. //*****************************************************************************
  1340. #define USB_TXHUBADDR6_MULTTRAN 0x00000080 // Multiple Translators
  1341. #define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1342. #define USB_TXHUBADDR6_ADDR_S 0
  1343. //*****************************************************************************
  1344. //
  1345. // The following are defines for the bit fields in the USB_O_TXHUBPORT6
  1346. // register.
  1347. //
  1348. //*****************************************************************************
  1349. #define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1350. #define USB_TXHUBPORT6_PORT_S 0
  1351. //*****************************************************************************
  1352. //
  1353. // The following are defines for the bit fields in the USB_O_RXFUNCADDR6
  1354. // register.
  1355. //
  1356. //*****************************************************************************
  1357. #define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1358. #define USB_RXFUNCADDR6_ADDR_S 0
  1359. //*****************************************************************************
  1360. //
  1361. // The following are defines for the bit fields in the USB_O_RXHUBADDR6
  1362. // register.
  1363. //
  1364. //*****************************************************************************
  1365. #define USB_RXHUBADDR6_MULTTRAN 0x00000080 // Multiple Translators
  1366. #define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1367. #define USB_RXHUBADDR6_ADDR_S 0
  1368. //*****************************************************************************
  1369. //
  1370. // The following are defines for the bit fields in the USB_O_RXHUBPORT6
  1371. // register.
  1372. //
  1373. //*****************************************************************************
  1374. #define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1375. #define USB_RXHUBPORT6_PORT_S 0
  1376. //*****************************************************************************
  1377. //
  1378. // The following are defines for the bit fields in the USB_O_TXFUNCADDR7
  1379. // register.
  1380. //
  1381. //*****************************************************************************
  1382. #define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1383. #define USB_TXFUNCADDR7_ADDR_S 0
  1384. //*****************************************************************************
  1385. //
  1386. // The following are defines for the bit fields in the USB_O_TXHUBADDR7
  1387. // register.
  1388. //
  1389. //*****************************************************************************
  1390. #define USB_TXHUBADDR7_MULTTRAN 0x00000080 // Multiple Translators
  1391. #define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1392. #define USB_TXHUBADDR7_ADDR_S 0
  1393. //*****************************************************************************
  1394. //
  1395. // The following are defines for the bit fields in the USB_O_TXHUBPORT7
  1396. // register.
  1397. //
  1398. //*****************************************************************************
  1399. #define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1400. #define USB_TXHUBPORT7_PORT_S 0
  1401. //*****************************************************************************
  1402. //
  1403. // The following are defines for the bit fields in the USB_O_RXFUNCADDR7
  1404. // register.
  1405. //
  1406. //*****************************************************************************
  1407. #define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1408. #define USB_RXFUNCADDR7_ADDR_S 0
  1409. //*****************************************************************************
  1410. //
  1411. // The following are defines for the bit fields in the USB_O_RXHUBADDR7
  1412. // register.
  1413. //
  1414. //*****************************************************************************
  1415. #define USB_RXHUBADDR7_MULTTRAN 0x00000080 // Multiple Translators
  1416. #define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1417. #define USB_RXHUBADDR7_ADDR_S 0
  1418. //*****************************************************************************
  1419. //
  1420. // The following are defines for the bit fields in the USB_O_RXHUBPORT7
  1421. // register.
  1422. //
  1423. //*****************************************************************************
  1424. #define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1425. #define USB_RXHUBPORT7_PORT_S 0
  1426. //*****************************************************************************
  1427. //
  1428. // The following are defines for the bit fields in the USB_O_TXFUNCADDR8
  1429. // register.
  1430. //
  1431. //*****************************************************************************
  1432. #define USB_TXFUNCADDR8_ADDR_M 0x0000007F // Device Address
  1433. #define USB_TXFUNCADDR8_ADDR_S 0
  1434. //*****************************************************************************
  1435. //
  1436. // The following are defines for the bit fields in the USB_O_TXHUBADDR8
  1437. // register.
  1438. //
  1439. //*****************************************************************************
  1440. #define USB_TXHUBADDR8_MULTTRAN 0x00000080 // Multiple Translators
  1441. #define USB_TXHUBADDR8_ADDR_M 0x0000007F // Hub Address
  1442. #define USB_TXHUBADDR8_ADDR_S 0
  1443. //*****************************************************************************
  1444. //
  1445. // The following are defines for the bit fields in the USB_O_TXHUBPORT8
  1446. // register.
  1447. //
  1448. //*****************************************************************************
  1449. #define USB_TXHUBPORT8_PORT_M 0x0000007F // Hub Port
  1450. #define USB_TXHUBPORT8_PORT_S 0
  1451. //*****************************************************************************
  1452. //
  1453. // The following are defines for the bit fields in the USB_O_RXFUNCADDR8
  1454. // register.
  1455. //
  1456. //*****************************************************************************
  1457. #define USB_RXFUNCADDR8_ADDR_M 0x0000007F // Device Address
  1458. #define USB_RXFUNCADDR8_ADDR_S 0
  1459. //*****************************************************************************
  1460. //
  1461. // The following are defines for the bit fields in the USB_O_RXHUBADDR8
  1462. // register.
  1463. //
  1464. //*****************************************************************************
  1465. #define USB_RXHUBADDR8_MULTTRAN 0x00000080 // Multiple Translators
  1466. #define USB_RXHUBADDR8_ADDR_M 0x0000007F // Hub Address
  1467. #define USB_RXHUBADDR8_ADDR_S 0
  1468. //*****************************************************************************
  1469. //
  1470. // The following are defines for the bit fields in the USB_O_RXHUBPORT8
  1471. // register.
  1472. //
  1473. //*****************************************************************************
  1474. #define USB_RXHUBPORT8_PORT_M 0x0000007F // Hub Port
  1475. #define USB_RXHUBPORT8_PORT_S 0
  1476. //*****************************************************************************
  1477. //
  1478. // The following are defines for the bit fields in the USB_O_TXFUNCADDR9
  1479. // register.
  1480. //
  1481. //*****************************************************************************
  1482. #define USB_TXFUNCADDR9_ADDR_M 0x0000007F // Device Address
  1483. #define USB_TXFUNCADDR9_ADDR_S 0
  1484. //*****************************************************************************
  1485. //
  1486. // The following are defines for the bit fields in the USB_O_TXHUBADDR9
  1487. // register.
  1488. //
  1489. //*****************************************************************************
  1490. #define USB_TXHUBADDR9_MULTTRAN 0x00000080 // Multiple Translators
  1491. #define USB_TXHUBADDR9_ADDR_M 0x0000007F // Hub Address
  1492. #define USB_TXHUBADDR9_ADDR_S 0
  1493. //*****************************************************************************
  1494. //
  1495. // The following are defines for the bit fields in the USB_O_TXHUBPORT9
  1496. // register.
  1497. //
  1498. //*****************************************************************************
  1499. #define USB_TXHUBPORT9_PORT_M 0x0000007F // Hub Port
  1500. #define USB_TXHUBPORT9_PORT_S 0
  1501. //*****************************************************************************
  1502. //
  1503. // The following are defines for the bit fields in the USB_O_RXFUNCADDR9
  1504. // register.
  1505. //
  1506. //*****************************************************************************
  1507. #define USB_RXFUNCADDR9_ADDR_M 0x0000007F // Device Address
  1508. #define USB_RXFUNCADDR9_ADDR_S 0
  1509. //*****************************************************************************
  1510. //
  1511. // The following are defines for the bit fields in the USB_O_RXHUBADDR9
  1512. // register.
  1513. //
  1514. //*****************************************************************************
  1515. #define USB_RXHUBADDR9_MULTTRAN 0x00000080 // Multiple Translators
  1516. #define USB_RXHUBADDR9_ADDR_M 0x0000007F // Hub Address
  1517. #define USB_RXHUBADDR9_ADDR_S 0
  1518. //*****************************************************************************
  1519. //
  1520. // The following are defines for the bit fields in the USB_O_RXHUBPORT9
  1521. // register.
  1522. //
  1523. //*****************************************************************************
  1524. #define USB_RXHUBPORT9_PORT_M 0x0000007F // Hub Port
  1525. #define USB_RXHUBPORT9_PORT_S 0
  1526. //*****************************************************************************
  1527. //
  1528. // The following are defines for the bit fields in the USB_O_TXFUNCADDR10
  1529. // register.
  1530. //
  1531. //*****************************************************************************
  1532. #define USB_TXFUNCADDR10_ADDR_M 0x0000007F // Device Address
  1533. #define USB_TXFUNCADDR10_ADDR_S 0
  1534. //*****************************************************************************
  1535. //
  1536. // The following are defines for the bit fields in the USB_O_TXHUBADDR10
  1537. // register.
  1538. //
  1539. //*****************************************************************************
  1540. #define USB_TXHUBADDR10_MULTTRAN \
  1541. 0x00000080 // Multiple Translators
  1542. #define USB_TXHUBADDR10_ADDR_M 0x0000007F // Hub Address
  1543. #define USB_TXHUBADDR10_ADDR_S 0
  1544. //*****************************************************************************
  1545. //
  1546. // The following are defines for the bit fields in the USB_O_TXHUBPORT10
  1547. // register.
  1548. //
  1549. //*****************************************************************************
  1550. #define USB_TXHUBPORT10_PORT_M 0x0000007F // Hub Port
  1551. #define USB_TXHUBPORT10_PORT_S 0
  1552. //*****************************************************************************
  1553. //
  1554. // The following are defines for the bit fields in the USB_O_RXFUNCADDR10
  1555. // register.
  1556. //
  1557. //*****************************************************************************
  1558. #define USB_RXFUNCADDR10_ADDR_M 0x0000007F // Device Address
  1559. #define USB_RXFUNCADDR10_ADDR_S 0
  1560. //*****************************************************************************
  1561. //
  1562. // The following are defines for the bit fields in the USB_O_RXHUBADDR10
  1563. // register.
  1564. //
  1565. //*****************************************************************************
  1566. #define USB_RXHUBADDR10_MULTTRAN \
  1567. 0x00000080 // Multiple Translators
  1568. #define USB_RXHUBADDR10_ADDR_M 0x0000007F // Hub Address
  1569. #define USB_RXHUBADDR10_ADDR_S 0
  1570. //*****************************************************************************
  1571. //
  1572. // The following are defines for the bit fields in the USB_O_RXHUBPORT10
  1573. // register.
  1574. //
  1575. //*****************************************************************************
  1576. #define USB_RXHUBPORT10_PORT_M 0x0000007F // Hub Port
  1577. #define USB_RXHUBPORT10_PORT_S 0
  1578. //*****************************************************************************
  1579. //
  1580. // The following are defines for the bit fields in the USB_O_TXFUNCADDR11
  1581. // register.
  1582. //
  1583. //*****************************************************************************
  1584. #define USB_TXFUNCADDR11_ADDR_M 0x0000007F // Device Address
  1585. #define USB_TXFUNCADDR11_ADDR_S 0
  1586. //*****************************************************************************
  1587. //
  1588. // The following are defines for the bit fields in the USB_O_TXHUBADDR11
  1589. // register.
  1590. //
  1591. //*****************************************************************************
  1592. #define USB_TXHUBADDR11_MULTTRAN \
  1593. 0x00000080 // Multiple Translators
  1594. #define USB_TXHUBADDR11_ADDR_M 0x0000007F // Hub Address
  1595. #define USB_TXHUBADDR11_ADDR_S 0
  1596. //*****************************************************************************
  1597. //
  1598. // The following are defines for the bit fields in the USB_O_TXHUBPORT11
  1599. // register.
  1600. //
  1601. //*****************************************************************************
  1602. #define USB_TXHUBPORT11_PORT_M 0x0000007F // Hub Port
  1603. #define USB_TXHUBPORT11_PORT_S 0
  1604. //*****************************************************************************
  1605. //
  1606. // The following are defines for the bit fields in the USB_O_RXFUNCADDR11
  1607. // register.
  1608. //
  1609. //*****************************************************************************
  1610. #define USB_RXFUNCADDR11_ADDR_M 0x0000007F // Device Address
  1611. #define USB_RXFUNCADDR11_ADDR_S 0
  1612. //*****************************************************************************
  1613. //
  1614. // The following are defines for the bit fields in the USB_O_RXHUBADDR11
  1615. // register.
  1616. //
  1617. //*****************************************************************************
  1618. #define USB_RXHUBADDR11_MULTTRAN \
  1619. 0x00000080 // Multiple Translators
  1620. #define USB_RXHUBADDR11_ADDR_M 0x0000007F // Hub Address
  1621. #define USB_RXHUBADDR11_ADDR_S 0
  1622. //*****************************************************************************
  1623. //
  1624. // The following are defines for the bit fields in the USB_O_RXHUBPORT11
  1625. // register.
  1626. //
  1627. //*****************************************************************************
  1628. #define USB_RXHUBPORT11_PORT_M 0x0000007F // Hub Port
  1629. #define USB_RXHUBPORT11_PORT_S 0
  1630. //*****************************************************************************
  1631. //
  1632. // The following are defines for the bit fields in the USB_O_TXFUNCADDR12
  1633. // register.
  1634. //
  1635. //*****************************************************************************
  1636. #define USB_TXFUNCADDR12_ADDR_M 0x0000007F // Device Address
  1637. #define USB_TXFUNCADDR12_ADDR_S 0
  1638. //*****************************************************************************
  1639. //
  1640. // The following are defines for the bit fields in the USB_O_TXHUBADDR12
  1641. // register.
  1642. //
  1643. //*****************************************************************************
  1644. #define USB_TXHUBADDR12_MULTTRAN \
  1645. 0x00000080 // Multiple Translators
  1646. #define USB_TXHUBADDR12_ADDR_M 0x0000007F // Hub Address
  1647. #define USB_TXHUBADDR12_ADDR_S 0
  1648. //*****************************************************************************
  1649. //
  1650. // The following are defines for the bit fields in the USB_O_TXHUBPORT12
  1651. // register.
  1652. //
  1653. //*****************************************************************************
  1654. #define USB_TXHUBPORT12_PORT_M 0x0000007F // Hub Port
  1655. #define USB_TXHUBPORT12_PORT_S 0
  1656. //*****************************************************************************
  1657. //
  1658. // The following are defines for the bit fields in the USB_O_RXFUNCADDR12
  1659. // register.
  1660. //
  1661. //*****************************************************************************
  1662. #define USB_RXFUNCADDR12_ADDR_M 0x0000007F // Device Address
  1663. #define USB_RXFUNCADDR12_ADDR_S 0
  1664. //*****************************************************************************
  1665. //
  1666. // The following are defines for the bit fields in the USB_O_RXHUBADDR12
  1667. // register.
  1668. //
  1669. //*****************************************************************************
  1670. #define USB_RXHUBADDR12_MULTTRAN \
  1671. 0x00000080 // Multiple Translators
  1672. #define USB_RXHUBADDR12_ADDR_M 0x0000007F // Hub Address
  1673. #define USB_RXHUBADDR12_ADDR_S 0
  1674. //*****************************************************************************
  1675. //
  1676. // The following are defines for the bit fields in the USB_O_RXHUBPORT12
  1677. // register.
  1678. //
  1679. //*****************************************************************************
  1680. #define USB_RXHUBPORT12_PORT_M 0x0000007F // Hub Port
  1681. #define USB_RXHUBPORT12_PORT_S 0
  1682. //*****************************************************************************
  1683. //
  1684. // The following are defines for the bit fields in the USB_O_TXFUNCADDR13
  1685. // register.
  1686. //
  1687. //*****************************************************************************
  1688. #define USB_TXFUNCADDR13_ADDR_M 0x0000007F // Device Address
  1689. #define USB_TXFUNCADDR13_ADDR_S 0
  1690. //*****************************************************************************
  1691. //
  1692. // The following are defines for the bit fields in the USB_O_TXHUBADDR13
  1693. // register.
  1694. //
  1695. //*****************************************************************************
  1696. #define USB_TXHUBADDR13_MULTTRAN \
  1697. 0x00000080 // Multiple Translators
  1698. #define USB_TXHUBADDR13_ADDR_M 0x0000007F // Hub Address
  1699. #define USB_TXHUBADDR13_ADDR_S 0
  1700. //*****************************************************************************
  1701. //
  1702. // The following are defines for the bit fields in the USB_O_TXHUBPORT13
  1703. // register.
  1704. //
  1705. //*****************************************************************************
  1706. #define USB_TXHUBPORT13_PORT_M 0x0000007F // Hub Port
  1707. #define USB_TXHUBPORT13_PORT_S 0
  1708. //*****************************************************************************
  1709. //
  1710. // The following are defines for the bit fields in the USB_O_RXFUNCADDR13
  1711. // register.
  1712. //
  1713. //*****************************************************************************
  1714. #define USB_RXFUNCADDR13_ADDR_M 0x0000007F // Device Address
  1715. #define USB_RXFUNCADDR13_ADDR_S 0
  1716. //*****************************************************************************
  1717. //
  1718. // The following are defines for the bit fields in the USB_O_RXHUBADDR13
  1719. // register.
  1720. //
  1721. //*****************************************************************************
  1722. #define USB_RXHUBADDR13_MULTTRAN \
  1723. 0x00000080 // Multiple Translators
  1724. #define USB_RXHUBADDR13_ADDR_M 0x0000007F // Hub Address
  1725. #define USB_RXHUBADDR13_ADDR_S 0
  1726. //*****************************************************************************
  1727. //
  1728. // The following are defines for the bit fields in the USB_O_RXHUBPORT13
  1729. // register.
  1730. //
  1731. //*****************************************************************************
  1732. #define USB_RXHUBPORT13_PORT_M 0x0000007F // Hub Port
  1733. #define USB_RXHUBPORT13_PORT_S 0
  1734. //*****************************************************************************
  1735. //
  1736. // The following are defines for the bit fields in the USB_O_TXFUNCADDR14
  1737. // register.
  1738. //
  1739. //*****************************************************************************
  1740. #define USB_TXFUNCADDR14_ADDR_M 0x0000007F // Device Address
  1741. #define USB_TXFUNCADDR14_ADDR_S 0
  1742. //*****************************************************************************
  1743. //
  1744. // The following are defines for the bit fields in the USB_O_TXHUBADDR14
  1745. // register.
  1746. //
  1747. //*****************************************************************************
  1748. #define USB_TXHUBADDR14_MULTTRAN \
  1749. 0x00000080 // Multiple Translators
  1750. #define USB_TXHUBADDR14_ADDR_M 0x0000007F // Hub Address
  1751. #define USB_TXHUBADDR14_ADDR_S 0
  1752. //*****************************************************************************
  1753. //
  1754. // The following are defines for the bit fields in the USB_O_TXHUBPORT14
  1755. // register.
  1756. //
  1757. //*****************************************************************************
  1758. #define USB_TXHUBPORT14_PORT_M 0x0000007F // Hub Port
  1759. #define USB_TXHUBPORT14_PORT_S 0
  1760. //*****************************************************************************
  1761. //
  1762. // The following are defines for the bit fields in the USB_O_RXFUNCADDR14
  1763. // register.
  1764. //
  1765. //*****************************************************************************
  1766. #define USB_RXFUNCADDR14_ADDR_M 0x0000007F // Device Address
  1767. #define USB_RXFUNCADDR14_ADDR_S 0
  1768. //*****************************************************************************
  1769. //
  1770. // The following are defines for the bit fields in the USB_O_RXHUBADDR14
  1771. // register.
  1772. //
  1773. //*****************************************************************************
  1774. #define USB_RXHUBADDR14_MULTTRAN \
  1775. 0x00000080 // Multiple Translators
  1776. #define USB_RXHUBADDR14_ADDR_M 0x0000007F // Hub Address
  1777. #define USB_RXHUBADDR14_ADDR_S 0
  1778. //*****************************************************************************
  1779. //
  1780. // The following are defines for the bit fields in the USB_O_RXHUBPORT14
  1781. // register.
  1782. //
  1783. //*****************************************************************************
  1784. #define USB_RXHUBPORT14_PORT_M 0x0000007F // Hub Port
  1785. #define USB_RXHUBPORT14_PORT_S 0
  1786. //*****************************************************************************
  1787. //
  1788. // The following are defines for the bit fields in the USB_O_TXFUNCADDR15
  1789. // register.
  1790. //
  1791. //*****************************************************************************
  1792. #define USB_TXFUNCADDR15_ADDR_M 0x0000007F // Device Address
  1793. #define USB_TXFUNCADDR15_ADDR_S 0
  1794. //*****************************************************************************
  1795. //
  1796. // The following are defines for the bit fields in the USB_O_TXHUBADDR15
  1797. // register.
  1798. //
  1799. //*****************************************************************************
  1800. #define USB_TXHUBADDR15_MULTTRAN \
  1801. 0x00000080 // Multiple Translators
  1802. #define USB_TXHUBADDR15_ADDR_M 0x0000007F // Hub Address
  1803. #define USB_TXHUBADDR15_ADDR_S 0
  1804. //*****************************************************************************
  1805. //
  1806. // The following are defines for the bit fields in the USB_O_TXHUBPORT15
  1807. // register.
  1808. //
  1809. //*****************************************************************************
  1810. #define USB_TXHUBPORT15_PORT_M 0x0000007F // Hub Port
  1811. #define USB_TXHUBPORT15_PORT_S 0
  1812. //*****************************************************************************
  1813. //
  1814. // The following are defines for the bit fields in the USB_O_RXFUNCADDR15
  1815. // register.
  1816. //
  1817. //*****************************************************************************
  1818. #define USB_RXFUNCADDR15_ADDR_M 0x0000007F // Device Address
  1819. #define USB_RXFUNCADDR15_ADDR_S 0
  1820. //*****************************************************************************
  1821. //
  1822. // The following are defines for the bit fields in the USB_O_RXHUBADDR15
  1823. // register.
  1824. //
  1825. //*****************************************************************************
  1826. #define USB_RXHUBADDR15_MULTTRAN \
  1827. 0x00000080 // Multiple Translators
  1828. #define USB_RXHUBADDR15_ADDR_M 0x0000007F // Hub Address
  1829. #define USB_RXHUBADDR15_ADDR_S 0
  1830. //*****************************************************************************
  1831. //
  1832. // The following are defines for the bit fields in the USB_O_RXHUBPORT15
  1833. // register.
  1834. //
  1835. //*****************************************************************************
  1836. #define USB_RXHUBPORT15_PORT_M 0x0000007F // Hub Port
  1837. #define USB_RXHUBPORT15_PORT_S 0
  1838. //*****************************************************************************
  1839. //
  1840. // The following are defines for the bit fields in the USB_O_CSRL0 register.
  1841. //
  1842. //*****************************************************************************
  1843. #define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
  1844. #define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
  1845. #define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
  1846. #define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
  1847. #define USB_CSRL0_REQPKT 0x00000020 // Request Packet
  1848. #define USB_CSRL0_STALL 0x00000020 // Send Stall
  1849. #define USB_CSRL0_SETEND 0x00000010 // Setup End
  1850. #define USB_CSRL0_ERROR 0x00000010 // Error
  1851. #define USB_CSRL0_DATAEND 0x00000008 // Data End
  1852. #define USB_CSRL0_SETUP 0x00000008 // Setup Packet
  1853. #define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
  1854. #define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
  1855. #define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
  1856. //*****************************************************************************
  1857. //
  1858. // The following are defines for the bit fields in the USB_O_CSRH0 register.
  1859. //
  1860. //*****************************************************************************
  1861. #define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
  1862. #define USB_CSRH0_DT 0x00000002 // Data Toggle
  1863. #define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
  1864. //*****************************************************************************
  1865. //
  1866. // The following are defines for the bit fields in the USB_O_COUNT0 register.
  1867. //
  1868. //*****************************************************************************
  1869. #define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
  1870. #define USB_COUNT0_COUNT_S 0
  1871. //*****************************************************************************
  1872. //
  1873. // The following are defines for the bit fields in the USB_O_TYPE0 register.
  1874. //
  1875. //*****************************************************************************
  1876. #define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
  1877. #define USB_TYPE0_SPEED_HIGH 0x00000040 // High
  1878. #define USB_TYPE0_SPEED_FULL 0x00000080 // Full
  1879. #define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
  1880. //*****************************************************************************
  1881. //
  1882. // The following are defines for the bit fields in the USB_O_NAKLMT register.
  1883. //
  1884. //*****************************************************************************
  1885. #define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
  1886. #define USB_NAKLMT_NAKLMT_S 0
  1887. //*****************************************************************************
  1888. //
  1889. // The following are defines for the bit fields in the USB_O_TXMAXP1 register.
  1890. //
  1891. //*****************************************************************************
  1892. #define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1893. #define USB_TXMAXP1_MAXLOAD_S 0
  1894. //*****************************************************************************
  1895. //
  1896. // The following are defines for the bit fields in the USB_O_TXCSRL1 register.
  1897. //
  1898. //*****************************************************************************
  1899. #define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
  1900. #define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
  1901. #define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
  1902. #define USB_TXCSRL1_STALL 0x00000010 // Send STALL
  1903. #define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
  1904. #define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
  1905. #define USB_TXCSRL1_ERROR 0x00000004 // Error
  1906. #define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
  1907. #define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
  1908. #define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
  1909. //*****************************************************************************
  1910. //
  1911. // The following are defines for the bit fields in the USB_O_TXCSRH1 register.
  1912. //
  1913. //*****************************************************************************
  1914. #define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
  1915. #define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1916. #define USB_TXCSRH1_MODE 0x00000020 // Mode
  1917. #define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
  1918. #define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
  1919. #define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
  1920. #define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
  1921. #define USB_TXCSRH1_DT 0x00000001 // Data Toggle
  1922. //*****************************************************************************
  1923. //
  1924. // The following are defines for the bit fields in the USB_O_RXMAXP1 register.
  1925. //
  1926. //*****************************************************************************
  1927. #define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1928. #define USB_RXMAXP1_MAXLOAD_S 0
  1929. //*****************************************************************************
  1930. //
  1931. // The following are defines for the bit fields in the USB_O_RXCSRL1 register.
  1932. //
  1933. //*****************************************************************************
  1934. #define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
  1935. #define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
  1936. #define USB_RXCSRL1_STALL 0x00000020 // Send STALL
  1937. #define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
  1938. #define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
  1939. #define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
  1940. #define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
  1941. #define USB_RXCSRL1_OVER 0x00000004 // Overrun
  1942. #define USB_RXCSRL1_ERROR 0x00000004 // Error
  1943. #define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
  1944. #define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
  1945. //*****************************************************************************
  1946. //
  1947. // The following are defines for the bit fields in the USB_O_RXCSRH1 register.
  1948. //
  1949. //*****************************************************************************
  1950. #define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
  1951. #define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
  1952. #define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1953. #define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
  1954. #define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
  1955. #define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
  1956. #define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
  1957. #define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
  1958. #define USB_RXCSRH1_DT 0x00000002 // Data Toggle
  1959. //*****************************************************************************
  1960. //
  1961. // The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
  1962. //
  1963. //*****************************************************************************
  1964. #define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
  1965. #define USB_RXCOUNT1_COUNT_S 0
  1966. //*****************************************************************************
  1967. //
  1968. // The following are defines for the bit fields in the USB_O_TXTYPE1 register.
  1969. //
  1970. //*****************************************************************************
  1971. #define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  1972. #define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
  1973. #define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
  1974. #define USB_TXTYPE1_SPEED_HIGH 0x00000040 // High
  1975. #define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
  1976. #define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
  1977. #define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
  1978. #define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  1979. #define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
  1980. #define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
  1981. #define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  1982. #define USB_TXTYPE1_TEP_S 0
  1983. //*****************************************************************************
  1984. //
  1985. // The following are defines for the bit fields in the USB_O_TXINTERVAL1
  1986. // register.
  1987. //
  1988. //*****************************************************************************
  1989. #define USB_TXINTERVAL1_NAKLMT_M \
  1990. 0x000000FF // NAK Limit
  1991. #define USB_TXINTERVAL1_TXPOLL_M \
  1992. 0x000000FF // TX Polling
  1993. #define USB_TXINTERVAL1_TXPOLL_S \
  1994. 0
  1995. #define USB_TXINTERVAL1_NAKLMT_S \
  1996. 0
  1997. //*****************************************************************************
  1998. //
  1999. // The following are defines for the bit fields in the USB_O_RXTYPE1 register.
  2000. //
  2001. //*****************************************************************************
  2002. #define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  2003. #define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
  2004. #define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
  2005. #define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
  2006. #define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
  2007. #define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
  2008. #define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  2009. #define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
  2010. #define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
  2011. #define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  2012. #define USB_RXTYPE1_TEP_S 0
  2013. //*****************************************************************************
  2014. //
  2015. // The following are defines for the bit fields in the USB_O_RXINTERVAL1
  2016. // register.
  2017. //
  2018. //*****************************************************************************
  2019. #define USB_RXINTERVAL1_TXPOLL_M \
  2020. 0x000000FF // RX Polling
  2021. #define USB_RXINTERVAL1_NAKLMT_M \
  2022. 0x000000FF // NAK Limit
  2023. #define USB_RXINTERVAL1_TXPOLL_S \
  2024. 0
  2025. #define USB_RXINTERVAL1_NAKLMT_S \
  2026. 0
  2027. //*****************************************************************************
  2028. //
  2029. // The following are defines for the bit fields in the USB_O_TXMAXP2 register.
  2030. //
  2031. //*****************************************************************************
  2032. #define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  2033. #define USB_TXMAXP2_MAXLOAD_S 0
  2034. //*****************************************************************************
  2035. //
  2036. // The following are defines for the bit fields in the USB_O_TXCSRL2 register.
  2037. //
  2038. //*****************************************************************************
  2039. #define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
  2040. #define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
  2041. #define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
  2042. #define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
  2043. #define USB_TXCSRL2_STALL 0x00000010 // Send STALL
  2044. #define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
  2045. #define USB_TXCSRL2_ERROR 0x00000004 // Error
  2046. #define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
  2047. #define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
  2048. #define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
  2049. //*****************************************************************************
  2050. //
  2051. // The following are defines for the bit fields in the USB_O_TXCSRH2 register.
  2052. //
  2053. //*****************************************************************************
  2054. #define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
  2055. #define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
  2056. #define USB_TXCSRH2_MODE 0x00000020 // Mode
  2057. #define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
  2058. #define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
  2059. #define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
  2060. #define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
  2061. #define USB_TXCSRH2_DT 0x00000001 // Data Toggle
  2062. //*****************************************************************************
  2063. //
  2064. // The following are defines for the bit fields in the USB_O_RXMAXP2 register.
  2065. //
  2066. //*****************************************************************************
  2067. #define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  2068. #define USB_RXMAXP2_MAXLOAD_S 0
  2069. //*****************************************************************************
  2070. //
  2071. // The following are defines for the bit fields in the USB_O_RXCSRL2 register.
  2072. //
  2073. //*****************************************************************************
  2074. #define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
  2075. #define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
  2076. #define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
  2077. #define USB_RXCSRL2_STALL 0x00000020 // Send STALL
  2078. #define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
  2079. #define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
  2080. #define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
  2081. #define USB_RXCSRL2_ERROR 0x00000004 // Error
  2082. #define USB_RXCSRL2_OVER 0x00000004 // Overrun
  2083. #define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
  2084. #define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
  2085. //*****************************************************************************
  2086. //
  2087. // The following are defines for the bit fields in the USB_O_RXCSRH2 register.
  2088. //
  2089. //*****************************************************************************
  2090. #define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
  2091. #define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
  2092. #define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
  2093. #define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
  2094. #define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
  2095. #define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
  2096. #define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
  2097. #define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
  2098. #define USB_RXCSRH2_DT 0x00000002 // Data Toggle
  2099. //*****************************************************************************
  2100. //
  2101. // The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
  2102. //
  2103. //*****************************************************************************
  2104. #define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
  2105. #define USB_RXCOUNT2_COUNT_S 0
  2106. //*****************************************************************************
  2107. //
  2108. // The following are defines for the bit fields in the USB_O_TXTYPE2 register.
  2109. //
  2110. //*****************************************************************************
  2111. #define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  2112. #define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
  2113. #define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
  2114. #define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
  2115. #define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
  2116. #define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
  2117. #define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  2118. #define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
  2119. #define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
  2120. #define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  2121. #define USB_TXTYPE2_TEP_S 0
  2122. //*****************************************************************************
  2123. //
  2124. // The following are defines for the bit fields in the USB_O_TXINTERVAL2
  2125. // register.
  2126. //
  2127. //*****************************************************************************
  2128. #define USB_TXINTERVAL2_TXPOLL_M \
  2129. 0x000000FF // TX Polling
  2130. #define USB_TXINTERVAL2_NAKLMT_M \
  2131. 0x000000FF // NAK Limit
  2132. #define USB_TXINTERVAL2_NAKLMT_S \
  2133. 0
  2134. #define USB_TXINTERVAL2_TXPOLL_S \
  2135. 0
  2136. //*****************************************************************************
  2137. //
  2138. // The following are defines for the bit fields in the USB_O_RXTYPE2 register.
  2139. //
  2140. //*****************************************************************************
  2141. #define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  2142. #define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
  2143. #define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
  2144. #define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
  2145. #define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
  2146. #define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
  2147. #define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  2148. #define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
  2149. #define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
  2150. #define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  2151. #define USB_RXTYPE2_TEP_S 0
  2152. //*****************************************************************************
  2153. //
  2154. // The following are defines for the bit fields in the USB_O_RXINTERVAL2
  2155. // register.
  2156. //
  2157. //*****************************************************************************
  2158. #define USB_RXINTERVAL2_TXPOLL_M \
  2159. 0x000000FF // RX Polling
  2160. #define USB_RXINTERVAL2_NAKLMT_M \
  2161. 0x000000FF // NAK Limit
  2162. #define USB_RXINTERVAL2_TXPOLL_S \
  2163. 0
  2164. #define USB_RXINTERVAL2_NAKLMT_S \
  2165. 0
  2166. //*****************************************************************************
  2167. //
  2168. // The following are defines for the bit fields in the USB_O_TXMAXP3 register.
  2169. //
  2170. //*****************************************************************************
  2171. #define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  2172. #define USB_TXMAXP3_MAXLOAD_S 0
  2173. //*****************************************************************************
  2174. //
  2175. // The following are defines for the bit fields in the USB_O_TXCSRL3 register.
  2176. //
  2177. //*****************************************************************************
  2178. #define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
  2179. #define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
  2180. #define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
  2181. #define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
  2182. #define USB_TXCSRL3_STALL 0x00000010 // Send STALL
  2183. #define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
  2184. #define USB_TXCSRL3_ERROR 0x00000004 // Error
  2185. #define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
  2186. #define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
  2187. #define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
  2188. //*****************************************************************************
  2189. //
  2190. // The following are defines for the bit fields in the USB_O_TXCSRH3 register.
  2191. //
  2192. //*****************************************************************************
  2193. #define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
  2194. #define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
  2195. #define USB_TXCSRH3_MODE 0x00000020 // Mode
  2196. #define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
  2197. #define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
  2198. #define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
  2199. #define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
  2200. #define USB_TXCSRH3_DT 0x00000001 // Data Toggle
  2201. //*****************************************************************************
  2202. //
  2203. // The following are defines for the bit fields in the USB_O_RXMAXP3 register.
  2204. //
  2205. //*****************************************************************************
  2206. #define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  2207. #define USB_RXMAXP3_MAXLOAD_S 0
  2208. //*****************************************************************************
  2209. //
  2210. // The following are defines for the bit fields in the USB_O_RXCSRL3 register.
  2211. //
  2212. //*****************************************************************************
  2213. #define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
  2214. #define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
  2215. #define USB_RXCSRL3_STALL 0x00000020 // Send STALL
  2216. #define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
  2217. #define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
  2218. #define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
  2219. #define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
  2220. #define USB_RXCSRL3_ERROR 0x00000004 // Error
  2221. #define USB_RXCSRL3_OVER 0x00000004 // Overrun
  2222. #define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
  2223. #define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
  2224. //*****************************************************************************
  2225. //
  2226. // The following are defines for the bit fields in the USB_O_RXCSRH3 register.
  2227. //
  2228. //*****************************************************************************
  2229. #define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
  2230. #define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
  2231. #define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
  2232. #define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
  2233. #define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
  2234. #define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
  2235. #define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
  2236. #define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
  2237. #define USB_RXCSRH3_DT 0x00000002 // Data Toggle
  2238. //*****************************************************************************
  2239. //
  2240. // The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
  2241. //
  2242. //*****************************************************************************
  2243. #define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
  2244. #define USB_RXCOUNT3_COUNT_S 0
  2245. //*****************************************************************************
  2246. //
  2247. // The following are defines for the bit fields in the USB_O_TXTYPE3 register.
  2248. //
  2249. //*****************************************************************************
  2250. #define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  2251. #define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
  2252. #define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
  2253. #define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
  2254. #define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
  2255. #define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
  2256. #define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  2257. #define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
  2258. #define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
  2259. #define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  2260. #define USB_TXTYPE3_TEP_S 0
  2261. //*****************************************************************************
  2262. //
  2263. // The following are defines for the bit fields in the USB_O_TXINTERVAL3
  2264. // register.
  2265. //
  2266. //*****************************************************************************
  2267. #define USB_TXINTERVAL3_TXPOLL_M \
  2268. 0x000000FF // TX Polling
  2269. #define USB_TXINTERVAL3_NAKLMT_M \
  2270. 0x000000FF // NAK Limit
  2271. #define USB_TXINTERVAL3_TXPOLL_S \
  2272. 0
  2273. #define USB_TXINTERVAL3_NAKLMT_S \
  2274. 0
  2275. //*****************************************************************************
  2276. //
  2277. // The following are defines for the bit fields in the USB_O_RXTYPE3 register.
  2278. //
  2279. //*****************************************************************************
  2280. #define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  2281. #define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
  2282. #define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
  2283. #define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
  2284. #define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
  2285. #define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
  2286. #define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  2287. #define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
  2288. #define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
  2289. #define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  2290. #define USB_RXTYPE3_TEP_S 0
  2291. //*****************************************************************************
  2292. //
  2293. // The following are defines for the bit fields in the USB_O_RXINTERVAL3
  2294. // register.
  2295. //
  2296. //*****************************************************************************
  2297. #define USB_RXINTERVAL3_TXPOLL_M \
  2298. 0x000000FF // RX Polling
  2299. #define USB_RXINTERVAL3_NAKLMT_M \
  2300. 0x000000FF // NAK Limit
  2301. #define USB_RXINTERVAL3_TXPOLL_S \
  2302. 0
  2303. #define USB_RXINTERVAL3_NAKLMT_S \
  2304. 0
  2305. //*****************************************************************************
  2306. //
  2307. // The following are defines for the bit fields in the USB_O_TXMAXP4 register.
  2308. //
  2309. //*****************************************************************************
  2310. #define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  2311. #define USB_TXMAXP4_MAXLOAD_S 0
  2312. //*****************************************************************************
  2313. //
  2314. // The following are defines for the bit fields in the USB_O_TXCSRL4 register.
  2315. //
  2316. //*****************************************************************************
  2317. #define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
  2318. #define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
  2319. #define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
  2320. #define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
  2321. #define USB_TXCSRL4_STALL 0x00000010 // Send STALL
  2322. #define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
  2323. #define USB_TXCSRL4_ERROR 0x00000004 // Error
  2324. #define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
  2325. #define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
  2326. #define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
  2327. //*****************************************************************************
  2328. //
  2329. // The following are defines for the bit fields in the USB_O_TXCSRH4 register.
  2330. //
  2331. //*****************************************************************************
  2332. #define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
  2333. #define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
  2334. #define USB_TXCSRH4_MODE 0x00000020 // Mode
  2335. #define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
  2336. #define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
  2337. #define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
  2338. #define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
  2339. #define USB_TXCSRH4_DT 0x00000001 // Data Toggle
  2340. //*****************************************************************************
  2341. //
  2342. // The following are defines for the bit fields in the USB_O_RXMAXP4 register.
  2343. //
  2344. //*****************************************************************************
  2345. #define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  2346. #define USB_RXMAXP4_MAXLOAD_S 0
  2347. //*****************************************************************************
  2348. //
  2349. // The following are defines for the bit fields in the USB_O_RXCSRL4 register.
  2350. //
  2351. //*****************************************************************************
  2352. #define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
  2353. #define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
  2354. #define USB_RXCSRL4_STALL 0x00000020 // Send STALL
  2355. #define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
  2356. #define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
  2357. #define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
  2358. #define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
  2359. #define USB_RXCSRL4_OVER 0x00000004 // Overrun
  2360. #define USB_RXCSRL4_ERROR 0x00000004 // Error
  2361. #define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
  2362. #define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
  2363. //*****************************************************************************
  2364. //
  2365. // The following are defines for the bit fields in the USB_O_RXCSRH4 register.
  2366. //
  2367. //*****************************************************************************
  2368. #define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
  2369. #define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
  2370. #define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
  2371. #define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
  2372. #define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
  2373. #define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
  2374. #define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
  2375. #define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
  2376. #define USB_RXCSRH4_DT 0x00000002 // Data Toggle
  2377. //*****************************************************************************
  2378. //
  2379. // The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
  2380. //
  2381. //*****************************************************************************
  2382. #define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
  2383. #define USB_RXCOUNT4_COUNT_S 0
  2384. //*****************************************************************************
  2385. //
  2386. // The following are defines for the bit fields in the USB_O_TXTYPE4 register.
  2387. //
  2388. //*****************************************************************************
  2389. #define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  2390. #define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
  2391. #define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
  2392. #define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
  2393. #define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
  2394. #define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
  2395. #define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  2396. #define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
  2397. #define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
  2398. #define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  2399. #define USB_TXTYPE4_TEP_S 0
  2400. //*****************************************************************************
  2401. //
  2402. // The following are defines for the bit fields in the USB_O_TXINTERVAL4
  2403. // register.
  2404. //
  2405. //*****************************************************************************
  2406. #define USB_TXINTERVAL4_TXPOLL_M \
  2407. 0x000000FF // TX Polling
  2408. #define USB_TXINTERVAL4_NAKLMT_M \
  2409. 0x000000FF // NAK Limit
  2410. #define USB_TXINTERVAL4_NAKLMT_S \
  2411. 0
  2412. #define USB_TXINTERVAL4_TXPOLL_S \
  2413. 0
  2414. //*****************************************************************************
  2415. //
  2416. // The following are defines for the bit fields in the USB_O_RXTYPE4 register.
  2417. //
  2418. //*****************************************************************************
  2419. #define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  2420. #define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
  2421. #define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
  2422. #define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
  2423. #define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
  2424. #define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
  2425. #define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  2426. #define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
  2427. #define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
  2428. #define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  2429. #define USB_RXTYPE4_TEP_S 0
  2430. //*****************************************************************************
  2431. //
  2432. // The following are defines for the bit fields in the USB_O_RXINTERVAL4
  2433. // register.
  2434. //
  2435. //*****************************************************************************
  2436. #define USB_RXINTERVAL4_TXPOLL_M \
  2437. 0x000000FF // RX Polling
  2438. #define USB_RXINTERVAL4_NAKLMT_M \
  2439. 0x000000FF // NAK Limit
  2440. #define USB_RXINTERVAL4_NAKLMT_S \
  2441. 0
  2442. #define USB_RXINTERVAL4_TXPOLL_S \
  2443. 0
  2444. //*****************************************************************************
  2445. //
  2446. // The following are defines for the bit fields in the USB_O_TXMAXP5 register.
  2447. //
  2448. //*****************************************************************************
  2449. #define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  2450. #define USB_TXMAXP5_MAXLOAD_S 0
  2451. //*****************************************************************************
  2452. //
  2453. // The following are defines for the bit fields in the USB_O_TXCSRL5 register.
  2454. //
  2455. //*****************************************************************************
  2456. #define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
  2457. #define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
  2458. #define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
  2459. #define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
  2460. #define USB_TXCSRL5_STALL 0x00000010 // Send STALL
  2461. #define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
  2462. #define USB_TXCSRL5_ERROR 0x00000004 // Error
  2463. #define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
  2464. #define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
  2465. #define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
  2466. //*****************************************************************************
  2467. //
  2468. // The following are defines for the bit fields in the USB_O_TXCSRH5 register.
  2469. //
  2470. //*****************************************************************************
  2471. #define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
  2472. #define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
  2473. #define USB_TXCSRH5_MODE 0x00000020 // Mode
  2474. #define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
  2475. #define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
  2476. #define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
  2477. #define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
  2478. #define USB_TXCSRH5_DT 0x00000001 // Data Toggle
  2479. //*****************************************************************************
  2480. //
  2481. // The following are defines for the bit fields in the USB_O_RXMAXP5 register.
  2482. //
  2483. //*****************************************************************************
  2484. #define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  2485. #define USB_RXMAXP5_MAXLOAD_S 0
  2486. //*****************************************************************************
  2487. //
  2488. // The following are defines for the bit fields in the USB_O_RXCSRL5 register.
  2489. //
  2490. //*****************************************************************************
  2491. #define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
  2492. #define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
  2493. #define USB_RXCSRL5_STALL 0x00000020 // Send STALL
  2494. #define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
  2495. #define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
  2496. #define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
  2497. #define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
  2498. #define USB_RXCSRL5_ERROR 0x00000004 // Error
  2499. #define USB_RXCSRL5_OVER 0x00000004 // Overrun
  2500. #define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
  2501. #define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
  2502. //*****************************************************************************
  2503. //
  2504. // The following are defines for the bit fields in the USB_O_RXCSRH5 register.
  2505. //
  2506. //*****************************************************************************
  2507. #define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
  2508. #define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
  2509. #define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
  2510. #define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
  2511. #define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
  2512. #define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
  2513. #define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
  2514. #define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
  2515. #define USB_RXCSRH5_DT 0x00000002 // Data Toggle
  2516. //*****************************************************************************
  2517. //
  2518. // The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
  2519. //
  2520. //*****************************************************************************
  2521. #define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
  2522. #define USB_RXCOUNT5_COUNT_S 0
  2523. //*****************************************************************************
  2524. //
  2525. // The following are defines for the bit fields in the USB_O_TXTYPE5 register.
  2526. //
  2527. //*****************************************************************************
  2528. #define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  2529. #define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
  2530. #define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
  2531. #define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
  2532. #define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
  2533. #define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
  2534. #define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  2535. #define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
  2536. #define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
  2537. #define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  2538. #define USB_TXTYPE5_TEP_S 0
  2539. //*****************************************************************************
  2540. //
  2541. // The following are defines for the bit fields in the USB_O_TXINTERVAL5
  2542. // register.
  2543. //
  2544. //*****************************************************************************
  2545. #define USB_TXINTERVAL5_TXPOLL_M \
  2546. 0x000000FF // TX Polling
  2547. #define USB_TXINTERVAL5_NAKLMT_M \
  2548. 0x000000FF // NAK Limit
  2549. #define USB_TXINTERVAL5_NAKLMT_S \
  2550. 0
  2551. #define USB_TXINTERVAL5_TXPOLL_S \
  2552. 0
  2553. //*****************************************************************************
  2554. //
  2555. // The following are defines for the bit fields in the USB_O_RXTYPE5 register.
  2556. //
  2557. //*****************************************************************************
  2558. #define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  2559. #define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
  2560. #define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
  2561. #define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
  2562. #define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
  2563. #define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
  2564. #define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  2565. #define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
  2566. #define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
  2567. #define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  2568. #define USB_RXTYPE5_TEP_S 0
  2569. //*****************************************************************************
  2570. //
  2571. // The following are defines for the bit fields in the USB_O_RXINTERVAL5
  2572. // register.
  2573. //
  2574. //*****************************************************************************
  2575. #define USB_RXINTERVAL5_TXPOLL_M \
  2576. 0x000000FF // RX Polling
  2577. #define USB_RXINTERVAL5_NAKLMT_M \
  2578. 0x000000FF // NAK Limit
  2579. #define USB_RXINTERVAL5_TXPOLL_S \
  2580. 0
  2581. #define USB_RXINTERVAL5_NAKLMT_S \
  2582. 0
  2583. //*****************************************************************************
  2584. //
  2585. // The following are defines for the bit fields in the USB_O_TXMAXP6 register.
  2586. //
  2587. //*****************************************************************************
  2588. #define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  2589. #define USB_TXMAXP6_MAXLOAD_S 0
  2590. //*****************************************************************************
  2591. //
  2592. // The following are defines for the bit fields in the USB_O_TXCSRL6 register.
  2593. //
  2594. //*****************************************************************************
  2595. #define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
  2596. #define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
  2597. #define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
  2598. #define USB_TXCSRL6_STALL 0x00000010 // Send STALL
  2599. #define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
  2600. #define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
  2601. #define USB_TXCSRL6_ERROR 0x00000004 // Error
  2602. #define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
  2603. #define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
  2604. #define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
  2605. //*****************************************************************************
  2606. //
  2607. // The following are defines for the bit fields in the USB_O_TXCSRH6 register.
  2608. //
  2609. //*****************************************************************************
  2610. #define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
  2611. #define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
  2612. #define USB_TXCSRH6_MODE 0x00000020 // Mode
  2613. #define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
  2614. #define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
  2615. #define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
  2616. #define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
  2617. #define USB_TXCSRH6_DT 0x00000001 // Data Toggle
  2618. //*****************************************************************************
  2619. //
  2620. // The following are defines for the bit fields in the USB_O_RXMAXP6 register.
  2621. //
  2622. //*****************************************************************************
  2623. #define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  2624. #define USB_RXMAXP6_MAXLOAD_S 0
  2625. //*****************************************************************************
  2626. //
  2627. // The following are defines for the bit fields in the USB_O_RXCSRL6 register.
  2628. //
  2629. //*****************************************************************************
  2630. #define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
  2631. #define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
  2632. #define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
  2633. #define USB_RXCSRL6_STALL 0x00000020 // Send STALL
  2634. #define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
  2635. #define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
  2636. #define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
  2637. #define USB_RXCSRL6_ERROR 0x00000004 // Error
  2638. #define USB_RXCSRL6_OVER 0x00000004 // Overrun
  2639. #define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
  2640. #define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
  2641. //*****************************************************************************
  2642. //
  2643. // The following are defines for the bit fields in the USB_O_RXCSRH6 register.
  2644. //
  2645. //*****************************************************************************
  2646. #define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
  2647. #define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
  2648. #define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
  2649. #define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
  2650. #define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
  2651. #define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
  2652. #define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
  2653. #define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
  2654. #define USB_RXCSRH6_DT 0x00000002 // Data Toggle
  2655. //*****************************************************************************
  2656. //
  2657. // The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
  2658. //
  2659. //*****************************************************************************
  2660. #define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
  2661. #define USB_RXCOUNT6_COUNT_S 0
  2662. //*****************************************************************************
  2663. //
  2664. // The following are defines for the bit fields in the USB_O_TXTYPE6 register.
  2665. //
  2666. //*****************************************************************************
  2667. #define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  2668. #define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
  2669. #define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
  2670. #define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
  2671. #define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
  2672. #define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
  2673. #define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  2674. #define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
  2675. #define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
  2676. #define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  2677. #define USB_TXTYPE6_TEP_S 0
  2678. //*****************************************************************************
  2679. //
  2680. // The following are defines for the bit fields in the USB_O_TXINTERVAL6
  2681. // register.
  2682. //
  2683. //*****************************************************************************
  2684. #define USB_TXINTERVAL6_TXPOLL_M \
  2685. 0x000000FF // TX Polling
  2686. #define USB_TXINTERVAL6_NAKLMT_M \
  2687. 0x000000FF // NAK Limit
  2688. #define USB_TXINTERVAL6_TXPOLL_S \
  2689. 0
  2690. #define USB_TXINTERVAL6_NAKLMT_S \
  2691. 0
  2692. //*****************************************************************************
  2693. //
  2694. // The following are defines for the bit fields in the USB_O_RXTYPE6 register.
  2695. //
  2696. //*****************************************************************************
  2697. #define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  2698. #define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
  2699. #define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
  2700. #define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
  2701. #define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
  2702. #define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
  2703. #define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  2704. #define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
  2705. #define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
  2706. #define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  2707. #define USB_RXTYPE6_TEP_S 0
  2708. //*****************************************************************************
  2709. //
  2710. // The following are defines for the bit fields in the USB_O_RXINTERVAL6
  2711. // register.
  2712. //
  2713. //*****************************************************************************
  2714. #define USB_RXINTERVAL6_TXPOLL_M \
  2715. 0x000000FF // RX Polling
  2716. #define USB_RXINTERVAL6_NAKLMT_M \
  2717. 0x000000FF // NAK Limit
  2718. #define USB_RXINTERVAL6_NAKLMT_S \
  2719. 0
  2720. #define USB_RXINTERVAL6_TXPOLL_S \
  2721. 0
  2722. //*****************************************************************************
  2723. //
  2724. // The following are defines for the bit fields in the USB_O_TXMAXP7 register.
  2725. //
  2726. //*****************************************************************************
  2727. #define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2728. #define USB_TXMAXP7_MAXLOAD_S 0
  2729. //*****************************************************************************
  2730. //
  2731. // The following are defines for the bit fields in the USB_O_TXCSRL7 register.
  2732. //
  2733. //*****************************************************************************
  2734. #define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
  2735. #define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
  2736. #define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
  2737. #define USB_TXCSRL7_STALL 0x00000010 // Send STALL
  2738. #define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
  2739. #define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
  2740. #define USB_TXCSRL7_ERROR 0x00000004 // Error
  2741. #define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
  2742. #define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
  2743. #define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
  2744. //*****************************************************************************
  2745. //
  2746. // The following are defines for the bit fields in the USB_O_TXCSRH7 register.
  2747. //
  2748. //*****************************************************************************
  2749. #define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
  2750. #define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2751. #define USB_TXCSRH7_MODE 0x00000020 // Mode
  2752. #define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
  2753. #define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
  2754. #define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
  2755. #define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
  2756. #define USB_TXCSRH7_DT 0x00000001 // Data Toggle
  2757. //*****************************************************************************
  2758. //
  2759. // The following are defines for the bit fields in the USB_O_RXMAXP7 register.
  2760. //
  2761. //*****************************************************************************
  2762. #define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2763. #define USB_RXMAXP7_MAXLOAD_S 0
  2764. //*****************************************************************************
  2765. //
  2766. // The following are defines for the bit fields in the USB_O_RXCSRL7 register.
  2767. //
  2768. //*****************************************************************************
  2769. #define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
  2770. #define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
  2771. #define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
  2772. #define USB_RXCSRL7_STALL 0x00000020 // Send STALL
  2773. #define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
  2774. #define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
  2775. #define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
  2776. #define USB_RXCSRL7_ERROR 0x00000004 // Error
  2777. #define USB_RXCSRL7_OVER 0x00000004 // Overrun
  2778. #define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
  2779. #define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
  2780. //*****************************************************************************
  2781. //
  2782. // The following are defines for the bit fields in the USB_O_RXCSRH7 register.
  2783. //
  2784. //*****************************************************************************
  2785. #define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
  2786. #define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2787. #define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
  2788. #define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
  2789. #define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
  2790. #define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
  2791. #define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
  2792. #define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
  2793. #define USB_RXCSRH7_DT 0x00000002 // Data Toggle
  2794. //*****************************************************************************
  2795. //
  2796. // The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
  2797. //
  2798. //*****************************************************************************
  2799. #define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
  2800. #define USB_RXCOUNT7_COUNT_S 0
  2801. //*****************************************************************************
  2802. //
  2803. // The following are defines for the bit fields in the USB_O_TXTYPE7 register.
  2804. //
  2805. //*****************************************************************************
  2806. #define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2807. #define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
  2808. #define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
  2809. #define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
  2810. #define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
  2811. #define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
  2812. #define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2813. #define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2814. #define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2815. #define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2816. #define USB_TXTYPE7_TEP_S 0
  2817. //*****************************************************************************
  2818. //
  2819. // The following are defines for the bit fields in the USB_O_TXINTERVAL7
  2820. // register.
  2821. //
  2822. //*****************************************************************************
  2823. #define USB_TXINTERVAL7_TXPOLL_M \
  2824. 0x000000FF // TX Polling
  2825. #define USB_TXINTERVAL7_NAKLMT_M \
  2826. 0x000000FF // NAK Limit
  2827. #define USB_TXINTERVAL7_NAKLMT_S \
  2828. 0
  2829. #define USB_TXINTERVAL7_TXPOLL_S \
  2830. 0
  2831. //*****************************************************************************
  2832. //
  2833. // The following are defines for the bit fields in the USB_O_RXTYPE7 register.
  2834. //
  2835. //*****************************************************************************
  2836. #define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2837. #define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
  2838. #define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
  2839. #define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
  2840. #define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
  2841. #define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
  2842. #define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2843. #define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2844. #define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2845. #define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2846. #define USB_RXTYPE7_TEP_S 0
  2847. //*****************************************************************************
  2848. //
  2849. // The following are defines for the bit fields in the USB_O_RXINTERVAL7
  2850. // register.
  2851. //
  2852. //*****************************************************************************
  2853. #define USB_RXINTERVAL7_TXPOLL_M \
  2854. 0x000000FF // RX Polling
  2855. #define USB_RXINTERVAL7_NAKLMT_M \
  2856. 0x000000FF // NAK Limit
  2857. #define USB_RXINTERVAL7_NAKLMT_S \
  2858. 0
  2859. #define USB_RXINTERVAL7_TXPOLL_S \
  2860. 0
  2861. //*****************************************************************************
  2862. //
  2863. // The following are defines for the bit fields in the USB_O_TXMAXP8 register.
  2864. //
  2865. //*****************************************************************************
  2866. #define USB_TXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
  2867. #define USB_TXMAXP8_MAXLOAD_S 0
  2868. //*****************************************************************************
  2869. //
  2870. // The following are defines for the bit fields in the USB_O_TXCSRL8 register.
  2871. //
  2872. //*****************************************************************************
  2873. #define USB_TXCSRL8_NAKTO 0x00000080 // NAK Timeout
  2874. #define USB_TXCSRL8_CLRDT 0x00000040 // Clear Data Toggle
  2875. #define USB_TXCSRL8_STALLED 0x00000020 // Endpoint Stalled
  2876. #define USB_TXCSRL8_STALL 0x00000010 // Send STALL
  2877. #define USB_TXCSRL8_SETUP 0x00000010 // Setup Packet
  2878. #define USB_TXCSRL8_FLUSH 0x00000008 // Flush FIFO
  2879. #define USB_TXCSRL8_ERROR 0x00000004 // Error
  2880. #define USB_TXCSRL8_UNDRN 0x00000004 // Underrun
  2881. #define USB_TXCSRL8_FIFONE 0x00000002 // FIFO Not Empty
  2882. #define USB_TXCSRL8_TXRDY 0x00000001 // Transmit Packet Ready
  2883. //*****************************************************************************
  2884. //
  2885. // The following are defines for the bit fields in the USB_O_TXCSRH8 register.
  2886. //
  2887. //*****************************************************************************
  2888. #define USB_TXCSRH8_AUTOSET 0x00000080 // Auto Set
  2889. #define USB_TXCSRH8_ISO 0x00000040 // Isochronous Transfers
  2890. #define USB_TXCSRH8_MODE 0x00000020 // Mode
  2891. #define USB_TXCSRH8_DMAEN 0x00000010 // DMA Request Enable
  2892. #define USB_TXCSRH8_FDT 0x00000008 // Force Data Toggle
  2893. #define USB_TXCSRH8_DMAMOD 0x00000004 // DMA Request Mode
  2894. #define USB_TXCSRH8_DTWE 0x00000002 // Data Toggle Write Enable
  2895. #define USB_TXCSRH8_DT 0x00000001 // Data Toggle
  2896. //*****************************************************************************
  2897. //
  2898. // The following are defines for the bit fields in the USB_O_RXMAXP8 register.
  2899. //
  2900. //*****************************************************************************
  2901. #define USB_RXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
  2902. #define USB_RXMAXP8_MAXLOAD_S 0
  2903. //*****************************************************************************
  2904. //
  2905. // The following are defines for the bit fields in the USB_O_RXCSRL8 register.
  2906. //
  2907. //*****************************************************************************
  2908. #define USB_RXCSRL8_CLRDT 0x00000080 // Clear Data Toggle
  2909. #define USB_RXCSRL8_STALLED 0x00000040 // Endpoint Stalled
  2910. #define USB_RXCSRL8_STALL 0x00000020 // Send STALL
  2911. #define USB_RXCSRL8_REQPKT 0x00000020 // Request Packet
  2912. #define USB_RXCSRL8_FLUSH 0x00000010 // Flush FIFO
  2913. #define USB_RXCSRL8_NAKTO 0x00000008 // NAK Timeout
  2914. #define USB_RXCSRL8_DATAERR 0x00000008 // Data Error
  2915. #define USB_RXCSRL8_OVER 0x00000004 // Overrun
  2916. #define USB_RXCSRL8_ERROR 0x00000004 // Error
  2917. #define USB_RXCSRL8_FULL 0x00000002 // FIFO Full
  2918. #define USB_RXCSRL8_RXRDY 0x00000001 // Receive Packet Ready
  2919. //*****************************************************************************
  2920. //
  2921. // The following are defines for the bit fields in the USB_O_RXCSRH8 register.
  2922. //
  2923. //*****************************************************************************
  2924. #define USB_RXCSRH8_AUTOCL 0x00000080 // Auto Clear
  2925. #define USB_RXCSRH8_AUTORQ 0x00000040 // Auto Request
  2926. #define USB_RXCSRH8_ISO 0x00000040 // Isochronous Transfers
  2927. #define USB_RXCSRH8_DMAEN 0x00000020 // DMA Request Enable
  2928. #define USB_RXCSRH8_DISNYET 0x00000010 // Disable NYET
  2929. #define USB_RXCSRH8_PIDERR 0x00000010 // PID Error
  2930. #define USB_RXCSRH8_DMAMOD 0x00000008 // DMA Request Mode
  2931. #define USB_RXCSRH8_DTWE 0x00000004 // Data Toggle Write Enable
  2932. #define USB_RXCSRH8_DT 0x00000002 // Data Toggle
  2933. //*****************************************************************************
  2934. //
  2935. // The following are defines for the bit fields in the USB_O_RXCOUNT8 register.
  2936. //
  2937. //*****************************************************************************
  2938. #define USB_RXCOUNT8_COUNT_M 0x00001FFF // Receive Packet Count
  2939. #define USB_RXCOUNT8_COUNT_S 0
  2940. //*****************************************************************************
  2941. //
  2942. // The following are defines for the bit fields in the USB_O_TXTYPE8 register.
  2943. //
  2944. //*****************************************************************************
  2945. #define USB_TXTYPE8_SPEED_M 0x000000C0 // Operating Speed
  2946. #define USB_TXTYPE8_SPEED_DFLT 0x00000000 // Default
  2947. #define USB_TXTYPE8_SPEED_FULL 0x00000080 // Full
  2948. #define USB_TXTYPE8_SPEED_LOW 0x000000C0 // Low
  2949. #define USB_TXTYPE8_PROTO_M 0x00000030 // Protocol
  2950. #define USB_TXTYPE8_PROTO_CTRL 0x00000000 // Control
  2951. #define USB_TXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
  2952. #define USB_TXTYPE8_PROTO_BULK 0x00000020 // Bulk
  2953. #define USB_TXTYPE8_PROTO_INT 0x00000030 // Interrupt
  2954. #define USB_TXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
  2955. #define USB_TXTYPE8_TEP_S 0
  2956. //*****************************************************************************
  2957. //
  2958. // The following are defines for the bit fields in the USB_O_TXINTERVAL8
  2959. // register.
  2960. //
  2961. //*****************************************************************************
  2962. #define USB_TXINTERVAL8_TXPOLL_M \
  2963. 0x000000FF // TX Polling
  2964. #define USB_TXINTERVAL8_NAKLMT_M \
  2965. 0x000000FF // NAK Limit
  2966. #define USB_TXINTERVAL8_NAKLMT_S \
  2967. 0
  2968. #define USB_TXINTERVAL8_TXPOLL_S \
  2969. 0
  2970. //*****************************************************************************
  2971. //
  2972. // The following are defines for the bit fields in the USB_O_RXTYPE8 register.
  2973. //
  2974. //*****************************************************************************
  2975. #define USB_RXTYPE8_SPEED_M 0x000000C0 // Operating Speed
  2976. #define USB_RXTYPE8_SPEED_DFLT 0x00000000 // Default
  2977. #define USB_RXTYPE8_SPEED_FULL 0x00000080 // Full
  2978. #define USB_RXTYPE8_SPEED_LOW 0x000000C0 // Low
  2979. #define USB_RXTYPE8_PROTO_M 0x00000030 // Protocol
  2980. #define USB_RXTYPE8_PROTO_CTRL 0x00000000 // Control
  2981. #define USB_RXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
  2982. #define USB_RXTYPE8_PROTO_BULK 0x00000020 // Bulk
  2983. #define USB_RXTYPE8_PROTO_INT 0x00000030 // Interrupt
  2984. #define USB_RXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
  2985. #define USB_RXTYPE8_TEP_S 0
  2986. //*****************************************************************************
  2987. //
  2988. // The following are defines for the bit fields in the USB_O_RXINTERVAL8
  2989. // register.
  2990. //
  2991. //*****************************************************************************
  2992. #define USB_RXINTERVAL8_NAKLMT_M \
  2993. 0x000000FF // NAK Limit
  2994. #define USB_RXINTERVAL8_TXPOLL_M \
  2995. 0x000000FF // RX Polling
  2996. #define USB_RXINTERVAL8_NAKLMT_S \
  2997. 0
  2998. #define USB_RXINTERVAL8_TXPOLL_S \
  2999. 0
  3000. //*****************************************************************************
  3001. //
  3002. // The following are defines for the bit fields in the USB_O_TXMAXP9 register.
  3003. //
  3004. //*****************************************************************************
  3005. #define USB_TXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
  3006. #define USB_TXMAXP9_MAXLOAD_S 0
  3007. //*****************************************************************************
  3008. //
  3009. // The following are defines for the bit fields in the USB_O_TXCSRL9 register.
  3010. //
  3011. //*****************************************************************************
  3012. #define USB_TXCSRL9_NAKTO 0x00000080 // NAK Timeout
  3013. #define USB_TXCSRL9_CLRDT 0x00000040 // Clear Data Toggle
  3014. #define USB_TXCSRL9_STALLED 0x00000020 // Endpoint Stalled
  3015. #define USB_TXCSRL9_SETUP 0x00000010 // Setup Packet
  3016. #define USB_TXCSRL9_STALL 0x00000010 // Send STALL
  3017. #define USB_TXCSRL9_FLUSH 0x00000008 // Flush FIFO
  3018. #define USB_TXCSRL9_ERROR 0x00000004 // Error
  3019. #define USB_TXCSRL9_UNDRN 0x00000004 // Underrun
  3020. #define USB_TXCSRL9_FIFONE 0x00000002 // FIFO Not Empty
  3021. #define USB_TXCSRL9_TXRDY 0x00000001 // Transmit Packet Ready
  3022. //*****************************************************************************
  3023. //
  3024. // The following are defines for the bit fields in the USB_O_TXCSRH9 register.
  3025. //
  3026. //*****************************************************************************
  3027. #define USB_TXCSRH9_AUTOSET 0x00000080 // Auto Set
  3028. #define USB_TXCSRH9_ISO 0x00000040 // Isochronous Transfers
  3029. #define USB_TXCSRH9_MODE 0x00000020 // Mode
  3030. #define USB_TXCSRH9_DMAEN 0x00000010 // DMA Request Enable
  3031. #define USB_TXCSRH9_FDT 0x00000008 // Force Data Toggle
  3032. #define USB_TXCSRH9_DMAMOD 0x00000004 // DMA Request Mode
  3033. #define USB_TXCSRH9_DTWE 0x00000002 // Data Toggle Write Enable
  3034. #define USB_TXCSRH9_DT 0x00000001 // Data Toggle
  3035. //*****************************************************************************
  3036. //
  3037. // The following are defines for the bit fields in the USB_O_RXMAXP9 register.
  3038. //
  3039. //*****************************************************************************
  3040. #define USB_RXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
  3041. #define USB_RXMAXP9_MAXLOAD_S 0
  3042. //*****************************************************************************
  3043. //
  3044. // The following are defines for the bit fields in the USB_O_RXCSRL9 register.
  3045. //
  3046. //*****************************************************************************
  3047. #define USB_RXCSRL9_CLRDT 0x00000080 // Clear Data Toggle
  3048. #define USB_RXCSRL9_STALLED 0x00000040 // Endpoint Stalled
  3049. #define USB_RXCSRL9_STALL 0x00000020 // Send STALL
  3050. #define USB_RXCSRL9_REQPKT 0x00000020 // Request Packet
  3051. #define USB_RXCSRL9_FLUSH 0x00000010 // Flush FIFO
  3052. #define USB_RXCSRL9_DATAERR 0x00000008 // Data Error
  3053. #define USB_RXCSRL9_NAKTO 0x00000008 // NAK Timeout
  3054. #define USB_RXCSRL9_ERROR 0x00000004 // Error
  3055. #define USB_RXCSRL9_OVER 0x00000004 // Overrun
  3056. #define USB_RXCSRL9_FULL 0x00000002 // FIFO Full
  3057. #define USB_RXCSRL9_RXRDY 0x00000001 // Receive Packet Ready
  3058. //*****************************************************************************
  3059. //
  3060. // The following are defines for the bit fields in the USB_O_RXCSRH9 register.
  3061. //
  3062. //*****************************************************************************
  3063. #define USB_RXCSRH9_AUTOCL 0x00000080 // Auto Clear
  3064. #define USB_RXCSRH9_ISO 0x00000040 // Isochronous Transfers
  3065. #define USB_RXCSRH9_AUTORQ 0x00000040 // Auto Request
  3066. #define USB_RXCSRH9_DMAEN 0x00000020 // DMA Request Enable
  3067. #define USB_RXCSRH9_PIDERR 0x00000010 // PID Error
  3068. #define USB_RXCSRH9_DISNYET 0x00000010 // Disable NYET
  3069. #define USB_RXCSRH9_DMAMOD 0x00000008 // DMA Request Mode
  3070. #define USB_RXCSRH9_DTWE 0x00000004 // Data Toggle Write Enable
  3071. #define USB_RXCSRH9_DT 0x00000002 // Data Toggle
  3072. //*****************************************************************************
  3073. //
  3074. // The following are defines for the bit fields in the USB_O_RXCOUNT9 register.
  3075. //
  3076. //*****************************************************************************
  3077. #define USB_RXCOUNT9_COUNT_M 0x00001FFF // Receive Packet Count
  3078. #define USB_RXCOUNT9_COUNT_S 0
  3079. //*****************************************************************************
  3080. //
  3081. // The following are defines for the bit fields in the USB_O_TXTYPE9 register.
  3082. //
  3083. //*****************************************************************************
  3084. #define USB_TXTYPE9_SPEED_M 0x000000C0 // Operating Speed
  3085. #define USB_TXTYPE9_SPEED_DFLT 0x00000000 // Default
  3086. #define USB_TXTYPE9_SPEED_FULL 0x00000080 // Full
  3087. #define USB_TXTYPE9_SPEED_LOW 0x000000C0 // Low
  3088. #define USB_TXTYPE9_PROTO_M 0x00000030 // Protocol
  3089. #define USB_TXTYPE9_PROTO_CTRL 0x00000000 // Control
  3090. #define USB_TXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
  3091. #define USB_TXTYPE9_PROTO_BULK 0x00000020 // Bulk
  3092. #define USB_TXTYPE9_PROTO_INT 0x00000030 // Interrupt
  3093. #define USB_TXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
  3094. #define USB_TXTYPE9_TEP_S 0
  3095. //*****************************************************************************
  3096. //
  3097. // The following are defines for the bit fields in the USB_O_TXINTERVAL9
  3098. // register.
  3099. //
  3100. //*****************************************************************************
  3101. #define USB_TXINTERVAL9_TXPOLL_M \
  3102. 0x000000FF // TX Polling
  3103. #define USB_TXINTERVAL9_NAKLMT_M \
  3104. 0x000000FF // NAK Limit
  3105. #define USB_TXINTERVAL9_TXPOLL_S \
  3106. 0
  3107. #define USB_TXINTERVAL9_NAKLMT_S \
  3108. 0
  3109. //*****************************************************************************
  3110. //
  3111. // The following are defines for the bit fields in the USB_O_RXTYPE9 register.
  3112. //
  3113. //*****************************************************************************
  3114. #define USB_RXTYPE9_SPEED_M 0x000000C0 // Operating Speed
  3115. #define USB_RXTYPE9_SPEED_DFLT 0x00000000 // Default
  3116. #define USB_RXTYPE9_SPEED_FULL 0x00000080 // Full
  3117. #define USB_RXTYPE9_SPEED_LOW 0x000000C0 // Low
  3118. #define USB_RXTYPE9_PROTO_M 0x00000030 // Protocol
  3119. #define USB_RXTYPE9_PROTO_CTRL 0x00000000 // Control
  3120. #define USB_RXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
  3121. #define USB_RXTYPE9_PROTO_BULK 0x00000020 // Bulk
  3122. #define USB_RXTYPE9_PROTO_INT 0x00000030 // Interrupt
  3123. #define USB_RXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
  3124. #define USB_RXTYPE9_TEP_S 0
  3125. //*****************************************************************************
  3126. //
  3127. // The following are defines for the bit fields in the USB_O_RXINTERVAL9
  3128. // register.
  3129. //
  3130. //*****************************************************************************
  3131. #define USB_RXINTERVAL9_TXPOLL_M \
  3132. 0x000000FF // RX Polling
  3133. #define USB_RXINTERVAL9_NAKLMT_M \
  3134. 0x000000FF // NAK Limit
  3135. #define USB_RXINTERVAL9_NAKLMT_S \
  3136. 0
  3137. #define USB_RXINTERVAL9_TXPOLL_S \
  3138. 0
  3139. //*****************************************************************************
  3140. //
  3141. // The following are defines for the bit fields in the USB_O_TXMAXP10 register.
  3142. //
  3143. //*****************************************************************************
  3144. #define USB_TXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
  3145. #define USB_TXMAXP10_MAXLOAD_S 0
  3146. //*****************************************************************************
  3147. //
  3148. // The following are defines for the bit fields in the USB_O_TXCSRL10 register.
  3149. //
  3150. //*****************************************************************************
  3151. #define USB_TXCSRL10_NAKTO 0x00000080 // NAK Timeout
  3152. #define USB_TXCSRL10_CLRDT 0x00000040 // Clear Data Toggle
  3153. #define USB_TXCSRL10_STALLED 0x00000020 // Endpoint Stalled
  3154. #define USB_TXCSRL10_SETUP 0x00000010 // Setup Packet
  3155. #define USB_TXCSRL10_STALL 0x00000010 // Send STALL
  3156. #define USB_TXCSRL10_FLUSH 0x00000008 // Flush FIFO
  3157. #define USB_TXCSRL10_UNDRN 0x00000004 // Underrun
  3158. #define USB_TXCSRL10_ERROR 0x00000004 // Error
  3159. #define USB_TXCSRL10_FIFONE 0x00000002 // FIFO Not Empty
  3160. #define USB_TXCSRL10_TXRDY 0x00000001 // Transmit Packet Ready
  3161. //*****************************************************************************
  3162. //
  3163. // The following are defines for the bit fields in the USB_O_TXCSRH10 register.
  3164. //
  3165. //*****************************************************************************
  3166. #define USB_TXCSRH10_AUTOSET 0x00000080 // Auto Set
  3167. #define USB_TXCSRH10_ISO 0x00000040 // Isochronous Transfers
  3168. #define USB_TXCSRH10_MODE 0x00000020 // Mode
  3169. #define USB_TXCSRH10_DMAEN 0x00000010 // DMA Request Enable
  3170. #define USB_TXCSRH10_FDT 0x00000008 // Force Data Toggle
  3171. #define USB_TXCSRH10_DMAMOD 0x00000004 // DMA Request Mode
  3172. #define USB_TXCSRH10_DTWE 0x00000002 // Data Toggle Write Enable
  3173. #define USB_TXCSRH10_DT 0x00000001 // Data Toggle
  3174. //*****************************************************************************
  3175. //
  3176. // The following are defines for the bit fields in the USB_O_RXMAXP10 register.
  3177. //
  3178. //*****************************************************************************
  3179. #define USB_RXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
  3180. #define USB_RXMAXP10_MAXLOAD_S 0
  3181. //*****************************************************************************
  3182. //
  3183. // The following are defines for the bit fields in the USB_O_RXCSRL10 register.
  3184. //
  3185. //*****************************************************************************
  3186. #define USB_RXCSRL10_CLRDT 0x00000080 // Clear Data Toggle
  3187. #define USB_RXCSRL10_STALLED 0x00000040 // Endpoint Stalled
  3188. #define USB_RXCSRL10_STALL 0x00000020 // Send STALL
  3189. #define USB_RXCSRL10_REQPKT 0x00000020 // Request Packet
  3190. #define USB_RXCSRL10_FLUSH 0x00000010 // Flush FIFO
  3191. #define USB_RXCSRL10_NAKTO 0x00000008 // NAK Timeout
  3192. #define USB_RXCSRL10_DATAERR 0x00000008 // Data Error
  3193. #define USB_RXCSRL10_OVER 0x00000004 // Overrun
  3194. #define USB_RXCSRL10_ERROR 0x00000004 // Error
  3195. #define USB_RXCSRL10_FULL 0x00000002 // FIFO Full
  3196. #define USB_RXCSRL10_RXRDY 0x00000001 // Receive Packet Ready
  3197. //*****************************************************************************
  3198. //
  3199. // The following are defines for the bit fields in the USB_O_RXCSRH10 register.
  3200. //
  3201. //*****************************************************************************
  3202. #define USB_RXCSRH10_AUTOCL 0x00000080 // Auto Clear
  3203. #define USB_RXCSRH10_AUTORQ 0x00000040 // Auto Request
  3204. #define USB_RXCSRH10_ISO 0x00000040 // Isochronous Transfers
  3205. #define USB_RXCSRH10_DMAEN 0x00000020 // DMA Request Enable
  3206. #define USB_RXCSRH10_PIDERR 0x00000010 // PID Error
  3207. #define USB_RXCSRH10_DISNYET 0x00000010 // Disable NYET
  3208. #define USB_RXCSRH10_DMAMOD 0x00000008 // DMA Request Mode
  3209. #define USB_RXCSRH10_DTWE 0x00000004 // Data Toggle Write Enable
  3210. #define USB_RXCSRH10_DT 0x00000002 // Data Toggle
  3211. //*****************************************************************************
  3212. //
  3213. // The following are defines for the bit fields in the USB_O_RXCOUNT10
  3214. // register.
  3215. //
  3216. //*****************************************************************************
  3217. #define USB_RXCOUNT10_COUNT_M 0x00001FFF // Receive Packet Count
  3218. #define USB_RXCOUNT10_COUNT_S 0
  3219. //*****************************************************************************
  3220. //
  3221. // The following are defines for the bit fields in the USB_O_TXTYPE10 register.
  3222. //
  3223. //*****************************************************************************
  3224. #define USB_TXTYPE10_SPEED_M 0x000000C0 // Operating Speed
  3225. #define USB_TXTYPE10_SPEED_DFLT 0x00000000 // Default
  3226. #define USB_TXTYPE10_SPEED_FULL 0x00000080 // Full
  3227. #define USB_TXTYPE10_SPEED_LOW 0x000000C0 // Low
  3228. #define USB_TXTYPE10_PROTO_M 0x00000030 // Protocol
  3229. #define USB_TXTYPE10_PROTO_CTRL 0x00000000 // Control
  3230. #define USB_TXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
  3231. #define USB_TXTYPE10_PROTO_BULK 0x00000020 // Bulk
  3232. #define USB_TXTYPE10_PROTO_INT 0x00000030 // Interrupt
  3233. #define USB_TXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
  3234. #define USB_TXTYPE10_TEP_S 0
  3235. //*****************************************************************************
  3236. //
  3237. // The following are defines for the bit fields in the USB_O_TXINTERVAL10
  3238. // register.
  3239. //
  3240. //*****************************************************************************
  3241. #define USB_TXINTERVAL10_NAKLMT_M \
  3242. 0x000000FF // NAK Limit
  3243. #define USB_TXINTERVAL10_TXPOLL_M \
  3244. 0x000000FF // TX Polling
  3245. #define USB_TXINTERVAL10_TXPOLL_S \
  3246. 0
  3247. #define USB_TXINTERVAL10_NAKLMT_S \
  3248. 0
  3249. //*****************************************************************************
  3250. //
  3251. // The following are defines for the bit fields in the USB_O_RXTYPE10 register.
  3252. //
  3253. //*****************************************************************************
  3254. #define USB_RXTYPE10_SPEED_M 0x000000C0 // Operating Speed
  3255. #define USB_RXTYPE10_SPEED_DFLT 0x00000000 // Default
  3256. #define USB_RXTYPE10_SPEED_FULL 0x00000080 // Full
  3257. #define USB_RXTYPE10_SPEED_LOW 0x000000C0 // Low
  3258. #define USB_RXTYPE10_PROTO_M 0x00000030 // Protocol
  3259. #define USB_RXTYPE10_PROTO_CTRL 0x00000000 // Control
  3260. #define USB_RXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
  3261. #define USB_RXTYPE10_PROTO_BULK 0x00000020 // Bulk
  3262. #define USB_RXTYPE10_PROTO_INT 0x00000030 // Interrupt
  3263. #define USB_RXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
  3264. #define USB_RXTYPE10_TEP_S 0
  3265. //*****************************************************************************
  3266. //
  3267. // The following are defines for the bit fields in the USB_O_RXINTERVAL10
  3268. // register.
  3269. //
  3270. //*****************************************************************************
  3271. #define USB_RXINTERVAL10_NAKLMT_M \
  3272. 0x000000FF // NAK Limit
  3273. #define USB_RXINTERVAL10_TXPOLL_M \
  3274. 0x000000FF // RX Polling
  3275. #define USB_RXINTERVAL10_TXPOLL_S \
  3276. 0
  3277. #define USB_RXINTERVAL10_NAKLMT_S \
  3278. 0
  3279. //*****************************************************************************
  3280. //
  3281. // The following are defines for the bit fields in the USB_O_TXMAXP11 register.
  3282. //
  3283. //*****************************************************************************
  3284. #define USB_TXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
  3285. #define USB_TXMAXP11_MAXLOAD_S 0
  3286. //*****************************************************************************
  3287. //
  3288. // The following are defines for the bit fields in the USB_O_TXCSRL11 register.
  3289. //
  3290. //*****************************************************************************
  3291. #define USB_TXCSRL11_NAKTO 0x00000080 // NAK Timeout
  3292. #define USB_TXCSRL11_CLRDT 0x00000040 // Clear Data Toggle
  3293. #define USB_TXCSRL11_STALLED 0x00000020 // Endpoint Stalled
  3294. #define USB_TXCSRL11_STALL 0x00000010 // Send STALL
  3295. #define USB_TXCSRL11_SETUP 0x00000010 // Setup Packet
  3296. #define USB_TXCSRL11_FLUSH 0x00000008 // Flush FIFO
  3297. #define USB_TXCSRL11_ERROR 0x00000004 // Error
  3298. #define USB_TXCSRL11_UNDRN 0x00000004 // Underrun
  3299. #define USB_TXCSRL11_FIFONE 0x00000002 // FIFO Not Empty
  3300. #define USB_TXCSRL11_TXRDY 0x00000001 // Transmit Packet Ready
  3301. //*****************************************************************************
  3302. //
  3303. // The following are defines for the bit fields in the USB_O_TXCSRH11 register.
  3304. //
  3305. //*****************************************************************************
  3306. #define USB_TXCSRH11_AUTOSET 0x00000080 // Auto Set
  3307. #define USB_TXCSRH11_ISO 0x00000040 // Isochronous Transfers
  3308. #define USB_TXCSRH11_MODE 0x00000020 // Mode
  3309. #define USB_TXCSRH11_DMAEN 0x00000010 // DMA Request Enable
  3310. #define USB_TXCSRH11_FDT 0x00000008 // Force Data Toggle
  3311. #define USB_TXCSRH11_DMAMOD 0x00000004 // DMA Request Mode
  3312. #define USB_TXCSRH11_DTWE 0x00000002 // Data Toggle Write Enable
  3313. #define USB_TXCSRH11_DT 0x00000001 // Data Toggle
  3314. //*****************************************************************************
  3315. //
  3316. // The following are defines for the bit fields in the USB_O_RXMAXP11 register.
  3317. //
  3318. //*****************************************************************************
  3319. #define USB_RXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
  3320. #define USB_RXMAXP11_MAXLOAD_S 0
  3321. //*****************************************************************************
  3322. //
  3323. // The following are defines for the bit fields in the USB_O_RXCSRL11 register.
  3324. //
  3325. //*****************************************************************************
  3326. #define USB_RXCSRL11_CLRDT 0x00000080 // Clear Data Toggle
  3327. #define USB_RXCSRL11_STALLED 0x00000040 // Endpoint Stalled
  3328. #define USB_RXCSRL11_STALL 0x00000020 // Send STALL
  3329. #define USB_RXCSRL11_REQPKT 0x00000020 // Request Packet
  3330. #define USB_RXCSRL11_FLUSH 0x00000010 // Flush FIFO
  3331. #define USB_RXCSRL11_DATAERR 0x00000008 // Data Error
  3332. #define USB_RXCSRL11_NAKTO 0x00000008 // NAK Timeout
  3333. #define USB_RXCSRL11_OVER 0x00000004 // Overrun
  3334. #define USB_RXCSRL11_ERROR 0x00000004 // Error
  3335. #define USB_RXCSRL11_FULL 0x00000002 // FIFO Full
  3336. #define USB_RXCSRL11_RXRDY 0x00000001 // Receive Packet Ready
  3337. //*****************************************************************************
  3338. //
  3339. // The following are defines for the bit fields in the USB_O_RXCSRH11 register.
  3340. //
  3341. //*****************************************************************************
  3342. #define USB_RXCSRH11_AUTOCL 0x00000080 // Auto Clear
  3343. #define USB_RXCSRH11_ISO 0x00000040 // Isochronous Transfers
  3344. #define USB_RXCSRH11_AUTORQ 0x00000040 // Auto Request
  3345. #define USB_RXCSRH11_DMAEN 0x00000020 // DMA Request Enable
  3346. #define USB_RXCSRH11_DISNYET 0x00000010 // Disable NYET
  3347. #define USB_RXCSRH11_PIDERR 0x00000010 // PID Error
  3348. #define USB_RXCSRH11_DMAMOD 0x00000008 // DMA Request Mode
  3349. #define USB_RXCSRH11_DTWE 0x00000004 // Data Toggle Write Enable
  3350. #define USB_RXCSRH11_DT 0x00000002 // Data Toggle
  3351. //*****************************************************************************
  3352. //
  3353. // The following are defines for the bit fields in the USB_O_RXCOUNT11
  3354. // register.
  3355. //
  3356. //*****************************************************************************
  3357. #define USB_RXCOUNT11_COUNT_M 0x00001FFF // Receive Packet Count
  3358. #define USB_RXCOUNT11_COUNT_S 0
  3359. //*****************************************************************************
  3360. //
  3361. // The following are defines for the bit fields in the USB_O_TXTYPE11 register.
  3362. //
  3363. //*****************************************************************************
  3364. #define USB_TXTYPE11_SPEED_M 0x000000C0 // Operating Speed
  3365. #define USB_TXTYPE11_SPEED_DFLT 0x00000000 // Default
  3366. #define USB_TXTYPE11_SPEED_FULL 0x00000080 // Full
  3367. #define USB_TXTYPE11_SPEED_LOW 0x000000C0 // Low
  3368. #define USB_TXTYPE11_PROTO_M 0x00000030 // Protocol
  3369. #define USB_TXTYPE11_PROTO_CTRL 0x00000000 // Control
  3370. #define USB_TXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
  3371. #define USB_TXTYPE11_PROTO_BULK 0x00000020 // Bulk
  3372. #define USB_TXTYPE11_PROTO_INT 0x00000030 // Interrupt
  3373. #define USB_TXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
  3374. #define USB_TXTYPE11_TEP_S 0
  3375. //*****************************************************************************
  3376. //
  3377. // The following are defines for the bit fields in the USB_O_TXINTERVAL11
  3378. // register.
  3379. //
  3380. //*****************************************************************************
  3381. #define USB_TXINTERVAL11_TXPOLL_M \
  3382. 0x000000FF // TX Polling
  3383. #define USB_TXINTERVAL11_NAKLMT_M \
  3384. 0x000000FF // NAK Limit
  3385. #define USB_TXINTERVAL11_NAKLMT_S \
  3386. 0
  3387. #define USB_TXINTERVAL11_TXPOLL_S \
  3388. 0
  3389. //*****************************************************************************
  3390. //
  3391. // The following are defines for the bit fields in the USB_O_RXTYPE11 register.
  3392. //
  3393. //*****************************************************************************
  3394. #define USB_RXTYPE11_SPEED_M 0x000000C0 // Operating Speed
  3395. #define USB_RXTYPE11_SPEED_DFLT 0x00000000 // Default
  3396. #define USB_RXTYPE11_SPEED_FULL 0x00000080 // Full
  3397. #define USB_RXTYPE11_SPEED_LOW 0x000000C0 // Low
  3398. #define USB_RXTYPE11_PROTO_M 0x00000030 // Protocol
  3399. #define USB_RXTYPE11_PROTO_CTRL 0x00000000 // Control
  3400. #define USB_RXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
  3401. #define USB_RXTYPE11_PROTO_BULK 0x00000020 // Bulk
  3402. #define USB_RXTYPE11_PROTO_INT 0x00000030 // Interrupt
  3403. #define USB_RXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
  3404. #define USB_RXTYPE11_TEP_S 0
  3405. //*****************************************************************************
  3406. //
  3407. // The following are defines for the bit fields in the USB_O_RXINTERVAL11
  3408. // register.
  3409. //
  3410. //*****************************************************************************
  3411. #define USB_RXINTERVAL11_NAKLMT_M \
  3412. 0x000000FF // NAK Limit
  3413. #define USB_RXINTERVAL11_TXPOLL_M \
  3414. 0x000000FF // RX Polling
  3415. #define USB_RXINTERVAL11_TXPOLL_S \
  3416. 0
  3417. #define USB_RXINTERVAL11_NAKLMT_S \
  3418. 0
  3419. //*****************************************************************************
  3420. //
  3421. // The following are defines for the bit fields in the USB_O_TXMAXP12 register.
  3422. //
  3423. //*****************************************************************************
  3424. #define USB_TXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
  3425. #define USB_TXMAXP12_MAXLOAD_S 0
  3426. //*****************************************************************************
  3427. //
  3428. // The following are defines for the bit fields in the USB_O_TXCSRL12 register.
  3429. //
  3430. //*****************************************************************************
  3431. #define USB_TXCSRL12_NAKTO 0x00000080 // NAK Timeout
  3432. #define USB_TXCSRL12_CLRDT 0x00000040 // Clear Data Toggle
  3433. #define USB_TXCSRL12_STALLED 0x00000020 // Endpoint Stalled
  3434. #define USB_TXCSRL12_SETUP 0x00000010 // Setup Packet
  3435. #define USB_TXCSRL12_STALL 0x00000010 // Send STALL
  3436. #define USB_TXCSRL12_FLUSH 0x00000008 // Flush FIFO
  3437. #define USB_TXCSRL12_UNDRN 0x00000004 // Underrun
  3438. #define USB_TXCSRL12_ERROR 0x00000004 // Error
  3439. #define USB_TXCSRL12_FIFONE 0x00000002 // FIFO Not Empty
  3440. #define USB_TXCSRL12_TXRDY 0x00000001 // Transmit Packet Ready
  3441. //*****************************************************************************
  3442. //
  3443. // The following are defines for the bit fields in the USB_O_TXCSRH12 register.
  3444. //
  3445. //*****************************************************************************
  3446. #define USB_TXCSRH12_AUTOSET 0x00000080 // Auto Set
  3447. #define USB_TXCSRH12_ISO 0x00000040 // Isochronous Transfers
  3448. #define USB_TXCSRH12_MODE 0x00000020 // Mode
  3449. #define USB_TXCSRH12_DMAEN 0x00000010 // DMA Request Enable
  3450. #define USB_TXCSRH12_FDT 0x00000008 // Force Data Toggle
  3451. #define USB_TXCSRH12_DMAMOD 0x00000004 // DMA Request Mode
  3452. #define USB_TXCSRH12_DTWE 0x00000002 // Data Toggle Write Enable
  3453. #define USB_TXCSRH12_DT 0x00000001 // Data Toggle
  3454. //*****************************************************************************
  3455. //
  3456. // The following are defines for the bit fields in the USB_O_RXMAXP12 register.
  3457. //
  3458. //*****************************************************************************
  3459. #define USB_RXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
  3460. #define USB_RXMAXP12_MAXLOAD_S 0
  3461. //*****************************************************************************
  3462. //
  3463. // The following are defines for the bit fields in the USB_O_RXCSRL12 register.
  3464. //
  3465. //*****************************************************************************
  3466. #define USB_RXCSRL12_CLRDT 0x00000080 // Clear Data Toggle
  3467. #define USB_RXCSRL12_STALLED 0x00000040 // Endpoint Stalled
  3468. #define USB_RXCSRL12_STALL 0x00000020 // Send STALL
  3469. #define USB_RXCSRL12_REQPKT 0x00000020 // Request Packet
  3470. #define USB_RXCSRL12_FLUSH 0x00000010 // Flush FIFO
  3471. #define USB_RXCSRL12_NAKTO 0x00000008 // NAK Timeout
  3472. #define USB_RXCSRL12_DATAERR 0x00000008 // Data Error
  3473. #define USB_RXCSRL12_ERROR 0x00000004 // Error
  3474. #define USB_RXCSRL12_OVER 0x00000004 // Overrun
  3475. #define USB_RXCSRL12_FULL 0x00000002 // FIFO Full
  3476. #define USB_RXCSRL12_RXRDY 0x00000001 // Receive Packet Ready
  3477. //*****************************************************************************
  3478. //
  3479. // The following are defines for the bit fields in the USB_O_RXCSRH12 register.
  3480. //
  3481. //*****************************************************************************
  3482. #define USB_RXCSRH12_AUTOCL 0x00000080 // Auto Clear
  3483. #define USB_RXCSRH12_ISO 0x00000040 // Isochronous Transfers
  3484. #define USB_RXCSRH12_AUTORQ 0x00000040 // Auto Request
  3485. #define USB_RXCSRH12_DMAEN 0x00000020 // DMA Request Enable
  3486. #define USB_RXCSRH12_PIDERR 0x00000010 // PID Error
  3487. #define USB_RXCSRH12_DISNYET 0x00000010 // Disable NYET
  3488. #define USB_RXCSRH12_DMAMOD 0x00000008 // DMA Request Mode
  3489. #define USB_RXCSRH12_DTWE 0x00000004 // Data Toggle Write Enable
  3490. #define USB_RXCSRH12_DT 0x00000002 // Data Toggle
  3491. //*****************************************************************************
  3492. //
  3493. // The following are defines for the bit fields in the USB_O_RXCOUNT12
  3494. // register.
  3495. //
  3496. //*****************************************************************************
  3497. #define USB_RXCOUNT12_COUNT_M 0x00001FFF // Receive Packet Count
  3498. #define USB_RXCOUNT12_COUNT_S 0
  3499. //*****************************************************************************
  3500. //
  3501. // The following are defines for the bit fields in the USB_O_TXTYPE12 register.
  3502. //
  3503. //*****************************************************************************
  3504. #define USB_TXTYPE12_SPEED_M 0x000000C0 // Operating Speed
  3505. #define USB_TXTYPE12_SPEED_DFLT 0x00000000 // Default
  3506. #define USB_TXTYPE12_SPEED_FULL 0x00000080 // Full
  3507. #define USB_TXTYPE12_SPEED_LOW 0x000000C0 // Low
  3508. #define USB_TXTYPE12_PROTO_M 0x00000030 // Protocol
  3509. #define USB_TXTYPE12_PROTO_CTRL 0x00000000 // Control
  3510. #define USB_TXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
  3511. #define USB_TXTYPE12_PROTO_BULK 0x00000020 // Bulk
  3512. #define USB_TXTYPE12_PROTO_INT 0x00000030 // Interrupt
  3513. #define USB_TXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
  3514. #define USB_TXTYPE12_TEP_S 0
  3515. //*****************************************************************************
  3516. //
  3517. // The following are defines for the bit fields in the USB_O_TXINTERVAL12
  3518. // register.
  3519. //
  3520. //*****************************************************************************
  3521. #define USB_TXINTERVAL12_TXPOLL_M \
  3522. 0x000000FF // TX Polling
  3523. #define USB_TXINTERVAL12_NAKLMT_M \
  3524. 0x000000FF // NAK Limit
  3525. #define USB_TXINTERVAL12_TXPOLL_S \
  3526. 0
  3527. #define USB_TXINTERVAL12_NAKLMT_S \
  3528. 0
  3529. //*****************************************************************************
  3530. //
  3531. // The following are defines for the bit fields in the USB_O_RXTYPE12 register.
  3532. //
  3533. //*****************************************************************************
  3534. #define USB_RXTYPE12_SPEED_M 0x000000C0 // Operating Speed
  3535. #define USB_RXTYPE12_SPEED_DFLT 0x00000000 // Default
  3536. #define USB_RXTYPE12_SPEED_FULL 0x00000080 // Full
  3537. #define USB_RXTYPE12_SPEED_LOW 0x000000C0 // Low
  3538. #define USB_RXTYPE12_PROTO_M 0x00000030 // Protocol
  3539. #define USB_RXTYPE12_PROTO_CTRL 0x00000000 // Control
  3540. #define USB_RXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
  3541. #define USB_RXTYPE12_PROTO_BULK 0x00000020 // Bulk
  3542. #define USB_RXTYPE12_PROTO_INT 0x00000030 // Interrupt
  3543. #define USB_RXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
  3544. #define USB_RXTYPE12_TEP_S 0
  3545. //*****************************************************************************
  3546. //
  3547. // The following are defines for the bit fields in the USB_O_RXINTERVAL12
  3548. // register.
  3549. //
  3550. //*****************************************************************************
  3551. #define USB_RXINTERVAL12_NAKLMT_M \
  3552. 0x000000FF // NAK Limit
  3553. #define USB_RXINTERVAL12_TXPOLL_M \
  3554. 0x000000FF // RX Polling
  3555. #define USB_RXINTERVAL12_NAKLMT_S \
  3556. 0
  3557. #define USB_RXINTERVAL12_TXPOLL_S \
  3558. 0
  3559. //*****************************************************************************
  3560. //
  3561. // The following are defines for the bit fields in the USB_O_TXMAXP13 register.
  3562. //
  3563. //*****************************************************************************
  3564. #define USB_TXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
  3565. #define USB_TXMAXP13_MAXLOAD_S 0
  3566. //*****************************************************************************
  3567. //
  3568. // The following are defines for the bit fields in the USB_O_TXCSRL13 register.
  3569. //
  3570. //*****************************************************************************
  3571. #define USB_TXCSRL13_NAKTO 0x00000080 // NAK Timeout
  3572. #define USB_TXCSRL13_CLRDT 0x00000040 // Clear Data Toggle
  3573. #define USB_TXCSRL13_STALLED 0x00000020 // Endpoint Stalled
  3574. #define USB_TXCSRL13_SETUP 0x00000010 // Setup Packet
  3575. #define USB_TXCSRL13_STALL 0x00000010 // Send STALL
  3576. #define USB_TXCSRL13_FLUSH 0x00000008 // Flush FIFO
  3577. #define USB_TXCSRL13_UNDRN 0x00000004 // Underrun
  3578. #define USB_TXCSRL13_ERROR 0x00000004 // Error
  3579. #define USB_TXCSRL13_FIFONE 0x00000002 // FIFO Not Empty
  3580. #define USB_TXCSRL13_TXRDY 0x00000001 // Transmit Packet Ready
  3581. //*****************************************************************************
  3582. //
  3583. // The following are defines for the bit fields in the USB_O_TXCSRH13 register.
  3584. //
  3585. //*****************************************************************************
  3586. #define USB_TXCSRH13_AUTOSET 0x00000080 // Auto Set
  3587. #define USB_TXCSRH13_ISO 0x00000040 // Isochronous Transfers
  3588. #define USB_TXCSRH13_MODE 0x00000020 // Mode
  3589. #define USB_TXCSRH13_DMAEN 0x00000010 // DMA Request Enable
  3590. #define USB_TXCSRH13_FDT 0x00000008 // Force Data Toggle
  3591. #define USB_TXCSRH13_DMAMOD 0x00000004 // DMA Request Mode
  3592. #define USB_TXCSRH13_DTWE 0x00000002 // Data Toggle Write Enable
  3593. #define USB_TXCSRH13_DT 0x00000001 // Data Toggle
  3594. //*****************************************************************************
  3595. //
  3596. // The following are defines for the bit fields in the USB_O_RXMAXP13 register.
  3597. //
  3598. //*****************************************************************************
  3599. #define USB_RXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
  3600. #define USB_RXMAXP13_MAXLOAD_S 0
  3601. //*****************************************************************************
  3602. //
  3603. // The following are defines for the bit fields in the USB_O_RXCSRL13 register.
  3604. //
  3605. //*****************************************************************************
  3606. #define USB_RXCSRL13_CLRDT 0x00000080 // Clear Data Toggle
  3607. #define USB_RXCSRL13_STALLED 0x00000040 // Endpoint Stalled
  3608. #define USB_RXCSRL13_REQPKT 0x00000020 // Request Packet
  3609. #define USB_RXCSRL13_STALL 0x00000020 // Send STALL
  3610. #define USB_RXCSRL13_FLUSH 0x00000010 // Flush FIFO
  3611. #define USB_RXCSRL13_NAKTO 0x00000008 // NAK Timeout
  3612. #define USB_RXCSRL13_DATAERR 0x00000008 // Data Error
  3613. #define USB_RXCSRL13_OVER 0x00000004 // Overrun
  3614. #define USB_RXCSRL13_ERROR 0x00000004 // Error
  3615. #define USB_RXCSRL13_FULL 0x00000002 // FIFO Full
  3616. #define USB_RXCSRL13_RXRDY 0x00000001 // Receive Packet Ready
  3617. //*****************************************************************************
  3618. //
  3619. // The following are defines for the bit fields in the USB_O_RXCSRH13 register.
  3620. //
  3621. //*****************************************************************************
  3622. #define USB_RXCSRH13_AUTOCL 0x00000080 // Auto Clear
  3623. #define USB_RXCSRH13_ISO 0x00000040 // Isochronous Transfers
  3624. #define USB_RXCSRH13_AUTORQ 0x00000040 // Auto Request
  3625. #define USB_RXCSRH13_DMAEN 0x00000020 // DMA Request Enable
  3626. #define USB_RXCSRH13_DISNYET 0x00000010 // Disable NYET
  3627. #define USB_RXCSRH13_PIDERR 0x00000010 // PID Error
  3628. #define USB_RXCSRH13_DMAMOD 0x00000008 // DMA Request Mode
  3629. #define USB_RXCSRH13_DTWE 0x00000004 // Data Toggle Write Enable
  3630. #define USB_RXCSRH13_DT 0x00000002 // Data Toggle
  3631. //*****************************************************************************
  3632. //
  3633. // The following are defines for the bit fields in the USB_O_RXCOUNT13
  3634. // register.
  3635. //
  3636. //*****************************************************************************
  3637. #define USB_RXCOUNT13_COUNT_M 0x00001FFF // Receive Packet Count
  3638. #define USB_RXCOUNT13_COUNT_S 0
  3639. //*****************************************************************************
  3640. //
  3641. // The following are defines for the bit fields in the USB_O_TXTYPE13 register.
  3642. //
  3643. //*****************************************************************************
  3644. #define USB_TXTYPE13_SPEED_M 0x000000C0 // Operating Speed
  3645. #define USB_TXTYPE13_SPEED_DFLT 0x00000000 // Default
  3646. #define USB_TXTYPE13_SPEED_FULL 0x00000080 // Full
  3647. #define USB_TXTYPE13_SPEED_LOW 0x000000C0 // Low
  3648. #define USB_TXTYPE13_PROTO_M 0x00000030 // Protocol
  3649. #define USB_TXTYPE13_PROTO_CTRL 0x00000000 // Control
  3650. #define USB_TXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
  3651. #define USB_TXTYPE13_PROTO_BULK 0x00000020 // Bulk
  3652. #define USB_TXTYPE13_PROTO_INT 0x00000030 // Interrupt
  3653. #define USB_TXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
  3654. #define USB_TXTYPE13_TEP_S 0
  3655. //*****************************************************************************
  3656. //
  3657. // The following are defines for the bit fields in the USB_O_TXINTERVAL13
  3658. // register.
  3659. //
  3660. //*****************************************************************************
  3661. #define USB_TXINTERVAL13_NAKLMT_M \
  3662. 0x000000FF // NAK Limit
  3663. #define USB_TXINTERVAL13_TXPOLL_M \
  3664. 0x000000FF // TX Polling
  3665. #define USB_TXINTERVAL13_TXPOLL_S \
  3666. 0
  3667. #define USB_TXINTERVAL13_NAKLMT_S \
  3668. 0
  3669. //*****************************************************************************
  3670. //
  3671. // The following are defines for the bit fields in the USB_O_RXTYPE13 register.
  3672. //
  3673. //*****************************************************************************
  3674. #define USB_RXTYPE13_SPEED_M 0x000000C0 // Operating Speed
  3675. #define USB_RXTYPE13_SPEED_DFLT 0x00000000 // Default
  3676. #define USB_RXTYPE13_SPEED_FULL 0x00000080 // Full
  3677. #define USB_RXTYPE13_SPEED_LOW 0x000000C0 // Low
  3678. #define USB_RXTYPE13_PROTO_M 0x00000030 // Protocol
  3679. #define USB_RXTYPE13_PROTO_CTRL 0x00000000 // Control
  3680. #define USB_RXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
  3681. #define USB_RXTYPE13_PROTO_BULK 0x00000020 // Bulk
  3682. #define USB_RXTYPE13_PROTO_INT 0x00000030 // Interrupt
  3683. #define USB_RXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
  3684. #define USB_RXTYPE13_TEP_S 0
  3685. //*****************************************************************************
  3686. //
  3687. // The following are defines for the bit fields in the USB_O_RXINTERVAL13
  3688. // register.
  3689. //
  3690. //*****************************************************************************
  3691. #define USB_RXINTERVAL13_TXPOLL_M \
  3692. 0x000000FF // RX Polling
  3693. #define USB_RXINTERVAL13_NAKLMT_M \
  3694. 0x000000FF // NAK Limit
  3695. #define USB_RXINTERVAL13_TXPOLL_S \
  3696. 0
  3697. #define USB_RXINTERVAL13_NAKLMT_S \
  3698. 0
  3699. //*****************************************************************************
  3700. //
  3701. // The following are defines for the bit fields in the USB_O_TXMAXP14 register.
  3702. //
  3703. //*****************************************************************************
  3704. #define USB_TXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
  3705. #define USB_TXMAXP14_MAXLOAD_S 0
  3706. //*****************************************************************************
  3707. //
  3708. // The following are defines for the bit fields in the USB_O_TXCSRL14 register.
  3709. //
  3710. //*****************************************************************************
  3711. #define USB_TXCSRL14_NAKTO 0x00000080 // NAK Timeout
  3712. #define USB_TXCSRL14_CLRDT 0x00000040 // Clear Data Toggle
  3713. #define USB_TXCSRL14_STALLED 0x00000020 // Endpoint Stalled
  3714. #define USB_TXCSRL14_STALL 0x00000010 // Send STALL
  3715. #define USB_TXCSRL14_SETUP 0x00000010 // Setup Packet
  3716. #define USB_TXCSRL14_FLUSH 0x00000008 // Flush FIFO
  3717. #define USB_TXCSRL14_ERROR 0x00000004 // Error
  3718. #define USB_TXCSRL14_UNDRN 0x00000004 // Underrun
  3719. #define USB_TXCSRL14_FIFONE 0x00000002 // FIFO Not Empty
  3720. #define USB_TXCSRL14_TXRDY 0x00000001 // Transmit Packet Ready
  3721. //*****************************************************************************
  3722. //
  3723. // The following are defines for the bit fields in the USB_O_TXCSRH14 register.
  3724. //
  3725. //*****************************************************************************
  3726. #define USB_TXCSRH14_AUTOSET 0x00000080 // Auto Set
  3727. #define USB_TXCSRH14_ISO 0x00000040 // Isochronous Transfers
  3728. #define USB_TXCSRH14_MODE 0x00000020 // Mode
  3729. #define USB_TXCSRH14_DMAEN 0x00000010 // DMA Request Enable
  3730. #define USB_TXCSRH14_FDT 0x00000008 // Force Data Toggle
  3731. #define USB_TXCSRH14_DMAMOD 0x00000004 // DMA Request Mode
  3732. #define USB_TXCSRH14_DTWE 0x00000002 // Data Toggle Write Enable
  3733. #define USB_TXCSRH14_DT 0x00000001 // Data Toggle
  3734. //*****************************************************************************
  3735. //
  3736. // The following are defines for the bit fields in the USB_O_RXMAXP14 register.
  3737. //
  3738. //*****************************************************************************
  3739. #define USB_RXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
  3740. #define USB_RXMAXP14_MAXLOAD_S 0
  3741. //*****************************************************************************
  3742. //
  3743. // The following are defines for the bit fields in the USB_O_RXCSRL14 register.
  3744. //
  3745. //*****************************************************************************
  3746. #define USB_RXCSRL14_CLRDT 0x00000080 // Clear Data Toggle
  3747. #define USB_RXCSRL14_STALLED 0x00000040 // Endpoint Stalled
  3748. #define USB_RXCSRL14_REQPKT 0x00000020 // Request Packet
  3749. #define USB_RXCSRL14_STALL 0x00000020 // Send STALL
  3750. #define USB_RXCSRL14_FLUSH 0x00000010 // Flush FIFO
  3751. #define USB_RXCSRL14_DATAERR 0x00000008 // Data Error
  3752. #define USB_RXCSRL14_NAKTO 0x00000008 // NAK Timeout
  3753. #define USB_RXCSRL14_OVER 0x00000004 // Overrun
  3754. #define USB_RXCSRL14_ERROR 0x00000004 // Error
  3755. #define USB_RXCSRL14_FULL 0x00000002 // FIFO Full
  3756. #define USB_RXCSRL14_RXRDY 0x00000001 // Receive Packet Ready
  3757. //*****************************************************************************
  3758. //
  3759. // The following are defines for the bit fields in the USB_O_RXCSRH14 register.
  3760. //
  3761. //*****************************************************************************
  3762. #define USB_RXCSRH14_AUTOCL 0x00000080 // Auto Clear
  3763. #define USB_RXCSRH14_AUTORQ 0x00000040 // Auto Request
  3764. #define USB_RXCSRH14_ISO 0x00000040 // Isochronous Transfers
  3765. #define USB_RXCSRH14_DMAEN 0x00000020 // DMA Request Enable
  3766. #define USB_RXCSRH14_PIDERR 0x00000010 // PID Error
  3767. #define USB_RXCSRH14_DISNYET 0x00000010 // Disable NYET
  3768. #define USB_RXCSRH14_DMAMOD 0x00000008 // DMA Request Mode
  3769. #define USB_RXCSRH14_DTWE 0x00000004 // Data Toggle Write Enable
  3770. #define USB_RXCSRH14_DT 0x00000002 // Data Toggle
  3771. //*****************************************************************************
  3772. //
  3773. // The following are defines for the bit fields in the USB_O_RXCOUNT14
  3774. // register.
  3775. //
  3776. //*****************************************************************************
  3777. #define USB_RXCOUNT14_COUNT_M 0x00001FFF // Receive Packet Count
  3778. #define USB_RXCOUNT14_COUNT_S 0
  3779. //*****************************************************************************
  3780. //
  3781. // The following are defines for the bit fields in the USB_O_TXTYPE14 register.
  3782. //
  3783. //*****************************************************************************
  3784. #define USB_TXTYPE14_SPEED_M 0x000000C0 // Operating Speed
  3785. #define USB_TXTYPE14_SPEED_DFLT 0x00000000 // Default
  3786. #define USB_TXTYPE14_SPEED_FULL 0x00000080 // Full
  3787. #define USB_TXTYPE14_SPEED_LOW 0x000000C0 // Low
  3788. #define USB_TXTYPE14_PROTO_M 0x00000030 // Protocol
  3789. #define USB_TXTYPE14_PROTO_CTRL 0x00000000 // Control
  3790. #define USB_TXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
  3791. #define USB_TXTYPE14_PROTO_BULK 0x00000020 // Bulk
  3792. #define USB_TXTYPE14_PROTO_INT 0x00000030 // Interrupt
  3793. #define USB_TXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
  3794. #define USB_TXTYPE14_TEP_S 0
  3795. //*****************************************************************************
  3796. //
  3797. // The following are defines for the bit fields in the USB_O_TXINTERVAL14
  3798. // register.
  3799. //
  3800. //*****************************************************************************
  3801. #define USB_TXINTERVAL14_TXPOLL_M \
  3802. 0x000000FF // TX Polling
  3803. #define USB_TXINTERVAL14_NAKLMT_M \
  3804. 0x000000FF // NAK Limit
  3805. #define USB_TXINTERVAL14_TXPOLL_S \
  3806. 0
  3807. #define USB_TXINTERVAL14_NAKLMT_S \
  3808. 0
  3809. //*****************************************************************************
  3810. //
  3811. // The following are defines for the bit fields in the USB_O_RXTYPE14 register.
  3812. //
  3813. //*****************************************************************************
  3814. #define USB_RXTYPE14_SPEED_M 0x000000C0 // Operating Speed
  3815. #define USB_RXTYPE14_SPEED_DFLT 0x00000000 // Default
  3816. #define USB_RXTYPE14_SPEED_FULL 0x00000080 // Full
  3817. #define USB_RXTYPE14_SPEED_LOW 0x000000C0 // Low
  3818. #define USB_RXTYPE14_PROTO_M 0x00000030 // Protocol
  3819. #define USB_RXTYPE14_PROTO_CTRL 0x00000000 // Control
  3820. #define USB_RXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
  3821. #define USB_RXTYPE14_PROTO_BULK 0x00000020 // Bulk
  3822. #define USB_RXTYPE14_PROTO_INT 0x00000030 // Interrupt
  3823. #define USB_RXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
  3824. #define USB_RXTYPE14_TEP_S 0
  3825. //*****************************************************************************
  3826. //
  3827. // The following are defines for the bit fields in the USB_O_RXINTERVAL14
  3828. // register.
  3829. //
  3830. //*****************************************************************************
  3831. #define USB_RXINTERVAL14_TXPOLL_M \
  3832. 0x000000FF // RX Polling
  3833. #define USB_RXINTERVAL14_NAKLMT_M \
  3834. 0x000000FF // NAK Limit
  3835. #define USB_RXINTERVAL14_TXPOLL_S \
  3836. 0
  3837. #define USB_RXINTERVAL14_NAKLMT_S \
  3838. 0
  3839. //*****************************************************************************
  3840. //
  3841. // The following are defines for the bit fields in the USB_O_TXMAXP15 register.
  3842. //
  3843. //*****************************************************************************
  3844. #define USB_TXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
  3845. #define USB_TXMAXP15_MAXLOAD_S 0
  3846. //*****************************************************************************
  3847. //
  3848. // The following are defines for the bit fields in the USB_O_TXCSRL15 register.
  3849. //
  3850. //*****************************************************************************
  3851. #define USB_TXCSRL15_NAKTO 0x00000080 // NAK Timeout
  3852. #define USB_TXCSRL15_CLRDT 0x00000040 // Clear Data Toggle
  3853. #define USB_TXCSRL15_STALLED 0x00000020 // Endpoint Stalled
  3854. #define USB_TXCSRL15_SETUP 0x00000010 // Setup Packet
  3855. #define USB_TXCSRL15_STALL 0x00000010 // Send STALL
  3856. #define USB_TXCSRL15_FLUSH 0x00000008 // Flush FIFO
  3857. #define USB_TXCSRL15_UNDRN 0x00000004 // Underrun
  3858. #define USB_TXCSRL15_ERROR 0x00000004 // Error
  3859. #define USB_TXCSRL15_FIFONE 0x00000002 // FIFO Not Empty
  3860. #define USB_TXCSRL15_TXRDY 0x00000001 // Transmit Packet Ready
  3861. //*****************************************************************************
  3862. //
  3863. // The following are defines for the bit fields in the USB_O_TXCSRH15 register.
  3864. //
  3865. //*****************************************************************************
  3866. #define USB_TXCSRH15_AUTOSET 0x00000080 // Auto Set
  3867. #define USB_TXCSRH15_ISO 0x00000040 // Isochronous Transfers
  3868. #define USB_TXCSRH15_MODE 0x00000020 // Mode
  3869. #define USB_TXCSRH15_DMAEN 0x00000010 // DMA Request Enable
  3870. #define USB_TXCSRH15_FDT 0x00000008 // Force Data Toggle
  3871. #define USB_TXCSRH15_DMAMOD 0x00000004 // DMA Request Mode
  3872. #define USB_TXCSRH15_DTWE 0x00000002 // Data Toggle Write Enable
  3873. #define USB_TXCSRH15_DT 0x00000001 // Data Toggle
  3874. //*****************************************************************************
  3875. //
  3876. // The following are defines for the bit fields in the USB_O_RXMAXP15 register.
  3877. //
  3878. //*****************************************************************************
  3879. #define USB_RXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
  3880. #define USB_RXMAXP15_MAXLOAD_S 0
  3881. //*****************************************************************************
  3882. //
  3883. // The following are defines for the bit fields in the USB_O_RXCSRL15 register.
  3884. //
  3885. //*****************************************************************************
  3886. #define USB_RXCSRL15_CLRDT 0x00000080 // Clear Data Toggle
  3887. #define USB_RXCSRL15_STALLED 0x00000040 // Endpoint Stalled
  3888. #define USB_RXCSRL15_STALL 0x00000020 // Send STALL
  3889. #define USB_RXCSRL15_REQPKT 0x00000020 // Request Packet
  3890. #define USB_RXCSRL15_FLUSH 0x00000010 // Flush FIFO
  3891. #define USB_RXCSRL15_DATAERR 0x00000008 // Data Error
  3892. #define USB_RXCSRL15_NAKTO 0x00000008 // NAK Timeout
  3893. #define USB_RXCSRL15_ERROR 0x00000004 // Error
  3894. #define USB_RXCSRL15_OVER 0x00000004 // Overrun
  3895. #define USB_RXCSRL15_FULL 0x00000002 // FIFO Full
  3896. #define USB_RXCSRL15_RXRDY 0x00000001 // Receive Packet Ready
  3897. //*****************************************************************************
  3898. //
  3899. // The following are defines for the bit fields in the USB_O_RXCSRH15 register.
  3900. //
  3901. //*****************************************************************************
  3902. #define USB_RXCSRH15_AUTOCL 0x00000080 // Auto Clear
  3903. #define USB_RXCSRH15_AUTORQ 0x00000040 // Auto Request
  3904. #define USB_RXCSRH15_ISO 0x00000040 // Isochronous Transfers
  3905. #define USB_RXCSRH15_DMAEN 0x00000020 // DMA Request Enable
  3906. #define USB_RXCSRH15_PIDERR 0x00000010 // PID Error
  3907. #define USB_RXCSRH15_DISNYET 0x00000010 // Disable NYET
  3908. #define USB_RXCSRH15_DMAMOD 0x00000008 // DMA Request Mode
  3909. #define USB_RXCSRH15_DTWE 0x00000004 // Data Toggle Write Enable
  3910. #define USB_RXCSRH15_DT 0x00000002 // Data Toggle
  3911. //*****************************************************************************
  3912. //
  3913. // The following are defines for the bit fields in the USB_O_RXCOUNT15
  3914. // register.
  3915. //
  3916. //*****************************************************************************
  3917. #define USB_RXCOUNT15_COUNT_M 0x00001FFF // Receive Packet Count
  3918. #define USB_RXCOUNT15_COUNT_S 0
  3919. //*****************************************************************************
  3920. //
  3921. // The following are defines for the bit fields in the USB_O_TXTYPE15 register.
  3922. //
  3923. //*****************************************************************************
  3924. #define USB_TXTYPE15_SPEED_M 0x000000C0 // Operating Speed
  3925. #define USB_TXTYPE15_SPEED_DFLT 0x00000000 // Default
  3926. #define USB_TXTYPE15_SPEED_FULL 0x00000080 // Full
  3927. #define USB_TXTYPE15_SPEED_LOW 0x000000C0 // Low
  3928. #define USB_TXTYPE15_PROTO_M 0x00000030 // Protocol
  3929. #define USB_TXTYPE15_PROTO_CTRL 0x00000000 // Control
  3930. #define USB_TXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
  3931. #define USB_TXTYPE15_PROTO_BULK 0x00000020 // Bulk
  3932. #define USB_TXTYPE15_PROTO_INT 0x00000030 // Interrupt
  3933. #define USB_TXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
  3934. #define USB_TXTYPE15_TEP_S 0
  3935. //*****************************************************************************
  3936. //
  3937. // The following are defines for the bit fields in the USB_O_TXINTERVAL15
  3938. // register.
  3939. //
  3940. //*****************************************************************************
  3941. #define USB_TXINTERVAL15_TXPOLL_M \
  3942. 0x000000FF // TX Polling
  3943. #define USB_TXINTERVAL15_NAKLMT_M \
  3944. 0x000000FF // NAK Limit
  3945. #define USB_TXINTERVAL15_NAKLMT_S \
  3946. 0
  3947. #define USB_TXINTERVAL15_TXPOLL_S \
  3948. 0
  3949. //*****************************************************************************
  3950. //
  3951. // The following are defines for the bit fields in the USB_O_RXTYPE15 register.
  3952. //
  3953. //*****************************************************************************
  3954. #define USB_RXTYPE15_SPEED_M 0x000000C0 // Operating Speed
  3955. #define USB_RXTYPE15_SPEED_DFLT 0x00000000 // Default
  3956. #define USB_RXTYPE15_SPEED_FULL 0x00000080 // Full
  3957. #define USB_RXTYPE15_SPEED_LOW 0x000000C0 // Low
  3958. #define USB_RXTYPE15_PROTO_M 0x00000030 // Protocol
  3959. #define USB_RXTYPE15_PROTO_CTRL 0x00000000 // Control
  3960. #define USB_RXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
  3961. #define USB_RXTYPE15_PROTO_BULK 0x00000020 // Bulk
  3962. #define USB_RXTYPE15_PROTO_INT 0x00000030 // Interrupt
  3963. #define USB_RXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
  3964. #define USB_RXTYPE15_TEP_S 0
  3965. //*****************************************************************************
  3966. //
  3967. // The following are defines for the bit fields in the USB_O_RXINTERVAL15
  3968. // register.
  3969. //
  3970. //*****************************************************************************
  3971. #define USB_RXINTERVAL15_TXPOLL_M \
  3972. 0x000000FF // RX Polling
  3973. #define USB_RXINTERVAL15_NAKLMT_M \
  3974. 0x000000FF // NAK Limit
  3975. #define USB_RXINTERVAL15_TXPOLL_S \
  3976. 0
  3977. #define USB_RXINTERVAL15_NAKLMT_S \
  3978. 0
  3979. //*****************************************************************************
  3980. //
  3981. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
  3982. // register.
  3983. //
  3984. //*****************************************************************************
  3985. #define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
  3986. #define USB_RQPKTCOUNT1_S 0
  3987. //*****************************************************************************
  3988. //
  3989. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
  3990. // register.
  3991. //
  3992. //*****************************************************************************
  3993. #define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
  3994. #define USB_RQPKTCOUNT2_S 0
  3995. //*****************************************************************************
  3996. //
  3997. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
  3998. // register.
  3999. //
  4000. //*****************************************************************************
  4001. #define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
  4002. #define USB_RQPKTCOUNT3_S 0
  4003. //*****************************************************************************
  4004. //
  4005. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
  4006. // register.
  4007. //
  4008. //*****************************************************************************
  4009. #define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4010. #define USB_RQPKTCOUNT4_COUNT_S 0
  4011. //*****************************************************************************
  4012. //
  4013. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
  4014. // register.
  4015. //
  4016. //*****************************************************************************
  4017. #define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4018. #define USB_RQPKTCOUNT5_COUNT_S 0
  4019. //*****************************************************************************
  4020. //
  4021. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
  4022. // register.
  4023. //
  4024. //*****************************************************************************
  4025. #define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4026. #define USB_RQPKTCOUNT6_COUNT_S 0
  4027. //*****************************************************************************
  4028. //
  4029. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
  4030. // register.
  4031. //
  4032. //*****************************************************************************
  4033. #define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4034. #define USB_RQPKTCOUNT7_COUNT_S 0
  4035. //*****************************************************************************
  4036. //
  4037. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT8
  4038. // register.
  4039. //
  4040. //*****************************************************************************
  4041. #define USB_RQPKTCOUNT8_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4042. #define USB_RQPKTCOUNT8_COUNT_S 0
  4043. //*****************************************************************************
  4044. //
  4045. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT9
  4046. // register.
  4047. //
  4048. //*****************************************************************************
  4049. #define USB_RQPKTCOUNT9_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  4050. #define USB_RQPKTCOUNT9_COUNT_S 0
  4051. //*****************************************************************************
  4052. //
  4053. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT10
  4054. // register.
  4055. //
  4056. //*****************************************************************************
  4057. #define USB_RQPKTCOUNT10_COUNT_M \
  4058. 0x0000FFFF // Block Transfer Packet Count
  4059. #define USB_RQPKTCOUNT10_COUNT_S \
  4060. 0
  4061. //*****************************************************************************
  4062. //
  4063. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT11
  4064. // register.
  4065. //
  4066. //*****************************************************************************
  4067. #define USB_RQPKTCOUNT11_COUNT_M \
  4068. 0x0000FFFF // Block Transfer Packet Count
  4069. #define USB_RQPKTCOUNT11_COUNT_S \
  4070. 0
  4071. //*****************************************************************************
  4072. //
  4073. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT12
  4074. // register.
  4075. //
  4076. //*****************************************************************************
  4077. #define USB_RQPKTCOUNT12_COUNT_M \
  4078. 0x0000FFFF // Block Transfer Packet Count
  4079. #define USB_RQPKTCOUNT12_COUNT_S \
  4080. 0
  4081. //*****************************************************************************
  4082. //
  4083. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT13
  4084. // register.
  4085. //
  4086. //*****************************************************************************
  4087. #define USB_RQPKTCOUNT13_COUNT_M \
  4088. 0x0000FFFF // Block Transfer Packet Count
  4089. #define USB_RQPKTCOUNT13_COUNT_S \
  4090. 0
  4091. //*****************************************************************************
  4092. //
  4093. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT14
  4094. // register.
  4095. //
  4096. //*****************************************************************************
  4097. #define USB_RQPKTCOUNT14_COUNT_M \
  4098. 0x0000FFFF // Block Transfer Packet Count
  4099. #define USB_RQPKTCOUNT14_COUNT_S \
  4100. 0
  4101. //*****************************************************************************
  4102. //
  4103. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT15
  4104. // register.
  4105. //
  4106. //*****************************************************************************
  4107. #define USB_RQPKTCOUNT15_COUNT_M \
  4108. 0x0000FFFF // Block Transfer Packet Count
  4109. #define USB_RQPKTCOUNT15_COUNT_S \
  4110. 0
  4111. //*****************************************************************************
  4112. //
  4113. // The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
  4114. // register.
  4115. //
  4116. //*****************************************************************************
  4117. #define USB_RXDPKTBUFDIS_EP15 0x00008000 // EP15 RX Double-Packet Buffer
  4118. // Disable
  4119. #define USB_RXDPKTBUFDIS_EP14 0x00004000 // EP14 RX Double-Packet Buffer
  4120. // Disable
  4121. #define USB_RXDPKTBUFDIS_EP13 0x00002000 // EP13 RX Double-Packet Buffer
  4122. // Disable
  4123. #define USB_RXDPKTBUFDIS_EP12 0x00001000 // EP12 RX Double-Packet Buffer
  4124. // Disable
  4125. #define USB_RXDPKTBUFDIS_EP11 0x00000800 // EP11 RX Double-Packet Buffer
  4126. // Disable
  4127. #define USB_RXDPKTBUFDIS_EP10 0x00000400 // EP10 RX Double-Packet Buffer
  4128. // Disable
  4129. #define USB_RXDPKTBUFDIS_EP9 0x00000200 // EP9 RX Double-Packet Buffer
  4130. // Disable
  4131. #define USB_RXDPKTBUFDIS_EP8 0x00000100 // EP8 RX Double-Packet Buffer
  4132. // Disable
  4133. #define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
  4134. // Disable
  4135. #define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
  4136. // Disable
  4137. #define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
  4138. // Disable
  4139. #define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
  4140. // Disable
  4141. #define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
  4142. // Disable
  4143. #define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
  4144. // Disable
  4145. #define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
  4146. // Disable
  4147. //*****************************************************************************
  4148. //
  4149. // The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
  4150. // register.
  4151. //
  4152. //*****************************************************************************
  4153. #define USB_TXDPKTBUFDIS_EP15 0x00008000 // EP15 TX Double-Packet Buffer
  4154. // Disable
  4155. #define USB_TXDPKTBUFDIS_EP14 0x00004000 // EP14 TX Double-Packet Buffer
  4156. // Disable
  4157. #define USB_TXDPKTBUFDIS_EP13 0x00002000 // EP13 TX Double-Packet Buffer
  4158. // Disable
  4159. #define USB_TXDPKTBUFDIS_EP12 0x00001000 // EP12 TX Double-Packet Buffer
  4160. // Disable
  4161. #define USB_TXDPKTBUFDIS_EP11 0x00000800 // EP11 TX Double-Packet Buffer
  4162. // Disable
  4163. #define USB_TXDPKTBUFDIS_EP10 0x00000400 // EP10 TX Double-Packet Buffer
  4164. // Disable
  4165. #define USB_TXDPKTBUFDIS_EP9 0x00000200 // EP9 TX Double-Packet Buffer
  4166. // Disable
  4167. #define USB_TXDPKTBUFDIS_EP8 0x00000100 // EP8 TX Double-Packet Buffer
  4168. // Disable
  4169. #define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
  4170. // Disable
  4171. #define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
  4172. // Disable
  4173. #define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
  4174. // Disable
  4175. #define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
  4176. // Disable
  4177. #define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
  4178. // Disable
  4179. #define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
  4180. // Disable
  4181. #define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
  4182. // Disable
  4183. //*****************************************************************************
  4184. //
  4185. // The following are defines for the bit fields in the USB_O_EPC register.
  4186. //
  4187. //*****************************************************************************
  4188. #define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
  4189. #define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
  4190. #define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
  4191. #define USB_EPC_PFLTACT_LOW 0x00000200 // Low
  4192. #define USB_EPC_PFLTACT_HIGH 0x00000300 // High
  4193. #define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
  4194. #define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
  4195. #define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
  4196. #define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
  4197. #define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
  4198. // Configuration
  4199. #define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
  4200. #define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
  4201. #define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
  4202. #define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
  4203. //*****************************************************************************
  4204. //
  4205. // The following are defines for the bit fields in the USB_O_EPCRIS register.
  4206. //
  4207. //*****************************************************************************
  4208. #define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
  4209. //*****************************************************************************
  4210. //
  4211. // The following are defines for the bit fields in the USB_O_EPCIM register.
  4212. //
  4213. //*****************************************************************************
  4214. #define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
  4215. //*****************************************************************************
  4216. //
  4217. // The following are defines for the bit fields in the USB_O_EPCISC register.
  4218. //
  4219. //*****************************************************************************
  4220. #define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
  4221. // and Clear
  4222. //*****************************************************************************
  4223. //
  4224. // The following are defines for the bit fields in the USB_O_DRRIS register.
  4225. //
  4226. //*****************************************************************************
  4227. #define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
  4228. //*****************************************************************************
  4229. //
  4230. // The following are defines for the bit fields in the USB_O_DRIM register.
  4231. //
  4232. //*****************************************************************************
  4233. #define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
  4234. //*****************************************************************************
  4235. //
  4236. // The following are defines for the bit fields in the USB_O_DRISC register.
  4237. //
  4238. //*****************************************************************************
  4239. #define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
  4240. // Clear
  4241. //*****************************************************************************
  4242. //
  4243. // The following are defines for the bit fields in the USB_O_GPCS register.
  4244. //
  4245. //*****************************************************************************
  4246. #define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
  4247. #define USB_GPCS_DEVMOD 0x00000001 // Device Mode
  4248. //*****************************************************************************
  4249. //
  4250. // The following are defines for the bit fields in the USB_O_VDC register.
  4251. //
  4252. //*****************************************************************************
  4253. #define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
  4254. //*****************************************************************************
  4255. //
  4256. // The following are defines for the bit fields in the USB_O_VDCRIS register.
  4257. //
  4258. //*****************************************************************************
  4259. #define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
  4260. //*****************************************************************************
  4261. //
  4262. // The following are defines for the bit fields in the USB_O_VDCIM register.
  4263. //
  4264. //*****************************************************************************
  4265. #define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
  4266. //*****************************************************************************
  4267. //
  4268. // The following are defines for the bit fields in the USB_O_VDCISC register.
  4269. //
  4270. //*****************************************************************************
  4271. #define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
  4272. // Clear
  4273. //*****************************************************************************
  4274. //
  4275. // The following are defines for the bit fields in the USB_O_IDVRIS register.
  4276. //
  4277. //*****************************************************************************
  4278. #define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
  4279. // Status
  4280. //*****************************************************************************
  4281. //
  4282. // The following are defines for the bit fields in the USB_O_IDVIM register.
  4283. //
  4284. //*****************************************************************************
  4285. #define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
  4286. //*****************************************************************************
  4287. //
  4288. // The following are defines for the bit fields in the USB_O_IDVISC register.
  4289. //
  4290. //*****************************************************************************
  4291. #define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
  4292. // and Clear
  4293. //*****************************************************************************
  4294. //
  4295. // The following are defines for the bit fields in the USB_O_DMASEL register.
  4296. //
  4297. //*****************************************************************************
  4298. #define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
  4299. #define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
  4300. #define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
  4301. #define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
  4302. #define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
  4303. #define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
  4304. #define USB_DMASEL_DMABTX_S 12
  4305. #define USB_DMASEL_DMABRX_S 8
  4306. #define USB_DMASEL_DMAATX_S 4
  4307. #define USB_DMASEL_DMAARX_S 0
  4308. //*****************************************************************************
  4309. //
  4310. // The following definitions are deprecated.
  4311. //
  4312. //*****************************************************************************
  4313. #ifndef DEPRECATED
  4314. //*****************************************************************************
  4315. //
  4316. // The following are deprecated defines for the bit fields in the
  4317. // USB_O_TXFIFOADD register.
  4318. //
  4319. //*****************************************************************************
  4320. #define USB_TXFIFOADD_ADDR_2048 0x00000009 // 2048
  4321. #define USB_TXFIFOADD_ADDR_1024 0x00000008 // 1024
  4322. #define USB_TXFIFOADD_ADDR_512 0x00000007 // 512
  4323. #define USB_TXFIFOADD_ADDR_256 0x00000006 // 256
  4324. #define USB_TXFIFOADD_ADDR_128 0x00000005 // 128
  4325. #define USB_TXFIFOADD_ADDR_64 0x00000004 // 64
  4326. #define USB_TXFIFOADD_ADDR_32 0x00000003 // 32
  4327. #define USB_TXFIFOADD_ADDR_16 0x00000002 // 16
  4328. #define USB_TXFIFOADD_ADDR_8 0x00000001 // 8
  4329. #define USB_TXFIFOADD_ADDR_0 0x00000000 // 0
  4330. //*****************************************************************************
  4331. //
  4332. // The following are deprecated defines for the bit fields in the
  4333. // USB_O_RXFIFOADD register.
  4334. //
  4335. //*****************************************************************************
  4336. #define USB_RXFIFOADD_ADDR_2048 0x00000009 // 2048
  4337. #define USB_RXFIFOADD_ADDR_1024 0x00000008 // 1024
  4338. #define USB_RXFIFOADD_ADDR_512 0x00000007 // 512
  4339. #define USB_RXFIFOADD_ADDR_256 0x00000006 // 256
  4340. #define USB_RXFIFOADD_ADDR_128 0x00000005 // 128
  4341. #define USB_RXFIFOADD_ADDR_64 0x00000004 // 64
  4342. #define USB_RXFIFOADD_ADDR_32 0x00000003 // 32
  4343. #define USB_RXFIFOADD_ADDR_16 0x00000002 // 16
  4344. #define USB_RXFIFOADD_ADDR_8 0x00000001 // 8
  4345. #define USB_RXFIFOADD_ADDR_0 0x00000000 // 0
  4346. //*****************************************************************************
  4347. //
  4348. // The following are the USB revision ID's for diferent EVMS
  4349. //
  4350. //*****************************************************************************
  4351. #define USB_REV_AM335X 2
  4352. #define USB_REV_AM1808 1
  4353. #endif
  4354. #endif // __HW_USB_H__