xpc564a.h 247 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377
  1. /**************************************************************************/
  2. /* FILE NAME: MPC5644A.h COPYRIGHT(c) Freescale & STMicroelectronics */
  3. /* VERSION: 0.5 2010 - All Rights Reserved */
  4. /* */
  5. /* DESCRIPTION: */
  6. /* This file contains all of the register and bit field definitions for */
  7. /* MPC5644A. */
  8. /*========================================================================*/
  9. /* UPDATE HISTORY */
  10. /* REV AUTHOR DATE DESCRIPTION OF CHANGE */
  11. /* --- ----------- --------- --------------------- */
  12. /* 0.1 R. MORAN 10/Aug/09 Initial Alpha version. */
  13. /* 0.2 R. Moran 09/Nov/09 Several Updates: */
  14. /* - XBAR - MPR/SGPCR'3' changed to '2' */
  15. /* - CFCR, IDCR, CFTCR array sizes altered*/
  16. /* - IDIS,CASCD added to DEC_Filter MCR */
  17. /* - WDM fields changed in eTPU_WDTR reg */
  18. /* - Additional ECSM registers added */
  19. /* 0.3 R. Moran 14/Jan/10 Several Updates: */
  20. /* - Flash User Test Register implemented */
  21. /* - MPU.EDR[3] register removed */
  22. /* - Minor Loop TCD bits implemented */
  23. /* - Temperature Sensor implemented */
  24. /* - DSPI.MCR.B.PES implemented */
  25. /* 0.4 R. Moran 30/Mar/10 - Added DTS Module Registers */
  26. /* - Added Reaction Module */
  27. /* - eQADC REDLCCR register */
  28. /* - Temp Sensor TCCR0 corrected */
  29. /* - CFTCR definition changed */
  30. /* - EBI CAL_BR/OR updated */
  31. /* - XBAR MPR0,1,3,7 fixed master fields */
  32. /* - Decimation filter updated to support */
  33. /* Integration filter and rev2 changes */
  34. /* 0.5 I. Harris 25/May/10 - Updated ECSM_ESR with 1bit cor. fld */
  35. /* - Updated ECSM_ECR with 1bit cor. ena */
  36. /* - Corrected ECSM_MUDR endianness */
  37. /* - Corrected ECSM_MWCR ENBWCR field name*/
  38. /* - Updated SIU_IREEx fields */
  39. /* - Added EBI_MCR DBM field */
  40. /* - Added PBRIDGE Registers */
  41. /* - Added SIU EMPCR0 Register */
  42. /* - Included FlexCAN RXFIFO structure */
  43. /**************************************************************************/
  44. /**************************************************************************/
  45. /* Example instantiation and use: */
  46. /* */
  47. /* <MODULE>.<REGISTER>.B.<BIT> = 1; */
  48. /* <MODULE>.<REGISTER>.R = 0x10000000; */
  49. /* */
  50. /**************************************************************************/
  51. #ifndef _MPC5644_H_
  52. #define _MPC5644_H_
  53. #include "typedefs.h"
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. #ifdef __MWERKS__
  58. #pragma push
  59. #pragma ANSI_strict off
  60. #endif
  61. /****************************************************************************/
  62. /* DMA2 Transfer Control Descriptor */
  63. /****************************************************************************/
  64. struct EDMA_TCD_STD_tag { /* for "standard" format TCDs (when EDMA.TCD[x].CITER.E_LINK==BITER.E_LINK=0 && EDMA.EMLM=0 ) */
  65. /* 00 */
  66. vuint32_t SADDR; /* Source Address */
  67. /* 04 */ /* Transfer Attributes */
  68. vuint16_t SMOD:5; /* Source Address Modulo */
  69. vuint16_t SSIZE:3; /* Source Data Transfer Size */
  70. vuint16_t DMOD:5; /* Destination Address Modulo */
  71. vuint16_t DSIZE:3; /* Destination Data Transfer Size */
  72. /* 06 */
  73. vint16_t SOFF; /* Signed Source Address Offset */
  74. /* 08 */
  75. vuint32_t NBYTES; /* Inner ("Minor") Byte Transfer Count */
  76. /* 0C */
  77. vint32_t SLAST; /* Last Source Address Adjustment */
  78. /* 10 */
  79. vuint32_t DADDR; /* Destination Address */
  80. /* 14 */
  81. vuint16_t CITERE_LINK:1; /* Enable Channel-to-Channel */
  82. /* Linking on Minor Loop Completion */
  83. vuint16_t CITER:15; /* Current Major Iteration Count */
  84. /* 16 */
  85. vint16_t DOFF; /* Signed Destination Address Offset */
  86. /* 18 */
  87. vint32_t DLAST_SGA; /* Last Destination Address Adjustment, or */
  88. /* Scatter/Gather Address (if E_SG = 1) */
  89. /* 1C */
  90. vuint16_t BITERE_LINK:1; /* Enable Channel-to-Channel */
  91. /* Linking on Minor Loop Complete */
  92. vuint16_t BITER:15; /* Starting ("Major") Iteration Count */
  93. /* 1E */ /* Channel Control/Status */
  94. vuint16_t BWC:2; /* Bandwidth Control */
  95. vuint16_t MAJORLINKCH:6; /* Link Channel Number */
  96. vuint16_t DONE:1; /* Channel Done */
  97. vuint16_t ACTIVE:1;
  98. vuint16_t MAJORE_LINK:1; /* Enable Channel-to-Channel Link */
  99. vuint16_t E_SG:1; /* Enable Scatter/Gather Descriptor */
  100. vuint16_t D_REQ:1; /* Disable IPD_REQ When Done */
  101. vuint16_t INT_HALF:1; /* Interrupt on CITER = (BITER >> 1) */
  102. vuint16_t INT_MAJ:1; /* Interrupt on Major Loop Completion */
  103. vuint16_t START:1; /* Explicit Channel Start */
  104. };
  105. struct EDMA_TCD_alt1_tag { /*for alternate format TCDs (when EDMA.TCD[x].CITER.E_LINK==BITER.E_LINK=1 ) */
  106. /* 00 */
  107. vuint32_t SADDR; /* Source Address */
  108. /* 04 */ /* Transfer Attributes */
  109. vuint16_t SMOD:5; /* Source Address Modulo */
  110. vuint16_t SSIZE:3; /* Source Data Transfer Size */
  111. vuint16_t DMOD:5; /* Destination Address Modulo */
  112. vuint16_t DSIZE:3; /* Destination Data Transfer Size */
  113. /* 06 */
  114. vint16_t SOFF; /* Signed Source Address Offset */
  115. /* 08 */
  116. vuint32_t NBYTES; /* Inner ("Minor") Byte Transfer Count */
  117. /* 0C */
  118. vint32_t SLAST; /* Last Source Address Adjustment */
  119. /* 10 */
  120. vuint32_t DADDR; /* Destination Address */
  121. /* 14 */
  122. vuint16_t CITERE_LINK:1; /* Enable Channel-to-Channel */
  123. /* Linking on Minor Loop Completion */
  124. vuint16_t CITERLINKCH:6; /* Link Channel Number */
  125. vuint16_t CITER:9; /* Current Major Iteration Count */
  126. /* 16 */
  127. vint16_t DOFF; /* Signed Destination Address Offset */
  128. /* 18 */
  129. vint32_t DLAST_SGA; /* Last Destination Address Adjustment, or */
  130. /* Scatter/Gather Address (if E_SG = 1) */
  131. /* 1C */
  132. vuint16_t BITERE_LINK:1; /* Enable Channel-to-Channel */
  133. /* Linking on Minor Loop Complete */
  134. vuint16_t BITERLINKCH:6; /* Link Channel Number */
  135. vuint16_t BITER:9; /* Starting ("Major") Iteration Count */
  136. /* 1E */ /* Channel Control/Status */
  137. vuint16_t BWC:2; /* Bandwidth Control */
  138. vuint16_t MAJORLINKCH:6; /* Link Channel Number */
  139. vuint16_t DONE:1; /* Channel Done */
  140. vuint16_t ACTIVE:1; /* Channel Active */
  141. vuint16_t MAJORE_LINK:1; /* Enable Channel-to-Channel Link */
  142. vuint16_t E_SG:1; /* Enable Scatter/Gather Descriptor */
  143. vuint16_t D_REQ:1; /* Disable IPD_REQ When Done */
  144. vuint16_t INT_HALF:1; /* Interrupt on CITER = (BITER >> 1) */
  145. vuint16_t INT_MAJ:1; /* Interrupt on Major Loop Completion */
  146. vuint16_t START:1; /* Explicit Channel Start */
  147. };
  148. struct EDMA_TCD_alt2_tag { /* for alternate format TCDs (when EDMA.EMLM=1) */
  149. vuint32_t SADDR; /* source address */
  150. vuint16_t SMOD:5; /* source address modulo */
  151. vuint16_t SSIZE:3; /* source transfer size */
  152. vuint16_t DMOD:5; /* destination address modulo */
  153. vuint16_t DSIZE:3; /* destination transfer size */
  154. vint16_t SOFF; /* signed source address offset */
  155. vuint16_t SMLOE:1; /* Source minor loop offset enable */
  156. vuint16_t DMLOE:1; /* Destination minor loop offset enable */
  157. vuint32_t MLOFF:20; /* Minor loop Offset */
  158. vuint16_t NBYTES:10; /* inner (“minor”) byte count */
  159. vint32_t SLAST; /* last destination address adjustment, or
  160. scatter/gather address (if e_sg = 1) */
  161. vuint32_t DADDR; /* destination address */
  162. vuint16_t CITERE_LINK:1;
  163. vuint16_t CITER:15;
  164. vint16_t DOFF; /* signed destination address offset */
  165. vint32_t DLAST_SGA;
  166. vuint16_t BITERE_LINK:1; /* beginning ("major") iteration count */
  167. vuint16_t BITER:15;
  168. vuint16_t BWC:2; /* bandwidth control */
  169. vuint16_t MAJORLINKCH:6; /* enable channel-to-channel link */
  170. vuint16_t DONE:1; /* channel done */
  171. vuint16_t ACTIVE:1; /* channel active */
  172. vuint16_t MAJORE_LINK:1; /* enable channel-to-channel link */
  173. vuint16_t E_SG:1; /* enable scatter/gather descriptor */
  174. vuint16_t D_REQ:1; /* disable ipd_req when done */
  175. vuint16_t INT_HALF:1; /* interrupt on citer = (biter >> 1) */
  176. vuint16_t INT_MAJ:1; /* interrupt on major loop completion */
  177. vuint16_t START:1; /* explicit channel start */
  178. };
  179. /****************************************************************************/
  180. /* MODULE : eDMA */
  181. /****************************************************************************/
  182. struct EDMA_tag {
  183. union {
  184. vuint32_t R;
  185. struct {
  186. vuint32_t:14; /* Reserved */
  187. vuint32_t CX:1; /* Cancel Transfer */
  188. vuint32_t ECX:1; /* Error Cancel Transfer */
  189. vuint32_t GRP3PRI:2; /* Channel Group 3 Priority */
  190. vuint32_t GRP2PRI:2; /* Channel Group 2 Priority */
  191. vuint32_t GRP1PRI:2; /* Channel Group 1 Priority */
  192. vuint32_t GRP0PRI:2; /* Channel Group 0 Priority */
  193. vuint32_t EMLM:1; /* Enable Minor Loop Mapping */
  194. vuint32_t CLM:1; /* Continuous Link Mode */
  195. vuint32_t HALT:1; /* Halt DMA Operations */
  196. vuint32_t HOE:1; /* Halt On Error */
  197. vuint32_t ERGA:1; /* Enable Round Robin Group Arbitration */
  198. vuint32_t ERCA:1; /* Enable Round Robin Channel Arbitration */
  199. vuint32_t EDBG:1; /* Enable Debug */
  200. vuint32_t:1; /* Enable Buffered Writes */
  201. } B;
  202. } CR; /* DMA Control Register @baseaddress + 0x0 */
  203. union {
  204. vuint32_t R;
  205. struct {
  206. vuint32_t VLD:1; /* Logical OR of all DMAERRH */
  207. vuint32_t:14; /* Reserved */
  208. vuint32_t ECX:1; /* Transfer Canceled */
  209. vuint32_t GPE:1; /* Group Priority Error */
  210. vuint32_t CPE:1; /* Channel Priority Error */
  211. vuint32_t ERRCHN:6; /* ERRCHN[5:0] Error Channel Number or The channel number of the last recorded error */
  212. vuint32_t SAE:1; /* Source Address Error 0 */
  213. vuint32_t SOE:1; /* Source Offset Error */
  214. vuint32_t DAE:1; /* Destination Address Error */
  215. vuint32_t DOE:1; /* Destination Offset Error */
  216. vuint32_t NCE:1; /* Nbytes/Citer Configuration Error */
  217. vuint32_t SGE:1; /* Scatter/Gather Configuration Error */
  218. vuint32_t SBE:1; /* Source Bus Error */
  219. vuint32_t DBE:1; /* Destination Bus Error */
  220. } B;
  221. } ESR; /* Error Status Register @baseaddress + 0x4 */
  222. union {
  223. vuint32_t R;
  224. struct {
  225. vuint32_t ERQ63:1;
  226. vuint32_t ERQ62:1;
  227. vuint32_t ERQ61:1;
  228. vuint32_t ERQ60:1;
  229. vuint32_t ERQ59:1;
  230. vuint32_t ERQ58:1;
  231. vuint32_t ERQ57:1;
  232. vuint32_t ERQ56:1;
  233. vuint32_t ERQ55:1;
  234. vuint32_t ERQ54:1;
  235. vuint32_t ERQ53:1;
  236. vuint32_t ERQ52:1;
  237. vuint32_t ERQ51:1;
  238. vuint32_t ERQ50:1;
  239. vuint32_t ERQ49:1;
  240. vuint32_t ERQ48:1;
  241. vuint32_t ERQ47:1;
  242. vuint32_t ERQ46:1;
  243. vuint32_t ERQ45:1;
  244. vuint32_t ERQ44:1;
  245. vuint32_t ERQ43:1;
  246. vuint32_t ERQ42:1;
  247. vuint32_t ERQ41:1;
  248. vuint32_t ERQ40:1;
  249. vuint32_t ERQ39:1;
  250. vuint32_t ERQ38:1;
  251. vuint32_t ERQ37:1;
  252. vuint32_t ERQ36:1;
  253. vuint32_t ERQ35:1;
  254. vuint32_t ERQ34:1;
  255. vuint32_t ERQ33:1;
  256. vuint32_t ERQ32:1;
  257. } B;
  258. } ERQRH; /* DMA Enable Request Register High @baseaddress + 0x8*/
  259. union {
  260. vuint32_t R;
  261. struct {
  262. vuint32_t ERQ31:1;
  263. vuint32_t ERQ30:1;
  264. vuint32_t ERQ29:1;
  265. vuint32_t ERQ28:1;
  266. vuint32_t ERQ27:1;
  267. vuint32_t ERQ26:1;
  268. vuint32_t ERQ25:1;
  269. vuint32_t ERQ24:1;
  270. vuint32_t ERQ23:1;
  271. vuint32_t ERQ22:1;
  272. vuint32_t ERQ21:1;
  273. vuint32_t ERQ20:1;
  274. vuint32_t ERQ19:1;
  275. vuint32_t ERQ18:1;
  276. vuint32_t ERQ17:1;
  277. vuint32_t ERQ16:1;
  278. vuint32_t ERQ15:1;
  279. vuint32_t ERQ14:1;
  280. vuint32_t ERQ13:1;
  281. vuint32_t ERQ12:1;
  282. vuint32_t ERQ11:1;
  283. vuint32_t ERQ10:1;
  284. vuint32_t ERQ09:1;
  285. vuint32_t ERQ08:1;
  286. vuint32_t ERQ07:1;
  287. vuint32_t ERQ06:1;
  288. vuint32_t ERQ05:1;
  289. vuint32_t ERQ04:1;
  290. vuint32_t ERQ03:1;
  291. vuint32_t ERQ02:1;
  292. vuint32_t ERQ01:1;
  293. vuint32_t ERQ00:1;
  294. } B;
  295. } ERQRL; /* DMA Enable Request Register Low @baseaddress + 0xC*/
  296. union {
  297. vuint32_t R;
  298. struct {
  299. vuint32_t EEI63:1;
  300. vuint32_t EEI62:1;
  301. vuint32_t EEI61:1;
  302. vuint32_t EEI60:1;
  303. vuint32_t EEI59:1;
  304. vuint32_t EEI58:1;
  305. vuint32_t EEI57:1;
  306. vuint32_t EEI56:1;
  307. vuint32_t EEI55:1;
  308. vuint32_t EEI54:1;
  309. vuint32_t EEI53:1;
  310. vuint32_t EEI52:1;
  311. vuint32_t EEI51:1;
  312. vuint32_t EEI50:1;
  313. vuint32_t EEI49:1;
  314. vuint32_t EEI48:1;
  315. vuint32_t EEI47:1;
  316. vuint32_t EEI46:1;
  317. vuint32_t EEI45:1;
  318. vuint32_t EEI44:1;
  319. vuint32_t EEI43:1;
  320. vuint32_t EEI42:1;
  321. vuint32_t EEI41:1;
  322. vuint32_t EEI40:1;
  323. vuint32_t EEI39:1;
  324. vuint32_t EEI38:1;
  325. vuint32_t EEI37:1;
  326. vuint32_t EEI36:1;
  327. vuint32_t EEI35:1;
  328. vuint32_t EEI34:1;
  329. vuint32_t EEI33:1;
  330. vuint32_t EEI32:1;
  331. } B;
  332. } EEIRH; /* DMA Enable Error Interrupt Register High @baseaddress + 0x10*/
  333. union {
  334. vuint32_t R;
  335. struct {
  336. vuint32_t EEI31:1;
  337. vuint32_t EEI30:1;
  338. vuint32_t EEI29:1;
  339. vuint32_t EEI28:1;
  340. vuint32_t EEI27:1;
  341. vuint32_t EEI26:1;
  342. vuint32_t EEI25:1;
  343. vuint32_t EEI24:1;
  344. vuint32_t EEI23:1;
  345. vuint32_t EEI22:1;
  346. vuint32_t EEI21:1;
  347. vuint32_t EEI20:1;
  348. vuint32_t EEI19:1;
  349. vuint32_t EEI18:1;
  350. vuint32_t EEI17:1;
  351. vuint32_t EEI16:1;
  352. vuint32_t EEI15:1;
  353. vuint32_t EEI14:1;
  354. vuint32_t EEI13:1;
  355. vuint32_t EEI12:1;
  356. vuint32_t EEI11:1;
  357. vuint32_t EEI10:1;
  358. vuint32_t EEI09:1;
  359. vuint32_t EEI08:1;
  360. vuint32_t EEI07:1;
  361. vuint32_t EEI06:1;
  362. vuint32_t EEI05:1;
  363. vuint32_t EEI04:1;
  364. vuint32_t EEI03:1;
  365. vuint32_t EEI02:1;
  366. vuint32_t EEI01:1;
  367. vuint32_t EEI00:1;
  368. } B;
  369. } EEIRL; /* DMA Enable Error Interrupt Register Low @baseaddress + 0x14*/
  370. union {
  371. vuint8_t R;
  372. struct {
  373. vuint8_t NOP:1;
  374. vuint8_t SERQ:7;
  375. } B;
  376. } SERQR; /* DMA Set Enable Request Register @baseaddress + 0x18*/
  377. union {
  378. vuint8_t R;
  379. struct {
  380. vuint8_t NOP:1;
  381. vuint8_t CERQ:7;
  382. } B;
  383. } CERQR; /* DMA Clear Enable Request Register @baseaddress + 0x19*/
  384. union {
  385. vuint8_t R;
  386. struct {
  387. vuint8_t NOP:1;
  388. vuint8_t SEEI:7;
  389. } B;
  390. } SEEIR; /* DMA Set Enable Error Interrupt Register @baseaddress + 0x1A*/
  391. union {
  392. vuint8_t R;
  393. struct {
  394. vuint8_t NOP:1;
  395. vuint8_t CEEI:7;
  396. } B;
  397. } CEEIR; /* DMA Clear Enable Error Interrupt Register @baseaddress + 0x1B*/
  398. union {
  399. vuint8_t R;
  400. struct {
  401. vuint8_t NOP:1;
  402. vuint8_t CINT:7;
  403. } B;
  404. } CIRQR; /* DMA Clear Interrupt Request Register @baseaddress + 0x1C */
  405. union {
  406. vuint8_t R;
  407. struct {
  408. vuint8_t NOP:1;
  409. vuint8_t CERR:7;
  410. } B;
  411. } CER; /* DMA Clear error Register @baseaddress + 0x1D */
  412. union {
  413. vuint8_t R;
  414. struct {
  415. vuint8_t NOP:1;
  416. vuint8_t SSB:7;
  417. } B;
  418. } SSBR; /* Set Start Bit Register @baseaddress + 0x1E */
  419. union {
  420. vuint8_t R;
  421. struct {
  422. vuint8_t NOP:1;
  423. vuint8_t CDSB:7;
  424. } B;
  425. } CDSBR; /* Clear Done Status Bit Register @baseaddress + 0x1F */
  426. union {
  427. vuint32_t R;
  428. struct {
  429. vuint32_t INT63:1;
  430. vuint32_t INT62:1;
  431. vuint32_t INT61:1;
  432. vuint32_t INT60:1;
  433. vuint32_t INT59:1;
  434. vuint32_t INT58:1;
  435. vuint32_t INT57:1;
  436. vuint32_t INT56:1;
  437. vuint32_t INT55:1;
  438. vuint32_t INT54:1;
  439. vuint32_t INT53:1;
  440. vuint32_t INT52:1;
  441. vuint32_t INT51:1;
  442. vuint32_t INT50:1;
  443. vuint32_t INT49:1;
  444. vuint32_t INT48:1;
  445. vuint32_t INT47:1;
  446. vuint32_t INT46:1;
  447. vuint32_t INT45:1;
  448. vuint32_t INT44:1;
  449. vuint32_t INT43:1;
  450. vuint32_t INT42:1;
  451. vuint32_t INT41:1;
  452. vuint32_t INT40:1;
  453. vuint32_t INT39:1;
  454. vuint32_t INT38:1;
  455. vuint32_t INT37:1;
  456. vuint32_t INT36:1;
  457. vuint32_t INT35:1;
  458. vuint32_t INT34:1;
  459. vuint32_t INT33:1;
  460. vuint32_t INT32:1;
  461. } B;
  462. } IRQRH; /* DMA Interrupt Request High @baseaddress + 0x20 */
  463. union {
  464. vuint32_t R;
  465. struct {
  466. vuint32_t INT31:1;
  467. vuint32_t INT30:1;
  468. vuint32_t INT29:1;
  469. vuint32_t INT28:1;
  470. vuint32_t INT27:1;
  471. vuint32_t INT26:1;
  472. vuint32_t INT25:1;
  473. vuint32_t INT24:1;
  474. vuint32_t INT23:1;
  475. vuint32_t INT22:1;
  476. vuint32_t INT21:1;
  477. vuint32_t INT20:1;
  478. vuint32_t INT19:1;
  479. vuint32_t INT18:1;
  480. vuint32_t INT17:1;
  481. vuint32_t INT16:1;
  482. vuint32_t INT15:1;
  483. vuint32_t INT14:1;
  484. vuint32_t INT13:1;
  485. vuint32_t INT12:1;
  486. vuint32_t INT11:1;
  487. vuint32_t INT10:1;
  488. vuint32_t INT09:1;
  489. vuint32_t INT08:1;
  490. vuint32_t INT07:1;
  491. vuint32_t INT06:1;
  492. vuint32_t INT05:1;
  493. vuint32_t INT04:1;
  494. vuint32_t INT03:1;
  495. vuint32_t INT02:1;
  496. vuint32_t INT01:1;
  497. vuint32_t INT00:1;
  498. } B;
  499. } IRQRL; /* DMA Interrupt Request Low @baseaddress + 0x24 */
  500. union {
  501. vuint32_t R;
  502. struct {
  503. vuint32_t ERR63:1;
  504. vuint32_t ERR62:1;
  505. vuint32_t ERR61:1;
  506. vuint32_t ERR60:1;
  507. vuint32_t ERR59:1;
  508. vuint32_t ERR58:1;
  509. vuint32_t ERR57:1;
  510. vuint32_t ERR56:1;
  511. vuint32_t ERR55:1;
  512. vuint32_t ERR54:1;
  513. vuint32_t ERR53:1;
  514. vuint32_t ERR52:1;
  515. vuint32_t ERR51:1;
  516. vuint32_t ERR50:1;
  517. vuint32_t ERR49:1;
  518. vuint32_t ERR48:1;
  519. vuint32_t ERR47:1;
  520. vuint32_t ERR46:1;
  521. vuint32_t ERR45:1;
  522. vuint32_t ERR44:1;
  523. vuint32_t ERR43:1;
  524. vuint32_t ERR42:1;
  525. vuint32_t ERR41:1;
  526. vuint32_t ERR40:1;
  527. vuint32_t ERR39:1;
  528. vuint32_t ERR38:1;
  529. vuint32_t ERR37:1;
  530. vuint32_t ERR36:1;
  531. vuint32_t ERR35:1;
  532. vuint32_t ERR34:1;
  533. vuint32_t ERR33:1;
  534. vuint32_t ERR32:1;
  535. } B;
  536. } ERH; /* DMA Error High @baseaddress + 0x28 */
  537. union {
  538. vuint32_t R;
  539. struct {
  540. vuint32_t ERR31:1;
  541. vuint32_t ERR30:1;
  542. vuint32_t ERR29:1;
  543. vuint32_t ERR28:1;
  544. vuint32_t ERR27:1;
  545. vuint32_t ERR26:1;
  546. vuint32_t ERR25:1;
  547. vuint32_t ERR24:1;
  548. vuint32_t ERR23:1;
  549. vuint32_t ERR22:1;
  550. vuint32_t ERR21:1;
  551. vuint32_t ERR20:1;
  552. vuint32_t ERR19:1;
  553. vuint32_t ERR18:1;
  554. vuint32_t ERR17:1;
  555. vuint32_t ERR16:1;
  556. vuint32_t ERR15:1;
  557. vuint32_t ERR14:1;
  558. vuint32_t ERR13:1;
  559. vuint32_t ERR12:1;
  560. vuint32_t ERR11:1;
  561. vuint32_t ERR10:1;
  562. vuint32_t ERR09:1;
  563. vuint32_t ERR08:1;
  564. vuint32_t ERR07:1;
  565. vuint32_t ERR06:1;
  566. vuint32_t ERR05:1;
  567. vuint32_t ERR04:1;
  568. vuint32_t ERR03:1;
  569. vuint32_t ERR02:1;
  570. vuint32_t ERR01:1;
  571. vuint32_t ERR00:1;
  572. } B;
  573. } ERL; /* DMA Error Low @baseaddress + 0x2C */
  574. union {
  575. vuint32_t R;
  576. struct {
  577. vuint32_t HRS63:1;
  578. vuint32_t HRS62:1;
  579. vuint32_t HRS61:1;
  580. vuint32_t HRS60:1;
  581. vuint32_t HRS59:1;
  582. vuint32_t HRS58:1;
  583. vuint32_t HRS57:1;
  584. vuint32_t HRS56:1;
  585. vuint32_t HRS55:1;
  586. vuint32_t HRS54:1;
  587. vuint32_t HRS53:1;
  588. vuint32_t HRS52:1;
  589. vuint32_t HRS51:1;
  590. vuint32_t HRS50:1;
  591. vuint32_t HRS49:1;
  592. vuint32_t HRS48:1;
  593. vuint32_t HRS47:1;
  594. vuint32_t HRS46:1;
  595. vuint32_t HRS45:1;
  596. vuint32_t HRS44:1;
  597. vuint32_t HRS43:1;
  598. vuint32_t HRS42:1;
  599. vuint32_t HRS41:1;
  600. vuint32_t HRS40:1;
  601. vuint32_t HRS39:1;
  602. vuint32_t HRS38:1;
  603. vuint32_t HRS37:1;
  604. vuint32_t HRS36:1;
  605. vuint32_t HRS35:1;
  606. vuint32_t HRS34:1;
  607. vuint32_t HRS33:1;
  608. vuint32_t HRS32:1;
  609. } B;
  610. } HRSH; /* hardware request status high @baseaddress + 0x30 */
  611. union {
  612. vuint32_t R;
  613. struct {
  614. vuint32_t HRS31:1;
  615. vuint32_t HRS30:1;
  616. vuint32_t HRS29:1;
  617. vuint32_t HRS28:1;
  618. vuint32_t HRS27:1;
  619. vuint32_t HRS26:1;
  620. vuint32_t HRS25:1;
  621. vuint32_t HRS24:1;
  622. vuint32_t HRS23:1;
  623. vuint32_t HRS22:1;
  624. vuint32_t HRS21:1;
  625. vuint32_t HRS20:1;
  626. vuint32_t HRS19:1;
  627. vuint32_t HRS18:1;
  628. vuint32_t HRS17:1;
  629. vuint32_t HRS16:1;
  630. vuint32_t HRS15:1;
  631. vuint32_t HRS14:1;
  632. vuint32_t HRS13:1;
  633. vuint32_t HRS12:1;
  634. vuint32_t HRS11:1;
  635. vuint32_t HRS10:1;
  636. vuint32_t HRS09:1;
  637. vuint32_t HRS08:1;
  638. vuint32_t HRS07:1;
  639. vuint32_t HRS06:1;
  640. vuint32_t HRS05:1;
  641. vuint32_t HRS04:1;
  642. vuint32_t HRS03:1;
  643. vuint32_t HRS02:1;
  644. vuint32_t HRS01:1;
  645. vuint32_t HRS00:1;
  646. } B;
  647. } HRSL; /* hardware request status low @baseaddress + 0x34 */
  648. uint32_t eDMA_reserved0038[50]; /* 0x0038-0x00FF */
  649. union {
  650. vuint8_t R;
  651. struct {
  652. vuint8_t ECP:1;
  653. vuint8_t DPA:1;
  654. vuint8_t GRPPRI:2;
  655. vuint8_t CHPRI:4;
  656. } B;
  657. } CPR[64]; /* Channel n Priority @baseaddress + 0x100 */
  658. uint32_t eDMA_reserved0140[944]; /* 0x0140-0x0FFF */
  659. /* Select one of the following declarations depending on the DMA mode chosen */
  660. struct EDMA_TCD_STD_tag TCD[64]; /* Standard Format */
  661. /* struct EDMA_TCD_alt1_tag TCD[64]; */ /* CITER/BITER Link */
  662. /* struct EDMA_TCD_alt2_tag TCD[64]; */ /* Minor Loop Offset */
  663. };
  664. /****************************************************************************/
  665. /* MODULE : XBAR */
  666. /****************************************************************************/
  667. struct XBAR_tag {
  668. union {
  669. vuint32_t R;
  670. struct {
  671. vuint32_t:1;
  672. vuint32_t MSTR7:3; /* Master 7 Priority - Reserved */
  673. vuint32_t:1;
  674. vuint32_t MSTR6:3; /* Master 6 Priority - FlexRay */
  675. vuint32_t:4; /* Master 5 Priority - Not implemented */
  676. vuint32_t:1;
  677. vuint32_t MSTR4:3; /* Master 4 Priority - eDMA */
  678. vuint32_t:4; /* Master 3 Priority - Not implemented */
  679. vuint32_t:4; /* Master 2 Priority - Not implemented */
  680. vuint32_t:1;
  681. vuint32_t MSTR1:3; /* Master 1 Priority - e200z4 Core load/store & Nexus port */
  682. vuint32_t:1;
  683. vuint32_t MSTR0:3; /* Master 0 Priority - e200z4 core Instruction */
  684. } B;
  685. } MPR0; /* Master Priority Register for Slave port 0 (Flash) @baseaddress + 0x00 */
  686. int32_t XBAR_reserved_0004[3]; /* 0x0004 - 0x000F */
  687. union {
  688. vuint32_t R;
  689. struct {
  690. vuint32_t RO:1;
  691. vuint32_t HLP:1; /* Halt Low Priority */
  692. vuint32_t:6;
  693. vuint32_t HPE7:1; /* High Priority Enable */
  694. vuint32_t HPE6:1; /* High Priority Enable */
  695. vuint32_t:1;
  696. vuint32_t HPE4:1; /* High Priority Enable */
  697. vuint32_t:1;
  698. vuint32_t:1;
  699. vuint32_t HPE1:1; /* High Priority Enable */
  700. vuint32_t HPE0:1; /* High Priority Enable */
  701. vuint32_t:6;
  702. vuint32_t ARB:2;
  703. vuint32_t:2;
  704. vuint32_t PCTL:2;
  705. vuint32_t:1;
  706. vuint32_t PARK:3;
  707. } B;
  708. } SGPCR0; /* Slave General Purpose Control Register 0 (Flash) @baseaddress + 0x10 */
  709. int32_t XBAR_reserved_0014[59]; /* 0x0014 - 0x01FF */
  710. union {
  711. vuint32_t R;
  712. struct {
  713. vuint32_t:1;
  714. vuint32_t MSTR7:3; /* Master 7 Priority - Reserved */
  715. vuint32_t:1;
  716. vuint32_t MSTR6:3; /* Master 6 Priority - FlexRay */
  717. vuint32_t:4; /* Master 5 Priority - Not implemented */
  718. vuint32_t:1;
  719. vuint32_t MSTR4:3; /* Master 4 Priority - eDMA */
  720. vuint32_t:4; /* Master 3 Priority - Not implemented */
  721. vuint32_t:4; /* Master 2 Priority - Not implemented */
  722. vuint32_t:1;
  723. vuint32_t MSTR1:3; /* Master 1 Priority - e200z4 Core load/store & Nexus port */
  724. vuint32_t:1;
  725. vuint32_t MSTR0:3; /* Master 0 Priority - e200z4 core Instruction */
  726. } B;
  727. } MPR1; /* Master Priority Register for Slave port 1 (EBI) @baseaddress + 0x100 */
  728. int32_t XBAR_reserved_0100[3]; /* 0x0100 - 0x010F */
  729. union {
  730. vuint32_t R;
  731. struct {
  732. vuint32_t RO:1;
  733. vuint32_t HLP:1; /* Halt Low Priority */
  734. vuint32_t:6;
  735. vuint32_t HPE7:1; /* High Priority Enable */
  736. vuint32_t HPE6:1; /* High Priority Enable */
  737. vuint32_t:1;
  738. vuint32_t HPE4:1; /* High Priority Enable */
  739. vuint32_t:1;
  740. vuint32_t:1;
  741. vuint32_t HPE1:1; /* High Priority Enable */
  742. vuint32_t HPE0:1; /* High Priority Enable */
  743. vuint32_t:6;
  744. vuint32_t ARB:2;
  745. vuint32_t:2;
  746. vuint32_t PCTL:2;
  747. vuint32_t:1;
  748. vuint32_t PARK:3;
  749. } B;
  750. } SGPCR1; /* Slave General Purpose Control Register 1 (EBI) @baseaddress + 0x110 */
  751. int32_t XBAR_reserved_0114[59]; /* 0x0114 - 0x01FF */
  752. union {
  753. vuint32_t R;
  754. struct {
  755. vuint32_t:1;
  756. vuint32_t MSTR7:3; /* Master 7 Priority - Reserved */
  757. vuint32_t:1;
  758. vuint32_t MSTR6:3; /* Master 6 Priority - FlexRay */
  759. vuint32_t:4; /* Master 5 Priority - Not implemented */
  760. vuint32_t:1;
  761. vuint32_t MSTR4:3; /* Master 4 Priority - eDMA */
  762. vuint32_t:4; /* Master 3 Priority - Not implemented */
  763. vuint32_t:4; /* Master 2 Priority - Not implemented */
  764. vuint32_t:1;
  765. vuint32_t MSTR1:3; /* Master 1 Priority - e200z4 Core load/store & Nexus port */
  766. vuint32_t:1;
  767. vuint32_t MSTR0:3; /* Master 0 Priority - e200z4 core Instruction */
  768. } B;
  769. } MPR2; /* Master Priority Register for Slave port 2 (RAM) @baseaddress + 0x200 */
  770. int32_t XBAR_reserved_0204[3]; /* 0x0204 - 0x020F */
  771. union {
  772. vuint32_t R;
  773. struct {
  774. vuint32_t RO:1;
  775. vuint32_t HLP:1; /* Halt Low Priority */
  776. vuint32_t:6;
  777. vuint32_t HPE7:1; /* High Priority Enable */
  778. vuint32_t HPE6:1; /* High Priority Enable */
  779. vuint32_t:1;
  780. vuint32_t HPE4:1; /* High Priority Enable */
  781. vuint32_t:1;
  782. vuint32_t:1;
  783. vuint32_t HPE1:1; /* High Priority Enable */
  784. vuint32_t HPE0:1; /* High Priority Enable */
  785. vuint32_t:6;
  786. vuint32_t ARB:2;
  787. vuint32_t:2;
  788. vuint32_t PCTL:2;
  789. vuint32_t:1;
  790. vuint32_t PARK:3;
  791. } B;
  792. } SGPCR2; /* Slave General Purpose Control Register 2 (RAM)@baseaddress + 0x210 */
  793. int32_t XBAR_reserved_0214[59]; /* 0x0214 - 0x02FF */
  794. /* Slave General Purpose Control Register 3 @baseaddress + 0x310 - not implemented */
  795. int32_t XBAR_reserved_0300[64]; /* 0x0300 - 0x03FF */
  796. /* Slave General Purpose Control Register 4 @baseaddress + 0x410 - not implemented */
  797. int32_t XBAR_reserved_0400[64]; /* 0x0400 - 0x04FF */
  798. /* Slave XBAR Port 5 Not implemented @baseaddress + 0x510 */
  799. int32_t XBAR_reserved_0500[64]; /* 0x0500 - 0x05FF */
  800. /* Slave Port 6 not implemented @baseaddress + 0x610 */
  801. int32_t XBAR_reserved_0600[64]; /* 0x0600 - 0x06FF */
  802. union {
  803. vuint32_t R;
  804. struct {
  805. vuint32_t:1;
  806. vuint32_t MSTR7:3; /* Master 7 Priority - Reserved */
  807. vuint32_t:1;
  808. vuint32_t MSTR6:3; /* Master 6 Priority - FlexRay */
  809. vuint32_t:4; /* Master 5 Priority - Not implemented */
  810. vuint32_t:1;
  811. vuint32_t MSTR4:3; /* Master 4 Priority - eDMA */
  812. vuint32_t:4; /* Master 3 Priority - Not implemented */
  813. vuint32_t:4; /* Master 2 Priority - Not implemented */
  814. vuint32_t:1;
  815. vuint32_t MSTR1:3; /* Master 1 Priority - e200z4 Core load/store & Nexus port */
  816. vuint32_t:1;
  817. vuint32_t MSTR0:3; /* Master 0 Priority - e200z4 core Instruction */
  818. } B;
  819. } MPR7; /* Master Priority Register for Slave port 7 @baseaddress + 0x700 */
  820. int32_t XBAR_reserved_0704[3]; /* 0x0704 - 0x070F */
  821. union {
  822. vuint32_t R;
  823. struct {
  824. vuint32_t RO:1;
  825. vuint32_t HLP:1; /* Halt Low Priority */
  826. vuint32_t:6;
  827. vuint32_t HPE7:1; /* High Priority Enable */
  828. vuint32_t HPE6:1; /* High Priority Enable */
  829. vuint32_t:1;
  830. vuint32_t HPE4:1; /* High Priority Enable */
  831. vuint32_t:1;
  832. vuint32_t:1;
  833. vuint32_t HPE1:1; /* High Priority Enable */
  834. vuint32_t HPE0:1; /* High Priority Enable */
  835. vuint32_t:6;
  836. vuint32_t ARB:2;
  837. vuint32_t:2;
  838. vuint32_t PCTL:2;
  839. vuint32_t:1;
  840. vuint32_t PARK:3;
  841. } B;
  842. } SGPCR7; /* Slave General Purpose Control Register 7 @baseaddress + 0x710 */
  843. int32_t XBAR_reserved_0714[59]; /* 0x0714 - 0x07FF */
  844. int32_t XBAR_reserved_0800[3584]; /* 0x0800-0x3FFF */
  845. };
  846. /****************************************************************************/
  847. /* MODULE : PBRIDGE Peripheral Bridge */
  848. /****************************************************************************/
  849. struct PBRIDGE_tag {
  850. union { /* Master Privilege Registers 0-7 @baseaddress + 0x00*/
  851. vuint32_t R;
  852. struct {
  853. vuint32_t:1;
  854. vuint32_t MTR0:1; /* z4 core: Master 0 Trusted for Reads */
  855. vuint32_t MTW0:1; /* z4 core: Master 0 Trusted for Writes */
  856. vuint32_t MPL0:1; /* z4 core: Master 0 Priviledge Level */
  857. vuint32_t:13;
  858. vuint32_t MTR4:1; /* DMA: Master 4 Trusted for Reads */
  859. vuint32_t MTW4:1; /* DMA: Master 4 Trusted for Writes */
  860. vuint32_t MPL4:1; /* DMA: Master 4 Priviledge Level */
  861. vuint32_t:5;
  862. vuint32_t MTR6:1; /* FlexRay: Master 6 Trusted for Reads */
  863. vuint32_t MTW6:1; /* FlexRay: Master 6 Trusted for Writes */
  864. vuint32_t MPL6:1; /* FlexRay: Master 6 Priviledge Level */
  865. vuint32_t:1;
  866. vuint32_t MTR7:1; /* EBI: Master 7 Trusted for Reads */
  867. vuint32_t MTW7:1; /* EBI: Master 7 Trusted for Writes */
  868. vuint32_t MPL7:1; /* EBI: Master 7 Priviledge Level */
  869. } B;
  870. } MPCR;
  871. union { /* Master Privilege Registers 8-15 @baseaddress + 0x04*/
  872. vuint32_t R;
  873. struct {
  874. vuint32_t:1;
  875. vuint32_t MTR0:1; /* Nexus: Master 8 Trusted for Reads */
  876. vuint32_t MTW0:1; /* Nexus: Master 8 Trusted for Writes */
  877. vuint32_t MPL0:1; /* Nexus: Master 8 Priviledge Level */
  878. vuint32_t:28;
  879. } B;
  880. } MPCR1;
  881. uint32_t PRIDGE_reserved0008[6]; /* 0x0008-0x001F */
  882. union { /* Peripheral Access Conrol Registers 0-7 @baseaddress + 0x20*/
  883. vuint32_t R;
  884. struct {
  885. vuint32_t:5;
  886. vuint32_t SP1:1; /* Crossbar: Supervisor Protect */
  887. vuint32_t WP1:1; /* Crossbar: Write Protect */
  888. vuint32_t TP1:1; /* Crossbar: Trusted Protect */
  889. vuint32_t:9;
  890. vuint32_t SP4:1; /* MPU: Supervisor Protect */
  891. vuint32_t WP4:1; /* MPU: Write Protect */
  892. vuint32_t TP4:1; /* MPU: Trusted Protect */
  893. vuint32_t:12;
  894. } B;
  895. } PACR0;
  896. union { /* Peripheral Access Conrol Registers 8-15 @baseaddress + 0x24*/
  897. vuint32_t R;
  898. struct {
  899. vuint32_t:25;
  900. vuint32_t SP6:1; /* SWT: Supervisor Protect */
  901. vuint32_t WP6:1; /* SWT: Write Protect */
  902. vuint32_t TP6:1; /* SWT: Trusted Protect */
  903. vuint32_t:1;
  904. vuint32_t SP7:1; /* STM: Supervisor Protect */
  905. vuint32_t WP7:1; /* STM: Write Protect */
  906. vuint32_t TP7:1; /* STM: Trusted Protect */
  907. } B;
  908. } PACR1;
  909. union { /* Peripheral Access Conrol Registers 16-23 @baseaddress + 0x28*/
  910. vuint32_t R;
  911. struct {
  912. vuint32_t:1;
  913. vuint32_t SP0:1; /* ECSM: Supervisor Protect */
  914. vuint32_t WP0:1; /* ECSM: Write Protect */
  915. vuint32_t TP0:1; /* ECSM: Trusted Protect */
  916. vuint32_t:1;
  917. vuint32_t SP1:1; /* DMA: Supervisor Protect */
  918. vuint32_t WP1:1; /* DMA: Write Protect */
  919. vuint32_t TP1:1; /* DMA: Trusted Protect */
  920. vuint32_t:1;
  921. vuint32_t SP2:1; /* INTC: Supervisor Protect */
  922. vuint32_t WP2:1; /* INTC: Write Protect */
  923. vuint32_t TP2:1; /* INTC: Trusted Protect */
  924. vuint32_t:20;
  925. } B;
  926. } PACR2;
  927. union { /* Peripheral Access Conrol Registers 24-31 @baseaddress + 0x2C*/
  928. vuint32_t R;
  929. struct {
  930. vuint32_t:32;
  931. } B;
  932. } PACR3;
  933. uint32_t PRIDGE_reserved0030[4]; /* 0x0030-0x003C */
  934. union { /* Off-Platform Access Control Registers 0-7 @baseaddress + 0x40*/
  935. vuint32_t R;
  936. struct {
  937. vuint32_t:1;
  938. vuint32_t SP0:1; /* eQADC: Supervisor Protect */
  939. vuint32_t WP0:1; /* eQADC: Write Protect */
  940. vuint32_t TP0:1; /* eQADC: Trusted Protect */
  941. vuint32_t:5;
  942. vuint32_t SP2:1; /* Dec Filter A: Supervisor Protect */
  943. vuint32_t WP2:1; /* Dec Filter A: Write Protect */
  944. vuint32_t TP2:1; /* Dec Filter A: Trusted Protect */
  945. vuint32_t:1;
  946. vuint32_t SP3:1; /* Dec Filter B: Supervisor Protect */
  947. vuint32_t WP3:1; /* Dec Filter B: Write Protect */
  948. vuint32_t TP3:1; /* Dec Filter B: Trusted Protect */
  949. vuint32_t:5;
  950. vuint32_t SP5:1; /* DSPIB: Supervisor Protect */
  951. vuint32_t WP5:1; /* DSPIB: Write Protect */
  952. vuint32_t TP5:1; /* DSPIB: Trusted Protect */
  953. vuint32_t:1;
  954. vuint32_t SP6:1; /* DSPIC: Supervisor Protect */
  955. vuint32_t WP6:1; /* DSPIC: Write Protect */
  956. vuint32_t TP6:1; /* DSPIC: Trusted Protect */
  957. vuint32_t:1;
  958. vuint32_t SP7:1; /* DSPID: Supervisor Protect */
  959. vuint32_t WP7:1; /* DSPID: Write Protect */
  960. vuint32_t TP7:1; /* DSPID: Trusted Protect */
  961. } B;
  962. } OPACR0;
  963. union { /* Off-Platform Access Control Registers 8-15 @baseaddress + 0x44*/
  964. vuint32_t R;
  965. struct {
  966. vuint32_t:17;
  967. vuint32_t SP4:1; /* eSCIA: Supervisor Protect */
  968. vuint32_t WP4:1; /* eSCIA: Write Protect */
  969. vuint32_t TP4:1; /* eSCIA: Trusted Protect */
  970. vuint32_t:1;
  971. vuint32_t SP5:1; /* eSCIB: Supervisor Protect */
  972. vuint32_t WP5:1; /* eSCIB: Write Protect */
  973. vuint32_t TP5:1; /* eSCIB: Trusted Protect */
  974. vuint32_t:1;
  975. vuint32_t SP6:1; /* eSCIC: Supervisor Protect */
  976. vuint32_t WP6:1; /* eSCIC: Write Protect */
  977. vuint32_t TP6:1; /* eSCIC: Trusted Protect */
  978. vuint32_t:4;
  979. } B;
  980. } OPACR1;
  981. union { /* Off-Platform Access Control Registers 16-23 @baseaddress + 0x48*/
  982. vuint32_t R;
  983. struct {
  984. vuint32_t:1;
  985. vuint32_t SP0:1; /* FlexCANA: Supervisor Protect */
  986. vuint32_t WP0:1; /* FlexCANA: Write Protect */
  987. vuint32_t TP0:1; /* FlexCANA: Trusted Protect */
  988. vuint32_t:1;
  989. vuint32_t SP1:1; /* FlexCANB: Supervisor Protect */
  990. vuint32_t WP1:1; /* FlexCANB: Write Protect */
  991. vuint32_t TP1:1; /* FlexCANB: Trusted Protect */
  992. vuint32_t:1;
  993. vuint32_t SP2:1; /* FlexCANC: Supervisor Protect */
  994. vuint32_t WP2:1; /* FlexCANC: Write Protect */
  995. vuint32_t TP2:1; /* FlexCANC: Trusted Protect */
  996. vuint32_t:20;
  997. } B;
  998. } OPACR2;
  999. union { /* Off-Platform Access Control Registers 24-31 @baseaddress + 0x4C*/
  1000. vuint32_t R;
  1001. struct {
  1002. vuint32_t:1;
  1003. vuint32_t SP0:1; /* FlexRay: Supervisor Protect */
  1004. vuint32_t WP0:1; /* FlexRay: Write Protect */
  1005. vuint32_t TP0:1; /* FlexRay: Trusted Protect */
  1006. vuint32_t:9;
  1007. vuint32_t SP3:1; /* SIM: Supervisor Protect */
  1008. vuint32_t WP3:1; /* SIM: Write Protect */
  1009. vuint32_t TP3:1; /* SIM: Trusted Protect */
  1010. vuint32_t:13;
  1011. vuint32_t SP7:1; /* BAM: Supervisor Protect */
  1012. vuint32_t WP7:1; /* BAM: Write Protect */
  1013. vuint32_t TP7:1; /* BAM: Trusted Protect */
  1014. } B;
  1015. } OPACR3;
  1016. union { /* Off-Platform Access Control Registers 32-39 @baseaddress + 0x50*/
  1017. vuint32_t R;
  1018. struct {
  1019. vuint32_t:32;
  1020. } B;
  1021. } OPACR4;
  1022. union { /* Off-Platform Access Control Registers 40-47 @baseaddress + 0x54*/
  1023. vuint32_t R;
  1024. struct {
  1025. vuint32_t:32;
  1026. } B;
  1027. } OPACR5;
  1028. union { /* Off-Platform Access Control Registers 48-55 @baseaddress + 0x58*/
  1029. vuint32_t R;
  1030. struct {
  1031. vuint32_t:32;
  1032. } B;
  1033. } OPACR6;
  1034. union { /* Off-Platform Access Control Registers 56-63 @baseaddress + 0x5C*/
  1035. vuint32_t R;
  1036. struct {
  1037. vuint32_t:9;
  1038. vuint32_t SP2:1; /* CRC: Supervisor Protect */
  1039. vuint32_t WP2:1; /* CRC: Write Protect */
  1040. vuint32_t TP2:1; /* CRC: Trusted Protect */
  1041. vuint32_t:20;
  1042. } B;
  1043. } OPACR7;
  1044. union { /* Off-Platform Access Control Registers 64-71 @baseaddress + 0x60*/
  1045. vuint32_t R;
  1046. struct {
  1047. vuint32_t:1;
  1048. vuint32_t SP0:1; /* FMPLL: Supervisor Protect */
  1049. vuint32_t WP0:1; /* FMPLL: Write Protect */
  1050. vuint32_t TP0:1; /* FMPLL: Trusted Protect */
  1051. vuint32_t:1;
  1052. vuint32_t SP1:1; /* EBI: Supervisor Protect */
  1053. vuint32_t WP1:1; /* EBI: Write Protect */
  1054. vuint32_t TP1:1; /* EBI: Trusted Protect */
  1055. vuint32_t:1;
  1056. vuint32_t SP2:1; /* FlashA: Supervisor Protect */
  1057. vuint32_t WP2:1; /* FlashA: Write Protect */
  1058. vuint32_t TP2:1; /* FlashA: Trusted Protect */
  1059. vuint32_t:1;
  1060. vuint32_t SP3:1; /* FlashB: Supervisor Protect */
  1061. vuint32_t WP3:1; /* FlashB: Write Protect */
  1062. vuint32_t TP3:1; /* FlashB: Trusted Protect */
  1063. vuint32_t:1;
  1064. vuint32_t SP4:1; /* SIU: Supervisor Protect */
  1065. vuint32_t WP4:1; /* SIU: Write Protect */
  1066. vuint32_t TP4:1; /* SIU: Trusted Protect */
  1067. vuint32_t:9;
  1068. vuint32_t SP7:1; /* DTS: Supervisor Protect */
  1069. vuint32_t WP7:1; /* DTS: Write Protect */
  1070. vuint32_t TP7:1; /* DTS: Trusted Protect */
  1071. } B;
  1072. } OPACR8;
  1073. union { /* Off-Platform Access Control Registers 72-79 @baseaddress + 0x64*/
  1074. vuint32_t R;
  1075. struct {
  1076. vuint32_t:1;
  1077. vuint32_t SP0:1; /* eMIOS: Supervisor Protect */
  1078. vuint32_t WP0:1; /* eMIOS: Write Protect */
  1079. vuint32_t TP0:1; /* eMIOS: Trusted Protect */
  1080. vuint32_t:25;
  1081. vuint32_t SP7:1; /* PMC: Supervisor Protect */
  1082. vuint32_t WP7:1; /* PMC: Write Protect */
  1083. vuint32_t TP7:1; /* PMC: Trusted Protect */
  1084. } B;
  1085. } OPACR9;
  1086. union { /* Off-Platform Access Control Registers 80-87 @baseaddress + 0x68*/
  1087. vuint32_t R;
  1088. struct {
  1089. vuint32_t:1;
  1090. vuint32_t SP0:1; /* eTPU2: Supervisor Protect */
  1091. vuint32_t WP0:1; /* eTPU2: Write Protect */
  1092. vuint32_t TP0:1; /* eTPU2: Trusted Protect */
  1093. vuint32_t:1;
  1094. vuint32_t SP1:1; /* REACM: Supervisor Protect */
  1095. vuint32_t WP1:1; /* REACM: Write Protect */
  1096. vuint32_t TP1:1; /* REACM: Trusted Protect */
  1097. vuint32_t:1;
  1098. vuint32_t SP2:1; /* eTPU PRAM: Supervisor Protect */
  1099. vuint32_t WP2:1; /* eTPU PRAM: Write Protect */
  1100. vuint32_t TP2:1; /* eTPU PRAM: Trusted Protect */
  1101. vuint32_t:1;
  1102. vuint32_t SP3:1; /* eTPU PRAM mirror: Supervisor Protect */
  1103. vuint32_t WP3:1; /* eTPU PRAM mirror: Write Protect */
  1104. vuint32_t TP3:1; /* eTPU PRAM mirror: Trusted Protect */
  1105. vuint32_t:1;
  1106. vuint32_t SP4:1; /* eTPU CRAM: Supervisor Protect */
  1107. vuint32_t WP4:1; /* eTPU CRAM: Write Protect */
  1108. vuint32_t TP4:1; /* eTPU CRAM: Trusted Protect */
  1109. vuint32_t:12;
  1110. } B;
  1111. } OPACR10;
  1112. union { /* Off-Platform Access Control Registers 88-95 @baseaddress + 0x6C*/
  1113. vuint32_t R;
  1114. struct {
  1115. vuint32_t:17;
  1116. vuint32_t SP4:1; /* PIT: Supervisor Protect */
  1117. vuint32_t WP4:1; /* PIT: Write Protect */
  1118. vuint32_t TP4:1; /* PIT: Trusted Protect */
  1119. vuint32_t:12;
  1120. } B;
  1121. } OPACR11;
  1122. uint32_t PRIDGE_reserved0070[4068]; /* 0x0070-0x3FFF */
  1123. };
  1124. /****************************************************************************/
  1125. /* MODULE : FLASH */
  1126. /****************************************************************************/
  1127. struct FLASH_tag {
  1128. union { /* Module Configuration Register @baseaddress + 0x00*/
  1129. vuint32_t R;
  1130. struct {
  1131. vuint32_t:5;
  1132. vuint32_t SIZE:3;
  1133. vuint32_t:1;
  1134. vuint32_t LAS:3;
  1135. vuint32_t:3;
  1136. vuint32_t MAS:1;
  1137. vuint32_t EER:1;
  1138. vuint32_t RWE:1;
  1139. vuint32_t SBC:1;
  1140. vuint32_t:1;
  1141. vuint32_t PEAS:1;
  1142. vuint32_t DONE:1;
  1143. vuint32_t PEG:1;
  1144. vuint32_t:4;
  1145. vuint32_t PGM:1;
  1146. vuint32_t PSUS:1;
  1147. vuint32_t ERS:1;
  1148. vuint32_t ESUS:1;
  1149. vuint32_t EHV:1;
  1150. } B;
  1151. } MCR;
  1152. union {
  1153. vuint32_t R;
  1154. struct {
  1155. vuint32_t LME:1;
  1156. vuint32_t:10;
  1157. vuint32_t SLOCK:1;
  1158. vuint32_t:2;
  1159. vuint32_t MLOCK:2;
  1160. vuint32_t:6;
  1161. vuint32_t LLOCK:10;
  1162. } B; /* Low/Mid Address Space Block Locking Register @baseaddress + 0x04*/
  1163. } LMLR;
  1164. union {
  1165. vuint32_t R;
  1166. struct {
  1167. vuint32_t HBE:1;
  1168. vuint32_t:25;
  1169. vuint32_t HBLOCK:6;
  1170. } B;
  1171. } HLR; /* High Address Space Block Locking Register @baseaddress + 0x08*/
  1172. union {
  1173. vuint32_t R;
  1174. struct {
  1175. vuint32_t SLE:1;
  1176. vuint32_t:10;
  1177. vuint32_t SSLOCK:1;
  1178. vuint32_t:2;
  1179. vuint32_t SMLOCK:2;
  1180. vuint32_t:6;
  1181. vuint32_t SLLOCK:10;
  1182. } B;
  1183. } SLMLR; /* Secondary Low/Mid Block Locking Register @baseaddress + 0x0C*/
  1184. union {
  1185. vuint32_t R;
  1186. struct {
  1187. vuint32_t:14;
  1188. vuint32_t MSEL:2;
  1189. vuint32_t:6;
  1190. vuint32_t LSEL:10;
  1191. } B;
  1192. } LMSR; /* Low/Mid Address Space Block Select Register @baseaddress + 0x10*/
  1193. union {
  1194. vuint32_t R;
  1195. struct {
  1196. vuint32_t:26;
  1197. vuint32_t HBSEL:6;
  1198. } B;
  1199. } HSR; /* High Address Space Block Select Register @baseaddress + 0x14*/
  1200. union {
  1201. vuint32_t R;
  1202. struct {
  1203. vuint32_t SAD:1;
  1204. vuint32_t:13;
  1205. vuint32_t ADDR:15;
  1206. vuint32_t:3;
  1207. } B;
  1208. } AR; /* Address Register @baseaddress + 0x18*/
  1209. union {
  1210. vuint32_t R;
  1211. struct {
  1212. vuint32_t:7;
  1213. vuint32_t:1; /* Reserved */
  1214. vuint32_t:1; /* EBI Testing - Reserved */
  1215. vuint32_t M6PFE:1; /* FlexRay */
  1216. vuint32_t:1; /* Reserved */
  1217. vuint32_t M4PFE:1; /* eDMA */
  1218. vuint32_t:1; /* Reserved */
  1219. vuint32_t:1; /* Reserved */
  1220. vuint32_t M1PFE:1; /* z4 Core Load/Store */
  1221. vuint32_t M0PFE:1; /* z4 Core Instruction */
  1222. vuint32_t APC:3;
  1223. vuint32_t WWSC:2;
  1224. vuint32_t RWSC:3;
  1225. vuint32_t:1;
  1226. vuint32_t DPFEN:1;
  1227. vuint32_t:1;
  1228. vuint32_t IPFEN:1;
  1229. vuint32_t:1;
  1230. vuint32_t PFLIM:2;
  1231. vuint32_t BFEN:1;
  1232. } B;
  1233. } BIUCR; /* Bus Interface Unit Configuration Register 1 @baseaddress + 0x1C*/
  1234. union {
  1235. vuint32_t R;
  1236. struct {
  1237. vuint32_t:14;
  1238. vuint32_t:2; /* Reserved */
  1239. vuint32_t:2; /* EBI Testing - Reserved */
  1240. vuint32_t M6AP:2; /* FlexRay */
  1241. vuint32_t:2; /* Reserved */
  1242. vuint32_t M4AP:2; /* eDMA_A */
  1243. vuint32_t:2; /* Reserved */
  1244. vuint32_t:2; /* Reserved */
  1245. vuint32_t M1AP:2; /* z4 Core Load/Store */
  1246. vuint32_t M0AP:2; /* z4 Core Instruction */
  1247. } B;
  1248. } BIUAPR; /*Bus Interface Unit Access Protection Register @baseaddress + 0x20*/
  1249. union {
  1250. vuint32_t R;
  1251. struct {
  1252. vuint32_t LBCFG:2;
  1253. vuint32_t:30;
  1254. } B;
  1255. } BIUCR2; /* Bus Interface Unit Configuration Register 2 @baseaddress + 0x24*/
  1256. uint32_t FLASH_reserved0028[5]; /* 0x0028-0x003B */
  1257. union { /* User Test 0 (UT0) register@baseaddress + 0x3C */
  1258. vuint32_t R;
  1259. struct {
  1260. vuint32_t UTE:1; /* User test enable (Read/Clear) */
  1261. vuint32_t SBCE:1; /* Single bit correction enable (Read/Clear) */
  1262. vuint32_t:6; /* Reserved */
  1263. vuint32_t DSI:8; /* Data syndrome input (Read/Write) */
  1264. vuint32_t:9; /* Reserved */
  1265. vuint32_t:1; /* Reserved (Read/Write) */
  1266. vuint32_t MRE:1; /* Margin Read Enable (Read/Write) */
  1267. vuint32_t MRV:1; /* Margin Read Value (Read/Write) */
  1268. vuint32_t EIE:1; /* ECC data Input Enable (Read/Write) */
  1269. vuint32_t AIS:1; /* Array Integrity Sequence (Read/Write) */
  1270. vuint32_t AIE:1; /* Array Integrity Enable (Read/Write) */
  1271. vuint32_t AID:1; /* Array Integrity Done (Read Only) */
  1272. } B;
  1273. } UT0;
  1274. union { /* User Test 1 (UT1) register@baseaddress + 0x40 */
  1275. vuint32_t R;
  1276. struct {
  1277. vuint32_t DAI:32; /* Data Array Input (Read/Write) */
  1278. } B;
  1279. } UT1;
  1280. union { /* User Test 2 (UT2) register@baseaddress + 0x44 */
  1281. vuint32_t R;
  1282. struct {
  1283. vuint32_t DAI:32; /* Data Array Input (Read/Write) */
  1284. } B;
  1285. } UT2;
  1286. union { /* User Multiple Input Signature Register 0-5 (UMISR[5])@baseaddress + 0x48 */
  1287. vuint32_t R;
  1288. struct {
  1289. vuint32_t MS:32; /* Multiple input Signature (Read/Write) */
  1290. } B;
  1291. } UMISR[5];
  1292. uint32_t FLASH_reserved005C[4073]; /* 0x005C-0x3FFF */
  1293. };
  1294. /****************************************************************************/
  1295. /* MODULE : EBI */
  1296. /****************************************************************************/
  1297. struct CS_tag {
  1298. union {
  1299. vuint32_t R;
  1300. struct {
  1301. vuint32_t BA:17;
  1302. vuint32_t:3;
  1303. vuint32_t PS:1;
  1304. vuint32_t:3;
  1305. vuint32_t AD_MUX:1;
  1306. vuint32_t BL:1;
  1307. vuint32_t WEBS:1;
  1308. vuint32_t TBDIP:1;
  1309. vuint32_t:1;
  1310. vuint32_t SETA:1;
  1311. vuint32_t BI:1;
  1312. vuint32_t V:1;
  1313. } B;
  1314. } BR; /* EBI Base Registers (BR) @baseaddress + 0x10 - 0x28 */
  1315. union {
  1316. vuint32_t R;
  1317. struct {
  1318. vuint32_t AM:17;
  1319. vuint32_t:7;
  1320. vuint32_t SCY:4;
  1321. vuint32_t:1;
  1322. vuint32_t BSCY:2;
  1323. vuint32_t:1;
  1324. } B;
  1325. } OR; /* EBI Option Registers (OR) @baseaddress + 0x14 - 0x2C */
  1326. };
  1327. struct CAL_CS_tag {
  1328. union {
  1329. vuint32_t R;
  1330. struct {
  1331. vuint32_t BA:17;
  1332. vuint32_t:3;
  1333. vuint32_t PS:1;
  1334. vuint32_t:3;
  1335. vuint32_t AD_MUX:1;
  1336. vuint32_t BL:1;
  1337. vuint32_t WEBS:1;
  1338. vuint32_t TBDIP:1;
  1339. vuint32_t:1;
  1340. vuint32_t SETA:1;
  1341. vuint32_t BI:1;
  1342. vuint32_t V:1;
  1343. } B;
  1344. } BR; /* EBI CAL Base Registers (CAL_BR) @baseaddress + 0x40 - 0x58 */
  1345. union {
  1346. vuint32_t R;
  1347. struct {
  1348. vuint32_t AM:17;
  1349. vuint32_t:7;
  1350. vuint32_t SCY:4;
  1351. vuint32_t:1;
  1352. vuint32_t BSCY:2;
  1353. vuint32_t:1;
  1354. } B;
  1355. } OR; /* EBI CAL Option Registers (CAL_OR) @baseaddress + 0x44 - 0x5C */
  1356. };
  1357. struct EBI_tag {
  1358. union {
  1359. vuint32_t R;
  1360. struct {
  1361. vuint32_t:16;
  1362. vuint32_t ACGE:1;
  1363. vuint32_t:8;
  1364. vuint32_t MDIS:1;
  1365. vuint32_t:3;
  1366. vuint32_t D16_31:1;
  1367. vuint32_t AD_MUX:1;
  1368. vuint32_t DBM:1;
  1369. } B;
  1370. } MCR; /* EBI Module Configuration Register (MCR) @baseaddress + 0x00 */
  1371. uint32_t EBI_reserved0004[1]; /* 0x0004-0x0008 */
  1372. union {
  1373. vuint32_t R;
  1374. struct {
  1375. vuint32_t:31;
  1376. vuint32_t BMTF:1;
  1377. } B;
  1378. } TESR; /* EBI Transfer Error Status Register (TESR) @baseaddress + 0x08 */
  1379. union {
  1380. vuint32_t R;
  1381. struct {
  1382. vuint32_t:16;
  1383. vuint32_t BMT:8;
  1384. vuint32_t BME:1;
  1385. vuint32_t:7;
  1386. } B;
  1387. } BMCR; /* EBI Bus Montior Control Register (BMCR) @baseaddress + 0x0C */
  1388. struct CS_tag CS[4]; /* EBI CS Registers (BR / OR) @baseaddress + 0x10 - 0x2C */
  1389. uint32_t EBI_reserved0030[4]; /* 0x0030 - 0x003C */
  1390. struct CAL_CS_tag CAL_CS[4]; /* EBI CAL_CS Registers (CAL_BR / CAL_OR) @baseaddress + 0x40 - 0x5C */
  1391. };
  1392. /****************************************************************************/
  1393. /* MODULE : INTC */
  1394. /****************************************************************************/
  1395. struct INTC_tag {
  1396. union {
  1397. vuint32_t R;
  1398. struct {
  1399. vuint32_t:18; /* Reserved */
  1400. vuint32_t:1; /* Reserved */
  1401. vuint32_t:4; /* Reserved */
  1402. vuint32_t:1; /* Reserved */
  1403. vuint32_t:2; /* Reserved */
  1404. vuint32_t VTES:1; /* Vector Table Entry Size */
  1405. vuint32_t:4; /* Reserved */
  1406. vuint32_t HVEN:1; /* Hardware Vector Enable */
  1407. } B;
  1408. } MCR; /* INTC Module Configuration Register (MCR) @baseaddress + 0x00 */
  1409. int32_t INTC_Reserved_0004[1]; /* 0x0004 - 0x0007 */
  1410. union {
  1411. vuint32_t R;
  1412. struct {
  1413. vuint32_t:28; /* Reserved */
  1414. vuint32_t PRI:4; /* Priority */
  1415. } B;
  1416. } CPR; /* INTC Current Priority Register (CPR) @baseaddress + 0x08 */
  1417. int32_t INTC_reserved_000C; /* 0x000C - 0x000F */
  1418. union {
  1419. vuint32_t R;
  1420. struct {
  1421. vuint32_t VTBA:21; /* Vector Table Base Address */
  1422. vuint32_t INTVEC:9; /* Interrupt Vector */
  1423. vuint32_t:2; /* Reserved */
  1424. } B;
  1425. } IACKR; /* INTC Interrupt Acknowledge Register (IACKR) @baseaddress + 0x10 */
  1426. int32_t INTC_Reserved_0014; /* 0x0014 - 0x00017 */
  1427. union {
  1428. vuint32_t R;
  1429. struct {
  1430. vuint32_t:32; /* Reserved */
  1431. } B;
  1432. } EOIR; /* INTC End of Interrupt Register (EOIR) @baseaddress + 0x18 */
  1433. int32_t INTC_Reserved_001C; /* 0x001C - 0x001F */
  1434. union {
  1435. vuint8_t R;
  1436. struct {
  1437. vuint8_t:6; /* Reserved */
  1438. vuint8_t SET:1; /* Set Flag bits */
  1439. vuint8_t CLR:1; /* Clear Flag bits */
  1440. } B;
  1441. } SSCIR[8]; /* INTC Software Set/Clear Interrupt Registers (SSCIR) @baseaddress + 0x20 */
  1442. int32_t INTC_Reserved_0028[6]; /* 0x0028 - 0x003F */
  1443. union {
  1444. vuint8_t R;
  1445. struct {
  1446. vuint8_t:2; /* Reserved */
  1447. vuint8_t:2; /* Reserved */
  1448. vuint8_t PRI:4; /* Priority Select */
  1449. } B;
  1450. } PSR[512]; /* INTC Priority Select Registers (PSR) @baseaddress + 0x40 */
  1451. };
  1452. /****************************************************************************/
  1453. /* MODULE : SIU */
  1454. /****************************************************************************/
  1455. struct SIU_tag {
  1456. union {
  1457. vuint32_t R;
  1458. struct {
  1459. vuint32_t S_F:1; /* Identifies the Manufacturer */
  1460. vuint32_t FLASH_SIZE_1:4; /* Define major Flash memory size (see Table 15-4 for details) */
  1461. vuint32_t FLASH_SIZE_2:4; /* Define Flash memory size, small granularity */
  1462. vuint32_t TEMP_RANGE:2; /* Define maximum operating range */
  1463. vuint32_t:1; /* Reserved for future enhancements */
  1464. vuint32_t MAX_FREQ:2; /* Define maximum device speed */
  1465. vuint32_t:1; /* Reserved for future enhancements */
  1466. vuint32_t SUPPLY:1; /* Defines if the part is 5V or 3V */
  1467. vuint32_t PART_NUMBER:8; /* Contain the ASCII representation of the character that indicates the product */
  1468. vuint32_t TBD:1; /* 1-bit field defined by SoC to describe optional feature, e.g., additional SPI */
  1469. vuint32_t:2; /* Reserved for future enhancements */
  1470. vuint32_t EE:1; /* Indicates if Data Flash is present */
  1471. vuint32_t:3; /* Reserved for future enhancements */
  1472. vuint32_t FR:1; /* Indicates if Data FlexRay is present */
  1473. } B;
  1474. } MIDR2; /* MCU ID Register 2 @baseaddress + 0x0 */
  1475. union {
  1476. vuint32_t R;
  1477. struct {
  1478. vuint32_t PARTNUM:16; /* Device part number */
  1479. vuint32_t CSP:1; /* CSP configuration */
  1480. vuint32_t PKG:5; /* Indicate the package the die is mounted in. */
  1481. vuint32_t:2; /* Reserved */
  1482. vuint32_t MASKNUM:8; /* MCU major mask number; updated for each complete resynthesis. MCU minor mask number; updated for each mask revision */
  1483. } B;
  1484. } MIDR; /* MCU ID Register (MIDR) @baseaddress + 0x4 */
  1485. int32_t SIU_Reserved_0008; /* 0x0008 - 0x000B */
  1486. union {
  1487. vuint32_t R;
  1488. struct {
  1489. vuint32_t PORS:1; /* Power-On Reset Status */
  1490. vuint32_t ERS:1; /* External Reset Status */
  1491. vuint32_t LLRS:1; /* Loss of Lock Reset Status */
  1492. vuint32_t LCRS:1; /* Loss of Clock Reset Status */
  1493. vuint32_t WDRS:1; /* Watchdog Timer/Debug Reset Status */
  1494. vuint32_t :1;
  1495. vuint32_t SWTRS:1; /* Software Watchdog Timer Reset Status */
  1496. vuint32_t:7;
  1497. vuint32_t SSRS:1; /* Software System Reset Status */
  1498. vuint32_t SERF:1; /* Software External Reset Flag */
  1499. vuint32_t WKPCFG:1; /* Weak Pull Configuration Pin Status */
  1500. vuint32_t:11;
  1501. vuint32_t ABR:1; /* Auto Baud Rate */
  1502. vuint32_t BOOTCFG:2; /* Reset Configuration Pin Status */
  1503. vuint32_t RGF:1; /* RESET Glitch Flag */
  1504. } B;
  1505. } RSR; /* Reset Status Register (SIU_RSR) @baseaddress + 0xC */
  1506. union {
  1507. vuint32_t R;
  1508. struct {
  1509. vuint32_t SSR:1; /* Software System Reset */
  1510. vuint32_t SER:1; /* Software External Reset */
  1511. vuint32_t:14;
  1512. vuint32_t:1;
  1513. vuint32_t:15;
  1514. } B;
  1515. } SRCR; /* System Reset Control Register (SRCR) @baseaddress + 0x10 */
  1516. union {
  1517. vuint32_t R;
  1518. struct {
  1519. vuint32_t NMI:1; /* Non-Maskable Interrupt Flag */
  1520. vuint32_t:7; /* */
  1521. vuint32_t SWT:1; /* Software Watch Dog Timer Interrupt Flag, from platform */
  1522. vuint32_t:7; /* */
  1523. vuint32_t EIF15:1; /* External Interrupt Request Flag x */
  1524. vuint32_t EIF14:1; /* External Interrupt Request Flag x */
  1525. vuint32_t EIF13:1; /* External Interrupt Request Flag x */
  1526. vuint32_t EIF12:1; /* External Interrupt Request Flag x */
  1527. vuint32_t EIF11:1; /* External Interrupt Request Flag x */
  1528. vuint32_t EIF10:1; /* External Interrupt Request Flag x */
  1529. vuint32_t EIF9:1; /* External Interrupt Request Flag x */
  1530. vuint32_t EIF8:1; /* External Interrupt Request Flag x */
  1531. vuint32_t EIF7:1; /* External Interrupt Request Flag x */
  1532. vuint32_t EIF6:1; /* External Interrupt Request Flag x */
  1533. vuint32_t EIF5:1; /* External Interrupt Request Flag x */
  1534. vuint32_t EIF4:1; /* External Interrupt Request Flag x */
  1535. vuint32_t EIF3:1; /* External Interrupt Request Flag x */
  1536. vuint32_t EIF2:1; /* External Interrupt Request Flag x */
  1537. vuint32_t EIF1:1; /* External Interrupt Request Flag x */
  1538. vuint32_t EIF0:1; /* External Interrupt Request Flag x */
  1539. } B;
  1540. } EISR; /* SIU External Interrupt Status Register (EISR) @baseaddress + 0x14 */
  1541. union {
  1542. vuint32_t R;
  1543. struct {
  1544. vuint32_t NMI_SEL:1; /* NMI Interrupt Platform Input Selection */
  1545. vuint32_t:7;
  1546. vuint32_t NMISEL0:1; /* SWT Interrupt Platform Input Selection */
  1547. vuint32_t:7;
  1548. vuint32_t EIRE15:1; /* External DMA/Interrupt Request Enable x */
  1549. vuint32_t EIRE14:1; /* External DMA/Interrupt Request Enable x */
  1550. vuint32_t EIRE13:1; /* External DMA/Interrupt Request Enable x */
  1551. vuint32_t EIRE12:1; /* External DMA/Interrupt Request Enable x */
  1552. vuint32_t EIRE11:1; /* External DMA/Interrupt Request Enable x */
  1553. vuint32_t EIRE10:1; /* External DMA/Interrupt Request Enable x */
  1554. vuint32_t EIRE9:1; /* External DMA/Interrupt Request Enable x */
  1555. vuint32_t EIRE8:1; /* External DMA/Interrupt Request Enable x */
  1556. vuint32_t EIRE7:1; /* External DMA/Interrupt Request Enable x */
  1557. vuint32_t EIRE6:1; /* External DMA/Interrupt Request Enable x */
  1558. vuint32_t EIRE5:1; /* External DMA/Interrupt Request Enable x */
  1559. vuint32_t EIRE4:1; /* External DMA/Interrupt Request Enable x */
  1560. vuint32_t EIRE3:1; /* External DMA/Interrupt Request Enable x */
  1561. vuint32_t EIRE2:1; /* External DMA/Interrupt Request Enable x */
  1562. vuint32_t EIRE1:1; /* External DMA/Interrupt Request Enable x */
  1563. vuint32_t EIRE0:1; /* External DMA/Interrupt Request Enable x */
  1564. } B;
  1565. } DIRER; /* DMA/Interrupt Request Enable Register (DIRER) @baseaddress + 0x18 */
  1566. union {
  1567. vuint32_t R;
  1568. struct {
  1569. vuint32_t:28; /* */
  1570. vuint32_t DIRS3:1; /* DMA/Interrupt Request Select x */
  1571. vuint32_t DIRS2:1; /* DMA/Interrupt Request Select x */
  1572. vuint32_t DIRS1:1; /* DMA/Interrupt Request Select x */
  1573. vuint32_t DIRS0:1; /* DMA/Interrupt Request Select x */
  1574. } B;
  1575. } DIRSR; /* DMA/Interrupt Request Select Register (DIRSR) @baseaddress + 0x1C */
  1576. union {
  1577. vuint32_t R;
  1578. struct {
  1579. vuint32_t:16; /* */
  1580. vuint32_t OVF15:1; /* Overrun Flag x */
  1581. vuint32_t OVF14:1; /* Overrun Flag x */
  1582. vuint32_t OVF13:1; /* Overrun Flag x */
  1583. vuint32_t OVF12:1; /* Overrun Flag x */
  1584. vuint32_t OVF11:1; /* Overrun Flag x */
  1585. vuint32_t OVF10:1; /* Overrun Flag x */
  1586. vuint32_t OVF9:1; /* Overrun Flag x */
  1587. vuint32_t OVF8:1; /* Overrun Flag x */
  1588. vuint32_t OVF7:1; /* Overrun Flag x */
  1589. vuint32_t OVF6:1; /* Overrun Flag x */
  1590. vuint32_t OVF5:1; /* Overrun Flag x */
  1591. vuint32_t OVF4:1; /* Overrun Flag x */
  1592. vuint32_t OVF3:1; /* Overrun Flag x */
  1593. vuint32_t OVF2:1; /* Overrun Flag x */
  1594. vuint32_t OVF1:1; /* Overrun Flag x */
  1595. vuint32_t OVF0:1; /* Overrun Flag x */
  1596. } B;
  1597. } OSR; /* Overrun Status Register (OSR) @baseaddress + 0x20 */
  1598. union {
  1599. vuint32_t R;
  1600. struct {
  1601. vuint32_t:16;
  1602. vuint32_t ORE15:1; /* Overrun Request Enable x */
  1603. vuint32_t ORE14:1; /* Overrun Request Enable x */
  1604. vuint32_t ORE13:1; /* Overrun Request Enable x */
  1605. vuint32_t ORE12:1; /* Overrun Request Enable x */
  1606. vuint32_t ORE11:1; /* Overrun Request Enable x */
  1607. vuint32_t ORE10:1; /* Overrun Request Enable x */
  1608. vuint32_t ORE9:1; /* Overrun Request Enable x */
  1609. vuint32_t ORE8:1; /* Overrun Request Enable x */
  1610. vuint32_t ORE7:1; /* Overrun Request Enable x */
  1611. vuint32_t ORE6:1; /* Overrun Request Enable x */
  1612. vuint32_t ORE5:1; /* Overrun Request Enable x */
  1613. vuint32_t ORE4:1; /* Overrun Request Enable x */
  1614. vuint32_t ORE3:1; /* Overrun Request Enable x */
  1615. vuint32_t ORE2:1; /* Overrun Request Enable x */
  1616. vuint32_t ORE1:1; /* Overrun Request Enable x */
  1617. vuint32_t ORE0:1; /* Overrun Request Enable x */
  1618. } B;
  1619. } ORER; /* Overrun Request Enable Register (ORER) @baseaddress + 0x24 */
  1620. union {
  1621. vuint32_t R;
  1622. struct {
  1623. vuint32_t NMIRE:1; /* NMI Rising-Edge Event Enable x */
  1624. vuint32_t:7;
  1625. vuint32_t NMIRE0:1; /* NMI Falling-Edge Event Enable (SWT) x */
  1626. vuint32_t:7;
  1627. vuint32_t IREE15:1; /* IRQ Rising-Edge Event Enable x */
  1628. vuint32_t IREE14:1; /* IRQ Rising-Edge Event Enable x */
  1629. vuint32_t IREE13:1; /* IRQ Rising-Edge Event Enable x */
  1630. vuint32_t IREE12:1; /* IRQ Rising-Edge Event Enable x */
  1631. vuint32_t IREE11:1; /* IRQ Rising-Edge Event Enable x */
  1632. vuint32_t IREE10:1; /* IRQ Rising-Edge Event Enable x */
  1633. vuint32_t IREE9:1; /* IRQ Rising-Edge Event Enable x */
  1634. vuint32_t IREE8:1; /* IRQ Rising-Edge Event Enable x */
  1635. vuint32_t IREE7:1; /* IRQ Rising-Edge Event Enable x */
  1636. vuint32_t IREE6:1; /* IRQ Rising-Edge Event Enable x */
  1637. vuint32_t IREE5:1; /* IRQ Rising-Edge Event Enable x */
  1638. vuint32_t IREE4:1; /* IRQ Rising-Edge Event Enable x */
  1639. vuint32_t IREE3:1; /* IRQ Rising-Edge Event Enable x */
  1640. vuint32_t IREE2:1; /* IRQ Rising-Edge Event Enable x */
  1641. vuint32_t IREE1:1; /* IRQ Rising-Edge Event Enable x */
  1642. vuint32_t IREE0:1; /* IRQ Rising-Edge Event Enable x */
  1643. } B;
  1644. } IREER; /* External IRQ Rising-Edge Event Enable Register (IREER) @baseaddress + 0x28 */
  1645. union {
  1646. vuint32_t R;
  1647. struct {
  1648. vuint32_t NMIFE:1; /* NMI Falling-Edge Event Enable (NMI Input) x */
  1649. vuint32_t:7;
  1650. vuint32_t NMIFE0:1; /* NMI Falling-Edge Event Enable (SWT) x */
  1651. vuint32_t:7;
  1652. vuint32_t IFEE15:1; /* IRQ Falling-Edge Event Enable x */
  1653. vuint32_t IFEE14:1; /* IRQ Falling-Edge Event Enable x */
  1654. vuint32_t IFEE13:1; /* IRQ Falling-Edge Event Enable x */
  1655. vuint32_t IFEE12:1; /* IRQ Falling-Edge Event Enable x */
  1656. vuint32_t IFEE11:1; /* IRQ Falling-Edge Event Enable x */
  1657. vuint32_t IFEE10:1; /* IRQ Falling-Edge Event Enable x */
  1658. vuint32_t IFEE9:1; /* IRQ Falling-Edge Event Enable x */
  1659. vuint32_t IFEE8:1; /* IRQ Falling-Edge Event Enable x */
  1660. vuint32_t IFEE7:1; /* IRQ Falling-Edge Event Enable x */
  1661. vuint32_t IFEE6:1; /* IRQ Falling-Edge Event Enable x */
  1662. vuint32_t IFEE5:1; /* IRQ Falling-Edge Event Enable x */
  1663. vuint32_t IFEE4:1; /* IRQ Falling-Edge Event Enable x */
  1664. vuint32_t IFEE3:1; /* IRQ Falling-Edge Event Enable x */
  1665. vuint32_t IFEE2:1; /* IRQ Falling-Edge Event Enable x */
  1666. vuint32_t IFEE1:1; /* IRQ Falling-Edge Event Enable x */
  1667. vuint32_t IFEE0:1; /* IRQ Falling-Edge Event Enable x */
  1668. } B;
  1669. } IFEER; /* External IRQ Falling-Edge Event Enable Regi (IFEER) @baseaddress + 0x2C */
  1670. union {
  1671. vuint32_t R;
  1672. struct {
  1673. vuint32_t:28;
  1674. vuint32_t DFL:4; /* Digital Filter Length */
  1675. } B;
  1676. } IDFR; /* External IRQ Digital Filter Register (IDFR) @baseaddress + 0x30 */
  1677. int32_t SIU_Reserved_0034[3]; /* 0x0034 - 0x003F */
  1678. union {
  1679. vuint16_t R;
  1680. struct {
  1681. vuint16_t:3;
  1682. vuint16_t PA:3;
  1683. vuint16_t OBE:1;
  1684. vuint16_t IBE:1;
  1685. vuint16_t DSC:2;
  1686. vuint16_t ODE:1;
  1687. vuint16_t HYS:1;
  1688. vuint16_t SRC:2;
  1689. vuint16_t WPE:1;
  1690. vuint16_t WPS:1;
  1691. } B;
  1692. } PCR[512]; /* Pad Configuration Register (PCR) @baseaddress + 0x40 */
  1693. int32_t SIU_Reserved_0374[112]; /* 0x0374 - 0x05FF */
  1694. union {
  1695. vuint8_t R;
  1696. struct {
  1697. vuint8_t:7;
  1698. vuint8_t PDO:1;
  1699. } B;
  1700. } GPDO[512]; /* GPIO Pin Data Output Register (GPDO) @baseaddress + 0x600 */
  1701. union {
  1702. vuint8_t R;
  1703. struct {
  1704. vuint8_t:7;
  1705. vuint8_t PDI:1;
  1706. } B;
  1707. } GPDI[256]; /* GPIO Pin Data Input Register (GDPI) @baseaddress + 0x800 */
  1708. union {
  1709. vuint32_t R;
  1710. struct {
  1711. vuint32_t TSEL5:2; /* eQADC Trigger 5 Input */
  1712. vuint32_t TSEL4:2; /* eQADC Trigger 4 Input */
  1713. vuint32_t TSEL3:2; /* eQADC Trigger 3 Input */
  1714. vuint32_t TSEL2:2; /* eQADC Trigger 4 Input */
  1715. vuint32_t TSEL1:2; /* eQADC Trigger 1 Input */
  1716. vuint32_t TSEL0:2; /* eQADC Trigger 0 Input */
  1717. vuint32_t:20; /* */
  1718. } B;
  1719. } ETISR; /* eQADC Trigger Input Select Register (ETISR) @baseaddress + 0x900 */
  1720. union {
  1721. vuint32_t R;
  1722. struct {
  1723. vuint32_t ESEL15:2; /* External IRQ Input Select x */
  1724. vuint32_t ESEL14:2; /* External IRQ Input Select x */
  1725. vuint32_t ESEL13:2; /* External IRQ Input Select x */
  1726. vuint32_t ESEL12:2; /* External IRQ Input Select x */
  1727. vuint32_t ESEL11:2; /* External IRQ Input Select x */
  1728. vuint32_t ESEL10:2; /* External IRQ Input Select x */
  1729. vuint32_t ESEL9:2; /* External IRQ Input Select x */
  1730. vuint32_t ESEL8:2; /* External IRQ Input Select x */
  1731. vuint32_t ESEL7:2; /* External IRQ Input Select x */
  1732. vuint32_t ESEL6:2; /* External IRQ Input Select x */
  1733. vuint32_t ESEL5:2; /* External IRQ Input Select x */
  1734. vuint32_t ESEL4:2; /* External IRQ Input Select x */
  1735. vuint32_t ESEL3:2; /* External IRQ Input Select x */
  1736. vuint32_t ESEL2:2; /* External IRQ Input Select x */
  1737. vuint32_t ESEL1:2; /* External IRQ Input Select x */
  1738. vuint32_t ESEL0:2; /* External IRQ Input Select x */
  1739. } B;
  1740. } EIISR; /* External IRQ Input Select Register (EIISR) @baseaddress + 0x904 */
  1741. union {
  1742. vuint32_t R;
  1743. struct {
  1744. vuint32_t:8;
  1745. vuint32_t SINSELB:2; /* DSPI_B Data Input Select */
  1746. vuint32_t SSSELB:2; /* DSPI_B Slave Select Input Select */
  1747. vuint32_t SCKSELB:2; /* DSPI_B Clock Input Select */
  1748. vuint32_t TRIGSELB:2; /* DSPI_B Trigger Input Select */
  1749. vuint32_t SINSELC:2; /* DSPI_C Data Input Select */
  1750. vuint32_t SSSELC:2; /* DSPI_C Slave Select Input Select */
  1751. vuint32_t SCKSELC:2; /* DSPI_C Clock Input Select */
  1752. vuint32_t TRIGSELC:2; /* DSPI_C Trigger Input Select */
  1753. vuint32_t SINSELD:2; /* DSPI_D Data Input Select */
  1754. vuint32_t SSSELD:2; /* DSPI_D Slave Select Input Select */
  1755. vuint32_t SCKSELD:2; /* DSPI_D Clock Input Select */
  1756. vuint32_t TRIGSELD:2; /* DSPI_D Trigger Input Select */
  1757. } B;
  1758. } DISR; /* DSPI Input Select Register (DISR) @baseaddress + 0x908 */
  1759. union {
  1760. vuint32_t R;
  1761. struct {
  1762. vuint32_t:2; /* */
  1763. vuint32_t ETSEL5:5; /* eQADC queue X Enhanced Trigger Selection */
  1764. vuint32_t ETSEL4:5; /* eQADC queue X Enhanced Trigger Selection */
  1765. vuint32_t ETSEL3:5; /* eQADC queue X Enhanced Trigger Selection */
  1766. vuint32_t ETSEL2:5; /* eQADC queue X Enhanced Trigger Selection */
  1767. vuint32_t ETSEL1:5; /* eQADC queue X Enhanced Trigger Selection */
  1768. vuint32_t ETSEL0:5; /* eQADC queue X Enhanced Trigger Selection */
  1769. } B;
  1770. } ISEL3; /* MUX Select Register 3 (ISEL3) @baseaddress + 0x90C */
  1771. int32_t SIU_Reserved_0910[4]; /* 0x0910 - 0x091F */
  1772. union {
  1773. vuint32_t R;
  1774. struct {
  1775. vuint32_t:11;
  1776. vuint32_t ESEL5:1;
  1777. vuint32_t:3;
  1778. vuint32_t ESEL4:1;
  1779. vuint32_t:3;
  1780. vuint32_t ESEL3:1;
  1781. vuint32_t:3;
  1782. vuint32_t ESEL2:1;
  1783. vuint32_t:3;
  1784. vuint32_t ESEL1:1;
  1785. vuint32_t:3;
  1786. vuint32_t ESEL0:1;
  1787. } B;
  1788. } ISEL8; /* MUX Select Register 8 (ISEL8) @baseaddress + 0x920 */
  1789. union {
  1790. vuint32_t R;
  1791. struct {
  1792. vuint32_t:27;
  1793. vuint32_t ETSEL0A:5;
  1794. } B;
  1795. } ISEL9; /* MUX Select Register 9(ISEL9) @baseaddress + 0x924 */
  1796. int32_t SIU_Reserved_0928[22]; /* 0x0928 - 0x097F */
  1797. union {
  1798. vuint32_t R;
  1799. struct {
  1800. vuint32_t:14;
  1801. vuint32_t MATCH:1; /* Compare Register Match */
  1802. vuint32_t DISNEX:1; /* Disable Nexus */
  1803. vuint32_t:14;
  1804. vuint32_t CRSE:1; /* Calibration Reflection Suppression Enable */
  1805. vuint32_t:1;
  1806. } B;
  1807. } CCR; /* Chip Configuration Register (CCR) @baseaddress + 0x980 */
  1808. union {
  1809. vuint32_t R;
  1810. struct {
  1811. vuint32_t:18;
  1812. vuint32_t ENGDIV:6;
  1813. vuint32_t ENGSSE:1;
  1814. vuint32_t:3;
  1815. vuint32_t EBTS:1;
  1816. vuint32_t:1;
  1817. vuint32_t EBDF:2;
  1818. } B;
  1819. } ECCR; /* External Clock Control Register (ECCR) @baseaddress + 0x984 */
  1820. union {
  1821. vuint32_t R;
  1822. struct {
  1823. vuint32_t CMPAH:32;
  1824. } B;
  1825. } CARH; /* Compare A High Register (CARH) @baseaddress + 0x988 */
  1826. union {
  1827. vuint32_t R;
  1828. struct {
  1829. vuint32_t CMPAL:32;
  1830. } B;
  1831. } CARL; /* Compare A Low Register (CARL) @baseaddress + 0x98C */
  1832. union {
  1833. vuint32_t R;
  1834. struct {
  1835. vuint32_t CMPBH:32;
  1836. } B;
  1837. } CBRH; /* Compare B High Register (CBRH) @baseaddress + 0x990 */
  1838. union {
  1839. vuint32_t R;
  1840. struct {
  1841. vuint32_t CMPBL:32;
  1842. } B;
  1843. } CBRL; /* Compare B Low Register (CBRL) @baseaddress + 0x994 */
  1844. int32_t SIU_Reserved_0998[2]; /* 0x0998 - 0x099F */
  1845. union {
  1846. vuint32_t R;
  1847. struct {
  1848. vuint32_t:15;
  1849. vuint32_t CAN_SRC:1; /* CAN 2:1 Mode */
  1850. vuint32_t:11;
  1851. vuint32_t BYPASS:1; /* Bypass bit */
  1852. vuint32_t SYSCLKDIV:2; /* System Clock Divide */
  1853. vuint32_t:2;
  1854. } B;
  1855. } SYSDIV; /* System Clock Register (SYSDIV) @baseaddress + 0x9A0 */
  1856. union {
  1857. vuint32_t R;
  1858. struct {
  1859. vuint32_t CPUSTP:1; /* CPU stop request. When asserted, a stop request is sent to the following modules: */
  1860. vuint32_t:2; /* Reserved */
  1861. vuint32_t:1;
  1862. vuint32_t:1; /* Reserved */
  1863. vuint32_t TPUSTP:1; /* eTPU stop request. When asserted, a stop request is sent to the eTPU module. */
  1864. vuint32_t NPCSTP:1; /* Nexus stop request. When asserted, a stop request is sent to the Nexus Controller. */
  1865. vuint32_t EBISTP:1; /* EBI stop request. When asserted, a stop request is sent to the external bus */
  1866. vuint32_t ADCSTP:1; /* eQADC stop request. When asserted, a stop request is sent to the eQADC module. */
  1867. vuint32_t:1; /* Reserved */
  1868. vuint32_t MIOSSTP:1; /* Stop mode request */
  1869. vuint32_t DFILSTP:1; /* Decimation filter stop request. When asserted, a stop request is sent to the */
  1870. vuint32_t:1; /* Reserved */
  1871. vuint32_t PITSTP:1; /* PIT stop request. When asserted, a stop request is sent to the periodical internal */
  1872. vuint32_t:3; /* Reserved */
  1873. vuint32_t CNCSTP:1; /* FlexCAN C stop request. When asserted, a stop request is sent to the FlexCAN C */
  1874. vuint32_t CNBSTP:1; /* FlexCAN B stop request. When asserted, a stop request is sent to the FlexCAN B */
  1875. vuint32_t CNASTP:1; /* FlexCAN A stop request. When asserted, a stop request is sent to the FlexCAN A */
  1876. vuint32_t SPIDSTP:1; /* DSPI D stop request. When asserted, a stop request is sent to the DSPI D. */
  1877. vuint32_t SPICSTP:1; /* DSPI C stop request. When asserted, a stop request is sent to the DSPI C. */
  1878. vuint32_t SPIBSTP:1; /* DSPI B stop request. When asserted, a stop request is sent to the DSPI B. */
  1879. vuint32_t:6; /* Reserved */
  1880. vuint32_t SCICSTP:1; /* eSCI C stop request. When asserted, a stop request is sent to the eSCI C module. */
  1881. vuint32_t SCIBSTP:1; /* eSCI B stop request. When asserted, a stop request is sent to the eSCI B module. */
  1882. vuint32_t SCIASTP:1; /* eSCI A stop request. When asserted, a stop request is sent to the eSCIA module. */
  1883. } B;
  1884. } HLT; /* Halt Register (HLT) @baseaddress + 0x9A4 */
  1885. union {
  1886. vuint32_t R;
  1887. struct {
  1888. vuint32_t CPUACK:1; /* CPU stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1889. vuint32_t:2; /* Reserved */
  1890. vuint32_t:1;
  1891. vuint32_t:1; /* Reserved */
  1892. vuint32_t TPUACK:1; /* eTPU stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1893. vuint32_t NPCACK:1; /* Nexus stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1894. vuint32_t EBIACK:1; /* EBI stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1895. vuint32_t ADCACK:1; /* eQADC stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1896. vuint32_t:1; /* Reserved */
  1897. vuint32_t MIOSACK:1; /* eMIOS stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1898. vuint32_t DFILACK:1; /* Decimation filter stop acknowledge. When asserted, indicates that a stop */
  1899. vuint32_t:1; /* Reserved */
  1900. vuint32_t PITACK:1; /* PIT stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1901. vuint32_t:3; /* Reserved */
  1902. vuint32_t CNCACK:1; /* FlexCAN C stop acknowledge. When asserted, indicates that a stop acknowledge */
  1903. vuint32_t CNBACK:1; /* FlexCAN B stop acknowledge. When asserted, indicates that a stop acknowledge */
  1904. vuint32_t CNAACK:1; /* FlexCAN A stop acknowledge. When asserted, indicates that a stop acknowledge */
  1905. vuint32_t SPIDACK:1; /* DSPI D stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1906. vuint32_t SPICACK:1; /* DSPI C stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1907. vuint32_t SPIBACK:1; /* DSPI B stop acknowledge. When asserted, indicates that a stop acknowledge was */
  1908. vuint32_t:6; /* Reserved */
  1909. vuint32_t SCICACK:1; /* eSCI C stop acknowledge */
  1910. vuint32_t SCIBACK:1; /* eSCI B stop acknowledge */
  1911. vuint32_t SCIAACK:1; /* eSCI A stop acknowledge. */
  1912. } B;
  1913. } HLTACK; /* Halt Acknowledge Register (HLTACK) @baseaddress + 0x9A8 */
  1914. int32_t SIU_reserved09AC[2]; /* 0x09AC - 0x09B0 */
  1915. union {
  1916. vuint32_t R;
  1917. struct {
  1918. vuint32_t EXT_PID_EN:1; /* External PID Selection Enable */
  1919. vuint32_t EXT_PID_SYNC0:1; /* External PID Synchronization 0 */
  1920. vuint32_t:28; /* Reserved */
  1921. vuint32_t EXT_PID6:1; /* EXT_PID6 */
  1922. vuint32_t EXT_PID7:1; /* EXT_PID7 */
  1923. } B;
  1924. } EMPCR0; /* Core MMU PID Control Register (EMPCR0) @baseaddress + 0x9B4 */
  1925. int32_t SIU_reserved09B8[19]; /* 0x09B8 - 0x09B0 */
  1926. };
  1927. /****************************************************************************/
  1928. /* MODULE : FMPLL */
  1929. /****************************************************************************/
  1930. struct FMPLL_tag {
  1931. union {
  1932. vuint32_t R;
  1933. struct {
  1934. vuint32_t:1;
  1935. vuint32_t PREDIV:3;
  1936. vuint32_t MFD:5;
  1937. vuint32_t:1;
  1938. vuint32_t RFD:3;
  1939. vuint32_t LOCEN:1;
  1940. vuint32_t LOLRE:1;
  1941. vuint32_t LOCRE:1;
  1942. vuint32_t:1;
  1943. vuint32_t LOLIRQ:1;
  1944. vuint32_t LOCIRQ:1;
  1945. vuint32_t:13;
  1946. } B;
  1947. } SYNCR; /* Synthesizer Control Register (SYNCR) @baseaddress + 0x0000 */
  1948. union {
  1949. vuint32_t R;
  1950. struct {
  1951. vuint32_t:22;
  1952. vuint32_t LOLF:1;
  1953. vuint32_t LOC:1;
  1954. vuint32_t MODE:1;
  1955. vuint32_t PLLSEL:1;
  1956. vuint32_t PLLREF:1;
  1957. vuint32_t LOCKS:1;
  1958. vuint32_t LOCK:1;
  1959. vuint32_t LOCF:1;
  1960. vuint32_t:2;
  1961. } B;
  1962. } SYNSR; /* Synthesizer Status Register (SYNSR) @baseaddress + 0x0004 */
  1963. union {
  1964. vuint32_t R;
  1965. struct {
  1966. vuint32_t EMODE:1;
  1967. vuint32_t CLKCFG:3;
  1968. vuint32_t:8;
  1969. vuint32_t EPREDIV:4;
  1970. vuint32_t:9;
  1971. vuint32_t EMFD:7;
  1972. } B;
  1973. } ESYNCR1; /* Enhanced Synthesizer Control Register 1 (ESYNCR1) @baseaddress + 0x0008 */
  1974. union {
  1975. vuint32_t R;
  1976. struct {
  1977. vuint32_t:8;
  1978. vuint32_t LOCEN:1;
  1979. vuint32_t LOLRE:1;
  1980. vuint32_t LOCRE:1;
  1981. vuint32_t LOLIRQ:1;
  1982. vuint32_t LOCIRQ:1;
  1983. vuint32_t:17;
  1984. vuint32_t ERFD:2;
  1985. } B;
  1986. } ESYNCR2; /* Enhanced Synthesizer Control Register 2 (ESYNCR2) @baseaddress + 0x000C */
  1987. int32_t FMPLL_reserved0010[2]; /* 0x0010-0x0017 */
  1988. union {
  1989. vuint32_t R;
  1990. struct {
  1991. vuint32_t BSY:1;
  1992. vuint32_t MODEN:1;
  1993. vuint32_t MODSEL:1;
  1994. vuint32_t MODPERIOD:13;
  1995. vuint32_t:1;
  1996. vuint32_t INCSTEP:15;
  1997. } B;
  1998. } SYNFMMR; /* Synthesizer FM Modulation Register (SYNFMMR) @baseaddress + 0x0018 */
  1999. };
  2000. /****************************************************************************/
  2001. /* MODULE : ECSM */
  2002. /****************************************************************************/
  2003. struct ECSM_tag {
  2004. union { /* Processor core type */
  2005. vuint16_t R;
  2006. } PCT;
  2007. union { /* Platform revision */
  2008. vuint16_t R;
  2009. } REV;
  2010. union { /* AXBS Master Configuration */
  2011. vuint16_t R;
  2012. } AMC;
  2013. union { /* AXBS Slave Configuration */
  2014. vuint16_t R;
  2015. } ASC;
  2016. union { /* IPS Module Configuration */
  2017. vuint32_t R;
  2018. } IMC;
  2019. uint8_t ECSM_reserved000C[3]; /* 0x000C-0x000E */
  2020. union { /* Miscellaneous Reset Status Register */
  2021. vuint8_t R;
  2022. struct {
  2023. vuint8_t POR:1;
  2024. vuint8_t DIR:1;
  2025. vuint8_t SWTR:1;
  2026. vuint8_t:5;
  2027. } B;
  2028. } MRSR;
  2029. uint8_t ECSM_reserved0010[3]; /* 0x0010-0x0012 */
  2030. union { /* Miscellaneous Wakeup Control */
  2031. vuint8_t R;
  2032. struct {
  2033. vuint8_t ENBWCR:1;
  2034. vuint8_t:3;
  2035. vuint8_t PRILVL:4;
  2036. } B;
  2037. } MWCR;
  2038. uint32_t ecsm_reserved0014[4]; /* 0x0014 - 0x0023 */
  2039. union { /* Miscellaneous User Defined Control */
  2040. vuint32_t R;
  2041. struct {
  2042. vuint32_t:1;
  2043. vuint32_t SWSC:1;
  2044. vuint32_t:30;
  2045. } B;
  2046. } MUDCR;
  2047. uint32_t ecsm_reserved0028[6]; /* 0x0028 - 0x003C*/
  2048. uint8_t ecsm_reserved0040[3]; /* 0x0040 - 0x0042*/
  2049. union {
  2050. vuint8_t R;
  2051. struct {
  2052. vuint8_t:2;
  2053. vuint8_t ER1BR:1;
  2054. vuint8_t EF1BR:1;
  2055. vuint8_t:2;
  2056. vuint8_t ERNCR:1;
  2057. vuint8_t EFNCR:1;
  2058. } B;
  2059. } ECR; /* ECC Configuration Register @baseaddress + 0x43 */
  2060. uint8_t ecsm_reserved0044[3]; /* 0x0044 - 0x0046*/
  2061. union {
  2062. vuint8_t R;
  2063. struct {
  2064. vuint8_t:2;
  2065. vuint8_t R1BC:1;
  2066. vuint8_t F1BC:1;
  2067. vuint8_t:2;
  2068. vuint8_t RNCE:1;
  2069. vuint8_t FNCE:1;
  2070. } B;
  2071. } ESR; /* ECC Status Register @baseaddress + 0x47 */
  2072. uint8_t ecsm_reserved0048[2]; /* 0x0048 - 0x0049*/
  2073. union {
  2074. vuint16_t R;
  2075. struct {
  2076. vuint16_t FRCAP:1;
  2077. vuint16_t:1;
  2078. vuint16_t FRC1BI:1;
  2079. vuint16_t FR11BI:1;
  2080. vuint16_t:2;
  2081. vuint16_t FRCNCI:1;
  2082. vuint16_t FR1NCI:1;
  2083. vuint16_t:1;
  2084. vuint16_t ERRBIT:7;
  2085. } B;
  2086. } EEGR; /* ECC Error Generation Register @baseaddress + 0x4A */
  2087. uint32_t ecsm_reserved004C; /* 0x004C - 0x004F*/
  2088. union {
  2089. vuint32_t R;
  2090. struct {
  2091. vuint32_t FEAR:32;
  2092. } B;
  2093. } FEAR; /* Flash ECC Address Register @baseaddress + 0x50 */
  2094. uint16_t ecsm_reserved0054; /* 0x0054 - 0x0055*/
  2095. union {
  2096. vuint8_t R;
  2097. struct {
  2098. vuint8_t:4;
  2099. vuint8_t FEMR:4;
  2100. } B;
  2101. } FEMR; /* Flash ECC Master Register @baseaddress + 0x56 */
  2102. union {
  2103. vuint8_t R;
  2104. struct {
  2105. vuint8_t WRITE:1;
  2106. vuint8_t SIZE:3;
  2107. vuint8_t PROT0:1;
  2108. vuint8_t PROT1:1;
  2109. vuint8_t PROT2:1;
  2110. vuint8_t PROT3:1;
  2111. } B;
  2112. } FEAT; /* Flash ECC Attributes Register @baseaddress + 0x57 */
  2113. union {
  2114. vuint32_t R;
  2115. struct {
  2116. vuint32_t FEDH:32;
  2117. } B;
  2118. } FEDRH; /* Flash ECC Data High Register @baseaddress + 0x58 */
  2119. union {
  2120. vuint32_t R;
  2121. struct {
  2122. vuint32_t FEDL:32;
  2123. } B;
  2124. } FEDRL; /* Flash ECC Data Low Register @baseaddress + 0x5C */
  2125. union {
  2126. vuint32_t R;
  2127. struct {
  2128. vuint32_t REAR:32;
  2129. } B;
  2130. } REAR; /* RAM ECC Address @baseaddress + 0x60 */
  2131. uint8_t ecsm_reserved0064; /* 0x0064 - 0x0065*/
  2132. union {
  2133. vuint8_t R;
  2134. struct {
  2135. vuint8_t PRESR:8;
  2136. } B;
  2137. } PRESR; /* RAM ECC Syndrome @baseaddress + 0x65 */
  2138. union {
  2139. vuint8_t R;
  2140. struct {
  2141. vuint8_t:4;
  2142. vuint8_t REMR:4;
  2143. } B;
  2144. } REMR; /* RAM ECC Master @baseaddress + 0x66 */
  2145. union {
  2146. vuint8_t R;
  2147. struct {
  2148. vuint8_t WRITE:1;
  2149. vuint8_t SIZE:3;
  2150. vuint8_t PROT0:1;
  2151. vuint8_t PROT1:1;
  2152. vuint8_t PROT2:1;
  2153. vuint8_t PROT3:1;
  2154. } B;
  2155. } REAT; /* RAM ECC Attributes Register @baseaddress + 0x67 */
  2156. union {
  2157. vuint32_t R;
  2158. struct {
  2159. vuint32_t REDH:32;
  2160. } B;
  2161. } REDRH; /* RAM ECC Data High Register @baseaddress + 0x68 */
  2162. union {
  2163. vuint32_t R;
  2164. struct {
  2165. vuint32_t REDL:32;
  2166. } B;
  2167. } REDRL; /* RAMECC Data Low Register @baseaddress + 0x6C */
  2168. };
  2169. /****************************************************************************/
  2170. /* MODULE : System Timer Module (STM) */
  2171. /****************************************************************************/
  2172. struct STM_tag {
  2173. union {
  2174. vuint32_t R;
  2175. struct {
  2176. vuint32_t:16;
  2177. vuint32_t CPS:8;
  2178. vuint32_t:6;
  2179. vuint32_t FRZ:1;
  2180. vuint32_t TEN:1;
  2181. } B;
  2182. } CR; /* STM Control Register @baseaddress + 0x0000 */
  2183. union {
  2184. vuint32_t R;
  2185. } CNT; /* STM Count Register @baseaddress + 0x0004 */
  2186. uint32_t stm_reserved0008[2]; /* 0x0008 - 0x000F */
  2187. union {
  2188. vuint32_t R;
  2189. struct {
  2190. vuint32_t:31;
  2191. vuint32_t CEN:1;
  2192. } B;
  2193. } CCR0; /* STM Channel Control Register @baseaddress + 0x0010 */
  2194. union {
  2195. vuint32_t R;
  2196. struct {
  2197. vuint32_t:31;
  2198. vuint32_t CIF:1;
  2199. } B;
  2200. } CIR0; /* STM Channel Interrupt Register @baseaddress + 0x0014 */
  2201. union {
  2202. vuint32_t R;
  2203. struct {
  2204. vuint32_t CMP;
  2205. } B;
  2206. } CMP0; /* STM Channel Compare Register @baseaddress + 0x0018 */
  2207. uint32_t stm_reserved001C; /* 0x001C - 0x001F*/
  2208. union {
  2209. vuint32_t R;
  2210. struct {
  2211. vuint32_t:31;
  2212. vuint32_t CEN:1;
  2213. } B;
  2214. } CCR1; /* STM Channel Control Register @baseaddress + 0x0020 */
  2215. union {
  2216. vuint32_t R;
  2217. struct {
  2218. vuint32_t:31;
  2219. vuint32_t CIF:1;
  2220. } B;
  2221. } CIR1; /* STM Channel Interrupt Register @baseaddress + 0x0024 */
  2222. union {
  2223. vuint32_t R;
  2224. struct {
  2225. vuint32_t CMP;
  2226. } B;
  2227. } CMP1; /* STM Channel Compare Register @baseaddress + 0x0028 */
  2228. uint32_t stm_reserved002C; /* 0x002C - 0x002F */
  2229. union {
  2230. vuint32_t R;
  2231. struct {
  2232. vuint32_t:31;
  2233. vuint32_t CEN:1;
  2234. } B;
  2235. } CCR2; /* STM Channel Control Register @baseaddress + 0x0030 */
  2236. union {
  2237. vuint32_t R;
  2238. struct {
  2239. vuint32_t:31;
  2240. vuint32_t CIF:1;
  2241. } B;
  2242. } CIR2; /* STM Channel Interrupt Register @baseaddress + 0x0034 */
  2243. union {
  2244. vuint32_t R;
  2245. struct {
  2246. vuint32_t CMP;
  2247. } B;
  2248. } CMP2; /* STM Channel Compare Register @baseaddress + 0x0038 */
  2249. uint32_t stm_reserved003C; /* 0x003C - 0x003F */
  2250. union {
  2251. vuint32_t R;
  2252. struct {
  2253. vuint32_t:31;
  2254. vuint32_t CEN:1;
  2255. } B;
  2256. } CCR3; /* STM Channel Control Register @baseaddress + 0x0040 */
  2257. union {
  2258. vuint32_t R;
  2259. struct {
  2260. vuint32_t:31;
  2261. vuint32_t CIF:1;
  2262. } B;
  2263. } CIR3; /* STM Channel Interrupt Register @baseaddress + 0x0044 */
  2264. union {
  2265. vuint32_t R;
  2266. struct {
  2267. vuint32_t CMP;
  2268. } B;
  2269. } CMP3; /* STM Channel Compare Register @baseaddress + 0x0048 */
  2270. uint32_t stm_reserved004C; /* 0x004C - 0x004F */
  2271. };
  2272. /****************************************************************************/
  2273. /* MODULE : SWT */
  2274. /****************************************************************************/
  2275. struct SWT_tag {
  2276. union {
  2277. vuint32_t R;
  2278. struct {
  2279. vuint32_t MAP0:1;
  2280. vuint32_t MAP1:1;
  2281. vuint32_t MAP2:1;
  2282. vuint32_t MAP3:1;
  2283. vuint32_t MAP4:1;
  2284. vuint32_t MAP5:1;
  2285. vuint32_t MAP6:1;
  2286. vuint32_t MAP7:1;
  2287. vuint32_t:14;
  2288. vuint32_t KEY:1;
  2289. vuint32_t RIA:1;
  2290. vuint32_t WND:1;
  2291. vuint32_t ITR:1;
  2292. vuint32_t HLK:1;
  2293. vuint32_t SLK:1;
  2294. vuint32_t CSL:1;
  2295. vuint32_t STP:1;
  2296. vuint32_t FRZ:1;
  2297. vuint32_t WEN:1;
  2298. } B;
  2299. } MCR; /* Module Configuration Register @baseaddress + 0x00 */
  2300. union {
  2301. vuint32_t R;
  2302. struct {
  2303. vuint32_t:31;
  2304. vuint32_t TIF:1;
  2305. } B;
  2306. } IR; /* Interrupt register @baseaddress + 0x04 */
  2307. union {
  2308. vuint32_t R;
  2309. struct {
  2310. vuint32_t WTO:32;
  2311. } B;
  2312. } TO; /* Timeout register @baseaddress + 0x08 */
  2313. union {
  2314. vuint32_t R;
  2315. struct {
  2316. vuint32_t WST:32;
  2317. } B;
  2318. } WN; /* Window register @baseaddress + 0x0C */
  2319. union {
  2320. vuint32_t R;
  2321. struct {
  2322. vuint32_t:16;
  2323. vuint32_t WSC:16;
  2324. } B;
  2325. } SR; /* Service register @baseaddress + 0x10 */
  2326. union {
  2327. vuint32_t R;
  2328. struct {
  2329. vuint32_t CNT:32;
  2330. } B;
  2331. } CO; /* Counter output register @baseaddress + 0x14 */
  2332. union {
  2333. vuint32_t R;
  2334. struct {
  2335. vuint32_t:16;
  2336. vuint32_t SK:16;
  2337. } B;
  2338. } SK; /* Service key register @baseaddress + 0x18 */
  2339. };
  2340. /****************************************************************************/
  2341. /* MODULE : EMIOS */
  2342. /****************************************************************************/
  2343. struct EMIOS_tag {
  2344. union {
  2345. vuint32_t R;
  2346. struct {
  2347. vuint32_t DOZEEN:1;
  2348. vuint32_t MDIS:1;
  2349. vuint32_t FRZ:1;
  2350. vuint32_t GTBE:1;
  2351. vuint32_t ETB:1;
  2352. vuint32_t GPREN:1;
  2353. vuint32_t:6;
  2354. vuint32_t SRV:4;
  2355. vuint32_t GPRE:8;
  2356. vuint32_t:8;
  2357. } B;
  2358. } MCR; /* Module Configuration Register @baseaddress + 0x00 */
  2359. union {
  2360. vuint32_t R;
  2361. struct {
  2362. vuint32_t:8;
  2363. vuint32_t F23:1;
  2364. vuint32_t F22:1;
  2365. vuint32_t F21:1;
  2366. vuint32_t F20:1;
  2367. vuint32_t F19:1;
  2368. vuint32_t F18:1;
  2369. vuint32_t F17:1;
  2370. vuint32_t F16:1;
  2371. vuint32_t F15:1;
  2372. vuint32_t F14:1;
  2373. vuint32_t F13:1;
  2374. vuint32_t F12:1;
  2375. vuint32_t F11:1;
  2376. vuint32_t F10:1;
  2377. vuint32_t F9:1;
  2378. vuint32_t F8:1;
  2379. vuint32_t F7:1;
  2380. vuint32_t F6:1;
  2381. vuint32_t F5:1;
  2382. vuint32_t F4:1;
  2383. vuint32_t F3:1;
  2384. vuint32_t F2:1;
  2385. vuint32_t F1:1;
  2386. vuint32_t F0:1;
  2387. } B;
  2388. } GFR; /* Global FLAG Register @baseaddress + 0x04 */
  2389. union {
  2390. vuint32_t R;
  2391. struct {
  2392. vuint32_t:8;
  2393. vuint32_t OU23:1;
  2394. vuint32_t OU22:1;
  2395. vuint32_t OU21:1;
  2396. vuint32_t OU20:1;
  2397. vuint32_t OU19:1;
  2398. vuint32_t OU18:1;
  2399. vuint32_t OU17:1;
  2400. vuint32_t OU16:1;
  2401. vuint32_t OU15:1;
  2402. vuint32_t OU14:1;
  2403. vuint32_t OU13:1;
  2404. vuint32_t OU12:1;
  2405. vuint32_t OU11:1;
  2406. vuint32_t OU10:1;
  2407. vuint32_t OU9:1;
  2408. vuint32_t OU8:1;
  2409. vuint32_t OU7:1;
  2410. vuint32_t OU6:1;
  2411. vuint32_t OU5:1;
  2412. vuint32_t OU4:1;
  2413. vuint32_t OU3:1;
  2414. vuint32_t OU2:1;
  2415. vuint32_t OU1:1;
  2416. vuint32_t OU0:1;
  2417. } B;
  2418. } OUDR; /* Output Update Disable Register @baseaddress + 0x08 */
  2419. union {
  2420. vuint32_t R;
  2421. struct {
  2422. vuint32_t:8; /* */
  2423. vuint32_t CHDIS23:1; /* Enable Channel [n] bit */
  2424. vuint32_t CHDIS22:1; /* Enable Channel [n] bit */
  2425. vuint32_t CHDIS21:1; /* Enable Channel [n] bit */
  2426. vuint32_t CHDIS20:1; /* Enable Channel [n] bit */
  2427. vuint32_t CHDIS19:1; /* Enable Channel [n] bit */
  2428. vuint32_t CHDIS18:1; /* Enable Channel [n] bit */
  2429. vuint32_t CHDIS17:1; /* Enable Channel [n] bit */
  2430. vuint32_t CHDIS16:1; /* Enable Channel [n] bit */
  2431. vuint32_t CHDIS15:1; /* Enable Channel [n] bit */
  2432. vuint32_t CHDIS14:1; /* Enable Channel [n] bit */
  2433. vuint32_t CHDIS13:1; /* Enable Channel [n] bit */
  2434. vuint32_t CHDIS12:1; /* Enable Channel [n] bit */
  2435. vuint32_t CHDIS11:1; /* Enable Channel [n] bit */
  2436. vuint32_t CHDIS10:1; /* Enable Channel [n] bit */
  2437. vuint32_t CHDIS9:1; /* Enable Channel [n] bit */
  2438. vuint32_t CHDIS8:1; /* Enable Channel [n] bit */
  2439. vuint32_t CHDIS7:1; /* Enable Channel [n] bit */
  2440. vuint32_t CHDIS6:1; /* Enable Channel [n] bit */
  2441. vuint32_t CHDIS5:1; /* Enable Channel [n] bit */
  2442. vuint32_t CHDIS4:1; /* Enable Channel [n] bit */
  2443. vuint32_t CHDIS3:1; /* Enable Channel [n] bit */
  2444. vuint32_t CHDIS2:1; /* Enable Channel [n] bit */
  2445. vuint32_t CHDIS1:1; /* Enable Channel [n] bit */
  2446. vuint32_t CHDIS0:1; /* Enable Channel [n] bit */
  2447. } B;
  2448. } UCDIS; /* Disable Channel (EMIOSUCDIS) @baseaddress + 0x0C */
  2449. int32_t EMIOS_Reserved_0010[4]; /* 0x0010 - 0x001F */
  2450. struct {
  2451. union {
  2452. vuint32_t R;
  2453. struct {
  2454. vuint32_t A;
  2455. }B;
  2456. } CADR; /* Channel A Data Register */
  2457. union {
  2458. vuint32_t R;
  2459. struct {
  2460. vuint32_t B;
  2461. }B;
  2462. } CBDR; /* Channel B Data Register */
  2463. union {
  2464. vuint32_t R;
  2465. struct {
  2466. vuint32_t C;
  2467. }B;
  2468. } CCNTR; /* Channel Counter Register */
  2469. union {
  2470. vuint32_t R;
  2471. struct {
  2472. vuint32_t FREN:1;
  2473. vuint32_t ODIS:1;
  2474. vuint32_t ODISSL:2;
  2475. vuint32_t UCPRE:2;
  2476. vuint32_t UCPREN:1;
  2477. vuint32_t DMA:1;
  2478. vuint32_t:1;
  2479. vuint32_t IF:4;
  2480. vuint32_t FCK:1;
  2481. vuint32_t FEN:1;
  2482. vuint32_t:3;
  2483. vuint32_t FORCMA:1;
  2484. vuint32_t FORCMB:1;
  2485. vuint32_t:1;
  2486. vuint32_t BSL:2;
  2487. vuint32_t EDSEL:1;
  2488. vuint32_t EDPOL:1;
  2489. vuint32_t MODE:7;
  2490. } B;
  2491. } CCR; /* Channel Control Register */
  2492. union {
  2493. vuint32_t R;
  2494. struct {
  2495. vuint32_t OVR:1;
  2496. vuint32_t:15;
  2497. vuint32_t OVFL:1;
  2498. vuint32_t:12;
  2499. vuint32_t UCIN:1;
  2500. vuint32_t UCOUT:1;
  2501. vuint32_t FLAG:1;
  2502. } B;
  2503. } CSR; /* Channel Status Register */
  2504. union {
  2505. vuint32_t R;
  2506. struct {
  2507. vuint32_t ALTA;
  2508. } B;
  2509. } ALTA; /* Alternate Channel A Data Register */
  2510. uint32_t emios_channel_reserved[2];
  2511. } CH[24];
  2512. };
  2513. /****************************************************************************/
  2514. /* MODULE : ETPU */
  2515. /****************************************************************************/
  2516. struct ETPU_tag {
  2517. union {
  2518. vuint32_t R;
  2519. struct {
  2520. vuint32_t GEC:1; /* Global Exception Clear */
  2521. vuint32_t SDMERR:1; /* */
  2522. vuint32_t WDTOA:1; /* */
  2523. vuint32_t WDTOB:1; /* */
  2524. vuint32_t MGE1:1; /* */
  2525. vuint32_t MGE2:1; /* */
  2526. vuint32_t ILF1:1; /* Invalid instruction flag eTPU A. */
  2527. vuint32_t ILF2:1; /* Invalid instruction flag eTPU B. */
  2528. vuint32_t SCMERR:1; /* . */
  2529. vuint32_t:2; /* */
  2530. vuint32_t SCMSIZE:5; /* Shared Code Memory size */
  2531. vuint32_t:4; /* */
  2532. vuint32_t SCMMISC:1; /* SCM MISC Flag */
  2533. vuint32_t SCMMISF:1; /* SCM MISC Flag */
  2534. vuint32_t SCMMISEN:1; /* SCM MISC Enable */
  2535. vuint32_t:2; /* */
  2536. vuint32_t VIS:1; /* SCM Visability */
  2537. vuint32_t:5; /* */
  2538. vuint32_t GTBE:1; /* Global Time Base Enable */
  2539. } B;
  2540. } MCR; /* eTPU module configuration register@baseaddress + 0x00 */
  2541. union {
  2542. vuint32_t R;
  2543. struct {
  2544. vuint32_t STS:1; /* Start Status bit */
  2545. vuint32_t CTBASE:5; /* Channel Transfer Base */
  2546. vuint32_t PBASE:10; /* Parameter Buffer Base Address */
  2547. vuint32_t PWIDTH:1; /* Parameter Width */
  2548. vuint32_t PARAM0:7; /* Channel Parameter 0 */
  2549. vuint32_t WR:1; /* */
  2550. vuint32_t PARAM1:7; /* Channel Parameter 1 */
  2551. } B;
  2552. } CDCR; /* eTPU coherent dual-parameter controller register@baseaddress + 0x04 */
  2553. vuint32_t ETPU_reserved_0008; /* 0x0008 - 0x000B */
  2554. union {
  2555. vuint32_t R;
  2556. struct {
  2557. vuint32_t ETPUMISCCMP:32; /* Expected multiple input signature calculator compare register value. */
  2558. } B;
  2559. } MISCCMPR; /* eTPU MISC Compare Register@baseaddress + 0x0c */
  2560. union {
  2561. vuint32_t R;
  2562. struct {
  2563. vuint32_t ETPUSCMOFFDATA:32; /* SCM Off-range read data value. */
  2564. } B;
  2565. } SCMOFFDATAR; /* eTPU SCM Off-Range Data Register@baseaddress + 0x10 */
  2566. union {
  2567. vuint32_t R;
  2568. struct {
  2569. vuint32_t FEND:1; /* Force END */
  2570. vuint32_t MDIS:1; /* Low power Stop */
  2571. vuint32_t:1; /* */
  2572. vuint32_t STF:1; /* Stop Flag */
  2573. vuint32_t:4; /* */
  2574. vuint32_t HLTF:1; /* Halt Mode Flag */
  2575. vuint32_t:3; /* */
  2576. vuint32_t FCSS:1;
  2577. vuint32_t FPSCK:3; /* Filter Prescaler Clock Control */
  2578. vuint32_t CDFC:2; /* */
  2579. vuint32_t:1; /* */
  2580. vuint32_t ERBA:5; /* */
  2581. vuint32_t SPPDIS:1; /* */
  2582. vuint32_t:2; /* */
  2583. vuint32_t ETB:5; /* Entry Table Base */
  2584. } B;
  2585. } ECR_A; /* eTPU Engine Configuration Register (ETPUA_ECR)@baseaddress + 0x14 */
  2586. vuint32_t ETPU_reserved_0018[2]; /* 0x0018 - 0x001B */
  2587. union {
  2588. vuint32_t R;
  2589. struct {
  2590. vuint32_t TCR2CTL:3; /* TCR2 Clock/Gate Control */
  2591. vuint32_t TCRCF:2; /* TCRCLK Signal Filter Control */
  2592. vuint32_t AM:2; /* Angle Mode */
  2593. vuint32_t:3; /* */
  2594. vuint32_t TCR2P:6; /* TCR2 Prescaler Control */
  2595. vuint32_t TCR1CTL:2; /* TCR1 Clock/Gate Control */
  2596. vuint32_t TCR1CS:1; /* */
  2597. vuint32_t:5; /* */
  2598. vuint32_t TCR1P:8; /* TCR1 Prescaler Control */
  2599. } B;
  2600. } TBCR_A; /* eTPU Time Base Configuration Register (ETPU_TBCR)@baseaddress + 0x20 */
  2601. /* offset 0x0024 */
  2602. union {
  2603. vuint32_t R;
  2604. struct {
  2605. vuint32_t:8; /* */
  2606. vuint32_t TCR1:24; /* TCR1 value. Used on matches and captures. For more information, see the eTPU reference manual. */
  2607. } B;
  2608. } TB1R_A; /* eTPU Time Base 1 (TCR1) Visibility Register (ETPU_TB1R)@baseaddress + 0x24 */
  2609. /* offset 0x0028 */
  2610. union {
  2611. vuint32_t R;
  2612. struct {
  2613. vuint32_t:8; /* */
  2614. vuint32_t TCR2:24; /* TCR2 value. Used on matches and captures. For information on TCR2, see the eTPU reference manual. */
  2615. } B;
  2616. } TB2R_A; /* eTPU Time Base 2 (TCR2) Visibility Register (ETPU_TB2R)@baseaddress + 0x28 */
  2617. union {
  2618. vuint32_t R;
  2619. struct {
  2620. vuint32_t REN1:1; /* Resource Enable TCR1 */
  2621. vuint32_t RSC1:1; /* Resource Control TCR1 */
  2622. vuint32_t:2; /* */
  2623. vuint32_t SERVER_ID1:4; /* */
  2624. vuint32_t:4; /* */
  2625. vuint32_t SRV1:4; /* Resource Server Slot */
  2626. vuint32_t REN2:1; /* Resource Enable TCR2 */
  2627. vuint32_t RSC2:1; /* Resource Control TCR2 */
  2628. vuint32_t:2; /* */
  2629. vuint32_t SERVER_ID2:4; /* */
  2630. vuint32_t:4; /* */
  2631. vuint32_t SRV2:4; /* Resource Server Slot */
  2632. } B;
  2633. } REDCR_A; /* STAC Bus Configuration Register (ETPU_STACCR)@baseaddress + 0x2c */
  2634. vuint32_t ETPU_reserved_0030[12]; /* 0x0030 - 0x005F */
  2635. union {
  2636. vuint32_t R;
  2637. struct {
  2638. vuint32_t WDM:2;
  2639. vuint32_t:14;
  2640. vuint32_t WDCNT:16;
  2641. } B;
  2642. } WDTR_A; /* ETPU1 WDTR Register @baseaddress + 0x60 */
  2643. vuint32_t ETPU1_reserved_0064; /* 0x0064 - 0x0067 */
  2644. union {
  2645. vuint32_t R;
  2646. struct {
  2647. vuint32_t IDLE_CNT:31;
  2648. vuint32_t ICLR:1;
  2649. } B;
  2650. } IDLE_A; /* ETPU1 IDLE Register @baseaddress + 0x68 */
  2651. vuint32_t ETPU_reserved_006C[101]; /* 0x006C - 0x01FF */
  2652. union {
  2653. vuint32_t R;
  2654. struct {
  2655. vuint32_t CIS31:1; /* Channel 31 Interrut Status */
  2656. vuint32_t CIS30:1; /* Channel 30 Interrut Status */
  2657. vuint32_t CIS29:1; /* Channel 29 Interrut Status */
  2658. vuint32_t CIS28:1; /* Channel 28 Interrut Status */
  2659. vuint32_t CIS27:1; /* Channel 27 Interrut Status */
  2660. vuint32_t CIS26:1; /* Channel 26 Interrut Status */
  2661. vuint32_t CIS25:1; /* Channel 25 Interrut Status */
  2662. vuint32_t CIS24:1; /* Channel 24 Interrut Status */
  2663. vuint32_t CIS23:1; /* Channel 23 Interrut Status */
  2664. vuint32_t CIS22:1; /* Channel 22 Interrut Status */
  2665. vuint32_t CIS21:1; /* Channel 21 Interrut Status */
  2666. vuint32_t CIS20:1; /* Channel 20 Interrut Status */
  2667. vuint32_t CIS19:1; /* Channel 19 Interrut Status */
  2668. vuint32_t CIS18:1; /* Channel 18 Interrut Status */
  2669. vuint32_t CIS17:1; /* Channel 17 Interrut Status */
  2670. vuint32_t CIS16:1; /* Channel 16 Interrut Status */
  2671. vuint32_t CIS15:1; /* Channel 15 Interrut Status */
  2672. vuint32_t CIS14:1; /* Channel 14 Interrut Status */
  2673. vuint32_t CIS13:1; /* Channel 13 Interrut Status */
  2674. vuint32_t CIS12:1; /* Channel 12 Interrut Status */
  2675. vuint32_t CIS11:1; /* Channel 11 Interrut Status */
  2676. vuint32_t CIS10:1; /* Channel 10 Interrut Status */
  2677. vuint32_t CIS9:1; /* Channel 9 Interrut Status */
  2678. vuint32_t CIS8:1; /* Channel 8 Interrut Status */
  2679. vuint32_t CIS7:1; /* Channel 7 Interrut Status */
  2680. vuint32_t CIS6:1; /* Channel 6 Interrut Status */
  2681. vuint32_t CIS5:1; /* Channel 5 Interrut Status */
  2682. vuint32_t CIS4:1; /* Channel 4 Interrut Status */
  2683. vuint32_t CIS3:1; /* Channel 3 Interrut Status */
  2684. vuint32_t CIS2:1; /* Channel 2 Interrut Status */
  2685. vuint32_t CIS1:1; /* Channel 1 Interrut Status */
  2686. vuint32_t CIS0:1; /* Channel 0 Interrut Status */
  2687. } B;
  2688. } CISR_A; /* eTPU Channel Interrupt Status Register (ETPU_CISR)@baseaddress + 0x200 */
  2689. int32_t ETPU_reserved_0204[3]; /* 0x0204 - 0x20F */
  2690. union {
  2691. vuint32_t R;
  2692. struct {
  2693. vuint32_t DTRS31:1; /* Channel 31 Data Transfer Request Status */
  2694. vuint32_t DTRS30:1; /* Channel 30 Data Transfer Request Status */
  2695. vuint32_t DTRS29:1; /* Channel 29 Data Transfer Request Status */
  2696. vuint32_t DTRS28:1; /* Channel 28 Data Transfer Request Status */
  2697. vuint32_t DTRS27:1; /* Channel 27 Data Transfer Request Status */
  2698. vuint32_t DTRS26:1; /* Channel 26 Data Transfer Request Status */
  2699. vuint32_t DTRS25:1; /* Channel 25 Data Transfer Request Status */
  2700. vuint32_t DTRS24:1; /* Channel 24 Data Transfer Request Status */
  2701. vuint32_t DTRS23:1; /* Channel 23 Data Transfer Request Status */
  2702. vuint32_t DTRS22:1; /* Channel 22 Data Transfer Request Status */
  2703. vuint32_t DTRS21:1; /* Channel 21 Data Transfer Request Status */
  2704. vuint32_t DTRS20:1; /* Channel 20 Data Transfer Request Status */
  2705. vuint32_t DTRS19:1; /* Channel 19 Data Transfer Request Status */
  2706. vuint32_t DTRS18:1; /* Channel 18 Data Transfer Request Status */
  2707. vuint32_t DTRS17:1; /* Channel 17 Data Transfer Request Status */
  2708. vuint32_t DTRS16:1; /* Channel 16 Data Transfer Request Status */
  2709. vuint32_t DTRS15:1; /* Channel 15 Data Transfer Request Status */
  2710. vuint32_t DTRS14:1; /* Channel 14 Data Transfer Request Status */
  2711. vuint32_t DTRS13:1; /* Channel 13 Data Transfer Request Status */
  2712. vuint32_t DTRS12:1; /* Channel 12 Data Transfer Request Status */
  2713. vuint32_t DTRS11:1; /* Channel 11 Data Transfer Request Status */
  2714. vuint32_t DTRS10:1; /* Channel 10 Data Transfer Request Status */
  2715. vuint32_t DTRS9:1; /* Channel 9 Data Transfer Request Status */
  2716. vuint32_t DTRS8:1; /* Channel 8 Data Transfer Request Status */
  2717. vuint32_t DTRS7:1; /* Channel 7 Data Transfer Request Status */
  2718. vuint32_t DTRS6:1; /* Channel 6 Data Transfer Request Status */
  2719. vuint32_t DTRS5:1; /* Channel 5 Data Transfer Request Status */
  2720. vuint32_t DTRS4:1; /* Channel 4 Data Transfer Request Status */
  2721. vuint32_t DTRS3:1; /* Channel 3 Data Transfer Request Status */
  2722. vuint32_t DTRS2:1; /* Channel 2 Data Transfer Request Status */
  2723. vuint32_t DTRS1:1; /* Channel 1 Data Transfer Request Status */
  2724. vuint32_t DTRS0:1; /* Channel 0 Data Transfer Request Status */
  2725. } B;
  2726. } CDTRSR_A; /* eTPU Channel Data Transfer Request Status Register (ETPU_CDTRSR) @baseaddress + 0x210 */
  2727. int32_t ETPU_reserved_0214[3]; /* 0x0214 - 0x021F */
  2728. union {
  2729. vuint32_t R;
  2730. struct {
  2731. vuint32_t CIOS31:1; /* Channel 31 Interruput Overflow Status */
  2732. vuint32_t CIOS30:1; /* Channel 30 Interruput Overflow Status */
  2733. vuint32_t CIOS29:1; /* Channel 29 Interruput Overflow Status */
  2734. vuint32_t CIOS28:1; /* Channel 28 Interruput Overflow Status */
  2735. vuint32_t CIOS27:1; /* Channel 27 Interruput Overflow Status */
  2736. vuint32_t CIOS26:1; /* Channel 26 Interruput Overflow Status */
  2737. vuint32_t CIOS25:1; /* Channel 25 Interruput Overflow Status */
  2738. vuint32_t CIOS24:1; /* Channel 24 Interruput Overflow Status */
  2739. vuint32_t CIOS23:1; /* Channel 23 Interruput Overflow Status */
  2740. vuint32_t CIOS22:1; /* Channel 22 Interruput Overflow Status */
  2741. vuint32_t CIOS21:1; /* Channel 21 Interruput Overflow Status */
  2742. vuint32_t CIOS20:1; /* Channel 20 Interruput Overflow Status */
  2743. vuint32_t CIOS19:1; /* Channel 19 Interruput Overflow Status */
  2744. vuint32_t CIOS18:1; /* Channel 18 Interruput Overflow Status */
  2745. vuint32_t CIOS17:1; /* Channel 17 Interruput Overflow Status */
  2746. vuint32_t CIOS16:1; /* Channel 16 Interruput Overflow Status */
  2747. vuint32_t CIOS15:1; /* Channel 15 Interruput Overflow Status */
  2748. vuint32_t CIOS14:1; /* Channel 14 Interruput Overflow Status */
  2749. vuint32_t CIOS13:1; /* Channel 13 Interruput Overflow Status */
  2750. vuint32_t CIOS12:1; /* Channel 12 Interruput Overflow Status */
  2751. vuint32_t CIOS11:1; /* Channel 11 Interruput Overflow Status */
  2752. vuint32_t CIOS10:1; /* Channel 10 Interruput Overflow Status */
  2753. vuint32_t CIOS9:1; /* Channel 9 Interruput Overflow Status */
  2754. vuint32_t CIOS8:1; /* Channel 8 Interruput Overflow Status */
  2755. vuint32_t CIOS7:1; /* Channel 7 Interruput Overflow Status */
  2756. vuint32_t CIOS6:1; /* Channel 6 Interruput Overflow Status */
  2757. vuint32_t CIOS5:1; /* Channel 5 Interruput Overflow Status */
  2758. vuint32_t CIOS4:1; /* Channel 4 Interruput Overflow Status */
  2759. vuint32_t CIOS3:1; /* Channel 3 Interruput Overflow Status */
  2760. vuint32_t CIOS2:1; /* Channel 2 Interruput Overflow Status */
  2761. vuint32_t CIOS1:1; /* Channel 1 Interruput Overflow Status */
  2762. vuint32_t CIOS0:1; /* Channel 0 Interruput Overflow Status */
  2763. } B;
  2764. } CIOSR_A; /* eTPU Channel Interrupt Overflow Status Register (ETPU_CIOSR)@baseaddress + 0x220 */
  2765. int32_t ETPU_reserved_0224[3]; /* 0x0224 - 0x022F */
  2766. union {
  2767. vuint32_t R;
  2768. struct {
  2769. vuint32_t DTROS31:1; /* Channel 31 Data Transfer Overflow Status */
  2770. vuint32_t DTROS30:1; /* Channel 30 Data Transfer Overflow Status */
  2771. vuint32_t DTROS29:1; /* Channel 29 Data Transfer Overflow Status */
  2772. vuint32_t DTROS28:1; /* Channel 28 Data Transfer Overflow Status */
  2773. vuint32_t DTROS27:1; /* Channel 27 Data Transfer Overflow Status */
  2774. vuint32_t DTROS26:1; /* Channel 26 Data Transfer Overflow Status */
  2775. vuint32_t DTROS25:1; /* Channel 25 Data Transfer Overflow Status */
  2776. vuint32_t DTROS24:1; /* Channel 24 Data Transfer Overflow Status */
  2777. vuint32_t DTROS23:1; /* Channel 23 Data Transfer Overflow Status */
  2778. vuint32_t DTROS22:1; /* Channel 22 Data Transfer Overflow Status */
  2779. vuint32_t DTROS21:1; /* Channel 21 Data Transfer Overflow Status */
  2780. vuint32_t DTROS20:1; /* Channel 20 Data Transfer Overflow Status */
  2781. vuint32_t DTROS19:1; /* Channel 19 Data Transfer Overflow Status */
  2782. vuint32_t DTROS18:1; /* Channel 18 Data Transfer Overflow Status */
  2783. vuint32_t DTROS17:1; /* Channel 17 Data Transfer Overflow Status */
  2784. vuint32_t DTROS16:1; /* Channel 16 Data Transfer Overflow Status */
  2785. vuint32_t DTROS15:1; /* Channel 15 Data Transfer Overflow Status */
  2786. vuint32_t DTROS14:1; /* Channel 14 Data Transfer Overflow Status */
  2787. vuint32_t DTROS13:1; /* Channel 13 Data Transfer Overflow Status */
  2788. vuint32_t DTROS12:1; /* Channel 12 Data Transfer Overflow Status */
  2789. vuint32_t DTROS11:1; /* Channel 11 Data Transfer Overflow Status */
  2790. vuint32_t DTROS10:1; /* Channel 10 Data Transfer Overflow Status */
  2791. vuint32_t DTROS9:1; /* Channel 9 Data Transfer Overflow Status */
  2792. vuint32_t DTROS8:1; /* Channel 8 Data Transfer Overflow Status */
  2793. vuint32_t DTROS7:1; /* Channel 7 Data Transfer Overflow Status */
  2794. vuint32_t DTROS6:1; /* Channel 6 Data Transfer Overflow Status */
  2795. vuint32_t DTROS5:1; /* Channel 5 Data Transfer Overflow Status */
  2796. vuint32_t DTROS4:1; /* Channel 4 Data Transfer Overflow Status */
  2797. vuint32_t DTROS3:1; /* Channel 3 Data Transfer Overflow Status */
  2798. vuint32_t DTROS2:1; /* Channel 2 Data Transfer Overflow Status */
  2799. vuint32_t DTROS1:1; /* Channel 1 Data Transfer Overflow Status */
  2800. vuint32_t DTROS0:1; /* Channel 0 Data Transfer Overflow Status */
  2801. } B;
  2802. } CDTROSR_A; /* eTPU Channel Data Transfer Request Overflow Status Register@baseaddress + 0x230 */
  2803. int32_t ETPU_reserved_0234[3]; /* 0x0234 - 0x023F */
  2804. union {
  2805. vuint32_t R;
  2806. struct {
  2807. vuint32_t CIE31:1; /* Channel 31 Interruput Enable */
  2808. vuint32_t CIE30:1; /* Channel 30 Interruput Enable */
  2809. vuint32_t CIE29:1; /* Channel 29 Interruput Enable */
  2810. vuint32_t CIE28:1; /* Channel 28 Interruput Enable */
  2811. vuint32_t CIE27:1; /* Channel 27 Interruput Enable */
  2812. vuint32_t CIE26:1; /* Channel 26 Interruput Enable */
  2813. vuint32_t CIE25:1; /* Channel 25 Interruput Enable */
  2814. vuint32_t CIE24:1; /* Channel 24 Interruput Enable */
  2815. vuint32_t CIE23:1; /* Channel 23 Interruput Enable */
  2816. vuint32_t CIE22:1; /* Channel 22 Interruput Enable */
  2817. vuint32_t CIE21:1; /* Channel 21 Interruput Enable */
  2818. vuint32_t CIE20:1; /* Channel 20 Interruput Enable */
  2819. vuint32_t CIE19:1; /* Channel 19 Interruput Enable */
  2820. vuint32_t CIE18:1; /* Channel 18 Interruput Enable */
  2821. vuint32_t CIE17:1; /* Channel 17 Interruput Enable */
  2822. vuint32_t CIE16:1; /* Channel 16 Interruput Enable */
  2823. vuint32_t CIE15:1; /* Channel 15 Interruput Enable */
  2824. vuint32_t CIE14:1; /* Channel 14 Interruput Enable */
  2825. vuint32_t CIE13:1; /* Channel 13 Interruput Enable */
  2826. vuint32_t CIE12:1; /* Channel 12 Interruput Enable */
  2827. vuint32_t CIE11:1; /* Channel 11 Interruput Enable */
  2828. vuint32_t CIE10:1; /* Channel 10 Interruput Enable */
  2829. vuint32_t CIE9:1; /* Channel 9 Interruput Enable */
  2830. vuint32_t CIE8:1; /* Channel 8 Interruput Enable */
  2831. vuint32_t CIE7:1; /* Channel 7 Interruput Enable */
  2832. vuint32_t CIE6:1; /* Channel 6 Interruput Enable */
  2833. vuint32_t CIE5:1; /* Channel 5 Interruput Enable */
  2834. vuint32_t CIE4:1; /* Channel 4 Interruput Enable */
  2835. vuint32_t CIE3:1; /* Channel 3 Interruput Enable */
  2836. vuint32_t CIE2:1; /* Channel 2 Interruput Enable */
  2837. vuint32_t CIE1:1; /* Channel 1 Interruput Enable */
  2838. vuint32_t CIE0:1; /* Channel 0 Interruput Enable */
  2839. } B;
  2840. } CIER_A; /* eTPU Channel Interrupt Enable Register (ETPU_CIER)@baseaddress + 0x240 */
  2841. int32_t ETPU_reserved_0244[3]; /* 0x0244 - 0x25F */
  2842. union {
  2843. vuint32_t R;
  2844. struct {
  2845. vuint32_t DTRE31:1; /* Channel 31 Data Transfer Request Enable */
  2846. vuint32_t DTRE30:1; /* Channel 30 Data Transfer Request Enable */
  2847. vuint32_t DTRE29:1; /* Channel 29 Data Transfer Request Enable */
  2848. vuint32_t DTRE28:1; /* Channel 28 Data Transfer Request Enable */
  2849. vuint32_t DTRE27:1; /* Channel 27 Data Transfer Request Enable */
  2850. vuint32_t DTRE26:1; /* Channel 26 Data Transfer Request Enable */
  2851. vuint32_t DTRE25:1; /* Channel 25 Data Transfer Request Enable */
  2852. vuint32_t DTRE24:1; /* Channel 24 Data Transfer Request Enable */
  2853. vuint32_t DTRE23:1; /* Channel 23 Data Transfer Request Enable */
  2854. vuint32_t DTRE22:1; /* Channel 22 Data Transfer Request Enable */
  2855. vuint32_t DTRE21:1; /* Channel 21 Data Transfer Request Enable */
  2856. vuint32_t DTRE20:1; /* Channel 20 Data Transfer Request Enable */
  2857. vuint32_t DTRE19:1; /* Channel 19 Data Transfer Request Enable */
  2858. vuint32_t DTRE18:1; /* Channel 18 Data Transfer Request Enable */
  2859. vuint32_t DTRE17:1; /* Channel 17 Data Transfer Request Enable */
  2860. vuint32_t DTRE16:1; /* Channel 16 Data Transfer Request Enable */
  2861. vuint32_t DTRE15:1; /* Channel 15 Data Transfer Request Enable */
  2862. vuint32_t DTRE14:1; /* Channel 14 Data Transfer Request Enable */
  2863. vuint32_t DTRE13:1; /* Channel 13 Data Transfer Request Enable */
  2864. vuint32_t DTRE12:1; /* Channel 12 Data Transfer Request Enable */
  2865. vuint32_t DTRE11:1; /* Channel 11 Data Transfer Request Enable */
  2866. vuint32_t DTRE10:1; /* Channel 10 Data Transfer Request Enable */
  2867. vuint32_t DTRE9:1; /* Channel 9 Data Transfer Request Enable */
  2868. vuint32_t DTRE8:1; /* Channel 8 Data Transfer Request Enable */
  2869. vuint32_t DTRE7:1; /* Channel 7 Data Transfer Request Enable */
  2870. vuint32_t DTRE6:1; /* Channel 6 Data Transfer Request Enable */
  2871. vuint32_t DTRE5:1; /* Channel 5 Data Transfer Request Enable */
  2872. vuint32_t DTRE4:1; /* Channel 4 Data Transfer Request Enable */
  2873. vuint32_t DTRE3:1; /* Channel 3 Data Transfer Request Enable */
  2874. vuint32_t DTRE2:1; /* Channel 2 Data Transfer Request Enable */
  2875. vuint32_t DTRE1:1; /* Channel 1 Data Transfer Request Enable */
  2876. vuint32_t DTRE0:1; /* Channel 0 Data Transfer Request Enable */
  2877. } B;
  2878. } CDTRER_A; /* eTPU Channel Data Transfer Request Enable Register (ETPU_CDTRER)@baseaddress + 0x250 */
  2879. int32_t ETPU_reserved_0254[3]; /* 0x0254 - 0x025F */
  2880. union {
  2881. vuint32_t R;
  2882. struct {
  2883. vuint32_t WDS31:1; /* Channel 31 Data Transfer Request Enable */
  2884. vuint32_t WDS30:1; /* Channel 30 Data Transfer Request Enable */
  2885. vuint32_t WDS29:1; /* Channel 29 Data Transfer Request Enable */
  2886. vuint32_t WDS28:1; /* Channel 28 Data Transfer Request Enable */
  2887. vuint32_t WDS27:1; /* Channel 27 Data Transfer Request Enable */
  2888. vuint32_t WDS26:1; /* Channel 26 Data Transfer Request Enable */
  2889. vuint32_t WDS25:1; /* Channel 25 Data Transfer Request Enable */
  2890. vuint32_t WDS24:1; /* Channel 24 Data Transfer Request Enable */
  2891. vuint32_t WDS23:1; /* Channel 23 Data Transfer Request Enable */
  2892. vuint32_t WDS22:1; /* Channel 22 Data Transfer Request Enable */
  2893. vuint32_t WDS21:1; /* Channel 21 Data Transfer Request Enable */
  2894. vuint32_t WDS20:1; /* Channel 20 Data Transfer Request Enable */
  2895. vuint32_t WDS19:1; /* Channel 19 Data Transfer Request Enable */
  2896. vuint32_t WDS18:1; /* Channel 18 Data Transfer Request Enable */
  2897. vuint32_t WDS17:1; /* Channel 17 Data Transfer Request Enable */
  2898. vuint32_t WDS16:1; /* Channel 16 Data Transfer Request Enable */
  2899. vuint32_t WDS15:1; /* Channel 15 Data Transfer Request Enable */
  2900. vuint32_t WDS14:1; /* Channel 14 Data Transfer Request Enable */
  2901. vuint32_t WDS13:1; /* Channel 13 Data Transfer Request Enable */
  2902. vuint32_t WDS12:1; /* Channel 12 Data Transfer Request Enable */
  2903. vuint32_t WDS11:1; /* Channel 11 Data Transfer Request Enable */
  2904. vuint32_t WDS10:1; /* Channel 10 Data Transfer Request Enable */
  2905. vuint32_t WDS9:1; /* Channel 9 Data Transfer Request Enable */
  2906. vuint32_t WDS8:1; /* Channel 8 Data Transfer Request Enable */
  2907. vuint32_t WDS7:1; /* Channel 7 Data Transfer Request Enable */
  2908. vuint32_t WDS6:1; /* Channel 6 Data Transfer Request Enable */
  2909. vuint32_t WDS5:1; /* Channel 5 Data Transfer Request Enable */
  2910. vuint32_t WDS4:1; /* Channel 4 Data Transfer Request Enable */
  2911. vuint32_t WDS3:1; /* Channel 3 Data Transfer Request Enable */
  2912. vuint32_t WDS2:1; /* Channel 2 Data Transfer Request Enable */
  2913. vuint32_t WDS1:1; /* Channel 1 Data Transfer Request Enable */
  2914. vuint32_t WDS0:1; /* Channel 0 Data Transfer Request Enable */
  2915. } B;
  2916. } WDSR_A; /* ETPUWDSR - eTPU Watchdog Status Register @baseaddress + 0x260 */
  2917. int32_t ETPU_reserved_0264[7]; /* 0x0264 - 0x027F */
  2918. union {
  2919. vuint32_t R;
  2920. struct {
  2921. vuint32_t SR31:1; /* Channel 31 Data Transfer Request Enable */
  2922. vuint32_t SR30:1; /* Channel 30 Data Transfer Request Enable */
  2923. vuint32_t SR29:1; /* Channel 29 Data Transfer Request Enable */
  2924. vuint32_t SR28:1; /* Channel 28 Data Transfer Request Enable */
  2925. vuint32_t SR27:1; /* Channel 27 Data Transfer Request Enable */
  2926. vuint32_t SR26:1; /* Channel 26 Data Transfer Request Enable */
  2927. vuint32_t SR25:1; /* Channel 25 Data Transfer Request Enable */
  2928. vuint32_t SR24:1; /* Channel 24 Data Transfer Request Enable */
  2929. vuint32_t SR23:1; /* Channel 23 Data Transfer Request Enable */
  2930. vuint32_t SR22:1; /* Channel 22 Data Transfer Request Enable */
  2931. vuint32_t SR21:1; /* Channel 21 Data Transfer Request Enable */
  2932. vuint32_t SR20:1; /* Channel 20 Data Transfer Request Enable */
  2933. vuint32_t SR19:1; /* Channel 19 Data Transfer Request Enable */
  2934. vuint32_t SR18:1; /* Channel 18 Data Transfer Request Enable */
  2935. vuint32_t SR17:1; /* Channel 17 Data Transfer Request Enable */
  2936. vuint32_t SR16:1; /* Channel 16 Data Transfer Request Enable */
  2937. vuint32_t SR15:1; /* Channel 15 Data Transfer Request Enable */
  2938. vuint32_t SR14:1; /* Channel 14 Data Transfer Request Enable */
  2939. vuint32_t SR13:1; /* Channel 13 Data Transfer Request Enable */
  2940. vuint32_t SR12:1; /* Channel 12 Data Transfer Request Enable */
  2941. vuint32_t SR11:1; /* Channel 11 Data Transfer Request Enable */
  2942. vuint32_t SR10:1; /* Channel 10 Data Transfer Request Enable */
  2943. vuint32_t SR9:1; /* Channel 9 Data Transfer Request Enable */
  2944. vuint32_t SR8:1; /* Channel 8 Data Transfer Request Enable */
  2945. vuint32_t SR7:1; /* Channel 7 Data Transfer Request Enable */
  2946. vuint32_t SR6:1; /* Channel 6 Data Transfer Request Enable */
  2947. vuint32_t SR5:1; /* Channel 5 Data Transfer Request Enable */
  2948. vuint32_t SR4:1; /* Channel 4 Data Transfer Request Enable */
  2949. vuint32_t SR3:1; /* Channel 3 Data Transfer Request Enable */
  2950. vuint32_t SR2:1; /* Channel 2 Data Transfer Request Enable */
  2951. vuint32_t SR1:1; /* Channel 1 Data Transfer Request Enable */
  2952. vuint32_t SR0:1; /* Channel 0 Data Transfer Request Enable */
  2953. } B;
  2954. } CPSSR_A; /* ETPUCPSSR - eTPU Channel Pending Service Status Register @baseaddress + 0x280 */
  2955. int32_t ETPU_reserved_0x0284[3]; /* 0x0284 - 0x028F */
  2956. union {
  2957. vuint32_t R;
  2958. struct {
  2959. vuint32_t SS31:1; /* Channel 31 Data Transfer Request Enable */
  2960. vuint32_t SS30:1; /* Channel 30 Data Transfer Request Enable */
  2961. vuint32_t SS29:1; /* Channel 29 Data Transfer Request Enable */
  2962. vuint32_t SS28:1; /* Channel 28 Data Transfer Request Enable */
  2963. vuint32_t SS27:1; /* Channel 27 Data Transfer Request Enable */
  2964. vuint32_t SS26:1; /* Channel 26 Data Transfer Request Enable */
  2965. vuint32_t SS25:1; /* Channel 25 Data Transfer Request Enable */
  2966. vuint32_t SS24:1; /* Channel 24 Data Transfer Request Enable */
  2967. vuint32_t SS23:1; /* Channel 23 Data Transfer Request Enable */
  2968. vuint32_t SS22:1; /* Channel 22 Data Transfer Request Enable */
  2969. vuint32_t SS21:1; /* Channel 21 Data Transfer Request Enable */
  2970. vuint32_t SS20:1; /* Channel 20 Data Transfer Request Enable */
  2971. vuint32_t SS19:1; /* Channel 19 Data Transfer Request Enable */
  2972. vuint32_t SS18:1; /* Channel 18 Data Transfer Request Enable */
  2973. vuint32_t SS17:1; /* Channel 17 Data Transfer Request Enable */
  2974. vuint32_t SS16:1; /* Channel 16 Data Transfer Request Enable */
  2975. vuint32_t SS15:1; /* Channel 15 Data Transfer Request Enable */
  2976. vuint32_t SS14:1; /* Channel 14 Data Transfer Request Enable */
  2977. vuint32_t SS13:1; /* Channel 13 Data Transfer Request Enable */
  2978. vuint32_t SS12:1; /* Channel 12 Data Transfer Request Enable */
  2979. vuint32_t SS11:1; /* Channel 11 Data Transfer Request Enable */
  2980. vuint32_t SS10:1; /* Channel 10 Data Transfer Request Enable */
  2981. vuint32_t SS9:1; /* Channel 9 Data Transfer Request Enable */
  2982. vuint32_t SS8:1; /* Channel 8 Data Transfer Request Enable */
  2983. vuint32_t SS7:1; /* Channel 7 Data Transfer Request Enable */
  2984. vuint32_t SS6:1; /* Channel 6 Data Transfer Request Enable */
  2985. vuint32_t SS5:1; /* Channel 5 Data Transfer Request Enable */
  2986. vuint32_t SS4:1; /* Channel 4 Data Transfer Request Enable */
  2987. vuint32_t SS3:1; /* Channel 3 Data Transfer Request Enable */
  2988. vuint32_t SS2:1; /* Channel 2 Data Transfer Request Enable */
  2989. vuint32_t SS1:1; /* Channel 1 Data Transfer Request Enable */
  2990. vuint32_t SS0:1; /* Channel 0 Data Transfer Request Enable */
  2991. } B;
  2992. } CSSR_A; /* ETPUCSSR - eTPU Channel Service Status Register @baseaddress + 0x290 */
  2993. int32_t ETPU_reserved_0294[91]; /* 0x0294 - 0x03FF */
  2994. /***************************** Channels ********************************/
  2995. /* Note not all devices implement all channels or even 2 engines */
  2996. /* Each eTPU engine can implement 64 channels, however most devcies */
  2997. /* only implemnet 32 channels. The eTPU block can implement 1 or 2 */
  2998. /* engines per instantiation */
  2999. /***********************************************************************/
  3000. struct {
  3001. union {
  3002. vuint32_t R;
  3003. struct {
  3004. vuint32_t CIE:1; /* Channel Interruput Enable */
  3005. vuint32_t DTRE:1; /* Data Transfer Request Enable */
  3006. vuint32_t CPR:2; /* Channel Priority */
  3007. vuint32_t:2; /* */
  3008. vuint32_t ETPD:1; /* This bit selects which channel signal, input or output, is used in the entry point selection */
  3009. vuint32_t ETCS:1; /* Entry Table Condition Select */
  3010. vuint32_t:3; /* */
  3011. vuint32_t CFS:5; /* Channel Function Select */
  3012. vuint32_t ODIS:1; /* Output disable */
  3013. vuint32_t OPOL:1; /* output polarity */
  3014. vuint32_t:3; /* */
  3015. vuint32_t CPBA:11; /* Channel Parameter Base Address */
  3016. } B;
  3017. } CR; /* eTPU Channel n Configuration Register (ETPU_CnCR)@baseaddress + 0x400 */
  3018. union {
  3019. vuint32_t R;
  3020. struct {
  3021. vuint32_t CIS:1; /* Channel Interruput Status */
  3022. vuint32_t CIOS:1; /* Channel Interruput Overflow Status */
  3023. vuint32_t:6; /* */
  3024. vuint32_t DTRS:1; /* Data Transfer Status */
  3025. vuint32_t DTROS:1; /* Data Transfer Overflow Status */
  3026. vuint32_t:6; /* */
  3027. vuint32_t IPS:1; /* Input Pin State */
  3028. vuint32_t OPS:1; /* Output Pin State */
  3029. vuint32_t OBE:1; /* Output Pin State */
  3030. vuint32_t:11; /* */
  3031. vuint32_t FM1:1; /* Function mode */
  3032. vuint32_t FM0:1; /* Function mode */
  3033. } B;
  3034. } SCR; /* eTPU Channel n Status Control Register (ETPU_CnSCR)@baseaddress + 0x404 */
  3035. union {
  3036. vuint32_t R;
  3037. struct {
  3038. vuint32_t:29; /* Host Service Request */
  3039. vuint32_t HSR:3; /* */
  3040. } B;
  3041. } HSRR; /* eTPU channel host service request register (ETPU_CnHSRR)@baseaddress + 0x408 */
  3042. int32_t ETPU_reserved_0C; /* CHAN Base + 0x0C */
  3043. } CHAN[127];
  3044. /**** Note: Not all channels implemented on all devices. *******/
  3045. };
  3046. /****************************************************************************/
  3047. /* MODULE : EQADC */
  3048. /****************************************************************************/
  3049. struct EQADC_tag {
  3050. union {
  3051. vuint32_t R;
  3052. struct {
  3053. vuint32_t:24;
  3054. vuint32_t ICEA0:1;
  3055. vuint32_t ICEA1:1;
  3056. vuint32_t:1;
  3057. vuint32_t ESSIE:2;
  3058. vuint32_t:1;
  3059. vuint32_t DBG:2;
  3060. } B;
  3061. } MCR; /* Module Configuration Register */
  3062. int32_t EQADC_reserved0004; /* 0x0004 - 0x0007 */
  3063. union {
  3064. vuint32_t R;
  3065. struct {
  3066. vuint32_t:6;
  3067. vuint32_t NMF:26;
  3068. } B;
  3069. } NMSFR; /* Null Message Send Format Register */
  3070. union {
  3071. vuint32_t R;
  3072. struct {
  3073. vuint32_t:28;
  3074. vuint32_t DFL:4;
  3075. } B;
  3076. } ETDFR; /* External Trigger Digital Filter Register */
  3077. union {
  3078. vuint32_t R;
  3079. struct {
  3080. vuint32_t CFPUSH:32;
  3081. } B;
  3082. } CFPR[6]; /* CFIFO Push Registers */
  3083. uint32_t eqadc_reserved1;
  3084. uint32_t eqadc_reserved2;
  3085. union {
  3086. vuint32_t R;
  3087. struct {
  3088. vuint32_t:16;
  3089. vuint32_t RFPOP:16;
  3090. } B;
  3091. } RFPR[6]; /* Result FIFO Pop Registers*/
  3092. uint32_t eqadc_reserved3;
  3093. uint32_t eqadc_reserved4;
  3094. union {
  3095. vuint16_t R;
  3096. struct {
  3097. vuint16_t:3;
  3098. vuint16_t CFEE0:1;
  3099. vuint16_t STRME0:1;
  3100. vuint16_t SSE:1;
  3101. vuint16_t CFINV:1;
  3102. vuint16_t:1;
  3103. vuint16_t MODE:4;
  3104. vuint16_t AMODE0:4; /* CFIFO0 only */
  3105. } B;
  3106. } CFCR[6]; /* CFIFO Control Registers */
  3107. uint32_t eqadc_reserved5;
  3108. union {
  3109. vuint16_t R;
  3110. struct {
  3111. vuint16_t NCIE:1;
  3112. vuint16_t TORIE:1;
  3113. vuint16_t PIE:1;
  3114. vuint16_t EOQIE:1;
  3115. vuint16_t CFUIE:1;
  3116. vuint16_t:1;
  3117. vuint16_t CFFE:1;
  3118. vuint16_t CFFS:1;
  3119. vuint16_t:4;
  3120. vuint16_t RFOIE:1;
  3121. vuint16_t:1;
  3122. vuint16_t RFDE:1;
  3123. vuint16_t RFDS:1;
  3124. } B;
  3125. } IDCR[6]; /* Interrupt and DMA Control Registers */
  3126. uint32_t eqadc_reserved6;
  3127. union {
  3128. vuint32_t R;
  3129. struct {
  3130. vuint32_t NCF:1;
  3131. vuint32_t TORF:1;
  3132. vuint32_t PF:1;
  3133. vuint32_t EOQF:1;
  3134. vuint32_t CFUF:1;
  3135. vuint32_t SSS:1;
  3136. vuint32_t CFFF:1;
  3137. vuint32_t:5;
  3138. vuint32_t RFOF:1;
  3139. vuint32_t:1;
  3140. vuint32_t RFDF:1;
  3141. vuint32_t:1;
  3142. vuint32_t CFCTR:4;
  3143. vuint32_t TNXTPTR:4;
  3144. vuint32_t RFCTR:4;
  3145. vuint32_t POPNXTPTR:4;
  3146. } B;
  3147. } FISR[6]; /* FIFO and Interrupt Status Registers */
  3148. uint32_t eqadc_reserved7;
  3149. uint32_t eqadc_reserved8;
  3150. union {
  3151. vuint16_t R;
  3152. struct {
  3153. vuint16_t:5;
  3154. vuint16_t TCCF:11;
  3155. } B;
  3156. } CFTCR[6]; /* CFIFO Transfer Counter Registers */
  3157. uint32_t eqadc_reserved9;
  3158. union {
  3159. vuint32_t R;
  3160. struct {
  3161. vuint32_t CFS0:2;
  3162. vuint32_t CFS1:2;
  3163. vuint32_t CFS2:2;
  3164. vuint32_t CFS3:2;
  3165. vuint32_t CFS4:2;
  3166. vuint32_t CFS5:2;
  3167. vuint32_t:5;
  3168. vuint32_t LCFTCB0:4;
  3169. vuint32_t TC_LCFTCB0:11;
  3170. } B;
  3171. } CFSSR0; /* CFIFO Status Register 0 */
  3172. union {
  3173. vuint32_t R;
  3174. struct {
  3175. vuint32_t CFS0:2;
  3176. vuint32_t CFS1:2;
  3177. vuint32_t CFS2:2;
  3178. vuint32_t CFS3:2;
  3179. vuint32_t CFS4:2;
  3180. vuint32_t CFS5:2;
  3181. vuint32_t:5;
  3182. vuint32_t LCFTCB1:4;
  3183. vuint32_t TC_LCFTCB1:11;
  3184. } B;
  3185. } CFSSR1; /* CFIFO Status Register 1 */
  3186. union {
  3187. vuint32_t R;
  3188. struct {
  3189. vuint32_t CFS0:2;
  3190. vuint32_t CFS1:2;
  3191. vuint32_t CFS2:2;
  3192. vuint32_t CFS3:2;
  3193. vuint32_t CFS4:2;
  3194. vuint32_t CFS5:2;
  3195. vuint32_t:4;
  3196. vuint32_t ECBNI:1;
  3197. vuint32_t LCFTSSI:4;
  3198. vuint32_t TC_LCFTSSI:11;
  3199. } B;
  3200. } CFSSR2; /* CFIFO Status Register 2 */
  3201. union {
  3202. vuint32_t R;
  3203. struct {
  3204. vuint32_t CFS0:2;
  3205. vuint32_t CFS1:2;
  3206. vuint32_t CFS2:2;
  3207. vuint32_t CFS3:2;
  3208. vuint32_t CFS4:2;
  3209. vuint32_t CFS5:2;
  3210. vuint32_t:20;
  3211. } B;
  3212. } CFSR;
  3213. uint32_t eqadc_reserved11;
  3214. union {
  3215. vuint32_t R;
  3216. struct {
  3217. vuint32_t:21;
  3218. vuint32_t MDT:3;
  3219. vuint32_t:4;
  3220. vuint32_t BR:4;
  3221. } B;
  3222. } SSICR; /* SSI Control Register */
  3223. union {
  3224. vuint32_t R;
  3225. struct {
  3226. vuint32_t RDV:1;
  3227. vuint32_t:5;
  3228. vuint32_t RDATA:26;
  3229. } B;
  3230. } SSIRDR; /* SSI Recieve Data Register @ baseaddress + 0xB8 */
  3231. uint32_t eqadc_reserved11b[5];
  3232. union {
  3233. vuint32_t R;
  3234. struct {
  3235. vuint32_t:16;
  3236. vuint32_t REDBS2:4;
  3237. vuint32_t SRV2:4;
  3238. vuint32_t REDBS1:4;
  3239. vuint32_t SRV1:4;
  3240. } B;
  3241. } REDLCCR; /* STAC Bus Clent Configuration Register @ baseaddress + 0xD0 */
  3242. uint32_t eqadc_reserved12[11];
  3243. struct {
  3244. union {
  3245. vuint32_t R;
  3246. struct {
  3247. vuint32_t:32;
  3248. } B;
  3249. } R[4];
  3250. union {
  3251. vuint32_t R;
  3252. struct {
  3253. vuint32_t:32;
  3254. } B;
  3255. } EDATA[4];
  3256. uint32_t eqadc_reserved13[8];
  3257. } CF[6];
  3258. uint32_t eqadc_reserved14[32];
  3259. struct {
  3260. union {
  3261. vuint32_t R;
  3262. struct {
  3263. vuint32_t:32;
  3264. } B;
  3265. } R[4];
  3266. uint32_t eqadc_reserved15[12];
  3267. } RF[6];
  3268. };
  3269. /****************************************************************************/
  3270. /* MODULE : Decimation Filter (DECFIL) */
  3271. /****************************************************************************/
  3272. struct DECFIL_tag {
  3273. union {
  3274. vuint32_t R;
  3275. struct {
  3276. vuint32_t MDIS:1;
  3277. vuint32_t FREN:1;
  3278. vuint32_t:1;
  3279. vuint32_t FRZ:1;
  3280. vuint32_t SRES:1;
  3281. vuint32_t CASCD:2;
  3282. vuint32_t IDEN:1;
  3283. vuint32_t ODEN:1;
  3284. vuint32_t ERREN:1;
  3285. vuint32_t:1;
  3286. vuint32_t FTYPE:2;
  3287. vuint32_t:1;
  3288. vuint32_t SCAL:2;
  3289. vuint32_t IDIS:1;
  3290. vuint32_t SAT:1;
  3291. vuint32_t ISEL:1;
  3292. vuint32_t MIXM:1;
  3293. vuint32_t DEC_RATE:4;
  3294. vuint32_t SDIE:1;
  3295. vuint32_t DSEL:1;
  3296. vuint32_t IBIE:1;
  3297. vuint32_t OBIE:1;
  3298. vuint32_t EDME:1;
  3299. vuint32_t TORE:1;
  3300. vuint32_t TMODE:2;
  3301. } B;
  3302. } MCR; /* Configuration Register @baseaddress + 0x00 */
  3303. union {
  3304. vuint32_t R;
  3305. struct {
  3306. vuint32_t BSY:1;
  3307. vuint32_t:1;
  3308. vuint32_t DEC_COUNTER:4;
  3309. vuint32_t IDFC:1;
  3310. vuint32_t ODFC:1;
  3311. vuint32_t:1;
  3312. vuint32_t IBIC:1;
  3313. vuint32_t OBIC:1;
  3314. vuint32_t:1;
  3315. vuint32_t DIVRC:1;
  3316. vuint32_t OVFC:1;
  3317. vuint32_t OVRC:1;
  3318. vuint32_t IVRC:1;
  3319. vuint32_t:6;
  3320. vuint32_t IDF:1;
  3321. vuint32_t ODF:1;
  3322. vuint32_t:1;
  3323. vuint32_t IBIF:1;
  3324. vuint32_t OBIF:1;
  3325. vuint32_t:1;
  3326. vuint32_t DIVR:1;
  3327. vuint32_t OVF:1;
  3328. vuint32_t OVR:1;
  3329. vuint32_t IVR:1;
  3330. } B;
  3331. } MSR; /* Status Register @baseaddress + 0x04 */
  3332. union {
  3333. vuint32_t R;
  3334. struct {
  3335. vuint32_t SDMAE:1;
  3336. vuint32_t SSIG:1;
  3337. vuint32_t SSAT:1;
  3338. vuint32_t SCSAT:1;
  3339. vuint32_t:10;
  3340. vuint32_t SRQ:1;
  3341. vuint32_t SZRO:1;
  3342. vuint32_t SISEL:1;
  3343. vuint32_t:1;
  3344. vuint32_t SZROSEL:2;
  3345. vuint32_t:2;
  3346. vuint32_t SHLTSEL:2;
  3347. vuint32_t:1;
  3348. vuint32_t SRQSEL:3;
  3349. vuint32_t:2;
  3350. vuint32_t SENSEL:2;
  3351. } B;
  3352. } MXCR; /* Extended Config Register @baseaddress + 0x8 */
  3353. union {
  3354. vuint32_t R;
  3355. struct {
  3356. vuint32_t:7;
  3357. vuint32_t SDFC:1;
  3358. vuint32_t:2;
  3359. vuint32_t SSEC:1;
  3360. vuint32_t SCEC:1;
  3361. vuint32_t:1;
  3362. vuint32_t SSOVFC:1;
  3363. vuint32_t SCOVFC:1;
  3364. vuint32_t SVRC:1;
  3365. vuint32_t:7;
  3366. vuint32_t SDF:1;
  3367. vuint32_t:2;
  3368. vuint32_t SSE:1;
  3369. vuint32_t SCE:1;
  3370. vuint32_t:1;
  3371. vuint32_t SSOVF:1;
  3372. vuint32_t SCOVF:1;
  3373. vuint32_t SVR:1;
  3374. } B;
  3375. } MXSR; /* Extended Status Register @baseaddress + 0xC */
  3376. union {
  3377. vuint32_t R;
  3378. struct {
  3379. vuint32_t:4;
  3380. vuint32_t INTAG:4;
  3381. vuint32_t:6;
  3382. vuint32_t PREFILL:1;
  3383. vuint32_t FLUSH:1;
  3384. vuint32_t INPBUF:16;
  3385. } B;
  3386. } IB; /* Interface Input Buffer @baseaddress + 0x10 */
  3387. union {
  3388. vuint32_t R;
  3389. struct {
  3390. vuint32_t:12;
  3391. vuint32_t OUTTAG:4;
  3392. vuint32_t OUTBUF:16;
  3393. } B;
  3394. } OB; /* Interface Output Buffer @baseaddress + 0x14 */
  3395. uint32_t decfil_reserved0018[2]; /* 0x0018 - 0x001F */
  3396. union {
  3397. vuint32_t R;
  3398. struct {
  3399. vuint32_t:8;
  3400. vuint32_t COEF:24;
  3401. } B;
  3402. } COEF[9]; /* Filter Coefficient Registers @baseaddress + 0x20 - 0x40 */
  3403. uint32_t decfil_reserved0044[13]; /* 0x0044 - 0x0077 */
  3404. union {
  3405. vuint32_t R;
  3406. struct {
  3407. vuint32_t:8;
  3408. vuint32_t TAP:24;
  3409. } B;
  3410. } TAP[8]; /* Filter TAP Registers @baseaddress + 0x78 - 0x94 */
  3411. uint32_t decfil_reserved00D0[14]; /* 0x00D0 - 0x00D3 */
  3412. /* 0x0D0 */
  3413. union {
  3414. vuint16_t R;
  3415. struct {
  3416. vuint32_t:16;
  3417. vuint32_t SAMP_DATA:16;
  3418. } B;
  3419. } EDID; /* Filter EDID Registers @baseaddress + 0xD0 */
  3420. uint32_t decfil_reserved00D4[3]; /* 0x00D4 - 0x00DF */
  3421. union {
  3422. vuint32_t R;
  3423. struct {
  3424. vuint32_t SUM_VALUE:1;
  3425. } B;
  3426. } FINTVAL; /* Final Integr. Value Register @baseaddress + 0xE0 */
  3427. union {
  3428. vuint32_t R;
  3429. struct {
  3430. vuint32_t COUNT:1;
  3431. } B;
  3432. } FINTCNT; /* Final Integr. Count Register @baseaddress + 0xE0 */
  3433. union {
  3434. vuint32_t R;
  3435. struct {
  3436. vuint32_t SUM_VALUE:1;
  3437. } B;
  3438. } CINTVAL; /* Current Integr. Value Register @baseaddress + 0xE0 */
  3439. union {
  3440. vuint32_t R;
  3441. struct {
  3442. vuint32_t COUNT:1;
  3443. } B;
  3444. } CINTCNT; /* Current Integr. Count Register @baseaddress + 0xE0 */
  3445. };
  3446. /****************************************************************************/
  3447. /* MODULE : CRC */
  3448. /****************************************************************************/
  3449. struct CRC_tag {
  3450. union {
  3451. vuint32_t R;
  3452. struct {
  3453. vuint32_t:29;
  3454. vuint32_t POLY:1;
  3455. vuint32_t SWAP:1;
  3456. vuint32_t INV:1;
  3457. } B;
  3458. } CFG; /* Configuration Register @baseaddress + 0x00 */
  3459. union {
  3460. vuint32_t R;
  3461. struct{
  3462. vuint32_t INP:32;
  3463. } B;
  3464. } INP; /* Input Register @baseaddress + 0x04 */
  3465. union {
  3466. vuint32_t R;
  3467. struct{
  3468. vuint32_t CSTAT:32;
  3469. } B;
  3470. } CSTAT; /* Current Status Register @baseaddress + 0x08 */
  3471. union {
  3472. vuint32_t R;
  3473. struct {
  3474. vuint32_t OUTP:32;
  3475. } B;
  3476. } OUTP; /* Output Register @baseaddress + 0x0C */
  3477. };
  3478. /****************************************************************************/
  3479. /* MODULE : DSPI */
  3480. /****************************************************************************/
  3481. struct DSPI_tag {
  3482. union {
  3483. vuint32_t R;
  3484. struct {
  3485. vuint32_t MSTR:1;
  3486. vuint32_t CONT_SCKE:1;
  3487. vuint32_t DCONF:2;
  3488. vuint32_t FRZ:1;
  3489. vuint32_t MTFE:1;
  3490. vuint32_t PCSSE:1;
  3491. vuint32_t ROOE:1;
  3492. vuint32_t PCSIS7:1;
  3493. vuint32_t PCSIS6:1;
  3494. vuint32_t PCSIS5:1;
  3495. vuint32_t PCSIS4:1;
  3496. vuint32_t PCSIS3:1;
  3497. vuint32_t PCSIS2:1;
  3498. vuint32_t PCSIS1:1;
  3499. vuint32_t PCSIS0:1;
  3500. vuint32_t DOZE:1;
  3501. vuint32_t MDIS:1;
  3502. vuint32_t DIS_TXF:1;
  3503. vuint32_t DIS_RXF:1;
  3504. vuint32_t CLR_TXF:1;
  3505. vuint32_t CLR_RXF:1;
  3506. vuint32_t SMPL_PT:2;
  3507. vuint32_t:6;
  3508. vuint32_t PES:1;
  3509. vuint32_t HALT:1;
  3510. } B;
  3511. } MCR; /* Module Configuration Register @baseaddress + 0x00 */
  3512. uint32_t dspi_reserved0004; /* 0x0004-0x008 */
  3513. union {
  3514. vuint32_t R;
  3515. struct {
  3516. vuint32_t TCNT:16;
  3517. vuint32_t:16;
  3518. } B;
  3519. } TCR; /* DSPI Transfer Count Register @baseaddress + 0x08 */
  3520. union {
  3521. vuint32_t R;
  3522. struct {
  3523. vuint32_t DBR:1;
  3524. vuint32_t FMSZ:4;
  3525. vuint32_t CPOL:1;
  3526. vuint32_t CPHA:1;
  3527. vuint32_t LSBFE:1;
  3528. vuint32_t PCSSCK:2;
  3529. vuint32_t PASC:2;
  3530. vuint32_t PDT:2;
  3531. vuint32_t PBR:2;
  3532. vuint32_t CSSCK:4;
  3533. vuint32_t ASC:4;
  3534. vuint32_t DT:4;
  3535. vuint32_t BR:4;
  3536. } B;
  3537. } CTAR[8]; /* Clock and Transfer Attributes Registers @baseaddress + 0x0C - 0x28 */
  3538. union {
  3539. vuint32_t R;
  3540. struct {
  3541. vuint32_t TCF:1;
  3542. vuint32_t TXRXS:1;
  3543. vuint32_t:1;
  3544. vuint32_t EOQF:1;
  3545. vuint32_t TFUF:1;
  3546. vuint32_t:1;
  3547. vuint32_t TFFF:1;
  3548. vuint32_t:2;
  3549. vuint32_t DPEF:1;
  3550. vuint32_t SPEF:1;
  3551. vuint32_t DDIF:1;
  3552. vuint32_t RFOF:1;
  3553. vuint32_t:1;
  3554. vuint32_t RFDF:1;
  3555. vuint32_t:1;
  3556. vuint32_t TXCTR:4;
  3557. vuint32_t TXNXTPTR:4;
  3558. vuint32_t RXCTR:4;
  3559. vuint32_t POPNXTPTR:4;
  3560. } B;
  3561. } SR; /* Status Register @baseaddress + 0x2C */
  3562. union {
  3563. vuint32_t R;
  3564. struct {
  3565. vuint32_t TCFRE:1;
  3566. vuint32_t:2;
  3567. vuint32_t EOQFRE:1;
  3568. vuint32_t TFUFRE:1;
  3569. vuint32_t:1;
  3570. vuint32_t TFFFRE:1;
  3571. vuint32_t TFFFDIRS:1;
  3572. vuint32_t:1;
  3573. vuint32_t DPEFRE:1;
  3574. vuint32_t SPEFRE:1;
  3575. vuint32_t DDIFRE:1;
  3576. vuint32_t RFOFRE:1;
  3577. vuint32_t:1;
  3578. vuint32_t RFDFRE:1;
  3579. vuint32_t RFDFDIRS:1;
  3580. vuint32_t:16;
  3581. } B;
  3582. } RSER; /* DMA/Interrupt Request Select and Enable Register @baseaddress + 0x30 */
  3583. union {
  3584. vuint32_t R;
  3585. struct {
  3586. vuint32_t CONT:1;
  3587. vuint32_t CTAS:3;
  3588. vuint32_t EOQ:1;
  3589. vuint32_t CTCNT:1;
  3590. vuint32_t PE:1;
  3591. vuint32_t PP:1;
  3592. vuint32_t PCS7:1; /* new in MPC563xM */
  3593. vuint32_t PCS6:1; /* new in MPC563xM */
  3594. vuint32_t PCS5:1;
  3595. vuint32_t PCS4:1;
  3596. vuint32_t PCS3:1;
  3597. vuint32_t PCS2:1;
  3598. vuint32_t PCS1:1;
  3599. vuint32_t PCS0:1;
  3600. vuint32_t TXDATA:16;
  3601. } B;
  3602. } PUSHR; /* PUSH TX FIFO Register @baseaddress + 0x34 */
  3603. union {
  3604. vuint32_t R;
  3605. struct {
  3606. vuint32_t:16;
  3607. vuint32_t RXDATA:16;
  3608. } B;
  3609. } POPR; /* POP RX FIFO Register @baseaddress + 0x38 */
  3610. union {
  3611. vuint32_t R;
  3612. struct {
  3613. vuint32_t TXCMD:16;
  3614. vuint32_t TXDATA:16;
  3615. } B;
  3616. } TXFR[4]; /* Transmit FIFO Registers @baseaddress + 0x3c - 0x78 */
  3617. vuint32_t DSPI_reserved_004C[12]; /* 0x004C-0x0078 */
  3618. union {
  3619. vuint32_t R;
  3620. struct {
  3621. vuint32_t:16;
  3622. vuint32_t RXDATA:16;
  3623. } B;
  3624. } RXFR[4]; /* Transmit FIFO Registers @baseaddress + 0x7c - 0xB8 */
  3625. vuint32_t DSPI_reserved_008C[12]; /* 0x008C-0x00B8 */
  3626. union {
  3627. vuint32_t R;
  3628. struct {
  3629. vuint32_t MTOE:1;
  3630. vuint32_t FMSZ4:1;
  3631. vuint32_t MTOCNT:6;
  3632. vuint32_t:3;
  3633. vuint32_t TSBC:1;
  3634. vuint32_t TXSS:1;
  3635. vuint32_t TPOL:1;
  3636. vuint32_t TRRE:1;
  3637. vuint32_t CID:1;
  3638. vuint32_t DCONT:1;
  3639. vuint32_t DSICTAS:3;
  3640. vuint32_t:4;
  3641. vuint32_t DPCS7:1;
  3642. vuint32_t DPCS6:1;
  3643. vuint32_t DPCS5:1;
  3644. vuint32_t DPCS4:1;
  3645. vuint32_t DPCS3:1;
  3646. vuint32_t DPCS2:1;
  3647. vuint32_t DPCS1:1;
  3648. vuint32_t DPCS0:1;
  3649. } B;
  3650. } DSICR; /* DSI Configuration Register @baseaddress + 0xBC */
  3651. union {
  3652. vuint32_t R;
  3653. struct {
  3654. vuint32_t SER_DATA:32;
  3655. } B;
  3656. } SDR; /* DSI Serialization Data Register @baseaddress + 0xC0 */
  3657. union {
  3658. vuint32_t R;
  3659. struct {
  3660. vuint32_t ASER_DATA:32;
  3661. } B;
  3662. } ASDR; /* DSI Alternate Serialization Data Register @baseaddress + 0xC4 */
  3663. union {
  3664. vuint32_t R;
  3665. struct {
  3666. vuint32_t COMP_DATA:32;
  3667. } B;
  3668. } COMPR; /* DSI Transmit Comparison Register @baseaddress + 0xC8 */
  3669. union {
  3670. vuint32_t R;
  3671. struct {
  3672. vuint32_t DESER_DATA:32;
  3673. } B;
  3674. } DDR; /* DSI deserialization Data Register @baseaddress + 0xCC */
  3675. union {
  3676. vuint32_t R;
  3677. struct {
  3678. vuint32_t:3;
  3679. vuint32_t TSBCNT:5;
  3680. vuint32_t:16;
  3681. vuint32_t DPCS1_7:1;
  3682. vuint32_t DPCS1_6:1;
  3683. vuint32_t DPCS1_5:1;
  3684. vuint32_t DPCS1_4:1;
  3685. vuint32_t DPCS1_3:1;
  3686. vuint32_t DPCS1_2:1;
  3687. vuint32_t DPCS1_1:1;
  3688. vuint32_t DPCS1_0:1;
  3689. } B;
  3690. } DSICR1; /* DSI Configuration Register 1 @baseaddress + 0xD0 */
  3691. };
  3692. /****************************************************************************/
  3693. /* MODULE : eSCI */
  3694. /****************************************************************************/
  3695. struct ESCI_tag {
  3696. union {
  3697. vuint32_t R;
  3698. struct {
  3699. vuint32_t:3;
  3700. vuint32_t SBR:13;
  3701. vuint32_t LOOPS:1;
  3702. vuint32_t:1;
  3703. vuint32_t RSRC:1;
  3704. vuint32_t M:1;
  3705. vuint32_t WAKE:1;
  3706. vuint32_t ILT:1;
  3707. vuint32_t PE:1;
  3708. vuint32_t PT:1;
  3709. vuint32_t TIE:1;
  3710. vuint32_t TCIE:1;
  3711. vuint32_t RIE:1;
  3712. vuint32_t ILIE:1;
  3713. vuint32_t TE:1;
  3714. vuint32_t RE:1;
  3715. vuint32_t RWU:1;
  3716. vuint32_t SBK:1;
  3717. } B;
  3718. } CR1; /* Control Register 1 @baseaddress + 0x00 */
  3719. union {
  3720. vuint16_t R;
  3721. struct {
  3722. vuint16_t MDIS:1;
  3723. vuint16_t FBR:1;
  3724. vuint16_t BSTP:1;
  3725. vuint16_t IEBERR:1;
  3726. vuint16_t RXDMA:1;
  3727. vuint16_t TXDMA:1;
  3728. vuint16_t BRK13:1;
  3729. vuint16_t TXDIR:1;
  3730. vuint16_t BESM13:1;
  3731. vuint16_t SBSTP:1;
  3732. vuint16_t RXPOL:1;
  3733. vuint16_t PMSK:1;
  3734. vuint16_t ORIE:1;
  3735. vuint16_t NFIE:1;
  3736. vuint16_t FEIE:1;
  3737. vuint16_t PFIE:1;
  3738. } B;
  3739. } CR2; /* Control Register 2 @baseaddress + 0x04 */
  3740. union {
  3741. vuint16_t R;
  3742. struct {
  3743. vuint16_t R8:1;
  3744. vuint16_t T8:1;
  3745. vuint16_t ERR:1;
  3746. vuint16_t:1;
  3747. vuint16_t R:4;
  3748. vuint8_t D;
  3749. } B;
  3750. } DR; /* Data Register @baseaddress + 0x06 */
  3751. union {
  3752. vuint32_t R;
  3753. struct {
  3754. vuint32_t TDRE:1;
  3755. vuint32_t TC:1;
  3756. vuint32_t RDRF:1;
  3757. vuint32_t IDLE:1;
  3758. vuint32_t OR:1;
  3759. vuint32_t NF:1;
  3760. vuint32_t FE:1;
  3761. vuint32_t PF:1;
  3762. vuint32_t:3;
  3763. vuint32_t BERR:1;
  3764. vuint32_t:2;
  3765. vuint32_t TACT:1;
  3766. vuint32_t RAF:1;
  3767. vuint32_t RXRDY:1;
  3768. vuint32_t TXRDY:1;
  3769. vuint32_t LWAKE:1;
  3770. vuint32_t STO:1;
  3771. vuint32_t PBERR:1;
  3772. vuint32_t CERR:1;
  3773. vuint32_t CKERR:1;
  3774. vuint32_t FRC:1;
  3775. vuint32_t:6;
  3776. vuint32_t UREQ:1;
  3777. vuint32_t OVFL:1;
  3778. } B;
  3779. } SR; /* Status Register @baseaddress + 0x08 */
  3780. union {
  3781. vuint32_t R;
  3782. struct {
  3783. vuint32_t LRES:1;
  3784. vuint32_t WU:1;
  3785. vuint32_t WUD0:1;
  3786. vuint32_t WUD1:1;
  3787. vuint32_t LDBG:1;
  3788. vuint32_t DSF:1;
  3789. vuint32_t PRTY:1;
  3790. vuint32_t LIN:1;
  3791. vuint32_t RXIE:1;
  3792. vuint32_t TXIE:1;
  3793. vuint32_t WUIE:1;
  3794. vuint32_t STIE:1;
  3795. vuint32_t PBIE:1;
  3796. vuint32_t CIE:1;
  3797. vuint32_t CKIE:1;
  3798. vuint32_t FCIE:1;
  3799. vuint32_t:6;
  3800. vuint32_t UQIE:1;
  3801. vuint32_t OFIE:1;
  3802. vuint32_t:8;
  3803. } B;
  3804. } LCR; /* LIN Control Register @baseaddress + 0x0C */
  3805. union {
  3806. vuint32_t R;
  3807. } LTR; /* LIN Transmit Register @baseaddress + 0x10 */
  3808. union {
  3809. vuint32_t R;
  3810. } LRR; /* LIN Recieve Register @baseaddress + 0x14 */
  3811. union {
  3812. vuint32_t R;
  3813. struct {
  3814. vuint32_t P:16;
  3815. vuint32_t:3;
  3816. vuint32_t SYNM:1;
  3817. vuint32_t EROE:1;
  3818. vuint32_t ERFE:1;
  3819. vuint32_t ERPE:1;
  3820. vuint32_t M2:1;
  3821. vuint32_t:8;
  3822. } B;
  3823. } LPR; /* LIN CRC Polynom Register @baseaddress + 0x18 */
  3824. };
  3825. /****************************************************************************/
  3826. /* MODULE : eSCI */
  3827. /****************************************************************************/
  3828. struct ESCI_12_13_bit_tag {
  3829. union {
  3830. vuint16_t R;
  3831. struct {
  3832. vuint16_t R8:1;
  3833. vuint16_t T8:1;
  3834. vuint16_t ERR:1;
  3835. vuint16_t:1;
  3836. vuint16_t D:12;
  3837. } B;
  3838. } DR; /* Data Register */
  3839. };
  3840. /****************************************************************************/
  3841. /* MODULE : FlexCAN */
  3842. /****************************************************************************/
  3843. struct FLEXCAN_BUF_t {
  3844. union {
  3845. vuint32_t R;
  3846. struct {
  3847. vuint32_t:4;
  3848. vuint32_t CODE:4;
  3849. vuint32_t:1;
  3850. vuint32_t SRR:1;
  3851. vuint32_t IDE:1;
  3852. vuint32_t RTR:1;
  3853. vuint32_t LENGTH:4;
  3854. vuint32_t TIMESTAMP:16;
  3855. } B;
  3856. } CS;
  3857. union {
  3858. vuint32_t R;
  3859. struct {
  3860. vuint32_t PRIO:3;
  3861. vuint32_t STD_ID:11;
  3862. vuint32_t EXT_ID:18;
  3863. } B;
  3864. } ID;
  3865. union {
  3866. /*vuint8_t B[8]; *//* Data buffer in Bytes (8 bits) *//* Not used in MPC563xM */
  3867. /*vuint16_t H[4]; *//* Data buffer in Half-words (16 bits) *//* Not used in MPC563xM */
  3868. vuint32_t W[2]; /* Data buffer in words (32 bits) */
  3869. /*vuint32_t R[2]; *//* Data buffer in words (32 bits) *//* Not used in MPC563xM */
  3870. } DATA;
  3871. }; /* end of FLEXCAN_BUF_t */
  3872. struct FLEXCAN_RXFIFO_t {
  3873. union {
  3874. vuint32_t R;
  3875. struct {
  3876. vuint32_t:9;
  3877. vuint32_t SRR:1;
  3878. vuint32_t IDE:1;
  3879. vuint32_t RTR:1;
  3880. vuint32_t LENGTH:4;
  3881. vuint32_t TIMESTAMP:16;
  3882. } B;
  3883. } CS;
  3884. union {
  3885. vuint32_t R;
  3886. struct {
  3887. vuint32_t:3;
  3888. vuint32_t STD_ID:11;
  3889. vuint32_t EXT_ID:18;
  3890. } B;
  3891. } ID;
  3892. union {
  3893. /*vuint8_t B[8]; *//* Data buffer in Bytes (8 bits) *//* Not used in MPC563xM */
  3894. /*vuint16_t H[4]; *//* Data buffer in Half-words (16 bits) *//* Not used in MPC563xM */
  3895. vuint32_t W[2]; /* Data buffer in words (32 bits) */
  3896. /*vuint32_t R[2]; *//* Data buffer in words (32 bits) *//* Not used in MPC563xM */
  3897. } DATA;
  3898. uint32_t FLEXCAN_RXFIFO_reserved[20]; /* {0x00E0-0x0090}/0x4 = 0x14 */
  3899. union {
  3900. vuint32_t R;
  3901. } IDTABLE[8];
  3902. }; /* end of FLEXCAN_RXFIFO_t */
  3903. struct FLEXCAN2_tag {
  3904. union {
  3905. vuint32_t R;
  3906. struct {
  3907. vuint32_t MDIS:1;
  3908. vuint32_t FRZ:1;
  3909. vuint32_t FEN:1;
  3910. vuint32_t HALT:1;
  3911. vuint32_t NOTRDY:1;
  3912. vuint32_t WAK_MSK:1;
  3913. vuint32_t SOFTRST:1;
  3914. vuint32_t FRZACK:1;
  3915. vuint32_t SUPV:1;
  3916. vuint32_t SLF_WAK:1;
  3917. vuint32_t WRNEN:1;
  3918. vuint32_t MDISACK:1;
  3919. vuint32_t WAK_SRC:1;
  3920. vuint32_t DOZE:1;
  3921. vuint32_t SRXDIS:1;
  3922. vuint32_t MBFEN:1;
  3923. vuint32_t:2;
  3924. vuint32_t LPRIO_EN:1;
  3925. vuint32_t AEN:1;
  3926. vuint32_t:2;
  3927. vuint32_t IDAM:2;
  3928. vuint32_t:2;
  3929. vuint32_t MAXMB:6;
  3930. } B;
  3931. } MCR; /* Module Configuration Register @baseaddress + 0x00 */
  3932. union {
  3933. vuint32_t R;
  3934. struct {
  3935. vuint32_t PRESDIV:8;
  3936. vuint32_t RJW:2;
  3937. vuint32_t PSEG1:3;
  3938. vuint32_t PSEG2:3;
  3939. vuint32_t BOFFMSK:1;
  3940. vuint32_t ERRMSK:1;
  3941. vuint32_t CLKSRC:1;
  3942. vuint32_t LPB:1;
  3943. vuint32_t TWRNMSK:1;
  3944. vuint32_t RWRNMSK:1;
  3945. vuint32_t:2;
  3946. vuint32_t SMP:1;
  3947. vuint32_t BOFFREC:1;
  3948. vuint32_t TSYN:1;
  3949. vuint32_t LBUF:1;
  3950. vuint32_t LOM:1;
  3951. vuint32_t PROPSEG:3;
  3952. } B; /* Control Register @baseaddress + 0x04 */
  3953. } CR;
  3954. union {
  3955. vuint32_t R;
  3956. struct {
  3957. vuint32_t:16;
  3958. vuint32_t TIMER:16;
  3959. } B;
  3960. } TIMER; /* Free Running Timer @baseaddress + 0x08 */
  3961. int32_t FLEXCAN_reserved00;
  3962. union {
  3963. vuint32_t R;
  3964. struct {
  3965. vuint32_t:3;
  3966. vuint32_t MI:29;
  3967. } B;
  3968. } RXGMASK; /* RX Global Mask @baseaddress + 0x0C */
  3969. union {
  3970. vuint32_t R;
  3971. struct {
  3972. vuint32_t:3;
  3973. vuint32_t MI:29;
  3974. } B;
  3975. } RX14MASK; /* RX 14 Mask @baseaddress + 0x10 */
  3976. union {
  3977. vuint32_t R;
  3978. struct {
  3979. vuint32_t:3;
  3980. vuint32_t MI:29;
  3981. } B;
  3982. } RX15MASK; /* RX 15 Mask @baseaddress + 0x14 */
  3983. union {
  3984. vuint32_t R;
  3985. struct {
  3986. vuint32_t:16;
  3987. vuint32_t RXECNT:8;
  3988. vuint32_t TXECNT:8;
  3989. } B;
  3990. } ECR; /* Error Counter Register @baseaddress + 0x18 */
  3991. union {
  3992. vuint32_t R;
  3993. struct {
  3994. vuint32_t:14;
  3995. vuint32_t TWRNINT:1;
  3996. vuint32_t RWRNINT:1;
  3997. vuint32_t BIT1ERR:1;
  3998. vuint32_t BIT0ERR:1;
  3999. vuint32_t ACKERR:1;
  4000. vuint32_t CRCERR:1;
  4001. vuint32_t FRMERR:1;
  4002. vuint32_t STFERR:1;
  4003. vuint32_t TXWRN:1;
  4004. vuint32_t RXWRN:1;
  4005. vuint32_t IDLE:1;
  4006. vuint32_t TXRX:1;
  4007. vuint32_t FLTCONF:2;
  4008. vuint32_t:1;
  4009. vuint32_t BOFFINT:1;
  4010. vuint32_t ERRINT:1;
  4011. vuint32_t WAK_INT:1;
  4012. } B;
  4013. } ESR; /* Error and Status Register @baseaddress + 0x1C */
  4014. union {
  4015. vuint32_t R;
  4016. struct {
  4017. vuint32_t BUF63M:1;
  4018. vuint32_t BUF62M:1;
  4019. vuint32_t BUF61M:1;
  4020. vuint32_t BUF60M:1;
  4021. vuint32_t BUF59M:1;
  4022. vuint32_t BUF58M:1;
  4023. vuint32_t BUF57M:1;
  4024. vuint32_t BUF56M:1;
  4025. vuint32_t BUF55M:1;
  4026. vuint32_t BUF54M:1;
  4027. vuint32_t BUF53M:1;
  4028. vuint32_t BUF52M:1;
  4029. vuint32_t BUF51M:1;
  4030. vuint32_t BUF50M:1;
  4031. vuint32_t BUF49M:1;
  4032. vuint32_t BUF48M:1;
  4033. vuint32_t BUF47M:1;
  4034. vuint32_t BUF46M:1;
  4035. vuint32_t BUF45M:1;
  4036. vuint32_t BUF44M:1;
  4037. vuint32_t BUF43M:1;
  4038. vuint32_t BUF42M:1;
  4039. vuint32_t BUF41M:1;
  4040. vuint32_t BUF40M:1;
  4041. vuint32_t BUF39M:1;
  4042. vuint32_t BUF38M:1;
  4043. vuint32_t BUF37M:1;
  4044. vuint32_t BUF36M:1;
  4045. vuint32_t BUF35M:1;
  4046. vuint32_t BUF34M:1;
  4047. vuint32_t BUF33M:1;
  4048. vuint32_t BUF32M:1;
  4049. } B; /* Interruput Masks Register @baseaddress + 0x20 */
  4050. } IMRH;
  4051. union {
  4052. vuint32_t R;
  4053. struct {
  4054. vuint32_t BUF31M:1;
  4055. vuint32_t BUF30M:1;
  4056. vuint32_t BUF29M:1;
  4057. vuint32_t BUF28M:1;
  4058. vuint32_t BUF27M:1;
  4059. vuint32_t BUF26M:1;
  4060. vuint32_t BUF25M:1;
  4061. vuint32_t BUF24M:1;
  4062. vuint32_t BUF23M:1;
  4063. vuint32_t BUF22M:1;
  4064. vuint32_t BUF21M:1;
  4065. vuint32_t BUF20M:1;
  4066. vuint32_t BUF19M:1;
  4067. vuint32_t BUF18M:1;
  4068. vuint32_t BUF17M:1;
  4069. vuint32_t BUF16M:1;
  4070. vuint32_t BUF15M:1;
  4071. vuint32_t BUF14M:1;
  4072. vuint32_t BUF13M:1;
  4073. vuint32_t BUF12M:1;
  4074. vuint32_t BUF11M:1;
  4075. vuint32_t BUF10M:1;
  4076. vuint32_t BUF09M:1;
  4077. vuint32_t BUF08M:1;
  4078. vuint32_t BUF07M:1;
  4079. vuint32_t BUF06M:1;
  4080. vuint32_t BUF05M:1;
  4081. vuint32_t BUF04M:1;
  4082. vuint32_t BUF03M:1;
  4083. vuint32_t BUF02M:1;
  4084. vuint32_t BUF01M:1;
  4085. vuint32_t BUF00M:1;
  4086. } B; /* Interruput Masks Register @baseaddress + 0x24 */
  4087. } IMRL;
  4088. union {
  4089. vuint32_t R;
  4090. struct {
  4091. vuint32_t BUF63I:1;
  4092. vuint32_t BUF62I:1;
  4093. vuint32_t BUF61I:1;
  4094. vuint32_t BUF60I:1;
  4095. vuint32_t BUF59I:1;
  4096. vuint32_t BUF58I:1;
  4097. vuint32_t BUF57I:1;
  4098. vuint32_t BUF56I:1;
  4099. vuint32_t BUF55I:1;
  4100. vuint32_t BUF54I:1;
  4101. vuint32_t BUF53I:1;
  4102. vuint32_t BUF52I:1;
  4103. vuint32_t BUF51I:1;
  4104. vuint32_t BUF50I:1;
  4105. vuint32_t BUF49I:1;
  4106. vuint32_t BUF48I:1;
  4107. vuint32_t BUF47I:1;
  4108. vuint32_t BUF46I:1;
  4109. vuint32_t BUF45I:1;
  4110. vuint32_t BUF44I:1;
  4111. vuint32_t BUF43I:1;
  4112. vuint32_t BUF42I:1;
  4113. vuint32_t BUF41I:1;
  4114. vuint32_t BUF40I:1;
  4115. vuint32_t BUF39I:1;
  4116. vuint32_t BUF38I:1;
  4117. vuint32_t BUF37I:1;
  4118. vuint32_t BUF36I:1;
  4119. vuint32_t BUF35I:1;
  4120. vuint32_t BUF34I:1;
  4121. vuint32_t BUF33I:1;
  4122. vuint32_t BUF32I:1;
  4123. } B; /* Interruput Flag Register @baseaddress + 0x28 */
  4124. } IFRH;
  4125. union {
  4126. vuint32_t R;
  4127. struct {
  4128. vuint32_t BUF31I:1;
  4129. vuint32_t BUF30I:1;
  4130. vuint32_t BUF29I:1;
  4131. vuint32_t BUF28I:1;
  4132. vuint32_t BUF27I:1;
  4133. vuint32_t BUF26I:1;
  4134. vuint32_t BUF25I:1;
  4135. vuint32_t BUF24I:1;
  4136. vuint32_t BUF23I:1;
  4137. vuint32_t BUF22I:1;
  4138. vuint32_t BUF21I:1;
  4139. vuint32_t BUF20I:1;
  4140. vuint32_t BUF19I:1;
  4141. vuint32_t BUF18I:1;
  4142. vuint32_t BUF17I:1;
  4143. vuint32_t BUF16I:1;
  4144. vuint32_t BUF15I:1;
  4145. vuint32_t BUF14I:1;
  4146. vuint32_t BUF13I:1;
  4147. vuint32_t BUF12I:1;
  4148. vuint32_t BUF11I:1;
  4149. vuint32_t BUF10I:1;
  4150. vuint32_t BUF09I:1;
  4151. vuint32_t BUF08I:1;
  4152. vuint32_t BUF07I:1;
  4153. vuint32_t BUF06I:1;
  4154. vuint32_t BUF05I:1;
  4155. vuint32_t BUF04I:1;
  4156. vuint32_t BUF03I:1;
  4157. vuint32_t BUF02I:1;
  4158. vuint32_t BUF01I:1;
  4159. vuint32_t BUF00I:1;
  4160. } B; /* Interruput Flag Register @baseaddress + 0x2C */
  4161. } IFRL;
  4162. uint32_t flexcan2_reserved2[19];
  4163. /****************************************************************************/
  4164. /* Use either Standard Buffer Structure OR RX FIFO and Buffer Structure */
  4165. /****************************************************************************/
  4166. /* Standard Buffer Structure */
  4167. struct FLEXCAN_BUF_t BUF[64];
  4168. /* RX FIFO and Buffer Structure */
  4169. /*struct FLEXCAN_RXFIFO_t RXFIFO; */
  4170. /*struct FLEXCAN_BUF_t BUF[56]; */
  4171. /****************************************************************************/
  4172. uint32_t FLEXCAN_reserved3[256]; /* {0x0880-0x0480}/0x4 = 0x100 */
  4173. union {
  4174. vuint32_t R;
  4175. struct {
  4176. vuint32_t MI:32;
  4177. } B; /* RX Individual Mask Registers @baseaddress + 0x0880 */
  4178. } RXIMR[64];
  4179. }; /* end of FLEXCAN_tag */
  4180. /****************************************************************************/
  4181. /* MODULE : Periodic Interval Timer (PIT) */
  4182. /****************************************************************************/
  4183. struct PIT_tag {
  4184. union {
  4185. vuint32_t R;
  4186. struct {
  4187. vuint32_t:29;
  4188. vuint32_t MDIS_RTI:1;
  4189. vuint32_t MDIS:1;
  4190. vuint32_t FRZ:1;
  4191. } B;
  4192. } PITMCR; /* PIT Module Control Register @baseaddress + 0x00 */
  4193. uint32_t pit_reserved1[59];
  4194. struct {
  4195. union {
  4196. vuint32_t R;
  4197. } LDVAL; /* Timer Load Value Register @baseaddress + 0xF0 */
  4198. union {
  4199. vuint32_t R;
  4200. } CVAL; /* Current Timer Value Register @baseaddress + 0xF4 */
  4201. union {
  4202. vuint32_t R;
  4203. struct {
  4204. vuint32_t:30;
  4205. vuint32_t TIE:1;
  4206. vuint32_t TEN:1;
  4207. } B;
  4208. } TCTRL; /* Timer Control Register @baseaddress + 0xF8 */
  4209. union {
  4210. vuint32_t R;
  4211. struct {
  4212. vuint32_t:31;
  4213. vuint32_t TIF:1;
  4214. } B;
  4215. } TFLG; /* Timer Flag Register */
  4216. } RTI; /* RTI Channel @baseaddress + 0xFC */
  4217. struct {
  4218. union {
  4219. vuint32_t R;
  4220. } LDVAL; /* Timer Load Value Register @baseaddress + CH + 0x0 */
  4221. union {
  4222. vuint32_t R;
  4223. } CVAL; /* Current Timer Value Register @baseaddress + CH + 0x4 */
  4224. union {
  4225. vuint32_t R;
  4226. struct {
  4227. vuint32_t:30;
  4228. vuint32_t TIE:1;
  4229. vuint32_t TEN:1;
  4230. } B;
  4231. } TCTRL; /* Timer Control Register @baseaddress + CH + 0x8 */
  4232. union {
  4233. vuint32_t R;
  4234. struct {
  4235. vuint32_t:31;
  4236. vuint32_t TIF:1;
  4237. } B;
  4238. } TFLG; /* Timer Flag Register @baseaddress + CH + 0xC */
  4239. } TIMER[4]; /* Timer Channels @baseaddress + 0x100 */
  4240. };
  4241. /****************************************************************************/
  4242. /* MODULE : FlexRay */
  4243. /****************************************************************************/
  4244. typedef union uMVR {
  4245. vuint16_t R;
  4246. struct {
  4247. vuint16_t CHIVER:8; /* CHI Version Number */
  4248. vuint16_t PEVER:8; /* PE Version Number */
  4249. } B;
  4250. } MVR_t;
  4251. typedef union uMCR {
  4252. vuint16_t R;
  4253. struct {
  4254. vuint16_t MEN:1; /* module enable */
  4255. vuint16_t:1;
  4256. vuint16_t SCMD:1; /* single channel mode */
  4257. vuint16_t CHB:1; /* channel B enable */
  4258. vuint16_t CHA:1; /* channel A enable */
  4259. vuint16_t SFFE:1; /* synchronization frame filter enable */
  4260. vuint16_t:5;
  4261. vuint16_t CLKSEL:1; /* protocol engine clock source select */
  4262. vuint16_t PRESCALE:3; /* protocol engine clock prescaler */
  4263. vuint16_t:1;
  4264. } B;
  4265. } MCR_t;
  4266. typedef union uSTBSCR {
  4267. vuint16_t R;
  4268. struct {
  4269. vuint16_t WMD:1; /* write mode */
  4270. vuint16_t STBSSEL:7; /* strobe signal select */
  4271. vuint16_t:3;
  4272. vuint16_t ENB:1; /* strobe signal enable */
  4273. vuint16_t:2;
  4274. vuint16_t STBPSEL:2; /* strobe port select */
  4275. } B;
  4276. } STBSCR_t;
  4277. typedef union uSTBPCR {
  4278. vuint16_t R;
  4279. struct {
  4280. vuint16_t:12;
  4281. vuint16_t STB3EN:1; /* strobe port enable */
  4282. vuint16_t STB2EN:1; /* strobe port enable */
  4283. vuint16_t STB1EN:1; /* strobe port enable */
  4284. vuint16_t STB0EN:1; /* strobe port enable */
  4285. } B;
  4286. } STBPCR_t;
  4287. typedef union uMBDSR {
  4288. vuint16_t R;
  4289. struct {
  4290. vuint16_t:1;
  4291. vuint16_t MBSEG2DS:7; /* message buffer segment 2 data size */
  4292. vuint16_t:1;
  4293. vuint16_t MBSEG1DS:7; /* message buffer segment 1 data size */
  4294. } B;
  4295. } MBDSR_t;
  4296. typedef union uMBSSUTR {
  4297. vuint16_t R;
  4298. struct {
  4299. vuint16_t:1;
  4300. vuint16_t LAST_MB_SEG1:7; /* last message buffer control register for message buffer segment 1 */
  4301. vuint16_t:1;
  4302. vuint16_t LAST_MB_UTIL:7; /* last message buffer utilized */
  4303. } B;
  4304. } MBSSUTR_t;
  4305. typedef union uPOCR {
  4306. vuint16_t R;
  4307. vuint8_t byte[2];
  4308. struct {
  4309. vuint16_t WME:1; /* write mode external correction command */
  4310. vuint16_t:3;
  4311. vuint16_t EOC_AP:2; /* external offset correction application */
  4312. vuint16_t ERC_AP:2; /* external rate correction application */
  4313. vuint16_t BSY:1; /* command write busy / write mode command */
  4314. vuint16_t:3;
  4315. vuint16_t POCCMD:4; /* protocol command */
  4316. } B;
  4317. } POCR_t;
  4318. /* protocol commands */
  4319. typedef union uGIFER {
  4320. vuint16_t R;
  4321. struct {
  4322. vuint16_t MIF:1; /* module interrupt flag */
  4323. vuint16_t PRIF:1; /* protocol interrupt flag */
  4324. vuint16_t CHIF:1; /* CHI interrupt flag */
  4325. vuint16_t WKUPIF:1; /* wakeup interrupt flag */
  4326. vuint16_t FNEBIF:1; /* receive FIFO channel B not empty interrupt flag */
  4327. vuint16_t FNEAIF:1; /* receive FIFO channel A not empty interrupt flag */
  4328. vuint16_t RBIF:1; /* receive message buffer interrupt flag */
  4329. vuint16_t TBIF:1; /* transmit buffer interrupt flag */
  4330. vuint16_t MIE:1; /* module interrupt enable */
  4331. vuint16_t PRIE:1; /* protocol interrupt enable */
  4332. vuint16_t CHIE:1; /* CHI interrupt enable */
  4333. vuint16_t WKUPIE:1; /* wakeup interrupt enable */
  4334. vuint16_t FNEBIE:1; /* receive FIFO channel B not empty interrupt enable */
  4335. vuint16_t FNEAIE:1; /* receive FIFO channel A not empty interrupt enable */
  4336. vuint16_t RBIE:1; /* receive message buffer interrupt enable */
  4337. vuint16_t TBIE:1; /* transmit buffer interrupt enable */
  4338. } B;
  4339. } GIFER_t;
  4340. typedef union uPIFR0 {
  4341. vuint16_t R;
  4342. struct {
  4343. vuint16_t FATLIF:1; /* fatal protocol error interrupt flag */
  4344. vuint16_t INTLIF:1; /* internal protocol error interrupt flag */
  4345. vuint16_t ILCFIF:1; /* illegal protocol configuration flag */
  4346. vuint16_t CSAIF:1; /* cold start abort interrupt flag */
  4347. vuint16_t MRCIF:1; /* missing rate correctio interrupt flag */
  4348. vuint16_t MOCIF:1; /* missing offset correctio interrupt flag */
  4349. vuint16_t CCLIF:1; /* clock correction limit reached interrupt flag */
  4350. vuint16_t MXSIF:1; /* max sync frames detected interrupt flag */
  4351. vuint16_t MTXIF:1; /* media access test symbol received flag */
  4352. vuint16_t LTXBIF:1; /* pdLatestTx violation on channel B interrupt flag */
  4353. vuint16_t LTXAIF:1; /* pdLatestTx violation on channel A interrupt flag */
  4354. vuint16_t TBVBIF:1; /* Transmission across boundary on channel B Interrupt Flag */
  4355. vuint16_t TBVAIF:1; /* Transmission across boundary on channel A Interrupt Flag */
  4356. vuint16_t TI2IF:1; /* timer 2 expired interrupt flag */
  4357. vuint16_t TI1IF:1; /* timer 1 expired interrupt flag */
  4358. vuint16_t CYSIF:1; /* cycle start interrupt flag */
  4359. } B;
  4360. } PIFR0_t;
  4361. typedef union uPIFR1 {
  4362. vuint16_t R;
  4363. struct {
  4364. vuint16_t EMCIF:1; /* error mode changed interrupt flag */
  4365. vuint16_t IPCIF:1; /* illegal protocol command interrupt flag */
  4366. vuint16_t PECFIF:1; /* protocol engine communication failure interrupt flag */
  4367. vuint16_t PSCIF:1; /* Protocol State Changed Interrupt Flag */
  4368. vuint16_t SSI3IF:1; /* slot status counter incremented interrupt flag */
  4369. vuint16_t SSI2IF:1; /* slot status counter incremented interrupt flag */
  4370. vuint16_t SSI1IF:1; /* slot status counter incremented interrupt flag */
  4371. vuint16_t SSI0IF:1; /* slot status counter incremented interrupt flag */
  4372. vuint16_t:2;
  4373. vuint16_t EVTIF:1; /* even cycle table written interrupt flag */
  4374. vuint16_t ODTIF:1; /* odd cycle table written interrupt flag */
  4375. vuint16_t:4;
  4376. } B;
  4377. } PIFR1_t;
  4378. typedef union uPIER0 {
  4379. vuint16_t R;
  4380. struct {
  4381. vuint16_t FATLIE:1; /* fatal protocol error interrupt enable */
  4382. vuint16_t INTLIE:1; /* internal protocol error interrupt interrupt enable */
  4383. vuint16_t ILCFIE:1; /* illegal protocol configuration interrupt enable */
  4384. vuint16_t CSAIE:1; /* cold start abort interrupt enable */
  4385. vuint16_t MRCIE:1; /* missing rate correctio interrupt enable */
  4386. vuint16_t MOCIE:1; /* missing offset correctio interrupt enable */
  4387. vuint16_t CCLIE:1; /* clock correction limit reached interrupt enable */
  4388. vuint16_t MXSIE:1; /* max sync frames detected interrupt enable */
  4389. vuint16_t MTXIE:1; /* media access test symbol received interrupt enable */
  4390. vuint16_t LTXBIE:1; /* pdLatestTx violation on channel B interrupt enable */
  4391. vuint16_t LTXAIE:1; /* pdLatestTx violation on channel A interrupt enable */
  4392. vuint16_t TBVBIE:1; /* Transmission across boundary on channel B Interrupt enable */
  4393. vuint16_t TBVAIE:1; /* Transmission across boundary on channel A Interrupt enable */
  4394. vuint16_t TI2IE:1; /* timer 2 expired interrupt enable */
  4395. vuint16_t TI1IE:1; /* timer 1 expired interrupt enable */
  4396. vuint16_t CYSIE:1; /* cycle start interrupt enable */
  4397. } B;
  4398. } PIER0_t;
  4399. typedef union uPIER1 {
  4400. vuint16_t R;
  4401. struct {
  4402. vuint16_t EMCIE:1; /* error mode changed interrupt enable */
  4403. vuint16_t IPCIE:1; /* illegal protocol command interrupt enable */
  4404. vuint16_t PECFIE:1; /* protocol engine communication failure interrupt enable */
  4405. vuint16_t PSCIE:1; /* Protocol State Changed Interrupt enable */
  4406. vuint16_t SSI3IE:1; /* slot status counter incremented interrupt enable */
  4407. vuint16_t SSI2IE:1; /* slot status counter incremented interrupt enable */
  4408. vuint16_t SSI1IE:1; /* slot status counter incremented interrupt enable */
  4409. vuint16_t SSI0IE:1; /* slot status counter incremented interrupt enable */
  4410. vuint16_t:2;
  4411. vuint16_t EVTIE:1; /* even cycle table written interrupt enable */
  4412. vuint16_t ODTIE:1; /* odd cycle table written interrupt enable */
  4413. vuint16_t:4;
  4414. } B;
  4415. } PIER1_t;
  4416. typedef union uCHIERFR {
  4417. vuint16_t R;
  4418. struct {
  4419. vuint16_t FRLBEF:1; /* flame lost channel B error flag */
  4420. vuint16_t FRLAEF:1; /* frame lost channel A error flag */
  4421. vuint16_t PCMIEF:1; /* command ignored error flag */
  4422. vuint16_t FOVBEF:1; /* receive FIFO overrun channel B error flag */
  4423. vuint16_t FOVAEF:1; /* receive FIFO overrun channel A error flag */
  4424. vuint16_t MSBEF:1; /* message buffer search error flag */
  4425. vuint16_t MBUEF:1; /* message buffer utilization error flag */
  4426. vuint16_t LCKEF:1; /* lock error flag */
  4427. vuint16_t DBLEF:1; /* double transmit message buffer lock error flag */
  4428. vuint16_t SBCFEF:1; /* system bus communication failure error flag */
  4429. vuint16_t FIDEF:1; /* frame ID error flag */
  4430. vuint16_t DPLEF:1; /* dynamic payload length error flag */
  4431. vuint16_t SPLEF:1; /* static payload length error flag */
  4432. vuint16_t NMLEF:1; /* network management length error flag */
  4433. vuint16_t NMFEF:1; /* network management frame error flag */
  4434. vuint16_t ILSAEF:1; /* illegal access error flag */
  4435. } B;
  4436. } CHIERFR_t;
  4437. typedef union uMBIVEC {
  4438. vuint16_t R;
  4439. struct {
  4440. vuint16_t:1;
  4441. vuint16_t TBIVEC:7; /* transmit buffer interrupt vector */
  4442. vuint16_t:1;
  4443. vuint16_t RBIVEC:7; /* receive buffer interrupt vector */
  4444. } B;
  4445. } MBIVEC_t;
  4446. typedef union uPSR0 {
  4447. vuint16_t R;
  4448. struct {
  4449. vuint16_t ERRMODE:2; /* error mode */
  4450. vuint16_t SLOTMODE:2; /* slot mode */
  4451. vuint16_t:1;
  4452. vuint16_t PROTSTATE:3; /* protocol state */
  4453. vuint16_t SUBSTATE:4; /* protocol sub state */
  4454. vuint16_t:1;
  4455. vuint16_t WAKEUPSTATUS:3; /* wakeup status */
  4456. } B;
  4457. } PSR0_t;
  4458. /* protocol states */
  4459. /* protocol sub-states */
  4460. /* wakeup status */
  4461. typedef union uPSR1 {
  4462. vuint16_t R;
  4463. struct {
  4464. vuint16_t CSAA:1; /* cold start attempt abort flag */
  4465. vuint16_t SCP:1; /* cold start path */
  4466. vuint16_t:1;
  4467. vuint16_t REMCSAT:5; /* remanining coldstart attempts */
  4468. vuint16_t CPN:1; /* cold start noise path */
  4469. vuint16_t HHR:1; /* host halt request pending */
  4470. vuint16_t FRZ:1; /* freeze occured */
  4471. vuint16_t APTAC:5; /* allow passive to active counter */
  4472. } B;
  4473. } PSR1_t;
  4474. typedef union uPSR2 {
  4475. vuint16_t R;
  4476. struct {
  4477. vuint16_t NBVB:1; /* NIT boundary violation on channel B */
  4478. vuint16_t NSEB:1; /* NIT syntax error on channel B */
  4479. vuint16_t STCB:1; /* symbol window transmit conflict on channel B */
  4480. vuint16_t SBVB:1; /* symbol window boundary violation on channel B */
  4481. vuint16_t SSEB:1; /* symbol window syntax error on channel B */
  4482. vuint16_t MTB:1; /* media access test symbol MTS received on channel B */
  4483. vuint16_t NBVA:1; /* NIT boundary violation on channel A */
  4484. vuint16_t NSEA:1; /* NIT syntax error on channel A */
  4485. vuint16_t STCA:1; /* symbol window transmit conflict on channel A */
  4486. vuint16_t SBVA:1; /* symbol window boundary violation on channel A */
  4487. vuint16_t SSEA:1; /* symbol window syntax error on channel A */
  4488. vuint16_t MTA:1; /* media access test symbol MTS received on channel A */
  4489. vuint16_t CLKCORRFAILCNT:4; /* clock correction failed counter */
  4490. } B;
  4491. } PSR2_t;
  4492. typedef union uPSR3 {
  4493. vuint16_t R;
  4494. struct {
  4495. vuint16_t:2;
  4496. vuint16_t WUB:1; /* wakeup symbol received on channel B */
  4497. vuint16_t ABVB:1; /* aggregated boundary violation on channel B */
  4498. vuint16_t AACB:1; /* aggregated additional communication on channel B */
  4499. vuint16_t ACEB:1; /* aggregated content error on channel B */
  4500. vuint16_t ASEB:1; /* aggregated syntax error on channel B */
  4501. vuint16_t AVFB:1; /* aggregated valid frame on channel B */
  4502. vuint16_t:2;
  4503. vuint16_t WUA:1; /* wakeup symbol received on channel A */
  4504. vuint16_t ABVA:1; /* aggregated boundary violation on channel A */
  4505. vuint16_t AACA:1; /* aggregated additional communication on channel A */
  4506. vuint16_t ACEA:1; /* aggregated content error on channel A */
  4507. vuint16_t ASEA:1; /* aggregated syntax error on channel A */
  4508. vuint16_t AVFA:1; /* aggregated valid frame on channel A */
  4509. } B;
  4510. } PSR3_t;
  4511. typedef union uCIFRR {
  4512. vuint16_t R;
  4513. struct {
  4514. vuint16_t:8;
  4515. vuint16_t MIFR:1; /* module interrupt flag */
  4516. vuint16_t PRIFR:1; /* protocol interrupt flag */
  4517. vuint16_t CHIFR:1; /* CHI interrupt flag */
  4518. vuint16_t WUPIFR:1; /* wakeup interrupt flag */
  4519. vuint16_t FNEBIFR:1; /* receive fifo channel B no empty interrupt flag */
  4520. vuint16_t FNEAIFR:1; /* receive fifo channel A no empty interrupt flag */
  4521. vuint16_t RBIFR:1; /* receive message buffer interrupt flag */
  4522. vuint16_t TBIFR:1; /* transmit buffer interrupt flag */
  4523. } B;
  4524. } CIFRR_t;
  4525. typedef union uSFCNTR {
  4526. vuint16_t R;
  4527. struct {
  4528. vuint16_t SFEVB:4; /* sync frames channel B, even cycle */
  4529. vuint16_t SFEVA:4; /* sync frames channel A, even cycle */
  4530. vuint16_t SFODB:4; /* sync frames channel B, odd cycle */
  4531. vuint16_t SFODA:4; /* sync frames channel A, odd cycle */
  4532. } B;
  4533. } SFCNTR_t;
  4534. typedef union uSFTCCSR {
  4535. vuint16_t R;
  4536. struct {
  4537. vuint16_t ELKT:1; /* even cycle tables lock and unlock trigger */
  4538. vuint16_t OLKT:1; /* odd cycle tables lock and unlock trigger */
  4539. vuint16_t CYCNUM:6; /* cycle number */
  4540. vuint16_t ELKS:1; /* even cycle tables lock status */
  4541. vuint16_t OLKS:1; /* odd cycle tables lock status */
  4542. vuint16_t EVAL:1; /* even cycle tables valid */
  4543. vuint16_t OVAL:1; /* odd cycle tables valid */
  4544. vuint16_t:1;
  4545. vuint16_t OPT:1; /*one pair trigger */
  4546. vuint16_t SDVEN:1; /* sync frame deviation table enable */
  4547. vuint16_t SIDEN:1; /* sync frame ID table enable */
  4548. } B;
  4549. } SFTCCSR_t;
  4550. typedef union uSFIDRFR {
  4551. vuint16_t R;
  4552. struct {
  4553. vuint16_t:6;
  4554. vuint16_t SYNFRID:10; /* sync frame rejection ID */
  4555. } B;
  4556. } SFIDRFR_t;
  4557. typedef union uTICCR {
  4558. vuint16_t R;
  4559. struct {
  4560. vuint16_t:2;
  4561. vuint16_t T2CFG:1; /* timer 2 configuration */
  4562. vuint16_t T2REP:1; /* timer 2 repetitive mode */
  4563. vuint16_t:1;
  4564. vuint16_t T2SP:1; /* timer 2 stop */
  4565. vuint16_t T2TR:1; /* timer 2 trigger */
  4566. vuint16_t T2ST:1; /* timer 2 state */
  4567. vuint16_t:3;
  4568. vuint16_t T1REP:1; /* timer 1 repetitive mode */
  4569. vuint16_t:1;
  4570. vuint16_t T1SP:1; /* timer 1 stop */
  4571. vuint16_t T1TR:1; /* timer 1 trigger */
  4572. vuint16_t T1ST:1; /* timer 1 state */
  4573. } B;
  4574. } TICCR_t;
  4575. typedef union uTI1CYSR {
  4576. vuint16_t R;
  4577. struct {
  4578. vuint16_t:2;
  4579. vuint16_t TI1CYCVAL:6; /* timer 1 cycle filter value */
  4580. vuint16_t:2;
  4581. vuint16_t TI1CYCMSK:6; /* timer 1 cycle filter mask */
  4582. } B;
  4583. } TI1CYSR_t;
  4584. typedef union uSSSR {
  4585. vuint16_t R;
  4586. struct {
  4587. vuint16_t WMD:1; /* write mode */
  4588. vuint16_t:1;
  4589. vuint16_t SEL:2; /* static slot number */
  4590. vuint16_t:1;
  4591. vuint16_t SLOTNUMBER:11; /* selector */
  4592. } B;
  4593. } SSSR_t;
  4594. typedef union uSSCCR {
  4595. vuint16_t R;
  4596. struct {
  4597. vuint16_t WMD:1; /* write mode */
  4598. vuint16_t:1;
  4599. vuint16_t SEL:2; /* selector */
  4600. vuint16_t:1;
  4601. vuint16_t CNTCFG:2; /* counter configuration */
  4602. vuint16_t MCY:1; /* multi cycle selection */
  4603. vuint16_t VFR:1; /* valid frame selection */
  4604. vuint16_t SYF:1; /* sync frame selection */
  4605. vuint16_t NUF:1; /* null frame selection */
  4606. vuint16_t SUF:1; /* startup frame selection */
  4607. vuint16_t STATUSMASK:4; /* slot status mask */
  4608. } B;
  4609. } SSCCR_t;
  4610. typedef union uSSR {
  4611. vuint16_t R;
  4612. struct {
  4613. vuint16_t VFB:1; /* valid frame on channel B */
  4614. vuint16_t SYB:1; /* valid sync frame on channel B */
  4615. vuint16_t NFB:1; /* valid null frame on channel B */
  4616. vuint16_t SUB:1; /* valid startup frame on channel B */
  4617. vuint16_t SEB:1; /* syntax error on channel B */
  4618. vuint16_t CEB:1; /* content error on channel B */
  4619. vuint16_t BVB:1; /* boundary violation on channel B */
  4620. vuint16_t TCB:1; /* tx conflict on channel B */
  4621. vuint16_t VFA:1; /* valid frame on channel A */
  4622. vuint16_t SYA:1; /* valid sync frame on channel A */
  4623. vuint16_t NFA:1; /* valid null frame on channel A */
  4624. vuint16_t SUA:1; /* valid startup frame on channel A */
  4625. vuint16_t SEA:1; /* syntax error on channel A */
  4626. vuint16_t CEA:1; /* content error on channel A */
  4627. vuint16_t BVA:1; /* boundary violation on channel A */
  4628. vuint16_t TCA:1; /* tx conflict on channel A */
  4629. } B;
  4630. } SSR_t;
  4631. typedef union uMTSCFR {
  4632. vuint16_t R;
  4633. struct {
  4634. vuint16_t MTE:1; /* media access test symbol transmission enable */
  4635. vuint16_t:1;
  4636. vuint16_t CYCCNTMSK:6; /* cycle counter mask */
  4637. vuint16_t:2;
  4638. vuint16_t CYCCNTVAL:6; /* cycle counter value */
  4639. } B;
  4640. } MTSCFR_t;
  4641. typedef union uRSBIR {
  4642. vuint16_t R;
  4643. struct {
  4644. vuint16_t WMD:1; /* write mode */
  4645. vuint16_t:1;
  4646. vuint16_t SEL:2; /* selector */
  4647. vuint16_t:4;
  4648. vuint16_t RSBIDX:8; /* receive shadow buffer index */
  4649. } B;
  4650. } RSBIR_t;
  4651. typedef union uRFDSR {
  4652. vuint16_t R;
  4653. struct {
  4654. vuint16_t FIFODEPTH:8; /* fifo depth */
  4655. vuint16_t:1;
  4656. vuint16_t ENTRYSIZE:7; /* entry size */
  4657. } B;
  4658. } RFDSR_t;
  4659. typedef union uRFRFCFR {
  4660. vuint16_t R;
  4661. struct {
  4662. vuint16_t WMD:1; /* write mode */
  4663. vuint16_t IBD:1; /* interval boundary */
  4664. vuint16_t SEL:2; /* filter number */
  4665. vuint16_t:1;
  4666. vuint16_t SID:11; /* slot ID */
  4667. } B;
  4668. } RFRFCFR_t;
  4669. typedef union uRFRFCTR {
  4670. vuint16_t R;
  4671. struct {
  4672. vuint16_t:4;
  4673. vuint16_t F3MD:1; /* filter mode */
  4674. vuint16_t F2MD:1; /* filter mode */
  4675. vuint16_t F1MD:1; /* filter mode */
  4676. vuint16_t F0MD:1; /* filter mode */
  4677. vuint16_t:4;
  4678. vuint16_t F3EN:1; /* filter enable */
  4679. vuint16_t F2EN:1; /* filter enable */
  4680. vuint16_t F1EN:1; /* filter enable */
  4681. vuint16_t F0EN:1; /* filter enable */
  4682. } B;
  4683. } RFRFCTR_t;
  4684. typedef union uPCR0 {
  4685. vuint16_t R;
  4686. struct {
  4687. vuint16_t ACTION_POINT_OFFSET:6;
  4688. vuint16_t STATIC_SLOT_LENGTH:10;
  4689. } B;
  4690. } PCR0_t;
  4691. typedef union uPCR1 {
  4692. vuint16_t R;
  4693. struct {
  4694. vuint16_t:2;
  4695. vuint16_t MACRO_AFTER_FIRST_STATIC_SLOT:14;
  4696. } B;
  4697. } PCR1_t;
  4698. typedef union uPCR2 {
  4699. vuint16_t R;
  4700. struct {
  4701. vuint16_t MINISLOT_AFTER_ACTION_POINT:6;
  4702. vuint16_t NUMBER_OF_STATIC_SLOTS:10;
  4703. } B;
  4704. } PCR2_t;
  4705. typedef union uPCR3 {
  4706. vuint16_t R;
  4707. struct {
  4708. vuint16_t WAKEUP_SYMBOL_RX_LOW:6;
  4709. vuint16_t MINISLOT_ACTION_POINT_OFFSET:5;
  4710. vuint16_t COLDSTART_ATTEMPTS:5;
  4711. } B;
  4712. } PCR3_t;
  4713. typedef union uPCR4 {
  4714. vuint16_t R;
  4715. struct {
  4716. vuint16_t CAS_RX_LOW_MAX:7;
  4717. vuint16_t WAKEUP_SYMBOL_RX_WINDOW:9;
  4718. } B;
  4719. } PCR4_t;
  4720. typedef union uPCR5 {
  4721. vuint16_t R;
  4722. struct {
  4723. vuint16_t TSS_TRANSMITTER:4;
  4724. vuint16_t WAKEUP_SYMBOL_TX_LOW:6;
  4725. vuint16_t WAKEUP_SYMBOL_RX_IDLE:6;
  4726. } B;
  4727. } PCR5_t;
  4728. typedef union uPCR6 {
  4729. vuint16_t R;
  4730. struct {
  4731. vuint16_t:1;
  4732. vuint16_t SYMBOL_WINDOW_AFTER_ACTION_POINT:8;
  4733. vuint16_t MACRO_INITIAL_OFFSET_A:7;
  4734. } B;
  4735. } PCR6_t;
  4736. typedef union uPCR7 {
  4737. vuint16_t R;
  4738. struct {
  4739. vuint16_t DECODING_CORRECTION_B:9;
  4740. vuint16_t MICRO_PER_MACRO_NOM_HALF:7;
  4741. } B;
  4742. } PCR7_t;
  4743. typedef union uPCR8 {
  4744. vuint16_t R;
  4745. struct {
  4746. vuint16_t MAX_WITHOUT_CLOCK_CORRECTION_FATAL:4;
  4747. vuint16_t MAX_WITHOUT_CLOCK_CORRECTION_PASSIVE:4;
  4748. vuint16_t WAKEUP_SYMBOL_TX_IDLE:8;
  4749. } B;
  4750. } PCR8_t;
  4751. typedef union uPCR9 {
  4752. vuint16_t R;
  4753. struct {
  4754. vuint16_t MINISLOT_EXISTS:1;
  4755. vuint16_t SYMBOL_WINDOW_EXISTS:1;
  4756. vuint16_t OFFSET_CORRECTION_OUT:14;
  4757. } B;
  4758. } PCR9_t;
  4759. typedef union uPCR10 {
  4760. vuint16_t R;
  4761. struct {
  4762. vuint16_t SINGLE_SLOT_ENABLED:1;
  4763. vuint16_t WAKEUP_CHANNEL:1;
  4764. vuint16_t MACRO_PER_CYCLE:14;
  4765. } B;
  4766. } PCR10_t;
  4767. typedef union uPCR11 {
  4768. vuint16_t R;
  4769. struct {
  4770. vuint16_t KEY_SLOT_USED_FOR_STARTUP:1;
  4771. vuint16_t KEY_SLOT_USED_FOR_SYNC:1;
  4772. vuint16_t OFFSET_CORRECTION_START:14;
  4773. } B;
  4774. } PCR11_t;
  4775. typedef union uPCR12 {
  4776. vuint16_t R;
  4777. struct {
  4778. vuint16_t ALLOW_PASSIVE_TO_ACTIVE:5;
  4779. vuint16_t KEY_SLOT_HEADER_CRC:11;
  4780. } B;
  4781. } PCR12_t;
  4782. typedef union uPCR13 {
  4783. vuint16_t R;
  4784. struct {
  4785. vuint16_t FIRST_MINISLOT_ACTION_POINT_OFFSET:6;
  4786. vuint16_t STATIC_SLOT_AFTER_ACTION_POINT:10;
  4787. } B;
  4788. } PCR13_t;
  4789. typedef union uPCR14 {
  4790. vuint16_t R;
  4791. struct {
  4792. vuint16_t RATE_CORRECTION_OUT:11;
  4793. vuint16_t LISTEN_TIMEOUT_H:5;
  4794. } B;
  4795. } PCR14_t;
  4796. typedef union uPCR15 {
  4797. vuint16_t R;
  4798. struct {
  4799. vuint16_t LISTEN_TIMEOUT_L:16;
  4800. } B;
  4801. } PCR15_t;
  4802. typedef union uPCR16 {
  4803. vuint16_t R;
  4804. struct {
  4805. vuint16_t MACRO_INITIAL_OFFSET_B:7;
  4806. vuint16_t NOISE_LISTEN_TIMEOUT_H:9;
  4807. } B;
  4808. } PCR16_t;
  4809. typedef union uPCR17 {
  4810. vuint16_t R;
  4811. struct {
  4812. vuint16_t NOISE_LISTEN_TIMEOUT_L:16;
  4813. } B;
  4814. } PCR17_t;
  4815. typedef union uPCR18 {
  4816. vuint16_t R;
  4817. struct {
  4818. vuint16_t WAKEUP_PATTERN:6;
  4819. vuint16_t KEY_SLOT_ID:10;
  4820. } B;
  4821. } PCR18_t;
  4822. typedef union uPCR19 {
  4823. vuint16_t R;
  4824. struct {
  4825. vuint16_t DECODING_CORRECTION_A:9;
  4826. vuint16_t PAYLOAD_LENGTH_STATIC:7;
  4827. } B;
  4828. } PCR19_t;
  4829. typedef union uPCR20 {
  4830. vuint16_t R;
  4831. struct {
  4832. vuint16_t MICRO_INITIAL_OFFSET_B:8;
  4833. vuint16_t MICRO_INITIAL_OFFSET_A:8;
  4834. } B;
  4835. } PCR20_t;
  4836. typedef union uPCR21 {
  4837. vuint16_t R;
  4838. struct {
  4839. vuint16_t EXTERN_RATE_CORRECTION:3;
  4840. vuint16_t LATEST_TX:13;
  4841. } B;
  4842. } PCR21_t;
  4843. typedef union uPCR22 {
  4844. vuint16_t R;
  4845. struct {
  4846. vuint16_t:1;
  4847. vuint16_t COMP_ACCEPTED_STARTUP_RANGE_A:11;
  4848. vuint16_t MICRO_PER_CYCLE_H:4;
  4849. } B;
  4850. } PCR22_t;
  4851. typedef union uPCR23 {
  4852. vuint16_t R;
  4853. struct {
  4854. vuint16_t micro_per_cycle_l:16;
  4855. } B;
  4856. } PCR23_t;
  4857. typedef union uPCR24 {
  4858. vuint16_t R;
  4859. struct {
  4860. vuint16_t CLUSTER_DRIFT_DAMPING:5;
  4861. vuint16_t MAX_PAYLOAD_LENGTH_DYNAMIC:7;
  4862. vuint16_t MICRO_PER_CYCLE_MIN_H:4;
  4863. } B;
  4864. } PCR24_t;
  4865. typedef union uPCR25 {
  4866. vuint16_t R;
  4867. struct {
  4868. vuint16_t MICRO_PER_CYCLE_MIN_L:16;
  4869. } B;
  4870. } PCR25_t;
  4871. typedef union uPCR26 {
  4872. vuint16_t R;
  4873. struct {
  4874. vuint16_t ALLOW_HALT_DUE_TO_CLOCK:1;
  4875. vuint16_t COMP_ACCEPTED_STARTUP_RANGE_B:11;
  4876. vuint16_t MICRO_PER_CYCLE_MAX_H:4;
  4877. } B;
  4878. } PCR26_t;
  4879. typedef union uPCR27 {
  4880. vuint16_t R;
  4881. struct {
  4882. vuint16_t MICRO_PER_CYCLE_MAX_L:16;
  4883. } B;
  4884. } PCR27_t;
  4885. typedef union uPCR28 {
  4886. vuint16_t R;
  4887. struct {
  4888. vuint16_t DYNAMIC_SLOT_IDLE_PHASE:2;
  4889. vuint16_t MACRO_AFTER_OFFSET_CORRECTION:14;
  4890. } B;
  4891. } PCR28_t;
  4892. typedef union uPCR29 {
  4893. vuint16_t R;
  4894. struct {
  4895. vuint16_t EXTERN_OFFSET_CORRECTION:3;
  4896. vuint16_t MINISLOTS_MAX:13;
  4897. } B;
  4898. } PCR29_t;
  4899. typedef union uPCR30 {
  4900. vuint16_t R;
  4901. struct {
  4902. vuint16_t:12;
  4903. vuint16_t SYNC_NODE_MAX:4;
  4904. } B;
  4905. } PCR30_t;
  4906. typedef struct uMSG_BUFF_CCS {
  4907. union {
  4908. vuint16_t R;
  4909. struct {
  4910. vuint16_t:1;
  4911. vuint16_t MCM:1; /* message buffer commit mode */
  4912. vuint16_t MBT:1; /* message buffer type */
  4913. vuint16_t MTD:1; /* message buffer direction */
  4914. vuint16_t CMT:1; /* commit for transmission */
  4915. vuint16_t EDT:1; /* enable / disable trigger */
  4916. vuint16_t LCKT:1; /* lock request trigger */
  4917. vuint16_t MBIE:1; /* message buffer interrupt enable */
  4918. vuint16_t:3;
  4919. vuint16_t DUP:1; /* data updated */
  4920. vuint16_t DVAL:1; /* data valid */
  4921. vuint16_t EDS:1; /* lock status */
  4922. vuint16_t LCKS:1; /* enable / disable status */
  4923. vuint16_t MBIF:1; /* message buffer interrupt flag */
  4924. } B;
  4925. } MBCCSR;
  4926. union {
  4927. vuint16_t R;
  4928. struct {
  4929. vuint16_t MTM:1; /* message buffer transmission mode */
  4930. vuint16_t CHNLA:1; /* channel assignement */
  4931. vuint16_t CHNLB:1; /* channel assignement */
  4932. vuint16_t CCFE:1; /* cycle counter filter enable */
  4933. vuint16_t CCFMSK:6; /* cycle counter filter mask */
  4934. vuint16_t CCFVAL:6; /* cycle counter filter value */
  4935. } B;
  4936. } MBCCFR;
  4937. union {
  4938. vuint16_t R;
  4939. struct {
  4940. vuint16_t:5;
  4941. vuint16_t FID:11; /* frame ID */
  4942. } B;
  4943. } MBFIDR;
  4944. union {
  4945. vuint16_t R;
  4946. struct {
  4947. vuint16_t:8;
  4948. vuint16_t MBIDX:8; /* message buffer index */
  4949. } B;
  4950. } MBIDXR;
  4951. } MSG_BUFF_CCS_t;
  4952. typedef union uSYSBADHR {
  4953. vuint16_t R;
  4954. } SYSBADHR_t;
  4955. typedef union uSYSBADLR {
  4956. vuint16_t R;
  4957. } SYSBADLR_t;
  4958. typedef union uPDAR {
  4959. vuint16_t R;
  4960. } PDAR_t;
  4961. typedef union uCASERCR {
  4962. vuint16_t R;
  4963. } CASERCR_t;
  4964. typedef union uCBSERCR {
  4965. vuint16_t R;
  4966. } CBSERCR_t;
  4967. typedef union uCYCTR {
  4968. vuint16_t R;
  4969. } CYCTR_t;
  4970. typedef union uMTCTR {
  4971. vuint16_t R;
  4972. } MTCTR_t;
  4973. typedef union uSLTCTAR {
  4974. vuint16_t R;
  4975. } SLTCTAR_t;
  4976. typedef union uSLTCTBR {
  4977. vuint16_t R;
  4978. } SLTCTBR_t;
  4979. typedef union uRTCORVR {
  4980. vuint16_t R;
  4981. } RTCORVR_t;
  4982. typedef union uOFCORVR {
  4983. vuint16_t R;
  4984. } OFCORVR_t;
  4985. typedef union uSFTOR {
  4986. vuint16_t R;
  4987. } SFTOR_t;
  4988. typedef union uSFIDAFVR {
  4989. vuint16_t R;
  4990. } SFIDAFVR_t;
  4991. typedef union uSFIDAFMR {
  4992. vuint16_t R;
  4993. } SFIDAFMR_t;
  4994. typedef union uNMVR {
  4995. vuint16_t R;
  4996. } NMVR_t;
  4997. typedef union uNMVLR {
  4998. vuint16_t R;
  4999. } NMVLR_t;
  5000. typedef union uT1MTOR {
  5001. vuint16_t R;
  5002. } T1MTOR_t;
  5003. typedef union uTI2CR0 {
  5004. vuint16_t R;
  5005. } TI2CR0_t;
  5006. typedef union uTI2CR1 {
  5007. vuint16_t R;
  5008. } TI2CR1_t;
  5009. typedef union uSSCR {
  5010. vuint16_t R;
  5011. } SSCR_t;
  5012. typedef union uRFSR {
  5013. vuint16_t R;
  5014. } RFSR_t;
  5015. typedef union uRFSIR {
  5016. vuint16_t R;
  5017. } RFSIR_t;
  5018. typedef union uRFARIR {
  5019. vuint16_t R;
  5020. } RFARIR_t;
  5021. typedef union uRFBRIR {
  5022. vuint16_t R;
  5023. } RFBRIR_t;
  5024. typedef union uRFMIDAFVR {
  5025. vuint16_t R;
  5026. } RFMIDAFVR_t;
  5027. typedef union uRFMIAFMR {
  5028. vuint16_t R;
  5029. } RFMIAFMR_t;
  5030. typedef union uRFFIDRFVR {
  5031. vuint16_t R;
  5032. } RFFIDRFVR_t;
  5033. typedef union uRFFIDRFMR {
  5034. vuint16_t R;
  5035. } RFFIDRFMR_t;
  5036. typedef union uLDTXSLAR {
  5037. vuint16_t R;
  5038. } LDTXSLAR_t;
  5039. typedef union uLDTXSLBR {
  5040. vuint16_t R;
  5041. } LDTXSLBR_t;
  5042. typedef struct FR_tag {
  5043. volatile MVR_t MVR; /*module version register *//*0 */
  5044. volatile MCR_t MCR; /*module configuration register *//*2 */
  5045. volatile SYSBADHR_t SYSBADHR; /*system memory base address high register *//*4 */
  5046. volatile SYSBADLR_t SYSBADLR; /*system memory base address low register *//*6 */
  5047. volatile STBSCR_t STBSCR; /*strobe signal control register *//*8 */
  5048. volatile STBPCR_t STBPCR; /*strobe port control register *//*A */
  5049. volatile MBDSR_t MBDSR; /*message buffer data size register *//*C */
  5050. volatile MBSSUTR_t MBSSUTR; /*message buffer segment size and utilization register *//*E */
  5051. vuint16_t reserved3a[1]; /*10 */
  5052. volatile PDAR_t PDAR; /*PE data register *//*12 */
  5053. volatile POCR_t POCR; /*Protocol operation control register *//*14 */
  5054. volatile GIFER_t GIFER; /*global interrupt flag and enable register *//*16 */
  5055. volatile PIFR0_t PIFR0; /*protocol interrupt flag register 0 *//*18 */
  5056. volatile PIFR1_t PIFR1; /*protocol interrupt flag register 1 *//*1A */
  5057. volatile PIER0_t PIER0; /*protocol interrupt enable register 0 *//*1C */
  5058. volatile PIER1_t PIER1; /*protocol interrupt enable register 1 *//*1E */
  5059. volatile CHIERFR_t CHIERFR; /*CHI error flag register *//*20 */
  5060. volatile MBIVEC_t MBIVEC; /*message buffer interrupt vector register *//*22 */
  5061. volatile CASERCR_t CASERCR; /*channel A status error counter register *//*24 */
  5062. volatile CBSERCR_t CBSERCR; /*channel B status error counter register *//*26 */
  5063. volatile PSR0_t PSR0; /*protocol status register 0 *//*28 */
  5064. volatile PSR1_t PSR1; /*protocol status register 1 *//*2A */
  5065. volatile PSR2_t PSR2; /*protocol status register 2 *//*2C */
  5066. volatile PSR3_t PSR3; /*protocol status register 3 *//*2E */
  5067. volatile MTCTR_t MTCTR; /*macrotick counter register *//*30 */
  5068. volatile CYCTR_t CYCTR; /*cycle counter register *//*32 */
  5069. volatile SLTCTAR_t SLTCTAR; /*slot counter channel A register *//*34 */
  5070. volatile SLTCTBR_t SLTCTBR; /*slot counter channel B register *//*36 */
  5071. volatile RTCORVR_t RTCORVR; /*rate correction value register *//*38 */
  5072. volatile OFCORVR_t OFCORVR; /*offset correction value register *//*3A */
  5073. volatile CIFRR_t CIFRR; /*combined interrupt flag register *//*3C */
  5074. vuint16_t reserved3[1]; /*3E */
  5075. volatile SFCNTR_t SFCNTR; /*sync frame counter register *//*40 */
  5076. volatile SFTOR_t SFTOR; /*sync frame table offset register *//*42 */
  5077. volatile SFTCCSR_t SFTCCSR; /*sync frame table configuration, control, status register *//*44 */
  5078. volatile SFIDRFR_t SFIDRFR; /*sync frame ID rejection filter register *//*46 */
  5079. volatile SFIDAFVR_t SFIDAFVR; /*sync frame ID acceptance filter value regiater *//*48 */
  5080. volatile SFIDAFMR_t SFIDAFMR; /*sync frame ID acceptance filter mask register *//*4A */
  5081. volatile NMVR_t NMVR[6]; /*network management vector registers (12 bytes) *//*4C */
  5082. volatile NMVLR_t NMVLR; /*network management vector length register *//*58 */
  5083. volatile TICCR_t TICCR; /*timer configuration and control register *//*5A */
  5084. volatile TI1CYSR_t TI1CYSR; /*timer 1 cycle set register *//*5C */
  5085. volatile T1MTOR_t T1MTOR; /*timer 1 macrotick offset register *//*5E */
  5086. volatile TI2CR0_t TI2CR0; /*timer 2 configuration register 0 *//*60 */
  5087. volatile TI2CR1_t TI2CR1; /*timer 2 configuration register 1 *//*62 */
  5088. volatile SSSR_t SSSR; /*slot status selection register *//*64 */
  5089. volatile SSCCR_t SSCCR; /*slot status counter condition register *//*66 */
  5090. volatile SSR_t SSR[8]; /*slot status registers 0-7 *//*68 */
  5091. volatile SSCR_t SSCR[4]; /*slot status counter registers 0-3 *//*78 */
  5092. volatile MTSCFR_t MTSACFR; /*mts a config register *//*80 */
  5093. volatile MTSCFR_t MTSBCFR; /*mts b config register *//*82 */
  5094. volatile RSBIR_t RSBIR; /*receive shadow buffer index register *//*84 */
  5095. volatile RFSR_t RFSR; /*receive fifo selection register *//*86 */
  5096. volatile RFSIR_t RFSIR; /*receive fifo start index register *//*88 */
  5097. volatile RFDSR_t RFDSR; /*receive fifo depth and size register *//*8A */
  5098. volatile RFARIR_t RFARIR; /*receive fifo a read index register *//*8C */
  5099. volatile RFBRIR_t RFBRIR; /*receive fifo b read index register *//*8E */
  5100. volatile RFMIDAFVR_t RFMIDAFVR; /*receive fifo message ID acceptance filter value register *//*90 */
  5101. volatile RFMIAFMR_t RFMIAFMR; /*receive fifo message ID acceptance filter mask register *//*92 */
  5102. volatile RFFIDRFVR_t RFFIDRFVR; /*receive fifo frame ID rejection filter value register *//*94 */
  5103. volatile RFFIDRFMR_t RFFIDRFMR; /*receive fifo frame ID rejection filter mask register *//*96 */
  5104. volatile RFRFCFR_t RFRFCFR; /*receive fifo range filter configuration register *//*98 */
  5105. volatile RFRFCTR_t RFRFCTR; /*receive fifo range filter control register *//*9A */
  5106. volatile LDTXSLAR_t LDTXSLAR; /*last dynamic transmit slot channel A register *//*9C */
  5107. volatile LDTXSLBR_t LDTXSLBR; /*last dynamic transmit slot channel B register *//*9E */
  5108. volatile PCR0_t PCR0; /*protocol configuration register 0 *//*A0 */
  5109. volatile PCR1_t PCR1; /*protocol configuration register 1 *//*A2 */
  5110. volatile PCR2_t PCR2; /*protocol configuration register 2 *//*A4 */
  5111. volatile PCR3_t PCR3; /*protocol configuration register 3 *//*A6 */
  5112. volatile PCR4_t PCR4; /*protocol configuration register 4 *//*A8 */
  5113. volatile PCR5_t PCR5; /*protocol configuration register 5 *//*AA */
  5114. volatile PCR6_t PCR6; /*protocol configuration register 6 *//*AC */
  5115. volatile PCR7_t PCR7; /*protocol configuration register 7 *//*AE */
  5116. volatile PCR8_t PCR8; /*protocol configuration register 8 *//*B0 */
  5117. volatile PCR9_t PCR9; /*protocol configuration register 9 *//*B2 */
  5118. volatile PCR10_t PCR10; /*protocol configuration register 10 *//*B4 */
  5119. volatile PCR11_t PCR11; /*protocol configuration register 11 *//*B6 */
  5120. volatile PCR12_t PCR12; /*protocol configuration register 12 *//*B8 */
  5121. volatile PCR13_t PCR13; /*protocol configuration register 13 *//*BA */
  5122. volatile PCR14_t PCR14; /*protocol configuration register 14 *//*BC */
  5123. volatile PCR15_t PCR15; /*protocol configuration register 15 *//*BE */
  5124. volatile PCR16_t PCR16; /*protocol configuration register 16 *//*C0 */
  5125. volatile PCR17_t PCR17; /*protocol configuration register 17 *//*C2 */
  5126. volatile PCR18_t PCR18; /*protocol configuration register 18 *//*C4 */
  5127. volatile PCR19_t PCR19; /*protocol configuration register 19 *//*C6 */
  5128. volatile PCR20_t PCR20; /*protocol configuration register 20 *//*C8 */
  5129. volatile PCR21_t PCR21; /*protocol configuration register 21 *//*CA */
  5130. volatile PCR22_t PCR22; /*protocol configuration register 22 *//*CC */
  5131. volatile PCR23_t PCR23; /*protocol configuration register 23 *//*CE */
  5132. volatile PCR24_t PCR24; /*protocol configuration register 24 *//*D0 */
  5133. volatile PCR25_t PCR25; /*protocol configuration register 25 *//*D2 */
  5134. volatile PCR26_t PCR26; /*protocol configuration register 26 *//*D4 */
  5135. volatile PCR27_t PCR27; /*protocol configuration register 27 *//*D6 */
  5136. volatile PCR28_t PCR28; /*protocol configuration register 28 *//*D8 */
  5137. volatile PCR29_t PCR29; /*protocol configuration register 29 *//*DA */
  5138. volatile PCR30_t PCR30; /*protocol configuration register 30 *//*DC */
  5139. vuint16_t reserved2[17];
  5140. volatile MSG_BUFF_CCS_t MBCCS[128]; /* message buffer configuration, control & status registers 0-31 *//*100 */
  5141. } FR_tag_t;
  5142. typedef union uF_HEADER /* frame header */
  5143. {
  5144. struct {
  5145. vuint16_t:5;
  5146. vuint16_t HDCRC:11; /* Header CRC */
  5147. vuint16_t:2;
  5148. vuint16_t CYCCNT:6; /* Cycle Count */
  5149. vuint16_t:1;
  5150. vuint16_t PLDLEN:7; /* Payload Length */
  5151. vuint16_t:1;
  5152. vuint16_t PPI:1; /* Payload Preamble Indicator */
  5153. vuint16_t NUF:1; /* Null Frame Indicator */
  5154. vuint16_t SYF:1; /* Sync Frame Indicator */
  5155. vuint16_t SUF:1; /* Startup Frame Indicator */
  5156. vuint16_t FID:11; /* Frame ID */
  5157. } B;
  5158. vuint16_t WORDS[3];
  5159. } F_HEADER_t;
  5160. typedef union uS_STSTUS /* slot status */
  5161. {
  5162. struct {
  5163. vuint16_t VFB:1; /* Valid Frame on channel B */
  5164. vuint16_t SYB:1; /* Sync Frame Indicator channel B */
  5165. vuint16_t NFB:1; /* Null Frame Indicator channel B */
  5166. vuint16_t SUB:1; /* Startup Frame Indicator channel B */
  5167. vuint16_t SEB:1; /* Syntax Error on channel B */
  5168. vuint16_t CEB:1; /* Content Error on channel B */
  5169. vuint16_t BVB:1; /* Boundary Violation on channel B */
  5170. vuint16_t CH:1; /* Channel */
  5171. vuint16_t VFA:1; /* Valid Frame on channel A */
  5172. vuint16_t SYA:1; /* Sync Frame Indicator channel A */
  5173. vuint16_t NFA:1; /* Null Frame Indicator channel A */
  5174. vuint16_t SUA:1; /* Startup Frame Indicator channel A */
  5175. vuint16_t SEA:1; /* Syntax Error on channel A */
  5176. vuint16_t CEA:1; /* Content Error on channel A */
  5177. vuint16_t BVA:1; /* Boundary Violation on channel A */
  5178. vuint16_t:1;
  5179. } RX;
  5180. struct {
  5181. vuint16_t VFB:1; /* Valid Frame on channel B */
  5182. vuint16_t SYB:1; /* Sync Frame Indicator channel B */
  5183. vuint16_t NFB:1; /* Null Frame Indicator channel B */
  5184. vuint16_t SUB:1; /* Startup Frame Indicator channel B */
  5185. vuint16_t SEB:1; /* Syntax Error on channel B */
  5186. vuint16_t CEB:1; /* Content Error on channel B */
  5187. vuint16_t BVB:1; /* Boundary Violation on channel B */
  5188. vuint16_t TCB:1; /* Tx Conflict on channel B */
  5189. vuint16_t VFA:1; /* Valid Frame on channel A */
  5190. vuint16_t SYA:1; /* Sync Frame Indicator channel A */
  5191. vuint16_t NFA:1; /* Null Frame Indicator channel A */
  5192. vuint16_t SUA:1; /* Startup Frame Indicator channel A */
  5193. vuint16_t SEA:1; /* Syntax Error on channel A */
  5194. vuint16_t CEA:1; /* Content Error on channel A */
  5195. vuint16_t BVA:1; /* Boundary Violation on channel A */
  5196. vuint16_t TCA:1; /* Tx Conflict on channel A */
  5197. } TX;
  5198. vuint16_t R;
  5199. } S_STATUS_t;
  5200. typedef struct uMB_HEADER /* message buffer header */
  5201. {
  5202. F_HEADER_t FRAME_HEADER;
  5203. vuint16_t DATA_OFFSET;
  5204. S_STATUS_t SLOT_STATUS;
  5205. } MB_HEADER_t;
  5206. /****************************************************************************/
  5207. /* MODULE : Power Management Controller (PMC) */
  5208. /****************************************************************************/
  5209. struct PMC_tag {
  5210. union {
  5211. vuint32_t R;
  5212. struct {
  5213. vuint32_t LVRER:1;
  5214. vuint32_t LVREH:1;
  5215. vuint32_t LVRE50:1;
  5216. vuint32_t LVRE33:1;
  5217. vuint32_t LVREC:1;
  5218. vuint32_t:3;
  5219. vuint32_t LVIER:1;
  5220. vuint32_t LVIEH:1;
  5221. vuint32_t LVIE50:1;
  5222. vuint32_t LVIE33:1;
  5223. vuint32_t LVIC:1;
  5224. vuint32_t:2;
  5225. vuint32_t TLK:1;
  5226. vuint32_t:16;
  5227. } B;
  5228. } MCR; /* Module Configuration register @baseaddress + 0x00 */
  5229. union {
  5230. vuint32_t R;
  5231. struct {
  5232. vuint32_t:12;
  5233. vuint32_t LVDREGTRIM:4;
  5234. vuint32_t VDD33TRIM:4;
  5235. vuint32_t LVD33TRIM:4;
  5236. vuint32_t VDDCTRIM:4;
  5237. vuint32_t LVDCTRIM:4;
  5238. } B;
  5239. } TRIMR; /* Trimming register @baseaddress + 0x00 */
  5240. union {
  5241. vuint32_t R;
  5242. struct {
  5243. vuint32_t:5;
  5244. vuint32_t LVFVSTBY:1;
  5245. vuint32_t BGRDY:1;
  5246. vuint32_t BGTS:1;
  5247. vuint32_t:5;
  5248. vuint32_t LVFCSTBY:1;
  5249. vuint32_t:1;
  5250. vuint32_t V33DIS:1;
  5251. vuint32_t LVFCR:1;
  5252. vuint32_t LVFCH:1;
  5253. vuint32_t LVFC50:1;
  5254. vuint32_t LVFC33:1;
  5255. vuint32_t LVFCC:1;
  5256. vuint32_t:3;
  5257. vuint32_t LVFR:1;
  5258. vuint32_t LVFH:1;
  5259. vuint32_t LVF50:1;
  5260. vuint32_t LVF33:1;
  5261. vuint32_t LVFC:1;
  5262. vuint32_t:3;
  5263. } B;
  5264. } SR; /* status register @baseaddress + 0x00 */
  5265. };
  5266. /****************************************************************************/
  5267. /* MODULE : MPU */
  5268. /****************************************************************************/
  5269. struct MPU_tag {
  5270. union { /* Module Control/Error Status Register */
  5271. vuint32_t R;
  5272. struct {
  5273. vuint32_t SPERR:8;
  5274. vuint32_t:4;
  5275. vuint32_t HRL:4;
  5276. vuint32_t NSP:4;
  5277. vuint32_t NRGD:4;
  5278. vuint32_t:7;
  5279. vuint32_t VLD:1;
  5280. } B;
  5281. } CESR;
  5282. uint32_t MPU_reserved0004[3]; /* 0x0004-0x000F */
  5283. struct {
  5284. union { /* MPU Error Address Registers */
  5285. vuint32_t R;
  5286. struct {
  5287. vuint32_t EADDR:32;
  5288. } B;
  5289. } EAR;
  5290. union { /* MPU Error Detail Registers */
  5291. vuint32_t R;
  5292. struct {
  5293. vuint32_t EACD:16;
  5294. vuint32_t EPID:8;
  5295. vuint32_t EMN:4;
  5296. vuint32_t EATTR:3;
  5297. vuint32_t ERW:1;
  5298. } B;
  5299. } EDR;
  5300. } PORT[2];
  5301. uint32_t MPU_reserved0020[248]; /* 0x0020-0x03FF */
  5302. struct {
  5303. union { /* Region Descriptor n Word 0 */
  5304. vuint32_t R;
  5305. struct {
  5306. vuint32_t SRTADDR:27;
  5307. vuint32_t:5;
  5308. } B;
  5309. } WORD0;
  5310. union { /* Region Descriptor n Word 1 */
  5311. vuint32_t R;
  5312. struct {
  5313. vuint32_t ENDADDR:27;
  5314. vuint32_t:5;
  5315. } B;
  5316. } WORD1;
  5317. union { /* Region Descriptor n Word 2 */
  5318. vuint32_t R;
  5319. struct {
  5320. vuint32_t M7RE:1;
  5321. vuint32_t M7WE:1;
  5322. vuint32_t M6RE:1;
  5323. vuint32_t M6WE:1;
  5324. vuint32_t:2;
  5325. vuint32_t M4RE:1;
  5326. vuint32_t M4WE:1;
  5327. vuint32_t M3PE:1;
  5328. vuint32_t M3SM:2;
  5329. vuint32_t M3UM:3;
  5330. vuint32_t M2PE:1;
  5331. vuint32_t M2SM:2;
  5332. vuint32_t M2UM:3;
  5333. vuint32_t M1PE:1;
  5334. vuint32_t M1SM:2;
  5335. vuint32_t M1UM:3;
  5336. vuint32_t M0PE:1;
  5337. vuint32_t M0SM:2;
  5338. vuint32_t M0UM:3;
  5339. } B;
  5340. } WORD2;
  5341. union { /* Region Descriptor n Word 3 */
  5342. vuint32_t R;
  5343. struct {
  5344. vuint32_t PID:8;
  5345. vuint32_t PIDMASK:8;
  5346. vuint32_t:15;
  5347. vuint32_t VLD:1;
  5348. } B;
  5349. } WORD3;
  5350. } RGD[16];
  5351. uint32_t MPU_reserved0500[192]; /* 0x0500-0x07FF */
  5352. union { /* Region Descriptor Alternate Access Control n */
  5353. vuint32_t R;
  5354. struct {
  5355. vuint32_t M7RE:1;
  5356. vuint32_t M7WE:1;
  5357. vuint32_t M6RE:1;
  5358. vuint32_t M6WE:1;
  5359. vuint32_t:2;
  5360. vuint32_t M4RE:1;
  5361. vuint32_t M4WE:1;
  5362. vuint32_t M3PE:1;
  5363. vuint32_t M3SM:2;
  5364. vuint32_t M3UM:3;
  5365. vuint32_t M2PE:1;
  5366. vuint32_t M2SM:2;
  5367. vuint32_t M2UM:3;
  5368. vuint32_t M1PE:1;
  5369. vuint32_t M1SM:2;
  5370. vuint32_t M1UM:3;
  5371. vuint32_t M0PE:1;
  5372. vuint32_t M0SM:2;
  5373. vuint32_t M0UM:3;
  5374. } B;
  5375. } RGDAAC[16];
  5376. uint32_t MPU_reserved0840[3568]; /* 0x0840-0x3FFF */
  5377. };
  5378. /****************************************************************************/
  5379. /* MODULE : TSENS (Temperature Sensor) */
  5380. /****************************************************************************/
  5381. struct TSENS_tag {
  5382. union {
  5383. vuint32_t R;
  5384. struct {
  5385. vuint32_t TSCV2:16;
  5386. vuint32_t TSCV1:16;
  5387. } B;
  5388. } TCCR0; /* Temperature Sensor Calibration B @baseaddress + 0x00 */
  5389. union {
  5390. vuint32_t R;
  5391. struct {
  5392. vuint32_t:16;
  5393. vuint32_t TSCV3:16;
  5394. } B;
  5395. } TCCR1; /* Temperature Sensor Calibration A @baseaddress + 0x04 */
  5396. uint32_t TSENS_reserved0008[16382]; /* 0x0008-0xFFFF */
  5397. };
  5398. /****************************************************************************/
  5399. /* MODULE : DTS (Development Trigger Semaphor) */
  5400. /****************************************************************************/
  5401. struct DTS_tag {
  5402. union {
  5403. vuint32_t R;
  5404. struct {
  5405. vuint32_t:31;
  5406. vuint32_t DTS_EN:1;
  5407. }B;
  5408. } ENABLE; /* DTS Output Enable Register @baseaddress + 0x0 */
  5409. union {
  5410. vuint32_t R;
  5411. struct{
  5412. vuint32_t AD31:1;
  5413. vuint32_t AD30:1;
  5414. vuint32_t AD29:1;
  5415. vuint32_t AD28:1;
  5416. vuint32_t AD27:1;
  5417. vuint32_t AD26:1;
  5418. vuint32_t AD25:1;
  5419. vuint32_t AD24:1;
  5420. vuint32_t AD23:1;
  5421. vuint32_t AD22:1;
  5422. vuint32_t AD21:1;
  5423. vuint32_t AD20:1;
  5424. vuint32_t AD19:1;
  5425. vuint32_t AD18:1;
  5426. vuint32_t AD17:1;
  5427. vuint32_t AD16:1;
  5428. vuint32_t AD15:1;
  5429. vuint32_t AD14:1;
  5430. vuint32_t AD13:1;
  5431. vuint32_t AD12:1;
  5432. vuint32_t AD11:1;
  5433. vuint32_t AD10:1;
  5434. vuint32_t AD9:1;
  5435. vuint32_t AD8:1;
  5436. vuint32_t AD7:1;
  5437. vuint32_t AD6:1;
  5438. vuint32_t AD5:1;
  5439. vuint32_t AD4:1;
  5440. vuint32_t AD3:1;
  5441. vuint32_t AD2:1;
  5442. vuint32_t AD1:1;
  5443. vuint32_t AD0:1;
  5444. }B;
  5445. } STARTUP; /* DTS Startup Register @baseaddress + 0x4 */
  5446. union {
  5447. vuint32_t R;
  5448. struct {
  5449. vuint32_t ST31:1;
  5450. vuint32_t ST30:1;
  5451. vuint32_t ST29:1;
  5452. vuint32_t ST28:1;
  5453. vuint32_t ST27:1;
  5454. vuint32_t ST26:1;
  5455. vuint32_t ST25:1;
  5456. vuint32_t ST24:1;
  5457. vuint32_t ST23:1;
  5458. vuint32_t ST22:1;
  5459. vuint32_t ST21:1;
  5460. vuint32_t ST20:1;
  5461. vuint32_t ST19:1;
  5462. vuint32_t ST18:1;
  5463. vuint32_t ST17:1;
  5464. vuint32_t ST16:1;
  5465. vuint32_t ST15:1;
  5466. vuint32_t ST14:1;
  5467. vuint32_t ST13:1;
  5468. vuint32_t ST12:1;
  5469. vuint32_t ST11:1;
  5470. vuint32_t ST10:1;
  5471. vuint32_t ST9:1;
  5472. vuint32_t ST8:1;
  5473. vuint32_t ST7:1;
  5474. vuint32_t ST6:1;
  5475. vuint32_t ST5:1;
  5476. vuint32_t ST4:1;
  5477. vuint32_t ST3:1;
  5478. vuint32_t ST2:1;
  5479. vuint32_t ST1:1;
  5480. vuint32_t ST0:1;
  5481. }B;
  5482. } SEMAPHORE; /* DTS Semaphore Register @baseaddress + 0x8 */
  5483. uint32_t DTS_reserved000C[16381]; /* 0x000C-0xFFFF */
  5484. };
  5485. /****************************************************************************/
  5486. /* MODULE : REACM (Reaction Module) */
  5487. /****************************************************************************/
  5488. struct REACM_tag {
  5489. union {
  5490. vuint32_t R;
  5491. struct {
  5492. vuint32_t OVRC:1;
  5493. vuint32_t MDIS:1;
  5494. vuint32_t FRZ:1;
  5495. vuint32_t:1;
  5496. vuint32_t FREN:1;
  5497. vuint32_t TPREN:1;
  5498. vuint32_t HPREN:1;
  5499. vuint32_t GIEN:1;
  5500. vuint32_t OVREN:1;
  5501. vuint32_t:23;
  5502. } B;
  5503. } MCR; /* REACM Module Configuration @baseaddress + 0x0 */
  5504. union {
  5505. vuint32_t R;
  5506. struct {
  5507. vuint32_t:4;
  5508. vuint32_t HPRE:12;
  5509. vuint32_t:8;
  5510. vuint32_t TPRE:8;
  5511. } B;
  5512. } TCR; /* REACM Timer Configuration @baseaddress + 0x4 */
  5513. union {
  5514. vuint32_t R;
  5515. struct {
  5516. vuint32_t:6;
  5517. vuint32_t WREN1:1;
  5518. vuint32_t WREN0:1;
  5519. vuint32_t:12;
  5520. vuint32_t THRADC1:4;
  5521. vuint32_t:4;
  5522. vuint32_t THRADC0:4;
  5523. } B;
  5524. } THRR; /* REACM Threshold Router @baseaddress + 0x8 */
  5525. uint32_t REACM_reserved000C[1]; /* 0x000C-0x000F */
  5526. union {
  5527. vuint32_t R;
  5528. struct {
  5529. vuint32_t:12;
  5530. vuint32_t ADC_TAG:4;
  5531. vuint32_t ADC_RESULT:16;
  5532. } B;
  5533. } SINR; /* REACM ADC Sensor Input Register @baseaddress + 0x10 */
  5534. uint32_t REACM_reserved0014[3]; /* 0x0014-0x0001F */
  5535. union {
  5536. vuint32_t R;
  5537. struct {
  5538. vuint32_t OVR:1;
  5539. vuint32_t:26;
  5540. vuint32_t EF4:1;
  5541. vuint32_t EF3:1;
  5542. vuint32_t EF2:1;
  5543. vuint32_t EF1:1;
  5544. vuint32_t EF0:1;
  5545. } B;
  5546. } GEFR; /* REACM Global Error Flag @baseaddress + 0x20 */
  5547. uint32_t REACM_reserved0024[55]; /* 0x0024-0x00FF */
  5548. struct {
  5549. union {
  5550. vuint32_t R;
  5551. struct {
  5552. vuint32_t CHEN:2;
  5553. vuint32_t SWMC:1;
  5554. vuint32_t MAXLEN:1;
  5555. vuint32_t OCDFEN:1;
  5556. vuint32_t SCDFEN:1;
  5557. vuint32_t TAEREN:1;
  5558. vuint32_t SQEREN:1;
  5559. vuint32_t RAEREN:1;
  5560. vuint32_t:1;
  5561. vuint32_t CHOFF:1;
  5562. vuint32_t:2;
  5563. vuint32_t DOFF:3;
  5564. vuint32_t:5;
  5565. vuint32_t BSB:3;
  5566. vuint32_t:2;
  5567. vuint32_t MODULATION_ADDR:6;
  5568. } B;
  5569. } CR; /* REACM Channel n Configuration @baseaddress + 0x100 + (n*0x10) + 0x0 */
  5570. union {
  5571. vuint32_t R;
  5572. struct {
  5573. vuint32_t:2;
  5574. vuint32_t MODACT:1;
  5575. vuint32_t MAXL:1;
  5576. vuint32_t OCDF:1;
  5577. vuint32_t SCDF:1;
  5578. vuint32_t TAER:1;
  5579. vuint32_t SQER:1;
  5580. vuint32_t RAER:1;
  5581. vuint32_t CHOUT:3;
  5582. vuint32_t:7;
  5583. vuint32_t MAXLC:1;
  5584. vuint32_t OCDFC:1;
  5585. vuint32_t SCDFC:1;
  5586. vuint32_t TAERC:1;
  5587. vuint32_t SQERC:1;
  5588. vuint32_t RAERC:1;
  5589. vuint32_t:1;
  5590. vuint32_t MODULATION_POINTER:6;
  5591. } B;
  5592. } SR; /* REACM Channel n Status @baseaddress + 0x100 + (n*0x10) + 0x4 */
  5593. union {
  5594. vuint32_t R;
  5595. struct {
  5596. vuint32_t:12;
  5597. vuint32_t ADCR:4;
  5598. vuint32_t:12;
  5599. vuint32_t CHIR:4;
  5600. } B;
  5601. } RR; /* REACM Channel n Router @baseaddress + 0x100 + (n*0x10) + 0x8 */
  5602. uint32_t REACM_reserved01xC; /* 0x01xC-0x01xF */
  5603. } CH[6];
  5604. uint32_t REACM_reserved0160[104]; /* 0x0160-0x02FF */
  5605. union {
  5606. vuint32_t R;
  5607. struct {
  5608. vuint32_t:16;
  5609. vuint32_t SHARED_TIMER:16;
  5610. } B;
  5611. } STBK[16]; /* REACM Shared Timer Bank @baseaddress + 0x300 */
  5612. uint32_t REACM_reserved0340[16]; /* 0x0340-0x037F */
  5613. union {
  5614. vuint32_t R;
  5615. struct {
  5616. vuint32_t:20;
  5617. vuint32_t HOLD_OFF:12;
  5618. } B;
  5619. } HOTBK[16]; /* REACM Hold-off Timer Bank @baseaddress + 0x380 */
  5620. uint32_t REACM_reserved03C0[16]; /* 0x03C0-0x03FF */
  5621. union {
  5622. vuint32_t R;
  5623. struct {
  5624. vuint32_t:16;
  5625. vuint32_t THRESHOLD_VALUE:16;
  5626. } B;
  5627. } THBK[32]; /* REACM Threshold Timer Bank @baseaddress + 0x400 */
  5628. uint32_t REACM_reserved0480[96]; /* 0x0480-0x05FF */
  5629. union {
  5630. vuint32_t R;
  5631. struct {
  5632. vuint32_t:16;
  5633. vuint32_t ADC_MAX_LIMIT:16;
  5634. } B;
  5635. } ADCMAX; /* REACM ADC Result Max Limit Check @baseaddress + 0x600 */
  5636. uint32_t REACM_reserved0604[31]; /* 0x0604-0x067F */
  5637. union {
  5638. vuint32_t R;
  5639. struct {
  5640. vuint32_t:20;
  5641. vuint32_t RANGE_PWD:12;
  5642. } B;
  5643. } RANGEPWD; /* REACM Modulation Range Pulse Width @baseaddress + 0x680 */
  5644. uint32_t REACM_reserved0684[15]; /* 0x0684-0x06BF */
  5645. union {
  5646. vuint32_t R;
  5647. struct {
  5648. vuint32_t:20;
  5649. vuint32_t MIN_PWD:12;
  5650. } B;
  5651. } MINPWD; /* REACM Modulation Minimum Pulse Width @baseaddress + 0x6C0 */
  5652. uint32_t REACM_reserved06C4[15]; /* 0x06C4-0x06FF */
  5653. union {
  5654. vuint32_t R;
  5655. struct {
  5656. vuint32_t LOOP:1;
  5657. vuint32_t IOSS:1;
  5658. vuint32_t:1;
  5659. vuint32_t MM:2;
  5660. vuint32_t:1;
  5661. vuint32_t SM:2;
  5662. vuint32_t:1;
  5663. vuint32_t HOD:3;
  5664. vuint32_t:1;
  5665. vuint32_t LOD:3;
  5666. vuint32_t:1;
  5667. vuint32_t THRESPT:6;
  5668. vuint32_t STPT:4;
  5669. vuint32_t:1;
  5670. vuint32_t HDOFFTPT:4;
  5671. } B;
  5672. } MWBK[64]; /* REACM Modulation Control Word Bank @baseaddress + 0x700 */
  5673. };
  5674. /* Define memories */
  5675. #define SRAM_START 0x40000000
  5676. #define SRAM_SIZE 0x30000
  5677. #define SRAM_END 0x4002FFFF
  5678. #define FLASH_START 0x00000000
  5679. #define FLASH_SIZE 0x400000
  5680. #define FLASH_END 0x003FFFFF
  5681. /* Define instances of modules */
  5682. #define FMPLL (*( volatile struct FMPLL_tag *) 0xC3F80000)
  5683. #define EBI (*( volatile struct EBI_tag *) 0xC3F84000)
  5684. #define FLASH_A (*( volatile struct FLASH_tag *) 0xC3F88000)
  5685. #define FLASH_B (*( volatile struct FLASH_tag *) 0xC3F8C000)
  5686. #define SIU (*( volatile struct SIU_tag *) 0xC3F90000)
  5687. #define DTS (*( volatile struct DTS_tag *) 0xC3F9C000)
  5688. #define EMIOS (*( volatile struct EMIOS_tag *) 0xC3FA0000)
  5689. #define PMC (*( volatile struct PMC_tag *) 0xC3FBC000)
  5690. #define ETPU (*( volatile struct ETPU_tag *) 0xC3FC0000)
  5691. #define ETPU_DATA_RAM (*( uint32_t *) 0xC3FC8000)
  5692. #define ETPU_DATA_RAM_END 0xC3FC8BFC
  5693. #define ETPU_DATA_RAM_EXT (*( uint32_t *) 0xC3FCC000)
  5694. #define CODE_RAM (*( uint32_t *) 0xC3FD0000)
  5695. #define ETPU_CODE_RAM (*( uint32_t *) 0xC3FD0000)
  5696. #define REACM (*( volatile struct REACM_tag *) 0xC3FC7000)
  5697. #define PIT (*( volatile struct PIT_tag *) 0xC3FF0000)
  5698. #define CRC (*( volatile struct CRC_tag *) 0xFFE68000)
  5699. #define PBRIDGE (*( volatile struct PBRIDGE_tag *) 0xFFF00000)
  5700. #define XBAR (*( volatile struct XBAR_tag *) 0xFFF04000)
  5701. #define MPU (*( volatile struct MPU_tag *) 0xFFF10000)
  5702. #define SWT (*( volatile struct SWT_tag *) 0xFFF38000)
  5703. #define STM (*( volatile struct STM_tag *) 0xFFF3C000)
  5704. #define ECSM (*( volatile struct ECSM_tag *) 0xFFF40000)
  5705. #define EDMA (*( volatile struct EDMA_tag *) 0xFFF44000)
  5706. #define INTC (*( volatile struct INTC_tag *) 0xFFF48000)
  5707. #define EQADC (*( volatile struct EQADC_tag *) 0xFFF80000)
  5708. #define DECFIL_A (*( volatile struct DECFIL_tag *) 0xFFF88000)
  5709. #define DECFIL_B (*( volatile struct DECFIL_tag *) 0xFFF8C000)
  5710. #define DSPI_B (*( volatile struct DSPI_tag *) 0xFFF94000)
  5711. #define DSPI_C (*( volatile struct DSPI_tag *) 0xFFF98000)
  5712. #define DSPI_D (*( volatile struct DSPI_tag *) 0xFFF9C000)
  5713. #define ESCI_A (*( volatile struct ESCI_tag *) 0xFFFB0000)
  5714. #define ESCI_B (*( volatile struct ESCI_tag *) 0xFFFB4000)
  5715. #define ESCI_C (*( volatile struct ESCI_tag *) 0xFFFB8000)
  5716. #define CAN_A (*( volatile struct FLEXCAN2_tag *) 0xFFFC0000)
  5717. #define CAN_B (*( volatile struct FLEXCAN2_tag *) 0xFFFC4000)
  5718. #define CAN_C (*( volatile struct FLEXCAN2_tag *) 0xFFFC8000)
  5719. #define FR (*( volatile struct FR_tag *) 0xFFFE0000)
  5720. #define TSENS (*( volatile struct TSENS_tag *) 0xFFFEC000)
  5721. #ifdef __MWERKS__
  5722. #pragma pop
  5723. #endif
  5724. #ifdef __cplusplus
  5725. }
  5726. #endif
  5727. #endif /* ifdef _MPC5644_H */
  5728. /*********************************************************************
  5729. *
  5730. * Copyright:
  5731. * Freescale Semiconductor, INC. & STMicroelectronics All Rights Reserved.
  5732. * You are hereby granted a copyright license to use, modify, and
  5733. * distribute the SOFTWARE so long as this entire notice is
  5734. * retained without alteration in any modified and/or redistributed
  5735. * versions, and that such modified versions are clearly identified
  5736. * as such. No licenses are granted by implication, estoppel or
  5737. * otherwise under any patents or trademarks of Freescale
  5738. * Semiconductor, Inc. This software is provided on an "AS IS"
  5739. * basis and without warranty.
  5740. *
  5741. * To the maximum extent permitted by applicable law, Freescale
  5742. * Semiconductor & STMicroelectronics DISCLAIMS ALL WARRANTIES WHETHER
  5743. * EXPRESS OR IMPLIED,INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR
  5744. * FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH
  5745. * REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
  5746. * AND ANY ACCOMPANYING WRITTEN MATERIALS.
  5747. *
  5748. * To the maximum extent permitted by applicable law, IN NO EVENT
  5749. * SHALL Freescale Semiconductor or STMicroelectronics BE LIABLE FOR ANY
  5750. * DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF
  5751. * BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION,
  5752. * OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.
  5753. *
  5754. * Freescale Semiconductor & STMicroelectronics assumes no responsibility
  5755. * for the maintenance and support of this software
  5756. *
  5757. ********************************************************************/