tm4c1294ncpdt.h 836 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610
  1. //*****************************************************************************
  2. //
  3. // tm4c1294ncpdt.h - TM4C1294NCPDT Register Definitions
  4. //
  5. // Copyright (c) 2013-2020 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.2.0.295 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __TM4C1294NCPDT_H__
  40. #define __TM4C1294NCPDT_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_TIMER6A 114 // 16/32-Bit Timer 6A
  137. #define INT_TIMER6B 115 // 16/32-Bit Timer 6B
  138. #define INT_TIMER7A 116 // 16/32-Bit Timer 7A
  139. #define INT_TIMER7B 117 // 16/32-Bit Timer 7B
  140. #define INT_I2C6 118 // I2C 6
  141. #define INT_I2C7 119 // I2C 7
  142. #define INT_I2C8 125 // I2C 8
  143. #define INT_I2C9 126 // I2C 9
  144. //*****************************************************************************
  145. //
  146. // Watchdog Timer registers (WATCHDOG0)
  147. //
  148. //*****************************************************************************
  149. #define WATCHDOG0_LOAD_R (*((volatile uint32_t *)0x40000000))
  150. #define WATCHDOG0_VALUE_R (*((volatile uint32_t *)0x40000004))
  151. #define WATCHDOG0_CTL_R (*((volatile uint32_t *)0x40000008))
  152. #define WATCHDOG0_ICR_R (*((volatile uint32_t *)0x4000000C))
  153. #define WATCHDOG0_RIS_R (*((volatile uint32_t *)0x40000010))
  154. #define WATCHDOG0_MIS_R (*((volatile uint32_t *)0x40000014))
  155. #define WATCHDOG0_TEST_R (*((volatile uint32_t *)0x40000418))
  156. #define WATCHDOG0_LOCK_R (*((volatile uint32_t *)0x40000C00))
  157. //*****************************************************************************
  158. //
  159. // Watchdog Timer registers (WATCHDOG1)
  160. //
  161. //*****************************************************************************
  162. #define WATCHDOG1_LOAD_R (*((volatile uint32_t *)0x40001000))
  163. #define WATCHDOG1_VALUE_R (*((volatile uint32_t *)0x40001004))
  164. #define WATCHDOG1_CTL_R (*((volatile uint32_t *)0x40001008))
  165. #define WATCHDOG1_ICR_R (*((volatile uint32_t *)0x4000100C))
  166. #define WATCHDOG1_RIS_R (*((volatile uint32_t *)0x40001010))
  167. #define WATCHDOG1_MIS_R (*((volatile uint32_t *)0x40001014))
  168. #define WATCHDOG1_TEST_R (*((volatile uint32_t *)0x40001418))
  169. #define WATCHDOG1_LOCK_R (*((volatile uint32_t *)0x40001C00))
  170. //*****************************************************************************
  171. //
  172. // SSI registers (SSI0)
  173. //
  174. //*****************************************************************************
  175. #define SSI0_CR0_R (*((volatile uint32_t *)0x40008000))
  176. #define SSI0_CR1_R (*((volatile uint32_t *)0x40008004))
  177. #define SSI0_DR_R (*((volatile uint32_t *)0x40008008))
  178. #define SSI0_SR_R (*((volatile uint32_t *)0x4000800C))
  179. #define SSI0_CPSR_R (*((volatile uint32_t *)0x40008010))
  180. #define SSI0_IM_R (*((volatile uint32_t *)0x40008014))
  181. #define SSI0_RIS_R (*((volatile uint32_t *)0x40008018))
  182. #define SSI0_MIS_R (*((volatile uint32_t *)0x4000801C))
  183. #define SSI0_ICR_R (*((volatile uint32_t *)0x40008020))
  184. #define SSI0_DMACTL_R (*((volatile uint32_t *)0x40008024))
  185. #define SSI0_PP_R (*((volatile uint32_t *)0x40008FC0))
  186. #define SSI0_CC_R (*((volatile uint32_t *)0x40008FC8))
  187. //*****************************************************************************
  188. //
  189. // SSI registers (SSI1)
  190. //
  191. //*****************************************************************************
  192. #define SSI1_CR0_R (*((volatile uint32_t *)0x40009000))
  193. #define SSI1_CR1_R (*((volatile uint32_t *)0x40009004))
  194. #define SSI1_DR_R (*((volatile uint32_t *)0x40009008))
  195. #define SSI1_SR_R (*((volatile uint32_t *)0x4000900C))
  196. #define SSI1_CPSR_R (*((volatile uint32_t *)0x40009010))
  197. #define SSI1_IM_R (*((volatile uint32_t *)0x40009014))
  198. #define SSI1_RIS_R (*((volatile uint32_t *)0x40009018))
  199. #define SSI1_MIS_R (*((volatile uint32_t *)0x4000901C))
  200. #define SSI1_ICR_R (*((volatile uint32_t *)0x40009020))
  201. #define SSI1_DMACTL_R (*((volatile uint32_t *)0x40009024))
  202. #define SSI1_PP_R (*((volatile uint32_t *)0x40009FC0))
  203. #define SSI1_CC_R (*((volatile uint32_t *)0x40009FC8))
  204. //*****************************************************************************
  205. //
  206. // SSI registers (SSI2)
  207. //
  208. //*****************************************************************************
  209. #define SSI2_CR0_R (*((volatile uint32_t *)0x4000A000))
  210. #define SSI2_CR1_R (*((volatile uint32_t *)0x4000A004))
  211. #define SSI2_DR_R (*((volatile uint32_t *)0x4000A008))
  212. #define SSI2_SR_R (*((volatile uint32_t *)0x4000A00C))
  213. #define SSI2_CPSR_R (*((volatile uint32_t *)0x4000A010))
  214. #define SSI2_IM_R (*((volatile uint32_t *)0x4000A014))
  215. #define SSI2_RIS_R (*((volatile uint32_t *)0x4000A018))
  216. #define SSI2_MIS_R (*((volatile uint32_t *)0x4000A01C))
  217. #define SSI2_ICR_R (*((volatile uint32_t *)0x4000A020))
  218. #define SSI2_DMACTL_R (*((volatile uint32_t *)0x4000A024))
  219. #define SSI2_PP_R (*((volatile uint32_t *)0x4000AFC0))
  220. #define SSI2_CC_R (*((volatile uint32_t *)0x4000AFC8))
  221. //*****************************************************************************
  222. //
  223. // SSI registers (SSI3)
  224. //
  225. //*****************************************************************************
  226. #define SSI3_CR0_R (*((volatile uint32_t *)0x4000B000))
  227. #define SSI3_CR1_R (*((volatile uint32_t *)0x4000B004))
  228. #define SSI3_DR_R (*((volatile uint32_t *)0x4000B008))
  229. #define SSI3_SR_R (*((volatile uint32_t *)0x4000B00C))
  230. #define SSI3_CPSR_R (*((volatile uint32_t *)0x4000B010))
  231. #define SSI3_IM_R (*((volatile uint32_t *)0x4000B014))
  232. #define SSI3_RIS_R (*((volatile uint32_t *)0x4000B018))
  233. #define SSI3_MIS_R (*((volatile uint32_t *)0x4000B01C))
  234. #define SSI3_ICR_R (*((volatile uint32_t *)0x4000B020))
  235. #define SSI3_DMACTL_R (*((volatile uint32_t *)0x4000B024))
  236. #define SSI3_PP_R (*((volatile uint32_t *)0x4000BFC0))
  237. #define SSI3_CC_R (*((volatile uint32_t *)0x4000BFC8))
  238. //*****************************************************************************
  239. //
  240. // UART registers (UART0)
  241. //
  242. //*****************************************************************************
  243. #define UART0_DR_R (*((volatile uint32_t *)0x4000C000))
  244. #define UART0_RSR_R (*((volatile uint32_t *)0x4000C004))
  245. #define UART0_ECR_R (*((volatile uint32_t *)0x4000C004))
  246. #define UART0_FR_R (*((volatile uint32_t *)0x4000C018))
  247. #define UART0_ILPR_R (*((volatile uint32_t *)0x4000C020))
  248. #define UART0_IBRD_R (*((volatile uint32_t *)0x4000C024))
  249. #define UART0_FBRD_R (*((volatile uint32_t *)0x4000C028))
  250. #define UART0_LCRH_R (*((volatile uint32_t *)0x4000C02C))
  251. #define UART0_CTL_R (*((volatile uint32_t *)0x4000C030))
  252. #define UART0_IFLS_R (*((volatile uint32_t *)0x4000C034))
  253. #define UART0_IM_R (*((volatile uint32_t *)0x4000C038))
  254. #define UART0_RIS_R (*((volatile uint32_t *)0x4000C03C))
  255. #define UART0_MIS_R (*((volatile uint32_t *)0x4000C040))
  256. #define UART0_ICR_R (*((volatile uint32_t *)0x4000C044))
  257. #define UART0_DMACTL_R (*((volatile uint32_t *)0x4000C048))
  258. #define UART0_9BITADDR_R (*((volatile uint32_t *)0x4000C0A4))
  259. #define UART0_9BITAMASK_R (*((volatile uint32_t *)0x4000C0A8))
  260. #define UART0_PP_R (*((volatile uint32_t *)0x4000CFC0))
  261. #define UART0_CC_R (*((volatile uint32_t *)0x4000CFC8))
  262. //*****************************************************************************
  263. //
  264. // UART registers (UART1)
  265. //
  266. //*****************************************************************************
  267. #define UART1_DR_R (*((volatile uint32_t *)0x4000D000))
  268. #define UART1_RSR_R (*((volatile uint32_t *)0x4000D004))
  269. #define UART1_ECR_R (*((volatile uint32_t *)0x4000D004))
  270. #define UART1_FR_R (*((volatile uint32_t *)0x4000D018))
  271. #define UART1_ILPR_R (*((volatile uint32_t *)0x4000D020))
  272. #define UART1_IBRD_R (*((volatile uint32_t *)0x4000D024))
  273. #define UART1_FBRD_R (*((volatile uint32_t *)0x4000D028))
  274. #define UART1_LCRH_R (*((volatile uint32_t *)0x4000D02C))
  275. #define UART1_CTL_R (*((volatile uint32_t *)0x4000D030))
  276. #define UART1_IFLS_R (*((volatile uint32_t *)0x4000D034))
  277. #define UART1_IM_R (*((volatile uint32_t *)0x4000D038))
  278. #define UART1_RIS_R (*((volatile uint32_t *)0x4000D03C))
  279. #define UART1_MIS_R (*((volatile uint32_t *)0x4000D040))
  280. #define UART1_ICR_R (*((volatile uint32_t *)0x4000D044))
  281. #define UART1_DMACTL_R (*((volatile uint32_t *)0x4000D048))
  282. #define UART1_9BITADDR_R (*((volatile uint32_t *)0x4000D0A4))
  283. #define UART1_9BITAMASK_R (*((volatile uint32_t *)0x4000D0A8))
  284. #define UART1_PP_R (*((volatile uint32_t *)0x4000DFC0))
  285. #define UART1_CC_R (*((volatile uint32_t *)0x4000DFC8))
  286. //*****************************************************************************
  287. //
  288. // UART registers (UART2)
  289. //
  290. //*****************************************************************************
  291. #define UART2_DR_R (*((volatile uint32_t *)0x4000E000))
  292. #define UART2_RSR_R (*((volatile uint32_t *)0x4000E004))
  293. #define UART2_ECR_R (*((volatile uint32_t *)0x4000E004))
  294. #define UART2_FR_R (*((volatile uint32_t *)0x4000E018))
  295. #define UART2_ILPR_R (*((volatile uint32_t *)0x4000E020))
  296. #define UART2_IBRD_R (*((volatile uint32_t *)0x4000E024))
  297. #define UART2_FBRD_R (*((volatile uint32_t *)0x4000E028))
  298. #define UART2_LCRH_R (*((volatile uint32_t *)0x4000E02C))
  299. #define UART2_CTL_R (*((volatile uint32_t *)0x4000E030))
  300. #define UART2_IFLS_R (*((volatile uint32_t *)0x4000E034))
  301. #define UART2_IM_R (*((volatile uint32_t *)0x4000E038))
  302. #define UART2_RIS_R (*((volatile uint32_t *)0x4000E03C))
  303. #define UART2_MIS_R (*((volatile uint32_t *)0x4000E040))
  304. #define UART2_ICR_R (*((volatile uint32_t *)0x4000E044))
  305. #define UART2_DMACTL_R (*((volatile uint32_t *)0x4000E048))
  306. #define UART2_9BITADDR_R (*((volatile uint32_t *)0x4000E0A4))
  307. #define UART2_9BITAMASK_R (*((volatile uint32_t *)0x4000E0A8))
  308. #define UART2_PP_R (*((volatile uint32_t *)0x4000EFC0))
  309. #define UART2_CC_R (*((volatile uint32_t *)0x4000EFC8))
  310. //*****************************************************************************
  311. //
  312. // UART registers (UART3)
  313. //
  314. //*****************************************************************************
  315. #define UART3_DR_R (*((volatile uint32_t *)0x4000F000))
  316. #define UART3_RSR_R (*((volatile uint32_t *)0x4000F004))
  317. #define UART3_ECR_R (*((volatile uint32_t *)0x4000F004))
  318. #define UART3_FR_R (*((volatile uint32_t *)0x4000F018))
  319. #define UART3_ILPR_R (*((volatile uint32_t *)0x4000F020))
  320. #define UART3_IBRD_R (*((volatile uint32_t *)0x4000F024))
  321. #define UART3_FBRD_R (*((volatile uint32_t *)0x4000F028))
  322. #define UART3_LCRH_R (*((volatile uint32_t *)0x4000F02C))
  323. #define UART3_CTL_R (*((volatile uint32_t *)0x4000F030))
  324. #define UART3_IFLS_R (*((volatile uint32_t *)0x4000F034))
  325. #define UART3_IM_R (*((volatile uint32_t *)0x4000F038))
  326. #define UART3_RIS_R (*((volatile uint32_t *)0x4000F03C))
  327. #define UART3_MIS_R (*((volatile uint32_t *)0x4000F040))
  328. #define UART3_ICR_R (*((volatile uint32_t *)0x4000F044))
  329. #define UART3_DMACTL_R (*((volatile uint32_t *)0x4000F048))
  330. #define UART3_9BITADDR_R (*((volatile uint32_t *)0x4000F0A4))
  331. #define UART3_9BITAMASK_R (*((volatile uint32_t *)0x4000F0A8))
  332. #define UART3_PP_R (*((volatile uint32_t *)0x4000FFC0))
  333. #define UART3_CC_R (*((volatile uint32_t *)0x4000FFC8))
  334. //*****************************************************************************
  335. //
  336. // UART registers (UART4)
  337. //
  338. //*****************************************************************************
  339. #define UART4_DR_R (*((volatile uint32_t *)0x40010000))
  340. #define UART4_RSR_R (*((volatile uint32_t *)0x40010004))
  341. #define UART4_ECR_R (*((volatile uint32_t *)0x40010004))
  342. #define UART4_FR_R (*((volatile uint32_t *)0x40010018))
  343. #define UART4_ILPR_R (*((volatile uint32_t *)0x40010020))
  344. #define UART4_IBRD_R (*((volatile uint32_t *)0x40010024))
  345. #define UART4_FBRD_R (*((volatile uint32_t *)0x40010028))
  346. #define UART4_LCRH_R (*((volatile uint32_t *)0x4001002C))
  347. #define UART4_CTL_R (*((volatile uint32_t *)0x40010030))
  348. #define UART4_IFLS_R (*((volatile uint32_t *)0x40010034))
  349. #define UART4_IM_R (*((volatile uint32_t *)0x40010038))
  350. #define UART4_RIS_R (*((volatile uint32_t *)0x4001003C))
  351. #define UART4_MIS_R (*((volatile uint32_t *)0x40010040))
  352. #define UART4_ICR_R (*((volatile uint32_t *)0x40010044))
  353. #define UART4_DMACTL_R (*((volatile uint32_t *)0x40010048))
  354. #define UART4_9BITADDR_R (*((volatile uint32_t *)0x400100A4))
  355. #define UART4_9BITAMASK_R (*((volatile uint32_t *)0x400100A8))
  356. #define UART4_PP_R (*((volatile uint32_t *)0x40010FC0))
  357. #define UART4_CC_R (*((volatile uint32_t *)0x40010FC8))
  358. //*****************************************************************************
  359. //
  360. // UART registers (UART5)
  361. //
  362. //*****************************************************************************
  363. #define UART5_DR_R (*((volatile uint32_t *)0x40011000))
  364. #define UART5_RSR_R (*((volatile uint32_t *)0x40011004))
  365. #define UART5_ECR_R (*((volatile uint32_t *)0x40011004))
  366. #define UART5_FR_R (*((volatile uint32_t *)0x40011018))
  367. #define UART5_ILPR_R (*((volatile uint32_t *)0x40011020))
  368. #define UART5_IBRD_R (*((volatile uint32_t *)0x40011024))
  369. #define UART5_FBRD_R (*((volatile uint32_t *)0x40011028))
  370. #define UART5_LCRH_R (*((volatile uint32_t *)0x4001102C))
  371. #define UART5_CTL_R (*((volatile uint32_t *)0x40011030))
  372. #define UART5_IFLS_R (*((volatile uint32_t *)0x40011034))
  373. #define UART5_IM_R (*((volatile uint32_t *)0x40011038))
  374. #define UART5_RIS_R (*((volatile uint32_t *)0x4001103C))
  375. #define UART5_MIS_R (*((volatile uint32_t *)0x40011040))
  376. #define UART5_ICR_R (*((volatile uint32_t *)0x40011044))
  377. #define UART5_DMACTL_R (*((volatile uint32_t *)0x40011048))
  378. #define UART5_9BITADDR_R (*((volatile uint32_t *)0x400110A4))
  379. #define UART5_9BITAMASK_R (*((volatile uint32_t *)0x400110A8))
  380. #define UART5_PP_R (*((volatile uint32_t *)0x40011FC0))
  381. #define UART5_CC_R (*((volatile uint32_t *)0x40011FC8))
  382. //*****************************************************************************
  383. //
  384. // UART registers (UART6)
  385. //
  386. //*****************************************************************************
  387. #define UART6_DR_R (*((volatile uint32_t *)0x40012000))
  388. #define UART6_RSR_R (*((volatile uint32_t *)0x40012004))
  389. #define UART6_ECR_R (*((volatile uint32_t *)0x40012004))
  390. #define UART6_FR_R (*((volatile uint32_t *)0x40012018))
  391. #define UART6_ILPR_R (*((volatile uint32_t *)0x40012020))
  392. #define UART6_IBRD_R (*((volatile uint32_t *)0x40012024))
  393. #define UART6_FBRD_R (*((volatile uint32_t *)0x40012028))
  394. #define UART6_LCRH_R (*((volatile uint32_t *)0x4001202C))
  395. #define UART6_CTL_R (*((volatile uint32_t *)0x40012030))
  396. #define UART6_IFLS_R (*((volatile uint32_t *)0x40012034))
  397. #define UART6_IM_R (*((volatile uint32_t *)0x40012038))
  398. #define UART6_RIS_R (*((volatile uint32_t *)0x4001203C))
  399. #define UART6_MIS_R (*((volatile uint32_t *)0x40012040))
  400. #define UART6_ICR_R (*((volatile uint32_t *)0x40012044))
  401. #define UART6_DMACTL_R (*((volatile uint32_t *)0x40012048))
  402. #define UART6_9BITADDR_R (*((volatile uint32_t *)0x400120A4))
  403. #define UART6_9BITAMASK_R (*((volatile uint32_t *)0x400120A8))
  404. #define UART6_PP_R (*((volatile uint32_t *)0x40012FC0))
  405. #define UART6_CC_R (*((volatile uint32_t *)0x40012FC8))
  406. //*****************************************************************************
  407. //
  408. // UART registers (UART7)
  409. //
  410. //*****************************************************************************
  411. #define UART7_DR_R (*((volatile uint32_t *)0x40013000))
  412. #define UART7_RSR_R (*((volatile uint32_t *)0x40013004))
  413. #define UART7_ECR_R (*((volatile uint32_t *)0x40013004))
  414. #define UART7_FR_R (*((volatile uint32_t *)0x40013018))
  415. #define UART7_ILPR_R (*((volatile uint32_t *)0x40013020))
  416. #define UART7_IBRD_R (*((volatile uint32_t *)0x40013024))
  417. #define UART7_FBRD_R (*((volatile uint32_t *)0x40013028))
  418. #define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C))
  419. #define UART7_CTL_R (*((volatile uint32_t *)0x40013030))
  420. #define UART7_IFLS_R (*((volatile uint32_t *)0x40013034))
  421. #define UART7_IM_R (*((volatile uint32_t *)0x40013038))
  422. #define UART7_RIS_R (*((volatile uint32_t *)0x4001303C))
  423. #define UART7_MIS_R (*((volatile uint32_t *)0x40013040))
  424. #define UART7_ICR_R (*((volatile uint32_t *)0x40013044))
  425. #define UART7_DMACTL_R (*((volatile uint32_t *)0x40013048))
  426. #define UART7_9BITADDR_R (*((volatile uint32_t *)0x400130A4))
  427. #define UART7_9BITAMASK_R (*((volatile uint32_t *)0x400130A8))
  428. #define UART7_PP_R (*((volatile uint32_t *)0x40013FC0))
  429. #define UART7_CC_R (*((volatile uint32_t *)0x40013FC8))
  430. //*****************************************************************************
  431. //
  432. // I2C registers (I2C0)
  433. //
  434. //*****************************************************************************
  435. #define I2C0_MSA_R (*((volatile uint32_t *)0x40020000))
  436. #define I2C0_MCS_R (*((volatile uint32_t *)0x40020004))
  437. #define I2C0_MDR_R (*((volatile uint32_t *)0x40020008))
  438. #define I2C0_MTPR_R (*((volatile uint32_t *)0x4002000C))
  439. #define I2C0_MIMR_R (*((volatile uint32_t *)0x40020010))
  440. #define I2C0_MRIS_R (*((volatile uint32_t *)0x40020014))
  441. #define I2C0_MMIS_R (*((volatile uint32_t *)0x40020018))
  442. #define I2C0_MICR_R (*((volatile uint32_t *)0x4002001C))
  443. #define I2C0_MCR_R (*((volatile uint32_t *)0x40020020))
  444. #define I2C0_MCLKOCNT_R (*((volatile uint32_t *)0x40020024))
  445. #define I2C0_MBMON_R (*((volatile uint32_t *)0x4002002C))
  446. #define I2C0_MBLEN_R (*((volatile uint32_t *)0x40020030))
  447. #define I2C0_MBCNT_R (*((volatile uint32_t *)0x40020034))
  448. #define I2C0_SOAR_R (*((volatile uint32_t *)0x40020800))
  449. #define I2C0_SCSR_R (*((volatile uint32_t *)0x40020804))
  450. #define I2C0_SDR_R (*((volatile uint32_t *)0x40020808))
  451. #define I2C0_SIMR_R (*((volatile uint32_t *)0x4002080C))
  452. #define I2C0_SRIS_R (*((volatile uint32_t *)0x40020810))
  453. #define I2C0_SMIS_R (*((volatile uint32_t *)0x40020814))
  454. #define I2C0_SICR_R (*((volatile uint32_t *)0x40020818))
  455. #define I2C0_SOAR2_R (*((volatile uint32_t *)0x4002081C))
  456. #define I2C0_SACKCTL_R (*((volatile uint32_t *)0x40020820))
  457. #define I2C0_FIFODATA_R (*((volatile uint32_t *)0x40020F00))
  458. #define I2C0_FIFOCTL_R (*((volatile uint32_t *)0x40020F04))
  459. #define I2C0_FIFOSTATUS_R (*((volatile uint32_t *)0x40020F08))
  460. #define I2C0_PP_R (*((volatile uint32_t *)0x40020FC0))
  461. #define I2C0_PC_R (*((volatile uint32_t *)0x40020FC4))
  462. //*****************************************************************************
  463. //
  464. // I2C registers (I2C1)
  465. //
  466. //*****************************************************************************
  467. #define I2C1_MSA_R (*((volatile uint32_t *)0x40021000))
  468. #define I2C1_MCS_R (*((volatile uint32_t *)0x40021004))
  469. #define I2C1_MDR_R (*((volatile uint32_t *)0x40021008))
  470. #define I2C1_MTPR_R (*((volatile uint32_t *)0x4002100C))
  471. #define I2C1_MIMR_R (*((volatile uint32_t *)0x40021010))
  472. #define I2C1_MRIS_R (*((volatile uint32_t *)0x40021014))
  473. #define I2C1_MMIS_R (*((volatile uint32_t *)0x40021018))
  474. #define I2C1_MICR_R (*((volatile uint32_t *)0x4002101C))
  475. #define I2C1_MCR_R (*((volatile uint32_t *)0x40021020))
  476. #define I2C1_MCLKOCNT_R (*((volatile uint32_t *)0x40021024))
  477. #define I2C1_MBMON_R (*((volatile uint32_t *)0x4002102C))
  478. #define I2C1_MBLEN_R (*((volatile uint32_t *)0x40021030))
  479. #define I2C1_MBCNT_R (*((volatile uint32_t *)0x40021034))
  480. #define I2C1_SOAR_R (*((volatile uint32_t *)0x40021800))
  481. #define I2C1_SCSR_R (*((volatile uint32_t *)0x40021804))
  482. #define I2C1_SDR_R (*((volatile uint32_t *)0x40021808))
  483. #define I2C1_SIMR_R (*((volatile uint32_t *)0x4002180C))
  484. #define I2C1_SRIS_R (*((volatile uint32_t *)0x40021810))
  485. #define I2C1_SMIS_R (*((volatile uint32_t *)0x40021814))
  486. #define I2C1_SICR_R (*((volatile uint32_t *)0x40021818))
  487. #define I2C1_SOAR2_R (*((volatile uint32_t *)0x4002181C))
  488. #define I2C1_SACKCTL_R (*((volatile uint32_t *)0x40021820))
  489. #define I2C1_FIFODATA_R (*((volatile uint32_t *)0x40021F00))
  490. #define I2C1_FIFOCTL_R (*((volatile uint32_t *)0x40021F04))
  491. #define I2C1_FIFOSTATUS_R (*((volatile uint32_t *)0x40021F08))
  492. #define I2C1_PP_R (*((volatile uint32_t *)0x40021FC0))
  493. #define I2C1_PC_R (*((volatile uint32_t *)0x40021FC4))
  494. //*****************************************************************************
  495. //
  496. // I2C registers (I2C2)
  497. //
  498. //*****************************************************************************
  499. #define I2C2_MSA_R (*((volatile uint32_t *)0x40022000))
  500. #define I2C2_MCS_R (*((volatile uint32_t *)0x40022004))
  501. #define I2C2_MDR_R (*((volatile uint32_t *)0x40022008))
  502. #define I2C2_MTPR_R (*((volatile uint32_t *)0x4002200C))
  503. #define I2C2_MIMR_R (*((volatile uint32_t *)0x40022010))
  504. #define I2C2_MRIS_R (*((volatile uint32_t *)0x40022014))
  505. #define I2C2_MMIS_R (*((volatile uint32_t *)0x40022018))
  506. #define I2C2_MICR_R (*((volatile uint32_t *)0x4002201C))
  507. #define I2C2_MCR_R (*((volatile uint32_t *)0x40022020))
  508. #define I2C2_MCLKOCNT_R (*((volatile uint32_t *)0x40022024))
  509. #define I2C2_MBMON_R (*((volatile uint32_t *)0x4002202C))
  510. #define I2C2_MBLEN_R (*((volatile uint32_t *)0x40022030))
  511. #define I2C2_MBCNT_R (*((volatile uint32_t *)0x40022034))
  512. #define I2C2_SOAR_R (*((volatile uint32_t *)0x40022800))
  513. #define I2C2_SCSR_R (*((volatile uint32_t *)0x40022804))
  514. #define I2C2_SDR_R (*((volatile uint32_t *)0x40022808))
  515. #define I2C2_SIMR_R (*((volatile uint32_t *)0x4002280C))
  516. #define I2C2_SRIS_R (*((volatile uint32_t *)0x40022810))
  517. #define I2C2_SMIS_R (*((volatile uint32_t *)0x40022814))
  518. #define I2C2_SICR_R (*((volatile uint32_t *)0x40022818))
  519. #define I2C2_SOAR2_R (*((volatile uint32_t *)0x4002281C))
  520. #define I2C2_SACKCTL_R (*((volatile uint32_t *)0x40022820))
  521. #define I2C2_FIFODATA_R (*((volatile uint32_t *)0x40022F00))
  522. #define I2C2_FIFOCTL_R (*((volatile uint32_t *)0x40022F04))
  523. #define I2C2_FIFOSTATUS_R (*((volatile uint32_t *)0x40022F08))
  524. #define I2C2_PP_R (*((volatile uint32_t *)0x40022FC0))
  525. #define I2C2_PC_R (*((volatile uint32_t *)0x40022FC4))
  526. //*****************************************************************************
  527. //
  528. // I2C registers (I2C3)
  529. //
  530. //*****************************************************************************
  531. #define I2C3_MSA_R (*((volatile uint32_t *)0x40023000))
  532. #define I2C3_MCS_R (*((volatile uint32_t *)0x40023004))
  533. #define I2C3_MDR_R (*((volatile uint32_t *)0x40023008))
  534. #define I2C3_MTPR_R (*((volatile uint32_t *)0x4002300C))
  535. #define I2C3_MIMR_R (*((volatile uint32_t *)0x40023010))
  536. #define I2C3_MRIS_R (*((volatile uint32_t *)0x40023014))
  537. #define I2C3_MMIS_R (*((volatile uint32_t *)0x40023018))
  538. #define I2C3_MICR_R (*((volatile uint32_t *)0x4002301C))
  539. #define I2C3_MCR_R (*((volatile uint32_t *)0x40023020))
  540. #define I2C3_MCLKOCNT_R (*((volatile uint32_t *)0x40023024))
  541. #define I2C3_MBMON_R (*((volatile uint32_t *)0x4002302C))
  542. #define I2C3_MBLEN_R (*((volatile uint32_t *)0x40023030))
  543. #define I2C3_MBCNT_R (*((volatile uint32_t *)0x40023034))
  544. #define I2C3_SOAR_R (*((volatile uint32_t *)0x40023800))
  545. #define I2C3_SCSR_R (*((volatile uint32_t *)0x40023804))
  546. #define I2C3_SDR_R (*((volatile uint32_t *)0x40023808))
  547. #define I2C3_SIMR_R (*((volatile uint32_t *)0x4002380C))
  548. #define I2C3_SRIS_R (*((volatile uint32_t *)0x40023810))
  549. #define I2C3_SMIS_R (*((volatile uint32_t *)0x40023814))
  550. #define I2C3_SICR_R (*((volatile uint32_t *)0x40023818))
  551. #define I2C3_SOAR2_R (*((volatile uint32_t *)0x4002381C))
  552. #define I2C3_SACKCTL_R (*((volatile uint32_t *)0x40023820))
  553. #define I2C3_FIFODATA_R (*((volatile uint32_t *)0x40023F00))
  554. #define I2C3_FIFOCTL_R (*((volatile uint32_t *)0x40023F04))
  555. #define I2C3_FIFOSTATUS_R (*((volatile uint32_t *)0x40023F08))
  556. #define I2C3_PP_R (*((volatile uint32_t *)0x40023FC0))
  557. #define I2C3_PC_R (*((volatile uint32_t *)0x40023FC4))
  558. //*****************************************************************************
  559. //
  560. // PWM registers (PWM0)
  561. //
  562. //*****************************************************************************
  563. #define PWM0_CTL_R (*((volatile uint32_t *)0x40028000))
  564. #define PWM0_SYNC_R (*((volatile uint32_t *)0x40028004))
  565. #define PWM0_ENABLE_R (*((volatile uint32_t *)0x40028008))
  566. #define PWM0_INVERT_R (*((volatile uint32_t *)0x4002800C))
  567. #define PWM0_FAULT_R (*((volatile uint32_t *)0x40028010))
  568. #define PWM0_INTEN_R (*((volatile uint32_t *)0x40028014))
  569. #define PWM0_RIS_R (*((volatile uint32_t *)0x40028018))
  570. #define PWM0_ISC_R (*((volatile uint32_t *)0x4002801C))
  571. #define PWM0_STATUS_R (*((volatile uint32_t *)0x40028020))
  572. #define PWM0_FAULTVAL_R (*((volatile uint32_t *)0x40028024))
  573. #define PWM0_ENUPD_R (*((volatile uint32_t *)0x40028028))
  574. #define PWM0_0_CTL_R (*((volatile uint32_t *)0x40028040))
  575. #define PWM0_0_INTEN_R (*((volatile uint32_t *)0x40028044))
  576. #define PWM0_0_RIS_R (*((volatile uint32_t *)0x40028048))
  577. #define PWM0_0_ISC_R (*((volatile uint32_t *)0x4002804C))
  578. #define PWM0_0_LOAD_R (*((volatile uint32_t *)0x40028050))
  579. #define PWM0_0_COUNT_R (*((volatile uint32_t *)0x40028054))
  580. #define PWM0_0_CMPA_R (*((volatile uint32_t *)0x40028058))
  581. #define PWM0_0_CMPB_R (*((volatile uint32_t *)0x4002805C))
  582. #define PWM0_0_GENA_R (*((volatile uint32_t *)0x40028060))
  583. #define PWM0_0_GENB_R (*((volatile uint32_t *)0x40028064))
  584. #define PWM0_0_DBCTL_R (*((volatile uint32_t *)0x40028068))
  585. #define PWM0_0_DBRISE_R (*((volatile uint32_t *)0x4002806C))
  586. #define PWM0_0_DBFALL_R (*((volatile uint32_t *)0x40028070))
  587. #define PWM0_0_FLTSRC0_R (*((volatile uint32_t *)0x40028074))
  588. #define PWM0_0_FLTSRC1_R (*((volatile uint32_t *)0x40028078))
  589. #define PWM0_0_MINFLTPER_R (*((volatile uint32_t *)0x4002807C))
  590. #define PWM0_1_CTL_R (*((volatile uint32_t *)0x40028080))
  591. #define PWM0_1_INTEN_R (*((volatile uint32_t *)0x40028084))
  592. #define PWM0_1_RIS_R (*((volatile uint32_t *)0x40028088))
  593. #define PWM0_1_ISC_R (*((volatile uint32_t *)0x4002808C))
  594. #define PWM0_1_LOAD_R (*((volatile uint32_t *)0x40028090))
  595. #define PWM0_1_COUNT_R (*((volatile uint32_t *)0x40028094))
  596. #define PWM0_1_CMPA_R (*((volatile uint32_t *)0x40028098))
  597. #define PWM0_1_CMPB_R (*((volatile uint32_t *)0x4002809C))
  598. #define PWM0_1_GENA_R (*((volatile uint32_t *)0x400280A0))
  599. #define PWM0_1_GENB_R (*((volatile uint32_t *)0x400280A4))
  600. #define PWM0_1_DBCTL_R (*((volatile uint32_t *)0x400280A8))
  601. #define PWM0_1_DBRISE_R (*((volatile uint32_t *)0x400280AC))
  602. #define PWM0_1_DBFALL_R (*((volatile uint32_t *)0x400280B0))
  603. #define PWM0_1_FLTSRC0_R (*((volatile uint32_t *)0x400280B4))
  604. #define PWM0_1_FLTSRC1_R (*((volatile uint32_t *)0x400280B8))
  605. #define PWM0_1_MINFLTPER_R (*((volatile uint32_t *)0x400280BC))
  606. #define PWM0_2_CTL_R (*((volatile uint32_t *)0x400280C0))
  607. #define PWM0_2_INTEN_R (*((volatile uint32_t *)0x400280C4))
  608. #define PWM0_2_RIS_R (*((volatile uint32_t *)0x400280C8))
  609. #define PWM0_2_ISC_R (*((volatile uint32_t *)0x400280CC))
  610. #define PWM0_2_LOAD_R (*((volatile uint32_t *)0x400280D0))
  611. #define PWM0_2_COUNT_R (*((volatile uint32_t *)0x400280D4))
  612. #define PWM0_2_CMPA_R (*((volatile uint32_t *)0x400280D8))
  613. #define PWM0_2_CMPB_R (*((volatile uint32_t *)0x400280DC))
  614. #define PWM0_2_GENA_R (*((volatile uint32_t *)0x400280E0))
  615. #define PWM0_2_GENB_R (*((volatile uint32_t *)0x400280E4))
  616. #define PWM0_2_DBCTL_R (*((volatile uint32_t *)0x400280E8))
  617. #define PWM0_2_DBRISE_R (*((volatile uint32_t *)0x400280EC))
  618. #define PWM0_2_DBFALL_R (*((volatile uint32_t *)0x400280F0))
  619. #define PWM0_2_FLTSRC0_R (*((volatile uint32_t *)0x400280F4))
  620. #define PWM0_2_FLTSRC1_R (*((volatile uint32_t *)0x400280F8))
  621. #define PWM0_2_MINFLTPER_R (*((volatile uint32_t *)0x400280FC))
  622. #define PWM0_3_CTL_R (*((volatile uint32_t *)0x40028100))
  623. #define PWM0_3_INTEN_R (*((volatile uint32_t *)0x40028104))
  624. #define PWM0_3_RIS_R (*((volatile uint32_t *)0x40028108))
  625. #define PWM0_3_ISC_R (*((volatile uint32_t *)0x4002810C))
  626. #define PWM0_3_LOAD_R (*((volatile uint32_t *)0x40028110))
  627. #define PWM0_3_COUNT_R (*((volatile uint32_t *)0x40028114))
  628. #define PWM0_3_CMPA_R (*((volatile uint32_t *)0x40028118))
  629. #define PWM0_3_CMPB_R (*((volatile uint32_t *)0x4002811C))
  630. #define PWM0_3_GENA_R (*((volatile uint32_t *)0x40028120))
  631. #define PWM0_3_GENB_R (*((volatile uint32_t *)0x40028124))
  632. #define PWM0_3_DBCTL_R (*((volatile uint32_t *)0x40028128))
  633. #define PWM0_3_DBRISE_R (*((volatile uint32_t *)0x4002812C))
  634. #define PWM0_3_DBFALL_R (*((volatile uint32_t *)0x40028130))
  635. #define PWM0_3_FLTSRC0_R (*((volatile uint32_t *)0x40028134))
  636. #define PWM0_3_FLTSRC1_R (*((volatile uint32_t *)0x40028138))
  637. #define PWM0_3_MINFLTPER_R (*((volatile uint32_t *)0x4002813C))
  638. #define PWM0_0_FLTSEN_R (*((volatile uint32_t *)0x40028800))
  639. #define PWM0_0_FLTSTAT0_R (*((volatile uint32_t *)0x40028804))
  640. #define PWM0_0_FLTSTAT1_R (*((volatile uint32_t *)0x40028808))
  641. #define PWM0_1_FLTSEN_R (*((volatile uint32_t *)0x40028880))
  642. #define PWM0_1_FLTSTAT0_R (*((volatile uint32_t *)0x40028884))
  643. #define PWM0_1_FLTSTAT1_R (*((volatile uint32_t *)0x40028888))
  644. #define PWM0_2_FLTSEN_R (*((volatile uint32_t *)0x40028900))
  645. #define PWM0_2_FLTSTAT0_R (*((volatile uint32_t *)0x40028904))
  646. #define PWM0_2_FLTSTAT1_R (*((volatile uint32_t *)0x40028908))
  647. #define PWM0_3_FLTSEN_R (*((volatile uint32_t *)0x40028980))
  648. #define PWM0_3_FLTSTAT0_R (*((volatile uint32_t *)0x40028984))
  649. #define PWM0_3_FLTSTAT1_R (*((volatile uint32_t *)0x40028988))
  650. #define PWM0_PP_R (*((volatile uint32_t *)0x40028FC0))
  651. #define PWM0_CC_R (*((volatile uint32_t *)0x40028FC8))
  652. //*****************************************************************************
  653. //
  654. // QEI registers (QEI0)
  655. //
  656. //*****************************************************************************
  657. #define QEI0_CTL_R (*((volatile uint32_t *)0x4002C000))
  658. #define QEI0_STAT_R (*((volatile uint32_t *)0x4002C004))
  659. #define QEI0_POS_R (*((volatile uint32_t *)0x4002C008))
  660. #define QEI0_MAXPOS_R (*((volatile uint32_t *)0x4002C00C))
  661. #define QEI0_LOAD_R (*((volatile uint32_t *)0x4002C010))
  662. #define QEI0_TIME_R (*((volatile uint32_t *)0x4002C014))
  663. #define QEI0_COUNT_R (*((volatile uint32_t *)0x4002C018))
  664. #define QEI0_SPEED_R (*((volatile uint32_t *)0x4002C01C))
  665. #define QEI0_INTEN_R (*((volatile uint32_t *)0x4002C020))
  666. #define QEI0_RIS_R (*((volatile uint32_t *)0x4002C024))
  667. #define QEI0_ISC_R (*((volatile uint32_t *)0x4002C028))
  668. //*****************************************************************************
  669. //
  670. // Timer registers (TIMER0)
  671. //
  672. //*****************************************************************************
  673. #define TIMER0_CFG_R (*((volatile uint32_t *)0x40030000))
  674. #define TIMER0_TAMR_R (*((volatile uint32_t *)0x40030004))
  675. #define TIMER0_TBMR_R (*((volatile uint32_t *)0x40030008))
  676. #define TIMER0_CTL_R (*((volatile uint32_t *)0x4003000C))
  677. #define TIMER0_SYNC_R (*((volatile uint32_t *)0x40030010))
  678. #define TIMER0_IMR_R (*((volatile uint32_t *)0x40030018))
  679. #define TIMER0_RIS_R (*((volatile uint32_t *)0x4003001C))
  680. #define TIMER0_MIS_R (*((volatile uint32_t *)0x40030020))
  681. #define TIMER0_ICR_R (*((volatile uint32_t *)0x40030024))
  682. #define TIMER0_TAILR_R (*((volatile uint32_t *)0x40030028))
  683. #define TIMER0_TBILR_R (*((volatile uint32_t *)0x4003002C))
  684. #define TIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40030030))
  685. #define TIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40030034))
  686. #define TIMER0_TAPR_R (*((volatile uint32_t *)0x40030038))
  687. #define TIMER0_TBPR_R (*((volatile uint32_t *)0x4003003C))
  688. #define TIMER0_TAPMR_R (*((volatile uint32_t *)0x40030040))
  689. #define TIMER0_TBPMR_R (*((volatile uint32_t *)0x40030044))
  690. #define TIMER0_TAR_R (*((volatile uint32_t *)0x40030048))
  691. #define TIMER0_TBR_R (*((volatile uint32_t *)0x4003004C))
  692. #define TIMER0_TAV_R (*((volatile uint32_t *)0x40030050))
  693. #define TIMER0_TBV_R (*((volatile uint32_t *)0x40030054))
  694. #define TIMER0_RTCPD_R (*((volatile uint32_t *)0x40030058))
  695. #define TIMER0_TAPS_R (*((volatile uint32_t *)0x4003005C))
  696. #define TIMER0_TBPS_R (*((volatile uint32_t *)0x40030060))
  697. #define TIMER0_DMAEV_R (*((volatile uint32_t *)0x4003006C))
  698. #define TIMER0_ADCEV_R (*((volatile uint32_t *)0x40030070))
  699. #define TIMER0_PP_R (*((volatile uint32_t *)0x40030FC0))
  700. #define TIMER0_CC_R (*((volatile uint32_t *)0x40030FC8))
  701. //*****************************************************************************
  702. //
  703. // Timer registers (TIMER1)
  704. //
  705. //*****************************************************************************
  706. #define TIMER1_CFG_R (*((volatile uint32_t *)0x40031000))
  707. #define TIMER1_TAMR_R (*((volatile uint32_t *)0x40031004))
  708. #define TIMER1_TBMR_R (*((volatile uint32_t *)0x40031008))
  709. #define TIMER1_CTL_R (*((volatile uint32_t *)0x4003100C))
  710. #define TIMER1_SYNC_R (*((volatile uint32_t *)0x40031010))
  711. #define TIMER1_IMR_R (*((volatile uint32_t *)0x40031018))
  712. #define TIMER1_RIS_R (*((volatile uint32_t *)0x4003101C))
  713. #define TIMER1_MIS_R (*((volatile uint32_t *)0x40031020))
  714. #define TIMER1_ICR_R (*((volatile uint32_t *)0x40031024))
  715. #define TIMER1_TAILR_R (*((volatile uint32_t *)0x40031028))
  716. #define TIMER1_TBILR_R (*((volatile uint32_t *)0x4003102C))
  717. #define TIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40031030))
  718. #define TIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40031034))
  719. #define TIMER1_TAPR_R (*((volatile uint32_t *)0x40031038))
  720. #define TIMER1_TBPR_R (*((volatile uint32_t *)0x4003103C))
  721. #define TIMER1_TAPMR_R (*((volatile uint32_t *)0x40031040))
  722. #define TIMER1_TBPMR_R (*((volatile uint32_t *)0x40031044))
  723. #define TIMER1_TAR_R (*((volatile uint32_t *)0x40031048))
  724. #define TIMER1_TBR_R (*((volatile uint32_t *)0x4003104C))
  725. #define TIMER1_TAV_R (*((volatile uint32_t *)0x40031050))
  726. #define TIMER1_TBV_R (*((volatile uint32_t *)0x40031054))
  727. #define TIMER1_RTCPD_R (*((volatile uint32_t *)0x40031058))
  728. #define TIMER1_TAPS_R (*((volatile uint32_t *)0x4003105C))
  729. #define TIMER1_TBPS_R (*((volatile uint32_t *)0x40031060))
  730. #define TIMER1_DMAEV_R (*((volatile uint32_t *)0x4003106C))
  731. #define TIMER1_ADCEV_R (*((volatile uint32_t *)0x40031070))
  732. #define TIMER1_PP_R (*((volatile uint32_t *)0x40031FC0))
  733. #define TIMER1_CC_R (*((volatile uint32_t *)0x40031FC8))
  734. //*****************************************************************************
  735. //
  736. // Timer registers (TIMER2)
  737. //
  738. //*****************************************************************************
  739. #define TIMER2_CFG_R (*((volatile uint32_t *)0x40032000))
  740. #define TIMER2_TAMR_R (*((volatile uint32_t *)0x40032004))
  741. #define TIMER2_TBMR_R (*((volatile uint32_t *)0x40032008))
  742. #define TIMER2_CTL_R (*((volatile uint32_t *)0x4003200C))
  743. #define TIMER2_SYNC_R (*((volatile uint32_t *)0x40032010))
  744. #define TIMER2_IMR_R (*((volatile uint32_t *)0x40032018))
  745. #define TIMER2_RIS_R (*((volatile uint32_t *)0x4003201C))
  746. #define TIMER2_MIS_R (*((volatile uint32_t *)0x40032020))
  747. #define TIMER2_ICR_R (*((volatile uint32_t *)0x40032024))
  748. #define TIMER2_TAILR_R (*((volatile uint32_t *)0x40032028))
  749. #define TIMER2_TBILR_R (*((volatile uint32_t *)0x4003202C))
  750. #define TIMER2_TAMATCHR_R (*((volatile uint32_t *)0x40032030))
  751. #define TIMER2_TBMATCHR_R (*((volatile uint32_t *)0x40032034))
  752. #define TIMER2_TAPR_R (*((volatile uint32_t *)0x40032038))
  753. #define TIMER2_TBPR_R (*((volatile uint32_t *)0x4003203C))
  754. #define TIMER2_TAPMR_R (*((volatile uint32_t *)0x40032040))
  755. #define TIMER2_TBPMR_R (*((volatile uint32_t *)0x40032044))
  756. #define TIMER2_TAR_R (*((volatile uint32_t *)0x40032048))
  757. #define TIMER2_TBR_R (*((volatile uint32_t *)0x4003204C))
  758. #define TIMER2_TAV_R (*((volatile uint32_t *)0x40032050))
  759. #define TIMER2_TBV_R (*((volatile uint32_t *)0x40032054))
  760. #define TIMER2_RTCPD_R (*((volatile uint32_t *)0x40032058))
  761. #define TIMER2_TAPS_R (*((volatile uint32_t *)0x4003205C))
  762. #define TIMER2_TBPS_R (*((volatile uint32_t *)0x40032060))
  763. #define TIMER2_DMAEV_R (*((volatile uint32_t *)0x4003206C))
  764. #define TIMER2_ADCEV_R (*((volatile uint32_t *)0x40032070))
  765. #define TIMER2_PP_R (*((volatile uint32_t *)0x40032FC0))
  766. #define TIMER2_CC_R (*((volatile uint32_t *)0x40032FC8))
  767. //*****************************************************************************
  768. //
  769. // Timer registers (TIMER3)
  770. //
  771. //*****************************************************************************
  772. #define TIMER3_CFG_R (*((volatile uint32_t *)0x40033000))
  773. #define TIMER3_TAMR_R (*((volatile uint32_t *)0x40033004))
  774. #define TIMER3_TBMR_R (*((volatile uint32_t *)0x40033008))
  775. #define TIMER3_CTL_R (*((volatile uint32_t *)0x4003300C))
  776. #define TIMER3_SYNC_R (*((volatile uint32_t *)0x40033010))
  777. #define TIMER3_IMR_R (*((volatile uint32_t *)0x40033018))
  778. #define TIMER3_RIS_R (*((volatile uint32_t *)0x4003301C))
  779. #define TIMER3_MIS_R (*((volatile uint32_t *)0x40033020))
  780. #define TIMER3_ICR_R (*((volatile uint32_t *)0x40033024))
  781. #define TIMER3_TAILR_R (*((volatile uint32_t *)0x40033028))
  782. #define TIMER3_TBILR_R (*((volatile uint32_t *)0x4003302C))
  783. #define TIMER3_TAMATCHR_R (*((volatile uint32_t *)0x40033030))
  784. #define TIMER3_TBMATCHR_R (*((volatile uint32_t *)0x40033034))
  785. #define TIMER3_TAPR_R (*((volatile uint32_t *)0x40033038))
  786. #define TIMER3_TBPR_R (*((volatile uint32_t *)0x4003303C))
  787. #define TIMER3_TAPMR_R (*((volatile uint32_t *)0x40033040))
  788. #define TIMER3_TBPMR_R (*((volatile uint32_t *)0x40033044))
  789. #define TIMER3_TAR_R (*((volatile uint32_t *)0x40033048))
  790. #define TIMER3_TBR_R (*((volatile uint32_t *)0x4003304C))
  791. #define TIMER3_TAV_R (*((volatile uint32_t *)0x40033050))
  792. #define TIMER3_TBV_R (*((volatile uint32_t *)0x40033054))
  793. #define TIMER3_RTCPD_R (*((volatile uint32_t *)0x40033058))
  794. #define TIMER3_TAPS_R (*((volatile uint32_t *)0x4003305C))
  795. #define TIMER3_TBPS_R (*((volatile uint32_t *)0x40033060))
  796. #define TIMER3_DMAEV_R (*((volatile uint32_t *)0x4003306C))
  797. #define TIMER3_ADCEV_R (*((volatile uint32_t *)0x40033070))
  798. #define TIMER3_PP_R (*((volatile uint32_t *)0x40033FC0))
  799. #define TIMER3_CC_R (*((volatile uint32_t *)0x40033FC8))
  800. //*****************************************************************************
  801. //
  802. // Timer registers (TIMER4)
  803. //
  804. //*****************************************************************************
  805. #define TIMER4_CFG_R (*((volatile uint32_t *)0x40034000))
  806. #define TIMER4_TAMR_R (*((volatile uint32_t *)0x40034004))
  807. #define TIMER4_TBMR_R (*((volatile uint32_t *)0x40034008))
  808. #define TIMER4_CTL_R (*((volatile uint32_t *)0x4003400C))
  809. #define TIMER4_SYNC_R (*((volatile uint32_t *)0x40034010))
  810. #define TIMER4_IMR_R (*((volatile uint32_t *)0x40034018))
  811. #define TIMER4_RIS_R (*((volatile uint32_t *)0x4003401C))
  812. #define TIMER4_MIS_R (*((volatile uint32_t *)0x40034020))
  813. #define TIMER4_ICR_R (*((volatile uint32_t *)0x40034024))
  814. #define TIMER4_TAILR_R (*((volatile uint32_t *)0x40034028))
  815. #define TIMER4_TBILR_R (*((volatile uint32_t *)0x4003402C))
  816. #define TIMER4_TAMATCHR_R (*((volatile uint32_t *)0x40034030))
  817. #define TIMER4_TBMATCHR_R (*((volatile uint32_t *)0x40034034))
  818. #define TIMER4_TAPR_R (*((volatile uint32_t *)0x40034038))
  819. #define TIMER4_TBPR_R (*((volatile uint32_t *)0x4003403C))
  820. #define TIMER4_TAPMR_R (*((volatile uint32_t *)0x40034040))
  821. #define TIMER4_TBPMR_R (*((volatile uint32_t *)0x40034044))
  822. #define TIMER4_TAR_R (*((volatile uint32_t *)0x40034048))
  823. #define TIMER4_TBR_R (*((volatile uint32_t *)0x4003404C))
  824. #define TIMER4_TAV_R (*((volatile uint32_t *)0x40034050))
  825. #define TIMER4_TBV_R (*((volatile uint32_t *)0x40034054))
  826. #define TIMER4_RTCPD_R (*((volatile uint32_t *)0x40034058))
  827. #define TIMER4_TAPS_R (*((volatile uint32_t *)0x4003405C))
  828. #define TIMER4_TBPS_R (*((volatile uint32_t *)0x40034060))
  829. #define TIMER4_DMAEV_R (*((volatile uint32_t *)0x4003406C))
  830. #define TIMER4_ADCEV_R (*((volatile uint32_t *)0x40034070))
  831. #define TIMER4_PP_R (*((volatile uint32_t *)0x40034FC0))
  832. #define TIMER4_CC_R (*((volatile uint32_t *)0x40034FC8))
  833. //*****************************************************************************
  834. //
  835. // Timer registers (TIMER5)
  836. //
  837. //*****************************************************************************
  838. #define TIMER5_CFG_R (*((volatile uint32_t *)0x40035000))
  839. #define TIMER5_TAMR_R (*((volatile uint32_t *)0x40035004))
  840. #define TIMER5_TBMR_R (*((volatile uint32_t *)0x40035008))
  841. #define TIMER5_CTL_R (*((volatile uint32_t *)0x4003500C))
  842. #define TIMER5_SYNC_R (*((volatile uint32_t *)0x40035010))
  843. #define TIMER5_IMR_R (*((volatile uint32_t *)0x40035018))
  844. #define TIMER5_RIS_R (*((volatile uint32_t *)0x4003501C))
  845. #define TIMER5_MIS_R (*((volatile uint32_t *)0x40035020))
  846. #define TIMER5_ICR_R (*((volatile uint32_t *)0x40035024))
  847. #define TIMER5_TAILR_R (*((volatile uint32_t *)0x40035028))
  848. #define TIMER5_TBILR_R (*((volatile uint32_t *)0x4003502C))
  849. #define TIMER5_TAMATCHR_R (*((volatile uint32_t *)0x40035030))
  850. #define TIMER5_TBMATCHR_R (*((volatile uint32_t *)0x40035034))
  851. #define TIMER5_TAPR_R (*((volatile uint32_t *)0x40035038))
  852. #define TIMER5_TBPR_R (*((volatile uint32_t *)0x4003503C))
  853. #define TIMER5_TAPMR_R (*((volatile uint32_t *)0x40035040))
  854. #define TIMER5_TBPMR_R (*((volatile uint32_t *)0x40035044))
  855. #define TIMER5_TAR_R (*((volatile uint32_t *)0x40035048))
  856. #define TIMER5_TBR_R (*((volatile uint32_t *)0x4003504C))
  857. #define TIMER5_TAV_R (*((volatile uint32_t *)0x40035050))
  858. #define TIMER5_TBV_R (*((volatile uint32_t *)0x40035054))
  859. #define TIMER5_RTCPD_R (*((volatile uint32_t *)0x40035058))
  860. #define TIMER5_TAPS_R (*((volatile uint32_t *)0x4003505C))
  861. #define TIMER5_TBPS_R (*((volatile uint32_t *)0x40035060))
  862. #define TIMER5_DMAEV_R (*((volatile uint32_t *)0x4003506C))
  863. #define TIMER5_ADCEV_R (*((volatile uint32_t *)0x40035070))
  864. #define TIMER5_PP_R (*((volatile uint32_t *)0x40035FC0))
  865. #define TIMER5_CC_R (*((volatile uint32_t *)0x40035FC8))
  866. //*****************************************************************************
  867. //
  868. // ADC registers (ADC0)
  869. //
  870. //*****************************************************************************
  871. #define ADC0_ACTSS_R (*((volatile uint32_t *)0x40038000))
  872. #define ADC0_RIS_R (*((volatile uint32_t *)0x40038004))
  873. #define ADC0_IM_R (*((volatile uint32_t *)0x40038008))
  874. #define ADC0_ISC_R (*((volatile uint32_t *)0x4003800C))
  875. #define ADC0_OSTAT_R (*((volatile uint32_t *)0x40038010))
  876. #define ADC0_EMUX_R (*((volatile uint32_t *)0x40038014))
  877. #define ADC0_USTAT_R (*((volatile uint32_t *)0x40038018))
  878. #define ADC0_TSSEL_R (*((volatile uint32_t *)0x4003801C))
  879. #define ADC0_SSPRI_R (*((volatile uint32_t *)0x40038020))
  880. #define ADC0_SPC_R (*((volatile uint32_t *)0x40038024))
  881. #define ADC0_PSSI_R (*((volatile uint32_t *)0x40038028))
  882. #define ADC0_SAC_R (*((volatile uint32_t *)0x40038030))
  883. #define ADC0_DCISC_R (*((volatile uint32_t *)0x40038034))
  884. #define ADC0_CTL_R (*((volatile uint32_t *)0x40038038))
  885. #define ADC0_SSMUX0_R (*((volatile uint32_t *)0x40038040))
  886. #define ADC0_SSCTL0_R (*((volatile uint32_t *)0x40038044))
  887. #define ADC0_SSFIFO0_R (*((volatile uint32_t *)0x40038048))
  888. #define ADC0_SSFSTAT0_R (*((volatile uint32_t *)0x4003804C))
  889. #define ADC0_SSOP0_R (*((volatile uint32_t *)0x40038050))
  890. #define ADC0_SSDC0_R (*((volatile uint32_t *)0x40038054))
  891. #define ADC0_SSEMUX0_R (*((volatile uint32_t *)0x40038058))
  892. #define ADC0_SSTSH0_R (*((volatile uint32_t *)0x4003805C))
  893. #define ADC0_SSMUX1_R (*((volatile uint32_t *)0x40038060))
  894. #define ADC0_SSCTL1_R (*((volatile uint32_t *)0x40038064))
  895. #define ADC0_SSFIFO1_R (*((volatile uint32_t *)0x40038068))
  896. #define ADC0_SSFSTAT1_R (*((volatile uint32_t *)0x4003806C))
  897. #define ADC0_SSOP1_R (*((volatile uint32_t *)0x40038070))
  898. #define ADC0_SSDC1_R (*((volatile uint32_t *)0x40038074))
  899. #define ADC0_SSEMUX1_R (*((volatile uint32_t *)0x40038078))
  900. #define ADC0_SSTSH1_R (*((volatile uint32_t *)0x4003807C))
  901. #define ADC0_SSMUX2_R (*((volatile uint32_t *)0x40038080))
  902. #define ADC0_SSCTL2_R (*((volatile uint32_t *)0x40038084))
  903. #define ADC0_SSFIFO2_R (*((volatile uint32_t *)0x40038088))
  904. #define ADC0_SSFSTAT2_R (*((volatile uint32_t *)0x4003808C))
  905. #define ADC0_SSOP2_R (*((volatile uint32_t *)0x40038090))
  906. #define ADC0_SSDC2_R (*((volatile uint32_t *)0x40038094))
  907. #define ADC0_SSEMUX2_R (*((volatile uint32_t *)0x40038098))
  908. #define ADC0_SSTSH2_R (*((volatile uint32_t *)0x4003809C))
  909. #define ADC0_SSMUX3_R (*((volatile uint32_t *)0x400380A0))
  910. #define ADC0_SSCTL3_R (*((volatile uint32_t *)0x400380A4))
  911. #define ADC0_SSFIFO3_R (*((volatile uint32_t *)0x400380A8))
  912. #define ADC0_SSFSTAT3_R (*((volatile uint32_t *)0x400380AC))
  913. #define ADC0_SSOP3_R (*((volatile uint32_t *)0x400380B0))
  914. #define ADC0_SSDC3_R (*((volatile uint32_t *)0x400380B4))
  915. #define ADC0_SSEMUX3_R (*((volatile uint32_t *)0x400380B8))
  916. #define ADC0_SSTSH3_R (*((volatile uint32_t *)0x400380BC))
  917. #define ADC0_DCRIC_R (*((volatile uint32_t *)0x40038D00))
  918. #define ADC0_DCCTL0_R (*((volatile uint32_t *)0x40038E00))
  919. #define ADC0_DCCTL1_R (*((volatile uint32_t *)0x40038E04))
  920. #define ADC0_DCCTL2_R (*((volatile uint32_t *)0x40038E08))
  921. #define ADC0_DCCTL3_R (*((volatile uint32_t *)0x40038E0C))
  922. #define ADC0_DCCTL4_R (*((volatile uint32_t *)0x40038E10))
  923. #define ADC0_DCCTL5_R (*((volatile uint32_t *)0x40038E14))
  924. #define ADC0_DCCTL6_R (*((volatile uint32_t *)0x40038E18))
  925. #define ADC0_DCCTL7_R (*((volatile uint32_t *)0x40038E1C))
  926. #define ADC0_DCCMP0_R (*((volatile uint32_t *)0x40038E40))
  927. #define ADC0_DCCMP1_R (*((volatile uint32_t *)0x40038E44))
  928. #define ADC0_DCCMP2_R (*((volatile uint32_t *)0x40038E48))
  929. #define ADC0_DCCMP3_R (*((volatile uint32_t *)0x40038E4C))
  930. #define ADC0_DCCMP4_R (*((volatile uint32_t *)0x40038E50))
  931. #define ADC0_DCCMP5_R (*((volatile uint32_t *)0x40038E54))
  932. #define ADC0_DCCMP6_R (*((volatile uint32_t *)0x40038E58))
  933. #define ADC0_DCCMP7_R (*((volatile uint32_t *)0x40038E5C))
  934. #define ADC0_PP_R (*((volatile uint32_t *)0x40038FC0))
  935. #define ADC0_PC_R (*((volatile uint32_t *)0x40038FC4))
  936. #define ADC0_CC_R (*((volatile uint32_t *)0x40038FC8))
  937. //*****************************************************************************
  938. //
  939. // ADC registers (ADC1)
  940. //
  941. //*****************************************************************************
  942. #define ADC1_ACTSS_R (*((volatile uint32_t *)0x40039000))
  943. #define ADC1_RIS_R (*((volatile uint32_t *)0x40039004))
  944. #define ADC1_IM_R (*((volatile uint32_t *)0x40039008))
  945. #define ADC1_ISC_R (*((volatile uint32_t *)0x4003900C))
  946. #define ADC1_OSTAT_R (*((volatile uint32_t *)0x40039010))
  947. #define ADC1_EMUX_R (*((volatile uint32_t *)0x40039014))
  948. #define ADC1_USTAT_R (*((volatile uint32_t *)0x40039018))
  949. #define ADC1_TSSEL_R (*((volatile uint32_t *)0x4003901C))
  950. #define ADC1_SSPRI_R (*((volatile uint32_t *)0x40039020))
  951. #define ADC1_SPC_R (*((volatile uint32_t *)0x40039024))
  952. #define ADC1_PSSI_R (*((volatile uint32_t *)0x40039028))
  953. #define ADC1_SAC_R (*((volatile uint32_t *)0x40039030))
  954. #define ADC1_DCISC_R (*((volatile uint32_t *)0x40039034))
  955. #define ADC1_CTL_R (*((volatile uint32_t *)0x40039038))
  956. #define ADC1_SSMUX0_R (*((volatile uint32_t *)0x40039040))
  957. #define ADC1_SSCTL0_R (*((volatile uint32_t *)0x40039044))
  958. #define ADC1_SSFIFO0_R (*((volatile uint32_t *)0x40039048))
  959. #define ADC1_SSFSTAT0_R (*((volatile uint32_t *)0x4003904C))
  960. #define ADC1_SSOP0_R (*((volatile uint32_t *)0x40039050))
  961. #define ADC1_SSDC0_R (*((volatile uint32_t *)0x40039054))
  962. #define ADC1_SSEMUX0_R (*((volatile uint32_t *)0x40039058))
  963. #define ADC1_SSTSH0_R (*((volatile uint32_t *)0x4003905C))
  964. #define ADC1_SSMUX1_R (*((volatile uint32_t *)0x40039060))
  965. #define ADC1_SSCTL1_R (*((volatile uint32_t *)0x40039064))
  966. #define ADC1_SSFIFO1_R (*((volatile uint32_t *)0x40039068))
  967. #define ADC1_SSFSTAT1_R (*((volatile uint32_t *)0x4003906C))
  968. #define ADC1_SSOP1_R (*((volatile uint32_t *)0x40039070))
  969. #define ADC1_SSDC1_R (*((volatile uint32_t *)0x40039074))
  970. #define ADC1_SSEMUX1_R (*((volatile uint32_t *)0x40039078))
  971. #define ADC1_SSTSH1_R (*((volatile uint32_t *)0x4003907C))
  972. #define ADC1_SSMUX2_R (*((volatile uint32_t *)0x40039080))
  973. #define ADC1_SSCTL2_R (*((volatile uint32_t *)0x40039084))
  974. #define ADC1_SSFIFO2_R (*((volatile uint32_t *)0x40039088))
  975. #define ADC1_SSFSTAT2_R (*((volatile uint32_t *)0x4003908C))
  976. #define ADC1_SSOP2_R (*((volatile uint32_t *)0x40039090))
  977. #define ADC1_SSDC2_R (*((volatile uint32_t *)0x40039094))
  978. #define ADC1_SSEMUX2_R (*((volatile uint32_t *)0x40039098))
  979. #define ADC1_SSTSH2_R (*((volatile uint32_t *)0x4003909C))
  980. #define ADC1_SSMUX3_R (*((volatile uint32_t *)0x400390A0))
  981. #define ADC1_SSCTL3_R (*((volatile uint32_t *)0x400390A4))
  982. #define ADC1_SSFIFO3_R (*((volatile uint32_t *)0x400390A8))
  983. #define ADC1_SSFSTAT3_R (*((volatile uint32_t *)0x400390AC))
  984. #define ADC1_SSOP3_R (*((volatile uint32_t *)0x400390B0))
  985. #define ADC1_SSDC3_R (*((volatile uint32_t *)0x400390B4))
  986. #define ADC1_SSEMUX3_R (*((volatile uint32_t *)0x400390B8))
  987. #define ADC1_SSTSH3_R (*((volatile uint32_t *)0x400390BC))
  988. #define ADC1_DCRIC_R (*((volatile uint32_t *)0x40039D00))
  989. #define ADC1_DCCTL0_R (*((volatile uint32_t *)0x40039E00))
  990. #define ADC1_DCCTL1_R (*((volatile uint32_t *)0x40039E04))
  991. #define ADC1_DCCTL2_R (*((volatile uint32_t *)0x40039E08))
  992. #define ADC1_DCCTL3_R (*((volatile uint32_t *)0x40039E0C))
  993. #define ADC1_DCCTL4_R (*((volatile uint32_t *)0x40039E10))
  994. #define ADC1_DCCTL5_R (*((volatile uint32_t *)0x40039E14))
  995. #define ADC1_DCCTL6_R (*((volatile uint32_t *)0x40039E18))
  996. #define ADC1_DCCTL7_R (*((volatile uint32_t *)0x40039E1C))
  997. #define ADC1_DCCMP0_R (*((volatile uint32_t *)0x40039E40))
  998. #define ADC1_DCCMP1_R (*((volatile uint32_t *)0x40039E44))
  999. #define ADC1_DCCMP2_R (*((volatile uint32_t *)0x40039E48))
  1000. #define ADC1_DCCMP3_R (*((volatile uint32_t *)0x40039E4C))
  1001. #define ADC1_DCCMP4_R (*((volatile uint32_t *)0x40039E50))
  1002. #define ADC1_DCCMP5_R (*((volatile uint32_t *)0x40039E54))
  1003. #define ADC1_DCCMP6_R (*((volatile uint32_t *)0x40039E58))
  1004. #define ADC1_DCCMP7_R (*((volatile uint32_t *)0x40039E5C))
  1005. #define ADC1_PP_R (*((volatile uint32_t *)0x40039FC0))
  1006. #define ADC1_PC_R (*((volatile uint32_t *)0x40039FC4))
  1007. #define ADC1_CC_R (*((volatile uint32_t *)0x40039FC8))
  1008. //*****************************************************************************
  1009. //
  1010. // Comparator registers (COMP)
  1011. //
  1012. //*****************************************************************************
  1013. #define COMP_ACMIS_R (*((volatile uint32_t *)0x4003C000))
  1014. #define COMP_ACRIS_R (*((volatile uint32_t *)0x4003C004))
  1015. #define COMP_ACINTEN_R (*((volatile uint32_t *)0x4003C008))
  1016. #define COMP_ACREFCTL_R (*((volatile uint32_t *)0x4003C010))
  1017. #define COMP_ACSTAT0_R (*((volatile uint32_t *)0x4003C020))
  1018. #define COMP_ACCTL0_R (*((volatile uint32_t *)0x4003C024))
  1019. #define COMP_ACSTAT1_R (*((volatile uint32_t *)0x4003C040))
  1020. #define COMP_ACCTL1_R (*((volatile uint32_t *)0x4003C044))
  1021. #define COMP_ACSTAT2_R (*((volatile uint32_t *)0x4003C060))
  1022. #define COMP_ACCTL2_R (*((volatile uint32_t *)0x4003C064))
  1023. #define COMP_PP_R (*((volatile uint32_t *)0x4003CFC0))
  1024. //*****************************************************************************
  1025. //
  1026. // CAN registers (CAN0)
  1027. //
  1028. //*****************************************************************************
  1029. #define CAN0_CTL_R (*((volatile uint32_t *)0x40040000))
  1030. #define CAN0_STS_R (*((volatile uint32_t *)0x40040004))
  1031. #define CAN0_ERR_R (*((volatile uint32_t *)0x40040008))
  1032. #define CAN0_BIT_R (*((volatile uint32_t *)0x4004000C))
  1033. #define CAN0_INT_R (*((volatile uint32_t *)0x40040010))
  1034. #define CAN0_TST_R (*((volatile uint32_t *)0x40040014))
  1035. #define CAN0_BRPE_R (*((volatile uint32_t *)0x40040018))
  1036. #define CAN0_IF1CRQ_R (*((volatile uint32_t *)0x40040020))
  1037. #define CAN0_IF1CMSK_R (*((volatile uint32_t *)0x40040024))
  1038. #define CAN0_IF1MSK1_R (*((volatile uint32_t *)0x40040028))
  1039. #define CAN0_IF1MSK2_R (*((volatile uint32_t *)0x4004002C))
  1040. #define CAN0_IF1ARB1_R (*((volatile uint32_t *)0x40040030))
  1041. #define CAN0_IF1ARB2_R (*((volatile uint32_t *)0x40040034))
  1042. #define CAN0_IF1MCTL_R (*((volatile uint32_t *)0x40040038))
  1043. #define CAN0_IF1DA1_R (*((volatile uint32_t *)0x4004003C))
  1044. #define CAN0_IF1DA2_R (*((volatile uint32_t *)0x40040040))
  1045. #define CAN0_IF1DB1_R (*((volatile uint32_t *)0x40040044))
  1046. #define CAN0_IF1DB2_R (*((volatile uint32_t *)0x40040048))
  1047. #define CAN0_IF2CRQ_R (*((volatile uint32_t *)0x40040080))
  1048. #define CAN0_IF2CMSK_R (*((volatile uint32_t *)0x40040084))
  1049. #define CAN0_IF2MSK1_R (*((volatile uint32_t *)0x40040088))
  1050. #define CAN0_IF2MSK2_R (*((volatile uint32_t *)0x4004008C))
  1051. #define CAN0_IF2ARB1_R (*((volatile uint32_t *)0x40040090))
  1052. #define CAN0_IF2ARB2_R (*((volatile uint32_t *)0x40040094))
  1053. #define CAN0_IF2MCTL_R (*((volatile uint32_t *)0x40040098))
  1054. #define CAN0_IF2DA1_R (*((volatile uint32_t *)0x4004009C))
  1055. #define CAN0_IF2DA2_R (*((volatile uint32_t *)0x400400A0))
  1056. #define CAN0_IF2DB1_R (*((volatile uint32_t *)0x400400A4))
  1057. #define CAN0_IF2DB2_R (*((volatile uint32_t *)0x400400A8))
  1058. #define CAN0_TXRQ1_R (*((volatile uint32_t *)0x40040100))
  1059. #define CAN0_TXRQ2_R (*((volatile uint32_t *)0x40040104))
  1060. #define CAN0_NWDA1_R (*((volatile uint32_t *)0x40040120))
  1061. #define CAN0_NWDA2_R (*((volatile uint32_t *)0x40040124))
  1062. #define CAN0_MSG1INT_R (*((volatile uint32_t *)0x40040140))
  1063. #define CAN0_MSG2INT_R (*((volatile uint32_t *)0x40040144))
  1064. #define CAN0_MSG1VAL_R (*((volatile uint32_t *)0x40040160))
  1065. #define CAN0_MSG2VAL_R (*((volatile uint32_t *)0x40040164))
  1066. //*****************************************************************************
  1067. //
  1068. // CAN registers (CAN1)
  1069. //
  1070. //*****************************************************************************
  1071. #define CAN1_CTL_R (*((volatile uint32_t *)0x40041000))
  1072. #define CAN1_STS_R (*((volatile uint32_t *)0x40041004))
  1073. #define CAN1_ERR_R (*((volatile uint32_t *)0x40041008))
  1074. #define CAN1_BIT_R (*((volatile uint32_t *)0x4004100C))
  1075. #define CAN1_INT_R (*((volatile uint32_t *)0x40041010))
  1076. #define CAN1_TST_R (*((volatile uint32_t *)0x40041014))
  1077. #define CAN1_BRPE_R (*((volatile uint32_t *)0x40041018))
  1078. #define CAN1_IF1CRQ_R (*((volatile uint32_t *)0x40041020))
  1079. #define CAN1_IF1CMSK_R (*((volatile uint32_t *)0x40041024))
  1080. #define CAN1_IF1MSK1_R (*((volatile uint32_t *)0x40041028))
  1081. #define CAN1_IF1MSK2_R (*((volatile uint32_t *)0x4004102C))
  1082. #define CAN1_IF1ARB1_R (*((volatile uint32_t *)0x40041030))
  1083. #define CAN1_IF1ARB2_R (*((volatile uint32_t *)0x40041034))
  1084. #define CAN1_IF1MCTL_R (*((volatile uint32_t *)0x40041038))
  1085. #define CAN1_IF1DA1_R (*((volatile uint32_t *)0x4004103C))
  1086. #define CAN1_IF1DA2_R (*((volatile uint32_t *)0x40041040))
  1087. #define CAN1_IF1DB1_R (*((volatile uint32_t *)0x40041044))
  1088. #define CAN1_IF1DB2_R (*((volatile uint32_t *)0x40041048))
  1089. #define CAN1_IF2CRQ_R (*((volatile uint32_t *)0x40041080))
  1090. #define CAN1_IF2CMSK_R (*((volatile uint32_t *)0x40041084))
  1091. #define CAN1_IF2MSK1_R (*((volatile uint32_t *)0x40041088))
  1092. #define CAN1_IF2MSK2_R (*((volatile uint32_t *)0x4004108C))
  1093. #define CAN1_IF2ARB1_R (*((volatile uint32_t *)0x40041090))
  1094. #define CAN1_IF2ARB2_R (*((volatile uint32_t *)0x40041094))
  1095. #define CAN1_IF2MCTL_R (*((volatile uint32_t *)0x40041098))
  1096. #define CAN1_IF2DA1_R (*((volatile uint32_t *)0x4004109C))
  1097. #define CAN1_IF2DA2_R (*((volatile uint32_t *)0x400410A0))
  1098. #define CAN1_IF2DB1_R (*((volatile uint32_t *)0x400410A4))
  1099. #define CAN1_IF2DB2_R (*((volatile uint32_t *)0x400410A8))
  1100. #define CAN1_TXRQ1_R (*((volatile uint32_t *)0x40041100))
  1101. #define CAN1_TXRQ2_R (*((volatile uint32_t *)0x40041104))
  1102. #define CAN1_NWDA1_R (*((volatile uint32_t *)0x40041120))
  1103. #define CAN1_NWDA2_R (*((volatile uint32_t *)0x40041124))
  1104. #define CAN1_MSG1INT_R (*((volatile uint32_t *)0x40041140))
  1105. #define CAN1_MSG2INT_R (*((volatile uint32_t *)0x40041144))
  1106. #define CAN1_MSG1VAL_R (*((volatile uint32_t *)0x40041160))
  1107. #define CAN1_MSG2VAL_R (*((volatile uint32_t *)0x40041164))
  1108. //*****************************************************************************
  1109. //
  1110. // Univeral Serial Bus registers (USB0)
  1111. //
  1112. //*****************************************************************************
  1113. #define USB0_FADDR_R (*((volatile uint8_t *)0x40050000))
  1114. #define USB0_POWER_R (*((volatile uint8_t *)0x40050001))
  1115. #define USB0_TXIS_R (*((volatile uint16_t *)0x40050002))
  1116. #define USB0_RXIS_R (*((volatile uint16_t *)0x40050004))
  1117. #define USB0_TXIE_R (*((volatile uint16_t *)0x40050006))
  1118. #define USB0_RXIE_R (*((volatile uint16_t *)0x40050008))
  1119. #define USB0_IS_R (*((volatile uint8_t *)0x4005000A))
  1120. #define USB0_IE_R (*((volatile uint8_t *)0x4005000B))
  1121. #define USB0_FRAME_R (*((volatile uint16_t *)0x4005000C))
  1122. #define USB0_EPIDX_R (*((volatile uint8_t *)0x4005000E))
  1123. #define USB0_TEST_R (*((volatile uint8_t *)0x4005000F))
  1124. #define USB0_FIFO0_R (*((volatile uint32_t *)0x40050020))
  1125. #define USB0_FIFO1_R (*((volatile uint32_t *)0x40050024))
  1126. #define USB0_FIFO2_R (*((volatile uint32_t *)0x40050028))
  1127. #define USB0_FIFO3_R (*((volatile uint32_t *)0x4005002C))
  1128. #define USB0_FIFO4_R (*((volatile uint32_t *)0x40050030))
  1129. #define USB0_FIFO5_R (*((volatile uint32_t *)0x40050034))
  1130. #define USB0_FIFO6_R (*((volatile uint32_t *)0x40050038))
  1131. #define USB0_FIFO7_R (*((volatile uint32_t *)0x4005003C))
  1132. #define USB0_DEVCTL_R (*((volatile uint8_t *)0x40050060))
  1133. #define USB0_CCONF_R (*((volatile uint8_t *)0x40050061))
  1134. #define USB0_TXFIFOSZ_R (*((volatile uint8_t *)0x40050062))
  1135. #define USB0_RXFIFOSZ_R (*((volatile uint8_t *)0x40050063))
  1136. #define USB0_TXFIFOADD_R (*((volatile uint16_t *)0x40050064))
  1137. #define USB0_RXFIFOADD_R (*((volatile uint16_t *)0x40050066))
  1138. #define USB0_ULPIVBUSCTL_R (*((volatile uint8_t *)0x40050070))
  1139. #define USB0_ULPIREGDATA_R (*((volatile uint8_t *)0x40050074))
  1140. #define USB0_ULPIREGADDR_R (*((volatile uint8_t *)0x40050075))
  1141. #define USB0_ULPIREGCTL_R (*((volatile uint8_t *)0x40050076))
  1142. #define USB0_EPINFO_R (*((volatile uint8_t *)0x40050078))
  1143. #define USB0_RAMINFO_R (*((volatile uint8_t *)0x40050079))
  1144. #define USB0_CONTIM_R (*((volatile uint8_t *)0x4005007A))
  1145. #define USB0_VPLEN_R (*((volatile uint8_t *)0x4005007B))
  1146. #define USB0_HSEOF_R (*((volatile uint8_t *)0x4005007C))
  1147. #define USB0_FSEOF_R (*((volatile uint8_t *)0x4005007D))
  1148. #define USB0_LSEOF_R (*((volatile uint8_t *)0x4005007E))
  1149. #define USB0_TXFUNCADDR0_R (*((volatile uint8_t *)0x40050080))
  1150. #define USB0_TXHUBADDR0_R (*((volatile uint8_t *)0x40050082))
  1151. #define USB0_TXHUBPORT0_R (*((volatile uint8_t *)0x40050083))
  1152. #define USB0_TXFUNCADDR1_R (*((volatile uint8_t *)0x40050088))
  1153. #define USB0_TXHUBADDR1_R (*((volatile uint8_t *)0x4005008A))
  1154. #define USB0_TXHUBPORT1_R (*((volatile uint8_t *)0x4005008B))
  1155. #define USB0_RXFUNCADDR1_R (*((volatile uint8_t *)0x4005008C))
  1156. #define USB0_RXHUBADDR1_R (*((volatile uint8_t *)0x4005008E))
  1157. #define USB0_RXHUBPORT1_R (*((volatile uint8_t *)0x4005008F))
  1158. #define USB0_TXFUNCADDR2_R (*((volatile uint8_t *)0x40050090))
  1159. #define USB0_TXHUBADDR2_R (*((volatile uint8_t *)0x40050092))
  1160. #define USB0_TXHUBPORT2_R (*((volatile uint8_t *)0x40050093))
  1161. #define USB0_RXFUNCADDR2_R (*((volatile uint8_t *)0x40050094))
  1162. #define USB0_RXHUBADDR2_R (*((volatile uint8_t *)0x40050096))
  1163. #define USB0_RXHUBPORT2_R (*((volatile uint8_t *)0x40050097))
  1164. #define USB0_TXFUNCADDR3_R (*((volatile uint8_t *)0x40050098))
  1165. #define USB0_TXHUBADDR3_R (*((volatile uint8_t *)0x4005009A))
  1166. #define USB0_TXHUBPORT3_R (*((volatile uint8_t *)0x4005009B))
  1167. #define USB0_RXFUNCADDR3_R (*((volatile uint8_t *)0x4005009C))
  1168. #define USB0_RXHUBADDR3_R (*((volatile uint8_t *)0x4005009E))
  1169. #define USB0_RXHUBPORT3_R (*((volatile uint8_t *)0x4005009F))
  1170. #define USB0_TXFUNCADDR4_R (*((volatile uint8_t *)0x400500A0))
  1171. #define USB0_TXHUBADDR4_R (*((volatile uint8_t *)0x400500A2))
  1172. #define USB0_TXHUBPORT4_R (*((volatile uint8_t *)0x400500A3))
  1173. #define USB0_RXFUNCADDR4_R (*((volatile uint8_t *)0x400500A4))
  1174. #define USB0_RXHUBADDR4_R (*((volatile uint8_t *)0x400500A6))
  1175. #define USB0_RXHUBPORT4_R (*((volatile uint8_t *)0x400500A7))
  1176. #define USB0_TXFUNCADDR5_R (*((volatile uint8_t *)0x400500A8))
  1177. #define USB0_TXHUBADDR5_R (*((volatile uint8_t *)0x400500AA))
  1178. #define USB0_TXHUBPORT5_R (*((volatile uint8_t *)0x400500AB))
  1179. #define USB0_RXFUNCADDR5_R (*((volatile uint8_t *)0x400500AC))
  1180. #define USB0_RXHUBADDR5_R (*((volatile uint8_t *)0x400500AE))
  1181. #define USB0_RXHUBPORT5_R (*((volatile uint8_t *)0x400500AF))
  1182. #define USB0_TXFUNCADDR6_R (*((volatile uint8_t *)0x400500B0))
  1183. #define USB0_TXHUBADDR6_R (*((volatile uint8_t *)0x400500B2))
  1184. #define USB0_TXHUBPORT6_R (*((volatile uint8_t *)0x400500B3))
  1185. #define USB0_RXFUNCADDR6_R (*((volatile uint8_t *)0x400500B4))
  1186. #define USB0_RXHUBADDR6_R (*((volatile uint8_t *)0x400500B6))
  1187. #define USB0_RXHUBPORT6_R (*((volatile uint8_t *)0x400500B7))
  1188. #define USB0_TXFUNCADDR7_R (*((volatile uint8_t *)0x400500B8))
  1189. #define USB0_TXHUBADDR7_R (*((volatile uint8_t *)0x400500BA))
  1190. #define USB0_TXHUBPORT7_R (*((volatile uint8_t *)0x400500BB))
  1191. #define USB0_RXFUNCADDR7_R (*((volatile uint8_t *)0x400500BC))
  1192. #define USB0_RXHUBADDR7_R (*((volatile uint8_t *)0x400500BE))
  1193. #define USB0_RXHUBPORT7_R (*((volatile uint8_t *)0x400500BF))
  1194. #define USB0_CSRL0_R (*((volatile uint8_t *)0x40050102))
  1195. #define USB0_CSRH0_R (*((volatile uint8_t *)0x40050103))
  1196. #define USB0_COUNT0_R (*((volatile uint8_t *)0x40050108))
  1197. #define USB0_TYPE0_R (*((volatile uint8_t *)0x4005010A))
  1198. #define USB0_NAKLMT_R (*((volatile uint8_t *)0x4005010B))
  1199. #define USB0_TXMAXP1_R (*((volatile uint16_t *)0x40050110))
  1200. #define USB0_TXCSRL1_R (*((volatile uint8_t *)0x40050112))
  1201. #define USB0_TXCSRH1_R (*((volatile uint8_t *)0x40050113))
  1202. #define USB0_RXMAXP1_R (*((volatile uint16_t *)0x40050114))
  1203. #define USB0_RXCSRL1_R (*((volatile uint8_t *)0x40050116))
  1204. #define USB0_RXCSRH1_R (*((volatile uint8_t *)0x40050117))
  1205. #define USB0_RXCOUNT1_R (*((volatile uint16_t *)0x40050118))
  1206. #define USB0_TXTYPE1_R (*((volatile uint8_t *)0x4005011A))
  1207. #define USB0_TXINTERVAL1_R (*((volatile uint8_t *)0x4005011B))
  1208. #define USB0_RXTYPE1_R (*((volatile uint8_t *)0x4005011C))
  1209. #define USB0_RXINTERVAL1_R (*((volatile uint8_t *)0x4005011D))
  1210. #define USB0_TXMAXP2_R (*((volatile uint16_t *)0x40050120))
  1211. #define USB0_TXCSRL2_R (*((volatile uint8_t *)0x40050122))
  1212. #define USB0_TXCSRH2_R (*((volatile uint8_t *)0x40050123))
  1213. #define USB0_RXMAXP2_R (*((volatile uint16_t *)0x40050124))
  1214. #define USB0_RXCSRL2_R (*((volatile uint8_t *)0x40050126))
  1215. #define USB0_RXCSRH2_R (*((volatile uint8_t *)0x40050127))
  1216. #define USB0_RXCOUNT2_R (*((volatile uint16_t *)0x40050128))
  1217. #define USB0_TXTYPE2_R (*((volatile uint8_t *)0x4005012A))
  1218. #define USB0_TXINTERVAL2_R (*((volatile uint8_t *)0x4005012B))
  1219. #define USB0_RXTYPE2_R (*((volatile uint8_t *)0x4005012C))
  1220. #define USB0_RXINTERVAL2_R (*((volatile uint8_t *)0x4005012D))
  1221. #define USB0_TXMAXP3_R (*((volatile uint16_t *)0x40050130))
  1222. #define USB0_TXCSRL3_R (*((volatile uint8_t *)0x40050132))
  1223. #define USB0_TXCSRH3_R (*((volatile uint8_t *)0x40050133))
  1224. #define USB0_RXMAXP3_R (*((volatile uint16_t *)0x40050134))
  1225. #define USB0_RXCSRL3_R (*((volatile uint8_t *)0x40050136))
  1226. #define USB0_RXCSRH3_R (*((volatile uint8_t *)0x40050137))
  1227. #define USB0_RXCOUNT3_R (*((volatile uint16_t *)0x40050138))
  1228. #define USB0_TXTYPE3_R (*((volatile uint8_t *)0x4005013A))
  1229. #define USB0_TXINTERVAL3_R (*((volatile uint8_t *)0x4005013B))
  1230. #define USB0_RXTYPE3_R (*((volatile uint8_t *)0x4005013C))
  1231. #define USB0_RXINTERVAL3_R (*((volatile uint8_t *)0x4005013D))
  1232. #define USB0_TXMAXP4_R (*((volatile uint16_t *)0x40050140))
  1233. #define USB0_TXCSRL4_R (*((volatile uint8_t *)0x40050142))
  1234. #define USB0_TXCSRH4_R (*((volatile uint8_t *)0x40050143))
  1235. #define USB0_RXMAXP4_R (*((volatile uint16_t *)0x40050144))
  1236. #define USB0_RXCSRL4_R (*((volatile uint8_t *)0x40050146))
  1237. #define USB0_RXCSRH4_R (*((volatile uint8_t *)0x40050147))
  1238. #define USB0_RXCOUNT4_R (*((volatile uint16_t *)0x40050148))
  1239. #define USB0_TXTYPE4_R (*((volatile uint8_t *)0x4005014A))
  1240. #define USB0_TXINTERVAL4_R (*((volatile uint8_t *)0x4005014B))
  1241. #define USB0_RXTYPE4_R (*((volatile uint8_t *)0x4005014C))
  1242. #define USB0_RXINTERVAL4_R (*((volatile uint8_t *)0x4005014D))
  1243. #define USB0_TXMAXP5_R (*((volatile uint16_t *)0x40050150))
  1244. #define USB0_TXCSRL5_R (*((volatile uint8_t *)0x40050152))
  1245. #define USB0_TXCSRH5_R (*((volatile uint8_t *)0x40050153))
  1246. #define USB0_RXMAXP5_R (*((volatile uint16_t *)0x40050154))
  1247. #define USB0_RXCSRL5_R (*((volatile uint8_t *)0x40050156))
  1248. #define USB0_RXCSRH5_R (*((volatile uint8_t *)0x40050157))
  1249. #define USB0_RXCOUNT5_R (*((volatile uint16_t *)0x40050158))
  1250. #define USB0_TXTYPE5_R (*((volatile uint8_t *)0x4005015A))
  1251. #define USB0_TXINTERVAL5_R (*((volatile uint8_t *)0x4005015B))
  1252. #define USB0_RXTYPE5_R (*((volatile uint8_t *)0x4005015C))
  1253. #define USB0_RXINTERVAL5_R (*((volatile uint8_t *)0x4005015D))
  1254. #define USB0_TXMAXP6_R (*((volatile uint16_t *)0x40050160))
  1255. #define USB0_TXCSRL6_R (*((volatile uint8_t *)0x40050162))
  1256. #define USB0_TXCSRH6_R (*((volatile uint8_t *)0x40050163))
  1257. #define USB0_RXMAXP6_R (*((volatile uint16_t *)0x40050164))
  1258. #define USB0_RXCSRL6_R (*((volatile uint8_t *)0x40050166))
  1259. #define USB0_RXCSRH6_R (*((volatile uint8_t *)0x40050167))
  1260. #define USB0_RXCOUNT6_R (*((volatile uint16_t *)0x40050168))
  1261. #define USB0_TXTYPE6_R (*((volatile uint8_t *)0x4005016A))
  1262. #define USB0_TXINTERVAL6_R (*((volatile uint8_t *)0x4005016B))
  1263. #define USB0_RXTYPE6_R (*((volatile uint8_t *)0x4005016C))
  1264. #define USB0_RXINTERVAL6_R (*((volatile uint8_t *)0x4005016D))
  1265. #define USB0_TXMAXP7_R (*((volatile uint16_t *)0x40050170))
  1266. #define USB0_TXCSRL7_R (*((volatile uint8_t *)0x40050172))
  1267. #define USB0_TXCSRH7_R (*((volatile uint8_t *)0x40050173))
  1268. #define USB0_RXMAXP7_R (*((volatile uint16_t *)0x40050174))
  1269. #define USB0_RXCSRL7_R (*((volatile uint8_t *)0x40050176))
  1270. #define USB0_RXCSRH7_R (*((volatile uint8_t *)0x40050177))
  1271. #define USB0_RXCOUNT7_R (*((volatile uint16_t *)0x40050178))
  1272. #define USB0_TXTYPE7_R (*((volatile uint8_t *)0x4005017A))
  1273. #define USB0_TXINTERVAL7_R (*((volatile uint8_t *)0x4005017B))
  1274. #define USB0_RXTYPE7_R (*((volatile uint8_t *)0x4005017C))
  1275. #define USB0_RXINTERVAL7_R (*((volatile uint8_t *)0x4005017D))
  1276. #define USB0_DMAINTR_R (*((volatile uint8_t *)0x40050200))
  1277. #define USB0_DMACTL0_R (*((volatile uint16_t *)0x40050204))
  1278. #define USB0_DMAADDR0_R (*((volatile uint32_t *)0x40050208))
  1279. #define USB0_DMACOUNT0_R (*((volatile uint32_t *)0x4005020C))
  1280. #define USB0_DMACTL1_R (*((volatile uint16_t *)0x40050214))
  1281. #define USB0_DMAADDR1_R (*((volatile uint32_t *)0x40050218))
  1282. #define USB0_DMACOUNT1_R (*((volatile uint32_t *)0x4005021C))
  1283. #define USB0_DMACTL2_R (*((volatile uint16_t *)0x40050224))
  1284. #define USB0_DMAADDR2_R (*((volatile uint32_t *)0x40050228))
  1285. #define USB0_DMACOUNT2_R (*((volatile uint32_t *)0x4005022C))
  1286. #define USB0_DMACTL3_R (*((volatile uint16_t *)0x40050234))
  1287. #define USB0_DMAADDR3_R (*((volatile uint32_t *)0x40050238))
  1288. #define USB0_DMACOUNT3_R (*((volatile uint32_t *)0x4005023C))
  1289. #define USB0_DMACTL4_R (*((volatile uint16_t *)0x40050244))
  1290. #define USB0_DMAADDR4_R (*((volatile uint32_t *)0x40050248))
  1291. #define USB0_DMACOUNT4_R (*((volatile uint32_t *)0x4005024C))
  1292. #define USB0_DMACTL5_R (*((volatile uint16_t *)0x40050254))
  1293. #define USB0_DMAADDR5_R (*((volatile uint32_t *)0x40050258))
  1294. #define USB0_DMACOUNT5_R (*((volatile uint32_t *)0x4005025C))
  1295. #define USB0_DMACTL6_R (*((volatile uint16_t *)0x40050264))
  1296. #define USB0_DMAADDR6_R (*((volatile uint32_t *)0x40050268))
  1297. #define USB0_DMACOUNT6_R (*((volatile uint32_t *)0x4005026C))
  1298. #define USB0_DMACTL7_R (*((volatile uint16_t *)0x40050274))
  1299. #define USB0_DMAADDR7_R (*((volatile uint32_t *)0x40050278))
  1300. #define USB0_DMACOUNT7_R (*((volatile uint32_t *)0x4005027C))
  1301. #define USB0_RQPKTCOUNT1_R (*((volatile uint16_t *)0x40050304))
  1302. #define USB0_RQPKTCOUNT2_R (*((volatile uint16_t *)0x40050308))
  1303. #define USB0_RQPKTCOUNT3_R (*((volatile uint16_t *)0x4005030C))
  1304. #define USB0_RQPKTCOUNT4_R (*((volatile uint16_t *)0x40050310))
  1305. #define USB0_RQPKTCOUNT5_R (*((volatile uint16_t *)0x40050314))
  1306. #define USB0_RQPKTCOUNT6_R (*((volatile uint16_t *)0x40050318))
  1307. #define USB0_RQPKTCOUNT7_R (*((volatile uint16_t *)0x4005031C))
  1308. #define USB0_RXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050340))
  1309. #define USB0_TXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050342))
  1310. #define USB0_CTO_R (*((volatile uint16_t *)0x40050344))
  1311. #define USB0_HHSRTN_R (*((volatile uint16_t *)0x40050346))
  1312. #define USB0_HSBT_R (*((volatile uint16_t *)0x40050348))
  1313. #define USB0_LPMATTR_R (*((volatile uint16_t *)0x40050360))
  1314. #define USB0_LPMCNTRL_R (*((volatile uint8_t *)0x40050362))
  1315. #define USB0_LPMIM_R (*((volatile uint8_t *)0x40050363))
  1316. #define USB0_LPMRIS_R (*((volatile uint8_t *)0x40050364))
  1317. #define USB0_LPMFADDR_R (*((volatile uint8_t *)0x40050365))
  1318. #define USB0_EPC_R (*((volatile uint32_t *)0x40050400))
  1319. #define USB0_EPCRIS_R (*((volatile uint32_t *)0x40050404))
  1320. #define USB0_EPCIM_R (*((volatile uint32_t *)0x40050408))
  1321. #define USB0_EPCISC_R (*((volatile uint32_t *)0x4005040C))
  1322. #define USB0_DRRIS_R (*((volatile uint32_t *)0x40050410))
  1323. #define USB0_DRIM_R (*((volatile uint32_t *)0x40050414))
  1324. #define USB0_DRISC_R (*((volatile uint32_t *)0x40050418))
  1325. #define USB0_GPCS_R (*((volatile uint32_t *)0x4005041C))
  1326. #define USB0_VDC_R (*((volatile uint32_t *)0x40050430))
  1327. #define USB0_VDCRIS_R (*((volatile uint32_t *)0x40050434))
  1328. #define USB0_VDCIM_R (*((volatile uint32_t *)0x40050438))
  1329. #define USB0_VDCISC_R (*((volatile uint32_t *)0x4005043C))
  1330. #define USB0_PP_R (*((volatile uint32_t *)0x40050FC0))
  1331. #define USB0_PC_R (*((volatile uint32_t *)0x40050FC4))
  1332. #define USB0_CC_R (*((volatile uint32_t *)0x40050FC8))
  1333. //*****************************************************************************
  1334. //
  1335. // GPIO registers (PORTA AHB)
  1336. //
  1337. //*****************************************************************************
  1338. #define GPIO_PORTA_AHB_DATA_BITS_R \
  1339. ((volatile uint32_t *)0x40058000)
  1340. #define GPIO_PORTA_AHB_DATA_R (*((volatile uint32_t *)0x400583FC))
  1341. #define GPIO_PORTA_AHB_DIR_R (*((volatile uint32_t *)0x40058400))
  1342. #define GPIO_PORTA_AHB_IS_R (*((volatile uint32_t *)0x40058404))
  1343. #define GPIO_PORTA_AHB_IBE_R (*((volatile uint32_t *)0x40058408))
  1344. #define GPIO_PORTA_AHB_IEV_R (*((volatile uint32_t *)0x4005840C))
  1345. #define GPIO_PORTA_AHB_IM_R (*((volatile uint32_t *)0x40058410))
  1346. #define GPIO_PORTA_AHB_RIS_R (*((volatile uint32_t *)0x40058414))
  1347. #define GPIO_PORTA_AHB_MIS_R (*((volatile uint32_t *)0x40058418))
  1348. #define GPIO_PORTA_AHB_ICR_R (*((volatile uint32_t *)0x4005841C))
  1349. #define GPIO_PORTA_AHB_AFSEL_R (*((volatile uint32_t *)0x40058420))
  1350. #define GPIO_PORTA_AHB_DR2R_R (*((volatile uint32_t *)0x40058500))
  1351. #define GPIO_PORTA_AHB_DR4R_R (*((volatile uint32_t *)0x40058504))
  1352. #define GPIO_PORTA_AHB_DR8R_R (*((volatile uint32_t *)0x40058508))
  1353. #define GPIO_PORTA_AHB_ODR_R (*((volatile uint32_t *)0x4005850C))
  1354. #define GPIO_PORTA_AHB_PUR_R (*((volatile uint32_t *)0x40058510))
  1355. #define GPIO_PORTA_AHB_PDR_R (*((volatile uint32_t *)0x40058514))
  1356. #define GPIO_PORTA_AHB_SLR_R (*((volatile uint32_t *)0x40058518))
  1357. #define GPIO_PORTA_AHB_DEN_R (*((volatile uint32_t *)0x4005851C))
  1358. #define GPIO_PORTA_AHB_LOCK_R (*((volatile uint32_t *)0x40058520))
  1359. #define GPIO_PORTA_AHB_CR_R (*((volatile uint32_t *)0x40058524))
  1360. #define GPIO_PORTA_AHB_AMSEL_R (*((volatile uint32_t *)0x40058528))
  1361. #define GPIO_PORTA_AHB_PCTL_R (*((volatile uint32_t *)0x4005852C))
  1362. #define GPIO_PORTA_AHB_ADCCTL_R (*((volatile uint32_t *)0x40058530))
  1363. #define GPIO_PORTA_AHB_DMACTL_R (*((volatile uint32_t *)0x40058534))
  1364. #define GPIO_PORTA_AHB_SI_R (*((volatile uint32_t *)0x40058538))
  1365. #define GPIO_PORTA_AHB_DR12R_R (*((volatile uint32_t *)0x4005853C))
  1366. #define GPIO_PORTA_AHB_WAKEPEN_R \
  1367. (*((volatile uint32_t *)0x40058540))
  1368. #define GPIO_PORTA_AHB_WAKELVL_R \
  1369. (*((volatile uint32_t *)0x40058544))
  1370. #define GPIO_PORTA_AHB_WAKESTAT_R \
  1371. (*((volatile uint32_t *)0x40058548))
  1372. #define GPIO_PORTA_AHB_PP_R (*((volatile uint32_t *)0x40058FC0))
  1373. #define GPIO_PORTA_AHB_PC_R (*((volatile uint32_t *)0x40058FC4))
  1374. //*****************************************************************************
  1375. //
  1376. // GPIO registers (PORTB AHB)
  1377. //
  1378. //*****************************************************************************
  1379. #define GPIO_PORTB_AHB_DATA_BITS_R \
  1380. ((volatile uint32_t *)0x40059000)
  1381. #define GPIO_PORTB_AHB_DATA_R (*((volatile uint32_t *)0x400593FC))
  1382. #define GPIO_PORTB_AHB_DIR_R (*((volatile uint32_t *)0x40059400))
  1383. #define GPIO_PORTB_AHB_IS_R (*((volatile uint32_t *)0x40059404))
  1384. #define GPIO_PORTB_AHB_IBE_R (*((volatile uint32_t *)0x40059408))
  1385. #define GPIO_PORTB_AHB_IEV_R (*((volatile uint32_t *)0x4005940C))
  1386. #define GPIO_PORTB_AHB_IM_R (*((volatile uint32_t *)0x40059410))
  1387. #define GPIO_PORTB_AHB_RIS_R (*((volatile uint32_t *)0x40059414))
  1388. #define GPIO_PORTB_AHB_MIS_R (*((volatile uint32_t *)0x40059418))
  1389. #define GPIO_PORTB_AHB_ICR_R (*((volatile uint32_t *)0x4005941C))
  1390. #define GPIO_PORTB_AHB_AFSEL_R (*((volatile uint32_t *)0x40059420))
  1391. #define GPIO_PORTB_AHB_DR2R_R (*((volatile uint32_t *)0x40059500))
  1392. #define GPIO_PORTB_AHB_DR4R_R (*((volatile uint32_t *)0x40059504))
  1393. #define GPIO_PORTB_AHB_DR8R_R (*((volatile uint32_t *)0x40059508))
  1394. #define GPIO_PORTB_AHB_ODR_R (*((volatile uint32_t *)0x4005950C))
  1395. #define GPIO_PORTB_AHB_PUR_R (*((volatile uint32_t *)0x40059510))
  1396. #define GPIO_PORTB_AHB_PDR_R (*((volatile uint32_t *)0x40059514))
  1397. #define GPIO_PORTB_AHB_SLR_R (*((volatile uint32_t *)0x40059518))
  1398. #define GPIO_PORTB_AHB_DEN_R (*((volatile uint32_t *)0x4005951C))
  1399. #define GPIO_PORTB_AHB_LOCK_R (*((volatile uint32_t *)0x40059520))
  1400. #define GPIO_PORTB_AHB_CR_R (*((volatile uint32_t *)0x40059524))
  1401. #define GPIO_PORTB_AHB_AMSEL_R (*((volatile uint32_t *)0x40059528))
  1402. #define GPIO_PORTB_AHB_PCTL_R (*((volatile uint32_t *)0x4005952C))
  1403. #define GPIO_PORTB_AHB_ADCCTL_R (*((volatile uint32_t *)0x40059530))
  1404. #define GPIO_PORTB_AHB_DMACTL_R (*((volatile uint32_t *)0x40059534))
  1405. #define GPIO_PORTB_AHB_SI_R (*((volatile uint32_t *)0x40059538))
  1406. #define GPIO_PORTB_AHB_DR12R_R (*((volatile uint32_t *)0x4005953C))
  1407. #define GPIO_PORTB_AHB_WAKEPEN_R \
  1408. (*((volatile uint32_t *)0x40059540))
  1409. #define GPIO_PORTB_AHB_WAKELVL_R \
  1410. (*((volatile uint32_t *)0x40059544))
  1411. #define GPIO_PORTB_AHB_WAKESTAT_R \
  1412. (*((volatile uint32_t *)0x40059548))
  1413. #define GPIO_PORTB_AHB_PP_R (*((volatile uint32_t *)0x40059FC0))
  1414. #define GPIO_PORTB_AHB_PC_R (*((volatile uint32_t *)0x40059FC4))
  1415. //*****************************************************************************
  1416. //
  1417. // GPIO registers (PORTC AHB)
  1418. //
  1419. //*****************************************************************************
  1420. #define GPIO_PORTC_AHB_DATA_BITS_R \
  1421. ((volatile uint32_t *)0x4005A000)
  1422. #define GPIO_PORTC_AHB_DATA_R (*((volatile uint32_t *)0x4005A3FC))
  1423. #define GPIO_PORTC_AHB_DIR_R (*((volatile uint32_t *)0x4005A400))
  1424. #define GPIO_PORTC_AHB_IS_R (*((volatile uint32_t *)0x4005A404))
  1425. #define GPIO_PORTC_AHB_IBE_R (*((volatile uint32_t *)0x4005A408))
  1426. #define GPIO_PORTC_AHB_IEV_R (*((volatile uint32_t *)0x4005A40C))
  1427. #define GPIO_PORTC_AHB_IM_R (*((volatile uint32_t *)0x4005A410))
  1428. #define GPIO_PORTC_AHB_RIS_R (*((volatile uint32_t *)0x4005A414))
  1429. #define GPIO_PORTC_AHB_MIS_R (*((volatile uint32_t *)0x4005A418))
  1430. #define GPIO_PORTC_AHB_ICR_R (*((volatile uint32_t *)0x4005A41C))
  1431. #define GPIO_PORTC_AHB_AFSEL_R (*((volatile uint32_t *)0x4005A420))
  1432. #define GPIO_PORTC_AHB_DR2R_R (*((volatile uint32_t *)0x4005A500))
  1433. #define GPIO_PORTC_AHB_DR4R_R (*((volatile uint32_t *)0x4005A504))
  1434. #define GPIO_PORTC_AHB_DR8R_R (*((volatile uint32_t *)0x4005A508))
  1435. #define GPIO_PORTC_AHB_ODR_R (*((volatile uint32_t *)0x4005A50C))
  1436. #define GPIO_PORTC_AHB_PUR_R (*((volatile uint32_t *)0x4005A510))
  1437. #define GPIO_PORTC_AHB_PDR_R (*((volatile uint32_t *)0x4005A514))
  1438. #define GPIO_PORTC_AHB_SLR_R (*((volatile uint32_t *)0x4005A518))
  1439. #define GPIO_PORTC_AHB_DEN_R (*((volatile uint32_t *)0x4005A51C))
  1440. #define GPIO_PORTC_AHB_LOCK_R (*((volatile uint32_t *)0x4005A520))
  1441. #define GPIO_PORTC_AHB_CR_R (*((volatile uint32_t *)0x4005A524))
  1442. #define GPIO_PORTC_AHB_AMSEL_R (*((volatile uint32_t *)0x4005A528))
  1443. #define GPIO_PORTC_AHB_PCTL_R (*((volatile uint32_t *)0x4005A52C))
  1444. #define GPIO_PORTC_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005A530))
  1445. #define GPIO_PORTC_AHB_DMACTL_R (*((volatile uint32_t *)0x4005A534))
  1446. #define GPIO_PORTC_AHB_SI_R (*((volatile uint32_t *)0x4005A538))
  1447. #define GPIO_PORTC_AHB_DR12R_R (*((volatile uint32_t *)0x4005A53C))
  1448. #define GPIO_PORTC_AHB_WAKEPEN_R \
  1449. (*((volatile uint32_t *)0x4005A540))
  1450. #define GPIO_PORTC_AHB_WAKELVL_R \
  1451. (*((volatile uint32_t *)0x4005A544))
  1452. #define GPIO_PORTC_AHB_WAKESTAT_R \
  1453. (*((volatile uint32_t *)0x4005A548))
  1454. #define GPIO_PORTC_AHB_PP_R (*((volatile uint32_t *)0x4005AFC0))
  1455. #define GPIO_PORTC_AHB_PC_R (*((volatile uint32_t *)0x4005AFC4))
  1456. //*****************************************************************************
  1457. //
  1458. // GPIO registers (PORTD AHB)
  1459. //
  1460. //*****************************************************************************
  1461. #define GPIO_PORTD_AHB_DATA_BITS_R \
  1462. ((volatile uint32_t *)0x4005B000)
  1463. #define GPIO_PORTD_AHB_DATA_R (*((volatile uint32_t *)0x4005B3FC))
  1464. #define GPIO_PORTD_AHB_DIR_R (*((volatile uint32_t *)0x4005B400))
  1465. #define GPIO_PORTD_AHB_IS_R (*((volatile uint32_t *)0x4005B404))
  1466. #define GPIO_PORTD_AHB_IBE_R (*((volatile uint32_t *)0x4005B408))
  1467. #define GPIO_PORTD_AHB_IEV_R (*((volatile uint32_t *)0x4005B40C))
  1468. #define GPIO_PORTD_AHB_IM_R (*((volatile uint32_t *)0x4005B410))
  1469. #define GPIO_PORTD_AHB_RIS_R (*((volatile uint32_t *)0x4005B414))
  1470. #define GPIO_PORTD_AHB_MIS_R (*((volatile uint32_t *)0x4005B418))
  1471. #define GPIO_PORTD_AHB_ICR_R (*((volatile uint32_t *)0x4005B41C))
  1472. #define GPIO_PORTD_AHB_AFSEL_R (*((volatile uint32_t *)0x4005B420))
  1473. #define GPIO_PORTD_AHB_DR2R_R (*((volatile uint32_t *)0x4005B500))
  1474. #define GPIO_PORTD_AHB_DR4R_R (*((volatile uint32_t *)0x4005B504))
  1475. #define GPIO_PORTD_AHB_DR8R_R (*((volatile uint32_t *)0x4005B508))
  1476. #define GPIO_PORTD_AHB_ODR_R (*((volatile uint32_t *)0x4005B50C))
  1477. #define GPIO_PORTD_AHB_PUR_R (*((volatile uint32_t *)0x4005B510))
  1478. #define GPIO_PORTD_AHB_PDR_R (*((volatile uint32_t *)0x4005B514))
  1479. #define GPIO_PORTD_AHB_SLR_R (*((volatile uint32_t *)0x4005B518))
  1480. #define GPIO_PORTD_AHB_DEN_R (*((volatile uint32_t *)0x4005B51C))
  1481. #define GPIO_PORTD_AHB_LOCK_R (*((volatile uint32_t *)0x4005B520))
  1482. #define GPIO_PORTD_AHB_CR_R (*((volatile uint32_t *)0x4005B524))
  1483. #define GPIO_PORTD_AHB_AMSEL_R (*((volatile uint32_t *)0x4005B528))
  1484. #define GPIO_PORTD_AHB_PCTL_R (*((volatile uint32_t *)0x4005B52C))
  1485. #define GPIO_PORTD_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005B530))
  1486. #define GPIO_PORTD_AHB_DMACTL_R (*((volatile uint32_t *)0x4005B534))
  1487. #define GPIO_PORTD_AHB_SI_R (*((volatile uint32_t *)0x4005B538))
  1488. #define GPIO_PORTD_AHB_DR12R_R (*((volatile uint32_t *)0x4005B53C))
  1489. #define GPIO_PORTD_AHB_WAKEPEN_R \
  1490. (*((volatile uint32_t *)0x4005B540))
  1491. #define GPIO_PORTD_AHB_WAKELVL_R \
  1492. (*((volatile uint32_t *)0x4005B544))
  1493. #define GPIO_PORTD_AHB_WAKESTAT_R \
  1494. (*((volatile uint32_t *)0x4005B548))
  1495. #define GPIO_PORTD_AHB_PP_R (*((volatile uint32_t *)0x4005BFC0))
  1496. #define GPIO_PORTD_AHB_PC_R (*((volatile uint32_t *)0x4005BFC4))
  1497. //*****************************************************************************
  1498. //
  1499. // GPIO registers (PORTE AHB)
  1500. //
  1501. //*****************************************************************************
  1502. #define GPIO_PORTE_AHB_DATA_BITS_R \
  1503. ((volatile uint32_t *)0x4005C000)
  1504. #define GPIO_PORTE_AHB_DATA_R (*((volatile uint32_t *)0x4005C3FC))
  1505. #define GPIO_PORTE_AHB_DIR_R (*((volatile uint32_t *)0x4005C400))
  1506. #define GPIO_PORTE_AHB_IS_R (*((volatile uint32_t *)0x4005C404))
  1507. #define GPIO_PORTE_AHB_IBE_R (*((volatile uint32_t *)0x4005C408))
  1508. #define GPIO_PORTE_AHB_IEV_R (*((volatile uint32_t *)0x4005C40C))
  1509. #define GPIO_PORTE_AHB_IM_R (*((volatile uint32_t *)0x4005C410))
  1510. #define GPIO_PORTE_AHB_RIS_R (*((volatile uint32_t *)0x4005C414))
  1511. #define GPIO_PORTE_AHB_MIS_R (*((volatile uint32_t *)0x4005C418))
  1512. #define GPIO_PORTE_AHB_ICR_R (*((volatile uint32_t *)0x4005C41C))
  1513. #define GPIO_PORTE_AHB_AFSEL_R (*((volatile uint32_t *)0x4005C420))
  1514. #define GPIO_PORTE_AHB_DR2R_R (*((volatile uint32_t *)0x4005C500))
  1515. #define GPIO_PORTE_AHB_DR4R_R (*((volatile uint32_t *)0x4005C504))
  1516. #define GPIO_PORTE_AHB_DR8R_R (*((volatile uint32_t *)0x4005C508))
  1517. #define GPIO_PORTE_AHB_ODR_R (*((volatile uint32_t *)0x4005C50C))
  1518. #define GPIO_PORTE_AHB_PUR_R (*((volatile uint32_t *)0x4005C510))
  1519. #define GPIO_PORTE_AHB_PDR_R (*((volatile uint32_t *)0x4005C514))
  1520. #define GPIO_PORTE_AHB_SLR_R (*((volatile uint32_t *)0x4005C518))
  1521. #define GPIO_PORTE_AHB_DEN_R (*((volatile uint32_t *)0x4005C51C))
  1522. #define GPIO_PORTE_AHB_LOCK_R (*((volatile uint32_t *)0x4005C520))
  1523. #define GPIO_PORTE_AHB_CR_R (*((volatile uint32_t *)0x4005C524))
  1524. #define GPIO_PORTE_AHB_AMSEL_R (*((volatile uint32_t *)0x4005C528))
  1525. #define GPIO_PORTE_AHB_PCTL_R (*((volatile uint32_t *)0x4005C52C))
  1526. #define GPIO_PORTE_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005C530))
  1527. #define GPIO_PORTE_AHB_DMACTL_R (*((volatile uint32_t *)0x4005C534))
  1528. #define GPIO_PORTE_AHB_SI_R (*((volatile uint32_t *)0x4005C538))
  1529. #define GPIO_PORTE_AHB_DR12R_R (*((volatile uint32_t *)0x4005C53C))
  1530. #define GPIO_PORTE_AHB_WAKEPEN_R \
  1531. (*((volatile uint32_t *)0x4005C540))
  1532. #define GPIO_PORTE_AHB_WAKELVL_R \
  1533. (*((volatile uint32_t *)0x4005C544))
  1534. #define GPIO_PORTE_AHB_WAKESTAT_R \
  1535. (*((volatile uint32_t *)0x4005C548))
  1536. #define GPIO_PORTE_AHB_PP_R (*((volatile uint32_t *)0x4005CFC0))
  1537. #define GPIO_PORTE_AHB_PC_R (*((volatile uint32_t *)0x4005CFC4))
  1538. //*****************************************************************************
  1539. //
  1540. // GPIO registers (PORTF AHB)
  1541. //
  1542. //*****************************************************************************
  1543. #define GPIO_PORTF_AHB_DATA_BITS_R \
  1544. ((volatile uint32_t *)0x4005D000)
  1545. #define GPIO_PORTF_AHB_DATA_R (*((volatile uint32_t *)0x4005D3FC))
  1546. #define GPIO_PORTF_AHB_DIR_R (*((volatile uint32_t *)0x4005D400))
  1547. #define GPIO_PORTF_AHB_IS_R (*((volatile uint32_t *)0x4005D404))
  1548. #define GPIO_PORTF_AHB_IBE_R (*((volatile uint32_t *)0x4005D408))
  1549. #define GPIO_PORTF_AHB_IEV_R (*((volatile uint32_t *)0x4005D40C))
  1550. #define GPIO_PORTF_AHB_IM_R (*((volatile uint32_t *)0x4005D410))
  1551. #define GPIO_PORTF_AHB_RIS_R (*((volatile uint32_t *)0x4005D414))
  1552. #define GPIO_PORTF_AHB_MIS_R (*((volatile uint32_t *)0x4005D418))
  1553. #define GPIO_PORTF_AHB_ICR_R (*((volatile uint32_t *)0x4005D41C))
  1554. #define GPIO_PORTF_AHB_AFSEL_R (*((volatile uint32_t *)0x4005D420))
  1555. #define GPIO_PORTF_AHB_DR2R_R (*((volatile uint32_t *)0x4005D500))
  1556. #define GPIO_PORTF_AHB_DR4R_R (*((volatile uint32_t *)0x4005D504))
  1557. #define GPIO_PORTF_AHB_DR8R_R (*((volatile uint32_t *)0x4005D508))
  1558. #define GPIO_PORTF_AHB_ODR_R (*((volatile uint32_t *)0x4005D50C))
  1559. #define GPIO_PORTF_AHB_PUR_R (*((volatile uint32_t *)0x4005D510))
  1560. #define GPIO_PORTF_AHB_PDR_R (*((volatile uint32_t *)0x4005D514))
  1561. #define GPIO_PORTF_AHB_SLR_R (*((volatile uint32_t *)0x4005D518))
  1562. #define GPIO_PORTF_AHB_DEN_R (*((volatile uint32_t *)0x4005D51C))
  1563. #define GPIO_PORTF_AHB_LOCK_R (*((volatile uint32_t *)0x4005D520))
  1564. #define GPIO_PORTF_AHB_CR_R (*((volatile uint32_t *)0x4005D524))
  1565. #define GPIO_PORTF_AHB_AMSEL_R (*((volatile uint32_t *)0x4005D528))
  1566. #define GPIO_PORTF_AHB_PCTL_R (*((volatile uint32_t *)0x4005D52C))
  1567. #define GPIO_PORTF_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005D530))
  1568. #define GPIO_PORTF_AHB_DMACTL_R (*((volatile uint32_t *)0x4005D534))
  1569. #define GPIO_PORTF_AHB_SI_R (*((volatile uint32_t *)0x4005D538))
  1570. #define GPIO_PORTF_AHB_DR12R_R (*((volatile uint32_t *)0x4005D53C))
  1571. #define GPIO_PORTF_AHB_WAKEPEN_R \
  1572. (*((volatile uint32_t *)0x4005D540))
  1573. #define GPIO_PORTF_AHB_WAKELVL_R \
  1574. (*((volatile uint32_t *)0x4005D544))
  1575. #define GPIO_PORTF_AHB_WAKESTAT_R \
  1576. (*((volatile uint32_t *)0x4005D548))
  1577. #define GPIO_PORTF_AHB_PP_R (*((volatile uint32_t *)0x4005DFC0))
  1578. #define GPIO_PORTF_AHB_PC_R (*((volatile uint32_t *)0x4005DFC4))
  1579. //*****************************************************************************
  1580. //
  1581. // GPIO registers (PORTG AHB)
  1582. //
  1583. //*****************************************************************************
  1584. #define GPIO_PORTG_AHB_DATA_BITS_R \
  1585. ((volatile uint32_t *)0x4005E000)
  1586. #define GPIO_PORTG_AHB_DATA_R (*((volatile uint32_t *)0x4005E3FC))
  1587. #define GPIO_PORTG_AHB_DIR_R (*((volatile uint32_t *)0x4005E400))
  1588. #define GPIO_PORTG_AHB_IS_R (*((volatile uint32_t *)0x4005E404))
  1589. #define GPIO_PORTG_AHB_IBE_R (*((volatile uint32_t *)0x4005E408))
  1590. #define GPIO_PORTG_AHB_IEV_R (*((volatile uint32_t *)0x4005E40C))
  1591. #define GPIO_PORTG_AHB_IM_R (*((volatile uint32_t *)0x4005E410))
  1592. #define GPIO_PORTG_AHB_RIS_R (*((volatile uint32_t *)0x4005E414))
  1593. #define GPIO_PORTG_AHB_MIS_R (*((volatile uint32_t *)0x4005E418))
  1594. #define GPIO_PORTG_AHB_ICR_R (*((volatile uint32_t *)0x4005E41C))
  1595. #define GPIO_PORTG_AHB_AFSEL_R (*((volatile uint32_t *)0x4005E420))
  1596. #define GPIO_PORTG_AHB_DR2R_R (*((volatile uint32_t *)0x4005E500))
  1597. #define GPIO_PORTG_AHB_DR4R_R (*((volatile uint32_t *)0x4005E504))
  1598. #define GPIO_PORTG_AHB_DR8R_R (*((volatile uint32_t *)0x4005E508))
  1599. #define GPIO_PORTG_AHB_ODR_R (*((volatile uint32_t *)0x4005E50C))
  1600. #define GPIO_PORTG_AHB_PUR_R (*((volatile uint32_t *)0x4005E510))
  1601. #define GPIO_PORTG_AHB_PDR_R (*((volatile uint32_t *)0x4005E514))
  1602. #define GPIO_PORTG_AHB_SLR_R (*((volatile uint32_t *)0x4005E518))
  1603. #define GPIO_PORTG_AHB_DEN_R (*((volatile uint32_t *)0x4005E51C))
  1604. #define GPIO_PORTG_AHB_LOCK_R (*((volatile uint32_t *)0x4005E520))
  1605. #define GPIO_PORTG_AHB_CR_R (*((volatile uint32_t *)0x4005E524))
  1606. #define GPIO_PORTG_AHB_AMSEL_R (*((volatile uint32_t *)0x4005E528))
  1607. #define GPIO_PORTG_AHB_PCTL_R (*((volatile uint32_t *)0x4005E52C))
  1608. #define GPIO_PORTG_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005E530))
  1609. #define GPIO_PORTG_AHB_DMACTL_R (*((volatile uint32_t *)0x4005E534))
  1610. #define GPIO_PORTG_AHB_SI_R (*((volatile uint32_t *)0x4005E538))
  1611. #define GPIO_PORTG_AHB_DR12R_R (*((volatile uint32_t *)0x4005E53C))
  1612. #define GPIO_PORTG_AHB_WAKEPEN_R \
  1613. (*((volatile uint32_t *)0x4005E540))
  1614. #define GPIO_PORTG_AHB_WAKELVL_R \
  1615. (*((volatile uint32_t *)0x4005E544))
  1616. #define GPIO_PORTG_AHB_WAKESTAT_R \
  1617. (*((volatile uint32_t *)0x4005E548))
  1618. #define GPIO_PORTG_AHB_PP_R (*((volatile uint32_t *)0x4005EFC0))
  1619. #define GPIO_PORTG_AHB_PC_R (*((volatile uint32_t *)0x4005EFC4))
  1620. //*****************************************************************************
  1621. //
  1622. // GPIO registers (PORTH AHB)
  1623. //
  1624. //*****************************************************************************
  1625. #define GPIO_PORTH_AHB_DATA_BITS_R \
  1626. ((volatile uint32_t *)0x4005F000)
  1627. #define GPIO_PORTH_AHB_DATA_R (*((volatile uint32_t *)0x4005F3FC))
  1628. #define GPIO_PORTH_AHB_DIR_R (*((volatile uint32_t *)0x4005F400))
  1629. #define GPIO_PORTH_AHB_IS_R (*((volatile uint32_t *)0x4005F404))
  1630. #define GPIO_PORTH_AHB_IBE_R (*((volatile uint32_t *)0x4005F408))
  1631. #define GPIO_PORTH_AHB_IEV_R (*((volatile uint32_t *)0x4005F40C))
  1632. #define GPIO_PORTH_AHB_IM_R (*((volatile uint32_t *)0x4005F410))
  1633. #define GPIO_PORTH_AHB_RIS_R (*((volatile uint32_t *)0x4005F414))
  1634. #define GPIO_PORTH_AHB_MIS_R (*((volatile uint32_t *)0x4005F418))
  1635. #define GPIO_PORTH_AHB_ICR_R (*((volatile uint32_t *)0x4005F41C))
  1636. #define GPIO_PORTH_AHB_AFSEL_R (*((volatile uint32_t *)0x4005F420))
  1637. #define GPIO_PORTH_AHB_DR2R_R (*((volatile uint32_t *)0x4005F500))
  1638. #define GPIO_PORTH_AHB_DR4R_R (*((volatile uint32_t *)0x4005F504))
  1639. #define GPIO_PORTH_AHB_DR8R_R (*((volatile uint32_t *)0x4005F508))
  1640. #define GPIO_PORTH_AHB_ODR_R (*((volatile uint32_t *)0x4005F50C))
  1641. #define GPIO_PORTH_AHB_PUR_R (*((volatile uint32_t *)0x4005F510))
  1642. #define GPIO_PORTH_AHB_PDR_R (*((volatile uint32_t *)0x4005F514))
  1643. #define GPIO_PORTH_AHB_SLR_R (*((volatile uint32_t *)0x4005F518))
  1644. #define GPIO_PORTH_AHB_DEN_R (*((volatile uint32_t *)0x4005F51C))
  1645. #define GPIO_PORTH_AHB_LOCK_R (*((volatile uint32_t *)0x4005F520))
  1646. #define GPIO_PORTH_AHB_CR_R (*((volatile uint32_t *)0x4005F524))
  1647. #define GPIO_PORTH_AHB_AMSEL_R (*((volatile uint32_t *)0x4005F528))
  1648. #define GPIO_PORTH_AHB_PCTL_R (*((volatile uint32_t *)0x4005F52C))
  1649. #define GPIO_PORTH_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005F530))
  1650. #define GPIO_PORTH_AHB_DMACTL_R (*((volatile uint32_t *)0x4005F534))
  1651. #define GPIO_PORTH_AHB_SI_R (*((volatile uint32_t *)0x4005F538))
  1652. #define GPIO_PORTH_AHB_DR12R_R (*((volatile uint32_t *)0x4005F53C))
  1653. #define GPIO_PORTH_AHB_WAKEPEN_R \
  1654. (*((volatile uint32_t *)0x4005F540))
  1655. #define GPIO_PORTH_AHB_WAKELVL_R \
  1656. (*((volatile uint32_t *)0x4005F544))
  1657. #define GPIO_PORTH_AHB_WAKESTAT_R \
  1658. (*((volatile uint32_t *)0x4005F548))
  1659. #define GPIO_PORTH_AHB_PP_R (*((volatile uint32_t *)0x4005FFC0))
  1660. #define GPIO_PORTH_AHB_PC_R (*((volatile uint32_t *)0x4005FFC4))
  1661. //*****************************************************************************
  1662. //
  1663. // GPIO registers (PORTJ AHB)
  1664. //
  1665. //*****************************************************************************
  1666. #define GPIO_PORTJ_AHB_DATA_BITS_R \
  1667. ((volatile uint32_t *)0x40060000)
  1668. #define GPIO_PORTJ_AHB_DATA_R (*((volatile uint32_t *)0x400603FC))
  1669. #define GPIO_PORTJ_AHB_DIR_R (*((volatile uint32_t *)0x40060400))
  1670. #define GPIO_PORTJ_AHB_IS_R (*((volatile uint32_t *)0x40060404))
  1671. #define GPIO_PORTJ_AHB_IBE_R (*((volatile uint32_t *)0x40060408))
  1672. #define GPIO_PORTJ_AHB_IEV_R (*((volatile uint32_t *)0x4006040C))
  1673. #define GPIO_PORTJ_AHB_IM_R (*((volatile uint32_t *)0x40060410))
  1674. #define GPIO_PORTJ_AHB_RIS_R (*((volatile uint32_t *)0x40060414))
  1675. #define GPIO_PORTJ_AHB_MIS_R (*((volatile uint32_t *)0x40060418))
  1676. #define GPIO_PORTJ_AHB_ICR_R (*((volatile uint32_t *)0x4006041C))
  1677. #define GPIO_PORTJ_AHB_AFSEL_R (*((volatile uint32_t *)0x40060420))
  1678. #define GPIO_PORTJ_AHB_DR2R_R (*((volatile uint32_t *)0x40060500))
  1679. #define GPIO_PORTJ_AHB_DR4R_R (*((volatile uint32_t *)0x40060504))
  1680. #define GPIO_PORTJ_AHB_DR8R_R (*((volatile uint32_t *)0x40060508))
  1681. #define GPIO_PORTJ_AHB_ODR_R (*((volatile uint32_t *)0x4006050C))
  1682. #define GPIO_PORTJ_AHB_PUR_R (*((volatile uint32_t *)0x40060510))
  1683. #define GPIO_PORTJ_AHB_PDR_R (*((volatile uint32_t *)0x40060514))
  1684. #define GPIO_PORTJ_AHB_SLR_R (*((volatile uint32_t *)0x40060518))
  1685. #define GPIO_PORTJ_AHB_DEN_R (*((volatile uint32_t *)0x4006051C))
  1686. #define GPIO_PORTJ_AHB_LOCK_R (*((volatile uint32_t *)0x40060520))
  1687. #define GPIO_PORTJ_AHB_CR_R (*((volatile uint32_t *)0x40060524))
  1688. #define GPIO_PORTJ_AHB_AMSEL_R (*((volatile uint32_t *)0x40060528))
  1689. #define GPIO_PORTJ_AHB_PCTL_R (*((volatile uint32_t *)0x4006052C))
  1690. #define GPIO_PORTJ_AHB_ADCCTL_R (*((volatile uint32_t *)0x40060530))
  1691. #define GPIO_PORTJ_AHB_DMACTL_R (*((volatile uint32_t *)0x40060534))
  1692. #define GPIO_PORTJ_AHB_SI_R (*((volatile uint32_t *)0x40060538))
  1693. #define GPIO_PORTJ_AHB_DR12R_R (*((volatile uint32_t *)0x4006053C))
  1694. #define GPIO_PORTJ_AHB_WAKEPEN_R \
  1695. (*((volatile uint32_t *)0x40060540))
  1696. #define GPIO_PORTJ_AHB_WAKELVL_R \
  1697. (*((volatile uint32_t *)0x40060544))
  1698. #define GPIO_PORTJ_AHB_WAKESTAT_R \
  1699. (*((volatile uint32_t *)0x40060548))
  1700. #define GPIO_PORTJ_AHB_PP_R (*((volatile uint32_t *)0x40060FC0))
  1701. #define GPIO_PORTJ_AHB_PC_R (*((volatile uint32_t *)0x40060FC4))
  1702. //*****************************************************************************
  1703. //
  1704. // GPIO registers (PORTK)
  1705. //
  1706. //*****************************************************************************
  1707. #define GPIO_PORTK_DATA_BITS_R ((volatile uint32_t *)0x40061000)
  1708. #define GPIO_PORTK_DATA_R (*((volatile uint32_t *)0x400613FC))
  1709. #define GPIO_PORTK_DIR_R (*((volatile uint32_t *)0x40061400))
  1710. #define GPIO_PORTK_IS_R (*((volatile uint32_t *)0x40061404))
  1711. #define GPIO_PORTK_IBE_R (*((volatile uint32_t *)0x40061408))
  1712. #define GPIO_PORTK_IEV_R (*((volatile uint32_t *)0x4006140C))
  1713. #define GPIO_PORTK_IM_R (*((volatile uint32_t *)0x40061410))
  1714. #define GPIO_PORTK_RIS_R (*((volatile uint32_t *)0x40061414))
  1715. #define GPIO_PORTK_MIS_R (*((volatile uint32_t *)0x40061418))
  1716. #define GPIO_PORTK_ICR_R (*((volatile uint32_t *)0x4006141C))
  1717. #define GPIO_PORTK_AFSEL_R (*((volatile uint32_t *)0x40061420))
  1718. #define GPIO_PORTK_DR2R_R (*((volatile uint32_t *)0x40061500))
  1719. #define GPIO_PORTK_DR4R_R (*((volatile uint32_t *)0x40061504))
  1720. #define GPIO_PORTK_DR8R_R (*((volatile uint32_t *)0x40061508))
  1721. #define GPIO_PORTK_ODR_R (*((volatile uint32_t *)0x4006150C))
  1722. #define GPIO_PORTK_PUR_R (*((volatile uint32_t *)0x40061510))
  1723. #define GPIO_PORTK_PDR_R (*((volatile uint32_t *)0x40061514))
  1724. #define GPIO_PORTK_SLR_R (*((volatile uint32_t *)0x40061518))
  1725. #define GPIO_PORTK_DEN_R (*((volatile uint32_t *)0x4006151C))
  1726. #define GPIO_PORTK_LOCK_R (*((volatile uint32_t *)0x40061520))
  1727. #define GPIO_PORTK_CR_R (*((volatile uint32_t *)0x40061524))
  1728. #define GPIO_PORTK_AMSEL_R (*((volatile uint32_t *)0x40061528))
  1729. #define GPIO_PORTK_PCTL_R (*((volatile uint32_t *)0x4006152C))
  1730. #define GPIO_PORTK_ADCCTL_R (*((volatile uint32_t *)0x40061530))
  1731. #define GPIO_PORTK_DMACTL_R (*((volatile uint32_t *)0x40061534))
  1732. #define GPIO_PORTK_SI_R (*((volatile uint32_t *)0x40061538))
  1733. #define GPIO_PORTK_DR12R_R (*((volatile uint32_t *)0x4006153C))
  1734. #define GPIO_PORTK_WAKEPEN_R (*((volatile uint32_t *)0x40061540))
  1735. #define GPIO_PORTK_WAKELVL_R (*((volatile uint32_t *)0x40061544))
  1736. #define GPIO_PORTK_WAKESTAT_R (*((volatile uint32_t *)0x40061548))
  1737. #define GPIO_PORTK_PP_R (*((volatile uint32_t *)0x40061FC0))
  1738. #define GPIO_PORTK_PC_R (*((volatile uint32_t *)0x40061FC4))
  1739. //*****************************************************************************
  1740. //
  1741. // GPIO registers (PORTL)
  1742. //
  1743. //*****************************************************************************
  1744. #define GPIO_PORTL_DATA_BITS_R ((volatile uint32_t *)0x40062000)
  1745. #define GPIO_PORTL_DATA_R (*((volatile uint32_t *)0x400623FC))
  1746. #define GPIO_PORTL_DIR_R (*((volatile uint32_t *)0x40062400))
  1747. #define GPIO_PORTL_IS_R (*((volatile uint32_t *)0x40062404))
  1748. #define GPIO_PORTL_IBE_R (*((volatile uint32_t *)0x40062408))
  1749. #define GPIO_PORTL_IEV_R (*((volatile uint32_t *)0x4006240C))
  1750. #define GPIO_PORTL_IM_R (*((volatile uint32_t *)0x40062410))
  1751. #define GPIO_PORTL_RIS_R (*((volatile uint32_t *)0x40062414))
  1752. #define GPIO_PORTL_MIS_R (*((volatile uint32_t *)0x40062418))
  1753. #define GPIO_PORTL_ICR_R (*((volatile uint32_t *)0x4006241C))
  1754. #define GPIO_PORTL_AFSEL_R (*((volatile uint32_t *)0x40062420))
  1755. #define GPIO_PORTL_DR2R_R (*((volatile uint32_t *)0x40062500))
  1756. #define GPIO_PORTL_DR4R_R (*((volatile uint32_t *)0x40062504))
  1757. #define GPIO_PORTL_DR8R_R (*((volatile uint32_t *)0x40062508))
  1758. #define GPIO_PORTL_ODR_R (*((volatile uint32_t *)0x4006250C))
  1759. #define GPIO_PORTL_PUR_R (*((volatile uint32_t *)0x40062510))
  1760. #define GPIO_PORTL_PDR_R (*((volatile uint32_t *)0x40062514))
  1761. #define GPIO_PORTL_SLR_R (*((volatile uint32_t *)0x40062518))
  1762. #define GPIO_PORTL_DEN_R (*((volatile uint32_t *)0x4006251C))
  1763. #define GPIO_PORTL_LOCK_R (*((volatile uint32_t *)0x40062520))
  1764. #define GPIO_PORTL_CR_R (*((volatile uint32_t *)0x40062524))
  1765. #define GPIO_PORTL_AMSEL_R (*((volatile uint32_t *)0x40062528))
  1766. #define GPIO_PORTL_PCTL_R (*((volatile uint32_t *)0x4006252C))
  1767. #define GPIO_PORTL_ADCCTL_R (*((volatile uint32_t *)0x40062530))
  1768. #define GPIO_PORTL_DMACTL_R (*((volatile uint32_t *)0x40062534))
  1769. #define GPIO_PORTL_SI_R (*((volatile uint32_t *)0x40062538))
  1770. #define GPIO_PORTL_DR12R_R (*((volatile uint32_t *)0x4006253C))
  1771. #define GPIO_PORTL_WAKEPEN_R (*((volatile uint32_t *)0x40062540))
  1772. #define GPIO_PORTL_WAKELVL_R (*((volatile uint32_t *)0x40062544))
  1773. #define GPIO_PORTL_WAKESTAT_R (*((volatile uint32_t *)0x40062548))
  1774. #define GPIO_PORTL_PP_R (*((volatile uint32_t *)0x40062FC0))
  1775. #define GPIO_PORTL_PC_R (*((volatile uint32_t *)0x40062FC4))
  1776. //*****************************************************************************
  1777. //
  1778. // GPIO registers (PORTM)
  1779. //
  1780. //*****************************************************************************
  1781. #define GPIO_PORTM_DATA_BITS_R ((volatile uint32_t *)0x40063000)
  1782. #define GPIO_PORTM_DATA_R (*((volatile uint32_t *)0x400633FC))
  1783. #define GPIO_PORTM_DIR_R (*((volatile uint32_t *)0x40063400))
  1784. #define GPIO_PORTM_IS_R (*((volatile uint32_t *)0x40063404))
  1785. #define GPIO_PORTM_IBE_R (*((volatile uint32_t *)0x40063408))
  1786. #define GPIO_PORTM_IEV_R (*((volatile uint32_t *)0x4006340C))
  1787. #define GPIO_PORTM_IM_R (*((volatile uint32_t *)0x40063410))
  1788. #define GPIO_PORTM_RIS_R (*((volatile uint32_t *)0x40063414))
  1789. #define GPIO_PORTM_MIS_R (*((volatile uint32_t *)0x40063418))
  1790. #define GPIO_PORTM_ICR_R (*((volatile uint32_t *)0x4006341C))
  1791. #define GPIO_PORTM_AFSEL_R (*((volatile uint32_t *)0x40063420))
  1792. #define GPIO_PORTM_DR2R_R (*((volatile uint32_t *)0x40063500))
  1793. #define GPIO_PORTM_DR4R_R (*((volatile uint32_t *)0x40063504))
  1794. #define GPIO_PORTM_DR8R_R (*((volatile uint32_t *)0x40063508))
  1795. #define GPIO_PORTM_ODR_R (*((volatile uint32_t *)0x4006350C))
  1796. #define GPIO_PORTM_PUR_R (*((volatile uint32_t *)0x40063510))
  1797. #define GPIO_PORTM_PDR_R (*((volatile uint32_t *)0x40063514))
  1798. #define GPIO_PORTM_SLR_R (*((volatile uint32_t *)0x40063518))
  1799. #define GPIO_PORTM_DEN_R (*((volatile uint32_t *)0x4006351C))
  1800. #define GPIO_PORTM_LOCK_R (*((volatile uint32_t *)0x40063520))
  1801. #define GPIO_PORTM_CR_R (*((volatile uint32_t *)0x40063524))
  1802. #define GPIO_PORTM_AMSEL_R (*((volatile uint32_t *)0x40063528))
  1803. #define GPIO_PORTM_PCTL_R (*((volatile uint32_t *)0x4006352C))
  1804. #define GPIO_PORTM_ADCCTL_R (*((volatile uint32_t *)0x40063530))
  1805. #define GPIO_PORTM_DMACTL_R (*((volatile uint32_t *)0x40063534))
  1806. #define GPIO_PORTM_SI_R (*((volatile uint32_t *)0x40063538))
  1807. #define GPIO_PORTM_DR12R_R (*((volatile uint32_t *)0x4006353C))
  1808. #define GPIO_PORTM_WAKEPEN_R (*((volatile uint32_t *)0x40063540))
  1809. #define GPIO_PORTM_WAKELVL_R (*((volatile uint32_t *)0x40063544))
  1810. #define GPIO_PORTM_WAKESTAT_R (*((volatile uint32_t *)0x40063548))
  1811. #define GPIO_PORTM_PP_R (*((volatile uint32_t *)0x40063FC0))
  1812. #define GPIO_PORTM_PC_R (*((volatile uint32_t *)0x40063FC4))
  1813. //*****************************************************************************
  1814. //
  1815. // GPIO registers (PORTN)
  1816. //
  1817. //*****************************************************************************
  1818. #define GPIO_PORTN_DATA_BITS_R ((volatile uint32_t *)0x40064000)
  1819. #define GPIO_PORTN_DATA_R (*((volatile uint32_t *)0x400643FC))
  1820. #define GPIO_PORTN_DIR_R (*((volatile uint32_t *)0x40064400))
  1821. #define GPIO_PORTN_IS_R (*((volatile uint32_t *)0x40064404))
  1822. #define GPIO_PORTN_IBE_R (*((volatile uint32_t *)0x40064408))
  1823. #define GPIO_PORTN_IEV_R (*((volatile uint32_t *)0x4006440C))
  1824. #define GPIO_PORTN_IM_R (*((volatile uint32_t *)0x40064410))
  1825. #define GPIO_PORTN_RIS_R (*((volatile uint32_t *)0x40064414))
  1826. #define GPIO_PORTN_MIS_R (*((volatile uint32_t *)0x40064418))
  1827. #define GPIO_PORTN_ICR_R (*((volatile uint32_t *)0x4006441C))
  1828. #define GPIO_PORTN_AFSEL_R (*((volatile uint32_t *)0x40064420))
  1829. #define GPIO_PORTN_DR2R_R (*((volatile uint32_t *)0x40064500))
  1830. #define GPIO_PORTN_DR4R_R (*((volatile uint32_t *)0x40064504))
  1831. #define GPIO_PORTN_DR8R_R (*((volatile uint32_t *)0x40064508))
  1832. #define GPIO_PORTN_ODR_R (*((volatile uint32_t *)0x4006450C))
  1833. #define GPIO_PORTN_PUR_R (*((volatile uint32_t *)0x40064510))
  1834. #define GPIO_PORTN_PDR_R (*((volatile uint32_t *)0x40064514))
  1835. #define GPIO_PORTN_SLR_R (*((volatile uint32_t *)0x40064518))
  1836. #define GPIO_PORTN_DEN_R (*((volatile uint32_t *)0x4006451C))
  1837. #define GPIO_PORTN_LOCK_R (*((volatile uint32_t *)0x40064520))
  1838. #define GPIO_PORTN_CR_R (*((volatile uint32_t *)0x40064524))
  1839. #define GPIO_PORTN_AMSEL_R (*((volatile uint32_t *)0x40064528))
  1840. #define GPIO_PORTN_PCTL_R (*((volatile uint32_t *)0x4006452C))
  1841. #define GPIO_PORTN_ADCCTL_R (*((volatile uint32_t *)0x40064530))
  1842. #define GPIO_PORTN_DMACTL_R (*((volatile uint32_t *)0x40064534))
  1843. #define GPIO_PORTN_SI_R (*((volatile uint32_t *)0x40064538))
  1844. #define GPIO_PORTN_DR12R_R (*((volatile uint32_t *)0x4006453C))
  1845. #define GPIO_PORTN_WAKEPEN_R (*((volatile uint32_t *)0x40064540))
  1846. #define GPIO_PORTN_WAKELVL_R (*((volatile uint32_t *)0x40064544))
  1847. #define GPIO_PORTN_WAKESTAT_R (*((volatile uint32_t *)0x40064548))
  1848. #define GPIO_PORTN_PP_R (*((volatile uint32_t *)0x40064FC0))
  1849. #define GPIO_PORTN_PC_R (*((volatile uint32_t *)0x40064FC4))
  1850. //*****************************************************************************
  1851. //
  1852. // GPIO registers (PORTP)
  1853. //
  1854. //*****************************************************************************
  1855. #define GPIO_PORTP_DATA_BITS_R ((volatile uint32_t *)0x40065000)
  1856. #define GPIO_PORTP_DATA_R (*((volatile uint32_t *)0x400653FC))
  1857. #define GPIO_PORTP_DIR_R (*((volatile uint32_t *)0x40065400))
  1858. #define GPIO_PORTP_IS_R (*((volatile uint32_t *)0x40065404))
  1859. #define GPIO_PORTP_IBE_R (*((volatile uint32_t *)0x40065408))
  1860. #define GPIO_PORTP_IEV_R (*((volatile uint32_t *)0x4006540C))
  1861. #define GPIO_PORTP_IM_R (*((volatile uint32_t *)0x40065410))
  1862. #define GPIO_PORTP_RIS_R (*((volatile uint32_t *)0x40065414))
  1863. #define GPIO_PORTP_MIS_R (*((volatile uint32_t *)0x40065418))
  1864. #define GPIO_PORTP_ICR_R (*((volatile uint32_t *)0x4006541C))
  1865. #define GPIO_PORTP_AFSEL_R (*((volatile uint32_t *)0x40065420))
  1866. #define GPIO_PORTP_DR2R_R (*((volatile uint32_t *)0x40065500))
  1867. #define GPIO_PORTP_DR4R_R (*((volatile uint32_t *)0x40065504))
  1868. #define GPIO_PORTP_DR8R_R (*((volatile uint32_t *)0x40065508))
  1869. #define GPIO_PORTP_ODR_R (*((volatile uint32_t *)0x4006550C))
  1870. #define GPIO_PORTP_PUR_R (*((volatile uint32_t *)0x40065510))
  1871. #define GPIO_PORTP_PDR_R (*((volatile uint32_t *)0x40065514))
  1872. #define GPIO_PORTP_SLR_R (*((volatile uint32_t *)0x40065518))
  1873. #define GPIO_PORTP_DEN_R (*((volatile uint32_t *)0x4006551C))
  1874. #define GPIO_PORTP_LOCK_R (*((volatile uint32_t *)0x40065520))
  1875. #define GPIO_PORTP_CR_R (*((volatile uint32_t *)0x40065524))
  1876. #define GPIO_PORTP_AMSEL_R (*((volatile uint32_t *)0x40065528))
  1877. #define GPIO_PORTP_PCTL_R (*((volatile uint32_t *)0x4006552C))
  1878. #define GPIO_PORTP_ADCCTL_R (*((volatile uint32_t *)0x40065530))
  1879. #define GPIO_PORTP_DMACTL_R (*((volatile uint32_t *)0x40065534))
  1880. #define GPIO_PORTP_SI_R (*((volatile uint32_t *)0x40065538))
  1881. #define GPIO_PORTP_DR12R_R (*((volatile uint32_t *)0x4006553C))
  1882. #define GPIO_PORTP_WAKEPEN_R (*((volatile uint32_t *)0x40065540))
  1883. #define GPIO_PORTP_WAKELVL_R (*((volatile uint32_t *)0x40065544))
  1884. #define GPIO_PORTP_WAKESTAT_R (*((volatile uint32_t *)0x40065548))
  1885. #define GPIO_PORTP_PP_R (*((volatile uint32_t *)0x40065FC0))
  1886. #define GPIO_PORTP_PC_R (*((volatile uint32_t *)0x40065FC4))
  1887. //*****************************************************************************
  1888. //
  1889. // GPIO registers (PORTQ)
  1890. //
  1891. //*****************************************************************************
  1892. #define GPIO_PORTQ_DATA_BITS_R ((volatile uint32_t *)0x40066000)
  1893. #define GPIO_PORTQ_DATA_R (*((volatile uint32_t *)0x400663FC))
  1894. #define GPIO_PORTQ_DIR_R (*((volatile uint32_t *)0x40066400))
  1895. #define GPIO_PORTQ_IS_R (*((volatile uint32_t *)0x40066404))
  1896. #define GPIO_PORTQ_IBE_R (*((volatile uint32_t *)0x40066408))
  1897. #define GPIO_PORTQ_IEV_R (*((volatile uint32_t *)0x4006640C))
  1898. #define GPIO_PORTQ_IM_R (*((volatile uint32_t *)0x40066410))
  1899. #define GPIO_PORTQ_RIS_R (*((volatile uint32_t *)0x40066414))
  1900. #define GPIO_PORTQ_MIS_R (*((volatile uint32_t *)0x40066418))
  1901. #define GPIO_PORTQ_ICR_R (*((volatile uint32_t *)0x4006641C))
  1902. #define GPIO_PORTQ_AFSEL_R (*((volatile uint32_t *)0x40066420))
  1903. #define GPIO_PORTQ_DR2R_R (*((volatile uint32_t *)0x40066500))
  1904. #define GPIO_PORTQ_DR4R_R (*((volatile uint32_t *)0x40066504))
  1905. #define GPIO_PORTQ_DR8R_R (*((volatile uint32_t *)0x40066508))
  1906. #define GPIO_PORTQ_ODR_R (*((volatile uint32_t *)0x4006650C))
  1907. #define GPIO_PORTQ_PUR_R (*((volatile uint32_t *)0x40066510))
  1908. #define GPIO_PORTQ_PDR_R (*((volatile uint32_t *)0x40066514))
  1909. #define GPIO_PORTQ_SLR_R (*((volatile uint32_t *)0x40066518))
  1910. #define GPIO_PORTQ_DEN_R (*((volatile uint32_t *)0x4006651C))
  1911. #define GPIO_PORTQ_LOCK_R (*((volatile uint32_t *)0x40066520))
  1912. #define GPIO_PORTQ_CR_R (*((volatile uint32_t *)0x40066524))
  1913. #define GPIO_PORTQ_AMSEL_R (*((volatile uint32_t *)0x40066528))
  1914. #define GPIO_PORTQ_PCTL_R (*((volatile uint32_t *)0x4006652C))
  1915. #define GPIO_PORTQ_ADCCTL_R (*((volatile uint32_t *)0x40066530))
  1916. #define GPIO_PORTQ_DMACTL_R (*((volatile uint32_t *)0x40066534))
  1917. #define GPIO_PORTQ_SI_R (*((volatile uint32_t *)0x40066538))
  1918. #define GPIO_PORTQ_DR12R_R (*((volatile uint32_t *)0x4006653C))
  1919. #define GPIO_PORTQ_WAKEPEN_R (*((volatile uint32_t *)0x40066540))
  1920. #define GPIO_PORTQ_WAKELVL_R (*((volatile uint32_t *)0x40066544))
  1921. #define GPIO_PORTQ_WAKESTAT_R (*((volatile uint32_t *)0x40066548))
  1922. #define GPIO_PORTQ_PP_R (*((volatile uint32_t *)0x40066FC0))
  1923. #define GPIO_PORTQ_PC_R (*((volatile uint32_t *)0x40066FC4))
  1924. //*****************************************************************************
  1925. //
  1926. // EEPROM registers (EEPROM)
  1927. //
  1928. //*****************************************************************************
  1929. #define EEPROM_EESIZE_R (*((volatile uint32_t *)0x400AF000))
  1930. #define EEPROM_EEBLOCK_R (*((volatile uint32_t *)0x400AF004))
  1931. #define EEPROM_EEOFFSET_R (*((volatile uint32_t *)0x400AF008))
  1932. #define EEPROM_EERDWR_R (*((volatile uint32_t *)0x400AF010))
  1933. #define EEPROM_EERDWRINC_R (*((volatile uint32_t *)0x400AF014))
  1934. #define EEPROM_EEDONE_R (*((volatile uint32_t *)0x400AF018))
  1935. #define EEPROM_EESUPP_R (*((volatile uint32_t *)0x400AF01C))
  1936. #define EEPROM_EEUNLOCK_R (*((volatile uint32_t *)0x400AF020))
  1937. #define EEPROM_EEPROT_R (*((volatile uint32_t *)0x400AF030))
  1938. #define EEPROM_EEPASS0_R (*((volatile uint32_t *)0x400AF034))
  1939. #define EEPROM_EEPASS1_R (*((volatile uint32_t *)0x400AF038))
  1940. #define EEPROM_EEPASS2_R (*((volatile uint32_t *)0x400AF03C))
  1941. #define EEPROM_EEINT_R (*((volatile uint32_t *)0x400AF040))
  1942. #define EEPROM_EEHIDE0_R (*((volatile uint32_t *)0x400AF050))
  1943. #define EEPROM_EEHIDE1_R (*((volatile uint32_t *)0x400AF054))
  1944. #define EEPROM_EEHIDE2_R (*((volatile uint32_t *)0x400AF058))
  1945. #define EEPROM_EEDBGME_R (*((volatile uint32_t *)0x400AF080))
  1946. #define EEPROM_PP_R (*((volatile uint32_t *)0x400AFFC0))
  1947. //*****************************************************************************
  1948. //
  1949. // I2C registers (I2C8)
  1950. //
  1951. //*****************************************************************************
  1952. #define I2C8_MSA_R (*((volatile uint32_t *)0x400B8000))
  1953. #define I2C8_MCS_R (*((volatile uint32_t *)0x400B8004))
  1954. #define I2C8_MDR_R (*((volatile uint32_t *)0x400B8008))
  1955. #define I2C8_MTPR_R (*((volatile uint32_t *)0x400B800C))
  1956. #define I2C8_MIMR_R (*((volatile uint32_t *)0x400B8010))
  1957. #define I2C8_MRIS_R (*((volatile uint32_t *)0x400B8014))
  1958. #define I2C8_MMIS_R (*((volatile uint32_t *)0x400B8018))
  1959. #define I2C8_MICR_R (*((volatile uint32_t *)0x400B801C))
  1960. #define I2C8_MCR_R (*((volatile uint32_t *)0x400B8020))
  1961. #define I2C8_MCLKOCNT_R (*((volatile uint32_t *)0x400B8024))
  1962. #define I2C8_MBMON_R (*((volatile uint32_t *)0x400B802C))
  1963. #define I2C8_MBLEN_R (*((volatile uint32_t *)0x400B8030))
  1964. #define I2C8_MBCNT_R (*((volatile uint32_t *)0x400B8034))
  1965. #define I2C8_SOAR_R (*((volatile uint32_t *)0x400B8800))
  1966. #define I2C8_SCSR_R (*((volatile uint32_t *)0x400B8804))
  1967. #define I2C8_SDR_R (*((volatile uint32_t *)0x400B8808))
  1968. #define I2C8_SIMR_R (*((volatile uint32_t *)0x400B880C))
  1969. #define I2C8_SRIS_R (*((volatile uint32_t *)0x400B8810))
  1970. #define I2C8_SMIS_R (*((volatile uint32_t *)0x400B8814))
  1971. #define I2C8_SICR_R (*((volatile uint32_t *)0x400B8818))
  1972. #define I2C8_SOAR2_R (*((volatile uint32_t *)0x400B881C))
  1973. #define I2C8_SACKCTL_R (*((volatile uint32_t *)0x400B8820))
  1974. #define I2C8_FIFODATA_R (*((volatile uint32_t *)0x400B8F00))
  1975. #define I2C8_FIFOCTL_R (*((volatile uint32_t *)0x400B8F04))
  1976. #define I2C8_FIFOSTATUS_R (*((volatile uint32_t *)0x400B8F08))
  1977. #define I2C8_PP_R (*((volatile uint32_t *)0x400B8FC0))
  1978. #define I2C8_PC_R (*((volatile uint32_t *)0x400B8FC4))
  1979. //*****************************************************************************
  1980. //
  1981. // I2C registers (I2C9)
  1982. //
  1983. //*****************************************************************************
  1984. #define I2C9_MSA_R (*((volatile uint32_t *)0x400B9000))
  1985. #define I2C9_MCS_R (*((volatile uint32_t *)0x400B9004))
  1986. #define I2C9_MDR_R (*((volatile uint32_t *)0x400B9008))
  1987. #define I2C9_MTPR_R (*((volatile uint32_t *)0x400B900C))
  1988. #define I2C9_MIMR_R (*((volatile uint32_t *)0x400B9010))
  1989. #define I2C9_MRIS_R (*((volatile uint32_t *)0x400B9014))
  1990. #define I2C9_MMIS_R (*((volatile uint32_t *)0x400B9018))
  1991. #define I2C9_MICR_R (*((volatile uint32_t *)0x400B901C))
  1992. #define I2C9_MCR_R (*((volatile uint32_t *)0x400B9020))
  1993. #define I2C9_MCLKOCNT_R (*((volatile uint32_t *)0x400B9024))
  1994. #define I2C9_MBMON_R (*((volatile uint32_t *)0x400B902C))
  1995. #define I2C9_MBLEN_R (*((volatile uint32_t *)0x400B9030))
  1996. #define I2C9_MBCNT_R (*((volatile uint32_t *)0x400B9034))
  1997. #define I2C9_SOAR_R (*((volatile uint32_t *)0x400B9800))
  1998. #define I2C9_SCSR_R (*((volatile uint32_t *)0x400B9804))
  1999. #define I2C9_SDR_R (*((volatile uint32_t *)0x400B9808))
  2000. #define I2C9_SIMR_R (*((volatile uint32_t *)0x400B980C))
  2001. #define I2C9_SRIS_R (*((volatile uint32_t *)0x400B9810))
  2002. #define I2C9_SMIS_R (*((volatile uint32_t *)0x400B9814))
  2003. #define I2C9_SICR_R (*((volatile uint32_t *)0x400B9818))
  2004. #define I2C9_SOAR2_R (*((volatile uint32_t *)0x400B981C))
  2005. #define I2C9_SACKCTL_R (*((volatile uint32_t *)0x400B9820))
  2006. #define I2C9_FIFODATA_R (*((volatile uint32_t *)0x400B9F00))
  2007. #define I2C9_FIFOCTL_R (*((volatile uint32_t *)0x400B9F04))
  2008. #define I2C9_FIFOSTATUS_R (*((volatile uint32_t *)0x400B9F08))
  2009. #define I2C9_PP_R (*((volatile uint32_t *)0x400B9FC0))
  2010. #define I2C9_PC_R (*((volatile uint32_t *)0x400B9FC4))
  2011. //*****************************************************************************
  2012. //
  2013. // I2C registers (I2C4)
  2014. //
  2015. //*****************************************************************************
  2016. #define I2C4_MSA_R (*((volatile uint32_t *)0x400C0000))
  2017. #define I2C4_MCS_R (*((volatile uint32_t *)0x400C0004))
  2018. #define I2C4_MDR_R (*((volatile uint32_t *)0x400C0008))
  2019. #define I2C4_MTPR_R (*((volatile uint32_t *)0x400C000C))
  2020. #define I2C4_MIMR_R (*((volatile uint32_t *)0x400C0010))
  2021. #define I2C4_MRIS_R (*((volatile uint32_t *)0x400C0014))
  2022. #define I2C4_MMIS_R (*((volatile uint32_t *)0x400C0018))
  2023. #define I2C4_MICR_R (*((volatile uint32_t *)0x400C001C))
  2024. #define I2C4_MCR_R (*((volatile uint32_t *)0x400C0020))
  2025. #define I2C4_MCLKOCNT_R (*((volatile uint32_t *)0x400C0024))
  2026. #define I2C4_MBMON_R (*((volatile uint32_t *)0x400C002C))
  2027. #define I2C4_MBLEN_R (*((volatile uint32_t *)0x400C0030))
  2028. #define I2C4_MBCNT_R (*((volatile uint32_t *)0x400C0034))
  2029. #define I2C4_SOAR_R (*((volatile uint32_t *)0x400C0800))
  2030. #define I2C4_SCSR_R (*((volatile uint32_t *)0x400C0804))
  2031. #define I2C4_SDR_R (*((volatile uint32_t *)0x400C0808))
  2032. #define I2C4_SIMR_R (*((volatile uint32_t *)0x400C080C))
  2033. #define I2C4_SRIS_R (*((volatile uint32_t *)0x400C0810))
  2034. #define I2C4_SMIS_R (*((volatile uint32_t *)0x400C0814))
  2035. #define I2C4_SICR_R (*((volatile uint32_t *)0x400C0818))
  2036. #define I2C4_SOAR2_R (*((volatile uint32_t *)0x400C081C))
  2037. #define I2C4_SACKCTL_R (*((volatile uint32_t *)0x400C0820))
  2038. #define I2C4_FIFODATA_R (*((volatile uint32_t *)0x400C0F00))
  2039. #define I2C4_FIFOCTL_R (*((volatile uint32_t *)0x400C0F04))
  2040. #define I2C4_FIFOSTATUS_R (*((volatile uint32_t *)0x400C0F08))
  2041. #define I2C4_PP_R (*((volatile uint32_t *)0x400C0FC0))
  2042. #define I2C4_PC_R (*((volatile uint32_t *)0x400C0FC4))
  2043. //*****************************************************************************
  2044. //
  2045. // I2C registers (I2C5)
  2046. //
  2047. //*****************************************************************************
  2048. #define I2C5_MSA_R (*((volatile uint32_t *)0x400C1000))
  2049. #define I2C5_MCS_R (*((volatile uint32_t *)0x400C1004))
  2050. #define I2C5_MDR_R (*((volatile uint32_t *)0x400C1008))
  2051. #define I2C5_MTPR_R (*((volatile uint32_t *)0x400C100C))
  2052. #define I2C5_MIMR_R (*((volatile uint32_t *)0x400C1010))
  2053. #define I2C5_MRIS_R (*((volatile uint32_t *)0x400C1014))
  2054. #define I2C5_MMIS_R (*((volatile uint32_t *)0x400C1018))
  2055. #define I2C5_MICR_R (*((volatile uint32_t *)0x400C101C))
  2056. #define I2C5_MCR_R (*((volatile uint32_t *)0x400C1020))
  2057. #define I2C5_MCLKOCNT_R (*((volatile uint32_t *)0x400C1024))
  2058. #define I2C5_MBMON_R (*((volatile uint32_t *)0x400C102C))
  2059. #define I2C5_MBLEN_R (*((volatile uint32_t *)0x400C1030))
  2060. #define I2C5_MBCNT_R (*((volatile uint32_t *)0x400C1034))
  2061. #define I2C5_SOAR_R (*((volatile uint32_t *)0x400C1800))
  2062. #define I2C5_SCSR_R (*((volatile uint32_t *)0x400C1804))
  2063. #define I2C5_SDR_R (*((volatile uint32_t *)0x400C1808))
  2064. #define I2C5_SIMR_R (*((volatile uint32_t *)0x400C180C))
  2065. #define I2C5_SRIS_R (*((volatile uint32_t *)0x400C1810))
  2066. #define I2C5_SMIS_R (*((volatile uint32_t *)0x400C1814))
  2067. #define I2C5_SICR_R (*((volatile uint32_t *)0x400C1818))
  2068. #define I2C5_SOAR2_R (*((volatile uint32_t *)0x400C181C))
  2069. #define I2C5_SACKCTL_R (*((volatile uint32_t *)0x400C1820))
  2070. #define I2C5_FIFODATA_R (*((volatile uint32_t *)0x400C1F00))
  2071. #define I2C5_FIFOCTL_R (*((volatile uint32_t *)0x400C1F04))
  2072. #define I2C5_FIFOSTATUS_R (*((volatile uint32_t *)0x400C1F08))
  2073. #define I2C5_PP_R (*((volatile uint32_t *)0x400C1FC0))
  2074. #define I2C5_PC_R (*((volatile uint32_t *)0x400C1FC4))
  2075. //*****************************************************************************
  2076. //
  2077. // I2C registers (I2C6)
  2078. //
  2079. //*****************************************************************************
  2080. #define I2C6_MSA_R (*((volatile uint32_t *)0x400C2000))
  2081. #define I2C6_MCS_R (*((volatile uint32_t *)0x400C2004))
  2082. #define I2C6_MDR_R (*((volatile uint32_t *)0x400C2008))
  2083. #define I2C6_MTPR_R (*((volatile uint32_t *)0x400C200C))
  2084. #define I2C6_MIMR_R (*((volatile uint32_t *)0x400C2010))
  2085. #define I2C6_MRIS_R (*((volatile uint32_t *)0x400C2014))
  2086. #define I2C6_MMIS_R (*((volatile uint32_t *)0x400C2018))
  2087. #define I2C6_MICR_R (*((volatile uint32_t *)0x400C201C))
  2088. #define I2C6_MCR_R (*((volatile uint32_t *)0x400C2020))
  2089. #define I2C6_MCLKOCNT_R (*((volatile uint32_t *)0x400C2024))
  2090. #define I2C6_MBMON_R (*((volatile uint32_t *)0x400C202C))
  2091. #define I2C6_MBLEN_R (*((volatile uint32_t *)0x400C2030))
  2092. #define I2C6_MBCNT_R (*((volatile uint32_t *)0x400C2034))
  2093. #define I2C6_SOAR_R (*((volatile uint32_t *)0x400C2800))
  2094. #define I2C6_SCSR_R (*((volatile uint32_t *)0x400C2804))
  2095. #define I2C6_SDR_R (*((volatile uint32_t *)0x400C2808))
  2096. #define I2C6_SIMR_R (*((volatile uint32_t *)0x400C280C))
  2097. #define I2C6_SRIS_R (*((volatile uint32_t *)0x400C2810))
  2098. #define I2C6_SMIS_R (*((volatile uint32_t *)0x400C2814))
  2099. #define I2C6_SICR_R (*((volatile uint32_t *)0x400C2818))
  2100. #define I2C6_SOAR2_R (*((volatile uint32_t *)0x400C281C))
  2101. #define I2C6_SACKCTL_R (*((volatile uint32_t *)0x400C2820))
  2102. #define I2C6_FIFODATA_R (*((volatile uint32_t *)0x400C2F00))
  2103. #define I2C6_FIFOCTL_R (*((volatile uint32_t *)0x400C2F04))
  2104. #define I2C6_FIFOSTATUS_R (*((volatile uint32_t *)0x400C2F08))
  2105. #define I2C6_PP_R (*((volatile uint32_t *)0x400C2FC0))
  2106. #define I2C6_PC_R (*((volatile uint32_t *)0x400C2FC4))
  2107. //*****************************************************************************
  2108. //
  2109. // I2C registers (I2C7)
  2110. //
  2111. //*****************************************************************************
  2112. #define I2C7_MSA_R (*((volatile uint32_t *)0x400C3000))
  2113. #define I2C7_MCS_R (*((volatile uint32_t *)0x400C3004))
  2114. #define I2C7_MDR_R (*((volatile uint32_t *)0x400C3008))
  2115. #define I2C7_MTPR_R (*((volatile uint32_t *)0x400C300C))
  2116. #define I2C7_MIMR_R (*((volatile uint32_t *)0x400C3010))
  2117. #define I2C7_MRIS_R (*((volatile uint32_t *)0x400C3014))
  2118. #define I2C7_MMIS_R (*((volatile uint32_t *)0x400C3018))
  2119. #define I2C7_MICR_R (*((volatile uint32_t *)0x400C301C))
  2120. #define I2C7_MCR_R (*((volatile uint32_t *)0x400C3020))
  2121. #define I2C7_MCLKOCNT_R (*((volatile uint32_t *)0x400C3024))
  2122. #define I2C7_MBMON_R (*((volatile uint32_t *)0x400C302C))
  2123. #define I2C7_MBLEN_R (*((volatile uint32_t *)0x400C3030))
  2124. #define I2C7_MBCNT_R (*((volatile uint32_t *)0x400C3034))
  2125. #define I2C7_SOAR_R (*((volatile uint32_t *)0x400C3800))
  2126. #define I2C7_SCSR_R (*((volatile uint32_t *)0x400C3804))
  2127. #define I2C7_SDR_R (*((volatile uint32_t *)0x400C3808))
  2128. #define I2C7_SIMR_R (*((volatile uint32_t *)0x400C380C))
  2129. #define I2C7_SRIS_R (*((volatile uint32_t *)0x400C3810))
  2130. #define I2C7_SMIS_R (*((volatile uint32_t *)0x400C3814))
  2131. #define I2C7_SICR_R (*((volatile uint32_t *)0x400C3818))
  2132. #define I2C7_SOAR2_R (*((volatile uint32_t *)0x400C381C))
  2133. #define I2C7_SACKCTL_R (*((volatile uint32_t *)0x400C3820))
  2134. #define I2C7_FIFODATA_R (*((volatile uint32_t *)0x400C3F00))
  2135. #define I2C7_FIFOCTL_R (*((volatile uint32_t *)0x400C3F04))
  2136. #define I2C7_FIFOSTATUS_R (*((volatile uint32_t *)0x400C3F08))
  2137. #define I2C7_PP_R (*((volatile uint32_t *)0x400C3FC0))
  2138. #define I2C7_PC_R (*((volatile uint32_t *)0x400C3FC4))
  2139. //*****************************************************************************
  2140. //
  2141. // External Peripheral Interface registers (EPI0)
  2142. //
  2143. //*****************************************************************************
  2144. #define EPI0_CFG_R (*((volatile uint32_t *)0x400D0000))
  2145. #define EPI0_BAUD_R (*((volatile uint32_t *)0x400D0004))
  2146. #define EPI0_BAUD2_R (*((volatile uint32_t *)0x400D0008))
  2147. #define EPI0_HB16CFG_R (*((volatile uint32_t *)0x400D0010))
  2148. #define EPI0_GPCFG_R (*((volatile uint32_t *)0x400D0010))
  2149. #define EPI0_SDRAMCFG_R (*((volatile uint32_t *)0x400D0010))
  2150. #define EPI0_HB8CFG_R (*((volatile uint32_t *)0x400D0010))
  2151. #define EPI0_HB8CFG2_R (*((volatile uint32_t *)0x400D0014))
  2152. #define EPI0_HB16CFG2_R (*((volatile uint32_t *)0x400D0014))
  2153. #define EPI0_ADDRMAP_R (*((volatile uint32_t *)0x400D001C))
  2154. #define EPI0_RSIZE0_R (*((volatile uint32_t *)0x400D0020))
  2155. #define EPI0_RADDR0_R (*((volatile uint32_t *)0x400D0024))
  2156. #define EPI0_RPSTD0_R (*((volatile uint32_t *)0x400D0028))
  2157. #define EPI0_RSIZE1_R (*((volatile uint32_t *)0x400D0030))
  2158. #define EPI0_RADDR1_R (*((volatile uint32_t *)0x400D0034))
  2159. #define EPI0_RPSTD1_R (*((volatile uint32_t *)0x400D0038))
  2160. #define EPI0_STAT_R (*((volatile uint32_t *)0x400D0060))
  2161. #define EPI0_RFIFOCNT_R (*((volatile uint32_t *)0x400D006C))
  2162. #define EPI0_READFIFO0_R (*((volatile uint32_t *)0x400D0070))
  2163. #define EPI0_READFIFO1_R (*((volatile uint32_t *)0x400D0074))
  2164. #define EPI0_READFIFO2_R (*((volatile uint32_t *)0x400D0078))
  2165. #define EPI0_READFIFO3_R (*((volatile uint32_t *)0x400D007C))
  2166. #define EPI0_READFIFO4_R (*((volatile uint32_t *)0x400D0080))
  2167. #define EPI0_READFIFO5_R (*((volatile uint32_t *)0x400D0084))
  2168. #define EPI0_READFIFO6_R (*((volatile uint32_t *)0x400D0088))
  2169. #define EPI0_READFIFO7_R (*((volatile uint32_t *)0x400D008C))
  2170. #define EPI0_FIFOLVL_R (*((volatile uint32_t *)0x400D0200))
  2171. #define EPI0_WFIFOCNT_R (*((volatile uint32_t *)0x400D0204))
  2172. #define EPI0_DMATXCNT_R (*((volatile uint32_t *)0x400D0208))
  2173. #define EPI0_IM_R (*((volatile uint32_t *)0x400D0210))
  2174. #define EPI0_RIS_R (*((volatile uint32_t *)0x400D0214))
  2175. #define EPI0_MIS_R (*((volatile uint32_t *)0x400D0218))
  2176. #define EPI0_EISC_R (*((volatile uint32_t *)0x400D021C))
  2177. #define EPI0_HB8CFG3_R (*((volatile uint32_t *)0x400D0308))
  2178. #define EPI0_HB16CFG3_R (*((volatile uint32_t *)0x400D0308))
  2179. #define EPI0_HB16CFG4_R (*((volatile uint32_t *)0x400D030C))
  2180. #define EPI0_HB8CFG4_R (*((volatile uint32_t *)0x400D030C))
  2181. #define EPI0_HB8TIME_R (*((volatile uint32_t *)0x400D0310))
  2182. #define EPI0_HB16TIME_R (*((volatile uint32_t *)0x400D0310))
  2183. #define EPI0_HB8TIME2_R (*((volatile uint32_t *)0x400D0314))
  2184. #define EPI0_HB16TIME2_R (*((volatile uint32_t *)0x400D0314))
  2185. #define EPI0_HB16TIME3_R (*((volatile uint32_t *)0x400D0318))
  2186. #define EPI0_HB8TIME3_R (*((volatile uint32_t *)0x400D0318))
  2187. #define EPI0_HB8TIME4_R (*((volatile uint32_t *)0x400D031C))
  2188. #define EPI0_HB16TIME4_R (*((volatile uint32_t *)0x400D031C))
  2189. #define EPI0_HBPSRAM_R (*((volatile uint32_t *)0x400D0360))
  2190. //*****************************************************************************
  2191. //
  2192. // Timer registers (TIMER6)
  2193. //
  2194. //*****************************************************************************
  2195. #define TIMER6_CFG_R (*((volatile uint32_t *)0x400E0000))
  2196. #define TIMER6_TAMR_R (*((volatile uint32_t *)0x400E0004))
  2197. #define TIMER6_TBMR_R (*((volatile uint32_t *)0x400E0008))
  2198. #define TIMER6_CTL_R (*((volatile uint32_t *)0x400E000C))
  2199. #define TIMER6_SYNC_R (*((volatile uint32_t *)0x400E0010))
  2200. #define TIMER6_IMR_R (*((volatile uint32_t *)0x400E0018))
  2201. #define TIMER6_RIS_R (*((volatile uint32_t *)0x400E001C))
  2202. #define TIMER6_MIS_R (*((volatile uint32_t *)0x400E0020))
  2203. #define TIMER6_ICR_R (*((volatile uint32_t *)0x400E0024))
  2204. #define TIMER6_TAILR_R (*((volatile uint32_t *)0x400E0028))
  2205. #define TIMER6_TBILR_R (*((volatile uint32_t *)0x400E002C))
  2206. #define TIMER6_TAMATCHR_R (*((volatile uint32_t *)0x400E0030))
  2207. #define TIMER6_TBMATCHR_R (*((volatile uint32_t *)0x400E0034))
  2208. #define TIMER6_TAPR_R (*((volatile uint32_t *)0x400E0038))
  2209. #define TIMER6_TBPR_R (*((volatile uint32_t *)0x400E003C))
  2210. #define TIMER6_TAPMR_R (*((volatile uint32_t *)0x400E0040))
  2211. #define TIMER6_TBPMR_R (*((volatile uint32_t *)0x400E0044))
  2212. #define TIMER6_TAR_R (*((volatile uint32_t *)0x400E0048))
  2213. #define TIMER6_TBR_R (*((volatile uint32_t *)0x400E004C))
  2214. #define TIMER6_TAV_R (*((volatile uint32_t *)0x400E0050))
  2215. #define TIMER6_TBV_R (*((volatile uint32_t *)0x400E0054))
  2216. #define TIMER6_RTCPD_R (*((volatile uint32_t *)0x400E0058))
  2217. #define TIMER6_TAPS_R (*((volatile uint32_t *)0x400E005C))
  2218. #define TIMER6_TBPS_R (*((volatile uint32_t *)0x400E0060))
  2219. #define TIMER6_DMAEV_R (*((volatile uint32_t *)0x400E006C))
  2220. #define TIMER6_ADCEV_R (*((volatile uint32_t *)0x400E0070))
  2221. #define TIMER6_PP_R (*((volatile uint32_t *)0x400E0FC0))
  2222. #define TIMER6_CC_R (*((volatile uint32_t *)0x400E0FC8))
  2223. //*****************************************************************************
  2224. //
  2225. // Timer registers (TIMER7)
  2226. //
  2227. //*****************************************************************************
  2228. #define TIMER7_CFG_R (*((volatile uint32_t *)0x400E1000))
  2229. #define TIMER7_TAMR_R (*((volatile uint32_t *)0x400E1004))
  2230. #define TIMER7_TBMR_R (*((volatile uint32_t *)0x400E1008))
  2231. #define TIMER7_CTL_R (*((volatile uint32_t *)0x400E100C))
  2232. #define TIMER7_SYNC_R (*((volatile uint32_t *)0x400E1010))
  2233. #define TIMER7_IMR_R (*((volatile uint32_t *)0x400E1018))
  2234. #define TIMER7_RIS_R (*((volatile uint32_t *)0x400E101C))
  2235. #define TIMER7_MIS_R (*((volatile uint32_t *)0x400E1020))
  2236. #define TIMER7_ICR_R (*((volatile uint32_t *)0x400E1024))
  2237. #define TIMER7_TAILR_R (*((volatile uint32_t *)0x400E1028))
  2238. #define TIMER7_TBILR_R (*((volatile uint32_t *)0x400E102C))
  2239. #define TIMER7_TAMATCHR_R (*((volatile uint32_t *)0x400E1030))
  2240. #define TIMER7_TBMATCHR_R (*((volatile uint32_t *)0x400E1034))
  2241. #define TIMER7_TAPR_R (*((volatile uint32_t *)0x400E1038))
  2242. #define TIMER7_TBPR_R (*((volatile uint32_t *)0x400E103C))
  2243. #define TIMER7_TAPMR_R (*((volatile uint32_t *)0x400E1040))
  2244. #define TIMER7_TBPMR_R (*((volatile uint32_t *)0x400E1044))
  2245. #define TIMER7_TAR_R (*((volatile uint32_t *)0x400E1048))
  2246. #define TIMER7_TBR_R (*((volatile uint32_t *)0x400E104C))
  2247. #define TIMER7_TAV_R (*((volatile uint32_t *)0x400E1050))
  2248. #define TIMER7_TBV_R (*((volatile uint32_t *)0x400E1054))
  2249. #define TIMER7_RTCPD_R (*((volatile uint32_t *)0x400E1058))
  2250. #define TIMER7_TAPS_R (*((volatile uint32_t *)0x400E105C))
  2251. #define TIMER7_TBPS_R (*((volatile uint32_t *)0x400E1060))
  2252. #define TIMER7_DMAEV_R (*((volatile uint32_t *)0x400E106C))
  2253. #define TIMER7_ADCEV_R (*((volatile uint32_t *)0x400E1070))
  2254. #define TIMER7_PP_R (*((volatile uint32_t *)0x400E1FC0))
  2255. #define TIMER7_CC_R (*((volatile uint32_t *)0x400E1FC8))
  2256. //*****************************************************************************
  2257. //
  2258. // EMAC registers (EMAC0)
  2259. //
  2260. //*****************************************************************************
  2261. #define EMAC0_CFG_R (*((volatile uint32_t *)0x400EC000))
  2262. #define EMAC0_FRAMEFLTR_R (*((volatile uint32_t *)0x400EC004))
  2263. #define EMAC0_HASHTBLH_R (*((volatile uint32_t *)0x400EC008))
  2264. #define EMAC0_HASHTBLL_R (*((volatile uint32_t *)0x400EC00C))
  2265. #define EMAC0_MIIADDR_R (*((volatile uint32_t *)0x400EC010))
  2266. #define EMAC0_MIIDATA_R (*((volatile uint32_t *)0x400EC014))
  2267. #define EMAC0_FLOWCTL_R (*((volatile uint32_t *)0x400EC018))
  2268. #define EMAC0_VLANTG_R (*((volatile uint32_t *)0x400EC01C))
  2269. #define EMAC0_STATUS_R (*((volatile uint32_t *)0x400EC024))
  2270. #define EMAC0_RWUFF_R (*((volatile uint32_t *)0x400EC028))
  2271. #define EMAC0_PMTCTLSTAT_R (*((volatile uint32_t *)0x400EC02C))
  2272. #define EMAC0_RIS_R (*((volatile uint32_t *)0x400EC038))
  2273. #define EMAC0_IM_R (*((volatile uint32_t *)0x400EC03C))
  2274. #define EMAC0_ADDR0H_R (*((volatile uint32_t *)0x400EC040))
  2275. #define EMAC0_ADDR0L_R (*((volatile uint32_t *)0x400EC044))
  2276. #define EMAC0_ADDR1H_R (*((volatile uint32_t *)0x400EC048))
  2277. #define EMAC0_ADDR1L_R (*((volatile uint32_t *)0x400EC04C))
  2278. #define EMAC0_ADDR2H_R (*((volatile uint32_t *)0x400EC050))
  2279. #define EMAC0_ADDR2L_R (*((volatile uint32_t *)0x400EC054))
  2280. #define EMAC0_ADDR3H_R (*((volatile uint32_t *)0x400EC058))
  2281. #define EMAC0_ADDR3L_R (*((volatile uint32_t *)0x400EC05C))
  2282. #define EMAC0_WDOGTO_R (*((volatile uint32_t *)0x400EC0DC))
  2283. #define EMAC0_MMCCTRL_R (*((volatile uint32_t *)0x400EC100))
  2284. #define EMAC0_MMCRXRIS_R (*((volatile uint32_t *)0x400EC104))
  2285. #define EMAC0_MMCTXRIS_R (*((volatile uint32_t *)0x400EC108))
  2286. #define EMAC0_MMCRXIM_R (*((volatile uint32_t *)0x400EC10C))
  2287. #define EMAC0_MMCTXIM_R (*((volatile uint32_t *)0x400EC110))
  2288. #define EMAC0_TXCNTGB_R (*((volatile uint32_t *)0x400EC118))
  2289. #define EMAC0_TXCNTSCOL_R (*((volatile uint32_t *)0x400EC14C))
  2290. #define EMAC0_TXCNTMCOL_R (*((volatile uint32_t *)0x400EC150))
  2291. #define EMAC0_TXOCTCNTG_R (*((volatile uint32_t *)0x400EC164))
  2292. #define EMAC0_RXCNTGB_R (*((volatile uint32_t *)0x400EC180))
  2293. #define EMAC0_RXCNTCRCERR_R (*((volatile uint32_t *)0x400EC194))
  2294. #define EMAC0_RXCNTALGNERR_R (*((volatile uint32_t *)0x400EC198))
  2295. #define EMAC0_RXCNTGUNI_R (*((volatile uint32_t *)0x400EC1C4))
  2296. #define EMAC0_VLNINCREP_R (*((volatile uint32_t *)0x400EC584))
  2297. #define EMAC0_VLANHASH_R (*((volatile uint32_t *)0x400EC588))
  2298. #define EMAC0_TIMSTCTRL_R (*((volatile uint32_t *)0x400EC700))
  2299. #define EMAC0_SUBSECINC_R (*((volatile uint32_t *)0x400EC704))
  2300. #define EMAC0_TIMSEC_R (*((volatile uint32_t *)0x400EC708))
  2301. #define EMAC0_TIMNANO_R (*((volatile uint32_t *)0x400EC70C))
  2302. #define EMAC0_TIMSECU_R (*((volatile uint32_t *)0x400EC710))
  2303. #define EMAC0_TIMNANOU_R (*((volatile uint32_t *)0x400EC714))
  2304. #define EMAC0_TIMADD_R (*((volatile uint32_t *)0x400EC718))
  2305. #define EMAC0_TARGSEC_R (*((volatile uint32_t *)0x400EC71C))
  2306. #define EMAC0_TARGNANO_R (*((volatile uint32_t *)0x400EC720))
  2307. #define EMAC0_HWORDSEC_R (*((volatile uint32_t *)0x400EC724))
  2308. #define EMAC0_TIMSTAT_R (*((volatile uint32_t *)0x400EC728))
  2309. #define EMAC0_PPSCTRL_R (*((volatile uint32_t *)0x400EC72C))
  2310. #define EMAC0_PPS0INTVL_R (*((volatile uint32_t *)0x400EC760))
  2311. #define EMAC0_PPS0WIDTH_R (*((volatile uint32_t *)0x400EC764))
  2312. #define EMAC0_DMABUSMOD_R (*((volatile uint32_t *)0x400ECC00))
  2313. #define EMAC0_TXPOLLD_R (*((volatile uint32_t *)0x400ECC04))
  2314. #define EMAC0_RXPOLLD_R (*((volatile uint32_t *)0x400ECC08))
  2315. #define EMAC0_RXDLADDR_R (*((volatile uint32_t *)0x400ECC0C))
  2316. #define EMAC0_TXDLADDR_R (*((volatile uint32_t *)0x400ECC10))
  2317. #define EMAC0_DMARIS_R (*((volatile uint32_t *)0x400ECC14))
  2318. #define EMAC0_DMAOPMODE_R (*((volatile uint32_t *)0x400ECC18))
  2319. #define EMAC0_DMAIM_R (*((volatile uint32_t *)0x400ECC1C))
  2320. #define EMAC0_MFBOC_R (*((volatile uint32_t *)0x400ECC20))
  2321. #define EMAC0_RXINTWDT_R (*((volatile uint32_t *)0x400ECC24))
  2322. #define EMAC0_HOSTXDESC_R (*((volatile uint32_t *)0x400ECC48))
  2323. #define EMAC0_HOSRXDESC_R (*((volatile uint32_t *)0x400ECC4C))
  2324. #define EMAC0_HOSTXBA_R (*((volatile uint32_t *)0x400ECC50))
  2325. #define EMAC0_HOSRXBA_R (*((volatile uint32_t *)0x400ECC54))
  2326. #define EMAC0_PP_R (*((volatile uint32_t *)0x400ECFC0))
  2327. #define EMAC0_PC_R (*((volatile uint32_t *)0x400ECFC4))
  2328. #define EMAC0_CC_R (*((volatile uint32_t *)0x400ECFC8))
  2329. #define EMAC0_EPHYRIS_R (*((volatile uint32_t *)0x400ECFD0))
  2330. #define EMAC0_EPHYIM_R (*((volatile uint32_t *)0x400ECFD4))
  2331. #define EMAC0_EPHYMISC_R (*((volatile uint32_t *)0x400ECFD8))
  2332. //*****************************************************************************
  2333. //
  2334. // EPHY registers (EMAC0)
  2335. //
  2336. //*****************************************************************************
  2337. #define EPHY_BMCR 0x00000000 // Ethernet PHY Basic Mode Control
  2338. #define EPHY_BMSR 0x00000001 // Ethernet PHY Basic Mode Status
  2339. #define EPHY_ID1 0x00000002 // Ethernet PHY Identifier Register
  2340. // 1
  2341. #define EPHY_ID2 0x00000003 // Ethernet PHY Identifier Register
  2342. // 2
  2343. #define EPHY_ANA 0x00000004 // Ethernet PHY Auto-Negotiation
  2344. // Advertisement
  2345. #define EPHY_ANLPA 0x00000005 // Ethernet PHY Auto-Negotiation
  2346. // Link Partner Ability
  2347. #define EPHY_ANER 0x00000006 // Ethernet PHY Auto-Negotiation
  2348. // Expansion
  2349. #define EPHY_ANNPTR 0x00000007 // Ethernet PHY Auto-Negotiation
  2350. // Next Page TX
  2351. #define EPHY_ANLNPTR 0x00000008 // Ethernet PHY Auto-Negotiation
  2352. // Link Partner Ability Next Page
  2353. #define EPHY_CFG1 0x00000009 // Ethernet PHY Configuration 1
  2354. #define EPHY_CFG2 0x0000000A // Ethernet PHY Configuration 2
  2355. #define EPHY_CFG3 0x0000000B // Ethernet PHY Configuration 3
  2356. #define EPHY_REGCTL 0x0000000D // Ethernet PHY Register Control
  2357. #define EPHY_ADDAR 0x0000000E // Ethernet PHY Address or Data
  2358. #define EPHY_STS 0x00000010 // Ethernet PHY Status
  2359. #define EPHY_SCR 0x00000011 // Ethernet PHY Specific Control
  2360. #define EPHY_MISR1 0x00000012 // Ethernet PHY MII Interrupt
  2361. // Status 1
  2362. #define EPHY_MISR2 0x00000013 // Ethernet PHY MII Interrupt
  2363. // Status 2
  2364. #define EPHY_FCSCR 0x00000014 // Ethernet PHY False Carrier Sense
  2365. // Counter
  2366. #define EPHY_RXERCNT 0x00000015 // Ethernet PHY Receive Error Count
  2367. #define EPHY_BISTCR 0x00000016 // Ethernet PHY BIST Control
  2368. #define EPHY_LEDCR 0x00000018 // Ethernet PHY LED Control
  2369. #define EPHY_CTL 0x00000019 // Ethernet PHY Control
  2370. #define EPHY_10BTSC 0x0000001A // Ethernet PHY 10Base-T
  2371. // Status/Control - MR26
  2372. #define EPHY_BICSR1 0x0000001B // Ethernet PHY BIST Control and
  2373. // Status 1
  2374. #define EPHY_BICSR2 0x0000001C // Ethernet PHY BIST Control and
  2375. // Status 2
  2376. #define EPHY_CDCR 0x0000001E // Ethernet PHY Cable Diagnostic
  2377. // Control
  2378. #define EPHY_RCR 0x0000001F // Ethernet PHY Reset Control
  2379. #define EPHY_LEDCFG 0x00000025 // Ethernet PHY LED Configuration
  2380. //*****************************************************************************
  2381. //
  2382. // System Exception Module registers (SYSEXC)
  2383. //
  2384. //*****************************************************************************
  2385. #define SYSEXC_RIS_R (*((volatile uint32_t *)0x400F9000))
  2386. #define SYSEXC_IM_R (*((volatile uint32_t *)0x400F9004))
  2387. #define SYSEXC_MIS_R (*((volatile uint32_t *)0x400F9008))
  2388. #define SYSEXC_IC_R (*((volatile uint32_t *)0x400F900C))
  2389. //*****************************************************************************
  2390. //
  2391. // Hibernation module registers (HIB)
  2392. //
  2393. //*****************************************************************************
  2394. #define HIB_RTCC_R (*((volatile uint32_t *)0x400FC000))
  2395. #define HIB_RTCM0_R (*((volatile uint32_t *)0x400FC004))
  2396. #define HIB_RTCLD_R (*((volatile uint32_t *)0x400FC00C))
  2397. #define HIB_CTL_R (*((volatile uint32_t *)0x400FC010))
  2398. #define HIB_IM_R (*((volatile uint32_t *)0x400FC014))
  2399. #define HIB_RIS_R (*((volatile uint32_t *)0x400FC018))
  2400. #define HIB_MIS_R (*((volatile uint32_t *)0x400FC01C))
  2401. #define HIB_IC_R (*((volatile uint32_t *)0x400FC020))
  2402. #define HIB_RTCT_R (*((volatile uint32_t *)0x400FC024))
  2403. #define HIB_RTCSS_R (*((volatile uint32_t *)0x400FC028))
  2404. #define HIB_IO_R (*((volatile uint32_t *)0x400FC02C))
  2405. #define HIB_DATA_R (*((volatile uint32_t *)0x400FC030))
  2406. #define HIB_CALCTL_R (*((volatile uint32_t *)0x400FC300))
  2407. #define HIB_CAL0_R (*((volatile uint32_t *)0x400FC310))
  2408. #define HIB_CAL1_R (*((volatile uint32_t *)0x400FC314))
  2409. #define HIB_CALLD0_R (*((volatile uint32_t *)0x400FC320))
  2410. #define HIB_CALLD1_R (*((volatile uint32_t *)0x400FC324))
  2411. #define HIB_CALM0_R (*((volatile uint32_t *)0x400FC330))
  2412. #define HIB_CALM1_R (*((volatile uint32_t *)0x400FC334))
  2413. #define HIB_LOCK_R (*((volatile uint32_t *)0x400FC360))
  2414. #define HIB_TPCTL_R (*((volatile uint32_t *)0x400FC400))
  2415. #define HIB_TPSTAT_R (*((volatile uint32_t *)0x400FC404))
  2416. #define HIB_TPIO_R (*((volatile uint32_t *)0x400FC410))
  2417. #define HIB_TPLOG0_R (*((volatile uint32_t *)0x400FC4E0))
  2418. #define HIB_TPLOG1_R (*((volatile uint32_t *)0x400FC4E4))
  2419. #define HIB_TPLOG2_R (*((volatile uint32_t *)0x400FC4E8))
  2420. #define HIB_TPLOG3_R (*((volatile uint32_t *)0x400FC4EC))
  2421. #define HIB_TPLOG4_R (*((volatile uint32_t *)0x400FC4F0))
  2422. #define HIB_TPLOG5_R (*((volatile uint32_t *)0x400FC4F4))
  2423. #define HIB_TPLOG6_R (*((volatile uint32_t *)0x400FC4F8))
  2424. #define HIB_TPLOG7_R (*((volatile uint32_t *)0x400FC4FC))
  2425. #define HIB_PP_R (*((volatile uint32_t *)0x400FCFC0))
  2426. #define HIB_CC_R (*((volatile uint32_t *)0x400FCFC8))
  2427. //*****************************************************************************
  2428. //
  2429. // FLASH registers (FLASH CTRL)
  2430. //
  2431. //*****************************************************************************
  2432. #define FLASH_FMA_R (*((volatile uint32_t *)0x400FD000))
  2433. #define FLASH_FMD_R (*((volatile uint32_t *)0x400FD004))
  2434. #define FLASH_FMC_R (*((volatile uint32_t *)0x400FD008))
  2435. #define FLASH_FCRIS_R (*((volatile uint32_t *)0x400FD00C))
  2436. #define FLASH_FCIM_R (*((volatile uint32_t *)0x400FD010))
  2437. #define FLASH_FCMISC_R (*((volatile uint32_t *)0x400FD014))
  2438. #define FLASH_FMC2_R (*((volatile uint32_t *)0x400FD020))
  2439. #define FLASH_FWBVAL_R (*((volatile uint32_t *)0x400FD030))
  2440. #define FLASH_FLPEKEY_R (*((volatile uint32_t *)0x400FD03C))
  2441. #define FLASH_FWBN_R (*((volatile uint32_t *)0x400FD100))
  2442. #define FLASH_PP_R (*((volatile uint32_t *)0x400FDFC0))
  2443. #define FLASH_SSIZE_R (*((volatile uint32_t *)0x400FDFC4))
  2444. #define FLASH_CONF_R (*((volatile uint32_t *)0x400FDFC8))
  2445. #define FLASH_ROMSWMAP_R (*((volatile uint32_t *)0x400FDFCC))
  2446. #define FLASH_DMASZ_R (*((volatile uint32_t *)0x400FDFD0))
  2447. #define FLASH_DMAST_R (*((volatile uint32_t *)0x400FDFD4))
  2448. #define FLASH_RVP_R (*((volatile uint32_t *)0x400FE0D4))
  2449. #define FLASH_BOOTCFG_R (*((volatile uint32_t *)0x400FE1D0))
  2450. #define FLASH_USERREG0_R (*((volatile uint32_t *)0x400FE1E0))
  2451. #define FLASH_USERREG1_R (*((volatile uint32_t *)0x400FE1E4))
  2452. #define FLASH_USERREG2_R (*((volatile uint32_t *)0x400FE1E8))
  2453. #define FLASH_USERREG3_R (*((volatile uint32_t *)0x400FE1EC))
  2454. #define FLASH_FMPRE0_R (*((volatile uint32_t *)0x400FE200))
  2455. #define FLASH_FMPRE1_R (*((volatile uint32_t *)0x400FE204))
  2456. #define FLASH_FMPRE2_R (*((volatile uint32_t *)0x400FE208))
  2457. #define FLASH_FMPRE3_R (*((volatile uint32_t *)0x400FE20C))
  2458. #define FLASH_FMPRE4_R (*((volatile uint32_t *)0x400FE210))
  2459. #define FLASH_FMPRE5_R (*((volatile uint32_t *)0x400FE214))
  2460. #define FLASH_FMPRE6_R (*((volatile uint32_t *)0x400FE218))
  2461. #define FLASH_FMPRE7_R (*((volatile uint32_t *)0x400FE21C))
  2462. #define FLASH_FMPRE8_R (*((volatile uint32_t *)0x400FE220))
  2463. #define FLASH_FMPRE9_R (*((volatile uint32_t *)0x400FE224))
  2464. #define FLASH_FMPRE10_R (*((volatile uint32_t *)0x400FE228))
  2465. #define FLASH_FMPRE11_R (*((volatile uint32_t *)0x400FE22C))
  2466. #define FLASH_FMPRE12_R (*((volatile uint32_t *)0x400FE230))
  2467. #define FLASH_FMPRE13_R (*((volatile uint32_t *)0x400FE234))
  2468. #define FLASH_FMPRE14_R (*((volatile uint32_t *)0x400FE238))
  2469. #define FLASH_FMPRE15_R (*((volatile uint32_t *)0x400FE23C))
  2470. #define FLASH_FMPPE0_R (*((volatile uint32_t *)0x400FE400))
  2471. #define FLASH_FMPPE1_R (*((volatile uint32_t *)0x400FE404))
  2472. #define FLASH_FMPPE2_R (*((volatile uint32_t *)0x400FE408))
  2473. #define FLASH_FMPPE3_R (*((volatile uint32_t *)0x400FE40C))
  2474. #define FLASH_FMPPE4_R (*((volatile uint32_t *)0x400FE410))
  2475. #define FLASH_FMPPE5_R (*((volatile uint32_t *)0x400FE414))
  2476. #define FLASH_FMPPE6_R (*((volatile uint32_t *)0x400FE418))
  2477. #define FLASH_FMPPE7_R (*((volatile uint32_t *)0x400FE41C))
  2478. #define FLASH_FMPPE8_R (*((volatile uint32_t *)0x400FE420))
  2479. #define FLASH_FMPPE9_R (*((volatile uint32_t *)0x400FE424))
  2480. #define FLASH_FMPPE10_R (*((volatile uint32_t *)0x400FE428))
  2481. #define FLASH_FMPPE11_R (*((volatile uint32_t *)0x400FE42C))
  2482. #define FLASH_FMPPE12_R (*((volatile uint32_t *)0x400FE430))
  2483. #define FLASH_FMPPE13_R (*((volatile uint32_t *)0x400FE434))
  2484. #define FLASH_FMPPE14_R (*((volatile uint32_t *)0x400FE438))
  2485. #define FLASH_FMPPE15_R (*((volatile uint32_t *)0x400FE43C))
  2486. //*****************************************************************************
  2487. //
  2488. // System Control registers (SYSCTL)
  2489. //
  2490. //*****************************************************************************
  2491. #define SYSCTL_DID0_R (*((volatile uint32_t *)0x400FE000))
  2492. #define SYSCTL_DID1_R (*((volatile uint32_t *)0x400FE004))
  2493. #define SYSCTL_PTBOCTL_R (*((volatile uint32_t *)0x400FE038))
  2494. #define SYSCTL_RIS_R (*((volatile uint32_t *)0x400FE050))
  2495. #define SYSCTL_IMC_R (*((volatile uint32_t *)0x400FE054))
  2496. #define SYSCTL_MISC_R (*((volatile uint32_t *)0x400FE058))
  2497. #define SYSCTL_RESC_R (*((volatile uint32_t *)0x400FE05C))
  2498. #define SYSCTL_PWRTC_R (*((volatile uint32_t *)0x400FE060))
  2499. #define SYSCTL_NMIC_R (*((volatile uint32_t *)0x400FE064))
  2500. #define SYSCTL_MOSCCTL_R (*((volatile uint32_t *)0x400FE07C))
  2501. #define SYSCTL_RSCLKCFG_R (*((volatile uint32_t *)0x400FE0B0))
  2502. #define SYSCTL_MEMTIM0_R (*((volatile uint32_t *)0x400FE0C0))
  2503. #define SYSCTL_ALTCLKCFG_R (*((volatile uint32_t *)0x400FE138))
  2504. #define SYSCTL_DSCLKCFG_R (*((volatile uint32_t *)0x400FE144))
  2505. #define SYSCTL_DIVSCLK_R (*((volatile uint32_t *)0x400FE148))
  2506. #define SYSCTL_SYSPROP_R (*((volatile uint32_t *)0x400FE14C))
  2507. #define SYSCTL_PIOSCCAL_R (*((volatile uint32_t *)0x400FE150))
  2508. #define SYSCTL_PIOSCSTAT_R (*((volatile uint32_t *)0x400FE154))
  2509. #define SYSCTL_PLLFREQ0_R (*((volatile uint32_t *)0x400FE160))
  2510. #define SYSCTL_PLLFREQ1_R (*((volatile uint32_t *)0x400FE164))
  2511. #define SYSCTL_PLLSTAT_R (*((volatile uint32_t *)0x400FE168))
  2512. #define SYSCTL_SLPPWRCFG_R (*((volatile uint32_t *)0x400FE188))
  2513. #define SYSCTL_DSLPPWRCFG_R (*((volatile uint32_t *)0x400FE18C))
  2514. #define SYSCTL_NVMSTAT_R (*((volatile uint32_t *)0x400FE1A0))
  2515. #define SYSCTL_LDOSPCTL_R (*((volatile uint32_t *)0x400FE1B4))
  2516. #define SYSCTL_LDODPCTL_R (*((volatile uint32_t *)0x400FE1BC))
  2517. #define SYSCTL_RESBEHAVCTL_R (*((volatile uint32_t *)0x400FE1D8))
  2518. #define SYSCTL_HSSR_R (*((volatile uint32_t *)0x400FE1F4))
  2519. #define SYSCTL_USBPDS_R (*((volatile uint32_t *)0x400FE280))
  2520. #define SYSCTL_USBMPC_R (*((volatile uint32_t *)0x400FE284))
  2521. #define SYSCTL_EMACPDS_R (*((volatile uint32_t *)0x400FE288))
  2522. #define SYSCTL_EMACMPC_R (*((volatile uint32_t *)0x400FE28C))
  2523. #define SYSCTL_PPWD_R (*((volatile uint32_t *)0x400FE300))
  2524. #define SYSCTL_PPTIMER_R (*((volatile uint32_t *)0x400FE304))
  2525. #define SYSCTL_PPGPIO_R (*((volatile uint32_t *)0x400FE308))
  2526. #define SYSCTL_PPDMA_R (*((volatile uint32_t *)0x400FE30C))
  2527. #define SYSCTL_PPEPI_R (*((volatile uint32_t *)0x400FE310))
  2528. #define SYSCTL_PPHIB_R (*((volatile uint32_t *)0x400FE314))
  2529. #define SYSCTL_PPUART_R (*((volatile uint32_t *)0x400FE318))
  2530. #define SYSCTL_PPSSI_R (*((volatile uint32_t *)0x400FE31C))
  2531. #define SYSCTL_PPI2C_R (*((volatile uint32_t *)0x400FE320))
  2532. #define SYSCTL_PPUSB_R (*((volatile uint32_t *)0x400FE328))
  2533. #define SYSCTL_PPEPHY_R (*((volatile uint32_t *)0x400FE330))
  2534. #define SYSCTL_PPCAN_R (*((volatile uint32_t *)0x400FE334))
  2535. #define SYSCTL_PPADC_R (*((volatile uint32_t *)0x400FE338))
  2536. #define SYSCTL_PPACMP_R (*((volatile uint32_t *)0x400FE33C))
  2537. #define SYSCTL_PPPWM_R (*((volatile uint32_t *)0x400FE340))
  2538. #define SYSCTL_PPQEI_R (*((volatile uint32_t *)0x400FE344))
  2539. #define SYSCTL_PPLPC_R (*((volatile uint32_t *)0x400FE348))
  2540. #define SYSCTL_PPPECI_R (*((volatile uint32_t *)0x400FE350))
  2541. #define SYSCTL_PPFAN_R (*((volatile uint32_t *)0x400FE354))
  2542. #define SYSCTL_PPEEPROM_R (*((volatile uint32_t *)0x400FE358))
  2543. #define SYSCTL_PPWTIMER_R (*((volatile uint32_t *)0x400FE35C))
  2544. #define SYSCTL_PPRTS_R (*((volatile uint32_t *)0x400FE370))
  2545. #define SYSCTL_PPCCM_R (*((volatile uint32_t *)0x400FE374))
  2546. #define SYSCTL_PPLCD_R (*((volatile uint32_t *)0x400FE390))
  2547. #define SYSCTL_PPOWIRE_R (*((volatile uint32_t *)0x400FE398))
  2548. #define SYSCTL_PPEMAC_R (*((volatile uint32_t *)0x400FE39C))
  2549. #define SYSCTL_PPHIM_R (*((volatile uint32_t *)0x400FE3A4))
  2550. #define SYSCTL_SRWD_R (*((volatile uint32_t *)0x400FE500))
  2551. #define SYSCTL_SRTIMER_R (*((volatile uint32_t *)0x400FE504))
  2552. #define SYSCTL_SRGPIO_R (*((volatile uint32_t *)0x400FE508))
  2553. #define SYSCTL_SRDMA_R (*((volatile uint32_t *)0x400FE50C))
  2554. #define SYSCTL_SREPI_R (*((volatile uint32_t *)0x400FE510))
  2555. #define SYSCTL_SRHIB_R (*((volatile uint32_t *)0x400FE514))
  2556. #define SYSCTL_SRUART_R (*((volatile uint32_t *)0x400FE518))
  2557. #define SYSCTL_SRSSI_R (*((volatile uint32_t *)0x400FE51C))
  2558. #define SYSCTL_SRI2C_R (*((volatile uint32_t *)0x400FE520))
  2559. #define SYSCTL_SRUSB_R (*((volatile uint32_t *)0x400FE528))
  2560. #define SYSCTL_SREPHY_R (*((volatile uint32_t *)0x400FE530))
  2561. #define SYSCTL_SRCAN_R (*((volatile uint32_t *)0x400FE534))
  2562. #define SYSCTL_SRADC_R (*((volatile uint32_t *)0x400FE538))
  2563. #define SYSCTL_SRACMP_R (*((volatile uint32_t *)0x400FE53C))
  2564. #define SYSCTL_SRPWM_R (*((volatile uint32_t *)0x400FE540))
  2565. #define SYSCTL_SRQEI_R (*((volatile uint32_t *)0x400FE544))
  2566. #define SYSCTL_SREEPROM_R (*((volatile uint32_t *)0x400FE558))
  2567. #define SYSCTL_SRCCM_R (*((volatile uint32_t *)0x400FE574))
  2568. #define SYSCTL_SREMAC_R (*((volatile uint32_t *)0x400FE59C))
  2569. #define SYSCTL_RCGCWD_R (*((volatile uint32_t *)0x400FE600))
  2570. #define SYSCTL_RCGCTIMER_R (*((volatile uint32_t *)0x400FE604))
  2571. #define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608))
  2572. #define SYSCTL_RCGCDMA_R (*((volatile uint32_t *)0x400FE60C))
  2573. #define SYSCTL_RCGCEPI_R (*((volatile uint32_t *)0x400FE610))
  2574. #define SYSCTL_RCGCHIB_R (*((volatile uint32_t *)0x400FE614))
  2575. #define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618))
  2576. #define SYSCTL_RCGCSSI_R (*((volatile uint32_t *)0x400FE61C))
  2577. #define SYSCTL_RCGCI2C_R (*((volatile uint32_t *)0x400FE620))
  2578. #define SYSCTL_RCGCUSB_R (*((volatile uint32_t *)0x400FE628))
  2579. #define SYSCTL_RCGCEPHY_R (*((volatile uint32_t *)0x400FE630))
  2580. #define SYSCTL_RCGCCAN_R (*((volatile uint32_t *)0x400FE634))
  2581. #define SYSCTL_RCGCADC_R (*((volatile uint32_t *)0x400FE638))
  2582. #define SYSCTL_RCGCACMP_R (*((volatile uint32_t *)0x400FE63C))
  2583. #define SYSCTL_RCGCPWM_R (*((volatile uint32_t *)0x400FE640))
  2584. #define SYSCTL_RCGCQEI_R (*((volatile uint32_t *)0x400FE644))
  2585. #define SYSCTL_RCGCEEPROM_R (*((volatile uint32_t *)0x400FE658))
  2586. #define SYSCTL_RCGCCCM_R (*((volatile uint32_t *)0x400FE674))
  2587. #define SYSCTL_RCGCEMAC_R (*((volatile uint32_t *)0x400FE69C))
  2588. #define SYSCTL_SCGCWD_R (*((volatile uint32_t *)0x400FE700))
  2589. #define SYSCTL_SCGCTIMER_R (*((volatile uint32_t *)0x400FE704))
  2590. #define SYSCTL_SCGCGPIO_R (*((volatile uint32_t *)0x400FE708))
  2591. #define SYSCTL_SCGCDMA_R (*((volatile uint32_t *)0x400FE70C))
  2592. #define SYSCTL_SCGCEPI_R (*((volatile uint32_t *)0x400FE710))
  2593. #define SYSCTL_SCGCHIB_R (*((volatile uint32_t *)0x400FE714))
  2594. #define SYSCTL_SCGCUART_R (*((volatile uint32_t *)0x400FE718))
  2595. #define SYSCTL_SCGCSSI_R (*((volatile uint32_t *)0x400FE71C))
  2596. #define SYSCTL_SCGCI2C_R (*((volatile uint32_t *)0x400FE720))
  2597. #define SYSCTL_SCGCUSB_R (*((volatile uint32_t *)0x400FE728))
  2598. #define SYSCTL_SCGCEPHY_R (*((volatile uint32_t *)0x400FE730))
  2599. #define SYSCTL_SCGCCAN_R (*((volatile uint32_t *)0x400FE734))
  2600. #define SYSCTL_SCGCADC_R (*((volatile uint32_t *)0x400FE738))
  2601. #define SYSCTL_SCGCACMP_R (*((volatile uint32_t *)0x400FE73C))
  2602. #define SYSCTL_SCGCPWM_R (*((volatile uint32_t *)0x400FE740))
  2603. #define SYSCTL_SCGCQEI_R (*((volatile uint32_t *)0x400FE744))
  2604. #define SYSCTL_SCGCEEPROM_R (*((volatile uint32_t *)0x400FE758))
  2605. #define SYSCTL_SCGCCCM_R (*((volatile uint32_t *)0x400FE774))
  2606. #define SYSCTL_SCGCEMAC_R (*((volatile uint32_t *)0x400FE79C))
  2607. #define SYSCTL_DCGCWD_R (*((volatile uint32_t *)0x400FE800))
  2608. #define SYSCTL_DCGCTIMER_R (*((volatile uint32_t *)0x400FE804))
  2609. #define SYSCTL_DCGCGPIO_R (*((volatile uint32_t *)0x400FE808))
  2610. #define SYSCTL_DCGCDMA_R (*((volatile uint32_t *)0x400FE80C))
  2611. #define SYSCTL_DCGCEPI_R (*((volatile uint32_t *)0x400FE810))
  2612. #define SYSCTL_DCGCHIB_R (*((volatile uint32_t *)0x400FE814))
  2613. #define SYSCTL_DCGCUART_R (*((volatile uint32_t *)0x400FE818))
  2614. #define SYSCTL_DCGCSSI_R (*((volatile uint32_t *)0x400FE81C))
  2615. #define SYSCTL_DCGCI2C_R (*((volatile uint32_t *)0x400FE820))
  2616. #define SYSCTL_DCGCUSB_R (*((volatile uint32_t *)0x400FE828))
  2617. #define SYSCTL_DCGCEPHY_R (*((volatile uint32_t *)0x400FE830))
  2618. #define SYSCTL_DCGCCAN_R (*((volatile uint32_t *)0x400FE834))
  2619. #define SYSCTL_DCGCADC_R (*((volatile uint32_t *)0x400FE838))
  2620. #define SYSCTL_DCGCACMP_R (*((volatile uint32_t *)0x400FE83C))
  2621. #define SYSCTL_DCGCPWM_R (*((volatile uint32_t *)0x400FE840))
  2622. #define SYSCTL_DCGCQEI_R (*((volatile uint32_t *)0x400FE844))
  2623. #define SYSCTL_DCGCEEPROM_R (*((volatile uint32_t *)0x400FE858))
  2624. #define SYSCTL_DCGCCCM_R (*((volatile uint32_t *)0x400FE874))
  2625. #define SYSCTL_DCGCEMAC_R (*((volatile uint32_t *)0x400FE89C))
  2626. #define SYSCTL_PCWD_R (*((volatile uint32_t *)0x400FE900))
  2627. #define SYSCTL_PCTIMER_R (*((volatile uint32_t *)0x400FE904))
  2628. #define SYSCTL_PCGPIO_R (*((volatile uint32_t *)0x400FE908))
  2629. #define SYSCTL_PCDMA_R (*((volatile uint32_t *)0x400FE90C))
  2630. #define SYSCTL_PCEPI_R (*((volatile uint32_t *)0x400FE910))
  2631. #define SYSCTL_PCHIB_R (*((volatile uint32_t *)0x400FE914))
  2632. #define SYSCTL_PCUART_R (*((volatile uint32_t *)0x400FE918))
  2633. #define SYSCTL_PCSSI_R (*((volatile uint32_t *)0x400FE91C))
  2634. #define SYSCTL_PCI2C_R (*((volatile uint32_t *)0x400FE920))
  2635. #define SYSCTL_PCUSB_R (*((volatile uint32_t *)0x400FE928))
  2636. #define SYSCTL_PCEPHY_R (*((volatile uint32_t *)0x400FE930))
  2637. #define SYSCTL_PCCAN_R (*((volatile uint32_t *)0x400FE934))
  2638. #define SYSCTL_PCADC_R (*((volatile uint32_t *)0x400FE938))
  2639. #define SYSCTL_PCACMP_R (*((volatile uint32_t *)0x400FE93C))
  2640. #define SYSCTL_PCPWM_R (*((volatile uint32_t *)0x400FE940))
  2641. #define SYSCTL_PCQEI_R (*((volatile uint32_t *)0x400FE944))
  2642. #define SYSCTL_PCEEPROM_R (*((volatile uint32_t *)0x400FE958))
  2643. #define SYSCTL_PCCCM_R (*((volatile uint32_t *)0x400FE974))
  2644. #define SYSCTL_PCEMAC_R (*((volatile uint32_t *)0x400FE99C))
  2645. #define SYSCTL_PRWD_R (*((volatile uint32_t *)0x400FEA00))
  2646. #define SYSCTL_PRTIMER_R (*((volatile uint32_t *)0x400FEA04))
  2647. #define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08))
  2648. #define SYSCTL_PRDMA_R (*((volatile uint32_t *)0x400FEA0C))
  2649. #define SYSCTL_PREPI_R (*((volatile uint32_t *)0x400FEA10))
  2650. #define SYSCTL_PRHIB_R (*((volatile uint32_t *)0x400FEA14))
  2651. #define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))
  2652. #define SYSCTL_PRSSI_R (*((volatile uint32_t *)0x400FEA1C))
  2653. #define SYSCTL_PRI2C_R (*((volatile uint32_t *)0x400FEA20))
  2654. #define SYSCTL_PRUSB_R (*((volatile uint32_t *)0x400FEA28))
  2655. #define SYSCTL_PREPHY_R (*((volatile uint32_t *)0x400FEA30))
  2656. #define SYSCTL_PRCAN_R (*((volatile uint32_t *)0x400FEA34))
  2657. #define SYSCTL_PRADC_R (*((volatile uint32_t *)0x400FEA38))
  2658. #define SYSCTL_PRACMP_R (*((volatile uint32_t *)0x400FEA3C))
  2659. #define SYSCTL_PRPWM_R (*((volatile uint32_t *)0x400FEA40))
  2660. #define SYSCTL_PRQEI_R (*((volatile uint32_t *)0x400FEA44))
  2661. #define SYSCTL_PREEPROM_R (*((volatile uint32_t *)0x400FEA58))
  2662. #define SYSCTL_PRCCM_R (*((volatile uint32_t *)0x400FEA74))
  2663. #define SYSCTL_PREMAC_R (*((volatile uint32_t *)0x400FEA9C))
  2664. //*****************************************************************************
  2665. //
  2666. // Micro Direct Memory Access registers (UDMA)
  2667. //
  2668. //*****************************************************************************
  2669. #define UDMA_STAT_R (*((volatile uint32_t *)0x400FF000))
  2670. #define UDMA_CFG_R (*((volatile uint32_t *)0x400FF004))
  2671. #define UDMA_CTLBASE_R (*((volatile uint32_t *)0x400FF008))
  2672. #define UDMA_ALTBASE_R (*((volatile uint32_t *)0x400FF00C))
  2673. #define UDMA_WAITSTAT_R (*((volatile uint32_t *)0x400FF010))
  2674. #define UDMA_SWREQ_R (*((volatile uint32_t *)0x400FF014))
  2675. #define UDMA_USEBURSTSET_R (*((volatile uint32_t *)0x400FF018))
  2676. #define UDMA_USEBURSTCLR_R (*((volatile uint32_t *)0x400FF01C))
  2677. #define UDMA_REQMASKSET_R (*((volatile uint32_t *)0x400FF020))
  2678. #define UDMA_REQMASKCLR_R (*((volatile uint32_t *)0x400FF024))
  2679. #define UDMA_ENASET_R (*((volatile uint32_t *)0x400FF028))
  2680. #define UDMA_ENACLR_R (*((volatile uint32_t *)0x400FF02C))
  2681. #define UDMA_ALTSET_R (*((volatile uint32_t *)0x400FF030))
  2682. #define UDMA_ALTCLR_R (*((volatile uint32_t *)0x400FF034))
  2683. #define UDMA_PRIOSET_R (*((volatile uint32_t *)0x400FF038))
  2684. #define UDMA_PRIOCLR_R (*((volatile uint32_t *)0x400FF03C))
  2685. #define UDMA_ERRCLR_R (*((volatile uint32_t *)0x400FF04C))
  2686. #define UDMA_CHASGN_R (*((volatile uint32_t *)0x400FF500))
  2687. #define UDMA_CHMAP0_R (*((volatile uint32_t *)0x400FF510))
  2688. #define UDMA_CHMAP1_R (*((volatile uint32_t *)0x400FF514))
  2689. #define UDMA_CHMAP2_R (*((volatile uint32_t *)0x400FF518))
  2690. #define UDMA_CHMAP3_R (*((volatile uint32_t *)0x400FF51C))
  2691. //*****************************************************************************
  2692. //
  2693. // Micro Direct Memory Access (uDMA) offsets (UDMA)
  2694. //
  2695. //*****************************************************************************
  2696. #define UDMA_SRCENDP 0x00000000 // DMA Channel Source Address End
  2697. // Pointer
  2698. #define UDMA_DSTENDP 0x00000004 // DMA Channel Destination Address
  2699. // End Pointer
  2700. #define UDMA_CHCTL 0x00000008 // DMA Channel Control Word
  2701. //*****************************************************************************
  2702. //
  2703. // EC registers (CCM0)
  2704. //
  2705. //*****************************************************************************
  2706. #define CCM0_CRCCTRL_R (*((volatile uint32_t *)0x44030400))
  2707. #define CCM0_CRCSEED_R (*((volatile uint32_t *)0x44030410))
  2708. #define CCM0_CRCDIN_R (*((volatile uint32_t *)0x44030414))
  2709. #define CCM0_CRCRSLTPP_R (*((volatile uint32_t *)0x44030418))
  2710. //*****************************************************************************
  2711. //
  2712. // NVIC registers (NVIC)
  2713. //
  2714. //*****************************************************************************
  2715. #define NVIC_ACTLR_R (*((volatile uint32_t *)0xE000E008))
  2716. #define NVIC_ST_CTRL_R (*((volatile uint32_t *)0xE000E010))
  2717. #define NVIC_ST_RELOAD_R (*((volatile uint32_t *)0xE000E014))
  2718. #define NVIC_ST_CURRENT_R (*((volatile uint32_t *)0xE000E018))
  2719. #define NVIC_EN0_R (*((volatile uint32_t *)0xE000E100))
  2720. #define NVIC_EN1_R (*((volatile uint32_t *)0xE000E104))
  2721. #define NVIC_EN2_R (*((volatile uint32_t *)0xE000E108))
  2722. #define NVIC_EN3_R (*((volatile uint32_t *)0xE000E10C))
  2723. #define NVIC_DIS0_R (*((volatile uint32_t *)0xE000E180))
  2724. #define NVIC_DIS1_R (*((volatile uint32_t *)0xE000E184))
  2725. #define NVIC_DIS2_R (*((volatile uint32_t *)0xE000E188))
  2726. #define NVIC_DIS3_R (*((volatile uint32_t *)0xE000E18C))
  2727. #define NVIC_PEND0_R (*((volatile uint32_t *)0xE000E200))
  2728. #define NVIC_PEND1_R (*((volatile uint32_t *)0xE000E204))
  2729. #define NVIC_PEND2_R (*((volatile uint32_t *)0xE000E208))
  2730. #define NVIC_PEND3_R (*((volatile uint32_t *)0xE000E20C))
  2731. #define NVIC_UNPEND0_R (*((volatile uint32_t *)0xE000E280))
  2732. #define NVIC_UNPEND1_R (*((volatile uint32_t *)0xE000E284))
  2733. #define NVIC_UNPEND2_R (*((volatile uint32_t *)0xE000E288))
  2734. #define NVIC_UNPEND3_R (*((volatile uint32_t *)0xE000E28C))
  2735. #define NVIC_ACTIVE0_R (*((volatile uint32_t *)0xE000E300))
  2736. #define NVIC_ACTIVE1_R (*((volatile uint32_t *)0xE000E304))
  2737. #define NVIC_ACTIVE2_R (*((volatile uint32_t *)0xE000E308))
  2738. #define NVIC_ACTIVE3_R (*((volatile uint32_t *)0xE000E30C))
  2739. #define NVIC_PRI0_R (*((volatile uint32_t *)0xE000E400))
  2740. #define NVIC_PRI1_R (*((volatile uint32_t *)0xE000E404))
  2741. #define NVIC_PRI2_R (*((volatile uint32_t *)0xE000E408))
  2742. #define NVIC_PRI3_R (*((volatile uint32_t *)0xE000E40C))
  2743. #define NVIC_PRI4_R (*((volatile uint32_t *)0xE000E410))
  2744. #define NVIC_PRI5_R (*((volatile uint32_t *)0xE000E414))
  2745. #define NVIC_PRI6_R (*((volatile uint32_t *)0xE000E418))
  2746. #define NVIC_PRI7_R (*((volatile uint32_t *)0xE000E41C))
  2747. #define NVIC_PRI8_R (*((volatile uint32_t *)0xE000E420))
  2748. #define NVIC_PRI9_R (*((volatile uint32_t *)0xE000E424))
  2749. #define NVIC_PRI10_R (*((volatile uint32_t *)0xE000E428))
  2750. #define NVIC_PRI11_R (*((volatile uint32_t *)0xE000E42C))
  2751. #define NVIC_PRI12_R (*((volatile uint32_t *)0xE000E430))
  2752. #define NVIC_PRI13_R (*((volatile uint32_t *)0xE000E434))
  2753. #define NVIC_PRI14_R (*((volatile uint32_t *)0xE000E438))
  2754. #define NVIC_PRI15_R (*((volatile uint32_t *)0xE000E43C))
  2755. #define NVIC_PRI16_R (*((volatile uint32_t *)0xE000E440))
  2756. #define NVIC_PRI17_R (*((volatile uint32_t *)0xE000E444))
  2757. #define NVIC_PRI18_R (*((volatile uint32_t *)0xE000E448))
  2758. #define NVIC_PRI19_R (*((volatile uint32_t *)0xE000E44C))
  2759. #define NVIC_PRI20_R (*((volatile uint32_t *)0xE000E450))
  2760. #define NVIC_PRI21_R (*((volatile uint32_t *)0xE000E454))
  2761. #define NVIC_PRI22_R (*((volatile uint32_t *)0xE000E458))
  2762. #define NVIC_PRI23_R (*((volatile uint32_t *)0xE000E45C))
  2763. #define NVIC_PRI24_R (*((volatile uint32_t *)0xE000E460))
  2764. #define NVIC_PRI25_R (*((volatile uint32_t *)0xE000E464))
  2765. #define NVIC_PRI26_R (*((volatile uint32_t *)0xE000E468))
  2766. #define NVIC_PRI27_R (*((volatile uint32_t *)0xE000E46C))
  2767. #define NVIC_PRI28_R (*((volatile uint32_t *)0xE000E470))
  2768. #define NVIC_CPUID_R (*((volatile uint32_t *)0xE000ED00))
  2769. #define NVIC_INT_CTRL_R (*((volatile uint32_t *)0xE000ED04))
  2770. #define NVIC_VTABLE_R (*((volatile uint32_t *)0xE000ED08))
  2771. #define NVIC_APINT_R (*((volatile uint32_t *)0xE000ED0C))
  2772. #define NVIC_SYS_CTRL_R (*((volatile uint32_t *)0xE000ED10))
  2773. #define NVIC_CFG_CTRL_R (*((volatile uint32_t *)0xE000ED14))
  2774. #define NVIC_SYS_PRI1_R (*((volatile uint32_t *)0xE000ED18))
  2775. #define NVIC_SYS_PRI2_R (*((volatile uint32_t *)0xE000ED1C))
  2776. #define NVIC_SYS_PRI3_R (*((volatile uint32_t *)0xE000ED20))
  2777. #define NVIC_SYS_HND_CTRL_R (*((volatile uint32_t *)0xE000ED24))
  2778. #define NVIC_FAULT_STAT_R (*((volatile uint32_t *)0xE000ED28))
  2779. #define NVIC_HFAULT_STAT_R (*((volatile uint32_t *)0xE000ED2C))
  2780. #define NVIC_DEBUG_STAT_R (*((volatile uint32_t *)0xE000ED30))
  2781. #define NVIC_MM_ADDR_R (*((volatile uint32_t *)0xE000ED34))
  2782. #define NVIC_FAULT_ADDR_R (*((volatile uint32_t *)0xE000ED38))
  2783. #define NVIC_CPAC_R (*((volatile uint32_t *)0xE000ED88))
  2784. #define NVIC_MPU_TYPE_R (*((volatile uint32_t *)0xE000ED90))
  2785. #define NVIC_MPU_CTRL_R (*((volatile uint32_t *)0xE000ED94))
  2786. #define NVIC_MPU_NUMBER_R (*((volatile uint32_t *)0xE000ED98))
  2787. #define NVIC_MPU_BASE_R (*((volatile uint32_t *)0xE000ED9C))
  2788. #define NVIC_MPU_ATTR_R (*((volatile uint32_t *)0xE000EDA0))
  2789. #define NVIC_MPU_BASE1_R (*((volatile uint32_t *)0xE000EDA4))
  2790. #define NVIC_MPU_ATTR1_R (*((volatile uint32_t *)0xE000EDA8))
  2791. #define NVIC_MPU_BASE2_R (*((volatile uint32_t *)0xE000EDAC))
  2792. #define NVIC_MPU_ATTR2_R (*((volatile uint32_t *)0xE000EDB0))
  2793. #define NVIC_MPU_BASE3_R (*((volatile uint32_t *)0xE000EDB4))
  2794. #define NVIC_MPU_ATTR3_R (*((volatile uint32_t *)0xE000EDB8))
  2795. #define NVIC_DBG_CTRL_R (*((volatile uint32_t *)0xE000EDF0))
  2796. #define NVIC_DBG_XFER_R (*((volatile uint32_t *)0xE000EDF4))
  2797. #define NVIC_DBG_DATA_R (*((volatile uint32_t *)0xE000EDF8))
  2798. #define NVIC_DBG_INT_R (*((volatile uint32_t *)0xE000EDFC))
  2799. #define NVIC_SW_TRIG_R (*((volatile uint32_t *)0xE000EF00))
  2800. #define NVIC_FPCC_R (*((volatile uint32_t *)0xE000EF34))
  2801. #define NVIC_FPCA_R (*((volatile uint32_t *)0xE000EF38))
  2802. #define NVIC_FPDSC_R (*((volatile uint32_t *)0xE000EF3C))
  2803. //*****************************************************************************
  2804. //
  2805. // The following are defines for the bit fields in the WDT_O_LOAD register.
  2806. //
  2807. //*****************************************************************************
  2808. #define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value
  2809. #define WDT_LOAD_S 0
  2810. //*****************************************************************************
  2811. //
  2812. // The following are defines for the bit fields in the WDT_O_VALUE register.
  2813. //
  2814. //*****************************************************************************
  2815. #define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value
  2816. #define WDT_VALUE_S 0
  2817. //*****************************************************************************
  2818. //
  2819. // The following are defines for the bit fields in the WDT_O_CTL register.
  2820. //
  2821. //*****************************************************************************
  2822. #define WDT_CTL_WRC 0x80000000 // Write Complete
  2823. #define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type
  2824. #define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable
  2825. #define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable
  2826. //*****************************************************************************
  2827. //
  2828. // The following are defines for the bit fields in the WDT_O_ICR register.
  2829. //
  2830. //*****************************************************************************
  2831. #define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear
  2832. #define WDT_ICR_S 0
  2833. //*****************************************************************************
  2834. //
  2835. // The following are defines for the bit fields in the WDT_O_RIS register.
  2836. //
  2837. //*****************************************************************************
  2838. #define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status
  2839. //*****************************************************************************
  2840. //
  2841. // The following are defines for the bit fields in the WDT_O_MIS register.
  2842. //
  2843. //*****************************************************************************
  2844. #define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status
  2845. //*****************************************************************************
  2846. //
  2847. // The following are defines for the bit fields in the WDT_O_TEST register.
  2848. //
  2849. //*****************************************************************************
  2850. #define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable
  2851. //*****************************************************************************
  2852. //
  2853. // The following are defines for the bit fields in the WDT_O_LOCK register.
  2854. //
  2855. //*****************************************************************************
  2856. #define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock
  2857. #define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked
  2858. #define WDT_LOCK_LOCKED 0x00000001 // Locked
  2859. #define WDT_LOCK_UNLOCK 0x1ACCE551 // Unlocks the watchdog timer
  2860. //*****************************************************************************
  2861. //
  2862. // The following are defines for the bit fields in the SSI_O_CR0 register.
  2863. //
  2864. //*****************************************************************************
  2865. #define SSI_CR0_SCR_M 0x0000FF00 // SSI Serial Clock Rate
  2866. #define SSI_CR0_SPH 0x00000080 // SSI Serial Clock Phase
  2867. #define SSI_CR0_SPO 0x00000040 // SSI Serial Clock Polarity
  2868. #define SSI_CR0_FRF_M 0x00000030 // SSI Frame Format Select
  2869. #define SSI_CR0_FRF_MOTO 0x00000000 // Freescale SPI Frame Format
  2870. #define SSI_CR0_FRF_TI 0x00000010 // Synchronous Serial Frame Format
  2871. #define SSI_CR0_DSS_M 0x0000000F // SSI Data Size Select
  2872. #define SSI_CR0_DSS_4 0x00000003 // 4-bit data
  2873. #define SSI_CR0_DSS_5 0x00000004 // 5-bit data
  2874. #define SSI_CR0_DSS_6 0x00000005 // 6-bit data
  2875. #define SSI_CR0_DSS_7 0x00000006 // 7-bit data
  2876. #define SSI_CR0_DSS_8 0x00000007 // 8-bit data
  2877. #define SSI_CR0_DSS_9 0x00000008 // 9-bit data
  2878. #define SSI_CR0_DSS_10 0x00000009 // 10-bit data
  2879. #define SSI_CR0_DSS_11 0x0000000A // 11-bit data
  2880. #define SSI_CR0_DSS_12 0x0000000B // 12-bit data
  2881. #define SSI_CR0_DSS_13 0x0000000C // 13-bit data
  2882. #define SSI_CR0_DSS_14 0x0000000D // 14-bit data
  2883. #define SSI_CR0_DSS_15 0x0000000E // 15-bit data
  2884. #define SSI_CR0_DSS_16 0x0000000F // 16-bit data
  2885. #define SSI_CR0_SCR_S 8
  2886. //*****************************************************************************
  2887. //
  2888. // The following are defines for the bit fields in the SSI_O_CR1 register.
  2889. //
  2890. //*****************************************************************************
  2891. #define SSI_CR1_EOM 0x00000800 // Stop Frame (End of Message)
  2892. #define SSI_CR1_FSSHLDFRM 0x00000400 // FSS Hold Frame
  2893. #define SSI_CR1_HSCLKEN 0x00000200 // High Speed Clock Enable
  2894. #define SSI_CR1_DIR 0x00000100 // SSI Direction of Operation
  2895. #define SSI_CR1_MODE_M 0x000000C0 // SSI Mode
  2896. #define SSI_CR1_MODE_LEGACY 0x00000000 // Legacy SSI mode
  2897. #define SSI_CR1_MODE_BI 0x00000040 // Bi-SSI mode
  2898. #define SSI_CR1_MODE_QUAD 0x00000080 // Quad-SSI Mode
  2899. #define SSI_CR1_MODE_ADVANCED 0x000000C0 // Advanced SSI Mode with 8-bit
  2900. // packet size
  2901. #define SSI_CR1_EOT 0x00000010 // End of Transmission
  2902. #define SSI_CR1_MS 0x00000004 // SSI Master/Slave Select
  2903. #define SSI_CR1_SSE 0x00000002 // SSI Synchronous Serial Port
  2904. // Enable
  2905. #define SSI_CR1_LBM 0x00000001 // SSI Loopback Mode
  2906. //*****************************************************************************
  2907. //
  2908. // The following are defines for the bit fields in the SSI_O_DR register.
  2909. //
  2910. //*****************************************************************************
  2911. #define SSI_DR_DATA_M 0x0000FFFF // SSI Receive/Transmit Data
  2912. #define SSI_DR_DATA_S 0
  2913. //*****************************************************************************
  2914. //
  2915. // The following are defines for the bit fields in the SSI_O_SR register.
  2916. //
  2917. //*****************************************************************************
  2918. #define SSI_SR_BSY 0x00000010 // SSI Busy Bit
  2919. #define SSI_SR_RFF 0x00000008 // SSI Receive FIFO Full
  2920. #define SSI_SR_RNE 0x00000004 // SSI Receive FIFO Not Empty
  2921. #define SSI_SR_TNF 0x00000002 // SSI Transmit FIFO Not Full
  2922. #define SSI_SR_TFE 0x00000001 // SSI Transmit FIFO Empty
  2923. //*****************************************************************************
  2924. //
  2925. // The following are defines for the bit fields in the SSI_O_CPSR register.
  2926. //
  2927. //*****************************************************************************
  2928. #define SSI_CPSR_CPSDVSR_M 0x000000FF // SSI Clock Prescale Divisor
  2929. #define SSI_CPSR_CPSDVSR_S 0
  2930. //*****************************************************************************
  2931. //
  2932. // The following are defines for the bit fields in the SSI_O_IM register.
  2933. //
  2934. //*****************************************************************************
  2935. #define SSI_IM_EOTIM 0x00000040 // End of Transmit Interrupt Mask
  2936. #define SSI_IM_DMATXIM 0x00000020 // SSI Transmit DMA Interrupt Mask
  2937. #define SSI_IM_DMARXIM 0x00000010 // SSI Receive DMA Interrupt Mask
  2938. #define SSI_IM_TXIM 0x00000008 // SSI Transmit FIFO Interrupt Mask
  2939. #define SSI_IM_RXIM 0x00000004 // SSI Receive FIFO Interrupt Mask
  2940. #define SSI_IM_RTIM 0x00000002 // SSI Receive Time-Out Interrupt
  2941. // Mask
  2942. #define SSI_IM_RORIM 0x00000001 // SSI Receive Overrun Interrupt
  2943. // Mask
  2944. //*****************************************************************************
  2945. //
  2946. // The following are defines for the bit fields in the SSI_O_RIS register.
  2947. //
  2948. //*****************************************************************************
  2949. #define SSI_RIS_EOTRIS 0x00000040 // End of Transmit Raw Interrupt
  2950. // Status
  2951. #define SSI_RIS_DMATXRIS 0x00000020 // SSI Transmit DMA Raw Interrupt
  2952. // Status
  2953. #define SSI_RIS_DMARXRIS 0x00000010 // SSI Receive DMA Raw Interrupt
  2954. // Status
  2955. #define SSI_RIS_TXRIS 0x00000008 // SSI Transmit FIFO Raw Interrupt
  2956. // Status
  2957. #define SSI_RIS_RXRIS 0x00000004 // SSI Receive FIFO Raw Interrupt
  2958. // Status
  2959. #define SSI_RIS_RTRIS 0x00000002 // SSI Receive Time-Out Raw
  2960. // Interrupt Status
  2961. #define SSI_RIS_RORRIS 0x00000001 // SSI Receive Overrun Raw
  2962. // Interrupt Status
  2963. //*****************************************************************************
  2964. //
  2965. // The following are defines for the bit fields in the SSI_O_MIS register.
  2966. //
  2967. //*****************************************************************************
  2968. #define SSI_MIS_EOTMIS 0x00000040 // End of Transmit Masked Interrupt
  2969. // Status
  2970. #define SSI_MIS_DMATXMIS 0x00000020 // SSI Transmit DMA Masked
  2971. // Interrupt Status
  2972. #define SSI_MIS_DMARXMIS 0x00000010 // SSI Receive DMA Masked Interrupt
  2973. // Status
  2974. #define SSI_MIS_TXMIS 0x00000008 // SSI Transmit FIFO Masked
  2975. // Interrupt Status
  2976. #define SSI_MIS_RXMIS 0x00000004 // SSI Receive FIFO Masked
  2977. // Interrupt Status
  2978. #define SSI_MIS_RTMIS 0x00000002 // SSI Receive Time-Out Masked
  2979. // Interrupt Status
  2980. #define SSI_MIS_RORMIS 0x00000001 // SSI Receive Overrun Masked
  2981. // Interrupt Status
  2982. //*****************************************************************************
  2983. //
  2984. // The following are defines for the bit fields in the SSI_O_ICR register.
  2985. //
  2986. //*****************************************************************************
  2987. #define SSI_ICR_EOTIC 0x00000040 // End of Transmit Interrupt Clear
  2988. #define SSI_ICR_DMATXIC 0x00000020 // SSI Transmit DMA Interrupt Clear
  2989. #define SSI_ICR_DMARXIC 0x00000010 // SSI Receive DMA Interrupt Clear
  2990. #define SSI_ICR_RTIC 0x00000002 // SSI Receive Time-Out Interrupt
  2991. // Clear
  2992. #define SSI_ICR_RORIC 0x00000001 // SSI Receive Overrun Interrupt
  2993. // Clear
  2994. //*****************************************************************************
  2995. //
  2996. // The following are defines for the bit fields in the SSI_O_DMACTL register.
  2997. //
  2998. //*****************************************************************************
  2999. #define SSI_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
  3000. #define SSI_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
  3001. //*****************************************************************************
  3002. //
  3003. // The following are defines for the bit fields in the SSI_O_PP register.
  3004. //
  3005. //*****************************************************************************
  3006. #define SSI_PP_FSSHLDFRM 0x00000008 // FSS Hold Frame Capability
  3007. #define SSI_PP_MODE_M 0x00000006 // Mode of Operation
  3008. #define SSI_PP_MODE_LEGACY 0x00000000 // Legacy SSI mode
  3009. #define SSI_PP_MODE_ADVBI 0x00000002 // Legacy mode, Advanced SSI mode
  3010. // and Bi-SSI mode enabled
  3011. #define SSI_PP_MODE_ADVBIQUAD 0x00000004 // Legacy mode, Advanced mode,
  3012. // Bi-SSI and Quad-SSI mode enabled
  3013. #define SSI_PP_HSCLK 0x00000001 // High Speed Capability
  3014. //*****************************************************************************
  3015. //
  3016. // The following are defines for the bit fields in the SSI_O_CC register.
  3017. //
  3018. //*****************************************************************************
  3019. #define SSI_CC_CS_M 0x0000000F // SSI Baud Clock Source
  3020. #define SSI_CC_CS_SYSPLL 0x00000000 // System clock (based on clock
  3021. // source and divisor factor)
  3022. #define SSI_CC_CS_PIOSC 0x00000005 // PIOSC
  3023. //*****************************************************************************
  3024. //
  3025. // The following are defines for the bit fields in the UART_O_DR register.
  3026. //
  3027. //*****************************************************************************
  3028. #define UART_DR_OE 0x00000800 // UART Overrun Error
  3029. #define UART_DR_BE 0x00000400 // UART Break Error
  3030. #define UART_DR_PE 0x00000200 // UART Parity Error
  3031. #define UART_DR_FE 0x00000100 // UART Framing Error
  3032. #define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
  3033. #define UART_DR_DATA_S 0
  3034. //*****************************************************************************
  3035. //
  3036. // The following are defines for the bit fields in the UART_O_RSR register.
  3037. //
  3038. //*****************************************************************************
  3039. #define UART_RSR_OE 0x00000008 // UART Overrun Error
  3040. #define UART_RSR_BE 0x00000004 // UART Break Error
  3041. #define UART_RSR_PE 0x00000002 // UART Parity Error
  3042. #define UART_RSR_FE 0x00000001 // UART Framing Error
  3043. //*****************************************************************************
  3044. //
  3045. // The following are defines for the bit fields in the UART_O_ECR register.
  3046. //
  3047. //*****************************************************************************
  3048. #define UART_ECR_DATA_M 0x000000FF // Error Clear
  3049. #define UART_ECR_DATA_S 0
  3050. //*****************************************************************************
  3051. //
  3052. // The following are defines for the bit fields in the UART_O_FR register.
  3053. //
  3054. //*****************************************************************************
  3055. #define UART_FR_RI 0x00000100 // Ring Indicator
  3056. #define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
  3057. #define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
  3058. #define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
  3059. #define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
  3060. #define UART_FR_BUSY 0x00000008 // UART Busy
  3061. #define UART_FR_DCD 0x00000004 // Data Carrier Detect
  3062. #define UART_FR_DSR 0x00000002 // Data Set Ready
  3063. #define UART_FR_CTS 0x00000001 // Clear To Send
  3064. //*****************************************************************************
  3065. //
  3066. // The following are defines for the bit fields in the UART_O_ILPR register.
  3067. //
  3068. //*****************************************************************************
  3069. #define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
  3070. #define UART_ILPR_ILPDVSR_S 0
  3071. //*****************************************************************************
  3072. //
  3073. // The following are defines for the bit fields in the UART_O_IBRD register.
  3074. //
  3075. //*****************************************************************************
  3076. #define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
  3077. #define UART_IBRD_DIVINT_S 0
  3078. //*****************************************************************************
  3079. //
  3080. // The following are defines for the bit fields in the UART_O_FBRD register.
  3081. //
  3082. //*****************************************************************************
  3083. #define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
  3084. #define UART_FBRD_DIVFRAC_S 0
  3085. //*****************************************************************************
  3086. //
  3087. // The following are defines for the bit fields in the UART_O_LCRH register.
  3088. //
  3089. //*****************************************************************************
  3090. #define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
  3091. #define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
  3092. #define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
  3093. #define UART_LCRH_WLEN_6 0x00000020 // 6 bits
  3094. #define UART_LCRH_WLEN_7 0x00000040 // 7 bits
  3095. #define UART_LCRH_WLEN_8 0x00000060 // 8 bits
  3096. #define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
  3097. #define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
  3098. #define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
  3099. #define UART_LCRH_PEN 0x00000002 // UART Parity Enable
  3100. #define UART_LCRH_BRK 0x00000001 // UART Send Break
  3101. //*****************************************************************************
  3102. //
  3103. // The following are defines for the bit fields in the UART_O_CTL register.
  3104. //
  3105. //*****************************************************************************
  3106. #define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
  3107. #define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
  3108. #define UART_CTL_RTS 0x00000800 // Request to Send
  3109. #define UART_CTL_DTR 0x00000400 // Data Terminal Ready
  3110. #define UART_CTL_RXE 0x00000200 // UART Receive Enable
  3111. #define UART_CTL_TXE 0x00000100 // UART Transmit Enable
  3112. #define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
  3113. #define UART_CTL_HSE 0x00000020 // High-Speed Enable
  3114. #define UART_CTL_EOT 0x00000010 // End of Transmission
  3115. #define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
  3116. #define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
  3117. #define UART_CTL_SIREN 0x00000002 // UART SIR Enable
  3118. #define UART_CTL_UARTEN 0x00000001 // UART Enable
  3119. //*****************************************************************************
  3120. //
  3121. // The following are defines for the bit fields in the UART_O_IFLS register.
  3122. //
  3123. //*****************************************************************************
  3124. #define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
  3125. // Level Select
  3126. #define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
  3127. #define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
  3128. #define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
  3129. #define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
  3130. #define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
  3131. #define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
  3132. // Level Select
  3133. #define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
  3134. #define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
  3135. #define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
  3136. #define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
  3137. #define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
  3138. //*****************************************************************************
  3139. //
  3140. // The following are defines for the bit fields in the UART_O_IM register.
  3141. //
  3142. //*****************************************************************************
  3143. #define UART_IM_DMATXIM 0x00020000 // Transmit DMA Interrupt Mask
  3144. #define UART_IM_DMARXIM 0x00010000 // Receive DMA Interrupt Mask
  3145. #define UART_IM_9BITIM 0x00001000 // 9-Bit Mode Interrupt Mask
  3146. #define UART_IM_EOTIM 0x00000800 // End of Transmission Interrupt
  3147. // Mask
  3148. #define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
  3149. // Mask
  3150. #define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
  3151. #define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
  3152. #define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
  3153. // Mask
  3154. #define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
  3155. // Mask
  3156. #define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
  3157. #define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
  3158. #define UART_IM_DSRMIM 0x00000008 // UART Data Set Ready Modem
  3159. // Interrupt Mask
  3160. #define UART_IM_DCDMIM 0x00000004 // UART Data Carrier Detect Modem
  3161. // Interrupt Mask
  3162. #define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
  3163. // Interrupt Mask
  3164. #define UART_IM_RIMIM 0x00000001 // UART Ring Indicator Modem
  3165. // Interrupt Mask
  3166. //*****************************************************************************
  3167. //
  3168. // The following are defines for the bit fields in the UART_O_RIS register.
  3169. //
  3170. //*****************************************************************************
  3171. #define UART_RIS_DMATXRIS 0x00020000 // Transmit DMA Raw Interrupt
  3172. // Status
  3173. #define UART_RIS_DMARXRIS 0x00010000 // Receive DMA Raw Interrupt Status
  3174. #define UART_RIS_9BITRIS 0x00001000 // 9-Bit Mode Raw Interrupt Status
  3175. #define UART_RIS_EOTRIS 0x00000800 // End of Transmission Raw
  3176. // Interrupt Status
  3177. #define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
  3178. // Status
  3179. #define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
  3180. // Status
  3181. #define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
  3182. // Status
  3183. #define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
  3184. // Status
  3185. #define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
  3186. // Interrupt Status
  3187. #define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
  3188. // Status
  3189. #define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
  3190. // Status
  3191. #define UART_RIS_DSRRIS 0x00000008 // UART Data Set Ready Modem Raw
  3192. // Interrupt Status
  3193. #define UART_RIS_DCDRIS 0x00000004 // UART Data Carrier Detect Modem
  3194. // Raw Interrupt Status
  3195. #define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
  3196. // Interrupt Status
  3197. #define UART_RIS_RIRIS 0x00000001 // UART Ring Indicator Modem Raw
  3198. // Interrupt Status
  3199. //*****************************************************************************
  3200. //
  3201. // The following are defines for the bit fields in the UART_O_MIS register.
  3202. //
  3203. //*****************************************************************************
  3204. #define UART_MIS_DMATXMIS 0x00020000 // Transmit DMA Masked Interrupt
  3205. // Status
  3206. #define UART_MIS_DMARXMIS 0x00010000 // Receive DMA Masked Interrupt
  3207. // Status
  3208. #define UART_MIS_9BITMIS 0x00001000 // 9-Bit Mode Masked Interrupt
  3209. // Status
  3210. #define UART_MIS_EOTMIS 0x00000800 // End of Transmission Masked
  3211. // Interrupt Status
  3212. #define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
  3213. // Interrupt Status
  3214. #define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
  3215. // Interrupt Status
  3216. #define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
  3217. // Interrupt Status
  3218. #define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
  3219. // Interrupt Status
  3220. #define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
  3221. // Interrupt Status
  3222. #define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
  3223. // Status
  3224. #define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
  3225. // Status
  3226. #define UART_MIS_DSRMIS 0x00000008 // UART Data Set Ready Modem Masked
  3227. // Interrupt Status
  3228. #define UART_MIS_DCDMIS 0x00000004 // UART Data Carrier Detect Modem
  3229. // Masked Interrupt Status
  3230. #define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
  3231. // Interrupt Status
  3232. #define UART_MIS_RIMIS 0x00000001 // UART Ring Indicator Modem Masked
  3233. // Interrupt Status
  3234. //*****************************************************************************
  3235. //
  3236. // The following are defines for the bit fields in the UART_O_ICR register.
  3237. //
  3238. //*****************************************************************************
  3239. #define UART_ICR_DMATXIC 0x00020000 // Transmit DMA Interrupt Clear
  3240. #define UART_ICR_DMARXIC 0x00010000 // Receive DMA Interrupt Clear
  3241. #define UART_ICR_9BITIC 0x00001000 // 9-Bit Mode Interrupt Clear
  3242. #define UART_ICR_EOTIC 0x00000800 // End of Transmission Interrupt
  3243. // Clear
  3244. #define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
  3245. #define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
  3246. #define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
  3247. #define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
  3248. #define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
  3249. #define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
  3250. #define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
  3251. #define UART_ICR_DSRMIC 0x00000008 // UART Data Set Ready Modem
  3252. // Interrupt Clear
  3253. #define UART_ICR_DCDMIC 0x00000004 // UART Data Carrier Detect Modem
  3254. // Interrupt Clear
  3255. #define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
  3256. // Interrupt Clear
  3257. #define UART_ICR_RIMIC 0x00000001 // UART Ring Indicator Modem
  3258. // Interrupt Clear
  3259. //*****************************************************************************
  3260. //
  3261. // The following are defines for the bit fields in the UART_O_DMACTL register.
  3262. //
  3263. //*****************************************************************************
  3264. #define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
  3265. #define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
  3266. #define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
  3267. //*****************************************************************************
  3268. //
  3269. // The following are defines for the bit fields in the UART_O_9BITADDR
  3270. // register.
  3271. //
  3272. //*****************************************************************************
  3273. #define UART_9BITADDR_9BITEN 0x00008000 // Enable 9-Bit Mode
  3274. #define UART_9BITADDR_ADDR_M 0x000000FF // Self Address for 9-Bit Mode
  3275. #define UART_9BITADDR_ADDR_S 0
  3276. //*****************************************************************************
  3277. //
  3278. // The following are defines for the bit fields in the UART_O_9BITAMASK
  3279. // register.
  3280. //
  3281. //*****************************************************************************
  3282. #define UART_9BITAMASK_MASK_M 0x000000FF // Self Address Mask for 9-Bit Mode
  3283. #define UART_9BITAMASK_MASK_S 0
  3284. //*****************************************************************************
  3285. //
  3286. // The following are defines for the bit fields in the UART_O_PP register.
  3287. //
  3288. //*****************************************************************************
  3289. #define UART_PP_MSE 0x00000008 // Modem Support Extended
  3290. #define UART_PP_MS 0x00000004 // Modem Support
  3291. #define UART_PP_NB 0x00000002 // 9-Bit Support
  3292. #define UART_PP_SC 0x00000001 // Smart Card Support
  3293. //*****************************************************************************
  3294. //
  3295. // The following are defines for the bit fields in the UART_O_CC register.
  3296. //
  3297. //*****************************************************************************
  3298. #define UART_CC_CS_M 0x0000000F // UART Baud Clock Source
  3299. #define UART_CC_CS_SYSCLK 0x00000000 // System clock (based on clock
  3300. // source and divisor factor)
  3301. #define UART_CC_CS_PIOSC 0x00000005 // PIOSC
  3302. //*****************************************************************************
  3303. //
  3304. // The following are defines for the bit fields in the I2C_O_MSA register.
  3305. //
  3306. //*****************************************************************************
  3307. #define I2C_MSA_SA_M 0x000000FE // I2C Slave Address
  3308. #define I2C_MSA_RS 0x00000001 // Receive not send
  3309. #define I2C_MSA_SA_S 1
  3310. //*****************************************************************************
  3311. //
  3312. // The following are defines for the bit fields in the I2C_O_MCS register.
  3313. //
  3314. //*****************************************************************************
  3315. #define I2C_MCS_ACTDMARX 0x80000000 // DMA RX Active Status
  3316. #define I2C_MCS_ACTDMATX 0x40000000 // DMA TX Active Status
  3317. #define I2C_MCS_CLKTO 0x00000080 // Clock Timeout Error
  3318. #define I2C_MCS_BURST 0x00000040 // Burst Enable
  3319. #define I2C_MCS_BUSBSY 0x00000040 // Bus Busy
  3320. #define I2C_MCS_IDLE 0x00000020 // I2C Idle
  3321. #define I2C_MCS_QCMD 0x00000020 // Quick Command
  3322. #define I2C_MCS_ARBLST 0x00000010 // Arbitration Lost
  3323. #define I2C_MCS_HS 0x00000010 // High-Speed Enable
  3324. #define I2C_MCS_ACK 0x00000008 // Data Acknowledge Enable
  3325. #define I2C_MCS_DATACK 0x00000008 // Acknowledge Data
  3326. #define I2C_MCS_ADRACK 0x00000004 // Acknowledge Address
  3327. #define I2C_MCS_STOP 0x00000004 // Generate STOP
  3328. #define I2C_MCS_ERROR 0x00000002 // Error
  3329. #define I2C_MCS_START 0x00000002 // Generate START
  3330. #define I2C_MCS_RUN 0x00000001 // I2C Master Enable
  3331. #define I2C_MCS_BUSY 0x00000001 // I2C Busy
  3332. //*****************************************************************************
  3333. //
  3334. // The following are defines for the bit fields in the I2C_O_MDR register.
  3335. //
  3336. //*****************************************************************************
  3337. #define I2C_MDR_DATA_M 0x000000FF // This byte contains the data
  3338. // transferred during a transaction
  3339. #define I2C_MDR_DATA_S 0
  3340. //*****************************************************************************
  3341. //
  3342. // The following are defines for the bit fields in the I2C_O_MTPR register.
  3343. //
  3344. //*****************************************************************************
  3345. #define I2C_MTPR_PULSEL_M 0x00070000 // Glitch Suppression Pulse Width
  3346. #define I2C_MTPR_PULSEL_BYPASS 0x00000000 // Bypass
  3347. #define I2C_MTPR_PULSEL_1 0x00010000 // 1 clock
  3348. #define I2C_MTPR_PULSEL_2 0x00020000 // 2 clocks
  3349. #define I2C_MTPR_PULSEL_3 0x00030000 // 3 clocks
  3350. #define I2C_MTPR_PULSEL_4 0x00040000 // 4 clocks
  3351. #define I2C_MTPR_PULSEL_8 0x00050000 // 8 clocks
  3352. #define I2C_MTPR_PULSEL_16 0x00060000 // 16 clocks
  3353. #define I2C_MTPR_PULSEL_31 0x00070000 // 31 clocks
  3354. #define I2C_MTPR_HS 0x00000080 // High-Speed Enable
  3355. #define I2C_MTPR_TPR_M 0x0000007F // Timer Period
  3356. #define I2C_MTPR_TPR_S 0
  3357. //*****************************************************************************
  3358. //
  3359. // The following are defines for the bit fields in the I2C_O_MIMR register.
  3360. //
  3361. //*****************************************************************************
  3362. #define I2C_MIMR_RXFFIM 0x00000800 // Receive FIFO Full Interrupt Mask
  3363. #define I2C_MIMR_TXFEIM 0x00000400 // Transmit FIFO Empty Interrupt
  3364. // Mask
  3365. #define I2C_MIMR_RXIM 0x00000200 // Receive FIFO Request Interrupt
  3366. // Mask
  3367. #define I2C_MIMR_TXIM 0x00000100 // Transmit FIFO Request Interrupt
  3368. // Mask
  3369. #define I2C_MIMR_ARBLOSTIM 0x00000080 // Arbitration Lost Interrupt Mask
  3370. #define I2C_MIMR_STOPIM 0x00000040 // STOP Detection Interrupt Mask
  3371. #define I2C_MIMR_STARTIM 0x00000020 // START Detection Interrupt Mask
  3372. #define I2C_MIMR_NACKIM 0x00000010 // Address/Data NACK Interrupt Mask
  3373. #define I2C_MIMR_DMATXIM 0x00000008 // Transmit DMA Interrupt Mask
  3374. #define I2C_MIMR_DMARXIM 0x00000004 // Receive DMA Interrupt Mask
  3375. #define I2C_MIMR_CLKIM 0x00000002 // Clock Timeout Interrupt Mask
  3376. #define I2C_MIMR_IM 0x00000001 // Master Interrupt Mask
  3377. //*****************************************************************************
  3378. //
  3379. // The following are defines for the bit fields in the I2C_O_MRIS register.
  3380. //
  3381. //*****************************************************************************
  3382. #define I2C_MRIS_RXFFRIS 0x00000800 // Receive FIFO Full Raw Interrupt
  3383. // Status
  3384. #define I2C_MRIS_TXFERIS 0x00000400 // Transmit FIFO Empty Raw
  3385. // Interrupt Status
  3386. #define I2C_MRIS_RXRIS 0x00000200 // Receive FIFO Request Raw
  3387. // Interrupt Status
  3388. #define I2C_MRIS_TXRIS 0x00000100 // Transmit Request Raw Interrupt
  3389. // Status
  3390. #define I2C_MRIS_ARBLOSTRIS 0x00000080 // Arbitration Lost Raw Interrupt
  3391. // Status
  3392. #define I2C_MRIS_STOPRIS 0x00000040 // STOP Detection Raw Interrupt
  3393. // Status
  3394. #define I2C_MRIS_STARTRIS 0x00000020 // START Detection Raw Interrupt
  3395. // Status
  3396. #define I2C_MRIS_NACKRIS 0x00000010 // Address/Data NACK Raw Interrupt
  3397. // Status
  3398. #define I2C_MRIS_DMATXRIS 0x00000008 // Transmit DMA Raw Interrupt
  3399. // Status
  3400. #define I2C_MRIS_DMARXRIS 0x00000004 // Receive DMA Raw Interrupt Status
  3401. #define I2C_MRIS_CLKRIS 0x00000002 // Clock Timeout Raw Interrupt
  3402. // Status
  3403. #define I2C_MRIS_RIS 0x00000001 // Master Raw Interrupt Status
  3404. //*****************************************************************************
  3405. //
  3406. // The following are defines for the bit fields in the I2C_O_MMIS register.
  3407. //
  3408. //*****************************************************************************
  3409. #define I2C_MMIS_RXFFMIS 0x00000800 // Receive FIFO Full Interrupt Mask
  3410. #define I2C_MMIS_TXFEMIS 0x00000400 // Transmit FIFO Empty Interrupt
  3411. // Mask
  3412. #define I2C_MMIS_RXMIS 0x00000200 // Receive FIFO Request Interrupt
  3413. // Mask
  3414. #define I2C_MMIS_TXMIS 0x00000100 // Transmit Request Interrupt Mask
  3415. #define I2C_MMIS_ARBLOSTMIS 0x00000080 // Arbitration Lost Interrupt Mask
  3416. #define I2C_MMIS_STOPMIS 0x00000040 // STOP Detection Interrupt Mask
  3417. #define I2C_MMIS_STARTMIS 0x00000020 // START Detection Interrupt Mask
  3418. #define I2C_MMIS_NACKMIS 0x00000010 // Address/Data NACK Interrupt Mask
  3419. #define I2C_MMIS_DMATXMIS 0x00000008 // Transmit DMA Interrupt Status
  3420. #define I2C_MMIS_DMARXMIS 0x00000004 // Receive DMA Interrupt Status
  3421. #define I2C_MMIS_CLKMIS 0x00000002 // Clock Timeout Masked Interrupt
  3422. // Status
  3423. #define I2C_MMIS_MIS 0x00000001 // Masked Interrupt Status
  3424. //*****************************************************************************
  3425. //
  3426. // The following are defines for the bit fields in the I2C_O_MICR register.
  3427. //
  3428. //*****************************************************************************
  3429. #define I2C_MICR_RXFFIC 0x00000800 // Receive FIFO Full Interrupt
  3430. // Clear
  3431. #define I2C_MICR_TXFEIC 0x00000400 // Transmit FIFO Empty Interrupt
  3432. // Clear
  3433. #define I2C_MICR_RXIC 0x00000200 // Receive FIFO Request Interrupt
  3434. // Clear
  3435. #define I2C_MICR_TXIC 0x00000100 // Transmit FIFO Request Interrupt
  3436. // Clear
  3437. #define I2C_MICR_ARBLOSTIC 0x00000080 // Arbitration Lost Interrupt Clear
  3438. #define I2C_MICR_STOPIC 0x00000040 // STOP Detection Interrupt Clear
  3439. #define I2C_MICR_STARTIC 0x00000020 // START Detection Interrupt Clear
  3440. #define I2C_MICR_NACKIC 0x00000010 // Address/Data NACK Interrupt
  3441. // Clear
  3442. #define I2C_MICR_DMATXIC 0x00000008 // Transmit DMA Interrupt Clear
  3443. #define I2C_MICR_DMARXIC 0x00000004 // Receive DMA Interrupt Clear
  3444. #define I2C_MICR_CLKIC 0x00000002 // Clock Timeout Interrupt Clear
  3445. #define I2C_MICR_IC 0x00000001 // Master Interrupt Clear
  3446. //*****************************************************************************
  3447. //
  3448. // The following are defines for the bit fields in the I2C_O_MCR register.
  3449. //
  3450. //*****************************************************************************
  3451. #define I2C_MCR_SFE 0x00000020 // I2C Slave Function Enable
  3452. #define I2C_MCR_MFE 0x00000010 // I2C Master Function Enable
  3453. #define I2C_MCR_LPBK 0x00000001 // I2C Loopback
  3454. //*****************************************************************************
  3455. //
  3456. // The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
  3457. //
  3458. //*****************************************************************************
  3459. #define I2C_MCLKOCNT_CNTL_M 0x000000FF // I2C Master Count
  3460. #define I2C_MCLKOCNT_CNTL_S 0
  3461. //*****************************************************************************
  3462. //
  3463. // The following are defines for the bit fields in the I2C_O_MBMON register.
  3464. //
  3465. //*****************************************************************************
  3466. #define I2C_MBMON_SDA 0x00000002 // I2C SDA Status
  3467. #define I2C_MBMON_SCL 0x00000001 // I2C SCL Status
  3468. //*****************************************************************************
  3469. //
  3470. // The following are defines for the bit fields in the I2C_O_MBLEN register.
  3471. //
  3472. //*****************************************************************************
  3473. #define I2C_MBLEN_CNTL_M 0x000000FF // I2C Burst Length
  3474. #define I2C_MBLEN_CNTL_S 0
  3475. //*****************************************************************************
  3476. //
  3477. // The following are defines for the bit fields in the I2C_O_MBCNT register.
  3478. //
  3479. //*****************************************************************************
  3480. #define I2C_MBCNT_CNTL_M 0x000000FF // I2C Master Burst Count
  3481. #define I2C_MBCNT_CNTL_S 0
  3482. //*****************************************************************************
  3483. //
  3484. // The following are defines for the bit fields in the I2C_O_SOAR register.
  3485. //
  3486. //*****************************************************************************
  3487. #define I2C_SOAR_OAR_M 0x0000007F // I2C Slave Own Address
  3488. #define I2C_SOAR_OAR_S 0
  3489. //*****************************************************************************
  3490. //
  3491. // The following are defines for the bit fields in the I2C_O_SCSR register.
  3492. //
  3493. //*****************************************************************************
  3494. #define I2C_SCSR_ACTDMARX 0x80000000 // DMA RX Active Status
  3495. #define I2C_SCSR_ACTDMATX 0x40000000 // DMA TX Active Status
  3496. #define I2C_SCSR_QCMDRW 0x00000020 // Quick Command Read / Write
  3497. #define I2C_SCSR_QCMDST 0x00000010 // Quick Command Status
  3498. #define I2C_SCSR_OAR2SEL 0x00000008 // OAR2 Address Matched
  3499. #define I2C_SCSR_FBR 0x00000004 // First Byte Received
  3500. #define I2C_SCSR_RXFIFO 0x00000004 // RX FIFO Enable
  3501. #define I2C_SCSR_TXFIFO 0x00000002 // TX FIFO Enable
  3502. #define I2C_SCSR_TREQ 0x00000002 // Transmit Request
  3503. #define I2C_SCSR_DA 0x00000001 // Device Active
  3504. #define I2C_SCSR_RREQ 0x00000001 // Receive Request
  3505. //*****************************************************************************
  3506. //
  3507. // The following are defines for the bit fields in the I2C_O_SDR register.
  3508. //
  3509. //*****************************************************************************
  3510. #define I2C_SDR_DATA_M 0x000000FF // Data for Transfer
  3511. #define I2C_SDR_DATA_S 0
  3512. //*****************************************************************************
  3513. //
  3514. // The following are defines for the bit fields in the I2C_O_SIMR register.
  3515. //
  3516. //*****************************************************************************
  3517. #define I2C_SIMR_RXFFIM 0x00000100 // Receive FIFO Full Interrupt Mask
  3518. #define I2C_SIMR_TXFEIM 0x00000080 // Transmit FIFO Empty Interrupt
  3519. // Mask
  3520. #define I2C_SIMR_RXIM 0x00000040 // Receive FIFO Request Interrupt
  3521. // Mask
  3522. #define I2C_SIMR_TXIM 0x00000020 // Transmit FIFO Request Interrupt
  3523. // Mask
  3524. #define I2C_SIMR_DMATXIM 0x00000010 // Transmit DMA Interrupt Mask
  3525. #define I2C_SIMR_DMARXIM 0x00000008 // Receive DMA Interrupt Mask
  3526. #define I2C_SIMR_STOPIM 0x00000004 // Stop Condition Interrupt Mask
  3527. #define I2C_SIMR_STARTIM 0x00000002 // Start Condition Interrupt Mask
  3528. #define I2C_SIMR_DATAIM 0x00000001 // Data Interrupt Mask
  3529. //*****************************************************************************
  3530. //
  3531. // The following are defines for the bit fields in the I2C_O_SRIS register.
  3532. //
  3533. //*****************************************************************************
  3534. #define I2C_SRIS_RXFFRIS 0x00000100 // Receive FIFO Full Raw Interrupt
  3535. // Status
  3536. #define I2C_SRIS_TXFERIS 0x00000080 // Transmit FIFO Empty Raw
  3537. // Interrupt Status
  3538. #define I2C_SRIS_RXRIS 0x00000040 // Receive FIFO Request Raw
  3539. // Interrupt Status
  3540. #define I2C_SRIS_TXRIS 0x00000020 // Transmit Request Raw Interrupt
  3541. // Status
  3542. #define I2C_SRIS_DMATXRIS 0x00000010 // Transmit DMA Raw Interrupt
  3543. // Status
  3544. #define I2C_SRIS_DMARXRIS 0x00000008 // Receive DMA Raw Interrupt Status
  3545. #define I2C_SRIS_STOPRIS 0x00000004 // Stop Condition Raw Interrupt
  3546. // Status
  3547. #define I2C_SRIS_STARTRIS 0x00000002 // Start Condition Raw Interrupt
  3548. // Status
  3549. #define I2C_SRIS_DATARIS 0x00000001 // Data Raw Interrupt Status
  3550. //*****************************************************************************
  3551. //
  3552. // The following are defines for the bit fields in the I2C_O_SMIS register.
  3553. //
  3554. //*****************************************************************************
  3555. #define I2C_SMIS_RXFFMIS 0x00000100 // Receive FIFO Full Interrupt Mask
  3556. #define I2C_SMIS_TXFEMIS 0x00000080 // Transmit FIFO Empty Interrupt
  3557. // Mask
  3558. #define I2C_SMIS_RXMIS 0x00000040 // Receive FIFO Request Interrupt
  3559. // Mask
  3560. #define I2C_SMIS_TXMIS 0x00000020 // Transmit FIFO Request Interrupt
  3561. // Mask
  3562. #define I2C_SMIS_DMATXMIS 0x00000010 // Transmit DMA Masked Interrupt
  3563. // Status
  3564. #define I2C_SMIS_DMARXMIS 0x00000008 // Receive DMA Masked Interrupt
  3565. // Status
  3566. #define I2C_SMIS_STOPMIS 0x00000004 // Stop Condition Masked Interrupt
  3567. // Status
  3568. #define I2C_SMIS_STARTMIS 0x00000002 // Start Condition Masked Interrupt
  3569. // Status
  3570. #define I2C_SMIS_DATAMIS 0x00000001 // Data Masked Interrupt Status
  3571. //*****************************************************************************
  3572. //
  3573. // The following are defines for the bit fields in the I2C_O_SICR register.
  3574. //
  3575. //*****************************************************************************
  3576. #define I2C_SICR_RXFFIC 0x00000100 // Receive FIFO Full Interrupt Mask
  3577. #define I2C_SICR_TXFEIC 0x00000080 // Transmit FIFO Empty Interrupt
  3578. // Mask
  3579. #define I2C_SICR_RXIC 0x00000040 // Receive Request Interrupt Mask
  3580. #define I2C_SICR_TXIC 0x00000020 // Transmit Request Interrupt Mask
  3581. #define I2C_SICR_DMATXIC 0x00000010 // Transmit DMA Interrupt Clear
  3582. #define I2C_SICR_DMARXIC 0x00000008 // Receive DMA Interrupt Clear
  3583. #define I2C_SICR_STOPIC 0x00000004 // Stop Condition Interrupt Clear
  3584. #define I2C_SICR_STARTIC 0x00000002 // Start Condition Interrupt Clear
  3585. #define I2C_SICR_DATAIC 0x00000001 // Data Interrupt Clear
  3586. //*****************************************************************************
  3587. //
  3588. // The following are defines for the bit fields in the I2C_O_SOAR2 register.
  3589. //
  3590. //*****************************************************************************
  3591. #define I2C_SOAR2_OAR2EN 0x00000080 // I2C Slave Own Address 2 Enable
  3592. #define I2C_SOAR2_OAR2_M 0x0000007F // I2C Slave Own Address 2
  3593. #define I2C_SOAR2_OAR2_S 0
  3594. //*****************************************************************************
  3595. //
  3596. // The following are defines for the bit fields in the I2C_O_SACKCTL register.
  3597. //
  3598. //*****************************************************************************
  3599. #define I2C_SACKCTL_ACKOVAL 0x00000002 // I2C Slave ACK Override Value
  3600. #define I2C_SACKCTL_ACKOEN 0x00000001 // I2C Slave ACK Override Enable
  3601. //*****************************************************************************
  3602. //
  3603. // The following are defines for the bit fields in the I2C_O_FIFODATA register.
  3604. //
  3605. //*****************************************************************************
  3606. #define I2C_FIFODATA_DATA_M 0x000000FF // I2C TX FIFO Write Data Byte
  3607. #define I2C_FIFODATA_DATA_S 0
  3608. //*****************************************************************************
  3609. //
  3610. // The following are defines for the bit fields in the I2C_O_FIFOCTL register.
  3611. //
  3612. //*****************************************************************************
  3613. #define I2C_FIFOCTL_RXASGNMT 0x80000000 // RX Control Assignment
  3614. #define I2C_FIFOCTL_RXFLUSH 0x40000000 // RX FIFO Flush
  3615. #define I2C_FIFOCTL_DMARXENA 0x20000000 // DMA RX Channel Enable
  3616. #define I2C_FIFOCTL_RXTRIG_M 0x00070000 // RX FIFO Trigger
  3617. #define I2C_FIFOCTL_TXASGNMT 0x00008000 // TX Control Assignment
  3618. #define I2C_FIFOCTL_TXFLUSH 0x00004000 // TX FIFO Flush
  3619. #define I2C_FIFOCTL_DMATXENA 0x00002000 // DMA TX Channel Enable
  3620. #define I2C_FIFOCTL_TXTRIG_M 0x00000007 // TX FIFO Trigger
  3621. #define I2C_FIFOCTL_RXTRIG_S 16
  3622. #define I2C_FIFOCTL_TXTRIG_S 0
  3623. //*****************************************************************************
  3624. //
  3625. // The following are defines for the bit fields in the I2C_O_FIFOSTATUS
  3626. // register.
  3627. //
  3628. //*****************************************************************************
  3629. #define I2C_FIFOSTATUS_RXABVTRIG \
  3630. 0x00040000 // RX FIFO Above Trigger Level
  3631. #define I2C_FIFOSTATUS_RXFF 0x00020000 // RX FIFO Full
  3632. #define I2C_FIFOSTATUS_RXFE 0x00010000 // RX FIFO Empty
  3633. #define I2C_FIFOSTATUS_TXBLWTRIG \
  3634. 0x00000004 // TX FIFO Below Trigger Level
  3635. #define I2C_FIFOSTATUS_TXFF 0x00000002 // TX FIFO Full
  3636. #define I2C_FIFOSTATUS_TXFE 0x00000001 // TX FIFO Empty
  3637. //*****************************************************************************
  3638. //
  3639. // The following are defines for the bit fields in the I2C_O_PP register.
  3640. //
  3641. //*****************************************************************************
  3642. #define I2C_PP_HS 0x00000001 // High-Speed Capable
  3643. //*****************************************************************************
  3644. //
  3645. // The following are defines for the bit fields in the I2C_O_PC register.
  3646. //
  3647. //*****************************************************************************
  3648. #define I2C_PC_HS 0x00000001 // High-Speed Capable
  3649. //*****************************************************************************
  3650. //
  3651. // The following are defines for the bit fields in the PWM_O_CTL register.
  3652. //
  3653. //*****************************************************************************
  3654. #define PWM_CTL_GLOBALSYNC3 0x00000008 // Update PWM Generator 3
  3655. #define PWM_CTL_GLOBALSYNC2 0x00000004 // Update PWM Generator 2
  3656. #define PWM_CTL_GLOBALSYNC1 0x00000002 // Update PWM Generator 1
  3657. #define PWM_CTL_GLOBALSYNC0 0x00000001 // Update PWM Generator 0
  3658. //*****************************************************************************
  3659. //
  3660. // The following are defines for the bit fields in the PWM_O_SYNC register.
  3661. //
  3662. //*****************************************************************************
  3663. #define PWM_SYNC_SYNC3 0x00000008 // Reset Generator 3 Counter
  3664. #define PWM_SYNC_SYNC2 0x00000004 // Reset Generator 2 Counter
  3665. #define PWM_SYNC_SYNC1 0x00000002 // Reset Generator 1 Counter
  3666. #define PWM_SYNC_SYNC0 0x00000001 // Reset Generator 0 Counter
  3667. //*****************************************************************************
  3668. //
  3669. // The following are defines for the bit fields in the PWM_O_ENABLE register.
  3670. //
  3671. //*****************************************************************************
  3672. #define PWM_ENABLE_PWM7EN 0x00000080 // MnPWM7 Output Enable
  3673. #define PWM_ENABLE_PWM6EN 0x00000040 // MnPWM6 Output Enable
  3674. #define PWM_ENABLE_PWM5EN 0x00000020 // MnPWM5 Output Enable
  3675. #define PWM_ENABLE_PWM4EN 0x00000010 // MnPWM4 Output Enable
  3676. #define PWM_ENABLE_PWM3EN 0x00000008 // MnPWM3 Output Enable
  3677. #define PWM_ENABLE_PWM2EN 0x00000004 // MnPWM2 Output Enable
  3678. #define PWM_ENABLE_PWM1EN 0x00000002 // MnPWM1 Output Enable
  3679. #define PWM_ENABLE_PWM0EN 0x00000001 // MnPWM0 Output Enable
  3680. //*****************************************************************************
  3681. //
  3682. // The following are defines for the bit fields in the PWM_O_INVERT register.
  3683. //
  3684. //*****************************************************************************
  3685. #define PWM_INVERT_PWM7INV 0x00000080 // Invert MnPWM7 Signal
  3686. #define PWM_INVERT_PWM6INV 0x00000040 // Invert MnPWM6 Signal
  3687. #define PWM_INVERT_PWM5INV 0x00000020 // Invert MnPWM5 Signal
  3688. #define PWM_INVERT_PWM4INV 0x00000010 // Invert MnPWM4 Signal
  3689. #define PWM_INVERT_PWM3INV 0x00000008 // Invert MnPWM3 Signal
  3690. #define PWM_INVERT_PWM2INV 0x00000004 // Invert MnPWM2 Signal
  3691. #define PWM_INVERT_PWM1INV 0x00000002 // Invert MnPWM1 Signal
  3692. #define PWM_INVERT_PWM0INV 0x00000001 // Invert MnPWM0 Signal
  3693. //*****************************************************************************
  3694. //
  3695. // The following are defines for the bit fields in the PWM_O_FAULT register.
  3696. //
  3697. //*****************************************************************************
  3698. #define PWM_FAULT_FAULT7 0x00000080 // MnPWM7 Fault
  3699. #define PWM_FAULT_FAULT6 0x00000040 // MnPWM6 Fault
  3700. #define PWM_FAULT_FAULT5 0x00000020 // MnPWM5 Fault
  3701. #define PWM_FAULT_FAULT4 0x00000010 // MnPWM4 Fault
  3702. #define PWM_FAULT_FAULT3 0x00000008 // MnPWM3 Fault
  3703. #define PWM_FAULT_FAULT2 0x00000004 // MnPWM2 Fault
  3704. #define PWM_FAULT_FAULT1 0x00000002 // MnPWM1 Fault
  3705. #define PWM_FAULT_FAULT0 0x00000001 // MnPWM0 Fault
  3706. //*****************************************************************************
  3707. //
  3708. // The following are defines for the bit fields in the PWM_O_INTEN register.
  3709. //
  3710. //*****************************************************************************
  3711. #define PWM_INTEN_INTFAULT3 0x00080000 // Interrupt Fault 3
  3712. #define PWM_INTEN_INTFAULT2 0x00040000 // Interrupt Fault 2
  3713. #define PWM_INTEN_INTFAULT1 0x00020000 // Interrupt Fault 1
  3714. #define PWM_INTEN_INTFAULT0 0x00010000 // Interrupt Fault 0
  3715. #define PWM_INTEN_INTPWM3 0x00000008 // PWM3 Interrupt Enable
  3716. #define PWM_INTEN_INTPWM2 0x00000004 // PWM2 Interrupt Enable
  3717. #define PWM_INTEN_INTPWM1 0x00000002 // PWM1 Interrupt Enable
  3718. #define PWM_INTEN_INTPWM0 0x00000001 // PWM0 Interrupt Enable
  3719. //*****************************************************************************
  3720. //
  3721. // The following are defines for the bit fields in the PWM_O_RIS register.
  3722. //
  3723. //*****************************************************************************
  3724. #define PWM_RIS_INTFAULT3 0x00080000 // Interrupt Fault PWM 3
  3725. #define PWM_RIS_INTFAULT2 0x00040000 // Interrupt Fault PWM 2
  3726. #define PWM_RIS_INTFAULT1 0x00020000 // Interrupt Fault PWM 1
  3727. #define PWM_RIS_INTFAULT0 0x00010000 // Interrupt Fault PWM 0
  3728. #define PWM_RIS_INTPWM3 0x00000008 // PWM3 Interrupt Asserted
  3729. #define PWM_RIS_INTPWM2 0x00000004 // PWM2 Interrupt Asserted
  3730. #define PWM_RIS_INTPWM1 0x00000002 // PWM1 Interrupt Asserted
  3731. #define PWM_RIS_INTPWM0 0x00000001 // PWM0 Interrupt Asserted
  3732. //*****************************************************************************
  3733. //
  3734. // The following are defines for the bit fields in the PWM_O_ISC register.
  3735. //
  3736. //*****************************************************************************
  3737. #define PWM_ISC_INTFAULT3 0x00080000 // FAULT3 Interrupt Asserted
  3738. #define PWM_ISC_INTFAULT2 0x00040000 // FAULT2 Interrupt Asserted
  3739. #define PWM_ISC_INTFAULT1 0x00020000 // FAULT1 Interrupt Asserted
  3740. #define PWM_ISC_INTFAULT0 0x00010000 // FAULT0 Interrupt Asserted
  3741. #define PWM_ISC_INTPWM3 0x00000008 // PWM3 Interrupt Status
  3742. #define PWM_ISC_INTPWM2 0x00000004 // PWM2 Interrupt Status
  3743. #define PWM_ISC_INTPWM1 0x00000002 // PWM1 Interrupt Status
  3744. #define PWM_ISC_INTPWM0 0x00000001 // PWM0 Interrupt Status
  3745. //*****************************************************************************
  3746. //
  3747. // The following are defines for the bit fields in the PWM_O_STATUS register.
  3748. //
  3749. //*****************************************************************************
  3750. #define PWM_STATUS_FAULT3 0x00000008 // Generator 3 Fault Status
  3751. #define PWM_STATUS_FAULT2 0x00000004 // Generator 2 Fault Status
  3752. #define PWM_STATUS_FAULT1 0x00000002 // Generator 1 Fault Status
  3753. #define PWM_STATUS_FAULT0 0x00000001 // Generator 0 Fault Status
  3754. //*****************************************************************************
  3755. //
  3756. // The following are defines for the bit fields in the PWM_O_FAULTVAL register.
  3757. //
  3758. //*****************************************************************************
  3759. #define PWM_FAULTVAL_PWM7 0x00000080 // MnPWM7 Fault Value
  3760. #define PWM_FAULTVAL_PWM6 0x00000040 // MnPWM6 Fault Value
  3761. #define PWM_FAULTVAL_PWM5 0x00000020 // MnPWM5 Fault Value
  3762. #define PWM_FAULTVAL_PWM4 0x00000010 // MnPWM4 Fault Value
  3763. #define PWM_FAULTVAL_PWM3 0x00000008 // MnPWM3 Fault Value
  3764. #define PWM_FAULTVAL_PWM2 0x00000004 // MnPWM2 Fault Value
  3765. #define PWM_FAULTVAL_PWM1 0x00000002 // MnPWM1 Fault Value
  3766. #define PWM_FAULTVAL_PWM0 0x00000001 // MnPWM0 Fault Value
  3767. //*****************************************************************************
  3768. //
  3769. // The following are defines for the bit fields in the PWM_O_ENUPD register.
  3770. //
  3771. //*****************************************************************************
  3772. #define PWM_ENUPD_ENUPD7_M 0x0000C000 // MnPWM7 Enable Update Mode
  3773. #define PWM_ENUPD_ENUPD7_IMM 0x00000000 // Immediate
  3774. #define PWM_ENUPD_ENUPD7_LSYNC 0x00008000 // Locally Synchronized
  3775. #define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000 // Globally Synchronized
  3776. #define PWM_ENUPD_ENUPD6_M 0x00003000 // MnPWM6 Enable Update Mode
  3777. #define PWM_ENUPD_ENUPD6_IMM 0x00000000 // Immediate
  3778. #define PWM_ENUPD_ENUPD6_LSYNC 0x00002000 // Locally Synchronized
  3779. #define PWM_ENUPD_ENUPD6_GSYNC 0x00003000 // Globally Synchronized
  3780. #define PWM_ENUPD_ENUPD5_M 0x00000C00 // MnPWM5 Enable Update Mode
  3781. #define PWM_ENUPD_ENUPD5_IMM 0x00000000 // Immediate
  3782. #define PWM_ENUPD_ENUPD5_LSYNC 0x00000800 // Locally Synchronized
  3783. #define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00 // Globally Synchronized
  3784. #define PWM_ENUPD_ENUPD4_M 0x00000300 // MnPWM4 Enable Update Mode
  3785. #define PWM_ENUPD_ENUPD4_IMM 0x00000000 // Immediate
  3786. #define PWM_ENUPD_ENUPD4_LSYNC 0x00000200 // Locally Synchronized
  3787. #define PWM_ENUPD_ENUPD4_GSYNC 0x00000300 // Globally Synchronized
  3788. #define PWM_ENUPD_ENUPD3_M 0x000000C0 // MnPWM3 Enable Update Mode
  3789. #define PWM_ENUPD_ENUPD3_IMM 0x00000000 // Immediate
  3790. #define PWM_ENUPD_ENUPD3_LSYNC 0x00000080 // Locally Synchronized
  3791. #define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0 // Globally Synchronized
  3792. #define PWM_ENUPD_ENUPD2_M 0x00000030 // MnPWM2 Enable Update Mode
  3793. #define PWM_ENUPD_ENUPD2_IMM 0x00000000 // Immediate
  3794. #define PWM_ENUPD_ENUPD2_LSYNC 0x00000020 // Locally Synchronized
  3795. #define PWM_ENUPD_ENUPD2_GSYNC 0x00000030 // Globally Synchronized
  3796. #define PWM_ENUPD_ENUPD1_M 0x0000000C // MnPWM1 Enable Update Mode
  3797. #define PWM_ENUPD_ENUPD1_IMM 0x00000000 // Immediate
  3798. #define PWM_ENUPD_ENUPD1_LSYNC 0x00000008 // Locally Synchronized
  3799. #define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C // Globally Synchronized
  3800. #define PWM_ENUPD_ENUPD0_M 0x00000003 // MnPWM0 Enable Update Mode
  3801. #define PWM_ENUPD_ENUPD0_IMM 0x00000000 // Immediate
  3802. #define PWM_ENUPD_ENUPD0_LSYNC 0x00000002 // Locally Synchronized
  3803. #define PWM_ENUPD_ENUPD0_GSYNC 0x00000003 // Globally Synchronized
  3804. //*****************************************************************************
  3805. //
  3806. // The following are defines for the bit fields in the PWM_O_0_CTL register.
  3807. //
  3808. //*****************************************************************************
  3809. #define PWM_0_CTL_LATCH 0x00040000 // Latch Fault Input
  3810. #define PWM_0_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  3811. #define PWM_0_CTL_FLTSRC 0x00010000 // Fault Condition Source
  3812. #define PWM_0_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  3813. #define PWM_0_CTL_DBFALLUPD_I 0x00000000 // Immediate
  3814. #define PWM_0_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  3815. #define PWM_0_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  3816. #define PWM_0_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  3817. #define PWM_0_CTL_DBRISEUPD_I 0x00000000 // Immediate
  3818. #define PWM_0_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  3819. #define PWM_0_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  3820. #define PWM_0_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  3821. #define PWM_0_CTL_DBCTLUPD_I 0x00000000 // Immediate
  3822. #define PWM_0_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  3823. #define PWM_0_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  3824. #define PWM_0_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  3825. #define PWM_0_CTL_GENBUPD_I 0x00000000 // Immediate
  3826. #define PWM_0_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  3827. #define PWM_0_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  3828. #define PWM_0_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  3829. #define PWM_0_CTL_GENAUPD_I 0x00000000 // Immediate
  3830. #define PWM_0_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  3831. #define PWM_0_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  3832. #define PWM_0_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  3833. #define PWM_0_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  3834. #define PWM_0_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  3835. #define PWM_0_CTL_DEBUG 0x00000004 // Debug Mode
  3836. #define PWM_0_CTL_MODE 0x00000002 // Counter Mode
  3837. #define PWM_0_CTL_ENABLE 0x00000001 // PWM Block Enable
  3838. //*****************************************************************************
  3839. //
  3840. // The following are defines for the bit fields in the PWM_O_0_INTEN register.
  3841. //
  3842. //*****************************************************************************
  3843. #define PWM_0_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  3844. // Down
  3845. #define PWM_0_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  3846. #define PWM_0_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  3847. // Down
  3848. #define PWM_0_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  3849. #define PWM_0_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  3850. #define PWM_0_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  3851. #define PWM_0_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  3852. // Down
  3853. #define PWM_0_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  3854. // Up
  3855. #define PWM_0_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  3856. // Down
  3857. #define PWM_0_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  3858. // Up
  3859. #define PWM_0_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  3860. #define PWM_0_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  3861. //*****************************************************************************
  3862. //
  3863. // The following are defines for the bit fields in the PWM_O_0_RIS register.
  3864. //
  3865. //*****************************************************************************
  3866. #define PWM_0_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  3867. // Status
  3868. #define PWM_0_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  3869. #define PWM_0_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  3870. // Status
  3871. #define PWM_0_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  3872. #define PWM_0_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  3873. #define PWM_0_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  3874. //*****************************************************************************
  3875. //
  3876. // The following are defines for the bit fields in the PWM_O_0_ISC register.
  3877. //
  3878. //*****************************************************************************
  3879. #define PWM_0_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  3880. #define PWM_0_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  3881. #define PWM_0_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  3882. #define PWM_0_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  3883. #define PWM_0_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  3884. #define PWM_0_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  3885. //*****************************************************************************
  3886. //
  3887. // The following are defines for the bit fields in the PWM_O_0_LOAD register.
  3888. //
  3889. //*****************************************************************************
  3890. #define PWM_0_LOAD_M 0x0000FFFF // Counter Load Value
  3891. #define PWM_0_LOAD_S 0
  3892. //*****************************************************************************
  3893. //
  3894. // The following are defines for the bit fields in the PWM_O_0_COUNT register.
  3895. //
  3896. //*****************************************************************************
  3897. #define PWM_0_COUNT_M 0x0000FFFF // Counter Value
  3898. #define PWM_0_COUNT_S 0
  3899. //*****************************************************************************
  3900. //
  3901. // The following are defines for the bit fields in the PWM_O_0_CMPA register.
  3902. //
  3903. //*****************************************************************************
  3904. #define PWM_0_CMPA_M 0x0000FFFF // Comparator A Value
  3905. #define PWM_0_CMPA_S 0
  3906. //*****************************************************************************
  3907. //
  3908. // The following are defines for the bit fields in the PWM_O_0_CMPB register.
  3909. //
  3910. //*****************************************************************************
  3911. #define PWM_0_CMPB_M 0x0000FFFF // Comparator B Value
  3912. #define PWM_0_CMPB_S 0
  3913. //*****************************************************************************
  3914. //
  3915. // The following are defines for the bit fields in the PWM_O_0_GENA register.
  3916. //
  3917. //*****************************************************************************
  3918. #define PWM_0_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  3919. #define PWM_0_GENA_ACTCMPBD_NONE \
  3920. 0x00000000 // Do nothing
  3921. #define PWM_0_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  3922. #define PWM_0_GENA_ACTCMPBD_ZERO \
  3923. 0x00000800 // Drive pwmA Low
  3924. #define PWM_0_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  3925. #define PWM_0_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  3926. #define PWM_0_GENA_ACTCMPBU_NONE \
  3927. 0x00000000 // Do nothing
  3928. #define PWM_0_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  3929. #define PWM_0_GENA_ACTCMPBU_ZERO \
  3930. 0x00000200 // Drive pwmA Low
  3931. #define PWM_0_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  3932. #define PWM_0_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  3933. #define PWM_0_GENA_ACTCMPAD_NONE \
  3934. 0x00000000 // Do nothing
  3935. #define PWM_0_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  3936. #define PWM_0_GENA_ACTCMPAD_ZERO \
  3937. 0x00000080 // Drive pwmA Low
  3938. #define PWM_0_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  3939. #define PWM_0_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  3940. #define PWM_0_GENA_ACTCMPAU_NONE \
  3941. 0x00000000 // Do nothing
  3942. #define PWM_0_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  3943. #define PWM_0_GENA_ACTCMPAU_ZERO \
  3944. 0x00000020 // Drive pwmA Low
  3945. #define PWM_0_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  3946. #define PWM_0_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  3947. #define PWM_0_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  3948. #define PWM_0_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  3949. #define PWM_0_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  3950. #define PWM_0_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  3951. #define PWM_0_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  3952. #define PWM_0_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  3953. #define PWM_0_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  3954. #define PWM_0_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  3955. #define PWM_0_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  3956. //*****************************************************************************
  3957. //
  3958. // The following are defines for the bit fields in the PWM_O_0_GENB register.
  3959. //
  3960. //*****************************************************************************
  3961. #define PWM_0_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  3962. #define PWM_0_GENB_ACTCMPBD_NONE \
  3963. 0x00000000 // Do nothing
  3964. #define PWM_0_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  3965. #define PWM_0_GENB_ACTCMPBD_ZERO \
  3966. 0x00000800 // Drive pwmB Low
  3967. #define PWM_0_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  3968. #define PWM_0_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  3969. #define PWM_0_GENB_ACTCMPBU_NONE \
  3970. 0x00000000 // Do nothing
  3971. #define PWM_0_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  3972. #define PWM_0_GENB_ACTCMPBU_ZERO \
  3973. 0x00000200 // Drive pwmB Low
  3974. #define PWM_0_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  3975. #define PWM_0_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  3976. #define PWM_0_GENB_ACTCMPAD_NONE \
  3977. 0x00000000 // Do nothing
  3978. #define PWM_0_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  3979. #define PWM_0_GENB_ACTCMPAD_ZERO \
  3980. 0x00000080 // Drive pwmB Low
  3981. #define PWM_0_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  3982. #define PWM_0_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  3983. #define PWM_0_GENB_ACTCMPAU_NONE \
  3984. 0x00000000 // Do nothing
  3985. #define PWM_0_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  3986. #define PWM_0_GENB_ACTCMPAU_ZERO \
  3987. 0x00000020 // Drive pwmB Low
  3988. #define PWM_0_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  3989. #define PWM_0_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  3990. #define PWM_0_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  3991. #define PWM_0_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  3992. #define PWM_0_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  3993. #define PWM_0_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  3994. #define PWM_0_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  3995. #define PWM_0_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  3996. #define PWM_0_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  3997. #define PWM_0_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  3998. #define PWM_0_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  3999. //*****************************************************************************
  4000. //
  4001. // The following are defines for the bit fields in the PWM_O_0_DBCTL register.
  4002. //
  4003. //*****************************************************************************
  4004. #define PWM_0_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4005. //*****************************************************************************
  4006. //
  4007. // The following are defines for the bit fields in the PWM_O_0_DBRISE register.
  4008. //
  4009. //*****************************************************************************
  4010. #define PWM_0_DBRISE_DELAY_M 0x00000FFF // Dead-Band Rise Delay
  4011. #define PWM_0_DBRISE_DELAY_S 0
  4012. //*****************************************************************************
  4013. //
  4014. // The following are defines for the bit fields in the PWM_O_0_DBFALL register.
  4015. //
  4016. //*****************************************************************************
  4017. #define PWM_0_DBFALL_DELAY_M 0x00000FFF // Dead-Band Fall Delay
  4018. #define PWM_0_DBFALL_DELAY_S 0
  4019. //*****************************************************************************
  4020. //
  4021. // The following are defines for the bit fields in the PWM_O_0_FLTSRC0
  4022. // register.
  4023. //
  4024. //*****************************************************************************
  4025. #define PWM_0_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4026. #define PWM_0_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4027. #define PWM_0_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4028. #define PWM_0_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4029. //*****************************************************************************
  4030. //
  4031. // The following are defines for the bit fields in the PWM_O_0_FLTSRC1
  4032. // register.
  4033. //
  4034. //*****************************************************************************
  4035. #define PWM_0_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4036. #define PWM_0_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4037. #define PWM_0_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4038. #define PWM_0_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4039. #define PWM_0_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4040. #define PWM_0_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4041. #define PWM_0_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4042. #define PWM_0_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4043. //*****************************************************************************
  4044. //
  4045. // The following are defines for the bit fields in the PWM_O_0_MINFLTPER
  4046. // register.
  4047. //
  4048. //*****************************************************************************
  4049. #define PWM_0_MINFLTPER_M 0x0000FFFF // Minimum Fault Period
  4050. #define PWM_0_MINFLTPER_S 0
  4051. //*****************************************************************************
  4052. //
  4053. // The following are defines for the bit fields in the PWM_O_1_CTL register.
  4054. //
  4055. //*****************************************************************************
  4056. #define PWM_1_CTL_LATCH 0x00040000 // Latch Fault Input
  4057. #define PWM_1_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4058. #define PWM_1_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4059. #define PWM_1_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4060. #define PWM_1_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4061. #define PWM_1_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4062. #define PWM_1_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4063. #define PWM_1_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4064. #define PWM_1_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4065. #define PWM_1_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4066. #define PWM_1_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4067. #define PWM_1_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4068. #define PWM_1_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4069. #define PWM_1_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4070. #define PWM_1_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4071. #define PWM_1_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4072. #define PWM_1_CTL_GENBUPD_I 0x00000000 // Immediate
  4073. #define PWM_1_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4074. #define PWM_1_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4075. #define PWM_1_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4076. #define PWM_1_CTL_GENAUPD_I 0x00000000 // Immediate
  4077. #define PWM_1_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4078. #define PWM_1_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4079. #define PWM_1_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4080. #define PWM_1_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4081. #define PWM_1_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4082. #define PWM_1_CTL_DEBUG 0x00000004 // Debug Mode
  4083. #define PWM_1_CTL_MODE 0x00000002 // Counter Mode
  4084. #define PWM_1_CTL_ENABLE 0x00000001 // PWM Block Enable
  4085. //*****************************************************************************
  4086. //
  4087. // The following are defines for the bit fields in the PWM_O_1_INTEN register.
  4088. //
  4089. //*****************************************************************************
  4090. #define PWM_1_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4091. // Down
  4092. #define PWM_1_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4093. #define PWM_1_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4094. // Down
  4095. #define PWM_1_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4096. #define PWM_1_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4097. #define PWM_1_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4098. #define PWM_1_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4099. // Down
  4100. #define PWM_1_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4101. // Up
  4102. #define PWM_1_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4103. // Down
  4104. #define PWM_1_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4105. // Up
  4106. #define PWM_1_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4107. #define PWM_1_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4108. //*****************************************************************************
  4109. //
  4110. // The following are defines for the bit fields in the PWM_O_1_RIS register.
  4111. //
  4112. //*****************************************************************************
  4113. #define PWM_1_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4114. // Status
  4115. #define PWM_1_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4116. #define PWM_1_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4117. // Status
  4118. #define PWM_1_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4119. #define PWM_1_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4120. #define PWM_1_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4121. //*****************************************************************************
  4122. //
  4123. // The following are defines for the bit fields in the PWM_O_1_ISC register.
  4124. //
  4125. //*****************************************************************************
  4126. #define PWM_1_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4127. #define PWM_1_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4128. #define PWM_1_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4129. #define PWM_1_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4130. #define PWM_1_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4131. #define PWM_1_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4132. //*****************************************************************************
  4133. //
  4134. // The following are defines for the bit fields in the PWM_O_1_LOAD register.
  4135. //
  4136. //*****************************************************************************
  4137. #define PWM_1_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4138. #define PWM_1_LOAD_LOAD_S 0
  4139. //*****************************************************************************
  4140. //
  4141. // The following are defines for the bit fields in the PWM_O_1_COUNT register.
  4142. //
  4143. //*****************************************************************************
  4144. #define PWM_1_COUNT_COUNT_M 0x0000FFFF // Counter Value
  4145. #define PWM_1_COUNT_COUNT_S 0
  4146. //*****************************************************************************
  4147. //
  4148. // The following are defines for the bit fields in the PWM_O_1_CMPA register.
  4149. //
  4150. //*****************************************************************************
  4151. #define PWM_1_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  4152. #define PWM_1_CMPA_COMPA_S 0
  4153. //*****************************************************************************
  4154. //
  4155. // The following are defines for the bit fields in the PWM_O_1_CMPB register.
  4156. //
  4157. //*****************************************************************************
  4158. #define PWM_1_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  4159. #define PWM_1_CMPB_COMPB_S 0
  4160. //*****************************************************************************
  4161. //
  4162. // The following are defines for the bit fields in the PWM_O_1_GENA register.
  4163. //
  4164. //*****************************************************************************
  4165. #define PWM_1_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4166. #define PWM_1_GENA_ACTCMPBD_NONE \
  4167. 0x00000000 // Do nothing
  4168. #define PWM_1_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4169. #define PWM_1_GENA_ACTCMPBD_ZERO \
  4170. 0x00000800 // Drive pwmA Low
  4171. #define PWM_1_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4172. #define PWM_1_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4173. #define PWM_1_GENA_ACTCMPBU_NONE \
  4174. 0x00000000 // Do nothing
  4175. #define PWM_1_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4176. #define PWM_1_GENA_ACTCMPBU_ZERO \
  4177. 0x00000200 // Drive pwmA Low
  4178. #define PWM_1_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4179. #define PWM_1_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4180. #define PWM_1_GENA_ACTCMPAD_NONE \
  4181. 0x00000000 // Do nothing
  4182. #define PWM_1_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4183. #define PWM_1_GENA_ACTCMPAD_ZERO \
  4184. 0x00000080 // Drive pwmA Low
  4185. #define PWM_1_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4186. #define PWM_1_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4187. #define PWM_1_GENA_ACTCMPAU_NONE \
  4188. 0x00000000 // Do nothing
  4189. #define PWM_1_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4190. #define PWM_1_GENA_ACTCMPAU_ZERO \
  4191. 0x00000020 // Drive pwmA Low
  4192. #define PWM_1_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4193. #define PWM_1_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4194. #define PWM_1_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4195. #define PWM_1_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4196. #define PWM_1_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4197. #define PWM_1_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4198. #define PWM_1_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4199. #define PWM_1_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4200. #define PWM_1_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4201. #define PWM_1_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4202. #define PWM_1_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4203. //*****************************************************************************
  4204. //
  4205. // The following are defines for the bit fields in the PWM_O_1_GENB register.
  4206. //
  4207. //*****************************************************************************
  4208. #define PWM_1_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4209. #define PWM_1_GENB_ACTCMPBD_NONE \
  4210. 0x00000000 // Do nothing
  4211. #define PWM_1_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4212. #define PWM_1_GENB_ACTCMPBD_ZERO \
  4213. 0x00000800 // Drive pwmB Low
  4214. #define PWM_1_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4215. #define PWM_1_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4216. #define PWM_1_GENB_ACTCMPBU_NONE \
  4217. 0x00000000 // Do nothing
  4218. #define PWM_1_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4219. #define PWM_1_GENB_ACTCMPBU_ZERO \
  4220. 0x00000200 // Drive pwmB Low
  4221. #define PWM_1_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4222. #define PWM_1_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4223. #define PWM_1_GENB_ACTCMPAD_NONE \
  4224. 0x00000000 // Do nothing
  4225. #define PWM_1_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4226. #define PWM_1_GENB_ACTCMPAD_ZERO \
  4227. 0x00000080 // Drive pwmB Low
  4228. #define PWM_1_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4229. #define PWM_1_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4230. #define PWM_1_GENB_ACTCMPAU_NONE \
  4231. 0x00000000 // Do nothing
  4232. #define PWM_1_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4233. #define PWM_1_GENB_ACTCMPAU_ZERO \
  4234. 0x00000020 // Drive pwmB Low
  4235. #define PWM_1_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4236. #define PWM_1_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4237. #define PWM_1_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4238. #define PWM_1_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4239. #define PWM_1_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4240. #define PWM_1_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4241. #define PWM_1_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4242. #define PWM_1_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4243. #define PWM_1_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4244. #define PWM_1_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4245. #define PWM_1_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4246. //*****************************************************************************
  4247. //
  4248. // The following are defines for the bit fields in the PWM_O_1_DBCTL register.
  4249. //
  4250. //*****************************************************************************
  4251. #define PWM_1_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4252. //*****************************************************************************
  4253. //
  4254. // The following are defines for the bit fields in the PWM_O_1_DBRISE register.
  4255. //
  4256. //*****************************************************************************
  4257. #define PWM_1_DBRISE_RISEDELAY_M \
  4258. 0x00000FFF // Dead-Band Rise Delay
  4259. #define PWM_1_DBRISE_RISEDELAY_S \
  4260. 0
  4261. //*****************************************************************************
  4262. //
  4263. // The following are defines for the bit fields in the PWM_O_1_DBFALL register.
  4264. //
  4265. //*****************************************************************************
  4266. #define PWM_1_DBFALL_FALLDELAY_M \
  4267. 0x00000FFF // Dead-Band Fall Delay
  4268. #define PWM_1_DBFALL_FALLDELAY_S \
  4269. 0
  4270. //*****************************************************************************
  4271. //
  4272. // The following are defines for the bit fields in the PWM_O_1_FLTSRC0
  4273. // register.
  4274. //
  4275. //*****************************************************************************
  4276. #define PWM_1_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4277. #define PWM_1_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4278. #define PWM_1_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4279. #define PWM_1_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4280. //*****************************************************************************
  4281. //
  4282. // The following are defines for the bit fields in the PWM_O_1_FLTSRC1
  4283. // register.
  4284. //
  4285. //*****************************************************************************
  4286. #define PWM_1_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4287. #define PWM_1_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4288. #define PWM_1_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4289. #define PWM_1_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4290. #define PWM_1_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4291. #define PWM_1_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4292. #define PWM_1_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4293. #define PWM_1_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4294. //*****************************************************************************
  4295. //
  4296. // The following are defines for the bit fields in the PWM_O_1_MINFLTPER
  4297. // register.
  4298. //
  4299. //*****************************************************************************
  4300. #define PWM_1_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  4301. #define PWM_1_MINFLTPER_MFP_S 0
  4302. //*****************************************************************************
  4303. //
  4304. // The following are defines for the bit fields in the PWM_O_2_CTL register.
  4305. //
  4306. //*****************************************************************************
  4307. #define PWM_2_CTL_LATCH 0x00040000 // Latch Fault Input
  4308. #define PWM_2_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4309. #define PWM_2_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4310. #define PWM_2_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4311. #define PWM_2_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4312. #define PWM_2_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4313. #define PWM_2_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4314. #define PWM_2_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4315. #define PWM_2_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4316. #define PWM_2_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4317. #define PWM_2_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4318. #define PWM_2_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4319. #define PWM_2_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4320. #define PWM_2_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4321. #define PWM_2_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4322. #define PWM_2_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4323. #define PWM_2_CTL_GENBUPD_I 0x00000000 // Immediate
  4324. #define PWM_2_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4325. #define PWM_2_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4326. #define PWM_2_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4327. #define PWM_2_CTL_GENAUPD_I 0x00000000 // Immediate
  4328. #define PWM_2_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4329. #define PWM_2_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4330. #define PWM_2_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4331. #define PWM_2_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4332. #define PWM_2_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4333. #define PWM_2_CTL_DEBUG 0x00000004 // Debug Mode
  4334. #define PWM_2_CTL_MODE 0x00000002 // Counter Mode
  4335. #define PWM_2_CTL_ENABLE 0x00000001 // PWM Block Enable
  4336. //*****************************************************************************
  4337. //
  4338. // The following are defines for the bit fields in the PWM_O_2_INTEN register.
  4339. //
  4340. //*****************************************************************************
  4341. #define PWM_2_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4342. // Down
  4343. #define PWM_2_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4344. #define PWM_2_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4345. // Down
  4346. #define PWM_2_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4347. #define PWM_2_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4348. #define PWM_2_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4349. #define PWM_2_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4350. // Down
  4351. #define PWM_2_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4352. // Up
  4353. #define PWM_2_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4354. // Down
  4355. #define PWM_2_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4356. // Up
  4357. #define PWM_2_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4358. #define PWM_2_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4359. //*****************************************************************************
  4360. //
  4361. // The following are defines for the bit fields in the PWM_O_2_RIS register.
  4362. //
  4363. //*****************************************************************************
  4364. #define PWM_2_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4365. // Status
  4366. #define PWM_2_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4367. #define PWM_2_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4368. // Status
  4369. #define PWM_2_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4370. #define PWM_2_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4371. #define PWM_2_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4372. //*****************************************************************************
  4373. //
  4374. // The following are defines for the bit fields in the PWM_O_2_ISC register.
  4375. //
  4376. //*****************************************************************************
  4377. #define PWM_2_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4378. #define PWM_2_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4379. #define PWM_2_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4380. #define PWM_2_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4381. #define PWM_2_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4382. #define PWM_2_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4383. //*****************************************************************************
  4384. //
  4385. // The following are defines for the bit fields in the PWM_O_2_LOAD register.
  4386. //
  4387. //*****************************************************************************
  4388. #define PWM_2_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4389. #define PWM_2_LOAD_LOAD_S 0
  4390. //*****************************************************************************
  4391. //
  4392. // The following are defines for the bit fields in the PWM_O_2_COUNT register.
  4393. //
  4394. //*****************************************************************************
  4395. #define PWM_2_COUNT_COUNT_M 0x0000FFFF // Counter Value
  4396. #define PWM_2_COUNT_COUNT_S 0
  4397. //*****************************************************************************
  4398. //
  4399. // The following are defines for the bit fields in the PWM_O_2_CMPA register.
  4400. //
  4401. //*****************************************************************************
  4402. #define PWM_2_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  4403. #define PWM_2_CMPA_COMPA_S 0
  4404. //*****************************************************************************
  4405. //
  4406. // The following are defines for the bit fields in the PWM_O_2_CMPB register.
  4407. //
  4408. //*****************************************************************************
  4409. #define PWM_2_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  4410. #define PWM_2_CMPB_COMPB_S 0
  4411. //*****************************************************************************
  4412. //
  4413. // The following are defines for the bit fields in the PWM_O_2_GENA register.
  4414. //
  4415. //*****************************************************************************
  4416. #define PWM_2_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4417. #define PWM_2_GENA_ACTCMPBD_NONE \
  4418. 0x00000000 // Do nothing
  4419. #define PWM_2_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4420. #define PWM_2_GENA_ACTCMPBD_ZERO \
  4421. 0x00000800 // Drive pwmA Low
  4422. #define PWM_2_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4423. #define PWM_2_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4424. #define PWM_2_GENA_ACTCMPBU_NONE \
  4425. 0x00000000 // Do nothing
  4426. #define PWM_2_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4427. #define PWM_2_GENA_ACTCMPBU_ZERO \
  4428. 0x00000200 // Drive pwmA Low
  4429. #define PWM_2_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4430. #define PWM_2_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4431. #define PWM_2_GENA_ACTCMPAD_NONE \
  4432. 0x00000000 // Do nothing
  4433. #define PWM_2_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4434. #define PWM_2_GENA_ACTCMPAD_ZERO \
  4435. 0x00000080 // Drive pwmA Low
  4436. #define PWM_2_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4437. #define PWM_2_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4438. #define PWM_2_GENA_ACTCMPAU_NONE \
  4439. 0x00000000 // Do nothing
  4440. #define PWM_2_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4441. #define PWM_2_GENA_ACTCMPAU_ZERO \
  4442. 0x00000020 // Drive pwmA Low
  4443. #define PWM_2_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4444. #define PWM_2_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4445. #define PWM_2_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4446. #define PWM_2_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4447. #define PWM_2_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4448. #define PWM_2_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4449. #define PWM_2_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4450. #define PWM_2_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4451. #define PWM_2_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4452. #define PWM_2_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4453. #define PWM_2_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4454. //*****************************************************************************
  4455. //
  4456. // The following are defines for the bit fields in the PWM_O_2_GENB register.
  4457. //
  4458. //*****************************************************************************
  4459. #define PWM_2_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4460. #define PWM_2_GENB_ACTCMPBD_NONE \
  4461. 0x00000000 // Do nothing
  4462. #define PWM_2_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4463. #define PWM_2_GENB_ACTCMPBD_ZERO \
  4464. 0x00000800 // Drive pwmB Low
  4465. #define PWM_2_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4466. #define PWM_2_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4467. #define PWM_2_GENB_ACTCMPBU_NONE \
  4468. 0x00000000 // Do nothing
  4469. #define PWM_2_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4470. #define PWM_2_GENB_ACTCMPBU_ZERO \
  4471. 0x00000200 // Drive pwmB Low
  4472. #define PWM_2_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4473. #define PWM_2_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4474. #define PWM_2_GENB_ACTCMPAD_NONE \
  4475. 0x00000000 // Do nothing
  4476. #define PWM_2_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4477. #define PWM_2_GENB_ACTCMPAD_ZERO \
  4478. 0x00000080 // Drive pwmB Low
  4479. #define PWM_2_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4480. #define PWM_2_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4481. #define PWM_2_GENB_ACTCMPAU_NONE \
  4482. 0x00000000 // Do nothing
  4483. #define PWM_2_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4484. #define PWM_2_GENB_ACTCMPAU_ZERO \
  4485. 0x00000020 // Drive pwmB Low
  4486. #define PWM_2_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4487. #define PWM_2_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4488. #define PWM_2_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4489. #define PWM_2_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4490. #define PWM_2_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4491. #define PWM_2_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4492. #define PWM_2_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4493. #define PWM_2_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4494. #define PWM_2_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4495. #define PWM_2_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4496. #define PWM_2_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4497. //*****************************************************************************
  4498. //
  4499. // The following are defines for the bit fields in the PWM_O_2_DBCTL register.
  4500. //
  4501. //*****************************************************************************
  4502. #define PWM_2_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4503. //*****************************************************************************
  4504. //
  4505. // The following are defines for the bit fields in the PWM_O_2_DBRISE register.
  4506. //
  4507. //*****************************************************************************
  4508. #define PWM_2_DBRISE_RISEDELAY_M \
  4509. 0x00000FFF // Dead-Band Rise Delay
  4510. #define PWM_2_DBRISE_RISEDELAY_S \
  4511. 0
  4512. //*****************************************************************************
  4513. //
  4514. // The following are defines for the bit fields in the PWM_O_2_DBFALL register.
  4515. //
  4516. //*****************************************************************************
  4517. #define PWM_2_DBFALL_FALLDELAY_M \
  4518. 0x00000FFF // Dead-Band Fall Delay
  4519. #define PWM_2_DBFALL_FALLDELAY_S \
  4520. 0
  4521. //*****************************************************************************
  4522. //
  4523. // The following are defines for the bit fields in the PWM_O_2_FLTSRC0
  4524. // register.
  4525. //
  4526. //*****************************************************************************
  4527. #define PWM_2_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4528. #define PWM_2_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4529. #define PWM_2_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4530. #define PWM_2_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4531. //*****************************************************************************
  4532. //
  4533. // The following are defines for the bit fields in the PWM_O_2_FLTSRC1
  4534. // register.
  4535. //
  4536. //*****************************************************************************
  4537. #define PWM_2_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4538. #define PWM_2_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4539. #define PWM_2_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4540. #define PWM_2_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4541. #define PWM_2_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4542. #define PWM_2_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4543. #define PWM_2_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4544. #define PWM_2_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4545. //*****************************************************************************
  4546. //
  4547. // The following are defines for the bit fields in the PWM_O_2_MINFLTPER
  4548. // register.
  4549. //
  4550. //*****************************************************************************
  4551. #define PWM_2_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  4552. #define PWM_2_MINFLTPER_MFP_S 0
  4553. //*****************************************************************************
  4554. //
  4555. // The following are defines for the bit fields in the PWM_O_3_CTL register.
  4556. //
  4557. //*****************************************************************************
  4558. #define PWM_3_CTL_LATCH 0x00040000 // Latch Fault Input
  4559. #define PWM_3_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
  4560. #define PWM_3_CTL_FLTSRC 0x00010000 // Fault Condition Source
  4561. #define PWM_3_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
  4562. #define PWM_3_CTL_DBFALLUPD_I 0x00000000 // Immediate
  4563. #define PWM_3_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
  4564. #define PWM_3_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
  4565. #define PWM_3_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
  4566. #define PWM_3_CTL_DBRISEUPD_I 0x00000000 // Immediate
  4567. #define PWM_3_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
  4568. #define PWM_3_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
  4569. #define PWM_3_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
  4570. #define PWM_3_CTL_DBCTLUPD_I 0x00000000 // Immediate
  4571. #define PWM_3_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
  4572. #define PWM_3_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
  4573. #define PWM_3_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
  4574. #define PWM_3_CTL_GENBUPD_I 0x00000000 // Immediate
  4575. #define PWM_3_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
  4576. #define PWM_3_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
  4577. #define PWM_3_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
  4578. #define PWM_3_CTL_GENAUPD_I 0x00000000 // Immediate
  4579. #define PWM_3_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
  4580. #define PWM_3_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
  4581. #define PWM_3_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
  4582. #define PWM_3_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
  4583. #define PWM_3_CTL_LOADUPD 0x00000008 // Load Register Update Mode
  4584. #define PWM_3_CTL_DEBUG 0x00000004 // Debug Mode
  4585. #define PWM_3_CTL_MODE 0x00000002 // Counter Mode
  4586. #define PWM_3_CTL_ENABLE 0x00000001 // PWM Block Enable
  4587. //*****************************************************************************
  4588. //
  4589. // The following are defines for the bit fields in the PWM_O_3_INTEN register.
  4590. //
  4591. //*****************************************************************************
  4592. #define PWM_3_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
  4593. // Down
  4594. #define PWM_3_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
  4595. #define PWM_3_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
  4596. // Down
  4597. #define PWM_3_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
  4598. #define PWM_3_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
  4599. #define PWM_3_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
  4600. #define PWM_3_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
  4601. // Down
  4602. #define PWM_3_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
  4603. // Up
  4604. #define PWM_3_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
  4605. // Down
  4606. #define PWM_3_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
  4607. // Up
  4608. #define PWM_3_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
  4609. #define PWM_3_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
  4610. //*****************************************************************************
  4611. //
  4612. // The following are defines for the bit fields in the PWM_O_3_RIS register.
  4613. //
  4614. //*****************************************************************************
  4615. #define PWM_3_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4616. // Status
  4617. #define PWM_3_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
  4618. #define PWM_3_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4619. // Status
  4620. #define PWM_3_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
  4621. #define PWM_3_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
  4622. #define PWM_3_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
  4623. //*****************************************************************************
  4624. //
  4625. // The following are defines for the bit fields in the PWM_O_3_ISC register.
  4626. //
  4627. //*****************************************************************************
  4628. #define PWM_3_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
  4629. #define PWM_3_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
  4630. #define PWM_3_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
  4631. #define PWM_3_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
  4632. #define PWM_3_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
  4633. #define PWM_3_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
  4634. //*****************************************************************************
  4635. //
  4636. // The following are defines for the bit fields in the PWM_O_3_LOAD register.
  4637. //
  4638. //*****************************************************************************
  4639. #define PWM_3_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
  4640. #define PWM_3_LOAD_LOAD_S 0
  4641. //*****************************************************************************
  4642. //
  4643. // The following are defines for the bit fields in the PWM_O_3_COUNT register.
  4644. //
  4645. //*****************************************************************************
  4646. #define PWM_3_COUNT_COUNT_M 0x0000FFFF // Counter Value
  4647. #define PWM_3_COUNT_COUNT_S 0
  4648. //*****************************************************************************
  4649. //
  4650. // The following are defines for the bit fields in the PWM_O_3_CMPA register.
  4651. //
  4652. //*****************************************************************************
  4653. #define PWM_3_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
  4654. #define PWM_3_CMPA_COMPA_S 0
  4655. //*****************************************************************************
  4656. //
  4657. // The following are defines for the bit fields in the PWM_O_3_CMPB register.
  4658. //
  4659. //*****************************************************************************
  4660. #define PWM_3_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
  4661. #define PWM_3_CMPB_COMPB_S 0
  4662. //*****************************************************************************
  4663. //
  4664. // The following are defines for the bit fields in the PWM_O_3_GENA register.
  4665. //
  4666. //*****************************************************************************
  4667. #define PWM_3_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4668. #define PWM_3_GENA_ACTCMPBD_NONE \
  4669. 0x00000000 // Do nothing
  4670. #define PWM_3_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
  4671. #define PWM_3_GENA_ACTCMPBD_ZERO \
  4672. 0x00000800 // Drive pwmA Low
  4673. #define PWM_3_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
  4674. #define PWM_3_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4675. #define PWM_3_GENA_ACTCMPBU_NONE \
  4676. 0x00000000 // Do nothing
  4677. #define PWM_3_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
  4678. #define PWM_3_GENA_ACTCMPBU_ZERO \
  4679. 0x00000200 // Drive pwmA Low
  4680. #define PWM_3_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
  4681. #define PWM_3_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4682. #define PWM_3_GENA_ACTCMPAD_NONE \
  4683. 0x00000000 // Do nothing
  4684. #define PWM_3_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
  4685. #define PWM_3_GENA_ACTCMPAD_ZERO \
  4686. 0x00000080 // Drive pwmA Low
  4687. #define PWM_3_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
  4688. #define PWM_3_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4689. #define PWM_3_GENA_ACTCMPAU_NONE \
  4690. 0x00000000 // Do nothing
  4691. #define PWM_3_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
  4692. #define PWM_3_GENA_ACTCMPAU_ZERO \
  4693. 0x00000020 // Drive pwmA Low
  4694. #define PWM_3_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
  4695. #define PWM_3_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4696. #define PWM_3_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
  4697. #define PWM_3_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
  4698. #define PWM_3_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
  4699. #define PWM_3_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
  4700. #define PWM_3_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
  4701. #define PWM_3_GENA_ACTZERO_NONE 0x00000000 // Do nothing
  4702. #define PWM_3_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
  4703. #define PWM_3_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
  4704. #define PWM_3_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
  4705. //*****************************************************************************
  4706. //
  4707. // The following are defines for the bit fields in the PWM_O_3_GENB register.
  4708. //
  4709. //*****************************************************************************
  4710. #define PWM_3_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
  4711. #define PWM_3_GENB_ACTCMPBD_NONE \
  4712. 0x00000000 // Do nothing
  4713. #define PWM_3_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
  4714. #define PWM_3_GENB_ACTCMPBD_ZERO \
  4715. 0x00000800 // Drive pwmB Low
  4716. #define PWM_3_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
  4717. #define PWM_3_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
  4718. #define PWM_3_GENB_ACTCMPBU_NONE \
  4719. 0x00000000 // Do nothing
  4720. #define PWM_3_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
  4721. #define PWM_3_GENB_ACTCMPBU_ZERO \
  4722. 0x00000200 // Drive pwmB Low
  4723. #define PWM_3_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
  4724. #define PWM_3_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
  4725. #define PWM_3_GENB_ACTCMPAD_NONE \
  4726. 0x00000000 // Do nothing
  4727. #define PWM_3_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
  4728. #define PWM_3_GENB_ACTCMPAD_ZERO \
  4729. 0x00000080 // Drive pwmB Low
  4730. #define PWM_3_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
  4731. #define PWM_3_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
  4732. #define PWM_3_GENB_ACTCMPAU_NONE \
  4733. 0x00000000 // Do nothing
  4734. #define PWM_3_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
  4735. #define PWM_3_GENB_ACTCMPAU_ZERO \
  4736. 0x00000020 // Drive pwmB Low
  4737. #define PWM_3_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
  4738. #define PWM_3_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
  4739. #define PWM_3_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
  4740. #define PWM_3_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
  4741. #define PWM_3_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
  4742. #define PWM_3_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
  4743. #define PWM_3_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
  4744. #define PWM_3_GENB_ACTZERO_NONE 0x00000000 // Do nothing
  4745. #define PWM_3_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
  4746. #define PWM_3_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
  4747. #define PWM_3_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
  4748. //*****************************************************************************
  4749. //
  4750. // The following are defines for the bit fields in the PWM_O_3_DBCTL register.
  4751. //
  4752. //*****************************************************************************
  4753. #define PWM_3_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
  4754. //*****************************************************************************
  4755. //
  4756. // The following are defines for the bit fields in the PWM_O_3_DBRISE register.
  4757. //
  4758. //*****************************************************************************
  4759. #define PWM_3_DBRISE_RISEDELAY_M \
  4760. 0x00000FFF // Dead-Band Rise Delay
  4761. #define PWM_3_DBRISE_RISEDELAY_S \
  4762. 0
  4763. //*****************************************************************************
  4764. //
  4765. // The following are defines for the bit fields in the PWM_O_3_DBFALL register.
  4766. //
  4767. //*****************************************************************************
  4768. #define PWM_3_DBFALL_FALLDELAY_M \
  4769. 0x00000FFF // Dead-Band Fall Delay
  4770. #define PWM_3_DBFALL_FALLDELAY_S \
  4771. 0
  4772. //*****************************************************************************
  4773. //
  4774. // The following are defines for the bit fields in the PWM_O_3_FLTSRC0
  4775. // register.
  4776. //
  4777. //*****************************************************************************
  4778. #define PWM_3_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
  4779. #define PWM_3_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
  4780. #define PWM_3_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
  4781. #define PWM_3_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
  4782. //*****************************************************************************
  4783. //
  4784. // The following are defines for the bit fields in the PWM_O_3_FLTSRC1
  4785. // register.
  4786. //
  4787. //*****************************************************************************
  4788. #define PWM_3_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
  4789. #define PWM_3_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
  4790. #define PWM_3_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
  4791. #define PWM_3_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
  4792. #define PWM_3_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
  4793. #define PWM_3_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
  4794. #define PWM_3_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
  4795. #define PWM_3_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
  4796. //*****************************************************************************
  4797. //
  4798. // The following are defines for the bit fields in the PWM_O_3_MINFLTPER
  4799. // register.
  4800. //
  4801. //*****************************************************************************
  4802. #define PWM_3_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
  4803. #define PWM_3_MINFLTPER_MFP_S 0
  4804. //*****************************************************************************
  4805. //
  4806. // The following are defines for the bit fields in the PWM_O_0_FLTSEN register.
  4807. //
  4808. //*****************************************************************************
  4809. #define PWM_0_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  4810. #define PWM_0_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  4811. #define PWM_0_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  4812. #define PWM_0_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  4813. //*****************************************************************************
  4814. //
  4815. // The following are defines for the bit fields in the PWM_O_0_FLTSTAT0
  4816. // register.
  4817. //
  4818. //*****************************************************************************
  4819. #define PWM_0_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  4820. #define PWM_0_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  4821. #define PWM_0_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  4822. #define PWM_0_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  4823. //*****************************************************************************
  4824. //
  4825. // The following are defines for the bit fields in the PWM_O_0_FLTSTAT1
  4826. // register.
  4827. //
  4828. //*****************************************************************************
  4829. #define PWM_0_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  4830. #define PWM_0_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  4831. #define PWM_0_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  4832. #define PWM_0_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  4833. #define PWM_0_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  4834. #define PWM_0_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  4835. #define PWM_0_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  4836. #define PWM_0_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  4837. //*****************************************************************************
  4838. //
  4839. // The following are defines for the bit fields in the PWM_O_1_FLTSEN register.
  4840. //
  4841. //*****************************************************************************
  4842. #define PWM_1_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  4843. #define PWM_1_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  4844. #define PWM_1_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  4845. #define PWM_1_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  4846. //*****************************************************************************
  4847. //
  4848. // The following are defines for the bit fields in the PWM_O_1_FLTSTAT0
  4849. // register.
  4850. //
  4851. //*****************************************************************************
  4852. #define PWM_1_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  4853. #define PWM_1_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  4854. #define PWM_1_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  4855. #define PWM_1_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  4856. //*****************************************************************************
  4857. //
  4858. // The following are defines for the bit fields in the PWM_O_1_FLTSTAT1
  4859. // register.
  4860. //
  4861. //*****************************************************************************
  4862. #define PWM_1_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  4863. #define PWM_1_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  4864. #define PWM_1_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  4865. #define PWM_1_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  4866. #define PWM_1_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  4867. #define PWM_1_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  4868. #define PWM_1_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  4869. #define PWM_1_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  4870. //*****************************************************************************
  4871. //
  4872. // The following are defines for the bit fields in the PWM_O_2_FLTSEN register.
  4873. //
  4874. //*****************************************************************************
  4875. #define PWM_2_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  4876. #define PWM_2_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  4877. #define PWM_2_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  4878. #define PWM_2_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  4879. //*****************************************************************************
  4880. //
  4881. // The following are defines for the bit fields in the PWM_O_2_FLTSTAT0
  4882. // register.
  4883. //
  4884. //*****************************************************************************
  4885. #define PWM_2_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  4886. #define PWM_2_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  4887. #define PWM_2_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  4888. #define PWM_2_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  4889. //*****************************************************************************
  4890. //
  4891. // The following are defines for the bit fields in the PWM_O_2_FLTSTAT1
  4892. // register.
  4893. //
  4894. //*****************************************************************************
  4895. #define PWM_2_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  4896. #define PWM_2_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  4897. #define PWM_2_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  4898. #define PWM_2_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  4899. #define PWM_2_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  4900. #define PWM_2_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  4901. #define PWM_2_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  4902. #define PWM_2_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  4903. //*****************************************************************************
  4904. //
  4905. // The following are defines for the bit fields in the PWM_O_3_FLTSEN register.
  4906. //
  4907. //*****************************************************************************
  4908. #define PWM_3_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
  4909. #define PWM_3_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
  4910. #define PWM_3_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
  4911. #define PWM_3_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
  4912. //*****************************************************************************
  4913. //
  4914. // The following are defines for the bit fields in the PWM_O_3_FLTSTAT0
  4915. // register.
  4916. //
  4917. //*****************************************************************************
  4918. #define PWM_3_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
  4919. #define PWM_3_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
  4920. #define PWM_3_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
  4921. #define PWM_3_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
  4922. //*****************************************************************************
  4923. //
  4924. // The following are defines for the bit fields in the PWM_O_3_FLTSTAT1
  4925. // register.
  4926. //
  4927. //*****************************************************************************
  4928. #define PWM_3_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
  4929. #define PWM_3_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
  4930. #define PWM_3_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
  4931. #define PWM_3_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
  4932. #define PWM_3_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
  4933. #define PWM_3_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
  4934. #define PWM_3_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
  4935. #define PWM_3_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
  4936. //*****************************************************************************
  4937. //
  4938. // The following are defines for the bit fields in the PWM_O_PP register.
  4939. //
  4940. //*****************************************************************************
  4941. #define PWM_PP_ONE 0x00000400 // One-Shot Mode
  4942. #define PWM_PP_EFAULT 0x00000200 // Extended Fault
  4943. #define PWM_PP_ESYNC 0x00000100 // Extended Synchronization
  4944. #define PWM_PP_FCNT_M 0x000000F0 // Fault Inputs (per PWM unit)
  4945. #define PWM_PP_GCNT_M 0x0000000F // Generators
  4946. #define PWM_PP_FCNT_S 4
  4947. #define PWM_PP_GCNT_S 0
  4948. //*****************************************************************************
  4949. //
  4950. // The following are defines for the bit fields in the PWM_O_CC register.
  4951. //
  4952. //*****************************************************************************
  4953. #define PWM_CC_USEPWM 0x00000100 // Use PWM Clock Divisor
  4954. #define PWM_CC_PWMDIV_M 0x00000007 // PWM Clock Divider
  4955. #define PWM_CC_PWMDIV_2 0x00000000 // /2
  4956. #define PWM_CC_PWMDIV_4 0x00000001 // /4
  4957. #define PWM_CC_PWMDIV_8 0x00000002 // /8
  4958. #define PWM_CC_PWMDIV_16 0x00000003 // /16
  4959. #define PWM_CC_PWMDIV_32 0x00000004 // /32
  4960. #define PWM_CC_PWMDIV_64 0x00000005 // /64
  4961. //*****************************************************************************
  4962. //
  4963. // The following are defines for the bit fields in the QEI_O_CTL register.
  4964. //
  4965. //*****************************************************************************
  4966. #define QEI_CTL_FILTCNT_M 0x000F0000 // Input Filter Prescale Count
  4967. #define QEI_CTL_FILTEN 0x00002000 // Enable Input Filter
  4968. #define QEI_CTL_STALLEN 0x00001000 // Stall QEI
  4969. #define QEI_CTL_INVI 0x00000800 // Invert Index Pulse
  4970. #define QEI_CTL_INVB 0x00000400 // Invert PhB
  4971. #define QEI_CTL_INVA 0x00000200 // Invert PhA
  4972. #define QEI_CTL_VELDIV_M 0x000001C0 // Predivide Velocity
  4973. #define QEI_CTL_VELDIV_1 0x00000000 // QEI clock /1
  4974. #define QEI_CTL_VELDIV_2 0x00000040 // QEI clock /2
  4975. #define QEI_CTL_VELDIV_4 0x00000080 // QEI clock /4
  4976. #define QEI_CTL_VELDIV_8 0x000000C0 // QEI clock /8
  4977. #define QEI_CTL_VELDIV_16 0x00000100 // QEI clock /16
  4978. #define QEI_CTL_VELDIV_32 0x00000140 // QEI clock /32
  4979. #define QEI_CTL_VELDIV_64 0x00000180 // QEI clock /64
  4980. #define QEI_CTL_VELDIV_128 0x000001C0 // QEI clock /128
  4981. #define QEI_CTL_VELEN 0x00000020 // Capture Velocity
  4982. #define QEI_CTL_RESMODE 0x00000010 // Reset Mode
  4983. #define QEI_CTL_CAPMODE 0x00000008 // Capture Mode
  4984. #define QEI_CTL_SIGMODE 0x00000004 // Signal Mode
  4985. #define QEI_CTL_SWAP 0x00000002 // Swap Signals
  4986. #define QEI_CTL_ENABLE 0x00000001 // Enable QEI
  4987. #define QEI_CTL_FILTCNT_S 16
  4988. //*****************************************************************************
  4989. //
  4990. // The following are defines for the bit fields in the QEI_O_STAT register.
  4991. //
  4992. //*****************************************************************************
  4993. #define QEI_STAT_DIRECTION 0x00000002 // Direction of Rotation
  4994. #define QEI_STAT_ERROR 0x00000001 // Error Detected
  4995. //*****************************************************************************
  4996. //
  4997. // The following are defines for the bit fields in the QEI_O_POS register.
  4998. //
  4999. //*****************************************************************************
  5000. #define QEI_POS_M 0xFFFFFFFF // Current Position Integrator
  5001. // Value
  5002. #define QEI_POS_S 0
  5003. //*****************************************************************************
  5004. //
  5005. // The following are defines for the bit fields in the QEI_O_MAXPOS register.
  5006. //
  5007. //*****************************************************************************
  5008. #define QEI_MAXPOS_M 0xFFFFFFFF // Maximum Position Integrator
  5009. // Value
  5010. #define QEI_MAXPOS_S 0
  5011. //*****************************************************************************
  5012. //
  5013. // The following are defines for the bit fields in the QEI_O_LOAD register.
  5014. //
  5015. //*****************************************************************************
  5016. #define QEI_LOAD_M 0xFFFFFFFF // Velocity Timer Load Value
  5017. #define QEI_LOAD_S 0
  5018. //*****************************************************************************
  5019. //
  5020. // The following are defines for the bit fields in the QEI_O_TIME register.
  5021. //
  5022. //*****************************************************************************
  5023. #define QEI_TIME_M 0xFFFFFFFF // Velocity Timer Current Value
  5024. #define QEI_TIME_S 0
  5025. //*****************************************************************************
  5026. //
  5027. // The following are defines for the bit fields in the QEI_O_COUNT register.
  5028. //
  5029. //*****************************************************************************
  5030. #define QEI_COUNT_M 0xFFFFFFFF // Velocity Pulse Count
  5031. #define QEI_COUNT_S 0
  5032. //*****************************************************************************
  5033. //
  5034. // The following are defines for the bit fields in the QEI_O_SPEED register.
  5035. //
  5036. //*****************************************************************************
  5037. #define QEI_SPEED_M 0xFFFFFFFF // Velocity
  5038. #define QEI_SPEED_S 0
  5039. //*****************************************************************************
  5040. //
  5041. // The following are defines for the bit fields in the QEI_O_INTEN register.
  5042. //
  5043. //*****************************************************************************
  5044. #define QEI_INTEN_ERROR 0x00000008 // Phase Error Interrupt Enable
  5045. #define QEI_INTEN_DIR 0x00000004 // Direction Change Interrupt
  5046. // Enable
  5047. #define QEI_INTEN_TIMER 0x00000002 // Timer Expires Interrupt Enable
  5048. #define QEI_INTEN_INDEX 0x00000001 // Index Pulse Detected Interrupt
  5049. // Enable
  5050. //*****************************************************************************
  5051. //
  5052. // The following are defines for the bit fields in the QEI_O_RIS register.
  5053. //
  5054. //*****************************************************************************
  5055. #define QEI_RIS_ERROR 0x00000008 // Phase Error Detected
  5056. #define QEI_RIS_DIR 0x00000004 // Direction Change Detected
  5057. #define QEI_RIS_TIMER 0x00000002 // Velocity Timer Expired
  5058. #define QEI_RIS_INDEX 0x00000001 // Index Pulse Asserted
  5059. //*****************************************************************************
  5060. //
  5061. // The following are defines for the bit fields in the QEI_O_ISC register.
  5062. //
  5063. //*****************************************************************************
  5064. #define QEI_ISC_ERROR 0x00000008 // Phase Error Interrupt
  5065. #define QEI_ISC_DIR 0x00000004 // Direction Change Interrupt
  5066. #define QEI_ISC_TIMER 0x00000002 // Velocity Timer Expired Interrupt
  5067. #define QEI_ISC_INDEX 0x00000001 // Index Pulse Interrupt
  5068. //*****************************************************************************
  5069. //
  5070. // The following are defines for the bit fields in the TIMER_O_CFG register.
  5071. //
  5072. //*****************************************************************************
  5073. #define TIMER_CFG_M 0x00000007 // GPTM Configuration
  5074. #define TIMER_CFG_32_BIT_TIMER 0x00000000 // For a 16/32-bit timer, this
  5075. // value selects the 32-bit timer
  5076. // configuration
  5077. #define TIMER_CFG_32_BIT_RTC 0x00000001 // For a 16/32-bit timer, this
  5078. // value selects the 32-bit
  5079. // real-time clock (RTC) counter
  5080. // configuration
  5081. #define TIMER_CFG_16_BIT 0x00000004 // For a 16/32-bit timer, this
  5082. // value selects the 16-bit timer
  5083. // configuration
  5084. //*****************************************************************************
  5085. //
  5086. // The following are defines for the bit fields in the TIMER_O_TAMR register.
  5087. //
  5088. //*****************************************************************************
  5089. #define TIMER_TAMR_TCACT_M 0x0000E000 // Timer Compare Action Select
  5090. #define TIMER_TAMR_TCACT_NONE 0x00000000 // Disable compare operations
  5091. #define TIMER_TAMR_TCACT_TOGGLE 0x00002000 // Toggle State on Time-Out
  5092. #define TIMER_TAMR_TCACT_CLRTO 0x00004000 // Clear CCP on Time-Out
  5093. #define TIMER_TAMR_TCACT_SETTO 0x00006000 // Set CCP on Time-Out
  5094. #define TIMER_TAMR_TCACT_SETTOGTO \
  5095. 0x00008000 // Set CCP immediately and toggle
  5096. // on Time-Out
  5097. #define TIMER_TAMR_TCACT_CLRTOGTO \
  5098. 0x0000A000 // Clear CCP immediately and toggle
  5099. // on Time-Out
  5100. #define TIMER_TAMR_TCACT_SETCLRTO \
  5101. 0x0000C000 // Set CCP immediately and clear on
  5102. // Time-Out
  5103. #define TIMER_TAMR_TCACT_CLRSETTO \
  5104. 0x0000E000 // Clear CCP immediately and set on
  5105. // Time-Out
  5106. #define TIMER_TAMR_TACINTD 0x00001000 // One-shot/Periodic Interrupt
  5107. // Disable
  5108. #define TIMER_TAMR_TAPLO 0x00000800 // GPTM Timer A PWM Legacy
  5109. // Operation
  5110. #define TIMER_TAMR_TAMRSU 0x00000400 // GPTM Timer A Match Register
  5111. // Update
  5112. #define TIMER_TAMR_TAPWMIE 0x00000200 // GPTM Timer A PWM Interrupt
  5113. // Enable
  5114. #define TIMER_TAMR_TAILD 0x00000100 // GPTM Timer A Interval Load Write
  5115. #define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode
  5116. #define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger
  5117. #define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
  5118. // Enable
  5119. #define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction
  5120. #define TIMER_TAMR_TAAMS 0x00000008 // GPTM Timer A Alternate Mode
  5121. // Select
  5122. #define TIMER_TAMR_TACMR 0x00000004 // GPTM Timer A Capture Mode
  5123. #define TIMER_TAMR_TAMR_M 0x00000003 // GPTM Timer A Mode
  5124. #define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode
  5125. #define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode
  5126. #define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode
  5127. //*****************************************************************************
  5128. //
  5129. // The following are defines for the bit fields in the TIMER_O_TBMR register.
  5130. //
  5131. //*****************************************************************************
  5132. #define TIMER_TBMR_TCACT_M 0x0000E000 // Timer Compare Action Select
  5133. #define TIMER_TBMR_TCACT_NONE 0x00000000 // Disable compare operations
  5134. #define TIMER_TBMR_TCACT_TOGGLE 0x00002000 // Toggle State on Time-Out
  5135. #define TIMER_TBMR_TCACT_CLRTO 0x00004000 // Clear CCP on Time-Out
  5136. #define TIMER_TBMR_TCACT_SETTO 0x00006000 // Set CCP on Time-Out
  5137. #define TIMER_TBMR_TCACT_SETTOGTO \
  5138. 0x00008000 // Set CCP immediately and toggle
  5139. // on Time-Out
  5140. #define TIMER_TBMR_TCACT_CLRTOGTO \
  5141. 0x0000A000 // Clear CCP immediately and toggle
  5142. // on Time-Out
  5143. #define TIMER_TBMR_TCACT_SETCLRTO \
  5144. 0x0000C000 // Set CCP immediately and clear on
  5145. // Time-Out
  5146. #define TIMER_TBMR_TCACT_CLRSETTO \
  5147. 0x0000E000 // Clear CCP immediately and set on
  5148. // Time-Out
  5149. #define TIMER_TBMR_TBCINTD 0x00001000 // One-Shot/Periodic Interrupt
  5150. // Disable
  5151. #define TIMER_TBMR_TBPLO 0x00000800 // GPTM Timer B PWM Legacy
  5152. // Operation
  5153. #define TIMER_TBMR_TBMRSU 0x00000400 // GPTM Timer B Match Register
  5154. // Update
  5155. #define TIMER_TBMR_TBPWMIE 0x00000200 // GPTM Timer B PWM Interrupt
  5156. // Enable
  5157. #define TIMER_TBMR_TBILD 0x00000100 // GPTM Timer B Interval Load Write
  5158. #define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode
  5159. #define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger
  5160. #define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
  5161. // Enable
  5162. #define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction
  5163. #define TIMER_TBMR_TBAMS 0x00000008 // GPTM Timer B Alternate Mode
  5164. // Select
  5165. #define TIMER_TBMR_TBCMR 0x00000004 // GPTM Timer B Capture Mode
  5166. #define TIMER_TBMR_TBMR_M 0x00000003 // GPTM Timer B Mode
  5167. #define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode
  5168. #define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode
  5169. #define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode
  5170. //*****************************************************************************
  5171. //
  5172. // The following are defines for the bit fields in the TIMER_O_CTL register.
  5173. //
  5174. //*****************************************************************************
  5175. #define TIMER_CTL_TBPWML 0x00004000 // GPTM Timer B PWM Output Level
  5176. #define TIMER_CTL_TBOTE 0x00002000 // GPTM Timer B Output Trigger
  5177. // Enable
  5178. #define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM Timer B Event Mode
  5179. #define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge
  5180. #define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge
  5181. #define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges
  5182. #define TIMER_CTL_TBSTALL 0x00000200 // GPTM Timer B Stall Enable
  5183. #define TIMER_CTL_TBEN 0x00000100 // GPTM Timer B Enable
  5184. #define TIMER_CTL_TAPWML 0x00000040 // GPTM Timer A PWM Output Level
  5185. #define TIMER_CTL_TAOTE 0x00000020 // GPTM Timer A Output Trigger
  5186. // Enable
  5187. #define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Stall Enable
  5188. #define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM Timer A Event Mode
  5189. #define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge
  5190. #define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge
  5191. #define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges
  5192. #define TIMER_CTL_TASTALL 0x00000002 // GPTM Timer A Stall Enable
  5193. #define TIMER_CTL_TAEN 0x00000001 // GPTM Timer A Enable
  5194. //*****************************************************************************
  5195. //
  5196. // The following are defines for the bit fields in the TIMER_O_SYNC register.
  5197. //
  5198. //*****************************************************************************
  5199. #define TIMER_SYNC_SYNCT7_M 0x0000C000 // Synchronize GPTM Timer 7
  5200. #define TIMER_SYNC_SYNCT7_NONE 0x00000000 // GPT7 is not affected
  5201. #define TIMER_SYNC_SYNCT7_TA 0x00004000 // A timeout event for Timer A of
  5202. // GPTM7 is triggered
  5203. #define TIMER_SYNC_SYNCT7_TB 0x00008000 // A timeout event for Timer B of
  5204. // GPTM7 is triggered
  5205. #define TIMER_SYNC_SYNCT7_TATB 0x0000C000 // A timeout event for both Timer A
  5206. // and Timer B of GPTM7 is
  5207. // triggered
  5208. #define TIMER_SYNC_SYNCT6_M 0x00003000 // Synchronize GPTM Timer 6
  5209. #define TIMER_SYNC_SYNCT6_NONE 0x00000000 // GPTM6 is not affected
  5210. #define TIMER_SYNC_SYNCT6_TA 0x00001000 // A timeout event for Timer A of
  5211. // GPTM6 is triggered
  5212. #define TIMER_SYNC_SYNCT6_TB 0x00002000 // A timeout event for Timer B of
  5213. // GPTM6 is triggered
  5214. #define TIMER_SYNC_SYNCT6_TATB 0x00003000 // A timeout event for both Timer A
  5215. // and Timer B of GPTM6 is
  5216. // triggered
  5217. #define TIMER_SYNC_SYNCT5_M 0x00000C00 // Synchronize GPTM Timer 5
  5218. #define TIMER_SYNC_SYNCT5_NONE 0x00000000 // GPTM5 is not affected
  5219. #define TIMER_SYNC_SYNCT5_TA 0x00000400 // A timeout event for Timer A of
  5220. // GPTM5 is triggered
  5221. #define TIMER_SYNC_SYNCT5_TB 0x00000800 // A timeout event for Timer B of
  5222. // GPTM5 is triggered
  5223. #define TIMER_SYNC_SYNCT5_TATB 0x00000C00 // A timeout event for both Timer A
  5224. // and Timer B of GPTM5 is
  5225. // triggered
  5226. #define TIMER_SYNC_SYNCT4_M 0x00000300 // Synchronize GPTM Timer 4
  5227. #define TIMER_SYNC_SYNCT4_NONE 0x00000000 // GPTM4 is not affected
  5228. #define TIMER_SYNC_SYNCT4_TA 0x00000100 // A timeout event for Timer A of
  5229. // GPTM4 is triggered
  5230. #define TIMER_SYNC_SYNCT4_TB 0x00000200 // A timeout event for Timer B of
  5231. // GPTM4 is triggered
  5232. #define TIMER_SYNC_SYNCT4_TATB 0x00000300 // A timeout event for both Timer A
  5233. // and Timer B of GPTM4 is
  5234. // triggered
  5235. #define TIMER_SYNC_SYNCT3_M 0x000000C0 // Synchronize GPTM Timer 3
  5236. #define TIMER_SYNC_SYNCT3_NONE 0x00000000 // GPTM3 is not affected
  5237. #define TIMER_SYNC_SYNCT3_TA 0x00000040 // A timeout event for Timer A of
  5238. // GPTM3 is triggered
  5239. #define TIMER_SYNC_SYNCT3_TB 0x00000080 // A timeout event for Timer B of
  5240. // GPTM3 is triggered
  5241. #define TIMER_SYNC_SYNCT3_TATB 0x000000C0 // A timeout event for both Timer A
  5242. // and Timer B of GPTM3 is
  5243. // triggered
  5244. #define TIMER_SYNC_SYNCT2_M 0x00000030 // Synchronize GPTM Timer 2
  5245. #define TIMER_SYNC_SYNCT2_NONE 0x00000000 // GPTM2 is not affected
  5246. #define TIMER_SYNC_SYNCT2_TA 0x00000010 // A timeout event for Timer A of
  5247. // GPTM2 is triggered
  5248. #define TIMER_SYNC_SYNCT2_TB 0x00000020 // A timeout event for Timer B of
  5249. // GPTM2 is triggered
  5250. #define TIMER_SYNC_SYNCT2_TATB 0x00000030 // A timeout event for both Timer A
  5251. // and Timer B of GPTM2 is
  5252. // triggered
  5253. #define TIMER_SYNC_SYNCT1_M 0x0000000C // Synchronize GPTM Timer 1
  5254. #define TIMER_SYNC_SYNCT1_NONE 0x00000000 // GPTM1 is not affected
  5255. #define TIMER_SYNC_SYNCT1_TA 0x00000004 // A timeout event for Timer A of
  5256. // GPTM1 is triggered
  5257. #define TIMER_SYNC_SYNCT1_TB 0x00000008 // A timeout event for Timer B of
  5258. // GPTM1 is triggered
  5259. #define TIMER_SYNC_SYNCT1_TATB 0x0000000C // A timeout event for both Timer A
  5260. // and Timer B of GPTM1 is
  5261. // triggered
  5262. #define TIMER_SYNC_SYNCT0_M 0x00000003 // Synchronize GPTM Timer 0
  5263. #define TIMER_SYNC_SYNCT0_NONE 0x00000000 // GPTM0 is not affected
  5264. #define TIMER_SYNC_SYNCT0_TA 0x00000001 // A timeout event for Timer A of
  5265. // GPTM0 is triggered
  5266. #define TIMER_SYNC_SYNCT0_TB 0x00000002 // A timeout event for Timer B of
  5267. // GPTM0 is triggered
  5268. #define TIMER_SYNC_SYNCT0_TATB 0x00000003 // A timeout event for both Timer A
  5269. // and Timer B of GPTM0 is
  5270. // triggered
  5271. //*****************************************************************************
  5272. //
  5273. // The following are defines for the bit fields in the TIMER_O_IMR register.
  5274. //
  5275. //*****************************************************************************
  5276. #define TIMER_IMR_DMABIM 0x00002000 // GPTM Timer B DMA Done Interrupt
  5277. // Mask
  5278. #define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Match Interrupt
  5279. // Mask
  5280. #define TIMER_IMR_CBEIM 0x00000400 // GPTM Timer B Capture Mode Event
  5281. // Interrupt Mask
  5282. #define TIMER_IMR_CBMIM 0x00000200 // GPTM Timer B Capture Mode Match
  5283. // Interrupt Mask
  5284. #define TIMER_IMR_TBTOIM 0x00000100 // GPTM Timer B Time-Out Interrupt
  5285. // Mask
  5286. #define TIMER_IMR_DMAAIM 0x00000020 // GPTM Timer A DMA Done Interrupt
  5287. // Mask
  5288. #define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Match Interrupt
  5289. // Mask
  5290. #define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask
  5291. #define TIMER_IMR_CAEIM 0x00000004 // GPTM Timer A Capture Mode Event
  5292. // Interrupt Mask
  5293. #define TIMER_IMR_CAMIM 0x00000002 // GPTM Timer A Capture Mode Match
  5294. // Interrupt Mask
  5295. #define TIMER_IMR_TATOIM 0x00000001 // GPTM Timer A Time-Out Interrupt
  5296. // Mask
  5297. //*****************************************************************************
  5298. //
  5299. // The following are defines for the bit fields in the TIMER_O_RIS register.
  5300. //
  5301. //*****************************************************************************
  5302. #define TIMER_RIS_DMABRIS 0x00002000 // GPTM Timer B DMA Done Raw
  5303. // Interrupt Status
  5304. #define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Match Raw Interrupt
  5305. #define TIMER_RIS_CBERIS 0x00000400 // GPTM Timer B Capture Mode Event
  5306. // Raw Interrupt
  5307. #define TIMER_RIS_CBMRIS 0x00000200 // GPTM Timer B Capture Mode Match
  5308. // Raw Interrupt
  5309. #define TIMER_RIS_TBTORIS 0x00000100 // GPTM Timer B Time-Out Raw
  5310. // Interrupt
  5311. #define TIMER_RIS_DMAARIS 0x00000020 // GPTM Timer A DMA Done Raw
  5312. // Interrupt Status
  5313. #define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Match Raw Interrupt
  5314. #define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt
  5315. #define TIMER_RIS_CAERIS 0x00000004 // GPTM Timer A Capture Mode Event
  5316. // Raw Interrupt
  5317. #define TIMER_RIS_CAMRIS 0x00000002 // GPTM Timer A Capture Mode Match
  5318. // Raw Interrupt
  5319. #define TIMER_RIS_TATORIS 0x00000001 // GPTM Timer A Time-Out Raw
  5320. // Interrupt
  5321. //*****************************************************************************
  5322. //
  5323. // The following are defines for the bit fields in the TIMER_O_MIS register.
  5324. //
  5325. //*****************************************************************************
  5326. #define TIMER_MIS_DMABMIS 0x00002000 // GPTM Timer B DMA Done Masked
  5327. // Interrupt
  5328. #define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Match Masked
  5329. // Interrupt
  5330. #define TIMER_MIS_CBEMIS 0x00000400 // GPTM Timer B Capture Mode Event
  5331. // Masked Interrupt
  5332. #define TIMER_MIS_CBMMIS 0x00000200 // GPTM Timer B Capture Mode Match
  5333. // Masked Interrupt
  5334. #define TIMER_MIS_TBTOMIS 0x00000100 // GPTM Timer B Time-Out Masked
  5335. // Interrupt
  5336. #define TIMER_MIS_DMAAMIS 0x00000020 // GPTM Timer A DMA Done Masked
  5337. // Interrupt
  5338. #define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Match Masked
  5339. // Interrupt
  5340. #define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt
  5341. #define TIMER_MIS_CAEMIS 0x00000004 // GPTM Timer A Capture Mode Event
  5342. // Masked Interrupt
  5343. #define TIMER_MIS_CAMMIS 0x00000002 // GPTM Timer A Capture Mode Match
  5344. // Masked Interrupt
  5345. #define TIMER_MIS_TATOMIS 0x00000001 // GPTM Timer A Time-Out Masked
  5346. // Interrupt
  5347. //*****************************************************************************
  5348. //
  5349. // The following are defines for the bit fields in the TIMER_O_ICR register.
  5350. //
  5351. //*****************************************************************************
  5352. #define TIMER_ICR_DMABINT 0x00002000 // GPTM Timer B DMA Done Interrupt
  5353. // Clear
  5354. #define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Match Interrupt
  5355. // Clear
  5356. #define TIMER_ICR_CBECINT 0x00000400 // GPTM Timer B Capture Mode Event
  5357. // Interrupt Clear
  5358. #define TIMER_ICR_CBMCINT 0x00000200 // GPTM Timer B Capture Mode Match
  5359. // Interrupt Clear
  5360. #define TIMER_ICR_TBTOCINT 0x00000100 // GPTM Timer B Time-Out Interrupt
  5361. // Clear
  5362. #define TIMER_ICR_DMAAINT 0x00000020 // GPTM Timer A DMA Done Interrupt
  5363. // Clear
  5364. #define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Match Interrupt
  5365. // Clear
  5366. #define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear
  5367. #define TIMER_ICR_CAECINT 0x00000004 // GPTM Timer A Capture Mode Event
  5368. // Interrupt Clear
  5369. #define TIMER_ICR_CAMCINT 0x00000002 // GPTM Timer A Capture Mode Match
  5370. // Interrupt Clear
  5371. #define TIMER_ICR_TATOCINT 0x00000001 // GPTM Timer A Time-Out Raw
  5372. // Interrupt
  5373. //*****************************************************************************
  5374. //
  5375. // The following are defines for the bit fields in the TIMER_O_TAILR register.
  5376. //
  5377. //*****************************************************************************
  5378. #define TIMER_TAILR_M 0xFFFFFFFF // GPTM Timer A Interval Load
  5379. // Register
  5380. #define TIMER_TAILR_S 0
  5381. //*****************************************************************************
  5382. //
  5383. // The following are defines for the bit fields in the TIMER_O_TBILR register.
  5384. //
  5385. //*****************************************************************************
  5386. #define TIMER_TBILR_M 0xFFFFFFFF // GPTM Timer B Interval Load
  5387. // Register
  5388. #define TIMER_TBILR_S 0
  5389. //*****************************************************************************
  5390. //
  5391. // The following are defines for the bit fields in the TIMER_O_TAMATCHR
  5392. // register.
  5393. //
  5394. //*****************************************************************************
  5395. #define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF // GPTM Timer A Match Register
  5396. #define TIMER_TAMATCHR_TAMR_S 0
  5397. //*****************************************************************************
  5398. //
  5399. // The following are defines for the bit fields in the TIMER_O_TBMATCHR
  5400. // register.
  5401. //
  5402. //*****************************************************************************
  5403. #define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF // GPTM Timer B Match Register
  5404. #define TIMER_TBMATCHR_TBMR_S 0
  5405. //*****************************************************************************
  5406. //
  5407. // The following are defines for the bit fields in the TIMER_O_TAPR register.
  5408. //
  5409. //*****************************************************************************
  5410. #define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM Timer A Prescale
  5411. #define TIMER_TAPR_TAPSR_S 0
  5412. //*****************************************************************************
  5413. //
  5414. // The following are defines for the bit fields in the TIMER_O_TBPR register.
  5415. //
  5416. //*****************************************************************************
  5417. #define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM Timer B Prescale
  5418. #define TIMER_TBPR_TBPSR_S 0
  5419. //*****************************************************************************
  5420. //
  5421. // The following are defines for the bit fields in the TIMER_O_TAPMR register.
  5422. //
  5423. //*****************************************************************************
  5424. #define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match
  5425. #define TIMER_TAPMR_TAPSMR_S 0
  5426. //*****************************************************************************
  5427. //
  5428. // The following are defines for the bit fields in the TIMER_O_TBPMR register.
  5429. //
  5430. //*****************************************************************************
  5431. #define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match
  5432. #define TIMER_TBPMR_TBPSMR_S 0
  5433. //*****************************************************************************
  5434. //
  5435. // The following are defines for the bit fields in the TIMER_O_TAR register.
  5436. //
  5437. //*****************************************************************************
  5438. #define TIMER_TAR_M 0xFFFFFFFF // GPTM Timer A Register
  5439. #define TIMER_TAR_S 0
  5440. //*****************************************************************************
  5441. //
  5442. // The following are defines for the bit fields in the TIMER_O_TBR register.
  5443. //
  5444. //*****************************************************************************
  5445. #define TIMER_TBR_M 0xFFFFFFFF // GPTM Timer B Register
  5446. #define TIMER_TBR_S 0
  5447. //*****************************************************************************
  5448. //
  5449. // The following are defines for the bit fields in the TIMER_O_TAV register.
  5450. //
  5451. //*****************************************************************************
  5452. #define TIMER_TAV_M 0xFFFFFFFF // GPTM Timer A Value
  5453. #define TIMER_TAV_S 0
  5454. //*****************************************************************************
  5455. //
  5456. // The following are defines for the bit fields in the TIMER_O_TBV register.
  5457. //
  5458. //*****************************************************************************
  5459. #define TIMER_TBV_M 0xFFFFFFFF // GPTM Timer B Value
  5460. #define TIMER_TBV_S 0
  5461. //*****************************************************************************
  5462. //
  5463. // The following are defines for the bit fields in the TIMER_O_RTCPD register.
  5464. //
  5465. //*****************************************************************************
  5466. #define TIMER_RTCPD_RTCPD_M 0x0000FFFF // RTC Predivide Counter Value
  5467. #define TIMER_RTCPD_RTCPD_S 0
  5468. //*****************************************************************************
  5469. //
  5470. // The following are defines for the bit fields in the TIMER_O_TAPS register.
  5471. //
  5472. //*****************************************************************************
  5473. #define TIMER_TAPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Snapshot
  5474. #define TIMER_TAPS_PSS_S 0
  5475. //*****************************************************************************
  5476. //
  5477. // The following are defines for the bit fields in the TIMER_O_TBPS register.
  5478. //
  5479. //*****************************************************************************
  5480. #define TIMER_TBPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Value
  5481. #define TIMER_TBPS_PSS_S 0
  5482. //*****************************************************************************
  5483. //
  5484. // The following are defines for the bit fields in the TIMER_O_DMAEV register.
  5485. //
  5486. //*****************************************************************************
  5487. #define TIMER_DMAEV_TBMDMAEN 0x00000800 // GPTM B Mode Match Event DMA
  5488. // Trigger Enable
  5489. #define TIMER_DMAEV_CBEDMAEN 0x00000400 // GPTM B Capture Event DMA Trigger
  5490. // Enable
  5491. #define TIMER_DMAEV_CBMDMAEN 0x00000200 // GPTM B Capture Match Event DMA
  5492. // Trigger Enable
  5493. #define TIMER_DMAEV_TBTODMAEN 0x00000100 // GPTM B Time-Out Event DMA
  5494. // Trigger Enable
  5495. #define TIMER_DMAEV_TAMDMAEN 0x00000010 // GPTM A Mode Match Event DMA
  5496. // Trigger Enable
  5497. #define TIMER_DMAEV_RTCDMAEN 0x00000008 // GPTM A RTC Match Event DMA
  5498. // Trigger Enable
  5499. #define TIMER_DMAEV_CAEDMAEN 0x00000004 // GPTM A Capture Event DMA Trigger
  5500. // Enable
  5501. #define TIMER_DMAEV_CAMDMAEN 0x00000002 // GPTM A Capture Match Event DMA
  5502. // Trigger Enable
  5503. #define TIMER_DMAEV_TATODMAEN 0x00000001 // GPTM A Time-Out Event DMA
  5504. // Trigger Enable
  5505. //*****************************************************************************
  5506. //
  5507. // The following are defines for the bit fields in the TIMER_O_ADCEV register.
  5508. //
  5509. //*****************************************************************************
  5510. #define TIMER_ADCEV_TBMADCEN 0x00000800 // GPTM B Mode Match Event ADC
  5511. // Trigger Enable
  5512. #define TIMER_ADCEV_CBEADCEN 0x00000400 // GPTM B Capture Event ADC Trigger
  5513. // Enable
  5514. #define TIMER_ADCEV_CBMADCEN 0x00000200 // GPTM B Capture Match Event ADC
  5515. // Trigger Enable
  5516. #define TIMER_ADCEV_TBTOADCEN 0x00000100 // GPTM B Time-Out Event ADC
  5517. // Trigger Enable
  5518. #define TIMER_ADCEV_TAMADCEN 0x00000010 // GPTM A Mode Match Event ADC
  5519. // Trigger Enable
  5520. #define TIMER_ADCEV_RTCADCEN 0x00000008 // GPTM RTC Match Event ADC Trigger
  5521. // Enable
  5522. #define TIMER_ADCEV_CAEADCEN 0x00000004 // GPTM A Capture Event ADC Trigger
  5523. // Enable
  5524. #define TIMER_ADCEV_CAMADCEN 0x00000002 // GPTM A Capture Match Event ADC
  5525. // Trigger Enable
  5526. #define TIMER_ADCEV_TATOADCEN 0x00000001 // GPTM A Time-Out Event ADC
  5527. // Trigger Enable
  5528. //*****************************************************************************
  5529. //
  5530. // The following are defines for the bit fields in the TIMER_O_PP register.
  5531. //
  5532. //*****************************************************************************
  5533. #define TIMER_PP_ALTCLK 0x00000040 // Alternate Clock Source
  5534. #define TIMER_PP_SYNCCNT 0x00000020 // Synchronize Start
  5535. #define TIMER_PP_CHAIN 0x00000010 // Chain with Other Timers
  5536. #define TIMER_PP_SIZE_M 0x0000000F // Count Size
  5537. #define TIMER_PP_SIZE_16 0x00000000 // Timer A and Timer B counters are
  5538. // 16 bits each with an 8-bit
  5539. // prescale counter
  5540. #define TIMER_PP_SIZE_32 0x00000001 // Timer A and Timer B counters are
  5541. // 32 bits each with a 16-bit
  5542. // prescale counter
  5543. //*****************************************************************************
  5544. //
  5545. // The following are defines for the bit fields in the TIMER_O_CC register.
  5546. //
  5547. //*****************************************************************************
  5548. #define TIMER_CC_ALTCLK 0x00000001 // Alternate Clock Source
  5549. //*****************************************************************************
  5550. //
  5551. // The following are defines for the bit fields in the ADC_O_ACTSS register.
  5552. //
  5553. //*****************************************************************************
  5554. #define ADC_ACTSS_BUSY 0x00010000 // ADC Busy
  5555. #define ADC_ACTSS_ADEN3 0x00000800 // ADC SS3 DMA Enable
  5556. #define ADC_ACTSS_ADEN2 0x00000400 // ADC SS2 DMA Enable
  5557. #define ADC_ACTSS_ADEN1 0x00000200 // ADC SS1 DMA Enable
  5558. #define ADC_ACTSS_ADEN0 0x00000100 // ADC SS1 DMA Enable
  5559. #define ADC_ACTSS_ASEN3 0x00000008 // ADC SS3 Enable
  5560. #define ADC_ACTSS_ASEN2 0x00000004 // ADC SS2 Enable
  5561. #define ADC_ACTSS_ASEN1 0x00000002 // ADC SS1 Enable
  5562. #define ADC_ACTSS_ASEN0 0x00000001 // ADC SS0 Enable
  5563. //*****************************************************************************
  5564. //
  5565. // The following are defines for the bit fields in the ADC_O_RIS register.
  5566. //
  5567. //*****************************************************************************
  5568. #define ADC_RIS_INRDC 0x00010000 // Digital Comparator Raw Interrupt
  5569. // Status
  5570. #define ADC_RIS_DMAINR3 0x00000800 // SS3 DMA Raw Interrupt Status
  5571. #define ADC_RIS_DMAINR2 0x00000400 // SS2 DMA Raw Interrupt Status
  5572. #define ADC_RIS_DMAINR1 0x00000200 // SS1 DMA Raw Interrupt Status
  5573. #define ADC_RIS_DMAINR0 0x00000100 // SS0 DMA Raw Interrupt Status
  5574. #define ADC_RIS_INR3 0x00000008 // SS3 Raw Interrupt Status
  5575. #define ADC_RIS_INR2 0x00000004 // SS2 Raw Interrupt Status
  5576. #define ADC_RIS_INR1 0x00000002 // SS1 Raw Interrupt Status
  5577. #define ADC_RIS_INR0 0x00000001 // SS0 Raw Interrupt Status
  5578. //*****************************************************************************
  5579. //
  5580. // The following are defines for the bit fields in the ADC_O_IM register.
  5581. //
  5582. //*****************************************************************************
  5583. #define ADC_IM_DCONSS3 0x00080000 // Digital Comparator Interrupt on
  5584. // SS3
  5585. #define ADC_IM_DCONSS2 0x00040000 // Digital Comparator Interrupt on
  5586. // SS2
  5587. #define ADC_IM_DCONSS1 0x00020000 // Digital Comparator Interrupt on
  5588. // SS1
  5589. #define ADC_IM_DCONSS0 0x00010000 // Digital Comparator Interrupt on
  5590. // SS0
  5591. #define ADC_IM_DMAMASK3 0x00000800 // SS3 DMA Interrupt Mask
  5592. #define ADC_IM_DMAMASK2 0x00000400 // SS2 DMA Interrupt Mask
  5593. #define ADC_IM_DMAMASK1 0x00000200 // SS1 DMA Interrupt Mask
  5594. #define ADC_IM_DMAMASK0 0x00000100 // SS0 DMA Interrupt Mask
  5595. #define ADC_IM_MASK3 0x00000008 // SS3 Interrupt Mask
  5596. #define ADC_IM_MASK2 0x00000004 // SS2 Interrupt Mask
  5597. #define ADC_IM_MASK1 0x00000002 // SS1 Interrupt Mask
  5598. #define ADC_IM_MASK0 0x00000001 // SS0 Interrupt Mask
  5599. //*****************************************************************************
  5600. //
  5601. // The following are defines for the bit fields in the ADC_O_ISC register.
  5602. //
  5603. //*****************************************************************************
  5604. #define ADC_ISC_DCINSS3 0x00080000 // Digital Comparator Interrupt
  5605. // Status on SS3
  5606. #define ADC_ISC_DCINSS2 0x00040000 // Digital Comparator Interrupt
  5607. // Status on SS2
  5608. #define ADC_ISC_DCINSS1 0x00020000 // Digital Comparator Interrupt
  5609. // Status on SS1
  5610. #define ADC_ISC_DCINSS0 0x00010000 // Digital Comparator Interrupt
  5611. // Status on SS0
  5612. #define ADC_ISC_DMAIN3 0x00000800 // SS3 DMA Interrupt Status and
  5613. // Clear
  5614. #define ADC_ISC_DMAIN2 0x00000400 // SS2 DMA Interrupt Status and
  5615. // Clear
  5616. #define ADC_ISC_DMAIN1 0x00000200 // SS1 DMA Interrupt Status and
  5617. // Clear
  5618. #define ADC_ISC_DMAIN0 0x00000100 // SS0 DMA Interrupt Status and
  5619. // Clear
  5620. #define ADC_ISC_IN3 0x00000008 // SS3 Interrupt Status and Clear
  5621. #define ADC_ISC_IN2 0x00000004 // SS2 Interrupt Status and Clear
  5622. #define ADC_ISC_IN1 0x00000002 // SS1 Interrupt Status and Clear
  5623. #define ADC_ISC_IN0 0x00000001 // SS0 Interrupt Status and Clear
  5624. //*****************************************************************************
  5625. //
  5626. // The following are defines for the bit fields in the ADC_O_OSTAT register.
  5627. //
  5628. //*****************************************************************************
  5629. #define ADC_OSTAT_OV3 0x00000008 // SS3 FIFO Overflow
  5630. #define ADC_OSTAT_OV2 0x00000004 // SS2 FIFO Overflow
  5631. #define ADC_OSTAT_OV1 0x00000002 // SS1 FIFO Overflow
  5632. #define ADC_OSTAT_OV0 0x00000001 // SS0 FIFO Overflow
  5633. //*****************************************************************************
  5634. //
  5635. // The following are defines for the bit fields in the ADC_O_EMUX register.
  5636. //
  5637. //*****************************************************************************
  5638. #define ADC_EMUX_EM3_M 0x0000F000 // SS3 Trigger Select
  5639. #define ADC_EMUX_EM3_PROCESSOR 0x00000000 // Processor (default)
  5640. #define ADC_EMUX_EM3_COMP0 0x00001000 // Analog Comparator 0
  5641. #define ADC_EMUX_EM3_COMP1 0x00002000 // Analog Comparator 1
  5642. #define ADC_EMUX_EM3_COMP2 0x00003000 // Analog Comparator 2
  5643. #define ADC_EMUX_EM3_EXTERNAL 0x00004000 // External (GPIO Pins)
  5644. #define ADC_EMUX_EM3_TIMER 0x00005000 // Timer
  5645. #define ADC_EMUX_EM3_PWM0 0x00006000 // PWM generator 0
  5646. #define ADC_EMUX_EM3_PWM1 0x00007000 // PWM generator 1
  5647. #define ADC_EMUX_EM3_PWM2 0x00008000 // PWM generator 2
  5648. #define ADC_EMUX_EM3_PWM3 0x00009000 // PWM generator 3
  5649. #define ADC_EMUX_EM3_NEVER 0x0000E000 // Never Trigger
  5650. #define ADC_EMUX_EM3_ALWAYS 0x0000F000 // Always (continuously sample)
  5651. #define ADC_EMUX_EM2_M 0x00000F00 // SS2 Trigger Select
  5652. #define ADC_EMUX_EM2_PROCESSOR 0x00000000 // Processor (default)
  5653. #define ADC_EMUX_EM2_COMP0 0x00000100 // Analog Comparator 0
  5654. #define ADC_EMUX_EM2_COMP1 0x00000200 // Analog Comparator 1
  5655. #define ADC_EMUX_EM2_COMP2 0x00000300 // Analog Comparator 2
  5656. #define ADC_EMUX_EM2_EXTERNAL 0x00000400 // External (GPIO Pins)
  5657. #define ADC_EMUX_EM2_TIMER 0x00000500 // Timer
  5658. #define ADC_EMUX_EM2_PWM0 0x00000600 // PWM generator 0
  5659. #define ADC_EMUX_EM2_PWM1 0x00000700 // PWM generator 1
  5660. #define ADC_EMUX_EM2_PWM2 0x00000800 // PWM generator 2
  5661. #define ADC_EMUX_EM2_PWM3 0x00000900 // PWM generator 3
  5662. #define ADC_EMUX_EM2_NEVER 0x00000E00 // Never Trigger
  5663. #define ADC_EMUX_EM2_ALWAYS 0x00000F00 // Always (continuously sample)
  5664. #define ADC_EMUX_EM1_M 0x000000F0 // SS1 Trigger Select
  5665. #define ADC_EMUX_EM1_PROCESSOR 0x00000000 // Processor (default)
  5666. #define ADC_EMUX_EM1_COMP0 0x00000010 // Analog Comparator 0
  5667. #define ADC_EMUX_EM1_COMP1 0x00000020 // Analog Comparator 1
  5668. #define ADC_EMUX_EM1_COMP2 0x00000030 // Analog Comparator 2
  5669. #define ADC_EMUX_EM1_EXTERNAL 0x00000040 // External (GPIO Pins)
  5670. #define ADC_EMUX_EM1_TIMER 0x00000050 // Timer
  5671. #define ADC_EMUX_EM1_PWM0 0x00000060 // PWM generator 0
  5672. #define ADC_EMUX_EM1_PWM1 0x00000070 // PWM generator 1
  5673. #define ADC_EMUX_EM1_PWM2 0x00000080 // PWM generator 2
  5674. #define ADC_EMUX_EM1_PWM3 0x00000090 // PWM generator 3
  5675. #define ADC_EMUX_EM1_NEVER 0x000000E0 // Never Trigger
  5676. #define ADC_EMUX_EM1_ALWAYS 0x000000F0 // Always (continuously sample)
  5677. #define ADC_EMUX_EM0_M 0x0000000F // SS0 Trigger Select
  5678. #define ADC_EMUX_EM0_PROCESSOR 0x00000000 // Processor (default)
  5679. #define ADC_EMUX_EM0_COMP0 0x00000001 // Analog Comparator 0
  5680. #define ADC_EMUX_EM0_COMP1 0x00000002 // Analog Comparator 1
  5681. #define ADC_EMUX_EM0_COMP2 0x00000003 // Analog Comparator 2
  5682. #define ADC_EMUX_EM0_EXTERNAL 0x00000004 // External (GPIO Pins)
  5683. #define ADC_EMUX_EM0_TIMER 0x00000005 // Timer
  5684. #define ADC_EMUX_EM0_PWM0 0x00000006 // PWM generator 0
  5685. #define ADC_EMUX_EM0_PWM1 0x00000007 // PWM generator 1
  5686. #define ADC_EMUX_EM0_PWM2 0x00000008 // PWM generator 2
  5687. #define ADC_EMUX_EM0_PWM3 0x00000009 // PWM generator 3
  5688. #define ADC_EMUX_EM0_NEVER 0x0000000E // Never Trigger
  5689. #define ADC_EMUX_EM0_ALWAYS 0x0000000F // Always (continuously sample)
  5690. //*****************************************************************************
  5691. //
  5692. // The following are defines for the bit fields in the ADC_O_USTAT register.
  5693. //
  5694. //*****************************************************************************
  5695. #define ADC_USTAT_UV3 0x00000008 // SS3 FIFO Underflow
  5696. #define ADC_USTAT_UV2 0x00000004 // SS2 FIFO Underflow
  5697. #define ADC_USTAT_UV1 0x00000002 // SS1 FIFO Underflow
  5698. #define ADC_USTAT_UV0 0x00000001 // SS0 FIFO Underflow
  5699. //*****************************************************************************
  5700. //
  5701. // The following are defines for the bit fields in the ADC_O_TSSEL register.
  5702. //
  5703. //*****************************************************************************
  5704. #define ADC_TSSEL_PS3_M 0x30000000 // Generator 3 PWM Module Trigger
  5705. // Select
  5706. #define ADC_TSSEL_PS3_0 0x00000000 // Use Generator 3 (and its
  5707. // trigger) in PWM module 0
  5708. #define ADC_TSSEL_PS2_M 0x00300000 // Generator 2 PWM Module Trigger
  5709. // Select
  5710. #define ADC_TSSEL_PS2_0 0x00000000 // Use Generator 2 (and its
  5711. // trigger) in PWM module 0
  5712. #define ADC_TSSEL_PS1_M 0x00003000 // Generator 1 PWM Module Trigger
  5713. // Select
  5714. #define ADC_TSSEL_PS1_0 0x00000000 // Use Generator 1 (and its
  5715. // trigger) in PWM module 0
  5716. #define ADC_TSSEL_PS0_M 0x00000030 // Generator 0 PWM Module Trigger
  5717. // Select
  5718. #define ADC_TSSEL_PS0_0 0x00000000 // Use Generator 0 (and its
  5719. // trigger) in PWM module 0
  5720. //*****************************************************************************
  5721. //
  5722. // The following are defines for the bit fields in the ADC_O_SSPRI register.
  5723. //
  5724. //*****************************************************************************
  5725. #define ADC_SSPRI_SS3_M 0x00003000 // SS3 Priority
  5726. #define ADC_SSPRI_SS2_M 0x00000300 // SS2 Priority
  5727. #define ADC_SSPRI_SS1_M 0x00000030 // SS1 Priority
  5728. #define ADC_SSPRI_SS0_M 0x00000003 // SS0 Priority
  5729. //*****************************************************************************
  5730. //
  5731. // The following are defines for the bit fields in the ADC_O_SPC register.
  5732. //
  5733. //*****************************************************************************
  5734. #define ADC_SPC_PHASE_M 0x0000000F // Phase Difference
  5735. #define ADC_SPC_PHASE_0 0x00000000 // ADC sample lags by 0.0
  5736. #define ADC_SPC_PHASE_22_5 0x00000001 // ADC sample lags by 22.5
  5737. #define ADC_SPC_PHASE_45 0x00000002 // ADC sample lags by 45.0
  5738. #define ADC_SPC_PHASE_67_5 0x00000003 // ADC sample lags by 67.5
  5739. #define ADC_SPC_PHASE_90 0x00000004 // ADC sample lags by 90.0
  5740. #define ADC_SPC_PHASE_112_5 0x00000005 // ADC sample lags by 112.5
  5741. #define ADC_SPC_PHASE_135 0x00000006 // ADC sample lags by 135.0
  5742. #define ADC_SPC_PHASE_157_5 0x00000007 // ADC sample lags by 157.5
  5743. #define ADC_SPC_PHASE_180 0x00000008 // ADC sample lags by 180.0
  5744. #define ADC_SPC_PHASE_202_5 0x00000009 // ADC sample lags by 202.5
  5745. #define ADC_SPC_PHASE_225 0x0000000A // ADC sample lags by 225.0
  5746. #define ADC_SPC_PHASE_247_5 0x0000000B // ADC sample lags by 247.5
  5747. #define ADC_SPC_PHASE_270 0x0000000C // ADC sample lags by 270.0
  5748. #define ADC_SPC_PHASE_292_5 0x0000000D // ADC sample lags by 292.5
  5749. #define ADC_SPC_PHASE_315 0x0000000E // ADC sample lags by 315.0
  5750. #define ADC_SPC_PHASE_337_5 0x0000000F // ADC sample lags by 337.5
  5751. //*****************************************************************************
  5752. //
  5753. // The following are defines for the bit fields in the ADC_O_PSSI register.
  5754. //
  5755. //*****************************************************************************
  5756. #define ADC_PSSI_GSYNC 0x80000000 // Global Synchronize
  5757. #define ADC_PSSI_SYNCWAIT 0x08000000 // Synchronize Wait
  5758. #define ADC_PSSI_SS3 0x00000008 // SS3 Initiate
  5759. #define ADC_PSSI_SS2 0x00000004 // SS2 Initiate
  5760. #define ADC_PSSI_SS1 0x00000002 // SS1 Initiate
  5761. #define ADC_PSSI_SS0 0x00000001 // SS0 Initiate
  5762. //*****************************************************************************
  5763. //
  5764. // The following are defines for the bit fields in the ADC_O_SAC register.
  5765. //
  5766. //*****************************************************************************
  5767. #define ADC_SAC_AVG_M 0x00000007 // Hardware Averaging Control
  5768. #define ADC_SAC_AVG_OFF 0x00000000 // No hardware oversampling
  5769. #define ADC_SAC_AVG_2X 0x00000001 // 2x hardware oversampling
  5770. #define ADC_SAC_AVG_4X 0x00000002 // 4x hardware oversampling
  5771. #define ADC_SAC_AVG_8X 0x00000003 // 8x hardware oversampling
  5772. #define ADC_SAC_AVG_16X 0x00000004 // 16x hardware oversampling
  5773. #define ADC_SAC_AVG_32X 0x00000005 // 32x hardware oversampling
  5774. #define ADC_SAC_AVG_64X 0x00000006 // 64x hardware oversampling
  5775. //*****************************************************************************
  5776. //
  5777. // The following are defines for the bit fields in the ADC_O_DCISC register.
  5778. //
  5779. //*****************************************************************************
  5780. #define ADC_DCISC_DCINT7 0x00000080 // Digital Comparator 7 Interrupt
  5781. // Status and Clear
  5782. #define ADC_DCISC_DCINT6 0x00000040 // Digital Comparator 6 Interrupt
  5783. // Status and Clear
  5784. #define ADC_DCISC_DCINT5 0x00000020 // Digital Comparator 5 Interrupt
  5785. // Status and Clear
  5786. #define ADC_DCISC_DCINT4 0x00000010 // Digital Comparator 4 Interrupt
  5787. // Status and Clear
  5788. #define ADC_DCISC_DCINT3 0x00000008 // Digital Comparator 3 Interrupt
  5789. // Status and Clear
  5790. #define ADC_DCISC_DCINT2 0x00000004 // Digital Comparator 2 Interrupt
  5791. // Status and Clear
  5792. #define ADC_DCISC_DCINT1 0x00000002 // Digital Comparator 1 Interrupt
  5793. // Status and Clear
  5794. #define ADC_DCISC_DCINT0 0x00000001 // Digital Comparator 0 Interrupt
  5795. // Status and Clear
  5796. //*****************************************************************************
  5797. //
  5798. // The following are defines for the bit fields in the ADC_O_CTL register.
  5799. //
  5800. //*****************************************************************************
  5801. #define ADC_CTL_VREF_M 0x00000001 // Voltage Reference Select
  5802. #define ADC_CTL_VREF_INTERNAL 0x00000000 // VDDA and GNDA are the voltage
  5803. // references
  5804. #define ADC_CTL_VREF_EXT_3V 0x00000001 // The external VREFA+ and VREFA-
  5805. // inputs are the voltage
  5806. // references
  5807. //*****************************************************************************
  5808. //
  5809. // The following are defines for the bit fields in the ADC_O_SSMUX0 register.
  5810. //
  5811. //*****************************************************************************
  5812. #define ADC_SSMUX0_MUX7_M 0xF0000000 // 8th Sample Input Select
  5813. #define ADC_SSMUX0_MUX6_M 0x0F000000 // 7th Sample Input Select
  5814. #define ADC_SSMUX0_MUX5_M 0x00F00000 // 6th Sample Input Select
  5815. #define ADC_SSMUX0_MUX4_M 0x000F0000 // 5th Sample Input Select
  5816. #define ADC_SSMUX0_MUX3_M 0x0000F000 // 4th Sample Input Select
  5817. #define ADC_SSMUX0_MUX2_M 0x00000F00 // 3rd Sample Input Select
  5818. #define ADC_SSMUX0_MUX1_M 0x000000F0 // 2nd Sample Input Select
  5819. #define ADC_SSMUX0_MUX0_M 0x0000000F // 1st Sample Input Select
  5820. #define ADC_SSMUX0_MUX7_S 28
  5821. #define ADC_SSMUX0_MUX6_S 24
  5822. #define ADC_SSMUX0_MUX5_S 20
  5823. #define ADC_SSMUX0_MUX4_S 16
  5824. #define ADC_SSMUX0_MUX3_S 12
  5825. #define ADC_SSMUX0_MUX2_S 8
  5826. #define ADC_SSMUX0_MUX1_S 4
  5827. #define ADC_SSMUX0_MUX0_S 0
  5828. //*****************************************************************************
  5829. //
  5830. // The following are defines for the bit fields in the ADC_O_SSCTL0 register.
  5831. //
  5832. //*****************************************************************************
  5833. #define ADC_SSCTL0_TS7 0x80000000 // 8th Sample Temp Sensor Select
  5834. #define ADC_SSCTL0_IE7 0x40000000 // 8th Sample Interrupt Enable
  5835. #define ADC_SSCTL0_END7 0x20000000 // 8th Sample is End of Sequence
  5836. #define ADC_SSCTL0_D7 0x10000000 // 8th Sample Differential Input
  5837. // Select
  5838. #define ADC_SSCTL0_TS6 0x08000000 // 7th Sample Temp Sensor Select
  5839. #define ADC_SSCTL0_IE6 0x04000000 // 7th Sample Interrupt Enable
  5840. #define ADC_SSCTL0_END6 0x02000000 // 7th Sample is End of Sequence
  5841. #define ADC_SSCTL0_D6 0x01000000 // 7th Sample Differential Input
  5842. // Select
  5843. #define ADC_SSCTL0_TS5 0x00800000 // 6th Sample Temp Sensor Select
  5844. #define ADC_SSCTL0_IE5 0x00400000 // 6th Sample Interrupt Enable
  5845. #define ADC_SSCTL0_END5 0x00200000 // 6th Sample is End of Sequence
  5846. #define ADC_SSCTL0_D5 0x00100000 // 6th Sample Differential Input
  5847. // Select
  5848. #define ADC_SSCTL0_TS4 0x00080000 // 5th Sample Temp Sensor Select
  5849. #define ADC_SSCTL0_IE4 0x00040000 // 5th Sample Interrupt Enable
  5850. #define ADC_SSCTL0_END4 0x00020000 // 5th Sample is End of Sequence
  5851. #define ADC_SSCTL0_D4 0x00010000 // 5th Sample Differential Input
  5852. // Select
  5853. #define ADC_SSCTL0_TS3 0x00008000 // 4th Sample Temp Sensor Select
  5854. #define ADC_SSCTL0_IE3 0x00004000 // 4th Sample Interrupt Enable
  5855. #define ADC_SSCTL0_END3 0x00002000 // 4th Sample is End of Sequence
  5856. #define ADC_SSCTL0_D3 0x00001000 // 4th Sample Differential Input
  5857. // Select
  5858. #define ADC_SSCTL0_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  5859. #define ADC_SSCTL0_IE2 0x00000400 // 3rd Sample Interrupt Enable
  5860. #define ADC_SSCTL0_END2 0x00000200 // 3rd Sample is End of Sequence
  5861. #define ADC_SSCTL0_D2 0x00000100 // 3rd Sample Differential Input
  5862. // Select
  5863. #define ADC_SSCTL0_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  5864. #define ADC_SSCTL0_IE1 0x00000040 // 2nd Sample Interrupt Enable
  5865. #define ADC_SSCTL0_END1 0x00000020 // 2nd Sample is End of Sequence
  5866. #define ADC_SSCTL0_D1 0x00000010 // 2nd Sample Differential Input
  5867. // Select
  5868. #define ADC_SSCTL0_TS0 0x00000008 // 1st Sample Temp Sensor Select
  5869. #define ADC_SSCTL0_IE0 0x00000004 // 1st Sample Interrupt Enable
  5870. #define ADC_SSCTL0_END0 0x00000002 // 1st Sample is End of Sequence
  5871. #define ADC_SSCTL0_D0 0x00000001 // 1st Sample Differential Input
  5872. // Select
  5873. //*****************************************************************************
  5874. //
  5875. // The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
  5876. //
  5877. //*****************************************************************************
  5878. #define ADC_SSFIFO0_DATA_M 0x00000FFF // Conversion Result Data
  5879. #define ADC_SSFIFO0_DATA_S 0
  5880. //*****************************************************************************
  5881. //
  5882. // The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
  5883. //
  5884. //*****************************************************************************
  5885. #define ADC_SSFSTAT0_FULL 0x00001000 // FIFO Full
  5886. #define ADC_SSFSTAT0_EMPTY 0x00000100 // FIFO Empty
  5887. #define ADC_SSFSTAT0_HPTR_M 0x000000F0 // FIFO Head Pointer
  5888. #define ADC_SSFSTAT0_TPTR_M 0x0000000F // FIFO Tail Pointer
  5889. #define ADC_SSFSTAT0_HPTR_S 4
  5890. #define ADC_SSFSTAT0_TPTR_S 0
  5891. //*****************************************************************************
  5892. //
  5893. // The following are defines for the bit fields in the ADC_O_SSOP0 register.
  5894. //
  5895. //*****************************************************************************
  5896. #define ADC_SSOP0_S7DCOP 0x10000000 // Sample 7 Digital Comparator
  5897. // Operation
  5898. #define ADC_SSOP0_S6DCOP 0x01000000 // Sample 6 Digital Comparator
  5899. // Operation
  5900. #define ADC_SSOP0_S5DCOP 0x00100000 // Sample 5 Digital Comparator
  5901. // Operation
  5902. #define ADC_SSOP0_S4DCOP 0x00010000 // Sample 4 Digital Comparator
  5903. // Operation
  5904. #define ADC_SSOP0_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  5905. // Operation
  5906. #define ADC_SSOP0_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  5907. // Operation
  5908. #define ADC_SSOP0_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  5909. // Operation
  5910. #define ADC_SSOP0_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  5911. // Operation
  5912. //*****************************************************************************
  5913. //
  5914. // The following are defines for the bit fields in the ADC_O_SSDC0 register.
  5915. //
  5916. //*****************************************************************************
  5917. #define ADC_SSDC0_S7DCSEL_M 0xF0000000 // Sample 7 Digital Comparator
  5918. // Select
  5919. #define ADC_SSDC0_S6DCSEL_M 0x0F000000 // Sample 6 Digital Comparator
  5920. // Select
  5921. #define ADC_SSDC0_S5DCSEL_M 0x00F00000 // Sample 5 Digital Comparator
  5922. // Select
  5923. #define ADC_SSDC0_S4DCSEL_M 0x000F0000 // Sample 4 Digital Comparator
  5924. // Select
  5925. #define ADC_SSDC0_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  5926. // Select
  5927. #define ADC_SSDC0_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  5928. // Select
  5929. #define ADC_SSDC0_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  5930. // Select
  5931. #define ADC_SSDC0_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  5932. // Select
  5933. #define ADC_SSDC0_S6DCSEL_S 24
  5934. #define ADC_SSDC0_S5DCSEL_S 20
  5935. #define ADC_SSDC0_S4DCSEL_S 16
  5936. #define ADC_SSDC0_S3DCSEL_S 12
  5937. #define ADC_SSDC0_S2DCSEL_S 8
  5938. #define ADC_SSDC0_S1DCSEL_S 4
  5939. #define ADC_SSDC0_S0DCSEL_S 0
  5940. //*****************************************************************************
  5941. //
  5942. // The following are defines for the bit fields in the ADC_O_SSEMUX0 register.
  5943. //
  5944. //*****************************************************************************
  5945. #define ADC_SSEMUX0_EMUX7 0x10000000 // 8th Sample Input Select (Upper
  5946. // Bit)
  5947. #define ADC_SSEMUX0_EMUX6 0x01000000 // 7th Sample Input Select (Upper
  5948. // Bit)
  5949. #define ADC_SSEMUX0_EMUX5 0x00100000 // 6th Sample Input Select (Upper
  5950. // Bit)
  5951. #define ADC_SSEMUX0_EMUX4 0x00010000 // 5th Sample Input Select (Upper
  5952. // Bit)
  5953. #define ADC_SSEMUX0_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  5954. // Bit)
  5955. #define ADC_SSEMUX0_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  5956. // Bit)
  5957. #define ADC_SSEMUX0_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  5958. // Bit)
  5959. #define ADC_SSEMUX0_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  5960. // Bit)
  5961. //*****************************************************************************
  5962. //
  5963. // The following are defines for the bit fields in the ADC_O_SSTSH0 register.
  5964. //
  5965. //*****************************************************************************
  5966. #define ADC_SSTSH0_TSH7_M 0xF0000000 // 8th Sample and Hold Period
  5967. // Select
  5968. #define ADC_SSTSH0_TSH6_M 0x0F000000 // 7th Sample and Hold Period
  5969. // Select
  5970. #define ADC_SSTSH0_TSH5_M 0x00F00000 // 6th Sample and Hold Period
  5971. // Select
  5972. #define ADC_SSTSH0_TSH4_M 0x000F0000 // 5th Sample and Hold Period
  5973. // Select
  5974. #define ADC_SSTSH0_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  5975. // Select
  5976. #define ADC_SSTSH0_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  5977. // Select
  5978. #define ADC_SSTSH0_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  5979. // Select
  5980. #define ADC_SSTSH0_TSH0_M 0x0000000F // 1st Sample and Hold Period
  5981. // Select
  5982. #define ADC_SSTSH0_TSH7_S 28
  5983. #define ADC_SSTSH0_TSH6_S 24
  5984. #define ADC_SSTSH0_TSH5_S 20
  5985. #define ADC_SSTSH0_TSH4_S 16
  5986. #define ADC_SSTSH0_TSH3_S 12
  5987. #define ADC_SSTSH0_TSH2_S 8
  5988. #define ADC_SSTSH0_TSH1_S 4
  5989. #define ADC_SSTSH0_TSH0_S 0
  5990. //*****************************************************************************
  5991. //
  5992. // The following are defines for the bit fields in the ADC_O_SSMUX1 register.
  5993. //
  5994. //*****************************************************************************
  5995. #define ADC_SSMUX1_MUX3_M 0x0000F000 // 4th Sample Input Select
  5996. #define ADC_SSMUX1_MUX2_M 0x00000F00 // 3rd Sample Input Select
  5997. #define ADC_SSMUX1_MUX1_M 0x000000F0 // 2nd Sample Input Select
  5998. #define ADC_SSMUX1_MUX0_M 0x0000000F // 1st Sample Input Select
  5999. #define ADC_SSMUX1_MUX3_S 12
  6000. #define ADC_SSMUX1_MUX2_S 8
  6001. #define ADC_SSMUX1_MUX1_S 4
  6002. #define ADC_SSMUX1_MUX0_S 0
  6003. //*****************************************************************************
  6004. //
  6005. // The following are defines for the bit fields in the ADC_O_SSCTL1 register.
  6006. //
  6007. //*****************************************************************************
  6008. #define ADC_SSCTL1_TS3 0x00008000 // 4th Sample Temp Sensor Select
  6009. #define ADC_SSCTL1_IE3 0x00004000 // 4th Sample Interrupt Enable
  6010. #define ADC_SSCTL1_END3 0x00002000 // 4th Sample is End of Sequence
  6011. #define ADC_SSCTL1_D3 0x00001000 // 4th Sample Differential Input
  6012. // Select
  6013. #define ADC_SSCTL1_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  6014. #define ADC_SSCTL1_IE2 0x00000400 // 3rd Sample Interrupt Enable
  6015. #define ADC_SSCTL1_END2 0x00000200 // 3rd Sample is End of Sequence
  6016. #define ADC_SSCTL1_D2 0x00000100 // 3rd Sample Differential Input
  6017. // Select
  6018. #define ADC_SSCTL1_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  6019. #define ADC_SSCTL1_IE1 0x00000040 // 2nd Sample Interrupt Enable
  6020. #define ADC_SSCTL1_END1 0x00000020 // 2nd Sample is End of Sequence
  6021. #define ADC_SSCTL1_D1 0x00000010 // 2nd Sample Differential Input
  6022. // Select
  6023. #define ADC_SSCTL1_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6024. #define ADC_SSCTL1_IE0 0x00000004 // 1st Sample Interrupt Enable
  6025. #define ADC_SSCTL1_END0 0x00000002 // 1st Sample is End of Sequence
  6026. #define ADC_SSCTL1_D0 0x00000001 // 1st Sample Differential Input
  6027. // Select
  6028. //*****************************************************************************
  6029. //
  6030. // The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
  6031. //
  6032. //*****************************************************************************
  6033. #define ADC_SSFIFO1_DATA_M 0x00000FFF // Conversion Result Data
  6034. #define ADC_SSFIFO1_DATA_S 0
  6035. //*****************************************************************************
  6036. //
  6037. // The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
  6038. //
  6039. //*****************************************************************************
  6040. #define ADC_SSFSTAT1_FULL 0x00001000 // FIFO Full
  6041. #define ADC_SSFSTAT1_EMPTY 0x00000100 // FIFO Empty
  6042. #define ADC_SSFSTAT1_HPTR_M 0x000000F0 // FIFO Head Pointer
  6043. #define ADC_SSFSTAT1_TPTR_M 0x0000000F // FIFO Tail Pointer
  6044. #define ADC_SSFSTAT1_HPTR_S 4
  6045. #define ADC_SSFSTAT1_TPTR_S 0
  6046. //*****************************************************************************
  6047. //
  6048. // The following are defines for the bit fields in the ADC_O_SSOP1 register.
  6049. //
  6050. //*****************************************************************************
  6051. #define ADC_SSOP1_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  6052. // Operation
  6053. #define ADC_SSOP1_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  6054. // Operation
  6055. #define ADC_SSOP1_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  6056. // Operation
  6057. #define ADC_SSOP1_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6058. // Operation
  6059. //*****************************************************************************
  6060. //
  6061. // The following are defines for the bit fields in the ADC_O_SSDC1 register.
  6062. //
  6063. //*****************************************************************************
  6064. #define ADC_SSDC1_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  6065. // Select
  6066. #define ADC_SSDC1_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  6067. // Select
  6068. #define ADC_SSDC1_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  6069. // Select
  6070. #define ADC_SSDC1_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6071. // Select
  6072. #define ADC_SSDC1_S2DCSEL_S 8
  6073. #define ADC_SSDC1_S1DCSEL_S 4
  6074. #define ADC_SSDC1_S0DCSEL_S 0
  6075. //*****************************************************************************
  6076. //
  6077. // The following are defines for the bit fields in the ADC_O_SSEMUX1 register.
  6078. //
  6079. //*****************************************************************************
  6080. #define ADC_SSEMUX1_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  6081. // Bit)
  6082. #define ADC_SSEMUX1_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  6083. // Bit)
  6084. #define ADC_SSEMUX1_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  6085. // Bit)
  6086. #define ADC_SSEMUX1_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6087. // Bit)
  6088. //*****************************************************************************
  6089. //
  6090. // The following are defines for the bit fields in the ADC_O_SSTSH1 register.
  6091. //
  6092. //*****************************************************************************
  6093. #define ADC_SSTSH1_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  6094. // Select
  6095. #define ADC_SSTSH1_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  6096. // Select
  6097. #define ADC_SSTSH1_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  6098. // Select
  6099. #define ADC_SSTSH1_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6100. // Select
  6101. #define ADC_SSTSH1_TSH3_S 12
  6102. #define ADC_SSTSH1_TSH2_S 8
  6103. #define ADC_SSTSH1_TSH1_S 4
  6104. #define ADC_SSTSH1_TSH0_S 0
  6105. //*****************************************************************************
  6106. //
  6107. // The following are defines for the bit fields in the ADC_O_SSMUX2 register.
  6108. //
  6109. //*****************************************************************************
  6110. #define ADC_SSMUX2_MUX3_M 0x0000F000 // 4th Sample Input Select
  6111. #define ADC_SSMUX2_MUX2_M 0x00000F00 // 3rd Sample Input Select
  6112. #define ADC_SSMUX2_MUX1_M 0x000000F0 // 2nd Sample Input Select
  6113. #define ADC_SSMUX2_MUX0_M 0x0000000F // 1st Sample Input Select
  6114. #define ADC_SSMUX2_MUX3_S 12
  6115. #define ADC_SSMUX2_MUX2_S 8
  6116. #define ADC_SSMUX2_MUX1_S 4
  6117. #define ADC_SSMUX2_MUX0_S 0
  6118. //*****************************************************************************
  6119. //
  6120. // The following are defines for the bit fields in the ADC_O_SSCTL2 register.
  6121. //
  6122. //*****************************************************************************
  6123. #define ADC_SSCTL2_TS3 0x00008000 // 4th Sample Temp Sensor Select
  6124. #define ADC_SSCTL2_IE3 0x00004000 // 4th Sample Interrupt Enable
  6125. #define ADC_SSCTL2_END3 0x00002000 // 4th Sample is End of Sequence
  6126. #define ADC_SSCTL2_D3 0x00001000 // 4th Sample Differential Input
  6127. // Select
  6128. #define ADC_SSCTL2_TS2 0x00000800 // 3rd Sample Temp Sensor Select
  6129. #define ADC_SSCTL2_IE2 0x00000400 // 3rd Sample Interrupt Enable
  6130. #define ADC_SSCTL2_END2 0x00000200 // 3rd Sample is End of Sequence
  6131. #define ADC_SSCTL2_D2 0x00000100 // 3rd Sample Differential Input
  6132. // Select
  6133. #define ADC_SSCTL2_TS1 0x00000080 // 2nd Sample Temp Sensor Select
  6134. #define ADC_SSCTL2_IE1 0x00000040 // 2nd Sample Interrupt Enable
  6135. #define ADC_SSCTL2_END1 0x00000020 // 2nd Sample is End of Sequence
  6136. #define ADC_SSCTL2_D1 0x00000010 // 2nd Sample Differential Input
  6137. // Select
  6138. #define ADC_SSCTL2_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6139. #define ADC_SSCTL2_IE0 0x00000004 // 1st Sample Interrupt Enable
  6140. #define ADC_SSCTL2_END0 0x00000002 // 1st Sample is End of Sequence
  6141. #define ADC_SSCTL2_D0 0x00000001 // 1st Sample Differential Input
  6142. // Select
  6143. //*****************************************************************************
  6144. //
  6145. // The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
  6146. //
  6147. //*****************************************************************************
  6148. #define ADC_SSFIFO2_DATA_M 0x00000FFF // Conversion Result Data
  6149. #define ADC_SSFIFO2_DATA_S 0
  6150. //*****************************************************************************
  6151. //
  6152. // The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
  6153. //
  6154. //*****************************************************************************
  6155. #define ADC_SSFSTAT2_FULL 0x00001000 // FIFO Full
  6156. #define ADC_SSFSTAT2_EMPTY 0x00000100 // FIFO Empty
  6157. #define ADC_SSFSTAT2_HPTR_M 0x000000F0 // FIFO Head Pointer
  6158. #define ADC_SSFSTAT2_TPTR_M 0x0000000F // FIFO Tail Pointer
  6159. #define ADC_SSFSTAT2_HPTR_S 4
  6160. #define ADC_SSFSTAT2_TPTR_S 0
  6161. //*****************************************************************************
  6162. //
  6163. // The following are defines for the bit fields in the ADC_O_SSOP2 register.
  6164. //
  6165. //*****************************************************************************
  6166. #define ADC_SSOP2_S3DCOP 0x00001000 // Sample 3 Digital Comparator
  6167. // Operation
  6168. #define ADC_SSOP2_S2DCOP 0x00000100 // Sample 2 Digital Comparator
  6169. // Operation
  6170. #define ADC_SSOP2_S1DCOP 0x00000010 // Sample 1 Digital Comparator
  6171. // Operation
  6172. #define ADC_SSOP2_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6173. // Operation
  6174. //*****************************************************************************
  6175. //
  6176. // The following are defines for the bit fields in the ADC_O_SSDC2 register.
  6177. //
  6178. //*****************************************************************************
  6179. #define ADC_SSDC2_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
  6180. // Select
  6181. #define ADC_SSDC2_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
  6182. // Select
  6183. #define ADC_SSDC2_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
  6184. // Select
  6185. #define ADC_SSDC2_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6186. // Select
  6187. #define ADC_SSDC2_S2DCSEL_S 8
  6188. #define ADC_SSDC2_S1DCSEL_S 4
  6189. #define ADC_SSDC2_S0DCSEL_S 0
  6190. //*****************************************************************************
  6191. //
  6192. // The following are defines for the bit fields in the ADC_O_SSEMUX2 register.
  6193. //
  6194. //*****************************************************************************
  6195. #define ADC_SSEMUX2_EMUX3 0x00001000 // 4th Sample Input Select (Upper
  6196. // Bit)
  6197. #define ADC_SSEMUX2_EMUX2 0x00000100 // 3rd Sample Input Select (Upper
  6198. // Bit)
  6199. #define ADC_SSEMUX2_EMUX1 0x00000010 // 2th Sample Input Select (Upper
  6200. // Bit)
  6201. #define ADC_SSEMUX2_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6202. // Bit)
  6203. //*****************************************************************************
  6204. //
  6205. // The following are defines for the bit fields in the ADC_O_SSTSH2 register.
  6206. //
  6207. //*****************************************************************************
  6208. #define ADC_SSTSH2_TSH3_M 0x0000F000 // 4th Sample and Hold Period
  6209. // Select
  6210. #define ADC_SSTSH2_TSH2_M 0x00000F00 // 3rd Sample and Hold Period
  6211. // Select
  6212. #define ADC_SSTSH2_TSH1_M 0x000000F0 // 2nd Sample and Hold Period
  6213. // Select
  6214. #define ADC_SSTSH2_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6215. // Select
  6216. #define ADC_SSTSH2_TSH3_S 12
  6217. #define ADC_SSTSH2_TSH2_S 8
  6218. #define ADC_SSTSH2_TSH1_S 4
  6219. #define ADC_SSTSH2_TSH0_S 0
  6220. //*****************************************************************************
  6221. //
  6222. // The following are defines for the bit fields in the ADC_O_SSMUX3 register.
  6223. //
  6224. //*****************************************************************************
  6225. #define ADC_SSMUX3_MUX0_M 0x0000000F // 1st Sample Input Select
  6226. #define ADC_SSMUX3_MUX0_S 0
  6227. //*****************************************************************************
  6228. //
  6229. // The following are defines for the bit fields in the ADC_O_SSCTL3 register.
  6230. //
  6231. //*****************************************************************************
  6232. #define ADC_SSCTL3_TS0 0x00000008 // 1st Sample Temp Sensor Select
  6233. #define ADC_SSCTL3_IE0 0x00000004 // Sample Interrupt Enable
  6234. #define ADC_SSCTL3_END0 0x00000002 // End of Sequence
  6235. #define ADC_SSCTL3_D0 0x00000001 // Sample Differential Input Select
  6236. //*****************************************************************************
  6237. //
  6238. // The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
  6239. //
  6240. //*****************************************************************************
  6241. #define ADC_SSFIFO3_DATA_M 0x00000FFF // Conversion Result Data
  6242. #define ADC_SSFIFO3_DATA_S 0
  6243. //*****************************************************************************
  6244. //
  6245. // The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
  6246. //
  6247. //*****************************************************************************
  6248. #define ADC_SSFSTAT3_FULL 0x00001000 // FIFO Full
  6249. #define ADC_SSFSTAT3_EMPTY 0x00000100 // FIFO Empty
  6250. #define ADC_SSFSTAT3_HPTR_M 0x000000F0 // FIFO Head Pointer
  6251. #define ADC_SSFSTAT3_TPTR_M 0x0000000F // FIFO Tail Pointer
  6252. #define ADC_SSFSTAT3_HPTR_S 4
  6253. #define ADC_SSFSTAT3_TPTR_S 0
  6254. //*****************************************************************************
  6255. //
  6256. // The following are defines for the bit fields in the ADC_O_SSOP3 register.
  6257. //
  6258. //*****************************************************************************
  6259. #define ADC_SSOP3_S0DCOP 0x00000001 // Sample 0 Digital Comparator
  6260. // Operation
  6261. //*****************************************************************************
  6262. //
  6263. // The following are defines for the bit fields in the ADC_O_SSDC3 register.
  6264. //
  6265. //*****************************************************************************
  6266. #define ADC_SSDC3_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
  6267. // Select
  6268. //*****************************************************************************
  6269. //
  6270. // The following are defines for the bit fields in the ADC_O_SSEMUX3 register.
  6271. //
  6272. //*****************************************************************************
  6273. #define ADC_SSEMUX3_EMUX0 0x00000001 // 1st Sample Input Select (Upper
  6274. // Bit)
  6275. //*****************************************************************************
  6276. //
  6277. // The following are defines for the bit fields in the ADC_O_SSTSH3 register.
  6278. //
  6279. //*****************************************************************************
  6280. #define ADC_SSTSH3_TSH0_M 0x0000000F // 1st Sample and Hold Period
  6281. // Select
  6282. #define ADC_SSTSH3_TSH0_S 0
  6283. //*****************************************************************************
  6284. //
  6285. // The following are defines for the bit fields in the ADC_O_DCRIC register.
  6286. //
  6287. //*****************************************************************************
  6288. #define ADC_DCRIC_DCTRIG7 0x00800000 // Digital Comparator Trigger 7
  6289. #define ADC_DCRIC_DCTRIG6 0x00400000 // Digital Comparator Trigger 6
  6290. #define ADC_DCRIC_DCTRIG5 0x00200000 // Digital Comparator Trigger 5
  6291. #define ADC_DCRIC_DCTRIG4 0x00100000 // Digital Comparator Trigger 4
  6292. #define ADC_DCRIC_DCTRIG3 0x00080000 // Digital Comparator Trigger 3
  6293. #define ADC_DCRIC_DCTRIG2 0x00040000 // Digital Comparator Trigger 2
  6294. #define ADC_DCRIC_DCTRIG1 0x00020000 // Digital Comparator Trigger 1
  6295. #define ADC_DCRIC_DCTRIG0 0x00010000 // Digital Comparator Trigger 0
  6296. #define ADC_DCRIC_DCINT7 0x00000080 // Digital Comparator Interrupt 7
  6297. #define ADC_DCRIC_DCINT6 0x00000040 // Digital Comparator Interrupt 6
  6298. #define ADC_DCRIC_DCINT5 0x00000020 // Digital Comparator Interrupt 5
  6299. #define ADC_DCRIC_DCINT4 0x00000010 // Digital Comparator Interrupt 4
  6300. #define ADC_DCRIC_DCINT3 0x00000008 // Digital Comparator Interrupt 3
  6301. #define ADC_DCRIC_DCINT2 0x00000004 // Digital Comparator Interrupt 2
  6302. #define ADC_DCRIC_DCINT1 0x00000002 // Digital Comparator Interrupt 1
  6303. #define ADC_DCRIC_DCINT0 0x00000001 // Digital Comparator Interrupt 0
  6304. //*****************************************************************************
  6305. //
  6306. // The following are defines for the bit fields in the ADC_O_DCCTL0 register.
  6307. //
  6308. //*****************************************************************************
  6309. #define ADC_DCCTL0_CTE 0x00001000 // Comparison Trigger Enable
  6310. #define ADC_DCCTL0_CTC_M 0x00000C00 // Comparison Trigger Condition
  6311. #define ADC_DCCTL0_CTC_LOW 0x00000000 // Low Band
  6312. #define ADC_DCCTL0_CTC_MID 0x00000400 // Mid Band
  6313. #define ADC_DCCTL0_CTC_HIGH 0x00000C00 // High Band
  6314. #define ADC_DCCTL0_CTM_M 0x00000300 // Comparison Trigger Mode
  6315. #define ADC_DCCTL0_CTM_ALWAYS 0x00000000 // Always
  6316. #define ADC_DCCTL0_CTM_ONCE 0x00000100 // Once
  6317. #define ADC_DCCTL0_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6318. #define ADC_DCCTL0_CTM_HONCE 0x00000300 // Hysteresis Once
  6319. #define ADC_DCCTL0_CIE 0x00000010 // Comparison Interrupt Enable
  6320. #define ADC_DCCTL0_CIC_M 0x0000000C // Comparison Interrupt Condition
  6321. #define ADC_DCCTL0_CIC_LOW 0x00000000 // Low Band
  6322. #define ADC_DCCTL0_CIC_MID 0x00000004 // Mid Band
  6323. #define ADC_DCCTL0_CIC_HIGH 0x0000000C // High Band
  6324. #define ADC_DCCTL0_CIM_M 0x00000003 // Comparison Interrupt Mode
  6325. #define ADC_DCCTL0_CIM_ALWAYS 0x00000000 // Always
  6326. #define ADC_DCCTL0_CIM_ONCE 0x00000001 // Once
  6327. #define ADC_DCCTL0_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6328. #define ADC_DCCTL0_CIM_HONCE 0x00000003 // Hysteresis Once
  6329. //*****************************************************************************
  6330. //
  6331. // The following are defines for the bit fields in the ADC_O_DCCTL1 register.
  6332. //
  6333. //*****************************************************************************
  6334. #define ADC_DCCTL1_CTE 0x00001000 // Comparison Trigger Enable
  6335. #define ADC_DCCTL1_CTC_M 0x00000C00 // Comparison Trigger Condition
  6336. #define ADC_DCCTL1_CTC_LOW 0x00000000 // Low Band
  6337. #define ADC_DCCTL1_CTC_MID 0x00000400 // Mid Band
  6338. #define ADC_DCCTL1_CTC_HIGH 0x00000C00 // High Band
  6339. #define ADC_DCCTL1_CTM_M 0x00000300 // Comparison Trigger Mode
  6340. #define ADC_DCCTL1_CTM_ALWAYS 0x00000000 // Always
  6341. #define ADC_DCCTL1_CTM_ONCE 0x00000100 // Once
  6342. #define ADC_DCCTL1_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6343. #define ADC_DCCTL1_CTM_HONCE 0x00000300 // Hysteresis Once
  6344. #define ADC_DCCTL1_CIE 0x00000010 // Comparison Interrupt Enable
  6345. #define ADC_DCCTL1_CIC_M 0x0000000C // Comparison Interrupt Condition
  6346. #define ADC_DCCTL1_CIC_LOW 0x00000000 // Low Band
  6347. #define ADC_DCCTL1_CIC_MID 0x00000004 // Mid Band
  6348. #define ADC_DCCTL1_CIC_HIGH 0x0000000C // High Band
  6349. #define ADC_DCCTL1_CIM_M 0x00000003 // Comparison Interrupt Mode
  6350. #define ADC_DCCTL1_CIM_ALWAYS 0x00000000 // Always
  6351. #define ADC_DCCTL1_CIM_ONCE 0x00000001 // Once
  6352. #define ADC_DCCTL1_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6353. #define ADC_DCCTL1_CIM_HONCE 0x00000003 // Hysteresis Once
  6354. //*****************************************************************************
  6355. //
  6356. // The following are defines for the bit fields in the ADC_O_DCCTL2 register.
  6357. //
  6358. //*****************************************************************************
  6359. #define ADC_DCCTL2_CTE 0x00001000 // Comparison Trigger Enable
  6360. #define ADC_DCCTL2_CTC_M 0x00000C00 // Comparison Trigger Condition
  6361. #define ADC_DCCTL2_CTC_LOW 0x00000000 // Low Band
  6362. #define ADC_DCCTL2_CTC_MID 0x00000400 // Mid Band
  6363. #define ADC_DCCTL2_CTC_HIGH 0x00000C00 // High Band
  6364. #define ADC_DCCTL2_CTM_M 0x00000300 // Comparison Trigger Mode
  6365. #define ADC_DCCTL2_CTM_ALWAYS 0x00000000 // Always
  6366. #define ADC_DCCTL2_CTM_ONCE 0x00000100 // Once
  6367. #define ADC_DCCTL2_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6368. #define ADC_DCCTL2_CTM_HONCE 0x00000300 // Hysteresis Once
  6369. #define ADC_DCCTL2_CIE 0x00000010 // Comparison Interrupt Enable
  6370. #define ADC_DCCTL2_CIC_M 0x0000000C // Comparison Interrupt Condition
  6371. #define ADC_DCCTL2_CIC_LOW 0x00000000 // Low Band
  6372. #define ADC_DCCTL2_CIC_MID 0x00000004 // Mid Band
  6373. #define ADC_DCCTL2_CIC_HIGH 0x0000000C // High Band
  6374. #define ADC_DCCTL2_CIM_M 0x00000003 // Comparison Interrupt Mode
  6375. #define ADC_DCCTL2_CIM_ALWAYS 0x00000000 // Always
  6376. #define ADC_DCCTL2_CIM_ONCE 0x00000001 // Once
  6377. #define ADC_DCCTL2_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6378. #define ADC_DCCTL2_CIM_HONCE 0x00000003 // Hysteresis Once
  6379. //*****************************************************************************
  6380. //
  6381. // The following are defines for the bit fields in the ADC_O_DCCTL3 register.
  6382. //
  6383. //*****************************************************************************
  6384. #define ADC_DCCTL3_CTE 0x00001000 // Comparison Trigger Enable
  6385. #define ADC_DCCTL3_CTC_M 0x00000C00 // Comparison Trigger Condition
  6386. #define ADC_DCCTL3_CTC_LOW 0x00000000 // Low Band
  6387. #define ADC_DCCTL3_CTC_MID 0x00000400 // Mid Band
  6388. #define ADC_DCCTL3_CTC_HIGH 0x00000C00 // High Band
  6389. #define ADC_DCCTL3_CTM_M 0x00000300 // Comparison Trigger Mode
  6390. #define ADC_DCCTL3_CTM_ALWAYS 0x00000000 // Always
  6391. #define ADC_DCCTL3_CTM_ONCE 0x00000100 // Once
  6392. #define ADC_DCCTL3_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6393. #define ADC_DCCTL3_CTM_HONCE 0x00000300 // Hysteresis Once
  6394. #define ADC_DCCTL3_CIE 0x00000010 // Comparison Interrupt Enable
  6395. #define ADC_DCCTL3_CIC_M 0x0000000C // Comparison Interrupt Condition
  6396. #define ADC_DCCTL3_CIC_LOW 0x00000000 // Low Band
  6397. #define ADC_DCCTL3_CIC_MID 0x00000004 // Mid Band
  6398. #define ADC_DCCTL3_CIC_HIGH 0x0000000C // High Band
  6399. #define ADC_DCCTL3_CIM_M 0x00000003 // Comparison Interrupt Mode
  6400. #define ADC_DCCTL3_CIM_ALWAYS 0x00000000 // Always
  6401. #define ADC_DCCTL3_CIM_ONCE 0x00000001 // Once
  6402. #define ADC_DCCTL3_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6403. #define ADC_DCCTL3_CIM_HONCE 0x00000003 // Hysteresis Once
  6404. //*****************************************************************************
  6405. //
  6406. // The following are defines for the bit fields in the ADC_O_DCCTL4 register.
  6407. //
  6408. //*****************************************************************************
  6409. #define ADC_DCCTL4_CTE 0x00001000 // Comparison Trigger Enable
  6410. #define ADC_DCCTL4_CTC_M 0x00000C00 // Comparison Trigger Condition
  6411. #define ADC_DCCTL4_CTC_LOW 0x00000000 // Low Band
  6412. #define ADC_DCCTL4_CTC_MID 0x00000400 // Mid Band
  6413. #define ADC_DCCTL4_CTC_HIGH 0x00000C00 // High Band
  6414. #define ADC_DCCTL4_CTM_M 0x00000300 // Comparison Trigger Mode
  6415. #define ADC_DCCTL4_CTM_ALWAYS 0x00000000 // Always
  6416. #define ADC_DCCTL4_CTM_ONCE 0x00000100 // Once
  6417. #define ADC_DCCTL4_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6418. #define ADC_DCCTL4_CTM_HONCE 0x00000300 // Hysteresis Once
  6419. #define ADC_DCCTL4_CIE 0x00000010 // Comparison Interrupt Enable
  6420. #define ADC_DCCTL4_CIC_M 0x0000000C // Comparison Interrupt Condition
  6421. #define ADC_DCCTL4_CIC_LOW 0x00000000 // Low Band
  6422. #define ADC_DCCTL4_CIC_MID 0x00000004 // Mid Band
  6423. #define ADC_DCCTL4_CIC_HIGH 0x0000000C // High Band
  6424. #define ADC_DCCTL4_CIM_M 0x00000003 // Comparison Interrupt Mode
  6425. #define ADC_DCCTL4_CIM_ALWAYS 0x00000000 // Always
  6426. #define ADC_DCCTL4_CIM_ONCE 0x00000001 // Once
  6427. #define ADC_DCCTL4_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6428. #define ADC_DCCTL4_CIM_HONCE 0x00000003 // Hysteresis Once
  6429. //*****************************************************************************
  6430. //
  6431. // The following are defines for the bit fields in the ADC_O_DCCTL5 register.
  6432. //
  6433. //*****************************************************************************
  6434. #define ADC_DCCTL5_CTE 0x00001000 // Comparison Trigger Enable
  6435. #define ADC_DCCTL5_CTC_M 0x00000C00 // Comparison Trigger Condition
  6436. #define ADC_DCCTL5_CTC_LOW 0x00000000 // Low Band
  6437. #define ADC_DCCTL5_CTC_MID 0x00000400 // Mid Band
  6438. #define ADC_DCCTL5_CTC_HIGH 0x00000C00 // High Band
  6439. #define ADC_DCCTL5_CTM_M 0x00000300 // Comparison Trigger Mode
  6440. #define ADC_DCCTL5_CTM_ALWAYS 0x00000000 // Always
  6441. #define ADC_DCCTL5_CTM_ONCE 0x00000100 // Once
  6442. #define ADC_DCCTL5_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6443. #define ADC_DCCTL5_CTM_HONCE 0x00000300 // Hysteresis Once
  6444. #define ADC_DCCTL5_CIE 0x00000010 // Comparison Interrupt Enable
  6445. #define ADC_DCCTL5_CIC_M 0x0000000C // Comparison Interrupt Condition
  6446. #define ADC_DCCTL5_CIC_LOW 0x00000000 // Low Band
  6447. #define ADC_DCCTL5_CIC_MID 0x00000004 // Mid Band
  6448. #define ADC_DCCTL5_CIC_HIGH 0x0000000C // High Band
  6449. #define ADC_DCCTL5_CIM_M 0x00000003 // Comparison Interrupt Mode
  6450. #define ADC_DCCTL5_CIM_ALWAYS 0x00000000 // Always
  6451. #define ADC_DCCTL5_CIM_ONCE 0x00000001 // Once
  6452. #define ADC_DCCTL5_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6453. #define ADC_DCCTL5_CIM_HONCE 0x00000003 // Hysteresis Once
  6454. //*****************************************************************************
  6455. //
  6456. // The following are defines for the bit fields in the ADC_O_DCCTL6 register.
  6457. //
  6458. //*****************************************************************************
  6459. #define ADC_DCCTL6_CTE 0x00001000 // Comparison Trigger Enable
  6460. #define ADC_DCCTL6_CTC_M 0x00000C00 // Comparison Trigger Condition
  6461. #define ADC_DCCTL6_CTC_LOW 0x00000000 // Low Band
  6462. #define ADC_DCCTL6_CTC_MID 0x00000400 // Mid Band
  6463. #define ADC_DCCTL6_CTC_HIGH 0x00000C00 // High Band
  6464. #define ADC_DCCTL6_CTM_M 0x00000300 // Comparison Trigger Mode
  6465. #define ADC_DCCTL6_CTM_ALWAYS 0x00000000 // Always
  6466. #define ADC_DCCTL6_CTM_ONCE 0x00000100 // Once
  6467. #define ADC_DCCTL6_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6468. #define ADC_DCCTL6_CTM_HONCE 0x00000300 // Hysteresis Once
  6469. #define ADC_DCCTL6_CIE 0x00000010 // Comparison Interrupt Enable
  6470. #define ADC_DCCTL6_CIC_M 0x0000000C // Comparison Interrupt Condition
  6471. #define ADC_DCCTL6_CIC_LOW 0x00000000 // Low Band
  6472. #define ADC_DCCTL6_CIC_MID 0x00000004 // Mid Band
  6473. #define ADC_DCCTL6_CIC_HIGH 0x0000000C // High Band
  6474. #define ADC_DCCTL6_CIM_M 0x00000003 // Comparison Interrupt Mode
  6475. #define ADC_DCCTL6_CIM_ALWAYS 0x00000000 // Always
  6476. #define ADC_DCCTL6_CIM_ONCE 0x00000001 // Once
  6477. #define ADC_DCCTL6_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6478. #define ADC_DCCTL6_CIM_HONCE 0x00000003 // Hysteresis Once
  6479. //*****************************************************************************
  6480. //
  6481. // The following are defines for the bit fields in the ADC_O_DCCTL7 register.
  6482. //
  6483. //*****************************************************************************
  6484. #define ADC_DCCTL7_CTE 0x00001000 // Comparison Trigger Enable
  6485. #define ADC_DCCTL7_CTC_M 0x00000C00 // Comparison Trigger Condition
  6486. #define ADC_DCCTL7_CTC_LOW 0x00000000 // Low Band
  6487. #define ADC_DCCTL7_CTC_MID 0x00000400 // Mid Band
  6488. #define ADC_DCCTL7_CTC_HIGH 0x00000C00 // High Band
  6489. #define ADC_DCCTL7_CTM_M 0x00000300 // Comparison Trigger Mode
  6490. #define ADC_DCCTL7_CTM_ALWAYS 0x00000000 // Always
  6491. #define ADC_DCCTL7_CTM_ONCE 0x00000100 // Once
  6492. #define ADC_DCCTL7_CTM_HALWAYS 0x00000200 // Hysteresis Always
  6493. #define ADC_DCCTL7_CTM_HONCE 0x00000300 // Hysteresis Once
  6494. #define ADC_DCCTL7_CIE 0x00000010 // Comparison Interrupt Enable
  6495. #define ADC_DCCTL7_CIC_M 0x0000000C // Comparison Interrupt Condition
  6496. #define ADC_DCCTL7_CIC_LOW 0x00000000 // Low Band
  6497. #define ADC_DCCTL7_CIC_MID 0x00000004 // Mid Band
  6498. #define ADC_DCCTL7_CIC_HIGH 0x0000000C // High Band
  6499. #define ADC_DCCTL7_CIM_M 0x00000003 // Comparison Interrupt Mode
  6500. #define ADC_DCCTL7_CIM_ALWAYS 0x00000000 // Always
  6501. #define ADC_DCCTL7_CIM_ONCE 0x00000001 // Once
  6502. #define ADC_DCCTL7_CIM_HALWAYS 0x00000002 // Hysteresis Always
  6503. #define ADC_DCCTL7_CIM_HONCE 0x00000003 // Hysteresis Once
  6504. //*****************************************************************************
  6505. //
  6506. // The following are defines for the bit fields in the ADC_O_DCCMP0 register.
  6507. //
  6508. //*****************************************************************************
  6509. #define ADC_DCCMP0_COMP1_M 0x0FFF0000 // Compare 1
  6510. #define ADC_DCCMP0_COMP0_M 0x00000FFF // Compare 0
  6511. #define ADC_DCCMP0_COMP1_S 16
  6512. #define ADC_DCCMP0_COMP0_S 0
  6513. //*****************************************************************************
  6514. //
  6515. // The following are defines for the bit fields in the ADC_O_DCCMP1 register.
  6516. //
  6517. //*****************************************************************************
  6518. #define ADC_DCCMP1_COMP1_M 0x0FFF0000 // Compare 1
  6519. #define ADC_DCCMP1_COMP0_M 0x00000FFF // Compare 0
  6520. #define ADC_DCCMP1_COMP1_S 16
  6521. #define ADC_DCCMP1_COMP0_S 0
  6522. //*****************************************************************************
  6523. //
  6524. // The following are defines for the bit fields in the ADC_O_DCCMP2 register.
  6525. //
  6526. //*****************************************************************************
  6527. #define ADC_DCCMP2_COMP1_M 0x0FFF0000 // Compare 1
  6528. #define ADC_DCCMP2_COMP0_M 0x00000FFF // Compare 0
  6529. #define ADC_DCCMP2_COMP1_S 16
  6530. #define ADC_DCCMP2_COMP0_S 0
  6531. //*****************************************************************************
  6532. //
  6533. // The following are defines for the bit fields in the ADC_O_DCCMP3 register.
  6534. //
  6535. //*****************************************************************************
  6536. #define ADC_DCCMP3_COMP1_M 0x0FFF0000 // Compare 1
  6537. #define ADC_DCCMP3_COMP0_M 0x00000FFF // Compare 0
  6538. #define ADC_DCCMP3_COMP1_S 16
  6539. #define ADC_DCCMP3_COMP0_S 0
  6540. //*****************************************************************************
  6541. //
  6542. // The following are defines for the bit fields in the ADC_O_DCCMP4 register.
  6543. //
  6544. //*****************************************************************************
  6545. #define ADC_DCCMP4_COMP1_M 0x0FFF0000 // Compare 1
  6546. #define ADC_DCCMP4_COMP0_M 0x00000FFF // Compare 0
  6547. #define ADC_DCCMP4_COMP1_S 16
  6548. #define ADC_DCCMP4_COMP0_S 0
  6549. //*****************************************************************************
  6550. //
  6551. // The following are defines for the bit fields in the ADC_O_DCCMP5 register.
  6552. //
  6553. //*****************************************************************************
  6554. #define ADC_DCCMP5_COMP1_M 0x0FFF0000 // Compare 1
  6555. #define ADC_DCCMP5_COMP0_M 0x00000FFF // Compare 0
  6556. #define ADC_DCCMP5_COMP1_S 16
  6557. #define ADC_DCCMP5_COMP0_S 0
  6558. //*****************************************************************************
  6559. //
  6560. // The following are defines for the bit fields in the ADC_O_DCCMP6 register.
  6561. //
  6562. //*****************************************************************************
  6563. #define ADC_DCCMP6_COMP1_M 0x0FFF0000 // Compare 1
  6564. #define ADC_DCCMP6_COMP0_M 0x00000FFF // Compare 0
  6565. #define ADC_DCCMP6_COMP1_S 16
  6566. #define ADC_DCCMP6_COMP0_S 0
  6567. //*****************************************************************************
  6568. //
  6569. // The following are defines for the bit fields in the ADC_O_DCCMP7 register.
  6570. //
  6571. //*****************************************************************************
  6572. #define ADC_DCCMP7_COMP1_M 0x0FFF0000 // Compare 1
  6573. #define ADC_DCCMP7_COMP0_M 0x00000FFF // Compare 0
  6574. #define ADC_DCCMP7_COMP1_S 16
  6575. #define ADC_DCCMP7_COMP0_S 0
  6576. //*****************************************************************************
  6577. //
  6578. // The following are defines for the bit fields in the ADC_O_PP register.
  6579. //
  6580. //*****************************************************************************
  6581. #define ADC_PP_APSHT 0x01000000 // Application-Programmable
  6582. // Sample-and-Hold Time
  6583. #define ADC_PP_TS 0x00800000 // Temperature Sensor
  6584. #define ADC_PP_RSL_M 0x007C0000 // Resolution
  6585. #define ADC_PP_TYPE_M 0x00030000 // ADC Architecture
  6586. #define ADC_PP_TYPE_SAR 0x00000000 // SAR
  6587. #define ADC_PP_DC_M 0x0000FC00 // Digital Comparator Count
  6588. #define ADC_PP_CH_M 0x000003F0 // ADC Channel Count
  6589. #define ADC_PP_MCR_M 0x0000000F // Maximum Conversion Rate
  6590. #define ADC_PP_MCR_FULL 0x00000007 // Full conversion rate (FCONV) as
  6591. // defined by TADC and NSH
  6592. #define ADC_PP_RSL_S 18
  6593. #define ADC_PP_DC_S 10
  6594. #define ADC_PP_CH_S 4
  6595. //*****************************************************************************
  6596. //
  6597. // The following are defines for the bit fields in the ADC_O_PC register.
  6598. //
  6599. //*****************************************************************************
  6600. #define ADC_PC_MCR_M 0x0000000F // Conversion Rate
  6601. #define ADC_PC_MCR_1_8 0x00000001 // Eighth conversion rate. After a
  6602. // conversion completes, the logic
  6603. // pauses for 112 TADC periods
  6604. // before starting the next
  6605. // conversion
  6606. #define ADC_PC_MCR_1_4 0x00000003 // Quarter conversion rate. After a
  6607. // conversion completes, the logic
  6608. // pauses for 48 TADC periods
  6609. // before starting the next
  6610. // conversion
  6611. #define ADC_PC_MCR_1_2 0x00000005 // Half conversion rate. After a
  6612. // conversion completes, the logic
  6613. // pauses for 16 TADC periods
  6614. // before starting the next
  6615. // conversion
  6616. #define ADC_PC_MCR_FULL 0x00000007 // Full conversion rate (FCONV) as
  6617. // defined by TADC and NSH
  6618. //*****************************************************************************
  6619. //
  6620. // The following are defines for the bit fields in the ADC_O_CC register.
  6621. //
  6622. //*****************************************************************************
  6623. #define ADC_CC_CLKDIV_M 0x000003F0 // PLL VCO Clock Divisor
  6624. #define ADC_CC_CS_M 0x0000000F // ADC Clock Source
  6625. #define ADC_CC_CS_SYSPLL 0x00000000 // PLL VCO divided by CLKDIV
  6626. #define ADC_CC_CS_PIOSC 0x00000001 // PIOSC
  6627. #define ADC_CC_CS_MOSC 0x00000002 // MOSC
  6628. #define ADC_CC_CLKDIV_S 4
  6629. //*****************************************************************************
  6630. //
  6631. // The following are defines for the bit fields in the COMP_O_ACMIS register.
  6632. //
  6633. //*****************************************************************************
  6634. #define COMP_ACMIS_IN2 0x00000004 // Comparator 2 Masked Interrupt
  6635. // Status
  6636. #define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
  6637. // Status
  6638. #define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
  6639. // Status
  6640. //*****************************************************************************
  6641. //
  6642. // The following are defines for the bit fields in the COMP_O_ACRIS register.
  6643. //
  6644. //*****************************************************************************
  6645. #define COMP_ACRIS_IN2 0x00000004 // Comparator 2 Interrupt Status
  6646. #define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status
  6647. #define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status
  6648. //*****************************************************************************
  6649. //
  6650. // The following are defines for the bit fields in the COMP_O_ACINTEN register.
  6651. //
  6652. //*****************************************************************************
  6653. #define COMP_ACINTEN_IN2 0x00000004 // Comparator 2 Interrupt Enable
  6654. #define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable
  6655. #define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable
  6656. //*****************************************************************************
  6657. //
  6658. // The following are defines for the bit fields in the COMP_O_ACREFCTL
  6659. // register.
  6660. //
  6661. //*****************************************************************************
  6662. #define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable
  6663. #define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range
  6664. #define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref
  6665. #define COMP_ACREFCTL_VREF_S 0
  6666. //*****************************************************************************
  6667. //
  6668. // The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
  6669. //
  6670. //*****************************************************************************
  6671. #define COMP_ACSTAT0_OVAL 0x00000002 // Comparator Output Value
  6672. //*****************************************************************************
  6673. //
  6674. // The following are defines for the bit fields in the COMP_O_ACCTL0 register.
  6675. //
  6676. //*****************************************************************************
  6677. #define COMP_ACCTL0_TOEN 0x00000800 // Trigger Output Enable
  6678. #define COMP_ACCTL0_ASRCP_M 0x00000600 // Analog Source Positive
  6679. #define COMP_ACCTL0_ASRCP_PIN 0x00000000 // Pin value of Cn+
  6680. #define COMP_ACCTL0_ASRCP_PIN0 0x00000200 // Pin value of C0+
  6681. #define COMP_ACCTL0_ASRCP_REF 0x00000400 // Internal voltage reference
  6682. #define COMP_ACCTL0_TSLVAL 0x00000080 // Trigger Sense Level Value
  6683. #define COMP_ACCTL0_TSEN_M 0x00000060 // Trigger Sense
  6684. #define COMP_ACCTL0_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  6685. #define COMP_ACCTL0_TSEN_FALL 0x00000020 // Falling edge
  6686. #define COMP_ACCTL0_TSEN_RISE 0x00000040 // Rising edge
  6687. #define COMP_ACCTL0_TSEN_BOTH 0x00000060 // Either edge
  6688. #define COMP_ACCTL0_ISLVAL 0x00000010 // Interrupt Sense Level Value
  6689. #define COMP_ACCTL0_ISEN_M 0x0000000C // Interrupt Sense
  6690. #define COMP_ACCTL0_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  6691. #define COMP_ACCTL0_ISEN_FALL 0x00000004 // Falling edge
  6692. #define COMP_ACCTL0_ISEN_RISE 0x00000008 // Rising edge
  6693. #define COMP_ACCTL0_ISEN_BOTH 0x0000000C // Either edge
  6694. #define COMP_ACCTL0_CINV 0x00000002 // Comparator Output Invert
  6695. //*****************************************************************************
  6696. //
  6697. // The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
  6698. //
  6699. //*****************************************************************************
  6700. #define COMP_ACSTAT1_OVAL 0x00000002 // Comparator Output Value
  6701. //*****************************************************************************
  6702. //
  6703. // The following are defines for the bit fields in the COMP_O_ACCTL1 register.
  6704. //
  6705. //*****************************************************************************
  6706. #define COMP_ACCTL1_TOEN 0x00000800 // Trigger Output Enable
  6707. #define COMP_ACCTL1_ASRCP_M 0x00000600 // Analog Source Positive
  6708. #define COMP_ACCTL1_ASRCP_PIN 0x00000000 // Pin value of Cn+
  6709. #define COMP_ACCTL1_ASRCP_PIN0 0x00000200 // Pin value of C0+
  6710. #define COMP_ACCTL1_ASRCP_REF 0x00000400 // Internal voltage reference
  6711. #define COMP_ACCTL1_TSLVAL 0x00000080 // Trigger Sense Level Value
  6712. #define COMP_ACCTL1_TSEN_M 0x00000060 // Trigger Sense
  6713. #define COMP_ACCTL1_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  6714. #define COMP_ACCTL1_TSEN_FALL 0x00000020 // Falling edge
  6715. #define COMP_ACCTL1_TSEN_RISE 0x00000040 // Rising edge
  6716. #define COMP_ACCTL1_TSEN_BOTH 0x00000060 // Either edge
  6717. #define COMP_ACCTL1_ISLVAL 0x00000010 // Interrupt Sense Level Value
  6718. #define COMP_ACCTL1_ISEN_M 0x0000000C // Interrupt Sense
  6719. #define COMP_ACCTL1_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  6720. #define COMP_ACCTL1_ISEN_FALL 0x00000004 // Falling edge
  6721. #define COMP_ACCTL1_ISEN_RISE 0x00000008 // Rising edge
  6722. #define COMP_ACCTL1_ISEN_BOTH 0x0000000C // Either edge
  6723. #define COMP_ACCTL1_CINV 0x00000002 // Comparator Output Invert
  6724. //*****************************************************************************
  6725. //
  6726. // The following are defines for the bit fields in the COMP_O_ACSTAT2 register.
  6727. //
  6728. //*****************************************************************************
  6729. #define COMP_ACSTAT2_OVAL 0x00000002 // Comparator Output Value
  6730. //*****************************************************************************
  6731. //
  6732. // The following are defines for the bit fields in the COMP_O_ACCTL2 register.
  6733. //
  6734. //*****************************************************************************
  6735. #define COMP_ACCTL2_TOEN 0x00000800 // Trigger Output Enable
  6736. #define COMP_ACCTL2_ASRCP_M 0x00000600 // Analog Source Positive
  6737. #define COMP_ACCTL2_ASRCP_PIN 0x00000000 // Pin value of Cn+
  6738. #define COMP_ACCTL2_ASRCP_PIN0 0x00000200 // Pin value of C0+
  6739. #define COMP_ACCTL2_ASRCP_REF 0x00000400 // Internal voltage reference
  6740. #define COMP_ACCTL2_TSLVAL 0x00000080 // Trigger Sense Level Value
  6741. #define COMP_ACCTL2_TSEN_M 0x00000060 // Trigger Sense
  6742. #define COMP_ACCTL2_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
  6743. #define COMP_ACCTL2_TSEN_FALL 0x00000020 // Falling edge
  6744. #define COMP_ACCTL2_TSEN_RISE 0x00000040 // Rising edge
  6745. #define COMP_ACCTL2_TSEN_BOTH 0x00000060 // Either edge
  6746. #define COMP_ACCTL2_ISLVAL 0x00000010 // Interrupt Sense Level Value
  6747. #define COMP_ACCTL2_ISEN_M 0x0000000C // Interrupt Sense
  6748. #define COMP_ACCTL2_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
  6749. #define COMP_ACCTL2_ISEN_FALL 0x00000004 // Falling edge
  6750. #define COMP_ACCTL2_ISEN_RISE 0x00000008 // Rising edge
  6751. #define COMP_ACCTL2_ISEN_BOTH 0x0000000C // Either edge
  6752. #define COMP_ACCTL2_CINV 0x00000002 // Comparator Output Invert
  6753. //*****************************************************************************
  6754. //
  6755. // The following are defines for the bit fields in the COMP_O_PP register.
  6756. //
  6757. //*****************************************************************************
  6758. #define COMP_PP_C2O 0x00040000 // Comparator Output 2 Present
  6759. #define COMP_PP_C1O 0x00020000 // Comparator Output 1 Present
  6760. #define COMP_PP_C0O 0x00010000 // Comparator Output 0 Present
  6761. #define COMP_PP_CMP2 0x00000004 // Comparator 2 Present
  6762. #define COMP_PP_CMP1 0x00000002 // Comparator 1 Present
  6763. #define COMP_PP_CMP0 0x00000001 // Comparator 0 Present
  6764. //*****************************************************************************
  6765. //
  6766. // The following are defines for the bit fields in the CAN_O_CTL register.
  6767. //
  6768. //*****************************************************************************
  6769. #define CAN_CTL_TEST 0x00000080 // Test Mode Enable
  6770. #define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
  6771. #define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
  6772. #define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
  6773. #define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
  6774. #define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
  6775. #define CAN_CTL_INIT 0x00000001 // Initialization
  6776. //*****************************************************************************
  6777. //
  6778. // The following are defines for the bit fields in the CAN_O_STS register.
  6779. //
  6780. //*****************************************************************************
  6781. #define CAN_STS_BOFF 0x00000080 // Bus-Off Status
  6782. #define CAN_STS_EWARN 0x00000040 // Warning Status
  6783. #define CAN_STS_EPASS 0x00000020 // Error Passive
  6784. #define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
  6785. #define CAN_STS_TXOK 0x00000008 // Transmitted a Message
  6786. // Successfully
  6787. #define CAN_STS_LEC_M 0x00000007 // Last Error Code
  6788. #define CAN_STS_LEC_NONE 0x00000000 // No Error
  6789. #define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
  6790. #define CAN_STS_LEC_FORM 0x00000002 // Format Error
  6791. #define CAN_STS_LEC_ACK 0x00000003 // ACK Error
  6792. #define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
  6793. #define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
  6794. #define CAN_STS_LEC_CRC 0x00000006 // CRC Error
  6795. #define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
  6796. //*****************************************************************************
  6797. //
  6798. // The following are defines for the bit fields in the CAN_O_ERR register.
  6799. //
  6800. //*****************************************************************************
  6801. #define CAN_ERR_RP 0x00008000 // Received Error Passive
  6802. #define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
  6803. #define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
  6804. #define CAN_ERR_REC_S 8
  6805. #define CAN_ERR_TEC_S 0
  6806. //*****************************************************************************
  6807. //
  6808. // The following are defines for the bit fields in the CAN_O_BIT register.
  6809. //
  6810. //*****************************************************************************
  6811. #define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
  6812. #define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
  6813. #define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
  6814. #define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
  6815. #define CAN_BIT_TSEG2_S 12
  6816. #define CAN_BIT_TSEG1_S 8
  6817. #define CAN_BIT_SJW_S 6
  6818. #define CAN_BIT_BRP_S 0
  6819. //*****************************************************************************
  6820. //
  6821. // The following are defines for the bit fields in the CAN_O_INT register.
  6822. //
  6823. //*****************************************************************************
  6824. #define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
  6825. #define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
  6826. #define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
  6827. //*****************************************************************************
  6828. //
  6829. // The following are defines for the bit fields in the CAN_O_TST register.
  6830. //
  6831. //*****************************************************************************
  6832. #define CAN_TST_RX 0x00000080 // Receive Observation
  6833. #define CAN_TST_TX_M 0x00000060 // Transmit Control
  6834. #define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
  6835. #define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
  6836. #define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
  6837. #define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
  6838. #define CAN_TST_LBACK 0x00000010 // Loopback Mode
  6839. #define CAN_TST_SILENT 0x00000008 // Silent Mode
  6840. #define CAN_TST_BASIC 0x00000004 // Basic Mode
  6841. //*****************************************************************************
  6842. //
  6843. // The following are defines for the bit fields in the CAN_O_BRPE register.
  6844. //
  6845. //*****************************************************************************
  6846. #define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
  6847. #define CAN_BRPE_BRPE_S 0
  6848. //*****************************************************************************
  6849. //
  6850. // The following are defines for the bit fields in the CAN_O_IF1CRQ register.
  6851. //
  6852. //*****************************************************************************
  6853. #define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
  6854. #define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
  6855. #define CAN_IF1CRQ_MNUM_S 0
  6856. //*****************************************************************************
  6857. //
  6858. // The following are defines for the bit fields in the CAN_O_IF1CMSK register.
  6859. //
  6860. //*****************************************************************************
  6861. #define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
  6862. #define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
  6863. #define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
  6864. #define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
  6865. #define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  6866. #define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
  6867. #define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
  6868. #define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  6869. #define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  6870. //*****************************************************************************
  6871. //
  6872. // The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
  6873. //
  6874. //*****************************************************************************
  6875. #define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  6876. #define CAN_IF1MSK1_IDMSK_S 0
  6877. //*****************************************************************************
  6878. //
  6879. // The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
  6880. //
  6881. //*****************************************************************************
  6882. #define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
  6883. #define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
  6884. #define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  6885. #define CAN_IF1MSK2_IDMSK_S 0
  6886. //*****************************************************************************
  6887. //
  6888. // The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
  6889. //
  6890. //*****************************************************************************
  6891. #define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
  6892. #define CAN_IF1ARB1_ID_S 0
  6893. //*****************************************************************************
  6894. //
  6895. // The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
  6896. //
  6897. //*****************************************************************************
  6898. #define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
  6899. #define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
  6900. #define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
  6901. #define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
  6902. #define CAN_IF1ARB2_ID_S 0
  6903. //*****************************************************************************
  6904. //
  6905. // The following are defines for the bit fields in the CAN_O_IF1MCTL register.
  6906. //
  6907. //*****************************************************************************
  6908. #define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
  6909. #define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
  6910. #define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
  6911. #define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
  6912. #define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  6913. #define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  6914. #define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
  6915. #define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
  6916. #define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
  6917. #define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
  6918. #define CAN_IF1MCTL_DLC_S 0
  6919. //*****************************************************************************
  6920. //
  6921. // The following are defines for the bit fields in the CAN_O_IF1DA1 register.
  6922. //
  6923. //*****************************************************************************
  6924. #define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
  6925. #define CAN_IF1DA1_DATA_S 0
  6926. //*****************************************************************************
  6927. //
  6928. // The following are defines for the bit fields in the CAN_O_IF1DA2 register.
  6929. //
  6930. //*****************************************************************************
  6931. #define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
  6932. #define CAN_IF1DA2_DATA_S 0
  6933. //*****************************************************************************
  6934. //
  6935. // The following are defines for the bit fields in the CAN_O_IF1DB1 register.
  6936. //
  6937. //*****************************************************************************
  6938. #define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
  6939. #define CAN_IF1DB1_DATA_S 0
  6940. //*****************************************************************************
  6941. //
  6942. // The following are defines for the bit fields in the CAN_O_IF1DB2 register.
  6943. //
  6944. //*****************************************************************************
  6945. #define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
  6946. #define CAN_IF1DB2_DATA_S 0
  6947. //*****************************************************************************
  6948. //
  6949. // The following are defines for the bit fields in the CAN_O_IF2CRQ register.
  6950. //
  6951. //*****************************************************************************
  6952. #define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
  6953. #define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
  6954. #define CAN_IF2CRQ_MNUM_S 0
  6955. //*****************************************************************************
  6956. //
  6957. // The following are defines for the bit fields in the CAN_O_IF2CMSK register.
  6958. //
  6959. //*****************************************************************************
  6960. #define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
  6961. #define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
  6962. #define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
  6963. #define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
  6964. #define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
  6965. #define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
  6966. #define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
  6967. #define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
  6968. #define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
  6969. //*****************************************************************************
  6970. //
  6971. // The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
  6972. //
  6973. //*****************************************************************************
  6974. #define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
  6975. #define CAN_IF2MSK1_IDMSK_S 0
  6976. //*****************************************************************************
  6977. //
  6978. // The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
  6979. //
  6980. //*****************************************************************************
  6981. #define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
  6982. #define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
  6983. #define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
  6984. #define CAN_IF2MSK2_IDMSK_S 0
  6985. //*****************************************************************************
  6986. //
  6987. // The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
  6988. //
  6989. //*****************************************************************************
  6990. #define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
  6991. #define CAN_IF2ARB1_ID_S 0
  6992. //*****************************************************************************
  6993. //
  6994. // The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
  6995. //
  6996. //*****************************************************************************
  6997. #define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
  6998. #define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
  6999. #define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
  7000. #define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
  7001. #define CAN_IF2ARB2_ID_S 0
  7002. //*****************************************************************************
  7003. //
  7004. // The following are defines for the bit fields in the CAN_O_IF2MCTL register.
  7005. //
  7006. //*****************************************************************************
  7007. #define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
  7008. #define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
  7009. #define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
  7010. #define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
  7011. #define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
  7012. #define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
  7013. #define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
  7014. #define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
  7015. #define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
  7016. #define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
  7017. #define CAN_IF2MCTL_DLC_S 0
  7018. //*****************************************************************************
  7019. //
  7020. // The following are defines for the bit fields in the CAN_O_IF2DA1 register.
  7021. //
  7022. //*****************************************************************************
  7023. #define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
  7024. #define CAN_IF2DA1_DATA_S 0
  7025. //*****************************************************************************
  7026. //
  7027. // The following are defines for the bit fields in the CAN_O_IF2DA2 register.
  7028. //
  7029. //*****************************************************************************
  7030. #define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
  7031. #define CAN_IF2DA2_DATA_S 0
  7032. //*****************************************************************************
  7033. //
  7034. // The following are defines for the bit fields in the CAN_O_IF2DB1 register.
  7035. //
  7036. //*****************************************************************************
  7037. #define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
  7038. #define CAN_IF2DB1_DATA_S 0
  7039. //*****************************************************************************
  7040. //
  7041. // The following are defines for the bit fields in the CAN_O_IF2DB2 register.
  7042. //
  7043. //*****************************************************************************
  7044. #define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
  7045. #define CAN_IF2DB2_DATA_S 0
  7046. //*****************************************************************************
  7047. //
  7048. // The following are defines for the bit fields in the CAN_O_TXRQ1 register.
  7049. //
  7050. //*****************************************************************************
  7051. #define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
  7052. #define CAN_TXRQ1_TXRQST_S 0
  7053. //*****************************************************************************
  7054. //
  7055. // The following are defines for the bit fields in the CAN_O_TXRQ2 register.
  7056. //
  7057. //*****************************************************************************
  7058. #define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
  7059. #define CAN_TXRQ2_TXRQST_S 0
  7060. //*****************************************************************************
  7061. //
  7062. // The following are defines for the bit fields in the CAN_O_NWDA1 register.
  7063. //
  7064. //*****************************************************************************
  7065. #define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
  7066. #define CAN_NWDA1_NEWDAT_S 0
  7067. //*****************************************************************************
  7068. //
  7069. // The following are defines for the bit fields in the CAN_O_NWDA2 register.
  7070. //
  7071. //*****************************************************************************
  7072. #define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
  7073. #define CAN_NWDA2_NEWDAT_S 0
  7074. //*****************************************************************************
  7075. //
  7076. // The following are defines for the bit fields in the CAN_O_MSG1INT register.
  7077. //
  7078. //*****************************************************************************
  7079. #define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  7080. #define CAN_MSG1INT_INTPND_S 0
  7081. //*****************************************************************************
  7082. //
  7083. // The following are defines for the bit fields in the CAN_O_MSG2INT register.
  7084. //
  7085. //*****************************************************************************
  7086. #define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
  7087. #define CAN_MSG2INT_INTPND_S 0
  7088. //*****************************************************************************
  7089. //
  7090. // The following are defines for the bit fields in the CAN_O_MSG1VAL register.
  7091. //
  7092. //*****************************************************************************
  7093. #define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  7094. #define CAN_MSG1VAL_MSGVAL_S 0
  7095. //*****************************************************************************
  7096. //
  7097. // The following are defines for the bit fields in the CAN_O_MSG2VAL register.
  7098. //
  7099. //*****************************************************************************
  7100. #define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
  7101. #define CAN_MSG2VAL_MSGVAL_S 0
  7102. //*****************************************************************************
  7103. //
  7104. // The following are defines for the bit fields in the USB_O_FADDR register.
  7105. //
  7106. //*****************************************************************************
  7107. #define USB_FADDR_M 0x0000007F // Function Address
  7108. #define USB_FADDR_S 0
  7109. //*****************************************************************************
  7110. //
  7111. // The following are defines for the bit fields in the USB_O_POWER register.
  7112. //
  7113. //*****************************************************************************
  7114. #define USB_POWER_ISOUP 0x00000080 // Isochronous Update
  7115. #define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
  7116. #define USB_POWER_HSENAB 0x00000020 // High Speed Enable
  7117. #define USB_POWER_HSMODE 0x00000010 // High Speed Enable
  7118. #define USB_POWER_RESET 0x00000008 // RESET Signaling
  7119. #define USB_POWER_RESUME 0x00000004 // RESUME Signaling
  7120. #define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
  7121. #define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
  7122. //*****************************************************************************
  7123. //
  7124. // The following are defines for the bit fields in the USB_O_TXIS register.
  7125. //
  7126. //*****************************************************************************
  7127. #define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
  7128. #define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
  7129. #define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
  7130. #define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
  7131. #define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
  7132. #define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
  7133. #define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
  7134. #define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  7135. //*****************************************************************************
  7136. //
  7137. // The following are defines for the bit fields in the USB_O_RXIS register.
  7138. //
  7139. //*****************************************************************************
  7140. #define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
  7141. #define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
  7142. #define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
  7143. #define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
  7144. #define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
  7145. #define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
  7146. #define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
  7147. //*****************************************************************************
  7148. //
  7149. // The following are defines for the bit fields in the USB_O_TXIE register.
  7150. //
  7151. //*****************************************************************************
  7152. #define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
  7153. #define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
  7154. #define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
  7155. #define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
  7156. #define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
  7157. #define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
  7158. #define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
  7159. #define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  7160. // Enable
  7161. //*****************************************************************************
  7162. //
  7163. // The following are defines for the bit fields in the USB_O_RXIE register.
  7164. //
  7165. //*****************************************************************************
  7166. #define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
  7167. #define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
  7168. #define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
  7169. #define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
  7170. #define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
  7171. #define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
  7172. #define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
  7173. //*****************************************************************************
  7174. //
  7175. // The following are defines for the bit fields in the USB_O_IS register.
  7176. //
  7177. //*****************************************************************************
  7178. #define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
  7179. #define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
  7180. #define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
  7181. #define USB_IS_CONN 0x00000010 // Session Connect
  7182. #define USB_IS_SOF 0x00000008 // Start of Frame
  7183. #define USB_IS_BABBLE 0x00000004 // Babble Detected
  7184. #define USB_IS_RESET 0x00000004 // RESET Signaling Detected
  7185. #define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
  7186. #define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
  7187. //*****************************************************************************
  7188. //
  7189. // The following are defines for the bit fields in the USB_O_IE register.
  7190. //
  7191. //*****************************************************************************
  7192. #define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
  7193. // only)
  7194. #define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
  7195. // only)
  7196. #define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
  7197. #define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
  7198. #define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
  7199. #define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
  7200. #define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
  7201. #define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
  7202. #define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
  7203. //*****************************************************************************
  7204. //
  7205. // The following are defines for the bit fields in the USB_O_FRAME register.
  7206. //
  7207. //*****************************************************************************
  7208. #define USB_FRAME_M 0x000007FF // Frame Number
  7209. #define USB_FRAME_S 0
  7210. //*****************************************************************************
  7211. //
  7212. // The following are defines for the bit fields in the USB_O_EPIDX register.
  7213. //
  7214. //*****************************************************************************
  7215. #define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
  7216. #define USB_EPIDX_EPIDX_S 0
  7217. //*****************************************************************************
  7218. //
  7219. // The following are defines for the bit fields in the USB_O_TEST register.
  7220. //
  7221. //*****************************************************************************
  7222. #define USB_TEST_FORCEH 0x00000080 // Force Host Mode
  7223. #define USB_TEST_FIFOACC 0x00000040 // FIFO Access
  7224. #define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
  7225. #define USB_TEST_FORCEHS 0x00000010 // Force High-Speed Mode
  7226. #define USB_TEST_TESTPKT 0x00000008 // Test Packet Mode Enable
  7227. #define USB_TEST_TESTK 0x00000004 // Test_K Mode Enable
  7228. #define USB_TEST_TESTJ 0x00000002 // Test_J Mode Enable
  7229. #define USB_TEST_TESTSE0NAK 0x00000001 // Test_SE0_NAK Test Mode Enable
  7230. //*****************************************************************************
  7231. //
  7232. // The following are defines for the bit fields in the USB_O_FIFO0 register.
  7233. //
  7234. //*****************************************************************************
  7235. #define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7236. #define USB_FIFO0_EPDATA_S 0
  7237. //*****************************************************************************
  7238. //
  7239. // The following are defines for the bit fields in the USB_O_FIFO1 register.
  7240. //
  7241. //*****************************************************************************
  7242. #define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7243. #define USB_FIFO1_EPDATA_S 0
  7244. //*****************************************************************************
  7245. //
  7246. // The following are defines for the bit fields in the USB_O_FIFO2 register.
  7247. //
  7248. //*****************************************************************************
  7249. #define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7250. #define USB_FIFO2_EPDATA_S 0
  7251. //*****************************************************************************
  7252. //
  7253. // The following are defines for the bit fields in the USB_O_FIFO3 register.
  7254. //
  7255. //*****************************************************************************
  7256. #define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7257. #define USB_FIFO3_EPDATA_S 0
  7258. //*****************************************************************************
  7259. //
  7260. // The following are defines for the bit fields in the USB_O_FIFO4 register.
  7261. //
  7262. //*****************************************************************************
  7263. #define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7264. #define USB_FIFO4_EPDATA_S 0
  7265. //*****************************************************************************
  7266. //
  7267. // The following are defines for the bit fields in the USB_O_FIFO5 register.
  7268. //
  7269. //*****************************************************************************
  7270. #define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7271. #define USB_FIFO5_EPDATA_S 0
  7272. //*****************************************************************************
  7273. //
  7274. // The following are defines for the bit fields in the USB_O_FIFO6 register.
  7275. //
  7276. //*****************************************************************************
  7277. #define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7278. #define USB_FIFO6_EPDATA_S 0
  7279. //*****************************************************************************
  7280. //
  7281. // The following are defines for the bit fields in the USB_O_FIFO7 register.
  7282. //
  7283. //*****************************************************************************
  7284. #define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
  7285. #define USB_FIFO7_EPDATA_S 0
  7286. //*****************************************************************************
  7287. //
  7288. // The following are defines for the bit fields in the USB_O_DEVCTL register.
  7289. //
  7290. //*****************************************************************************
  7291. #define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
  7292. #define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
  7293. #define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
  7294. #define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
  7295. #define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
  7296. #define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
  7297. #define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
  7298. #define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
  7299. #define USB_DEVCTL_HOST 0x00000004 // Host Mode
  7300. #define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
  7301. #define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
  7302. //*****************************************************************************
  7303. //
  7304. // The following are defines for the bit fields in the USB_O_CCONF register.
  7305. //
  7306. //*****************************************************************************
  7307. #define USB_CCONF_TXEDMA 0x00000002 // TX Early DMA Enable
  7308. #define USB_CCONF_RXEDMA 0x00000001 // TX Early DMA Enable
  7309. //*****************************************************************************
  7310. //
  7311. // The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
  7312. //
  7313. //*****************************************************************************
  7314. #define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  7315. #define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  7316. #define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
  7317. #define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
  7318. #define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
  7319. #define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
  7320. #define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
  7321. #define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
  7322. #define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
  7323. #define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
  7324. #define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
  7325. //*****************************************************************************
  7326. //
  7327. // The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
  7328. //
  7329. //*****************************************************************************
  7330. #define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  7331. #define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  7332. #define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
  7333. #define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
  7334. #define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
  7335. #define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
  7336. #define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
  7337. #define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
  7338. #define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
  7339. #define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
  7340. #define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
  7341. //*****************************************************************************
  7342. //
  7343. // The following are defines for the bit fields in the USB_O_TXFIFOADD
  7344. // register.
  7345. //
  7346. //*****************************************************************************
  7347. #define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  7348. #define USB_TXFIFOADD_ADDR_S 0
  7349. //*****************************************************************************
  7350. //
  7351. // The following are defines for the bit fields in the USB_O_RXFIFOADD
  7352. // register.
  7353. //
  7354. //*****************************************************************************
  7355. #define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  7356. #define USB_RXFIFOADD_ADDR_S 0
  7357. //*****************************************************************************
  7358. //
  7359. // The following are defines for the bit fields in the USB_O_ULPIVBUSCTL
  7360. // register.
  7361. //
  7362. //*****************************************************************************
  7363. #define USB_ULPIVBUSCTL_USEEXTVBUSIND \
  7364. 0x00000002 // Use External VBUS Indicator
  7365. #define USB_ULPIVBUSCTL_USEEXTVBUS \
  7366. 0x00000001 // Use External VBUS
  7367. //*****************************************************************************
  7368. //
  7369. // The following are defines for the bit fields in the USB_O_ULPIREGDATA
  7370. // register.
  7371. //
  7372. //*****************************************************************************
  7373. #define USB_ULPIREGDATA_REGDATA_M \
  7374. 0x000000FF // Register Data
  7375. #define USB_ULPIREGDATA_REGDATA_S \
  7376. 0
  7377. //*****************************************************************************
  7378. //
  7379. // The following are defines for the bit fields in the USB_O_ULPIREGADDR
  7380. // register.
  7381. //
  7382. //*****************************************************************************
  7383. #define USB_ULPIREGADDR_ADDR_M 0x000000FF // Register Address
  7384. #define USB_ULPIREGADDR_ADDR_S 0
  7385. //*****************************************************************************
  7386. //
  7387. // The following are defines for the bit fields in the USB_O_ULPIREGCTL
  7388. // register.
  7389. //
  7390. //*****************************************************************************
  7391. #define USB_ULPIREGCTL_RDWR 0x00000004 // Read/Write Control
  7392. #define USB_ULPIREGCTL_REGCMPLT 0x00000002 // Register Access Complete
  7393. #define USB_ULPIREGCTL_REGACC 0x00000001 // Initiate Register Access
  7394. //*****************************************************************************
  7395. //
  7396. // The following are defines for the bit fields in the USB_O_EPINFO register.
  7397. //
  7398. //*****************************************************************************
  7399. #define USB_EPINFO_RXEP_M 0x000000F0 // RX Endpoints
  7400. #define USB_EPINFO_TXEP_M 0x0000000F // TX Endpoints
  7401. #define USB_EPINFO_RXEP_S 4
  7402. #define USB_EPINFO_TXEP_S 0
  7403. //*****************************************************************************
  7404. //
  7405. // The following are defines for the bit fields in the USB_O_RAMINFO register.
  7406. //
  7407. //*****************************************************************************
  7408. #define USB_RAMINFO_DMACHAN_M 0x000000F0 // DMA Channels
  7409. #define USB_RAMINFO_RAMBITS_M 0x0000000F // RAM Address Bus Width
  7410. #define USB_RAMINFO_DMACHAN_S 4
  7411. #define USB_RAMINFO_RAMBITS_S 0
  7412. //*****************************************************************************
  7413. //
  7414. // The following are defines for the bit fields in the USB_O_CONTIM register.
  7415. //
  7416. //*****************************************************************************
  7417. #define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
  7418. #define USB_CONTIM_WTID_M 0x0000000F // Wait ID
  7419. #define USB_CONTIM_WTCON_S 4
  7420. #define USB_CONTIM_WTID_S 0
  7421. //*****************************************************************************
  7422. //
  7423. // The following are defines for the bit fields in the USB_O_VPLEN register.
  7424. //
  7425. //*****************************************************************************
  7426. #define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
  7427. #define USB_VPLEN_VPLEN_S 0
  7428. //*****************************************************************************
  7429. //
  7430. // The following are defines for the bit fields in the USB_O_HSEOF register.
  7431. //
  7432. //*****************************************************************************
  7433. #define USB_HSEOF_HSEOFG_M 0x000000FF // HIgh-Speed End-of-Frame Gap
  7434. #define USB_HSEOF_HSEOFG_S 0
  7435. //*****************************************************************************
  7436. //
  7437. // The following are defines for the bit fields in the USB_O_FSEOF register.
  7438. //
  7439. //*****************************************************************************
  7440. #define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
  7441. #define USB_FSEOF_FSEOFG_S 0
  7442. //*****************************************************************************
  7443. //
  7444. // The following are defines for the bit fields in the USB_O_LSEOF register.
  7445. //
  7446. //*****************************************************************************
  7447. #define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
  7448. #define USB_LSEOF_LSEOFG_S 0
  7449. //*****************************************************************************
  7450. //
  7451. // The following are defines for the bit fields in the USB_O_TXFUNCADDR0
  7452. // register.
  7453. //
  7454. //*****************************************************************************
  7455. #define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
  7456. #define USB_TXFUNCADDR0_ADDR_S 0
  7457. //*****************************************************************************
  7458. //
  7459. // The following are defines for the bit fields in the USB_O_TXHUBADDR0
  7460. // register.
  7461. //
  7462. //*****************************************************************************
  7463. #define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
  7464. #define USB_TXHUBADDR0_ADDR_S 0
  7465. //*****************************************************************************
  7466. //
  7467. // The following are defines for the bit fields in the USB_O_TXHUBPORT0
  7468. // register.
  7469. //
  7470. //*****************************************************************************
  7471. #define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
  7472. #define USB_TXHUBPORT0_PORT_S 0
  7473. //*****************************************************************************
  7474. //
  7475. // The following are defines for the bit fields in the USB_O_TXFUNCADDR1
  7476. // register.
  7477. //
  7478. //*****************************************************************************
  7479. #define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  7480. #define USB_TXFUNCADDR1_ADDR_S 0
  7481. //*****************************************************************************
  7482. //
  7483. // The following are defines for the bit fields in the USB_O_TXHUBADDR1
  7484. // register.
  7485. //
  7486. //*****************************************************************************
  7487. #define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  7488. #define USB_TXHUBADDR1_ADDR_S 0
  7489. //*****************************************************************************
  7490. //
  7491. // The following are defines for the bit fields in the USB_O_TXHUBPORT1
  7492. // register.
  7493. //
  7494. //*****************************************************************************
  7495. #define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
  7496. #define USB_TXHUBPORT1_PORT_S 0
  7497. //*****************************************************************************
  7498. //
  7499. // The following are defines for the bit fields in the USB_O_RXFUNCADDR1
  7500. // register.
  7501. //
  7502. //*****************************************************************************
  7503. #define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  7504. #define USB_RXFUNCADDR1_ADDR_S 0
  7505. //*****************************************************************************
  7506. //
  7507. // The following are defines for the bit fields in the USB_O_RXHUBADDR1
  7508. // register.
  7509. //
  7510. //*****************************************************************************
  7511. #define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  7512. #define USB_RXHUBADDR1_ADDR_S 0
  7513. //*****************************************************************************
  7514. //
  7515. // The following are defines for the bit fields in the USB_O_RXHUBPORT1
  7516. // register.
  7517. //
  7518. //*****************************************************************************
  7519. #define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
  7520. #define USB_RXHUBPORT1_PORT_S 0
  7521. //*****************************************************************************
  7522. //
  7523. // The following are defines for the bit fields in the USB_O_TXFUNCADDR2
  7524. // register.
  7525. //
  7526. //*****************************************************************************
  7527. #define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  7528. #define USB_TXFUNCADDR2_ADDR_S 0
  7529. //*****************************************************************************
  7530. //
  7531. // The following are defines for the bit fields in the USB_O_TXHUBADDR2
  7532. // register.
  7533. //
  7534. //*****************************************************************************
  7535. #define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  7536. #define USB_TXHUBADDR2_ADDR_S 0
  7537. //*****************************************************************************
  7538. //
  7539. // The following are defines for the bit fields in the USB_O_TXHUBPORT2
  7540. // register.
  7541. //
  7542. //*****************************************************************************
  7543. #define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
  7544. #define USB_TXHUBPORT2_PORT_S 0
  7545. //*****************************************************************************
  7546. //
  7547. // The following are defines for the bit fields in the USB_O_RXFUNCADDR2
  7548. // register.
  7549. //
  7550. //*****************************************************************************
  7551. #define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  7552. #define USB_RXFUNCADDR2_ADDR_S 0
  7553. //*****************************************************************************
  7554. //
  7555. // The following are defines for the bit fields in the USB_O_RXHUBADDR2
  7556. // register.
  7557. //
  7558. //*****************************************************************************
  7559. #define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  7560. #define USB_RXHUBADDR2_ADDR_S 0
  7561. //*****************************************************************************
  7562. //
  7563. // The following are defines for the bit fields in the USB_O_RXHUBPORT2
  7564. // register.
  7565. //
  7566. //*****************************************************************************
  7567. #define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
  7568. #define USB_RXHUBPORT2_PORT_S 0
  7569. //*****************************************************************************
  7570. //
  7571. // The following are defines for the bit fields in the USB_O_TXFUNCADDR3
  7572. // register.
  7573. //
  7574. //*****************************************************************************
  7575. #define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  7576. #define USB_TXFUNCADDR3_ADDR_S 0
  7577. //*****************************************************************************
  7578. //
  7579. // The following are defines for the bit fields in the USB_O_TXHUBADDR3
  7580. // register.
  7581. //
  7582. //*****************************************************************************
  7583. #define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  7584. #define USB_TXHUBADDR3_ADDR_S 0
  7585. //*****************************************************************************
  7586. //
  7587. // The following are defines for the bit fields in the USB_O_TXHUBPORT3
  7588. // register.
  7589. //
  7590. //*****************************************************************************
  7591. #define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
  7592. #define USB_TXHUBPORT3_PORT_S 0
  7593. //*****************************************************************************
  7594. //
  7595. // The following are defines for the bit fields in the USB_O_RXFUNCADDR3
  7596. // register.
  7597. //
  7598. //*****************************************************************************
  7599. #define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  7600. #define USB_RXFUNCADDR3_ADDR_S 0
  7601. //*****************************************************************************
  7602. //
  7603. // The following are defines for the bit fields in the USB_O_RXHUBADDR3
  7604. // register.
  7605. //
  7606. //*****************************************************************************
  7607. #define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  7608. #define USB_RXHUBADDR3_ADDR_S 0
  7609. //*****************************************************************************
  7610. //
  7611. // The following are defines for the bit fields in the USB_O_RXHUBPORT3
  7612. // register.
  7613. //
  7614. //*****************************************************************************
  7615. #define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
  7616. #define USB_RXHUBPORT3_PORT_S 0
  7617. //*****************************************************************************
  7618. //
  7619. // The following are defines for the bit fields in the USB_O_TXFUNCADDR4
  7620. // register.
  7621. //
  7622. //*****************************************************************************
  7623. #define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  7624. #define USB_TXFUNCADDR4_ADDR_S 0
  7625. //*****************************************************************************
  7626. //
  7627. // The following are defines for the bit fields in the USB_O_TXHUBADDR4
  7628. // register.
  7629. //
  7630. //*****************************************************************************
  7631. #define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  7632. #define USB_TXHUBADDR4_ADDR_S 0
  7633. //*****************************************************************************
  7634. //
  7635. // The following are defines for the bit fields in the USB_O_TXHUBPORT4
  7636. // register.
  7637. //
  7638. //*****************************************************************************
  7639. #define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
  7640. #define USB_TXHUBPORT4_PORT_S 0
  7641. //*****************************************************************************
  7642. //
  7643. // The following are defines for the bit fields in the USB_O_RXFUNCADDR4
  7644. // register.
  7645. //
  7646. //*****************************************************************************
  7647. #define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  7648. #define USB_RXFUNCADDR4_ADDR_S 0
  7649. //*****************************************************************************
  7650. //
  7651. // The following are defines for the bit fields in the USB_O_RXHUBADDR4
  7652. // register.
  7653. //
  7654. //*****************************************************************************
  7655. #define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  7656. #define USB_RXHUBADDR4_ADDR_S 0
  7657. //*****************************************************************************
  7658. //
  7659. // The following are defines for the bit fields in the USB_O_RXHUBPORT4
  7660. // register.
  7661. //
  7662. //*****************************************************************************
  7663. #define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
  7664. #define USB_RXHUBPORT4_PORT_S 0
  7665. //*****************************************************************************
  7666. //
  7667. // The following are defines for the bit fields in the USB_O_TXFUNCADDR5
  7668. // register.
  7669. //
  7670. //*****************************************************************************
  7671. #define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  7672. #define USB_TXFUNCADDR5_ADDR_S 0
  7673. //*****************************************************************************
  7674. //
  7675. // The following are defines for the bit fields in the USB_O_TXHUBADDR5
  7676. // register.
  7677. //
  7678. //*****************************************************************************
  7679. #define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  7680. #define USB_TXHUBADDR5_ADDR_S 0
  7681. //*****************************************************************************
  7682. //
  7683. // The following are defines for the bit fields in the USB_O_TXHUBPORT5
  7684. // register.
  7685. //
  7686. //*****************************************************************************
  7687. #define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
  7688. #define USB_TXHUBPORT5_PORT_S 0
  7689. //*****************************************************************************
  7690. //
  7691. // The following are defines for the bit fields in the USB_O_RXFUNCADDR5
  7692. // register.
  7693. //
  7694. //*****************************************************************************
  7695. #define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  7696. #define USB_RXFUNCADDR5_ADDR_S 0
  7697. //*****************************************************************************
  7698. //
  7699. // The following are defines for the bit fields in the USB_O_RXHUBADDR5
  7700. // register.
  7701. //
  7702. //*****************************************************************************
  7703. #define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  7704. #define USB_RXHUBADDR5_ADDR_S 0
  7705. //*****************************************************************************
  7706. //
  7707. // The following are defines for the bit fields in the USB_O_RXHUBPORT5
  7708. // register.
  7709. //
  7710. //*****************************************************************************
  7711. #define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
  7712. #define USB_RXHUBPORT5_PORT_S 0
  7713. //*****************************************************************************
  7714. //
  7715. // The following are defines for the bit fields in the USB_O_TXFUNCADDR6
  7716. // register.
  7717. //
  7718. //*****************************************************************************
  7719. #define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  7720. #define USB_TXFUNCADDR6_ADDR_S 0
  7721. //*****************************************************************************
  7722. //
  7723. // The following are defines for the bit fields in the USB_O_TXHUBADDR6
  7724. // register.
  7725. //
  7726. //*****************************************************************************
  7727. #define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  7728. #define USB_TXHUBADDR6_ADDR_S 0
  7729. //*****************************************************************************
  7730. //
  7731. // The following are defines for the bit fields in the USB_O_TXHUBPORT6
  7732. // register.
  7733. //
  7734. //*****************************************************************************
  7735. #define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
  7736. #define USB_TXHUBPORT6_PORT_S 0
  7737. //*****************************************************************************
  7738. //
  7739. // The following are defines for the bit fields in the USB_O_RXFUNCADDR6
  7740. // register.
  7741. //
  7742. //*****************************************************************************
  7743. #define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  7744. #define USB_RXFUNCADDR6_ADDR_S 0
  7745. //*****************************************************************************
  7746. //
  7747. // The following are defines for the bit fields in the USB_O_RXHUBADDR6
  7748. // register.
  7749. //
  7750. //*****************************************************************************
  7751. #define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  7752. #define USB_RXHUBADDR6_ADDR_S 0
  7753. //*****************************************************************************
  7754. //
  7755. // The following are defines for the bit fields in the USB_O_RXHUBPORT6
  7756. // register.
  7757. //
  7758. //*****************************************************************************
  7759. #define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
  7760. #define USB_RXHUBPORT6_PORT_S 0
  7761. //*****************************************************************************
  7762. //
  7763. // The following are defines for the bit fields in the USB_O_TXFUNCADDR7
  7764. // register.
  7765. //
  7766. //*****************************************************************************
  7767. #define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  7768. #define USB_TXFUNCADDR7_ADDR_S 0
  7769. //*****************************************************************************
  7770. //
  7771. // The following are defines for the bit fields in the USB_O_TXHUBADDR7
  7772. // register.
  7773. //
  7774. //*****************************************************************************
  7775. #define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  7776. #define USB_TXHUBADDR7_ADDR_S 0
  7777. //*****************************************************************************
  7778. //
  7779. // The following are defines for the bit fields in the USB_O_TXHUBPORT7
  7780. // register.
  7781. //
  7782. //*****************************************************************************
  7783. #define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
  7784. #define USB_TXHUBPORT7_PORT_S 0
  7785. //*****************************************************************************
  7786. //
  7787. // The following are defines for the bit fields in the USB_O_RXFUNCADDR7
  7788. // register.
  7789. //
  7790. //*****************************************************************************
  7791. #define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  7792. #define USB_RXFUNCADDR7_ADDR_S 0
  7793. //*****************************************************************************
  7794. //
  7795. // The following are defines for the bit fields in the USB_O_RXHUBADDR7
  7796. // register.
  7797. //
  7798. //*****************************************************************************
  7799. #define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  7800. #define USB_RXHUBADDR7_ADDR_S 0
  7801. //*****************************************************************************
  7802. //
  7803. // The following are defines for the bit fields in the USB_O_RXHUBPORT7
  7804. // register.
  7805. //
  7806. //*****************************************************************************
  7807. #define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
  7808. #define USB_RXHUBPORT7_PORT_S 0
  7809. //*****************************************************************************
  7810. //
  7811. // The following are defines for the bit fields in the USB_O_CSRL0 register.
  7812. //
  7813. //*****************************************************************************
  7814. #define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
  7815. #define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
  7816. #define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
  7817. #define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
  7818. #define USB_CSRL0_REQPKT 0x00000020 // Request Packet
  7819. #define USB_CSRL0_STALL 0x00000020 // Send Stall
  7820. #define USB_CSRL0_SETEND 0x00000010 // Setup End
  7821. #define USB_CSRL0_ERROR 0x00000010 // Error
  7822. #define USB_CSRL0_DATAEND 0x00000008 // Data End
  7823. #define USB_CSRL0_SETUP 0x00000008 // Setup Packet
  7824. #define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
  7825. #define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
  7826. #define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
  7827. //*****************************************************************************
  7828. //
  7829. // The following are defines for the bit fields in the USB_O_CSRH0 register.
  7830. //
  7831. //*****************************************************************************
  7832. #define USB_CSRH0_DISPING 0x00000008 // PING Disable
  7833. #define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
  7834. #define USB_CSRH0_DT 0x00000002 // Data Toggle
  7835. #define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
  7836. //*****************************************************************************
  7837. //
  7838. // The following are defines for the bit fields in the USB_O_COUNT0 register.
  7839. //
  7840. //*****************************************************************************
  7841. #define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
  7842. #define USB_COUNT0_COUNT_S 0
  7843. //*****************************************************************************
  7844. //
  7845. // The following are defines for the bit fields in the USB_O_TYPE0 register.
  7846. //
  7847. //*****************************************************************************
  7848. #define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
  7849. #define USB_TYPE0_SPEED_HIGH 0x00000040 // High
  7850. #define USB_TYPE0_SPEED_FULL 0x00000080 // Full
  7851. #define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
  7852. //*****************************************************************************
  7853. //
  7854. // The following are defines for the bit fields in the USB_O_NAKLMT register.
  7855. //
  7856. //*****************************************************************************
  7857. #define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
  7858. #define USB_NAKLMT_NAKLMT_S 0
  7859. //*****************************************************************************
  7860. //
  7861. // The following are defines for the bit fields in the USB_O_TXMAXP1 register.
  7862. //
  7863. //*****************************************************************************
  7864. #define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  7865. #define USB_TXMAXP1_MAXLOAD_S 0
  7866. //*****************************************************************************
  7867. //
  7868. // The following are defines for the bit fields in the USB_O_TXCSRL1 register.
  7869. //
  7870. //*****************************************************************************
  7871. #define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
  7872. #define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
  7873. #define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
  7874. #define USB_TXCSRL1_STALL 0x00000010 // Send STALL
  7875. #define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
  7876. #define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
  7877. #define USB_TXCSRL1_ERROR 0x00000004 // Error
  7878. #define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
  7879. #define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
  7880. #define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
  7881. //*****************************************************************************
  7882. //
  7883. // The following are defines for the bit fields in the USB_O_TXCSRH1 register.
  7884. //
  7885. //*****************************************************************************
  7886. #define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
  7887. #define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
  7888. #define USB_TXCSRH1_MODE 0x00000020 // Mode
  7889. #define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
  7890. #define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
  7891. #define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
  7892. #define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
  7893. #define USB_TXCSRH1_DT 0x00000001 // Data Toggle
  7894. //*****************************************************************************
  7895. //
  7896. // The following are defines for the bit fields in the USB_O_RXMAXP1 register.
  7897. //
  7898. //*****************************************************************************
  7899. #define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  7900. #define USB_RXMAXP1_MAXLOAD_S 0
  7901. //*****************************************************************************
  7902. //
  7903. // The following are defines for the bit fields in the USB_O_RXCSRL1 register.
  7904. //
  7905. //*****************************************************************************
  7906. #define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
  7907. #define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
  7908. #define USB_RXCSRL1_STALL 0x00000020 // Send STALL
  7909. #define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
  7910. #define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
  7911. #define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
  7912. #define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
  7913. #define USB_RXCSRL1_OVER 0x00000004 // Overrun
  7914. #define USB_RXCSRL1_ERROR 0x00000004 // Error
  7915. #define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
  7916. #define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
  7917. //*****************************************************************************
  7918. //
  7919. // The following are defines for the bit fields in the USB_O_RXCSRH1 register.
  7920. //
  7921. //*****************************************************************************
  7922. #define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
  7923. #define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
  7924. #define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
  7925. #define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
  7926. #define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
  7927. #define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
  7928. #define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
  7929. #define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
  7930. #define USB_RXCSRH1_DT 0x00000002 // Data Toggle
  7931. #define USB_RXCSRH1_INCOMPRX 0x00000001 // Incomplete RX Transmission
  7932. // Status
  7933. //*****************************************************************************
  7934. //
  7935. // The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
  7936. //
  7937. //*****************************************************************************
  7938. #define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
  7939. #define USB_RXCOUNT1_COUNT_S 0
  7940. //*****************************************************************************
  7941. //
  7942. // The following are defines for the bit fields in the USB_O_TXTYPE1 register.
  7943. //
  7944. //*****************************************************************************
  7945. #define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  7946. #define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
  7947. #define USB_TXTYPE1_SPEED_HIGH 0x00000040 // High
  7948. #define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
  7949. #define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
  7950. #define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
  7951. #define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
  7952. #define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  7953. #define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
  7954. #define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
  7955. #define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  7956. #define USB_TXTYPE1_TEP_S 0
  7957. //*****************************************************************************
  7958. //
  7959. // The following are defines for the bit fields in the USB_O_TXINTERVAL1
  7960. // register.
  7961. //
  7962. //*****************************************************************************
  7963. #define USB_TXINTERVAL1_NAKLMT_M \
  7964. 0x000000FF // NAK Limit
  7965. #define USB_TXINTERVAL1_TXPOLL_M \
  7966. 0x000000FF // TX Polling
  7967. #define USB_TXINTERVAL1_TXPOLL_S \
  7968. 0
  7969. #define USB_TXINTERVAL1_NAKLMT_S \
  7970. 0
  7971. //*****************************************************************************
  7972. //
  7973. // The following are defines for the bit fields in the USB_O_RXTYPE1 register.
  7974. //
  7975. //*****************************************************************************
  7976. #define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  7977. #define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
  7978. #define USB_RXTYPE1_SPEED_HIGH 0x00000040 // High
  7979. #define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
  7980. #define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
  7981. #define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
  7982. #define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
  7983. #define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  7984. #define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
  7985. #define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
  7986. #define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  7987. #define USB_RXTYPE1_TEP_S 0
  7988. //*****************************************************************************
  7989. //
  7990. // The following are defines for the bit fields in the USB_O_RXINTERVAL1
  7991. // register.
  7992. //
  7993. //*****************************************************************************
  7994. #define USB_RXINTERVAL1_TXPOLL_M \
  7995. 0x000000FF // RX Polling
  7996. #define USB_RXINTERVAL1_NAKLMT_M \
  7997. 0x000000FF // NAK Limit
  7998. #define USB_RXINTERVAL1_TXPOLL_S \
  7999. 0
  8000. #define USB_RXINTERVAL1_NAKLMT_S \
  8001. 0
  8002. //*****************************************************************************
  8003. //
  8004. // The following are defines for the bit fields in the USB_O_TXMAXP2 register.
  8005. //
  8006. //*****************************************************************************
  8007. #define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  8008. #define USB_TXMAXP2_MAXLOAD_S 0
  8009. //*****************************************************************************
  8010. //
  8011. // The following are defines for the bit fields in the USB_O_TXCSRL2 register.
  8012. //
  8013. //*****************************************************************************
  8014. #define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
  8015. #define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
  8016. #define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
  8017. #define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
  8018. #define USB_TXCSRL2_STALL 0x00000010 // Send STALL
  8019. #define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
  8020. #define USB_TXCSRL2_ERROR 0x00000004 // Error
  8021. #define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
  8022. #define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
  8023. #define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
  8024. //*****************************************************************************
  8025. //
  8026. // The following are defines for the bit fields in the USB_O_TXCSRH2 register.
  8027. //
  8028. //*****************************************************************************
  8029. #define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
  8030. #define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
  8031. #define USB_TXCSRH2_MODE 0x00000020 // Mode
  8032. #define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
  8033. #define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
  8034. #define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
  8035. #define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
  8036. #define USB_TXCSRH2_DT 0x00000001 // Data Toggle
  8037. //*****************************************************************************
  8038. //
  8039. // The following are defines for the bit fields in the USB_O_RXMAXP2 register.
  8040. //
  8041. //*****************************************************************************
  8042. #define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  8043. #define USB_RXMAXP2_MAXLOAD_S 0
  8044. //*****************************************************************************
  8045. //
  8046. // The following are defines for the bit fields in the USB_O_RXCSRL2 register.
  8047. //
  8048. //*****************************************************************************
  8049. #define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
  8050. #define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
  8051. #define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
  8052. #define USB_RXCSRL2_STALL 0x00000020 // Send STALL
  8053. #define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
  8054. #define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
  8055. #define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
  8056. #define USB_RXCSRL2_ERROR 0x00000004 // Error
  8057. #define USB_RXCSRL2_OVER 0x00000004 // Overrun
  8058. #define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
  8059. #define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
  8060. //*****************************************************************************
  8061. //
  8062. // The following are defines for the bit fields in the USB_O_RXCSRH2 register.
  8063. //
  8064. //*****************************************************************************
  8065. #define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
  8066. #define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
  8067. #define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
  8068. #define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
  8069. #define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
  8070. #define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
  8071. #define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
  8072. #define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
  8073. #define USB_RXCSRH2_DT 0x00000002 // Data Toggle
  8074. #define USB_RXCSRH2_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8075. // Status
  8076. //*****************************************************************************
  8077. //
  8078. // The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
  8079. //
  8080. //*****************************************************************************
  8081. #define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
  8082. #define USB_RXCOUNT2_COUNT_S 0
  8083. //*****************************************************************************
  8084. //
  8085. // The following are defines for the bit fields in the USB_O_TXTYPE2 register.
  8086. //
  8087. //*****************************************************************************
  8088. #define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  8089. #define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
  8090. #define USB_TXTYPE2_SPEED_HIGH 0x00000040 // High
  8091. #define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
  8092. #define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
  8093. #define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
  8094. #define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
  8095. #define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  8096. #define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
  8097. #define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
  8098. #define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  8099. #define USB_TXTYPE2_TEP_S 0
  8100. //*****************************************************************************
  8101. //
  8102. // The following are defines for the bit fields in the USB_O_TXINTERVAL2
  8103. // register.
  8104. //
  8105. //*****************************************************************************
  8106. #define USB_TXINTERVAL2_TXPOLL_M \
  8107. 0x000000FF // TX Polling
  8108. #define USB_TXINTERVAL2_NAKLMT_M \
  8109. 0x000000FF // NAK Limit
  8110. #define USB_TXINTERVAL2_NAKLMT_S \
  8111. 0
  8112. #define USB_TXINTERVAL2_TXPOLL_S \
  8113. 0
  8114. //*****************************************************************************
  8115. //
  8116. // The following are defines for the bit fields in the USB_O_RXTYPE2 register.
  8117. //
  8118. //*****************************************************************************
  8119. #define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  8120. #define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
  8121. #define USB_RXTYPE2_SPEED_HIGH 0x00000040 // High
  8122. #define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
  8123. #define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
  8124. #define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
  8125. #define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
  8126. #define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  8127. #define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
  8128. #define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
  8129. #define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  8130. #define USB_RXTYPE2_TEP_S 0
  8131. //*****************************************************************************
  8132. //
  8133. // The following are defines for the bit fields in the USB_O_RXINTERVAL2
  8134. // register.
  8135. //
  8136. //*****************************************************************************
  8137. #define USB_RXINTERVAL2_TXPOLL_M \
  8138. 0x000000FF // RX Polling
  8139. #define USB_RXINTERVAL2_NAKLMT_M \
  8140. 0x000000FF // NAK Limit
  8141. #define USB_RXINTERVAL2_TXPOLL_S \
  8142. 0
  8143. #define USB_RXINTERVAL2_NAKLMT_S \
  8144. 0
  8145. //*****************************************************************************
  8146. //
  8147. // The following are defines for the bit fields in the USB_O_TXMAXP3 register.
  8148. //
  8149. //*****************************************************************************
  8150. #define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  8151. #define USB_TXMAXP3_MAXLOAD_S 0
  8152. //*****************************************************************************
  8153. //
  8154. // The following are defines for the bit fields in the USB_O_TXCSRL3 register.
  8155. //
  8156. //*****************************************************************************
  8157. #define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
  8158. #define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
  8159. #define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
  8160. #define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
  8161. #define USB_TXCSRL3_STALL 0x00000010 // Send STALL
  8162. #define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
  8163. #define USB_TXCSRL3_ERROR 0x00000004 // Error
  8164. #define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
  8165. #define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
  8166. #define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
  8167. //*****************************************************************************
  8168. //
  8169. // The following are defines for the bit fields in the USB_O_TXCSRH3 register.
  8170. //
  8171. //*****************************************************************************
  8172. #define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
  8173. #define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
  8174. #define USB_TXCSRH3_MODE 0x00000020 // Mode
  8175. #define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
  8176. #define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
  8177. #define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
  8178. #define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
  8179. #define USB_TXCSRH3_DT 0x00000001 // Data Toggle
  8180. //*****************************************************************************
  8181. //
  8182. // The following are defines for the bit fields in the USB_O_RXMAXP3 register.
  8183. //
  8184. //*****************************************************************************
  8185. #define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  8186. #define USB_RXMAXP3_MAXLOAD_S 0
  8187. //*****************************************************************************
  8188. //
  8189. // The following are defines for the bit fields in the USB_O_RXCSRL3 register.
  8190. //
  8191. //*****************************************************************************
  8192. #define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
  8193. #define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
  8194. #define USB_RXCSRL3_STALL 0x00000020 // Send STALL
  8195. #define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
  8196. #define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
  8197. #define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
  8198. #define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
  8199. #define USB_RXCSRL3_ERROR 0x00000004 // Error
  8200. #define USB_RXCSRL3_OVER 0x00000004 // Overrun
  8201. #define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
  8202. #define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
  8203. //*****************************************************************************
  8204. //
  8205. // The following are defines for the bit fields in the USB_O_RXCSRH3 register.
  8206. //
  8207. //*****************************************************************************
  8208. #define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
  8209. #define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
  8210. #define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
  8211. #define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
  8212. #define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
  8213. #define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
  8214. #define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
  8215. #define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
  8216. #define USB_RXCSRH3_DT 0x00000002 // Data Toggle
  8217. #define USB_RXCSRH3_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8218. // Status
  8219. //*****************************************************************************
  8220. //
  8221. // The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
  8222. //
  8223. //*****************************************************************************
  8224. #define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
  8225. #define USB_RXCOUNT3_COUNT_S 0
  8226. //*****************************************************************************
  8227. //
  8228. // The following are defines for the bit fields in the USB_O_TXTYPE3 register.
  8229. //
  8230. //*****************************************************************************
  8231. #define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  8232. #define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
  8233. #define USB_TXTYPE3_SPEED_HIGH 0x00000040 // High
  8234. #define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
  8235. #define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
  8236. #define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
  8237. #define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
  8238. #define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  8239. #define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
  8240. #define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
  8241. #define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  8242. #define USB_TXTYPE3_TEP_S 0
  8243. //*****************************************************************************
  8244. //
  8245. // The following are defines for the bit fields in the USB_O_TXINTERVAL3
  8246. // register.
  8247. //
  8248. //*****************************************************************************
  8249. #define USB_TXINTERVAL3_TXPOLL_M \
  8250. 0x000000FF // TX Polling
  8251. #define USB_TXINTERVAL3_NAKLMT_M \
  8252. 0x000000FF // NAK Limit
  8253. #define USB_TXINTERVAL3_TXPOLL_S \
  8254. 0
  8255. #define USB_TXINTERVAL3_NAKLMT_S \
  8256. 0
  8257. //*****************************************************************************
  8258. //
  8259. // The following are defines for the bit fields in the USB_O_RXTYPE3 register.
  8260. //
  8261. //*****************************************************************************
  8262. #define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  8263. #define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
  8264. #define USB_RXTYPE3_SPEED_HIGH 0x00000040 // High
  8265. #define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
  8266. #define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
  8267. #define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
  8268. #define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
  8269. #define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  8270. #define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
  8271. #define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
  8272. #define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  8273. #define USB_RXTYPE3_TEP_S 0
  8274. //*****************************************************************************
  8275. //
  8276. // The following are defines for the bit fields in the USB_O_RXINTERVAL3
  8277. // register.
  8278. //
  8279. //*****************************************************************************
  8280. #define USB_RXINTERVAL3_TXPOLL_M \
  8281. 0x000000FF // RX Polling
  8282. #define USB_RXINTERVAL3_NAKLMT_M \
  8283. 0x000000FF // NAK Limit
  8284. #define USB_RXINTERVAL3_TXPOLL_S \
  8285. 0
  8286. #define USB_RXINTERVAL3_NAKLMT_S \
  8287. 0
  8288. //*****************************************************************************
  8289. //
  8290. // The following are defines for the bit fields in the USB_O_TXMAXP4 register.
  8291. //
  8292. //*****************************************************************************
  8293. #define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  8294. #define USB_TXMAXP4_MAXLOAD_S 0
  8295. //*****************************************************************************
  8296. //
  8297. // The following are defines for the bit fields in the USB_O_TXCSRL4 register.
  8298. //
  8299. //*****************************************************************************
  8300. #define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
  8301. #define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
  8302. #define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
  8303. #define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
  8304. #define USB_TXCSRL4_STALL 0x00000010 // Send STALL
  8305. #define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
  8306. #define USB_TXCSRL4_ERROR 0x00000004 // Error
  8307. #define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
  8308. #define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
  8309. #define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
  8310. //*****************************************************************************
  8311. //
  8312. // The following are defines for the bit fields in the USB_O_TXCSRH4 register.
  8313. //
  8314. //*****************************************************************************
  8315. #define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
  8316. #define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
  8317. #define USB_TXCSRH4_MODE 0x00000020 // Mode
  8318. #define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
  8319. #define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
  8320. #define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
  8321. #define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
  8322. #define USB_TXCSRH4_DT 0x00000001 // Data Toggle
  8323. //*****************************************************************************
  8324. //
  8325. // The following are defines for the bit fields in the USB_O_RXMAXP4 register.
  8326. //
  8327. //*****************************************************************************
  8328. #define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  8329. #define USB_RXMAXP4_MAXLOAD_S 0
  8330. //*****************************************************************************
  8331. //
  8332. // The following are defines for the bit fields in the USB_O_RXCSRL4 register.
  8333. //
  8334. //*****************************************************************************
  8335. #define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
  8336. #define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
  8337. #define USB_RXCSRL4_STALL 0x00000020 // Send STALL
  8338. #define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
  8339. #define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
  8340. #define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
  8341. #define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
  8342. #define USB_RXCSRL4_OVER 0x00000004 // Overrun
  8343. #define USB_RXCSRL4_ERROR 0x00000004 // Error
  8344. #define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
  8345. #define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
  8346. //*****************************************************************************
  8347. //
  8348. // The following are defines for the bit fields in the USB_O_RXCSRH4 register.
  8349. //
  8350. //*****************************************************************************
  8351. #define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
  8352. #define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
  8353. #define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
  8354. #define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
  8355. #define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
  8356. #define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
  8357. #define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
  8358. #define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
  8359. #define USB_RXCSRH4_DT 0x00000002 // Data Toggle
  8360. #define USB_RXCSRH4_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8361. // Status
  8362. //*****************************************************************************
  8363. //
  8364. // The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
  8365. //
  8366. //*****************************************************************************
  8367. #define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
  8368. #define USB_RXCOUNT4_COUNT_S 0
  8369. //*****************************************************************************
  8370. //
  8371. // The following are defines for the bit fields in the USB_O_TXTYPE4 register.
  8372. //
  8373. //*****************************************************************************
  8374. #define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  8375. #define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
  8376. #define USB_TXTYPE4_SPEED_HIGH 0x00000040 // High
  8377. #define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
  8378. #define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
  8379. #define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
  8380. #define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
  8381. #define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  8382. #define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
  8383. #define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
  8384. #define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  8385. #define USB_TXTYPE4_TEP_S 0
  8386. //*****************************************************************************
  8387. //
  8388. // The following are defines for the bit fields in the USB_O_TXINTERVAL4
  8389. // register.
  8390. //
  8391. //*****************************************************************************
  8392. #define USB_TXINTERVAL4_TXPOLL_M \
  8393. 0x000000FF // TX Polling
  8394. #define USB_TXINTERVAL4_NAKLMT_M \
  8395. 0x000000FF // NAK Limit
  8396. #define USB_TXINTERVAL4_NAKLMT_S \
  8397. 0
  8398. #define USB_TXINTERVAL4_TXPOLL_S \
  8399. 0
  8400. //*****************************************************************************
  8401. //
  8402. // The following are defines for the bit fields in the USB_O_RXTYPE4 register.
  8403. //
  8404. //*****************************************************************************
  8405. #define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  8406. #define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
  8407. #define USB_RXTYPE4_SPEED_HIGH 0x00000040 // High
  8408. #define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
  8409. #define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
  8410. #define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
  8411. #define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
  8412. #define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  8413. #define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
  8414. #define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
  8415. #define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  8416. #define USB_RXTYPE4_TEP_S 0
  8417. //*****************************************************************************
  8418. //
  8419. // The following are defines for the bit fields in the USB_O_RXINTERVAL4
  8420. // register.
  8421. //
  8422. //*****************************************************************************
  8423. #define USB_RXINTERVAL4_TXPOLL_M \
  8424. 0x000000FF // RX Polling
  8425. #define USB_RXINTERVAL4_NAKLMT_M \
  8426. 0x000000FF // NAK Limit
  8427. #define USB_RXINTERVAL4_NAKLMT_S \
  8428. 0
  8429. #define USB_RXINTERVAL4_TXPOLL_S \
  8430. 0
  8431. //*****************************************************************************
  8432. //
  8433. // The following are defines for the bit fields in the USB_O_TXMAXP5 register.
  8434. //
  8435. //*****************************************************************************
  8436. #define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  8437. #define USB_TXMAXP5_MAXLOAD_S 0
  8438. //*****************************************************************************
  8439. //
  8440. // The following are defines for the bit fields in the USB_O_TXCSRL5 register.
  8441. //
  8442. //*****************************************************************************
  8443. #define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
  8444. #define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
  8445. #define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
  8446. #define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
  8447. #define USB_TXCSRL5_STALL 0x00000010 // Send STALL
  8448. #define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
  8449. #define USB_TXCSRL5_ERROR 0x00000004 // Error
  8450. #define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
  8451. #define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
  8452. #define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
  8453. //*****************************************************************************
  8454. //
  8455. // The following are defines for the bit fields in the USB_O_TXCSRH5 register.
  8456. //
  8457. //*****************************************************************************
  8458. #define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
  8459. #define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
  8460. #define USB_TXCSRH5_MODE 0x00000020 // Mode
  8461. #define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
  8462. #define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
  8463. #define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
  8464. #define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
  8465. #define USB_TXCSRH5_DT 0x00000001 // Data Toggle
  8466. //*****************************************************************************
  8467. //
  8468. // The following are defines for the bit fields in the USB_O_RXMAXP5 register.
  8469. //
  8470. //*****************************************************************************
  8471. #define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  8472. #define USB_RXMAXP5_MAXLOAD_S 0
  8473. //*****************************************************************************
  8474. //
  8475. // The following are defines for the bit fields in the USB_O_RXCSRL5 register.
  8476. //
  8477. //*****************************************************************************
  8478. #define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
  8479. #define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
  8480. #define USB_RXCSRL5_STALL 0x00000020 // Send STALL
  8481. #define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
  8482. #define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
  8483. #define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
  8484. #define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
  8485. #define USB_RXCSRL5_ERROR 0x00000004 // Error
  8486. #define USB_RXCSRL5_OVER 0x00000004 // Overrun
  8487. #define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
  8488. #define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
  8489. //*****************************************************************************
  8490. //
  8491. // The following are defines for the bit fields in the USB_O_RXCSRH5 register.
  8492. //
  8493. //*****************************************************************************
  8494. #define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
  8495. #define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
  8496. #define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
  8497. #define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
  8498. #define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
  8499. #define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
  8500. #define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
  8501. #define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
  8502. #define USB_RXCSRH5_DT 0x00000002 // Data Toggle
  8503. #define USB_RXCSRH5_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8504. // Status
  8505. //*****************************************************************************
  8506. //
  8507. // The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
  8508. //
  8509. //*****************************************************************************
  8510. #define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
  8511. #define USB_RXCOUNT5_COUNT_S 0
  8512. //*****************************************************************************
  8513. //
  8514. // The following are defines for the bit fields in the USB_O_TXTYPE5 register.
  8515. //
  8516. //*****************************************************************************
  8517. #define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  8518. #define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
  8519. #define USB_TXTYPE5_SPEED_HIGH 0x00000040 // High
  8520. #define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
  8521. #define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
  8522. #define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
  8523. #define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
  8524. #define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  8525. #define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
  8526. #define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
  8527. #define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  8528. #define USB_TXTYPE5_TEP_S 0
  8529. //*****************************************************************************
  8530. //
  8531. // The following are defines for the bit fields in the USB_O_TXINTERVAL5
  8532. // register.
  8533. //
  8534. //*****************************************************************************
  8535. #define USB_TXINTERVAL5_TXPOLL_M \
  8536. 0x000000FF // TX Polling
  8537. #define USB_TXINTERVAL5_NAKLMT_M \
  8538. 0x000000FF // NAK Limit
  8539. #define USB_TXINTERVAL5_NAKLMT_S \
  8540. 0
  8541. #define USB_TXINTERVAL5_TXPOLL_S \
  8542. 0
  8543. //*****************************************************************************
  8544. //
  8545. // The following are defines for the bit fields in the USB_O_RXTYPE5 register.
  8546. //
  8547. //*****************************************************************************
  8548. #define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  8549. #define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
  8550. #define USB_RXTYPE5_SPEED_HIGH 0x00000040 // High
  8551. #define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
  8552. #define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
  8553. #define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
  8554. #define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
  8555. #define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  8556. #define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
  8557. #define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
  8558. #define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  8559. #define USB_RXTYPE5_TEP_S 0
  8560. //*****************************************************************************
  8561. //
  8562. // The following are defines for the bit fields in the USB_O_RXINTERVAL5
  8563. // register.
  8564. //
  8565. //*****************************************************************************
  8566. #define USB_RXINTERVAL5_TXPOLL_M \
  8567. 0x000000FF // RX Polling
  8568. #define USB_RXINTERVAL5_NAKLMT_M \
  8569. 0x000000FF // NAK Limit
  8570. #define USB_RXINTERVAL5_TXPOLL_S \
  8571. 0
  8572. #define USB_RXINTERVAL5_NAKLMT_S \
  8573. 0
  8574. //*****************************************************************************
  8575. //
  8576. // The following are defines for the bit fields in the USB_O_TXMAXP6 register.
  8577. //
  8578. //*****************************************************************************
  8579. #define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  8580. #define USB_TXMAXP6_MAXLOAD_S 0
  8581. //*****************************************************************************
  8582. //
  8583. // The following are defines for the bit fields in the USB_O_TXCSRL6 register.
  8584. //
  8585. //*****************************************************************************
  8586. #define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
  8587. #define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
  8588. #define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
  8589. #define USB_TXCSRL6_STALL 0x00000010 // Send STALL
  8590. #define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
  8591. #define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
  8592. #define USB_TXCSRL6_ERROR 0x00000004 // Error
  8593. #define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
  8594. #define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
  8595. #define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
  8596. //*****************************************************************************
  8597. //
  8598. // The following are defines for the bit fields in the USB_O_TXCSRH6 register.
  8599. //
  8600. //*****************************************************************************
  8601. #define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
  8602. #define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
  8603. #define USB_TXCSRH6_MODE 0x00000020 // Mode
  8604. #define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
  8605. #define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
  8606. #define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
  8607. #define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
  8608. #define USB_TXCSRH6_DT 0x00000001 // Data Toggle
  8609. //*****************************************************************************
  8610. //
  8611. // The following are defines for the bit fields in the USB_O_RXMAXP6 register.
  8612. //
  8613. //*****************************************************************************
  8614. #define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  8615. #define USB_RXMAXP6_MAXLOAD_S 0
  8616. //*****************************************************************************
  8617. //
  8618. // The following are defines for the bit fields in the USB_O_RXCSRL6 register.
  8619. //
  8620. //*****************************************************************************
  8621. #define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
  8622. #define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
  8623. #define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
  8624. #define USB_RXCSRL6_STALL 0x00000020 // Send STALL
  8625. #define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
  8626. #define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
  8627. #define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
  8628. #define USB_RXCSRL6_ERROR 0x00000004 // Error
  8629. #define USB_RXCSRL6_OVER 0x00000004 // Overrun
  8630. #define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
  8631. #define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
  8632. //*****************************************************************************
  8633. //
  8634. // The following are defines for the bit fields in the USB_O_RXCSRH6 register.
  8635. //
  8636. //*****************************************************************************
  8637. #define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
  8638. #define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
  8639. #define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
  8640. #define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
  8641. #define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
  8642. #define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
  8643. #define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
  8644. #define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
  8645. #define USB_RXCSRH6_DT 0x00000002 // Data Toggle
  8646. #define USB_RXCSRH6_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8647. // Status
  8648. //*****************************************************************************
  8649. //
  8650. // The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
  8651. //
  8652. //*****************************************************************************
  8653. #define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
  8654. #define USB_RXCOUNT6_COUNT_S 0
  8655. //*****************************************************************************
  8656. //
  8657. // The following are defines for the bit fields in the USB_O_TXTYPE6 register.
  8658. //
  8659. //*****************************************************************************
  8660. #define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  8661. #define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
  8662. #define USB_TXTYPE6_SPEED_HIGH 0x00000040 // High
  8663. #define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
  8664. #define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
  8665. #define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
  8666. #define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
  8667. #define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  8668. #define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
  8669. #define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
  8670. #define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  8671. #define USB_TXTYPE6_TEP_S 0
  8672. //*****************************************************************************
  8673. //
  8674. // The following are defines for the bit fields in the USB_O_TXINTERVAL6
  8675. // register.
  8676. //
  8677. //*****************************************************************************
  8678. #define USB_TXINTERVAL6_TXPOLL_M \
  8679. 0x000000FF // TX Polling
  8680. #define USB_TXINTERVAL6_NAKLMT_M \
  8681. 0x000000FF // NAK Limit
  8682. #define USB_TXINTERVAL6_TXPOLL_S \
  8683. 0
  8684. #define USB_TXINTERVAL6_NAKLMT_S \
  8685. 0
  8686. //*****************************************************************************
  8687. //
  8688. // The following are defines for the bit fields in the USB_O_RXTYPE6 register.
  8689. //
  8690. //*****************************************************************************
  8691. #define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  8692. #define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
  8693. #define USB_RXTYPE6_SPEED_HIGH 0x00000040 // High
  8694. #define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
  8695. #define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
  8696. #define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
  8697. #define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
  8698. #define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  8699. #define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
  8700. #define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
  8701. #define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  8702. #define USB_RXTYPE6_TEP_S 0
  8703. //*****************************************************************************
  8704. //
  8705. // The following are defines for the bit fields in the USB_O_RXINTERVAL6
  8706. // register.
  8707. //
  8708. //*****************************************************************************
  8709. #define USB_RXINTERVAL6_TXPOLL_M \
  8710. 0x000000FF // RX Polling
  8711. #define USB_RXINTERVAL6_NAKLMT_M \
  8712. 0x000000FF // NAK Limit
  8713. #define USB_RXINTERVAL6_NAKLMT_S \
  8714. 0
  8715. #define USB_RXINTERVAL6_TXPOLL_S \
  8716. 0
  8717. //*****************************************************************************
  8718. //
  8719. // The following are defines for the bit fields in the USB_O_TXMAXP7 register.
  8720. //
  8721. //*****************************************************************************
  8722. #define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  8723. #define USB_TXMAXP7_MAXLOAD_S 0
  8724. //*****************************************************************************
  8725. //
  8726. // The following are defines for the bit fields in the USB_O_TXCSRL7 register.
  8727. //
  8728. //*****************************************************************************
  8729. #define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
  8730. #define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
  8731. #define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
  8732. #define USB_TXCSRL7_STALL 0x00000010 // Send STALL
  8733. #define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
  8734. #define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
  8735. #define USB_TXCSRL7_ERROR 0x00000004 // Error
  8736. #define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
  8737. #define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
  8738. #define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
  8739. //*****************************************************************************
  8740. //
  8741. // The following are defines for the bit fields in the USB_O_TXCSRH7 register.
  8742. //
  8743. //*****************************************************************************
  8744. #define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
  8745. #define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
  8746. #define USB_TXCSRH7_MODE 0x00000020 // Mode
  8747. #define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
  8748. #define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
  8749. #define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
  8750. #define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
  8751. #define USB_TXCSRH7_DT 0x00000001 // Data Toggle
  8752. //*****************************************************************************
  8753. //
  8754. // The following are defines for the bit fields in the USB_O_RXMAXP7 register.
  8755. //
  8756. //*****************************************************************************
  8757. #define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  8758. #define USB_RXMAXP7_MAXLOAD_S 0
  8759. //*****************************************************************************
  8760. //
  8761. // The following are defines for the bit fields in the USB_O_RXCSRL7 register.
  8762. //
  8763. //*****************************************************************************
  8764. #define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
  8765. #define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
  8766. #define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
  8767. #define USB_RXCSRL7_STALL 0x00000020 // Send STALL
  8768. #define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
  8769. #define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
  8770. #define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
  8771. #define USB_RXCSRL7_ERROR 0x00000004 // Error
  8772. #define USB_RXCSRL7_OVER 0x00000004 // Overrun
  8773. #define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
  8774. #define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
  8775. //*****************************************************************************
  8776. //
  8777. // The following are defines for the bit fields in the USB_O_RXCSRH7 register.
  8778. //
  8779. //*****************************************************************************
  8780. #define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
  8781. #define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
  8782. #define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
  8783. #define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
  8784. #define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
  8785. #define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
  8786. #define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
  8787. #define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
  8788. #define USB_RXCSRH7_DT 0x00000002 // Data Toggle
  8789. #define USB_RXCSRH7_INCOMPRX 0x00000001 // Incomplete RX Transmission
  8790. // Status
  8791. //*****************************************************************************
  8792. //
  8793. // The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
  8794. //
  8795. //*****************************************************************************
  8796. #define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
  8797. #define USB_RXCOUNT7_COUNT_S 0
  8798. //*****************************************************************************
  8799. //
  8800. // The following are defines for the bit fields in the USB_O_TXTYPE7 register.
  8801. //
  8802. //*****************************************************************************
  8803. #define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  8804. #define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
  8805. #define USB_TXTYPE7_SPEED_HIGH 0x00000040 // High
  8806. #define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
  8807. #define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
  8808. #define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
  8809. #define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
  8810. #define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  8811. #define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
  8812. #define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
  8813. #define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  8814. #define USB_TXTYPE7_TEP_S 0
  8815. //*****************************************************************************
  8816. //
  8817. // The following are defines for the bit fields in the USB_O_TXINTERVAL7
  8818. // register.
  8819. //
  8820. //*****************************************************************************
  8821. #define USB_TXINTERVAL7_TXPOLL_M \
  8822. 0x000000FF // TX Polling
  8823. #define USB_TXINTERVAL7_NAKLMT_M \
  8824. 0x000000FF // NAK Limit
  8825. #define USB_TXINTERVAL7_NAKLMT_S \
  8826. 0
  8827. #define USB_TXINTERVAL7_TXPOLL_S \
  8828. 0
  8829. //*****************************************************************************
  8830. //
  8831. // The following are defines for the bit fields in the USB_O_RXTYPE7 register.
  8832. //
  8833. //*****************************************************************************
  8834. #define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  8835. #define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
  8836. #define USB_RXTYPE7_SPEED_HIGH 0x00000040 // High
  8837. #define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
  8838. #define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
  8839. #define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
  8840. #define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
  8841. #define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  8842. #define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
  8843. #define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
  8844. #define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  8845. #define USB_RXTYPE7_TEP_S 0
  8846. //*****************************************************************************
  8847. //
  8848. // The following are defines for the bit fields in the USB_O_RXINTERVAL7
  8849. // register.
  8850. //
  8851. //*****************************************************************************
  8852. #define USB_RXINTERVAL7_TXPOLL_M \
  8853. 0x000000FF // RX Polling
  8854. #define USB_RXINTERVAL7_NAKLMT_M \
  8855. 0x000000FF // NAK Limit
  8856. #define USB_RXINTERVAL7_NAKLMT_S \
  8857. 0
  8858. #define USB_RXINTERVAL7_TXPOLL_S \
  8859. 0
  8860. //*****************************************************************************
  8861. //
  8862. // The following are defines for the bit fields in the USB_O_DMAINTR register.
  8863. //
  8864. //*****************************************************************************
  8865. #define USB_DMAINTR_CH7 0x00000080 // Channel 7 DMA Interrupt
  8866. #define USB_DMAINTR_CH6 0x00000040 // Channel 6 DMA Interrupt
  8867. #define USB_DMAINTR_CH5 0x00000020 // Channel 5 DMA Interrupt
  8868. #define USB_DMAINTR_CH4 0x00000010 // Channel 4 DMA Interrupt
  8869. #define USB_DMAINTR_CH3 0x00000008 // Channel 3 DMA Interrupt
  8870. #define USB_DMAINTR_CH2 0x00000004 // Channel 2 DMA Interrupt
  8871. #define USB_DMAINTR_CH1 0x00000002 // Channel 1 DMA Interrupt
  8872. #define USB_DMAINTR_CH0 0x00000001 // Channel 0 DMA Interrupt
  8873. //*****************************************************************************
  8874. //
  8875. // The following are defines for the bit fields in the USB_O_DMACTL0 register.
  8876. //
  8877. //*****************************************************************************
  8878. #define USB_DMACTL0_BRSTM_M 0x00000600 // Burst Mode
  8879. #define USB_DMACTL0_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  8880. #define USB_DMACTL0_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  8881. #define USB_DMACTL0_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  8882. // length
  8883. #define USB_DMACTL0_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  8884. // unspecified length
  8885. #define USB_DMACTL0_ERR 0x00000100 // Bus Error Bit
  8886. #define USB_DMACTL0_EP_M 0x000000F0 // Endpoint number
  8887. #define USB_DMACTL0_IE 0x00000008 // DMA Interrupt Enable
  8888. #define USB_DMACTL0_MODE 0x00000004 // DMA Transfer Mode
  8889. #define USB_DMACTL0_DIR 0x00000002 // DMA Direction
  8890. #define USB_DMACTL0_ENABLE 0x00000001 // DMA Transfer Enable
  8891. #define USB_DMACTL0_EP_S 4
  8892. //*****************************************************************************
  8893. //
  8894. // The following are defines for the bit fields in the USB_O_DMAADDR0 register.
  8895. //
  8896. //*****************************************************************************
  8897. #define USB_DMAADDR0_ADDR_M 0xFFFFFFFC // DMA Address
  8898. #define USB_DMAADDR0_ADDR_S 2
  8899. //*****************************************************************************
  8900. //
  8901. // The following are defines for the bit fields in the USB_O_DMACOUNT0
  8902. // register.
  8903. //
  8904. //*****************************************************************************
  8905. #define USB_DMACOUNT0_COUNT_M 0xFFFFFFFC // DMA Count
  8906. #define USB_DMACOUNT0_COUNT_S 2
  8907. //*****************************************************************************
  8908. //
  8909. // The following are defines for the bit fields in the USB_O_DMACTL1 register.
  8910. //
  8911. //*****************************************************************************
  8912. #define USB_DMACTL1_BRSTM_M 0x00000600 // Burst Mode
  8913. #define USB_DMACTL1_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  8914. #define USB_DMACTL1_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  8915. #define USB_DMACTL1_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  8916. // length
  8917. #define USB_DMACTL1_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  8918. // unspecified length
  8919. #define USB_DMACTL1_ERR 0x00000100 // Bus Error Bit
  8920. #define USB_DMACTL1_EP_M 0x000000F0 // Endpoint number
  8921. #define USB_DMACTL1_IE 0x00000008 // DMA Interrupt Enable
  8922. #define USB_DMACTL1_MODE 0x00000004 // DMA Transfer Mode
  8923. #define USB_DMACTL1_DIR 0x00000002 // DMA Direction
  8924. #define USB_DMACTL1_ENABLE 0x00000001 // DMA Transfer Enable
  8925. #define USB_DMACTL1_EP_S 4
  8926. //*****************************************************************************
  8927. //
  8928. // The following are defines for the bit fields in the USB_O_DMAADDR1 register.
  8929. //
  8930. //*****************************************************************************
  8931. #define USB_DMAADDR1_ADDR_M 0xFFFFFFFC // DMA Address
  8932. #define USB_DMAADDR1_ADDR_S 2
  8933. //*****************************************************************************
  8934. //
  8935. // The following are defines for the bit fields in the USB_O_DMACOUNT1
  8936. // register.
  8937. //
  8938. //*****************************************************************************
  8939. #define USB_DMACOUNT1_COUNT_M 0xFFFFFFFC // DMA Count
  8940. #define USB_DMACOUNT1_COUNT_S 2
  8941. //*****************************************************************************
  8942. //
  8943. // The following are defines for the bit fields in the USB_O_DMACTL2 register.
  8944. //
  8945. //*****************************************************************************
  8946. #define USB_DMACTL2_BRSTM_M 0x00000600 // Burst Mode
  8947. #define USB_DMACTL2_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  8948. #define USB_DMACTL2_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  8949. #define USB_DMACTL2_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  8950. // length
  8951. #define USB_DMACTL2_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  8952. // unspecified length
  8953. #define USB_DMACTL2_ERR 0x00000100 // Bus Error Bit
  8954. #define USB_DMACTL2_EP_M 0x000000F0 // Endpoint number
  8955. #define USB_DMACTL2_IE 0x00000008 // DMA Interrupt Enable
  8956. #define USB_DMACTL2_MODE 0x00000004 // DMA Transfer Mode
  8957. #define USB_DMACTL2_DIR 0x00000002 // DMA Direction
  8958. #define USB_DMACTL2_ENABLE 0x00000001 // DMA Transfer Enable
  8959. #define USB_DMACTL2_EP_S 4
  8960. //*****************************************************************************
  8961. //
  8962. // The following are defines for the bit fields in the USB_O_DMAADDR2 register.
  8963. //
  8964. //*****************************************************************************
  8965. #define USB_DMAADDR2_ADDR_M 0xFFFFFFFC // DMA Address
  8966. #define USB_DMAADDR2_ADDR_S 2
  8967. //*****************************************************************************
  8968. //
  8969. // The following are defines for the bit fields in the USB_O_DMACOUNT2
  8970. // register.
  8971. //
  8972. //*****************************************************************************
  8973. #define USB_DMACOUNT2_COUNT_M 0xFFFFFFFC // DMA Count
  8974. #define USB_DMACOUNT2_COUNT_S 2
  8975. //*****************************************************************************
  8976. //
  8977. // The following are defines for the bit fields in the USB_O_DMACTL3 register.
  8978. //
  8979. //*****************************************************************************
  8980. #define USB_DMACTL3_BRSTM_M 0x00000600 // Burst Mode
  8981. #define USB_DMACTL3_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  8982. #define USB_DMACTL3_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  8983. #define USB_DMACTL3_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  8984. // length
  8985. #define USB_DMACTL3_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  8986. // unspecified length
  8987. #define USB_DMACTL3_ERR 0x00000100 // Bus Error Bit
  8988. #define USB_DMACTL3_EP_M 0x000000F0 // Endpoint number
  8989. #define USB_DMACTL3_IE 0x00000008 // DMA Interrupt Enable
  8990. #define USB_DMACTL3_MODE 0x00000004 // DMA Transfer Mode
  8991. #define USB_DMACTL3_DIR 0x00000002 // DMA Direction
  8992. #define USB_DMACTL3_ENABLE 0x00000001 // DMA Transfer Enable
  8993. #define USB_DMACTL3_EP_S 4
  8994. //*****************************************************************************
  8995. //
  8996. // The following are defines for the bit fields in the USB_O_DMAADDR3 register.
  8997. //
  8998. //*****************************************************************************
  8999. #define USB_DMAADDR3_ADDR_M 0xFFFFFFFC // DMA Address
  9000. #define USB_DMAADDR3_ADDR_S 2
  9001. //*****************************************************************************
  9002. //
  9003. // The following are defines for the bit fields in the USB_O_DMACOUNT3
  9004. // register.
  9005. //
  9006. //*****************************************************************************
  9007. #define USB_DMACOUNT3_COUNT_M 0xFFFFFFFC // DMA Count
  9008. #define USB_DMACOUNT3_COUNT_S 2
  9009. //*****************************************************************************
  9010. //
  9011. // The following are defines for the bit fields in the USB_O_DMACTL4 register.
  9012. //
  9013. //*****************************************************************************
  9014. #define USB_DMACTL4_BRSTM_M 0x00000600 // Burst Mode
  9015. #define USB_DMACTL4_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9016. #define USB_DMACTL4_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9017. #define USB_DMACTL4_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9018. // length
  9019. #define USB_DMACTL4_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9020. // unspecified length
  9021. #define USB_DMACTL4_ERR 0x00000100 // Bus Error Bit
  9022. #define USB_DMACTL4_EP_M 0x000000F0 // Endpoint number
  9023. #define USB_DMACTL4_IE 0x00000008 // DMA Interrupt Enable
  9024. #define USB_DMACTL4_MODE 0x00000004 // DMA Transfer Mode
  9025. #define USB_DMACTL4_DIR 0x00000002 // DMA Direction
  9026. #define USB_DMACTL4_ENABLE 0x00000001 // DMA Transfer Enable
  9027. #define USB_DMACTL4_EP_S 4
  9028. //*****************************************************************************
  9029. //
  9030. // The following are defines for the bit fields in the USB_O_DMAADDR4 register.
  9031. //
  9032. //*****************************************************************************
  9033. #define USB_DMAADDR4_ADDR_M 0xFFFFFFFC // DMA Address
  9034. #define USB_DMAADDR4_ADDR_S 2
  9035. //*****************************************************************************
  9036. //
  9037. // The following are defines for the bit fields in the USB_O_DMACOUNT4
  9038. // register.
  9039. //
  9040. //*****************************************************************************
  9041. #define USB_DMACOUNT4_COUNT_M 0xFFFFFFFC // DMA Count
  9042. #define USB_DMACOUNT4_COUNT_S 2
  9043. //*****************************************************************************
  9044. //
  9045. // The following are defines for the bit fields in the USB_O_DMACTL5 register.
  9046. //
  9047. //*****************************************************************************
  9048. #define USB_DMACTL5_BRSTM_M 0x00000600 // Burst Mode
  9049. #define USB_DMACTL5_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9050. #define USB_DMACTL5_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9051. #define USB_DMACTL5_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9052. // length
  9053. #define USB_DMACTL5_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9054. // unspecified length
  9055. #define USB_DMACTL5_ERR 0x00000100 // Bus Error Bit
  9056. #define USB_DMACTL5_EP_M 0x000000F0 // Endpoint number
  9057. #define USB_DMACTL5_IE 0x00000008 // DMA Interrupt Enable
  9058. #define USB_DMACTL5_MODE 0x00000004 // DMA Transfer Mode
  9059. #define USB_DMACTL5_DIR 0x00000002 // DMA Direction
  9060. #define USB_DMACTL5_ENABLE 0x00000001 // DMA Transfer Enable
  9061. #define USB_DMACTL5_EP_S 4
  9062. //*****************************************************************************
  9063. //
  9064. // The following are defines for the bit fields in the USB_O_DMAADDR5 register.
  9065. //
  9066. //*****************************************************************************
  9067. #define USB_DMAADDR5_ADDR_M 0xFFFFFFFC // DMA Address
  9068. #define USB_DMAADDR5_ADDR_S 2
  9069. //*****************************************************************************
  9070. //
  9071. // The following are defines for the bit fields in the USB_O_DMACOUNT5
  9072. // register.
  9073. //
  9074. //*****************************************************************************
  9075. #define USB_DMACOUNT5_COUNT_M 0xFFFFFFFC // DMA Count
  9076. #define USB_DMACOUNT5_COUNT_S 2
  9077. //*****************************************************************************
  9078. //
  9079. // The following are defines for the bit fields in the USB_O_DMACTL6 register.
  9080. //
  9081. //*****************************************************************************
  9082. #define USB_DMACTL6_BRSTM_M 0x00000600 // Burst Mode
  9083. #define USB_DMACTL6_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9084. #define USB_DMACTL6_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9085. #define USB_DMACTL6_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9086. // length
  9087. #define USB_DMACTL6_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9088. // unspecified length
  9089. #define USB_DMACTL6_ERR 0x00000100 // Bus Error Bit
  9090. #define USB_DMACTL6_EP_M 0x000000F0 // Endpoint number
  9091. #define USB_DMACTL6_IE 0x00000008 // DMA Interrupt Enable
  9092. #define USB_DMACTL6_MODE 0x00000004 // DMA Transfer Mode
  9093. #define USB_DMACTL6_DIR 0x00000002 // DMA Direction
  9094. #define USB_DMACTL6_ENABLE 0x00000001 // DMA Transfer Enable
  9095. #define USB_DMACTL6_EP_S 4
  9096. //*****************************************************************************
  9097. //
  9098. // The following are defines for the bit fields in the USB_O_DMAADDR6 register.
  9099. //
  9100. //*****************************************************************************
  9101. #define USB_DMAADDR6_ADDR_M 0xFFFFFFFC // DMA Address
  9102. #define USB_DMAADDR6_ADDR_S 2
  9103. //*****************************************************************************
  9104. //
  9105. // The following are defines for the bit fields in the USB_O_DMACOUNT6
  9106. // register.
  9107. //
  9108. //*****************************************************************************
  9109. #define USB_DMACOUNT6_COUNT_M 0xFFFFFFFC // DMA Count
  9110. #define USB_DMACOUNT6_COUNT_S 2
  9111. //*****************************************************************************
  9112. //
  9113. // The following are defines for the bit fields in the USB_O_DMACTL7 register.
  9114. //
  9115. //*****************************************************************************
  9116. #define USB_DMACTL7_BRSTM_M 0x00000600 // Burst Mode
  9117. #define USB_DMACTL7_BRSTM_ANY 0x00000000 // Bursts of unspecified length
  9118. #define USB_DMACTL7_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
  9119. #define USB_DMACTL7_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
  9120. // length
  9121. #define USB_DMACTL7_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
  9122. // unspecified length
  9123. #define USB_DMACTL7_ERR 0x00000100 // Bus Error Bit
  9124. #define USB_DMACTL7_EP_M 0x000000F0 // Endpoint number
  9125. #define USB_DMACTL7_IE 0x00000008 // DMA Interrupt Enable
  9126. #define USB_DMACTL7_MODE 0x00000004 // DMA Transfer Mode
  9127. #define USB_DMACTL7_DIR 0x00000002 // DMA Direction
  9128. #define USB_DMACTL7_ENABLE 0x00000001 // DMA Transfer Enable
  9129. #define USB_DMACTL7_EP_S 4
  9130. //*****************************************************************************
  9131. //
  9132. // The following are defines for the bit fields in the USB_O_DMAADDR7 register.
  9133. //
  9134. //*****************************************************************************
  9135. #define USB_DMAADDR7_ADDR_M 0xFFFFFFFC // DMA Address
  9136. #define USB_DMAADDR7_ADDR_S 2
  9137. //*****************************************************************************
  9138. //
  9139. // The following are defines for the bit fields in the USB_O_DMACOUNT7
  9140. // register.
  9141. //
  9142. //*****************************************************************************
  9143. #define USB_DMACOUNT7_COUNT_M 0xFFFFFFFC // DMA Count
  9144. #define USB_DMACOUNT7_COUNT_S 2
  9145. //*****************************************************************************
  9146. //
  9147. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
  9148. // register.
  9149. //
  9150. //*****************************************************************************
  9151. #define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
  9152. #define USB_RQPKTCOUNT1_S 0
  9153. //*****************************************************************************
  9154. //
  9155. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
  9156. // register.
  9157. //
  9158. //*****************************************************************************
  9159. #define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
  9160. #define USB_RQPKTCOUNT2_S 0
  9161. //*****************************************************************************
  9162. //
  9163. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
  9164. // register.
  9165. //
  9166. //*****************************************************************************
  9167. #define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
  9168. #define USB_RQPKTCOUNT3_S 0
  9169. //*****************************************************************************
  9170. //
  9171. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
  9172. // register.
  9173. //
  9174. //*****************************************************************************
  9175. #define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9176. #define USB_RQPKTCOUNT4_COUNT_S 0
  9177. //*****************************************************************************
  9178. //
  9179. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
  9180. // register.
  9181. //
  9182. //*****************************************************************************
  9183. #define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9184. #define USB_RQPKTCOUNT5_COUNT_S 0
  9185. //*****************************************************************************
  9186. //
  9187. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
  9188. // register.
  9189. //
  9190. //*****************************************************************************
  9191. #define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9192. #define USB_RQPKTCOUNT6_COUNT_S 0
  9193. //*****************************************************************************
  9194. //
  9195. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
  9196. // register.
  9197. //
  9198. //*****************************************************************************
  9199. #define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  9200. #define USB_RQPKTCOUNT7_COUNT_S 0
  9201. //*****************************************************************************
  9202. //
  9203. // The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
  9204. // register.
  9205. //
  9206. //*****************************************************************************
  9207. #define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
  9208. // Disable
  9209. #define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
  9210. // Disable
  9211. #define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
  9212. // Disable
  9213. #define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
  9214. // Disable
  9215. #define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
  9216. // Disable
  9217. #define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
  9218. // Disable
  9219. #define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
  9220. // Disable
  9221. //*****************************************************************************
  9222. //
  9223. // The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
  9224. // register.
  9225. //
  9226. //*****************************************************************************
  9227. #define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
  9228. // Disable
  9229. #define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
  9230. // Disable
  9231. #define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
  9232. // Disable
  9233. #define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
  9234. // Disable
  9235. #define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
  9236. // Disable
  9237. #define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
  9238. // Disable
  9239. #define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
  9240. // Disable
  9241. //*****************************************************************************
  9242. //
  9243. // The following are defines for the bit fields in the USB_O_CTO register.
  9244. //
  9245. //*****************************************************************************
  9246. #define USB_CTO_CCTV_M 0x0000FFFF // Configurable Chirp Timeout Value
  9247. #define USB_CTO_CCTV_S 0
  9248. //*****************************************************************************
  9249. //
  9250. // The following are defines for the bit fields in the USB_O_HHSRTN register.
  9251. //
  9252. //*****************************************************************************
  9253. #define USB_HHSRTN_HHSRTN_M 0x0000FFFF // HIgh Speed to UTM Operating
  9254. // Delay
  9255. #define USB_HHSRTN_HHSRTN_S 0
  9256. //*****************************************************************************
  9257. //
  9258. // The following are defines for the bit fields in the USB_O_HSBT register.
  9259. //
  9260. //*****************************************************************************
  9261. #define USB_HSBT_HSBT_M 0x0000000F // High Speed Timeout Adder
  9262. #define USB_HSBT_HSBT_S 0
  9263. //*****************************************************************************
  9264. //
  9265. // The following are defines for the bit fields in the USB_O_LPMATTR register.
  9266. //
  9267. //*****************************************************************************
  9268. #define USB_LPMATTR_ENDPT_M 0x0000F000 // Endpoint
  9269. #define USB_LPMATTR_RMTWAK 0x00000100 // Remote Wake
  9270. #define USB_LPMATTR_HIRD_M 0x000000F0 // Host Initiated Resume Duration
  9271. #define USB_LPMATTR_LS_M 0x0000000F // Link State
  9272. #define USB_LPMATTR_LS_L1 0x00000001 // Sleep State (L1)
  9273. #define USB_LPMATTR_ENDPT_S 12
  9274. #define USB_LPMATTR_HIRD_S 4
  9275. //*****************************************************************************
  9276. //
  9277. // The following are defines for the bit fields in the USB_O_LPMCNTRL register.
  9278. //
  9279. //*****************************************************************************
  9280. #define USB_LPMCNTRL_NAK 0x00000010 // LPM NAK
  9281. #define USB_LPMCNTRL_EN_M 0x0000000C // LPM Enable
  9282. #define USB_LPMCNTRL_EN_NONE 0x00000000 // LPM and Extended transactions
  9283. // are not supported. In this case,
  9284. // the USB does not respond to LPM
  9285. // transactions and LPM
  9286. // transactions cause a timeout
  9287. #define USB_LPMCNTRL_EN_EXT 0x00000004 // LPM is not supported but
  9288. // extended transactions are
  9289. // supported. In this case, the USB
  9290. // does respond to an LPM
  9291. // transaction with a STALL
  9292. #define USB_LPMCNTRL_EN_LPMEXT 0x0000000C // The USB supports LPM extended
  9293. // transactions. In this case, the
  9294. // USB responds with a NYET or an
  9295. // ACK as determined by the value
  9296. // of TXLPM and other conditions
  9297. #define USB_LPMCNTRL_RES 0x00000002 // LPM Resume
  9298. #define USB_LPMCNTRL_TXLPM 0x00000001 // Transmit LPM Transaction Enable
  9299. //*****************************************************************************
  9300. //
  9301. // The following are defines for the bit fields in the USB_O_LPMIM register.
  9302. //
  9303. //*****************************************************************************
  9304. #define USB_LPMIM_ERR 0x00000020 // LPM Error Interrupt Mask
  9305. #define USB_LPMIM_RES 0x00000010 // LPM Resume Interrupt Mask
  9306. #define USB_LPMIM_NC 0x00000008 // LPM NC Interrupt Mask
  9307. #define USB_LPMIM_ACK 0x00000004 // LPM ACK Interrupt Mask
  9308. #define USB_LPMIM_NY 0x00000002 // LPM NY Interrupt Mask
  9309. #define USB_LPMIM_STALL 0x00000001 // LPM STALL Interrupt Mask
  9310. //*****************************************************************************
  9311. //
  9312. // The following are defines for the bit fields in the USB_O_LPMRIS register.
  9313. //
  9314. //*****************************************************************************
  9315. #define USB_LPMRIS_ERR 0x00000020 // LPM Interrupt Status
  9316. #define USB_LPMRIS_RES 0x00000010 // LPM Resume Interrupt Status
  9317. #define USB_LPMRIS_NC 0x00000008 // LPM NC Interrupt Status
  9318. #define USB_LPMRIS_ACK 0x00000004 // LPM ACK Interrupt Status
  9319. #define USB_LPMRIS_NY 0x00000002 // LPM NY Interrupt Status
  9320. #define USB_LPMRIS_LPMST 0x00000001 // LPM STALL Interrupt Status
  9321. //*****************************************************************************
  9322. //
  9323. // The following are defines for the bit fields in the USB_O_LPMFADDR register.
  9324. //
  9325. //*****************************************************************************
  9326. #define USB_LPMFADDR_ADDR_M 0x0000007F // LPM Function Address
  9327. #define USB_LPMFADDR_ADDR_S 0
  9328. //*****************************************************************************
  9329. //
  9330. // The following are defines for the bit fields in the USB_O_EPC register.
  9331. //
  9332. //*****************************************************************************
  9333. #define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
  9334. #define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
  9335. #define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
  9336. #define USB_EPC_PFLTACT_LOW 0x00000200 // Low
  9337. #define USB_EPC_PFLTACT_HIGH 0x00000300 // High
  9338. #define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
  9339. #define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
  9340. #define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
  9341. #define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
  9342. #define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
  9343. // Configuration
  9344. #define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
  9345. #define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
  9346. #define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
  9347. // (OTG only)
  9348. #define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
  9349. // (OTG only)
  9350. //*****************************************************************************
  9351. //
  9352. // The following are defines for the bit fields in the USB_O_EPCRIS register.
  9353. //
  9354. //*****************************************************************************
  9355. #define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
  9356. //*****************************************************************************
  9357. //
  9358. // The following are defines for the bit fields in the USB_O_EPCIM register.
  9359. //
  9360. //*****************************************************************************
  9361. #define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
  9362. //*****************************************************************************
  9363. //
  9364. // The following are defines for the bit fields in the USB_O_EPCISC register.
  9365. //
  9366. //*****************************************************************************
  9367. #define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
  9368. // and Clear
  9369. //*****************************************************************************
  9370. //
  9371. // The following are defines for the bit fields in the USB_O_DRRIS register.
  9372. //
  9373. //*****************************************************************************
  9374. #define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
  9375. //*****************************************************************************
  9376. //
  9377. // The following are defines for the bit fields in the USB_O_DRIM register.
  9378. //
  9379. //*****************************************************************************
  9380. #define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
  9381. //*****************************************************************************
  9382. //
  9383. // The following are defines for the bit fields in the USB_O_DRISC register.
  9384. //
  9385. //*****************************************************************************
  9386. #define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
  9387. // Clear
  9388. //*****************************************************************************
  9389. //
  9390. // The following are defines for the bit fields in the USB_O_GPCS register.
  9391. //
  9392. //*****************************************************************************
  9393. #define USB_GPCS_DEVMOD_M 0x00000007 // Device Mode
  9394. #define USB_GPCS_DEVMOD_OTG 0x00000000 // Use USB0VBUS and USB0ID pin
  9395. #define USB_GPCS_DEVMOD_HOST 0x00000002 // Force USB0VBUS and USB0ID low
  9396. #define USB_GPCS_DEVMOD_DEV 0x00000003 // Force USB0VBUS and USB0ID high
  9397. #define USB_GPCS_DEVMOD_HOSTVBUS \
  9398. 0x00000004 // Use USB0VBUS and force USB0ID
  9399. // low
  9400. #define USB_GPCS_DEVMOD_DEVVBUS 0x00000005 // Use USB0VBUS and force USB0ID
  9401. // high
  9402. //*****************************************************************************
  9403. //
  9404. // The following are defines for the bit fields in the USB_O_VDC register.
  9405. //
  9406. //*****************************************************************************
  9407. #define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
  9408. //*****************************************************************************
  9409. //
  9410. // The following are defines for the bit fields in the USB_O_VDCRIS register.
  9411. //
  9412. //*****************************************************************************
  9413. #define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
  9414. //*****************************************************************************
  9415. //
  9416. // The following are defines for the bit fields in the USB_O_VDCIM register.
  9417. //
  9418. //*****************************************************************************
  9419. #define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
  9420. //*****************************************************************************
  9421. //
  9422. // The following are defines for the bit fields in the USB_O_VDCISC register.
  9423. //
  9424. //*****************************************************************************
  9425. #define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
  9426. // Clear
  9427. //*****************************************************************************
  9428. //
  9429. // The following are defines for the bit fields in the USB_O_PP register.
  9430. //
  9431. //*****************************************************************************
  9432. #define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
  9433. #define USB_PP_USB_M 0x000000C0 // USB Capability
  9434. #define USB_PP_USB_DEVICE 0x00000040 // DEVICE
  9435. #define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
  9436. #define USB_PP_USB_OTG 0x000000C0 // OTG
  9437. #define USB_PP_ULPI 0x00000020 // ULPI Present
  9438. #define USB_PP_PHY 0x00000010 // PHY Present
  9439. #define USB_PP_TYPE_M 0x0000000F // Controller Type
  9440. #define USB_PP_TYPE_0 0x00000000 // The first-generation USB
  9441. // controller
  9442. #define USB_PP_TYPE_1 0x00000001 // Second-generation USB
  9443. // controller.The controller
  9444. // implemented in post Icestorm
  9445. // devices that use the 3.0 version
  9446. // of the Mentor controller
  9447. #define USB_PP_ECNT_S 8
  9448. //*****************************************************************************
  9449. //
  9450. // The following are defines for the bit fields in the USB_O_PC register.
  9451. //
  9452. //*****************************************************************************
  9453. #define USB_PC_ULPIEN 0x00010000 // ULPI Enable
  9454. //*****************************************************************************
  9455. //
  9456. // The following are defines for the bit fields in the USB_O_CC register.
  9457. //
  9458. //*****************************************************************************
  9459. #define USB_CC_CLKEN 0x00000200 // USB Clock Enable
  9460. #define USB_CC_CSD 0x00000100 // Clock Source/Direction
  9461. #define USB_CC_CLKDIV_M 0x0000000F // PLL Clock Divisor
  9462. #define USB_CC_CLKDIV_S 0
  9463. //*****************************************************************************
  9464. //
  9465. // The following are defines for the bit fields in the EEPROM_EESIZE register.
  9466. //
  9467. //*****************************************************************************
  9468. #define EEPROM_EESIZE_BLKCNT_M 0x07FF0000 // Number of 16-Word Blocks
  9469. #define EEPROM_EESIZE_WORDCNT_M 0x0000FFFF // Number of 32-Bit Words
  9470. #define EEPROM_EESIZE_BLKCNT_S 16
  9471. #define EEPROM_EESIZE_WORDCNT_S 0
  9472. //*****************************************************************************
  9473. //
  9474. // The following are defines for the bit fields in the EEPROM_EEBLOCK register.
  9475. //
  9476. //*****************************************************************************
  9477. #define EEPROM_EEBLOCK_BLOCK_M 0x0000FFFF // Current Block
  9478. #define EEPROM_EEBLOCK_BLOCK_S 0
  9479. //*****************************************************************************
  9480. //
  9481. // The following are defines for the bit fields in the EEPROM_EEOFFSET
  9482. // register.
  9483. //
  9484. //*****************************************************************************
  9485. #define EEPROM_EEOFFSET_OFFSET_M \
  9486. 0x0000000F // Current Address Offset
  9487. #define EEPROM_EEOFFSET_OFFSET_S \
  9488. 0
  9489. //*****************************************************************************
  9490. //
  9491. // The following are defines for the bit fields in the EEPROM_EERDWR register.
  9492. //
  9493. //*****************************************************************************
  9494. #define EEPROM_EERDWR_VALUE_M 0xFFFFFFFF // EEPROM Read or Write Data
  9495. #define EEPROM_EERDWR_VALUE_S 0
  9496. //*****************************************************************************
  9497. //
  9498. // The following are defines for the bit fields in the EEPROM_EERDWRINC
  9499. // register.
  9500. //
  9501. //*****************************************************************************
  9502. #define EEPROM_EERDWRINC_VALUE_M \
  9503. 0xFFFFFFFF // EEPROM Read or Write Data with
  9504. // Increment
  9505. #define EEPROM_EERDWRINC_VALUE_S \
  9506. 0
  9507. //*****************************************************************************
  9508. //
  9509. // The following are defines for the bit fields in the EEPROM_EEDONE register.
  9510. //
  9511. //*****************************************************************************
  9512. #define EEPROM_EEDONE_WRBUSY 0x00000020 // Write Busy
  9513. #define EEPROM_EEDONE_NOPERM 0x00000010 // Write Without Permission
  9514. #define EEPROM_EEDONE_WKCOPY 0x00000008 // Working on a Copy
  9515. #define EEPROM_EEDONE_WKERASE 0x00000004 // Working on an Erase
  9516. #define EEPROM_EEDONE_WORKING 0x00000001 // EEPROM Working
  9517. //*****************************************************************************
  9518. //
  9519. // The following are defines for the bit fields in the EEPROM_EESUPP register.
  9520. //
  9521. //*****************************************************************************
  9522. #define EEPROM_EESUPP_PRETRY 0x00000008 // Programming Must Be Retried
  9523. #define EEPROM_EESUPP_ERETRY 0x00000004 // Erase Must Be Retried
  9524. //*****************************************************************************
  9525. //
  9526. // The following are defines for the bit fields in the EEPROM_EEUNLOCK
  9527. // register.
  9528. //
  9529. //*****************************************************************************
  9530. #define EEPROM_EEUNLOCK_UNLOCK_M \
  9531. 0xFFFFFFFF // EEPROM Unlock
  9532. //*****************************************************************************
  9533. //
  9534. // The following are defines for the bit fields in the EEPROM_EEPROT register.
  9535. //
  9536. //*****************************************************************************
  9537. #define EEPROM_EEPROT_ACC 0x00000008 // Access Control
  9538. #define EEPROM_EEPROT_PROT_M 0x00000007 // Protection Control
  9539. #define EEPROM_EEPROT_PROT_RWNPW \
  9540. 0x00000000 // This setting is the default. If
  9541. // there is no password, the block
  9542. // is not protected and is readable
  9543. // and writable
  9544. #define EEPROM_EEPROT_PROT_RWPW 0x00000001 // If there is a password, the
  9545. // block is readable or writable
  9546. // only when unlocked
  9547. #define EEPROM_EEPROT_PROT_RONPW \
  9548. 0x00000002 // If there is no password, the
  9549. // block is readable, not writable
  9550. //*****************************************************************************
  9551. //
  9552. // The following are defines for the bit fields in the EEPROM_EEPASS0 register.
  9553. //
  9554. //*****************************************************************************
  9555. #define EEPROM_EEPASS0_PASS_M 0xFFFFFFFF // Password
  9556. #define EEPROM_EEPASS0_PASS_S 0
  9557. //*****************************************************************************
  9558. //
  9559. // The following are defines for the bit fields in the EEPROM_EEPASS1 register.
  9560. //
  9561. //*****************************************************************************
  9562. #define EEPROM_EEPASS1_PASS_M 0xFFFFFFFF // Password
  9563. #define EEPROM_EEPASS1_PASS_S 0
  9564. //*****************************************************************************
  9565. //
  9566. // The following are defines for the bit fields in the EEPROM_EEPASS2 register.
  9567. //
  9568. //*****************************************************************************
  9569. #define EEPROM_EEPASS2_PASS_M 0xFFFFFFFF // Password
  9570. #define EEPROM_EEPASS2_PASS_S 0
  9571. //*****************************************************************************
  9572. //
  9573. // The following are defines for the bit fields in the EEPROM_EEINT register.
  9574. //
  9575. //*****************************************************************************
  9576. #define EEPROM_EEINT_INT 0x00000001 // Interrupt Enable
  9577. //*****************************************************************************
  9578. //
  9579. // The following are defines for the bit fields in the EEPROM_EEHIDE0 register.
  9580. //
  9581. //*****************************************************************************
  9582. #define EEPROM_EEHIDE0_HN_M 0xFFFFFFFE // Hide Block
  9583. //*****************************************************************************
  9584. //
  9585. // The following are defines for the bit fields in the EEPROM_EEHIDE1 register.
  9586. //
  9587. //*****************************************************************************
  9588. #define EEPROM_EEHIDE1_HN_M 0xFFFFFFFF // Hide Block
  9589. //*****************************************************************************
  9590. //
  9591. // The following are defines for the bit fields in the EEPROM_EEHIDE2 register.
  9592. //
  9593. //*****************************************************************************
  9594. #define EEPROM_EEHIDE2_HN_M 0xFFFFFFFF // Hide Block
  9595. //*****************************************************************************
  9596. //
  9597. // The following are defines for the bit fields in the EEPROM_EEDBGME register.
  9598. //
  9599. //*****************************************************************************
  9600. #define EEPROM_EEDBGME_KEY_M 0xFFFF0000 // Erase Key
  9601. #define EEPROM_EEDBGME_ME 0x00000001 // Mass Erase
  9602. #define EEPROM_EEDBGME_KEY_S 16
  9603. //*****************************************************************************
  9604. //
  9605. // The following are defines for the bit fields in the EEPROM_PP register.
  9606. //
  9607. //*****************************************************************************
  9608. #define EEPROM_PP_SIZE_M 0x0000FFFF // EEPROM Size
  9609. #define EEPROM_PP_SIZE_64 0x00000000 // 64 bytes of EEPROM
  9610. #define EEPROM_PP_SIZE_128 0x00000001 // 128 bytes of EEPROM
  9611. #define EEPROM_PP_SIZE_256 0x00000003 // 256 bytes of EEPROM
  9612. #define EEPROM_PP_SIZE_512 0x00000007 // 512 bytes of EEPROM
  9613. #define EEPROM_PP_SIZE_1K 0x0000000F // 1 KB of EEPROM
  9614. #define EEPROM_PP_SIZE_2K 0x0000001F // 2 KB of EEPROM
  9615. #define EEPROM_PP_SIZE_3K 0x0000003F // 3 KB of EEPROM
  9616. #define EEPROM_PP_SIZE_4K 0x0000007F // 4 KB of EEPROM
  9617. #define EEPROM_PP_SIZE_5K 0x000000FF // 5 KB of EEPROM
  9618. #define EEPROM_PP_SIZE_6K 0x000001FF // 6 KB of EEPROM
  9619. //*****************************************************************************
  9620. //
  9621. // The following are defines for the bit fields in the EPI_O_CFG register.
  9622. //
  9623. //*****************************************************************************
  9624. #define EPI_CFG_INTDIV 0x00000100 // Integer Clock Divider Enable
  9625. #define EPI_CFG_BLKEN 0x00000010 // Block Enable
  9626. #define EPI_CFG_MODE_M 0x0000000F // Mode Select
  9627. #define EPI_CFG_MODE_NONE 0x00000000 // General Purpose
  9628. #define EPI_CFG_MODE_SDRAM 0x00000001 // SDRAM
  9629. #define EPI_CFG_MODE_HB8 0x00000002 // 8-Bit Host-Bus (HB8)
  9630. #define EPI_CFG_MODE_HB16 0x00000003 // 16-Bit Host-Bus (HB16)
  9631. //*****************************************************************************
  9632. //
  9633. // The following are defines for the bit fields in the EPI_O_BAUD register.
  9634. //
  9635. //*****************************************************************************
  9636. #define EPI_BAUD_COUNT1_M 0xFFFF0000 // Baud Rate Counter 1
  9637. #define EPI_BAUD_COUNT0_M 0x0000FFFF // Baud Rate Counter 0
  9638. #define EPI_BAUD_COUNT1_S 16
  9639. #define EPI_BAUD_COUNT0_S 0
  9640. //*****************************************************************************
  9641. //
  9642. // The following are defines for the bit fields in the EPI_O_BAUD2 register.
  9643. //
  9644. //*****************************************************************************
  9645. #define EPI_BAUD2_COUNT1_M 0xFFFF0000 // CS3n Baud Rate Counter 1
  9646. #define EPI_BAUD2_COUNT0_M 0x0000FFFF // CS2n Baud Rate Counter 0
  9647. #define EPI_BAUD2_COUNT1_S 16
  9648. #define EPI_BAUD2_COUNT0_S 0
  9649. //*****************************************************************************
  9650. //
  9651. // The following are defines for the bit fields in the EPI_O_HB16CFG register.
  9652. //
  9653. //*****************************************************************************
  9654. #define EPI_HB16CFG_CLKGATE 0x80000000 // Clock Gated
  9655. #define EPI_HB16CFG_CLKGATEI 0x40000000 // Clock Gated Idle
  9656. #define EPI_HB16CFG_CLKINV 0x20000000 // Invert Output Clock Enable
  9657. #define EPI_HB16CFG_RDYEN 0x10000000 // Input Ready Enable
  9658. #define EPI_HB16CFG_IRDYINV 0x08000000 // Input Ready Invert
  9659. #define EPI_HB16CFG_XFFEN 0x00800000 // External FIFO FULL Enable
  9660. #define EPI_HB16CFG_XFEEN 0x00400000 // External FIFO EMPTY Enable
  9661. #define EPI_HB16CFG_WRHIGH 0x00200000 // WRITE Strobe Polarity
  9662. #define EPI_HB16CFG_RDHIGH 0x00100000 // READ Strobe Polarity
  9663. #define EPI_HB16CFG_ALEHIGH 0x00080000 // ALE Strobe Polarity
  9664. #define EPI_HB16CFG_WRCRE 0x00040000 // PSRAM Configuration Register
  9665. // Write
  9666. #define EPI_HB16CFG_RDCRE 0x00020000 // PSRAM Configuration Register
  9667. // Read
  9668. #define EPI_HB16CFG_BURST 0x00010000 // Burst Mode
  9669. #define EPI_HB16CFG_MAXWAIT_M 0x0000FF00 // Maximum Wait
  9670. #define EPI_HB16CFG_WRWS_M 0x000000C0 // Write Wait States
  9671. #define EPI_HB16CFG_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  9672. #define EPI_HB16CFG_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  9673. #define EPI_HB16CFG_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  9674. #define EPI_HB16CFG_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  9675. #define EPI_HB16CFG_RDWS_M 0x00000030 // Read Wait States
  9676. #define EPI_HB16CFG_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  9677. #define EPI_HB16CFG_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  9678. #define EPI_HB16CFG_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  9679. #define EPI_HB16CFG_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  9680. #define EPI_HB16CFG_BSEL 0x00000004 // Byte Select Configuration
  9681. #define EPI_HB16CFG_MODE_M 0x00000003 // Host Bus Sub-Mode
  9682. #define EPI_HB16CFG_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  9683. #define EPI_HB16CFG_MODE_ADNMUX 0x00000001 // ADNONMUX - D[15:0]
  9684. #define EPI_HB16CFG_MODE_SRAM 0x00000002 // Continuous Read - D[15:0]
  9685. #define EPI_HB16CFG_MODE_XFIFO 0x00000003 // XFIFO - D[15:0]
  9686. #define EPI_HB16CFG_MAXWAIT_S 8
  9687. //*****************************************************************************
  9688. //
  9689. // The following are defines for the bit fields in the EPI_O_GPCFG register.
  9690. //
  9691. //*****************************************************************************
  9692. #define EPI_GPCFG_CLKPIN 0x80000000 // Clock Pin
  9693. #define EPI_GPCFG_CLKGATE 0x40000000 // Clock Gated
  9694. #define EPI_GPCFG_FRM50 0x04000000 // 50/50 Frame
  9695. #define EPI_GPCFG_FRMCNT_M 0x03C00000 // Frame Count
  9696. #define EPI_GPCFG_WR2CYC 0x00080000 // 2-Cycle Writes
  9697. #define EPI_GPCFG_ASIZE_M 0x00000030 // Address Bus Size
  9698. #define EPI_GPCFG_ASIZE_NONE 0x00000000 // No address
  9699. #define EPI_GPCFG_ASIZE_4BIT 0x00000010 // Up to 4 bits wide
  9700. #define EPI_GPCFG_ASIZE_12BIT 0x00000020 // Up to 12 bits wide. This size
  9701. // cannot be used with 24-bit data
  9702. #define EPI_GPCFG_ASIZE_20BIT 0x00000030 // Up to 20 bits wide. This size
  9703. // cannot be used with data sizes
  9704. // other than 8
  9705. #define EPI_GPCFG_DSIZE_M 0x00000003 // Size of Data Bus
  9706. #define EPI_GPCFG_DSIZE_4BIT 0x00000000 // 8 Bits Wide (EPI0S0 to EPI0S7)
  9707. #define EPI_GPCFG_DSIZE_16BIT 0x00000001 // 16 Bits Wide (EPI0S0 to EPI0S15)
  9708. #define EPI_GPCFG_DSIZE_24BIT 0x00000002 // 24 Bits Wide (EPI0S0 to EPI0S23)
  9709. #define EPI_GPCFG_DSIZE_32BIT 0x00000003 // 32 Bits Wide (EPI0S0 to EPI0S31)
  9710. #define EPI_GPCFG_FRMCNT_S 22
  9711. //*****************************************************************************
  9712. //
  9713. // The following are defines for the bit fields in the EPI_O_SDRAMCFG register.
  9714. //
  9715. //*****************************************************************************
  9716. #define EPI_SDRAMCFG_FREQ_M 0xC0000000 // EPI Frequency Range
  9717. #define EPI_SDRAMCFG_FREQ_NONE 0x00000000 // 0 - 15 MHz
  9718. #define EPI_SDRAMCFG_FREQ_15MHZ 0x40000000 // 15 - 30 MHz
  9719. #define EPI_SDRAMCFG_FREQ_30MHZ 0x80000000 // 30 - 50 MHz
  9720. #define EPI_SDRAMCFG_RFSH_M 0x07FF0000 // Refresh Counter
  9721. #define EPI_SDRAMCFG_SLEEP 0x00000200 // Sleep Mode
  9722. #define EPI_SDRAMCFG_SIZE_M 0x00000003 // Size of SDRAM
  9723. #define EPI_SDRAMCFG_SIZE_8MB 0x00000000 // 64 megabits (8MB)
  9724. #define EPI_SDRAMCFG_SIZE_16MB 0x00000001 // 128 megabits (16MB)
  9725. #define EPI_SDRAMCFG_SIZE_32MB 0x00000002 // 256 megabits (32MB)
  9726. #define EPI_SDRAMCFG_SIZE_64MB 0x00000003 // 512 megabits (64MB)
  9727. #define EPI_SDRAMCFG_RFSH_S 16
  9728. //*****************************************************************************
  9729. //
  9730. // The following are defines for the bit fields in the EPI_O_HB8CFG register.
  9731. //
  9732. //*****************************************************************************
  9733. #define EPI_HB8CFG_CLKGATE 0x80000000 // Clock Gated
  9734. #define EPI_HB8CFG_CLKGATEI 0x40000000 // Clock Gated when Idle
  9735. #define EPI_HB8CFG_CLKINV 0x20000000 // Invert Output Clock Enable
  9736. #define EPI_HB8CFG_RDYEN 0x10000000 // Input Ready Enable
  9737. #define EPI_HB8CFG_IRDYINV 0x08000000 // Input Ready Invert
  9738. #define EPI_HB8CFG_XFFEN 0x00800000 // External FIFO FULL Enable
  9739. #define EPI_HB8CFG_XFEEN 0x00400000 // External FIFO EMPTY Enable
  9740. #define EPI_HB8CFG_WRHIGH 0x00200000 // WRITE Strobe Polarity
  9741. #define EPI_HB8CFG_RDHIGH 0x00100000 // READ Strobe Polarity
  9742. #define EPI_HB8CFG_ALEHIGH 0x00080000 // ALE Strobe Polarity
  9743. #define EPI_HB8CFG_MAXWAIT_M 0x0000FF00 // Maximum Wait
  9744. #define EPI_HB8CFG_WRWS_M 0x000000C0 // Write Wait States
  9745. #define EPI_HB8CFG_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  9746. #define EPI_HB8CFG_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  9747. #define EPI_HB8CFG_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  9748. #define EPI_HB8CFG_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  9749. #define EPI_HB8CFG_RDWS_M 0x00000030 // Read Wait States
  9750. #define EPI_HB8CFG_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  9751. #define EPI_HB8CFG_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  9752. #define EPI_HB8CFG_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  9753. #define EPI_HB8CFG_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  9754. #define EPI_HB8CFG_MODE_M 0x00000003 // Host Bus Sub-Mode
  9755. #define EPI_HB8CFG_MODE_MUX 0x00000000 // ADMUX - AD[7:0]
  9756. #define EPI_HB8CFG_MODE_NMUX 0x00000001 // ADNONMUX - D[7:0]
  9757. #define EPI_HB8CFG_MODE_SRAM 0x00000002 // Continuous Read - D[7:0]
  9758. #define EPI_HB8CFG_MODE_FIFO 0x00000003 // XFIFO - D[7:0]
  9759. #define EPI_HB8CFG_MAXWAIT_S 8
  9760. //*****************************************************************************
  9761. //
  9762. // The following are defines for the bit fields in the EPI_O_HB8CFG2 register.
  9763. //
  9764. //*****************************************************************************
  9765. #define EPI_HB8CFG2_CSCFGEXT 0x08000000 // Chip Select Extended
  9766. // Configuration
  9767. #define EPI_HB8CFG2_CSBAUD 0x04000000 // Chip Select Baud Rate and
  9768. // Multiple Sub-Mode Configuration
  9769. // enable
  9770. #define EPI_HB8CFG2_CSCFG_M 0x03000000 // Chip Select Configuration
  9771. #define EPI_HB8CFG2_CSCFG_ALE 0x00000000 // ALE Configuration
  9772. #define EPI_HB8CFG2_CSCFG_CS 0x01000000 // CSn Configuration
  9773. #define EPI_HB8CFG2_CSCFG_DCS 0x02000000 // Dual CSn Configuration
  9774. #define EPI_HB8CFG2_CSCFG_ADCS 0x03000000 // ALE with Dual CSn Configuration
  9775. #define EPI_HB8CFG2_WRHIGH 0x00200000 // CS1n WRITE Strobe Polarity
  9776. #define EPI_HB8CFG2_RDHIGH 0x00100000 // CS1n READ Strobe Polarity
  9777. #define EPI_HB8CFG2_ALEHIGH 0x00080000 // CS1n ALE Strobe Polarity
  9778. #define EPI_HB8CFG2_WRWS_M 0x000000C0 // CS1n Write Wait States
  9779. #define EPI_HB8CFG2_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  9780. #define EPI_HB8CFG2_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  9781. #define EPI_HB8CFG2_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  9782. #define EPI_HB8CFG2_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  9783. #define EPI_HB8CFG2_RDWS_M 0x00000030 // CS1n Read Wait States
  9784. #define EPI_HB8CFG2_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  9785. #define EPI_HB8CFG2_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  9786. #define EPI_HB8CFG2_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  9787. #define EPI_HB8CFG2_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  9788. #define EPI_HB8CFG2_MODE_M 0x00000003 // CS1n Host Bus Sub-Mode
  9789. #define EPI_HB8CFG2_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  9790. #define EPI_HB8CFG2_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  9791. //*****************************************************************************
  9792. //
  9793. // The following are defines for the bit fields in the EPI_O_HB16CFG2 register.
  9794. //
  9795. //*****************************************************************************
  9796. #define EPI_HB16CFG2_CSCFGEXT 0x08000000 // Chip Select Extended
  9797. // Configuration
  9798. #define EPI_HB16CFG2_CSBAUD 0x04000000 // Chip Select Baud Rate and
  9799. // Multiple Sub-Mode Configuration
  9800. // enable
  9801. #define EPI_HB16CFG2_CSCFG_M 0x03000000 // Chip Select Configuration
  9802. #define EPI_HB16CFG2_CSCFG_ALE 0x00000000 // ALE Configuration
  9803. #define EPI_HB16CFG2_CSCFG_CS 0x01000000 // CSn Configuration
  9804. #define EPI_HB16CFG2_CSCFG_DCS 0x02000000 // Dual CSn Configuration
  9805. #define EPI_HB16CFG2_CSCFG_ADCS 0x03000000 // ALE with Dual CSn Configuration
  9806. #define EPI_HB16CFG2_WRHIGH 0x00200000 // CS1n WRITE Strobe Polarity
  9807. #define EPI_HB16CFG2_RDHIGH 0x00100000 // CS1n READ Strobe Polarity
  9808. #define EPI_HB16CFG2_ALEHIGH 0x00080000 // CS1n ALE Strobe Polarity
  9809. #define EPI_HB16CFG2_WRCRE 0x00040000 // CS1n PSRAM Configuration
  9810. // Register Write
  9811. #define EPI_HB16CFG2_RDCRE 0x00020000 // CS1n PSRAM Configuration
  9812. // Register Read
  9813. #define EPI_HB16CFG2_BURST 0x00010000 // CS1n Burst Mode
  9814. #define EPI_HB16CFG2_WRWS_M 0x000000C0 // CS1n Write Wait States
  9815. #define EPI_HB16CFG2_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  9816. #define EPI_HB16CFG2_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  9817. #define EPI_HB16CFG2_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  9818. #define EPI_HB16CFG2_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  9819. #define EPI_HB16CFG2_RDWS_M 0x00000030 // CS1n Read Wait States
  9820. #define EPI_HB16CFG2_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  9821. #define EPI_HB16CFG2_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  9822. #define EPI_HB16CFG2_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  9823. #define EPI_HB16CFG2_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  9824. #define EPI_HB16CFG2_MODE_M 0x00000003 // CS1n Host Bus Sub-Mode
  9825. #define EPI_HB16CFG2_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  9826. #define EPI_HB16CFG2_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  9827. //*****************************************************************************
  9828. //
  9829. // The following are defines for the bit fields in the EPI_O_ADDRMAP register.
  9830. //
  9831. //*****************************************************************************
  9832. #define EPI_ADDRMAP_ECSZ_M 0x00000C00 // External Code Size
  9833. #define EPI_ADDRMAP_ECSZ_256B 0x00000000 // 256 bytes; lower address range:
  9834. // 0x00 to 0xFF
  9835. #define EPI_ADDRMAP_ECSZ_64KB 0x00000400 // 64 KB; lower address range:
  9836. // 0x0000 to 0xFFFF
  9837. #define EPI_ADDRMAP_ECSZ_16MB 0x00000800 // 16 MB; lower address range:
  9838. // 0x00.0000 to 0xFF.FFFF
  9839. #define EPI_ADDRMAP_ECSZ_256MB 0x00000C00 // 256MB; lower address range:
  9840. // 0x000.0000 to 0x0FFF.FFFF
  9841. #define EPI_ADDRMAP_ECADR_M 0x00000300 // External Code Address
  9842. #define EPI_ADDRMAP_ECADR_NONE 0x00000000 // Not mapped
  9843. #define EPI_ADDRMAP_ECADR_1000 0x00000100 // At 0x1000.0000
  9844. #define EPI_ADDRMAP_EPSZ_M 0x000000C0 // External Peripheral Size
  9845. #define EPI_ADDRMAP_EPSZ_256B 0x00000000 // 256 bytes; lower address range:
  9846. // 0x00 to 0xFF
  9847. #define EPI_ADDRMAP_EPSZ_64KB 0x00000040 // 64 KB; lower address range:
  9848. // 0x0000 to 0xFFFF
  9849. #define EPI_ADDRMAP_EPSZ_16MB 0x00000080 // 16 MB; lower address range:
  9850. // 0x00.0000 to 0xFF.FFFF
  9851. #define EPI_ADDRMAP_EPSZ_256MB 0x000000C0 // 256 MB; lower address range:
  9852. // 0x000.0000 to 0xFFF.FFFF
  9853. #define EPI_ADDRMAP_EPADR_M 0x00000030 // External Peripheral Address
  9854. #define EPI_ADDRMAP_EPADR_NONE 0x00000000 // Not mapped
  9855. #define EPI_ADDRMAP_EPADR_A000 0x00000010 // At 0xA000.0000
  9856. #define EPI_ADDRMAP_EPADR_C000 0x00000020 // At 0xC000.0000
  9857. #define EPI_ADDRMAP_EPADR_HBQS 0x00000030 // Only to be used with Host Bus
  9858. // quad chip select. In quad chip
  9859. // select mode, CS2n maps to
  9860. // 0xA000.0000 and CS3n maps to
  9861. // 0xC000.0000
  9862. #define EPI_ADDRMAP_ERSZ_M 0x0000000C // External RAM Size
  9863. #define EPI_ADDRMAP_ERSZ_256B 0x00000000 // 256 bytes; lower address range:
  9864. // 0x00 to 0xFF
  9865. #define EPI_ADDRMAP_ERSZ_64KB 0x00000004 // 64 KB; lower address range:
  9866. // 0x0000 to 0xFFFF
  9867. #define EPI_ADDRMAP_ERSZ_16MB 0x00000008 // 16 MB; lower address range:
  9868. // 0x00.0000 to 0xFF.FFFF
  9869. #define EPI_ADDRMAP_ERSZ_256MB 0x0000000C // 256 MB; lower address range:
  9870. // 0x000.0000 to 0xFFF.FFFF
  9871. #define EPI_ADDRMAP_ERADR_M 0x00000003 // External RAM Address
  9872. #define EPI_ADDRMAP_ERADR_NONE 0x00000000 // Not mapped
  9873. #define EPI_ADDRMAP_ERADR_6000 0x00000001 // At 0x6000.0000
  9874. #define EPI_ADDRMAP_ERADR_8000 0x00000002 // At 0x8000.0000
  9875. #define EPI_ADDRMAP_ERADR_HBQS 0x00000003 // Only to be used with Host Bus
  9876. // quad chip select. In quad chip
  9877. // select mode, CS0n maps to
  9878. // 0x6000.0000 and CS1n maps to
  9879. // 0x8000.0000
  9880. //*****************************************************************************
  9881. //
  9882. // The following are defines for the bit fields in the EPI_O_RSIZE0 register.
  9883. //
  9884. //*****************************************************************************
  9885. #define EPI_RSIZE0_SIZE_M 0x00000003 // Current Size
  9886. #define EPI_RSIZE0_SIZE_8BIT 0x00000001 // Byte (8 bits)
  9887. #define EPI_RSIZE0_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  9888. #define EPI_RSIZE0_SIZE_32BIT 0x00000003 // Word (32 bits)
  9889. //*****************************************************************************
  9890. //
  9891. // The following are defines for the bit fields in the EPI_O_RADDR0 register.
  9892. //
  9893. //*****************************************************************************
  9894. #define EPI_RADDR0_ADDR_M 0xFFFFFFFF // Current Address
  9895. #define EPI_RADDR0_ADDR_S 0
  9896. //*****************************************************************************
  9897. //
  9898. // The following are defines for the bit fields in the EPI_O_RPSTD0 register.
  9899. //
  9900. //*****************************************************************************
  9901. #define EPI_RPSTD0_POSTCNT_M 0x00001FFF // Post Count
  9902. #define EPI_RPSTD0_POSTCNT_S 0
  9903. //*****************************************************************************
  9904. //
  9905. // The following are defines for the bit fields in the EPI_O_RSIZE1 register.
  9906. //
  9907. //*****************************************************************************
  9908. #define EPI_RSIZE1_SIZE_M 0x00000003 // Current Size
  9909. #define EPI_RSIZE1_SIZE_8BIT 0x00000001 // Byte (8 bits)
  9910. #define EPI_RSIZE1_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  9911. #define EPI_RSIZE1_SIZE_32BIT 0x00000003 // Word (32 bits)
  9912. //*****************************************************************************
  9913. //
  9914. // The following are defines for the bit fields in the EPI_O_RADDR1 register.
  9915. //
  9916. //*****************************************************************************
  9917. #define EPI_RADDR1_ADDR_M 0xFFFFFFFF // Current Address
  9918. #define EPI_RADDR1_ADDR_S 0
  9919. //*****************************************************************************
  9920. //
  9921. // The following are defines for the bit fields in the EPI_O_RPSTD1 register.
  9922. //
  9923. //*****************************************************************************
  9924. #define EPI_RPSTD1_POSTCNT_M 0x00001FFF // Post Count
  9925. #define EPI_RPSTD1_POSTCNT_S 0
  9926. //*****************************************************************************
  9927. //
  9928. // The following are defines for the bit fields in the EPI_O_STAT register.
  9929. //
  9930. //*****************************************************************************
  9931. #define EPI_STAT_XFFULL 0x00000100 // External FIFO Full
  9932. #define EPI_STAT_XFEMPTY 0x00000080 // External FIFO Empty
  9933. #define EPI_STAT_INITSEQ 0x00000040 // Initialization Sequence
  9934. #define EPI_STAT_WBUSY 0x00000020 // Write Busy
  9935. #define EPI_STAT_NBRBUSY 0x00000010 // Non-Blocking Read Busy
  9936. #define EPI_STAT_ACTIVE 0x00000001 // Register Active
  9937. //*****************************************************************************
  9938. //
  9939. // The following are defines for the bit fields in the EPI_O_RFIFOCNT register.
  9940. //
  9941. //*****************************************************************************
  9942. #define EPI_RFIFOCNT_COUNT_M 0x0000000F // FIFO Count
  9943. #define EPI_RFIFOCNT_COUNT_S 0
  9944. //*****************************************************************************
  9945. //
  9946. // The following are defines for the bit fields in the EPI_O_READFIFO0
  9947. // register.
  9948. //
  9949. //*****************************************************************************
  9950. #define EPI_READFIFO0_DATA_M 0xFFFFFFFF // Reads Data
  9951. #define EPI_READFIFO0_DATA_S 0
  9952. //*****************************************************************************
  9953. //
  9954. // The following are defines for the bit fields in the EPI_O_READFIFO1
  9955. // register.
  9956. //
  9957. //*****************************************************************************
  9958. #define EPI_READFIFO1_DATA_M 0xFFFFFFFF // Reads Data
  9959. #define EPI_READFIFO1_DATA_S 0
  9960. //*****************************************************************************
  9961. //
  9962. // The following are defines for the bit fields in the EPI_O_READFIFO2
  9963. // register.
  9964. //
  9965. //*****************************************************************************
  9966. #define EPI_READFIFO2_DATA_M 0xFFFFFFFF // Reads Data
  9967. #define EPI_READFIFO2_DATA_S 0
  9968. //*****************************************************************************
  9969. //
  9970. // The following are defines for the bit fields in the EPI_O_READFIFO3
  9971. // register.
  9972. //
  9973. //*****************************************************************************
  9974. #define EPI_READFIFO3_DATA_M 0xFFFFFFFF // Reads Data
  9975. #define EPI_READFIFO3_DATA_S 0
  9976. //*****************************************************************************
  9977. //
  9978. // The following are defines for the bit fields in the EPI_O_READFIFO4
  9979. // register.
  9980. //
  9981. //*****************************************************************************
  9982. #define EPI_READFIFO4_DATA_M 0xFFFFFFFF // Reads Data
  9983. #define EPI_READFIFO4_DATA_S 0
  9984. //*****************************************************************************
  9985. //
  9986. // The following are defines for the bit fields in the EPI_O_READFIFO5
  9987. // register.
  9988. //
  9989. //*****************************************************************************
  9990. #define EPI_READFIFO5_DATA_M 0xFFFFFFFF // Reads Data
  9991. #define EPI_READFIFO5_DATA_S 0
  9992. //*****************************************************************************
  9993. //
  9994. // The following are defines for the bit fields in the EPI_O_READFIFO6
  9995. // register.
  9996. //
  9997. //*****************************************************************************
  9998. #define EPI_READFIFO6_DATA_M 0xFFFFFFFF // Reads Data
  9999. #define EPI_READFIFO6_DATA_S 0
  10000. //*****************************************************************************
  10001. //
  10002. // The following are defines for the bit fields in the EPI_O_READFIFO7
  10003. // register.
  10004. //
  10005. //*****************************************************************************
  10006. #define EPI_READFIFO7_DATA_M 0xFFFFFFFF // Reads Data
  10007. #define EPI_READFIFO7_DATA_S 0
  10008. //*****************************************************************************
  10009. //
  10010. // The following are defines for the bit fields in the EPI_O_FIFOLVL register.
  10011. //
  10012. //*****************************************************************************
  10013. #define EPI_FIFOLVL_WFERR 0x00020000 // Write Full Error
  10014. #define EPI_FIFOLVL_RSERR 0x00010000 // Read Stall Error
  10015. #define EPI_FIFOLVL_WRFIFO_M 0x00000070 // Write FIFO
  10016. #define EPI_FIFOLVL_WRFIFO_EMPT 0x00000000 // Interrupt is triggered while
  10017. // WRFIFO is empty.
  10018. #define EPI_FIFOLVL_WRFIFO_2 0x00000020 // Interrupt is triggered until
  10019. // there are only two slots
  10020. // available. Thus, trigger is
  10021. // deasserted when there are two
  10022. // WRFIFO entries present. This
  10023. // configuration is optimized for
  10024. // bursts of 2
  10025. #define EPI_FIFOLVL_WRFIFO_1 0x00000030 // Interrupt is triggered until
  10026. // there is one WRFIFO entry
  10027. // available. This configuration
  10028. // expects only single writes
  10029. #define EPI_FIFOLVL_WRFIFO_NFULL \
  10030. 0x00000040 // Trigger interrupt when WRFIFO is
  10031. // not full, meaning trigger will
  10032. // continue to assert until there
  10033. // are four entries in the WRFIFO
  10034. #define EPI_FIFOLVL_RDFIFO_M 0x00000007 // Read FIFO
  10035. #define EPI_FIFOLVL_RDFIFO_1 0x00000001 // Trigger when there are 1 or more
  10036. // entries in the NBRFIFO
  10037. #define EPI_FIFOLVL_RDFIFO_2 0x00000002 // Trigger when there are 2 or more
  10038. // entries in the NBRFIFO
  10039. #define EPI_FIFOLVL_RDFIFO_4 0x00000003 // Trigger when there are 4 or more
  10040. // entries in the NBRFIFO
  10041. #define EPI_FIFOLVL_RDFIFO_6 0x00000004 // Trigger when there are 6 or more
  10042. // entries in the NBRFIFO
  10043. #define EPI_FIFOLVL_RDFIFO_7 0x00000005 // Trigger when there are 7 or more
  10044. // entries in the NBRFIFO
  10045. #define EPI_FIFOLVL_RDFIFO_8 0x00000006 // Trigger when there are 8 entries
  10046. // in the NBRFIFO
  10047. //*****************************************************************************
  10048. //
  10049. // The following are defines for the bit fields in the EPI_O_WFIFOCNT register.
  10050. //
  10051. //*****************************************************************************
  10052. #define EPI_WFIFOCNT_WTAV_M 0x00000007 // Available Write Transactions
  10053. #define EPI_WFIFOCNT_WTAV_S 0
  10054. //*****************************************************************************
  10055. //
  10056. // The following are defines for the bit fields in the EPI_O_DMATXCNT register.
  10057. //
  10058. //*****************************************************************************
  10059. #define EPI_DMATXCNT_TXCNT_M 0x0000FFFF // DMA Count
  10060. #define EPI_DMATXCNT_TXCNT_S 0
  10061. //*****************************************************************************
  10062. //
  10063. // The following are defines for the bit fields in the EPI_O_IM register.
  10064. //
  10065. //*****************************************************************************
  10066. #define EPI_IM_DMAWRIM 0x00000010 // Write uDMA Interrupt Mask
  10067. #define EPI_IM_DMARDIM 0x00000008 // Read uDMA Interrupt Mask
  10068. #define EPI_IM_WRIM 0x00000004 // Write FIFO Empty Interrupt Mask
  10069. #define EPI_IM_RDIM 0x00000002 // Read FIFO Full Interrupt Mask
  10070. #define EPI_IM_ERRIM 0x00000001 // Error Interrupt Mask
  10071. //*****************************************************************************
  10072. //
  10073. // The following are defines for the bit fields in the EPI_O_RIS register.
  10074. //
  10075. //*****************************************************************************
  10076. #define EPI_RIS_DMAWRRIS 0x00000010 // Write uDMA Raw Interrupt Status
  10077. #define EPI_RIS_DMARDRIS 0x00000008 // Read uDMA Raw Interrupt Status
  10078. #define EPI_RIS_WRRIS 0x00000004 // Write Raw Interrupt Status
  10079. #define EPI_RIS_RDRIS 0x00000002 // Read Raw Interrupt Status
  10080. #define EPI_RIS_ERRRIS 0x00000001 // Error Raw Interrupt Status
  10081. //*****************************************************************************
  10082. //
  10083. // The following are defines for the bit fields in the EPI_O_MIS register.
  10084. //
  10085. //*****************************************************************************
  10086. #define EPI_MIS_DMAWRMIS 0x00000010 // Write uDMA Masked Interrupt
  10087. // Status
  10088. #define EPI_MIS_DMARDMIS 0x00000008 // Read uDMA Masked Interrupt
  10089. // Status
  10090. #define EPI_MIS_WRMIS 0x00000004 // Write Masked Interrupt Status
  10091. #define EPI_MIS_RDMIS 0x00000002 // Read Masked Interrupt Status
  10092. #define EPI_MIS_ERRMIS 0x00000001 // Error Masked Interrupt Status
  10093. //*****************************************************************************
  10094. //
  10095. // The following are defines for the bit fields in the EPI_O_EISC register.
  10096. //
  10097. //*****************************************************************************
  10098. #define EPI_EISC_DMAWRIC 0x00000010 // Write uDMA Interrupt Clear
  10099. #define EPI_EISC_DMARDIC 0x00000008 // Read uDMA Interrupt Clear
  10100. #define EPI_EISC_WTFULL 0x00000004 // Write FIFO Full Error
  10101. #define EPI_EISC_RSTALL 0x00000002 // Read Stalled Error
  10102. #define EPI_EISC_TOUT 0x00000001 // Timeout Error
  10103. //*****************************************************************************
  10104. //
  10105. // The following are defines for the bit fields in the EPI_O_HB8CFG3 register.
  10106. //
  10107. //*****************************************************************************
  10108. #define EPI_HB8CFG3_WRHIGH 0x00200000 // CS2n WRITE Strobe Polarity
  10109. #define EPI_HB8CFG3_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10110. #define EPI_HB8CFG3_ALEHIGH 0x00080000 // CS2n ALE Strobe Polarity
  10111. #define EPI_HB8CFG3_WRWS_M 0x000000C0 // CS2n Write Wait States
  10112. #define EPI_HB8CFG3_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10113. #define EPI_HB8CFG3_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10114. #define EPI_HB8CFG3_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10115. #define EPI_HB8CFG3_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10116. #define EPI_HB8CFG3_RDWS_M 0x00000030 // CS2n Read Wait States
  10117. #define EPI_HB8CFG3_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10118. #define EPI_HB8CFG3_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10119. #define EPI_HB8CFG3_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10120. #define EPI_HB8CFG3_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10121. #define EPI_HB8CFG3_MODE_M 0x00000003 // CS2n Host Bus Sub-Mode
  10122. #define EPI_HB8CFG3_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  10123. #define EPI_HB8CFG3_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  10124. //*****************************************************************************
  10125. //
  10126. // The following are defines for the bit fields in the EPI_O_HB16CFG3 register.
  10127. //
  10128. //*****************************************************************************
  10129. #define EPI_HB16CFG3_WRHIGH 0x00200000 // CS2n WRITE Strobe Polarity
  10130. #define EPI_HB16CFG3_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10131. #define EPI_HB16CFG3_ALEHIGH 0x00080000 // CS2n ALE Strobe Polarity
  10132. #define EPI_HB16CFG3_WRCRE 0x00040000 // CS2n PSRAM Configuration
  10133. // Register Write
  10134. #define EPI_HB16CFG3_RDCRE 0x00020000 // CS2n PSRAM Configuration
  10135. // Register Read
  10136. #define EPI_HB16CFG3_BURST 0x00010000 // CS2n Burst Mode
  10137. #define EPI_HB16CFG3_WRWS_M 0x000000C0 // CS2n Write Wait States
  10138. #define EPI_HB16CFG3_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10139. #define EPI_HB16CFG3_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10140. #define EPI_HB16CFG3_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10141. #define EPI_HB16CFG3_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10142. #define EPI_HB16CFG3_RDWS_M 0x00000030 // CS2n Read Wait States
  10143. #define EPI_HB16CFG3_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10144. #define EPI_HB16CFG3_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10145. #define EPI_HB16CFG3_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10146. #define EPI_HB16CFG3_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10147. #define EPI_HB16CFG3_MODE_M 0x00000003 // CS2n Host Bus Sub-Mode
  10148. #define EPI_HB16CFG3_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10149. #define EPI_HB16CFG3_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  10150. //*****************************************************************************
  10151. //
  10152. // The following are defines for the bit fields in the EPI_O_HB16CFG4 register.
  10153. //
  10154. //*****************************************************************************
  10155. #define EPI_HB16CFG4_WRHIGH 0x00200000 // CS3n WRITE Strobe Polarity
  10156. #define EPI_HB16CFG4_RDHIGH 0x00100000 // CS3n READ Strobe Polarity
  10157. #define EPI_HB16CFG4_ALEHIGH 0x00080000 // CS3n ALE Strobe Polarity
  10158. #define EPI_HB16CFG4_WRCRE 0x00040000 // CS3n PSRAM Configuration
  10159. // Register Write
  10160. #define EPI_HB16CFG4_RDCRE 0x00020000 // CS3n PSRAM Configuration
  10161. // Register Read
  10162. #define EPI_HB16CFG4_BURST 0x00010000 // CS3n Burst Mode
  10163. #define EPI_HB16CFG4_WRWS_M 0x000000C0 // CS3n Write Wait States
  10164. #define EPI_HB16CFG4_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10165. #define EPI_HB16CFG4_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10166. #define EPI_HB16CFG4_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10167. #define EPI_HB16CFG4_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10168. #define EPI_HB16CFG4_RDWS_M 0x00000030 // CS3n Read Wait States
  10169. #define EPI_HB16CFG4_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10170. #define EPI_HB16CFG4_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10171. #define EPI_HB16CFG4_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10172. #define EPI_HB16CFG4_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10173. #define EPI_HB16CFG4_MODE_M 0x00000003 // CS3n Host Bus Sub-Mode
  10174. #define EPI_HB16CFG4_MODE_ADMUX 0x00000000 // ADMUX - AD[15:0]
  10175. #define EPI_HB16CFG4_MODE_AD 0x00000001 // ADNONMUX - D[15:0]
  10176. //*****************************************************************************
  10177. //
  10178. // The following are defines for the bit fields in the EPI_O_HB8CFG4 register.
  10179. //
  10180. //*****************************************************************************
  10181. #define EPI_HB8CFG4_WRHIGH 0x00200000 // CS3n WRITE Strobe Polarity
  10182. #define EPI_HB8CFG4_RDHIGH 0x00100000 // CS2n READ Strobe Polarity
  10183. #define EPI_HB8CFG4_ALEHIGH 0x00080000 // CS3n ALE Strobe Polarity
  10184. #define EPI_HB8CFG4_WRWS_M 0x000000C0 // CS3n Write Wait States
  10185. #define EPI_HB8CFG4_WRWS_2 0x00000000 // Active WRn is 2 EPI clocks
  10186. #define EPI_HB8CFG4_WRWS_4 0x00000040 // Active WRn is 4 EPI clocks
  10187. #define EPI_HB8CFG4_WRWS_6 0x00000080 // Active WRn is 6 EPI clocks
  10188. #define EPI_HB8CFG4_WRWS_8 0x000000C0 // Active WRn is 8 EPI clocks
  10189. #define EPI_HB8CFG4_RDWS_M 0x00000030 // CS3n Read Wait States
  10190. #define EPI_HB8CFG4_RDWS_2 0x00000000 // Active RDn is 2 EPI clocks
  10191. #define EPI_HB8CFG4_RDWS_4 0x00000010 // Active RDn is 4 EPI clocks
  10192. #define EPI_HB8CFG4_RDWS_6 0x00000020 // Active RDn is 6 EPI clocks
  10193. #define EPI_HB8CFG4_RDWS_8 0x00000030 // Active RDn is 8 EPI clocks
  10194. #define EPI_HB8CFG4_MODE_M 0x00000003 // CS3n Host Bus Sub-Mode
  10195. #define EPI_HB8CFG4_MODE_ADMUX 0x00000000 // ADMUX - AD[7:0]
  10196. #define EPI_HB8CFG4_MODE_AD 0x00000001 // ADNONMUX - D[7:0]
  10197. //*****************************************************************************
  10198. //
  10199. // The following are defines for the bit fields in the EPI_O_HB8TIME register.
  10200. //
  10201. //*****************************************************************************
  10202. #define EPI_HB8TIME_IRDYDLY_M 0x03000000 // CS0n Input Ready Delay
  10203. #define EPI_HB8TIME_CAPWIDTH_M 0x00003000 // CS0n Inter-transfer Capture
  10204. // Width
  10205. #define EPI_HB8TIME_WRWSM 0x00000010 // Write Wait State Minus One
  10206. #define EPI_HB8TIME_RDWSM 0x00000001 // Read Wait State Minus One
  10207. #define EPI_HB8TIME_IRDYDLY_S 24
  10208. #define EPI_HB8TIME_CAPWIDTH_S 12
  10209. //*****************************************************************************
  10210. //
  10211. // The following are defines for the bit fields in the EPI_O_HB16TIME register.
  10212. //
  10213. //*****************************************************************************
  10214. #define EPI_HB16TIME_IRDYDLY_M 0x03000000 // CS0n Input Ready Delay
  10215. #define EPI_HB16TIME_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10216. #define EPI_HB16TIME_PSRAMSZ_0 0x00000000 // No row size limitation
  10217. #define EPI_HB16TIME_PSRAMSZ_128B \
  10218. 0x00010000 // 128 B
  10219. #define EPI_HB16TIME_PSRAMSZ_256B \
  10220. 0x00020000 // 256 B
  10221. #define EPI_HB16TIME_PSRAMSZ_512B \
  10222. 0x00030000 // 512 B
  10223. #define EPI_HB16TIME_PSRAMSZ_1KB \
  10224. 0x00040000 // 1024 B
  10225. #define EPI_HB16TIME_PSRAMSZ_2KB \
  10226. 0x00050000 // 2048 B
  10227. #define EPI_HB16TIME_PSRAMSZ_4KB \
  10228. 0x00060000 // 4096 B
  10229. #define EPI_HB16TIME_PSRAMSZ_8KB \
  10230. 0x00070000 // 8192 B
  10231. #define EPI_HB16TIME_CAPWIDTH_M 0x00003000 // CS0n Inter-transfer Capture
  10232. // Width
  10233. #define EPI_HB16TIME_WRWSM 0x00000010 // Write Wait State Minus One
  10234. #define EPI_HB16TIME_RDWSM 0x00000001 // Read Wait State Minus One
  10235. #define EPI_HB16TIME_IRDYDLY_S 24
  10236. #define EPI_HB16TIME_CAPWIDTH_S 12
  10237. //*****************************************************************************
  10238. //
  10239. // The following are defines for the bit fields in the EPI_O_HB8TIME2 register.
  10240. //
  10241. //*****************************************************************************
  10242. #define EPI_HB8TIME2_IRDYDLY_M 0x03000000 // CS1n Input Ready Delay
  10243. #define EPI_HB8TIME2_CAPWIDTH_M 0x00003000 // CS1n Inter-transfer Capture
  10244. // Width
  10245. #define EPI_HB8TIME2_WRWSM 0x00000010 // CS1n Write Wait State Minus One
  10246. #define EPI_HB8TIME2_RDWSM 0x00000001 // CS1n Read Wait State Minus One
  10247. #define EPI_HB8TIME2_IRDYDLY_S 24
  10248. #define EPI_HB8TIME2_CAPWIDTH_S 12
  10249. //*****************************************************************************
  10250. //
  10251. // The following are defines for the bit fields in the EPI_O_HB16TIME2
  10252. // register.
  10253. //
  10254. //*****************************************************************************
  10255. #define EPI_HB16TIME2_IRDYDLY_M 0x03000000 // CS1n Input Ready Delay
  10256. #define EPI_HB16TIME2_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10257. #define EPI_HB16TIME2_PSRAMSZ_0 0x00000000 // No row size limitation
  10258. #define EPI_HB16TIME2_PSRAMSZ_128B \
  10259. 0x00010000 // 128 B
  10260. #define EPI_HB16TIME2_PSRAMSZ_256B \
  10261. 0x00020000 // 256 B
  10262. #define EPI_HB16TIME2_PSRAMSZ_512B \
  10263. 0x00030000 // 512 B
  10264. #define EPI_HB16TIME2_PSRAMSZ_1KB \
  10265. 0x00040000 // 1024 B
  10266. #define EPI_HB16TIME2_PSRAMSZ_2KB \
  10267. 0x00050000 // 2048 B
  10268. #define EPI_HB16TIME2_PSRAMSZ_4KB \
  10269. 0x00060000 // 4096 B
  10270. #define EPI_HB16TIME2_PSRAMSZ_8KB \
  10271. 0x00070000 // 8192 B
  10272. #define EPI_HB16TIME2_CAPWIDTH_M \
  10273. 0x00003000 // CS1n Inter-transfer Capture
  10274. // Width
  10275. #define EPI_HB16TIME2_WRWSM 0x00000010 // CS1n Write Wait State Minus One
  10276. #define EPI_HB16TIME2_RDWSM 0x00000001 // CS1n Read Wait State Minus One
  10277. #define EPI_HB16TIME2_IRDYDLY_S 24
  10278. #define EPI_HB16TIME2_CAPWIDTH_S \
  10279. 12
  10280. //*****************************************************************************
  10281. //
  10282. // The following are defines for the bit fields in the EPI_O_HB16TIME3
  10283. // register.
  10284. //
  10285. //*****************************************************************************
  10286. #define EPI_HB16TIME3_IRDYDLY_M 0x03000000 // CS2n Input Ready Delay
  10287. #define EPI_HB16TIME3_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10288. #define EPI_HB16TIME3_PSRAMSZ_0 0x00000000 // No row size limitation
  10289. #define EPI_HB16TIME3_PSRAMSZ_128B \
  10290. 0x00010000 // 128 B
  10291. #define EPI_HB16TIME3_PSRAMSZ_256B \
  10292. 0x00020000 // 256 B
  10293. #define EPI_HB16TIME3_PSRAMSZ_512B \
  10294. 0x00030000 // 512 B
  10295. #define EPI_HB16TIME3_PSRAMSZ_1KB \
  10296. 0x00040000 // 1024 B
  10297. #define EPI_HB16TIME3_PSRAMSZ_2KB \
  10298. 0x00050000 // 2048 B
  10299. #define EPI_HB16TIME3_PSRAMSZ_4KB \
  10300. 0x00060000 // 4096 B
  10301. #define EPI_HB16TIME3_PSRAMSZ_8KB \
  10302. 0x00070000 // 8192 B
  10303. #define EPI_HB16TIME3_CAPWIDTH_M \
  10304. 0x00003000 // CS2n Inter-transfer Capture
  10305. // Width
  10306. #define EPI_HB16TIME3_WRWSM 0x00000010 // CS2n Write Wait State Minus One
  10307. #define EPI_HB16TIME3_RDWSM 0x00000001 // CS2n Read Wait State Minus One
  10308. #define EPI_HB16TIME3_IRDYDLY_S 24
  10309. #define EPI_HB16TIME3_CAPWIDTH_S \
  10310. 12
  10311. //*****************************************************************************
  10312. //
  10313. // The following are defines for the bit fields in the EPI_O_HB8TIME3 register.
  10314. //
  10315. //*****************************************************************************
  10316. #define EPI_HB8TIME3_IRDYDLY_M 0x03000000 // CS2n Input Ready Delay
  10317. #define EPI_HB8TIME3_CAPWIDTH_M 0x00003000 // CS2n Inter-transfer Capture
  10318. // Width
  10319. #define EPI_HB8TIME3_WRWSM 0x00000010 // CS2n Write Wait State Minus One
  10320. #define EPI_HB8TIME3_RDWSM 0x00000001 // CS2n Read Wait State Minus One
  10321. #define EPI_HB8TIME3_IRDYDLY_S 24
  10322. #define EPI_HB8TIME3_CAPWIDTH_S 12
  10323. //*****************************************************************************
  10324. //
  10325. // The following are defines for the bit fields in the EPI_O_HB8TIME4 register.
  10326. //
  10327. //*****************************************************************************
  10328. #define EPI_HB8TIME4_IRDYDLY_M 0x03000000 // CS3n Input Ready Delay
  10329. #define EPI_HB8TIME4_CAPWIDTH_M 0x00003000 // CS3n Inter-transfer Capture
  10330. // Width
  10331. #define EPI_HB8TIME4_WRWSM 0x00000010 // CS3n Write Wait State Minus One
  10332. #define EPI_HB8TIME4_RDWSM 0x00000001 // CS3n Read Wait State Minus One
  10333. #define EPI_HB8TIME4_IRDYDLY_S 24
  10334. #define EPI_HB8TIME4_CAPWIDTH_S 12
  10335. //*****************************************************************************
  10336. //
  10337. // The following are defines for the bit fields in the EPI_O_HB16TIME4
  10338. // register.
  10339. //
  10340. //*****************************************************************************
  10341. #define EPI_HB16TIME4_IRDYDLY_M 0x03000000 // CS3n Input Ready Delay
  10342. #define EPI_HB16TIME4_PSRAMSZ_M 0x00070000 // PSRAM Row Size
  10343. #define EPI_HB16TIME4_PSRAMSZ_0 0x00000000 // No row size limitation
  10344. #define EPI_HB16TIME4_PSRAMSZ_128B \
  10345. 0x00010000 // 128 B
  10346. #define EPI_HB16TIME4_PSRAMSZ_256B \
  10347. 0x00020000 // 256 B
  10348. #define EPI_HB16TIME4_PSRAMSZ_512B \
  10349. 0x00030000 // 512 B
  10350. #define EPI_HB16TIME4_PSRAMSZ_1KB \
  10351. 0x00040000 // 1024 B
  10352. #define EPI_HB16TIME4_PSRAMSZ_2KB \
  10353. 0x00050000 // 2048 B
  10354. #define EPI_HB16TIME4_PSRAMSZ_4KB \
  10355. 0x00060000 // 4096 B
  10356. #define EPI_HB16TIME4_PSRAMSZ_8KB \
  10357. 0x00070000 // 8192 B
  10358. #define EPI_HB16TIME4_CAPWIDTH_M \
  10359. 0x00003000 // CS3n Inter-transfer Capture
  10360. // Width
  10361. #define EPI_HB16TIME4_WRWSM 0x00000010 // CS3n Write Wait State Minus One
  10362. #define EPI_HB16TIME4_RDWSM 0x00000001 // CS3n Read Wait State Minus One
  10363. #define EPI_HB16TIME4_IRDYDLY_S 24
  10364. #define EPI_HB16TIME4_CAPWIDTH_S \
  10365. 12
  10366. //*****************************************************************************
  10367. //
  10368. // The following are defines for the bit fields in the EPI_O_HBPSRAM register.
  10369. //
  10370. //*****************************************************************************
  10371. #define EPI_HBPSRAM_CR_M 0x001FFFFF // PSRAM Config Register
  10372. #define EPI_HBPSRAM_CR_S 0
  10373. //*****************************************************************************
  10374. //
  10375. // The following are defines for the bit fields in the SYSEXC_RIS register.
  10376. //
  10377. //*****************************************************************************
  10378. #define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
  10379. // Raw Interrupt Status
  10380. #define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
  10381. // Exception Raw Interrupt Status
  10382. #define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
  10383. // Exception Raw Interrupt Status
  10384. #define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
  10385. // Raw Interrupt Status
  10386. #define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
  10387. // Exception Raw Interrupt Status
  10388. #define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
  10389. // Exception Raw Interrupt Status
  10390. //*****************************************************************************
  10391. //
  10392. // The following are defines for the bit fields in the SYSEXC_IM register.
  10393. //
  10394. //*****************************************************************************
  10395. #define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
  10396. // Interrupt Mask
  10397. #define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
  10398. // Exception Interrupt Mask
  10399. #define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
  10400. // Exception Interrupt Mask
  10401. #define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
  10402. // Interrupt Mask
  10403. #define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
  10404. // Exception Interrupt Mask
  10405. #define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
  10406. // Exception Interrupt Mask
  10407. //*****************************************************************************
  10408. //
  10409. // The following are defines for the bit fields in the SYSEXC_MIS register.
  10410. //
  10411. //*****************************************************************************
  10412. #define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
  10413. // Masked Interrupt Status
  10414. #define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
  10415. // Exception Masked Interrupt
  10416. // Status
  10417. #define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
  10418. // Exception Masked Interrupt
  10419. // Status
  10420. #define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
  10421. // Masked Interrupt Status
  10422. #define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
  10423. // Exception Masked Interrupt
  10424. // Status
  10425. #define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
  10426. // Exception Masked Interrupt
  10427. // Status
  10428. //*****************************************************************************
  10429. //
  10430. // The following are defines for the bit fields in the SYSEXC_IC register.
  10431. //
  10432. //*****************************************************************************
  10433. #define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
  10434. // Interrupt Clear
  10435. #define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
  10436. // Exception Interrupt Clear
  10437. #define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
  10438. // Exception Interrupt Clear
  10439. #define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
  10440. // Interrupt Clear
  10441. #define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
  10442. // Exception Interrupt Clear
  10443. #define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
  10444. // Exception Interrupt Clear
  10445. //*****************************************************************************
  10446. //
  10447. // The following are defines for the bit fields in the HIB_RTCC register.
  10448. //
  10449. //*****************************************************************************
  10450. #define HIB_RTCC_M 0xFFFFFFFF // RTC Counter
  10451. #define HIB_RTCC_S 0
  10452. //*****************************************************************************
  10453. //
  10454. // The following are defines for the bit fields in the HIB_RTCM0 register.
  10455. //
  10456. //*****************************************************************************
  10457. #define HIB_RTCM0_M 0xFFFFFFFF // RTC Match 0
  10458. #define HIB_RTCM0_S 0
  10459. //*****************************************************************************
  10460. //
  10461. // The following are defines for the bit fields in the HIB_RTCLD register.
  10462. //
  10463. //*****************************************************************************
  10464. #define HIB_RTCLD_M 0xFFFFFFFF // RTC Load
  10465. #define HIB_RTCLD_S 0
  10466. //*****************************************************************************
  10467. //
  10468. // The following are defines for the bit fields in the HIB_CTL register.
  10469. //
  10470. //*****************************************************************************
  10471. #define HIB_CTL_WRC 0x80000000 // Write Complete/Capable
  10472. #define HIB_CTL_RETCLR 0x40000000 // GPIO Retention/Clear
  10473. #define HIB_CTL_OSCSEL 0x00080000 // Oscillator Select
  10474. #define HIB_CTL_OSCDRV 0x00020000 // Oscillator Drive Capability
  10475. #define HIB_CTL_OSCBYP 0x00010000 // Oscillator Bypass
  10476. #define HIB_CTL_VBATSEL_M 0x00006000 // Select for Low-Battery
  10477. // Comparator
  10478. #define HIB_CTL_VBATSEL_1_9V 0x00000000 // 1.9 Volts
  10479. #define HIB_CTL_VBATSEL_2_1V 0x00002000 // 2.1 Volts (default)
  10480. #define HIB_CTL_VBATSEL_2_3V 0x00004000 // 2.3 Volts
  10481. #define HIB_CTL_VBATSEL_2_5V 0x00006000 // 2.5 Volts
  10482. #define HIB_CTL_BATCHK 0x00000400 // Check Battery Status
  10483. #define HIB_CTL_BATWKEN 0x00000200 // Wake on Low Battery
  10484. #define HIB_CTL_VDD3ON 0x00000100 // VDD Powered
  10485. #define HIB_CTL_VABORT 0x00000080 // Power Cut Abort Enable
  10486. #define HIB_CTL_CLK32EN 0x00000040 // Clocking Enable
  10487. #define HIB_CTL_PINWEN 0x00000010 // External Wake Pin Enable
  10488. #define HIB_CTL_RTCWEN 0x00000008 // RTC Wake-up Enable
  10489. #define HIB_CTL_HIBREQ 0x00000002 // Hibernation Request
  10490. #define HIB_CTL_RTCEN 0x00000001 // RTC Timer Enable
  10491. //*****************************************************************************
  10492. //
  10493. // The following are defines for the bit fields in the HIB_IM register.
  10494. //
  10495. //*****************************************************************************
  10496. #define HIB_IM_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  10497. #define HIB_IM_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10498. // Mask
  10499. #define HIB_IM_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  10500. #define HIB_IM_WC 0x00000010 // External Write Complete/Capable
  10501. // Interrupt Mask
  10502. #define HIB_IM_EXTW 0x00000008 // External Wake-Up Interrupt Mask
  10503. #define HIB_IM_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  10504. // Mask
  10505. #define HIB_IM_RTCALT0 0x00000001 // RTC Alert 0 Interrupt Mask
  10506. //*****************************************************************************
  10507. //
  10508. // The following are defines for the bit fields in the HIB_RIS register.
  10509. //
  10510. //*****************************************************************************
  10511. #define HIB_RIS_VDDFAIL 0x00000080 // VDD Fail Raw Interrupt Status
  10512. #define HIB_RIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Raw
  10513. // Interrupt Status
  10514. #define HIB_RIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Raw Interrupt
  10515. // Status
  10516. #define HIB_RIS_WC 0x00000010 // Write Complete/Capable Raw
  10517. // Interrupt Status
  10518. #define HIB_RIS_EXTW 0x00000008 // External Wake-Up Raw Interrupt
  10519. // Status
  10520. #define HIB_RIS_LOWBAT 0x00000004 // Low Battery Voltage Raw
  10521. // Interrupt Status
  10522. #define HIB_RIS_RTCALT0 0x00000001 // RTC Alert 0 Raw Interrupt Status
  10523. //*****************************************************************************
  10524. //
  10525. // The following are defines for the bit fields in the HIB_MIS register.
  10526. //
  10527. //*****************************************************************************
  10528. #define HIB_MIS_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  10529. #define HIB_MIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10530. // Mask
  10531. #define HIB_MIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  10532. #define HIB_MIS_WC 0x00000010 // Write Complete/Capable Masked
  10533. // Interrupt Status
  10534. #define HIB_MIS_EXTW 0x00000008 // External Wake-Up Masked
  10535. // Interrupt Status
  10536. #define HIB_MIS_LOWBAT 0x00000004 // Low Battery Voltage Masked
  10537. // Interrupt Status
  10538. #define HIB_MIS_RTCALT0 0x00000001 // RTC Alert 0 Masked Interrupt
  10539. // Status
  10540. //*****************************************************************************
  10541. //
  10542. // The following are defines for the bit fields in the HIB_IC register.
  10543. //
  10544. //*****************************************************************************
  10545. #define HIB_IC_VDDFAIL 0x00000080 // VDD Fail Interrupt Clear
  10546. #define HIB_IC_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  10547. // Clear
  10548. #define HIB_IC_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Clear
  10549. #define HIB_IC_WC 0x00000010 // Write Complete/Capable Interrupt
  10550. // Clear
  10551. #define HIB_IC_EXTW 0x00000008 // External Wake-Up Interrupt Clear
  10552. #define HIB_IC_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  10553. // Clear
  10554. #define HIB_IC_RTCALT0 0x00000001 // RTC Alert0 Masked Interrupt
  10555. // Clear
  10556. //*****************************************************************************
  10557. //
  10558. // The following are defines for the bit fields in the HIB_RTCT register.
  10559. //
  10560. //*****************************************************************************
  10561. #define HIB_RTCT_TRIM_M 0x0000FFFF // RTC Trim Value
  10562. #define HIB_RTCT_TRIM_S 0
  10563. //*****************************************************************************
  10564. //
  10565. // The following are defines for the bit fields in the HIB_RTCSS register.
  10566. //
  10567. //*****************************************************************************
  10568. #define HIB_RTCSS_RTCSSM_M 0x7FFF0000 // RTC Sub Seconds Match
  10569. #define HIB_RTCSS_RTCSSC_M 0x00007FFF // RTC Sub Seconds Count
  10570. #define HIB_RTCSS_RTCSSM_S 16
  10571. #define HIB_RTCSS_RTCSSC_S 0
  10572. //*****************************************************************************
  10573. //
  10574. // The following are defines for the bit fields in the HIB_IO register.
  10575. //
  10576. //*****************************************************************************
  10577. #define HIB_IO_IOWRC 0x80000000 // I/O Write Complete
  10578. #define HIB_IO_WURSTEN 0x00000010 // Reset Wake Source Enable
  10579. #define HIB_IO_WUUNLK 0x00000001 // I/O Wake Pad Configuration
  10580. // Enable
  10581. //*****************************************************************************
  10582. //
  10583. // The following are defines for the bit fields in the HIB_DATA register.
  10584. //
  10585. //*****************************************************************************
  10586. #define HIB_DATA_RTD_M 0xFFFFFFFF // Hibernation Module NV Data
  10587. #define HIB_DATA_RTD_S 0
  10588. //*****************************************************************************
  10589. //
  10590. // The following are defines for the bit fields in the HIB_CALCTL register.
  10591. //
  10592. //*****************************************************************************
  10593. #define HIB_CALCTL_CAL24 0x00000004 // Calendar Mode
  10594. #define HIB_CALCTL_CALEN 0x00000001 // RTC Calendar/Counter Mode Select
  10595. //*****************************************************************************
  10596. //
  10597. // The following are defines for the bit fields in the HIB_CAL0 register.
  10598. //
  10599. //*****************************************************************************
  10600. #define HIB_CAL0_VALID 0x80000000 // Valid Calendar Load
  10601. #define HIB_CAL0_AMPM 0x00400000 // AM/PM Designation
  10602. #define HIB_CAL0_HR_M 0x001F0000 // Hours
  10603. #define HIB_CAL0_MIN_M 0x00003F00 // Minutes
  10604. #define HIB_CAL0_SEC_M 0x0000003F // Seconds
  10605. #define HIB_CAL0_HR_S 16
  10606. #define HIB_CAL0_MIN_S 8
  10607. #define HIB_CAL0_SEC_S 0
  10608. //*****************************************************************************
  10609. //
  10610. // The following are defines for the bit fields in the HIB_CAL1 register.
  10611. //
  10612. //*****************************************************************************
  10613. #define HIB_CAL1_VALID 0x80000000 // Valid Calendar Load
  10614. #define HIB_CAL1_DOW_M 0x07000000 // Day of Week
  10615. #define HIB_CAL1_YEAR_M 0x007F0000 // Year Value
  10616. #define HIB_CAL1_MON_M 0x00000F00 // Month
  10617. #define HIB_CAL1_DOM_M 0x0000001F // Day of Month
  10618. #define HIB_CAL1_DOW_S 24
  10619. #define HIB_CAL1_YEAR_S 16
  10620. #define HIB_CAL1_MON_S 8
  10621. #define HIB_CAL1_DOM_S 0
  10622. //*****************************************************************************
  10623. //
  10624. // The following are defines for the bit fields in the HIB_CALLD0 register.
  10625. //
  10626. //*****************************************************************************
  10627. #define HIB_CALLD0_AMPM 0x00400000 // AM/PM Designation
  10628. #define HIB_CALLD0_HR_M 0x001F0000 // Hours
  10629. #define HIB_CALLD0_MIN_M 0x00003F00 // Minutes
  10630. #define HIB_CALLD0_SEC_M 0x0000003F // Seconds
  10631. #define HIB_CALLD0_HR_S 16
  10632. #define HIB_CALLD0_MIN_S 8
  10633. #define HIB_CALLD0_SEC_S 0
  10634. //*****************************************************************************
  10635. //
  10636. // The following are defines for the bit fields in the HIB_CALLD1 register.
  10637. //
  10638. //*****************************************************************************
  10639. #define HIB_CALLD1_DOW_M 0x07000000 // Day of Week
  10640. #define HIB_CALLD1_YEAR_M 0x007F0000 // Year Value
  10641. #define HIB_CALLD1_MON_M 0x00000F00 // Month
  10642. #define HIB_CALLD1_DOM_M 0x0000001F // Day of Month
  10643. #define HIB_CALLD1_DOW_S 24
  10644. #define HIB_CALLD1_YEAR_S 16
  10645. #define HIB_CALLD1_MON_S 8
  10646. #define HIB_CALLD1_DOM_S 0
  10647. //*****************************************************************************
  10648. //
  10649. // The following are defines for the bit fields in the HIB_CALM0 register.
  10650. //
  10651. //*****************************************************************************
  10652. #define HIB_CALM0_AMPM 0x00400000 // AM/PM Designation
  10653. #define HIB_CALM0_HR_M 0x001F0000 // Hours
  10654. #define HIB_CALM0_MIN_M 0x00003F00 // Minutes
  10655. #define HIB_CALM0_SEC_M 0x0000003F // Seconds
  10656. #define HIB_CALM0_HR_S 16
  10657. #define HIB_CALM0_MIN_S 8
  10658. #define HIB_CALM0_SEC_S 0
  10659. //*****************************************************************************
  10660. //
  10661. // The following are defines for the bit fields in the HIB_CALM1 register.
  10662. //
  10663. //*****************************************************************************
  10664. #define HIB_CALM1_DOM_M 0x0000001F // Day of Month
  10665. #define HIB_CALM1_DOM_S 0
  10666. //*****************************************************************************
  10667. //
  10668. // The following are defines for the bit fields in the HIB_LOCK register.
  10669. //
  10670. //*****************************************************************************
  10671. #define HIB_LOCK_HIBLOCK_M 0xFFFFFFFF // HIbernate Lock
  10672. #define HIB_LOCK_HIBLOCK_S 0
  10673. //*****************************************************************************
  10674. //
  10675. // The following are defines for the bit fields in the HIB_TPCTL register.
  10676. //
  10677. //*****************************************************************************
  10678. #define HIB_TPCTL_WAKE 0x00000800 // Wake from Hibernate on a Tamper
  10679. // Event
  10680. #define HIB_TPCTL_MEMCLR_M 0x00000300 // HIB Memory Clear on Tamper Event
  10681. #define HIB_TPCTL_MEMCLR_NONE 0x00000000 // Do not Clear HIB memory on
  10682. // tamper event
  10683. #define HIB_TPCTL_MEMCLR_LOW32 0x00000100 // Clear Lower 32 Bytes of HIB
  10684. // memory on tamper event
  10685. #define HIB_TPCTL_MEMCLR_HIGH32 0x00000200 // Clear upper 32 Bytes of HIB
  10686. // memory on tamper event
  10687. #define HIB_TPCTL_MEMCLR_ALL 0x00000300 // Clear all HIB memory on tamper
  10688. // event
  10689. #define HIB_TPCTL_TPCLR 0x00000010 // Tamper Event Clear
  10690. #define HIB_TPCTL_TPEN 0x00000001 // Tamper Module Enable
  10691. //*****************************************************************************
  10692. //
  10693. // The following are defines for the bit fields in the HIB_TPSTAT register.
  10694. //
  10695. //*****************************************************************************
  10696. #define HIB_TPSTAT_STATE_M 0x0000000C // Tamper Module Status
  10697. #define HIB_TPSTAT_STATE_DISABLED \
  10698. 0x00000000 // Tamper disabled
  10699. #define HIB_TPSTAT_STATE_CONFIGED \
  10700. 0x00000004 // Tamper configured
  10701. #define HIB_TPSTAT_STATE_ERROR 0x00000008 // Tamper pin event occurred
  10702. #define HIB_TPSTAT_XOSCST 0x00000002 // External Oscillator Status
  10703. #define HIB_TPSTAT_XOSCFAIL 0x00000001 // External Oscillator Failure
  10704. //*****************************************************************************
  10705. //
  10706. // The following are defines for the bit fields in the HIB_TPIO register.
  10707. //
  10708. //*****************************************************************************
  10709. #define HIB_TPIO_GFLTR3 0x08000000 // TMPR3 Glitch Filtering
  10710. #define HIB_TPIO_PUEN3 0x04000000 // TMPR3 Internal Weak Pull-up
  10711. // Enable
  10712. #define HIB_TPIO_LEV3 0x02000000 // TMPR3 Trigger Level
  10713. #define HIB_TPIO_EN3 0x01000000 // TMPR3 Enable
  10714. #define HIB_TPIO_GFLTR2 0x00080000 // TMPR2 Glitch Filtering
  10715. #define HIB_TPIO_PUEN2 0x00040000 // TMPR2 Internal Weak Pull-up
  10716. // Enable
  10717. #define HIB_TPIO_LEV2 0x00020000 // TMPR2 Trigger Level
  10718. #define HIB_TPIO_EN2 0x00010000 // TMPR2 Enable
  10719. #define HIB_TPIO_GFLTR1 0x00000800 // TMPR1 Glitch Filtering
  10720. #define HIB_TPIO_PUEN1 0x00000400 // TMPR1 Internal Weak Pull-up
  10721. // Enable
  10722. #define HIB_TPIO_LEV1 0x00000200 // TMPR1 Trigger Level
  10723. #define HIB_TPIO_EN1 0x00000100 // TMPR1Enable
  10724. #define HIB_TPIO_GFLTR0 0x00000008 // TMPR0 Glitch Filtering
  10725. #define HIB_TPIO_PUEN0 0x00000004 // TMPR0 Internal Weak Pull-up
  10726. // Enable
  10727. #define HIB_TPIO_LEV0 0x00000002 // TMPR0 Trigger Level
  10728. #define HIB_TPIO_EN0 0x00000001 // TMPR0 Enable
  10729. //*****************************************************************************
  10730. //
  10731. // The following are defines for the bit fields in the HIB_TPLOG0 register.
  10732. //
  10733. //*****************************************************************************
  10734. #define HIB_TPLOG0_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  10735. #define HIB_TPLOG0_TIME_S 0
  10736. //*****************************************************************************
  10737. //
  10738. // The following are defines for the bit fields in the HIB_TPLOG1 register.
  10739. //
  10740. //*****************************************************************************
  10741. #define HIB_TPLOG1_XOSC 0x00010000 // Status of external 32
  10742. #define HIB_TPLOG1_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  10743. #define HIB_TPLOG1_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  10744. #define HIB_TPLOG1_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  10745. #define HIB_TPLOG1_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  10746. //*****************************************************************************
  10747. //
  10748. // The following are defines for the bit fields in the HIB_TPLOG2 register.
  10749. //
  10750. //*****************************************************************************
  10751. #define HIB_TPLOG2_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  10752. #define HIB_TPLOG2_TIME_S 0
  10753. //*****************************************************************************
  10754. //
  10755. // The following are defines for the bit fields in the HIB_TPLOG3 register.
  10756. //
  10757. //*****************************************************************************
  10758. #define HIB_TPLOG3_XOSC 0x00010000 // Status of external 32
  10759. #define HIB_TPLOG3_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  10760. #define HIB_TPLOG3_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  10761. #define HIB_TPLOG3_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  10762. #define HIB_TPLOG3_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  10763. //*****************************************************************************
  10764. //
  10765. // The following are defines for the bit fields in the HIB_TPLOG4 register.
  10766. //
  10767. //*****************************************************************************
  10768. #define HIB_TPLOG4_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  10769. #define HIB_TPLOG4_TIME_S 0
  10770. //*****************************************************************************
  10771. //
  10772. // The following are defines for the bit fields in the HIB_TPLOG5 register.
  10773. //
  10774. //*****************************************************************************
  10775. #define HIB_TPLOG5_XOSC 0x00010000 // Status of external 32
  10776. #define HIB_TPLOG5_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  10777. #define HIB_TPLOG5_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  10778. #define HIB_TPLOG5_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  10779. #define HIB_TPLOG5_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  10780. //*****************************************************************************
  10781. //
  10782. // The following are defines for the bit fields in the HIB_TPLOG6 register.
  10783. //
  10784. //*****************************************************************************
  10785. #define HIB_TPLOG6_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  10786. #define HIB_TPLOG6_TIME_S 0
  10787. //*****************************************************************************
  10788. //
  10789. // The following are defines for the bit fields in the HIB_TPLOG7 register.
  10790. //
  10791. //*****************************************************************************
  10792. #define HIB_TPLOG7_XOSC 0x00010000 // Status of external 32
  10793. #define HIB_TPLOG7_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  10794. #define HIB_TPLOG7_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  10795. #define HIB_TPLOG7_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  10796. #define HIB_TPLOG7_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  10797. //*****************************************************************************
  10798. //
  10799. // The following are defines for the bit fields in the HIB_PP register.
  10800. //
  10801. //*****************************************************************************
  10802. #define HIB_PP_TAMPER 0x00000002 // Tamper Pin Presence
  10803. #define HIB_PP_WAKENC 0x00000001 // Wake Pin Presence
  10804. //*****************************************************************************
  10805. //
  10806. // The following are defines for the bit fields in the HIB_CC register.
  10807. //
  10808. //*****************************************************************************
  10809. #define HIB_CC_SYSCLKEN 0x00000001 // RTCOSC to System Clock Enable
  10810. //*****************************************************************************
  10811. //
  10812. // The following are defines for the bit fields in the FLASH_FMA register.
  10813. //
  10814. //*****************************************************************************
  10815. #define FLASH_FMA_OFFSET_M 0x000FFFFF // Address Offset
  10816. #define FLASH_FMA_OFFSET_S 0
  10817. //*****************************************************************************
  10818. //
  10819. // The following are defines for the bit fields in the FLASH_FMD register.
  10820. //
  10821. //*****************************************************************************
  10822. #define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
  10823. #define FLASH_FMD_DATA_S 0
  10824. //*****************************************************************************
  10825. //
  10826. // The following are defines for the bit fields in the FLASH_FMC register.
  10827. //
  10828. //*****************************************************************************
  10829. #define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
  10830. #define FLASH_FMC_COMT 0x00000008 // Commit Register Value
  10831. #define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
  10832. #define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
  10833. #define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
  10834. //*****************************************************************************
  10835. //
  10836. // The following are defines for the bit fields in the FLASH_FCRIS register.
  10837. //
  10838. //*****************************************************************************
  10839. #define FLASH_FCRIS_PROGRIS 0x00002000 // Program Verify Error Raw
  10840. // Interrupt Status
  10841. #define FLASH_FCRIS_ERRIS 0x00000800 // Erase Verify Error Raw Interrupt
  10842. // Status
  10843. #define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
  10844. // Status
  10845. #define FLASH_FCRIS_VOLTRIS 0x00000200 // Pump Voltage Raw Interrupt
  10846. // Status
  10847. #define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
  10848. #define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
  10849. #define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
  10850. //*****************************************************************************
  10851. //
  10852. // The following are defines for the bit fields in the FLASH_FCIM register.
  10853. //
  10854. //*****************************************************************************
  10855. #define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
  10856. #define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
  10857. #define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
  10858. #define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
  10859. #define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
  10860. #define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
  10861. #define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
  10862. //*****************************************************************************
  10863. //
  10864. // The following are defines for the bit fields in the FLASH_FCMISC register.
  10865. //
  10866. //*****************************************************************************
  10867. #define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
  10868. // and Clear
  10869. #define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
  10870. // and Clear
  10871. #define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
  10872. // Status and Clear
  10873. #define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
  10874. // Clear
  10875. #define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
  10876. // and Clear
  10877. #define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
  10878. // Status and Clear
  10879. #define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
  10880. // and Clear
  10881. //*****************************************************************************
  10882. //
  10883. // The following are defines for the bit fields in the FLASH_FMC2 register.
  10884. //
  10885. //*****************************************************************************
  10886. #define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
  10887. //*****************************************************************************
  10888. //
  10889. // The following are defines for the bit fields in the FLASH_FWBVAL register.
  10890. //
  10891. //*****************************************************************************
  10892. #define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
  10893. //*****************************************************************************
  10894. //
  10895. // The following are defines for the bit fields in the FLASH_FLPEKEY register.
  10896. //
  10897. //*****************************************************************************
  10898. #define FLASH_FLPEKEY_PEKEY_M 0x0000FFFF // Key Value
  10899. #define FLASH_FLPEKEY_PEKEY_S 0
  10900. //*****************************************************************************
  10901. //
  10902. // The following are defines for the bit fields in the FLASH_FWBN register.
  10903. //
  10904. //*****************************************************************************
  10905. #define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
  10906. //*****************************************************************************
  10907. //
  10908. // The following are defines for the bit fields in the FLASH_PP register.
  10909. //
  10910. //*****************************************************************************
  10911. #define FLASH_PP_PFC 0x40000000 // Prefetch Buffer Mode
  10912. #define FLASH_PP_FMM 0x20000000 // Flash Mirror Mode
  10913. #define FLASH_PP_DFA 0x10000000 // DMA Flash Access
  10914. #define FLASH_PP_EESS_M 0x00780000 // EEPROM Sector Size of the
  10915. // physical bank
  10916. #define FLASH_PP_EESS_1KB 0x00000000 // 1 KB
  10917. #define FLASH_PP_EESS_2KB 0x00080000 // 2 KB
  10918. #define FLASH_PP_EESS_4KB 0x00100000 // 4 KB
  10919. #define FLASH_PP_EESS_8KB 0x00180000 // 8 KB
  10920. #define FLASH_PP_MAINSS_M 0x00070000 // Flash Sector Size of the
  10921. // physical bank
  10922. #define FLASH_PP_MAINSS_1KB 0x00000000 // 1 KB
  10923. #define FLASH_PP_MAINSS_2KB 0x00010000 // 2 KB
  10924. #define FLASH_PP_MAINSS_4KB 0x00020000 // 4 KB
  10925. #define FLASH_PP_MAINSS_8KB 0x00030000 // 8 KB
  10926. #define FLASH_PP_MAINSS_16KB 0x00040000 // 16 KB
  10927. #define FLASH_PP_SIZE_M 0x0000FFFF // Flash Size
  10928. #define FLASH_PP_SIZE_1MB 0x000001FF // 1024 KB of Flash
  10929. //*****************************************************************************
  10930. //
  10931. // The following are defines for the bit fields in the FLASH_SSIZE register.
  10932. //
  10933. //*****************************************************************************
  10934. #define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
  10935. #define FLASH_SSIZE_SIZE_256KB 0x000003FF // 256 KB of SRAM
  10936. //*****************************************************************************
  10937. //
  10938. // The following are defines for the bit fields in the FLASH_CONF register.
  10939. //
  10940. //*****************************************************************************
  10941. #define FLASH_CONF_FMME 0x40000000 // Flash Mirror Mode Enable
  10942. #define FLASH_CONF_SPFE 0x20000000 // Single Prefetch Mode Enable
  10943. #define FLASH_CONF_CLRTV 0x00100000 // Clear Valid Tags
  10944. #define FLASH_CONF_FPFON 0x00020000 // Force Prefetch On
  10945. #define FLASH_CONF_FPFOFF 0x00010000 // Force Prefetch Off
  10946. //*****************************************************************************
  10947. //
  10948. // The following are defines for the bit fields in the FLASH_ROMSWMAP register.
  10949. //
  10950. //*****************************************************************************
  10951. #define FLASH_ROMSWMAP_SW7EN_M 0x0000C000 // ROM SW Region 7 Availability
  10952. #define FLASH_ROMSWMAP_SW7EN_NOTVIS \
  10953. 0x00000000 // Software region not available to
  10954. // the core
  10955. #define FLASH_ROMSWMAP_SW7EN_CORE \
  10956. 0x00004000 // Region available to core
  10957. #define FLASH_ROMSWMAP_SW6EN_M 0x00003000 // ROM SW Region 6 Availability
  10958. #define FLASH_ROMSWMAP_SW6EN_NOTVIS \
  10959. 0x00000000 // Software region not available to
  10960. // the core
  10961. #define FLASH_ROMSWMAP_SW6EN_CORE \
  10962. 0x00001000 // Region available to core
  10963. #define FLASH_ROMSWMAP_SW5EN_M 0x00000C00 // ROM SW Region 5 Availability
  10964. #define FLASH_ROMSWMAP_SW5EN_NOTVIS \
  10965. 0x00000000 // Software region not available to
  10966. // the core
  10967. #define FLASH_ROMSWMAP_SW5EN_CORE \
  10968. 0x00000400 // Region available to core
  10969. #define FLASH_ROMSWMAP_SW4EN_M 0x00000300 // ROM SW Region 4 Availability
  10970. #define FLASH_ROMSWMAP_SW4EN_NOTVIS \
  10971. 0x00000000 // Software region not available to
  10972. // the core
  10973. #define FLASH_ROMSWMAP_SW4EN_CORE \
  10974. 0x00000100 // Region available to core
  10975. #define FLASH_ROMSWMAP_SW3EN_M 0x000000C0 // ROM SW Region 3 Availability
  10976. #define FLASH_ROMSWMAP_SW3EN_NOTVIS \
  10977. 0x00000000 // Software region not available to
  10978. // the core
  10979. #define FLASH_ROMSWMAP_SW3EN_CORE \
  10980. 0x00000040 // Region available to core
  10981. #define FLASH_ROMSWMAP_SW2EN_M 0x00000030 // ROM SW Region 2 Availability
  10982. #define FLASH_ROMSWMAP_SW2EN_NOTVIS \
  10983. 0x00000000 // Software region not available to
  10984. // the core
  10985. #define FLASH_ROMSWMAP_SW2EN_CORE \
  10986. 0x00000010 // Region available to core
  10987. #define FLASH_ROMSWMAP_SW1EN_M 0x0000000C // ROM SW Region 1 Availability
  10988. #define FLASH_ROMSWMAP_SW1EN_NOTVIS \
  10989. 0x00000000 // Software region not available to
  10990. // the core
  10991. #define FLASH_ROMSWMAP_SW1EN_CORE \
  10992. 0x00000004 // Region available to core
  10993. #define FLASH_ROMSWMAP_SW0EN_M 0x00000003 // ROM SW Region 0 Availability
  10994. #define FLASH_ROMSWMAP_SW0EN_NOTVIS \
  10995. 0x00000000 // Software region not available to
  10996. // the core
  10997. #define FLASH_ROMSWMAP_SW0EN_CORE \
  10998. 0x00000001 // Region available to core
  10999. //*****************************************************************************
  11000. //
  11001. // The following are defines for the bit fields in the FLASH_DMASZ register.
  11002. //
  11003. //*****************************************************************************
  11004. #define FLASH_DMASZ_SIZE_M 0x0003FFFF // uDMA-accessible Memory Size
  11005. #define FLASH_DMASZ_SIZE_S 0
  11006. //*****************************************************************************
  11007. //
  11008. // The following are defines for the bit fields in the FLASH_DMAST register.
  11009. //
  11010. //*****************************************************************************
  11011. #define FLASH_DMAST_ADDR_M 0x1FFFF800 // Contains the starting address of
  11012. // the flash region accessible by
  11013. // uDMA if the FLASHPP register DFA
  11014. // bit is set
  11015. #define FLASH_DMAST_ADDR_S 11
  11016. //*****************************************************************************
  11017. //
  11018. // The following are defines for the bit fields in the FLASH_RVP register.
  11019. //
  11020. //*****************************************************************************
  11021. #define FLASH_RVP_RV_M 0xFFFFFFFF // Reset Vector Pointer Address
  11022. #define FLASH_RVP_RV_S 0
  11023. //*****************************************************************************
  11024. //
  11025. // The following are defines for the bit fields in the FLASH_BOOTCFG register.
  11026. //
  11027. //*****************************************************************************
  11028. #define FLASH_BOOTCFG_NW 0x80000000 // Not Written
  11029. #define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
  11030. #define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
  11031. #define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
  11032. #define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
  11033. #define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
  11034. #define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
  11035. #define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
  11036. #define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
  11037. #define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
  11038. #define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
  11039. #define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
  11040. #define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
  11041. #define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
  11042. #define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
  11043. #define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
  11044. #define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
  11045. #define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
  11046. #define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
  11047. #define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
  11048. #define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
  11049. #define FLASH_BOOTCFG_KEY 0x00000010 // KEY Select
  11050. #define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
  11051. #define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
  11052. //*****************************************************************************
  11053. //
  11054. // The following are defines for the bit fields in the FLASH_USERREG0 register.
  11055. //
  11056. //*****************************************************************************
  11057. #define FLASH_USERREG0_DATA_M 0xFFFFFFFF // User Data
  11058. #define FLASH_USERREG0_DATA_S 0
  11059. //*****************************************************************************
  11060. //
  11061. // The following are defines for the bit fields in the FLASH_USERREG1 register.
  11062. //
  11063. //*****************************************************************************
  11064. #define FLASH_USERREG1_DATA_M 0xFFFFFFFF // User Data
  11065. #define FLASH_USERREG1_DATA_S 0
  11066. //*****************************************************************************
  11067. //
  11068. // The following are defines for the bit fields in the FLASH_USERREG2 register.
  11069. //
  11070. //*****************************************************************************
  11071. #define FLASH_USERREG2_DATA_M 0xFFFFFFFF // User Data
  11072. #define FLASH_USERREG2_DATA_S 0
  11073. //*****************************************************************************
  11074. //
  11075. // The following are defines for the bit fields in the FLASH_USERREG3 register.
  11076. //
  11077. //*****************************************************************************
  11078. #define FLASH_USERREG3_DATA_M 0xFFFFFFFF // User Data
  11079. #define FLASH_USERREG3_DATA_S 0
  11080. //*****************************************************************************
  11081. //
  11082. // The following are defines for the bit fields in the FLASH_FMPRE8 register.
  11083. //
  11084. //*****************************************************************************
  11085. #define FLASH_FMPRE8_READ_ENABLE_M \
  11086. 0xFFFFFFFF // Flash Read Enable
  11087. #define FLASH_FMPRE8_READ_ENABLE_S \
  11088. 0
  11089. //*****************************************************************************
  11090. //
  11091. // The following are defines for the bit fields in the FLASH_FMPRE9 register.
  11092. //
  11093. //*****************************************************************************
  11094. #define FLASH_FMPRE9_READ_ENABLE_M \
  11095. 0xFFFFFFFF // Flash Read Enable
  11096. #define FLASH_FMPRE9_READ_ENABLE_S \
  11097. 0
  11098. //*****************************************************************************
  11099. //
  11100. // The following are defines for the bit fields in the FLASH_FMPRE10 register.
  11101. //
  11102. //*****************************************************************************
  11103. #define FLASH_FMPRE10_READ_ENABLE_M \
  11104. 0xFFFFFFFF // Flash Read Enable
  11105. #define FLASH_FMPRE10_READ_ENABLE_S \
  11106. 0
  11107. //*****************************************************************************
  11108. //
  11109. // The following are defines for the bit fields in the FLASH_FMPRE11 register.
  11110. //
  11111. //*****************************************************************************
  11112. #define FLASH_FMPRE11_READ_ENABLE_M \
  11113. 0xFFFFFFFF // Flash Read Enable
  11114. #define FLASH_FMPRE11_READ_ENABLE_S \
  11115. 0
  11116. //*****************************************************************************
  11117. //
  11118. // The following are defines for the bit fields in the FLASH_FMPRE12 register.
  11119. //
  11120. //*****************************************************************************
  11121. #define FLASH_FMPRE12_READ_ENABLE_M \
  11122. 0xFFFFFFFF // Flash Read Enable
  11123. #define FLASH_FMPRE12_READ_ENABLE_S \
  11124. 0
  11125. //*****************************************************************************
  11126. //
  11127. // The following are defines for the bit fields in the FLASH_FMPRE13 register.
  11128. //
  11129. //*****************************************************************************
  11130. #define FLASH_FMPRE13_READ_ENABLE_M \
  11131. 0xFFFFFFFF // Flash Read Enable
  11132. #define FLASH_FMPRE13_READ_ENABLE_S \
  11133. 0
  11134. //*****************************************************************************
  11135. //
  11136. // The following are defines for the bit fields in the FLASH_FMPRE14 register.
  11137. //
  11138. //*****************************************************************************
  11139. #define FLASH_FMPRE14_READ_ENABLE_M \
  11140. 0xFFFFFFFF // Flash Read Enable
  11141. #define FLASH_FMPRE14_READ_ENABLE_S \
  11142. 0
  11143. //*****************************************************************************
  11144. //
  11145. // The following are defines for the bit fields in the FLASH_FMPRE15 register.
  11146. //
  11147. //*****************************************************************************
  11148. #define FLASH_FMPRE15_READ_ENABLE_M \
  11149. 0xFFFFFFFF // Flash Read Enable
  11150. #define FLASH_FMPRE15_READ_ENABLE_S \
  11151. 0
  11152. //*****************************************************************************
  11153. //
  11154. // The following are defines for the bit fields in the FLASH_FMPPE8 register.
  11155. //
  11156. //*****************************************************************************
  11157. #define FLASH_FMPPE8_PROG_ENABLE_M \
  11158. 0xFFFFFFFF // Flash Programming Enable
  11159. #define FLASH_FMPPE8_PROG_ENABLE_S \
  11160. 0
  11161. //*****************************************************************************
  11162. //
  11163. // The following are defines for the bit fields in the FLASH_FMPPE9 register.
  11164. //
  11165. //*****************************************************************************
  11166. #define FLASH_FMPPE9_PROG_ENABLE_M \
  11167. 0xFFFFFFFF // Flash Programming Enable
  11168. #define FLASH_FMPPE9_PROG_ENABLE_S \
  11169. 0
  11170. //*****************************************************************************
  11171. //
  11172. // The following are defines for the bit fields in the FLASH_FMPPE10 register.
  11173. //
  11174. //*****************************************************************************
  11175. #define FLASH_FMPPE10_PROG_ENABLE_M \
  11176. 0xFFFFFFFF // Flash Programming Enable
  11177. #define FLASH_FMPPE10_PROG_ENABLE_S \
  11178. 0
  11179. //*****************************************************************************
  11180. //
  11181. // The following are defines for the bit fields in the FLASH_FMPPE11 register.
  11182. //
  11183. //*****************************************************************************
  11184. #define FLASH_FMPPE11_PROG_ENABLE_M \
  11185. 0xFFFFFFFF // Flash Programming Enable
  11186. #define FLASH_FMPPE11_PROG_ENABLE_S \
  11187. 0
  11188. //*****************************************************************************
  11189. //
  11190. // The following are defines for the bit fields in the FLASH_FMPPE12 register.
  11191. //
  11192. //*****************************************************************************
  11193. #define FLASH_FMPPE12_PROG_ENABLE_M \
  11194. 0xFFFFFFFF // Flash Programming Enable
  11195. #define FLASH_FMPPE12_PROG_ENABLE_S \
  11196. 0
  11197. //*****************************************************************************
  11198. //
  11199. // The following are defines for the bit fields in the FLASH_FMPPE13 register.
  11200. //
  11201. //*****************************************************************************
  11202. #define FLASH_FMPPE13_PROG_ENABLE_M \
  11203. 0xFFFFFFFF // Flash Programming Enable
  11204. #define FLASH_FMPPE13_PROG_ENABLE_S \
  11205. 0
  11206. //*****************************************************************************
  11207. //
  11208. // The following are defines for the bit fields in the FLASH_FMPPE14 register.
  11209. //
  11210. //*****************************************************************************
  11211. #define FLASH_FMPPE14_PROG_ENABLE_M \
  11212. 0xFFFFFFFF // Flash Programming Enable
  11213. #define FLASH_FMPPE14_PROG_ENABLE_S \
  11214. 0
  11215. //*****************************************************************************
  11216. //
  11217. // The following are defines for the bit fields in the FLASH_FMPPE15 register.
  11218. //
  11219. //*****************************************************************************
  11220. #define FLASH_FMPPE15_PROG_ENABLE_M \
  11221. 0xFFFFFFFF // Flash Programming Enable
  11222. #define FLASH_FMPPE15_PROG_ENABLE_S \
  11223. 0
  11224. //*****************************************************************************
  11225. //
  11226. // The following are defines for the bit fields in the SYSCTL_DID0 register.
  11227. //
  11228. //*****************************************************************************
  11229. #define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
  11230. #define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
  11231. // register format.
  11232. #define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
  11233. #define SYSCTL_DID0_CLASS_TM4C129 \
  11234. 0x000A0000 // Tiva(TM) TM4C129-class
  11235. // microcontrollers
  11236. #define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
  11237. #define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
  11238. #define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
  11239. // revision)
  11240. #define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
  11241. // revision)
  11242. #define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
  11243. #define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
  11244. // revision update
  11245. #define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
  11246. #define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
  11247. //*****************************************************************************
  11248. //
  11249. // The following are defines for the bit fields in the SYSCTL_DID1 register.
  11250. //
  11251. //*****************************************************************************
  11252. #define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
  11253. #define SYSCTL_DID1_VER_1 0x10000000 // fury_ib
  11254. #define SYSCTL_DID1_FAM_M 0x0F000000 // Family
  11255. #define SYSCTL_DID1_FAM_TIVA 0x00000000 // Tiva family of microcontollers
  11256. #define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
  11257. #define SYSCTL_DID1_PRTNO_TM4C1294NCPDT \
  11258. 0x001F0000 // TM4C1294NCPDT
  11259. #define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
  11260. #define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin LQFP package
  11261. #define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin LQFP package
  11262. #define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin LQFP package
  11263. #define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin BGA package
  11264. #define SYSCTL_DID1_PINCNT_128 0x0000C000 // 128-pin TQFP package
  11265. #define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
  11266. #define SYSCTL_DID1_TEMP_C 0x00000000 // Commercial temperature range
  11267. #define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
  11268. #define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range
  11269. #define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
  11270. #define SYSCTL_DID1_PKG_QFP 0x00000008 // QFP package
  11271. #define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
  11272. #define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
  11273. #define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
  11274. #define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
  11275. #define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
  11276. #define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
  11277. //*****************************************************************************
  11278. //
  11279. // The following are defines for the bit fields in the SYSCTL_PTBOCTL register.
  11280. //
  11281. //*****************************************************************************
  11282. #define SYSCTL_PTBOCTL_VDDA_UBOR_M \
  11283. 0x00000300 // VDDA under BOR Event Action
  11284. #define SYSCTL_PTBOCTL_VDDA_UBOR_NONE \
  11285. 0x00000000 // No Action
  11286. #define SYSCTL_PTBOCTL_VDDA_UBOR_SYSINT \
  11287. 0x00000100 // System control interrupt
  11288. #define SYSCTL_PTBOCTL_VDDA_UBOR_NMI \
  11289. 0x00000200 // NMI
  11290. #define SYSCTL_PTBOCTL_VDDA_UBOR_RST \
  11291. 0x00000300 // Reset
  11292. #define SYSCTL_PTBOCTL_VDD_UBOR_M \
  11293. 0x00000003 // VDD (VDDS) under BOR Event
  11294. // Action
  11295. #define SYSCTL_PTBOCTL_VDD_UBOR_NONE \
  11296. 0x00000000 // No Action
  11297. #define SYSCTL_PTBOCTL_VDD_UBOR_SYSINT \
  11298. 0x00000001 // System control interrupt
  11299. #define SYSCTL_PTBOCTL_VDD_UBOR_NMI \
  11300. 0x00000002 // NMI
  11301. #define SYSCTL_PTBOCTL_VDD_UBOR_RST \
  11302. 0x00000003 // Reset
  11303. //*****************************************************************************
  11304. //
  11305. // The following are defines for the bit fields in the SYSCTL_RIS register.
  11306. //
  11307. //*****************************************************************************
  11308. #define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
  11309. // Status
  11310. #define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
  11311. #define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Failure Raw
  11312. // Interrupt Status
  11313. #define SYSCTL_RIS_BORRIS 0x00000002 // Brown-Out Reset Raw Interrupt
  11314. // Status
  11315. //*****************************************************************************
  11316. //
  11317. // The following are defines for the bit fields in the SYSCTL_IMC register.
  11318. //
  11319. //*****************************************************************************
  11320. #define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
  11321. #define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
  11322. #define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Failure
  11323. // Interrupt Mask
  11324. #define SYSCTL_IMC_BORIM 0x00000002 // Brown-Out Reset Interrupt Mask
  11325. //*****************************************************************************
  11326. //
  11327. // The following are defines for the bit fields in the SYSCTL_MISC register.
  11328. //
  11329. //*****************************************************************************
  11330. #define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
  11331. // Status
  11332. #define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
  11333. #define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Failure Masked
  11334. // Interrupt Status
  11335. #define SYSCTL_MISC_BORMIS 0x00000002 // BOR Masked Interrupt Status
  11336. //*****************************************************************************
  11337. //
  11338. // The following are defines for the bit fields in the SYSCTL_RESC register.
  11339. //
  11340. //*****************************************************************************
  11341. #define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
  11342. #define SYSCTL_RESC_HSSR 0x00001000 // HSSR Reset
  11343. #define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
  11344. #define SYSCTL_RESC_SW 0x00000010 // Software Reset
  11345. #define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
  11346. #define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
  11347. #define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
  11348. #define SYSCTL_RESC_EXT 0x00000001 // External Reset
  11349. //*****************************************************************************
  11350. //
  11351. // The following are defines for the bit fields in the SYSCTL_PWRTC register.
  11352. //
  11353. //*****************************************************************************
  11354. #define SYSCTL_PWRTC_VDDA_UBOR 0x00000010 // VDDA Under BOR Status
  11355. #define SYSCTL_PWRTC_VDD_UBOR 0x00000001 // VDD Under BOR Status
  11356. //*****************************************************************************
  11357. //
  11358. // The following are defines for the bit fields in the SYSCTL_NMIC register.
  11359. //
  11360. //*****************************************************************************
  11361. #define SYSCTL_NMIC_MOSCFAIL 0x00010000 // MOSC Failure NMI
  11362. #define SYSCTL_NMIC_TAMPER 0x00000200 // Tamper Event NMI
  11363. #define SYSCTL_NMIC_WDT1 0x00000020 // Watch Dog Timer (WDT) 1 NMI
  11364. #define SYSCTL_NMIC_WDT0 0x00000008 // Watch Dog Timer (WDT) 0 NMI
  11365. #define SYSCTL_NMIC_POWER 0x00000004 // Power/Brown Out Event NMI
  11366. #define SYSCTL_NMIC_EXTERNAL 0x00000001 // External Pin NMI
  11367. //*****************************************************************************
  11368. //
  11369. // The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
  11370. //
  11371. //*****************************************************************************
  11372. #define SYSCTL_MOSCCTL_OSCRNG 0x00000010 // Oscillator Range
  11373. #define SYSCTL_MOSCCTL_PWRDN 0x00000008 // Power Down
  11374. #define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
  11375. #define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
  11376. #define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
  11377. //*****************************************************************************
  11378. //
  11379. // The following are defines for the bit fields in the SYSCTL_RSCLKCFG
  11380. // register.
  11381. //
  11382. //*****************************************************************************
  11383. #define SYSCTL_RSCLKCFG_MEMTIMU 0x80000000 // Memory Timing Register Update
  11384. #define SYSCTL_RSCLKCFG_NEWFREQ 0x40000000 // New PLLFREQ Accept
  11385. #define SYSCTL_RSCLKCFG_ACG 0x20000000 // Auto Clock Gating
  11386. #define SYSCTL_RSCLKCFG_USEPLL 0x10000000 // Use PLL
  11387. #define SYSCTL_RSCLKCFG_PLLSRC_M \
  11388. 0x0F000000 // PLL Source
  11389. #define SYSCTL_RSCLKCFG_PLLSRC_PIOSC \
  11390. 0x00000000 // PIOSC is PLL input clock source
  11391. #define SYSCTL_RSCLKCFG_PLLSRC_MOSC \
  11392. 0x03000000 // MOSC is the PLL input clock
  11393. // source
  11394. #define SYSCTL_RSCLKCFG_OSCSRC_M \
  11395. 0x00F00000 // Oscillator Source
  11396. #define SYSCTL_RSCLKCFG_OSCSRC_PIOSC \
  11397. 0x00000000 // PIOSC is oscillator source
  11398. #define SYSCTL_RSCLKCFG_OSCSRC_LFIOSC \
  11399. 0x00200000 // LFIOSC is oscillator source
  11400. #define SYSCTL_RSCLKCFG_OSCSRC_MOSC \
  11401. 0x00300000 // MOSC is oscillator source
  11402. #define SYSCTL_RSCLKCFG_OSCSRC_RTC \
  11403. 0x00400000 // Hibernation Module RTC
  11404. // Oscillator (RTCOSC)
  11405. #define SYSCTL_RSCLKCFG_OSYSDIV_M \
  11406. 0x000FFC00 // Oscillator System Clock Divisor
  11407. #define SYSCTL_RSCLKCFG_PSYSDIV_M \
  11408. 0x000003FF // PLL System Clock Divisor
  11409. #define SYSCTL_RSCLKCFG_OSYSDIV_S \
  11410. 10
  11411. #define SYSCTL_RSCLKCFG_PSYSDIV_S \
  11412. 0
  11413. //*****************************************************************************
  11414. //
  11415. // The following are defines for the bit fields in the SYSCTL_MEMTIM0 register.
  11416. //
  11417. //*****************************************************************************
  11418. #define SYSCTL_MEMTIM0_EBCHT_M 0x03C00000 // EEPROM Clock High Time
  11419. #define SYSCTL_MEMTIM0_EBCHT_0_5 \
  11420. 0x00000000 // 1/2 system clock period
  11421. #define SYSCTL_MEMTIM0_EBCHT_1 0x00400000 // 1 system clock period
  11422. #define SYSCTL_MEMTIM0_EBCHT_1_5 \
  11423. 0x00800000 // 1.5 system clock periods
  11424. #define SYSCTL_MEMTIM0_EBCHT_2 0x00C00000 // 2 system clock periods
  11425. #define SYSCTL_MEMTIM0_EBCHT_2_5 \
  11426. 0x01000000 // 2.5 system clock periods
  11427. #define SYSCTL_MEMTIM0_EBCHT_3 0x01400000 // 3 system clock periods
  11428. #define SYSCTL_MEMTIM0_EBCHT_3_5 \
  11429. 0x01800000 // 3.5 system clock periods
  11430. #define SYSCTL_MEMTIM0_EBCHT_4 0x01C00000 // 4 system clock periods
  11431. #define SYSCTL_MEMTIM0_EBCHT_4_5 \
  11432. 0x02000000 // 4.5 system clock periods
  11433. #define SYSCTL_MEMTIM0_EBCE 0x00200000 // EEPROM Bank Clock Edge
  11434. #define SYSCTL_MEMTIM0_EWS_M 0x000F0000 // EEPROM Wait States
  11435. #define SYSCTL_MEMTIM0_FBCHT_M 0x000003C0 // Flash Bank Clock High Time
  11436. #define SYSCTL_MEMTIM0_FBCHT_0_5 \
  11437. 0x00000000 // 1/2 system clock period
  11438. #define SYSCTL_MEMTIM0_FBCHT_1 0x00000040 // 1 system clock period
  11439. #define SYSCTL_MEMTIM0_FBCHT_1_5 \
  11440. 0x00000080 // 1.5 system clock periods
  11441. #define SYSCTL_MEMTIM0_FBCHT_2 0x000000C0 // 2 system clock periods
  11442. #define SYSCTL_MEMTIM0_FBCHT_2_5 \
  11443. 0x00000100 // 2.5 system clock periods
  11444. #define SYSCTL_MEMTIM0_FBCHT_3 0x00000140 // 3 system clock periods
  11445. #define SYSCTL_MEMTIM0_FBCHT_3_5 \
  11446. 0x00000180 // 3.5 system clock periods
  11447. #define SYSCTL_MEMTIM0_FBCHT_4 0x000001C0 // 4 system clock periods
  11448. #define SYSCTL_MEMTIM0_FBCHT_4_5 \
  11449. 0x00000200 // 4.5 system clock periods
  11450. #define SYSCTL_MEMTIM0_FBCE 0x00000020 // Flash Bank Clock Edge
  11451. #define SYSCTL_MEMTIM0_FWS_M 0x0000000F // Flash Wait State
  11452. #define SYSCTL_MEMTIM0_EWS_S 16
  11453. #define SYSCTL_MEMTIM0_FWS_S 0
  11454. //*****************************************************************************
  11455. //
  11456. // The following are defines for the bit fields in the SYSCTL_ALTCLKCFG
  11457. // register.
  11458. //
  11459. //*****************************************************************************
  11460. #define SYSCTL_ALTCLKCFG_ALTCLK_M \
  11461. 0x0000000F // Alternate Clock Source
  11462. #define SYSCTL_ALTCLKCFG_ALTCLK_PIOSC \
  11463. 0x00000000 // PIOSC
  11464. #define SYSCTL_ALTCLKCFG_ALTCLK_RTCOSC \
  11465. 0x00000003 // Hibernation Module Real-time
  11466. // clock output (RTCOSC)
  11467. #define SYSCTL_ALTCLKCFG_ALTCLK_LFIOSC \
  11468. 0x00000004 // Low-frequency internal
  11469. // oscillator (LFIOSC)
  11470. //*****************************************************************************
  11471. //
  11472. // The following are defines for the bit fields in the SYSCTL_DSCLKCFG
  11473. // register.
  11474. //
  11475. //*****************************************************************************
  11476. #define SYSCTL_DSCLKCFG_PIOSCPD 0x80000000 // PIOSC Power Down
  11477. #define SYSCTL_DSCLKCFG_MOSCDPD 0x40000000 // MOSC Disable Power Down
  11478. #define SYSCTL_DSCLKCFG_DSOSCSRC_M \
  11479. 0x00F00000 // Deep Sleep Oscillator Source
  11480. #define SYSCTL_DSCLKCFG_DSOSCSRC_PIOSC \
  11481. 0x00000000 // PIOSC
  11482. #define SYSCTL_DSCLKCFG_DSOSCSRC_LFIOSC \
  11483. 0x00200000 // LFIOSC
  11484. #define SYSCTL_DSCLKCFG_DSOSCSRC_MOSC \
  11485. 0x00300000 // MOSC
  11486. #define SYSCTL_DSCLKCFG_DSOSCSRC_RTC \
  11487. 0x00400000 // Hibernation Module RTCOSC
  11488. #define SYSCTL_DSCLKCFG_DSSYSDIV_M \
  11489. 0x000003FF // Deep Sleep Clock Divisor
  11490. #define SYSCTL_DSCLKCFG_DSSYSDIV_S \
  11491. 0
  11492. //*****************************************************************************
  11493. //
  11494. // The following are defines for the bit fields in the SYSCTL_DIVSCLK register.
  11495. //
  11496. //*****************************************************************************
  11497. #define SYSCTL_DIVSCLK_EN 0x80000000 // DIVSCLK Enable
  11498. #define SYSCTL_DIVSCLK_SRC_M 0x00030000 // Clock Source
  11499. #define SYSCTL_DIVSCLK_SRC_SYSCLK \
  11500. 0x00000000 // System Clock
  11501. #define SYSCTL_DIVSCLK_SRC_PIOSC \
  11502. 0x00010000 // PIOSC
  11503. #define SYSCTL_DIVSCLK_SRC_MOSC 0x00020000 // MOSC
  11504. #define SYSCTL_DIVSCLK_DIV_M 0x000000FF // Divisor Value
  11505. #define SYSCTL_DIVSCLK_DIV_S 0
  11506. //*****************************************************************************
  11507. //
  11508. // The following are defines for the bit fields in the SYSCTL_SYSPROP register.
  11509. //
  11510. //*****************************************************************************
  11511. #define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
  11512. //*****************************************************************************
  11513. //
  11514. // The following are defines for the bit fields in the SYSCTL_PIOSCCAL
  11515. // register.
  11516. //
  11517. //*****************************************************************************
  11518. #define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
  11519. #define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
  11520. #define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
  11521. #define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
  11522. #define SYSCTL_PIOSCCAL_UT_S 0
  11523. //*****************************************************************************
  11524. //
  11525. // The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
  11526. // register.
  11527. //
  11528. //*****************************************************************************
  11529. #define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
  11530. #define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
  11531. #define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
  11532. // attempted
  11533. #define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
  11534. // completed to meet 1% accuracy
  11535. #define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
  11536. // failed to meet 1% accuracy
  11537. #define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
  11538. #define SYSCTL_PIOSCSTAT_DT_S 16
  11539. #define SYSCTL_PIOSCSTAT_CT_S 0
  11540. //*****************************************************************************
  11541. //
  11542. // The following are defines for the bit fields in the SYSCTL_PLLFREQ0
  11543. // register.
  11544. //
  11545. //*****************************************************************************
  11546. #define SYSCTL_PLLFREQ0_PLLPWR 0x00800000 // PLL Power
  11547. #define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
  11548. #define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
  11549. #define SYSCTL_PLLFREQ0_MFRAC_S 10
  11550. #define SYSCTL_PLLFREQ0_MINT_S 0
  11551. //*****************************************************************************
  11552. //
  11553. // The following are defines for the bit fields in the SYSCTL_PLLFREQ1
  11554. // register.
  11555. //
  11556. //*****************************************************************************
  11557. #define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
  11558. #define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
  11559. #define SYSCTL_PLLFREQ1_Q_S 8
  11560. #define SYSCTL_PLLFREQ1_N_S 0
  11561. //*****************************************************************************
  11562. //
  11563. // The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
  11564. //
  11565. //*****************************************************************************
  11566. #define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
  11567. //*****************************************************************************
  11568. //
  11569. // The following are defines for the bit fields in the SYSCTL_SLPPWRCFG
  11570. // register.
  11571. //
  11572. //*****************************************************************************
  11573. #define SYSCTL_SLPPWRCFG_FLASHPM_M \
  11574. 0x00000030 // Flash Power Modes
  11575. #define SYSCTL_SLPPWRCFG_FLASHPM_NRM \
  11576. 0x00000000 // Active Mode
  11577. #define SYSCTL_SLPPWRCFG_FLASHPM_SLP \
  11578. 0x00000020 // Low Power Mode
  11579. #define SYSCTL_SLPPWRCFG_SRAMPM_M \
  11580. 0x00000003 // SRAM Power Modes
  11581. #define SYSCTL_SLPPWRCFG_SRAMPM_NRM \
  11582. 0x00000000 // Active Mode
  11583. #define SYSCTL_SLPPWRCFG_SRAMPM_SBY \
  11584. 0x00000001 // Standby Mode
  11585. #define SYSCTL_SLPPWRCFG_SRAMPM_LP \
  11586. 0x00000003 // Low Power Mode
  11587. //*****************************************************************************
  11588. //
  11589. // The following are defines for the bit fields in the SYSCTL_DSLPPWRCFG
  11590. // register.
  11591. //
  11592. //*****************************************************************************
  11593. #define SYSCTL_DSLPPWRCFG_LDOSM 0x00000200 // LDO Sleep Mode
  11594. #define SYSCTL_DSLPPWRCFG_TSPD 0x00000100 // Temperature Sense Power Down
  11595. #define SYSCTL_DSLPPWRCFG_FLASHPM_M \
  11596. 0x00000030 // Flash Power Modes
  11597. #define SYSCTL_DSLPPWRCFG_FLASHPM_NRM \
  11598. 0x00000000 // Active Mode
  11599. #define SYSCTL_DSLPPWRCFG_FLASHPM_SLP \
  11600. 0x00000020 // Low Power Mode
  11601. #define SYSCTL_DSLPPWRCFG_SRAMPM_M \
  11602. 0x00000003 // SRAM Power Modes
  11603. #define SYSCTL_DSLPPWRCFG_SRAMPM_NRM \
  11604. 0x00000000 // Active Mode
  11605. #define SYSCTL_DSLPPWRCFG_SRAMPM_SBY \
  11606. 0x00000001 // Standby Mode
  11607. #define SYSCTL_DSLPPWRCFG_SRAMPM_LP \
  11608. 0x00000003 // Low Power Mode
  11609. //*****************************************************************************
  11610. //
  11611. // The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
  11612. //
  11613. //*****************************************************************************
  11614. #define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
  11615. // Available
  11616. //*****************************************************************************
  11617. //
  11618. // The following are defines for the bit fields in the SYSCTL_LDOSPCTL
  11619. // register.
  11620. //
  11621. //*****************************************************************************
  11622. #define SYSCTL_LDOSPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
  11623. #define SYSCTL_LDOSPCTL_VLDO_M 0x000000FF // LDO Output Voltage
  11624. #define SYSCTL_LDOSPCTL_VLDO_0_90V \
  11625. 0x00000012 // 0.90 V
  11626. #define SYSCTL_LDOSPCTL_VLDO_0_95V \
  11627. 0x00000013 // 0.95 V
  11628. #define SYSCTL_LDOSPCTL_VLDO_1_00V \
  11629. 0x00000014 // 1.00 V
  11630. #define SYSCTL_LDOSPCTL_VLDO_1_05V \
  11631. 0x00000015 // 1.05 V
  11632. #define SYSCTL_LDOSPCTL_VLDO_1_10V \
  11633. 0x00000016 // 1.10 V
  11634. #define SYSCTL_LDOSPCTL_VLDO_1_15V \
  11635. 0x00000017 // 1.15 V
  11636. #define SYSCTL_LDOSPCTL_VLDO_1_20V \
  11637. 0x00000018 // 1.20 V
  11638. //*****************************************************************************
  11639. //
  11640. // The following are defines for the bit fields in the SYSCTL_LDODPCTL
  11641. // register.
  11642. //
  11643. //*****************************************************************************
  11644. #define SYSCTL_LDODPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
  11645. #define SYSCTL_LDODPCTL_VLDO_M 0x000000FF // LDO Output Voltage
  11646. #define SYSCTL_LDODPCTL_VLDO_0_90V \
  11647. 0x00000012 // 0.90 V
  11648. #define SYSCTL_LDODPCTL_VLDO_0_95V \
  11649. 0x00000013 // 0.95 V
  11650. #define SYSCTL_LDODPCTL_VLDO_1_00V \
  11651. 0x00000014 // 1.00 V
  11652. #define SYSCTL_LDODPCTL_VLDO_1_05V \
  11653. 0x00000015 // 1.05 V
  11654. #define SYSCTL_LDODPCTL_VLDO_1_10V \
  11655. 0x00000016 // 1.10 V
  11656. #define SYSCTL_LDODPCTL_VLDO_1_15V \
  11657. 0x00000017 // 1.15 V
  11658. #define SYSCTL_LDODPCTL_VLDO_1_20V \
  11659. 0x00000018 // 1.20 V
  11660. #define SYSCTL_LDODPCTL_VLDO_1_25V \
  11661. 0x00000019 // 1.25 V
  11662. #define SYSCTL_LDODPCTL_VLDO_1_30V \
  11663. 0x0000001A // 1.30 V
  11664. #define SYSCTL_LDODPCTL_VLDO_1_35V \
  11665. 0x0000001B // 1.35 V
  11666. //*****************************************************************************
  11667. //
  11668. // The following are defines for the bit fields in the SYSCTL_RESBEHAVCTL
  11669. // register.
  11670. //
  11671. //*****************************************************************************
  11672. #define SYSCTL_RESBEHAVCTL_WDOG1_M \
  11673. 0x000000C0 // Watchdog 1 Reset Operation
  11674. #define SYSCTL_RESBEHAVCTL_WDOG1_SYSRST \
  11675. 0x00000080 // Watchdog 1 issues a system
  11676. // reset. The application starts
  11677. // within 10 us
  11678. #define SYSCTL_RESBEHAVCTL_WDOG1_POR \
  11679. 0x000000C0 // Watchdog 1 issues a simulated
  11680. // POR sequence. Application starts
  11681. // less than 500 us after
  11682. // deassertion (Default)
  11683. #define SYSCTL_RESBEHAVCTL_WDOG0_M \
  11684. 0x00000030 // Watchdog 0 Reset Operation
  11685. #define SYSCTL_RESBEHAVCTL_WDOG0_SYSRST \
  11686. 0x00000020 // Watchdog 0 issues a system
  11687. // reset. The application starts
  11688. // within 10 us
  11689. #define SYSCTL_RESBEHAVCTL_WDOG0_POR \
  11690. 0x00000030 // Watchdog 0 issues a simulated
  11691. // POR sequence. Application starts
  11692. // less than 500 us after
  11693. // deassertion (Default)
  11694. #define SYSCTL_RESBEHAVCTL_BOR_M \
  11695. 0x0000000C // BOR Reset operation
  11696. #define SYSCTL_RESBEHAVCTL_BOR_SYSRST \
  11697. 0x00000008 // Brown Out Reset issues system
  11698. // reset. The application starts
  11699. // within 10 us
  11700. #define SYSCTL_RESBEHAVCTL_BOR_POR \
  11701. 0x0000000C // Brown Out Reset issues a
  11702. // simulated POR sequence. The
  11703. // application starts less than 500
  11704. // us after deassertion (Default)
  11705. #define SYSCTL_RESBEHAVCTL_EXTRES_M \
  11706. 0x00000003 // External RST Pin Operation
  11707. #define SYSCTL_RESBEHAVCTL_EXTRES_SYSRST \
  11708. 0x00000002 // External RST assertion issues a
  11709. // system reset. The application
  11710. // starts within 10 us
  11711. #define SYSCTL_RESBEHAVCTL_EXTRES_POR \
  11712. 0x00000003 // External RST assertion issues a
  11713. // simulated POR sequence.
  11714. // Application starts less than 500
  11715. // us after deassertion (Default)
  11716. //*****************************************************************************
  11717. //
  11718. // The following are defines for the bit fields in the SYSCTL_HSSR register.
  11719. //
  11720. //*****************************************************************************
  11721. #define SYSCTL_HSSR_KEY_M 0xFF000000 // Write Key
  11722. #define SYSCTL_HSSR_CDOFF_M 0x00FFFFFF // Command Descriptor Pointer
  11723. #define SYSCTL_HSSR_KEY_S 24
  11724. #define SYSCTL_HSSR_CDOFF_S 0
  11725. //*****************************************************************************
  11726. //
  11727. // The following are defines for the bit fields in the SYSCTL_USBPDS register.
  11728. //
  11729. //*****************************************************************************
  11730. #define SYSCTL_USBPDS_MEMSTAT_M 0x0000000C // Memory Array Power Status
  11731. #define SYSCTL_USBPDS_MEMSTAT_OFF \
  11732. 0x00000000 // Array OFF
  11733. #define SYSCTL_USBPDS_MEMSTAT_RETAIN \
  11734. 0x00000004 // SRAM Retention
  11735. #define SYSCTL_USBPDS_MEMSTAT_ON \
  11736. 0x0000000C // Array On
  11737. #define SYSCTL_USBPDS_PWRSTAT_M 0x00000003 // Power Domain Status
  11738. #define SYSCTL_USBPDS_PWRSTAT_OFF \
  11739. 0x00000000 // OFF
  11740. #define SYSCTL_USBPDS_PWRSTAT_ON \
  11741. 0x00000003 // ON
  11742. //*****************************************************************************
  11743. //
  11744. // The following are defines for the bit fields in the SYSCTL_USBMPC register.
  11745. //
  11746. //*****************************************************************************
  11747. #define SYSCTL_USBMPC_PWRCTL_M 0x00000003 // Memory Array Power Control
  11748. #define SYSCTL_USBMPC_PWRCTL_OFF \
  11749. 0x00000000 // Array OFF
  11750. #define SYSCTL_USBMPC_PWRCTL_RETAIN \
  11751. 0x00000001 // SRAM Retention
  11752. #define SYSCTL_USBMPC_PWRCTL_ON 0x00000003 // Array On
  11753. //*****************************************************************************
  11754. //
  11755. // The following are defines for the bit fields in the SYSCTL_EMACPDS register.
  11756. //
  11757. //*****************************************************************************
  11758. #define SYSCTL_EMACPDS_MEMSTAT_M \
  11759. 0x0000000C // Memory Array Power Status
  11760. #define SYSCTL_EMACPDS_MEMSTAT_OFF \
  11761. 0x00000000 // Array OFF
  11762. #define SYSCTL_EMACPDS_MEMSTAT_ON \
  11763. 0x0000000C // Array On
  11764. #define SYSCTL_EMACPDS_PWRSTAT_M \
  11765. 0x00000003 // Power Domain Status
  11766. #define SYSCTL_EMACPDS_PWRSTAT_OFF \
  11767. 0x00000000 // OFF
  11768. #define SYSCTL_EMACPDS_PWRSTAT_ON \
  11769. 0x00000003 // ON
  11770. //*****************************************************************************
  11771. //
  11772. // The following are defines for the bit fields in the SYSCTL_EMACMPC register.
  11773. //
  11774. //*****************************************************************************
  11775. #define SYSCTL_EMACMPC_PWRCTL_M 0x00000003 // Memory Array Power Control
  11776. #define SYSCTL_EMACMPC_PWRCTL_OFF \
  11777. 0x00000000 // Array OFF
  11778. #define SYSCTL_EMACMPC_PWRCTL_ON \
  11779. 0x00000003 // Array On
  11780. //*****************************************************************************
  11781. //
  11782. // The following are defines for the bit fields in the SYSCTL_PPWD register.
  11783. //
  11784. //*****************************************************************************
  11785. #define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
  11786. #define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
  11787. //*****************************************************************************
  11788. //
  11789. // The following are defines for the bit fields in the SYSCTL_PPTIMER register.
  11790. //
  11791. //*****************************************************************************
  11792. #define SYSCTL_PPTIMER_P7 0x00000080 // 16/32-Bit General-Purpose Timer
  11793. // 7 Present
  11794. #define SYSCTL_PPTIMER_P6 0x00000040 // 16/32-Bit General-Purpose Timer
  11795. // 6 Present
  11796. #define SYSCTL_PPTIMER_P5 0x00000020 // 16/32-Bit General-Purpose Timer
  11797. // 5 Present
  11798. #define SYSCTL_PPTIMER_P4 0x00000010 // 16/32-Bit General-Purpose Timer
  11799. // 4 Present
  11800. #define SYSCTL_PPTIMER_P3 0x00000008 // 16/32-Bit General-Purpose Timer
  11801. // 3 Present
  11802. #define SYSCTL_PPTIMER_P2 0x00000004 // 16/32-Bit General-Purpose Timer
  11803. // 2 Present
  11804. #define SYSCTL_PPTIMER_P1 0x00000002 // 16/32-Bit General-Purpose Timer
  11805. // 1 Present
  11806. #define SYSCTL_PPTIMER_P0 0x00000001 // 16/32-Bit General-Purpose Timer
  11807. // 0 Present
  11808. //*****************************************************************************
  11809. //
  11810. // The following are defines for the bit fields in the SYSCTL_PPGPIO register.
  11811. //
  11812. //*****************************************************************************
  11813. #define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
  11814. #define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
  11815. #define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
  11816. #define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
  11817. #define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
  11818. #define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
  11819. #define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
  11820. #define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
  11821. #define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
  11822. #define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
  11823. #define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
  11824. #define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
  11825. #define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
  11826. #define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
  11827. #define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
  11828. //*****************************************************************************
  11829. //
  11830. // The following are defines for the bit fields in the SYSCTL_PPDMA register.
  11831. //
  11832. //*****************************************************************************
  11833. #define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
  11834. //*****************************************************************************
  11835. //
  11836. // The following are defines for the bit fields in the SYSCTL_PPEPI register.
  11837. //
  11838. //*****************************************************************************
  11839. #define SYSCTL_PPEPI_P0 0x00000001 // EPI Module Present
  11840. //*****************************************************************************
  11841. //
  11842. // The following are defines for the bit fields in the SYSCTL_PPHIB register.
  11843. //
  11844. //*****************************************************************************
  11845. #define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
  11846. //*****************************************************************************
  11847. //
  11848. // The following are defines for the bit fields in the SYSCTL_PPUART register.
  11849. //
  11850. //*****************************************************************************
  11851. #define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
  11852. #define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
  11853. #define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
  11854. #define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
  11855. #define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
  11856. #define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
  11857. #define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
  11858. #define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
  11859. //*****************************************************************************
  11860. //
  11861. // The following are defines for the bit fields in the SYSCTL_PPSSI register.
  11862. //
  11863. //*****************************************************************************
  11864. #define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
  11865. #define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
  11866. #define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
  11867. #define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
  11868. //*****************************************************************************
  11869. //
  11870. // The following are defines for the bit fields in the SYSCTL_PPI2C register.
  11871. //
  11872. //*****************************************************************************
  11873. #define SYSCTL_PPI2C_P9 0x00000200 // I2C Module 9 Present
  11874. #define SYSCTL_PPI2C_P8 0x00000100 // I2C Module 8 Present
  11875. #define SYSCTL_PPI2C_P7 0x00000080 // I2C Module 7 Present
  11876. #define SYSCTL_PPI2C_P6 0x00000040 // I2C Module 6 Present
  11877. #define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
  11878. #define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
  11879. #define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
  11880. #define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
  11881. #define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
  11882. #define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
  11883. //*****************************************************************************
  11884. //
  11885. // The following are defines for the bit fields in the SYSCTL_PPUSB register.
  11886. //
  11887. //*****************************************************************************
  11888. #define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
  11889. //*****************************************************************************
  11890. //
  11891. // The following are defines for the bit fields in the SYSCTL_PPEPHY register.
  11892. //
  11893. //*****************************************************************************
  11894. #define SYSCTL_PPEPHY_P0 0x00000001 // Ethernet PHY Module Present
  11895. //*****************************************************************************
  11896. //
  11897. // The following are defines for the bit fields in the SYSCTL_PPCAN register.
  11898. //
  11899. //*****************************************************************************
  11900. #define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
  11901. #define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
  11902. //*****************************************************************************
  11903. //
  11904. // The following are defines for the bit fields in the SYSCTL_PPADC register.
  11905. //
  11906. //*****************************************************************************
  11907. #define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
  11908. #define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
  11909. //*****************************************************************************
  11910. //
  11911. // The following are defines for the bit fields in the SYSCTL_PPACMP register.
  11912. //
  11913. //*****************************************************************************
  11914. #define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
  11915. //*****************************************************************************
  11916. //
  11917. // The following are defines for the bit fields in the SYSCTL_PPPWM register.
  11918. //
  11919. //*****************************************************************************
  11920. #define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
  11921. //*****************************************************************************
  11922. //
  11923. // The following are defines for the bit fields in the SYSCTL_PPQEI register.
  11924. //
  11925. //*****************************************************************************
  11926. #define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
  11927. //*****************************************************************************
  11928. //
  11929. // The following are defines for the bit fields in the SYSCTL_PPLPC register.
  11930. //
  11931. //*****************************************************************************
  11932. #define SYSCTL_PPLPC_P0 0x00000001 // LPC Module Present
  11933. //*****************************************************************************
  11934. //
  11935. // The following are defines for the bit fields in the SYSCTL_PPPECI register.
  11936. //
  11937. //*****************************************************************************
  11938. #define SYSCTL_PPPECI_P0 0x00000001 // PECI Module Present
  11939. //*****************************************************************************
  11940. //
  11941. // The following are defines for the bit fields in the SYSCTL_PPFAN register.
  11942. //
  11943. //*****************************************************************************
  11944. #define SYSCTL_PPFAN_P0 0x00000001 // FAN Module 0 Present
  11945. //*****************************************************************************
  11946. //
  11947. // The following are defines for the bit fields in the SYSCTL_PPEEPROM
  11948. // register.
  11949. //
  11950. //*****************************************************************************
  11951. #define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
  11952. //*****************************************************************************
  11953. //
  11954. // The following are defines for the bit fields in the SYSCTL_PPWTIMER
  11955. // register.
  11956. //
  11957. //*****************************************************************************
  11958. #define SYSCTL_PPWTIMER_P0 0x00000001 // 32/64-Bit Wide General-Purpose
  11959. // Timer 0 Present
  11960. //*****************************************************************************
  11961. //
  11962. // The following are defines for the bit fields in the SYSCTL_PPRTS register.
  11963. //
  11964. //*****************************************************************************
  11965. #define SYSCTL_PPRTS_P0 0x00000001 // RTS Module Present
  11966. //*****************************************************************************
  11967. //
  11968. // The following are defines for the bit fields in the SYSCTL_PPCCM register.
  11969. //
  11970. //*****************************************************************************
  11971. #define SYSCTL_PPCCM_P0 0x00000001 // CRC and Cryptographic Modules
  11972. // Present
  11973. //*****************************************************************************
  11974. //
  11975. // The following are defines for the bit fields in the SYSCTL_PPLCD register.
  11976. //
  11977. //*****************************************************************************
  11978. #define SYSCTL_PPLCD_P0 0x00000001 // LCD Module Present
  11979. //*****************************************************************************
  11980. //
  11981. // The following are defines for the bit fields in the SYSCTL_PPOWIRE register.
  11982. //
  11983. //*****************************************************************************
  11984. #define SYSCTL_PPOWIRE_P0 0x00000001 // 1-Wire Module Present
  11985. //*****************************************************************************
  11986. //
  11987. // The following are defines for the bit fields in the SYSCTL_PPEMAC register.
  11988. //
  11989. //*****************************************************************************
  11990. #define SYSCTL_PPEMAC_P0 0x00000001 // Ethernet Controller Module
  11991. // Present
  11992. //*****************************************************************************
  11993. //
  11994. // The following are defines for the bit fields in the SYSCTL_PPHIM register.
  11995. //
  11996. //*****************************************************************************
  11997. #define SYSCTL_PPHIM_P0 0x00000001 // HIM Module Present
  11998. //*****************************************************************************
  11999. //
  12000. // The following are defines for the bit fields in the SYSCTL_SRWD register.
  12001. //
  12002. //*****************************************************************************
  12003. #define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
  12004. #define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
  12005. //*****************************************************************************
  12006. //
  12007. // The following are defines for the bit fields in the SYSCTL_SRTIMER register.
  12008. //
  12009. //*****************************************************************************
  12010. #define SYSCTL_SRTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  12011. // 7 Software Reset
  12012. #define SYSCTL_SRTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  12013. // 6 Software Reset
  12014. #define SYSCTL_SRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  12015. // 5 Software Reset
  12016. #define SYSCTL_SRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  12017. // 4 Software Reset
  12018. #define SYSCTL_SRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  12019. // 3 Software Reset
  12020. #define SYSCTL_SRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  12021. // 2 Software Reset
  12022. #define SYSCTL_SRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  12023. // 1 Software Reset
  12024. #define SYSCTL_SRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  12025. // 0 Software Reset
  12026. //*****************************************************************************
  12027. //
  12028. // The following are defines for the bit fields in the SYSCTL_SRGPIO register.
  12029. //
  12030. //*****************************************************************************
  12031. #define SYSCTL_SRGPIO_R14 0x00004000 // GPIO Port Q Software Reset
  12032. #define SYSCTL_SRGPIO_R13 0x00002000 // GPIO Port P Software Reset
  12033. #define SYSCTL_SRGPIO_R12 0x00001000 // GPIO Port N Software Reset
  12034. #define SYSCTL_SRGPIO_R11 0x00000800 // GPIO Port M Software Reset
  12035. #define SYSCTL_SRGPIO_R10 0x00000400 // GPIO Port L Software Reset
  12036. #define SYSCTL_SRGPIO_R9 0x00000200 // GPIO Port K Software Reset
  12037. #define SYSCTL_SRGPIO_R8 0x00000100 // GPIO Port J Software Reset
  12038. #define SYSCTL_SRGPIO_R7 0x00000080 // GPIO Port H Software Reset
  12039. #define SYSCTL_SRGPIO_R6 0x00000040 // GPIO Port G Software Reset
  12040. #define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
  12041. #define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
  12042. #define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
  12043. #define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
  12044. #define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
  12045. #define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
  12046. //*****************************************************************************
  12047. //
  12048. // The following are defines for the bit fields in the SYSCTL_SRDMA register.
  12049. //
  12050. //*****************************************************************************
  12051. #define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
  12052. //*****************************************************************************
  12053. //
  12054. // The following are defines for the bit fields in the SYSCTL_SREPI register.
  12055. //
  12056. //*****************************************************************************
  12057. #define SYSCTL_SREPI_R0 0x00000001 // EPI Module Software Reset
  12058. //*****************************************************************************
  12059. //
  12060. // The following are defines for the bit fields in the SYSCTL_SRHIB register.
  12061. //
  12062. //*****************************************************************************
  12063. #define SYSCTL_SRHIB_R0 0x00000001 // Hibernation Module Software
  12064. // Reset
  12065. //*****************************************************************************
  12066. //
  12067. // The following are defines for the bit fields in the SYSCTL_SRUART register.
  12068. //
  12069. //*****************************************************************************
  12070. #define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
  12071. #define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
  12072. #define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
  12073. #define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
  12074. #define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
  12075. #define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
  12076. #define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
  12077. #define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
  12078. //*****************************************************************************
  12079. //
  12080. // The following are defines for the bit fields in the SYSCTL_SRSSI register.
  12081. //
  12082. //*****************************************************************************
  12083. #define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
  12084. #define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
  12085. #define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
  12086. #define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
  12087. //*****************************************************************************
  12088. //
  12089. // The following are defines for the bit fields in the SYSCTL_SRI2C register.
  12090. //
  12091. //*****************************************************************************
  12092. #define SYSCTL_SRI2C_R9 0x00000200 // I2C Module 9 Software Reset
  12093. #define SYSCTL_SRI2C_R8 0x00000100 // I2C Module 8 Software Reset
  12094. #define SYSCTL_SRI2C_R7 0x00000080 // I2C Module 7 Software Reset
  12095. #define SYSCTL_SRI2C_R6 0x00000040 // I2C Module 6 Software Reset
  12096. #define SYSCTL_SRI2C_R5 0x00000020 // I2C Module 5 Software Reset
  12097. #define SYSCTL_SRI2C_R4 0x00000010 // I2C Module 4 Software Reset
  12098. #define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
  12099. #define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
  12100. #define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
  12101. #define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
  12102. //*****************************************************************************
  12103. //
  12104. // The following are defines for the bit fields in the SYSCTL_SRUSB register.
  12105. //
  12106. //*****************************************************************************
  12107. #define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
  12108. //*****************************************************************************
  12109. //
  12110. // The following are defines for the bit fields in the SYSCTL_SREPHY register.
  12111. //
  12112. //*****************************************************************************
  12113. #define SYSCTL_SREPHY_R0 0x00000001 // Ethernet PHY Module Software
  12114. // Reset
  12115. //*****************************************************************************
  12116. //
  12117. // The following are defines for the bit fields in the SYSCTL_SRCAN register.
  12118. //
  12119. //*****************************************************************************
  12120. #define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
  12121. #define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
  12122. //*****************************************************************************
  12123. //
  12124. // The following are defines for the bit fields in the SYSCTL_SRADC register.
  12125. //
  12126. //*****************************************************************************
  12127. #define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
  12128. #define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
  12129. //*****************************************************************************
  12130. //
  12131. // The following are defines for the bit fields in the SYSCTL_SRACMP register.
  12132. //
  12133. //*****************************************************************************
  12134. #define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module 0
  12135. // Software Reset
  12136. //*****************************************************************************
  12137. //
  12138. // The following are defines for the bit fields in the SYSCTL_SRPWM register.
  12139. //
  12140. //*****************************************************************************
  12141. #define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
  12142. //*****************************************************************************
  12143. //
  12144. // The following are defines for the bit fields in the SYSCTL_SRQEI register.
  12145. //
  12146. //*****************************************************************************
  12147. #define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
  12148. //*****************************************************************************
  12149. //
  12150. // The following are defines for the bit fields in the SYSCTL_SREEPROM
  12151. // register.
  12152. //
  12153. //*****************************************************************************
  12154. #define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
  12155. //*****************************************************************************
  12156. //
  12157. // The following are defines for the bit fields in the SYSCTL_SRCCM register.
  12158. //
  12159. //*****************************************************************************
  12160. #define SYSCTL_SRCCM_R0 0x00000001 // CRC and Cryptographic Modules
  12161. // Software Reset
  12162. //*****************************************************************************
  12163. //
  12164. // The following are defines for the bit fields in the SYSCTL_SREMAC register.
  12165. //
  12166. //*****************************************************************************
  12167. #define SYSCTL_SREMAC_R0 0x00000001 // Ethernet Controller MAC Module 0
  12168. // Software Reset
  12169. //*****************************************************************************
  12170. //
  12171. // The following are defines for the bit fields in the SYSCTL_RCGCWD register.
  12172. //
  12173. //*****************************************************************************
  12174. #define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
  12175. // Gating Control
  12176. #define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
  12177. // Gating Control
  12178. //*****************************************************************************
  12179. //
  12180. // The following are defines for the bit fields in the SYSCTL_RCGCTIMER
  12181. // register.
  12182. //
  12183. //*****************************************************************************
  12184. #define SYSCTL_RCGCTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  12185. // 7 Run Mode Clock Gating Control
  12186. #define SYSCTL_RCGCTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  12187. // 6 Run Mode Clock Gating Control
  12188. #define SYSCTL_RCGCTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  12189. // 5 Run Mode Clock Gating Control
  12190. #define SYSCTL_RCGCTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  12191. // 4 Run Mode Clock Gating Control
  12192. #define SYSCTL_RCGCTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  12193. // 3 Run Mode Clock Gating Control
  12194. #define SYSCTL_RCGCTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  12195. // 2 Run Mode Clock Gating Control
  12196. #define SYSCTL_RCGCTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  12197. // 1 Run Mode Clock Gating Control
  12198. #define SYSCTL_RCGCTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  12199. // 0 Run Mode Clock Gating Control
  12200. //*****************************************************************************
  12201. //
  12202. // The following are defines for the bit fields in the SYSCTL_RCGCGPIO
  12203. // register.
  12204. //
  12205. //*****************************************************************************
  12206. #define SYSCTL_RCGCGPIO_R14 0x00004000 // GPIO Port Q Run Mode Clock
  12207. // Gating Control
  12208. #define SYSCTL_RCGCGPIO_R13 0x00002000 // GPIO Port P Run Mode Clock
  12209. // Gating Control
  12210. #define SYSCTL_RCGCGPIO_R12 0x00001000 // GPIO Port N Run Mode Clock
  12211. // Gating Control
  12212. #define SYSCTL_RCGCGPIO_R11 0x00000800 // GPIO Port M Run Mode Clock
  12213. // Gating Control
  12214. #define SYSCTL_RCGCGPIO_R10 0x00000400 // GPIO Port L Run Mode Clock
  12215. // Gating Control
  12216. #define SYSCTL_RCGCGPIO_R9 0x00000200 // GPIO Port K Run Mode Clock
  12217. // Gating Control
  12218. #define SYSCTL_RCGCGPIO_R8 0x00000100 // GPIO Port J Run Mode Clock
  12219. // Gating Control
  12220. #define SYSCTL_RCGCGPIO_R7 0x00000080 // GPIO Port H Run Mode Clock
  12221. // Gating Control
  12222. #define SYSCTL_RCGCGPIO_R6 0x00000040 // GPIO Port G Run Mode Clock
  12223. // Gating Control
  12224. #define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
  12225. // Gating Control
  12226. #define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
  12227. // Gating Control
  12228. #define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
  12229. // Gating Control
  12230. #define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
  12231. // Gating Control
  12232. #define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
  12233. // Gating Control
  12234. #define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
  12235. // Gating Control
  12236. //*****************************************************************************
  12237. //
  12238. // The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
  12239. //
  12240. //*****************************************************************************
  12241. #define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
  12242. // Gating Control
  12243. //*****************************************************************************
  12244. //
  12245. // The following are defines for the bit fields in the SYSCTL_RCGCEPI register.
  12246. //
  12247. //*****************************************************************************
  12248. #define SYSCTL_RCGCEPI_R0 0x00000001 // EPI Module Run Mode Clock Gating
  12249. // Control
  12250. //*****************************************************************************
  12251. //
  12252. // The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
  12253. //
  12254. //*****************************************************************************
  12255. #define SYSCTL_RCGCHIB_R0 0x00000001 // Hibernation Module Run Mode
  12256. // Clock Gating Control
  12257. //*****************************************************************************
  12258. //
  12259. // The following are defines for the bit fields in the SYSCTL_RCGCUART
  12260. // register.
  12261. //
  12262. //*****************************************************************************
  12263. #define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
  12264. // Gating Control
  12265. #define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
  12266. // Gating Control
  12267. #define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
  12268. // Gating Control
  12269. #define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
  12270. // Gating Control
  12271. #define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
  12272. // Gating Control
  12273. #define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
  12274. // Gating Control
  12275. #define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
  12276. // Gating Control
  12277. #define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
  12278. // Gating Control
  12279. //*****************************************************************************
  12280. //
  12281. // The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
  12282. //
  12283. //*****************************************************************************
  12284. #define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
  12285. // Gating Control
  12286. #define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
  12287. // Gating Control
  12288. #define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
  12289. // Gating Control
  12290. #define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
  12291. // Gating Control
  12292. //*****************************************************************************
  12293. //
  12294. // The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
  12295. //
  12296. //*****************************************************************************
  12297. #define SYSCTL_RCGCI2C_R9 0x00000200 // I2C Module 9 Run Mode Clock
  12298. // Gating Control
  12299. #define SYSCTL_RCGCI2C_R8 0x00000100 // I2C Module 8 Run Mode Clock
  12300. // Gating Control
  12301. #define SYSCTL_RCGCI2C_R7 0x00000080 // I2C Module 7 Run Mode Clock
  12302. // Gating Control
  12303. #define SYSCTL_RCGCI2C_R6 0x00000040 // I2C Module 6 Run Mode Clock
  12304. // Gating Control
  12305. #define SYSCTL_RCGCI2C_R5 0x00000020 // I2C Module 5 Run Mode Clock
  12306. // Gating Control
  12307. #define SYSCTL_RCGCI2C_R4 0x00000010 // I2C Module 4 Run Mode Clock
  12308. // Gating Control
  12309. #define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
  12310. // Gating Control
  12311. #define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
  12312. // Gating Control
  12313. #define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
  12314. // Gating Control
  12315. #define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
  12316. // Gating Control
  12317. //*****************************************************************************
  12318. //
  12319. // The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
  12320. //
  12321. //*****************************************************************************
  12322. #define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
  12323. // Control
  12324. //*****************************************************************************
  12325. //
  12326. // The following are defines for the bit fields in the SYSCTL_RCGCEPHY
  12327. // register.
  12328. //
  12329. //*****************************************************************************
  12330. #define SYSCTL_RCGCEPHY_R0 0x00000001 // Ethernet PHY Module Run Mode
  12331. // Clock Gating Control
  12332. //*****************************************************************************
  12333. //
  12334. // The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
  12335. //
  12336. //*****************************************************************************
  12337. #define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
  12338. // Gating Control
  12339. #define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
  12340. // Gating Control
  12341. //*****************************************************************************
  12342. //
  12343. // The following are defines for the bit fields in the SYSCTL_RCGCADC register.
  12344. //
  12345. //*****************************************************************************
  12346. #define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
  12347. // Gating Control
  12348. #define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
  12349. // Gating Control
  12350. //*****************************************************************************
  12351. //
  12352. // The following are defines for the bit fields in the SYSCTL_RCGCACMP
  12353. // register.
  12354. //
  12355. //*****************************************************************************
  12356. #define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module 0 Run
  12357. // Mode Clock Gating Control
  12358. //*****************************************************************************
  12359. //
  12360. // The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
  12361. //
  12362. //*****************************************************************************
  12363. #define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
  12364. // Gating Control
  12365. //*****************************************************************************
  12366. //
  12367. // The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
  12368. //
  12369. //*****************************************************************************
  12370. #define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
  12371. // Gating Control
  12372. //*****************************************************************************
  12373. //
  12374. // The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
  12375. // register.
  12376. //
  12377. //*****************************************************************************
  12378. #define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
  12379. // Gating Control
  12380. //*****************************************************************************
  12381. //
  12382. // The following are defines for the bit fields in the SYSCTL_RCGCCCM register.
  12383. //
  12384. //*****************************************************************************
  12385. #define SYSCTL_RCGCCCM_R0 0x00000001 // CRC and Cryptographic Modules
  12386. // Run Mode Clock Gating Control
  12387. //*****************************************************************************
  12388. //
  12389. // The following are defines for the bit fields in the SYSCTL_RCGCEMAC
  12390. // register.
  12391. //
  12392. //*****************************************************************************
  12393. #define SYSCTL_RCGCEMAC_R0 0x00000001 // Ethernet MAC Module 0 Run Mode
  12394. // Clock Gating Control
  12395. //*****************************************************************************
  12396. //
  12397. // The following are defines for the bit fields in the SYSCTL_SCGCWD register.
  12398. //
  12399. //*****************************************************************************
  12400. #define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
  12401. // Clock Gating Control
  12402. #define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
  12403. // Clock Gating Control
  12404. //*****************************************************************************
  12405. //
  12406. // The following are defines for the bit fields in the SYSCTL_SCGCTIMER
  12407. // register.
  12408. //
  12409. //*****************************************************************************
  12410. #define SYSCTL_SCGCTIMER_S7 0x00000080 // 16/32-Bit General-Purpose Timer
  12411. // 7 Sleep Mode Clock Gating
  12412. // Control
  12413. #define SYSCTL_SCGCTIMER_S6 0x00000040 // 16/32-Bit General-Purpose Timer
  12414. // 6 Sleep Mode Clock Gating
  12415. // Control
  12416. #define SYSCTL_SCGCTIMER_S5 0x00000020 // 16/32-Bit General-Purpose Timer
  12417. // 5 Sleep Mode Clock Gating
  12418. // Control
  12419. #define SYSCTL_SCGCTIMER_S4 0x00000010 // 16/32-Bit General-Purpose Timer
  12420. // 4 Sleep Mode Clock Gating
  12421. // Control
  12422. #define SYSCTL_SCGCTIMER_S3 0x00000008 // 16/32-Bit General-Purpose Timer
  12423. // 3 Sleep Mode Clock Gating
  12424. // Control
  12425. #define SYSCTL_SCGCTIMER_S2 0x00000004 // 16/32-Bit General-Purpose Timer
  12426. // 2 Sleep Mode Clock Gating
  12427. // Control
  12428. #define SYSCTL_SCGCTIMER_S1 0x00000002 // 16/32-Bit General-Purpose Timer
  12429. // 1 Sleep Mode Clock Gating
  12430. // Control
  12431. #define SYSCTL_SCGCTIMER_S0 0x00000001 // 16/32-Bit General-Purpose Timer
  12432. // 0 Sleep Mode Clock Gating
  12433. // Control
  12434. //*****************************************************************************
  12435. //
  12436. // The following are defines for the bit fields in the SYSCTL_SCGCGPIO
  12437. // register.
  12438. //
  12439. //*****************************************************************************
  12440. #define SYSCTL_SCGCGPIO_S14 0x00004000 // GPIO Port Q Sleep Mode Clock
  12441. // Gating Control
  12442. #define SYSCTL_SCGCGPIO_S13 0x00002000 // GPIO Port P Sleep Mode Clock
  12443. // Gating Control
  12444. #define SYSCTL_SCGCGPIO_S12 0x00001000 // GPIO Port N Sleep Mode Clock
  12445. // Gating Control
  12446. #define SYSCTL_SCGCGPIO_S11 0x00000800 // GPIO Port M Sleep Mode Clock
  12447. // Gating Control
  12448. #define SYSCTL_SCGCGPIO_S10 0x00000400 // GPIO Port L Sleep Mode Clock
  12449. // Gating Control
  12450. #define SYSCTL_SCGCGPIO_S9 0x00000200 // GPIO Port K Sleep Mode Clock
  12451. // Gating Control
  12452. #define SYSCTL_SCGCGPIO_S8 0x00000100 // GPIO Port J Sleep Mode Clock
  12453. // Gating Control
  12454. #define SYSCTL_SCGCGPIO_S7 0x00000080 // GPIO Port H Sleep Mode Clock
  12455. // Gating Control
  12456. #define SYSCTL_SCGCGPIO_S6 0x00000040 // GPIO Port G Sleep Mode Clock
  12457. // Gating Control
  12458. #define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
  12459. // Gating Control
  12460. #define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
  12461. // Gating Control
  12462. #define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
  12463. // Gating Control
  12464. #define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
  12465. // Gating Control
  12466. #define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
  12467. // Gating Control
  12468. #define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
  12469. // Gating Control
  12470. //*****************************************************************************
  12471. //
  12472. // The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
  12473. //
  12474. //*****************************************************************************
  12475. #define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
  12476. // Gating Control
  12477. //*****************************************************************************
  12478. //
  12479. // The following are defines for the bit fields in the SYSCTL_SCGCEPI register.
  12480. //
  12481. //*****************************************************************************
  12482. #define SYSCTL_SCGCEPI_S0 0x00000001 // EPI Module Sleep Mode Clock
  12483. // Gating Control
  12484. //*****************************************************************************
  12485. //
  12486. // The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
  12487. //
  12488. //*****************************************************************************
  12489. #define SYSCTL_SCGCHIB_S0 0x00000001 // Hibernation Module Sleep Mode
  12490. // Clock Gating Control
  12491. //*****************************************************************************
  12492. //
  12493. // The following are defines for the bit fields in the SYSCTL_SCGCUART
  12494. // register.
  12495. //
  12496. //*****************************************************************************
  12497. #define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
  12498. // Gating Control
  12499. #define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
  12500. // Gating Control
  12501. #define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
  12502. // Gating Control
  12503. #define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
  12504. // Gating Control
  12505. #define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
  12506. // Gating Control
  12507. #define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
  12508. // Gating Control
  12509. #define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
  12510. // Gating Control
  12511. #define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
  12512. // Gating Control
  12513. //*****************************************************************************
  12514. //
  12515. // The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
  12516. //
  12517. //*****************************************************************************
  12518. #define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
  12519. // Gating Control
  12520. #define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
  12521. // Gating Control
  12522. #define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
  12523. // Gating Control
  12524. #define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
  12525. // Gating Control
  12526. //*****************************************************************************
  12527. //
  12528. // The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
  12529. //
  12530. //*****************************************************************************
  12531. #define SYSCTL_SCGCI2C_S9 0x00000200 // I2C Module 9 Sleep Mode Clock
  12532. // Gating Control
  12533. #define SYSCTL_SCGCI2C_S8 0x00000100 // I2C Module 8 Sleep Mode Clock
  12534. // Gating Control
  12535. #define SYSCTL_SCGCI2C_S7 0x00000080 // I2C Module 7 Sleep Mode Clock
  12536. // Gating Control
  12537. #define SYSCTL_SCGCI2C_S6 0x00000040 // I2C Module 6 Sleep Mode Clock
  12538. // Gating Control
  12539. #define SYSCTL_SCGCI2C_S5 0x00000020 // I2C Module 5 Sleep Mode Clock
  12540. // Gating Control
  12541. #define SYSCTL_SCGCI2C_S4 0x00000010 // I2C Module 4 Sleep Mode Clock
  12542. // Gating Control
  12543. #define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
  12544. // Gating Control
  12545. #define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
  12546. // Gating Control
  12547. #define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
  12548. // Gating Control
  12549. #define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
  12550. // Gating Control
  12551. //*****************************************************************************
  12552. //
  12553. // The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
  12554. //
  12555. //*****************************************************************************
  12556. #define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
  12557. // Gating Control
  12558. //*****************************************************************************
  12559. //
  12560. // The following are defines for the bit fields in the SYSCTL_SCGCEPHY
  12561. // register.
  12562. //
  12563. //*****************************************************************************
  12564. #define SYSCTL_SCGCEPHY_S0 0x00000001 // PHY Module Sleep Mode Clock
  12565. // Gating Control
  12566. //*****************************************************************************
  12567. //
  12568. // The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
  12569. //
  12570. //*****************************************************************************
  12571. #define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
  12572. // Gating Control
  12573. #define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
  12574. // Gating Control
  12575. //*****************************************************************************
  12576. //
  12577. // The following are defines for the bit fields in the SYSCTL_SCGCADC register.
  12578. //
  12579. //*****************************************************************************
  12580. #define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
  12581. // Gating Control
  12582. #define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
  12583. // Gating Control
  12584. //*****************************************************************************
  12585. //
  12586. // The following are defines for the bit fields in the SYSCTL_SCGCACMP
  12587. // register.
  12588. //
  12589. //*****************************************************************************
  12590. #define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module 0 Sleep
  12591. // Mode Clock Gating Control
  12592. //*****************************************************************************
  12593. //
  12594. // The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
  12595. //
  12596. //*****************************************************************************
  12597. #define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
  12598. // Gating Control
  12599. //*****************************************************************************
  12600. //
  12601. // The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
  12602. //
  12603. //*****************************************************************************
  12604. #define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
  12605. // Gating Control
  12606. //*****************************************************************************
  12607. //
  12608. // The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
  12609. // register.
  12610. //
  12611. //*****************************************************************************
  12612. #define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
  12613. // Gating Control
  12614. //*****************************************************************************
  12615. //
  12616. // The following are defines for the bit fields in the SYSCTL_SCGCCCM register.
  12617. //
  12618. //*****************************************************************************
  12619. #define SYSCTL_SCGCCCM_S0 0x00000001 // CRC and Cryptographic Modules
  12620. // Sleep Mode Clock Gating Control
  12621. //*****************************************************************************
  12622. //
  12623. // The following are defines for the bit fields in the SYSCTL_SCGCEMAC
  12624. // register.
  12625. //
  12626. //*****************************************************************************
  12627. #define SYSCTL_SCGCEMAC_S0 0x00000001 // Ethernet MAC Module 0 Sleep Mode
  12628. // Clock Gating Control
  12629. //*****************************************************************************
  12630. //
  12631. // The following are defines for the bit fields in the SYSCTL_DCGCWD register.
  12632. //
  12633. //*****************************************************************************
  12634. #define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
  12635. // Clock Gating Control
  12636. #define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
  12637. // Clock Gating Control
  12638. //*****************************************************************************
  12639. //
  12640. // The following are defines for the bit fields in the SYSCTL_DCGCTIMER
  12641. // register.
  12642. //
  12643. //*****************************************************************************
  12644. #define SYSCTL_DCGCTIMER_D7 0x00000080 // 16/32-Bit General-Purpose Timer
  12645. // 7 Deep-Sleep Mode Clock Gating
  12646. // Control
  12647. #define SYSCTL_DCGCTIMER_D6 0x00000040 // 16/32-Bit General-Purpose Timer
  12648. // 6 Deep-Sleep Mode Clock Gating
  12649. // Control
  12650. #define SYSCTL_DCGCTIMER_D5 0x00000020 // 16/32-Bit General-Purpose Timer
  12651. // 5 Deep-Sleep Mode Clock Gating
  12652. // Control
  12653. #define SYSCTL_DCGCTIMER_D4 0x00000010 // 16/32-Bit General-Purpose Timer
  12654. // 4 Deep-Sleep Mode Clock Gating
  12655. // Control
  12656. #define SYSCTL_DCGCTIMER_D3 0x00000008 // 16/32-Bit General-Purpose Timer
  12657. // 3 Deep-Sleep Mode Clock Gating
  12658. // Control
  12659. #define SYSCTL_DCGCTIMER_D2 0x00000004 // 16/32-Bit General-Purpose Timer
  12660. // 2 Deep-Sleep Mode Clock Gating
  12661. // Control
  12662. #define SYSCTL_DCGCTIMER_D1 0x00000002 // 16/32-Bit General-Purpose Timer
  12663. // 1 Deep-Sleep Mode Clock Gating
  12664. // Control
  12665. #define SYSCTL_DCGCTIMER_D0 0x00000001 // 16/32-Bit General-Purpose Timer
  12666. // 0 Deep-Sleep Mode Clock Gating
  12667. // Control
  12668. //*****************************************************************************
  12669. //
  12670. // The following are defines for the bit fields in the SYSCTL_DCGCGPIO
  12671. // register.
  12672. //
  12673. //*****************************************************************************
  12674. #define SYSCTL_DCGCGPIO_D14 0x00004000 // GPIO Port Q Deep-Sleep Mode
  12675. // Clock Gating Control
  12676. #define SYSCTL_DCGCGPIO_D13 0x00002000 // GPIO Port P Deep-Sleep Mode
  12677. // Clock Gating Control
  12678. #define SYSCTL_DCGCGPIO_D12 0x00001000 // GPIO Port N Deep-Sleep Mode
  12679. // Clock Gating Control
  12680. #define SYSCTL_DCGCGPIO_D11 0x00000800 // GPIO Port M Deep-Sleep Mode
  12681. // Clock Gating Control
  12682. #define SYSCTL_DCGCGPIO_D10 0x00000400 // GPIO Port L Deep-Sleep Mode
  12683. // Clock Gating Control
  12684. #define SYSCTL_DCGCGPIO_D9 0x00000200 // GPIO Port K Deep-Sleep Mode
  12685. // Clock Gating Control
  12686. #define SYSCTL_DCGCGPIO_D8 0x00000100 // GPIO Port J Deep-Sleep Mode
  12687. // Clock Gating Control
  12688. #define SYSCTL_DCGCGPIO_D7 0x00000080 // GPIO Port H Deep-Sleep Mode
  12689. // Clock Gating Control
  12690. #define SYSCTL_DCGCGPIO_D6 0x00000040 // GPIO Port G Deep-Sleep Mode
  12691. // Clock Gating Control
  12692. #define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
  12693. // Clock Gating Control
  12694. #define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
  12695. // Clock Gating Control
  12696. #define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
  12697. // Clock Gating Control
  12698. #define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
  12699. // Clock Gating Control
  12700. #define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
  12701. // Clock Gating Control
  12702. #define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
  12703. // Clock Gating Control
  12704. //*****************************************************************************
  12705. //
  12706. // The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
  12707. //
  12708. //*****************************************************************************
  12709. #define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
  12710. // Clock Gating Control
  12711. //*****************************************************************************
  12712. //
  12713. // The following are defines for the bit fields in the SYSCTL_DCGCEPI register.
  12714. //
  12715. //*****************************************************************************
  12716. #define SYSCTL_DCGCEPI_D0 0x00000001 // EPI Module Deep-Sleep Mode Clock
  12717. // Gating Control
  12718. //*****************************************************************************
  12719. //
  12720. // The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
  12721. //
  12722. //*****************************************************************************
  12723. #define SYSCTL_DCGCHIB_D0 0x00000001 // Hibernation Module Deep-Sleep
  12724. // Mode Clock Gating Control
  12725. //*****************************************************************************
  12726. //
  12727. // The following are defines for the bit fields in the SYSCTL_DCGCUART
  12728. // register.
  12729. //
  12730. //*****************************************************************************
  12731. #define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
  12732. // Clock Gating Control
  12733. #define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
  12734. // Clock Gating Control
  12735. #define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
  12736. // Clock Gating Control
  12737. #define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
  12738. // Clock Gating Control
  12739. #define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
  12740. // Clock Gating Control
  12741. #define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
  12742. // Clock Gating Control
  12743. #define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
  12744. // Clock Gating Control
  12745. #define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
  12746. // Clock Gating Control
  12747. //*****************************************************************************
  12748. //
  12749. // The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
  12750. //
  12751. //*****************************************************************************
  12752. #define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
  12753. // Clock Gating Control
  12754. #define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
  12755. // Clock Gating Control
  12756. #define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
  12757. // Clock Gating Control
  12758. #define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
  12759. // Clock Gating Control
  12760. //*****************************************************************************
  12761. //
  12762. // The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
  12763. //
  12764. //*****************************************************************************
  12765. #define SYSCTL_DCGCI2C_D9 0x00000200 // I2C Module 9 Deep-Sleep Mode
  12766. // Clock Gating Control
  12767. #define SYSCTL_DCGCI2C_D8 0x00000100 // I2C Module 8 Deep-Sleep Mode
  12768. // Clock Gating Control
  12769. #define SYSCTL_DCGCI2C_D7 0x00000080 // I2C Module 7 Deep-Sleep Mode
  12770. // Clock Gating Control
  12771. #define SYSCTL_DCGCI2C_D6 0x00000040 // I2C Module 6 Deep-Sleep Mode
  12772. // Clock Gating Control
  12773. #define SYSCTL_DCGCI2C_D5 0x00000020 // I2C Module 5 Deep-Sleep Mode
  12774. // Clock Gating Control
  12775. #define SYSCTL_DCGCI2C_D4 0x00000010 // I2C Module 4 Deep-Sleep Mode
  12776. // Clock Gating Control
  12777. #define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
  12778. // Clock Gating Control
  12779. #define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
  12780. // Clock Gating Control
  12781. #define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
  12782. // Clock Gating Control
  12783. #define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
  12784. // Clock Gating Control
  12785. //*****************************************************************************
  12786. //
  12787. // The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
  12788. //
  12789. //*****************************************************************************
  12790. #define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
  12791. // Gating Control
  12792. //*****************************************************************************
  12793. //
  12794. // The following are defines for the bit fields in the SYSCTL_DCGCEPHY
  12795. // register.
  12796. //
  12797. //*****************************************************************************
  12798. #define SYSCTL_DCGCEPHY_D0 0x00000001 // PHY Module Deep-Sleep Mode Clock
  12799. // Gating Control
  12800. //*****************************************************************************
  12801. //
  12802. // The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
  12803. //
  12804. //*****************************************************************************
  12805. #define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
  12806. // Clock Gating Control
  12807. #define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
  12808. // Clock Gating Control
  12809. //*****************************************************************************
  12810. //
  12811. // The following are defines for the bit fields in the SYSCTL_DCGCADC register.
  12812. //
  12813. //*****************************************************************************
  12814. #define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
  12815. // Clock Gating Control
  12816. #define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
  12817. // Clock Gating Control
  12818. //*****************************************************************************
  12819. //
  12820. // The following are defines for the bit fields in the SYSCTL_DCGCACMP
  12821. // register.
  12822. //
  12823. //*****************************************************************************
  12824. #define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module 0
  12825. // Deep-Sleep Mode Clock Gating
  12826. // Control
  12827. //*****************************************************************************
  12828. //
  12829. // The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
  12830. //
  12831. //*****************************************************************************
  12832. #define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
  12833. // Clock Gating Control
  12834. //*****************************************************************************
  12835. //
  12836. // The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
  12837. //
  12838. //*****************************************************************************
  12839. #define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
  12840. // Clock Gating Control
  12841. //*****************************************************************************
  12842. //
  12843. // The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
  12844. // register.
  12845. //
  12846. //*****************************************************************************
  12847. #define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
  12848. // Clock Gating Control
  12849. //*****************************************************************************
  12850. //
  12851. // The following are defines for the bit fields in the SYSCTL_DCGCCCM register.
  12852. //
  12853. //*****************************************************************************
  12854. #define SYSCTL_DCGCCCM_D0 0x00000001 // CRC and Cryptographic Modules
  12855. // Deep-Sleep Mode Clock Gating
  12856. // Control
  12857. //*****************************************************************************
  12858. //
  12859. // The following are defines for the bit fields in the SYSCTL_DCGCEMAC
  12860. // register.
  12861. //
  12862. //*****************************************************************************
  12863. #define SYSCTL_DCGCEMAC_D0 0x00000001 // Ethernet MAC Module 0 Deep-Sleep
  12864. // Mode Clock Gating Control
  12865. //*****************************************************************************
  12866. //
  12867. // The following are defines for the bit fields in the SYSCTL_PCWD register.
  12868. //
  12869. //*****************************************************************************
  12870. #define SYSCTL_PCWD_P1 0x00000002 // Watchdog Timer 1 Power Control
  12871. #define SYSCTL_PCWD_P0 0x00000001 // Watchdog Timer 0 Power Control
  12872. //*****************************************************************************
  12873. //
  12874. // The following are defines for the bit fields in the SYSCTL_PCTIMER register.
  12875. //
  12876. //*****************************************************************************
  12877. #define SYSCTL_PCTIMER_P7 0x00000080 // General-Purpose Timer 7 Power
  12878. // Control
  12879. #define SYSCTL_PCTIMER_P6 0x00000040 // General-Purpose Timer 6 Power
  12880. // Control
  12881. #define SYSCTL_PCTIMER_P5 0x00000020 // General-Purpose Timer 5 Power
  12882. // Control
  12883. #define SYSCTL_PCTIMER_P4 0x00000010 // General-Purpose Timer 4 Power
  12884. // Control
  12885. #define SYSCTL_PCTIMER_P3 0x00000008 // General-Purpose Timer 3 Power
  12886. // Control
  12887. #define SYSCTL_PCTIMER_P2 0x00000004 // General-Purpose Timer 2 Power
  12888. // Control
  12889. #define SYSCTL_PCTIMER_P1 0x00000002 // General-Purpose Timer 1 Power
  12890. // Control
  12891. #define SYSCTL_PCTIMER_P0 0x00000001 // General-Purpose Timer 0 Power
  12892. // Control
  12893. //*****************************************************************************
  12894. //
  12895. // The following are defines for the bit fields in the SYSCTL_PCGPIO register.
  12896. //
  12897. //*****************************************************************************
  12898. #define SYSCTL_PCGPIO_P14 0x00004000 // GPIO Port Q Power Control
  12899. #define SYSCTL_PCGPIO_P13 0x00002000 // GPIO Port P Power Control
  12900. #define SYSCTL_PCGPIO_P12 0x00001000 // GPIO Port N Power Control
  12901. #define SYSCTL_PCGPIO_P11 0x00000800 // GPIO Port M Power Control
  12902. #define SYSCTL_PCGPIO_P10 0x00000400 // GPIO Port L Power Control
  12903. #define SYSCTL_PCGPIO_P9 0x00000200 // GPIO Port K Power Control
  12904. #define SYSCTL_PCGPIO_P8 0x00000100 // GPIO Port J Power Control
  12905. #define SYSCTL_PCGPIO_P7 0x00000080 // GPIO Port H Power Control
  12906. #define SYSCTL_PCGPIO_P6 0x00000040 // GPIO Port G Power Control
  12907. #define SYSCTL_PCGPIO_P5 0x00000020 // GPIO Port F Power Control
  12908. #define SYSCTL_PCGPIO_P4 0x00000010 // GPIO Port E Power Control
  12909. #define SYSCTL_PCGPIO_P3 0x00000008 // GPIO Port D Power Control
  12910. #define SYSCTL_PCGPIO_P2 0x00000004 // GPIO Port C Power Control
  12911. #define SYSCTL_PCGPIO_P1 0x00000002 // GPIO Port B Power Control
  12912. #define SYSCTL_PCGPIO_P0 0x00000001 // GPIO Port A Power Control
  12913. //*****************************************************************************
  12914. //
  12915. // The following are defines for the bit fields in the SYSCTL_PCDMA register.
  12916. //
  12917. //*****************************************************************************
  12918. #define SYSCTL_PCDMA_P0 0x00000001 // uDMA Module Power Control
  12919. //*****************************************************************************
  12920. //
  12921. // The following are defines for the bit fields in the SYSCTL_PCEPI register.
  12922. //
  12923. //*****************************************************************************
  12924. #define SYSCTL_PCEPI_P0 0x00000001 // EPI Module Power Control
  12925. //*****************************************************************************
  12926. //
  12927. // The following are defines for the bit fields in the SYSCTL_PCHIB register.
  12928. //
  12929. //*****************************************************************************
  12930. #define SYSCTL_PCHIB_P0 0x00000001 // Hibernation Module Power Control
  12931. //*****************************************************************************
  12932. //
  12933. // The following are defines for the bit fields in the SYSCTL_PCUART register.
  12934. //
  12935. //*****************************************************************************
  12936. #define SYSCTL_PCUART_P7 0x00000080 // UART Module 7 Power Control
  12937. #define SYSCTL_PCUART_P6 0x00000040 // UART Module 6 Power Control
  12938. #define SYSCTL_PCUART_P5 0x00000020 // UART Module 5 Power Control
  12939. #define SYSCTL_PCUART_P4 0x00000010 // UART Module 4 Power Control
  12940. #define SYSCTL_PCUART_P3 0x00000008 // UART Module 3 Power Control
  12941. #define SYSCTL_PCUART_P2 0x00000004 // UART Module 2 Power Control
  12942. #define SYSCTL_PCUART_P1 0x00000002 // UART Module 1 Power Control
  12943. #define SYSCTL_PCUART_P0 0x00000001 // UART Module 0 Power Control
  12944. //*****************************************************************************
  12945. //
  12946. // The following are defines for the bit fields in the SYSCTL_PCSSI register.
  12947. //
  12948. //*****************************************************************************
  12949. #define SYSCTL_PCSSI_P3 0x00000008 // SSI Module 3 Power Control
  12950. #define SYSCTL_PCSSI_P2 0x00000004 // SSI Module 2 Power Control
  12951. #define SYSCTL_PCSSI_P1 0x00000002 // SSI Module 1 Power Control
  12952. #define SYSCTL_PCSSI_P0 0x00000001 // SSI Module 0 Power Control
  12953. //*****************************************************************************
  12954. //
  12955. // The following are defines for the bit fields in the SYSCTL_PCI2C register.
  12956. //
  12957. //*****************************************************************************
  12958. #define SYSCTL_PCI2C_P9 0x00000200 // I2C Module 9 Power Control
  12959. #define SYSCTL_PCI2C_P8 0x00000100 // I2C Module 8 Power Control
  12960. #define SYSCTL_PCI2C_P7 0x00000080 // I2C Module 7 Power Control
  12961. #define SYSCTL_PCI2C_P6 0x00000040 // I2C Module 6 Power Control
  12962. #define SYSCTL_PCI2C_P5 0x00000020 // I2C Module 5 Power Control
  12963. #define SYSCTL_PCI2C_P4 0x00000010 // I2C Module 4 Power Control
  12964. #define SYSCTL_PCI2C_P3 0x00000008 // I2C Module 3 Power Control
  12965. #define SYSCTL_PCI2C_P2 0x00000004 // I2C Module 2 Power Control
  12966. #define SYSCTL_PCI2C_P1 0x00000002 // I2C Module 1 Power Control
  12967. #define SYSCTL_PCI2C_P0 0x00000001 // I2C Module 0 Power Control
  12968. //*****************************************************************************
  12969. //
  12970. // The following are defines for the bit fields in the SYSCTL_PCUSB register.
  12971. //
  12972. //*****************************************************************************
  12973. #define SYSCTL_PCUSB_P0 0x00000001 // USB Module Power Control
  12974. //*****************************************************************************
  12975. //
  12976. // The following are defines for the bit fields in the SYSCTL_PCEPHY register.
  12977. //
  12978. //*****************************************************************************
  12979. #define SYSCTL_PCEPHY_P0 0x00000001 // Ethernet PHY Module Power
  12980. // Control
  12981. //*****************************************************************************
  12982. //
  12983. // The following are defines for the bit fields in the SYSCTL_PCCAN register.
  12984. //
  12985. //*****************************************************************************
  12986. #define SYSCTL_PCCAN_P1 0x00000002 // CAN Module 1 Power Control
  12987. #define SYSCTL_PCCAN_P0 0x00000001 // CAN Module 0 Power Control
  12988. //*****************************************************************************
  12989. //
  12990. // The following are defines for the bit fields in the SYSCTL_PCADC register.
  12991. //
  12992. //*****************************************************************************
  12993. #define SYSCTL_PCADC_P1 0x00000002 // ADC Module 1 Power Control
  12994. #define SYSCTL_PCADC_P0 0x00000001 // ADC Module 0 Power Control
  12995. //*****************************************************************************
  12996. //
  12997. // The following are defines for the bit fields in the SYSCTL_PCACMP register.
  12998. //
  12999. //*****************************************************************************
  13000. #define SYSCTL_PCACMP_P0 0x00000001 // Analog Comparator Module 0 Power
  13001. // Control
  13002. //*****************************************************************************
  13003. //
  13004. // The following are defines for the bit fields in the SYSCTL_PCPWM register.
  13005. //
  13006. //*****************************************************************************
  13007. #define SYSCTL_PCPWM_P0 0x00000001 // PWM Module 0 Power Control
  13008. //*****************************************************************************
  13009. //
  13010. // The following are defines for the bit fields in the SYSCTL_PCQEI register.
  13011. //
  13012. //*****************************************************************************
  13013. #define SYSCTL_PCQEI_P0 0x00000001 // QEI Module 0 Power Control
  13014. //*****************************************************************************
  13015. //
  13016. // The following are defines for the bit fields in the SYSCTL_PCEEPROM
  13017. // register.
  13018. //
  13019. //*****************************************************************************
  13020. #define SYSCTL_PCEEPROM_P0 0x00000001 // EEPROM Module 0 Power Control
  13021. //*****************************************************************************
  13022. //
  13023. // The following are defines for the bit fields in the SYSCTL_PCCCM register.
  13024. //
  13025. //*****************************************************************************
  13026. #define SYSCTL_PCCCM_P0 0x00000001 // CRC and Cryptographic Modules
  13027. // Power Control
  13028. //*****************************************************************************
  13029. //
  13030. // The following are defines for the bit fields in the SYSCTL_PCEMAC register.
  13031. //
  13032. //*****************************************************************************
  13033. #define SYSCTL_PCEMAC_P0 0x00000001 // Ethernet MAC Module 0 Power
  13034. // Control
  13035. //*****************************************************************************
  13036. //
  13037. // The following are defines for the bit fields in the SYSCTL_PRWD register.
  13038. //
  13039. //*****************************************************************************
  13040. #define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
  13041. // Ready
  13042. #define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
  13043. // Ready
  13044. //*****************************************************************************
  13045. //
  13046. // The following are defines for the bit fields in the SYSCTL_PRTIMER register.
  13047. //
  13048. //*****************************************************************************
  13049. #define SYSCTL_PRTIMER_R7 0x00000080 // 16/32-Bit General-Purpose Timer
  13050. // 7 Peripheral Ready
  13051. #define SYSCTL_PRTIMER_R6 0x00000040 // 16/32-Bit General-Purpose Timer
  13052. // 6 Peripheral Ready
  13053. #define SYSCTL_PRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
  13054. // 5 Peripheral Ready
  13055. #define SYSCTL_PRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
  13056. // 4 Peripheral Ready
  13057. #define SYSCTL_PRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
  13058. // 3 Peripheral Ready
  13059. #define SYSCTL_PRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
  13060. // 2 Peripheral Ready
  13061. #define SYSCTL_PRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
  13062. // 1 Peripheral Ready
  13063. #define SYSCTL_PRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
  13064. // 0 Peripheral Ready
  13065. //*****************************************************************************
  13066. //
  13067. // The following are defines for the bit fields in the SYSCTL_PRGPIO register.
  13068. //
  13069. //*****************************************************************************
  13070. #define SYSCTL_PRGPIO_R14 0x00004000 // GPIO Port Q Peripheral Ready
  13071. #define SYSCTL_PRGPIO_R13 0x00002000 // GPIO Port P Peripheral Ready
  13072. #define SYSCTL_PRGPIO_R12 0x00001000 // GPIO Port N Peripheral Ready
  13073. #define SYSCTL_PRGPIO_R11 0x00000800 // GPIO Port M Peripheral Ready
  13074. #define SYSCTL_PRGPIO_R10 0x00000400 // GPIO Port L Peripheral Ready
  13075. #define SYSCTL_PRGPIO_R9 0x00000200 // GPIO Port K Peripheral Ready
  13076. #define SYSCTL_PRGPIO_R8 0x00000100 // GPIO Port J Peripheral Ready
  13077. #define SYSCTL_PRGPIO_R7 0x00000080 // GPIO Port H Peripheral Ready
  13078. #define SYSCTL_PRGPIO_R6 0x00000040 // GPIO Port G Peripheral Ready
  13079. #define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
  13080. #define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
  13081. #define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
  13082. #define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
  13083. #define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
  13084. #define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
  13085. //*****************************************************************************
  13086. //
  13087. // The following are defines for the bit fields in the SYSCTL_PRDMA register.
  13088. //
  13089. //*****************************************************************************
  13090. #define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
  13091. //*****************************************************************************
  13092. //
  13093. // The following are defines for the bit fields in the SYSCTL_PREPI register.
  13094. //
  13095. //*****************************************************************************
  13096. #define SYSCTL_PREPI_R0 0x00000001 // EPI Module Peripheral Ready
  13097. //*****************************************************************************
  13098. //
  13099. // The following are defines for the bit fields in the SYSCTL_PRHIB register.
  13100. //
  13101. //*****************************************************************************
  13102. #define SYSCTL_PRHIB_R0 0x00000001 // Hibernation Module Peripheral
  13103. // Ready
  13104. //*****************************************************************************
  13105. //
  13106. // The following are defines for the bit fields in the SYSCTL_PRUART register.
  13107. //
  13108. //*****************************************************************************
  13109. #define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
  13110. #define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
  13111. #define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
  13112. #define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
  13113. #define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
  13114. #define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
  13115. #define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
  13116. #define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
  13117. //*****************************************************************************
  13118. //
  13119. // The following are defines for the bit fields in the SYSCTL_PRSSI register.
  13120. //
  13121. //*****************************************************************************
  13122. #define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
  13123. #define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
  13124. #define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
  13125. #define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
  13126. //*****************************************************************************
  13127. //
  13128. // The following are defines for the bit fields in the SYSCTL_PRI2C register.
  13129. //
  13130. //*****************************************************************************
  13131. #define SYSCTL_PRI2C_R9 0x00000200 // I2C Module 9 Peripheral Ready
  13132. #define SYSCTL_PRI2C_R8 0x00000100 // I2C Module 8 Peripheral Ready
  13133. #define SYSCTL_PRI2C_R7 0x00000080 // I2C Module 7 Peripheral Ready
  13134. #define SYSCTL_PRI2C_R6 0x00000040 // I2C Module 6 Peripheral Ready
  13135. #define SYSCTL_PRI2C_R5 0x00000020 // I2C Module 5 Peripheral Ready
  13136. #define SYSCTL_PRI2C_R4 0x00000010 // I2C Module 4 Peripheral Ready
  13137. #define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
  13138. #define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
  13139. #define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
  13140. #define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
  13141. //*****************************************************************************
  13142. //
  13143. // The following are defines for the bit fields in the SYSCTL_PRUSB register.
  13144. //
  13145. //*****************************************************************************
  13146. #define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
  13147. //*****************************************************************************
  13148. //
  13149. // The following are defines for the bit fields in the SYSCTL_PREPHY register.
  13150. //
  13151. //*****************************************************************************
  13152. #define SYSCTL_PREPHY_R0 0x00000001 // Ethernet PHY Module Peripheral
  13153. // Ready
  13154. //*****************************************************************************
  13155. //
  13156. // The following are defines for the bit fields in the SYSCTL_PRCAN register.
  13157. //
  13158. //*****************************************************************************
  13159. #define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
  13160. #define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
  13161. //*****************************************************************************
  13162. //
  13163. // The following are defines for the bit fields in the SYSCTL_PRADC register.
  13164. //
  13165. //*****************************************************************************
  13166. #define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
  13167. #define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
  13168. //*****************************************************************************
  13169. //
  13170. // The following are defines for the bit fields in the SYSCTL_PRACMP register.
  13171. //
  13172. //*****************************************************************************
  13173. #define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module 0
  13174. // Peripheral Ready
  13175. //*****************************************************************************
  13176. //
  13177. // The following are defines for the bit fields in the SYSCTL_PRPWM register.
  13178. //
  13179. //*****************************************************************************
  13180. #define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
  13181. //*****************************************************************************
  13182. //
  13183. // The following are defines for the bit fields in the SYSCTL_PRQEI register.
  13184. //
  13185. //*****************************************************************************
  13186. #define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
  13187. //*****************************************************************************
  13188. //
  13189. // The following are defines for the bit fields in the SYSCTL_PREEPROM
  13190. // register.
  13191. //
  13192. //*****************************************************************************
  13193. #define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
  13194. //*****************************************************************************
  13195. //
  13196. // The following are defines for the bit fields in the SYSCTL_PRCCM register.
  13197. //
  13198. //*****************************************************************************
  13199. #define SYSCTL_PRCCM_R0 0x00000001 // CRC and Cryptographic Modules
  13200. // Peripheral Ready
  13201. //*****************************************************************************
  13202. //
  13203. // The following are defines for the bit fields in the SYSCTL_PREMAC register.
  13204. //
  13205. //*****************************************************************************
  13206. #define SYSCTL_PREMAC_R0 0x00000001 // Ethernet MAC Module 0 Peripheral
  13207. // Ready
  13208. //*****************************************************************************
  13209. //
  13210. // The following are defines for the bit fields in the UDMA_STAT register.
  13211. //
  13212. //*****************************************************************************
  13213. #define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
  13214. #define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
  13215. #define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
  13216. #define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
  13217. #define UDMA_STAT_STATE_RD_SRCENDP \
  13218. 0x00000020 // Reading source end pointer
  13219. #define UDMA_STAT_STATE_RD_DSTENDP \
  13220. 0x00000030 // Reading destination end pointer
  13221. #define UDMA_STAT_STATE_RD_SRCDAT \
  13222. 0x00000040 // Reading source data
  13223. #define UDMA_STAT_STATE_WR_DSTDAT \
  13224. 0x00000050 // Writing destination data
  13225. #define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
  13226. // clear
  13227. #define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
  13228. #define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
  13229. #define UDMA_STAT_STATE_DONE 0x00000090 // Done
  13230. #define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
  13231. #define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
  13232. #define UDMA_STAT_DMACHANS_S 16
  13233. //*****************************************************************************
  13234. //
  13235. // The following are defines for the bit fields in the UDMA_CFG register.
  13236. //
  13237. //*****************************************************************************
  13238. #define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
  13239. //*****************************************************************************
  13240. //
  13241. // The following are defines for the bit fields in the UDMA_CTLBASE register.
  13242. //
  13243. //*****************************************************************************
  13244. #define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
  13245. #define UDMA_CTLBASE_ADDR_S 10
  13246. //*****************************************************************************
  13247. //
  13248. // The following are defines for the bit fields in the UDMA_ALTBASE register.
  13249. //
  13250. //*****************************************************************************
  13251. #define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
  13252. // Pointer
  13253. #define UDMA_ALTBASE_ADDR_S 0
  13254. //*****************************************************************************
  13255. //
  13256. // The following are defines for the bit fields in the UDMA_WAITSTAT register.
  13257. //
  13258. //*****************************************************************************
  13259. #define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
  13260. //*****************************************************************************
  13261. //
  13262. // The following are defines for the bit fields in the UDMA_SWREQ register.
  13263. //
  13264. //*****************************************************************************
  13265. #define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
  13266. //*****************************************************************************
  13267. //
  13268. // The following are defines for the bit fields in the UDMA_USEBURSTSET
  13269. // register.
  13270. //
  13271. //*****************************************************************************
  13272. #define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
  13273. //*****************************************************************************
  13274. //
  13275. // The following are defines for the bit fields in the UDMA_USEBURSTCLR
  13276. // register.
  13277. //
  13278. //*****************************************************************************
  13279. #define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
  13280. //*****************************************************************************
  13281. //
  13282. // The following are defines for the bit fields in the UDMA_REQMASKSET
  13283. // register.
  13284. //
  13285. //*****************************************************************************
  13286. #define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
  13287. //*****************************************************************************
  13288. //
  13289. // The following are defines for the bit fields in the UDMA_REQMASKCLR
  13290. // register.
  13291. //
  13292. //*****************************************************************************
  13293. #define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
  13294. //*****************************************************************************
  13295. //
  13296. // The following are defines for the bit fields in the UDMA_ENASET register.
  13297. //
  13298. //*****************************************************************************
  13299. #define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
  13300. //*****************************************************************************
  13301. //
  13302. // The following are defines for the bit fields in the UDMA_ENACLR register.
  13303. //
  13304. //*****************************************************************************
  13305. #define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
  13306. //*****************************************************************************
  13307. //
  13308. // The following are defines for the bit fields in the UDMA_ALTSET register.
  13309. //
  13310. //*****************************************************************************
  13311. #define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
  13312. //*****************************************************************************
  13313. //
  13314. // The following are defines for the bit fields in the UDMA_ALTCLR register.
  13315. //
  13316. //*****************************************************************************
  13317. #define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
  13318. //*****************************************************************************
  13319. //
  13320. // The following are defines for the bit fields in the UDMA_PRIOSET register.
  13321. //
  13322. //*****************************************************************************
  13323. #define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
  13324. //*****************************************************************************
  13325. //
  13326. // The following are defines for the bit fields in the UDMA_PRIOCLR register.
  13327. //
  13328. //*****************************************************************************
  13329. #define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
  13330. //*****************************************************************************
  13331. //
  13332. // The following are defines for the bit fields in the UDMA_ERRCLR register.
  13333. //
  13334. //*****************************************************************************
  13335. #define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
  13336. //*****************************************************************************
  13337. //
  13338. // The following are defines for the bit fields in the UDMA_CHASGN register.
  13339. //
  13340. //*****************************************************************************
  13341. #define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
  13342. #define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
  13343. // assignment
  13344. #define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
  13345. // assignment
  13346. //*****************************************************************************
  13347. //
  13348. // The following are defines for the bit fields in the UDMA_CHMAP0 register.
  13349. //
  13350. //*****************************************************************************
  13351. #define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
  13352. #define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
  13353. #define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
  13354. #define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
  13355. #define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
  13356. #define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
  13357. #define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
  13358. #define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
  13359. #define UDMA_CHMAP0_CH7SEL_S 28
  13360. #define UDMA_CHMAP0_CH6SEL_S 24
  13361. #define UDMA_CHMAP0_CH5SEL_S 20
  13362. #define UDMA_CHMAP0_CH4SEL_S 16
  13363. #define UDMA_CHMAP0_CH3SEL_S 12
  13364. #define UDMA_CHMAP0_CH2SEL_S 8
  13365. #define UDMA_CHMAP0_CH1SEL_S 4
  13366. #define UDMA_CHMAP0_CH0SEL_S 0
  13367. //*****************************************************************************
  13368. //
  13369. // The following are defines for the bit fields in the UDMA_CHMAP1 register.
  13370. //
  13371. //*****************************************************************************
  13372. #define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
  13373. #define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
  13374. #define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
  13375. #define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
  13376. #define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
  13377. #define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
  13378. #define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
  13379. #define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
  13380. #define UDMA_CHMAP1_CH15SEL_S 28
  13381. #define UDMA_CHMAP1_CH14SEL_S 24
  13382. #define UDMA_CHMAP1_CH13SEL_S 20
  13383. #define UDMA_CHMAP1_CH12SEL_S 16
  13384. #define UDMA_CHMAP1_CH11SEL_S 12
  13385. #define UDMA_CHMAP1_CH10SEL_S 8
  13386. #define UDMA_CHMAP1_CH9SEL_S 4
  13387. #define UDMA_CHMAP1_CH8SEL_S 0
  13388. //*****************************************************************************
  13389. //
  13390. // The following are defines for the bit fields in the UDMA_CHMAP2 register.
  13391. //
  13392. //*****************************************************************************
  13393. #define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
  13394. #define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
  13395. #define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
  13396. #define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
  13397. #define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
  13398. #define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
  13399. #define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
  13400. #define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
  13401. #define UDMA_CHMAP2_CH23SEL_S 28
  13402. #define UDMA_CHMAP2_CH22SEL_S 24
  13403. #define UDMA_CHMAP2_CH21SEL_S 20
  13404. #define UDMA_CHMAP2_CH20SEL_S 16
  13405. #define UDMA_CHMAP2_CH19SEL_S 12
  13406. #define UDMA_CHMAP2_CH18SEL_S 8
  13407. #define UDMA_CHMAP2_CH17SEL_S 4
  13408. #define UDMA_CHMAP2_CH16SEL_S 0
  13409. //*****************************************************************************
  13410. //
  13411. // The following are defines for the bit fields in the UDMA_CHMAP3 register.
  13412. //
  13413. //*****************************************************************************
  13414. #define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
  13415. #define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
  13416. #define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
  13417. #define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
  13418. #define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
  13419. #define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
  13420. #define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
  13421. #define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
  13422. #define UDMA_CHMAP3_CH31SEL_S 28
  13423. #define UDMA_CHMAP3_CH30SEL_S 24
  13424. #define UDMA_CHMAP3_CH29SEL_S 20
  13425. #define UDMA_CHMAP3_CH28SEL_S 16
  13426. #define UDMA_CHMAP3_CH27SEL_S 12
  13427. #define UDMA_CHMAP3_CH26SEL_S 8
  13428. #define UDMA_CHMAP3_CH25SEL_S 4
  13429. #define UDMA_CHMAP3_CH24SEL_S 0
  13430. //*****************************************************************************
  13431. //
  13432. // The following are defines for the bit fields in the UDMA_O_SRCENDP register.
  13433. //
  13434. //*****************************************************************************
  13435. #define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
  13436. #define UDMA_SRCENDP_ADDR_S 0
  13437. //*****************************************************************************
  13438. //
  13439. // The following are defines for the bit fields in the UDMA_O_DSTENDP register.
  13440. //
  13441. //*****************************************************************************
  13442. #define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
  13443. #define UDMA_DSTENDP_ADDR_S 0
  13444. //*****************************************************************************
  13445. //
  13446. // The following are defines for the bit fields in the UDMA_O_CHCTL register.
  13447. //
  13448. //*****************************************************************************
  13449. #define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
  13450. #define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
  13451. #define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
  13452. #define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
  13453. #define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
  13454. #define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
  13455. #define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
  13456. #define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
  13457. #define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
  13458. #define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
  13459. #define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
  13460. #define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
  13461. #define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
  13462. #define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
  13463. #define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
  13464. #define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
  13465. #define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
  13466. #define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
  13467. #define UDMA_CHCTL_DSTPROT0 0x00200000 // Destination Privilege Access
  13468. #define UDMA_CHCTL_SRCPROT0 0x00040000 // Source Privilege Access
  13469. #define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
  13470. #define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
  13471. #define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
  13472. #define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
  13473. #define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
  13474. #define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
  13475. #define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
  13476. #define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
  13477. #define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
  13478. #define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
  13479. #define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
  13480. #define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
  13481. #define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
  13482. #define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
  13483. #define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
  13484. #define UDMA_CHCTL_XFERMODE_STOP \
  13485. 0x00000000 // Stop
  13486. #define UDMA_CHCTL_XFERMODE_BASIC \
  13487. 0x00000001 // Basic
  13488. #define UDMA_CHCTL_XFERMODE_AUTO \
  13489. 0x00000002 // Auto-Request
  13490. #define UDMA_CHCTL_XFERMODE_PINGPONG \
  13491. 0x00000003 // Ping-Pong
  13492. #define UDMA_CHCTL_XFERMODE_MEM_SG \
  13493. 0x00000004 // Memory Scatter-Gather
  13494. #define UDMA_CHCTL_XFERMODE_MEM_SGA \
  13495. 0x00000005 // Alternate Memory Scatter-Gather
  13496. #define UDMA_CHCTL_XFERMODE_PER_SG \
  13497. 0x00000006 // Peripheral Scatter-Gather
  13498. #define UDMA_CHCTL_XFERMODE_PER_SGA \
  13499. 0x00000007 // Alternate Peripheral
  13500. // Scatter-Gather
  13501. #define UDMA_CHCTL_XFERSIZE_S 4
  13502. //*****************************************************************************
  13503. //
  13504. // The following are defines for the bit fields in the CCM_O_CRCCTRL register.
  13505. //
  13506. //*****************************************************************************
  13507. #define CCM_CRCCTRL_INIT_M 0x00006000 // CRC Initialization
  13508. #define CCM_CRCCTRL_INIT_SEED 0x00000000 // Use the CRCSEED register context
  13509. // as the starting value
  13510. #define CCM_CRCCTRL_INIT_0 0x00004000 // Initialize to all '0s'
  13511. #define CCM_CRCCTRL_INIT_1 0x00006000 // Initialize to all '1s'
  13512. #define CCM_CRCCTRL_SIZE 0x00001000 // Input Data Size
  13513. #define CCM_CRCCTRL_RESINV 0x00000200 // Result Inverse Enable
  13514. #define CCM_CRCCTRL_OBR 0x00000100 // Output Reverse Enable
  13515. #define CCM_CRCCTRL_BR 0x00000080 // Bit reverse enable
  13516. #define CCM_CRCCTRL_ENDIAN_M 0x00000030 // Endian Control
  13517. #define CCM_CRCCTRL_ENDIAN_SBHW 0x00000000 // Configuration unchanged. (B3,
  13518. // B2, B1, B0)
  13519. #define CCM_CRCCTRL_ENDIAN_SHW 0x00000010 // Bytes are swapped in half-words
  13520. // but half-words are not swapped
  13521. // (B2, B3, B0, B1)
  13522. #define CCM_CRCCTRL_ENDIAN_SHWNB \
  13523. 0x00000020 // Half-words are swapped but bytes
  13524. // are not swapped in half-word.
  13525. // (B1, B0, B3, B2)
  13526. #define CCM_CRCCTRL_ENDIAN_SBSW 0x00000030 // Bytes are swapped in half-words
  13527. // and half-words are swapped. (B0,
  13528. // B1, B2, B3)
  13529. #define CCM_CRCCTRL_TYPE_M 0x0000000F // Operation Type
  13530. #define CCM_CRCCTRL_TYPE_P8055 0x00000000 // Polynomial 0x8005
  13531. #define CCM_CRCCTRL_TYPE_P1021 0x00000001 // Polynomial 0x1021
  13532. #define CCM_CRCCTRL_TYPE_P4C11DB7 \
  13533. 0x00000002 // Polynomial 0x4C11DB7
  13534. #define CCM_CRCCTRL_TYPE_P1EDC6F41 \
  13535. 0x00000003 // Polynomial 0x1EDC6F41
  13536. #define CCM_CRCCTRL_TYPE_TCPCHKSUM \
  13537. 0x00000008 // TCP checksum
  13538. //*****************************************************************************
  13539. //
  13540. // The following are defines for the bit fields in the CCM_O_CRCSEED register.
  13541. //
  13542. //*****************************************************************************
  13543. #define CCM_CRCSEED_SEED_M 0xFFFFFFFF // SEED/Context Value
  13544. #define CCM_CRCSEED_SEED_S 0
  13545. //*****************************************************************************
  13546. //
  13547. // The following are defines for the bit fields in the CCM_O_CRCDIN register.
  13548. //
  13549. //*****************************************************************************
  13550. #define CCM_CRCDIN_DATAIN_M 0xFFFFFFFF // Data Input
  13551. #define CCM_CRCDIN_DATAIN_S 0
  13552. //*****************************************************************************
  13553. //
  13554. // The following are defines for the bit fields in the CCM_O_CRCRSLTPP
  13555. // register.
  13556. //
  13557. //*****************************************************************************
  13558. #define CCM_CRCRSLTPP_RSLTPP_M 0xFFFFFFFF // Post Processing Result
  13559. #define CCM_CRCRSLTPP_RSLTPP_S 0
  13560. //*****************************************************************************
  13561. //
  13562. // The following are defines for the bit fields in the NVIC_ACTLR register.
  13563. //
  13564. //*****************************************************************************
  13565. #define NVIC_ACTLR_DISOOFP 0x00000200 // Disable Out-Of-Order Floating
  13566. // Point
  13567. #define NVIC_ACTLR_DISFPCA 0x00000100 // Disable CONTROL
  13568. #define NVIC_ACTLR_DISFOLD 0x00000004 // Disable IT Folding
  13569. #define NVIC_ACTLR_DISWBUF 0x00000002 // Disable Write Buffer
  13570. #define NVIC_ACTLR_DISMCYC 0x00000001 // Disable Interrupts of Multiple
  13571. // Cycle Instructions
  13572. //*****************************************************************************
  13573. //
  13574. // The following are defines for the bit fields in the NVIC_ST_CTRL register.
  13575. //
  13576. //*****************************************************************************
  13577. #define NVIC_ST_CTRL_COUNT 0x00010000 // Count Flag
  13578. #define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
  13579. #define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt Enable
  13580. #define NVIC_ST_CTRL_ENABLE 0x00000001 // Enable
  13581. //*****************************************************************************
  13582. //
  13583. // The following are defines for the bit fields in the NVIC_ST_RELOAD register.
  13584. //
  13585. //*****************************************************************************
  13586. #define NVIC_ST_RELOAD_M 0x00FFFFFF // Reload Value
  13587. #define NVIC_ST_RELOAD_S 0
  13588. //*****************************************************************************
  13589. //
  13590. // The following are defines for the bit fields in the NVIC_ST_CURRENT
  13591. // register.
  13592. //
  13593. //*****************************************************************************
  13594. #define NVIC_ST_CURRENT_M 0x00FFFFFF // Current Value
  13595. #define NVIC_ST_CURRENT_S 0
  13596. //*****************************************************************************
  13597. //
  13598. // The following are defines for the bit fields in the NVIC_EN0 register.
  13599. //
  13600. //*****************************************************************************
  13601. #define NVIC_EN0_INT_M 0xFFFFFFFF // Interrupt Enable
  13602. //*****************************************************************************
  13603. //
  13604. // The following are defines for the bit fields in the NVIC_EN1 register.
  13605. //
  13606. //*****************************************************************************
  13607. #define NVIC_EN1_INT_M 0xFFFFFFFF // Interrupt Enable
  13608. //*****************************************************************************
  13609. //
  13610. // The following are defines for the bit fields in the NVIC_EN2 register.
  13611. //
  13612. //*****************************************************************************
  13613. #define NVIC_EN2_INT_M 0xFFFFFFFF // Interrupt Enable
  13614. //*****************************************************************************
  13615. //
  13616. // The following are defines for the bit fields in the NVIC_EN3 register.
  13617. //
  13618. //*****************************************************************************
  13619. #define NVIC_EN3_INT_M 0xFFFFFFFF // Interrupt Enable
  13620. //*****************************************************************************
  13621. //
  13622. // The following are defines for the bit fields in the NVIC_DIS0 register.
  13623. //
  13624. //*****************************************************************************
  13625. #define NVIC_DIS0_INT_M 0xFFFFFFFF // Interrupt Disable
  13626. //*****************************************************************************
  13627. //
  13628. // The following are defines for the bit fields in the NVIC_DIS1 register.
  13629. //
  13630. //*****************************************************************************
  13631. #define NVIC_DIS1_INT_M 0xFFFFFFFF // Interrupt Disable
  13632. //*****************************************************************************
  13633. //
  13634. // The following are defines for the bit fields in the NVIC_DIS2 register.
  13635. //
  13636. //*****************************************************************************
  13637. #define NVIC_DIS2_INT_M 0xFFFFFFFF // Interrupt Disable
  13638. //*****************************************************************************
  13639. //
  13640. // The following are defines for the bit fields in the NVIC_DIS3 register.
  13641. //
  13642. //*****************************************************************************
  13643. #define NVIC_DIS3_INT_M 0xFFFFFFFF // Interrupt Disable
  13644. //*****************************************************************************
  13645. //
  13646. // The following are defines for the bit fields in the NVIC_PEND0 register.
  13647. //
  13648. //*****************************************************************************
  13649. #define NVIC_PEND0_INT_M 0xFFFFFFFF // Interrupt Set Pending
  13650. //*****************************************************************************
  13651. //
  13652. // The following are defines for the bit fields in the NVIC_PEND1 register.
  13653. //
  13654. //*****************************************************************************
  13655. #define NVIC_PEND1_INT_M 0xFFFFFFFF // Interrupt Set Pending
  13656. //*****************************************************************************
  13657. //
  13658. // The following are defines for the bit fields in the NVIC_PEND2 register.
  13659. //
  13660. //*****************************************************************************
  13661. #define NVIC_PEND2_INT_M 0xFFFFFFFF // Interrupt Set Pending
  13662. //*****************************************************************************
  13663. //
  13664. // The following are defines for the bit fields in the NVIC_PEND3 register.
  13665. //
  13666. //*****************************************************************************
  13667. #define NVIC_PEND3_INT_M 0xFFFFFFFF // Interrupt Set Pending
  13668. //*****************************************************************************
  13669. //
  13670. // The following are defines for the bit fields in the NVIC_UNPEND0 register.
  13671. //
  13672. //*****************************************************************************
  13673. #define NVIC_UNPEND0_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  13674. //*****************************************************************************
  13675. //
  13676. // The following are defines for the bit fields in the NVIC_UNPEND1 register.
  13677. //
  13678. //*****************************************************************************
  13679. #define NVIC_UNPEND1_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  13680. //*****************************************************************************
  13681. //
  13682. // The following are defines for the bit fields in the NVIC_UNPEND2 register.
  13683. //
  13684. //*****************************************************************************
  13685. #define NVIC_UNPEND2_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  13686. //*****************************************************************************
  13687. //
  13688. // The following are defines for the bit fields in the NVIC_UNPEND3 register.
  13689. //
  13690. //*****************************************************************************
  13691. #define NVIC_UNPEND3_INT_M 0xFFFFFFFF // Interrupt Clear Pending
  13692. //*****************************************************************************
  13693. //
  13694. // The following are defines for the bit fields in the NVIC_ACTIVE0 register.
  13695. //
  13696. //*****************************************************************************
  13697. #define NVIC_ACTIVE0_INT_M 0xFFFFFFFF // Interrupt Active
  13698. //*****************************************************************************
  13699. //
  13700. // The following are defines for the bit fields in the NVIC_ACTIVE1 register.
  13701. //
  13702. //*****************************************************************************
  13703. #define NVIC_ACTIVE1_INT_M 0xFFFFFFFF // Interrupt Active
  13704. //*****************************************************************************
  13705. //
  13706. // The following are defines for the bit fields in the NVIC_ACTIVE2 register.
  13707. //
  13708. //*****************************************************************************
  13709. #define NVIC_ACTIVE2_INT_M 0xFFFFFFFF // Interrupt Active
  13710. //*****************************************************************************
  13711. //
  13712. // The following are defines for the bit fields in the NVIC_ACTIVE3 register.
  13713. //
  13714. //*****************************************************************************
  13715. #define NVIC_ACTIVE3_INT_M 0xFFFFFFFF // Interrupt Active
  13716. //*****************************************************************************
  13717. //
  13718. // The following are defines for the bit fields in the NVIC_PRI0 register.
  13719. //
  13720. //*****************************************************************************
  13721. #define NVIC_PRI0_INT3_M 0xE0000000 // Interrupt 3 Priority Mask
  13722. #define NVIC_PRI0_INT2_M 0x00E00000 // Interrupt 2 Priority Mask
  13723. #define NVIC_PRI0_INT1_M 0x0000E000 // Interrupt 1 Priority Mask
  13724. #define NVIC_PRI0_INT0_M 0x000000E0 // Interrupt 0 Priority Mask
  13725. #define NVIC_PRI0_INT3_S 29
  13726. #define NVIC_PRI0_INT2_S 21
  13727. #define NVIC_PRI0_INT1_S 13
  13728. #define NVIC_PRI0_INT0_S 5
  13729. //*****************************************************************************
  13730. //
  13731. // The following are defines for the bit fields in the NVIC_PRI1 register.
  13732. //
  13733. //*****************************************************************************
  13734. #define NVIC_PRI1_INT7_M 0xE0000000 // Interrupt 7 Priority Mask
  13735. #define NVIC_PRI1_INT6_M 0x00E00000 // Interrupt 6 Priority Mask
  13736. #define NVIC_PRI1_INT5_M 0x0000E000 // Interrupt 5 Priority Mask
  13737. #define NVIC_PRI1_INT4_M 0x000000E0 // Interrupt 4 Priority Mask
  13738. #define NVIC_PRI1_INT7_S 29
  13739. #define NVIC_PRI1_INT6_S 21
  13740. #define NVIC_PRI1_INT5_S 13
  13741. #define NVIC_PRI1_INT4_S 5
  13742. //*****************************************************************************
  13743. //
  13744. // The following are defines for the bit fields in the NVIC_PRI2 register.
  13745. //
  13746. //*****************************************************************************
  13747. #define NVIC_PRI2_INT11_M 0xE0000000 // Interrupt 11 Priority Mask
  13748. #define NVIC_PRI2_INT10_M 0x00E00000 // Interrupt 10 Priority Mask
  13749. #define NVIC_PRI2_INT9_M 0x0000E000 // Interrupt 9 Priority Mask
  13750. #define NVIC_PRI2_INT8_M 0x000000E0 // Interrupt 8 Priority Mask
  13751. #define NVIC_PRI2_INT11_S 29
  13752. #define NVIC_PRI2_INT10_S 21
  13753. #define NVIC_PRI2_INT9_S 13
  13754. #define NVIC_PRI2_INT8_S 5
  13755. //*****************************************************************************
  13756. //
  13757. // The following are defines for the bit fields in the NVIC_PRI3 register.
  13758. //
  13759. //*****************************************************************************
  13760. #define NVIC_PRI3_INT15_M 0xE0000000 // Interrupt 15 Priority Mask
  13761. #define NVIC_PRI3_INT14_M 0x00E00000 // Interrupt 14 Priority Mask
  13762. #define NVIC_PRI3_INT13_M 0x0000E000 // Interrupt 13 Priority Mask
  13763. #define NVIC_PRI3_INT12_M 0x000000E0 // Interrupt 12 Priority Mask
  13764. #define NVIC_PRI3_INT15_S 29
  13765. #define NVIC_PRI3_INT14_S 21
  13766. #define NVIC_PRI3_INT13_S 13
  13767. #define NVIC_PRI3_INT12_S 5
  13768. //*****************************************************************************
  13769. //
  13770. // The following are defines for the bit fields in the NVIC_PRI4 register.
  13771. //
  13772. //*****************************************************************************
  13773. #define NVIC_PRI4_INT19_M 0xE0000000 // Interrupt 19 Priority Mask
  13774. #define NVIC_PRI4_INT18_M 0x00E00000 // Interrupt 18 Priority Mask
  13775. #define NVIC_PRI4_INT17_M 0x0000E000 // Interrupt 17 Priority Mask
  13776. #define NVIC_PRI4_INT16_M 0x000000E0 // Interrupt 16 Priority Mask
  13777. #define NVIC_PRI4_INT19_S 29
  13778. #define NVIC_PRI4_INT18_S 21
  13779. #define NVIC_PRI4_INT17_S 13
  13780. #define NVIC_PRI4_INT16_S 5
  13781. //*****************************************************************************
  13782. //
  13783. // The following are defines for the bit fields in the NVIC_PRI5 register.
  13784. //
  13785. //*****************************************************************************
  13786. #define NVIC_PRI5_INT23_M 0xE0000000 // Interrupt 23 Priority Mask
  13787. #define NVIC_PRI5_INT22_M 0x00E00000 // Interrupt 22 Priority Mask
  13788. #define NVIC_PRI5_INT21_M 0x0000E000 // Interrupt 21 Priority Mask
  13789. #define NVIC_PRI5_INT20_M 0x000000E0 // Interrupt 20 Priority Mask
  13790. #define NVIC_PRI5_INT23_S 29
  13791. #define NVIC_PRI5_INT22_S 21
  13792. #define NVIC_PRI5_INT21_S 13
  13793. #define NVIC_PRI5_INT20_S 5
  13794. //*****************************************************************************
  13795. //
  13796. // The following are defines for the bit fields in the NVIC_PRI6 register.
  13797. //
  13798. //*****************************************************************************
  13799. #define NVIC_PRI6_INT27_M 0xE0000000 // Interrupt 27 Priority Mask
  13800. #define NVIC_PRI6_INT26_M 0x00E00000 // Interrupt 26 Priority Mask
  13801. #define NVIC_PRI6_INT25_M 0x0000E000 // Interrupt 25 Priority Mask
  13802. #define NVIC_PRI6_INT24_M 0x000000E0 // Interrupt 24 Priority Mask
  13803. #define NVIC_PRI6_INT27_S 29
  13804. #define NVIC_PRI6_INT26_S 21
  13805. #define NVIC_PRI6_INT25_S 13
  13806. #define NVIC_PRI6_INT24_S 5
  13807. //*****************************************************************************
  13808. //
  13809. // The following are defines for the bit fields in the NVIC_PRI7 register.
  13810. //
  13811. //*****************************************************************************
  13812. #define NVIC_PRI7_INT31_M 0xE0000000 // Interrupt 31 Priority Mask
  13813. #define NVIC_PRI7_INT30_M 0x00E00000 // Interrupt 30 Priority Mask
  13814. #define NVIC_PRI7_INT29_M 0x0000E000 // Interrupt 29 Priority Mask
  13815. #define NVIC_PRI7_INT28_M 0x000000E0 // Interrupt 28 Priority Mask
  13816. #define NVIC_PRI7_INT31_S 29
  13817. #define NVIC_PRI7_INT30_S 21
  13818. #define NVIC_PRI7_INT29_S 13
  13819. #define NVIC_PRI7_INT28_S 5
  13820. //*****************************************************************************
  13821. //
  13822. // The following are defines for the bit fields in the NVIC_PRI8 register.
  13823. //
  13824. //*****************************************************************************
  13825. #define NVIC_PRI8_INT35_M 0xE0000000 // Interrupt 35 Priority Mask
  13826. #define NVIC_PRI8_INT34_M 0x00E00000 // Interrupt 34 Priority Mask
  13827. #define NVIC_PRI8_INT33_M 0x0000E000 // Interrupt 33 Priority Mask
  13828. #define NVIC_PRI8_INT32_M 0x000000E0 // Interrupt 32 Priority Mask
  13829. #define NVIC_PRI8_INT35_S 29
  13830. #define NVIC_PRI8_INT34_S 21
  13831. #define NVIC_PRI8_INT33_S 13
  13832. #define NVIC_PRI8_INT32_S 5
  13833. //*****************************************************************************
  13834. //
  13835. // The following are defines for the bit fields in the NVIC_PRI9 register.
  13836. //
  13837. //*****************************************************************************
  13838. #define NVIC_PRI9_INT39_M 0xE0000000 // Interrupt 39 Priority Mask
  13839. #define NVIC_PRI9_INT38_M 0x00E00000 // Interrupt 38 Priority Mask
  13840. #define NVIC_PRI9_INT37_M 0x0000E000 // Interrupt 37 Priority Mask
  13841. #define NVIC_PRI9_INT36_M 0x000000E0 // Interrupt 36 Priority Mask
  13842. #define NVIC_PRI9_INT39_S 29
  13843. #define NVIC_PRI9_INT38_S 21
  13844. #define NVIC_PRI9_INT37_S 13
  13845. #define NVIC_PRI9_INT36_S 5
  13846. //*****************************************************************************
  13847. //
  13848. // The following are defines for the bit fields in the NVIC_PRI10 register.
  13849. //
  13850. //*****************************************************************************
  13851. #define NVIC_PRI10_INT43_M 0xE0000000 // Interrupt 43 Priority Mask
  13852. #define NVIC_PRI10_INT42_M 0x00E00000 // Interrupt 42 Priority Mask
  13853. #define NVIC_PRI10_INT41_M 0x0000E000 // Interrupt 41 Priority Mask
  13854. #define NVIC_PRI10_INT40_M 0x000000E0 // Interrupt 40 Priority Mask
  13855. #define NVIC_PRI10_INT43_S 29
  13856. #define NVIC_PRI10_INT42_S 21
  13857. #define NVIC_PRI10_INT41_S 13
  13858. #define NVIC_PRI10_INT40_S 5
  13859. //*****************************************************************************
  13860. //
  13861. // The following are defines for the bit fields in the NVIC_PRI11 register.
  13862. //
  13863. //*****************************************************************************
  13864. #define NVIC_PRI11_INT47_M 0xE0000000 // Interrupt 47 Priority Mask
  13865. #define NVIC_PRI11_INT46_M 0x00E00000 // Interrupt 46 Priority Mask
  13866. #define NVIC_PRI11_INT45_M 0x0000E000 // Interrupt 45 Priority Mask
  13867. #define NVIC_PRI11_INT44_M 0x000000E0 // Interrupt 44 Priority Mask
  13868. #define NVIC_PRI11_INT47_S 29
  13869. #define NVIC_PRI11_INT46_S 21
  13870. #define NVIC_PRI11_INT45_S 13
  13871. #define NVIC_PRI11_INT44_S 5
  13872. //*****************************************************************************
  13873. //
  13874. // The following are defines for the bit fields in the NVIC_PRI12 register.
  13875. //
  13876. //*****************************************************************************
  13877. #define NVIC_PRI12_INT51_M 0xE0000000 // Interrupt 51 Priority Mask
  13878. #define NVIC_PRI12_INT50_M 0x00E00000 // Interrupt 50 Priority Mask
  13879. #define NVIC_PRI12_INT49_M 0x0000E000 // Interrupt 49 Priority Mask
  13880. #define NVIC_PRI12_INT48_M 0x000000E0 // Interrupt 48 Priority Mask
  13881. #define NVIC_PRI12_INT51_S 29
  13882. #define NVIC_PRI12_INT50_S 21
  13883. #define NVIC_PRI12_INT49_S 13
  13884. #define NVIC_PRI12_INT48_S 5
  13885. //*****************************************************************************
  13886. //
  13887. // The following are defines for the bit fields in the NVIC_PRI13 register.
  13888. //
  13889. //*****************************************************************************
  13890. #define NVIC_PRI13_INT55_M 0xE0000000 // Interrupt 55 Priority Mask
  13891. #define NVIC_PRI13_INT54_M 0x00E00000 // Interrupt 54 Priority Mask
  13892. #define NVIC_PRI13_INT53_M 0x0000E000 // Interrupt 53 Priority Mask
  13893. #define NVIC_PRI13_INT52_M 0x000000E0 // Interrupt 52 Priority Mask
  13894. #define NVIC_PRI13_INT55_S 29
  13895. #define NVIC_PRI13_INT54_S 21
  13896. #define NVIC_PRI13_INT53_S 13
  13897. #define NVIC_PRI13_INT52_S 5
  13898. //*****************************************************************************
  13899. //
  13900. // The following are defines for the bit fields in the NVIC_PRI14 register.
  13901. //
  13902. //*****************************************************************************
  13903. #define NVIC_PRI14_INTD_M 0xE0000000 // Interrupt 59 Priority Mask
  13904. #define NVIC_PRI14_INTC_M 0x00E00000 // Interrupt 58 Priority Mask
  13905. #define NVIC_PRI14_INTB_M 0x0000E000 // Interrupt 57 Priority Mask
  13906. #define NVIC_PRI14_INTA_M 0x000000E0 // Interrupt 56 Priority Mask
  13907. #define NVIC_PRI14_INTD_S 29
  13908. #define NVIC_PRI14_INTC_S 21
  13909. #define NVIC_PRI14_INTB_S 13
  13910. #define NVIC_PRI14_INTA_S 5
  13911. //*****************************************************************************
  13912. //
  13913. // The following are defines for the bit fields in the NVIC_PRI15 register.
  13914. //
  13915. //*****************************************************************************
  13916. #define NVIC_PRI15_INTD_M 0xE0000000 // Interrupt 63 Priority Mask
  13917. #define NVIC_PRI15_INTC_M 0x00E00000 // Interrupt 62 Priority Mask
  13918. #define NVIC_PRI15_INTB_M 0x0000E000 // Interrupt 61 Priority Mask
  13919. #define NVIC_PRI15_INTA_M 0x000000E0 // Interrupt 60 Priority Mask
  13920. #define NVIC_PRI15_INTD_S 29
  13921. #define NVIC_PRI15_INTC_S 21
  13922. #define NVIC_PRI15_INTB_S 13
  13923. #define NVIC_PRI15_INTA_S 5
  13924. //*****************************************************************************
  13925. //
  13926. // The following are defines for the bit fields in the NVIC_PRI16 register.
  13927. //
  13928. //*****************************************************************************
  13929. #define NVIC_PRI16_INTD_M 0xE0000000 // Interrupt 67 Priority Mask
  13930. #define NVIC_PRI16_INTC_M 0x00E00000 // Interrupt 66 Priority Mask
  13931. #define NVIC_PRI16_INTB_M 0x0000E000 // Interrupt 65 Priority Mask
  13932. #define NVIC_PRI16_INTA_M 0x000000E0 // Interrupt 64 Priority Mask
  13933. #define NVIC_PRI16_INTD_S 29
  13934. #define NVIC_PRI16_INTC_S 21
  13935. #define NVIC_PRI16_INTB_S 13
  13936. #define NVIC_PRI16_INTA_S 5
  13937. //*****************************************************************************
  13938. //
  13939. // The following are defines for the bit fields in the NVIC_PRI17 register.
  13940. //
  13941. //*****************************************************************************
  13942. #define NVIC_PRI17_INTD_M 0xE0000000 // Interrupt 71 Priority Mask
  13943. #define NVIC_PRI17_INTC_M 0x00E00000 // Interrupt 70 Priority Mask
  13944. #define NVIC_PRI17_INTB_M 0x0000E000 // Interrupt 69 Priority Mask
  13945. #define NVIC_PRI17_INTA_M 0x000000E0 // Interrupt 68 Priority Mask
  13946. #define NVIC_PRI17_INTD_S 29
  13947. #define NVIC_PRI17_INTC_S 21
  13948. #define NVIC_PRI17_INTB_S 13
  13949. #define NVIC_PRI17_INTA_S 5
  13950. //*****************************************************************************
  13951. //
  13952. // The following are defines for the bit fields in the NVIC_PRI18 register.
  13953. //
  13954. //*****************************************************************************
  13955. #define NVIC_PRI18_INTD_M 0xE0000000 // Interrupt 75 Priority Mask
  13956. #define NVIC_PRI18_INTC_M 0x00E00000 // Interrupt 74 Priority Mask
  13957. #define NVIC_PRI18_INTB_M 0x0000E000 // Interrupt 73 Priority Mask
  13958. #define NVIC_PRI18_INTA_M 0x000000E0 // Interrupt 72 Priority Mask
  13959. #define NVIC_PRI18_INTD_S 29
  13960. #define NVIC_PRI18_INTC_S 21
  13961. #define NVIC_PRI18_INTB_S 13
  13962. #define NVIC_PRI18_INTA_S 5
  13963. //*****************************************************************************
  13964. //
  13965. // The following are defines for the bit fields in the NVIC_PRI19 register.
  13966. //
  13967. //*****************************************************************************
  13968. #define NVIC_PRI19_INTD_M 0xE0000000 // Interrupt 79 Priority Mask
  13969. #define NVIC_PRI19_INTC_M 0x00E00000 // Interrupt 78 Priority Mask
  13970. #define NVIC_PRI19_INTB_M 0x0000E000 // Interrupt 77 Priority Mask
  13971. #define NVIC_PRI19_INTA_M 0x000000E0 // Interrupt 76 Priority Mask
  13972. #define NVIC_PRI19_INTD_S 29
  13973. #define NVIC_PRI19_INTC_S 21
  13974. #define NVIC_PRI19_INTB_S 13
  13975. #define NVIC_PRI19_INTA_S 5
  13976. //*****************************************************************************
  13977. //
  13978. // The following are defines for the bit fields in the NVIC_PRI20 register.
  13979. //
  13980. //*****************************************************************************
  13981. #define NVIC_PRI20_INTD_M 0xE0000000 // Interrupt 83 Priority Mask
  13982. #define NVIC_PRI20_INTC_M 0x00E00000 // Interrupt 82 Priority Mask
  13983. #define NVIC_PRI20_INTB_M 0x0000E000 // Interrupt 81 Priority Mask
  13984. #define NVIC_PRI20_INTA_M 0x000000E0 // Interrupt 80 Priority Mask
  13985. #define NVIC_PRI20_INTD_S 29
  13986. #define NVIC_PRI20_INTC_S 21
  13987. #define NVIC_PRI20_INTB_S 13
  13988. #define NVIC_PRI20_INTA_S 5
  13989. //*****************************************************************************
  13990. //
  13991. // The following are defines for the bit fields in the NVIC_PRI21 register.
  13992. //
  13993. //*****************************************************************************
  13994. #define NVIC_PRI21_INTD_M 0xE0000000 // Interrupt 87 Priority Mask
  13995. #define NVIC_PRI21_INTC_M 0x00E00000 // Interrupt 86 Priority Mask
  13996. #define NVIC_PRI21_INTB_M 0x0000E000 // Interrupt 85 Priority Mask
  13997. #define NVIC_PRI21_INTA_M 0x000000E0 // Interrupt 84 Priority Mask
  13998. #define NVIC_PRI21_INTD_S 29
  13999. #define NVIC_PRI21_INTC_S 21
  14000. #define NVIC_PRI21_INTB_S 13
  14001. #define NVIC_PRI21_INTA_S 5
  14002. //*****************************************************************************
  14003. //
  14004. // The following are defines for the bit fields in the NVIC_PRI22 register.
  14005. //
  14006. //*****************************************************************************
  14007. #define NVIC_PRI22_INTD_M 0xE0000000 // Interrupt 91 Priority Mask
  14008. #define NVIC_PRI22_INTC_M 0x00E00000 // Interrupt 90 Priority Mask
  14009. #define NVIC_PRI22_INTB_M 0x0000E000 // Interrupt 89 Priority Mask
  14010. #define NVIC_PRI22_INTA_M 0x000000E0 // Interrupt 88 Priority Mask
  14011. #define NVIC_PRI22_INTD_S 29
  14012. #define NVIC_PRI22_INTC_S 21
  14013. #define NVIC_PRI22_INTB_S 13
  14014. #define NVIC_PRI22_INTA_S 5
  14015. //*****************************************************************************
  14016. //
  14017. // The following are defines for the bit fields in the NVIC_PRI23 register.
  14018. //
  14019. //*****************************************************************************
  14020. #define NVIC_PRI23_INTD_M 0xE0000000 // Interrupt 95 Priority Mask
  14021. #define NVIC_PRI23_INTC_M 0x00E00000 // Interrupt 94 Priority Mask
  14022. #define NVIC_PRI23_INTB_M 0x0000E000 // Interrupt 93 Priority Mask
  14023. #define NVIC_PRI23_INTA_M 0x000000E0 // Interrupt 92 Priority Mask
  14024. #define NVIC_PRI23_INTD_S 29
  14025. #define NVIC_PRI23_INTC_S 21
  14026. #define NVIC_PRI23_INTB_S 13
  14027. #define NVIC_PRI23_INTA_S 5
  14028. //*****************************************************************************
  14029. //
  14030. // The following are defines for the bit fields in the NVIC_PRI24 register.
  14031. //
  14032. //*****************************************************************************
  14033. #define NVIC_PRI24_INTD_M 0xE0000000 // Interrupt 99 Priority Mask
  14034. #define NVIC_PRI24_INTC_M 0x00E00000 // Interrupt 98 Priority Mask
  14035. #define NVIC_PRI24_INTB_M 0x0000E000 // Interrupt 97 Priority Mask
  14036. #define NVIC_PRI24_INTA_M 0x000000E0 // Interrupt 96 Priority Mask
  14037. #define NVIC_PRI24_INTD_S 29
  14038. #define NVIC_PRI24_INTC_S 21
  14039. #define NVIC_PRI24_INTB_S 13
  14040. #define NVIC_PRI24_INTA_S 5
  14041. //*****************************************************************************
  14042. //
  14043. // The following are defines for the bit fields in the NVIC_PRI25 register.
  14044. //
  14045. //*****************************************************************************
  14046. #define NVIC_PRI25_INTD_M 0xE0000000 // Interrupt 103 Priority Mask
  14047. #define NVIC_PRI25_INTC_M 0x00E00000 // Interrupt 102 Priority Mask
  14048. #define NVIC_PRI25_INTB_M 0x0000E000 // Interrupt 101 Priority Mask
  14049. #define NVIC_PRI25_INTA_M 0x000000E0 // Interrupt 100 Priority Mask
  14050. #define NVIC_PRI25_INTD_S 29
  14051. #define NVIC_PRI25_INTC_S 21
  14052. #define NVIC_PRI25_INTB_S 13
  14053. #define NVIC_PRI25_INTA_S 5
  14054. //*****************************************************************************
  14055. //
  14056. // The following are defines for the bit fields in the NVIC_PRI26 register.
  14057. //
  14058. //*****************************************************************************
  14059. #define NVIC_PRI26_INTD_M 0xE0000000 // Interrupt 107 Priority Mask
  14060. #define NVIC_PRI26_INTC_M 0x00E00000 // Interrupt 106 Priority Mask
  14061. #define NVIC_PRI26_INTB_M 0x0000E000 // Interrupt 105 Priority Mask
  14062. #define NVIC_PRI26_INTA_M 0x000000E0 // Interrupt 104 Priority Mask
  14063. #define NVIC_PRI26_INTD_S 29
  14064. #define NVIC_PRI26_INTC_S 21
  14065. #define NVIC_PRI26_INTB_S 13
  14066. #define NVIC_PRI26_INTA_S 5
  14067. //*****************************************************************************
  14068. //
  14069. // The following are defines for the bit fields in the NVIC_PRI27 register.
  14070. //
  14071. //*****************************************************************************
  14072. #define NVIC_PRI27_INTD_M 0xE0000000 // Interrupt 111 Priority Mask
  14073. #define NVIC_PRI27_INTC_M 0x00E00000 // Interrupt 110 Priority Mask
  14074. #define NVIC_PRI27_INTB_M 0x0000E000 // Interrupt 109 Priority Mask
  14075. #define NVIC_PRI27_INTA_M 0x000000E0 // Interrupt 108 Priority Mask
  14076. #define NVIC_PRI27_INTD_S 29
  14077. #define NVIC_PRI27_INTC_S 21
  14078. #define NVIC_PRI27_INTB_S 13
  14079. #define NVIC_PRI27_INTA_S 5
  14080. //*****************************************************************************
  14081. //
  14082. // The following are defines for the bit fields in the NVIC_PRI28 register.
  14083. //
  14084. //*****************************************************************************
  14085. #define NVIC_PRI28_INTD_M 0xE0000000 // Interrupt 115 Priority Mask
  14086. #define NVIC_PRI28_INTC_M 0x00E00000 // Interrupt 114 Priority Mask
  14087. #define NVIC_PRI28_INTB_M 0x0000E000 // Interrupt 113 Priority Mask
  14088. #define NVIC_PRI28_INTA_M 0x000000E0 // Interrupt 112 Priority Mask
  14089. #define NVIC_PRI28_INTD_S 29
  14090. #define NVIC_PRI28_INTC_S 21
  14091. #define NVIC_PRI28_INTB_S 13
  14092. #define NVIC_PRI28_INTA_S 5
  14093. //*****************************************************************************
  14094. //
  14095. // The following are defines for the bit fields in the NVIC_CPUID register.
  14096. //
  14097. //*****************************************************************************
  14098. #define NVIC_CPUID_IMP_M 0xFF000000 // Implementer Code
  14099. #define NVIC_CPUID_IMP_ARM 0x41000000 // ARM
  14100. #define NVIC_CPUID_VAR_M 0x00F00000 // Variant Number
  14101. #define NVIC_CPUID_CON_M 0x000F0000 // Constant
  14102. #define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Part Number
  14103. #define NVIC_CPUID_PARTNO_CM4 0x0000C240 // Cortex-M4 processor
  14104. #define NVIC_CPUID_REV_M 0x0000000F // Revision Number
  14105. //*****************************************************************************
  14106. //
  14107. // The following are defines for the bit fields in the NVIC_INT_CTRL register.
  14108. //
  14109. //*****************************************************************************
  14110. #define NVIC_INT_CTRL_NMI_SET 0x80000000 // NMI Set Pending
  14111. #define NVIC_INT_CTRL_PEND_SV 0x10000000 // PendSV Set Pending
  14112. #define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // PendSV Clear Pending
  14113. #define NVIC_INT_CTRL_PENDSTSET 0x04000000 // SysTick Set Pending
  14114. #define NVIC_INT_CTRL_PENDSTCLR 0x02000000 // SysTick Clear Pending
  14115. #define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug Interrupt Handling
  14116. #define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Interrupt Pending
  14117. #define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000 // Interrupt Pending Vector Number
  14118. #define NVIC_INT_CTRL_VEC_PEN_NMI \
  14119. 0x00002000 // NMI
  14120. #define NVIC_INT_CTRL_VEC_PEN_HARD \
  14121. 0x00003000 // Hard fault
  14122. #define NVIC_INT_CTRL_VEC_PEN_MEM \
  14123. 0x00004000 // Memory management fault
  14124. #define NVIC_INT_CTRL_VEC_PEN_BUS \
  14125. 0x00005000 // Bus fault
  14126. #define NVIC_INT_CTRL_VEC_PEN_USG \
  14127. 0x00006000 // Usage fault
  14128. #define NVIC_INT_CTRL_VEC_PEN_SVC \
  14129. 0x0000B000 // SVCall
  14130. #define NVIC_INT_CTRL_VEC_PEN_PNDSV \
  14131. 0x0000E000 // PendSV
  14132. #define NVIC_INT_CTRL_VEC_PEN_TICK \
  14133. 0x0000F000 // SysTick
  14134. #define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to Base
  14135. #define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF // Interrupt Pending Vector Number
  14136. #define NVIC_INT_CTRL_VEC_ACT_S 0
  14137. //*****************************************************************************
  14138. //
  14139. // The following are defines for the bit fields in the NVIC_VTABLE register.
  14140. //
  14141. //*****************************************************************************
  14142. #define NVIC_VTABLE_OFFSET_M 0xFFFFFC00 // Vector Table Offset
  14143. #define NVIC_VTABLE_OFFSET_S 10
  14144. //*****************************************************************************
  14145. //
  14146. // The following are defines for the bit fields in the NVIC_APINT register.
  14147. //
  14148. //*****************************************************************************
  14149. #define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Register Key
  14150. #define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
  14151. #define NVIC_APINT_ENDIANESS 0x00008000 // Data Endianess
  14152. #define NVIC_APINT_PRIGROUP_M 0x00000700 // Interrupt Priority Grouping
  14153. #define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
  14154. #define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
  14155. #define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
  14156. #define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
  14157. #define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
  14158. #define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
  14159. #define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
  14160. #define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
  14161. #define NVIC_APINT_SYSRESETREQ 0x00000004 // System Reset Request
  14162. #define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear Active NMI / Fault
  14163. #define NVIC_APINT_VECT_RESET 0x00000001 // System Reset
  14164. //*****************************************************************************
  14165. //
  14166. // The following are defines for the bit fields in the NVIC_SYS_CTRL register.
  14167. //
  14168. //*****************************************************************************
  14169. #define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wake Up on Pending
  14170. #define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep Sleep Enable
  14171. #define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR Exit
  14172. //*****************************************************************************
  14173. //
  14174. // The following are defines for the bit fields in the NVIC_CFG_CTRL register.
  14175. //
  14176. //*****************************************************************************
  14177. #define NVIC_CFG_CTRL_STKALIGN 0x00000200 // Stack Alignment on Exception
  14178. // Entry
  14179. #define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore Bus Fault in NMI and
  14180. // Fault
  14181. #define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on Divide by 0
  14182. #define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on Unaligned Access
  14183. #define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow Main Interrupt Trigger
  14184. #define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread State Control
  14185. //*****************************************************************************
  14186. //
  14187. // The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
  14188. //
  14189. //*****************************************************************************
  14190. #define NVIC_SYS_PRI1_USAGE_M 0x00E00000 // Usage Fault Priority
  14191. #define NVIC_SYS_PRI1_BUS_M 0x0000E000 // Bus Fault Priority
  14192. #define NVIC_SYS_PRI1_MEM_M 0x000000E0 // Memory Management Fault Priority
  14193. #define NVIC_SYS_PRI1_USAGE_S 21
  14194. #define NVIC_SYS_PRI1_BUS_S 13
  14195. #define NVIC_SYS_PRI1_MEM_S 5
  14196. //*****************************************************************************
  14197. //
  14198. // The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
  14199. //
  14200. //*****************************************************************************
  14201. #define NVIC_SYS_PRI2_SVC_M 0xE0000000 // SVCall Priority
  14202. #define NVIC_SYS_PRI2_SVC_S 29
  14203. //*****************************************************************************
  14204. //
  14205. // The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
  14206. //
  14207. //*****************************************************************************
  14208. #define NVIC_SYS_PRI3_TICK_M 0xE0000000 // SysTick Exception Priority
  14209. #define NVIC_SYS_PRI3_PENDSV_M 0x00E00000 // PendSV Priority
  14210. #define NVIC_SYS_PRI3_DEBUG_M 0x000000E0 // Debug Priority
  14211. #define NVIC_SYS_PRI3_TICK_S 29
  14212. #define NVIC_SYS_PRI3_PENDSV_S 21
  14213. #define NVIC_SYS_PRI3_DEBUG_S 5
  14214. //*****************************************************************************
  14215. //
  14216. // The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
  14217. // register.
  14218. //
  14219. //*****************************************************************************
  14220. #define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage Fault Enable
  14221. #define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus Fault Enable
  14222. #define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Memory Management Fault Enable
  14223. #define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVC Call Pending
  14224. #define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus Fault Pending
  14225. #define NVIC_SYS_HND_CTRL_MEMP 0x00002000 // Memory Management Fault Pending
  14226. #define NVIC_SYS_HND_CTRL_USAGEP \
  14227. 0x00001000 // Usage Fault Pending
  14228. #define NVIC_SYS_HND_CTRL_TICK 0x00000800 // SysTick Exception Active
  14229. #define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV Exception Active
  14230. #define NVIC_SYS_HND_CTRL_MON 0x00000100 // Debug Monitor Active
  14231. #define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVC Call Active
  14232. #define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage Fault Active
  14233. #define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus Fault Active
  14234. #define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Memory Management Fault Active
  14235. //*****************************************************************************
  14236. //
  14237. // The following are defines for the bit fields in the NVIC_FAULT_STAT
  14238. // register.
  14239. //
  14240. //*****************************************************************************
  14241. #define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide-by-Zero Usage Fault
  14242. #define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned Access Usage Fault
  14243. #define NVIC_FAULT_STAT_NOCP 0x00080000 // No Coprocessor Usage Fault
  14244. #define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC Load Usage Fault
  14245. #define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid State Usage Fault
  14246. #define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined Instruction Usage
  14247. // Fault
  14248. #define NVIC_FAULT_STAT_BFARV 0x00008000 // Bus Fault Address Register Valid
  14249. #define NVIC_FAULT_STAT_BLSPERR 0x00002000 // Bus Fault on Floating-Point Lazy
  14250. // State Preservation
  14251. #define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack Bus Fault
  14252. #define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack Bus Fault
  14253. #define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise Data Bus Error
  14254. #define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise Data Bus Error
  14255. #define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction Bus Error
  14256. #define NVIC_FAULT_STAT_MMARV 0x00000080 // Memory Management Fault Address
  14257. // Register Valid
  14258. #define NVIC_FAULT_STAT_MLSPERR 0x00000020 // Memory Management Fault on
  14259. // Floating-Point Lazy State
  14260. // Preservation
  14261. #define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack Access Violation
  14262. #define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack Access Violation
  14263. #define NVIC_FAULT_STAT_DERR 0x00000002 // Data Access Violation
  14264. #define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction Access Violation
  14265. //*****************************************************************************
  14266. //
  14267. // The following are defines for the bit fields in the NVIC_HFAULT_STAT
  14268. // register.
  14269. //
  14270. //*****************************************************************************
  14271. #define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug Event
  14272. #define NVIC_HFAULT_STAT_FORCED 0x40000000 // Forced Hard Fault
  14273. #define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector Table Read Fault
  14274. //*****************************************************************************
  14275. //
  14276. // The following are defines for the bit fields in the NVIC_DEBUG_STAT
  14277. // register.
  14278. //
  14279. //*****************************************************************************
  14280. #define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
  14281. #define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
  14282. #define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
  14283. #define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
  14284. #define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
  14285. //*****************************************************************************
  14286. //
  14287. // The following are defines for the bit fields in the NVIC_MM_ADDR register.
  14288. //
  14289. //*****************************************************************************
  14290. #define NVIC_MM_ADDR_M 0xFFFFFFFF // Fault Address
  14291. #define NVIC_MM_ADDR_S 0
  14292. //*****************************************************************************
  14293. //
  14294. // The following are defines for the bit fields in the NVIC_FAULT_ADDR
  14295. // register.
  14296. //
  14297. //*****************************************************************************
  14298. #define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Fault Address
  14299. #define NVIC_FAULT_ADDR_S 0
  14300. //*****************************************************************************
  14301. //
  14302. // The following are defines for the bit fields in the NVIC_CPAC register.
  14303. //
  14304. //*****************************************************************************
  14305. #define NVIC_CPAC_CP11_M 0x00C00000 // CP11 Coprocessor Access
  14306. // Privilege
  14307. #define NVIC_CPAC_CP11_DIS 0x00000000 // Access Denied
  14308. #define NVIC_CPAC_CP11_PRIV 0x00400000 // Privileged Access Only
  14309. #define NVIC_CPAC_CP11_FULL 0x00C00000 // Full Access
  14310. #define NVIC_CPAC_CP10_M 0x00300000 // CP10 Coprocessor Access
  14311. // Privilege
  14312. #define NVIC_CPAC_CP10_DIS 0x00000000 // Access Denied
  14313. #define NVIC_CPAC_CP10_PRIV 0x00100000 // Privileged Access Only
  14314. #define NVIC_CPAC_CP10_FULL 0x00300000 // Full Access
  14315. //*****************************************************************************
  14316. //
  14317. // The following are defines for the bit fields in the NVIC_MPU_TYPE register.
  14318. //
  14319. //*****************************************************************************
  14320. #define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I Regions
  14321. #define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D Regions
  14322. #define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or Unified MPU
  14323. #define NVIC_MPU_TYPE_IREGION_S 16
  14324. #define NVIC_MPU_TYPE_DREGION_S 8
  14325. //*****************************************************************************
  14326. //
  14327. // The following are defines for the bit fields in the NVIC_MPU_CTRL register.
  14328. //
  14329. //*****************************************************************************
  14330. #define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU Default Region
  14331. #define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU Enabled During Faults
  14332. #define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU Enable
  14333. //*****************************************************************************
  14334. //
  14335. // The following are defines for the bit fields in the NVIC_MPU_NUMBER
  14336. // register.
  14337. //
  14338. //*****************************************************************************
  14339. #define NVIC_MPU_NUMBER_M 0x00000007 // MPU Region to Access
  14340. #define NVIC_MPU_NUMBER_S 0
  14341. //*****************************************************************************
  14342. //
  14343. // The following are defines for the bit fields in the NVIC_MPU_BASE register.
  14344. //
  14345. //*****************************************************************************
  14346. #define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base Address Mask
  14347. #define NVIC_MPU_BASE_VALID 0x00000010 // Region Number Valid
  14348. #define NVIC_MPU_BASE_REGION_M 0x00000007 // Region Number
  14349. #define NVIC_MPU_BASE_ADDR_S 5
  14350. #define NVIC_MPU_BASE_REGION_S 0
  14351. //*****************************************************************************
  14352. //
  14353. // The following are defines for the bit fields in the NVIC_MPU_ATTR register.
  14354. //
  14355. //*****************************************************************************
  14356. #define NVIC_MPU_ATTR_XN 0x10000000 // Instruction Access Disable
  14357. #define NVIC_MPU_ATTR_AP_M 0x07000000 // Access Privilege
  14358. #define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type Extension Mask
  14359. #define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
  14360. #define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
  14361. #define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
  14362. #define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Subregion Disable Bits
  14363. #define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region Size Mask
  14364. #define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region Enable
  14365. //*****************************************************************************
  14366. //
  14367. // The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
  14368. //
  14369. //*****************************************************************************
  14370. #define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0 // Base Address Mask
  14371. #define NVIC_MPU_BASE1_VALID 0x00000010 // Region Number Valid
  14372. #define NVIC_MPU_BASE1_REGION_M 0x00000007 // Region Number
  14373. #define NVIC_MPU_BASE1_ADDR_S 5
  14374. #define NVIC_MPU_BASE1_REGION_S 0
  14375. //*****************************************************************************
  14376. //
  14377. // The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
  14378. //
  14379. //*****************************************************************************
  14380. #define NVIC_MPU_ATTR1_XN 0x10000000 // Instruction Access Disable
  14381. #define NVIC_MPU_ATTR1_AP_M 0x07000000 // Access Privilege
  14382. #define NVIC_MPU_ATTR1_TEX_M 0x00380000 // Type Extension Mask
  14383. #define NVIC_MPU_ATTR1_SHAREABLE \
  14384. 0x00040000 // Shareable
  14385. #define NVIC_MPU_ATTR1_CACHEABLE \
  14386. 0x00020000 // Cacheable
  14387. #define NVIC_MPU_ATTR1_BUFFRABLE \
  14388. 0x00010000 // Bufferable
  14389. #define NVIC_MPU_ATTR1_SRD_M 0x0000FF00 // Subregion Disable Bits
  14390. #define NVIC_MPU_ATTR1_SIZE_M 0x0000003E // Region Size Mask
  14391. #define NVIC_MPU_ATTR1_ENABLE 0x00000001 // Region Enable
  14392. //*****************************************************************************
  14393. //
  14394. // The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
  14395. //
  14396. //*****************************************************************************
  14397. #define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0 // Base Address Mask
  14398. #define NVIC_MPU_BASE2_VALID 0x00000010 // Region Number Valid
  14399. #define NVIC_MPU_BASE2_REGION_M 0x00000007 // Region Number
  14400. #define NVIC_MPU_BASE2_ADDR_S 5
  14401. #define NVIC_MPU_BASE2_REGION_S 0
  14402. //*****************************************************************************
  14403. //
  14404. // The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
  14405. //
  14406. //*****************************************************************************
  14407. #define NVIC_MPU_ATTR2_XN 0x10000000 // Instruction Access Disable
  14408. #define NVIC_MPU_ATTR2_AP_M 0x07000000 // Access Privilege
  14409. #define NVIC_MPU_ATTR2_TEX_M 0x00380000 // Type Extension Mask
  14410. #define NVIC_MPU_ATTR2_SHAREABLE \
  14411. 0x00040000 // Shareable
  14412. #define NVIC_MPU_ATTR2_CACHEABLE \
  14413. 0x00020000 // Cacheable
  14414. #define NVIC_MPU_ATTR2_BUFFRABLE \
  14415. 0x00010000 // Bufferable
  14416. #define NVIC_MPU_ATTR2_SRD_M 0x0000FF00 // Subregion Disable Bits
  14417. #define NVIC_MPU_ATTR2_SIZE_M 0x0000003E // Region Size Mask
  14418. #define NVIC_MPU_ATTR2_ENABLE 0x00000001 // Region Enable
  14419. //*****************************************************************************
  14420. //
  14421. // The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
  14422. //
  14423. //*****************************************************************************
  14424. #define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0 // Base Address Mask
  14425. #define NVIC_MPU_BASE3_VALID 0x00000010 // Region Number Valid
  14426. #define NVIC_MPU_BASE3_REGION_M 0x00000007 // Region Number
  14427. #define NVIC_MPU_BASE3_ADDR_S 5
  14428. #define NVIC_MPU_BASE3_REGION_S 0
  14429. //*****************************************************************************
  14430. //
  14431. // The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
  14432. //
  14433. //*****************************************************************************
  14434. #define NVIC_MPU_ATTR3_XN 0x10000000 // Instruction Access Disable
  14435. #define NVIC_MPU_ATTR3_AP_M 0x07000000 // Access Privilege
  14436. #define NVIC_MPU_ATTR3_TEX_M 0x00380000 // Type Extension Mask
  14437. #define NVIC_MPU_ATTR3_SHAREABLE \
  14438. 0x00040000 // Shareable
  14439. #define NVIC_MPU_ATTR3_CACHEABLE \
  14440. 0x00020000 // Cacheable
  14441. #define NVIC_MPU_ATTR3_BUFFRABLE \
  14442. 0x00010000 // Bufferable
  14443. #define NVIC_MPU_ATTR3_SRD_M 0x0000FF00 // Subregion Disable Bits
  14444. #define NVIC_MPU_ATTR3_SIZE_M 0x0000003E // Region Size Mask
  14445. #define NVIC_MPU_ATTR3_ENABLE 0x00000001 // Region Enable
  14446. //*****************************************************************************
  14447. //
  14448. // The following are defines for the bit fields in the NVIC_DBG_CTRL register.
  14449. //
  14450. //*****************************************************************************
  14451. #define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
  14452. #define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
  14453. #define NVIC_DBG_CTRL_S_RESET_ST \
  14454. 0x02000000 // Core has reset since last read
  14455. #define NVIC_DBG_CTRL_S_RETIRE_ST \
  14456. 0x01000000 // Core has executed insruction
  14457. // since last read
  14458. #define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
  14459. #define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
  14460. #define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
  14461. #define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
  14462. #define NVIC_DBG_CTRL_C_SNAPSTALL \
  14463. 0x00000020 // Breaks a stalled load/store
  14464. #define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
  14465. #define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
  14466. #define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
  14467. #define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
  14468. //*****************************************************************************
  14469. //
  14470. // The following are defines for the bit fields in the NVIC_DBG_XFER register.
  14471. //
  14472. //*****************************************************************************
  14473. #define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
  14474. #define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
  14475. #define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
  14476. #define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
  14477. #define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
  14478. #define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
  14479. #define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
  14480. #define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
  14481. #define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
  14482. #define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
  14483. #define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
  14484. #define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
  14485. #define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
  14486. #define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
  14487. #define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
  14488. #define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
  14489. #define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
  14490. #define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
  14491. #define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
  14492. #define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
  14493. #define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
  14494. #define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
  14495. #define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
  14496. //*****************************************************************************
  14497. //
  14498. // The following are defines for the bit fields in the NVIC_DBG_DATA register.
  14499. //
  14500. //*****************************************************************************
  14501. #define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
  14502. #define NVIC_DBG_DATA_S 0
  14503. //*****************************************************************************
  14504. //
  14505. // The following are defines for the bit fields in the NVIC_DBG_INT register.
  14506. //
  14507. //*****************************************************************************
  14508. #define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
  14509. #define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
  14510. #define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
  14511. #define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
  14512. #define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
  14513. #define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
  14514. #define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
  14515. #define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
  14516. #define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
  14517. #define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
  14518. #define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
  14519. //*****************************************************************************
  14520. //
  14521. // The following are defines for the bit fields in the NVIC_SW_TRIG register.
  14522. //
  14523. //*****************************************************************************
  14524. #define NVIC_SW_TRIG_INTID_M 0x000000FF // Interrupt ID
  14525. #define NVIC_SW_TRIG_INTID_S 0
  14526. //*****************************************************************************
  14527. //
  14528. // The following are defines for the bit fields in the NVIC_FPCC register.
  14529. //
  14530. //*****************************************************************************
  14531. #define NVIC_FPCC_ASPEN 0x80000000 // Automatic State Preservation
  14532. // Enable
  14533. #define NVIC_FPCC_LSPEN 0x40000000 // Lazy State Preservation Enable
  14534. #define NVIC_FPCC_MONRDY 0x00000100 // Monitor Ready
  14535. #define NVIC_FPCC_BFRDY 0x00000040 // Bus Fault Ready
  14536. #define NVIC_FPCC_MMRDY 0x00000020 // Memory Management Fault Ready
  14537. #define NVIC_FPCC_HFRDY 0x00000010 // Hard Fault Ready
  14538. #define NVIC_FPCC_THREAD 0x00000008 // Thread Mode
  14539. #define NVIC_FPCC_USER 0x00000002 // User Privilege Level
  14540. #define NVIC_FPCC_LSPACT 0x00000001 // Lazy State Preservation Active
  14541. //*****************************************************************************
  14542. //
  14543. // The following are defines for the bit fields in the NVIC_FPCA register.
  14544. //
  14545. //*****************************************************************************
  14546. #define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8 // Address
  14547. #define NVIC_FPCA_ADDRESS_S 3
  14548. //*****************************************************************************
  14549. //
  14550. // The following are defines for the bit fields in the NVIC_FPDSC register.
  14551. //
  14552. //*****************************************************************************
  14553. #define NVIC_FPDSC_AHP 0x04000000 // AHP Bit Default
  14554. #define NVIC_FPDSC_DN 0x02000000 // DN Bit Default
  14555. #define NVIC_FPDSC_FZ 0x01000000 // FZ Bit Default
  14556. #define NVIC_FPDSC_RMODE_M 0x00C00000 // RMODE Bit Default
  14557. #define NVIC_FPDSC_RMODE_RN 0x00000000 // Round to Nearest (RN) mode
  14558. #define NVIC_FPDSC_RMODE_RP 0x00400000 // Round towards Plus Infinity (RP)
  14559. // mode
  14560. #define NVIC_FPDSC_RMODE_RM 0x00800000 // Round towards Minus Infinity
  14561. // (RM) mode
  14562. #define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
  14563. //*****************************************************************************
  14564. //
  14565. // The following definitions are deprecated.
  14566. //
  14567. //*****************************************************************************
  14568. #ifndef DEPRECATED
  14569. #define SYSCTL_DID0_CLASS_SNOWFLAKE \
  14570. 0x000A0000 // Tiva(TM) C Series TM4C129-class
  14571. // microcontrollers
  14572. //*****************************************************************************
  14573. //
  14574. // Deprecated defines for the bit fields in the SYSCTL_PWRTC register.
  14575. //
  14576. //*****************************************************************************
  14577. #define SYSCTL_PWRTC_VDDA_UBOR0 0x00000010 // VDDA Under BOR0 Status
  14578. #define SYSCTL_PWRTC_VDD_UBOR0 0x00000001 // VDD Under BOR0 Status
  14579. #endif
  14580. #endif // __TM4C1294NCPDT_H__