tm4c129xnczad.h 919 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263
  1. //*****************************************************************************
  2. //
  3. // tm4c129xnczad.h - TM4C129XNCZAD Register Definitions
  4. //
  5. // Copyright (c) 2013-2014 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __TM4C129XNCZAD_H__
  40. #define __TM4C129XNCZAD_H__
  41. //*****************************************************************************
  42. //
  43. // Interrupt assignments
  44. //
  45. //*****************************************************************************
  46. #define INT_GPIOA 16 // GPIO Port A
  47. #define INT_GPIOB 17 // GPIO Port B
  48. #define INT_GPIOC 18 // GPIO Port C
  49. #define INT_GPIOD 19 // GPIO Port D
  50. #define INT_GPIOE 20 // GPIO Port E
  51. #define INT_UART0 21 // UART0
  52. #define INT_UART1 22 // UART1
  53. #define INT_SSI0 23 // SSI0
  54. #define INT_I2C0 24 // I2C0
  55. #define INT_PWM0_FAULT 25 // PWM Fault
  56. #define INT_PWM0_0 26 // PWM Generator 0
  57. #define INT_PWM0_1 27 // PWM Generator 1
  58. #define INT_PWM0_2 28 // PWM Generator 2
  59. #define INT_QEI0 29 // QEI0
  60. #define INT_ADC0SS0 30 // ADC0 Sequence 0
  61. #define INT_ADC0SS1 31 // ADC0 Sequence 1
  62. #define INT_ADC0SS2 32 // ADC0 Sequence 2
  63. #define INT_ADC0SS3 33 // ADC0 Sequence 3
  64. #define INT_WATCHDOG 34 // Watchdog Timers 0 and 1
  65. #define INT_TIMER0A 35 // 16/32-Bit Timer 0A
  66. #define INT_TIMER0B 36 // 16/32-Bit Timer 0B
  67. #define INT_TIMER1A 37 // 16/32-Bit Timer 1A
  68. #define INT_TIMER1B 38 // 16/32-Bit Timer 1B
  69. #define INT_TIMER2A 39 // 16/32-Bit Timer 2A
  70. #define INT_TIMER2B 40 // 16/32-Bit Timer 2B
  71. #define INT_COMP0 41 // Analog Comparator 0
  72. #define INT_COMP1 42 // Analog Comparator 1
  73. #define INT_COMP2 43 // Analog Comparator 2
  74. #define INT_SYSCTL 44 // System Control
  75. #define INT_FLASH 45 // Flash Memory Control
  76. #define INT_GPIOF 46 // GPIO Port F
  77. #define INT_GPIOG 47 // GPIO Port G
  78. #define INT_GPIOH 48 // GPIO Port H
  79. #define INT_UART2 49 // UART2
  80. #define INT_SSI1 50 // SSI1
  81. #define INT_TIMER3A 51 // 16/32-Bit Timer 3A
  82. #define INT_TIMER3B 52 // 16/32-Bit Timer 3B
  83. #define INT_I2C1 53 // I2C1
  84. #define INT_CAN0 54 // CAN 0
  85. #define INT_CAN1 55 // CAN1
  86. #define INT_EMAC0 56 // Ethernet MAC
  87. #define INT_HIBERNATE 57 // HIB
  88. #define INT_USB0 58 // USB MAC
  89. #define INT_PWM0_3 59 // PWM Generator 3
  90. #define INT_UDMA 60 // uDMA 0 Software
  91. #define INT_UDMAERR 61 // uDMA 0 Error
  92. #define INT_ADC1SS0 62 // ADC1 Sequence 0
  93. #define INT_ADC1SS1 63 // ADC1 Sequence 1
  94. #define INT_ADC1SS2 64 // ADC1 Sequence 2
  95. #define INT_ADC1SS3 65 // ADC1 Sequence 3
  96. #define INT_EPI0 66 // EPI 0
  97. #define INT_GPIOJ 67 // GPIO Port J
  98. #define INT_GPIOK 68 // GPIO Port K
  99. #define INT_GPIOL 69 // GPIO Port L
  100. #define INT_SSI2 70 // SSI 2
  101. #define INT_SSI3 71 // SSI 3
  102. #define INT_UART3 72 // UART 3
  103. #define INT_UART4 73 // UART 4
  104. #define INT_UART5 74 // UART 5
  105. #define INT_UART6 75 // UART 6
  106. #define INT_UART7 76 // UART 7
  107. #define INT_I2C2 77 // I2C 2
  108. #define INT_I2C3 78 // I2C 3
  109. #define INT_TIMER4A 79 // Timer 4A
  110. #define INT_TIMER4B 80 // Timer 4B
  111. #define INT_TIMER5A 81 // Timer 5A
  112. #define INT_TIMER5B 82 // Timer 5B
  113. #define INT_SYSEXC 83 // Floating-Point Exception
  114. // (imprecise)
  115. #define INT_I2C4 86 // I2C 4
  116. #define INT_I2C5 87 // I2C 5
  117. #define INT_GPIOM 88 // GPIO Port M
  118. #define INT_GPION 89 // GPIO Port N
  119. #define INT_TAMPER0 91 // Tamper
  120. #define INT_GPIOP0 92 // GPIO Port P (Summary or P0)
  121. #define INT_GPIOP1 93 // GPIO Port P1
  122. #define INT_GPIOP2 94 // GPIO Port P2
  123. #define INT_GPIOP3 95 // GPIO Port P3
  124. #define INT_GPIOP4 96 // GPIO Port P4
  125. #define INT_GPIOP5 97 // GPIO Port P5
  126. #define INT_GPIOP6 98 // GPIO Port P6
  127. #define INT_GPIOP7 99 // GPIO Port P7
  128. #define INT_GPIOQ0 100 // GPIO Port Q (Summary or Q0)
  129. #define INT_GPIOQ1 101 // GPIO Port Q1
  130. #define INT_GPIOQ2 102 // GPIO Port Q2
  131. #define INT_GPIOQ3 103 // GPIO Port Q3
  132. #define INT_GPIOQ4 104 // GPIO Port Q4
  133. #define INT_GPIOQ5 105 // GPIO Port Q5
  134. #define INT_GPIOQ6 106 // GPIO Port Q6
  135. #define INT_GPIOQ7 107 // GPIO Port Q7
  136. #define INT_GPIOR 108 // GPIO Port R
  137. #define INT_GPIOS 109 // GPIO Port S
  138. #define INT_SHA0 110 // SHA/MD5
  139. #define INT_AES0 111 // AES
  140. #define INT_DES0 112 // DES
  141. #define INT_LCD0 113 // LCD
  142. #define INT_TIMER6A 114 // 16/32-Bit Timer 6A
  143. #define INT_TIMER6B 115 // 16/32-Bit Timer 6B
  144. #define INT_TIMER7A 116 // 16/32-Bit Timer 7A
  145. #define INT_TIMER7B 117 // 16/32-Bit Timer 7B
  146. #define INT_I2C6 118 // I2C 6
  147. #define INT_I2C7 119 // I2C 7
  148. #define INT_ONEWIRE0 121 // 1-Wire
  149. #define INT_I2C8 125 // I2C 8
  150. #define INT_I2C9 126 // I2C 9
  151. #define INT_GPIOT 127 // GPIO T
  152. //*****************************************************************************
  153. //
  154. // Watchdog Timer registers (WATCHDOG0)
  155. //
  156. //*****************************************************************************
  157. #define WATCHDOG0_LOAD_R (*((volatile uint32_t *)0x40000000))
  158. #define WATCHDOG0_VALUE_R (*((volatile uint32_t *)0x40000004))
  159. #define WATCHDOG0_CTL_R (*((volatile uint32_t *)0x40000008))
  160. #define WATCHDOG0_ICR_R (*((volatile uint32_t *)0x4000000C))
  161. #define WATCHDOG0_RIS_R (*((volatile uint32_t *)0x40000010))
  162. #define WATCHDOG0_MIS_R (*((volatile uint32_t *)0x40000014))
  163. #define WATCHDOG0_TEST_R (*((volatile uint32_t *)0x40000418))
  164. #define WATCHDOG0_LOCK_R (*((volatile uint32_t *)0x40000C00))
  165. //*****************************************************************************
  166. //
  167. // Watchdog Timer registers (WATCHDOG1)
  168. //
  169. //*****************************************************************************
  170. #define WATCHDOG1_LOAD_R (*((volatile uint32_t *)0x40001000))
  171. #define WATCHDOG1_VALUE_R (*((volatile uint32_t *)0x40001004))
  172. #define WATCHDOG1_CTL_R (*((volatile uint32_t *)0x40001008))
  173. #define WATCHDOG1_ICR_R (*((volatile uint32_t *)0x4000100C))
  174. #define WATCHDOG1_RIS_R (*((volatile uint32_t *)0x40001010))
  175. #define WATCHDOG1_MIS_R (*((volatile uint32_t *)0x40001014))
  176. #define WATCHDOG1_TEST_R (*((volatile uint32_t *)0x40001418))
  177. #define WATCHDOG1_LOCK_R (*((volatile uint32_t *)0x40001C00))
  178. //*****************************************************************************
  179. //
  180. // SSI registers (SSI0)
  181. //
  182. //*****************************************************************************
  183. #define SSI0_CR0_R (*((volatile uint32_t *)0x40008000))
  184. #define SSI0_CR1_R (*((volatile uint32_t *)0x40008004))
  185. #define SSI0_DR_R (*((volatile uint32_t *)0x40008008))
  186. #define SSI0_SR_R (*((volatile uint32_t *)0x4000800C))
  187. #define SSI0_CPSR_R (*((volatile uint32_t *)0x40008010))
  188. #define SSI0_IM_R (*((volatile uint32_t *)0x40008014))
  189. #define SSI0_RIS_R (*((volatile uint32_t *)0x40008018))
  190. #define SSI0_MIS_R (*((volatile uint32_t *)0x4000801C))
  191. #define SSI0_ICR_R (*((volatile uint32_t *)0x40008020))
  192. #define SSI0_DMACTL_R (*((volatile uint32_t *)0x40008024))
  193. #define SSI0_PP_R (*((volatile uint32_t *)0x40008FC0))
  194. #define SSI0_CC_R (*((volatile uint32_t *)0x40008FC8))
  195. //*****************************************************************************
  196. //
  197. // SSI registers (SSI1)
  198. //
  199. //*****************************************************************************
  200. #define SSI1_CR0_R (*((volatile uint32_t *)0x40009000))
  201. #define SSI1_CR1_R (*((volatile uint32_t *)0x40009004))
  202. #define SSI1_DR_R (*((volatile uint32_t *)0x40009008))
  203. #define SSI1_SR_R (*((volatile uint32_t *)0x4000900C))
  204. #define SSI1_CPSR_R (*((volatile uint32_t *)0x40009010))
  205. #define SSI1_IM_R (*((volatile uint32_t *)0x40009014))
  206. #define SSI1_RIS_R (*((volatile uint32_t *)0x40009018))
  207. #define SSI1_MIS_R (*((volatile uint32_t *)0x4000901C))
  208. #define SSI1_ICR_R (*((volatile uint32_t *)0x40009020))
  209. #define SSI1_DMACTL_R (*((volatile uint32_t *)0x40009024))
  210. #define SSI1_PP_R (*((volatile uint32_t *)0x40009FC0))
  211. #define SSI1_CC_R (*((volatile uint32_t *)0x40009FC8))
  212. //*****************************************************************************
  213. //
  214. // SSI registers (SSI2)
  215. //
  216. //*****************************************************************************
  217. #define SSI2_CR0_R (*((volatile uint32_t *)0x4000A000))
  218. #define SSI2_CR1_R (*((volatile uint32_t *)0x4000A004))
  219. #define SSI2_DR_R (*((volatile uint32_t *)0x4000A008))
  220. #define SSI2_SR_R (*((volatile uint32_t *)0x4000A00C))
  221. #define SSI2_CPSR_R (*((volatile uint32_t *)0x4000A010))
  222. #define SSI2_IM_R (*((volatile uint32_t *)0x4000A014))
  223. #define SSI2_RIS_R (*((volatile uint32_t *)0x4000A018))
  224. #define SSI2_MIS_R (*((volatile uint32_t *)0x4000A01C))
  225. #define SSI2_ICR_R (*((volatile uint32_t *)0x4000A020))
  226. #define SSI2_DMACTL_R (*((volatile uint32_t *)0x4000A024))
  227. #define SSI2_PP_R (*((volatile uint32_t *)0x4000AFC0))
  228. #define SSI2_CC_R (*((volatile uint32_t *)0x4000AFC8))
  229. //*****************************************************************************
  230. //
  231. // SSI registers (SSI3)
  232. //
  233. //*****************************************************************************
  234. #define SSI3_CR0_R (*((volatile uint32_t *)0x4000B000))
  235. #define SSI3_CR1_R (*((volatile uint32_t *)0x4000B004))
  236. #define SSI3_DR_R (*((volatile uint32_t *)0x4000B008))
  237. #define SSI3_SR_R (*((volatile uint32_t *)0x4000B00C))
  238. #define SSI3_CPSR_R (*((volatile uint32_t *)0x4000B010))
  239. #define SSI3_IM_R (*((volatile uint32_t *)0x4000B014))
  240. #define SSI3_RIS_R (*((volatile uint32_t *)0x4000B018))
  241. #define SSI3_MIS_R (*((volatile uint32_t *)0x4000B01C))
  242. #define SSI3_ICR_R (*((volatile uint32_t *)0x4000B020))
  243. #define SSI3_DMACTL_R (*((volatile uint32_t *)0x4000B024))
  244. #define SSI3_PP_R (*((volatile uint32_t *)0x4000BFC0))
  245. #define SSI3_CC_R (*((volatile uint32_t *)0x4000BFC8))
  246. //*****************************************************************************
  247. //
  248. // UART registers (UART0)
  249. //
  250. //*****************************************************************************
  251. #define UART0_DR_R (*((volatile uint32_t *)0x4000C000))
  252. #define UART0_RSR_R (*((volatile uint32_t *)0x4000C004))
  253. #define UART0_ECR_R (*((volatile uint32_t *)0x4000C004))
  254. #define UART0_FR_R (*((volatile uint32_t *)0x4000C018))
  255. #define UART0_ILPR_R (*((volatile uint32_t *)0x4000C020))
  256. #define UART0_IBRD_R (*((volatile uint32_t *)0x4000C024))
  257. #define UART0_FBRD_R (*((volatile uint32_t *)0x4000C028))
  258. #define UART0_LCRH_R (*((volatile uint32_t *)0x4000C02C))
  259. #define UART0_CTL_R (*((volatile uint32_t *)0x4000C030))
  260. #define UART0_IFLS_R (*((volatile uint32_t *)0x4000C034))
  261. #define UART0_IM_R (*((volatile uint32_t *)0x4000C038))
  262. #define UART0_RIS_R (*((volatile uint32_t *)0x4000C03C))
  263. #define UART0_MIS_R (*((volatile uint32_t *)0x4000C040))
  264. #define UART0_ICR_R (*((volatile uint32_t *)0x4000C044))
  265. #define UART0_DMACTL_R (*((volatile uint32_t *)0x4000C048))
  266. #define UART0_9BITADDR_R (*((volatile uint32_t *)0x4000C0A4))
  267. #define UART0_9BITAMASK_R (*((volatile uint32_t *)0x4000C0A8))
  268. #define UART0_PP_R (*((volatile uint32_t *)0x4000CFC0))
  269. #define UART0_CC_R (*((volatile uint32_t *)0x4000CFC8))
  270. //*****************************************************************************
  271. //
  272. // UART registers (UART1)
  273. //
  274. //*****************************************************************************
  275. #define UART1_DR_R (*((volatile uint32_t *)0x4000D000))
  276. #define UART1_RSR_R (*((volatile uint32_t *)0x4000D004))
  277. #define UART1_ECR_R (*((volatile uint32_t *)0x4000D004))
  278. #define UART1_FR_R (*((volatile uint32_t *)0x4000D018))
  279. #define UART1_ILPR_R (*((volatile uint32_t *)0x4000D020))
  280. #define UART1_IBRD_R (*((volatile uint32_t *)0x4000D024))
  281. #define UART1_FBRD_R (*((volatile uint32_t *)0x4000D028))
  282. #define UART1_LCRH_R (*((volatile uint32_t *)0x4000D02C))
  283. #define UART1_CTL_R (*((volatile uint32_t *)0x4000D030))
  284. #define UART1_IFLS_R (*((volatile uint32_t *)0x4000D034))
  285. #define UART1_IM_R (*((volatile uint32_t *)0x4000D038))
  286. #define UART1_RIS_R (*((volatile uint32_t *)0x4000D03C))
  287. #define UART1_MIS_R (*((volatile uint32_t *)0x4000D040))
  288. #define UART1_ICR_R (*((volatile uint32_t *)0x4000D044))
  289. #define UART1_DMACTL_R (*((volatile uint32_t *)0x4000D048))
  290. #define UART1_9BITADDR_R (*((volatile uint32_t *)0x4000D0A4))
  291. #define UART1_9BITAMASK_R (*((volatile uint32_t *)0x4000D0A8))
  292. #define UART1_PP_R (*((volatile uint32_t *)0x4000DFC0))
  293. #define UART1_CC_R (*((volatile uint32_t *)0x4000DFC8))
  294. //*****************************************************************************
  295. //
  296. // UART registers (UART2)
  297. //
  298. //*****************************************************************************
  299. #define UART2_DR_R (*((volatile uint32_t *)0x4000E000))
  300. #define UART2_RSR_R (*((volatile uint32_t *)0x4000E004))
  301. #define UART2_ECR_R (*((volatile uint32_t *)0x4000E004))
  302. #define UART2_FR_R (*((volatile uint32_t *)0x4000E018))
  303. #define UART2_ILPR_R (*((volatile uint32_t *)0x4000E020))
  304. #define UART2_IBRD_R (*((volatile uint32_t *)0x4000E024))
  305. #define UART2_FBRD_R (*((volatile uint32_t *)0x4000E028))
  306. #define UART2_LCRH_R (*((volatile uint32_t *)0x4000E02C))
  307. #define UART2_CTL_R (*((volatile uint32_t *)0x4000E030))
  308. #define UART2_IFLS_R (*((volatile uint32_t *)0x4000E034))
  309. #define UART2_IM_R (*((volatile uint32_t *)0x4000E038))
  310. #define UART2_RIS_R (*((volatile uint32_t *)0x4000E03C))
  311. #define UART2_MIS_R (*((volatile uint32_t *)0x4000E040))
  312. #define UART2_ICR_R (*((volatile uint32_t *)0x4000E044))
  313. #define UART2_DMACTL_R (*((volatile uint32_t *)0x4000E048))
  314. #define UART2_9BITADDR_R (*((volatile uint32_t *)0x4000E0A4))
  315. #define UART2_9BITAMASK_R (*((volatile uint32_t *)0x4000E0A8))
  316. #define UART2_PP_R (*((volatile uint32_t *)0x4000EFC0))
  317. #define UART2_CC_R (*((volatile uint32_t *)0x4000EFC8))
  318. //*****************************************************************************
  319. //
  320. // UART registers (UART3)
  321. //
  322. //*****************************************************************************
  323. #define UART3_DR_R (*((volatile uint32_t *)0x4000F000))
  324. #define UART3_RSR_R (*((volatile uint32_t *)0x4000F004))
  325. #define UART3_ECR_R (*((volatile uint32_t *)0x4000F004))
  326. #define UART3_FR_R (*((volatile uint32_t *)0x4000F018))
  327. #define UART3_ILPR_R (*((volatile uint32_t *)0x4000F020))
  328. #define UART3_IBRD_R (*((volatile uint32_t *)0x4000F024))
  329. #define UART3_FBRD_R (*((volatile uint32_t *)0x4000F028))
  330. #define UART3_LCRH_R (*((volatile uint32_t *)0x4000F02C))
  331. #define UART3_CTL_R (*((volatile uint32_t *)0x4000F030))
  332. #define UART3_IFLS_R (*((volatile uint32_t *)0x4000F034))
  333. #define UART3_IM_R (*((volatile uint32_t *)0x4000F038))
  334. #define UART3_RIS_R (*((volatile uint32_t *)0x4000F03C))
  335. #define UART3_MIS_R (*((volatile uint32_t *)0x4000F040))
  336. #define UART3_ICR_R (*((volatile uint32_t *)0x4000F044))
  337. #define UART3_DMACTL_R (*((volatile uint32_t *)0x4000F048))
  338. #define UART3_9BITADDR_R (*((volatile uint32_t *)0x4000F0A4))
  339. #define UART3_9BITAMASK_R (*((volatile uint32_t *)0x4000F0A8))
  340. #define UART3_PP_R (*((volatile uint32_t *)0x4000FFC0))
  341. #define UART3_CC_R (*((volatile uint32_t *)0x4000FFC8))
  342. //*****************************************************************************
  343. //
  344. // UART registers (UART4)
  345. //
  346. //*****************************************************************************
  347. #define UART4_DR_R (*((volatile uint32_t *)0x40010000))
  348. #define UART4_RSR_R (*((volatile uint32_t *)0x40010004))
  349. #define UART4_ECR_R (*((volatile uint32_t *)0x40010004))
  350. #define UART4_FR_R (*((volatile uint32_t *)0x40010018))
  351. #define UART4_ILPR_R (*((volatile uint32_t *)0x40010020))
  352. #define UART4_IBRD_R (*((volatile uint32_t *)0x40010024))
  353. #define UART4_FBRD_R (*((volatile uint32_t *)0x40010028))
  354. #define UART4_LCRH_R (*((volatile uint32_t *)0x4001002C))
  355. #define UART4_CTL_R (*((volatile uint32_t *)0x40010030))
  356. #define UART4_IFLS_R (*((volatile uint32_t *)0x40010034))
  357. #define UART4_IM_R (*((volatile uint32_t *)0x40010038))
  358. #define UART4_RIS_R (*((volatile uint32_t *)0x4001003C))
  359. #define UART4_MIS_R (*((volatile uint32_t *)0x40010040))
  360. #define UART4_ICR_R (*((volatile uint32_t *)0x40010044))
  361. #define UART4_DMACTL_R (*((volatile uint32_t *)0x40010048))
  362. #define UART4_9BITADDR_R (*((volatile uint32_t *)0x400100A4))
  363. #define UART4_9BITAMASK_R (*((volatile uint32_t *)0x400100A8))
  364. #define UART4_PP_R (*((volatile uint32_t *)0x40010FC0))
  365. #define UART4_CC_R (*((volatile uint32_t *)0x40010FC8))
  366. //*****************************************************************************
  367. //
  368. // UART registers (UART5)
  369. //
  370. //*****************************************************************************
  371. #define UART5_DR_R (*((volatile uint32_t *)0x40011000))
  372. #define UART5_RSR_R (*((volatile uint32_t *)0x40011004))
  373. #define UART5_ECR_R (*((volatile uint32_t *)0x40011004))
  374. #define UART5_FR_R (*((volatile uint32_t *)0x40011018))
  375. #define UART5_ILPR_R (*((volatile uint32_t *)0x40011020))
  376. #define UART5_IBRD_R (*((volatile uint32_t *)0x40011024))
  377. #define UART5_FBRD_R (*((volatile uint32_t *)0x40011028))
  378. #define UART5_LCRH_R (*((volatile uint32_t *)0x4001102C))
  379. #define UART5_CTL_R (*((volatile uint32_t *)0x40011030))
  380. #define UART5_IFLS_R (*((volatile uint32_t *)0x40011034))
  381. #define UART5_IM_R (*((volatile uint32_t *)0x40011038))
  382. #define UART5_RIS_R (*((volatile uint32_t *)0x4001103C))
  383. #define UART5_MIS_R (*((volatile uint32_t *)0x40011040))
  384. #define UART5_ICR_R (*((volatile uint32_t *)0x40011044))
  385. #define UART5_DMACTL_R (*((volatile uint32_t *)0x40011048))
  386. #define UART5_9BITADDR_R (*((volatile uint32_t *)0x400110A4))
  387. #define UART5_9BITAMASK_R (*((volatile uint32_t *)0x400110A8))
  388. #define UART5_PP_R (*((volatile uint32_t *)0x40011FC0))
  389. #define UART5_CC_R (*((volatile uint32_t *)0x40011FC8))
  390. //*****************************************************************************
  391. //
  392. // UART registers (UART6)
  393. //
  394. //*****************************************************************************
  395. #define UART6_DR_R (*((volatile uint32_t *)0x40012000))
  396. #define UART6_RSR_R (*((volatile uint32_t *)0x40012004))
  397. #define UART6_ECR_R (*((volatile uint32_t *)0x40012004))
  398. #define UART6_FR_R (*((volatile uint32_t *)0x40012018))
  399. #define UART6_ILPR_R (*((volatile uint32_t *)0x40012020))
  400. #define UART6_IBRD_R (*((volatile uint32_t *)0x40012024))
  401. #define UART6_FBRD_R (*((volatile uint32_t *)0x40012028))
  402. #define UART6_LCRH_R (*((volatile uint32_t *)0x4001202C))
  403. #define UART6_CTL_R (*((volatile uint32_t *)0x40012030))
  404. #define UART6_IFLS_R (*((volatile uint32_t *)0x40012034))
  405. #define UART6_IM_R (*((volatile uint32_t *)0x40012038))
  406. #define UART6_RIS_R (*((volatile uint32_t *)0x4001203C))
  407. #define UART6_MIS_R (*((volatile uint32_t *)0x40012040))
  408. #define UART6_ICR_R (*((volatile uint32_t *)0x40012044))
  409. #define UART6_DMACTL_R (*((volatile uint32_t *)0x40012048))
  410. #define UART6_9BITADDR_R (*((volatile uint32_t *)0x400120A4))
  411. #define UART6_9BITAMASK_R (*((volatile uint32_t *)0x400120A8))
  412. #define UART6_PP_R (*((volatile uint32_t *)0x40012FC0))
  413. #define UART6_CC_R (*((volatile uint32_t *)0x40012FC8))
  414. //*****************************************************************************
  415. //
  416. // UART registers (UART7)
  417. //
  418. //*****************************************************************************
  419. #define UART7_DR_R (*((volatile uint32_t *)0x40013000))
  420. #define UART7_RSR_R (*((volatile uint32_t *)0x40013004))
  421. #define UART7_ECR_R (*((volatile uint32_t *)0x40013004))
  422. #define UART7_FR_R (*((volatile uint32_t *)0x40013018))
  423. #define UART7_ILPR_R (*((volatile uint32_t *)0x40013020))
  424. #define UART7_IBRD_R (*((volatile uint32_t *)0x40013024))
  425. #define UART7_FBRD_R (*((volatile uint32_t *)0x40013028))
  426. #define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C))
  427. #define UART7_CTL_R (*((volatile uint32_t *)0x40013030))
  428. #define UART7_IFLS_R (*((volatile uint32_t *)0x40013034))
  429. #define UART7_IM_R (*((volatile uint32_t *)0x40013038))
  430. #define UART7_RIS_R (*((volatile uint32_t *)0x4001303C))
  431. #define UART7_MIS_R (*((volatile uint32_t *)0x40013040))
  432. #define UART7_ICR_R (*((volatile uint32_t *)0x40013044))
  433. #define UART7_DMACTL_R (*((volatile uint32_t *)0x40013048))
  434. #define UART7_9BITADDR_R (*((volatile uint32_t *)0x400130A4))
  435. #define UART7_9BITAMASK_R (*((volatile uint32_t *)0x400130A8))
  436. #define UART7_PP_R (*((volatile uint32_t *)0x40013FC0))
  437. #define UART7_CC_R (*((volatile uint32_t *)0x40013FC8))
  438. //*****************************************************************************
  439. //
  440. // I2C registers (I2C0)
  441. //
  442. //*****************************************************************************
  443. #define I2C0_MSA_R (*((volatile uint32_t *)0x40020000))
  444. #define I2C0_MCS_R (*((volatile uint32_t *)0x40020004))
  445. #define I2C0_MDR_R (*((volatile uint32_t *)0x40020008))
  446. #define I2C0_MTPR_R (*((volatile uint32_t *)0x4002000C))
  447. #define I2C0_MIMR_R (*((volatile uint32_t *)0x40020010))
  448. #define I2C0_MRIS_R (*((volatile uint32_t *)0x40020014))
  449. #define I2C0_MMIS_R (*((volatile uint32_t *)0x40020018))
  450. #define I2C0_MICR_R (*((volatile uint32_t *)0x4002001C))
  451. #define I2C0_MCR_R (*((volatile uint32_t *)0x40020020))
  452. #define I2C0_MCLKOCNT_R (*((volatile uint32_t *)0x40020024))
  453. #define I2C0_MBMON_R (*((volatile uint32_t *)0x4002002C))
  454. #define I2C0_MBLEN_R (*((volatile uint32_t *)0x40020030))
  455. #define I2C0_MBCNT_R (*((volatile uint32_t *)0x40020034))
  456. #define I2C0_SOAR_R (*((volatile uint32_t *)0x40020800))
  457. #define I2C0_SCSR_R (*((volatile uint32_t *)0x40020804))
  458. #define I2C0_SDR_R (*((volatile uint32_t *)0x40020808))
  459. #define I2C0_SIMR_R (*((volatile uint32_t *)0x4002080C))
  460. #define I2C0_SRIS_R (*((volatile uint32_t *)0x40020810))
  461. #define I2C0_SMIS_R (*((volatile uint32_t *)0x40020814))
  462. #define I2C0_SICR_R (*((volatile uint32_t *)0x40020818))
  463. #define I2C0_SOAR2_R (*((volatile uint32_t *)0x4002081C))
  464. #define I2C0_SACKCTL_R (*((volatile uint32_t *)0x40020820))
  465. #define I2C0_FIFODATA_R (*((volatile uint32_t *)0x40020F00))
  466. #define I2C0_FIFOCTL_R (*((volatile uint32_t *)0x40020F04))
  467. #define I2C0_FIFOSTATUS_R (*((volatile uint32_t *)0x40020F08))
  468. #define I2C0_PP_R (*((volatile uint32_t *)0x40020FC0))
  469. #define I2C0_PC_R (*((volatile uint32_t *)0x40020FC4))
  470. //*****************************************************************************
  471. //
  472. // I2C registers (I2C1)
  473. //
  474. //*****************************************************************************
  475. #define I2C1_MSA_R (*((volatile uint32_t *)0x40021000))
  476. #define I2C1_MCS_R (*((volatile uint32_t *)0x40021004))
  477. #define I2C1_MDR_R (*((volatile uint32_t *)0x40021008))
  478. #define I2C1_MTPR_R (*((volatile uint32_t *)0x4002100C))
  479. #define I2C1_MIMR_R (*((volatile uint32_t *)0x40021010))
  480. #define I2C1_MRIS_R (*((volatile uint32_t *)0x40021014))
  481. #define I2C1_MMIS_R (*((volatile uint32_t *)0x40021018))
  482. #define I2C1_MICR_R (*((volatile uint32_t *)0x4002101C))
  483. #define I2C1_MCR_R (*((volatile uint32_t *)0x40021020))
  484. #define I2C1_MCLKOCNT_R (*((volatile uint32_t *)0x40021024))
  485. #define I2C1_MBMON_R (*((volatile uint32_t *)0x4002102C))
  486. #define I2C1_MBLEN_R (*((volatile uint32_t *)0x40021030))
  487. #define I2C1_MBCNT_R (*((volatile uint32_t *)0x40021034))
  488. #define I2C1_SOAR_R (*((volatile uint32_t *)0x40021800))
  489. #define I2C1_SCSR_R (*((volatile uint32_t *)0x40021804))
  490. #define I2C1_SDR_R (*((volatile uint32_t *)0x40021808))
  491. #define I2C1_SIMR_R (*((volatile uint32_t *)0x4002180C))
  492. #define I2C1_SRIS_R (*((volatile uint32_t *)0x40021810))
  493. #define I2C1_SMIS_R (*((volatile uint32_t *)0x40021814))
  494. #define I2C1_SICR_R (*((volatile uint32_t *)0x40021818))
  495. #define I2C1_SOAR2_R (*((volatile uint32_t *)0x4002181C))
  496. #define I2C1_SACKCTL_R (*((volatile uint32_t *)0x40021820))
  497. #define I2C1_FIFODATA_R (*((volatile uint32_t *)0x40021F00))
  498. #define I2C1_FIFOCTL_R (*((volatile uint32_t *)0x40021F04))
  499. #define I2C1_FIFOSTATUS_R (*((volatile uint32_t *)0x40021F08))
  500. #define I2C1_PP_R (*((volatile uint32_t *)0x40021FC0))
  501. #define I2C1_PC_R (*((volatile uint32_t *)0x40021FC4))
  502. //*****************************************************************************
  503. //
  504. // I2C registers (I2C2)
  505. //
  506. //*****************************************************************************
  507. #define I2C2_MSA_R (*((volatile uint32_t *)0x40022000))
  508. #define I2C2_MCS_R (*((volatile uint32_t *)0x40022004))
  509. #define I2C2_MDR_R (*((volatile uint32_t *)0x40022008))
  510. #define I2C2_MTPR_R (*((volatile uint32_t *)0x4002200C))
  511. #define I2C2_MIMR_R (*((volatile uint32_t *)0x40022010))
  512. #define I2C2_MRIS_R (*((volatile uint32_t *)0x40022014))
  513. #define I2C2_MMIS_R (*((volatile uint32_t *)0x40022018))
  514. #define I2C2_MICR_R (*((volatile uint32_t *)0x4002201C))
  515. #define I2C2_MCR_R (*((volatile uint32_t *)0x40022020))
  516. #define I2C2_MCLKOCNT_R (*((volatile uint32_t *)0x40022024))
  517. #define I2C2_MBMON_R (*((volatile uint32_t *)0x4002202C))
  518. #define I2C2_MBLEN_R (*((volatile uint32_t *)0x40022030))
  519. #define I2C2_MBCNT_R (*((volatile uint32_t *)0x40022034))
  520. #define I2C2_SOAR_R (*((volatile uint32_t *)0x40022800))
  521. #define I2C2_SCSR_R (*((volatile uint32_t *)0x40022804))
  522. #define I2C2_SDR_R (*((volatile uint32_t *)0x40022808))
  523. #define I2C2_SIMR_R (*((volatile uint32_t *)0x4002280C))
  524. #define I2C2_SRIS_R (*((volatile uint32_t *)0x40022810))
  525. #define I2C2_SMIS_R (*((volatile uint32_t *)0x40022814))
  526. #define I2C2_SICR_R (*((volatile uint32_t *)0x40022818))
  527. #define I2C2_SOAR2_R (*((volatile uint32_t *)0x4002281C))
  528. #define I2C2_SACKCTL_R (*((volatile uint32_t *)0x40022820))
  529. #define I2C2_FIFODATA_R (*((volatile uint32_t *)0x40022F00))
  530. #define I2C2_FIFOCTL_R (*((volatile uint32_t *)0x40022F04))
  531. #define I2C2_FIFOSTATUS_R (*((volatile uint32_t *)0x40022F08))
  532. #define I2C2_PP_R (*((volatile uint32_t *)0x40022FC0))
  533. #define I2C2_PC_R (*((volatile uint32_t *)0x40022FC4))
  534. //*****************************************************************************
  535. //
  536. // I2C registers (I2C3)
  537. //
  538. //*****************************************************************************
  539. #define I2C3_MSA_R (*((volatile uint32_t *)0x40023000))
  540. #define I2C3_MCS_R (*((volatile uint32_t *)0x40023004))
  541. #define I2C3_MDR_R (*((volatile uint32_t *)0x40023008))
  542. #define I2C3_MTPR_R (*((volatile uint32_t *)0x4002300C))
  543. #define I2C3_MIMR_R (*((volatile uint32_t *)0x40023010))
  544. #define I2C3_MRIS_R (*((volatile uint32_t *)0x40023014))
  545. #define I2C3_MMIS_R (*((volatile uint32_t *)0x40023018))
  546. #define I2C3_MICR_R (*((volatile uint32_t *)0x4002301C))
  547. #define I2C3_MCR_R (*((volatile uint32_t *)0x40023020))
  548. #define I2C3_MCLKOCNT_R (*((volatile uint32_t *)0x40023024))
  549. #define I2C3_MBMON_R (*((volatile uint32_t *)0x4002302C))
  550. #define I2C3_MBLEN_R (*((volatile uint32_t *)0x40023030))
  551. #define I2C3_MBCNT_R (*((volatile uint32_t *)0x40023034))
  552. #define I2C3_SOAR_R (*((volatile uint32_t *)0x40023800))
  553. #define I2C3_SCSR_R (*((volatile uint32_t *)0x40023804))
  554. #define I2C3_SDR_R (*((volatile uint32_t *)0x40023808))
  555. #define I2C3_SIMR_R (*((volatile uint32_t *)0x4002380C))
  556. #define I2C3_SRIS_R (*((volatile uint32_t *)0x40023810))
  557. #define I2C3_SMIS_R (*((volatile uint32_t *)0x40023814))
  558. #define I2C3_SICR_R (*((volatile uint32_t *)0x40023818))
  559. #define I2C3_SOAR2_R (*((volatile uint32_t *)0x4002381C))
  560. #define I2C3_SACKCTL_R (*((volatile uint32_t *)0x40023820))
  561. #define I2C3_FIFODATA_R (*((volatile uint32_t *)0x40023F00))
  562. #define I2C3_FIFOCTL_R (*((volatile uint32_t *)0x40023F04))
  563. #define I2C3_FIFOSTATUS_R (*((volatile uint32_t *)0x40023F08))
  564. #define I2C3_PP_R (*((volatile uint32_t *)0x40023FC0))
  565. #define I2C3_PC_R (*((volatile uint32_t *)0x40023FC4))
  566. //*****************************************************************************
  567. //
  568. // PWM registers (PWM0)
  569. //
  570. //*****************************************************************************
  571. #define PWM0_CTL_R (*((volatile uint32_t *)0x40028000))
  572. #define PWM0_SYNC_R (*((volatile uint32_t *)0x40028004))
  573. #define PWM0_ENABLE_R (*((volatile uint32_t *)0x40028008))
  574. #define PWM0_INVERT_R (*((volatile uint32_t *)0x4002800C))
  575. #define PWM0_FAULT_R (*((volatile uint32_t *)0x40028010))
  576. #define PWM0_INTEN_R (*((volatile uint32_t *)0x40028014))
  577. #define PWM0_RIS_R (*((volatile uint32_t *)0x40028018))
  578. #define PWM0_ISC_R (*((volatile uint32_t *)0x4002801C))
  579. #define PWM0_STATUS_R (*((volatile uint32_t *)0x40028020))
  580. #define PWM0_FAULTVAL_R (*((volatile uint32_t *)0x40028024))
  581. #define PWM0_ENUPD_R (*((volatile uint32_t *)0x40028028))
  582. #define PWM0_0_CTL_R (*((volatile uint32_t *)0x40028040))
  583. #define PWM0_0_INTEN_R (*((volatile uint32_t *)0x40028044))
  584. #define PWM0_0_RIS_R (*((volatile uint32_t *)0x40028048))
  585. #define PWM0_0_ISC_R (*((volatile uint32_t *)0x4002804C))
  586. #define PWM0_0_LOAD_R (*((volatile uint32_t *)0x40028050))
  587. #define PWM0_0_COUNT_R (*((volatile uint32_t *)0x40028054))
  588. #define PWM0_0_CMPA_R (*((volatile uint32_t *)0x40028058))
  589. #define PWM0_0_CMPB_R (*((volatile uint32_t *)0x4002805C))
  590. #define PWM0_0_GENA_R (*((volatile uint32_t *)0x40028060))
  591. #define PWM0_0_GENB_R (*((volatile uint32_t *)0x40028064))
  592. #define PWM0_0_DBCTL_R (*((volatile uint32_t *)0x40028068))
  593. #define PWM0_0_DBRISE_R (*((volatile uint32_t *)0x4002806C))
  594. #define PWM0_0_DBFALL_R (*((volatile uint32_t *)0x40028070))
  595. #define PWM0_0_FLTSRC0_R (*((volatile uint32_t *)0x40028074))
  596. #define PWM0_0_FLTSRC1_R (*((volatile uint32_t *)0x40028078))
  597. #define PWM0_0_MINFLTPER_R (*((volatile uint32_t *)0x4002807C))
  598. #define PWM0_1_CTL_R (*((volatile uint32_t *)0x40028080))
  599. #define PWM0_1_INTEN_R (*((volatile uint32_t *)0x40028084))
  600. #define PWM0_1_RIS_R (*((volatile uint32_t *)0x40028088))
  601. #define PWM0_1_ISC_R (*((volatile uint32_t *)0x4002808C))
  602. #define PWM0_1_LOAD_R (*((volatile uint32_t *)0x40028090))
  603. #define PWM0_1_COUNT_R (*((volatile uint32_t *)0x40028094))
  604. #define PWM0_1_CMPA_R (*((volatile uint32_t *)0x40028098))
  605. #define PWM0_1_CMPB_R (*((volatile uint32_t *)0x4002809C))
  606. #define PWM0_1_GENA_R (*((volatile uint32_t *)0x400280A0))
  607. #define PWM0_1_GENB_R (*((volatile uint32_t *)0x400280A4))
  608. #define PWM0_1_DBCTL_R (*((volatile uint32_t *)0x400280A8))
  609. #define PWM0_1_DBRISE_R (*((volatile uint32_t *)0x400280AC))
  610. #define PWM0_1_DBFALL_R (*((volatile uint32_t *)0x400280B0))
  611. #define PWM0_1_FLTSRC0_R (*((volatile uint32_t *)0x400280B4))
  612. #define PWM0_1_FLTSRC1_R (*((volatile uint32_t *)0x400280B8))
  613. #define PWM0_1_MINFLTPER_R (*((volatile uint32_t *)0x400280BC))
  614. #define PWM0_2_CTL_R (*((volatile uint32_t *)0x400280C0))
  615. #define PWM0_2_INTEN_R (*((volatile uint32_t *)0x400280C4))
  616. #define PWM0_2_RIS_R (*((volatile uint32_t *)0x400280C8))
  617. #define PWM0_2_ISC_R (*((volatile uint32_t *)0x400280CC))
  618. #define PWM0_2_LOAD_R (*((volatile uint32_t *)0x400280D0))
  619. #define PWM0_2_COUNT_R (*((volatile uint32_t *)0x400280D4))
  620. #define PWM0_2_CMPA_R (*((volatile uint32_t *)0x400280D8))
  621. #define PWM0_2_CMPB_R (*((volatile uint32_t *)0x400280DC))
  622. #define PWM0_2_GENA_R (*((volatile uint32_t *)0x400280E0))
  623. #define PWM0_2_GENB_R (*((volatile uint32_t *)0x400280E4))
  624. #define PWM0_2_DBCTL_R (*((volatile uint32_t *)0x400280E8))
  625. #define PWM0_2_DBRISE_R (*((volatile uint32_t *)0x400280EC))
  626. #define PWM0_2_DBFALL_R (*((volatile uint32_t *)0x400280F0))
  627. #define PWM0_2_FLTSRC0_R (*((volatile uint32_t *)0x400280F4))
  628. #define PWM0_2_FLTSRC1_R (*((volatile uint32_t *)0x400280F8))
  629. #define PWM0_2_MINFLTPER_R (*((volatile uint32_t *)0x400280FC))
  630. #define PWM0_3_CTL_R (*((volatile uint32_t *)0x40028100))
  631. #define PWM0_3_INTEN_R (*((volatile uint32_t *)0x40028104))
  632. #define PWM0_3_RIS_R (*((volatile uint32_t *)0x40028108))
  633. #define PWM0_3_ISC_R (*((volatile uint32_t *)0x4002810C))
  634. #define PWM0_3_LOAD_R (*((volatile uint32_t *)0x40028110))
  635. #define PWM0_3_COUNT_R (*((volatile uint32_t *)0x40028114))
  636. #define PWM0_3_CMPA_R (*((volatile uint32_t *)0x40028118))
  637. #define PWM0_3_CMPB_R (*((volatile uint32_t *)0x4002811C))
  638. #define PWM0_3_GENA_R (*((volatile uint32_t *)0x40028120))
  639. #define PWM0_3_GENB_R (*((volatile uint32_t *)0x40028124))
  640. #define PWM0_3_DBCTL_R (*((volatile uint32_t *)0x40028128))
  641. #define PWM0_3_DBRISE_R (*((volatile uint32_t *)0x4002812C))
  642. #define PWM0_3_DBFALL_R (*((volatile uint32_t *)0x40028130))
  643. #define PWM0_3_FLTSRC0_R (*((volatile uint32_t *)0x40028134))
  644. #define PWM0_3_FLTSRC1_R (*((volatile uint32_t *)0x40028138))
  645. #define PWM0_3_MINFLTPER_R (*((volatile uint32_t *)0x4002813C))
  646. #define PWM0_0_FLTSEN_R (*((volatile uint32_t *)0x40028800))
  647. #define PWM0_0_FLTSTAT0_R (*((volatile uint32_t *)0x40028804))
  648. #define PWM0_0_FLTSTAT1_R (*((volatile uint32_t *)0x40028808))
  649. #define PWM0_1_FLTSEN_R (*((volatile uint32_t *)0x40028880))
  650. #define PWM0_1_FLTSTAT0_R (*((volatile uint32_t *)0x40028884))
  651. #define PWM0_1_FLTSTAT1_R (*((volatile uint32_t *)0x40028888))
  652. #define PWM0_2_FLTSEN_R (*((volatile uint32_t *)0x40028900))
  653. #define PWM0_2_FLTSTAT0_R (*((volatile uint32_t *)0x40028904))
  654. #define PWM0_2_FLTSTAT1_R (*((volatile uint32_t *)0x40028908))
  655. #define PWM0_3_FLTSEN_R (*((volatile uint32_t *)0x40028980))
  656. #define PWM0_3_FLTSTAT0_R (*((volatile uint32_t *)0x40028984))
  657. #define PWM0_3_FLTSTAT1_R (*((volatile uint32_t *)0x40028988))
  658. #define PWM0_PP_R (*((volatile uint32_t *)0x40028FC0))
  659. #define PWM0_CC_R (*((volatile uint32_t *)0x40028FC8))
  660. //*****************************************************************************
  661. //
  662. // QEI registers (QEI0)
  663. //
  664. //*****************************************************************************
  665. #define QEI0_CTL_R (*((volatile uint32_t *)0x4002C000))
  666. #define QEI0_STAT_R (*((volatile uint32_t *)0x4002C004))
  667. #define QEI0_POS_R (*((volatile uint32_t *)0x4002C008))
  668. #define QEI0_MAXPOS_R (*((volatile uint32_t *)0x4002C00C))
  669. #define QEI0_LOAD_R (*((volatile uint32_t *)0x4002C010))
  670. #define QEI0_TIME_R (*((volatile uint32_t *)0x4002C014))
  671. #define QEI0_COUNT_R (*((volatile uint32_t *)0x4002C018))
  672. #define QEI0_SPEED_R (*((volatile uint32_t *)0x4002C01C))
  673. #define QEI0_INTEN_R (*((volatile uint32_t *)0x4002C020))
  674. #define QEI0_RIS_R (*((volatile uint32_t *)0x4002C024))
  675. #define QEI0_ISC_R (*((volatile uint32_t *)0x4002C028))
  676. //*****************************************************************************
  677. //
  678. // Timer registers (TIMER0)
  679. //
  680. //*****************************************************************************
  681. #define TIMER0_CFG_R (*((volatile uint32_t *)0x40030000))
  682. #define TIMER0_TAMR_R (*((volatile uint32_t *)0x40030004))
  683. #define TIMER0_TBMR_R (*((volatile uint32_t *)0x40030008))
  684. #define TIMER0_CTL_R (*((volatile uint32_t *)0x4003000C))
  685. #define TIMER0_SYNC_R (*((volatile uint32_t *)0x40030010))
  686. #define TIMER0_IMR_R (*((volatile uint32_t *)0x40030018))
  687. #define TIMER0_RIS_R (*((volatile uint32_t *)0x4003001C))
  688. #define TIMER0_MIS_R (*((volatile uint32_t *)0x40030020))
  689. #define TIMER0_ICR_R (*((volatile uint32_t *)0x40030024))
  690. #define TIMER0_TAILR_R (*((volatile uint32_t *)0x40030028))
  691. #define TIMER0_TBILR_R (*((volatile uint32_t *)0x4003002C))
  692. #define TIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40030030))
  693. #define TIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40030034))
  694. #define TIMER0_TAPR_R (*((volatile uint32_t *)0x40030038))
  695. #define TIMER0_TBPR_R (*((volatile uint32_t *)0x4003003C))
  696. #define TIMER0_TAPMR_R (*((volatile uint32_t *)0x40030040))
  697. #define TIMER0_TBPMR_R (*((volatile uint32_t *)0x40030044))
  698. #define TIMER0_TAR_R (*((volatile uint32_t *)0x40030048))
  699. #define TIMER0_TBR_R (*((volatile uint32_t *)0x4003004C))
  700. #define TIMER0_TAV_R (*((volatile uint32_t *)0x40030050))
  701. #define TIMER0_TBV_R (*((volatile uint32_t *)0x40030054))
  702. #define TIMER0_RTCPD_R (*((volatile uint32_t *)0x40030058))
  703. #define TIMER0_TAPS_R (*((volatile uint32_t *)0x4003005C))
  704. #define TIMER0_TBPS_R (*((volatile uint32_t *)0x40030060))
  705. #define TIMER0_DMAEV_R (*((volatile uint32_t *)0x4003006C))
  706. #define TIMER0_ADCEV_R (*((volatile uint32_t *)0x40030070))
  707. #define TIMER0_PP_R (*((volatile uint32_t *)0x40030FC0))
  708. #define TIMER0_CC_R (*((volatile uint32_t *)0x40030FC8))
  709. //*****************************************************************************
  710. //
  711. // Timer registers (TIMER1)
  712. //
  713. //*****************************************************************************
  714. #define TIMER1_CFG_R (*((volatile uint32_t *)0x40031000))
  715. #define TIMER1_TAMR_R (*((volatile uint32_t *)0x40031004))
  716. #define TIMER1_TBMR_R (*((volatile uint32_t *)0x40031008))
  717. #define TIMER1_CTL_R (*((volatile uint32_t *)0x4003100C))
  718. #define TIMER1_SYNC_R (*((volatile uint32_t *)0x40031010))
  719. #define TIMER1_IMR_R (*((volatile uint32_t *)0x40031018))
  720. #define TIMER1_RIS_R (*((volatile uint32_t *)0x4003101C))
  721. #define TIMER1_MIS_R (*((volatile uint32_t *)0x40031020))
  722. #define TIMER1_ICR_R (*((volatile uint32_t *)0x40031024))
  723. #define TIMER1_TAILR_R (*((volatile uint32_t *)0x40031028))
  724. #define TIMER1_TBILR_R (*((volatile uint32_t *)0x4003102C))
  725. #define TIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40031030))
  726. #define TIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40031034))
  727. #define TIMER1_TAPR_R (*((volatile uint32_t *)0x40031038))
  728. #define TIMER1_TBPR_R (*((volatile uint32_t *)0x4003103C))
  729. #define TIMER1_TAPMR_R (*((volatile uint32_t *)0x40031040))
  730. #define TIMER1_TBPMR_R (*((volatile uint32_t *)0x40031044))
  731. #define TIMER1_TAR_R (*((volatile uint32_t *)0x40031048))
  732. #define TIMER1_TBR_R (*((volatile uint32_t *)0x4003104C))
  733. #define TIMER1_TAV_R (*((volatile uint32_t *)0x40031050))
  734. #define TIMER1_TBV_R (*((volatile uint32_t *)0x40031054))
  735. #define TIMER1_RTCPD_R (*((volatile uint32_t *)0x40031058))
  736. #define TIMER1_TAPS_R (*((volatile uint32_t *)0x4003105C))
  737. #define TIMER1_TBPS_R (*((volatile uint32_t *)0x40031060))
  738. #define TIMER1_DMAEV_R (*((volatile uint32_t *)0x4003106C))
  739. #define TIMER1_ADCEV_R (*((volatile uint32_t *)0x40031070))
  740. #define TIMER1_PP_R (*((volatile uint32_t *)0x40031FC0))
  741. #define TIMER1_CC_R (*((volatile uint32_t *)0x40031FC8))
  742. //*****************************************************************************
  743. //
  744. // Timer registers (TIMER2)
  745. //
  746. //*****************************************************************************
  747. #define TIMER2_CFG_R (*((volatile uint32_t *)0x40032000))
  748. #define TIMER2_TAMR_R (*((volatile uint32_t *)0x40032004))
  749. #define TIMER2_TBMR_R (*((volatile uint32_t *)0x40032008))
  750. #define TIMER2_CTL_R (*((volatile uint32_t *)0x4003200C))
  751. #define TIMER2_SYNC_R (*((volatile uint32_t *)0x40032010))
  752. #define TIMER2_IMR_R (*((volatile uint32_t *)0x40032018))
  753. #define TIMER2_RIS_R (*((volatile uint32_t *)0x4003201C))
  754. #define TIMER2_MIS_R (*((volatile uint32_t *)0x40032020))
  755. #define TIMER2_ICR_R (*((volatile uint32_t *)0x40032024))
  756. #define TIMER2_TAILR_R (*((volatile uint32_t *)0x40032028))
  757. #define TIMER2_TBILR_R (*((volatile uint32_t *)0x4003202C))
  758. #define TIMER2_TAMATCHR_R (*((volatile uint32_t *)0x40032030))
  759. #define TIMER2_TBMATCHR_R (*((volatile uint32_t *)0x40032034))
  760. #define TIMER2_TAPR_R (*((volatile uint32_t *)0x40032038))
  761. #define TIMER2_TBPR_R (*((volatile uint32_t *)0x4003203C))
  762. #define TIMER2_TAPMR_R (*((volatile uint32_t *)0x40032040))
  763. #define TIMER2_TBPMR_R (*((volatile uint32_t *)0x40032044))
  764. #define TIMER2_TAR_R (*((volatile uint32_t *)0x40032048))
  765. #define TIMER2_TBR_R (*((volatile uint32_t *)0x4003204C))
  766. #define TIMER2_TAV_R (*((volatile uint32_t *)0x40032050))
  767. #define TIMER2_TBV_R (*((volatile uint32_t *)0x40032054))
  768. #define TIMER2_RTCPD_R (*((volatile uint32_t *)0x40032058))
  769. #define TIMER2_TAPS_R (*((volatile uint32_t *)0x4003205C))
  770. #define TIMER2_TBPS_R (*((volatile uint32_t *)0x40032060))
  771. #define TIMER2_DMAEV_R (*((volatile uint32_t *)0x4003206C))
  772. #define TIMER2_ADCEV_R (*((volatile uint32_t *)0x40032070))
  773. #define TIMER2_PP_R (*((volatile uint32_t *)0x40032FC0))
  774. #define TIMER2_CC_R (*((volatile uint32_t *)0x40032FC8))
  775. //*****************************************************************************
  776. //
  777. // Timer registers (TIMER3)
  778. //
  779. //*****************************************************************************
  780. #define TIMER3_CFG_R (*((volatile uint32_t *)0x40033000))
  781. #define TIMER3_TAMR_R (*((volatile uint32_t *)0x40033004))
  782. #define TIMER3_TBMR_R (*((volatile uint32_t *)0x40033008))
  783. #define TIMER3_CTL_R (*((volatile uint32_t *)0x4003300C))
  784. #define TIMER3_SYNC_R (*((volatile uint32_t *)0x40033010))
  785. #define TIMER3_IMR_R (*((volatile uint32_t *)0x40033018))
  786. #define TIMER3_RIS_R (*((volatile uint32_t *)0x4003301C))
  787. #define TIMER3_MIS_R (*((volatile uint32_t *)0x40033020))
  788. #define TIMER3_ICR_R (*((volatile uint32_t *)0x40033024))
  789. #define TIMER3_TAILR_R (*((volatile uint32_t *)0x40033028))
  790. #define TIMER3_TBILR_R (*((volatile uint32_t *)0x4003302C))
  791. #define TIMER3_TAMATCHR_R (*((volatile uint32_t *)0x40033030))
  792. #define TIMER3_TBMATCHR_R (*((volatile uint32_t *)0x40033034))
  793. #define TIMER3_TAPR_R (*((volatile uint32_t *)0x40033038))
  794. #define TIMER3_TBPR_R (*((volatile uint32_t *)0x4003303C))
  795. #define TIMER3_TAPMR_R (*((volatile uint32_t *)0x40033040))
  796. #define TIMER3_TBPMR_R (*((volatile uint32_t *)0x40033044))
  797. #define TIMER3_TAR_R (*((volatile uint32_t *)0x40033048))
  798. #define TIMER3_TBR_R (*((volatile uint32_t *)0x4003304C))
  799. #define TIMER3_TAV_R (*((volatile uint32_t *)0x40033050))
  800. #define TIMER3_TBV_R (*((volatile uint32_t *)0x40033054))
  801. #define TIMER3_RTCPD_R (*((volatile uint32_t *)0x40033058))
  802. #define TIMER3_TAPS_R (*((volatile uint32_t *)0x4003305C))
  803. #define TIMER3_TBPS_R (*((volatile uint32_t *)0x40033060))
  804. #define TIMER3_DMAEV_R (*((volatile uint32_t *)0x4003306C))
  805. #define TIMER3_ADCEV_R (*((volatile uint32_t *)0x40033070))
  806. #define TIMER3_PP_R (*((volatile uint32_t *)0x40033FC0))
  807. #define TIMER3_CC_R (*((volatile uint32_t *)0x40033FC8))
  808. //*****************************************************************************
  809. //
  810. // Timer registers (TIMER4)
  811. //
  812. //*****************************************************************************
  813. #define TIMER4_CFG_R (*((volatile uint32_t *)0x40034000))
  814. #define TIMER4_TAMR_R (*((volatile uint32_t *)0x40034004))
  815. #define TIMER4_TBMR_R (*((volatile uint32_t *)0x40034008))
  816. #define TIMER4_CTL_R (*((volatile uint32_t *)0x4003400C))
  817. #define TIMER4_SYNC_R (*((volatile uint32_t *)0x40034010))
  818. #define TIMER4_IMR_R (*((volatile uint32_t *)0x40034018))
  819. #define TIMER4_RIS_R (*((volatile uint32_t *)0x4003401C))
  820. #define TIMER4_MIS_R (*((volatile uint32_t *)0x40034020))
  821. #define TIMER4_ICR_R (*((volatile uint32_t *)0x40034024))
  822. #define TIMER4_TAILR_R (*((volatile uint32_t *)0x40034028))
  823. #define TIMER4_TBILR_R (*((volatile uint32_t *)0x4003402C))
  824. #define TIMER4_TAMATCHR_R (*((volatile uint32_t *)0x40034030))
  825. #define TIMER4_TBMATCHR_R (*((volatile uint32_t *)0x40034034))
  826. #define TIMER4_TAPR_R (*((volatile uint32_t *)0x40034038))
  827. #define TIMER4_TBPR_R (*((volatile uint32_t *)0x4003403C))
  828. #define TIMER4_TAPMR_R (*((volatile uint32_t *)0x40034040))
  829. #define TIMER4_TBPMR_R (*((volatile uint32_t *)0x40034044))
  830. #define TIMER4_TAR_R (*((volatile uint32_t *)0x40034048))
  831. #define TIMER4_TBR_R (*((volatile uint32_t *)0x4003404C))
  832. #define TIMER4_TAV_R (*((volatile uint32_t *)0x40034050))
  833. #define TIMER4_TBV_R (*((volatile uint32_t *)0x40034054))
  834. #define TIMER4_RTCPD_R (*((volatile uint32_t *)0x40034058))
  835. #define TIMER4_TAPS_R (*((volatile uint32_t *)0x4003405C))
  836. #define TIMER4_TBPS_R (*((volatile uint32_t *)0x40034060))
  837. #define TIMER4_DMAEV_R (*((volatile uint32_t *)0x4003406C))
  838. #define TIMER4_ADCEV_R (*((volatile uint32_t *)0x40034070))
  839. #define TIMER4_PP_R (*((volatile uint32_t *)0x40034FC0))
  840. #define TIMER4_CC_R (*((volatile uint32_t *)0x40034FC8))
  841. //*****************************************************************************
  842. //
  843. // Timer registers (TIMER5)
  844. //
  845. //*****************************************************************************
  846. #define TIMER5_CFG_R (*((volatile uint32_t *)0x40035000))
  847. #define TIMER5_TAMR_R (*((volatile uint32_t *)0x40035004))
  848. #define TIMER5_TBMR_R (*((volatile uint32_t *)0x40035008))
  849. #define TIMER5_CTL_R (*((volatile uint32_t *)0x4003500C))
  850. #define TIMER5_SYNC_R (*((volatile uint32_t *)0x40035010))
  851. #define TIMER5_IMR_R (*((volatile uint32_t *)0x40035018))
  852. #define TIMER5_RIS_R (*((volatile uint32_t *)0x4003501C))
  853. #define TIMER5_MIS_R (*((volatile uint32_t *)0x40035020))
  854. #define TIMER5_ICR_R (*((volatile uint32_t *)0x40035024))
  855. #define TIMER5_TAILR_R (*((volatile uint32_t *)0x40035028))
  856. #define TIMER5_TBILR_R (*((volatile uint32_t *)0x4003502C))
  857. #define TIMER5_TAMATCHR_R (*((volatile uint32_t *)0x40035030))
  858. #define TIMER5_TBMATCHR_R (*((volatile uint32_t *)0x40035034))
  859. #define TIMER5_TAPR_R (*((volatile uint32_t *)0x40035038))
  860. #define TIMER5_TBPR_R (*((volatile uint32_t *)0x4003503C))
  861. #define TIMER5_TAPMR_R (*((volatile uint32_t *)0x40035040))
  862. #define TIMER5_TBPMR_R (*((volatile uint32_t *)0x40035044))
  863. #define TIMER5_TAR_R (*((volatile uint32_t *)0x40035048))
  864. #define TIMER5_TBR_R (*((volatile uint32_t *)0x4003504C))
  865. #define TIMER5_TAV_R (*((volatile uint32_t *)0x40035050))
  866. #define TIMER5_TBV_R (*((volatile uint32_t *)0x40035054))
  867. #define TIMER5_RTCPD_R (*((volatile uint32_t *)0x40035058))
  868. #define TIMER5_TAPS_R (*((volatile uint32_t *)0x4003505C))
  869. #define TIMER5_TBPS_R (*((volatile uint32_t *)0x40035060))
  870. #define TIMER5_DMAEV_R (*((volatile uint32_t *)0x4003506C))
  871. #define TIMER5_ADCEV_R (*((volatile uint32_t *)0x40035070))
  872. #define TIMER5_PP_R (*((volatile uint32_t *)0x40035FC0))
  873. #define TIMER5_CC_R (*((volatile uint32_t *)0x40035FC8))
  874. //*****************************************************************************
  875. //
  876. // ADC registers (ADC0)
  877. //
  878. //*****************************************************************************
  879. #define ADC0_ACTSS_R (*((volatile uint32_t *)0x40038000))
  880. #define ADC0_RIS_R (*((volatile uint32_t *)0x40038004))
  881. #define ADC0_IM_R (*((volatile uint32_t *)0x40038008))
  882. #define ADC0_ISC_R (*((volatile uint32_t *)0x4003800C))
  883. #define ADC0_OSTAT_R (*((volatile uint32_t *)0x40038010))
  884. #define ADC0_EMUX_R (*((volatile uint32_t *)0x40038014))
  885. #define ADC0_USTAT_R (*((volatile uint32_t *)0x40038018))
  886. #define ADC0_TSSEL_R (*((volatile uint32_t *)0x4003801C))
  887. #define ADC0_SSPRI_R (*((volatile uint32_t *)0x40038020))
  888. #define ADC0_SPC_R (*((volatile uint32_t *)0x40038024))
  889. #define ADC0_PSSI_R (*((volatile uint32_t *)0x40038028))
  890. #define ADC0_SAC_R (*((volatile uint32_t *)0x40038030))
  891. #define ADC0_DCISC_R (*((volatile uint32_t *)0x40038034))
  892. #define ADC0_CTL_R (*((volatile uint32_t *)0x40038038))
  893. #define ADC0_SSMUX0_R (*((volatile uint32_t *)0x40038040))
  894. #define ADC0_SSCTL0_R (*((volatile uint32_t *)0x40038044))
  895. #define ADC0_SSFIFO0_R (*((volatile uint32_t *)0x40038048))
  896. #define ADC0_SSFSTAT0_R (*((volatile uint32_t *)0x4003804C))
  897. #define ADC0_SSOP0_R (*((volatile uint32_t *)0x40038050))
  898. #define ADC0_SSDC0_R (*((volatile uint32_t *)0x40038054))
  899. #define ADC0_SSEMUX0_R (*((volatile uint32_t *)0x40038058))
  900. #define ADC0_SSTSH0_R (*((volatile uint32_t *)0x4003805C))
  901. #define ADC0_SSMUX1_R (*((volatile uint32_t *)0x40038060))
  902. #define ADC0_SSCTL1_R (*((volatile uint32_t *)0x40038064))
  903. #define ADC0_SSFIFO1_R (*((volatile uint32_t *)0x40038068))
  904. #define ADC0_SSFSTAT1_R (*((volatile uint32_t *)0x4003806C))
  905. #define ADC0_SSOP1_R (*((volatile uint32_t *)0x40038070))
  906. #define ADC0_SSDC1_R (*((volatile uint32_t *)0x40038074))
  907. #define ADC0_SSEMUX1_R (*((volatile uint32_t *)0x40038078))
  908. #define ADC0_SSTSH1_R (*((volatile uint32_t *)0x4003807C))
  909. #define ADC0_SSMUX2_R (*((volatile uint32_t *)0x40038080))
  910. #define ADC0_SSCTL2_R (*((volatile uint32_t *)0x40038084))
  911. #define ADC0_SSFIFO2_R (*((volatile uint32_t *)0x40038088))
  912. #define ADC0_SSFSTAT2_R (*((volatile uint32_t *)0x4003808C))
  913. #define ADC0_SSOP2_R (*((volatile uint32_t *)0x40038090))
  914. #define ADC0_SSDC2_R (*((volatile uint32_t *)0x40038094))
  915. #define ADC0_SSEMUX2_R (*((volatile uint32_t *)0x40038098))
  916. #define ADC0_SSTSH2_R (*((volatile uint32_t *)0x4003809C))
  917. #define ADC0_SSMUX3_R (*((volatile uint32_t *)0x400380A0))
  918. #define ADC0_SSCTL3_R (*((volatile uint32_t *)0x400380A4))
  919. #define ADC0_SSFIFO3_R (*((volatile uint32_t *)0x400380A8))
  920. #define ADC0_SSFSTAT3_R (*((volatile uint32_t *)0x400380AC))
  921. #define ADC0_SSOP3_R (*((volatile uint32_t *)0x400380B0))
  922. #define ADC0_SSDC3_R (*((volatile uint32_t *)0x400380B4))
  923. #define ADC0_SSEMUX3_R (*((volatile uint32_t *)0x400380B8))
  924. #define ADC0_SSTSH3_R (*((volatile uint32_t *)0x400380BC))
  925. #define ADC0_DCRIC_R (*((volatile uint32_t *)0x40038D00))
  926. #define ADC0_DCCTL0_R (*((volatile uint32_t *)0x40038E00))
  927. #define ADC0_DCCTL1_R (*((volatile uint32_t *)0x40038E04))
  928. #define ADC0_DCCTL2_R (*((volatile uint32_t *)0x40038E08))
  929. #define ADC0_DCCTL3_R (*((volatile uint32_t *)0x40038E0C))
  930. #define ADC0_DCCTL4_R (*((volatile uint32_t *)0x40038E10))
  931. #define ADC0_DCCTL5_R (*((volatile uint32_t *)0x40038E14))
  932. #define ADC0_DCCTL6_R (*((volatile uint32_t *)0x40038E18))
  933. #define ADC0_DCCTL7_R (*((volatile uint32_t *)0x40038E1C))
  934. #define ADC0_DCCMP0_R (*((volatile uint32_t *)0x40038E40))
  935. #define ADC0_DCCMP1_R (*((volatile uint32_t *)0x40038E44))
  936. #define ADC0_DCCMP2_R (*((volatile uint32_t *)0x40038E48))
  937. #define ADC0_DCCMP3_R (*((volatile uint32_t *)0x40038E4C))
  938. #define ADC0_DCCMP4_R (*((volatile uint32_t *)0x40038E50))
  939. #define ADC0_DCCMP5_R (*((volatile uint32_t *)0x40038E54))
  940. #define ADC0_DCCMP6_R (*((volatile uint32_t *)0x40038E58))
  941. #define ADC0_DCCMP7_R (*((volatile uint32_t *)0x40038E5C))
  942. #define ADC0_PP_R (*((volatile uint32_t *)0x40038FC0))
  943. #define ADC0_PC_R (*((volatile uint32_t *)0x40038FC4))
  944. #define ADC0_CC_R (*((volatile uint32_t *)0x40038FC8))
  945. //*****************************************************************************
  946. //
  947. // ADC registers (ADC1)
  948. //
  949. //*****************************************************************************
  950. #define ADC1_ACTSS_R (*((volatile uint32_t *)0x40039000))
  951. #define ADC1_RIS_R (*((volatile uint32_t *)0x40039004))
  952. #define ADC1_IM_R (*((volatile uint32_t *)0x40039008))
  953. #define ADC1_ISC_R (*((volatile uint32_t *)0x4003900C))
  954. #define ADC1_OSTAT_R (*((volatile uint32_t *)0x40039010))
  955. #define ADC1_EMUX_R (*((volatile uint32_t *)0x40039014))
  956. #define ADC1_USTAT_R (*((volatile uint32_t *)0x40039018))
  957. #define ADC1_TSSEL_R (*((volatile uint32_t *)0x4003901C))
  958. #define ADC1_SSPRI_R (*((volatile uint32_t *)0x40039020))
  959. #define ADC1_SPC_R (*((volatile uint32_t *)0x40039024))
  960. #define ADC1_PSSI_R (*((volatile uint32_t *)0x40039028))
  961. #define ADC1_SAC_R (*((volatile uint32_t *)0x40039030))
  962. #define ADC1_DCISC_R (*((volatile uint32_t *)0x40039034))
  963. #define ADC1_CTL_R (*((volatile uint32_t *)0x40039038))
  964. #define ADC1_SSMUX0_R (*((volatile uint32_t *)0x40039040))
  965. #define ADC1_SSCTL0_R (*((volatile uint32_t *)0x40039044))
  966. #define ADC1_SSFIFO0_R (*((volatile uint32_t *)0x40039048))
  967. #define ADC1_SSFSTAT0_R (*((volatile uint32_t *)0x4003904C))
  968. #define ADC1_SSOP0_R (*((volatile uint32_t *)0x40039050))
  969. #define ADC1_SSDC0_R (*((volatile uint32_t *)0x40039054))
  970. #define ADC1_SSEMUX0_R (*((volatile uint32_t *)0x40039058))
  971. #define ADC1_SSTSH0_R (*((volatile uint32_t *)0x4003905C))
  972. #define ADC1_SSMUX1_R (*((volatile uint32_t *)0x40039060))
  973. #define ADC1_SSCTL1_R (*((volatile uint32_t *)0x40039064))
  974. #define ADC1_SSFIFO1_R (*((volatile uint32_t *)0x40039068))
  975. #define ADC1_SSFSTAT1_R (*((volatile uint32_t *)0x4003906C))
  976. #define ADC1_SSOP1_R (*((volatile uint32_t *)0x40039070))
  977. #define ADC1_SSDC1_R (*((volatile uint32_t *)0x40039074))
  978. #define ADC1_SSEMUX1_R (*((volatile uint32_t *)0x40039078))
  979. #define ADC1_SSTSH1_R (*((volatile uint32_t *)0x4003907C))
  980. #define ADC1_SSMUX2_R (*((volatile uint32_t *)0x40039080))
  981. #define ADC1_SSCTL2_R (*((volatile uint32_t *)0x40039084))
  982. #define ADC1_SSFIFO2_R (*((volatile uint32_t *)0x40039088))
  983. #define ADC1_SSFSTAT2_R (*((volatile uint32_t *)0x4003908C))
  984. #define ADC1_SSOP2_R (*((volatile uint32_t *)0x40039090))
  985. #define ADC1_SSDC2_R (*((volatile uint32_t *)0x40039094))
  986. #define ADC1_SSEMUX2_R (*((volatile uint32_t *)0x40039098))
  987. #define ADC1_SSTSH2_R (*((volatile uint32_t *)0x4003909C))
  988. #define ADC1_SSMUX3_R (*((volatile uint32_t *)0x400390A0))
  989. #define ADC1_SSCTL3_R (*((volatile uint32_t *)0x400390A4))
  990. #define ADC1_SSFIFO3_R (*((volatile uint32_t *)0x400390A8))
  991. #define ADC1_SSFSTAT3_R (*((volatile uint32_t *)0x400390AC))
  992. #define ADC1_SSOP3_R (*((volatile uint32_t *)0x400390B0))
  993. #define ADC1_SSDC3_R (*((volatile uint32_t *)0x400390B4))
  994. #define ADC1_SSEMUX3_R (*((volatile uint32_t *)0x400390B8))
  995. #define ADC1_SSTSH3_R (*((volatile uint32_t *)0x400390BC))
  996. #define ADC1_DCRIC_R (*((volatile uint32_t *)0x40039D00))
  997. #define ADC1_DCCTL0_R (*((volatile uint32_t *)0x40039E00))
  998. #define ADC1_DCCTL1_R (*((volatile uint32_t *)0x40039E04))
  999. #define ADC1_DCCTL2_R (*((volatile uint32_t *)0x40039E08))
  1000. #define ADC1_DCCTL3_R (*((volatile uint32_t *)0x40039E0C))
  1001. #define ADC1_DCCTL4_R (*((volatile uint32_t *)0x40039E10))
  1002. #define ADC1_DCCTL5_R (*((volatile uint32_t *)0x40039E14))
  1003. #define ADC1_DCCTL6_R (*((volatile uint32_t *)0x40039E18))
  1004. #define ADC1_DCCTL7_R (*((volatile uint32_t *)0x40039E1C))
  1005. #define ADC1_DCCMP0_R (*((volatile uint32_t *)0x40039E40))
  1006. #define ADC1_DCCMP1_R (*((volatile uint32_t *)0x40039E44))
  1007. #define ADC1_DCCMP2_R (*((volatile uint32_t *)0x40039E48))
  1008. #define ADC1_DCCMP3_R (*((volatile uint32_t *)0x40039E4C))
  1009. #define ADC1_DCCMP4_R (*((volatile uint32_t *)0x40039E50))
  1010. #define ADC1_DCCMP5_R (*((volatile uint32_t *)0x40039E54))
  1011. #define ADC1_DCCMP6_R (*((volatile uint32_t *)0x40039E58))
  1012. #define ADC1_DCCMP7_R (*((volatile uint32_t *)0x40039E5C))
  1013. #define ADC1_PP_R (*((volatile uint32_t *)0x40039FC0))
  1014. #define ADC1_PC_R (*((volatile uint32_t *)0x40039FC4))
  1015. #define ADC1_CC_R (*((volatile uint32_t *)0x40039FC8))
  1016. //*****************************************************************************
  1017. //
  1018. // Comparator registers (COMP)
  1019. //
  1020. //*****************************************************************************
  1021. #define COMP_ACMIS_R (*((volatile uint32_t *)0x4003C000))
  1022. #define COMP_ACRIS_R (*((volatile uint32_t *)0x4003C004))
  1023. #define COMP_ACINTEN_R (*((volatile uint32_t *)0x4003C008))
  1024. #define COMP_ACREFCTL_R (*((volatile uint32_t *)0x4003C010))
  1025. #define COMP_ACSTAT0_R (*((volatile uint32_t *)0x4003C020))
  1026. #define COMP_ACCTL0_R (*((volatile uint32_t *)0x4003C024))
  1027. #define COMP_ACSTAT1_R (*((volatile uint32_t *)0x4003C040))
  1028. #define COMP_ACCTL1_R (*((volatile uint32_t *)0x4003C044))
  1029. #define COMP_ACSTAT2_R (*((volatile uint32_t *)0x4003C060))
  1030. #define COMP_ACCTL2_R (*((volatile uint32_t *)0x4003C064))
  1031. #define COMP_PP_R (*((volatile uint32_t *)0x4003CFC0))
  1032. //*****************************************************************************
  1033. //
  1034. // CAN registers (CAN0)
  1035. //
  1036. //*****************************************************************************
  1037. #define CAN0_CTL_R (*((volatile uint32_t *)0x40040000))
  1038. #define CAN0_STS_R (*((volatile uint32_t *)0x40040004))
  1039. #define CAN0_ERR_R (*((volatile uint32_t *)0x40040008))
  1040. #define CAN0_BIT_R (*((volatile uint32_t *)0x4004000C))
  1041. #define CAN0_INT_R (*((volatile uint32_t *)0x40040010))
  1042. #define CAN0_TST_R (*((volatile uint32_t *)0x40040014))
  1043. #define CAN0_BRPE_R (*((volatile uint32_t *)0x40040018))
  1044. #define CAN0_IF1CRQ_R (*((volatile uint32_t *)0x40040020))
  1045. #define CAN0_IF1CMSK_R (*((volatile uint32_t *)0x40040024))
  1046. #define CAN0_IF1MSK1_R (*((volatile uint32_t *)0x40040028))
  1047. #define CAN0_IF1MSK2_R (*((volatile uint32_t *)0x4004002C))
  1048. #define CAN0_IF1ARB1_R (*((volatile uint32_t *)0x40040030))
  1049. #define CAN0_IF1ARB2_R (*((volatile uint32_t *)0x40040034))
  1050. #define CAN0_IF1MCTL_R (*((volatile uint32_t *)0x40040038))
  1051. #define CAN0_IF1DA1_R (*((volatile uint32_t *)0x4004003C))
  1052. #define CAN0_IF1DA2_R (*((volatile uint32_t *)0x40040040))
  1053. #define CAN0_IF1DB1_R (*((volatile uint32_t *)0x40040044))
  1054. #define CAN0_IF1DB2_R (*((volatile uint32_t *)0x40040048))
  1055. #define CAN0_IF2CRQ_R (*((volatile uint32_t *)0x40040080))
  1056. #define CAN0_IF2CMSK_R (*((volatile uint32_t *)0x40040084))
  1057. #define CAN0_IF2MSK1_R (*((volatile uint32_t *)0x40040088))
  1058. #define CAN0_IF2MSK2_R (*((volatile uint32_t *)0x4004008C))
  1059. #define CAN0_IF2ARB1_R (*((volatile uint32_t *)0x40040090))
  1060. #define CAN0_IF2ARB2_R (*((volatile uint32_t *)0x40040094))
  1061. #define CAN0_IF2MCTL_R (*((volatile uint32_t *)0x40040098))
  1062. #define CAN0_IF2DA1_R (*((volatile uint32_t *)0x4004009C))
  1063. #define CAN0_IF2DA2_R (*((volatile uint32_t *)0x400400A0))
  1064. #define CAN0_IF2DB1_R (*((volatile uint32_t *)0x400400A4))
  1065. #define CAN0_IF2DB2_R (*((volatile uint32_t *)0x400400A8))
  1066. #define CAN0_TXRQ1_R (*((volatile uint32_t *)0x40040100))
  1067. #define CAN0_TXRQ2_R (*((volatile uint32_t *)0x40040104))
  1068. #define CAN0_NWDA1_R (*((volatile uint32_t *)0x40040120))
  1069. #define CAN0_NWDA2_R (*((volatile uint32_t *)0x40040124))
  1070. #define CAN0_MSG1INT_R (*((volatile uint32_t *)0x40040140))
  1071. #define CAN0_MSG2INT_R (*((volatile uint32_t *)0x40040144))
  1072. #define CAN0_MSG1VAL_R (*((volatile uint32_t *)0x40040160))
  1073. #define CAN0_MSG2VAL_R (*((volatile uint32_t *)0x40040164))
  1074. //*****************************************************************************
  1075. //
  1076. // CAN registers (CAN1)
  1077. //
  1078. //*****************************************************************************
  1079. #define CAN1_CTL_R (*((volatile uint32_t *)0x40041000))
  1080. #define CAN1_STS_R (*((volatile uint32_t *)0x40041004))
  1081. #define CAN1_ERR_R (*((volatile uint32_t *)0x40041008))
  1082. #define CAN1_BIT_R (*((volatile uint32_t *)0x4004100C))
  1083. #define CAN1_INT_R (*((volatile uint32_t *)0x40041010))
  1084. #define CAN1_TST_R (*((volatile uint32_t *)0x40041014))
  1085. #define CAN1_BRPE_R (*((volatile uint32_t *)0x40041018))
  1086. #define CAN1_IF1CRQ_R (*((volatile uint32_t *)0x40041020))
  1087. #define CAN1_IF1CMSK_R (*((volatile uint32_t *)0x40041024))
  1088. #define CAN1_IF1MSK1_R (*((volatile uint32_t *)0x40041028))
  1089. #define CAN1_IF1MSK2_R (*((volatile uint32_t *)0x4004102C))
  1090. #define CAN1_IF1ARB1_R (*((volatile uint32_t *)0x40041030))
  1091. #define CAN1_IF1ARB2_R (*((volatile uint32_t *)0x40041034))
  1092. #define CAN1_IF1MCTL_R (*((volatile uint32_t *)0x40041038))
  1093. #define CAN1_IF1DA1_R (*((volatile uint32_t *)0x4004103C))
  1094. #define CAN1_IF1DA2_R (*((volatile uint32_t *)0x40041040))
  1095. #define CAN1_IF1DB1_R (*((volatile uint32_t *)0x40041044))
  1096. #define CAN1_IF1DB2_R (*((volatile uint32_t *)0x40041048))
  1097. #define CAN1_IF2CRQ_R (*((volatile uint32_t *)0x40041080))
  1098. #define CAN1_IF2CMSK_R (*((volatile uint32_t *)0x40041084))
  1099. #define CAN1_IF2MSK1_R (*((volatile uint32_t *)0x40041088))
  1100. #define CAN1_IF2MSK2_R (*((volatile uint32_t *)0x4004108C))
  1101. #define CAN1_IF2ARB1_R (*((volatile uint32_t *)0x40041090))
  1102. #define CAN1_IF2ARB2_R (*((volatile uint32_t *)0x40041094))
  1103. #define CAN1_IF2MCTL_R (*((volatile uint32_t *)0x40041098))
  1104. #define CAN1_IF2DA1_R (*((volatile uint32_t *)0x4004109C))
  1105. #define CAN1_IF2DA2_R (*((volatile uint32_t *)0x400410A0))
  1106. #define CAN1_IF2DB1_R (*((volatile uint32_t *)0x400410A4))
  1107. #define CAN1_IF2DB2_R (*((volatile uint32_t *)0x400410A8))
  1108. #define CAN1_TXRQ1_R (*((volatile uint32_t *)0x40041100))
  1109. #define CAN1_TXRQ2_R (*((volatile uint32_t *)0x40041104))
  1110. #define CAN1_NWDA1_R (*((volatile uint32_t *)0x40041120))
  1111. #define CAN1_NWDA2_R (*((volatile uint32_t *)0x40041124))
  1112. #define CAN1_MSG1INT_R (*((volatile uint32_t *)0x40041140))
  1113. #define CAN1_MSG2INT_R (*((volatile uint32_t *)0x40041144))
  1114. #define CAN1_MSG1VAL_R (*((volatile uint32_t *)0x40041160))
  1115. #define CAN1_MSG2VAL_R (*((volatile uint32_t *)0x40041164))
  1116. //*****************************************************************************
  1117. //
  1118. // Univeral Serial Bus registers (USB0)
  1119. //
  1120. //*****************************************************************************
  1121. #define USB0_FADDR_R (*((volatile uint8_t *)0x40050000))
  1122. #define USB0_POWER_R (*((volatile uint8_t *)0x40050001))
  1123. #define USB0_TXIS_R (*((volatile uint16_t *)0x40050002))
  1124. #define USB0_RXIS_R (*((volatile uint16_t *)0x40050004))
  1125. #define USB0_TXIE_R (*((volatile uint16_t *)0x40050006))
  1126. #define USB0_RXIE_R (*((volatile uint16_t *)0x40050008))
  1127. #define USB0_IS_R (*((volatile uint8_t *)0x4005000A))
  1128. #define USB0_IE_R (*((volatile uint8_t *)0x4005000B))
  1129. #define USB0_FRAME_R (*((volatile uint16_t *)0x4005000C))
  1130. #define USB0_EPIDX_R (*((volatile uint8_t *)0x4005000E))
  1131. #define USB0_TEST_R (*((volatile uint8_t *)0x4005000F))
  1132. #define USB0_FIFO0_R (*((volatile uint32_t *)0x40050020))
  1133. #define USB0_FIFO1_R (*((volatile uint32_t *)0x40050024))
  1134. #define USB0_FIFO2_R (*((volatile uint32_t *)0x40050028))
  1135. #define USB0_FIFO3_R (*((volatile uint32_t *)0x4005002C))
  1136. #define USB0_FIFO4_R (*((volatile uint32_t *)0x40050030))
  1137. #define USB0_FIFO5_R (*((volatile uint32_t *)0x40050034))
  1138. #define USB0_FIFO6_R (*((volatile uint32_t *)0x40050038))
  1139. #define USB0_FIFO7_R (*((volatile uint32_t *)0x4005003C))
  1140. #define USB0_DEVCTL_R (*((volatile uint8_t *)0x40050060))
  1141. #define USB0_CCONF_R (*((volatile uint8_t *)0x40050061))
  1142. #define USB0_TXFIFOSZ_R (*((volatile uint8_t *)0x40050062))
  1143. #define USB0_RXFIFOSZ_R (*((volatile uint8_t *)0x40050063))
  1144. #define USB0_TXFIFOADD_R (*((volatile uint16_t *)0x40050064))
  1145. #define USB0_RXFIFOADD_R (*((volatile uint16_t *)0x40050066))
  1146. #define USB0_ULPIVBUSCTL_R (*((volatile uint8_t *)0x40050070))
  1147. #define USB0_ULPIREGDATA_R (*((volatile uint8_t *)0x40050074))
  1148. #define USB0_ULPIREGADDR_R (*((volatile uint8_t *)0x40050075))
  1149. #define USB0_ULPIREGCTL_R (*((volatile uint8_t *)0x40050076))
  1150. #define USB0_EPINFO_R (*((volatile uint8_t *)0x40050078))
  1151. #define USB0_RAMINFO_R (*((volatile uint8_t *)0x40050079))
  1152. #define USB0_CONTIM_R (*((volatile uint8_t *)0x4005007A))
  1153. #define USB0_VPLEN_R (*((volatile uint8_t *)0x4005007B))
  1154. #define USB0_HSEOF_R (*((volatile uint8_t *)0x4005007C))
  1155. #define USB0_FSEOF_R (*((volatile uint8_t *)0x4005007D))
  1156. #define USB0_LSEOF_R (*((volatile uint8_t *)0x4005007E))
  1157. #define USB0_TXFUNCADDR0_R (*((volatile uint8_t *)0x40050080))
  1158. #define USB0_TXHUBADDR0_R (*((volatile uint8_t *)0x40050082))
  1159. #define USB0_TXHUBPORT0_R (*((volatile uint8_t *)0x40050083))
  1160. #define USB0_TXFUNCADDR1_R (*((volatile uint8_t *)0x40050088))
  1161. #define USB0_TXHUBADDR1_R (*((volatile uint8_t *)0x4005008A))
  1162. #define USB0_TXHUBPORT1_R (*((volatile uint8_t *)0x4005008B))
  1163. #define USB0_RXFUNCADDR1_R (*((volatile uint8_t *)0x4005008C))
  1164. #define USB0_RXHUBADDR1_R (*((volatile uint8_t *)0x4005008E))
  1165. #define USB0_RXHUBPORT1_R (*((volatile uint8_t *)0x4005008F))
  1166. #define USB0_TXFUNCADDR2_R (*((volatile uint8_t *)0x40050090))
  1167. #define USB0_TXHUBADDR2_R (*((volatile uint8_t *)0x40050092))
  1168. #define USB0_TXHUBPORT2_R (*((volatile uint8_t *)0x40050093))
  1169. #define USB0_RXFUNCADDR2_R (*((volatile uint8_t *)0x40050094))
  1170. #define USB0_RXHUBADDR2_R (*((volatile uint8_t *)0x40050096))
  1171. #define USB0_RXHUBPORT2_R (*((volatile uint8_t *)0x40050097))
  1172. #define USB0_TXFUNCADDR3_R (*((volatile uint8_t *)0x40050098))
  1173. #define USB0_TXHUBADDR3_R (*((volatile uint8_t *)0x4005009A))
  1174. #define USB0_TXHUBPORT3_R (*((volatile uint8_t *)0x4005009B))
  1175. #define USB0_RXFUNCADDR3_R (*((volatile uint8_t *)0x4005009C))
  1176. #define USB0_RXHUBADDR3_R (*((volatile uint8_t *)0x4005009E))
  1177. #define USB0_RXHUBPORT3_R (*((volatile uint8_t *)0x4005009F))
  1178. #define USB0_TXFUNCADDR4_R (*((volatile uint8_t *)0x400500A0))
  1179. #define USB0_TXHUBADDR4_R (*((volatile uint8_t *)0x400500A2))
  1180. #define USB0_TXHUBPORT4_R (*((volatile uint8_t *)0x400500A3))
  1181. #define USB0_RXFUNCADDR4_R (*((volatile uint8_t *)0x400500A4))
  1182. #define USB0_RXHUBADDR4_R (*((volatile uint8_t *)0x400500A6))
  1183. #define USB0_RXHUBPORT4_R (*((volatile uint8_t *)0x400500A7))
  1184. #define USB0_TXFUNCADDR5_R (*((volatile uint8_t *)0x400500A8))
  1185. #define USB0_TXHUBADDR5_R (*((volatile uint8_t *)0x400500AA))
  1186. #define USB0_TXHUBPORT5_R (*((volatile uint8_t *)0x400500AB))
  1187. #define USB0_RXFUNCADDR5_R (*((volatile uint8_t *)0x400500AC))
  1188. #define USB0_RXHUBADDR5_R (*((volatile uint8_t *)0x400500AE))
  1189. #define USB0_RXHUBPORT5_R (*((volatile uint8_t *)0x400500AF))
  1190. #define USB0_TXFUNCADDR6_R (*((volatile uint8_t *)0x400500B0))
  1191. #define USB0_TXHUBADDR6_R (*((volatile uint8_t *)0x400500B2))
  1192. #define USB0_TXHUBPORT6_R (*((volatile uint8_t *)0x400500B3))
  1193. #define USB0_RXFUNCADDR6_R (*((volatile uint8_t *)0x400500B4))
  1194. #define USB0_RXHUBADDR6_R (*((volatile uint8_t *)0x400500B6))
  1195. #define USB0_RXHUBPORT6_R (*((volatile uint8_t *)0x400500B7))
  1196. #define USB0_TXFUNCADDR7_R (*((volatile uint8_t *)0x400500B8))
  1197. #define USB0_TXHUBADDR7_R (*((volatile uint8_t *)0x400500BA))
  1198. #define USB0_TXHUBPORT7_R (*((volatile uint8_t *)0x400500BB))
  1199. #define USB0_RXFUNCADDR7_R (*((volatile uint8_t *)0x400500BC))
  1200. #define USB0_RXHUBADDR7_R (*((volatile uint8_t *)0x400500BE))
  1201. #define USB0_RXHUBPORT7_R (*((volatile uint8_t *)0x400500BF))
  1202. #define USB0_CSRL0_R (*((volatile uint8_t *)0x40050102))
  1203. #define USB0_CSRH0_R (*((volatile uint8_t *)0x40050103))
  1204. #define USB0_COUNT0_R (*((volatile uint8_t *)0x40050108))
  1205. #define USB0_TYPE0_R (*((volatile uint8_t *)0x4005010A))
  1206. #define USB0_NAKLMT_R (*((volatile uint8_t *)0x4005010B))
  1207. #define USB0_TXMAXP1_R (*((volatile uint16_t *)0x40050110))
  1208. #define USB0_TXCSRL1_R (*((volatile uint8_t *)0x40050112))
  1209. #define USB0_TXCSRH1_R (*((volatile uint8_t *)0x40050113))
  1210. #define USB0_RXMAXP1_R (*((volatile uint16_t *)0x40050114))
  1211. #define USB0_RXCSRL1_R (*((volatile uint8_t *)0x40050116))
  1212. #define USB0_RXCSRH1_R (*((volatile uint8_t *)0x40050117))
  1213. #define USB0_RXCOUNT1_R (*((volatile uint16_t *)0x40050118))
  1214. #define USB0_TXTYPE1_R (*((volatile uint8_t *)0x4005011A))
  1215. #define USB0_TXINTERVAL1_R (*((volatile uint8_t *)0x4005011B))
  1216. #define USB0_RXTYPE1_R (*((volatile uint8_t *)0x4005011C))
  1217. #define USB0_RXINTERVAL1_R (*((volatile uint8_t *)0x4005011D))
  1218. #define USB0_TXMAXP2_R (*((volatile uint16_t *)0x40050120))
  1219. #define USB0_TXCSRL2_R (*((volatile uint8_t *)0x40050122))
  1220. #define USB0_TXCSRH2_R (*((volatile uint8_t *)0x40050123))
  1221. #define USB0_RXMAXP2_R (*((volatile uint16_t *)0x40050124))
  1222. #define USB0_RXCSRL2_R (*((volatile uint8_t *)0x40050126))
  1223. #define USB0_RXCSRH2_R (*((volatile uint8_t *)0x40050127))
  1224. #define USB0_RXCOUNT2_R (*((volatile uint16_t *)0x40050128))
  1225. #define USB0_TXTYPE2_R (*((volatile uint8_t *)0x4005012A))
  1226. #define USB0_TXINTERVAL2_R (*((volatile uint8_t *)0x4005012B))
  1227. #define USB0_RXTYPE2_R (*((volatile uint8_t *)0x4005012C))
  1228. #define USB0_RXINTERVAL2_R (*((volatile uint8_t *)0x4005012D))
  1229. #define USB0_TXMAXP3_R (*((volatile uint16_t *)0x40050130))
  1230. #define USB0_TXCSRL3_R (*((volatile uint8_t *)0x40050132))
  1231. #define USB0_TXCSRH3_R (*((volatile uint8_t *)0x40050133))
  1232. #define USB0_RXMAXP3_R (*((volatile uint16_t *)0x40050134))
  1233. #define USB0_RXCSRL3_R (*((volatile uint8_t *)0x40050136))
  1234. #define USB0_RXCSRH3_R (*((volatile uint8_t *)0x40050137))
  1235. #define USB0_RXCOUNT3_R (*((volatile uint16_t *)0x40050138))
  1236. #define USB0_TXTYPE3_R (*((volatile uint8_t *)0x4005013A))
  1237. #define USB0_TXINTERVAL3_R (*((volatile uint8_t *)0x4005013B))
  1238. #define USB0_RXTYPE3_R (*((volatile uint8_t *)0x4005013C))
  1239. #define USB0_RXINTERVAL3_R (*((volatile uint8_t *)0x4005013D))
  1240. #define USB0_TXMAXP4_R (*((volatile uint16_t *)0x40050140))
  1241. #define USB0_TXCSRL4_R (*((volatile uint8_t *)0x40050142))
  1242. #define USB0_TXCSRH4_R (*((volatile uint8_t *)0x40050143))
  1243. #define USB0_RXMAXP4_R (*((volatile uint16_t *)0x40050144))
  1244. #define USB0_RXCSRL4_R (*((volatile uint8_t *)0x40050146))
  1245. #define USB0_RXCSRH4_R (*((volatile uint8_t *)0x40050147))
  1246. #define USB0_RXCOUNT4_R (*((volatile uint16_t *)0x40050148))
  1247. #define USB0_TXTYPE4_R (*((volatile uint8_t *)0x4005014A))
  1248. #define USB0_TXINTERVAL4_R (*((volatile uint8_t *)0x4005014B))
  1249. #define USB0_RXTYPE4_R (*((volatile uint8_t *)0x4005014C))
  1250. #define USB0_RXINTERVAL4_R (*((volatile uint8_t *)0x4005014D))
  1251. #define USB0_TXMAXP5_R (*((volatile uint16_t *)0x40050150))
  1252. #define USB0_TXCSRL5_R (*((volatile uint8_t *)0x40050152))
  1253. #define USB0_TXCSRH5_R (*((volatile uint8_t *)0x40050153))
  1254. #define USB0_RXMAXP5_R (*((volatile uint16_t *)0x40050154))
  1255. #define USB0_RXCSRL5_R (*((volatile uint8_t *)0x40050156))
  1256. #define USB0_RXCSRH5_R (*((volatile uint8_t *)0x40050157))
  1257. #define USB0_RXCOUNT5_R (*((volatile uint16_t *)0x40050158))
  1258. #define USB0_TXTYPE5_R (*((volatile uint8_t *)0x4005015A))
  1259. #define USB0_TXINTERVAL5_R (*((volatile uint8_t *)0x4005015B))
  1260. #define USB0_RXTYPE5_R (*((volatile uint8_t *)0x4005015C))
  1261. #define USB0_RXINTERVAL5_R (*((volatile uint8_t *)0x4005015D))
  1262. #define USB0_TXMAXP6_R (*((volatile uint16_t *)0x40050160))
  1263. #define USB0_TXCSRL6_R (*((volatile uint8_t *)0x40050162))
  1264. #define USB0_TXCSRH6_R (*((volatile uint8_t *)0x40050163))
  1265. #define USB0_RXMAXP6_R (*((volatile uint16_t *)0x40050164))
  1266. #define USB0_RXCSRL6_R (*((volatile uint8_t *)0x40050166))
  1267. #define USB0_RXCSRH6_R (*((volatile uint8_t *)0x40050167))
  1268. #define USB0_RXCOUNT6_R (*((volatile uint16_t *)0x40050168))
  1269. #define USB0_TXTYPE6_R (*((volatile uint8_t *)0x4005016A))
  1270. #define USB0_TXINTERVAL6_R (*((volatile uint8_t *)0x4005016B))
  1271. #define USB0_RXTYPE6_R (*((volatile uint8_t *)0x4005016C))
  1272. #define USB0_RXINTERVAL6_R (*((volatile uint8_t *)0x4005016D))
  1273. #define USB0_TXMAXP7_R (*((volatile uint16_t *)0x40050170))
  1274. #define USB0_TXCSRL7_R (*((volatile uint8_t *)0x40050172))
  1275. #define USB0_TXCSRH7_R (*((volatile uint8_t *)0x40050173))
  1276. #define USB0_RXMAXP7_R (*((volatile uint16_t *)0x40050174))
  1277. #define USB0_RXCSRL7_R (*((volatile uint8_t *)0x40050176))
  1278. #define USB0_RXCSRH7_R (*((volatile uint8_t *)0x40050177))
  1279. #define USB0_RXCOUNT7_R (*((volatile uint16_t *)0x40050178))
  1280. #define USB0_TXTYPE7_R (*((volatile uint8_t *)0x4005017A))
  1281. #define USB0_TXINTERVAL7_R (*((volatile uint8_t *)0x4005017B))
  1282. #define USB0_RXTYPE7_R (*((volatile uint8_t *)0x4005017C))
  1283. #define USB0_RXINTERVAL7_R (*((volatile uint8_t *)0x4005017D))
  1284. #define USB0_DMAINTR_R (*((volatile uint8_t *)0x40050200))
  1285. #define USB0_DMACTL0_R (*((volatile uint16_t *)0x40050204))
  1286. #define USB0_DMAADDR0_R (*((volatile uint32_t *)0x40050208))
  1287. #define USB0_DMACOUNT0_R (*((volatile uint32_t *)0x4005020C))
  1288. #define USB0_DMACTL1_R (*((volatile uint16_t *)0x40050214))
  1289. #define USB0_DMAADDR1_R (*((volatile uint32_t *)0x40050218))
  1290. #define USB0_DMACOUNT1_R (*((volatile uint32_t *)0x4005021C))
  1291. #define USB0_DMACTL2_R (*((volatile uint16_t *)0x40050224))
  1292. #define USB0_DMAADDR2_R (*((volatile uint32_t *)0x40050228))
  1293. #define USB0_DMACOUNT2_R (*((volatile uint32_t *)0x4005022C))
  1294. #define USB0_DMACTL3_R (*((volatile uint16_t *)0x40050234))
  1295. #define USB0_DMAADDR3_R (*((volatile uint32_t *)0x40050238))
  1296. #define USB0_DMACOUNT3_R (*((volatile uint32_t *)0x4005023C))
  1297. #define USB0_DMACTL4_R (*((volatile uint16_t *)0x40050244))
  1298. #define USB0_DMAADDR4_R (*((volatile uint32_t *)0x40050248))
  1299. #define USB0_DMACOUNT4_R (*((volatile uint32_t *)0x4005024C))
  1300. #define USB0_DMACTL5_R (*((volatile uint16_t *)0x40050254))
  1301. #define USB0_DMAADDR5_R (*((volatile uint32_t *)0x40050258))
  1302. #define USB0_DMACOUNT5_R (*((volatile uint32_t *)0x4005025C))
  1303. #define USB0_DMACTL6_R (*((volatile uint16_t *)0x40050264))
  1304. #define USB0_DMAADDR6_R (*((volatile uint32_t *)0x40050268))
  1305. #define USB0_DMACOUNT6_R (*((volatile uint32_t *)0x4005026C))
  1306. #define USB0_DMACTL7_R (*((volatile uint16_t *)0x40050274))
  1307. #define USB0_DMAADDR7_R (*((volatile uint32_t *)0x40050278))
  1308. #define USB0_DMACOUNT7_R (*((volatile uint32_t *)0x4005027C))
  1309. #define USB0_RQPKTCOUNT1_R (*((volatile uint16_t *)0x40050304))
  1310. #define USB0_RQPKTCOUNT2_R (*((volatile uint16_t *)0x40050308))
  1311. #define USB0_RQPKTCOUNT3_R (*((volatile uint16_t *)0x4005030C))
  1312. #define USB0_RQPKTCOUNT4_R (*((volatile uint16_t *)0x40050310))
  1313. #define USB0_RQPKTCOUNT5_R (*((volatile uint16_t *)0x40050314))
  1314. #define USB0_RQPKTCOUNT6_R (*((volatile uint16_t *)0x40050318))
  1315. #define USB0_RQPKTCOUNT7_R (*((volatile uint16_t *)0x4005031C))
  1316. #define USB0_RXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050340))
  1317. #define USB0_TXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050342))
  1318. #define USB0_CTO_R (*((volatile uint16_t *)0x40050344))
  1319. #define USB0_HHSRTN_R (*((volatile uint16_t *)0x40050346))
  1320. #define USB0_HSBT_R (*((volatile uint16_t *)0x40050348))
  1321. #define USB0_LPMATTR_R (*((volatile uint16_t *)0x40050360))
  1322. #define USB0_LPMCNTRL_R (*((volatile uint8_t *)0x40050362))
  1323. #define USB0_LPMIM_R (*((volatile uint8_t *)0x40050363))
  1324. #define USB0_LPMRIS_R (*((volatile uint8_t *)0x40050364))
  1325. #define USB0_LPMFADDR_R (*((volatile uint8_t *)0x40050365))
  1326. #define USB0_EPC_R (*((volatile uint32_t *)0x40050400))
  1327. #define USB0_EPCRIS_R (*((volatile uint32_t *)0x40050404))
  1328. #define USB0_EPCIM_R (*((volatile uint32_t *)0x40050408))
  1329. #define USB0_EPCISC_R (*((volatile uint32_t *)0x4005040C))
  1330. #define USB0_DRRIS_R (*((volatile uint32_t *)0x40050410))
  1331. #define USB0_DRIM_R (*((volatile uint32_t *)0x40050414))
  1332. #define USB0_DRISC_R (*((volatile uint32_t *)0x40050418))
  1333. #define USB0_GPCS_R (*((volatile uint32_t *)0x4005041C))
  1334. #define USB0_VDC_R (*((volatile uint32_t *)0x40050430))
  1335. #define USB0_VDCRIS_R (*((volatile uint32_t *)0x40050434))
  1336. #define USB0_VDCIM_R (*((volatile uint32_t *)0x40050438))
  1337. #define USB0_VDCISC_R (*((volatile uint32_t *)0x4005043C))
  1338. #define USB0_PP_R (*((volatile uint32_t *)0x40050FC0))
  1339. #define USB0_PC_R (*((volatile uint32_t *)0x40050FC4))
  1340. #define USB0_CC_R (*((volatile uint32_t *)0x40050FC8))
  1341. //*****************************************************************************
  1342. //
  1343. // GPIO registers (PORTA AHB)
  1344. //
  1345. //*****************************************************************************
  1346. #define GPIO_PORTA_AHB_DATA_BITS_R \
  1347. ((volatile uint32_t *)0x40058000)
  1348. #define GPIO_PORTA_AHB_DATA_R (*((volatile uint32_t *)0x400583FC))
  1349. #define GPIO_PORTA_AHB_DIR_R (*((volatile uint32_t *)0x40058400))
  1350. #define GPIO_PORTA_AHB_IS_R (*((volatile uint32_t *)0x40058404))
  1351. #define GPIO_PORTA_AHB_IBE_R (*((volatile uint32_t *)0x40058408))
  1352. #define GPIO_PORTA_AHB_IEV_R (*((volatile uint32_t *)0x4005840C))
  1353. #define GPIO_PORTA_AHB_IM_R (*((volatile uint32_t *)0x40058410))
  1354. #define GPIO_PORTA_AHB_RIS_R (*((volatile uint32_t *)0x40058414))
  1355. #define GPIO_PORTA_AHB_MIS_R (*((volatile uint32_t *)0x40058418))
  1356. #define GPIO_PORTA_AHB_ICR_R (*((volatile uint32_t *)0x4005841C))
  1357. #define GPIO_PORTA_AHB_AFSEL_R (*((volatile uint32_t *)0x40058420))
  1358. #define GPIO_PORTA_AHB_DR2R_R (*((volatile uint32_t *)0x40058500))
  1359. #define GPIO_PORTA_AHB_DR4R_R (*((volatile uint32_t *)0x40058504))
  1360. #define GPIO_PORTA_AHB_DR8R_R (*((volatile uint32_t *)0x40058508))
  1361. #define GPIO_PORTA_AHB_ODR_R (*((volatile uint32_t *)0x4005850C))
  1362. #define GPIO_PORTA_AHB_PUR_R (*((volatile uint32_t *)0x40058510))
  1363. #define GPIO_PORTA_AHB_PDR_R (*((volatile uint32_t *)0x40058514))
  1364. #define GPIO_PORTA_AHB_SLR_R (*((volatile uint32_t *)0x40058518))
  1365. #define GPIO_PORTA_AHB_DEN_R (*((volatile uint32_t *)0x4005851C))
  1366. #define GPIO_PORTA_AHB_LOCK_R (*((volatile uint32_t *)0x40058520))
  1367. #define GPIO_PORTA_AHB_CR_R (*((volatile uint32_t *)0x40058524))
  1368. #define GPIO_PORTA_AHB_AMSEL_R (*((volatile uint32_t *)0x40058528))
  1369. #define GPIO_PORTA_AHB_PCTL_R (*((volatile uint32_t *)0x4005852C))
  1370. #define GPIO_PORTA_AHB_ADCCTL_R (*((volatile uint32_t *)0x40058530))
  1371. #define GPIO_PORTA_AHB_DMACTL_R (*((volatile uint32_t *)0x40058534))
  1372. #define GPIO_PORTA_AHB_SI_R (*((volatile uint32_t *)0x40058538))
  1373. #define GPIO_PORTA_AHB_DR12R_R (*((volatile uint32_t *)0x4005853C))
  1374. #define GPIO_PORTA_AHB_WAKEPEN_R \
  1375. (*((volatile uint32_t *)0x40058540))
  1376. #define GPIO_PORTA_AHB_WAKELVL_R \
  1377. (*((volatile uint32_t *)0x40058544))
  1378. #define GPIO_PORTA_AHB_WAKESTAT_R \
  1379. (*((volatile uint32_t *)0x40058548))
  1380. #define GPIO_PORTA_AHB_PP_R (*((volatile uint32_t *)0x40058FC0))
  1381. #define GPIO_PORTA_AHB_PC_R (*((volatile uint32_t *)0x40058FC4))
  1382. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1383. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1384. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1385. //*****************************************************************************
  1386. //
  1387. // GPIO registers (PORTB AHB)
  1388. //
  1389. //*****************************************************************************
  1390. #define GPIO_PORTB_AHB_DATA_BITS_R \
  1391. ((volatile uint32_t *)0x40059000)
  1392. #define GPIO_PORTB_AHB_DATA_R (*((volatile uint32_t *)0x400593FC))
  1393. #define GPIO_PORTB_AHB_DIR_R (*((volatile uint32_t *)0x40059400))
  1394. #define GPIO_PORTB_AHB_IS_R (*((volatile uint32_t *)0x40059404))
  1395. #define GPIO_PORTB_AHB_IBE_R (*((volatile uint32_t *)0x40059408))
  1396. #define GPIO_PORTB_AHB_IEV_R (*((volatile uint32_t *)0x4005940C))
  1397. #define GPIO_PORTB_AHB_IM_R (*((volatile uint32_t *)0x40059410))
  1398. #define GPIO_PORTB_AHB_RIS_R (*((volatile uint32_t *)0x40059414))
  1399. #define GPIO_PORTB_AHB_MIS_R (*((volatile uint32_t *)0x40059418))
  1400. #define GPIO_PORTB_AHB_ICR_R (*((volatile uint32_t *)0x4005941C))
  1401. #define GPIO_PORTB_AHB_AFSEL_R (*((volatile uint32_t *)0x40059420))
  1402. #define GPIO_PORTB_AHB_DR2R_R (*((volatile uint32_t *)0x40059500))
  1403. #define GPIO_PORTB_AHB_DR4R_R (*((volatile uint32_t *)0x40059504))
  1404. #define GPIO_PORTB_AHB_DR8R_R (*((volatile uint32_t *)0x40059508))
  1405. #define GPIO_PORTB_AHB_ODR_R (*((volatile uint32_t *)0x4005950C))
  1406. #define GPIO_PORTB_AHB_PUR_R (*((volatile uint32_t *)0x40059510))
  1407. #define GPIO_PORTB_AHB_PDR_R (*((volatile uint32_t *)0x40059514))
  1408. #define GPIO_PORTB_AHB_SLR_R (*((volatile uint32_t *)0x40059518))
  1409. #define GPIO_PORTB_AHB_DEN_R (*((volatile uint32_t *)0x4005951C))
  1410. #define GPIO_PORTB_AHB_LOCK_R (*((volatile uint32_t *)0x40059520))
  1411. #define GPIO_PORTB_AHB_CR_R (*((volatile uint32_t *)0x40059524))
  1412. #define GPIO_PORTB_AHB_AMSEL_R (*((volatile uint32_t *)0x40059528))
  1413. #define GPIO_PORTB_AHB_PCTL_R (*((volatile uint32_t *)0x4005952C))
  1414. #define GPIO_PORTB_AHB_ADCCTL_R (*((volatile uint32_t *)0x40059530))
  1415. #define GPIO_PORTB_AHB_DMACTL_R (*((volatile uint32_t *)0x40059534))
  1416. #define GPIO_PORTB_AHB_SI_R (*((volatile uint32_t *)0x40059538))
  1417. #define GPIO_PORTB_AHB_DR12R_R (*((volatile uint32_t *)0x4005953C))
  1418. #define GPIO_PORTB_AHB_WAKEPEN_R \
  1419. (*((volatile uint32_t *)0x40059540))
  1420. #define GPIO_PORTB_AHB_WAKELVL_R \
  1421. (*((volatile uint32_t *)0x40059544))
  1422. #define GPIO_PORTB_AHB_WAKESTAT_R \
  1423. (*((volatile uint32_t *)0x40059548))
  1424. #define GPIO_PORTB_AHB_PP_R (*((volatile uint32_t *)0x40059FC0))
  1425. #define GPIO_PORTB_AHB_PC_R (*((volatile uint32_t *)0x40059FC4))
  1426. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1427. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1428. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1429. //*****************************************************************************
  1430. //
  1431. // GPIO registers (PORTC AHB)
  1432. //
  1433. //*****************************************************************************
  1434. #define GPIO_PORTC_AHB_DATA_BITS_R \
  1435. ((volatile uint32_t *)0x4005A000)
  1436. #define GPIO_PORTC_AHB_DATA_R (*((volatile uint32_t *)0x4005A3FC))
  1437. #define GPIO_PORTC_AHB_DIR_R (*((volatile uint32_t *)0x4005A400))
  1438. #define GPIO_PORTC_AHB_IS_R (*((volatile uint32_t *)0x4005A404))
  1439. #define GPIO_PORTC_AHB_IBE_R (*((volatile uint32_t *)0x4005A408))
  1440. #define GPIO_PORTC_AHB_IEV_R (*((volatile uint32_t *)0x4005A40C))
  1441. #define GPIO_PORTC_AHB_IM_R (*((volatile uint32_t *)0x4005A410))
  1442. #define GPIO_PORTC_AHB_RIS_R (*((volatile uint32_t *)0x4005A414))
  1443. #define GPIO_PORTC_AHB_MIS_R (*((volatile uint32_t *)0x4005A418))
  1444. #define GPIO_PORTC_AHB_ICR_R (*((volatile uint32_t *)0x4005A41C))
  1445. #define GPIO_PORTC_AHB_AFSEL_R (*((volatile uint32_t *)0x4005A420))
  1446. #define GPIO_PORTC_AHB_DR2R_R (*((volatile uint32_t *)0x4005A500))
  1447. #define GPIO_PORTC_AHB_DR4R_R (*((volatile uint32_t *)0x4005A504))
  1448. #define GPIO_PORTC_AHB_DR8R_R (*((volatile uint32_t *)0x4005A508))
  1449. #define GPIO_PORTC_AHB_ODR_R (*((volatile uint32_t *)0x4005A50C))
  1450. #define GPIO_PORTC_AHB_PUR_R (*((volatile uint32_t *)0x4005A510))
  1451. #define GPIO_PORTC_AHB_PDR_R (*((volatile uint32_t *)0x4005A514))
  1452. #define GPIO_PORTC_AHB_SLR_R (*((volatile uint32_t *)0x4005A518))
  1453. #define GPIO_PORTC_AHB_DEN_R (*((volatile uint32_t *)0x4005A51C))
  1454. #define GPIO_PORTC_AHB_LOCK_R (*((volatile uint32_t *)0x4005A520))
  1455. #define GPIO_PORTC_AHB_CR_R (*((volatile uint32_t *)0x4005A524))
  1456. #define GPIO_PORTC_AHB_AMSEL_R (*((volatile uint32_t *)0x4005A528))
  1457. #define GPIO_PORTC_AHB_PCTL_R (*((volatile uint32_t *)0x4005A52C))
  1458. #define GPIO_PORTC_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005A530))
  1459. #define GPIO_PORTC_AHB_DMACTL_R (*((volatile uint32_t *)0x4005A534))
  1460. #define GPIO_PORTC_AHB_SI_R (*((volatile uint32_t *)0x4005A538))
  1461. #define GPIO_PORTC_AHB_DR12R_R (*((volatile uint32_t *)0x4005A53C))
  1462. #define GPIO_PORTC_AHB_WAKEPEN_R \
  1463. (*((volatile uint32_t *)0x4005A540))
  1464. #define GPIO_PORTC_AHB_WAKELVL_R \
  1465. (*((volatile uint32_t *)0x4005A544))
  1466. #define GPIO_PORTC_AHB_WAKESTAT_R \
  1467. (*((volatile uint32_t *)0x4005A548))
  1468. #define GPIO_PORTC_AHB_PP_R (*((volatile uint32_t *)0x4005AFC0))
  1469. #define GPIO_PORTC_AHB_PC_R (*((volatile uint32_t *)0x4005AFC4))
  1470. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1471. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1472. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1473. //*****************************************************************************
  1474. //
  1475. // GPIO registers (PORTD AHB)
  1476. //
  1477. //*****************************************************************************
  1478. #define GPIO_PORTD_AHB_DATA_BITS_R \
  1479. ((volatile uint32_t *)0x4005B000)
  1480. #define GPIO_PORTD_AHB_DATA_R (*((volatile uint32_t *)0x4005B3FC))
  1481. #define GPIO_PORTD_AHB_DIR_R (*((volatile uint32_t *)0x4005B400))
  1482. #define GPIO_PORTD_AHB_IS_R (*((volatile uint32_t *)0x4005B404))
  1483. #define GPIO_PORTD_AHB_IBE_R (*((volatile uint32_t *)0x4005B408))
  1484. #define GPIO_PORTD_AHB_IEV_R (*((volatile uint32_t *)0x4005B40C))
  1485. #define GPIO_PORTD_AHB_IM_R (*((volatile uint32_t *)0x4005B410))
  1486. #define GPIO_PORTD_AHB_RIS_R (*((volatile uint32_t *)0x4005B414))
  1487. #define GPIO_PORTD_AHB_MIS_R (*((volatile uint32_t *)0x4005B418))
  1488. #define GPIO_PORTD_AHB_ICR_R (*((volatile uint32_t *)0x4005B41C))
  1489. #define GPIO_PORTD_AHB_AFSEL_R (*((volatile uint32_t *)0x4005B420))
  1490. #define GPIO_PORTD_AHB_DR2R_R (*((volatile uint32_t *)0x4005B500))
  1491. #define GPIO_PORTD_AHB_DR4R_R (*((volatile uint32_t *)0x4005B504))
  1492. #define GPIO_PORTD_AHB_DR8R_R (*((volatile uint32_t *)0x4005B508))
  1493. #define GPIO_PORTD_AHB_ODR_R (*((volatile uint32_t *)0x4005B50C))
  1494. #define GPIO_PORTD_AHB_PUR_R (*((volatile uint32_t *)0x4005B510))
  1495. #define GPIO_PORTD_AHB_PDR_R (*((volatile uint32_t *)0x4005B514))
  1496. #define GPIO_PORTD_AHB_SLR_R (*((volatile uint32_t *)0x4005B518))
  1497. #define GPIO_PORTD_AHB_DEN_R (*((volatile uint32_t *)0x4005B51C))
  1498. #define GPIO_PORTD_AHB_LOCK_R (*((volatile uint32_t *)0x4005B520))
  1499. #define GPIO_PORTD_AHB_CR_R (*((volatile uint32_t *)0x4005B524))
  1500. #define GPIO_PORTD_AHB_AMSEL_R (*((volatile uint32_t *)0x4005B528))
  1501. #define GPIO_PORTD_AHB_PCTL_R (*((volatile uint32_t *)0x4005B52C))
  1502. #define GPIO_PORTD_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005B530))
  1503. #define GPIO_PORTD_AHB_DMACTL_R (*((volatile uint32_t *)0x4005B534))
  1504. #define GPIO_PORTD_AHB_SI_R (*((volatile uint32_t *)0x4005B538))
  1505. #define GPIO_PORTD_AHB_DR12R_R (*((volatile uint32_t *)0x4005B53C))
  1506. #define GPIO_PORTD_AHB_WAKEPEN_R \
  1507. (*((volatile uint32_t *)0x4005B540))
  1508. #define GPIO_PORTD_AHB_WAKELVL_R \
  1509. (*((volatile uint32_t *)0x4005B544))
  1510. #define GPIO_PORTD_AHB_WAKESTAT_R \
  1511. (*((volatile uint32_t *)0x4005B548))
  1512. #define GPIO_PORTD_AHB_PP_R (*((volatile uint32_t *)0x4005BFC0))
  1513. #define GPIO_PORTD_AHB_PC_R (*((volatile uint32_t *)0x4005BFC4))
  1514. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1515. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1516. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1517. //*****************************************************************************
  1518. //
  1519. // GPIO registers (PORTE AHB)
  1520. //
  1521. //*****************************************************************************
  1522. #define GPIO_PORTE_AHB_DATA_BITS_R \
  1523. ((volatile uint32_t *)0x4005C000)
  1524. #define GPIO_PORTE_AHB_DATA_R (*((volatile uint32_t *)0x4005C3FC))
  1525. #define GPIO_PORTE_AHB_DIR_R (*((volatile uint32_t *)0x4005C400))
  1526. #define GPIO_PORTE_AHB_IS_R (*((volatile uint32_t *)0x4005C404))
  1527. #define GPIO_PORTE_AHB_IBE_R (*((volatile uint32_t *)0x4005C408))
  1528. #define GPIO_PORTE_AHB_IEV_R (*((volatile uint32_t *)0x4005C40C))
  1529. #define GPIO_PORTE_AHB_IM_R (*((volatile uint32_t *)0x4005C410))
  1530. #define GPIO_PORTE_AHB_RIS_R (*((volatile uint32_t *)0x4005C414))
  1531. #define GPIO_PORTE_AHB_MIS_R (*((volatile uint32_t *)0x4005C418))
  1532. #define GPIO_PORTE_AHB_ICR_R (*((volatile uint32_t *)0x4005C41C))
  1533. #define GPIO_PORTE_AHB_AFSEL_R (*((volatile uint32_t *)0x4005C420))
  1534. #define GPIO_PORTE_AHB_DR2R_R (*((volatile uint32_t *)0x4005C500))
  1535. #define GPIO_PORTE_AHB_DR4R_R (*((volatile uint32_t *)0x4005C504))
  1536. #define GPIO_PORTE_AHB_DR8R_R (*((volatile uint32_t *)0x4005C508))
  1537. #define GPIO_PORTE_AHB_ODR_R (*((volatile uint32_t *)0x4005C50C))
  1538. #define GPIO_PORTE_AHB_PUR_R (*((volatile uint32_t *)0x4005C510))
  1539. #define GPIO_PORTE_AHB_PDR_R (*((volatile uint32_t *)0x4005C514))
  1540. #define GPIO_PORTE_AHB_SLR_R (*((volatile uint32_t *)0x4005C518))
  1541. #define GPIO_PORTE_AHB_DEN_R (*((volatile uint32_t *)0x4005C51C))
  1542. #define GPIO_PORTE_AHB_LOCK_R (*((volatile uint32_t *)0x4005C520))
  1543. #define GPIO_PORTE_AHB_CR_R (*((volatile uint32_t *)0x4005C524))
  1544. #define GPIO_PORTE_AHB_AMSEL_R (*((volatile uint32_t *)0x4005C528))
  1545. #define GPIO_PORTE_AHB_PCTL_R (*((volatile uint32_t *)0x4005C52C))
  1546. #define GPIO_PORTE_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005C530))
  1547. #define GPIO_PORTE_AHB_DMACTL_R (*((volatile uint32_t *)0x4005C534))
  1548. #define GPIO_PORTE_AHB_SI_R (*((volatile uint32_t *)0x4005C538))
  1549. #define GPIO_PORTE_AHB_DR12R_R (*((volatile uint32_t *)0x4005C53C))
  1550. #define GPIO_PORTE_AHB_WAKEPEN_R \
  1551. (*((volatile uint32_t *)0x4005C540))
  1552. #define GPIO_PORTE_AHB_WAKELVL_R \
  1553. (*((volatile uint32_t *)0x4005C544))
  1554. #define GPIO_PORTE_AHB_WAKESTAT_R \
  1555. (*((volatile uint32_t *)0x4005C548))
  1556. #define GPIO_PORTE_AHB_PP_R (*((volatile uint32_t *)0x4005CFC0))
  1557. #define GPIO_PORTE_AHB_PC_R (*((volatile uint32_t *)0x4005CFC4))
  1558. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1559. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1560. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1561. //*****************************************************************************
  1562. //
  1563. // GPIO registers (PORTF AHB)
  1564. //
  1565. //*****************************************************************************
  1566. #define GPIO_PORTF_AHB_DATA_BITS_R \
  1567. ((volatile uint32_t *)0x4005D000)
  1568. #define GPIO_PORTF_AHB_DATA_R (*((volatile uint32_t *)0x4005D3FC))
  1569. #define GPIO_PORTF_AHB_DIR_R (*((volatile uint32_t *)0x4005D400))
  1570. #define GPIO_PORTF_AHB_IS_R (*((volatile uint32_t *)0x4005D404))
  1571. #define GPIO_PORTF_AHB_IBE_R (*((volatile uint32_t *)0x4005D408))
  1572. #define GPIO_PORTF_AHB_IEV_R (*((volatile uint32_t *)0x4005D40C))
  1573. #define GPIO_PORTF_AHB_IM_R (*((volatile uint32_t *)0x4005D410))
  1574. #define GPIO_PORTF_AHB_RIS_R (*((volatile uint32_t *)0x4005D414))
  1575. #define GPIO_PORTF_AHB_MIS_R (*((volatile uint32_t *)0x4005D418))
  1576. #define GPIO_PORTF_AHB_ICR_R (*((volatile uint32_t *)0x4005D41C))
  1577. #define GPIO_PORTF_AHB_AFSEL_R (*((volatile uint32_t *)0x4005D420))
  1578. #define GPIO_PORTF_AHB_DR2R_R (*((volatile uint32_t *)0x4005D500))
  1579. #define GPIO_PORTF_AHB_DR4R_R (*((volatile uint32_t *)0x4005D504))
  1580. #define GPIO_PORTF_AHB_DR8R_R (*((volatile uint32_t *)0x4005D508))
  1581. #define GPIO_PORTF_AHB_ODR_R (*((volatile uint32_t *)0x4005D50C))
  1582. #define GPIO_PORTF_AHB_PUR_R (*((volatile uint32_t *)0x4005D510))
  1583. #define GPIO_PORTF_AHB_PDR_R (*((volatile uint32_t *)0x4005D514))
  1584. #define GPIO_PORTF_AHB_SLR_R (*((volatile uint32_t *)0x4005D518))
  1585. #define GPIO_PORTF_AHB_DEN_R (*((volatile uint32_t *)0x4005D51C))
  1586. #define GPIO_PORTF_AHB_LOCK_R (*((volatile uint32_t *)0x4005D520))
  1587. #define GPIO_PORTF_AHB_CR_R (*((volatile uint32_t *)0x4005D524))
  1588. #define GPIO_PORTF_AHB_AMSEL_R (*((volatile uint32_t *)0x4005D528))
  1589. #define GPIO_PORTF_AHB_PCTL_R (*((volatile uint32_t *)0x4005D52C))
  1590. #define GPIO_PORTF_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005D530))
  1591. #define GPIO_PORTF_AHB_DMACTL_R (*((volatile uint32_t *)0x4005D534))
  1592. #define GPIO_PORTF_AHB_SI_R (*((volatile uint32_t *)0x4005D538))
  1593. #define GPIO_PORTF_AHB_DR12R_R (*((volatile uint32_t *)0x4005D53C))
  1594. #define GPIO_PORTF_AHB_WAKEPEN_R \
  1595. (*((volatile uint32_t *)0x4005D540))
  1596. #define GPIO_PORTF_AHB_WAKELVL_R \
  1597. (*((volatile uint32_t *)0x4005D544))
  1598. #define GPIO_PORTF_AHB_WAKESTAT_R \
  1599. (*((volatile uint32_t *)0x4005D548))
  1600. #define GPIO_PORTF_AHB_PP_R (*((volatile uint32_t *)0x4005DFC0))
  1601. #define GPIO_PORTF_AHB_PC_R (*((volatile uint32_t *)0x4005DFC4))
  1602. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1603. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1604. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1605. //*****************************************************************************
  1606. //
  1607. // GPIO registers (PORTG AHB)
  1608. //
  1609. //*****************************************************************************
  1610. #define GPIO_PORTG_AHB_DATA_BITS_R \
  1611. ((volatile uint32_t *)0x4005E000)
  1612. #define GPIO_PORTG_AHB_DATA_R (*((volatile uint32_t *)0x4005E3FC))
  1613. #define GPIO_PORTG_AHB_DIR_R (*((volatile uint32_t *)0x4005E400))
  1614. #define GPIO_PORTG_AHB_IS_R (*((volatile uint32_t *)0x4005E404))
  1615. #define GPIO_PORTG_AHB_IBE_R (*((volatile uint32_t *)0x4005E408))
  1616. #define GPIO_PORTG_AHB_IEV_R (*((volatile uint32_t *)0x4005E40C))
  1617. #define GPIO_PORTG_AHB_IM_R (*((volatile uint32_t *)0x4005E410))
  1618. #define GPIO_PORTG_AHB_RIS_R (*((volatile uint32_t *)0x4005E414))
  1619. #define GPIO_PORTG_AHB_MIS_R (*((volatile uint32_t *)0x4005E418))
  1620. #define GPIO_PORTG_AHB_ICR_R (*((volatile uint32_t *)0x4005E41C))
  1621. #define GPIO_PORTG_AHB_AFSEL_R (*((volatile uint32_t *)0x4005E420))
  1622. #define GPIO_PORTG_AHB_DR2R_R (*((volatile uint32_t *)0x4005E500))
  1623. #define GPIO_PORTG_AHB_DR4R_R (*((volatile uint32_t *)0x4005E504))
  1624. #define GPIO_PORTG_AHB_DR8R_R (*((volatile uint32_t *)0x4005E508))
  1625. #define GPIO_PORTG_AHB_ODR_R (*((volatile uint32_t *)0x4005E50C))
  1626. #define GPIO_PORTG_AHB_PUR_R (*((volatile uint32_t *)0x4005E510))
  1627. #define GPIO_PORTG_AHB_PDR_R (*((volatile uint32_t *)0x4005E514))
  1628. #define GPIO_PORTG_AHB_SLR_R (*((volatile uint32_t *)0x4005E518))
  1629. #define GPIO_PORTG_AHB_DEN_R (*((volatile uint32_t *)0x4005E51C))
  1630. #define GPIO_PORTG_AHB_LOCK_R (*((volatile uint32_t *)0x4005E520))
  1631. #define GPIO_PORTG_AHB_CR_R (*((volatile uint32_t *)0x4005E524))
  1632. #define GPIO_PORTG_AHB_AMSEL_R (*((volatile uint32_t *)0x4005E528))
  1633. #define GPIO_PORTG_AHB_PCTL_R (*((volatile uint32_t *)0x4005E52C))
  1634. #define GPIO_PORTG_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005E530))
  1635. #define GPIO_PORTG_AHB_DMACTL_R (*((volatile uint32_t *)0x4005E534))
  1636. #define GPIO_PORTG_AHB_SI_R (*((volatile uint32_t *)0x4005E538))
  1637. #define GPIO_PORTG_AHB_DR12R_R (*((volatile uint32_t *)0x4005E53C))
  1638. #define GPIO_PORTG_AHB_WAKEPEN_R \
  1639. (*((volatile uint32_t *)0x4005E540))
  1640. #define GPIO_PORTG_AHB_WAKELVL_R \
  1641. (*((volatile uint32_t *)0x4005E544))
  1642. #define GPIO_PORTG_AHB_WAKESTAT_R \
  1643. (*((volatile uint32_t *)0x4005E548))
  1644. #define GPIO_PORTG_AHB_PP_R (*((volatile uint32_t *)0x4005EFC0))
  1645. #define GPIO_PORTG_AHB_PC_R (*((volatile uint32_t *)0x4005EFC4))
  1646. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1647. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1648. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1649. //*****************************************************************************
  1650. //
  1651. // GPIO registers (PORTH AHB)
  1652. //
  1653. //*****************************************************************************
  1654. #define GPIO_PORTH_AHB_DATA_BITS_R \
  1655. ((volatile uint32_t *)0x4005F000)
  1656. #define GPIO_PORTH_AHB_DATA_R (*((volatile uint32_t *)0x4005F3FC))
  1657. #define GPIO_PORTH_AHB_DIR_R (*((volatile uint32_t *)0x4005F400))
  1658. #define GPIO_PORTH_AHB_IS_R (*((volatile uint32_t *)0x4005F404))
  1659. #define GPIO_PORTH_AHB_IBE_R (*((volatile uint32_t *)0x4005F408))
  1660. #define GPIO_PORTH_AHB_IEV_R (*((volatile uint32_t *)0x4005F40C))
  1661. #define GPIO_PORTH_AHB_IM_R (*((volatile uint32_t *)0x4005F410))
  1662. #define GPIO_PORTH_AHB_RIS_R (*((volatile uint32_t *)0x4005F414))
  1663. #define GPIO_PORTH_AHB_MIS_R (*((volatile uint32_t *)0x4005F418))
  1664. #define GPIO_PORTH_AHB_ICR_R (*((volatile uint32_t *)0x4005F41C))
  1665. #define GPIO_PORTH_AHB_AFSEL_R (*((volatile uint32_t *)0x4005F420))
  1666. #define GPIO_PORTH_AHB_DR2R_R (*((volatile uint32_t *)0x4005F500))
  1667. #define GPIO_PORTH_AHB_DR4R_R (*((volatile uint32_t *)0x4005F504))
  1668. #define GPIO_PORTH_AHB_DR8R_R (*((volatile uint32_t *)0x4005F508))
  1669. #define GPIO_PORTH_AHB_ODR_R (*((volatile uint32_t *)0x4005F50C))
  1670. #define GPIO_PORTH_AHB_PUR_R (*((volatile uint32_t *)0x4005F510))
  1671. #define GPIO_PORTH_AHB_PDR_R (*((volatile uint32_t *)0x4005F514))
  1672. #define GPIO_PORTH_AHB_SLR_R (*((volatile uint32_t *)0x4005F518))
  1673. #define GPIO_PORTH_AHB_DEN_R (*((volatile uint32_t *)0x4005F51C))
  1674. #define GPIO_PORTH_AHB_LOCK_R (*((volatile uint32_t *)0x4005F520))
  1675. #define GPIO_PORTH_AHB_CR_R (*((volatile uint32_t *)0x4005F524))
  1676. #define GPIO_PORTH_AHB_AMSEL_R (*((volatile uint32_t *)0x4005F528))
  1677. #define GPIO_PORTH_AHB_PCTL_R (*((volatile uint32_t *)0x4005F52C))
  1678. #define GPIO_PORTH_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005F530))
  1679. #define GPIO_PORTH_AHB_DMACTL_R (*((volatile uint32_t *)0x4005F534))
  1680. #define GPIO_PORTH_AHB_SI_R (*((volatile uint32_t *)0x4005F538))
  1681. #define GPIO_PORTH_AHB_DR12R_R (*((volatile uint32_t *)0x4005F53C))
  1682. #define GPIO_PORTH_AHB_WAKEPEN_R \
  1683. (*((volatile uint32_t *)0x4005F540))
  1684. #define GPIO_PORTH_AHB_WAKELVL_R \
  1685. (*((volatile uint32_t *)0x4005F544))
  1686. #define GPIO_PORTH_AHB_WAKESTAT_R \
  1687. (*((volatile uint32_t *)0x4005F548))
  1688. #define GPIO_PORTH_AHB_PP_R (*((volatile uint32_t *)0x4005FFC0))
  1689. #define GPIO_PORTH_AHB_PC_R (*((volatile uint32_t *)0x4005FFC4))
  1690. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1691. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1692. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1693. //*****************************************************************************
  1694. //
  1695. // GPIO registers (PORTJ AHB)
  1696. //
  1697. //*****************************************************************************
  1698. #define GPIO_PORTJ_AHB_DATA_BITS_R \
  1699. ((volatile uint32_t *)0x40060000)
  1700. #define GPIO_PORTJ_AHB_DATA_R (*((volatile uint32_t *)0x400603FC))
  1701. #define GPIO_PORTJ_AHB_DIR_R (*((volatile uint32_t *)0x40060400))
  1702. #define GPIO_PORTJ_AHB_IS_R (*((volatile uint32_t *)0x40060404))
  1703. #define GPIO_PORTJ_AHB_IBE_R (*((volatile uint32_t *)0x40060408))
  1704. #define GPIO_PORTJ_AHB_IEV_R (*((volatile uint32_t *)0x4006040C))
  1705. #define GPIO_PORTJ_AHB_IM_R (*((volatile uint32_t *)0x40060410))
  1706. #define GPIO_PORTJ_AHB_RIS_R (*((volatile uint32_t *)0x40060414))
  1707. #define GPIO_PORTJ_AHB_MIS_R (*((volatile uint32_t *)0x40060418))
  1708. #define GPIO_PORTJ_AHB_ICR_R (*((volatile uint32_t *)0x4006041C))
  1709. #define GPIO_PORTJ_AHB_AFSEL_R (*((volatile uint32_t *)0x40060420))
  1710. #define GPIO_PORTJ_AHB_DR2R_R (*((volatile uint32_t *)0x40060500))
  1711. #define GPIO_PORTJ_AHB_DR4R_R (*((volatile uint32_t *)0x40060504))
  1712. #define GPIO_PORTJ_AHB_DR8R_R (*((volatile uint32_t *)0x40060508))
  1713. #define GPIO_PORTJ_AHB_ODR_R (*((volatile uint32_t *)0x4006050C))
  1714. #define GPIO_PORTJ_AHB_PUR_R (*((volatile uint32_t *)0x40060510))
  1715. #define GPIO_PORTJ_AHB_PDR_R (*((volatile uint32_t *)0x40060514))
  1716. #define GPIO_PORTJ_AHB_SLR_R (*((volatile uint32_t *)0x40060518))
  1717. #define GPIO_PORTJ_AHB_DEN_R (*((volatile uint32_t *)0x4006051C))
  1718. #define GPIO_PORTJ_AHB_LOCK_R (*((volatile uint32_t *)0x40060520))
  1719. #define GPIO_PORTJ_AHB_CR_R (*((volatile uint32_t *)0x40060524))
  1720. #define GPIO_PORTJ_AHB_AMSEL_R (*((volatile uint32_t *)0x40060528))
  1721. #define GPIO_PORTJ_AHB_PCTL_R (*((volatile uint32_t *)0x4006052C))
  1722. #define GPIO_PORTJ_AHB_ADCCTL_R (*((volatile uint32_t *)0x40060530))
  1723. #define GPIO_PORTJ_AHB_DMACTL_R (*((volatile uint32_t *)0x40060534))
  1724. #define GPIO_PORTJ_AHB_SI_R (*((volatile uint32_t *)0x40060538))
  1725. #define GPIO_PORTJ_AHB_DR12R_R (*((volatile uint32_t *)0x4006053C))
  1726. #define GPIO_PORTJ_AHB_WAKEPEN_R \
  1727. (*((volatile uint32_t *)0x40060540))
  1728. #define GPIO_PORTJ_AHB_WAKELVL_R \
  1729. (*((volatile uint32_t *)0x40060544))
  1730. #define GPIO_PORTJ_AHB_WAKESTAT_R \
  1731. (*((volatile uint32_t *)0x40060548))
  1732. #define GPIO_PORTJ_AHB_PP_R (*((volatile uint32_t *)0x40060FC0))
  1733. #define GPIO_PORTJ_AHB_PC_R (*((volatile uint32_t *)0x40060FC4))
  1734. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1735. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1736. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1737. //*****************************************************************************
  1738. //
  1739. // GPIO registers (PORTK)
  1740. //
  1741. //*****************************************************************************
  1742. #define GPIO_PORTK_DATA_BITS_R ((volatile uint32_t *)0x40061000)
  1743. #define GPIO_PORTK_DATA_R (*((volatile uint32_t *)0x400613FC))
  1744. #define GPIO_PORTK_DIR_R (*((volatile uint32_t *)0x40061400))
  1745. #define GPIO_PORTK_IS_R (*((volatile uint32_t *)0x40061404))
  1746. #define GPIO_PORTK_IBE_R (*((volatile uint32_t *)0x40061408))
  1747. #define GPIO_PORTK_IEV_R (*((volatile uint32_t *)0x4006140C))
  1748. #define GPIO_PORTK_IM_R (*((volatile uint32_t *)0x40061410))
  1749. #define GPIO_PORTK_RIS_R (*((volatile uint32_t *)0x40061414))
  1750. #define GPIO_PORTK_MIS_R (*((volatile uint32_t *)0x40061418))
  1751. #define GPIO_PORTK_ICR_R (*((volatile uint32_t *)0x4006141C))
  1752. #define GPIO_PORTK_AFSEL_R (*((volatile uint32_t *)0x40061420))
  1753. #define GPIO_PORTK_DR2R_R (*((volatile uint32_t *)0x40061500))
  1754. #define GPIO_PORTK_DR4R_R (*((volatile uint32_t *)0x40061504))
  1755. #define GPIO_PORTK_DR8R_R (*((volatile uint32_t *)0x40061508))
  1756. #define GPIO_PORTK_ODR_R (*((volatile uint32_t *)0x4006150C))
  1757. #define GPIO_PORTK_PUR_R (*((volatile uint32_t *)0x40061510))
  1758. #define GPIO_PORTK_PDR_R (*((volatile uint32_t *)0x40061514))
  1759. #define GPIO_PORTK_SLR_R (*((volatile uint32_t *)0x40061518))
  1760. #define GPIO_PORTK_DEN_R (*((volatile uint32_t *)0x4006151C))
  1761. #define GPIO_PORTK_LOCK_R (*((volatile uint32_t *)0x40061520))
  1762. #define GPIO_PORTK_CR_R (*((volatile uint32_t *)0x40061524))
  1763. #define GPIO_PORTK_AMSEL_R (*((volatile uint32_t *)0x40061528))
  1764. #define GPIO_PORTK_PCTL_R (*((volatile uint32_t *)0x4006152C))
  1765. #define GPIO_PORTK_ADCCTL_R (*((volatile uint32_t *)0x40061530))
  1766. #define GPIO_PORTK_DMACTL_R (*((volatile uint32_t *)0x40061534))
  1767. #define GPIO_PORTK_SI_R (*((volatile uint32_t *)0x40061538))
  1768. #define GPIO_PORTK_DR12R_R (*((volatile uint32_t *)0x4006153C))
  1769. #define GPIO_PORTK_WAKEPEN_R (*((volatile uint32_t *)0x40061540))
  1770. #define GPIO_PORTK_WAKELVL_R (*((volatile uint32_t *)0x40061544))
  1771. #define GPIO_PORTK_WAKESTAT_R (*((volatile uint32_t *)0x40061548))
  1772. #define GPIO_PORTK_PP_R (*((volatile uint32_t *)0x40061FC0))
  1773. #define GPIO_PORTK_PC_R (*((volatile uint32_t *)0x40061FC4))
  1774. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1775. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1776. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1777. //*****************************************************************************
  1778. //
  1779. // GPIO registers (PORTL)
  1780. //
  1781. //*****************************************************************************
  1782. #define GPIO_PORTL_DATA_BITS_R ((volatile uint32_t *)0x40062000)
  1783. #define GPIO_PORTL_DATA_R (*((volatile uint32_t *)0x400623FC))
  1784. #define GPIO_PORTL_DIR_R (*((volatile uint32_t *)0x40062400))
  1785. #define GPIO_PORTL_IS_R (*((volatile uint32_t *)0x40062404))
  1786. #define GPIO_PORTL_IBE_R (*((volatile uint32_t *)0x40062408))
  1787. #define GPIO_PORTL_IEV_R (*((volatile uint32_t *)0x4006240C))
  1788. #define GPIO_PORTL_IM_R (*((volatile uint32_t *)0x40062410))
  1789. #define GPIO_PORTL_RIS_R (*((volatile uint32_t *)0x40062414))
  1790. #define GPIO_PORTL_MIS_R (*((volatile uint32_t *)0x40062418))
  1791. #define GPIO_PORTL_ICR_R (*((volatile uint32_t *)0x4006241C))
  1792. #define GPIO_PORTL_AFSEL_R (*((volatile uint32_t *)0x40062420))
  1793. #define GPIO_PORTL_DR2R_R (*((volatile uint32_t *)0x40062500))
  1794. #define GPIO_PORTL_DR4R_R (*((volatile uint32_t *)0x40062504))
  1795. #define GPIO_PORTL_DR8R_R (*((volatile uint32_t *)0x40062508))
  1796. #define GPIO_PORTL_ODR_R (*((volatile uint32_t *)0x4006250C))
  1797. #define GPIO_PORTL_PUR_R (*((volatile uint32_t *)0x40062510))
  1798. #define GPIO_PORTL_PDR_R (*((volatile uint32_t *)0x40062514))
  1799. #define GPIO_PORTL_SLR_R (*((volatile uint32_t *)0x40062518))
  1800. #define GPIO_PORTL_DEN_R (*((volatile uint32_t *)0x4006251C))
  1801. #define GPIO_PORTL_LOCK_R (*((volatile uint32_t *)0x40062520))
  1802. #define GPIO_PORTL_CR_R (*((volatile uint32_t *)0x40062524))
  1803. #define GPIO_PORTL_AMSEL_R (*((volatile uint32_t *)0x40062528))
  1804. #define GPIO_PORTL_PCTL_R (*((volatile uint32_t *)0x4006252C))
  1805. #define GPIO_PORTL_ADCCTL_R (*((volatile uint32_t *)0x40062530))
  1806. #define GPIO_PORTL_DMACTL_R (*((volatile uint32_t *)0x40062534))
  1807. #define GPIO_PORTL_SI_R (*((volatile uint32_t *)0x40062538))
  1808. #define GPIO_PORTL_DR12R_R (*((volatile uint32_t *)0x4006253C))
  1809. #define GPIO_PORTL_WAKEPEN_R (*((volatile uint32_t *)0x40062540))
  1810. #define GPIO_PORTL_WAKELVL_R (*((volatile uint32_t *)0x40062544))
  1811. #define GPIO_PORTL_WAKESTAT_R (*((volatile uint32_t *)0x40062548))
  1812. #define GPIO_PORTL_PP_R (*((volatile uint32_t *)0x40062FC0))
  1813. #define GPIO_PORTL_PC_R (*((volatile uint32_t *)0x40062FC4))
  1814. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1815. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1816. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1817. //*****************************************************************************
  1818. //
  1819. // GPIO registers (PORTM)
  1820. //
  1821. //*****************************************************************************
  1822. #define GPIO_PORTM_DATA_BITS_R ((volatile uint32_t *)0x40063000)
  1823. #define GPIO_PORTM_DATA_R (*((volatile uint32_t *)0x400633FC))
  1824. #define GPIO_PORTM_DIR_R (*((volatile uint32_t *)0x40063400))
  1825. #define GPIO_PORTM_IS_R (*((volatile uint32_t *)0x40063404))
  1826. #define GPIO_PORTM_IBE_R (*((volatile uint32_t *)0x40063408))
  1827. #define GPIO_PORTM_IEV_R (*((volatile uint32_t *)0x4006340C))
  1828. #define GPIO_PORTM_IM_R (*((volatile uint32_t *)0x40063410))
  1829. #define GPIO_PORTM_RIS_R (*((volatile uint32_t *)0x40063414))
  1830. #define GPIO_PORTM_MIS_R (*((volatile uint32_t *)0x40063418))
  1831. #define GPIO_PORTM_ICR_R (*((volatile uint32_t *)0x4006341C))
  1832. #define GPIO_PORTM_AFSEL_R (*((volatile uint32_t *)0x40063420))
  1833. #define GPIO_PORTM_DR2R_R (*((volatile uint32_t *)0x40063500))
  1834. #define GPIO_PORTM_DR4R_R (*((volatile uint32_t *)0x40063504))
  1835. #define GPIO_PORTM_DR8R_R (*((volatile uint32_t *)0x40063508))
  1836. #define GPIO_PORTM_ODR_R (*((volatile uint32_t *)0x4006350C))
  1837. #define GPIO_PORTM_PUR_R (*((volatile uint32_t *)0x40063510))
  1838. #define GPIO_PORTM_PDR_R (*((volatile uint32_t *)0x40063514))
  1839. #define GPIO_PORTM_SLR_R (*((volatile uint32_t *)0x40063518))
  1840. #define GPIO_PORTM_DEN_R (*((volatile uint32_t *)0x4006351C))
  1841. #define GPIO_PORTM_LOCK_R (*((volatile uint32_t *)0x40063520))
  1842. #define GPIO_PORTM_CR_R (*((volatile uint32_t *)0x40063524))
  1843. #define GPIO_PORTM_AMSEL_R (*((volatile uint32_t *)0x40063528))
  1844. #define GPIO_PORTM_PCTL_R (*((volatile uint32_t *)0x4006352C))
  1845. #define GPIO_PORTM_ADCCTL_R (*((volatile uint32_t *)0x40063530))
  1846. #define GPIO_PORTM_DMACTL_R (*((volatile uint32_t *)0x40063534))
  1847. #define GPIO_PORTM_SI_R (*((volatile uint32_t *)0x40063538))
  1848. #define GPIO_PORTM_DR12R_R (*((volatile uint32_t *)0x4006353C))
  1849. #define GPIO_PORTM_WAKEPEN_R (*((volatile uint32_t *)0x40063540))
  1850. #define GPIO_PORTM_WAKELVL_R (*((volatile uint32_t *)0x40063544))
  1851. #define GPIO_PORTM_WAKESTAT_R (*((volatile uint32_t *)0x40063548))
  1852. #define GPIO_PORTM_PP_R (*((volatile uint32_t *)0x40063FC0))
  1853. #define GPIO_PORTM_PC_R (*((volatile uint32_t *)0x40063FC4))
  1854. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1855. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1856. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1857. //*****************************************************************************
  1858. //
  1859. // GPIO registers (PORTN)
  1860. //
  1861. //*****************************************************************************
  1862. #define GPIO_PORTN_DATA_BITS_R ((volatile uint32_t *)0x40064000)
  1863. #define GPIO_PORTN_DATA_R (*((volatile uint32_t *)0x400643FC))
  1864. #define GPIO_PORTN_DIR_R (*((volatile uint32_t *)0x40064400))
  1865. #define GPIO_PORTN_IS_R (*((volatile uint32_t *)0x40064404))
  1866. #define GPIO_PORTN_IBE_R (*((volatile uint32_t *)0x40064408))
  1867. #define GPIO_PORTN_IEV_R (*((volatile uint32_t *)0x4006440C))
  1868. #define GPIO_PORTN_IM_R (*((volatile uint32_t *)0x40064410))
  1869. #define GPIO_PORTN_RIS_R (*((volatile uint32_t *)0x40064414))
  1870. #define GPIO_PORTN_MIS_R (*((volatile uint32_t *)0x40064418))
  1871. #define GPIO_PORTN_ICR_R (*((volatile uint32_t *)0x4006441C))
  1872. #define GPIO_PORTN_AFSEL_R (*((volatile uint32_t *)0x40064420))
  1873. #define GPIO_PORTN_DR2R_R (*((volatile uint32_t *)0x40064500))
  1874. #define GPIO_PORTN_DR4R_R (*((volatile uint32_t *)0x40064504))
  1875. #define GPIO_PORTN_DR8R_R (*((volatile uint32_t *)0x40064508))
  1876. #define GPIO_PORTN_ODR_R (*((volatile uint32_t *)0x4006450C))
  1877. #define GPIO_PORTN_PUR_R (*((volatile uint32_t *)0x40064510))
  1878. #define GPIO_PORTN_PDR_R (*((volatile uint32_t *)0x40064514))
  1879. #define GPIO_PORTN_SLR_R (*((volatile uint32_t *)0x40064518))
  1880. #define GPIO_PORTN_DEN_R (*((volatile uint32_t *)0x4006451C))
  1881. #define GPIO_PORTN_LOCK_R (*((volatile uint32_t *)0x40064520))
  1882. #define GPIO_PORTN_CR_R (*((volatile uint32_t *)0x40064524))
  1883. #define GPIO_PORTN_AMSEL_R (*((volatile uint32_t *)0x40064528))
  1884. #define GPIO_PORTN_PCTL_R (*((volatile uint32_t *)0x4006452C))
  1885. #define GPIO_PORTN_ADCCTL_R (*((volatile uint32_t *)0x40064530))
  1886. #define GPIO_PORTN_DMACTL_R (*((volatile uint32_t *)0x40064534))
  1887. #define GPIO_PORTN_SI_R (*((volatile uint32_t *)0x40064538))
  1888. #define GPIO_PORTN_DR12R_R (*((volatile uint32_t *)0x4006453C))
  1889. #define GPIO_PORTN_WAKEPEN_R (*((volatile uint32_t *)0x40064540))
  1890. #define GPIO_PORTN_WAKELVL_R (*((volatile uint32_t *)0x40064544))
  1891. #define GPIO_PORTN_WAKESTAT_R (*((volatile uint32_t *)0x40064548))
  1892. #define GPIO_PORTN_PP_R (*((volatile uint32_t *)0x40064FC0))
  1893. #define GPIO_PORTN_PC_R (*((volatile uint32_t *)0x40064FC4))
  1894. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1895. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1896. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1897. //*****************************************************************************
  1898. //
  1899. // GPIO registers (PORTP)
  1900. //
  1901. //*****************************************************************************
  1902. #define GPIO_PORTP_DATA_BITS_R ((volatile uint32_t *)0x40065000)
  1903. #define GPIO_PORTP_DATA_R (*((volatile uint32_t *)0x400653FC))
  1904. #define GPIO_PORTP_DIR_R (*((volatile uint32_t *)0x40065400))
  1905. #define GPIO_PORTP_IS_R (*((volatile uint32_t *)0x40065404))
  1906. #define GPIO_PORTP_IBE_R (*((volatile uint32_t *)0x40065408))
  1907. #define GPIO_PORTP_IEV_R (*((volatile uint32_t *)0x4006540C))
  1908. #define GPIO_PORTP_IM_R (*((volatile uint32_t *)0x40065410))
  1909. #define GPIO_PORTP_RIS_R (*((volatile uint32_t *)0x40065414))
  1910. #define GPIO_PORTP_MIS_R (*((volatile uint32_t *)0x40065418))
  1911. #define GPIO_PORTP_ICR_R (*((volatile uint32_t *)0x4006541C))
  1912. #define GPIO_PORTP_AFSEL_R (*((volatile uint32_t *)0x40065420))
  1913. #define GPIO_PORTP_DR2R_R (*((volatile uint32_t *)0x40065500))
  1914. #define GPIO_PORTP_DR4R_R (*((volatile uint32_t *)0x40065504))
  1915. #define GPIO_PORTP_DR8R_R (*((volatile uint32_t *)0x40065508))
  1916. #define GPIO_PORTP_ODR_R (*((volatile uint32_t *)0x4006550C))
  1917. #define GPIO_PORTP_PUR_R (*((volatile uint32_t *)0x40065510))
  1918. #define GPIO_PORTP_PDR_R (*((volatile uint32_t *)0x40065514))
  1919. #define GPIO_PORTP_SLR_R (*((volatile uint32_t *)0x40065518))
  1920. #define GPIO_PORTP_DEN_R (*((volatile uint32_t *)0x4006551C))
  1921. #define GPIO_PORTP_LOCK_R (*((volatile uint32_t *)0x40065520))
  1922. #define GPIO_PORTP_CR_R (*((volatile uint32_t *)0x40065524))
  1923. #define GPIO_PORTP_AMSEL_R (*((volatile uint32_t *)0x40065528))
  1924. #define GPIO_PORTP_PCTL_R (*((volatile uint32_t *)0x4006552C))
  1925. #define GPIO_PORTP_ADCCTL_R (*((volatile uint32_t *)0x40065530))
  1926. #define GPIO_PORTP_DMACTL_R (*((volatile uint32_t *)0x40065534))
  1927. #define GPIO_PORTP_SI_R (*((volatile uint32_t *)0x40065538))
  1928. #define GPIO_PORTP_DR12R_R (*((volatile uint32_t *)0x4006553C))
  1929. #define GPIO_PORTP_WAKEPEN_R (*((volatile uint32_t *)0x40065540))
  1930. #define GPIO_PORTP_WAKELVL_R (*((volatile uint32_t *)0x40065544))
  1931. #define GPIO_PORTP_WAKESTAT_R (*((volatile uint32_t *)0x40065548))
  1932. #define GPIO_PORTP_PP_R (*((volatile uint32_t *)0x40065FC0))
  1933. #define GPIO_PORTP_PC_R (*((volatile uint32_t *)0x40065FC4))
  1934. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1935. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1936. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1937. //*****************************************************************************
  1938. //
  1939. // GPIO registers (PORTQ)
  1940. //
  1941. //*****************************************************************************
  1942. #define GPIO_PORTQ_DATA_BITS_R ((volatile uint32_t *)0x40066000)
  1943. #define GPIO_PORTQ_DATA_R (*((volatile uint32_t *)0x400663FC))
  1944. #define GPIO_PORTQ_DIR_R (*((volatile uint32_t *)0x40066400))
  1945. #define GPIO_PORTQ_IS_R (*((volatile uint32_t *)0x40066404))
  1946. #define GPIO_PORTQ_IBE_R (*((volatile uint32_t *)0x40066408))
  1947. #define GPIO_PORTQ_IEV_R (*((volatile uint32_t *)0x4006640C))
  1948. #define GPIO_PORTQ_IM_R (*((volatile uint32_t *)0x40066410))
  1949. #define GPIO_PORTQ_RIS_R (*((volatile uint32_t *)0x40066414))
  1950. #define GPIO_PORTQ_MIS_R (*((volatile uint32_t *)0x40066418))
  1951. #define GPIO_PORTQ_ICR_R (*((volatile uint32_t *)0x4006641C))
  1952. #define GPIO_PORTQ_AFSEL_R (*((volatile uint32_t *)0x40066420))
  1953. #define GPIO_PORTQ_DR2R_R (*((volatile uint32_t *)0x40066500))
  1954. #define GPIO_PORTQ_DR4R_R (*((volatile uint32_t *)0x40066504))
  1955. #define GPIO_PORTQ_DR8R_R (*((volatile uint32_t *)0x40066508))
  1956. #define GPIO_PORTQ_ODR_R (*((volatile uint32_t *)0x4006650C))
  1957. #define GPIO_PORTQ_PUR_R (*((volatile uint32_t *)0x40066510))
  1958. #define GPIO_PORTQ_PDR_R (*((volatile uint32_t *)0x40066514))
  1959. #define GPIO_PORTQ_SLR_R (*((volatile uint32_t *)0x40066518))
  1960. #define GPIO_PORTQ_DEN_R (*((volatile uint32_t *)0x4006651C))
  1961. #define GPIO_PORTQ_LOCK_R (*((volatile uint32_t *)0x40066520))
  1962. #define GPIO_PORTQ_CR_R (*((volatile uint32_t *)0x40066524))
  1963. #define GPIO_PORTQ_AMSEL_R (*((volatile uint32_t *)0x40066528))
  1964. #define GPIO_PORTQ_PCTL_R (*((volatile uint32_t *)0x4006652C))
  1965. #define GPIO_PORTQ_ADCCTL_R (*((volatile uint32_t *)0x40066530))
  1966. #define GPIO_PORTQ_DMACTL_R (*((volatile uint32_t *)0x40066534))
  1967. #define GPIO_PORTQ_SI_R (*((volatile uint32_t *)0x40066538))
  1968. #define GPIO_PORTQ_DR12R_R (*((volatile uint32_t *)0x4006653C))
  1969. #define GPIO_PORTQ_WAKEPEN_R (*((volatile uint32_t *)0x40066540))
  1970. #define GPIO_PORTQ_WAKELVL_R (*((volatile uint32_t *)0x40066544))
  1971. #define GPIO_PORTQ_WAKESTAT_R (*((volatile uint32_t *)0x40066548))
  1972. #define GPIO_PORTQ_PP_R (*((volatile uint32_t *)0x40066FC0))
  1973. #define GPIO_PORTQ_PC_R (*((volatile uint32_t *)0x40066FC4))
  1974. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  1975. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  1976. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  1977. //*****************************************************************************
  1978. //
  1979. // GPIO registers (PORTR)
  1980. //
  1981. //*****************************************************************************
  1982. #define GPIO_PORTR_DATA_BITS_R ((volatile uint32_t *)0x40067000)
  1983. #define GPIO_PORTR_DATA_R (*((volatile uint32_t *)0x400673FC))
  1984. #define GPIO_PORTR_DIR_R (*((volatile uint32_t *)0x40067400))
  1985. #define GPIO_PORTR_IS_R (*((volatile uint32_t *)0x40067404))
  1986. #define GPIO_PORTR_IBE_R (*((volatile uint32_t *)0x40067408))
  1987. #define GPIO_PORTR_IEV_R (*((volatile uint32_t *)0x4006740C))
  1988. #define GPIO_PORTR_IM_R (*((volatile uint32_t *)0x40067410))
  1989. #define GPIO_PORTR_RIS_R (*((volatile uint32_t *)0x40067414))
  1990. #define GPIO_PORTR_MIS_R (*((volatile uint32_t *)0x40067418))
  1991. #define GPIO_PORTR_ICR_R (*((volatile uint32_t *)0x4006741C))
  1992. #define GPIO_PORTR_AFSEL_R (*((volatile uint32_t *)0x40067420))
  1993. #define GPIO_PORTR_DR2R_R (*((volatile uint32_t *)0x40067500))
  1994. #define GPIO_PORTR_DR4R_R (*((volatile uint32_t *)0x40067504))
  1995. #define GPIO_PORTR_DR8R_R (*((volatile uint32_t *)0x40067508))
  1996. #define GPIO_PORTR_ODR_R (*((volatile uint32_t *)0x4006750C))
  1997. #define GPIO_PORTR_PUR_R (*((volatile uint32_t *)0x40067510))
  1998. #define GPIO_PORTR_PDR_R (*((volatile uint32_t *)0x40067514))
  1999. #define GPIO_PORTR_SLR_R (*((volatile uint32_t *)0x40067518))
  2000. #define GPIO_PORTR_DEN_R (*((volatile uint32_t *)0x4006751C))
  2001. #define GPIO_PORTR_LOCK_R (*((volatile uint32_t *)0x40067520))
  2002. #define GPIO_PORTR_CR_R (*((volatile uint32_t *)0x40067524))
  2003. #define GPIO_PORTR_AMSEL_R (*((volatile uint32_t *)0x40067528))
  2004. #define GPIO_PORTR_PCTL_R (*((volatile uint32_t *)0x4006752C))
  2005. #define GPIO_PORTR_ADCCTL_R (*((volatile uint32_t *)0x40067530))
  2006. #define GPIO_PORTR_DMACTL_R (*((volatile uint32_t *)0x40067534))
  2007. #define GPIO_PORTR_SI_R (*((volatile uint32_t *)0x40067538))
  2008. #define GPIO_PORTR_DR12R_R (*((volatile uint32_t *)0x4006753C))
  2009. #define GPIO_PORTR_WAKEPEN_R (*((volatile uint32_t *)0x40067540))
  2010. #define GPIO_PORTR_WAKELVL_R (*((volatile uint32_t *)0x40067544))
  2011. #define GPIO_PORTR_WAKESTAT_R (*((volatile uint32_t *)0x40067548))
  2012. #define GPIO_PORTR_PP_R (*((volatile uint32_t *)0x40067FC0))
  2013. #define GPIO_PORTR_PC_R (*((volatile uint32_t *)0x40067FC4))
  2014. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  2015. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  2016. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  2017. //*****************************************************************************
  2018. //
  2019. // GPIO registers (PORTS)
  2020. //
  2021. //*****************************************************************************
  2022. #define GPIO_PORTS_DATA_BITS_R ((volatile uint32_t *)0x40068000)
  2023. #define GPIO_PORTS_DATA_R (*((volatile uint32_t *)0x400683FC))
  2024. #define GPIO_PORTS_DIR_R (*((volatile uint32_t *)0x40068400))
  2025. #define GPIO_PORTS_IS_R (*((volatile uint32_t *)0x40068404))
  2026. #define GPIO_PORTS_IBE_R (*((volatile uint32_t *)0x40068408))
  2027. #define GPIO_PORTS_IEV_R (*((volatile uint32_t *)0x4006840C))
  2028. #define GPIO_PORTS_IM_R (*((volatile uint32_t *)0x40068410))
  2029. #define GPIO_PORTS_RIS_R (*((volatile uint32_t *)0x40068414))
  2030. #define GPIO_PORTS_MIS_R (*((volatile uint32_t *)0x40068418))
  2031. #define GPIO_PORTS_ICR_R (*((volatile uint32_t *)0x4006841C))
  2032. #define GPIO_PORTS_AFSEL_R (*((volatile uint32_t *)0x40068420))
  2033. #define GPIO_PORTS_DR2R_R (*((volatile uint32_t *)0x40068500))
  2034. #define GPIO_PORTS_DR4R_R (*((volatile uint32_t *)0x40068504))
  2035. #define GPIO_PORTS_DR8R_R (*((volatile uint32_t *)0x40068508))
  2036. #define GPIO_PORTS_ODR_R (*((volatile uint32_t *)0x4006850C))
  2037. #define GPIO_PORTS_PUR_R (*((volatile uint32_t *)0x40068510))
  2038. #define GPIO_PORTS_PDR_R (*((volatile uint32_t *)0x40068514))
  2039. #define GPIO_PORTS_SLR_R (*((volatile uint32_t *)0x40068518))
  2040. #define GPIO_PORTS_DEN_R (*((volatile uint32_t *)0x4006851C))
  2041. #define GPIO_PORTS_LOCK_R (*((volatile uint32_t *)0x40068520))
  2042. #define GPIO_PORTS_CR_R (*((volatile uint32_t *)0x40068524))
  2043. #define GPIO_PORTS_AMSEL_R (*((volatile uint32_t *)0x40068528))
  2044. #define GPIO_PORTS_PCTL_R (*((volatile uint32_t *)0x4006852C))
  2045. #define GPIO_PORTS_ADCCTL_R (*((volatile uint32_t *)0x40068530))
  2046. #define GPIO_PORTS_DMACTL_R (*((volatile uint32_t *)0x40068534))
  2047. #define GPIO_PORTS_SI_R (*((volatile uint32_t *)0x40068538))
  2048. #define GPIO_PORTS_DR12R_R (*((volatile uint32_t *)0x4006853C))
  2049. #define GPIO_PORTS_WAKEPEN_R (*((volatile uint32_t *)0x40068540))
  2050. #define GPIO_PORTS_WAKELVL_R (*((volatile uint32_t *)0x40068544))
  2051. #define GPIO_PORTS_WAKESTAT_R (*((volatile uint32_t *)0x40068548))
  2052. #define GPIO_PORTS_PP_R (*((volatile uint32_t *)0x40068FC0))
  2053. #define GPIO_PORTS_PC_R (*((volatile uint32_t *)0x40068FC4))
  2054. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  2055. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  2056. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  2057. //*****************************************************************************
  2058. //
  2059. // GPIO registers (PORTT)
  2060. //
  2061. //*****************************************************************************
  2062. #define GPIO_PORTT_DATA_BITS_R ((volatile uint32_t *)0x40069000)
  2063. #define GPIO_PORTT_DATA_R (*((volatile uint32_t *)0x400693FC))
  2064. #define GPIO_PORTT_DIR_R (*((volatile uint32_t *)0x40069400))
  2065. #define GPIO_PORTT_IS_R (*((volatile uint32_t *)0x40069404))
  2066. #define GPIO_PORTT_IBE_R (*((volatile uint32_t *)0x40069408))
  2067. #define GPIO_PORTT_IEV_R (*((volatile uint32_t *)0x4006940C))
  2068. #define GPIO_PORTT_IM_R (*((volatile uint32_t *)0x40069410))
  2069. #define GPIO_PORTT_RIS_R (*((volatile uint32_t *)0x40069414))
  2070. #define GPIO_PORTT_MIS_R (*((volatile uint32_t *)0x40069418))
  2071. #define GPIO_PORTT_ICR_R (*((volatile uint32_t *)0x4006941C))
  2072. #define GPIO_PORTT_AFSEL_R (*((volatile uint32_t *)0x40069420))
  2073. #define GPIO_PORTT_DR2R_R (*((volatile uint32_t *)0x40069500))
  2074. #define GPIO_PORTT_DR4R_R (*((volatile uint32_t *)0x40069504))
  2075. #define GPIO_PORTT_DR8R_R (*((volatile uint32_t *)0x40069508))
  2076. #define GPIO_PORTT_ODR_R (*((volatile uint32_t *)0x4006950C))
  2077. #define GPIO_PORTT_PUR_R (*((volatile uint32_t *)0x40069510))
  2078. #define GPIO_PORTT_PDR_R (*((volatile uint32_t *)0x40069514))
  2079. #define GPIO_PORTT_SLR_R (*((volatile uint32_t *)0x40069518))
  2080. #define GPIO_PORTT_DEN_R (*((volatile uint32_t *)0x4006951C))
  2081. #define GPIO_PORTT_LOCK_R (*((volatile uint32_t *)0x40069520))
  2082. #define GPIO_PORTT_CR_R (*((volatile uint32_t *)0x40069524))
  2083. #define GPIO_PORTT_AMSEL_R (*((volatile uint32_t *)0x40069528))
  2084. #define GPIO_PORTT_PCTL_R (*((volatile uint32_t *)0x4006952C))
  2085. #define GPIO_PORTT_ADCCTL_R (*((volatile uint32_t *)0x40069530))
  2086. #define GPIO_PORTT_DMACTL_R (*((volatile uint32_t *)0x40069534))
  2087. #define GPIO_PORTT_SI_R (*((volatile uint32_t *)0x40069538))
  2088. #define GPIO_PORTT_DR12R_R (*((volatile uint32_t *)0x4006953C))
  2089. #define GPIO_PORTT_WAKEPEN_R (*((volatile uint32_t *)0x40069540))
  2090. #define GPIO_PORTT_WAKELVL_R (*((volatile uint32_t *)0x40069544))
  2091. #define GPIO_PORTT_WAKESTAT_R (*((volatile uint32_t *)0x40069548))
  2092. #define GPIO_PORTT_PP_R (*((volatile uint32_t *)0x40069FC0))
  2093. #define GPIO_PORTT_PC_R (*((volatile uint32_t *)0x40069FC4))
  2094. #define GPIO_PCTL_PR_R (*((volatile uint32_t *)0x00012000))
  2095. #define GPIO_PCTL_PS_R (*((volatile uint32_t *)0x00013000))
  2096. #define GPIO_PCTL_PT_R (*((volatile uint32_t *)0x00014000))
  2097. //*****************************************************************************
  2098. //
  2099. // EEPROM registers (EEPROM)
  2100. //
  2101. //*****************************************************************************
  2102. #define EEPROM_EESIZE_R (*((volatile uint32_t *)0x400AF000))
  2103. #define EEPROM_EEBLOCK_R (*((volatile uint32_t *)0x400AF004))
  2104. #define EEPROM_EEOFFSET_R (*((volatile uint32_t *)0x400AF008))
  2105. #define EEPROM_EERDWR_R (*((volatile uint32_t *)0x400AF010))
  2106. #define EEPROM_EERDWRINC_R (*((volatile uint32_t *)0x400AF014))
  2107. #define EEPROM_EEDONE_R (*((volatile uint32_t *)0x400AF018))
  2108. #define EEPROM_EESUPP_R (*((volatile uint32_t *)0x400AF01C))
  2109. #define EEPROM_EEUNLOCK_R (*((volatile uint32_t *)0x400AF020))
  2110. #define EEPROM_EEPROT_R (*((volatile uint32_t *)0x400AF030))
  2111. #define EEPROM_EEPASS0_R (*((volatile uint32_t *)0x400AF034))
  2112. #define EEPROM_EEPASS1_R (*((volatile uint32_t *)0x400AF038))
  2113. #define EEPROM_EEPASS2_R (*((volatile uint32_t *)0x400AF03C))
  2114. #define EEPROM_EEINT_R (*((volatile uint32_t *)0x400AF040))
  2115. #define EEPROM_EEHIDE0_R (*((volatile uint32_t *)0x400AF050))
  2116. #define EEPROM_EEHIDE1_R (*((volatile uint32_t *)0x400AF054))
  2117. #define EEPROM_EEHIDE2_R (*((volatile uint32_t *)0x400AF058))
  2118. #define EEPROM_EEDBGME_R (*((volatile uint32_t *)0x400AF080))
  2119. #define EEPROM_PP_R (*((volatile uint32_t *)0x400AFFC0))
  2120. //*****************************************************************************
  2121. //
  2122. // One wire registers (ONEWIRE0)
  2123. //
  2124. //*****************************************************************************
  2125. #define ONEWIRE0_CS_R (*((volatile uint32_t *)0x400B6000))
  2126. #define ONEWIRE0_TIM_R (*((volatile uint32_t *)0x400B6004))
  2127. #define ONEWIRE0_DATW_R (*((volatile uint32_t *)0x400B6008))
  2128. #define ONEWIRE0_DATR_R (*((volatile uint32_t *)0x400B600C))
  2129. #define ONEWIRE0_IM_R (*((volatile uint32_t *)0x400B6100))
  2130. #define ONEWIRE0_RIS_R (*((volatile uint32_t *)0x400B6104))
  2131. #define ONEWIRE0_MIS_R (*((volatile uint32_t *)0x400B6108))
  2132. #define ONEWIRE0_ICR_R (*((volatile uint32_t *)0x400B610C))
  2133. #define ONEWIRE0_DMA_R (*((volatile uint32_t *)0x400B6120))
  2134. #define ONEWIRE0_PP_R (*((volatile uint32_t *)0x400B6FC0))
  2135. //*****************************************************************************
  2136. //
  2137. // I2C registers (I2C8)
  2138. //
  2139. //*****************************************************************************
  2140. #define I2C8_MSA_R (*((volatile uint32_t *)0x400B8000))
  2141. #define I2C8_MCS_R (*((volatile uint32_t *)0x400B8004))
  2142. #define I2C8_MDR_R (*((volatile uint32_t *)0x400B8008))
  2143. #define I2C8_MTPR_R (*((volatile uint32_t *)0x400B800C))
  2144. #define I2C8_MIMR_R (*((volatile uint32_t *)0x400B8010))
  2145. #define I2C8_MRIS_R (*((volatile uint32_t *)0x400B8014))
  2146. #define I2C8_MMIS_R (*((volatile uint32_t *)0x400B8018))
  2147. #define I2C8_MICR_R (*((volatile uint32_t *)0x400B801C))
  2148. #define I2C8_MCR_R (*((volatile uint32_t *)0x400B8020))
  2149. #define I2C8_MCLKOCNT_R (*((volatile uint32_t *)0x400B8024))
  2150. #define I2C8_MBMON_R (*((volatile uint32_t *)0x400B802C))
  2151. #define I2C8_MBLEN_R (*((volatile uint32_t *)0x400B8030))
  2152. #define I2C8_MBCNT_R (*((volatile uint32_t *)0x400B8034))
  2153. #define I2C8_SOAR_R (*((volatile uint32_t *)0x400B8800))
  2154. #define I2C8_SCSR_R (*((volatile uint32_t *)0x400B8804))
  2155. #define I2C8_SDR_R (*((volatile uint32_t *)0x400B8808))
  2156. #define I2C8_SIMR_R (*((volatile uint32_t *)0x400B880C))
  2157. #define I2C8_SRIS_R (*((volatile uint32_t *)0x400B8810))
  2158. #define I2C8_SMIS_R (*((volatile uint32_t *)0x400B8814))
  2159. #define I2C8_SICR_R (*((volatile uint32_t *)0x400B8818))
  2160. #define I2C8_SOAR2_R (*((volatile uint32_t *)0x400B881C))
  2161. #define I2C8_SACKCTL_R (*((volatile uint32_t *)0x400B8820))
  2162. #define I2C8_FIFODATA_R (*((volatile uint32_t *)0x400B8F00))
  2163. #define I2C8_FIFOCTL_R (*((volatile uint32_t *)0x400B8F04))
  2164. #define I2C8_FIFOSTATUS_R (*((volatile uint32_t *)0x400B8F08))
  2165. #define I2C8_PP_R (*((volatile uint32_t *)0x400B8FC0))
  2166. #define I2C8_PC_R (*((volatile uint32_t *)0x400B8FC4))
  2167. //*****************************************************************************
  2168. //
  2169. // I2C registers (I2C9)
  2170. //
  2171. //*****************************************************************************
  2172. #define I2C9_MSA_R (*((volatile uint32_t *)0x400B9000))
  2173. #define I2C9_MCS_R (*((volatile uint32_t *)0x400B9004))
  2174. #define I2C9_MDR_R (*((volatile uint32_t *)0x400B9008))
  2175. #define I2C9_MTPR_R (*((volatile uint32_t *)0x400B900C))
  2176. #define I2C9_MIMR_R (*((volatile uint32_t *)0x400B9010))
  2177. #define I2C9_MRIS_R (*((volatile uint32_t *)0x400B9014))
  2178. #define I2C9_MMIS_R (*((volatile uint32_t *)0x400B9018))
  2179. #define I2C9_MICR_R (*((volatile uint32_t *)0x400B901C))
  2180. #define I2C9_MCR_R (*((volatile uint32_t *)0x400B9020))
  2181. #define I2C9_MCLKOCNT_R (*((volatile uint32_t *)0x400B9024))
  2182. #define I2C9_MBMON_R (*((volatile uint32_t *)0x400B902C))
  2183. #define I2C9_MBLEN_R (*((volatile uint32_t *)0x400B9030))
  2184. #define I2C9_MBCNT_R (*((volatile uint32_t *)0x400B9034))
  2185. #define I2C9_SOAR_R (*((volatile uint32_t *)0x400B9800))
  2186. #define I2C9_SCSR_R (*((volatile uint32_t *)0x400B9804))
  2187. #define I2C9_SDR_R (*((volatile uint32_t *)0x400B9808))
  2188. #define I2C9_SIMR_R (*((volatile uint32_t *)0x400B980C))
  2189. #define I2C9_SRIS_R (*((volatile uint32_t *)0x400B9810))
  2190. #define I2C9_SMIS_R (*((volatile uint32_t *)0x400B9814))
  2191. #define I2C9_SICR_R (*((volatile uint32_t *)0x400B9818))
  2192. #define I2C9_SOAR2_R (*((volatile uint32_t *)0x400B981C))
  2193. #define I2C9_SACKCTL_R (*((volatile uint32_t *)0x400B9820))
  2194. #define I2C9_FIFODATA_R (*((volatile uint32_t *)0x400B9F00))
  2195. #define I2C9_FIFOCTL_R (*((volatile uint32_t *)0x400B9F04))
  2196. #define I2C9_FIFOSTATUS_R (*((volatile uint32_t *)0x400B9F08))
  2197. #define I2C9_PP_R (*((volatile uint32_t *)0x400B9FC0))
  2198. #define I2C9_PC_R (*((volatile uint32_t *)0x400B9FC4))
  2199. //*****************************************************************************
  2200. //
  2201. // I2C registers (I2C4)
  2202. //
  2203. //*****************************************************************************
  2204. #define I2C4_MSA_R (*((volatile uint32_t *)0x400C0000))
  2205. #define I2C4_MCS_R (*((volatile uint32_t *)0x400C0004))
  2206. #define I2C4_MDR_R (*((volatile uint32_t *)0x400C0008))
  2207. #define I2C4_MTPR_R (*((volatile uint32_t *)0x400C000C))
  2208. #define I2C4_MIMR_R (*((volatile uint32_t *)0x400C0010))
  2209. #define I2C4_MRIS_R (*((volatile uint32_t *)0x400C0014))
  2210. #define I2C4_MMIS_R (*((volatile uint32_t *)0x400C0018))
  2211. #define I2C4_MICR_R (*((volatile uint32_t *)0x400C001C))
  2212. #define I2C4_MCR_R (*((volatile uint32_t *)0x400C0020))
  2213. #define I2C4_MCLKOCNT_R (*((volatile uint32_t *)0x400C0024))
  2214. #define I2C4_MBMON_R (*((volatile uint32_t *)0x400C002C))
  2215. #define I2C4_MBLEN_R (*((volatile uint32_t *)0x400C0030))
  2216. #define I2C4_MBCNT_R (*((volatile uint32_t *)0x400C0034))
  2217. #define I2C4_SOAR_R (*((volatile uint32_t *)0x400C0800))
  2218. #define I2C4_SCSR_R (*((volatile uint32_t *)0x400C0804))
  2219. #define I2C4_SDR_R (*((volatile uint32_t *)0x400C0808))
  2220. #define I2C4_SIMR_R (*((volatile uint32_t *)0x400C080C))
  2221. #define I2C4_SRIS_R (*((volatile uint32_t *)0x400C0810))
  2222. #define I2C4_SMIS_R (*((volatile uint32_t *)0x400C0814))
  2223. #define I2C4_SICR_R (*((volatile uint32_t *)0x400C0818))
  2224. #define I2C4_SOAR2_R (*((volatile uint32_t *)0x400C081C))
  2225. #define I2C4_SACKCTL_R (*((volatile uint32_t *)0x400C0820))
  2226. #define I2C4_FIFODATA_R (*((volatile uint32_t *)0x400C0F00))
  2227. #define I2C4_FIFOCTL_R (*((volatile uint32_t *)0x400C0F04))
  2228. #define I2C4_FIFOSTATUS_R (*((volatile uint32_t *)0x400C0F08))
  2229. #define I2C4_PP_R (*((volatile uint32_t *)0x400C0FC0))
  2230. #define I2C4_PC_R (*((volatile uint32_t *)0x400C0FC4))
  2231. //*****************************************************************************
  2232. //
  2233. // I2C registers (I2C5)
  2234. //
  2235. //*****************************************************************************
  2236. #define I2C5_MSA_R (*((volatile uint32_t *)0x400C1000))
  2237. #define I2C5_MCS_R (*((volatile uint32_t *)0x400C1004))
  2238. #define I2C5_MDR_R (*((volatile uint32_t *)0x400C1008))
  2239. #define I2C5_MTPR_R (*((volatile uint32_t *)0x400C100C))
  2240. #define I2C5_MIMR_R (*((volatile uint32_t *)0x400C1010))
  2241. #define I2C5_MRIS_R (*((volatile uint32_t *)0x400C1014))
  2242. #define I2C5_MMIS_R (*((volatile uint32_t *)0x400C1018))
  2243. #define I2C5_MICR_R (*((volatile uint32_t *)0x400C101C))
  2244. #define I2C5_MCR_R (*((volatile uint32_t *)0x400C1020))
  2245. #define I2C5_MCLKOCNT_R (*((volatile uint32_t *)0x400C1024))
  2246. #define I2C5_MBMON_R (*((volatile uint32_t *)0x400C102C))
  2247. #define I2C5_MBLEN_R (*((volatile uint32_t *)0x400C1030))
  2248. #define I2C5_MBCNT_R (*((volatile uint32_t *)0x400C1034))
  2249. #define I2C5_SOAR_R (*((volatile uint32_t *)0x400C1800))
  2250. #define I2C5_SCSR_R (*((volatile uint32_t *)0x400C1804))
  2251. #define I2C5_SDR_R (*((volatile uint32_t *)0x400C1808))
  2252. #define I2C5_SIMR_R (*((volatile uint32_t *)0x400C180C))
  2253. #define I2C5_SRIS_R (*((volatile uint32_t *)0x400C1810))
  2254. #define I2C5_SMIS_R (*((volatile uint32_t *)0x400C1814))
  2255. #define I2C5_SICR_R (*((volatile uint32_t *)0x400C1818))
  2256. #define I2C5_SOAR2_R (*((volatile uint32_t *)0x400C181C))
  2257. #define I2C5_SACKCTL_R (*((volatile uint32_t *)0x400C1820))
  2258. #define I2C5_FIFODATA_R (*((volatile uint32_t *)0x400C1F00))
  2259. #define I2C5_FIFOCTL_R (*((volatile uint32_t *)0x400C1F04))
  2260. #define I2C5_FIFOSTATUS_R (*((volatile uint32_t *)0x400C1F08))
  2261. #define I2C5_PP_R (*((volatile uint32_t *)0x400C1FC0))
  2262. #define I2C5_PC_R (*((volatile uint32_t *)0x400C1FC4))
  2263. //*****************************************************************************
  2264. //
  2265. // I2C registers (I2C6)
  2266. //
  2267. //*****************************************************************************
  2268. #define I2C6_MSA_R (*((volatile uint32_t *)0x400C2000))
  2269. #define I2C6_MCS_R (*((volatile uint32_t *)0x400C2004))
  2270. #define I2C6_MDR_R (*((volatile uint32_t *)0x400C2008))
  2271. #define I2C6_MTPR_R (*((volatile uint32_t *)0x400C200C))
  2272. #define I2C6_MIMR_R (*((volatile uint32_t *)0x400C2010))
  2273. #define I2C6_MRIS_R (*((volatile uint32_t *)0x400C2014))
  2274. #define I2C6_MMIS_R (*((volatile uint32_t *)0x400C2018))
  2275. #define I2C6_MICR_R (*((volatile uint32_t *)0x400C201C))
  2276. #define I2C6_MCR_R (*((volatile uint32_t *)0x400C2020))
  2277. #define I2C6_MCLKOCNT_R (*((volatile uint32_t *)0x400C2024))
  2278. #define I2C6_MBMON_R (*((volatile uint32_t *)0x400C202C))
  2279. #define I2C6_MBLEN_R (*((volatile uint32_t *)0x400C2030))
  2280. #define I2C6_MBCNT_R (*((volatile uint32_t *)0x400C2034))
  2281. #define I2C6_SOAR_R (*((volatile uint32_t *)0x400C2800))
  2282. #define I2C6_SCSR_R (*((volatile uint32_t *)0x400C2804))
  2283. #define I2C6_SDR_R (*((volatile uint32_t *)0x400C2808))
  2284. #define I2C6_SIMR_R (*((volatile uint32_t *)0x400C280C))
  2285. #define I2C6_SRIS_R (*((volatile uint32_t *)0x400C2810))
  2286. #define I2C6_SMIS_R (*((volatile uint32_t *)0x400C2814))
  2287. #define I2C6_SICR_R (*((volatile uint32_t *)0x400C2818))
  2288. #define I2C6_SOAR2_R (*((volatile uint32_t *)0x400C281C))
  2289. #define I2C6_SACKCTL_R (*((volatile uint32_t *)0x400C2820))
  2290. #define I2C6_FIFODATA_R (*((volatile uint32_t *)0x400C2F00))
  2291. #define I2C6_FIFOCTL_R (*((volatile uint32_t *)0x400C2F04))
  2292. #define I2C6_FIFOSTATUS_R (*((volatile uint32_t *)0x400C2F08))
  2293. #define I2C6_PP_R (*((volatile uint32_t *)0x400C2FC0))
  2294. #define I2C6_PC_R (*((volatile uint32_t *)0x400C2FC4))
  2295. //*****************************************************************************
  2296. //
  2297. // I2C registers (I2C7)
  2298. //
  2299. //*****************************************************************************
  2300. #define I2C7_MSA_R (*((volatile uint32_t *)0x400C3000))
  2301. #define I2C7_MCS_R (*((volatile uint32_t *)0x400C3004))
  2302. #define I2C7_MDR_R (*((volatile uint32_t *)0x400C3008))
  2303. #define I2C7_MTPR_R (*((volatile uint32_t *)0x400C300C))
  2304. #define I2C7_MIMR_R (*((volatile uint32_t *)0x400C3010))
  2305. #define I2C7_MRIS_R (*((volatile uint32_t *)0x400C3014))
  2306. #define I2C7_MMIS_R (*((volatile uint32_t *)0x400C3018))
  2307. #define I2C7_MICR_R (*((volatile uint32_t *)0x400C301C))
  2308. #define I2C7_MCR_R (*((volatile uint32_t *)0x400C3020))
  2309. #define I2C7_MCLKOCNT_R (*((volatile uint32_t *)0x400C3024))
  2310. #define I2C7_MBMON_R (*((volatile uint32_t *)0x400C302C))
  2311. #define I2C7_MBLEN_R (*((volatile uint32_t *)0x400C3030))
  2312. #define I2C7_MBCNT_R (*((volatile uint32_t *)0x400C3034))
  2313. #define I2C7_SOAR_R (*((volatile uint32_t *)0x400C3800))
  2314. #define I2C7_SCSR_R (*((volatile uint32_t *)0x400C3804))
  2315. #define I2C7_SDR_R (*((volatile uint32_t *)0x400C3808))
  2316. #define I2C7_SIMR_R (*((volatile uint32_t *)0x400C380C))
  2317. #define I2C7_SRIS_R (*((volatile uint32_t *)0x400C3810))
  2318. #define I2C7_SMIS_R (*((volatile uint32_t *)0x400C3814))
  2319. #define I2C7_SICR_R (*((volatile uint32_t *)0x400C3818))
  2320. #define I2C7_SOAR2_R (*((volatile uint32_t *)0x400C381C))
  2321. #define I2C7_SACKCTL_R (*((volatile uint32_t *)0x400C3820))
  2322. #define I2C7_FIFODATA_R (*((volatile uint32_t *)0x400C3F00))
  2323. #define I2C7_FIFOCTL_R (*((volatile uint32_t *)0x400C3F04))
  2324. #define I2C7_FIFOSTATUS_R (*((volatile uint32_t *)0x400C3F08))
  2325. #define I2C7_PP_R (*((volatile uint32_t *)0x400C3FC0))
  2326. #define I2C7_PC_R (*((volatile uint32_t *)0x400C3FC4))
  2327. //*****************************************************************************
  2328. //
  2329. // External Peripheral Interface registers (EPI0)
  2330. //
  2331. //*****************************************************************************
  2332. #define EPI0_CFG_R (*((volatile uint32_t *)0x400D0000))
  2333. #define EPI0_BAUD_R (*((volatile uint32_t *)0x400D0004))
  2334. #define EPI0_BAUD2_R (*((volatile uint32_t *)0x400D0008))
  2335. #define EPI0_HB16CFG_R (*((volatile uint32_t *)0x400D0010))
  2336. #define EPI0_GPCFG_R (*((volatile uint32_t *)0x400D0010))
  2337. #define EPI0_SDRAMCFG_R (*((volatile uint32_t *)0x400D0010))
  2338. #define EPI0_HB8CFG_R (*((volatile uint32_t *)0x400D0010))
  2339. #define EPI0_HB8CFG2_R (*((volatile uint32_t *)0x400D0014))
  2340. #define EPI0_HB16CFG2_R (*((volatile uint32_t *)0x400D0014))
  2341. #define EPI0_ADDRMAP_R (*((volatile uint32_t *)0x400D001C))
  2342. #define EPI0_RSIZE0_R (*((volatile uint32_t *)0x400D0020))
  2343. #define EPI0_RADDR0_R (*((volatile uint32_t *)0x400D0024))
  2344. #define EPI0_RPSTD0_R (*((volatile uint32_t *)0x400D0028))
  2345. #define EPI0_RSIZE1_R (*((volatile uint32_t *)0x400D0030))
  2346. #define EPI0_RADDR1_R (*((volatile uint32_t *)0x400D0034))
  2347. #define EPI0_RPSTD1_R (*((volatile uint32_t *)0x400D0038))
  2348. #define EPI0_STAT_R (*((volatile uint32_t *)0x400D0060))
  2349. #define EPI0_RFIFOCNT_R (*((volatile uint32_t *)0x400D006C))
  2350. #define EPI0_READFIFO0_R (*((volatile uint32_t *)0x400D0070))
  2351. #define EPI0_READFIFO1_R (*((volatile uint32_t *)0x400D0074))
  2352. #define EPI0_READFIFO2_R (*((volatile uint32_t *)0x400D0078))
  2353. #define EPI0_READFIFO3_R (*((volatile uint32_t *)0x400D007C))
  2354. #define EPI0_READFIFO4_R (*((volatile uint32_t *)0x400D0080))
  2355. #define EPI0_READFIFO5_R (*((volatile uint32_t *)0x400D0084))
  2356. #define EPI0_READFIFO6_R (*((volatile uint32_t *)0x400D0088))
  2357. #define EPI0_READFIFO7_R (*((volatile uint32_t *)0x400D008C))
  2358. #define EPI0_FIFOLVL_R (*((volatile uint32_t *)0x400D0200))
  2359. #define EPI0_WFIFOCNT_R (*((volatile uint32_t *)0x400D0204))
  2360. #define EPI0_DMATXCNT_R (*((volatile uint32_t *)0x400D0208))
  2361. #define EPI0_IM_R (*((volatile uint32_t *)0x400D0210))
  2362. #define EPI0_RIS_R (*((volatile uint32_t *)0x400D0214))
  2363. #define EPI0_MIS_R (*((volatile uint32_t *)0x400D0218))
  2364. #define EPI0_EISC_R (*((volatile uint32_t *)0x400D021C))
  2365. #define EPI0_HB8CFG3_R (*((volatile uint32_t *)0x400D0308))
  2366. #define EPI0_HB16CFG3_R (*((volatile uint32_t *)0x400D0308))
  2367. #define EPI0_HB16CFG4_R (*((volatile uint32_t *)0x400D030C))
  2368. #define EPI0_HB8CFG4_R (*((volatile uint32_t *)0x400D030C))
  2369. #define EPI0_HB8TIME_R (*((volatile uint32_t *)0x400D0310))
  2370. #define EPI0_HB16TIME_R (*((volatile uint32_t *)0x400D0310))
  2371. #define EPI0_HB8TIME2_R (*((volatile uint32_t *)0x400D0314))
  2372. #define EPI0_HB16TIME2_R (*((volatile uint32_t *)0x400D0314))
  2373. #define EPI0_HB16TIME3_R (*((volatile uint32_t *)0x400D0318))
  2374. #define EPI0_HB8TIME3_R (*((volatile uint32_t *)0x400D0318))
  2375. #define EPI0_HB8TIME4_R (*((volatile uint32_t *)0x400D031C))
  2376. #define EPI0_HB16TIME4_R (*((volatile uint32_t *)0x400D031C))
  2377. #define EPI0_HBPSRAM_R (*((volatile uint32_t *)0x400D0360))
  2378. //*****************************************************************************
  2379. //
  2380. // Timer registers (TIMER6)
  2381. //
  2382. //*****************************************************************************
  2383. #define TIMER6_CFG_R (*((volatile uint32_t *)0x400E0000))
  2384. #define TIMER6_TAMR_R (*((volatile uint32_t *)0x400E0004))
  2385. #define TIMER6_TBMR_R (*((volatile uint32_t *)0x400E0008))
  2386. #define TIMER6_CTL_R (*((volatile uint32_t *)0x400E000C))
  2387. #define TIMER6_SYNC_R (*((volatile uint32_t *)0x400E0010))
  2388. #define TIMER6_IMR_R (*((volatile uint32_t *)0x400E0018))
  2389. #define TIMER6_RIS_R (*((volatile uint32_t *)0x400E001C))
  2390. #define TIMER6_MIS_R (*((volatile uint32_t *)0x400E0020))
  2391. #define TIMER6_ICR_R (*((volatile uint32_t *)0x400E0024))
  2392. #define TIMER6_TAILR_R (*((volatile uint32_t *)0x400E0028))
  2393. #define TIMER6_TBILR_R (*((volatile uint32_t *)0x400E002C))
  2394. #define TIMER6_TAMATCHR_R (*((volatile uint32_t *)0x400E0030))
  2395. #define TIMER6_TBMATCHR_R (*((volatile uint32_t *)0x400E0034))
  2396. #define TIMER6_TAPR_R (*((volatile uint32_t *)0x400E0038))
  2397. #define TIMER6_TBPR_R (*((volatile uint32_t *)0x400E003C))
  2398. #define TIMER6_TAPMR_R (*((volatile uint32_t *)0x400E0040))
  2399. #define TIMER6_TBPMR_R (*((volatile uint32_t *)0x400E0044))
  2400. #define TIMER6_TAR_R (*((volatile uint32_t *)0x400E0048))
  2401. #define TIMER6_TBR_R (*((volatile uint32_t *)0x400E004C))
  2402. #define TIMER6_TAV_R (*((volatile uint32_t *)0x400E0050))
  2403. #define TIMER6_TBV_R (*((volatile uint32_t *)0x400E0054))
  2404. #define TIMER6_RTCPD_R (*((volatile uint32_t *)0x400E0058))
  2405. #define TIMER6_TAPS_R (*((volatile uint32_t *)0x400E005C))
  2406. #define TIMER6_TBPS_R (*((volatile uint32_t *)0x400E0060))
  2407. #define TIMER6_DMAEV_R (*((volatile uint32_t *)0x400E006C))
  2408. #define TIMER6_ADCEV_R (*((volatile uint32_t *)0x400E0070))
  2409. #define TIMER6_PP_R (*((volatile uint32_t *)0x400E0FC0))
  2410. #define TIMER6_CC_R (*((volatile uint32_t *)0x400E0FC8))
  2411. //*****************************************************************************
  2412. //
  2413. // Timer registers (TIMER7)
  2414. //
  2415. //*****************************************************************************
  2416. #define TIMER7_CFG_R (*((volatile uint32_t *)0x400E1000))
  2417. #define TIMER7_TAMR_R (*((volatile uint32_t *)0x400E1004))
  2418. #define TIMER7_TBMR_R (*((volatile uint32_t *)0x400E1008))
  2419. #define TIMER7_CTL_R (*((volatile uint32_t *)0x400E100C))
  2420. #define TIMER7_SYNC_R (*((volatile uint32_t *)0x400E1010))
  2421. #define TIMER7_IMR_R (*((volatile uint32_t *)0x400E1018))
  2422. #define TIMER7_RIS_R (*((volatile uint32_t *)0x400E101C))
  2423. #define TIMER7_MIS_R (*((volatile uint32_t *)0x400E1020))
  2424. #define TIMER7_ICR_R (*((volatile uint32_t *)0x400E1024))
  2425. #define TIMER7_TAILR_R (*((volatile uint32_t *)0x400E1028))
  2426. #define TIMER7_TBILR_R (*((volatile uint32_t *)0x400E102C))
  2427. #define TIMER7_TAMATCHR_R (*((volatile uint32_t *)0x400E1030))
  2428. #define TIMER7_TBMATCHR_R (*((volatile uint32_t *)0x400E1034))
  2429. #define TIMER7_TAPR_R (*((volatile uint32_t *)0x400E1038))
  2430. #define TIMER7_TBPR_R (*((volatile uint32_t *)0x400E103C))
  2431. #define TIMER7_TAPMR_R (*((volatile uint32_t *)0x400E1040))
  2432. #define TIMER7_TBPMR_R (*((volatile uint32_t *)0x400E1044))
  2433. #define TIMER7_TAR_R (*((volatile uint32_t *)0x400E1048))
  2434. #define TIMER7_TBR_R (*((volatile uint32_t *)0x400E104C))
  2435. #define TIMER7_TAV_R (*((volatile uint32_t *)0x400E1050))
  2436. #define TIMER7_TBV_R (*((volatile uint32_t *)0x400E1054))
  2437. #define TIMER7_RTCPD_R (*((volatile uint32_t *)0x400E1058))
  2438. #define TIMER7_TAPS_R (*((volatile uint32_t *)0x400E105C))
  2439. #define TIMER7_TBPS_R (*((volatile uint32_t *)0x400E1060))
  2440. #define TIMER7_DMAEV_R (*((volatile uint32_t *)0x400E106C))
  2441. #define TIMER7_ADCEV_R (*((volatile uint32_t *)0x400E1070))
  2442. #define TIMER7_PP_R (*((volatile uint32_t *)0x400E1FC0))
  2443. #define TIMER7_CC_R (*((volatile uint32_t *)0x400E1FC8))
  2444. //*****************************************************************************
  2445. //
  2446. // EMAC registers (EMAC0)
  2447. //
  2448. //*****************************************************************************
  2449. #define EMAC0_CFG_R (*((volatile uint32_t *)0x400EC000))
  2450. #define EMAC0_FRAMEFLTR_R (*((volatile uint32_t *)0x400EC004))
  2451. #define EMAC0_HASHTBLH_R (*((volatile uint32_t *)0x400EC008))
  2452. #define EMAC0_HASHTBLL_R (*((volatile uint32_t *)0x400EC00C))
  2453. #define EMAC0_MIIADDR_R (*((volatile uint32_t *)0x400EC010))
  2454. #define EMAC0_MIIDATA_R (*((volatile uint32_t *)0x400EC014))
  2455. #define EMAC0_FLOWCTL_R (*((volatile uint32_t *)0x400EC018))
  2456. #define EMAC0_VLANTG_R (*((volatile uint32_t *)0x400EC01C))
  2457. #define EMAC0_STATUS_R (*((volatile uint32_t *)0x400EC024))
  2458. #define EMAC0_RWUFF_R (*((volatile uint32_t *)0x400EC028))
  2459. #define EMAC0_PMTCTLSTAT_R (*((volatile uint32_t *)0x400EC02C))
  2460. #define EMAC0_RIS_R (*((volatile uint32_t *)0x400EC038))
  2461. #define EMAC0_IM_R (*((volatile uint32_t *)0x400EC03C))
  2462. #define EMAC0_ADDR0H_R (*((volatile uint32_t *)0x400EC040))
  2463. #define EMAC0_ADDR0L_R (*((volatile uint32_t *)0x400EC044))
  2464. #define EMAC0_ADDR1H_R (*((volatile uint32_t *)0x400EC048))
  2465. #define EMAC0_ADDR1L_R (*((volatile uint32_t *)0x400EC04C))
  2466. #define EMAC0_ADDR2H_R (*((volatile uint32_t *)0x400EC050))
  2467. #define EMAC0_ADDR2L_R (*((volatile uint32_t *)0x400EC054))
  2468. #define EMAC0_ADDR3H_R (*((volatile uint32_t *)0x400EC058))
  2469. #define EMAC0_ADDR3L_R (*((volatile uint32_t *)0x400EC05C))
  2470. #define EMAC0_WDOGTO_R (*((volatile uint32_t *)0x400EC0DC))
  2471. #define EMAC0_MMCCTRL_R (*((volatile uint32_t *)0x400EC100))
  2472. #define EMAC0_MMCRXRIS_R (*((volatile uint32_t *)0x400EC104))
  2473. #define EMAC0_MMCTXRIS_R (*((volatile uint32_t *)0x400EC108))
  2474. #define EMAC0_MMCRXIM_R (*((volatile uint32_t *)0x400EC10C))
  2475. #define EMAC0_MMCTXIM_R (*((volatile uint32_t *)0x400EC110))
  2476. #define EMAC0_TXCNTGB_R (*((volatile uint32_t *)0x400EC118))
  2477. #define EMAC0_TXCNTSCOL_R (*((volatile uint32_t *)0x400EC14C))
  2478. #define EMAC0_TXCNTMCOL_R (*((volatile uint32_t *)0x400EC150))
  2479. #define EMAC0_TXOCTCNTG_R (*((volatile uint32_t *)0x400EC164))
  2480. #define EMAC0_RXCNTGB_R (*((volatile uint32_t *)0x400EC180))
  2481. #define EMAC0_RXCNTCRCERR_R (*((volatile uint32_t *)0x400EC194))
  2482. #define EMAC0_RXCNTALGNERR_R (*((volatile uint32_t *)0x400EC198))
  2483. #define EMAC0_RXCNTGUNI_R (*((volatile uint32_t *)0x400EC1C4))
  2484. #define EMAC0_VLNINCREP_R (*((volatile uint32_t *)0x400EC584))
  2485. #define EMAC0_VLANHASH_R (*((volatile uint32_t *)0x400EC588))
  2486. #define EMAC0_TIMSTCTRL_R (*((volatile uint32_t *)0x400EC700))
  2487. #define EMAC0_SUBSECINC_R (*((volatile uint32_t *)0x400EC704))
  2488. #define EMAC0_TIMSEC_R (*((volatile uint32_t *)0x400EC708))
  2489. #define EMAC0_TIMNANO_R (*((volatile uint32_t *)0x400EC70C))
  2490. #define EMAC0_TIMSECU_R (*((volatile uint32_t *)0x400EC710))
  2491. #define EMAC0_TIMNANOU_R (*((volatile uint32_t *)0x400EC714))
  2492. #define EMAC0_TIMADD_R (*((volatile uint32_t *)0x400EC718))
  2493. #define EMAC0_TARGSEC_R (*((volatile uint32_t *)0x400EC71C))
  2494. #define EMAC0_TARGNANO_R (*((volatile uint32_t *)0x400EC720))
  2495. #define EMAC0_HWORDSEC_R (*((volatile uint32_t *)0x400EC724))
  2496. #define EMAC0_TIMSTAT_R (*((volatile uint32_t *)0x400EC728))
  2497. #define EMAC0_PPSCTRL_R (*((volatile uint32_t *)0x400EC72C))
  2498. #define EMAC0_PPS0INTVL_R (*((volatile uint32_t *)0x400EC760))
  2499. #define EMAC0_PPS0WIDTH_R (*((volatile uint32_t *)0x400EC764))
  2500. #define EMAC0_DMABUSMOD_R (*((volatile uint32_t *)0x400ECC00))
  2501. #define EMAC0_TXPOLLD_R (*((volatile uint32_t *)0x400ECC04))
  2502. #define EMAC0_RXPOLLD_R (*((volatile uint32_t *)0x400ECC08))
  2503. #define EMAC0_RXDLADDR_R (*((volatile uint32_t *)0x400ECC0C))
  2504. #define EMAC0_TXDLADDR_R (*((volatile uint32_t *)0x400ECC10))
  2505. #define EMAC0_DMARIS_R (*((volatile uint32_t *)0x400ECC14))
  2506. #define EMAC0_DMAOPMODE_R (*((volatile uint32_t *)0x400ECC18))
  2507. #define EMAC0_DMAIM_R (*((volatile uint32_t *)0x400ECC1C))
  2508. #define EMAC0_MFBOC_R (*((volatile uint32_t *)0x400ECC20))
  2509. #define EMAC0_RXINTWDT_R (*((volatile uint32_t *)0x400ECC24))
  2510. #define EMAC0_HOSTXDESC_R (*((volatile uint32_t *)0x400ECC48))
  2511. #define EMAC0_HOSRXDESC_R (*((volatile uint32_t *)0x400ECC4C))
  2512. #define EMAC0_HOSTXBA_R (*((volatile uint32_t *)0x400ECC50))
  2513. #define EMAC0_HOSRXBA_R (*((volatile uint32_t *)0x400ECC54))
  2514. #define EMAC0_PP_R (*((volatile uint32_t *)0x400ECFC0))
  2515. #define EMAC0_PC_R (*((volatile uint32_t *)0x400ECFC4))
  2516. #define EMAC0_CC_R (*((volatile uint32_t *)0x400ECFC8))
  2517. #define EMAC0_EPHYRIS_R (*((volatile uint32_t *)0x400ECFD0))
  2518. #define EMAC0_EPHYIM_R (*((volatile uint32_t *)0x400ECFD4))
  2519. #define EMAC0_EPHYMISC_R (*((volatile uint32_t *)0x400ECFD8))
  2520. //*****************************************************************************
  2521. //
  2522. // EPHY registers (EMAC0)
  2523. //
  2524. //*****************************************************************************
  2525. #define EPHY_BMCR 0x00000000 // Ethernet PHY Basic Mode Control
  2526. #define EPHY_BMSR 0x00000001 // Ethernet PHY Basic Mode Status
  2527. #define EPHY_ID1 0x00000002 // Ethernet PHY Identifier Register
  2528. // 1
  2529. #define EPHY_ID2 0x00000003 // Ethernet PHY Identifier Register
  2530. // 2
  2531. #define EPHY_ANA 0x00000004 // Ethernet PHY Auto-Negotiation
  2532. // Advertisement
  2533. #define EPHY_ANLPA 0x00000005 // Ethernet PHY Auto-Negotiation
  2534. // Link Partner Ability
  2535. #define EPHY_ANER 0x00000006 // Ethernet PHY Auto-Negotiation
  2536. // Expansion
  2537. #define EPHY_ANNPTR 0x00000007 // Ethernet PHY Auto-Negotiation
  2538. // Next Page TX
  2539. #define EPHY_ANLNPTR 0x00000008 // Ethernet PHY Auto-Negotiation
  2540. // Link Partner Ability Next Page
  2541. #define EPHY_CFG1 0x00000009 // Ethernet PHY Configuration 1
  2542. #define EPHY_CFG2 0x0000000A // Ethernet PHY Configuration 2
  2543. #define EPHY_CFG3 0x0000000B // Ethernet PHY Configuration 3
  2544. #define EPHY_REGCTL 0x0000000D // Ethernet PHY Register Control
  2545. #define EPHY_ADDAR 0x0000000E // Ethernet PHY Address or Data
  2546. #define EPHY_STS 0x00000010 // Ethernet PHY Status
  2547. #define EPHY_SCR 0x00000011 // Ethernet PHY Specific Control
  2548. #define EPHY_MISR1 0x00000012 // Ethernet PHY MII Interrupt
  2549. // Status 1
  2550. #define EPHY_MISR2 0x00000013 // Ethernet PHY MII Interrupt
  2551. // Status 2
  2552. #define EPHY_FCSCR 0x00000014 // Ethernet PHY False Carrier Sense
  2553. // Counter
  2554. #define EPHY_RXERCNT 0x00000015 // Ethernet PHY Receive Error Count
  2555. #define EPHY_BISTCR 0x00000016 // Ethernet PHY BIST Control
  2556. #define EPHY_LEDCR 0x00000018 // Ethernet PHY LED Control
  2557. #define EPHY_CTL 0x00000019 // Ethernet PHY Control
  2558. #define EPHY_10BTSC 0x0000001A // Ethernet PHY 10Base-T
  2559. // Status/Control - MR26
  2560. #define EPHY_BICSR1 0x0000001B // Ethernet PHY BIST Control and
  2561. // Status 1
  2562. #define EPHY_BICSR2 0x0000001C // Ethernet PHY BIST Control and
  2563. // Status 2
  2564. #define EPHY_CDCR 0x0000001E // Ethernet PHY Cable Diagnostic
  2565. // Control
  2566. #define EPHY_RCR 0x0000001F // Ethernet PHY Reset Control
  2567. #define EPHY_LEDCFG 0x00000025 // Ethernet PHY LED Configuration
  2568. //*****************************************************************************
  2569. //
  2570. // System Exception Module registers (SYSEXC)
  2571. //
  2572. //*****************************************************************************
  2573. #define SYSEXC_RIS_R (*((volatile uint32_t *)0x400F9000))
  2574. #define SYSEXC_IM_R (*((volatile uint32_t *)0x400F9004))
  2575. #define SYSEXC_MIS_R (*((volatile uint32_t *)0x400F9008))
  2576. #define SYSEXC_IC_R (*((volatile uint32_t *)0x400F900C))
  2577. //*****************************************************************************
  2578. //
  2579. // Hibernation module registers (HIB)
  2580. //
  2581. //*****************************************************************************
  2582. #define HIB_RTCC_R (*((volatile uint32_t *)0x400FC000))
  2583. #define HIB_RTCM0_R (*((volatile uint32_t *)0x400FC004))
  2584. #define HIB_RTCLD_R (*((volatile uint32_t *)0x400FC00C))
  2585. #define HIB_CTL_R (*((volatile uint32_t *)0x400FC010))
  2586. #define HIB_IM_R (*((volatile uint32_t *)0x400FC014))
  2587. #define HIB_RIS_R (*((volatile uint32_t *)0x400FC018))
  2588. #define HIB_MIS_R (*((volatile uint32_t *)0x400FC01C))
  2589. #define HIB_IC_R (*((volatile uint32_t *)0x400FC020))
  2590. #define HIB_RTCT_R (*((volatile uint32_t *)0x400FC024))
  2591. #define HIB_RTCSS_R (*((volatile uint32_t *)0x400FC028))
  2592. #define HIB_IO_R (*((volatile uint32_t *)0x400FC02C))
  2593. #define HIB_DATA_R (*((volatile uint32_t *)0x400FC030))
  2594. #define HIB_CALCTL_R (*((volatile uint32_t *)0x400FC300))
  2595. #define HIB_CAL0_R (*((volatile uint32_t *)0x400FC310))
  2596. #define HIB_CAL1_R (*((volatile uint32_t *)0x400FC314))
  2597. #define HIB_CALLD0_R (*((volatile uint32_t *)0x400FC320))
  2598. #define HIB_CALLD1_R (*((volatile uint32_t *)0x400FC324))
  2599. #define HIB_CALM0_R (*((volatile uint32_t *)0x400FC330))
  2600. #define HIB_CALM1_R (*((volatile uint32_t *)0x400FC334))
  2601. #define HIB_LOCK_R (*((volatile uint32_t *)0x400FC360))
  2602. #define HIB_TPCTL_R (*((volatile uint32_t *)0x400FC400))
  2603. #define HIB_TPSTAT_R (*((volatile uint32_t *)0x400FC404))
  2604. #define HIB_TPIO_R (*((volatile uint32_t *)0x400FC410))
  2605. #define HIB_TPLOG0_R (*((volatile uint32_t *)0x400FC4E0))
  2606. #define HIB_TPLOG1_R (*((volatile uint32_t *)0x400FC4E4))
  2607. #define HIB_TPLOG2_R (*((volatile uint32_t *)0x400FC4E8))
  2608. #define HIB_TPLOG3_R (*((volatile uint32_t *)0x400FC4EC))
  2609. #define HIB_TPLOG4_R (*((volatile uint32_t *)0x400FC4F0))
  2610. #define HIB_TPLOG5_R (*((volatile uint32_t *)0x400FC4F4))
  2611. #define HIB_TPLOG6_R (*((volatile uint32_t *)0x400FC4F8))
  2612. #define HIB_TPLOG7_R (*((volatile uint32_t *)0x400FC4FC))
  2613. #define HIB_PP_R (*((volatile uint32_t *)0x400FCFC0))
  2614. #define HIB_CC_R (*((volatile uint32_t *)0x400FCFC8))
  2615. //*****************************************************************************
  2616. //
  2617. // FLASH registers (FLASH CTRL)
  2618. //
  2619. //*****************************************************************************
  2620. #define FLASH_FMA_R (*((volatile uint32_t *)0x400FD000))
  2621. #define FLASH_FMD_R (*((volatile uint32_t *)0x400FD004))
  2622. #define FLASH_FMC_R (*((volatile uint32_t *)0x400FD008))
  2623. #define FLASH_FCRIS_R (*((volatile uint32_t *)0x400FD00C))
  2624. #define FLASH_FCIM_R (*((volatile uint32_t *)0x400FD010))
  2625. #define FLASH_FCMISC_R (*((volatile uint32_t *)0x400FD014))
  2626. #define FLASH_FMC2_R (*((volatile uint32_t *)0x400FD020))
  2627. #define FLASH_FWBVAL_R (*((volatile uint32_t *)0x400FD030))
  2628. #define FLASH_FLPEKEY_R (*((volatile uint32_t *)0x400FD03C))
  2629. #define FLASH_FWBN_R (*((volatile uint32_t *)0x400FD100))
  2630. #define FLASH_PP_R (*((volatile uint32_t *)0x400FDFC0))
  2631. #define FLASH_SSIZE_R (*((volatile uint32_t *)0x400FDFC4))
  2632. #define FLASH_CONF_R (*((volatile uint32_t *)0x400FDFC8))
  2633. #define FLASH_ROMSWMAP_R (*((volatile uint32_t *)0x400FDFCC))
  2634. #define FLASH_DMASZ_R (*((volatile uint32_t *)0x400FDFD0))
  2635. #define FLASH_DMAST_R (*((volatile uint32_t *)0x400FDFD4))
  2636. #define FLASH_RVP_R (*((volatile uint32_t *)0x400FE0D4))
  2637. #define FLASH_BOOTCFG_R (*((volatile uint32_t *)0x400FE1D0))
  2638. #define FLASH_USERREG0_R (*((volatile uint32_t *)0x400FE1E0))
  2639. #define FLASH_USERREG1_R (*((volatile uint32_t *)0x400FE1E4))
  2640. #define FLASH_USERREG2_R (*((volatile uint32_t *)0x400FE1E8))
  2641. #define FLASH_USERREG3_R (*((volatile uint32_t *)0x400FE1EC))
  2642. #define FLASH_FMPRE0_R (*((volatile uint32_t *)0x400FE200))
  2643. #define FLASH_FMPRE1_R (*((volatile uint32_t *)0x400FE204))
  2644. #define FLASH_FMPRE2_R (*((volatile uint32_t *)0x400FE208))
  2645. #define FLASH_FMPRE3_R (*((volatile uint32_t *)0x400FE20C))
  2646. #define FLASH_FMPRE4_R (*((volatile uint32_t *)0x400FE210))
  2647. #define FLASH_FMPRE5_R (*((volatile uint32_t *)0x400FE214))
  2648. #define FLASH_FMPRE6_R (*((volatile uint32_t *)0x400FE218))
  2649. #define FLASH_FMPRE7_R (*((volatile uint32_t *)0x400FE21C))
  2650. #define FLASH_FMPRE8_R (*((volatile uint32_t *)0x400FE220))
  2651. #define FLASH_FMPRE9_R (*((volatile uint32_t *)0x400FE224))
  2652. #define FLASH_FMPRE10_R (*((volatile uint32_t *)0x400FE228))
  2653. #define FLASH_FMPRE11_R (*((volatile uint32_t *)0x400FE22C))
  2654. #define FLASH_FMPRE12_R (*((volatile uint32_t *)0x400FE230))
  2655. #define FLASH_FMPRE13_R (*((volatile uint32_t *)0x400FE234))
  2656. #define FLASH_FMPRE14_R (*((volatile uint32_t *)0x400FE238))
  2657. #define FLASH_FMPRE15_R (*((volatile uint32_t *)0x400FE23C))
  2658. #define FLASH_FMPPE0_R (*((volatile uint32_t *)0x400FE400))
  2659. #define FLASH_FMPPE1_R (*((volatile uint32_t *)0x400FE404))
  2660. #define FLASH_FMPPE2_R (*((volatile uint32_t *)0x400FE408))
  2661. #define FLASH_FMPPE3_R (*((volatile uint32_t *)0x400FE40C))
  2662. #define FLASH_FMPPE4_R (*((volatile uint32_t *)0x400FE410))
  2663. #define FLASH_FMPPE5_R (*((volatile uint32_t *)0x400FE414))
  2664. #define FLASH_FMPPE6_R (*((volatile uint32_t *)0x400FE418))
  2665. #define FLASH_FMPPE7_R (*((volatile uint32_t *)0x400FE41C))
  2666. #define FLASH_FMPPE8_R (*((volatile uint32_t *)0x400FE420))
  2667. #define FLASH_FMPPE9_R (*((volatile uint32_t *)0x400FE424))
  2668. #define FLASH_FMPPE10_R (*((volatile uint32_t *)0x400FE428))
  2669. #define FLASH_FMPPE11_R (*((volatile uint32_t *)0x400FE42C))
  2670. #define FLASH_FMPPE12_R (*((volatile uint32_t *)0x400FE430))
  2671. #define FLASH_FMPPE13_R (*((volatile uint32_t *)0x400FE434))
  2672. #define FLASH_FMPPE14_R (*((volatile uint32_t *)0x400FE438))
  2673. #define FLASH_FMPPE15_R (*((volatile uint32_t *)0x400FE43C))
  2674. //*****************************************************************************
  2675. //
  2676. // System Control registers (SYSCTL)
  2677. //
  2678. //*****************************************************************************
  2679. #define SYSCTL_DID0_R (*((volatile uint32_t *)0x400FE000))
  2680. #define SYSCTL_DID1_R (*((volatile uint32_t *)0x400FE004))
  2681. #define SYSCTL_PTBOCTL_R (*((volatile uint32_t *)0x400FE038))
  2682. #define SYSCTL_RIS_R (*((volatile uint32_t *)0x400FE050))
  2683. #define SYSCTL_IMC_R (*((volatile uint32_t *)0x400FE054))
  2684. #define SYSCTL_MISC_R (*((volatile uint32_t *)0x400FE058))
  2685. #define SYSCTL_RESC_R (*((volatile uint32_t *)0x400FE05C))
  2686. #define SYSCTL_PWRTC_R (*((volatile uint32_t *)0x400FE060))
  2687. #define SYSCTL_NMIC_R (*((volatile uint32_t *)0x400FE064))
  2688. #define SYSCTL_MOSCCTL_R (*((volatile uint32_t *)0x400FE07C))
  2689. #define SYSCTL_RSCLKCFG_R (*((volatile uint32_t *)0x400FE0B0))
  2690. #define SYSCTL_MEMTIM0_R (*((volatile uint32_t *)0x400FE0C0))
  2691. #define SYSCTL_ALTCLKCFG_R (*((volatile uint32_t *)0x400FE138))
  2692. #define SYSCTL_DSCLKCFG_R (*((volatile uint32_t *)0x400FE144))
  2693. #define SYSCTL_DIVSCLK_R (*((volatile uint32_t *)0x400FE148))
  2694. #define SYSCTL_SYSPROP_R (*((volatile uint32_t *)0x400FE14C))
  2695. #define SYSCTL_PIOSCCAL_R (*((volatile uint32_t *)0x400FE150))
  2696. #define SYSCTL_PIOSCSTAT_R (*((volatile uint32_t *)0x400FE154))
  2697. #define SYSCTL_PLLFREQ0_R (*((volatile uint32_t *)0x400FE160))
  2698. #define SYSCTL_PLLFREQ1_R (*((volatile uint32_t *)0x400FE164))
  2699. #define SYSCTL_PLLSTAT_R (*((volatile uint32_t *)0x400FE168))
  2700. #define SYSCTL_SLPPWRCFG_R (*((volatile uint32_t *)0x400FE188))
  2701. #define SYSCTL_DSLPPWRCFG_R (*((volatile uint32_t *)0x400FE18C))
  2702. #define SYSCTL_NVMSTAT_R (*((volatile uint32_t *)0x400FE1A0))
  2703. #define SYSCTL_LDOSPCTL_R (*((volatile uint32_t *)0x400FE1B4))
  2704. #define SYSCTL_LDODPCTL_R (*((volatile uint32_t *)0x400FE1BC))
  2705. #define SYSCTL_RESBEHAVCTL_R (*((volatile uint32_t *)0x400FE1D8))
  2706. #define SYSCTL_HSSR_R (*((volatile uint32_t *)0x400FE1F4))
  2707. #define SYSCTL_USBPDS_R (*((volatile uint32_t *)0x400FE280))
  2708. #define SYSCTL_USBMPC_R (*((volatile uint32_t *)0x400FE284))
  2709. #define SYSCTL_EMACPDS_R (*((volatile uint32_t *)0x400FE288))
  2710. #define SYSCTL_EMACMPC_R (*((volatile uint32_t *)0x400FE28C))
  2711. #define SYSCTL_LCDMPC_R (*((volatile uint32_t *)0x400FE294))
  2712. #define SYSCTL_PPWD_R (*((volatile uint32_t *)0x400FE300))
  2713. #define SYSCTL_PPTIMER_R (*((volatile uint32_t *)0x400FE304))
  2714. #define SYSCTL_PPGPIO_R (*((volatile uint32_t *)0x400FE308))
  2715. #define SYSCTL_PPDMA_R (*((volatile uint32_t *)0x400FE30C))
  2716. #define SYSCTL_PPEPI_R (*((volatile uint32_t *)0x400FE310))
  2717. #define SYSCTL_PPHIB_R (*((volatile uint32_t *)0x400FE314))
  2718. #define SYSCTL_PPUART_R (*((volatile uint32_t *)0x400FE318))
  2719. #define SYSCTL_PPSSI_R (*((volatile uint32_t *)0x400FE31C))
  2720. #define SYSCTL_PPI2C_R (*((volatile uint32_t *)0x400FE320))
  2721. #define SYSCTL_PPUSB_R (*((volatile uint32_t *)0x400FE328))
  2722. #define SYSCTL_PPEPHY_R (*((volatile uint32_t *)0x400FE330))
  2723. #define SYSCTL_PPCAN_R (*((volatile uint32_t *)0x400FE334))
  2724. #define SYSCTL_PPADC_R (*((volatile uint32_t *)0x400FE338))
  2725. #define SYSCTL_PPACMP_R (*((volatile uint32_t *)0x400FE33C))
  2726. #define SYSCTL_PPPWM_R (*((volatile uint32_t *)0x400FE340))
  2727. #define SYSCTL_PPQEI_R (*((volatile uint32_t *)0x400FE344))
  2728. #define SYSCTL_PPLPC_R (*((volatile uint32_t *)0x400FE348))
  2729. #define SYSCTL_PPPECI_R (*((volatile uint32_t *)0x400FE350))
  2730. #define SYSCTL_PPFAN_R (*((volatile uint32_t *)0x400FE354))
  2731. #define SYSCTL_PPEEPROM_R (*((volatile uint32_t *)0x400FE358))
  2732. #define SYSCTL_PPWTIMER_R (*((volatile uint32_t *)0x400FE35C))
  2733. #define SYSCTL_PPRTS_R (*((volatile uint32_t *)0x400FE370))
  2734. #define SYSCTL_PPCCM_R (*((volatile uint32_t *)0x400FE374))
  2735. #define SYSCTL_PPLCD_R (*((volatile uint32_t *)0x400FE390))
  2736. #define SYSCTL_PPOWIRE_R (*((volatile uint32_t *)0x400FE398))
  2737. #define SYSCTL_PPEMAC_R (*((volatile uint32_t *)0x400FE39C))
  2738. #define SYSCTL_PPHIM_R (*((volatile uint32_t *)0x400FE3A4))
  2739. #define SYSCTL_SRWD_R (*((volatile uint32_t *)0x400FE500))
  2740. #define SYSCTL_SRTIMER_R (*((volatile uint32_t *)0x400FE504))
  2741. #define SYSCTL_SRGPIO_R (*((volatile uint32_t *)0x400FE508))
  2742. #define SYSCTL_SRDMA_R (*((volatile uint32_t *)0x400FE50C))
  2743. #define SYSCTL_SREPI_R (*((volatile uint32_t *)0x400FE510))
  2744. #define SYSCTL_SRHIB_R (*((volatile uint32_t *)0x400FE514))
  2745. #define SYSCTL_SRUART_R (*((volatile uint32_t *)0x400FE518))
  2746. #define SYSCTL_SRSSI_R (*((volatile uint32_t *)0x400FE51C))
  2747. #define SYSCTL_SRI2C_R (*((volatile uint32_t *)0x400FE520))
  2748. #define SYSCTL_SRUSB_R (*((volatile uint32_t *)0x400FE528))
  2749. #define SYSCTL_SREPHY_R (*((volatile uint32_t *)0x400FE530))
  2750. #define SYSCTL_SRCAN_R (*((volatile uint32_t *)0x400FE534))
  2751. #define SYSCTL_SRADC_R (*((volatile uint32_t *)0x400FE538))
  2752. #define SYSCTL_SRACMP_R (*((volatile uint32_t *)0x400FE53C))
  2753. #define SYSCTL_SRPWM_R (*((volatile uint32_t *)0x400FE540))
  2754. #define SYSCTL_SRQEI_R (*((volatile uint32_t *)0x400FE544))
  2755. #define SYSCTL_SREEPROM_R (*((volatile uint32_t *)0x400FE558))
  2756. #define SYSCTL_SRCCM_R (*((volatile uint32_t *)0x400FE574))
  2757. #define SYSCTL_SRLCD_R (*((volatile uint32_t *)0x400FE590))
  2758. #define SYSCTL_SROWIRE_R (*((volatile uint32_t *)0x400FE598))
  2759. #define SYSCTL_SREMAC_R (*((volatile uint32_t *)0x400FE59C))
  2760. #define SYSCTL_RCGCWD_R (*((volatile uint32_t *)0x400FE600))
  2761. #define SYSCTL_RCGCTIMER_R (*((volatile uint32_t *)0x400FE604))
  2762. #define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608))
  2763. #define SYSCTL_RCGCDMA_R (*((volatile uint32_t *)0x400FE60C))
  2764. #define SYSCTL_RCGCEPI_R (*((volatile uint32_t *)0x400FE610))
  2765. #define SYSCTL_RCGCHIB_R (*((volatile uint32_t *)0x400FE614))
  2766. #define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618))
  2767. #define SYSCTL_RCGCSSI_R (*((volatile uint32_t *)0x400FE61C))
  2768. #define SYSCTL_RCGCI2C_R (*((volatile uint32_t *)0x400FE620))
  2769. #define SYSCTL_RCGCUSB_R (*((volatile uint32_t *)0x400FE628))
  2770. #define SYSCTL_RCGCEPHY_R (*((volatile uint32_t *)0x400FE630))
  2771. #define SYSCTL_RCGCCAN_R (*((volatile uint32_t *)0x400FE634))
  2772. #define SYSCTL_RCGCADC_R (*((volatile uint32_t *)0x400FE638))
  2773. #define SYSCTL_RCGCACMP_R (*((volatile uint32_t *)0x400FE63C))
  2774. #define SYSCTL_RCGCPWM_R (*((volatile uint32_t *)0x400FE640))
  2775. #define SYSCTL_RCGCQEI_R (*((volatile uint32_t *)0x400FE644))
  2776. #define SYSCTL_RCGCEEPROM_R (*((volatile uint32_t *)0x400FE658))
  2777. #define SYSCTL_RCGCCCM_R (*((volatile uint32_t *)0x400FE674))
  2778. #define SYSCTL_RCGCLCD_R (*((volatile uint32_t *)0x400FE690))
  2779. #define SYSCTL_RCGCOWIRE_R (*((volatile uint32_t *)0x400FE698))
  2780. #define SYSCTL_RCGCEMAC_R (*((volatile uint32_t *)0x400FE69C))
  2781. #define SYSCTL_SCGCWD_R (*((volatile uint32_t *)0x400FE700))
  2782. #define SYSCTL_SCGCTIMER_R (*((volatile uint32_t *)0x400FE704))
  2783. #define SYSCTL_SCGCGPIO_R (*((volatile uint32_t *)0x400FE708))
  2784. #define SYSCTL_SCGCDMA_R (*((volatile uint32_t *)0x400FE70C))
  2785. #define SYSCTL_SCGCEPI_R (*((volatile uint32_t *)0x400FE710))
  2786. #define SYSCTL_SCGCHIB_R (*((volatile uint32_t *)0x400FE714))
  2787. #define SYSCTL_SCGCUART_R (*((volatile uint32_t *)0x400FE718))
  2788. #define SYSCTL_SCGCSSI_R (*((volatile uint32_t *)0x400FE71C))
  2789. #define SYSCTL_SCGCI2C_R (*((volatile uint32_t *)0x400FE720))
  2790. #define SYSCTL_SCGCUSB_R (*((volatile uint32_t *)0x400FE728))
  2791. #define SYSCTL_SCGCEPHY_R (*((volatile uint32_t *)0x400FE730))
  2792. #define SYSCTL_SCGCCAN_R (*((volatile uint32_t *)0x400FE734))
  2793. #define SYSCTL_SCGCADC_R (*((volatile uint32_t *)0x400FE738))
  2794. #define SYSCTL_SCGCACMP_R (*((volatile uint32_t *)0x400FE73C))
  2795. #define SYSCTL_SCGCPWM_R (*((volatile uint32_t *)0x400FE740))
  2796. #define SYSCTL_SCGCQEI_R (*((volatile uint32_t *)0x400FE744))
  2797. #define SYSCTL_SCGCEEPROM_R (*((volatile uint32_t *)0x400FE758))
  2798. #define SYSCTL_SCGCCCM_R (*((volatile uint32_t *)0x400FE774))
  2799. #define SYSCTL_SCGCLCD_R (*((volatile uint32_t *)0x400FE790))
  2800. #define SYSCTL_SCGCOWIRE_R (*((volatile uint32_t *)0x400FE798))
  2801. #define SYSCTL_SCGCEMAC_R (*((volatile uint32_t *)0x400FE79C))
  2802. #define SYSCTL_DCGCWD_R (*((volatile uint32_t *)0x400FE800))
  2803. #define SYSCTL_DCGCTIMER_R (*((volatile uint32_t *)0x400FE804))
  2804. #define SYSCTL_DCGCGPIO_R (*((volatile uint32_t *)0x400FE808))
  2805. #define SYSCTL_DCGCDMA_R (*((volatile uint32_t *)0x400FE80C))
  2806. #define SYSCTL_DCGCEPI_R (*((volatile uint32_t *)0x400FE810))
  2807. #define SYSCTL_DCGCHIB_R (*((volatile uint32_t *)0x400FE814))
  2808. #define SYSCTL_DCGCUART_R (*((volatile uint32_t *)0x400FE818))
  2809. #define SYSCTL_DCGCSSI_R (*((volatile uint32_t *)0x400FE81C))
  2810. #define SYSCTL_DCGCI2C_R (*((volatile uint32_t *)0x400FE820))
  2811. #define SYSCTL_DCGCUSB_R (*((volatile uint32_t *)0x400FE828))
  2812. #define SYSCTL_DCGCEPHY_R (*((volatile uint32_t *)0x400FE830))
  2813. #define SYSCTL_DCGCCAN_R (*((volatile uint32_t *)0x400FE834))
  2814. #define SYSCTL_DCGCADC_R (*((volatile uint32_t *)0x400FE838))
  2815. #define SYSCTL_DCGCACMP_R (*((volatile uint32_t *)0x400FE83C))
  2816. #define SYSCTL_DCGCPWM_R (*((volatile uint32_t *)0x400FE840))
  2817. #define SYSCTL_DCGCQEI_R (*((volatile uint32_t *)0x400FE844))
  2818. #define SYSCTL_DCGCEEPROM_R (*((volatile uint32_t *)0x400FE858))
  2819. #define SYSCTL_DCGCCCM_R (*((volatile uint32_t *)0x400FE874))
  2820. #define SYSCTL_DCGCLCD_R (*((volatile uint32_t *)0x400FE890))
  2821. #define SYSCTL_DCGCOWIRE_R (*((volatile uint32_t *)0x400FE898))
  2822. #define SYSCTL_DCGCEMAC_R (*((volatile uint32_t *)0x400FE89C))
  2823. #define SYSCTL_PCWD_R (*((volatile uint32_t *)0x400FE900))
  2824. #define SYSCTL_PCTIMER_R (*((volatile uint32_t *)0x400FE904))
  2825. #define SYSCTL_PCGPIO_R (*((volatile uint32_t *)0x400FE908))
  2826. #define SYSCTL_PCDMA_R (*((volatile uint32_t *)0x400FE90C))
  2827. #define SYSCTL_PCEPI_R (*((volatile uint32_t *)0x400FE910))
  2828. #define SYSCTL_PCHIB_R (*((volatile uint32_t *)0x400FE914))
  2829. #define SYSCTL_PCUART_R (*((volatile uint32_t *)0x400FE918))
  2830. #define SYSCTL_PCSSI_R (*((volatile uint32_t *)0x400FE91C))
  2831. #define SYSCTL_PCI2C_R (*((volatile uint32_t *)0x400FE920))
  2832. #define SYSCTL_PCUSB_R (*((volatile uint32_t *)0x400FE928))
  2833. #define SYSCTL_PCEPHY_R (*((volatile uint32_t *)0x400FE930))
  2834. #define SYSCTL_PCCAN_R (*((volatile uint32_t *)0x400FE934))
  2835. #define SYSCTL_PCADC_R (*((volatile uint32_t *)0x400FE938))
  2836. #define SYSCTL_PCACMP_R (*((volatile uint32_t *)0x400FE93C))
  2837. #define SYSCTL_PCPWM_R (*((volatile uint32_t *)0x400FE940))
  2838. #define SYSCTL_PCQEI_R (*((volatile uint32_t *)0x400FE944))
  2839. #define SYSCTL_PCEEPROM_R (*((volatile uint32_t *)0x400FE958))
  2840. #define SYSCTL_PCCCM_R (*((volatile uint32_t *)0x400FE974))
  2841. #define SYSCTL_PCLCD_R (*((volatile uint32_t *)0x400FE990))
  2842. #define SYSCTL_PCOWIRE_R (*((volatile uint32_t *)0x400FE998))
  2843. #define SYSCTL_PCEMAC_R (*((volatile uint32_t *)0x400FE99C))
  2844. #define SYSCTL_PRWD_R (*((volatile uint32_t *)0x400FEA00))
  2845. #define SYSCTL_PRTIMER_R (*((volatile uint32_t *)0x400FEA04))
  2846. #define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08))
  2847. #define SYSCTL_PRDMA_R (*((volatile uint32_t *)0x400FEA0C))
  2848. #define SYSCTL_PREPI_R (*((volatile uint32_t *)0x400FEA10))
  2849. #define SYSCTL_PRHIB_R (*((volatile uint32_t *)0x400FEA14))
  2850. #define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))
  2851. #define SYSCTL_PRSSI_R (*((volatile uint32_t *)0x400FEA1C))
  2852. #define SYSCTL_PRI2C_R (*((volatile uint32_t *)0x400FEA20))
  2853. #define SYSCTL_PRUSB_R (*((volatile uint32_t *)0x400FEA28))
  2854. #define SYSCTL_PREPHY_R (*((volatile uint32_t *)0x400FEA30))
  2855. #define SYSCTL_PRCAN_R (*((volatile uint32_t *)0x400FEA34))
  2856. #define SYSCTL_PRADC_R (*((volatile uint32_t *)0x400FEA38))
  2857. #define SYSCTL_PRACMP_R (*((volatile uint32_t *)0x400FEA3C))
  2858. #define SYSCTL_PRPWM_R (*((volatile uint32_t *)0x400FEA40))
  2859. #define SYSCTL_PRQEI_R (*((volatile uint32_t *)0x400FEA44))
  2860. #define SYSCTL_PREEPROM_R (*((volatile uint32_t *)0x400FEA58))
  2861. #define SYSCTL_PRCCM_R (*((volatile uint32_t *)0x400FEA74))
  2862. #define SYSCTL_PRLCD_R (*((volatile uint32_t *)0x400FEA90))
  2863. #define SYSCTL_PROWIRE_R (*((volatile uint32_t *)0x400FEA98))
  2864. #define SYSCTL_PREMAC_R (*((volatile uint32_t *)0x400FEA9C))
  2865. #define SYSCTL_CCMCGREQ_R (*((volatile uint32_t *)0x44030204))
  2866. //*****************************************************************************
  2867. //
  2868. // Micro Direct Memory Access registers (UDMA)
  2869. //
  2870. //*****************************************************************************
  2871. #define UDMA_STAT_R (*((volatile uint32_t *)0x400FF000))
  2872. #define UDMA_CFG_R (*((volatile uint32_t *)0x400FF004))
  2873. #define UDMA_CTLBASE_R (*((volatile uint32_t *)0x400FF008))
  2874. #define UDMA_ALTBASE_R (*((volatile uint32_t *)0x400FF00C))
  2875. #define UDMA_WAITSTAT_R (*((volatile uint32_t *)0x400FF010))
  2876. #define UDMA_SWREQ_R (*((volatile uint32_t *)0x400FF014))
  2877. #define UDMA_USEBURSTSET_R (*((volatile uint32_t *)0x400FF018))
  2878. #define UDMA_USEBURSTCLR_R (*((volatile uint32_t *)0x400FF01C))
  2879. #define UDMA_REQMASKSET_R (*((volatile uint32_t *)0x400FF020))
  2880. #define UDMA_REQMASKCLR_R (*((volatile uint32_t *)0x400FF024))
  2881. #define UDMA_ENASET_R (*((volatile uint32_t *)0x400FF028))
  2882. #define UDMA_ENACLR_R (*((volatile uint32_t *)0x400FF02C))
  2883. #define UDMA_ALTSET_R (*((volatile uint32_t *)0x400FF030))
  2884. #define UDMA_ALTCLR_R (*((volatile uint32_t *)0x400FF034))
  2885. #define UDMA_PRIOSET_R (*((volatile uint32_t *)0x400FF038))
  2886. #define UDMA_PRIOCLR_R (*((volatile uint32_t *)0x400FF03C))
  2887. #define UDMA_ERRCLR_R (*((volatile uint32_t *)0x400FF04C))
  2888. #define UDMA_CHASGN_R (*((volatile uint32_t *)0x400FF500))
  2889. #define UDMA_CHMAP0_R (*((volatile uint32_t *)0x400FF510))
  2890. #define UDMA_CHMAP1_R (*((volatile uint32_t *)0x400FF514))
  2891. #define UDMA_CHMAP2_R (*((volatile uint32_t *)0x400FF518))
  2892. #define UDMA_CHMAP3_R (*((volatile uint32_t *)0x400FF51C))
  2893. //*****************************************************************************
  2894. //
  2895. // Micro Direct Memory Access (uDMA) offsets (UDMA)
  2896. //
  2897. //*****************************************************************************
  2898. #define UDMA_SRCENDP 0x00000000 // DMA Channel Source Address End
  2899. // Pointer
  2900. #define UDMA_DSTENDP 0x00000004 // DMA Channel Destination Address
  2901. // End Pointer
  2902. #define UDMA_CHCTL 0x00000008 // DMA Channel Control Word
  2903. //*****************************************************************************
  2904. //
  2905. // EC registers (CCM0)
  2906. //
  2907. //*****************************************************************************
  2908. #define CCM0_CRCCTRL_R (*((volatile uint32_t *)0x44030400))
  2909. #define CCM0_CRCSEED_R (*((volatile uint32_t *)0x44030410))
  2910. #define CCM0_CRCDIN_R (*((volatile uint32_t *)0x44030414))
  2911. #define CCM0_CRCRSLTPP_R (*((volatile uint32_t *)0x44030418))
  2912. //*****************************************************************************
  2913. //
  2914. // SHA/MD5 registers (SHAMD5)
  2915. //
  2916. //*****************************************************************************
  2917. #define SHAMD5_ODIGEST_A_R (*((volatile uint32_t *)0x44034000))
  2918. #define SHAMD5_ODIGEST_B_R (*((volatile uint32_t *)0x44034004))
  2919. #define SHAMD5_ODIGEST_C_R (*((volatile uint32_t *)0x44034008))
  2920. #define SHAMD5_ODIGEST_D_R (*((volatile uint32_t *)0x4403400C))
  2921. #define SHAMD5_ODIGEST_E_R (*((volatile uint32_t *)0x44034010))
  2922. #define SHAMD5_ODIGEST_F_R (*((volatile uint32_t *)0x44034014))
  2923. #define SHAMD5_ODIGEST_G_R (*((volatile uint32_t *)0x44034018))
  2924. #define SHAMD5_ODIGEST_H_R (*((volatile uint32_t *)0x4403401C))
  2925. #define SHAMD5_IDIGEST_A_R (*((volatile uint32_t *)0x44034020))
  2926. #define SHAMD5_IDIGEST_B_R (*((volatile uint32_t *)0x44034024))
  2927. #define SHAMD5_IDIGEST_C_R (*((volatile uint32_t *)0x44034028))
  2928. #define SHAMD5_IDIGEST_D_R (*((volatile uint32_t *)0x4403402C))
  2929. #define SHAMD5_IDIGEST_E_R (*((volatile uint32_t *)0x44034030))
  2930. #define SHAMD5_IDIGEST_F_R (*((volatile uint32_t *)0x44034034))
  2931. #define SHAMD5_IDIGEST_G_R (*((volatile uint32_t *)0x44034038))
  2932. #define SHAMD5_IDIGEST_H_R (*((volatile uint32_t *)0x4403403C))
  2933. #define SHAMD5_DIGEST_COUNT_R (*((volatile uint32_t *)0x44034040))
  2934. #define SHAMD5_MODE_R (*((volatile uint32_t *)0x44034044))
  2935. #define SHAMD5_LENGTH_R (*((volatile uint32_t *)0x44034048))
  2936. #define SHAMD5_DATA_0_IN_R (*((volatile uint32_t *)0x44034080))
  2937. #define SHAMD5_DATA_1_IN_R (*((volatile uint32_t *)0x44034084))
  2938. #define SHAMD5_DATA_2_IN_R (*((volatile uint32_t *)0x44034088))
  2939. #define SHAMD5_DATA_3_IN_R (*((volatile uint32_t *)0x4403408C))
  2940. #define SHAMD5_DATA_4_IN_R (*((volatile uint32_t *)0x44034090))
  2941. #define SHAMD5_DATA_5_IN_R (*((volatile uint32_t *)0x44034094))
  2942. #define SHAMD5_DATA_6_IN_R (*((volatile uint32_t *)0x44034098))
  2943. #define SHAMD5_DATA_7_IN_R (*((volatile uint32_t *)0x4403409C))
  2944. #define SHAMD5_DATA_8_IN_R (*((volatile uint32_t *)0x440340A0))
  2945. #define SHAMD5_DATA_9_IN_R (*((volatile uint32_t *)0x440340A4))
  2946. #define SHAMD5_DATA_10_IN_R (*((volatile uint32_t *)0x440340A8))
  2947. #define SHAMD5_DATA_11_IN_R (*((volatile uint32_t *)0x440340AC))
  2948. #define SHAMD5_DATA_12_IN_R (*((volatile uint32_t *)0x440340B0))
  2949. #define SHAMD5_DATA_13_IN_R (*((volatile uint32_t *)0x440340B4))
  2950. #define SHAMD5_DATA_14_IN_R (*((volatile uint32_t *)0x440340B8))
  2951. #define SHAMD5_DATA_15_IN_R (*((volatile uint32_t *)0x440340BC))
  2952. #define SHAMD5_REVISION_R (*((volatile uint32_t *)0x44034100))
  2953. #define SHAMD5_SYSCONFIG_R (*((volatile uint32_t *)0x44034110))
  2954. #define SHAMD5_SYSSTATUS_R (*((volatile uint32_t *)0x44034114))
  2955. #define SHAMD5_IRQSTATUS_R (*((volatile uint32_t *)0x44034118))
  2956. #define SHAMD5_IRQENABLE_R (*((volatile uint32_t *)0x4403411C))
  2957. #define SHAMD5_DMAIM_R (*((volatile uint32_t *)0x144030010))
  2958. #define SHAMD5_DMARIS_R (*((volatile uint32_t *)0x144030014))
  2959. #define SHAMD5_DMAMIS_R (*((volatile uint32_t *)0x144030018))
  2960. #define SHAMD5_DMAIC_R (*((volatile uint32_t *)0x14403001C))
  2961. //*****************************************************************************
  2962. //
  2963. // AES registers (AES)
  2964. //
  2965. //*****************************************************************************
  2966. #define AES_KEY2_6_R (*((volatile uint32_t *)0x44036000))
  2967. #define AES_KEY2_7_R (*((volatile uint32_t *)0x44036004))
  2968. #define AES_KEY2_4_R (*((volatile uint32_t *)0x44036008))
  2969. #define AES_KEY2_5_R (*((volatile uint32_t *)0x4403600C))
  2970. #define AES_KEY2_2_R (*((volatile uint32_t *)0x44036010))
  2971. #define AES_KEY2_3_R (*((volatile uint32_t *)0x44036014))
  2972. #define AES_KEY2_0_R (*((volatile uint32_t *)0x44036018))
  2973. #define AES_KEY2_1_R (*((volatile uint32_t *)0x4403601C))
  2974. #define AES_KEY1_6_R (*((volatile uint32_t *)0x44036020))
  2975. #define AES_KEY1_7_R (*((volatile uint32_t *)0x44036024))
  2976. #define AES_KEY1_4_R (*((volatile uint32_t *)0x44036028))
  2977. #define AES_KEY1_5_R (*((volatile uint32_t *)0x4403602C))
  2978. #define AES_KEY1_2_R (*((volatile uint32_t *)0x44036030))
  2979. #define AES_KEY1_3_R (*((volatile uint32_t *)0x44036034))
  2980. #define AES_KEY1_0_R (*((volatile uint32_t *)0x44036038))
  2981. #define AES_KEY1_1_R (*((volatile uint32_t *)0x4403603C))
  2982. #define AES_IV_IN_0_R (*((volatile uint32_t *)0x44036040))
  2983. #define AES_IV_IN_1_R (*((volatile uint32_t *)0x44036044))
  2984. #define AES_IV_IN_2_R (*((volatile uint32_t *)0x44036048))
  2985. #define AES_IV_IN_3_R (*((volatile uint32_t *)0x4403604C))
  2986. #define AES_CTRL_R (*((volatile uint32_t *)0x44036050))
  2987. #define AES_C_LENGTH_0_R (*((volatile uint32_t *)0x44036054))
  2988. #define AES_C_LENGTH_1_R (*((volatile uint32_t *)0x44036058))
  2989. #define AES_AUTH_LENGTH_R (*((volatile uint32_t *)0x4403605C))
  2990. #define AES_DATA_IN_0_R (*((volatile uint32_t *)0x44036060))
  2991. #define AES_DATA_IN_1_R (*((volatile uint32_t *)0x44036064))
  2992. #define AES_DATA_IN_2_R (*((volatile uint32_t *)0x44036068))
  2993. #define AES_DATA_IN_3_R (*((volatile uint32_t *)0x4403606C))
  2994. #define AES_TAG_OUT_0_R (*((volatile uint32_t *)0x44036070))
  2995. #define AES_TAG_OUT_1_R (*((volatile uint32_t *)0x44036074))
  2996. #define AES_TAG_OUT_2_R (*((volatile uint32_t *)0x44036078))
  2997. #define AES_TAG_OUT_3_R (*((volatile uint32_t *)0x4403607C))
  2998. #define AES_REVISION_R (*((volatile uint32_t *)0x44036080))
  2999. #define AES_SYSCONFIG_R (*((volatile uint32_t *)0x44036084))
  3000. #define AES_SYSSTATUS_R (*((volatile uint32_t *)0x44036088))
  3001. #define AES_IRQSTATUS_R (*((volatile uint32_t *)0x4403608C))
  3002. #define AES_IRQENABLE_R (*((volatile uint32_t *)0x44036090))
  3003. #define AES_DIRTYBITS_R (*((volatile uint32_t *)0x44036094))
  3004. #define AES_DMAIM_R (*((volatile uint32_t *)0x144030020))
  3005. #define AES_DMARIS_R (*((volatile uint32_t *)0x144030024))
  3006. #define AES_DMAMIS_R (*((volatile uint32_t *)0x144030028))
  3007. #define AES_DMAIC_R (*((volatile uint32_t *)0x14403002C))
  3008. //*****************************************************************************
  3009. //
  3010. // DES registers (DES)
  3011. //
  3012. //*****************************************************************************
  3013. #define DES_KEY3_L_R (*((volatile uint32_t *)0x44038000))
  3014. #define DES_KEY3_H_R (*((volatile uint32_t *)0x44038004))
  3015. #define DES_KEY2_L_R (*((volatile uint32_t *)0x44038008))
  3016. #define DES_KEY2_H_R (*((volatile uint32_t *)0x4403800C))
  3017. #define DES_KEY1_L_R (*((volatile uint32_t *)0x44038010))
  3018. #define DES_KEY1_H_R (*((volatile uint32_t *)0x44038014))
  3019. #define DES_IV_L_R (*((volatile uint32_t *)0x44038018))
  3020. #define DES_IV_H_R (*((volatile uint32_t *)0x4403801C))
  3021. #define DES_CTRL_R (*((volatile uint32_t *)0x44038020))
  3022. #define DES_LENGTH_R (*((volatile uint32_t *)0x44038024))
  3023. #define DES_DATA_L_R (*((volatile uint32_t *)0x44038028))
  3024. #define DES_DATA_H_R (*((volatile uint32_t *)0x4403802C))
  3025. #define DES_REVISION_R (*((volatile uint32_t *)0x44038030))
  3026. #define DES_SYSCONFIG_R (*((volatile uint32_t *)0x44038034))
  3027. #define DES_SYSSTATUS_R (*((volatile uint32_t *)0x44038038))
  3028. #define DES_IRQSTATUS_R (*((volatile uint32_t *)0x4403803C))
  3029. #define DES_IRQENABLE_R (*((volatile uint32_t *)0x44038040))
  3030. #define DES_DIRTYBITS_R (*((volatile uint32_t *)0x44038044))
  3031. #define DES_DMAIM_R (*((volatile uint32_t *)0x144030030))
  3032. #define DES_DMARIS_R (*((volatile uint32_t *)0x144030034))
  3033. #define DES_DMAMIS_R (*((volatile uint32_t *)0x144030038))
  3034. #define DES_DMAIC_R (*((volatile uint32_t *)0x14403003C))
  3035. //*****************************************************************************
  3036. //
  3037. // LCD registers (LCD0)
  3038. //
  3039. //*****************************************************************************
  3040. #define LCD0_PID_R (*((volatile uint32_t *)0x44050000))
  3041. #define LCD0_CTL_R (*((volatile uint32_t *)0x44050004))
  3042. #define LCD0_LIDDCTL_R (*((volatile uint32_t *)0x4405000C))
  3043. #define LCD0_LIDDCS0CFG_R (*((volatile uint32_t *)0x44050010))
  3044. #define LCD0_LIDDCS0ADDR_R (*((volatile uint32_t *)0x44050014))
  3045. #define LCD0_LIDDCS0DATA_R (*((volatile uint32_t *)0x44050018))
  3046. #define LCD0_LIDDCS1CFG_R (*((volatile uint32_t *)0x4405001C))
  3047. #define LCD0_LIDDCS1ADDR_R (*((volatile uint32_t *)0x44050020))
  3048. #define LCD0_LIDDCS1DATA_R (*((volatile uint32_t *)0x44050024))
  3049. #define LCD0_RASTRCTL_R (*((volatile uint32_t *)0x44050028))
  3050. #define LCD0_RASTRTIM0_R (*((volatile uint32_t *)0x4405002C))
  3051. #define LCD0_RASTRTIM1_R (*((volatile uint32_t *)0x44050030))
  3052. #define LCD0_RASTRTIM2_R (*((volatile uint32_t *)0x44050034))
  3053. #define LCD0_RASTRSUBP1_R (*((volatile uint32_t *)0x44050038))
  3054. #define LCD0_RASTRSUBP2_R (*((volatile uint32_t *)0x4405003C))
  3055. #define LCD0_DMACTL_R (*((volatile uint32_t *)0x44050040))
  3056. #define LCD0_DMABAFB0_R (*((volatile uint32_t *)0x44050044))
  3057. #define LCD0_DMACAFB0_R (*((volatile uint32_t *)0x44050048))
  3058. #define LCD0_DMABAFB1_R (*((volatile uint32_t *)0x4405004C))
  3059. #define LCD0_DMACAFB1_R (*((volatile uint32_t *)0x44050050))
  3060. #define LCD0_SYSCFG_R (*((volatile uint32_t *)0x44050054))
  3061. #define LCD0_RISSET_R (*((volatile uint32_t *)0x44050058))
  3062. #define LCD0_MISCLR_R (*((volatile uint32_t *)0x4405005C))
  3063. #define LCD0_IM_R (*((volatile uint32_t *)0x44050060))
  3064. #define LCD0_IENC_R (*((volatile uint32_t *)0x44050064))
  3065. #define LCD0_CLKEN_R (*((volatile uint32_t *)0x4405006C))
  3066. #define LCD0_CLKRESET_R (*((volatile uint32_t *)0x44050070))
  3067. //*****************************************************************************
  3068. //
  3069. // NVIC registers (NVIC)
  3070. //
  3071. //*****************************************************************************
  3072. #define NVIC_ACTLR_R (*((volatile uint32_t *)0xE000E008))
  3073. #define NVIC_ST_CTRL_R (*((volatile uint32_t *)0xE000E010))
  3074. #define NVIC_ST_RELOAD_R (*((volatile uint32_t *)0xE000E014))
  3075. #define NVIC_ST_CURRENT_R (*((volatile uint32_t *)0xE000E018))
  3076. #define NVIC_EN0_R (*((volatile uint32_t *)0xE000E100))
  3077. #define NVIC_EN1_R (*((volatile uint32_t *)0xE000E104))
  3078. #define NVIC_EN2_R (*((volatile uint32_t *)0xE000E108))
  3079. #define NVIC_EN3_R (*((volatile uint32_t *)0xE000E10C))
  3080. #define NVIC_DIS0_R (*((volatile uint32_t *)0xE000E180))
  3081. #define NVIC_DIS1_R (*((volatile uint32_t *)0xE000E184))
  3082. #define NVIC_DIS2_R (*((volatile uint32_t *)0xE000E188))
  3083. #define NVIC_DIS3_R (*((volatile uint32_t *)0xE000E18C))
  3084. #define NVIC_PEND0_R (*((volatile uint32_t *)0xE000E200))
  3085. #define NVIC_PEND1_R (*((volatile uint32_t *)0xE000E204))
  3086. #define NVIC_PEND2_R (*((volatile uint32_t *)0xE000E208))
  3087. #define NVIC_PEND3_R (*((volatile uint32_t *)0xE000E20C))
  3088. #define NVIC_UNPEND0_R (*((volatile uint32_t *)0xE000E280))
  3089. #define NVIC_UNPEND1_R (*((volatile uint32_t *)0xE000E284))
  3090. #define NVIC_UNPEND2_R (*((volatile uint32_t *)0xE000E288))
  3091. #define NVIC_UNPEND3_R (*((volatile uint32_t *)0xE000E28C))
  3092. #define NVIC_ACTIVE0_R (*((volatile uint32_t *)0xE000E300))
  3093. #define NVIC_ACTIVE1_R (*((volatile uint32_t *)0xE000E304))
  3094. #define NVIC_ACTIVE2_R (*((volatile uint32_t *)0xE000E308))
  3095. #define NVIC_ACTIVE3_R (*((volatile uint32_t *)0xE000E30C))
  3096. #define NVIC_PRI0_R (*((volatile uint32_t *)0xE000E400))
  3097. #define NVIC_PRI1_R (*((volatile uint32_t *)0xE000E404))
  3098. #define NVIC_PRI2_R (*((volatile uint32_t *)0xE000E408))
  3099. #define NVIC_PRI3_R (*((volatile uint32_t *)0xE000E40C))
  3100. #define NVIC_PRI4_R (*((volatile uint32_t *)0xE000E410))
  3101. #define NVIC_PRI5_R (*((volatile uint32_t *)0xE000E414))
  3102. #define NVIC_PRI6_R (*((volatile uint32_t *)0xE000E418))
  3103. #define NVIC_PRI7_R (*((volatile uint32_t *)0xE000E41C))
  3104. #define NVIC_PRI8_R (*((volatile uint32_t *)0xE000E420))
  3105. #define NVIC_PRI9_R (*((volatile uint32_t *)0xE000E424))
  3106. #define NVIC_PRI10_R (*((volatile uint32_t *)0xE000E428))
  3107. #define NVIC_PRI11_R (*((volatile uint32_t *)0xE000E42C))
  3108. #define NVIC_PRI12_R (*((volatile uint32_t *)0xE000E430))
  3109. #define NVIC_PRI13_R (*((volatile uint32_t *)0xE000E434))
  3110. #define NVIC_PRI14_R (*((volatile uint32_t *)0xE000E438))
  3111. #define NVIC_PRI15_R (*((volatile uint32_t *)0xE000E43C))
  3112. #define NVIC_PRI16_R (*((volatile uint32_t *)0xE000E440))
  3113. #define NVIC_PRI17_R (*((volatile uint32_t *)0xE000E444))
  3114. #define NVIC_PRI18_R (*((volatile uint32_t *)0xE000E448))
  3115. #define NVIC_PRI19_R (*((volatile uint32_t *)0xE000E44C))
  3116. #define NVIC_PRI20_R (*((volatile uint32_t *)0xE000E450))
  3117. #define NVIC_PRI21_R (*((volatile uint32_t *)0xE000E454))
  3118. #define NVIC_PRI22_R (*((volatile uint32_t *)0xE000E458))
  3119. #define NVIC_PRI23_R (*((volatile uint32_t *)0xE000E45C))
  3120. #define NVIC_PRI24_R (*((volatile uint32_t *)0xE000E460))
  3121. #define NVIC_PRI25_R (*((volatile uint32_t *)0xE000E464))
  3122. #define NVIC_PRI26_R (*((volatile uint32_t *)0xE000E468))
  3123. #define NVIC_PRI27_R (*((volatile uint32_t *)0xE000E46C))
  3124. #define NVIC_PRI28_R (*((volatile uint32_t *)0xE000E470))
  3125. #define NVIC_CPUID_R (*((volatile uint32_t *)0xE000ED00))
  3126. #define NVIC_INT_CTRL_R (*((volatile uint32_t *)0xE000ED04))
  3127. #define NVIC_VTABLE_R (*((volatile uint32_t *)0xE000ED08))
  3128. #define NVIC_APINT_R (*((volatile uint32_t *)0xE000ED0C))
  3129. #define NVIC_SYS_CTRL_R (*((volatile uint32_t *)0xE000ED10))
  3130. #define NVIC_CFG_CTRL_R (*((volatile uint32_t *)0xE000ED14))
  3131. #define NVIC_SYS_PRI1_R (*((volatile uint32_t *)0xE000ED18))
  3132. #define NVIC_SYS_PRI2_R (*((volatile uint32_t *)0xE000ED1C))
  3133. #define NVIC_SYS_PRI3_R (*((volatile uint32_t *)0xE000ED20))
  3134. #define NVIC_SYS_HND_CTRL_R (*((volatile uint32_t *)0xE000ED24))
  3135. #define NVIC_FAULT_STAT_R (*((volatile uint32_t *)0xE000ED28))
  3136. #define NVIC_HFAULT_STAT_R (*((volatile uint32_t *)0xE000ED2C))
  3137. #define NVIC_DEBUG_STAT_R (*((volatile uint32_t *)0xE000ED30))
  3138. #define NVIC_MM_ADDR_R (*((volatile uint32_t *)0xE000ED34))
  3139. #define NVIC_FAULT_ADDR_R (*((volatile uint32_t *)0xE000ED38))
  3140. #define NVIC_CPAC_R (*((volatile uint32_t *)0xE000ED88))
  3141. #define NVIC_MPU_TYPE_R (*((volatile uint32_t *)0xE000ED90))
  3142. #define NVIC_MPU_CTRL_R (*((volatile uint32_t *)0xE000ED94))
  3143. #define NVIC_MPU_NUMBER_R (*((volatile uint32_t *)0xE000ED98))
  3144. #define NVIC_MPU_BASE_R (*((volatile uint32_t *)0xE000ED9C))
  3145. #define NVIC_MPU_ATTR_R (*((volatile uint32_t *)0xE000EDA0))
  3146. #define NVIC_MPU_BASE1_R (*((volatile uint32_t *)0xE000EDA4))
  3147. #define NVIC_MPU_ATTR1_R (*((volatile uint32_t *)0xE000EDA8))
  3148. #define NVIC_MPU_BASE2_R (*((volatile uint32_t *)0xE000EDAC))
  3149. #define NVIC_MPU_ATTR2_R (*((volatile uint32_t *)0xE000EDB0))
  3150. #define NVIC_MPU_BASE3_R (*((volatile uint32_t *)0xE000EDB4))
  3151. #define NVIC_MPU_ATTR3_R (*((volatile uint32_t *)0xE000EDB8))
  3152. #define NVIC_DBG_CTRL_R (*((volatile uint32_t *)0xE000EDF0))
  3153. #define NVIC_DBG_XFER_R (*((volatile uint32_t *)0xE000EDF4))
  3154. #define NVIC_DBG_DATA_R (*((volatile uint32_t *)0xE000EDF8))
  3155. #define NVIC_DBG_INT_R (*((volatile uint32_t *)0xE000EDFC))
  3156. #define NVIC_SW_TRIG_R (*((volatile uint32_t *)0xE000EF00))
  3157. #define NVIC_FPCC_R (*((volatile uint32_t *)0xE000EF34))
  3158. #define NVIC_FPCA_R (*((volatile uint32_t *)0xE000EF38))
  3159. #define NVIC_FPDSC_R (*((volatile uint32_t *)0xE000EF3C))
  3160. //*****************************************************************************
  3161. //
  3162. // The following are defines for the bit fields in the WDT_O_LOAD register.
  3163. //
  3164. //*****************************************************************************
  3165. #define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value
  3166. #define WDT_LOAD_S 0
  3167. //*****************************************************************************
  3168. //
  3169. // The following are defines for the bit fields in the WDT_O_VALUE register.
  3170. //
  3171. //*****************************************************************************
  3172. #define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value
  3173. #define WDT_VALUE_S 0
  3174. //*****************************************************************************
  3175. //
  3176. // The following are defines for the bit fields in the WDT_O_CTL register.
  3177. //
  3178. //*****************************************************************************
  3179. #define WDT_CTL_WRC 0x80000000 // Write Complete
  3180. #define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type
  3181. #define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable
  3182. #define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable
  3183. //*****************************************************************************
  3184. //
  3185. // The following are defines for the bit fields in the WDT_O_ICR register.
  3186. //
  3187. //*****************************************************************************
  3188. #define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear
  3189. #define WDT_ICR_S 0
  3190. //*****************************************************************************
  3191. //
  3192. // The following are defines for the bit fields in the WDT_O_RIS register.
  3193. //
  3194. //*****************************************************************************
  3195. #define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status
  3196. //*****************************************************************************
  3197. //
  3198. // The following are defines for the bit fields in the WDT_O_MIS register.
  3199. //
  3200. //*****************************************************************************
  3201. #define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status
  3202. //*****************************************************************************
  3203. //
  3204. // The following are defines for the bit fields in the WDT_O_TEST register.
  3205. //
  3206. //*****************************************************************************
  3207. #define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable
  3208. //*****************************************************************************
  3209. //
  3210. // The following are defines for the bit fields in the WDT_O_LOCK register.
  3211. //
  3212. //*****************************************************************************
  3213. #define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock
  3214. #define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked
  3215. #define WDT_LOCK_LOCKED 0x00000001 // Locked
  3216. #define WDT_LOCK_UNLOCK 0x1ACCE551 // Unlocks the watchdog timer
  3217. //*****************************************************************************
  3218. //
  3219. // The following are defines for the bit fields in the SSI_O_CR0 register.
  3220. //
  3221. //*****************************************************************************
  3222. #define SSI_CR0_SCR_M 0x0000FF00 // SSI Serial Clock Rate
  3223. #define SSI_CR0_SPH 0x00000080 // SSI Serial Clock Phase
  3224. #define SSI_CR0_SPO 0x00000040 // SSI Serial Clock Polarity
  3225. #define SSI_CR0_FRF_M 0x00000030 // SSI Frame Format Select
  3226. #define SSI_CR0_FRF_MOTO 0x00000000 // Freescale SPI Frame Format
  3227. #define SSI_CR0_FRF_TI 0x00000010 // Synchronous Serial Frame Format
  3228. #define SSI_CR0_DSS_M 0x0000000F // SSI Data Size Select
  3229. #define SSI_CR0_DSS_4 0x00000003 // 4-bit data
  3230. #define SSI_CR0_DSS_5 0x00000004 // 5-bit data
  3231. #define SSI_CR0_DSS_6 0x00000005 // 6-bit data
  3232. #define SSI_CR0_DSS_7 0x00000006 // 7-bit data
  3233. #define SSI_CR0_DSS_8 0x00000007 // 8-bit data
  3234. #define SSI_CR0_DSS_9 0x00000008 // 9-bit data
  3235. #define SSI_CR0_DSS_10 0x00000009 // 10-bit data
  3236. #define SSI_CR0_DSS_11 0x0000000A // 11-bit data
  3237. #define SSI_CR0_DSS_12 0x0000000B // 12-bit data
  3238. #define SSI_CR0_DSS_13 0x0000000C // 13-bit data
  3239. #define SSI_CR0_DSS_14 0x0000000D // 14-bit data
  3240. #define SSI_CR0_DSS_15 0x0000000E // 15-bit data
  3241. #define SSI_CR0_DSS_16 0x0000000F // 16-bit data
  3242. #define SSI_CR0_SCR_S 8
  3243. //*****************************************************************************
  3244. //
  3245. // The following are defines for the bit fields in the SSI_O_CR1 register.
  3246. //
  3247. //*****************************************************************************
  3248. #define SSI_CR1_EOM 0x00000800 // Stop Frame (End of Message)
  3249. #define SSI_CR1_FSSHLDFRM 0x00000400 // FSS Hold Frame
  3250. #define SSI_CR1_HSCLKEN 0x00000200 // High Speed Clock Enable
  3251. #define SSI_CR1_DIR 0x00000100 // SSI Direction of Operation
  3252. #define SSI_CR1_MODE_M 0x000000C0 // SSI Mode
  3253. #define SSI_CR1_MODE_LEGACY 0x00000000 // Legacy SSI mode
  3254. #define SSI_CR1_MODE_BI 0x00000040 // Bi-SSI mode
  3255. #define SSI_CR1_MODE_QUAD 0x00000080 // Quad-SSI Mode
  3256. #define SSI_CR1_MODE_ADVANCED 0x000000C0 // Advanced SSI Mode with 8-bit
  3257. // packet size
  3258. #define SSI_CR1_EOT 0x00000010 // End of Transmission
  3259. #define SSI_CR1_MS 0x00000004 // SSI Master/Slave Select
  3260. #define SSI_CR1_SSE 0x00000002 // SSI Synchronous Serial Port
  3261. // Enable
  3262. #define SSI_CR1_LBM 0x00000001 // SSI Loopback Mode
  3263. //*****************************************************************************
  3264. //
  3265. // The following are defines for the bit fields in the SSI_O_DR register.
  3266. //
  3267. //*****************************************************************************
  3268. #define SSI_DR_DATA_M 0x0000FFFF // SSI Receive/Transmit Data
  3269. #define SSI_DR_DATA_S 0
  3270. //*****************************************************************************
  3271. //
  3272. // The following are defines for the bit fields in the SSI_O_SR register.
  3273. //
  3274. //*****************************************************************************
  3275. #define SSI_SR_BSY 0x00000010 // SSI Busy Bit
  3276. #define SSI_SR_RFF 0x00000008 // SSI Receive FIFO Full
  3277. #define SSI_SR_RNE 0x00000004 // SSI Receive FIFO Not Empty
  3278. #define SSI_SR_TNF 0x00000002 // SSI Transmit FIFO Not Full
  3279. #define SSI_SR_TFE 0x00000001 // SSI Transmit FIFO Empty
  3280. //*****************************************************************************
  3281. //
  3282. // The following are defines for the bit fields in the SSI_O_CPSR register.
  3283. //
  3284. //*****************************************************************************
  3285. #define SSI_CPSR_CPSDVSR_M 0x000000FF // SSI Clock Prescale Divisor
  3286. #define SSI_CPSR_CPSDVSR_S 0
  3287. //*****************************************************************************
  3288. //
  3289. // The following are defines for the bit fields in the SSI_O_IM register.
  3290. //
  3291. //*****************************************************************************
  3292. #define SSI_IM_EOTIM 0x00000040 // End of Transmit Interrupt Mask
  3293. #define SSI_IM_DMATXIM 0x00000020 // SSI Transmit DMA Interrupt Mask
  3294. #define SSI_IM_DMARXIM 0x00000010 // SSI Receive DMA Interrupt Mask
  3295. #define SSI_IM_TXIM 0x00000008 // SSI Transmit FIFO Interrupt Mask
  3296. #define SSI_IM_RXIM 0x00000004 // SSI Receive FIFO Interrupt Mask
  3297. #define SSI_IM_RTIM 0x00000002 // SSI Receive Time-Out Interrupt
  3298. // Mask
  3299. #define SSI_IM_RORIM 0x00000001 // SSI Receive Overrun Interrupt
  3300. // Mask
  3301. //*****************************************************************************
  3302. //
  3303. // The following are defines for the bit fields in the SSI_O_RIS register.
  3304. //
  3305. //*****************************************************************************
  3306. #define SSI_RIS_EOTRIS 0x00000040 // End of Transmit Raw Interrupt
  3307. // Status
  3308. #define SSI_RIS_DMATXRIS 0x00000020 // SSI Transmit DMA Raw Interrupt
  3309. // Status
  3310. #define SSI_RIS_DMARXRIS 0x00000010 // SSI Receive DMA Raw Interrupt
  3311. // Status
  3312. #define SSI_RIS_TXRIS 0x00000008 // SSI Transmit FIFO Raw Interrupt
  3313. // Status
  3314. #define SSI_RIS_RXRIS 0x00000004 // SSI Receive FIFO Raw Interrupt
  3315. // Status
  3316. #define SSI_RIS_RTRIS 0x00000002 // SSI Receive Time-Out Raw
  3317. // Interrupt Status
  3318. #define SSI_RIS_RORRIS 0x00000001 // SSI Receive Overrun Raw
  3319. // Interrupt Status
  3320. //*****************************************************************************
  3321. //
  3322. // The following are defines for the bit fields in the SSI_O_MIS register.
  3323. //
  3324. //*****************************************************************************
  3325. #define SSI_MIS_EOTMIS 0x00000040 // End of Transmit Masked Interrupt
  3326. // Status
  3327. #define SSI_MIS_DMATXMIS 0x00000020 // SSI Transmit DMA Masked
  3328. // Interrupt Status
  3329. #define SSI_MIS_DMARXMIS 0x00000010 // SSI Receive DMA Masked Interrupt
  3330. // Status
  3331. #define SSI_MIS_TXMIS 0x00000008 // SSI Transmit FIFO Masked
  3332. // Interrupt Status
  3333. #define SSI_MIS_RXMIS 0x00000004 // SSI Receive FIFO Masked
  3334. // Interrupt Status
  3335. #define SSI_MIS_RTMIS 0x00000002 // SSI Receive Time-Out Masked
  3336. // Interrupt Status
  3337. #define SSI_MIS_RORMIS 0x00000001 // SSI Receive Overrun Masked
  3338. // Interrupt Status
  3339. //*****************************************************************************
  3340. //
  3341. // The following are defines for the bit fields in the SSI_O_ICR register.
  3342. //
  3343. //*****************************************************************************
  3344. #define SSI_ICR_EOTIC 0x00000040 // End of Transmit Interrupt Clear
  3345. #define SSI_ICR_DMATXIC 0x00000020 // SSI Transmit DMA Interrupt Clear
  3346. #define SSI_ICR_DMARXIC 0x00000010 // SSI Receive DMA Interrupt Clear
  3347. #define SSI_ICR_RTIC 0x00000002 // SSI Receive Time-Out Interrupt
  3348. // Clear
  3349. #define SSI_ICR_RORIC 0x00000001 // SSI Receive Overrun Interrupt
  3350. // Clear
  3351. //*****************************************************************************
  3352. //
  3353. // The following are defines for the bit fields in the SSI_O_DMACTL register.
  3354. //
  3355. //*****************************************************************************
  3356. #define SSI_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
  3357. #define SSI_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
  3358. //*****************************************************************************
  3359. //
  3360. // The following are defines for the bit fields in the SSI_O_PP register.
  3361. //
  3362. //*****************************************************************************
  3363. #define SSI_PP_FSSHLDFRM 0x00000008 // FSS Hold Frame Capability
  3364. #define SSI_PP_MODE_M 0x00000006 // Mode of Operation
  3365. #define SSI_PP_MODE_LEGACY 0x00000000 // Legacy SSI mode
  3366. #define SSI_PP_MODE_ADVBI 0x00000002 // Legacy mode, Advanced SSI mode
  3367. // and Bi-SSI mode enabled
  3368. #define SSI_PP_MODE_ADVBIQUAD 0x00000004 // Legacy mode, Advanced mode,
  3369. // Bi-SSI and Quad-SSI mode enabled
  3370. #define SSI_PP_HSCLK 0x00000001 // High Speed Capability
  3371. //*****************************************************************************
  3372. //
  3373. // The following are defines for the bit fields in the SSI_O_CC register.
  3374. //
  3375. //*****************************************************************************
  3376. #define SSI_CC_CS_M 0x0000000F // SSI Baud Clock Source
  3377. #define SSI_CC_CS_SYSPLL 0x00000000 // System clock (based on clock
  3378. // source and divisor factor)
  3379. #define SSI_CC_CS_PIOSC 0x00000005 // PIOSC
  3380. //*****************************************************************************
  3381. //
  3382. // The following are defines for the bit fields in the UART_O_DR register.
  3383. //
  3384. //*****************************************************************************
  3385. #define UART_DR_OE 0x00000800 // UART Overrun Error
  3386. #define UART_DR_BE 0x00000400 // UART Break Error
  3387. #define UART_DR_PE 0x00000200 // UART Parity Error
  3388. #define UART_DR_FE 0x00000100 // UART Framing Error
  3389. #define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
  3390. #define UART_DR_DATA_S 0
  3391. //*****************************************************************************
  3392. //
  3393. // The following are defines for the bit fields in the UART_O_RSR register.
  3394. //
  3395. //*****************************************************************************
  3396. #define UART_RSR_OE 0x00000008 // UART Overrun Error
  3397. #define UART_RSR_BE 0x00000004 // UART Break Error
  3398. #define UART_RSR_PE 0x00000002 // UART Parity Error
  3399. #define UART_RSR_FE 0x00000001 // UART Framing Error
  3400. //*****************************************************************************
  3401. //
  3402. // The following are defines for the bit fields in the UART_O_ECR register.
  3403. //
  3404. //*****************************************************************************
  3405. #define UART_ECR_DATA_M 0x000000FF // Error Clear
  3406. #define UART_ECR_DATA_S 0
  3407. //*****************************************************************************
  3408. //
  3409. // The following are defines for the bit fields in the UART_O_FR register.
  3410. //
  3411. //*****************************************************************************
  3412. #define UART_FR_RI 0x00000100 // Ring Indicator
  3413. #define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
  3414. #define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
  3415. #define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
  3416. #define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
  3417. #define UART_FR_BUSY 0x00000008 // UART Busy
  3418. #define UART_FR_DCD 0x00000004 // Data Carrier Detect
  3419. #define UART_FR_DSR 0x00000002 // Data Set Ready
  3420. #define UART_FR_CTS 0x00000001 // Clear To Send
  3421. //*****************************************************************************
  3422. //
  3423. // The following are defines for the bit fields in the UART_O_ILPR register.
  3424. //
  3425. //*****************************************************************************
  3426. #define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
  3427. #define UART_ILPR_ILPDVSR_S 0
  3428. //*****************************************************************************
  3429. //
  3430. // The following are defines for the bit fields in the UART_O_IBRD register.
  3431. //
  3432. //*****************************************************************************
  3433. #define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
  3434. #define UART_IBRD_DIVINT_S 0
  3435. //*****************************************************************************
  3436. //
  3437. // The following are defines for the bit fields in the UART_O_FBRD register.
  3438. //
  3439. //*****************************************************************************
  3440. #define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
  3441. #define UART_FBRD_DIVFRAC_S 0
  3442. //*****************************************************************************
  3443. //
  3444. // The following are defines for the bit fields in the UART_O_LCRH register.
  3445. //
  3446. //*****************************************************************************
  3447. #define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
  3448. #define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
  3449. #define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
  3450. #define UART_LCRH_WLEN_6 0x00000020 // 6 bits
  3451. #define UART_LCRH_WLEN_7 0x00000040 // 7 bits
  3452. #define UART_LCRH_WLEN_8 0x00000060 // 8 bits
  3453. #define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
  3454. #define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
  3455. #define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
  3456. #define UART_LCRH_PEN 0x00000002 // UART Parity Enable
  3457. #define UART_LCRH_BRK 0x00000001 // UART Send Break
  3458. //*****************************************************************************
  3459. //
  3460. // The following are defines for the bit fields in the UART_O_CTL register.
  3461. //
  3462. //*****************************************************************************
  3463. #define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
  3464. #define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
  3465. #define UART_CTL_RTS 0x00000800 // Request to Send
  3466. #define UART_CTL_DTR 0x00000400 // Data Terminal Ready
  3467. #define UART_CTL_RXE 0x00000200 // UART Receive Enable
  3468. #define UART_CTL_TXE 0x00000100 // UART Transmit Enable
  3469. #define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
  3470. #define UART_CTL_HSE 0x00000020 // High-Speed Enable
  3471. #define UART_CTL_EOT 0x00000010 // End of Transmission
  3472. #define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
  3473. #define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
  3474. #define UART_CTL_SIREN 0x00000002 // UART SIR Enable
  3475. #define UART_CTL_UARTEN 0x00000001 // UART Enable
  3476. //*****************************************************************************
  3477. //
  3478. // The following are defines for the bit fields in the UART_O_IFLS register.
  3479. //
  3480. //*****************************************************************************
  3481. #define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
  3482. // Level Select
  3483. #define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
  3484. #define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
  3485. #define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
  3486. #define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
  3487. #define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
  3488. #define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
  3489. // Level Select
  3490. #define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
  3491. #define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
  3492. #define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
  3493. #define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
  3494. #define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
  3495. //*****************************************************************************
  3496. //
  3497. // The following are defines for the bit fields in the UART_O_IM register.
  3498. //
  3499. //*****************************************************************************
  3500. #define UART_IM_DMATXIM 0x00020000 // Transmit DMA Interrupt Mask
  3501. #define UART_IM_DMARXIM 0x00010000 // Receive DMA Interrupt Mask
  3502. #define UART_IM_9BITIM 0x00001000 // 9-Bit Mode Interrupt Mask
  3503. #define UART_IM_EOTIM 0x00000800 // End of Transmission Interrupt
  3504. // Mask
  3505. #define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
  3506. // Mask
  3507. #define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
  3508. #define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
  3509. #define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
  3510. // Mask
  3511. #define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
  3512. // Mask
  3513. #define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
  3514. #define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
  3515. #define UART_IM_DSRMIM 0x00000008 // UART Data Set Ready Modem
  3516. // Interrupt Mask
  3517. #define UART_IM_DCDMIM 0x00000004 // UART Data Carrier Detect Modem
  3518. // Interrupt Mask
  3519. #define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
  3520. // Interrupt Mask
  3521. #define UART_IM_RIMIM 0x00000001 // UART Ring Indicator Modem
  3522. // Interrupt Mask
  3523. //*****************************************************************************
  3524. //
  3525. // The following are defines for the bit fields in the UART_O_RIS register.
  3526. //
  3527. //*****************************************************************************
  3528. #define UART_RIS_DMATXRIS 0x00020000 // Transmit DMA Raw Interrupt
  3529. // Status
  3530. #define UART_RIS_DMARXRIS 0x00010000 // Receive DMA Raw Interrupt Status
  3531. #define UART_RIS_9BITRIS 0x00001000 // 9-Bit Mode Raw Interrupt Status
  3532. #define UART_RIS_EOTRIS 0x00000800 // End of Transmission Raw
  3533. // Interrupt Status
  3534. #define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
  3535. // Status
  3536. #define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
  3537. // Status
  3538. #define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
  3539. // Status
  3540. #define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
  3541. // Status
  3542. #define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
  3543. // Interrupt Status
  3544. #define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
  3545. // Status
  3546. #define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
  3547. // Status
  3548. #define UART_RIS_DSRRIS 0x00000008 // UART Data Set Ready Modem Raw
  3549. // Interrupt Status
  3550. #define UART_RIS_DCDRIS 0x00000004 // UART Data Carrier Detect Modem
  3551. // Raw Interrupt Status
  3552. #define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
  3553. // Interrupt Status
  3554. #define UART_RIS_RIRIS 0x00000001 // UART Ring Indicator Modem Raw
  3555. // Interrupt Status
  3556. //*****************************************************************************
  3557. //
  3558. // The following are defines for the bit fields in the UART_O_MIS register.
  3559. //
  3560. //*****************************************************************************
  3561. #define UART_MIS_DMATXMIS 0x00020000 // Transmit DMA Masked Interrupt
  3562. // Status
  3563. #define UART_MIS_DMARXMIS 0x00010000 // Receive DMA Masked Interrupt
  3564. // Status
  3565. #define UART_MIS_9BITMIS 0x00001000 // 9-Bit Mode Masked Interrupt
  3566. // Status
  3567. #define UART_MIS_EOTMIS 0x00000800 // End of Transmission Masked
  3568. // Interrupt Status
  3569. #define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
  3570. // Interrupt Status
  3571. #define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
  3572. // Interrupt Status
  3573. #define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
  3574. // Interrupt Status
  3575. #define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
  3576. // Interrupt Status
  3577. #define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
  3578. // Interrupt Status
  3579. #define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
  3580. // Status
  3581. #define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
  3582. // Status
  3583. #define UART_MIS_DSRMIS 0x00000008 // UART Data Set Ready Modem Masked
  3584. // Interrupt Status
  3585. #define UART_MIS_DCDMIS 0x00000004 // UART Data Carrier Detect Modem
  3586. // Masked Interrupt Status
  3587. #define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
  3588. // Interrupt Status
  3589. #define UART_MIS_RIMIS 0x00000001 // UART Ring Indicator Modem Masked
  3590. // Interrupt Status
  3591. //*****************************************************************************
  3592. //
  3593. // The following are defines for the bit fields in the UART_O_ICR register.
  3594. //
  3595. //*****************************************************************************
  3596. #define UART_ICR_DMATXIC 0x00020000 // Transmit DMA Interrupt Clear
  3597. #define UART_ICR_DMARXIC 0x00010000 // Receive DMA Interrupt Clear
  3598. #define UART_ICR_9BITIC 0x00001000 // 9-Bit Mode Interrupt Clear
  3599. #define UART_ICR_EOTIC 0x00000800 // End of Transmission Interrupt
  3600. // Clear
  3601. #define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
  3602. #define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
  3603. #define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
  3604. #define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
  3605. #define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
  3606. #define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
  3607. #define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
  3608. #define UART_ICR_DSRMIC 0x00000008 // UART Data Set Ready Modem
  3609. // Interrupt Clear
  3610. #define UART_ICR_DCDMIC 0x00000004 // UART Data Carrier Detect Modem
  3611. // Interrupt Clear
  3612. #define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
  3613. // Interrupt Clear
  3614. #define UART_ICR_RIMIC 0x00000001 // UART Ring Indicator Modem
  3615. // Interrupt Clear
  3616. //*****************************************************************************
  3617. //
  3618. // The following are defines for the bit fields in the UART_O_DMACTL register.
  3619. //
  3620. //*****************************************************************************
  3621. #define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
  3622. #define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
  3623. #define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
  3624. //*****************************************************************************
  3625. //
  3626. // The following are defines for the bit fields in the UART_O_9BITADDR
  3627. // register.
  3628. //
  3629. //*****************************************************************************
  3630. #define UART_9BITADDR_9BITEN 0x00008000 // Enable 9-Bit Mode
  3631. #define UART_9BITADDR_ADDR_M 0x000000FF // Self Address for 9-Bit Mode
  3632. #define UART_9BITADDR_ADDR_S 0
  3633. //*****************************************************************************
  3634. //
  3635. // The following are defines for the bit fields in the UART_O_9BITAMASK
  3636. // register.
  3637. //
  3638. //*****************************************************************************
  3639. #define UART_9BITAMASK_MASK_M 0x000000FF // Self Address Mask for 9-Bit Mode
  3640. #define UART_9BITAMASK_MASK_S 0
  3641. //*****************************************************************************
  3642. //
  3643. // The following are defines for the bit fields in the UART_O_PP register.
  3644. //
  3645. //*****************************************************************************
  3646. #define UART_PP_MSE 0x00000008 // Modem Support Extended
  3647. #define UART_PP_MS 0x00000004 // Modem Support
  3648. #define UART_PP_NB 0x00000002 // 9-Bit Support
  3649. #define UART_PP_SC 0x00000001 // Smart Card Support
  3650. //*****************************************************************************
  3651. //
  3652. // The following are defines for the bit fields in the UART_O_CC register.
  3653. //
  3654. //*****************************************************************************
  3655. #define UART_CC_CS_M 0x0000000F // UART Baud Clock Source
  3656. #define UART_CC_CS_SYSCLK 0x00000000 // System clock (based on clock
  3657. // source and divisor factor)
  3658. #define UART_CC_CS_PIOSC 0x00000005 // PIOSC
  3659. //*****************************************************************************
  3660. //
  3661. // The following are defines for the bit fields in the I2C_O_MSA register.
  3662. //
  3663. //*****************************************************************************
  3664. #define I2C_MSA_SA_M 0x000000FE // I2C Slave Address
  3665. #define I2C_MSA_RS 0x00000001 // Receive not send
  3666. #define I2C_MSA_SA_S 1
  3667. //*****************************************************************************
  3668. //
  3669. // The following are defines for the bit fields in the I2C_O_MCS register.
  3670. //
  3671. //*****************************************************************************
  3672. #define I2C_MCS_ACTDMARX 0x80000000 // DMA RX Active Status
  3673. #define I2C_MCS_ACTDMATX 0x40000000 // DMA TX Active Status
  3674. #define I2C_MCS_CLKTO 0x00000080 // Clock Timeout Error
  3675. #define I2C_MCS_BURST 0x00000040 // Burst Enable
  3676. #define I2C_MCS_BUSBSY 0x00000040 // Bus Busy
  3677. #define I2C_MCS_IDLE 0x00000020 // I2C Idle
  3678. #define I2C_MCS_QCMD 0x00000020 // Quick Command
  3679. #define I2C_MCS_ARBLST 0x00000010 // Arbitration Lost
  3680. #define I2C_MCS_HS 0x00000010 // High-Speed Enable
  3681. #define I2C_MCS_ACK 0x00000008 // Data Acknowledge Enable
  3682. #define I2C_MCS_DATACK 0x00000008 // Acknowledge Data
  3683. #define I2C_MCS_ADRACK 0x00000004 // Acknowledge Address
  3684. #define I2C_MCS_STOP 0x00000004 // Generate STOP
  3685. #define I2C_MCS_ERROR 0x00000002 // Error
  3686. #define I2C_MCS_START 0x00000002 // Generate START
  3687. #define I2C_MCS_RUN 0x00000001 // I2C Master Enable
  3688. #define I2C_MCS_BUSY 0x00000001 // I2C Busy
  3689. //*****************************************************************************
  3690. //
  3691. // The following are defines for the bit fields in the I2C_O_MDR register.
  3692. //
  3693. //*****************************************************************************
  3694. #define I2C_MDR_DATA_M 0x000000FF // This byte contains the data
  3695. // transferred during a transaction
  3696. #define I2C_MDR_DATA_S 0
  3697. //*****************************************************************************
  3698. //
  3699. // The following are defines for the bit fields in the I2C_O_MTPR register.
  3700. //
  3701. //*****************************************************************************
  3702. #define I2C_MTPR_PULSEL_M 0x00070000 // Glitch Suppression Pulse Width
  3703. #define I2C_MTPR_PULSEL_BYPASS 0x00000000 // Bypass
  3704. #define I2C_MTPR_PULSEL_1 0x00010000 // 1 clock
  3705. #define I2C_MTPR_PULSEL_2 0x00020000 // 2 clocks
  3706. #define I2C_MTPR_PULSEL_3 0x00030000 // 3 clocks
  3707. #define I2C_MTPR_PULSEL_4 0x00040000 // 4 clocks
  3708. #define I2C_MTPR_PULSEL_8 0x00050000 // 8 clocks
  3709. #define I2C_MTPR_PULSEL_16 0x00060000 // 16 clocks
  3710. #define I2C_MTPR_PULSEL_31 0x00070000 // 31 clocks
  3711. #define I2C_MTPR_HS 0x00000080 // High-Speed Enable
  3712. #define I2C_MTPR_TPR_M 0x0000007F // Timer Period
  3713. #define I2C_MTPR_TPR_S 0
  3714. //*****************************************************************************
  3715. //
  3716. // The following are defines for the bit fields in the I2C_O_MIMR register.
  3717. //
  3718. //*****************************************************************************
  3719. #define I2C_MIMR_RXFFIM 0x00000800 // Receive FIFO Full Interrupt Mask
  3720. #define I2C_MIMR_TXFEIM 0x00000400 // Transmit FIFO Empty Interrupt
  3721. // Mask
  3722. #define I2C_MIMR_RXIM 0x00000200 // Receive FIFO Request Interrupt
  3723. // Mask
  3724. #define I2C_MIMR_TXIM 0x00000100 // Transmit FIFO Request Interrupt
  3725. // Mask
  3726. #define I2C_MIMR_ARBLOSTIM 0x00000080 // Arbitration Lost Interrupt Mask
  3727. #define I2C_MIMR_STOPIM 0x00000040 // STOP Detection Interrupt Mask
  3728. #define I2C_MIMR_STARTIM 0x00000020 // START Detection Interrupt Mask
  3729. #define I2C_MIMR_NACKIM 0x00000010 // Address/Data NACK Interrupt Mask
  3730. #define I2C_MIMR_DMATXIM 0x00000008 // Transmit DMA Interrupt Mask
  3731. #define I2C_MIMR_DMARXIM 0x00000004 // Receive DMA Interrupt Mask
  3732. #define I2C_MIMR_CLKIM 0x00000002 // Clock Timeout Interrupt Mask
  3733. #define I2C_MIMR_IM 0x00000001 // Master Interrupt Mask
  3734. //*****************************************************************************
  3735. //
  3736. // The following are defines for the bit fields in the I2C_O_MRIS register.
  3737. //
  3738. //*****************************************************************************
  3739. #define I2C_MRIS_RXFFRIS 0x00000800 // Receive FIFO Full Raw Interrupt
  3740. // Status
  3741. #define I2C_MRIS_TXFERIS 0x00000400 // Transmit FIFO Empty Raw
  3742. // Interrupt Status
  3743. #define I2C_MRIS_RXRIS 0x00000200 // Receive FIFO Request Raw
  3744. // Interrupt Status
  3745. #define I2C_MRIS_TXRIS 0x00000100 // Transmit Request Raw Interrupt
  3746. // Status
  3747. #define I2C_MRIS_ARBLOSTRIS 0x00000080 // Arbitration Lost Raw Interrupt
  3748. // Status
  3749. #define I2C_MRIS_STOPRIS 0x00000040 // STOP Detection Raw Interrupt
  3750. // Status
  3751. #define I2C_MRIS_STARTRIS 0x00000020 // START Detection Raw Interrupt
  3752. // Status
  3753. #define I2C_MRIS_NACKRIS 0x00000010 // Address/Data NACK Raw Interrupt
  3754. // Status
  3755. #define I2C_MRIS_DMATXRIS 0x00000008 // Transmit DMA Raw Interrupt
  3756. // Status
  3757. #define I2C_MRIS_DMARXRIS 0x00000004 // Receive DMA Raw Interrupt Status
  3758. #define I2C_MRIS_CLKRIS 0x00000002 // Clock Timeout Raw Interrupt
  3759. // Status
  3760. #define I2C_MRIS_RIS 0x00000001 // Master Raw Interrupt Status
  3761. //*****************************************************************************
  3762. //
  3763. // The following are defines for the bit fields in the I2C_O_MMIS register.
  3764. //
  3765. //*****************************************************************************
  3766. #define I2C_MMIS_RXFFMIS 0x00000800 // Receive FIFO Full Interrupt Mask
  3767. #define I2C_MMIS_TXFEMIS 0x00000400 // Transmit FIFO Empty Interrupt
  3768. // Mask
  3769. #define I2C_MMIS_RXMIS 0x00000200 // Receive FIFO Request Interrupt
  3770. // Mask
  3771. #define I2C_MMIS_TXMIS 0x00000100 // Transmit Request Interrupt Mask
  3772. #define I2C_MMIS_ARBLOSTMIS 0x00000080 // Arbitration Lost Interrupt Mask
  3773. #define I2C_MMIS_STOPMIS 0x00000040 // STOP Detection Interrupt Mask
  3774. #define I2C_MMIS_STARTMIS 0x00000020 // START Detection Interrupt Mask
  3775. #define I2C_MMIS_NACKMIS 0x00000010 // Address/Data NACK Interrupt Mask
  3776. #define I2C_MMIS_DMATXMIS 0x00000008 // Transmit DMA Interrupt Status
  3777. #define I2C_MMIS_DMARXMIS 0x00000004 // Receive DMA Interrupt Status
  3778. #define I2C_MMIS_CLKMIS 0x00000002 // Clock Timeout Masked Interrupt
  3779. // Status
  3780. #define I2C_MMIS_MIS 0x00000001 // Masked Interrupt Status
  3781. //*****************************************************************************
  3782. //
  3783. // The following are defines for the bit fields in the I2C_O_MICR register.
  3784. //
  3785. //*****************************************************************************
  3786. #define I2C_MICR_RXFFIC 0x00000800 // Receive FIFO Full Interrupt
  3787. // Clear
  3788. #define I2C_MICR_TXFEIC 0x00000400 // Transmit FIFO Empty Interrupt
  3789. // Clear
  3790. #define I2C_MICR_RXIC 0x00000200 // Receive FIFO Request Interrupt
  3791. // Clear
  3792. #define I2C_MICR_TXIC 0x00000100 // Transmit FIFO Request Interrupt
  3793. // Clear
  3794. #define I2C_MICR_ARBLOSTIC 0x00000080 // Arbitration Lost Interrupt Clear
  3795. #define I2C_MICR_STOPIC 0x00000040 // STOP Detection Interrupt Clear
  3796. #define I2C_MICR_STARTIC 0x00000020 // START Detection Interrupt Clear
  3797. #define I2C_MICR_NACKIC 0x00000010 // Address/Data NACK Interrupt
  3798. // Clear
  3799. #define I2C_MICR_DMATXIC 0x00000008 // Transmit DMA Interrupt Clear
  3800. #define I2C_MICR_DMARXIC 0x00000004 // Receive DMA Interrupt Clear
  3801. #define I2C_MICR_CLKIC 0x00000002 // Clock Timeout Interrupt Clear
  3802. #define I2C_MICR_IC 0x00000001 // Master Interrupt Clear
  3803. //*****************************************************************************
  3804. //
  3805. // The following are defines for the bit fields in the I2C_O_MCR register.
  3806. //
  3807. //*****************************************************************************
  3808. #define I2C_MCR_SFE 0x00000020 // I2C Slave Function Enable
  3809. #define I2C_MCR_MFE 0x00000010 // I2C Master Function Enable
  3810. #define I2C_MCR_LPBK 0x00000001 // I2C Loopback
  3811. //*****************************************************************************
  3812. //
  3813. // The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
  3814. //
  3815. //*****************************************************************************
  3816. #define I2C_MCLKOCNT_CNTL_M 0x000000FF // I2C Master Count
  3817. #define I2C_MCLKOCNT_CNTL_S 0
  3818. //*****************************************************************************
  3819. //
  3820. // The following are defines for the bit fields in the I2C_O_MBMON register.
  3821. //
  3822. //*****************************************************************************
  3823. #define I2C_MBMON_SDA 0x00000002 // I2C SDA Status
  3824. #define I2C_MBMON_SCL 0x00000001 // I2C SCL Status
  3825. //*****************************************************************************
  3826. //
  3827. // The following are defines for the bit fields in the I2C_O_MBLEN register.
  3828. //
  3829. //*****************************************************************************
  3830. #define I2C_MBLEN_CNTL_M 0x000000FF // I2C Burst Length
  3831. #define I2C_MBLEN_CNTL_S 0
  3832. //*****************************************************************************
  3833. //
  3834. // The following are defines for the bit fields in the I2C_O_MBCNT register.
  3835. //
  3836. //*****************************************************************************
  3837. #define I2C_MBCNT_CNTL_M 0x000000FF // I2C Master Burst Count
  3838. #define I2C_MBCNT_CNTL_S 0
  3839. //*****************************************************************************
  3840. //
  3841. // The following are defines for the bit fields in the I2C_O_SOAR register.
  3842. //
  3843. //*****************************************************************************
  3844. #define I2C_SOAR_OAR_M 0x0000007F // I2C Slave Own Address
  3845. #define I2C_SOAR_OAR_S 0
  3846. //*****************************************************************************
  3847. //
  3848. // The following are defines for the bit fields in the I2C_O_SCSR register.
  3849. //
  3850. //*****************************************************************************
  3851. #define I2C_SCSR_ACTDMARX 0x80000000 // DMA RX Active Status
  3852. #define I2C_SCSR_ACTDMATX 0x40000000 // DMA TX Active Status
  3853. #define I2C_SCSR_QCMDRW 0x00000020 // Quick Command Read / Write
  3854. #define I2C_SCSR_QCMDST 0x00000010 // Quick Command Status
  3855. #define I2C_SCSR_OAR2SEL 0x00000008 // OAR2 Address Matched
  3856. #define I2C_SCSR_FBR 0x00000004 // First Byte Received
  3857. #define I2C_SCSR_RXFIFO 0x00000004 // RX FIFO Enable
  3858. #define I2C_SCSR_TXFIFO 0x00000002 // TX FIFO Enable
  3859. #define I2C_SCSR_TREQ 0x00000002 // Transmit Request
  3860. #define I2C_SCSR_DA 0x00000001 // Device Active
  3861. #define I2C_SCSR_RREQ 0x00000001 // Receive Request
  3862. //*****************************************************************************
  3863. //
  3864. // The following are defines for the bit fields in the I2C_O_SDR register.
  3865. //
  3866. //*****************************************************************************
  3867. #define I2C_SDR_DATA_M 0x000000FF // Data for Transfer
  3868. #define I2C_SDR_DATA_S 0
  3869. //*****************************************************************************
  3870. //
  3871. // The following are defines for the bit fields in the I2C_O_SIMR register.
  3872. //
  3873. //*****************************************************************************
  3874. #define I2C_SIMR_RXFFIM 0x00000100 // Receive FIFO Full Interrupt Mask
  3875. #define I2C_SIMR_TXFEIM 0x00000080 // Transmit FIFO Empty Interrupt
  3876. // Mask
  3877. #define I2C_SIMR_RXIM 0x00000040 // Receive FIFO Request Interrupt
  3878. // Mask
  3879. #define I2C_SIMR_TXIM 0x00000020 // Transmit FIFO Request Interrupt
  3880. // Mask
  3881. #define I2C_SIMR_DMATXIM 0x00000010 // Transmit DMA Interrupt Mask
  3882. #define I2C_SIMR_DMARXIM 0x00000008 // Receive DMA Interrupt Mask
  3883. #define I2C_SIMR_STOPIM 0x00000004 // Stop Condition Interrupt Mask
  3884. #define I2C_SIMR_STARTIM 0x00000002 // Start Condition Interrupt Mask
  3885. #define I2C_SIMR_DATAIM 0x00000001 // Data Interrupt Mask
  3886. //*****************************************************************************
  3887. //
  3888. // The following are defines for the bit fields in the I2C_O_SRIS register.
  3889. //
  3890. //*****************************************************************************
  3891. #define I2C_SRIS_RXFFRIS 0x00000100 // Receive FIFO Full Raw Interrupt
  3892. // Status
  3893. #define I2C_SRIS_TXFERIS 0x00000080 // Transmit FIFO Empty Raw
  3894. // Interrupt Status
  3895. #define I2C_SRIS_RXRIS 0x00000040 // Receive FIFO Request Raw
  3896. // Interrupt Status
  3897. #define I2C_SRIS_TXRIS 0x00000020 // Transmit Request Raw Interrupt
  3898. // Status
  3899. #define I2C_SRIS_DMATXRIS 0x00000010 // Transmit DMA Raw Interrupt
  3900. // Status
  3901. #define I2C_SRIS_DMARXRIS 0x00000008 // Receive DMA Raw Interrupt Status
  3902. #define I2C_SRIS_STOPRIS 0x00000004 // Stop Condition Raw Interrupt
  3903. // Status
  3904. #define I2C_SRIS_STARTRIS 0x00000002 // Start Condition Raw Interrupt
  3905. // Status
  3906. #define I2C_SRIS_DATARIS 0x00000001 // Data Raw Interrupt Status
  3907. //*****************************************************************************
  3908. //
  3909. // The following are defines for the bit fields in the I2C_O_SMIS register.
  3910. //
  3911. //*****************************************************************************
  3912. #define I2C_SMIS_RXFFMIS 0x00000100 // Receive FIFO Full Interrupt Mask
  3913. #define I2C_SMIS_TXFEMIS 0x00000080 // Transmit FIFO Empty Interrupt
  3914. // Mask
  3915. #define I2C_SMIS_RXMIS 0x00000040 // Receive FIFO Request Interrupt
  3916. // Mask
  3917. #define I2C_SMIS_TXMIS 0x00000020 // Transmit FIFO Request Interrupt
  3918. // Mask
  3919. #define I2C_SMIS_DMATXMIS 0x00000010 // Transmit DMA Masked Interrupt
  3920. // Status
  3921. #define I2C_SMIS_DMARXMIS 0x00000008 // Receive DMA Masked Interrupt
  3922. // Status
  3923. #define I2C_SMIS_STOPMIS 0x00000004 // Stop Condition Masked Interrupt
  3924. // Status
  3925. #define I2C_SMIS_STARTMIS 0x00000002 // Start Condition Masked Interrupt
  3926. // Status
  3927. #define I2C_SMIS_DATAMIS 0x00000001 // Data Masked Interrupt Status
  3928. //*****************************************************************************
  3929. //
  3930. // The following are defines for the bit fields in the I2C_O_SICR register.
  3931. //
  3932. //*****************************************************************************
  3933. #define I2C_SICR_RXFFIC 0x00000100 // Receive FIFO Full Interrupt Mask
  3934. #define I2C_SICR_TXFEIC 0x00000080 // Transmit FIFO Empty Interrupt
  3935. // Mask
  3936. #define I2C_SICR_RXIC 0x00000040 // Receive Request Interrupt Mask
  3937. #define I2C_SICR_TXIC 0x00000020 // Transmit Request Interrupt Mask
  3938. #define I2C_SICR_DMATXIC 0x00000010 // Transmit DMA Interrupt Clear
  3939. #define I2C_SICR_DMARXIC 0x00000008 // Receive DMA Interrupt Clear
  3940. #define I2C_SICR_STOPIC 0x00000004 // Stop Condition Interrupt Clear
  3941. #define I2C_SICR_STARTIC 0x00000002 // Start Condition Interrupt Clear
  3942. #define I2C_SICR_DATAIC 0x00000001 // Data Interrupt Clear
  3943. //*****************************************************************************
  3944. //
  3945. // The following are defines for the bit fields in the I2C_O_SOAR2 register.
  3946. //
  3947. //*****************************************************************************
  3948. #define I2C_SOAR2_OAR2EN 0x00000080 // I2C Slave Own Address 2 Enable
  3949. #define I2C_SOAR2_OAR2_M 0x0000007F // I2C Slave Own Address 2
  3950. #define I2C_SOAR2_OAR2_S 0
  3951. //*****************************************************************************
  3952. //
  3953. // The following are defines for the bit fields in the I2C_O_SACKCTL register.
  3954. //
  3955. //*****************************************************************************
  3956. #define I2C_SACKCTL_ACKOVAL 0x00000002 // I2C Slave ACK Override Value
  3957. #define I2C_SACKCTL_ACKOEN 0x00000001 // I2C Slave ACK Override Enable
  3958. //*****************************************************************************
  3959. //
  3960. // The following are defines for the bit fields in the I2C_O_FIFODATA register.
  3961. //
  3962. //*****************************************************************************
  3963. #define I2C_FIFODATA_DATA_M 0x000000FF // I2C TX FIFO Write Data Byte
  3964. #define I2C_FIFODATA_DATA_S 0
  3965. //*****************************************************************************
  3966. //
  3967. // The following are defines for the bit fields in the I2C_O_FIFOCTL register.
  3968. //
  3969. //*****************************************************************************
  3970. #define I2C_FIFOCTL_RXASGNMT 0x80000000 // RX Control Assignment
  3971. #define I2C_FIFOCTL_RXFLUSH 0x40000000 // RX FIFO Flush
  3972. #define I2C_FIFOCTL_DMARXENA 0x20000000 // DMA RX Channel Enable
  3973. #define I2C_FIFOCTL_RXTRIG_M 0x00070000 // RX FIFO Trigger
  3974. #define I2C_FIFOCTL_TXASGNMT 0x00008000 // TX Control Assignment
  3975. #define I2C_FIFOCTL_TXFLUSH 0x00004000 // TX FIFO Flush
  3976. #define I2C_FIFOCTL_DMATXENA 0x00002000 // DMA TX Channel Enable
  3977. #define I2C_FIFOCTL_TXTRIG_M 0x00000007 // TX FIFO Trigger
  3978. #define I2C_FIFOCTL_RXTRIG_S 16
  3979. #define I2C_FIFOCTL_TXTRIG_S 0
  3980. //*****************************************************************************
  3981. //
  3982. // The following are defines for the bit fields in the I2C_O_FIFOSTATUS
  3983. // register.
  3984. //
  3985. //*****************************************************************************
  3986. #define I2C_FIFOSTATUS_RXABVTRIG \
  3987. 0x00040000 // RX FIFO Above Trigger Level
  3988. #define I2C_FIFOSTATUS_RXFF 0x00020000 // RX FIFO Full
  3989. #define I2C_FIFOSTATUS_RXFE 0x00010000 // RX FIFO Empty
  3990. #define I2C_FIFOSTATUS_TXBLWTRIG \
  3991. 0x00000004 // TX FIFO Below Trigger Level
  3992. #define I2C_FIFOSTATUS_TXFF 0x00000002 // TX FIFO Full
  3993. #define I2C_FIFOSTATUS_TXFE 0x00000001 // TX FIFO Empty
  3994. //*****************************************************************************
  3995. //
  3996. // The following are defines for the bit fields in the I2C_O_PP register.
  3997. //
  3998. //*****************************************************************************
  3999. #define I2C_PP_HS 0x00000001 // High-Speed Capable
  4000. //*****************************************************************************
  4001. //
  4002. // The following are defines for the bit fields in the I2C_O_PC register.
  4003. //
  4004. //*****************************************************************************
  4005. #define I2C_PC_HS 0x00000001 // High-Speed Capable
  4006. //*****************************************************************************
  4007. //
  4008. // The following are defines for the bit fields in the PWM_O_CTL register.
  4009. //
  4010. //*****************************************************************************
  4011. #define PWM_CTL_GLOBALSYNC3 0x00000008 // Update PWM Generator 3
  4012. #define PWM_CTL_GLOBALSYNC2 0x00000004 // Update PWM Generator 2
  4013. #define PWM_CTL_GLOBALSYNC1 0x00000002 // Update PWM Generator 1
  4014. #define PWM_CTL_GLOBALSYNC0 0x00000001 // Update PWM Generator 0
  4015. //*****************************************************************************
  4016. //
  4017. // The following are defines for the bit fields in the PWM_O_SYNC register.
  4018. //
  4019. //*****************************************************************************
  4020. #define PWM_SYNC_SYNC3 0x00000008 // Reset Generator 3 Counter
  4021. #define PWM_SYNC_SYNC2 0x00000004 // Reset Generator 2 Counter
  4022. #define PWM_SYNC_SYNC1 0x00000002 // Reset Generator 1 Counter
  4023. #define PWM_SYNC_SYNC0 0x00000001 // Reset Generator 0 Counter
  4024. //*****************************************************************************
  4025. //
  4026. // The following are defines for the bit fields in the PWM_O_ENABLE register.
  4027. //
  4028. //*****************************************************************************
  4029. #define PWM_ENABLE_PWM7EN 0x00000080 // MnPWM7 Output Enable
  4030. #define PWM_ENABLE_PWM6EN 0x00000040 // MnPWM6 Output Enable
  4031. #define PWM_ENABLE_PWM5EN 0x00000020 // MnPWM5 Output Enable
  4032. #define PWM_ENABLE_PWM4EN 0x00000010 // MnPWM4 Output Enable
  4033. #define PWM_ENABLE_PWM3EN 0x00000008 // MnPWM3 Output Enable
  4034. #define PWM_ENABLE_PWM2EN 0x00000004 // MnPWM2 Output Enable
  4035. #define PWM_ENABLE_PWM1EN 0x00000002 // MnPWM1 Output Enable
  4036. #define PWM_ENABLE_PWM0EN 0x00000001 // MnPWM0 Output Enable
  4037. //*****************************************************************************
  4038. //
  4039. // The following are defines for the bit fields in the PWM_O_INVERT register.
  4040. //
  4041. //*****************************************************************************
  4042. #define PWM_INVERT_PWM7INV 0x00000080 // Invert MnPWM7 Signal
  4043. #define PWM_INVERT_PWM6INV 0x00000040 // Invert MnPWM6 Signal
  4044. #define PWM_INVERT_PWM5INV 0x00000020 // Invert MnPWM5 Signal
  4045. #define PWM_INVERT_PWM4INV 0x00000010 // Invert MnPWM4 Signal
  4046. #define PWM_INVERT_PWM3INV 0x00000008 // Invert MnPWM3 Signal
  4047. #define PWM_INVERT_PWM2INV 0x00000004 // Invert MnPWM2 Signal
  4048. #define PWM_INVERT_PWM1INV 0x00000002 // Invert MnPWM1 Signal
  4049. #define PWM_INVERT_PWM0INV 0x00000001 // Invert MnPWM0 Signal
  4050. //*****************************************************************************
  4051. //
  4052. // The following are defines for the bit fields in the PWM_O_FAULT register.
  4053. //
  4054. //*****************************************************************************
  4055. #define PWM_FAULT_FAULT7 0x00000080 // MnPWM7 Fault
  4056. #define PWM_FAULT_FAULT6 0x00000040 // MnPWM6 Fault
  4057. #define PWM_FAULT_FAULT5 0x00000020 // MnPWM5 Fault
  4058. #define PWM_FAULT_FAULT4 0x00000010 // MnPWM4 Fault
  4059. #define PWM_FAULT_FAULT3 0x00000008 // MnPWM3 Fault
  4060. #define PWM_FAULT_FAULT2 0x00000004 // MnPWM2 Fault
  4061. #define PWM_FAULT_FAULT1 0x00000002 // MnPWM1 Fault
  4062. #define PWM_FAULT_FAULT0 0x00000001 // MnPWM0 Fault
  4063. //*****************************************************************************
  4064. //
  4065. // The following are defines for the bit fields in the PWM_O_INTEN register.
  4066. //
  4067. //*****************************************************************************
  4068. #define PWM_INTEN_INTFAULT3 0x00080000 // Interrupt Fault 3
  4069. #define PWM_INTEN_INTFAULT2 0x00040000 // Interrupt Fault 2
  4070. #define PWM_INTEN_INTFAULT1 0x00020000 // Interrupt Fault 1
  4071. #define PWM_INTEN_INTFAULT0 0x00010000 // Interrupt Fault 0
  4072. #define PWM_INTEN_INTPWM3 0x00000008 // PWM3 Interrupt Enable
  4073. #define PWM_INTEN_INTPWM2 0x00000004 // PWM2 Interrupt Enable
  4074. #define PWM_INTEN_INTPWM1 0x00000002 // PWM1 Interrupt Enable
  4075. #define PWM_INTEN_INTPWM0 0x00000001 // PWM0 Interrupt Enable
  4076. //*****************************************************************************
  4077. //
  4078. // The following are defines for the bit fields in the PWM_O_RIS register.
  4079. //
  4080. //*****************************************************************************
  4081. #define PWM_RIS_INTFAULT3 0x00080000 // Interrupt Fault PWM 3
  4082. #define PWM_RIS_INTFAULT2 0x00040000 // Interrupt Fault PWM 2
  4083. #define PWM_RIS_INTFAULT1 0x00020000 // Interrupt Fault PWM 1
  4084. #define PWM_RIS_INTFAULT0 0x00010000 // Interrupt Fault PWM 0
  4085. #define PWM_RIS_INTPWM3 0x00000008 // PWM3 Interrupt Asserted
  4086. #define PWM_RIS_INTPWM2 0x00000004 // PWM2 Interrupt Asserted
  4087. #define PWM_RIS_INTPWM1 0x00000002 // PWM1 Interrupt Asserted
  4088. #define PWM_RIS_INTPWM0 0x00000001 // PWM0 Interrupt Asserted
  4089. //*****************************************************************************
  4090. //
  4091. // The following are defines for the bit fields in the PWM_O_ISC register.
  4092. //
  4093. //*****************************************************************************
  4094. #define PWM_ISC_INTFAULT3 0x00080000 // FAULT3 Interrupt Asserted
  4095. #define PWM_ISC_INTFAULT2 0x00040000 // FAULT2 Interrupt Asserted
  4096. #define PWM_ISC_INTFAULT1 0x00020000 // FAULT1 Interrupt Asserted
  4097. #define PWM_ISC_INTFAULT0 0x00010000 // FAULT0 Interrupt Asserted
  4098. #define PWM_ISC_INTPWM3 0x00000008 // PWM3 Interrupt Status
  4099. #define PWM_ISC_INTPWM2 0x00000004 // PWM2 Interrupt Status
  4100. #define PWM_ISC_INTPWM1 0x00000002 // PWM1 Interrupt Status
  4101. #define PWM_ISC_INTPWM0 0x00000001 // PWM0 Interrupt Status
  4102. //*****************************************************************************
  4103. //
  4104. // The following are defines for the bit fields in the PWM_O_STATUS register.
  4105. //
  4106. //*****************************************************************************
  4107. #define PWM_STATUS_FAULT3 0x00000008 // Generator 3 Fault Status
  4108. #define PWM_STATUS_FAULT2 0x00000004 // Generator 2 Fault Status
  4109. #define PWM_STATUS_FAULT1 0x00000002 // Generator 1 Fault Status
  4110. #define PWM_STATUS_FAULT0 0x00000001 // Generator 0 Fault Status
  4111. //*****************************************************************************
  4112. //
  4113. // The following are defines for the bit fields in the PWM_O_FAULTVAL register.
  4114. //
  4115. //*****************************************************************************
  4116. #define PWM_FAULTVAL_PWM7 0x00000080 // MnPWM7 Fault Value
  4117. #define PWM_FAULTVAL_PWM6 0x00000040 // MnPWM6 Fault Value
  4118. #define PWM_FAULTVAL_PWM5 0x00000020 // MnPWM5 Fault Value
  4119. #define PWM_FAULTVAL_PWM4 0x00000010 // MnPWM4 Fault Value
  4120. #define PWM_FAULTVAL_PWM3 0x00000008 // MnPWM3 Fault Value
  4121. #define PWM_FAULTVAL_PWM2 0x00000004 // MnPWM2 Fault Value
  4122. #define PWM_FAULTVAL_PWM1 0x00000002 // MnPWM1 Fault Value
  4123. #define PWM_FAULTVAL_PWM0 0x00000001 // MnPWM0 Fault Value
  4124. //*****************************************************************************
  4125. //
  4126. // The following are defines for the bit fields in the PWM_O_ENUPD register.
  4127. //
  4128. //*****************************************************************************
  4129. #define PWM_ENUPD_ENUPD7_M 0x0000C000 // MnPWM7 Enable Update Mode
  4130. #define PWM_ENUPD_ENUPD7_IMM 0x00000000 // Immediate
  4131. #define PWM_ENUPD_ENUPD7_LSYNC 0x00008000 // Locally Synchronized
  4132. #define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000 // Globally Synchronized
  4133. #define PWM_ENUPD_ENUPD6_M 0x00003000 // MnPWM6 Enable Update Mode
  4134. #define PWM_ENUPD_ENUPD6_IMM 0x00000000 // Immediate
  4135. #define PWM_ENUPD_ENUPD6_LSYNC 0x00002000 // Locally Synchronized
  4136. #define PWM_ENUPD_ENUPD6_GSYNC 0x00003000 // Globally Synchronized
  4137. #define PWM_ENUPD_ENUPD5_M 0x00000C00 // MnPWM5 Enable Update Mode
  4138. #define PWM_ENUPD_ENUPD5_IMM 0x00000000 // Immediate
  4139. #define PWM_ENUPD_ENUPD5_LSYNC 0x00000800 // Locally Synchronized
  4140. #define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00 // Globally Synchronized
  4141. #define PWM_ENUPD_ENUPD4_M 0x00000300 // MnPWM4 Enable Update Mode
  4142. #define PWM_ENUPD_ENUPD4_IMM 0x00000000 // Immediate
  4143. #define PWM_ENUPD_ENUPD4_LSYNC 0x00000200 // Locally Synchronized
  4144. #define PWM_ENUPD_ENUPD4_GSYNC 0x00000300 // Globally Synchronized
  4145. #define PWM_ENUPD_ENUPD3_M 0x000000C0 // MnPWM3 Enable Update Mode
  4146. #define PWM_ENUPD_ENUPD3_IMM 0x00000000 // Immediate
  4147. #define PWM_ENUPD_ENUPD3_LSYNC 0x00000080 // Locally Synchronized
  4148. #define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0 // Globally Synchronized
  4149. #define PWM_ENUPD_ENUPD2_M 0x00000030 // MnPWM2 Enable Update Mode
  4150. #define PWM_ENUPD_ENUPD2_IMM 0x00000000 // Immediate
  4151. #define PWM_ENUPD_ENUPD2_LSYNC 0x00000020 // Locally Synchronized
  4152. #define PWM_ENUPD_ENUPD2_GSYNC 0x00000030 // Globally Synchronized
  4153. #define PWM_ENUPD_ENUPD1_M 0x0000000C // MnPWM1 Enable Update Mode
  4154. #define PWM_ENUPD_ENUPD1_IMM 0x00000000 // Immediate
  4155. #define PWM_ENUPD_ENUPD1_LSYNC 0x00000008 // Locally Synchronized
  4156. #define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C // Globally Synchronized
  4157. #define PWM_ENUPD_ENUPD0_M 0x00000003 // MnPWM0 Enable Update Mode
  4158. #define PWM_ENUPD_ENUPD0_IMM 0x00000000 // Immediate
  4159. #define PWM_ENUPD_ENUPD0_LSYNC 0x00000002 // Locally Synchronized
  4160. #define PWM_ENUPD_ENUPD0_GSYNC 0x00000003 // Globally Synchronized
  4161. //*****************************************************************************
  4162. //
  4163. // The following are defines for the bit fields in the PWM_O_0_CTL register.
  4164. //
  4165. //*****************************************************************************
  4166. #define PWM_0_CTL_LATCH 0x00040000 // Latch Fault Input
  4167. #define PWM_0_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4168. #define PWM_0_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4169. #define PWM_0_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4170. #define PWM_0_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4171. #define PWM_0_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4172. #define PWM_0_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4173. #define PWM_0_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4174. #define PWM_0_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4175. #define PWM_0_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4176. #define PWM_0_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4177. #define PWM_0_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4178. #define PWM_0_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4179. #define PWM_0_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4180. #define PWM_0_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4181. #define PWM_0_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4182. #define PWM_0_CTL_GENBUPD_I 0x00000000 // Immediate
  4183. #define PWM_0_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4184. #define PWM_0_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4185. #define PWM_0_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4186. #define PWM_0_CTL_GENAUPD_I 0x00000000 // Immediate
  4187. #define PWM_0_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4188. #define PWM_0_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4189. #define PWM_0_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4190. #define PWM_0_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4191. #define PWM_0_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4192. #define PWM_0_CTL_DEBUG 0x00000004 // Debug Mode
  4193. #define PWM_0_CTL_MODE 0x00000002 // Counter Mode
  4194. #define PWM_0_CTL_ENABLE 0x00000001 // PWM Block Enable
  4195. //*****************************************************************************
  4196. //
  4197. // The following are defines for the bit fields in the PWM_O_0_INTEN register.
  4198. //
  4199. //*****************************************************************************
  4200. #define PWM_0_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4201. // Down
  4202. #define PWM_0_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4203. #define PWM_0_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4204. // Down
  4205. #define PWM_0_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4206. #define PWM_0_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4207. #define PWM_0_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4208. #define PWM_0_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4209. // Down
  4210. #define PWM_0_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4211. // Up
  4212. #define PWM_0_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4213. // Down
  4214. #define PWM_0_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4215. // Up
  4216. #define PWM_0_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4217. #define PWM_0_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4218. //*****************************************************************************
  4219. //
  4220. // The following are defines for the bit fields in the PWM_O_0_RIS register.
  4221. //
  4222. //*****************************************************************************
  4223. #define PWM_0_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4224. // Status
  4225. #define PWM_0_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4226. #define PWM_0_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4227. // Status
  4228. #define PWM_0_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4229. #define PWM_0_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4230. #define PWM_0_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4231. //*****************************************************************************
  4232. //
  4233. // The following are defines for the bit fields in the PWM_O_0_ISC register.
  4234. //
  4235. //*****************************************************************************
  4236. #define PWM_0_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4237. #define PWM_0_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4238. #define PWM_0_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4239. #define PWM_0_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4240. #define PWM_0_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4241. #define PWM_0_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4242. //*****************************************************************************
  4243. //
  4244. // The following are defines for the bit fields in the PWM_O_0_LOAD register.
  4245. //
  4246. //*****************************************************************************
  4247. #define PWM_0_LOAD_M 0x0000FFFF // Counter Load Value
  4248. #define PWM_0_LOAD_S 0
  4249. //*****************************************************************************
  4250. //
  4251. // The following are defines for the bit fields in the PWM_O_0_COUNT register.
  4252. //
  4253. //*****************************************************************************
  4254. #define PWM_0_COUNT_M 0x0000FFFF // Counter Value
  4255. #define PWM_0_COUNT_S 0
  4256. //*****************************************************************************
  4257. //
  4258. // The following are defines for the bit fields in the PWM_O_0_CMPA register.
  4259. //
  4260. //*****************************************************************************
  4261. #define PWM_0_CMPA_M 0x0000FFFF // Comparator A Value
  4262. #define PWM_0_CMPA_S 0
  4263. //*****************************************************************************
  4264. //
  4265. // The following are defines for the bit fields in the PWM_O_0_CMPB register.
  4266. //
  4267. //*****************************************************************************
  4268. #define PWM_0_CMPB_M 0x0000FFFF // Comparator B Value
  4269. #define PWM_0_CMPB_S 0
  4270. //*****************************************************************************
  4271. //
  4272. // The following are defines for the bit fields in the PWM_O_0_GENA register.
  4273. //
  4274. //*****************************************************************************
  4275. #define PWM_0_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4276. #define PWM_0_GENA_ACTCMPBD_NONE \
  4277. 0x00000000 // Do nothing
  4278. #define PWM_0_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4279. #define PWM_0_GENA_ACTCMPBD_ZERO \
  4280. 0x00000800 // Drive pwmA Low
  4281. #define PWM_0_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4282. #define PWM_0_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4283. #define PWM_0_GENA_ACTCMPBU_NONE \
  4284. 0x00000000 // Do nothing
  4285. #define PWM_0_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4286. #define PWM_0_GENA_ACTCMPBU_ZERO \
  4287. 0x00000200 // Drive pwmA Low
  4288. #define PWM_0_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4289. #define PWM_0_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4290. #define PWM_0_GENA_ACTCMPAD_NONE \
  4291. 0x00000000 // Do nothing
  4292. #define PWM_0_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4293. #define PWM_0_GENA_ACTCMPAD_ZERO \
  4294. 0x00000080 // Drive pwmA Low
  4295. #define PWM_0_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4296. #define PWM_0_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4297. #define PWM_0_GENA_ACTCMPAU_NONE \
  4298. 0x00000000 // Do nothing
  4299. #define PWM_0_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4300. #define PWM_0_GENA_ACTCMPAU_ZERO \
  4301. 0x00000020 // Drive pwmA Low
  4302. #define PWM_0_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4303. #define PWM_0_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4304. #define PWM_0_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4305. #define PWM_0_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4306. #define PWM_0_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4307. #define PWM_0_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4308. #define PWM_0_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4309. #define PWM_0_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4310. #define PWM_0_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4311. #define PWM_0_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4312. #define PWM_0_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4313. //*****************************************************************************
  4314. //
  4315. // The following are defines for the bit fields in the PWM_O_0_GENB register.
  4316. //
  4317. //*****************************************************************************
  4318. #define PWM_0_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4319. #define PWM_0_GENB_ACTCMPBD_NONE \
  4320. 0x00000000 // Do nothing
  4321. #define PWM_0_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4322. #define PWM_0_GENB_ACTCMPBD_ZERO \
  4323. 0x00000800 // Drive pwmB Low
  4324. #define PWM_0_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4325. #define PWM_0_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4326. #define PWM_0_GENB_ACTCMPBU_NONE \
  4327. 0x00000000 // Do nothing
  4328. #define PWM_0_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4329. #define PWM_0_GENB_ACTCMPBU_ZERO \
  4330. 0x00000200 // Drive pwmB Low
  4331. #define PWM_0_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4332. #define PWM_0_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4333. #define PWM_0_GENB_ACTCMPAD_NONE \
  4334. 0x00000000 // Do nothing
  4335. #define PWM_0_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4336. #define PWM_0_GENB_ACTCMPAD_ZERO \
  4337. 0x00000080 // Drive pwmB Low
  4338. #define PWM_0_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4339. #define PWM_0_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4340. #define PWM_0_GENB_ACTCMPAU_NONE \
  4341. 0x00000000 // Do nothing
  4342. #define PWM_0_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4343. #define PWM_0_GENB_ACTCMPAU_ZERO \
  4344. 0x00000020 // Drive pwmB Low
  4345. #define PWM_0_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4346. #define PWM_0_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4347. #define PWM_0_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4348. #define PWM_0_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4349. #define PWM_0_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4350. #define PWM_0_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4351. #define PWM_0_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4352. #define PWM_0_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4353. #define PWM_0_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4354. #define PWM_0_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4355. #define PWM_0_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4356. //*****************************************************************************
  4357. //
  4358. // The following are defines for the bit fields in the PWM_O_0_DBCTL register.
  4359. //
  4360. //*****************************************************************************
  4361. #define PWM_0_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4362. //*****************************************************************************
  4363. //
  4364. // The following are defines for the bit fields in the PWM_O_0_DBRISE register.
  4365. //
  4366. //*****************************************************************************
  4367. #define PWM_0_DBRISE_DELAY_M 0x00000FFF // Dead-Band Rise Delay
  4368. #define PWM_0_DBRISE_DELAY_S 0
  4369. //*****************************************************************************
  4370. //
  4371. // The following are defines for the bit fields in the PWM_O_0_DBFALL register.
  4372. //
  4373. //*****************************************************************************
  4374. #define PWM_0_DBFALL_DELAY_M 0x00000FFF // Dead-Band Fall Delay
  4375. #define PWM_0_DBFALL_DELAY_S 0
  4376. //*****************************************************************************
  4377. //
  4378. // The following are defines for the bit fields in the PWM_O_0_FLTSRC0
  4379. // register.
  4380. //
  4381. //*****************************************************************************
  4382. #define PWM_0_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4383. #define PWM_0_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4384. #define PWM_0_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4385. #define PWM_0_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4386. //*****************************************************************************
  4387. //
  4388. // The following are defines for the bit fields in the PWM_O_0_FLTSRC1
  4389. // register.
  4390. //
  4391. //*****************************************************************************
  4392. #define PWM_0_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4393. #define PWM_0_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4394. #define PWM_0_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4395. #define PWM_0_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4396. #define PWM_0_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4397. #define PWM_0_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4398. #define PWM_0_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4399. #define PWM_0_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4400. //*****************************************************************************
  4401. //
  4402. // The following are defines for the bit fields in the PWM_O_0_MINFLTPER
  4403. // register.
  4404. //
  4405. //*****************************************************************************
  4406. #define PWM_0_MINFLTPER_M 0x0000FFFF // Minimum Fault Period
  4407. #define PWM_0_MINFLTPER_S 0
  4408. //*****************************************************************************
  4409. //
  4410. // The following are defines for the bit fields in the PWM_O_1_CTL register.
  4411. //
  4412. //*****************************************************************************
  4413. #define PWM_1_CTL_LATCH 0x00040000 // Latch Fault Input
  4414. #define PWM_1_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4415. #define PWM_1_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4416. #define PWM_1_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4417. #define PWM_1_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4418. #define PWM_1_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4419. #define PWM_1_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4420. #define PWM_1_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4421. #define PWM_1_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4422. #define PWM_1_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4423. #define PWM_1_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4424. #define PWM_1_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4425. #define PWM_1_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4426. #define PWM_1_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4427. #define PWM_1_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4428. #define PWM_1_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4429. #define PWM_1_CTL_GENBUPD_I 0x00000000 // Immediate
  4430. #define PWM_1_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4431. #define PWM_1_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4432. #define PWM_1_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4433. #define PWM_1_CTL_GENAUPD_I 0x00000000 // Immediate
  4434. #define PWM_1_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4435. #define PWM_1_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4436. #define PWM_1_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4437. #define PWM_1_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4438. #define PWM_1_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4439. #define PWM_1_CTL_DEBUG 0x00000004 // Debug Mode
  4440. #define PWM_1_CTL_MODE 0x00000002 // Counter Mode
  4441. #define PWM_1_CTL_ENABLE 0x00000001 // PWM Block Enable
  4442. //*****************************************************************************
  4443. //
  4444. // The following are defines for the bit fields in the PWM_O_1_INTEN register.
  4445. //
  4446. //*****************************************************************************
  4447. #define PWM_1_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4448. // Down
  4449. #define PWM_1_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4450. #define PWM_1_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4451. // Down
  4452. #define PWM_1_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4453. #define PWM_1_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4454. #define PWM_1_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4455. #define PWM_1_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4456. // Down
  4457. #define PWM_1_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4458. // Up
  4459. #define PWM_1_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4460. // Down
  4461. #define PWM_1_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4462. // Up
  4463. #define PWM_1_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4464. #define PWM_1_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4465. //*****************************************************************************
  4466. //
  4467. // The following are defines for the bit fields in the PWM_O_1_RIS register.
  4468. //
  4469. //*****************************************************************************
  4470. #define PWM_1_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4471. // Status
  4472. #define PWM_1_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4473. #define PWM_1_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4474. // Status
  4475. #define PWM_1_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4476. #define PWM_1_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4477. #define PWM_1_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4478. //*****************************************************************************
  4479. //
  4480. // The following are defines for the bit fields in the PWM_O_1_ISC register.
  4481. //
  4482. //*****************************************************************************
  4483. #define PWM_1_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4484. #define PWM_1_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4485. #define PWM_1_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4486. #define PWM_1_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4487. #define PWM_1_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4488. #define PWM_1_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4489. //*****************************************************************************
  4490. //
  4491. // The following are defines for the bit fields in the PWM_O_1_LOAD register.
  4492. //
  4493. //*****************************************************************************
  4494. #define PWM_1_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4495. #define PWM_1_LOAD_LOAD_S 0
  4496. //*****************************************************************************
  4497. //
  4498. // The following are defines for the bit fields in the PWM_O_1_COUNT register.
  4499. //
  4500. //*****************************************************************************
  4501. #define PWM_1_COUNT_COUNT_M 0x0000FFFF // Counter Value
  4502. #define PWM_1_COUNT_COUNT_S 0
  4503. //*****************************************************************************
  4504. //
  4505. // The following are defines for the bit fields in the PWM_O_1_CMPA register.
  4506. //
  4507. //*****************************************************************************
  4508. #define PWM_1_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  4509. #define PWM_1_CMPA_COMPA_S 0
  4510. //*****************************************************************************
  4511. //
  4512. // The following are defines for the bit fields in the PWM_O_1_CMPB register.
  4513. //
  4514. //*****************************************************************************
  4515. #define PWM_1_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  4516. #define PWM_1_CMPB_COMPB_S 0
  4517. //*****************************************************************************
  4518. //
  4519. // The following are defines for the bit fields in the PWM_O_1_GENA register.
  4520. //
  4521. //*****************************************************************************
  4522. #define PWM_1_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4523. #define PWM_1_GENA_ACTCMPBD_NONE \
  4524. 0x00000000 // Do nothing
  4525. #define PWM_1_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4526. #define PWM_1_GENA_ACTCMPBD_ZERO \
  4527. 0x00000800 // Drive pwmA Low
  4528. #define PWM_1_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4529. #define PWM_1_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4530. #define PWM_1_GENA_ACTCMPBU_NONE \
  4531. 0x00000000 // Do nothing
  4532. #define PWM_1_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4533. #define PWM_1_GENA_ACTCMPBU_ZERO \
  4534. 0x00000200 // Drive pwmA Low
  4535. #define PWM_1_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4536. #define PWM_1_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4537. #define PWM_1_GENA_ACTCMPAD_NONE \
  4538. 0x00000000 // Do nothing
  4539. #define PWM_1_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4540. #define PWM_1_GENA_ACTCMPAD_ZERO \
  4541. 0x00000080 // Drive pwmA Low
  4542. #define PWM_1_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4543. #define PWM_1_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4544. #define PWM_1_GENA_ACTCMPAU_NONE \
  4545. 0x00000000 // Do nothing
  4546. #define PWM_1_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4547. #define PWM_1_GENA_ACTCMPAU_ZERO \
  4548. 0x00000020 // Drive pwmA Low
  4549. #define PWM_1_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4550. #define PWM_1_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4551. #define PWM_1_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4552. #define PWM_1_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4553. #define PWM_1_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4554. #define PWM_1_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4555. #define PWM_1_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4556. #define PWM_1_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4557. #define PWM_1_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4558. #define PWM_1_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4559. #define PWM_1_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4560. //*****************************************************************************
  4561. //
  4562. // The following are defines for the bit fields in the PWM_O_1_GENB register.
  4563. //
  4564. //*****************************************************************************
  4565. #define PWM_1_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4566. #define PWM_1_GENB_ACTCMPBD_NONE \
  4567. 0x00000000 // Do nothing
  4568. #define PWM_1_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4569. #define PWM_1_GENB_ACTCMPBD_ZERO \
  4570. 0x00000800 // Drive pwmB Low
  4571. #define PWM_1_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4572. #define PWM_1_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4573. #define PWM_1_GENB_ACTCMPBU_NONE \
  4574. 0x00000000 // Do nothing
  4575. #define PWM_1_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4576. #define PWM_1_GENB_ACTCMPBU_ZERO \
  4577. 0x00000200 // Drive pwmB Low
  4578. #define PWM_1_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4579. #define PWM_1_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4580. #define PWM_1_GENB_ACTCMPAD_NONE \
  4581. 0x00000000 // Do nothing
  4582. #define PWM_1_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4583. #define PWM_1_GENB_ACTCMPAD_ZERO \
  4584. 0x00000080 // Drive pwmB Low
  4585. #define PWM_1_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4586. #define PWM_1_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4587. #define PWM_1_GENB_ACTCMPAU_NONE \
  4588. 0x00000000 // Do nothing
  4589. #define PWM_1_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4590. #define PWM_1_GENB_ACTCMPAU_ZERO \
  4591. 0x00000020 // Drive pwmB Low
  4592. #define PWM_1_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4593. #define PWM_1_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4594. #define PWM_1_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4595. #define PWM_1_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4596. #define PWM_1_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4597. #define PWM_1_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4598. #define PWM_1_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4599. #define PWM_1_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4600. #define PWM_1_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4601. #define PWM_1_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4602. #define PWM_1_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4603. //*****************************************************************************
  4604. //
  4605. // The following are defines for the bit fields in the PWM_O_1_DBCTL register.
  4606. //
  4607. //*****************************************************************************
  4608. #define PWM_1_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4609. //*****************************************************************************
  4610. //
  4611. // The following are defines for the bit fields in the PWM_O_1_DBRISE register.
  4612. //
  4613. //*****************************************************************************
  4614. #define PWM_1_DBRISE_RISEDELAY_M \
  4615. 0x00000FFF // Dead-Band Rise Delay
  4616. #define PWM_1_DBRISE_RISEDELAY_S \
  4617. 0
  4618. //*****************************************************************************
  4619. //
  4620. // The following are defines for the bit fields in the PWM_O_1_DBFALL register.
  4621. //
  4622. //*****************************************************************************
  4623. #define PWM_1_DBFALL_FALLDELAY_M \
  4624. 0x00000FFF // Dead-Band Fall Delay
  4625. #define PWM_1_DBFALL_FALLDELAY_S \
  4626. 0
  4627. //*****************************************************************************
  4628. //
  4629. // The following are defines for the bit fields in the PWM_O_1_FLTSRC0
  4630. // register.
  4631. //
  4632. //*****************************************************************************
  4633. #define PWM_1_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4634. #define PWM_1_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4635. #define PWM_1_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4636. #define PWM_1_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4637. //*****************************************************************************
  4638. //
  4639. // The following are defines for the bit fields in the PWM_O_1_FLTSRC1
  4640. // register.
  4641. //
  4642. //*****************************************************************************
  4643. #define PWM_1_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4644. #define PWM_1_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4645. #define PWM_1_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4646. #define PWM_1_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4647. #define PWM_1_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4648. #define PWM_1_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4649. #define PWM_1_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4650. #define PWM_1_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4651. //*****************************************************************************
  4652. //
  4653. // The following are defines for the bit fields in the PWM_O_1_MINFLTPER
  4654. // register.
  4655. //
  4656. //*****************************************************************************
  4657. #define PWM_1_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  4658. #define PWM_1_MINFLTPER_MFP_S 0
  4659. //*****************************************************************************
  4660. //
  4661. // The following are defines for the bit fields in the PWM_O_2_CTL register.
  4662. //
  4663. //*****************************************************************************
  4664. #define PWM_2_CTL_LATCH 0x00040000 // Latch Fault Input
  4665. #define PWM_2_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4666. #define PWM_2_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4667. #define PWM_2_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4668. #define PWM_2_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4669. #define PWM_2_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4670. #define PWM_2_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4671. #define PWM_2_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4672. #define PWM_2_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4673. #define PWM_2_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4674. #define PWM_2_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4675. #define PWM_2_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4676. #define PWM_2_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4677. #define PWM_2_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4678. #define PWM_2_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4679. #define PWM_2_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4680. #define PWM_2_CTL_GENBUPD_I 0x00000000 // Immediate
  4681. #define PWM_2_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4682. #define PWM_2_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4683. #define PWM_2_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4684. #define PWM_2_CTL_GENAUPD_I 0x00000000 // Immediate
  4685. #define PWM_2_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4686. #define PWM_2_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4687. #define PWM_2_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4688. #define PWM_2_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4689. #define PWM_2_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4690. #define PWM_2_CTL_DEBUG 0x00000004 // Debug Mode
  4691. #define PWM_2_CTL_MODE 0x00000002 // Counter Mode
  4692. #define PWM_2_CTL_ENABLE 0x00000001 // PWM Block Enable
  4693. //*****************************************************************************
  4694. //
  4695. // The following are defines for the bit fields in the PWM_O_2_INTEN register.
  4696. //
  4697. //*****************************************************************************
  4698. #define PWM_2_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4699. // Down
  4700. #define PWM_2_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4701. #define PWM_2_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4702. // Down
  4703. #define PWM_2_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4704. #define PWM_2_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4705. #define PWM_2_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4706. #define PWM_2_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4707. // Down
  4708. #define PWM_2_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4709. // Up
  4710. #define PWM_2_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4711. // Down
  4712. #define PWM_2_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4713. // Up
  4714. #define PWM_2_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4715. #define PWM_2_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4716. //*****************************************************************************
  4717. //
  4718. // The following are defines for the bit fields in the PWM_O_2_RIS register.
  4719. //
  4720. //*****************************************************************************
  4721. #define PWM_2_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4722. // Status
  4723. #define PWM_2_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4724. #define PWM_2_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4725. // Status
  4726. #define PWM_2_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4727. #define PWM_2_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4728. #define PWM_2_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4729. //*****************************************************************************
  4730. //
  4731. // The following are defines for the bit fields in the PWM_O_2_ISC register.
  4732. //
  4733. //*****************************************************************************
  4734. #define PWM_2_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4735. #define PWM_2_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4736. #define PWM_2_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4737. #define PWM_2_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4738. #define PWM_2_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4739. #define PWM_2_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4740. //*****************************************************************************
  4741. //
  4742. // The following are defines for the bit fields in the PWM_O_2_LOAD register.
  4743. //
  4744. //*****************************************************************************
  4745. #define PWM_2_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4746. #define PWM_2_LOAD_LOAD_S 0
  4747. //*****************************************************************************
  4748. //
  4749. // The following are defines for the bit fields in the PWM_O_2_COUNT register.
  4750. //
  4751. //*****************************************************************************
  4752. #define PWM_2_COUNT_COUNT_M 0x0000FFFF // Counter Value
  4753. #define PWM_2_COUNT_COUNT_S 0
  4754. //*****************************************************************************
  4755. //
  4756. // The following are defines for the bit fields in the PWM_O_2_CMPA register.
  4757. //
  4758. //*****************************************************************************
  4759. #define PWM_2_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  4760. #define PWM_2_CMPA_COMPA_S 0
  4761. //*****************************************************************************
  4762. //
  4763. // The following are defines for the bit fields in the PWM_O_2_CMPB register.
  4764. //
  4765. //*****************************************************************************
  4766. #define PWM_2_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  4767. #define PWM_2_CMPB_COMPB_S 0
  4768. //*****************************************************************************
  4769. //
  4770. // The following are defines for the bit fields in the PWM_O_2_GENA register.
  4771. //
  4772. //*****************************************************************************
  4773. #define PWM_2_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4774. #define PWM_2_GENA_ACTCMPBD_NONE \
  4775. 0x00000000 // Do nothing
  4776. #define PWM_2_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4777. #define PWM_2_GENA_ACTCMPBD_ZERO \
  4778. 0x00000800 // Drive pwmA Low
  4779. #define PWM_2_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4780. #define PWM_2_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4781. #define PWM_2_GENA_ACTCMPBU_NONE \
  4782. 0x00000000 // Do nothing
  4783. #define PWM_2_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4784. #define PWM_2_GENA_ACTCMPBU_ZERO \
  4785. 0x00000200 // Drive pwmA Low
  4786. #define PWM_2_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4787. #define PWM_2_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4788. #define PWM_2_GENA_ACTCMPAD_NONE \
  4789. 0x00000000 // Do nothing
  4790. #define PWM_2_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4791. #define PWM_2_GENA_ACTCMPAD_ZERO \
  4792. 0x00000080 // Drive pwmA Low
  4793. #define PWM_2_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4794. #define PWM_2_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4795. #define PWM_2_GENA_ACTCMPAU_NONE \
  4796. 0x00000000 // Do nothing
  4797. #define PWM_2_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4798. #define PWM_2_GENA_ACTCMPAU_ZERO \
  4799. 0x00000020 // Drive pwmA Low
  4800. #define PWM_2_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4801. #define PWM_2_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4802. #define PWM_2_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4803. #define PWM_2_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4804. #define PWM_2_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4805. #define PWM_2_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4806. #define PWM_2_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4807. #define PWM_2_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4808. #define PWM_2_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4809. #define PWM_2_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4810. #define PWM_2_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4811. //*****************************************************************************
  4812. //
  4813. // The following are defines for the bit fields in the PWM_O_2_GENB register.
  4814. //
  4815. //*****************************************************************************
  4816. #define PWM_2_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4817. #define PWM_2_GENB_ACTCMPBD_NONE \
  4818. 0x00000000 // Do nothing
  4819. #define PWM_2_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4820. #define PWM_2_GENB_ACTCMPBD_ZERO \
  4821. 0x00000800 // Drive pwmB Low
  4822. #define PWM_2_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4823. #define PWM_2_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4824. #define PWM_2_GENB_ACTCMPBU_NONE \
  4825. 0x00000000 // Do nothing
  4826. #define PWM_2_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4827. #define PWM_2_GENB_ACTCMPBU_ZERO \
  4828. 0x00000200 // Drive pwmB Low
  4829. #define PWM_2_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4830. #define PWM_2_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4831. #define PWM_2_GENB_ACTCMPAD_NONE \
  4832. 0x00000000 // Do nothing
  4833. #define PWM_2_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4834. #define PWM_2_GENB_ACTCMPAD_ZERO \
  4835. 0x00000080 // Drive pwmB Low
  4836. #define PWM_2_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4837. #define PWM_2_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4838. #define PWM_2_GENB_ACTCMPAU_NONE \
  4839. 0x00000000 // Do nothing
  4840. #define PWM_2_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4841. #define PWM_2_GENB_ACTCMPAU_ZERO \
  4842. 0x00000020 // Drive pwmB Low
  4843. #define PWM_2_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4844. #define PWM_2_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4845. #define PWM_2_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4846. #define PWM_2_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4847. #define PWM_2_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4848. #define PWM_2_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4849. #define PWM_2_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4850. #define PWM_2_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4851. #define PWM_2_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4852. #define PWM_2_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4853. #define PWM_2_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4854. //*****************************************************************************
  4855. //
  4856. // The following are defines for the bit fields in the PWM_O_2_DBCTL register.
  4857. //
  4858. //*****************************************************************************
  4859. #define PWM_2_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4860. //*****************************************************************************
  4861. //
  4862. // The following are defines for the bit fields in the PWM_O_2_DBRISE register.
  4863. //
  4864. //*****************************************************************************
  4865. #define PWM_2_DBRISE_RISEDELAY_M \
  4866. 0x00000FFF // Dead-Band Rise Delay
  4867. #define PWM_2_DBRISE_RISEDELAY_S \
  4868. 0
  4869. //*****************************************************************************
  4870. //
  4871. // The following are defines for the bit fields in the PWM_O_2_DBFALL register.
  4872. //
  4873. //*****************************************************************************
  4874. #define PWM_2_DBFALL_FALLDELAY_M \
  4875. 0x00000FFF // Dead-Band Fall Delay
  4876. #define PWM_2_DBFALL_FALLDELAY_S \
  4877. 0
  4878. //*****************************************************************************
  4879. //
  4880. // The following are defines for the bit fields in the PWM_O_2_FLTSRC0
  4881. // register.
  4882. //
  4883. //*****************************************************************************
  4884. #define PWM_2_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4885. #define PWM_2_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4886. #define PWM_2_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4887. #define PWM_2_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4888. //*****************************************************************************
  4889. //
  4890. // The following are defines for the bit fields in the PWM_O_2_FLTSRC1
  4891. // register.
  4892. //
  4893. //*****************************************************************************
  4894. #define PWM_2_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4895. #define PWM_2_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4896. #define PWM_2_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4897. #define PWM_2_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4898. #define PWM_2_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4899. #define PWM_2_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4900. #define PWM_2_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4901. #define PWM_2_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4902. //*****************************************************************************
  4903. //
  4904. // The following are defines for the bit fields in the PWM_O_2_MINFLTPER
  4905. // register.
  4906. //
  4907. //*****************************************************************************
  4908. #define PWM_2_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  4909. #define PWM_2_MINFLTPER_MFP_S 0
  4910. //*****************************************************************************
  4911. //
  4912. // The following are defines for the bit fields in the PWM_O_3_CTL register.
  4913. //
  4914. //*****************************************************************************
  4915. #define PWM_3_CTL_LATCH 0x00040000 // Latch Fault Input
  4916. #define PWM_3_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4917. #define PWM_3_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4918. #define PWM_3_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4919. #define PWM_3_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4920. #define PWM_3_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4921. #define PWM_3_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4922. #define PWM_3_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4923. #define PWM_3_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4924. #define PWM_3_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4925. #define PWM_3_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4926. #define PWM_3_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4927. #define PWM_3_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4928. #define PWM_3_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4929. #define PWM_3_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4930. #define PWM_3_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4931. #define PWM_3_CTL_GENBUPD_I 0x00000000 // Immediate
  4932. #define PWM_3_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4933. #define PWM_3_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4934. #define PWM_3_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4935. #define PWM_3_CTL_GENAUPD_I 0x00000000 // Immediate
  4936. #define PWM_3_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4937. #define PWM_3_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4938. #define PWM_3_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4939. #define PWM_3_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4940. #define PWM_3_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4941. #define PWM_3_CTL_DEBUG 0x00000004 // Debug Mode
  4942. #define PWM_3_CTL_MODE 0x00000002 // Counter Mode
  4943. #define PWM_3_CTL_ENABLE 0x00000001 // PWM Block Enable
  4944. //*****************************************************************************
  4945. //
  4946. // The following are defines for the bit fields in the PWM_O_3_INTEN register.
  4947. //
  4948. //*****************************************************************************
  4949. #define PWM_3_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4950. // Down
  4951. #define PWM_3_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4952. #define PWM_3_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4953. // Down
  4954. #define PWM_3_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4955. #define PWM_3_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4956. #define PWM_3_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4957. #define PWM_3_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4958. // Down
  4959. #define PWM_3_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4960. // Up
  4961. #define PWM_3_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4962. // Down
  4963. #define PWM_3_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4964. // Up
  4965. #define PWM_3_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4966. #define PWM_3_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4967. //*****************************************************************************
  4968. //
  4969. // The following are defines for the bit fields in the PWM_O_3_RIS register.
  4970. //
  4971. //*****************************************************************************
  4972. #define PWM_3_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4973. // Status
  4974. #define PWM_3_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4975. #define PWM_3_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4976. // Status
  4977. #define PWM_3_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4978. #define PWM_3_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4979. #define PWM_3_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4980. //*****************************************************************************
  4981. //
  4982. // The following are defines for the bit fields in the PWM_O_3_ISC register.
  4983. //
  4984. //*****************************************************************************
  4985. #define PWM_3_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4986. #define PWM_3_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4987. #define PWM_3_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4988. #define PWM_3_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4989. #define PWM_3_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4990. #define PWM_3_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4991. //*****************************************************************************
  4992. //
  4993. // The following are defines for the bit fields in the PWM_O_3_LOAD register.
  4994. //
  4995. //*****************************************************************************
  4996. #define PWM_3_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4997. #define PWM_3_LOAD_LOAD_S 0
  4998. //*****************************************************************************
  4999. //
  5000. // The following are defines for the bit fields in the PWM_O_3_COUNT register.
  5001. //
  5002. //*****************************************************************************
  5003. #define PWM_3_COUNT_COUNT_M 0x0000FFFF // Counter Value
  5004. #define PWM_3_COUNT_COUNT_S 0
  5005. //*****************************************************************************
  5006. //
  5007. // The following are defines for the bit fields in the PWM_O_3_CMPA register.
  5008. //
  5009. //*****************************************************************************
  5010. #define PWM_3_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  5011. #define PWM_3_CMPA_COMPA_S 0
  5012. //*****************************************************************************
  5013. //
  5014. // The following are defines for the bit fields in the PWM_O_3_CMPB register.
  5015. //
  5016. //*****************************************************************************
  5017. #define PWM_3_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  5018. #define PWM_3_CMPB_COMPB_S 0
  5019. //*****************************************************************************
  5020. //
  5021. // The following are defines for the bit fields in the PWM_O_3_GENA register.
  5022. //
  5023. //*****************************************************************************
  5024. #define PWM_3_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  5025. #define PWM_3_GENA_ACTCMPBD_NONE \
  5026. 0x00000000 // Do nothing
  5027. #define PWM_3_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  5028. #define PWM_3_GENA_ACTCMPBD_ZERO \
  5029. 0x00000800 // Drive pwmA Low
  5030. #define PWM_3_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  5031. #define PWM_3_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  5032. #define PWM_3_GENA_ACTCMPBU_NONE \
  5033. 0x00000000 // Do nothing
  5034. #define PWM_3_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  5035. #define PWM_3_GENA_ACTCMPBU_ZERO \
  5036. 0x00000200 // Drive pwmA Low
  5037. #define PWM_3_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  5038. #define PWM_3_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  5039. #define PWM_3_GENA_ACTCMPAD_NONE \
  5040. 0x00000000 // Do nothing
  5041. #define PWM_3_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  5042. #define PWM_3_GENA_ACTCMPAD_ZERO \
  5043. 0x00000080 // Drive pwmA Low
  5044. #define PWM_3_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  5045. #define PWM_3_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  5046. #define PWM_3_GENA_ACTCMPAU_NONE \
  5047. 0x00000000 // Do nothing
  5048. #define PWM_3_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  5049. #define PWM_3_GENA_ACTCMPAU_ZERO \
  5050. 0x00000020 // Drive pwmA Low
  5051. #define PWM_3_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  5052. #define PWM_3_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  5053. #define PWM_3_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  5054. #define PWM_3_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  5055. #define PWM_3_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  5056. #define PWM_3_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  5057. #define PWM_3_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  5058. #define PWM_3_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  5059. #define PWM_3_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  5060. #define PWM_3_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  5061. #define PWM_3_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  5062. //*****************************************************************************
  5063. //
  5064. // The following are defines for the bit fields in the PWM_O_3_GENB register.
  5065. //
  5066. //*****************************************************************************
  5067. #define PWM_3_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  5068. #define PWM_3_GENB_ACTCMPBD_NONE \
  5069. 0x00000000 // Do nothing
  5070. #define PWM_3_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  5071. #define PWM_3_GENB_ACTCMPBD_ZERO \
  5072. 0x00000800 // Drive pwmB Low
  5073. #define PWM_3_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  5074. #define PWM_3_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  5075. #define PWM_3_GENB_ACTCMPBU_NONE \
  5076. 0x00000000 // Do nothing
  5077. #define PWM_3_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  5078. #define PWM_3_GENB_ACTCMPBU_ZERO \
  5079. 0x00000200 // Drive pwmB Low
  5080. #define PWM_3_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  5081. #define PWM_3_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  5082. #define PWM_3_GENB_ACTCMPAD_NONE \
  5083. 0x00000000 // Do nothing
  5084. #define PWM_3_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  5085. #define PWM_3_GENB_ACTCMPAD_ZERO \
  5086. 0x00000080 // Drive pwmB Low
  5087. #define PWM_3_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  5088. #define PWM_3_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  5089. #define PWM_3_GENB_ACTCMPAU_NONE \
  5090. 0x00000000 // Do nothing
  5091. #define PWM_3_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  5092. #define PWM_3_GENB_ACTCMPAU_ZERO \
  5093. 0x00000020 // Drive pwmB Low
  5094. #define PWM_3_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  5095. #define PWM_3_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  5096. #define PWM_3_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  5097. #define PWM_3_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  5098. #define PWM_3_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  5099. #define PWM_3_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  5100. #define PWM_3_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  5101. #define PWM_3_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  5102. #define PWM_3_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  5103. #define PWM_3_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  5104. #define PWM_3_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  5105. //*****************************************************************************
  5106. //
  5107. // The following are defines for the bit fields in the PWM_O_3_DBCTL register.
  5108. //
  5109. //*****************************************************************************
  5110. #define PWM_3_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  5111. //*****************************************************************************
  5112. //
  5113. // The following are defines for the bit fields in the PWM_O_3_DBRISE register.
  5114. //
  5115. //*****************************************************************************
  5116. #define PWM_3_DBRISE_RISEDELAY_M \
  5117. 0x00000FFF // Dead-Band Rise Delay
  5118. #define PWM_3_DBRISE_RISEDELAY_S \
  5119. 0
  5120. //*****************************************************************************
  5121. //
  5122. // The following are defines for the bit fields in the PWM_O_3_DBFALL register.
  5123. //
  5124. //*****************************************************************************
  5125. #define PWM_3_DBFALL_FALLDELAY_M \
  5126. 0x00000FFF // Dead-Band Fall Delay
  5127. #define PWM_3_DBFALL_FALLDELAY_S \
  5128. 0
  5129. //*****************************************************************************
  5130. //
  5131. // The following are defines for the bit fields in the PWM_O_3_FLTSRC0
  5132. // register.
  5133. //
  5134. //*****************************************************************************
  5135. #define PWM_3_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  5136. #define PWM_3_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  5137. #define PWM_3_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  5138. #define PWM_3_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  5139. //*****************************************************************************
  5140. //
  5141. // The following are defines for the bit fields in the PWM_O_3_FLTSRC1
  5142. // register.
  5143. //
  5144. //*****************************************************************************
  5145. #define PWM_3_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  5146. #define PWM_3_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  5147. #define PWM_3_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  5148. #define PWM_3_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  5149. #define PWM_3_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  5150. #define PWM_3_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  5151. #define PWM_3_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  5152. #define PWM_3_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  5153. //*****************************************************************************
  5154. //
  5155. // The following are defines for the bit fields in the PWM_O_3_MINFLTPER
  5156. // register.
  5157. //
  5158. //*****************************************************************************
  5159. #define PWM_3_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  5160. #define PWM_3_MINFLTPER_MFP_S 0
  5161. //*****************************************************************************
  5162. //
  5163. // The following are defines for the bit fields in the PWM_O_0_FLTSEN register.
  5164. //
  5165. //*****************************************************************************
  5166. #define PWM_0_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  5167. #define PWM_0_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  5168. #define PWM_0_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  5169. #define PWM_0_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  5170. //*****************************************************************************
  5171. //
  5172. // The following are defines for the bit fields in the PWM_O_0_FLTSTAT0
  5173. // register.
  5174. //
  5175. //*****************************************************************************
  5176. #define PWM_0_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  5177. #define PWM_0_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  5178. #define PWM_0_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  5179. #define PWM_0_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  5180. //*****************************************************************************
  5181. //
  5182. // The following are defines for the bit fields in the PWM_O_0_FLTSTAT1
  5183. // register.
  5184. //
  5185. //*****************************************************************************
  5186. #define PWM_0_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  5187. #define PWM_0_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  5188. #define PWM_0_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  5189. #define PWM_0_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  5190. #define PWM_0_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  5191. #define PWM_0_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  5192. #define PWM_0_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  5193. #define PWM_0_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  5194. //*****************************************************************************
  5195. //
  5196. // The following are defines for the bit fields in the PWM_O_1_FLTSEN register.
  5197. //
  5198. //*****************************************************************************
  5199. #define PWM_1_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  5200. #define PWM_1_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  5201. #define PWM_1_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  5202. #define PWM_1_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  5203. //*****************************************************************************
  5204. //
  5205. // The following are defines for the bit fields in the PWM_O_1_FLTSTAT0
  5206. // register.
  5207. //
  5208. //*****************************************************************************
  5209. #define PWM_1_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  5210. #define PWM_1_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  5211. #define PWM_1_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  5212. #define PWM_1_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  5213. //*****************************************************************************
  5214. //
  5215. // The following are defines for the bit fields in the PWM_O_1_FLTSTAT1
  5216. // register.
  5217. //
  5218. //*****************************************************************************
  5219. #define PWM_1_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  5220. #define PWM_1_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  5221. #define PWM_1_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  5222. #define PWM_1_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  5223. #define PWM_1_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  5224. #define PWM_1_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  5225. #define PWM_1_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  5226. #define PWM_1_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  5227. //*****************************************************************************
  5228. //
  5229. // The following are defines for the bit fields in the PWM_O_2_FLTSEN register.
  5230. //
  5231. //*****************************************************************************
  5232. #define PWM_2_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  5233. #define PWM_2_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  5234. #define PWM_2_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  5235. #define PWM_2_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  5236. //*****************************************************************************
  5237. //
  5238. // The following are defines for the bit fields in the PWM_O_2_FLTSTAT0
  5239. // register.
  5240. //
  5241. //*****************************************************************************
  5242. #define PWM_2_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  5243. #define PWM_2_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  5244. #define PWM_2_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  5245. #define PWM_2_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  5246. //*****************************************************************************
  5247. //
  5248. // The following are defines for the bit fields in the PWM_O_2_FLTSTAT1
  5249. // register.
  5250. //
  5251. //*****************************************************************************
  5252. #define PWM_2_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  5253. #define PWM_2_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  5254. #define PWM_2_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  5255. #define PWM_2_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  5256. #define PWM_2_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  5257. #define PWM_2_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  5258. #define PWM_2_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  5259. #define PWM_2_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  5260. //*****************************************************************************
  5261. //
  5262. // The following are defines for the bit fields in the PWM_O_3_FLTSEN register.
  5263. //
  5264. //*****************************************************************************
  5265. #define PWM_3_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  5266. #define PWM_3_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  5267. #define PWM_3_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  5268. #define PWM_3_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  5269. //*****************************************************************************
  5270. //
  5271. // The following are defines for the bit fields in the PWM_O_3_FLTSTAT0
  5272. // register.
  5273. //
  5274. //*****************************************************************************
  5275. #define PWM_3_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  5276. #define PWM_3_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  5277. #define PWM_3_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  5278. #define PWM_3_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  5279. //*****************************************************************************
  5280. //
  5281. // The following are defines for the bit fields in the PWM_O_3_FLTSTAT1
  5282. // register.
  5283. //
  5284. //*****************************************************************************
  5285. #define PWM_3_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  5286. #define PWM_3_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  5287. #define PWM_3_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  5288. #define PWM_3_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  5289. #define PWM_3_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  5290. #define PWM_3_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  5291. #define PWM_3_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  5292. #define PWM_3_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  5293. //*****************************************************************************
  5294. //
  5295. // The following are defines for the bit fields in the PWM_O_PP register.
  5296. //
  5297. //*****************************************************************************
  5298. #define PWM_PP_ONE 0x00000400 // One-Shot Mode
  5299. #define PWM_PP_EFAULT 0x00000200 // Extended Fault
  5300. #define PWM_PP_ESYNC 0x00000100 // Extended Synchronization
  5301. #define PWM_PP_FCNT_M 0x000000F0 // Fault Inputs (per PWM unit)
  5302. #define PWM_PP_GCNT_M 0x0000000F // Generators
  5303. #define PWM_PP_FCNT_S 4
  5304. #define PWM_PP_GCNT_S 0
  5305. //*****************************************************************************
  5306. //
  5307. // The following are defines for the bit fields in the PWM_O_CC register.
  5308. //
  5309. //*****************************************************************************
  5310. #define PWM_CC_USEPWM 0x00000100 // Use PWM Clock Divisor
  5311. #define PWM_CC_PWMDIV_M 0x00000007 // PWM Clock Divider
  5312. #define PWM_CC_PWMDIV_2 0x00000000 // /2
  5313. #define PWM_CC_PWMDIV_4 0x00000001 // /4
  5314. #define PWM_CC_PWMDIV_8 0x00000002 // /8
  5315. #define PWM_CC_PWMDIV_16 0x00000003 // /16
  5316. #define PWM_CC_PWMDIV_32 0x00000004 // /32
  5317. #define PWM_CC_PWMDIV_64 0x00000005 // /64
  5318. //*****************************************************************************
  5319. //
  5320. // The following are defines for the bit fields in the QEI_O_CTL register.
  5321. //
  5322. //*****************************************************************************
  5323. #define QEI_CTL_FILTCNT_M 0x000F0000 // Input Filter Prescale Count
  5324. #define QEI_CTL_FILTEN 0x00002000 // Enable Input Filter
  5325. #define QEI_CTL_STALLEN 0x00001000 // Stall QEI
  5326. #define QEI_CTL_INVI 0x00000800 // Invert Index Pulse
  5327. #define QEI_CTL_INVB 0x00000400 // Invert PhB
  5328. #define QEI_CTL_INVA 0x00000200 // Invert PhA
  5329. #define QEI_CTL_VELDIV_M 0x000001C0 // Predivide Velocity
  5330. #define QEI_CTL_VELDIV_1 0x00000000 // QEI clock /1
  5331. #define QEI_CTL_VELDIV_2 0x00000040 // QEI clock /2
  5332. #define QEI_CTL_VELDIV_4 0x00000080 // QEI clock /4
  5333. #define QEI_CTL_VELDIV_8 0x000000C0 // QEI clock /8
  5334. #define QEI_CTL_VELDIV_16 0x00000100 // QEI clock /16
  5335. #define QEI_CTL_VELDIV_32 0x00000140 // QEI clock /32
  5336. #define QEI_CTL_VELDIV_64 0x00000180 // QEI clock /64
  5337. #define QEI_CTL_VELDIV_128 0x000001C0 // QEI clock /128
  5338. #define QEI_CTL_VELEN 0x00000020 // Capture Velocity
  5339. #define QEI_CTL_RESMODE 0x00000010 // Reset Mode
  5340. #define QEI_CTL_CAPMODE 0x00000008 // Capture Mode
  5341. #define QEI_CTL_SIGMODE 0x00000004 // Signal Mode
  5342. #define QEI_CTL_SWAP 0x00000002 // Swap Signals
  5343. #define QEI_CTL_ENABLE 0x00000001 // Enable QEI
  5344. #define QEI_CTL_FILTCNT_S 16
  5345. //*****************************************************************************
  5346. //
  5347. // The following are defines for the bit fields in the QEI_O_STAT register.
  5348. //
  5349. //*****************************************************************************
  5350. #define QEI_STAT_DIRECTION 0x00000002 // Direction of Rotation
  5351. #define QEI_STAT_ERROR 0x00000001 // Error Detected
  5352. //*****************************************************************************
  5353. //
  5354. // The following are defines for the bit fields in the QEI_O_POS register.
  5355. //
  5356. //*****************************************************************************
  5357. #define QEI_POS_M 0xFFFFFFFF // Current Position Integrator
  5358. // Value
  5359. #define QEI_POS_S 0
  5360. //*****************************************************************************
  5361. //
  5362. // The following are defines for the bit fields in the QEI_O_MAXPOS register.
  5363. //
  5364. //*****************************************************************************
  5365. #define QEI_MAXPOS_M 0xFFFFFFFF // Maximum Position Integrator
  5366. // Value
  5367. #define QEI_MAXPOS_S 0
  5368. //*****************************************************************************
  5369. //
  5370. // The following are defines for the bit fields in the QEI_O_LOAD register.
  5371. //
  5372. //*****************************************************************************
  5373. #define QEI_LOAD_M 0xFFFFFFFF // Velocity Timer Load Value
  5374. #define QEI_LOAD_S 0
  5375. //*****************************************************************************
  5376. //
  5377. // The following are defines for the bit fields in the QEI_O_TIME register.
  5378. //
  5379. //*****************************************************************************
  5380. #define QEI_TIME_M 0xFFFFFFFF // Velocity Timer Current Value
  5381. #define QEI_TIME_S 0
  5382. //*****************************************************************************
  5383. //
  5384. // The following are defines for the bit fields in the QEI_O_COUNT register.
  5385. //
  5386. //*****************************************************************************
  5387. #define QEI_COUNT_M 0xFFFFFFFF // Velocity Pulse Count
  5388. #define QEI_COUNT_S 0
  5389. //*****************************************************************************
  5390. //
  5391. // The following are defines for the bit fields in the QEI_O_SPEED register.
  5392. //
  5393. //*****************************************************************************
  5394. #define QEI_SPEED_M 0xFFFFFFFF // Velocity
  5395. #define QEI_SPEED_S 0
  5396. //*****************************************************************************
  5397. //
  5398. // The following are defines for the bit fields in the QEI_O_INTEN register.
  5399. //
  5400. //*****************************************************************************
  5401. #define QEI_INTEN_ERROR 0x00000008 // Phase Error Interrupt Enable
  5402. #define QEI_INTEN_DIR 0x00000004 // Direction Change Interrupt
  5403. // Enable
  5404. #define QEI_INTEN_TIMER 0x00000002 // Timer Expires Interrupt Enable
  5405. #define QEI_INTEN_INDEX 0x00000001 // Index Pulse Detected Interrupt
  5406. // Enable
  5407. //*****************************************************************************
  5408. //
  5409. // The following are defines for the bit fields in the QEI_O_RIS register.
  5410. //
  5411. //*****************************************************************************
  5412. #define QEI_RIS_ERROR 0x00000008 // Phase Error Detected
  5413. #define QEI_RIS_DIR 0x00000004 // Direction Change Detected
  5414. #define QEI_RIS_TIMER 0x00000002 // Velocity Timer Expired
  5415. #define QEI_RIS_INDEX 0x00000001 // Index Pulse Asserted
  5416. //*****************************************************************************
  5417. //
  5418. // The following are defines for the bit fields in the QEI_O_ISC register.
  5419. //
  5420. //*****************************************************************************
  5421. #define QEI_ISC_ERROR 0x00000008 // Phase Error Interrupt
  5422. #define QEI_ISC_DIR 0x00000004 // Direction Change Interrupt
  5423. #define QEI_ISC_TIMER 0x00000002 // Velocity Timer Expired Interrupt
  5424. #define QEI_ISC_INDEX 0x00000001 // Index Pulse Interrupt
  5425. //*****************************************************************************
  5426. //
  5427. // The following are defines for the bit fields in the TIMER_O_CFG register.
  5428. //
  5429. //*****************************************************************************
  5430. #define TIMER_CFG_M 0x00000007 // GPTM Configuration
  5431. #define TIMER_CFG_32_BIT_TIMER 0x00000000 // For a 16/32-bit timer, this
  5432. // value selects the 32-bit timer
  5433. // configuration
  5434. #define TIMER_CFG_32_BIT_RTC 0x00000001 // For a 16/32-bit timer, this
  5435. // value selects the 32-bit
  5436. // real-time clock (RTC) counter
  5437. // configuration
  5438. #define TIMER_CFG_16_BIT 0x00000004 // For a 16/32-bit timer, this
  5439. // value selects the 16-bit timer
  5440. // configuration
  5441. //*****************************************************************************
  5442. //
  5443. // The following are defines for the bit fields in the TIMER_O_TAMR register.
  5444. //
  5445. //*****************************************************************************
  5446. #define TIMER_TAMR_TCACT_M 0x0000E000 // Timer Compare Action Select
  5447. #define TIMER_TAMR_TCACT_NONE 0x00000000 // Disable compare operations
  5448. #define TIMER_TAMR_TCACT_TOGGLE 0x00002000 // Toggle State on Time-Out
  5449. #define TIMER_TAMR_TCACT_CLRTO 0x00004000 // Clear CCP on Time-Out
  5450. #define TIMER_TAMR_TCACT_SETTO 0x00006000 // Set CCP on Time-Out
  5451. #define TIMER_TAMR_TCACT_SETTOGTO \
  5452. 0x00008000 // Set CCP immediately and toggle
  5453. // on Time-Out
  5454. #define TIMER_TAMR_TCACT_CLRTOGTO \
  5455. 0x0000A000 // Clear CCP immediately and toggle
  5456. // on Time-Out
  5457. #define TIMER_TAMR_TCACT_SETCLRTO \
  5458. 0x0000C000 // Set CCP immediately and clear on
  5459. // Time-Out
  5460. #define TIMER_TAMR_TCACT_CLRSETTO \
  5461. 0x0000E000 // Clear CCP immediately and set on
  5462. // Time-Out
  5463. #define TIMER_TAMR_TACINTD 0x00001000 // One-shot/Periodic Interrupt
  5464. // Disable
  5465. #define TIMER_TAMR_TAPLO 0x00000800 // GPTM Timer A PWM Legacy
  5466. // Operation
  5467. #define TIMER_TAMR_TAMRSU 0x00000400 // GPTM Timer A Match Register
  5468. // Update
  5469. #define TIMER_TAMR_TAPWMIE 0x00000200 // GPTM Timer A PWM Interrupt
  5470. // Enable
  5471. #define TIMER_TAMR_TAILD 0x00000100 // GPTM Timer A Interval Load Write
  5472. #define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode
  5473. #define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger
  5474. #define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
  5475. // Enable
  5476. #define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction
  5477. #define TIMER_TAMR_TAAMS 0x00000008 // GPTM Timer A Alternate Mode
  5478. // Select
  5479. #define TIMER_TAMR_TACMR 0x00000004 // GPTM Timer A Capture Mode
  5480. #define TIMER_TAMR_TAMR_M 0x00000003 // GPTM Timer A Mode
  5481. #define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode
  5482. #define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode
  5483. #define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode
  5484. //*****************************************************************************
  5485. //
  5486. // The following are defines for the bit fields in the TIMER_O_TBMR register.
  5487. //
  5488. //*****************************************************************************
  5489. #define TIMER_TBMR_TCACT_M 0x0000E000 // Timer Compare Action Select
  5490. #define TIMER_TBMR_TCACT_NONE 0x00000000 // Disable compare operations
  5491. #define TIMER_TBMR_TCACT_TOGGLE 0x00002000 // Toggle State on Time-Out
  5492. #define TIMER_TBMR_TCACT_CLRTO 0x00004000 // Clear CCP on Time-Out
  5493. #define TIMER_TBMR_TCACT_SETTO 0x00006000 // Set CCP on Time-Out
  5494. #define TIMER_TBMR_TCACT_SETTOGTO \
  5495. 0x00008000 // Set CCP immediately and toggle
  5496. // on Time-Out
  5497. #define TIMER_TBMR_TCACT_CLRTOGTO \
  5498. 0x0000A000 // Clear CCP immediately and toggle
  5499. // on Time-Out
  5500. #define TIMER_TBMR_TCACT_SETCLRTO \
  5501. 0x0000C000 // Set CCP immediately and clear on
  5502. // Time-Out
  5503. #define TIMER_TBMR_TCACT_CLRSETTO \
  5504. 0x0000E000 // Clear CCP immediately and set on
  5505. // Time-Out
  5506. #define TIMER_TBMR_TBCINTD 0x00001000 // One-Shot/Periodic Interrupt
  5507. // Disable
  5508. #define TIMER_TBMR_TBPLO 0x00000800 // GPTM Timer B PWM Legacy
  5509. // Operation
  5510. #define TIMER_TBMR_TBMRSU 0x00000400 // GPTM Timer B Match Register
  5511. // Update
  5512. #define TIMER_TBMR_TBPWMIE 0x00000200 // GPTM Timer B PWM Interrupt
  5513. // Enable
  5514. #define TIMER_TBMR_TBILD 0x00000100 // GPTM Timer B Interval Load Write
  5515. #define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode
  5516. #define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger
  5517. #define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
  5518. // Enable
  5519. #define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction
  5520. #define TIMER_TBMR_TBAMS 0x00000008 // GPTM Timer B Alternate Mode
  5521. // Select
  5522. #define TIMER_TBMR_TBCMR 0x00000004 // GPTM Timer B Capture Mode
  5523. #define TIMER_TBMR_TBMR_M 0x00000003 // GPTM Timer B Mode
  5524. #define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode
  5525. #define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode
  5526. #define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode
  5527. //*****************************************************************************
  5528. //
  5529. // The following are defines for the bit fields in the TIMER_O_CTL register.
  5530. //
  5531. //*****************************************************************************
  5532. #define TIMER_CTL_TBPWML 0x00004000 // GPTM Timer B PWM Output Level
  5533. #define TIMER_CTL_TBOTE 0x00002000 // GPTM Timer B Output Trigger
  5534. // Enable
  5535. #define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM Timer B Event Mode
  5536. #define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge
  5537. #define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge
  5538. #define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges
  5539. #define TIMER_CTL_TBSTALL 0x00000200 // GPTM Timer B Stall Enable
  5540. #define TIMER_CTL_TBEN 0x00000100 // GPTM Timer B Enable
  5541. #define TIMER_CTL_TAPWML 0x00000040 // GPTM Timer A PWM Output Level
  5542. #define TIMER_CTL_TAOTE 0x00000020 // GPTM Timer A Output Trigger
  5543. // Enable
  5544. #define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Stall Enable
  5545. #define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM Timer A Event Mode
  5546. #define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge
  5547. #define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge
  5548. #define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges
  5549. #define TIMER_CTL_TASTALL 0x00000002 // GPTM Timer A Stall Enable
  5550. #define TIMER_CTL_TAEN 0x00000001 // GPTM Timer A Enable
  5551. //*****************************************************************************
  5552. //
  5553. // The following are defines for the bit fields in the TIMER_O_SYNC register.
  5554. //
  5555. //*****************************************************************************
  5556. #define TIMER_SYNC_SYNCT7_M 0x0000C000 // Synchronize GPTM Timer 7
  5557. #define TIMER_SYNC_SYNCT7_NONE 0x00000000 // GPT7 is not affected
  5558. #define TIMER_SYNC_SYNCT7_TA 0x00004000 // A timeout event for Timer A of
  5559. // GPTM7 is triggered
  5560. #define TIMER_SYNC_SYNCT7_TB 0x00008000 // A timeout event for Timer B of
  5561. // GPTM7 is triggered
  5562. #define TIMER_SYNC_SYNCT7_TATB 0x0000C000 // A timeout event for both Timer A
  5563. // and Timer B of GPTM7 is
  5564. // triggered
  5565. #define TIMER_SYNC_SYNCT6_M 0x00003000 // Synchronize GPTM Timer 6
  5566. #define TIMER_SYNC_SYNCT6_NONE 0x00000000 // GPTM6 is not affected
  5567. #define TIMER_SYNC_SYNCT6_TA 0x00001000 // A timeout event for Timer A of
  5568. // GPTM6 is triggered
  5569. #define TIMER_SYNC_SYNCT6_TB 0x00002000 // A timeout event for Timer B of
  5570. // GPTM6 is triggered
  5571. #define TIMER_SYNC_SYNCT6_TATB 0x00003000 // A timeout event for both Timer A
  5572. // and Timer B of GPTM6 is
  5573. // triggered
  5574. #define TIMER_SYNC_SYNCT5_M 0x00000C00 // Synchronize GPTM Timer 5
  5575. #define TIMER_SYNC_SYNCT5_NONE 0x00000000 // GPTM5 is not affected
  5576. #define TIMER_SYNC_SYNCT5_TA 0x00000400 // A timeout event for Timer A of
  5577. // GPTM5 is triggered
  5578. #define TIMER_SYNC_SYNCT5_TB 0x00000800 // A timeout event for Timer B of
  5579. // GPTM5 is triggered
  5580. #define TIMER_SYNC_SYNCT5_TATB 0x00000C00 // A timeout event for both Timer A
  5581. // and Timer B of GPTM5 is
  5582. // triggered
  5583. #define TIMER_SYNC_SYNCT4_M 0x00000300 // Synchronize GPTM Timer 4
  5584. #define TIMER_SYNC_SYNCT4_NONE 0x00000000 // GPTM4 is not affected
  5585. #define TIMER_SYNC_SYNCT4_TA 0x00000100 // A timeout event for Timer A of
  5586. // GPTM4 is triggered
  5587. #define TIMER_SYNC_SYNCT4_TB 0x00000200 // A timeout event for Timer B of
  5588. // GPTM4 is triggered
  5589. #define TIMER_SYNC_SYNCT4_TATB 0x00000300 // A timeout event for both Timer A
  5590. // and Timer B of GPTM4 is
  5591. // triggered
  5592. #define TIMER_SYNC_SYNCT3_M 0x000000C0 // Synchronize GPTM Timer 3
  5593. #define TIMER_SYNC_SYNCT3_NONE 0x00000000 // GPTM3 is not affected
  5594. #define TIMER_SYNC_SYNCT3_TA 0x00000040 // A timeout event for Timer A of
  5595. // GPTM3 is triggered
  5596. #define TIMER_SYNC_SYNCT3_TB 0x00000080 // A timeout event for Timer B of
  5597. // GPTM3 is triggered
  5598. #define TIMER_SYNC_SYNCT3_TATB 0x000000C0 // A timeout event for both Timer A
  5599. // and Timer B of GPTM3 is
  5600. // triggered
  5601. #define TIMER_SYNC_SYNCT2_M 0x00000030 // Synchronize GPTM Timer 2
  5602. #define TIMER_SYNC_SYNCT2_NONE 0x00000000 // GPTM2 is not affected
  5603. #define TIMER_SYNC_SYNCT2_TA 0x00000010 // A timeout event for Timer A of
  5604. // GPTM2 is triggered
  5605. #define TIMER_SYNC_SYNCT2_TB 0x00000020 // A timeout event for Timer B of
  5606. // GPTM2 is triggered
  5607. #define TIMER_SYNC_SYNCT2_TATB 0x00000030 // A timeout event for both Timer A
  5608. // and Timer B of GPTM2 is
  5609. // triggered
  5610. #define TIMER_SYNC_SYNCT1_M 0x0000000C // Synchronize GPTM Timer 1
  5611. #define TIMER_SYNC_SYNCT1_NONE 0x00000000 // GPTM1 is not affected
  5612. #define TIMER_SYNC_SYNCT1_TA 0x00000004 // A timeout event for Timer A of
  5613. // GPTM1 is triggered
  5614. #define TIMER_SYNC_SYNCT1_TB 0x00000008 // A timeout event for Timer B of
  5615. // GPTM1 is triggered
  5616. #define TIMER_SYNC_SYNCT1_TATB 0x0000000C // A timeout event for both Timer A
  5617. // and Timer B of GPTM1 is
  5618. // triggered
  5619. #define TIMER_SYNC_SYNCT0_M 0x00000003 // Synchronize GPTM Timer 0
  5620. #define TIMER_SYNC_SYNCT0_NONE 0x00000000 // GPTM0 is not affected
  5621. #define TIMER_SYNC_SYNCT0_TA 0x00000001 // A timeout event for Timer A of
  5622. // GPTM0 is triggered
  5623. #define TIMER_SYNC_SYNCT0_TB 0x00000002 // A timeout event for Timer B of
  5624. // GPTM0 is triggered
  5625. #define TIMER_SYNC_SYNCT0_TATB 0x00000003 // A timeout event for both Timer A
  5626. // and Timer B of GPTM0 is
  5627. // triggered
  5628. //*****************************************************************************
  5629. //
  5630. // The following are defines for the bit fields in the TIMER_O_IMR register.
  5631. //
  5632. //*****************************************************************************
  5633. #define TIMER_IMR_DMABIM 0x00002000 // GPTM Timer B DMA Done Interrupt
  5634. // Mask
  5635. #define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Match Interrupt
  5636. // Mask
  5637. #define TIMER_IMR_CBEIM 0x00000400 // GPTM Timer B Capture Mode Event
  5638. // Interrupt Mask
  5639. #define TIMER_IMR_CBMIM 0x00000200 // GPTM Timer B Capture Mode Match
  5640. // Interrupt Mask
  5641. #define TIMER_IMR_TBTOIM 0x00000100 // GPTM Timer B Time-Out Interrupt
  5642. // Mask
  5643. #define TIMER_IMR_DMAAIM 0x00000020 // GPTM Timer A DMA Done Interrupt
  5644. // Mask
  5645. #define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Match Interrupt
  5646. // Mask
  5647. #define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask
  5648. #define TIMER_IMR_CAEIM 0x00000004 // GPTM Timer A Capture Mode Event
  5649. // Interrupt Mask
  5650. #define TIMER_IMR_CAMIM 0x00000002 // GPTM Timer A Capture Mode Match
  5651. // Interrupt Mask
  5652. #define TIMER_IMR_TATOIM 0x00000001 // GPTM Timer A Time-Out Interrupt
  5653. // Mask
  5654. //*****************************************************************************
  5655. //
  5656. // The following are defines for the bit fields in the TIMER_O_RIS register.
  5657. //
  5658. //*****************************************************************************
  5659. #define TIMER_RIS_DMABRIS 0x00002000 // GPTM Timer B DMA Done Raw
  5660. // Interrupt Status
  5661. #define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Match Raw Interrupt
  5662. #define TIMER_RIS_CBERIS 0x00000400 // GPTM Timer B Capture Mode Event
  5663. // Raw Interrupt
  5664. #define TIMER_RIS_CBMRIS 0x00000200 // GPTM Timer B Capture Mode Match
  5665. // Raw Interrupt
  5666. #define TIMER_RIS_TBTORIS 0x00000100 // GPTM Timer B Time-Out Raw
  5667. // Interrupt
  5668. #define TIMER_RIS_DMAARIS 0x00000020 // GPTM Timer A DMA Done Raw
  5669. // Interrupt Status
  5670. #define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Match Raw Interrupt
  5671. #define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt
  5672. #define TIMER_RIS_CAERIS 0x00000004 // GPTM Timer A Capture Mode Event
  5673. // Raw Interrupt
  5674. #define TIMER_RIS_CAMRIS 0x00000002 // GPTM Timer A Capture Mode Match
  5675. // Raw Interrupt
  5676. #define TIMER_RIS_TATORIS 0x00000001 // GPTM Timer A Time-Out Raw
  5677. // Interrupt
  5678. //*****************************************************************************
  5679. //
  5680. // The following are defines for the bit fields in the TIMER_O_MIS register.
  5681. //
  5682. //*****************************************************************************
  5683. #define TIMER_MIS_DMABMIS 0x00002000 // GPTM Timer B DMA Done Masked
  5684. // Interrupt
  5685. #define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Match Masked
  5686. // Interrupt
  5687. #define TIMER_MIS_CBEMIS 0x00000400 // GPTM Timer B Capture Mode Event
  5688. // Masked Interrupt
  5689. #define TIMER_MIS_CBMMIS 0x00000200 // GPTM Timer B Capture Mode Match
  5690. // Masked Interrupt
  5691. #define TIMER_MIS_TBTOMIS 0x00000100 // GPTM Timer B Time-Out Masked
  5692. // Interrupt
  5693. #define TIMER_MIS_DMAAMIS 0x00000020 // GPTM Timer A DMA Done Masked
  5694. // Interrupt
  5695. #define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Match Masked
  5696. // Interrupt
  5697. #define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt
  5698. #define TIMER_MIS_CAEMIS 0x00000004 // GPTM Timer A Capture Mode Event
  5699. // Masked Interrupt
  5700. #define TIMER_MIS_CAMMIS 0x00000002 // GPTM Timer A Capture Mode Match
  5701. // Masked Interrupt
  5702. #define TIMER_MIS_TATOMIS 0x00000001 // GPTM Timer A Time-Out Masked
  5703. // Interrupt
  5704. //*****************************************************************************
  5705. //
  5706. // The following are defines for the bit fields in the TIMER_O_ICR register.
  5707. //
  5708. //*****************************************************************************
  5709. #define TIMER_ICR_DMABINT 0x00002000 // GPTM Timer B DMA Done Interrupt
  5710. // Clear
  5711. #define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Match Interrupt
  5712. // Clear
  5713. #define TIMER_ICR_CBECINT 0x00000400 // GPTM Timer B Capture Mode Event
  5714. // Interrupt Clear
  5715. #define TIMER_ICR_CBMCINT 0x00000200 // GPTM Timer B Capture Mode Match
  5716. // Interrupt Clear
  5717. #define TIMER_ICR_TBTOCINT 0x00000100 // GPTM Timer B Time-Out Interrupt
  5718. // Clear
  5719. #define TIMER_ICR_DMAAINT 0x00000020 // GPTM Timer A DMA Done Interrupt
  5720. // Clear
  5721. #define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Match Interrupt
  5722. // Clear
  5723. #define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear
  5724. #define TIMER_ICR_CAECINT 0x00000004 // GPTM Timer A Capture Mode Event
  5725. // Interrupt Clear
  5726. #define TIMER_ICR_CAMCINT 0x00000002 // GPTM Timer A Capture Mode Match
  5727. // Interrupt Clear
  5728. #define TIMER_ICR_TATOCINT 0x00000001 // GPTM Timer A Time-Out Raw
  5729. // Interrupt
  5730. //*****************************************************************************
  5731. //
  5732. // The following are defines for the bit fields in the TIMER_O_TAILR register.
  5733. //
  5734. //*****************************************************************************
  5735. #define TIMER_TAILR_M 0xFFFFFFFF // GPTM Timer A Interval Load
  5736. // Register
  5737. #define TIMER_TAILR_S 0
  5738. //*****************************************************************************
  5739. //
  5740. // The following are defines for the bit fields in the TIMER_O_TBILR register.
  5741. //
  5742. //*****************************************************************************
  5743. #define TIMER_TBILR_M 0xFFFFFFFF // GPTM Timer B Interval Load
  5744. // Register
  5745. #define TIMER_TBILR_S 0
  5746. //*****************************************************************************
  5747. //
  5748. // The following are defines for the bit fields in the TIMER_O_TAMATCHR
  5749. // register.
  5750. //
  5751. //*****************************************************************************
  5752. #define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF // GPTM Timer A Match Register
  5753. #define TIMER_TAMATCHR_TAMR_S 0
  5754. //*****************************************************************************
  5755. //
  5756. // The following are defines for the bit fields in the TIMER_O_TBMATCHR
  5757. // register.
  5758. //
  5759. //*****************************************************************************
  5760. #define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF // GPTM Timer B Match Register
  5761. #define TIMER_TBMATCHR_TBMR_S 0
  5762. //*****************************************************************************
  5763. //
  5764. // The following are defines for the bit fields in the TIMER_O_TAPR register.
  5765. //
  5766. //*****************************************************************************
  5767. #define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM Timer A Prescale
  5768. #define TIMER_TAPR_TAPSR_S 0
  5769. //*****************************************************************************
  5770. //
  5771. // The following are defines for the bit fields in the TIMER_O_TBPR register.
  5772. //
  5773. //*****************************************************************************
  5774. #define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM Timer B Prescale
  5775. #define TIMER_TBPR_TBPSR_S 0
  5776. //*****************************************************************************
  5777. //
  5778. // The following are defines for the bit fields in the TIMER_O_TAPMR register.
  5779. //
  5780. //*****************************************************************************
  5781. #define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match
  5782. #define TIMER_TAPMR_TAPSMR_S 0
  5783. //*****************************************************************************
  5784. //
  5785. // The following are defines for the bit fields in the TIMER_O_TBPMR register.
  5786. //
  5787. //*****************************************************************************
  5788. #define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match
  5789. #define TIMER_TBPMR_TBPSMR_S 0
  5790. //*****************************************************************************
  5791. //
  5792. // The following are defines for the bit fields in the TIMER_O_TAR register.
  5793. //
  5794. //*****************************************************************************
  5795. #define TIMER_TAR_M 0xFFFFFFFF // GPTM Timer A Register
  5796. #define TIMER_TAR_S 0
  5797. //*****************************************************************************
  5798. //
  5799. // The following are defines for the bit fields in the TIMER_O_TBR register.
  5800. //
  5801. //*****************************************************************************
  5802. #define TIMER_TBR_M 0xFFFFFFFF // GPTM Timer B Register
  5803. #define TIMER_TBR_S 0
  5804. //*****************************************************************************
  5805. //
  5806. // The following are defines for the bit fields in the TIMER_O_TAV register.
  5807. //
  5808. //*****************************************************************************
  5809. #define TIMER_TAV_M 0xFFFFFFFF // GPTM Timer A Value
  5810. #define TIMER_TAV_S 0
  5811. //*****************************************************************************
  5812. //
  5813. // The following are defines for the bit fields in the TIMER_O_TBV register.
  5814. //
  5815. //*****************************************************************************
  5816. #define TIMER_TBV_M 0xFFFFFFFF // GPTM Timer B Value
  5817. #define TIMER_TBV_S 0
  5818. //*****************************************************************************
  5819. //
  5820. // The following are defines for the bit fields in the TIMER_O_RTCPD register.
  5821. //
  5822. //*****************************************************************************
  5823. #define TIMER_RTCPD_RTCPD_M 0x0000FFFF // RTC Predivide Counter Value
  5824. #define TIMER_RTCPD_RTCPD_S 0
  5825. //*****************************************************************************
  5826. //
  5827. // The following are defines for the bit fields in the TIMER_O_TAPS register.
  5828. //
  5829. //*****************************************************************************
  5830. #define TIMER_TAPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Snapshot
  5831. #define TIMER_TAPS_PSS_S 0
  5832. //*****************************************************************************
  5833. //
  5834. // The following are defines for the bit fields in the TIMER_O_TBPS register.
  5835. //
  5836. //*****************************************************************************
  5837. #define TIMER_TBPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Value
  5838. #define TIMER_TBPS_PSS_S 0
  5839. //*****************************************************************************
  5840. //
  5841. // The following are defines for the bit fields in the TIMER_O_DMAEV register.
  5842. //
  5843. //*****************************************************************************
  5844. #define TIMER_DMAEV_TBMDMAEN 0x00000800 // GPTM B Mode Match Event DMA
  5845. // Trigger Enable
  5846. #define TIMER_DMAEV_CBEDMAEN 0x00000400 // GPTM B Capture Event DMA Trigger
  5847. // Enable
  5848. #define TIMER_DMAEV_CBMDMAEN 0x00000200 // GPTM B Capture Match Event DMA
  5849. // Trigger Enable
  5850. #define TIMER_DMAEV_TBTODMAEN 0x00000100 // GPTM B Time-Out Event DMA
  5851. // Trigger Enable
  5852. #define TIMER_DMAEV_TAMDMAEN 0x00000010 // GPTM A Mode Match Event DMA
  5853. // Trigger Enable
  5854. #define TIMER_DMAEV_RTCDMAEN 0x00000008 // GPTM A RTC Match Event DMA
  5855. // Trigger Enable
  5856. #define TIMER_DMAEV_CAEDMAEN 0x00000004 // GPTM A Capture Event DMA Trigger
  5857. // Enable
  5858. #define TIMER_DMAEV_CAMDMAEN 0x00000002 // GPTM A Capture Match Event DMA
  5859. // Trigger Enable
  5860. #define TIMER_DMAEV_TATODMAEN 0x00000001 // GPTM A Time-Out Event DMA
  5861. // Trigger Enable
  5862. //*****************************************************************************
  5863. //
  5864. // The following are defines for the bit fields in the TIMER_O_ADCEV register.
  5865. //
  5866. //*****************************************************************************
  5867. #define TIMER_ADCEV_TBMADCEN 0x00000800 // GPTM B Mode Match Event ADC
  5868. // Trigger Enable
  5869. #define TIMER_ADCEV_CBEADCEN 0x00000400 // GPTM B Capture Event ADC Trigger
  5870. // Enable
  5871. #define TIMER_ADCEV_CBMADCEN 0x00000200 // GPTM B Capture Match Event ADC
  5872. // Trigger Enable
  5873. #define TIMER_ADCEV_TBTOADCEN 0x00000100 // GPTM B Time-Out Event ADC
  5874. // Trigger Enable
  5875. #define TIMER_ADCEV_TAMADCEN 0x00000010 // GPTM A Mode Match Event ADC
  5876. // Trigger Enable
  5877. #define TIMER_ADCEV_RTCADCEN 0x00000008 // GPTM RTC Match Event ADC Trigger
  5878. // Enable
  5879. #define TIMER_ADCEV_CAEADCEN 0x00000004 // GPTM A Capture Event ADC Trigger
  5880. // Enable
  5881. #define TIMER_ADCEV_CAMADCEN 0x00000002 // GPTM A Capture Match Event ADC
  5882. // Trigger Enable
  5883. #define TIMER_ADCEV_TATOADCEN 0x00000001 // GPTM A Time-Out Event ADC
  5884. // Trigger Enable
  5885. //*****************************************************************************
  5886. //
  5887. // The following are defines for the bit fields in the TIMER_O_PP register.
  5888. //
  5889. //*****************************************************************************
  5890. #define TIMER_PP_ALTCLK 0x00000040 // Alternate Clock Source
  5891. #define TIMER_PP_SYNCCNT 0x00000020 // Synchronize Start
  5892. #define TIMER_PP_CHAIN 0x00000010 // Chain with Other Timers
  5893. #define TIMER_PP_SIZE_M 0x0000000F // Count Size
  5894. #define TIMER_PP_SIZE_16 0x00000000 // Timer A and Timer B counters are
  5895. // 16 bits each with an 8-bit
  5896. // prescale counter
  5897. #define TIMER_PP_SIZE_32 0x00000001 // Timer A and Timer B counters are
  5898. // 32 bits each with a 16-bit
  5899. // prescale counter
  5900. //*****************************************************************************
  5901. //
  5902. // The following are defines for the bit fields in the TIMER_O_CC register.
  5903. //
  5904. //*****************************************************************************
  5905. #define TIMER_CC_ALTCLK 0x00000001 // Alternate Clock Source
  5906. //*****************************************************************************
  5907. //
  5908. // The following are defines for the bit fields in the ADC_O_ACTSS register.
  5909. //
  5910. //*****************************************************************************
  5911. #define ADC_ACTSS_BUSY 0x00010000 // ADC Busy
  5912. #define ADC_ACTSS_ADEN3 0x00000800 // ADC SS3 DMA Enable
  5913. #define ADC_ACTSS_ADEN2 0x00000400 // ADC SS2 DMA Enable
  5914. #define ADC_ACTSS_ADEN1 0x00000200 // ADC SS1 DMA Enable
  5915. #define ADC_ACTSS_ADEN0 0x00000100 // ADC SS1 DMA Enable
  5916. #define ADC_ACTSS_ASEN3 0x00000008 // ADC SS3 Enable
  5917. #define ADC_ACTSS_ASEN2 0x00000004 // ADC SS2 Enable
  5918. #define ADC_ACTSS_ASEN1 0x00000002 // ADC SS1 Enable
  5919. #define ADC_ACTSS_ASEN0 0x00000001 // ADC SS0 Enable
  5920. //*****************************************************************************
  5921. //
  5922. // The following are defines for the bit fields in the ADC_O_RIS register.
  5923. //
  5924. //*****************************************************************************
  5925. #define ADC_RIS_INRDC 0x00010000 // Digital Comparator Raw Interrupt
  5926. // Status
  5927. #define ADC_RIS_DMAINR3 0x00000800 // SS3 DMA Raw Interrupt Status
  5928. #define ADC_RIS_DMAINR2 0x00000400 // SS2 DMA Raw Interrupt Status
  5929. #define ADC_RIS_DMAINR1 0x00000200 // SS1 DMA Raw Interrupt Status
  5930. #define ADC_RIS_DMAINR0 0x00000100 // SS0 DMA Raw Interrupt Status
  5931. #define ADC_RIS_INR3 0x00000008 // SS3 Raw Interrupt Status
  5932. #define ADC_RIS_INR2 0x00000004 // SS2 Raw Interrupt Status
  5933. #define ADC_RIS_INR1 0x00000002 // SS1 Raw Interrupt Status
  5934. #define ADC_RIS_INR0 0x00000001 // SS0 Raw Interrupt Status
  5935. //*****************************************************************************
  5936. //
  5937. // The following are defines for the bit fields in the ADC_O_IM register.
  5938. //
  5939. //*****************************************************************************
  5940. #define ADC_IM_DCONSS3 0x00080000 // Digital Comparator Interrupt on
  5941. // SS3
  5942. #define ADC_IM_DCONSS2 0x00040000 // Digital Comparator Interrupt on
  5943. // SS2
  5944. #define ADC_IM_DCONSS1 0x00020000 // Digital Comparator Interrupt on
  5945. // SS1
  5946. #define ADC_IM_DCONSS0 0x00010000 // Digital Comparator Interrupt on
  5947. // SS0
  5948. #define ADC_IM_DMAMASK3 0x00000800 // SS3 DMA Interrupt Mask
  5949. #define ADC_IM_DMAMASK2 0x00000400 // SS2 DMA Interrupt Mask
  5950. #define ADC_IM_DMAMASK1 0x00000200 // SS1 DMA Interrupt Mask
  5951. #define ADC_IM_DMAMASK0 0x00000100 // SS0 DMA Interrupt Mask
  5952. #define ADC_IM_MASK3 0x00000008 // SS3 Interrupt Mask
  5953. #define ADC_IM_MASK2 0x00000004 // SS2 Interrupt Mask
  5954. #define ADC_IM_MASK1 0x00000002 // SS1 Interrupt Mask
  5955. #define ADC_IM_MASK0 0x00000001 // SS0 Interrupt Mask
  5956. //*****************************************************************************
  5957. //
  5958. // The following are defines for the bit fields in the ADC_O_ISC register.
  5959. //
  5960. //*****************************************************************************
  5961. #define ADC_ISC_DCINSS3 0x00080000 // Digital Comparator Interrupt
  5962. // Status on SS3
  5963. #define ADC_ISC_DCINSS2 0x00040000 // Digital Comparator Interrupt
  5964. // Status on SS2
  5965. #define ADC_ISC_DCINSS1 0x00020000 // Digital Comparator Interrupt
  5966. // Status on SS1
  5967. #define ADC_ISC_DCINSS0 0x00010000 // Digital Comparator Interrupt
  5968. // Status on SS0
  5969. #define ADC_ISC_DMAIN3 0x00000800 // SS3 DMA Interrupt Status and
  5970. // Clear
  5971. #define ADC_ISC_DMAIN2 0x00000400 // SS2 DMA Interrupt Status and
  5972. // Clear
  5973. #define ADC_ISC_DMAIN1 0x00000200 // SS1 DMA Interrupt Status and
  5974. // Clear
  5975. #define ADC_ISC_DMAIN0 0x00000100 // SS0 DMA Interrupt Status and
  5976. // Clear
  5977. #define ADC_ISC_IN3 0x00000008 // SS3 Interrupt Status and Clear
  5978. #define ADC_ISC_IN2 0x00000004 // SS2 Interrupt Status and Clear
  5979. #define ADC_ISC_IN1 0x00000002 // SS1 Interrupt Status and Clear
  5980. #define ADC_ISC_IN0 0x00000001 // SS0 Interrupt Status and Clear
  5981. //*****************************************************************************
  5982. //
  5983. // The following are defines for the bit fields in the ADC_O_OSTAT register.
  5984. //
  5985. //*****************************************************************************
  5986. #define ADC_OSTAT_OV3 0x00000008 // SS3 FIFO Overflow
  5987. #define ADC_OSTAT_OV2 0x00000004 // SS2 FIFO Overflow
  5988. #define ADC_OSTAT_OV1 0x00000002 // SS1 FIFO Overflow
  5989. #define ADC_OSTAT_OV0 0x00000001 // SS0 FIFO Overflow
  5990. //*****************************************************************************
  5991. //
  5992. // The following are defines for the bit fields in the ADC_O_EMUX register.
  5993. //
  5994. //*****************************************************************************
  5995. #define ADC_EMUX_EM3_M 0x0000F000 // SS3 Trigger Select
  5996. #define ADC_EMUX_EM3_PROCESSOR 0x00000000 // Processor (default)
  5997. #define ADC_EMUX_EM3_COMP0 0x00001000 // Analog Comparator 0
  5998. #define ADC_EMUX_EM3_COMP1 0x00002000 // Analog Comparator 1
  5999. #define ADC_EMUX_EM3_COMP2 0x00003000 // Analog Comparator 2
  6000. #define ADC_EMUX_EM3_EXTERNAL 0x00004000 // External (GPIO Pins)
  6001. #define ADC_EMUX_EM3_TIMER 0x00005000 // Timer
  6002. #define ADC_EMUX_EM3_PWM0 0x00006000 // PWM generator 0
  6003. #define ADC_EMUX_EM3_PWM1 0x00007000 // PWM generator 1
  6004. #define ADC_EMUX_EM3_PWM2 0x00008000 // PWM generator 2
  6005. #define ADC_EMUX_EM3_PWM3 0x00009000 // PWM generator 3
  6006. #define ADC_EMUX_EM3_NEVER 0x0000E000 // Never Trigger
  6007. #define ADC_EMUX_EM3_ALWAYS 0x0000F000 // Always (continuously sample)
  6008. #define ADC_EMUX_EM2_M 0x00000F00 // SS2 Trigger Select
  6009. #define ADC_EMUX_EM2_PROCESSOR 0x00000000 // Processor (default)
  6010. #define ADC_EMUX_EM2_COMP0 0x00000100 // Analog Comparator 0
  6011. #define ADC_EMUX_EM2_COMP1 0x00000200 // Analog Comparator 1
  6012. #define ADC_EMUX_EM2_COMP2 0x00000300 // Analog Comparator 2
  6013. #define ADC_EMUX_EM2_EXTERNAL 0x00000400 // External (GPIO Pins)
  6014. #define ADC_EMUX_EM2_TIMER 0x00000500 // Timer
  6015. #define ADC_EMUX_EM2_PWM0 0x00000600 // PWM generator 0
  6016. #define ADC_EMUX_EM2_PWM1 0x00000700 // PWM generator 1
  6017. #define ADC_EMUX_EM2_PWM2 0x00000800 // PWM generator 2
  6018. #define ADC_EMUX_EM2_PWM3 0x00000900 // PWM generator 3
  6019. #define ADC_EMUX_EM2_NEVER 0x00000E00 // Never Trigger
  6020. #define ADC_EMUX_EM2_ALWAYS 0x00000F00 // Always (continuously sample)
  6021. #define ADC_EMUX_EM1_M 0x000000F0 // SS1 Trigger Select
  6022. #define ADC_EMUX_EM1_PROCESSOR 0x00000000 // Processor (default)
  6023. #define ADC_EMUX_EM1_COMP0 0x00000010 // Analog Comparator 0
  6024. #define ADC_EMUX_EM1_COMP1 0x00000020 // Analog Comparator 1
  6025. #define ADC_EMUX_EM1_COMP2 0x00000030 // Analog Comparator 2
  6026. #define ADC_EMUX_EM1_EXTERNAL 0x00000040 // External (GPIO Pins)
  6027. #define ADC_EMUX_EM1_TIMER 0x00000050 // Timer
  6028. #define ADC_EMUX_EM1_PWM0 0x00000060 // PWM generator 0
  6029. #define ADC_EMUX_EM1_PWM1 0x00000070 // PWM generator 1
  6030. #define ADC_EMUX_EM1_PWM2 0x00000080 // PWM generator 2
  6031. #define ADC_EMUX_EM1_PWM3 0x00000090 // PWM generator 3
  6032. #define ADC_EMUX_EM1_NEVER 0x000000E0 // Never Trigger
  6033. #define ADC_EMUX_EM1_ALWAYS 0x000000F0 // Always (continuously sample)
  6034. #define ADC_EMUX_EM0_M 0x0000000F // SS0 Trigger Select
  6035. #define ADC_EMUX_EM0_PROCESSOR 0x00000000 // Processor (default)
  6036. #define ADC_EMUX_EM0_COMP0 0x00000001 // Analog Comparator 0
  6037. #define ADC_EMUX_EM0_COMP1 0x00000002 // Analog Comparator 1
  6038. #define ADC_EMUX_EM0_COMP2 0x00000003 // Analog Comparator 2
  6039. #define ADC_EMUX_EM0_EXTERNAL 0x00000004 // External (GPIO Pins)
  6040. #define ADC_EMUX_EM0_TIMER 0x00000005 // Timer
  6041. #define ADC_EMUX_EM0_PWM0 0x00000006 // PWM generator 0
  6042. #define ADC_EMUX_EM0_PWM1 0x00000007 // PWM generator 1
  6043. #define ADC_EMUX_EM0_PWM2 0x00000008 // PWM generator 2
  6044. #define ADC_EMUX_EM0_PWM3 0x00000009 // PWM generator 3
  6045. #define ADC_EMUX_EM0_NEVER 0x0000000E // Never Trigger
  6046. #define ADC_EMUX_EM0_ALWAYS 0x0000000F // Always (continuously sample)
  6047. //*****************************************************************************
  6048. //
  6049. // The following are defines for the bit fields in the ADC_O_USTAT register.
  6050. //
  6051. //*****************************************************************************
  6052. #define ADC_USTAT_UV3 0x00000008 // SS3 FIFO Underflow
  6053. #define ADC_USTAT_UV2 0x00000004 // SS2 FIFO Underflow
  6054. #define ADC_USTAT_UV1 0x00000002 // SS1 FIFO Underflow
  6055. #define ADC_USTAT_UV0 0x00000001 // SS0 FIFO Underflow
  6056. //*****************************************************************************
  6057. //
  6058. // The following are defines for the bit fields in the ADC_O_TSSEL register.
  6059. //
  6060. //*****************************************************************************
  6061. #define ADC_TSSEL_PS3_M 0x30000000 // Generator 3 PWM Module Trigger
  6062. // Select
  6063. #define ADC_TSSEL_PS3_0 0x00000000 // Use Generator 3 (and its
  6064. // trigger) in PWM module 0
  6065. #define ADC_TSSEL_PS2_M 0x00300000 // Generator 2 PWM Module Trigger
  6066. // Select
  6067. #define ADC_TSSEL_PS2_0 0x00000000 // Use Generator 2 (and its
  6068. // trigger) in PWM module 0
  6069. #define ADC_TSSEL_PS1_M 0x00003000 // Generator 1 PWM Module Trigger
  6070. // Select
  6071. #define ADC_TSSEL_PS1_0 0x00000000 // Use Generator 1 (and its
  6072. // trigger) in PWM module 0
  6073. #define ADC_TSSEL_PS0_M 0x00000030 // Generator 0 PWM Module Trigger
  6074. // Select
  6075. #define ADC_TSSEL_PS0_0 0x00000000 // Use Generator 0 (and its
  6076. // trigger) in PWM module 0
  6077. //*****************************************************************************
  6078. //
  6079. // The following are defines for the bit fields in the ADC_O_SSPRI register.
  6080. //
  6081. //*****************************************************************************
  6082. #define ADC_SSPRI_SS3_M 0x00003000 // SS3 Priority
  6083. #define ADC_SSPRI_SS2_M 0x00000300 // SS2 Priority
  6084. #define ADC_SSPRI_SS1_M 0x00000030 // SS1 Priority
  6085. #define ADC_SSPRI_SS0_M 0x00000003 // SS0 Priority
  6086. //*****************************************************************************
  6087. //
  6088. // The following are defines for the bit fields in the ADC_O_SPC register.
  6089. //
  6090. //*****************************************************************************
  6091. #define ADC_SPC_PHASE_M 0x0000000F // Phase Difference
  6092. #define ADC_SPC_PHASE_0 0x00000000 // ADC sample lags by 0.0
  6093. #define ADC_SPC_PHASE_22_5 0x00000001 // ADC sample lags by 22.5
  6094. #define ADC_SPC_PHASE_45 0x00000002 // ADC sample lags by 45.0
  6095. #define ADC_SPC_PHASE_67_5 0x00000003 // ADC sample lags by 67.5
  6096. #define ADC_SPC_PHASE_90 0x00000004 // ADC sample lags by 90.0
  6097. #define ADC_SPC_PHASE_112_5 0x00000005 // ADC sample lags by 112.5
  6098. #define ADC_SPC_PHASE_135 0x00000006 // ADC sample lags by 135.0
  6099. #define ADC_SPC_PHASE_157_5 0x00000007 // ADC sample lags by 157.5
  6100. #define ADC_SPC_PHASE_180 0x00000008 // ADC sample lags by 180.0
  6101. #define ADC_SPC_PHASE_202_5 0x00000009 // ADC sample lags by 202.5
  6102. #define ADC_SPC_PHASE_225 0x0000000A // ADC sample lags by 225.0
  6103. #define ADC_SPC_PHASE_247_5 0x0000000B // ADC sample lags by 247.5
  6104. #define ADC_SPC_PHASE_270 0x0000000C // ADC sample lags by 270.0
  6105. #define ADC_SPC_PHASE_292_5 0x0000000D // ADC sample lags by 292.5
  6106. #define ADC_SPC_PHASE_315 0x0000000E // ADC sample lags by 315.0
  6107. #define ADC_SPC_PHASE_337_5 0x0000000F // ADC sample lags by 337.5
  6108. //*****************************************************************************
  6109. //
  6110. // The following are defines for the bit fields in the ADC_O_PSSI register.
  6111. //
  6112. //*****************************************************************************
  6113. #define ADC_PSSI_GSYNC 0x80000000 // Global Synchronize
  6114. #define ADC_PSSI_SYNCWAIT 0x08000000 // Synchronize Wait
  6115. #define ADC_PSSI_SS3 0x00000008 // SS3 Initiate
  6116. #define ADC_PSSI_SS2 0x00000004 // SS2 Initiate
  6117. #define ADC_PSSI_SS1 0x00000002 // SS1 Initiate
  6118. #define ADC_PSSI_SS0 0x00000001 // SS0 Initiate
  6119. //*****************************************************************************
  6120. //
  6121. // The following are defines for the bit fields in the ADC_O_SAC register.
  6122. //
  6123. //*****************************************************************************
  6124. #define ADC_SAC_AVG_M 0x00000007 // Hardware Averaging Control
  6125. #define ADC_SAC_AVG_OFF 0x00000000 // No hardware oversampling
  6126. #define ADC_SAC_AVG_2X 0x00000001 // 2x hardware oversampling
  6127. #define ADC_SAC_AVG_4X 0x00000002 // 4x hardware oversampling
  6128. #define ADC_SAC_AVG_8X 0x00000003 // 8x hardware oversampling
  6129. #define ADC_SAC_AVG_16X 0x00000004 // 16x hardware oversampling
  6130. #define ADC_SAC_AVG_32X 0x00000005 // 32x hardware oversampling
  6131. #define ADC_SAC_AVG_64X 0x00000006 // 64x hardware oversampling
  6132. //*****************************************************************************
  6133. //
  6134. // The following are defines for the bit fields in the ADC_O_DCISC register.
  6135. //
  6136. //*****************************************************************************
  6137. #define ADC_DCISC_DCINT7 0x00000080 // Digital Comparator 7 Interrupt
  6138. // Status and Clear
  6139. #define ADC_DCISC_DCINT6 0x00000040 // Digital Comparator 6 Interrupt
  6140. // Status and Clear
  6141. #define ADC_DCISC_DCINT5 0x00000020 // Digital Comparator 5 Interrupt
  6142. // Status and Clear
  6143. #define ADC_DCISC_DCINT4 0x00000010 // Digital Comparator 4 Interrupt
  6144. // Status and Clear
  6145. #define ADC_DCISC_DCINT3 0x00000008 // Digital Comparator 3 Interrupt
  6146. // Status and Clear
  6147. #define ADC_DCISC_DCINT2 0x00000004 // Digital Comparator 2 Interrupt
  6148. // Status and Clear
  6149. #define ADC_DCISC_DCINT1 0x00000002 // Digital Comparator 1 Interrupt
  6150. // Status and Clear
  6151. #define ADC_DCISC_DCINT0 0x00000001 // Digital Comparator 0 Interrupt
  6152. // Status and Clear
  6153. //*****************************************************************************
  6154. //
  6155. // The following are defines for the bit fields in the ADC_O_CTL register.
  6156. //
  6157. //*****************************************************************************
  6158. #define ADC_CTL_DITHER 0x00000040 // Dither Mode Enable
  6159. #define ADC_CTL_VREF_M 0x00000001 // Voltage Reference Select
  6160. #define ADC_CTL_VREF_INTERNAL 0x00000000 // VDDA and GNDA are the voltage
  6161. // references
  6162. #define ADC_CTL_VREF_EXT_3V 0x00000001 // The external VREFA+ and VREFA-
  6163. // inputs are the voltage
  6164. // references
  6165. //*****************************************************************************
  6166. //
  6167. // The following are defines for the bit fields in the ADC_O_SSMUX0 register.
  6168. //
  6169. //*****************************************************************************
  6170. #define ADC_SSMUX0_MUX7_M 0xF0000000 // 8th Sample Input Select
  6171. #define ADC_SSMUX0_MUX6_M 0x0F000000 // 7th Sample Input Select
  6172. #define ADC_SSMUX0_MUX5_M 0x00F00000 // 6th Sample Input Select
  6173. #define ADC_SSMUX0_MUX4_M 0x000F0000 // 5th Sample Input Select
  6174. #define ADC_SSMUX0_MUX3_M 0x0000F000 // 4th Sample Input Select
  6175. #define ADC_SSMUX0_MUX2_M 0x00000F00 // 3rd Sample Input Select
  6176. #define ADC_SSMUX0_MUX1_M 0x000000F0 // 2nd Sample Input Select
  6177. #define ADC_SSMUX0_MUX0_M 0x0000000F // 1st Sample Input Select
  6178. #define ADC_SSMUX0_MUX7_S 28
  6179. #define ADC_SSMUX0_MUX6_S 24
  6180. #define ADC_SSMUX0_MUX5_S 20
  6181. #define ADC_SSMUX0_MUX4_S 16
  6182. #define ADC_SSMUX0_MUX3_S 12
  6183. #define ADC_SSMUX0_MUX2_S 8
  6184. #define ADC_SSMUX0_MUX1_S 4
  6185. #define ADC_SSMUX0_MUX0_S 0
  6186. //*****************************************************************************
  6187. //
  6188. // The following are defines for the bit fields in the ADC_O_SSCTL0 register.
  6189. //
  6190. //*****************************************************************************
  6191. #define ADC_SSCTL0_TS7 0x80000000 // 8th Sample Temp Sensor Select
  6192. #define ADC_SSCTL0_IE7 0x40000000 // 8th Sample Interrupt Enable
  6193. #define ADC_SSCTL0_END7 0x20000000 // 8th Sample is End of Sequence
  6194. #define ADC_SSCTL0_D7 0x10000000 // 8th Sample Differential Input
  6195. // Select
  6196. #define ADC_SSCTL0_TS6 0x08000000 // 7th Sample Temp Sensor Select
  6197. #define ADC_SSCTL0_IE6 0x04000000 // 7th Sample Interrupt Enable
  6198. #define ADC_SSCTL0_END6 0x02000000 // 7th Sample is End of Sequence
  6199. #define ADC_SSCTL0_D6 0x01000000 // 7th Sample Differential Input
  6200. // Select
  6201. #define ADC_SSCTL0_TS5 0x00800000 // 6th Sample Temp Sensor Select
  6202. #define ADC_SSCTL0_IE5 0x00400000 // 6th Sample Interrupt Enable
  6203. #define ADC_SSCTL0_END5 0x00200000 // 6th Sample is End of Sequence
  6204. #define ADC_SSCTL0_D5 0x00100000 // 6th Sample Differential Input
  6205. // Select
  6206. #define ADC_SSCTL0_TS4 0x00080000 // 5th Sample Temp Sensor Select
  6207. #define ADC_SSCTL0_IE4 0x00040000 // 5th Sample Interrupt Enable
  6208. #define ADC_SSCTL0_END4 0x00020000 // 5th Sample is End of Sequence
  6209. #define ADC_SSCTL0_D4 0x00010000 // 5th Sample Differential Input
  6210. // Select
  6211. #define ADC_SSCTL0_TS3 0x00008000 // 4th Sample Temp Sensor Select
  6212. #define ADC_SSCTL0_IE3 0x00004000 // 4th Sample Interrupt Enable
  6213. #define ADC_SSCTL0_END3 0x00002000 // 4th Sample is End of Sequence
  6214. #define ADC_SSCTL0_D3 0x00001000 // 4th Sample Differential Input
  6215. // Select
  6216. #define ADC_SSCTL0_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  6217. #define ADC_SSCTL0_IE2 0x00000400 // 3rd Sample Interrupt Enable
  6218. #define ADC_SSCTL0_END2 0x00000200 // 3rd Sample is End of Sequence
  6219. #define ADC_SSCTL0_D2 0x00000100 // 3rd Sample Differential Input
  6220. // Select
  6221. #define ADC_SSCTL0_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  6222. #define ADC_SSCTL0_IE1 0x00000040 // 2nd Sample Interrupt Enable
  6223. #define ADC_SSCTL0_END1 0x00000020 // 2nd Sample is End of Sequence
  6224. #define ADC_SSCTL0_D1 0x00000010 // 2nd Sample Differential Input
  6225. // Select
  6226. #define ADC_SSCTL0_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6227. #define ADC_SSCTL0_IE0 0x00000004 // 1st Sample Interrupt Enable
  6228. #define ADC_SSCTL0_END0 0x00000002 // 1st Sample is End of Sequence
  6229. #define ADC_SSCTL0_D0 0x00000001 // 1st Sample Differential Input
  6230. // Select
  6231. //*****************************************************************************
  6232. //
  6233. // The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
  6234. //
  6235. //*****************************************************************************
  6236. #define ADC_SSFIFO0_DATA_M 0x00000FFF // Conversion Result Data
  6237. #define ADC_SSFIFO0_DATA_S 0
  6238. //*****************************************************************************
  6239. //
  6240. // The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
  6241. //
  6242. //*****************************************************************************
  6243. #define ADC_SSFSTAT0_FULL 0x00001000 // FIFO Full
  6244. #define ADC_SSFSTAT0_EMPTY 0x00000100 // FIFO Empty
  6245. #define ADC_SSFSTAT0_HPTR_M 0x000000F0 // FIFO Head Pointer
  6246. #define ADC_SSFSTAT0_TPTR_M 0x0000000F // FIFO Tail Pointer
  6247. #define ADC_SSFSTAT0_HPTR_S 4
  6248. #define ADC_SSFSTAT0_TPTR_S 0
  6249. //*****************************************************************************
  6250. //
  6251. // The following are defines for the bit fields in the ADC_O_SSOP0 register.
  6252. //
  6253. //*****************************************************************************
  6254. #define ADC_SSOP0_S7DCOP 0x10000000 // Sample 7 Digital Comparator
  6255. // Operation
  6256. #define ADC_SSOP0_S6DCOP 0x01000000 // Sample 6 Digital Comparator
  6257. // Operation
  6258. #define ADC_SSOP0_S5DCOP 0x00100000 // Sample 5 Digital Comparator
  6259. // Operation
  6260. #define ADC_SSOP0_S4DCOP 0x00010000 // Sample 4 Digital Comparator
  6261. // Operation
  6262. #define ADC_SSOP0_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  6263. // Operation
  6264. #define ADC_SSOP0_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  6265. // Operation
  6266. #define ADC_SSOP0_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  6267. // Operation
  6268. #define ADC_SSOP0_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6269. // Operation
  6270. //*****************************************************************************
  6271. //
  6272. // The following are defines for the bit fields in the ADC_O_SSDC0 register.
  6273. //
  6274. //*****************************************************************************
  6275. #define ADC_SSDC0_S7DCSEL_M 0xF0000000 // Sample 7 Digital Comparator
  6276. // Select
  6277. #define ADC_SSDC0_S6DCSEL_M 0x0F000000 // Sample 6 Digital Comparator
  6278. // Select
  6279. #define ADC_SSDC0_S5DCSEL_M 0x00F00000 // Sample 5 Digital Comparator
  6280. // Select
  6281. #define ADC_SSDC0_S4DCSEL_M 0x000F0000 // Sample 4 Digital Comparator
  6282. // Select
  6283. #define ADC_SSDC0_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  6284. // Select
  6285. #define ADC_SSDC0_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  6286. // Select
  6287. #define ADC_SSDC0_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  6288. // Select
  6289. #define ADC_SSDC0_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6290. // Select
  6291. #define ADC_SSDC0_S6DCSEL_S 24
  6292. #define ADC_SSDC0_S5DCSEL_S 20
  6293. #define ADC_SSDC0_S4DCSEL_S 16
  6294. #define ADC_SSDC0_S3DCSEL_S 12
  6295. #define ADC_SSDC0_S2DCSEL_S 8
  6296. #define ADC_SSDC0_S1DCSEL_S 4
  6297. #define ADC_SSDC0_S0DCSEL_S 0
  6298. //*****************************************************************************
  6299. //
  6300. // The following are defines for the bit fields in the ADC_O_SSEMUX0 register.
  6301. //
  6302. //*****************************************************************************
  6303. #define ADC_SSEMUX0_EMUX7 0x10000000 // 8th Sample Input Select (Upper
  6304. // Bit)
  6305. #define ADC_SSEMUX0_EMUX6 0x01000000 // 7th Sample Input Select (Upper
  6306. // Bit)
  6307. #define ADC_SSEMUX0_EMUX5 0x00100000 // 6th Sample Input Select (Upper
  6308. // Bit)
  6309. #define ADC_SSEMUX0_EMUX4 0x00010000 // 5th Sample Input Select (Upper
  6310. // Bit)
  6311. #define ADC_SSEMUX0_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  6312. // Bit)
  6313. #define ADC_SSEMUX0_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  6314. // Bit)
  6315. #define ADC_SSEMUX0_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  6316. // Bit)
  6317. #define ADC_SSEMUX0_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6318. // Bit)
  6319. //*****************************************************************************
  6320. //
  6321. // The following are defines for the bit fields in the ADC_O_SSTSH0 register.
  6322. //
  6323. //*****************************************************************************
  6324. #define ADC_SSTSH0_TSH7_M 0xF0000000 // 8th Sample and Hold Period
  6325. // Select
  6326. #define ADC_SSTSH0_TSH6_M 0x0F000000 // 7th Sample and Hold Period
  6327. // Select
  6328. #define ADC_SSTSH0_TSH5_M 0x00F00000 // 6th Sample and Hold Period
  6329. // Select
  6330. #define ADC_SSTSH0_TSH4_M 0x000F0000 // 5th Sample and Hold Period
  6331. // Select
  6332. #define ADC_SSTSH0_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  6333. // Select
  6334. #define ADC_SSTSH0_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  6335. // Select
  6336. #define ADC_SSTSH0_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  6337. // Select
  6338. #define ADC_SSTSH0_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6339. // Select
  6340. #define ADC_SSTSH0_TSH7_S 28
  6341. #define ADC_SSTSH0_TSH6_S 24
  6342. #define ADC_SSTSH0_TSH5_S 20
  6343. #define ADC_SSTSH0_TSH4_S 16
  6344. #define ADC_SSTSH0_TSH3_S 12
  6345. #define ADC_SSTSH0_TSH2_S 8
  6346. #define ADC_SSTSH0_TSH1_S 4
  6347. #define ADC_SSTSH0_TSH0_S 0
  6348. //*****************************************************************************
  6349. //
  6350. // The following are defines for the bit fields in the ADC_O_SSMUX1 register.
  6351. //
  6352. //*****************************************************************************
  6353. #define ADC_SSMUX1_MUX3_M 0x0000F000 // 4th Sample Input Select
  6354. #define ADC_SSMUX1_MUX2_M 0x00000F00 // 3rd Sample Input Select
  6355. #define ADC_SSMUX1_MUX1_M 0x000000F0 // 2nd Sample Input Select
  6356. #define ADC_SSMUX1_MUX0_M 0x0000000F // 1st Sample Input Select
  6357. #define ADC_SSMUX1_MUX3_S 12
  6358. #define ADC_SSMUX1_MUX2_S 8
  6359. #define ADC_SSMUX1_MUX1_S 4
  6360. #define ADC_SSMUX1_MUX0_S 0
  6361. //*****************************************************************************
  6362. //
  6363. // The following are defines for the bit fields in the ADC_O_SSCTL1 register.
  6364. //
  6365. //*****************************************************************************
  6366. #define ADC_SSCTL1_TS3 0x00008000 // 4th Sample Temp Sensor Select
  6367. #define ADC_SSCTL1_IE3 0x00004000 // 4th Sample Interrupt Enable
  6368. #define ADC_SSCTL1_END3 0x00002000 // 4th Sample is End of Sequence
  6369. #define ADC_SSCTL1_D3 0x00001000 // 4th Sample Differential Input
  6370. // Select
  6371. #define ADC_SSCTL1_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  6372. #define ADC_SSCTL1_IE2 0x00000400 // 3rd Sample Interrupt Enable
  6373. #define ADC_SSCTL1_END2 0x00000200 // 3rd Sample is End of Sequence
  6374. #define ADC_SSCTL1_D2 0x00000100 // 3rd Sample Differential Input
  6375. // Select
  6376. #define ADC_SSCTL1_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  6377. #define ADC_SSCTL1_IE1 0x00000040 // 2nd Sample Interrupt Enable
  6378. #define ADC_SSCTL1_END1 0x00000020 // 2nd Sample is End of Sequence
  6379. #define ADC_SSCTL1_D1 0x00000010 // 2nd Sample Differential Input
  6380. // Select
  6381. #define ADC_SSCTL1_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6382. #define ADC_SSCTL1_IE0 0x00000004 // 1st Sample Interrupt Enable
  6383. #define ADC_SSCTL1_END0 0x00000002 // 1st Sample is End of Sequence
  6384. #define ADC_SSCTL1_D0 0x00000001 // 1st Sample Differential Input
  6385. // Select
  6386. //*****************************************************************************
  6387. //
  6388. // The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
  6389. //
  6390. //*****************************************************************************
  6391. #define ADC_SSFIFO1_DATA_M 0x00000FFF // Conversion Result Data
  6392. #define ADC_SSFIFO1_DATA_S 0
  6393. //*****************************************************************************
  6394. //
  6395. // The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
  6396. //
  6397. //*****************************************************************************
  6398. #define ADC_SSFSTAT1_FULL 0x00001000 // FIFO Full
  6399. #define ADC_SSFSTAT1_EMPTY 0x00000100 // FIFO Empty
  6400. #define ADC_SSFSTAT1_HPTR_M 0x000000F0 // FIFO Head Pointer
  6401. #define ADC_SSFSTAT1_TPTR_M 0x0000000F // FIFO Tail Pointer
  6402. #define ADC_SSFSTAT1_HPTR_S 4
  6403. #define ADC_SSFSTAT1_TPTR_S 0
  6404. //*****************************************************************************
  6405. //
  6406. // The following are defines for the bit fields in the ADC_O_SSOP1 register.
  6407. //
  6408. //*****************************************************************************
  6409. #define ADC_SSOP1_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  6410. // Operation
  6411. #define ADC_SSOP1_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  6412. // Operation
  6413. #define ADC_SSOP1_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  6414. // Operation
  6415. #define ADC_SSOP1_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6416. // Operation
  6417. //*****************************************************************************
  6418. //
  6419. // The following are defines for the bit fields in the ADC_O_SSDC1 register.
  6420. //
  6421. //*****************************************************************************
  6422. #define ADC_SSDC1_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  6423. // Select
  6424. #define ADC_SSDC1_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  6425. // Select
  6426. #define ADC_SSDC1_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  6427. // Select
  6428. #define ADC_SSDC1_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6429. // Select
  6430. #define ADC_SSDC1_S2DCSEL_S 8
  6431. #define ADC_SSDC1_S1DCSEL_S 4
  6432. #define ADC_SSDC1_S0DCSEL_S 0
  6433. //*****************************************************************************
  6434. //
  6435. // The following are defines for the bit fields in the ADC_O_SSEMUX1 register.
  6436. //
  6437. //*****************************************************************************
  6438. #define ADC_SSEMUX1_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  6439. // Bit)
  6440. #define ADC_SSEMUX1_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  6441. // Bit)
  6442. #define ADC_SSEMUX1_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  6443. // Bit)
  6444. #define ADC_SSEMUX1_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6445. // Bit)
  6446. //*****************************************************************************
  6447. //
  6448. // The following are defines for the bit fields in the ADC_O_SSTSH1 register.
  6449. //
  6450. //*****************************************************************************
  6451. #define ADC_SSTSH1_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  6452. // Select
  6453. #define ADC_SSTSH1_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  6454. // Select
  6455. #define ADC_SSTSH1_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  6456. // Select
  6457. #define ADC_SSTSH1_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6458. // Select
  6459. #define ADC_SSTSH1_TSH3_S 12
  6460. #define ADC_SSTSH1_TSH2_S 8
  6461. #define ADC_SSTSH1_TSH1_S 4
  6462. #define ADC_SSTSH1_TSH0_S 0
  6463. //*****************************************************************************
  6464. //
  6465. // The following are defines for the bit fields in the ADC_O_SSMUX2 register.
  6466. //
  6467. //*****************************************************************************
  6468. #define ADC_SSMUX2_MUX3_M 0x0000F000 // 4th Sample Input Select
  6469. #define ADC_SSMUX2_MUX2_M 0x00000F00 // 3rd Sample Input Select
  6470. #define ADC_SSMUX2_MUX1_M 0x000000F0 // 2nd Sample Input Select
  6471. #define ADC_SSMUX2_MUX0_M 0x0000000F // 1st Sample Input Select
  6472. #define ADC_SSMUX2_MUX3_S 12
  6473. #define ADC_SSMUX2_MUX2_S 8
  6474. #define ADC_SSMUX2_MUX1_S 4
  6475. #define ADC_SSMUX2_MUX0_S 0
  6476. //*****************************************************************************
  6477. //
  6478. // The following are defines for the bit fields in the ADC_O_SSCTL2 register.
  6479. //
  6480. //*****************************************************************************
  6481. #define ADC_SSCTL2_TS3 0x00008000 // 4th Sample Temp Sensor Select
  6482. #define ADC_SSCTL2_IE3 0x00004000 // 4th Sample Interrupt Enable
  6483. #define ADC_SSCTL2_END3 0x00002000 // 4th Sample is End of Sequence
  6484. #define ADC_SSCTL2_D3 0x00001000 // 4th Sample Differential Input
  6485. // Select
  6486. #define ADC_SSCTL2_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  6487. #define ADC_SSCTL2_IE2 0x00000400 // 3rd Sample Interrupt Enable
  6488. #define ADC_SSCTL2_END2 0x00000200 // 3rd Sample is End of Sequence
  6489. #define ADC_SSCTL2_D2 0x00000100 // 3rd Sample Differential Input
  6490. // Select
  6491. #define ADC_SSCTL2_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  6492. #define ADC_SSCTL2_IE1 0x00000040 // 2nd Sample Interrupt Enable
  6493. #define ADC_SSCTL2_END1 0x00000020 // 2nd Sample is End of Sequence
  6494. #define ADC_SSCTL2_D1 0x00000010 // 2nd Sample Differential Input
  6495. // Select
  6496. #define ADC_SSCTL2_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6497. #define ADC_SSCTL2_IE0 0x00000004 // 1st Sample Interrupt Enable
  6498. #define ADC_SSCTL2_END0 0x00000002 // 1st Sample is End of Sequence
  6499. #define ADC_SSCTL2_D0 0x00000001 // 1st Sample Differential Input
  6500. // Select
  6501. //*****************************************************************************
  6502. //
  6503. // The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
  6504. //
  6505. //*****************************************************************************
  6506. #define ADC_SSFIFO2_DATA_M 0x00000FFF // Conversion Result Data
  6507. #define ADC_SSFIFO2_DATA_S 0
  6508. //*****************************************************************************
  6509. //
  6510. // The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
  6511. //
  6512. //*****************************************************************************
  6513. #define ADC_SSFSTAT2_FULL 0x00001000 // FIFO Full
  6514. #define ADC_SSFSTAT2_EMPTY 0x00000100 // FIFO Empty
  6515. #define ADC_SSFSTAT2_HPTR_M 0x000000F0 // FIFO Head Pointer
  6516. #define ADC_SSFSTAT2_TPTR_M 0x0000000F // FIFO Tail Pointer
  6517. #define ADC_SSFSTAT2_HPTR_S 4
  6518. #define ADC_SSFSTAT2_TPTR_S 0
  6519. //*****************************************************************************
  6520. //
  6521. // The following are defines for the bit fields in the ADC_O_SSOP2 register.
  6522. //
  6523. //*****************************************************************************
  6524. #define ADC_SSOP2_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  6525. // Operation
  6526. #define ADC_SSOP2_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  6527. // Operation
  6528. #define ADC_SSOP2_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  6529. // Operation
  6530. #define ADC_SSOP2_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6531. // Operation
  6532. //*****************************************************************************
  6533. //
  6534. // The following are defines for the bit fields in the ADC_O_SSDC2 register.
  6535. //
  6536. //*****************************************************************************
  6537. #define ADC_SSDC2_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  6538. // Select
  6539. #define ADC_SSDC2_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  6540. // Select
  6541. #define ADC_SSDC2_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  6542. // Select
  6543. #define ADC_SSDC2_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6544. // Select
  6545. #define ADC_SSDC2_S2DCSEL_S 8
  6546. #define ADC_SSDC2_S1DCSEL_S 4
  6547. #define ADC_SSDC2_S0DCSEL_S 0
  6548. //*****************************************************************************
  6549. //
  6550. // The following are defines for the bit fields in the ADC_O_SSEMUX2 register.
  6551. //
  6552. //*****************************************************************************
  6553. #define ADC_SSEMUX2_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  6554. // Bit)
  6555. #define ADC_SSEMUX2_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  6556. // Bit)
  6557. #define ADC_SSEMUX2_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  6558. // Bit)
  6559. #define ADC_SSEMUX2_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6560. // Bit)
  6561. //*****************************************************************************
  6562. //
  6563. // The following are defines for the bit fields in the ADC_O_SSTSH2 register.
  6564. //
  6565. //*****************************************************************************
  6566. #define ADC_SSTSH2_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  6567. // Select
  6568. #define ADC_SSTSH2_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  6569. // Select
  6570. #define ADC_SSTSH2_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  6571. // Select
  6572. #define ADC_SSTSH2_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6573. // Select
  6574. #define ADC_SSTSH2_TSH3_S 12
  6575. #define ADC_SSTSH2_TSH2_S 8
  6576. #define ADC_SSTSH2_TSH1_S 4
  6577. #define ADC_SSTSH2_TSH0_S 0
  6578. //*****************************************************************************
  6579. //
  6580. // The following are defines for the bit fields in the ADC_O_SSMUX3 register.
  6581. //
  6582. //*****************************************************************************
  6583. #define ADC_SSMUX3_MUX0_M 0x0000000F // 1st Sample Input Select
  6584. #define ADC_SSMUX3_MUX0_S 0
  6585. //*****************************************************************************
  6586. //
  6587. // The following are defines for the bit fields in the ADC_O_SSCTL3 register.
  6588. //
  6589. //*****************************************************************************
  6590. #define ADC_SSCTL3_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6591. #define ADC_SSCTL3_IE0 0x00000004 // Sample Interrupt Enable
  6592. #define ADC_SSCTL3_END0 0x00000002 // End of Sequence
  6593. #define ADC_SSCTL3_D0 0x00000001 // Sample Differential Input Select
  6594. //*****************************************************************************
  6595. //
  6596. // The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
  6597. //
  6598. //*****************************************************************************
  6599. #define ADC_SSFIFO3_DATA_M 0x00000FFF // Conversion Result Data
  6600. #define ADC_SSFIFO3_DATA_S 0
  6601. //*****************************************************************************
  6602. //
  6603. // The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
  6604. //
  6605. //*****************************************************************************
  6606. #define ADC_SSFSTAT3_FULL 0x00001000 // FIFO Full
  6607. #define ADC_SSFSTAT3_EMPTY 0x00000100 // FIFO Empty
  6608. #define ADC_SSFSTAT3_HPTR_M 0x000000F0 // FIFO Head Pointer
  6609. #define ADC_SSFSTAT3_TPTR_M 0x0000000F // FIFO Tail Pointer
  6610. #define ADC_SSFSTAT3_HPTR_S 4
  6611. #define ADC_SSFSTAT3_TPTR_S 0
  6612. //*****************************************************************************
  6613. //
  6614. // The following are defines for the bit fields in the ADC_O_SSOP3 register.
  6615. //
  6616. //*****************************************************************************
  6617. #define ADC_SSOP3_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6618. // Operation
  6619. //*****************************************************************************
  6620. //
  6621. // The following are defines for the bit fields in the ADC_O_SSDC3 register.
  6622. //
  6623. //*****************************************************************************
  6624. #define ADC_SSDC3_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6625. // Select
  6626. //*****************************************************************************
  6627. //
  6628. // The following are defines for the bit fields in the ADC_O_SSEMUX3 register.
  6629. //
  6630. //*****************************************************************************
  6631. #define ADC_SSEMUX3_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6632. // Bit)
  6633. //*****************************************************************************
  6634. //
  6635. // The following are defines for the bit fields in the ADC_O_SSTSH3 register.
  6636. //
  6637. //*****************************************************************************
  6638. #define ADC_SSTSH3_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6639. // Select
  6640. #define ADC_SSTSH3_TSH0_S 0
  6641. //*****************************************************************************
  6642. //
  6643. // The following are defines for the bit fields in the ADC_O_DCRIC register.
  6644. //
  6645. //*****************************************************************************
  6646. #define ADC_DCRIC_DCTRIG7 0x00800000 // Digital Comparator Trigger 7
  6647. #define ADC_DCRIC_DCTRIG6 0x00400000 // Digital Comparator Trigger 6
  6648. #define ADC_DCRIC_DCTRIG5 0x00200000 // Digital Comparator Trigger 5
  6649. #define ADC_DCRIC_DCTRIG4 0x00100000 // Digital Comparator Trigger 4
  6650. #define ADC_DCRIC_DCTRIG3 0x00080000 // Digital Comparator Trigger 3
  6651. #define ADC_DCRIC_DCTRIG2 0x00040000 // Digital Comparator Trigger 2
  6652. #define ADC_DCRIC_DCTRIG1 0x00020000 // Digital Comparator Trigger 1
  6653. #define ADC_DCRIC_DCTRIG0 0x00010000 // Digital Comparator Trigger 0
  6654. #define ADC_DCRIC_DCINT7 0x00000080 // Digital Comparator Interrupt 7
  6655. #define ADC_DCRIC_DCINT6 0x00000040 // Digital Comparator Interrupt 6
  6656. #define ADC_DCRIC_DCINT5 0x00000020 // Digital Comparator Interrupt 5
  6657. #define ADC_DCRIC_DCINT4 0x00000010 // Digital Comparator Interrupt 4
  6658. #define ADC_DCRIC_DCINT3 0x00000008 // Digital Comparator Interrupt 3
  6659. #define ADC_DCRIC_DCINT2 0x00000004 // Digital Comparator Interrupt 2
  6660. #define ADC_DCRIC_DCINT1 0x00000002 // Digital Comparator Interrupt 1
  6661. #define ADC_DCRIC_DCINT0 0x00000001 // Digital Comparator Interrupt 0
  6662. //*****************************************************************************
  6663. //
  6664. // The following are defines for the bit fields in the ADC_O_DCCTL0 register.
  6665. //
  6666. //*****************************************************************************
  6667. #define ADC_DCCTL0_CTE 0x00001000 // Comparison Trigger Enable
  6668. #define ADC_DCCTL0_CTC_M 0x00000C00 // Comparison Trigger Condition
  6669. #define ADC_DCCTL0_CTC_LOW 0x00000000 // Low Band
  6670. #define ADC_DCCTL0_CTC_MID 0x00000400 // Mid Band
  6671. #define ADC_DCCTL0_CTC_HIGH 0x00000C00 // High Band
  6672. #define ADC_DCCTL0_CTM_M 0x00000300 // Comparison Trigger Mode
  6673. #define ADC_DCCTL0_CTM_ALWAYS 0x00000000 // Always
  6674. #define ADC_DCCTL0_CTM_ONCE 0x00000100 // Once
  6675. #define ADC_DCCTL0_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6676. #define ADC_DCCTL0_CTM_HONCE 0x00000300 // Hysteresis Once
  6677. #define ADC_DCCTL0_CIE 0x00000010 // Comparison Interrupt Enable
  6678. #define ADC_DCCTL0_CIC_M 0x0000000C // Comparison Interrupt Condition
  6679. #define ADC_DCCTL0_CIC_LOW 0x00000000 // Low Band
  6680. #define ADC_DCCTL0_CIC_MID 0x00000004 // Mid Band
  6681. #define ADC_DCCTL0_CIC_HIGH 0x0000000C // High Band
  6682. #define ADC_DCCTL0_CIM_M 0x00000003 // Comparison Interrupt Mode
  6683. #define ADC_DCCTL0_CIM_ALWAYS 0x00000000 // Always
  6684. #define ADC_DCCTL0_CIM_ONCE 0x00000001 // Once
  6685. #define ADC_DCCTL0_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6686. #define ADC_DCCTL0_CIM_HONCE 0x00000003 // Hysteresis Once
  6687. //*****************************************************************************
  6688. //
  6689. // The following are defines for the bit fields in the ADC_O_DCCTL1 register.
  6690. //
  6691. //*****************************************************************************
  6692. #define ADC_DCCTL1_CTE 0x00001000 // Comparison Trigger Enable
  6693. #define ADC_DCCTL1_CTC_M 0x00000C00 // Comparison Trigger Condition
  6694. #define ADC_DCCTL1_CTC_LOW 0x00000000 // Low Band
  6695. #define ADC_DCCTL1_CTC_MID 0x00000400 // Mid Band
  6696. #define ADC_DCCTL1_CTC_HIGH 0x00000C00 // High Band
  6697. #define ADC_DCCTL1_CTM_M 0x00000300 // Comparison Trigger Mode
  6698. #define ADC_DCCTL1_CTM_ALWAYS 0x00000000 // Always
  6699. #define ADC_DCCTL1_CTM_ONCE 0x00000100 // Once
  6700. #define ADC_DCCTL1_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6701. #define ADC_DCCTL1_CTM_HONCE 0x00000300 // Hysteresis Once
  6702. #define ADC_DCCTL1_CIE 0x00000010 // Comparison Interrupt Enable
  6703. #define ADC_DCCTL1_CIC_M 0x0000000C // Comparison Interrupt Condition
  6704. #define ADC_DCCTL1_CIC_LOW 0x00000000 // Low Band
  6705. #define ADC_DCCTL1_CIC_MID 0x00000004 // Mid Band
  6706. #define ADC_DCCTL1_CIC_HIGH 0x0000000C // High Band
  6707. #define ADC_DCCTL1_CIM_M 0x00000003 // Comparison Interrupt Mode
  6708. #define ADC_DCCTL1_CIM_ALWAYS 0x00000000 // Always
  6709. #define ADC_DCCTL1_CIM_ONCE 0x00000001 // Once
  6710. #define ADC_DCCTL1_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6711. #define ADC_DCCTL1_CIM_HONCE 0x00000003 // Hysteresis Once
  6712. //*****************************************************************************
  6713. //
  6714. // The following are defines for the bit fields in the ADC_O_DCCTL2 register.
  6715. //
  6716. //*****************************************************************************
  6717. #define ADC_DCCTL2_CTE 0x00001000 // Comparison Trigger Enable
  6718. #define ADC_DCCTL2_CTC_M 0x00000C00 // Comparison Trigger Condition
  6719. #define ADC_DCCTL2_CTC_LOW 0x00000000 // Low Band
  6720. #define ADC_DCCTL2_CTC_MID 0x00000400 // Mid Band
  6721. #define ADC_DCCTL2_CTC_HIGH 0x00000C00 // High Band
  6722. #define ADC_DCCTL2_CTM_M 0x00000300 // Comparison Trigger Mode
  6723. #define ADC_DCCTL2_CTM_ALWAYS 0x00000000 // Always
  6724. #define ADC_DCCTL2_CTM_ONCE 0x00000100 // Once
  6725. #define ADC_DCCTL2_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6726. #define ADC_DCCTL2_CTM_HONCE 0x00000300 // Hysteresis Once
  6727. #define ADC_DCCTL2_CIE 0x00000010 // Comparison Interrupt Enable
  6728. #define ADC_DCCTL2_CIC_M 0x0000000C // Comparison Interrupt Condition
  6729. #define ADC_DCCTL2_CIC_LOW 0x00000000 // Low Band
  6730. #define ADC_DCCTL2_CIC_MID 0x00000004 // Mid Band
  6731. #define ADC_DCCTL2_CIC_HIGH 0x0000000C // High Band
  6732. #define ADC_DCCTL2_CIM_M 0x00000003 // Comparison Interrupt Mode
  6733. #define ADC_DCCTL2_CIM_ALWAYS 0x00000000 // Always
  6734. #define ADC_DCCTL2_CIM_ONCE 0x00000001 // Once
  6735. #define ADC_DCCTL2_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6736. #define ADC_DCCTL2_CIM_HONCE 0x00000003 // Hysteresis Once
  6737. //*****************************************************************************
  6738. //
  6739. // The following are defines for the bit fields in the ADC_O_DCCTL3 register.
  6740. //
  6741. //*****************************************************************************
  6742. #define ADC_DCCTL3_CTE 0x00001000 // Comparison Trigger Enable
  6743. #define ADC_DCCTL3_CTC_M 0x00000C00 // Comparison Trigger Condition
  6744. #define ADC_DCCTL3_CTC_LOW 0x00000000 // Low Band
  6745. #define ADC_DCCTL3_CTC_MID 0x00000400 // Mid Band
  6746. #define ADC_DCCTL3_CTC_HIGH 0x00000C00 // High Band
  6747. #define ADC_DCCTL3_CTM_M 0x00000300 // Comparison Trigger Mode
  6748. #define ADC_DCCTL3_CTM_ALWAYS 0x00000000 // Always
  6749. #define ADC_DCCTL3_CTM_ONCE 0x00000100 // Once
  6750. #define ADC_DCCTL3_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6751. #define ADC_DCCTL3_CTM_HONCE 0x00000300 // Hysteresis Once
  6752. #define ADC_DCCTL3_CIE 0x00000010 // Comparison Interrupt Enable
  6753. #define ADC_DCCTL3_CIC_M 0x0000000C // Comparison Interrupt Condition
  6754. #define ADC_DCCTL3_CIC_LOW 0x00000000 // Low Band
  6755. #define ADC_DCCTL3_CIC_MID 0x00000004 // Mid Band
  6756. #define ADC_DCCTL3_CIC_HIGH 0x0000000C // High Band
  6757. #define ADC_DCCTL3_CIM_M 0x00000003 // Comparison Interrupt Mode
  6758. #define ADC_DCCTL3_CIM_ALWAYS 0x00000000 // Always
  6759. #define ADC_DCCTL3_CIM_ONCE 0x00000001 // Once
  6760. #define ADC_DCCTL3_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6761. #define ADC_DCCTL3_CIM_HONCE 0x00000003 // Hysteresis Once
  6762. //*****************************************************************************
  6763. //
  6764. // The following are defines for the bit fields in the ADC_O_DCCTL4 register.
  6765. //
  6766. //*****************************************************************************
  6767. #define ADC_DCCTL4_CTE 0x00001000 // Comparison Trigger Enable
  6768. #define ADC_DCCTL4_CTC_M 0x00000C00 // Comparison Trigger Condition
  6769. #define ADC_DCCTL4_CTC_LOW 0x00000000 // Low Band
  6770. #define ADC_DCCTL4_CTC_MID 0x00000400 // Mid Band
  6771. #define ADC_DCCTL4_CTC_HIGH 0x00000C00 // High Band
  6772. #define ADC_DCCTL4_CTM_M 0x00000300 // Comparison Trigger Mode
  6773. #define ADC_DCCTL4_CTM_ALWAYS 0x00000000 // Always
  6774. #define ADC_DCCTL4_CTM_ONCE 0x00000100 // Once
  6775. #define ADC_DCCTL4_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6776. #define ADC_DCCTL4_CTM_HONCE 0x00000300 // Hysteresis Once
  6777. #define ADC_DCCTL4_CIE 0x00000010 // Comparison Interrupt Enable
  6778. #define ADC_DCCTL4_CIC_M 0x0000000C // Comparison Interrupt Condition
  6779. #define ADC_DCCTL4_CIC_LOW 0x00000000 // Low Band
  6780. #define ADC_DCCTL4_CIC_MID 0x00000004 // Mid Band
  6781. #define ADC_DCCTL4_CIC_HIGH 0x0000000C // High Band
  6782. #define ADC_DCCTL4_CIM_M 0x00000003 // Comparison Interrupt Mode
  6783. #define ADC_DCCTL4_CIM_ALWAYS 0x00000000 // Always
  6784. #define ADC_DCCTL4_CIM_ONCE 0x00000001 // Once
  6785. #define ADC_DCCTL4_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6786. #define ADC_DCCTL4_CIM_HONCE 0x00000003 // Hysteresis Once
  6787. //*****************************************************************************
  6788. //
  6789. // The following are defines for the bit fields in the ADC_O_DCCTL5 register.
  6790. //
  6791. //*****************************************************************************
  6792. #define ADC_DCCTL5_CTE 0x00001000 // Comparison Trigger Enable
  6793. #define ADC_DCCTL5_CTC_M 0x00000C00 // Comparison Trigger Condition
  6794. #define ADC_DCCTL5_CTC_LOW 0x00000000 // Low Band
  6795. #define ADC_DCCTL5_CTC_MID 0x00000400 // Mid Band
  6796. #define ADC_DCCTL5_CTC_HIGH 0x00000C00 // High Band
  6797. #define ADC_DCCTL5_CTM_M 0x00000300 // Comparison Trigger Mode
  6798. #define ADC_DCCTL5_CTM_ALWAYS 0x00000000 // Always
  6799. #define ADC_DCCTL5_CTM_ONCE 0x00000100 // Once
  6800. #define ADC_DCCTL5_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6801. #define ADC_DCCTL5_CTM_HONCE 0x00000300 // Hysteresis Once
  6802. #define ADC_DCCTL5_CIE 0x00000010 // Comparison Interrupt Enable
  6803. #define ADC_DCCTL5_CIC_M 0x0000000C // Comparison Interrupt Condition
  6804. #define ADC_DCCTL5_CIC_LOW 0x00000000 // Low Band
  6805. #define ADC_DCCTL5_CIC_MID 0x00000004 // Mid Band
  6806. #define ADC_DCCTL5_CIC_HIGH 0x0000000C // High Band
  6807. #define ADC_DCCTL5_CIM_M 0x00000003 // Comparison Interrupt Mode
  6808. #define ADC_DCCTL5_CIM_ALWAYS 0x00000000 // Always
  6809. #define ADC_DCCTL5_CIM_ONCE 0x00000001 // Once
  6810. #define ADC_DCCTL5_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6811. #define ADC_DCCTL5_CIM_HONCE 0x00000003 // Hysteresis Once
  6812. //*****************************************************************************
  6813. //
  6814. // The following are defines for the bit fields in the ADC_O_DCCTL6 register.
  6815. //
  6816. //*****************************************************************************
  6817. #define ADC_DCCTL6_CTE 0x00001000 // Comparison Trigger Enable
  6818. #define ADC_DCCTL6_CTC_M 0x00000C00 // Comparison Trigger Condition
  6819. #define ADC_DCCTL6_CTC_LOW 0x00000000 // Low Band
  6820. #define ADC_DCCTL6_CTC_MID 0x00000400 // Mid Band
  6821. #define ADC_DCCTL6_CTC_HIGH 0x00000C00 // High Band
  6822. #define ADC_DCCTL6_CTM_M 0x00000300 // Comparison Trigger Mode
  6823. #define ADC_DCCTL6_CTM_ALWAYS 0x00000000 // Always
  6824. #define ADC_DCCTL6_CTM_ONCE 0x00000100 // Once
  6825. #define ADC_DCCTL6_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6826. #define ADC_DCCTL6_CTM_HONCE 0x00000300 // Hysteresis Once
  6827. #define ADC_DCCTL6_CIE 0x00000010 // Comparison Interrupt Enable
  6828. #define ADC_DCCTL6_CIC_M 0x0000000C // Comparison Interrupt Condition
  6829. #define ADC_DCCTL6_CIC_LOW 0x00000000 // Low Band
  6830. #define ADC_DCCTL6_CIC_MID 0x00000004 // Mid Band
  6831. #define ADC_DCCTL6_CIC_HIGH 0x0000000C // High Band
  6832. #define ADC_DCCTL6_CIM_M 0x00000003 // Comparison Interrupt Mode
  6833. #define ADC_DCCTL6_CIM_ALWAYS 0x00000000 // Always
  6834. #define ADC_DCCTL6_CIM_ONCE 0x00000001 // Once
  6835. #define ADC_DCCTL6_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6836. #define ADC_DCCTL6_CIM_HONCE 0x00000003 // Hysteresis Once
  6837. //*****************************************************************************
  6838. //
  6839. // The following are defines for the bit fields in the ADC_O_DCCTL7 register.
  6840. //
  6841. //*****************************************************************************
  6842. #define ADC_DCCTL7_CTE 0x00001000 // Comparison Trigger Enable
  6843. #define ADC_DCCTL7_CTC_M 0x00000C00 // Comparison Trigger Condition
  6844. #define ADC_DCCTL7_CTC_LOW 0x00000000 // Low Band
  6845. #define ADC_DCCTL7_CTC_MID 0x00000400 // Mid Band
  6846. #define ADC_DCCTL7_CTC_HIGH 0x00000C00 // High Band
  6847. #define ADC_DCCTL7_CTM_M 0x00000300 // Comparison Trigger Mode
  6848. #define ADC_DCCTL7_CTM_ALWAYS 0x00000000 // Always
  6849. #define ADC_DCCTL7_CTM_ONCE 0x00000100 // Once
  6850. #define ADC_DCCTL7_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6851. #define ADC_DCCTL7_CTM_HONCE 0x00000300 // Hysteresis Once
  6852. #define ADC_DCCTL7_CIE 0x00000010 // Comparison Interrupt Enable
  6853. #define ADC_DCCTL7_CIC_M 0x0000000C // Comparison Interrupt Condition
  6854. #define ADC_DCCTL7_CIC_LOW 0x00000000 // Low Band
  6855. #define ADC_DCCTL7_CIC_MID 0x00000004 // Mid Band
  6856. #define ADC_DCCTL7_CIC_HIGH 0x0000000C // High Band
  6857. #define ADC_DCCTL7_CIM_M 0x00000003 // Comparison Interrupt Mode
  6858. #define ADC_DCCTL7_CIM_ALWAYS 0x00000000 // Always
  6859. #define ADC_DCCTL7_CIM_ONCE 0x00000001 // Once
  6860. #define ADC_DCCTL7_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6861. #define ADC_DCCTL7_CIM_HONCE 0x00000003 // Hysteresis Once
  6862. //*****************************************************************************
  6863. //
  6864. // The following are defines for the bit fields in the ADC_O_DCCMP0 register.
  6865. //
  6866. //*****************************************************************************
  6867. #define ADC_DCCMP0_COMP1_M 0x0FFF0000 // Compare 1
  6868. #define ADC_DCCMP0_COMP0_M 0x00000FFF // Compare 0
  6869. #define ADC_DCCMP0_COMP1_S 16
  6870. #define ADC_DCCMP0_COMP0_S 0
  6871. //*****************************************************************************
  6872. //
  6873. // The following are defines for the bit fields in the ADC_O_DCCMP1 register.
  6874. //
  6875. //*****************************************************************************
  6876. #define ADC_DCCMP1_COMP1_M 0x0FFF0000 // Compare 1
  6877. #define ADC_DCCMP1_COMP0_M 0x00000FFF // Compare 0
  6878. #define ADC_DCCMP1_COMP1_S 16
  6879. #define ADC_DCCMP1_COMP0_S 0
  6880. //*****************************************************************************
  6881. //
  6882. // The following are defines for the bit fields in the ADC_O_DCCMP2 register.
  6883. //
  6884. //*****************************************************************************
  6885. #define ADC_DCCMP2_COMP1_M 0x0FFF0000 // Compare 1
  6886. #define ADC_DCCMP2_COMP0_M 0x00000FFF // Compare 0
  6887. #define ADC_DCCMP2_COMP1_S 16
  6888. #define ADC_DCCMP2_COMP0_S 0
  6889. //*****************************************************************************
  6890. //
  6891. // The following are defines for the bit fields in the ADC_O_DCCMP3 register.
  6892. //
  6893. //*****************************************************************************
  6894. #define ADC_DCCMP3_COMP1_M 0x0FFF0000 // Compare 1
  6895. #define ADC_DCCMP3_COMP0_M 0x00000FFF // Compare 0
  6896. #define ADC_DCCMP3_COMP1_S 16
  6897. #define ADC_DCCMP3_COMP0_S 0
  6898. //*****************************************************************************
  6899. //
  6900. // The following are defines for the bit fields in the ADC_O_DCCMP4 register.
  6901. //
  6902. //*****************************************************************************
  6903. #define ADC_DCCMP4_COMP1_M 0x0FFF0000 // Compare 1
  6904. #define ADC_DCCMP4_COMP0_M 0x00000FFF // Compare 0
  6905. #define ADC_DCCMP4_COMP1_S 16
  6906. #define ADC_DCCMP4_COMP0_S 0
  6907. //*****************************************************************************
  6908. //
  6909. // The following are defines for the bit fields in the ADC_O_DCCMP5 register.
  6910. //
  6911. //*****************************************************************************
  6912. #define ADC_DCCMP5_COMP1_M 0x0FFF0000 // Compare 1
  6913. #define ADC_DCCMP5_COMP0_M 0x00000FFF // Compare 0
  6914. #define ADC_DCCMP5_COMP1_S 16
  6915. #define ADC_DCCMP5_COMP0_S 0
  6916. //*****************************************************************************
  6917. //
  6918. // The following are defines for the bit fields in the ADC_O_DCCMP6 register.
  6919. //
  6920. //*****************************************************************************
  6921. #define ADC_DCCMP6_COMP1_M 0x0FFF0000 // Compare 1
  6922. #define ADC_DCCMP6_COMP0_M 0x00000FFF // Compare 0
  6923. #define ADC_DCCMP6_COMP1_S 16
  6924. #define ADC_DCCMP6_COMP0_S 0
  6925. //*****************************************************************************
  6926. //
  6927. // The following are defines for the bit fields in the ADC_O_DCCMP7 register.
  6928. //
  6929. //*****************************************************************************
  6930. #define ADC_DCCMP7_COMP1_M 0x0FFF0000 // Compare 1
  6931. #define ADC_DCCMP7_COMP0_M 0x00000FFF // Compare 0
  6932. #define ADC_DCCMP7_COMP1_S 16
  6933. #define ADC_DCCMP7_COMP0_S 0
  6934. //*****************************************************************************
  6935. //
  6936. // The following are defines for the bit fields in the ADC_O_PP register.
  6937. //
  6938. //*****************************************************************************
  6939. #define ADC_PP_APSHT 0x01000000 // Application-Programmable
  6940. // Sample-and-Hold Time
  6941. #define ADC_PP_TS 0x00800000 // Temperature Sensor
  6942. #define ADC_PP_RSL_M 0x007C0000 // Resolution
  6943. #define ADC_PP_TYPE_M 0x00030000 // ADC Architecture
  6944. #define ADC_PP_TYPE_SAR 0x00000000 // SAR
  6945. #define ADC_PP_DC_M 0x0000FC00 // Digital Comparator Count
  6946. #define ADC_PP_CH_M 0x000003F0 // ADC Channel Count
  6947. #define ADC_PP_MCR_M 0x0000000F // Maximum Conversion Rate
  6948. #define ADC_PP_MCR_FULL 0x00000007 // Full conversion rate (FCONV) as
  6949. // defined by TADC and NSH
  6950. #define ADC_PP_RSL_S 18
  6951. #define ADC_PP_DC_S 10
  6952. #define ADC_PP_CH_S 4
  6953. //*****************************************************************************
  6954. //
  6955. // The following are defines for the bit fields in the ADC_O_PC register.
  6956. //
  6957. //*****************************************************************************
  6958. #define ADC_PC_MCR_M 0x0000000F // Conversion Rate
  6959. #define ADC_PC_MCR_1_8 0x00000001 // Eighth conversion rate. After a
  6960. // conversion completes, the logic
  6961. // pauses for 112 TADC periods
  6962. // before starting the next
  6963. // conversion
  6964. #define ADC_PC_MCR_1_4 0x00000003 // Quarter conversion rate. After a
  6965. // conversion completes, the logic
  6966. // pauses for 48 TADC periods
  6967. // before starting the next
  6968. // conversion
  6969. #define ADC_PC_MCR_1_2 0x00000005 // Half conversion rate. After a
  6970. // conversion completes, the logic
  6971. // pauses for 16 TADC periods
  6972. // before starting the next
  6973. // conversion
  6974. #define ADC_PC_MCR_FULL 0x00000007 // Full conversion rate (FCONV) as
  6975. // defined by TADC and NSH
  6976. //*****************************************************************************
  6977. //
  6978. // The following are defines for the bit fields in the ADC_O_CC register.
  6979. //
  6980. //*****************************************************************************
  6981. #define ADC_CC_CLKDIV_M 0x000003F0 // PLL VCO Clock Divisor
  6982. #define ADC_CC_CS_M 0x0000000F // ADC Clock Source
  6983. #define ADC_CC_CS_SYSPLL 0x00000000 // PLL VCO divided by CLKDIV
  6984. #define ADC_CC_CS_PIOSC 0x00000001 // PIOSC
  6985. #define ADC_CC_CS_MOSC 0x00000002 // MOSC
  6986. #define ADC_CC_CLKDIV_S 4
  6987. //*****************************************************************************
  6988. //
  6989. // The following are defines for the bit fields in the COMP_O_ACMIS register.
  6990. //
  6991. //*****************************************************************************
  6992. #define COMP_ACMIS_IN2 0x00000004 // Comparator 2 Masked Interrupt
  6993. // Status
  6994. #define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
  6995. // Status
  6996. #define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
  6997. // Status
  6998. //*****************************************************************************
  6999. //
  7000. // The following are defines for the bit fields in the COMP_O_ACRIS register.
  7001. //
  7002. //*****************************************************************************
  7003. #define COMP_ACRIS_IN2 0x00000004 // Comparator 2 Interrupt Status
  7004. #define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status
  7005. #define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status
  7006. //*****************************************************************************
  7007. //
  7008. // The following are defines for the bit fields in the COMP_O_ACINTEN register.
  7009. //
  7010. //*****************************************************************************
  7011. #define COMP_ACINTEN_IN2 0x00000004 // Comparator 2 Interrupt Enable
  7012. #define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable
  7013. #define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable
  7014. //*****************************************************************************
  7015. //
  7016. // The following are defines for the bit fields in the COMP_O_ACREFCTL
  7017. // register.
  7018. //
  7019. //*****************************************************************************
  7020. #define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable
  7021. #define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range
  7022. #define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref
  7023. #define COMP_ACREFCTL_VREF_S 0
  7024. //*****************************************************************************
  7025. //
  7026. // The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
  7027. //
  7028. //*****************************************************************************
  7029. #define COMP_ACSTAT0_OVAL 0x00000002 // Comparator Output Value
  7030. //*****************************************************************************
  7031. //
  7032. // The following are defines for the bit fields in the COMP_O_ACCTL0 register.
  7033. //
  7034. //*****************************************************************************
  7035. #define COMP_ACCTL0_TOEN 0x00000800 // Trigger Output Enable
  7036. #define COMP_ACCTL0_ASRCP_M 0x00000600 // Analog Source Positive
  7037. #define COMP_ACCTL0_ASRCP_PIN 0x00000000 // Pin value of Cn+
  7038. #define COMP_ACCTL0_ASRCP_PIN0 0x00000200 // Pin value of C0+
  7039. #define COMP_ACCTL0_ASRCP_REF 0x00000400 // Internal voltage reference
  7040. #define COMP_ACCTL0_TSLVAL 0x00000080 // Trigger Sense Level Value
  7041. #define COMP_ACCTL0_TSEN_M 0x00000060 // Trigger Sense
  7042. #define COMP_ACCTL0_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  7043. #define COMP_ACCTL0_TSEN_FALL 0x00000020 // Falling edge
  7044. #define COMP_ACCTL0_TSEN_RISE 0x00000040 // Rising edge
  7045. #define COMP_ACCTL0_TSEN_BOTH 0x00000060 // Either edge
  7046. #define COMP_ACCTL0_ISLVAL 0x00000010 // Interrupt Sense Level Value
  7047. #define COMP_ACCTL0_ISEN_M 0x0000000C // Interrupt Sense
  7048. #define COMP_ACCTL0_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  7049. #define COMP_ACCTL0_ISEN_FALL 0x00000004 // Falling edge
  7050. #define COMP_ACCTL0_ISEN_RISE 0x00000008 // Rising edge
  7051. #define COMP_ACCTL0_ISEN_BOTH 0x0000000C // Either edge
  7052. #define COMP_ACCTL0_CINV 0x00000002 // Comparator Output Invert
  7053. //*****************************************************************************
  7054. //
  7055. // The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
  7056. //
  7057. //*****************************************************************************
  7058. #define COMP_ACSTAT1_OVAL 0x00000002 // Comparator Output Value
  7059. //*****************************************************************************
  7060. //
  7061. // The following are defines for the bit fields in the COMP_O_ACCTL1 register.
  7062. //
  7063. //*****************************************************************************
  7064. #define COMP_ACCTL1_TOEN 0x00000800 // Trigger Output Enable
  7065. #define COMP_ACCTL1_ASRCP_M 0x00000600 // Analog Source Positive
  7066. #define COMP_ACCTL1_ASRCP_PIN 0x00000000 // Pin value of Cn+
  7067. #define COMP_ACCTL1_ASRCP_PIN0 0x00000200 // Pin value of C0+
  7068. #define COMP_ACCTL1_ASRCP_REF 0x00000400 // Internal voltage reference
  7069. #define COMP_ACCTL1_TSLVAL 0x00000080 // Trigger Sense Level Value
  7070. #define COMP_ACCTL1_TSEN_M 0x00000060 // Trigger Sense
  7071. #define COMP_ACCTL1_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  7072. #define COMP_ACCTL1_TSEN_FALL 0x00000020 // Falling edge
  7073. #define COMP_ACCTL1_TSEN_RISE 0x00000040 // Rising edge
  7074. #define COMP_ACCTL1_TSEN_BOTH 0x00000060 // Either edge
  7075. #define COMP_ACCTL1_ISLVAL 0x00000010 // Interrupt Sense Level Value
  7076. #define COMP_ACCTL1_ISEN_M 0x0000000C // Interrupt Sense
  7077. #define COMP_ACCTL1_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  7078. #define COMP_ACCTL1_ISEN_FALL 0x00000004 // Falling edge
  7079. #define COMP_ACCTL1_ISEN_RISE 0x00000008 // Rising edge
  7080. #define COMP_ACCTL1_ISEN_BOTH 0x0000000C // Either edge
  7081. #define COMP_ACCTL1_CINV 0x00000002 // Comparator Output Invert
  7082. //*****************************************************************************
  7083. //
  7084. // The following are defines for the bit fields in the COMP_O_ACSTAT2 register.
  7085. //
  7086. //*****************************************************************************
  7087. #define COMP_ACSTAT2_OVAL 0x00000002 // Comparator Output Value
  7088. //*****************************************************************************
  7089. //
  7090. // The following are defines for the bit fields in the COMP_O_ACCTL2 register.
  7091. //
  7092. //*****************************************************************************
  7093. #define COMP_ACCTL2_TOEN 0x00000800 // Trigger Output Enable
  7094. #define COMP_ACCTL2_ASRCP_M 0x00000600 // Analog Source Positive
  7095. #define COMP_ACCTL2_ASRCP_PIN 0x00000000 // Pin value of Cn+
  7096. #define COMP_ACCTL2_ASRCP_PIN0 0x00000200 // Pin value of C0+
  7097. #define COMP_ACCTL2_ASRCP_REF 0x00000400 // Internal voltage reference
  7098. #define COMP_ACCTL2_TSLVAL 0x00000080 // Trigger Sense Level Value
  7099. #define COMP_ACCTL2_TSEN_M 0x00000060 // Trigger Sense
  7100. #define COMP_ACCTL2_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  7101. #define COMP_ACCTL2_TSEN_FALL 0x00000020 // Falling edge
  7102. #define COMP_ACCTL2_TSEN_RISE 0x00000040 // Rising edge
  7103. #define COMP_ACCTL2_TSEN_BOTH 0x00000060 // Either edge
  7104. #define COMP_ACCTL2_ISLVAL 0x00000010 // Interrupt Sense Level Value
  7105. #define COMP_ACCTL2_ISEN_M 0x0000000C // Interrupt Sense
  7106. #define COMP_ACCTL2_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  7107. #define COMP_ACCTL2_ISEN_FALL 0x00000004 // Falling edge
  7108. #define COMP_ACCTL2_ISEN_RISE 0x00000008 // Rising edge
  7109. #define COMP_ACCTL2_ISEN_BOTH 0x0000000C // Either edge
  7110. #define COMP_ACCTL2_CINV 0x00000002 // Comparator Output Invert
  7111. //*****************************************************************************
  7112. //
  7113. // The following are defines for the bit fields in the COMP_O_PP register.
  7114. //
  7115. //*****************************************************************************
  7116. #define COMP_PP_C2O 0x00040000 // Comparator Output 2 Present
  7117. #define COMP_PP_C1O 0x00020000 // Comparator Output 1 Present
  7118. #define COMP_PP_C0O 0x00010000 // Comparator Output 0 Present
  7119. #define COMP_PP_CMP2 0x00000004 // Comparator 2 Present
  7120. #define COMP_PP_CMP1 0x00000002 // Comparator 1 Present
  7121. #define COMP_PP_CMP0 0x00000001 // Comparator 0 Present
  7122. //*****************************************************************************
  7123. //
  7124. // The following are defines for the bit fields in the CAN_O_CTL register.
  7125. //
  7126. //*****************************************************************************
  7127. #define CAN_CTL_TEST 0x00000080 // Test Mode Enable
  7128. #define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
  7129. #define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
  7130. #define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
  7131. #define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
  7132. #define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
  7133. #define CAN_CTL_INIT 0x00000001 // Initialization
  7134. //*****************************************************************************
  7135. //
  7136. // The following are defines for the bit fields in the CAN_O_STS register.
  7137. //
  7138. //*****************************************************************************
  7139. #define CAN_STS_BOFF 0x00000080 // Bus-Off Status
  7140. #define CAN_STS_EWARN 0x00000040 // Warning Status
  7141. #define CAN_STS_EPASS 0x00000020 // Error Passive
  7142. #define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
  7143. #define CAN_STS_TXOK 0x00000008 // Transmitted a Message
  7144. // Successfully
  7145. #define CAN_STS_LEC_M 0x00000007 // Last Error Code
  7146. #define CAN_STS_LEC_NONE 0x00000000 // No Error
  7147. #define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
  7148. #define CAN_STS_LEC_FORM 0x00000002 // Format Error
  7149. #define CAN_STS_LEC_ACK 0x00000003 // ACK Error
  7150. #define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
  7151. #define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
  7152. #define CAN_STS_LEC_CRC 0x00000006 // CRC Error
  7153. #define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
  7154. //*****************************************************************************
  7155. //
  7156. // The following are defines for the bit fields in the CAN_O_ERR register.
  7157. //
  7158. //*****************************************************************************
  7159. #define CAN_ERR_RP 0x00008000 // Received Error Passive
  7160. #define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
  7161. #define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
  7162. #define CAN_ERR_REC_S 8
  7163. #define CAN_ERR_TEC_S 0
  7164. //*****************************************************************************
  7165. //
  7166. // The following are defines for the bit fields in the CAN_O_BIT register.
  7167. //
  7168. //*****************************************************************************
  7169. #define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
  7170. #define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
  7171. #define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
  7172. #define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
  7173. #define CAN_BIT_TSEG2_S 12
  7174. #define CAN_BIT_TSEG1_S 8
  7175. #define CAN_BIT_SJW_S 6
  7176. #define CAN_BIT_BRP_S 0
  7177. //*****************************************************************************
  7178. //
  7179. // The following are defines for the bit fields in the CAN_O_INT register.
  7180. //
  7181. //*****************************************************************************
  7182. #define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
  7183. #define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
  7184. #define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
  7185. //*****************************************************************************
  7186. //
  7187. // The following are defines for the bit fields in the CAN_O_TST register.
  7188. //
  7189. //*****************************************************************************
  7190. #define CAN_TST_RX 0x00000080 // Receive Observation
  7191. #define CAN_TST_TX_M 0x00000060 // Transmit Control
  7192. #define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
  7193. #define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
  7194. #define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
  7195. #define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
  7196. #define CAN_TST_LBACK 0x00000010 // Loopback Mode
  7197. #define CAN_TST_SILENT 0x00000008 // Silent Mode
  7198. #define CAN_TST_BASIC 0x00000004 // Basic Mode
  7199. //*****************************************************************************
  7200. //
  7201. // The following are defines for the bit fields in the CAN_O_BRPE register.
  7202. //
  7203. //*****************************************************************************
  7204. #define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
  7205. #define CAN_BRPE_BRPE_S 0
  7206. //*****************************************************************************
  7207. //
  7208. // The following are defines for the bit fields in the CAN_O_IF1CRQ register.
  7209. //
  7210. //*****************************************************************************
  7211. #define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
  7212. #define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
  7213. #define CAN_IF1CRQ_MNUM_S 0
  7214. //*****************************************************************************
  7215. //
  7216. // The following are defines for the bit fields in the CAN_O_IF1CMSK register.
  7217. //
  7218. //*****************************************************************************
  7219. #define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
  7220. #define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
  7221. #define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
  7222. #define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
  7223. #define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  7224. #define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
  7225. #define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
  7226. #define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  7227. #define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  7228. //*****************************************************************************
  7229. //
  7230. // The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
  7231. //
  7232. //*****************************************************************************
  7233. #define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  7234. #define CAN_IF1MSK1_IDMSK_S 0
  7235. //*****************************************************************************
  7236. //
  7237. // The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
  7238. //
  7239. //*****************************************************************************
  7240. #define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
  7241. #define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
  7242. #define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  7243. #define CAN_IF1MSK2_IDMSK_S 0
  7244. //*****************************************************************************
  7245. //
  7246. // The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
  7247. //
  7248. //*****************************************************************************
  7249. #define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
  7250. #define CAN_IF1ARB1_ID_S 0
  7251. //*****************************************************************************
  7252. //
  7253. // The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
  7254. //
  7255. //*****************************************************************************
  7256. #define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
  7257. #define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
  7258. #define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
  7259. #define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
  7260. #define CAN_IF1ARB2_ID_S 0
  7261. //*****************************************************************************
  7262. //
  7263. // The following are defines for the bit fields in the CAN_O_IF1MCTL register.
  7264. //
  7265. //*****************************************************************************
  7266. #define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
  7267. #define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
  7268. #define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
  7269. #define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
  7270. #define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  7271. #define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  7272. #define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
  7273. #define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
  7274. #define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
  7275. #define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
  7276. #define CAN_IF1MCTL_DLC_S 0
  7277. //*****************************************************************************
  7278. //
  7279. // The following are defines for the bit fields in the CAN_O_IF1DA1 register.
  7280. //
  7281. //*****************************************************************************
  7282. #define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
  7283. #define CAN_IF1DA1_DATA_S 0
  7284. //*****************************************************************************
  7285. //
  7286. // The following are defines for the bit fields in the CAN_O_IF1DA2 register.
  7287. //
  7288. //*****************************************************************************
  7289. #define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
  7290. #define CAN_IF1DA2_DATA_S 0
  7291. //*****************************************************************************
  7292. //
  7293. // The following are defines for the bit fields in the CAN_O_IF1DB1 register.
  7294. //
  7295. //*****************************************************************************
  7296. #define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
  7297. #define CAN_IF1DB1_DATA_S 0
  7298. //*****************************************************************************
  7299. //
  7300. // The following are defines for the bit fields in the CAN_O_IF1DB2 register.
  7301. //
  7302. //*****************************************************************************
  7303. #define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
  7304. #define CAN_IF1DB2_DATA_S 0
  7305. //*****************************************************************************
  7306. //
  7307. // The following are defines for the bit fields in the CAN_O_IF2CRQ register.
  7308. //
  7309. //*****************************************************************************
  7310. #define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
  7311. #define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
  7312. #define CAN_IF2CRQ_MNUM_S 0
  7313. //*****************************************************************************
  7314. //
  7315. // The following are defines for the bit fields in the CAN_O_IF2CMSK register.
  7316. //
  7317. //*****************************************************************************
  7318. #define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
  7319. #define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
  7320. #define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
  7321. #define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
  7322. #define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  7323. #define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
  7324. #define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
  7325. #define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  7326. #define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  7327. //*****************************************************************************
  7328. //
  7329. // The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
  7330. //
  7331. //*****************************************************************************
  7332. #define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  7333. #define CAN_IF2MSK1_IDMSK_S 0
  7334. //*****************************************************************************
  7335. //
  7336. // The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
  7337. //
  7338. //*****************************************************************************
  7339. #define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
  7340. #define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
  7341. #define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  7342. #define CAN_IF2MSK2_IDMSK_S 0
  7343. //*****************************************************************************
  7344. //
  7345. // The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
  7346. //
  7347. //*****************************************************************************
  7348. #define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
  7349. #define CAN_IF2ARB1_ID_S 0
  7350. //*****************************************************************************
  7351. //
  7352. // The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
  7353. //
  7354. //*****************************************************************************
  7355. #define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
  7356. #define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
  7357. #define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
  7358. #define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
  7359. #define CAN_IF2ARB2_ID_S 0
  7360. //*****************************************************************************
  7361. //
  7362. // The following are defines for the bit fields in the CAN_O_IF2MCTL register.
  7363. //
  7364. //*****************************************************************************
  7365. #define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
  7366. #define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
  7367. #define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
  7368. #define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
  7369. #define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  7370. #define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  7371. #define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
  7372. #define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
  7373. #define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
  7374. #define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
  7375. #define CAN_IF2MCTL_DLC_S 0
  7376. //*****************************************************************************
  7377. //
  7378. // The following are defines for the bit fields in the CAN_O_IF2DA1 register.
  7379. //
  7380. //*****************************************************************************
  7381. #define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
  7382. #define CAN_IF2DA1_DATA_S 0
  7383. //*****************************************************************************
  7384. //
  7385. // The following are defines for the bit fields in the CAN_O_IF2DA2 register.
  7386. //
  7387. //*****************************************************************************
  7388. #define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
  7389. #define CAN_IF2DA2_DATA_S 0
  7390. //*****************************************************************************
  7391. //
  7392. // The following are defines for the bit fields in the CAN_O_IF2DB1 register.
  7393. //
  7394. //*****************************************************************************
  7395. #define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
  7396. #define CAN_IF2DB1_DATA_S 0
  7397. //*****************************************************************************
  7398. //
  7399. // The following are defines for the bit fields in the CAN_O_IF2DB2 register.
  7400. //
  7401. //*****************************************************************************
  7402. #define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
  7403. #define CAN_IF2DB2_DATA_S 0
  7404. //*****************************************************************************
  7405. //
  7406. // The following are defines for the bit fields in the CAN_O_TXRQ1 register.
  7407. //
  7408. //*****************************************************************************
  7409. #define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
  7410. #define CAN_TXRQ1_TXRQST_S 0
  7411. //*****************************************************************************
  7412. //
  7413. // The following are defines for the bit fields in the CAN_O_TXRQ2 register.
  7414. //
  7415. //*****************************************************************************
  7416. #define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
  7417. #define CAN_TXRQ2_TXRQST_S 0
  7418. //*****************************************************************************
  7419. //
  7420. // The following are defines for the bit fields in the CAN_O_NWDA1 register.
  7421. //
  7422. //*****************************************************************************
  7423. #define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
  7424. #define CAN_NWDA1_NEWDAT_S 0
  7425. //*****************************************************************************
  7426. //
  7427. // The following are defines for the bit fields in the CAN_O_NWDA2 register.
  7428. //
  7429. //*****************************************************************************
  7430. #define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
  7431. #define CAN_NWDA2_NEWDAT_S 0
  7432. //*****************************************************************************
  7433. //
  7434. // The following are defines for the bit fields in the CAN_O_MSG1INT register.
  7435. //
  7436. //*****************************************************************************
  7437. #define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  7438. #define CAN_MSG1INT_INTPND_S 0
  7439. //*****************************************************************************
  7440. //
  7441. // The following are defines for the bit fields in the CAN_O_MSG2INT register.
  7442. //
  7443. //*****************************************************************************
  7444. #define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  7445. #define CAN_MSG2INT_INTPND_S 0
  7446. //*****************************************************************************
  7447. //
  7448. // The following are defines for the bit fields in the CAN_O_MSG1VAL register.
  7449. //
  7450. //*****************************************************************************
  7451. #define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  7452. #define CAN_MSG1VAL_MSGVAL_S 0
  7453. //*****************************************************************************
  7454. //
  7455. // The following are defines for the bit fields in the CAN_O_MSG2VAL register.
  7456. //
  7457. //*****************************************************************************
  7458. #define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  7459. #define CAN_MSG2VAL_MSGVAL_S 0
  7460. //*****************************************************************************
  7461. //
  7462. // The following are defines for the bit fields in the USB_O_FADDR register.
  7463. //
  7464. //*****************************************************************************
  7465. #define USB_FADDR_M 0x0000007F // Function Address
  7466. #define USB_FADDR_S 0
  7467. //*****************************************************************************
  7468. //
  7469. // The following are defines for the bit fields in the USB_O_POWER register.
  7470. //
  7471. //*****************************************************************************
  7472. #define USB_POWER_ISOUP 0x00000080 // Isochronous Update
  7473. #define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
  7474. #define USB_POWER_HSENAB 0x00000020 // High Speed Enable
  7475. #define USB_POWER_HSMODE 0x00000010 // High Speed Enable
  7476. #define USB_POWER_RESET 0x00000008 // RESET Signaling
  7477. #define USB_POWER_RESUME 0x00000004 // RESUME Signaling
  7478. #define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
  7479. #define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
  7480. //*****************************************************************************
  7481. //
  7482. // The following are defines for the bit fields in the USB_O_TXIS register.
  7483. //
  7484. //*****************************************************************************
  7485. #define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
  7486. #define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
  7487. #define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
  7488. #define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
  7489. #define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
  7490. #define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
  7491. #define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
  7492. #define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  7493. //*****************************************************************************
  7494. //
  7495. // The following are defines for the bit fields in the USB_O_RXIS register.
  7496. //
  7497. //*****************************************************************************
  7498. #define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
  7499. #define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
  7500. #define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
  7501. #define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
  7502. #define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
  7503. #define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
  7504. #define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
  7505. //*****************************************************************************
  7506. //
  7507. // The following are defines for the bit fields in the USB_O_TXIE register.
  7508. //
  7509. //*****************************************************************************
  7510. #define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
  7511. #define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
  7512. #define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
  7513. #define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
  7514. #define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
  7515. #define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
  7516. #define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
  7517. #define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  7518. // Enable
  7519. //*****************************************************************************
  7520. //
  7521. // The following are defines for the bit fields in the USB_O_RXIE register.
  7522. //
  7523. //*****************************************************************************
  7524. #define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
  7525. #define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
  7526. #define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
  7527. #define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
  7528. #define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
  7529. #define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
  7530. #define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
  7531. //*****************************************************************************
  7532. //
  7533. // The following are defines for the bit fields in the USB_O_IS register.
  7534. //
  7535. //*****************************************************************************
  7536. #define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
  7537. #define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
  7538. #define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
  7539. #define USB_IS_CONN 0x00000010 // Session Connect
  7540. #define USB_IS_SOF 0x00000008 // Start of Frame
  7541. #define USB_IS_BABBLE 0x00000004 // Babble Detected
  7542. #define USB_IS_RESET 0x00000004 // RESET Signaling Detected
  7543. #define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
  7544. #define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
  7545. //*****************************************************************************
  7546. //
  7547. // The following are defines for the bit fields in the USB_O_IE register.
  7548. //
  7549. //*****************************************************************************
  7550. #define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
  7551. // only)
  7552. #define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
  7553. // only)
  7554. #define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
  7555. #define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
  7556. #define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
  7557. #define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
  7558. #define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
  7559. #define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
  7560. #define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
  7561. //*****************************************************************************
  7562. //
  7563. // The following are defines for the bit fields in the USB_O_FRAME register.
  7564. //
  7565. //*****************************************************************************
  7566. #define USB_FRAME_M 0x000007FF // Frame Number
  7567. #define USB_FRAME_S 0
  7568. //*****************************************************************************
  7569. //
  7570. // The following are defines for the bit fields in the USB_O_EPIDX register.
  7571. //
  7572. //*****************************************************************************
  7573. #define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
  7574. #define USB_EPIDX_EPIDX_S 0
  7575. //*****************************************************************************
  7576. //
  7577. // The following are defines for the bit fields in the USB_O_TEST register.
  7578. //
  7579. //*****************************************************************************
  7580. #define USB_TEST_FORCEH 0x00000080 // Force Host Mode
  7581. #define USB_TEST_FIFOACC 0x00000040 // FIFO Access
  7582. #define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
  7583. #define USB_TEST_FORCEHS 0x00000010 // Force High-Speed Mode
  7584. #define USB_TEST_TESTPKT 0x00000008 // Test Packet Mode Enable
  7585. #define USB_TEST_TESTK 0x00000004 // Test_K Mode Enable
  7586. #define USB_TEST_TESTJ 0x00000002 // Test_J Mode Enable
  7587. #define USB_TEST_TESTSE0NAK 0x00000001 // Test_SE0_NAK Test Mode Enable
  7588. //*****************************************************************************
  7589. //
  7590. // The following are defines for the bit fields in the USB_O_FIFO0 register.
  7591. //
  7592. //*****************************************************************************
  7593. #define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7594. #define USB_FIFO0_EPDATA_S 0
  7595. //*****************************************************************************
  7596. //
  7597. // The following are defines for the bit fields in the USB_O_FIFO1 register.
  7598. //
  7599. //*****************************************************************************
  7600. #define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7601. #define USB_FIFO1_EPDATA_S 0
  7602. //*****************************************************************************
  7603. //
  7604. // The following are defines for the bit fields in the USB_O_FIFO2 register.
  7605. //
  7606. //*****************************************************************************
  7607. #define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7608. #define USB_FIFO2_EPDATA_S 0
  7609. //*****************************************************************************
  7610. //
  7611. // The following are defines for the bit fields in the USB_O_FIFO3 register.
  7612. //
  7613. //*****************************************************************************
  7614. #define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7615. #define USB_FIFO3_EPDATA_S 0
  7616. //*****************************************************************************
  7617. //
  7618. // The following are defines for the bit fields in the USB_O_FIFO4 register.
  7619. //
  7620. //*****************************************************************************
  7621. #define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7622. #define USB_FIFO4_EPDATA_S 0
  7623. //*****************************************************************************
  7624. //
  7625. // The following are defines for the bit fields in the USB_O_FIFO5 register.
  7626. //
  7627. //*****************************************************************************
  7628. #define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7629. #define USB_FIFO5_EPDATA_S 0
  7630. //*****************************************************************************
  7631. //
  7632. // The following are defines for the bit fields in the USB_O_FIFO6 register.
  7633. //
  7634. //*****************************************************************************
  7635. #define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7636. #define USB_FIFO6_EPDATA_S 0
  7637. //*****************************************************************************
  7638. //
  7639. // The following are defines for the bit fields in the USB_O_FIFO7 register.
  7640. //
  7641. //*****************************************************************************
  7642. #define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7643. #define USB_FIFO7_EPDATA_S 0
  7644. //*****************************************************************************
  7645. //
  7646. // The following are defines for the bit fields in the USB_O_DEVCTL register.
  7647. //
  7648. //*****************************************************************************
  7649. #define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
  7650. #define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
  7651. #define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
  7652. #define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
  7653. #define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
  7654. #define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
  7655. #define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
  7656. #define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
  7657. #define USB_DEVCTL_HOST 0x00000004 // Host Mode
  7658. #define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
  7659. #define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
  7660. //*****************************************************************************
  7661. //
  7662. // The following are defines for the bit fields in the USB_O_CCONF register.
  7663. //
  7664. //*****************************************************************************
  7665. #define USB_CCONF_TXEDMA 0x00000002 // TX Early DMA Enable
  7666. #define USB_CCONF_RXEDMA 0x00000001 // TX Early DMA Enable
  7667. //*****************************************************************************
  7668. //
  7669. // The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
  7670. //
  7671. //*****************************************************************************
  7672. #define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  7673. #define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  7674. #define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
  7675. #define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
  7676. #define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
  7677. #define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
  7678. #define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
  7679. #define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
  7680. #define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
  7681. #define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
  7682. #define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
  7683. //*****************************************************************************
  7684. //
  7685. // The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
  7686. //
  7687. //*****************************************************************************
  7688. #define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  7689. #define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  7690. #define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
  7691. #define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
  7692. #define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
  7693. #define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
  7694. #define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
  7695. #define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
  7696. #define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
  7697. #define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
  7698. #define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
  7699. //*****************************************************************************
  7700. //
  7701. // The following are defines for the bit fields in the USB_O_TXFIFOADD
  7702. // register.
  7703. //
  7704. //*****************************************************************************
  7705. #define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  7706. #define USB_TXFIFOADD_ADDR_S 0
  7707. //*****************************************************************************
  7708. //
  7709. // The following are defines for the bit fields in the USB_O_RXFIFOADD
  7710. // register.
  7711. //
  7712. //*****************************************************************************
  7713. #define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  7714. #define USB_RXFIFOADD_ADDR_S 0
  7715. //*****************************************************************************
  7716. //
  7717. // The following are defines for the bit fields in the USB_O_ULPIVBUSCTL
  7718. // register.
  7719. //
  7720. //*****************************************************************************
  7721. #define USB_ULPIVBUSCTL_USEEXTVBUSIND \
  7722. 0x00000002 // Use External VBUS Indicator
  7723. #define USB_ULPIVBUSCTL_USEEXTVBUS \
  7724. 0x00000001 // Use External VBUS
  7725. //*****************************************************************************
  7726. //
  7727. // The following are defines for the bit fields in the USB_O_ULPIREGDATA
  7728. // register.
  7729. //
  7730. //*****************************************************************************
  7731. #define USB_ULPIREGDATA_REGDATA_M \
  7732. 0x000000FF // Register Data
  7733. #define USB_ULPIREGDATA_REGDATA_S \
  7734. 0
  7735. //*****************************************************************************
  7736. //
  7737. // The following are defines for the bit fields in the USB_O_ULPIREGADDR
  7738. // register.
  7739. //
  7740. //*****************************************************************************
  7741. #define USB_ULPIREGADDR_ADDR_M 0x000000FF // Register Address
  7742. #define USB_ULPIREGADDR_ADDR_S 0
  7743. //*****************************************************************************
  7744. //
  7745. // The following are defines for the bit fields in the USB_O_ULPIREGCTL
  7746. // register.
  7747. //
  7748. //*****************************************************************************
  7749. #define USB_ULPIREGCTL_RDWR 0x00000004 // Read/Write Control
  7750. #define USB_ULPIREGCTL_REGCMPLT 0x00000002 // Register Access Complete
  7751. #define USB_ULPIREGCTL_REGACC 0x00000001 // Initiate Register Access
  7752. //*****************************************************************************
  7753. //
  7754. // The following are defines for the bit fields in the USB_O_EPINFO register.
  7755. //
  7756. //*****************************************************************************
  7757. #define USB_EPINFO_RXEP_M 0x000000F0 // RX Endpoints
  7758. #define USB_EPINFO_TXEP_M 0x0000000F // TX Endpoints
  7759. #define USB_EPINFO_RXEP_S 4
  7760. #define USB_EPINFO_TXEP_S 0
  7761. //*****************************************************************************
  7762. //
  7763. // The following are defines for the bit fields in the USB_O_RAMINFO register.
  7764. //
  7765. //*****************************************************************************
  7766. #define USB_RAMINFO_DMACHAN_M 0x000000F0 // DMA Channels
  7767. #define USB_RAMINFO_RAMBITS_M 0x0000000F // RAM Address Bus Width
  7768. #define USB_RAMINFO_DMACHAN_S 4
  7769. #define USB_RAMINFO_RAMBITS_S 0
  7770. //*****************************************************************************
  7771. //
  7772. // The following are defines for the bit fields in the USB_O_CONTIM register.
  7773. //
  7774. //*****************************************************************************
  7775. #define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
  7776. #define USB_CONTIM_WTID_M 0x0000000F // Wait ID
  7777. #define USB_CONTIM_WTCON_S 4
  7778. #define USB_CONTIM_WTID_S 0
  7779. //*****************************************************************************
  7780. //
  7781. // The following are defines for the bit fields in the USB_O_VPLEN register.
  7782. //
  7783. //*****************************************************************************
  7784. #define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
  7785. #define USB_VPLEN_VPLEN_S 0
  7786. //*****************************************************************************
  7787. //
  7788. // The following are defines for the bit fields in the USB_O_HSEOF register.
  7789. //
  7790. //*****************************************************************************
  7791. #define USB_HSEOF_HSEOFG_M 0x000000FF // HIgh-Speed End-of-Frame Gap
  7792. #define USB_HSEOF_HSEOFG_S 0
  7793. //*****************************************************************************
  7794. //
  7795. // The following are defines for the bit fields in the USB_O_FSEOF register.
  7796. //
  7797. //*****************************************************************************
  7798. #define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
  7799. #define USB_FSEOF_FSEOFG_S 0
  7800. //*****************************************************************************
  7801. //
  7802. // The following are defines for the bit fields in the USB_O_LSEOF register.
  7803. //
  7804. //*****************************************************************************
  7805. #define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
  7806. #define USB_LSEOF_LSEOFG_S 0
  7807. //*****************************************************************************
  7808. //
  7809. // The following are defines for the bit fields in the USB_O_TXFUNCADDR0
  7810. // register.
  7811. //
  7812. //*****************************************************************************
  7813. #define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
  7814. #define USB_TXFUNCADDR0_ADDR_S 0
  7815. //*****************************************************************************
  7816. //
  7817. // The following are defines for the bit fields in the USB_O_TXHUBADDR0
  7818. // register.
  7819. //
  7820. //*****************************************************************************
  7821. #define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
  7822. #define USB_TXHUBADDR0_ADDR_S 0
  7823. //*****************************************************************************
  7824. //
  7825. // The following are defines for the bit fields in the USB_O_TXHUBPORT0
  7826. // register.
  7827. //
  7828. //*****************************************************************************
  7829. #define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
  7830. #define USB_TXHUBPORT0_PORT_S 0
  7831. //*****************************************************************************
  7832. //
  7833. // The following are defines for the bit fields in the USB_O_TXFUNCADDR1
  7834. // register.
  7835. //
  7836. //*****************************************************************************
  7837. #define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  7838. #define USB_TXFUNCADDR1_ADDR_S 0
  7839. //*****************************************************************************
  7840. //
  7841. // The following are defines for the bit fields in the USB_O_TXHUBADDR1
  7842. // register.
  7843. //
  7844. //*****************************************************************************
  7845. #define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  7846. #define USB_TXHUBADDR1_ADDR_S 0
  7847. //*****************************************************************************
  7848. //
  7849. // The following are defines for the bit fields in the USB_O_TXHUBPORT1
  7850. // register.
  7851. //
  7852. //*****************************************************************************
  7853. #define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
  7854. #define USB_TXHUBPORT1_PORT_S 0
  7855. //*****************************************************************************
  7856. //
  7857. // The following are defines for the bit fields in the USB_O_RXFUNCADDR1
  7858. // register.
  7859. //
  7860. //*****************************************************************************
  7861. #define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  7862. #define USB_RXFUNCADDR1_ADDR_S 0
  7863. //*****************************************************************************
  7864. //
  7865. // The following are defines for the bit fields in the USB_O_RXHUBADDR1
  7866. // register.
  7867. //
  7868. //*****************************************************************************
  7869. #define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  7870. #define USB_RXHUBADDR1_ADDR_S 0
  7871. //*****************************************************************************
  7872. //
  7873. // The following are defines for the bit fields in the USB_O_RXHUBPORT1
  7874. // register.
  7875. //
  7876. //*****************************************************************************
  7877. #define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
  7878. #define USB_RXHUBPORT1_PORT_S 0
  7879. //*****************************************************************************
  7880. //
  7881. // The following are defines for the bit fields in the USB_O_TXFUNCADDR2
  7882. // register.
  7883. //
  7884. //*****************************************************************************
  7885. #define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  7886. #define USB_TXFUNCADDR2_ADDR_S 0
  7887. //*****************************************************************************
  7888. //
  7889. // The following are defines for the bit fields in the USB_O_TXHUBADDR2
  7890. // register.
  7891. //
  7892. //*****************************************************************************
  7893. #define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  7894. #define USB_TXHUBADDR2_ADDR_S 0
  7895. //*****************************************************************************
  7896. //
  7897. // The following are defines for the bit fields in the USB_O_TXHUBPORT2
  7898. // register.
  7899. //
  7900. //*****************************************************************************
  7901. #define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
  7902. #define USB_TXHUBPORT2_PORT_S 0
  7903. //*****************************************************************************
  7904. //
  7905. // The following are defines for the bit fields in the USB_O_RXFUNCADDR2
  7906. // register.
  7907. //
  7908. //*****************************************************************************
  7909. #define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  7910. #define USB_RXFUNCADDR2_ADDR_S 0
  7911. //*****************************************************************************
  7912. //
  7913. // The following are defines for the bit fields in the USB_O_RXHUBADDR2
  7914. // register.
  7915. //
  7916. //*****************************************************************************
  7917. #define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  7918. #define USB_RXHUBADDR2_ADDR_S 0
  7919. //*****************************************************************************
  7920. //
  7921. // The following are defines for the bit fields in the USB_O_RXHUBPORT2
  7922. // register.
  7923. //
  7924. //*****************************************************************************
  7925. #define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
  7926. #define USB_RXHUBPORT2_PORT_S 0
  7927. //*****************************************************************************
  7928. //
  7929. // The following are defines for the bit fields in the USB_O_TXFUNCADDR3
  7930. // register.
  7931. //
  7932. //*****************************************************************************
  7933. #define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  7934. #define USB_TXFUNCADDR3_ADDR_S 0
  7935. //*****************************************************************************
  7936. //
  7937. // The following are defines for the bit fields in the USB_O_TXHUBADDR3
  7938. // register.
  7939. //
  7940. //*****************************************************************************
  7941. #define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  7942. #define USB_TXHUBADDR3_ADDR_S 0
  7943. //*****************************************************************************
  7944. //
  7945. // The following are defines for the bit fields in the USB_O_TXHUBPORT3
  7946. // register.
  7947. //
  7948. //*****************************************************************************
  7949. #define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
  7950. #define USB_TXHUBPORT3_PORT_S 0
  7951. //*****************************************************************************
  7952. //
  7953. // The following are defines for the bit fields in the USB_O_RXFUNCADDR3
  7954. // register.
  7955. //
  7956. //*****************************************************************************
  7957. #define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  7958. #define USB_RXFUNCADDR3_ADDR_S 0
  7959. //*****************************************************************************
  7960. //
  7961. // The following are defines for the bit fields in the USB_O_RXHUBADDR3
  7962. // register.
  7963. //
  7964. //*****************************************************************************
  7965. #define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  7966. #define USB_RXHUBADDR3_ADDR_S 0
  7967. //*****************************************************************************
  7968. //
  7969. // The following are defines for the bit fields in the USB_O_RXHUBPORT3
  7970. // register.
  7971. //
  7972. //*****************************************************************************
  7973. #define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
  7974. #define USB_RXHUBPORT3_PORT_S 0
  7975. //*****************************************************************************
  7976. //
  7977. // The following are defines for the bit fields in the USB_O_TXFUNCADDR4
  7978. // register.
  7979. //
  7980. //*****************************************************************************
  7981. #define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  7982. #define USB_TXFUNCADDR4_ADDR_S 0
  7983. //*****************************************************************************
  7984. //
  7985. // The following are defines for the bit fields in the USB_O_TXHUBADDR4
  7986. // register.
  7987. //
  7988. //*****************************************************************************
  7989. #define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  7990. #define USB_TXHUBADDR4_ADDR_S 0
  7991. //*****************************************************************************
  7992. //
  7993. // The following are defines for the bit fields in the USB_O_TXHUBPORT4
  7994. // register.
  7995. //
  7996. //*****************************************************************************
  7997. #define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
  7998. #define USB_TXHUBPORT4_PORT_S 0
  7999. //*****************************************************************************
  8000. //
  8001. // The following are defines for the bit fields in the USB_O_RXFUNCADDR4
  8002. // register.
  8003. //
  8004. //*****************************************************************************
  8005. #define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  8006. #define USB_RXFUNCADDR4_ADDR_S 0
  8007. //*****************************************************************************
  8008. //
  8009. // The following are defines for the bit fields in the USB_O_RXHUBADDR4
  8010. // register.
  8011. //
  8012. //*****************************************************************************
  8013. #define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  8014. #define USB_RXHUBADDR4_ADDR_S 0
  8015. //*****************************************************************************
  8016. //
  8017. // The following are defines for the bit fields in the USB_O_RXHUBPORT4
  8018. // register.
  8019. //
  8020. //*****************************************************************************
  8021. #define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
  8022. #define USB_RXHUBPORT4_PORT_S 0
  8023. //*****************************************************************************
  8024. //
  8025. // The following are defines for the bit fields in the USB_O_TXFUNCADDR5
  8026. // register.
  8027. //
  8028. //*****************************************************************************
  8029. #define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  8030. #define USB_TXFUNCADDR5_ADDR_S 0
  8031. //*****************************************************************************
  8032. //
  8033. // The following are defines for the bit fields in the USB_O_TXHUBADDR5
  8034. // register.
  8035. //
  8036. //*****************************************************************************
  8037. #define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  8038. #define USB_TXHUBADDR5_ADDR_S 0
  8039. //*****************************************************************************
  8040. //
  8041. // The following are defines for the bit fields in the USB_O_TXHUBPORT5
  8042. // register.
  8043. //
  8044. //*****************************************************************************
  8045. #define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
  8046. #define USB_TXHUBPORT5_PORT_S 0
  8047. //*****************************************************************************
  8048. //
  8049. // The following are defines for the bit fields in the USB_O_RXFUNCADDR5
  8050. // register.
  8051. //
  8052. //*****************************************************************************
  8053. #define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  8054. #define USB_RXFUNCADDR5_ADDR_S 0
  8055. //*****************************************************************************
  8056. //
  8057. // The following are defines for the bit fields in the USB_O_RXHUBADDR5
  8058. // register.
  8059. //
  8060. //*****************************************************************************
  8061. #define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  8062. #define USB_RXHUBADDR5_ADDR_S 0
  8063. //*****************************************************************************
  8064. //
  8065. // The following are defines for the bit fields in the USB_O_RXHUBPORT5
  8066. // register.
  8067. //
  8068. //*****************************************************************************
  8069. #define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
  8070. #define USB_RXHUBPORT5_PORT_S 0
  8071. //*****************************************************************************
  8072. //
  8073. // The following are defines for the bit fields in the USB_O_TXFUNCADDR6
  8074. // register.
  8075. //
  8076. //*****************************************************************************
  8077. #define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  8078. #define USB_TXFUNCADDR6_ADDR_S 0
  8079. //*****************************************************************************
  8080. //
  8081. // The following are defines for the bit fields in the USB_O_TXHUBADDR6
  8082. // register.
  8083. //
  8084. //*****************************************************************************
  8085. #define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  8086. #define USB_TXHUBADDR6_ADDR_S 0
  8087. //*****************************************************************************
  8088. //
  8089. // The following are defines for the bit fields in the USB_O_TXHUBPORT6
  8090. // register.
  8091. //
  8092. //*****************************************************************************
  8093. #define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
  8094. #define USB_TXHUBPORT6_PORT_S 0
  8095. //*****************************************************************************
  8096. //
  8097. // The following are defines for the bit fields in the USB_O_RXFUNCADDR6
  8098. // register.
  8099. //
  8100. //*****************************************************************************
  8101. #define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  8102. #define USB_RXFUNCADDR6_ADDR_S 0
  8103. //*****************************************************************************
  8104. //
  8105. // The following are defines for the bit fields in the USB_O_RXHUBADDR6
  8106. // register.
  8107. //
  8108. //*****************************************************************************
  8109. #define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  8110. #define USB_RXHUBADDR6_ADDR_S 0
  8111. //*****************************************************************************
  8112. //
  8113. // The following are defines for the bit fields in the USB_O_RXHUBPORT6
  8114. // register.
  8115. //
  8116. //*****************************************************************************
  8117. #define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
  8118. #define USB_RXHUBPORT6_PORT_S 0
  8119. //*****************************************************************************
  8120. //
  8121. // The following are defines for the bit fields in the USB_O_TXFUNCADDR7
  8122. // register.
  8123. //
  8124. //*****************************************************************************
  8125. #define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  8126. #define USB_TXFUNCADDR7_ADDR_S 0
  8127. //*****************************************************************************
  8128. //
  8129. // The following are defines for the bit fields in the USB_O_TXHUBADDR7
  8130. // register.
  8131. //
  8132. //*****************************************************************************
  8133. #define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  8134. #define USB_TXHUBADDR7_ADDR_S 0
  8135. //*****************************************************************************
  8136. //
  8137. // The following are defines for the bit fields in the USB_O_TXHUBPORT7
  8138. // register.
  8139. //
  8140. //*****************************************************************************
  8141. #define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
  8142. #define USB_TXHUBPORT7_PORT_S 0
  8143. //*****************************************************************************
  8144. //
  8145. // The following are defines for the bit fields in the USB_O_RXFUNCADDR7
  8146. // register.
  8147. //
  8148. //*****************************************************************************
  8149. #define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  8150. #define USB_RXFUNCADDR7_ADDR_S 0
  8151. //*****************************************************************************
  8152. //
  8153. // The following are defines for the bit fields in the USB_O_RXHUBADDR7
  8154. // register.
  8155. //
  8156. //*****************************************************************************
  8157. #define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  8158. #define USB_RXHUBADDR7_ADDR_S 0
  8159. //*****************************************************************************
  8160. //
  8161. // The following are defines for the bit fields in the USB_O_RXHUBPORT7
  8162. // register.
  8163. //
  8164. //*****************************************************************************
  8165. #define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
  8166. #define USB_RXHUBPORT7_PORT_S 0
  8167. //*****************************************************************************
  8168. //
  8169. // The following are defines for the bit fields in the USB_O_CSRL0 register.
  8170. //
  8171. //*****************************************************************************
  8172. #define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
  8173. #define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
  8174. #define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
  8175. #define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
  8176. #define USB_CSRL0_REQPKT 0x00000020 // Request Packet
  8177. #define USB_CSRL0_STALL 0x00000020 // Send Stall
  8178. #define USB_CSRL0_SETEND 0x00000010 // Setup End
  8179. #define USB_CSRL0_ERROR 0x00000010 // Error
  8180. #define USB_CSRL0_DATAEND 0x00000008 // Data End
  8181. #define USB_CSRL0_SETUP 0x00000008 // Setup Packet
  8182. #define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
  8183. #define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
  8184. #define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
  8185. //*****************************************************************************
  8186. //
  8187. // The following are defines for the bit fields in the USB_O_CSRH0 register.
  8188. //
  8189. //*****************************************************************************
  8190. #define USB_CSRH0_DISPING 0x00000008 // PING Disable
  8191. #define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
  8192. #define USB_CSRH0_DT 0x00000002 // Data Toggle
  8193. #define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
  8194. //*****************************************************************************
  8195. //
  8196. // The following are defines for the bit fields in the USB_O_COUNT0 register.
  8197. //
  8198. //*****************************************************************************
  8199. #define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
  8200. #define USB_COUNT0_COUNT_S 0
  8201. //*****************************************************************************
  8202. //
  8203. // The following are defines for the bit fields in the USB_O_TYPE0 register.
  8204. //
  8205. //*****************************************************************************
  8206. #define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
  8207. #define USB_TYPE0_SPEED_HIGH 0x00000040 // High
  8208. #define USB_TYPE0_SPEED_FULL 0x00000080 // Full
  8209. #define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
  8210. //*****************************************************************************
  8211. //
  8212. // The following are defines for the bit fields in the USB_O_NAKLMT register.
  8213. //
  8214. //*****************************************************************************
  8215. #define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
  8216. #define USB_NAKLMT_NAKLMT_S 0
  8217. //*****************************************************************************
  8218. //
  8219. // The following are defines for the bit fields in the USB_O_TXMAXP1 register.
  8220. //
  8221. //*****************************************************************************
  8222. #define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  8223. #define USB_TXMAXP1_MAXLOAD_S 0
  8224. //*****************************************************************************
  8225. //
  8226. // The following are defines for the bit fields in the USB_O_TXCSRL1 register.
  8227. //
  8228. //*****************************************************************************
  8229. #define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
  8230. #define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
  8231. #define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
  8232. #define USB_TXCSRL1_STALL 0x00000010 // Send STALL
  8233. #define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
  8234. #define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
  8235. #define USB_TXCSRL1_ERROR 0x00000004 // Error
  8236. #define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
  8237. #define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
  8238. #define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
  8239. //*****************************************************************************
  8240. //
  8241. // The following are defines for the bit fields in the USB_O_TXCSRH1 register.
  8242. //
  8243. //*****************************************************************************
  8244. #define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
  8245. #define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
  8246. #define USB_TXCSRH1_MODE 0x00000020 // Mode
  8247. #define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
  8248. #define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
  8249. #define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
  8250. #define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
  8251. #define USB_TXCSRH1_DT 0x00000001 // Data Toggle
  8252. //*****************************************************************************
  8253. //
  8254. // The following are defines for the bit fields in the USB_O_RXMAXP1 register.
  8255. //
  8256. //*****************************************************************************
  8257. #define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  8258. #define USB_RXMAXP1_MAXLOAD_S 0
  8259. //*****************************************************************************
  8260. //
  8261. // The following are defines for the bit fields in the USB_O_RXCSRL1 register.
  8262. //
  8263. //*****************************************************************************
  8264. #define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
  8265. #define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
  8266. #define USB_RXCSRL1_STALL 0x00000020 // Send STALL
  8267. #define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
  8268. #define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
  8269. #define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
  8270. #define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
  8271. #define USB_RXCSRL1_OVER 0x00000004 // Overrun
  8272. #define USB_RXCSRL1_ERROR 0x00000004 // Error
  8273. #define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
  8274. #define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
  8275. //*****************************************************************************
  8276. //
  8277. // The following are defines for the bit fields in the USB_O_RXCSRH1 register.
  8278. //
  8279. //*****************************************************************************
  8280. #define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
  8281. #define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
  8282. #define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
  8283. #define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
  8284. #define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
  8285. #define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
  8286. #define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
  8287. #define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
  8288. #define USB_RXCSRH1_DT 0x00000002 // Data Toggle
  8289. #define USB_RXCSRH1_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8290. // Status
  8291. //*****************************************************************************
  8292. //
  8293. // The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
  8294. //
  8295. //*****************************************************************************
  8296. #define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
  8297. #define USB_RXCOUNT1_COUNT_S 0
  8298. //*****************************************************************************
  8299. //
  8300. // The following are defines for the bit fields in the USB_O_TXTYPE1 register.
  8301. //
  8302. //*****************************************************************************
  8303. #define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  8304. #define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
  8305. #define USB_TXTYPE1_SPEED_HIGH 0x00000040 // High
  8306. #define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
  8307. #define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
  8308. #define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
  8309. #define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
  8310. #define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  8311. #define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
  8312. #define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
  8313. #define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  8314. #define USB_TXTYPE1_TEP_S 0
  8315. //*****************************************************************************
  8316. //
  8317. // The following are defines for the bit fields in the USB_O_TXINTERVAL1
  8318. // register.
  8319. //
  8320. //*****************************************************************************
  8321. #define USB_TXINTERVAL1_NAKLMT_M \
  8322. 0x000000FF // NAK Limit
  8323. #define USB_TXINTERVAL1_TXPOLL_M \
  8324. 0x000000FF // TX Polling
  8325. #define USB_TXINTERVAL1_TXPOLL_S \
  8326. 0
  8327. #define USB_TXINTERVAL1_NAKLMT_S \
  8328. 0
  8329. //*****************************************************************************
  8330. //
  8331. // The following are defines for the bit fields in the USB_O_RXTYPE1 register.
  8332. //
  8333. //*****************************************************************************
  8334. #define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  8335. #define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
  8336. #define USB_RXTYPE1_SPEED_HIGH 0x00000040 // High
  8337. #define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
  8338. #define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
  8339. #define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
  8340. #define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
  8341. #define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  8342. #define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
  8343. #define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
  8344. #define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  8345. #define USB_RXTYPE1_TEP_S 0
  8346. //*****************************************************************************
  8347. //
  8348. // The following are defines for the bit fields in the USB_O_RXINTERVAL1
  8349. // register.
  8350. //
  8351. //*****************************************************************************
  8352. #define USB_RXINTERVAL1_TXPOLL_M \
  8353. 0x000000FF // RX Polling
  8354. #define USB_RXINTERVAL1_NAKLMT_M \
  8355. 0x000000FF // NAK Limit
  8356. #define USB_RXINTERVAL1_TXPOLL_S \
  8357. 0
  8358. #define USB_RXINTERVAL1_NAKLMT_S \
  8359. 0
  8360. //*****************************************************************************
  8361. //
  8362. // The following are defines for the bit fields in the USB_O_TXMAXP2 register.
  8363. //
  8364. //*****************************************************************************
  8365. #define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  8366. #define USB_TXMAXP2_MAXLOAD_S 0
  8367. //*****************************************************************************
  8368. //
  8369. // The following are defines for the bit fields in the USB_O_TXCSRL2 register.
  8370. //
  8371. //*****************************************************************************
  8372. #define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
  8373. #define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
  8374. #define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
  8375. #define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
  8376. #define USB_TXCSRL2_STALL 0x00000010 // Send STALL
  8377. #define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
  8378. #define USB_TXCSRL2_ERROR 0x00000004 // Error
  8379. #define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
  8380. #define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
  8381. #define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
  8382. //*****************************************************************************
  8383. //
  8384. // The following are defines for the bit fields in the USB_O_TXCSRH2 register.
  8385. //
  8386. //*****************************************************************************
  8387. #define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
  8388. #define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
  8389. #define USB_TXCSRH2_MODE 0x00000020 // Mode
  8390. #define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
  8391. #define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
  8392. #define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
  8393. #define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
  8394. #define USB_TXCSRH2_DT 0x00000001 // Data Toggle
  8395. //*****************************************************************************
  8396. //
  8397. // The following are defines for the bit fields in the USB_O_RXMAXP2 register.
  8398. //
  8399. //*****************************************************************************
  8400. #define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  8401. #define USB_RXMAXP2_MAXLOAD_S 0
  8402. //*****************************************************************************
  8403. //
  8404. // The following are defines for the bit fields in the USB_O_RXCSRL2 register.
  8405. //
  8406. //*****************************************************************************
  8407. #define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
  8408. #define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
  8409. #define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
  8410. #define USB_RXCSRL2_STALL 0x00000020 // Send STALL
  8411. #define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
  8412. #define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
  8413. #define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
  8414. #define USB_RXCSRL2_ERROR 0x00000004 // Error
  8415. #define USB_RXCSRL2_OVER 0x00000004 // Overrun
  8416. #define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
  8417. #define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
  8418. //*****************************************************************************
  8419. //
  8420. // The following are defines for the bit fields in the USB_O_RXCSRH2 register.
  8421. //
  8422. //*****************************************************************************
  8423. #define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
  8424. #define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
  8425. #define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
  8426. #define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
  8427. #define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
  8428. #define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
  8429. #define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
  8430. #define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
  8431. #define USB_RXCSRH2_DT 0x00000002 // Data Toggle
  8432. #define USB_RXCSRH2_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8433. // Status
  8434. //*****************************************************************************
  8435. //
  8436. // The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
  8437. //
  8438. //*****************************************************************************
  8439. #define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
  8440. #define USB_RXCOUNT2_COUNT_S 0
  8441. //*****************************************************************************
  8442. //
  8443. // The following are defines for the bit fields in the USB_O_TXTYPE2 register.
  8444. //
  8445. //*****************************************************************************
  8446. #define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  8447. #define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
  8448. #define USB_TXTYPE2_SPEED_HIGH 0x00000040 // High
  8449. #define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
  8450. #define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
  8451. #define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
  8452. #define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
  8453. #define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  8454. #define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
  8455. #define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
  8456. #define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  8457. #define USB_TXTYPE2_TEP_S 0
  8458. //*****************************************************************************
  8459. //
  8460. // The following are defines for the bit fields in the USB_O_TXINTERVAL2
  8461. // register.
  8462. //
  8463. //*****************************************************************************
  8464. #define USB_TXINTERVAL2_TXPOLL_M \
  8465. 0x000000FF // TX Polling
  8466. #define USB_TXINTERVAL2_NAKLMT_M \
  8467. 0x000000FF // NAK Limit
  8468. #define USB_TXINTERVAL2_NAKLMT_S \
  8469. 0
  8470. #define USB_TXINTERVAL2_TXPOLL_S \
  8471. 0
  8472. //*****************************************************************************
  8473. //
  8474. // The following are defines for the bit fields in the USB_O_RXTYPE2 register.
  8475. //
  8476. //*****************************************************************************
  8477. #define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  8478. #define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
  8479. #define USB_RXTYPE2_SPEED_HIGH 0x00000040 // High
  8480. #define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
  8481. #define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
  8482. #define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
  8483. #define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
  8484. #define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  8485. #define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
  8486. #define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
  8487. #define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  8488. #define USB_RXTYPE2_TEP_S 0
  8489. //*****************************************************************************
  8490. //
  8491. // The following are defines for the bit fields in the USB_O_RXINTERVAL2
  8492. // register.
  8493. //
  8494. //*****************************************************************************
  8495. #define USB_RXINTERVAL2_TXPOLL_M \
  8496. 0x000000FF // RX Polling
  8497. #define USB_RXINTERVAL2_NAKLMT_M \
  8498. 0x000000FF // NAK Limit
  8499. #define USB_RXINTERVAL2_TXPOLL_S \
  8500. 0
  8501. #define USB_RXINTERVAL2_NAKLMT_S \
  8502. 0
  8503. //*****************************************************************************
  8504. //
  8505. // The following are defines for the bit fields in the USB_O_TXMAXP3 register.
  8506. //
  8507. //*****************************************************************************
  8508. #define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  8509. #define USB_TXMAXP3_MAXLOAD_S 0
  8510. //*****************************************************************************
  8511. //
  8512. // The following are defines for the bit fields in the USB_O_TXCSRL3 register.
  8513. //
  8514. //*****************************************************************************
  8515. #define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
  8516. #define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
  8517. #define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
  8518. #define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
  8519. #define USB_TXCSRL3_STALL 0x00000010 // Send STALL
  8520. #define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
  8521. #define USB_TXCSRL3_ERROR 0x00000004 // Error
  8522. #define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
  8523. #define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
  8524. #define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
  8525. //*****************************************************************************
  8526. //
  8527. // The following are defines for the bit fields in the USB_O_TXCSRH3 register.
  8528. //
  8529. //*****************************************************************************
  8530. #define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
  8531. #define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
  8532. #define USB_TXCSRH3_MODE 0x00000020 // Mode
  8533. #define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
  8534. #define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
  8535. #define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
  8536. #define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
  8537. #define USB_TXCSRH3_DT 0x00000001 // Data Toggle
  8538. //*****************************************************************************
  8539. //
  8540. // The following are defines for the bit fields in the USB_O_RXMAXP3 register.
  8541. //
  8542. //*****************************************************************************
  8543. #define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  8544. #define USB_RXMAXP3_MAXLOAD_S 0
  8545. //*****************************************************************************
  8546. //
  8547. // The following are defines for the bit fields in the USB_O_RXCSRL3 register.
  8548. //
  8549. //*****************************************************************************
  8550. #define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
  8551. #define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
  8552. #define USB_RXCSRL3_STALL 0x00000020 // Send STALL
  8553. #define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
  8554. #define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
  8555. #define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
  8556. #define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
  8557. #define USB_RXCSRL3_ERROR 0x00000004 // Error
  8558. #define USB_RXCSRL3_OVER 0x00000004 // Overrun
  8559. #define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
  8560. #define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
  8561. //*****************************************************************************
  8562. //
  8563. // The following are defines for the bit fields in the USB_O_RXCSRH3 register.
  8564. //
  8565. //*****************************************************************************
  8566. #define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
  8567. #define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
  8568. #define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
  8569. #define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
  8570. #define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
  8571. #define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
  8572. #define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
  8573. #define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
  8574. #define USB_RXCSRH3_DT 0x00000002 // Data Toggle
  8575. #define USB_RXCSRH3_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8576. // Status
  8577. //*****************************************************************************
  8578. //
  8579. // The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
  8580. //
  8581. //*****************************************************************************
  8582. #define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
  8583. #define USB_RXCOUNT3_COUNT_S 0
  8584. //*****************************************************************************
  8585. //
  8586. // The following are defines for the bit fields in the USB_O_TXTYPE3 register.
  8587. //
  8588. //*****************************************************************************
  8589. #define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  8590. #define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
  8591. #define USB_TXTYPE3_SPEED_HIGH 0x00000040 // High
  8592. #define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
  8593. #define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
  8594. #define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
  8595. #define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
  8596. #define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  8597. #define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
  8598. #define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
  8599. #define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  8600. #define USB_TXTYPE3_TEP_S 0
  8601. //*****************************************************************************
  8602. //
  8603. // The following are defines for the bit fields in the USB_O_TXINTERVAL3
  8604. // register.
  8605. //
  8606. //*****************************************************************************
  8607. #define USB_TXINTERVAL3_TXPOLL_M \
  8608. 0x000000FF // TX Polling
  8609. #define USB_TXINTERVAL3_NAKLMT_M \
  8610. 0x000000FF // NAK Limit
  8611. #define USB_TXINTERVAL3_TXPOLL_S \
  8612. 0
  8613. #define USB_TXINTERVAL3_NAKLMT_S \
  8614. 0
  8615. //*****************************************************************************
  8616. //
  8617. // The following are defines for the bit fields in the USB_O_RXTYPE3 register.
  8618. //
  8619. //*****************************************************************************
  8620. #define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  8621. #define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
  8622. #define USB_RXTYPE3_SPEED_HIGH 0x00000040 // High
  8623. #define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
  8624. #define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
  8625. #define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
  8626. #define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
  8627. #define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  8628. #define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
  8629. #define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
  8630. #define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  8631. #define USB_RXTYPE3_TEP_S 0
  8632. //*****************************************************************************
  8633. //
  8634. // The following are defines for the bit fields in the USB_O_RXINTERVAL3
  8635. // register.
  8636. //
  8637. //*****************************************************************************
  8638. #define USB_RXINTERVAL3_TXPOLL_M \
  8639. 0x000000FF // RX Polling
  8640. #define USB_RXINTERVAL3_NAKLMT_M \
  8641. 0x000000FF // NAK Limit
  8642. #define USB_RXINTERVAL3_TXPOLL_S \
  8643. 0
  8644. #define USB_RXINTERVAL3_NAKLMT_S \
  8645. 0
  8646. //*****************************************************************************
  8647. //
  8648. // The following are defines for the bit fields in the USB_O_TXMAXP4 register.
  8649. //
  8650. //*****************************************************************************
  8651. #define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  8652. #define USB_TXMAXP4_MAXLOAD_S 0
  8653. //*****************************************************************************
  8654. //
  8655. // The following are defines for the bit fields in the USB_O_TXCSRL4 register.
  8656. //
  8657. //*****************************************************************************
  8658. #define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
  8659. #define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
  8660. #define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
  8661. #define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
  8662. #define USB_TXCSRL4_STALL 0x00000010 // Send STALL
  8663. #define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
  8664. #define USB_TXCSRL4_ERROR 0x00000004 // Error
  8665. #define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
  8666. #define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
  8667. #define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
  8668. //*****************************************************************************
  8669. //
  8670. // The following are defines for the bit fields in the USB_O_TXCSRH4 register.
  8671. //
  8672. //*****************************************************************************
  8673. #define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
  8674. #define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
  8675. #define USB_TXCSRH4_MODE 0x00000020 // Mode
  8676. #define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
  8677. #define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
  8678. #define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
  8679. #define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
  8680. #define USB_TXCSRH4_DT 0x00000001 // Data Toggle
  8681. //*****************************************************************************
  8682. //
  8683. // The following are defines for the bit fields in the USB_O_RXMAXP4 register.
  8684. //
  8685. //*****************************************************************************
  8686. #define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  8687. #define USB_RXMAXP4_MAXLOAD_S 0
  8688. //*****************************************************************************
  8689. //
  8690. // The following are defines for the bit fields in the USB_O_RXCSRL4 register.
  8691. //
  8692. //*****************************************************************************
  8693. #define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
  8694. #define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
  8695. #define USB_RXCSRL4_STALL 0x00000020 // Send STALL
  8696. #define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
  8697. #define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
  8698. #define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
  8699. #define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
  8700. #define USB_RXCSRL4_OVER 0x00000004 // Overrun
  8701. #define USB_RXCSRL4_ERROR 0x00000004 // Error
  8702. #define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
  8703. #define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
  8704. //*****************************************************************************
  8705. //
  8706. // The following are defines for the bit fields in the USB_O_RXCSRH4 register.
  8707. //
  8708. //*****************************************************************************
  8709. #define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
  8710. #define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
  8711. #define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
  8712. #define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
  8713. #define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
  8714. #define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
  8715. #define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
  8716. #define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
  8717. #define USB_RXCSRH4_DT 0x00000002 // Data Toggle
  8718. #define USB_RXCSRH4_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8719. // Status
  8720. //*****************************************************************************
  8721. //
  8722. // The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
  8723. //
  8724. //*****************************************************************************
  8725. #define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
  8726. #define USB_RXCOUNT4_COUNT_S 0
  8727. //*****************************************************************************
  8728. //
  8729. // The following are defines for the bit fields in the USB_O_TXTYPE4 register.
  8730. //
  8731. //*****************************************************************************
  8732. #define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  8733. #define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
  8734. #define USB_TXTYPE4_SPEED_HIGH 0x00000040 // High
  8735. #define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
  8736. #define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
  8737. #define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
  8738. #define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
  8739. #define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  8740. #define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
  8741. #define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
  8742. #define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  8743. #define USB_TXTYPE4_TEP_S 0
  8744. //*****************************************************************************
  8745. //
  8746. // The following are defines for the bit fields in the USB_O_TXINTERVAL4
  8747. // register.
  8748. //
  8749. //*****************************************************************************
  8750. #define USB_TXINTERVAL4_TXPOLL_M \
  8751. 0x000000FF // TX Polling
  8752. #define USB_TXINTERVAL4_NAKLMT_M \
  8753. 0x000000FF // NAK Limit
  8754. #define USB_TXINTERVAL4_NAKLMT_S \
  8755. 0
  8756. #define USB_TXINTERVAL4_TXPOLL_S \
  8757. 0
  8758. //*****************************************************************************
  8759. //
  8760. // The following are defines for the bit fields in the USB_O_RXTYPE4 register.
  8761. //
  8762. //*****************************************************************************
  8763. #define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  8764. #define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
  8765. #define USB_RXTYPE4_SPEED_HIGH 0x00000040 // High
  8766. #define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
  8767. #define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
  8768. #define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
  8769. #define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
  8770. #define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  8771. #define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
  8772. #define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
  8773. #define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  8774. #define USB_RXTYPE4_TEP_S 0
  8775. //*****************************************************************************
  8776. //
  8777. // The following are defines for the bit fields in the USB_O_RXINTERVAL4
  8778. // register.
  8779. //
  8780. //*****************************************************************************
  8781. #define USB_RXINTERVAL4_TXPOLL_M \
  8782. 0x000000FF // RX Polling
  8783. #define USB_RXINTERVAL4_NAKLMT_M \
  8784. 0x000000FF // NAK Limit
  8785. #define USB_RXINTERVAL4_NAKLMT_S \
  8786. 0
  8787. #define USB_RXINTERVAL4_TXPOLL_S \
  8788. 0
  8789. //*****************************************************************************
  8790. //
  8791. // The following are defines for the bit fields in the USB_O_TXMAXP5 register.
  8792. //
  8793. //*****************************************************************************
  8794. #define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  8795. #define USB_TXMAXP5_MAXLOAD_S 0
  8796. //*****************************************************************************
  8797. //
  8798. // The following are defines for the bit fields in the USB_O_TXCSRL5 register.
  8799. //
  8800. //*****************************************************************************
  8801. #define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
  8802. #define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
  8803. #define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
  8804. #define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
  8805. #define USB_TXCSRL5_STALL 0x00000010 // Send STALL
  8806. #define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
  8807. #define USB_TXCSRL5_ERROR 0x00000004 // Error
  8808. #define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
  8809. #define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
  8810. #define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
  8811. //*****************************************************************************
  8812. //
  8813. // The following are defines for the bit fields in the USB_O_TXCSRH5 register.
  8814. //
  8815. //*****************************************************************************
  8816. #define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
  8817. #define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
  8818. #define USB_TXCSRH5_MODE 0x00000020 // Mode
  8819. #define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
  8820. #define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
  8821. #define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
  8822. #define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
  8823. #define USB_TXCSRH5_DT 0x00000001 // Data Toggle
  8824. //*****************************************************************************
  8825. //
  8826. // The following are defines for the bit fields in the USB_O_RXMAXP5 register.
  8827. //
  8828. //*****************************************************************************
  8829. #define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  8830. #define USB_RXMAXP5_MAXLOAD_S 0
  8831. //*****************************************************************************
  8832. //
  8833. // The following are defines for the bit fields in the USB_O_RXCSRL5 register.
  8834. //
  8835. //*****************************************************************************
  8836. #define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
  8837. #define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
  8838. #define USB_RXCSRL5_STALL 0x00000020 // Send STALL
  8839. #define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
  8840. #define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
  8841. #define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
  8842. #define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
  8843. #define USB_RXCSRL5_ERROR 0x00000004 // Error
  8844. #define USB_RXCSRL5_OVER 0x00000004 // Overrun
  8845. #define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
  8846. #define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
  8847. //*****************************************************************************
  8848. //
  8849. // The following are defines for the bit fields in the USB_O_RXCSRH5 register.
  8850. //
  8851. //*****************************************************************************
  8852. #define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
  8853. #define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
  8854. #define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
  8855. #define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
  8856. #define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
  8857. #define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
  8858. #define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
  8859. #define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
  8860. #define USB_RXCSRH5_DT 0x00000002 // Data Toggle
  8861. #define USB_RXCSRH5_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8862. // Status
  8863. //*****************************************************************************
  8864. //
  8865. // The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
  8866. //
  8867. //*****************************************************************************
  8868. #define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
  8869. #define USB_RXCOUNT5_COUNT_S 0
  8870. //*****************************************************************************
  8871. //
  8872. // The following are defines for the bit fields in the USB_O_TXTYPE5 register.
  8873. //
  8874. //*****************************************************************************
  8875. #define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  8876. #define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
  8877. #define USB_TXTYPE5_SPEED_HIGH 0x00000040 // High
  8878. #define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
  8879. #define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
  8880. #define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
  8881. #define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
  8882. #define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  8883. #define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
  8884. #define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
  8885. #define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  8886. #define USB_TXTYPE5_TEP_S 0
  8887. //*****************************************************************************
  8888. //
  8889. // The following are defines for the bit fields in the USB_O_TXINTERVAL5
  8890. // register.
  8891. //
  8892. //*****************************************************************************
  8893. #define USB_TXINTERVAL5_TXPOLL_M \
  8894. 0x000000FF // TX Polling
  8895. #define USB_TXINTERVAL5_NAKLMT_M \
  8896. 0x000000FF // NAK Limit
  8897. #define USB_TXINTERVAL5_NAKLMT_S \
  8898. 0
  8899. #define USB_TXINTERVAL5_TXPOLL_S \
  8900. 0
  8901. //*****************************************************************************
  8902. //
  8903. // The following are defines for the bit fields in the USB_O_RXTYPE5 register.
  8904. //
  8905. //*****************************************************************************
  8906. #define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  8907. #define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
  8908. #define USB_RXTYPE5_SPEED_HIGH 0x00000040 // High
  8909. #define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
  8910. #define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
  8911. #define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
  8912. #define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
  8913. #define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  8914. #define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
  8915. #define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
  8916. #define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  8917. #define USB_RXTYPE5_TEP_S 0
  8918. //*****************************************************************************
  8919. //
  8920. // The following are defines for the bit fields in the USB_O_RXINTERVAL5
  8921. // register.
  8922. //
  8923. //*****************************************************************************
  8924. #define USB_RXINTERVAL5_TXPOLL_M \
  8925. 0x000000FF // RX Polling
  8926. #define USB_RXINTERVAL5_NAKLMT_M \
  8927. 0x000000FF // NAK Limit
  8928. #define USB_RXINTERVAL5_TXPOLL_S \
  8929. 0
  8930. #define USB_RXINTERVAL5_NAKLMT_S \
  8931. 0
  8932. //*****************************************************************************
  8933. //
  8934. // The following are defines for the bit fields in the USB_O_TXMAXP6 register.
  8935. //
  8936. //*****************************************************************************
  8937. #define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  8938. #define USB_TXMAXP6_MAXLOAD_S 0
  8939. //*****************************************************************************
  8940. //
  8941. // The following are defines for the bit fields in the USB_O_TXCSRL6 register.
  8942. //
  8943. //*****************************************************************************
  8944. #define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
  8945. #define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
  8946. #define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
  8947. #define USB_TXCSRL6_STALL 0x00000010 // Send STALL
  8948. #define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
  8949. #define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
  8950. #define USB_TXCSRL6_ERROR 0x00000004 // Error
  8951. #define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
  8952. #define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
  8953. #define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
  8954. //*****************************************************************************
  8955. //
  8956. // The following are defines for the bit fields in the USB_O_TXCSRH6 register.
  8957. //
  8958. //*****************************************************************************
  8959. #define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
  8960. #define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
  8961. #define USB_TXCSRH6_MODE 0x00000020 // Mode
  8962. #define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
  8963. #define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
  8964. #define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
  8965. #define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
  8966. #define USB_TXCSRH6_DT 0x00000001 // Data Toggle
  8967. //*****************************************************************************
  8968. //
  8969. // The following are defines for the bit fields in the USB_O_RXMAXP6 register.
  8970. //
  8971. //*****************************************************************************
  8972. #define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  8973. #define USB_RXMAXP6_MAXLOAD_S 0
  8974. //*****************************************************************************
  8975. //
  8976. // The following are defines for the bit fields in the USB_O_RXCSRL6 register.
  8977. //
  8978. //*****************************************************************************
  8979. #define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
  8980. #define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
  8981. #define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
  8982. #define USB_RXCSRL6_STALL 0x00000020 // Send STALL
  8983. #define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
  8984. #define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
  8985. #define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
  8986. #define USB_RXCSRL6_ERROR 0x00000004 // Error
  8987. #define USB_RXCSRL6_OVER 0x00000004 // Overrun
  8988. #define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
  8989. #define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
  8990. //*****************************************************************************
  8991. //
  8992. // The following are defines for the bit fields in the USB_O_RXCSRH6 register.
  8993. //
  8994. //*****************************************************************************
  8995. #define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
  8996. #define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
  8997. #define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
  8998. #define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
  8999. #define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
  9000. #define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
  9001. #define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
  9002. #define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
  9003. #define USB_RXCSRH6_DT 0x00000002 // Data Toggle
  9004. #define USB_RXCSRH6_INCOMPRX 0x00000001 // Incomplete RX Transmission
  9005. // Status
  9006. //*****************************************************************************
  9007. //
  9008. // The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
  9009. //
  9010. //*****************************************************************************
  9011. #define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
  9012. #define USB_RXCOUNT6_COUNT_S 0
  9013. //*****************************************************************************
  9014. //
  9015. // The following are defines for the bit fields in the USB_O_TXTYPE6 register.
  9016. //
  9017. //*****************************************************************************
  9018. #define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  9019. #define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
  9020. #define USB_TXTYPE6_SPEED_HIGH 0x00000040 // High
  9021. #define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
  9022. #define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
  9023. #define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
  9024. #define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
  9025. #define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  9026. #define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
  9027. #define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
  9028. #define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  9029. #define USB_TXTYPE6_TEP_S 0
  9030. //*****************************************************************************
  9031. //
  9032. // The following are defines for the bit fields in the USB_O_TXINTERVAL6
  9033. // register.
  9034. //
  9035. //*****************************************************************************
  9036. #define USB_TXINTERVAL6_TXPOLL_M \
  9037. 0x000000FF // TX Polling
  9038. #define USB_TXINTERVAL6_NAKLMT_M \
  9039. 0x000000FF // NAK Limit
  9040. #define USB_TXINTERVAL6_TXPOLL_S \
  9041. 0
  9042. #define USB_TXINTERVAL6_NAKLMT_S \
  9043. 0
  9044. //*****************************************************************************
  9045. //
  9046. // The following are defines for the bit fields in the USB_O_RXTYPE6 register.
  9047. //
  9048. //*****************************************************************************
  9049. #define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  9050. #define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
  9051. #define USB_RXTYPE6_SPEED_HIGH 0x00000040 // High
  9052. #define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
  9053. #define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
  9054. #define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
  9055. #define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
  9056. #define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  9057. #define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
  9058. #define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
  9059. #define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  9060. #define USB_RXTYPE6_TEP_S 0
  9061. //*****************************************************************************
  9062. //
  9063. // The following are defines for the bit fields in the USB_O_RXINTERVAL6
  9064. // register.
  9065. //
  9066. //*****************************************************************************
  9067. #define USB_RXINTERVAL6_TXPOLL_M \
  9068. 0x000000FF // RX Polling
  9069. #define USB_RXINTERVAL6_NAKLMT_M \
  9070. 0x000000FF // NAK Limit
  9071. #define USB_RXINTERVAL6_NAKLMT_S \
  9072. 0
  9073. #define USB_RXINTERVAL6_TXPOLL_S \
  9074. 0
  9075. //*****************************************************************************
  9076. //
  9077. // The following are defines for the bit fields in the USB_O_TXMAXP7 register.
  9078. //
  9079. //*****************************************************************************
  9080. #define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  9081. #define USB_TXMAXP7_MAXLOAD_S 0
  9082. //*****************************************************************************
  9083. //
  9084. // The following are defines for the bit fields in the USB_O_TXCSRL7 register.
  9085. //
  9086. //*****************************************************************************
  9087. #define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
  9088. #define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
  9089. #define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
  9090. #define USB_TXCSRL7_STALL 0x00000010 // Send STALL
  9091. #define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
  9092. #define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
  9093. #define USB_TXCSRL7_ERROR 0x00000004 // Error
  9094. #define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
  9095. #define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
  9096. #define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
  9097. //*****************************************************************************
  9098. //
  9099. // The following are defines for the bit fields in the USB_O_TXCSRH7 register.
  9100. //
  9101. //*****************************************************************************
  9102. #define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
  9103. #define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
  9104. #define USB_TXCSRH7_MODE 0x00000020 // Mode
  9105. #define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
  9106. #define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
  9107. #define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
  9108. #define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
  9109. #define USB_TXCSRH7_DT 0x00000001 // Data Toggle
  9110. //*****************************************************************************
  9111. //
  9112. // The following are defines for the bit fields in the USB_O_RXMAXP7 register.
  9113. //
  9114. //*****************************************************************************
  9115. #define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  9116. #define USB_RXMAXP7_MAXLOAD_S 0
  9117. //*****************************************************************************
  9118. //
  9119. // The following are defines for the bit fields in the USB_O_RXCSRL7 register.
  9120. //
  9121. //*****************************************************************************
  9122. #define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
  9123. #define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
  9124. #define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
  9125. #define USB_RXCSRL7_STALL 0x00000020 // Send STALL
  9126. #define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
  9127. #define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
  9128. #define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
  9129. #define USB_RXCSRL7_ERROR 0x00000004 // Error
  9130. #define USB_RXCSRL7_OVER 0x00000004 // Overrun
  9131. #define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
  9132. #define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
  9133. //*****************************************************************************
  9134. //
  9135. // The following are defines for the bit fields in the USB_O_RXCSRH7 register.
  9136. //
  9137. //*****************************************************************************
  9138. #define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
  9139. #define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
  9140. #define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
  9141. #define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
  9142. #define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
  9143. #define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
  9144. #define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
  9145. #define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
  9146. #define USB_RXCSRH7_DT 0x00000002 // Data Toggle
  9147. #define USB_RXCSRH7_INCOMPRX 0x00000001 // Incomplete RX Transmission
  9148. // Status
  9149. //*****************************************************************************
  9150. //
  9151. // The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
  9152. //
  9153. //*****************************************************************************
  9154. #define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
  9155. #define USB_RXCOUNT7_COUNT_S 0
  9156. //*****************************************************************************
  9157. //
  9158. // The following are defines for the bit fields in the USB_O_TXTYPE7 register.
  9159. //
  9160. //*****************************************************************************
  9161. #define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  9162. #define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
  9163. #define USB_TXTYPE7_SPEED_HIGH 0x00000040 // High
  9164. #define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
  9165. #define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
  9166. #define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
  9167. #define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
  9168. #define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  9169. #define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
  9170. #define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
  9171. #define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  9172. #define USB_TXTYPE7_TEP_S 0
  9173. //*****************************************************************************
  9174. //
  9175. // The following are defines for the bit fields in the USB_O_TXINTERVAL7
  9176. // register.
  9177. //
  9178. //*****************************************************************************
  9179. #define USB_TXINTERVAL7_TXPOLL_M \
  9180. 0x000000FF // TX Polling
  9181. #define USB_TXINTERVAL7_NAKLMT_M \
  9182. 0x000000FF // NAK Limit
  9183. #define USB_TXINTERVAL7_NAKLMT_S \
  9184. 0
  9185. #define USB_TXINTERVAL7_TXPOLL_S \
  9186. 0
  9187. //*****************************************************************************
  9188. //
  9189. // The following are defines for the bit fields in the USB_O_RXTYPE7 register.
  9190. //
  9191. //*****************************************************************************
  9192. #define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  9193. #define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
  9194. #define USB_RXTYPE7_SPEED_HIGH 0x00000040 // High
  9195. #define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
  9196. #define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
  9197. #define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
  9198. #define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
  9199. #define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  9200. #define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
  9201. #define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
  9202. #define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  9203. #define USB_RXTYPE7_TEP_S 0
  9204. //*****************************************************************************
  9205. //
  9206. // The following are defines for the bit fields in the USB_O_RXINTERVAL7
  9207. // register.
  9208. //
  9209. //*****************************************************************************
  9210. #define USB_RXINTERVAL7_TXPOLL_M \
  9211. 0x000000FF // RX Polling
  9212. #define USB_RXINTERVAL7_NAKLMT_M \
  9213. 0x000000FF // NAK Limit
  9214. #define USB_RXINTERVAL7_NAKLMT_S \
  9215. 0
  9216. #define USB_RXINTERVAL7_TXPOLL_S \
  9217. 0
  9218. //*****************************************************************************
  9219. //
  9220. // The following are defines for the bit fields in the USB_O_DMAINTR register.
  9221. //
  9222. //*****************************************************************************
  9223. #define USB_DMAINTR_CH7 0x00000080 // Channel 7 DMA Interrupt
  9224. #define USB_DMAINTR_CH6 0x00000040 // Channel 6 DMA Interrupt
  9225. #define USB_DMAINTR_CH5 0x00000020 // Channel 5 DMA Interrupt
  9226. #define USB_DMAINTR_CH4 0x00000010 // Channel 4 DMA Interrupt
  9227. #define USB_DMAINTR_CH3 0x00000008 // Channel 3 DMA Interrupt
  9228. #define USB_DMAINTR_CH2 0x00000004 // Channel 2 DMA Interrupt
  9229. #define USB_DMAINTR_CH1 0x00000002 // Channel 1 DMA Interrupt
  9230. #define USB_DMAINTR_CH0 0x00000001 // Channel 0 DMA Interrupt
  9231. //*****************************************************************************
  9232. //
  9233. // The following are defines for the bit fields in the USB_O_DMACTL0 register.
  9234. //
  9235. //*****************************************************************************
  9236. #define USB_DMACTL0_BRSTM_M 0x00000600 // Burst Mode
  9237. #define USB_DMACTL0_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9238. #define USB_DMACTL0_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9239. #define USB_DMACTL0_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9240. // length
  9241. #define USB_DMACTL0_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9242. // unspecified length
  9243. #define USB_DMACTL0_ERR 0x00000100 // Bus Error Bit
  9244. #define USB_DMACTL0_EP_M 0x000000F0 // Endpoint number
  9245. #define USB_DMACTL0_IE 0x00000008 // DMA Interrupt Enable
  9246. #define USB_DMACTL0_MODE 0x00000004 // DMA Transfer Mode
  9247. #define USB_DMACTL0_DIR 0x00000002 // DMA Direction
  9248. #define USB_DMACTL0_ENABLE 0x00000001 // DMA Transfer Enable
  9249. #define USB_DMACTL0_EP_S 4
  9250. //*****************************************************************************
  9251. //
  9252. // The following are defines for the bit fields in the USB_O_DMAADDR0 register.
  9253. //
  9254. //*****************************************************************************
  9255. #define USB_DMAADDR0_ADDR_M 0xFFFFFFFC // DMA Address
  9256. #define USB_DMAADDR0_ADDR_S 2
  9257. //*****************************************************************************
  9258. //
  9259. // The following are defines for the bit fields in the USB_O_DMACOUNT0
  9260. // register.
  9261. //
  9262. //*****************************************************************************
  9263. #define USB_DMACOUNT0_COUNT_M 0xFFFFFFFC // DMA Count
  9264. #define USB_DMACOUNT0_COUNT_S 2
  9265. //*****************************************************************************
  9266. //
  9267. // The following are defines for the bit fields in the USB_O_DMACTL1 register.
  9268. //
  9269. //*****************************************************************************
  9270. #define USB_DMACTL1_BRSTM_M 0x00000600 // Burst Mode
  9271. #define USB_DMACTL1_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9272. #define USB_DMACTL1_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9273. #define USB_DMACTL1_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9274. // length
  9275. #define USB_DMACTL1_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9276. // unspecified length
  9277. #define USB_DMACTL1_ERR 0x00000100 // Bus Error Bit
  9278. #define USB_DMACTL1_EP_M 0x000000F0 // Endpoint number
  9279. #define USB_DMACTL1_IE 0x00000008 // DMA Interrupt Enable
  9280. #define USB_DMACTL1_MODE 0x00000004 // DMA Transfer Mode
  9281. #define USB_DMACTL1_DIR 0x00000002 // DMA Direction
  9282. #define USB_DMACTL1_ENABLE 0x00000001 // DMA Transfer Enable
  9283. #define USB_DMACTL1_EP_S 4
  9284. //*****************************************************************************
  9285. //
  9286. // The following are defines for the bit fields in the USB_O_DMAADDR1 register.
  9287. //
  9288. //*****************************************************************************
  9289. #define USB_DMAADDR1_ADDR_M 0xFFFFFFFC // DMA Address
  9290. #define USB_DMAADDR1_ADDR_S 2
  9291. //*****************************************************************************
  9292. //
  9293. // The following are defines for the bit fields in the USB_O_DMACOUNT1
  9294. // register.
  9295. //
  9296. //*****************************************************************************
  9297. #define USB_DMACOUNT1_COUNT_M 0xFFFFFFFC // DMA Count
  9298. #define USB_DMACOUNT1_COUNT_S 2
  9299. //*****************************************************************************
  9300. //
  9301. // The following are defines for the bit fields in the USB_O_DMACTL2 register.
  9302. //
  9303. //*****************************************************************************
  9304. #define USB_DMACTL2_BRSTM_M 0x00000600 // Burst Mode
  9305. #define USB_DMACTL2_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9306. #define USB_DMACTL2_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9307. #define USB_DMACTL2_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9308. // length
  9309. #define USB_DMACTL2_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9310. // unspecified length
  9311. #define USB_DMACTL2_ERR 0x00000100 // Bus Error Bit
  9312. #define USB_DMACTL2_EP_M 0x000000F0 // Endpoint number
  9313. #define USB_DMACTL2_IE 0x00000008 // DMA Interrupt Enable
  9314. #define USB_DMACTL2_MODE 0x00000004 // DMA Transfer Mode
  9315. #define USB_DMACTL2_DIR 0x00000002 // DMA Direction
  9316. #define USB_DMACTL2_ENABLE 0x00000001 // DMA Transfer Enable
  9317. #define USB_DMACTL2_EP_S 4
  9318. //*****************************************************************************
  9319. //
  9320. // The following are defines for the bit fields in the USB_O_DMAADDR2 register.
  9321. //
  9322. //*****************************************************************************
  9323. #define USB_DMAADDR2_ADDR_M 0xFFFFFFFC // DMA Address
  9324. #define USB_DMAADDR2_ADDR_S 2
  9325. //*****************************************************************************
  9326. //
  9327. // The following are defines for the bit fields in the USB_O_DMACOUNT2
  9328. // register.
  9329. //
  9330. //*****************************************************************************
  9331. #define USB_DMACOUNT2_COUNT_M 0xFFFFFFFC // DMA Count
  9332. #define USB_DMACOUNT2_COUNT_S 2
  9333. //*****************************************************************************
  9334. //
  9335. // The following are defines for the bit fields in the USB_O_DMACTL3 register.
  9336. //
  9337. //*****************************************************************************
  9338. #define USB_DMACTL3_BRSTM_M 0x00000600 // Burst Mode
  9339. #define USB_DMACTL3_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9340. #define USB_DMACTL3_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9341. #define USB_DMACTL3_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9342. // length
  9343. #define USB_DMACTL3_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9344. // unspecified length
  9345. #define USB_DMACTL3_ERR 0x00000100 // Bus Error Bit
  9346. #define USB_DMACTL3_EP_M 0x000000F0 // Endpoint number
  9347. #define USB_DMACTL3_IE 0x00000008 // DMA Interrupt Enable
  9348. #define USB_DMACTL3_MODE 0x00000004 // DMA Transfer Mode
  9349. #define USB_DMACTL3_DIR 0x00000002 // DMA Direction
  9350. #define USB_DMACTL3_ENABLE 0x00000001 // DMA Transfer Enable
  9351. #define USB_DMACTL3_EP_S 4
  9352. //*****************************************************************************
  9353. //
  9354. // The following are defines for the bit fields in the USB_O_DMAADDR3 register.
  9355. //
  9356. //*****************************************************************************
  9357. #define USB_DMAADDR3_ADDR_M 0xFFFFFFFC // DMA Address
  9358. #define USB_DMAADDR3_ADDR_S 2
  9359. //*****************************************************************************
  9360. //
  9361. // The following are defines for the bit fields in the USB_O_DMACOUNT3
  9362. // register.
  9363. //
  9364. //*****************************************************************************
  9365. #define USB_DMACOUNT3_COUNT_M 0xFFFFFFFC // DMA Count
  9366. #define USB_DMACOUNT3_COUNT_S 2
  9367. //*****************************************************************************
  9368. //
  9369. // The following are defines for the bit fields in the USB_O_DMACTL4 register.
  9370. //
  9371. //*****************************************************************************
  9372. #define USB_DMACTL4_BRSTM_M 0x00000600 // Burst Mode
  9373. #define USB_DMACTL4_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9374. #define USB_DMACTL4_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9375. #define USB_DMACTL4_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9376. // length
  9377. #define USB_DMACTL4_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9378. // unspecified length
  9379. #define USB_DMACTL4_ERR 0x00000100 // Bus Error Bit
  9380. #define USB_DMACTL4_EP_M 0x000000F0 // Endpoint number
  9381. #define USB_DMACTL4_IE 0x00000008 // DMA Interrupt Enable
  9382. #define USB_DMACTL4_MODE 0x00000004 // DMA Transfer Mode
  9383. #define USB_DMACTL4_DIR 0x00000002 // DMA Direction
  9384. #define USB_DMACTL4_ENABLE 0x00000001 // DMA Transfer Enable
  9385. #define USB_DMACTL4_EP_S 4
  9386. //*****************************************************************************
  9387. //
  9388. // The following are defines for the bit fields in the USB_O_DMAADDR4 register.
  9389. //
  9390. //*****************************************************************************
  9391. #define USB_DMAADDR4_ADDR_M 0xFFFFFFFC // DMA Address
  9392. #define USB_DMAADDR4_ADDR_S 2
  9393. //*****************************************************************************
  9394. //
  9395. // The following are defines for the bit fields in the USB_O_DMACOUNT4
  9396. // register.
  9397. //
  9398. //*****************************************************************************
  9399. #define USB_DMACOUNT4_COUNT_M 0xFFFFFFFC // DMA Count
  9400. #define USB_DMACOUNT4_COUNT_S 2
  9401. //*****************************************************************************
  9402. //
  9403. // The following are defines for the bit fields in the USB_O_DMACTL5 register.
  9404. //
  9405. //*****************************************************************************
  9406. #define USB_DMACTL5_BRSTM_M 0x00000600 // Burst Mode
  9407. #define USB_DMACTL5_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9408. #define USB_DMACTL5_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9409. #define USB_DMACTL5_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9410. // length
  9411. #define USB_DMACTL5_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9412. // unspecified length
  9413. #define USB_DMACTL5_ERR 0x00000100 // Bus Error Bit
  9414. #define USB_DMACTL5_EP_M 0x000000F0 // Endpoint number
  9415. #define USB_DMACTL5_IE 0x00000008 // DMA Interrupt Enable
  9416. #define USB_DMACTL5_MODE 0x00000004 // DMA Transfer Mode
  9417. #define USB_DMACTL5_DIR 0x00000002 // DMA Direction
  9418. #define USB_DMACTL5_ENABLE 0x00000001 // DMA Transfer Enable
  9419. #define USB_DMACTL5_EP_S 4
  9420. //*****************************************************************************
  9421. //
  9422. // The following are defines for the bit fields in the USB_O_DMAADDR5 register.
  9423. //
  9424. //*****************************************************************************
  9425. #define USB_DMAADDR5_ADDR_M 0xFFFFFFFC // DMA Address
  9426. #define USB_DMAADDR5_ADDR_S 2
  9427. //*****************************************************************************
  9428. //
  9429. // The following are defines for the bit fields in the USB_O_DMACOUNT5
  9430. // register.
  9431. //
  9432. //*****************************************************************************
  9433. #define USB_DMACOUNT5_COUNT_M 0xFFFFFFFC // DMA Count
  9434. #define USB_DMACOUNT5_COUNT_S 2
  9435. //*****************************************************************************
  9436. //
  9437. // The following are defines for the bit fields in the USB_O_DMACTL6 register.
  9438. //
  9439. //*****************************************************************************
  9440. #define USB_DMACTL6_BRSTM_M 0x00000600 // Burst Mode
  9441. #define USB_DMACTL6_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9442. #define USB_DMACTL6_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9443. #define USB_DMACTL6_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9444. // length
  9445. #define USB_DMACTL6_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9446. // unspecified length
  9447. #define USB_DMACTL6_ERR 0x00000100 // Bus Error Bit
  9448. #define USB_DMACTL6_EP_M 0x000000F0 // Endpoint number
  9449. #define USB_DMACTL6_IE 0x00000008 // DMA Interrupt Enable
  9450. #define USB_DMACTL6_MODE 0x00000004 // DMA Transfer Mode
  9451. #define USB_DMACTL6_DIR 0x00000002 // DMA Direction
  9452. #define USB_DMACTL6_ENABLE 0x00000001 // DMA Transfer Enable
  9453. #define USB_DMACTL6_EP_S 4
  9454. //*****************************************************************************
  9455. //
  9456. // The following are defines for the bit fields in the USB_O_DMAADDR6 register.
  9457. //
  9458. //*****************************************************************************
  9459. #define USB_DMAADDR6_ADDR_M 0xFFFFFFFC // DMA Address
  9460. #define USB_DMAADDR6_ADDR_S 2
  9461. //*****************************************************************************
  9462. //
  9463. // The following are defines for the bit fields in the USB_O_DMACOUNT6
  9464. // register.
  9465. //
  9466. //*****************************************************************************
  9467. #define USB_DMACOUNT6_COUNT_M 0xFFFFFFFC // DMA Count
  9468. #define USB_DMACOUNT6_COUNT_S 2
  9469. //*****************************************************************************
  9470. //
  9471. // The following are defines for the bit fields in the USB_O_DMACTL7 register.
  9472. //
  9473. //*****************************************************************************
  9474. #define USB_DMACTL7_BRSTM_M 0x00000600 // Burst Mode
  9475. #define USB_DMACTL7_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9476. #define USB_DMACTL7_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9477. #define USB_DMACTL7_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9478. // length
  9479. #define USB_DMACTL7_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9480. // unspecified length
  9481. #define USB_DMACTL7_ERR 0x00000100 // Bus Error Bit
  9482. #define USB_DMACTL7_EP_M 0x000000F0 // Endpoint number
  9483. #define USB_DMACTL7_IE 0x00000008 // DMA Interrupt Enable
  9484. #define USB_DMACTL7_MODE 0x00000004 // DMA Transfer Mode
  9485. #define USB_DMACTL7_DIR 0x00000002 // DMA Direction
  9486. #define USB_DMACTL7_ENABLE 0x00000001 // DMA Transfer Enable
  9487. #define USB_DMACTL7_EP_S 4
  9488. //*****************************************************************************
  9489. //
  9490. // The following are defines for the bit fields in the USB_O_DMAADDR7 register.
  9491. //
  9492. //*****************************************************************************
  9493. #define USB_DMAADDR7_ADDR_M 0xFFFFFFFC // DMA Address
  9494. #define USB_DMAADDR7_ADDR_S 2
  9495. //*****************************************************************************
  9496. //
  9497. // The following are defines for the bit fields in the USB_O_DMACOUNT7
  9498. // register.
  9499. //
  9500. //*****************************************************************************
  9501. #define USB_DMACOUNT7_COUNT_M 0xFFFFFFFC // DMA Count
  9502. #define USB_DMACOUNT7_COUNT_S 2
  9503. //*****************************************************************************
  9504. //
  9505. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
  9506. // register.
  9507. //
  9508. //*****************************************************************************
  9509. #define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
  9510. #define USB_RQPKTCOUNT1_S 0
  9511. //*****************************************************************************
  9512. //
  9513. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
  9514. // register.
  9515. //
  9516. //*****************************************************************************
  9517. #define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
  9518. #define USB_RQPKTCOUNT2_S 0
  9519. //*****************************************************************************
  9520. //
  9521. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
  9522. // register.
  9523. //
  9524. //*****************************************************************************
  9525. #define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
  9526. #define USB_RQPKTCOUNT3_S 0
  9527. //*****************************************************************************
  9528. //
  9529. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
  9530. // register.
  9531. //
  9532. //*****************************************************************************
  9533. #define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9534. #define USB_RQPKTCOUNT4_COUNT_S 0
  9535. //*****************************************************************************
  9536. //
  9537. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
  9538. // register.
  9539. //
  9540. //*****************************************************************************
  9541. #define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9542. #define USB_RQPKTCOUNT5_COUNT_S 0
  9543. //*****************************************************************************
  9544. //
  9545. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
  9546. // register.
  9547. //
  9548. //*****************************************************************************
  9549. #define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9550. #define USB_RQPKTCOUNT6_COUNT_S 0
  9551. //*****************************************************************************
  9552. //
  9553. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
  9554. // register.
  9555. //
  9556. //*****************************************************************************
  9557. #define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9558. #define USB_RQPKTCOUNT7_COUNT_S 0
  9559. //*****************************************************************************
  9560. //
  9561. // The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
  9562. // register.
  9563. //
  9564. //*****************************************************************************
  9565. #define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
  9566. // Disable
  9567. #define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
  9568. // Disable
  9569. #define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
  9570. // Disable
  9571. #define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
  9572. // Disable
  9573. #define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
  9574. // Disable
  9575. #define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
  9576. // Disable
  9577. #define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
  9578. // Disable
  9579. //*****************************************************************************
  9580. //
  9581. // The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
  9582. // register.
  9583. //
  9584. //*****************************************************************************
  9585. #define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
  9586. // Disable
  9587. #define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
  9588. // Disable
  9589. #define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
  9590. // Disable
  9591. #define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
  9592. // Disable
  9593. #define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
  9594. // Disable
  9595. #define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
  9596. // Disable
  9597. #define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
  9598. // Disable
  9599. //*****************************************************************************
  9600. //
  9601. // The following are defines for the bit fields in the USB_O_CTO register.
  9602. //
  9603. //*****************************************************************************
  9604. #define USB_CTO_CCTV_M 0x0000FFFF // Configurable Chirp Timeout Value
  9605. #define USB_CTO_CCTV_S 0
  9606. //*****************************************************************************
  9607. //
  9608. // The following are defines for the bit fields in the USB_O_HHSRTN register.
  9609. //
  9610. //*****************************************************************************
  9611. #define USB_HHSRTN_HHSRTN_M 0x0000FFFF // HIgh Speed to UTM Operating
  9612. // Delay
  9613. #define USB_HHSRTN_HHSRTN_S 0
  9614. //*****************************************************************************
  9615. //
  9616. // The following are defines for the bit fields in the USB_O_HSBT register.
  9617. //
  9618. //*****************************************************************************
  9619. #define USB_HSBT_HSBT_M 0x0000000F // High Speed Timeout Adder
  9620. #define USB_HSBT_HSBT_S 0
  9621. //*****************************************************************************
  9622. //
  9623. // The following are defines for the bit fields in the USB_O_LPMATTR register.
  9624. //
  9625. //*****************************************************************************
  9626. #define USB_LPMATTR_ENDPT_M 0x0000F000 // Endpoint
  9627. #define USB_LPMATTR_RMTWAK 0x00000100 // Remote Wake
  9628. #define USB_LPMATTR_HIRD_M 0x000000F0 // Host Initiated Resume Duration
  9629. #define USB_LPMATTR_LS_M 0x0000000F // Link State
  9630. #define USB_LPMATTR_LS_L1 0x00000001 // Sleep State (L1)
  9631. #define USB_LPMATTR_ENDPT_S 12
  9632. #define USB_LPMATTR_HIRD_S 4
  9633. //*****************************************************************************
  9634. //
  9635. // The following are defines for the bit fields in the USB_O_LPMCNTRL register.
  9636. //
  9637. //*****************************************************************************
  9638. #define USB_LPMCNTRL_NAK 0x00000010 // LPM NAK
  9639. #define USB_LPMCNTRL_EN_M 0x0000000C // LPM Enable
  9640. #define USB_LPMCNTRL_EN_NONE 0x00000000 // LPM and Extended transactions
  9641. // are not supported. In this case,
  9642. // the USB does not respond to LPM
  9643. // transactions and LPM
  9644. // transactions cause a timeout
  9645. #define USB_LPMCNTRL_EN_EXT 0x00000004 // LPM is not supported but
  9646. // extended transactions are
  9647. // supported. In this case, the USB
  9648. // does respond to an LPM
  9649. // transaction with a STALL
  9650. #define USB_LPMCNTRL_EN_LPMEXT 0x0000000C // The USB supports LPM extended
  9651. // transactions. In this case, the
  9652. // USB responds with a NYET or an
  9653. // ACK as determined by the value
  9654. // of TXLPM and other conditions
  9655. #define USB_LPMCNTRL_RES 0x00000002 // LPM Resume
  9656. #define USB_LPMCNTRL_TXLPM 0x00000001 // Transmit LPM Transaction Enable
  9657. //*****************************************************************************
  9658. //
  9659. // The following are defines for the bit fields in the USB_O_LPMIM register.
  9660. //
  9661. //*****************************************************************************
  9662. #define USB_LPMIM_ERR 0x00000020 // LPM Error Interrupt Mask
  9663. #define USB_LPMIM_RES 0x00000010 // LPM Resume Interrupt Mask
  9664. #define USB_LPMIM_NC 0x00000008 // LPM NC Interrupt Mask
  9665. #define USB_LPMIM_ACK 0x00000004 // LPM ACK Interrupt Mask
  9666. #define USB_LPMIM_NY 0x00000002 // LPM NY Interrupt Mask
  9667. #define USB_LPMIM_STALL 0x00000001 // LPM STALL Interrupt Mask
  9668. //*****************************************************************************
  9669. //
  9670. // The following are defines for the bit fields in the USB_O_LPMRIS register.
  9671. //
  9672. //*****************************************************************************
  9673. #define USB_LPMRIS_ERR 0x00000020 // LPM Interrupt Status
  9674. #define USB_LPMRIS_RES 0x00000010 // LPM Resume Interrupt Status
  9675. #define USB_LPMRIS_NC 0x00000008 // LPM NC Interrupt Status
  9676. #define USB_LPMRIS_ACK 0x00000004 // LPM ACK Interrupt Status
  9677. #define USB_LPMRIS_NY 0x00000002 // LPM NY Interrupt Status
  9678. #define USB_LPMRIS_LPMST 0x00000001 // LPM STALL Interrupt Status
  9679. //*****************************************************************************
  9680. //
  9681. // The following are defines for the bit fields in the USB_O_LPMFADDR register.
  9682. //
  9683. //*****************************************************************************
  9684. #define USB_LPMFADDR_ADDR_M 0x0000007F // LPM Function Address
  9685. #define USB_LPMFADDR_ADDR_S 0
  9686. //*****************************************************************************
  9687. //
  9688. // The following are defines for the bit fields in the USB_O_EPC register.
  9689. //
  9690. //*****************************************************************************
  9691. #define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
  9692. #define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
  9693. #define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
  9694. #define USB_EPC_PFLTACT_LOW 0x00000200 // Low
  9695. #define USB_EPC_PFLTACT_HIGH 0x00000300 // High
  9696. #define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
  9697. #define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
  9698. #define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
  9699. #define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
  9700. #define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
  9701. // Configuration
  9702. #define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
  9703. #define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
  9704. #define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
  9705. // (OTG only)
  9706. #define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
  9707. // (OTG only)
  9708. //*****************************************************************************
  9709. //
  9710. // The following are defines for the bit fields in the USB_O_EPCRIS register.
  9711. //
  9712. //*****************************************************************************
  9713. #define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
  9714. //*****************************************************************************
  9715. //
  9716. // The following are defines for the bit fields in the USB_O_EPCIM register.
  9717. //
  9718. //*****************************************************************************
  9719. #define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
  9720. //*****************************************************************************
  9721. //
  9722. // The following are defines for the bit fields in the USB_O_EPCISC register.
  9723. //
  9724. //*****************************************************************************
  9725. #define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
  9726. // and Clear
  9727. //*****************************************************************************
  9728. //
  9729. // The following are defines for the bit fields in the USB_O_DRRIS register.
  9730. //
  9731. //*****************************************************************************
  9732. #define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
  9733. //*****************************************************************************
  9734. //
  9735. // The following are defines for the bit fields in the USB_O_DRIM register.
  9736. //
  9737. //*****************************************************************************
  9738. #define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
  9739. //*****************************************************************************
  9740. //
  9741. // The following are defines for the bit fields in the USB_O_DRISC register.
  9742. //
  9743. //*****************************************************************************
  9744. #define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
  9745. // Clear
  9746. //*****************************************************************************
  9747. //
  9748. // The following are defines for the bit fields in the USB_O_GPCS register.
  9749. //
  9750. //*****************************************************************************
  9751. #define USB_GPCS_DEVMOD_M 0x00000007 // Device Mode
  9752. #define USB_GPCS_DEVMOD_OTG 0x00000000 // Use USB0VBUS and USB0ID pin
  9753. #define USB_GPCS_DEVMOD_HOST 0x00000002 // Force USB0VBUS and USB0ID low
  9754. #define USB_GPCS_DEVMOD_DEV 0x00000003 // Force USB0VBUS and USB0ID high
  9755. #define USB_GPCS_DEVMOD_HOSTVBUS \
  9756. 0x00000004 // Use USB0VBUS and force USB0ID
  9757. // low
  9758. #define USB_GPCS_DEVMOD_DEVVBUS 0x00000005 // Use USB0VBUS and force USB0ID
  9759. // high
  9760. //*****************************************************************************
  9761. //
  9762. // The following are defines for the bit fields in the USB_O_VDC register.
  9763. //
  9764. //*****************************************************************************
  9765. #define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
  9766. //*****************************************************************************
  9767. //
  9768. // The following are defines for the bit fields in the USB_O_VDCRIS register.
  9769. //
  9770. //*****************************************************************************
  9771. #define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
  9772. //*****************************************************************************
  9773. //
  9774. // The following are defines for the bit fields in the USB_O_VDCIM register.
  9775. //
  9776. //*****************************************************************************
  9777. #define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
  9778. //*****************************************************************************
  9779. //
  9780. // The following are defines for the bit fields in the USB_O_VDCISC register.
  9781. //
  9782. //*****************************************************************************
  9783. #define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
  9784. // Clear
  9785. //*****************************************************************************
  9786. //
  9787. // The following are defines for the bit fields in the USB_O_PP register.
  9788. //
  9789. //*****************************************************************************
  9790. #define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
  9791. #define USB_PP_USB_M 0x000000C0 // USB Capability
  9792. #define USB_PP_USB_DEVICE 0x00000040 // DEVICE
  9793. #define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
  9794. #define USB_PP_USB_OTG 0x000000C0 // OTG
  9795. #define USB_PP_ULPI 0x00000020 // ULPI Present
  9796. #define USB_PP_PHY 0x00000010 // PHY Present
  9797. #define USB_PP_TYPE_M 0x0000000F // Controller Type
  9798. #define USB_PP_TYPE_0 0x00000000 // The first-generation USB
  9799. // controller
  9800. #define USB_PP_TYPE_1 0x00000001 // Second-generation USB
  9801. // controller.The controller
  9802. // implemented in post Icestorm
  9803. // devices that use the 3.0 version
  9804. // of the Mentor controller
  9805. #define USB_PP_ECNT_S 8
  9806. //*****************************************************************************
  9807. //
  9808. // The following are defines for the bit fields in the USB_O_PC register.
  9809. //
  9810. //*****************************************************************************
  9811. #define USB_PC_ULPIEN 0x00010000 // ULPI Enable
  9812. //*****************************************************************************
  9813. //
  9814. // The following are defines for the bit fields in the USB_O_CC register.
  9815. //
  9816. //*****************************************************************************
  9817. #define USB_CC_CLKEN 0x00000200 // USB Clock Enable
  9818. #define USB_CC_CSD 0x00000100 // Clock Source/Direction
  9819. #define USB_CC_CLKDIV_M 0x0000000F // PLL Clock Divisor
  9820. #define USB_CC_CLKDIV_S 0
  9821. //*****************************************************************************
  9822. //
  9823. // The following are defines for the bit fields in the EEPROM_EESIZE register.
  9824. //
  9825. //*****************************************************************************
  9826. #define EEPROM_EESIZE_BLKCNT_M 0x07FF0000 // Number of 16-Word Blocks
  9827. #define EEPROM_EESIZE_WORDCNT_M 0x0000FFFF // Number of 32-Bit Words
  9828. #define EEPROM_EESIZE_BLKCNT_S 16
  9829. #define EEPROM_EESIZE_WORDCNT_S 0
  9830. //*****************************************************************************
  9831. //
  9832. // The following are defines for the bit fields in the EEPROM_EEBLOCK register.
  9833. //
  9834. //*****************************************************************************
  9835. #define EEPROM_EEBLOCK_BLOCK_M 0x0000FFFF // Current Block
  9836. #define EEPROM_EEBLOCK_BLOCK_S 0
  9837. //*****************************************************************************
  9838. //
  9839. // The following are defines for the bit fields in the EEPROM_EEOFFSET
  9840. // register.
  9841. //
  9842. //*****************************************************************************
  9843. #define EEPROM_EEOFFSET_OFFSET_M \
  9844. 0x0000000F // Current Address Offset
  9845. #define EEPROM_EEOFFSET_OFFSET_S \
  9846. 0
  9847. //*****************************************************************************
  9848. //
  9849. // The following are defines for the bit fields in the EEPROM_EERDWR register.
  9850. //
  9851. //*****************************************************************************
  9852. #define EEPROM_EERDWR_VALUE_M 0xFFFFFFFF // EEPROM Read or Write Data
  9853. #define EEPROM_EERDWR_VALUE_S 0
  9854. //*****************************************************************************
  9855. //
  9856. // The following are defines for the bit fields in the EEPROM_EERDWRINC
  9857. // register.
  9858. //
  9859. //*****************************************************************************
  9860. #define EEPROM_EERDWRINC_VALUE_M \
  9861. 0xFFFFFFFF // EEPROM Read or Write Data with
  9862. // Increment
  9863. #define EEPROM_EERDWRINC_VALUE_S \
  9864. 0
  9865. //*****************************************************************************
  9866. //
  9867. // The following are defines for the bit fields in the EEPROM_EEDONE register.
  9868. //
  9869. //*****************************************************************************
  9870. #define EEPROM_EEDONE_WRBUSY 0x00000020 // Write Busy
  9871. #define EEPROM_EEDONE_NOPERM 0x00000010 // Write Without Permission
  9872. #define EEPROM_EEDONE_WKCOPY 0x00000008 // Working on a Copy
  9873. #define EEPROM_EEDONE_WKERASE 0x00000004 // Working on an Erase
  9874. #define EEPROM_EEDONE_WORKING 0x00000001 // EEPROM Working
  9875. //*****************************************************************************
  9876. //
  9877. // The following are defines for the bit fields in the EEPROM_EESUPP register.
  9878. //
  9879. //*****************************************************************************
  9880. #define EEPROM_EESUPP_PRETRY 0x00000008 // Programming Must Be Retried
  9881. #define EEPROM_EESUPP_ERETRY 0x00000004 // Erase Must Be Retried
  9882. //*****************************************************************************
  9883. //
  9884. // The following are defines for the bit fields in the EEPROM_EEUNLOCK
  9885. // register.
  9886. //
  9887. //*****************************************************************************
  9888. #define EEPROM_EEUNLOCK_UNLOCK_M \
  9889. 0xFFFFFFFF // EEPROM Unlock
  9890. //*****************************************************************************
  9891. //
  9892. // The following are defines for the bit fields in the EEPROM_EEPROT register.
  9893. //
  9894. //*****************************************************************************
  9895. #define EEPROM_EEPROT_ACC 0x00000008 // Access Control
  9896. #define EEPROM_EEPROT_PROT_M 0x00000007 // Protection Control
  9897. #define EEPROM_EEPROT_PROT_RWNPW \
  9898. 0x00000000 // This setting is the default. If
  9899. // there is no password, the block
  9900. // is not protected and is readable
  9901. // and writable
  9902. #define EEPROM_EEPROT_PROT_RWPW 0x00000001 // If there is a password, the
  9903. // block is readable or writable
  9904. // only when unlocked
  9905. #define EEPROM_EEPROT_PROT_RONPW \
  9906. 0x00000002 // If there is no password, the
  9907. // block is readable, not writable
  9908. //*****************************************************************************
  9909. //
  9910. // The following are defines for the bit fields in the EEPROM_EEPASS0 register.
  9911. //
  9912. //*****************************************************************************
  9913. #define EEPROM_EEPASS0_PASS_M 0xFFFFFFFF // Password
  9914. #define EEPROM_EEPASS0_PASS_S 0
  9915. //*****************************************************************************
  9916. //
  9917. // The following are defines for the bit fields in the EEPROM_EEPASS1 register.
  9918. //
  9919. //*****************************************************************************
  9920. #define EEPROM_EEPASS1_PASS_M 0xFFFFFFFF // Password
  9921. #define EEPROM_EEPASS1_PASS_S 0
  9922. //*****************************************************************************
  9923. //
  9924. // The following are defines for the bit fields in the EEPROM_EEPASS2 register.
  9925. //
  9926. //*****************************************************************************
  9927. #define EEPROM_EEPASS2_PASS_M 0xFFFFFFFF // Password
  9928. #define EEPROM_EEPASS2_PASS_S 0
  9929. //*****************************************************************************
  9930. //
  9931. // The following are defines for the bit fields in the EEPROM_EEINT register.
  9932. //
  9933. //*****************************************************************************
  9934. #define EEPROM_EEINT_INT 0x00000001 // Interrupt Enable
  9935. //*****************************************************************************
  9936. //
  9937. // The following are defines for the bit fields in the EEPROM_EEHIDE0 register.
  9938. //
  9939. //*****************************************************************************
  9940. #define EEPROM_EEHIDE0_HN_M 0xFFFFFFFE // Hide Block
  9941. //*****************************************************************************
  9942. //
  9943. // The following are defines for the bit fields in the EEPROM_EEHIDE1 register.
  9944. //
  9945. //*****************************************************************************
  9946. #define EEPROM_EEHIDE1_HN_M 0xFFFFFFFF // Hide Block
  9947. //*****************************************************************************
  9948. //
  9949. // The following are defines for the bit fields in the EEPROM_EEHIDE2 register.
  9950. //
  9951. //*****************************************************************************
  9952. #define EEPROM_EEHIDE2_HN_M 0xFFFFFFFF // Hide Block
  9953. //*****************************************************************************
  9954. //
  9955. // The following are defines for the bit fields in the EEPROM_EEDBGME register.
  9956. //
  9957. //*****************************************************************************
  9958. #define EEPROM_EEDBGME_KEY_M 0xFFFF0000 // Erase Key
  9959. #define EEPROM_EEDBGME_ME 0x00000001 // Mass Erase
  9960. #define EEPROM_EEDBGME_KEY_S 16
  9961. //*****************************************************************************
  9962. //
  9963. // The following are defines for the bit fields in the EEPROM_PP register.
  9964. //
  9965. //*****************************************************************************
  9966. #define EEPROM_PP_SIZE_M 0x0000FFFF // EEPROM Size
  9967. #define EEPROM_PP_SIZE_64 0x00000000 // 64 bytes of EEPROM
  9968. #define EEPROM_PP_SIZE_128 0x00000001 // 128 bytes of EEPROM
  9969. #define EEPROM_PP_SIZE_256 0x00000003 // 256 bytes of EEPROM
  9970. #define EEPROM_PP_SIZE_512 0x00000007 // 512 bytes of EEPROM
  9971. #define EEPROM_PP_SIZE_1K 0x0000000F // 1 KB of EEPROM
  9972. #define EEPROM_PP_SIZE_2K 0x0000001F // 2 KB of EEPROM
  9973. #define EEPROM_PP_SIZE_3K 0x0000003F // 3 KB of EEPROM
  9974. #define EEPROM_PP_SIZE_4K 0x0000007F // 4 KB of EEPROM
  9975. #define EEPROM_PP_SIZE_5K 0x000000FF // 5 KB of EEPROM
  9976. #define EEPROM_PP_SIZE_6K 0x000001FF // 6 KB of EEPROM
  9977. //*****************************************************************************
  9978. //
  9979. // The following are defines for the bit fields in the EPI_O_CFG register.
  9980. //
  9981. //*****************************************************************************
  9982. #define EPI_CFG_INTDIV 0x00000100 // Integer Clock Divider Enable
  9983. #define EPI_CFG_BLKEN 0x00000010 // Block Enable
  9984. #define EPI_CFG_MODE_M 0x0000000F // Mode Select
  9985. #define EPI_CFG_MODE_NONE 0x00000000 // General Purpose
  9986. #define EPI_CFG_MODE_SDRAM 0x00000001 // SDRAM
  9987. #define EPI_CFG_MODE_HB8 0x00000002 // 8-Bit Host-Bus (HB8)
  9988. #define EPI_CFG_MODE_HB16 0x00000003 // 16-Bit Host-Bus (HB16)
  9989. //*****************************************************************************
  9990. //
  9991. // The following are defines for the bit fields in the EPI_O_BAUD register.
  9992. //
  9993. //*****************************************************************************
  9994. #define EPI_BAUD_COUNT1_M 0xFFFF0000 // Baud Rate Counter 1
  9995. #define EPI_BAUD_COUNT0_M 0x0000FFFF // Baud Rate Counter 0
  9996. #define EPI_BAUD_COUNT1_S 16
  9997. #define EPI_BAUD_COUNT0_S 0
  9998. //*****************************************************************************
  9999. //
  10000. // The following are defines for the bit fields in the EPI_O_BAUD2 register.
  10001. //
  10002. //*****************************************************************************
  10003. #define EPI_BAUD2_COUNT1_M 0xFFFF0000 // CS3n Baud Rate Counter 1
  10004. #define EPI_BAUD2_COUNT0_M 0x0000FFFF // CS2n Baud Rate Counter 0
  10005. #define EPI_BAUD2_COUNT1_S 16
  10006. #define EPI_BAUD2_COUNT0_S 0
  10007. //*****************************************************************************
  10008. //
  10009. // The following are defines for the bit fields in the EPI_O_HB16CFG register.
  10010. //
  10011. //*****************************************************************************
  10012. #define EPI_HB16CFG_CLKGATE 0x80000000 // Clock Gated
  10013. #define EPI_HB16CFG_CLKGATEI 0x40000000 // Clock Gated Idle
  10014. #define EPI_HB16CFG_CLKINV 0x20000000 // Invert Output Clock Enable
  10015. #define EPI_HB16CFG_RDYEN 0x10000000 // Input Ready Enable
  10016. #define EPI_HB16CFG_IRDYINV 0x08000000 // Input Ready Invert
  10017. #define EPI_HB16CFG_XFFEN 0x00800000 // External FIFO FULL Enable
  10018. #define EPI_HB16CFG_XFEEN 0x00400000 // External FIFO EMPTY Enable
  10019. #define EPI_HB16CFG_WRHIGH 0x00200000 // WRITE Strobe Polarity
  10020. #define EPI_HB16CFG_RDHIGH 0x00100000 // READ Strobe Polarity
  10021. #define EPI_HB16CFG_ALEHIGH 0x00080000 // ALE Strobe Polarity
  10022. #define EPI_HB16CFG_WRCRE 0x00040000 // PSRAM Configuration Register
  10023. // Write
  10024. #define EPI_HB16CFG_RDCRE 0x00020000 // PSRAM Configuration Register
  10025. // Read
  10026. #define EPI_HB16CFG_BURST 0x00010000 // Burst Mode
  10027. #define EPI_HB16CFG_MAXWAIT_M 0x0000FF00 // Maximum Wait
  10028. #define EPI_HB16CFG_WRWS_M 0x000000C0 // Write Wait States
  10029. #define EPI_HB16CFG_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10030. #define EPI_HB16CFG_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10031. #define EPI_HB16CFG_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10032. #define EPI_HB16CFG_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10033. #define EPI_HB16CFG_RDWS_M 0x00000030 // Read Wait States
  10034. #define EPI_HB16CFG_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10035. #define EPI_HB16CFG_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10036. #define EPI_HB16CFG_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10037. #define EPI_HB16CFG_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10038. #define EPI_HB16CFG_BSEL 0x00000004 // Byte Select Configuration
  10039. #define EPI_HB16CFG_MODE_M 0x00000003 // Host Bus Sub-Mode
  10040. #define EPI_HB16CFG_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10041. #define EPI_HB16CFG_MODE_ADNMUX 0x00000001 // ADNONMUX - D[15:0]
  10042. #define EPI_HB16CFG_MODE_SRAM 0x00000002 // Continuous Read - D[15:0]
  10043. #define EPI_HB16CFG_MODE_XFIFO 0x00000003 // XFIFO - D[15:0]
  10044. #define EPI_HB16CFG_MAXWAIT_S 8
  10045. //*****************************************************************************
  10046. //
  10047. // The following are defines for the bit fields in the EPI_O_GPCFG register.
  10048. //
  10049. //*****************************************************************************
  10050. #define EPI_GPCFG_CLKPIN 0x80000000 // Clock Pin
  10051. #define EPI_GPCFG_CLKGATE 0x40000000 // Clock Gated
  10052. #define EPI_GPCFG_FRM50 0x04000000 // 50/50 Frame
  10053. #define EPI_GPCFG_FRMCNT_M 0x03C00000 // Frame Count
  10054. #define EPI_GPCFG_WR2CYC 0x00080000 // 2-Cycle Writes
  10055. #define EPI_GPCFG_ASIZE_M 0x00000030 // Address Bus Size
  10056. #define EPI_GPCFG_ASIZE_NONE 0x00000000 // No address
  10057. #define EPI_GPCFG_ASIZE_4BIT 0x00000010 // Up to 4 bits wide
  10058. #define EPI_GPCFG_ASIZE_12BIT 0x00000020 // Up to 12 bits wide. This size
  10059. // cannot be used with 24-bit data
  10060. #define EPI_GPCFG_ASIZE_20BIT 0x00000030 // Up to 20 bits wide. This size
  10061. // cannot be used with data sizes
  10062. // other than 8
  10063. #define EPI_GPCFG_DSIZE_M 0x00000003 // Size of Data Bus
  10064. #define EPI_GPCFG_DSIZE_4BIT 0x00000000 // 8 Bits Wide (EPI0S0 to EPI0S7)
  10065. #define EPI_GPCFG_DSIZE_16BIT 0x00000001 // 16 Bits Wide (EPI0S0 to EPI0S15)
  10066. #define EPI_GPCFG_DSIZE_24BIT 0x00000002 // 24 Bits Wide (EPI0S0 to EPI0S23)
  10067. #define EPI_GPCFG_DSIZE_32BIT 0x00000003 // 32 Bits Wide (EPI0S0 to EPI0S31)
  10068. #define EPI_GPCFG_FRMCNT_S 22
  10069. //*****************************************************************************
  10070. //
  10071. // The following are defines for the bit fields in the EPI_O_SDRAMCFG register.
  10072. //
  10073. //*****************************************************************************
  10074. #define EPI_SDRAMCFG_FREQ_M 0xC0000000 // EPI Frequency Range
  10075. #define EPI_SDRAMCFG_FREQ_NONE 0x00000000 // 0 - 15 MHz
  10076. #define EPI_SDRAMCFG_FREQ_15MHZ 0x40000000 // 15 - 30 MHz
  10077. #define EPI_SDRAMCFG_FREQ_30MHZ 0x80000000 // 30 - 50 MHz
  10078. #define EPI_SDRAMCFG_RFSH_M 0x07FF0000 // Refresh Counter
  10079. #define EPI_SDRAMCFG_SLEEP 0x00000200 // Sleep Mode
  10080. #define EPI_SDRAMCFG_SIZE_M 0x00000003 // Size of SDRAM
  10081. #define EPI_SDRAMCFG_SIZE_8MB 0x00000000 // 64 megabits (8MB)
  10082. #define EPI_SDRAMCFG_SIZE_16MB 0x00000001 // 128 megabits (16MB)
  10083. #define EPI_SDRAMCFG_SIZE_32MB 0x00000002 // 256 megabits (32MB)
  10084. #define EPI_SDRAMCFG_SIZE_64MB 0x00000003 // 512 megabits (64MB)
  10085. #define EPI_SDRAMCFG_RFSH_S 16
  10086. //*****************************************************************************
  10087. //
  10088. // The following are defines for the bit fields in the EPI_O_HB8CFG register.
  10089. //
  10090. //*****************************************************************************
  10091. #define EPI_HB8CFG_CLKGATE 0x80000000 // Clock Gated
  10092. #define EPI_HB8CFG_CLKGATEI 0x40000000 // Clock Gated when Idle
  10093. #define EPI_HB8CFG_CLKINV 0x20000000 // Invert Output Clock Enable
  10094. #define EPI_HB8CFG_RDYEN 0x10000000 // Input Ready Enable
  10095. #define EPI_HB8CFG_IRDYINV 0x08000000 // Input Ready Invert
  10096. #define EPI_HB8CFG_XFFEN 0x00800000 // External FIFO FULL Enable
  10097. #define EPI_HB8CFG_XFEEN 0x00400000 // External FIFO EMPTY Enable
  10098. #define EPI_HB8CFG_WRHIGH 0x00200000 // WRITE Strobe Polarity
  10099. #define EPI_HB8CFG_RDHIGH 0x00100000 // READ Strobe Polarity
  10100. #define EPI_HB8CFG_ALEHIGH 0x00080000 // ALE Strobe Polarity
  10101. #define EPI_HB8CFG_MAXWAIT_M 0x0000FF00 // Maximum Wait
  10102. #define EPI_HB8CFG_WRWS_M 0x000000C0 // Write Wait States
  10103. #define EPI_HB8CFG_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10104. #define EPI_HB8CFG_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10105. #define EPI_HB8CFG_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10106. #define EPI_HB8CFG_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10107. #define EPI_HB8CFG_RDWS_M 0x00000030 // Read Wait States
  10108. #define EPI_HB8CFG_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10109. #define EPI_HB8CFG_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10110. #define EPI_HB8CFG_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10111. #define EPI_HB8CFG_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10112. #define EPI_HB8CFG_MODE_M 0x00000003 // Host Bus Sub-Mode
  10113. #define EPI_HB8CFG_MODE_MUX 0x00000000 // ADMUX - AD[7:0]
  10114. #define EPI_HB8CFG_MODE_NMUX 0x00000001 // ADNONMUX - D[7:0]
  10115. #define EPI_HB8CFG_MODE_SRAM 0x00000002 // Continuous Read - D[7:0]
  10116. #define EPI_HB8CFG_MODE_FIFO 0x00000003 // XFIFO - D[7:0]
  10117. #define EPI_HB8CFG_MAXWAIT_S 8
  10118. //*****************************************************************************
  10119. //
  10120. // The following are defines for the bit fields in the EPI_O_HB8CFG2 register.
  10121. //
  10122. //*****************************************************************************
  10123. #define EPI_HB8CFG2_CSCFGEXT 0x08000000 // Chip Select Extended
  10124. // Configuration
  10125. #define EPI_HB8CFG2_CSBAUD 0x04000000 // Chip Select Baud Rate and
  10126. // Multiple Sub-Mode Configuration
  10127. // enable
  10128. #define EPI_HB8CFG2_CSCFG_M 0x03000000 // Chip Select Configuration
  10129. #define EPI_HB8CFG2_CSCFG_ALE 0x00000000 // ALE Configuration
  10130. #define EPI_HB8CFG2_CSCFG_CS 0x01000000 // CSn Configuration
  10131. #define EPI_HB8CFG2_CSCFG_DCS 0x02000000 // Dual CSn Configuration
  10132. #define EPI_HB8CFG2_CSCFG_ADCS 0x03000000 // ALE with Dual CSn Configuration
  10133. #define EPI_HB8CFG2_WRHIGH 0x00200000 // CS1n WRITE Strobe Polarity
  10134. #define EPI_HB8CFG2_RDHIGH 0x00100000 // CS1n READ Strobe Polarity
  10135. #define EPI_HB8CFG2_ALEHIGH 0x00080000 // CS1n ALE Strobe Polarity
  10136. #define EPI_HB8CFG2_WRWS_M 0x000000C0 // CS1n Write Wait States
  10137. #define EPI_HB8CFG2_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10138. #define EPI_HB8CFG2_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10139. #define EPI_HB8CFG2_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10140. #define EPI_HB8CFG2_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10141. #define EPI_HB8CFG2_RDWS_M 0x00000030 // CS1n Read Wait States
  10142. #define EPI_HB8CFG2_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10143. #define EPI_HB8CFG2_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10144. #define EPI_HB8CFG2_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10145. #define EPI_HB8CFG2_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10146. #define EPI_HB8CFG2_MODE_M 0x00000003 // CS1n Host Bus Sub-Mode
  10147. #define EPI_HB8CFG2_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  10148. #define EPI_HB8CFG2_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  10149. //*****************************************************************************
  10150. //
  10151. // The following are defines for the bit fields in the EPI_O_HB16CFG2 register.
  10152. //
  10153. //*****************************************************************************
  10154. #define EPI_HB16CFG2_CSCFGEXT 0x08000000 // Chip Select Extended
  10155. // Configuration
  10156. #define EPI_HB16CFG2_CSBAUD 0x04000000 // Chip Select Baud Rate and
  10157. // Multiple Sub-Mode Configuration
  10158. // enable
  10159. #define EPI_HB16CFG2_CSCFG_M 0x03000000 // Chip Select Configuration
  10160. #define EPI_HB16CFG2_CSCFG_ALE 0x00000000 // ALE Configuration
  10161. #define EPI_HB16CFG2_CSCFG_CS 0x01000000 // CSn Configuration
  10162. #define EPI_HB16CFG2_CSCFG_DCS 0x02000000 // Dual CSn Configuration
  10163. #define EPI_HB16CFG2_CSCFG_ADCS 0x03000000 // ALE with Dual CSn Configuration
  10164. #define EPI_HB16CFG2_WRHIGH 0x00200000 // CS1n WRITE Strobe Polarity
  10165. #define EPI_HB16CFG2_RDHIGH 0x00100000 // CS1n READ Strobe Polarity
  10166. #define EPI_HB16CFG2_ALEHIGH 0x00080000 // CS1n ALE Strobe Polarity
  10167. #define EPI_HB16CFG2_WRCRE 0x00040000 // CS1n PSRAM Configuration
  10168. // Register Write
  10169. #define EPI_HB16CFG2_RDCRE 0x00020000 // CS1n PSRAM Configuration
  10170. // Register Read
  10171. #define EPI_HB16CFG2_BURST 0x00010000 // CS1n Burst Mode
  10172. #define EPI_HB16CFG2_WRWS_M 0x000000C0 // CS1n Write Wait States
  10173. #define EPI_HB16CFG2_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10174. #define EPI_HB16CFG2_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10175. #define EPI_HB16CFG2_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10176. #define EPI_HB16CFG2_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10177. #define EPI_HB16CFG2_RDWS_M 0x00000030 // CS1n Read Wait States
  10178. #define EPI_HB16CFG2_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10179. #define EPI_HB16CFG2_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10180. #define EPI_HB16CFG2_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10181. #define EPI_HB16CFG2_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10182. #define EPI_HB16CFG2_MODE_M 0x00000003 // CS1n Host Bus Sub-Mode
  10183. #define EPI_HB16CFG2_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10184. #define EPI_HB16CFG2_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  10185. //*****************************************************************************
  10186. //
  10187. // The following are defines for the bit fields in the EPI_O_ADDRMAP register.
  10188. //
  10189. //*****************************************************************************
  10190. #define EPI_ADDRMAP_ECSZ_M 0x00000C00 // External Code Size
  10191. #define EPI_ADDRMAP_ECSZ_256B 0x00000000 // 256 bytes; lower address range:
  10192. // 0x00 to 0xFF
  10193. #define EPI_ADDRMAP_ECSZ_64KB 0x00000400 // 64 KB; lower address range:
  10194. // 0x0000 to 0xFFFF
  10195. #define EPI_ADDRMAP_ECSZ_16MB 0x00000800 // 16 MB; lower address range:
  10196. // 0x00.0000 to 0xFF.FFFF
  10197. #define EPI_ADDRMAP_ECSZ_256MB 0x00000C00 // 256MB; lower address range:
  10198. // 0x000.0000 to 0x0FFF.FFFF
  10199. #define EPI_ADDRMAP_ECADR_M 0x00000300 // External Code Address
  10200. #define EPI_ADDRMAP_ECADR_NONE 0x00000000 // Not mapped
  10201. #define EPI_ADDRMAP_ECADR_1000 0x00000100 // At 0x1000.0000
  10202. #define EPI_ADDRMAP_EPSZ_M 0x000000C0 // External Peripheral Size
  10203. #define EPI_ADDRMAP_EPSZ_256B 0x00000000 // 256 bytes; lower address range:
  10204. // 0x00 to 0xFF
  10205. #define EPI_ADDRMAP_EPSZ_64KB 0x00000040 // 64 KB; lower address range:
  10206. // 0x0000 to 0xFFFF
  10207. #define EPI_ADDRMAP_EPSZ_16MB 0x00000080 // 16 MB; lower address range:
  10208. // 0x00.0000 to 0xFF.FFFF
  10209. #define EPI_ADDRMAP_EPSZ_256MB 0x000000C0 // 256 MB; lower address range:
  10210. // 0x000.0000 to 0xFFF.FFFF
  10211. #define EPI_ADDRMAP_EPADR_M 0x00000030 // External Peripheral Address
  10212. #define EPI_ADDRMAP_EPADR_NONE 0x00000000 // Not mapped
  10213. #define EPI_ADDRMAP_EPADR_A000 0x00000010 // At 0xA000.0000
  10214. #define EPI_ADDRMAP_EPADR_C000 0x00000020 // At 0xC000.0000
  10215. #define EPI_ADDRMAP_EPADR_HBQS 0x00000030 // Only to be used with Host Bus
  10216. // quad chip select. In quad chip
  10217. // select mode, CS2n maps to
  10218. // 0xA000.0000 and CS3n maps to
  10219. // 0xC000.0000
  10220. #define EPI_ADDRMAP_ERSZ_M 0x0000000C // External RAM Size
  10221. #define EPI_ADDRMAP_ERSZ_256B 0x00000000 // 256 bytes; lower address range:
  10222. // 0x00 to 0xFF
  10223. #define EPI_ADDRMAP_ERSZ_64KB 0x00000004 // 64 KB; lower address range:
  10224. // 0x0000 to 0xFFFF
  10225. #define EPI_ADDRMAP_ERSZ_16MB 0x00000008 // 16 MB; lower address range:
  10226. // 0x00.0000 to 0xFF.FFFF
  10227. #define EPI_ADDRMAP_ERSZ_256MB 0x0000000C // 256 MB; lower address range:
  10228. // 0x000.0000 to 0xFFF.FFFF
  10229. #define EPI_ADDRMAP_ERADR_M 0x00000003 // External RAM Address
  10230. #define EPI_ADDRMAP_ERADR_NONE 0x00000000 // Not mapped
  10231. #define EPI_ADDRMAP_ERADR_6000 0x00000001 // At 0x6000.0000
  10232. #define EPI_ADDRMAP_ERADR_8000 0x00000002 // At 0x8000.0000
  10233. #define EPI_ADDRMAP_ERADR_HBQS 0x00000003 // Only to be used with Host Bus
  10234. // quad chip select. In quad chip
  10235. // select mode, CS0n maps to
  10236. // 0x6000.0000 and CS1n maps to
  10237. // 0x8000.0000
  10238. //*****************************************************************************
  10239. //
  10240. // The following are defines for the bit fields in the EPI_O_RSIZE0 register.
  10241. //
  10242. //*****************************************************************************
  10243. #define EPI_RSIZE0_SIZE_M 0x00000003 // Current Size
  10244. #define EPI_RSIZE0_SIZE_8BIT 0x00000001 // Byte (8 bits)
  10245. #define EPI_RSIZE0_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  10246. #define EPI_RSIZE0_SIZE_32BIT 0x00000003 // Word (32 bits)
  10247. //*****************************************************************************
  10248. //
  10249. // The following are defines for the bit fields in the EPI_O_RADDR0 register.
  10250. //
  10251. //*****************************************************************************
  10252. #define EPI_RADDR0_ADDR_M 0xFFFFFFFF // Current Address
  10253. #define EPI_RADDR0_ADDR_S 0
  10254. //*****************************************************************************
  10255. //
  10256. // The following are defines for the bit fields in the EPI_O_RPSTD0 register.
  10257. //
  10258. //*****************************************************************************
  10259. #define EPI_RPSTD0_POSTCNT_M 0x00001FFF // Post Count
  10260. #define EPI_RPSTD0_POSTCNT_S 0
  10261. //*****************************************************************************
  10262. //
  10263. // The following are defines for the bit fields in the EPI_O_RSIZE1 register.
  10264. //
  10265. //*****************************************************************************
  10266. #define EPI_RSIZE1_SIZE_M 0x00000003 // Current Size
  10267. #define EPI_RSIZE1_SIZE_8BIT 0x00000001 // Byte (8 bits)
  10268. #define EPI_RSIZE1_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  10269. #define EPI_RSIZE1_SIZE_32BIT 0x00000003 // Word (32 bits)
  10270. //*****************************************************************************
  10271. //
  10272. // The following are defines for the bit fields in the EPI_O_RADDR1 register.
  10273. //
  10274. //*****************************************************************************
  10275. #define EPI_RADDR1_ADDR_M 0xFFFFFFFF // Current Address
  10276. #define EPI_RADDR1_ADDR_S 0
  10277. //*****************************************************************************
  10278. //
  10279. // The following are defines for the bit fields in the EPI_O_RPSTD1 register.
  10280. //
  10281. //*****************************************************************************
  10282. #define EPI_RPSTD1_POSTCNT_M 0x00001FFF // Post Count
  10283. #define EPI_RPSTD1_POSTCNT_S 0
  10284. //*****************************************************************************
  10285. //
  10286. // The following are defines for the bit fields in the EPI_O_STAT register.
  10287. //
  10288. //*****************************************************************************
  10289. #define EPI_STAT_XFFULL 0x00000100 // External FIFO Full
  10290. #define EPI_STAT_XFEMPTY 0x00000080 // External FIFO Empty
  10291. #define EPI_STAT_INITSEQ 0x00000040 // Initialization Sequence
  10292. #define EPI_STAT_WBUSY 0x00000020 // Write Busy
  10293. #define EPI_STAT_NBRBUSY 0x00000010 // Non-Blocking Read Busy
  10294. #define EPI_STAT_ACTIVE 0x00000001 // Register Active
  10295. //*****************************************************************************
  10296. //
  10297. // The following are defines for the bit fields in the EPI_O_RFIFOCNT register.
  10298. //
  10299. //*****************************************************************************
  10300. #define EPI_RFIFOCNT_COUNT_M 0x0000000F // FIFO Count
  10301. #define EPI_RFIFOCNT_COUNT_S 0
  10302. //*****************************************************************************
  10303. //
  10304. // The following are defines for the bit fields in the EPI_O_READFIFO0
  10305. // register.
  10306. //
  10307. //*****************************************************************************
  10308. #define EPI_READFIFO0_DATA_M 0xFFFFFFFF // Reads Data
  10309. #define EPI_READFIFO0_DATA_S 0
  10310. //*****************************************************************************
  10311. //
  10312. // The following are defines for the bit fields in the EPI_O_READFIFO1
  10313. // register.
  10314. //
  10315. //*****************************************************************************
  10316. #define EPI_READFIFO1_DATA_M 0xFFFFFFFF // Reads Data
  10317. #define EPI_READFIFO1_DATA_S 0
  10318. //*****************************************************************************
  10319. //
  10320. // The following are defines for the bit fields in the EPI_O_READFIFO2
  10321. // register.
  10322. //
  10323. //*****************************************************************************
  10324. #define EPI_READFIFO2_DATA_M 0xFFFFFFFF // Reads Data
  10325. #define EPI_READFIFO2_DATA_S 0
  10326. //*****************************************************************************
  10327. //
  10328. // The following are defines for the bit fields in the EPI_O_READFIFO3
  10329. // register.
  10330. //
  10331. //*****************************************************************************
  10332. #define EPI_READFIFO3_DATA_M 0xFFFFFFFF // Reads Data
  10333. #define EPI_READFIFO3_DATA_S 0
  10334. //*****************************************************************************
  10335. //
  10336. // The following are defines for the bit fields in the EPI_O_READFIFO4
  10337. // register.
  10338. //
  10339. //*****************************************************************************
  10340. #define EPI_READFIFO4_DATA_M 0xFFFFFFFF // Reads Data
  10341. #define EPI_READFIFO4_DATA_S 0
  10342. //*****************************************************************************
  10343. //
  10344. // The following are defines for the bit fields in the EPI_O_READFIFO5
  10345. // register.
  10346. //
  10347. //*****************************************************************************
  10348. #define EPI_READFIFO5_DATA_M 0xFFFFFFFF // Reads Data
  10349. #define EPI_READFIFO5_DATA_S 0
  10350. //*****************************************************************************
  10351. //
  10352. // The following are defines for the bit fields in the EPI_O_READFIFO6
  10353. // register.
  10354. //
  10355. //*****************************************************************************
  10356. #define EPI_READFIFO6_DATA_M 0xFFFFFFFF // Reads Data
  10357. #define EPI_READFIFO6_DATA_S 0
  10358. //*****************************************************************************
  10359. //
  10360. // The following are defines for the bit fields in the EPI_O_READFIFO7
  10361. // register.
  10362. //
  10363. //*****************************************************************************
  10364. #define EPI_READFIFO7_DATA_M 0xFFFFFFFF // Reads Data
  10365. #define EPI_READFIFO7_DATA_S 0
  10366. //*****************************************************************************
  10367. //
  10368. // The following are defines for the bit fields in the EPI_O_FIFOLVL register.
  10369. //
  10370. //*****************************************************************************
  10371. #define EPI_FIFOLVL_WFERR 0x00020000 // Write Full Error
  10372. #define EPI_FIFOLVL_RSERR 0x00010000 // Read Stall Error
  10373. #define EPI_FIFOLVL_WRFIFO_M 0x00000070 // Write FIFO
  10374. #define EPI_FIFOLVL_WRFIFO_EMPT 0x00000000 // Interrupt is triggered while
  10375. // WRFIFO is empty.
  10376. #define EPI_FIFOLVL_WRFIFO_2 0x00000020 // Interrupt is triggered until
  10377. // there are only two slots
  10378. // available. Thus, trigger is
  10379. // deasserted when there are two
  10380. // WRFIFO entries present. This
  10381. // configuration is optimized for
  10382. // bursts of 2
  10383. #define EPI_FIFOLVL_WRFIFO_1 0x00000030 // Interrupt is triggered until
  10384. // there is one WRFIFO entry
  10385. // available. This configuration
  10386. // expects only single writes
  10387. #define EPI_FIFOLVL_WRFIFO_NFULL \
  10388. 0x00000040 // Trigger interrupt when WRFIFO is
  10389. // not full, meaning trigger will
  10390. // continue to assert until there
  10391. // are four entries in the WRFIFO
  10392. #define EPI_FIFOLVL_RDFIFO_M 0x00000007 // Read FIFO
  10393. #define EPI_FIFOLVL_RDFIFO_1 0x00000001 // Trigger when there are 1 or more
  10394. // entries in the NBRFIFO
  10395. #define EPI_FIFOLVL_RDFIFO_2 0x00000002 // Trigger when there are 2 or more
  10396. // entries in the NBRFIFO
  10397. #define EPI_FIFOLVL_RDFIFO_4 0x00000003 // Trigger when there are 4 or more
  10398. // entries in the NBRFIFO
  10399. #define EPI_FIFOLVL_RDFIFO_6 0x00000004 // Trigger when there are 6 or more
  10400. // entries in the NBRFIFO
  10401. #define EPI_FIFOLVL_RDFIFO_7 0x00000005 // Trigger when there are 7 or more
  10402. // entries in the NBRFIFO
  10403. #define EPI_FIFOLVL_RDFIFO_8 0x00000006 // Trigger when there are 8 entries
  10404. // in the NBRFIFO
  10405. //*****************************************************************************
  10406. //
  10407. // The following are defines for the bit fields in the EPI_O_WFIFOCNT register.
  10408. //
  10409. //*****************************************************************************
  10410. #define EPI_WFIFOCNT_WTAV_M 0x00000007 // Available Write Transactions
  10411. #define EPI_WFIFOCNT_WTAV_S 0
  10412. //*****************************************************************************
  10413. //
  10414. // The following are defines for the bit fields in the EPI_O_DMATXCNT register.
  10415. //
  10416. //*****************************************************************************
  10417. #define EPI_DMATXCNT_TXCNT_M 0x0000FFFF // DMA Count
  10418. #define EPI_DMATXCNT_TXCNT_S 0
  10419. //*****************************************************************************
  10420. //
  10421. // The following are defines for the bit fields in the EPI_O_IM register.
  10422. //
  10423. //*****************************************************************************
  10424. #define EPI_IM_DMAWRIM 0x00000010 // Write uDMA Interrupt Mask
  10425. #define EPI_IM_DMARDIM 0x00000008 // Read uDMA Interrupt Mask
  10426. #define EPI_IM_WRIM 0x00000004 // Write FIFO Empty Interrupt Mask
  10427. #define EPI_IM_RDIM 0x00000002 // Read FIFO Full Interrupt Mask
  10428. #define EPI_IM_ERRIM 0x00000001 // Error Interrupt Mask
  10429. //*****************************************************************************
  10430. //
  10431. // The following are defines for the bit fields in the EPI_O_RIS register.
  10432. //
  10433. //*****************************************************************************
  10434. #define EPI_RIS_DMAWRRIS 0x00000010 // Write uDMA Raw Interrupt Status
  10435. #define EPI_RIS_DMARDRIS 0x00000008 // Read uDMA Raw Interrupt Status
  10436. #define EPI_RIS_WRRIS 0x00000004 // Write Raw Interrupt Status
  10437. #define EPI_RIS_RDRIS 0x00000002 // Read Raw Interrupt Status
  10438. #define EPI_RIS_ERRRIS 0x00000001 // Error Raw Interrupt Status
  10439. //*****************************************************************************
  10440. //
  10441. // The following are defines for the bit fields in the EPI_O_MIS register.
  10442. //
  10443. //*****************************************************************************
  10444. #define EPI_MIS_DMAWRMIS 0x00000010 // Write uDMA Masked Interrupt
  10445. // Status
  10446. #define EPI_MIS_DMARDMIS 0x00000008 // Read uDMA Masked Interrupt
  10447. // Status
  10448. #define EPI_MIS_WRMIS 0x00000004 // Write Masked Interrupt Status
  10449. #define EPI_MIS_RDMIS 0x00000002 // Read Masked Interrupt Status
  10450. #define EPI_MIS_ERRMIS 0x00000001 // Error Masked Interrupt Status
  10451. //*****************************************************************************
  10452. //
  10453. // The following are defines for the bit fields in the EPI_O_EISC register.
  10454. //
  10455. //*****************************************************************************
  10456. #define EPI_EISC_DMAWRIC 0x00000010 // Write uDMA Interrupt Clear
  10457. #define EPI_EISC_DMARDIC 0x00000008 // Read uDMA Interrupt Clear
  10458. #define EPI_EISC_WTFULL 0x00000004 // Write FIFO Full Error
  10459. #define EPI_EISC_RSTALL 0x00000002 // Read Stalled Error
  10460. #define EPI_EISC_TOUT 0x00000001 // Timeout Error
  10461. //*****************************************************************************
  10462. //
  10463. // The following are defines for the bit fields in the EPI_O_HB8CFG3 register.
  10464. //
  10465. //*****************************************************************************
  10466. #define EPI_HB8CFG3_WRHIGH 0x00200000 // CS2n WRITE Strobe Polarity
  10467. #define EPI_HB8CFG3_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10468. #define EPI_HB8CFG3_ALEHIGH 0x00080000 // CS2n ALE Strobe Polarity
  10469. #define EPI_HB8CFG3_WRWS_M 0x000000C0 // CS2n Write Wait States
  10470. #define EPI_HB8CFG3_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10471. #define EPI_HB8CFG3_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10472. #define EPI_HB8CFG3_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10473. #define EPI_HB8CFG3_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10474. #define EPI_HB8CFG3_RDWS_M 0x00000030 // CS2n Read Wait States
  10475. #define EPI_HB8CFG3_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10476. #define EPI_HB8CFG3_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10477. #define EPI_HB8CFG3_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10478. #define EPI_HB8CFG3_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10479. #define EPI_HB8CFG3_MODE_M 0x00000003 // CS2n Host Bus Sub-Mode
  10480. #define EPI_HB8CFG3_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  10481. #define EPI_HB8CFG3_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  10482. //*****************************************************************************
  10483. //
  10484. // The following are defines for the bit fields in the EPI_O_HB16CFG3 register.
  10485. //
  10486. //*****************************************************************************
  10487. #define EPI_HB16CFG3_WRHIGH 0x00200000 // CS2n WRITE Strobe Polarity
  10488. #define EPI_HB16CFG3_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10489. #define EPI_HB16CFG3_ALEHIGH 0x00080000 // CS2n ALE Strobe Polarity
  10490. #define EPI_HB16CFG3_WRCRE 0x00040000 // CS2n PSRAM Configuration
  10491. // Register Write
  10492. #define EPI_HB16CFG3_RDCRE 0x00020000 // CS2n PSRAM Configuration
  10493. // Register Read
  10494. #define EPI_HB16CFG3_BURST 0x00010000 // CS2n Burst Mode
  10495. #define EPI_HB16CFG3_WRWS_M 0x000000C0 // CS2n Write Wait States
  10496. #define EPI_HB16CFG3_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10497. #define EPI_HB16CFG3_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10498. #define EPI_HB16CFG3_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10499. #define EPI_HB16CFG3_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10500. #define EPI_HB16CFG3_RDWS_M 0x00000030 // CS2n Read Wait States
  10501. #define EPI_HB16CFG3_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10502. #define EPI_HB16CFG3_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10503. #define EPI_HB16CFG3_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10504. #define EPI_HB16CFG3_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10505. #define EPI_HB16CFG3_MODE_M 0x00000003 // CS2n Host Bus Sub-Mode
  10506. #define EPI_HB16CFG3_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10507. #define EPI_HB16CFG3_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  10508. //*****************************************************************************
  10509. //
  10510. // The following are defines for the bit fields in the EPI_O_HB16CFG4 register.
  10511. //
  10512. //*****************************************************************************
  10513. #define EPI_HB16CFG4_WRHIGH 0x00200000 // CS3n WRITE Strobe Polarity
  10514. #define EPI_HB16CFG4_RDHIGH 0x00100000 // CS3n READ Strobe Polarity
  10515. #define EPI_HB16CFG4_ALEHIGH 0x00080000 // CS3n ALE Strobe Polarity
  10516. #define EPI_HB16CFG4_WRCRE 0x00040000 // CS3n PSRAM Configuration
  10517. // Register Write
  10518. #define EPI_HB16CFG4_RDCRE 0x00020000 // CS3n PSRAM Configuration
  10519. // Register Read
  10520. #define EPI_HB16CFG4_BURST 0x00010000 // CS3n Burst Mode
  10521. #define EPI_HB16CFG4_WRWS_M 0x000000C0 // CS3n Write Wait States
  10522. #define EPI_HB16CFG4_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10523. #define EPI_HB16CFG4_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10524. #define EPI_HB16CFG4_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10525. #define EPI_HB16CFG4_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10526. #define EPI_HB16CFG4_RDWS_M 0x00000030 // CS3n Read Wait States
  10527. #define EPI_HB16CFG4_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10528. #define EPI_HB16CFG4_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10529. #define EPI_HB16CFG4_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10530. #define EPI_HB16CFG4_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10531. #define EPI_HB16CFG4_MODE_M 0x00000003 // CS3n Host Bus Sub-Mode
  10532. #define EPI_HB16CFG4_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10533. #define EPI_HB16CFG4_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  10534. //*****************************************************************************
  10535. //
  10536. // The following are defines for the bit fields in the EPI_O_HB8CFG4 register.
  10537. //
  10538. //*****************************************************************************
  10539. #define EPI_HB8CFG4_WRHIGH 0x00200000 // CS3n WRITE Strobe Polarity
  10540. #define EPI_HB8CFG4_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10541. #define EPI_HB8CFG4_ALEHIGH 0x00080000 // CS3n ALE Strobe Polarity
  10542. #define EPI_HB8CFG4_WRWS_M 0x000000C0 // CS3n Write Wait States
  10543. #define EPI_HB8CFG4_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10544. #define EPI_HB8CFG4_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10545. #define EPI_HB8CFG4_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10546. #define EPI_HB8CFG4_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10547. #define EPI_HB8CFG4_RDWS_M 0x00000030 // CS3n Read Wait States
  10548. #define EPI_HB8CFG4_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10549. #define EPI_HB8CFG4_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10550. #define EPI_HB8CFG4_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10551. #define EPI_HB8CFG4_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10552. #define EPI_HB8CFG4_MODE_M 0x00000003 // CS3n Host Bus Sub-Mode
  10553. #define EPI_HB8CFG4_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  10554. #define EPI_HB8CFG4_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  10555. //*****************************************************************************
  10556. //
  10557. // The following are defines for the bit fields in the EPI_O_HB8TIME register.
  10558. //
  10559. //*****************************************************************************
  10560. #define EPI_HB8TIME_IRDYDLY_M 0x03000000 // CS0n Input Ready Delay
  10561. #define EPI_HB8TIME_CAPWIDTH_M 0x00003000 // CS0n Inter-transfer Capture
  10562. // Width
  10563. #define EPI_HB8TIME_WRWSM 0x00000010 // Write Wait State Minus One
  10564. #define EPI_HB8TIME_RDWSM 0x00000001 // Read Wait State Minus One
  10565. #define EPI_HB8TIME_IRDYDLY_S 24
  10566. #define EPI_HB8TIME_CAPWIDTH_S 12
  10567. //*****************************************************************************
  10568. //
  10569. // The following are defines for the bit fields in the EPI_O_HB16TIME register.
  10570. //
  10571. //*****************************************************************************
  10572. #define EPI_HB16TIME_IRDYDLY_M 0x03000000 // CS0n Input Ready Delay
  10573. #define EPI_HB16TIME_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10574. #define EPI_HB16TIME_PSRAMSZ_0 0x00000000 // No row size limitation
  10575. #define EPI_HB16TIME_PSRAMSZ_128B \
  10576. 0x00010000 // 128 B
  10577. #define EPI_HB16TIME_PSRAMSZ_256B \
  10578. 0x00020000 // 256 B
  10579. #define EPI_HB16TIME_PSRAMSZ_512B \
  10580. 0x00030000 // 512 B
  10581. #define EPI_HB16TIME_PSRAMSZ_1KB \
  10582. 0x00040000 // 1024 B
  10583. #define EPI_HB16TIME_PSRAMSZ_2KB \
  10584. 0x00050000 // 2048 B
  10585. #define EPI_HB16TIME_PSRAMSZ_4KB \
  10586. 0x00060000 // 4096 B
  10587. #define EPI_HB16TIME_PSRAMSZ_8KB \
  10588. 0x00070000 // 8192 B
  10589. #define EPI_HB16TIME_CAPWIDTH_M 0x00003000 // CS0n Inter-transfer Capture
  10590. // Width
  10591. #define EPI_HB16TIME_WRWSM 0x00000010 // Write Wait State Minus One
  10592. #define EPI_HB16TIME_RDWSM 0x00000001 // Read Wait State Minus One
  10593. #define EPI_HB16TIME_IRDYDLY_S 24
  10594. #define EPI_HB16TIME_CAPWIDTH_S 12
  10595. //*****************************************************************************
  10596. //
  10597. // The following are defines for the bit fields in the EPI_O_HB8TIME2 register.
  10598. //
  10599. //*****************************************************************************
  10600. #define EPI_HB8TIME2_IRDYDLY_M 0x03000000 // CS1n Input Ready Delay
  10601. #define EPI_HB8TIME2_CAPWIDTH_M 0x00003000 // CS1n Inter-transfer Capture
  10602. // Width
  10603. #define EPI_HB8TIME2_WRWSM 0x00000010 // CS1n Write Wait State Minus One
  10604. #define EPI_HB8TIME2_RDWSM 0x00000001 // CS1n Read Wait State Minus One
  10605. #define EPI_HB8TIME2_IRDYDLY_S 24
  10606. #define EPI_HB8TIME2_CAPWIDTH_S 12
  10607. //*****************************************************************************
  10608. //
  10609. // The following are defines for the bit fields in the EPI_O_HB16TIME2
  10610. // register.
  10611. //
  10612. //*****************************************************************************
  10613. #define EPI_HB16TIME2_IRDYDLY_M 0x03000000 // CS1n Input Ready Delay
  10614. #define EPI_HB16TIME2_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10615. #define EPI_HB16TIME2_PSRAMSZ_0 0x00000000 // No row size limitation
  10616. #define EPI_HB16TIME2_PSRAMSZ_128B \
  10617. 0x00010000 // 128 B
  10618. #define EPI_HB16TIME2_PSRAMSZ_256B \
  10619. 0x00020000 // 256 B
  10620. #define EPI_HB16TIME2_PSRAMSZ_512B \
  10621. 0x00030000 // 512 B
  10622. #define EPI_HB16TIME2_PSRAMSZ_1KB \
  10623. 0x00040000 // 1024 B
  10624. #define EPI_HB16TIME2_PSRAMSZ_2KB \
  10625. 0x00050000 // 2048 B
  10626. #define EPI_HB16TIME2_PSRAMSZ_4KB \
  10627. 0x00060000 // 4096 B
  10628. #define EPI_HB16TIME2_PSRAMSZ_8KB \
  10629. 0x00070000 // 8192 B
  10630. #define EPI_HB16TIME2_CAPWIDTH_M \
  10631. 0x00003000 // CS1n Inter-transfer Capture
  10632. // Width
  10633. #define EPI_HB16TIME2_WRWSM 0x00000010 // CS1n Write Wait State Minus One
  10634. #define EPI_HB16TIME2_RDWSM 0x00000001 // CS1n Read Wait State Minus One
  10635. #define EPI_HB16TIME2_IRDYDLY_S 24
  10636. #define EPI_HB16TIME2_CAPWIDTH_S \
  10637. 12
  10638. //*****************************************************************************
  10639. //
  10640. // The following are defines for the bit fields in the EPI_O_HB16TIME3
  10641. // register.
  10642. //
  10643. //*****************************************************************************
  10644. #define EPI_HB16TIME3_IRDYDLY_M 0x03000000 // CS2n Input Ready Delay
  10645. #define EPI_HB16TIME3_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10646. #define EPI_HB16TIME3_PSRAMSZ_0 0x00000000 // No row size limitation
  10647. #define EPI_HB16TIME3_PSRAMSZ_128B \
  10648. 0x00010000 // 128 B
  10649. #define EPI_HB16TIME3_PSRAMSZ_256B \
  10650. 0x00020000 // 256 B
  10651. #define EPI_HB16TIME3_PSRAMSZ_512B \
  10652. 0x00030000 // 512 B
  10653. #define EPI_HB16TIME3_PSRAMSZ_1KB \
  10654. 0x00040000 // 1024 B
  10655. #define EPI_HB16TIME3_PSRAMSZ_2KB \
  10656. 0x00050000 // 2048 B
  10657. #define EPI_HB16TIME3_PSRAMSZ_4KB \
  10658. 0x00060000 // 4096 B
  10659. #define EPI_HB16TIME3_PSRAMSZ_8KB \
  10660. 0x00070000 // 8192 B
  10661. #define EPI_HB16TIME3_CAPWIDTH_M \
  10662. 0x00003000 // CS2n Inter-transfer Capture
  10663. // Width
  10664. #define EPI_HB16TIME3_WRWSM 0x00000010 // CS2n Write Wait State Minus One
  10665. #define EPI_HB16TIME3_RDWSM 0x00000001 // CS2n Read Wait State Minus One
  10666. #define EPI_HB16TIME3_IRDYDLY_S 24
  10667. #define EPI_HB16TIME3_CAPWIDTH_S \
  10668. 12
  10669. //*****************************************************************************
  10670. //
  10671. // The following are defines for the bit fields in the EPI_O_HB8TIME3 register.
  10672. //
  10673. //*****************************************************************************
  10674. #define EPI_HB8TIME3_IRDYDLY_M 0x03000000 // CS2n Input Ready Delay
  10675. #define EPI_HB8TIME3_CAPWIDTH_M 0x00003000 // CS2n Inter-transfer Capture
  10676. // Width
  10677. #define EPI_HB8TIME3_WRWSM 0x00000010 // CS2n Write Wait State Minus One
  10678. #define EPI_HB8TIME3_RDWSM 0x00000001 // CS2n Read Wait State Minus One
  10679. #define EPI_HB8TIME3_IRDYDLY_S 24
  10680. #define EPI_HB8TIME3_CAPWIDTH_S 12
  10681. //*****************************************************************************
  10682. //
  10683. // The following are defines for the bit fields in the EPI_O_HB8TIME4 register.
  10684. //
  10685. //*****************************************************************************
  10686. #define EPI_HB8TIME4_IRDYDLY_M 0x03000000 // CS3n Input Ready Delay
  10687. #define EPI_HB8TIME4_CAPWIDTH_M 0x00003000 // CS3n Inter-transfer Capture
  10688. // Width
  10689. #define EPI_HB8TIME4_WRWSM 0x00000010 // CS3n Write Wait State Minus One
  10690. #define EPI_HB8TIME4_RDWSM 0x00000001 // CS3n Read Wait State Minus One
  10691. #define EPI_HB8TIME4_IRDYDLY_S 24
  10692. #define EPI_HB8TIME4_CAPWIDTH_S 12
  10693. //*****************************************************************************
  10694. //
  10695. // The following are defines for the bit fields in the EPI_O_HB16TIME4
  10696. // register.
  10697. //
  10698. //*****************************************************************************
  10699. #define EPI_HB16TIME4_IRDYDLY_M 0x03000000 // CS3n Input Ready Delay
  10700. #define EPI_HB16TIME4_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10701. #define EPI_HB16TIME4_PSRAMSZ_0 0x00000000 // No row size limitation
  10702. #define EPI_HB16TIME4_PSRAMSZ_128B \
  10703. 0x00010000 // 128 B
  10704. #define EPI_HB16TIME4_PSRAMSZ_256B \
  10705. 0x00020000 // 256 B
  10706. #define EPI_HB16TIME4_PSRAMSZ_512B \
  10707. 0x00030000 // 512 B
  10708. #define EPI_HB16TIME4_PSRAMSZ_1KB \
  10709. 0x00040000 // 1024 B
  10710. #define EPI_HB16TIME4_PSRAMSZ_2KB \
  10711. 0x00050000 // 2048 B
  10712. #define EPI_HB16TIME4_PSRAMSZ_4KB \
  10713. 0x00060000 // 4096 B
  10714. #define EPI_HB16TIME4_PSRAMSZ_8KB \
  10715. 0x00070000 // 8192 B
  10716. #define EPI_HB16TIME4_CAPWIDTH_M \
  10717. 0x00003000 // CS3n Inter-transfer Capture
  10718. // Width
  10719. #define EPI_HB16TIME4_WRWSM 0x00000010 // CS3n Write Wait State Minus One
  10720. #define EPI_HB16TIME4_RDWSM 0x00000001 // CS3n Read Wait State Minus One
  10721. #define EPI_HB16TIME4_IRDYDLY_S 24
  10722. #define EPI_HB16TIME4_CAPWIDTH_S \
  10723. 12
  10724. //*****************************************************************************
  10725. //
  10726. // The following are defines for the bit fields in the EPI_O_HBPSRAM register.
  10727. //
  10728. //*****************************************************************************
  10729. #define EPI_HBPSRAM_CR_M 0x001FFFFF // PSRAM Config Register
  10730. #define EPI_HBPSRAM_CR_S 0
  10731. //*****************************************************************************
  10732. //
  10733. // The following are defines for the bit fields in the SYSEXC_RIS register.
  10734. //
  10735. //*****************************************************************************
  10736. #define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
  10737. // Raw Interrupt Status
  10738. #define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
  10739. // Exception Raw Interrupt Status
  10740. #define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
  10741. // Exception Raw Interrupt Status
  10742. #define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
  10743. // Raw Interrupt Status
  10744. #define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
  10745. // Exception Raw Interrupt Status
  10746. #define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
  10747. // Exception Raw Interrupt Status
  10748. //*****************************************************************************
  10749. //
  10750. // The following are defines for the bit fields in the SYSEXC_IM register.
  10751. //
  10752. //*****************************************************************************
  10753. #define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
  10754. // Interrupt Mask
  10755. #define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
  10756. // Exception Interrupt Mask
  10757. #define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
  10758. // Exception Interrupt Mask
  10759. #define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
  10760. // Interrupt Mask
  10761. #define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
  10762. // Exception Interrupt Mask
  10763. #define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
  10764. // Exception Interrupt Mask
  10765. //*****************************************************************************
  10766. //
  10767. // The following are defines for the bit fields in the SYSEXC_MIS register.
  10768. //
  10769. //*****************************************************************************
  10770. #define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
  10771. // Masked Interrupt Status
  10772. #define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
  10773. // Exception Masked Interrupt
  10774. // Status
  10775. #define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
  10776. // Exception Masked Interrupt
  10777. // Status
  10778. #define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
  10779. // Masked Interrupt Status
  10780. #define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
  10781. // Exception Masked Interrupt
  10782. // Status
  10783. #define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
  10784. // Exception Masked Interrupt
  10785. // Status
  10786. //*****************************************************************************
  10787. //
  10788. // The following are defines for the bit fields in the SYSEXC_IC register.
  10789. //
  10790. //*****************************************************************************
  10791. #define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
  10792. // Interrupt Clear
  10793. #define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
  10794. // Exception Interrupt Clear
  10795. #define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
  10796. // Exception Interrupt Clear
  10797. #define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
  10798. // Interrupt Clear
  10799. #define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
  10800. // Exception Interrupt Clear
  10801. #define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
  10802. // Exception Interrupt Clear
  10803. //*****************************************************************************
  10804. //
  10805. // The following are defines for the bit fields in the HIB_RTCC register.
  10806. //
  10807. //*****************************************************************************
  10808. #define HIB_RTCC_M 0xFFFFFFFF // RTC Counter
  10809. #define HIB_RTCC_S 0
  10810. //*****************************************************************************
  10811. //
  10812. // The following are defines for the bit fields in the HIB_RTCM0 register.
  10813. //
  10814. //*****************************************************************************
  10815. #define HIB_RTCM0_M 0xFFFFFFFF // RTC Match 0
  10816. #define HIB_RTCM0_S 0
  10817. //*****************************************************************************
  10818. //
  10819. // The following are defines for the bit fields in the HIB_RTCLD register.
  10820. //
  10821. //*****************************************************************************
  10822. #define HIB_RTCLD_M 0xFFFFFFFF // RTC Load
  10823. #define HIB_RTCLD_S 0
  10824. //*****************************************************************************
  10825. //
  10826. // The following are defines for the bit fields in the HIB_CTL register.
  10827. //
  10828. //*****************************************************************************
  10829. #define HIB_CTL_WRC 0x80000000 // Write Complete/Capable
  10830. #define HIB_CTL_RETCLR 0x40000000 // GPIO Retention/Clear
  10831. #define HIB_CTL_OSCSEL 0x00080000 // Oscillator Select
  10832. #define HIB_CTL_OSCDRV 0x00020000 // Oscillator Drive Capability
  10833. #define HIB_CTL_OSCBYP 0x00010000 // Oscillator Bypass
  10834. #define HIB_CTL_VBATSEL_M 0x00006000 // Select for Low-Battery
  10835. // Comparator
  10836. #define HIB_CTL_VBATSEL_1_9V 0x00000000 // 1.9 Volts
  10837. #define HIB_CTL_VBATSEL_2_1V 0x00002000 // 2.1 Volts (default)
  10838. #define HIB_CTL_VBATSEL_2_3V 0x00004000 // 2.3 Volts
  10839. #define HIB_CTL_VBATSEL_2_5V 0x00006000 // 2.5 Volts
  10840. #define HIB_CTL_BATCHK 0x00000400 // Check Battery Status
  10841. #define HIB_CTL_BATWKEN 0x00000200 // Wake on Low Battery
  10842. #define HIB_CTL_VDD3ON 0x00000100 // VDD Powered
  10843. #define HIB_CTL_VABORT 0x00000080 // Power Cut Abort Enable
  10844. #define HIB_CTL_CLK32EN 0x00000040 // Clocking Enable
  10845. #define HIB_CTL_PINWEN 0x00000010 // External Wake Pin Enable
  10846. #define HIB_CTL_RTCWEN 0x00000008 // RTC Wake-up Enable
  10847. #define HIB_CTL_HIBREQ 0x00000002 // Hibernation Request
  10848. #define HIB_CTL_RTCEN 0x00000001 // RTC Timer Enable
  10849. //*****************************************************************************
  10850. //
  10851. // The following are defines for the bit fields in the HIB_IM register.
  10852. //
  10853. //*****************************************************************************
  10854. #define HIB_IM_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  10855. #define HIB_IM_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10856. // Mask
  10857. #define HIB_IM_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  10858. #define HIB_IM_WC 0x00000010 // External Write Complete/Capable
  10859. // Interrupt Mask
  10860. #define HIB_IM_EXTW 0x00000008 // External Wake-Up Interrupt Mask
  10861. #define HIB_IM_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  10862. // Mask
  10863. #define HIB_IM_RTCALT0 0x00000001 // RTC Alert 0 Interrupt Mask
  10864. //*****************************************************************************
  10865. //
  10866. // The following are defines for the bit fields in the HIB_RIS register.
  10867. //
  10868. //*****************************************************************************
  10869. #define HIB_RIS_VDDFAIL 0x00000080 // VDD Fail Raw Interrupt Status
  10870. #define HIB_RIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Raw
  10871. // Interrupt Status
  10872. #define HIB_RIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Raw Interrupt
  10873. // Status
  10874. #define HIB_RIS_WC 0x00000010 // Write Complete/Capable Raw
  10875. // Interrupt Status
  10876. #define HIB_RIS_EXTW 0x00000008 // External Wake-Up Raw Interrupt
  10877. // Status
  10878. #define HIB_RIS_LOWBAT 0x00000004 // Low Battery Voltage Raw
  10879. // Interrupt Status
  10880. #define HIB_RIS_RTCALT0 0x00000001 // RTC Alert 0 Raw Interrupt Status
  10881. //*****************************************************************************
  10882. //
  10883. // The following are defines for the bit fields in the HIB_MIS register.
  10884. //
  10885. //*****************************************************************************
  10886. #define HIB_MIS_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  10887. #define HIB_MIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10888. // Mask
  10889. #define HIB_MIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  10890. #define HIB_MIS_WC 0x00000010 // Write Complete/Capable Masked
  10891. // Interrupt Status
  10892. #define HIB_MIS_EXTW 0x00000008 // External Wake-Up Masked
  10893. // Interrupt Status
  10894. #define HIB_MIS_LOWBAT 0x00000004 // Low Battery Voltage Masked
  10895. // Interrupt Status
  10896. #define HIB_MIS_RTCALT0 0x00000001 // RTC Alert 0 Masked Interrupt
  10897. // Status
  10898. //*****************************************************************************
  10899. //
  10900. // The following are defines for the bit fields in the HIB_IC register.
  10901. //
  10902. //*****************************************************************************
  10903. #define HIB_IC_VDDFAIL 0x00000080 // VDD Fail Interrupt Clear
  10904. #define HIB_IC_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10905. // Clear
  10906. #define HIB_IC_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Clear
  10907. #define HIB_IC_WC 0x00000010 // Write Complete/Capable Interrupt
  10908. // Clear
  10909. #define HIB_IC_EXTW 0x00000008 // External Wake-Up Interrupt Clear
  10910. #define HIB_IC_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  10911. // Clear
  10912. #define HIB_IC_RTCALT0 0x00000001 // RTC Alert0 Masked Interrupt
  10913. // Clear
  10914. //*****************************************************************************
  10915. //
  10916. // The following are defines for the bit fields in the HIB_RTCT register.
  10917. //
  10918. //*****************************************************************************
  10919. #define HIB_RTCT_TRIM_M 0x0000FFFF // RTC Trim Value
  10920. #define HIB_RTCT_TRIM_S 0
  10921. //*****************************************************************************
  10922. //
  10923. // The following are defines for the bit fields in the HIB_RTCSS register.
  10924. //
  10925. //*****************************************************************************
  10926. #define HIB_RTCSS_RTCSSM_M 0x7FFF0000 // RTC Sub Seconds Match
  10927. #define HIB_RTCSS_RTCSSC_M 0x00007FFF // RTC Sub Seconds Count
  10928. #define HIB_RTCSS_RTCSSM_S 16
  10929. #define HIB_RTCSS_RTCSSC_S 0
  10930. //*****************************************************************************
  10931. //
  10932. // The following are defines for the bit fields in the HIB_IO register.
  10933. //
  10934. //*****************************************************************************
  10935. #define HIB_IO_IOWRC 0x80000000 // I/O Write Complete
  10936. #define HIB_IO_WURSTEN 0x00000010 // Reset Wake Source Enable
  10937. #define HIB_IO_WUUNLK 0x00000001 // I/O Wake Pad Configuration
  10938. // Enable
  10939. //*****************************************************************************
  10940. //
  10941. // The following are defines for the bit fields in the HIB_DATA register.
  10942. //
  10943. //*****************************************************************************
  10944. #define HIB_DATA_RTD_M 0xFFFFFFFF // Hibernation Module NV Data
  10945. #define HIB_DATA_RTD_S 0
  10946. //*****************************************************************************
  10947. //
  10948. // The following are defines for the bit fields in the HIB_CALCTL register.
  10949. //
  10950. //*****************************************************************************
  10951. #define HIB_CALCTL_CAL24 0x00000004 // Calendar Mode
  10952. #define HIB_CALCTL_CALEN 0x00000001 // RTC Calendar/Counter Mode Select
  10953. //*****************************************************************************
  10954. //
  10955. // The following are defines for the bit fields in the HIB_CAL0 register.
  10956. //
  10957. //*****************************************************************************
  10958. #define HIB_CAL0_VALID 0x80000000 // Valid Calendar Load
  10959. #define HIB_CAL0_AMPM 0x00400000 // AM/PM Designation
  10960. #define HIB_CAL0_HR_M 0x001F0000 // Hours
  10961. #define HIB_CAL0_MIN_M 0x00003F00 // Minutes
  10962. #define HIB_CAL0_SEC_M 0x0000003F // Seconds
  10963. #define HIB_CAL0_HR_S 16
  10964. #define HIB_CAL0_MIN_S 8
  10965. #define HIB_CAL0_SEC_S 0
  10966. //*****************************************************************************
  10967. //
  10968. // The following are defines for the bit fields in the HIB_CAL1 register.
  10969. //
  10970. //*****************************************************************************
  10971. #define HIB_CAL1_VALID 0x80000000 // Valid Calendar Load
  10972. #define HIB_CAL1_DOW_M 0x07000000 // Day of Week
  10973. #define HIB_CAL1_YEAR_M 0x007F0000 // Year Value
  10974. #define HIB_CAL1_MON_M 0x00000F00 // Month
  10975. #define HIB_CAL1_DOM_M 0x0000001F // Day of Month
  10976. #define HIB_CAL1_DOW_S 24
  10977. #define HIB_CAL1_YEAR_S 16
  10978. #define HIB_CAL1_MON_S 8
  10979. #define HIB_CAL1_DOM_S 0
  10980. //*****************************************************************************
  10981. //
  10982. // The following are defines for the bit fields in the HIB_CALLD0 register.
  10983. //
  10984. //*****************************************************************************
  10985. #define HIB_CALLD0_AMPM 0x00400000 // AM/PM Designation
  10986. #define HIB_CALLD0_HR_M 0x001F0000 // Hours
  10987. #define HIB_CALLD0_MIN_M 0x00003F00 // Minutes
  10988. #define HIB_CALLD0_SEC_M 0x0000003F // Seconds
  10989. #define HIB_CALLD0_HR_S 16
  10990. #define HIB_CALLD0_MIN_S 8
  10991. #define HIB_CALLD0_SEC_S 0
  10992. //*****************************************************************************
  10993. //
  10994. // The following are defines for the bit fields in the HIB_CALLD1 register.
  10995. //
  10996. //*****************************************************************************
  10997. #define HIB_CALLD1_DOW_M 0x07000000 // Day of Week
  10998. #define HIB_CALLD1_YEAR_M 0x007F0000 // Year Value
  10999. #define HIB_CALLD1_MON_M 0x00000F00 // Month
  11000. #define HIB_CALLD1_DOM_M 0x0000001F // Day of Month
  11001. #define HIB_CALLD1_DOW_S 24
  11002. #define HIB_CALLD1_YEAR_S 16
  11003. #define HIB_CALLD1_MON_S 8
  11004. #define HIB_CALLD1_DOM_S 0
  11005. //*****************************************************************************
  11006. //
  11007. // The following are defines for the bit fields in the HIB_CALM0 register.
  11008. //
  11009. //*****************************************************************************
  11010. #define HIB_CALM0_AMPM 0x00400000 // AM/PM Designation
  11011. #define HIB_CALM0_HR_M 0x001F0000 // Hours
  11012. #define HIB_CALM0_MIN_M 0x00003F00 // Minutes
  11013. #define HIB_CALM0_SEC_M 0x0000003F // Seconds
  11014. #define HIB_CALM0_HR_S 16
  11015. #define HIB_CALM0_MIN_S 8
  11016. #define HIB_CALM0_SEC_S 0
  11017. //*****************************************************************************
  11018. //
  11019. // The following are defines for the bit fields in the HIB_CALM1 register.
  11020. //
  11021. //*****************************************************************************
  11022. #define HIB_CALM1_DOM_M 0x0000001F // Day of Month
  11023. #define HIB_CALM1_DOM_S 0
  11024. //*****************************************************************************
  11025. //
  11026. // The following are defines for the bit fields in the HIB_LOCK register.
  11027. //
  11028. //*****************************************************************************
  11029. #define HIB_LOCK_HIBLOCK_M 0xFFFFFFFF // HIbernate Lock
  11030. #define HIB_LOCK_HIBLOCK_S 0
  11031. //*****************************************************************************
  11032. //
  11033. // The following are defines for the bit fields in the HIB_TPCTL register.
  11034. //
  11035. //*****************************************************************************
  11036. #define HIB_TPCTL_WAKE 0x00000800 // Wake from Hibernate on a Tamper
  11037. // Event
  11038. #define HIB_TPCTL_MEMCLR_M 0x00000300 // HIB Memory Clear on Tamper Event
  11039. #define HIB_TPCTL_MEMCLR_NONE 0x00000000 // Do not Clear HIB memory on
  11040. // tamper event
  11041. #define HIB_TPCTL_MEMCLR_LOW32 0x00000100 // Clear Lower 32 Bytes of HIB
  11042. // memory on tamper event
  11043. #define HIB_TPCTL_MEMCLR_HIGH32 0x00000200 // Clear upper 32 Bytes of HIB
  11044. // memory on tamper event
  11045. #define HIB_TPCTL_MEMCLR_ALL 0x00000300 // Clear all HIB memory on tamper
  11046. // event
  11047. #define HIB_TPCTL_TPCLR 0x00000010 // Tamper Event Clear
  11048. #define HIB_TPCTL_TPEN 0x00000001 // Tamper Module Enable
  11049. //*****************************************************************************
  11050. //
  11051. // The following are defines for the bit fields in the HIB_TPSTAT register.
  11052. //
  11053. //*****************************************************************************
  11054. #define HIB_TPSTAT_STATE_M 0x0000000C // Tamper Module Status
  11055. #define HIB_TPSTAT_STATE_DISABLED \
  11056. 0x00000000 // Tamper disabled
  11057. #define HIB_TPSTAT_STATE_CONFIGED \
  11058. 0x00000004 // Tamper configured
  11059. #define HIB_TPSTAT_STATE_ERROR 0x00000008 // Tamper pin event occurred
  11060. #define HIB_TPSTAT_XOSCST 0x00000002 // External Oscillator Status
  11061. #define HIB_TPSTAT_XOSCFAIL 0x00000001 // External Oscillator Failure
  11062. //*****************************************************************************
  11063. //
  11064. // The following are defines for the bit fields in the HIB_TPIO register.
  11065. //
  11066. //*****************************************************************************
  11067. #define HIB_TPIO_GFLTR3 0x08000000 // TMPR3 Glitch Filtering
  11068. #define HIB_TPIO_PUEN3 0x04000000 // TMPR3 Internal Weak Pull-up
  11069. // Enable
  11070. #define HIB_TPIO_LEV3 0x02000000 // TMPR3 Trigger Level
  11071. #define HIB_TPIO_EN3 0x01000000 // TMPR3 Enable
  11072. #define HIB_TPIO_GFLTR2 0x00080000 // TMPR2 Glitch Filtering
  11073. #define HIB_TPIO_PUEN2 0x00040000 // TMPR2 Internal Weak Pull-up
  11074. // Enable
  11075. #define HIB_TPIO_LEV2 0x00020000 // TMPR2 Trigger Level
  11076. #define HIB_TPIO_EN2 0x00010000 // TMPR2 Enable
  11077. #define HIB_TPIO_GFLTR1 0x00000800 // TMPR1 Glitch Filtering
  11078. #define HIB_TPIO_PUEN1 0x00000400 // TMPR1 Internal Weak Pull-up
  11079. // Enable
  11080. #define HIB_TPIO_LEV1 0x00000200 // TMPR1 Trigger Level
  11081. #define HIB_TPIO_EN1 0x00000100 // TMPR1Enable
  11082. #define HIB_TPIO_GFLTR0 0x00000008 // TMPR0 Glitch Filtering
  11083. #define HIB_TPIO_PUEN0 0x00000004 // TMPR0 Internal Weak Pull-up
  11084. // Enable
  11085. #define HIB_TPIO_LEV0 0x00000002 // TMPR0 Trigger Level
  11086. #define HIB_TPIO_EN0 0x00000001 // TMPR0 Enable
  11087. //*****************************************************************************
  11088. //
  11089. // The following are defines for the bit fields in the HIB_TPLOG0 register.
  11090. //
  11091. //*****************************************************************************
  11092. #define HIB_TPLOG0_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  11093. #define HIB_TPLOG0_TIME_S 0
  11094. //*****************************************************************************
  11095. //
  11096. // The following are defines for the bit fields in the HIB_TPLOG1 register.
  11097. //
  11098. //*****************************************************************************
  11099. #define HIB_TPLOG1_XOSC 0x00010000 // Status of external 32
  11100. #define HIB_TPLOG1_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  11101. #define HIB_TPLOG1_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  11102. #define HIB_TPLOG1_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  11103. #define HIB_TPLOG1_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  11104. //*****************************************************************************
  11105. //
  11106. // The following are defines for the bit fields in the HIB_TPLOG2 register.
  11107. //
  11108. //*****************************************************************************
  11109. #define HIB_TPLOG2_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  11110. #define HIB_TPLOG2_TIME_S 0
  11111. //*****************************************************************************
  11112. //
  11113. // The following are defines for the bit fields in the HIB_TPLOG3 register.
  11114. //
  11115. //*****************************************************************************
  11116. #define HIB_TPLOG3_XOSC 0x00010000 // Status of external 32
  11117. #define HIB_TPLOG3_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  11118. #define HIB_TPLOG3_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  11119. #define HIB_TPLOG3_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  11120. #define HIB_TPLOG3_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  11121. //*****************************************************************************
  11122. //
  11123. // The following are defines for the bit fields in the HIB_TPLOG4 register.
  11124. //
  11125. //*****************************************************************************
  11126. #define HIB_TPLOG4_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  11127. #define HIB_TPLOG4_TIME_S 0
  11128. //*****************************************************************************
  11129. //
  11130. // The following are defines for the bit fields in the HIB_TPLOG5 register.
  11131. //
  11132. //*****************************************************************************
  11133. #define HIB_TPLOG5_XOSC 0x00010000 // Status of external 32
  11134. #define HIB_TPLOG5_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  11135. #define HIB_TPLOG5_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  11136. #define HIB_TPLOG5_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  11137. #define HIB_TPLOG5_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  11138. //*****************************************************************************
  11139. //
  11140. // The following are defines for the bit fields in the HIB_TPLOG6 register.
  11141. //
  11142. //*****************************************************************************
  11143. #define HIB_TPLOG6_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  11144. #define HIB_TPLOG6_TIME_S 0
  11145. //*****************************************************************************
  11146. //
  11147. // The following are defines for the bit fields in the HIB_TPLOG7 register.
  11148. //
  11149. //*****************************************************************************
  11150. #define HIB_TPLOG7_XOSC 0x00010000 // Status of external 32
  11151. #define HIB_TPLOG7_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  11152. #define HIB_TPLOG7_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  11153. #define HIB_TPLOG7_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  11154. #define HIB_TPLOG7_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  11155. //*****************************************************************************
  11156. //
  11157. // The following are defines for the bit fields in the HIB_PP register.
  11158. //
  11159. //*****************************************************************************
  11160. #define HIB_PP_TAMPER 0x00000002 // Tamper Pin Presence
  11161. #define HIB_PP_WAKENC 0x00000001 // Wake Pin Presence
  11162. //*****************************************************************************
  11163. //
  11164. // The following are defines for the bit fields in the HIB_CC register.
  11165. //
  11166. //*****************************************************************************
  11167. #define HIB_CC_SYSCLKEN 0x00000001 // RTCOSC to System Clock Enable
  11168. //*****************************************************************************
  11169. //
  11170. // The following are defines for the bit fields in the FLASH_FMA register.
  11171. //
  11172. //*****************************************************************************
  11173. #define FLASH_FMA_OFFSET_M 0x000FFFFF // Address Offset
  11174. #define FLASH_FMA_OFFSET_S 0
  11175. //*****************************************************************************
  11176. //
  11177. // The following are defines for the bit fields in the FLASH_FMD register.
  11178. //
  11179. //*****************************************************************************
  11180. #define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
  11181. #define FLASH_FMD_DATA_S 0
  11182. //*****************************************************************************
  11183. //
  11184. // The following are defines for the bit fields in the FLASH_FMC register.
  11185. //
  11186. //*****************************************************************************
  11187. #define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
  11188. #define FLASH_FMC_COMT 0x00000008 // Commit Register Value
  11189. #define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
  11190. #define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
  11191. #define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
  11192. //*****************************************************************************
  11193. //
  11194. // The following are defines for the bit fields in the FLASH_FCRIS register.
  11195. //
  11196. //*****************************************************************************
  11197. #define FLASH_FCRIS_PROGRIS 0x00002000 // Program Verify Error Raw
  11198. // Interrupt Status
  11199. #define FLASH_FCRIS_ERRIS 0x00000800 // Erase Verify Error Raw Interrupt
  11200. // Status
  11201. #define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
  11202. // Status
  11203. #define FLASH_FCRIS_VOLTRIS 0x00000200 // Pump Voltage Raw Interrupt
  11204. // Status
  11205. #define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
  11206. #define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
  11207. #define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
  11208. //*****************************************************************************
  11209. //
  11210. // The following are defines for the bit fields in the FLASH_FCIM register.
  11211. //
  11212. //*****************************************************************************
  11213. #define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
  11214. #define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
  11215. #define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
  11216. #define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
  11217. #define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
  11218. #define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
  11219. #define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
  11220. //*****************************************************************************
  11221. //
  11222. // The following are defines for the bit fields in the FLASH_FCMISC register.
  11223. //
  11224. //*****************************************************************************
  11225. #define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
  11226. // and Clear
  11227. #define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
  11228. // and Clear
  11229. #define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
  11230. // Status and Clear
  11231. #define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
  11232. // Clear
  11233. #define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
  11234. // and Clear
  11235. #define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
  11236. // Status and Clear
  11237. #define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
  11238. // and Clear
  11239. //*****************************************************************************
  11240. //
  11241. // The following are defines for the bit fields in the FLASH_FMC2 register.
  11242. //
  11243. //*****************************************************************************
  11244. #define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
  11245. //*****************************************************************************
  11246. //
  11247. // The following are defines for the bit fields in the FLASH_FWBVAL register.
  11248. //
  11249. //*****************************************************************************
  11250. #define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
  11251. //*****************************************************************************
  11252. //
  11253. // The following are defines for the bit fields in the FLASH_FLPEKEY register.
  11254. //
  11255. //*****************************************************************************
  11256. #define FLASH_FLPEKEY_PEKEY_M 0x0000FFFF // Key Value
  11257. #define FLASH_FLPEKEY_PEKEY_S 0
  11258. //*****************************************************************************
  11259. //
  11260. // The following are defines for the bit fields in the FLASH_FWBN register.
  11261. //
  11262. //*****************************************************************************
  11263. #define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
  11264. //*****************************************************************************
  11265. //
  11266. // The following are defines for the bit fields in the FLASH_PP register.
  11267. //
  11268. //*****************************************************************************
  11269. #define FLASH_PP_PFC 0x40000000 // Prefetch Buffer Mode
  11270. #define FLASH_PP_FMM 0x20000000 // Flash Mirror Mode
  11271. #define FLASH_PP_DFA 0x10000000 // DMA Flash Access
  11272. #define FLASH_PP_EESS_M 0x00780000 // EEPROM Sector Size of the
  11273. // physical bank
  11274. #define FLASH_PP_EESS_1KB 0x00000000 // 1 KB
  11275. #define FLASH_PP_EESS_2KB 0x00080000 // 2 KB
  11276. #define FLASH_PP_EESS_4KB 0x00100000 // 4 KB
  11277. #define FLASH_PP_EESS_8KB 0x00180000 // 8 KB
  11278. #define FLASH_PP_MAINSS_M 0x00070000 // Flash Sector Size of the
  11279. // physical bank
  11280. #define FLASH_PP_MAINSS_1KB 0x00000000 // 1 KB
  11281. #define FLASH_PP_MAINSS_2KB 0x00010000 // 2 KB
  11282. #define FLASH_PP_MAINSS_4KB 0x00020000 // 4 KB
  11283. #define FLASH_PP_MAINSS_8KB 0x00030000 // 8 KB
  11284. #define FLASH_PP_MAINSS_16KB 0x00040000 // 16 KB
  11285. #define FLASH_PP_SIZE_M 0x0000FFFF // Flash Size
  11286. #define FLASH_PP_SIZE_1MB 0x000001FF // 1024 KB of Flash
  11287. //*****************************************************************************
  11288. //
  11289. // The following are defines for the bit fields in the FLASH_SSIZE register.
  11290. //
  11291. //*****************************************************************************
  11292. #define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
  11293. #define FLASH_SSIZE_SIZE_256KB 0x000003FF // 256 KB of SRAM
  11294. //*****************************************************************************
  11295. //
  11296. // The following are defines for the bit fields in the FLASH_CONF register.
  11297. //
  11298. //*****************************************************************************
  11299. #define FLASH_CONF_FMME 0x40000000 // Flash Mirror Mode Enable
  11300. #define FLASH_CONF_SPFE 0x20000000 // Single Prefetch Mode Enable
  11301. #define FLASH_CONF_CLRTV 0x00100000 // Clear Valid Tags
  11302. #define FLASH_CONF_FPFON 0x00020000 // Force Prefetch On
  11303. #define FLASH_CONF_FPFOFF 0x00010000 // Force Prefetch Off
  11304. //*****************************************************************************
  11305. //
  11306. // The following are defines for the bit fields in the FLASH_ROMSWMAP register.
  11307. //
  11308. //*****************************************************************************
  11309. #define FLASH_ROMSWMAP_SW7EN_M 0x0000C000 // ROM SW Region 7 Availability
  11310. #define FLASH_ROMSWMAP_SW7EN_NOTVIS \
  11311. 0x00000000 // Software region not available to
  11312. // the core
  11313. #define FLASH_ROMSWMAP_SW7EN_CORE \
  11314. 0x00004000 // Region available to core
  11315. #define FLASH_ROMSWMAP_SW6EN_M 0x00003000 // ROM SW Region 6 Availability
  11316. #define FLASH_ROMSWMAP_SW6EN_NOTVIS \
  11317. 0x00000000 // Software region not available to
  11318. // the core
  11319. #define FLASH_ROMSWMAP_SW6EN_CORE \
  11320. 0x00001000 // Region available to core
  11321. #define FLASH_ROMSWMAP_SW5EN_M 0x00000C00 // ROM SW Region 5 Availability
  11322. #define FLASH_ROMSWMAP_SW5EN_NOTVIS \
  11323. 0x00000000 // Software region not available to
  11324. // the core
  11325. #define FLASH_ROMSWMAP_SW5EN_CORE \
  11326. 0x00000400 // Region available to core
  11327. #define FLASH_ROMSWMAP_SW4EN_M 0x00000300 // ROM SW Region 4 Availability
  11328. #define FLASH_ROMSWMAP_SW4EN_NOTVIS \
  11329. 0x00000000 // Software region not available to
  11330. // the core
  11331. #define FLASH_ROMSWMAP_SW4EN_CORE \
  11332. 0x00000100 // Region available to core
  11333. #define FLASH_ROMSWMAP_SW3EN_M 0x000000C0 // ROM SW Region 3 Availability
  11334. #define FLASH_ROMSWMAP_SW3EN_NOTVIS \
  11335. 0x00000000 // Software region not available to
  11336. // the core
  11337. #define FLASH_ROMSWMAP_SW3EN_CORE \
  11338. 0x00000040 // Region available to core
  11339. #define FLASH_ROMSWMAP_SW2EN_M 0x00000030 // ROM SW Region 2 Availability
  11340. #define FLASH_ROMSWMAP_SW2EN_NOTVIS \
  11341. 0x00000000 // Software region not available to
  11342. // the core
  11343. #define FLASH_ROMSWMAP_SW2EN_CORE \
  11344. 0x00000010 // Region available to core
  11345. #define FLASH_ROMSWMAP_SW1EN_M 0x0000000C // ROM SW Region 1 Availability
  11346. #define FLASH_ROMSWMAP_SW1EN_NOTVIS \
  11347. 0x00000000 // Software region not available to
  11348. // the core
  11349. #define FLASH_ROMSWMAP_SW1EN_CORE \
  11350. 0x00000004 // Region available to core
  11351. #define FLASH_ROMSWMAP_SW0EN_M 0x00000003 // ROM SW Region 0 Availability
  11352. #define FLASH_ROMSWMAP_SW0EN_NOTVIS \
  11353. 0x00000000 // Software region not available to
  11354. // the core
  11355. #define FLASH_ROMSWMAP_SW0EN_CORE \
  11356. 0x00000001 // Region available to core
  11357. //*****************************************************************************
  11358. //
  11359. // The following are defines for the bit fields in the FLASH_DMASZ register.
  11360. //
  11361. //*****************************************************************************
  11362. #define FLASH_DMASZ_SIZE_M 0x0003FFFF // uDMA-accessible Memory Size
  11363. #define FLASH_DMASZ_SIZE_S 0
  11364. //*****************************************************************************
  11365. //
  11366. // The following are defines for the bit fields in the FLASH_DMAST register.
  11367. //
  11368. //*****************************************************************************
  11369. #define FLASH_DMAST_ADDR_M 0x1FFFF800 // Contains the starting address of
  11370. // the flash region accessible by
  11371. // uDMA if the FLASHPP register DFA
  11372. // bit is set
  11373. #define FLASH_DMAST_ADDR_S 11
  11374. //*****************************************************************************
  11375. //
  11376. // The following are defines for the bit fields in the FLASH_RVP register.
  11377. //
  11378. //*****************************************************************************
  11379. #define FLASH_RVP_RV_M 0xFFFFFFFF // Reset Vector Pointer Address
  11380. #define FLASH_RVP_RV_S 0
  11381. //*****************************************************************************
  11382. //
  11383. // The following are defines for the bit fields in the FLASH_BOOTCFG register.
  11384. //
  11385. //*****************************************************************************
  11386. #define FLASH_BOOTCFG_NW 0x80000000 // Not Written
  11387. #define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
  11388. #define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
  11389. #define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
  11390. #define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
  11391. #define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
  11392. #define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
  11393. #define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
  11394. #define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
  11395. #define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
  11396. #define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
  11397. #define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
  11398. #define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
  11399. #define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
  11400. #define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
  11401. #define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
  11402. #define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
  11403. #define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
  11404. #define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
  11405. #define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
  11406. #define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
  11407. #define FLASH_BOOTCFG_KEY 0x00000010 // KEY Select
  11408. #define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
  11409. #define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
  11410. //*****************************************************************************
  11411. //
  11412. // The following are defines for the bit fields in the FLASH_USERREG0 register.
  11413. //
  11414. //*****************************************************************************
  11415. #define FLASH_USERREG0_DATA_M 0xFFFFFFFF // User Data
  11416. #define FLASH_USERREG0_DATA_S 0
  11417. //*****************************************************************************
  11418. //
  11419. // The following are defines for the bit fields in the FLASH_USERREG1 register.
  11420. //
  11421. //*****************************************************************************
  11422. #define FLASH_USERREG1_DATA_M 0xFFFFFFFF // User Data
  11423. #define FLASH_USERREG1_DATA_S 0
  11424. //*****************************************************************************
  11425. //
  11426. // The following are defines for the bit fields in the FLASH_USERREG2 register.
  11427. //
  11428. //*****************************************************************************
  11429. #define FLASH_USERREG2_DATA_M 0xFFFFFFFF // User Data
  11430. #define FLASH_USERREG2_DATA_S 0
  11431. //*****************************************************************************
  11432. //
  11433. // The following are defines for the bit fields in the FLASH_USERREG3 register.
  11434. //
  11435. //*****************************************************************************
  11436. #define FLASH_USERREG3_DATA_M 0xFFFFFFFF // User Data
  11437. #define FLASH_USERREG3_DATA_S 0
  11438. //*****************************************************************************
  11439. //
  11440. // The following are defines for the bit fields in the FLASH_FMPRE8 register.
  11441. //
  11442. //*****************************************************************************
  11443. #define FLASH_FMPRE8_READ_ENABLE_M \
  11444. 0xFFFFFFFF // Flash Read Enable
  11445. #define FLASH_FMPRE8_READ_ENABLE_S \
  11446. 0
  11447. //*****************************************************************************
  11448. //
  11449. // The following are defines for the bit fields in the FLASH_FMPRE9 register.
  11450. //
  11451. //*****************************************************************************
  11452. #define FLASH_FMPRE9_READ_ENABLE_M \
  11453. 0xFFFFFFFF // Flash Read Enable
  11454. #define FLASH_FMPRE9_READ_ENABLE_S \
  11455. 0
  11456. //*****************************************************************************
  11457. //
  11458. // The following are defines for the bit fields in the FLASH_FMPRE10 register.
  11459. //
  11460. //*****************************************************************************
  11461. #define FLASH_FMPRE10_READ_ENABLE_M \
  11462. 0xFFFFFFFF // Flash Read Enable
  11463. #define FLASH_FMPRE10_READ_ENABLE_S \
  11464. 0
  11465. //*****************************************************************************
  11466. //
  11467. // The following are defines for the bit fields in the FLASH_FMPRE11 register.
  11468. //
  11469. //*****************************************************************************
  11470. #define FLASH_FMPRE11_READ_ENABLE_M \
  11471. 0xFFFFFFFF // Flash Read Enable
  11472. #define FLASH_FMPRE11_READ_ENABLE_S \
  11473. 0
  11474. //*****************************************************************************
  11475. //
  11476. // The following are defines for the bit fields in the FLASH_FMPRE12 register.
  11477. //
  11478. //*****************************************************************************
  11479. #define FLASH_FMPRE12_READ_ENABLE_M \
  11480. 0xFFFFFFFF // Flash Read Enable
  11481. #define FLASH_FMPRE12_READ_ENABLE_S \
  11482. 0
  11483. //*****************************************************************************
  11484. //
  11485. // The following are defines for the bit fields in the FLASH_FMPRE13 register.
  11486. //
  11487. //*****************************************************************************
  11488. #define FLASH_FMPRE13_READ_ENABLE_M \
  11489. 0xFFFFFFFF // Flash Read Enable
  11490. #define FLASH_FMPRE13_READ_ENABLE_S \
  11491. 0
  11492. //*****************************************************************************
  11493. //
  11494. // The following are defines for the bit fields in the FLASH_FMPRE14 register.
  11495. //
  11496. //*****************************************************************************
  11497. #define FLASH_FMPRE14_READ_ENABLE_M \
  11498. 0xFFFFFFFF // Flash Read Enable
  11499. #define FLASH_FMPRE14_READ_ENABLE_S \
  11500. 0
  11501. //*****************************************************************************
  11502. //
  11503. // The following are defines for the bit fields in the FLASH_FMPRE15 register.
  11504. //
  11505. //*****************************************************************************
  11506. #define FLASH_FMPRE15_READ_ENABLE_M \
  11507. 0xFFFFFFFF // Flash Read Enable
  11508. #define FLASH_FMPRE15_READ_ENABLE_S \
  11509. 0
  11510. //*****************************************************************************
  11511. //
  11512. // The following are defines for the bit fields in the FLASH_FMPPE8 register.
  11513. //
  11514. //*****************************************************************************
  11515. #define FLASH_FMPPE8_PROG_ENABLE_M \
  11516. 0xFFFFFFFF // Flash Programming Enable
  11517. #define FLASH_FMPPE8_PROG_ENABLE_S \
  11518. 0
  11519. //*****************************************************************************
  11520. //
  11521. // The following are defines for the bit fields in the FLASH_FMPPE9 register.
  11522. //
  11523. //*****************************************************************************
  11524. #define FLASH_FMPPE9_PROG_ENABLE_M \
  11525. 0xFFFFFFFF // Flash Programming Enable
  11526. #define FLASH_FMPPE9_PROG_ENABLE_S \
  11527. 0
  11528. //*****************************************************************************
  11529. //
  11530. // The following are defines for the bit fields in the FLASH_FMPPE10 register.
  11531. //
  11532. //*****************************************************************************
  11533. #define FLASH_FMPPE10_PROG_ENABLE_M \
  11534. 0xFFFFFFFF // Flash Programming Enable
  11535. #define FLASH_FMPPE10_PROG_ENABLE_S \
  11536. 0
  11537. //*****************************************************************************
  11538. //
  11539. // The following are defines for the bit fields in the FLASH_FMPPE11 register.
  11540. //
  11541. //*****************************************************************************
  11542. #define FLASH_FMPPE11_PROG_ENABLE_M \
  11543. 0xFFFFFFFF // Flash Programming Enable
  11544. #define FLASH_FMPPE11_PROG_ENABLE_S \
  11545. 0
  11546. //*****************************************************************************
  11547. //
  11548. // The following are defines for the bit fields in the FLASH_FMPPE12 register.
  11549. //
  11550. //*****************************************************************************
  11551. #define FLASH_FMPPE12_PROG_ENABLE_M \
  11552. 0xFFFFFFFF // Flash Programming Enable
  11553. #define FLASH_FMPPE12_PROG_ENABLE_S \
  11554. 0
  11555. //*****************************************************************************
  11556. //
  11557. // The following are defines for the bit fields in the FLASH_FMPPE13 register.
  11558. //
  11559. //*****************************************************************************
  11560. #define FLASH_FMPPE13_PROG_ENABLE_M \
  11561. 0xFFFFFFFF // Flash Programming Enable
  11562. #define FLASH_FMPPE13_PROG_ENABLE_S \
  11563. 0
  11564. //*****************************************************************************
  11565. //
  11566. // The following are defines for the bit fields in the FLASH_FMPPE14 register.
  11567. //
  11568. //*****************************************************************************
  11569. #define FLASH_FMPPE14_PROG_ENABLE_M \
  11570. 0xFFFFFFFF // Flash Programming Enable
  11571. #define FLASH_FMPPE14_PROG_ENABLE_S \
  11572. 0
  11573. //*****************************************************************************
  11574. //
  11575. // The following are defines for the bit fields in the FLASH_FMPPE15 register.
  11576. //
  11577. //*****************************************************************************
  11578. #define FLASH_FMPPE15_PROG_ENABLE_M \
  11579. 0xFFFFFFFF // Flash Programming Enable
  11580. #define FLASH_FMPPE15_PROG_ENABLE_S \
  11581. 0
  11582. //*****************************************************************************
  11583. //
  11584. // The following are defines for the bit fields in the SYSCTL_DID0 register.
  11585. //
  11586. //*****************************************************************************
  11587. #define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
  11588. #define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
  11589. // register format.
  11590. #define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
  11591. #define SYSCTL_DID0_CLASS_TM4C129 \
  11592. 0x000A0000 // Tiva(TM) TM4C129-class
  11593. // microcontrollers
  11594. #define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
  11595. #define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
  11596. #define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
  11597. // revision)
  11598. #define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
  11599. // revision)
  11600. #define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
  11601. #define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
  11602. // revision update
  11603. #define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
  11604. #define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
  11605. //*****************************************************************************
  11606. //
  11607. // The following are defines for the bit fields in the SYSCTL_DID1 register.
  11608. //
  11609. //*****************************************************************************
  11610. #define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
  11611. #define SYSCTL_DID1_VER_1 0x10000000 // fury_ib
  11612. #define SYSCTL_DID1_FAM_M 0x0F000000 // Family
  11613. #define SYSCTL_DID1_FAM_TIVA 0x00000000 // Tiva family of microcontollers
  11614. #define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
  11615. #define SYSCTL_DID1_PRTNO_TM4C129XNCZAD \
  11616. 0x00320000 // TM4C129XNCZAD
  11617. #define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
  11618. #define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin LQFP package
  11619. #define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin LQFP package
  11620. #define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin LQFP package
  11621. #define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin BGA package
  11622. #define SYSCTL_DID1_PINCNT_128 0x0000C000 // 128-pin TQFP package
  11623. #define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
  11624. #define SYSCTL_DID1_TEMP_C 0x00000000 // Commercial temperature range
  11625. #define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
  11626. #define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range
  11627. #define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
  11628. #define SYSCTL_DID1_PKG_QFP 0x00000008 // QFP package
  11629. #define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
  11630. #define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
  11631. #define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
  11632. #define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
  11633. #define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
  11634. #define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
  11635. //*****************************************************************************
  11636. //
  11637. // The following are defines for the bit fields in the SYSCTL_PTBOCTL register.
  11638. //
  11639. //*****************************************************************************
  11640. #define SYSCTL_PTBOCTL_VDDA_UBOR_M \
  11641. 0x00000300 // VDDA under BOR Event Action
  11642. #define SYSCTL_PTBOCTL_VDDA_UBOR_NONE \
  11643. 0x00000000 // No Action
  11644. #define SYSCTL_PTBOCTL_VDDA_UBOR_SYSINT \
  11645. 0x00000100 // System control interrupt
  11646. #define SYSCTL_PTBOCTL_VDDA_UBOR_NMI \
  11647. 0x00000200 // NMI
  11648. #define SYSCTL_PTBOCTL_VDDA_UBOR_RST \
  11649. 0x00000300 // Reset
  11650. #define SYSCTL_PTBOCTL_VDD_UBOR_M \
  11651. 0x00000003 // VDD (VDDS) under BOR Event
  11652. // Action
  11653. #define SYSCTL_PTBOCTL_VDD_UBOR_NONE \
  11654. 0x00000000 // No Action
  11655. #define SYSCTL_PTBOCTL_VDD_UBOR_SYSINT \
  11656. 0x00000001 // System control interrupt
  11657. #define SYSCTL_PTBOCTL_VDD_UBOR_NMI \
  11658. 0x00000002 // NMI
  11659. #define SYSCTL_PTBOCTL_VDD_UBOR_RST \
  11660. 0x00000003 // Reset
  11661. //*****************************************************************************
  11662. //
  11663. // The following are defines for the bit fields in the SYSCTL_RIS register.
  11664. //
  11665. //*****************************************************************************
  11666. #define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
  11667. // Status
  11668. #define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
  11669. #define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Failure Raw
  11670. // Interrupt Status
  11671. #define SYSCTL_RIS_BORRIS 0x00000002 // Brown-Out Reset Raw Interrupt
  11672. // Status
  11673. //*****************************************************************************
  11674. //
  11675. // The following are defines for the bit fields in the SYSCTL_IMC register.
  11676. //
  11677. //*****************************************************************************
  11678. #define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
  11679. #define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
  11680. #define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Failure
  11681. // Interrupt Mask
  11682. #define SYSCTL_IMC_BORIM 0x00000002 // Brown-Out Reset Interrupt Mask
  11683. //*****************************************************************************
  11684. //
  11685. // The following are defines for the bit fields in the SYSCTL_MISC register.
  11686. //
  11687. //*****************************************************************************
  11688. #define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
  11689. // Status
  11690. #define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
  11691. #define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Failure Masked
  11692. // Interrupt Status
  11693. #define SYSCTL_MISC_BORMIS 0x00000002 // BOR Masked Interrupt Status
  11694. //*****************************************************************************
  11695. //
  11696. // The following are defines for the bit fields in the SYSCTL_RESC register.
  11697. //
  11698. //*****************************************************************************
  11699. #define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
  11700. #define SYSCTL_RESC_HSSR 0x00001000 // HSSR Reset
  11701. #define SYSCTL_RESC_HIB 0x00000040 // HIB Reset
  11702. #define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
  11703. #define SYSCTL_RESC_SW 0x00000010 // Software Reset
  11704. #define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
  11705. #define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
  11706. #define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
  11707. #define SYSCTL_RESC_EXT 0x00000001 // External Reset
  11708. //*****************************************************************************
  11709. //
  11710. // The following are defines for the bit fields in the SYSCTL_PWRTC register.
  11711. //
  11712. //*****************************************************************************
  11713. #define SYSCTL_PWRTC_VDDA_UBOR 0x00000010 // VDDA Under BOR Status
  11714. #define SYSCTL_PWRTC_VDD_UBOR 0x00000001 // VDD Under BOR Status
  11715. //*****************************************************************************
  11716. //
  11717. // The following are defines for the bit fields in the SYSCTL_NMIC register.
  11718. //
  11719. //*****************************************************************************
  11720. #define SYSCTL_NMIC_MOSCFAIL 0x00010000 // MOSC Failure NMI
  11721. #define SYSCTL_NMIC_TAMPER 0x00000200 // Tamper Event NMI
  11722. #define SYSCTL_NMIC_WDT1 0x00000020 // Watch Dog Timer (WDT) 1 NMI
  11723. #define SYSCTL_NMIC_WDT0 0x00000008 // Watch Dog Timer (WDT) 0 NMI
  11724. #define SYSCTL_NMIC_POWER 0x00000004 // Power/Brown Out Event NMI
  11725. #define SYSCTL_NMIC_EXTERNAL 0x00000001 // External Pin NMI
  11726. //*****************************************************************************
  11727. //
  11728. // The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
  11729. //
  11730. //*****************************************************************************
  11731. #define SYSCTL_MOSCCTL_OSCRNG 0x00000010 // Oscillator Range
  11732. #define SYSCTL_MOSCCTL_PWRDN 0x00000008 // Power Down
  11733. #define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
  11734. #define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
  11735. #define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
  11736. //*****************************************************************************
  11737. //
  11738. // The following are defines for the bit fields in the SYSCTL_RSCLKCFG
  11739. // register.
  11740. //
  11741. //*****************************************************************************
  11742. #define SYSCTL_RSCLKCFG_MEMTIMU 0x80000000 // Memory Timing Register Update
  11743. #define SYSCTL_RSCLKCFG_NEWFREQ 0x40000000 // New PLLFREQ Accept
  11744. #define SYSCTL_RSCLKCFG_ACG 0x20000000 // Auto Clock Gating
  11745. #define SYSCTL_RSCLKCFG_USEPLL 0x10000000 // Use PLL
  11746. #define SYSCTL_RSCLKCFG_PLLSRC_M \
  11747. 0x0F000000 // PLL Source
  11748. #define SYSCTL_RSCLKCFG_PLLSRC_PIOSC \
  11749. 0x00000000 // PIOSC is PLL input clock source
  11750. #define SYSCTL_RSCLKCFG_PLLSRC_MOSC \
  11751. 0x03000000 // MOSC is the PLL input clock
  11752. // source
  11753. #define SYSCTL_RSCLKCFG_OSCSRC_M \
  11754. 0x00F00000 // Oscillator Source
  11755. #define SYSCTL_RSCLKCFG_OSCSRC_PIOSC \
  11756. 0x00000000 // PIOSC is oscillator source
  11757. #define SYSCTL_RSCLKCFG_OSCSRC_LFIOSC \
  11758. 0x00200000 // LFIOSC is oscillator source
  11759. #define SYSCTL_RSCLKCFG_OSCSRC_MOSC \
  11760. 0x00300000 // MOSC is oscillator source
  11761. #define SYSCTL_RSCLKCFG_OSCSRC_RTC \
  11762. 0x00400000 // Hibernation Module RTC
  11763. // Oscillator (RTCOSC)
  11764. #define SYSCTL_RSCLKCFG_OSYSDIV_M \
  11765. 0x000FFC00 // Oscillator System Clock Divisor
  11766. #define SYSCTL_RSCLKCFG_PSYSDIV_M \
  11767. 0x000003FF // PLL System Clock Divisor
  11768. #define SYSCTL_RSCLKCFG_OSYSDIV_S \
  11769. 10
  11770. #define SYSCTL_RSCLKCFG_PSYSDIV_S \
  11771. 0
  11772. //*****************************************************************************
  11773. //
  11774. // The following are defines for the bit fields in the SYSCTL_MEMTIM0 register.
  11775. //
  11776. //*****************************************************************************
  11777. #define SYSCTL_MEMTIM0_EBCHT_M 0x03C00000 // EEPROM Clock High Time
  11778. #define SYSCTL_MEMTIM0_EBCHT_0_5 \
  11779. 0x00000000 // 1/2 system clock period
  11780. #define SYSCTL_MEMTIM0_EBCHT_1 0x00400000 // 1 system clock period
  11781. #define SYSCTL_MEMTIM0_EBCHT_1_5 \
  11782. 0x00800000 // 1.5 system clock periods
  11783. #define SYSCTL_MEMTIM0_EBCHT_2 0x00C00000 // 2 system clock periods
  11784. #define SYSCTL_MEMTIM0_EBCHT_2_5 \
  11785. 0x01000000 // 2.5 system clock periods
  11786. #define SYSCTL_MEMTIM0_EBCHT_3 0x01400000 // 3 system clock periods
  11787. #define SYSCTL_MEMTIM0_EBCHT_3_5 \
  11788. 0x01800000 // 3.5 system clock periods
  11789. #define SYSCTL_MEMTIM0_EBCHT_4 0x01C00000 // 4 system clock periods
  11790. #define SYSCTL_MEMTIM0_EBCHT_4_5 \
  11791. 0x02000000 // 4.5 system clock periods
  11792. #define SYSCTL_MEMTIM0_EBCE 0x00200000 // EEPROM Bank Clock Edge
  11793. #define SYSCTL_MEMTIM0_EWS_M 0x000F0000 // EEPROM Wait States
  11794. #define SYSCTL_MEMTIM0_FBCHT_M 0x000003C0 // Flash Bank Clock High Time
  11795. #define SYSCTL_MEMTIM0_FBCHT_0_5 \
  11796. 0x00000000 // 1/2 system clock period
  11797. #define SYSCTL_MEMTIM0_FBCHT_1 0x00000040 // 1 system clock period
  11798. #define SYSCTL_MEMTIM0_FBCHT_1_5 \
  11799. 0x00000080 // 1.5 system clock periods
  11800. #define SYSCTL_MEMTIM0_FBCHT_2 0x000000C0 // 2 system clock periods
  11801. #define SYSCTL_MEMTIM0_FBCHT_2_5 \
  11802. 0x00000100 // 2.5 system clock periods
  11803. #define SYSCTL_MEMTIM0_FBCHT_3 0x00000140 // 3 system clock periods
  11804. #define SYSCTL_MEMTIM0_FBCHT_3_5 \
  11805. 0x00000180 // 3.5 system clock periods
  11806. #define SYSCTL_MEMTIM0_FBCHT_4 0x000001C0 // 4 system clock periods
  11807. #define SYSCTL_MEMTIM0_FBCHT_4_5 \
  11808. 0x00000200 // 4.5 system clock periods
  11809. #define SYSCTL_MEMTIM0_FBCE 0x00000020 // Flash Bank Clock Edge
  11810. #define SYSCTL_MEMTIM0_FWS_M 0x0000000F // Flash Wait State
  11811. #define SYSCTL_MEMTIM0_EWS_S 16
  11812. #define SYSCTL_MEMTIM0_FWS_S 0
  11813. //*****************************************************************************
  11814. //
  11815. // The following are defines for the bit fields in the SYSCTL_ALTCLKCFG
  11816. // register.
  11817. //
  11818. //*****************************************************************************
  11819. #define SYSCTL_ALTCLKCFG_ALTCLK_M \
  11820. 0x0000000F // Alternate Clock Source
  11821. #define SYSCTL_ALTCLKCFG_ALTCLK_PIOSC \
  11822. 0x00000000 // PIOSC
  11823. #define SYSCTL_ALTCLKCFG_ALTCLK_RTCOSC \
  11824. 0x00000003 // Hibernation Module Real-time
  11825. // clock output (RTCOSC)
  11826. #define SYSCTL_ALTCLKCFG_ALTCLK_LFIOSC \
  11827. 0x00000004 // Low-frequency internal
  11828. // oscillator (LFIOSC)
  11829. //*****************************************************************************
  11830. //
  11831. // The following are defines for the bit fields in the SYSCTL_DSCLKCFG
  11832. // register.
  11833. //
  11834. //*****************************************************************************
  11835. #define SYSCTL_DSCLKCFG_PIOSCPD 0x80000000 // PIOSC Power Down
  11836. #define SYSCTL_DSCLKCFG_MOSCDPD 0x40000000 // MOSC Disable Power Down
  11837. #define SYSCTL_DSCLKCFG_DSOSCSRC_M \
  11838. 0x00F00000 // Deep Sleep Oscillator Source
  11839. #define SYSCTL_DSCLKCFG_DSOSCSRC_PIOSC \
  11840. 0x00000000 // PIOSC
  11841. #define SYSCTL_DSCLKCFG_DSOSCSRC_LFIOSC \
  11842. 0x00200000 // LFIOSC
  11843. #define SYSCTL_DSCLKCFG_DSOSCSRC_MOSC \
  11844. 0x00300000 // MOSC
  11845. #define SYSCTL_DSCLKCFG_DSOSCSRC_RTC \
  11846. 0x00400000 // Hibernation Module RTCOSC
  11847. #define SYSCTL_DSCLKCFG_DSSYSDIV_M \
  11848. 0x000003FF // Deep Sleep Clock Divisor
  11849. #define SYSCTL_DSCLKCFG_DSSYSDIV_S \
  11850. 0
  11851. //*****************************************************************************
  11852. //
  11853. // The following are defines for the bit fields in the SYSCTL_DIVSCLK register.
  11854. //
  11855. //*****************************************************************************
  11856. #define SYSCTL_DIVSCLK_EN 0x80000000 // DIVSCLK Enable
  11857. #define SYSCTL_DIVSCLK_SRC_M 0x00030000 // Clock Source
  11858. #define SYSCTL_DIVSCLK_SRC_SYSCLK \
  11859. 0x00000000 // System Clock
  11860. #define SYSCTL_DIVSCLK_SRC_PIOSC \
  11861. 0x00010000 // PIOSC
  11862. #define SYSCTL_DIVSCLK_SRC_MOSC 0x00020000 // MOSC
  11863. #define SYSCTL_DIVSCLK_DIV_M 0x000000FF // Divisor Value
  11864. #define SYSCTL_DIVSCLK_DIV_S 0
  11865. //*****************************************************************************
  11866. //
  11867. // The following are defines for the bit fields in the SYSCTL_SYSPROP register.
  11868. //
  11869. //*****************************************************************************
  11870. #define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
  11871. //*****************************************************************************
  11872. //
  11873. // The following are defines for the bit fields in the SYSCTL_PIOSCCAL
  11874. // register.
  11875. //
  11876. //*****************************************************************************
  11877. #define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
  11878. #define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
  11879. #define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
  11880. #define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
  11881. #define SYSCTL_PIOSCCAL_UT_S 0
  11882. //*****************************************************************************
  11883. //
  11884. // The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
  11885. // register.
  11886. //
  11887. //*****************************************************************************
  11888. #define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
  11889. #define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
  11890. #define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
  11891. // attempted
  11892. #define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
  11893. // completed to meet 1% accuracy
  11894. #define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
  11895. // failed to meet 1% accuracy
  11896. #define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
  11897. #define SYSCTL_PIOSCSTAT_DT_S 16
  11898. #define SYSCTL_PIOSCSTAT_CT_S 0
  11899. //*****************************************************************************
  11900. //
  11901. // The following are defines for the bit fields in the SYSCTL_PLLFREQ0
  11902. // register.
  11903. //
  11904. //*****************************************************************************
  11905. #define SYSCTL_PLLFREQ0_PLLPWR 0x00800000 // PLL Power
  11906. #define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
  11907. #define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
  11908. #define SYSCTL_PLLFREQ0_MFRAC_S 10
  11909. #define SYSCTL_PLLFREQ0_MINT_S 0
  11910. //*****************************************************************************
  11911. //
  11912. // The following are defines for the bit fields in the SYSCTL_PLLFREQ1
  11913. // register.
  11914. //
  11915. //*****************************************************************************
  11916. #define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
  11917. #define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
  11918. #define SYSCTL_PLLFREQ1_Q_S 8
  11919. #define SYSCTL_PLLFREQ1_N_S 0
  11920. //*****************************************************************************
  11921. //
  11922. // The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
  11923. //
  11924. //*****************************************************************************
  11925. #define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
  11926. //*****************************************************************************
  11927. //
  11928. // The following are defines for the bit fields in the SYSCTL_SLPPWRCFG
  11929. // register.
  11930. //
  11931. //*****************************************************************************
  11932. #define SYSCTL_SLPPWRCFG_FLASHPM_M \
  11933. 0x00000030 // Flash Power Modes
  11934. #define SYSCTL_SLPPWRCFG_FLASHPM_NRM \
  11935. 0x00000000 // Active Mode
  11936. #define SYSCTL_SLPPWRCFG_FLASHPM_SLP \
  11937. 0x00000020 // Low Power Mode
  11938. #define SYSCTL_SLPPWRCFG_SRAMPM_M \
  11939. 0x00000003 // SRAM Power Modes
  11940. #define SYSCTL_SLPPWRCFG_SRAMPM_NRM \
  11941. 0x00000000 // Active Mode
  11942. #define SYSCTL_SLPPWRCFG_SRAMPM_SBY \
  11943. 0x00000001 // Standby Mode
  11944. #define SYSCTL_SLPPWRCFG_SRAMPM_LP \
  11945. 0x00000003 // Low Power Mode
  11946. //*****************************************************************************
  11947. //
  11948. // The following are defines for the bit fields in the SYSCTL_DSLPPWRCFG
  11949. // register.
  11950. //
  11951. //*****************************************************************************
  11952. #define SYSCTL_DSLPPWRCFG_LDOSM 0x00000200 // LDO Sleep Mode
  11953. #define SYSCTL_DSLPPWRCFG_TSPD 0x00000100 // Temperature Sense Power Down
  11954. #define SYSCTL_DSLPPWRCFG_FLASHPM_M \
  11955. 0x00000030 // Flash Power Modes
  11956. #define SYSCTL_DSLPPWRCFG_FLASHPM_NRM \
  11957. 0x00000000 // Active Mode
  11958. #define SYSCTL_DSLPPWRCFG_FLASHPM_SLP \
  11959. 0x00000020 // Low Power Mode
  11960. #define SYSCTL_DSLPPWRCFG_SRAMPM_M \
  11961. 0x00000003 // SRAM Power Modes
  11962. #define SYSCTL_DSLPPWRCFG_SRAMPM_NRM \
  11963. 0x00000000 // Active Mode
  11964. #define SYSCTL_DSLPPWRCFG_SRAMPM_SBY \
  11965. 0x00000001 // Standby Mode
  11966. #define SYSCTL_DSLPPWRCFG_SRAMPM_LP \
  11967. 0x00000003 // Low Power Mode
  11968. //*****************************************************************************
  11969. //
  11970. // The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
  11971. //
  11972. //*****************************************************************************
  11973. #define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
  11974. // Available
  11975. //*****************************************************************************
  11976. //
  11977. // The following are defines for the bit fields in the SYSCTL_LDOSPCTL
  11978. // register.
  11979. //
  11980. //*****************************************************************************
  11981. #define SYSCTL_LDOSPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
  11982. #define SYSCTL_LDOSPCTL_VLDO_M 0x000000FF // LDO Output Voltage
  11983. #define SYSCTL_LDOSPCTL_VLDO_0_90V \
  11984. 0x00000012 // 0.90 V
  11985. #define SYSCTL_LDOSPCTL_VLDO_0_95V \
  11986. 0x00000013 // 0.95 V
  11987. #define SYSCTL_LDOSPCTL_VLDO_1_00V \
  11988. 0x00000014 // 1.00 V
  11989. #define SYSCTL_LDOSPCTL_VLDO_1_05V \
  11990. 0x00000015 // 1.05 V
  11991. #define SYSCTL_LDOSPCTL_VLDO_1_10V \
  11992. 0x00000016 // 1.10 V
  11993. #define SYSCTL_LDOSPCTL_VLDO_1_15V \
  11994. 0x00000017 // 1.15 V
  11995. #define SYSCTL_LDOSPCTL_VLDO_1_20V \
  11996. 0x00000018 // 1.20 V
  11997. //*****************************************************************************
  11998. //
  11999. // The following are defines for the bit fields in the SYSCTL_LDODPCTL
  12000. // register.
  12001. //
  12002. //*****************************************************************************
  12003. #define SYSCTL_LDODPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
  12004. #define SYSCTL_LDODPCTL_VLDO_M 0x000000FF // LDO Output Voltage
  12005. #define SYSCTL_LDODPCTL_VLDO_0_90V \
  12006. 0x00000012 // 0.90 V
  12007. #define SYSCTL_LDODPCTL_VLDO_0_95V \
  12008. 0x00000013 // 0.95 V
  12009. #define SYSCTL_LDODPCTL_VLDO_1_00V \
  12010. 0x00000014 // 1.00 V
  12011. #define SYSCTL_LDODPCTL_VLDO_1_05V \
  12012. 0x00000015 // 1.05 V
  12013. #define SYSCTL_LDODPCTL_VLDO_1_10V \
  12014. 0x00000016 // 1.10 V
  12015. #define SYSCTL_LDODPCTL_VLDO_1_15V \
  12016. 0x00000017 // 1.15 V
  12017. #define SYSCTL_LDODPCTL_VLDO_1_20V \
  12018. 0x00000018 // 1.20 V
  12019. #define SYSCTL_LDODPCTL_VLDO_1_25V \
  12020. 0x00000019 // 1.25 V
  12021. #define SYSCTL_LDODPCTL_VLDO_1_30V \
  12022. 0x0000001A // 1.30 V
  12023. #define SYSCTL_LDODPCTL_VLDO_1_35V \
  12024. 0x0000001B // 1.35 V
  12025. //*****************************************************************************
  12026. //
  12027. // The following are defines for the bit fields in the SYSCTL_RESBEHAVCTL
  12028. // register.
  12029. //
  12030. //*****************************************************************************
  12031. #define SYSCTL_RESBEHAVCTL_WDOG1_M \
  12032. 0x000000C0 // Watchdog 1 Reset Operation
  12033. #define SYSCTL_RESBEHAVCTL_WDOG1_SYSRST \
  12034. 0x00000080 // Watchdog 1 issues a system
  12035. // reset. The application starts
  12036. // within 10 us
  12037. #define SYSCTL_RESBEHAVCTL_WDOG1_POR \
  12038. 0x000000C0 // Watchdog 1 issues a simulated
  12039. // POR sequence. Application starts
  12040. // less than 500 us after
  12041. // deassertion (Default)
  12042. #define SYSCTL_RESBEHAVCTL_WDOG0_M \
  12043. 0x00000030 // Watchdog 0 Reset Operation
  12044. #define SYSCTL_RESBEHAVCTL_WDOG0_SYSRST \
  12045. 0x00000020 // Watchdog 0 issues a system
  12046. // reset. The application starts
  12047. // within 10 us
  12048. #define SYSCTL_RESBEHAVCTL_WDOG0_POR \
  12049. 0x00000030 // Watchdog 0 issues a simulated
  12050. // POR sequence. Application starts
  12051. // less than 500 us after
  12052. // deassertion (Default)
  12053. #define SYSCTL_RESBEHAVCTL_BOR_M \
  12054. 0x0000000C // BOR Reset operation
  12055. #define SYSCTL_RESBEHAVCTL_BOR_SYSRST \
  12056. 0x00000008 // Brown Out Reset issues system
  12057. // reset. The application starts
  12058. // within 10 us
  12059. #define SYSCTL_RESBEHAVCTL_BOR_POR \
  12060. 0x0000000C // Brown Out Reset issues a
  12061. // simulated POR sequence. The
  12062. // application starts less than 500
  12063. // us after deassertion (Default)
  12064. #define SYSCTL_RESBEHAVCTL_EXTRES_M \
  12065. 0x00000003 // External RST Pin Operation
  12066. #define SYSCTL_RESBEHAVCTL_EXTRES_SYSRST \
  12067. 0x00000002 // External RST assertion issues a
  12068. // system reset. The application
  12069. // starts within 10 us
  12070. #define SYSCTL_RESBEHAVCTL_EXTRES_POR \
  12071. 0x00000003 // External RST assertion issues a
  12072. // simulated POR sequence.
  12073. // Application starts less than 500
  12074. // us after deassertion (Default)
  12075. //*****************************************************************************
  12076. //
  12077. // The following are defines for the bit fields in the SYSCTL_HSSR register.
  12078. //
  12079. //*****************************************************************************
  12080. #define SYSCTL_HSSR_KEY_M 0xFF000000 // Write Key
  12081. #define SYSCTL_HSSR_CDOFF_M 0x00FFFFFF // Command Descriptor Pointer
  12082. #define SYSCTL_HSSR_KEY_S 24
  12083. #define SYSCTL_HSSR_CDOFF_S 0
  12084. //*****************************************************************************
  12085. //
  12086. // The following are defines for the bit fields in the SYSCTL_USBPDS register.
  12087. //
  12088. //*****************************************************************************
  12089. #define SYSCTL_USBPDS_MEMSTAT_M 0x0000000C // Memory Array Power Status
  12090. #define SYSCTL_USBPDS_MEMSTAT_OFF \
  12091. 0x00000000 // Array OFF
  12092. #define SYSCTL_USBPDS_MEMSTAT_RETAIN \
  12093. 0x00000004 // SRAM Retention
  12094. #define SYSCTL_USBPDS_MEMSTAT_ON \
  12095. 0x0000000C // Array On
  12096. #define SYSCTL_USBPDS_PWRSTAT_M 0x00000003 // Power Domain Status
  12097. #define SYSCTL_USBPDS_PWRSTAT_OFF \
  12098. 0x00000000 // OFF
  12099. #define SYSCTL_USBPDS_PWRSTAT_ON \
  12100. 0x00000003 // ON
  12101. //*****************************************************************************
  12102. //
  12103. // The following are defines for the bit fields in the SYSCTL_USBMPC register.
  12104. //
  12105. //*****************************************************************************
  12106. #define SYSCTL_USBMPC_PWRCTL_M 0x00000003 // Memory Array Power Control
  12107. #define SYSCTL_USBMPC_PWRCTL_OFF \
  12108. 0x00000000 // Array OFF
  12109. #define SYSCTL_USBMPC_PWRCTL_RETAIN \
  12110. 0x00000001 // SRAM Retention
  12111. #define SYSCTL_USBMPC_PWRCTL_ON 0x00000003 // Array On
  12112. //*****************************************************************************
  12113. //
  12114. // The following are defines for the bit fields in the SYSCTL_EMACPDS register.
  12115. //
  12116. //*****************************************************************************
  12117. #define SYSCTL_EMACPDS_MEMSTAT_M \
  12118. 0x0000000C // Memory Array Power Status
  12119. #define SYSCTL_EMACPDS_MEMSTAT_OFF \
  12120. 0x00000000 // Array OFF
  12121. #define SYSCTL_EMACPDS_MEMSTAT_ON \
  12122. 0x0000000C // Array On
  12123. #define SYSCTL_EMACPDS_PWRSTAT_M \
  12124. 0x00000003 // Power Domain Status
  12125. #define SYSCTL_EMACPDS_PWRSTAT_OFF \
  12126. 0x00000000 // OFF
  12127. #define SYSCTL_EMACPDS_PWRSTAT_ON \
  12128. 0x00000003 // ON
  12129. //*****************************************************************************
  12130. //
  12131. // The following are defines for the bit fields in the SYSCTL_EMACMPC register.
  12132. //
  12133. //*****************************************************************************
  12134. #define SYSCTL_EMACMPC_PWRCTL_M 0x00000003 // Memory Array Power Control
  12135. #define SYSCTL_EMACMPC_PWRCTL_OFF \
  12136. 0x00000000 // Array OFF
  12137. #define SYSCTL_EMACMPC_PWRCTL_ON \
  12138. 0x00000003 // Array On
  12139. //*****************************************************************************
  12140. //
  12141. // The following are defines for the bit fields in the SYSCTL_LCDMPC register.
  12142. //
  12143. //*****************************************************************************
  12144. #define SYSCTL_LCDMPC_PWRCTL_M 0x00000003 // Memory Array Power Control
  12145. #define SYSCTL_LCDMPC_PWRCTL_OFF \
  12146. 0x00000000 // Array OFF
  12147. #define SYSCTL_LCDMPC_PWRCTL_ON 0x00000003 // Array On
  12148. //*****************************************************************************
  12149. //
  12150. // The following are defines for the bit fields in the SYSCTL_PPWD register.
  12151. //
  12152. //*****************************************************************************
  12153. #define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
  12154. #define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
  12155. //*****************************************************************************
  12156. //
  12157. // The following are defines for the bit fields in the SYSCTL_PPTIMER register.
  12158. //
  12159. //*****************************************************************************
  12160. #define SYSCTL_PPTIMER_P7 0x00000080 // 16/32-Bit General-Purpose Timer
  12161. // 7 Present
  12162. #define SYSCTL_PPTIMER_P6 0x00000040 // 16/32-Bit General-Purpose Timer
  12163. // 6 Present
  12164. #define SYSCTL_PPTIMER_P5 0x00000020 // 16/32-Bit General-Purpose Timer
  12165. // 5 Present
  12166. #define SYSCTL_PPTIMER_P4 0x00000010 // 16/32-Bit General-Purpose Timer
  12167. // 4 Present
  12168. #define SYSCTL_PPTIMER_P3 0x00000008 // 16/32-Bit General-Purpose Timer
  12169. // 3 Present
  12170. #define SYSCTL_PPTIMER_P2 0x00000004 // 16/32-Bit General-Purpose Timer
  12171. // 2 Present
  12172. #define SYSCTL_PPTIMER_P1 0x00000002 // 16/32-Bit General-Purpose Timer
  12173. // 1 Present
  12174. #define SYSCTL_PPTIMER_P0 0x00000001 // 16/32-Bit General-Purpose Timer
  12175. // 0 Present
  12176. //*****************************************************************************
  12177. //
  12178. // The following are defines for the bit fields in the SYSCTL_PPGPIO register.
  12179. //
  12180. //*****************************************************************************
  12181. #define SYSCTL_PPGPIO_P17 0x00020000 // GPIO Port T Present
  12182. #define SYSCTL_PPGPIO_P16 0x00010000 // GPIO Port S Present
  12183. #define SYSCTL_PPGPIO_P15 0x00008000 // GPIO Port R Present
  12184. #define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
  12185. #define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
  12186. #define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
  12187. #define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
  12188. #define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
  12189. #define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
  12190. #define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
  12191. #define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
  12192. #define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
  12193. #define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
  12194. #define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
  12195. #define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
  12196. #define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
  12197. #define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
  12198. #define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
  12199. //*****************************************************************************
  12200. //
  12201. // The following are defines for the bit fields in the SYSCTL_PPDMA register.
  12202. //
  12203. //*****************************************************************************
  12204. #define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
  12205. //*****************************************************************************
  12206. //
  12207. // The following are defines for the bit fields in the SYSCTL_PPEPI register.
  12208. //
  12209. //*****************************************************************************
  12210. #define SYSCTL_PPEPI_P0 0x00000001 // EPI Module Present
  12211. //*****************************************************************************
  12212. //
  12213. // The following are defines for the bit fields in the SYSCTL_PPHIB register.
  12214. //
  12215. //*****************************************************************************
  12216. #define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
  12217. //*****************************************************************************
  12218. //
  12219. // The following are defines for the bit fields in the SYSCTL_PPUART register.
  12220. //
  12221. //*****************************************************************************
  12222. #define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
  12223. #define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
  12224. #define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
  12225. #define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
  12226. #define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
  12227. #define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
  12228. #define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
  12229. #define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
  12230. //*****************************************************************************
  12231. //
  12232. // The following are defines for the bit fields in the SYSCTL_PPSSI register.
  12233. //
  12234. //*****************************************************************************
  12235. #define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
  12236. #define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
  12237. #define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
  12238. #define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
  12239. //*****************************************************************************
  12240. //
  12241. // The following are defines for the bit fields in the SYSCTL_PPI2C register.
  12242. //
  12243. //*****************************************************************************
  12244. #define SYSCTL_PPI2C_P9 0x00000200 // I2C Module 9 Present
  12245. #define SYSCTL_PPI2C_P8 0x00000100 // I2C Module 8 Present
  12246. #define SYSCTL_PPI2C_P7 0x00000080 // I2C Module 7 Present
  12247. #define SYSCTL_PPI2C_P6 0x00000040 // I2C Module 6 Present
  12248. #define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
  12249. #define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
  12250. #define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
  12251. #define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
  12252. #define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
  12253. #define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
  12254. //*****************************************************************************
  12255. //
  12256. // The following are defines for the bit fields in the SYSCTL_PPUSB register.
  12257. //
  12258. //*****************************************************************************
  12259. #define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
  12260. //*****************************************************************************
  12261. //
  12262. // The following are defines for the bit fields in the SYSCTL_PPEPHY register.
  12263. //
  12264. //*****************************************************************************
  12265. #define SYSCTL_PPEPHY_P0 0x00000001 // Ethernet PHY Module Present
  12266. //*****************************************************************************
  12267. //
  12268. // The following are defines for the bit fields in the SYSCTL_PPCAN register.
  12269. //
  12270. //*****************************************************************************
  12271. #define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
  12272. #define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
  12273. //*****************************************************************************
  12274. //
  12275. // The following are defines for the bit fields in the SYSCTL_PPADC register.
  12276. //
  12277. //*****************************************************************************
  12278. #define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
  12279. #define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
  12280. //*****************************************************************************
  12281. //
  12282. // The following are defines for the bit fields in the SYSCTL_PPACMP register.
  12283. //
  12284. //*****************************************************************************
  12285. #define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
  12286. //*****************************************************************************
  12287. //
  12288. // The following are defines for the bit fields in the SYSCTL_PPPWM register.
  12289. //
  12290. //*****************************************************************************
  12291. #define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
  12292. //*****************************************************************************
  12293. //
  12294. // The following are defines for the bit fields in the SYSCTL_PPQEI register.
  12295. //
  12296. //*****************************************************************************
  12297. #define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
  12298. //*****************************************************************************
  12299. //
  12300. // The following are defines for the bit fields in the SYSCTL_PPLPC register.
  12301. //
  12302. //*****************************************************************************
  12303. #define SYSCTL_PPLPC_P0 0x00000001 // LPC Module Present
  12304. //*****************************************************************************
  12305. //
  12306. // The following are defines for the bit fields in the SYSCTL_PPPECI register.
  12307. //
  12308. //*****************************************************************************
  12309. #define SYSCTL_PPPECI_P0 0x00000001 // PECI Module Present
  12310. //*****************************************************************************
  12311. //
  12312. // The following are defines for the bit fields in the SYSCTL_PPFAN register.
  12313. //
  12314. //*****************************************************************************
  12315. #define SYSCTL_PPFAN_P0 0x00000001 // FAN Module 0 Present
  12316. //*****************************************************************************
  12317. //
  12318. // The following are defines for the bit fields in the SYSCTL_PPEEPROM
  12319. // register.
  12320. //
  12321. //*****************************************************************************
  12322. #define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
  12323. //*****************************************************************************
  12324. //
  12325. // The following are defines for the bit fields in the SYSCTL_PPWTIMER
  12326. // register.
  12327. //
  12328. //*****************************************************************************
  12329. #define SYSCTL_PPWTIMER_P0 0x00000001 // 32/64-Bit Wide General-Purpose
  12330. // Timer 0 Present
  12331. //*****************************************************************************
  12332. //
  12333. // The following are defines for the bit fields in the SYSCTL_PPRTS register.
  12334. //
  12335. //*****************************************************************************
  12336. #define SYSCTL_PPRTS_P0 0x00000001 // RTS Module Present
  12337. //*****************************************************************************
  12338. //
  12339. // The following are defines for the bit fields in the SYSCTL_PPCCM register.
  12340. //
  12341. //*****************************************************************************
  12342. #define SYSCTL_PPCCM_P0 0x00000001 // CRC and Cryptographic Modules
  12343. // Present
  12344. //*****************************************************************************
  12345. //
  12346. // The following are defines for the bit fields in the SYSCTL_PPLCD register.
  12347. //
  12348. //*****************************************************************************
  12349. #define SYSCTL_PPLCD_P0 0x00000001 // LCD Module Present
  12350. //*****************************************************************************
  12351. //
  12352. // The following are defines for the bit fields in the SYSCTL_PPOWIRE register.
  12353. //
  12354. //*****************************************************************************
  12355. #define SYSCTL_PPOWIRE_P0 0x00000001 // 1-Wire Module Present
  12356. //*****************************************************************************
  12357. //
  12358. // The following are defines for the bit fields in the SYSCTL_PPEMAC register.
  12359. //
  12360. //*****************************************************************************
  12361. #define SYSCTL_PPEMAC_P0 0x00000001 // Ethernet Controller Module
  12362. // Present
  12363. //*****************************************************************************
  12364. //
  12365. // The following are defines for the bit fields in the SYSCTL_PPHIM register.
  12366. //
  12367. //*****************************************************************************
  12368. #define SYSCTL_PPHIM_P0 0x00000001 // HIM Module Present
  12369. //*****************************************************************************
  12370. //
  12371. // The following are defines for the bit fields in the SYSCTL_SRWD register.
  12372. //
  12373. //*****************************************************************************
  12374. #define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
  12375. #define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
  12376. //*****************************************************************************
  12377. //
  12378. // The following are defines for the bit fields in the SYSCTL_SRTIMER register.
  12379. //
  12380. //*****************************************************************************
  12381. #define SYSCTL_SRTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  12382. // 7 Software Reset
  12383. #define SYSCTL_SRTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  12384. // 6 Software Reset
  12385. #define SYSCTL_SRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  12386. // 5 Software Reset
  12387. #define SYSCTL_SRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  12388. // 4 Software Reset
  12389. #define SYSCTL_SRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  12390. // 3 Software Reset
  12391. #define SYSCTL_SRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  12392. // 2 Software Reset
  12393. #define SYSCTL_SRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  12394. // 1 Software Reset
  12395. #define SYSCTL_SRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  12396. // 0 Software Reset
  12397. //*****************************************************************************
  12398. //
  12399. // The following are defines for the bit fields in the SYSCTL_SRGPIO register.
  12400. //
  12401. //*****************************************************************************
  12402. #define SYSCTL_SRGPIO_R17 0x00020000 // GPIO Port T Software Reset
  12403. #define SYSCTL_SRGPIO_R16 0x00010000 // GPIO Port S Software Reset
  12404. #define SYSCTL_SRGPIO_R15 0x00008000 // GPIO Port R Software Reset
  12405. #define SYSCTL_SRGPIO_R14 0x00004000 // GPIO Port Q Software Reset
  12406. #define SYSCTL_SRGPIO_R13 0x00002000 // GPIO Port P Software Reset
  12407. #define SYSCTL_SRGPIO_R12 0x00001000 // GPIO Port N Software Reset
  12408. #define SYSCTL_SRGPIO_R11 0x00000800 // GPIO Port M Software Reset
  12409. #define SYSCTL_SRGPIO_R10 0x00000400 // GPIO Port L Software Reset
  12410. #define SYSCTL_SRGPIO_R9 0x00000200 // GPIO Port K Software Reset
  12411. #define SYSCTL_SRGPIO_R8 0x00000100 // GPIO Port J Software Reset
  12412. #define SYSCTL_SRGPIO_R7 0x00000080 // GPIO Port H Software Reset
  12413. #define SYSCTL_SRGPIO_R6 0x00000040 // GPIO Port G Software Reset
  12414. #define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
  12415. #define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
  12416. #define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
  12417. #define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
  12418. #define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
  12419. #define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
  12420. //*****************************************************************************
  12421. //
  12422. // The following are defines for the bit fields in the SYSCTL_SRDMA register.
  12423. //
  12424. //*****************************************************************************
  12425. #define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
  12426. //*****************************************************************************
  12427. //
  12428. // The following are defines for the bit fields in the SYSCTL_SREPI register.
  12429. //
  12430. //*****************************************************************************
  12431. #define SYSCTL_SREPI_R0 0x00000001 // EPI Module Software Reset
  12432. //*****************************************************************************
  12433. //
  12434. // The following are defines for the bit fields in the SYSCTL_SRHIB register.
  12435. //
  12436. //*****************************************************************************
  12437. #define SYSCTL_SRHIB_R0 0x00000001 // Hibernation Module Software
  12438. // Reset
  12439. //*****************************************************************************
  12440. //
  12441. // The following are defines for the bit fields in the SYSCTL_SRUART register.
  12442. //
  12443. //*****************************************************************************
  12444. #define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
  12445. #define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
  12446. #define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
  12447. #define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
  12448. #define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
  12449. #define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
  12450. #define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
  12451. #define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
  12452. //*****************************************************************************
  12453. //
  12454. // The following are defines for the bit fields in the SYSCTL_SRSSI register.
  12455. //
  12456. //*****************************************************************************
  12457. #define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
  12458. #define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
  12459. #define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
  12460. #define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
  12461. //*****************************************************************************
  12462. //
  12463. // The following are defines for the bit fields in the SYSCTL_SRI2C register.
  12464. //
  12465. //*****************************************************************************
  12466. #define SYSCTL_SRI2C_R9 0x00000200 // I2C Module 9 Software Reset
  12467. #define SYSCTL_SRI2C_R8 0x00000100 // I2C Module 8 Software Reset
  12468. #define SYSCTL_SRI2C_R7 0x00000080 // I2C Module 7 Software Reset
  12469. #define SYSCTL_SRI2C_R6 0x00000040 // I2C Module 6 Software Reset
  12470. #define SYSCTL_SRI2C_R5 0x00000020 // I2C Module 5 Software Reset
  12471. #define SYSCTL_SRI2C_R4 0x00000010 // I2C Module 4 Software Reset
  12472. #define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
  12473. #define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
  12474. #define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
  12475. #define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
  12476. //*****************************************************************************
  12477. //
  12478. // The following are defines for the bit fields in the SYSCTL_SRUSB register.
  12479. //
  12480. //*****************************************************************************
  12481. #define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
  12482. //*****************************************************************************
  12483. //
  12484. // The following are defines for the bit fields in the SYSCTL_SREPHY register.
  12485. //
  12486. //*****************************************************************************
  12487. #define SYSCTL_SREPHY_R0 0x00000001 // Ethernet PHY Module Software
  12488. // Reset
  12489. //*****************************************************************************
  12490. //
  12491. // The following are defines for the bit fields in the SYSCTL_SRCAN register.
  12492. //
  12493. //*****************************************************************************
  12494. #define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
  12495. #define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
  12496. //*****************************************************************************
  12497. //
  12498. // The following are defines for the bit fields in the SYSCTL_SRADC register.
  12499. //
  12500. //*****************************************************************************
  12501. #define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
  12502. #define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
  12503. //*****************************************************************************
  12504. //
  12505. // The following are defines for the bit fields in the SYSCTL_SRACMP register.
  12506. //
  12507. //*****************************************************************************
  12508. #define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module 0
  12509. // Software Reset
  12510. //*****************************************************************************
  12511. //
  12512. // The following are defines for the bit fields in the SYSCTL_SRPWM register.
  12513. //
  12514. //*****************************************************************************
  12515. #define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
  12516. //*****************************************************************************
  12517. //
  12518. // The following are defines for the bit fields in the SYSCTL_SRQEI register.
  12519. //
  12520. //*****************************************************************************
  12521. #define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
  12522. //*****************************************************************************
  12523. //
  12524. // The following are defines for the bit fields in the SYSCTL_SREEPROM
  12525. // register.
  12526. //
  12527. //*****************************************************************************
  12528. #define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
  12529. //*****************************************************************************
  12530. //
  12531. // The following are defines for the bit fields in the SYSCTL_SRCCM register.
  12532. //
  12533. //*****************************************************************************
  12534. #define SYSCTL_SRCCM_R0 0x00000001 // CRC and Cryptographic Modules
  12535. // Software Reset
  12536. //*****************************************************************************
  12537. //
  12538. // The following are defines for the bit fields in the SYSCTL_SRLCD register.
  12539. //
  12540. //*****************************************************************************
  12541. #define SYSCTL_SRLCD_R0 0x00000001 // LCD Module 0 Software Reset
  12542. //*****************************************************************************
  12543. //
  12544. // The following are defines for the bit fields in the SYSCTL_SROWIRE register.
  12545. //
  12546. //*****************************************************************************
  12547. #define SYSCTL_SROWIRE_R0 0x00000001 // 1-Wire Module Software Reset
  12548. //*****************************************************************************
  12549. //
  12550. // The following are defines for the bit fields in the SYSCTL_SREMAC register.
  12551. //
  12552. //*****************************************************************************
  12553. #define SYSCTL_SREMAC_R0 0x00000001 // Ethernet Controller MAC Module 0
  12554. // Software Reset
  12555. //*****************************************************************************
  12556. //
  12557. // The following are defines for the bit fields in the SYSCTL_RCGCWD register.
  12558. //
  12559. //*****************************************************************************
  12560. #define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
  12561. // Gating Control
  12562. #define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
  12563. // Gating Control
  12564. //*****************************************************************************
  12565. //
  12566. // The following are defines for the bit fields in the SYSCTL_RCGCTIMER
  12567. // register.
  12568. //
  12569. //*****************************************************************************
  12570. #define SYSCTL_RCGCTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  12571. // 7 Run Mode Clock Gating Control
  12572. #define SYSCTL_RCGCTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  12573. // 6 Run Mode Clock Gating Control
  12574. #define SYSCTL_RCGCTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  12575. // 5 Run Mode Clock Gating Control
  12576. #define SYSCTL_RCGCTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  12577. // 4 Run Mode Clock Gating Control
  12578. #define SYSCTL_RCGCTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  12579. // 3 Run Mode Clock Gating Control
  12580. #define SYSCTL_RCGCTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  12581. // 2 Run Mode Clock Gating Control
  12582. #define SYSCTL_RCGCTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  12583. // 1 Run Mode Clock Gating Control
  12584. #define SYSCTL_RCGCTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  12585. // 0 Run Mode Clock Gating Control
  12586. //*****************************************************************************
  12587. //
  12588. // The following are defines for the bit fields in the SYSCTL_RCGCGPIO
  12589. // register.
  12590. //
  12591. //*****************************************************************************
  12592. #define SYSCTL_RCGCGPIO_R17 0x00020000 // GPIO Port T Run Mode Clock
  12593. // Gating Control
  12594. #define SYSCTL_RCGCGPIO_R16 0x00010000 // GPIO Port S Run Mode Clock
  12595. // Gating Control
  12596. #define SYSCTL_RCGCGPIO_R15 0x00008000 // GPIO Port R Run Mode Clock
  12597. // Gating Control
  12598. #define SYSCTL_RCGCGPIO_R14 0x00004000 // GPIO Port Q Run Mode Clock
  12599. // Gating Control
  12600. #define SYSCTL_RCGCGPIO_R13 0x00002000 // GPIO Port P Run Mode Clock
  12601. // Gating Control
  12602. #define SYSCTL_RCGCGPIO_R12 0x00001000 // GPIO Port N Run Mode Clock
  12603. // Gating Control
  12604. #define SYSCTL_RCGCGPIO_R11 0x00000800 // GPIO Port M Run Mode Clock
  12605. // Gating Control
  12606. #define SYSCTL_RCGCGPIO_R10 0x00000400 // GPIO Port L Run Mode Clock
  12607. // Gating Control
  12608. #define SYSCTL_RCGCGPIO_R9 0x00000200 // GPIO Port K Run Mode Clock
  12609. // Gating Control
  12610. #define SYSCTL_RCGCGPIO_R8 0x00000100 // GPIO Port J Run Mode Clock
  12611. // Gating Control
  12612. #define SYSCTL_RCGCGPIO_R7 0x00000080 // GPIO Port H Run Mode Clock
  12613. // Gating Control
  12614. #define SYSCTL_RCGCGPIO_R6 0x00000040 // GPIO Port G Run Mode Clock
  12615. // Gating Control
  12616. #define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
  12617. // Gating Control
  12618. #define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
  12619. // Gating Control
  12620. #define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
  12621. // Gating Control
  12622. #define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
  12623. // Gating Control
  12624. #define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
  12625. // Gating Control
  12626. #define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
  12627. // Gating Control
  12628. //*****************************************************************************
  12629. //
  12630. // The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
  12631. //
  12632. //*****************************************************************************
  12633. #define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
  12634. // Gating Control
  12635. //*****************************************************************************
  12636. //
  12637. // The following are defines for the bit fields in the SYSCTL_RCGCEPI register.
  12638. //
  12639. //*****************************************************************************
  12640. #define SYSCTL_RCGCEPI_R0 0x00000001 // EPI Module Run Mode Clock Gating
  12641. // Control
  12642. //*****************************************************************************
  12643. //
  12644. // The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
  12645. //
  12646. //*****************************************************************************
  12647. #define SYSCTL_RCGCHIB_R0 0x00000001 // Hibernation Module Run Mode
  12648. // Clock Gating Control
  12649. //*****************************************************************************
  12650. //
  12651. // The following are defines for the bit fields in the SYSCTL_RCGCUART
  12652. // register.
  12653. //
  12654. //*****************************************************************************
  12655. #define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
  12656. // Gating Control
  12657. #define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
  12658. // Gating Control
  12659. #define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
  12660. // Gating Control
  12661. #define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
  12662. // Gating Control
  12663. #define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
  12664. // Gating Control
  12665. #define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
  12666. // Gating Control
  12667. #define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
  12668. // Gating Control
  12669. #define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
  12670. // Gating Control
  12671. //*****************************************************************************
  12672. //
  12673. // The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
  12674. //
  12675. //*****************************************************************************
  12676. #define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
  12677. // Gating Control
  12678. #define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
  12679. // Gating Control
  12680. #define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
  12681. // Gating Control
  12682. #define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
  12683. // Gating Control
  12684. //*****************************************************************************
  12685. //
  12686. // The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
  12687. //
  12688. //*****************************************************************************
  12689. #define SYSCTL_RCGCI2C_R9 0x00000200 // I2C Module 9 Run Mode Clock
  12690. // Gating Control
  12691. #define SYSCTL_RCGCI2C_R8 0x00000100 // I2C Module 8 Run Mode Clock
  12692. // Gating Control
  12693. #define SYSCTL_RCGCI2C_R7 0x00000080 // I2C Module 7 Run Mode Clock
  12694. // Gating Control
  12695. #define SYSCTL_RCGCI2C_R6 0x00000040 // I2C Module 6 Run Mode Clock
  12696. // Gating Control
  12697. #define SYSCTL_RCGCI2C_R5 0x00000020 // I2C Module 5 Run Mode Clock
  12698. // Gating Control
  12699. #define SYSCTL_RCGCI2C_R4 0x00000010 // I2C Module 4 Run Mode Clock
  12700. // Gating Control
  12701. #define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
  12702. // Gating Control
  12703. #define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
  12704. // Gating Control
  12705. #define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
  12706. // Gating Control
  12707. #define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
  12708. // Gating Control
  12709. //*****************************************************************************
  12710. //
  12711. // The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
  12712. //
  12713. //*****************************************************************************
  12714. #define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
  12715. // Control
  12716. //*****************************************************************************
  12717. //
  12718. // The following are defines for the bit fields in the SYSCTL_RCGCEPHY
  12719. // register.
  12720. //
  12721. //*****************************************************************************
  12722. #define SYSCTL_RCGCEPHY_R0 0x00000001 // Ethernet PHY Module Run Mode
  12723. // Clock Gating Control
  12724. //*****************************************************************************
  12725. //
  12726. // The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
  12727. //
  12728. //*****************************************************************************
  12729. #define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
  12730. // Gating Control
  12731. #define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
  12732. // Gating Control
  12733. //*****************************************************************************
  12734. //
  12735. // The following are defines for the bit fields in the SYSCTL_RCGCADC register.
  12736. //
  12737. //*****************************************************************************
  12738. #define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
  12739. // Gating Control
  12740. #define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
  12741. // Gating Control
  12742. //*****************************************************************************
  12743. //
  12744. // The following are defines for the bit fields in the SYSCTL_RCGCACMP
  12745. // register.
  12746. //
  12747. //*****************************************************************************
  12748. #define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module 0 Run
  12749. // Mode Clock Gating Control
  12750. //*****************************************************************************
  12751. //
  12752. // The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
  12753. //
  12754. //*****************************************************************************
  12755. #define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
  12756. // Gating Control
  12757. //*****************************************************************************
  12758. //
  12759. // The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
  12760. //
  12761. //*****************************************************************************
  12762. #define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
  12763. // Gating Control
  12764. //*****************************************************************************
  12765. //
  12766. // The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
  12767. // register.
  12768. //
  12769. //*****************************************************************************
  12770. #define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
  12771. // Gating Control
  12772. //*****************************************************************************
  12773. //
  12774. // The following are defines for the bit fields in the SYSCTL_RCGCCCM register.
  12775. //
  12776. //*****************************************************************************
  12777. #define SYSCTL_RCGCCCM_R0 0x00000001 // CRC and Cryptographic Modules
  12778. // Run Mode Clock Gating Control
  12779. //*****************************************************************************
  12780. //
  12781. // The following are defines for the bit fields in the SYSCTL_RCGCLCD register.
  12782. //
  12783. //*****************************************************************************
  12784. #define SYSCTL_RCGCLCD_R0 0x00000001 // LCD Controller Module 0 Run Mode
  12785. // Clock Gating Control
  12786. //*****************************************************************************
  12787. //
  12788. // The following are defines for the bit fields in the SYSCTL_RCGCOWIRE
  12789. // register.
  12790. //
  12791. //*****************************************************************************
  12792. #define SYSCTL_RCGCOWIRE_R0 0x00000001 // 1-Wire Module 0 Run Mode Clock
  12793. // Gating Control
  12794. //*****************************************************************************
  12795. //
  12796. // The following are defines for the bit fields in the SYSCTL_RCGCEMAC
  12797. // register.
  12798. //
  12799. //*****************************************************************************
  12800. #define SYSCTL_RCGCEMAC_R0 0x00000001 // Ethernet MAC Module 0 Run Mode
  12801. // Clock Gating Control
  12802. //*****************************************************************************
  12803. //
  12804. // The following are defines for the bit fields in the SYSCTL_SCGCWD register.
  12805. //
  12806. //*****************************************************************************
  12807. #define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
  12808. // Clock Gating Control
  12809. #define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
  12810. // Clock Gating Control
  12811. //*****************************************************************************
  12812. //
  12813. // The following are defines for the bit fields in the SYSCTL_SCGCTIMER
  12814. // register.
  12815. //
  12816. //*****************************************************************************
  12817. #define SYSCTL_SCGCTIMER_S7 0x00000080 // 16/32-Bit General-Purpose Timer
  12818. // 7 Sleep Mode Clock Gating
  12819. // Control
  12820. #define SYSCTL_SCGCTIMER_S6 0x00000040 // 16/32-Bit General-Purpose Timer
  12821. // 6 Sleep Mode Clock Gating
  12822. // Control
  12823. #define SYSCTL_SCGCTIMER_S5 0x00000020 // 16/32-Bit General-Purpose Timer
  12824. // 5 Sleep Mode Clock Gating
  12825. // Control
  12826. #define SYSCTL_SCGCTIMER_S4 0x00000010 // 16/32-Bit General-Purpose Timer
  12827. // 4 Sleep Mode Clock Gating
  12828. // Control
  12829. #define SYSCTL_SCGCTIMER_S3 0x00000008 // 16/32-Bit General-Purpose Timer
  12830. // 3 Sleep Mode Clock Gating
  12831. // Control
  12832. #define SYSCTL_SCGCTIMER_S2 0x00000004 // 16/32-Bit General-Purpose Timer
  12833. // 2 Sleep Mode Clock Gating
  12834. // Control
  12835. #define SYSCTL_SCGCTIMER_S1 0x00000002 // 16/32-Bit General-Purpose Timer
  12836. // 1 Sleep Mode Clock Gating
  12837. // Control
  12838. #define SYSCTL_SCGCTIMER_S0 0x00000001 // 16/32-Bit General-Purpose Timer
  12839. // 0 Sleep Mode Clock Gating
  12840. // Control
  12841. //*****************************************************************************
  12842. //
  12843. // The following are defines for the bit fields in the SYSCTL_SCGCGPIO
  12844. // register.
  12845. //
  12846. //*****************************************************************************
  12847. #define SYSCTL_SCGCGPIO_S17 0x00020000 // GPIO Port T Sleep Mode Clock
  12848. // Gating Control
  12849. #define SYSCTL_SCGCGPIO_S16 0x00010000 // GPIO Port S Sleep Mode Clock
  12850. // Gating Control
  12851. #define SYSCTL_SCGCGPIO_S15 0x00008000 // GPIO Port R Sleep Mode Clock
  12852. // Gating Control
  12853. #define SYSCTL_SCGCGPIO_S14 0x00004000 // GPIO Port Q Sleep Mode Clock
  12854. // Gating Control
  12855. #define SYSCTL_SCGCGPIO_S13 0x00002000 // GPIO Port P Sleep Mode Clock
  12856. // Gating Control
  12857. #define SYSCTL_SCGCGPIO_S12 0x00001000 // GPIO Port N Sleep Mode Clock
  12858. // Gating Control
  12859. #define SYSCTL_SCGCGPIO_S11 0x00000800 // GPIO Port M Sleep Mode Clock
  12860. // Gating Control
  12861. #define SYSCTL_SCGCGPIO_S10 0x00000400 // GPIO Port L Sleep Mode Clock
  12862. // Gating Control
  12863. #define SYSCTL_SCGCGPIO_S9 0x00000200 // GPIO Port K Sleep Mode Clock
  12864. // Gating Control
  12865. #define SYSCTL_SCGCGPIO_S8 0x00000100 // GPIO Port J Sleep Mode Clock
  12866. // Gating Control
  12867. #define SYSCTL_SCGCGPIO_S7 0x00000080 // GPIO Port H Sleep Mode Clock
  12868. // Gating Control
  12869. #define SYSCTL_SCGCGPIO_S6 0x00000040 // GPIO Port G Sleep Mode Clock
  12870. // Gating Control
  12871. #define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
  12872. // Gating Control
  12873. #define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
  12874. // Gating Control
  12875. #define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
  12876. // Gating Control
  12877. #define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
  12878. // Gating Control
  12879. #define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
  12880. // Gating Control
  12881. #define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
  12882. // Gating Control
  12883. //*****************************************************************************
  12884. //
  12885. // The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
  12886. //
  12887. //*****************************************************************************
  12888. #define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
  12889. // Gating Control
  12890. //*****************************************************************************
  12891. //
  12892. // The following are defines for the bit fields in the SYSCTL_SCGCEPI register.
  12893. //
  12894. //*****************************************************************************
  12895. #define SYSCTL_SCGCEPI_S0 0x00000001 // EPI Module Sleep Mode Clock
  12896. // Gating Control
  12897. //*****************************************************************************
  12898. //
  12899. // The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
  12900. //
  12901. //*****************************************************************************
  12902. #define SYSCTL_SCGCHIB_S0 0x00000001 // Hibernation Module Sleep Mode
  12903. // Clock Gating Control
  12904. //*****************************************************************************
  12905. //
  12906. // The following are defines for the bit fields in the SYSCTL_SCGCUART
  12907. // register.
  12908. //
  12909. //*****************************************************************************
  12910. #define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
  12911. // Gating Control
  12912. #define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
  12913. // Gating Control
  12914. #define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
  12915. // Gating Control
  12916. #define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
  12917. // Gating Control
  12918. #define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
  12919. // Gating Control
  12920. #define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
  12921. // Gating Control
  12922. #define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
  12923. // Gating Control
  12924. #define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
  12925. // Gating Control
  12926. //*****************************************************************************
  12927. //
  12928. // The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
  12929. //
  12930. //*****************************************************************************
  12931. #define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
  12932. // Gating Control
  12933. #define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
  12934. // Gating Control
  12935. #define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
  12936. // Gating Control
  12937. #define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
  12938. // Gating Control
  12939. //*****************************************************************************
  12940. //
  12941. // The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
  12942. //
  12943. //*****************************************************************************
  12944. #define SYSCTL_SCGCI2C_S9 0x00000200 // I2C Module 9 Sleep Mode Clock
  12945. // Gating Control
  12946. #define SYSCTL_SCGCI2C_S8 0x00000100 // I2C Module 8 Sleep Mode Clock
  12947. // Gating Control
  12948. #define SYSCTL_SCGCI2C_S7 0x00000080 // I2C Module 7 Sleep Mode Clock
  12949. // Gating Control
  12950. #define SYSCTL_SCGCI2C_S6 0x00000040 // I2C Module 6 Sleep Mode Clock
  12951. // Gating Control
  12952. #define SYSCTL_SCGCI2C_S5 0x00000020 // I2C Module 5 Sleep Mode Clock
  12953. // Gating Control
  12954. #define SYSCTL_SCGCI2C_S4 0x00000010 // I2C Module 4 Sleep Mode Clock
  12955. // Gating Control
  12956. #define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
  12957. // Gating Control
  12958. #define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
  12959. // Gating Control
  12960. #define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
  12961. // Gating Control
  12962. #define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
  12963. // Gating Control
  12964. //*****************************************************************************
  12965. //
  12966. // The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
  12967. //
  12968. //*****************************************************************************
  12969. #define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
  12970. // Gating Control
  12971. //*****************************************************************************
  12972. //
  12973. // The following are defines for the bit fields in the SYSCTL_SCGCEPHY
  12974. // register.
  12975. //
  12976. //*****************************************************************************
  12977. #define SYSCTL_SCGCEPHY_S0 0x00000001 // PHY Module Sleep Mode Clock
  12978. // Gating Control
  12979. //*****************************************************************************
  12980. //
  12981. // The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
  12982. //
  12983. //*****************************************************************************
  12984. #define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
  12985. // Gating Control
  12986. #define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
  12987. // Gating Control
  12988. //*****************************************************************************
  12989. //
  12990. // The following are defines for the bit fields in the SYSCTL_SCGCADC register.
  12991. //
  12992. //*****************************************************************************
  12993. #define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
  12994. // Gating Control
  12995. #define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
  12996. // Gating Control
  12997. //*****************************************************************************
  12998. //
  12999. // The following are defines for the bit fields in the SYSCTL_SCGCACMP
  13000. // register.
  13001. //
  13002. //*****************************************************************************
  13003. #define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module 0 Sleep
  13004. // Mode Clock Gating Control
  13005. //*****************************************************************************
  13006. //
  13007. // The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
  13008. //
  13009. //*****************************************************************************
  13010. #define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
  13011. // Gating Control
  13012. //*****************************************************************************
  13013. //
  13014. // The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
  13015. //
  13016. //*****************************************************************************
  13017. #define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
  13018. // Gating Control
  13019. //*****************************************************************************
  13020. //
  13021. // The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
  13022. // register.
  13023. //
  13024. //*****************************************************************************
  13025. #define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
  13026. // Gating Control
  13027. //*****************************************************************************
  13028. //
  13029. // The following are defines for the bit fields in the SYSCTL_SCGCCCM register.
  13030. //
  13031. //*****************************************************************************
  13032. #define SYSCTL_SCGCCCM_S0 0x00000001 // CRC and Cryptographic Modules
  13033. // Sleep Mode Clock Gating Control
  13034. //*****************************************************************************
  13035. //
  13036. // The following are defines for the bit fields in the SYSCTL_SCGCLCD register.
  13037. //
  13038. //*****************************************************************************
  13039. #define SYSCTL_SCGCLCD_S0 0x00000001 // LCD Controller Module 0 Sleep
  13040. // Mode Clock Gating Control
  13041. //*****************************************************************************
  13042. //
  13043. // The following are defines for the bit fields in the SYSCTL_SCGCOWIRE
  13044. // register.
  13045. //
  13046. //*****************************************************************************
  13047. #define SYSCTL_SCGCOWIRE_S0 0x00000001 // 1-Wire Module 0 Sleep Mode Clock
  13048. // Gating Control
  13049. //*****************************************************************************
  13050. //
  13051. // The following are defines for the bit fields in the SYSCTL_SCGCEMAC
  13052. // register.
  13053. //
  13054. //*****************************************************************************
  13055. #define SYSCTL_SCGCEMAC_S0 0x00000001 // Ethernet MAC Module 0 Sleep Mode
  13056. // Clock Gating Control
  13057. //*****************************************************************************
  13058. //
  13059. // The following are defines for the bit fields in the SYSCTL_DCGCWD register.
  13060. //
  13061. //*****************************************************************************
  13062. #define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
  13063. // Clock Gating Control
  13064. #define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
  13065. // Clock Gating Control
  13066. //*****************************************************************************
  13067. //
  13068. // The following are defines for the bit fields in the SYSCTL_DCGCTIMER
  13069. // register.
  13070. //
  13071. //*****************************************************************************
  13072. #define SYSCTL_DCGCTIMER_D7 0x00000080 // 16/32-Bit General-Purpose Timer
  13073. // 7 Deep-Sleep Mode Clock Gating
  13074. // Control
  13075. #define SYSCTL_DCGCTIMER_D6 0x00000040 // 16/32-Bit General-Purpose Timer
  13076. // 6 Deep-Sleep Mode Clock Gating
  13077. // Control
  13078. #define SYSCTL_DCGCTIMER_D5 0x00000020 // 16/32-Bit General-Purpose Timer
  13079. // 5 Deep-Sleep Mode Clock Gating
  13080. // Control
  13081. #define SYSCTL_DCGCTIMER_D4 0x00000010 // 16/32-Bit General-Purpose Timer
  13082. // 4 Deep-Sleep Mode Clock Gating
  13083. // Control
  13084. #define SYSCTL_DCGCTIMER_D3 0x00000008 // 16/32-Bit General-Purpose Timer
  13085. // 3 Deep-Sleep Mode Clock Gating
  13086. // Control
  13087. #define SYSCTL_DCGCTIMER_D2 0x00000004 // 16/32-Bit General-Purpose Timer
  13088. // 2 Deep-Sleep Mode Clock Gating
  13089. // Control
  13090. #define SYSCTL_DCGCTIMER_D1 0x00000002 // 16/32-Bit General-Purpose Timer
  13091. // 1 Deep-Sleep Mode Clock Gating
  13092. // Control
  13093. #define SYSCTL_DCGCTIMER_D0 0x00000001 // 16/32-Bit General-Purpose Timer
  13094. // 0 Deep-Sleep Mode Clock Gating
  13095. // Control
  13096. //*****************************************************************************
  13097. //
  13098. // The following are defines for the bit fields in the SYSCTL_DCGCGPIO
  13099. // register.
  13100. //
  13101. //*****************************************************************************
  13102. #define SYSCTL_DCGCGPIO_D17 0x00020000 // GPIO Port T Deep-Sleep Mode
  13103. // Clock Gating Control
  13104. #define SYSCTL_DCGCGPIO_D16 0x00010000 // GPIO Port S Deep-Sleep Mode
  13105. // Clock Gating Control
  13106. #define SYSCTL_DCGCGPIO_D15 0x00008000 // GPIO Port R Deep-Sleep Mode
  13107. // Clock Gating Control
  13108. #define SYSCTL_DCGCGPIO_D14 0x00004000 // GPIO Port Q Deep-Sleep Mode
  13109. // Clock Gating Control
  13110. #define SYSCTL_DCGCGPIO_D13 0x00002000 // GPIO Port P Deep-Sleep Mode
  13111. // Clock Gating Control
  13112. #define SYSCTL_DCGCGPIO_D12 0x00001000 // GPIO Port N Deep-Sleep Mode
  13113. // Clock Gating Control
  13114. #define SYSCTL_DCGCGPIO_D11 0x00000800 // GPIO Port M Deep-Sleep Mode
  13115. // Clock Gating Control
  13116. #define SYSCTL_DCGCGPIO_D10 0x00000400 // GPIO Port L Deep-Sleep Mode
  13117. // Clock Gating Control
  13118. #define SYSCTL_DCGCGPIO_D9 0x00000200 // GPIO Port K Deep-Sleep Mode
  13119. // Clock Gating Control
  13120. #define SYSCTL_DCGCGPIO_D8 0x00000100 // GPIO Port J Deep-Sleep Mode
  13121. // Clock Gating Control
  13122. #define SYSCTL_DCGCGPIO_D7 0x00000080 // GPIO Port H Deep-Sleep Mode
  13123. // Clock Gating Control
  13124. #define SYSCTL_DCGCGPIO_D6 0x00000040 // GPIO Port G Deep-Sleep Mode
  13125. // Clock Gating Control
  13126. #define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
  13127. // Clock Gating Control
  13128. #define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
  13129. // Clock Gating Control
  13130. #define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
  13131. // Clock Gating Control
  13132. #define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
  13133. // Clock Gating Control
  13134. #define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
  13135. // Clock Gating Control
  13136. #define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
  13137. // Clock Gating Control
  13138. //*****************************************************************************
  13139. //
  13140. // The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
  13141. //
  13142. //*****************************************************************************
  13143. #define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
  13144. // Clock Gating Control
  13145. //*****************************************************************************
  13146. //
  13147. // The following are defines for the bit fields in the SYSCTL_DCGCEPI register.
  13148. //
  13149. //*****************************************************************************
  13150. #define SYSCTL_DCGCEPI_D0 0x00000001 // EPI Module Deep-Sleep Mode Clock
  13151. // Gating Control
  13152. //*****************************************************************************
  13153. //
  13154. // The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
  13155. //
  13156. //*****************************************************************************
  13157. #define SYSCTL_DCGCHIB_D0 0x00000001 // Hibernation Module Deep-Sleep
  13158. // Mode Clock Gating Control
  13159. //*****************************************************************************
  13160. //
  13161. // The following are defines for the bit fields in the SYSCTL_DCGCUART
  13162. // register.
  13163. //
  13164. //*****************************************************************************
  13165. #define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
  13166. // Clock Gating Control
  13167. #define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
  13168. // Clock Gating Control
  13169. #define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
  13170. // Clock Gating Control
  13171. #define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
  13172. // Clock Gating Control
  13173. #define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
  13174. // Clock Gating Control
  13175. #define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
  13176. // Clock Gating Control
  13177. #define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
  13178. // Clock Gating Control
  13179. #define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
  13180. // Clock Gating Control
  13181. //*****************************************************************************
  13182. //
  13183. // The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
  13184. //
  13185. //*****************************************************************************
  13186. #define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
  13187. // Clock Gating Control
  13188. #define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
  13189. // Clock Gating Control
  13190. #define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
  13191. // Clock Gating Control
  13192. #define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
  13193. // Clock Gating Control
  13194. //*****************************************************************************
  13195. //
  13196. // The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
  13197. //
  13198. //*****************************************************************************
  13199. #define SYSCTL_DCGCI2C_D9 0x00000200 // I2C Module 9 Deep-Sleep Mode
  13200. // Clock Gating Control
  13201. #define SYSCTL_DCGCI2C_D8 0x00000100 // I2C Module 8 Deep-Sleep Mode
  13202. // Clock Gating Control
  13203. #define SYSCTL_DCGCI2C_D7 0x00000080 // I2C Module 7 Deep-Sleep Mode
  13204. // Clock Gating Control
  13205. #define SYSCTL_DCGCI2C_D6 0x00000040 // I2C Module 6 Deep-Sleep Mode
  13206. // Clock Gating Control
  13207. #define SYSCTL_DCGCI2C_D5 0x00000020 // I2C Module 5 Deep-Sleep Mode
  13208. // Clock Gating Control
  13209. #define SYSCTL_DCGCI2C_D4 0x00000010 // I2C Module 4 Deep-Sleep Mode
  13210. // Clock Gating Control
  13211. #define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
  13212. // Clock Gating Control
  13213. #define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
  13214. // Clock Gating Control
  13215. #define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
  13216. // Clock Gating Control
  13217. #define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
  13218. // Clock Gating Control
  13219. //*****************************************************************************
  13220. //
  13221. // The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
  13222. //
  13223. //*****************************************************************************
  13224. #define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
  13225. // Gating Control
  13226. //*****************************************************************************
  13227. //
  13228. // The following are defines for the bit fields in the SYSCTL_DCGCEPHY
  13229. // register.
  13230. //
  13231. //*****************************************************************************
  13232. #define SYSCTL_DCGCEPHY_D0 0x00000001 // PHY Module Deep-Sleep Mode Clock
  13233. // Gating Control
  13234. //*****************************************************************************
  13235. //
  13236. // The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
  13237. //
  13238. //*****************************************************************************
  13239. #define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
  13240. // Clock Gating Control
  13241. #define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
  13242. // Clock Gating Control
  13243. //*****************************************************************************
  13244. //
  13245. // The following are defines for the bit fields in the SYSCTL_DCGCADC register.
  13246. //
  13247. //*****************************************************************************
  13248. #define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
  13249. // Clock Gating Control
  13250. #define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
  13251. // Clock Gating Control
  13252. //*****************************************************************************
  13253. //
  13254. // The following are defines for the bit fields in the SYSCTL_DCGCACMP
  13255. // register.
  13256. //
  13257. //*****************************************************************************
  13258. #define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module 0
  13259. // Deep-Sleep Mode Clock Gating
  13260. // Control
  13261. //*****************************************************************************
  13262. //
  13263. // The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
  13264. //
  13265. //*****************************************************************************
  13266. #define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
  13267. // Clock Gating Control
  13268. //*****************************************************************************
  13269. //
  13270. // The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
  13271. //
  13272. //*****************************************************************************
  13273. #define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
  13274. // Clock Gating Control
  13275. //*****************************************************************************
  13276. //
  13277. // The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
  13278. // register.
  13279. //
  13280. //*****************************************************************************
  13281. #define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
  13282. // Clock Gating Control
  13283. //*****************************************************************************
  13284. //
  13285. // The following are defines for the bit fields in the SYSCTL_DCGCCCM register.
  13286. //
  13287. //*****************************************************************************
  13288. #define SYSCTL_DCGCCCM_D0 0x00000001 // CRC and Cryptographic Modules
  13289. // Deep-Sleep Mode Clock Gating
  13290. // Control
  13291. //*****************************************************************************
  13292. //
  13293. // The following are defines for the bit fields in the SYSCTL_DCGCLCD register.
  13294. //
  13295. //*****************************************************************************
  13296. #define SYSCTL_DCGCLCD_D0 0x00000001 // LCD Controller Module 0
  13297. // Deep-Sleep Mode Clock Gating
  13298. // Control
  13299. //*****************************************************************************
  13300. //
  13301. // The following are defines for the bit fields in the SYSCTL_DCGCOWIRE
  13302. // register.
  13303. //
  13304. //*****************************************************************************
  13305. #define SYSCTL_DCGCOWIRE_D0 0x00000001 // 1-Wire Module 0 Deep-Sleep Mode
  13306. // Clock Gating Control
  13307. //*****************************************************************************
  13308. //
  13309. // The following are defines for the bit fields in the SYSCTL_DCGCEMAC
  13310. // register.
  13311. //
  13312. //*****************************************************************************
  13313. #define SYSCTL_DCGCEMAC_D0 0x00000001 // Ethernet MAC Module 0 Deep-Sleep
  13314. // Mode Clock Gating Control
  13315. //*****************************************************************************
  13316. //
  13317. // The following are defines for the bit fields in the SYSCTL_PCWD register.
  13318. //
  13319. //*****************************************************************************
  13320. #define SYSCTL_PCWD_P1 0x00000002 // Watchdog Timer 1 Power Control
  13321. #define SYSCTL_PCWD_P0 0x00000001 // Watchdog Timer 0 Power Control
  13322. //*****************************************************************************
  13323. //
  13324. // The following are defines for the bit fields in the SYSCTL_PCTIMER register.
  13325. //
  13326. //*****************************************************************************
  13327. #define SYSCTL_PCTIMER_P7 0x00000080 // General-Purpose Timer 7 Power
  13328. // Control
  13329. #define SYSCTL_PCTIMER_P6 0x00000040 // General-Purpose Timer 6 Power
  13330. // Control
  13331. #define SYSCTL_PCTIMER_P5 0x00000020 // General-Purpose Timer 5 Power
  13332. // Control
  13333. #define SYSCTL_PCTIMER_P4 0x00000010 // General-Purpose Timer 4 Power
  13334. // Control
  13335. #define SYSCTL_PCTIMER_P3 0x00000008 // General-Purpose Timer 3 Power
  13336. // Control
  13337. #define SYSCTL_PCTIMER_P2 0x00000004 // General-Purpose Timer 2 Power
  13338. // Control
  13339. #define SYSCTL_PCTIMER_P1 0x00000002 // General-Purpose Timer 1 Power
  13340. // Control
  13341. #define SYSCTL_PCTIMER_P0 0x00000001 // General-Purpose Timer 0 Power
  13342. // Control
  13343. //*****************************************************************************
  13344. //
  13345. // The following are defines for the bit fields in the SYSCTL_PCGPIO register.
  13346. //
  13347. //*****************************************************************************
  13348. #define SYSCTL_PCGPIO_P17 0x00020000 // GPIO Port T Power Control
  13349. #define SYSCTL_PCGPIO_P16 0x00010000 // GPIO Port S Power Control
  13350. #define SYSCTL_PCGPIO_P15 0x00008000 // GPIO Port R Power Control
  13351. #define SYSCTL_PCGPIO_P14 0x00004000 // GPIO Port Q Power Control
  13352. #define SYSCTL_PCGPIO_P13 0x00002000 // GPIO Port P Power Control
  13353. #define SYSCTL_PCGPIO_P12 0x00001000 // GPIO Port N Power Control
  13354. #define SYSCTL_PCGPIO_P11 0x00000800 // GPIO Port M Power Control
  13355. #define SYSCTL_PCGPIO_P10 0x00000400 // GPIO Port L Power Control
  13356. #define SYSCTL_PCGPIO_P9 0x00000200 // GPIO Port K Power Control
  13357. #define SYSCTL_PCGPIO_P8 0x00000100 // GPIO Port J Power Control
  13358. #define SYSCTL_PCGPIO_P7 0x00000080 // GPIO Port H Power Control
  13359. #define SYSCTL_PCGPIO_P6 0x00000040 // GPIO Port G Power Control
  13360. #define SYSCTL_PCGPIO_P5 0x00000020 // GPIO Port F Power Control
  13361. #define SYSCTL_PCGPIO_P4 0x00000010 // GPIO Port E Power Control
  13362. #define SYSCTL_PCGPIO_P3 0x00000008 // GPIO Port D Power Control
  13363. #define SYSCTL_PCGPIO_P2 0x00000004 // GPIO Port C Power Control
  13364. #define SYSCTL_PCGPIO_P1 0x00000002 // GPIO Port B Power Control
  13365. #define SYSCTL_PCGPIO_P0 0x00000001 // GPIO Port A Power Control
  13366. //*****************************************************************************
  13367. //
  13368. // The following are defines for the bit fields in the SYSCTL_PCDMA register.
  13369. //
  13370. //*****************************************************************************
  13371. #define SYSCTL_PCDMA_P0 0x00000001 // uDMA Module Power Control
  13372. //*****************************************************************************
  13373. //
  13374. // The following are defines for the bit fields in the SYSCTL_PCEPI register.
  13375. //
  13376. //*****************************************************************************
  13377. #define SYSCTL_PCEPI_P0 0x00000001 // EPI Module Power Control
  13378. //*****************************************************************************
  13379. //
  13380. // The following are defines for the bit fields in the SYSCTL_PCHIB register.
  13381. //
  13382. //*****************************************************************************
  13383. #define SYSCTL_PCHIB_P0 0x00000001 // Hibernation Module Power Control
  13384. //*****************************************************************************
  13385. //
  13386. // The following are defines for the bit fields in the SYSCTL_PCUART register.
  13387. //
  13388. //*****************************************************************************
  13389. #define SYSCTL_PCUART_P7 0x00000080 // UART Module 7 Power Control
  13390. #define SYSCTL_PCUART_P6 0x00000040 // UART Module 6 Power Control
  13391. #define SYSCTL_PCUART_P5 0x00000020 // UART Module 5 Power Control
  13392. #define SYSCTL_PCUART_P4 0x00000010 // UART Module 4 Power Control
  13393. #define SYSCTL_PCUART_P3 0x00000008 // UART Module 3 Power Control
  13394. #define SYSCTL_PCUART_P2 0x00000004 // UART Module 2 Power Control
  13395. #define SYSCTL_PCUART_P1 0x00000002 // UART Module 1 Power Control
  13396. #define SYSCTL_PCUART_P0 0x00000001 // UART Module 0 Power Control
  13397. //*****************************************************************************
  13398. //
  13399. // The following are defines for the bit fields in the SYSCTL_PCSSI register.
  13400. //
  13401. //*****************************************************************************
  13402. #define SYSCTL_PCSSI_P3 0x00000008 // SSI Module 3 Power Control
  13403. #define SYSCTL_PCSSI_P2 0x00000004 // SSI Module 2 Power Control
  13404. #define SYSCTL_PCSSI_P1 0x00000002 // SSI Module 1 Power Control
  13405. #define SYSCTL_PCSSI_P0 0x00000001 // SSI Module 0 Power Control
  13406. //*****************************************************************************
  13407. //
  13408. // The following are defines for the bit fields in the SYSCTL_PCI2C register.
  13409. //
  13410. //*****************************************************************************
  13411. #define SYSCTL_PCI2C_P9 0x00000200 // I2C Module 9 Power Control
  13412. #define SYSCTL_PCI2C_P8 0x00000100 // I2C Module 8 Power Control
  13413. #define SYSCTL_PCI2C_P7 0x00000080 // I2C Module 7 Power Control
  13414. #define SYSCTL_PCI2C_P6 0x00000040 // I2C Module 6 Power Control
  13415. #define SYSCTL_PCI2C_P5 0x00000020 // I2C Module 5 Power Control
  13416. #define SYSCTL_PCI2C_P4 0x00000010 // I2C Module 4 Power Control
  13417. #define SYSCTL_PCI2C_P3 0x00000008 // I2C Module 3 Power Control
  13418. #define SYSCTL_PCI2C_P2 0x00000004 // I2C Module 2 Power Control
  13419. #define SYSCTL_PCI2C_P1 0x00000002 // I2C Module 1 Power Control
  13420. #define SYSCTL_PCI2C_P0 0x00000001 // I2C Module 0 Power Control
  13421. //*****************************************************************************
  13422. //
  13423. // The following are defines for the bit fields in the SYSCTL_PCUSB register.
  13424. //
  13425. //*****************************************************************************
  13426. #define SYSCTL_PCUSB_P0 0x00000001 // USB Module Power Control
  13427. //*****************************************************************************
  13428. //
  13429. // The following are defines for the bit fields in the SYSCTL_PCEPHY register.
  13430. //
  13431. //*****************************************************************************
  13432. #define SYSCTL_PCEPHY_P0 0x00000001 // Ethernet PHY Module Power
  13433. // Control
  13434. //*****************************************************************************
  13435. //
  13436. // The following are defines for the bit fields in the SYSCTL_PCCAN register.
  13437. //
  13438. //*****************************************************************************
  13439. #define SYSCTL_PCCAN_P1 0x00000002 // CAN Module 1 Power Control
  13440. #define SYSCTL_PCCAN_P0 0x00000001 // CAN Module 0 Power Control
  13441. //*****************************************************************************
  13442. //
  13443. // The following are defines for the bit fields in the SYSCTL_PCADC register.
  13444. //
  13445. //*****************************************************************************
  13446. #define SYSCTL_PCADC_P1 0x00000002 // ADC Module 1 Power Control
  13447. #define SYSCTL_PCADC_P0 0x00000001 // ADC Module 0 Power Control
  13448. //*****************************************************************************
  13449. //
  13450. // The following are defines for the bit fields in the SYSCTL_PCACMP register.
  13451. //
  13452. //*****************************************************************************
  13453. #define SYSCTL_PCACMP_P0 0x00000001 // Analog Comparator Module 0 Power
  13454. // Control
  13455. //*****************************************************************************
  13456. //
  13457. // The following are defines for the bit fields in the SYSCTL_PCPWM register.
  13458. //
  13459. //*****************************************************************************
  13460. #define SYSCTL_PCPWM_P0 0x00000001 // PWM Module 0 Power Control
  13461. //*****************************************************************************
  13462. //
  13463. // The following are defines for the bit fields in the SYSCTL_PCQEI register.
  13464. //
  13465. //*****************************************************************************
  13466. #define SYSCTL_PCQEI_P0 0x00000001 // QEI Module 0 Power Control
  13467. //*****************************************************************************
  13468. //
  13469. // The following are defines for the bit fields in the SYSCTL_PCEEPROM
  13470. // register.
  13471. //
  13472. //*****************************************************************************
  13473. #define SYSCTL_PCEEPROM_P0 0x00000001 // EEPROM Module 0 Power Control
  13474. //*****************************************************************************
  13475. //
  13476. // The following are defines for the bit fields in the SYSCTL_PCCCM register.
  13477. //
  13478. //*****************************************************************************
  13479. #define SYSCTL_PCCCM_P0 0x00000001 // CRC and Cryptographic Modules
  13480. // Power Control
  13481. //*****************************************************************************
  13482. //
  13483. // The following are defines for the bit fields in the SYSCTL_PCLCD register.
  13484. //
  13485. //*****************************************************************************
  13486. #define SYSCTL_PCLCD_P0 0x00000001 // LCD Controller Module 0 Power
  13487. // Control
  13488. //*****************************************************************************
  13489. //
  13490. // The following are defines for the bit fields in the SYSCTL_PCOWIRE register.
  13491. //
  13492. //*****************************************************************************
  13493. #define SYSCTL_PCOWIRE_P0 0x00000001 // 1-Wire Module 0 Power Control
  13494. //*****************************************************************************
  13495. //
  13496. // The following are defines for the bit fields in the SYSCTL_PCEMAC register.
  13497. //
  13498. //*****************************************************************************
  13499. #define SYSCTL_PCEMAC_P0 0x00000001 // Ethernet MAC Module 0 Power
  13500. // Control
  13501. //*****************************************************************************
  13502. //
  13503. // The following are defines for the bit fields in the SYSCTL_PRWD register.
  13504. //
  13505. //*****************************************************************************
  13506. #define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
  13507. // Ready
  13508. #define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
  13509. // Ready
  13510. //*****************************************************************************
  13511. //
  13512. // The following are defines for the bit fields in the SYSCTL_PRTIMER register.
  13513. //
  13514. //*****************************************************************************
  13515. #define SYSCTL_PRTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  13516. // 7 Peripheral Ready
  13517. #define SYSCTL_PRTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  13518. // 6 Peripheral Ready
  13519. #define SYSCTL_PRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  13520. // 5 Peripheral Ready
  13521. #define SYSCTL_PRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  13522. // 4 Peripheral Ready
  13523. #define SYSCTL_PRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  13524. // 3 Peripheral Ready
  13525. #define SYSCTL_PRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  13526. // 2 Peripheral Ready
  13527. #define SYSCTL_PRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  13528. // 1 Peripheral Ready
  13529. #define SYSCTL_PRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  13530. // 0 Peripheral Ready
  13531. //*****************************************************************************
  13532. //
  13533. // The following are defines for the bit fields in the SYSCTL_PRGPIO register.
  13534. //
  13535. //*****************************************************************************
  13536. #define SYSCTL_PRGPIO_R17 0x00020000 // GPIO Port T Peripheral Ready
  13537. #define SYSCTL_PRGPIO_R16 0x00010000 // GPIO Port S Peripheral Ready
  13538. #define SYSCTL_PRGPIO_R15 0x00008000 // GPIO Port R Peripheral Ready
  13539. #define SYSCTL_PRGPIO_R14 0x00004000 // GPIO Port Q Peripheral Ready
  13540. #define SYSCTL_PRGPIO_R13 0x00002000 // GPIO Port P Peripheral Ready
  13541. #define SYSCTL_PRGPIO_R12 0x00001000 // GPIO Port N Peripheral Ready
  13542. #define SYSCTL_PRGPIO_R11 0x00000800 // GPIO Port M Peripheral Ready
  13543. #define SYSCTL_PRGPIO_R10 0x00000400 // GPIO Port L Peripheral Ready
  13544. #define SYSCTL_PRGPIO_R9 0x00000200 // GPIO Port K Peripheral Ready
  13545. #define SYSCTL_PRGPIO_R8 0x00000100 // GPIO Port J Peripheral Ready
  13546. #define SYSCTL_PRGPIO_R7 0x00000080 // GPIO Port H Peripheral Ready
  13547. #define SYSCTL_PRGPIO_R6 0x00000040 // GPIO Port G Peripheral Ready
  13548. #define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
  13549. #define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
  13550. #define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
  13551. #define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
  13552. #define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
  13553. #define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
  13554. //*****************************************************************************
  13555. //
  13556. // The following are defines for the bit fields in the SYSCTL_PRDMA register.
  13557. //
  13558. //*****************************************************************************
  13559. #define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
  13560. //*****************************************************************************
  13561. //
  13562. // The following are defines for the bit fields in the SYSCTL_PREPI register.
  13563. //
  13564. //*****************************************************************************
  13565. #define SYSCTL_PREPI_R0 0x00000001 // EPI Module Peripheral Ready
  13566. //*****************************************************************************
  13567. //
  13568. // The following are defines for the bit fields in the SYSCTL_PRHIB register.
  13569. //
  13570. //*****************************************************************************
  13571. #define SYSCTL_PRHIB_R0 0x00000001 // Hibernation Module Peripheral
  13572. // Ready
  13573. //*****************************************************************************
  13574. //
  13575. // The following are defines for the bit fields in the SYSCTL_PRUART register.
  13576. //
  13577. //*****************************************************************************
  13578. #define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
  13579. #define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
  13580. #define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
  13581. #define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
  13582. #define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
  13583. #define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
  13584. #define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
  13585. #define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
  13586. //*****************************************************************************
  13587. //
  13588. // The following are defines for the bit fields in the SYSCTL_PRSSI register.
  13589. //
  13590. //*****************************************************************************
  13591. #define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
  13592. #define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
  13593. #define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
  13594. #define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
  13595. //*****************************************************************************
  13596. //
  13597. // The following are defines for the bit fields in the SYSCTL_PRI2C register.
  13598. //
  13599. //*****************************************************************************
  13600. #define SYSCTL_PRI2C_R9 0x00000200 // I2C Module 9 Peripheral Ready
  13601. #define SYSCTL_PRI2C_R8 0x00000100 // I2C Module 8 Peripheral Ready
  13602. #define SYSCTL_PRI2C_R7 0x00000080 // I2C Module 7 Peripheral Ready
  13603. #define SYSCTL_PRI2C_R6 0x00000040 // I2C Module 6 Peripheral Ready
  13604. #define SYSCTL_PRI2C_R5 0x00000020 // I2C Module 5 Peripheral Ready
  13605. #define SYSCTL_PRI2C_R4 0x00000010 // I2C Module 4 Peripheral Ready
  13606. #define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
  13607. #define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
  13608. #define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
  13609. #define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
  13610. //*****************************************************************************
  13611. //
  13612. // The following are defines for the bit fields in the SYSCTL_PRUSB register.
  13613. //
  13614. //*****************************************************************************
  13615. #define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
  13616. //*****************************************************************************
  13617. //
  13618. // The following are defines for the bit fields in the SYSCTL_PREPHY register.
  13619. //
  13620. //*****************************************************************************
  13621. #define SYSCTL_PREPHY_R0 0x00000001 // Ethernet PHY Module Peripheral
  13622. // Ready
  13623. //*****************************************************************************
  13624. //
  13625. // The following are defines for the bit fields in the SYSCTL_PRCAN register.
  13626. //
  13627. //*****************************************************************************
  13628. #define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
  13629. #define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
  13630. //*****************************************************************************
  13631. //
  13632. // The following are defines for the bit fields in the SYSCTL_PRADC register.
  13633. //
  13634. //*****************************************************************************
  13635. #define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
  13636. #define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
  13637. //*****************************************************************************
  13638. //
  13639. // The following are defines for the bit fields in the SYSCTL_PRACMP register.
  13640. //
  13641. //*****************************************************************************
  13642. #define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module 0
  13643. // Peripheral Ready
  13644. //*****************************************************************************
  13645. //
  13646. // The following are defines for the bit fields in the SYSCTL_PRPWM register.
  13647. //
  13648. //*****************************************************************************
  13649. #define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
  13650. //*****************************************************************************
  13651. //
  13652. // The following are defines for the bit fields in the SYSCTL_PRQEI register.
  13653. //
  13654. //*****************************************************************************
  13655. #define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
  13656. //*****************************************************************************
  13657. //
  13658. // The following are defines for the bit fields in the SYSCTL_PREEPROM
  13659. // register.
  13660. //
  13661. //*****************************************************************************
  13662. #define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
  13663. //*****************************************************************************
  13664. //
  13665. // The following are defines for the bit fields in the SYSCTL_PRCCM register.
  13666. //
  13667. //*****************************************************************************
  13668. #define SYSCTL_PRCCM_R0 0x00000001 // CRC and Cryptographic Modules
  13669. // Peripheral Ready
  13670. //*****************************************************************************
  13671. //
  13672. // The following are defines for the bit fields in the SYSCTL_PRLCD register.
  13673. //
  13674. //*****************************************************************************
  13675. #define SYSCTL_PRLCD_R0 0x00000001 // LCD Controller Module 0
  13676. // Peripheral Ready
  13677. //*****************************************************************************
  13678. //
  13679. // The following are defines for the bit fields in the SYSCTL_PROWIRE register.
  13680. //
  13681. //*****************************************************************************
  13682. #define SYSCTL_PROWIRE_R0 0x00000001 // 1-Wire Module 0 Peripheral Ready
  13683. //*****************************************************************************
  13684. //
  13685. // The following are defines for the bit fields in the SYSCTL_PREMAC register.
  13686. //
  13687. //*****************************************************************************
  13688. #define SYSCTL_PREMAC_R0 0x00000001 // Ethernet MAC Module 0 Peripheral
  13689. // Ready
  13690. //*****************************************************************************
  13691. //
  13692. // The following are defines for the bit fields in the SYSCTL_CCMCGREQ
  13693. // register.
  13694. //
  13695. //*****************************************************************************
  13696. #define SYSCTL_CCMCGREQ_DESCFG 0x00000004 // DES Clock Gating Request
  13697. #define SYSCTL_CCMCGREQ_AESCFG 0x00000002 // AES Clock Gating Request
  13698. #define SYSCTL_CCMCGREQ_SHACFG 0x00000001 // SHA/MD5 Clock Gating Request
  13699. //*****************************************************************************
  13700. //
  13701. // The following are defines for the bit fields in the UDMA_STAT register.
  13702. //
  13703. //*****************************************************************************
  13704. #define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
  13705. #define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
  13706. #define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
  13707. #define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
  13708. #define UDMA_STAT_STATE_RD_SRCENDP \
  13709. 0x00000020 // Reading source end pointer
  13710. #define UDMA_STAT_STATE_RD_DSTENDP \
  13711. 0x00000030 // Reading destination end pointer
  13712. #define UDMA_STAT_STATE_RD_SRCDAT \
  13713. 0x00000040 // Reading source data
  13714. #define UDMA_STAT_STATE_WR_DSTDAT \
  13715. 0x00000050 // Writing destination data
  13716. #define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
  13717. // clear
  13718. #define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
  13719. #define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
  13720. #define UDMA_STAT_STATE_DONE 0x00000090 // Done
  13721. #define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
  13722. #define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
  13723. #define UDMA_STAT_DMACHANS_S 16
  13724. //*****************************************************************************
  13725. //
  13726. // The following are defines for the bit fields in the UDMA_CFG register.
  13727. //
  13728. //*****************************************************************************
  13729. #define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
  13730. //*****************************************************************************
  13731. //
  13732. // The following are defines for the bit fields in the UDMA_CTLBASE register.
  13733. //
  13734. //*****************************************************************************
  13735. #define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
  13736. #define UDMA_CTLBASE_ADDR_S 10
  13737. //*****************************************************************************
  13738. //
  13739. // The following are defines for the bit fields in the UDMA_ALTBASE register.
  13740. //
  13741. //*****************************************************************************
  13742. #define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
  13743. // Pointer
  13744. #define UDMA_ALTBASE_ADDR_S 0
  13745. //*****************************************************************************
  13746. //
  13747. // The following are defines for the bit fields in the UDMA_WAITSTAT register.
  13748. //
  13749. //*****************************************************************************
  13750. #define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
  13751. //*****************************************************************************
  13752. //
  13753. // The following are defines for the bit fields in the UDMA_SWREQ register.
  13754. //
  13755. //*****************************************************************************
  13756. #define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
  13757. //*****************************************************************************
  13758. //
  13759. // The following are defines for the bit fields in the UDMA_USEBURSTSET
  13760. // register.
  13761. //
  13762. //*****************************************************************************
  13763. #define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
  13764. //*****************************************************************************
  13765. //
  13766. // The following are defines for the bit fields in the UDMA_USEBURSTCLR
  13767. // register.
  13768. //
  13769. //*****************************************************************************
  13770. #define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
  13771. //*****************************************************************************
  13772. //
  13773. // The following are defines for the bit fields in the UDMA_REQMASKSET
  13774. // register.
  13775. //
  13776. //*****************************************************************************
  13777. #define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
  13778. //*****************************************************************************
  13779. //
  13780. // The following are defines for the bit fields in the UDMA_REQMASKCLR
  13781. // register.
  13782. //
  13783. //*****************************************************************************
  13784. #define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
  13785. //*****************************************************************************
  13786. //
  13787. // The following are defines for the bit fields in the UDMA_ENASET register.
  13788. //
  13789. //*****************************************************************************
  13790. #define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
  13791. //*****************************************************************************
  13792. //
  13793. // The following are defines for the bit fields in the UDMA_ENACLR register.
  13794. //
  13795. //*****************************************************************************
  13796. #define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
  13797. //*****************************************************************************
  13798. //
  13799. // The following are defines for the bit fields in the UDMA_ALTSET register.
  13800. //
  13801. //*****************************************************************************
  13802. #define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
  13803. //*****************************************************************************
  13804. //
  13805. // The following are defines for the bit fields in the UDMA_ALTCLR register.
  13806. //
  13807. //*****************************************************************************
  13808. #define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
  13809. //*****************************************************************************
  13810. //
  13811. // The following are defines for the bit fields in the UDMA_PRIOSET register.
  13812. //
  13813. //*****************************************************************************
  13814. #define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
  13815. //*****************************************************************************
  13816. //
  13817. // The following are defines for the bit fields in the UDMA_PRIOCLR register.
  13818. //
  13819. //*****************************************************************************
  13820. #define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
  13821. //*****************************************************************************
  13822. //
  13823. // The following are defines for the bit fields in the UDMA_ERRCLR register.
  13824. //
  13825. //*****************************************************************************
  13826. #define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
  13827. //*****************************************************************************
  13828. //
  13829. // The following are defines for the bit fields in the UDMA_CHASGN register.
  13830. //
  13831. //*****************************************************************************
  13832. #define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
  13833. #define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
  13834. // assignment
  13835. #define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
  13836. // assignment
  13837. //*****************************************************************************
  13838. //
  13839. // The following are defines for the bit fields in the UDMA_CHMAP0 register.
  13840. //
  13841. //*****************************************************************************
  13842. #define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
  13843. #define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
  13844. #define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
  13845. #define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
  13846. #define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
  13847. #define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
  13848. #define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
  13849. #define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
  13850. #define UDMA_CHMAP0_CH7SEL_S 28
  13851. #define UDMA_CHMAP0_CH6SEL_S 24
  13852. #define UDMA_CHMAP0_CH5SEL_S 20
  13853. #define UDMA_CHMAP0_CH4SEL_S 16
  13854. #define UDMA_CHMAP0_CH3SEL_S 12
  13855. #define UDMA_CHMAP0_CH2SEL_S 8
  13856. #define UDMA_CHMAP0_CH1SEL_S 4
  13857. #define UDMA_CHMAP0_CH0SEL_S 0
  13858. //*****************************************************************************
  13859. //
  13860. // The following are defines for the bit fields in the UDMA_CHMAP1 register.
  13861. //
  13862. //*****************************************************************************
  13863. #define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
  13864. #define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
  13865. #define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
  13866. #define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
  13867. #define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
  13868. #define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
  13869. #define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
  13870. #define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
  13871. #define UDMA_CHMAP1_CH15SEL_S 28
  13872. #define UDMA_CHMAP1_CH14SEL_S 24
  13873. #define UDMA_CHMAP1_CH13SEL_S 20
  13874. #define UDMA_CHMAP1_CH12SEL_S 16
  13875. #define UDMA_CHMAP1_CH11SEL_S 12
  13876. #define UDMA_CHMAP1_CH10SEL_S 8
  13877. #define UDMA_CHMAP1_CH9SEL_S 4
  13878. #define UDMA_CHMAP1_CH8SEL_S 0
  13879. //*****************************************************************************
  13880. //
  13881. // The following are defines for the bit fields in the UDMA_CHMAP2 register.
  13882. //
  13883. //*****************************************************************************
  13884. #define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
  13885. #define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
  13886. #define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
  13887. #define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
  13888. #define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
  13889. #define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
  13890. #define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
  13891. #define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
  13892. #define UDMA_CHMAP2_CH23SEL_S 28
  13893. #define UDMA_CHMAP2_CH22SEL_S 24
  13894. #define UDMA_CHMAP2_CH21SEL_S 20
  13895. #define UDMA_CHMAP2_CH20SEL_S 16
  13896. #define UDMA_CHMAP2_CH19SEL_S 12
  13897. #define UDMA_CHMAP2_CH18SEL_S 8
  13898. #define UDMA_CHMAP2_CH17SEL_S 4
  13899. #define UDMA_CHMAP2_CH16SEL_S 0
  13900. //*****************************************************************************
  13901. //
  13902. // The following are defines for the bit fields in the UDMA_CHMAP3 register.
  13903. //
  13904. //*****************************************************************************
  13905. #define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
  13906. #define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
  13907. #define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
  13908. #define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
  13909. #define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
  13910. #define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
  13911. #define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
  13912. #define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
  13913. #define UDMA_CHMAP3_CH31SEL_S 28
  13914. #define UDMA_CHMAP3_CH30SEL_S 24
  13915. #define UDMA_CHMAP3_CH29SEL_S 20
  13916. #define UDMA_CHMAP3_CH28SEL_S 16
  13917. #define UDMA_CHMAP3_CH27SEL_S 12
  13918. #define UDMA_CHMAP3_CH26SEL_S 8
  13919. #define UDMA_CHMAP3_CH25SEL_S 4
  13920. #define UDMA_CHMAP3_CH24SEL_S 0
  13921. //*****************************************************************************
  13922. //
  13923. // The following are defines for the bit fields in the UDMA_O_SRCENDP register.
  13924. //
  13925. //*****************************************************************************
  13926. #define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
  13927. #define UDMA_SRCENDP_ADDR_S 0
  13928. //*****************************************************************************
  13929. //
  13930. // The following are defines for the bit fields in the UDMA_O_DSTENDP register.
  13931. //
  13932. //*****************************************************************************
  13933. #define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
  13934. #define UDMA_DSTENDP_ADDR_S 0
  13935. //*****************************************************************************
  13936. //
  13937. // The following are defines for the bit fields in the UDMA_O_CHCTL register.
  13938. //
  13939. //*****************************************************************************
  13940. #define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
  13941. #define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
  13942. #define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
  13943. #define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
  13944. #define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
  13945. #define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
  13946. #define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
  13947. #define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
  13948. #define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
  13949. #define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
  13950. #define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
  13951. #define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
  13952. #define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
  13953. #define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
  13954. #define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
  13955. #define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
  13956. #define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
  13957. #define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
  13958. #define UDMA_CHCTL_DSTPROT0 0x00200000 // Destination Privilege Access
  13959. #define UDMA_CHCTL_SRCPROT0 0x00040000 // Source Privilege Access
  13960. #define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
  13961. #define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
  13962. #define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
  13963. #define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
  13964. #define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
  13965. #define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
  13966. #define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
  13967. #define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
  13968. #define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
  13969. #define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
  13970. #define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
  13971. #define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
  13972. #define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
  13973. #define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
  13974. #define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
  13975. #define UDMA_CHCTL_XFERMODE_STOP \
  13976. 0x00000000 // Stop
  13977. #define UDMA_CHCTL_XFERMODE_BASIC \
  13978. 0x00000001 // Basic
  13979. #define UDMA_CHCTL_XFERMODE_AUTO \
  13980. 0x00000002 // Auto-Request
  13981. #define UDMA_CHCTL_XFERMODE_PINGPONG \
  13982. 0x00000003 // Ping-Pong
  13983. #define UDMA_CHCTL_XFERMODE_MEM_SG \
  13984. 0x00000004 // Memory Scatter-Gather
  13985. #define UDMA_CHCTL_XFERMODE_MEM_SGA \
  13986. 0x00000005 // Alternate Memory Scatter-Gather
  13987. #define UDMA_CHCTL_XFERMODE_PER_SG \
  13988. 0x00000006 // Peripheral Scatter-Gather
  13989. #define UDMA_CHCTL_XFERMODE_PER_SGA \
  13990. 0x00000007 // Alternate Peripheral
  13991. // Scatter-Gather
  13992. #define UDMA_CHCTL_XFERSIZE_S 4
  13993. //*****************************************************************************
  13994. //
  13995. // The following are defines for the bit fields in the CCM_O_CRCCTRL register.
  13996. //
  13997. //*****************************************************************************
  13998. #define CCM_CRCCTRL_INIT_M 0x00006000 // CRC Initialization
  13999. #define CCM_CRCCTRL_INIT_SEED 0x00000000 // Use the CRCSEED register context
  14000. // as the starting value
  14001. #define CCM_CRCCTRL_INIT_0 0x00004000 // Initialize to all '0s'
  14002. #define CCM_CRCCTRL_INIT_1 0x00006000 // Initialize to all '1s'
  14003. #define CCM_CRCCTRL_SIZE 0x00001000 // Input Data Size
  14004. #define CCM_CRCCTRL_RESINV 0x00000200 // Result Inverse Enable
  14005. #define CCM_CRCCTRL_OBR 0x00000100 // Output Reverse Enable
  14006. #define CCM_CRCCTRL_BR 0x00000080 // Bit reverse enable
  14007. #define CCM_CRCCTRL_ENDIAN_M 0x00000030 // Endian Control
  14008. #define CCM_CRCCTRL_ENDIAN_SBHW 0x00000000 // Configuration unchanged. (B3,
  14009. // B2, B1, B0)
  14010. #define CCM_CRCCTRL_ENDIAN_SHW 0x00000010 // Bytes are swapped in half-words
  14011. // but half-words are not swapped
  14012. // (B2, B3, B0, B1)
  14013. #define CCM_CRCCTRL_ENDIAN_SHWNB \
  14014. 0x00000020 // Half-words are swapped but bytes
  14015. // are not swapped in half-word.
  14016. // (B1, B0, B3, B2)
  14017. #define CCM_CRCCTRL_ENDIAN_SBSW 0x00000030 // Bytes are swapped in half-words
  14018. // and half-words are swapped. (B0,
  14019. // B1, B2, B3)
  14020. #define CCM_CRCCTRL_TYPE_M 0x0000000F // Operation Type
  14021. #define CCM_CRCCTRL_TYPE_P8055 0x00000000 // Polynomial 0x8005
  14022. #define CCM_CRCCTRL_TYPE_P1021 0x00000001 // Polynomial 0x1021
  14023. #define CCM_CRCCTRL_TYPE_P4C11DB7 \
  14024. 0x00000002 // Polynomial 0x4C11DB7
  14025. #define CCM_CRCCTRL_TYPE_P1EDC6F41 \
  14026. 0x00000003 // Polynomial 0x1EDC6F41
  14027. #define CCM_CRCCTRL_TYPE_TCPCHKSUM \
  14028. 0x00000008 // TCP checksum
  14029. //*****************************************************************************
  14030. //
  14031. // The following are defines for the bit fields in the CCM_O_CRCSEED register.
  14032. //
  14033. //*****************************************************************************
  14034. #define CCM_CRCSEED_SEED_M 0xFFFFFFFF // SEED/Context Value
  14035. #define CCM_CRCSEED_SEED_S 0
  14036. //*****************************************************************************
  14037. //
  14038. // The following are defines for the bit fields in the CCM_O_CRCDIN register.
  14039. //
  14040. //*****************************************************************************
  14041. #define CCM_CRCDIN_DATAIN_M 0xFFFFFFFF // Data Input
  14042. #define CCM_CRCDIN_DATAIN_S 0
  14043. //*****************************************************************************
  14044. //
  14045. // The following are defines for the bit fields in the CCM_O_CRCRSLTPP
  14046. // register.
  14047. //
  14048. //*****************************************************************************
  14049. #define CCM_CRCRSLTPP_RSLTPP_M 0xFFFFFFFF // Post Processing Result
  14050. #define CCM_CRCRSLTPP_RSLTPP_S 0
  14051. //*****************************************************************************
  14052. //
  14053. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_A
  14054. // register.
  14055. //
  14056. //*****************************************************************************
  14057. #define SHAMD5_ODIGEST_A_DATA_M 0xFFFFFFFF // Digest/Key Data
  14058. #define SHAMD5_ODIGEST_A_DATA_S 0
  14059. //*****************************************************************************
  14060. //
  14061. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_B
  14062. // register.
  14063. //
  14064. //*****************************************************************************
  14065. #define SHAMD5_ODIGEST_B_DATA_M 0xFFFFFFFF // Digest/Key Data
  14066. #define SHAMD5_ODIGEST_B_DATA_S 0
  14067. //*****************************************************************************
  14068. //
  14069. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_C
  14070. // register.
  14071. //
  14072. //*****************************************************************************
  14073. #define SHAMD5_ODIGEST_C_DATA_M 0xFFFFFFFF // Digest/Key Data
  14074. #define SHAMD5_ODIGEST_C_DATA_S 0
  14075. //*****************************************************************************
  14076. //
  14077. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_D
  14078. // register.
  14079. //
  14080. //*****************************************************************************
  14081. #define SHAMD5_ODIGEST_D_DATA_M 0xFFFFFFFF // Digest/Key Data
  14082. #define SHAMD5_ODIGEST_D_DATA_S 0
  14083. //*****************************************************************************
  14084. //
  14085. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_E
  14086. // register.
  14087. //
  14088. //*****************************************************************************
  14089. #define SHAMD5_ODIGEST_E_DATA_M 0xFFFFFFFF // Digest/Key Data
  14090. #define SHAMD5_ODIGEST_E_DATA_S 0
  14091. //*****************************************************************************
  14092. //
  14093. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_F
  14094. // register.
  14095. //
  14096. //*****************************************************************************
  14097. #define SHAMD5_ODIGEST_F_DATA_M 0xFFFFFFFF // Digest/Key Data
  14098. #define SHAMD5_ODIGEST_F_DATA_S 0
  14099. //*****************************************************************************
  14100. //
  14101. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_G
  14102. // register.
  14103. //
  14104. //*****************************************************************************
  14105. #define SHAMD5_ODIGEST_G_DATA_M 0xFFFFFFFF // Digest/Key Data
  14106. #define SHAMD5_ODIGEST_G_DATA_S 0
  14107. //*****************************************************************************
  14108. //
  14109. // The following are defines for the bit fields in the SHAMD5_O_ODIGEST_H
  14110. // register.
  14111. //
  14112. //*****************************************************************************
  14113. #define SHAMD5_ODIGEST_H_DATA_M 0xFFFFFFFF // Digest/Key Data
  14114. #define SHAMD5_ODIGEST_H_DATA_S 0
  14115. //*****************************************************************************
  14116. //
  14117. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_A
  14118. // register.
  14119. //
  14120. //*****************************************************************************
  14121. #define SHAMD5_IDIGEST_A_DATA_M 0xFFFFFFFF // Digest/Key Data
  14122. #define SHAMD5_IDIGEST_A_DATA_S 0
  14123. //*****************************************************************************
  14124. //
  14125. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_B
  14126. // register.
  14127. //
  14128. //*****************************************************************************
  14129. #define SHAMD5_IDIGEST_B_DATA_M 0xFFFFFFFF // Digest/Key Data
  14130. #define SHAMD5_IDIGEST_B_DATA_S 0
  14131. //*****************************************************************************
  14132. //
  14133. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_C
  14134. // register.
  14135. //
  14136. //*****************************************************************************
  14137. #define SHAMD5_IDIGEST_C_DATA_M 0xFFFFFFFF // Digest/Key Data
  14138. #define SHAMD5_IDIGEST_C_DATA_S 0
  14139. //*****************************************************************************
  14140. //
  14141. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_D
  14142. // register.
  14143. //
  14144. //*****************************************************************************
  14145. #define SHAMD5_IDIGEST_D_DATA_M 0xFFFFFFFF // Digest/Key Data
  14146. #define SHAMD5_IDIGEST_D_DATA_S 0
  14147. //*****************************************************************************
  14148. //
  14149. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_E
  14150. // register.
  14151. //
  14152. //*****************************************************************************
  14153. #define SHAMD5_IDIGEST_E_DATA_M 0xFFFFFFFF // Digest/Key Data
  14154. #define SHAMD5_IDIGEST_E_DATA_S 0
  14155. //*****************************************************************************
  14156. //
  14157. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_F
  14158. // register.
  14159. //
  14160. //*****************************************************************************
  14161. #define SHAMD5_IDIGEST_F_DATA_M 0xFFFFFFFF // Digest/Key Data
  14162. #define SHAMD5_IDIGEST_F_DATA_S 0
  14163. //*****************************************************************************
  14164. //
  14165. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_G
  14166. // register.
  14167. //
  14168. //*****************************************************************************
  14169. #define SHAMD5_IDIGEST_G_DATA_M 0xFFFFFFFF // Digest/Key Data
  14170. #define SHAMD5_IDIGEST_G_DATA_S 0
  14171. //*****************************************************************************
  14172. //
  14173. // The following are defines for the bit fields in the SHAMD5_O_IDIGEST_H
  14174. // register.
  14175. //
  14176. //*****************************************************************************
  14177. #define SHAMD5_IDIGEST_H_DATA_M 0xFFFFFFFF // Digest/Key Data
  14178. #define SHAMD5_IDIGEST_H_DATA_S 0
  14179. //*****************************************************************************
  14180. //
  14181. // The following are defines for the bit fields in the SHAMD5_O_DIGEST_COUNT
  14182. // register.
  14183. //
  14184. //*****************************************************************************
  14185. #define SHAMD5_DIGEST_COUNT_M 0xFFFFFFFF // Digest Count
  14186. #define SHAMD5_DIGEST_COUNT_S 0
  14187. //*****************************************************************************
  14188. //
  14189. // The following are defines for the bit fields in the SHAMD5_O_MODE register.
  14190. //
  14191. //*****************************************************************************
  14192. #define SHAMD5_MODE_HMAC_OUTER_HASH \
  14193. 0x00000080 // HMAC Outer Hash Processing
  14194. // Enable
  14195. #define SHAMD5_MODE_HMAC_KEY_PROC \
  14196. 0x00000020 // HMAC Key Processing Enable
  14197. #define SHAMD5_MODE_CLOSE_HASH 0x00000010 // Performs the padding, the
  14198. // Hash/HMAC will be 'closed' at
  14199. // the end of the block, as per
  14200. // MD5/SHA-1/SHA-2 specification
  14201. #define SHAMD5_MODE_ALGO_CONSTANT \
  14202. 0x00000008 // The initial digest register will
  14203. // be overwritten with the
  14204. // algorithm constants for the
  14205. // selected algorithm when hashing
  14206. // and the initial digest count
  14207. // register will be reset to 0
  14208. #define SHAMD5_MODE_ALGO_M 0x00000007 // Hash Algorithm
  14209. #define SHAMD5_MODE_ALGO_MD5 0x00000000 // MD5
  14210. #define SHAMD5_MODE_ALGO_SHA1 0x00000002 // SHA-1
  14211. #define SHAMD5_MODE_ALGO_SHA224 0x00000004 // SHA-224
  14212. #define SHAMD5_MODE_ALGO_SHA256 0x00000006 // SHA-256
  14213. //*****************************************************************************
  14214. //
  14215. // The following are defines for the bit fields in the SHAMD5_O_LENGTH
  14216. // register.
  14217. //
  14218. //*****************************************************************************
  14219. #define SHAMD5_LENGTH_M 0xFFFFFFFF // Block Length/Remaining Byte
  14220. // Count
  14221. #define SHAMD5_LENGTH_S 0
  14222. //*****************************************************************************
  14223. //
  14224. // The following are defines for the bit fields in the SHAMD5_O_DATA_0_IN
  14225. // register.
  14226. //
  14227. //*****************************************************************************
  14228. #define SHAMD5_DATA_0_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14229. #define SHAMD5_DATA_0_IN_DATA_S 0
  14230. //*****************************************************************************
  14231. //
  14232. // The following are defines for the bit fields in the SHAMD5_O_DATA_1_IN
  14233. // register.
  14234. //
  14235. //*****************************************************************************
  14236. #define SHAMD5_DATA_1_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14237. #define SHAMD5_DATA_1_IN_DATA_S 0
  14238. //*****************************************************************************
  14239. //
  14240. // The following are defines for the bit fields in the SHAMD5_O_DATA_2_IN
  14241. // register.
  14242. //
  14243. //*****************************************************************************
  14244. #define SHAMD5_DATA_2_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14245. #define SHAMD5_DATA_2_IN_DATA_S 0
  14246. //*****************************************************************************
  14247. //
  14248. // The following are defines for the bit fields in the SHAMD5_O_DATA_3_IN
  14249. // register.
  14250. //
  14251. //*****************************************************************************
  14252. #define SHAMD5_DATA_3_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14253. #define SHAMD5_DATA_3_IN_DATA_S 0
  14254. //*****************************************************************************
  14255. //
  14256. // The following are defines for the bit fields in the SHAMD5_O_DATA_4_IN
  14257. // register.
  14258. //
  14259. //*****************************************************************************
  14260. #define SHAMD5_DATA_4_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14261. #define SHAMD5_DATA_4_IN_DATA_S 0
  14262. //*****************************************************************************
  14263. //
  14264. // The following are defines for the bit fields in the SHAMD5_O_DATA_5_IN
  14265. // register.
  14266. //
  14267. //*****************************************************************************
  14268. #define SHAMD5_DATA_5_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14269. #define SHAMD5_DATA_5_IN_DATA_S 0
  14270. //*****************************************************************************
  14271. //
  14272. // The following are defines for the bit fields in the SHAMD5_O_DATA_6_IN
  14273. // register.
  14274. //
  14275. //*****************************************************************************
  14276. #define SHAMD5_DATA_6_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14277. #define SHAMD5_DATA_6_IN_DATA_S 0
  14278. //*****************************************************************************
  14279. //
  14280. // The following are defines for the bit fields in the SHAMD5_O_DATA_7_IN
  14281. // register.
  14282. //
  14283. //*****************************************************************************
  14284. #define SHAMD5_DATA_7_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14285. #define SHAMD5_DATA_7_IN_DATA_S 0
  14286. //*****************************************************************************
  14287. //
  14288. // The following are defines for the bit fields in the SHAMD5_O_DATA_8_IN
  14289. // register.
  14290. //
  14291. //*****************************************************************************
  14292. #define SHAMD5_DATA_8_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14293. #define SHAMD5_DATA_8_IN_DATA_S 0
  14294. //*****************************************************************************
  14295. //
  14296. // The following are defines for the bit fields in the SHAMD5_O_DATA_9_IN
  14297. // register.
  14298. //
  14299. //*****************************************************************************
  14300. #define SHAMD5_DATA_9_IN_DATA_M 0xFFFFFFFF // Digest/Key Data
  14301. #define SHAMD5_DATA_9_IN_DATA_S 0
  14302. //*****************************************************************************
  14303. //
  14304. // The following are defines for the bit fields in the SHAMD5_O_DATA_10_IN
  14305. // register.
  14306. //
  14307. //*****************************************************************************
  14308. #define SHAMD5_DATA_10_IN_DATA_M \
  14309. 0xFFFFFFFF // Digest/Key Data
  14310. #define SHAMD5_DATA_10_IN_DATA_S \
  14311. 0
  14312. //*****************************************************************************
  14313. //
  14314. // The following are defines for the bit fields in the SHAMD5_O_DATA_11_IN
  14315. // register.
  14316. //
  14317. //*****************************************************************************
  14318. #define SHAMD5_DATA_11_IN_DATA_M \
  14319. 0xFFFFFFFF // Digest/Key Data
  14320. #define SHAMD5_DATA_11_IN_DATA_S \
  14321. 0
  14322. //*****************************************************************************
  14323. //
  14324. // The following are defines for the bit fields in the SHAMD5_O_DATA_12_IN
  14325. // register.
  14326. //
  14327. //*****************************************************************************
  14328. #define SHAMD5_DATA_12_IN_DATA_M \
  14329. 0xFFFFFFFF // Digest/Key Data
  14330. #define SHAMD5_DATA_12_IN_DATA_S \
  14331. 0
  14332. //*****************************************************************************
  14333. //
  14334. // The following are defines for the bit fields in the SHAMD5_O_DATA_13_IN
  14335. // register.
  14336. //
  14337. //*****************************************************************************
  14338. #define SHAMD5_DATA_13_IN_DATA_M \
  14339. 0xFFFFFFFF // Digest/Key Data
  14340. #define SHAMD5_DATA_13_IN_DATA_S \
  14341. 0
  14342. //*****************************************************************************
  14343. //
  14344. // The following are defines for the bit fields in the SHAMD5_O_DATA_14_IN
  14345. // register.
  14346. //
  14347. //*****************************************************************************
  14348. #define SHAMD5_DATA_14_IN_DATA_M \
  14349. 0xFFFFFFFF // Digest/Key Data
  14350. #define SHAMD5_DATA_14_IN_DATA_S \
  14351. 0
  14352. //*****************************************************************************
  14353. //
  14354. // The following are defines for the bit fields in the SHAMD5_O_DATA_15_IN
  14355. // register.
  14356. //
  14357. //*****************************************************************************
  14358. #define SHAMD5_DATA_15_IN_DATA_M \
  14359. 0xFFFFFFFF // Digest/Key Data
  14360. #define SHAMD5_DATA_15_IN_DATA_S \
  14361. 0
  14362. //*****************************************************************************
  14363. //
  14364. // The following are defines for the bit fields in the SHAMD5_O_REVISION
  14365. // register.
  14366. //
  14367. //*****************************************************************************
  14368. #define SHAMD5_REVISION_M 0xFFFFFFFF // Revision Number
  14369. #define SHAMD5_REVISION_S 0
  14370. //*****************************************************************************
  14371. //
  14372. // The following are defines for the bit fields in the SHAMD5_O_SYSCONFIG
  14373. // register.
  14374. //
  14375. //*****************************************************************************
  14376. #define SHAMD5_SYSCONFIG_SADVANCED \
  14377. 0x00000080 // Advanced Mode Enable
  14378. #define SHAMD5_SYSCONFIG_SIDLE_M \
  14379. 0x00000030 // Sidle mode
  14380. #define SHAMD5_SYSCONFIG_SIDLE_FORCE \
  14381. 0x00000000 // Force-idle mode
  14382. #define SHAMD5_SYSCONFIG_DMA_EN 0x00000008 // uDMA Request Enable
  14383. #define SHAMD5_SYSCONFIG_IT_EN 0x00000004 // Interrupt Enable
  14384. #define SHAMD5_SYSCONFIG_SOFTRESET \
  14385. 0x00000002 // Soft reset
  14386. //*****************************************************************************
  14387. //
  14388. // The following are defines for the bit fields in the SHAMD5_O_SYSSTATUS
  14389. // register.
  14390. //
  14391. //*****************************************************************************
  14392. #define SHAMD5_SYSSTATUS_RESETDONE \
  14393. 0x00000001 // Reset done status
  14394. //*****************************************************************************
  14395. //
  14396. // The following are defines for the bit fields in the SHAMD5_O_IRQSTATUS
  14397. // register.
  14398. //
  14399. //*****************************************************************************
  14400. #define SHAMD5_IRQSTATUS_CONTEXT_READY \
  14401. 0x00000008 // Context Ready Status
  14402. #define SHAMD5_IRQSTATUS_INPUT_READY \
  14403. 0x00000002 // Input Ready Status
  14404. #define SHAMD5_IRQSTATUS_OUTPUT_READY \
  14405. 0x00000001 // Output Ready Status
  14406. //*****************************************************************************
  14407. //
  14408. // The following are defines for the bit fields in the SHAMD5_O_IRQENABLE
  14409. // register.
  14410. //
  14411. //*****************************************************************************
  14412. #define SHAMD5_IRQENABLE_CONTEXT_READY \
  14413. 0x00000008 // Mask for context ready interrupt
  14414. #define SHAMD5_IRQENABLE_INPUT_READY \
  14415. 0x00000002 // Mask for input ready interrupt
  14416. #define SHAMD5_IRQENABLE_OUTPUT_READY \
  14417. 0x00000001 // Mask for output ready interrupt
  14418. //*****************************************************************************
  14419. //
  14420. // The following are defines for the bit fields in the SHAMD5_O_DMAIM register.
  14421. //
  14422. //*****************************************************************************
  14423. #define SHAMD5_DMAIM_COUT 0x00000004 // Context Out DMA Done Interrupt
  14424. // Mask
  14425. #define SHAMD5_DMAIM_DIN 0x00000002 // Data In DMA Done Interrupt Mask
  14426. #define SHAMD5_DMAIM_CIN 0x00000001 // Context In DMA Done Interrupt
  14427. // Mask
  14428. //*****************************************************************************
  14429. //
  14430. // The following are defines for the bit fields in the SHAMD5_O_DMARIS
  14431. // register.
  14432. //
  14433. //*****************************************************************************
  14434. #define SHAMD5_DMARIS_COUT 0x00000004 // Context Out DMA Done Raw
  14435. // Interrupt Status
  14436. #define SHAMD5_DMARIS_DIN 0x00000002 // Data In DMA Done Raw Interrupt
  14437. // Status
  14438. #define SHAMD5_DMARIS_CIN 0x00000001 // Context In DMA Done Raw
  14439. // Interrupt Status
  14440. //*****************************************************************************
  14441. //
  14442. // The following are defines for the bit fields in the SHAMD5_O_DMAMIS
  14443. // register.
  14444. //
  14445. //*****************************************************************************
  14446. #define SHAMD5_DMAMIS_COUT 0x00000004 // Context Out DMA Done Masked
  14447. // Interrupt Status
  14448. #define SHAMD5_DMAMIS_DIN 0x00000002 // Data In DMA Done Masked
  14449. // Interrupt Status
  14450. #define SHAMD5_DMAMIS_CIN 0x00000001 // Context In DMA Done Raw
  14451. // Interrupt Status
  14452. //*****************************************************************************
  14453. //
  14454. // The following are defines for the bit fields in the SHAMD5_O_DMAIC register.
  14455. //
  14456. //*****************************************************************************
  14457. #define SHAMD5_DMAIC_COUT 0x00000004 // Context Out DMA Done Masked
  14458. // Interrupt Status
  14459. #define SHAMD5_DMAIC_DIN 0x00000002 // Data In DMA Done Interrupt Clear
  14460. #define SHAMD5_DMAIC_CIN 0x00000001 // Context In DMA Done Raw
  14461. // Interrupt Status
  14462. //*****************************************************************************
  14463. //
  14464. // The following are defines for the bit fields in the AES_O_KEY2_6 register.
  14465. //
  14466. //*****************************************************************************
  14467. #define AES_KEY2_6_KEY_M 0xFFFFFFFF // Key Data
  14468. #define AES_KEY2_6_KEY_S 0
  14469. //*****************************************************************************
  14470. //
  14471. // The following are defines for the bit fields in the AES_O_KEY2_7 register.
  14472. //
  14473. //*****************************************************************************
  14474. #define AES_KEY2_7_KEY_M 0xFFFFFFFF // Key Data
  14475. #define AES_KEY2_7_KEY_S 0
  14476. //*****************************************************************************
  14477. //
  14478. // The following are defines for the bit fields in the AES_O_KEY2_4 register.
  14479. //
  14480. //*****************************************************************************
  14481. #define AES_KEY2_4_KEY_M 0xFFFFFFFF // Key Data
  14482. #define AES_KEY2_4_KEY_S 0
  14483. //*****************************************************************************
  14484. //
  14485. // The following are defines for the bit fields in the AES_O_KEY2_5 register.
  14486. //
  14487. //*****************************************************************************
  14488. #define AES_KEY2_5_KEY_M 0xFFFFFFFF // Key Data
  14489. #define AES_KEY2_5_KEY_S 0
  14490. //*****************************************************************************
  14491. //
  14492. // The following are defines for the bit fields in the AES_O_KEY2_2 register.
  14493. //
  14494. //*****************************************************************************
  14495. #define AES_KEY2_2_KEY_M 0xFFFFFFFF // Key Data
  14496. #define AES_KEY2_2_KEY_S 0
  14497. //*****************************************************************************
  14498. //
  14499. // The following are defines for the bit fields in the AES_O_KEY2_3 register.
  14500. //
  14501. //*****************************************************************************
  14502. #define AES_KEY2_3_KEY_M 0xFFFFFFFF // Key Data
  14503. #define AES_KEY2_3_KEY_S 0
  14504. //*****************************************************************************
  14505. //
  14506. // The following are defines for the bit fields in the AES_O_KEY2_0 register.
  14507. //
  14508. //*****************************************************************************
  14509. #define AES_KEY2_0_KEY_M 0xFFFFFFFF // Key Data
  14510. #define AES_KEY2_0_KEY_S 0
  14511. //*****************************************************************************
  14512. //
  14513. // The following are defines for the bit fields in the AES_O_KEY2_1 register.
  14514. //
  14515. //*****************************************************************************
  14516. #define AES_KEY2_1_KEY_M 0xFFFFFFFF // Key Data
  14517. #define AES_KEY2_1_KEY_S 0
  14518. //*****************************************************************************
  14519. //
  14520. // The following are defines for the bit fields in the AES_O_KEY1_6 register.
  14521. //
  14522. //*****************************************************************************
  14523. #define AES_KEY1_6_KEY_M 0xFFFFFFFF // Key Data
  14524. #define AES_KEY1_6_KEY_S 0
  14525. //*****************************************************************************
  14526. //
  14527. // The following are defines for the bit fields in the AES_O_KEY1_7 register.
  14528. //
  14529. //*****************************************************************************
  14530. #define AES_KEY1_7_KEY_M 0xFFFFFFFF // Key Data
  14531. #define AES_KEY1_7_KEY_S 0
  14532. //*****************************************************************************
  14533. //
  14534. // The following are defines for the bit fields in the AES_O_KEY1_4 register.
  14535. //
  14536. //*****************************************************************************
  14537. #define AES_KEY1_4_KEY_M 0xFFFFFFFF // Key Data
  14538. #define AES_KEY1_4_KEY_S 0
  14539. //*****************************************************************************
  14540. //
  14541. // The following are defines for the bit fields in the AES_O_KEY1_5 register.
  14542. //
  14543. //*****************************************************************************
  14544. #define AES_KEY1_5_KEY_M 0xFFFFFFFF // Key Data
  14545. #define AES_KEY1_5_KEY_S 0
  14546. //*****************************************************************************
  14547. //
  14548. // The following are defines for the bit fields in the AES_O_KEY1_2 register.
  14549. //
  14550. //*****************************************************************************
  14551. #define AES_KEY1_2_KEY_M 0xFFFFFFFF // Key Data
  14552. #define AES_KEY1_2_KEY_S 0
  14553. //*****************************************************************************
  14554. //
  14555. // The following are defines for the bit fields in the AES_O_KEY1_3 register.
  14556. //
  14557. //*****************************************************************************
  14558. #define AES_KEY1_3_KEY_M 0xFFFFFFFF // Key Data
  14559. #define AES_KEY1_3_KEY_S 0
  14560. //*****************************************************************************
  14561. //
  14562. // The following are defines for the bit fields in the AES_O_KEY1_0 register.
  14563. //
  14564. //*****************************************************************************
  14565. #define AES_KEY1_0_KEY_M 0xFFFFFFFF // Key Data
  14566. #define AES_KEY1_0_KEY_S 0
  14567. //*****************************************************************************
  14568. //
  14569. // The following are defines for the bit fields in the AES_O_KEY1_1 register.
  14570. //
  14571. //*****************************************************************************
  14572. #define AES_KEY1_1_KEY_M 0xFFFFFFFF // Key Data
  14573. #define AES_KEY1_1_KEY_S 0
  14574. //*****************************************************************************
  14575. //
  14576. // The following are defines for the bit fields in the AES_O_IV_IN_0 register.
  14577. //
  14578. //*****************************************************************************
  14579. #define AES_IV_IN_0_DATA_M 0xFFFFFFFF // Initialization Vector Input
  14580. #define AES_IV_IN_0_DATA_S 0
  14581. //*****************************************************************************
  14582. //
  14583. // The following are defines for the bit fields in the AES_O_IV_IN_1 register.
  14584. //
  14585. //*****************************************************************************
  14586. #define AES_IV_IN_1_DATA_M 0xFFFFFFFF // Initialization Vector Input
  14587. #define AES_IV_IN_1_DATA_S 0
  14588. //*****************************************************************************
  14589. //
  14590. // The following are defines for the bit fields in the AES_O_IV_IN_2 register.
  14591. //
  14592. //*****************************************************************************
  14593. #define AES_IV_IN_2_DATA_M 0xFFFFFFFF // Initialization Vector Input
  14594. #define AES_IV_IN_2_DATA_S 0
  14595. //*****************************************************************************
  14596. //
  14597. // The following are defines for the bit fields in the AES_O_IV_IN_3 register.
  14598. //
  14599. //*****************************************************************************
  14600. #define AES_IV_IN_3_DATA_M 0xFFFFFFFF // Initialization Vector Input
  14601. #define AES_IV_IN_3_DATA_S 0
  14602. //*****************************************************************************
  14603. //
  14604. // The following are defines for the bit fields in the AES_O_CTRL register.
  14605. //
  14606. //*****************************************************************************
  14607. #define AES_CTRL_CTXTRDY 0x80000000 // Context Data Registers Ready
  14608. #define AES_CTRL_SVCTXTRDY 0x40000000 // AES TAG/IV Block(s) Ready
  14609. #define AES_CTRL_SAVE_CONTEXT 0x20000000 // TAG or Result IV Save
  14610. #define AES_CTRL_CCM_M_M 0x01C00000 // Counter with CBC-MAC (CCM)
  14611. #define AES_CTRL_CCM_L_M 0x00380000 // L Value
  14612. #define AES_CTRL_CCM_L_2 0x00080000 // width = 2
  14613. #define AES_CTRL_CCM_L_4 0x00180000 // width = 4
  14614. #define AES_CTRL_CCM_L_8 0x00380000 // width = 8
  14615. #define AES_CTRL_CCM 0x00040000 // AES-CCM Mode Enable
  14616. #define AES_CTRL_GCM_M 0x00030000 // AES-GCM Mode Enable
  14617. #define AES_CTRL_GCM_NOP 0x00000000 // No operation
  14618. #define AES_CTRL_GCM_HLY0ZERO 0x00010000 // GHASH with H loaded and
  14619. // Y0-encrypted forced to zero
  14620. #define AES_CTRL_GCM_HLY0CALC 0x00020000 // GHASH with H loaded and
  14621. // Y0-encrypted calculated
  14622. // internally
  14623. #define AES_CTRL_GCM_HY0CALC 0x00030000 // Autonomous GHASH (both H and
  14624. // Y0-encrypted calculated
  14625. // internally)
  14626. #define AES_CTRL_CBCMAC 0x00008000 // AES-CBC MAC Enable
  14627. #define AES_CTRL_F9 0x00004000 // AES f9 Mode Enable
  14628. #define AES_CTRL_F8 0x00002000 // AES f8 Mode Enable
  14629. #define AES_CTRL_XTS_M 0x00001800 // AES-XTS Operation Enabled
  14630. #define AES_CTRL_XTS_NOP 0x00000000 // No operation
  14631. #define AES_CTRL_XTS_TWEAKJL 0x00000800 // Previous/intermediate tweak
  14632. // value and j loaded (value is
  14633. // loaded via IV, j is loaded via
  14634. // the AAD length register)
  14635. #define AES_CTRL_XTS_K2IJL 0x00001000 // Key2, n and j are loaded (n is
  14636. // loaded via IV, j is loaded via
  14637. // the AAD length register)
  14638. #define AES_CTRL_XTS_K2ILJ0 0x00001800 // Key2 and n are loaded; j=0 (n is
  14639. // loaded via IV)
  14640. #define AES_CTRL_CFB 0x00000400 // Full block AES cipher feedback
  14641. // mode (CFB128) Enable
  14642. #define AES_CTRL_ICM 0x00000200 // AES Integer Counter Mode (ICM)
  14643. // Enable
  14644. #define AES_CTRL_CTR_WIDTH_M 0x00000180 // AES-CTR Mode Counter Width
  14645. #define AES_CTRL_CTR_WIDTH_32 0x00000000 // Counter is 32 bits
  14646. #define AES_CTRL_CTR_WIDTH_64 0x00000080 // Counter is 64 bits
  14647. #define AES_CTRL_CTR_WIDTH_96 0x00000100 // Counter is 96 bits
  14648. #define AES_CTRL_CTR_WIDTH_128 0x00000180 // Counter is 128 bits
  14649. #define AES_CTRL_CTR 0x00000040 // Counter Mode
  14650. #define AES_CTRL_MODE 0x00000020 // ECB/CBC Mode
  14651. #define AES_CTRL_KEY_SIZE_M 0x00000018 // Key Size
  14652. #define AES_CTRL_KEY_SIZE_128 0x00000008 // Key is 128 bits
  14653. #define AES_CTRL_KEY_SIZE_192 0x00000010 // Key is 192 bits
  14654. #define AES_CTRL_KEY_SIZE_256 0x00000018 // Key is 256 bits
  14655. #define AES_CTRL_DIRECTION 0x00000004 // Encryption/Decryption Selection
  14656. #define AES_CTRL_INPUT_READY 0x00000002 // Input Ready Status
  14657. #define AES_CTRL_OUTPUT_READY 0x00000001 // Output Ready Status
  14658. #define AES_CTRL_CCM_M_S 22
  14659. //*****************************************************************************
  14660. //
  14661. // The following are defines for the bit fields in the AES_O_C_LENGTH_0
  14662. // register.
  14663. //
  14664. //*****************************************************************************
  14665. #define AES_C_LENGTH_0_LENGTH_M 0xFFFFFFFF // Data Length
  14666. #define AES_C_LENGTH_0_LENGTH_S 0
  14667. //*****************************************************************************
  14668. //
  14669. // The following are defines for the bit fields in the AES_O_C_LENGTH_1
  14670. // register.
  14671. //
  14672. //*****************************************************************************
  14673. #define AES_C_LENGTH_1_LENGTH_M 0xFFFFFFFF // Data Length
  14674. #define AES_C_LENGTH_1_LENGTH_S 0
  14675. //*****************************************************************************
  14676. //
  14677. // The following are defines for the bit fields in the AES_O_AUTH_LENGTH
  14678. // register.
  14679. //
  14680. //*****************************************************************************
  14681. #define AES_AUTH_LENGTH_AUTH_M 0xFFFFFFFF // Authentication Data Length
  14682. #define AES_AUTH_LENGTH_AUTH_S 0
  14683. //*****************************************************************************
  14684. //
  14685. // The following are defines for the bit fields in the AES_O_DATA_IN_0
  14686. // register.
  14687. //
  14688. //*****************************************************************************
  14689. #define AES_DATA_IN_0_DATA_M 0xFFFFFFFF // Secure Data RW
  14690. // Plaintext/Ciphertext
  14691. #define AES_DATA_IN_0_DATA_S 0
  14692. //*****************************************************************************
  14693. //
  14694. // The following are defines for the bit fields in the AES_O_DATA_IN_1
  14695. // register.
  14696. //
  14697. //*****************************************************************************
  14698. #define AES_DATA_IN_1_DATA_M 0xFFFFFFFF // Secure Data RW
  14699. // Plaintext/Ciphertext
  14700. #define AES_DATA_IN_1_DATA_S 0
  14701. //*****************************************************************************
  14702. //
  14703. // The following are defines for the bit fields in the AES_O_DATA_IN_2
  14704. // register.
  14705. //
  14706. //*****************************************************************************
  14707. #define AES_DATA_IN_2_DATA_M 0xFFFFFFFF // Secure Data RW
  14708. // Plaintext/Ciphertext
  14709. #define AES_DATA_IN_2_DATA_S 0
  14710. //*****************************************************************************
  14711. //
  14712. // The following are defines for the bit fields in the AES_O_DATA_IN_3
  14713. // register.
  14714. //
  14715. //*****************************************************************************
  14716. #define AES_DATA_IN_3_DATA_M 0xFFFFFFFF // Secure Data RW
  14717. // Plaintext/Ciphertext
  14718. #define AES_DATA_IN_3_DATA_S 0
  14719. //*****************************************************************************
  14720. //
  14721. // The following are defines for the bit fields in the AES_O_TAG_OUT_0
  14722. // register.
  14723. //
  14724. //*****************************************************************************
  14725. #define AES_TAG_OUT_0_HASH_M 0xFFFFFFFF // Hash Result
  14726. #define AES_TAG_OUT_0_HASH_S 0
  14727. //*****************************************************************************
  14728. //
  14729. // The following are defines for the bit fields in the AES_O_TAG_OUT_1
  14730. // register.
  14731. //
  14732. //*****************************************************************************
  14733. #define AES_TAG_OUT_1_HASH_M 0xFFFFFFFF // Hash Result
  14734. #define AES_TAG_OUT_1_HASH_S 0
  14735. //*****************************************************************************
  14736. //
  14737. // The following are defines for the bit fields in the AES_O_TAG_OUT_2
  14738. // register.
  14739. //
  14740. //*****************************************************************************
  14741. #define AES_TAG_OUT_2_HASH_M 0xFFFFFFFF // Hash Result
  14742. #define AES_TAG_OUT_2_HASH_S 0
  14743. //*****************************************************************************
  14744. //
  14745. // The following are defines for the bit fields in the AES_O_TAG_OUT_3
  14746. // register.
  14747. //
  14748. //*****************************************************************************
  14749. #define AES_TAG_OUT_3_HASH_M 0xFFFFFFFF // Hash Result
  14750. #define AES_TAG_OUT_3_HASH_S 0
  14751. //*****************************************************************************
  14752. //
  14753. // The following are defines for the bit fields in the AES_O_REVISION register.
  14754. //
  14755. //*****************************************************************************
  14756. #define AES_REVISION_M 0xFFFFFFFF // Revision number
  14757. #define AES_REVISION_S 0
  14758. //*****************************************************************************
  14759. //
  14760. // The following are defines for the bit fields in the AES_O_SYSCONFIG
  14761. // register.
  14762. //
  14763. //*****************************************************************************
  14764. #define AES_SYSCONFIG_K3 0x00001000 // K3 Select
  14765. #define AES_SYSCONFIG_KEYENC 0x00000800 // Key Encoding
  14766. #define AES_SYSCONFIG_MAP_CONTEXT_OUT_ON_DATA_OUT \
  14767. 0x00000200 // Map Context Out on Data Out
  14768. // Enable
  14769. #define AES_SYSCONFIG_DMA_REQ_CONTEXT_OUT_EN \
  14770. 0x00000100 // DMA Request Context Out Enable
  14771. #define AES_SYSCONFIG_DMA_REQ_CONTEXT_IN_EN \
  14772. 0x00000080 // DMA Request Context In Enable
  14773. #define AES_SYSCONFIG_DMA_REQ_DATA_OUT_EN \
  14774. 0x00000040 // DMA Request Data Out Enable
  14775. #define AES_SYSCONFIG_DMA_REQ_DATA_IN_EN \
  14776. 0x00000020 // DMA Request Data In Enable
  14777. #define AES_SYSCONFIG_SOFTRESET 0x00000002 // Soft reset
  14778. //*****************************************************************************
  14779. //
  14780. // The following are defines for the bit fields in the AES_O_SYSSTATUS
  14781. // register.
  14782. //
  14783. //*****************************************************************************
  14784. #define AES_SYSSTATUS_RESETDONE 0x00000001 // Reset Done
  14785. //*****************************************************************************
  14786. //
  14787. // The following are defines for the bit fields in the AES_O_IRQSTATUS
  14788. // register.
  14789. //
  14790. //*****************************************************************************
  14791. #define AES_IRQSTATUS_CONTEXT_OUT \
  14792. 0x00000008 // Context Output Interrupt Status
  14793. #define AES_IRQSTATUS_DATA_OUT 0x00000004 // Data Out Interrupt Status
  14794. #define AES_IRQSTATUS_DATA_IN 0x00000002 // Data In Interrupt Status
  14795. #define AES_IRQSTATUS_CONTEXT_IN \
  14796. 0x00000001 // Context In Interrupt Status
  14797. //*****************************************************************************
  14798. //
  14799. // The following are defines for the bit fields in the AES_O_IRQENABLE
  14800. // register.
  14801. //
  14802. //*****************************************************************************
  14803. #define AES_IRQENABLE_CONTEXT_OUT \
  14804. 0x00000008 // Context Out Interrupt Enable
  14805. #define AES_IRQENABLE_DATA_OUT 0x00000004 // Data Out Interrupt Enable
  14806. #define AES_IRQENABLE_DATA_IN 0x00000002 // Data In Interrupt Enable
  14807. #define AES_IRQENABLE_CONTEXT_IN \
  14808. 0x00000001 // Context In Interrupt Enable
  14809. //*****************************************************************************
  14810. //
  14811. // The following are defines for the bit fields in the AES_O_DIRTYBITS
  14812. // register.
  14813. //
  14814. //*****************************************************************************
  14815. #define AES_DIRTYBITS_S_DIRTY 0x00000002 // AES Dirty Bit
  14816. #define AES_DIRTYBITS_S_ACCESS 0x00000001 // AES Access Bit
  14817. //*****************************************************************************
  14818. //
  14819. // The following are defines for the bit fields in the AES_O_DMAIM register.
  14820. //
  14821. //*****************************************************************************
  14822. #define AES_DMAIM_DOUT 0x00000008 // Data Out DMA Done Interrupt Mask
  14823. #define AES_DMAIM_DIN 0x00000004 // Data In DMA Done Interrupt Mask
  14824. #define AES_DMAIM_COUT 0x00000002 // Context Out DMA Done Interrupt
  14825. // Mask
  14826. #define AES_DMAIM_CIN 0x00000001 // Context In DMA Done Interrupt
  14827. // Mask
  14828. //*****************************************************************************
  14829. //
  14830. // The following are defines for the bit fields in the AES_O_DMARIS register.
  14831. //
  14832. //*****************************************************************************
  14833. #define AES_DMARIS_DOUT 0x00000008 // Data Out DMA Done Raw Interrupt
  14834. // Status
  14835. #define AES_DMARIS_DIN 0x00000004 // Data In DMA Done Raw Interrupt
  14836. // Status
  14837. #define AES_DMARIS_COUT 0x00000002 // Context Out DMA Done Raw
  14838. // Interrupt Status
  14839. #define AES_DMARIS_CIN 0x00000001 // Context In DMA Done Raw
  14840. // Interrupt Status
  14841. //*****************************************************************************
  14842. //
  14843. // The following are defines for the bit fields in the AES_O_DMAMIS register.
  14844. //
  14845. //*****************************************************************************
  14846. #define AES_DMAMIS_DOUT 0x00000008 // Data Out DMA Done Masked
  14847. // Interrupt Status
  14848. #define AES_DMAMIS_DIN 0x00000004 // Data In DMA Done Masked
  14849. // Interrupt Status
  14850. #define AES_DMAMIS_COUT 0x00000002 // Context Out DMA Done Masked
  14851. // Interrupt Status
  14852. #define AES_DMAMIS_CIN 0x00000001 // Context In DMA Done Raw
  14853. // Interrupt Status
  14854. //*****************************************************************************
  14855. //
  14856. // The following are defines for the bit fields in the AES_O_DMAIC register.
  14857. //
  14858. //*****************************************************************************
  14859. #define AES_DMAIC_DOUT 0x00000008 // Data Out DMA Done Interrupt
  14860. // Clear
  14861. #define AES_DMAIC_DIN 0x00000004 // Data In DMA Done Interrupt Clear
  14862. #define AES_DMAIC_COUT 0x00000002 // Context Out DMA Done Masked
  14863. // Interrupt Status
  14864. #define AES_DMAIC_CIN 0x00000001 // Context In DMA Done Raw
  14865. // Interrupt Status
  14866. //*****************************************************************************
  14867. //
  14868. // The following are defines for the bit fields in the DES_O_KEY3_L register.
  14869. //
  14870. //*****************************************************************************
  14871. #define DES_KEY3_L_KEY_M 0xFFFFFFFF // Key Data
  14872. #define DES_KEY3_L_KEY_S 0
  14873. //*****************************************************************************
  14874. //
  14875. // The following are defines for the bit fields in the DES_O_KEY3_H register.
  14876. //
  14877. //*****************************************************************************
  14878. #define DES_KEY3_H_KEY_M 0xFFFFFFFF // Key Data
  14879. #define DES_KEY3_H_KEY_S 0
  14880. //*****************************************************************************
  14881. //
  14882. // The following are defines for the bit fields in the DES_O_KEY2_L register.
  14883. //
  14884. //*****************************************************************************
  14885. #define DES_KEY2_L_KEY_M 0xFFFFFFFF // Key Data
  14886. #define DES_KEY2_L_KEY_S 0
  14887. //*****************************************************************************
  14888. //
  14889. // The following are defines for the bit fields in the DES_O_KEY2_H register.
  14890. //
  14891. //*****************************************************************************
  14892. #define DES_KEY2_H_KEY_M 0xFFFFFFFF // Key Data
  14893. #define DES_KEY2_H_KEY_S 0
  14894. //*****************************************************************************
  14895. //
  14896. // The following are defines for the bit fields in the DES_O_KEY1_L register.
  14897. //
  14898. //*****************************************************************************
  14899. #define DES_KEY1_L_KEY_M 0xFFFFFFFF // Key Data
  14900. #define DES_KEY1_L_KEY_S 0
  14901. //*****************************************************************************
  14902. //
  14903. // The following are defines for the bit fields in the DES_O_KEY1_H register.
  14904. //
  14905. //*****************************************************************************
  14906. #define DES_KEY1_H_KEY_M 0xFFFFFFFF // Key Data
  14907. #define DES_KEY1_H_KEY_S 0
  14908. //*****************************************************************************
  14909. //
  14910. // The following are defines for the bit fields in the DES_O_IV_L register.
  14911. //
  14912. //*****************************************************************************
  14913. #define DES_IV_L_M 0xFFFFFFFF // Initialization vector for CBC,
  14914. // CFB modes (LSW)
  14915. #define DES_IV_L_S 0
  14916. //*****************************************************************************
  14917. //
  14918. // The following are defines for the bit fields in the DES_O_IV_H register.
  14919. //
  14920. //*****************************************************************************
  14921. #define DES_IV_H_M 0xFFFFFFFF // Initialization vector for CBC,
  14922. // CFB modes (MSW)
  14923. #define DES_IV_H_S 0
  14924. //*****************************************************************************
  14925. //
  14926. // The following are defines for the bit fields in the DES_O_CTRL register.
  14927. //
  14928. //*****************************************************************************
  14929. #define DES_CTRL_CONTEXT 0x80000000 // If 1, this read-only status bit
  14930. // indicates that the context data
  14931. // registers can be overwritten and
  14932. // the host is permitted to write
  14933. // the next context
  14934. #define DES_CTRL_MODE_M 0x00000030 // Select CBC, ECB or CFB mode0x0:
  14935. // ECB mode0x1: CBC mode0x2: CFB
  14936. // mode0x3: reserved
  14937. #define DES_CTRL_TDES 0x00000008 // Select DES or triple DES
  14938. // encryption/decryption
  14939. #define DES_CTRL_DIRECTION 0x00000004 // Select encryption/decryption
  14940. // 0x0: decryption is selected0x1:
  14941. // Encryption is selected
  14942. #define DES_CTRL_INPUT_READY 0x00000002 // When 1, ready to encrypt/decrypt
  14943. // data
  14944. #define DES_CTRL_OUTPUT_READY 0x00000001 // When 1, Data decrypted/encrypted
  14945. // ready
  14946. #define DES_CTRL_MODE_S 4
  14947. //*****************************************************************************
  14948. //
  14949. // The following are defines for the bit fields in the DES_O_LENGTH register.
  14950. //
  14951. //*****************************************************************************
  14952. #define DES_LENGTH_M 0xFFFFFFFF // Cryptographic data length in
  14953. // bytes for all modes
  14954. #define DES_LENGTH_S 0
  14955. //*****************************************************************************
  14956. //
  14957. // The following are defines for the bit fields in the DES_O_DATA_L register.
  14958. //
  14959. //*****************************************************************************
  14960. #define DES_DATA_L_M 0xFFFFFFFF // Data for encryption/decryption,
  14961. // LSW
  14962. #define DES_DATA_L_S 0
  14963. //*****************************************************************************
  14964. //
  14965. // The following are defines for the bit fields in the DES_O_DATA_H register.
  14966. //
  14967. //*****************************************************************************
  14968. #define DES_DATA_H_M 0xFFFFFFFF // Data for encryption/decryption,
  14969. // MSW
  14970. #define DES_DATA_H_S 0
  14971. //*****************************************************************************
  14972. //
  14973. // The following are defines for the bit fields in the DES_O_REVISION register.
  14974. //
  14975. //*****************************************************************************
  14976. #define DES_REVISION_M 0xFFFFFFFF // Revision number
  14977. #define DES_REVISION_S 0
  14978. //*****************************************************************************
  14979. //
  14980. // The following are defines for the bit fields in the DES_O_SYSCONFIG
  14981. // register.
  14982. //
  14983. //*****************************************************************************
  14984. #define DES_SYSCONFIG_DMA_REQ_CONTEXT_IN_EN \
  14985. 0x00000080 // DMA Request Context In Enable
  14986. #define DES_SYSCONFIG_DMA_REQ_DATA_OUT_EN \
  14987. 0x00000040 // DMA Request Data Out Enable
  14988. #define DES_SYSCONFIG_DMA_REQ_DATA_IN_EN \
  14989. 0x00000020 // DMA Request Data In Enable
  14990. #define DES_SYSCONFIG_SIDLE_M 0x0000000C // Sidle mode
  14991. #define DES_SYSCONFIG_SIDLE_FORCE \
  14992. 0x00000000 // Force-idle mode
  14993. #define DES_SYSCONFIG_SOFTRESET 0x00000002 // Soft reset
  14994. //*****************************************************************************
  14995. //
  14996. // The following are defines for the bit fields in the DES_O_SYSSTATUS
  14997. // register.
  14998. //
  14999. //*****************************************************************************
  15000. #define DES_SYSSTATUS_RESETDONE 0x00000001 // Reset Done
  15001. //*****************************************************************************
  15002. //
  15003. // The following are defines for the bit fields in the DES_O_IRQSTATUS
  15004. // register.
  15005. //
  15006. //*****************************************************************************
  15007. #define DES_IRQSTATUS_DATA_OUT 0x00000004 // This bit indicates data output
  15008. // interrupt is active and triggers
  15009. // the interrupt output
  15010. #define DES_IRQSTATUS_DATA_IN 0x00000002 // This bit indicates data input
  15011. // interrupt is active and triggers
  15012. // the interrupt output
  15013. #define DES_IRQSTATUS_CONTEX_IN 0x00000001 // This bit indicates context
  15014. // interrupt is active and triggers
  15015. // the interrupt output
  15016. //*****************************************************************************
  15017. //
  15018. // The following are defines for the bit fields in the DES_O_IRQENABLE
  15019. // register.
  15020. //
  15021. //*****************************************************************************
  15022. #define DES_IRQENABLE_M_DATA_OUT \
  15023. 0x00000004 // If this bit is set to 1 the data
  15024. // output interrupt is enabled
  15025. #define DES_IRQENABLE_M_DATA_IN 0x00000002 // If this bit is set to 1 the data
  15026. // input interrupt is enabled
  15027. #define DES_IRQENABLE_M_CONTEX_IN \
  15028. 0x00000001 // If this bit is set to 1 the
  15029. // context interrupt is enabled
  15030. //*****************************************************************************
  15031. //
  15032. // The following are defines for the bit fields in the DES_O_DIRTYBITS
  15033. // register.
  15034. //
  15035. //*****************************************************************************
  15036. #define DES_DIRTYBITS_S_DIRTY 0x00000002 // This bit is set to 1 by the
  15037. // module if any of the DES_*
  15038. // registers is written
  15039. #define DES_DIRTYBITS_S_ACCESS 0x00000001 // This bit is set to 1 by the
  15040. // module if any of the DES_*
  15041. // registers is read
  15042. //*****************************************************************************
  15043. //
  15044. // The following are defines for the bit fields in the DES_O_DMAIM register.
  15045. //
  15046. //*****************************************************************************
  15047. #define DES_DMAIM_DOUT 0x00000004 // Data Out DMA Done Interrupt Mask
  15048. #define DES_DMAIM_DIN 0x00000002 // Data In DMA Done Interrupt Mask
  15049. #define DES_DMAIM_CIN 0x00000001 // Context In DMA Done Interrupt
  15050. // Mask
  15051. //*****************************************************************************
  15052. //
  15053. // The following are defines for the bit fields in the DES_O_DMARIS register.
  15054. //
  15055. //*****************************************************************************
  15056. #define DES_DMARIS_DOUT 0x00000004 // Data Out DMA Done Raw Interrupt
  15057. // Status
  15058. #define DES_DMARIS_DIN 0x00000002 // Data In DMA Done Raw Interrupt
  15059. // Status
  15060. #define DES_DMARIS_CIN 0x00000001 // Context In DMA Done Raw
  15061. // Interrupt Status
  15062. //*****************************************************************************
  15063. //
  15064. // The following are defines for the bit fields in the DES_O_DMAMIS register.
  15065. //
  15066. //*****************************************************************************
  15067. #define DES_DMAMIS_DOUT 0x00000004 // Data Out DMA Done Masked
  15068. // Interrupt Status
  15069. #define DES_DMAMIS_DIN 0x00000002 // Data In DMA Done Masked
  15070. // Interrupt Status
  15071. #define DES_DMAMIS_CIN 0x00000001 // Context In DMA Done Raw
  15072. // Interrupt Status
  15073. //*****************************************************************************
  15074. //
  15075. // The following are defines for the bit fields in the DES_O_DMAIC register.
  15076. //
  15077. //*****************************************************************************
  15078. #define DES_DMAIC_DOUT 0x00000004 // Data Out DMA Done Interrupt
  15079. // Clear
  15080. #define DES_DMAIC_DIN 0x00000002 // Data In DMA Done Interrupt Clear
  15081. #define DES_DMAIC_CIN 0x00000001 // Context In DMA Done Raw
  15082. // Interrupt Status
  15083. //*****************************************************************************
  15084. //
  15085. // The following are defines for the bit fields in the NVIC_ACTLR register.
  15086. //
  15087. //*****************************************************************************
  15088. #define NVIC_ACTLR_DISOOFP 0x00000200 // Disable Out-Of-Order Floating
  15089. // Point
  15090. #define NVIC_ACTLR_DISFPCA 0x00000100 // Disable CONTROL
  15091. #define NVIC_ACTLR_DISFOLD 0x00000004 // Disable IT Folding
  15092. #define NVIC_ACTLR_DISWBUF 0x00000002 // Disable Write Buffer
  15093. #define NVIC_ACTLR_DISMCYC 0x00000001 // Disable Interrupts of Multiple
  15094. // Cycle Instructions
  15095. //*****************************************************************************
  15096. //
  15097. // The following are defines for the bit fields in the NVIC_ST_CTRL register.
  15098. //
  15099. //*****************************************************************************
  15100. #define NVIC_ST_CTRL_COUNT 0x00010000 // Count Flag
  15101. #define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
  15102. #define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt Enable
  15103. #define NVIC_ST_CTRL_ENABLE 0x00000001 // Enable
  15104. //*****************************************************************************
  15105. //
  15106. // The following are defines for the bit fields in the NVIC_ST_RELOAD register.
  15107. //
  15108. //*****************************************************************************
  15109. #define NVIC_ST_RELOAD_M 0x00FFFFFF // Reload Value
  15110. #define NVIC_ST_RELOAD_S 0
  15111. //*****************************************************************************
  15112. //
  15113. // The following are defines for the bit fields in the NVIC_ST_CURRENT
  15114. // register.
  15115. //
  15116. //*****************************************************************************
  15117. #define NVIC_ST_CURRENT_M 0x00FFFFFF // Current Value
  15118. #define NVIC_ST_CURRENT_S 0
  15119. //*****************************************************************************
  15120. //
  15121. // The following are defines for the bit fields in the NVIC_EN0 register.
  15122. //
  15123. //*****************************************************************************
  15124. #define NVIC_EN0_INT_M 0xFFFFFFFF // Interrupt Enable
  15125. //*****************************************************************************
  15126. //
  15127. // The following are defines for the bit fields in the NVIC_EN1 register.
  15128. //
  15129. //*****************************************************************************
  15130. #define NVIC_EN1_INT_M 0xFFFFFFFF // Interrupt Enable
  15131. //*****************************************************************************
  15132. //
  15133. // The following are defines for the bit fields in the NVIC_EN2 register.
  15134. //
  15135. //*****************************************************************************
  15136. #define NVIC_EN2_INT_M 0xFFFFFFFF // Interrupt Enable
  15137. //*****************************************************************************
  15138. //
  15139. // The following are defines for the bit fields in the NVIC_EN3 register.
  15140. //
  15141. //*****************************************************************************
  15142. #define NVIC_EN3_INT_M 0xFFFFFFFF // Interrupt Enable
  15143. //*****************************************************************************
  15144. //
  15145. // The following are defines for the bit fields in the NVIC_DIS0 register.
  15146. //
  15147. //*****************************************************************************
  15148. #define NVIC_DIS0_INT_M 0xFFFFFFFF // Interrupt Disable
  15149. //*****************************************************************************
  15150. //
  15151. // The following are defines for the bit fields in the NVIC_DIS1 register.
  15152. //
  15153. //*****************************************************************************
  15154. #define NVIC_DIS1_INT_M 0xFFFFFFFF // Interrupt Disable
  15155. //*****************************************************************************
  15156. //
  15157. // The following are defines for the bit fields in the NVIC_DIS2 register.
  15158. //
  15159. //*****************************************************************************
  15160. #define NVIC_DIS2_INT_M 0xFFFFFFFF // Interrupt Disable
  15161. //*****************************************************************************
  15162. //
  15163. // The following are defines for the bit fields in the NVIC_DIS3 register.
  15164. //
  15165. //*****************************************************************************
  15166. #define NVIC_DIS3_INT_M 0xFFFFFFFF // Interrupt Disable
  15167. //*****************************************************************************
  15168. //
  15169. // The following are defines for the bit fields in the NVIC_PEND0 register.
  15170. //
  15171. //*****************************************************************************
  15172. #define NVIC_PEND0_INT_M 0xFFFFFFFF // Interrupt Set Pending
  15173. //*****************************************************************************
  15174. //
  15175. // The following are defines for the bit fields in the NVIC_PEND1 register.
  15176. //
  15177. //*****************************************************************************
  15178. #define NVIC_PEND1_INT_M 0xFFFFFFFF // Interrupt Set Pending
  15179. //*****************************************************************************
  15180. //
  15181. // The following are defines for the bit fields in the NVIC_PEND2 register.
  15182. //
  15183. //*****************************************************************************
  15184. #define NVIC_PEND2_INT_M 0xFFFFFFFF // Interrupt Set Pending
  15185. //*****************************************************************************
  15186. //
  15187. // The following are defines for the bit fields in the NVIC_PEND3 register.
  15188. //
  15189. //*****************************************************************************
  15190. #define NVIC_PEND3_INT_M 0xFFFFFFFF // Interrupt Set Pending
  15191. //*****************************************************************************
  15192. //
  15193. // The following are defines for the bit fields in the NVIC_UNPEND0 register.
  15194. //
  15195. //*****************************************************************************
  15196. #define NVIC_UNPEND0_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  15197. //*****************************************************************************
  15198. //
  15199. // The following are defines for the bit fields in the NVIC_UNPEND1 register.
  15200. //
  15201. //*****************************************************************************
  15202. #define NVIC_UNPEND1_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  15203. //*****************************************************************************
  15204. //
  15205. // The following are defines for the bit fields in the NVIC_UNPEND2 register.
  15206. //
  15207. //*****************************************************************************
  15208. #define NVIC_UNPEND2_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  15209. //*****************************************************************************
  15210. //
  15211. // The following are defines for the bit fields in the NVIC_UNPEND3 register.
  15212. //
  15213. //*****************************************************************************
  15214. #define NVIC_UNPEND3_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  15215. //*****************************************************************************
  15216. //
  15217. // The following are defines for the bit fields in the NVIC_ACTIVE0 register.
  15218. //
  15219. //*****************************************************************************
  15220. #define NVIC_ACTIVE0_INT_M 0xFFFFFFFF // Interrupt Active
  15221. //*****************************************************************************
  15222. //
  15223. // The following are defines for the bit fields in the NVIC_ACTIVE1 register.
  15224. //
  15225. //*****************************************************************************
  15226. #define NVIC_ACTIVE1_INT_M 0xFFFFFFFF // Interrupt Active
  15227. //*****************************************************************************
  15228. //
  15229. // The following are defines for the bit fields in the NVIC_ACTIVE2 register.
  15230. //
  15231. //*****************************************************************************
  15232. #define NVIC_ACTIVE2_INT_M 0xFFFFFFFF // Interrupt Active
  15233. //*****************************************************************************
  15234. //
  15235. // The following are defines for the bit fields in the NVIC_ACTIVE3 register.
  15236. //
  15237. //*****************************************************************************
  15238. #define NVIC_ACTIVE3_INT_M 0xFFFFFFFF // Interrupt Active
  15239. //*****************************************************************************
  15240. //
  15241. // The following are defines for the bit fields in the NVIC_PRI0 register.
  15242. //
  15243. //*****************************************************************************
  15244. #define NVIC_PRI0_INT3_M 0xE0000000 // Interrupt 3 Priority Mask
  15245. #define NVIC_PRI0_INT2_M 0x00E00000 // Interrupt 2 Priority Mask
  15246. #define NVIC_PRI0_INT1_M 0x0000E000 // Interrupt 1 Priority Mask
  15247. #define NVIC_PRI0_INT0_M 0x000000E0 // Interrupt 0 Priority Mask
  15248. #define NVIC_PRI0_INT3_S 29
  15249. #define NVIC_PRI0_INT2_S 21
  15250. #define NVIC_PRI0_INT1_S 13
  15251. #define NVIC_PRI0_INT0_S 5
  15252. //*****************************************************************************
  15253. //
  15254. // The following are defines for the bit fields in the NVIC_PRI1 register.
  15255. //
  15256. //*****************************************************************************
  15257. #define NVIC_PRI1_INT7_M 0xE0000000 // Interrupt 7 Priority Mask
  15258. #define NVIC_PRI1_INT6_M 0x00E00000 // Interrupt 6 Priority Mask
  15259. #define NVIC_PRI1_INT5_M 0x0000E000 // Interrupt 5 Priority Mask
  15260. #define NVIC_PRI1_INT4_M 0x000000E0 // Interrupt 4 Priority Mask
  15261. #define NVIC_PRI1_INT7_S 29
  15262. #define NVIC_PRI1_INT6_S 21
  15263. #define NVIC_PRI1_INT5_S 13
  15264. #define NVIC_PRI1_INT4_S 5
  15265. //*****************************************************************************
  15266. //
  15267. // The following are defines for the bit fields in the NVIC_PRI2 register.
  15268. //
  15269. //*****************************************************************************
  15270. #define NVIC_PRI2_INT11_M 0xE0000000 // Interrupt 11 Priority Mask
  15271. #define NVIC_PRI2_INT10_M 0x00E00000 // Interrupt 10 Priority Mask
  15272. #define NVIC_PRI2_INT9_M 0x0000E000 // Interrupt 9 Priority Mask
  15273. #define NVIC_PRI2_INT8_M 0x000000E0 // Interrupt 8 Priority Mask
  15274. #define NVIC_PRI2_INT11_S 29
  15275. #define NVIC_PRI2_INT10_S 21
  15276. #define NVIC_PRI2_INT9_S 13
  15277. #define NVIC_PRI2_INT8_S 5
  15278. //*****************************************************************************
  15279. //
  15280. // The following are defines for the bit fields in the NVIC_PRI3 register.
  15281. //
  15282. //*****************************************************************************
  15283. #define NVIC_PRI3_INT15_M 0xE0000000 // Interrupt 15 Priority Mask
  15284. #define NVIC_PRI3_INT14_M 0x00E00000 // Interrupt 14 Priority Mask
  15285. #define NVIC_PRI3_INT13_M 0x0000E000 // Interrupt 13 Priority Mask
  15286. #define NVIC_PRI3_INT12_M 0x000000E0 // Interrupt 12 Priority Mask
  15287. #define NVIC_PRI3_INT15_S 29
  15288. #define NVIC_PRI3_INT14_S 21
  15289. #define NVIC_PRI3_INT13_S 13
  15290. #define NVIC_PRI3_INT12_S 5
  15291. //*****************************************************************************
  15292. //
  15293. // The following are defines for the bit fields in the NVIC_PRI4 register.
  15294. //
  15295. //*****************************************************************************
  15296. #define NVIC_PRI4_INT19_M 0xE0000000 // Interrupt 19 Priority Mask
  15297. #define NVIC_PRI4_INT18_M 0x00E00000 // Interrupt 18 Priority Mask
  15298. #define NVIC_PRI4_INT17_M 0x0000E000 // Interrupt 17 Priority Mask
  15299. #define NVIC_PRI4_INT16_M 0x000000E0 // Interrupt 16 Priority Mask
  15300. #define NVIC_PRI4_INT19_S 29
  15301. #define NVIC_PRI4_INT18_S 21
  15302. #define NVIC_PRI4_INT17_S 13
  15303. #define NVIC_PRI4_INT16_S 5
  15304. //*****************************************************************************
  15305. //
  15306. // The following are defines for the bit fields in the NVIC_PRI5 register.
  15307. //
  15308. //*****************************************************************************
  15309. #define NVIC_PRI5_INT23_M 0xE0000000 // Interrupt 23 Priority Mask
  15310. #define NVIC_PRI5_INT22_M 0x00E00000 // Interrupt 22 Priority Mask
  15311. #define NVIC_PRI5_INT21_M 0x0000E000 // Interrupt 21 Priority Mask
  15312. #define NVIC_PRI5_INT20_M 0x000000E0 // Interrupt 20 Priority Mask
  15313. #define NVIC_PRI5_INT23_S 29
  15314. #define NVIC_PRI5_INT22_S 21
  15315. #define NVIC_PRI5_INT21_S 13
  15316. #define NVIC_PRI5_INT20_S 5
  15317. //*****************************************************************************
  15318. //
  15319. // The following are defines for the bit fields in the NVIC_PRI6 register.
  15320. //
  15321. //*****************************************************************************
  15322. #define NVIC_PRI6_INT27_M 0xE0000000 // Interrupt 27 Priority Mask
  15323. #define NVIC_PRI6_INT26_M 0x00E00000 // Interrupt 26 Priority Mask
  15324. #define NVIC_PRI6_INT25_M 0x0000E000 // Interrupt 25 Priority Mask
  15325. #define NVIC_PRI6_INT24_M 0x000000E0 // Interrupt 24 Priority Mask
  15326. #define NVIC_PRI6_INT27_S 29
  15327. #define NVIC_PRI6_INT26_S 21
  15328. #define NVIC_PRI6_INT25_S 13
  15329. #define NVIC_PRI6_INT24_S 5
  15330. //*****************************************************************************
  15331. //
  15332. // The following are defines for the bit fields in the NVIC_PRI7 register.
  15333. //
  15334. //*****************************************************************************
  15335. #define NVIC_PRI7_INT31_M 0xE0000000 // Interrupt 31 Priority Mask
  15336. #define NVIC_PRI7_INT30_M 0x00E00000 // Interrupt 30 Priority Mask
  15337. #define NVIC_PRI7_INT29_M 0x0000E000 // Interrupt 29 Priority Mask
  15338. #define NVIC_PRI7_INT28_M 0x000000E0 // Interrupt 28 Priority Mask
  15339. #define NVIC_PRI7_INT31_S 29
  15340. #define NVIC_PRI7_INT30_S 21
  15341. #define NVIC_PRI7_INT29_S 13
  15342. #define NVIC_PRI7_INT28_S 5
  15343. //*****************************************************************************
  15344. //
  15345. // The following are defines for the bit fields in the NVIC_PRI8 register.
  15346. //
  15347. //*****************************************************************************
  15348. #define NVIC_PRI8_INT35_M 0xE0000000 // Interrupt 35 Priority Mask
  15349. #define NVIC_PRI8_INT34_M 0x00E00000 // Interrupt 34 Priority Mask
  15350. #define NVIC_PRI8_INT33_M 0x0000E000 // Interrupt 33 Priority Mask
  15351. #define NVIC_PRI8_INT32_M 0x000000E0 // Interrupt 32 Priority Mask
  15352. #define NVIC_PRI8_INT35_S 29
  15353. #define NVIC_PRI8_INT34_S 21
  15354. #define NVIC_PRI8_INT33_S 13
  15355. #define NVIC_PRI8_INT32_S 5
  15356. //*****************************************************************************
  15357. //
  15358. // The following are defines for the bit fields in the NVIC_PRI9 register.
  15359. //
  15360. //*****************************************************************************
  15361. #define NVIC_PRI9_INT39_M 0xE0000000 // Interrupt 39 Priority Mask
  15362. #define NVIC_PRI9_INT38_M 0x00E00000 // Interrupt 38 Priority Mask
  15363. #define NVIC_PRI9_INT37_M 0x0000E000 // Interrupt 37 Priority Mask
  15364. #define NVIC_PRI9_INT36_M 0x000000E0 // Interrupt 36 Priority Mask
  15365. #define NVIC_PRI9_INT39_S 29
  15366. #define NVIC_PRI9_INT38_S 21
  15367. #define NVIC_PRI9_INT37_S 13
  15368. #define NVIC_PRI9_INT36_S 5
  15369. //*****************************************************************************
  15370. //
  15371. // The following are defines for the bit fields in the NVIC_PRI10 register.
  15372. //
  15373. //*****************************************************************************
  15374. #define NVIC_PRI10_INT43_M 0xE0000000 // Interrupt 43 Priority Mask
  15375. #define NVIC_PRI10_INT42_M 0x00E00000 // Interrupt 42 Priority Mask
  15376. #define NVIC_PRI10_INT41_M 0x0000E000 // Interrupt 41 Priority Mask
  15377. #define NVIC_PRI10_INT40_M 0x000000E0 // Interrupt 40 Priority Mask
  15378. #define NVIC_PRI10_INT43_S 29
  15379. #define NVIC_PRI10_INT42_S 21
  15380. #define NVIC_PRI10_INT41_S 13
  15381. #define NVIC_PRI10_INT40_S 5
  15382. //*****************************************************************************
  15383. //
  15384. // The following are defines for the bit fields in the NVIC_PRI11 register.
  15385. //
  15386. //*****************************************************************************
  15387. #define NVIC_PRI11_INT47_M 0xE0000000 // Interrupt 47 Priority Mask
  15388. #define NVIC_PRI11_INT46_M 0x00E00000 // Interrupt 46 Priority Mask
  15389. #define NVIC_PRI11_INT45_M 0x0000E000 // Interrupt 45 Priority Mask
  15390. #define NVIC_PRI11_INT44_M 0x000000E0 // Interrupt 44 Priority Mask
  15391. #define NVIC_PRI11_INT47_S 29
  15392. #define NVIC_PRI11_INT46_S 21
  15393. #define NVIC_PRI11_INT45_S 13
  15394. #define NVIC_PRI11_INT44_S 5
  15395. //*****************************************************************************
  15396. //
  15397. // The following are defines for the bit fields in the NVIC_PRI12 register.
  15398. //
  15399. //*****************************************************************************
  15400. #define NVIC_PRI12_INT51_M 0xE0000000 // Interrupt 51 Priority Mask
  15401. #define NVIC_PRI12_INT50_M 0x00E00000 // Interrupt 50 Priority Mask
  15402. #define NVIC_PRI12_INT49_M 0x0000E000 // Interrupt 49 Priority Mask
  15403. #define NVIC_PRI12_INT48_M 0x000000E0 // Interrupt 48 Priority Mask
  15404. #define NVIC_PRI12_INT51_S 29
  15405. #define NVIC_PRI12_INT50_S 21
  15406. #define NVIC_PRI12_INT49_S 13
  15407. #define NVIC_PRI12_INT48_S 5
  15408. //*****************************************************************************
  15409. //
  15410. // The following are defines for the bit fields in the NVIC_PRI13 register.
  15411. //
  15412. //*****************************************************************************
  15413. #define NVIC_PRI13_INT55_M 0xE0000000 // Interrupt 55 Priority Mask
  15414. #define NVIC_PRI13_INT54_M 0x00E00000 // Interrupt 54 Priority Mask
  15415. #define NVIC_PRI13_INT53_M 0x0000E000 // Interrupt 53 Priority Mask
  15416. #define NVIC_PRI13_INT52_M 0x000000E0 // Interrupt 52 Priority Mask
  15417. #define NVIC_PRI13_INT55_S 29
  15418. #define NVIC_PRI13_INT54_S 21
  15419. #define NVIC_PRI13_INT53_S 13
  15420. #define NVIC_PRI13_INT52_S 5
  15421. //*****************************************************************************
  15422. //
  15423. // The following are defines for the bit fields in the NVIC_PRI14 register.
  15424. //
  15425. //*****************************************************************************
  15426. #define NVIC_PRI14_INTD_M 0xE0000000 // Interrupt 59 Priority Mask
  15427. #define NVIC_PRI14_INTC_M 0x00E00000 // Interrupt 58 Priority Mask
  15428. #define NVIC_PRI14_INTB_M 0x0000E000 // Interrupt 57 Priority Mask
  15429. #define NVIC_PRI14_INTA_M 0x000000E0 // Interrupt 56 Priority Mask
  15430. #define NVIC_PRI14_INTD_S 29
  15431. #define NVIC_PRI14_INTC_S 21
  15432. #define NVIC_PRI14_INTB_S 13
  15433. #define NVIC_PRI14_INTA_S 5
  15434. //*****************************************************************************
  15435. //
  15436. // The following are defines for the bit fields in the NVIC_PRI15 register.
  15437. //
  15438. //*****************************************************************************
  15439. #define NVIC_PRI15_INTD_M 0xE0000000 // Interrupt 63 Priority Mask
  15440. #define NVIC_PRI15_INTC_M 0x00E00000 // Interrupt 62 Priority Mask
  15441. #define NVIC_PRI15_INTB_M 0x0000E000 // Interrupt 61 Priority Mask
  15442. #define NVIC_PRI15_INTA_M 0x000000E0 // Interrupt 60 Priority Mask
  15443. #define NVIC_PRI15_INTD_S 29
  15444. #define NVIC_PRI15_INTC_S 21
  15445. #define NVIC_PRI15_INTB_S 13
  15446. #define NVIC_PRI15_INTA_S 5
  15447. //*****************************************************************************
  15448. //
  15449. // The following are defines for the bit fields in the NVIC_PRI16 register.
  15450. //
  15451. //*****************************************************************************
  15452. #define NVIC_PRI16_INTD_M 0xE0000000 // Interrupt 67 Priority Mask
  15453. #define NVIC_PRI16_INTC_M 0x00E00000 // Interrupt 66 Priority Mask
  15454. #define NVIC_PRI16_INTB_M 0x0000E000 // Interrupt 65 Priority Mask
  15455. #define NVIC_PRI16_INTA_M 0x000000E0 // Interrupt 64 Priority Mask
  15456. #define NVIC_PRI16_INTD_S 29
  15457. #define NVIC_PRI16_INTC_S 21
  15458. #define NVIC_PRI16_INTB_S 13
  15459. #define NVIC_PRI16_INTA_S 5
  15460. //*****************************************************************************
  15461. //
  15462. // The following are defines for the bit fields in the NVIC_PRI17 register.
  15463. //
  15464. //*****************************************************************************
  15465. #define NVIC_PRI17_INTD_M 0xE0000000 // Interrupt 71 Priority Mask
  15466. #define NVIC_PRI17_INTC_M 0x00E00000 // Interrupt 70 Priority Mask
  15467. #define NVIC_PRI17_INTB_M 0x0000E000 // Interrupt 69 Priority Mask
  15468. #define NVIC_PRI17_INTA_M 0x000000E0 // Interrupt 68 Priority Mask
  15469. #define NVIC_PRI17_INTD_S 29
  15470. #define NVIC_PRI17_INTC_S 21
  15471. #define NVIC_PRI17_INTB_S 13
  15472. #define NVIC_PRI17_INTA_S 5
  15473. //*****************************************************************************
  15474. //
  15475. // The following are defines for the bit fields in the NVIC_PRI18 register.
  15476. //
  15477. //*****************************************************************************
  15478. #define NVIC_PRI18_INTD_M 0xE0000000 // Interrupt 75 Priority Mask
  15479. #define NVIC_PRI18_INTC_M 0x00E00000 // Interrupt 74 Priority Mask
  15480. #define NVIC_PRI18_INTB_M 0x0000E000 // Interrupt 73 Priority Mask
  15481. #define NVIC_PRI18_INTA_M 0x000000E0 // Interrupt 72 Priority Mask
  15482. #define NVIC_PRI18_INTD_S 29
  15483. #define NVIC_PRI18_INTC_S 21
  15484. #define NVIC_PRI18_INTB_S 13
  15485. #define NVIC_PRI18_INTA_S 5
  15486. //*****************************************************************************
  15487. //
  15488. // The following are defines for the bit fields in the NVIC_PRI19 register.
  15489. //
  15490. //*****************************************************************************
  15491. #define NVIC_PRI19_INTD_M 0xE0000000 // Interrupt 79 Priority Mask
  15492. #define NVIC_PRI19_INTC_M 0x00E00000 // Interrupt 78 Priority Mask
  15493. #define NVIC_PRI19_INTB_M 0x0000E000 // Interrupt 77 Priority Mask
  15494. #define NVIC_PRI19_INTA_M 0x000000E0 // Interrupt 76 Priority Mask
  15495. #define NVIC_PRI19_INTD_S 29
  15496. #define NVIC_PRI19_INTC_S 21
  15497. #define NVIC_PRI19_INTB_S 13
  15498. #define NVIC_PRI19_INTA_S 5
  15499. //*****************************************************************************
  15500. //
  15501. // The following are defines for the bit fields in the NVIC_PRI20 register.
  15502. //
  15503. //*****************************************************************************
  15504. #define NVIC_PRI20_INTD_M 0xE0000000 // Interrupt 83 Priority Mask
  15505. #define NVIC_PRI20_INTC_M 0x00E00000 // Interrupt 82 Priority Mask
  15506. #define NVIC_PRI20_INTB_M 0x0000E000 // Interrupt 81 Priority Mask
  15507. #define NVIC_PRI20_INTA_M 0x000000E0 // Interrupt 80 Priority Mask
  15508. #define NVIC_PRI20_INTD_S 29
  15509. #define NVIC_PRI20_INTC_S 21
  15510. #define NVIC_PRI20_INTB_S 13
  15511. #define NVIC_PRI20_INTA_S 5
  15512. //*****************************************************************************
  15513. //
  15514. // The following are defines for the bit fields in the NVIC_PRI21 register.
  15515. //
  15516. //*****************************************************************************
  15517. #define NVIC_PRI21_INTD_M 0xE0000000 // Interrupt 87 Priority Mask
  15518. #define NVIC_PRI21_INTC_M 0x00E00000 // Interrupt 86 Priority Mask
  15519. #define NVIC_PRI21_INTB_M 0x0000E000 // Interrupt 85 Priority Mask
  15520. #define NVIC_PRI21_INTA_M 0x000000E0 // Interrupt 84 Priority Mask
  15521. #define NVIC_PRI21_INTD_S 29
  15522. #define NVIC_PRI21_INTC_S 21
  15523. #define NVIC_PRI21_INTB_S 13
  15524. #define NVIC_PRI21_INTA_S 5
  15525. //*****************************************************************************
  15526. //
  15527. // The following are defines for the bit fields in the NVIC_PRI22 register.
  15528. //
  15529. //*****************************************************************************
  15530. #define NVIC_PRI22_INTD_M 0xE0000000 // Interrupt 91 Priority Mask
  15531. #define NVIC_PRI22_INTC_M 0x00E00000 // Interrupt 90 Priority Mask
  15532. #define NVIC_PRI22_INTB_M 0x0000E000 // Interrupt 89 Priority Mask
  15533. #define NVIC_PRI22_INTA_M 0x000000E0 // Interrupt 88 Priority Mask
  15534. #define NVIC_PRI22_INTD_S 29
  15535. #define NVIC_PRI22_INTC_S 21
  15536. #define NVIC_PRI22_INTB_S 13
  15537. #define NVIC_PRI22_INTA_S 5
  15538. //*****************************************************************************
  15539. //
  15540. // The following are defines for the bit fields in the NVIC_PRI23 register.
  15541. //
  15542. //*****************************************************************************
  15543. #define NVIC_PRI23_INTD_M 0xE0000000 // Interrupt 95 Priority Mask
  15544. #define NVIC_PRI23_INTC_M 0x00E00000 // Interrupt 94 Priority Mask
  15545. #define NVIC_PRI23_INTB_M 0x0000E000 // Interrupt 93 Priority Mask
  15546. #define NVIC_PRI23_INTA_M 0x000000E0 // Interrupt 92 Priority Mask
  15547. #define NVIC_PRI23_INTD_S 29
  15548. #define NVIC_PRI23_INTC_S 21
  15549. #define NVIC_PRI23_INTB_S 13
  15550. #define NVIC_PRI23_INTA_S 5
  15551. //*****************************************************************************
  15552. //
  15553. // The following are defines for the bit fields in the NVIC_PRI24 register.
  15554. //
  15555. //*****************************************************************************
  15556. #define NVIC_PRI24_INTD_M 0xE0000000 // Interrupt 99 Priority Mask
  15557. #define NVIC_PRI24_INTC_M 0x00E00000 // Interrupt 98 Priority Mask
  15558. #define NVIC_PRI24_INTB_M 0x0000E000 // Interrupt 97 Priority Mask
  15559. #define NVIC_PRI24_INTA_M 0x000000E0 // Interrupt 96 Priority Mask
  15560. #define NVIC_PRI24_INTD_S 29
  15561. #define NVIC_PRI24_INTC_S 21
  15562. #define NVIC_PRI24_INTB_S 13
  15563. #define NVIC_PRI24_INTA_S 5
  15564. //*****************************************************************************
  15565. //
  15566. // The following are defines for the bit fields in the NVIC_PRI25 register.
  15567. //
  15568. //*****************************************************************************
  15569. #define NVIC_PRI25_INTD_M 0xE0000000 // Interrupt 103 Priority Mask
  15570. #define NVIC_PRI25_INTC_M 0x00E00000 // Interrupt 102 Priority Mask
  15571. #define NVIC_PRI25_INTB_M 0x0000E000 // Interrupt 101 Priority Mask
  15572. #define NVIC_PRI25_INTA_M 0x000000E0 // Interrupt 100 Priority Mask
  15573. #define NVIC_PRI25_INTD_S 29
  15574. #define NVIC_PRI25_INTC_S 21
  15575. #define NVIC_PRI25_INTB_S 13
  15576. #define NVIC_PRI25_INTA_S 5
  15577. //*****************************************************************************
  15578. //
  15579. // The following are defines for the bit fields in the NVIC_PRI26 register.
  15580. //
  15581. //*****************************************************************************
  15582. #define NVIC_PRI26_INTD_M 0xE0000000 // Interrupt 107 Priority Mask
  15583. #define NVIC_PRI26_INTC_M 0x00E00000 // Interrupt 106 Priority Mask
  15584. #define NVIC_PRI26_INTB_M 0x0000E000 // Interrupt 105 Priority Mask
  15585. #define NVIC_PRI26_INTA_M 0x000000E0 // Interrupt 104 Priority Mask
  15586. #define NVIC_PRI26_INTD_S 29
  15587. #define NVIC_PRI26_INTC_S 21
  15588. #define NVIC_PRI26_INTB_S 13
  15589. #define NVIC_PRI26_INTA_S 5
  15590. //*****************************************************************************
  15591. //
  15592. // The following are defines for the bit fields in the NVIC_PRI27 register.
  15593. //
  15594. //*****************************************************************************
  15595. #define NVIC_PRI27_INTD_M 0xE0000000 // Interrupt 111 Priority Mask
  15596. #define NVIC_PRI27_INTC_M 0x00E00000 // Interrupt 110 Priority Mask
  15597. #define NVIC_PRI27_INTB_M 0x0000E000 // Interrupt 109 Priority Mask
  15598. #define NVIC_PRI27_INTA_M 0x000000E0 // Interrupt 108 Priority Mask
  15599. #define NVIC_PRI27_INTD_S 29
  15600. #define NVIC_PRI27_INTC_S 21
  15601. #define NVIC_PRI27_INTB_S 13
  15602. #define NVIC_PRI27_INTA_S 5
  15603. //*****************************************************************************
  15604. //
  15605. // The following are defines for the bit fields in the NVIC_PRI28 register.
  15606. //
  15607. //*****************************************************************************
  15608. #define NVIC_PRI28_INTD_M 0xE0000000 // Interrupt 115 Priority Mask
  15609. #define NVIC_PRI28_INTC_M 0x00E00000 // Interrupt 114 Priority Mask
  15610. #define NVIC_PRI28_INTB_M 0x0000E000 // Interrupt 113 Priority Mask
  15611. #define NVIC_PRI28_INTA_M 0x000000E0 // Interrupt 112 Priority Mask
  15612. #define NVIC_PRI28_INTD_S 29
  15613. #define NVIC_PRI28_INTC_S 21
  15614. #define NVIC_PRI28_INTB_S 13
  15615. #define NVIC_PRI28_INTA_S 5
  15616. //*****************************************************************************
  15617. //
  15618. // The following are defines for the bit fields in the NVIC_CPUID register.
  15619. //
  15620. //*****************************************************************************
  15621. #define NVIC_CPUID_IMP_M 0xFF000000 // Implementer Code
  15622. #define NVIC_CPUID_IMP_ARM 0x41000000 // ARM
  15623. #define NVIC_CPUID_VAR_M 0x00F00000 // Variant Number
  15624. #define NVIC_CPUID_CON_M 0x000F0000 // Constant
  15625. #define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Part Number
  15626. #define NVIC_CPUID_PARTNO_CM4 0x0000C240 // Cortex-M4 processor
  15627. #define NVIC_CPUID_REV_M 0x0000000F // Revision Number
  15628. //*****************************************************************************
  15629. //
  15630. // The following are defines for the bit fields in the NVIC_INT_CTRL register.
  15631. //
  15632. //*****************************************************************************
  15633. #define NVIC_INT_CTRL_NMI_SET 0x80000000 // NMI Set Pending
  15634. #define NVIC_INT_CTRL_PEND_SV 0x10000000 // PendSV Set Pending
  15635. #define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // PendSV Clear Pending
  15636. #define NVIC_INT_CTRL_PENDSTSET 0x04000000 // SysTick Set Pending
  15637. #define NVIC_INT_CTRL_PENDSTCLR 0x02000000 // SysTick Clear Pending
  15638. #define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug Interrupt Handling
  15639. #define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Interrupt Pending
  15640. #define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000 // Interrupt Pending Vector Number
  15641. #define NVIC_INT_CTRL_VEC_PEN_NMI \
  15642. 0x00002000 // NMI
  15643. #define NVIC_INT_CTRL_VEC_PEN_HARD \
  15644. 0x00003000 // Hard fault
  15645. #define NVIC_INT_CTRL_VEC_PEN_MEM \
  15646. 0x00004000 // Memory management fault
  15647. #define NVIC_INT_CTRL_VEC_PEN_BUS \
  15648. 0x00005000 // Bus fault
  15649. #define NVIC_INT_CTRL_VEC_PEN_USG \
  15650. 0x00006000 // Usage fault
  15651. #define NVIC_INT_CTRL_VEC_PEN_SVC \
  15652. 0x0000B000 // SVCall
  15653. #define NVIC_INT_CTRL_VEC_PEN_PNDSV \
  15654. 0x0000E000 // PendSV
  15655. #define NVIC_INT_CTRL_VEC_PEN_TICK \
  15656. 0x0000F000 // SysTick
  15657. #define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to Base
  15658. #define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF // Interrupt Pending Vector Number
  15659. #define NVIC_INT_CTRL_VEC_ACT_S 0
  15660. //*****************************************************************************
  15661. //
  15662. // The following are defines for the bit fields in the NVIC_VTABLE register.
  15663. //
  15664. //*****************************************************************************
  15665. #define NVIC_VTABLE_OFFSET_M 0xFFFFFC00 // Vector Table Offset
  15666. #define NVIC_VTABLE_OFFSET_S 10
  15667. //*****************************************************************************
  15668. //
  15669. // The following are defines for the bit fields in the NVIC_APINT register.
  15670. //
  15671. //*****************************************************************************
  15672. #define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Register Key
  15673. #define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
  15674. #define NVIC_APINT_ENDIANESS 0x00008000 // Data Endianess
  15675. #define NVIC_APINT_PRIGROUP_M 0x00000700 // Interrupt Priority Grouping
  15676. #define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
  15677. #define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
  15678. #define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
  15679. #define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
  15680. #define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
  15681. #define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
  15682. #define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
  15683. #define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
  15684. #define NVIC_APINT_SYSRESETREQ 0x00000004 // System Reset Request
  15685. #define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear Active NMI / Fault
  15686. #define NVIC_APINT_VECT_RESET 0x00000001 // System Reset
  15687. //*****************************************************************************
  15688. //
  15689. // The following are defines for the bit fields in the NVIC_SYS_CTRL register.
  15690. //
  15691. //*****************************************************************************
  15692. #define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wake Up on Pending
  15693. #define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep Sleep Enable
  15694. #define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR Exit
  15695. //*****************************************************************************
  15696. //
  15697. // The following are defines for the bit fields in the NVIC_CFG_CTRL register.
  15698. //
  15699. //*****************************************************************************
  15700. #define NVIC_CFG_CTRL_STKALIGN 0x00000200 // Stack Alignment on Exception
  15701. // Entry
  15702. #define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore Bus Fault in NMI and
  15703. // Fault
  15704. #define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on Divide by 0
  15705. #define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on Unaligned Access
  15706. #define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow Main Interrupt Trigger
  15707. #define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread State Control
  15708. //*****************************************************************************
  15709. //
  15710. // The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
  15711. //
  15712. //*****************************************************************************
  15713. #define NVIC_SYS_PRI1_USAGE_M 0x00E00000 // Usage Fault Priority
  15714. #define NVIC_SYS_PRI1_BUS_M 0x0000E000 // Bus Fault Priority
  15715. #define NVIC_SYS_PRI1_MEM_M 0x000000E0 // Memory Management Fault Priority
  15716. #define NVIC_SYS_PRI1_USAGE_S 21
  15717. #define NVIC_SYS_PRI1_BUS_S 13
  15718. #define NVIC_SYS_PRI1_MEM_S 5
  15719. //*****************************************************************************
  15720. //
  15721. // The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
  15722. //
  15723. //*****************************************************************************
  15724. #define NVIC_SYS_PRI2_SVC_M 0xE0000000 // SVCall Priority
  15725. #define NVIC_SYS_PRI2_SVC_S 29
  15726. //*****************************************************************************
  15727. //
  15728. // The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
  15729. //
  15730. //*****************************************************************************
  15731. #define NVIC_SYS_PRI3_TICK_M 0xE0000000 // SysTick Exception Priority
  15732. #define NVIC_SYS_PRI3_PENDSV_M 0x00E00000 // PendSV Priority
  15733. #define NVIC_SYS_PRI3_DEBUG_M 0x000000E0 // Debug Priority
  15734. #define NVIC_SYS_PRI3_TICK_S 29
  15735. #define NVIC_SYS_PRI3_PENDSV_S 21
  15736. #define NVIC_SYS_PRI3_DEBUG_S 5
  15737. //*****************************************************************************
  15738. //
  15739. // The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
  15740. // register.
  15741. //
  15742. //*****************************************************************************
  15743. #define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage Fault Enable
  15744. #define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus Fault Enable
  15745. #define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Memory Management Fault Enable
  15746. #define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVC Call Pending
  15747. #define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus Fault Pending
  15748. #define NVIC_SYS_HND_CTRL_MEMP 0x00002000 // Memory Management Fault Pending
  15749. #define NVIC_SYS_HND_CTRL_USAGEP \
  15750. 0x00001000 // Usage Fault Pending
  15751. #define NVIC_SYS_HND_CTRL_TICK 0x00000800 // SysTick Exception Active
  15752. #define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV Exception Active
  15753. #define NVIC_SYS_HND_CTRL_MON 0x00000100 // Debug Monitor Active
  15754. #define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVC Call Active
  15755. #define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage Fault Active
  15756. #define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus Fault Active
  15757. #define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Memory Management Fault Active
  15758. //*****************************************************************************
  15759. //
  15760. // The following are defines for the bit fields in the NVIC_FAULT_STAT
  15761. // register.
  15762. //
  15763. //*****************************************************************************
  15764. #define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide-by-Zero Usage Fault
  15765. #define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned Access Usage Fault
  15766. #define NVIC_FAULT_STAT_NOCP 0x00080000 // No Coprocessor Usage Fault
  15767. #define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC Load Usage Fault
  15768. #define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid State Usage Fault
  15769. #define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined Instruction Usage
  15770. // Fault
  15771. #define NVIC_FAULT_STAT_BFARV 0x00008000 // Bus Fault Address Register Valid
  15772. #define NVIC_FAULT_STAT_BLSPERR 0x00002000 // Bus Fault on Floating-Point Lazy
  15773. // State Preservation
  15774. #define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack Bus Fault
  15775. #define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack Bus Fault
  15776. #define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise Data Bus Error
  15777. #define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise Data Bus Error
  15778. #define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction Bus Error
  15779. #define NVIC_FAULT_STAT_MMARV 0x00000080 // Memory Management Fault Address
  15780. // Register Valid
  15781. #define NVIC_FAULT_STAT_MLSPERR 0x00000020 // Memory Management Fault on
  15782. // Floating-Point Lazy State
  15783. // Preservation
  15784. #define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack Access Violation
  15785. #define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack Access Violation
  15786. #define NVIC_FAULT_STAT_DERR 0x00000002 // Data Access Violation
  15787. #define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction Access Violation
  15788. //*****************************************************************************
  15789. //
  15790. // The following are defines for the bit fields in the NVIC_HFAULT_STAT
  15791. // register.
  15792. //
  15793. //*****************************************************************************
  15794. #define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug Event
  15795. #define NVIC_HFAULT_STAT_FORCED 0x40000000 // Forced Hard Fault
  15796. #define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector Table Read Fault
  15797. //*****************************************************************************
  15798. //
  15799. // The following are defines for the bit fields in the NVIC_DEBUG_STAT
  15800. // register.
  15801. //
  15802. //*****************************************************************************
  15803. #define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
  15804. #define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
  15805. #define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
  15806. #define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
  15807. #define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
  15808. //*****************************************************************************
  15809. //
  15810. // The following are defines for the bit fields in the NVIC_MM_ADDR register.
  15811. //
  15812. //*****************************************************************************
  15813. #define NVIC_MM_ADDR_M 0xFFFFFFFF // Fault Address
  15814. #define NVIC_MM_ADDR_S 0
  15815. //*****************************************************************************
  15816. //
  15817. // The following are defines for the bit fields in the NVIC_FAULT_ADDR
  15818. // register.
  15819. //
  15820. //*****************************************************************************
  15821. #define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Fault Address
  15822. #define NVIC_FAULT_ADDR_S 0
  15823. //*****************************************************************************
  15824. //
  15825. // The following are defines for the bit fields in the NVIC_CPAC register.
  15826. //
  15827. //*****************************************************************************
  15828. #define NVIC_CPAC_CP11_M 0x00C00000 // CP11 Coprocessor Access
  15829. // Privilege
  15830. #define NVIC_CPAC_CP11_DIS 0x00000000 // Access Denied
  15831. #define NVIC_CPAC_CP11_PRIV 0x00400000 // Privileged Access Only
  15832. #define NVIC_CPAC_CP11_FULL 0x00C00000 // Full Access
  15833. #define NVIC_CPAC_CP10_M 0x00300000 // CP10 Coprocessor Access
  15834. // Privilege
  15835. #define NVIC_CPAC_CP10_DIS 0x00000000 // Access Denied
  15836. #define NVIC_CPAC_CP10_PRIV 0x00100000 // Privileged Access Only
  15837. #define NVIC_CPAC_CP10_FULL 0x00300000 // Full Access
  15838. //*****************************************************************************
  15839. //
  15840. // The following are defines for the bit fields in the NVIC_MPU_TYPE register.
  15841. //
  15842. //*****************************************************************************
  15843. #define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I Regions
  15844. #define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D Regions
  15845. #define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or Unified MPU
  15846. #define NVIC_MPU_TYPE_IREGION_S 16
  15847. #define NVIC_MPU_TYPE_DREGION_S 8
  15848. //*****************************************************************************
  15849. //
  15850. // The following are defines for the bit fields in the NVIC_MPU_CTRL register.
  15851. //
  15852. //*****************************************************************************
  15853. #define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU Default Region
  15854. #define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU Enabled During Faults
  15855. #define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU Enable
  15856. //*****************************************************************************
  15857. //
  15858. // The following are defines for the bit fields in the NVIC_MPU_NUMBER
  15859. // register.
  15860. //
  15861. //*****************************************************************************
  15862. #define NVIC_MPU_NUMBER_M 0x00000007 // MPU Region to Access
  15863. #define NVIC_MPU_NUMBER_S 0
  15864. //*****************************************************************************
  15865. //
  15866. // The following are defines for the bit fields in the NVIC_MPU_BASE register.
  15867. //
  15868. //*****************************************************************************
  15869. #define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base Address Mask
  15870. #define NVIC_MPU_BASE_VALID 0x00000010 // Region Number Valid
  15871. #define NVIC_MPU_BASE_REGION_M 0x00000007 // Region Number
  15872. #define NVIC_MPU_BASE_ADDR_S 5
  15873. #define NVIC_MPU_BASE_REGION_S 0
  15874. //*****************************************************************************
  15875. //
  15876. // The following are defines for the bit fields in the NVIC_MPU_ATTR register.
  15877. //
  15878. //*****************************************************************************
  15879. #define NVIC_MPU_ATTR_XN 0x10000000 // Instruction Access Disable
  15880. #define NVIC_MPU_ATTR_AP_M 0x07000000 // Access Privilege
  15881. #define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type Extension Mask
  15882. #define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
  15883. #define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
  15884. #define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
  15885. #define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Subregion Disable Bits
  15886. #define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region Size Mask
  15887. #define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region Enable
  15888. //*****************************************************************************
  15889. //
  15890. // The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
  15891. //
  15892. //*****************************************************************************
  15893. #define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0 // Base Address Mask
  15894. #define NVIC_MPU_BASE1_VALID 0x00000010 // Region Number Valid
  15895. #define NVIC_MPU_BASE1_REGION_M 0x00000007 // Region Number
  15896. #define NVIC_MPU_BASE1_ADDR_S 5
  15897. #define NVIC_MPU_BASE1_REGION_S 0
  15898. //*****************************************************************************
  15899. //
  15900. // The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
  15901. //
  15902. //*****************************************************************************
  15903. #define NVIC_MPU_ATTR1_XN 0x10000000 // Instruction Access Disable
  15904. #define NVIC_MPU_ATTR1_AP_M 0x07000000 // Access Privilege
  15905. #define NVIC_MPU_ATTR1_TEX_M 0x00380000 // Type Extension Mask
  15906. #define NVIC_MPU_ATTR1_SHAREABLE \
  15907. 0x00040000 // Shareable
  15908. #define NVIC_MPU_ATTR1_CACHEABLE \
  15909. 0x00020000 // Cacheable
  15910. #define NVIC_MPU_ATTR1_BUFFRABLE \
  15911. 0x00010000 // Bufferable
  15912. #define NVIC_MPU_ATTR1_SRD_M 0x0000FF00 // Subregion Disable Bits
  15913. #define NVIC_MPU_ATTR1_SIZE_M 0x0000003E // Region Size Mask
  15914. #define NVIC_MPU_ATTR1_ENABLE 0x00000001 // Region Enable
  15915. //*****************************************************************************
  15916. //
  15917. // The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
  15918. //
  15919. //*****************************************************************************
  15920. #define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0 // Base Address Mask
  15921. #define NVIC_MPU_BASE2_VALID 0x00000010 // Region Number Valid
  15922. #define NVIC_MPU_BASE2_REGION_M 0x00000007 // Region Number
  15923. #define NVIC_MPU_BASE2_ADDR_S 5
  15924. #define NVIC_MPU_BASE2_REGION_S 0
  15925. //*****************************************************************************
  15926. //
  15927. // The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
  15928. //
  15929. //*****************************************************************************
  15930. #define NVIC_MPU_ATTR2_XN 0x10000000 // Instruction Access Disable
  15931. #define NVIC_MPU_ATTR2_AP_M 0x07000000 // Access Privilege
  15932. #define NVIC_MPU_ATTR2_TEX_M 0x00380000 // Type Extension Mask
  15933. #define NVIC_MPU_ATTR2_SHAREABLE \
  15934. 0x00040000 // Shareable
  15935. #define NVIC_MPU_ATTR2_CACHEABLE \
  15936. 0x00020000 // Cacheable
  15937. #define NVIC_MPU_ATTR2_BUFFRABLE \
  15938. 0x00010000 // Bufferable
  15939. #define NVIC_MPU_ATTR2_SRD_M 0x0000FF00 // Subregion Disable Bits
  15940. #define NVIC_MPU_ATTR2_SIZE_M 0x0000003E // Region Size Mask
  15941. #define NVIC_MPU_ATTR2_ENABLE 0x00000001 // Region Enable
  15942. //*****************************************************************************
  15943. //
  15944. // The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
  15945. //
  15946. //*****************************************************************************
  15947. #define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0 // Base Address Mask
  15948. #define NVIC_MPU_BASE3_VALID 0x00000010 // Region Number Valid
  15949. #define NVIC_MPU_BASE3_REGION_M 0x00000007 // Region Number
  15950. #define NVIC_MPU_BASE3_ADDR_S 5
  15951. #define NVIC_MPU_BASE3_REGION_S 0
  15952. //*****************************************************************************
  15953. //
  15954. // The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
  15955. //
  15956. //*****************************************************************************
  15957. #define NVIC_MPU_ATTR3_XN 0x10000000 // Instruction Access Disable
  15958. #define NVIC_MPU_ATTR3_AP_M 0x07000000 // Access Privilege
  15959. #define NVIC_MPU_ATTR3_TEX_M 0x00380000 // Type Extension Mask
  15960. #define NVIC_MPU_ATTR3_SHAREABLE \
  15961. 0x00040000 // Shareable
  15962. #define NVIC_MPU_ATTR3_CACHEABLE \
  15963. 0x00020000 // Cacheable
  15964. #define NVIC_MPU_ATTR3_BUFFRABLE \
  15965. 0x00010000 // Bufferable
  15966. #define NVIC_MPU_ATTR3_SRD_M 0x0000FF00 // Subregion Disable Bits
  15967. #define NVIC_MPU_ATTR3_SIZE_M 0x0000003E // Region Size Mask
  15968. #define NVIC_MPU_ATTR3_ENABLE 0x00000001 // Region Enable
  15969. //*****************************************************************************
  15970. //
  15971. // The following are defines for the bit fields in the NVIC_DBG_CTRL register.
  15972. //
  15973. //*****************************************************************************
  15974. #define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
  15975. #define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
  15976. #define NVIC_DBG_CTRL_S_RESET_ST \
  15977. 0x02000000 // Core has reset since last read
  15978. #define NVIC_DBG_CTRL_S_RETIRE_ST \
  15979. 0x01000000 // Core has executed insruction
  15980. // since last read
  15981. #define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
  15982. #define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
  15983. #define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
  15984. #define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
  15985. #define NVIC_DBG_CTRL_C_SNAPSTALL \
  15986. 0x00000020 // Breaks a stalled load/store
  15987. #define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
  15988. #define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
  15989. #define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
  15990. #define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
  15991. //*****************************************************************************
  15992. //
  15993. // The following are defines for the bit fields in the NVIC_DBG_XFER register.
  15994. //
  15995. //*****************************************************************************
  15996. #define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
  15997. #define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
  15998. #define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
  15999. #define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
  16000. #define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
  16001. #define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
  16002. #define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
  16003. #define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
  16004. #define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
  16005. #define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
  16006. #define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
  16007. #define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
  16008. #define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
  16009. #define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
  16010. #define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
  16011. #define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
  16012. #define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
  16013. #define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
  16014. #define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
  16015. #define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
  16016. #define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
  16017. #define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
  16018. #define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
  16019. //*****************************************************************************
  16020. //
  16021. // The following are defines for the bit fields in the NVIC_DBG_DATA register.
  16022. //
  16023. //*****************************************************************************
  16024. #define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
  16025. #define NVIC_DBG_DATA_S 0
  16026. //*****************************************************************************
  16027. //
  16028. // The following are defines for the bit fields in the NVIC_DBG_INT register.
  16029. //
  16030. //*****************************************************************************
  16031. #define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
  16032. #define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
  16033. #define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
  16034. #define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
  16035. #define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
  16036. #define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
  16037. #define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
  16038. #define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
  16039. #define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
  16040. #define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
  16041. #define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
  16042. //*****************************************************************************
  16043. //
  16044. // The following are defines for the bit fields in the NVIC_SW_TRIG register.
  16045. //
  16046. //*****************************************************************************
  16047. #define NVIC_SW_TRIG_INTID_M 0x000000FF // Interrupt ID
  16048. #define NVIC_SW_TRIG_INTID_S 0
  16049. //*****************************************************************************
  16050. //
  16051. // The following are defines for the bit fields in the NVIC_FPCC register.
  16052. //
  16053. //*****************************************************************************
  16054. #define NVIC_FPCC_ASPEN 0x80000000 // Automatic State Preservation
  16055. // Enable
  16056. #define NVIC_FPCC_LSPEN 0x40000000 // Lazy State Preservation Enable
  16057. #define NVIC_FPCC_MONRDY 0x00000100 // Monitor Ready
  16058. #define NVIC_FPCC_BFRDY 0x00000040 // Bus Fault Ready
  16059. #define NVIC_FPCC_MMRDY 0x00000020 // Memory Management Fault Ready
  16060. #define NVIC_FPCC_HFRDY 0x00000010 // Hard Fault Ready
  16061. #define NVIC_FPCC_THREAD 0x00000008 // Thread Mode
  16062. #define NVIC_FPCC_USER 0x00000002 // User Privilege Level
  16063. #define NVIC_FPCC_LSPACT 0x00000001 // Lazy State Preservation Active
  16064. //*****************************************************************************
  16065. //
  16066. // The following are defines for the bit fields in the NVIC_FPCA register.
  16067. //
  16068. //*****************************************************************************
  16069. #define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8 // Address
  16070. #define NVIC_FPCA_ADDRESS_S 3
  16071. //*****************************************************************************
  16072. //
  16073. // The following are defines for the bit fields in the NVIC_FPDSC register.
  16074. //
  16075. //*****************************************************************************
  16076. #define NVIC_FPDSC_AHP 0x04000000 // AHP Bit Default
  16077. #define NVIC_FPDSC_DN 0x02000000 // DN Bit Default
  16078. #define NVIC_FPDSC_FZ 0x01000000 // FZ Bit Default
  16079. #define NVIC_FPDSC_RMODE_M 0x00C00000 // RMODE Bit Default
  16080. #define NVIC_FPDSC_RMODE_RN 0x00000000 // Round to Nearest (RN) mode
  16081. #define NVIC_FPDSC_RMODE_RP 0x00400000 // Round towards Plus Infinity (RP)
  16082. // mode
  16083. #define NVIC_FPDSC_RMODE_RM 0x00800000 // Round towards Minus Infinity
  16084. // (RM) mode
  16085. #define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
  16086. //*****************************************************************************
  16087. //
  16088. // The following definitions are deprecated.
  16089. //
  16090. //*****************************************************************************
  16091. #ifndef DEPRECATED
  16092. #define SYSCTL_DID0_CLASS_SNOWFLAKE \
  16093. 0x000A0000 // Tiva(TM) C Series TM4C129-class
  16094. // microcontrollers
  16095. //*****************************************************************************
  16096. //
  16097. // Deprecated defines for the bit fields in the SYSCTL_PWRTC register.
  16098. //
  16099. //*****************************************************************************
  16100. #define SYSCTL_PWRTC_VDDA_UBOR0 0x00000010 // VDDA Under BOR0 Status
  16101. #define SYSCTL_PWRTC_VDD_UBOR0 0x00000001 // VDD Under BOR0 Status
  16102. #endif
  16103. #endif // __TM4C129XNCZAD_H__