stm32h753xx.h 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570
  1. /**
  2. ******************************************************************************
  3. * @file stm32h753xx.h
  4. * @author MCD Application Team
  5. * @version V1.1.0
  6. * @date 31-August-2017
  7. * @brief CMSIS STM32H753xx Device Peripheral Access Layer Header File.
  8. *
  9. * This file contains:
  10. * - Data structures and the address mapping for all peripherals
  11. * - Peripheral's registers declarations and bits definition
  12. * - Macros to access peripheral’s registers hardware
  13. *
  14. ******************************************************************************
  15. * @attention
  16. *
  17. * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  18. *
  19. * Redistribution and use in source and binary forms, with or without modification,
  20. * are permitted provided that the following conditions are met:
  21. * 1. Redistributions of source code must retain the above copyright notice,
  22. * this list of conditions and the following disclaimer.
  23. * 2. Redistributions in binary form must reproduce the above copyright notice,
  24. * this list of conditions and the following disclaimer in the documentation
  25. * and/or other materials provided with the distribution.
  26. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  27. * may be used to endorse or promote products derived from this software
  28. * without specific prior written permission.
  29. *
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  31. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  32. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  33. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  34. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  36. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  37. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  38. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. *
  41. ******************************************************************************
  42. */
  43. /** @addtogroup CMSIS_Device
  44. * @{
  45. */
  46. /** @addtogroup stm32h753xx
  47. * @{
  48. */
  49. #ifndef __STM32H753xx_H
  50. #define __STM32H753xx_H
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif /* __cplusplus */
  54. /** @addtogroup Peripheral_interrupt_number_definition
  55. * @{
  56. */
  57. /**
  58. * @brief STM32H7XX Interrupt Number Definition, according to the selected device
  59. * in @ref Library_configuration_section
  60. */
  61. typedef enum
  62. {
  63. /****** Cortex-M Processor Exceptions Numbers *****************************************************************/
  64. NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
  65. HardFault_IRQn = -13, /*!< 4 Cortex-M Memory Management Interrupt */
  66. MemoryManagement_IRQn = -12, /*!< 4 Cortex-M Memory Management Interrupt */
  67. BusFault_IRQn = -11, /*!< 5 Cortex-M Bus Fault Interrupt */
  68. UsageFault_IRQn = -10, /*!< 6 Cortex-M Usage Fault Interrupt */
  69. SVCall_IRQn = -5, /*!< 11 Cortex-M SV Call Interrupt */
  70. DebugMonitor_IRQn = -4, /*!< 12 Cortex-M Debug Monitor Interrupt */
  71. PendSV_IRQn = -2, /*!< 14 Cortex-M Pend SV Interrupt */
  72. SysTick_IRQn = -1, /*!< 15 Cortex-M System Tick Interrupt */
  73. /****** STM32 specific Interrupt Numbers **********************************************************************/
  74. WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
  75. PVD_AVD_IRQn = 1, /*!< PVD/AVD through EXTI Line detection Interrupt */
  76. TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */
  77. RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */
  78. FLASH_IRQn = 4, /*!< FLASH global Interrupt */
  79. RCC_IRQn = 5, /*!< RCC global Interrupt */
  80. EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
  81. EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
  82. EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */
  83. EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
  84. EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
  85. DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */
  86. DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */
  87. DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */
  88. DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */
  89. DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */
  90. DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */
  91. DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */
  92. ADC_IRQn = 18, /*!< ADC1 and ADC2 global Interrupts */
  93. FDCAN1_IT0_IRQn = 19, /*!< FDCAN1 Interrupt line 0 */
  94. FDCAN2_IT0_IRQn = 20, /*!< FDCAN2 Interrupt line 0 */
  95. FDCAN1_IT1_IRQn = 21, /*!< FDCAN1 Interrupt line 1 */
  96. FDCAN2_IT1_IRQn = 22, /*!< FDCAN2 Interrupt line 1 */
  97. EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
  98. TIM1_BRK_IRQn = 24, /*!< TIM1 Break Interrupt */
  99. TIM1_UP_IRQn = 25, /*!< TIM1 Update Interrupt */
  100. TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */
  101. TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */
  102. TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
  103. TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
  104. TIM4_IRQn = 30, /*!< TIM4 global Interrupt */
  105. I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */
  106. I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
  107. I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */
  108. I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */
  109. SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
  110. SPI2_IRQn = 36, /*!< SPI2 global Interrupt */
  111. USART1_IRQn = 37, /*!< USART1 global Interrupt */
  112. USART2_IRQn = 38, /*!< USART2 global Interrupt */
  113. USART3_IRQn = 39, /*!< USART3 global Interrupt */
  114. EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
  115. RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */
  116. TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */
  117. TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */
  118. TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */
  119. TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */
  120. DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */
  121. FMC_IRQn = 48, /*!< FMC global Interrupt */
  122. SDMMC1_IRQn = 49, /*!< SDMMC1 global Interrupt */
  123. TIM5_IRQn = 50, /*!< TIM5 global Interrupt */
  124. SPI3_IRQn = 51, /*!< SPI3 global Interrupt */
  125. UART4_IRQn = 52, /*!< UART4 global Interrupt */
  126. UART5_IRQn = 53, /*!< UART5 global Interrupt */
  127. TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */
  128. TIM7_IRQn = 55, /*!< TIM7 global interrupt */
  129. DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */
  130. DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */
  131. DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */
  132. DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */
  133. DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */
  134. ETH_IRQn = 61, /*!< Ethernet global Interrupt */
  135. ETH_WKUP_IRQn = 62, /*!< Ethernet Wakeup through EXTI line Interrupt */
  136. FDCAN_CAL_IRQn = 63, /*!< FDCAN Calibration unit Interrupt */
  137. DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */
  138. DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */
  139. DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */
  140. USART6_IRQn = 71, /*!< USART6 global interrupt */
  141. I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */
  142. I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */
  143. OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */
  144. OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */
  145. OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */
  146. OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */
  147. DCMI_IRQn = 78, /*!< DCMI global interrupt */
  148. CRYP_IRQn = 79, /*!< CRYP crypto global interrupt */
  149. HASH_RNG_IRQn = 80, /*!< Hash and Rng global interrupt */
  150. FPU_IRQn = 81, /*!< FPU global interrupt */
  151. UART7_IRQn = 82, /*!< UART7 global interrupt */
  152. UART8_IRQn = 83, /*!< UART8 global interrupt */
  153. SPI4_IRQn = 84, /*!< SPI4 global Interrupt */
  154. SPI5_IRQn = 85, /*!< SPI5 global Interrupt */
  155. SPI6_IRQn = 86, /*!< SPI6 global Interrupt */
  156. SAI1_IRQn = 87, /*!< SAI1 global Interrupt */
  157. LTDC_IRQn = 88, /*!< LTDC global Interrupt */
  158. LTDC_ER_IRQn = 89, /*!< LTDC Error global Interrupt */
  159. DMA2D_IRQn = 90, /*!< DMA2D global Interrupt */
  160. SAI2_IRQn = 91, /*!< SAI2 global Interrupt */
  161. QUADSPI_IRQn = 92, /*!< Quad SPI global interrupt */
  162. LPTIM1_IRQn = 93, /*!< LP TIM1 interrupt */
  163. CEC_IRQn = 94, /*!< HDMI-CEC global Interrupt */
  164. I2C4_EV_IRQn = 95, /*!< I2C4 Event Interrupt */
  165. I2C4_ER_IRQn = 96, /*!< I2C4 Error Interrupt */
  166. SPDIF_RX_IRQn = 97, /*!< SPDIF-RX global Interrupt */
  167. OTG_FS_EP1_OUT_IRQn = 98, /*!< USB OTG HS2 global interrupt */
  168. OTG_FS_EP1_IN_IRQn = 99, /*!< USB OTG HS2 End Point 1 Out global interrupt */
  169. OTG_FS_WKUP_IRQn = 100, /*!< USB OTG HS2 End Point 1 In global interrupt */
  170. OTG_FS_IRQn = 101, /*!< USB OTG HS2 Wakeup through EXTI interrupt */
  171. DMAMUX1_OVR_IRQn = 102, /*!<DMAMUX1 Overrun interrupt */
  172. HRTIM1_Master_IRQn = 103, /*!< HRTIM Master Timer global Interrupts */
  173. HRTIM1_TIMA_IRQn = 104, /*!< HRTIM Timer A global Interrupt */
  174. HRTIM1_TIMB_IRQn = 105, /*!< HRTIM Timer B global Interrupt */
  175. HRTIM1_TIMC_IRQn = 106, /*!< HRTIM Timer C global Interrupt */
  176. HRTIM1_TIMD_IRQn = 107, /*!< HRTIM Timer D global Interrupt */
  177. HRTIM1_TIME_IRQn = 108, /*!< HRTIM Timer E global Interrupt */
  178. HRTIM1_FLT_IRQn = 109, /*!< HRTIM Fault global Interrupt */
  179. DFSDM1_FLT0_IRQn = 110, /*!<DFSDM Filter1 Interrupt */
  180. DFSDM1_FLT1_IRQn = 111, /*!<DFSDM Filter2 Interrupt */
  181. DFSDM1_FLT2_IRQn = 112, /*!<DFSDM Filter3 Interrupt */
  182. DFSDM1_FLT3_IRQn = 113, /*!<DFSDM Filter4 Interrupt */
  183. SAI3_IRQn = 114, /*!< SAI3 global Interrupt */
  184. SWPMI1_IRQn = 115, /*!< Serial Wire Interface 1 global interrupt */
  185. TIM15_IRQn = 116, /*!< TIM15 global Interrupt */
  186. TIM16_IRQn = 117, /*!< TIM16 global Interrupt */
  187. TIM17_IRQn = 118, /*!< TIM17 global Interrupt */
  188. MDIOS_WKUP_IRQn = 119, /*!< MDIOS Wakeup Interrupt */
  189. MDIOS_IRQn = 120, /*!< MDIOS global Interrupt */
  190. JPEG_IRQn = 121, /*!< JPEG global Interrupt */
  191. MDMA_IRQn = 122, /*!< MDMA global Interrupt */
  192. SDMMC2_IRQn = 124, /*!< SDMMC2 global Interrupt */
  193. HSEM1_IRQn = 125, /*!< HSEM1 global Interrupt */
  194. ADC3_IRQn = 127, /*!< ADC3 global Interrupt */
  195. DMAMUX2_OVR_IRQn = 128, /*!<DMAMUX2 Overrun interrupt */
  196. BDMA_Channel0_IRQn = 129, /*!< BDMA Channel 0 global Interrupt */
  197. BDMA_Channel1_IRQn = 130, /*!< BDMA Channel 1 global Interrupt */
  198. BDMA_Channel2_IRQn = 131, /*!< BDMA Channel 2 global Interrupt */
  199. BDMA_Channel3_IRQn = 132, /*!< BDMA Channel 3 global Interrupt */
  200. BDMA_Channel4_IRQn = 133, /*!< BDMA Channel 4 global Interrupt */
  201. BDMA_Channel5_IRQn = 134, /*!< BDMA Channel 5 global Interrupt */
  202. BDMA_Channel6_IRQn = 135, /*!< BDMA Channel 6 global Interrupt */
  203. BDMA_Channel7_IRQn = 136, /*!< BDMA Channel 7 global Interrupt */
  204. COMP_IRQn = 137 , /*!< COMP global Interrupt */
  205. LPTIM2_IRQn = 138, /*!< LP TIM2 global interrupt */
  206. LPTIM3_IRQn = 139, /*!< LP TIM3 global interrupt */
  207. LPTIM4_IRQn = 140, /*!< LP TIM4 global interrupt */
  208. LPTIM5_IRQn = 141, /*!< LP TIM5 global interrupt */
  209. LPUART1_IRQn = 142, /*!< LP UART1 interrupt */
  210. CRS_IRQn = 144, /*!< Clock Recovery Global Interrupt */
  211. SAI4_IRQn = 146, /*!< SAI4 global interrupt */
  212. WAKEUP_PIN_IRQn = 149, /*!< Interrupt for all 6 wake-up pins */
  213. } IRQn_Type;
  214. /**
  215. * @}
  216. */
  217. /** @addtogroup Configuration_section_for_CMSIS
  218. * @{
  219. */
  220. /**
  221. * @brief Configuration of the Cortex-M7 Processor and Core Peripherals
  222. */
  223. #define __CM7_REV 0x0100U /*!< Cortex-M7 revision r1p0 */
  224. #define __MPU_PRESENT 1 /*!< CM7 provides an MPU */
  225. #define __NVIC_PRIO_BITS 4 /*!< CM7 uses 4 Bits for the Priority Levels */
  226. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  227. #define __FPU_PRESENT 1 /*!< FPU present */
  228. #define __ICACHE_PRESENT 1 /*!< CM7 instruction cache present */
  229. #define __DCACHE_PRESENT 1 /*!< CM7 data cache present */
  230. #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
  231. /**
  232. * @}
  233. */
  234. #include "system_stm32h7xx.h"
  235. #include <stdint.h>
  236. /** @addtogroup Peripheral_registers_structures
  237. * @{
  238. */
  239. /**
  240. * @brief Analog to Digital Converter
  241. */
  242. typedef struct
  243. {
  244. __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */
  245. __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */
  246. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  247. __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */
  248. __IO uint32_t CFGR2; /*!< ADC Configuration register 2, Address offset: 0x10 */
  249. __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */
  250. __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */
  251. __IO uint32_t PCSEL; /*!< ADC pre-channel selection, Address offset: 0x1C */
  252. __IO uint32_t LTR1; /*!< ADC watchdog Lower threshold register 1, Address offset: 0x20 */
  253. __IO uint32_t HTR1; /*!< ADC watchdog higher threshold register 1, Address offset: 0x24 */
  254. uint32_t RESERVED1; /*!< Reserved, 0x028 */
  255. uint32_t RESERVED2; /*!< Reserved, 0x02C */
  256. __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */
  257. __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */
  258. __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */
  259. __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */
  260. __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */
  261. uint32_t RESERVED3; /*!< Reserved, 0x044 */
  262. uint32_t RESERVED4; /*!< Reserved, 0x048 */
  263. __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */
  264. uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */
  265. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  266. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  267. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  268. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  269. uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */
  270. __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */
  271. __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */
  272. __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */
  273. __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */
  274. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  275. __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */
  276. __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */
  277. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  278. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  279. __IO uint32_t LTR2; /*!< ADC watchdog Lower threshold register 2, Address offset: 0xB0 */
  280. __IO uint32_t HTR2; /*!< ADC watchdog Higher threshold register 2, Address offset: 0xB4 */
  281. __IO uint32_t LTR3; /*!< ADC watchdog Lower threshold register 3, Address offset: 0xB8 */
  282. __IO uint32_t HTR3; /*!< ADC watchdog Higher threshold register 3, Address offset: 0xBC */
  283. __IO uint32_t DIFSEL; /*!< ADC Differential Mode Selection Register, Address offset: 0xC0 */
  284. __IO uint32_t CALFACT; /*!< ADC Calibration Factors, Address offset: 0xC4 */
  285. __IO uint32_t CALFACT2; /*!< ADC Linearity Calibration Factors, Address offset: 0xC8 */
  286. } ADC_TypeDef;
  287. typedef struct
  288. {
  289. __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */
  290. uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */
  291. __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */
  292. __IO uint32_t CDR; /*!< ADC common regular data register for dual Address offset: ADC1/3 base address + 0x30C */
  293. __IO uint32_t CDR2; /*!< ADC common regular data register for 32-bit dual mode Address offset: ADC1/3 base address + 0x310 */
  294. } ADC_Common_TypeDef;
  295. /**
  296. * @brief VREFBUF
  297. */
  298. typedef struct
  299. {
  300. __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
  301. __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
  302. } VREFBUF_TypeDef;
  303. /**
  304. * @brief FD Controller Area Network
  305. */
  306. typedef struct
  307. {
  308. __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */
  309. __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */
  310. __IO uint32_t RESERVED1; /*!< Reserved, 0x008 */
  311. __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */
  312. __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */
  313. __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */
  314. __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */
  315. __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */
  316. __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */
  317. __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */
  318. __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */
  319. __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */
  320. __IO uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */
  321. __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */
  322. __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */
  323. __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */
  324. __IO uint32_t RESERVED3; /*!< Reserved, 0x04C */
  325. __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */
  326. __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */
  327. __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */
  328. __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */
  329. __IO uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */
  330. __IO uint32_t GFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */
  331. __IO uint32_t SIDFC; /*!< FDCAN Standard ID Filter Configuration register, Address offset: 0x084 */
  332. __IO uint32_t XIDFC; /*!< FDCAN Extended ID Filter Configuration register, Address offset: 0x088 */
  333. __IO uint32_t RESERVED5; /*!< Reserved, 0x08C */
  334. __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x090 */
  335. __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x094 */
  336. __IO uint32_t NDAT1; /*!< FDCAN New Data 1 register, Address offset: 0x098 */
  337. __IO uint32_t NDAT2; /*!< FDCAN New Data 2 register, Address offset: 0x09C */
  338. __IO uint32_t RXF0C; /*!< FDCAN Rx FIFO 0 Configuration register, Address offset: 0x0A0 */
  339. __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x0A4 */
  340. __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x0A8 */
  341. __IO uint32_t RXBC; /*!< FDCAN Rx Buffer Configuration register, Address offset: 0x0AC */
  342. __IO uint32_t RXF1C; /*!< FDCAN Rx FIFO 1 Configuration register, Address offset: 0x0B0 */
  343. __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x0B4 */
  344. __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x0B8 */
  345. __IO uint32_t RXESC; /*!< FDCAN Rx Buffer/FIFO Element Size Configuration register, Address offset: 0x0BC */
  346. __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */
  347. __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */
  348. __IO uint32_t TXESC; /*!< FDCAN Tx Buffer Element Size Configuration register, Address offset: 0x0C8 */
  349. __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0CC */
  350. __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0D0 */
  351. __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D4 */
  352. __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D8 */
  353. __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0DC */
  354. __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0E0 */
  355. __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E4 */
  356. __IO uint32_t RESERVED6[2]; /*!< Reserved, 0x0E8 - 0x0EC */
  357. __IO uint32_t TXEFC; /*!< FDCAN Tx Event FIFO Configuration register, Address offset: 0x0F0 */
  358. __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0F4 */
  359. __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0F8 */
  360. __IO uint32_t RESERVED7; /*!< Reserved, 0x0FC */
  361. } FDCAN_GlobalTypeDef;
  362. /**
  363. * @brief TTFD Controller Area Network
  364. */
  365. typedef struct
  366. {
  367. __IO uint32_t TTTMC; /*!< TT Trigger Memory Configuration register, Address offset: 0x100 */
  368. __IO uint32_t TTRMC; /*!< TT Reference Message Configuration register, Address offset: 0x104 */
  369. __IO uint32_t TTOCF; /*!< TT Operation Configuration register, Address offset: 0x108 */
  370. __IO uint32_t TTMLM; /*!< TT Matrix Limits register, Address offset: 0x10C */
  371. __IO uint32_t TURCF; /*!< TUR Configuration register, Address offset: 0x110 */
  372. __IO uint32_t TTOCN; /*!< TT Operation Control register, Address offset: 0x114 */
  373. __IO uint32_t TTGTP; /*!< TT Global Time Preset register, Address offset: 0x118 */
  374. __IO uint32_t TTTMK; /*!< TT Time Mark register, Address offset: 0x11C */
  375. __IO uint32_t TTIR; /*!< TT Interrupt register, Address offset: 0x120 */
  376. __IO uint32_t TTIE; /*!< TT Interrupt Enable register, Address offset: 0x124 */
  377. __IO uint32_t TTILS; /*!< TT Interrupt Line Select register, Address offset: 0x128 */
  378. __IO uint32_t TTOST; /*!< TT Operation Status register, Address offset: 0x12C */
  379. __IO uint32_t TURNA; /*!< TT TUR Numerator Actual register, Address offset: 0x130 */
  380. __IO uint32_t TTLGT; /*!< TT Local and Global Time register, Address offset: 0x134 */
  381. __IO uint32_t TTCTC; /*!< TT Cycle Time and Count register, Address offset: 0x138 */
  382. __IO uint32_t TTCPT; /*!< TT Capture Time register, Address offset: 0x13C */
  383. __IO uint32_t TTCSM; /*!< TT Cycle Sync Mark register, Address offset: 0x140 */
  384. __IO uint32_t RESERVED1[111]; /*!< Reserved, 0x144 - 0x2FC */
  385. __IO uint32_t TTTS; /*!< TT Trigger Select register, Address offset: 0x300 */
  386. } TTCAN_TypeDef;
  387. /**
  388. * @brief FD Controller Area Network
  389. */
  390. typedef struct
  391. {
  392. __IO uint32_t CREL; /*!< Clock Calibration Unit Core Release register, Address offset: 0x00 */
  393. __IO uint32_t CCFG; /*!< Calibration Configuration register, Address offset: 0x04 */
  394. __IO uint32_t CSTAT; /*!< Calibration Status register, Address offset: 0x08 */
  395. __IO uint32_t CWD; /*!< Calibration Watchdog register, Address offset: 0x0C */
  396. __IO uint32_t IR; /*!< CCU Interrupt register, Address offset: 0x10 */
  397. __IO uint32_t IE; /*!< CCU Interrupt Enable register, Address offset: 0x14 */
  398. } FDCAN_ClockCalibrationUnit_TypeDef;
  399. /**
  400. * @brief Consumer Electronics Control
  401. */
  402. typedef struct
  403. {
  404. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  405. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  406. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  407. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  408. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  409. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  410. }CEC_TypeDef;
  411. /**
  412. * @brief CRC calculation unit
  413. */
  414. typedef struct
  415. {
  416. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  417. __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  418. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  419. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  420. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  421. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  422. } CRC_TypeDef;
  423. /**
  424. * @brief Clock Recovery System
  425. */
  426. typedef struct
  427. {
  428. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  429. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  430. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  431. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  432. } CRS_TypeDef;
  433. /**
  434. * @brief Digital to Analog Converter
  435. */
  436. typedef struct
  437. {
  438. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  439. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  440. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  441. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  442. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  443. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  444. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  445. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  446. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  447. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  448. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  449. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  450. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  451. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  452. __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
  453. __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
  454. __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
  455. __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
  456. __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
  457. __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
  458. } DAC_TypeDef;
  459. /**
  460. * @brief DFSDM module registers
  461. */
  462. typedef struct
  463. {
  464. __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
  465. __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
  466. __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
  467. __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
  468. __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
  469. __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
  470. __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
  471. __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
  472. __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
  473. __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
  474. __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
  475. __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
  476. __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
  477. __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
  478. __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
  479. } DFSDM_Filter_TypeDef;
  480. /**
  481. * @brief DFSDM channel configuration registers
  482. */
  483. typedef struct
  484. {
  485. __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
  486. __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
  487. __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
  488. short circuit detector register, Address offset: 0x08 */
  489. __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
  490. __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
  491. } DFSDM_Channel_TypeDef;
  492. /**
  493. * @brief Debug MCU
  494. */
  495. typedef struct
  496. {
  497. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  498. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  499. uint32_t RESERVED4[11]; /*!< Reserved, Address offset: 0x08 */
  500. __IO uint32_t APB3FZ1; /*!< Debug MCU APB3FZ1 freeze register, Address offset: 0x34 */
  501. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x38 */
  502. __IO uint32_t APB1LFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x3C */
  503. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x40 */
  504. __IO uint32_t APB1HFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x44 */
  505. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x48 */
  506. __IO uint32_t APB2FZ1; /*!< Debug MCU APB2FZ1 freeze register, Address offset: 0x4C */
  507. uint32_t RESERVED8; /*!< Reserved, Address offset: 0x50 */
  508. __IO uint32_t APB4FZ1; /*!< Debug MCU APB4FZ1 freeze register, Address offset: 0x54 */
  509. }DBGMCU_TypeDef;
  510. /**
  511. * @brief DCMI
  512. */
  513. typedef struct
  514. {
  515. __IO uint32_t CR; /*!< DCMI control register 1, Address offset: 0x00 */
  516. __IO uint32_t SR; /*!< DCMI status register, Address offset: 0x04 */
  517. __IO uint32_t RISR; /*!< DCMI raw interrupt status register, Address offset: 0x08 */
  518. __IO uint32_t IER; /*!< DCMI interrupt enable register, Address offset: 0x0C */
  519. __IO uint32_t MISR; /*!< DCMI masked interrupt status register, Address offset: 0x10 */
  520. __IO uint32_t ICR; /*!< DCMI interrupt clear register, Address offset: 0x14 */
  521. __IO uint32_t ESCR; /*!< DCMI embedded synchronization code register, Address offset: 0x18 */
  522. __IO uint32_t ESUR; /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */
  523. __IO uint32_t CWSTRTR; /*!< DCMI crop window start, Address offset: 0x20 */
  524. __IO uint32_t CWSIZER; /*!< DCMI crop window size, Address offset: 0x24 */
  525. __IO uint32_t DR; /*!< DCMI data register, Address offset: 0x28 */
  526. } DCMI_TypeDef;
  527. /**
  528. * @brief DMA Controller
  529. */
  530. typedef struct
  531. {
  532. __IO uint32_t CR; /*!< DMA stream x configuration register */
  533. __IO uint32_t NDTR; /*!< DMA stream x number of data register */
  534. __IO uint32_t PAR; /*!< DMA stream x peripheral address register */
  535. __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */
  536. __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */
  537. __IO uint32_t FCR; /*!< DMA stream x FIFO control register */
  538. } DMA_Stream_TypeDef;
  539. typedef struct
  540. {
  541. __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */
  542. __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */
  543. __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */
  544. __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */
  545. } DMA_TypeDef;
  546. typedef struct
  547. {
  548. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  549. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  550. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  551. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  552. } BDMA_Channel_TypeDef;
  553. typedef struct
  554. {
  555. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  556. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  557. } BDMA_TypeDef;
  558. typedef struct
  559. {
  560. __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register */
  561. }DMAMUX_Channel_TypeDef;
  562. typedef struct
  563. {
  564. __IO uint32_t CSR; /*!< DMA Channel Status Register */
  565. __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register */
  566. }DMAMUX_ChannelStatus_TypeDef;
  567. typedef struct
  568. {
  569. __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register */
  570. }DMAMUX_RequestGen_TypeDef;
  571. typedef struct
  572. {
  573. __IO uint32_t RGSR; /*!< DMA Request Generator Status Register */
  574. __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register */
  575. }DMAMUX_RequestGenStatus_TypeDef;
  576. /**
  577. * @brief MDMA Controller
  578. */
  579. typedef struct
  580. {
  581. __IO uint32_t GISR0; /*!< MDMA Global Interrupt/Status Register 0, Address offset: 0x00 */
  582. }MDMA_TypeDef;
  583. typedef struct
  584. {
  585. __IO uint32_t CISR; /*!< MDMA channel x interrupt/status register, Address offset: 0x40 */
  586. __IO uint32_t CIFCR; /*!< MDMA channel x interrupt flag clear register, Address offset: 0x44 */
  587. __IO uint32_t CESR; /*!< MDMA Channel x error status register, Address offset: 0x48 */
  588. __IO uint32_t CCR; /*!< MDMA channel x control register, Address offset: 0x4C */
  589. __IO uint32_t CTCR; /*!< MDMA channel x Transfer Configuration register, Address offset: 0x50 */
  590. __IO uint32_t CBNDTR; /*!< MDMA Channel x block number of data register, Address offset: 0x54 */
  591. __IO uint32_t CSAR; /*!< MDMA channel x source address register, Address offset: 0x58 */
  592. __IO uint32_t CDAR; /*!< MDMA channel x destination address register, Address offset: 0x5C */
  593. __IO uint32_t CBRUR; /*!< MDMA channel x Block Repeat address Update register, Address offset: 0x60 */
  594. __IO uint32_t CLAR; /*!< MDMA channel x Link Address register, Address offset: 0x64 */
  595. __IO uint32_t CTBR; /*!< MDMA channel x Trigger and Bus selection Register, Address offset: 0x68 */
  596. uint32_t RESERVED0; /*!< Reserved, 0x68 */
  597. __IO uint32_t CMAR; /*!< MDMA channel x Mask address register, Address offset: 0x70 */
  598. __IO uint32_t CMDR; /*!< MDMA channel x Mask Data register, Address offset: 0x74 */
  599. }MDMA_Channel_TypeDef;
  600. /**
  601. * @brief DMA2D Controller
  602. */
  603. typedef struct
  604. {
  605. __IO uint32_t CR; /*!< DMA2D Control Register, Address offset: 0x00 */
  606. __IO uint32_t ISR; /*!< DMA2D Interrupt Status Register, Address offset: 0x04 */
  607. __IO uint32_t IFCR; /*!< DMA2D Interrupt Flag Clear Register, Address offset: 0x08 */
  608. __IO uint32_t FGMAR; /*!< DMA2D Foreground Memory Address Register, Address offset: 0x0C */
  609. __IO uint32_t FGOR; /*!< DMA2D Foreground Offset Register, Address offset: 0x10 */
  610. __IO uint32_t BGMAR; /*!< DMA2D Background Memory Address Register, Address offset: 0x14 */
  611. __IO uint32_t BGOR; /*!< DMA2D Background Offset Register, Address offset: 0x18 */
  612. __IO uint32_t FGPFCCR; /*!< DMA2D Foreground PFC Control Register, Address offset: 0x1C */
  613. __IO uint32_t FGCOLR; /*!< DMA2D Foreground Color Register, Address offset: 0x20 */
  614. __IO uint32_t BGPFCCR; /*!< DMA2D Background PFC Control Register, Address offset: 0x24 */
  615. __IO uint32_t BGCOLR; /*!< DMA2D Background Color Register, Address offset: 0x28 */
  616. __IO uint32_t FGCMAR; /*!< DMA2D Foreground CLUT Memory Address Register, Address offset: 0x2C */
  617. __IO uint32_t BGCMAR; /*!< DMA2D Background CLUT Memory Address Register, Address offset: 0x30 */
  618. __IO uint32_t OPFCCR; /*!< DMA2D Output PFC Control Register, Address offset: 0x34 */
  619. __IO uint32_t OCOLR; /*!< DMA2D Output Color Register, Address offset: 0x38 */
  620. __IO uint32_t OMAR; /*!< DMA2D Output Memory Address Register, Address offset: 0x3C */
  621. __IO uint32_t OOR; /*!< DMA2D Output Offset Register, Address offset: 0x40 */
  622. __IO uint32_t NLR; /*!< DMA2D Number of Line Register, Address offset: 0x44 */
  623. __IO uint32_t LWR; /*!< DMA2D Line Watermark Register, Address offset: 0x48 */
  624. __IO uint32_t AMTCR; /*!< DMA2D AHB Master Timer Configuration Register, Address offset: 0x4C */
  625. uint32_t RESERVED[236]; /*!< Reserved, 0x50-0x3FF */
  626. __IO uint32_t FGCLUT[256]; /*!< DMA2D Foreground CLUT, Address offset:400-7FF */
  627. __IO uint32_t BGCLUT[256]; /*!< DMA2D Background CLUT, Address offset:800-BFF */
  628. } DMA2D_TypeDef;
  629. /**
  630. * @brief Ethernet MAC
  631. */
  632. typedef struct
  633. {
  634. __IO uint32_t MACCR;
  635. __IO uint32_t MACECR;
  636. __IO uint32_t MACPFR;
  637. __IO uint32_t MACWTR;
  638. __IO uint32_t MACHT0R;
  639. __IO uint32_t MACHT1R;
  640. uint32_t RESERVED1[14];
  641. __IO uint32_t MACVTR;
  642. uint32_t RESERVED2;
  643. __IO uint32_t MACVHTR;
  644. uint32_t RESERVED3;
  645. __IO uint32_t MACVIR;
  646. __IO uint32_t MACIVIR;
  647. uint32_t RESERVED4[2];
  648. __IO uint32_t MACTFCR;
  649. uint32_t RESERVED5[7];
  650. __IO uint32_t MACRFCR;
  651. uint32_t RESERVED6[7];
  652. __IO uint32_t MACISR;
  653. __IO uint32_t MACIER;
  654. __IO uint32_t MACRXTXSR;
  655. uint32_t RESERVED7;
  656. __IO uint32_t MACPCSR;
  657. __IO uint32_t MACRWKPFR;
  658. uint32_t RESERVED8[2];
  659. __IO uint32_t MACLCSR;
  660. __IO uint32_t MACLTCR;
  661. __IO uint32_t MACLETR;
  662. __IO uint32_t MAC1USTCR;
  663. uint32_t RESERVED9[12];
  664. __IO uint32_t MACVR;
  665. __IO uint32_t MACDR;
  666. uint32_t RESERVED10;
  667. __IO uint32_t MACHWF0R;
  668. __IO uint32_t MACHWF1R;
  669. __IO uint32_t MACHWF2R;
  670. uint32_t RESERVED11[54];
  671. __IO uint32_t MACMDIOAR;
  672. __IO uint32_t MACMDIODR;
  673. uint32_t RESERVED12[2];
  674. __IO uint32_t MACARPAR;
  675. uint32_t RESERVED13[59];
  676. __IO uint32_t MACA0HR;
  677. __IO uint32_t MACA0LR;
  678. __IO uint32_t MACA1HR;
  679. __IO uint32_t MACA1LR;
  680. __IO uint32_t MACA2HR;
  681. __IO uint32_t MACA2LR;
  682. __IO uint32_t MACA3HR;
  683. __IO uint32_t MACA3LR;
  684. uint32_t RESERVED14[248];
  685. __IO uint32_t MMCCR;
  686. __IO uint32_t MMCRIR;
  687. __IO uint32_t MMCTIR;
  688. __IO uint32_t MMCRIMR;
  689. __IO uint32_t MMCTIMR;
  690. uint32_t RESERVED15[14];
  691. __IO uint32_t MMCTSCGPR;
  692. __IO uint32_t MMCTMCGPR;
  693. int32_t RESERVED16[5];
  694. __IO uint32_t MMCTPCGR;
  695. uint32_t RESERVED17[10];
  696. __IO uint32_t MMCRCRCEPR;
  697. __IO uint32_t MMCRAEPR;
  698. uint32_t RESERVED18[10];
  699. __IO uint32_t MMCRUPGR;
  700. uint32_t RESERVED19[9];
  701. __IO uint32_t MMCTLPIMSTR;
  702. __IO uint32_t MMCTLPITCR;
  703. __IO uint32_t MMCRLPIMSTR;
  704. __IO uint32_t MMCRLPITCR;
  705. uint32_t RESERVED20[65];
  706. __IO uint32_t MACL3L4C0R;
  707. __IO uint32_t MACL4A0R;
  708. uint32_t RESERVED21[2];
  709. __IO uint32_t MACL3A0R0R;
  710. __IO uint32_t MACL3A1R0R;
  711. __IO uint32_t MACL3A2R0R;
  712. __IO uint32_t MACL3A3R0R;
  713. uint32_t RESERVED22[4];
  714. __IO uint32_t MACL3L4C1R;
  715. __IO uint32_t MACL4A1R;
  716. uint32_t RESERVED23[2];
  717. __IO uint32_t MACL3A0R1R;
  718. __IO uint32_t MACL3A1R1R;
  719. __IO uint32_t MACL3A2R1R;
  720. __IO uint32_t MACL3A3R1R;
  721. uint32_t RESERVED24[108];
  722. __IO uint32_t MACTSCR;
  723. __IO uint32_t MACSSIR;
  724. __IO uint32_t MACSTSR;
  725. __IO uint32_t MACSTNR;
  726. __IO uint32_t MACSTSUR;
  727. __IO uint32_t MACSTNUR;
  728. __IO uint32_t MACTSAR;
  729. uint32_t RESERVED25;
  730. __IO uint32_t MACTSSR;
  731. uint32_t RESERVED26[3];
  732. __IO uint32_t MACTTSSNR;
  733. __IO uint32_t MACTTSSSR;
  734. uint32_t RESERVED27[2];
  735. __IO uint32_t MACACR;
  736. uint32_t RESERVED28;
  737. __IO uint32_t MACATSNR;
  738. __IO uint32_t MACATSSR;
  739. __IO uint32_t MACTSIACR;
  740. __IO uint32_t MACTSEACR;
  741. __IO uint32_t MACTSICNR;
  742. __IO uint32_t MACTSECNR;
  743. uint32_t RESERVED29[4];
  744. __IO uint32_t MACPPSCR;
  745. uint32_t RESERVED30[3];
  746. __IO uint32_t MACPPSTTSR;
  747. __IO uint32_t MACPPSTTNR;
  748. __IO uint32_t MACPPSIR;
  749. __IO uint32_t MACPPSWR;
  750. uint32_t RESERVED31[12];
  751. __IO uint32_t MACPOCR;
  752. __IO uint32_t MACSPI0R;
  753. __IO uint32_t MACSPI1R;
  754. __IO uint32_t MACSPI2R;
  755. __IO uint32_t MACLMIR;
  756. uint32_t RESERVED32[11];
  757. __IO uint32_t MTLOMR;
  758. uint32_t RESERVED33[7];
  759. __IO uint32_t MTLISR;
  760. uint32_t RESERVED34[55];
  761. __IO uint32_t MTLTQOMR;
  762. __IO uint32_t MTLTQUR;
  763. __IO uint32_t MTLTQDR;
  764. uint32_t RESERVED35[8];
  765. __IO uint32_t MTLQICSR;
  766. __IO uint32_t MTLRQOMR;
  767. __IO uint32_t MTLRQMPOCR;
  768. __IO uint32_t MTLRQDR;
  769. uint32_t RESERVED36[177];
  770. __IO uint32_t DMAMR;
  771. __IO uint32_t DMASBMR;
  772. __IO uint32_t DMAISR;
  773. __IO uint32_t DMADSR;
  774. uint32_t RESERVED37[60];
  775. __IO uint32_t DMACCR;
  776. __IO uint32_t DMACTCR;
  777. __IO uint32_t DMACRCR;
  778. uint32_t RESERVED38[2];
  779. __IO uint32_t DMACTDLAR;
  780. uint32_t RESERVED39;
  781. __IO uint32_t DMACRDLAR;
  782. __IO uint32_t DMACTDTPR;
  783. uint32_t RESERVED40;
  784. __IO uint32_t DMACRDTPR;
  785. __IO uint32_t DMACTDRLR;
  786. __IO uint32_t DMACRDRLR;
  787. __IO uint32_t DMACIER;
  788. __IO uint32_t DMACRIWTR;
  789. __IO uint32_t DMACSFCSR;
  790. uint32_t RESERVED41;
  791. __IO uint32_t DMACCATDR;
  792. uint32_t RESERVED42;
  793. __IO uint32_t DMACCARDR;
  794. uint32_t RESERVED43;
  795. __IO uint32_t DMACCATBR;
  796. uint32_t RESERVED44;
  797. __IO uint32_t DMACCARBR;
  798. __IO uint32_t DMACSR;
  799. uint32_t RESERVED45[2];
  800. __IO uint32_t DMACMFCR;
  801. }ETH_TypeDef;
  802. /**
  803. * @brief External Interrupt/Event Controller
  804. */
  805. typedef struct
  806. {
  807. __IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register, Address offset: 0x00 */
  808. __IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register, Address offset: 0x04 */
  809. __IO uint32_t SWIER1; /*!< EXTI Software interrupt event register, Address offset: 0x08 */
  810. __IO uint32_t D3PMR1; /*!< EXTI D3 Pending mask register, Address offset: 0x0C */
  811. __IO uint32_t D3PCR1L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x10 */
  812. __IO uint32_t D3PCR1H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x14 */
  813. uint32_t RESERVED1; /*!< Reserved, 0x18 */
  814. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  815. __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x20 */
  816. __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x24 */
  817. __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x28 */
  818. __IO uint32_t D3PMR2; /*!< EXTI D3 Pending mask register, Address offset: 0x2C */
  819. __IO uint32_t D3PCR2L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x30 */
  820. __IO uint32_t D3PCR2H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x34 */
  821. uint32_t RESERVED3; /*!< Reserved, 0x38 */
  822. uint32_t RESERVED4; /*!< Reserved, 0x3C */
  823. __IO uint32_t RTSR3; /*!< EXTI Rising trigger selection register, Address offset: 0x40 */
  824. __IO uint32_t FTSR3; /*!< EXTI Falling trigger selection register, Address offset: 0x44 */
  825. __IO uint32_t SWIER3; /*!< EXTI Software interrupt event register, Address offset: 0x48 */
  826. __IO uint32_t D3PMR3; /*!< EXTI D3 Pending mask register, Address offset: 0x4C */
  827. __IO uint32_t D3PCR3L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x50 */
  828. __IO uint32_t D3PCR3H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x54 */
  829. }EXTI_TypeDef;
  830. typedef struct
  831. {
  832. __IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x00 */
  833. __IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x04 */
  834. __IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x08 */
  835. uint32_t RESERVED1; /*!< Reserved, 0x0C */
  836. __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x10 */
  837. __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x14 */
  838. __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x18 */
  839. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  840. __IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0x20 */
  841. __IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0x24 */
  842. __IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0x28 */
  843. }EXTI_Core_TypeDef;
  844. /**
  845. * @brief FLASH Registers
  846. */
  847. typedef struct
  848. {
  849. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  850. __IO uint32_t KEYR1; /*!< Flash Key Register for bank1, Address offset: 0x04 */
  851. __IO uint32_t OPTKEYR; /*!< Flash Option Key Register, Address offset: 0x08 */
  852. __IO uint32_t CR1; /*!< Flash Control Register for bank1, Address offset: 0x0C */
  853. __IO uint32_t SR1; /*!< Flash Status Register for bank1, Address offset: 0x10 */
  854. __IO uint32_t CCR1; /*!< Flash Control Register for bank1, Address offset: 0x14 */
  855. __IO uint32_t OPTCR; /*!< Flash Option Control Register, Address offset: 0x18 */
  856. __IO uint32_t OPTSR_CUR; /*!< Flash Option Status Current Register, Address offset: 0x1C */
  857. __IO uint32_t OPTSR_PRG; /*!< Flash Option Status Current Register, Address offset: 0x20 */
  858. __IO uint32_t OPTCCR; /*!< Flash Option Clear Control Register, Address offset: 0x24 */
  859. __IO uint32_t PRAR_CUR1; /*!< Flash Current Protection Address Register for bank1, Address offset: 0x28 */
  860. __IO uint32_t PRAR_PRG1; /*!< Flash Protection Address to Program Register for bank1, Address offset: 0x2C */
  861. __IO uint32_t SCAR_CUR1; /*!< Flash Current Secure Address Register for bank1, Address offset: 0x30 */
  862. __IO uint32_t SCAR_PRG1; /*!< Flash Secure Address Register for bank1, Address offset: 0x34 */
  863. __IO uint32_t WPSN_CUR1; /*!< Flash Current Write Protection Register on bank1, Address offset: 0x38 */
  864. __IO uint32_t WPSN_PRG1; /*!< Flash Write Protection to Program Register on bank1, Address offset: 0x3C */
  865. __IO uint32_t BOOT_CUR; /*!< Flash Current Boot Address for Pelican Core Register, Address offset: 0x40 */
  866. __IO uint32_t BOOT_PRG; /*!< Flash Boot Address to Program for Pelican Core Register, Address offset: 0x44 */
  867. uint32_t RESERVED0[2]; /*!< Reserved, 0x48 to 0x4C */
  868. __IO uint32_t CRCCR1; /*!< Flash CRC Control register For Bank1 Register , Address offset: 0x50 */
  869. __IO uint32_t CRCSADD1; /*!< Flash CRC Start Address Register for Bank1 , Address offset: 0x54 */
  870. __IO uint32_t CRCEADD1; /*!< Flash CRC End Address Register for Bank1 , Address offset: 0x58 */
  871. __IO uint32_t CRCDATA; /*!< Flash CRC Data Register for Bank1 , Address offset: 0x5C */
  872. __IO uint32_t ECC_FA1; /*!< Flash ECC Fail Address For Bank1 Register , Address offset: 0x60 */
  873. uint32_t RESERVED1[40]; /*!< Reserved, 0x64 to 0x100 */
  874. __IO uint32_t KEYR2; /*!< Flash Key Register for bank2, Address offset: 0x104 */
  875. uint32_t RESERVED2; /*!< Reserved, 0x108 */
  876. __IO uint32_t CR2; /*!< Flash Control Register for bank2, Address offset: 0x10C */
  877. __IO uint32_t SR2; /*!< Flash Status Register for bank2, Address offset: 0x110 */
  878. __IO uint32_t CCR2; /*!< Flash Status Register for bank2, Address offset: 0x114 */
  879. uint32_t RESERVED3[4]; /*!< Reserved, 0x118 to 0x124 */
  880. __IO uint32_t PRAR_CUR2; /*!< Flash Current Protection Address Register for bank2, Address offset: 0x128 */
  881. __IO uint32_t PRAR_PRG2; /*!< Flash Protection Address to Program Register for bank2, Address offset: 0x12C */
  882. __IO uint32_t SCAR_CUR2; /*!< Flash Current Secure Address Register for bank2, Address offset: 0x130 */
  883. __IO uint32_t SCAR_PRG2; /*!< Flash Secure Address Register for bank2, Address offset: 0x134 */
  884. __IO uint32_t WPSN_CUR2; /*!< Flash Current Write Protection Register on bank2, Address offset: 0x138 */
  885. __IO uint32_t WPSN_PRG2; /*!< Flash Write Protection to Program Register on bank2, Address offset: 0x13C */
  886. uint32_t RESERVED4[4]; /*!< Reserved, 0x140 to 0x14C */
  887. __IO uint32_t CRCCR2; /*!< Flash CRC Control register For Bank2 Register , Address offset: 0x150 */
  888. __IO uint32_t CRCSADD2; /*!< Flash CRC Start Address Register for Bank2 , Address offset: 0x154 */
  889. __IO uint32_t CRCEADD2; /*!< Flash CRC End Address Register for Bank2 , Address offset: 0x158 */
  890. __IO uint32_t CRCDATA2; /*!< Flash CRC Data Register for Bank2 , Address offset: 0x15C */
  891. __IO uint32_t ECC_FA2; /*!< Flash ECC Fail Address For Bank2 Register , Address offset: 0x160 */
  892. } FLASH_TypeDef;
  893. /**
  894. * @brief Flexible Memory Controller
  895. */
  896. typedef struct
  897. {
  898. __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
  899. } FMC_Bank1_TypeDef;
  900. /**
  901. * @brief Flexible Memory Controller Bank1E
  902. */
  903. typedef struct
  904. {
  905. __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
  906. } FMC_Bank1E_TypeDef;
  907. /**
  908. * @brief Flexible Memory Controller Bank2
  909. */
  910. typedef struct
  911. {
  912. __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */
  913. __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */
  914. __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */
  915. __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */
  916. uint32_t RESERVED0; /*!< Reserved, 0x70 */
  917. __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */
  918. } FMC_Bank2_TypeDef;
  919. /**
  920. * @brief Flexible Memory Controller Bank3
  921. */
  922. typedef struct
  923. {
  924. __IO uint32_t PCR; /*!< NAND Flash control register 3, Address offset: 0x80 */
  925. __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */
  926. __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */
  927. __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */
  928. uint32_t RESERVED; /*!< Reserved, 0x90 */
  929. __IO uint32_t ECCR; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */
  930. } FMC_Bank3_TypeDef;
  931. /**
  932. * @brief Flexible Memory Controller Bank5 and 6
  933. */
  934. typedef struct
  935. {
  936. __IO uint32_t SDCR[2]; /*!< SDRAM Control registers , Address offset: 0x140-0x144 */
  937. __IO uint32_t SDTR[2]; /*!< SDRAM Timing registers , Address offset: 0x148-0x14C */
  938. __IO uint32_t SDCMR; /*!< SDRAM Command Mode register, Address offset: 0x150 */
  939. __IO uint32_t SDRTR; /*!< SDRAM Refresh Timer register, Address offset: 0x154 */
  940. __IO uint32_t SDSR; /*!< SDRAM Status register, Address offset: 0x158 */
  941. } FMC_Bank5_6_TypeDef;
  942. /**
  943. * @brief General Purpose I/O
  944. */
  945. typedef struct
  946. {
  947. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  948. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  949. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  950. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  951. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  952. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  953. __IO uint16_t BSRRL; /*!< GPIO port bit set/reset low register, Address offset: 0x18 */
  954. __IO uint16_t BSRRH; /*!< GPIO port bit set/reset high register, Address offset: 0x1A */
  955. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  956. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  957. } GPIO_TypeDef;
  958. /**
  959. * @brief Operational Amplifier (OPAMP)
  960. */
  961. typedef struct
  962. {
  963. __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
  964. __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
  965. __IO uint32_t HSOTR; /*!< OPAMP offset trimming register for high speed mode, Address offset: 0x08 */
  966. } OPAMP_TypeDef;
  967. /**
  968. * @brief System configuration controller
  969. */
  970. typedef struct
  971. {
  972. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x00 */
  973. __IO uint32_t PMCR; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */
  974. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */
  975. uint32_t RESERVED2[2]; /*!< Reserved, Address offset: 0x18-0x1C */
  976. __IO uint32_t CCCSR; /*!< SYSCFG compensation cell control/status register, Address offset: 0x20 */
  977. __IO uint32_t CCVR; /*!< SYSCFG compensation cell value register, Address offset: 0x24 */
  978. __IO uint32_t CCCR; /*!< SYSCFG compensation cell code register, Address offset: 0x28 */
  979. uint32_t RESERVED3[62]; /*!< Reserved, 0x2C-0x120 */
  980. __IO uint32_t PKGR; /*!< SYSCFG package register, Address offset: 0x124 */
  981. uint32_t RESERVED4[118]; /*!< Reserved, 0x128-0x2FC */
  982. __IO uint32_t UR0; /*!< SYSCFG user register 0, Address offset: 0x300 */
  983. __IO uint32_t UR1; /*!< SYSCFG user register 1, Address offset: 0x304 */
  984. __IO uint32_t UR2; /*!< SYSCFG user register 2, Address offset: 0x308 */
  985. __IO uint32_t UR3; /*!< SYSCFG user register 3, Address offset: 0x30C */
  986. __IO uint32_t UR4; /*!< SYSCFG user register 4, Address offset: 0x310 */
  987. __IO uint32_t UR5; /*!< SYSCFG user register 5, Address offset: 0x314 */
  988. __IO uint32_t UR6; /*!< SYSCFG user register 6, Address offset: 0x318 */
  989. __IO uint32_t UR7; /*!< SYSCFG user register 7, Address offset: 0x31C */
  990. __IO uint32_t UR8; /*!< SYSCFG user register 8, Address offset: 0x320 */
  991. __IO uint32_t UR9; /*!< SYSCFG user register 9, Address offset: 0x324 */
  992. __IO uint32_t UR10; /*!< SYSCFG user register 10, Address offset: 0x328 */
  993. __IO uint32_t UR11; /*!< SYSCFG user register 11, Address offset: 0x32C */
  994. __IO uint32_t UR12; /*!< SYSCFG user register 12, Address offset: 0x330 */
  995. __IO uint32_t UR13; /*!< SYSCFG user register 13, Address offset: 0x334 */
  996. __IO uint32_t UR14; /*!< SYSCFG user register 14, Address offset: 0x338 */
  997. __IO uint32_t UR15; /*!< SYSCFG user register 15, Address offset: 0x33C */
  998. __IO uint32_t UR16; /*!< SYSCFG user register 16, Address offset: 0x340 */
  999. __IO uint32_t UR17; /*!< SYSCFG user register 17, Address offset: 0x344 */
  1000. } SYSCFG_TypeDef;
  1001. /**
  1002. * @brief Inter-integrated Circuit Interface
  1003. */
  1004. typedef struct
  1005. {
  1006. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  1007. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  1008. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  1009. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  1010. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  1011. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  1012. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  1013. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  1014. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  1015. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  1016. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  1017. } I2C_TypeDef;
  1018. /**
  1019. * @brief Independent WATCHDOG
  1020. */
  1021. typedef struct
  1022. {
  1023. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  1024. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  1025. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  1026. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  1027. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  1028. } IWDG_TypeDef;
  1029. /**
  1030. * @brief JPEG Codec
  1031. */
  1032. typedef struct
  1033. {
  1034. __IO uint32_t CONFR0; /*!< JPEG Codec Control Register (JPEG_CONFR0), Address offset: 00h */
  1035. __IO uint32_t CONFR1; /*!< JPEG Codec Control Register (JPEG_CONFR1), Address offset: 04h */
  1036. __IO uint32_t CONFR2; /*!< JPEG Codec Control Register (JPEG_CONFR2), Address offset: 08h */
  1037. __IO uint32_t CONFR3; /*!< JPEG Codec Control Register (JPEG_CONFR3), Address offset: 0Ch */
  1038. __IO uint32_t CONFR4; /*!< JPEG Codec Control Register (JPEG_CONFR4), Address offset: 10h */
  1039. __IO uint32_t CONFR5; /*!< JPEG Codec Control Register (JPEG_CONFR5), Address offset: 14h */
  1040. __IO uint32_t CONFR6; /*!< JPEG Codec Control Register (JPEG_CONFR6), Address offset: 18h */
  1041. __IO uint32_t CONFR7; /*!< JPEG Codec Control Register (JPEG_CONFR7), Address offset: 1Ch */
  1042. uint32_t Reserved20[4]; /* Reserved Address offset: 20h-2Ch */
  1043. __IO uint32_t CR; /*!< JPEG Control Register (JPEG_CR), Address offset: 30h */
  1044. __IO uint32_t SR; /*!< JPEG Status Register (JPEG_SR), Address offset: 34h */
  1045. __IO uint32_t CFR; /*!< JPEG Clear Flag Register (JPEG_CFR), Address offset: 38h */
  1046. uint32_t Reserved3c; /* Reserved Address offset: 3Ch */
  1047. __IO uint32_t DIR; /*!< JPEG Data Input Register (JPEG_DIR), Address offset: 40h */
  1048. __IO uint32_t DOR; /*!< JPEG Data Output Register (JPEG_DOR), Address offset: 44h */
  1049. uint32_t Reserved48[2]; /* Reserved Address offset: 48h-4Ch */
  1050. __IO uint32_t QMEM0[16]; /*!< JPEG quantization tables 0, Address offset: 50h-8Ch */
  1051. __IO uint32_t QMEM1[16]; /*!< JPEG quantization tables 1, Address offset: 90h-CCh */
  1052. __IO uint32_t QMEM2[16]; /*!< JPEG quantization tables 2, Address offset: D0h-10Ch */
  1053. __IO uint32_t QMEM3[16]; /*!< JPEG quantization tables 3, Address offset: 110h-14Ch */
  1054. __IO uint32_t HUFFMIN[16]; /*!< JPEG HuffMin tables, Address offset: 150h-18Ch */
  1055. __IO uint32_t HUFFBASE[32]; /*!< JPEG HuffSymb tables, Address offset: 190h-20Ch */
  1056. __IO uint32_t HUFFSYMB[84]; /*!< JPEG HUFFSYMB tables, Address offset: 210h-35Ch */
  1057. __IO uint32_t DHTMEM[103]; /*!< JPEG DHTMem tables, Address offset: 360h-4F8h */
  1058. uint32_t Reserved4FC; /* Reserved Address offset: 4FCh */
  1059. __IO uint32_t HUFFENC_AC0[88]; /*!< JPEG encodor, AC Huffman table 0, Address offset: 500h-65Ch */
  1060. __IO uint32_t HUFFENC_AC1[88]; /*!< JPEG encodor, AC Huffman table 1, Address offset: 660h-7BCh */
  1061. __IO uint32_t HUFFENC_DC0[8]; /*!< JPEG encodor, DC Huffman table 0, Address offset: 7C0h-7DCh */
  1062. __IO uint32_t HUFFENC_DC1[8]; /*!< JPEG encodor, DC Huffman table 1, Address offset: 7E0h-7FCh */
  1063. } JPEG_TypeDef;
  1064. /**
  1065. * @brief LCD-TFT Display Controller
  1066. */
  1067. typedef struct
  1068. {
  1069. uint32_t RESERVED0[2]; /*!< Reserved, 0x00-0x04 */
  1070. __IO uint32_t SSCR; /*!< LTDC Synchronization Size Configuration Register, Address offset: 0x08 */
  1071. __IO uint32_t BPCR; /*!< LTDC Back Porch Configuration Register, Address offset: 0x0C */
  1072. __IO uint32_t AWCR; /*!< LTDC Active Width Configuration Register, Address offset: 0x10 */
  1073. __IO uint32_t TWCR; /*!< LTDC Total Width Configuration Register, Address offset: 0x14 */
  1074. __IO uint32_t GCR; /*!< LTDC Global Control Register, Address offset: 0x18 */
  1075. uint32_t RESERVED1[2]; /*!< Reserved, 0x1C-0x20 */
  1076. __IO uint32_t SRCR; /*!< LTDC Shadow Reload Configuration Register, Address offset: 0x24 */
  1077. uint32_t RESERVED2[1]; /*!< Reserved, 0x28 */
  1078. __IO uint32_t BCCR; /*!< LTDC Background Color Configuration Register, Address offset: 0x2C */
  1079. uint32_t RESERVED3[1]; /*!< Reserved, 0x30 */
  1080. __IO uint32_t IER; /*!< LTDC Interrupt Enable Register, Address offset: 0x34 */
  1081. __IO uint32_t ISR; /*!< LTDC Interrupt Status Register, Address offset: 0x38 */
  1082. __IO uint32_t ICR; /*!< LTDC Interrupt Clear Register, Address offset: 0x3C */
  1083. __IO uint32_t LIPCR; /*!< LTDC Line Interrupt Position Configuration Register, Address offset: 0x40 */
  1084. __IO uint32_t CPSR; /*!< LTDC Current Position Status Register, Address offset: 0x44 */
  1085. __IO uint32_t CDSR; /*!< LTDC Current Display Status Register, Address offset: 0x48 */
  1086. } LTDC_TypeDef;
  1087. /**
  1088. * @brief LCD-TFT Display layer x Controller
  1089. */
  1090. typedef struct
  1091. {
  1092. __IO uint32_t CR; /*!< LTDC Layerx Control Register Address offset: 0x84 */
  1093. __IO uint32_t WHPCR; /*!< LTDC Layerx Window Horizontal Position Configuration Register Address offset: 0x88 */
  1094. __IO uint32_t WVPCR; /*!< LTDC Layerx Window Vertical Position Configuration Register Address offset: 0x8C */
  1095. __IO uint32_t CKCR; /*!< LTDC Layerx Color Keying Configuration Register Address offset: 0x90 */
  1096. __IO uint32_t PFCR; /*!< LTDC Layerx Pixel Format Configuration Register Address offset: 0x94 */
  1097. __IO uint32_t CACR; /*!< LTDC Layerx Constant Alpha Configuration Register Address offset: 0x98 */
  1098. __IO uint32_t DCCR; /*!< LTDC Layerx Default Color Configuration Register Address offset: 0x9C */
  1099. __IO uint32_t BFCR; /*!< LTDC Layerx Blending Factors Configuration Register Address offset: 0xA0 */
  1100. uint32_t RESERVED0[2]; /*!< Reserved */
  1101. __IO uint32_t CFBAR; /*!< LTDC Layerx Color Frame Buffer Address Register Address offset: 0xAC */
  1102. __IO uint32_t CFBLR; /*!< LTDC Layerx Color Frame Buffer Length Register Address offset: 0xB0 */
  1103. __IO uint32_t CFBLNR; /*!< LTDC Layerx ColorFrame Buffer Line Number Register Address offset: 0xB4 */
  1104. uint32_t RESERVED1[3]; /*!< Reserved */
  1105. __IO uint32_t CLUTWR; /*!< LTDC Layerx CLUT Write Register Address offset: 0x144 */
  1106. } LTDC_Layer_TypeDef;
  1107. /**
  1108. * @brief Power Control
  1109. */
  1110. typedef struct
  1111. {
  1112. __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
  1113. __IO uint32_t CSR1; /*!< PWR power control status register 1, Address offset: 0x04 */
  1114. __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x08 */
  1115. __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x0C */
  1116. __IO uint32_t CPUCR; /*!< PWR CPU control register, Address offset: 0x10 */
  1117. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x14 */
  1118. __IO uint32_t D3CR; /*!< PWR D3 domain control register, Address offset: 0x18 */
  1119. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x1C */
  1120. __IO uint32_t WKUPCR; /*!< PWR wakeup clear register, Address offset: 0x20 */
  1121. __IO uint32_t WKUPFR; /*!< PWR wakeup flag register, Address offset: 0x24 */
  1122. __IO uint32_t WKUPEPR; /*!< PWR wakeup enable and polarity register, Address offset: 0x28 */
  1123. } PWR_TypeDef;
  1124. /**
  1125. * @brief Reset and Clock Control
  1126. */
  1127. typedef struct
  1128. {
  1129. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  1130. __IO uint32_t ICSCR; /*!< RCC Internal Clock Sources Calibration Register, Address offset: 0x04 */
  1131. __IO uint32_t CRRCR; /*!< Clock Recovery RC Register, Address offset: 0x08 */
  1132. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x0C */
  1133. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x10 */
  1134. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  1135. __IO uint32_t D1CFGR; /*!< RCC Domain 1 configuration register, Address offset: 0x18 */
  1136. __IO uint32_t D2CFGR; /*!< RCC Domain 2 configuration register, Address offset: 0x1C */
  1137. __IO uint32_t D3CFGR; /*!< RCC Domain 3 configuration register, Address offset: 0x20 */
  1138. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x24 */
  1139. __IO uint32_t PLLCKSELR; /*!< RCC PLLs Clock Source Selection Register, Address offset: 0x28 */
  1140. __IO uint32_t PLLCFGR; /*!< RCC PLLs Configuration Register, Address offset: 0x2C */
  1141. __IO uint32_t PLL1DIVR; /*!< RCC PLL1 Dividers Configuration Register, Address offset: 0x30 */
  1142. __IO uint32_t PLL1FRACR; /*!< RCC PLL1 Fractional Divider Configuration Register, Address offset: 0x34 */
  1143. __IO uint32_t PLL2DIVR; /*!< RCC PLL2 Dividers Configuration Register, Address offset: 0x38 */
  1144. __IO uint32_t PLL2FRACR; /*!< RCC PLL2 Fractional Divider Configuration Register, Address offset: 0x3C */
  1145. __IO uint32_t PLL3DIVR; /*!< RCC PLL3 Dividers Configuration Register, Address offset: 0x40 */
  1146. __IO uint32_t PLL3FRACR; /*!< RCC PLL3 Fractional Divider Configuration Register, Address offset: 0x44 */
  1147. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */
  1148. __IO uint32_t D1CCIPR; /*!< RCC Domain 1 Kernel Clock Configuration Register Address offset: 0x4C */
  1149. __IO uint32_t D2CCIP1R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x50 */
  1150. __IO uint32_t D2CCIP2R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x54 */
  1151. __IO uint32_t D3CCIPR; /*!< RCC Domain 3 Kernel Clock Configuration Register Address offset: 0x58 */
  1152. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x5C */
  1153. __IO uint32_t CIER; /*!< RCC Clock Source Interrupt Enable Register Address offset: 0x60 */
  1154. __IO uint32_t CIFR; /*!< RCC Clock Source Interrupt Flag Register Address offset: 0x64 */
  1155. __IO uint32_t CICR; /*!< RCC Clock Source Interrupt Clear Register Address offset: 0x68 */
  1156. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x6C */
  1157. __IO uint32_t BDCR; /*!< RCC Vswitch Backup Domain Control Register, Address offset: 0x70 */
  1158. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */
  1159. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x78 */
  1160. __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x7C */
  1161. __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x80 */
  1162. __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x84 */
  1163. __IO uint32_t AHB4RSTR; /*!< RCC AHB4 peripheral reset register, Address offset: 0x88 */
  1164. __IO uint32_t APB3RSTR; /*!< RCC APB3 peripheral reset register, Address offset: 0x8C */
  1165. __IO uint32_t APB1LRSTR; /*!< RCC APB1 peripheral reset Low Word register, Address offset: 0x90 */
  1166. __IO uint32_t APB1HRSTR; /*!< RCC APB1 peripheral reset High Word register, Address offset: 0x94 */
  1167. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x98 */
  1168. __IO uint32_t APB4RSTR; /*!< RCC APB4 peripheral reset register, Address offset: 0x9C */
  1169. __IO uint32_t GCR; /*!< RCC RCC Global Control Register, Address offset: 0xA0 */
  1170. uint32_t RESERVED7; /*!< Reserved, Address offset: 0xA4 */
  1171. __IO uint32_t D3AMR; /*!< RCC Domain 3 Autonomous Mode Register, Address offset: 0xA8 */
  1172. uint32_t RESERVED8[9]; /*!< Reserved, 0xAC-0xCC Address offset: 0xAC */
  1173. __IO uint32_t RSR; /*!< RCC Reset status register, Address offset: 0xD0 */
  1174. __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0xD4 */
  1175. __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0xD8 */
  1176. __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0xDC */
  1177. __IO uint32_t AHB4ENR; /*!< RCC AHB4 peripheral clock register, Address offset: 0xE0 */
  1178. __IO uint32_t APB3ENR; /*!< RCC APB3 peripheral clock register, Address offset: 0xE4 */
  1179. __IO uint32_t APB1LENR; /*!< RCC APB1 peripheral clock Low Word register, Address offset: 0xE8 */
  1180. __IO uint32_t APB1HENR; /*!< RCC APB1 peripheral clock High Word register, Address offset: 0xEC */
  1181. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock register, Address offset: 0xF0 */
  1182. __IO uint32_t APB4ENR; /*!< RCC APB4 peripheral clock register, Address offset: 0xF4 */
  1183. uint32_t RESERVED9; /*!< Reserved, Address offset: 0xF8 */
  1184. __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral sleep clock register, Address offset: 0xFC */
  1185. __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral sleep clock register, Address offset: 0x100 */
  1186. __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral sleep clock register, Address offset: 0x104 */
  1187. __IO uint32_t AHB4LPENR; /*!< RCC AHB4 peripheral sleep clock register, Address offset: 0x108 */
  1188. __IO uint32_t APB3LPENR; /*!< RCC APB3 peripheral sleep clock register, Address offset: 0x10C */
  1189. __IO uint32_t APB1LLPENR; /*!< RCC APB1 peripheral sleep clock Low Word register, Address offset: 0x110 */
  1190. __IO uint32_t APB1HLPENR; /*!< RCC APB1 peripheral sleep clock High Word register, Address offset: 0x114 */
  1191. __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral sleep clock register, Address offset: 0x118 */
  1192. __IO uint32_t APB4LPENR; /*!< RCC APB4 peripheral sleep clock register, Address offset: 0x11C */
  1193. uint32_t RESERVED10[4]; /*!< Reserved, 0x120-0x12C Address offset: 0x120 */
  1194. } RCC_TypeDef;
  1195. /**
  1196. * @brief Real-Time Clock
  1197. */
  1198. typedef struct
  1199. {
  1200. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  1201. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  1202. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  1203. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  1204. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  1205. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  1206. uint32_t reserved; /*!< Reserved */
  1207. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  1208. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
  1209. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  1210. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  1211. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  1212. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  1213. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  1214. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  1215. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  1216. __IO uint32_t TAMPCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  1217. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  1218. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
  1219. __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */
  1220. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  1221. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  1222. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  1223. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  1224. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  1225. __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
  1226. __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
  1227. __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
  1228. __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
  1229. __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
  1230. __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
  1231. __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
  1232. __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
  1233. __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
  1234. __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
  1235. __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
  1236. __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */
  1237. __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */
  1238. __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */
  1239. __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */
  1240. __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */
  1241. __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */
  1242. __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */
  1243. __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */
  1244. __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */
  1245. __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */
  1246. __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */
  1247. __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */
  1248. __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */
  1249. __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */
  1250. __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */
  1251. __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */
  1252. } RTC_TypeDef;
  1253. /**
  1254. * @brief Serial Audio Interface
  1255. */
  1256. typedef struct
  1257. {
  1258. __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
  1259. uint32_t RESERVED0[16]; /*!< Reserved, 0x04 - 0x43 */
  1260. __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */
  1261. __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */
  1262. } SAI_TypeDef;
  1263. typedef struct
  1264. {
  1265. __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
  1266. __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
  1267. __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
  1268. __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
  1269. __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
  1270. __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
  1271. __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
  1272. __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
  1273. } SAI_Block_TypeDef;
  1274. /**
  1275. * @brief SPDIF-RX Interface
  1276. */
  1277. typedef struct
  1278. {
  1279. __IO uint32_t CR; /*!< Control register, Address offset: 0x00 */
  1280. __IO uint32_t IMR; /*!< Interrupt mask register, Address offset: 0x04 */
  1281. __IO uint32_t SR; /*!< Status register, Address offset: 0x08 */
  1282. __IO uint32_t IFCR; /*!< Interrupt Flag Clear register, Address offset: 0x0C */
  1283. __IO uint32_t DR; /*!< Data input register, Address offset: 0x10 */
  1284. __IO uint32_t CSR; /*!< Channel Status register, Address offset: 0x14 */
  1285. __IO uint32_t DIR; /*!< Debug Information register, Address offset: 0x18 */
  1286. uint32_t RESERVED2; /*!< Reserved, 0x1A */
  1287. } SPDIFRX_TypeDef;
  1288. /**
  1289. * @brief Secure digital input/output Interface
  1290. */
  1291. typedef struct
  1292. {
  1293. __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
  1294. __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
  1295. __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
  1296. __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
  1297. __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
  1298. __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
  1299. __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
  1300. __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
  1301. __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
  1302. __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
  1303. __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
  1304. __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
  1305. __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
  1306. __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
  1307. __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
  1308. __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
  1309. __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */
  1310. uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */
  1311. __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */
  1312. __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */
  1313. __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */
  1314. __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */
  1315. uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */
  1316. __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
  1317. uint32_t RESERVED2[222]; /*!< Reserved, 0x84-0x3F8 */
  1318. __IO uint32_t IPVR; /*!< SDMMC data FIFO register, Address offset: 0x3FC */
  1319. } SDMMC_TypeDef;
  1320. /**
  1321. * @brief Delay Block DLYB
  1322. */
  1323. typedef struct
  1324. {
  1325. __IO uint32_t CR; /*!< DELAY BLOCK control register, Address offset: 0x00 */
  1326. __IO uint32_t CFGR; /*!< DELAY BLOCK configuration register, Address offset: 0x04 */
  1327. } DLYB_TypeDef;
  1328. /**
  1329. * @brief HW Semaphore HSEM
  1330. */
  1331. typedef struct
  1332. {
  1333. __IO uint32_t R[32]; /*!< 2-step write lock and read back registers, Address offset: 00h-7Ch */
  1334. __IO uint32_t RLR[32]; /*!< 1-step read lock registers, Address offset: 80h-FCh */
  1335. __IO uint32_t IER; /*!< HSEM Interrupt enable register , Address offset: 100h */
  1336. __IO uint32_t ICR; /*!< HSEM Interrupt clear register , Address offset: 104h */
  1337. __IO uint32_t ISR; /*!< HSEM Interrupt Status register , Address offset: 108h */
  1338. __IO uint32_t MISR; /*!< HSEM Interrupt Masked Status register , Address offset: 10Ch */
  1339. uint32_t Reserved[12]; /* Reserved Address offset: 110h-13Ch*/
  1340. __IO uint32_t CR; /*!< HSEM Semaphore clear register , Address offset: 140h */
  1341. __IO uint32_t KEYR; /*!< HSEM Semaphore clear key register , Address offset: 144h */
  1342. } HSEM_TypeDef;
  1343. /**
  1344. * @brief Serial Peripheral Interface
  1345. */
  1346. typedef struct
  1347. {
  1348. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  1349. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  1350. __IO uint32_t CFG1; /*!< SPI Status register, Address offset: 0x08 */
  1351. __IO uint32_t CFG2; /*!< SPI Status register, Address offset: 0x0C */
  1352. __IO uint32_t IER; /*!< SPI data register, Address offset: 0x10 */
  1353. __IO uint32_t SR; /*!< SPI data register, Address offset: 0x14 */
  1354. __IO uint32_t IFCR; /*!< SPI data register, Address offset: 0x18 */
  1355. uint32_t RESERVED0; /*!< SPI data register, Address offset: 0x1C */
  1356. __IO uint32_t TXDR; /*!< SPI data register, Address offset: 0x20 */
  1357. uint32_t RESERVED1[3]; /*!< Reserved, 0x24-0x2C */
  1358. __IO uint32_t RXDR; /*!< SPI data register, Address offset: 0x30 */
  1359. uint32_t RESERVED2[3]; /*!< Reserved, 0x34-0x3C */
  1360. __IO uint32_t CRCPOLY; /*!< SPI data register, Address offset: 0x40 */
  1361. __IO uint32_t TXCRC; /*!< SPI data register, Address offset: 0x44 */
  1362. __IO uint32_t RXCRC; /*!< SPI data register, Address offset: 0x48 */
  1363. __IO uint32_t UDRDR; /*!< SPI data register, Address offset: 0x4C */
  1364. __IO uint32_t I2SCFGR; /*!< SPI data register, Address offset: 0x50 */
  1365. } SPI_TypeDef;
  1366. /**
  1367. * @brief QUAD Serial Peripheral Interface
  1368. */
  1369. typedef struct
  1370. {
  1371. __IO uint32_t CR; /*!< QUADSPI Control register, Address offset: 0x00 */
  1372. __IO uint32_t DCR; /*!< QUADSPI Device Configuration register, Address offset: 0x04 */
  1373. __IO uint32_t SR; /*!< QUADSPI Status register, Address offset: 0x08 */
  1374. __IO uint32_t FCR; /*!< QUADSPI Flag Clear register, Address offset: 0x0C */
  1375. __IO uint32_t DLR; /*!< QUADSPI Data Length register, Address offset: 0x10 */
  1376. __IO uint32_t CCR; /*!< QUADSPI Communication Configuration register, Address offset: 0x14 */
  1377. __IO uint32_t AR; /*!< QUADSPI Address register, Address offset: 0x18 */
  1378. __IO uint32_t ABR; /*!< QUADSPI Alternate Bytes register, Address offset: 0x1C */
  1379. __IO uint32_t DR; /*!< QUADSPI Data register, Address offset: 0x20 */
  1380. __IO uint32_t PSMKR; /*!< QUADSPI Polling Status Mask register, Address offset: 0x24 */
  1381. __IO uint32_t PSMAR; /*!< QUADSPI Polling Status Match register, Address offset: 0x28 */
  1382. __IO uint32_t PIR; /*!< QUADSPI Polling Interval register, Address offset: 0x2C */
  1383. __IO uint32_t LPTR; /*!< QUADSPI Low Power Timeout register, Address offset: 0x30 */
  1384. } QUADSPI_TypeDef;
  1385. /**
  1386. * @brief TIM
  1387. */
  1388. typedef struct
  1389. {
  1390. __IO uint16_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  1391. uint16_t RESERVED0; /*!< Reserved, 0x02 */
  1392. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  1393. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  1394. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  1395. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  1396. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  1397. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  1398. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  1399. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  1400. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  1401. __IO uint16_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
  1402. uint16_t RESERVED9; /*!< Reserved, 0x2A */
  1403. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  1404. __IO uint16_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  1405. uint16_t RESERVED10; /*!< Reserved, 0x32 */
  1406. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  1407. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  1408. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  1409. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  1410. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  1411. __IO uint16_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  1412. uint16_t RESERVED12; /*!< Reserved, 0x4A */
  1413. __IO uint16_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  1414. uint16_t RESERVED13; /*!< Reserved, 0x4E */
  1415. uint16_t RESERVED14; /*!< Reserved, 0x50 */
  1416. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  1417. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  1418. __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
  1419. __IO uint32_t AF1; /*!< TIM alternate function option register 1, Address offset: 0x60 */
  1420. __IO uint32_t AF2; /*!< TIM alternate function option register 2, Address offset: 0x64 */
  1421. __IO uint32_t TISEL; /*!< TIM Input Selection register, Address offset: 0x68 */
  1422. } TIM_TypeDef;
  1423. /**
  1424. * @brief LPTIMIMER
  1425. */
  1426. typedef struct
  1427. {
  1428. __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
  1429. __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
  1430. __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
  1431. __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
  1432. __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
  1433. __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
  1434. __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
  1435. __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
  1436. uint16_t RESERVED1; /*!< Reserved, 0x20 */
  1437. __IO uint32_t CFGR2; /*!< LPTIM Option register, Address offset: 0x24 */
  1438. } LPTIM_TypeDef;
  1439. /**
  1440. * @brief Comparator
  1441. */
  1442. typedef struct
  1443. {
  1444. __IO uint32_t SR; /*!< Comparator status register, Address offset: 0x00 */
  1445. __IO uint32_t ICFR; /*!< Comparator interrupt clear flag register, Address offset: 0x04 */
  1446. __IO uint32_t OR; /*!< Comparator option register, Address offset: 0x08 */
  1447. } COMPOPT_TypeDef;
  1448. typedef struct
  1449. {
  1450. __IO uint32_t CFGR; /*!< Comparator configuration register , Address offset: 0x00 */
  1451. } COMP_TypeDef;
  1452. typedef struct
  1453. {
  1454. __IO uint32_t CFGR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  1455. } COMP_Common_TypeDef;
  1456. /**
  1457. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  1458. */
  1459. typedef struct
  1460. {
  1461. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  1462. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  1463. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  1464. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  1465. __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  1466. uint16_t RESERVED2; /*!< Reserved, 0x12 */
  1467. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  1468. __IO uint16_t RQR; /*!< USART Request register, Address offset: 0x18 */
  1469. uint16_t RESERVED3; /*!< Reserved, 0x1A */
  1470. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  1471. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  1472. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  1473. uint16_t RESERVED4; /*!< Reserved, 0x26 */
  1474. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  1475. uint16_t RESERVED5; /*!< Reserved, 0x2A */
  1476. __IO uint32_t PRESC; /*!< USART clock Prescaler register, Address offset: 0x2C */
  1477. } USART_TypeDef;
  1478. /**
  1479. * @brief Single Wire Protocol Master Interface SPWMI
  1480. */
  1481. typedef struct
  1482. {
  1483. __IO uint32_t CR; /*!< SWPMI Configuration/Control register, Address offset: 0x00 */
  1484. __IO uint32_t BRR; /*!< SWPMI bitrate register, Address offset: 0x04 */
  1485. uint32_t RESERVED1; /*!< Reserved, 0x08 */
  1486. __IO uint32_t ISR; /*!< SWPMI Interrupt and Status register, Address offset: 0x0C */
  1487. __IO uint32_t ICR; /*!< SWPMI Interrupt Flag Clear register, Address offset: 0x10 */
  1488. __IO uint32_t IER; /*!< SWPMI Interrupt Enable register, Address offset: 0x14 */
  1489. __IO uint32_t RFL; /*!< SWPMI Receive Frame Length register, Address offset: 0x18 */
  1490. __IO uint32_t TDR; /*!< SWPMI Transmit data register, Address offset: 0x1C */
  1491. __IO uint32_t RDR; /*!< SWPMI Receive data register, Address offset: 0x20 */
  1492. __IO uint32_t OR; /*!< SWPMI Option register, Address offset: 0x24 */
  1493. } SWPMI_TypeDef;
  1494. /**
  1495. * @brief Window WATCHDOG
  1496. */
  1497. typedef struct
  1498. {
  1499. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  1500. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  1501. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  1502. } WWDG_TypeDef;
  1503. /**
  1504. * @brief Crypto Processor
  1505. */
  1506. typedef struct
  1507. {
  1508. __IO uint32_t CR; /*!< CRYP control register, Address offset: 0x00 */
  1509. __IO uint32_t SR; /*!< CRYP status register, Address offset: 0x04 */
  1510. __IO uint32_t DIN; /*!< CRYP data input register, Address offset: 0x08 */
  1511. __IO uint32_t DOUT; /*!< CRYP data output register, Address offset: 0x0C */
  1512. __IO uint32_t DMACR; /*!< CRYP DMA control register, Address offset: 0x10 */
  1513. __IO uint32_t IMSCR; /*!< CRYP interrupt mask set/clear register, Address offset: 0x14 */
  1514. __IO uint32_t RISR; /*!< CRYP raw interrupt status register, Address offset: 0x18 */
  1515. __IO uint32_t MISR; /*!< CRYP masked interrupt status register, Address offset: 0x1C */
  1516. __IO uint32_t K0LR; /*!< CRYP key left register 0, Address offset: 0x20 */
  1517. __IO uint32_t K0RR; /*!< CRYP key right register 0, Address offset: 0x24 */
  1518. __IO uint32_t K1LR; /*!< CRYP key left register 1, Address offset: 0x28 */
  1519. __IO uint32_t K1RR; /*!< CRYP key right register 1, Address offset: 0x2C */
  1520. __IO uint32_t K2LR; /*!< CRYP key left register 2, Address offset: 0x30 */
  1521. __IO uint32_t K2RR; /*!< CRYP key right register 2, Address offset: 0x34 */
  1522. __IO uint32_t K3LR; /*!< CRYP key left register 3, Address offset: 0x38 */
  1523. __IO uint32_t K3RR; /*!< CRYP key right register 3, Address offset: 0x3C */
  1524. __IO uint32_t IV0LR; /*!< CRYP initialization vector left-word register 0, Address offset: 0x40 */
  1525. __IO uint32_t IV0RR; /*!< CRYP initialization vector right-word register 0, Address offset: 0x44 */
  1526. __IO uint32_t IV1LR; /*!< CRYP initialization vector left-word register 1, Address offset: 0x48 */
  1527. __IO uint32_t IV1RR; /*!< CRYP initialization vector right-word register 1, Address offset: 0x4C */
  1528. __IO uint32_t CSGCMCCM0R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 0, Address offset: 0x50 */
  1529. __IO uint32_t CSGCMCCM1R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 1, Address offset: 0x54 */
  1530. __IO uint32_t CSGCMCCM2R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 2, Address offset: 0x58 */
  1531. __IO uint32_t CSGCMCCM3R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 3, Address offset: 0x5C */
  1532. __IO uint32_t CSGCMCCM4R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 4, Address offset: 0x60 */
  1533. __IO uint32_t CSGCMCCM5R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 5, Address offset: 0x64 */
  1534. __IO uint32_t CSGCMCCM6R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 6, Address offset: 0x68 */
  1535. __IO uint32_t CSGCMCCM7R; /*!< CRYP GCM/GMAC or CCM/CMAC context swap register 7, Address offset: 0x6C */
  1536. __IO uint32_t CSGCM0R; /*!< CRYP GCM/GMAC context swap register 0, Address offset: 0x70 */
  1537. __IO uint32_t CSGCM1R; /*!< CRYP GCM/GMAC context swap register 1, Address offset: 0x74 */
  1538. __IO uint32_t CSGCM2R; /*!< CRYP GCM/GMAC context swap register 2, Address offset: 0x78 */
  1539. __IO uint32_t CSGCM3R; /*!< CRYP GCM/GMAC context swap register 3, Address offset: 0x7C */
  1540. __IO uint32_t CSGCM4R; /*!< CRYP GCM/GMAC context swap register 4, Address offset: 0x80 */
  1541. __IO uint32_t CSGCM5R; /*!< CRYP GCM/GMAC context swap register 5, Address offset: 0x84 */
  1542. __IO uint32_t CSGCM6R; /*!< CRYP GCM/GMAC context swap register 6, Address offset: 0x88 */
  1543. __IO uint32_t CSGCM7R; /*!< CRYP GCM/GMAC context swap register 7, Address offset: 0x8C */
  1544. } CRYP_TypeDef;
  1545. /**
  1546. * @brief HASH
  1547. */
  1548. typedef struct
  1549. {
  1550. __IO uint32_t CR; /*!< HASH control register, Address offset: 0x00 */
  1551. __IO uint32_t DIN; /*!< HASH data input register, Address offset: 0x04 */
  1552. __IO uint32_t STR; /*!< HASH start register, Address offset: 0x08 */
  1553. __IO uint32_t HR[5]; /*!< HASH digest registers, Address offset: 0x0C-0x1C */
  1554. __IO uint32_t IMR; /*!< HASH interrupt enable register, Address offset: 0x20 */
  1555. __IO uint32_t SR; /*!< HASH status register, Address offset: 0x24 */
  1556. uint32_t RESERVED[52]; /*!< Reserved, 0x28-0xF4 */
  1557. __IO uint32_t CSR[54]; /*!< HASH context swap registers, Address offset: 0x0F8-0x1CC */
  1558. } HASH_TypeDef;
  1559. /**
  1560. * @brief HASH_DIGEST
  1561. */
  1562. typedef struct
  1563. {
  1564. __IO uint32_t HR[8]; /*!< HASH digest registers, Address offset: 0x310-0x32C */
  1565. } HASH_DIGEST_TypeDef;
  1566. /**
  1567. * @brief High resolution Timer (HRTIM)
  1568. */
  1569. /* HRTIM master registers definition */
  1570. typedef struct
  1571. {
  1572. __IO uint32_t MCR; /*!< HRTIM Master Timer control register, Address offset: 0x00 */
  1573. __IO uint32_t MISR; /*!< HRTIM Master Timer interrupt status register, Address offset: 0x04 */
  1574. __IO uint32_t MICR; /*!< HRTIM Master Timer interupt clear register, Address offset: 0x08 */
  1575. __IO uint32_t MDIER; /*!< HRTIM Master Timer DMA/interrupt enable register Address offset: 0x0C */
  1576. __IO uint32_t MCNTR; /*!< HRTIM Master Timer counter register, Address offset: 0x10 */
  1577. __IO uint32_t MPER; /*!< HRTIM Master Timer period register, Address offset: 0x14 */
  1578. __IO uint32_t MREP; /*!< HRTIM Master Timer repetition register, Address offset: 0x18 */
  1579. __IO uint32_t MCMP1R; /*!< HRTIM Master Timer compare 1 register, Address offset: 0x1C */
  1580. uint32_t RESERVED0; /*!< Reserved, 0x20 */
  1581. __IO uint32_t MCMP2R; /*!< HRTIM Master Timer compare 2 register, Address offset: 0x24 */
  1582. __IO uint32_t MCMP3R; /*!< HRTIM Master Timer compare 3 register, Address offset: 0x28 */
  1583. __IO uint32_t MCMP4R; /*!< HRTIM Master Timer compare 4 register, Address offset: 0x2C */
  1584. uint32_t RESERVED1[20]; /*!< Reserved, 0x30..0x7C */
  1585. }HRTIM_Master_TypeDef;
  1586. /* HRTIM Timer A to E registers definition */
  1587. typedef struct
  1588. {
  1589. __IO uint32_t TIMxCR; /*!< HRTIM Timerx control register, Address offset: 0x00 */
  1590. __IO uint32_t TIMxISR; /*!< HRTIM Timerx interrupt status register, Address offset: 0x04 */
  1591. __IO uint32_t TIMxICR; /*!< HRTIM Timerx interrupt clear register, Address offset: 0x08 */
  1592. __IO uint32_t TIMxDIER; /*!< HRTIM Timerx DMA/interrupt enable register, Address offset: 0x0C */
  1593. __IO uint32_t CNTxR; /*!< HRTIM Timerx counter register, Address offset: 0x10 */
  1594. __IO uint32_t PERxR; /*!< HRTIM Timerx period register, Address offset: 0x14 */
  1595. __IO uint32_t REPxR; /*!< HRTIM Timerx repetition register, Address offset: 0x18 */
  1596. __IO uint32_t CMP1xR; /*!< HRTIM Timerx compare 1 register, Address offset: 0x1C */
  1597. __IO uint32_t CMP1CxR; /*!< HRTIM Timerx compare 1 compound register, Address offset: 0x20 */
  1598. __IO uint32_t CMP2xR; /*!< HRTIM Timerx compare 2 register, Address offset: 0x24 */
  1599. __IO uint32_t CMP3xR; /*!< HRTIM Timerx compare 3 register, Address offset: 0x28 */
  1600. __IO uint32_t CMP4xR; /*!< HRTIM Timerx compare 4 register, Address offset: 0x2C */
  1601. __IO uint32_t CPT1xR; /*!< HRTIM Timerx capture 1 register, Address offset: 0x30 */
  1602. __IO uint32_t CPT2xR; /*!< HRTIM Timerx capture 2 register, Address offset: 0x34 */
  1603. __IO uint32_t DTxR; /*!< HRTIM Timerx dead time register, Address offset: 0x38 */
  1604. __IO uint32_t SETx1R; /*!< HRTIM Timerx output 1 set register, Address offset: 0x3C */
  1605. __IO uint32_t RSTx1R; /*!< HRTIM Timerx output 1 reset register, Address offset: 0x40 */
  1606. __IO uint32_t SETx2R; /*!< HRTIM Timerx output 2 set register, Address offset: 0x44 */
  1607. __IO uint32_t RSTx2R; /*!< HRTIM Timerx output 2 reset register, Address offset: 0x48 */
  1608. __IO uint32_t EEFxR1; /*!< HRTIM Timerx external event filtering 1 register, Address offset: 0x4C */
  1609. __IO uint32_t EEFxR2; /*!< HRTIM Timerx external event filtering 2 register, Address offset: 0x50 */
  1610. __IO uint32_t RSTxR; /*!< HRTIM Timerx Reset register, Address offset: 0x54 */
  1611. __IO uint32_t CHPxR; /*!< HRTIM Timerx Chopper register, Address offset: 0x58 */
  1612. __IO uint32_t CPT1xCR; /*!< HRTIM Timerx Capture 1 register, Address offset: 0x5C */
  1613. __IO uint32_t CPT2xCR; /*!< HRTIM Timerx Capture 2 register, Address offset: 0x60 */
  1614. __IO uint32_t OUTxR; /*!< HRTIM Timerx Output register, Address offset: 0x64 */
  1615. __IO uint32_t FLTxR; /*!< HRTIM Timerx Fault register, Address offset: 0x68 */
  1616. uint32_t RESERVED0[5]; /*!< Reserved, 0x6C..0x7C */
  1617. }HRTIM_Timerx_TypeDef;
  1618. /* HRTIM common register definition */
  1619. typedef struct
  1620. {
  1621. __IO uint32_t CR1; /*!< HRTIM control register1, Address offset: 0x00 */
  1622. __IO uint32_t CR2; /*!< HRTIM control register2, Address offset: 0x04 */
  1623. __IO uint32_t ISR; /*!< HRTIM interrupt status register, Address offset: 0x08 */
  1624. __IO uint32_t ICR; /*!< HRTIM interrupt clear register, Address offset: 0x0C */
  1625. __IO uint32_t IER; /*!< HRTIM interrupt enable register, Address offset: 0x10 */
  1626. __IO uint32_t OENR; /*!< HRTIM Output enable register, Address offset: 0x14 */
  1627. __IO uint32_t ODISR; /*!< HRTIM Output disable register, Address offset: 0x18 */
  1628. __IO uint32_t ODSR; /*!< HRTIM Output disable status register, Address offset: 0x1C */
  1629. __IO uint32_t BMCR; /*!< HRTIM Burst mode control register, Address offset: 0x20 */
  1630. __IO uint32_t BMTRGR; /*!< HRTIM Busrt mode trigger register, Address offset: 0x24 */
  1631. __IO uint32_t BMCMPR; /*!< HRTIM Burst mode compare register, Address offset: 0x28 */
  1632. __IO uint32_t BMPER; /*!< HRTIM Burst mode period register, Address offset: 0x2C */
  1633. __IO uint32_t EECR1; /*!< HRTIM Timer external event control register1, Address offset: 0x30 */
  1634. __IO uint32_t EECR2; /*!< HRTIM Timer external event control register2, Address offset: 0x34 */
  1635. __IO uint32_t EECR3; /*!< HRTIM Timer external event control register3, Address offset: 0x38 */
  1636. __IO uint32_t ADC1R; /*!< HRTIM ADC Trigger 1 register, Address offset: 0x3C */
  1637. __IO uint32_t ADC2R; /*!< HRTIM ADC Trigger 2 register, Address offset: 0x40 */
  1638. __IO uint32_t ADC3R; /*!< HRTIM ADC Trigger 3 register, Address offset: 0x44 */
  1639. __IO uint32_t ADC4R; /*!< HRTIM ADC Trigger 4 register, Address offset: 0x48 */
  1640. __IO uint32_t DLLCR; /*!< HRTIM DLL control register, Address offset: 0x4C */
  1641. __IO uint32_t FLTINR1; /*!< HRTIM Fault input register1, Address offset: 0x50 */
  1642. __IO uint32_t FLTINR2; /*!< HRTIM Fault input register2, Address offset: 0x54 */
  1643. __IO uint32_t BDMUPR; /*!< HRTIM Burst DMA Master Timer update register, Address offset: 0x58 */
  1644. __IO uint32_t BDTAUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x5C */
  1645. __IO uint32_t BDTBUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x60 */
  1646. __IO uint32_t BDTCUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x64 */
  1647. __IO uint32_t BDTDUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x68 */
  1648. __IO uint32_t BDTEUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x6C */
  1649. __IO uint32_t BDMADR; /*!< HRTIM Burst DMA Master Data register, Address offset: 0x70 */
  1650. }HRTIM_Common_TypeDef;
  1651. /* HRTIM register definition */
  1652. typedef struct {
  1653. HRTIM_Master_TypeDef sMasterRegs;
  1654. HRTIM_Timerx_TypeDef sTimerxRegs[5];
  1655. uint32_t RESERVED0[32];
  1656. HRTIM_Common_TypeDef sCommonRegs;
  1657. }HRTIM_TypeDef;
  1658. /**
  1659. * @brief RNG
  1660. */
  1661. typedef struct
  1662. {
  1663. __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
  1664. __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
  1665. __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
  1666. } RNG_TypeDef;
  1667. /**
  1668. * @brief MDIOS
  1669. */
  1670. typedef struct
  1671. {
  1672. __IO uint32_t CR;
  1673. __IO uint32_t WRFR;
  1674. __IO uint32_t CWRFR;
  1675. __IO uint32_t RDFR;
  1676. __IO uint32_t CRDFR;
  1677. __IO uint32_t SR;
  1678. __IO uint32_t CLRFR;
  1679. uint32_t RESERVED[57];
  1680. __IO uint32_t DINR0;
  1681. __IO uint32_t DINR1;
  1682. __IO uint32_t DINR2;
  1683. __IO uint32_t DINR3;
  1684. __IO uint32_t DINR4;
  1685. __IO uint32_t DINR5;
  1686. __IO uint32_t DINR6;
  1687. __IO uint32_t DINR7;
  1688. __IO uint32_t DINR8;
  1689. __IO uint32_t DINR9;
  1690. __IO uint32_t DINR10;
  1691. __IO uint32_t DINR11;
  1692. __IO uint32_t DINR12;
  1693. __IO uint32_t DINR13;
  1694. __IO uint32_t DINR14;
  1695. __IO uint32_t DINR15;
  1696. __IO uint32_t DINR16;
  1697. __IO uint32_t DINR17;
  1698. __IO uint32_t DINR18;
  1699. __IO uint32_t DINR19;
  1700. __IO uint32_t DINR20;
  1701. __IO uint32_t DINR21;
  1702. __IO uint32_t DINR22;
  1703. __IO uint32_t DINR23;
  1704. __IO uint32_t DINR24;
  1705. __IO uint32_t DINR25;
  1706. __IO uint32_t DINR26;
  1707. __IO uint32_t DINR27;
  1708. __IO uint32_t DINR28;
  1709. __IO uint32_t DINR29;
  1710. __IO uint32_t DINR30;
  1711. __IO uint32_t DINR31;
  1712. __IO uint32_t DOUTR0;
  1713. __IO uint32_t DOUTR1;
  1714. __IO uint32_t DOUTR2;
  1715. __IO uint32_t DOUTR3;
  1716. __IO uint32_t DOUTR4;
  1717. __IO uint32_t DOUTR5;
  1718. __IO uint32_t DOUTR6;
  1719. __IO uint32_t DOUTR7;
  1720. __IO uint32_t DOUTR8;
  1721. __IO uint32_t DOUTR9;
  1722. __IO uint32_t DOUTR10;
  1723. __IO uint32_t DOUTR11;
  1724. __IO uint32_t DOUTR12;
  1725. __IO uint32_t DOUTR13;
  1726. __IO uint32_t DOUTR14;
  1727. __IO uint32_t DOUTR15;
  1728. __IO uint32_t DOUTR16;
  1729. __IO uint32_t DOUTR17;
  1730. __IO uint32_t DOUTR18;
  1731. __IO uint32_t DOUTR19;
  1732. __IO uint32_t DOUTR20;
  1733. __IO uint32_t DOUTR21;
  1734. __IO uint32_t DOUTR22;
  1735. __IO uint32_t DOUTR23;
  1736. __IO uint32_t DOUTR24;
  1737. __IO uint32_t DOUTR25;
  1738. __IO uint32_t DOUTR26;
  1739. __IO uint32_t DOUTR27;
  1740. __IO uint32_t DOUTR28;
  1741. __IO uint32_t DOUTR29;
  1742. __IO uint32_t DOUTR30;
  1743. __IO uint32_t DOUTR31;
  1744. } MDIOS_TypeDef;
  1745. /**
  1746. * @brief USB_OTG_Core_Registers
  1747. */
  1748. typedef struct
  1749. {
  1750. __IO uint32_t GOTGCTL; /*!< USB_OTG Control and Status Register 000h */
  1751. __IO uint32_t GOTGINT; /*!< USB_OTG Interrupt Register 004h */
  1752. __IO uint32_t GAHBCFG; /*!< Core AHB Configuration Register 008h */
  1753. __IO uint32_t GUSBCFG; /*!< Core USB Configuration Register 00Ch */
  1754. __IO uint32_t GRSTCTL; /*!< Core Reset Register 010h */
  1755. __IO uint32_t GINTSTS; /*!< Core Interrupt Register 014h */
  1756. __IO uint32_t GINTMSK; /*!< Core Interrupt Mask Register 018h */
  1757. __IO uint32_t GRXSTSR; /*!< Receive Sts Q Read Register 01Ch */
  1758. __IO uint32_t GRXSTSP; /*!< Receive Sts Q Read & POP Register 020h */
  1759. __IO uint32_t GRXFSIZ; /*!< Receive FIFO Size Register 024h */
  1760. __IO uint32_t DIEPTXF0_HNPTXFSIZ; /*!< EP0 / Non Periodic Tx FIFO Size Register 028h */
  1761. __IO uint32_t HNPTXSTS; /*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch */
  1762. uint32_t Reserved30[2]; /*!< Reserved 030h */
  1763. __IO uint32_t GCCFG; /*!< General Purpose IO Register 038h */
  1764. __IO uint32_t CID; /*!< User ID Register 03Ch */
  1765. __IO uint32_t GSNPSID; /* USB_OTG core ID 040h*/
  1766. __IO uint32_t GHWCFG1; /* User HW config1 044h*/
  1767. __IO uint32_t GHWCFG2; /* User HW config2 048h*/
  1768. __IO uint32_t GHWCFG3; /*!< User HW config3 04Ch */
  1769. uint32_t Reserved6; /*!< Reserved 050h */
  1770. __IO uint32_t GLPMCFG; /*!< LPM Register 054h */
  1771. __IO uint32_t GPWRDN; /*!< Power Down Register 058h */
  1772. __IO uint32_t GDFIFOCFG; /*!< DFIFO Software Config Register 05Ch */
  1773. __IO uint32_t GADPCTL; /*!< ADP Timer, Control and Status Register 60Ch */
  1774. uint32_t Reserved43[39]; /*!< Reserved 058h-0FFh */
  1775. __IO uint32_t HPTXFSIZ; /*!< Host Periodic Tx FIFO Size Reg 100h */
  1776. __IO uint32_t DIEPTXF[0x0F]; /*!< dev Periodic Transmit FIFO */
  1777. } USB_OTG_GlobalTypeDef;
  1778. /**
  1779. * @brief USB_OTG_device_Registers
  1780. */
  1781. typedef struct
  1782. {
  1783. __IO uint32_t DCFG; /*!< dev Configuration Register 800h */
  1784. __IO uint32_t DCTL; /*!< dev Control Register 804h */
  1785. __IO uint32_t DSTS; /*!< dev Status Register (RO) 808h */
  1786. uint32_t Reserved0C; /*!< Reserved 80Ch */
  1787. __IO uint32_t DIEPMSK; /*!< dev IN Endpoint Mask 810h */
  1788. __IO uint32_t DOEPMSK; /*!< dev OUT Endpoint Mask 814h */
  1789. __IO uint32_t DAINT; /*!< dev All Endpoints Itr Reg 818h */
  1790. __IO uint32_t DAINTMSK; /*!< dev All Endpoints Itr Mask 81Ch */
  1791. uint32_t Reserved20; /*!< Reserved 820h */
  1792. uint32_t Reserved9; /*!< Reserved 824h */
  1793. __IO uint32_t DVBUSDIS; /*!< dev VBUS discharge Register 828h */
  1794. __IO uint32_t DVBUSPULSE; /*!< dev VBUS Pulse Register 82Ch */
  1795. __IO uint32_t DTHRCTL; /*!< dev threshold 830h */
  1796. __IO uint32_t DIEPEMPMSK; /*!< dev empty msk 834h */
  1797. __IO uint32_t DEACHINT; /*!< dedicated EP interrupt 838h */
  1798. __IO uint32_t DEACHMSK; /*!< dedicated EP msk 83Ch */
  1799. uint32_t Reserved40; /*!< dedicated EP mask 840h */
  1800. __IO uint32_t DINEP1MSK; /*!< dedicated EP mask 844h */
  1801. uint32_t Reserved44[15]; /*!< Reserved 844-87Ch */
  1802. __IO uint32_t DOUTEP1MSK; /*!< dedicated EP msk 884h */
  1803. } USB_OTG_DeviceTypeDef;
  1804. /**
  1805. * @brief USB_OTG_IN_Endpoint-Specific_Register
  1806. */
  1807. typedef struct
  1808. {
  1809. __IO uint32_t DIEPCTL; /*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h */
  1810. uint32_t Reserved04; /*!< Reserved 900h + (ep_num * 20h) + 04h */
  1811. __IO uint32_t DIEPINT; /*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h */
  1812. uint32_t Reserved0C; /*!< Reserved 900h + (ep_num * 20h) + 0Ch */
  1813. __IO uint32_t DIEPTSIZ; /*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h */
  1814. __IO uint32_t DIEPDMA; /*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h */
  1815. __IO uint32_t DTXFSTS; /*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h */
  1816. uint32_t Reserved18; /*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch */
  1817. } USB_OTG_INEndpointTypeDef;
  1818. /**
  1819. * @brief USB_OTG_OUT_Endpoint-Specific_Registers
  1820. */
  1821. typedef struct
  1822. {
  1823. __IO uint32_t DOEPCTL; /*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h */
  1824. uint32_t Reserved04; /*!< Reserved B00h + (ep_num * 20h) + 04h */
  1825. __IO uint32_t DOEPINT; /*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h */
  1826. uint32_t Reserved0C; /*!< Reserved B00h + (ep_num * 20h) + 0Ch */
  1827. __IO uint32_t DOEPTSIZ; /*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h */
  1828. __IO uint32_t DOEPDMA; /*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h */
  1829. uint32_t Reserved18[2]; /*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch */
  1830. } USB_OTG_OUTEndpointTypeDef;
  1831. /**
  1832. * @brief USB_OTG_Host_Mode_Register_Structures
  1833. */
  1834. typedef struct
  1835. {
  1836. __IO uint32_t HCFG; /*!< Host Configuration Register 400h */
  1837. __IO uint32_t HFIR; /*!< Host Frame Interval Register 404h */
  1838. __IO uint32_t HFNUM; /*!< Host Frame Nbr/Frame Remaining 408h */
  1839. uint32_t Reserved40C; /*!< Reserved 40Ch */
  1840. __IO uint32_t HPTXSTS; /*!< Host Periodic Tx FIFO/ Queue Status 410h */
  1841. __IO uint32_t HAINT; /*!< Host All Channels Interrupt Register 414h */
  1842. __IO uint32_t HAINTMSK; /*!< Host All Channels Interrupt Mask 418h */
  1843. } USB_OTG_HostTypeDef;
  1844. /**
  1845. * @brief USB_OTG_Host_Channel_Specific_Registers
  1846. */
  1847. typedef struct
  1848. {
  1849. __IO uint32_t HCCHAR; /*!< Host Channel Characteristics Register 500h */
  1850. __IO uint32_t HCSPLT; /*!< Host Channel Split Control Register 504h */
  1851. __IO uint32_t HCINT; /*!< Host Channel Interrupt Register 508h */
  1852. __IO uint32_t HCINTMSK; /*!< Host Channel Interrupt Mask Register 50Ch */
  1853. __IO uint32_t HCTSIZ; /*!< Host Channel Transfer Size Register 510h */
  1854. __IO uint32_t HCDMA; /*!< Host Channel DMA Address Register 514h */
  1855. uint32_t Reserved[2]; /*!< Reserved */
  1856. } USB_OTG_HostChannelTypeDef;
  1857. /**
  1858. * @}
  1859. */
  1860. /** @addtogroup Peripheral_memory_map
  1861. * @{
  1862. */
  1863. #define D1_ITCMRAM_BASE ((uint32_t)0x00000000) /*!< Base address of : 64KB RAM reserved for CPU execution/instruction accessible over ITCM */
  1864. #define D1_ITCMICP_BASE ((uint32_t)0x00100000) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over ITCM */
  1865. #define D1_DTCMRAM_BASE ((uint32_t)0x20000000) /*!< Base address of : 128KB system data RAM accessible over DTCM */
  1866. #define D1_AXIFLASH_BASE ((uint32_t)0x08000000) /*!< Base address of : (up to 2 MB) embedded FLASH memory accessible over AXI */
  1867. #define D1_AXIICP_BASE ((uint32_t)0x1FF00000) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over AXI */
  1868. #define D1_AXISRAM_BASE ((uint32_t)0x24000000) /*!< Base address of : (up to 512KB) system data RAM accessible over over AXI */
  1869. #define D2_AXISRAM_BASE ((uint32_t)0x10000000) /*!< Base address of : (up to 288KB) system data RAM accessible over over AXI */
  1870. #define D2_AHBSRAM_BASE ((uint32_t)0x30000000) /*!< Base address of : (up to 288KB) system data RAM accessible over over AXI->AHB Bridge */
  1871. #define D3_BKPSRAM_BASE ((uint32_t)0x38800000) /*!< Base address of : Backup SRAM(4 KB) over AXI->AHB Bridge */
  1872. #define D3_SRAM_BASE ((uint32_t)0x38000000) /*!< Base address of : Backup SRAM(64 KB) over AXI->AHB Bridge */
  1873. #define PERIPH_BASE ((uint32_t)0x40000000) /*!< Base address of : AHB/ABP Peripherals */
  1874. #define QSPI_BASE ((uint32_t)0x90000000) /*!< Base address of : QSPI memories accessible over AXI */
  1875. #define FLASH_BANK1_BASE ((uint32_t)0x08000000) /*!< Base address of : Flash Bank1 accessible over AXI */
  1876. #define FLASH_BANK2_BASE ((uint32_t)0x08100000) /*!< Base address of : Flash Bank2 accessible over AXI */
  1877. #define FLASH_END ((uint32_t)0x081FFFFF) /*!< FLASH end address */
  1878. /* Legacy define */
  1879. #define FLASH_BASE FLASH_BANK1_BASE
  1880. /*!< Peripheral memory map */
  1881. #define D2_APB1PERIPH_BASE PERIPH_BASE
  1882. #define D2_APB2PERIPH_BASE (PERIPH_BASE + 0x00010000)
  1883. #define D2_AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000)
  1884. #define D2_AHB2PERIPH_BASE (PERIPH_BASE + 0x08020000)
  1885. #define D1_APB1PERIPH_BASE (PERIPH_BASE + 0x10000000)
  1886. #define D1_AHB1PERIPH_BASE (PERIPH_BASE + 0x12000000)
  1887. #define D3_APB1PERIPH_BASE (PERIPH_BASE + 0x18000000)
  1888. #define D3_AHB1PERIPH_BASE (PERIPH_BASE + 0x18020000)
  1889. /*!< Legacy Peripheral memory map */
  1890. #define APB1PERIPH_BASE PERIPH_BASE
  1891. #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000)
  1892. #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000)
  1893. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
  1894. /*!< D1_AHB1PERIPH peripherals */
  1895. #define MDMA_BASE (D1_AHB1PERIPH_BASE + 0x0000)
  1896. #define DMA2D_BASE (D1_AHB1PERIPH_BASE + 0x1000)
  1897. #define JPGDEC_BASE (D1_AHB1PERIPH_BASE + 0x3000)
  1898. #define FLASH_R_BASE (D1_AHB1PERIPH_BASE + 0x2000)
  1899. #define FMC_R_BASE (D1_AHB1PERIPH_BASE + 0x4000)
  1900. #define QSPI_R_BASE (D1_AHB1PERIPH_BASE + 0x5000)
  1901. #define DLYB_QSPI_BASE (D1_AHB1PERIPH_BASE + 0x6000)
  1902. #define SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x7000)
  1903. #define DLYB_SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x8000)
  1904. /*!< D2_AHB1PERIPH peripherals */
  1905. #define DMA1_BASE (D2_AHB1PERIPH_BASE + 0x0000)
  1906. #define DMA2_BASE (D2_AHB1PERIPH_BASE + 0x0400)
  1907. #define DMAMUX1_BASE (D2_AHB1PERIPH_BASE + 0x0800)
  1908. #define ADC1_BASE (D2_AHB1PERIPH_BASE + 0x2000)
  1909. #define ADC2_BASE (D2_AHB1PERIPH_BASE + 0x2100)
  1910. #define ADC12_COMMON_BASE (D2_AHB1PERIPH_BASE + 0x2300)
  1911. #define ART_BASE (D2_AHB1PERIPH_BASE + 0x4400)
  1912. #define ETH_BASE (D2_AHB1PERIPH_BASE + 0x8000)
  1913. #define ETH_MAC_BASE (ETH_BASE)
  1914. /*!< USB registers base address */
  1915. #define USB1_OTG_HS_PERIPH_BASE ((uint32_t )0x40040000)
  1916. #define USB2_OTG_FS_PERIPH_BASE ((uint32_t )0x40080000)
  1917. #define USB_OTG_GLOBAL_BASE ((uint32_t )0x000)
  1918. #define USB_OTG_DEVICE_BASE ((uint32_t )0x800)
  1919. #define USB_OTG_IN_ENDPOINT_BASE ((uint32_t )0x900)
  1920. #define USB_OTG_OUT_ENDPOINT_BASE ((uint32_t )0xB00)
  1921. #define USB_OTG_EP_REG_SIZE ((uint32_t )0x20)
  1922. #define USB_OTG_HOST_BASE ((uint32_t )0x400)
  1923. #define USB_OTG_HOST_PORT_BASE ((uint32_t )0x440)
  1924. #define USB_OTG_HOST_CHANNEL_BASE ((uint32_t )0x500)
  1925. #define USB_OTG_HOST_CHANNEL_SIZE ((uint32_t )0x20)
  1926. #define USB_OTG_PCGCCTL_BASE ((uint32_t )0xE00)
  1927. #define USB_OTG_FIFO_BASE ((uint32_t )0x1000)
  1928. #define USB_OTG_FIFO_SIZE ((uint32_t )0x1000)
  1929. /*!< D2_AHB2PERIPH peripherals */
  1930. #define DCMI_BASE (D2_AHB2PERIPH_BASE + 0x0000)
  1931. #define CRYP_BASE (D2_AHB2PERIPH_BASE + 0x1000)
  1932. #define HASH_BASE (D2_AHB2PERIPH_BASE + 0x1400)
  1933. #define HASH_DIGEST_BASE (D2_AHB2PERIPH_BASE + 0x1710)
  1934. #define RNG_BASE (D2_AHB2PERIPH_BASE + 0x1800)
  1935. #define SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2400)
  1936. #define DLYB_SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2800)
  1937. /*!< D3_AHB1PERIPH peripherals */
  1938. #define GPIOA_BASE (D3_AHB1PERIPH_BASE + 0x0000)
  1939. #define GPIOB_BASE (D3_AHB1PERIPH_BASE + 0x0400)
  1940. #define GPIOC_BASE (D3_AHB1PERIPH_BASE + 0x0800)
  1941. #define GPIOD_BASE (D3_AHB1PERIPH_BASE + 0x0C00)
  1942. #define GPIOE_BASE (D3_AHB1PERIPH_BASE + 0x1000)
  1943. #define GPIOF_BASE (D3_AHB1PERIPH_BASE + 0x1400)
  1944. #define GPIOG_BASE (D3_AHB1PERIPH_BASE + 0x1800)
  1945. #define GPIOH_BASE (D3_AHB1PERIPH_BASE + 0x1C00)
  1946. #define GPIOI_BASE (D3_AHB1PERIPH_BASE + 0x2000)
  1947. #define GPIOJ_BASE (D3_AHB1PERIPH_BASE + 0x2400)
  1948. #define GPIOK_BASE (D3_AHB1PERIPH_BASE + 0x2800)
  1949. #define RCC_BASE (D3_AHB1PERIPH_BASE + 0x4400)
  1950. #define RCC_C1_BASE (RCC_BASE + 0x130)
  1951. #define PWR_BASE (D3_AHB1PERIPH_BASE + 0x4800)
  1952. #define CRC_BASE (D3_AHB1PERIPH_BASE + 0x4C00)
  1953. #define BDMA_BASE (D3_AHB1PERIPH_BASE + 0x5400)
  1954. #define DMAMUX2_BASE (D3_AHB1PERIPH_BASE + 0x5800)
  1955. #define ADC3_BASE (D3_AHB1PERIPH_BASE + 0x6000)
  1956. #define ADC3_COMMON_BASE (D3_AHB1PERIPH_BASE + 0x6300)
  1957. #define HSEM_BASE (D3_AHB1PERIPH_BASE + 0x6400)
  1958. /*!< D1_APB1PERIPH peripherals */
  1959. #define LTDC_BASE (D1_APB1PERIPH_BASE + 0x1000)
  1960. #define LTDC_Layer1_BASE (LTDC_BASE + 0x84)
  1961. #define LTDC_Layer2_BASE (LTDC_BASE + 0x104)
  1962. #define WWDG1_BASE (D1_APB1PERIPH_BASE + 0x3000)
  1963. /*!< D2_APB1PERIPH peripherals */
  1964. #define TIM2_BASE (D2_APB1PERIPH_BASE + 0x0000)
  1965. #define TIM3_BASE (D2_APB1PERIPH_BASE + 0x0400)
  1966. #define TIM4_BASE (D2_APB1PERIPH_BASE + 0x0800)
  1967. #define TIM5_BASE (D2_APB1PERIPH_BASE + 0x0C00)
  1968. #define TIM6_BASE (D2_APB1PERIPH_BASE + 0x1000)
  1969. #define TIM7_BASE (D2_APB1PERIPH_BASE + 0x1400)
  1970. #define TIM12_BASE (D2_APB1PERIPH_BASE + 0x1800)
  1971. #define TIM13_BASE (D2_APB1PERIPH_BASE + 0x1C00)
  1972. #define TIM14_BASE (D2_APB1PERIPH_BASE + 0x2000)
  1973. #define LPTIM1_BASE (D2_APB1PERIPH_BASE + 0x2400)
  1974. #define SPI2_BASE (D2_APB1PERIPH_BASE + 0x3800)
  1975. #define SPI3_BASE (D2_APB1PERIPH_BASE + 0x3C00)
  1976. #define SPDIFRX_BASE (D2_APB1PERIPH_BASE + 0x4000)
  1977. #define USART2_BASE (D2_APB1PERIPH_BASE + 0x4400)
  1978. #define USART3_BASE (D2_APB1PERIPH_BASE + 0x4800)
  1979. #define UART4_BASE (D2_APB1PERIPH_BASE + 0x4C00)
  1980. #define UART5_BASE (D2_APB1PERIPH_BASE + 0x5000)
  1981. #define I2C1_BASE (D2_APB1PERIPH_BASE + 0x5400)
  1982. #define I2C2_BASE (D2_APB1PERIPH_BASE + 0x5800)
  1983. #define I2C3_BASE (D2_APB1PERIPH_BASE + 0x5C00)
  1984. #define CEC_BASE (D2_APB1PERIPH_BASE + 0x6C00)
  1985. #define DAC1_BASE (D2_APB1PERIPH_BASE + 0x7400)
  1986. #define UART7_BASE (D2_APB1PERIPH_BASE + 0x7800)
  1987. #define UART8_BASE (D2_APB1PERIPH_BASE + 0x7C00)
  1988. #define CRS_BASE (D2_APB1PERIPH_BASE + 0x8400)
  1989. #define SWPMI1_BASE (D2_APB1PERIPH_BASE + 0x8800)
  1990. #define OPAMP_BASE (D2_APB1PERIPH_BASE + 0x9000)
  1991. #define OPAMP1_BASE (D2_APB1PERIPH_BASE + 0x9000)
  1992. #define OPAMP2_BASE (D2_APB1PERIPH_BASE + 0x9010)
  1993. #define MDIOS_BASE (D2_APB1PERIPH_BASE + 0x9400)
  1994. #define FDCAN1_BASE (D2_APB1PERIPH_BASE + 0xA000)
  1995. #define FDCAN2_BASE (D2_APB1PERIPH_BASE + 0xA400)
  1996. #define FDCAN_CCU_BASE (D2_APB1PERIPH_BASE + 0xA800)
  1997. #define SRAMCAN_BASE (D2_APB1PERIPH_BASE + 0xAC00)
  1998. /*!< D2_APB2PERIPH peripherals */
  1999. #define TIM1_BASE (D2_APB2PERIPH_BASE + 0x0000)
  2000. #define TIM8_BASE (D2_APB2PERIPH_BASE + 0x0400)
  2001. #define USART1_BASE (D2_APB2PERIPH_BASE + 0x1000)
  2002. #define USART6_BASE (D2_APB2PERIPH_BASE + 0x1400)
  2003. #define SPI1_BASE (D2_APB2PERIPH_BASE + 0x3000)
  2004. #define SPI4_BASE (D2_APB2PERIPH_BASE + 0x3400)
  2005. #define TIM15_BASE (D2_APB2PERIPH_BASE + 0x4000)
  2006. #define TIM16_BASE (D2_APB2PERIPH_BASE + 0x4400)
  2007. #define TIM17_BASE (D2_APB2PERIPH_BASE + 0x4800)
  2008. #define SPI5_BASE (D2_APB2PERIPH_BASE + 0x5000)
  2009. #define SAI1_BASE (D2_APB2PERIPH_BASE + 0x5800)
  2010. #define SAI1_Block_A_BASE (SAI1_BASE + 0x004)
  2011. #define SAI1_Block_B_BASE (SAI1_BASE + 0x024)
  2012. #define SAI2_BASE (D2_APB2PERIPH_BASE + 0x5C00)
  2013. #define SAI2_Block_A_BASE (SAI2_BASE + 0x004)
  2014. #define SAI2_Block_B_BASE (SAI2_BASE + 0x024)
  2015. #define SAI3_BASE (D2_APB2PERIPH_BASE + 0x6000)
  2016. #define SAI3_Block_A_BASE (SAI3_BASE + 0x004)
  2017. #define SAI3_Block_B_BASE (SAI3_BASE + 0x024)
  2018. #define DFSDM1_BASE (D2_APB2PERIPH_BASE + 0x7000)
  2019. #define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00)
  2020. #define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20)
  2021. #define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40)
  2022. #define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60)
  2023. #define DFSDM1_Channel4_BASE (DFSDM1_BASE + 0x80)
  2024. #define DFSDM1_Channel5_BASE (DFSDM1_BASE + 0xA0)
  2025. #define DFSDM1_Channel6_BASE (DFSDM1_BASE + 0xC0)
  2026. #define DFSDM1_Channel7_BASE (DFSDM1_BASE + 0xE0)
  2027. #define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100)
  2028. #define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180)
  2029. #define DFSDM1_Filter2_BASE (DFSDM1_BASE + 0x200)
  2030. #define DFSDM1_Filter3_BASE (DFSDM1_BASE + 0x280)
  2031. #define HRTIM1_BASE (D2_APB2PERIPH_BASE + 0x7400)
  2032. #define HRTIM1_TIMA_BASE (HRTIM1_BASE + 0x00000080)
  2033. #define HRTIM1_TIMB_BASE (HRTIM1_BASE + 0x00000100)
  2034. #define HRTIM1_TIMC_BASE (HRTIM1_BASE + 0x00000180)
  2035. #define HRTIM1_TIMD_BASE (HRTIM1_BASE + 0x00000200)
  2036. #define HRTIM1_TIME_BASE (HRTIM1_BASE + 0x00000280)
  2037. #define HRTIM1_COMMON_BASE (HRTIM1_BASE + 0x00000380)
  2038. /*!< D3_APB1PERIPH peripherals */
  2039. #define EXTI_BASE (D3_APB1PERIPH_BASE + 0x0000)
  2040. #define EXTI_D1_BASE (EXTI_BASE + 0x0080)
  2041. #define EXTI_D2_BASE (EXTI_BASE + 0x00C0)
  2042. #define SYSCFG_BASE (D3_APB1PERIPH_BASE + 0x0400)
  2043. #define LPUART1_BASE (D3_APB1PERIPH_BASE + 0x0C00)
  2044. #define SPI6_BASE (D3_APB1PERIPH_BASE + 0x1400)
  2045. #define I2C4_BASE (D3_APB1PERIPH_BASE + 0x1C00)
  2046. #define LPTIM2_BASE (D3_APB1PERIPH_BASE + 0x2400)
  2047. #define LPTIM3_BASE (D3_APB1PERIPH_BASE + 0x2800)
  2048. #define LPTIM4_BASE (D3_APB1PERIPH_BASE + 0x2C00)
  2049. #define LPTIM5_BASE (D3_APB1PERIPH_BASE + 0x3000)
  2050. #define COMP12_BASE (D3_APB1PERIPH_BASE + 0x3800)
  2051. #define COMP1_BASE (COMP12_BASE + 0x0C)
  2052. #define COMP2_BASE (COMP12_BASE + 0x10)
  2053. #define VREFBUF_BASE (D3_APB1PERIPH_BASE + 0x3C00)
  2054. #define RTC_BASE (D3_APB1PERIPH_BASE + 0x4000)
  2055. #define IWDG1_BASE (D3_APB1PERIPH_BASE + 0x4800)
  2056. #define SAI4_BASE (D3_APB1PERIPH_BASE + 0x5400)
  2057. #define SAI4_Block_A_BASE (SAI4_BASE + 0x004)
  2058. #define SAI4_Block_B_BASE (SAI4_BASE + 0x024)
  2059. #define BDMA_Channel0_BASE (BDMA_BASE + 0x0008)
  2060. #define BDMA_Channel1_BASE (BDMA_BASE + 0x001C)
  2061. #define BDMA_Channel2_BASE (BDMA_BASE + 0x0030)
  2062. #define BDMA_Channel3_BASE (BDMA_BASE + 0x0044)
  2063. #define BDMA_Channel4_BASE (BDMA_BASE + 0x0058)
  2064. #define BDMA_Channel5_BASE (BDMA_BASE + 0x006C)
  2065. #define BDMA_Channel6_BASE (BDMA_BASE + 0x0080)
  2066. #define BDMA_Channel7_BASE (BDMA_BASE + 0x0094)
  2067. #define DMAMUX2_Channel0_BASE (DMAMUX2_BASE)
  2068. #define DMAMUX2_Channel1_BASE (DMAMUX2_BASE + 0x0004)
  2069. #define DMAMUX2_Channel2_BASE (DMAMUX2_BASE + 0x0008)
  2070. #define DMAMUX2_Channel3_BASE (DMAMUX2_BASE + 0x000C)
  2071. #define DMAMUX2_Channel4_BASE (DMAMUX2_BASE + 0x0010)
  2072. #define DMAMUX2_Channel5_BASE (DMAMUX2_BASE + 0x0014)
  2073. #define DMAMUX2_Channel6_BASE (DMAMUX2_BASE + 0x0018)
  2074. #define DMAMUX2_Channel7_BASE (DMAMUX2_BASE + 0x001C)
  2075. #define DMAMUX2_RequestGenerator0_BASE (DMAMUX2_BASE + 0x0100)
  2076. #define DMAMUX2_RequestGenerator1_BASE (DMAMUX2_BASE + 0x0104)
  2077. #define DMAMUX2_RequestGenerator2_BASE (DMAMUX2_BASE + 0x0108)
  2078. #define DMAMUX2_RequestGenerator3_BASE (DMAMUX2_BASE + 0x010C)
  2079. #define DMAMUX2_RequestGenerator4_BASE (DMAMUX2_BASE + 0x0110)
  2080. #define DMAMUX2_RequestGenerator5_BASE (DMAMUX2_BASE + 0x0114)
  2081. #define DMAMUX2_RequestGenerator6_BASE (DMAMUX2_BASE + 0x0118)
  2082. #define DMAMUX2_RequestGenerator7_BASE (DMAMUX2_BASE + 0x011C)
  2083. #define DMAMUX2_ChannelStatus_BASE (DMAMUX2_BASE + 0x0080)
  2084. #define DMAMUX2_RequestGenStatus_BASE (DMAMUX2_BASE + 0x0140)
  2085. #define DMA1_Stream0_BASE (DMA1_BASE + 0x010)
  2086. #define DMA1_Stream1_BASE (DMA1_BASE + 0x028)
  2087. #define DMA1_Stream2_BASE (DMA1_BASE + 0x040)
  2088. #define DMA1_Stream3_BASE (DMA1_BASE + 0x058)
  2089. #define DMA1_Stream4_BASE (DMA1_BASE + 0x070)
  2090. #define DMA1_Stream5_BASE (DMA1_BASE + 0x088)
  2091. #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0)
  2092. #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8)
  2093. #define DMA2_Stream0_BASE (DMA2_BASE + 0x010)
  2094. #define DMA2_Stream1_BASE (DMA2_BASE + 0x028)
  2095. #define DMA2_Stream2_BASE (DMA2_BASE + 0x040)
  2096. #define DMA2_Stream3_BASE (DMA2_BASE + 0x058)
  2097. #define DMA2_Stream4_BASE (DMA2_BASE + 0x070)
  2098. #define DMA2_Stream5_BASE (DMA2_BASE + 0x088)
  2099. #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0)
  2100. #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8)
  2101. #define DMAMUX1_Channel0_BASE (DMAMUX1_BASE)
  2102. #define DMAMUX1_Channel1_BASE (DMAMUX1_BASE + 0x0004)
  2103. #define DMAMUX1_Channel2_BASE (DMAMUX1_BASE + 0x0008)
  2104. #define DMAMUX1_Channel3_BASE (DMAMUX1_BASE + 0x000C)
  2105. #define DMAMUX1_Channel4_BASE (DMAMUX1_BASE + 0x0010)
  2106. #define DMAMUX1_Channel5_BASE (DMAMUX1_BASE + 0x0014)
  2107. #define DMAMUX1_Channel6_BASE (DMAMUX1_BASE + 0x0018)
  2108. #define DMAMUX1_Channel7_BASE (DMAMUX1_BASE + 0x001C)
  2109. #define DMAMUX1_Channel8_BASE (DMAMUX1_BASE + 0x0020)
  2110. #define DMAMUX1_Channel9_BASE (DMAMUX1_BASE + 0x0024)
  2111. #define DMAMUX1_Channel10_BASE (DMAMUX1_BASE + 0x0028)
  2112. #define DMAMUX1_Channel11_BASE (DMAMUX1_BASE + 0x002C)
  2113. #define DMAMUX1_Channel12_BASE (DMAMUX1_BASE + 0x0030)
  2114. #define DMAMUX1_Channel13_BASE (DMAMUX1_BASE + 0x0034)
  2115. #define DMAMUX1_Channel14_BASE (DMAMUX1_BASE + 0x0038)
  2116. #define DMAMUX1_Channel15_BASE (DMAMUX1_BASE + 0x003C)
  2117. #define DMAMUX1_RequestGenerator0_BASE (DMAMUX1_BASE + 0x0100)
  2118. #define DMAMUX1_RequestGenerator1_BASE (DMAMUX1_BASE + 0x0104)
  2119. #define DMAMUX1_RequestGenerator2_BASE (DMAMUX1_BASE + 0x0108)
  2120. #define DMAMUX1_RequestGenerator3_BASE (DMAMUX1_BASE + 0x010C)
  2121. #define DMAMUX1_RequestGenerator4_BASE (DMAMUX1_BASE + 0x0110)
  2122. #define DMAMUX1_RequestGenerator5_BASE (DMAMUX1_BASE + 0x0114)
  2123. #define DMAMUX1_RequestGenerator6_BASE (DMAMUX1_BASE + 0x0118)
  2124. #define DMAMUX1_RequestGenerator7_BASE (DMAMUX1_BASE + 0x011C)
  2125. #define DMAMUX1_ChannelStatus_BASE (DMAMUX1_BASE + 0x0080)
  2126. #define DMAMUX1_RequestGenStatus_BASE (DMAMUX1_BASE + 0x0140)
  2127. /*!< FMC Banks registers base address */
  2128. #define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
  2129. #define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104)
  2130. #define FMC_Bank2_R_BASE (FMC_R_BASE + 0x0060)
  2131. #define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080)
  2132. #define FMC_Bank5_6_R_BASE (FMC_R_BASE + 0x0140)
  2133. /* Debug MCU registers base address */
  2134. #define DBGMCU_BASE ((uint32_t )0x5C001000)
  2135. #define MDMA_Channel0_BASE (MDMA_BASE + 0x00000040)
  2136. #define MDMA_Channel1_BASE (MDMA_BASE + 0x00000080)
  2137. #define MDMA_Channel2_BASE (MDMA_BASE + 0x000000C0)
  2138. #define MDMA_Channel3_BASE (MDMA_BASE + 0x00000100)
  2139. #define MDMA_Channel4_BASE (MDMA_BASE + 0x00000140)
  2140. #define MDMA_Channel5_BASE (MDMA_BASE + 0x00000180)
  2141. #define MDMA_Channel6_BASE (MDMA_BASE + 0x000001C0)
  2142. #define MDMA_Channel7_BASE (MDMA_BASE + 0x00000200)
  2143. #define MDMA_Channel8_BASE (MDMA_BASE + 0x00000240)
  2144. #define MDMA_Channel9_BASE (MDMA_BASE + 0x00000280)
  2145. #define MDMA_Channel10_BASE (MDMA_BASE + 0x000002C0)
  2146. #define MDMA_Channel11_BASE (MDMA_BASE + 0x00000300)
  2147. #define MDMA_Channel12_BASE (MDMA_BASE + 0x00000340)
  2148. #define MDMA_Channel13_BASE (MDMA_BASE + 0x00000380)
  2149. #define MDMA_Channel14_BASE (MDMA_BASE + 0x000003C0)
  2150. #define MDMA_Channel15_BASE (MDMA_BASE + 0x00000400)
  2151. /**
  2152. * @}
  2153. */
  2154. /** @addtogroup Peripheral_declaration
  2155. * @{
  2156. */
  2157. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  2158. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  2159. #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
  2160. #define TIM5 ((TIM_TypeDef *) TIM5_BASE)
  2161. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  2162. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  2163. #define TIM13 ((TIM_TypeDef *) TIM13_BASE)
  2164. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  2165. #define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE)
  2166. #define RTC ((RTC_TypeDef *) RTC_BASE)
  2167. #define WWDG1 ((WWDG_TypeDef *) WWDG1_BASE)
  2168. #define IWDG1 ((IWDG_TypeDef *) IWDG1_BASE)
  2169. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  2170. #define SPI3 ((SPI_TypeDef *) SPI3_BASE)
  2171. #define SPI4 ((SPI_TypeDef *) SPI4_BASE)
  2172. #define SPI5 ((SPI_TypeDef *) SPI5_BASE)
  2173. #define SPI6 ((SPI_TypeDef *) SPI6_BASE)
  2174. #define USART2 ((USART_TypeDef *) USART2_BASE)
  2175. #define USART3 ((USART_TypeDef *) USART3_BASE)
  2176. #define USART6 ((USART_TypeDef *) USART6_BASE)
  2177. #define UART7 ((USART_TypeDef *) UART7_BASE)
  2178. #define UART8 ((USART_TypeDef *) UART8_BASE)
  2179. #define CRS ((CRS_TypeDef *) CRS_BASE)
  2180. #define UART4 ((USART_TypeDef *) UART4_BASE)
  2181. #define UART5 ((USART_TypeDef *) UART5_BASE)
  2182. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  2183. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  2184. #define I2C3 ((I2C_TypeDef *) I2C3_BASE)
  2185. #define I2C4 ((I2C_TypeDef *) I2C4_BASE)
  2186. #define FDCAN1 ((FDCAN_GlobalTypeDef *) FDCAN1_BASE)
  2187. #define FDCAN2 ((FDCAN_GlobalTypeDef *) FDCAN2_BASE)
  2188. #define FDCAN_CCU ((FDCAN_ClockCalibrationUnit_TypeDef *) FDCAN_CCU_BASE)
  2189. #define CEC ((CEC_TypeDef *) CEC_BASE)
  2190. #define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE)
  2191. #define PWR ((PWR_TypeDef *) PWR_BASE)
  2192. #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
  2193. #define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
  2194. #define SWPMI1 ((SWPMI_TypeDef *) SWPMI1_BASE)
  2195. #define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE)
  2196. #define LPTIM3 ((LPTIM_TypeDef *) LPTIM3_BASE)
  2197. #define LPTIM4 ((LPTIM_TypeDef *) LPTIM4_BASE)
  2198. #define LPTIM5 ((LPTIM_TypeDef *) LPTIM5_BASE)
  2199. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  2200. #define COMP12 ((COMPOPT_TypeDef *) COMP12_BASE)
  2201. #define COMP1 ((COMP_TypeDef *) COMP1_BASE)
  2202. #define COMP2 ((COMP_TypeDef *) COMP2_BASE)
  2203. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE)
  2204. #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
  2205. #define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE)
  2206. #define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
  2207. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  2208. #define EXTI_D1 ((EXTI_Core_TypeDef *) EXTI_D1_BASE)
  2209. #define EXTI_D2 ((EXTI_Core_TypeDef *) EXTI_D2_BASE)
  2210. #define SDMMC ((SDMMC_TypeDef *) SDMMC_BASE)
  2211. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  2212. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  2213. #define TIM8 ((TIM_TypeDef *) TIM8_BASE)
  2214. #define USART1 ((USART_TypeDef *) USART1_BASE)
  2215. #define TIM12 ((TIM_TypeDef *) TIM12_BASE)
  2216. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  2217. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  2218. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  2219. #define HRTIM1 ((HRTIM_TypeDef *) HRTIM1_BASE)
  2220. #define HRTIM1_TIMA ((HRTIM_TIM_TypeDef *) HRTIM1_TIMA_BASE)
  2221. #define HRTIM1_TIMB ((HRTIM_TIM_TypeDef *) HRTIM1_TIMB_BASE)
  2222. #define HRTIM1_TIMC ((HRTIM_TIM_TypeDef *) HRTIM1_TIMC_BASE)
  2223. #define HRTIM1_TIMD ((HRTIM_TIM_TypeDef *) HRTIM1_TIMD_BASE)
  2224. #define HRTIM1_TIME ((HRTIM_TIM_TypeDef *) HRTIM1_TIME_BASE)
  2225. #define HRTIM1_COMMON ((HRTIM_Common_TypeDef *) HRTIM1_COMMON_BASE)
  2226. #define SAI1 ((SAI_TypeDef *) SAI1_BASE)
  2227. #define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE)
  2228. #define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE)
  2229. #define SAI2 ((SAI_TypeDef *) SAI2_BASE)
  2230. #define SAI2_Block_A ((SAI_Block_TypeDef *)SAI2_Block_A_BASE)
  2231. #define SAI2_Block_B ((SAI_Block_TypeDef *)SAI2_Block_B_BASE)
  2232. #define SAI3 ((SAI_TypeDef *) SAI3_BASE)
  2233. #define SAI3_Block_A ((SAI_Block_TypeDef *)SAI3_Block_A_BASE)
  2234. #define SAI3_Block_B ((SAI_Block_TypeDef *)SAI3_Block_B_BASE)
  2235. #define SAI4 ((SAI_TypeDef *) SAI4_BASE)
  2236. #define SAI4_Block_A ((SAI_Block_TypeDef *)SAI4_Block_A_BASE)
  2237. #define SAI4_Block_B ((SAI_Block_TypeDef *)SAI4_Block_B_BASE)
  2238. #define SPDIFRX ((SPDIFRX_TypeDef *) SPDIFRX_BASE)
  2239. #define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE)
  2240. #define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE)
  2241. #define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE)
  2242. #define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE)
  2243. #define DFSDM1_Channel4 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel4_BASE)
  2244. #define DFSDM1_Channel5 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel5_BASE)
  2245. #define DFSDM1_Channel6 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel6_BASE)
  2246. #define DFSDM1_Channel7 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel7_BASE)
  2247. #define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE)
  2248. #define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE)
  2249. #define DFSDM1_Filter2 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE)
  2250. #define DFSDM1_Filter3 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE)
  2251. #define DMA2D ((DMA2D_TypeDef *) DMA2D_BASE)
  2252. #define DCMI ((DCMI_TypeDef *) DCMI_BASE)
  2253. #define RCC ((RCC_TypeDef *) RCC_BASE)
  2254. #define RCC_C1 ((RCC_Core_TypeDef *) RCC_C1_BASE)
  2255. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  2256. #define CRC ((CRC_TypeDef *) CRC_BASE)
  2257. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  2258. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  2259. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  2260. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  2261. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  2262. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  2263. #define GPIOG ((GPIO_TypeDef *) GPIOG_BASE)
  2264. #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE)
  2265. #define GPIOI ((GPIO_TypeDef *) GPIOI_BASE)
  2266. #define GPIOJ ((GPIO_TypeDef *) GPIOJ_BASE)
  2267. #define GPIOK ((GPIO_TypeDef *) GPIOK_BASE)
  2268. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  2269. #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
  2270. #define ADC3 ((ADC_TypeDef *) ADC3_BASE)
  2271. #define ADC12_COMMON ((ADC_Common_TypeDef *) ADC12_COMMON_BASE)
  2272. #define ADC3_COMMON ((ADC_Common_TypeDef *) ADC3_COMMON_BASE)
  2273. #define CRYP ((CRYP_TypeDef *) CRYP_BASE)
  2274. #define HASH ((HASH_TypeDef *) HASH_BASE)
  2275. #define HASH_DIGEST ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE)
  2276. #define RNG ((RNG_TypeDef *) RNG_BASE)
  2277. #define SDMMC2 ((SDMMC_TypeDef *) SDMMC2_BASE)
  2278. #define DLYB_SDMMC2 ((DLYB_TypeDef *) DLYB_SDMMC2_BASE)
  2279. #define BDMA ((BDMA_TypeDef *) BDMA_BASE)
  2280. #define BDMA_Channel0 ((BDMA_Channel_TypeDef *) BDMA_Channel0_BASE)
  2281. #define BDMA_Channel1 ((BDMA_Channel_TypeDef *) BDMA_Channel1_BASE)
  2282. #define BDMA_Channel2 ((BDMA_Channel_TypeDef *) BDMA_Channel2_BASE)
  2283. #define BDMA_Channel3 ((BDMA_Channel_TypeDef *) BDMA_Channel3_BASE)
  2284. #define BDMA_Channel4 ((BDMA_Channel_TypeDef *) BDMA_Channel4_BASE)
  2285. #define BDMA_Channel5 ((BDMA_Channel_TypeDef *) BDMA_Channel5_BASE)
  2286. #define BDMA_Channel6 ((BDMA_Channel_TypeDef *) BDMA_Channel6_BASE)
  2287. #define BDMA_Channel7 ((BDMA_Channel_TypeDef *) BDMA_Channel7_BASE)
  2288. #define DMAMUX2_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel0_BASE)
  2289. #define DMAMUX2_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel1_BASE)
  2290. #define DMAMUX2_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel2_BASE)
  2291. #define DMAMUX2_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel3_BASE)
  2292. #define DMAMUX2_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel4_BASE)
  2293. #define DMAMUX2_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel5_BASE)
  2294. #define DMAMUX2_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel6_BASE)
  2295. #define DMAMUX2_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel7_BASE)
  2296. #define DMAMUX2_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator0_BASE)
  2297. #define DMAMUX2_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator1_BASE)
  2298. #define DMAMUX2_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator2_BASE)
  2299. #define DMAMUX2_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator3_BASE)
  2300. #define DMAMUX2_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator4_BASE)
  2301. #define DMAMUX2_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator5_BASE)
  2302. #define DMAMUX2_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator6_BASE)
  2303. #define DMAMUX2_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator7_BASE)
  2304. #define DMAMUX2_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX2_ChannelStatus_BASE)
  2305. #define DMAMUX2_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX2_RequestGenStatus_BASE)
  2306. #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
  2307. #define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE)
  2308. #define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE)
  2309. #define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE)
  2310. #define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE)
  2311. #define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE)
  2312. #define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE)
  2313. #define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE)
  2314. #define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE)
  2315. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  2316. #define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE)
  2317. #define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE)
  2318. #define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE)
  2319. #define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE)
  2320. #define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE)
  2321. #define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE)
  2322. #define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE)
  2323. #define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE)
  2324. #define DMAMUX1_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE)
  2325. #define DMAMUX1_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE)
  2326. #define DMAMUX1_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE)
  2327. #define DMAMUX1_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE)
  2328. #define DMAMUX1_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE)
  2329. #define DMAMUX1_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE)
  2330. #define DMAMUX1_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE)
  2331. #define DMAMUX1_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE)
  2332. #define DMAMUX1_Channel8 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE)
  2333. #define DMAMUX1_Channel9 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE)
  2334. #define DMAMUX1_Channel10 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE)
  2335. #define DMAMUX1_Channel11 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE)
  2336. #define DMAMUX1_Channel12 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE)
  2337. #define DMAMUX1_Channel13 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE)
  2338. #define DMAMUX1_Channel14 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE)
  2339. #define DMAMUX1_Channel15 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE)
  2340. #define DMAMUX1_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE)
  2341. #define DMAMUX1_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE)
  2342. #define DMAMUX1_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE)
  2343. #define DMAMUX1_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE)
  2344. #define DMAMUX1_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator4_BASE)
  2345. #define DMAMUX1_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator5_BASE)
  2346. #define DMAMUX1_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator6_BASE)
  2347. #define DMAMUX1_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator7_BASE)
  2348. #define DMAMUX1_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE)
  2349. #define DMAMUX1_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE)
  2350. #define FMC_Bank1 ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE)
  2351. #define FMC_Bank1E ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE)
  2352. #define FMC_Bank2 ((FMC_Bank2_TypeDef *) FMC_Bank2_R_BASE)
  2353. #define FMC_Bank3 ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE)
  2354. #define FMC_Bank5_6 ((FMC_Bank5_6_TypeDef *) FMC_Bank5_6_R_BASE)
  2355. #define QUADSPI ((QUADSPI_TypeDef *) QSPI_R_BASE)
  2356. #define DLYB_QUADSPI ((DLYB_TypeDef *) DLYB_QSPI_BASE)
  2357. #define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE)
  2358. #define DLYB_SDMMC1 ((DLYB_TypeDef *) DLYB_SDMMC1_BASE)
  2359. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  2360. #define JPEG ((JPEG_TypeDef *) JPGDEC_BASE)
  2361. #define HSEM ((HSEM_TypeDef *) HSEM_BASE)
  2362. #define LTDC ((LTDC_TypeDef *)LTDC_BASE)
  2363. #define LTDC_Layer1 ((LTDC_Layer_TypeDef *)LTDC_Layer1_BASE)
  2364. #define LTDC_Layer2 ((LTDC_Layer_TypeDef *)LTDC_Layer2_BASE)
  2365. #define MDIOS ((MDIOS_TypeDef *) MDIOS_BASE)
  2366. #define ETH ((ETH_TypeDef *)ETH_BASE)
  2367. #define MDMA ((MDMA_TypeDef *)MDMA_BASE)
  2368. #define MDMA_Channel0 ((MDMA_Channel_TypeDef *)MDMA_Channel0_BASE)
  2369. #define MDMA_Channel1 ((MDMA_Channel_TypeDef *)MDMA_Channel1_BASE)
  2370. #define MDMA_Channel2 ((MDMA_Channel_TypeDef *)MDMA_Channel2_BASE)
  2371. #define MDMA_Channel3 ((MDMA_Channel_TypeDef *)MDMA_Channel3_BASE)
  2372. #define MDMA_Channel4 ((MDMA_Channel_TypeDef *)MDMA_Channel4_BASE)
  2373. #define MDMA_Channel5 ((MDMA_Channel_TypeDef *)MDMA_Channel5_BASE)
  2374. #define MDMA_Channel6 ((MDMA_Channel_TypeDef *)MDMA_Channel6_BASE)
  2375. #define MDMA_Channel7 ((MDMA_Channel_TypeDef *)MDMA_Channel7_BASE)
  2376. #define MDMA_Channel8 ((MDMA_Channel_TypeDef *)MDMA_Channel8_BASE)
  2377. #define MDMA_Channel9 ((MDMA_Channel_TypeDef *)MDMA_Channel9_BASE)
  2378. #define MDMA_Channel10 ((MDMA_Channel_TypeDef *)MDMA_Channel10_BASE)
  2379. #define MDMA_Channel11 ((MDMA_Channel_TypeDef *)MDMA_Channel11_BASE)
  2380. #define MDMA_Channel12 ((MDMA_Channel_TypeDef *)MDMA_Channel12_BASE)
  2381. #define MDMA_Channel13 ((MDMA_Channel_TypeDef *)MDMA_Channel13_BASE)
  2382. #define MDMA_Channel14 ((MDMA_Channel_TypeDef *)MDMA_Channel14_BASE)
  2383. #define MDMA_Channel15 ((MDMA_Channel_TypeDef *)MDMA_Channel15_BASE)
  2384. #define USB1_OTG_HS ((USB_OTG_GlobalTypeDef *) USB1_OTG_HS_PERIPH_BASE)
  2385. #define USB2_OTG_FS ((USB_OTG_GlobalTypeDef *) USB2_OTG_FS_PERIPH_BASE)
  2386. /* Legacy defines */
  2387. #define USB_OTG_HS USB1_OTG_HS
  2388. #define USB_OTG_FS USB2_OTG_FS
  2389. #define USB_OTG_HS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
  2390. #define USB_OTG_FS_PERIPH_BASE USB2_OTG_FS_PERIPH_BASE
  2391. /**
  2392. * @}
  2393. */
  2394. /** @addtogroup Exported_constants
  2395. * @{
  2396. */
  2397. /** @addtogroup Peripheral_Registers_Bits_Definition
  2398. * @{
  2399. */
  2400. /******************************************************************************/
  2401. /* Peripheral Registers_Bits_Definition */
  2402. /******************************************************************************/
  2403. /******************************************************************************/
  2404. /* */
  2405. /* Analog to Digital Converter */
  2406. /* */
  2407. /******************************************************************************/
  2408. /******************** Bit definition for ADC_ISR register ********************/
  2409. #define ADC_ISR_ADRD_Pos (0U)
  2410. #define ADC_ISR_ADRD_Msk (0x1U << ADC_ISR_ADRD_Pos) /*!< 0x00000001 */
  2411. #define ADC_ISR_ADRD ADC_ISR_ADRD_Msk /*!< ADC Ready (ADRDY) flag */
  2412. #define ADC_ISR_EOSMP_Pos (1U)
  2413. #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  2414. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC End of Sampling flag */
  2415. #define ADC_ISR_EOC_Pos (2U)
  2416. #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  2417. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC End of Regular Conversion flag */
  2418. #define ADC_ISR_EOS_Pos (3U)
  2419. #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  2420. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC End of Regular sequence of Conversions flag */
  2421. #define ADC_ISR_OVR_Pos (4U)
  2422. #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  2423. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC overrun flag */
  2424. #define ADC_ISR_JEOC_Pos (5U)
  2425. #define ADC_ISR_JEOC_Msk (0x1U << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  2426. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC End of Injected Conversion flag */
  2427. #define ADC_ISR_JEOS_Pos (6U)
  2428. #define ADC_ISR_JEOS_Msk (0x1U << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  2429. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC End of Injected sequence of Conversions flag */
  2430. #define ADC_ISR_AWD1_Pos (7U)
  2431. #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  2432. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC Analog watchdog 1 flag */
  2433. #define ADC_ISR_AWD2_Pos (8U)
  2434. #define ADC_ISR_AWD2_Msk (0x1U << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  2435. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC Analog watchdog 2 flag */
  2436. #define ADC_ISR_AWD3_Pos (9U)
  2437. #define ADC_ISR_AWD3_Msk (0x1U << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  2438. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC Analog watchdog 3 flag */
  2439. #define ADC_ISR_JQOVF_Pos (10U)
  2440. #define ADC_ISR_JQOVF_Msk (0x1U << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  2441. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC Injected Context Queue Overflow flag */
  2442. /******************** Bit definition for ADC_IER register ********************/
  2443. #define ADC_IER_RDY_Pos (0U)
  2444. #define ADC_IER_RDY_Msk (0x1U << ADC_IER_RDY_Pos) /*!< 0x00000001 */
  2445. #define ADC_IER_RDY ADC_IER_RDY_Msk /*!< ADC Ready (ADRDY) interrupt source */
  2446. #define ADC_IER_EOSMP_Pos (1U)
  2447. #define ADC_IER_EOSMP_Msk (0x1U << ADC_IER_EOSMP_Pos) /*!< 0x00000002 */
  2448. #define ADC_IER_EOSMP ADC_IER_EOSMP_Msk /*!< ADC End of Sampling interrupt source */
  2449. #define ADC_IER_EOC_Pos (2U)
  2450. #define ADC_IER_EOC_Msk (0x1U << ADC_IER_EOC_Pos) /*!< 0x00000004 */
  2451. #define ADC_IER_EOC ADC_IER_EOC_Msk /*!< ADC End of Regular Conversion interrupt source */
  2452. #define ADC_IER_EOS_Pos (3U)
  2453. #define ADC_IER_EOS_Msk (0x1U << ADC_IER_EOS_Pos) /*!< 0x00000008 */
  2454. #define ADC_IER_EOS ADC_IER_EOS_Msk /*!< ADC End of Regular sequence of Conversions interrupt source */
  2455. #define ADC_IER_OVR_Pos (4U)
  2456. #define ADC_IER_OVR_Msk (0x1U << ADC_IER_OVR_Pos) /*!< 0x00000010 */
  2457. #define ADC_IER_OVR ADC_IER_OVR_Msk /*!< ADC overrun interrupt source */
  2458. #define ADC_IER_JEOC_Pos (5U)
  2459. #define ADC_IER_JEOC_Msk (0x1U << ADC_IER_JEOC_Pos) /*!< 0x00000020 */
  2460. #define ADC_IER_JEOC ADC_IER_JEOC_Msk /*!< ADC End of Injected Conversion interrupt source */
  2461. #define ADC_IER_JEOS_Pos (6U)
  2462. #define ADC_IER_JEOS_Msk (0x1U << ADC_IER_JEOS_Pos) /*!< 0x00000040 */
  2463. #define ADC_IER_JEOS ADC_IER_JEOS_Msk /*!< ADC End of Injected sequence of Conversions interrupt source */
  2464. #define ADC_IER_AWD1_Pos (7U)
  2465. #define ADC_IER_AWD1_Msk (0x1U << ADC_IER_AWD1_Pos) /*!< 0x00000080 */
  2466. #define ADC_IER_AWD1 ADC_IER_AWD1_Msk /*!< ADC Analog watchdog 1 interrupt source */
  2467. #define ADC_IER_AWD2_Pos (8U)
  2468. #define ADC_IER_AWD2_Msk (0x1U << ADC_IER_AWD2_Pos) /*!< 0x00000100 */
  2469. #define ADC_IER_AWD2 ADC_IER_AWD2_Msk /*!< ADC Analog watchdog 2 interrupt source */
  2470. #define ADC_IER_AWD3_Pos (9U)
  2471. #define ADC_IER_AWD3_Msk (0x1U << ADC_IER_AWD3_Pos) /*!< 0x00000200 */
  2472. #define ADC_IER_AWD3 ADC_IER_AWD3_Msk /*!< ADC Analog watchdog 3 interrupt source */
  2473. #define ADC_IER_JQOVF_Pos (10U)
  2474. #define ADC_IER_JQOVF_Msk (0x1U << ADC_IER_JQOVF_Pos) /*!< 0x00000400 */
  2475. #define ADC_IER_JQOVF ADC_IER_JQOVF_Msk /*!< ADC Injected Context Queue Overflow interrupt source */
  2476. /******************** Bit definition for ADC_CR register ********************/
  2477. #define ADC_CR_ADEN_Pos (0U)
  2478. #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  2479. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC Enable control */
  2480. #define ADC_CR_ADDIS_Pos (1U)
  2481. #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  2482. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC Disable command */
  2483. #define ADC_CR_ADSTART_Pos (2U)
  2484. #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  2485. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC Start of Regular conversion */
  2486. #define ADC_CR_JADSTART_Pos (3U)
  2487. #define ADC_CR_JADSTART_Msk (0x1U << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  2488. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC Start of injected conversion */
  2489. #define ADC_CR_ADSTP_Pos (4U)
  2490. #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  2491. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC Stop of Regular conversion */
  2492. #define ADC_CR_JADSTP_Pos (5U)
  2493. #define ADC_CR_JADSTP_Msk (0x1U << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  2494. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC Boost Mode */
  2495. #define ADC_CR_BOOST_Pos (8U)
  2496. #define ADC_CR_BOOST_Msk (0x1U << ADC_CR_BOOST_Pos) /*!< 0x00000100 */
  2497. #define ADC_CR_BOOST ADC_CR_BOOST_Msk /*!< ADC Stop of injected conversion */
  2498. #define ADC_CR_ADCALLIN_Pos (16U)
  2499. #define ADC_CR_ADCALLIN_Msk (0x1U << ADC_CR_ADCALLIN_Pos) /*!< 0x00010000 */
  2500. #define ADC_CR_ADCALLIN ADC_CR_ADCALLIN_Msk /*!< ADC Linearity calibration */
  2501. #define ADC_CR_LINCALRDYW1_Pos (22U)
  2502. #define ADC_CR_LINCALRDYW1_Msk (0x1U << ADC_CR_LINCALRDYW1_Pos) /*!< 0x00400000 */
  2503. #define ADC_CR_LINCALRDYW1 ADC_CR_LINCALRDYW1_Msk /*!< ADC Linearity calibration ready Word 1 */
  2504. #define ADC_CR_LINCALRDYW2_Pos (23U)
  2505. #define ADC_CR_LINCALRDYW2_Msk (0x1U << ADC_CR_LINCALRDYW2_Pos) /*!< 0x00800000 */
  2506. #define ADC_CR_LINCALRDYW2 ADC_CR_LINCALRDYW2_Msk /*!< ADC Linearity calibration ready Word 2 */
  2507. #define ADC_CR_LINCALRDYW3_Pos (24U)
  2508. #define ADC_CR_LINCALRDYW3_Msk (0x1U << ADC_CR_LINCALRDYW3_Pos) /*!< 0x01000000 */
  2509. #define ADC_CR_LINCALRDYW3 ADC_CR_LINCALRDYW3_Msk /*!< ADC Linearity calibration ready Word 3 */
  2510. #define ADC_CR_LINCALRDYW4_Pos (25U)
  2511. #define ADC_CR_LINCALRDYW4_Msk (0x1U << ADC_CR_LINCALRDYW4_Pos) /*!< 0x02000000 */
  2512. #define ADC_CR_LINCALRDYW4 ADC_CR_LINCALRDYW4_Msk /*!< ADC Linearity calibration ready Word 4 */
  2513. #define ADC_CR_LINCALRDYW5_Pos (26U)
  2514. #define ADC_CR_LINCALRDYW5_Msk (0x1U << ADC_CR_LINCALRDYW5_Pos) /*!< 0x04000000 */
  2515. #define ADC_CR_LINCALRDYW5 ADC_CR_LINCALRDYW5_Msk /*!< ADC Linearity calibration ready Word 5 */
  2516. #define ADC_CR_LINCALRDYW6_Pos (27U)
  2517. #define ADC_CR_LINCALRDYW6_Msk (0x1U << ADC_CR_LINCALRDYW6_Pos) /*!< 0x08000000 */
  2518. #define ADC_CR_LINCALRDYW6 ADC_CR_LINCALRDYW6_Msk /*!< ADC Linearity calibration ready Word 6 */
  2519. #define ADC_CR_ADVREGEN_Pos (28U)
  2520. #define ADC_CR_ADVREGEN_Msk (0x1U << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  2521. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC Voltage regulator Enable */
  2522. #define ADC_CR_DEEPPWD_Pos (29U)
  2523. #define ADC_CR_DEEPPWD_Msk (0x1U << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
  2524. #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC Deep power down Enable */
  2525. #define ADC_CR_ADCALDIF_Pos (30U)
  2526. #define ADC_CR_ADCALDIF_Msk (0x1U << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  2527. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC Differential Mode for calibration */
  2528. #define ADC_CR_ADCAL_Pos (31U)
  2529. #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  2530. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC Calibration */
  2531. /******************** Bit definition for ADC_CFGR register ********************/
  2532. #define ADC_CFGR_DMNGT_Pos (0U)
  2533. #define ADC_CFGR_DMNGT_Msk (0x3U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000003 */
  2534. #define ADC_CFGR_DMNGT ADC_CFGR_DMNGT_Msk /*!< ADC Data Management configuration */
  2535. #define ADC_CFGR_DMNGT_0 (0x1U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000001 */
  2536. #define ADC_CFGR_DMNGT_1 (0x2U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000002 */
  2537. #define ADC_CFGR_RES_Pos (2U)
  2538. #define ADC_CFGR_RES_Msk (0x7U << ADC_CFGR_RES_Pos) /*!< 0x0000001C */
  2539. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC Data resolution */
  2540. #define ADC_CFGR_RES_0 (0x1U << ADC_CFGR_RES_Pos) /*!< 0x00000004 */
  2541. #define ADC_CFGR_RES_1 (0x2U << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  2542. #define ADC_CFGR_RES_2 (0x4U << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  2543. #define ADC_CFGR_EXTSEL_Pos (5U)
  2544. #define ADC_CFGR_EXTSEL_Msk (0x1FU << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003E0 */
  2545. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC External trigger selection for regular group */
  2546. #define ADC_CFGR_EXTSEL_0 (0x01U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000020 */
  2547. #define ADC_CFGR_EXTSEL_1 (0x02U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  2548. #define ADC_CFGR_EXTSEL_2 (0x04U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  2549. #define ADC_CFGR_EXTSEL_3 (0x08U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  2550. #define ADC_CFGR_EXTSEL_4 (0x10U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  2551. #define ADC_CFGR_EXTEN_Pos (10U)
  2552. #define ADC_CFGR_EXTEN_Msk (0x3U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  2553. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC External trigger enable and polarity selection for regular channels */
  2554. #define ADC_CFGR_EXTEN_0 (0x1U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  2555. #define ADC_CFGR_EXTEN_1 (0x2U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  2556. #define ADC_CFGR_OVRMOD_Pos (12U)
  2557. #define ADC_CFGR_OVRMOD_Msk (0x1U << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  2558. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC overrun mode */
  2559. #define ADC_CFGR_CONT_Pos (13U)
  2560. #define ADC_CFGR_CONT_Msk (0x1U << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  2561. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC Single/continuous conversion mode for regular conversion */
  2562. #define ADC_CFGR_AUTDLY_Pos (14U)
  2563. #define ADC_CFGR_AUTDLY_Msk (0x1U << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  2564. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC Delayed conversion mode */
  2565. #define ADC_CFGR_DISCEN_Pos (16U)
  2566. #define ADC_CFGR_DISCEN_Msk (0x1U << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  2567. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC Discontinuous mode for regular channels */
  2568. #define ADC_CFGR_DISCNUM_Pos (17U)
  2569. #define ADC_CFGR_DISCNUM_Msk (0x7U << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  2570. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC Discontinuous mode channel count */
  2571. #define ADC_CFGR_DISCNUM_0 (0x1U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  2572. #define ADC_CFGR_DISCNUM_1 (0x2U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  2573. #define ADC_CFGR_DISCNUM_2 (0x4U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  2574. #define ADC_CFGR_JDISCEN_Pos (20U)
  2575. #define ADC_CFGR_JDISCEN_Msk (0x1U << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  2576. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC Discontinuous mode on injected channels */
  2577. #define ADC_CFGR_JQM_Pos (21U)
  2578. #define ADC_CFGR_JQM_Msk (0x1U << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  2579. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC JSQR Queue mode */
  2580. #define ADC_CFGR_AWD1SGL_Pos (22U)
  2581. #define ADC_CFGR_AWD1SGL_Msk (0x1U << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  2582. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< Enable the watchdog 1 on a single channel or on all channels */
  2583. #define ADC_CFGR_AWD1EN_Pos (23U)
  2584. #define ADC_CFGR_AWD1EN_Msk (0x1U << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  2585. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC Analog watchdog 1 enable on regular Channels */
  2586. #define ADC_CFGR_JAWD1EN_Pos (24U)
  2587. #define ADC_CFGR_JAWD1EN_Msk (0x1U << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  2588. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC Analog watchdog 1 enable on injected Channels */
  2589. #define ADC_CFGR_JAUTO_Pos (25U)
  2590. #define ADC_CFGR_JAUTO_Msk (0x1U << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  2591. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC Automatic injected group conversion */
  2592. #define ADC_CFGR_AWD1CH_Pos (26U)
  2593. #define ADC_CFGR_AWD1CH_Msk (0x1FU << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  2594. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC Analog watchdog 1 Channel selection */
  2595. #define ADC_CFGR_AWD1CH_0 (0x01U << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  2596. #define ADC_CFGR_AWD1CH_1 (0x02U << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  2597. #define ADC_CFGR_AWD1CH_2 (0x04U << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  2598. #define ADC_CFGR_AWD1CH_3 (0x08U << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  2599. #define ADC_CFGR_AWD1CH_4 (0x10U << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  2600. #define ADC_CFGR_JQDIS_Pos (31U)
  2601. #define ADC_CFGR_JQDIS_Msk (0x1U << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
  2602. #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC Injected queue disable */
  2603. /******************** Bit definition for ADC_CFGR2 register ********************/
  2604. #define ADC_CFGR2_ROVSE_Pos (0U)
  2605. #define ADC_CFGR2_ROVSE_Msk (0x1U << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
  2606. #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC Regular group oversampler enable */
  2607. #define ADC_CFGR2_JOVSE_Pos (1U)
  2608. #define ADC_CFGR2_JOVSE_Msk (0x1U << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
  2609. #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC Injected group oversampler enable */
  2610. #define ADC_CFGR2_OVSS_Pos (5U)
  2611. #define ADC_CFGR2_OVSS_Msk (0xFU << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
  2612. #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC Regular Oversampling shift */
  2613. #define ADC_CFGR2_OVSS_0 (0x1U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
  2614. #define ADC_CFGR2_OVSS_1 (0x2U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
  2615. #define ADC_CFGR2_OVSS_2 (0x4U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
  2616. #define ADC_CFGR2_OVSS_3 (0x8U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
  2617. #define ADC_CFGR2_TROVS_Pos (9U)
  2618. #define ADC_CFGR2_TROVS_Msk (0x1U << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
  2619. #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC Triggered regular Oversampling */
  2620. #define ADC_CFGR2_ROVSM_Pos (10U)
  2621. #define ADC_CFGR2_ROVSM_Msk (0x1U << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
  2622. #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC Regular oversampling mode */
  2623. #define ADC_CFGR2_RSHIFT1_Pos (11U)
  2624. #define ADC_CFGR2_RSHIFT1_Msk (0x1U << ADC_CFGR2_RSHIFT1_Pos) /*!< 0x00000800 */
  2625. #define ADC_CFGR2_RSHIFT1 ADC_CFGR2_RSHIFT1_Msk /*!< ADC Right-shift data after Offset 1 correction */
  2626. #define ADC_CFGR2_RSHIFT2_Pos (12U)
  2627. #define ADC_CFGR2_RSHIFT2_Msk (0x1U << ADC_CFGR2_RSHIFT2_Pos) /*!< 0x00001000 */
  2628. #define ADC_CFGR2_RSHIFT2 ADC_CFGR2_RSHIFT2_Msk /*!< ADC Right-shift data after Offset 2 correction */
  2629. #define ADC_CFGR2_RSHIFT3_Pos (13U)
  2630. #define ADC_CFGR2_RSHIFT3_Msk (0x1U << ADC_CFGR2_RSHIFT3_Pos) /*!< 0x00002000 */
  2631. #define ADC_CFGR2_RSHIFT3 ADC_CFGR2_RSHIFT3_Msk /*!< ADC Right-shift data after Offset 3 correction */
  2632. #define ADC_CFGR2_RSHIFT4_Pos (14U)
  2633. #define ADC_CFGR2_RSHIFT4_Msk (0x1U << ADC_CFGR2_RSHIFT4_Pos) /*!< 0x00004000 */
  2634. #define ADC_CFGR2_RSHIFT4 ADC_CFGR2_RSHIFT4_Msk /*!< ADC Right-shift data after Offset 4 correction */
  2635. #define ADC_CFGR2_OSR_Pos (16U)
  2636. #define ADC_CFGR2_OSR_Msk (0x3FFU << ADC_CFGR2_OSR_Pos) /*!< 0x03FF0000 */
  2637. #define ADC_CFGR2_OSR ADC_CFGR2_OSR_Msk /*!< ADC oversampling Ratio */
  2638. #define ADC_CFGR2_OSR_0 (0x001U << ADC_CFGR2_OSR_Pos) /*!< 0x00010000 */
  2639. #define ADC_CFGR2_OSR_1 (0x002U << ADC_CFGR2_OSR_Pos) /*!< 0x00020000 */
  2640. #define ADC_CFGR2_OSR_2 (0x004U << ADC_CFGR2_OSR_Pos) /*!< 0x00040000 */
  2641. #define ADC_CFGR2_OSR_3 (0x008U << ADC_CFGR2_OSR_Pos) /*!< 0x00080000 */
  2642. #define ADC_CFGR2_OSR_4 (0x010U << ADC_CFGR2_OSR_Pos) /*!< 0x00100000 */
  2643. #define ADC_CFGR2_OSR_5 (0x020U << ADC_CFGR2_OSR_Pos) /*!< 0x00200000 */
  2644. #define ADC_CFGR2_OSR_6 (0x040U << ADC_CFGR2_OSR_Pos) /*!< 0x00400000 */
  2645. #define ADC_CFGR2_OSR_7 (0x080U << ADC_CFGR2_OSR_Pos) /*!< 0x00800000 */
  2646. #define ADC_CFGR2_OSR_8 (0x100U << ADC_CFGR2_OSR_Pos) /*!< 0x01000000 */
  2647. #define ADC_CFGR2_OSR_9 (0x200U << ADC_CFGR2_OSR_Pos) /*!< 0x02000000 */
  2648. #define ADC_CFGR2_LSHIFT_Pos (28U)
  2649. #define ADC_CFGR2_LSHIFT_Msk (0xFU << ADC_CFGR2_LSHIFT_Pos) /*!< 0xF0000000 */
  2650. #define ADC_CFGR2_LSHIFT ADC_CFGR2_LSHIFT_Msk /*!< ADC Left shift factor */
  2651. #define ADC_CFGR2_LSHIFT_0 (0x1U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x10000000 */
  2652. #define ADC_CFGR2_LSHIFT_1 (0x2U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x20000000 */
  2653. #define ADC_CFGR2_LSHIFT_2 (0x4U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x40000000 */
  2654. #define ADC_CFGR2_LSHIFT_3 (0x8U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x80000000 */
  2655. /******************** Bit definition for ADC_SMPR1 register ********************/
  2656. #define ADC_SMPR1_SMP0_Pos (0U)
  2657. #define ADC_SMPR1_SMP0_Msk (0x7U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  2658. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC Channel 0 Sampling time selection */
  2659. #define ADC_SMPR1_SMP0_0 (0x1U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  2660. #define ADC_SMPR1_SMP0_1 (0x2U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  2661. #define ADC_SMPR1_SMP0_2 (0x4U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  2662. #define ADC_SMPR1_SMP1_Pos (3U)
  2663. #define ADC_SMPR1_SMP1_Msk (0x7U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  2664. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC Channel 1 Sampling time selection */
  2665. #define ADC_SMPR1_SMP1_0 (0x1U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  2666. #define ADC_SMPR1_SMP1_1 (0x2U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  2667. #define ADC_SMPR1_SMP1_2 (0x4U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  2668. #define ADC_SMPR1_SMP2_Pos (6U)
  2669. #define ADC_SMPR1_SMP2_Msk (0x7U << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  2670. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC Channel 2 Sampling time selection */
  2671. #define ADC_SMPR1_SMP2_0 (0x1U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  2672. #define ADC_SMPR1_SMP2_1 (0x2U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  2673. #define ADC_SMPR1_SMP2_2 (0x4U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  2674. #define ADC_SMPR1_SMP3_Pos (9U)
  2675. #define ADC_SMPR1_SMP3_Msk (0x7U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  2676. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC Channel 3 Sampling time selection */
  2677. #define ADC_SMPR1_SMP3_0 (0x1U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  2678. #define ADC_SMPR1_SMP3_1 (0x2U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  2679. #define ADC_SMPR1_SMP3_2 (0x4U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  2680. #define ADC_SMPR1_SMP4_Pos (12U)
  2681. #define ADC_SMPR1_SMP4_Msk (0x7U << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  2682. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC Channel 4 Sampling time selection */
  2683. #define ADC_SMPR1_SMP4_0 (0x1U << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  2684. #define ADC_SMPR1_SMP4_1 (0x2U << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  2685. #define ADC_SMPR1_SMP4_2 (0x4U << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  2686. #define ADC_SMPR1_SMP5_Pos (15U)
  2687. #define ADC_SMPR1_SMP5_Msk (0x7U << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  2688. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC Channel 5 Sampling time selection */
  2689. #define ADC_SMPR1_SMP5_0 (0x1U << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  2690. #define ADC_SMPR1_SMP5_1 (0x2U << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  2691. #define ADC_SMPR1_SMP5_2 (0x4U << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  2692. #define ADC_SMPR1_SMP6_Pos (18U)
  2693. #define ADC_SMPR1_SMP6_Msk (0x7U << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  2694. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC Channel 6 Sampling time selection */
  2695. #define ADC_SMPR1_SMP6_0 (0x1U << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  2696. #define ADC_SMPR1_SMP6_1 (0x2U << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  2697. #define ADC_SMPR1_SMP6_2 (0x4U << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  2698. #define ADC_SMPR1_SMP7_Pos (21U)
  2699. #define ADC_SMPR1_SMP7_Msk (0x7U << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  2700. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC Channel 7 Sampling time selection */
  2701. #define ADC_SMPR1_SMP7_0 (0x1U << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  2702. #define ADC_SMPR1_SMP7_1 (0x2U << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  2703. #define ADC_SMPR1_SMP7_2 (0x4U << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  2704. #define ADC_SMPR1_SMP8_Pos (24U)
  2705. #define ADC_SMPR1_SMP8_Msk (0x7U << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  2706. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC Channel 8 Sampling time selection */
  2707. #define ADC_SMPR1_SMP8_0 (0x1U << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  2708. #define ADC_SMPR1_SMP8_1 (0x2U << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  2709. #define ADC_SMPR1_SMP8_2 (0x4U << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  2710. #define ADC_SMPR1_SMP9_Pos (27U)
  2711. #define ADC_SMPR1_SMP9_Msk (0x7U << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  2712. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC Channel 9 Sampling time selection */
  2713. #define ADC_SMPR1_SMP9_0 (0x1U << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  2714. #define ADC_SMPR1_SMP9_1 (0x2U << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  2715. #define ADC_SMPR1_SMP9_2 (0x4U << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  2716. /******************** Bit definition for ADC_SMPR2 register ********************/
  2717. #define ADC_SMPR2_SMP10_Pos (0U)
  2718. #define ADC_SMPR2_SMP10_Msk (0x7U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  2719. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC Channel 10 Sampling time selection */
  2720. #define ADC_SMPR2_SMP10_0 (0x1U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  2721. #define ADC_SMPR2_SMP10_1 (0x2U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  2722. #define ADC_SMPR2_SMP10_2 (0x4U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  2723. #define ADC_SMPR2_SMP11_Pos (3U)
  2724. #define ADC_SMPR2_SMP11_Msk (0x7U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  2725. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC Channel 11 Sampling time selection */
  2726. #define ADC_SMPR2_SMP11_0 (0x1U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  2727. #define ADC_SMPR2_SMP11_1 (0x2U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  2728. #define ADC_SMPR2_SMP11_2 (0x4U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  2729. #define ADC_SMPR2_SMP12_Pos (6U)
  2730. #define ADC_SMPR2_SMP12_Msk (0x7U << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  2731. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC Channel 12 Sampling time selection */
  2732. #define ADC_SMPR2_SMP12_0 (0x1U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  2733. #define ADC_SMPR2_SMP12_1 (0x2U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  2734. #define ADC_SMPR2_SMP12_2 (0x4U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  2735. #define ADC_SMPR2_SMP13_Pos (9U)
  2736. #define ADC_SMPR2_SMP13_Msk (0x7U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  2737. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC Channel 13 Sampling time selection */
  2738. #define ADC_SMPR2_SMP13_0 (0x1U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  2739. #define ADC_SMPR2_SMP13_1 (0x2U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  2740. #define ADC_SMPR2_SMP13_2 (0x4U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  2741. #define ADC_SMPR2_SMP14_Pos (12U)
  2742. #define ADC_SMPR2_SMP14_Msk (0x7U << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  2743. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC Channel 14 Sampling time selection */
  2744. #define ADC_SMPR2_SMP14_0 (0x1U << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  2745. #define ADC_SMPR2_SMP14_1 (0x2U << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  2746. #define ADC_SMPR2_SMP14_2 (0x4U << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  2747. #define ADC_SMPR2_SMP15_Pos (15U)
  2748. #define ADC_SMPR2_SMP15_Msk (0x7U << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  2749. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC Channel 15 Sampling time selection */
  2750. #define ADC_SMPR2_SMP15_0 (0x1U << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  2751. #define ADC_SMPR2_SMP15_1 (0x2U << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  2752. #define ADC_SMPR2_SMP15_2 (0x4U << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  2753. #define ADC_SMPR2_SMP16_Pos (18U)
  2754. #define ADC_SMPR2_SMP16_Msk (0x7U << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  2755. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC Channel 16 Sampling time selection */
  2756. #define ADC_SMPR2_SMP16_0 (0x1U << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  2757. #define ADC_SMPR2_SMP16_1 (0x2U << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  2758. #define ADC_SMPR2_SMP16_2 (0x4U << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  2759. #define ADC_SMPR2_SMP17_Pos (21U)
  2760. #define ADC_SMPR2_SMP17_Msk (0x7U << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  2761. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC Channel 17 Sampling time selection */
  2762. #define ADC_SMPR2_SMP17_0 (0x1U << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  2763. #define ADC_SMPR2_SMP17_1 (0x2U << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  2764. #define ADC_SMPR2_SMP17_2 (0x4U << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  2765. #define ADC_SMPR2_SMP18_Pos (24U)
  2766. #define ADC_SMPR2_SMP18_Msk (0x7U << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  2767. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC Channel 18 Sampling time selection */
  2768. #define ADC_SMPR2_SMP18_0 (0x1U << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  2769. #define ADC_SMPR2_SMP18_1 (0x2U << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  2770. #define ADC_SMPR2_SMP18_2 (0x4U << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  2771. #define ADC_SMPR2_SMP19_Pos (27U)
  2772. #define ADC_SMPR2_SMP19_Msk (0x7U << ADC_SMPR2_SMP19_Pos) /*!< 0x38000000 */
  2773. #define ADC_SMPR2_SMP19 ADC_SMPR2_SMP19_Msk /*!< ADC Channel 19 Sampling time selection */
  2774. #define ADC_SMPR2_SMP19_0 (0x1U << ADC_SMPR2_SMP19_Pos) /*!< 0x08000000 */
  2775. #define ADC_SMPR2_SMP19_1 (0x2U << ADC_SMPR2_SMP19_Pos) /*!< 0x10000000 */
  2776. #define ADC_SMPR2_SMP19_2 (0x4U << ADC_SMPR2_SMP19_Pos) /*!< 0x20000000 */
  2777. /******************** Bit definition for ADC_PCSEL register ********************/
  2778. #define ADC_PCSEL_PCSEL_Pos (0U)
  2779. #define ADC_PCSEL_PCSEL_Msk (0xFFFFFU << ADC_PCSEL_PCSEL_Pos) /*!< 0x000FFFFF */
  2780. #define ADC_PCSEL_PCSEL ADC_PCSEL_PCSEL_Msk /*!< ADC pre channel selection */
  2781. #define ADC_PCSEL_PCSEL_0 (0x00001U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000001 */
  2782. #define ADC_PCSEL_PCSEL_1 (0x00002U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000002 */
  2783. #define ADC_PCSEL_PCSEL_2 (0x00004U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000004 */
  2784. #define ADC_PCSEL_PCSEL_3 (0x00008U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000008 */
  2785. #define ADC_PCSEL_PCSEL_4 (0x00010U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000010 */
  2786. #define ADC_PCSEL_PCSEL_5 (0x00020U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000020 */
  2787. #define ADC_PCSEL_PCSEL_6 (0x00040U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000040 */
  2788. #define ADC_PCSEL_PCSEL_7 (0x00080U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000080 */
  2789. #define ADC_PCSEL_PCSEL_8 (0x00100U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000100 */
  2790. #define ADC_PCSEL_PCSEL_9 (0x00200U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000200 */
  2791. #define ADC_PCSEL_PCSEL_10 (0x00400U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000400 */
  2792. #define ADC_PCSEL_PCSEL_11 (0x00800U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000800 */
  2793. #define ADC_PCSEL_PCSEL_12 (0x01000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00001000 */
  2794. #define ADC_PCSEL_PCSEL_13 (0x02000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00002000 */
  2795. #define ADC_PCSEL_PCSEL_14 (0x04000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00004000 */
  2796. #define ADC_PCSEL_PCSEL_15 (0x08000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00008000 */
  2797. #define ADC_PCSEL_PCSEL_16 (0x10000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00010000 */
  2798. #define ADC_PCSEL_PCSEL_17 (0x20000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00020000 */
  2799. #define ADC_PCSEL_PCSEL_18 (0x40000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00040000 */
  2800. #define ADC_PCSEL_PCSEL_19 (0x80000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00080000 */
  2801. /******************** Bit definition for ADC_LTR1 register ********************/
  2802. #define ADC_LTR1_LT1_Pos (0U)
  2803. #define ADC_LTR1_LT1_Msk (0x3FFFFFFU << ADC_LTR1_LT1_Pos) /*!< 0x03FFFFFF */
  2804. #define ADC_LTR1_LT1 ADC_LTR1_LT1_Msk /*!< ADC Analog watchdog 1 lower threshold */
  2805. #define ADC_LTR1_LT1_0 (0x0000001U << ADC_LTR1_LT1_Pos) /*!< 0x00000001 */
  2806. #define ADC_LTR1_LT1_1 (0x0000002U << ADC_LTR1_LT1_Pos) /*!< 0x00000002 */
  2807. #define ADC_LTR1_LT1_2 (0x0000004U << ADC_LTR1_LT1_Pos) /*!< 0x00000004 */
  2808. #define ADC_LTR1_LT1_3 (0x0000008U << ADC_LTR1_LT1_Pos) /*!< 0x00000008 */
  2809. #define ADC_LTR1_LT1_4 (0x0000010U << ADC_LTR1_LT1_Pos) /*!< 0x00000010 */
  2810. #define ADC_LTR1_LT1_5 (0x0000020U << ADC_LTR1_LT1_Pos) /*!< 0x00000020 */
  2811. #define ADC_LTR1_LT1_6 (0x0000040U << ADC_LTR1_LT1_Pos) /*!< 0x00000040 */
  2812. #define ADC_LTR1_LT1_7 (0x0000080U << ADC_LTR1_LT1_Pos) /*!< 0x00000080 */
  2813. #define ADC_LTR1_LT1_8 (0x0000100U << ADC_LTR1_LT1_Pos) /*!< 0x00000100 */
  2814. #define ADC_LTR1_LT1_9 (0x0000200U << ADC_LTR1_LT1_Pos) /*!< 0x00000200 */
  2815. #define ADC_LTR1_LT1_10 (0x0000400U << ADC_LTR1_LT1_Pos) /*!< 0x00000400 */
  2816. #define ADC_LTR1_LT1_11 (0x0000800U << ADC_LTR1_LT1_Pos) /*!< 0x00000800 */
  2817. #define ADC_LTR1_LT1_12 (0x0001000U << ADC_LTR1_LT1_Pos) /*!< 0x00001000 */
  2818. #define ADC_LTR1_LT1_13 (0x0002000U << ADC_LTR1_LT1_Pos) /*!< 0x00002000 */
  2819. #define ADC_LTR1_LT1_14 (0x0004000U << ADC_LTR1_LT1_Pos) /*!< 0x00004000 */
  2820. #define ADC_LTR1_LT1_15 (0x0008000U << ADC_LTR1_LT1_Pos) /*!< 0x00008000 */
  2821. #define ADC_LTR1_LT1_16 (0x0010000U << ADC_LTR1_LT1_Pos) /*!< 0x00010000 */
  2822. #define ADC_LTR1_LT1_17 (0x0020000U << ADC_LTR1_LT1_Pos) /*!< 0x00020000 */
  2823. #define ADC_LTR1_LT1_18 (0x0040000U << ADC_LTR1_LT1_Pos) /*!< 0x00040000 */
  2824. #define ADC_LTR1_LT1_19 (0x0080000U << ADC_LTR1_LT1_Pos) /*!< 0x00080000 */
  2825. #define ADC_LTR1_LT1_20 (0x0100000U << ADC_LTR1_LT1_Pos) /*!< 0x00100000 */
  2826. #define ADC_LTR1_LT1_21 (0x0200000U << ADC_LTR1_LT1_Pos) /*!< 0x00200000 */
  2827. #define ADC_LTR1_LT1_22 (0x0400000U << ADC_LTR1_LT1_Pos) /*!< 0x00400000 */
  2828. #define ADC_LTR1_LT1_23 (0x0800000U << ADC_LTR1_LT1_Pos) /*!< 0x00800000 */
  2829. #define ADC_LTR1_LT1_24 (0x1000000U << ADC_LTR1_LT1_Pos) /*!< 0x01000000 */
  2830. #define ADC_LTR1_LT1_25 (0x2000000U << ADC_LTR1_LT1_Pos) /*!< 0x02000000 */
  2831. /******************** Bit definition for ADC_HTR1 register ********************/
  2832. #define ADC_HTR1_HT1_Pos (0U)
  2833. #define ADC_HTR1_HT1_Msk (0x3FFFFFFU << ADC_HTR1_HT1_Pos) /*!< 0x03FFFFFF */
  2834. #define ADC_HTR1_HT1 ADC_HTR1_HT1_Msk /*!< ADC Analog watchdog 1 higher threshold */
  2835. #define ADC_HTR1_HT1_0 (0x0000001U << ADC_HTR1_HT1_Pos) /*!< 0x00000001 */
  2836. #define ADC_HTR1_HT1_1 (0x0000002U << ADC_HTR1_HT1_Pos) /*!< 0x00000002 */
  2837. #define ADC_HTR1_HT1_2 (0x0000004U << ADC_HTR1_HT1_Pos) /*!< 0x00000004 */
  2838. #define ADC_HTR1_HT1_3 (0x0000008U << ADC_HTR1_HT1_Pos) /*!< 0x00000008 */
  2839. #define ADC_HTR1_HT1_4 (0x0000010U << ADC_HTR1_HT1_Pos) /*!< 0x00000010 */
  2840. #define ADC_HTR1_HT1_5 (0x0000020U << ADC_HTR1_HT1_Pos) /*!< 0x00000020 */
  2841. #define ADC_HTR1_HT1_6 (0x0000040U << ADC_HTR1_HT1_Pos) /*!< 0x00000040 */
  2842. #define ADC_HTR1_HT1_7 (0x0000080U << ADC_HTR1_HT1_Pos) /*!< 0x00000080 */
  2843. #define ADC_HTR1_HT1_8 (0x0000100U << ADC_HTR1_HT1_Pos) /*!< 0x00000100 */
  2844. #define ADC_HTR1_HT1_9 (0x0000200U << ADC_HTR1_HT1_Pos) /*!< 0x00000200 */
  2845. #define ADC_HTR1_HT1_10 (0x0000400U << ADC_HTR1_HT1_Pos) /*!< 0x00000400 */
  2846. #define ADC_HTR1_HT1_11 (0x0000800U << ADC_HTR1_HT1_Pos) /*!< 0x00000800 */
  2847. #define ADC_HTR1_HT1_12 (0x0001000U << ADC_HTR1_HT1_Pos) /*!< 0x00001000 */
  2848. #define ADC_HTR1_HT1_13 (0x0002000U << ADC_HTR1_HT1_Pos) /*!< 0x00002000 */
  2849. #define ADC_HTR1_HT1_14 (0x0004000U << ADC_HTR1_HT1_Pos) /*!< 0x00004000 */
  2850. #define ADC_HTR1_HT1_15 (0x0008000U << ADC_HTR1_HT1_Pos) /*!< 0x00008000 */
  2851. #define ADC_HTR1_HT1_16 (0x0010000U << ADC_HTR1_HT1_Pos) /*!< 0x00010000 */
  2852. #define ADC_HTR1_HT1_17 (0x0020000U << ADC_HTR1_HT1_Pos) /*!< 0x00020000 */
  2853. #define ADC_HTR1_HT1_18 (0x0040000U << ADC_HTR1_HT1_Pos) /*!< 0x00040000 */
  2854. #define ADC_HTR1_HT1_19 (0x0080000U << ADC_HTR1_HT1_Pos) /*!< 0x00080000 */
  2855. #define ADC_HTR1_HT1_20 (0x0100000U << ADC_HTR1_HT1_Pos) /*!< 0x00100000 */
  2856. #define ADC_HTR1_HT1_21 (0x0200000U << ADC_HTR1_HT1_Pos) /*!< 0x00200000 */
  2857. #define ADC_HTR1_HT1_22 (0x0400000U << ADC_HTR1_HT1_Pos) /*!< 0x00400000 */
  2858. #define ADC_HTR1_HT1_23 (0x0800000U << ADC_HTR1_HT1_Pos) /*!< 0x00800000 */
  2859. #define ADC_HTR1_HT1_24 (0x1000000U << ADC_HTR1_HT1_Pos) /*!< 0x01000000 */
  2860. #define ADC_HTR1_HT1_25 (0x2000000U << ADC_HTR1_HT1_Pos) /*!< 0x02000000 */
  2861. /******************** Bit definition for ADC_LTR2 register ********************/
  2862. #define ADC_LTR2_LT2_Pos (0U)
  2863. #define ADC_LTR2_LT2_Msk (0x3FFFFFFU << ADC_LTR2_LT2_Pos) /*!< 0x03FFFFFF */
  2864. #define ADC_LTR2_LT2 ADC_LTR2_LT2_Msk /*!< ADC Analog watchdog 2 lower threshold */
  2865. #define ADC_LTR2_LT2_0 (0x0000001U << ADC_LTR2_LT2_Pos) /*!< 0x00000001 */
  2866. #define ADC_LTR2_LT2_1 (0x0000002U << ADC_LTR2_LT2_Pos) /*!< 0x00000002 */
  2867. #define ADC_LTR2_LT2_2 (0x0000004U << ADC_LTR2_LT2_Pos) /*!< 0x00000004 */
  2868. #define ADC_LTR2_LT2_3 (0x0000008U << ADC_LTR2_LT2_Pos) /*!< 0x00000008 */
  2869. #define ADC_LTR2_LT2_4 (0x0000010U << ADC_LTR2_LT2_Pos) /*!< 0x00000010 */
  2870. #define ADC_LTR2_LT2_5 (0x0000020U << ADC_LTR2_LT2_Pos) /*!< 0x00000020 */
  2871. #define ADC_LTR2_LT2_6 (0x0000040U << ADC_LTR2_LT2_Pos) /*!< 0x00000040 */
  2872. #define ADC_LTR2_LT2_7 (0x0000080U << ADC_LTR2_LT2_Pos) /*!< 0x00000080 */
  2873. #define ADC_LTR2_LT2_8 (0x0000100U << ADC_LTR2_LT2_Pos) /*!< 0x00000100 */
  2874. #define ADC_LTR2_LT2_9 (0x0000200U << ADC_LTR2_LT2_Pos) /*!< 0x00000200 */
  2875. #define ADC_LTR2_LT2_10 (0x0000400U << ADC_LTR2_LT2_Pos) /*!< 0x00000400 */
  2876. #define ADC_LTR2_LT2_11 (0x0000800U << ADC_LTR2_LT2_Pos) /*!< 0x00000800 */
  2877. #define ADC_LTR2_LT2_12 (0x0001000U << ADC_LTR2_LT2_Pos) /*!< 0x00001000 */
  2878. #define ADC_LTR2_LT2_13 (0x0002000U << ADC_LTR2_LT2_Pos) /*!< 0x00002000 */
  2879. #define ADC_LTR2_LT2_14 (0x0004000U << ADC_LTR2_LT2_Pos) /*!< 0x00004000 */
  2880. #define ADC_LTR2_LT2_15 (0x0008000U << ADC_LTR2_LT2_Pos) /*!< 0x00008000 */
  2881. #define ADC_LTR2_LT2_16 (0x0010000U << ADC_LTR2_LT2_Pos) /*!< 0x00010000 */
  2882. #define ADC_LTR2_LT2_17 (0x0020000U << ADC_LTR2_LT2_Pos) /*!< 0x00020000 */
  2883. #define ADC_LTR2_LT2_18 (0x0040000U << ADC_LTR2_LT2_Pos) /*!< 0x00040000 */
  2884. #define ADC_LTR2_LT2_19 (0x0080000U << ADC_LTR2_LT2_Pos) /*!< 0x00080000 */
  2885. #define ADC_LTR2_LT2_20 (0x0100000U << ADC_LTR2_LT2_Pos) /*!< 0x00100000 */
  2886. #define ADC_LTR2_LT2_21 (0x0200000U << ADC_LTR2_LT2_Pos) /*!< 0x00200000 */
  2887. #define ADC_LTR2_LT2_22 (0x0400000U << ADC_LTR2_LT2_Pos) /*!< 0x00400000 */
  2888. #define ADC_LTR2_LT2_23 (0x0800000U << ADC_LTR2_LT2_Pos) /*!< 0x00800000 */
  2889. #define ADC_LTR2_LT2_24 (0x1000000U << ADC_LTR2_LT2_Pos) /*!< 0x01000000 */
  2890. #define ADC_LTR2_LT2_25 (0x2000000U << ADC_LTR2_LT2_Pos) /*!< 0x02000000 */
  2891. /******************** Bit definition for ADC_HTR2 register ********************/
  2892. #define ADC_HTR2_HT2_Pos (0U)
  2893. #define ADC_HTR2_HT2_Msk (0x3FFFFFFU << ADC_HTR2_HT2_Pos) /*!< 0x03FFFFFF */
  2894. #define ADC_HTR2_HT2 ADC_HTR2_HT2_Msk /*!< ADC Analog watchdog 2 higher threshold */
  2895. #define ADC_HTR2_HT2_0 (0x0000001U << ADC_HTR2_HT2_Pos) /*!< 0x00000001 */
  2896. #define ADC_HTR2_HT2_1 (0x0000002U << ADC_HTR2_HT2_Pos) /*!< 0x00000002 */
  2897. #define ADC_HTR2_HT2_2 (0x0000004U << ADC_HTR2_HT2_Pos) /*!< 0x00000004 */
  2898. #define ADC_HTR2_HT2_3 (0x0000008U << ADC_HTR2_HT2_Pos) /*!< 0x00000008 */
  2899. #define ADC_HTR2_HT2_4 (0x0000010U << ADC_HTR2_HT2_Pos) /*!< 0x00000010 */
  2900. #define ADC_HTR2_HT2_5 (0x0000020U << ADC_HTR2_HT2_Pos) /*!< 0x00000020 */
  2901. #define ADC_HTR2_HT2_6 (0x0000040U << ADC_HTR2_HT2_Pos) /*!< 0x00000040 */
  2902. #define ADC_HTR2_HT2_7 (0x0000080U << ADC_HTR2_HT2_Pos) /*!< 0x00000080 */
  2903. #define ADC_HTR2_HT2_8 (0x0000100U << ADC_HTR2_HT2_Pos) /*!< 0x00000100 */
  2904. #define ADC_HTR2_HT2_9 (0x0000200U << ADC_HTR2_HT2_Pos) /*!< 0x00000200 */
  2905. #define ADC_HTR2_HT2_10 (0x0000400U << ADC_HTR2_HT2_Pos) /*!< 0x00000400 */
  2906. #define ADC_HTR2_HT2_11 (0x0000800U << ADC_HTR2_HT2_Pos) /*!< 0x00000800 */
  2907. #define ADC_HTR2_HT2_12 (0x0001000U << ADC_HTR2_HT2_Pos) /*!< 0x00001000 */
  2908. #define ADC_HTR2_HT2_13 (0x0002000U << ADC_HTR2_HT2_Pos) /*!< 0x00002000 */
  2909. #define ADC_HTR2_HT2_14 (0x0004000U << ADC_HTR2_HT2_Pos) /*!< 0x00004000 */
  2910. #define ADC_HTR2_HT2_15 (0x0008000U << ADC_HTR2_HT2_Pos) /*!< 0x00008000 */
  2911. #define ADC_HTR2_HT2_16 (0x0010000U << ADC_HTR2_HT2_Pos) /*!< 0x00010000 */
  2912. #define ADC_HTR2_HT2_17 (0x0020000U << ADC_HTR2_HT2_Pos) /*!< 0x00020000 */
  2913. #define ADC_HTR2_HT2_18 (0x0040000U << ADC_HTR2_HT2_Pos) /*!< 0x00040000 */
  2914. #define ADC_HTR2_HT2_19 (0x0080000U << ADC_HTR2_HT2_Pos) /*!< 0x00080000 */
  2915. #define ADC_HTR2_HT2_20 (0x0100000U << ADC_HTR2_HT2_Pos) /*!< 0x00100000 */
  2916. #define ADC_HTR2_HT2_21 (0x0200000U << ADC_HTR2_HT2_Pos) /*!< 0x00200000 */
  2917. #define ADC_HTR2_HT2_22 (0x0400000U << ADC_HTR2_HT2_Pos) /*!< 0x00400000 */
  2918. #define ADC_HTR2_HT2_23 (0x0800000U << ADC_HTR2_HT2_Pos) /*!< 0x00800000 */
  2919. #define ADC_HTR2_HT2_24 (0x1000000U << ADC_HTR2_HT2_Pos) /*!< 0x01000000 */
  2920. #define ADC_HTR2_HT2_25 (0x2000000U << ADC_HTR2_HT2_Pos) /*!< 0x02000000 */
  2921. /******************** Bit definition for ADC_LTR3 register ********************/
  2922. #define ADC_LTR3_LT3_Pos (0U)
  2923. #define ADC_LTR3_LT3_Msk (0x3FFFFFFU << ADC_LTR3_LT3_Pos) /*!< 0x03FFFFFF */
  2924. #define ADC_LTR3_LT3 ADC_LTR3_LT3_Msk /*!< ADC Analog watchdog 3 lower threshold */
  2925. #define ADC_LTR3_LT3_0 (0x0000001U << ADC_LTR3_LT3_Pos) /*!< 0x00000001 */
  2926. #define ADC_LTR3_LT3_1 (0x0000002U << ADC_LTR3_LT3_Pos) /*!< 0x00000002 */
  2927. #define ADC_LTR3_LT3_2 (0x0000004U << ADC_LTR3_LT3_Pos) /*!< 0x00000004 */
  2928. #define ADC_LTR3_LT3_3 (0x0000008U << ADC_LTR3_LT3_Pos) /*!< 0x00000008 */
  2929. #define ADC_LTR3_LT3_4 (0x0000010U << ADC_LTR3_LT3_Pos) /*!< 0x00000010 */
  2930. #define ADC_LTR3_LT3_5 (0x0000020U << ADC_LTR3_LT3_Pos) /*!< 0x00000020 */
  2931. #define ADC_LTR3_LT3_6 (0x0000040U << ADC_LTR3_LT3_Pos) /*!< 0x00000040 */
  2932. #define ADC_LTR3_LT3_7 (0x0000080U << ADC_LTR3_LT3_Pos) /*!< 0x00000080 */
  2933. #define ADC_LTR3_LT3_8 (0x0000100U << ADC_LTR3_LT3_Pos) /*!< 0x00000100 */
  2934. #define ADC_LTR3_LT3_9 (0x0000200U << ADC_LTR3_LT3_Pos) /*!< 0x00000200 */
  2935. #define ADC_LTR3_LT3_10 (0x0000400U << ADC_LTR3_LT3_Pos) /*!< 0x00000400 */
  2936. #define ADC_LTR3_LT3_11 (0x0000800U << ADC_LTR3_LT3_Pos) /*!< 0x00000800 */
  2937. #define ADC_LTR3_LT3_12 (0x0001000U << ADC_LTR3_LT3_Pos) /*!< 0x00001000 */
  2938. #define ADC_LTR3_LT3_13 (0x0002000U << ADC_LTR3_LT3_Pos) /*!< 0x00002000 */
  2939. #define ADC_LTR3_LT3_14 (0x0004000U << ADC_LTR3_LT3_Pos) /*!< 0x00004000 */
  2940. #define ADC_LTR3_LT3_15 (0x0008000U << ADC_LTR3_LT3_Pos) /*!< 0x00008000 */
  2941. #define ADC_LTR3_LT3_16 (0x0010000U << ADC_LTR3_LT3_Pos) /*!< 0x00010000 */
  2942. #define ADC_LTR3_LT3_17 (0x0020000U << ADC_LTR3_LT3_Pos) /*!< 0x00020000 */
  2943. #define ADC_LTR3_LT3_18 (0x0040000U << ADC_LTR3_LT3_Pos) /*!< 0x00040000 */
  2944. #define ADC_LTR3_LT3_19 (0x0080000U << ADC_LTR3_LT3_Pos) /*!< 0x00080000 */
  2945. #define ADC_LTR3_LT3_20 (0x0100000U << ADC_LTR3_LT3_Pos) /*!< 0x00100000 */
  2946. #define ADC_LTR3_LT3_21 (0x0200000U << ADC_LTR3_LT3_Pos) /*!< 0x00200000 */
  2947. #define ADC_LTR3_LT3_22 (0x0400000U << ADC_LTR3_LT3_Pos) /*!< 0x00400000 */
  2948. #define ADC_LTR3_LT3_23 (0x0800000U << ADC_LTR3_LT3_Pos) /*!< 0x00800000 */
  2949. #define ADC_LTR3_LT3_24 (0x1000000U << ADC_LTR3_LT3_Pos) /*!< 0x01000000 */
  2950. #define ADC_LTR3_LT3_25 (0x2000000U << ADC_LTR3_LT3_Pos) /*!< 0x02000000 */
  2951. /******************** Bit definition for ADC_HTR3 register ********************/
  2952. #define ADC_HTR3_HT3_Pos (0U)
  2953. #define ADC_HTR3_HT3_Msk (0x3FFFFFFU << ADC_HTR3_HT3_Pos) /*!< 0x03FFFFFF */
  2954. #define ADC_HTR3_HT3 ADC_HTR3_HT3_Msk /*!< ADC Analog watchdog 3 higher threshold */
  2955. #define ADC_HTR3_HT3_0 (0x0000001U << ADC_HTR3_HT3_Pos) /*!< 0x00000001 */
  2956. #define ADC_HTR3_HT3_1 (0x0000002U << ADC_HTR3_HT3_Pos) /*!< 0x00000002 */
  2957. #define ADC_HTR3_HT3_2 (0x0000004U << ADC_HTR3_HT3_Pos) /*!< 0x00000004 */
  2958. #define ADC_HTR3_HT3_3 (0x0000008U << ADC_HTR3_HT3_Pos) /*!< 0x00000008 */
  2959. #define ADC_HTR3_HT3_4 (0x0000010U << ADC_HTR3_HT3_Pos) /*!< 0x00000010 */
  2960. #define ADC_HTR3_HT3_5 (0x0000020U << ADC_HTR3_HT3_Pos) /*!< 0x00000020 */
  2961. #define ADC_HTR3_HT3_6 (0x0000040U << ADC_HTR3_HT3_Pos) /*!< 0x00000040 */
  2962. #define ADC_HTR3_HT3_7 (0x0000080U << ADC_HTR3_HT3_Pos) /*!< 0x00000080 */
  2963. #define ADC_HTR3_HT3_8 (0x0000100U << ADC_HTR3_HT3_Pos) /*!< 0x00000100 */
  2964. #define ADC_HTR3_HT3_9 (0x0000200U << ADC_HTR3_HT3_Pos) /*!< 0x00000200 */
  2965. #define ADC_HTR3_HT3_10 (0x0000400U << ADC_HTR3_HT3_Pos) /*!< 0x00000400 */
  2966. #define ADC_HTR3_HT3_11 (0x0000800U << ADC_HTR3_HT3_Pos) /*!< 0x00000800 */
  2967. #define ADC_HTR3_HT3_12 (0x0001000U << ADC_HTR3_HT3_Pos) /*!< 0x00001000 */
  2968. #define ADC_HTR3_HT3_13 (0x0002000U << ADC_HTR3_HT3_Pos) /*!< 0x00002000 */
  2969. #define ADC_HTR3_HT3_14 (0x0004000U << ADC_HTR3_HT3_Pos) /*!< 0x00004000 */
  2970. #define ADC_HTR3_HT3_15 (0x0008000U << ADC_HTR3_HT3_Pos) /*!< 0x00008000 */
  2971. #define ADC_HTR3_HT3_16 (0x0010000U << ADC_HTR3_HT3_Pos) /*!< 0x00010000 */
  2972. #define ADC_HTR3_HT3_17 (0x0020000U << ADC_HTR3_HT3_Pos) /*!< 0x00020000 */
  2973. #define ADC_HTR3_HT3_18 (0x0040000U << ADC_HTR3_HT3_Pos) /*!< 0x00040000 */
  2974. #define ADC_HTR3_HT3_19 (0x0080000U << ADC_HTR3_HT3_Pos) /*!< 0x00080000 */
  2975. #define ADC_HTR3_HT3_20 (0x0100000U << ADC_HTR3_HT3_Pos) /*!< 0x00100000 */
  2976. #define ADC_HTR3_HT3_21 (0x0200000U << ADC_HTR3_HT3_Pos) /*!< 0x00200000 */
  2977. #define ADC_HTR3_HT3_22 (0x0400000U << ADC_HTR3_HT3_Pos) /*!< 0x00400000 */
  2978. #define ADC_HTR3_HT3_23 (0x0800000U << ADC_HTR3_HT3_Pos) /*!< 0x00800000 */
  2979. #define ADC_HTR3_HT3_24 (0x1000000U << ADC_HTR3_HT3_Pos) /*!< 0x01000000 */
  2980. #define ADC_HTR3_HT3_25 (0x2000000U << ADC_HTR3_HT3_Pos) /*!< 0x02000000 */
  2981. /******************** Bit definition for ADC_SQR1 register ********************/
  2982. #define ADC_SQR1_L_Pos (0U)
  2983. #define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  2984. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC regular channel sequence lenght */
  2985. #define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  2986. #define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  2987. #define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  2988. #define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  2989. #define ADC_SQR1_SQ1_Pos (6U)
  2990. #define ADC_SQR1_SQ1_Msk (0x1FU << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  2991. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC 1st conversion in regular sequence */
  2992. #define ADC_SQR1_SQ1_0 (0x01U << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  2993. #define ADC_SQR1_SQ1_1 (0x02U << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  2994. #define ADC_SQR1_SQ1_2 (0x04U << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  2995. #define ADC_SQR1_SQ1_3 (0x08U << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  2996. #define ADC_SQR1_SQ1_4 (0x10U << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  2997. #define ADC_SQR1_SQ2_Pos (12U)
  2998. #define ADC_SQR1_SQ2_Msk (0x1FU << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  2999. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC 2nd conversion in regular sequence */
  3000. #define ADC_SQR1_SQ2_0 (0x01U << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  3001. #define ADC_SQR1_SQ2_1 (0x02U << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  3002. #define ADC_SQR1_SQ2_2 (0x04U << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  3003. #define ADC_SQR1_SQ2_3 (0x08U << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  3004. #define ADC_SQR1_SQ2_4 (0x10U << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  3005. #define ADC_SQR1_SQ3_Pos (18U)
  3006. #define ADC_SQR1_SQ3_Msk (0x1FU << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  3007. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC 3rd conversion in regular sequence */
  3008. #define ADC_SQR1_SQ3_0 (0x01U << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  3009. #define ADC_SQR1_SQ3_1 (0x02U << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  3010. #define ADC_SQR1_SQ3_2 (0x04U << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  3011. #define ADC_SQR1_SQ3_3 (0x08U << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  3012. #define ADC_SQR1_SQ3_4 (0x10U << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  3013. #define ADC_SQR1_SQ4_Pos (24U)
  3014. #define ADC_SQR1_SQ4_Msk (0x1FU << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  3015. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC 4th conversion in regular sequence */
  3016. #define ADC_SQR1_SQ4_0 (0x01U << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  3017. #define ADC_SQR1_SQ4_1 (0x02U << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  3018. #define ADC_SQR1_SQ4_2 (0x04U << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  3019. #define ADC_SQR1_SQ4_3 (0x08U << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  3020. #define ADC_SQR1_SQ4_4 (0x10U << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  3021. /******************** Bit definition for ADC_SQR2 register ********************/
  3022. #define ADC_SQR2_SQ5_Pos (0U)
  3023. #define ADC_SQR2_SQ5_Msk (0x1FU << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  3024. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC 5th conversion in regular sequence */
  3025. #define ADC_SQR2_SQ5_0 (0x01U << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  3026. #define ADC_SQR2_SQ5_1 (0x02U << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  3027. #define ADC_SQR2_SQ5_2 (0x04U << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  3028. #define ADC_SQR2_SQ5_3 (0x08U << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  3029. #define ADC_SQR2_SQ5_4 (0x10U << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  3030. #define ADC_SQR2_SQ6_Pos (6U)
  3031. #define ADC_SQR2_SQ6_Msk (0x1FU << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  3032. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC 6th conversion in regular sequence */
  3033. #define ADC_SQR2_SQ6_0 (0x01U << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  3034. #define ADC_SQR2_SQ6_1 (0x02U << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  3035. #define ADC_SQR2_SQ6_2 (0x04U << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  3036. #define ADC_SQR2_SQ6_3 (0x08U << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  3037. #define ADC_SQR2_SQ6_4 (0x10U << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  3038. #define ADC_SQR2_SQ7_Pos (12U)
  3039. #define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  3040. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC 7th conversion in regular sequence */
  3041. #define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  3042. #define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  3043. #define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  3044. #define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  3045. #define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  3046. #define ADC_SQR2_SQ8_Pos (18U)
  3047. #define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  3048. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC 8th conversion in regular sequence */
  3049. #define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  3050. #define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  3051. #define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  3052. #define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  3053. #define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  3054. #define ADC_SQR2_SQ9_Pos (24U)
  3055. #define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  3056. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC 9th conversion in regular sequence */
  3057. #define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  3058. #define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  3059. #define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  3060. #define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  3061. #define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  3062. /******************** Bit definition for ADC_SQR3 register ********************/
  3063. #define ADC_SQR3_SQ10_Pos (0U)
  3064. #define ADC_SQR3_SQ10_Msk (0x1FU << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  3065. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC 10th conversion in regular sequence */
  3066. #define ADC_SQR3_SQ10_0 (0x01U << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  3067. #define ADC_SQR3_SQ10_1 (0x02U << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  3068. #define ADC_SQR3_SQ10_2 (0x04U << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  3069. #define ADC_SQR3_SQ10_3 (0x08U << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  3070. #define ADC_SQR3_SQ10_4 (0x10U << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  3071. #define ADC_SQR3_SQ11_Pos (6U)
  3072. #define ADC_SQR3_SQ11_Msk (0x1FU << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  3073. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC 11th conversion in regular sequence */
  3074. #define ADC_SQR3_SQ11_0 (0x01U << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  3075. #define ADC_SQR3_SQ11_1 (0x02U << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  3076. #define ADC_SQR3_SQ11_2 (0x04U << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  3077. #define ADC_SQR3_SQ11_3 (0x08U << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  3078. #define ADC_SQR3_SQ11_4 (0x10U << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  3079. #define ADC_SQR3_SQ12_Pos (12U)
  3080. #define ADC_SQR3_SQ12_Msk (0x1FU << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  3081. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC 12th conversion in regular sequence */
  3082. #define ADC_SQR3_SQ12_0 (0x01U << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  3083. #define ADC_SQR3_SQ12_1 (0x02U << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  3084. #define ADC_SQR3_SQ12_2 (0x04U << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  3085. #define ADC_SQR3_SQ12_3 (0x08U << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  3086. #define ADC_SQR3_SQ12_4 (0x10U << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  3087. #define ADC_SQR3_SQ13_Pos (18U)
  3088. #define ADC_SQR3_SQ13_Msk (0x1FU << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  3089. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC 13th conversion in regular sequence */
  3090. #define ADC_SQR3_SQ13_0 (0x01U << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  3091. #define ADC_SQR3_SQ13_1 (0x02U << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  3092. #define ADC_SQR3_SQ13_2 (0x04U << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  3093. #define ADC_SQR3_SQ13_3 (0x08U << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  3094. #define ADC_SQR3_SQ13_4 (0x10U << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  3095. #define ADC_SQR3_SQ14_Pos (24U)
  3096. #define ADC_SQR3_SQ14_Msk (0x1FU << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  3097. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC 14th conversion in regular sequence */
  3098. #define ADC_SQR3_SQ14_0 (0x01U << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  3099. #define ADC_SQR3_SQ14_1 (0x02U << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  3100. #define ADC_SQR3_SQ14_2 (0x04U << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  3101. #define ADC_SQR3_SQ14_3 (0x08U << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  3102. #define ADC_SQR3_SQ14_4 (0x10U << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  3103. /******************** Bit definition for ADC_SQR4 register ********************/
  3104. #define ADC_SQR4_SQ15_Pos (0U)
  3105. #define ADC_SQR4_SQ15_Msk (0x1FU << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  3106. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC 15th conversion in regular sequence */
  3107. #define ADC_SQR4_SQ15_0 (0x01U << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  3108. #define ADC_SQR4_SQ15_1 (0x02U << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  3109. #define ADC_SQR4_SQ15_2 (0x04U << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  3110. #define ADC_SQR4_SQ15_3 (0x08U << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  3111. #define ADC_SQR4_SQ15_4 (0x10U << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  3112. #define ADC_SQR4_SQ16_Pos (6U)
  3113. #define ADC_SQR4_SQ16_Msk (0x1FU << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  3114. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC 16th conversion in regular sequence */
  3115. #define ADC_SQR4_SQ16_0 (0x01U << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  3116. #define ADC_SQR4_SQ16_1 (0x02U << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  3117. #define ADC_SQR4_SQ16_2 (0x04U << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  3118. #define ADC_SQR4_SQ16_3 (0x08U << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  3119. #define ADC_SQR4_SQ16_4 (0x10U << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  3120. /******************** Bit definition for ADC_DR register ********************/
  3121. #define ADC_DR_RDATA_Pos (0U)
  3122. #define ADC_DR_RDATA_Msk (0xFFFFFFFFU << ADC_DR_RDATA_Pos) /*!< 0xFFFFFFFF */
  3123. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC regular Data converted */
  3124. #define ADC_DR_RDATA_0 (0x00000001U << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
  3125. #define ADC_DR_RDATA_1 (0x00000002U << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
  3126. #define ADC_DR_RDATA_2 (0x00000004U << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
  3127. #define ADC_DR_RDATA_3 (0x00000008U << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
  3128. #define ADC_DR_RDATA_4 (0x00000010U << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
  3129. #define ADC_DR_RDATA_5 (0x00000020U << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
  3130. #define ADC_DR_RDATA_6 (0x00000040U << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
  3131. #define ADC_DR_RDATA_7 (0x00000080U << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
  3132. #define ADC_DR_RDATA_8 (0x00000100U << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
  3133. #define ADC_DR_RDATA_9 (0x00000200U << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
  3134. #define ADC_DR_RDATA_10 (0x00000400U << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
  3135. #define ADC_DR_RDATA_11 (0x00000800U << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
  3136. #define ADC_DR_RDATA_12 (0x00001000U << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
  3137. #define ADC_DR_RDATA_13 (0x00002000U << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
  3138. #define ADC_DR_RDATA_14 (0x00004000U << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
  3139. #define ADC_DR_RDATA_15 (0x00008000U << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
  3140. #define ADC_DR_RDATA_16 (0x00010000U << ADC_DR_RDATA_Pos) /*!< 0x00010000 */
  3141. #define ADC_DR_RDATA_17 (0x00020000U << ADC_DR_RDATA_Pos) /*!< 0x00020000 */
  3142. #define ADC_DR_RDATA_18 (0x00040000U << ADC_DR_RDATA_Pos) /*!< 0x00040000 */
  3143. #define ADC_DR_RDATA_19 (0x00080000U << ADC_DR_RDATA_Pos) /*!< 0x00080000 */
  3144. #define ADC_DR_RDATA_20 (0x00100000U << ADC_DR_RDATA_Pos) /*!< 0x00100000 */
  3145. #define ADC_DR_RDATA_21 (0x00200000U << ADC_DR_RDATA_Pos) /*!< 0x00200000 */
  3146. #define ADC_DR_RDATA_22 (0x00400000U << ADC_DR_RDATA_Pos) /*!< 0x00400000 */
  3147. #define ADC_DR_RDATA_23 (0x00800000U << ADC_DR_RDATA_Pos) /*!< 0x00800000 */
  3148. #define ADC_DR_RDATA_24 (0x01000000U << ADC_DR_RDATA_Pos) /*!< 0x01000000 */
  3149. #define ADC_DR_RDATA_25 (0x02000000U << ADC_DR_RDATA_Pos) /*!< 0x02000000 */
  3150. #define ADC_DR_RDATA_26 (0x04000000U << ADC_DR_RDATA_Pos) /*!< 0x04000000 */
  3151. #define ADC_DR_RDATA_27 (0x08000000U << ADC_DR_RDATA_Pos) /*!< 0x08000000 */
  3152. #define ADC_DR_RDATA_28 (0x10000000U << ADC_DR_RDATA_Pos) /*!< 0x10000000 */
  3153. #define ADC_DR_RDATA_29 (0x20000000U << ADC_DR_RDATA_Pos) /*!< 0x20000000 */
  3154. #define ADC_DR_RDATA_30 (0x40000000U << ADC_DR_RDATA_Pos) /*!< 0x40000000 */
  3155. #define ADC_DR_RDATA_31 (0x80000000U << ADC_DR_RDATA_Pos) /*!< 0x80000000 */
  3156. /******************** Bit definition for ADC_JSQR register ********************/
  3157. #define ADC_JSQR_JL_Pos (0U)
  3158. #define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  3159. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC injected channel sequence length */
  3160. #define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  3161. #define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  3162. #define ADC_JSQR_JEXTSEL_Pos (2U)
  3163. #define ADC_JSQR_JEXTSEL_Msk (0x1FU << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000007C */
  3164. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC external trigger selection for injected group */
  3165. #define ADC_JSQR_JEXTSEL_0 (0x01U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  3166. #define ADC_JSQR_JEXTSEL_1 (0x02U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  3167. #define ADC_JSQR_JEXTSEL_2 (0x04U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  3168. #define ADC_JSQR_JEXTSEL_3 (0x08U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  3169. #define ADC_JSQR_JEXTSEL_4 (0x10U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000040 */
  3170. #define ADC_JSQR_JEXTEN_Pos (7U)
  3171. #define ADC_JSQR_JEXTEN_Msk (0x3U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000180 */
  3172. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC external trigger enable and polarity selection for injected channels */
  3173. #define ADC_JSQR_JEXTEN_0 (0x1U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  3174. #define ADC_JSQR_JEXTEN_1 (0x2U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000100 */
  3175. #define ADC_JSQR_JSQ1_Pos (9U)
  3176. #define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x00003E00 */
  3177. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC 1st conversion in injected sequence */
  3178. #define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  3179. #define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  3180. #define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  3181. #define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  3182. #define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00002000 */
  3183. #define ADC_JSQR_JSQ2_Pos (15U)
  3184. #define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x000F8000 */
  3185. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC 2nd conversion in injected sequence */
  3186. #define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  3187. #define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  3188. #define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  3189. #define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  3190. #define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00080000 */
  3191. #define ADC_JSQR_JSQ3_Pos (21U)
  3192. #define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x03E00000 */
  3193. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC 3rd conversion in injected sequence */
  3194. #define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  3195. #define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  3196. #define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  3197. #define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  3198. #define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x02000000 */
  3199. #define ADC_JSQR_JSQ4_Pos (27U)
  3200. #define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0xF8000000 */
  3201. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC 4th conversion in injected sequence */
  3202. #define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  3203. #define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  3204. #define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  3205. #define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  3206. #define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x80000000 */
  3207. /******************** Bit definition for ADC_OFR1 register ********************/
  3208. #define ADC_OFR1_OFFSET1_Pos (0U)
  3209. #define ADC_OFR1_OFFSET1_Msk (0x3FFFFFFU << ADC_OFR1_OFFSET1_Pos) /*!< 0x03FFFFFF */
  3210. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
  3211. #define ADC_OFR1_OFFSET1_0 (0x0000001U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  3212. #define ADC_OFR1_OFFSET1_1 (0x0000002U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  3213. #define ADC_OFR1_OFFSET1_2 (0x0000004U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  3214. #define ADC_OFR1_OFFSET1_3 (0x0000008U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  3215. #define ADC_OFR1_OFFSET1_4 (0x0000010U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  3216. #define ADC_OFR1_OFFSET1_5 (0x0000020U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  3217. #define ADC_OFR1_OFFSET1_6 (0x0000040U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  3218. #define ADC_OFR1_OFFSET1_7 (0x0000080U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  3219. #define ADC_OFR1_OFFSET1_8 (0x0000100U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  3220. #define ADC_OFR1_OFFSET1_9 (0x0000200U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  3221. #define ADC_OFR1_OFFSET1_10 (0x0000400U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  3222. #define ADC_OFR1_OFFSET1_11 (0x0000800U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  3223. #define ADC_OFR1_OFFSET1_12 (0x0001000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00001000 */
  3224. #define ADC_OFR1_OFFSET1_13 (0x0002000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00002000 */
  3225. #define ADC_OFR1_OFFSET1_14 (0x0004000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00004000 */
  3226. #define ADC_OFR1_OFFSET1_15 (0x0008000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00008000 */
  3227. #define ADC_OFR1_OFFSET1_16 (0x0010000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00010000 */
  3228. #define ADC_OFR1_OFFSET1_17 (0x0020000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00020000 */
  3229. #define ADC_OFR1_OFFSET1_18 (0x0040000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00040000 */
  3230. #define ADC_OFR1_OFFSET1_19 (0x0080000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00080000 */
  3231. #define ADC_OFR1_OFFSET1_20 (0x0100000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00100000 */
  3232. #define ADC_OFR1_OFFSET1_21 (0x0200000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00200000 */
  3233. #define ADC_OFR1_OFFSET1_22 (0x0400000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00400000 */
  3234. #define ADC_OFR1_OFFSET1_23 (0x0800000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00800000 */
  3235. #define ADC_OFR1_OFFSET1_24 (0x1000000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x01000000 */
  3236. #define ADC_OFR1_OFFSET1_25 (0x2000000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x02000000 */
  3237. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  3238. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FU << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  3239. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC Channel selection for the data offset 1 */
  3240. #define ADC_OFR1_OFFSET1_CH_0 (0x01U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  3241. #define ADC_OFR1_OFFSET1_CH_1 (0x02U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  3242. #define ADC_OFR1_OFFSET1_CH_2 (0x04U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  3243. #define ADC_OFR1_OFFSET1_CH_3 (0x08U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  3244. #define ADC_OFR1_OFFSET1_CH_4 (0x10U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  3245. #define ADC_OFR1_SSATE_Pos (31U)
  3246. #define ADC_OFR1_SSATE_Msk (0x1U << ADC_OFR1_SSATE_Pos) /*!< 0x80000000 */
  3247. #define ADC_OFR1_SSATE ADC_OFR1_SSATE_Msk /*!< ADC Signed saturation Enable */
  3248. /******************** Bit definition for ADC_OFR2 register ********************/
  3249. #define ADC_OFR2_OFFSET2_Pos (0U)
  3250. #define ADC_OFR2_OFFSET2_Msk (0x3FFFFFFU << ADC_OFR2_OFFSET2_Pos) /*!< 0x03FFFFFF */
  3251. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */
  3252. #define ADC_OFR2_OFFSET2_0 (0x0000001U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  3253. #define ADC_OFR2_OFFSET2_1 (0x0000002U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  3254. #define ADC_OFR2_OFFSET2_2 (0x0000004U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  3255. #define ADC_OFR2_OFFSET2_3 (0x0000008U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  3256. #define ADC_OFR2_OFFSET2_4 (0x0000010U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  3257. #define ADC_OFR2_OFFSET2_5 (0x0000020U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  3258. #define ADC_OFR2_OFFSET2_6 (0x0000040U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  3259. #define ADC_OFR2_OFFSET2_7 (0x0000080U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  3260. #define ADC_OFR2_OFFSET2_8 (0x0000100U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  3261. #define ADC_OFR2_OFFSET2_9 (0x0000200U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  3262. #define ADC_OFR2_OFFSET2_10 (0x0000400U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  3263. #define ADC_OFR2_OFFSET2_11 (0x0000800U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  3264. #define ADC_OFR2_OFFSET2_12 (0x0001000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00001000 */
  3265. #define ADC_OFR2_OFFSET2_13 (0x0002000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00002000 */
  3266. #define ADC_OFR2_OFFSET2_14 (0x0004000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00004000 */
  3267. #define ADC_OFR2_OFFSET2_15 (0x0008000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00008000 */
  3268. #define ADC_OFR2_OFFSET2_16 (0x0010000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00010000 */
  3269. #define ADC_OFR2_OFFSET2_17 (0x0020000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00020000 */
  3270. #define ADC_OFR2_OFFSET2_18 (0x0040000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00040000 */
  3271. #define ADC_OFR2_OFFSET2_19 (0x0080000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00080000 */
  3272. #define ADC_OFR2_OFFSET2_20 (0x0100000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00100000 */
  3273. #define ADC_OFR2_OFFSET2_21 (0x0200000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00200000 */
  3274. #define ADC_OFR2_OFFSET2_22 (0x0400000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00400000 */
  3275. #define ADC_OFR2_OFFSET2_23 (0x0800000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00800000 */
  3276. #define ADC_OFR2_OFFSET2_24 (0x1000000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x01000000 */
  3277. #define ADC_OFR2_OFFSET2_25 (0x2000000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x02000000 */
  3278. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  3279. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FU << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  3280. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC Channel selection for the data offset 2 */
  3281. #define ADC_OFR2_OFFSET2_CH_0 (0x01U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  3282. #define ADC_OFR2_OFFSET2_CH_1 (0x02U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  3283. #define ADC_OFR2_OFFSET2_CH_2 (0x04U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  3284. #define ADC_OFR2_OFFSET2_CH_3 (0x08U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  3285. #define ADC_OFR2_OFFSET2_CH_4 (0x10U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  3286. #define ADC_OFR2_SSATE_Pos (31U)
  3287. #define ADC_OFR2_SSATE_Msk (0x1U << ADC_OFR2_SSATE_Pos) /*!< 0x80000000 */
  3288. #define ADC_OFR2_SSATE ADC_OFR2_SSATE_Msk /*!< ADC Signed saturation Enable */
  3289. /******************** Bit definition for ADC_OFR3 register ********************/
  3290. #define ADC_OFR3_OFFSET3_Pos (0U)
  3291. #define ADC_OFR3_OFFSET3_Msk (0x3FFFFFFU << ADC_OFR3_OFFSET3_Pos) /*!< 0x03FFFFFF */
  3292. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */
  3293. #define ADC_OFR3_OFFSET3_0 (0x0000001U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  3294. #define ADC_OFR3_OFFSET3_1 (0x0000002U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  3295. #define ADC_OFR3_OFFSET3_2 (0x0000004U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  3296. #define ADC_OFR3_OFFSET3_3 (0x0000008U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  3297. #define ADC_OFR3_OFFSET3_4 (0x0000010U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  3298. #define ADC_OFR3_OFFSET3_5 (0x0000020U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  3299. #define ADC_OFR3_OFFSET3_6 (0x0000040U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  3300. #define ADC_OFR3_OFFSET3_7 (0x0000080U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  3301. #define ADC_OFR3_OFFSET3_8 (0x0000100U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  3302. #define ADC_OFR3_OFFSET3_9 (0x0000200U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  3303. #define ADC_OFR3_OFFSET3_10 (0x0000400U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  3304. #define ADC_OFR3_OFFSET3_11 (0x0000800U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  3305. #define ADC_OFR3_OFFSET3_12 (0x0001000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00001000 */
  3306. #define ADC_OFR3_OFFSET3_13 (0x0002000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00002000 */
  3307. #define ADC_OFR3_OFFSET3_14 (0x0004000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00004000 */
  3308. #define ADC_OFR3_OFFSET3_15 (0x0008000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00008000 */
  3309. #define ADC_OFR3_OFFSET3_16 (0x0010000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00010000 */
  3310. #define ADC_OFR3_OFFSET3_17 (0x0020000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00020000 */
  3311. #define ADC_OFR3_OFFSET3_18 (0x0040000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00040000 */
  3312. #define ADC_OFR3_OFFSET3_19 (0x0080000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00080000 */
  3313. #define ADC_OFR3_OFFSET3_20 (0x0100000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00100000 */
  3314. #define ADC_OFR3_OFFSET3_21 (0x0200000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00200000 */
  3315. #define ADC_OFR3_OFFSET3_22 (0x0400000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00400000 */
  3316. #define ADC_OFR3_OFFSET3_23 (0x0800000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00800000 */
  3317. #define ADC_OFR3_OFFSET3_24 (0x1000000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x01000000 */
  3318. #define ADC_OFR3_OFFSET3_25 (0x2000000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x02000000 */
  3319. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  3320. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FU << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  3321. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC Channel selection for the data offset 3 */
  3322. #define ADC_OFR3_OFFSET3_CH_0 (0x01U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  3323. #define ADC_OFR3_OFFSET3_CH_1 (0x02U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  3324. #define ADC_OFR3_OFFSET3_CH_2 (0x04U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  3325. #define ADC_OFR3_OFFSET3_CH_3 (0x08U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  3326. #define ADC_OFR3_OFFSET3_CH_4 (0x10U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  3327. #define ADC_OFR3_SSATE_Pos (31U)
  3328. #define ADC_OFR3_SSATE_Msk (0x1U << ADC_OFR3_SSATE_Pos) /*!< 0x80000000 */
  3329. #define ADC_OFR3_SSATE ADC_OFR3_SSATE_Msk /*!< ADC Signed saturation Enable */
  3330. /******************** Bit definition for ADC_OFR4 register ********************/
  3331. #define ADC_OFR4_OFFSET4_Pos (0U)
  3332. #define ADC_OFR4_OFFSET4_Msk (0x3FFFFFFU << ADC_OFR4_OFFSET4_Pos) /*!< 0x03FFFFFF */
  3333. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */
  3334. #define ADC_OFR4_OFFSET4_0 (0x0000001U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  3335. #define ADC_OFR4_OFFSET4_1 (0x0000002U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  3336. #define ADC_OFR4_OFFSET4_2 (0x0000004U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  3337. #define ADC_OFR4_OFFSET4_3 (0x0000008U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  3338. #define ADC_OFR4_OFFSET4_4 (0x0000010U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  3339. #define ADC_OFR4_OFFSET4_5 (0x0000020U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  3340. #define ADC_OFR4_OFFSET4_6 (0x0000040U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  3341. #define ADC_OFR4_OFFSET4_7 (0x0000080U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  3342. #define ADC_OFR4_OFFSET4_8 (0x0000100U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  3343. #define ADC_OFR4_OFFSET4_9 (0x0000200U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  3344. #define ADC_OFR4_OFFSET4_10 (0x0000400U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  3345. #define ADC_OFR4_OFFSET4_11 (0x0000800U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  3346. #define ADC_OFR4_OFFSET4_12 (0x0001000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00001000 */
  3347. #define ADC_OFR4_OFFSET4_13 (0x0002000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00002000 */
  3348. #define ADC_OFR4_OFFSET4_14 (0x0004000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00004000 */
  3349. #define ADC_OFR4_OFFSET4_15 (0x0008000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00008000 */
  3350. #define ADC_OFR4_OFFSET4_16 (0x0010000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00010000 */
  3351. #define ADC_OFR4_OFFSET4_17 (0x0020000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00020000 */
  3352. #define ADC_OFR4_OFFSET4_18 (0x0040000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00040000 */
  3353. #define ADC_OFR4_OFFSET4_19 (0x0080000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00080000 */
  3354. #define ADC_OFR4_OFFSET4_20 (0x0100000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00100000 */
  3355. #define ADC_OFR4_OFFSET4_21 (0x0200000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00200000 */
  3356. #define ADC_OFR4_OFFSET4_22 (0x0400000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00400000 */
  3357. #define ADC_OFR4_OFFSET4_23 (0x0800000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00800000 */
  3358. #define ADC_OFR4_OFFSET4_24 (0x1000000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x01000000 */
  3359. #define ADC_OFR4_OFFSET4_25 (0x2000000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x02000000 */
  3360. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  3361. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FU << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  3362. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC Channel selection for the data offset 4 */
  3363. #define ADC_OFR4_OFFSET4_CH_0 (0x01U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  3364. #define ADC_OFR4_OFFSET4_CH_1 (0x02U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  3365. #define ADC_OFR4_OFFSET4_CH_2 (0x04U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  3366. #define ADC_OFR4_OFFSET4_CH_3 (0x08U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  3367. #define ADC_OFR4_OFFSET4_CH_4 (0x10U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  3368. #define ADC_OFR4_SSATE_Pos (31U)
  3369. #define ADC_OFR4_SSATE_Msk (0x1U << ADC_OFR4_SSATE_Pos) /*!< 0x80000000 */
  3370. #define ADC_OFR4_SSATE ADC_OFR4_SSATE_Msk /*!< ADC Signed saturation Enable */
  3371. /******************** Bit definition for ADC_JDR1 register ********************/
  3372. #define ADC_JDR1_JDATA_Pos (0U)
  3373. #define ADC_JDR1_JDATA_Msk (0xFFFFFFFFU << ADC_JDR1_JDATA_Pos) /*!< 0xFFFFFFFF */
  3374. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC Injected DATA */
  3375. #define ADC_JDR1_JDATA_0 (0x00000001U << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  3376. #define ADC_JDR1_JDATA_1 (0x00000002U << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  3377. #define ADC_JDR1_JDATA_2 (0x00000004U << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  3378. #define ADC_JDR1_JDATA_3 (0x00000008U << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  3379. #define ADC_JDR1_JDATA_4 (0x00000010U << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  3380. #define ADC_JDR1_JDATA_5 (0x00000020U << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  3381. #define ADC_JDR1_JDATA_6 (0x00000040U << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  3382. #define ADC_JDR1_JDATA_7 (0x00000080U << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  3383. #define ADC_JDR1_JDATA_8 (0x00000100U << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  3384. #define ADC_JDR1_JDATA_9 (0x00000200U << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  3385. #define ADC_JDR1_JDATA_10 (0x00000400U << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  3386. #define ADC_JDR1_JDATA_11 (0x00000800U << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  3387. #define ADC_JDR1_JDATA_12 (0x00001000U << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  3388. #define ADC_JDR1_JDATA_13 (0x00002000U << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  3389. #define ADC_JDR1_JDATA_14 (0x00004000U << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  3390. #define ADC_JDR1_JDATA_15 (0x00008000U << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  3391. #define ADC_JDR1_JDATA_16 (0x00010000U << ADC_JDR1_JDATA_Pos) /*!< 0x00010000 */
  3392. #define ADC_JDR1_JDATA_17 (0x00020000U << ADC_JDR1_JDATA_Pos) /*!< 0x00020000 */
  3393. #define ADC_JDR1_JDATA_18 (0x00040000U << ADC_JDR1_JDATA_Pos) /*!< 0x00040000 */
  3394. #define ADC_JDR1_JDATA_19 (0x00080000U << ADC_JDR1_JDATA_Pos) /*!< 0x00080000 */
  3395. #define ADC_JDR1_JDATA_20 (0x00100000U << ADC_JDR1_JDATA_Pos) /*!< 0x00100000 */
  3396. #define ADC_JDR1_JDATA_21 (0x00200000U << ADC_JDR1_JDATA_Pos) /*!< 0x00200000 */
  3397. #define ADC_JDR1_JDATA_22 (0x00400000U << ADC_JDR1_JDATA_Pos) /*!< 0x00400000 */
  3398. #define ADC_JDR1_JDATA_23 (0x00800000U << ADC_JDR1_JDATA_Pos) /*!< 0x00800000 */
  3399. #define ADC_JDR1_JDATA_24 (0x01000000U << ADC_JDR1_JDATA_Pos) /*!< 0x01000000 */
  3400. #define ADC_JDR1_JDATA_25 (0x02000000U << ADC_JDR1_JDATA_Pos) /*!< 0x02000000 */
  3401. #define ADC_JDR1_JDATA_26 (0x04000000U << ADC_JDR1_JDATA_Pos) /*!< 0x04000000 */
  3402. #define ADC_JDR1_JDATA_27 (0x08000000U << ADC_JDR1_JDATA_Pos) /*!< 0x08000000 */
  3403. #define ADC_JDR1_JDATA_28 (0x10000000U << ADC_JDR1_JDATA_Pos) /*!< 0x10000000 */
  3404. #define ADC_JDR1_JDATA_29 (0x20000000U << ADC_JDR1_JDATA_Pos) /*!< 0x20000000 */
  3405. #define ADC_JDR1_JDATA_30 (0x40000000U << ADC_JDR1_JDATA_Pos) /*!< 0x40000000 */
  3406. #define ADC_JDR1_JDATA_31 (0x80000000U << ADC_JDR1_JDATA_Pos) /*!< 0x80000000 */
  3407. /******************** Bit definition for ADC_JDR2 register ********************/
  3408. #define ADC_JDR2_JDATA_Pos (0U)
  3409. #define ADC_JDR2_JDATA_Msk (0xFFFFFFFFU << ADC_JDR2_JDATA_Pos) /*!< 0xFFFFFFFF */
  3410. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC Injected DATA */
  3411. #define ADC_JDR2_JDATA_0 (0x00000001U << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  3412. #define ADC_JDR2_JDATA_1 (0x00000002U << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  3413. #define ADC_JDR2_JDATA_2 (0x00000004U << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  3414. #define ADC_JDR2_JDATA_3 (0x00000008U << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  3415. #define ADC_JDR2_JDATA_4 (0x00000010U << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  3416. #define ADC_JDR2_JDATA_5 (0x00000020U << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  3417. #define ADC_JDR2_JDATA_6 (0x00000040U << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  3418. #define ADC_JDR2_JDATA_7 (0x00000080U << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  3419. #define ADC_JDR2_JDATA_8 (0x00000100U << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  3420. #define ADC_JDR2_JDATA_9 (0x00000200U << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  3421. #define ADC_JDR2_JDATA_10 (0x00000400U << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  3422. #define ADC_JDR2_JDATA_11 (0x00000800U << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  3423. #define ADC_JDR2_JDATA_12 (0x00001000U << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  3424. #define ADC_JDR2_JDATA_13 (0x00002000U << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  3425. #define ADC_JDR2_JDATA_14 (0x00004000U << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  3426. #define ADC_JDR2_JDATA_15 (0x00008000U << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  3427. #define ADC_JDR2_JDATA_16 (0x00010000U << ADC_JDR2_JDATA_Pos) /*!< 0x00010000 */
  3428. #define ADC_JDR2_JDATA_17 (0x00020000U << ADC_JDR2_JDATA_Pos) /*!< 0x00020000 */
  3429. #define ADC_JDR2_JDATA_18 (0x00040000U << ADC_JDR2_JDATA_Pos) /*!< 0x00040000 */
  3430. #define ADC_JDR2_JDATA_19 (0x00080000U << ADC_JDR2_JDATA_Pos) /*!< 0x00080000 */
  3431. #define ADC_JDR2_JDATA_20 (0x00100000U << ADC_JDR2_JDATA_Pos) /*!< 0x00100000 */
  3432. #define ADC_JDR2_JDATA_21 (0x00200000U << ADC_JDR2_JDATA_Pos) /*!< 0x00200000 */
  3433. #define ADC_JDR2_JDATA_22 (0x00400000U << ADC_JDR2_JDATA_Pos) /*!< 0x00400000 */
  3434. #define ADC_JDR2_JDATA_23 (0x00800000U << ADC_JDR2_JDATA_Pos) /*!< 0x00800000 */
  3435. #define ADC_JDR2_JDATA_24 (0x01000000U << ADC_JDR2_JDATA_Pos) /*!< 0x01000000 */
  3436. #define ADC_JDR2_JDATA_25 (0x02000000U << ADC_JDR2_JDATA_Pos) /*!< 0x02000000 */
  3437. #define ADC_JDR2_JDATA_26 (0x04000000U << ADC_JDR2_JDATA_Pos) /*!< 0x04000000 */
  3438. #define ADC_JDR2_JDATA_27 (0x08000000U << ADC_JDR2_JDATA_Pos) /*!< 0x08000000 */
  3439. #define ADC_JDR2_JDATA_28 (0x10000000U << ADC_JDR2_JDATA_Pos) /*!< 0x10000000 */
  3440. #define ADC_JDR2_JDATA_29 (0x20000000U << ADC_JDR2_JDATA_Pos) /*!< 0x20000000 */
  3441. #define ADC_JDR2_JDATA_30 (0x40000000U << ADC_JDR2_JDATA_Pos) /*!< 0x40000000 */
  3442. #define ADC_JDR2_JDATA_31 (0x80000000U << ADC_JDR2_JDATA_Pos) /*!< 0x80000000 */
  3443. /******************** Bit definition for ADC_JDR3 register ********************/
  3444. #define ADC_JDR3_JDATA_Pos (0U)
  3445. #define ADC_JDR3_JDATA_Msk (0xFFFFFFFFU << ADC_JDR3_JDATA_Pos) /*!< 0xFFFFFFFF */
  3446. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC Injected DATA */
  3447. #define ADC_JDR3_JDATA_0 (0x00000001U << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  3448. #define ADC_JDR3_JDATA_1 (0x00000002U << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  3449. #define ADC_JDR3_JDATA_2 (0x00000004U << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  3450. #define ADC_JDR3_JDATA_3 (0x00000008U << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  3451. #define ADC_JDR3_JDATA_4 (0x00000010U << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  3452. #define ADC_JDR3_JDATA_5 (0x00000020U << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  3453. #define ADC_JDR3_JDATA_6 (0x00000040U << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  3454. #define ADC_JDR3_JDATA_7 (0x00000080U << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  3455. #define ADC_JDR3_JDATA_8 (0x00000100U << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  3456. #define ADC_JDR3_JDATA_9 (0x00000200U << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  3457. #define ADC_JDR3_JDATA_10 (0x00000400U << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  3458. #define ADC_JDR3_JDATA_11 (0x00000800U << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  3459. #define ADC_JDR3_JDATA_12 (0x00001000U << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  3460. #define ADC_JDR3_JDATA_13 (0x00002000U << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  3461. #define ADC_JDR3_JDATA_14 (0x00004000U << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  3462. #define ADC_JDR3_JDATA_15 (0x00008000U << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  3463. #define ADC_JDR3_JDATA_16 (0x00010000U << ADC_JDR3_JDATA_Pos) /*!< 0x00010000 */
  3464. #define ADC_JDR3_JDATA_17 (0x00020000U << ADC_JDR3_JDATA_Pos) /*!< 0x00020000 */
  3465. #define ADC_JDR3_JDATA_18 (0x00040000U << ADC_JDR3_JDATA_Pos) /*!< 0x00040000 */
  3466. #define ADC_JDR3_JDATA_19 (0x00080000U << ADC_JDR3_JDATA_Pos) /*!< 0x00080000 */
  3467. #define ADC_JDR3_JDATA_20 (0x00100000U << ADC_JDR3_JDATA_Pos) /*!< 0x00100000 */
  3468. #define ADC_JDR3_JDATA_21 (0x00200000U << ADC_JDR3_JDATA_Pos) /*!< 0x00200000 */
  3469. #define ADC_JDR3_JDATA_22 (0x00400000U << ADC_JDR3_JDATA_Pos) /*!< 0x00400000 */
  3470. #define ADC_JDR3_JDATA_23 (0x00800000U << ADC_JDR3_JDATA_Pos) /*!< 0x00800000 */
  3471. #define ADC_JDR3_JDATA_24 (0x01000000U << ADC_JDR3_JDATA_Pos) /*!< 0x01000000 */
  3472. #define ADC_JDR3_JDATA_25 (0x02000000U << ADC_JDR3_JDATA_Pos) /*!< 0x02000000 */
  3473. #define ADC_JDR3_JDATA_26 (0x04000000U << ADC_JDR3_JDATA_Pos) /*!< 0x04000000 */
  3474. #define ADC_JDR3_JDATA_27 (0x08000000U << ADC_JDR3_JDATA_Pos) /*!< 0x08000000 */
  3475. #define ADC_JDR3_JDATA_28 (0x10000000U << ADC_JDR3_JDATA_Pos) /*!< 0x10000000 */
  3476. #define ADC_JDR3_JDATA_29 (0x20000000U << ADC_JDR3_JDATA_Pos) /*!< 0x20000000 */
  3477. #define ADC_JDR3_JDATA_30 (0x40000000U << ADC_JDR3_JDATA_Pos) /*!< 0x40000000 */
  3478. #define ADC_JDR3_JDATA_31 (0x80000000U << ADC_JDR3_JDATA_Pos) /*!< 0x80000000 */
  3479. /******************** Bit definition for ADC_JDR4 register ********************/
  3480. #define ADC_JDR4_JDATA_Pos (0U)
  3481. #define ADC_JDR4_JDATA_Msk (0xFFFFFFFFU << ADC_JDR4_JDATA_Pos) /*!< 0xFFFFFFFF */
  3482. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC Injected DATA */
  3483. #define ADC_JDR4_JDATA_0 (0x00000001U << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  3484. #define ADC_JDR4_JDATA_1 (0x00000002U << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  3485. #define ADC_JDR4_JDATA_2 (0x00000004U << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  3486. #define ADC_JDR4_JDATA_3 (0x00000008U << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  3487. #define ADC_JDR4_JDATA_4 (0x00000010U << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  3488. #define ADC_JDR4_JDATA_5 (0x00000020U << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  3489. #define ADC_JDR4_JDATA_6 (0x00000040U << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  3490. #define ADC_JDR4_JDATA_7 (0x00000080U << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  3491. #define ADC_JDR4_JDATA_8 (0x00000100U << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  3492. #define ADC_JDR4_JDATA_9 (0x00000200U << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  3493. #define ADC_JDR4_JDATA_10 (0x00000400U << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  3494. #define ADC_JDR4_JDATA_11 (0x00000800U << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  3495. #define ADC_JDR4_JDATA_12 (0x00001000U << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  3496. #define ADC_JDR4_JDATA_13 (0x00002000U << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  3497. #define ADC_JDR4_JDATA_14 (0x00004000U << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  3498. #define ADC_JDR4_JDATA_15 (0x00008000U << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  3499. #define ADC_JDR4_JDATA_16 (0x00010000U << ADC_JDR4_JDATA_Pos) /*!< 0x00010000 */
  3500. #define ADC_JDR4_JDATA_17 (0x00020000U << ADC_JDR4_JDATA_Pos) /*!< 0x00020000 */
  3501. #define ADC_JDR4_JDATA_18 (0x00040000U << ADC_JDR4_JDATA_Pos) /*!< 0x00040000 */
  3502. #define ADC_JDR4_JDATA_19 (0x00080000U << ADC_JDR4_JDATA_Pos) /*!< 0x00080000 */
  3503. #define ADC_JDR4_JDATA_20 (0x00100000U << ADC_JDR4_JDATA_Pos) /*!< 0x00100000 */
  3504. #define ADC_JDR4_JDATA_21 (0x00200000U << ADC_JDR4_JDATA_Pos) /*!< 0x00200000 */
  3505. #define ADC_JDR4_JDATA_22 (0x00400000U << ADC_JDR4_JDATA_Pos) /*!< 0x00400000 */
  3506. #define ADC_JDR4_JDATA_23 (0x00800000U << ADC_JDR4_JDATA_Pos) /*!< 0x00800000 */
  3507. #define ADC_JDR4_JDATA_24 (0x01000000U << ADC_JDR4_JDATA_Pos) /*!< 0x01000000 */
  3508. #define ADC_JDR4_JDATA_25 (0x02000000U << ADC_JDR4_JDATA_Pos) /*!< 0x02000000 */
  3509. #define ADC_JDR4_JDATA_26 (0x04000000U << ADC_JDR4_JDATA_Pos) /*!< 0x04000000 */
  3510. #define ADC_JDR4_JDATA_27 (0x08000000U << ADC_JDR4_JDATA_Pos) /*!< 0x08000000 */
  3511. #define ADC_JDR4_JDATA_28 (0x10000000U << ADC_JDR4_JDATA_Pos) /*!< 0x10000000 */
  3512. #define ADC_JDR4_JDATA_29 (0x20000000U << ADC_JDR4_JDATA_Pos) /*!< 0x20000000 */
  3513. #define ADC_JDR4_JDATA_30 (0x40000000U << ADC_JDR4_JDATA_Pos) /*!< 0x40000000 */
  3514. #define ADC_JDR4_JDATA_31 (0x80000000U << ADC_JDR4_JDATA_Pos) /*!< 0x80000000 */
  3515. /******************** Bit definition for ADC_AWD2CR register ********************/
  3516. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  3517. #define ADC_AWD2CR_AWD2CH_Msk (0xFFFFFU << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x000FFFFF */
  3518. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3519. #define ADC_AWD2CR_AWD2CH_0 (0x00001U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  3520. #define ADC_AWD2CR_AWD2CH_1 (0x00002U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  3521. #define ADC_AWD2CR_AWD2CH_2 (0x00004U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  3522. #define ADC_AWD2CR_AWD2CH_3 (0x00008U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  3523. #define ADC_AWD2CR_AWD2CH_4 (0x00010U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  3524. #define ADC_AWD2CR_AWD2CH_5 (0x00020U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  3525. #define ADC_AWD2CR_AWD2CH_6 (0x00040U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  3526. #define ADC_AWD2CR_AWD2CH_7 (0x00080U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  3527. #define ADC_AWD2CR_AWD2CH_8 (0x00100U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  3528. #define ADC_AWD2CR_AWD2CH_9 (0x00200U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  3529. #define ADC_AWD2CR_AWD2CH_10 (0x00400U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  3530. #define ADC_AWD2CR_AWD2CH_11 (0x00800U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  3531. #define ADC_AWD2CR_AWD2CH_12 (0x01000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  3532. #define ADC_AWD2CR_AWD2CH_13 (0x02000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  3533. #define ADC_AWD2CR_AWD2CH_14 (0x04000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  3534. #define ADC_AWD2CR_AWD2CH_15 (0x08000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  3535. #define ADC_AWD2CR_AWD2CH_16 (0x10000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  3536. #define ADC_AWD2CR_AWD2CH_17 (0x20000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  3537. #define ADC_AWD2CR_AWD2CH_18 (0x40000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  3538. #define ADC_AWD2CR_AWD2CH_19 (0x80000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00080000 */
  3539. /******************** Bit definition for ADC_AWD3CR register ********************/
  3540. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  3541. #define ADC_AWD3CR_AWD3CH_Msk (0xFFFFFU << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x000FFFFF */
  3542. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3543. #define ADC_AWD3CR_AWD3CH_0 (0x00001U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  3544. #define ADC_AWD3CR_AWD3CH_1 (0x00002U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  3545. #define ADC_AWD3CR_AWD3CH_2 (0x00004U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  3546. #define ADC_AWD3CR_AWD3CH_3 (0x00008U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  3547. #define ADC_AWD3CR_AWD3CH_4 (0x00010U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  3548. #define ADC_AWD3CR_AWD3CH_5 (0x00020U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  3549. #define ADC_AWD3CR_AWD3CH_6 (0x00040U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  3550. #define ADC_AWD3CR_AWD3CH_7 (0x00080U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  3551. #define ADC_AWD3CR_AWD3CH_8 (0x00100U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  3552. #define ADC_AWD3CR_AWD3CH_9 (0x00200U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  3553. #define ADC_AWD3CR_AWD3CH_10 (0x00400U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  3554. #define ADC_AWD3CR_AWD3CH_11 (0x00800U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  3555. #define ADC_AWD3CR_AWD3CH_12 (0x01000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  3556. #define ADC_AWD3CR_AWD3CH_13 (0x02000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  3557. #define ADC_AWD3CR_AWD3CH_14 (0x04000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  3558. #define ADC_AWD3CR_AWD3CH_15 (0x08000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  3559. #define ADC_AWD3CR_AWD3CH_16 (0x10000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  3560. #define ADC_AWD3CR_AWD3CH_17 (0x20000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  3561. #define ADC_AWD3CR_AWD3CH_18 (0x40000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  3562. #define ADC_AWD3CR_AWD3CH_19 (0x80000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00080000 */
  3563. /******************** Bit definition for ADC_DIFSEL register ********************/
  3564. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  3565. #define ADC_DIFSEL_DIFSEL_Msk (0xFFFFFU << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x000FFFFF */
  3566. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC differential modes for channels 1 to 18 */
  3567. #define ADC_DIFSEL_DIFSEL_0 (0x00001U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  3568. #define ADC_DIFSEL_DIFSEL_1 (0x00002U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  3569. #define ADC_DIFSEL_DIFSEL_2 (0x00004U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  3570. #define ADC_DIFSEL_DIFSEL_3 (0x00008U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  3571. #define ADC_DIFSEL_DIFSEL_4 (0x00010U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  3572. #define ADC_DIFSEL_DIFSEL_5 (0x00020U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  3573. #define ADC_DIFSEL_DIFSEL_6 (0x00040U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  3574. #define ADC_DIFSEL_DIFSEL_7 (0x00080U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  3575. #define ADC_DIFSEL_DIFSEL_8 (0x00100U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  3576. #define ADC_DIFSEL_DIFSEL_9 (0x00200U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  3577. #define ADC_DIFSEL_DIFSEL_10 (0x00400U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  3578. #define ADC_DIFSEL_DIFSEL_11 (0x00800U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  3579. #define ADC_DIFSEL_DIFSEL_12 (0x01000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  3580. #define ADC_DIFSEL_DIFSEL_13 (0x02000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  3581. #define ADC_DIFSEL_DIFSEL_14 (0x04000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  3582. #define ADC_DIFSEL_DIFSEL_15 (0x08000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  3583. #define ADC_DIFSEL_DIFSEL_16 (0x10000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  3584. #define ADC_DIFSEL_DIFSEL_17 (0x20000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  3585. #define ADC_DIFSEL_DIFSEL_18 (0x40000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  3586. #define ADC_DIFSEL_DIFSEL_19 (0x80000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00080000 */
  3587. /******************** Bit definition for ADC_CALFACT register ********************/
  3588. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  3589. #define ADC_CALFACT_CALFACT_S_Msk (0x7FFU << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x000007FF */
  3590. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factors in single-ended mode */
  3591. #define ADC_CALFACT_CALFACT_S_0 (0x001U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  3592. #define ADC_CALFACT_CALFACT_S_1 (0x002U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  3593. #define ADC_CALFACT_CALFACT_S_2 (0x004U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  3594. #define ADC_CALFACT_CALFACT_S_3 (0x008U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  3595. #define ADC_CALFACT_CALFACT_S_4 (0x010U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  3596. #define ADC_CALFACT_CALFACT_S_5 (0x020U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  3597. #define ADC_CALFACT_CALFACT_S_6 (0x040U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  3598. #define ADC_CALFACT_CALFACT_S_7 (0x080U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000080 */
  3599. #define ADC_CALFACT_CALFACT_S_8 (0x100U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000100 */
  3600. #define ADC_CALFACT_CALFACT_S_9 (0x200U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000200 */
  3601. #define ADC_CALFACT_CALFACT_S_10 (0x400U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000400 */
  3602. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  3603. #define ADC_CALFACT_CALFACT_D_Msk (0x7FFU << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x07FF0000 */
  3604. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factors in differential mode */
  3605. #define ADC_CALFACT_CALFACT_D_0 (0x001U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  3606. #define ADC_CALFACT_CALFACT_D_1 (0x002U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  3607. #define ADC_CALFACT_CALFACT_D_2 (0x004U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  3608. #define ADC_CALFACT_CALFACT_D_3 (0x008U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  3609. #define ADC_CALFACT_CALFACT_D_4 (0x010U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  3610. #define ADC_CALFACT_CALFACT_D_5 (0x020U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  3611. #define ADC_CALFACT_CALFACT_D_6 (0x040U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  3612. #define ADC_CALFACT_CALFACT_D_7 (0x080U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00800000 */
  3613. #define ADC_CALFACT_CALFACT_D_8 (0x100U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x01000000 */
  3614. #define ADC_CALFACT_CALFACT_D_9 (0x200U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x02000000 */
  3615. #define ADC_CALFACT_CALFACT_D_10 (0x400U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x04000000 */
  3616. /******************** Bit definition for ADC_CALFACT2 register ********************/
  3617. #define ADC_CALFACT2_LINCALFACT_Pos (0U)
  3618. #define ADC_CALFACT2_LINCALFACT_Msk (0x3FFFFFFFU << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x3FFFFFFF */
  3619. #define ADC_CALFACT2_LINCALFACT ADC_CALFACT2_LINCALFACT_Msk /*!< ADC Linearity calibration factors */
  3620. #define ADC_CALFACT2_LINCALFACT_0 (0x00000001U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000001 */
  3621. #define ADC_CALFACT2_LINCALFACT_1 (0x00000002U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000002 */
  3622. #define ADC_CALFACT2_LINCALFACT_2 (0x00000004U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000004 */
  3623. #define ADC_CALFACT2_LINCALFACT_3 (0x00000008U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000008 */
  3624. #define ADC_CALFACT2_LINCALFACT_4 (0x00000010U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000010 */
  3625. #define ADC_CALFACT2_LINCALFACT_5 (0x00000020U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000020 */
  3626. #define ADC_CALFACT2_LINCALFACT_6 (0x00000040U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000040 */
  3627. #define ADC_CALFACT2_LINCALFACT_7 (0x00000080U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000080 */
  3628. #define ADC_CALFACT2_LINCALFACT_8 (0x00000100U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000100 */
  3629. #define ADC_CALFACT2_LINCALFACT_9 (0x00000200U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000200 */
  3630. #define ADC_CALFACT2_LINCALFACT_10 (0x00000400U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000400 */
  3631. #define ADC_CALFACT2_LINCALFACT_11 (0x00000800U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000800 */
  3632. #define ADC_CALFACT2_LINCALFACT_12 (0x00001000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00001000 */
  3633. #define ADC_CALFACT2_LINCALFACT_13 (0x00002000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00002000 */
  3634. #define ADC_CALFACT2_LINCALFACT_14 (0x00004000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00004000 */
  3635. #define ADC_CALFACT2_LINCALFACT_15 (0x00008000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00008000 */
  3636. #define ADC_CALFACT2_LINCALFACT_16 (0x00010000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00010000 */
  3637. #define ADC_CALFACT2_LINCALFACT_17 (0x00020000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00020000 */
  3638. #define ADC_CALFACT2_LINCALFACT_18 (0x00040000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00040000 */
  3639. #define ADC_CALFACT2_LINCALFACT_19 (0x00080000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00080000 */
  3640. #define ADC_CALFACT2_LINCALFACT_20 (0x00100000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00100000 */
  3641. #define ADC_CALFACT2_LINCALFACT_21 (0x00200000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00200000 */
  3642. #define ADC_CALFACT2_LINCALFACT_22 (0x00400000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00400000 */
  3643. #define ADC_CALFACT2_LINCALFACT_23 (0x00800000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00800000 */
  3644. #define ADC_CALFACT2_LINCALFACT_24 (0x01000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x01000000 */
  3645. #define ADC_CALFACT2_LINCALFACT_25 (0x02000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x02000000 */
  3646. #define ADC_CALFACT2_LINCALFACT_26 (0x04000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x04000000 */
  3647. #define ADC_CALFACT2_LINCALFACT_27 (0x08000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x08000000 */
  3648. #define ADC_CALFACT2_LINCALFACT_28 (0x10000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x10000000 */
  3649. #define ADC_CALFACT2_LINCALFACT_29 (0x20000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x20000000 */
  3650. /************************* ADC Common registers *****************************/
  3651. /******************** Bit definition for ADC_CSR register ********************/
  3652. #define ADC123_CSR_ADRDY_MST_Pos (0U)
  3653. #define ADC123_CSR_ADRDY_MST_Msk (0x1U << ADC123_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  3654. #define ADC123_CSR_ADRDY_MST ADC123_CSR_ADRDY_MST_Msk /*!< Master ADC ready */
  3655. #define ADC123_CSR_EOSMP_MST_Pos (1U)
  3656. #define ADC123_CSR_EOSMP_MST_Msk (0x1U << ADC123_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  3657. #define ADC123_CSR_EOSMP_MST ADC123_CSR_EOSMP_MST_Msk /*!< End of sampling phase flag of the master ADC */
  3658. #define ADC123_CSR_EOC_MST_Pos (2U)
  3659. #define ADC123_CSR_EOC_MST_Msk (0x1U << ADC123_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  3660. #define ADC123_CSR_EOC_MST ADC123_CSR_EOC_MST_Msk /*!< End of regular conversion of the master ADC */
  3661. #define ADC123_CSR_EOS_MST_Pos (3U)
  3662. #define ADC123_CSR_EOS_MST_Msk (0x1U << ADC123_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  3663. #define ADC123_CSR_EOS_MST ADC123_CSR_EOS_MST_Msk /*!< End of regular sequence flag of the master ADC */
  3664. #define ADC123_CSR_OVR_MST_Pos (4U)
  3665. #define ADC123_CSR_OVR_MST_Msk (0x1U << ADC123_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  3666. #define ADC123_CSR_OVR_MST ADC123_CSR_OVR_MST_Msk /*!< Overrun flag of the master ADC */
  3667. #define ADC123_CSR_JEOC_MST_Pos (5U)
  3668. #define ADC123_CSR_JEOC_MST_Msk (0x1U << ADC123_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  3669. #define ADC123_CSR_JEOC_MST ADC123_CSR_JEOC_MST_Msk /*!< End of injected conversion of the master ADC */
  3670. #define ADC123_CSR_JEOS_MST_Pos (6U)
  3671. #define ADC123_CSR_JEOS_MST_Msk (0x1U << ADC123_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  3672. #define ADC123_CSR_JEOS_MST ADC123_CSR_JEOS_MST_Msk /*!< End of injected sequence flag of the master ADC */
  3673. #define ADC123_CSR_AWD1_MST_Pos (7U)
  3674. #define ADC123_CSR_AWD1_MST_Msk (0x1U << ADC123_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  3675. #define ADC123_CSR_AWD1_MST ADC123_CSR_AWD1_MST_Msk /*!< Analog watchdog 1 flag of the master ADC */
  3676. #define ADC123_CSR_AWD2_MST_Pos (8U)
  3677. #define ADC123_CSR_AWD2_MST_Msk (0x1U << ADC123_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  3678. #define ADC123_CSR_AWD2_MST ADC123_CSR_AWD2_MST_Msk /*!< Analog watchdog 2 flag of the master ADC */
  3679. #define ADC123_CSR_AWD3_MST_Pos (9U)
  3680. #define ADC123_CSR_AWD3_MST_Msk (0x1U << ADC123_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  3681. #define ADC123_CSR_AWD3_MST ADC123_CSR_AWD3_MST_Msk /*!< Analog watchdog 3 flag of the master ADC */
  3682. #define ADC123_CSR_JQOVF_MST_Pos (10U)
  3683. #define ADC123_CSR_JQOVF_MST_Msk (0x1U << ADC123_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  3684. #define ADC123_CSR_JQOVF_MST ADC123_CSR_JQOVF_MST_Msk /*!< Injected context queue overflow flag of the master ADC */
  3685. #define ADC123_CSR_ADRDY_SLV_Pos (16U)
  3686. #define ADC123_CSR_ADRDY_SLV_Msk (0x1U << ADC123_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  3687. #define ADC123_CSR_ADRDY_SLV ADC123_CSR_ADRDY_SLV_Msk /*!< Slave ADC ready */
  3688. #define ADC123_CSR_EOSMP_SLV_Pos (17U)
  3689. #define ADC123_CSR_EOSMP_SLV_Msk (0x1U << ADC123_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  3690. #define ADC123_CSR_EOSMP_SLV ADC123_CSR_EOSMP_SLV_Msk /*!< End of sampling phase flag of the slave ADC */
  3691. #define ADC123_CSR_EOC_SLV_Pos (18U)
  3692. #define ADC123_CSR_EOC_SLV_Msk (0x1U << ADC123_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  3693. #define ADC123_CSR_EOC_SLV ADC123_CSR_EOC_SLV_Msk /*!< End of regular conversion of the slave ADC */
  3694. #define ADC123_CSR_EOS_SLV_Pos (19U)
  3695. #define ADC123_CSR_EOS_SLV_Msk (0x1U << ADC123_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  3696. #define ADC123_CSR_EOS_SLV ADC123_CSR_EOS_SLV_Msk /*!< End of regular sequence flag of the slave ADC */
  3697. #define ADC123_CSR_OVR_SLV_Pos (20U)
  3698. #define ADC123_CSR_OVR_SLV_Msk (0x1U << ADC123_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  3699. #define ADC123_CSR_OVR_SLV ADC123_CSR_OVR_SLV_Msk /*!< Overrun flag of the slave ADC */
  3700. #define ADC123_CSR_JEOC_SLV_Pos (21U)
  3701. #define ADC123_CSR_JEOC_SLV_Msk (0x1U << ADC123_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  3702. #define ADC123_CSR_JEOC_SLV ADC123_CSR_JEOC_SLV_Msk /*!< End of injected conversion of the slave ADC */
  3703. #define ADC123_CSR_JEOS_SLV_Pos (22U)
  3704. #define ADC123_CSR_JEOS_SLV_Msk (0x1U << ADC123_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  3705. #define ADC123_CSR_JEOS_SLV ADC123_CSR_JEOS_SLV_Msk /*!< End of injected sequence flag of the slave ADC */
  3706. #define ADC123_CSR_AWD1_SLV_Pos (23U)
  3707. #define ADC123_CSR_AWD1_SLV_Msk (0x1U << ADC123_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  3708. #define ADC123_CSR_AWD1_SLV ADC123_CSR_AWD1_SLV_Msk /*!< Analog watchdog 1 flag of the slave ADC */
  3709. #define ADC123_CSR_AWD2_SLV_Pos (24U)
  3710. #define ADC123_CSR_AWD2_SLV_Msk (0x1U << ADC123_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  3711. #define ADC123_CSR_AWD2_SLV ADC123_CSR_AWD2_SLV_Msk /*!< Analog watchdog 2 flag of the slave ADC */
  3712. #define ADC123_CSR_AWD3_SLV_Pos (25U)
  3713. #define ADC123_CSR_AWD3_SLV_Msk (0x1U << ADC123_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  3714. #define ADC123_CSR_AWD3_SLV ADC123_CSR_AWD3_SLV_Msk /*!< Analog watchdog 3 flag of the slave ADC */
  3715. #define ADC123_CSR_JQOVF_SLV_Pos (26U)
  3716. #define ADC123_CSR_JQOVF_SLV_Msk (0x1U << ADC123_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  3717. #define ADC123_CSR_JQOVF_SLV ADC123_CSR_JQOVF_SLV_Msk /*!< Injected context queue overflow flag of the slave ADC */
  3718. /******************** Bit definition for ADC_CCR register ********************/
  3719. #define ADC_CCR_DUAL_Pos (0U)
  3720. #define ADC_CCR_DUAL_Msk (0x1FU << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  3721. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< Dual ADC mode selection */
  3722. #define ADC_CCR_DUAL_0 (0x01U << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  3723. #define ADC_CCR_DUAL_1 (0x02U << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  3724. #define ADC_CCR_DUAL_2 (0x04U << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  3725. #define ADC_CCR_DUAL_3 (0x08U << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  3726. #define ADC_CCR_DUAL_4 (0x10U << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  3727. #define ADC_CCR_DELAY_Pos (8U)
  3728. #define ADC_CCR_DELAY_Msk (0xFU << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  3729. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< Delay between 2 sampling phases */
  3730. #define ADC_CCR_DELAY_0 (0x1U << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  3731. #define ADC_CCR_DELAY_1 (0x2U << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  3732. #define ADC_CCR_DELAY_2 (0x4U << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  3733. #define ADC_CCR_DELAY_3 (0x8U << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  3734. #define ADC_CCR_DAMDF_Pos (14U)
  3735. #define ADC_CCR_DAMDF_Msk (0x3U << ADC_CCR_DAMDF_Pos) /*!< 0x0000C000 */
  3736. #define ADC_CCR_DAMDF ADC_CCR_DAMDF_Msk /*!< Dual ADC mode Data format */
  3737. #define ADC_CCR_DAMDF_0 (0x1U << ADC_CCR_DAMDF_Pos) /*!< 0x00004000 */
  3738. #define ADC_CCR_DAMDF_1 (0x2U << ADC_CCR_DAMDF_Pos) /*!< 0x00008000 */
  3739. #define ADC_CCR_CKMODE_Pos (16U)
  3740. #define ADC_CCR_CKMODE_Msk (0x3U << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  3741. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC clock mode */
  3742. #define ADC_CCR_CKMODE_0 (0x1U << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  3743. #define ADC_CCR_CKMODE_1 (0x2U << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  3744. #define ADC_CCR_PRESC_Pos (18U)
  3745. #define ADC_CCR_PRESC_Msk (0xFU << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
  3746. #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC prescaler */
  3747. #define ADC_CCR_PRESC_0 (0x1U << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
  3748. #define ADC_CCR_PRESC_1 (0x2U << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
  3749. #define ADC_CCR_PRESC_2 (0x4U << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
  3750. #define ADC_CCR_PRESC_3 (0x8U << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
  3751. #define ADC_CCR_VREFEN_Pos (22U)
  3752. #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  3753. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< VREFINT enable */
  3754. #define ADC_CCR_TSEN_Pos (23U)
  3755. #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  3756. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< Temperature sensor enable */
  3757. #define ADC_CCR_VBATEN_Pos (24U)
  3758. #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  3759. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< VBAT enable */
  3760. /******************** Bit definition for ADC_CDR register ********************/
  3761. #define ADC123_CDR_RDATA_MST_Pos (0U)
  3762. #define ADC123_CDR_RDATA_MST_Msk (0xFFFFU << ADC123_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  3763. #define ADC123_CDR_RDATA_MST ADC123_CDR_RDATA_MST_Msk /*!< Regular Data of the master ADC */
  3764. #define ADC123_CDR_RDATA_MST_0 (0x0001U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  3765. #define ADC123_CDR_RDATA_MST_1 (0x0002U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  3766. #define ADC123_CDR_RDATA_MST_2 (0x0004U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  3767. #define ADC123_CDR_RDATA_MST_3 (0x0008U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  3768. #define ADC123_CDR_RDATA_MST_4 (0x0010U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  3769. #define ADC123_CDR_RDATA_MST_5 (0x0020U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  3770. #define ADC123_CDR_RDATA_MST_6 (0x0040U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  3771. #define ADC123_CDR_RDATA_MST_7 (0x0080U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  3772. #define ADC123_CDR_RDATA_MST_8 (0x0100U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  3773. #define ADC123_CDR_RDATA_MST_9 (0x0200U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  3774. #define ADC123_CDR_RDATA_MST_10 (0x0400U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  3775. #define ADC123_CDR_RDATA_MST_11 (0x0800U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  3776. #define ADC123_CDR_RDATA_MST_12 (0x1000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  3777. #define ADC123_CDR_RDATA_MST_13 (0x2000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  3778. #define ADC123_CDR_RDATA_MST_14 (0x4000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  3779. #define ADC123_CDR_RDATA_MST_15 (0x8000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  3780. #define ADC123_CDR_RDATA_SLV_Pos (16U)
  3781. #define ADC123_CDR_RDATA_SLV_Msk (0xFFFFU << ADC123_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  3782. #define ADC123_CDR_RDATA_SLV ADC123_CDR_RDATA_SLV_Msk /*!< Regular Data of the master ADC */
  3783. #define ADC123_CDR_RDATA_SLV_0 (0x0001U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  3784. #define ADC123_CDR_RDATA_SLV_1 (0x0002U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  3785. #define ADC123_CDR_RDATA_SLV_2 (0x0004U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  3786. #define ADC123_CDR_RDATA_SLV_3 (0x0008U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  3787. #define ADC123_CDR_RDATA_SLV_4 (0x0010U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  3788. #define ADC123_CDR_RDATA_SLV_5 (0x0020U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  3789. #define ADC123_CDR_RDATA_SLV_6 (0x0040U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  3790. #define ADC123_CDR_RDATA_SLV_7 (0x0080U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  3791. #define ADC123_CDR_RDATA_SLV_8 (0x0100U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  3792. #define ADC123_CDR_RDATA_SLV_9 (0x0200U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  3793. #define ADC123_CDR_RDATA_SLV_10 (0x0400U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  3794. #define ADC123_CDR_RDATA_SLV_11 (0x0800U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  3795. #define ADC123_CDR_RDATA_SLV_12 (0x1000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  3796. #define ADC123_CDR_RDATA_SLV_13 (0x2000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  3797. #define ADC123_CDR_RDATA_SLV_14 (0x4000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  3798. #define ADC123_CDR_RDATA_SLV_15 (0x8000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  3799. /******************** Bit definition for ADC_CDR2 register ********************/
  3800. #define ADC123_CDR2_RDATA_ALT_Pos (0U)
  3801. #define ADC123_CDR2_RDATA_ALT_Msk (0xFFFFFFFFU << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0xFFFFFFFF */
  3802. #define ADC123_CDR2_RDATA_ALT ADC123_CDR2_RDATA_ALT_Msk /*!< Regular Data for dual Mode */
  3803. #define ADC123_CDR2_RDATA_ALT_0 (0x00000001U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000001 */
  3804. #define ADC123_CDR2_RDATA_ALT_1 (0x00000002U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000002 */
  3805. #define ADC123_CDR2_RDATA_ALT_2 (0x00000004U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000004 */
  3806. #define ADC123_CDR2_RDATA_ALT_3 (0x00000008U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000008 */
  3807. #define ADC123_CDR2_RDATA_ALT_4 (0x00000010U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000010 */
  3808. #define ADC123_CDR2_RDATA_ALT_5 (0x00000020U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000020 */
  3809. #define ADC123_CDR2_RDATA_ALT_6 (0x00000040U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000040 */
  3810. #define ADC123_CDR2_RDATA_ALT_7 (0x00000080U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000080 */
  3811. #define ADC123_CDR2_RDATA_ALT_8 (0x00000100U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000100 */
  3812. #define ADC123_CDR2_RDATA_ALT_9 (0x00000200U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000200 */
  3813. #define ADC123_CDR2_RDATA_ALT_10 (0x00000400U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000400 */
  3814. #define ADC123_CDR2_RDATA_ALT_11 (0x00000800U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000800 */
  3815. #define ADC123_CDR2_RDATA_ALT_12 (0x00001000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00001000 */
  3816. #define ADC123_CDR2_RDATA_ALT_13 (0x00002000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00002000 */
  3817. #define ADC123_CDR2_RDATA_ALT_14 (0x00004000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00004000 */
  3818. #define ADC123_CDR2_RDATA_ALT_15 (0x00008000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00008000 */
  3819. #define ADC123_CDR2_RDATA_ALT_16 (0x00010000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00010000 */
  3820. #define ADC123_CDR2_RDATA_ALT_17 (0x00020000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00020000 */
  3821. #define ADC123_CDR2_RDATA_ALT_18 (0x00040000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00040000 */
  3822. #define ADC123_CDR2_RDATA_ALT_19 (0x00080000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00080000 */
  3823. #define ADC123_CDR2_RDATA_ALT_20 (0x00100000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00100000 */
  3824. #define ADC123_CDR2_RDATA_ALT_21 (0x00200000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00200000 */
  3825. #define ADC123_CDR2_RDATA_ALT_22 (0x00400000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00400000 */
  3826. #define ADC123_CDR2_RDATA_ALT_23 (0x00800000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00800000 */
  3827. #define ADC123_CDR2_RDATA_ALT_24 (0x01000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x01000000 */
  3828. #define ADC123_CDR2_RDATA_ALT_25 (0x02000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x02000000 */
  3829. #define ADC123_CDR2_RDATA_ALT_26 (0x04000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x04000000 */
  3830. #define ADC123_CDR2_RDATA_ALT_27 (0x08000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x08000000 */
  3831. #define ADC123_CDR2_RDATA_ALT_28 (0x10000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x10000000 */
  3832. #define ADC123_CDR2_RDATA_ALT_29 (0x20000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x20000000 */
  3833. #define ADC123_CDR2_RDATA_ALT_30 (0x40000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x40000000 */
  3834. #define ADC123_CDR2_RDATA_ALT_31 (0x80000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x80000000 */
  3835. /******************************************************************************/
  3836. /* */
  3837. /* VREFBUF */
  3838. /* */
  3839. /******************************************************************************/
  3840. /******************* Bit definition for VREFBUF_CSR register ****************/
  3841. #define VREFBUF_CSR_ENVR_Pos (0U)
  3842. #define VREFBUF_CSR_ENVR_Msk (0x1U << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */
  3843. #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */
  3844. #define VREFBUF_CSR_HIZ_Pos (1U)
  3845. #define VREFBUF_CSR_HIZ_Msk (0x1U << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */
  3846. #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */
  3847. #define VREFBUF_CSR_VRR_Pos (3U)
  3848. #define VREFBUF_CSR_VRR_Msk (0x1U << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */
  3849. #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */
  3850. #define VREFBUF_CSR_VRS_Pos (4U)
  3851. #define VREFBUF_CSR_VRS_Msk (0x7U << VREFBUF_CSR_VRS_Pos) /*!< 0x00000070 */
  3852. #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */
  3853. #define VREFBUF_CSR_VRS_OUT1 ((uint32_t)0x00000000) /*!<Voltage reference VREF_OUT1 */
  3854. #define VREFBUF_CSR_VRS_OUT2_Pos (4U)
  3855. #define VREFBUF_CSR_VRS_OUT2_Msk (0x1U << VREFBUF_CSR_VRS_OUT2_Pos) /*!< 0x00000010 */
  3856. #define VREFBUF_CSR_VRS_OUT2 VREFBUF_CSR_VRS_OUT2_Msk /*!<Voltage reference VREF_OUT2 */
  3857. #define VREFBUF_CSR_VRS_OUT3_Pos (5U)
  3858. #define VREFBUF_CSR_VRS_OUT3_Msk (0x1U << VREFBUF_CSR_VRS_OUT3_Pos) /*!< 0x00000020 */
  3859. #define VREFBUF_CSR_VRS_OUT3 VREFBUF_CSR_VRS_OUT3_Msk /*!<Voltage reference VREF_OUT3 */
  3860. #define VREFBUF_CSR_VRS_OUT4_Pos (4U)
  3861. #define VREFBUF_CSR_VRS_OUT4_Msk (0x3U << VREFBUF_CSR_VRS_OUT4_Pos) /*!< 0x00000030 */
  3862. #define VREFBUF_CSR_VRS_OUT4 VREFBUF_CSR_VRS_OUT4_Msk /*!<Voltage reference VREF_OUT4 */
  3863. /******************* Bit definition for VREFBUF_CCR register ****************/
  3864. #define VREFBUF_CCR_TRIM_Pos (0U)
  3865. #define VREFBUF_CCR_TRIM_Msk (0x3FU << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */
  3866. #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */
  3867. /******************************************************************************/
  3868. /* */
  3869. /* Flexible Datarate Controller Area Network */
  3870. /* */
  3871. /******************************************************************************/
  3872. /*!<FDCAN control and status registers */
  3873. /***************** Bit definition for FDCAN_CREL register *******************/
  3874. #define FDCAN_CREL_DAY_Pos (0U)
  3875. #define FDCAN_CREL_DAY_Msk (0xFFU << FDCAN_CREL_DAY_Pos) /*!< 0x000000FF */
  3876. #define FDCAN_CREL_DAY FDCAN_CREL_DAY_Msk /*!<Timestamp Day */
  3877. #define FDCAN_CREL_MON_Pos (8U)
  3878. #define FDCAN_CREL_MON_Msk (0xFFU << FDCAN_CREL_MON_Pos) /*!< 0x0000FF00 */
  3879. #define FDCAN_CREL_MON FDCAN_CREL_MON_Msk /*!<Timestamp Month */
  3880. #define FDCAN_CREL_YEAR_Pos (16U)
  3881. #define FDCAN_CREL_YEAR_Msk (0xFU << FDCAN_CREL_YEAR_Pos) /*!< 0x000F0000 */
  3882. #define FDCAN_CREL_YEAR FDCAN_CREL_YEAR_Msk /*!<Timestamp Year */
  3883. #define FDCAN_CREL_SUBSTEP_Pos (20U)
  3884. #define FDCAN_CREL_SUBSTEP_Msk (0xFU << FDCAN_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  3885. #define FDCAN_CREL_SUBSTEP FDCAN_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  3886. #define FDCAN_CREL_STEP_Pos (24U)
  3887. #define FDCAN_CREL_STEP_Msk (0xFU << FDCAN_CREL_STEP_Pos) /*!< 0x0F000000 */
  3888. #define FDCAN_CREL_STEP FDCAN_CREL_STEP_Msk /*!<Step of Core release */
  3889. #define FDCAN_CREL_REL_Pos (28U)
  3890. #define FDCAN_CREL_REL_Msk (0xFU << FDCAN_CREL_REL_Pos) /*!< 0xF0000000 */
  3891. #define FDCAN_CREL_REL FDCAN_CREL_REL_Msk /*!<Core release */
  3892. /***************** Bit definition for FDCAN_ENDN register *******************/
  3893. #define FDCAN_ENDN_ETV_Pos (0U)
  3894. #define FDCAN_ENDN_ETV_Msk (0xFFFFFFFFU << FDCAN_ENDN_ETV_Pos) /*!< 0xFFFFFFFF */
  3895. #define FDCAN_ENDN_ETV FDCAN_ENDN_ETV_Msk /*!<Endiannes Test Value */
  3896. /***************** Bit definition for FDCAN_DBTP register *******************/
  3897. #define FDCAN_DBTP_DSJW_Pos (0U)
  3898. #define FDCAN_DBTP_DSJW_Msk (0xFU << FDCAN_DBTP_DSJW_Pos) /*!< 0x0000000F */
  3899. #define FDCAN_DBTP_DSJW FDCAN_DBTP_DSJW_Msk /*!<Synchronization Jump Width */
  3900. #define FDCAN_DBTP_DTSEG2_Pos (4U)
  3901. #define FDCAN_DBTP_DTSEG2_Msk (0xFU << FDCAN_DBTP_DTSEG2_Pos) /*!< 0x000000F0 */
  3902. #define FDCAN_DBTP_DTSEG2 FDCAN_DBTP_DTSEG2_Msk /*!<Data time segment after sample point */
  3903. #define FDCAN_DBTP_DTSEG1_Pos (8U)
  3904. #define FDCAN_DBTP_DTSEG1_Msk (0xFU << FDCAN_DBTP_DTSEG1_Pos) /*!< 0x00000F00 */
  3905. #define FDCAN_DBTP_DTSEG1 FDCAN_DBTP_DTSEG1_Msk /*!<Data time segment before sample point */
  3906. #define FDCAN_DBTP_DBRP_Pos (16U)
  3907. #define FDCAN_DBTP_DBRP_Msk (0x1FU << FDCAN_DBTP_DBRP_Pos) /*!< 0x001F0000 */
  3908. #define FDCAN_DBTP_DBRP FDCAN_DBTP_DBRP_Msk /*!<Data BIt Rate Prescaler */
  3909. #define FDCAN_DBTP_TDC_Pos (23U)
  3910. #define FDCAN_DBTP_TDC_Msk (0x1U << FDCAN_DBTP_TDC_Pos) /*!< 0x00800000 */
  3911. #define FDCAN_DBTP_TDC FDCAN_DBTP_TDC_Msk /*!<Transceiver Delay Compensation */
  3912. /***************** Bit definition for FDCAN_TEST register *******************/
  3913. #define FDCAN_TEST_LBCK_Pos (4U)
  3914. #define FDCAN_TEST_LBCK_Msk (0x1U << FDCAN_TEST_LBCK_Pos) /*!< 0x00000010 */
  3915. #define FDCAN_TEST_LBCK FDCAN_TEST_LBCK_Msk /*!<Loop Back mode */
  3916. #define FDCAN_TEST_TX_Pos (5U)
  3917. #define FDCAN_TEST_TX_Msk (0x3U << FDCAN_TEST_TX_Pos) /*!< 0x00000060 */
  3918. #define FDCAN_TEST_TX FDCAN_TEST_TX_Msk /*!<Control of Transmit Pin */
  3919. #define FDCAN_TEST_RX_Pos (7U)
  3920. #define FDCAN_TEST_RX_Msk (0x1U << FDCAN_TEST_RX_Pos) /*!< 0x00000080 */
  3921. #define FDCAN_TEST_RX FDCAN_TEST_RX_Msk /*!<Receive Pin */
  3922. /***************** Bit definition for FDCAN_RWD register ********************/
  3923. #define FDCAN_RWD_WDC_Pos (0U)
  3924. #define FDCAN_RWD_WDC_Msk (0xFU << FDCAN_RWD_WDC_Pos) /*!< 0x0000000F */
  3925. #define FDCAN_RWD_WDC FDCAN_RWD_WDC_Msk /*!<Watchdog configuration */
  3926. #define FDCAN_RWD_WDV_Pos (4U)
  3927. #define FDCAN_RWD_WDV_Msk (0xFU << FDCAN_RWD_WDV_Pos) /*!< 0x000000F0 */
  3928. #define FDCAN_RWD_WDV FDCAN_RWD_WDV_Msk /*!<Watchdog value */
  3929. /***************** Bit definition for FDCAN_CCCR register ********************/
  3930. #define FDCAN_CCCR_INIT_Pos (0U)
  3931. #define FDCAN_CCCR_INIT_Msk (0x1U << FDCAN_CCCR_INIT_Pos) /*!< 0x00000001 */
  3932. #define FDCAN_CCCR_INIT FDCAN_CCCR_INIT_Msk /*!<Initialization */
  3933. #define FDCAN_CCCR_CCE_Pos (1U)
  3934. #define FDCAN_CCCR_CCE_Msk (0x1U << FDCAN_CCCR_CCE_Pos) /*!< 0x00000002 */
  3935. #define FDCAN_CCCR_CCE FDCAN_CCCR_CCE_Msk /*!<Configuration Change Enable */
  3936. #define FDCAN_CCCR_ASM_Pos (2U)
  3937. #define FDCAN_CCCR_ASM_Msk (0x1U << FDCAN_CCCR_ASM_Pos) /*!< 0x00000004 */
  3938. #define FDCAN_CCCR_ASM FDCAN_CCCR_ASM_Msk /*!<ASM Restricted Operation Mode */
  3939. #define FDCAN_CCCR_CSA_Pos (3U)
  3940. #define FDCAN_CCCR_CSA_Msk (0x1U << FDCAN_CCCR_CSA_Pos) /*!< 0x00000008 */
  3941. #define FDCAN_CCCR_CSA FDCAN_CCCR_CSA_Msk /*!<Clock Stop Acknowledge */
  3942. #define FDCAN_CCCR_CSR_Pos (4U)
  3943. #define FDCAN_CCCR_CSR_Msk (0x1U << FDCAN_CCCR_CSR_Pos) /*!< 0x00000010 */
  3944. #define FDCAN_CCCR_CSR FDCAN_CCCR_CSR_Msk /*!<Clock Stop Request */
  3945. #define FDCAN_CCCR_MON_Pos (5U)
  3946. #define FDCAN_CCCR_MON_Msk (0x1U << FDCAN_CCCR_MON_Pos) /*!< 0x00000020 */
  3947. #define FDCAN_CCCR_MON FDCAN_CCCR_MON_Msk /*!<Bus Monitoring Mode */
  3948. #define FDCAN_CCCR_DAR_Pos (6U)
  3949. #define FDCAN_CCCR_DAR_Msk (0x1U << FDCAN_CCCR_DAR_Pos) /*!< 0x00000040 */
  3950. #define FDCAN_CCCR_DAR FDCAN_CCCR_DAR_Msk /*!<Disable Automatic Retransmission */
  3951. #define FDCAN_CCCR_TEST_Pos (7U)
  3952. #define FDCAN_CCCR_TEST_Msk (0x1U << FDCAN_CCCR_TEST_Pos) /*!< 0x00000080 */
  3953. #define FDCAN_CCCR_TEST FDCAN_CCCR_TEST_Msk /*!<Test Mode Enable */
  3954. #define FDCAN_CCCR_FDOE_Pos (8U)
  3955. #define FDCAN_CCCR_FDOE_Msk (0x1U << FDCAN_CCCR_FDOE_Pos) /*!< 0x00000100 */
  3956. #define FDCAN_CCCR_FDOE FDCAN_CCCR_FDOE_Msk /*!<FD Operation Enable */
  3957. #define FDCAN_CCCR_BRSE_Pos (9U)
  3958. #define FDCAN_CCCR_BRSE_Msk (0x1U << FDCAN_CCCR_BRSE_Pos) /*!< 0x00000200 */
  3959. #define FDCAN_CCCR_BRSE FDCAN_CCCR_BRSE_Msk /*!<FDCAN Bit Rate Switching */
  3960. #define FDCAN_CCCR_PXHD_Pos (12U)
  3961. #define FDCAN_CCCR_PXHD_Msk (0x1U << FDCAN_CCCR_PXHD_Pos) /*!< 0x00001000 */
  3962. #define FDCAN_CCCR_PXHD FDCAN_CCCR_PXHD_Msk /*!<Protocol Exception Handling Disable */
  3963. #define FDCAN_CCCR_EFBI_Pos (13U)
  3964. #define FDCAN_CCCR_EFBI_Msk (0x1U << FDCAN_CCCR_EFBI_Pos) /*!< 0x00002000 */
  3965. #define FDCAN_CCCR_EFBI FDCAN_CCCR_EFBI_Msk /*!<Edge Filtering during Bus Integration */
  3966. #define FDCAN_CCCR_TXP_Pos (14U)
  3967. #define FDCAN_CCCR_TXP_Msk (0x1U << FDCAN_CCCR_TXP_Pos) /*!< 0x00004000 */
  3968. #define FDCAN_CCCR_TXP FDCAN_CCCR_TXP_Msk /*!<Two CAN bit times Pause */
  3969. #define FDCAN_CCCR_NISO_Pos (15U)
  3970. #define FDCAN_CCCR_NISO_Msk (0x1U << FDCAN_CCCR_NISO_Pos) /*!< 0x00008000 */
  3971. #define FDCAN_CCCR_NISO FDCAN_CCCR_NISO_Msk /*!<Non ISO Operation */
  3972. /***************** Bit definition for FDCAN_NBTP register ********************/
  3973. #define FDCAN_NBTP_TSEG2_Pos (0U)
  3974. #define FDCAN_NBTP_TSEG2_Msk (0x7FU << FDCAN_NBTP_TSEG2_Pos) /*!< 0x0000007F */
  3975. #define FDCAN_NBTP_TSEG2 FDCAN_NBTP_TSEG2_Msk /*!<Nominal Time segment after sample point */
  3976. #define FDCAN_NBTP_NTSEG1_Pos (8U)
  3977. #define FDCAN_NBTP_NTSEG1_Msk (0xFFU << FDCAN_NBTP_NTSEG1_Pos) /*!< 0x0000FF00 */
  3978. #define FDCAN_NBTP_NTSEG1 FDCAN_NBTP_NTSEG1_Msk /*!<Nominal Time segment before sample point */
  3979. #define FDCAN_NBTP_NBRP_Pos (16U)
  3980. #define FDCAN_NBTP_NBRP_Msk (0x1FFU << FDCAN_NBTP_NBRP_Pos) /*!< 0x01FF0000 */
  3981. #define FDCAN_NBTP_NBRP FDCAN_NBTP_NBRP_Msk /*!<Bit Rate Prescaler */
  3982. #define FDCAN_NBTP_NSJW_Pos (25U)
  3983. #define FDCAN_NBTP_NSJW_Msk (0x7FU << FDCAN_NBTP_NSJW_Pos) /*!< 0xFE000000 */
  3984. #define FDCAN_NBTP_NSJW FDCAN_NBTP_NSJW_Msk /*!<Nominal (Re)Synchronization Jump Width */
  3985. /***************** Bit definition for FDCAN_TSCC register ********************/
  3986. #define FDCAN_TSCC_TSS_Pos (0U)
  3987. #define FDCAN_TSCC_TSS_Msk (0x3U << FDCAN_TSCC_TSS_Pos) /*!< 0x00000003 */
  3988. #define FDCAN_TSCC_TSS FDCAN_TSCC_TSS_Msk /*!<Timestamp Select */
  3989. #define FDCAN_TSCC_TCP_Pos (16U)
  3990. #define FDCAN_TSCC_TCP_Msk (0xFU << FDCAN_TSCC_TCP_Pos) /*!< 0x000F0000 */
  3991. #define FDCAN_TSCC_TCP FDCAN_TSCC_TCP_Msk /*!<Timestamp Counter Prescaler */
  3992. /***************** Bit definition for FDCAN_TSCV register ********************/
  3993. #define FDCAN_TSCV_TSC_Pos (0U)
  3994. #define FDCAN_TSCV_TSC_Msk (0xFFFFU << FDCAN_TSCV_TSC_Pos) /*!< 0x0000FFFF */
  3995. #define FDCAN_TSCV_TSC FDCAN_TSCV_TSC_Msk /*!<Timestamp Counter */
  3996. /***************** Bit definition for FDCAN_TOCC register ********************/
  3997. #define FDCAN_TOCC_ETOC_Pos (0U)
  3998. #define FDCAN_TOCC_ETOC_Msk (0x1U << FDCAN_TOCC_ETOC_Pos) /*!< 0x00000001 */
  3999. #define FDCAN_TOCC_ETOC FDCAN_TOCC_ETOC_Msk /*!<Enable Timeout Counter */
  4000. #define FDCAN_TOCC_TOS_Pos (1U)
  4001. #define FDCAN_TOCC_TOS_Msk (0x3U << FDCAN_TOCC_TOS_Pos) /*!< 0x00000006 */
  4002. #define FDCAN_TOCC_TOS FDCAN_TOCC_TOS_Msk /*!<Timeout Select */
  4003. #define FDCAN_TOCC_TOP_Pos (16U)
  4004. #define FDCAN_TOCC_TOP_Msk (0xFFFFU << FDCAN_TOCC_TOP_Pos) /*!< 0xFFFF0000 */
  4005. #define FDCAN_TOCC_TOP FDCAN_TOCC_TOP_Msk /*!<Timeout Period */
  4006. /***************** Bit definition for FDCAN_TOCV register ********************/
  4007. #define FDCAN_TOCV_TOC_Pos (0U)
  4008. #define FDCAN_TOCV_TOC_Msk (0xFFFFU << FDCAN_TOCV_TOC_Pos) /*!< 0x0000FFFF */
  4009. #define FDCAN_TOCV_TOC FDCAN_TOCV_TOC_Msk /*!<Timeout Counter */
  4010. /***************** Bit definition for FDCAN_ECR register *********************/
  4011. #define FDCAN_ECR_TEC_Pos (0U)
  4012. #define FDCAN_ECR_TEC_Msk (0xFU << FDCAN_ECR_TEC_Pos) /*!< 0x0000000F */
  4013. #define FDCAN_ECR_TEC FDCAN_ECR_TEC_Msk /*!<Transmit Error Counter */
  4014. #define FDCAN_ECR_TREC_Pos (8U)
  4015. #define FDCAN_ECR_TREC_Msk (0x7FU << FDCAN_ECR_TREC_Pos) /*!< 0x00007F00 */
  4016. #define FDCAN_ECR_TREC FDCAN_ECR_TREC_Msk /*!<Receive Error Counter */
  4017. #define FDCAN_ECR_RP_Pos (15U)
  4018. #define FDCAN_ECR_RP_Msk (0x1U << FDCAN_ECR_RP_Pos) /*!< 0x00008000 */
  4019. #define FDCAN_ECR_RP FDCAN_ECR_RP_Msk /*!<Receive Error Passive */
  4020. #define FDCAN_ECR_CEL_Pos (16U)
  4021. #define FDCAN_ECR_CEL_Msk (0xFFU << FDCAN_ECR_CEL_Pos) /*!< 0x00FF0000 */
  4022. #define FDCAN_ECR_CEL FDCAN_ECR_CEL_Msk /*!<CAN Error Logging */
  4023. /***************** Bit definition for FDCAN_PSR register *********************/
  4024. #define FDCAN_PSR_LEC_Pos (0U)
  4025. #define FDCAN_PSR_LEC_Msk (0x7U << FDCAN_PSR_LEC_Pos) /*!< 0x00000007 */
  4026. #define FDCAN_PSR_LEC FDCAN_PSR_LEC_Msk /*!<Last Error Code */
  4027. #define FDCAN_PSR_ACT_Pos (3U)
  4028. #define FDCAN_PSR_ACT_Msk (0x3U << FDCAN_PSR_ACT_Pos) /*!< 0x00000018 */
  4029. #define FDCAN_PSR_ACT FDCAN_PSR_ACT_Msk /*!<Activity */
  4030. #define FDCAN_PSR_EP_Pos (5U)
  4031. #define FDCAN_PSR_EP_Msk (0x1U << FDCAN_PSR_EP_Pos) /*!< 0x00000020 */
  4032. #define FDCAN_PSR_EP FDCAN_PSR_EP_Msk /*!<Error Passive */
  4033. #define FDCAN_PSR_EW_Pos (6U)
  4034. #define FDCAN_PSR_EW_Msk (0x1U << FDCAN_PSR_EW_Pos) /*!< 0x00000040 */
  4035. #define FDCAN_PSR_EW FDCAN_PSR_EW_Msk /*!<Warning Status */
  4036. #define FDCAN_PSR_BO_Pos (7U)
  4037. #define FDCAN_PSR_BO_Msk (0x1U << FDCAN_PSR_BO_Pos) /*!< 0x00000080 */
  4038. #define FDCAN_PSR_BO FDCAN_PSR_BO_Msk /*!<Bus_Off Status */
  4039. #define FDCAN_PSR_DLEC_Pos (8U)
  4040. #define FDCAN_PSR_DLEC_Msk (0x7U << FDCAN_PSR_DLEC_Pos) /*!< 0x00000700 */
  4041. #define FDCAN_PSR_DLEC FDCAN_PSR_DLEC_Msk /*!<Data Last Error Code */
  4042. #define FDCAN_PSR_RESI_Pos (11U)
  4043. #define FDCAN_PSR_RESI_Msk (0x1U << FDCAN_PSR_RESI_Pos) /*!< 0x00000800 */
  4044. #define FDCAN_PSR_RESI FDCAN_PSR_RESI_Msk /*!<ESI flag of last received FDCAN Message */
  4045. #define FDCAN_PSR_RBRS_Pos (12U)
  4046. #define FDCAN_PSR_RBRS_Msk (0x1U << FDCAN_PSR_RBRS_Pos) /*!< 0x00001000 */
  4047. #define FDCAN_PSR_RBRS FDCAN_PSR_RBRS_Msk /*!<BRS flag of last received FDCAN Message */
  4048. #define FDCAN_PSR_REDL_Pos (13U)
  4049. #define FDCAN_PSR_REDL_Msk (0x1U << FDCAN_PSR_REDL_Pos) /*!< 0x00002000 */
  4050. #define FDCAN_PSR_REDL FDCAN_PSR_REDL_Msk /*!<Received FDCAN Message */
  4051. #define FDCAN_PSR_PXE_Pos (14U)
  4052. #define FDCAN_PSR_PXE_Msk (0x1U << FDCAN_PSR_PXE_Pos) /*!< 0x00004000 */
  4053. #define FDCAN_PSR_PXE FDCAN_PSR_PXE_Msk /*!<Protocol Exception Event */
  4054. #define FDCAN_PSR_TDCV_Pos (16U)
  4055. #define FDCAN_PSR_TDCV_Msk (0x7FU << FDCAN_PSR_TDCV_Pos) /*!< 0x007F0000 */
  4056. #define FDCAN_PSR_TDCV FDCAN_PSR_TDCV_Msk /*!<Transmitter Delay Compensation Value */
  4057. /***************** Bit definition for FDCAN_TDCR register ********************/
  4058. #define FDCAN_TDCR_TDCF_Pos (0U)
  4059. #define FDCAN_TDCR_TDCF_Msk (0x7FU << FDCAN_TDCR_TDCF_Pos) /*!< 0x0000007F */
  4060. #define FDCAN_TDCR_TDCF FDCAN_TDCR_TDCF_Msk /*!<Transmitter Delay Compensation Filter */
  4061. #define FDCAN_TDCR_TDCO_Pos (8U)
  4062. #define FDCAN_TDCR_TDCO_Msk (0x7FU << FDCAN_TDCR_TDCO_Pos) /*!< 0x00007F00 */
  4063. #define FDCAN_TDCR_TDCO FDCAN_TDCR_TDCO_Msk /*!<Transmitter Delay Compensation Offset */
  4064. /***************** Bit definition for FDCAN_IR register **********************/
  4065. #define FDCAN_IR_RF0N_Pos (0U)
  4066. #define FDCAN_IR_RF0N_Msk (0x1U << FDCAN_IR_RF0N_Pos) /*!< 0x00000001 */
  4067. #define FDCAN_IR_RF0N FDCAN_IR_RF0N_Msk /*!<Rx FIFO 0 New Message */
  4068. #define FDCAN_IR_RF0W_Pos (1U)
  4069. #define FDCAN_IR_RF0W_Msk (0x1U << FDCAN_IR_RF0W_Pos) /*!< 0x00000002 */
  4070. #define FDCAN_IR_RF0W FDCAN_IR_RF0W_Msk /*!<Rx FIFO 0 Watermark Reached */
  4071. #define FDCAN_IR_RF0F_Pos (2U)
  4072. #define FDCAN_IR_RF0F_Msk (0x1U << FDCAN_IR_RF0F_Pos) /*!< 0x00000004 */
  4073. #define FDCAN_IR_RF0F FDCAN_IR_RF0F_Msk /*!<Rx FIFO 0 Full */
  4074. #define FDCAN_IR_RF0L_Pos (3U)
  4075. #define FDCAN_IR_RF0L_Msk (0x1U << FDCAN_IR_RF0L_Pos) /*!< 0x00000008 */
  4076. #define FDCAN_IR_RF0L FDCAN_IR_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  4077. #define FDCAN_IR_RF1N_Pos (4U)
  4078. #define FDCAN_IR_RF1N_Msk (0x1U << FDCAN_IR_RF1N_Pos) /*!< 0x00000010 */
  4079. #define FDCAN_IR_RF1N FDCAN_IR_RF1N_Msk /*!<Rx FIFO 1 New Message */
  4080. #define FDCAN_IR_RF1W_Pos (5U)
  4081. #define FDCAN_IR_RF1W_Msk (0x1U << FDCAN_IR_RF1W_Pos) /*!< 0x00000020 */
  4082. #define FDCAN_IR_RF1W FDCAN_IR_RF1W_Msk /*!<Rx FIFO 1 Watermark Reached */
  4083. #define FDCAN_IR_RF1F_Pos (6U)
  4084. #define FDCAN_IR_RF1F_Msk (0x1U << FDCAN_IR_RF1F_Pos) /*!< 0x00000040 */
  4085. #define FDCAN_IR_RF1F FDCAN_IR_RF1F_Msk /*!<Rx FIFO 1 Full */
  4086. #define FDCAN_IR_RF1L_Pos (7U)
  4087. #define FDCAN_IR_RF1L_Msk (0x1U << FDCAN_IR_RF1L_Pos) /*!< 0x00000080 */
  4088. #define FDCAN_IR_RF1L FDCAN_IR_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  4089. #define FDCAN_IR_HPM_Pos (8U)
  4090. #define FDCAN_IR_HPM_Msk (0x1U << FDCAN_IR_HPM_Pos) /*!< 0x00000100 */
  4091. #define FDCAN_IR_HPM FDCAN_IR_HPM_Msk /*!<High Priority Message */
  4092. #define FDCAN_IR_TC_Pos (9U)
  4093. #define FDCAN_IR_TC_Msk (0x1U << FDCAN_IR_TC_Pos) /*!< 0x00000200 */
  4094. #define FDCAN_IR_TC FDCAN_IR_TC_Msk /*!<Transmission Completed */
  4095. #define FDCAN_IR_TCF_Pos (10U)
  4096. #define FDCAN_IR_TCF_Msk (0x1U << FDCAN_IR_TCF_Pos) /*!< 0x00000400 */
  4097. #define FDCAN_IR_TCF FDCAN_IR_TCF_Msk /*!<Transmission Cancellation Finished */
  4098. #define FDCAN_IR_TFE_Pos (11U)
  4099. #define FDCAN_IR_TFE_Msk (0x1U << FDCAN_IR_TFE_Pos) /*!< 0x00000800 */
  4100. #define FDCAN_IR_TFE FDCAN_IR_TFE_Msk /*!<Tx FIFO Empty */
  4101. #define FDCAN_IR_TEFN_Pos (12U)
  4102. #define FDCAN_IR_TEFN_Msk (0x1U << FDCAN_IR_TEFN_Pos) /*!< 0x00001000 */
  4103. #define FDCAN_IR_TEFN FDCAN_IR_TEFN_Msk /*!<Tx Event FIFO New Entry */
  4104. #define FDCAN_IR_TEFW_Pos (13U)
  4105. #define FDCAN_IR_TEFW_Msk (0x1U << FDCAN_IR_TEFW_Pos) /*!< 0x00002000 */
  4106. #define FDCAN_IR_TEFW FDCAN_IR_TEFW_Msk /*!<Tx Event FIFO Watermark Reached */
  4107. #define FDCAN_IR_TEFF_Pos (14U)
  4108. #define FDCAN_IR_TEFF_Msk (0x1U << FDCAN_IR_TEFF_Pos) /*!< 0x00004000 */
  4109. #define FDCAN_IR_TEFF FDCAN_IR_TEFF_Msk /*!<Tx Event FIFO Full */
  4110. #define FDCAN_IR_TEFL_Pos (15U)
  4111. #define FDCAN_IR_TEFL_Msk (0x1U << FDCAN_IR_TEFL_Pos) /*!< 0x00008000 */
  4112. #define FDCAN_IR_TEFL FDCAN_IR_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4113. #define FDCAN_IR_TSW_Pos (16U)
  4114. #define FDCAN_IR_TSW_Msk (0x1U << FDCAN_IR_TSW_Pos) /*!< 0x00010000 */
  4115. #define FDCAN_IR_TSW FDCAN_IR_TSW_Msk /*!<Timestamp Wraparound */
  4116. #define FDCAN_IR_MRAF_Pos (17U)
  4117. #define FDCAN_IR_MRAF_Msk (0x1U << FDCAN_IR_MRAF_Pos) /*!< 0x00020000 */
  4118. #define FDCAN_IR_MRAF FDCAN_IR_MRAF_Msk /*!<Message RAM Access Failure */
  4119. #define FDCAN_IR_TOO_Pos (18U)
  4120. #define FDCAN_IR_TOO_Msk (0x1U << FDCAN_IR_TOO_Pos) /*!< 0x00040000 */
  4121. #define FDCAN_IR_TOO FDCAN_IR_TOO_Msk /*!<Timeout Occurred */
  4122. #define FDCAN_IR_DRX_Pos (19U)
  4123. #define FDCAN_IR_DRX_Msk (0x1U << FDCAN_IR_DRX_Pos) /*!< 0x00080000 */
  4124. #define FDCAN_IR_DRX FDCAN_IR_DRX_Msk /*!<Message stored to Dedicated Rx Buffer */
  4125. #define FDCAN_IR_ELO_Pos (22U)
  4126. #define FDCAN_IR_ELO_Msk (0x1U << FDCAN_IR_ELO_Pos) /*!< 0x00400000 */
  4127. #define FDCAN_IR_ELO FDCAN_IR_ELO_Msk /*!<Error Logging Overflow */
  4128. #define FDCAN_IR_EP_Pos (23U)
  4129. #define FDCAN_IR_EP_Msk (0x1U << FDCAN_IR_EP_Pos) /*!< 0x00800000 */
  4130. #define FDCAN_IR_EP FDCAN_IR_EP_Msk /*!<Error Passive */
  4131. #define FDCAN_IR_EW_Pos (24U)
  4132. #define FDCAN_IR_EW_Msk (0x1U << FDCAN_IR_EW_Pos) /*!< 0x01000000 */
  4133. #define FDCAN_IR_EW FDCAN_IR_EW_Msk /*!<Warning Status */
  4134. #define FDCAN_IR_BO_Pos (25U)
  4135. #define FDCAN_IR_BO_Msk (0x1U << FDCAN_IR_BO_Pos) /*!< 0x02000000 */
  4136. #define FDCAN_IR_BO FDCAN_IR_BO_Msk /*!<Bus_Off Status */
  4137. #define FDCAN_IR_WDI_Pos (26U)
  4138. #define FDCAN_IR_WDI_Msk (0x1U << FDCAN_IR_WDI_Pos) /*!< 0x04000000 */
  4139. #define FDCAN_IR_WDI FDCAN_IR_WDI_Msk /*!<Watchdog Interrupt */
  4140. #define FDCAN_IR_PEA_Pos (27U)
  4141. #define FDCAN_IR_PEA_Msk (0x1U << FDCAN_IR_PEA_Pos) /*!< 0x08000000 */
  4142. #define FDCAN_IR_PEA FDCAN_IR_PEA_Msk /*!<Protocol Error in Arbitration Phase */
  4143. #define FDCAN_IR_PED_Pos (28U)
  4144. #define FDCAN_IR_PED_Msk (0x1U << FDCAN_IR_PED_Pos) /*!< 0x10000000 */
  4145. #define FDCAN_IR_PED FDCAN_IR_PED_Msk /*!<Protocol Error in Data Phase */
  4146. #define FDCAN_IR_ARA_Pos (29U)
  4147. #define FDCAN_IR_ARA_Msk (0x1U << FDCAN_IR_ARA_Pos) /*!< 0x20000000 */
  4148. #define FDCAN_IR_ARA FDCAN_IR_ARA_Msk /*!<Access to Reserved Address */
  4149. /***************** Bit definition for FDCAN_IE register **********************/
  4150. #define FDCAN_IE_RF0NE_Pos (0U)
  4151. #define FDCAN_IE_RF0NE_Msk (0x1U << FDCAN_IE_RF0NE_Pos) /*!< 0x00000001 */
  4152. #define FDCAN_IE_RF0NE FDCAN_IE_RF0NE_Msk /*!<Rx FIFO 0 New Message Enable */
  4153. #define FDCAN_IE_RF0WE_Pos (1U)
  4154. #define FDCAN_IE_RF0WE_Msk (0x1U << FDCAN_IE_RF0WE_Pos) /*!< 0x00000002 */
  4155. #define FDCAN_IE_RF0WE FDCAN_IE_RF0WE_Msk /*!<Rx FIFO 0 Watermark Reached Enable */
  4156. #define FDCAN_IE_RF0FE_Pos (2U)
  4157. #define FDCAN_IE_RF0FE_Msk (0x1U << FDCAN_IE_RF0FE_Pos) /*!< 0x00000004 */
  4158. #define FDCAN_IE_RF0FE FDCAN_IE_RF0FE_Msk /*!<Rx FIFO 0 Full Enable */
  4159. #define FDCAN_IE_RF0LE_Pos (3U)
  4160. #define FDCAN_IE_RF0LE_Msk (0x1U << FDCAN_IE_RF0LE_Pos) /*!< 0x00000008 */
  4161. #define FDCAN_IE_RF0LE FDCAN_IE_RF0LE_Msk /*!<Rx FIFO 0 Message Lost Enable */
  4162. #define FDCAN_IE_RF1NE_Pos (4U)
  4163. #define FDCAN_IE_RF1NE_Msk (0x1U << FDCAN_IE_RF1NE_Pos) /*!< 0x00000010 */
  4164. #define FDCAN_IE_RF1NE FDCAN_IE_RF1NE_Msk /*!<Rx FIFO 1 New Message Enable */
  4165. #define FDCAN_IE_RF1WE_Pos (5U)
  4166. #define FDCAN_IE_RF1WE_Msk (0x1U << FDCAN_IE_RF1WE_Pos) /*!< 0x00000020 */
  4167. #define FDCAN_IE_RF1WE FDCAN_IE_RF1WE_Msk /*!<Rx FIFO 1 Watermark Reached Enable */
  4168. #define FDCAN_IE_RF1FE_Pos (6U)
  4169. #define FDCAN_IE_RF1FE_Msk (0x1U << FDCAN_IE_RF1FE_Pos) /*!< 0x00000040 */
  4170. #define FDCAN_IE_RF1FE FDCAN_IE_RF1FE_Msk /*!<Rx FIFO 1 Full Enable */
  4171. #define FDCAN_IE_RF1LE_Pos (7U)
  4172. #define FDCAN_IE_RF1LE_Msk (0x1U << FDCAN_IE_RF1LE_Pos) /*!< 0x00000080 */
  4173. #define FDCAN_IE_RF1LE FDCAN_IE_RF1LE_Msk /*!<Rx FIFO 1 Message Lost Enable */
  4174. #define FDCAN_IE_HPME_Pos (8U)
  4175. #define FDCAN_IE_HPME_Msk (0x1U << FDCAN_IE_HPME_Pos) /*!< 0x00000100 */
  4176. #define FDCAN_IE_HPME FDCAN_IE_HPME_Msk /*!<High Priority Message Enable */
  4177. #define FDCAN_IE_TCE_Pos (9U)
  4178. #define FDCAN_IE_TCE_Msk (0x1U << FDCAN_IE_TCE_Pos) /*!< 0x00000200 */
  4179. #define FDCAN_IE_TCE FDCAN_IE_TCE_Msk /*!<Transmission Completed Enable */
  4180. #define FDCAN_IE_TCFE_Pos (10U)
  4181. #define FDCAN_IE_TCFE_Msk (0x1U << FDCAN_IE_TCFE_Pos) /*!< 0x00000400 */
  4182. #define FDCAN_IE_TCFE FDCAN_IE_TCFE_Msk /*!<Transmission Cancellation Finished Enable */
  4183. #define FDCAN_IE_TFEE_Pos (11U)
  4184. #define FDCAN_IE_TFEE_Msk (0x1U << FDCAN_IE_TFEE_Pos) /*!< 0x00000800 */
  4185. #define FDCAN_IE_TFEE FDCAN_IE_TFEE_Msk /*!<Tx FIFO Empty Enable */
  4186. #define FDCAN_IE_TEFNE_Pos (12U)
  4187. #define FDCAN_IE_TEFNE_Msk (0x1U << FDCAN_IE_TEFNE_Pos) /*!< 0x00001000 */
  4188. #define FDCAN_IE_TEFNE FDCAN_IE_TEFNE_Msk /*!<Tx Event FIFO New Entry Enable */
  4189. #define FDCAN_IE_TEFWE_Pos (13U)
  4190. #define FDCAN_IE_TEFWE_Msk (0x1U << FDCAN_IE_TEFWE_Pos) /*!< 0x00002000 */
  4191. #define FDCAN_IE_TEFWE FDCAN_IE_TEFWE_Msk /*!<Tx Event FIFO Watermark Reached Enable */
  4192. #define FDCAN_IE_TEFFE_Pos (14U)
  4193. #define FDCAN_IE_TEFFE_Msk (0x1U << FDCAN_IE_TEFFE_Pos) /*!< 0x00004000 */
  4194. #define FDCAN_IE_TEFFE FDCAN_IE_TEFFE_Msk /*!<Tx Event FIFO Full Enable */
  4195. #define FDCAN_IE_TEFLE_Pos (15U)
  4196. #define FDCAN_IE_TEFLE_Msk (0x1U << FDCAN_IE_TEFLE_Pos) /*!< 0x00008000 */
  4197. #define FDCAN_IE_TEFLE FDCAN_IE_TEFLE_Msk /*!<Tx Event FIFO Element Lost Enable */
  4198. #define FDCAN_IE_TSWE_Pos (16U)
  4199. #define FDCAN_IE_TSWE_Msk (0x1U << FDCAN_IE_TSWE_Pos) /*!< 0x00010000 */
  4200. #define FDCAN_IE_TSWE FDCAN_IE_TSWE_Msk /*!<Timestamp Wraparound Enable */
  4201. #define FDCAN_IE_MRAFE_Pos (17U)
  4202. #define FDCAN_IE_MRAFE_Msk (0x1U << FDCAN_IE_MRAFE_Pos) /*!< 0x00020000 */
  4203. #define FDCAN_IE_MRAFE FDCAN_IE_MRAFE_Msk /*!<Message RAM Access Failure Enable */
  4204. #define FDCAN_IE_TOOE_Pos (18U)
  4205. #define FDCAN_IE_TOOE_Msk (0x1U << FDCAN_IE_TOOE_Pos) /*!< 0x00040000 */
  4206. #define FDCAN_IE_TOOE FDCAN_IE_TOOE_Msk /*!<Timeout Occurred Enable */
  4207. #define FDCAN_IE_DRXE_Pos (19U)
  4208. #define FDCAN_IE_DRXE_Msk (0x1U << FDCAN_IE_DRXE_Pos) /*!< 0x00080000 */
  4209. #define FDCAN_IE_DRXE FDCAN_IE_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Enable */
  4210. #define FDCAN_IE_BECE_Pos (20U)
  4211. #define FDCAN_IE_BECE_Msk (0x1U << FDCAN_IE_BECE_Pos) /*!< 0x00100000 */
  4212. #define FDCAN_IE_BECE FDCAN_IE_BECE_Msk /*!<Bit Error Corrected Interrupt Enable */
  4213. #define FDCAN_IE_BEUE_Pos (21U)
  4214. #define FDCAN_IE_BEUE_Msk (0x1U << FDCAN_IE_BEUE_Pos) /*!< 0x00200000 */
  4215. #define FDCAN_IE_BEUE FDCAN_IE_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Enable */
  4216. #define FDCAN_IE_ELOE_Pos (22U)
  4217. #define FDCAN_IE_ELOE_Msk (0x1U << FDCAN_IE_ELOE_Pos) /*!< 0x00400000 */
  4218. #define FDCAN_IE_ELOE FDCAN_IE_ELOE_Msk /*!<Error Logging Overflow Enable */
  4219. #define FDCAN_IE_EPE_Pos (23U)
  4220. #define FDCAN_IE_EPE_Msk (0x1U << FDCAN_IE_EPE_Pos) /*!< 0x00800000 */
  4221. #define FDCAN_IE_EPE FDCAN_IE_EPE_Msk /*!<Error Passive Enable */
  4222. #define FDCAN_IE_EWE_Pos (24U)
  4223. #define FDCAN_IE_EWE_Msk (0x1U << FDCAN_IE_EWE_Pos) /*!< 0x01000000 */
  4224. #define FDCAN_IE_EWE FDCAN_IE_EWE_Msk /*!<Warning Status Enable */
  4225. #define FDCAN_IE_BOE_Pos (25U)
  4226. #define FDCAN_IE_BOE_Msk (0x1U << FDCAN_IE_BOE_Pos) /*!< 0x02000000 */
  4227. #define FDCAN_IE_BOE FDCAN_IE_BOE_Msk /*!<Bus_Off Status Enable */
  4228. #define FDCAN_IE_WDIE_Pos (26U)
  4229. #define FDCAN_IE_WDIE_Msk (0x1U << FDCAN_IE_WDIE_Pos) /*!< 0x04000000 */
  4230. #define FDCAN_IE_WDIE FDCAN_IE_WDIE_Msk /*!<Watchdog Interrupt Enable */
  4231. #define FDCAN_IE_PEAE_Pos (27U)
  4232. #define FDCAN_IE_PEAE_Msk (0x1U << FDCAN_IE_PEAE_Pos) /*!< 0x08000000 */
  4233. #define FDCAN_IE_PEAE FDCAN_IE_PEAE_Msk /*!<Protocol Error in Arbitration Phase Enable */
  4234. #define FDCAN_IE_PEDE_Pos (28U)
  4235. #define FDCAN_IE_PEDE_Msk (0x1U << FDCAN_IE_PEDE_Pos) /*!< 0x10000000 */
  4236. #define FDCAN_IE_PEDE FDCAN_IE_PEDE_Msk /*!<Protocol Error in Data Phase Enable */
  4237. #define FDCAN_IE_ARAE_Pos (29U)
  4238. #define FDCAN_IE_ARAE_Msk (0x1U << FDCAN_IE_ARAE_Pos) /*!< 0x20000000 */
  4239. #define FDCAN_IE_ARAE FDCAN_IE_ARAE_Msk /*!<Access to Reserved Address Enable */
  4240. /***************** Bit definition for FDCAN_ILS register **********************/
  4241. #define FDCAN_ILS_RF0NL_Pos (0U)
  4242. #define FDCAN_ILS_RF0NL_Msk (0x1U << FDCAN_ILS_RF0NL_Pos) /*!< 0x00000001 */
  4243. #define FDCAN_ILS_RF0NL FDCAN_ILS_RF0NL_Msk /*!<Rx FIFO 0 New Message Line */
  4244. #define FDCAN_ILS_RF0WL_Pos (1U)
  4245. #define FDCAN_ILS_RF0WL_Msk (0x1U << FDCAN_ILS_RF0WL_Pos) /*!< 0x00000002 */
  4246. #define FDCAN_ILS_RF0WL FDCAN_ILS_RF0WL_Msk /*!<Rx FIFO 0 Watermark Reached Line */
  4247. #define FDCAN_ILS_RF0FL_Pos (2U)
  4248. #define FDCAN_ILS_RF0FL_Msk (0x1U << FDCAN_ILS_RF0FL_Pos) /*!< 0x00000004 */
  4249. #define FDCAN_ILS_RF0FL FDCAN_ILS_RF0FL_Msk /*!<Rx FIFO 0 Full Line */
  4250. #define FDCAN_ILS_RF0LL_Pos (3U)
  4251. #define FDCAN_ILS_RF0LL_Msk (0x1U << FDCAN_ILS_RF0LL_Pos) /*!< 0x00000008 */
  4252. #define FDCAN_ILS_RF0LL FDCAN_ILS_RF0LL_Msk /*!<Rx FIFO 0 Message Lost Line */
  4253. #define FDCAN_ILS_RF1NL_Pos (4U)
  4254. #define FDCAN_ILS_RF1NL_Msk (0x1U << FDCAN_ILS_RF1NL_Pos) /*!< 0x00000010 */
  4255. #define FDCAN_ILS_RF1NL FDCAN_ILS_RF1NL_Msk /*!<Rx FIFO 1 New Message Line */
  4256. #define FDCAN_ILS_RF1WL_Pos (5U)
  4257. #define FDCAN_ILS_RF1WL_Msk (0x1U << FDCAN_ILS_RF1WL_Pos) /*!< 0x00000020 */
  4258. #define FDCAN_ILS_RF1WL FDCAN_ILS_RF1WL_Msk /*!<Rx FIFO 1 Watermark Reached Line */
  4259. #define FDCAN_ILS_RF1FL_Pos (6U)
  4260. #define FDCAN_ILS_RF1FL_Msk (0x1U << FDCAN_ILS_RF1FL_Pos) /*!< 0x00000040 */
  4261. #define FDCAN_ILS_RF1FL FDCAN_ILS_RF1FL_Msk /*!<Rx FIFO 1 Full Line */
  4262. #define FDCAN_ILS_RF1LL_Pos (7U)
  4263. #define FDCAN_ILS_RF1LL_Msk (0x1U << FDCAN_ILS_RF1LL_Pos) /*!< 0x00000080 */
  4264. #define FDCAN_ILS_RF1LL FDCAN_ILS_RF1LL_Msk /*!<Rx FIFO 1 Message Lost Line */
  4265. #define FDCAN_ILS_HPML_Pos (8U)
  4266. #define FDCAN_ILS_HPML_Msk (0x1U << FDCAN_ILS_HPML_Pos) /*!< 0x00000100 */
  4267. #define FDCAN_ILS_HPML FDCAN_ILS_HPML_Msk /*!<High Priority Message Line */
  4268. #define FDCAN_ILS_TCL_Pos (9U)
  4269. #define FDCAN_ILS_TCL_Msk (0x1U << FDCAN_ILS_TCL_Pos) /*!< 0x00000200 */
  4270. #define FDCAN_ILS_TCL FDCAN_ILS_TCL_Msk /*!<Transmission Completed Line */
  4271. #define FDCAN_ILS_TCFL_Pos (10U)
  4272. #define FDCAN_ILS_TCFL_Msk (0x1U << FDCAN_ILS_TCFL_Pos) /*!< 0x00000400 */
  4273. #define FDCAN_ILS_TCFL FDCAN_ILS_TCFL_Msk /*!<Transmission Cancellation Finished Line */
  4274. #define FDCAN_ILS_TFEL_Pos (11U)
  4275. #define FDCAN_ILS_TFEL_Msk (0x1U << FDCAN_ILS_TFEL_Pos) /*!< 0x00000800 */
  4276. #define FDCAN_ILS_TFEL FDCAN_ILS_TFEL_Msk /*!<Tx FIFO Empty Line */
  4277. #define FDCAN_ILS_TEFNL_Pos (12U)
  4278. #define FDCAN_ILS_TEFNL_Msk (0x1U << FDCAN_ILS_TEFNL_Pos) /*!< 0x00001000 */
  4279. #define FDCAN_ILS_TEFNL FDCAN_ILS_TEFNL_Msk /*!<Tx Event FIFO New Entry Line */
  4280. #define FDCAN_ILS_TEFWL_Pos (13U)
  4281. #define FDCAN_ILS_TEFWL_Msk (0x1U << FDCAN_ILS_TEFWL_Pos) /*!< 0x00002000 */
  4282. #define FDCAN_ILS_TEFWL FDCAN_ILS_TEFWL_Msk /*!<Tx Event FIFO Watermark Reached Line */
  4283. #define FDCAN_ILS_TEFFL_Pos (14U)
  4284. #define FDCAN_ILS_TEFFL_Msk (0x1U << FDCAN_ILS_TEFFL_Pos) /*!< 0x00004000 */
  4285. #define FDCAN_ILS_TEFFL FDCAN_ILS_TEFFL_Msk /*!<Tx Event FIFO Full Line */
  4286. #define FDCAN_ILS_TEFLL_Pos (15U)
  4287. #define FDCAN_ILS_TEFLL_Msk (0x1U << FDCAN_ILS_TEFLL_Pos) /*!< 0x00008000 */
  4288. #define FDCAN_ILS_TEFLL FDCAN_ILS_TEFLL_Msk /*!<Tx Event FIFO Element Lost Line */
  4289. #define FDCAN_ILS_TSWL_Pos (16U)
  4290. #define FDCAN_ILS_TSWL_Msk (0x1U << FDCAN_ILS_TSWL_Pos) /*!< 0x00010000 */
  4291. #define FDCAN_ILS_TSWL FDCAN_ILS_TSWL_Msk /*!<Timestamp Wraparound Line */
  4292. #define FDCAN_ILS_MRAFE_Pos (17U)
  4293. #define FDCAN_ILS_MRAFE_Msk (0x1U << FDCAN_ILS_MRAFE_Pos) /*!< 0x00020000 */
  4294. #define FDCAN_ILS_MRAFE FDCAN_ILS_MRAFE_Msk /*!<Message RAM Access Failure Line */
  4295. #define FDCAN_ILS_TOOE_Pos (18U)
  4296. #define FDCAN_ILS_TOOE_Msk (0x1U << FDCAN_ILS_TOOE_Pos) /*!< 0x00040000 */
  4297. #define FDCAN_ILS_TOOE FDCAN_ILS_TOOE_Msk /*!<Timeout Occurred Line */
  4298. #define FDCAN_ILS_DRXE_Pos (19U)
  4299. #define FDCAN_ILS_DRXE_Msk (0x1U << FDCAN_ILS_DRXE_Pos) /*!< 0x00080000 */
  4300. #define FDCAN_ILS_DRXE FDCAN_ILS_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Line */
  4301. #define FDCAN_ILS_BECE_Pos (20U)
  4302. #define FDCAN_ILS_BECE_Msk (0x1U << FDCAN_ILS_BECE_Pos) /*!< 0x00100000 */
  4303. #define FDCAN_ILS_BECE FDCAN_ILS_BECE_Msk /*!<Bit Error Corrected Interrupt Line */
  4304. #define FDCAN_ILS_BEUE_Pos (21U)
  4305. #define FDCAN_ILS_BEUE_Msk (0x1U << FDCAN_ILS_BEUE_Pos) /*!< 0x00200000 */
  4306. #define FDCAN_ILS_BEUE FDCAN_ILS_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Line */
  4307. #define FDCAN_ILS_ELOE_Pos (22U)
  4308. #define FDCAN_ILS_ELOE_Msk (0x1U << FDCAN_ILS_ELOE_Pos) /*!< 0x00400000 */
  4309. #define FDCAN_ILS_ELOE FDCAN_ILS_ELOE_Msk /*!<Error Logging Overflow Line */
  4310. #define FDCAN_ILS_EPE_Pos (23U)
  4311. #define FDCAN_ILS_EPE_Msk (0x1U << FDCAN_ILS_EPE_Pos) /*!< 0x00800000 */
  4312. #define FDCAN_ILS_EPE FDCAN_ILS_EPE_Msk /*!<Error Passive Line */
  4313. #define FDCAN_ILS_EWE_Pos (24U)
  4314. #define FDCAN_ILS_EWE_Msk (0x1U << FDCAN_ILS_EWE_Pos) /*!< 0x01000000 */
  4315. #define FDCAN_ILS_EWE FDCAN_ILS_EWE_Msk /*!<Warning Status Line */
  4316. #define FDCAN_ILS_BOE_Pos (25U)
  4317. #define FDCAN_ILS_BOE_Msk (0x1U << FDCAN_ILS_BOE_Pos) /*!< 0x02000000 */
  4318. #define FDCAN_ILS_BOE FDCAN_ILS_BOE_Msk /*!<Bus_Off Status Line */
  4319. #define FDCAN_ILS_WDIE_Pos (26U)
  4320. #define FDCAN_ILS_WDIE_Msk (0x1U << FDCAN_ILS_WDIE_Pos) /*!< 0x04000000 */
  4321. #define FDCAN_ILS_WDIE FDCAN_ILS_WDIE_Msk /*!<Watchdog Interrupt Line */
  4322. #define FDCAN_ILS_PEAE_Pos (27U)
  4323. #define FDCAN_ILS_PEAE_Msk (0x1U << FDCAN_ILS_PEAE_Pos) /*!< 0x08000000 */
  4324. #define FDCAN_ILS_PEAE FDCAN_ILS_PEAE_Msk /*!<Protocol Error in Arbitration Phase Line */
  4325. #define FDCAN_ILS_PEDE_Pos (28U)
  4326. #define FDCAN_ILS_PEDE_Msk (0x1U << FDCAN_ILS_PEDE_Pos) /*!< 0x10000000 */
  4327. #define FDCAN_ILS_PEDE FDCAN_ILS_PEDE_Msk /*!<Protocol Error in Data Phase Line */
  4328. #define FDCAN_ILS_ARAE_Pos (29U)
  4329. #define FDCAN_ILS_ARAE_Msk (0x1U << FDCAN_ILS_ARAE_Pos) /*!< 0x20000000 */
  4330. #define FDCAN_ILS_ARAE FDCAN_ILS_ARAE_Msk /*!<Access to Reserved Address Line */
  4331. /***************** Bit definition for FDCAN_ILE register **********************/
  4332. #define FDCAN_ILE_EINT0_Pos (0U)
  4333. #define FDCAN_ILE_EINT0_Msk (0x1U << FDCAN_ILE_EINT0_Pos) /*!< 0x00000001 */
  4334. #define FDCAN_ILE_EINT0 FDCAN_ILE_EINT0_Msk /*!<Enable Interrupt Line 0 */
  4335. #define FDCAN_ILE_EINT1_Pos (1U)
  4336. #define FDCAN_ILE_EINT1_Msk (0x1U << FDCAN_ILE_EINT1_Pos) /*!< 0x00000002 */
  4337. #define FDCAN_ILE_EINT1 FDCAN_ILE_EINT1_Msk /*!<Enable Interrupt Line 1 */
  4338. /***************** Bit definition for FDCAN_GFC register **********************/
  4339. #define FDCAN_GFC_RRFE_Pos (0U)
  4340. #define FDCAN_GFC_RRFE_Msk (0x1U << FDCAN_GFC_RRFE_Pos) /*!< 0x00000001 */
  4341. #define FDCAN_GFC_RRFE FDCAN_GFC_RRFE_Msk /*!<Reject Remote Frames Extended */
  4342. #define FDCAN_GFC_RRFS_Pos (1U)
  4343. #define FDCAN_GFC_RRFS_Msk (0x1U << FDCAN_GFC_RRFS_Pos) /*!< 0x00000002 */
  4344. #define FDCAN_GFC_RRFS FDCAN_GFC_RRFS_Msk /*!<Reject Remote Frames Standard */
  4345. #define FDCAN_GFC_ANFE_Pos (2U)
  4346. #define FDCAN_GFC_ANFE_Msk (0x3U << FDCAN_GFC_ANFE_Pos) /*!< 0x0000000C */
  4347. #define FDCAN_GFC_ANFE FDCAN_GFC_ANFE_Msk /*!<Accept Non-matching Frames Extended */
  4348. #define FDCAN_GFC_ANFS_Pos (4U)
  4349. #define FDCAN_GFC_ANFS_Msk (0x3U << FDCAN_GFC_ANFS_Pos) /*!< 0x00000030 */
  4350. #define FDCAN_GFC_ANFS FDCAN_GFC_ANFS_Msk /*!<Accept Non-matching Frames Standard */
  4351. /***************** Bit definition for FDCAN_SIDFC register ********************/
  4352. #define FDCAN_SIDFC_FLSSA_Pos (2U)
  4353. #define FDCAN_SIDFC_FLSSA_Msk (0x3FFFU << FDCAN_SIDFC_FLSSA_Pos) /*!< 0x0000FFFC */
  4354. #define FDCAN_SIDFC_FLSSA FDCAN_SIDFC_FLSSA_Msk /*!<Filter List Standard Start Address */
  4355. #define FDCAN_SIDFC_LSS_Pos (16U)
  4356. #define FDCAN_SIDFC_LSS_Msk (0xFFU << FDCAN_SIDFC_LSS_Pos) /*!< 0x00FF0000 */
  4357. #define FDCAN_SIDFC_LSS FDCAN_SIDFC_LSS_Msk /*!<List Size Standard */
  4358. /***************** Bit definition for FDCAN_XIDFC register ********************/
  4359. #define FDCAN_XIDFC_FLESA_Pos (2U)
  4360. #define FDCAN_XIDFC_FLESA_Msk (0x3FFFU << FDCAN_XIDFC_FLESA_Pos) /*!< 0x0000FFFC */
  4361. #define FDCAN_XIDFC_FLESA FDCAN_XIDFC_FLESA_Msk /*!<Filter List Standard Start Address */
  4362. #define FDCAN_XIDFC_LSE_Pos (16U)
  4363. #define FDCAN_XIDFC_LSE_Msk (0xFFU << FDCAN_XIDFC_LSE_Pos) /*!< 0x00FF0000 */
  4364. #define FDCAN_XIDFC_LSE FDCAN_XIDFC_LSE_Msk /*!<List Size Extended */
  4365. /***************** Bit definition for FDCAN_XIDAM register ********************/
  4366. #define FDCAN_XIDAM_EIDM_Pos (0U)
  4367. #define FDCAN_XIDAM_EIDM_Msk (0x1FFFFFFFU << FDCAN_XIDAM_EIDM_Pos) /*!< 0x1FFFFFFF */
  4368. #define FDCAN_XIDAM_EIDM FDCAN_XIDAM_EIDM_Msk /*!<Extended ID Mask */
  4369. /***************** Bit definition for FDCAN_HPMS register *********************/
  4370. #define FDCAN_HPMS_BIDX_Pos (0U)
  4371. #define FDCAN_HPMS_BIDX_Msk (0x3FU << FDCAN_HPMS_BIDX_Pos) /*!< 0x0000003F */
  4372. #define FDCAN_HPMS_BIDX FDCAN_HPMS_BIDX_Msk /*!<Buffer Index */
  4373. #define FDCAN_HPMS_MSI_Pos (6U)
  4374. #define FDCAN_HPMS_MSI_Msk (0x3U << FDCAN_HPMS_MSI_Pos) /*!< 0x000000C0 */
  4375. #define FDCAN_HPMS_MSI FDCAN_HPMS_MSI_Msk /*!<Message Storage Indicator */
  4376. #define FDCAN_HPMS_FIDX_Pos (8U)
  4377. #define FDCAN_HPMS_FIDX_Msk (0x7FU << FDCAN_HPMS_FIDX_Pos) /*!< 0x00007F00 */
  4378. #define FDCAN_HPMS_FIDX FDCAN_HPMS_FIDX_Msk /*!<Filter Index */
  4379. #define FDCAN_HPMS_FLST_Pos (15U)
  4380. #define FDCAN_HPMS_FLST_Msk (0x1U << FDCAN_HPMS_FLST_Pos) /*!< 0x00008000 */
  4381. #define FDCAN_HPMS_FLST FDCAN_HPMS_FLST_Msk /*!<Filter List */
  4382. /***************** Bit definition for FDCAN_NDAT1 register ********************/
  4383. #define FDCAN_NDAT1_ND0_Pos (0U)
  4384. #define FDCAN_NDAT1_ND0_Msk (0x1U << FDCAN_NDAT1_ND0_Pos) /*!< 0x00000001 */
  4385. #define FDCAN_NDAT1_ND0 FDCAN_NDAT1_ND0_Msk /*!<New Data flag of Rx Buffer 0 */
  4386. #define FDCAN_NDAT1_ND1_Pos (1U)
  4387. #define FDCAN_NDAT1_ND1_Msk (0x1U << FDCAN_NDAT1_ND1_Pos) /*!< 0x00000002 */
  4388. #define FDCAN_NDAT1_ND1 FDCAN_NDAT1_ND1_Msk /*!<New Data flag of Rx Buffer 1 */
  4389. #define FDCAN_NDAT1_ND2_Pos (2U)
  4390. #define FDCAN_NDAT1_ND2_Msk (0x1U << FDCAN_NDAT1_ND2_Pos) /*!< 0x00000004 */
  4391. #define FDCAN_NDAT1_ND2 FDCAN_NDAT1_ND2_Msk /*!<New Data flag of Rx Buffer 2 */
  4392. #define FDCAN_NDAT1_ND3_Pos (3U)
  4393. #define FDCAN_NDAT1_ND3_Msk (0x1U << FDCAN_NDAT1_ND3_Pos) /*!< 0x00000008 */
  4394. #define FDCAN_NDAT1_ND3 FDCAN_NDAT1_ND3_Msk /*!<New Data flag of Rx Buffer 3 */
  4395. #define FDCAN_NDAT1_ND4_Pos (4U)
  4396. #define FDCAN_NDAT1_ND4_Msk (0x1U << FDCAN_NDAT1_ND4_Pos) /*!< 0x00000010 */
  4397. #define FDCAN_NDAT1_ND4 FDCAN_NDAT1_ND4_Msk /*!<New Data flag of Rx Buffer 4 */
  4398. #define FDCAN_NDAT1_ND5_Pos (5U)
  4399. #define FDCAN_NDAT1_ND5_Msk (0x1U << FDCAN_NDAT1_ND5_Pos) /*!< 0x00000020 */
  4400. #define FDCAN_NDAT1_ND5 FDCAN_NDAT1_ND5_Msk /*!<New Data flag of Rx Buffer 5 */
  4401. #define FDCAN_NDAT1_ND6_Pos (6U)
  4402. #define FDCAN_NDAT1_ND6_Msk (0x1U << FDCAN_NDAT1_ND6_Pos) /*!< 0x00000040 */
  4403. #define FDCAN_NDAT1_ND6 FDCAN_NDAT1_ND6_Msk /*!<New Data flag of Rx Buffer 6 */
  4404. #define FDCAN_NDAT1_ND7_Pos (7U)
  4405. #define FDCAN_NDAT1_ND7_Msk (0x1U << FDCAN_NDAT1_ND7_Pos) /*!< 0x00000080 */
  4406. #define FDCAN_NDAT1_ND7 FDCAN_NDAT1_ND7_Msk /*!<New Data flag of Rx Buffer 7 */
  4407. #define FDCAN_NDAT1_ND8_Pos (8U)
  4408. #define FDCAN_NDAT1_ND8_Msk (0x1U << FDCAN_NDAT1_ND8_Pos) /*!< 0x00000100 */
  4409. #define FDCAN_NDAT1_ND8 FDCAN_NDAT1_ND8_Msk /*!<New Data flag of Rx Buffer 8 */
  4410. #define FDCAN_NDAT1_ND9_Pos (9U)
  4411. #define FDCAN_NDAT1_ND9_Msk (0x1U << FDCAN_NDAT1_ND9_Pos) /*!< 0x00000200 */
  4412. #define FDCAN_NDAT1_ND9 FDCAN_NDAT1_ND9_Msk /*!<New Data flag of Rx Buffer 9 */
  4413. #define FDCAN_NDAT1_ND10_Pos (10U)
  4414. #define FDCAN_NDAT1_ND10_Msk (0x1U << FDCAN_NDAT1_ND10_Pos) /*!< 0x00000400 */
  4415. #define FDCAN_NDAT1_ND10 FDCAN_NDAT1_ND10_Msk /*!<New Data flag of Rx Buffer 10 */
  4416. #define FDCAN_NDAT1_ND11_Pos (11U)
  4417. #define FDCAN_NDAT1_ND11_Msk (0x1U << FDCAN_NDAT1_ND11_Pos) /*!< 0x00000800 */
  4418. #define FDCAN_NDAT1_ND11 FDCAN_NDAT1_ND11_Msk /*!<New Data flag of Rx Buffer 11 */
  4419. #define FDCAN_NDAT1_ND12_Pos (12U)
  4420. #define FDCAN_NDAT1_ND12_Msk (0x1U << FDCAN_NDAT1_ND12_Pos) /*!< 0x00001000 */
  4421. #define FDCAN_NDAT1_ND12 FDCAN_NDAT1_ND12_Msk /*!<New Data flag of Rx Buffer 12 */
  4422. #define FDCAN_NDAT1_ND13_Pos (13U)
  4423. #define FDCAN_NDAT1_ND13_Msk (0x1U << FDCAN_NDAT1_ND13_Pos) /*!< 0x00002000 */
  4424. #define FDCAN_NDAT1_ND13 FDCAN_NDAT1_ND13_Msk /*!<New Data flag of Rx Buffer 13 */
  4425. #define FDCAN_NDAT1_ND14_Pos (14U)
  4426. #define FDCAN_NDAT1_ND14_Msk (0x1U << FDCAN_NDAT1_ND14_Pos) /*!< 0x00004000 */
  4427. #define FDCAN_NDAT1_ND14 FDCAN_NDAT1_ND14_Msk /*!<New Data flag of Rx Buffer 14 */
  4428. #define FDCAN_NDAT1_ND15_Pos (15U)
  4429. #define FDCAN_NDAT1_ND15_Msk (0x1U << FDCAN_NDAT1_ND15_Pos) /*!< 0x00008000 */
  4430. #define FDCAN_NDAT1_ND15 FDCAN_NDAT1_ND15_Msk /*!<New Data flag of Rx Buffer 15 */
  4431. #define FDCAN_NDAT1_ND16_Pos (16U)
  4432. #define FDCAN_NDAT1_ND16_Msk (0x1U << FDCAN_NDAT1_ND16_Pos) /*!< 0x00010000 */
  4433. #define FDCAN_NDAT1_ND16 FDCAN_NDAT1_ND16_Msk /*!<New Data flag of Rx Buffer 16 */
  4434. #define FDCAN_NDAT1_ND17_Pos (17U)
  4435. #define FDCAN_NDAT1_ND17_Msk (0x1U << FDCAN_NDAT1_ND17_Pos) /*!< 0x00020000 */
  4436. #define FDCAN_NDAT1_ND17 FDCAN_NDAT1_ND17_Msk /*!<New Data flag of Rx Buffer 17 */
  4437. #define FDCAN_NDAT1_ND18_Pos (18U)
  4438. #define FDCAN_NDAT1_ND18_Msk (0x1U << FDCAN_NDAT1_ND18_Pos) /*!< 0x00040000 */
  4439. #define FDCAN_NDAT1_ND18 FDCAN_NDAT1_ND18_Msk /*!<New Data flag of Rx Buffer 18 */
  4440. #define FDCAN_NDAT1_ND19_Pos (19U)
  4441. #define FDCAN_NDAT1_ND19_Msk (0x1U << FDCAN_NDAT1_ND19_Pos) /*!< 0x00080000 */
  4442. #define FDCAN_NDAT1_ND19 FDCAN_NDAT1_ND19_Msk /*!<New Data flag of Rx Buffer 19 */
  4443. #define FDCAN_NDAT1_ND20_Pos (20U)
  4444. #define FDCAN_NDAT1_ND20_Msk (0x1U << FDCAN_NDAT1_ND20_Pos) /*!< 0x00100000 */
  4445. #define FDCAN_NDAT1_ND20 FDCAN_NDAT1_ND20_Msk /*!<New Data flag of Rx Buffer 20 */
  4446. #define FDCAN_NDAT1_ND21_Pos (21U)
  4447. #define FDCAN_NDAT1_ND21_Msk (0x1U << FDCAN_NDAT1_ND21_Pos) /*!< 0x00200000 */
  4448. #define FDCAN_NDAT1_ND21 FDCAN_NDAT1_ND21_Msk /*!<New Data flag of Rx Buffer 21 */
  4449. #define FDCAN_NDAT1_ND22_Pos (22U)
  4450. #define FDCAN_NDAT1_ND22_Msk (0x1U << FDCAN_NDAT1_ND22_Pos) /*!< 0x00400000 */
  4451. #define FDCAN_NDAT1_ND22 FDCAN_NDAT1_ND22_Msk /*!<New Data flag of Rx Buffer 22 */
  4452. #define FDCAN_NDAT1_ND23_Pos (23U)
  4453. #define FDCAN_NDAT1_ND23_Msk (0x1U << FDCAN_NDAT1_ND23_Pos) /*!< 0x00800000 */
  4454. #define FDCAN_NDAT1_ND23 FDCAN_NDAT1_ND23_Msk /*!<New Data flag of Rx Buffer 23 */
  4455. #define FDCAN_NDAT1_ND24_Pos (24U)
  4456. #define FDCAN_NDAT1_ND24_Msk (0x1U << FDCAN_NDAT1_ND24_Pos) /*!< 0x01000000 */
  4457. #define FDCAN_NDAT1_ND24 FDCAN_NDAT1_ND24_Msk /*!<New Data flag of Rx Buffer 24 */
  4458. #define FDCAN_NDAT1_ND25_Pos (25U)
  4459. #define FDCAN_NDAT1_ND25_Msk (0x1U << FDCAN_NDAT1_ND25_Pos) /*!< 0x02000000 */
  4460. #define FDCAN_NDAT1_ND25 FDCAN_NDAT1_ND25_Msk /*!<New Data flag of Rx Buffer 25 */
  4461. #define FDCAN_NDAT1_ND26_Pos (26U)
  4462. #define FDCAN_NDAT1_ND26_Msk (0x1U << FDCAN_NDAT1_ND26_Pos) /*!< 0x04000000 */
  4463. #define FDCAN_NDAT1_ND26 FDCAN_NDAT1_ND26_Msk /*!<New Data flag of Rx Buffer 26 */
  4464. #define FDCAN_NDAT1_ND27_Pos (27U)
  4465. #define FDCAN_NDAT1_ND27_Msk (0x1U << FDCAN_NDAT1_ND27_Pos) /*!< 0x08000000 */
  4466. #define FDCAN_NDAT1_ND27 FDCAN_NDAT1_ND27_Msk /*!<New Data flag of Rx Buffer 27 */
  4467. #define FDCAN_NDAT1_ND28_Pos (28U)
  4468. #define FDCAN_NDAT1_ND28_Msk (0x1U << FDCAN_NDAT1_ND28_Pos) /*!< 0x10000000 */
  4469. #define FDCAN_NDAT1_ND28 FDCAN_NDAT1_ND28_Msk /*!<New Data flag of Rx Buffer 28 */
  4470. #define FDCAN_NDAT1_ND29_Pos (29U)
  4471. #define FDCAN_NDAT1_ND29_Msk (0x1U << FDCAN_NDAT1_ND29_Pos) /*!< 0x20000000 */
  4472. #define FDCAN_NDAT1_ND29 FDCAN_NDAT1_ND29_Msk /*!<New Data flag of Rx Buffer 29 */
  4473. #define FDCAN_NDAT1_ND30_Pos (30U)
  4474. #define FDCAN_NDAT1_ND30_Msk (0x1U << FDCAN_NDAT1_ND30_Pos) /*!< 0x40000000 */
  4475. #define FDCAN_NDAT1_ND30 FDCAN_NDAT1_ND30_Msk /*!<New Data flag of Rx Buffer 30 */
  4476. #define FDCAN_NDAT1_ND31_Pos (31U)
  4477. #define FDCAN_NDAT1_ND31_Msk (0x1U << FDCAN_NDAT1_ND31_Pos) /*!< 0x80000000 */
  4478. #define FDCAN_NDAT1_ND31 FDCAN_NDAT1_ND31_Msk /*!<New Data flag of Rx Buffer 31 */
  4479. /***************** Bit definition for FDCAN_NDAT2 register ********************/
  4480. #define FDCAN_NDAT2_ND32_Pos (0U)
  4481. #define FDCAN_NDAT2_ND32_Msk (0x1U << FDCAN_NDAT2_ND32_Pos) /*!< 0x00000001 */
  4482. #define FDCAN_NDAT2_ND32 FDCAN_NDAT2_ND32_Msk /*!<New Data flag of Rx Buffer 32 */
  4483. #define FDCAN_NDAT2_ND33_Pos (1U)
  4484. #define FDCAN_NDAT2_ND33_Msk (0x1U << FDCAN_NDAT2_ND33_Pos) /*!< 0x00000002 */
  4485. #define FDCAN_NDAT2_ND33 FDCAN_NDAT2_ND33_Msk /*!<New Data flag of Rx Buffer 33 */
  4486. #define FDCAN_NDAT2_ND34_Pos (2U)
  4487. #define FDCAN_NDAT2_ND34_Msk (0x1U << FDCAN_NDAT2_ND34_Pos) /*!< 0x00000004 */
  4488. #define FDCAN_NDAT2_ND34 FDCAN_NDAT2_ND34_Msk /*!<New Data flag of Rx Buffer 34 */
  4489. #define FDCAN_NDAT2_ND35_Pos (3U)
  4490. #define FDCAN_NDAT2_ND35_Msk (0x1U << FDCAN_NDAT2_ND35_Pos) /*!< 0x00000008 */
  4491. #define FDCAN_NDAT2_ND35 FDCAN_NDAT2_ND35_Msk /*!<New Data flag of Rx Buffer 35 */
  4492. #define FDCAN_NDAT2_ND36_Pos (4U)
  4493. #define FDCAN_NDAT2_ND36_Msk (0x1U << FDCAN_NDAT2_ND36_Pos) /*!< 0x00000010 */
  4494. #define FDCAN_NDAT2_ND36 FDCAN_NDAT2_ND36_Msk /*!<New Data flag of Rx Buffer 36 */
  4495. #define FDCAN_NDAT2_ND37_Pos (5U)
  4496. #define FDCAN_NDAT2_ND37_Msk (0x1U << FDCAN_NDAT2_ND37_Pos) /*!< 0x00000020 */
  4497. #define FDCAN_NDAT2_ND37 FDCAN_NDAT2_ND37_Msk /*!<New Data flag of Rx Buffer 37 */
  4498. #define FDCAN_NDAT2_ND38_Pos (6U)
  4499. #define FDCAN_NDAT2_ND38_Msk (0x1U << FDCAN_NDAT2_ND38_Pos) /*!< 0x00000040 */
  4500. #define FDCAN_NDAT2_ND38 FDCAN_NDAT2_ND38_Msk /*!<New Data flag of Rx Buffer 38 */
  4501. #define FDCAN_NDAT2_ND39_Pos (7U)
  4502. #define FDCAN_NDAT2_ND39_Msk (0x1U << FDCAN_NDAT2_ND39_Pos) /*!< 0x00000080 */
  4503. #define FDCAN_NDAT2_ND39 FDCAN_NDAT2_ND39_Msk /*!<New Data flag of Rx Buffer 39 */
  4504. #define FDCAN_NDAT2_ND40_Pos (8U)
  4505. #define FDCAN_NDAT2_ND40_Msk (0x1U << FDCAN_NDAT2_ND40_Pos) /*!< 0x00000100 */
  4506. #define FDCAN_NDAT2_ND40 FDCAN_NDAT2_ND40_Msk /*!<New Data flag of Rx Buffer 40 */
  4507. #define FDCAN_NDAT2_ND41_Pos (9U)
  4508. #define FDCAN_NDAT2_ND41_Msk (0x1U << FDCAN_NDAT2_ND41_Pos) /*!< 0x00000200 */
  4509. #define FDCAN_NDAT2_ND41 FDCAN_NDAT2_ND41_Msk /*!<New Data flag of Rx Buffer 41 */
  4510. #define FDCAN_NDAT2_ND42_Pos (10U)
  4511. #define FDCAN_NDAT2_ND42_Msk (0x1U << FDCAN_NDAT2_ND42_Pos) /*!< 0x00000400 */
  4512. #define FDCAN_NDAT2_ND42 FDCAN_NDAT2_ND42_Msk /*!<New Data flag of Rx Buffer 42 */
  4513. #define FDCAN_NDAT2_ND43_Pos (11U)
  4514. #define FDCAN_NDAT2_ND43_Msk (0x1U << FDCAN_NDAT2_ND43_Pos) /*!< 0x00000800 */
  4515. #define FDCAN_NDAT2_ND43 FDCAN_NDAT2_ND43_Msk /*!<New Data flag of Rx Buffer 43 */
  4516. #define FDCAN_NDAT2_ND44_Pos (12U)
  4517. #define FDCAN_NDAT2_ND44_Msk (0x1U << FDCAN_NDAT2_ND44_Pos) /*!< 0x00001000 */
  4518. #define FDCAN_NDAT2_ND44 FDCAN_NDAT2_ND44_Msk /*!<New Data flag of Rx Buffer 44 */
  4519. #define FDCAN_NDAT2_ND45_Pos (13U)
  4520. #define FDCAN_NDAT2_ND45_Msk (0x1U << FDCAN_NDAT2_ND45_Pos) /*!< 0x00002000 */
  4521. #define FDCAN_NDAT2_ND45 FDCAN_NDAT2_ND45_Msk /*!<New Data flag of Rx Buffer 45 */
  4522. #define FDCAN_NDAT2_ND46_Pos (14U)
  4523. #define FDCAN_NDAT2_ND46_Msk (0x1U << FDCAN_NDAT2_ND46_Pos) /*!< 0x00004000 */
  4524. #define FDCAN_NDAT2_ND46 FDCAN_NDAT2_ND46_Msk /*!<New Data flag of Rx Buffer 46 */
  4525. #define FDCAN_NDAT2_ND47_Pos (15U)
  4526. #define FDCAN_NDAT2_ND47_Msk (0x1U << FDCAN_NDAT2_ND47_Pos) /*!< 0x00008000 */
  4527. #define FDCAN_NDAT2_ND47 FDCAN_NDAT2_ND47_Msk /*!<New Data flag of Rx Buffer 47 */
  4528. #define FDCAN_NDAT2_ND48_Pos (16U)
  4529. #define FDCAN_NDAT2_ND48_Msk (0x1U << FDCAN_NDAT2_ND48_Pos) /*!< 0x00010000 */
  4530. #define FDCAN_NDAT2_ND48 FDCAN_NDAT2_ND48_Msk /*!<New Data flag of Rx Buffer 48 */
  4531. #define FDCAN_NDAT2_ND49_Pos (17U)
  4532. #define FDCAN_NDAT2_ND49_Msk (0x1U << FDCAN_NDAT2_ND49_Pos) /*!< 0x00020000 */
  4533. #define FDCAN_NDAT2_ND49 FDCAN_NDAT2_ND49_Msk /*!<New Data flag of Rx Buffer 49 */
  4534. #define FDCAN_NDAT2_ND50_Pos (18U)
  4535. #define FDCAN_NDAT2_ND50_Msk (0x1U << FDCAN_NDAT2_ND50_Pos) /*!< 0x00040000 */
  4536. #define FDCAN_NDAT2_ND50 FDCAN_NDAT2_ND50_Msk /*!<New Data flag of Rx Buffer 50 */
  4537. #define FDCAN_NDAT2_ND51_Pos (19U)
  4538. #define FDCAN_NDAT2_ND51_Msk (0x1U << FDCAN_NDAT2_ND51_Pos) /*!< 0x00080000 */
  4539. #define FDCAN_NDAT2_ND51 FDCAN_NDAT2_ND51_Msk /*!<New Data flag of Rx Buffer 51 */
  4540. #define FDCAN_NDAT2_ND52_Pos (20U)
  4541. #define FDCAN_NDAT2_ND52_Msk (0x1U << FDCAN_NDAT2_ND52_Pos) /*!< 0x00100000 */
  4542. #define FDCAN_NDAT2_ND52 FDCAN_NDAT2_ND52_Msk /*!<New Data flag of Rx Buffer 52 */
  4543. #define FDCAN_NDAT2_ND53_Pos (21U)
  4544. #define FDCAN_NDAT2_ND53_Msk (0x1U << FDCAN_NDAT2_ND53_Pos) /*!< 0x00200000 */
  4545. #define FDCAN_NDAT2_ND53 FDCAN_NDAT2_ND53_Msk /*!<New Data flag of Rx Buffer 53 */
  4546. #define FDCAN_NDAT2_ND54_Pos (22U)
  4547. #define FDCAN_NDAT2_ND54_Msk (0x1U << FDCAN_NDAT2_ND54_Pos) /*!< 0x00400000 */
  4548. #define FDCAN_NDAT2_ND54 FDCAN_NDAT2_ND54_Msk /*!<New Data flag of Rx Buffer 54 */
  4549. #define FDCAN_NDAT2_ND55_Pos (23U)
  4550. #define FDCAN_NDAT2_ND55_Msk (0x1U << FDCAN_NDAT2_ND55_Pos) /*!< 0x00800000 */
  4551. #define FDCAN_NDAT2_ND55 FDCAN_NDAT2_ND55_Msk /*!<New Data flag of Rx Buffer 55 */
  4552. #define FDCAN_NDAT2_ND56_Pos (24U)
  4553. #define FDCAN_NDAT2_ND56_Msk (0x1U << FDCAN_NDAT2_ND56_Pos) /*!< 0x01000000 */
  4554. #define FDCAN_NDAT2_ND56 FDCAN_NDAT2_ND56_Msk /*!<New Data flag of Rx Buffer 56 */
  4555. #define FDCAN_NDAT2_ND57_Pos (25U)
  4556. #define FDCAN_NDAT2_ND57_Msk (0x1U << FDCAN_NDAT2_ND57_Pos) /*!< 0x02000000 */
  4557. #define FDCAN_NDAT2_ND57 FDCAN_NDAT2_ND57_Msk /*!<New Data flag of Rx Buffer 57 */
  4558. #define FDCAN_NDAT2_ND58_Pos (26U)
  4559. #define FDCAN_NDAT2_ND58_Msk (0x1U << FDCAN_NDAT2_ND58_Pos) /*!< 0x04000000 */
  4560. #define FDCAN_NDAT2_ND58 FDCAN_NDAT2_ND58_Msk /*!<New Data flag of Rx Buffer 58 */
  4561. #define FDCAN_NDAT2_ND59_Pos (27U)
  4562. #define FDCAN_NDAT2_ND59_Msk (0x1U << FDCAN_NDAT2_ND59_Pos) /*!< 0x08000000 */
  4563. #define FDCAN_NDAT2_ND59 FDCAN_NDAT2_ND59_Msk /*!<New Data flag of Rx Buffer 59 */
  4564. #define FDCAN_NDAT2_ND60_Pos (28U)
  4565. #define FDCAN_NDAT2_ND60_Msk (0x1U << FDCAN_NDAT2_ND60_Pos) /*!< 0x10000000 */
  4566. #define FDCAN_NDAT2_ND60 FDCAN_NDAT2_ND60_Msk /*!<New Data flag of Rx Buffer 60 */
  4567. #define FDCAN_NDAT2_ND61_Pos (29U)
  4568. #define FDCAN_NDAT2_ND61_Msk (0x1U << FDCAN_NDAT2_ND61_Pos) /*!< 0x20000000 */
  4569. #define FDCAN_NDAT2_ND61 FDCAN_NDAT2_ND61_Msk /*!<New Data flag of Rx Buffer 61 */
  4570. #define FDCAN_NDAT2_ND62_Pos (30U)
  4571. #define FDCAN_NDAT2_ND62_Msk (0x1U << FDCAN_NDAT2_ND62_Pos) /*!< 0x40000000 */
  4572. #define FDCAN_NDAT2_ND62 FDCAN_NDAT2_ND62_Msk /*!<New Data flag of Rx Buffer 62 */
  4573. #define FDCAN_NDAT2_ND63_Pos (31U)
  4574. #define FDCAN_NDAT2_ND63_Msk (0x1U << FDCAN_NDAT2_ND63_Pos) /*!< 0x80000000 */
  4575. #define FDCAN_NDAT2_ND63 FDCAN_NDAT2_ND63_Msk /*!<New Data flag of Rx Buffer 63 */
  4576. /***************** Bit definition for FDCAN_RXF0C register ********************/
  4577. #define FDCAN_RXF0C_F0SA_Pos (2U)
  4578. #define FDCAN_RXF0C_F0SA_Msk (0x3FFFU << FDCAN_RXF0C_F0SA_Pos) /*!< 0x0000FFFC */
  4579. #define FDCAN_RXF0C_F0SA FDCAN_RXF0C_F0SA_Msk /*!<Rx FIFO 0 Start Address */
  4580. #define FDCAN_RXF0C_F0S_Pos (16U)
  4581. #define FDCAN_RXF0C_F0S_Msk (0x7FU << FDCAN_RXF0C_F0S_Pos) /*!< 0x007F0000 */
  4582. #define FDCAN_RXF0C_F0S FDCAN_RXF0C_F0S_Msk /*!<Number of Rx FIFO 0 elements */
  4583. #define FDCAN_RXF0C_F0WM_Pos (24U)
  4584. #define FDCAN_RXF0C_F0WM_Msk (0x7FU << FDCAN_RXF0C_F0WM_Pos) /*!< 0x7F000000 */
  4585. #define FDCAN_RXF0C_F0WM FDCAN_RXF0C_F0WM_Msk /*!<FIFO 0 Watermark */
  4586. #define FDCAN_RXF0C_F0OM_Pos (31U)
  4587. #define FDCAN_RXF0C_F0OM_Msk (0x1U << FDCAN_RXF0C_F0OM_Pos) /*!< 0x80000000 */
  4588. #define FDCAN_RXF0C_F0OM FDCAN_RXF0C_F0OM_Msk /*!<FIFO 0 Operation Mode */
  4589. /***************** Bit definition for FDCAN_RXF0S register ********************/
  4590. #define FDCAN_RXF0S_F0FL_Pos (0U)
  4591. #define FDCAN_RXF0S_F0FL_Msk (0x7FU << FDCAN_RXF0S_F0FL_Pos) /*!< 0x0000007F */
  4592. #define FDCAN_RXF0S_F0FL FDCAN_RXF0S_F0FL_Msk /*!<Rx FIFO 0 Fill Level */
  4593. #define FDCAN_RXF0S_F0GI_Pos (8U)
  4594. #define FDCAN_RXF0S_F0GI_Msk (0x3FU << FDCAN_RXF0S_F0GI_Pos) /*!< 0x00003F00 */
  4595. #define FDCAN_RXF0S_F0GI FDCAN_RXF0S_F0GI_Msk /*!<Rx FIFO 0 Get Index */
  4596. #define FDCAN_RXF0S_F0PI_Pos (16U)
  4597. #define FDCAN_RXF0S_F0PI_Msk (0x3FU << FDCAN_RXF0S_F0PI_Pos) /*!< 0x003F0000 */
  4598. #define FDCAN_RXF0S_F0PI FDCAN_RXF0S_F0PI_Msk /*!<Rx FIFO 0 Put Index */
  4599. #define FDCAN_RXF0S_F0F_Pos (24U)
  4600. #define FDCAN_RXF0S_F0F_Msk (0x1U << FDCAN_RXF0S_F0F_Pos) /*!< 0x01000000 */
  4601. #define FDCAN_RXF0S_F0F FDCAN_RXF0S_F0F_Msk /*!<Rx FIFO 0 Full */
  4602. #define FDCAN_RXF0S_RF0L_Pos (25U)
  4603. #define FDCAN_RXF0S_RF0L_Msk (0x1U << FDCAN_RXF0S_RF0L_Pos) /*!< 0x02000000 */
  4604. #define FDCAN_RXF0S_RF0L FDCAN_RXF0S_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  4605. /***************** Bit definition for FDCAN_RXF0A register ********************/
  4606. #define FDCAN_RXF0A_F0AI_Pos (0U)
  4607. #define FDCAN_RXF0A_F0AI_Msk (0x3FU << FDCAN_RXF0A_F0AI_Pos) /*!< 0x0000003F */
  4608. #define FDCAN_RXF0A_F0AI FDCAN_RXF0A_F0AI_Msk /*!<Rx FIFO 0 Acknowledge Index */
  4609. /***************** Bit definition for FDCAN_RXBC register ********************/
  4610. #define FDCAN_RXBC_RBSA_Pos (2U)
  4611. #define FDCAN_RXBC_RBSA_Msk (0x3FU << FDCAN_RXBC_RBSA_Pos) /*!< 0x000000FC */
  4612. #define FDCAN_RXBC_RBSA FDCAN_RXBC_RBSA_Msk /*!<Rx Buffer Start Address */
  4613. /***************** Bit definition for FDCAN_RXF1C register ********************/
  4614. #define FDCAN_RXF1C_F1SA_Pos (2U)
  4615. #define FDCAN_RXF1C_F1SA_Msk (0x3FU << FDCAN_RXF1C_F1SA_Pos) /*!< 0x000000FC */
  4616. #define FDCAN_RXF1C_F1SA FDCAN_RXF1C_F1SA_Msk /*!<Rx FIFO 1 Start Address */
  4617. #define FDCAN_RXF1C_F1S_Pos (16U)
  4618. #define FDCAN_RXF1C_F1S_Msk (0x7FU << FDCAN_RXF1C_F1S_Pos) /*!< 0x007F0000 */
  4619. #define FDCAN_RXF1C_F1S FDCAN_RXF1C_F1S_Msk /*!<Number of Rx FIFO 1 elements */
  4620. #define FDCAN_RXF1C_F1WM_Pos (24U)
  4621. #define FDCAN_RXF1C_F1WM_Msk (0x7FU << FDCAN_RXF1C_F1WM_Pos) /*!< 0x7F000000 */
  4622. #define FDCAN_RXF1C_F1WM FDCAN_RXF1C_F1WM_Msk /*!<Rx FIFO 1 Watermark */
  4623. #define FDCAN_RXF1C_F1OM_Pos (31U)
  4624. #define FDCAN_RXF1C_F1OM_Msk (0x1U << FDCAN_RXF1C_F1OM_Pos) /*!< 0x80000000 */
  4625. #define FDCAN_RXF1C_F1OM FDCAN_RXF1C_F1OM_Msk /*!<FIFO 1 Operation Mode */
  4626. /***************** Bit definition for FDCAN_RXF1S register ********************/
  4627. #define FDCAN_RXF1S_F1FL_Pos (0U)
  4628. #define FDCAN_RXF1S_F1FL_Msk (0x7FU << FDCAN_RXF1S_F1FL_Pos) /*!< 0x0000007F */
  4629. #define FDCAN_RXF1S_F1FL FDCAN_RXF1S_F1FL_Msk /*!<Rx FIFO 1 Fill Level */
  4630. #define FDCAN_RXF1S_F1GI_Pos (8U)
  4631. #define FDCAN_RXF1S_F1GI_Msk (0x3FU << FDCAN_RXF1S_F1GI_Pos) /*!< 0x00003F00 */
  4632. #define FDCAN_RXF1S_F1GI FDCAN_RXF1S_F1GI_Msk /*!<Rx FIFO 1 Get Index */
  4633. #define FDCAN_RXF1S_F1PI_Pos (16U)
  4634. #define FDCAN_RXF1S_F1PI_Msk (0x3FU << FDCAN_RXF1S_F1PI_Pos) /*!< 0x003F0000 */
  4635. #define FDCAN_RXF1S_F1PI FDCAN_RXF1S_F1PI_Msk /*!<Rx FIFO 1 Put Index */
  4636. #define FDCAN_RXF1S_F1F_Pos (24U)
  4637. #define FDCAN_RXF1S_F1F_Msk (0x1U << FDCAN_RXF1S_F1F_Pos) /*!< 0x01000000 */
  4638. #define FDCAN_RXF1S_F1F FDCAN_RXF1S_F1F_Msk /*!<Rx FIFO 1 Full */
  4639. #define FDCAN_RXF1S_RF1L_Pos (25U)
  4640. #define FDCAN_RXF1S_RF1L_Msk (0x1U << FDCAN_RXF1S_RF1L_Pos) /*!< 0x02000000 */
  4641. #define FDCAN_RXF1S_RF1L FDCAN_RXF1S_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  4642. /***************** Bit definition for FDCAN_RXF1A register ********************/
  4643. #define FDCAN_RXF1A_F1AI_Pos (0U)
  4644. #define FDCAN_RXF1A_F1AI_Msk (0x3FU << FDCAN_RXF1A_F1AI_Pos) /*!< 0x0000003F */
  4645. #define FDCAN_RXF1A_F1AI FDCAN_RXF1A_F1AI_Msk /*!<Rx FIFO 1 Acknowledge Index */
  4646. /***************** Bit definition for FDCAN_RXESC register ********************/
  4647. #define FDCAN_RXESC_F0DS_Pos (0U)
  4648. #define FDCAN_RXESC_F0DS_Msk (0x7U << FDCAN_RXESC_F0DS_Pos) /*!< 0x00000007 */
  4649. #define FDCAN_RXESC_F0DS FDCAN_RXESC_F0DS_Msk /*!<Rx FIFO 1 Data Field Size */
  4650. #define FDCAN_RXESC_F1DS_Pos (4U)
  4651. #define FDCAN_RXESC_F1DS_Msk (0x7U << FDCAN_RXESC_F1DS_Pos) /*!< 0x00000070 */
  4652. #define FDCAN_RXESC_F1DS FDCAN_RXESC_F1DS_Msk /*!<Rx FIFO 0 Data Field Size */
  4653. #define FDCAN_RXESC_RBDS_Pos (8U)
  4654. #define FDCAN_RXESC_RBDS_Msk (0x7U << FDCAN_RXESC_RBDS_Pos) /*!< 0x00000700 */
  4655. #define FDCAN_RXESC_RBDS FDCAN_RXESC_RBDS_Msk /*!<Rx Buffer Data Field Size */
  4656. /***************** Bit definition for FDCAN_TXBC register *********************/
  4657. #define FDCAN_TXBC_TBSA_Pos (2U)
  4658. #define FDCAN_TXBC_TBSA_Msk (0x3FU << FDCAN_TXBC_TBSA_Pos) /*!< 0x000000FC */
  4659. #define FDCAN_TXBC_TBSA FDCAN_TXBC_TBSA_Msk /*!<Tx Buffers Start Address */
  4660. #define FDCAN_TXBC_NDTB_Pos (16U)
  4661. #define FDCAN_TXBC_NDTB_Msk (0x3FU << FDCAN_TXBC_NDTB_Pos) /*!< 0x003F0000 */
  4662. #define FDCAN_TXBC_NDTB FDCAN_TXBC_NDTB_Msk /*!<Number of Dedicated Transmit Buffers */
  4663. #define FDCAN_TXBC_TFQS_Pos (24U)
  4664. #define FDCAN_TXBC_TFQS_Msk (0x3FU << FDCAN_TXBC_TFQS_Pos) /*!< 0x3F000000 */
  4665. #define FDCAN_TXBC_TFQS FDCAN_TXBC_TFQS_Msk /*!<Transmit FIFO/Queue Size */
  4666. #define FDCAN_TXBC_TFQM_Pos (30U)
  4667. #define FDCAN_TXBC_TFQM_Msk (0x1U << FDCAN_TXBC_TFQM_Pos) /*!< 0x40000000 */
  4668. #define FDCAN_TXBC_TFQM FDCAN_TXBC_TFQM_Msk /*!<Tx FIFO/Queue Mode */
  4669. /***************** Bit definition for FDCAN_TXFQS register *********************/
  4670. #define FDCAN_TXFQS_TFFL_Pos (0U)
  4671. #define FDCAN_TXFQS_TFFL_Msk (0x3FU << FDCAN_TXFQS_TFFL_Pos) /*!< 0x0000003F */
  4672. #define FDCAN_TXFQS_TFFL FDCAN_TXFQS_TFFL_Msk /*!<Tx FIFO Free Level */
  4673. #define FDCAN_TXFQS_TFGI_Pos (8U)
  4674. #define FDCAN_TXFQS_TFGI_Msk (0x1FU << FDCAN_TXFQS_TFGI_Pos) /*!< 0x00001F00 */
  4675. #define FDCAN_TXFQS_TFGI FDCAN_TXFQS_TFGI_Msk /*!<Tx FIFO Get Index */
  4676. #define FDCAN_TXFQS_TFQPI_Pos (16U)
  4677. #define FDCAN_TXFQS_TFQPI_Msk (0x1FU << FDCAN_TXFQS_TFQPI_Pos) /*!< 0x001F0000 */
  4678. #define FDCAN_TXFQS_TFQPI FDCAN_TXFQS_TFQPI_Msk /*!<Tx FIFO/Queue Put Index */
  4679. #define FDCAN_TXFQS_TFQF_Pos (21U)
  4680. #define FDCAN_TXFQS_TFQF_Msk (0x1U << FDCAN_TXFQS_TFQF_Pos) /*!< 0x00200000 */
  4681. #define FDCAN_TXFQS_TFQF FDCAN_TXFQS_TFQF_Msk /*!<Tx FIFO/Queue Full */
  4682. /***************** Bit definition for FDCAN_TXESC register *********************/
  4683. #define FDCAN_TXESC_TBDS_Pos (0U)
  4684. #define FDCAN_TXESC_TBDS_Msk (0x7U << FDCAN_TXESC_TBDS_Pos) /*!< 0x00000007 */
  4685. #define FDCAN_TXESC_TBDS FDCAN_TXESC_TBDS_Msk /*!<Tx Buffer Data Field Size */
  4686. /***************** Bit definition for FDCAN_TXBRP register *********************/
  4687. #define FDCAN_TXBRP_TRP_Pos (0U)
  4688. #define FDCAN_TXBRP_TRP_Msk (0xFFFFFFFFU << FDCAN_TXBRP_TRP_Pos) /*!< 0xFFFFFFFF */
  4689. #define FDCAN_TXBRP_TRP FDCAN_TXBRP_TRP_Msk /*!<Transmission Request Pending */
  4690. /***************** Bit definition for FDCAN_TXBAR register *********************/
  4691. #define FDCAN_TXBAR_AR_Pos (0U)
  4692. #define FDCAN_TXBAR_AR_Msk (0xFFFFFFFFU << FDCAN_TXBAR_AR_Pos) /*!< 0xFFFFFFFF */
  4693. #define FDCAN_TXBAR_AR FDCAN_TXBAR_AR_Msk /*!<Add Request */
  4694. /***************** Bit definition for FDCAN_TXBCR register *********************/
  4695. #define FDCAN_TXBCR_CR_Pos (0U)
  4696. #define FDCAN_TXBCR_CR_Msk (0xFFFFFFFFU << FDCAN_TXBCR_CR_Pos) /*!< 0xFFFFFFFF */
  4697. #define FDCAN_TXBCR_CR FDCAN_TXBCR_CR_Msk /*!<Cancellation Request */
  4698. /***************** Bit definition for FDCAN_TXBTO register *********************/
  4699. #define FDCAN_TXBTO_TO_Pos (0U)
  4700. #define FDCAN_TXBTO_TO_Msk (0xFFFFFFFFU << FDCAN_TXBTO_TO_Pos) /*!< 0xFFFFFFFF */
  4701. #define FDCAN_TXBTO_TO FDCAN_TXBTO_TO_Msk /*!<Transmission Occurred */
  4702. /***************** Bit definition for FDCAN_TXBCF register *********************/
  4703. #define FDCAN_TXBCF_CF_Pos (0U)
  4704. #define FDCAN_TXBCF_CF_Msk (0xFFFFFFFFU << FDCAN_TXBCF_CF_Pos) /*!< 0xFFFFFFFF */
  4705. #define FDCAN_TXBCF_CF FDCAN_TXBCF_CF_Msk /*!<Cancellation Finished */
  4706. /***************** Bit definition for FDCAN_TXBTIE register ********************/
  4707. #define FDCAN_TXBTIE_TIE_Pos (0U)
  4708. #define FDCAN_TXBTIE_TIE_Msk (0xFFFFFFFFU << FDCAN_TXBTIE_TIE_Pos) /*!< 0xFFFFFFFF */
  4709. #define FDCAN_TXBTIE_TIE FDCAN_TXBTIE_TIE_Msk /*!<Transmission Interrupt Enable */
  4710. /***************** Bit definition for FDCAN_ TXBCIE register *******************/
  4711. #define FDCAN_TXBCIE_CF_Pos (0U)
  4712. #define FDCAN_TXBCIE_CF_Msk (0xFFFFFFFFU << FDCAN_TXBCIE_CF_Pos) /*!< 0xFFFFFFFF */
  4713. #define FDCAN_TXBCIE_CF FDCAN_TXBCIE_CF_Msk /*!<Cancellation Finished Interrupt Enable */
  4714. /***************** Bit definition for FDCAN_TXEFC register *********************/
  4715. #define FDCAN_TXEFC_EFSA_Pos (2U)
  4716. #define FDCAN_TXEFC_EFSA_Msk (0x3FU << FDCAN_TXEFC_EFSA_Pos) /*!< 0x000000FC */
  4717. #define FDCAN_TXEFC_EFSA FDCAN_TXEFC_EFSA_Msk /*!<Event FIFO Start Address */
  4718. #define FDCAN_TXEFC_EFS_Pos (8U)
  4719. #define FDCAN_TXEFC_EFS_Msk (0x3FU << FDCAN_TXEFC_EFS_Pos) /*!< 0x00003F00 */
  4720. #define FDCAN_TXEFC_EFS FDCAN_TXEFC_EFS_Msk /*!<Event FIFO Size */
  4721. #define FDCAN_TXEFC_EFWM_Pos (24U)
  4722. #define FDCAN_TXEFC_EFWM_Msk (0x3FU << FDCAN_TXEFC_EFWM_Pos) /*!< 0x3F000000 */
  4723. #define FDCAN_TXEFC_EFWM FDCAN_TXEFC_EFWM_Msk /*!<Event FIFO Watermark */
  4724. /***************** Bit definition for FDCAN_TXEFS register *********************/
  4725. #define FDCAN_TXEFS_EFFL_Pos (0U)
  4726. #define FDCAN_TXEFS_EFFL_Msk (0x3FU << FDCAN_TXEFS_EFFL_Pos) /*!< 0x0000003F */
  4727. #define FDCAN_TXEFS_EFFL FDCAN_TXEFS_EFFL_Msk /*!<Event FIFO Fill Level */
  4728. #define FDCAN_TXEFS_EFGI_Pos (8U)
  4729. #define FDCAN_TXEFS_EFGI_Msk (0x1FU << FDCAN_TXEFS_EFGI_Pos) /*!< 0x00001F00 */
  4730. #define FDCAN_TXEFS_EFGI FDCAN_TXEFS_EFGI_Msk /*!<Event FIFO Get Index */
  4731. #define FDCAN_TXEFS_EFPI_Pos (16U)
  4732. #define FDCAN_TXEFS_EFPI_Msk (0x1FU << FDCAN_TXEFS_EFPI_Pos) /*!< 0x001F0000 */
  4733. #define FDCAN_TXEFS_EFPI FDCAN_TXEFS_EFPI_Msk /*!<Event FIFO Put Index */
  4734. #define FDCAN_TXEFS_EFF_Pos (24U)
  4735. #define FDCAN_TXEFS_EFF_Msk (0x1U << FDCAN_TXEFS_EFF_Pos) /*!< 0x01000000 */
  4736. #define FDCAN_TXEFS_EFF FDCAN_TXEFS_EFF_Msk /*!<Event FIFO Full */
  4737. #define FDCAN_TXEFS_TEFL_Pos (25U)
  4738. #define FDCAN_TXEFS_TEFL_Msk (0x1U << FDCAN_TXEFS_TEFL_Pos) /*!< 0x02000000 */
  4739. #define FDCAN_TXEFS_TEFL FDCAN_TXEFS_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4740. /***************** Bit definition for FDCAN_TXEFA register *********************/
  4741. #define FDCAN_TXEFA_EFAI_Pos (0U)
  4742. #define FDCAN_TXEFA_EFAI_Msk (0x1FU << FDCAN_TXEFA_EFAI_Pos) /*!< 0x0000001F */
  4743. #define FDCAN_TXEFA_EFAI FDCAN_TXEFA_EFAI_Msk /*!<Event FIFO Acknowledge Index */
  4744. /***************** Bit definition for FDCAN_TTTMC register *********************/
  4745. #define FDCAN_TTTMC_TMSA_Pos (2U)
  4746. #define FDCAN_TTTMC_TMSA_Msk (0x3FFFU << FDCAN_TTTMC_TMSA_Pos) /*!< 0x0000FFFC */
  4747. #define FDCAN_TTTMC_TMSA FDCAN_TTTMC_TMSA_Msk /*!<Trigger Memory Start Address */
  4748. #define FDCAN_TTTMC_TME_Pos (16U)
  4749. #define FDCAN_TTTMC_TME_Msk (0x7FU << FDCAN_TTTMC_TME_Pos) /*!< 0x007F0000 */
  4750. #define FDCAN_TTTMC_TME FDCAN_TTTMC_TME_Msk /*!<Trigger Memory Elements */
  4751. /***************** Bit definition for FDCAN_TTRMC register *********************/
  4752. #define FDCAN_TTRMC_RID_Pos (0U)
  4753. #define FDCAN_TTRMC_RID_Msk (0x1FFFFFFFU << FDCAN_TTRMC_RID_Pos) /*!< 0x1FFFFFFF */
  4754. #define FDCAN_TTRMC_RID FDCAN_TTRMC_RID_Msk /*!<Reference Identifier */
  4755. #define FDCAN_TTRMC_XTD_Pos (30U)
  4756. #define FDCAN_TTRMC_XTD_Msk (0x1U << FDCAN_TTRMC_XTD_Pos) /*!< 0x40000000 */
  4757. #define FDCAN_TTRMC_XTD FDCAN_TTRMC_XTD_Msk /*!< Extended Identifier */
  4758. #define FDCAN_TTRMC_RMPS_Pos (31U)
  4759. #define FDCAN_TTRMC_RMPS_Msk (0x1U << FDCAN_TTRMC_RMPS_Pos) /*!< 0x80000000 */
  4760. #define FDCAN_TTRMC_RMPS FDCAN_TTRMC_RMPS_Msk /*!<Reference Message Payload Select */
  4761. /***************** Bit definition for FDCAN_TTOCF register *********************/
  4762. #define FDCAN_TTOCF_OM_Pos (0U)
  4763. #define FDCAN_TTOCF_OM_Msk (0x3U << FDCAN_TTOCF_OM_Pos) /*!< 0x00000003 */
  4764. #define FDCAN_TTOCF_OM FDCAN_TTOCF_OM_Msk /*!<Operation Mode */
  4765. #define FDCAN_TTOCF_GEN_Pos (3U)
  4766. #define FDCAN_TTOCF_GEN_Msk (0x1U << FDCAN_TTOCF_GEN_Pos) /*!< 0x00000008 */
  4767. #define FDCAN_TTOCF_GEN FDCAN_TTOCF_GEN_Msk /*!<Gap Enable */
  4768. #define FDCAN_TTOCF_TM_Pos (4U)
  4769. #define FDCAN_TTOCF_TM_Msk (0x1U << FDCAN_TTOCF_TM_Pos) /*!< 0x00000010 */
  4770. #define FDCAN_TTOCF_TM FDCAN_TTOCF_TM_Msk /*!<Time Master */
  4771. #define FDCAN_TTOCF_LDSDL_Pos (5U)
  4772. #define FDCAN_TTOCF_LDSDL_Msk (0x7U << FDCAN_TTOCF_LDSDL_Pos) /*!< 0x000000E0 */
  4773. #define FDCAN_TTOCF_LDSDL FDCAN_TTOCF_LDSDL_Msk /*!<LD of Synchronization Deviation Limit */
  4774. #define FDCAN_TTOCF_IRTO_Pos (8U)
  4775. #define FDCAN_TTOCF_IRTO_Msk (0x7FU << FDCAN_TTOCF_IRTO_Pos) /*!< 0x00007F00 */
  4776. #define FDCAN_TTOCF_IRTO FDCAN_TTOCF_IRTO_Msk /*!<Initial Reference Trigger Offset */
  4777. #define FDCAN_TTOCF_EECS_Pos (15U)
  4778. #define FDCAN_TTOCF_EECS_Msk (0x1U << FDCAN_TTOCF_EECS_Pos) /*!< 0x00008000 */
  4779. #define FDCAN_TTOCF_EECS FDCAN_TTOCF_EECS_Msk /*!<Enable External Clock Synchronization */
  4780. #define FDCAN_TTOCF_AWL_Pos (16U)
  4781. #define FDCAN_TTOCF_AWL_Msk (0xFFU << FDCAN_TTOCF_AWL_Pos) /*!< 0x00FF0000 */
  4782. #define FDCAN_TTOCF_AWL FDCAN_TTOCF_AWL_Msk /*!<Application Watchdog Limit */
  4783. #define FDCAN_TTOCF_EGTF_Pos (24U)
  4784. #define FDCAN_TTOCF_EGTF_Msk (0x1U << FDCAN_TTOCF_EGTF_Pos) /*!< 0x01000000 */
  4785. #define FDCAN_TTOCF_EGTF FDCAN_TTOCF_EGTF_Msk /*!<Enable Global Time Filtering */
  4786. #define FDCAN_TTOCF_ECC_Pos (25U)
  4787. #define FDCAN_TTOCF_ECC_Msk (0x1U << FDCAN_TTOCF_ECC_Pos) /*!< 0x02000000 */
  4788. #define FDCAN_TTOCF_ECC FDCAN_TTOCF_ECC_Msk /*!<Enable Clock Calibration */
  4789. #define FDCAN_TTOCF_EVTP_Pos (26U)
  4790. #define FDCAN_TTOCF_EVTP_Msk (0x1U << FDCAN_TTOCF_EVTP_Pos) /*!< 0x04000000 */
  4791. #define FDCAN_TTOCF_EVTP FDCAN_TTOCF_EVTP_Msk /*!<Event Trigger Polarity */
  4792. /***************** Bit definition for FDCAN_TTMLM register *********************/
  4793. #define FDCAN_TTMLM_CCM_Pos (0U)
  4794. #define FDCAN_TTMLM_CCM_Msk (0x3FU << FDCAN_TTMLM_CCM_Pos) /*!< 0x0000003F */
  4795. #define FDCAN_TTMLM_CCM FDCAN_TTMLM_CCM_Msk /*!<Cycle Count Max */
  4796. #define FDCAN_TTMLM_CSS_Pos (6U)
  4797. #define FDCAN_TTMLM_CSS_Msk (0x3U << FDCAN_TTMLM_CSS_Pos) /*!< 0x000000C0 */
  4798. #define FDCAN_TTMLM_CSS FDCAN_TTMLM_CSS_Msk /*!<Cycle Start Synchronization */
  4799. #define FDCAN_TTMLM_TXEW_Pos (8U)
  4800. #define FDCAN_TTMLM_TXEW_Msk (0xFU << FDCAN_TTMLM_TXEW_Pos) /*!< 0x00000F00 */
  4801. #define FDCAN_TTMLM_TXEW FDCAN_TTMLM_TXEW_Msk /*!<Tx Enable Window */
  4802. #define FDCAN_TTMLM_ENTT_Pos (16U)
  4803. #define FDCAN_TTMLM_ENTT_Msk (0xFFFU << FDCAN_TTMLM_ENTT_Pos) /*!< 0x0FFF0000 */
  4804. #define FDCAN_TTMLM_ENTT FDCAN_TTMLM_ENTT_Msk /*!<Expected Number of Tx Triggers */
  4805. /***************** Bit definition for FDCAN_TURCF register *********************/
  4806. #define FDCAN_TURCF_NCL_Pos (0U)
  4807. #define FDCAN_TURCF_NCL_Msk (0xFFFFU << FDCAN_TURCF_NCL_Pos) /*!< 0x0000FFFF */
  4808. #define FDCAN_TURCF_NCL FDCAN_TURCF_NCL_Msk /*!<Numerator Configuration Low */
  4809. #define FDCAN_TURCF_DC_Pos (16U)
  4810. #define FDCAN_TURCF_DC_Msk (0x3FFFU << FDCAN_TURCF_DC_Pos) /*!< 0x3FFF0000 */
  4811. #define FDCAN_TURCF_DC FDCAN_TURCF_DC_Msk /*!<Denominator Configuration */
  4812. #define FDCAN_TURCF_ELT_Pos (31U)
  4813. #define FDCAN_TURCF_ELT_Msk (0x1U << FDCAN_TURCF_ELT_Pos) /*!< 0x80000000 */
  4814. #define FDCAN_TURCF_ELT FDCAN_TURCF_ELT_Msk /*!<Enable Local Time */
  4815. /***************** Bit definition for FDCAN_TTOCN register ********************/
  4816. #define FDCAN_TTOCN_SGT_Pos (0U)
  4817. #define FDCAN_TTOCN_SGT_Msk (0x1U << FDCAN_TTOCN_SGT_Pos) /*!< 0x00000001 */
  4818. #define FDCAN_TTOCN_SGT FDCAN_TTOCN_SGT_Msk /*!<Set Global time */
  4819. #define FDCAN_TTOCN_ECS_Pos (1U)
  4820. #define FDCAN_TTOCN_ECS_Msk (0x1U << FDCAN_TTOCN_ECS_Pos) /*!< 0x00000002 */
  4821. #define FDCAN_TTOCN_ECS FDCAN_TTOCN_ECS_Msk /*!<External Clock Synchronization */
  4822. #define FDCAN_TTOCN_SWP_Pos (2U)
  4823. #define FDCAN_TTOCN_SWP_Msk (0x1U << FDCAN_TTOCN_SWP_Pos) /*!< 0x00000004 */
  4824. #define FDCAN_TTOCN_SWP FDCAN_TTOCN_SWP_Msk /*!<Stop Watch Polarity */
  4825. #define FDCAN_TTOCN_SWS_Pos (3U)
  4826. #define FDCAN_TTOCN_SWS_Msk (0x3U << FDCAN_TTOCN_SWS_Pos) /*!< 0x00000018 */
  4827. #define FDCAN_TTOCN_SWS FDCAN_TTOCN_SWS_Msk /*!<Stop Watch Source */
  4828. #define FDCAN_TTOCN_RTIE_Pos (5U)
  4829. #define FDCAN_TTOCN_RTIE_Msk (0x1U << FDCAN_TTOCN_RTIE_Pos) /*!< 0x00000020 */
  4830. #define FDCAN_TTOCN_RTIE FDCAN_TTOCN_RTIE_Msk /*!<Register Time Mark Interrupt Pulse Enable */
  4831. #define FDCAN_TTOCN_TMC_Pos (6U)
  4832. #define FDCAN_TTOCN_TMC_Msk (0x3U << FDCAN_TTOCN_TMC_Pos) /*!< 0x000000C0 */
  4833. #define FDCAN_TTOCN_TMC FDCAN_TTOCN_TMC_Msk /*!<Register Time Mark Compare */
  4834. #define FDCAN_TTOCN_TTIE_Pos (8U)
  4835. #define FDCAN_TTOCN_TTIE_Msk (0x1U << FDCAN_TTOCN_TTIE_Pos) /*!< 0x00000100 */
  4836. #define FDCAN_TTOCN_TTIE FDCAN_TTOCN_TTIE_Msk /*!<Trigger Time Mark Interrupt Pulse Enable */
  4837. #define FDCAN_TTOCN_GCS_Pos (9U)
  4838. #define FDCAN_TTOCN_GCS_Msk (0x1U << FDCAN_TTOCN_GCS_Pos) /*!< 0x00000200 */
  4839. #define FDCAN_TTOCN_GCS FDCAN_TTOCN_GCS_Msk /*!<Gap Control Select */
  4840. #define FDCAN_TTOCN_FGP_Pos (10U)
  4841. #define FDCAN_TTOCN_FGP_Msk (0x1U << FDCAN_TTOCN_FGP_Pos) /*!< 0x00000400 */
  4842. #define FDCAN_TTOCN_FGP FDCAN_TTOCN_FGP_Msk /*!<Finish Gap */
  4843. #define FDCAN_TTOCN_TMG_Pos (11U)
  4844. #define FDCAN_TTOCN_TMG_Msk (0x1U << FDCAN_TTOCN_TMG_Pos) /*!< 0x00000800 */
  4845. #define FDCAN_TTOCN_TMG FDCAN_TTOCN_TMG_Msk /*!<Time Mark Gap */
  4846. #define FDCAN_TTOCN_NIG_Pos (12U)
  4847. #define FDCAN_TTOCN_NIG_Msk (0x1U << FDCAN_TTOCN_NIG_Pos) /*!< 0x00001000 */
  4848. #define FDCAN_TTOCN_NIG FDCAN_TTOCN_NIG_Msk /*!<Next is Gap */
  4849. #define FDCAN_TTOCN_ESCN_Pos (13U)
  4850. #define FDCAN_TTOCN_ESCN_Msk (0x1U << FDCAN_TTOCN_ESCN_Pos) /*!< 0x00002000 */
  4851. #define FDCAN_TTOCN_ESCN FDCAN_TTOCN_ESCN_Msk /*!<External Synchronization Control */
  4852. #define FDCAN_TTOCN_LCKC_Pos (15U)
  4853. #define FDCAN_TTOCN_LCKC_Msk (0x1U << FDCAN_TTOCN_LCKC_Pos) /*!< 0x00008000 */
  4854. #define FDCAN_TTOCN_LCKC FDCAN_TTOCN_LCKC_Msk /*!<TT Operation Control Register Locked */
  4855. /***************** Bit definition for FDCAN_TTGTP register ********************/
  4856. #define FDCAN_TTGTP_TP_Pos (0U)
  4857. #define FDCAN_TTGTP_TP_Msk (0xFFFFU << FDCAN_TTGTP_TP_Pos) /*!< 0x0000FFFF */
  4858. #define FDCAN_TTGTP_TP FDCAN_TTGTP_TP_Msk /*!<Time Preset */
  4859. #define FDCAN_TTGTP_CTP_Pos (16U)
  4860. #define FDCAN_TTGTP_CTP_Msk (0xFFFFU << FDCAN_TTGTP_CTP_Pos) /*!< 0xFFFF0000 */
  4861. #define FDCAN_TTGTP_CTP FDCAN_TTGTP_CTP_Msk /*!<Cycle Time Target Phase */
  4862. /***************** Bit definition for FDCAN_TTTMK register ********************/
  4863. #define FDCAN_TTTMK_TM_Pos (0U)
  4864. #define FDCAN_TTTMK_TM_Msk (0xFFFFU << FDCAN_TTTMK_TM_Pos) /*!< 0x0000FFFF */
  4865. #define FDCAN_TTTMK_TM FDCAN_TTTMK_TM_Msk /*!<Time Mark */
  4866. #define FDCAN_TTTMK_TICC_Pos (16U)
  4867. #define FDCAN_TTTMK_TICC_Msk (0x7FU << FDCAN_TTTMK_TICC_Pos) /*!< 0x007F0000 */
  4868. #define FDCAN_TTTMK_TICC FDCAN_TTTMK_TICC_Msk /*!<Time Mark Cycle Code */
  4869. #define FDCAN_TTTMK_LCKM_Pos (31U)
  4870. #define FDCAN_TTTMK_LCKM_Msk (0x1U << FDCAN_TTTMK_LCKM_Pos) /*!< 0x80000000 */
  4871. #define FDCAN_TTTMK_LCKM FDCAN_TTTMK_LCKM_Msk /*!<TT Time Mark Register Locked */
  4872. /***************** Bit definition for FDCAN_TTIR register ********************/
  4873. #define FDCAN_TTIR_SBC_Pos (0U)
  4874. #define FDCAN_TTIR_SBC_Msk (0x1U << FDCAN_TTIR_SBC_Pos) /*!< 0x00000001 */
  4875. #define FDCAN_TTIR_SBC FDCAN_TTIR_SBC_Msk /*!<Start of Basic Cycle */
  4876. #define FDCAN_TTIR_SMC_Pos (1U)
  4877. #define FDCAN_TTIR_SMC_Msk (0x1U << FDCAN_TTIR_SMC_Pos) /*!< 0x00000002 */
  4878. #define FDCAN_TTIR_SMC FDCAN_TTIR_SMC_Msk /*!<Start of Matrix Cycle */
  4879. #define FDCAN_TTIR_CSM_Pos (2U)
  4880. #define FDCAN_TTIR_CSM_Msk (0x1U << FDCAN_TTIR_CSM_Pos) /*!< 0x00000004 */
  4881. #define FDCAN_TTIR_CSM FDCAN_TTIR_CSM_Msk /*!<Change of Synchronization Mode */
  4882. #define FDCAN_TTIR_SOG_Pos (3U)
  4883. #define FDCAN_TTIR_SOG_Msk (0x1U << FDCAN_TTIR_SOG_Pos) /*!< 0x00000008 */
  4884. #define FDCAN_TTIR_SOG FDCAN_TTIR_SOG_Msk /*!<Start of Gap */
  4885. #define FDCAN_TTIR_RTMI_Pos (4U)
  4886. #define FDCAN_TTIR_RTMI_Msk (0x1U << FDCAN_TTIR_RTMI_Pos) /*!< 0x00000010 */
  4887. #define FDCAN_TTIR_RTMI FDCAN_TTIR_RTMI_Msk /*!<Register Time Mark Interrupt */
  4888. #define FDCAN_TTIR_TTMI_Pos (5U)
  4889. #define FDCAN_TTIR_TTMI_Msk (0x1U << FDCAN_TTIR_TTMI_Pos) /*!< 0x00000020 */
  4890. #define FDCAN_TTIR_TTMI FDCAN_TTIR_TTMI_Msk /*!<Trigger Time Mark Event Internal */
  4891. #define FDCAN_TTIR_SWE_Pos (6U)
  4892. #define FDCAN_TTIR_SWE_Msk (0x1U << FDCAN_TTIR_SWE_Pos) /*!< 0x00000040 */
  4893. #define FDCAN_TTIR_SWE FDCAN_TTIR_SWE_Msk /*!<Stop Watch Event */
  4894. #define FDCAN_TTIR_GTW_Pos (7U)
  4895. #define FDCAN_TTIR_GTW_Msk (0x1U << FDCAN_TTIR_GTW_Pos) /*!< 0x00000080 */
  4896. #define FDCAN_TTIR_GTW FDCAN_TTIR_GTW_Msk /*!<Global Time Wrap */
  4897. #define FDCAN_TTIR_GTD_Pos (8U)
  4898. #define FDCAN_TTIR_GTD_Msk (0x1U << FDCAN_TTIR_GTD_Pos) /*!< 0x00000100 */
  4899. #define FDCAN_TTIR_GTD FDCAN_TTIR_GTD_Msk /*!<Global Time Discontinuity */
  4900. #define FDCAN_TTIR_GTE_Pos (9U)
  4901. #define FDCAN_TTIR_GTE_Msk (0x1U << FDCAN_TTIR_GTE_Pos) /*!< 0x00000200 */
  4902. #define FDCAN_TTIR_GTE FDCAN_TTIR_GTE_Msk /*!<Global Time Error */
  4903. #define FDCAN_TTIR_TXU_Pos (10U)
  4904. #define FDCAN_TTIR_TXU_Msk (0x1U << FDCAN_TTIR_TXU_Pos) /*!< 0x00000400 */
  4905. #define FDCAN_TTIR_TXU FDCAN_TTIR_TXU_Msk /*!<Tx Count Underflow */
  4906. #define FDCAN_TTIR_TXO_Pos (11U)
  4907. #define FDCAN_TTIR_TXO_Msk (0x1U << FDCAN_TTIR_TXO_Pos) /*!< 0x00000800 */
  4908. #define FDCAN_TTIR_TXO FDCAN_TTIR_TXO_Msk /*!<Tx Count Overflow */
  4909. #define FDCAN_TTIR_SE1_Pos (12U)
  4910. #define FDCAN_TTIR_SE1_Msk (0x1U << FDCAN_TTIR_SE1_Pos) /*!< 0x00001000 */
  4911. #define FDCAN_TTIR_SE1 FDCAN_TTIR_SE1_Msk /*!<Scheduling Error 1 */
  4912. #define FDCAN_TTIR_SE2_Pos (13U)
  4913. #define FDCAN_TTIR_SE2_Msk (0x1U << FDCAN_TTIR_SE2_Pos) /*!< 0x00002000 */
  4914. #define FDCAN_TTIR_SE2 FDCAN_TTIR_SE2_Msk /*!<Scheduling Error 2 */
  4915. #define FDCAN_TTIR_ELC_Pos (14U)
  4916. #define FDCAN_TTIR_ELC_Msk (0x1U << FDCAN_TTIR_ELC_Pos) /*!< 0x00004000 */
  4917. #define FDCAN_TTIR_ELC FDCAN_TTIR_ELC_Msk /*!<Error Level Changed */
  4918. #define FDCAN_TTIR_IWT_Pos (15U)
  4919. #define FDCAN_TTIR_IWT_Msk (0x1U << FDCAN_TTIR_IWT_Pos) /*!< 0x00008000 */
  4920. #define FDCAN_TTIR_IWT FDCAN_TTIR_IWT_Msk /*!<Initialization Watch Trigger */
  4921. #define FDCAN_TTIR_WT_Pos (16U)
  4922. #define FDCAN_TTIR_WT_Msk (0x1U << FDCAN_TTIR_WT_Pos) /*!< 0x00010000 */
  4923. #define FDCAN_TTIR_WT FDCAN_TTIR_WT_Msk /*!<Watch Trigger */
  4924. #define FDCAN_TTIR_AW_Pos (17U)
  4925. #define FDCAN_TTIR_AW_Msk (0x1U << FDCAN_TTIR_AW_Pos) /*!< 0x00020000 */
  4926. #define FDCAN_TTIR_AW FDCAN_TTIR_AW_Msk /*!<Application Watchdog */
  4927. #define FDCAN_TTIR_CER_Pos (18U)
  4928. #define FDCAN_TTIR_CER_Msk (0x1U << FDCAN_TTIR_CER_Pos) /*!< 0x00040000 */
  4929. #define FDCAN_TTIR_CER FDCAN_TTIR_CER_Msk /*!<Configuration Error */
  4930. /***************** Bit definition for FDCAN_TTIE register ********************/
  4931. #define FDCAN_TTIE_SBCE_Pos (0U)
  4932. #define FDCAN_TTIE_SBCE_Msk (0x1U << FDCAN_TTIE_SBCE_Pos) /*!< 0x00000001 */
  4933. #define FDCAN_TTIE_SBCE FDCAN_TTIE_SBCE_Msk /*!<Start of Basic Cycle Interrupt Enable */
  4934. #define FDCAN_TTIE_SMCE_Pos (1U)
  4935. #define FDCAN_TTIE_SMCE_Msk (0x1U << FDCAN_TTIE_SMCE_Pos) /*!< 0x00000002 */
  4936. #define FDCAN_TTIE_SMCE FDCAN_TTIE_SMCE_Msk /*!<Start of Matrix Cycle Interrupt Enable */
  4937. #define FDCAN_TTIE_CSME_Pos (2U)
  4938. #define FDCAN_TTIE_CSME_Msk (0x1U << FDCAN_TTIE_CSME_Pos) /*!< 0x00000004 */
  4939. #define FDCAN_TTIE_CSME FDCAN_TTIE_CSME_Msk /*!<Change of Synchronization Mode Interrupt Enable */
  4940. #define FDCAN_TTIE_SOGE_Pos (3U)
  4941. #define FDCAN_TTIE_SOGE_Msk (0x1U << FDCAN_TTIE_SOGE_Pos) /*!< 0x00000008 */
  4942. #define FDCAN_TTIE_SOGE FDCAN_TTIE_SOGE_Msk /*!<Start of Gap Interrupt Enable */
  4943. #define FDCAN_TTIE_RTMIE_Pos (4U)
  4944. #define FDCAN_TTIE_RTMIE_Msk (0x1U << FDCAN_TTIE_RTMIE_Pos) /*!< 0x00000010 */
  4945. #define FDCAN_TTIE_RTMIE FDCAN_TTIE_RTMIE_Msk /*!<Register Time Mark Interrupt Interrupt Enable */
  4946. #define FDCAN_TTIE_TTMIE_Pos (5U)
  4947. #define FDCAN_TTIE_TTMIE_Msk (0x1U << FDCAN_TTIE_TTMIE_Pos) /*!< 0x00000020 */
  4948. #define FDCAN_TTIE_TTMIE FDCAN_TTIE_TTMIE_Msk /*!<Trigger Time Mark Event Internal Interrupt Enable */
  4949. #define FDCAN_TTIE_SWEE_Pos (6U)
  4950. #define FDCAN_TTIE_SWEE_Msk (0x1U << FDCAN_TTIE_SWEE_Pos) /*!< 0x00000040 */
  4951. #define FDCAN_TTIE_SWEE FDCAN_TTIE_SWEE_Msk /*!<Stop Watch Event Interrupt Enable */
  4952. #define FDCAN_TTIE_GTWE_Pos (7U)
  4953. #define FDCAN_TTIE_GTWE_Msk (0x1U << FDCAN_TTIE_GTWE_Pos) /*!< 0x00000080 */
  4954. #define FDCAN_TTIE_GTWE FDCAN_TTIE_GTWE_Msk /*!<Global Time Wrap Interrupt Enable */
  4955. #define FDCAN_TTIE_GTDE_Pos (8U)
  4956. #define FDCAN_TTIE_GTDE_Msk (0x1U << FDCAN_TTIE_GTDE_Pos) /*!< 0x00000100 */
  4957. #define FDCAN_TTIE_GTDE FDCAN_TTIE_GTDE_Msk /*!<Global Time Discontinuity Interrupt Enable */
  4958. #define FDCAN_TTIE_GTEE_Pos (9U)
  4959. #define FDCAN_TTIE_GTEE_Msk (0x1U << FDCAN_TTIE_GTEE_Pos) /*!< 0x00000200 */
  4960. #define FDCAN_TTIE_GTEE FDCAN_TTIE_GTEE_Msk /*!<Global Time Error Interrupt Enable */
  4961. #define FDCAN_TTIE_TXUE_Pos (10U)
  4962. #define FDCAN_TTIE_TXUE_Msk (0x1U << FDCAN_TTIE_TXUE_Pos) /*!< 0x00000400 */
  4963. #define FDCAN_TTIE_TXUE FDCAN_TTIE_TXUE_Msk /*!<Tx Count Underflow Interrupt Enable */
  4964. #define FDCAN_TTIE_TXOE_Pos (11U)
  4965. #define FDCAN_TTIE_TXOE_Msk (0x1U << FDCAN_TTIE_TXOE_Pos) /*!< 0x00000800 */
  4966. #define FDCAN_TTIE_TXOE FDCAN_TTIE_TXOE_Msk /*!<Tx Count Overflow Interrupt Enable */
  4967. #define FDCAN_TTIE_SE1E_Pos (12U)
  4968. #define FDCAN_TTIE_SE1E_Msk (0x1U << FDCAN_TTIE_SE1E_Pos) /*!< 0x00001000 */
  4969. #define FDCAN_TTIE_SE1E FDCAN_TTIE_SE1E_Msk /*!<Scheduling Error 1 Interrupt Enable */
  4970. #define FDCAN_TTIE_SE2E_Pos (13U)
  4971. #define FDCAN_TTIE_SE2E_Msk (0x1U << FDCAN_TTIE_SE2E_Pos) /*!< 0x00002000 */
  4972. #define FDCAN_TTIE_SE2E FDCAN_TTIE_SE2E_Msk /*!<Scheduling Error 2 Interrupt Enable */
  4973. #define FDCAN_TTIE_ELCE_Pos (14U)
  4974. #define FDCAN_TTIE_ELCE_Msk (0x1U << FDCAN_TTIE_ELCE_Pos) /*!< 0x00004000 */
  4975. #define FDCAN_TTIE_ELCE FDCAN_TTIE_ELCE_Msk /*!<Error Level Changed Interrupt Enable */
  4976. #define FDCAN_TTIE_IWTE_Pos (15U)
  4977. #define FDCAN_TTIE_IWTE_Msk (0x1U << FDCAN_TTIE_IWTE_Pos) /*!< 0x00008000 */
  4978. #define FDCAN_TTIE_IWTE FDCAN_TTIE_IWTE_Msk /*!<Initialization Watch Trigger Interrupt Enable */
  4979. #define FDCAN_TTIE_WTE_Pos (16U)
  4980. #define FDCAN_TTIE_WTE_Msk (0x1U << FDCAN_TTIE_WTE_Pos) /*!< 0x00010000 */
  4981. #define FDCAN_TTIE_WTE FDCAN_TTIE_WTE_Msk /*!<Watch Trigger Interrupt Enable */
  4982. #define FDCAN_TTIE_AWE_Pos (17U)
  4983. #define FDCAN_TTIE_AWE_Msk (0x1U << FDCAN_TTIE_AWE_Pos) /*!< 0x00020000 */
  4984. #define FDCAN_TTIE_AWE FDCAN_TTIE_AWE_Msk /*!<Application Watchdog Interrupt Enable */
  4985. #define FDCAN_TTIE_CERE_Pos (18U)
  4986. #define FDCAN_TTIE_CERE_Msk (0x1U << FDCAN_TTIE_CERE_Pos) /*!< 0x00040000 */
  4987. #define FDCAN_TTIE_CERE FDCAN_TTIE_CERE_Msk /*!<Configuration Error Interrupt Enable */
  4988. /***************** Bit definition for FDCAN_TTILS register ********************/
  4989. #define FDCAN_TTILS_SBCS_Pos (0U)
  4990. #define FDCAN_TTILS_SBCS_Msk (0x1U << FDCAN_TTILS_SBCS_Pos) /*!< 0x00000001 */
  4991. #define FDCAN_TTILS_SBCS FDCAN_TTILS_SBCS_Msk /*!<Start of Basic Cycle Interrupt Line */
  4992. #define FDCAN_TTILS_SMCS_Pos (1U)
  4993. #define FDCAN_TTILS_SMCS_Msk (0x1U << FDCAN_TTILS_SMCS_Pos) /*!< 0x00000002 */
  4994. #define FDCAN_TTILS_SMCS FDCAN_TTILS_SMCS_Msk /*!<Start of Matrix Cycle Interrupt Line */
  4995. #define FDCAN_TTILS_CSMS_Pos (2U)
  4996. #define FDCAN_TTILS_CSMS_Msk (0x1U << FDCAN_TTILS_CSMS_Pos) /*!< 0x00000004 */
  4997. #define FDCAN_TTILS_CSMS FDCAN_TTILS_CSMS_Msk /*!<Change of Synchronization Mode Interrupt Line */
  4998. #define FDCAN_TTILS_SOGS_Pos (3U)
  4999. #define FDCAN_TTILS_SOGS_Msk (0x1U << FDCAN_TTILS_SOGS_Pos) /*!< 0x00000008 */
  5000. #define FDCAN_TTILS_SOGS FDCAN_TTILS_SOGS_Msk /*!<Start of Gap Interrupt Line */
  5001. #define FDCAN_TTILS_RTMIS_Pos (4U)
  5002. #define FDCAN_TTILS_RTMIS_Msk (0x1U << FDCAN_TTILS_RTMIS_Pos) /*!< 0x00000010 */
  5003. #define FDCAN_TTILS_RTMIS FDCAN_TTILS_RTMIS_Msk /*!<Register Time Mark Interrupt Interrupt Line */
  5004. #define FDCAN_TTILS_TTMIS_Pos (5U)
  5005. #define FDCAN_TTILS_TTMIS_Msk (0x1U << FDCAN_TTILS_TTMIS_Pos) /*!< 0x00000020 */
  5006. #define FDCAN_TTILS_TTMIS FDCAN_TTILS_TTMIS_Msk /*!<Trigger Time Mark Event Internal Interrupt Line */
  5007. #define FDCAN_TTILS_SWES_Pos (6U)
  5008. #define FDCAN_TTILS_SWES_Msk (0x1U << FDCAN_TTILS_SWES_Pos) /*!< 0x00000040 */
  5009. #define FDCAN_TTILS_SWES FDCAN_TTILS_SWES_Msk /*!<Stop Watch Event Interrupt Line */
  5010. #define FDCAN_TTILS_GTWS_Pos (7U)
  5011. #define FDCAN_TTILS_GTWS_Msk (0x1U << FDCAN_TTILS_GTWS_Pos) /*!< 0x00000080 */
  5012. #define FDCAN_TTILS_GTWS FDCAN_TTILS_GTWS_Msk /*!<Global Time Wrap Interrupt Line */
  5013. #define FDCAN_TTILS_GTDS_Pos (8U)
  5014. #define FDCAN_TTILS_GTDS_Msk (0x1U << FDCAN_TTILS_GTDS_Pos) /*!< 0x00000100 */
  5015. #define FDCAN_TTILS_GTDS FDCAN_TTILS_GTDS_Msk /*!<Global Time Discontinuity Interrupt Line */
  5016. #define FDCAN_TTILS_GTES_Pos (9U)
  5017. #define FDCAN_TTILS_GTES_Msk (0x1U << FDCAN_TTILS_GTES_Pos) /*!< 0x00000200 */
  5018. #define FDCAN_TTILS_GTES FDCAN_TTILS_GTES_Msk /*!<Global Time Error Interrupt Line */
  5019. #define FDCAN_TTILS_TXUS_Pos (10U)
  5020. #define FDCAN_TTILS_TXUS_Msk (0x1U << FDCAN_TTILS_TXUS_Pos) /*!< 0x00000400 */
  5021. #define FDCAN_TTILS_TXUS FDCAN_TTILS_TXUS_Msk /*!<Tx Count Underflow Interrupt Line */
  5022. #define FDCAN_TTILS_TXOS_Pos (11U)
  5023. #define FDCAN_TTILS_TXOS_Msk (0x1U << FDCAN_TTILS_TXOS_Pos) /*!< 0x00000800 */
  5024. #define FDCAN_TTILS_TXOS FDCAN_TTILS_TXOS_Msk /*!<Tx Count Overflow Interrupt Line */
  5025. #define FDCAN_TTILS_SE1S_Pos (12U)
  5026. #define FDCAN_TTILS_SE1S_Msk (0x1U << FDCAN_TTILS_SE1S_Pos) /*!< 0x00001000 */
  5027. #define FDCAN_TTILS_SE1S FDCAN_TTILS_SE1S_Msk /*!<Scheduling Error 1 Interrupt Line */
  5028. #define FDCAN_TTILS_SE2S_Pos (13U)
  5029. #define FDCAN_TTILS_SE2S_Msk (0x1U << FDCAN_TTILS_SE2S_Pos) /*!< 0x00002000 */
  5030. #define FDCAN_TTILS_SE2S FDCAN_TTILS_SE2S_Msk /*!<Scheduling Error 2 Interrupt Line */
  5031. #define FDCAN_TTILS_ELCS_Pos (14U)
  5032. #define FDCAN_TTILS_ELCS_Msk (0x1U << FDCAN_TTILS_ELCS_Pos) /*!< 0x00004000 */
  5033. #define FDCAN_TTILS_ELCS FDCAN_TTILS_ELCS_Msk /*!<Error Level Changed Interrupt Line */
  5034. #define FDCAN_TTILS_IWTS_Pos (15U)
  5035. #define FDCAN_TTILS_IWTS_Msk (0x1U << FDCAN_TTILS_IWTS_Pos) /*!< 0x00008000 */
  5036. #define FDCAN_TTILS_IWTS FDCAN_TTILS_IWTS_Msk /*!<Initialization Watch Trigger Interrupt Line */
  5037. #define FDCAN_TTILS_WTS_Pos (16U)
  5038. #define FDCAN_TTILS_WTS_Msk (0x1U << FDCAN_TTILS_WTS_Pos) /*!< 0x00010000 */
  5039. #define FDCAN_TTILS_WTS FDCAN_TTILS_WTS_Msk /*!<Watch Trigger Interrupt Line */
  5040. #define FDCAN_TTILS_AWS_Pos (17U)
  5041. #define FDCAN_TTILS_AWS_Msk (0x1U << FDCAN_TTILS_AWS_Pos) /*!< 0x00020000 */
  5042. #define FDCAN_TTILS_AWS FDCAN_TTILS_AWS_Msk /*!<Application Watchdog Interrupt Line */
  5043. #define FDCAN_TTILS_CERS_Pos (18U)
  5044. #define FDCAN_TTILS_CERS_Msk (0x1U << FDCAN_TTILS_CERS_Pos) /*!< 0x00040000 */
  5045. #define FDCAN_TTILS_CERS FDCAN_TTILS_CERS_Msk /*!<Configuration Error Interrupt Line */
  5046. /***************** Bit definition for FDCAN_TTOST register ********************/
  5047. #define FDCAN_TTOST_EL_Pos (0U)
  5048. #define FDCAN_TTOST_EL_Msk (0x3U << FDCAN_TTOST_EL_Pos) /*!< 0x00000003 */
  5049. #define FDCAN_TTOST_EL FDCAN_TTOST_EL_Msk /*!<Error Level */
  5050. #define FDCAN_TTOST_MS_Pos (2U)
  5051. #define FDCAN_TTOST_MS_Msk (0x3U << FDCAN_TTOST_MS_Pos) /*!< 0x0000000C */
  5052. #define FDCAN_TTOST_MS FDCAN_TTOST_MS_Msk /*!<Master State */
  5053. #define FDCAN_TTOST_SYS_Pos (4U)
  5054. #define FDCAN_TTOST_SYS_Msk (0x3U << FDCAN_TTOST_SYS_Pos) /*!< 0x00000030 */
  5055. #define FDCAN_TTOST_SYS FDCAN_TTOST_SYS_Msk /*!<Synchronization State */
  5056. #define FDCAN_TTOST_QGTP_Pos (6U)
  5057. #define FDCAN_TTOST_QGTP_Msk (0x1U << FDCAN_TTOST_QGTP_Pos) /*!< 0x00000040 */
  5058. #define FDCAN_TTOST_QGTP FDCAN_TTOST_QGTP_Msk /*!<Quality of Global Time Phase */
  5059. #define FDCAN_TTOST_QCS_Pos (7U)
  5060. #define FDCAN_TTOST_QCS_Msk (0x1U << FDCAN_TTOST_QCS_Pos) /*!< 0x00000080 */
  5061. #define FDCAN_TTOST_QCS FDCAN_TTOST_QCS_Msk /*!<Quality of Clock Speed */
  5062. #define FDCAN_TTOST_RTO_Pos (8U)
  5063. #define FDCAN_TTOST_RTO_Msk (0xFFU << FDCAN_TTOST_RTO_Pos) /*!< 0x0000FF00 */
  5064. #define FDCAN_TTOST_RTO FDCAN_TTOST_RTO_Msk /*!<Reference Trigger Offset */
  5065. #define FDCAN_TTOST_WGTD_Pos (22U)
  5066. #define FDCAN_TTOST_WGTD_Msk (0x1U << FDCAN_TTOST_WGTD_Pos) /*!< 0x00400000 */
  5067. #define FDCAN_TTOST_WGTD FDCAN_TTOST_WGTD_Msk /*!<Wait for Global Time Discontinuity */
  5068. #define FDCAN_TTOST_GFI_Pos (23U)
  5069. #define FDCAN_TTOST_GFI_Msk (0x1U << FDCAN_TTOST_GFI_Pos) /*!< 0x00800000 */
  5070. #define FDCAN_TTOST_GFI FDCAN_TTOST_GFI_Msk /*!<Gap Finished Indicator */
  5071. #define FDCAN_TTOST_TMP_Pos (24U)
  5072. #define FDCAN_TTOST_TMP_Msk (0x7U << FDCAN_TTOST_TMP_Pos) /*!< 0x07000000 */
  5073. #define FDCAN_TTOST_TMP FDCAN_TTOST_TMP_Msk /*!<Time Master Priority */
  5074. #define FDCAN_TTOST_GSI_Pos (27U)
  5075. #define FDCAN_TTOST_GSI_Msk (0x1U << FDCAN_TTOST_GSI_Pos) /*!< 0x08000000 */
  5076. #define FDCAN_TTOST_GSI FDCAN_TTOST_GSI_Msk /*!<Gap Started Indicator */
  5077. #define FDCAN_TTOST_WFE_Pos (28U)
  5078. #define FDCAN_TTOST_WFE_Msk (0x1U << FDCAN_TTOST_WFE_Pos) /*!< 0x10000000 */
  5079. #define FDCAN_TTOST_WFE FDCAN_TTOST_WFE_Msk /*!<Wait for Event */
  5080. #define FDCAN_TTOST_AWE_Pos (29U)
  5081. #define FDCAN_TTOST_AWE_Msk (0x1U << FDCAN_TTOST_AWE_Pos) /*!< 0x20000000 */
  5082. #define FDCAN_TTOST_AWE FDCAN_TTOST_AWE_Msk /*!<Application Watchdog Event */
  5083. #define FDCAN_TTOST_WECS_Pos (30U)
  5084. #define FDCAN_TTOST_WECS_Msk (0x1U << FDCAN_TTOST_WECS_Pos) /*!< 0x40000000 */
  5085. #define FDCAN_TTOST_WECS FDCAN_TTOST_WECS_Msk /*!<Wait for External Clock Synchronization */
  5086. #define FDCAN_TTOST_SPL_Pos (31U)
  5087. #define FDCAN_TTOST_SPL_Msk (0x1U << FDCAN_TTOST_SPL_Pos) /*!< 0x80000000 */
  5088. #define FDCAN_TTOST_SPL FDCAN_TTOST_SPL_Msk /*!<Schedule Phase Lock */
  5089. /***************** Bit definition for FDCAN_TURNA register ********************/
  5090. #define FDCAN_TURNA_NAV_Pos (0U)
  5091. #define FDCAN_TURNA_NAV_Msk (0x3FFFFU << FDCAN_TURNA_NAV_Pos) /*!< 0x0003FFFF */
  5092. #define FDCAN_TURNA_NAV FDCAN_TURNA_NAV_Msk /*!<Numerator Actual Value */
  5093. /***************** Bit definition for FDCAN_TTLGT register ********************/
  5094. #define FDCAN_TTLGT_LT_Pos (0U)
  5095. #define FDCAN_TTLGT_LT_Msk (0xFFFFU << FDCAN_TTLGT_LT_Pos) /*!< 0x0000FFFF */
  5096. #define FDCAN_TTLGT_LT FDCAN_TTLGT_LT_Msk /*!<Local Time */
  5097. #define FDCAN_TTLGT_GT_Pos (16U)
  5098. #define FDCAN_TTLGT_GT_Msk (0xFFFFU << FDCAN_TTLGT_GT_Pos) /*!< 0xFFFF0000 */
  5099. #define FDCAN_TTLGT_GT FDCAN_TTLGT_GT_Msk /*!<Global Time */
  5100. /***************** Bit definition for FDCAN_TTCTC register ********************/
  5101. #define FDCAN_TTCTC_CT_Pos (0U)
  5102. #define FDCAN_TTCTC_CT_Msk (0xFFFFU << FDCAN_TTCTC_CT_Pos) /*!< 0x0000FFFF */
  5103. #define FDCAN_TTCTC_CT FDCAN_TTCTC_CT_Msk /*!<Cycle Time */
  5104. #define FDCAN_TTCTC_CC_Pos (16U)
  5105. #define FDCAN_TTCTC_CC_Msk (0x3FU << FDCAN_TTCTC_CC_Pos) /*!< 0x003F0000 */
  5106. #define FDCAN_TTCTC_CC FDCAN_TTCTC_CC_Msk /*!<Cycle Count */
  5107. /***************** Bit definition for FDCAN_TTCPT register ********************/
  5108. #define FDCAN_TTCPT_CCV_Pos (0U)
  5109. #define FDCAN_TTCPT_CCV_Msk (0x3FU << FDCAN_TTCPT_CCV_Pos) /*!< 0x0000003F */
  5110. #define FDCAN_TTCPT_CCV FDCAN_TTCPT_CCV_Msk /*!<Cycle Count Value */
  5111. #define FDCAN_TTCPT_SWV_Pos (16U)
  5112. #define FDCAN_TTCPT_SWV_Msk (0xFFFFU << FDCAN_TTCPT_SWV_Pos) /*!< 0xFFFF0000 */
  5113. #define FDCAN_TTCPT_SWV FDCAN_TTCPT_SWV_Msk /*!<Stop Watch Value */
  5114. /***************** Bit definition for FDCAN_TTCSM register ********************/
  5115. #define FDCAN_TTCSM_CSM_Pos (0U)
  5116. #define FDCAN_TTCSM_CSM_Msk (0xFFFFU << FDCAN_TTCSM_CSM_Pos) /*!< 0x0000FFFF */
  5117. #define FDCAN_TTCSM_CSM FDCAN_TTCSM_CSM_Msk /*!<Cycle Sync Mark */
  5118. /***************** Bit definition for FDCAN_TTTS register *********************/
  5119. #define FDCAN_TTTS_SWTSEL_Pos (0U)
  5120. #define FDCAN_TTTS_SWTSEL_Msk (0x3U << FDCAN_TTTS_SWTSEL_Pos) /*!< 0x00000003 */
  5121. #define FDCAN_TTTS_SWTSEL FDCAN_TTTS_SWTSEL_Msk /*!<Stop watch trigger input selection */
  5122. #define FDCAN_TTTS_EVTSEL_Pos (4U)
  5123. #define FDCAN_TTTS_EVTSEL_Msk (0x3U << FDCAN_TTTS_EVTSEL_Pos) /*!< 0x00000030 */
  5124. #define FDCAN_TTTS_EVTSEL FDCAN_TTTS_EVTSEL_Msk /*!<Event trigger input selection */
  5125. /********************************************************************************/
  5126. /* */
  5127. /* FDCANCCU (Clock Calibration unit) */
  5128. /* */
  5129. /********************************************************************************/
  5130. /***************** Bit definition for FDCANCCU_CREL register ******************/
  5131. #define FDCANCCU_CREL_DAY_Pos (0U)
  5132. #define FDCANCCU_CREL_DAY_Msk (0xFFU << FDCANCCU_CREL_DAY_Pos) /*!< 0x000000FF */
  5133. #define FDCANCCU_CREL_DAY FDCANCCU_CREL_DAY_Msk /*!<Timestamp Day */
  5134. #define FDCANCCU_CREL_MON_Pos (8U)
  5135. #define FDCANCCU_CREL_MON_Msk (0xFFU << FDCANCCU_CREL_MON_Pos) /*!< 0x0000FF00 */
  5136. #define FDCANCCU_CREL_MON FDCANCCU_CREL_MON_Msk /*!<Timestamp Month */
  5137. #define FDCANCCU_CREL_YEAR_Pos (16U)
  5138. #define FDCANCCU_CREL_YEAR_Msk (0xFU << FDCANCCU_CREL_YEAR_Pos) /*!< 0x000F0000 */
  5139. #define FDCANCCU_CREL_YEAR FDCANCCU_CREL_YEAR_Msk /*!<Timestamp Year */
  5140. #define FDCANCCU_CREL_SUBSTEP_Pos (20U)
  5141. #define FDCANCCU_CREL_SUBSTEP_Msk (0xFU << FDCANCCU_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  5142. #define FDCANCCU_CREL_SUBSTEP FDCANCCU_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  5143. #define FDCANCCU_CREL_STEP_Pos (24U)
  5144. #define FDCANCCU_CREL_STEP_Msk (0xFU << FDCANCCU_CREL_STEP_Pos) /*!< 0x0F000000 */
  5145. #define FDCANCCU_CREL_STEP FDCANCCU_CREL_STEP_Msk /*!<Step of Core release */
  5146. #define FDCANCCU_CREL_REL_Pos (28U)
  5147. #define FDCANCCU_CREL_REL_Msk (0xFU << FDCANCCU_CREL_REL_Pos) /*!< 0xF0000000 */
  5148. #define FDCANCCU_CREL_REL FDCANCCU_CREL_REL_Msk /*!<Core release */
  5149. /***************** Bit definition for FDCANCCU_CCFG register ******************/
  5150. #define FDCANCCU_CCFG_TQBT_Pos (0U)
  5151. #define FDCANCCU_CCFG_TQBT_Msk (0x1FU << FDCANCCU_CCFG_TQBT_Pos) /*!< 0x0000001F */
  5152. #define FDCANCCU_CCFG_TQBT FDCANCCU_CCFG_TQBT_Msk /*!<Time Quanta per Bit Time */
  5153. #define FDCANCCU_CCFG_BCC_Pos (6U)
  5154. #define FDCANCCU_CCFG_BCC_Msk (0x1U << FDCANCCU_CCFG_BCC_Pos) /*!< 0x00000040 */
  5155. #define FDCANCCU_CCFG_BCC FDCANCCU_CCFG_BCC_Msk /*!<Bypass Clock Calibration */
  5156. #define FDCANCCU_CCFG_CFL_Pos (7U)
  5157. #define FDCANCCU_CCFG_CFL_Msk (0x1U << FDCANCCU_CCFG_CFL_Pos) /*!< 0x00000080 */
  5158. #define FDCANCCU_CCFG_CFL FDCANCCU_CCFG_CFL_Msk /*!<Calibration Field Length */
  5159. #define FDCANCCU_CCFG_OCPM_Pos (8U)
  5160. #define FDCANCCU_CCFG_OCPM_Msk (0xFFU << FDCANCCU_CCFG_OCPM_Pos) /*!< 0x0000FF00 */
  5161. #define FDCANCCU_CCFG_OCPM FDCANCCU_CCFG_OCPM_Msk /*!<Oscillator Clock Periods Minimum */
  5162. #define FDCANCCU_CCFG_CDIV_Pos (16U)
  5163. #define FDCANCCU_CCFG_CDIV_Msk (0xFU << FDCANCCU_CCFG_CDIV_Pos) /*!< 0x000F0000 */
  5164. #define FDCANCCU_CCFG_CDIV FDCANCCU_CCFG_CDIV_Msk /*!<Clock Divider */
  5165. #define FDCANCCU_CCFG_SWR_Pos (31U)
  5166. #define FDCANCCU_CCFG_SWR_Msk (0x1U << FDCANCCU_CCFG_SWR_Pos) /*!< 0x80000000 */
  5167. #define FDCANCCU_CCFG_SWR FDCANCCU_CCFG_SWR_Msk /*!<Software Reset */
  5168. /***************** Bit definition for FDCANCCU_CSTAT register *****************/
  5169. #define FDCANCCU_CSTAT_OCPC_Pos (0U)
  5170. #define FDCANCCU_CSTAT_OCPC_Msk (0x3FFFFU << FDCANCCU_CSTAT_OCPC_Pos) /*!< 0x0003FFFF */
  5171. #define FDCANCCU_CSTAT_OCPC FDCANCCU_CSTAT_OCPC_Msk /*!<Oscillator Clock Period Counter */
  5172. #define FDCANCCU_CSTAT_TQC_Pos (18U)
  5173. #define FDCANCCU_CSTAT_TQC_Msk (0x7FFU << FDCANCCU_CSTAT_TQC_Pos) /*!< 0x1FFC0000 */
  5174. #define FDCANCCU_CSTAT_TQC FDCANCCU_CSTAT_TQC_Msk /*!<Time Quanta Counter */
  5175. #define FDCANCCU_CSTAT_CALS_Pos (30U)
  5176. #define FDCANCCU_CSTAT_CALS_Msk (0x3U << FDCANCCU_CSTAT_CALS_Pos) /*!< 0xC0000000 */
  5177. #define FDCANCCU_CSTAT_CALS FDCANCCU_CSTAT_CALS_Msk /*!<Calibration State */
  5178. /****************** Bit definition for FDCANCCU_CWD register ******************/
  5179. #define FDCANCCU_CWD_WDC_Pos (0U)
  5180. #define FDCANCCU_CWD_WDC_Msk (0xFFFFU << FDCANCCU_CWD_WDC_Pos) /*!< 0x0000FFFF */
  5181. #define FDCANCCU_CWD_WDC FDCANCCU_CWD_WDC_Msk /*!<Watchdog Configuration */
  5182. #define FDCANCCU_CWD_WDV_Pos (16U)
  5183. #define FDCANCCU_CWD_WDV_Msk (0xFFFFU << FDCANCCU_CWD_WDV_Pos) /*!< 0xFFFF0000 */
  5184. #define FDCANCCU_CWD_WDV FDCANCCU_CWD_WDV_Msk /*!<Watchdog Value */
  5185. /****************** Bit definition for FDCANCCU_IR register *******************/
  5186. #define FDCANCCU_IR_CWE_Pos (0U)
  5187. #define FDCANCCU_IR_CWE_Msk (0x1U << FDCANCCU_IR_CWE_Pos) /*!< 0x00000001 */
  5188. #define FDCANCCU_IR_CWE FDCANCCU_IR_CWE_Msk /*!<Calibration Watchdog Event */
  5189. #define FDCANCCU_IR_CSC_Pos (1U)
  5190. #define FDCANCCU_IR_CSC_Msk (0x1U << FDCANCCU_IR_CSC_Pos) /*!< 0x00000002 */
  5191. #define FDCANCCU_IR_CSC FDCANCCU_IR_CSC_Msk /*!<Calibration State Changed */
  5192. /****************** Bit definition for FDCANCCU_IE register *******************/
  5193. #define FDCANCCU_IE_CWEE_Pos (0U)
  5194. #define FDCANCCU_IE_CWEE_Msk (0x1U << FDCANCCU_IE_CWEE_Pos) /*!< 0x00000001 */
  5195. #define FDCANCCU_IE_CWEE FDCANCCU_IE_CWEE_Msk /*!<Calibration Watchdog Event Enable */
  5196. #define FDCANCCU_IE_CSCE_Pos (1U)
  5197. #define FDCANCCU_IE_CSCE_Msk (0x1U << FDCANCCU_IE_CSCE_Pos) /*!< 0x00000002 */
  5198. #define FDCANCCU_IE_CSCE FDCANCCU_IE_CSCE_Msk /*!<Calibration State Changed Enable */
  5199. /******************************************************************************/
  5200. /* */
  5201. /* HDMI-CEC (CEC) */
  5202. /* */
  5203. /******************************************************************************/
  5204. /******************* Bit definition for CEC_CR register *********************/
  5205. #define CEC_CR_CECEN_Pos (0U)
  5206. #define CEC_CR_CECEN_Msk (0x1U << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  5207. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  5208. #define CEC_CR_TXSOM_Pos (1U)
  5209. #define CEC_CR_TXSOM_Msk (0x1U << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  5210. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  5211. #define CEC_CR_TXEOM_Pos (2U)
  5212. #define CEC_CR_TXEOM_Msk (0x1U << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  5213. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  5214. /******************* Bit definition for CEC_CFGR register *******************/
  5215. #define CEC_CFGR_SFT_Pos (0U)
  5216. #define CEC_CFGR_SFT_Msk (0x7U << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  5217. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  5218. #define CEC_CFGR_RXTOL_Pos (3U)
  5219. #define CEC_CFGR_RXTOL_Msk (0x1U << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  5220. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  5221. #define CEC_CFGR_BRESTP_Pos (4U)
  5222. #define CEC_CFGR_BRESTP_Msk (0x1U << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  5223. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  5224. #define CEC_CFGR_BREGEN_Pos (5U)
  5225. #define CEC_CFGR_BREGEN_Msk (0x1U << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  5226. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  5227. #define CEC_CFGR_LBPEGEN_Pos (6U)
  5228. #define CEC_CFGR_LBPEGEN_Msk (0x1U << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  5229. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error generation */
  5230. #define CEC_CFGR_SFTOPT_Pos (8U)
  5231. #define CEC_CFGR_SFTOPT_Msk (0x1U << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  5232. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  5233. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  5234. #define CEC_CFGR_BRDNOGEN_Msk (0x1U << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  5235. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No error generation */
  5236. #define CEC_CFGR_OAR_Pos (16U)
  5237. #define CEC_CFGR_OAR_Msk (0x7FFFU << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  5238. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  5239. #define CEC_CFGR_LSTN_Pos (31U)
  5240. #define CEC_CFGR_LSTN_Msk (0x1U << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  5241. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  5242. /******************* Bit definition for CEC_TXDR register *******************/
  5243. #define CEC_TXDR_TXD_Pos (0U)
  5244. #define CEC_TXDR_TXD_Msk (0xFFU << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  5245. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  5246. /******************* Bit definition for CEC_RXDR register *******************/
  5247. #define CEC_TXDR_RXD_Pos (0U)
  5248. #define CEC_TXDR_RXD_Msk (0xFFU << CEC_TXDR_RXD_Pos) /*!< 0x000000FF */
  5249. #define CEC_TXDR_RXD CEC_TXDR_RXD_Msk /*!< CEC Rx Data */
  5250. /******************* Bit definition for CEC_ISR register ********************/
  5251. #define CEC_ISR_RXBR_Pos (0U)
  5252. #define CEC_ISR_RXBR_Msk (0x1U << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  5253. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  5254. #define CEC_ISR_RXEND_Pos (1U)
  5255. #define CEC_ISR_RXEND_Msk (0x1U << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  5256. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  5257. #define CEC_ISR_RXOVR_Pos (2U)
  5258. #define CEC_ISR_RXOVR_Msk (0x1U << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  5259. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  5260. #define CEC_ISR_BRE_Pos (3U)
  5261. #define CEC_ISR_BRE_Msk (0x1U << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  5262. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  5263. #define CEC_ISR_SBPE_Pos (4U)
  5264. #define CEC_ISR_SBPE_Msk (0x1U << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  5265. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  5266. #define CEC_ISR_LBPE_Pos (5U)
  5267. #define CEC_ISR_LBPE_Msk (0x1U << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  5268. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  5269. #define CEC_ISR_RXACKE_Pos (6U)
  5270. #define CEC_ISR_RXACKE_Msk (0x1U << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  5271. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  5272. #define CEC_ISR_ARBLST_Pos (7U)
  5273. #define CEC_ISR_ARBLST_Msk (0x1U << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  5274. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  5275. #define CEC_ISR_TXBR_Pos (8U)
  5276. #define CEC_ISR_TXBR_Msk (0x1U << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  5277. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  5278. #define CEC_ISR_TXEND_Pos (9U)
  5279. #define CEC_ISR_TXEND_Msk (0x1U << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  5280. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  5281. #define CEC_ISR_TXUDR_Pos (10U)
  5282. #define CEC_ISR_TXUDR_Msk (0x1U << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  5283. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  5284. #define CEC_ISR_TXERR_Pos (11U)
  5285. #define CEC_ISR_TXERR_Msk (0x1U << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  5286. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  5287. #define CEC_ISR_TXACKE_Pos (12U)
  5288. #define CEC_ISR_TXACKE_Msk (0x1U << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  5289. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  5290. /******************* Bit definition for CEC_IER register ********************/
  5291. #define CEC_IER_RXBRIE_Pos (0U)
  5292. #define CEC_IER_RXBRIE_Msk (0x1U << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  5293. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  5294. #define CEC_IER_RXENDIE_Pos (1U)
  5295. #define CEC_IER_RXENDIE_Msk (0x1U << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  5296. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  5297. #define CEC_IER_RXOVRIE_Pos (2U)
  5298. #define CEC_IER_RXOVRIE_Msk (0x1U << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  5299. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  5300. #define CEC_IER_BREIE_Pos (3U)
  5301. #define CEC_IER_BREIE_Msk (0x1U << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  5302. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  5303. #define CEC_IER_SBPEIE_Pos (4U)
  5304. #define CEC_IER_SBPEIE_Msk (0x1U << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  5305. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable */
  5306. #define CEC_IER_LBPEIE_Pos (5U)
  5307. #define CEC_IER_LBPEIE_Msk (0x1U << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  5308. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  5309. #define CEC_IER_RXACKEIE_Pos (6U)
  5310. #define CEC_IER_RXACKEIE_Msk (0x1U << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  5311. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  5312. #define CEC_IER_ARBLSTIE_Pos (7U)
  5313. #define CEC_IER_ARBLSTIE_Msk (0x1U << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  5314. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  5315. #define CEC_IER_TXBRIE_Pos (8U)
  5316. #define CEC_IER_TXBRIE_Msk (0x1U << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  5317. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  5318. #define CEC_IER_TXENDIE_Pos (9U)
  5319. #define CEC_IER_TXENDIE_Msk (0x1U << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  5320. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  5321. #define CEC_IER_TXUDRIE_Pos (10U)
  5322. #define CEC_IER_TXUDRIE_Msk (0x1U << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  5323. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  5324. #define CEC_IER_TXERRIE_Pos (11U)
  5325. #define CEC_IER_TXERRIE_Msk (0x1U << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  5326. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  5327. #define CEC_IER_TXACKEIE_Pos (12U)
  5328. #define CEC_IER_TXACKEIE_Msk (0x1U << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  5329. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  5330. /******************************************************************************/
  5331. /* */
  5332. /* CRC calculation unit */
  5333. /* */
  5334. /******************************************************************************/
  5335. /******************* Bit definition for CRC_DR register *********************/
  5336. #define CRC_DR_DR_Pos (0U)
  5337. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  5338. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  5339. /******************* Bit definition for CRC_IDR register ********************/
  5340. #define CRC_IDR_IDR_Pos (0U)
  5341. #define CRC_IDR_IDR_Msk (0xFFFFFFFFU << CRC_IDR_IDR_Pos) /*!< 0xFFFFFFFF */
  5342. #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 32-bit data register bits */
  5343. /******************** Bit definition for CRC_CR register ********************/
  5344. #define CRC_CR_RESET_Pos (0U)
  5345. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  5346. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  5347. #define CRC_CR_POLYSIZE_Pos (3U)
  5348. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  5349. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  5350. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  5351. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  5352. #define CRC_CR_REV_IN_Pos (5U)
  5353. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  5354. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  5355. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  5356. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  5357. #define CRC_CR_REV_OUT_Pos (7U)
  5358. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  5359. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  5360. /******************* Bit definition for CRC_INIT register *******************/
  5361. #define CRC_INIT_INIT_Pos (0U)
  5362. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  5363. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  5364. /******************* Bit definition for CRC_POL register ********************/
  5365. #define CRC_POL_POL_Pos (0U)
  5366. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  5367. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  5368. /******************************************************************************/
  5369. /* */
  5370. /* CRS Clock Recovery System */
  5371. /******************************************************************************/
  5372. /******************* Bit definition for CRS_CR register *********************/
  5373. #define CRS_CR_SYNCOKIE_Pos (0U)
  5374. #define CRS_CR_SYNCOKIE_Msk (0x1U << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  5375. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */
  5376. #define CRS_CR_SYNCWARNIE_Pos (1U)
  5377. #define CRS_CR_SYNCWARNIE_Msk (0x1U << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  5378. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */
  5379. #define CRS_CR_ERRIE_Pos (2U)
  5380. #define CRS_CR_ERRIE_Msk (0x1U << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  5381. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */
  5382. #define CRS_CR_ESYNCIE_Pos (3U)
  5383. #define CRS_CR_ESYNCIE_Msk (0x1U << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  5384. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */
  5385. #define CRS_CR_CEN_Pos (5U)
  5386. #define CRS_CR_CEN_Msk (0x1U << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  5387. #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */
  5388. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  5389. #define CRS_CR_AUTOTRIMEN_Msk (0x1U << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  5390. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */
  5391. #define CRS_CR_SWSYNC_Pos (7U)
  5392. #define CRS_CR_SWSYNC_Msk (0x1U << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  5393. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
  5394. #define CRS_CR_TRIM_Pos (8U)
  5395. #define CRS_CR_TRIM_Msk (0x3FU << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
  5396. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
  5397. /******************* Bit definition for CRS_CFGR register *********************/
  5398. #define CRS_CFGR_RELOAD_Pos (0U)
  5399. #define CRS_CFGR_RELOAD_Msk (0xFFFFU << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  5400. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */
  5401. #define CRS_CFGR_FELIM_Pos (16U)
  5402. #define CRS_CFGR_FELIM_Msk (0xFFU << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  5403. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */
  5404. #define CRS_CFGR_SYNCDIV_Pos (24U)
  5405. #define CRS_CFGR_SYNCDIV_Msk (0x7U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  5406. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */
  5407. #define CRS_CFGR_SYNCDIV_0 (0x1U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  5408. #define CRS_CFGR_SYNCDIV_1 (0x2U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  5409. #define CRS_CFGR_SYNCDIV_2 (0x4U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  5410. #define CRS_CFGR_SYNCSRC_Pos (28U)
  5411. #define CRS_CFGR_SYNCSRC_Msk (0x3U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  5412. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */
  5413. #define CRS_CFGR_SYNCSRC_0 (0x1U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  5414. #define CRS_CFGR_SYNCSRC_1 (0x2U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  5415. #define CRS_CFGR_SYNCPOL_Pos (31U)
  5416. #define CRS_CFGR_SYNCPOL_Msk (0x1U << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  5417. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */
  5418. /******************* Bit definition for CRS_ISR register *********************/
  5419. #define CRS_ISR_SYNCOKF_Pos (0U)
  5420. #define CRS_ISR_SYNCOKF_Msk (0x1U << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  5421. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */
  5422. #define CRS_ISR_SYNCWARNF_Pos (1U)
  5423. #define CRS_ISR_SYNCWARNF_Msk (0x1U << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  5424. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */
  5425. #define CRS_ISR_ERRF_Pos (2U)
  5426. #define CRS_ISR_ERRF_Msk (0x1U << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  5427. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */
  5428. #define CRS_ISR_ESYNCF_Pos (3U)
  5429. #define CRS_ISR_ESYNCF_Msk (0x1U << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  5430. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */
  5431. #define CRS_ISR_SYNCERR_Pos (8U)
  5432. #define CRS_ISR_SYNCERR_Msk (0x1U << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  5433. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */
  5434. #define CRS_ISR_SYNCMISS_Pos (9U)
  5435. #define CRS_ISR_SYNCMISS_Msk (0x1U << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  5436. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */
  5437. #define CRS_ISR_TRIMOVF_Pos (10U)
  5438. #define CRS_ISR_TRIMOVF_Msk (0x1U << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  5439. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */
  5440. #define CRS_ISR_FEDIR_Pos (15U)
  5441. #define CRS_ISR_FEDIR_Msk (0x1U << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  5442. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */
  5443. #define CRS_ISR_FECAP_Pos (16U)
  5444. #define CRS_ISR_FECAP_Msk (0xFFFFU << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  5445. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */
  5446. /******************* Bit definition for CRS_ICR register *********************/
  5447. #define CRS_ICR_SYNCOKC_Pos (0U)
  5448. #define CRS_ICR_SYNCOKC_Msk (0x1U << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  5449. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */
  5450. #define CRS_ICR_SYNCWARNC_Pos (1U)
  5451. #define CRS_ICR_SYNCWARNC_Msk (0x1U << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  5452. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */
  5453. #define CRS_ICR_ERRC_Pos (2U)
  5454. #define CRS_ICR_ERRC_Msk (0x1U << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  5455. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */
  5456. #define CRS_ICR_ESYNCC_Pos (3U)
  5457. #define CRS_ICR_ESYNCC_Msk (0x1U << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  5458. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */
  5459. /******************************************************************************/
  5460. /* */
  5461. /* Crypto Processor */
  5462. /* */
  5463. /******************************************************************************/
  5464. /******************* Bits definition for CRYP_CR register ********************/
  5465. #define CRYP_CR_ALGODIR_Pos (2U)
  5466. #define CRYP_CR_ALGODIR_Msk (0x1U << CRYP_CR_ALGODIR_Pos) /*!< 0x00000004 */
  5467. #define CRYP_CR_ALGODIR CRYP_CR_ALGODIR_Msk
  5468. #define CRYP_CR_ALGOMODE_Pos (3U)
  5469. #define CRYP_CR_ALGOMODE_Msk (0x10007U << CRYP_CR_ALGOMODE_Pos) /*!< 0x00080038 */
  5470. #define CRYP_CR_ALGOMODE CRYP_CR_ALGOMODE_Msk
  5471. #define CRYP_CR_ALGOMODE_0 (0x00001U << CRYP_CR_ALGOMODE_Pos) /*!< 0x00000008 */
  5472. #define CRYP_CR_ALGOMODE_1 (0x00002U << CRYP_CR_ALGOMODE_Pos) /*!< 0x00000010 */
  5473. #define CRYP_CR_ALGOMODE_2 (0x00004U << CRYP_CR_ALGOMODE_Pos) /*!< 0x00000020 */
  5474. #define CRYP_CR_ALGOMODE_TDES_ECB ((uint32_t)0x00000000)
  5475. #define CRYP_CR_ALGOMODE_TDES_CBC_Pos (3U)
  5476. #define CRYP_CR_ALGOMODE_TDES_CBC_Msk (0x1U << CRYP_CR_ALGOMODE_TDES_CBC_Pos) /*!< 0x00000008 */
  5477. #define CRYP_CR_ALGOMODE_TDES_CBC CRYP_CR_ALGOMODE_TDES_CBC_Msk
  5478. #define CRYP_CR_ALGOMODE_DES_ECB_Pos (4U)
  5479. #define CRYP_CR_ALGOMODE_DES_ECB_Msk (0x1U << CRYP_CR_ALGOMODE_DES_ECB_Pos) /*!< 0x00000010 */
  5480. #define CRYP_CR_ALGOMODE_DES_ECB CRYP_CR_ALGOMODE_DES_ECB_Msk
  5481. #define CRYP_CR_ALGOMODE_DES_CBC_Pos (3U)
  5482. #define CRYP_CR_ALGOMODE_DES_CBC_Msk (0x3U << CRYP_CR_ALGOMODE_DES_CBC_Pos) /*!< 0x00000018 */
  5483. #define CRYP_CR_ALGOMODE_DES_CBC CRYP_CR_ALGOMODE_DES_CBC_Msk
  5484. #define CRYP_CR_ALGOMODE_AES_ECB_Pos (5U)
  5485. #define CRYP_CR_ALGOMODE_AES_ECB_Msk (0x1U << CRYP_CR_ALGOMODE_AES_ECB_Pos) /*!< 0x00000020 */
  5486. #define CRYP_CR_ALGOMODE_AES_ECB CRYP_CR_ALGOMODE_AES_ECB_Msk
  5487. #define CRYP_CR_ALGOMODE_AES_CBC_Pos (3U)
  5488. #define CRYP_CR_ALGOMODE_AES_CBC_Msk (0x5U << CRYP_CR_ALGOMODE_AES_CBC_Pos) /*!< 0x00000028 */
  5489. #define CRYP_CR_ALGOMODE_AES_CBC CRYP_CR_ALGOMODE_AES_CBC_Msk
  5490. #define CRYP_CR_ALGOMODE_AES_CTR_Pos (4U)
  5491. #define CRYP_CR_ALGOMODE_AES_CTR_Msk (0x3U << CRYP_CR_ALGOMODE_AES_CTR_Pos) /*!< 0x00000030 */
  5492. #define CRYP_CR_ALGOMODE_AES_CTR CRYP_CR_ALGOMODE_AES_CTR_Msk
  5493. #define CRYP_CR_ALGOMODE_AES_KEY_Pos (3U)
  5494. #define CRYP_CR_ALGOMODE_AES_KEY_Msk (0x7U << CRYP_CR_ALGOMODE_AES_KEY_Pos) /*!< 0x00000038 */
  5495. #define CRYP_CR_ALGOMODE_AES_KEY CRYP_CR_ALGOMODE_AES_KEY_Msk
  5496. #define CRYP_CR_ALGOMODE_AES_GCM_Pos (19U)
  5497. #define CRYP_CR_ALGOMODE_AES_GCM_Msk (0x1U << CRYP_CR_ALGOMODE_AES_GCM_Pos) /*!< 0x00080000 */
  5498. #define CRYP_CR_ALGOMODE_AES_GCM CRYP_CR_ALGOMODE_AES_GCM_Msk
  5499. #define CRYP_CR_ALGOMODE_AES_CCM_Pos (3U)
  5500. #define CRYP_CR_ALGOMODE_AES_CCM_Msk (0x10001U << CRYP_CR_ALGOMODE_AES_CCM_Pos) /*!< 0x00080008 */
  5501. #define CRYP_CR_ALGOMODE_AES_CCM CRYP_CR_ALGOMODE_AES_CCM_Msk
  5502. #define CRYP_CR_DATATYPE_Pos (6U)
  5503. #define CRYP_CR_DATATYPE_Msk (0x3U << CRYP_CR_DATATYPE_Pos) /*!< 0x000000C0 */
  5504. #define CRYP_CR_DATATYPE CRYP_CR_DATATYPE_Msk
  5505. #define CRYP_CR_DATATYPE_0 (0x1U << CRYP_CR_DATATYPE_Pos) /*!< 0x00000040 */
  5506. #define CRYP_CR_DATATYPE_1 (0x2U << CRYP_CR_DATATYPE_Pos) /*!< 0x00000080 */
  5507. #define CRYP_CR_KEYSIZE_Pos (8U)
  5508. #define CRYP_CR_KEYSIZE_Msk (0x3U << CRYP_CR_KEYSIZE_Pos) /*!< 0x00000300 */
  5509. #define CRYP_CR_KEYSIZE CRYP_CR_KEYSIZE_Msk
  5510. #define CRYP_CR_KEYSIZE_0 (0x1U << CRYP_CR_KEYSIZE_Pos) /*!< 0x00000100 */
  5511. #define CRYP_CR_KEYSIZE_1 (0x2U << CRYP_CR_KEYSIZE_Pos) /*!< 0x00000200 */
  5512. #define CRYP_CR_FFLUSH_Pos (14U)
  5513. #define CRYP_CR_FFLUSH_Msk (0x1U << CRYP_CR_FFLUSH_Pos) /*!< 0x00004000 */
  5514. #define CRYP_CR_FFLUSH CRYP_CR_FFLUSH_Msk
  5515. #define CRYP_CR_CRYPEN_Pos (15U)
  5516. #define CRYP_CR_CRYPEN_Msk (0x1U << CRYP_CR_CRYPEN_Pos) /*!< 0x00008000 */
  5517. #define CRYP_CR_CRYPEN CRYP_CR_CRYPEN_Msk
  5518. #define CRYP_CR_GCM_CCMPH_Pos (16U)
  5519. #define CRYP_CR_GCM_CCMPH_Msk (0x3U << CRYP_CR_GCM_CCMPH_Pos) /*!< 0x00030000 */
  5520. #define CRYP_CR_GCM_CCMPH CRYP_CR_GCM_CCMPH_Msk
  5521. #define CRYP_CR_GCM_CCMPH_0 (0x1U << CRYP_CR_GCM_CCMPH_Pos) /*!< 0x00010000 */
  5522. #define CRYP_CR_GCM_CCMPH_1 (0x2U << CRYP_CR_GCM_CCMPH_Pos) /*!< 0x00020000 */
  5523. #define CRYP_CR_ALGOMODE_3 ((uint32_t)0x00080000)
  5524. /****************** Bits definition for CRYP_SR register *********************/
  5525. #define CRYP_SR_IFEM_Pos (0U)
  5526. #define CRYP_SR_IFEM_Msk (0x1U << CRYP_SR_IFEM_Pos) /*!< 0x00000001 */
  5527. #define CRYP_SR_IFEM CRYP_SR_IFEM_Msk
  5528. #define CRYP_SR_IFNF_Pos (1U)
  5529. #define CRYP_SR_IFNF_Msk (0x1U << CRYP_SR_IFNF_Pos) /*!< 0x00000002 */
  5530. #define CRYP_SR_IFNF CRYP_SR_IFNF_Msk
  5531. #define CRYP_SR_OFNE_Pos (2U)
  5532. #define CRYP_SR_OFNE_Msk (0x1U << CRYP_SR_OFNE_Pos) /*!< 0x00000004 */
  5533. #define CRYP_SR_OFNE CRYP_SR_OFNE_Msk
  5534. #define CRYP_SR_OFFU_Pos (3U)
  5535. #define CRYP_SR_OFFU_Msk (0x1U << CRYP_SR_OFFU_Pos) /*!< 0x00000008 */
  5536. #define CRYP_SR_OFFU CRYP_SR_OFFU_Msk
  5537. #define CRYP_SR_BUSY_Pos (4U)
  5538. #define CRYP_SR_BUSY_Msk (0x1U << CRYP_SR_BUSY_Pos) /*!< 0x00000010 */
  5539. #define CRYP_SR_BUSY CRYP_SR_BUSY_Msk
  5540. /****************** Bits definition for CRYP_DMACR register ******************/
  5541. #define CRYP_DMACR_DIEN_Pos (0U)
  5542. #define CRYP_DMACR_DIEN_Msk (0x1U << CRYP_DMACR_DIEN_Pos) /*!< 0x00000001 */
  5543. #define CRYP_DMACR_DIEN CRYP_DMACR_DIEN_Msk
  5544. #define CRYP_DMACR_DOEN_Pos (1U)
  5545. #define CRYP_DMACR_DOEN_Msk (0x1U << CRYP_DMACR_DOEN_Pos) /*!< 0x00000002 */
  5546. #define CRYP_DMACR_DOEN CRYP_DMACR_DOEN_Msk
  5547. /***************** Bits definition for CRYP_IMSCR register ******************/
  5548. #define CRYP_IMSCR_INIM_Pos (0U)
  5549. #define CRYP_IMSCR_INIM_Msk (0x1U << CRYP_IMSCR_INIM_Pos) /*!< 0x00000001 */
  5550. #define CRYP_IMSCR_INIM CRYP_IMSCR_INIM_Msk
  5551. #define CRYP_IMSCR_OUTIM_Pos (1U)
  5552. #define CRYP_IMSCR_OUTIM_Msk (0x1U << CRYP_IMSCR_OUTIM_Pos) /*!< 0x00000002 */
  5553. #define CRYP_IMSCR_OUTIM CRYP_IMSCR_OUTIM_Msk
  5554. /****************** Bits definition for CRYP_RISR register *******************/
  5555. #define CRYP_RISR_INRIS_Pos (0U)
  5556. #define CRYP_RISR_INRIS_Msk (0x1U << CRYP_RISR_INRIS_Pos) /*!< 0x00000001 */
  5557. #define CRYP_RISR_INRIS CRYP_RISR_INRIS_Msk
  5558. #define CRYP_RISR_OUTRIS_Pos (1U)
  5559. #define CRYP_RISR_OUTRIS_Msk (0x1U << CRYP_RISR_OUTRIS_Pos) /*!< 0x00000002 */
  5560. #define CRYP_RISR_OUTRIS CRYP_RISR_OUTRIS_Msk
  5561. /****************** Bits definition for CRYP_MISR register *******************/
  5562. #define CRYP_MISR_INMIS_Pos (0U)
  5563. #define CRYP_MISR_INMIS_Msk (0x1U << CRYP_MISR_INMIS_Pos) /*!< 0x00000001 */
  5564. #define CRYP_MISR_INMIS CRYP_MISR_INMIS_Msk
  5565. #define CRYP_MISR_OUTMIS_Pos (1U)
  5566. #define CRYP_MISR_OUTMIS_Msk (0x1U << CRYP_MISR_OUTMIS_Pos) /*!< 0x00000002 */
  5567. #define CRYP_MISR_OUTMIS CRYP_MISR_OUTMIS_Msk
  5568. /******************************************************************************/
  5569. /* */
  5570. /* Digital to Analog Converter */
  5571. /* */
  5572. /******************************************************************************/
  5573. /******************** Bit definition for DAC_CR register ********************/
  5574. #define DAC_CR_EN1_Pos (0U)
  5575. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  5576. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */
  5577. #define DAC_CR_TEN1_Pos (1U)
  5578. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000002 */
  5579. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */
  5580. #define DAC_CR_TSEL1_Pos (2U)
  5581. #define DAC_CR_TSEL1_Msk (0xFU << DAC_CR_TSEL1_Pos) /*!< 0x0000003C */
  5582. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[2:0] (DAC channel1 Trigger selection) */
  5583. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000004 */
  5584. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  5585. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  5586. #define DAC_CR_TSEL1_3 (0x8U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  5587. #define DAC_CR_WAVE1_Pos (6U)
  5588. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  5589. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  5590. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  5591. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  5592. #define DAC_CR_MAMP1_Pos (8U)
  5593. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  5594. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  5595. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  5596. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  5597. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  5598. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  5599. #define DAC_CR_DMAEN1_Pos (12U)
  5600. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5601. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */
  5602. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5603. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5604. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/
  5605. #define DAC_CR_CEN1_Pos (14U)
  5606. #define DAC_CR_CEN1_Msk (0x1U << DAC_CR_CEN1_Pos) /*!< 0x00004000 */
  5607. #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/
  5608. #define DAC_CR_EN2_Pos (16U)
  5609. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5610. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */
  5611. #define DAC_CR_TEN2_Pos (17U)
  5612. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00020000 */
  5613. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */
  5614. #define DAC_CR_TSEL2_Pos (18U)
  5615. #define DAC_CR_TSEL2_Msk (0xFU << DAC_CR_TSEL2_Pos) /*!< 0x003C0000 */
  5616. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[2:0] (DAC channel2 Trigger selection) */
  5617. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00040000 */
  5618. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5619. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5620. #define DAC_CR_TSEL2_3 (0x8U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5621. #define DAC_CR_WAVE2_Pos (22U)
  5622. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5623. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5624. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5625. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5626. #define DAC_CR_MAMP2_Pos (24U)
  5627. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5628. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5629. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5630. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5631. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5632. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5633. #define DAC_CR_DMAEN2_Pos (28U)
  5634. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5635. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */
  5636. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5637. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5638. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/
  5639. #define DAC_CR_CEN2_Pos (30U)
  5640. #define DAC_CR_CEN2_Msk (0x1U << DAC_CR_CEN2_Pos) /*!< 0x40000000 */
  5641. #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/
  5642. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5643. #define DAC_SWTRIGR_SWTRIG1 ((uint8_t)0x01) /*!<DAC channel1 software trigger */
  5644. #define DAC_SWTRIGR_SWTRIG2 ((uint8_t)0x02) /*!<DAC channel2 software trigger */
  5645. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5646. #define DAC_DHR12R1_DACC1DHR ((uint16_t)0x0FFF) /*!<DAC channel1 12-bit Right aligned data */
  5647. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5648. #define DAC_DHR12L1_DACC1DHR ((uint16_t)0xFFF0) /*!<DAC channel1 12-bit Left aligned data */
  5649. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5650. #define DAC_DHR8R1_DACC1DHR ((uint8_t)0xFF) /*!<DAC channel1 8-bit Right aligned data */
  5651. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5652. #define DAC_DHR12R2_DACC2DHR ((uint16_t)0x0FFF) /*!<DAC channel2 12-bit Right aligned data */
  5653. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5654. #define DAC_DHR12L2_DACC2DHR ((uint16_t)0xFFF0) /*!<DAC channel2 12-bit Left aligned data */
  5655. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5656. #define DAC_DHR8R2_DACC2DHR ((uint8_t)0xFF) /*!<DAC channel2 8-bit Right aligned data */
  5657. /***************** Bit definition for DAC_DHR12RD register ******************/
  5658. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5659. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5660. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  5661. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5662. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5663. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  5664. /***************** Bit definition for DAC_DHR12LD register ******************/
  5665. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5666. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5667. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  5668. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5669. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5670. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  5671. /****************** Bit definition for DAC_DHR8RD register ******************/
  5672. #define DAC_DHR8RD_DACC1DHR ((uint16_t)0x00FF) /*!<DAC channel1 8-bit Right aligned data */
  5673. #define DAC_DHR8RD_DACC2DHR ((uint16_t)0xFF00) /*!<DAC channel2 8-bit Right aligned data */
  5674. /******************* Bit definition for DAC_DOR1 register *******************/
  5675. #define DAC_DOR1_DACC1DOR ((uint16_t)0x0FFF) /*!<DAC channel1 data output */
  5676. /******************* Bit definition for DAC_DOR2 register *******************/
  5677. #define DAC_DOR2_DACC2DOR ((uint16_t)0x0FFF) /*!<DAC channel2 data output */
  5678. /******************** Bit definition for DAC_SR register ********************/
  5679. #define DAC_SR_DMAUDR1_Pos (13U)
  5680. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5681. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */
  5682. #define DAC_SR_CAL_FLAG1_Pos (14U)
  5683. #define DAC_SR_CAL_FLAG1_Msk (0x1U << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */
  5684. #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */
  5685. #define DAC_SR_BWST1_Pos (15U)
  5686. #define DAC_SR_BWST1_Msk (0x4001U << DAC_SR_BWST1_Pos) /*!< 0x20008000 */
  5687. #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */
  5688. #define DAC_SR_DMAUDR2_Pos (29U)
  5689. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5690. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */
  5691. #define DAC_SR_CAL_FLAG2_Pos (30U)
  5692. #define DAC_SR_CAL_FLAG2_Msk (0x1U << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */
  5693. #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */
  5694. #define DAC_SR_BWST2_Pos (31U)
  5695. #define DAC_SR_BWST2_Msk (0x1U << DAC_SR_BWST2_Pos) /*!< 0x80000000 */
  5696. #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */
  5697. /******************* Bit definition for DAC_CCR register ********************/
  5698. #define DAC_CCR_OTRIM1_Pos (0U)
  5699. #define DAC_CCR_OTRIM1_Msk (0x1FU << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */
  5700. #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */
  5701. #define DAC_CCR_OTRIM2_Pos (16U)
  5702. #define DAC_CCR_OTRIM2_Msk (0x1FU << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */
  5703. #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */
  5704. /******************* Bit definition for DAC_MCR register *******************/
  5705. #define DAC_MCR_MODE1_Pos (0U)
  5706. #define DAC_MCR_MODE1_Msk (0x7U << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */
  5707. #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */
  5708. #define DAC_MCR_MODE1_0 (0x1U << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */
  5709. #define DAC_MCR_MODE1_1 (0x2U << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */
  5710. #define DAC_MCR_MODE1_2 (0x4U << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */
  5711. #define DAC_MCR_MODE2_Pos (16U)
  5712. #define DAC_MCR_MODE2_Msk (0x7U << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */
  5713. #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */
  5714. #define DAC_MCR_MODE2_0 (0x1U << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */
  5715. #define DAC_MCR_MODE2_1 (0x2U << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */
  5716. #define DAC_MCR_MODE2_2 (0x4U << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */
  5717. /****************** Bit definition for DAC_SHSR1 register ******************/
  5718. #define DAC_SHSR1_TSAMPLE1_Pos (0U)
  5719. #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFU << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */
  5720. #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */
  5721. /****************** Bit definition for DAC_SHSR2 register ******************/
  5722. #define DAC_SHSR1_TSAMPLE2_Pos (0U)
  5723. #define DAC_SHSR1_TSAMPLE2_Msk (0x3FFU << DAC_SHSR1_TSAMPLE2_Pos) /*!< 0x000003FF */
  5724. #define DAC_SHSR1_TSAMPLE2 DAC_SHSR1_TSAMPLE2_Msk /*!<DAC channel2 sample time */
  5725. /****************** Bit definition for DAC_SHHR register ******************/
  5726. #define DAC_SHHR_THOLD1_Pos (0U)
  5727. #define DAC_SHHR_THOLD1_Msk (0x3FFU << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */
  5728. #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */
  5729. #define DAC_SHHR_THOLD2_Pos (16U)
  5730. #define DAC_SHHR_THOLD2_Msk (0x3FFU << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */
  5731. #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */
  5732. /****************** Bit definition for DAC_SHRR register ******************/
  5733. #define DAC_SHRR_TREFRESH1_Pos (0U)
  5734. #define DAC_SHRR_TREFRESH1_Msk (0xFFU << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */
  5735. #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */
  5736. #define DAC_SHRR_TREFRESH2_Pos (16U)
  5737. #define DAC_SHRR_TREFRESH2_Msk (0xFFU << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */
  5738. #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */
  5739. /******************************************************************************/
  5740. /* */
  5741. /* DCMI */
  5742. /* */
  5743. /******************************************************************************/
  5744. /******************** Bits definition for DCMI_CR register ******************/
  5745. #define DCMI_CR_CAPTURE_Pos (0U)
  5746. #define DCMI_CR_CAPTURE_Msk (0x1U << DCMI_CR_CAPTURE_Pos) /*!< 0x00000001 */
  5747. #define DCMI_CR_CAPTURE DCMI_CR_CAPTURE_Msk
  5748. #define DCMI_CR_CM_Pos (1U)
  5749. #define DCMI_CR_CM_Msk (0x1U << DCMI_CR_CM_Pos) /*!< 0x00000002 */
  5750. #define DCMI_CR_CM DCMI_CR_CM_Msk
  5751. #define DCMI_CR_CROP_Pos (2U)
  5752. #define DCMI_CR_CROP_Msk (0x1U << DCMI_CR_CROP_Pos) /*!< 0x00000004 */
  5753. #define DCMI_CR_CROP DCMI_CR_CROP_Msk
  5754. #define DCMI_CR_JPEG_Pos (3U)
  5755. #define DCMI_CR_JPEG_Msk (0x1U << DCMI_CR_JPEG_Pos) /*!< 0x00000008 */
  5756. #define DCMI_CR_JPEG DCMI_CR_JPEG_Msk
  5757. #define DCMI_CR_ESS_Pos (4U)
  5758. #define DCMI_CR_ESS_Msk (0x1U << DCMI_CR_ESS_Pos) /*!< 0x00000010 */
  5759. #define DCMI_CR_ESS DCMI_CR_ESS_Msk
  5760. #define DCMI_CR_PCKPOL_Pos (5U)
  5761. #define DCMI_CR_PCKPOL_Msk (0x1U << DCMI_CR_PCKPOL_Pos) /*!< 0x00000020 */
  5762. #define DCMI_CR_PCKPOL DCMI_CR_PCKPOL_Msk
  5763. #define DCMI_CR_HSPOL_Pos (6U)
  5764. #define DCMI_CR_HSPOL_Msk (0x1U << DCMI_CR_HSPOL_Pos) /*!< 0x00000040 */
  5765. #define DCMI_CR_HSPOL DCMI_CR_HSPOL_Msk
  5766. #define DCMI_CR_VSPOL_Pos (7U)
  5767. #define DCMI_CR_VSPOL_Msk (0x1U << DCMI_CR_VSPOL_Pos) /*!< 0x00000080 */
  5768. #define DCMI_CR_VSPOL DCMI_CR_VSPOL_Msk
  5769. #define DCMI_CR_FCRC_0 ((uint32_t)0x00000100U)
  5770. #define DCMI_CR_FCRC_1 ((uint32_t)0x00000200U)
  5771. #define DCMI_CR_EDM_0 ((uint32_t)0x00000400U)
  5772. #define DCMI_CR_EDM_1 ((uint32_t)0x00000800U)
  5773. #define DCMI_CR_CRE_Pos (12U)
  5774. #define DCMI_CR_CRE_Msk (0x1U << DCMI_CR_CRE_Pos) /*!< 0x00001000 */
  5775. #define DCMI_CR_CRE DCMI_CR_CRE_Msk
  5776. #define DCMI_CR_ENABLE_Pos (14U)
  5777. #define DCMI_CR_ENABLE_Msk (0x1U << DCMI_CR_ENABLE_Pos) /*!< 0x00004000 */
  5778. #define DCMI_CR_ENABLE DCMI_CR_ENABLE_Msk
  5779. #define DCMI_CR_BSM_Pos (16U)
  5780. #define DCMI_CR_BSM_Msk (0x3U << DCMI_CR_BSM_Pos) /*!< 0x00030000 */
  5781. #define DCMI_CR_BSM DCMI_CR_BSM_Msk
  5782. #define DCMI_CR_BSM_0 (0x1U << DCMI_CR_BSM_Pos) /*!< 0x00010000 */
  5783. #define DCMI_CR_BSM_1 (0x2U << DCMI_CR_BSM_Pos) /*!< 0x00020000 */
  5784. #define DCMI_CR_OEBS_Pos (18U)
  5785. #define DCMI_CR_OEBS_Msk (0x1U << DCMI_CR_OEBS_Pos) /*!< 0x00040000 */
  5786. #define DCMI_CR_OEBS DCMI_CR_OEBS_Msk
  5787. #define DCMI_CR_LSM_Pos (19U)
  5788. #define DCMI_CR_LSM_Msk (0x1U << DCMI_CR_LSM_Pos) /*!< 0x00080000 */
  5789. #define DCMI_CR_LSM DCMI_CR_LSM_Msk
  5790. #define DCMI_CR_OELS_Pos (20U)
  5791. #define DCMI_CR_OELS_Msk (0x1U << DCMI_CR_OELS_Pos) /*!< 0x00100000 */
  5792. #define DCMI_CR_OELS DCMI_CR_OELS_Msk
  5793. /******************** Bits definition for DCMI_SR register ******************/
  5794. #define DCMI_SR_HSYNC_Pos (0U)
  5795. #define DCMI_SR_HSYNC_Msk (0x1U << DCMI_SR_HSYNC_Pos) /*!< 0x00000001 */
  5796. #define DCMI_SR_HSYNC DCMI_SR_HSYNC_Msk
  5797. #define DCMI_SR_VSYNC_Pos (1U)
  5798. #define DCMI_SR_VSYNC_Msk (0x1U << DCMI_SR_VSYNC_Pos) /*!< 0x00000002 */
  5799. #define DCMI_SR_VSYNC DCMI_SR_VSYNC_Msk
  5800. #define DCMI_SR_FNE_Pos (2U)
  5801. #define DCMI_SR_FNE_Msk (0x1U << DCMI_SR_FNE_Pos) /*!< 0x00000004 */
  5802. #define DCMI_SR_FNE DCMI_SR_FNE_Msk
  5803. /******************** Bits definition for DCMI_RIS register ****************/
  5804. #define DCMI_RIS_FRAME_RIS_Pos (0U)
  5805. #define DCMI_RIS_FRAME_RIS_Msk (0x1U << DCMI_RIS_FRAME_RIS_Pos) /*!< 0x00000001 */
  5806. #define DCMI_RIS_FRAME_RIS DCMI_RIS_FRAME_RIS_Msk
  5807. #define DCMI_RIS_OVR_RIS_Pos (1U)
  5808. #define DCMI_RIS_OVR_RIS_Msk (0x1U << DCMI_RIS_OVR_RIS_Pos) /*!< 0x00000002 */
  5809. #define DCMI_RIS_OVR_RIS DCMI_RIS_OVR_RIS_Msk
  5810. #define DCMI_RIS_ERR_RIS_Pos (2U)
  5811. #define DCMI_RIS_ERR_RIS_Msk (0x1U << DCMI_RIS_ERR_RIS_Pos) /*!< 0x00000004 */
  5812. #define DCMI_RIS_ERR_RIS DCMI_RIS_ERR_RIS_Msk
  5813. #define DCMI_RIS_VSYNC_RIS_Pos (3U)
  5814. #define DCMI_RIS_VSYNC_RIS_Msk (0x1U << DCMI_RIS_VSYNC_RIS_Pos) /*!< 0x00000008 */
  5815. #define DCMI_RIS_VSYNC_RIS DCMI_RIS_VSYNC_RIS_Msk
  5816. #define DCMI_RIS_LINE_RIS_Pos (4U)
  5817. #define DCMI_RIS_LINE_RIS_Msk (0x1U << DCMI_RIS_LINE_RIS_Pos) /*!< 0x00000010 */
  5818. #define DCMI_RIS_LINE_RIS DCMI_RIS_LINE_RIS_Msk
  5819. /******************** Bits definition for DCMI_IER register *****************/
  5820. #define DCMI_IER_FRAME_IE_Pos (0U)
  5821. #define DCMI_IER_FRAME_IE_Msk (0x1U << DCMI_IER_FRAME_IE_Pos) /*!< 0x00000001 */
  5822. #define DCMI_IER_FRAME_IE DCMI_IER_FRAME_IE_Msk
  5823. #define DCMI_IER_OVR_IE_Pos (1U)
  5824. #define DCMI_IER_OVR_IE_Msk (0x1U << DCMI_IER_OVR_IE_Pos) /*!< 0x00000002 */
  5825. #define DCMI_IER_OVR_IE DCMI_IER_OVR_IE_Msk
  5826. #define DCMI_IER_ERR_IE_Pos (2U)
  5827. #define DCMI_IER_ERR_IE_Msk (0x1U << DCMI_IER_ERR_IE_Pos) /*!< 0x00000004 */
  5828. #define DCMI_IER_ERR_IE DCMI_IER_ERR_IE_Msk
  5829. #define DCMI_IER_VSYNC_IE_Pos (3U)
  5830. #define DCMI_IER_VSYNC_IE_Msk (0x1U << DCMI_IER_VSYNC_IE_Pos) /*!< 0x00000008 */
  5831. #define DCMI_IER_VSYNC_IE DCMI_IER_VSYNC_IE_Msk
  5832. #define DCMI_IER_LINE_IE_Pos (4U)
  5833. #define DCMI_IER_LINE_IE_Msk (0x1U << DCMI_IER_LINE_IE_Pos) /*!< 0x00000010 */
  5834. #define DCMI_IER_LINE_IE DCMI_IER_LINE_IE_Msk
  5835. /******************** Bits definition for DCMI_MIS register *****************/
  5836. #define DCMI_MIS_FRAME_MIS_Pos (0U)
  5837. #define DCMI_MIS_FRAME_MIS_Msk (0x1U << DCMI_MIS_FRAME_MIS_Pos) /*!< 0x00000001 */
  5838. #define DCMI_MIS_FRAME_MIS DCMI_MIS_FRAME_MIS_Msk
  5839. #define DCMI_MIS_OVR_MIS_Pos (1U)
  5840. #define DCMI_MIS_OVR_MIS_Msk (0x1U << DCMI_MIS_OVR_MIS_Pos) /*!< 0x00000002 */
  5841. #define DCMI_MIS_OVR_MIS DCMI_MIS_OVR_MIS_Msk
  5842. #define DCMI_MIS_ERR_MIS_Pos (2U)
  5843. #define DCMI_MIS_ERR_MIS_Msk (0x1U << DCMI_MIS_ERR_MIS_Pos) /*!< 0x00000004 */
  5844. #define DCMI_MIS_ERR_MIS DCMI_MIS_ERR_MIS_Msk
  5845. #define DCMI_MIS_VSYNC_MIS_Pos (3U)
  5846. #define DCMI_MIS_VSYNC_MIS_Msk (0x1U << DCMI_MIS_VSYNC_MIS_Pos) /*!< 0x00000008 */
  5847. #define DCMI_MIS_VSYNC_MIS DCMI_MIS_VSYNC_MIS_Msk
  5848. #define DCMI_MIS_LINE_MIS_Pos (4U)
  5849. #define DCMI_MIS_LINE_MIS_Msk (0x1U << DCMI_MIS_LINE_MIS_Pos) /*!< 0x00000010 */
  5850. #define DCMI_MIS_LINE_MIS DCMI_MIS_LINE_MIS_Msk
  5851. /******************** Bits definition for DCMI_ICR register *****************/
  5852. #define DCMI_ICR_FRAME_ISC_Pos (0U)
  5853. #define DCMI_ICR_FRAME_ISC_Msk (0x1U << DCMI_ICR_FRAME_ISC_Pos) /*!< 0x00000001 */
  5854. #define DCMI_ICR_FRAME_ISC DCMI_ICR_FRAME_ISC_Msk
  5855. #define DCMI_ICR_OVR_ISC_Pos (1U)
  5856. #define DCMI_ICR_OVR_ISC_Msk (0x1U << DCMI_ICR_OVR_ISC_Pos) /*!< 0x00000002 */
  5857. #define DCMI_ICR_OVR_ISC DCMI_ICR_OVR_ISC_Msk
  5858. #define DCMI_ICR_ERR_ISC_Pos (2U)
  5859. #define DCMI_ICR_ERR_ISC_Msk (0x1U << DCMI_ICR_ERR_ISC_Pos) /*!< 0x00000004 */
  5860. #define DCMI_ICR_ERR_ISC DCMI_ICR_ERR_ISC_Msk
  5861. #define DCMI_ICR_VSYNC_ISC_Pos (3U)
  5862. #define DCMI_ICR_VSYNC_ISC_Msk (0x1U << DCMI_ICR_VSYNC_ISC_Pos) /*!< 0x00000008 */
  5863. #define DCMI_ICR_VSYNC_ISC DCMI_ICR_VSYNC_ISC_Msk
  5864. #define DCMI_ICR_LINE_ISC_Pos (4U)
  5865. #define DCMI_ICR_LINE_ISC_Msk (0x1U << DCMI_ICR_LINE_ISC_Pos) /*!< 0x00000010 */
  5866. #define DCMI_ICR_LINE_ISC DCMI_ICR_LINE_ISC_Msk
  5867. /******************** Bits definition for DCMI_ESCR register ******************/
  5868. #define DCMI_ESCR_FSC_Pos (0U)
  5869. #define DCMI_ESCR_FSC_Msk (0xFFU << DCMI_ESCR_FSC_Pos) /*!< 0x000000FF */
  5870. #define DCMI_ESCR_FSC DCMI_ESCR_FSC_Msk
  5871. #define DCMI_ESCR_LSC_Pos (8U)
  5872. #define DCMI_ESCR_LSC_Msk (0xFFU << DCMI_ESCR_LSC_Pos) /*!< 0x0000FF00 */
  5873. #define DCMI_ESCR_LSC DCMI_ESCR_LSC_Msk
  5874. #define DCMI_ESCR_LEC_Pos (16U)
  5875. #define DCMI_ESCR_LEC_Msk (0xFFU << DCMI_ESCR_LEC_Pos) /*!< 0x00FF0000 */
  5876. #define DCMI_ESCR_LEC DCMI_ESCR_LEC_Msk
  5877. #define DCMI_ESCR_FEC_Pos (24U)
  5878. #define DCMI_ESCR_FEC_Msk (0xFFU << DCMI_ESCR_FEC_Pos) /*!< 0xFF000000 */
  5879. #define DCMI_ESCR_FEC DCMI_ESCR_FEC_Msk
  5880. /******************** Bits definition for DCMI_ESUR register ******************/
  5881. #define DCMI_ESUR_FSU_Pos (0U)
  5882. #define DCMI_ESUR_FSU_Msk (0xFFU << DCMI_ESUR_FSU_Pos) /*!< 0x000000FF */
  5883. #define DCMI_ESUR_FSU DCMI_ESUR_FSU_Msk
  5884. #define DCMI_ESUR_LSU_Pos (8U)
  5885. #define DCMI_ESUR_LSU_Msk (0xFFU << DCMI_ESUR_LSU_Pos) /*!< 0x0000FF00 */
  5886. #define DCMI_ESUR_LSU DCMI_ESUR_LSU_Msk
  5887. #define DCMI_ESUR_LEU_Pos (16U)
  5888. #define DCMI_ESUR_LEU_Msk (0xFFU << DCMI_ESUR_LEU_Pos) /*!< 0x00FF0000 */
  5889. #define DCMI_ESUR_LEU DCMI_ESUR_LEU_Msk
  5890. #define DCMI_ESUR_FEU_Pos (24U)
  5891. #define DCMI_ESUR_FEU_Msk (0xFFU << DCMI_ESUR_FEU_Pos) /*!< 0xFF000000 */
  5892. #define DCMI_ESUR_FEU DCMI_ESUR_FEU_Msk
  5893. /******************** Bits definition for DCMI_CWSTRT register ******************/
  5894. #define DCMI_CWSTRT_HOFFCNT_Pos (0U)
  5895. #define DCMI_CWSTRT_HOFFCNT_Msk (0x3FFFU << DCMI_CWSTRT_HOFFCNT_Pos) /*!< 0x00003FFF */
  5896. #define DCMI_CWSTRT_HOFFCNT DCMI_CWSTRT_HOFFCNT_Msk
  5897. #define DCMI_CWSTRT_VST_Pos (16U)
  5898. #define DCMI_CWSTRT_VST_Msk (0x1FFFU << DCMI_CWSTRT_VST_Pos) /*!< 0x1FFF0000 */
  5899. #define DCMI_CWSTRT_VST DCMI_CWSTRT_VST_Msk
  5900. /******************** Bits definition for DCMI_CWSIZE register ******************/
  5901. #define DCMI_CWSIZE_CAPCNT_Pos (0U)
  5902. #define DCMI_CWSIZE_CAPCNT_Msk (0x3FFFU << DCMI_CWSIZE_CAPCNT_Pos) /*!< 0x00003FFF */
  5903. #define DCMI_CWSIZE_CAPCNT DCMI_CWSIZE_CAPCNT_Msk
  5904. #define DCMI_CWSIZE_VLINE_Pos (16U)
  5905. #define DCMI_CWSIZE_VLINE_Msk (0x3FFFU << DCMI_CWSIZE_VLINE_Pos) /*!< 0x3FFF0000 */
  5906. #define DCMI_CWSIZE_VLINE DCMI_CWSIZE_VLINE_Msk
  5907. /******************** Bits definition for DCMI_DR register ******************/
  5908. #define DCMI_DR_BYTE0_Pos (0U)
  5909. #define DCMI_DR_BYTE0_Msk (0xFFU << DCMI_DR_BYTE0_Pos) /*!< 0x000000FF */
  5910. #define DCMI_DR_BYTE0 DCMI_DR_BYTE0_Msk
  5911. #define DCMI_DR_BYTE1_Pos (8U)
  5912. #define DCMI_DR_BYTE1_Msk (0xFFU << DCMI_DR_BYTE1_Pos) /*!< 0x0000FF00 */
  5913. #define DCMI_DR_BYTE1 DCMI_DR_BYTE1_Msk
  5914. #define DCMI_DR_BYTE2_Pos (16U)
  5915. #define DCMI_DR_BYTE2_Msk (0xFFU << DCMI_DR_BYTE2_Pos) /*!< 0x00FF0000 */
  5916. #define DCMI_DR_BYTE2 DCMI_DR_BYTE2_Msk
  5917. #define DCMI_DR_BYTE3_Pos (24U)
  5918. #define DCMI_DR_BYTE3_Msk (0xFFU << DCMI_DR_BYTE3_Pos) /*!< 0xFF000000 */
  5919. #define DCMI_DR_BYTE3 DCMI_DR_BYTE3_Msk
  5920. /******************************************************************************/
  5921. /* */
  5922. /* Digital Filter for Sigma Delta Modulators */
  5923. /* */
  5924. /******************************************************************************/
  5925. /**************** DFSDM channel configuration registers ********************/
  5926. /*************** Bit definition for DFSDM_CHCFGR1 register ******************/
  5927. #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U)
  5928. #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1U << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */
  5929. #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */
  5930. #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U)
  5931. #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1U << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */
  5932. #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */
  5933. #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U)
  5934. #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFU << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */
  5935. #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */
  5936. #define DFSDM_CHCFGR1_DATPACK_Pos (14U)
  5937. #define DFSDM_CHCFGR1_DATPACK_Msk (0x3U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */
  5938. #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */
  5939. #define DFSDM_CHCFGR1_DATPACK_1 (0x2U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */
  5940. #define DFSDM_CHCFGR1_DATPACK_0 (0x1U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */
  5941. #define DFSDM_CHCFGR1_DATMPX_Pos (12U)
  5942. #define DFSDM_CHCFGR1_DATMPX_Msk (0x3U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */
  5943. #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */
  5944. #define DFSDM_CHCFGR1_DATMPX_1 (0x2U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */
  5945. #define DFSDM_CHCFGR1_DATMPX_0 (0x1U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */
  5946. #define DFSDM_CHCFGR1_CHINSEL_Pos (8U)
  5947. #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1U << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */
  5948. #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */
  5949. #define DFSDM_CHCFGR1_CHEN_Pos (7U)
  5950. #define DFSDM_CHCFGR1_CHEN_Msk (0x1U << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */
  5951. #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */
  5952. #define DFSDM_CHCFGR1_CKABEN_Pos (6U)
  5953. #define DFSDM_CHCFGR1_CKABEN_Msk (0x1U << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */
  5954. #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */
  5955. #define DFSDM_CHCFGR1_SCDEN_Pos (5U)
  5956. #define DFSDM_CHCFGR1_SCDEN_Msk (0x1U << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */
  5957. #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */
  5958. #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U)
  5959. #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */
  5960. #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */
  5961. #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */
  5962. #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */
  5963. #define DFSDM_CHCFGR1_SITP_Pos (0U)
  5964. #define DFSDM_CHCFGR1_SITP_Msk (0x3U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */
  5965. #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */
  5966. #define DFSDM_CHCFGR1_SITP_1 (0x2U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */
  5967. #define DFSDM_CHCFGR1_SITP_0 (0x1U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */
  5968. /*************** Bit definition for DFSDM_CHCFGR2 register ******************/
  5969. #define DFSDM_CHCFGR2_OFFSET_Pos (8U)
  5970. #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFU << DFSDM_CHCFGR2_OFFSET_Pos) /*!< 0xFFFFFF00 */
  5971. #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */
  5972. #define DFSDM_CHCFGR2_DTRBS_Pos (3U)
  5973. #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FU << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */
  5974. #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */
  5975. /****************** Bit definition for DFSDM_CHAWSCDR register *****************/
  5976. #define DFSDM_CHAWSCDR_AWFORD_Pos (22U)
  5977. #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */
  5978. #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */
  5979. #define DFSDM_CHAWSCDR_AWFORD_1 (0x2U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */
  5980. #define DFSDM_CHAWSCDR_AWFORD_0 (0x1U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */
  5981. #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U)
  5982. #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FU << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */
  5983. #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */
  5984. #define DFSDM_CHAWSCDR_BKSCD_Pos (12U)
  5985. #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFU << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */
  5986. #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */
  5987. #define DFSDM_CHAWSCDR_SCDT_Pos (0U)
  5988. #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFU << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */
  5989. #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */
  5990. /**************** Bit definition for DFSDM_CHWDATR register *******************/
  5991. #define DFSDM_CHWDATR_WDATA_Pos (0U)
  5992. #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFU << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */
  5993. #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */
  5994. /**************** Bit definition for DFSDM_CHDATINR register *****************/
  5995. #define DFSDM_CHDATINR_INDAT0_Pos (0U)
  5996. #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT0_Pos) /*!< 0x0000FFFF */
  5997. #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */
  5998. #define DFSDM_CHDATINR_INDAT1_Pos (16U)
  5999. #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT1_Pos) /*!< 0xFFFF0000 */
  6000. #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */
  6001. /************************ DFSDM module registers ****************************/
  6002. /******************** Bit definition for DFSDM_FLTCR1 register *******************/
  6003. #define DFSDM_FLTCR1_AWFSEL_Pos (30U)
  6004. #define DFSDM_FLTCR1_AWFSEL_Msk (0x1U << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */
  6005. #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */
  6006. #define DFSDM_FLTCR1_FAST_Pos (29U)
  6007. #define DFSDM_FLTCR1_FAST_Msk (0x1U << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */
  6008. #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */
  6009. #define DFSDM_FLTCR1_RCH_Pos (24U)
  6010. #define DFSDM_FLTCR1_RCH_Msk (0x7U << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */
  6011. #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */
  6012. #define DFSDM_FLTCR1_RDMAEN_Pos (21U)
  6013. #define DFSDM_FLTCR1_RDMAEN_Msk (0x1U << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */
  6014. #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */
  6015. #define DFSDM_FLTCR1_RSYNC_Pos (19U)
  6016. #define DFSDM_FLTCR1_RSYNC_Msk (0x1U << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */
  6017. #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */
  6018. #define DFSDM_FLTCR1_RCONT_Pos (18U)
  6019. #define DFSDM_FLTCR1_RCONT_Msk (0x1U << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */
  6020. #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  6021. #define DFSDM_FLTCR1_RSWSTART_Pos (17U)
  6022. #define DFSDM_FLTCR1_RSWSTART_Msk (0x1U << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */
  6023. #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  6024. #define DFSDM_FLTCR1_JEXTEN_Pos (13U)
  6025. #define DFSDM_FLTCR1_JEXTEN_Msk (0x3U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */
  6026. #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */
  6027. #define DFSDM_FLTCR1_JEXTEN_1 (0x2U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */
  6028. #define DFSDM_FLTCR1_JEXTEN_0 (0x1U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */
  6029. #define DFSDM_FLTCR1_JEXTSEL_Pos (8U)
  6030. #define DFSDM_FLTCR1_JEXTSEL_Msk (0x1FU << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001F00 */
  6031. #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[4:0]Trigger signal selection for launching injected conversions */
  6032. #define DFSDM_FLTCR1_JEXTSEL_0 (0x01U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */
  6033. #define DFSDM_FLTCR1_JEXTSEL_1 (0x02U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */
  6034. #define DFSDM_FLTCR1_JEXTSEL_2 (0x04U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */
  6035. #define DFSDM_FLTCR1_JEXTSEL_3 (0x08U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000800 */
  6036. #define DFSDM_FLTCR1_JEXTSEL_4 (0x10U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001000 */
  6037. #define DFSDM_FLTCR1_JDMAEN_Pos (5U)
  6038. #define DFSDM_FLTCR1_JDMAEN_Msk (0x1U << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */
  6039. #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  6040. #define DFSDM_FLTCR1_JSCAN_Pos (4U)
  6041. #define DFSDM_FLTCR1_JSCAN_Msk (0x1U << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */
  6042. #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */
  6043. #define DFSDM_FLTCR1_JSYNC_Pos (3U)
  6044. #define DFSDM_FLTCR1_JSYNC_Msk (0x1U << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */
  6045. #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */
  6046. #define DFSDM_FLTCR1_JSWSTART_Pos (1U)
  6047. #define DFSDM_FLTCR1_JSWSTART_Msk (0x1U << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */
  6048. #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */
  6049. #define DFSDM_FLTCR1_DFEN_Pos (0U)
  6050. #define DFSDM_FLTCR1_DFEN_Msk (0x1U << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */
  6051. #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */
  6052. /******************** Bit definition for DFSDM_FLTCR2 register *******************/
  6053. #define DFSDM_FLTCR2_AWDCH_Pos (16U)
  6054. #define DFSDM_FLTCR2_AWDCH_Msk (0xFFU << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */
  6055. #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */
  6056. #define DFSDM_FLTCR2_EXCH_Pos (8U)
  6057. #define DFSDM_FLTCR2_EXCH_Msk (0xFFU << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */
  6058. #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */
  6059. #define DFSDM_FLTCR2_CKABIE_Pos (6U)
  6060. #define DFSDM_FLTCR2_CKABIE_Msk (0x1U << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */
  6061. #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */
  6062. #define DFSDM_FLTCR2_SCDIE_Pos (5U)
  6063. #define DFSDM_FLTCR2_SCDIE_Msk (0x1U << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */
  6064. #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */
  6065. #define DFSDM_FLTCR2_AWDIE_Pos (4U)
  6066. #define DFSDM_FLTCR2_AWDIE_Msk (0x1U << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */
  6067. #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */
  6068. #define DFSDM_FLTCR2_ROVRIE_Pos (3U)
  6069. #define DFSDM_FLTCR2_ROVRIE_Msk (0x1U << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */
  6070. #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  6071. #define DFSDM_FLTCR2_JOVRIE_Pos (2U)
  6072. #define DFSDM_FLTCR2_JOVRIE_Msk (0x1U << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */
  6073. #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  6074. #define DFSDM_FLTCR2_REOCIE_Pos (1U)
  6075. #define DFSDM_FLTCR2_REOCIE_Msk (0x1U << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */
  6076. #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  6077. #define DFSDM_FLTCR2_JEOCIE_Pos (0U)
  6078. #define DFSDM_FLTCR2_JEOCIE_Msk (0x1U << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */
  6079. #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  6080. /******************** Bit definition for DFSDM_FLTISR register *******************/
  6081. #define DFSDM_FLTISR_SCDF_Pos (24U)
  6082. #define DFSDM_FLTISR_SCDF_Msk (0xFFU << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */
  6083. #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */
  6084. #define DFSDM_FLTISR_CKABF_Pos (16U)
  6085. #define DFSDM_FLTISR_CKABF_Msk (0xFFU << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */
  6086. #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */
  6087. #define DFSDM_FLTISR_RCIP_Pos (14U)
  6088. #define DFSDM_FLTISR_RCIP_Msk (0x1U << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */
  6089. #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */
  6090. #define DFSDM_FLTISR_JCIP_Pos (13U)
  6091. #define DFSDM_FLTISR_JCIP_Msk (0x1U << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */
  6092. #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */
  6093. #define DFSDM_FLTISR_AWDF_Pos (4U)
  6094. #define DFSDM_FLTISR_AWDF_Msk (0x1U << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */
  6095. #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */
  6096. #define DFSDM_FLTISR_ROVRF_Pos (3U)
  6097. #define DFSDM_FLTISR_ROVRF_Msk (0x1U << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */
  6098. #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  6099. #define DFSDM_FLTISR_JOVRF_Pos (2U)
  6100. #define DFSDM_FLTISR_JOVRF_Msk (0x1U << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */
  6101. #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  6102. #define DFSDM_FLTISR_REOCF_Pos (1U)
  6103. #define DFSDM_FLTISR_REOCF_Msk (0x1U << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */
  6104. #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */
  6105. #define DFSDM_FLTISR_JEOCF_Pos (0U)
  6106. #define DFSDM_FLTISR_JEOCF_Msk (0x1U << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */
  6107. #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */
  6108. /******************** Bit definition for DFSDM_FLTICR register *******************/
  6109. #define DFSDM_FLTICR_CLRSCDF_Pos (24U)
  6110. #define DFSDM_FLTICR_CLRSCDF_Msk (0xFFU << DFSDM_FLTICR_CLRSCDF_Pos) /*!< 0xFF000000 */
  6111. #define DFSDM_FLTICR_CLRSCDF DFSDM_FLTICR_CLRSCDF_Msk /*!< CLRSCSDF[7:0] Clear the short circuit detector flag */
  6112. #define DFSDM_FLTICR_CLRCKABF_Pos (16U)
  6113. #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFU << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */
  6114. #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */
  6115. #define DFSDM_FLTICR_CLRROVRF_Pos (3U)
  6116. #define DFSDM_FLTICR_CLRROVRF_Msk (0x1U << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */
  6117. #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  6118. #define DFSDM_FLTICR_CLRJOVRF_Pos (2U)
  6119. #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1U << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */
  6120. #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  6121. /******************* Bit definition for DFSDM_FLTJCHGR register ******************/
  6122. #define DFSDM_FLTJCHGR_JCHG_Pos (0U)
  6123. #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFU << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */
  6124. #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */
  6125. /******************** Bit definition for DFSDM_FLTFCR register *******************/
  6126. #define DFSDM_FLTFCR_FORD_Pos (29U)
  6127. #define DFSDM_FLTFCR_FORD_Msk (0x7U << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */
  6128. #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */
  6129. #define DFSDM_FLTFCR_FORD_2 (0x4U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */
  6130. #define DFSDM_FLTFCR_FORD_1 (0x2U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */
  6131. #define DFSDM_FLTFCR_FORD_0 (0x1U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */
  6132. #define DFSDM_FLTFCR_FOSR_Pos (16U)
  6133. #define DFSDM_FLTFCR_FOSR_Msk (0x3FFU << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */
  6134. #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */
  6135. #define DFSDM_FLTFCR_IOSR_Pos (0U)
  6136. #define DFSDM_FLTFCR_IOSR_Msk (0xFFU << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */
  6137. #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */
  6138. /****************** Bit definition for DFSDM_FLTJDATAR register *****************/
  6139. #define DFSDM_FLTJDATAR_JDATA_Pos (8U)
  6140. #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFU << DFSDM_FLTJDATAR_JDATA_Pos) /*!< 0xFFFFFF00 */
  6141. #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */
  6142. #define DFSDM_FLTJDATAR_JDATACH_Pos (0U)
  6143. #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7U << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */
  6144. #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */
  6145. /****************** Bit definition for DFSDM_FLTRDATAR register *****************/
  6146. #define DFSDM_FLTRDATAR_RDATA_Pos (8U)
  6147. #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFU << DFSDM_FLTRDATAR_RDATA_Pos) /*!< 0xFFFFFF00 */
  6148. #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */
  6149. #define DFSDM_FLTRDATAR_RPEND_Pos (4U)
  6150. #define DFSDM_FLTRDATAR_RPEND_Msk (0x1U << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */
  6151. #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */
  6152. #define DFSDM_FLTRDATAR_RDATACH_Pos (0U)
  6153. #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7U << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */
  6154. #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */
  6155. /****************** Bit definition for DFSDM_FLTAWHTR register ******************/
  6156. #define DFSDM_FLTAWHTR_AWHT_Pos (8U)
  6157. #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFU << DFSDM_FLTAWHTR_AWHT_Pos) /*!< 0xFFFFFF00 */
  6158. #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */
  6159. #define DFSDM_FLTAWHTR_BKAWH_Pos (0U)
  6160. #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFU << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */
  6161. #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */
  6162. /****************** Bit definition for DFSDM_FLTAWLTR register ******************/
  6163. #define DFSDM_FLTAWLTR_AWLT_Pos (8U)
  6164. #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFU << DFSDM_FLTAWLTR_AWLT_Pos) /*!< 0xFFFFFF00 */
  6165. #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWHT[23:0] Analog watchdog low threshold */
  6166. #define DFSDM_FLTAWLTR_BKAWL_Pos (0U)
  6167. #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFU << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */
  6168. #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */
  6169. /****************** Bit definition for DFSDM_FLTAWSR register ******************/
  6170. #define DFSDM_FLTAWSR_AWHTF_Pos (8U)
  6171. #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFU << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */
  6172. #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */
  6173. #define DFSDM_FLTAWSR_AWLTF_Pos (0U)
  6174. #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFU << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */
  6175. #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */
  6176. /****************** Bit definition for DFSDM_FLTAWCFR) register *****************/
  6177. #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U)
  6178. #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWHTF_Pos) /*!< 0x0000FF00 */
  6179. #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */
  6180. #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U)
  6181. #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWLTF_Pos) /*!< 0x000000FF */
  6182. #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */
  6183. /****************** Bit definition for DFSDM_FLTEXMAX register ******************/
  6184. #define DFSDM_FLTEXMAX_EXMAX_Pos (8U)
  6185. #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFU << DFSDM_FLTEXMAX_EXMAX_Pos) /*!< 0xFFFFFF00 */
  6186. #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */
  6187. #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U)
  6188. #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7U << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */
  6189. #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */
  6190. /****************** Bit definition for DFSDM_FLTEXMIN register ******************/
  6191. #define DFSDM_FLTEXMIN_EXMIN_Pos (8U)
  6192. #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFU << DFSDM_FLTEXMIN_EXMIN_Pos) /*!< 0xFFFFFF00 */
  6193. #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */
  6194. #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U)
  6195. #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7U << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */
  6196. #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */
  6197. /****************** Bit definition for DFSDM_FLTCNVTIMR register ******************/
  6198. #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U)
  6199. #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFU << DFSDM_FLTCNVTIMR_CNVCNT_Pos) /*!< 0xFFFFFFF0 */
  6200. #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */
  6201. /******************************************************************************/
  6202. /* */
  6203. /* BDMA Controller */
  6204. /* */
  6205. /******************************************************************************/
  6206. /******************* Bit definition for BDMA_ISR register ********************/
  6207. #define BDMA_ISR_GIF0_Pos (0U)
  6208. #define BDMA_ISR_GIF0_Msk (0x1U << BDMA_ISR_GIF0_Pos) /*!< 0x00000001 */
  6209. #define BDMA_ISR_GIF0 BDMA_ISR_GIF0_Msk /*!< Channel 0 Global interrupt flag */
  6210. #define BDMA_ISR_TCIF0_Pos (1U)
  6211. #define BDMA_ISR_TCIF0_Msk (0x1U << BDMA_ISR_TCIF0_Pos) /*!< 0x00000002 */
  6212. #define BDMA_ISR_TCIF0 BDMA_ISR_TCIF0_Msk /*!< Channel 0 Transfer Complete flag */
  6213. #define BDMA_ISR_HTIF0_Pos (2U)
  6214. #define BDMA_ISR_HTIF0_Msk (0x1U << BDMA_ISR_HTIF0_Pos) /*!< 0x00000004 */
  6215. #define BDMA_ISR_HTIF0 BDMA_ISR_HTIF0_Msk /*!< Channel 0 Half Transfer flag */
  6216. #define BDMA_ISR_TEIF0_Pos (3U)
  6217. #define BDMA_ISR_TEIF0_Msk (0x1U << BDMA_ISR_TEIF0_Pos) /*!< 0x00000008 */
  6218. #define BDMA_ISR_TEIF0 BDMA_ISR_TEIF0_Msk /*!< Channel 0 Transfer Error flag */
  6219. #define BDMA_ISR_GIF1_Pos (4U)
  6220. #define BDMA_ISR_GIF1_Msk (0x1U << BDMA_ISR_GIF1_Pos) /*!< 0x00000010 */
  6221. #define BDMA_ISR_GIF1 BDMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  6222. #define BDMA_ISR_TCIF1_Pos (5U)
  6223. #define BDMA_ISR_TCIF1_Msk (0x1U << BDMA_ISR_TCIF1_Pos) /*!< 0x00000020 */
  6224. #define BDMA_ISR_TCIF1 BDMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  6225. #define BDMA_ISR_HTIF1_Pos (6U)
  6226. #define BDMA_ISR_HTIF1_Msk (0x1U << BDMA_ISR_HTIF1_Pos) /*!< 0x00000040 */
  6227. #define BDMA_ISR_HTIF1 BDMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  6228. #define BDMA_ISR_TEIF1_Pos (7U)
  6229. #define BDMA_ISR_TEIF1_Msk (0x1U << BDMA_ISR_TEIF1_Pos) /*!< 0x00000080 */
  6230. #define BDMA_ISR_TEIF1 BDMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  6231. #define BDMA_ISR_GIF2_Pos (8U)
  6232. #define BDMA_ISR_GIF2_Msk (0x1U << BDMA_ISR_GIF2_Pos) /*!< 0x00000100 */
  6233. #define BDMA_ISR_GIF2 BDMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  6234. #define BDMA_ISR_TCIF2_Pos (9U)
  6235. #define BDMA_ISR_TCIF2_Msk (0x1U << BDMA_ISR_TCIF2_Pos) /*!< 0x00000200 */
  6236. #define BDMA_ISR_TCIF2 BDMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  6237. #define BDMA_ISR_HTIF2_Pos (10U)
  6238. #define BDMA_ISR_HTIF2_Msk (0x1U << BDMA_ISR_HTIF2_Pos) /*!< 0x00000400 */
  6239. #define BDMA_ISR_HTIF2 BDMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  6240. #define BDMA_ISR_TEIF2_Pos (11U)
  6241. #define BDMA_ISR_TEIF2_Msk (0x1U << BDMA_ISR_TEIF2_Pos) /*!< 0x00000800 */
  6242. #define BDMA_ISR_TEIF2 BDMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  6243. #define BDMA_ISR_GIF3_Pos (12U)
  6244. #define BDMA_ISR_GIF3_Msk (0x1U << BDMA_ISR_GIF3_Pos) /*!< 0x00001000 */
  6245. #define BDMA_ISR_GIF3 BDMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  6246. #define BDMA_ISR_TCIF3_Pos (13U)
  6247. #define BDMA_ISR_TCIF3_Msk (0x1U << BDMA_ISR_TCIF3_Pos) /*!< 0x00002000 */
  6248. #define BDMA_ISR_TCIF3 BDMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  6249. #define BDMA_ISR_HTIF3_Pos (14U)
  6250. #define BDMA_ISR_HTIF3_Msk (0x1U << BDMA_ISR_HTIF3_Pos) /*!< 0x00004000 */
  6251. #define BDMA_ISR_HTIF3 BDMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  6252. #define BDMA_ISR_TEIF3_Pos (15U)
  6253. #define BDMA_ISR_TEIF3_Msk (0x1U << BDMA_ISR_TEIF3_Pos) /*!< 0x00008000 */
  6254. #define BDMA_ISR_TEIF3 BDMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  6255. #define BDMA_ISR_GIF4_Pos (16U)
  6256. #define BDMA_ISR_GIF4_Msk (0x1U << BDMA_ISR_GIF4_Pos) /*!< 0x00010000 */
  6257. #define BDMA_ISR_GIF4 BDMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  6258. #define BDMA_ISR_TCIF4_Pos (17U)
  6259. #define BDMA_ISR_TCIF4_Msk (0x1U << BDMA_ISR_TCIF4_Pos) /*!< 0x00020000 */
  6260. #define BDMA_ISR_TCIF4 BDMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  6261. #define BDMA_ISR_HTIF4_Pos (18U)
  6262. #define BDMA_ISR_HTIF4_Msk (0x1U << BDMA_ISR_HTIF4_Pos) /*!< 0x00040000 */
  6263. #define BDMA_ISR_HTIF4 BDMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  6264. #define BDMA_ISR_TEIF4_Pos (19U)
  6265. #define BDMA_ISR_TEIF4_Msk (0x1U << BDMA_ISR_TEIF4_Pos) /*!< 0x00080000 */
  6266. #define BDMA_ISR_TEIF4 BDMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  6267. #define BDMA_ISR_GIF5_Pos (20U)
  6268. #define BDMA_ISR_GIF5_Msk (0x1U << BDMA_ISR_GIF5_Pos) /*!< 0x00100000 */
  6269. #define BDMA_ISR_GIF5 BDMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  6270. #define BDMA_ISR_TCIF5_Pos (21U)
  6271. #define BDMA_ISR_TCIF5_Msk (0x1U << BDMA_ISR_TCIF5_Pos) /*!< 0x00200000 */
  6272. #define BDMA_ISR_TCIF5 BDMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  6273. #define BDMA_ISR_HTIF5_Pos (22U)
  6274. #define BDMA_ISR_HTIF5_Msk (0x1U << BDMA_ISR_HTIF5_Pos) /*!< 0x00400000 */
  6275. #define BDMA_ISR_HTIF5 BDMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  6276. #define BDMA_ISR_TEIF5_Pos (23U)
  6277. #define BDMA_ISR_TEIF5_Msk (0x1U << BDMA_ISR_TEIF5_Pos) /*!< 0x00800000 */
  6278. #define BDMA_ISR_TEIF5 BDMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  6279. #define BDMA_ISR_GIF6_Pos (24U)
  6280. #define BDMA_ISR_GIF6_Msk (0x1U << BDMA_ISR_GIF6_Pos) /*!< 0x01000000 */
  6281. #define BDMA_ISR_GIF6 BDMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  6282. #define BDMA_ISR_TCIF6_Pos (25U)
  6283. #define BDMA_ISR_TCIF6_Msk (0x1U << BDMA_ISR_TCIF6_Pos) /*!< 0x02000000 */
  6284. #define BDMA_ISR_TCIF6 BDMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  6285. #define BDMA_ISR_HTIF6_Pos (26U)
  6286. #define BDMA_ISR_HTIF6_Msk (0x1U << BDMA_ISR_HTIF6_Pos) /*!< 0x04000000 */
  6287. #define BDMA_ISR_HTIF6 BDMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  6288. #define BDMA_ISR_TEIF6_Pos (27U)
  6289. #define BDMA_ISR_TEIF6_Msk (0x1U << BDMA_ISR_TEIF6_Pos) /*!< 0x08000000 */
  6290. #define BDMA_ISR_TEIF6 BDMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  6291. #define BDMA_ISR_GIF7_Pos (28U)
  6292. #define BDMA_ISR_GIF7_Msk (0x1U << BDMA_ISR_GIF7_Pos) /*!< 0x10000000 */
  6293. #define BDMA_ISR_GIF7 BDMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  6294. #define BDMA_ISR_TCIF7_Pos (29U)
  6295. #define BDMA_ISR_TCIF7_Msk (0x1U << BDMA_ISR_TCIF7_Pos) /*!< 0x20000000 */
  6296. #define BDMA_ISR_TCIF7 BDMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  6297. #define BDMA_ISR_HTIF7_Pos (30U)
  6298. #define BDMA_ISR_HTIF7_Msk (0x1U << BDMA_ISR_HTIF7_Pos) /*!< 0x40000000 */
  6299. #define BDMA_ISR_HTIF7 BDMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  6300. #define BDMA_ISR_TEIF7_Pos (31U)
  6301. #define BDMA_ISR_TEIF7_Msk (0x1U << BDMA_ISR_TEIF7_Pos) /*!< 0x80000000 */
  6302. #define BDMA_ISR_TEIF7 BDMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  6303. /******************* Bit definition for BDMA_IFCR register *******************/
  6304. #define BDMA_IFCR_CGIF0_Pos (0U)
  6305. #define BDMA_IFCR_CGIF0_Msk (0x1U << BDMA_IFCR_CGIF0_Pos) /*!< 0x00000001 */
  6306. #define BDMA_IFCR_CGIF0 BDMA_IFCR_CGIF0_Msk /*!< Channel 0 Global interrupt clearr */
  6307. #define BDMA_IFCR_CTCIF0_Pos (1U)
  6308. #define BDMA_IFCR_CTCIF0_Msk (0x1U << BDMA_IFCR_CTCIF0_Pos) /*!< 0x00000002 */
  6309. #define BDMA_IFCR_CTCIF0 BDMA_IFCR_CTCIF0_Msk /*!< Channel 0 Transfer Complete clear */
  6310. #define BDMA_IFCR_CHTIF0_Pos (2U)
  6311. #define BDMA_IFCR_CHTIF0_Msk (0x1U << BDMA_IFCR_CHTIF0_Pos) /*!< 0x00000004 */
  6312. #define BDMA_IFCR_CHTIF0 BDMA_IFCR_CHTIF0_Msk /*!< Channel 0 Half Transfer clear */
  6313. #define BDMA_IFCR_CTEIF0_Pos (3U)
  6314. #define BDMA_IFCR_CTEIF0_Msk (0x1U << BDMA_IFCR_CTEIF0_Pos) /*!< 0x00000008 */
  6315. #define BDMA_IFCR_CTEIF0 BDMA_IFCR_CTEIF0_Msk /*!< Channel 0 Transfer Error clear */
  6316. #define BDMA_IFCR_CGIF1_Pos (4U)
  6317. #define BDMA_IFCR_CGIF1_Msk (0x1U << BDMA_IFCR_CGIF1_Pos) /*!< 0x00000010 */
  6318. #define BDMA_IFCR_CGIF1 BDMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  6319. #define BDMA_IFCR_CTCIF1_Pos (5U)
  6320. #define BDMA_IFCR_CTCIF1_Msk (0x1U << BDMA_IFCR_CTCIF1_Pos) /*!< 0x00000020 */
  6321. #define BDMA_IFCR_CTCIF1 BDMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  6322. #define BDMA_IFCR_CHTIF1_Pos (6U)
  6323. #define BDMA_IFCR_CHTIF1_Msk (0x1U << BDMA_IFCR_CHTIF1_Pos) /*!< 0x00000040 */
  6324. #define BDMA_IFCR_CHTIF1 BDMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  6325. #define BDMA_IFCR_CTEIF1_Pos (7U)
  6326. #define BDMA_IFCR_CTEIF1_Msk (0x1U << BDMA_IFCR_CTEIF1_Pos) /*!< 0x00000080 */
  6327. #define BDMA_IFCR_CTEIF1 BDMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  6328. #define BDMA_IFCR_CGIF2_Pos (8U)
  6329. #define BDMA_IFCR_CGIF2_Msk (0x1U << BDMA_IFCR_CGIF2_Pos) /*!< 0x00000100 */
  6330. #define BDMA_IFCR_CGIF2 BDMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  6331. #define BDMA_IFCR_CTCIF2_Pos (9U)
  6332. #define BDMA_IFCR_CTCIF2_Msk (0x1U << BDMA_IFCR_CTCIF2_Pos) /*!< 0x00000200 */
  6333. #define BDMA_IFCR_CTCIF2 BDMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  6334. #define BDMA_IFCR_CHTIF2_Pos (10U)
  6335. #define BDMA_IFCR_CHTIF2_Msk (0x1U << BDMA_IFCR_CHTIF2_Pos) /*!< 0x00000400 */
  6336. #define BDMA_IFCR_CHTIF2 BDMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  6337. #define BDMA_IFCR_CTEIF2_Pos (11U)
  6338. #define BDMA_IFCR_CTEIF2_Msk (0x1U << BDMA_IFCR_CTEIF2_Pos) /*!< 0x00000800 */
  6339. #define BDMA_IFCR_CTEIF2 BDMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  6340. #define BDMA_IFCR_CGIF3_Pos (12U)
  6341. #define BDMA_IFCR_CGIF3_Msk (0x1U << BDMA_IFCR_CGIF3_Pos) /*!< 0x00001000 */
  6342. #define BDMA_IFCR_CGIF3 BDMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  6343. #define BDMA_IFCR_CTCIF3_Pos (13U)
  6344. #define BDMA_IFCR_CTCIF3_Msk (0x1U << BDMA_IFCR_CTCIF3_Pos) /*!< 0x00002000 */
  6345. #define BDMA_IFCR_CTCIF3 BDMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  6346. #define BDMA_IFCR_CHTIF3_Pos (14U)
  6347. #define BDMA_IFCR_CHTIF3_Msk (0x1U << BDMA_IFCR_CHTIF3_Pos) /*!< 0x00004000 */
  6348. #define BDMA_IFCR_CHTIF3 BDMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  6349. #define BDMA_IFCR_CTEIF3_Pos (15U)
  6350. #define BDMA_IFCR_CTEIF3_Msk (0x1U << BDMA_IFCR_CTEIF3_Pos) /*!< 0x00008000 */
  6351. #define BDMA_IFCR_CTEIF3 BDMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  6352. #define BDMA_IFCR_CGIF4_Pos (16U)
  6353. #define BDMA_IFCR_CGIF4_Msk (0x1U << BDMA_IFCR_CGIF4_Pos) /*!< 0x00010000 */
  6354. #define BDMA_IFCR_CGIF4 BDMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  6355. #define BDMA_IFCR_CTCIF4_Pos (17U)
  6356. #define BDMA_IFCR_CTCIF4_Msk (0x1U << BDMA_IFCR_CTCIF4_Pos) /*!< 0x00020000 */
  6357. #define BDMA_IFCR_CTCIF4 BDMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  6358. #define BDMA_IFCR_CHTIF4_Pos (18U)
  6359. #define BDMA_IFCR_CHTIF4_Msk (0x1U << BDMA_IFCR_CHTIF4_Pos) /*!< 0x00040000 */
  6360. #define BDMA_IFCR_CHTIF4 BDMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  6361. #define BDMA_IFCR_CTEIF4_Pos (19U)
  6362. #define BDMA_IFCR_CTEIF4_Msk (0x1U << BDMA_IFCR_CTEIF4_Pos) /*!< 0x00080000 */
  6363. #define BDMA_IFCR_CTEIF4 BDMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  6364. #define BDMA_IFCR_CGIF5_Pos (20U)
  6365. #define BDMA_IFCR_CGIF5_Msk (0x1U << BDMA_IFCR_CGIF5_Pos) /*!< 0x00100000 */
  6366. #define BDMA_IFCR_CGIF5 BDMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  6367. #define BDMA_IFCR_CTCIF5_Pos (21U)
  6368. #define BDMA_IFCR_CTCIF5_Msk (0x1U << BDMA_IFCR_CTCIF5_Pos) /*!< 0x00200000 */
  6369. #define BDMA_IFCR_CTCIF5 BDMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  6370. #define BDMA_IFCR_CHTIF5_Pos (22U)
  6371. #define BDMA_IFCR_CHTIF5_Msk (0x1U << BDMA_IFCR_CHTIF5_Pos) /*!< 0x00400000 */
  6372. #define BDMA_IFCR_CHTIF5 BDMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  6373. #define BDMA_IFCR_CTEIF5_Pos (23U)
  6374. #define BDMA_IFCR_CTEIF5_Msk (0x1U << BDMA_IFCR_CTEIF5_Pos) /*!< 0x00800000 */
  6375. #define BDMA_IFCR_CTEIF5 BDMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  6376. #define BDMA_IFCR_CGIF6_Pos (24U)
  6377. #define BDMA_IFCR_CGIF6_Msk (0x1U << BDMA_IFCR_CGIF6_Pos) /*!< 0x01000000 */
  6378. #define BDMA_IFCR_CGIF6 BDMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  6379. #define BDMA_IFCR_CTCIF6_Pos (25U)
  6380. #define BDMA_IFCR_CTCIF6_Msk (0x1U << BDMA_IFCR_CTCIF6_Pos) /*!< 0x02000000 */
  6381. #define BDMA_IFCR_CTCIF6 BDMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  6382. #define BDMA_IFCR_CHTIF6_Pos (26U)
  6383. #define BDMA_IFCR_CHTIF6_Msk (0x1U << BDMA_IFCR_CHTIF6_Pos) /*!< 0x04000000 */
  6384. #define BDMA_IFCR_CHTIF6 BDMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  6385. #define BDMA_IFCR_CTEIF6_Pos (27U)
  6386. #define BDMA_IFCR_CTEIF6_Msk (0x1U << BDMA_IFCR_CTEIF6_Pos) /*!< 0x08000000 */
  6387. #define BDMA_IFCR_CTEIF6 BDMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  6388. #define BDMA_IFCR_CGIF7_Pos (28U)
  6389. #define BDMA_IFCR_CGIF7_Msk (0x1U << BDMA_IFCR_CGIF7_Pos) /*!< 0x10000000 */
  6390. #define BDMA_IFCR_CGIF7 BDMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  6391. #define BDMA_IFCR_CTCIF7_Pos (29U)
  6392. #define BDMA_IFCR_CTCIF7_Msk (0x1U << BDMA_IFCR_CTCIF7_Pos) /*!< 0x20000000 */
  6393. #define BDMA_IFCR_CTCIF7 BDMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  6394. #define BDMA_IFCR_CHTIF7_Pos (30U)
  6395. #define BDMA_IFCR_CHTIF7_Msk (0x1U << BDMA_IFCR_CHTIF7_Pos) /*!< 0x40000000 */
  6396. #define BDMA_IFCR_CHTIF7 BDMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  6397. #define BDMA_IFCR_CTEIF7_Pos (31U)
  6398. #define BDMA_IFCR_CTEIF7_Msk (0x1U << BDMA_IFCR_CTEIF7_Pos) /*!< 0x80000000 */
  6399. #define BDMA_IFCR_CTEIF7 BDMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  6400. /******************* Bit definition for BDMA_CCR register ********************/
  6401. #define BDMA_CCR_EN_Pos (0U)
  6402. #define BDMA_CCR_EN_Msk (0x1U << BDMA_CCR_EN_Pos) /*!< 0x00000001 */
  6403. #define BDMA_CCR_EN BDMA_CCR_EN_Msk /*!< Channel enable */
  6404. #define BDMA_CCR_TCIE_Pos (1U)
  6405. #define BDMA_CCR_TCIE_Msk (0x1U << BDMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  6406. #define BDMA_CCR_TCIE BDMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  6407. #define BDMA_CCR_HTIE_Pos (2U)
  6408. #define BDMA_CCR_HTIE_Msk (0x1U << BDMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  6409. #define BDMA_CCR_HTIE BDMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  6410. #define BDMA_CCR_TEIE_Pos (3U)
  6411. #define BDMA_CCR_TEIE_Msk (0x1U << BDMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  6412. #define BDMA_CCR_TEIE BDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  6413. #define BDMA_CCR_DIR_Pos (4U)
  6414. #define BDMA_CCR_DIR_Msk (0x1U << BDMA_CCR_DIR_Pos) /*!< 0x00000010 */
  6415. #define BDMA_CCR_DIR BDMA_CCR_DIR_Msk /*!< Data transfer direction */
  6416. #define BDMA_CCR_CIRC_Pos (5U)
  6417. #define BDMA_CCR_CIRC_Msk (0x1U << BDMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  6418. #define BDMA_CCR_CIRC BDMA_CCR_CIRC_Msk /*!< Circular mode */
  6419. #define BDMA_CCR_PINC_Pos (6U)
  6420. #define BDMA_CCR_PINC_Msk (0x1U << BDMA_CCR_PINC_Pos) /*!< 0x00000040 */
  6421. #define BDMA_CCR_PINC BDMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  6422. #define BDMA_CCR_MINC_Pos (7U)
  6423. #define BDMA_CCR_MINC_Msk (0x1U << BDMA_CCR_MINC_Pos) /*!< 0x00000080 */
  6424. #define BDMA_CCR_MINC BDMA_CCR_MINC_Msk /*!< Memory increment mode */
  6425. #define BDMA_CCR_PSIZE_Pos (8U)
  6426. #define BDMA_CCR_PSIZE_Msk (0x3U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  6427. #define BDMA_CCR_PSIZE BDMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  6428. #define BDMA_CCR_PSIZE_0 (0x1U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  6429. #define BDMA_CCR_PSIZE_1 (0x2U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  6430. #define BDMA_CCR_MSIZE_Pos (10U)
  6431. #define BDMA_CCR_MSIZE_Msk (0x3U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  6432. #define BDMA_CCR_MSIZE BDMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  6433. #define BDMA_CCR_MSIZE_0 (0x1U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  6434. #define BDMA_CCR_MSIZE_1 (0x2U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  6435. #define BDMA_CCR_PL_Pos (12U)
  6436. #define BDMA_CCR_PL_Msk (0x3U << BDMA_CCR_PL_Pos) /*!< 0x00003000 */
  6437. #define BDMA_CCR_PL BDMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  6438. #define BDMA_CCR_PL_0 (0x1U << BDMA_CCR_PL_Pos) /*!< 0x00001000 */
  6439. #define BDMA_CCR_PL_1 (0x2U << BDMA_CCR_PL_Pos) /*!< 0x00002000 */
  6440. #define BDMA_CCR_MEM2MEM_Pos (14U)
  6441. #define BDMA_CCR_MEM2MEM_Msk (0x1U << BDMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  6442. #define BDMA_CCR_MEM2MEM BDMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  6443. /****************** Bit definition for BDMA_CNDTR register *******************/
  6444. #define BDMA_CNDTR_NDT_Pos (0U)
  6445. #define BDMA_CNDTR_NDT_Msk (0xFFFFU << BDMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  6446. #define BDMA_CNDTR_NDT BDMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  6447. /****************** Bit definition for BDMA_CPAR register ********************/
  6448. #define BDMA_CPAR_PA_Pos (0U)
  6449. #define BDMA_CPAR_PA_Msk (0xFFFFFFFFU << BDMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  6450. #define BDMA_CPAR_PA BDMA_CPAR_PA_Msk /*!< Peripheral Address */
  6451. /****************** Bit definition for BDMA_CMAR register ********************/
  6452. #define BDMA_CMAR_MA_Pos (0U)
  6453. #define BDMA_CMAR_MA_Msk (0xFFFFFFFFU << BDMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  6454. #define BDMA_CMAR_MA BDMA_CMAR_MA_Msk /*!< Memory Address */
  6455. /******************************************************************************/
  6456. /* */
  6457. /* Ethernet MAC Registers bits definitions */
  6458. /* */
  6459. /******************************************************************************/
  6460. /* Bit definition for Ethernet MAC Configuration Register register */
  6461. #define ETH_MACCR_ARP_Pos (31U)
  6462. #define ETH_MACCR_ARP_Msk (0x1U << ETH_MACCR_ARP_Pos) /*!< 0x80000000 */
  6463. #define ETH_MACCR_ARP ETH_MACCR_ARP_Msk /* ARP Offload Enable */
  6464. #define ETH_MACCR_SARC_Pos (28U)
  6465. #define ETH_MACCR_SARC_Msk (0x7U << ETH_MACCR_SARC_Pos) /*!< 0x70000000 */
  6466. #define ETH_MACCR_SARC ETH_MACCR_SARC_Msk /* Source Address Insertion or Replacement Control */
  6467. #define ETH_MACCR_SARC_MTIATI ((uint32_t)0x00000000) /* The mti_sa_ctrl_i and ati_sa_ctrl_i input signals control the SA field generation. */
  6468. #define ETH_MACCR_SARC_INSADDR0_Pos (29U)
  6469. #define ETH_MACCR_SARC_INSADDR0_Msk (0x1U << ETH_MACCR_SARC_INSADDR0_Pos) /*!< 0x20000000 */
  6470. #define ETH_MACCR_SARC_INSADDR0 ETH_MACCR_SARC_INSADDR0_Msk /* Insert MAC Address0 in the SA field of all transmitted packets. */
  6471. #define ETH_MACCR_SARC_INSADDR1_Pos (29U)
  6472. #define ETH_MACCR_SARC_INSADDR1_Msk (0x3U << ETH_MACCR_SARC_INSADDR1_Pos) /*!< 0x60000000 */
  6473. #define ETH_MACCR_SARC_INSADDR1 ETH_MACCR_SARC_INSADDR1_Msk /* Insert MAC Address1 in the SA field of all transmitted packets. */
  6474. #define ETH_MACCR_SARC_REPADDR0_Pos (28U)
  6475. #define ETH_MACCR_SARC_REPADDR0_Msk (0x3U << ETH_MACCR_SARC_REPADDR0_Pos) /*!< 0x30000000 */
  6476. #define ETH_MACCR_SARC_REPADDR0 ETH_MACCR_SARC_REPADDR0_Msk /* Replace MAC Address0 in the SA field of all transmitted packets. */
  6477. #define ETH_MACCR_SARC_REPADDR1_Pos (28U)
  6478. #define ETH_MACCR_SARC_REPADDR1_Msk (0x7U << ETH_MACCR_SARC_REPADDR1_Pos) /*!< 0x70000000 */
  6479. #define ETH_MACCR_SARC_REPADDR1 ETH_MACCR_SARC_REPADDR1_Msk /* Replace MAC Address1 in the SA field of all transmitted packets. */
  6480. #define ETH_MACCR_IPC_Pos (27U)
  6481. #define ETH_MACCR_IPC_Msk (0x1U << ETH_MACCR_IPC_Pos) /*!< 0x08000000 */
  6482. #define ETH_MACCR_IPC ETH_MACCR_IPC_Msk /* Checksum Offload */
  6483. #define ETH_MACCR_IPG_Pos (24U)
  6484. #define ETH_MACCR_IPG_Msk (0x7U << ETH_MACCR_IPG_Pos) /*!< 0x07000000 */
  6485. #define ETH_MACCR_IPG ETH_MACCR_IPG_Msk /* Inter-Packet Gap */
  6486. #define ETH_MACCR_IPG_96BIT ((uint32_t)0x00000000) /* Minimum IFG between Packets during transmission is 96Bit */
  6487. #define ETH_MACCR_IPG_88BIT ((uint32_t)0x01000000) /* Minimum IFG between Packets during transmission is 88Bit */
  6488. #define ETH_MACCR_IPG_80BIT ((uint32_t)0x02000000) /* Minimum IFG between Packets during transmission is 80Bit */
  6489. #define ETH_MACCR_IPG_72BIT ((uint32_t)0x03000000) /* Minimum IFG between Packets during transmission is 72Bit */
  6490. #define ETH_MACCR_IPG_64BIT ((uint32_t)0x04000000) /* Minimum IFG between Packets during transmission is 64Bit */
  6491. #define ETH_MACCR_IPG_56BIT ((uint32_t)0x05000000) /* Minimum IFG between Packets during transmission is 56Bit */
  6492. #define ETH_MACCR_IPG_48BIT ((uint32_t)0x06000000) /* Minimum IFG between Packets during transmission is 48Bit */
  6493. #define ETH_MACCR_IPG_40BIT ((uint32_t)0x07000000) /* Minimum IFG between Packets during transmission is 40Bit */
  6494. #define ETH_MACCR_GPSLCE_Pos (23U)
  6495. #define ETH_MACCR_GPSLCE_Msk (0x1U << ETH_MACCR_GPSLCE_Pos) /*!< 0x00800000 */
  6496. #define ETH_MACCR_GPSLCE ETH_MACCR_GPSLCE_Msk /* Giant Packet Size Limit Control Enable */
  6497. #define ETH_MACCR_S2KP_Pos (22U)
  6498. #define ETH_MACCR_S2KP_Msk (0x1U << ETH_MACCR_S2KP_Pos) /*!< 0x00400000 */
  6499. #define ETH_MACCR_S2KP ETH_MACCR_S2KP_Msk /* IEEE 802.3as Support for 2K Packets */
  6500. #define ETH_MACCR_CST_Pos (21U)
  6501. #define ETH_MACCR_CST_Msk (0x1U << ETH_MACCR_CST_Pos) /*!< 0x00200000 */
  6502. #define ETH_MACCR_CST ETH_MACCR_CST_Msk /* CRC stripping for Type packets */
  6503. #define ETH_MACCR_ACS_Pos (20U)
  6504. #define ETH_MACCR_ACS_Msk (0x1U << ETH_MACCR_ACS_Pos) /*!< 0x00100000 */
  6505. #define ETH_MACCR_ACS ETH_MACCR_ACS_Msk /* Automatic Pad or CRC Stripping */
  6506. #define ETH_MACCR_WD_Pos (19U)
  6507. #define ETH_MACCR_WD_Msk (0x1U << ETH_MACCR_WD_Pos) /*!< 0x00080000 */
  6508. #define ETH_MACCR_WD ETH_MACCR_WD_Msk /* Watchdog disable */
  6509. #define ETH_MACCR_JD_Pos (17U)
  6510. #define ETH_MACCR_JD_Msk (0x1U << ETH_MACCR_JD_Pos) /*!< 0x00020000 */
  6511. #define ETH_MACCR_JD ETH_MACCR_JD_Msk /* Jabber disable */
  6512. #define ETH_MACCR_JE_Pos (16U)
  6513. #define ETH_MACCR_JE_Msk (0x1U << ETH_MACCR_JE_Pos) /*!< 0x00010000 */
  6514. #define ETH_MACCR_JE ETH_MACCR_JE_Msk /* Jumbo Packet Enable */
  6515. #define ETH_MACCR_FES_Pos (14U)
  6516. #define ETH_MACCR_FES_Msk (0x1U << ETH_MACCR_FES_Pos) /*!< 0x00004000 */
  6517. #define ETH_MACCR_FES ETH_MACCR_FES_Msk /* Fast ethernet speed */
  6518. #define ETH_MACCR_DM_Pos (13U)
  6519. #define ETH_MACCR_DM_Msk (0x1U << ETH_MACCR_DM_Pos) /*!< 0x00002000 */
  6520. #define ETH_MACCR_DM ETH_MACCR_DM_Msk /* Duplex mode */
  6521. #define ETH_MACCR_LM_Pos (12U)
  6522. #define ETH_MACCR_LM_Msk (0x1U << ETH_MACCR_LM_Pos) /*!< 0x00001000 */
  6523. #define ETH_MACCR_LM ETH_MACCR_LM_Msk /* loopback mode */
  6524. #define ETH_MACCR_ECRSFD_Pos (11U)
  6525. #define ETH_MACCR_ECRSFD_Msk (0x1U << ETH_MACCR_ECRSFD_Pos) /*!< 0x00000800 */
  6526. #define ETH_MACCR_ECRSFD ETH_MACCR_ECRSFD_Msk /* Enable Carrier Sense Before Transmission in Full-Duplex Mode */
  6527. #define ETH_MACCR_DO_Pos (10U)
  6528. #define ETH_MACCR_DO_Msk (0x1U << ETH_MACCR_DO_Pos) /*!< 0x00000400 */
  6529. #define ETH_MACCR_DO ETH_MACCR_DO_Msk /* Disable Receive own */
  6530. #define ETH_MACCR_DCRS_Pos (9U)
  6531. #define ETH_MACCR_DCRS_Msk (0x1U << ETH_MACCR_DCRS_Pos) /*!< 0x00000200 */
  6532. #define ETH_MACCR_DCRS ETH_MACCR_DCRS_Msk /* Disable Carrier Sense During Transmission */
  6533. #define ETH_MACCR_DR_Pos (8U)
  6534. #define ETH_MACCR_DR_Msk (0x1U << ETH_MACCR_DR_Pos) /*!< 0x00000100 */
  6535. #define ETH_MACCR_DR ETH_MACCR_DR_Msk /* Disable Retry */
  6536. #define ETH_MACCR_BL_Pos (5U)
  6537. #define ETH_MACCR_BL_Msk (0x3U << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6538. #define ETH_MACCR_BL ETH_MACCR_BL_Msk /* Back-off limit mask */
  6539. #define ETH_MACCR_BL_10 (0x0U << ETH_MACCR_BL_Pos) /*!< 0x00000000 */
  6540. #define ETH_MACCR_BL_8 (0x1U << ETH_MACCR_BL_Pos) /*!< 0x00000020 */
  6541. #define ETH_MACCR_BL_4 (0x2U << ETH_MACCR_BL_Pos) /*!< 0x00000040 */
  6542. #define ETH_MACCR_BL_1 (0x3U << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6543. #define ETH_MACCR_DC_Pos (4U)
  6544. #define ETH_MACCR_DC_Msk (0x1U << ETH_MACCR_DC_Pos) /*!< 0x00000010 */
  6545. #define ETH_MACCR_DC ETH_MACCR_DC_Msk /* Defferal check */
  6546. #define ETH_MACCR_PRELEN_Pos (2U)
  6547. #define ETH_MACCR_PRELEN_Msk (0x3U << ETH_MACCR_PRELEN_Pos) /*!< 0x0000000C */
  6548. #define ETH_MACCR_PRELEN ETH_MACCR_PRELEN_Msk /* Preamble Length for Transmit packets */
  6549. #define ETH_MACCR_PRELEN_7 (0x0U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000000 */
  6550. #define ETH_MACCR_PRELEN_5 (0x1U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000004 */
  6551. #define ETH_MACCR_PRELEN_3 (0x2U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000008 */
  6552. #define ETH_MACCR_TE_Pos (1U)
  6553. #define ETH_MACCR_TE_Msk (0x1U << ETH_MACCR_TE_Pos) /*!< 0x00000002 */
  6554. #define ETH_MACCR_TE ETH_MACCR_TE_Msk /* Transmitter enable */
  6555. #define ETH_MACCR_RE_Pos (0U)
  6556. #define ETH_MACCR_RE_Msk (0x1U << ETH_MACCR_RE_Pos) /*!< 0x00000001 */
  6557. #define ETH_MACCR_RE ETH_MACCR_RE_Msk /* Receiver enable */
  6558. /* Bit definition for Ethernet MAC Extended Configuration Register register */
  6559. #define ETH_MACECR_EIPG_Pos (25U)
  6560. #define ETH_MACECR_EIPG_Msk (0x1FU << ETH_MACECR_EIPG_Pos) /*!< 0x3E000000 */
  6561. #define ETH_MACECR_EIPG ETH_MACECR_EIPG_Msk /* Extended Inter-Packet Gap */
  6562. #define ETH_MACECR_EIPGEN_Pos (24U)
  6563. #define ETH_MACECR_EIPGEN_Msk (0x1U << ETH_MACECR_EIPGEN_Pos) /*!< 0x01000000 */
  6564. #define ETH_MACECR_EIPGEN ETH_MACECR_EIPGEN_Msk /* Extended Inter-Packet Gap Enable */
  6565. #define ETH_MACECR_USP_Pos (18U)
  6566. #define ETH_MACECR_USP_Msk (0x1U << ETH_MACECR_USP_Pos) /*!< 0x00040000 */
  6567. #define ETH_MACECR_USP ETH_MACECR_USP_Msk /* Unicast Slow Protocol Packet Detect */
  6568. #define ETH_MACECR_SPEN_Pos (17U)
  6569. #define ETH_MACECR_SPEN_Msk (0x1U << ETH_MACECR_SPEN_Pos) /*!< 0x00020000 */
  6570. #define ETH_MACECR_SPEN ETH_MACECR_SPEN_Msk /* Slow Protocol Detection Enable */
  6571. #define ETH_MACECR_DCRCC_Pos (16U)
  6572. #define ETH_MACECR_DCRCC_Msk (0x1U << ETH_MACECR_DCRCC_Pos) /*!< 0x00010000 */
  6573. #define ETH_MACECR_DCRCC ETH_MACECR_DCRCC_Msk /* Disable CRC Checking for Received Packets */
  6574. #define ETH_MACECR_GPSL_Pos (0U)
  6575. #define ETH_MACECR_GPSL_Msk (0x3FFFU << ETH_MACECR_GPSL_Pos) /*!< 0x00003FFF */
  6576. #define ETH_MACECR_GPSL ETH_MACECR_GPSL_Msk /* Giant Packet Size Limit */
  6577. /* Bit definition for Ethernet MAC Packet Filter Register */
  6578. #define ETH_MACPFR_RA_Pos (31U)
  6579. #define ETH_MACPFR_RA_Msk (0x1U << ETH_MACPFR_RA_Pos) /*!< 0x80000000 */
  6580. #define ETH_MACPFR_RA ETH_MACPFR_RA_Msk /* Receive all */
  6581. #define ETH_MACPFR_DNTU_Pos (21U)
  6582. #define ETH_MACPFR_DNTU_Msk (0x1U << ETH_MACPFR_DNTU_Pos) /*!< 0x00200000 */
  6583. #define ETH_MACPFR_DNTU ETH_MACPFR_DNTU_Msk /* Drop Non-TCP/UDP over IP Packets */
  6584. #define ETH_MACPFR_IPFE_Pos (20U)
  6585. #define ETH_MACPFR_IPFE_Msk (0x1U << ETH_MACPFR_IPFE_Pos) /*!< 0x00100000 */
  6586. #define ETH_MACPFR_IPFE ETH_MACPFR_IPFE_Msk /* Layer 3 and Layer 4 Filter Enable */
  6587. #define ETH_MACPFR_VTFE_Pos (16U)
  6588. #define ETH_MACPFR_VTFE_Msk (0x1U << ETH_MACPFR_VTFE_Pos) /*!< 0x00010000 */
  6589. #define ETH_MACPFR_VTFE ETH_MACPFR_VTFE_Msk /* VLAN Tag Filter Enable */
  6590. #define ETH_MACPFR_HPF_Pos (10U)
  6591. #define ETH_MACPFR_HPF_Msk (0x1U << ETH_MACPFR_HPF_Pos) /*!< 0x00000400 */
  6592. #define ETH_MACPFR_HPF ETH_MACPFR_HPF_Msk /* Hash or perfect filter */
  6593. #define ETH_MACPFR_SAF_Pos (9U)
  6594. #define ETH_MACPFR_SAF_Msk (0x1U << ETH_MACPFR_SAF_Pos) /*!< 0x00000200 */
  6595. #define ETH_MACPFR_SAF ETH_MACPFR_SAF_Msk /* Source address filter enable */
  6596. #define ETH_MACPFR_SAIF_Pos (8U)
  6597. #define ETH_MACPFR_SAIF_Msk (0x1U << ETH_MACPFR_SAIF_Pos) /*!< 0x00000100 */
  6598. #define ETH_MACPFR_SAIF ETH_MACPFR_SAIF_Msk /* SA inverse filtering */
  6599. #define ETH_MACPFR_PCF_Pos (6U)
  6600. #define ETH_MACPFR_PCF_Msk (0x3U << ETH_MACPFR_PCF_Pos) /*!< 0x000000C0 */
  6601. #define ETH_MACPFR_PCF ETH_MACPFR_PCF_Msk /* Pass control frames: 4 cases */
  6602. #define ETH_MACPFR_PCF_BLOCKALL ((uint32_t)0x00000000) /* MAC filters all control frames from reaching the application */
  6603. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos (6U)
  6604. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Msk (0x1U << ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos) /*!< 0x00000040 */
  6605. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Msk /* MAC forwards all control frames except Pause packets to application even if they fail the Address Filter */
  6606. #define ETH_MACPFR_PCF_FORWARDALL_Pos (7U)
  6607. #define ETH_MACPFR_PCF_FORWARDALL_Msk (0x1U << ETH_MACPFR_PCF_FORWARDALL_Pos) /*!< 0x00000080 */
  6608. #define ETH_MACPFR_PCF_FORWARDALL ETH_MACPFR_PCF_FORWARDALL_Msk /* MAC forwards all control frames to application even if they fail the Address Filter */
  6609. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos (6U)
  6610. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk (0x3U << ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos) /*!< 0x000000C0 */
  6611. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk /* MAC forwards control frames that pass the Address Filter. */
  6612. #define ETH_MACPFR_DBF_Pos (5U)
  6613. #define ETH_MACPFR_DBF_Msk (0x1U << ETH_MACPFR_DBF_Pos) /*!< 0x00000020 */
  6614. #define ETH_MACPFR_DBF ETH_MACPFR_DBF_Msk /* Disable Broadcast Packets */
  6615. #define ETH_MACPFR_PM_Pos (4U)
  6616. #define ETH_MACPFR_PM_Msk (0x1U << ETH_MACPFR_PM_Pos) /*!< 0x00000010 */
  6617. #define ETH_MACPFR_PM ETH_MACPFR_PM_Msk /* Pass all mutlicast */
  6618. #define ETH_MACPFR_DAIF_Pos (3U)
  6619. #define ETH_MACPFR_DAIF_Msk (0x1U << ETH_MACPFR_DAIF_Pos) /*!< 0x00000008 */
  6620. #define ETH_MACPFR_DAIF ETH_MACPFR_DAIF_Msk /* DA Inverse filtering */
  6621. #define ETH_MACPFR_HMC_Pos (2U)
  6622. #define ETH_MACPFR_HMC_Msk (0x1U << ETH_MACPFR_HMC_Pos) /*!< 0x00000004 */
  6623. #define ETH_MACPFR_HMC ETH_MACPFR_HMC_Msk /* Hash multicast */
  6624. #define ETH_MACPFR_HUC_Pos (1U)
  6625. #define ETH_MACPFR_HUC_Msk (0x1U << ETH_MACPFR_HUC_Pos) /*!< 0x00000002 */
  6626. #define ETH_MACPFR_HUC ETH_MACPFR_HUC_Msk /* Hash unicast */
  6627. #define ETH_MACPFR_PR_Pos (0U)
  6628. #define ETH_MACPFR_PR_Msk (0x1U << ETH_MACPFR_PR_Pos) /*!< 0x00000001 */
  6629. #define ETH_MACPFR_PR ETH_MACPFR_PR_Msk /* Promiscuous mode */
  6630. /* Bit definition for Ethernet MAC Watchdog Timeout Register */
  6631. #define ETH_MACWTR_PWE_Pos (8U)
  6632. #define ETH_MACWTR_PWE_Msk (0x1U << ETH_MACWTR_PWE_Pos) /*!< 0x00000100 */
  6633. #define ETH_MACWTR_PWE ETH_MACWTR_PWE_Msk /* Programmable Watchdog Enable */
  6634. #define ETH_MACWTR_WTO_Pos (0U)
  6635. #define ETH_MACWTR_WTO_Msk (0xFU << ETH_MACWTR_WTO_Pos) /*!< 0x0000000F */
  6636. #define ETH_MACWTR_WTO ETH_MACWTR_WTO_Msk /* Watchdog Timeout */
  6637. #define ETH_MACWTR_WTO_2KB ((uint32_t)0x00000000) /* Maximum received packet length 2KB*/
  6638. #define ETH_MACWTR_WTO_3KB ((uint32_t)0x00000001) /* Maximum received packet length 3KB */
  6639. #define ETH_MACWTR_WTO_4KB ((uint32_t)0x00000002) /* Maximum received packet length 4KB */
  6640. #define ETH_MACWTR_WTO_5KB ((uint32_t)0x00000003) /* Maximum received packet length 5KB */
  6641. #define ETH_MACWTR_WTO_6KB ((uint32_t)0x00000004) /* Maximum received packet length 6KB */
  6642. #define ETH_MACWTR_WTO_7KB ((uint32_t)0x00000005) /* Maximum received packet length 7KB */
  6643. #define ETH_MACWTR_WTO_8KB ((uint32_t)0x00000006) /* Maximum received packet length 8KB */
  6644. #define ETH_MACWTR_WTO_9KB ((uint32_t)0x00000007) /* Maximum received packet length 9KB */
  6645. #define ETH_MACWTR_WTO_10KB ((uint32_t)0x00000008) /* Maximum received packet length 10KB */
  6646. #define ETH_MACWTR_WTO_11KB ((uint32_t)0x00000009) /* Maximum received packet length 11KB */
  6647. #define ETH_MACWTR_WTO_12KB ((uint32_t)0x0000000A) /* Maximum received packet length 12KB */
  6648. #define ETH_MACWTR_WTO_13KB ((uint32_t)0x0000000B) /* Maximum received packet length 13KB */
  6649. #define ETH_MACWTR_WTO_14KB ((uint32_t)0x0000000C) /* Maximum received packet length 14KB */
  6650. #define ETH_MACWTR_WTO_15KB ((uint32_t)0x0000000D) /* Maximum received packet length 15KB */
  6651. #define ETH_MACWTR_WTO_16KB ((uint32_t)0x0000000E) /* Maximum received packet length 16KB */
  6652. /* Bit definition for Ethernet MAC Hash Table High Register */
  6653. #define ETH_MACHTHR_HTH_Pos (0U)
  6654. #define ETH_MACHTHR_HTH_Msk (0xFFFFFFFFU << ETH_MACHTHR_HTH_Pos) /*!< 0xFFFFFFFF */
  6655. #define ETH_MACHTHR_HTH ETH_MACHTHR_HTH_Msk /* Hash table high */
  6656. /* Bit definition for Ethernet MAC Hash Table Low Register */
  6657. #define ETH_MACHTLR_HTL_Pos (0U)
  6658. #define ETH_MACHTLR_HTL_Msk (0xFFFFFFFFU << ETH_MACHTLR_HTL_Pos) /*!< 0xFFFFFFFF */
  6659. #define ETH_MACHTLR_HTL ETH_MACHTLR_HTL_Msk /* Hash table low */
  6660. /* Bit definition for Ethernet MAC VLAN Tag Register */
  6661. #define ETH_MACVTR_EIVLRXS_Pos (31U)
  6662. #define ETH_MACVTR_EIVLRXS_Msk (0x1U << ETH_MACVTR_EIVLRXS_Pos) /*!< 0x80000000 */
  6663. #define ETH_MACVTR_EIVLRXS ETH_MACVTR_EIVLRXS_Msk /* Enable Inner VLAN Tag in Rx Status */
  6664. #define ETH_MACVTR_EIVLS_Pos (28U)
  6665. #define ETH_MACVTR_EIVLS_Msk (0x3U << ETH_MACVTR_EIVLS_Pos) /*!< 0x30000000 */
  6666. #define ETH_MACVTR_EIVLS ETH_MACVTR_EIVLS_Msk /* Enable Inner VLAN Tag Stripping on Receive */
  6667. #define ETH_MACVTR_EIVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6668. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Pos (28U)
  6669. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Msk (0x1U << ETH_MACVTR_EIVLS_STRIPIFPASS_Pos) /*!< 0x10000000 */
  6670. #define ETH_MACVTR_EIVLS_STRIPIFPASS ETH_MACVTR_EIVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6671. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos (29U)
  6672. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk (0x1U << ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos) /*!< 0x20000000 */
  6673. #define ETH_MACVTR_EIVLS_STRIPIFFAILS ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6674. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos (28U)
  6675. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk (0x3U << ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos) /*!< 0x30000000 */
  6676. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk /* Always strip */
  6677. #define ETH_MACVTR_ERIVLT_Pos (27U)
  6678. #define ETH_MACVTR_ERIVLT_Msk (0x1U << ETH_MACVTR_ERIVLT_Pos) /*!< 0x08000000 */
  6679. #define ETH_MACVTR_ERIVLT ETH_MACVTR_ERIVLT_Msk /* Enable Inner VLAN Tag */
  6680. #define ETH_MACVTR_EDVLP_Pos (26U)
  6681. #define ETH_MACVTR_EDVLP_Msk (0x1U << ETH_MACVTR_EDVLP_Pos) /*!< 0x04000000 */
  6682. #define ETH_MACVTR_EDVLP ETH_MACVTR_EDVLP_Msk /* Enable Double VLAN Processing */
  6683. #define ETH_MACVTR_VTHM_Pos (25U)
  6684. #define ETH_MACVTR_VTHM_Msk (0x1U << ETH_MACVTR_VTHM_Pos) /*!< 0x02000000 */
  6685. #define ETH_MACVTR_VTHM ETH_MACVTR_VTHM_Msk /* VLAN Tag Hash Table Match Enable */
  6686. #define ETH_MACVTR_EVLRXS_Pos (24U)
  6687. #define ETH_MACVTR_EVLRXS_Msk (0x1U << ETH_MACVTR_EVLRXS_Pos) /*!< 0x01000000 */
  6688. #define ETH_MACVTR_EVLRXS ETH_MACVTR_EVLRXS_Msk /* Enable VLAN Tag in Rx status */
  6689. #define ETH_MACVTR_EVLS_Pos (21U)
  6690. #define ETH_MACVTR_EVLS_Msk (0x3U << ETH_MACVTR_EVLS_Pos) /*!< 0x00600000 */
  6691. #define ETH_MACVTR_EVLS ETH_MACVTR_EVLS_Msk /* Enable VLAN Tag Stripping on Receive */
  6692. #define ETH_MACVTR_EVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6693. #define ETH_MACVTR_EVLS_STRIPIFPASS_Pos (21U)
  6694. #define ETH_MACVTR_EVLS_STRIPIFPASS_Msk (0x1U << ETH_MACVTR_EVLS_STRIPIFPASS_Pos) /*!< 0x00200000 */
  6695. #define ETH_MACVTR_EVLS_STRIPIFPASS ETH_MACVTR_EVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6696. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Pos (22U)
  6697. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Msk (0x1U << ETH_MACVTR_EVLS_STRIPIFFAILS_Pos) /*!< 0x00400000 */
  6698. #define ETH_MACVTR_EVLS_STRIPIFFAILS ETH_MACVTR_EVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6699. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos (21U)
  6700. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk (0x3U << ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos) /*!< 0x00600000 */
  6701. #define ETH_MACVTR_EVLS_ALWAYSSTRIP ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk /* Always strip */
  6702. #define ETH_MACVTR_DOVLTC_Pos (20U)
  6703. #define ETH_MACVTR_DOVLTC_Msk (0x1U << ETH_MACVTR_DOVLTC_Pos) /*!< 0x00100000 */
  6704. #define ETH_MACVTR_DOVLTC ETH_MACVTR_DOVLTC_Msk /* Disable VLAN Type Check */
  6705. #define ETH_MACVTR_ERSVLM_Pos (19U)
  6706. #define ETH_MACVTR_ERSVLM_Msk (0x1U << ETH_MACVTR_ERSVLM_Pos) /*!< 0x00080000 */
  6707. #define ETH_MACVTR_ERSVLM ETH_MACVTR_ERSVLM_Msk /* Enable Receive S-VLAN Match */
  6708. #define ETH_MACVTR_ESVL_Pos (18U)
  6709. #define ETH_MACVTR_ESVL_Msk (0x1U << ETH_MACVTR_ESVL_Pos) /*!< 0x00040000 */
  6710. #define ETH_MACVTR_ESVL ETH_MACVTR_ESVL_Msk /* Enable S-VLAN */
  6711. #define ETH_MACVTR_VTIM_Pos (17U)
  6712. #define ETH_MACVTR_VTIM_Msk (0x1U << ETH_MACVTR_VTIM_Pos) /*!< 0x00020000 */
  6713. #define ETH_MACVTR_VTIM ETH_MACVTR_VTIM_Msk /* VLAN Tag Inverse Match Enable */
  6714. #define ETH_MACVTR_ETV_Pos (16U)
  6715. #define ETH_MACVTR_ETV_Msk (0x1U << ETH_MACVTR_ETV_Pos) /*!< 0x00010000 */
  6716. #define ETH_MACVTR_ETV ETH_MACVTR_ETV_Msk /* Enable 12-Bit VLAN Tag Comparison */
  6717. #define ETH_MACVTR_VL_Pos (0U)
  6718. #define ETH_MACVTR_VL_Msk (0xFFFFU << ETH_MACVTR_VL_Pos) /*!< 0x0000FFFF */
  6719. #define ETH_MACVTR_VL ETH_MACVTR_VL_Msk /* VLAN Tag Identifier for Receive Packets */
  6720. #define ETH_MACVTR_VL_UP_Pos (13U)
  6721. #define ETH_MACVTR_VL_UP_Msk (0x7U << ETH_MACVTR_VL_UP_Pos) /*!< 0x0000E000 */
  6722. #define ETH_MACVTR_VL_UP ETH_MACVTR_VL_UP_Msk /* User Priority */
  6723. #define ETH_MACVTR_VL_CFIDEI_Pos (12U)
  6724. #define ETH_MACVTR_VL_CFIDEI_Msk (0x1U << ETH_MACVTR_VL_CFIDEI_Pos) /*!< 0x00001000 */
  6725. #define ETH_MACVTR_VL_CFIDEI ETH_MACVTR_VL_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6726. #define ETH_MACVTR_VL_VID_Pos (0U)
  6727. #define ETH_MACVTR_VL_VID_Msk (0xFFFU << ETH_MACVTR_VL_VID_Pos) /*!< 0x00000FFF */
  6728. #define ETH_MACVTR_VL_VID ETH_MACVTR_VL_VID_Msk /* VLAN Identifier field of VLAN tag */
  6729. /* Bit definition for Ethernet MAC VLAN Hash Table Register */
  6730. #define ETH_MACVHTR_VLHT_Pos (0U)
  6731. #define ETH_MACVHTR_VLHT_Msk (0xFFFFU << ETH_MACVHTR_VLHT_Pos) /*!< 0x0000FFFF */
  6732. #define ETH_MACVHTR_VLHT ETH_MACVHTR_VLHT_Msk /* VLAN Hash Table */
  6733. /* Bit definition for Ethernet MAC VLAN Incl Register */
  6734. #define ETH_MACVIR_VLTI_Pos (20U)
  6735. #define ETH_MACVIR_VLTI_Msk (0x1U << ETH_MACVIR_VLTI_Pos) /*!< 0x00100000 */
  6736. #define ETH_MACVIR_VLTI ETH_MACVIR_VLTI_Msk /* VLAN Tag Input */
  6737. #define ETH_MACVIR_CSVL_Pos (19U)
  6738. #define ETH_MACVIR_CSVL_Msk (0x1U << ETH_MACVIR_CSVL_Pos) /*!< 0x00080000 */
  6739. #define ETH_MACVIR_CSVL ETH_MACVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6740. #define ETH_MACVIR_VLP_Pos (18U)
  6741. #define ETH_MACVIR_VLP_Msk (0x1U << ETH_MACVIR_VLP_Pos) /*!< 0x00040000 */
  6742. #define ETH_MACVIR_VLP ETH_MACVIR_VLP_Msk /* VLAN Priority Control */
  6743. #define ETH_MACVIR_VLC_Pos (16U)
  6744. #define ETH_MACVIR_VLC_Msk (0x3U << ETH_MACVIR_VLC_Pos) /*!< 0x00030000 */
  6745. #define ETH_MACVIR_VLC ETH_MACVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6746. #define ETH_MACVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6747. #define ETH_MACVIR_VLC_VLANTAGDELETE_Pos (16U)
  6748. #define ETH_MACVIR_VLC_VLANTAGDELETE_Msk (0x1U << ETH_MACVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6749. #define ETH_MACVIR_VLC_VLANTAGDELETE ETH_MACVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6750. #define ETH_MACVIR_VLC_VLANTAGINSERT_Pos (17U)
  6751. #define ETH_MACVIR_VLC_VLANTAGINSERT_Msk (0x1U << ETH_MACVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6752. #define ETH_MACVIR_VLC_VLANTAGINSERT ETH_MACVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6753. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6754. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Msk (0x3U << ETH_MACVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6755. #define ETH_MACVIR_VLC_VLANTAGREPLACE ETH_MACVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6756. #define ETH_MACVIR_VLT_Pos (0U)
  6757. #define ETH_MACVIR_VLT_Msk (0xFFFFU << ETH_MACVIR_VLT_Pos) /*!< 0x0000FFFF */
  6758. #define ETH_MACVIR_VLT ETH_MACVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6759. #define ETH_MACVIR_VLT_UP_Pos (13U)
  6760. #define ETH_MACVIR_VLT_UP_Msk (0x7U << ETH_MACVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6761. #define ETH_MACVIR_VLT_UP ETH_MACVIR_VLT_UP_Msk /* User Priority */
  6762. #define ETH_MACVIR_VLT_CFIDEI_Pos (12U)
  6763. #define ETH_MACVIR_VLT_CFIDEI_Msk (0x1U << ETH_MACVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6764. #define ETH_MACVIR_VLT_CFIDEI ETH_MACVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6765. #define ETH_MACVIR_VLT_VID_Pos (0U)
  6766. #define ETH_MACVIR_VLT_VID_Msk (0xFFFU << ETH_MACVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6767. #define ETH_MACVIR_VLT_VID ETH_MACVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6768. /* Bit definition for Ethernet MAC Inner_VLAN Incl Register */
  6769. #define ETH_MACIVIR_VLTI_Pos (20U)
  6770. #define ETH_MACIVIR_VLTI_Msk (0x1U << ETH_MACIVIR_VLTI_Pos) /*!< 0x00100000 */
  6771. #define ETH_MACIVIR_VLTI ETH_MACIVIR_VLTI_Msk /* VLAN Tag Input */
  6772. #define ETH_MACIVIR_CSVL_Pos (19U)
  6773. #define ETH_MACIVIR_CSVL_Msk (0x1U << ETH_MACIVIR_CSVL_Pos) /*!< 0x00080000 */
  6774. #define ETH_MACIVIR_CSVL ETH_MACIVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6775. #define ETH_MACIVIR_VLP_Pos (18U)
  6776. #define ETH_MACIVIR_VLP_Msk (0x1U << ETH_MACIVIR_VLP_Pos) /*!< 0x00040000 */
  6777. #define ETH_MACIVIR_VLP ETH_MACIVIR_VLP_Msk /* VLAN Priority Control */
  6778. #define ETH_MACIVIR_VLC_Pos (16U)
  6779. #define ETH_MACIVIR_VLC_Msk (0x3U << ETH_MACIVIR_VLC_Pos) /*!< 0x00030000 */
  6780. #define ETH_MACIVIR_VLC ETH_MACIVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6781. #define ETH_MACIVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6782. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Pos (16U)
  6783. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Msk (0x1U << ETH_MACIVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6784. #define ETH_MACIVIR_VLC_VLANTAGDELETE ETH_MACIVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6785. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Pos (17U)
  6786. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Msk (0x1U << ETH_MACIVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6787. #define ETH_MACIVIR_VLC_VLANTAGINSERT ETH_MACIVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6788. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6789. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk (0x3U << ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6790. #define ETH_MACIVIR_VLC_VLANTAGREPLACE ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6791. #define ETH_MACIVIR_VLT_Pos (0U)
  6792. #define ETH_MACIVIR_VLT_Msk (0xFFFFU << ETH_MACIVIR_VLT_Pos) /*!< 0x0000FFFF */
  6793. #define ETH_MACIVIR_VLT ETH_MACIVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6794. #define ETH_MACIVIR_VLT_UP_Pos (13U)
  6795. #define ETH_MACIVIR_VLT_UP_Msk (0x7U << ETH_MACIVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6796. #define ETH_MACIVIR_VLT_UP ETH_MACIVIR_VLT_UP_Msk /* User Priority */
  6797. #define ETH_MACIVIR_VLT_CFIDEI_Pos (12U)
  6798. #define ETH_MACIVIR_VLT_CFIDEI_Msk (0x1U << ETH_MACIVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6799. #define ETH_MACIVIR_VLT_CFIDEI ETH_MACIVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6800. #define ETH_MACIVIR_VLT_VID_Pos (0U)
  6801. #define ETH_MACIVIR_VLT_VID_Msk (0xFFFU << ETH_MACIVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6802. #define ETH_MACIVIR_VLT_VID ETH_MACIVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6803. /* Bit definition for Ethernet MAC Tx Flow Ctrl Register */
  6804. #define ETH_MACTFCR_PT_Pos (16U)
  6805. #define ETH_MACTFCR_PT_Msk (0xFFFFU << ETH_MACTFCR_PT_Pos) /*!< 0xFFFF0000 */
  6806. #define ETH_MACTFCR_PT ETH_MACTFCR_PT_Msk /* Pause Time */
  6807. #define ETH_MACTFCR_DZPQ_Pos (7U)
  6808. #define ETH_MACTFCR_DZPQ_Msk (0x1U << ETH_MACTFCR_DZPQ_Pos) /*!< 0x00000080 */
  6809. #define ETH_MACTFCR_DZPQ ETH_MACTFCR_DZPQ_Msk /* Disable Zero-Quanta Pause */
  6810. #define ETH_MACTFCR_PLT_Pos (4U)
  6811. #define ETH_MACTFCR_PLT_Msk (0x7U << ETH_MACTFCR_PLT_Pos) /*!< 0x00000070 */
  6812. #define ETH_MACTFCR_PLT ETH_MACTFCR_PLT_Msk /* Pause Low Threshold */
  6813. #define ETH_MACTFCR_PLT_MINUS4 ((uint32_t)0x00000000) /* Pause time minus 4 slot times */
  6814. #define ETH_MACTFCR_PLT_MINUS28_Pos (4U)
  6815. #define ETH_MACTFCR_PLT_MINUS28_Msk (0x1U << ETH_MACTFCR_PLT_MINUS28_Pos) /*!< 0x00000010 */
  6816. #define ETH_MACTFCR_PLT_MINUS28 ETH_MACTFCR_PLT_MINUS28_Msk /* Pause time minus 28 slot times */
  6817. #define ETH_MACTFCR_PLT_MINUS36_Pos (5U)
  6818. #define ETH_MACTFCR_PLT_MINUS36_Msk (0x1U << ETH_MACTFCR_PLT_MINUS36_Pos) /*!< 0x00000020 */
  6819. #define ETH_MACTFCR_PLT_MINUS36 ETH_MACTFCR_PLT_MINUS36_Msk /* Pause time minus 36 slot times */
  6820. #define ETH_MACTFCR_PLT_MINUS144_Pos (4U)
  6821. #define ETH_MACTFCR_PLT_MINUS144_Msk (0x3U << ETH_MACTFCR_PLT_MINUS144_Pos) /*!< 0x00000030 */
  6822. #define ETH_MACTFCR_PLT_MINUS144 ETH_MACTFCR_PLT_MINUS144_Msk /* Pause time minus 144 slot times */
  6823. #define ETH_MACTFCR_PLT_MINUS256_Pos (6U)
  6824. #define ETH_MACTFCR_PLT_MINUS256_Msk (0x1U << ETH_MACTFCR_PLT_MINUS256_Pos) /*!< 0x00000040 */
  6825. #define ETH_MACTFCR_PLT_MINUS256 ETH_MACTFCR_PLT_MINUS256_Msk /* Pause time minus 256 slot times */
  6826. #define ETH_MACTFCR_PLT_MINUS512_Pos (4U)
  6827. #define ETH_MACTFCR_PLT_MINUS512_Msk (0x5U << ETH_MACTFCR_PLT_MINUS512_Pos) /*!< 0x00000050 */
  6828. #define ETH_MACTFCR_PLT_MINUS512 ETH_MACTFCR_PLT_MINUS512_Msk /* Pause time minus 512 slot times */
  6829. #define ETH_MACTFCR_TFE_Pos (1U)
  6830. #define ETH_MACTFCR_TFE_Msk (0x1U << ETH_MACTFCR_TFE_Pos) /*!< 0x00000002 */
  6831. #define ETH_MACTFCR_TFE ETH_MACTFCR_TFE_Msk /* Transmit Flow Control Enable */
  6832. #define ETH_MACTFCR_FCB_Pos (0U)
  6833. #define ETH_MACTFCR_FCB_Msk (0x1U << ETH_MACTFCR_FCB_Pos) /*!< 0x00000001 */
  6834. #define ETH_MACTFCR_FCB ETH_MACTFCR_FCB_Msk /* Flow Control Busy or Backpressure Activate */
  6835. /* Bit definition for Ethernet MAC Rx Flow Ctrl Register */
  6836. #define ETH_MACRFCR_UP_Pos (1U)
  6837. #define ETH_MACRFCR_UP_Msk (0x1U << ETH_MACRFCR_UP_Pos) /*!< 0x00000002 */
  6838. #define ETH_MACRFCR_UP ETH_MACRFCR_UP_Msk /* Unicast Pause Packet Detect */
  6839. #define ETH_MACRFCR_RFE_Pos (0U)
  6840. #define ETH_MACRFCR_RFE_Msk (0x1U << ETH_MACRFCR_RFE_Pos) /*!< 0x00000001 */
  6841. #define ETH_MACRFCR_RFE ETH_MACRFCR_RFE_Msk /* Receive Flow Control Enable */
  6842. /* Bit definition for Ethernet MAC Interrupt Status Register */
  6843. #define ETH_MACISR_RXSTSIS_Pos (14U)
  6844. #define ETH_MACISR_RXSTSIS_Msk (0x1U << ETH_MACISR_RXSTSIS_Pos) /*!< 0x00004000 */
  6845. #define ETH_MACISR_RXSTSIS ETH_MACISR_RXSTSIS_Msk /* Receive Status Interrupt */
  6846. #define ETH_MACISR_TXSTSIS_Pos (13U)
  6847. #define ETH_MACISR_TXSTSIS_Msk (0x1U << ETH_MACISR_TXSTSIS_Pos) /*!< 0x00002000 */
  6848. #define ETH_MACISR_TXSTSIS ETH_MACISR_TXSTSIS_Msk /* Transmit Status Interrupt */
  6849. #define ETH_MACISR_TSIS_Pos (12U)
  6850. #define ETH_MACISR_TSIS_Msk (0x1U << ETH_MACISR_TSIS_Pos) /*!< 0x00001000 */
  6851. #define ETH_MACISR_TSIS ETH_MACISR_TSIS_Msk /* Timestamp Interrupt Status */
  6852. #define ETH_MACISR_MMCTXIS_Pos (10U)
  6853. #define ETH_MACISR_MMCTXIS_Msk (0x1U << ETH_MACISR_MMCTXIS_Pos) /*!< 0x00000400 */
  6854. #define ETH_MACISR_MMCTXIS ETH_MACISR_MMCTXIS_Msk /* MMC Transmit Interrupt Status */
  6855. #define ETH_MACISR_MMCRXIS_Pos (9U)
  6856. #define ETH_MACISR_MMCRXIS_Msk (0x1U << ETH_MACISR_MMCRXIS_Pos) /*!< 0x00000200 */
  6857. #define ETH_MACISR_MMCRXIS ETH_MACISR_MMCRXIS_Msk /* MMC Receive Interrupt Status */
  6858. #define ETH_MACISR_MMCIS_Pos (8U)
  6859. #define ETH_MACISR_MMCIS_Msk (0x1U << ETH_MACISR_MMCIS_Pos) /*!< 0x00000100 */
  6860. #define ETH_MACISR_MMCIS ETH_MACISR_MMCIS_Msk /* MMC Interrupt Status */
  6861. #define ETH_MACISR_LPIIS_Pos (5U)
  6862. #define ETH_MACISR_LPIIS_Msk (0x1U << ETH_MACISR_LPIIS_Pos) /*!< 0x00000020 */
  6863. #define ETH_MACISR_LPIIS ETH_MACISR_LPIIS_Msk /* LPI Interrupt Status */
  6864. #define ETH_MACISR_PMTIS_Pos (4U)
  6865. #define ETH_MACISR_PMTIS_Msk (0x1U << ETH_MACISR_PMTIS_Pos) /*!< 0x00000010 */
  6866. #define ETH_MACISR_PMTIS ETH_MACISR_PMTIS_Msk /* PMT Interrupt Status */
  6867. #define ETH_MACISR_PHYIS_Pos (3U)
  6868. #define ETH_MACISR_PHYIS_Msk (0x1U << ETH_MACISR_PHYIS_Pos) /*!< 0x00000008 */
  6869. #define ETH_MACISR_PHYIS ETH_MACISR_PHYIS_Msk /* PHY Interrupt */
  6870. /* Bit definition for Ethernet MAC Interrupt Enable Register */
  6871. #define ETH_MACIER_RXSTSIE_Pos (14U)
  6872. #define ETH_MACIER_RXSTSIE_Msk (0x1U << ETH_MACIER_RXSTSIE_Pos) /*!< 0x00004000 */
  6873. #define ETH_MACIER_RXSTSIE ETH_MACIER_RXSTSIE_Msk /* Receive Status Interrupt Enable */
  6874. #define ETH_MACIER_TXSTSIE_Pos (13U)
  6875. #define ETH_MACIER_TXSTSIE_Msk (0x1U << ETH_MACIER_TXSTSIE_Pos) /*!< 0x00002000 */
  6876. #define ETH_MACIER_TXSTSIE ETH_MACIER_TXSTSIE_Msk /* Transmit Status Interrupt Enable */
  6877. #define ETH_MACIER_TSIE_Pos (12U)
  6878. #define ETH_MACIER_TSIE_Msk (0x1U << ETH_MACIER_TSIE_Pos) /*!< 0x00001000 */
  6879. #define ETH_MACIER_TSIE ETH_MACIER_TSIE_Msk /* Timestamp Interrupt Enable */
  6880. #define ETH_MACIER_LPIIE_Pos (5U)
  6881. #define ETH_MACIER_LPIIE_Msk (0x1U << ETH_MACIER_LPIIE_Pos) /*!< 0x00000020 */
  6882. #define ETH_MACIER_LPIIE ETH_MACIER_LPIIE_Msk /* LPI Interrupt Enable */
  6883. #define ETH_MACIER_PMTIE_Pos (4U)
  6884. #define ETH_MACIER_PMTIE_Msk (0x1U << ETH_MACIER_PMTIE_Pos) /*!< 0x00000010 */
  6885. #define ETH_MACIER_PMTIE ETH_MACIER_PMTIE_Msk /* PMT Interrupt Enable */
  6886. #define ETH_MACIER_PHYIE_Pos (3U)
  6887. #define ETH_MACIER_PHYIE_Msk (0x1U << ETH_MACIER_PHYIE_Pos) /*!< 0x00000008 */
  6888. #define ETH_MACIER_PHYIE ETH_MACIER_PHYIE_Msk /* PHY Interrupt Enable */
  6889. /* Bit definition for Ethernet MAC Rx Tx Status Register */
  6890. #define ETH_MACRXTXSR_RWT_Pos (8U)
  6891. #define ETH_MACRXTXSR_RWT_Msk (0x1U << ETH_MACRXTXSR_RWT_Pos) /*!< 0x00000100 */
  6892. #define ETH_MACRXTXSR_RWT ETH_MACRXTXSR_RWT_Msk /* Receive Watchdog Timeout */
  6893. #define ETH_MACRXTXSR_EXCOL_Pos (5U)
  6894. #define ETH_MACRXTXSR_EXCOL_Msk (0x1U << ETH_MACRXTXSR_EXCOL_Pos) /*!< 0x00000020 */
  6895. #define ETH_MACRXTXSR_EXCOL ETH_MACRXTXSR_EXCOL_Msk /* Excessive Collisions */
  6896. #define ETH_MACRXTXSR_LCOL_Pos (4U)
  6897. #define ETH_MACRXTXSR_LCOL_Msk (0x1U << ETH_MACRXTXSR_LCOL_Pos) /*!< 0x00000010 */
  6898. #define ETH_MACRXTXSR_LCOL ETH_MACRXTXSR_LCOL_Msk /* Late Collision */
  6899. #define ETH_MACRXTXSR_EXDEF_Pos (3U)
  6900. #define ETH_MACRXTXSR_EXDEF_Msk (0x1U << ETH_MACRXTXSR_EXDEF_Pos) /*!< 0x00000008 */
  6901. #define ETH_MACRXTXSR_EXDEF ETH_MACRXTXSR_EXDEF_Msk /* Excessive Deferral */
  6902. #define ETH_MACRXTXSR_LCARR_Pos (2U)
  6903. #define ETH_MACRXTXSR_LCARR_Msk (0x1U << ETH_MACRXTXSR_LCARR_Pos) /*!< 0x00000004 */
  6904. #define ETH_MACRXTXSR_LCARR ETH_MACRXTXSR_LCARR_Msk /* Loss of Carrier */
  6905. #define ETH_MACRXTXSR_NCARR_Pos (1U)
  6906. #define ETH_MACRXTXSR_NCARR_Msk (0x1U << ETH_MACRXTXSR_NCARR_Pos) /*!< 0x00000002 */
  6907. #define ETH_MACRXTXSR_NCARR ETH_MACRXTXSR_NCARR_Msk /* No Carrier */
  6908. #define ETH_MACRXTXSR_TJT_Pos (0U)
  6909. #define ETH_MACRXTXSR_TJT_Msk (0x1U << ETH_MACRXTXSR_TJT_Pos) /*!< 0x00000001 */
  6910. #define ETH_MACRXTXSR_TJT ETH_MACRXTXSR_TJT_Msk /* Transmit Jabber Timeout */
  6911. /* Bit definition for Ethernet MAC PMT Control Status Register */
  6912. #define ETH_MACPCSR_RWKFILTRST_Pos (31U)
  6913. #define ETH_MACPCSR_RWKFILTRST_Msk (0x1U << ETH_MACPCSR_RWKFILTRST_Pos) /*!< 0x80000000 */
  6914. #define ETH_MACPCSR_RWKFILTRST ETH_MACPCSR_RWKFILTRST_Msk /* Remote Wake-Up Packet Filter Register Pointer Reset */
  6915. #define ETH_MACPCSR_RWKPTR_Pos (24U)
  6916. #define ETH_MACPCSR_RWKPTR_Msk (0x1FU << ETH_MACPCSR_RWKPTR_Pos) /*!< 0x1F000000 */
  6917. #define ETH_MACPCSR_RWKPTR ETH_MACPCSR_RWKPTR_Msk /* Remote Wake-up FIFO Pointer */
  6918. #define ETH_MACPCSR_RWKPFE_Pos (10U)
  6919. #define ETH_MACPCSR_RWKPFE_Msk (0x1U << ETH_MACPCSR_RWKPFE_Pos) /*!< 0x00000400 */
  6920. #define ETH_MACPCSR_RWKPFE ETH_MACPCSR_RWKPFE_Msk /* Remote Wake-up Packet Forwarding Enable */
  6921. #define ETH_MACPCSR_GLBLUCAST_Pos (9U)
  6922. #define ETH_MACPCSR_GLBLUCAST_Msk (0x1U << ETH_MACPCSR_GLBLUCAST_Pos) /*!< 0x00000200 */
  6923. #define ETH_MACPCSR_GLBLUCAST ETH_MACPCSR_GLBLUCAST_Msk /* Global Unicast */
  6924. #define ETH_MACPCSR_RWKPRCVD_Pos (6U)
  6925. #define ETH_MACPCSR_RWKPRCVD_Msk (0x1U << ETH_MACPCSR_RWKPRCVD_Pos) /*!< 0x00000040 */
  6926. #define ETH_MACPCSR_RWKPRCVD ETH_MACPCSR_RWKPRCVD_Msk /* Remote Wake-Up Packet Received */
  6927. #define ETH_MACPCSR_MGKPRCVD_Pos (5U)
  6928. #define ETH_MACPCSR_MGKPRCVD_Msk (0x1U << ETH_MACPCSR_MGKPRCVD_Pos) /*!< 0x00000020 */
  6929. #define ETH_MACPCSR_MGKPRCVD ETH_MACPCSR_MGKPRCVD_Msk /* Magic Packet Received */
  6930. #define ETH_MACPCSR_RWKPKTEN_Pos (2U)
  6931. #define ETH_MACPCSR_RWKPKTEN_Msk (0x1U << ETH_MACPCSR_RWKPKTEN_Pos) /*!< 0x00000004 */
  6932. #define ETH_MACPCSR_RWKPKTEN ETH_MACPCSR_RWKPKTEN_Msk /* Remote Wake-Up Packet Enable */
  6933. #define ETH_MACPCSR_MGKPKTEN_Pos (1U)
  6934. #define ETH_MACPCSR_MGKPKTEN_Msk (0x1U << ETH_MACPCSR_MGKPKTEN_Pos) /*!< 0x00000002 */
  6935. #define ETH_MACPCSR_MGKPKTEN ETH_MACPCSR_MGKPKTEN_Msk /* Magic Packet Enable */
  6936. #define ETH_MACPCSR_PWRDWN_Pos (0U)
  6937. #define ETH_MACPCSR_PWRDWN_Msk (0x1U << ETH_MACPCSR_PWRDWN_Pos) /*!< 0x00000001 */
  6938. #define ETH_MACPCSR_PWRDWN ETH_MACPCSR_PWRDWN_Msk /* Power Down */
  6939. /* Bit definition for Ethernet MAC Remote Wake-Up Packet Filter Register */
  6940. #define ETH_MACRWUPFR_D_Pos (0U)
  6941. #define ETH_MACRWUPFR_D_Msk (0xFFFFFFFFU << ETH_MACRWUPFR_D_Pos) /*!< 0xFFFFFFFF */
  6942. #define ETH_MACRWUPFR_D ETH_MACRWUPFR_D_Msk /* Wake-up Packet filter register data */
  6943. /* Bit definition for Ethernet MAC LPI Control Status Register */
  6944. #define ETH_MACLCSR_LPITCSE_Pos (21U)
  6945. #define ETH_MACLCSR_LPITCSE_Msk (0x1U << ETH_MACLCSR_LPITCSE_Pos) /*!< 0x00200000 */
  6946. #define ETH_MACLCSR_LPITCSE ETH_MACLCSR_LPITCSE_Msk /* LPI Tx Clock Stop Enable */
  6947. #define ETH_MACLCSR_LPITE_Pos (20U)
  6948. #define ETH_MACLCSR_LPITE_Msk (0x1U << ETH_MACLCSR_LPITE_Pos) /*!< 0x00100000 */
  6949. #define ETH_MACLCSR_LPITE ETH_MACLCSR_LPITE_Msk /* LPI Timer Enable */
  6950. #define ETH_MACLCSR_LPITXA_Pos (19U)
  6951. #define ETH_MACLCSR_LPITXA_Msk (0x1U << ETH_MACLCSR_LPITXA_Pos) /*!< 0x00080000 */
  6952. #define ETH_MACLCSR_LPITXA ETH_MACLCSR_LPITXA_Msk /* LPI Tx Automate */
  6953. #define ETH_MACLCSR_PLS_Pos (17U)
  6954. #define ETH_MACLCSR_PLS_Msk (0x1U << ETH_MACLCSR_PLS_Pos) /*!< 0x00020000 */
  6955. #define ETH_MACLCSR_PLS ETH_MACLCSR_PLS_Msk /* PHY Link Status */
  6956. #define ETH_MACLCSR_LPIEN_Pos (16U)
  6957. #define ETH_MACLCSR_LPIEN_Msk (0x1U << ETH_MACLCSR_LPIEN_Pos) /*!< 0x00010000 */
  6958. #define ETH_MACLCSR_LPIEN ETH_MACLCSR_LPIEN_Msk /* LPI Enable */
  6959. #define ETH_MACLCSR_RLPIST_Pos (9U)
  6960. #define ETH_MACLCSR_RLPIST_Msk (0x1U << ETH_MACLCSR_RLPIST_Pos) /*!< 0x00000200 */
  6961. #define ETH_MACLCSR_RLPIST ETH_MACLCSR_RLPIST_Msk /* Receive LPI State */
  6962. #define ETH_MACLCSR_TLPIST_Pos (8U)
  6963. #define ETH_MACLCSR_TLPIST_Msk (0x1U << ETH_MACLCSR_TLPIST_Pos) /*!< 0x00000100 */
  6964. #define ETH_MACLCSR_TLPIST ETH_MACLCSR_TLPIST_Msk /* Transmit LPI State */
  6965. #define ETH_MACLCSR_RLPIEX_Pos (3U)
  6966. #define ETH_MACLCSR_RLPIEX_Msk (0x1U << ETH_MACLCSR_RLPIEX_Pos) /*!< 0x00000008 */
  6967. #define ETH_MACLCSR_RLPIEX ETH_MACLCSR_RLPIEX_Msk /* Receive LPI Exit */
  6968. #define ETH_MACLCSR_RLPIEN_Pos (2U)
  6969. #define ETH_MACLCSR_RLPIEN_Msk (0x1U << ETH_MACLCSR_RLPIEN_Pos) /*!< 0x00000004 */
  6970. #define ETH_MACLCSR_RLPIEN ETH_MACLCSR_RLPIEN_Msk /* Receive LPI Entry */
  6971. #define ETH_MACLCSR_TLPIEX_Pos (1U)
  6972. #define ETH_MACLCSR_TLPIEX_Msk (0x1U << ETH_MACLCSR_TLPIEX_Pos) /*!< 0x00000002 */
  6973. #define ETH_MACLCSR_TLPIEX ETH_MACLCSR_TLPIEX_Msk /* Transmit LPI Exit */
  6974. #define ETH_MACLCSR_TLPIEN_Pos (0U)
  6975. #define ETH_MACLCSR_TLPIEN_Msk (0x1U << ETH_MACLCSR_TLPIEN_Pos) /*!< 0x00000001 */
  6976. #define ETH_MACLCSR_TLPIEN ETH_MACLCSR_TLPIEN_Msk /* Transmit LPI Entry */
  6977. /* Bit definition for Ethernet MAC LPI Timers Control Register */
  6978. #define ETH_MACLTCR_LST_Pos (16U)
  6979. #define ETH_MACLTCR_LST_Msk (0x3FFU << ETH_MACLTCR_LST_Pos) /*!< 0x03FF0000 */
  6980. #define ETH_MACLTCR_LST ETH_MACLTCR_LST_Msk /* LPI LS TIMER */
  6981. #define ETH_MACLTCR_TWT_Pos (0U)
  6982. #define ETH_MACLTCR_TWT_Msk (0xFFFFU << ETH_MACLTCR_TWT_Pos) /*!< 0x0000FFFF */
  6983. #define ETH_MACLTCR_TWT ETH_MACLTCR_TWT_Msk /* LPI TW TIMER */
  6984. /* Bit definition for Ethernet MAC LPI Entry Timer Register */
  6985. #define ETH_MACLETR_LPIET_Pos (0U)
  6986. #define ETH_MACLETR_LPIET_Msk (0xFFFFFU << ETH_MACLETR_LPIET_Pos) /*!< 0x000FFFFF */
  6987. #define ETH_MACLETR_LPIET ETH_MACLETR_LPIET_Msk /* LPI Entry Timer */
  6988. /* Bit definition for Ethernet MAC 1US Tic Counter Register */
  6989. #define ETH_MAC1USTCR_TIC1USCNTR_Pos (0U)
  6990. #define ETH_MAC1USTCR_TIC1USCNTR_Msk (0xFFFU << ETH_MAC1USTCR_TIC1USCNTR_Pos) /*!< 0x00000FFF */
  6991. #define ETH_MAC1USTCR_TIC1USCNTR ETH_MAC1USTCR_TIC1USCNTR_Msk /* 1US TIC Counter */
  6992. /* Bit definition for Ethernet MAC Version Register */
  6993. #define ETH_MACVR_USERVER_Pos (8U)
  6994. #define ETH_MACVR_USERVER_Msk (0xFFU << ETH_MACVR_USERVER_Pos) /*!< 0x0000FF00 */
  6995. #define ETH_MACVR_USERVER ETH_MACVR_USERVER_Msk /* User-defined Version */
  6996. #define ETH_MACVR_SNPSVER_Pos (0U)
  6997. #define ETH_MACVR_SNPSVER_Msk (0xFFU << ETH_MACVR_SNPSVER_Pos) /*!< 0x000000FF */
  6998. #define ETH_MACVR_SNPSVER ETH_MACVR_SNPSVER_Msk /* Synopsys-defined Version */
  6999. /* Bit definition for Ethernet MAC Debug Register */
  7000. #define ETH_MACDR_TFCSTS_Pos (17U)
  7001. #define ETH_MACDR_TFCSTS_Msk (0x3U << ETH_MACDR_TFCSTS_Pos) /*!< 0x00060000 */
  7002. #define ETH_MACDR_TFCSTS ETH_MACDR_TFCSTS_Msk /* MAC Transmit Packet Controller Status */
  7003. #define ETH_MACDR_TFCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7004. #define ETH_MACDR_TFCSTS_WAIT_Pos (17U)
  7005. #define ETH_MACDR_TFCSTS_WAIT_Msk (0x1U << ETH_MACDR_TFCSTS_WAIT_Pos) /*!< 0x00020000 */
  7006. #define ETH_MACDR_TFCSTS_WAIT ETH_MACDR_TFCSTS_WAIT_Msk /* Waiting for status of the previous packet, IPG or backoff period to be over */
  7007. #define ETH_MACDR_TFCSTS_GENERATEPCP_Pos (18U)
  7008. #define ETH_MACDR_TFCSTS_GENERATEPCP_Msk (0x1U << ETH_MACDR_TFCSTS_GENERATEPCP_Pos) /*!< 0x00040000 */
  7009. #define ETH_MACDR_TFCSTS_GENERATEPCP ETH_MACDR_TFCSTS_GENERATEPCP_Msk /* Generating and transmitting a Pause control packet */
  7010. #define ETH_MACDR_TFCSTS_TRASFERIP_Pos (17U)
  7011. #define ETH_MACDR_TFCSTS_TRASFERIP_Msk (0x3U << ETH_MACDR_TFCSTS_TRASFERIP_Pos) /*!< 0x00060000 */
  7012. #define ETH_MACDR_TFCSTS_TRASFERIP ETH_MACDR_TFCSTS_TRASFERIP_Msk /* Transferring input packet for transmission */
  7013. #define ETH_MACDR_TPESTS_Pos (16U)
  7014. #define ETH_MACDR_TPESTS_Msk (0x1U << ETH_MACDR_TPESTS_Pos) /*!< 0x00010000 */
  7015. #define ETH_MACDR_TPESTS ETH_MACDR_TPESTS_Msk /* MAC Receive Packet Controller FIFO Status */
  7016. #define ETH_MACDR_RFCFCSTS_Pos (1U)
  7017. #define ETH_MACDR_RFCFCSTS_Msk (0x3U << ETH_MACDR_RFCFCSTS_Pos) /*!< 0x00000006 */
  7018. #define ETH_MACDR_RFCFCSTS ETH_MACDR_RFCFCSTS_Msk /* MAC MII Transmit Protocol Engine Status */
  7019. #define ETH_MACDR_RPESTS_Pos (0U)
  7020. #define ETH_MACDR_RPESTS_Msk (0x1U << ETH_MACDR_RPESTS_Pos) /*!< 0x00000001 */
  7021. #define ETH_MACDR_RPESTS ETH_MACDR_RPESTS_Msk /* MAC MII Receive Protocol Engine Status */
  7022. /* Bit definition for Ethernet MAC HW Feature0 Register */
  7023. #define ETH_MACHWF0R_ACTPHYSEL_Pos (28U)
  7024. #define ETH_MACHWF0R_ACTPHYSEL_Msk (0x7U << ETH_MACHWF0R_ACTPHYSEL_Pos) /*!< 0x70000000 */
  7025. #define ETH_MACHWF0R_ACTPHYSEL ETH_MACHWF0R_ACTPHYSEL_Msk /* Active PHY Selected */
  7026. #define ETH_MACHWF0R_ACTPHYSEL_MII ((uint32_t)0x00000000) /* MII */
  7027. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Pos (30U)
  7028. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Msk (0x1U << ETH_MACHWF0R_ACTPHYSEL_RMII_Pos) /*!< 0x40000000 */
  7029. #define ETH_MACHWF0R_ACTPHYSEL_RMII ETH_MACHWF0R_ACTPHYSEL_RMII_Msk /* RMII */
  7030. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos (28U)
  7031. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk (0x7U << ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos) /*!< 0x70000000 */
  7032. #define ETH_MACHWF0R_ACTPHYSEL_REVMII ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk /* RevMII */
  7033. #define ETH_MACHWF0R_SAVLANINS_Pos (27U)
  7034. #define ETH_MACHWF0R_SAVLANINS_Msk (0x1U << ETH_MACHWF0R_SAVLANINS_Pos) /*!< 0x08000000 */
  7035. #define ETH_MACHWF0R_SAVLANINS ETH_MACHWF0R_SAVLANINS_Msk /* Source Address or VLAN Insertion Enable */
  7036. #define ETH_MACHWF0R_TSSTSSEL_Pos (25U)
  7037. #define ETH_MACHWF0R_TSSTSSEL_Msk (0x3U << ETH_MACHWF0R_TSSTSSEL_Pos) /*!< 0x06000000 */
  7038. #define ETH_MACHWF0R_TSSTSSEL ETH_MACHWF0R_TSSTSSEL_Msk /* Timestamp System Time Source */
  7039. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos (25U)
  7040. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk (0x1U << ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos) /*!< 0x02000000 */
  7041. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk /* Timestamp System Time Source: Internal */
  7042. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos (26U)
  7043. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk (0x1U << ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos) /*!< 0x04000000 */
  7044. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk /* Timestamp System Time Source: External */
  7045. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Pos (25U)
  7046. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Msk (0x3U << ETH_MACHWF0R_TSSTSSEL_BOTH_Pos) /*!< 0x06000000 */
  7047. #define ETH_MACHWF0R_TSSTSSEL_BOTH ETH_MACHWF0R_TSSTSSEL_BOTH_Msk /* Timestamp System Time Source: Internal & External */
  7048. #define ETH_MACHWF0R_MACADR64SEL_Pos (24U)
  7049. #define ETH_MACHWF0R_MACADR64SEL_Msk (0x1U << ETH_MACHWF0R_MACADR64SEL_Pos) /*!< 0x01000000 */
  7050. #define ETH_MACHWF0R_MACADR64SEL ETH_MACHWF0R_MACADR64SEL_Msk /* MAC Addresses 64–127 Selected */
  7051. #define ETH_MACHWF0R_MACADR32SEL_Pos (23U)
  7052. #define ETH_MACHWF0R_MACADR32SEL_Msk (0x1U << ETH_MACHWF0R_MACADR32SEL_Pos) /*!< 0x00800000 */
  7053. #define ETH_MACHWF0R_MACADR32SEL ETH_MACHWF0R_MACADR32SEL_Msk /* MAC Addresses 32–63 Selected */
  7054. #define ETH_MACHWF0R_ADDMACADRSEL_Pos (18U)
  7055. #define ETH_MACHWF0R_ADDMACADRSEL_Msk (0x1FU << ETH_MACHWF0R_ADDMACADRSEL_Pos) /*!< 0x007C0000 */
  7056. #define ETH_MACHWF0R_ADDMACADRSEL ETH_MACHWF0R_ADDMACADRSEL_Msk /* MAC Addresses 1– 31 Selected */
  7057. #define ETH_MACHWF0R_RXCOESEL_Pos (16U)
  7058. #define ETH_MACHWF0R_RXCOESEL_Msk (0x1U << ETH_MACHWF0R_RXCOESEL_Pos) /*!< 0x00010000 */
  7059. #define ETH_MACHWF0R_RXCOESEL ETH_MACHWF0R_RXCOESEL_Msk /* Receive Checksum Offload Enabled */
  7060. #define ETH_MACHWF0R_TXCOESEL_Pos (14U)
  7061. #define ETH_MACHWF0R_TXCOESEL_Msk (0x1U << ETH_MACHWF0R_TXCOESEL_Pos) /*!< 0x00004000 */
  7062. #define ETH_MACHWF0R_TXCOESEL ETH_MACHWF0R_TXCOESEL_Msk /* Transmit Checksum Offload Enabled */
  7063. #define ETH_MACHWF0R_EEESEL_Pos (13U)
  7064. #define ETH_MACHWF0R_EEESEL_Msk (0x1U << ETH_MACHWF0R_EEESEL_Pos) /*!< 0x00002000 */
  7065. #define ETH_MACHWF0R_EEESEL ETH_MACHWF0R_EEESEL_Msk /* Energy Efficient Ethernet Enabled */
  7066. #define ETH_MACHWF0R_TSSEL_Pos (12U)
  7067. #define ETH_MACHWF0R_TSSEL_Msk (0x1U << ETH_MACHWF0R_TSSEL_Pos) /*!< 0x00001000 */
  7068. #define ETH_MACHWF0R_TSSEL ETH_MACHWF0R_TSSEL_Msk /* IEEE 1588-2008 Timestamp Enabled */
  7069. #define ETH_MACHWF0R_ARPOFFSEL_Pos (9U)
  7070. #define ETH_MACHWF0R_ARPOFFSEL_Msk (0x1U << ETH_MACHWF0R_ARPOFFSEL_Pos) /*!< 0x00000200 */
  7071. #define ETH_MACHWF0R_ARPOFFSEL ETH_MACHWF0R_ARPOFFSEL_Msk /* ARP Offload Enabled */
  7072. #define ETH_MACHWF0R_MMCSEL_Pos (8U)
  7073. #define ETH_MACHWF0R_MMCSEL_Msk (0x1U << ETH_MACHWF0R_MMCSEL_Pos) /*!< 0x00000100 */
  7074. #define ETH_MACHWF0R_MMCSEL ETH_MACHWF0R_MMCSEL_Msk /* RMON Module Enable */
  7075. #define ETH_MACHWF0R_MGKSEL_Pos (7U)
  7076. #define ETH_MACHWF0R_MGKSEL_Msk (0x1U << ETH_MACHWF0R_MGKSEL_Pos) /*!< 0x00000080 */
  7077. #define ETH_MACHWF0R_MGKSEL ETH_MACHWF0R_MGKSEL_Msk /* PMT Magic Packet Enable */
  7078. #define ETH_MACHWF0R_RWKSEL_Pos (6U)
  7079. #define ETH_MACHWF0R_RWKSEL_Msk (0x1U << ETH_MACHWF0R_RWKSEL_Pos) /*!< 0x00000040 */
  7080. #define ETH_MACHWF0R_RWKSEL ETH_MACHWF0R_RWKSEL_Msk /* PMT Remote Wake-up Packet Enable */
  7081. #define ETH_MACHWF0R_SMASEL_Pos (5U)
  7082. #define ETH_MACHWF0R_SMASEL_Msk (0x1U << ETH_MACHWF0R_SMASEL_Pos) /*!< 0x00000020 */
  7083. #define ETH_MACHWF0R_SMASEL ETH_MACHWF0R_SMASEL_Msk /* SMA (MDIO) Interface */
  7084. #define ETH_MACHWF0R_VLHASH_Pos (4U)
  7085. #define ETH_MACHWF0R_VLHASH_Msk (0x1U << ETH_MACHWF0R_VLHASH_Pos) /*!< 0x00000010 */
  7086. #define ETH_MACHWF0R_VLHASH ETH_MACHWF0R_VLHASH_Msk /* VLAN Hash Filter Selected */
  7087. #define ETH_MACHWF0R_PCSSEL_Pos (3U)
  7088. #define ETH_MACHWF0R_PCSSEL_Msk (0x1U << ETH_MACHWF0R_PCSSEL_Pos) /*!< 0x00000008 */
  7089. #define ETH_MACHWF0R_PCSSEL ETH_MACHWF0R_PCSSEL_Msk /* PCS Registers (TBI, SGMII, or RTBI PHY interface) */
  7090. #define ETH_MACHWF0R_HDSEL_Pos (2U)
  7091. #define ETH_MACHWF0R_HDSEL_Msk (0x1U << ETH_MACHWF0R_HDSEL_Pos) /*!< 0x00000004 */
  7092. #define ETH_MACHWF0R_HDSEL ETH_MACHWF0R_HDSEL_Msk /* Half-duplex Support */
  7093. #define ETH_MACHWF0R_GMIISEL_Pos (1U)
  7094. #define ETH_MACHWF0R_GMIISEL_Msk (0x1U << ETH_MACHWF0R_GMIISEL_Pos) /*!< 0x00000002 */
  7095. #define ETH_MACHWF0R_GMIISEL ETH_MACHWF0R_GMIISEL_Msk /* 1000 Mbps Support */
  7096. #define ETH_MACHWF0R_MIISEL_Pos (0U)
  7097. #define ETH_MACHWF0R_MIISEL_Msk (0x1U << ETH_MACHWF0R_MIISEL_Pos) /*!< 0x00000001 */
  7098. #define ETH_MACHWF0R_MIISEL ETH_MACHWF0R_MIISEL_Msk /* 10 or 100 Mbps Support */
  7099. /* Bit definition for Ethernet MAC HW Feature1 Register */
  7100. #define ETH_MACHWF1R_L3L4FNUM_Pos (27U)
  7101. #define ETH_MACHWF1R_L3L4FNUM_Msk (0xFU << ETH_MACHWF1R_L3L4FNUM_Pos) /*!< 0x78000000 */
  7102. #define ETH_MACHWF1R_L3L4FNUM ETH_MACHWF1R_L3L4FNUM_Msk /* Total number of L3 or L4 Filters */
  7103. #define ETH_MACHWF1R_HASHTBLSZ_Pos (24U)
  7104. #define ETH_MACHWF1R_HASHTBLSZ_Msk (0x3U << ETH_MACHWF1R_HASHTBLSZ_Pos) /*!< 0x03000000 */
  7105. #define ETH_MACHWF1R_HASHTBLSZ ETH_MACHWF1R_HASHTBLSZ_Msk /* Hash Table Size */
  7106. #define ETH_MACHWF1R_AVSEL_Pos (20U)
  7107. #define ETH_MACHWF1R_AVSEL_Msk (0x1U << ETH_MACHWF1R_AVSEL_Pos) /*!< 0x00100000 */
  7108. #define ETH_MACHWF1R_AVSEL ETH_MACHWF1R_AVSEL_Msk /* AV Feature Enabled */
  7109. #define ETH_MACHWF1R_DBGMEMA_Pos (19U)
  7110. #define ETH_MACHWF1R_DBGMEMA_Msk (0x1U << ETH_MACHWF1R_DBGMEMA_Pos) /*!< 0x00080000 */
  7111. #define ETH_MACHWF1R_DBGMEMA ETH_MACHWF1R_DBGMEMA_Msk /* Debug Memory Interface Enabled */
  7112. #define ETH_MACHWF1R_TSOEN_Pos (18U)
  7113. #define ETH_MACHWF1R_TSOEN_Msk (0x1U << ETH_MACHWF1R_TSOEN_Pos) /*!< 0x00040000 */
  7114. #define ETH_MACHWF1R_TSOEN ETH_MACHWF1R_TSOEN_Msk /* TCP Segmentation Offload Enable */
  7115. #define ETH_MACHWF1R_SPHEN_Pos (17U)
  7116. #define ETH_MACHWF1R_SPHEN_Msk (0x1U << ETH_MACHWF1R_SPHEN_Pos) /*!< 0x00020000 */
  7117. #define ETH_MACHWF1R_SPHEN ETH_MACHWF1R_SPHEN_Msk /* Split Header Feature Enable */
  7118. #define ETH_MACHWF1R_DCBEN_Pos (16U)
  7119. #define ETH_MACHWF1R_DCBEN_Msk (0x1U << ETH_MACHWF1R_DCBEN_Pos) /*!< 0x00010000 */
  7120. #define ETH_MACHWF1R_DCBEN ETH_MACHWF1R_DCBEN_Msk /* DCB Feature Enable */
  7121. #define ETH_MACHWF1R_ADDR64_Pos (14U)
  7122. #define ETH_MACHWF1R_ADDR64_Msk (0x3U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x0000C000 */
  7123. #define ETH_MACHWF1R_ADDR64 ETH_MACHWF1R_ADDR64_Msk /* Address Width */
  7124. #define ETH_MACHWF1R_ADDR64_32 (0x0U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00000000 */
  7125. #define ETH_MACHWF1R_ADDR64_40 (0x1U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00004000 */
  7126. #define ETH_MACHWF1R_ADDR64_48 (0x2U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00008000 */
  7127. #define ETH_MACHWF1R_ADVTHWORD_Pos (13U)
  7128. #define ETH_MACHWF1R_ADVTHWORD_Msk (0x1U << ETH_MACHWF1R_ADVTHWORD_Pos) /*!< 0x00002000 */
  7129. #define ETH_MACHWF1R_ADVTHWORD ETH_MACHWF1R_ADVTHWORD_Msk /* IEEE 1588 High Word Register Enable */
  7130. #define ETH_MACHWF1R_PTOEN_Pos (12U)
  7131. #define ETH_MACHWF1R_PTOEN_Msk (0x1U << ETH_MACHWF1R_PTOEN_Pos) /*!< 0x00001000 */
  7132. #define ETH_MACHWF1R_PTOEN ETH_MACHWF1R_PTOEN_Msk /* PTP Offload Enable */
  7133. #define ETH_MACHWF1R_OSTEN_Pos (11U)
  7134. #define ETH_MACHWF1R_OSTEN_Msk (0x1U << ETH_MACHWF1R_OSTEN_Pos) /*!< 0x00000800 */
  7135. #define ETH_MACHWF1R_OSTEN ETH_MACHWF1R_OSTEN_Msk /* One-Step Timestamping Enable */
  7136. #define ETH_MACHWF1R_TXFIFOSIZE_Pos (6U)
  7137. #define ETH_MACHWF1R_TXFIFOSIZE_Msk (0x1FU << ETH_MACHWF1R_TXFIFOSIZE_Pos) /*!< 0x000007C0 */
  7138. #define ETH_MACHWF1R_TXFIFOSIZE ETH_MACHWF1R_TXFIFOSIZE_Msk /* MTL Transmit FIFO Size */
  7139. #define ETH_MACHWF1R_RXFIFOSIZE_Pos (0U)
  7140. #define ETH_MACHWF1R_RXFIFOSIZE_Msk (0x1FU << ETH_MACHWF1R_RXFIFOSIZE_Pos) /*!< 0x0000001F */
  7141. #define ETH_MACHWF1R_RXFIFOSIZE ETH_MACHWF1R_RXFIFOSIZE_Msk /* MTL Receive FIFO Size */
  7142. /* Bit definition for Ethernet MAC HW Feature2 Register */
  7143. #define ETH_MACHWF2R_AUXSNAPNUM_Pos (28U)
  7144. #define ETH_MACHWF2R_AUXSNAPNUM_Msk (0x7U << ETH_MACHWF2R_AUXSNAPNUM_Pos) /*!< 0x70000000 */
  7145. #define ETH_MACHWF2R_AUXSNAPNUM ETH_MACHWF2R_AUXSNAPNUM_Msk /* Number of Auxiliary Snapshot Inputs */
  7146. #define ETH_MACHWF2R_PPSOUTNUM_Pos (24U)
  7147. #define ETH_MACHWF2R_PPSOUTNUM_Msk (0x7U << ETH_MACHWF2R_PPSOUTNUM_Pos) /*!< 0x07000000 */
  7148. #define ETH_MACHWF2R_PPSOUTNUM ETH_MACHWF2R_PPSOUTNUM_Msk /* Number of PPS Outputs */
  7149. #define ETH_MACHWF2R_TXCHCNT_Pos (18U)
  7150. #define ETH_MACHWF2R_TXCHCNT_Msk (0xFU << ETH_MACHWF2R_TXCHCNT_Pos) /*!< 0x003C0000 */
  7151. #define ETH_MACHWF2R_TXCHCNT ETH_MACHWF2R_TXCHCNT_Msk /* Number of DMA Transmit Channels */
  7152. #define ETH_MACHWF2R_RXCHCNT_Pos (13U)
  7153. #define ETH_MACHWF2R_RXCHCNT_Msk (0x7U << ETH_MACHWF2R_RXCHCNT_Pos) /*!< 0x0000E000 */
  7154. #define ETH_MACHWF2R_RXCHCNT ETH_MACHWF2R_RXCHCNT_Msk /* Number of DMA Receive Channels */
  7155. #define ETH_MACHWF2R_TXQCNT_Pos (6U)
  7156. #define ETH_MACHWF2R_TXQCNT_Msk (0xFU << ETH_MACHWF2R_TXQCNT_Pos) /*!< 0x000003C0 */
  7157. #define ETH_MACHWF2R_TXQCNT ETH_MACHWF2R_TXQCNT_Msk /* Number of MTL Transmit Queues */
  7158. #define ETH_MACHWF2R_RXQCNT_Pos (0U)
  7159. #define ETH_MACHWF2R_RXQCNT_Msk (0xFU << ETH_MACHWF2R_RXQCNT_Pos) /*!< 0x0000000F */
  7160. #define ETH_MACHWF2R_RXQCNT ETH_MACHWF2R_RXQCNT_Msk /* Number of MTL Receive Queues */
  7161. /* Bit definition for Ethernet MAC MDIO Address Register */
  7162. #define ETH_MACMDIOAR_PSE_Pos (27U)
  7163. #define ETH_MACMDIOAR_PSE_Msk (0x1U << ETH_MACMDIOAR_PSE_Pos) /*!< 0x08000000 */
  7164. #define ETH_MACMDIOAR_PSE ETH_MACMDIOAR_PSE_Msk /* Preamble Suppression Enable */
  7165. #define ETH_MACMDIOAR_BTB_Pos (26U)
  7166. #define ETH_MACMDIOAR_BTB_Msk (0x1U << ETH_MACMDIOAR_BTB_Pos) /*!< 0x04000000 */
  7167. #define ETH_MACMDIOAR_BTB ETH_MACMDIOAR_BTB_Msk /* Back to Back transactions */
  7168. #define ETH_MACMDIOAR_PA_Pos (21U)
  7169. #define ETH_MACMDIOAR_PA_Msk (0x1FU << ETH_MACMDIOAR_PA_Pos) /*!< 0x03E00000 */
  7170. #define ETH_MACMDIOAR_PA ETH_MACMDIOAR_PA_Msk /* Physical Layer Address */
  7171. #define ETH_MACMDIOAR_RDA_Pos (16U)
  7172. #define ETH_MACMDIOAR_RDA_Msk (0x1FU << ETH_MACMDIOAR_RDA_Pos) /*!< 0x001F0000 */
  7173. #define ETH_MACMDIOAR_RDA ETH_MACMDIOAR_RDA_Msk /* Register/Device Address */
  7174. #define ETH_MACMDIOAR_NTC_Pos (12U)
  7175. #define ETH_MACMDIOAR_NTC_Msk (0x7U << ETH_MACMDIOAR_NTC_Pos) /*!< 0x00007000 */
  7176. #define ETH_MACMDIOAR_NTC ETH_MACMDIOAR_NTC_Msk /* Number of Trailing Clocks */
  7177. #define ETH_MACMDIOAR_CR_Pos (8U)
  7178. #define ETH_MACMDIOAR_CR_Msk (0xFU << ETH_MACMDIOAR_CR_Pos) /*!< 0x00000F00 */
  7179. #define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_Msk /* CSR Clock Range */
  7180. #define ETH_MACMDIOAR_CR_DIV42 ((uint32_t)0x00000000) /* CSR clock/42 */
  7181. #define ETH_MACMDIOAR_CR_DIV62_Pos (8U)
  7182. #define ETH_MACMDIOAR_CR_DIV62_Msk (0x1U << ETH_MACMDIOAR_CR_DIV62_Pos) /*!< 0x00000100 */
  7183. #define ETH_MACMDIOAR_CR_DIV62 ETH_MACMDIOAR_CR_DIV62_Msk /* CSR clock/62 */
  7184. #define ETH_MACMDIOAR_CR_DIV16_Pos (9U)
  7185. #define ETH_MACMDIOAR_CR_DIV16_Msk (0x1U << ETH_MACMDIOAR_CR_DIV16_Pos) /*!< 0x00000200 */
  7186. #define ETH_MACMDIOAR_CR_DIV16 ETH_MACMDIOAR_CR_DIV16_Msk /* CSR clock/16 */
  7187. #define ETH_MACMDIOAR_CR_DIV26_Pos (8U)
  7188. #define ETH_MACMDIOAR_CR_DIV26_Msk (0x3U << ETH_MACMDIOAR_CR_DIV26_Pos) /*!< 0x00000300 */
  7189. #define ETH_MACMDIOAR_CR_DIV26 ETH_MACMDIOAR_CR_DIV26_Msk /* CSR clock/26 */
  7190. #define ETH_MACMDIOAR_CR_DIV102_Pos (10U)
  7191. #define ETH_MACMDIOAR_CR_DIV102_Msk (0x1U << ETH_MACMDIOAR_CR_DIV102_Pos) /*!< 0x00000400 */
  7192. #define ETH_MACMDIOAR_CR_DIV102 ETH_MACMDIOAR_CR_DIV102_Msk /* CSR clock/102 */
  7193. #define ETH_MACMDIOAR_CR_DIV124_Pos (8U)
  7194. #define ETH_MACMDIOAR_CR_DIV124_Msk (0x5U << ETH_MACMDIOAR_CR_DIV124_Pos) /*!< 0x00000500 */
  7195. #define ETH_MACMDIOAR_CR_DIV124 ETH_MACMDIOAR_CR_DIV124_Msk /* CSR clock/124 */
  7196. #define ETH_MACMDIOAR_CR_DIV4AR_Pos (11U)
  7197. #define ETH_MACMDIOAR_CR_DIV4AR_Msk (0x1U << ETH_MACMDIOAR_CR_DIV4AR_Pos) /*!< 0x00000800 */
  7198. #define ETH_MACMDIOAR_CR_DIV4AR ETH_MACMDIOAR_CR_DIV4AR_Msk /* CSR clock/4: MDC clock above range specified in IEEE */
  7199. #define ETH_MACMDIOAR_CR_DIV6AR_Pos (8U)
  7200. #define ETH_MACMDIOAR_CR_DIV6AR_Msk (0x9U << ETH_MACMDIOAR_CR_DIV6AR_Pos) /*!< 0x00000900 */
  7201. #define ETH_MACMDIOAR_CR_DIV6AR ETH_MACMDIOAR_CR_DIV6AR_Msk /* CSR clock/6: MDC clock above range specified in IEEE */
  7202. #define ETH_MACMDIOAR_CR_DIV8AR_Pos (9U)
  7203. #define ETH_MACMDIOAR_CR_DIV8AR_Msk (0x5U << ETH_MACMDIOAR_CR_DIV8AR_Pos) /*!< 0x00000A00 */
  7204. #define ETH_MACMDIOAR_CR_DIV8AR ETH_MACMDIOAR_CR_DIV8AR_Msk /* CSR clock/8: MDC clock above range specified in IEEE */
  7205. #define ETH_MACMDIOAR_CR_DIV10AR_Pos (8U)
  7206. #define ETH_MACMDIOAR_CR_DIV10AR_Msk (0xBU << ETH_MACMDIOAR_CR_DIV10AR_Pos) /*!< 0x00000B00 */
  7207. #define ETH_MACMDIOAR_CR_DIV10AR ETH_MACMDIOAR_CR_DIV10AR_Msk /* CSR clock/10: MDC clock above range specified in IEEE */
  7208. #define ETH_MACMDIOAR_CR_DIV12AR_Pos (10U)
  7209. #define ETH_MACMDIOAR_CR_DIV12AR_Msk (0x3U << ETH_MACMDIOAR_CR_DIV12AR_Pos) /*!< 0x00000C00 */
  7210. #define ETH_MACMDIOAR_CR_DIV12AR ETH_MACMDIOAR_CR_DIV12AR_Msk /* CSR clock/12: MDC clock above range specified in IEEE */
  7211. #define ETH_MACMDIOAR_CR_DIV14AR_Pos (8U)
  7212. #define ETH_MACMDIOAR_CR_DIV14AR_Msk (0xDU << ETH_MACMDIOAR_CR_DIV14AR_Pos) /*!< 0x00000D00 */
  7213. #define ETH_MACMDIOAR_CR_DIV14AR ETH_MACMDIOAR_CR_DIV14AR_Msk /* CSR clock/14: MDC clock above range specified in IEEE */
  7214. #define ETH_MACMDIOAR_CR_DIV16AR_Pos (9U)
  7215. #define ETH_MACMDIOAR_CR_DIV16AR_Msk (0x7U << ETH_MACMDIOAR_CR_DIV16AR_Pos) /*!< 0x00000E00 */
  7216. #define ETH_MACMDIOAR_CR_DIV16AR ETH_MACMDIOAR_CR_DIV16AR_Msk /* CSR clock/16: MDC clock above range specified in IEEE */
  7217. #define ETH_MACMDIOAR_CR_DIV18AR_Pos (8U)
  7218. #define ETH_MACMDIOAR_CR_DIV18AR_Msk (0xFU << ETH_MACMDIOAR_CR_DIV18AR_Pos) /*!< 0x00000F00 */
  7219. #define ETH_MACMDIOAR_CR_DIV18AR ETH_MACMDIOAR_CR_DIV18AR_Msk /* CSR clock/18: MDC clock above range specified in IEEE */
  7220. #define ETH_MACMDIOAR_SKAP_Pos (4U)
  7221. #define ETH_MACMDIOAR_SKAP_Msk (0x1U << ETH_MACMDIOAR_SKAP_Pos) /*!< 0x00000010 */
  7222. #define ETH_MACMDIOAR_SKAP ETH_MACMDIOAR_SKAP_Msk /* Skip Address Packet */
  7223. #define ETH_MACMDIOAR_MOC_Pos (2U)
  7224. #define ETH_MACMDIOAR_MOC_Msk (0x3U << ETH_MACMDIOAR_MOC_Pos) /*!< 0x0000000C */
  7225. #define ETH_MACMDIOAR_MOC ETH_MACMDIOAR_MOC_Msk /* MII Operation Command */
  7226. #define ETH_MACMDIOAR_MOC_WR_Pos (2U)
  7227. #define ETH_MACMDIOAR_MOC_WR_Msk (0x1U << ETH_MACMDIOAR_MOC_WR_Pos) /*!< 0x00000004 */
  7228. #define ETH_MACMDIOAR_MOC_WR ETH_MACMDIOAR_MOC_WR_Msk /* Write */
  7229. #define ETH_MACMDIOAR_MOC_PRDIA_Pos (3U)
  7230. #define ETH_MACMDIOAR_MOC_PRDIA_Msk (0x1U << ETH_MACMDIOAR_MOC_PRDIA_Pos) /*!< 0x00000008 */
  7231. #define ETH_MACMDIOAR_MOC_PRDIA ETH_MACMDIOAR_MOC_PRDIA_Msk /* Post Read Increment Address for Clause 45 PHY */
  7232. #define ETH_MACMDIOAR_MOC_RD_Pos (2U)
  7233. #define ETH_MACMDIOAR_MOC_RD_Msk (0x3U << ETH_MACMDIOAR_MOC_RD_Pos) /*!< 0x0000000C */
  7234. #define ETH_MACMDIOAR_MOC_RD ETH_MACMDIOAR_MOC_RD_Msk /* Read */
  7235. #define ETH_MACMDIOAR_C45E_Pos (1U)
  7236. #define ETH_MACMDIOAR_C45E_Msk (0x1U << ETH_MACMDIOAR_C45E_Pos) /*!< 0x00000002 */
  7237. #define ETH_MACMDIOAR_C45E ETH_MACMDIOAR_C45E_Msk /* Clause 45 PHY Enable */
  7238. #define ETH_MACMDIOAR_MB_Pos (0U)
  7239. #define ETH_MACMDIOAR_MB_Msk (0x1U << ETH_MACMDIOAR_MB_Pos) /*!< 0x00000001 */
  7240. #define ETH_MACMDIOAR_MB ETH_MACMDIOAR_MB_Msk /* MII Busy */
  7241. /* Bit definition for Ethernet MAC MDIO Data Register */
  7242. #define ETH_MACMDIODR_RA_Pos (16U)
  7243. #define ETH_MACMDIODR_RA_Msk (0xFFFFU << ETH_MACMDIODR_RA_Pos) /*!< 0xFFFF0000 */
  7244. #define ETH_MACMDIODR_RA ETH_MACMDIODR_RA_Msk /* Register Address */
  7245. #define ETH_MACMDIODR_MD_Pos (0U)
  7246. #define ETH_MACMDIODR_MD_Msk (0xFFFFU << ETH_MACMDIODR_MD_Pos) /*!< 0x0000FFFF */
  7247. #define ETH_MACMDIODR_MD ETH_MACMDIODR_MD_Msk /* MII Data */
  7248. /* Bit definition for Ethernet MAC Address High Register */
  7249. #define ETH_MACAHR_AE_Pos (31U)
  7250. #define ETH_MACAHR_AE_Msk (0x1U << ETH_MACAHR_AE_Pos) /*!< 0x80000000 */
  7251. #define ETH_MACAHR_AE ETH_MACAHR_AE_Msk /* Address enable */
  7252. #define ETH_MACAHR_SA_Pos (30U)
  7253. #define ETH_MACAHR_SA_Msk (0x1U << ETH_MACAHR_SA_Pos) /*!< 0x40000000 */
  7254. #define ETH_MACAHR_SA ETH_MACAHR_SA_Msk /* Source address */
  7255. #define ETH_MACAHR_MBC_Pos (24U)
  7256. #define ETH_MACAHR_MBC_Msk (0x3FU << ETH_MACAHR_MBC_Pos) /*!< 0x3F000000 */
  7257. #define ETH_MACAHR_MBC ETH_MACAHR_MBC_Msk /* Mask byte control: bits to mask for comparison of the MAC Address bytes */
  7258. #define ETH_MACAHR_MBC_HBITS15_8 ((uint32_t)0x20000000) /* Mask MAC Address high reg bits [15:8] */
  7259. #define ETH_MACAHR_MBC_HBITS7_0 ((uint32_t)0x10000000) /* Mask MAC Address high reg bits [7:0] */
  7260. #define ETH_MACAHR_MBC_LBITS31_24 ((uint32_t)0x08000000) /* Mask MAC Address low reg bits [31:24] */
  7261. #define ETH_MACAHR_MBC_LBITS23_16 ((uint32_t)0x04000000) /* Mask MAC Address low reg bits [23:16] */
  7262. #define ETH_MACAHR_MBC_LBITS15_8 ((uint32_t)0x02000000) /* Mask MAC Address low reg bits [15:8] */
  7263. #define ETH_MACAHR_MBC_LBITS7_0 ((uint32_t)0x01000000) /* Mask MAC Address low reg bits [7:0] */
  7264. #define ETH_MACAHR_MACAH_Pos (0U)
  7265. #define ETH_MACAHR_MACAH_Msk (0xFFFFU << ETH_MACAHR_MACAH_Pos) /*!< 0x0000FFFF */
  7266. #define ETH_MACAHR_MACAH ETH_MACAHR_MACAH_Msk /* MAC address high */
  7267. /* Bit definition for Ethernet MAC Address Low Register */
  7268. #define ETH_MACALR_MACAL_Pos (0U)
  7269. #define ETH_MACALR_MACAL_Msk (0xFFFFFFFFU << ETH_MACALR_MACAL_Pos) /*!< 0xFFFFFFFF */
  7270. #define ETH_MACALR_MACAL ETH_MACALR_MACAL_Msk /* MAC address low */
  7271. /* Bit definition for Ethernet MAC L3 L4 Control Register */
  7272. #define ETH_MACL3L4CR_L4DPIM_Pos (21U)
  7273. #define ETH_MACL3L4CR_L4DPIM_Msk (0x1U << ETH_MACL3L4CR_L4DPIM_Pos) /*!< 0x00200000 */
  7274. #define ETH_MACL3L4CR_L4DPIM ETH_MACL3L4CR_L4DPIM_Msk /* Layer 4 Destination Port Inverse Match Enable */
  7275. #define ETH_MACL3L4CR_L4DPM_Pos (20U)
  7276. #define ETH_MACL3L4CR_L4DPM_Msk (0x1U << ETH_MACL3L4CR_L4DPM_Pos) /*!< 0x00100000 */
  7277. #define ETH_MACL3L4CR_L4DPM ETH_MACL3L4CR_L4DPM_Msk /* Layer 4 Destination Port Match Enable */
  7278. #define ETH_MACL3L4CR_L4SPIM_Pos (19U)
  7279. #define ETH_MACL3L4CR_L4SPIM_Msk (0x1U << ETH_MACL3L4CR_L4SPIM_Pos) /*!< 0x00080000 */
  7280. #define ETH_MACL3L4CR_L4SPIM ETH_MACL3L4CR_L4SPIM_Msk /* Layer 4 Source Port Inverse Match Enable */
  7281. #define ETH_MACL3L4CR_L4SPM_Pos (18U)
  7282. #define ETH_MACL3L4CR_L4SPM_Msk (0x1U << ETH_MACL3L4CR_L4SPM_Pos) /*!< 0x00040000 */
  7283. #define ETH_MACL3L4CR_L4SPM ETH_MACL3L4CR_L4SPM_Msk /* Layer 4 Source Port Match Enable */
  7284. #define ETH_MACL3L4CR_L4PEN_Pos (16U)
  7285. #define ETH_MACL3L4CR_L4PEN_Msk (0x1U << ETH_MACL3L4CR_L4PEN_Pos) /*!< 0x00010000 */
  7286. #define ETH_MACL3L4CR_L4PEN ETH_MACL3L4CR_L4PEN_Msk /* Layer 4 Protocol Enable */
  7287. #define ETH_MACL3L4CR_L3HDBM_Pos (11U)
  7288. #define ETH_MACL3L4CR_L3HDBM_Msk (0x1FU << ETH_MACL3L4CR_L3HDBM_Pos) /*!< 0x0000F800 */
  7289. #define ETH_MACL3L4CR_L3HDBM ETH_MACL3L4CR_L3HDBM_Msk /* Layer 3 IP DA Higher Bits Match */
  7290. #define ETH_MACL3L4CR_L3HSBM_Pos (6U)
  7291. #define ETH_MACL3L4CR_L3HSBM_Msk (0x1FU << ETH_MACL3L4CR_L3HSBM_Pos) /*!< 0x000007C0 */
  7292. #define ETH_MACL3L4CR_L3HSBM ETH_MACL3L4CR_L3HSBM_Msk /* Layer 3 IP SA Higher Bits Match */
  7293. #define ETH_MACL3L4CR_L3DAIM_Pos (5U)
  7294. #define ETH_MACL3L4CR_L3DAIM_Msk (0x1U << ETH_MACL3L4CR_L3DAIM_Pos) /*!< 0x00000020 */
  7295. #define ETH_MACL3L4CR_L3DAIM ETH_MACL3L4CR_L3DAIM_Msk /* Layer 3 IP DA Inverse Match Enable */
  7296. #define ETH_MACL3L4CR_L3DAM_Pos (4U)
  7297. #define ETH_MACL3L4CR_L3DAM_Msk (0x1U << ETH_MACL3L4CR_L3DAM_Pos) /*!< 0x00000010 */
  7298. #define ETH_MACL3L4CR_L3DAM ETH_MACL3L4CR_L3DAM_Msk /* Layer 3 IP DA Match Enable */
  7299. #define ETH_MACL3L4CR_L3SAIM_Pos (3U)
  7300. #define ETH_MACL3L4CR_L3SAIM_Msk (0x1U << ETH_MACL3L4CR_L3SAIM_Pos) /*!< 0x00000008 */
  7301. #define ETH_MACL3L4CR_L3SAIM ETH_MACL3L4CR_L3SAIM_Msk /* Layer 3 IP SA Inverse Match Enable */
  7302. #define ETH_MACL3L4CR_L3SAM_Pos (2U)
  7303. #define ETH_MACL3L4CR_L3SAM_Msk (0x1U << ETH_MACL3L4CR_L3SAM_Pos) /*!< 0x00000004 */
  7304. #define ETH_MACL3L4CR_L3SAM ETH_MACL3L4CR_L3SAM_Msk /* Layer 3 IP SA Match Enable*/
  7305. #define ETH_MACL3L4CR_L3PEN_Pos (0U)
  7306. #define ETH_MACL3L4CR_L3PEN_Msk (0x1U << ETH_MACL3L4CR_L3PEN_Pos) /*!< 0x00000001 */
  7307. #define ETH_MACL3L4CR_L3PEN ETH_MACL3L4CR_L3PEN_Msk /* Layer 3 Protocol Enable */
  7308. /* Bit definition for Ethernet MAC L4 Address Register */
  7309. #define ETH_MACL4AR_L4DP_Pos (16U)
  7310. #define ETH_MACL4AR_L4DP_Msk (0xFFFFU << ETH_MACL4AR_L4DP_Pos) /*!< 0xFFFF0000 */
  7311. #define ETH_MACL4AR_L4DP ETH_MACL4AR_L4DP_Msk /* Layer 4 Destination Port Number Field */
  7312. #define ETH_MACL4AR_L4SP_Pos (0U)
  7313. #define ETH_MACL4AR_L4SP_Msk (0xFFFFU << ETH_MACL4AR_L4SP_Pos) /*!< 0x0000FFFF */
  7314. #define ETH_MACL4AR_L4SP ETH_MACL4AR_L4SP_Msk /* Layer 4 Source Port Number Field */
  7315. /* Bit definition for Ethernet MAC L3 Address0 Register */
  7316. #define ETH_MACL3A0R_L3A0_Pos (0U)
  7317. #define ETH_MACL3A0R_L3A0_Msk (0xFFFFFFFFU << ETH_MACL3A0R_L3A0_Pos) /*!< 0xFFFFFFFF */
  7318. #define ETH_MACL3A0R_L3A0 ETH_MACL3A0R_L3A0_Msk /* Layer 3 Address 0 Field */
  7319. /* Bit definition for Ethernet MAC L4 Address1 Register */
  7320. #define ETH_MACL3A1R_L3A1_Pos (0U)
  7321. #define ETH_MACL3A1R_L3A1_Msk (0xFFFFFFFFU << ETH_MACL3A1R_L3A1_Pos) /*!< 0xFFFFFFFF */
  7322. #define ETH_MACL3A1R_L3A1 ETH_MACL3A1R_L3A1_Msk /* Layer 3 Address 1 Field */
  7323. /* Bit definition for Ethernet MAC L4 Address2 Register */
  7324. #define ETH_MACL3A2R_L3A2_Pos (0U)
  7325. #define ETH_MACL3A2R_L3A2_Msk (0xFFFFFFFFU << ETH_MACL3A2R_L3A2_Pos) /*!< 0xFFFFFFFF */
  7326. #define ETH_MACL3A2R_L3A2 ETH_MACL3A2R_L3A2_Msk /* Layer 3 Address 2 Field */
  7327. /* Bit definition for Ethernet MAC L4 Address3 Register */
  7328. #define ETH_MACL3A3R_L3A3_Pos (0U)
  7329. #define ETH_MACL3A3R_L3A3_Msk (0xFFFFFFFFU << ETH_MACL3A3R_L3A3_Pos) /*!< 0xFFFFFFFF */
  7330. #define ETH_MACL3A3R_L3A3 ETH_MACL3A3R_L3A3_Msk /* Layer 3 Address 3 Field */
  7331. /* Bit definition for Ethernet MTL Operation Mode Register */
  7332. #define ETH_MTLOMR_CNTCLR_Pos (9U)
  7333. #define ETH_MTLOMR_CNTCLR_Msk (0x1U << ETH_MTLOMR_CNTCLR_Pos) /*!< 0x00000200 */
  7334. #define ETH_MTLOMR_CNTCLR ETH_MTLOMR_CNTCLR_Msk /* Counters Reset */
  7335. #define ETH_MTLOMR_CNTPRST_Pos (8U)
  7336. #define ETH_MTLOMR_CNTPRST_Msk (0x1U << ETH_MTLOMR_CNTPRST_Pos) /*!< 0x00000100 */
  7337. #define ETH_MTLOMR_CNTPRST ETH_MTLOMR_CNTPRST_Msk /* Counters Preset */
  7338. /* Bit definition for Ethernet MTL Interrupt Status Register */
  7339. #define ETH_MTLISR_MACIS_Pos (16U)
  7340. #define ETH_MTLISR_MACIS_Msk (0x1U << ETH_MTLISR_MACIS_Pos) /*!< 0x00010000 */
  7341. #define ETH_MTLISR_MACIS ETH_MTLISR_MACIS_Msk /* MAC Interrupt Status */
  7342. #define ETH_MTLISR_QIS_Pos (0U)
  7343. #define ETH_MTLISR_QIS_Msk (0x1U << ETH_MTLISR_QIS_Pos) /*!< 0x00000001 */
  7344. #define ETH_MTLISR_QIS ETH_MTLISR_QIS_Msk /* Queue Interrupt status */
  7345. /* Bit definition for Ethernet MTL Tx Queue Operation Mode Register */
  7346. #define ETH_MTLTQOMR_TTC_Pos (4U)
  7347. #define ETH_MTLTQOMR_TTC_Msk (0x7U << ETH_MTLTQOMR_TTC_Pos) /*!< 0x00000070 */
  7348. #define ETH_MTLTQOMR_TTC ETH_MTLTQOMR_TTC_Msk /* Transmit Threshold Control */
  7349. #define ETH_MTLTQOMR_TTC_32BITS ((uint32_t)0x00000000) /* 32 bits Threshold */
  7350. #define ETH_MTLTQOMR_TTC_64BITS ((uint32_t)0x00000010) /* 64 bits Threshold */
  7351. #define ETH_MTLTQOMR_TTC_96BITS ((uint32_t)0x00000020) /* 96 bits Threshold */
  7352. #define ETH_MTLTQOMR_TTC_128BITS ((uint32_t)0x00000030) /* 128 bits Threshold */
  7353. #define ETH_MTLTQOMR_TTC_192BITS ((uint32_t)0x00000040) /* 192 bits Threshold */
  7354. #define ETH_MTLTQOMR_TTC_256BITS ((uint32_t)0x00000050) /* 256 bits Threshold */
  7355. #define ETH_MTLTQOMR_TTC_384BITS ((uint32_t)0x00000060) /* 384 bits Threshold */
  7356. #define ETH_MTLTQOMR_TTC_512BITS ((uint32_t)0x00000070) /* 512 bits Threshold */
  7357. #define ETH_MTLTQOMR_TSF_Pos (1U)
  7358. #define ETH_MTLTQOMR_TSF_Msk (0x1U << ETH_MTLTQOMR_TSF_Pos) /*!< 0x00000002 */
  7359. #define ETH_MTLTQOMR_TSF ETH_MTLTQOMR_TSF_Msk /* Transmit Store and Forward */
  7360. #define ETH_MTLTQOMR_FTQ_Pos (0U)
  7361. #define ETH_MTLTQOMR_FTQ_Msk (0x1U << ETH_MTLTQOMR_FTQ_Pos) /*!< 0x00000001 */
  7362. #define ETH_MTLTQOMR_FTQ ETH_MTLTQOMR_FTQ_Msk /* Flush Transmit Queue */
  7363. /* Bit definition for Ethernet MTL Tx Queue Underflow Register */
  7364. #define ETH_MTLTQUR_UFCNTOVF_Pos (11U)
  7365. #define ETH_MTLTQUR_UFCNTOVF_Msk (0x1U << ETH_MTLTQUR_UFCNTOVF_Pos) /*!< 0x00000800 */
  7366. #define ETH_MTLTQUR_UFCNTOVF ETH_MTLTQUR_UFCNTOVF_Msk /* Overflow Bit for Underflow Packet Counter */
  7367. #define ETH_MTLTQUR_UFPKTCNT_Pos (0U)
  7368. #define ETH_MTLTQUR_UFPKTCNT_Msk (0x7FFU << ETH_MTLTQUR_UFPKTCNT_Pos) /*!< 0x000007FF */
  7369. #define ETH_MTLTQUR_UFPKTCNT ETH_MTLTQUR_UFPKTCNT_Msk /* Underflow Packet Counter */
  7370. /* Bit definition for Ethernet MTL Tx Queue Debug Register */
  7371. #define ETH_MTLTQDR_STXSTSF_Pos (20U)
  7372. #define ETH_MTLTQDR_STXSTSF_Msk (0x7U << ETH_MTLTQDR_STXSTSF_Pos) /*!< 0x00700000 */
  7373. #define ETH_MTLTQDR_STXSTSF ETH_MTLTQDR_STXSTSF_Msk /* Number of Status Words in the Tx Status FIFO of Queue */
  7374. #define ETH_MTLTQDR_PTXQ_Pos (16U)
  7375. #define ETH_MTLTQDR_PTXQ_Msk (0x7U << ETH_MTLTQDR_PTXQ_Pos) /*!< 0x00070000 */
  7376. #define ETH_MTLTQDR_PTXQ ETH_MTLTQDR_PTXQ_Msk /* Number of Packets in the Transmit Queue */
  7377. #define ETH_MTLTQDR_TXSTSFSTS_Pos (5U)
  7378. #define ETH_MTLTQDR_TXSTSFSTS_Msk (0x1U << ETH_MTLTQDR_TXSTSFSTS_Pos) /*!< 0x00000020 */
  7379. #define ETH_MTLTQDR_TXSTSFSTS ETH_MTLTQDR_TXSTSFSTS_Msk /* MTL Tx Status FIFO Full Status */
  7380. #define ETH_MTLTQDR_TXQSTS_Pos (4U)
  7381. #define ETH_MTLTQDR_TXQSTS_Msk (0x1U << ETH_MTLTQDR_TXQSTS_Pos) /*!< 0x00000010 */
  7382. #define ETH_MTLTQDR_TXQSTS ETH_MTLTQDR_TXQSTS_Msk /* MTL Tx Queue Not Empty Status */
  7383. #define ETH_MTLTQDR_TWCSTS_Pos (3U)
  7384. #define ETH_MTLTQDR_TWCSTS_Msk (0x1U << ETH_MTLTQDR_TWCSTS_Pos) /*!< 0x00000008 */
  7385. #define ETH_MTLTQDR_TWCSTS ETH_MTLTQDR_TWCSTS_Msk /* MTL Tx Queue Write Controller Status */
  7386. #define ETH_MTLTQDR_TRCSTS_Pos (1U)
  7387. #define ETH_MTLTQDR_TRCSTS_Msk (0x3U << ETH_MTLTQDR_TRCSTS_Pos) /*!< 0x00000006 */
  7388. #define ETH_MTLTQDR_TRCSTS ETH_MTLTQDR_TRCSTS_Msk /* MTL Tx Queue Read Controller Status */
  7389. #define ETH_MTLTQDR_TXQSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7390. #define ETH_MTLTQDR_TXQSTS_READ_Pos (1U)
  7391. #define ETH_MTLTQDR_TXQSTS_READ_Msk (0x1U << ETH_MTLTQDR_TXQSTS_READ_Pos) /*!< 0x00000002 */
  7392. #define ETH_MTLTQDR_TXQSTS_READ ETH_MTLTQDR_TXQSTS_READ_Msk /* Read state (transferring data to the MAC transmitter) */
  7393. #define ETH_MTLTQDR_TXQSTS_WAITING_Pos (2U)
  7394. #define ETH_MTLTQDR_TXQSTS_WAITING_Msk (0x1U << ETH_MTLTQDR_TXQSTS_WAITING_Pos) /*!< 0x00000004 */
  7395. #define ETH_MTLTQDR_TXQSTS_WAITING ETH_MTLTQDR_TXQSTS_WAITING_Msk /* Waiting for pending Tx Status from the MAC transmitter */
  7396. #define ETH_MTLTQDR_TXQSTS_FLUSHING_Pos (1U)
  7397. #define ETH_MTLTQDR_TXQSTS_FLUSHING_Msk (0x3U << ETH_MTLTQDR_TXQSTS_FLUSHING_Pos) /*!< 0x00000006 */
  7398. #define ETH_MTLTQDR_TXQSTS_FLUSHING ETH_MTLTQDR_TXQSTS_FLUSHING_Msk /* Flushing the Tx queue because of the Packet Abort request from the MAC */
  7399. #define ETH_MTLTQDR_TXQPAUSED_Pos (0U)
  7400. #define ETH_MTLTQDR_TXQPAUSED_Msk (0x1U << ETH_MTLTQDR_TXQPAUSED_Pos) /*!< 0x00000001 */
  7401. #define ETH_MTLTQDR_TXQPAUSED ETH_MTLTQDR_TXQPAUSED_Msk /* Transmit Queue in Pause */
  7402. /* Bit definition for Ethernet MTL Queue Interrupt Control Status Register */
  7403. #define ETH_MTLQICSR_RXOIE_Pos (24U)
  7404. #define ETH_MTLQICSR_RXOIE_Msk (0x1U << ETH_MTLQICSR_RXOIE_Pos) /*!< 0x01000000 */
  7405. #define ETH_MTLQICSR_RXOIE ETH_MTLQICSR_RXOIE_Msk /* Receive Queue Overflow Interrupt Enable */
  7406. #define ETH_MTLQICSR_RXOVFIS_Pos (16U)
  7407. #define ETH_MTLQICSR_RXOVFIS_Msk (0x1U << ETH_MTLQICSR_RXOVFIS_Pos) /*!< 0x00010000 */
  7408. #define ETH_MTLQICSR_RXOVFIS ETH_MTLQICSR_RXOVFIS_Msk /* Receive Queue Overflow Interrupt Status */
  7409. #define ETH_MTLQICSR_TXUIE_Pos (8U)
  7410. #define ETH_MTLQICSR_TXUIE_Msk (0x1U << ETH_MTLQICSR_TXUIE_Pos) /*!< 0x00000100 */
  7411. #define ETH_MTLQICSR_TXUIE ETH_MTLQICSR_TXUIE_Msk /* Transmit Queue Underflow Interrupt Enable */
  7412. #define ETH_MTLQICSR_TXUNFIS_Pos (0U)
  7413. #define ETH_MTLQICSR_TXUNFIS_Msk (0x1U << ETH_MTLQICSR_TXUNFIS_Pos) /*!< 0x00000001 */
  7414. #define ETH_MTLQICSR_TXUNFIS ETH_MTLQICSR_TXUNFIS_Msk /* Transmit Queue Underflow Interrupt Status */
  7415. /* Bit definition for Ethernet MTL Rx Queue Operation Mode Register */
  7416. #define ETH_MTLRQOMR_DISTCPEF_Pos (6U)
  7417. #define ETH_MTLRQOMR_DISTCPEF_Msk (0x1U << ETH_MTLRQOMR_DISTCPEF_Pos) /*!< 0x00000040 */
  7418. #define ETH_MTLRQOMR_DISTCPEF ETH_MTLRQOMR_DISTCPEF_Msk /* Disable Dropping of TCP/IP Checksum Error Packets */
  7419. #define ETH_MTLRQOMR_RSF_Pos (5U)
  7420. #define ETH_MTLRQOMR_RSF_Msk (0x1U << ETH_MTLRQOMR_RSF_Pos) /*!< 0x00000020 */
  7421. #define ETH_MTLRQOMR_RSF ETH_MTLRQOMR_RSF_Msk /* Receive Queue Store and Forward */
  7422. #define ETH_MTLRQOMR_FEP_Pos (4U)
  7423. #define ETH_MTLRQOMR_FEP_Msk (0x1U << ETH_MTLRQOMR_FEP_Pos) /*!< 0x00000010 */
  7424. #define ETH_MTLRQOMR_FEP ETH_MTLRQOMR_FEP_Msk /* Forward Error Packets */
  7425. #define ETH_MTLRQOMR_FUP_Pos (3U)
  7426. #define ETH_MTLRQOMR_FUP_Msk (0x1U << ETH_MTLRQOMR_FUP_Pos) /*!< 0x00000008 */
  7427. #define ETH_MTLRQOMR_FUP ETH_MTLRQOMR_FUP_Msk /* Forward Undersized Good Packets */
  7428. #define ETH_MTLRQOMR_RTC_Pos (0U)
  7429. #define ETH_MTLRQOMR_RTC_Msk (0x3U << ETH_MTLRQOMR_RTC_Pos) /*!< 0x00000003 */
  7430. #define ETH_MTLRQOMR_RTC ETH_MTLRQOMR_RTC_Msk /* Receive Queue Threshold Control */
  7431. #define ETH_MTLRQOMR_RTC_64BITS ((uint32_t)0x00000000) /* 64 bits Threshold */
  7432. #define ETH_MTLRQOMR_RTC_32BITS ((uint32_t)0x00000001) /* 32 bits Threshold */
  7433. #define ETH_MTLRQOMR_RTC_96BITS ((uint32_t)0x00000002) /* 96 bits Threshold */
  7434. #define ETH_MTLRQOMR_RTC_128BITS ((uint32_t)0x00000003) /* 128 bits Threshold */
  7435. /* Bit definition for Ethernet MTL Rx Queue Missed Packet Overflow Cnt Register */
  7436. #define ETH_MTLRQMPOCR_MISCNTOVF_Pos (27U)
  7437. #define ETH_MTLRQMPOCR_MISCNTOVF_Msk (0x1U << ETH_MTLRQMPOCR_MISCNTOVF_Pos) /*!< 0x08000000 */
  7438. #define ETH_MTLRQMPOCR_MISCNTOVF ETH_MTLRQMPOCR_MISCNTOVF_Msk /* Missed Packet Counter Overflow Bit */
  7439. #define ETH_MTLRQMPOCR_MISPKTCNT_Pos (16U)
  7440. #define ETH_MTLRQMPOCR_MISPKTCNT_Msk (0x7FFU << ETH_MTLRQMPOCR_MISPKTCNT_Pos) /*!< 0x07FF0000 */
  7441. #define ETH_MTLRQMPOCR_MISPKTCNT ETH_MTLRQMPOCR_MISPKTCNT_Msk /* Missed Packet Counter */
  7442. #define ETH_MTLRQMPOCR_OVFCNTOVF_Pos (11U)
  7443. #define ETH_MTLRQMPOCR_OVFCNTOVF_Msk (0x1U << ETH_MTLRQMPOCR_OVFCNTOVF_Pos) /*!< 0x00000800 */
  7444. #define ETH_MTLRQMPOCR_OVFCNTOVF ETH_MTLRQMPOCR_OVFCNTOVF_Msk /* Overflow Counter Overflow Bit */
  7445. #define ETH_MTLRQMPOCR_OVFPKTCNT_Pos (0U)
  7446. #define ETH_MTLRQMPOCR_OVFPKTCNT_Msk (0x7FFU << ETH_MTLRQMPOCR_OVFPKTCNT_Pos) /*!< 0x000007FF */
  7447. #define ETH_MTLRQMPOCR_OVFPKTCNT ETH_MTLRQMPOCR_OVFPKTCNT_Msk /* Overflow Packet Counter */
  7448. /* Bit definition for Ethernet MTL Rx Queue Debug Register */
  7449. #define ETH_MTLRQDR_PRXQ_Pos (16U)
  7450. #define ETH_MTLRQDR_PRXQ_Msk (0x3FFFU << ETH_MTLRQDR_PRXQ_Pos) /*!< 0x3FFF0000 */
  7451. #define ETH_MTLRQDR_PRXQ ETH_MTLRQDR_PRXQ_Msk /* Number of Packets in Receive Queue */
  7452. #define ETH_MTLRQDR_RXQSTS_Pos (4U)
  7453. #define ETH_MTLRQDR_RXQSTS_Msk (0x3U << ETH_MTLRQDR_RXQSTS_Pos) /*!< 0x00000030 */
  7454. #define ETH_MTLRQDR_RXQSTS ETH_MTLRQDR_RXQSTS_Msk /* MTL Rx Queue Fill-Level Status */
  7455. #define ETH_MTLRQDR_RXQSTS_EMPTY ((uint32_t)0x00000000) /* Rx Queue empty */
  7456. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos (4U)
  7457. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk (0x1U << ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos) /*!< 0x00000010 */
  7458. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk /* Rx Queue fill-level below flow-control deactivate threshold */
  7459. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos (5U)
  7460. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk (0x1U << ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos) /*!< 0x00000020 */
  7461. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk /* Rx Queue fill-level above flow-control activate threshold */
  7462. #define ETH_MTLRQDR_RXQSTS_FULL_Pos (4U)
  7463. #define ETH_MTLRQDR_RXQSTS_FULL_Msk (0x3U << ETH_MTLRQDR_RXQSTS_FULL_Pos) /*!< 0x00000030 */
  7464. #define ETH_MTLRQDR_RXQSTS_FULL ETH_MTLRQDR_RXQSTS_FULL_Msk /* Rx Queue full */
  7465. #define ETH_MTLRQDR_RRCSTS_Pos (1U)
  7466. #define ETH_MTLRQDR_RRCSTS_Msk (0x3U << ETH_MTLRQDR_RRCSTS_Pos) /*!< 0x00000006 */
  7467. #define ETH_MTLRQDR_RRCSTS ETH_MTLRQDR_RRCSTS_Msk /* MTL Rx Queue Read Controller State */
  7468. #define ETH_MTLRQDR_RRCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7469. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Pos (1U)
  7470. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Msk (0x1U << ETH_MTLRQDR_RRCSTS_READINGDATA_Pos) /*!< 0x00000002 */
  7471. #define ETH_MTLRQDR_RRCSTS_READINGDATA ETH_MTLRQDR_RRCSTS_READINGDATA_Msk /* Reading packet data */
  7472. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos (2U)
  7473. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk (0x1U << ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos) /*!< 0x00000004 */
  7474. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk /* Reading packet status (or timestamp) */
  7475. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Pos (1U)
  7476. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Msk (0x3U << ETH_MTLRQDR_RRCSTS_FLUSHING_Pos) /*!< 0x00000006 */
  7477. #define ETH_MTLRQDR_RRCSTS_FLUSHING ETH_MTLRQDR_RRCSTS_FLUSHING_Msk /* Flushing the packet data and status */
  7478. #define ETH_MTLRQDR_RWCSTS_Pos (0U)
  7479. #define ETH_MTLRQDR_RWCSTS_Msk (0x1U << ETH_MTLRQDR_RWCSTS_Pos) /*!< 0x00000001 */
  7480. #define ETH_MTLRQDR_RWCSTS ETH_MTLRQDR_RWCSTS_Msk /* MTL Rx Queue Write Controller Active Status */
  7481. /* Bit definition for Ethernet MTL Rx Queue Control Register */
  7482. #define ETH_MTLRQCR_RQPA_Pos (3U)
  7483. #define ETH_MTLRQCR_RQPA_Msk (0x1U << ETH_MTLRQCR_RQPA_Pos) /*!< 0x00000008 */
  7484. #define ETH_MTLRQCR_RQPA ETH_MTLRQCR_RQPA_Msk /* Receive Queue Packet Arbitration */
  7485. #define ETH_MTLRQCR_RQW_Pos (0U)
  7486. #define ETH_MTLRQCR_RQW_Msk (0x7U << ETH_MTLRQCR_RQW_Pos) /*!< 0x00000007 */
  7487. #define ETH_MTLRQCR_RQW ETH_MTLRQCR_RQW_Msk /* Receive Queue Weight */
  7488. /* Bit definition for Ethernet DMA Mode Register */
  7489. #define ETH_DMAMR_INTM_Pos (16U)
  7490. #define ETH_DMAMR_INTM_Msk (0x3U << ETH_DMAMR_INTM_Pos) /*!< 0x00030000 */
  7491. #define ETH_DMAMR_INTM ETH_DMAMR_INTM_Msk /* This field defines the interrupt mode */
  7492. #define ETH_DMAMR_INTM_0 (0x0U << ETH_DMAMR_INTM_Pos) /*!< 0x00000000 */
  7493. #define ETH_DMAMR_INTM_1 (0x1U << ETH_DMAMR_INTM_Pos) /*!< 0x00010000 */
  7494. #define ETH_DMAMR_INTM_2 (0x2U << ETH_DMAMR_INTM_Pos) /*!< 0x00020000 */
  7495. #define ETH_DMAMR_PR_Pos (12U)
  7496. #define ETH_DMAMR_PR_Msk (0x7U << ETH_DMAMR_PR_Pos) /*!< 0x00007000 */
  7497. #define ETH_DMAMR_PR ETH_DMAMR_PR_Msk /* Priority Ratio */
  7498. #define ETH_DMAMR_PR_1_1 ((uint32_t)0x00000000) /* The priority ratio is 1:1 */
  7499. #define ETH_DMAMR_PR_2_1 ((uint32_t)0x00001000) /* The priority ratio is 2:1 */
  7500. #define ETH_DMAMR_PR_3_1 ((uint32_t)0x00002000) /* The priority ratio is 3:1 */
  7501. #define ETH_DMAMR_PR_4_1 ((uint32_t)0x00003000) /* The priority ratio is 4:1 */
  7502. #define ETH_DMAMR_PR_5_1 ((uint32_t)0x00004000) /* The priority ratio is 5:1 */
  7503. #define ETH_DMAMR_PR_6_1 ((uint32_t)0x00005000) /* The priority ratio is 6:1 */
  7504. #define ETH_DMAMR_PR_7_1 ((uint32_t)0x00006000) /* The priority ratio is 7:1 */
  7505. #define ETH_DMAMR_PR_8_1 ((uint32_t)0x00007000) /* The priority ratio is 8:1 */
  7506. #define ETH_DMAMR_TXPR_Pos (11U)
  7507. #define ETH_DMAMR_TXPR_Msk (0x1U << ETH_DMAMR_TXPR_Pos) /*!< 0x00000800 */
  7508. #define ETH_DMAMR_TXPR ETH_DMAMR_TXPR_Msk /* Transmit Priority */
  7509. #define ETH_DMAMR_DA_Pos (1U)
  7510. #define ETH_DMAMR_DA_Msk (0x1U << ETH_DMAMR_DA_Pos) /*!< 0x00000002 */
  7511. #define ETH_DMAMR_DA ETH_DMAMR_DA_Msk /* DMA Tx or Rx Arbitration Scheme */
  7512. #define ETH_DMAMR_SWR_Pos (0U)
  7513. #define ETH_DMAMR_SWR_Msk (0x1U << ETH_DMAMR_SWR_Pos) /*!< 0x00000001 */
  7514. #define ETH_DMAMR_SWR ETH_DMAMR_SWR_Msk /* Software Reset */
  7515. /* Bit definition for Ethernet DMA SysBus Mode Register */
  7516. #define ETH_DMASBMR_RB_Pos (15U)
  7517. #define ETH_DMASBMR_RB_Msk (0x1U << ETH_DMASBMR_RB_Pos) /*!< 0x00008000 */
  7518. #define ETH_DMASBMR_RB ETH_DMASBMR_RB_Msk /* Rebuild INCRx Burst */
  7519. #define ETH_DMASBMR_MB_Pos (14U)
  7520. #define ETH_DMASBMR_MB_Msk (0x1U << ETH_DMASBMR_MB_Pos) /*!< 0x00004000 */
  7521. #define ETH_DMASBMR_MB ETH_DMASBMR_MB_Msk /* Mixed Burst */
  7522. #define ETH_DMASBMR_AAL_Pos (12U)
  7523. #define ETH_DMASBMR_AAL_Msk (0x1U << ETH_DMASBMR_AAL_Pos) /*!< 0x00001000 */
  7524. #define ETH_DMASBMR_AAL ETH_DMASBMR_AAL_Msk /* Address-Aligned Beats */
  7525. #define ETH_DMASBMR_FB_Pos (0U)
  7526. #define ETH_DMASBMR_FB_Msk (0x1U << ETH_DMASBMR_FB_Pos) /*!< 0x00000001 */
  7527. #define ETH_DMASBMR_FB ETH_DMASBMR_FB_Msk /* Fixed Burst Length */
  7528. /* Bit definition for Ethernet DMA Interrupt Status Register */
  7529. #define ETH_DMAISR_MACIS_Pos (17U)
  7530. #define ETH_DMAISR_MACIS_Msk (0x1U << ETH_DMAISR_MACIS_Pos) /*!< 0x00020000 */
  7531. #define ETH_DMAISR_MACIS ETH_DMAISR_MACIS_Msk /* MAC Interrupt Status */
  7532. #define ETH_DMAISR_MTLIS_Pos (16U)
  7533. #define ETH_DMAISR_MTLIS_Msk (0x1U << ETH_DMAISR_MTLIS_Pos) /*!< 0x00010000 */
  7534. #define ETH_DMAISR_MTLIS ETH_DMAISR_MTLIS_Msk /* MAC Interrupt Status */
  7535. #define ETH_DMAISR_DMACIS_Pos (0U)
  7536. #define ETH_DMAISR_DMACIS_Msk (0x1U << ETH_DMAISR_DMACIS_Pos) /*!< 0x00000001 */
  7537. #define ETH_DMAISR_DMACIS ETH_DMAISR_DMACIS_Msk /* DMA Channel Interrupt Status */
  7538. /* Bit definition for Ethernet DMA Debug Status Register */
  7539. #define ETH_DMADSR_TPS_Pos (12U)
  7540. #define ETH_DMADSR_TPS_Msk (0xFU << ETH_DMADSR_TPS_Pos) /*!< 0x0000F000 */
  7541. #define ETH_DMADSR_TPS ETH_DMADSR_TPS_Msk /* DMA Channel Transmit Process State */
  7542. #define ETH_DMADSR_TPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Transmit Command issued) */
  7543. #define ETH_DMADSR_TPS_FETCHING_Pos (12U)
  7544. #define ETH_DMADSR_TPS_FETCHING_Msk (0x1U << ETH_DMADSR_TPS_FETCHING_Pos) /*!< 0x00001000 */
  7545. #define ETH_DMADSR_TPS_FETCHING ETH_DMADSR_TPS_FETCHING_Msk /* Running (Fetching Tx Transfer Descriptor) */
  7546. #define ETH_DMADSR_TPS_WAITING_Pos (13U)
  7547. #define ETH_DMADSR_TPS_WAITING_Msk (0x1U << ETH_DMADSR_TPS_WAITING_Pos) /*!< 0x00002000 */
  7548. #define ETH_DMADSR_TPS_WAITING ETH_DMADSR_TPS_WAITING_Msk /* Running (Waiting for status) */
  7549. #define ETH_DMADSR_TPS_READING_Pos (12U)
  7550. #define ETH_DMADSR_TPS_READING_Msk (0x3U << ETH_DMADSR_TPS_READING_Pos) /*!< 0x00003000 */
  7551. #define ETH_DMADSR_TPS_READING ETH_DMADSR_TPS_READING_Msk /* Running (Reading Data from system memory buffer and queuing it to the Tx buffer (Tx FIFO)) */
  7552. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Pos (14U)
  7553. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Msk (0x1U << ETH_DMADSR_TPS_TIMESTAMP_WR_Pos) /*!< 0x00004000 */
  7554. #define ETH_DMADSR_TPS_TIMESTAMP_WR ETH_DMADSR_TPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7555. #define ETH_DMADSR_TPS_SUSPENDED_Pos (13U)
  7556. #define ETH_DMADSR_TPS_SUSPENDED_Msk (0x3U << ETH_DMADSR_TPS_SUSPENDED_Pos) /*!< 0x00006000 */
  7557. #define ETH_DMADSR_TPS_SUSPENDED ETH_DMADSR_TPS_SUSPENDED_Msk /* Suspended (Tx Descriptor Unavailable or Tx Buffer Underflow) */
  7558. #define ETH_DMADSR_TPS_CLOSING_Pos (12U)
  7559. #define ETH_DMADSR_TPS_CLOSING_Msk (0x7U << ETH_DMADSR_TPS_CLOSING_Pos) /*!< 0x00007000 */
  7560. #define ETH_DMADSR_TPS_CLOSING ETH_DMADSR_TPS_CLOSING_Msk /* Running (Closing Tx Descriptor) */
  7561. #define ETH_DMADSR_RPS_Pos (8U)
  7562. #define ETH_DMADSR_RPS_Msk (0xFU << ETH_DMADSR_RPS_Pos) /*!< 0x00000F00 */
  7563. #define ETH_DMADSR_RPS ETH_DMADSR_RPS_Msk /* DMA Channel Receive Process State */
  7564. #define ETH_DMADSR_RPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Receive Command issued) */
  7565. #define ETH_DMADSR_RPS_FETCHING_Pos (12U)
  7566. #define ETH_DMADSR_RPS_FETCHING_Msk (0x1U << ETH_DMADSR_RPS_FETCHING_Pos) /*!< 0x00001000 */
  7567. #define ETH_DMADSR_RPS_FETCHING ETH_DMADSR_RPS_FETCHING_Msk /* Running (Fetching Rx Transfer Descriptor) */
  7568. #define ETH_DMADSR_RPS_WAITING_Pos (12U)
  7569. #define ETH_DMADSR_RPS_WAITING_Msk (0x3U << ETH_DMADSR_RPS_WAITING_Pos) /*!< 0x00003000 */
  7570. #define ETH_DMADSR_RPS_WAITING ETH_DMADSR_RPS_WAITING_Msk /* Running (Waiting for status) */
  7571. #define ETH_DMADSR_RPS_SUSPENDED_Pos (14U)
  7572. #define ETH_DMADSR_RPS_SUSPENDED_Msk (0x1U << ETH_DMADSR_RPS_SUSPENDED_Pos) /*!< 0x00004000 */
  7573. #define ETH_DMADSR_RPS_SUSPENDED ETH_DMADSR_RPS_SUSPENDED_Msk /* Suspended (Rx Descriptor Unavailable) */
  7574. #define ETH_DMADSR_RPS_CLOSING_Pos (12U)
  7575. #define ETH_DMADSR_RPS_CLOSING_Msk (0x5U << ETH_DMADSR_RPS_CLOSING_Pos) /*!< 0x00005000 */
  7576. #define ETH_DMADSR_RPS_CLOSING ETH_DMADSR_RPS_CLOSING_Msk /* Running (Closing the Rx Descriptor) */
  7577. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Pos (13U)
  7578. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Msk (0x3U << ETH_DMADSR_RPS_TIMESTAMP_WR_Pos) /*!< 0x00006000 */
  7579. #define ETH_DMADSR_RPS_TIMESTAMP_WR ETH_DMADSR_RPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7580. #define ETH_DMADSR_RPS_TRANSFERRING_Pos (12U)
  7581. #define ETH_DMADSR_RPS_TRANSFERRING_Msk (0x7U << ETH_DMADSR_RPS_TRANSFERRING_Pos) /*!< 0x00007000 */
  7582. #define ETH_DMADSR_RPS_TRANSFERRING ETH_DMADSR_RPS_TRANSFERRING_Msk /* Running (Transferring the received packet data from the Rx buffer to the system memory) */
  7583. /* Bit definition for Ethernet DMA Channel Control Register */
  7584. #define ETH_DMACCR_DSL_Pos (18U)
  7585. #define ETH_DMACCR_DSL_Msk (0x7U << ETH_DMACCR_DSL_Pos) /*!< 0x001C0000 */
  7586. #define ETH_DMACCR_DSL ETH_DMACCR_DSL_Msk /* Descriptor Skip Length */
  7587. #define ETH_DMACCR_DSL_0BIT ((uint32_t)0x00000000)
  7588. #define ETH_DMACCR_DSL_32BIT ((uint32_t)0x00040000)
  7589. #define ETH_DMACCR_DSL_64BIT ((uint32_t)0x00080000)
  7590. #define ETH_DMACCR_DSL_128BIT ((uint32_t)0x00100000)
  7591. #define ETH_DMACCR_8PBL ((uint32_t)0x00010000) /* 8xPBL mode */
  7592. #define ETH_DMACCR_MSS_Pos (0U)
  7593. #define ETH_DMACCR_MSS_Msk (0x3FFFU << ETH_DMACCR_MSS_Pos) /*!< 0x00003FFF */
  7594. #define ETH_DMACCR_MSS ETH_DMACCR_MSS_Msk /* Maximum Segment Size */
  7595. /* Bit definition for Ethernet DMA Channel Tx Control Register */
  7596. #define ETH_DMACTCR_TPBL_Pos (16U)
  7597. #define ETH_DMACTCR_TPBL_Msk (0x3FU << ETH_DMACTCR_TPBL_Pos) /*!< 0x003F0000 */
  7598. #define ETH_DMACTCR_TPBL ETH_DMACTCR_TPBL_Msk /* Transmit Programmable Burst Length */
  7599. #define ETH_DMACTCR_TPBL_1PBL ((uint32_t)0x00010000) /* Transmit Programmable Burst Length 1 */
  7600. #define ETH_DMACTCR_TPBL_2PBL ((uint32_t)0x00020000) /* Transmit Programmable Burst Length 2 */
  7601. #define ETH_DMACTCR_TPBL_4PBL ((uint32_t)0x00040000) /* Transmit Programmable Burst Length 4 */
  7602. #define ETH_DMACTCR_TPBL_8PBL ((uint32_t)0x00080000) /* Transmit Programmable Burst Length 8 */
  7603. #define ETH_DMACTCR_TPBL_16PBL ((uint32_t)0x00100000) /* Transmit Programmable Burst Length 16 */
  7604. #define ETH_DMACTCR_TPBL_32PBL ((uint32_t)0x00200000) /* Transmit Programmable Burst Length 32 */
  7605. #define ETH_DMACTCR_TSE_Pos (12U)
  7606. #define ETH_DMACTCR_TSE_Msk (0x1U << ETH_DMACTCR_TSE_Pos) /*!< 0x00001000 */
  7607. #define ETH_DMACTCR_TSE ETH_DMACTCR_TSE_Msk /* TCP Segmentation Enabled */
  7608. #define ETH_DMACTCR_OSP_Pos (4U)
  7609. #define ETH_DMACTCR_OSP_Msk (0x1U << ETH_DMACTCR_OSP_Pos) /*!< 0x00000010 */
  7610. #define ETH_DMACTCR_OSP ETH_DMACTCR_OSP_Msk /* Operate on Second Packet */
  7611. #define ETH_DMACTCR_ST_Pos (0U)
  7612. #define ETH_DMACTCR_ST_Msk (0x1U << ETH_DMACTCR_ST_Pos) /*!< 0x00000001 */
  7613. #define ETH_DMACTCR_ST ETH_DMACTCR_ST_Msk /* Start or Stop Transmission Command */
  7614. /* Bit definition for Ethernet DMA Channel Rx Control Register */
  7615. #define ETH_DMACRCR_RPF_Pos (31U)
  7616. #define ETH_DMACRCR_RPF_Msk (0x1U << ETH_DMACRCR_RPF_Pos) /*!< 0x80000000 */
  7617. #define ETH_DMACRCR_RPF ETH_DMACRCR_RPF_Msk /* Rx Packet Flush */
  7618. #define ETH_DMACRCR_RPBL_Pos (16U)
  7619. #define ETH_DMACRCR_RPBL_Msk (0x3FU << ETH_DMACRCR_RPBL_Pos) /*!< 0x003F0000 */
  7620. #define ETH_DMACRCR_RPBL ETH_DMACRCR_RPBL_Msk /* Receive Programmable Burst Length */
  7621. #define ETH_DMACRCR_RPBL_1PBL ((uint32_t)0x00010000) /* Receive Programmable Burst Length 1 */
  7622. #define ETH_DMACRCR_RPBL_2PBL ((uint32_t)0x00020000) /* Receive Programmable Burst Length 2 */
  7623. #define ETH_DMACRCR_RPBL_4PBL ((uint32_t)0x00040000) /* Receive Programmable Burst Length 4 */
  7624. #define ETH_DMACRCR_RPBL_8PBL ((uint32_t)0x00080000) /* Receive Programmable Burst Length 8 */
  7625. #define ETH_DMACRCR_RPBL_16PBL ((uint32_t)0x00100000) /* Receive Programmable Burst Length 16 */
  7626. #define ETH_DMACRCR_RPBL_32PBL ((uint32_t)0x00200000) /* Receive Programmable Burst Length 32 */
  7627. #define ETH_DMACRCR_RBSZ_Pos (1U)
  7628. #define ETH_DMACRCR_RBSZ_Msk (0x3FFFU << ETH_DMACRCR_RBSZ_Pos) /*!< 0x00007FFE */
  7629. #define ETH_DMACRCR_RBSZ ETH_DMACRCR_RBSZ_Msk /* Receive Buffer size */
  7630. #define ETH_DMACRCR_SR_Pos (0U)
  7631. #define ETH_DMACRCR_SR_Msk (0x1U << ETH_DMACRCR_SR_Pos) /*!< 0x00000001 */
  7632. #define ETH_DMACRCR_SR ETH_DMACRCR_SR_Msk /* Start or Stop Receive */
  7633. /* Bit definition for Ethernet DMA CH Tx Desc List Address Register */
  7634. #define ETH_DMACTDLAR_TDESLA_Pos (2U)
  7635. #define ETH_DMACTDLAR_TDESLA_Msk (0x3FFFFFFFU << ETH_DMACTDLAR_TDESLA_Pos) /*!< 0xFFFFFFFC */
  7636. #define ETH_DMACTDLAR_TDESLA ETH_DMACTDLAR_TDESLA_Msk /* Start of Transmit List */
  7637. /* Bit definition for Ethernet DMA CH Rx Desc List Address Register */
  7638. #define ETH_DMACRDLAR_RDESLA_Pos (2U)
  7639. #define ETH_DMACRDLAR_RDESLA_Msk (0x3FFFFFFFU << ETH_DMACRDLAR_RDESLA_Pos) /*!< 0xFFFFFFFC */
  7640. #define ETH_DMACRDLAR_RDESLA ETH_DMACRDLAR_RDESLA_Msk /* Start of Receive List */
  7641. /* Bit definition for Ethernet DMA CH Tx Desc Tail Pointer Register */
  7642. #define ETH_DMACTDTPR_TDT_Pos (2U)
  7643. #define ETH_DMACTDTPR_TDT_Msk (0x3FFFFFFFU << ETH_DMACTDTPR_TDT_Pos) /*!< 0xFFFFFFFC */
  7644. #define ETH_DMACTDTPR_TDT ETH_DMACTDTPR_TDT_Msk /* Transmit Descriptor Tail Pointer */
  7645. /* Bit definition for Ethernet DMA CH Rx Desc Tail Pointer Register */
  7646. #define ETH_DMACRDTPR_RDT_Pos (2U)
  7647. #define ETH_DMACRDTPR_RDT_Msk (0x3FFFFFFFU << ETH_DMACRDTPR_RDT_Pos) /*!< 0xFFFFFFFC */
  7648. #define ETH_DMACRDTPR_RDT ETH_DMACRDTPR_RDT_Msk /* Receive Descriptor Tail Pointer */
  7649. /* Bit definition for Ethernet DMA CH Tx Desc Ring Length Register */
  7650. #define ETH_DMACTDRLR_TDRL_Pos (0U)
  7651. #define ETH_DMACTDRLR_TDRL_Msk (0x3FFU << ETH_DMACTDRLR_TDRL_Pos) /*!< 0x000003FF */
  7652. #define ETH_DMACTDRLR_TDRL ETH_DMACTDRLR_TDRL_Msk /* Transmit Descriptor Ring Length */
  7653. /* Bit definition for Ethernet DMA CH Rx Desc Ring Length Register */
  7654. #define ETH_DMACRDRLR_RDRL_Pos (0U)
  7655. #define ETH_DMACRDRLR_RDRL_Msk (0x3FFU << ETH_DMACRDRLR_RDRL_Pos) /*!< 0x000003FF */
  7656. #define ETH_DMACRDRLR_RDRL ETH_DMACRDRLR_RDRL_Msk /* Receive Descriptor Ring Length */
  7657. /* Bit definition for Ethernet DMA Channel Interrupt Enable Register */
  7658. #define ETH_DMACIER_NIE_Pos (15U)
  7659. #define ETH_DMACIER_NIE_Msk (0x1U << ETH_DMACIER_NIE_Pos) /*!< 0x00008000 */
  7660. #define ETH_DMACIER_NIE ETH_DMACIER_NIE_Msk /* Normal Interrupt Summary Enable */
  7661. #define ETH_DMACIER_AIE_Pos (14U)
  7662. #define ETH_DMACIER_AIE_Msk (0x1U << ETH_DMACIER_AIE_Pos) /*!< 0x00004000 */
  7663. #define ETH_DMACIER_AIE ETH_DMACIER_AIE_Msk /* Abnormal Interrupt Summary Enable */
  7664. #define ETH_DMACIER_CDEE_Pos (13U)
  7665. #define ETH_DMACIER_CDEE_Msk (0x1U << ETH_DMACIER_CDEE_Pos) /*!< 0x00002000 */
  7666. #define ETH_DMACIER_CDEE ETH_DMACIER_CDEE_Msk /* Context Descriptor Error Enable */
  7667. #define ETH_DMACIER_FBEE_Pos (12U)
  7668. #define ETH_DMACIER_FBEE_Msk (0x1U << ETH_DMACIER_FBEE_Pos) /*!< 0x00001000 */
  7669. #define ETH_DMACIER_FBEE ETH_DMACIER_FBEE_Msk /* Fatal Bus Error Enable */
  7670. #define ETH_DMACIER_ERIE_Pos (11U)
  7671. #define ETH_DMACIER_ERIE_Msk (0x1U << ETH_DMACIER_ERIE_Pos) /*!< 0x00000800 */
  7672. #define ETH_DMACIER_ERIE ETH_DMACIER_ERIE_Msk /* Early Receive Interrupt Enable */
  7673. #define ETH_DMACIER_ETIE_Pos (10U)
  7674. #define ETH_DMACIER_ETIE_Msk (0x1U << ETH_DMACIER_ETIE_Pos) /*!< 0x00000400 */
  7675. #define ETH_DMACIER_ETIE ETH_DMACIER_ETIE_Msk /* Early Transmit Interrupt Enable */
  7676. #define ETH_DMACIER_RWTE_Pos (9U)
  7677. #define ETH_DMACIER_RWTE_Msk (0x1U << ETH_DMACIER_RWTE_Pos) /*!< 0x00000200 */
  7678. #define ETH_DMACIER_RWTE ETH_DMACIER_RWTE_Msk /* Receive Watchdog Timeout Enable */
  7679. #define ETH_DMACIER_RSE_Pos (8U)
  7680. #define ETH_DMACIER_RSE_Msk (0x1U << ETH_DMACIER_RSE_Pos) /*!< 0x00000100 */
  7681. #define ETH_DMACIER_RSE ETH_DMACIER_RSE_Msk /* Receive Stopped Enable */
  7682. #define ETH_DMACIER_RBUE_Pos (7U)
  7683. #define ETH_DMACIER_RBUE_Msk (0x1U << ETH_DMACIER_RBUE_Pos) /*!< 0x00000080 */
  7684. #define ETH_DMACIER_RBUE ETH_DMACIER_RBUE_Msk /* Receive Buffer Unavailable Enable */
  7685. #define ETH_DMACIER_RIE_Pos (6U)
  7686. #define ETH_DMACIER_RIE_Msk (0x1U << ETH_DMACIER_RIE_Pos) /*!< 0x00000040 */
  7687. #define ETH_DMACIER_RIE ETH_DMACIER_RIE_Msk /* Receive Interrupt Enable */
  7688. #define ETH_DMACIER_TBUE_Pos (2U)
  7689. #define ETH_DMACIER_TBUE_Msk (0x1U << ETH_DMACIER_TBUE_Pos) /*!< 0x00000004 */
  7690. #define ETH_DMACIER_TBUE ETH_DMACIER_TBUE_Msk /* Transmit Buffer Unavailable Enable */
  7691. #define ETH_DMACIER_TXSE_Pos (1U)
  7692. #define ETH_DMACIER_TXSE_Msk (0x1U << ETH_DMACIER_TXSE_Pos) /*!< 0x00000002 */
  7693. #define ETH_DMACIER_TXSE ETH_DMACIER_TXSE_Msk /* Transmit Stopped Enable */
  7694. #define ETH_DMACIER_TIE_Pos (0U)
  7695. #define ETH_DMACIER_TIE_Msk (0x1U << ETH_DMACIER_TIE_Pos) /*!< 0x00000001 */
  7696. #define ETH_DMACIER_TIE ETH_DMACIER_TIE_Msk /* Transmit Interrupt Enable */
  7697. /* Bit definition for Ethernet DMA Channel Rx Interrupt Watchdog Timer Register */
  7698. #define ETH_DMACRIWTR_RWT_Pos (0U)
  7699. #define ETH_DMACRIWTR_RWT_Msk (0xFFU << ETH_DMACRIWTR_RWT_Pos) /*!< 0x000000FF */
  7700. #define ETH_DMACRIWTR_RWT ETH_DMACRIWTR_RWT_Msk /* Receive Interrupt Watchdog Timer Count */
  7701. /* Bit definition for Ethernet DMA Channel Current App Tx Desc Register */
  7702. #define ETH_DMACCATDR_CURTDESAPTR_Pos (0U)
  7703. #define ETH_DMACCATDR_CURTDESAPTR_Msk (0xFFFFFFFFU << ETH_DMACCATDR_CURTDESAPTR_Pos) /*!< 0xFFFFFFFF */
  7704. #define ETH_DMACCATDR_CURTDESAPTR ETH_DMACCATDR_CURTDESAPTR_Msk /* Application Transmit Descriptor Address Pointer */
  7705. /* Bit definition for Ethernet DMA Channel Current App Rx Desc Register */
  7706. #define ETH_DMACCARDR_CURRDESAPTR_Pos (0U)
  7707. #define ETH_DMACCARDR_CURRDESAPTR_Msk (0xFFFFFFFFU << ETH_DMACCARDR_CURRDESAPTR_Pos) /*!< 0xFFFFFFFF */
  7708. #define ETH_DMACCARDR_CURRDESAPTR ETH_DMACCARDR_CURRDESAPTR_Msk /* Application Receive Descriptor Address Pointer */
  7709. /* Bit definition for Ethernet DMA Channel Current App Tx Buffer Register */
  7710. #define ETH_DMACCATBR_CURTBUFAPTR_Pos (0U)
  7711. #define ETH_DMACCATBR_CURTBUFAPTR_Msk (0xFFFFFFFFU << ETH_DMACCATBR_CURTBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  7712. #define ETH_DMACCATBR_CURTBUFAPTR ETH_DMACCATBR_CURTBUFAPTR_Msk /* Application Transmit Buffer Address Pointer */
  7713. /* Bit definition for Ethernet DMA Channel Current App Rx Buffer Register */
  7714. #define ETH_DMACCARBR_CURRBUFAPTR_Pos (0U)
  7715. #define ETH_DMACCARBR_CURRBUFAPTR_Msk (0xFFFFFFFFU << ETH_DMACCARBR_CURRBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  7716. #define ETH_DMACCARBR_CURRBUFAPTR ETH_DMACCARBR_CURRBUFAPTR_Msk /* Application Receive Buffer Address Pointer */
  7717. /* Bit definition for Ethernet DMA Channel Status Register */
  7718. #define ETH_DMACSR_REB_Pos (19U)
  7719. #define ETH_DMACSR_REB_Msk (0x7U << ETH_DMACSR_REB_Pos) /*!< 0x00380000 */
  7720. #define ETH_DMACSR_REB ETH_DMACSR_REB_Msk /* Rx DMA Error Bits */
  7721. #define ETH_DMACSR_TEB_Pos (16U)
  7722. #define ETH_DMACSR_TEB_Msk (0x7U << ETH_DMACSR_TEB_Pos) /*!< 0x00070000 */
  7723. #define ETH_DMACSR_TEB ETH_DMACSR_TEB_Msk /* Tx DMA Error Bits */
  7724. #define ETH_DMACSR_NIS_Pos (15U)
  7725. #define ETH_DMACSR_NIS_Msk (0x1U << ETH_DMACSR_NIS_Pos) /*!< 0x00008000 */
  7726. #define ETH_DMACSR_NIS ETH_DMACSR_NIS_Msk /* Normal Interrupt Summary */
  7727. #define ETH_DMACSR_AIS_Pos (14U)
  7728. #define ETH_DMACSR_AIS_Msk (0x1U << ETH_DMACSR_AIS_Pos) /*!< 0x00004000 */
  7729. #define ETH_DMACSR_AIS ETH_DMACSR_AIS_Msk /* Abnormal Interrupt Summary */
  7730. #define ETH_DMACSR_CDE_Pos (13U)
  7731. #define ETH_DMACSR_CDE_Msk (0x1U << ETH_DMACSR_CDE_Pos) /*!< 0x00002000 */
  7732. #define ETH_DMACSR_CDE ETH_DMACSR_CDE_Msk /* Context Descriptor Error */
  7733. #define ETH_DMACSR_FBE_Pos (12U)
  7734. #define ETH_DMACSR_FBE_Msk (0x1U << ETH_DMACSR_FBE_Pos) /*!< 0x00001000 */
  7735. #define ETH_DMACSR_FBE ETH_DMACSR_FBE_Msk /* Fatal Bus Error */
  7736. #define ETH_DMACSR_ERI_Pos (11U)
  7737. #define ETH_DMACSR_ERI_Msk (0x1U << ETH_DMACSR_ERI_Pos) /*!< 0x00000800 */
  7738. #define ETH_DMACSR_ERI ETH_DMACSR_ERI_Msk /* Early Receive Interrupt */
  7739. #define ETH_DMACSR_ETI_Pos (10U)
  7740. #define ETH_DMACSR_ETI_Msk (0x1U << ETH_DMACSR_ETI_Pos) /*!< 0x00000400 */
  7741. #define ETH_DMACSR_ETI ETH_DMACSR_ETI_Msk /* Early Transmit Interrupt */
  7742. #define ETH_DMACSR_RWT_Pos (9U)
  7743. #define ETH_DMACSR_RWT_Msk (0x1U << ETH_DMACSR_RWT_Pos) /*!< 0x00000200 */
  7744. #define ETH_DMACSR_RWT ETH_DMACSR_RWT_Msk /* Receive Watchdog Timeout */
  7745. #define ETH_DMACSR_RPS_Pos (8U)
  7746. #define ETH_DMACSR_RPS_Msk (0x1U << ETH_DMACSR_RPS_Pos) /*!< 0x00000100 */
  7747. #define ETH_DMACSR_RPS ETH_DMACSR_RPS_Msk /* Receive Process Stopped */
  7748. #define ETH_DMACSR_RBU_Pos (7U)
  7749. #define ETH_DMACSR_RBU_Msk (0x1U << ETH_DMACSR_RBU_Pos) /*!< 0x00000080 */
  7750. #define ETH_DMACSR_RBU ETH_DMACSR_RBU_Msk /* Receive Buffer Unavailable */
  7751. #define ETH_DMACSR_RI_Pos (6U)
  7752. #define ETH_DMACSR_RI_Msk (0x1U << ETH_DMACSR_RI_Pos) /*!< 0x00000040 */
  7753. #define ETH_DMACSR_RI ETH_DMACSR_RI_Msk /* Receive Interrupt */
  7754. #define ETH_DMACSR_TBU_Pos (2U)
  7755. #define ETH_DMACSR_TBU_Msk (0x1U << ETH_DMACSR_TBU_Pos) /*!< 0x00000004 */
  7756. #define ETH_DMACSR_TBU ETH_DMACSR_TBU_Msk /* Transmit Buffer Unavailable */
  7757. #define ETH_DMACSR_TPS_Pos (1U)
  7758. #define ETH_DMACSR_TPS_Msk (0x1U << ETH_DMACSR_TPS_Pos) /*!< 0x00000002 */
  7759. #define ETH_DMACSR_TPS ETH_DMACSR_TPS_Msk /* Transmit Process Stopped */
  7760. #define ETH_DMACSR_TI_Pos (0U)
  7761. #define ETH_DMACSR_TI_Msk (0x1U << ETH_DMACSR_TI_Pos) /*!< 0x00000001 */
  7762. #define ETH_DMACSR_TI ETH_DMACSR_TI_Msk /* Transmit Interrupt */
  7763. /* Bit definition for Ethernet DMA Channel missed frame count register */
  7764. #define ETH_DMACMFCR_MFCO_Pos (15U)
  7765. #define ETH_DMACMFCR_MFCO_Msk (0x1U << ETH_DMACMFCR_MFCO_Pos) /*!< 0x00008000 */
  7766. #define ETH_DMACMFCR_MFCO ETH_DMACMFCR_MFCO_Msk /* Overflow status of the MFC Counter */
  7767. #define ETH_DMACMFCR_MFC_Pos (0U)
  7768. #define ETH_DMACMFCR_MFC_Msk (0x7FFU << ETH_DMACMFCR_MFC_Pos) /*!< 0x000007FF */
  7769. #define ETH_DMACMFCR_MFC ETH_DMACMFCR_MFC_Msk /* The number of packet counters dropped by the DMA */
  7770. /******************************************************************************/
  7771. /* */
  7772. /* DMA Controller */
  7773. /* */
  7774. /******************************************************************************/
  7775. /******************** Bits definition for DMA_SxCR register *****************/
  7776. #define DMA_SxCR_MBURST_Pos (23U)
  7777. #define DMA_SxCR_MBURST_Msk (0x3U << DMA_SxCR_MBURST_Pos) /*!< 0x01800000 */
  7778. #define DMA_SxCR_MBURST DMA_SxCR_MBURST_Msk /*!< Memory burst transfer configuration */
  7779. #define DMA_SxCR_MBURST_0 (0x1U << DMA_SxCR_MBURST_Pos) /*!< 0x00800000 */
  7780. #define DMA_SxCR_MBURST_1 (0x2U << DMA_SxCR_MBURST_Pos) /*!< 0x01000000 */
  7781. #define DMA_SxCR_PBURST_Pos (21U)
  7782. #define DMA_SxCR_PBURST_Msk (0x3U << DMA_SxCR_PBURST_Pos) /*!< 0x00600000 */
  7783. #define DMA_SxCR_PBURST DMA_SxCR_PBURST_Msk /*!< Peripheral burst transfer configuration */
  7784. #define DMA_SxCR_PBURST_0 (0x1U << DMA_SxCR_PBURST_Pos) /*!< 0x00200000 */
  7785. #define DMA_SxCR_PBURST_1 (0x2U << DMA_SxCR_PBURST_Pos) /*!< 0x00400000 */
  7786. #define DMA_SxCR_CT_Pos (19U)
  7787. #define DMA_SxCR_CT_Msk (0x1U << DMA_SxCR_CT_Pos) /*!< 0x00080000 */
  7788. #define DMA_SxCR_CT DMA_SxCR_CT_Msk /*!< Current target (only in double buffer mode) */
  7789. #define DMA_SxCR_DBM_Pos (18U)
  7790. #define DMA_SxCR_DBM_Msk (0x1U << DMA_SxCR_DBM_Pos) /*!< 0x00040000 */
  7791. #define DMA_SxCR_DBM DMA_SxCR_DBM_Msk /*!< Double buffer mode */
  7792. #define DMA_SxCR_PL_Pos (16U)
  7793. #define DMA_SxCR_PL_Msk (0x3U << DMA_SxCR_PL_Pos) /*!< 0x00030000 */
  7794. #define DMA_SxCR_PL DMA_SxCR_PL_Msk /*!< Priority level */
  7795. #define DMA_SxCR_PL_0 (0x1U << DMA_SxCR_PL_Pos) /*!< 0x00010000 */
  7796. #define DMA_SxCR_PL_1 (0x2U << DMA_SxCR_PL_Pos) /*!< 0x00020000 */
  7797. #define DMA_SxCR_PINCOS_Pos (15U)
  7798. #define DMA_SxCR_PINCOS_Msk (0x1U << DMA_SxCR_PINCOS_Pos) /*!< 0x00008000 */
  7799. #define DMA_SxCR_PINCOS DMA_SxCR_PINCOS_Msk /*!< Peripheral increment offset size */
  7800. #define DMA_SxCR_MSIZE_Pos (13U)
  7801. #define DMA_SxCR_MSIZE_Msk (0x3U << DMA_SxCR_MSIZE_Pos) /*!< 0x00006000 */
  7802. #define DMA_SxCR_MSIZE DMA_SxCR_MSIZE_Msk /*!< Memory data size */
  7803. #define DMA_SxCR_MSIZE_0 (0x1U << DMA_SxCR_MSIZE_Pos) /*!< 0x00002000 */
  7804. #define DMA_SxCR_MSIZE_1 (0x2U << DMA_SxCR_MSIZE_Pos) /*!< 0x00004000 */
  7805. #define DMA_SxCR_PSIZE_Pos (11U)
  7806. #define DMA_SxCR_PSIZE_Msk (0x3U << DMA_SxCR_PSIZE_Pos) /*!< 0x00001800 */
  7807. #define DMA_SxCR_PSIZE DMA_SxCR_PSIZE_Msk /*< Peripheral data size */
  7808. #define DMA_SxCR_PSIZE_0 (0x1U << DMA_SxCR_PSIZE_Pos) /*!< 0x00000800 */
  7809. #define DMA_SxCR_PSIZE_1 (0x2U << DMA_SxCR_PSIZE_Pos) /*!< 0x00001000 */
  7810. #define DMA_SxCR_MINC_Pos (10U)
  7811. #define DMA_SxCR_MINC_Msk (0x1U << DMA_SxCR_MINC_Pos) /*!< 0x00000400 */
  7812. #define DMA_SxCR_MINC DMA_SxCR_MINC_Msk /*!< Memory increment mode */
  7813. #define DMA_SxCR_PINC_Pos (9U)
  7814. #define DMA_SxCR_PINC_Msk (0x1U << DMA_SxCR_PINC_Pos) /*!< 0x00000200 */
  7815. #define DMA_SxCR_PINC DMA_SxCR_PINC_Msk /*!< Peripheral increment mode */
  7816. #define DMA_SxCR_CIRC_Pos (8U)
  7817. #define DMA_SxCR_CIRC_Msk (0x1U << DMA_SxCR_CIRC_Pos) /*!< 0x00000100 */
  7818. #define DMA_SxCR_CIRC DMA_SxCR_CIRC_Msk /*!< Circular mode */
  7819. #define DMA_SxCR_DIR_Pos (6U)
  7820. #define DMA_SxCR_DIR_Msk (0x3U << DMA_SxCR_DIR_Pos) /*!< 0x000000C0 */
  7821. #define DMA_SxCR_DIR DMA_SxCR_DIR_Msk /*!< Data transfer direction */
  7822. #define DMA_SxCR_DIR_0 (0x1U << DMA_SxCR_DIR_Pos) /*!< 0x00000040 */
  7823. #define DMA_SxCR_DIR_1 (0x2U << DMA_SxCR_DIR_Pos) /*!< 0x00000080 */
  7824. #define DMA_SxCR_PFCTRL_Pos (5U)
  7825. #define DMA_SxCR_PFCTRL_Msk (0x1U << DMA_SxCR_PFCTRL_Pos) /*!< 0x00000020 */
  7826. #define DMA_SxCR_PFCTRL DMA_SxCR_PFCTRL_Msk /*!< Peripheral flow controller */
  7827. #define DMA_SxCR_TCIE_Pos (4U)
  7828. #define DMA_SxCR_TCIE_Msk (0x1U << DMA_SxCR_TCIE_Pos) /*!< 0x00000010 */
  7829. #define DMA_SxCR_TCIE DMA_SxCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  7830. #define DMA_SxCR_HTIE_Pos (3U)
  7831. #define DMA_SxCR_HTIE_Msk (0x1U << DMA_SxCR_HTIE_Pos) /*!< 0x00000008 */
  7832. #define DMA_SxCR_HTIE DMA_SxCR_HTIE_Msk /*!< Half transfer interrupt enable */
  7833. #define DMA_SxCR_TEIE_Pos (2U)
  7834. #define DMA_SxCR_TEIE_Msk (0x1U << DMA_SxCR_TEIE_Pos) /*!< 0x00000004 */
  7835. #define DMA_SxCR_TEIE DMA_SxCR_TEIE_Msk /*!< Transfer error interrupt enable */
  7836. #define DMA_SxCR_DMEIE_Pos (1U)
  7837. #define DMA_SxCR_DMEIE_Msk (0x1U << DMA_SxCR_DMEIE_Pos) /*!< 0x00000002 */
  7838. #define DMA_SxCR_DMEIE DMA_SxCR_DMEIE_Msk /*!< Direct mode error interrupt enable */
  7839. #define DMA_SxCR_EN_Pos (0U)
  7840. #define DMA_SxCR_EN_Msk (0x1U << DMA_SxCR_EN_Pos) /*!< 0x00000001 */
  7841. #define DMA_SxCR_EN DMA_SxCR_EN_Msk /*!< Stream enable / flag stream ready when read low */
  7842. /******************** Bits definition for DMA_SxCNDTR register **************/
  7843. #define DMA_SxNDT_Pos (0U)
  7844. #define DMA_SxNDT_Msk (0xFFFFU << DMA_SxNDT_Pos) /*!< 0x0000FFFF */
  7845. #define DMA_SxNDT DMA_SxNDT_Msk /*!< Number of data items to transfer */
  7846. #define DMA_SxNDT_0 (0x0001U << DMA_SxNDT_Pos) /*!< 0x00000001 */
  7847. #define DMA_SxNDT_1 (0x0002U << DMA_SxNDT_Pos) /*!< 0x00000002 */
  7848. #define DMA_SxNDT_2 (0x0004U << DMA_SxNDT_Pos) /*!< 0x00000004 */
  7849. #define DMA_SxNDT_3 (0x0008U << DMA_SxNDT_Pos) /*!< 0x00000008 */
  7850. #define DMA_SxNDT_4 (0x0010U << DMA_SxNDT_Pos) /*!< 0x00000010 */
  7851. #define DMA_SxNDT_5 (0x0020U << DMA_SxNDT_Pos) /*!< 0x00000020 */
  7852. #define DMA_SxNDT_6 (0x0040U << DMA_SxNDT_Pos) /*!< 0x00000040 */
  7853. #define DMA_SxNDT_7 (0x0080U << DMA_SxNDT_Pos) /*!< 0x00000080 */
  7854. #define DMA_SxNDT_8 (0x0100U << DMA_SxNDT_Pos) /*!< 0x00000100 */
  7855. #define DMA_SxNDT_9 (0x0200U << DMA_SxNDT_Pos) /*!< 0x00000200 */
  7856. #define DMA_SxNDT_10 (0x0400U << DMA_SxNDT_Pos) /*!< 0x00000400 */
  7857. #define DMA_SxNDT_11 (0x0800U << DMA_SxNDT_Pos) /*!< 0x00000800 */
  7858. #define DMA_SxNDT_12 (0x1000U << DMA_SxNDT_Pos) /*!< 0x00001000 */
  7859. #define DMA_SxNDT_13 (0x2000U << DMA_SxNDT_Pos) /*!< 0x00002000 */
  7860. #define DMA_SxNDT_14 (0x4000U << DMA_SxNDT_Pos) /*!< 0x00004000 */
  7861. #define DMA_SxNDT_15 (0x8000U << DMA_SxNDT_Pos) /*!< 0x00008000 */
  7862. /******************** Bits definition for DMA_SxFCR register ****************/
  7863. #define DMA_SxFCR_FEIE_Pos (7U)
  7864. #define DMA_SxFCR_FEIE_Msk (0x1U << DMA_SxFCR_FEIE_Pos) /*!< 0x00000080 */
  7865. #define DMA_SxFCR_FEIE DMA_SxFCR_FEIE_Msk /*!< FIFO error interrupt enable */
  7866. #define DMA_SxFCR_FS_Pos (3U)
  7867. #define DMA_SxFCR_FS_Msk (0x7U << DMA_SxFCR_FS_Pos) /*!< 0x00000038 */
  7868. #define DMA_SxFCR_FS DMA_SxFCR_FS_Msk /*!< FIFO status */
  7869. #define DMA_SxFCR_FS_0 (0x1U << DMA_SxFCR_FS_Pos) /*!< 0x00000008 */
  7870. #define DMA_SxFCR_FS_1 (0x2U << DMA_SxFCR_FS_Pos) /*!< 0x00000010 */
  7871. #define DMA_SxFCR_FS_2 (0x4U << DMA_SxFCR_FS_Pos) /*!< 0x00000020 */
  7872. #define DMA_SxFCR_DMDIS_Pos (2U)
  7873. #define DMA_SxFCR_DMDIS_Msk (0x1U << DMA_SxFCR_DMDIS_Pos) /*!< 0x00000004 */
  7874. #define DMA_SxFCR_DMDIS DMA_SxFCR_DMDIS_Msk /*!< Direct mode disable */
  7875. #define DMA_SxFCR_FTH_Pos (0U)
  7876. #define DMA_SxFCR_FTH_Msk (0x3U << DMA_SxFCR_FTH_Pos) /*!< 0x00000003 */
  7877. #define DMA_SxFCR_FTH DMA_SxFCR_FTH_Msk /*!< FIFO threshold selection */
  7878. #define DMA_SxFCR_FTH_0 (0x1U << DMA_SxFCR_FTH_Pos) /*!< 0x00000001 */
  7879. #define DMA_SxFCR_FTH_1 (0x2U << DMA_SxFCR_FTH_Pos) /*!< 0x00000002 */
  7880. /******************** Bits definition for DMA_LISR register *****************/
  7881. #define DMA_LISR_TCIF3_Pos (27U)
  7882. #define DMA_LISR_TCIF3_Msk (0x1U << DMA_LISR_TCIF3_Pos) /*!< 0x08000000 */
  7883. #define DMA_LISR_TCIF3 DMA_LISR_TCIF3_Msk /*!< Stream 3 transfer complete interrupt flag */
  7884. #define DMA_LISR_HTIF3_Pos (26U)
  7885. #define DMA_LISR_HTIF3_Msk (0x1U << DMA_LISR_HTIF3_Pos) /*!< 0x04000000 */
  7886. #define DMA_LISR_HTIF3 DMA_LISR_HTIF3_Msk /*!< Stream 3 half transfer interrupt flag */
  7887. #define DMA_LISR_TEIF3_Pos (25U)
  7888. #define DMA_LISR_TEIF3_Msk (0x1U << DMA_LISR_TEIF3_Pos) /*!< 0x02000000 */
  7889. #define DMA_LISR_TEIF3 DMA_LISR_TEIF3_Msk /*!< Stream 3 transfer error interrupt flag */
  7890. #define DMA_LISR_DMEIF3_Pos (24U)
  7891. #define DMA_LISR_DMEIF3_Msk (0x1U << DMA_LISR_DMEIF3_Pos) /*!< 0x01000000 */
  7892. #define DMA_LISR_DMEIF3 DMA_LISR_DMEIF3_Msk /*!< Stream 3 direct mode error interrupt flag */
  7893. #define DMA_LISR_FEIF3_Pos (22U)
  7894. #define DMA_LISR_FEIF3_Msk (0x1U << DMA_LISR_FEIF3_Pos) /*!< 0x00400000 */
  7895. #define DMA_LISR_FEIF3 DMA_LISR_FEIF3_Msk /*!< Stream 3 FIFO error interrupt flag */
  7896. #define DMA_LISR_TCIF2_Pos (21U)
  7897. #define DMA_LISR_TCIF2_Msk (0x1U << DMA_LISR_TCIF2_Pos) /*!< 0x00200000 */
  7898. #define DMA_LISR_TCIF2 DMA_LISR_TCIF2_Msk /*!< Stream 2 transfer complete interrupt flag */
  7899. #define DMA_LISR_HTIF2_Pos (20U)
  7900. #define DMA_LISR_HTIF2_Msk (0x1U << DMA_LISR_HTIF2_Pos) /*!< 0x00100000 */
  7901. #define DMA_LISR_HTIF2 DMA_LISR_HTIF2_Msk /*!< Stream 2 half transfer interrupt flag */
  7902. #define DMA_LISR_TEIF2_Pos (19U)
  7903. #define DMA_LISR_TEIF2_Msk (0x1U << DMA_LISR_TEIF2_Pos) /*!< 0x00080000 */
  7904. #define DMA_LISR_TEIF2 DMA_LISR_TEIF2_Msk /*!< Stream 2 transfer error interrupt flag */
  7905. #define DMA_LISR_DMEIF2_Pos (18U)
  7906. #define DMA_LISR_DMEIF2_Msk (0x1U << DMA_LISR_DMEIF2_Pos) /*!< 0x00040000 */
  7907. #define DMA_LISR_DMEIF2 DMA_LISR_DMEIF2_Msk /*!< Stream 2 direct mode error interrupt flag */
  7908. #define DMA_LISR_FEIF2_Pos (16U)
  7909. #define DMA_LISR_FEIF2_Msk (0x1U << DMA_LISR_FEIF2_Pos) /*!< 0x00010000 */
  7910. #define DMA_LISR_FEIF2 DMA_LISR_FEIF2_Msk /*!< Stream 2 FIFO error interrupt flag */
  7911. #define DMA_LISR_TCIF1_Pos (11U)
  7912. #define DMA_LISR_TCIF1_Msk (0x1U << DMA_LISR_TCIF1_Pos) /*!< 0x00000800 */
  7913. #define DMA_LISR_TCIF1 DMA_LISR_TCIF1_Msk /*!< Stream 1 transfer complete interrupt flag */
  7914. #define DMA_LISR_HTIF1_Pos (10U)
  7915. #define DMA_LISR_HTIF1_Msk (0x1U << DMA_LISR_HTIF1_Pos) /*!< 0x00000400 */
  7916. #define DMA_LISR_HTIF1 DMA_LISR_HTIF1_Msk /*!< Stream 1 half transfer interrupt flag */
  7917. #define DMA_LISR_TEIF1_Pos (9U)
  7918. #define DMA_LISR_TEIF1_Msk (0x1U << DMA_LISR_TEIF1_Pos) /*!< 0x00000200 */
  7919. #define DMA_LISR_TEIF1 DMA_LISR_TEIF1_Msk /*!< Stream 1 transfer error interrupt flag */
  7920. #define DMA_LISR_DMEIF1_Pos (8U)
  7921. #define DMA_LISR_DMEIF1_Msk (0x1U << DMA_LISR_DMEIF1_Pos) /*!< 0x00000100 */
  7922. #define DMA_LISR_DMEIF1 DMA_LISR_DMEIF1_Msk /*!< Stream 1 direct mode error interrupt flag */
  7923. #define DMA_LISR_FEIF1_Pos (6U)
  7924. #define DMA_LISR_FEIF1_Msk (0x1U << DMA_LISR_FEIF1_Pos) /*!< 0x00000040 */
  7925. #define DMA_LISR_FEIF1 DMA_LISR_FEIF1_Msk /*!< Stream 1 FIFO error interrupt flag */
  7926. #define DMA_LISR_TCIF0_Pos (5U)
  7927. #define DMA_LISR_TCIF0_Msk (0x1U << DMA_LISR_TCIF0_Pos) /*!< 0x00000020 */
  7928. #define DMA_LISR_TCIF0 DMA_LISR_TCIF0_Msk /*!< Stream 0 transfer complete interrupt flag */
  7929. #define DMA_LISR_HTIF0_Pos (4U)
  7930. #define DMA_LISR_HTIF0_Msk (0x1U << DMA_LISR_HTIF0_Pos) /*!< 0x00000010 */
  7931. #define DMA_LISR_HTIF0 DMA_LISR_HTIF0_Msk /*!< Stream 0 half transfer interrupt flag */
  7932. #define DMA_LISR_TEIF0_Pos (3U)
  7933. #define DMA_LISR_TEIF0_Msk (0x1U << DMA_LISR_TEIF0_Pos) /*!< 0x00000008 */
  7934. #define DMA_LISR_TEIF0 DMA_LISR_TEIF0_Msk /*!< Stream 0 transfer error interrupt flag */
  7935. #define DMA_LISR_DMEIF0_Pos (2U)
  7936. #define DMA_LISR_DMEIF0_Msk (0x1U << DMA_LISR_DMEIF0_Pos) /*!< 0x00000004 */
  7937. #define DMA_LISR_DMEIF0 DMA_LISR_DMEIF0_Msk /*!< Stream 0 direct mode error interrupt flag */
  7938. #define DMA_LISR_FEIF0_Pos (0U)
  7939. #define DMA_LISR_FEIF0_Msk (0x1U << DMA_LISR_FEIF0_Pos) /*!< 0x00000001 */
  7940. #define DMA_LISR_FEIF0 DMA_LISR_FEIF0_Msk /*!< Stream 0 FIFO error interrupt flag */
  7941. /******************** Bits definition for DMA_HISR register *****************/
  7942. #define DMA_HISR_TCIF7_Pos (27U)
  7943. #define DMA_HISR_TCIF7_Msk (0x1U << DMA_HISR_TCIF7_Pos) /*!< 0x08000000 */
  7944. #define DMA_HISR_TCIF7 DMA_HISR_TCIF7_Msk /*!< Stream 7 transfer complete interrupt flag */
  7945. #define DMA_HISR_HTIF7_Pos (26U)
  7946. #define DMA_HISR_HTIF7_Msk (0x1U << DMA_HISR_HTIF7_Pos) /*!< 0x04000000 */
  7947. #define DMA_HISR_HTIF7 DMA_HISR_HTIF7_Msk /*!< Stream 7 half transfer interrupt flag */
  7948. #define DMA_HISR_TEIF7_Pos (25U)
  7949. #define DMA_HISR_TEIF7_Msk (0x1U << DMA_HISR_TEIF7_Pos) /*!< 0x02000000 */
  7950. #define DMA_HISR_TEIF7 DMA_HISR_TEIF7_Msk /*!< Stream 7 transfer error interrupt flag */
  7951. #define DMA_HISR_DMEIF7_Pos (24U)
  7952. #define DMA_HISR_DMEIF7_Msk (0x1U << DMA_HISR_DMEIF7_Pos) /*!< 0x01000000 */
  7953. #define DMA_HISR_DMEIF7 DMA_HISR_DMEIF7_Msk /*!< Stream 7 direct mode error interrupt flag */
  7954. #define DMA_HISR_FEIF7_Pos (22U)
  7955. #define DMA_HISR_FEIF7_Msk (0x1U << DMA_HISR_FEIF7_Pos) /*!< 0x00400000 */
  7956. #define DMA_HISR_FEIF7 DMA_HISR_FEIF7_Msk /*!< Stream 7 FIFO error interrupt flag */
  7957. #define DMA_HISR_TCIF6_Pos (21U)
  7958. #define DMA_HISR_TCIF6_Msk (0x1U << DMA_HISR_TCIF6_Pos) /*!< 0x00200000 */
  7959. #define DMA_HISR_TCIF6 DMA_HISR_TCIF6_Msk /*!< Stream 6 transfer complete interrupt flag */
  7960. #define DMA_HISR_HTIF6_Pos (20U)
  7961. #define DMA_HISR_HTIF6_Msk (0x1U << DMA_HISR_HTIF6_Pos) /*!< 0x00100000 */
  7962. #define DMA_HISR_HTIF6 DMA_HISR_HTIF6_Msk /*!< Stream 6 half transfer interrupt flag */
  7963. #define DMA_HISR_TEIF6_Pos (19U)
  7964. #define DMA_HISR_TEIF6_Msk (0x1U << DMA_HISR_TEIF6_Pos) /*!< 0x00080000 */
  7965. #define DMA_HISR_TEIF6 DMA_HISR_TEIF6_Msk /*!< Stream 6 transfer error interrupt flag */
  7966. #define DMA_HISR_DMEIF6_Pos (18U)
  7967. #define DMA_HISR_DMEIF6_Msk (0x1U << DMA_HISR_DMEIF6_Pos) /*!< 0x00040000 */
  7968. #define DMA_HISR_DMEIF6 DMA_HISR_DMEIF6_Msk /*!< Stream 6 direct mode error interrupt flag */
  7969. #define DMA_HISR_FEIF6_Pos (16U)
  7970. #define DMA_HISR_FEIF6_Msk (0x1U << DMA_HISR_FEIF6_Pos) /*!< 0x00010000 */
  7971. #define DMA_HISR_FEIF6 DMA_HISR_FEIF6_Msk /*!< Stream 6 FIFO error interrupt flag */
  7972. #define DMA_HISR_TCIF5_Pos (11U)
  7973. #define DMA_HISR_TCIF5_Msk (0x1U << DMA_HISR_TCIF5_Pos) /*!< 0x00000800 */
  7974. #define DMA_HISR_TCIF5 DMA_HISR_TCIF5_Msk /*!< Stream 5 transfer complete interrupt flag */
  7975. #define DMA_HISR_HTIF5_Pos (10U)
  7976. #define DMA_HISR_HTIF5_Msk (0x1U << DMA_HISR_HTIF5_Pos) /*!< 0x00000400 */
  7977. #define DMA_HISR_HTIF5 DMA_HISR_HTIF5_Msk /*!< Stream 5 half transfer interrupt flag */
  7978. #define DMA_HISR_TEIF5_Pos (9U)
  7979. #define DMA_HISR_TEIF5_Msk (0x1U << DMA_HISR_TEIF5_Pos) /*!< 0x00000200 */
  7980. #define DMA_HISR_TEIF5 DMA_HISR_TEIF5_Msk /*!< Stream 5 transfer error interrupt flag */
  7981. #define DMA_HISR_DMEIF5_Pos (8U)
  7982. #define DMA_HISR_DMEIF5_Msk (0x1U << DMA_HISR_DMEIF5_Pos) /*!< 0x00000100 */
  7983. #define DMA_HISR_DMEIF5 DMA_HISR_DMEIF5_Msk /*!< Stream 5 direct mode error interrupt flag */
  7984. #define DMA_HISR_FEIF5_Pos (6U)
  7985. #define DMA_HISR_FEIF5_Msk (0x1U << DMA_HISR_FEIF5_Pos) /*!< 0x00000040 */
  7986. #define DMA_HISR_FEIF5 DMA_HISR_FEIF5_Msk /*!< Stream 5 FIFO error interrupt flag */
  7987. #define DMA_HISR_TCIF4_Pos (5U)
  7988. #define DMA_HISR_TCIF4_Msk (0x1U << DMA_HISR_TCIF4_Pos) /*!< 0x00000020 */
  7989. #define DMA_HISR_TCIF4 DMA_HISR_TCIF4_Msk /*!< Stream 4 transfer complete interrupt flag */
  7990. #define DMA_HISR_HTIF4_Pos (4U)
  7991. #define DMA_HISR_HTIF4_Msk (0x1U << DMA_HISR_HTIF4_Pos) /*!< 0x00000010 */
  7992. #define DMA_HISR_HTIF4 DMA_HISR_HTIF4_Msk /*!< Stream 4 half transfer interrupt flag */
  7993. #define DMA_HISR_TEIF4_Pos (3U)
  7994. #define DMA_HISR_TEIF4_Msk (0x1U << DMA_HISR_TEIF4_Pos) /*!< 0x00000008 */
  7995. #define DMA_HISR_TEIF4 DMA_HISR_TEIF4_Msk /*!< Stream 4 transfer error interrupt flag */
  7996. #define DMA_HISR_DMEIF4_Pos (2U)
  7997. #define DMA_HISR_DMEIF4_Msk (0x1U << DMA_HISR_DMEIF4_Pos) /*!< 0x00000004 */
  7998. #define DMA_HISR_DMEIF4 DMA_HISR_DMEIF4_Msk /*!< Stream 4 direct mode error interrupt flag */
  7999. #define DMA_HISR_FEIF4_Pos (0U)
  8000. #define DMA_HISR_FEIF4_Msk (0x1U << DMA_HISR_FEIF4_Pos) /*!< 0x00000001 */
  8001. #define DMA_HISR_FEIF4 DMA_HISR_FEIF4_Msk /*!< Stream 4 FIFO error interrupt flag */
  8002. /******************** Bits definition for DMA_LIFCR register ****************/
  8003. #define DMA_LIFCR_CTCIF3_Pos (27U)
  8004. #define DMA_LIFCR_CTCIF3_Msk (0x1U << DMA_LIFCR_CTCIF3_Pos) /*!< 0x08000000 */
  8005. #define DMA_LIFCR_CTCIF3 DMA_LIFCR_CTCIF3_Msk /*!< Stream 3 clear transfer complete interrupt flag */
  8006. #define DMA_LIFCR_CHTIF3_Pos (26U)
  8007. #define DMA_LIFCR_CHTIF3_Msk (0x1U << DMA_LIFCR_CHTIF3_Pos) /*!< 0x04000000 */
  8008. #define DMA_LIFCR_CHTIF3 DMA_LIFCR_CHTIF3_Msk /*!< Stream 3 clear half transfer interrupt flag */
  8009. #define DMA_LIFCR_CTEIF3_Pos (25U)
  8010. #define DMA_LIFCR_CTEIF3_Msk (0x1U << DMA_LIFCR_CTEIF3_Pos) /*!< 0x02000000 */
  8011. #define DMA_LIFCR_CTEIF3 DMA_LIFCR_CTEIF3_Msk /*!< Stream 3 clear transfer error interrupt flag */
  8012. #define DMA_LIFCR_CDMEIF3_Pos (24U)
  8013. #define DMA_LIFCR_CDMEIF3_Msk (0x1U << DMA_LIFCR_CDMEIF3_Pos) /*!< 0x01000000 */
  8014. #define DMA_LIFCR_CDMEIF3 DMA_LIFCR_CDMEIF3_Msk /*!< Stream 3 clear direct mode error interrupt flag */
  8015. #define DMA_LIFCR_CFEIF3_Pos (22U)
  8016. #define DMA_LIFCR_CFEIF3_Msk (0x1U << DMA_LIFCR_CFEIF3_Pos) /*!< 0x00400000 */
  8017. #define DMA_LIFCR_CFEIF3 DMA_LIFCR_CFEIF3_Msk /*!< Stream 3 clear FIFO error interrupt flag */
  8018. #define DMA_LIFCR_CTCIF2_Pos (21U)
  8019. #define DMA_LIFCR_CTCIF2_Msk (0x1U << DMA_LIFCR_CTCIF2_Pos) /*!< 0x00200000 */
  8020. #define DMA_LIFCR_CTCIF2 DMA_LIFCR_CTCIF2_Msk /*!< Stream 2 clear transfer complete interrupt flag */
  8021. #define DMA_LIFCR_CHTIF2_Pos (20U)
  8022. #define DMA_LIFCR_CHTIF2_Msk (0x1U << DMA_LIFCR_CHTIF2_Pos) /*!< 0x00100000 */
  8023. #define DMA_LIFCR_CHTIF2 DMA_LIFCR_CHTIF2_Msk /*!< Stream 2 clear half transfer interrupt flag */
  8024. #define DMA_LIFCR_CTEIF2_Pos (19U)
  8025. #define DMA_LIFCR_CTEIF2_Msk (0x1U << DMA_LIFCR_CTEIF2_Pos) /*!< 0x00080000 */
  8026. #define DMA_LIFCR_CTEIF2 DMA_LIFCR_CTEIF2_Msk /*!< Stream 2 clear transfer error interrupt flag */
  8027. #define DMA_LIFCR_CDMEIF2_Pos (18U)
  8028. #define DMA_LIFCR_CDMEIF2_Msk (0x1U << DMA_LIFCR_CDMEIF2_Pos) /*!< 0x00040000 */
  8029. #define DMA_LIFCR_CDMEIF2 DMA_LIFCR_CDMEIF2_Msk /*!< Stream 2 clear direct mode error interrupt flag */
  8030. #define DMA_LIFCR_CFEIF2_Pos (16U)
  8031. #define DMA_LIFCR_CFEIF2_Msk (0x1U << DMA_LIFCR_CFEIF2_Pos) /*!< 0x00010000 */
  8032. #define DMA_LIFCR_CFEIF2 DMA_LIFCR_CFEIF2_Msk /*!< Stream 2 clear FIFO error interrupt flag */
  8033. #define DMA_LIFCR_CTCIF1_Pos (11U)
  8034. #define DMA_LIFCR_CTCIF1_Msk (0x1U << DMA_LIFCR_CTCIF1_Pos) /*!< 0x00000800 */
  8035. #define DMA_LIFCR_CTCIF1 DMA_LIFCR_CTCIF1_Msk /*!< Stream 1 clear transfer complete interrupt flag */
  8036. #define DMA_LIFCR_CHTIF1_Pos (10U)
  8037. #define DMA_LIFCR_CHTIF1_Msk (0x1U << DMA_LIFCR_CHTIF1_Pos) /*!< 0x00000400 */
  8038. #define DMA_LIFCR_CHTIF1 DMA_LIFCR_CHTIF1_Msk /*!< Stream 1 clear half transfer interrupt flag */
  8039. #define DMA_LIFCR_CTEIF1_Pos (9U)
  8040. #define DMA_LIFCR_CTEIF1_Msk (0x1U << DMA_LIFCR_CTEIF1_Pos) /*!< 0x00000200 */
  8041. #define DMA_LIFCR_CTEIF1 DMA_LIFCR_CTEIF1_Msk /*!< Stream 1 clear transfer error interrupt flag */
  8042. #define DMA_LIFCR_CDMEIF1_Pos (8U)
  8043. #define DMA_LIFCR_CDMEIF1_Msk (0x1U << DMA_LIFCR_CDMEIF1_Pos) /*!< 0x00000100 */
  8044. #define DMA_LIFCR_CDMEIF1 DMA_LIFCR_CDMEIF1_Msk /*!< Stream 1 clear direct mode error interrupt flag */
  8045. #define DMA_LIFCR_CFEIF1_Pos (6U)
  8046. #define DMA_LIFCR_CFEIF1_Msk (0x1U << DMA_LIFCR_CFEIF1_Pos) /*!< 0x00000040 */
  8047. #define DMA_LIFCR_CFEIF1 DMA_LIFCR_CFEIF1_Msk /*!< Stream 1 clear FIFO error interrupt flag */
  8048. #define DMA_LIFCR_CTCIF0_Pos (5U)
  8049. #define DMA_LIFCR_CTCIF0_Msk (0x1U << DMA_LIFCR_CTCIF0_Pos) /*!< 0x00000020 */
  8050. #define DMA_LIFCR_CTCIF0 DMA_LIFCR_CTCIF0_Msk /*!< Stream 0 clear transfer complete interrupt flag */
  8051. #define DMA_LIFCR_CHTIF0_Pos (4U)
  8052. #define DMA_LIFCR_CHTIF0_Msk (0x1U << DMA_LIFCR_CHTIF0_Pos) /*!< 0x00000010 */
  8053. #define DMA_LIFCR_CHTIF0 DMA_LIFCR_CHTIF0_Msk /*!< Stream 0 clear half transfer interrupt flag */
  8054. #define DMA_LIFCR_CTEIF0_Pos (3U)
  8055. #define DMA_LIFCR_CTEIF0_Msk (0x1U << DMA_LIFCR_CTEIF0_Pos) /*!< 0x00000008 */
  8056. #define DMA_LIFCR_CTEIF0 DMA_LIFCR_CTEIF0_Msk /*!< Stream 0 clear transfer error interrupt flag */
  8057. #define DMA_LIFCR_CDMEIF0_Pos (2U)
  8058. #define DMA_LIFCR_CDMEIF0_Msk (0x1U << DMA_LIFCR_CDMEIF0_Pos) /*!< 0x00000004 */
  8059. #define DMA_LIFCR_CDMEIF0 DMA_LIFCR_CDMEIF0_Msk /*!< Stream 0 clear direct mode error interrupt flag */
  8060. #define DMA_LIFCR_CFEIF0_Pos (0U)
  8061. #define DMA_LIFCR_CFEIF0_Msk (0x1U << DMA_LIFCR_CFEIF0_Pos) /*!< 0x00000001 */
  8062. #define DMA_LIFCR_CFEIF0 DMA_LIFCR_CFEIF0_Msk /*!< Stream 0 clear FIFO error interrupt flag */
  8063. /******************** Bits definition for DMA_HIFCR register ****************/
  8064. #define DMA_HIFCR_CTCIF7_Pos (27U)
  8065. #define DMA_HIFCR_CTCIF7_Msk (0x1U << DMA_HIFCR_CTCIF7_Pos) /*!< 0x08000000 */
  8066. #define DMA_HIFCR_CTCIF7 DMA_HIFCR_CTCIF7_Msk /*!< Stream 7 clear transfer complete interrupt flag */
  8067. #define DMA_HIFCR_CHTIF7_Pos (26U)
  8068. #define DMA_HIFCR_CHTIF7_Msk (0x1U << DMA_HIFCR_CHTIF7_Pos) /*!< 0x04000000 */
  8069. #define DMA_HIFCR_CHTIF7 DMA_HIFCR_CHTIF7_Msk /*!< Stream 7 clear half transfer interrupt flag */
  8070. #define DMA_HIFCR_CTEIF7_Pos (25U)
  8071. #define DMA_HIFCR_CTEIF7_Msk (0x1U << DMA_HIFCR_CTEIF7_Pos) /*!< 0x02000000 */
  8072. #define DMA_HIFCR_CTEIF7 DMA_HIFCR_CTEIF7_Msk /*!< Stream 7 clear transfer error interrupt flag */
  8073. #define DMA_HIFCR_CDMEIF7_Pos (24U)
  8074. #define DMA_HIFCR_CDMEIF7_Msk (0x1U << DMA_HIFCR_CDMEIF7_Pos) /*!< 0x01000000 */
  8075. #define DMA_HIFCR_CDMEIF7 DMA_HIFCR_CDMEIF7_Msk /*!< Stream 7 clear direct mode error interrupt flag */
  8076. #define DMA_HIFCR_CFEIF7_Pos (22U)
  8077. #define DMA_HIFCR_CFEIF7_Msk (0x1U << DMA_HIFCR_CFEIF7_Pos) /*!< 0x00400000 */
  8078. #define DMA_HIFCR_CFEIF7 DMA_HIFCR_CFEIF7_Msk /*!< Stream 7 clear FIFO error interrupt flag */
  8079. #define DMA_HIFCR_CTCIF6_Pos (21U)
  8080. #define DMA_HIFCR_CTCIF6_Msk (0x1U << DMA_HIFCR_CTCIF6_Pos) /*!< 0x00200000 */
  8081. #define DMA_HIFCR_CTCIF6 DMA_HIFCR_CTCIF6_Msk /*!< Stream 6 clear transfer complete interrupt flag */
  8082. #define DMA_HIFCR_CHTIF6_Pos (20U)
  8083. #define DMA_HIFCR_CHTIF6_Msk (0x1U << DMA_HIFCR_CHTIF6_Pos) /*!< 0x00100000 */
  8084. #define DMA_HIFCR_CHTIF6 DMA_HIFCR_CHTIF6_Msk /*!< Stream 6 clear half transfer interrupt flag */
  8085. #define DMA_HIFCR_CTEIF6_Pos (19U)
  8086. #define DMA_HIFCR_CTEIF6_Msk (0x1U << DMA_HIFCR_CTEIF6_Pos) /*!< 0x00080000 */
  8087. #define DMA_HIFCR_CTEIF6 DMA_HIFCR_CTEIF6_Msk /*!< Stream 6 clear transfer error interrupt flag */
  8088. #define DMA_HIFCR_CDMEIF6_Pos (18U)
  8089. #define DMA_HIFCR_CDMEIF6_Msk (0x1U << DMA_HIFCR_CDMEIF6_Pos) /*!< 0x00040000 */
  8090. #define DMA_HIFCR_CDMEIF6 DMA_HIFCR_CDMEIF6_Msk /*!< Stream 6 clear direct mode error interrupt flag */
  8091. #define DMA_HIFCR_CFEIF6_Pos (16U)
  8092. #define DMA_HIFCR_CFEIF6_Msk (0x1U << DMA_HIFCR_CFEIF6_Pos) /*!< 0x00010000 */
  8093. #define DMA_HIFCR_CFEIF6 DMA_HIFCR_CFEIF6_Msk /*!< Stream 6 clear FIFO error interrupt flag */
  8094. #define DMA_HIFCR_CTCIF5_Pos (11U)
  8095. #define DMA_HIFCR_CTCIF5_Msk (0x1U << DMA_HIFCR_CTCIF5_Pos) /*!< 0x00000800 */
  8096. #define DMA_HIFCR_CTCIF5 DMA_HIFCR_CTCIF5_Msk /*!< Stream 5 clear transfer complete interrupt flag */
  8097. #define DMA_HIFCR_CHTIF5_Pos (10U)
  8098. #define DMA_HIFCR_CHTIF5_Msk (0x1U << DMA_HIFCR_CHTIF5_Pos) /*!< 0x00000400 */
  8099. #define DMA_HIFCR_CHTIF5 DMA_HIFCR_CHTIF5_Msk /*!< Stream 5 clear half transfer interrupt flag */
  8100. #define DMA_HIFCR_CTEIF5_Pos (9U)
  8101. #define DMA_HIFCR_CTEIF5_Msk (0x1U << DMA_HIFCR_CTEIF5_Pos) /*!< 0x00000200 */
  8102. #define DMA_HIFCR_CTEIF5 DMA_HIFCR_CTEIF5_Msk /*!< Stream 5 clear transfer error interrupt flag */
  8103. #define DMA_HIFCR_CDMEIF5_Pos (8U)
  8104. #define DMA_HIFCR_CDMEIF5_Msk (0x1U << DMA_HIFCR_CDMEIF5_Pos) /*!< 0x00000100 */
  8105. #define DMA_HIFCR_CDMEIF5 DMA_HIFCR_CDMEIF5_Msk /*!< Stream 5 clear direct mode error interrupt flag */
  8106. #define DMA_HIFCR_CFEIF5_Pos (6U)
  8107. #define DMA_HIFCR_CFEIF5_Msk (0x1U << DMA_HIFCR_CFEIF5_Pos) /*!< 0x00000040 */
  8108. #define DMA_HIFCR_CFEIF5 DMA_HIFCR_CFEIF5_Msk /*!< Stream 5 clear FIFO error interrupt flag */
  8109. #define DMA_HIFCR_CTCIF4_Pos (5U)
  8110. #define DMA_HIFCR_CTCIF4_Msk (0x1U << DMA_HIFCR_CTCIF4_Pos) /*!< 0x00000020 */
  8111. #define DMA_HIFCR_CTCIF4 DMA_HIFCR_CTCIF4_Msk /*!< Stream 4 clear transfer complete interrupt flag */
  8112. #define DMA_HIFCR_CHTIF4_Pos (4U)
  8113. #define DMA_HIFCR_CHTIF4_Msk (0x1U << DMA_HIFCR_CHTIF4_Pos) /*!< 0x00000010 */
  8114. #define DMA_HIFCR_CHTIF4 DMA_HIFCR_CHTIF4_Msk /*!< Stream 4 clear half transfer interrupt flag */
  8115. #define DMA_HIFCR_CTEIF4_Pos (3U)
  8116. #define DMA_HIFCR_CTEIF4_Msk (0x1U << DMA_HIFCR_CTEIF4_Pos) /*!< 0x00000008 */
  8117. #define DMA_HIFCR_CTEIF4 DMA_HIFCR_CTEIF4_Msk /*!< Stream 4 clear transfer error interrupt flag */
  8118. #define DMA_HIFCR_CDMEIF4_Pos (2U)
  8119. #define DMA_HIFCR_CDMEIF4_Msk (0x1U << DMA_HIFCR_CDMEIF4_Pos) /*!< 0x00000004 */
  8120. #define DMA_HIFCR_CDMEIF4 DMA_HIFCR_CDMEIF4_Msk /*!< Stream 4 clear direct mode error interrupt flag */
  8121. #define DMA_HIFCR_CFEIF4_Pos (0U)
  8122. #define DMA_HIFCR_CFEIF4_Msk (0x1U << DMA_HIFCR_CFEIF4_Pos) /*!< 0x00000001 */
  8123. #define DMA_HIFCR_CFEIF4 DMA_HIFCR_CFEIF4_Msk /*!< Stream 4 clear FIFO error interrupt flag */
  8124. /****************** Bit definition for DMA_SxPAR register ********************/
  8125. #define DMA_SxPAR_PA_Pos (0U)
  8126. #define DMA_SxPAR_PA_Msk (0xFFFFFFFFU << DMA_SxPAR_PA_Pos) /*!< 0xFFFFFFFF */
  8127. #define DMA_SxPAR_PA DMA_SxPAR_PA_Msk /*!< Peripheral Address */
  8128. /****************** Bit definition for DMA_SxM0AR register ********************/
  8129. #define DMA_SxM0AR_M0A_Pos (0U)
  8130. #define DMA_SxM0AR_M0A_Msk (0xFFFFFFFFU << DMA_SxM0AR_M0A_Pos) /*!< 0xFFFFFFFF */
  8131. #define DMA_SxM0AR_M0A DMA_SxM0AR_M0A_Msk /*!< Memory 0 Address */
  8132. /****************** Bit definition for DMA_SxM1AR register ********************/
  8133. #define DMA_SxM1AR_M1A_Pos (0U)
  8134. #define DMA_SxM1AR_M1A_Msk (0xFFFFFFFFU << DMA_SxM1AR_M1A_Pos) /*!< 0xFFFFFFFF */
  8135. #define DMA_SxM1AR_M1A DMA_SxM1AR_M1A_Msk /*!< Memory 1 Address */
  8136. /******************************************************************************/
  8137. /* */
  8138. /* DMAMUX Controller */
  8139. /* */
  8140. /******************************************************************************/
  8141. /******************** Bits definition for DMAMUX_CxCR register **************/
  8142. #define DMAMUX_CxCR_DMAREQ_ID_Pos (0U)
  8143. #define DMAMUX_CxCR_DMAREQ_ID_Msk (0xFFU << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x000000FF */
  8144. #define DMAMUX_CxCR_DMAREQ_ID DMAMUX_CxCR_DMAREQ_ID_Msk /*!< DMA request identification */
  8145. #define DMAMUX_CxCR_DMAREQ_ID_0 (0x01U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000001 */
  8146. #define DMAMUX_CxCR_DMAREQ_ID_1 (0x02U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000002 */
  8147. #define DMAMUX_CxCR_DMAREQ_ID_2 (0x04U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000004 */
  8148. #define DMAMUX_CxCR_DMAREQ_ID_3 (0x08U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000008 */
  8149. #define DMAMUX_CxCR_DMAREQ_ID_4 (0x10U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000010 */
  8150. #define DMAMUX_CxCR_DMAREQ_ID_5 (0x20U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000020 */
  8151. #define DMAMUX_CxCR_DMAREQ_ID_6 (0x40U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000040 */
  8152. #define DMAMUX_CxCR_DMAREQ_ID_7 (0x80U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000080 */
  8153. #define DMAMUX_CxCR_SOIE_Pos (8U)
  8154. #define DMAMUX_CxCR_SOIE_Msk (0x1U << DMAMUX_CxCR_SOIE_Pos) /*!< 0x00000100 */
  8155. #define DMAMUX_CxCR_SOIE DMAMUX_CxCR_SOIE_Msk /*!< Synchronization overrun interrupt enable */
  8156. #define DMAMUX_CxCR_EGE_Pos (9U)
  8157. #define DMAMUX_CxCR_EGE_Msk (0x1U << DMAMUX_CxCR_EGE_Pos) /*!< 0x00000200 */
  8158. #define DMAMUX_CxCR_EGE DMAMUX_CxCR_EGE_Msk /*!< Event generation enable */
  8159. #define DMAMUX_CxCR_SE_Pos (16U)
  8160. #define DMAMUX_CxCR_SE_Msk (0x1U << DMAMUX_CxCR_SE_Pos) /*!< 0x00010000 */
  8161. #define DMAMUX_CxCR_SE DMAMUX_CxCR_SE_Msk /*!< Synchronization enable */
  8162. #define DMAMUX_CxCR_SPOL_Pos (17U)
  8163. #define DMAMUX_CxCR_SPOL_Msk (0x3U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00060000 */
  8164. #define DMAMUX_CxCR_SPOL DMAMUX_CxCR_SPOL_Msk /*!< Synchronization polarity */
  8165. #define DMAMUX_CxCR_SPOL_0 (0x1U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00020000 */
  8166. #define DMAMUX_CxCR_SPOL_1 (0x2U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00040000 */
  8167. #define DMAMUX_CxCR_NBREQ_Pos (19U)
  8168. #define DMAMUX_CxCR_NBREQ_Msk (0x1FU << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00F80000 */
  8169. #define DMAMUX_CxCR_NBREQ DMAMUX_CxCR_NBREQ_Msk /*!< Number of DMA requests minus 1 to forward */
  8170. #define DMAMUX_CxCR_NBREQ_0 (0x01U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00080000 */
  8171. #define DMAMUX_CxCR_NBREQ_1 (0x02U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00100000 */
  8172. #define DMAMUX_CxCR_NBREQ_2 (0x04U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00200000 */
  8173. #define DMAMUX_CxCR_NBREQ_3 (0x08U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00400000 */
  8174. #define DMAMUX_CxCR_NBREQ_4 (0x10U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00800000 */
  8175. #define DMAMUX_CxCR_SYNC_ID_Pos (24U)
  8176. #define DMAMUX_CxCR_SYNC_ID_Msk (0x1FU << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x1F000000 */
  8177. #define DMAMUX_CxCR_SYNC_ID DMAMUX_CxCR_SYNC_ID_Msk /*!< Synchronization identification */
  8178. #define DMAMUX_CxCR_SYNC_ID_0 (0x01U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x01000000 */
  8179. #define DMAMUX_CxCR_SYNC_ID_1 (0x02U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x02000000 */
  8180. #define DMAMUX_CxCR_SYNC_ID_2 (0x04U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x04000000 */
  8181. #define DMAMUX_CxCR_SYNC_ID_3 (0x08U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x08000000 */
  8182. #define DMAMUX_CxCR_SYNC_ID_4 (0x10U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x10000000 */
  8183. /******************** Bits definition for DMAMUX_CSR register **************/
  8184. #define DMAMUX_CSR_SOF0_Pos (0U)
  8185. #define DMAMUX_CSR_SOF0_Msk (0x1U << DMAMUX_CSR_SOF0_Pos) /*!< 0x00000001 */
  8186. #define DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0_Msk /*!< Channel 0 Synchronization overrun event flag */
  8187. #define DMAMUX_CSR_SOF1_Pos (1U)
  8188. #define DMAMUX_CSR_SOF1_Msk (0x1U << DMAMUX_CSR_SOF1_Pos) /*!< 0x00000002 */
  8189. #define DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1_Msk /*!< Channel 1 Synchronization overrun event flag */
  8190. #define DMAMUX_CSR_SOF2_Pos (2U)
  8191. #define DMAMUX_CSR_SOF2_Msk (0x1U << DMAMUX_CSR_SOF2_Pos) /*!< 0x00000004 */
  8192. #define DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2_Msk /*!< Channel 2 Synchronization overrun event flag */
  8193. #define DMAMUX_CSR_SOF3_Pos (3U)
  8194. #define DMAMUX_CSR_SOF3_Msk (0x1U << DMAMUX_CSR_SOF3_Pos) /*!< 0x00000008 */
  8195. #define DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3_Msk /*!< Channel 3 Synchronization overrun event flag */
  8196. #define DMAMUX_CSR_SOF4_Pos (4U)
  8197. #define DMAMUX_CSR_SOF4_Msk (0x1U << DMAMUX_CSR_SOF4_Pos) /*!< 0x00000010 */
  8198. #define DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4_Msk /*!< Channel 4 Synchronization overrun event flag */
  8199. #define DMAMUX_CSR_SOF5_Pos (5U)
  8200. #define DMAMUX_CSR_SOF5_Msk (0x1U << DMAMUX_CSR_SOF5_Pos) /*!< 0x00000020 */
  8201. #define DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5_Msk /*!< Channel 5 Synchronization overrun event flag */
  8202. #define DMAMUX_CSR_SOF6_Pos (6U)
  8203. #define DMAMUX_CSR_SOF6_Msk (0x1U << DMAMUX_CSR_SOF6_Pos) /*!< 0x00000040 */
  8204. #define DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6_Msk /*!< Channel 6 Synchronization overrun event flag */
  8205. #define DMAMUX_CSR_SOF7_Pos (7U)
  8206. #define DMAMUX_CSR_SOF7_Msk (0x1U << DMAMUX_CSR_SOF7_Pos) /*!< 0x00000080 */
  8207. #define DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7_Msk /*!< Channel 7 Synchronization overrun event flag */
  8208. #define DMAMUX_CSR_SOF8_Pos (8U)
  8209. #define DMAMUX_CSR_SOF8_Msk (0x1U << DMAMUX_CSR_SOF8_Pos) /*!< 0x00000100 */
  8210. #define DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8_Msk /*!< Channel 8 Synchronization overrun event flag */
  8211. #define DMAMUX_CSR_SOF9_Pos (9U)
  8212. #define DMAMUX_CSR_SOF9_Msk (0x1U << DMAMUX_CSR_SOF9_Pos) /*!< 0x00000200 */
  8213. #define DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9_Msk /*!< Channel 9 Synchronization overrun event flag */
  8214. #define DMAMUX_CSR_SOF10_Pos (10U)
  8215. #define DMAMUX_CSR_SOF10_Msk (0x1U << DMAMUX_CSR_SOF10_Pos) /*!< 0x00000400 */
  8216. #define DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10_Msk /*!< Channel 10 Synchronization overrun event flag */
  8217. #define DMAMUX_CSR_SOF11_Pos (11U)
  8218. #define DMAMUX_CSR_SOF11_Msk (0x1U << DMAMUX_CSR_SOF11_Pos) /*!< 0x00000800 */
  8219. #define DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11_Msk /*!< Channel 11 Synchronization overrun event flag */
  8220. #define DMAMUX_CSR_SOF12_Pos (12U)
  8221. #define DMAMUX_CSR_SOF12_Msk (0x1U << DMAMUX_CSR_SOF12_Pos) /*!< 0x00001000 */
  8222. #define DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12_Msk /*!< Channel 12 Synchronization overrun event flag */
  8223. #define DMAMUX_CSR_SOF13_Pos (13U)
  8224. #define DMAMUX_CSR_SOF13_Msk (0x1U << DMAMUX_CSR_SOF13_Pos) /*!< 0x00002000 */
  8225. #define DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13_Msk /*!< Channel 13 Synchronization overrun event flag */
  8226. #define DMAMUX_CSR_SOF14_Pos (14U)
  8227. #define DMAMUX_CSR_SOF14_Msk (0x1U << DMAMUX_CSR_SOF14_Pos) /*!< 0x00004000 */
  8228. #define DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14_Msk /*!< Channel 14 Synchronization overrun event flag */
  8229. #define DMAMUX_CSR_SOF15_Pos (15U)
  8230. #define DMAMUX_CSR_SOF15_Msk (0x1U << DMAMUX_CSR_SOF15_Pos) /*!< 0x00008000 */
  8231. #define DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15_Msk /*!< Channel 15 Synchronization overrun event flag */
  8232. /******************** Bits definition for DMAMUX_CFR register **************/
  8233. #define DMAMUX_CFR_CSOF0_Pos (0U)
  8234. #define DMAMUX_CFR_CSOF0_Msk (0x1U << DMAMUX_CFR_CSOF0_Pos) /*!< 0x00000001 */
  8235. #define DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0_Msk /*!< Channel 0 Clear synchronization overrun event flag */
  8236. #define DMAMUX_CFR_CSOF1_Pos (1U)
  8237. #define DMAMUX_CFR_CSOF1_Msk (0x1U << DMAMUX_CFR_CSOF1_Pos) /*!< 0x00000002 */
  8238. #define DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1_Msk /*!< Channel 1 Clear synchronization overrun event flag */
  8239. #define DMAMUX_CFR_CSOF2_Pos (2U)
  8240. #define DMAMUX_CFR_CSOF2_Msk (0x1U << DMAMUX_CFR_CSOF2_Pos) /*!< 0x00000004 */
  8241. #define DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2_Msk /*!< Channel 2 Clear synchronization overrun event flag */
  8242. #define DMAMUX_CFR_CSOF3_Pos (3U)
  8243. #define DMAMUX_CFR_CSOF3_Msk (0x1U << DMAMUX_CFR_CSOF3_Pos) /*!< 0x00000008 */
  8244. #define DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3_Msk /*!< Channel 3 Clear synchronization overrun event flag */
  8245. #define DMAMUX_CFR_CSOF4_Pos (4U)
  8246. #define DMAMUX_CFR_CSOF4_Msk (0x1U << DMAMUX_CFR_CSOF4_Pos) /*!< 0x00000010 */
  8247. #define DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4_Msk /*!< Channel 4 Clear synchronization overrun event flag */
  8248. #define DMAMUX_CFR_CSOF5_Pos (5U)
  8249. #define DMAMUX_CFR_CSOF5_Msk (0x1U << DMAMUX_CFR_CSOF5_Pos) /*!< 0x00000020 */
  8250. #define DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5_Msk /*!< Channel 5 Clear synchronization overrun event flag */
  8251. #define DMAMUX_CFR_CSOF6_Pos (6U)
  8252. #define DMAMUX_CFR_CSOF6_Msk (0x1U << DMAMUX_CFR_CSOF6_Pos) /*!< 0x00000040 */
  8253. #define DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6_Msk /*!< Channel 6 Clear synchronization overrun event flag */
  8254. #define DMAMUX_CFR_CSOF7_Pos (7U)
  8255. #define DMAMUX_CFR_CSOF7_Msk (0x1U << DMAMUX_CFR_CSOF7_Pos) /*!< 0x00000080 */
  8256. #define DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7_Msk /*!< Channel 7 Clear synchronization overrun event flag */
  8257. #define DMAMUX_CFR_CSOF8_Pos (8U)
  8258. #define DMAMUX_CFR_CSOF8_Msk (0x1U << DMAMUX_CFR_CSOF8_Pos) /*!< 0x00000100 */
  8259. #define DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8_Msk /*!< Channel 8 Clear synchronization overrun event flag */
  8260. #define DMAMUX_CFR_CSOF9_Pos (9U)
  8261. #define DMAMUX_CFR_CSOF9_Msk (0x1U << DMAMUX_CFR_CSOF9_Pos) /*!< 0x00000200 */
  8262. #define DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9_Msk /*!< Channel 9 Clear synchronization overrun event flag */
  8263. #define DMAMUX_CFR_CSOF10_Pos (10U)
  8264. #define DMAMUX_CFR_CSOF10_Msk (0x1U << DMAMUX_CFR_CSOF10_Pos) /*!< 0x00000400 */
  8265. #define DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10_Msk /*!< Channel 10 Clear synchronization overrun event flag */
  8266. #define DMAMUX_CFR_CSOF11_Pos (11U)
  8267. #define DMAMUX_CFR_CSOF11_Msk (0x1U << DMAMUX_CFR_CSOF11_Pos) /*!< 0x00000800 */
  8268. #define DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11_Msk /*!< Channel 11 Clear synchronization overrun event flag */
  8269. #define DMAMUX_CFR_CSOF12_Pos (12U)
  8270. #define DMAMUX_CFR_CSOF12_Msk (0x1U << DMAMUX_CFR_CSOF12_Pos) /*!< 0x00001000 */
  8271. #define DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12_Msk /*!< Channel 12 Clear synchronization overrun event flag */
  8272. #define DMAMUX_CFR_CSOF13_Pos (13U)
  8273. #define DMAMUX_CFR_CSOF13_Msk (0x1U << DMAMUX_CFR_CSOF13_Pos) /*!< 0x00002000 */
  8274. #define DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13_Msk /*!< Channel 13 Clear synchronization overrun event flag */
  8275. #define DMAMUX_CFR_CSOF14_Pos (14U)
  8276. #define DMAMUX_CFR_CSOF14_Msk (0x1U << DMAMUX_CFR_CSOF14_Pos) /*!< 0x00004000 */
  8277. #define DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14_Msk /*!< Channel 14 Clear synchronization overrun event flag */
  8278. #define DMAMUX_CFR_CSOF15_Pos (15U)
  8279. #define DMAMUX_CFR_CSOF15_Msk (0x1U << DMAMUX_CFR_CSOF15_Pos) /*!< 0x00008000 */
  8280. #define DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15_Msk /*!< Channel 15 Clear synchronization overrun event flag */
  8281. /******************** Bits definition for DMAMUX_RGxCR register ************/
  8282. #define DMAMUX_RGxCR_SIG_ID_Pos (0U)
  8283. #define DMAMUX_RGxCR_SIG_ID_Msk (0x1FU << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x0000001F */
  8284. #define DMAMUX_RGxCR_SIG_ID DMAMUX_RGxCR_SIG_ID_Msk /*!< Signal identification */
  8285. #define DMAMUX_RGxCR_SIG_ID_0 (0x01U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000001 */
  8286. #define DMAMUX_RGxCR_SIG_ID_1 (0x02U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000002 */
  8287. #define DMAMUX_RGxCR_SIG_ID_2 (0x04U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000004 */
  8288. #define DMAMUX_RGxCR_SIG_ID_3 (0x08U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000008 */
  8289. #define DMAMUX_RGxCR_SIG_ID_4 (0x10U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000010 */
  8290. #define DMAMUX_RGxCR_OIE_Pos (8U)
  8291. #define DMAMUX_RGxCR_OIE_Msk (0x1U << DMAMUX_RGxCR_OIE_Pos) /*!< 0x00000100 */
  8292. #define DMAMUX_RGxCR_OIE DMAMUX_RGxCR_OIE_Msk /*!< Trigger overrun interrupt enable */
  8293. #define DMAMUX_RGxCR_GE_Pos (16U)
  8294. #define DMAMUX_RGxCR_GE_Msk (0x1U << DMAMUX_RGxCR_GE_Pos) /*!< 0x00010000 */
  8295. #define DMAMUX_RGxCR_GE DMAMUX_RGxCR_GE_Msk /*!< DMA request generator enable */
  8296. #define DMAMUX_RGxCR_GPOL_Pos (17U)
  8297. #define DMAMUX_RGxCR_GPOL_Msk (0x3U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00060000 */
  8298. #define DMAMUX_RGxCR_GPOL DMAMUX_RGxCR_GPOL_Msk /*!< DMA request generator trigger polarity */
  8299. #define DMAMUX_RGxCR_GPOL_0 (0x1U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00020000 */
  8300. #define DMAMUX_RGxCR_GPOL_1 (0x2U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00040000 */
  8301. #define DMAMUX_RGxCR_NBREQ_Pos (19U)
  8302. #define DMAMUX_RGxCR_NBREQ_Msk (0x1FU << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00F80000 */
  8303. #define DMAMUX_RGxCR_NBREQ DMAMUX_RGxCR_NBREQ_Msk /*!< Number of DMA requests to be generated */
  8304. #define DMAMUX_RGxCR_NBREQ_0 (0x01U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00080000 */
  8305. #define DMAMUX_RGxCR_NBREQ_1 (0x02U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00100000 */
  8306. #define DMAMUX_RGxCR_NBREQ_2 (0x04U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00200000 */
  8307. #define DMAMUX_RGxCR_NBREQ_3 (0x08U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00400000 */
  8308. #define DMAMUX_RGxCR_NBREQ_4 (0x10U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00800000 */
  8309. /******************** Bits definition for DMAMUX_RGSR register **************/
  8310. #define DMAMUX_RGSR_OF0_Pos (0U)
  8311. #define DMAMUX_RGSR_OF0_Msk (0x1U << DMAMUX_RGSR_OF0_Pos) /*!< 0x00000001 */
  8312. #define DMAMUX_RGSR_OF0 DMAMUX_RGSR_OF0_Msk /*!< Request generator channel 0 Trigger overrun event flag */
  8313. #define DMAMUX_RGSR_OF1_Pos (1U)
  8314. #define DMAMUX_RGSR_OF1_Msk (0x1U << DMAMUX_RGSR_OF1_Pos) /*!< 0x00000002 */
  8315. #define DMAMUX_RGSR_OF1 DMAMUX_RGSR_OF1_Msk /*!< Request generator channel 1 Trigger overrun event flag */
  8316. #define DMAMUX_RGSR_OF2_Pos (2U)
  8317. #define DMAMUX_RGSR_OF2_Msk (0x1U << DMAMUX_RGSR_OF2_Pos) /*!< 0x00000004 */
  8318. #define DMAMUX_RGSR_OF2 DMAMUX_RGSR_OF2_Msk /*!< Request generator channel 2 Trigger overrun event flag */
  8319. #define DMAMUX_RGSR_OF3_Pos (3U)
  8320. #define DMAMUX_RGSR_OF3_Msk (0x1U << DMAMUX_RGSR_OF3_Pos) /*!< 0x00000008 */
  8321. #define DMAMUX_RGSR_OF3 DMAMUX_RGSR_OF3_Msk /*!< Request generator channel 3 Trigger overrun event flag */
  8322. #define DMAMUX_RGSR_OF4_Pos (4U)
  8323. #define DMAMUX_RGSR_OF4_Msk (0x1U << DMAMUX_RGSR_OF4_Pos) /*!< 0x00000010 */
  8324. #define DMAMUX_RGSR_OF4 DMAMUX_RGSR_OF4_Msk /*!< Request generator channel 4 Trigger overrun event flag */
  8325. #define DMAMUX_RGSR_OF5_Pos (5U)
  8326. #define DMAMUX_RGSR_OF5_Msk (0x1U << DMAMUX_RGSR_OF5_Pos) /*!< 0x00000020 */
  8327. #define DMAMUX_RGSR_OF5 DMAMUX_RGSR_OF5_Msk /*!< Request generator channel 5 Trigger overrun event flag */
  8328. #define DMAMUX_RGSR_OF6_Pos (6U)
  8329. #define DMAMUX_RGSR_OF6_Msk (0x1U << DMAMUX_RGSR_OF6_Pos) /*!< 0x00000040 */
  8330. #define DMAMUX_RGSR_OF6 DMAMUX_RGSR_OF6_Msk /*!< Request generator channel 6 Trigger overrun event flag */
  8331. #define DMAMUX_RGSR_OF7_Pos (7U)
  8332. #define DMAMUX_RGSR_OF7_Msk (0x1U << DMAMUX_RGSR_OF7_Pos) /*!< 0x00000080 */
  8333. #define DMAMUX_RGSR_OF7 DMAMUX_RGSR_OF7_Msk /*!< Request generator channel 7 Trigger overrun event flag */
  8334. /******************** Bits definition for DMAMUX_RGCFR register **************/
  8335. #define DMAMUX_RGCFR_COF0_Pos (0U)
  8336. #define DMAMUX_RGCFR_COF0_Msk (0x1U << DMAMUX_RGCFR_COF0_Pos) /*!< 0x00000001 */
  8337. #define DMAMUX_RGCFR_COF0 DMAMUX_RGCFR_COF0_Msk /*!< Request generator channel 0 Clear trigger overrun event flag */
  8338. #define DMAMUX_RGCFR_COF1_Pos (1U)
  8339. #define DMAMUX_RGCFR_COF1_Msk (0x1U << DMAMUX_RGCFR_COF1_Pos) /*!< 0x00000002 */
  8340. #define DMAMUX_RGCFR_COF1 DMAMUX_RGCFR_COF1_Msk /*!< Request generator channel 1 Clear trigger overrun event flag */
  8341. #define DMAMUX_RGCFR_COF2_Pos (2U)
  8342. #define DMAMUX_RGCFR_COF2_Msk (0x1U << DMAMUX_RGCFR_COF2_Pos) /*!< 0x00000004 */
  8343. #define DMAMUX_RGCFR_COF2 DMAMUX_RGCFR_COF2_Msk /*!< Request generator channel 2 Clear trigger overrun event flag */
  8344. #define DMAMUX_RGCFR_COF3_Pos (3U)
  8345. #define DMAMUX_RGCFR_COF3_Msk (0x1U << DMAMUX_RGCFR_COF3_Pos) /*!< 0x00000008 */
  8346. #define DMAMUX_RGCFR_COF3 DMAMUX_RGCFR_COF3_Msk /*!< Request generator channel 3 Clear trigger overrun event flag */
  8347. #define DMAMUX_RGCFR_COF4_Pos (4U)
  8348. #define DMAMUX_RGCFR_COF4_Msk (0x1U << DMAMUX_RGCFR_COF4_Pos) /*!< 0x00000010 */
  8349. #define DMAMUX_RGCFR_COF4 DMAMUX_RGCFR_COF4_Msk /*!< Request generator channel 4 Clear trigger overrun event flag */
  8350. #define DMAMUX_RGCFR_COF5_Pos (5U)
  8351. #define DMAMUX_RGCFR_COF5_Msk (0x1U << DMAMUX_RGCFR_COF5_Pos) /*!< 0x00000020 */
  8352. #define DMAMUX_RGCFR_COF5 DMAMUX_RGCFR_COF5_Msk /*!< Request generator channel 5 Clear trigger overrun event flag */
  8353. #define DMAMUX_RGCFR_COF6_Pos (6U)
  8354. #define DMAMUX_RGCFR_COF6_Msk (0x1U << DMAMUX_RGCFR_COF6_Pos) /*!< 0x00000040 */
  8355. #define DMAMUX_RGCFR_COF6 DMAMUX_RGCFR_COF6_Msk /*!< Request generator channel 6 Clear trigger overrun event flag */
  8356. #define DMAMUX_RGCFR_COF7_Pos (7U)
  8357. #define DMAMUX_RGCFR_COF7_Msk (0x1U << DMAMUX_RGCFR_COF7_Pos) /*!< 0x00000080 */
  8358. #define DMAMUX_RGCFR_COF7 DMAMUX_RGCFR_COF7_Msk /*!< Request generator channel 7 Clear trigger overrun event flag */
  8359. /******************************************************************************/
  8360. /* */
  8361. /* AHB Master DMA2D Controller (DMA2D) */
  8362. /* */
  8363. /******************************************************************************/
  8364. /******************** Bit definition for DMA2D_CR register ******************/
  8365. #define DMA2D_CR_START_Pos (0U)
  8366. #define DMA2D_CR_START_Msk (0x1U << DMA2D_CR_START_Pos) /*!< 0x00000001 */
  8367. #define DMA2D_CR_START DMA2D_CR_START_Msk /*!< Start transfer */
  8368. #define DMA2D_CR_SUSP_Pos (1U)
  8369. #define DMA2D_CR_SUSP_Msk (0x1U << DMA2D_CR_SUSP_Pos) /*!< 0x00000002 */
  8370. #define DMA2D_CR_SUSP DMA2D_CR_SUSP_Msk /*!< Suspend transfer */
  8371. #define DMA2D_CR_ABORT_Pos (2U)
  8372. #define DMA2D_CR_ABORT_Msk (0x1U << DMA2D_CR_ABORT_Pos) /*!< 0x00000004 */
  8373. #define DMA2D_CR_ABORT DMA2D_CR_ABORT_Msk /*!< Abort transfer */
  8374. #define DMA2D_CR_TEIE_Pos (8U)
  8375. #define DMA2D_CR_TEIE_Msk (0x1U << DMA2D_CR_TEIE_Pos) /*!< 0x00000100 */
  8376. #define DMA2D_CR_TEIE DMA2D_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  8377. #define DMA2D_CR_TCIE_Pos (9U)
  8378. #define DMA2D_CR_TCIE_Msk (0x1U << DMA2D_CR_TCIE_Pos) /*!< 0x00000200 */
  8379. #define DMA2D_CR_TCIE DMA2D_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  8380. #define DMA2D_CR_TWIE_Pos (10U)
  8381. #define DMA2D_CR_TWIE_Msk (0x1U << DMA2D_CR_TWIE_Pos) /*!< 0x00000400 */
  8382. #define DMA2D_CR_TWIE DMA2D_CR_TWIE_Msk /*!< Transfer Watermark Interrupt Enable */
  8383. #define DMA2D_CR_CAEIE_Pos (11U)
  8384. #define DMA2D_CR_CAEIE_Msk (0x1U << DMA2D_CR_CAEIE_Pos) /*!< 0x00000800 */
  8385. #define DMA2D_CR_CAEIE DMA2D_CR_CAEIE_Msk /*!< CLUT Access Error Interrupt Enable */
  8386. #define DMA2D_CR_CTCIE_Pos (12U)
  8387. #define DMA2D_CR_CTCIE_Msk (0x1U << DMA2D_CR_CTCIE_Pos) /*!< 0x00001000 */
  8388. #define DMA2D_CR_CTCIE DMA2D_CR_CTCIE_Msk /*!< CLUT Transfer Complete Interrupt Enable */
  8389. #define DMA2D_CR_CEIE_Pos (13U)
  8390. #define DMA2D_CR_CEIE_Msk (0x1U << DMA2D_CR_CEIE_Pos) /*!< 0x00002000 */
  8391. #define DMA2D_CR_CEIE DMA2D_CR_CEIE_Msk /*!< Configuration Error Interrupt Enable */
  8392. #define DMA2D_CR_MODE_Pos (16U)
  8393. #define DMA2D_CR_MODE_Msk (0x3U << DMA2D_CR_MODE_Pos) /*!< 0x00030000 */
  8394. #define DMA2D_CR_MODE DMA2D_CR_MODE_Msk /*!< DMA2D Mode[1:0] */
  8395. #define DMA2D_CR_MODE_0 (0x1U << DMA2D_CR_MODE_Pos) /*!< 0x00010000 */
  8396. #define DMA2D_CR_MODE_1 (0x2U << DMA2D_CR_MODE_Pos) /*!< 0x00020000 */
  8397. /******************** Bit definition for DMA2D_ISR register *****************/
  8398. #define DMA2D_ISR_TEIF_Pos (0U)
  8399. #define DMA2D_ISR_TEIF_Msk (0x1U << DMA2D_ISR_TEIF_Pos) /*!< 0x00000001 */
  8400. #define DMA2D_ISR_TEIF DMA2D_ISR_TEIF_Msk /*!< Transfer Error Interrupt Flag */
  8401. #define DMA2D_ISR_TCIF_Pos (1U)
  8402. #define DMA2D_ISR_TCIF_Msk (0x1U << DMA2D_ISR_TCIF_Pos) /*!< 0x00000002 */
  8403. #define DMA2D_ISR_TCIF DMA2D_ISR_TCIF_Msk /*!< Transfer Complete Interrupt Flag */
  8404. #define DMA2D_ISR_TWIF_Pos (2U)
  8405. #define DMA2D_ISR_TWIF_Msk (0x1U << DMA2D_ISR_TWIF_Pos) /*!< 0x00000004 */
  8406. #define DMA2D_ISR_TWIF DMA2D_ISR_TWIF_Msk /*!< Transfer Watermark Interrupt Flag */
  8407. #define DMA2D_ISR_CAEIF_Pos (3U)
  8408. #define DMA2D_ISR_CAEIF_Msk (0x1U << DMA2D_ISR_CAEIF_Pos) /*!< 0x00000008 */
  8409. #define DMA2D_ISR_CAEIF DMA2D_ISR_CAEIF_Msk /*!< CLUT Access Error Interrupt Flag */
  8410. #define DMA2D_ISR_CTCIF_Pos (4U)
  8411. #define DMA2D_ISR_CTCIF_Msk (0x1U << DMA2D_ISR_CTCIF_Pos) /*!< 0x00000010 */
  8412. #define DMA2D_ISR_CTCIF DMA2D_ISR_CTCIF_Msk /*!< CLUT Transfer Complete Interrupt Flag */
  8413. #define DMA2D_ISR_CEIF_Pos (5U)
  8414. #define DMA2D_ISR_CEIF_Msk (0x1U << DMA2D_ISR_CEIF_Pos) /*!< 0x00000020 */
  8415. #define DMA2D_ISR_CEIF DMA2D_ISR_CEIF_Msk /*!< Configuration Error Interrupt Flag */
  8416. /******************** Bit definition for DMA2D_IFCR register ****************/
  8417. #define DMA2D_IFCR_CTEIF_Pos (0U)
  8418. #define DMA2D_IFCR_CTEIF_Msk (0x1U << DMA2D_IFCR_CTEIF_Pos) /*!< 0x00000001 */
  8419. #define DMA2D_IFCR_CTEIF DMA2D_IFCR_CTEIF_Msk /*!< Clears Transfer Error Interrupt Flag */
  8420. #define DMA2D_IFCR_CTCIF_Pos (1U)
  8421. #define DMA2D_IFCR_CTCIF_Msk (0x1U << DMA2D_IFCR_CTCIF_Pos) /*!< 0x00000002 */
  8422. #define DMA2D_IFCR_CTCIF DMA2D_IFCR_CTCIF_Msk /*!< Clears Transfer Complete Interrupt Flag */
  8423. #define DMA2D_IFCR_CTWIF_Pos (2U)
  8424. #define DMA2D_IFCR_CTWIF_Msk (0x1U << DMA2D_IFCR_CTWIF_Pos) /*!< 0x00000004 */
  8425. #define DMA2D_IFCR_CTWIF DMA2D_IFCR_CTWIF_Msk /*!< Clears Transfer Watermark Interrupt Flag */
  8426. #define DMA2D_IFCR_CAECIF_Pos (3U)
  8427. #define DMA2D_IFCR_CAECIF_Msk (0x1U << DMA2D_IFCR_CAECIF_Pos) /*!< 0x00000008 */
  8428. #define DMA2D_IFCR_CAECIF DMA2D_IFCR_CAECIF_Msk /*!< Clears CLUT Access Error Interrupt Flag */
  8429. #define DMA2D_IFCR_CCTCIF_Pos (4U)
  8430. #define DMA2D_IFCR_CCTCIF_Msk (0x1U << DMA2D_IFCR_CCTCIF_Pos) /*!< 0x00000010 */
  8431. #define DMA2D_IFCR_CCTCIF DMA2D_IFCR_CCTCIF_Msk /*!< Clears CLUT Transfer Complete Interrupt Flag */
  8432. #define DMA2D_IFCR_CCEIF_Pos (5U)
  8433. #define DMA2D_IFCR_CCEIF_Msk (0x1U << DMA2D_IFCR_CCEIF_Pos) /*!< 0x00000020 */
  8434. #define DMA2D_IFCR_CCEIF DMA2D_IFCR_CCEIF_Msk /*!< Clears Configuration Error Interrupt Flag */
  8435. /******************** Bit definition for DMA2D_FGMAR register ***************/
  8436. #define DMA2D_FGMAR_MA_Pos (0U)
  8437. #define DMA2D_FGMAR_MA_Msk (0xFFFFFFFFU << DMA2D_FGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8438. #define DMA2D_FGMAR_MA DMA2D_FGMAR_MA_Msk /*!< Foreground Memory Address */
  8439. /******************** Bit definition for DMA2D_FGOR register ****************/
  8440. #define DMA2D_FGOR_LO_Pos (0U)
  8441. #define DMA2D_FGOR_LO_Msk (0x3FFFU << DMA2D_FGOR_LO_Pos) /*!< 0x00003FFF */
  8442. #define DMA2D_FGOR_LO DMA2D_FGOR_LO_Msk /*!< Line Offset */
  8443. /******************** Bit definition for DMA2D_BGMAR register ***************/
  8444. #define DMA2D_BGMAR_MA_Pos (0U)
  8445. #define DMA2D_BGMAR_MA_Msk (0xFFFFFFFFU << DMA2D_BGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8446. #define DMA2D_BGMAR_MA DMA2D_BGMAR_MA_Msk /*!< Background Memory Address */
  8447. /******************** Bit definition for DMA2D_BGOR register ****************/
  8448. #define DMA2D_BGOR_LO_Pos (0U)
  8449. #define DMA2D_BGOR_LO_Msk (0x3FFFU << DMA2D_BGOR_LO_Pos) /*!< 0x00003FFF */
  8450. #define DMA2D_BGOR_LO DMA2D_BGOR_LO_Msk /*!< Line Offset */
  8451. /******************** Bit definition for DMA2D_FGPFCCR register *************/
  8452. #define DMA2D_FGPFCCR_CM_Pos (0U)
  8453. #define DMA2D_FGPFCCR_CM_Msk (0xFU << DMA2D_FGPFCCR_CM_Pos) /*!< 0x0000000F */
  8454. #define DMA2D_FGPFCCR_CM DMA2D_FGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8455. #define DMA2D_FGPFCCR_CM_0 (0x1U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000001 */
  8456. #define DMA2D_FGPFCCR_CM_1 (0x2U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000002 */
  8457. #define DMA2D_FGPFCCR_CM_2 (0x4U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000004 */
  8458. #define DMA2D_FGPFCCR_CM_3 (0x8U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000008 */
  8459. #define DMA2D_FGPFCCR_CCM_Pos (4U)
  8460. #define DMA2D_FGPFCCR_CCM_Msk (0x1U << DMA2D_FGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8461. #define DMA2D_FGPFCCR_CCM DMA2D_FGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8462. #define DMA2D_FGPFCCR_START_Pos (5U)
  8463. #define DMA2D_FGPFCCR_START_Msk (0x1U << DMA2D_FGPFCCR_START_Pos) /*!< 0x00000020 */
  8464. #define DMA2D_FGPFCCR_START DMA2D_FGPFCCR_START_Msk /*!< Start */
  8465. #define DMA2D_FGPFCCR_CS_Pos (8U)
  8466. #define DMA2D_FGPFCCR_CS_Msk (0xFFU << DMA2D_FGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8467. #define DMA2D_FGPFCCR_CS DMA2D_FGPFCCR_CS_Msk /*!< CLUT size */
  8468. #define DMA2D_FGPFCCR_AM_Pos (16U)
  8469. #define DMA2D_FGPFCCR_AM_Msk (0x3U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00030000 */
  8470. #define DMA2D_FGPFCCR_AM DMA2D_FGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8471. #define DMA2D_FGPFCCR_AM_0 (0x1U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00010000 */
  8472. #define DMA2D_FGPFCCR_AM_1 (0x2U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00020000 */
  8473. #define DMA2D_FGPFCCR_CSS_Pos (18U)
  8474. #define DMA2D_FGPFCCR_CSS_Msk (0x3U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x000C0000 */
  8475. #define DMA2D_FGPFCCR_CSS DMA2D_FGPFCCR_CSS_Msk /* !< Chroma Sub-Sampling */
  8476. #define DMA2D_FGPFCCR_CSS_0 (0x1U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00040000 */
  8477. #define DMA2D_FGPFCCR_CSS_1 (0x2U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00080000 */
  8478. #define DMA2D_FGPFCCR_AI_Pos (20U)
  8479. #define DMA2D_FGPFCCR_AI_Msk (0x1U << DMA2D_FGPFCCR_AI_Pos) /*!< 0x00100000 */
  8480. #define DMA2D_FGPFCCR_AI DMA2D_FGPFCCR_AI_Msk /*!< Foreground Input Alpha Inverted */
  8481. #define DMA2D_FGPFCCR_RBS_Pos (21U)
  8482. #define DMA2D_FGPFCCR_RBS_Msk (0x1U << DMA2D_FGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8483. #define DMA2D_FGPFCCR_RBS DMA2D_FGPFCCR_RBS_Msk /*!< Foreground Input Red Blue Swap */
  8484. #define DMA2D_FGPFCCR_ALPHA_Pos (24U)
  8485. #define DMA2D_FGPFCCR_ALPHA_Msk (0xFFU << DMA2D_FGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8486. #define DMA2D_FGPFCCR_ALPHA DMA2D_FGPFCCR_ALPHA_Msk /*!< Alpha value */
  8487. /******************** Bit definition for DMA2D_FGCOLR register **************/
  8488. #define DMA2D_FGCOLR_BLUE_Pos (0U)
  8489. #define DMA2D_FGCOLR_BLUE_Msk (0xFFU << DMA2D_FGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8490. #define DMA2D_FGCOLR_BLUE DMA2D_FGCOLR_BLUE_Msk /*!< Foreground Blue Value */
  8491. #define DMA2D_FGCOLR_GREEN_Pos (8U)
  8492. #define DMA2D_FGCOLR_GREEN_Msk (0xFFU << DMA2D_FGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8493. #define DMA2D_FGCOLR_GREEN DMA2D_FGCOLR_GREEN_Msk /*!< Foreground Green Value */
  8494. #define DMA2D_FGCOLR_RED_Pos (16U)
  8495. #define DMA2D_FGCOLR_RED_Msk (0xFFU << DMA2D_FGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8496. #define DMA2D_FGCOLR_RED DMA2D_FGCOLR_RED_Msk /*!< Foreground Red Value */
  8497. /******************** Bit definition for DMA2D_BGPFCCR register *************/
  8498. #define DMA2D_BGPFCCR_CM_Pos (0U)
  8499. #define DMA2D_BGPFCCR_CM_Msk (0xFU << DMA2D_BGPFCCR_CM_Pos) /*!< 0x0000000F */
  8500. #define DMA2D_BGPFCCR_CM DMA2D_BGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8501. #define DMA2D_BGPFCCR_CM_0 (0x1U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000001 */
  8502. #define DMA2D_BGPFCCR_CM_1 (0x2U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000002 */
  8503. #define DMA2D_BGPFCCR_CM_2 (0x4U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000004 */
  8504. #define DMA2D_BGPFCCR_CM_3 (0x8U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000008 */
  8505. #define DMA2D_BGPFCCR_CCM_Pos (4U)
  8506. #define DMA2D_BGPFCCR_CCM_Msk (0x1U << DMA2D_BGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8507. #define DMA2D_BGPFCCR_CCM DMA2D_BGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8508. #define DMA2D_BGPFCCR_START_Pos (5U)
  8509. #define DMA2D_BGPFCCR_START_Msk (0x1U << DMA2D_BGPFCCR_START_Pos) /*!< 0x00000020 */
  8510. #define DMA2D_BGPFCCR_START DMA2D_BGPFCCR_START_Msk /*!< Start */
  8511. #define DMA2D_BGPFCCR_CS_Pos (8U)
  8512. #define DMA2D_BGPFCCR_CS_Msk (0xFFU << DMA2D_BGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8513. #define DMA2D_BGPFCCR_CS DMA2D_BGPFCCR_CS_Msk /*!< CLUT size */
  8514. #define DMA2D_BGPFCCR_AM_Pos (16U)
  8515. #define DMA2D_BGPFCCR_AM_Msk (0x3U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00030000 */
  8516. #define DMA2D_BGPFCCR_AM DMA2D_BGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8517. #define DMA2D_BGPFCCR_AM_0 (0x1U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00010000 */
  8518. #define DMA2D_BGPFCCR_AM_1 (0x2U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00020000 */
  8519. #define DMA2D_BGPFCCR_AI_Pos (20U)
  8520. #define DMA2D_BGPFCCR_AI_Msk (0x1U << DMA2D_BGPFCCR_AI_Pos) /*!< 0x00100000 */
  8521. #define DMA2D_BGPFCCR_AI DMA2D_BGPFCCR_AI_Msk /*!< background Input Alpha Inverted */
  8522. #define DMA2D_BGPFCCR_RBS_Pos (21U)
  8523. #define DMA2D_BGPFCCR_RBS_Msk (0x1U << DMA2D_BGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8524. #define DMA2D_BGPFCCR_RBS DMA2D_BGPFCCR_RBS_Msk /*!< Background Input Red Blue Swap */
  8525. #define DMA2D_BGPFCCR_ALPHA_Pos (24U)
  8526. #define DMA2D_BGPFCCR_ALPHA_Msk (0xFFU << DMA2D_BGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8527. #define DMA2D_BGPFCCR_ALPHA DMA2D_BGPFCCR_ALPHA_Msk /*!< background Input Alpha value */
  8528. /******************** Bit definition for DMA2D_BGCOLR register **************/
  8529. #define DMA2D_BGCOLR_BLUE_Pos (0U)
  8530. #define DMA2D_BGCOLR_BLUE_Msk (0xFFU << DMA2D_BGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8531. #define DMA2D_BGCOLR_BLUE DMA2D_BGCOLR_BLUE_Msk /*!< Background Blue Value */
  8532. #define DMA2D_BGCOLR_GREEN_Pos (8U)
  8533. #define DMA2D_BGCOLR_GREEN_Msk (0xFFU << DMA2D_BGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8534. #define DMA2D_BGCOLR_GREEN DMA2D_BGCOLR_GREEN_Msk /*!< Background Green Value */
  8535. #define DMA2D_BGCOLR_RED_Pos (16U)
  8536. #define DMA2D_BGCOLR_RED_Msk (0xFFU << DMA2D_BGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8537. #define DMA2D_BGCOLR_RED DMA2D_BGCOLR_RED_Msk /*!< Background Red Value */
  8538. /******************** Bit definition for DMA2D_FGCMAR register **************/
  8539. #define DMA2D_FGCMAR_MA_Pos (0U)
  8540. #define DMA2D_FGCMAR_MA_Msk (0xFFFFFFFFU << DMA2D_FGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8541. #define DMA2D_FGCMAR_MA DMA2D_FGCMAR_MA_Msk /*!< Foreground CLUT Memory Address */
  8542. /******************** Bit definition for DMA2D_BGCMAR register **************/
  8543. #define DMA2D_BGCMAR_MA_Pos (0U)
  8544. #define DMA2D_BGCMAR_MA_Msk (0xFFFFFFFFU << DMA2D_BGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8545. #define DMA2D_BGCMAR_MA DMA2D_BGCMAR_MA_Msk /*!< Background CLUT Memory Address */
  8546. /******************** Bit definition for DMA2D_OPFCCR register **************/
  8547. #define DMA2D_OPFCCR_CM_Pos (0U)
  8548. #define DMA2D_OPFCCR_CM_Msk (0x7U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000007 */
  8549. #define DMA2D_OPFCCR_CM DMA2D_OPFCCR_CM_Msk /*!< Output Color mode CM[2:0] */
  8550. #define DMA2D_OPFCCR_CM_0 (0x1U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000001 */
  8551. #define DMA2D_OPFCCR_CM_1 (0x2U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000002 */
  8552. #define DMA2D_OPFCCR_CM_2 (0x4U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000004 */
  8553. #define DMA2D_OPFCCR_AI_Pos (20U)
  8554. #define DMA2D_OPFCCR_AI_Msk (0x1U << DMA2D_OPFCCR_AI_Pos) /*!< 0x00100000 */
  8555. #define DMA2D_OPFCCR_AI DMA2D_OPFCCR_AI_Msk /*!< Output Alpha Inverted */
  8556. #define DMA2D_OPFCCR_RBS_Pos (21U)
  8557. #define DMA2D_OPFCCR_RBS_Msk (0x1U << DMA2D_OPFCCR_RBS_Pos) /*!< 0x00200000 */
  8558. #define DMA2D_OPFCCR_RBS DMA2D_OPFCCR_RBS_Msk /*!< Output Red Blue Swap */
  8559. /******************** Bit definition for DMA2D_OCOLR register ***************/
  8560. /*!<Mode_ARGB8888/RGB888 */
  8561. #define DMA2D_OCOLR_BLUE_1 ((uint32_t)0x000000FFU) /*!< Output BLUE Value */
  8562. #define DMA2D_OCOLR_GREEN_1 ((uint32_t)0x0000FF00U) /*!< Output GREEN Value */
  8563. #define DMA2D_OCOLR_RED_1 ((uint32_t)0x00FF0000U) /*!< Output Red Value */
  8564. #define DMA2D_OCOLR_ALPHA_1 ((uint32_t)0xFF000000U) /*!< Output Alpha Channel Value */
  8565. /*!<Mode_RGB565 */
  8566. #define DMA2D_OCOLR_BLUE_2 ((uint32_t)0x0000001FU) /*!< Output BLUE Value */
  8567. #define DMA2D_OCOLR_GREEN_2 ((uint32_t)0x000007E0U) /*!< Output GREEN Value */
  8568. #define DMA2D_OCOLR_RED_2 ((uint32_t)0x0000F800U) /*!< Output Red Value */
  8569. /*!<Mode_ARGB1555 */
  8570. #define DMA2D_OCOLR_BLUE_3 ((uint32_t)0x0000001FU) /*!< Output BLUE Value */
  8571. #define DMA2D_OCOLR_GREEN_3 ((uint32_t)0x000003E0U) /*!< Output GREEN Value */
  8572. #define DMA2D_OCOLR_RED_3 ((uint32_t)0x00007C00U) /*!< Output Red Value */
  8573. #define DMA2D_OCOLR_ALPHA_3 ((uint32_t)0x00008000U) /*!< Output Alpha Channel Value */
  8574. /*!<Mode_ARGB4444 */
  8575. #define DMA2D_OCOLR_BLUE_4 ((uint32_t)0x0000000FU) /*!< Output BLUE Value */
  8576. #define DMA2D_OCOLR_GREEN_4 ((uint32_t)0x000000F0U) /*!< Output GREEN Value */
  8577. #define DMA2D_OCOLR_RED_4 ((uint32_t)0x00000F00U) /*!< Output Red Value */
  8578. #define DMA2D_OCOLR_ALPHA_4 ((uint32_t)0x0000F000U) /*!< Output Alpha Channel Value */
  8579. /******************** Bit definition for DMA2D_OMAR register ****************/
  8580. #define DMA2D_OMAR_MA_Pos (0U)
  8581. #define DMA2D_OMAR_MA_Msk (0xFFFFFFFFU << DMA2D_OMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8582. #define DMA2D_OMAR_MA DMA2D_OMAR_MA_Msk /*!< Output Memory Address */
  8583. /******************** Bit definition for DMA2D_OOR register *****************/
  8584. #define DMA2D_OOR_LO_Pos (0U)
  8585. #define DMA2D_OOR_LO_Msk (0x3FFFU << DMA2D_OOR_LO_Pos) /*!< 0x00003FFF */
  8586. #define DMA2D_OOR_LO DMA2D_OOR_LO_Msk /*!< Output Line Offset */
  8587. /******************** Bit definition for DMA2D_NLR register *****************/
  8588. #define DMA2D_NLR_NL_Pos (0U)
  8589. #define DMA2D_NLR_NL_Msk (0xFFFFU << DMA2D_NLR_NL_Pos) /*!< 0x0000FFFF */
  8590. #define DMA2D_NLR_NL DMA2D_NLR_NL_Msk /*!< Number of Lines */
  8591. #define DMA2D_NLR_PL_Pos (16U)
  8592. #define DMA2D_NLR_PL_Msk (0x3FFFU << DMA2D_NLR_PL_Pos) /*!< 0x3FFF0000 */
  8593. #define DMA2D_NLR_PL DMA2D_NLR_PL_Msk /*!< Pixel per Lines */
  8594. /******************** Bit definition for DMA2D_LWR register *****************/
  8595. #define DMA2D_LWR_LW_Pos (0U)
  8596. #define DMA2D_LWR_LW_Msk (0xFFFFU << DMA2D_LWR_LW_Pos) /*!< 0x0000FFFF */
  8597. #define DMA2D_LWR_LW DMA2D_LWR_LW_Msk /*!< Line Watermark */
  8598. /******************** Bit definition for DMA2D_AMTCR register ***************/
  8599. #define DMA2D_AMTCR_EN_Pos (0U)
  8600. #define DMA2D_AMTCR_EN_Msk (0x1U << DMA2D_AMTCR_EN_Pos) /*!< 0x00000001 */
  8601. #define DMA2D_AMTCR_EN DMA2D_AMTCR_EN_Msk /*!< Enable */
  8602. #define DMA2D_AMTCR_DT_Pos (8U)
  8603. #define DMA2D_AMTCR_DT_Msk (0xFFU << DMA2D_AMTCR_DT_Pos) /*!< 0x0000FF00 */
  8604. #define DMA2D_AMTCR_DT DMA2D_AMTCR_DT_Msk /*!< Dead Time */
  8605. /******************** Bit definition for DMA2D_FGCLUT register **************/
  8606. /******************** Bit definition for DMA2D_BGCLUT register **************/
  8607. /******************************************************************************/
  8608. /* */
  8609. /* External Interrupt/Event Controller */
  8610. /* */
  8611. /******************************************************************************/
  8612. /******************* Bit definition for EXTI_IMR1 register *******************/
  8613. #define EXTI_IMR1_IM0_Pos (0U)
  8614. #define EXTI_IMR1_IM0_Msk (0x1U << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */
  8615. #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */
  8616. #define EXTI_IMR1_IM1_Pos (1U)
  8617. #define EXTI_IMR1_IM1_Msk (0x1U << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */
  8618. #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */
  8619. #define EXTI_IMR1_IM2_Pos (2U)
  8620. #define EXTI_IMR1_IM2_Msk (0x1U << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */
  8621. #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */
  8622. #define EXTI_IMR1_IM3_Pos (3U)
  8623. #define EXTI_IMR1_IM3_Msk (0x1U << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */
  8624. #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */
  8625. #define EXTI_IMR1_IM4_Pos (4U)
  8626. #define EXTI_IMR1_IM4_Msk (0x1U << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */
  8627. #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */
  8628. #define EXTI_IMR1_IM5_Pos (5U)
  8629. #define EXTI_IMR1_IM5_Msk (0x1U << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */
  8630. #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */
  8631. #define EXTI_IMR1_IM6_Pos (6U)
  8632. #define EXTI_IMR1_IM6_Msk (0x1U << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */
  8633. #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */
  8634. #define EXTI_IMR1_IM7_Pos (7U)
  8635. #define EXTI_IMR1_IM7_Msk (0x1U << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */
  8636. #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */
  8637. #define EXTI_IMR1_IM8_Pos (8U)
  8638. #define EXTI_IMR1_IM8_Msk (0x1U << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */
  8639. #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */
  8640. #define EXTI_IMR1_IM9_Pos (9U)
  8641. #define EXTI_IMR1_IM9_Msk (0x1U << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */
  8642. #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */
  8643. #define EXTI_IMR1_IM10_Pos (10U)
  8644. #define EXTI_IMR1_IM10_Msk (0x1U << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */
  8645. #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */
  8646. #define EXTI_IMR1_IM11_Pos (11U)
  8647. #define EXTI_IMR1_IM11_Msk (0x1U << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */
  8648. #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */
  8649. #define EXTI_IMR1_IM12_Pos (12U)
  8650. #define EXTI_IMR1_IM12_Msk (0x1U << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */
  8651. #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */
  8652. #define EXTI_IMR1_IM13_Pos (13U)
  8653. #define EXTI_IMR1_IM13_Msk (0x1U << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */
  8654. #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */
  8655. #define EXTI_IMR1_IM14_Pos (14U)
  8656. #define EXTI_IMR1_IM14_Msk (0x1U << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */
  8657. #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */
  8658. #define EXTI_IMR1_IM15_Pos (15U)
  8659. #define EXTI_IMR1_IM15_Msk (0x1U << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */
  8660. #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */
  8661. #define EXTI_IMR1_IM16_Pos (16U)
  8662. #define EXTI_IMR1_IM16_Msk (0x1U << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */
  8663. #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */
  8664. #define EXTI_IMR1_IM17_Pos (17U)
  8665. #define EXTI_IMR1_IM17_Msk (0x1U << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */
  8666. #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */
  8667. #define EXTI_IMR1_IM18_Pos (18U)
  8668. #define EXTI_IMR1_IM18_Msk (0x1U << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */
  8669. #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */
  8670. #define EXTI_IMR1_IM19_Pos (19U)
  8671. #define EXTI_IMR1_IM19_Msk (0x1U << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */
  8672. #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */
  8673. #define EXTI_IMR1_IM20_Pos (20U)
  8674. #define EXTI_IMR1_IM20_Msk (0x1U << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */
  8675. #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */
  8676. #define EXTI_IMR1_IM21_Pos (21U)
  8677. #define EXTI_IMR1_IM21_Msk (0x1U << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */
  8678. #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */
  8679. #define EXTI_IMR1_IM22_Pos (22U)
  8680. #define EXTI_IMR1_IM22_Msk (0x1U << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */
  8681. #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */
  8682. #define EXTI_IMR1_IM23_Pos (23U)
  8683. #define EXTI_IMR1_IM23_Msk (0x1U << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */
  8684. #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */
  8685. #define EXTI_IMR1_IM24_Pos (24U)
  8686. #define EXTI_IMR1_IM24_Msk (0x1U << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */
  8687. #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */
  8688. #define EXTI_IMR1_IM25_Pos (25U)
  8689. #define EXTI_IMR1_IM25_Msk (0x1U << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */
  8690. #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */
  8691. #define EXTI_IMR1_IM26_Pos (26U)
  8692. #define EXTI_IMR1_IM26_Msk (0x1U << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */
  8693. #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */
  8694. #define EXTI_IMR1_IM27_Pos (27U)
  8695. #define EXTI_IMR1_IM27_Msk (0x1U << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */
  8696. #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */
  8697. #define EXTI_IMR1_IM28_Pos (28U)
  8698. #define EXTI_IMR1_IM28_Msk (0x1U << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */
  8699. #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */
  8700. #define EXTI_IMR1_IM29_Pos (29U)
  8701. #define EXTI_IMR1_IM29_Msk (0x1U << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */
  8702. #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */
  8703. #define EXTI_IMR1_IM30_Pos (30U)
  8704. #define EXTI_IMR1_IM30_Msk (0x1U << EXTI_IMR1_IM30_Pos) /*!< 0x40000000 */
  8705. #define EXTI_IMR1_IM30 EXTI_IMR1_IM30_Msk /*!< Interrupt Mask on line 30 */
  8706. #define EXTI_IMR1_IM31_Pos (31U)
  8707. #define EXTI_IMR1_IM31_Msk (0x1U << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */
  8708. #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */
  8709. /******************* Bit definition for EXTI_IMR2 register *******************/
  8710. #define EXTI_IMR2_IM32_Pos (0U)
  8711. #define EXTI_IMR2_IM32_Msk (0x1U << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */
  8712. #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */
  8713. #define EXTI_IMR2_IM33_Pos (1U)
  8714. #define EXTI_IMR2_IM33_Msk (0x1U << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */
  8715. #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */
  8716. #define EXTI_IMR2_IM34_Pos (2U)
  8717. #define EXTI_IMR2_IM34_Msk (0x1U << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */
  8718. #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */
  8719. #define EXTI_IMR2_IM35_Pos (3U)
  8720. #define EXTI_IMR2_IM35_Msk (0x1U << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */
  8721. #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */
  8722. #define EXTI_IMR2_IM36_Pos (4U)
  8723. #define EXTI_IMR2_IM36_Msk (0x1U << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */
  8724. #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */
  8725. #define EXTI_IMR2_IM37_Pos (5U)
  8726. #define EXTI_IMR2_IM37_Msk (0x1U << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */
  8727. #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */
  8728. #define EXTI_IMR2_IM38_Pos (6U)
  8729. #define EXTI_IMR2_IM38_Msk (0x1U << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */
  8730. #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */
  8731. #define EXTI_IMR2_IM39_Pos (7U)
  8732. #define EXTI_IMR2_IM39_Msk (0x1U << EXTI_IMR2_IM39_Pos) /*!< 0x00000080 */
  8733. #define EXTI_IMR2_IM39 EXTI_IMR2_IM39_Msk /*!< Interrupt Mask on line 39 */
  8734. #define EXTI_IMR2_IM40_Pos (8U)
  8735. #define EXTI_IMR2_IM40_Msk (0x1U << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */
  8736. #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */
  8737. #define EXTI_IMR2_IM41_Pos (9U)
  8738. #define EXTI_IMR2_IM41_Msk (0x1U << EXTI_IMR2_IM41_Pos) /*!< 0x00000200 */
  8739. #define EXTI_IMR2_IM41 EXTI_IMR2_IM41_Msk /*!< Interrupt Mask on line 41 */
  8740. #define EXTI_IMR2_IM42_Pos (10U)
  8741. #define EXTI_IMR2_IM42_Msk (0x1U << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
  8742. #define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< Interrupt Mask on line 42 */
  8743. #define EXTI_IMR2_IM43_Pos (11U)
  8744. #define EXTI_IMR2_IM43_Msk (0x1U << EXTI_IMR2_IM43_Pos) /*!< 0x00000800 */
  8745. #define EXTI_IMR2_IM43 EXTI_IMR2_IM43_Msk /*!< Interrupt Mask on line 43 */
  8746. #define EXTI_IMR2_IM44_Pos (12U)
  8747. #define EXTI_IMR2_IM44_Msk (0x1U << EXTI_IMR2_IM44_Pos) /*!< 0x00001000 */
  8748. #define EXTI_IMR2_IM44 EXTI_IMR2_IM44_Msk /*!< Interrupt Mask on line 44 */
  8749. #define EXTI_IMR2_IM45_Pos (13U)
  8750. #define EXTI_IMR2_IM45_Msk (0x1U << EXTI_IMR2_IM45_Pos) /*!< 0x00002000 */
  8751. #define EXTI_IMR2_IM45 EXTI_IMR2_IM45_Msk /*!< Interrupt Mask on line 45 */
  8752. #define EXTI_IMR2_IM46_Pos (14U)
  8753. #define EXTI_IMR2_IM46_Msk (0x1U << EXTI_IMR2_IM46_Pos) /*!< 0x00004000 */
  8754. #define EXTI_IMR2_IM46 EXTI_IMR2_IM46_Msk /*!< Interrupt Mask on line 46 */
  8755. #define EXTI_IMR2_IM47_Pos (15U)
  8756. #define EXTI_IMR2_IM47_Msk (0x1U << EXTI_IMR2_IM47_Pos) /*!< 0x00008000 */
  8757. #define EXTI_IMR2_IM47 EXTI_IMR2_IM47_Msk /*!< Interrupt Mask on line 47 */
  8758. #define EXTI_IMR2_IM48_Pos (16U)
  8759. #define EXTI_IMR2_IM48_Msk (0x1U << EXTI_IMR2_IM48_Pos) /*!< 0x00010000 */
  8760. #define EXTI_IMR2_IM48 EXTI_IMR2_IM48_Msk /*!< Interrupt Mask on line 48 */
  8761. #define EXTI_IMR2_IM49_Pos (17U)
  8762. #define EXTI_IMR2_IM49_Msk (0x1U << EXTI_IMR2_IM49_Pos) /*!< 0x00020000 */
  8763. #define EXTI_IMR2_IM49 EXTI_IMR2_IM49_Msk /*!< Interrupt Mask on line 49 */
  8764. #define EXTI_IMR2_IM50_Pos (18U)
  8765. #define EXTI_IMR2_IM50_Msk (0x1U << EXTI_IMR2_IM50_Pos) /*!< 0x00040000 */
  8766. #define EXTI_IMR2_IM50 EXTI_IMR2_IM50_Msk /*!< Interrupt Mask on line 50 */
  8767. #define EXTI_IMR2_IM51_Pos (19U)
  8768. #define EXTI_IMR2_IM51_Msk (0x1U << EXTI_IMR2_IM51_Pos) /*!< 0x00080000 */
  8769. #define EXTI_IMR2_IM51 EXTI_IMR2_IM51_Msk /*!< Interrupt Mask on line 51 */
  8770. #define EXTI_IMR2_IM52_Pos (20U)
  8771. #define EXTI_IMR2_IM52_Msk (0x1U << EXTI_IMR2_IM52_Pos) /*!< 0x00100000 */
  8772. #define EXTI_IMR2_IM52 EXTI_IMR2_IM52_Msk /*!< Interrupt Mask on line 52 */
  8773. #define EXTI_IMR2_IM53_Pos (21U)
  8774. #define EXTI_IMR2_IM53_Msk (0x1U << EXTI_IMR2_IM53_Pos) /*!< 0x00200000 */
  8775. #define EXTI_IMR2_IM53 EXTI_IMR2_IM53_Msk /*!< Interrupt Mask on line 53 */
  8776. #define EXTI_IMR2_IM54_Pos (22U)
  8777. #define EXTI_IMR2_IM54_Msk (0x1U << EXTI_IMR2_IM54_Pos) /*!< 0x00400000 */
  8778. #define EXTI_IMR2_IM54 EXTI_IMR2_IM54_Msk /*!< Interrupt Mask on line 54 */
  8779. #define EXTI_IMR2_IM55_Pos (23U)
  8780. #define EXTI_IMR2_IM55_Msk (0x1U << EXTI_IMR2_IM55_Pos) /*!< 0x00800000 */
  8781. #define EXTI_IMR2_IM55 EXTI_IMR2_IM55_Msk /*!< Interrupt Mask on line 55 */
  8782. #define EXTI_IMR2_IM56_Pos (24U)
  8783. #define EXTI_IMR2_IM56_Msk (0x1U << EXTI_IMR2_IM56_Pos) /*!< 0x01000000 */
  8784. #define EXTI_IMR2_IM56 EXTI_IMR2_IM56_Msk /*!< Interrupt Mask on line 56 */
  8785. #define EXTI_IMR2_IM57_Pos (25U)
  8786. #define EXTI_IMR2_IM57_Msk (0x1U << EXTI_IMR2_IM57_Pos) /*!< 0x02000000 */
  8787. #define EXTI_IMR2_IM57 EXTI_IMR2_IM57_Msk /*!< Interrupt Mask on line 57 */
  8788. #define EXTI_IMR2_IM58_Pos (26U)
  8789. #define EXTI_IMR2_IM58_Msk (0x1U << EXTI_IMR2_IM58_Pos) /*!< 0x04000000 */
  8790. #define EXTI_IMR2_IM58 EXTI_IMR2_IM58_Msk /*!< Interrupt Mask on line 58 */
  8791. #define EXTI_IMR2_IM59_Pos (27U)
  8792. #define EXTI_IMR2_IM59_Msk (0x1U << EXTI_IMR2_IM59_Pos) /*!< 0x08000000 */
  8793. #define EXTI_IMR2_IM59 EXTI_IMR2_IM59_Msk /*!< Interrupt Mask on line 59 */
  8794. #define EXTI_IMR2_IM60_Pos (28U)
  8795. #define EXTI_IMR2_IM60_Msk (0x1U << EXTI_IMR2_IM60_Pos) /*!< 0x10000000 */
  8796. #define EXTI_IMR2_IM60 EXTI_IMR2_IM60_Msk /*!< Interrupt Mask on line 60 */
  8797. #define EXTI_IMR2_IM61_Pos (29U)
  8798. #define EXTI_IMR2_IM61_Msk (0x1U << EXTI_IMR2_IM61_Pos) /*!< 0x20000000 */
  8799. #define EXTI_IMR2_IM61 EXTI_IMR2_IM61_Msk /*!< Interrupt Mask on line 61 */
  8800. #define EXTI_IMR2_IM62_Pos (30U)
  8801. #define EXTI_IMR2_IM62_Msk (0x1U << EXTI_IMR2_IM62_Pos) /*!< 0x40000000 */
  8802. #define EXTI_IMR2_IM62 EXTI_IMR2_IM62_Msk /*!< Interrupt Mask on line 62 */
  8803. #define EXTI_IMR2_IM63_Pos (31U)
  8804. #define EXTI_IMR2_IM63_Msk (0x1U << EXTI_IMR2_IM63_Pos) /*!< 0x80000000 */
  8805. #define EXTI_IMR2_IM63 EXTI_IMR2_IM63_Msk /*!< Interrupt Mask on line 63 */
  8806. /******************* Bit definition for EXTI_IMR3 register *******************/
  8807. #define EXTI_IMR3_IM64_Pos (0U)
  8808. #define EXTI_IMR3_IM64_Msk (0x1U << EXTI_IMR3_IM64_Pos) /*!< 0x00000001 */
  8809. #define EXTI_IMR3_IM64 EXTI_IMR3_IM64_Msk /*!< Interrupt Mask on line 64 */
  8810. #define EXTI_IMR3_IM65_Pos (1U)
  8811. #define EXTI_IMR3_IM65_Msk (0x1U << EXTI_IMR3_IM65_Pos) /*!< 0x00000002 */
  8812. #define EXTI_IMR3_IM65 EXTI_IMR3_IM65_Msk /*!< Interrupt Mask on line 65 */
  8813. #define EXTI_IMR3_IM66_Pos (2U)
  8814. #define EXTI_IMR3_IM66_Msk (0x1U << EXTI_IMR3_IM66_Pos) /*!< 0x00000004 */
  8815. #define EXTI_IMR3_IM66 EXTI_IMR3_IM66_Msk /*!< Interrupt Mask on line 66 */
  8816. #define EXTI_IMR3_IM67_Pos (3U)
  8817. #define EXTI_IMR3_IM67_Msk (0x1U << EXTI_IMR3_IM67_Pos) /*!< 0x00000008 */
  8818. #define EXTI_IMR3_IM67 EXTI_IMR3_IM67_Msk /*!< Interrupt Mask on line 67 */
  8819. #define EXTI_IMR3_IM68_Pos (4U)
  8820. #define EXTI_IMR3_IM68_Msk (0x1U << EXTI_IMR3_IM68_Pos) /*!< 0x00000010 */
  8821. #define EXTI_IMR3_IM68 EXTI_IMR3_IM68_Msk /*!< Interrupt Mask on line 68 */
  8822. #define EXTI_IMR3_IM69_Pos (5U)
  8823. #define EXTI_IMR3_IM69_Msk (0x1U << EXTI_IMR3_IM69_Pos) /*!< 0x00000020 */
  8824. #define EXTI_IMR3_IM69 EXTI_IMR3_IM69_Msk /*!< Interrupt Mask on line 69 */
  8825. #define EXTI_IMR3_IM70_Pos (6U)
  8826. #define EXTI_IMR3_IM70_Msk (0x1U << EXTI_IMR3_IM70_Pos) /*!< 0x00000040 */
  8827. #define EXTI_IMR3_IM70 EXTI_IMR3_IM70_Msk /*!< Interrupt Mask on line 70 */
  8828. #define EXTI_IMR3_IM71_Pos (7U)
  8829. #define EXTI_IMR3_IM71_Msk (0x1U << EXTI_IMR3_IM71_Pos) /*!< 0x00000080 */
  8830. #define EXTI_IMR3_IM71 EXTI_IMR3_IM71_Msk /*!< Interrupt Mask on line 71 */
  8831. #define EXTI_IMR3_IM72_Pos (8U)
  8832. #define EXTI_IMR3_IM72_Msk (0x1U << EXTI_IMR3_IM72_Pos) /*!< 0x00000100 */
  8833. #define EXTI_IMR3_IM72 EXTI_IMR3_IM72_Msk /*!< Interrupt Mask on line 72 */
  8834. #define EXTI_IMR3_IM73_Pos (9U)
  8835. #define EXTI_IMR3_IM73_Msk (0x1U << EXTI_IMR3_IM73_Pos) /*!< 0x00000200 */
  8836. #define EXTI_IMR3_IM73 EXTI_IMR3_IM73_Msk /*!< Interrupt Mask on line 73 */
  8837. #define EXTI_IMR3_IM74_Pos (10U)
  8838. #define EXTI_IMR3_IM74_Msk (0x1U << EXTI_IMR3_IM74_Pos) /*!< 0x00000400 */
  8839. #define EXTI_IMR3_IM74 EXTI_IMR3_IM74_Msk /*!< Interrupt Mask on line 74 */
  8840. #define EXTI_IMR3_IM75_Pos (11U)
  8841. #define EXTI_IMR3_IM75_Msk (0x1U << EXTI_IMR3_IM75_Pos) /*!< 0x00000800 */
  8842. #define EXTI_IMR3_IM75 EXTI_IMR3_IM75_Msk /*!< Interrupt Mask on line 75 */
  8843. #define EXTI_IMR3_IM76_Pos (12U)
  8844. #define EXTI_IMR3_IM76_Msk (0x1U << EXTI_IMR3_IM76_Pos) /*!< 0x00001000 */
  8845. #define EXTI_IMR3_IM76 EXTI_IMR3_IM76_Msk /*!< Interrupt Mask on line 76 */
  8846. #define EXTI_IMR3_IM77_Pos (13U)
  8847. #define EXTI_IMR3_IM77_Msk (0x1U << EXTI_IMR3_IM77_Pos) /*!< 0x00002000 */
  8848. #define EXTI_IMR3_IM77 EXTI_IMR3_IM77_Msk /*!< Interrupt Mask on line 77 */
  8849. #define EXTI_IMR3_IM78_Pos (14U)
  8850. #define EXTI_IMR3_IM78_Msk (0x1U << EXTI_IMR3_IM78_Pos) /*!< 0x00004000 */
  8851. #define EXTI_IMR3_IM78 EXTI_IMR3_IM78_Msk /*!< Interrupt Mask on line 78 */
  8852. #define EXTI_IMR3_IM79_Pos (15U)
  8853. #define EXTI_IMR3_IM79_Msk (0x1U << EXTI_IMR3_IM79_Pos) /*!< 0x00008000 */
  8854. #define EXTI_IMR3_IM79 EXTI_IMR3_IM79_Msk /*!< Interrupt Mask on line 79 */
  8855. #define EXTI_IMR3_IM80_Pos (16U)
  8856. #define EXTI_IMR3_IM80_Msk (0x1U << EXTI_IMR3_IM80_Pos) /*!< 0x00010000 */
  8857. #define EXTI_IMR3_IM80 EXTI_IMR3_IM80_Msk /*!< Interrupt Mask on line 80 */
  8858. #define EXTI_IMR3_IM81_Pos (17U)
  8859. #define EXTI_IMR3_IM81_Msk (0x1U << EXTI_IMR3_IM81_Pos) /*!< 0x00020000 */
  8860. #define EXTI_IMR3_IM81 EXTI_IMR3_IM81_Msk /*!< Interrupt Mask on line 81 */
  8861. #define EXTI_IMR3_IM82_Pos (18U)
  8862. #define EXTI_IMR3_IM82_Msk (0x1U << EXTI_IMR3_IM82_Pos) /*!< 0x00040000 */
  8863. #define EXTI_IMR3_IM82 EXTI_IMR3_IM82_Msk /*!< Interrupt Mask on line 82 */
  8864. #define EXTI_IMR3_IM84_Pos (20U)
  8865. #define EXTI_IMR3_IM84_Msk (0x1U << EXTI_IMR3_IM84_Pos) /*!< 0x00100000 */
  8866. #define EXTI_IMR3_IM84 EXTI_IMR3_IM84_Msk /*!< Interrupt Mask on line 84 */
  8867. #define EXTI_IMR3_IM85_Pos (21U)
  8868. #define EXTI_IMR3_IM85_Msk (0x1U << EXTI_IMR3_IM85_Pos) /*!< 0x00200000 */
  8869. #define EXTI_IMR3_IM85 EXTI_IMR3_IM85_Msk /*!< Interrupt Mask on line 85 */
  8870. #define EXTI_IMR3_IM86_Pos (22U)
  8871. #define EXTI_IMR3_IM86_Msk (0x1U << EXTI_IMR3_IM86_Pos) /*!< 0x00400000 */
  8872. #define EXTI_IMR3_IM86 EXTI_IMR3_IM86_Msk /*!< Interrupt Mask on line 86 */
  8873. #define EXTI_IMR3_IM87_Pos (23U)
  8874. #define EXTI_IMR3_IM87_Msk (0x1U << EXTI_IMR3_IM87_Pos) /*!< 0x00800000 */
  8875. #define EXTI_IMR3_IM87 EXTI_IMR3_IM87_Msk /*!< Interrupt Mask on line 87 */
  8876. #define EXTI_IMR3_IM88_Pos (24U)
  8877. #define EXTI_IMR3_IM88_Msk (0x1U << EXTI_IMR3_IM88_Pos) /*!< 0x01000000 */
  8878. #define EXTI_IMR3_IM88 EXTI_IMR3_IM88_Msk /*!< Interrupt Mask on line 88 */
  8879. /******************* Bit definition for EXTI_EMR1 register *******************/
  8880. #define EXTI_EMR1_EM0_Pos (0U)
  8881. #define EXTI_EMR1_EM0_Msk (0x1U << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */
  8882. #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */
  8883. #define EXTI_EMR1_EM1_Pos (1U)
  8884. #define EXTI_EMR1_EM1_Msk (0x1U << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */
  8885. #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */
  8886. #define EXTI_EMR1_EM2_Pos (2U)
  8887. #define EXTI_EMR1_EM2_Msk (0x1U << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */
  8888. #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */
  8889. #define EXTI_EMR1_EM3_Pos (3U)
  8890. #define EXTI_EMR1_EM3_Msk (0x1U << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */
  8891. #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */
  8892. #define EXTI_EMR1_EM4_Pos (4U)
  8893. #define EXTI_EMR1_EM4_Msk (0x1U << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */
  8894. #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */
  8895. #define EXTI_EMR1_EM5_Pos (5U)
  8896. #define EXTI_EMR1_EM5_Msk (0x1U << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */
  8897. #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */
  8898. #define EXTI_EMR1_EM6_Pos (6U)
  8899. #define EXTI_EMR1_EM6_Msk (0x1U << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */
  8900. #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */
  8901. #define EXTI_EMR1_EM7_Pos (7U)
  8902. #define EXTI_EMR1_EM7_Msk (0x1U << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */
  8903. #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */
  8904. #define EXTI_EMR1_EM8_Pos (8U)
  8905. #define EXTI_EMR1_EM8_Msk (0x1U << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */
  8906. #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */
  8907. #define EXTI_EMR1_EM9_Pos (9U)
  8908. #define EXTI_EMR1_EM9_Msk (0x1U << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */
  8909. #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */
  8910. #define EXTI_EMR1_EM10_Pos (10U)
  8911. #define EXTI_EMR1_EM10_Msk (0x1U << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */
  8912. #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */
  8913. #define EXTI_EMR1_EM11_Pos (11U)
  8914. #define EXTI_EMR1_EM11_Msk (0x1U << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */
  8915. #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */
  8916. #define EXTI_EMR1_EM12_Pos (12U)
  8917. #define EXTI_EMR1_EM12_Msk (0x1U << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */
  8918. #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */
  8919. #define EXTI_EMR1_EM13_Pos (13U)
  8920. #define EXTI_EMR1_EM13_Msk (0x1U << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */
  8921. #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */
  8922. #define EXTI_EMR1_EM14_Pos (14U)
  8923. #define EXTI_EMR1_EM14_Msk (0x1U << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */
  8924. #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */
  8925. #define EXTI_EMR1_EM15_Pos (15U)
  8926. #define EXTI_EMR1_EM15_Msk (0x1U << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */
  8927. #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */
  8928. #define EXTI_EMR1_EM16_Pos (16U)
  8929. #define EXTI_EMR1_EM16_Msk (0x1U << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */
  8930. #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */
  8931. #define EXTI_EMR1_EM17_Pos (17U)
  8932. #define EXTI_EMR1_EM17_Msk (0x1U << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */
  8933. #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */
  8934. #define EXTI_EMR1_EM18_Pos (18U)
  8935. #define EXTI_EMR1_EM18_Msk (0x1U << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */
  8936. #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */
  8937. #define EXTI_EMR1_EM20_Pos (20U)
  8938. #define EXTI_EMR1_EM20_Msk (0x1U << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */
  8939. #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */
  8940. #define EXTI_EMR1_EM21_Pos (21U)
  8941. #define EXTI_EMR1_EM21_Msk (0x1U << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */
  8942. #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */
  8943. #define EXTI_EMR1_EM22_Pos (22U)
  8944. #define EXTI_EMR1_EM22_Msk (0x1U << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */
  8945. #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */
  8946. #define EXTI_EMR1_EM23_Pos (23U)
  8947. #define EXTI_EMR1_EM23_Msk (0x1U << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */
  8948. #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */
  8949. #define EXTI_EMR1_EM24_Pos (24U)
  8950. #define EXTI_EMR1_EM24_Msk (0x1U << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */
  8951. #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */
  8952. #define EXTI_EMR1_EM25_Pos (25U)
  8953. #define EXTI_EMR1_EM25_Msk (0x1U << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */
  8954. #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */
  8955. #define EXTI_EMR1_EM26_Pos (26U)
  8956. #define EXTI_EMR1_EM26_Msk (0x1U << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */
  8957. #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */
  8958. #define EXTI_EMR1_EM27_Pos (27U)
  8959. #define EXTI_EMR1_EM27_Msk (0x1U << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */
  8960. #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */
  8961. #define EXTI_EMR1_EM28_Pos (28U)
  8962. #define EXTI_EMR1_EM28_Msk (0x1U << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */
  8963. #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */
  8964. #define EXTI_EMR1_EM29_Pos (29U)
  8965. #define EXTI_EMR1_EM29_Msk (0x1U << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */
  8966. #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */
  8967. #define EXTI_EMR1_EM30_Pos (30U)
  8968. #define EXTI_EMR1_EM30_Msk (0x1U << EXTI_EMR1_EM30_Pos) /*!< 0x40000000 */
  8969. #define EXTI_EMR1_EM30 EXTI_EMR1_EM30_Msk /*!< Event Mask on line 30 */
  8970. #define EXTI_EMR1_EM31_Pos (31U)
  8971. #define EXTI_EMR1_EM31_Msk (0x1U << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */
  8972. #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */
  8973. /******************* Bit definition for EXTI_EMR2 register *******************/
  8974. #define EXTI_EMR2_EM32_Pos (0U)
  8975. #define EXTI_EMR2_EM32_Msk (0x1U << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */
  8976. #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32*/
  8977. #define EXTI_EMR2_EM33_Pos (1U)
  8978. #define EXTI_EMR2_EM33_Msk (0x1U << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */
  8979. #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33*/
  8980. #define EXTI_EMR2_EM34_Pos (2U)
  8981. #define EXTI_EMR2_EM34_Msk (0x1U << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */
  8982. #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34*/
  8983. #define EXTI_EMR2_EM35_Pos (3U)
  8984. #define EXTI_EMR2_EM35_Msk (0x1U << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */
  8985. #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35*/
  8986. #define EXTI_EMR2_EM36_Pos (4U)
  8987. #define EXTI_EMR2_EM36_Msk (0x1U << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */
  8988. #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36*/
  8989. #define EXTI_EMR2_EM37_Pos (5U)
  8990. #define EXTI_EMR2_EM37_Msk (0x1U << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */
  8991. #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37*/
  8992. #define EXTI_EMR2_EM38_Pos (6U)
  8993. #define EXTI_EMR2_EM38_Msk (0x1U << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */
  8994. #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38*/
  8995. #define EXTI_EMR2_EM39_Pos (7U)
  8996. #define EXTI_EMR2_EM39_Msk (0x1U << EXTI_EMR2_EM39_Pos) /*!< 0x00000080 */
  8997. #define EXTI_EMR2_EM39 EXTI_EMR2_EM39_Msk /*!< Event Mask on line 39*/
  8998. #define EXTI_EMR2_EM40_Pos (8U)
  8999. #define EXTI_EMR2_EM40_Msk (0x1U << EXTI_EMR2_EM40_Pos) /*!< 0x00000100 */
  9000. #define EXTI_EMR2_EM40 EXTI_EMR2_EM40_Msk /*!< Event Mask on line 40*/
  9001. #define EXTI_EMR2_EM41_Pos (9U)
  9002. #define EXTI_EMR2_EM41_Msk (0x1U << EXTI_EMR2_EM41_Pos) /*!< 0x00000200 */
  9003. #define EXTI_EMR2_EM41 EXTI_EMR2_EM41_Msk /*!< Event Mask on line 41*/
  9004. #define EXTI_EMR2_EM42_Pos (10U)
  9005. #define EXTI_EMR2_EM42_Msk (0x1U << EXTI_EMR2_EM42_Pos) /*!< 0x00000400 */
  9006. #define EXTI_EMR2_EM42 EXTI_EMR2_EM42_Msk /*!< Event Mask on line 42 */
  9007. #define EXTI_EMR2_EM43_Pos (11U)
  9008. #define EXTI_EMR2_EM43_Msk (0x1U << EXTI_EMR2_EM43_Pos) /*!< 0x00000800 */
  9009. #define EXTI_EMR2_EM43 EXTI_EMR2_EM43_Msk /*!< Event Mask on line 43 */
  9010. #define EXTI_EMR2_EM44_Pos (12U)
  9011. #define EXTI_EMR2_EM44_Msk (0x1U << EXTI_EMR2_EM44_Pos) /*!< 0x00001000 */
  9012. #define EXTI_EMR2_EM44 EXTI_EMR2_EM44_Msk /*!< Event Mask on line 44 */
  9013. #define EXTI_EMR2_EM45_Pos (13U)
  9014. #define EXTI_EMR2_EM45_Msk (0x1U << EXTI_EMR2_EM45_Pos) /*!< 0x00002000 */
  9015. #define EXTI_EMR2_EM45 EXTI_EMR2_EM45_Msk /*!< Event Mask on line 45 */
  9016. #define EXTI_EMR2_EM46_Pos (14U)
  9017. #define EXTI_EMR2_EM46_Msk (0x1U << EXTI_EMR2_EM46_Pos) /*!< 0x00004000 */
  9018. #define EXTI_EMR2_EM46 EXTI_EMR2_EM46_Msk /*!< Event Mask on line 46 */
  9019. #define EXTI_EMR2_EM47_Pos (15U)
  9020. #define EXTI_EMR2_EM47_Msk (0x1U << EXTI_EMR2_EM47_Pos) /*!< 0x00008000 */
  9021. #define EXTI_EMR2_EM47 EXTI_EMR2_EM47_Msk /*!< Event Mask on line 47 */
  9022. #define EXTI_EMR2_EM48_Pos (16U)
  9023. #define EXTI_EMR2_EM48_Msk (0x1U << EXTI_EMR2_EM48_Pos) /*!< 0x00010000 */
  9024. #define EXTI_EMR2_EM48 EXTI_EMR2_EM48_Msk /*!< Event Mask on line 48 */
  9025. #define EXTI_EMR2_EM49_Pos (17U)
  9026. #define EXTI_EMR2_EM49_Msk (0x1U << EXTI_EMR2_EM49_Pos) /*!< 0x00020000 */
  9027. #define EXTI_EMR2_EM49 EXTI_EMR2_EM49_Msk /*!< Event Mask on line 49 */
  9028. #define EXTI_EMR2_EM50_Pos (18U)
  9029. #define EXTI_EMR2_EM50_Msk (0x1U << EXTI_EMR2_EM50_Pos) /*!< 0x00040000 */
  9030. #define EXTI_EMR2_EM50 EXTI_EMR2_EM50_Msk /*!< Event Mask on line 50 */
  9031. #define EXTI_EMR2_EM51_Pos (19U)
  9032. #define EXTI_EMR2_EM51_Msk (0x1U << EXTI_EMR2_EM51_Pos) /*!< 0x00080000 */
  9033. #define EXTI_EMR2_EM51 EXTI_EMR2_EM51_Msk /*!< Event Mask on line 51 */
  9034. #define EXTI_EMR2_EM52_Pos (20U)
  9035. #define EXTI_EMR2_EM52_Msk (0x1U << EXTI_EMR2_EM52_Pos) /*!< 0x00100000 */
  9036. #define EXTI_EMR2_EM52 EXTI_EMR2_EM52_Msk /*!< Event Mask on line 52 */
  9037. #define EXTI_EMR2_EM53_Pos (21U)
  9038. #define EXTI_EMR2_EM53_Msk (0x1U << EXTI_EMR2_EM53_Pos) /*!< 0x00200000 */
  9039. #define EXTI_EMR2_EM53 EXTI_EMR2_EM53_Msk /*!< Event Mask on line 53 */
  9040. #define EXTI_EMR2_EM54_Pos (22U)
  9041. #define EXTI_EMR2_EM54_Msk (0x1U << EXTI_EMR2_EM54_Pos) /*!< 0x00400000 */
  9042. #define EXTI_EMR2_EM54 EXTI_EMR2_EM54_Msk /*!< Event Mask on line 54 */
  9043. #define EXTI_EMR2_EM55_Pos (23U)
  9044. #define EXTI_EMR2_EM55_Msk (0x1U << EXTI_EMR2_EM55_Pos) /*!< 0x00800000 */
  9045. #define EXTI_EMR2_EM55 EXTI_EMR2_EM55_Msk /*!< Event Mask on line 55 */
  9046. #define EXTI_EMR2_EM56_Pos (24U)
  9047. #define EXTI_EMR2_EM56_Msk (0x1U << EXTI_EMR2_EM56_Pos) /*!< 0x01000000 */
  9048. #define EXTI_EMR2_EM56 EXTI_EMR2_EM56_Msk /*!< Event Mask on line 56 */
  9049. #define EXTI_EMR2_EM57_Pos (25U)
  9050. #define EXTI_EMR2_EM57_Msk (0x1U << EXTI_EMR2_EM57_Pos) /*!< 0x02000000 */
  9051. #define EXTI_EMR2_EM57 EXTI_EMR2_EM57_Msk /*!< Event Mask on line 57 */
  9052. #define EXTI_EMR2_EM58_Pos (26U)
  9053. #define EXTI_EMR2_EM58_Msk (0x1U << EXTI_EMR2_EM58_Pos) /*!< 0x04000000 */
  9054. #define EXTI_EMR2_EM58 EXTI_EMR2_EM58_Msk /*!< Event Mask on line 58 */
  9055. #define EXTI_EMR2_EM59_Pos (27U)
  9056. #define EXTI_EMR2_EM59_Msk (0x1U << EXTI_EMR2_EM59_Pos) /*!< 0x08000000 */
  9057. #define EXTI_EMR2_EM59 EXTI_EMR2_EM59_Msk /*!< Event Mask on line 59 */
  9058. #define EXTI_EMR2_EM60_Pos (28U)
  9059. #define EXTI_EMR2_EM60_Msk (0x1U << EXTI_EMR2_EM60_Pos) /*!< 0x10000000 */
  9060. #define EXTI_EMR2_EM60 EXTI_EMR2_EM60_Msk /*!< Event Mask on line 60 */
  9061. #define EXTI_EMR2_EM61_Pos (29U)
  9062. #define EXTI_EMR2_EM61_Msk (0x1U << EXTI_EMR2_EM61_Pos) /*!< 0x20000000 */
  9063. #define EXTI_EMR2_EM61 EXTI_EMR2_EM61_Msk /*!< Event Mask on line 61 */
  9064. #define EXTI_EMR2_EM62_Pos (30U)
  9065. #define EXTI_EMR2_EM62_Msk (0x1U << EXTI_EMR2_EM62_Pos) /*!< 0x40000000 */
  9066. #define EXTI_EMR2_EM62 EXTI_EMR2_EM62_Msk /*!< Event Mask on line 62 */
  9067. #define EXTI_EMR2_EM63_Pos (31U)
  9068. #define EXTI_EMR2_EM63_Msk (0x1U << EXTI_EMR2_EM63_Pos) /*!< 0x80000000 */
  9069. #define EXTI_EMR2_EM63 EXTI_EMR2_EM63_Msk /*!< Event Mask on line 63 */
  9070. /******************* Bit definition for EXTI_EMR3 register *******************/
  9071. #define EXTI_EMR3_EM64_Pos (0U)
  9072. #define EXTI_EMR3_EM64_Msk (0x1U << EXTI_EMR3_EM64_Pos) /*!< 0x00000001 */
  9073. #define EXTI_EMR3_EM64 EXTI_EMR3_EM64_Msk /*!< Event Mask on line 64*/
  9074. #define EXTI_EMR3_EM65_Pos (1U)
  9075. #define EXTI_EMR3_EM65_Msk (0x1U << EXTI_EMR3_EM65_Pos) /*!< 0x00000002 */
  9076. #define EXTI_EMR3_EM65 EXTI_EMR3_EM65_Msk /*!< Event Mask on line 65*/
  9077. #define EXTI_EMR3_EM66_Pos (2U)
  9078. #define EXTI_EMR3_EM66_Msk (0x1U << EXTI_EMR3_EM66_Pos) /*!< 0x00000004 */
  9079. #define EXTI_EMR3_EM66 EXTI_EMR3_EM66_Msk /*!< Event Mask on line 66*/
  9080. #define EXTI_EMR3_EM67_Pos (3U)
  9081. #define EXTI_EMR3_EM67_Msk (0x1U << EXTI_EMR3_EM67_Pos) /*!< 0x00000008 */
  9082. #define EXTI_EMR3_EM67 EXTI_EMR3_EM67_Msk /*!< Event Mask on line 67*/
  9083. #define EXTI_EMR3_EM68_Pos (4U)
  9084. #define EXTI_EMR3_EM68_Msk (0x1U << EXTI_EMR3_EM68_Pos) /*!< 0x00000010 */
  9085. #define EXTI_EMR3_EM68 EXTI_EMR3_EM68_Msk /*!< Event Mask on line 68*/
  9086. #define EXTI_EMR3_EM69_Pos (5U)
  9087. #define EXTI_EMR3_EM69_Msk (0x1U << EXTI_EMR3_EM69_Pos) /*!< 0x00000020 */
  9088. #define EXTI_EMR3_EM69 EXTI_EMR3_EM69_Msk /*!< Event Mask on line 69*/
  9089. #define EXTI_EMR3_EM70_Pos (6U)
  9090. #define EXTI_EMR3_EM70_Msk (0x1U << EXTI_EMR3_EM70_Pos) /*!< 0x00000040 */
  9091. #define EXTI_EMR3_EM70 EXTI_EMR3_EM70_Msk /*!< Event Mask on line 70*/
  9092. #define EXTI_EMR3_EM71_Pos (7U)
  9093. #define EXTI_EMR3_EM71_Msk (0x1U << EXTI_EMR3_EM71_Pos) /*!< 0x00000080 */
  9094. #define EXTI_EMR3_EM71 EXTI_EMR3_EM71_Msk /*!< Event Mask on line 71*/
  9095. #define EXTI_EMR3_EM72_Pos (8U)
  9096. #define EXTI_EMR3_EM72_Msk (0x1U << EXTI_EMR3_EM72_Pos) /*!< 0x00000100 */
  9097. #define EXTI_EMR3_EM72 EXTI_EMR3_EM72_Msk /*!< Event Mask on line 72*/
  9098. #define EXTI_EMR3_EM73_Pos (9U)
  9099. #define EXTI_EMR3_EM73_Msk (0x1U << EXTI_EMR3_EM73_Pos) /*!< 0x00000200 */
  9100. #define EXTI_EMR3_EM73 EXTI_EMR3_EM73_Msk /*!< Event Mask on line 73*/
  9101. #define EXTI_EMR3_EM74_Pos (10U)
  9102. #define EXTI_EMR3_EM74_Msk (0x1U << EXTI_EMR3_EM74_Pos) /*!< 0x00000400 */
  9103. #define EXTI_EMR3_EM74 EXTI_EMR3_EM74_Msk /*!< Event Mask on line 74 */
  9104. #define EXTI_EMR3_EM75_Pos (11U)
  9105. #define EXTI_EMR3_EM75_Msk (0x1U << EXTI_EMR3_EM75_Pos) /*!< 0x00000800 */
  9106. #define EXTI_EMR3_EM75 EXTI_EMR3_EM75_Msk /*!< Event Mask on line 75 */
  9107. #define EXTI_EMR3_EM76_Pos (12U)
  9108. #define EXTI_EMR3_EM76_Msk (0x1U << EXTI_EMR3_EM76_Pos) /*!< 0x00001000 */
  9109. #define EXTI_EMR3_EM76 EXTI_EMR3_EM76_Msk /*!< Event Mask on line 76 */
  9110. #define EXTI_EMR3_EM77_Pos (13U)
  9111. #define EXTI_EMR3_EM77_Msk (0x1U << EXTI_EMR3_EM77_Pos) /*!< 0x00002000 */
  9112. #define EXTI_EMR3_EM77 EXTI_EMR3_EM77_Msk /*!< Event Mask on line 77 */
  9113. #define EXTI_EMR3_EM78_Pos (14U)
  9114. #define EXTI_EMR3_EM78_Msk (0x1U << EXTI_EMR3_EM78_Pos) /*!< 0x00004000 */
  9115. #define EXTI_EMR3_EM78 EXTI_EMR3_EM78_Msk /*!< Event Mask on line 78 */
  9116. #define EXTI_EMR3_EM79_Pos (15U)
  9117. #define EXTI_EMR3_EM79_Msk (0x1U << EXTI_EMR3_EM79_Pos) /*!< 0x00008000 */
  9118. #define EXTI_EMR3_EM79 EXTI_EMR3_EM79_Msk /*!< Event Mask on line 79 */
  9119. #define EXTI_EMR3_EM80_Pos (16U)
  9120. #define EXTI_EMR3_EM80_Msk (0x1U << EXTI_EMR3_EM80_Pos) /*!< 0x00010000 */
  9121. #define EXTI_EMR3_EM80 EXTI_EMR3_EM80_Msk /*!< Event Mask on line 80 */
  9122. #define EXTI_EMR3_EM81_Pos (17U)
  9123. #define EXTI_EMR3_EM81_Msk (0x1U << EXTI_EMR3_EM81_Pos) /*!< 0x00020000 */
  9124. #define EXTI_EMR3_EM81 EXTI_EMR3_EM81_Msk /*!< Event Mask on line 81 */
  9125. #define EXTI_EMR3_EM82_Pos (18U)
  9126. #define EXTI_EMR3_EM82_Msk (0x1U << EXTI_EMR3_EM82_Pos) /*!< 0x00040000 */
  9127. #define EXTI_EMR3_EM82 EXTI_EMR3_EM82_Msk /*!< Event Mask on line 82 */
  9128. #define EXTI_EMR3_EM84_Pos (20U)
  9129. #define EXTI_EMR3_EM84_Msk (0x1U << EXTI_EMR3_EM84_Pos) /*!< 0x00100000 */
  9130. #define EXTI_EMR3_EM84 EXTI_EMR3_EM84_Msk /*!< Event Mask on line 84 */
  9131. #define EXTI_EMR3_EM85_Pos (21U)
  9132. #define EXTI_EMR3_EM85_Msk (0x1U << EXTI_EMR3_EM85_Pos) /*!< 0x00200000 */
  9133. #define EXTI_EMR3_EM85 EXTI_EMR3_EM85_Msk /*!< Event Mask on line 85 */
  9134. #define EXTI_EMR3_EM86_Pos (22U)
  9135. #define EXTI_EMR3_EM86_Msk (0x1U << EXTI_EMR3_EM86_Pos) /*!< 0x00400000 */
  9136. #define EXTI_EMR3_EM86 EXTI_EMR3_EM86_Msk /*!< Event Mask on line 86 */
  9137. #define EXTI_EMR3_EM87_Pos (23U)
  9138. #define EXTI_EMR3_EM87_Msk (0x1U << EXTI_EMR3_EM87_Pos) /*!< 0x00800000 */
  9139. #define EXTI_EMR3_EM87 EXTI_EMR3_EM87_Msk /*!< Event Mask on line 87 */
  9140. #define EXTI_EMR3_EM88_Pos (24U)
  9141. #define EXTI_EMR3_EM88_Msk (0x1U << EXTI_EMR3_EM88_Pos) /*!< 0x01000000 */
  9142. #define EXTI_EMR3_EM88 EXTI_EMR3_EM88_Msk /*!< Event Mask on line 88 */
  9143. /****************** Bit definition for EXTI_RTSR1 register *******************/
  9144. #define EXTI_RTSR1_TR0_Pos (0U)
  9145. #define EXTI_RTSR1_TR0_Msk (0x1U << EXTI_RTSR1_TR0_Pos) /*!< 0x00000001 */
  9146. #define EXTI_RTSR1_TR0 EXTI_RTSR1_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  9147. #define EXTI_RTSR1_TR1_Pos (1U)
  9148. #define EXTI_RTSR1_TR1_Msk (0x1U << EXTI_RTSR1_TR1_Pos) /*!< 0x00000002 */
  9149. #define EXTI_RTSR1_TR1 EXTI_RTSR1_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  9150. #define EXTI_RTSR1_TR2_Pos (2U)
  9151. #define EXTI_RTSR1_TR2_Msk (0x1U << EXTI_RTSR1_TR2_Pos) /*!< 0x00000004 */
  9152. #define EXTI_RTSR1_TR2 EXTI_RTSR1_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  9153. #define EXTI_RTSR1_TR3_Pos (3U)
  9154. #define EXTI_RTSR1_TR3_Msk (0x1U << EXTI_RTSR1_TR3_Pos) /*!< 0x00000008 */
  9155. #define EXTI_RTSR1_TR3 EXTI_RTSR1_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  9156. #define EXTI_RTSR1_TR4_Pos (4U)
  9157. #define EXTI_RTSR1_TR4_Msk (0x1U << EXTI_RTSR1_TR4_Pos) /*!< 0x00000010 */
  9158. #define EXTI_RTSR1_TR4 EXTI_RTSR1_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  9159. #define EXTI_RTSR1_TR5_Pos (5U)
  9160. #define EXTI_RTSR1_TR5_Msk (0x1U << EXTI_RTSR1_TR5_Pos) /*!< 0x00000020 */
  9161. #define EXTI_RTSR1_TR5 EXTI_RTSR1_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  9162. #define EXTI_RTSR1_TR6_Pos (6U)
  9163. #define EXTI_RTSR1_TR6_Msk (0x1U << EXTI_RTSR1_TR6_Pos) /*!< 0x00000040 */
  9164. #define EXTI_RTSR1_TR6 EXTI_RTSR1_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  9165. #define EXTI_RTSR1_TR7_Pos (7U)
  9166. #define EXTI_RTSR1_TR7_Msk (0x1U << EXTI_RTSR1_TR7_Pos) /*!< 0x00000080 */
  9167. #define EXTI_RTSR1_TR7 EXTI_RTSR1_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  9168. #define EXTI_RTSR1_TR8_Pos (8U)
  9169. #define EXTI_RTSR1_TR8_Msk (0x1U << EXTI_RTSR1_TR8_Pos) /*!< 0x00000100 */
  9170. #define EXTI_RTSR1_TR8 EXTI_RTSR1_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  9171. #define EXTI_RTSR1_TR9_Pos (9U)
  9172. #define EXTI_RTSR1_TR9_Msk (0x1U << EXTI_RTSR1_TR9_Pos) /*!< 0x00000200 */
  9173. #define EXTI_RTSR1_TR9 EXTI_RTSR1_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  9174. #define EXTI_RTSR1_TR10_Pos (10U)
  9175. #define EXTI_RTSR1_TR10_Msk (0x1U << EXTI_RTSR1_TR10_Pos) /*!< 0x00000400 */
  9176. #define EXTI_RTSR1_TR10 EXTI_RTSR1_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  9177. #define EXTI_RTSR1_TR11_Pos (11U)
  9178. #define EXTI_RTSR1_TR11_Msk (0x1U << EXTI_RTSR1_TR11_Pos) /*!< 0x00000800 */
  9179. #define EXTI_RTSR1_TR11 EXTI_RTSR1_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  9180. #define EXTI_RTSR1_TR12_Pos (12U)
  9181. #define EXTI_RTSR1_TR12_Msk (0x1U << EXTI_RTSR1_TR12_Pos) /*!< 0x00001000 */
  9182. #define EXTI_RTSR1_TR12 EXTI_RTSR1_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  9183. #define EXTI_RTSR1_TR13_Pos (13U)
  9184. #define EXTI_RTSR1_TR13_Msk (0x1U << EXTI_RTSR1_TR13_Pos) /*!< 0x00002000 */
  9185. #define EXTI_RTSR1_TR13 EXTI_RTSR1_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  9186. #define EXTI_RTSR1_TR14_Pos (14U)
  9187. #define EXTI_RTSR1_TR14_Msk (0x1U << EXTI_RTSR1_TR14_Pos) /*!< 0x00004000 */
  9188. #define EXTI_RTSR1_TR14 EXTI_RTSR1_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  9189. #define EXTI_RTSR1_TR15_Pos (15U)
  9190. #define EXTI_RTSR1_TR15_Msk (0x1U << EXTI_RTSR1_TR15_Pos) /*!< 0x00008000 */
  9191. #define EXTI_RTSR1_TR15 EXTI_RTSR1_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  9192. #define EXTI_RTSR1_TR16_Pos (16U)
  9193. #define EXTI_RTSR1_TR16_Msk (0x1U << EXTI_RTSR1_TR16_Pos) /*!< 0x00010000 */
  9194. #define EXTI_RTSR1_TR16 EXTI_RTSR1_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  9195. #define EXTI_RTSR1_TR17_Pos (17U)
  9196. #define EXTI_RTSR1_TR17_Msk (0x1U << EXTI_RTSR1_TR17_Pos) /*!< 0x00020000 */
  9197. #define EXTI_RTSR1_TR17 EXTI_RTSR1_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  9198. #define EXTI_RTSR1_TR18_Pos (18U)
  9199. #define EXTI_RTSR1_TR18_Msk (0x1U << EXTI_RTSR1_TR18_Pos) /*!< 0x00040000 */
  9200. #define EXTI_RTSR1_TR18 EXTI_RTSR1_TR18_Msk /*!< Rising trigger event configuration bit of line 18 */
  9201. #define EXTI_RTSR1_TR19_Pos (19U)
  9202. #define EXTI_RTSR1_TR19_Msk (0x1U << EXTI_RTSR1_TR19_Pos) /*!< 0x00080000 */
  9203. #define EXTI_RTSR1_TR19 EXTI_RTSR1_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  9204. #define EXTI_RTSR1_TR20_Pos (20U)
  9205. #define EXTI_RTSR1_TR20_Msk (0x1U << EXTI_RTSR1_TR20_Pos) /*!< 0x00100000 */
  9206. #define EXTI_RTSR1_TR20 EXTI_RTSR1_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  9207. #define EXTI_RTSR1_TR21_Pos (21U)
  9208. #define EXTI_RTSR1_TR21_Msk (0x1U << EXTI_RTSR1_TR21_Pos) /*!< 0x00200000 */
  9209. #define EXTI_RTSR1_TR21 EXTI_RTSR1_TR21_Msk /*!< Rising trigger event configuration bit of line 21 */
  9210. /****************** Bit definition for EXTI_RTSR2 register *******************/
  9211. #define EXTI_RTSR2_TR49_Pos (17U)
  9212. #define EXTI_RTSR2_TR49_Msk (0x1U << EXTI_RTSR2_TR49_Pos) /*!< 0x00020000 */
  9213. #define EXTI_RTSR2_TR49 EXTI_RTSR2_TR49_Msk /*!< Rising trigger event configuration bit of line 49 */
  9214. #define EXTI_RTSR2_TR51_Pos (19U)
  9215. #define EXTI_RTSR2_TR51_Msk (0x1U << EXTI_RTSR2_TR51_Pos) /*!< 0x00080000 */
  9216. #define EXTI_RTSR2_TR51 EXTI_RTSR2_TR51_Msk /*!< Rising trigger event configuration bit of line 51 */
  9217. /****************** Bit definition for EXTI_RTSR3 register *******************/
  9218. #define EXTI_RTSR3_TR82_Pos (18U)
  9219. #define EXTI_RTSR3_TR82_Msk (0x1U << EXTI_RTSR3_TR82_Pos) /*!< 0x00040000 */
  9220. #define EXTI_RTSR3_TR82 EXTI_RTSR3_TR82_Msk /*!< Rising trigger event configuration bit of line 82 */
  9221. #define EXTI_RTSR3_TR84_Pos (20U)
  9222. #define EXTI_RTSR3_TR84_Msk (0x1U << EXTI_RTSR3_TR84_Pos) /*!< 0x00100000 */
  9223. #define EXTI_RTSR3_TR84 EXTI_RTSR3_TR84_Msk /*!< Rising trigger event configuration bit of line 84 */
  9224. #define EXTI_RTSR3_TR85_Pos (21U)
  9225. #define EXTI_RTSR3_TR85_Msk (0x1U << EXTI_RTSR3_TR85_Pos) /*!< 0x00200000 */
  9226. #define EXTI_RTSR3_TR85 EXTI_RTSR3_TR85_Msk /*!< Rising trigger event configuration bit of line 85 */
  9227. #define EXTI_RTSR3_TR86_Pos (22U)
  9228. #define EXTI_RTSR3_TR86_Msk (0x1U << EXTI_RTSR3_TR86_Pos) /*!< 0x00400000 */
  9229. #define EXTI_RTSR3_TR86 EXTI_RTSR3_TR86_Msk /*!< Rising trigger event configuration bit of line 86 */
  9230. /****************** Bit definition for EXTI_FTSR1 register *******************/
  9231. #define EXTI_FTSR1_TR0_Pos (0U)
  9232. #define EXTI_FTSR1_TR0_Msk (0x1U << EXTI_FTSR1_TR0_Pos) /*!< 0x00000001 */
  9233. #define EXTI_FTSR1_TR0 EXTI_FTSR1_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  9234. #define EXTI_FTSR1_TR1_Pos (1U)
  9235. #define EXTI_FTSR1_TR1_Msk (0x1U << EXTI_FTSR1_TR1_Pos) /*!< 0x00000002 */
  9236. #define EXTI_FTSR1_TR1 EXTI_FTSR1_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  9237. #define EXTI_FTSR1_TR2_Pos (2U)
  9238. #define EXTI_FTSR1_TR2_Msk (0x1U << EXTI_FTSR1_TR2_Pos) /*!< 0x00000004 */
  9239. #define EXTI_FTSR1_TR2 EXTI_FTSR1_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  9240. #define EXTI_FTSR1_TR3_Pos (3U)
  9241. #define EXTI_FTSR1_TR3_Msk (0x1U << EXTI_FTSR1_TR3_Pos) /*!< 0x00000008 */
  9242. #define EXTI_FTSR1_TR3 EXTI_FTSR1_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  9243. #define EXTI_FTSR1_TR4_Pos (4U)
  9244. #define EXTI_FTSR1_TR4_Msk (0x1U << EXTI_FTSR1_TR4_Pos) /*!< 0x00000010 */
  9245. #define EXTI_FTSR1_TR4 EXTI_FTSR1_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  9246. #define EXTI_FTSR1_TR5_Pos (5U)
  9247. #define EXTI_FTSR1_TR5_Msk (0x1U << EXTI_FTSR1_TR5_Pos) /*!< 0x00000020 */
  9248. #define EXTI_FTSR1_TR5 EXTI_FTSR1_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  9249. #define EXTI_FTSR1_TR6_Pos (6U)
  9250. #define EXTI_FTSR1_TR6_Msk (0x1U << EXTI_FTSR1_TR6_Pos) /*!< 0x00000040 */
  9251. #define EXTI_FTSR1_TR6 EXTI_FTSR1_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  9252. #define EXTI_FTSR1_TR7_Pos (7U)
  9253. #define EXTI_FTSR1_TR7_Msk (0x1U << EXTI_FTSR1_TR7_Pos) /*!< 0x00000080 */
  9254. #define EXTI_FTSR1_TR7 EXTI_FTSR1_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  9255. #define EXTI_FTSR1_TR8_Pos (8U)
  9256. #define EXTI_FTSR1_TR8_Msk (0x1U << EXTI_FTSR1_TR8_Pos) /*!< 0x00000100 */
  9257. #define EXTI_FTSR1_TR8 EXTI_FTSR1_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  9258. #define EXTI_FTSR1_TR9_Pos (9U)
  9259. #define EXTI_FTSR1_TR9_Msk (0x1U << EXTI_FTSR1_TR9_Pos) /*!< 0x00000200 */
  9260. #define EXTI_FTSR1_TR9 EXTI_FTSR1_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  9261. #define EXTI_FTSR1_TR10_Pos (10U)
  9262. #define EXTI_FTSR1_TR10_Msk (0x1U << EXTI_FTSR1_TR10_Pos) /*!< 0x00000400 */
  9263. #define EXTI_FTSR1_TR10 EXTI_FTSR1_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  9264. #define EXTI_FTSR1_TR11_Pos (11U)
  9265. #define EXTI_FTSR1_TR11_Msk (0x1U << EXTI_FTSR1_TR11_Pos) /*!< 0x00000800 */
  9266. #define EXTI_FTSR1_TR11 EXTI_FTSR1_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  9267. #define EXTI_FTSR1_TR12_Pos (12U)
  9268. #define EXTI_FTSR1_TR12_Msk (0x1U << EXTI_FTSR1_TR12_Pos) /*!< 0x00001000 */
  9269. #define EXTI_FTSR1_TR12 EXTI_FTSR1_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  9270. #define EXTI_FTSR1_TR13_Pos (13U)
  9271. #define EXTI_FTSR1_TR13_Msk (0x1U << EXTI_FTSR1_TR13_Pos) /*!< 0x00002000 */
  9272. #define EXTI_FTSR1_TR13 EXTI_FTSR1_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  9273. #define EXTI_FTSR1_TR14_Pos (14U)
  9274. #define EXTI_FTSR1_TR14_Msk (0x1U << EXTI_FTSR1_TR14_Pos) /*!< 0x00004000 */
  9275. #define EXTI_FTSR1_TR14 EXTI_FTSR1_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  9276. #define EXTI_FTSR1_TR15_Pos (15U)
  9277. #define EXTI_FTSR1_TR15_Msk (0x1U << EXTI_FTSR1_TR15_Pos) /*!< 0x00008000 */
  9278. #define EXTI_FTSR1_TR15 EXTI_FTSR1_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  9279. #define EXTI_FTSR1_TR16_Pos (16U)
  9280. #define EXTI_FTSR1_TR16_Msk (0x1U << EXTI_FTSR1_TR16_Pos) /*!< 0x00010000 */
  9281. #define EXTI_FTSR1_TR16 EXTI_FTSR1_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  9282. #define EXTI_FTSR1_TR17_Pos (17U)
  9283. #define EXTI_FTSR1_TR17_Msk (0x1U << EXTI_FTSR1_TR17_Pos) /*!< 0x00020000 */
  9284. #define EXTI_FTSR1_TR17 EXTI_FTSR1_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  9285. #define EXTI_FTSR1_TR18_Pos (18U)
  9286. #define EXTI_FTSR1_TR18_Msk (0x1U << EXTI_FTSR1_TR18_Pos) /*!< 0x00040000 */
  9287. #define EXTI_FTSR1_TR18 EXTI_FTSR1_TR18_Msk /*!< Falling trigger event configuration bit of line 18 */
  9288. #define EXTI_FTSR1_TR19_Pos (19U)
  9289. #define EXTI_FTSR1_TR19_Msk (0x1U << EXTI_FTSR1_TR19_Pos) /*!< 0x00080000 */
  9290. #define EXTI_FTSR1_TR19 EXTI_FTSR1_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  9291. #define EXTI_FTSR1_TR20_Pos (20U)
  9292. #define EXTI_FTSR1_TR20_Msk (0x1U << EXTI_FTSR1_TR20_Pos) /*!< 0x00100000 */
  9293. #define EXTI_FTSR1_TR20 EXTI_FTSR1_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  9294. #define EXTI_FTSR1_TR21_Pos (21U)
  9295. #define EXTI_FTSR1_TR21_Msk (0x1U << EXTI_FTSR1_TR21_Pos) /*!< 0x00200000 */
  9296. #define EXTI_FTSR1_TR21 EXTI_FTSR1_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  9297. /****************** Bit definition for EXTI_FTSR2 register *******************/
  9298. #define EXTI_FTSR2_TR49_Pos (17U)
  9299. #define EXTI_FTSR2_TR49_Msk (0x1U << EXTI_FTSR2_TR49_Pos) /*!< 0x00020000 */
  9300. #define EXTI_FTSR2_TR49 EXTI_FTSR2_TR49_Msk /*!< Falling trigger event configuration bit of line 49 */
  9301. #define EXTI_FTSR2_TR51_Pos (19U)
  9302. #define EXTI_FTSR2_TR51_Msk (0x1U << EXTI_FTSR2_TR51_Pos) /*!< 0x00080000 */
  9303. #define EXTI_FTSR2_TR51 EXTI_FTSR2_TR51_Msk /*!< Falling trigger event configuration bit of line 51 */
  9304. /****************** Bit definition for EXTI_FTSR3 register *******************/
  9305. #define EXTI_FTSR3_TR82_Pos (18U)
  9306. #define EXTI_FTSR3_TR82_Msk (0x1U << EXTI_FTSR3_TR82_Pos) /*!< 0x00040000 */
  9307. #define EXTI_FTSR3_TR82 EXTI_FTSR3_TR82_Msk /*!< Falling trigger event configuration bit of line 82 */
  9308. #define EXTI_FTSR3_TR84_Pos (20U)
  9309. #define EXTI_FTSR3_TR84_Msk (0x1U << EXTI_FTSR3_TR84_Pos) /*!< 0x00100000 */
  9310. #define EXTI_FTSR3_TR84 EXTI_FTSR3_TR84_Msk /*!< Falling trigger event configuration bit of line 84 */
  9311. #define EXTI_FTSR3_TR85_Pos (21U)
  9312. #define EXTI_FTSR3_TR85_Msk (0x1U << EXTI_FTSR3_TR85_Pos) /*!< 0x00200000 */
  9313. #define EXTI_FTSR3_TR85 EXTI_FTSR3_TR85_Msk /*!< Falling trigger event configuration bit of line 85 */
  9314. #define EXTI_FTSR3_TR86_Pos (22U)
  9315. #define EXTI_FTSR3_TR86_Msk (0x1U << EXTI_FTSR3_TR86_Pos) /*!< 0x00400000 */
  9316. #define EXTI_FTSR3_TR86 EXTI_FTSR3_TR86_Msk /*!< Falling trigger event configuration bit of line 86 */
  9317. /****************** Bit definition for EXTI_SWIER1 register ******************/
  9318. #define EXTI_SWIER1_SWIER0_Pos (0U)
  9319. #define EXTI_SWIER1_SWIER0_Msk (0x1U << EXTI_SWIER1_SWIER0_Pos) /*!< 0x00000001 */
  9320. #define EXTI_SWIER1_SWIER0 EXTI_SWIER1_SWIER0_Msk /*!< Software Interrupt on line 0 */
  9321. #define EXTI_SWIER1_SWIER1_Pos (1U)
  9322. #define EXTI_SWIER1_SWIER1_Msk (0x1U << EXTI_SWIER1_SWIER1_Pos) /*!< 0x00000002 */
  9323. #define EXTI_SWIER1_SWIER1 EXTI_SWIER1_SWIER1_Msk /*!< Software Interrupt on line 1 */
  9324. #define EXTI_SWIER1_SWIER2_Pos (2U)
  9325. #define EXTI_SWIER1_SWIER2_Msk (0x1U << EXTI_SWIER1_SWIER2_Pos) /*!< 0x00000004 */
  9326. #define EXTI_SWIER1_SWIER2 EXTI_SWIER1_SWIER2_Msk /*!< Software Interrupt on line 2 */
  9327. #define EXTI_SWIER1_SWIER3_Pos (3U)
  9328. #define EXTI_SWIER1_SWIER3_Msk (0x1U << EXTI_SWIER1_SWIER3_Pos) /*!< 0x00000008 */
  9329. #define EXTI_SWIER1_SWIER3 EXTI_SWIER1_SWIER3_Msk /*!< Software Interrupt on line 3 */
  9330. #define EXTI_SWIER1_SWIER4_Pos (4U)
  9331. #define EXTI_SWIER1_SWIER4_Msk (0x1U << EXTI_SWIER1_SWIER4_Pos) /*!< 0x00000010 */
  9332. #define EXTI_SWIER1_SWIER4 EXTI_SWIER1_SWIER4_Msk /*!< Software Interrupt on line 4 */
  9333. #define EXTI_SWIER1_SWIER5_Pos (5U)
  9334. #define EXTI_SWIER1_SWIER5_Msk (0x1U << EXTI_SWIER1_SWIER5_Pos) /*!< 0x00000020 */
  9335. #define EXTI_SWIER1_SWIER5 EXTI_SWIER1_SWIER5_Msk /*!< Software Interrupt on line 5 */
  9336. #define EXTI_SWIER1_SWIER6_Pos (6U)
  9337. #define EXTI_SWIER1_SWIER6_Msk (0x1U << EXTI_SWIER1_SWIER6_Pos) /*!< 0x00000040 */
  9338. #define EXTI_SWIER1_SWIER6 EXTI_SWIER1_SWIER6_Msk /*!< Software Interrupt on line 6 */
  9339. #define EXTI_SWIER1_SWIER7_Pos (7U)
  9340. #define EXTI_SWIER1_SWIER7_Msk (0x1U << EXTI_SWIER1_SWIER7_Pos) /*!< 0x00000080 */
  9341. #define EXTI_SWIER1_SWIER7 EXTI_SWIER1_SWIER7_Msk /*!< Software Interrupt on line 7 */
  9342. #define EXTI_SWIER1_SWIER8_Pos (8U)
  9343. #define EXTI_SWIER1_SWIER8_Msk (0x1U << EXTI_SWIER1_SWIER8_Pos) /*!< 0x00000100 */
  9344. #define EXTI_SWIER1_SWIER8 EXTI_SWIER1_SWIER8_Msk /*!< Software Interrupt on line 8 */
  9345. #define EXTI_SWIER1_SWIER9_Pos (9U)
  9346. #define EXTI_SWIER1_SWIER9_Msk (0x1U << EXTI_SWIER1_SWIER9_Pos) /*!< 0x00000200 */
  9347. #define EXTI_SWIER1_SWIER9 EXTI_SWIER1_SWIER9_Msk /*!< Software Interrupt on line 9 */
  9348. #define EXTI_SWIER1_SWIER10_Pos (10U)
  9349. #define EXTI_SWIER1_SWIER10_Msk (0x1U << EXTI_SWIER1_SWIER10_Pos) /*!< 0x00000400 */
  9350. #define EXTI_SWIER1_SWIER10 EXTI_SWIER1_SWIER10_Msk /*!< Software Interrupt on line 10 */
  9351. #define EXTI_SWIER1_SWIER11_Pos (11U)
  9352. #define EXTI_SWIER1_SWIER11_Msk (0x1U << EXTI_SWIER1_SWIER11_Pos) /*!< 0x00000800 */
  9353. #define EXTI_SWIER1_SWIER11 EXTI_SWIER1_SWIER11_Msk /*!< Software Interrupt on line 11 */
  9354. #define EXTI_SWIER1_SWIER12_Pos (12U)
  9355. #define EXTI_SWIER1_SWIER12_Msk (0x1U << EXTI_SWIER1_SWIER12_Pos) /*!< 0x00001000 */
  9356. #define EXTI_SWIER1_SWIER12 EXTI_SWIER1_SWIER12_Msk /*!< Software Interrupt on line 12 */
  9357. #define EXTI_SWIER1_SWIER13_Pos (13U)
  9358. #define EXTI_SWIER1_SWIER13_Msk (0x1U << EXTI_SWIER1_SWIER13_Pos) /*!< 0x00002000 */
  9359. #define EXTI_SWIER1_SWIER13 EXTI_SWIER1_SWIER13_Msk /*!< Software Interrupt on line 13 */
  9360. #define EXTI_SWIER1_SWIER14_Pos (14U)
  9361. #define EXTI_SWIER1_SWIER14_Msk (0x1U << EXTI_SWIER1_SWIER14_Pos) /*!< 0x00004000 */
  9362. #define EXTI_SWIER1_SWIER14 EXTI_SWIER1_SWIER14_Msk /*!< Software Interrupt on line 14 */
  9363. #define EXTI_SWIER1_SWIER15_Pos (15U)
  9364. #define EXTI_SWIER1_SWIER15_Msk (0x1U << EXTI_SWIER1_SWIER15_Pos) /*!< 0x00008000 */
  9365. #define EXTI_SWIER1_SWIER15 EXTI_SWIER1_SWIER15_Msk /*!< Software Interrupt on line 15 */
  9366. #define EXTI_SWIER1_SWIER16_Pos (16U)
  9367. #define EXTI_SWIER1_SWIER16_Msk (0x1U << EXTI_SWIER1_SWIER16_Pos) /*!< 0x00010000 */
  9368. #define EXTI_SWIER1_SWIER16 EXTI_SWIER1_SWIER16_Msk /*!< Software Interrupt on line 16 */
  9369. #define EXTI_SWIER1_SWIER17_Pos (17U)
  9370. #define EXTI_SWIER1_SWIER17_Msk (0x1U << EXTI_SWIER1_SWIER17_Pos) /*!< 0x00020000 */
  9371. #define EXTI_SWIER1_SWIER17 EXTI_SWIER1_SWIER17_Msk /*!< Software Interrupt on line 17 */
  9372. #define EXTI_SWIER1_SWIER18_Pos (18U)
  9373. #define EXTI_SWIER1_SWIER18_Msk (0x1U << EXTI_SWIER1_SWIER18_Pos) /*!< 0x00040000 */
  9374. #define EXTI_SWIER1_SWIER18 EXTI_SWIER1_SWIER18_Msk /*!< Software Interrupt on line 18 */
  9375. #define EXTI_SWIER1_SWIER19_Pos (19U)
  9376. #define EXTI_SWIER1_SWIER19_Msk (0x1U << EXTI_SWIER1_SWIER19_Pos) /*!< 0x00080000 */
  9377. #define EXTI_SWIER1_SWIER19 EXTI_SWIER1_SWIER19_Msk /*!< Software Interrupt on line 19 */
  9378. #define EXTI_SWIER1_SWIER20_Pos (20U)
  9379. #define EXTI_SWIER1_SWIER20_Msk (0x1U << EXTI_SWIER1_SWIER20_Pos) /*!< 0x00100000 */
  9380. #define EXTI_SWIER1_SWIER20 EXTI_SWIER1_SWIER20_Msk /*!< Software Interrupt on line 20 */
  9381. #define EXTI_SWIER1_SWIER21_Pos (21U)
  9382. #define EXTI_SWIER1_SWIER21_Msk (0x1U << EXTI_SWIER1_SWIER21_Pos) /*!< 0x00200000 */
  9383. #define EXTI_SWIER1_SWIER21 EXTI_SWIER1_SWIER21_Msk /*!< Software Interrupt on line 21 */
  9384. /****************** Bit definition for EXTI_SWIER2 register ******************/
  9385. #define EXTI_SWIER2_SWIER49_Pos (17U)
  9386. #define EXTI_SWIER2_SWIER49_Msk (0x1U << EXTI_SWIER2_SWIER49_Pos) /*!< 0x00020000 */
  9387. #define EXTI_SWIER2_SWIER49 EXTI_SWIER2_SWIER49_Msk /*!< Software Interrupt on line 49 */
  9388. #define EXTI_SWIER2_SWIER51_Pos (19U)
  9389. #define EXTI_SWIER2_SWIER51_Msk (0x1U << EXTI_SWIER2_SWIER51_Pos) /*!< 0x00080000 */
  9390. #define EXTI_SWIER2_SWIER51 EXTI_SWIER2_SWIER51_Msk /*!< Software Interrupt on line 51 */
  9391. /****************** Bit definition for EXTI_SWIER3 register ******************/
  9392. #define EXTI_SWIER3_SWIER82_Pos (18U)
  9393. #define EXTI_SWIER3_SWIER82_Msk (0x1U << EXTI_SWIER3_SWIER82_Pos) /*!< 0x00040000 */
  9394. #define EXTI_SWIER3_SWIER82 EXTI_SWIER3_SWIER82_Msk /*!< Software Interrupt on line 82 */
  9395. #define EXTI_SWIER3_SWIER84_Pos (20U)
  9396. #define EXTI_SWIER3_SWIER84_Msk (0x1U << EXTI_SWIER3_SWIER84_Pos) /*!< 0x00100000 */
  9397. #define EXTI_SWIER3_SWIER84 EXTI_SWIER3_SWIER84_Msk /*!< Software Interrupt on line 84 */
  9398. #define EXTI_SWIER3_SWIER85_Pos (21U)
  9399. #define EXTI_SWIER3_SWIER85_Msk (0x1U << EXTI_SWIER3_SWIER85_Pos) /*!< 0x00200000 */
  9400. #define EXTI_SWIER3_SWIER85 EXTI_SWIER3_SWIER85_Msk /*!< Software Interrupt on line 85 */
  9401. #define EXTI_SWIER3_SWIER86_Pos (22U)
  9402. #define EXTI_SWIER3_SWIER86_Msk (0x1U << EXTI_SWIER3_SWIER86_Pos) /*!< 0x00400000 */
  9403. #define EXTI_SWIER3_SWIER86 EXTI_SWIER3_SWIER86_Msk /*!< Software Interrupt on line 86 */
  9404. /****************** Bit definition for EXTI_D3PMR1 register ******************/
  9405. #define EXTI_D3PMR1_MR0_Pos (0U)
  9406. #define EXTI_D3PMR1_MR0_Msk (0x1U << EXTI_D3PMR1_MR0_Pos) /*!< 0x00000001 */
  9407. #define EXTI_D3PMR1_MR0 EXTI_D3PMR1_MR0_Msk /*!< Pending Mask Event for line 0 */
  9408. #define EXTI_D3PMR1_MR1_Pos (1U)
  9409. #define EXTI_D3PMR1_MR1_Msk (0x1U << EXTI_D3PMR1_MR1_Pos) /*!< 0x00000002 */
  9410. #define EXTI_D3PMR1_MR1 EXTI_D3PMR1_MR1_Msk /*!< Pending Mask Event for line 1 */
  9411. #define EXTI_D3PMR1_MR2_Pos (2U)
  9412. #define EXTI_D3PMR1_MR2_Msk (0x1U << EXTI_D3PMR1_MR2_Pos) /*!< 0x00000004 */
  9413. #define EXTI_D3PMR1_MR2 EXTI_D3PMR1_MR2_Msk /*!< Pending Mask Event for line 2 */
  9414. #define EXTI_D3PMR1_MR3_Pos (3U)
  9415. #define EXTI_D3PMR1_MR3_Msk (0x1U << EXTI_D3PMR1_MR3_Pos) /*!< 0x00000008 */
  9416. #define EXTI_D3PMR1_MR3 EXTI_D3PMR1_MR3_Msk /*!< Pending Mask Event for line 3 */
  9417. #define EXTI_D3PMR1_MR4_Pos (4U)
  9418. #define EXTI_D3PMR1_MR4_Msk (0x1U << EXTI_D3PMR1_MR4_Pos) /*!< 0x00000010 */
  9419. #define EXTI_D3PMR1_MR4 EXTI_D3PMR1_MR4_Msk /*!< Pending Mask Event for line 4 */
  9420. #define EXTI_D3PMR1_MR5_Pos (5U)
  9421. #define EXTI_D3PMR1_MR5_Msk (0x1U << EXTI_D3PMR1_MR5_Pos) /*!< 0x00000020 */
  9422. #define EXTI_D3PMR1_MR5 EXTI_D3PMR1_MR5_Msk /*!< Pending Mask Event for line 5 */
  9423. #define EXTI_D3PMR1_MR6_Pos (6U)
  9424. #define EXTI_D3PMR1_MR6_Msk (0x1U << EXTI_D3PMR1_MR6_Pos) /*!< 0x00000040 */
  9425. #define EXTI_D3PMR1_MR6 EXTI_D3PMR1_MR6_Msk /*!< Pending Mask Event for line 6 */
  9426. #define EXTI_D3PMR1_MR7_Pos (7U)
  9427. #define EXTI_D3PMR1_MR7_Msk (0x1U << EXTI_D3PMR1_MR7_Pos) /*!< 0x00000080 */
  9428. #define EXTI_D3PMR1_MR7 EXTI_D3PMR1_MR7_Msk /*!< Pending Mask Event for line 7 */
  9429. #define EXTI_D3PMR1_MR8_Pos (8U)
  9430. #define EXTI_D3PMR1_MR8_Msk (0x1U << EXTI_D3PMR1_MR8_Pos) /*!< 0x00000100 */
  9431. #define EXTI_D3PMR1_MR8 EXTI_D3PMR1_MR8_Msk /*!< Pending Mask Event for line 8 */
  9432. #define EXTI_D3PMR1_MR9_Pos (9U)
  9433. #define EXTI_D3PMR1_MR9_Msk (0x1U << EXTI_D3PMR1_MR9_Pos) /*!< 0x00000200 */
  9434. #define EXTI_D3PMR1_MR9 EXTI_D3PMR1_MR9_Msk /*!< Pending Mask Event for line 9 */
  9435. #define EXTI_D3PMR1_MR10_Pos (10U)
  9436. #define EXTI_D3PMR1_MR10_Msk (0x1U << EXTI_D3PMR1_MR10_Pos) /*!< 0x00000400 */
  9437. #define EXTI_D3PMR1_MR10 EXTI_D3PMR1_MR10_Msk /*!< Pending Mask Event for line 10 */
  9438. #define EXTI_D3PMR1_MR11_Pos (11U)
  9439. #define EXTI_D3PMR1_MR11_Msk (0x1U << EXTI_D3PMR1_MR11_Pos) /*!< 0x00000800 */
  9440. #define EXTI_D3PMR1_MR11 EXTI_D3PMR1_MR11_Msk /*!< Pending Mask Event for line 11 */
  9441. #define EXTI_D3PMR1_MR12_Pos (12U)
  9442. #define EXTI_D3PMR1_MR12_Msk (0x1U << EXTI_D3PMR1_MR12_Pos) /*!< 0x00001000 */
  9443. #define EXTI_D3PMR1_MR12 EXTI_D3PMR1_MR12_Msk /*!< Pending Mask Event for line 12 */
  9444. #define EXTI_D3PMR1_MR13_Pos (13U)
  9445. #define EXTI_D3PMR1_MR13_Msk (0x1U << EXTI_D3PMR1_MR13_Pos) /*!< 0x00002000 */
  9446. #define EXTI_D3PMR1_MR13 EXTI_D3PMR1_MR13_Msk /*!< Pending Mask Event for line 13 */
  9447. #define EXTI_D3PMR1_MR14_Pos (14U)
  9448. #define EXTI_D3PMR1_MR14_Msk (0x1U << EXTI_D3PMR1_MR14_Pos) /*!< 0x00004000 */
  9449. #define EXTI_D3PMR1_MR14 EXTI_D3PMR1_MR14_Msk /*!< Pending Mask Event for line 14 */
  9450. #define EXTI_D3PMR1_MR15_Pos (15U)
  9451. #define EXTI_D3PMR1_MR15_Msk (0x1U << EXTI_D3PMR1_MR15_Pos) /*!< 0x00008000 */
  9452. #define EXTI_D3PMR1_MR15 EXTI_D3PMR1_MR15_Msk /*!< Pending Mask Event for line 15 */
  9453. #define EXTI_D3PMR1_MR19_Pos (19U)
  9454. #define EXTI_D3PMR1_MR19_Msk (0x1U << EXTI_D3PMR1_MR19_Pos) /*!< 0x00080000 */
  9455. #define EXTI_D3PMR1_MR19 EXTI_D3PMR1_MR19_Msk /*!< Pending Mask Event for line 19 */
  9456. #define EXTI_D3PMR1_MR20_Pos (20U)
  9457. #define EXTI_D3PMR1_MR20_Msk (0x1U << EXTI_D3PMR1_MR20_Pos) /*!< 0x00100000 */
  9458. #define EXTI_D3PMR1_MR20 EXTI_D3PMR1_MR20_Msk /*!< Pending Mask Event for line 20 */
  9459. #define EXTI_D3PMR1_MR21_Pos (21U)
  9460. #define EXTI_D3PMR1_MR21_Msk (0x1U << EXTI_D3PMR1_MR21_Pos) /*!< 0x00200000 */
  9461. #define EXTI_D3PMR1_MR21 EXTI_D3PMR1_MR21_Msk /*!< Pending Mask Event for line 21 */
  9462. #define EXTI_D3PMR1_MR25_Pos (24U)
  9463. #define EXTI_D3PMR1_MR25_Msk (0x1U << EXTI_D3PMR1_MR25_Pos) /*!< 0x01000000 */
  9464. #define EXTI_D3PMR1_MR25 EXTI_D3PMR1_MR25_Msk /*!< Pending Mask Event for line 25 */
  9465. /****************** Bit definition for EXTI_D3PMR2 register ******************/
  9466. #define EXTI_D3PMR2_MR34_Pos (2U)
  9467. #define EXTI_D3PMR2_MR34_Msk (0x1U << EXTI_D3PMR2_MR34_Pos) /*!< 0x00000004 */
  9468. #define EXTI_D3PMR2_MR34 EXTI_D3PMR2_MR34_Msk /*!< Pending Mask Event for line 34 */
  9469. #define EXTI_D3PMR2_MR35_Pos (3U)
  9470. #define EXTI_D3PMR2_MR35_Msk (0x1U << EXTI_D3PMR2_MR35_Pos) /*!< 0x00000008 */
  9471. #define EXTI_D3PMR2_MR35 EXTI_D3PMR2_MR35_Msk /*!< Pending Mask Event for line 35 */
  9472. #define EXTI_D3PMR2_MR41_Pos (9U)
  9473. #define EXTI_D3PMR2_MR41_Msk (0x1U << EXTI_D3PMR2_MR41_Pos) /*!< 0x00000200 */
  9474. #define EXTI_D3PMR2_MR41 EXTI_D3PMR2_MR41_Msk /*!< Pending Mask Event for line 41 */
  9475. #define EXTI_D3PMR2_MR48_Pos (16U)
  9476. #define EXTI_D3PMR2_MR48_Msk (0x1U << EXTI_D3PMR2_MR48_Pos) /*!< 0x00010000 */
  9477. #define EXTI_D3PMR2_MR48 EXTI_D3PMR2_MR48_Msk /*!< Pending Mask Event for line 48 */
  9478. #define EXTI_D3PMR2_MR49_Pos (17U)
  9479. #define EXTI_D3PMR2_MR49_Msk (0x1U << EXTI_D3PMR2_MR49_Pos) /*!< 0x00020000 */
  9480. #define EXTI_D3PMR2_MR49 EXTI_D3PMR2_MR49_Msk /*!< Pending Mask Event for line 49 */
  9481. #define EXTI_D3PMR2_MR50_Pos (18U)
  9482. #define EXTI_D3PMR2_MR50_Msk (0x1U << EXTI_D3PMR2_MR50_Pos) /*!< 0x00040000 */
  9483. #define EXTI_D3PMR2_MR50 EXTI_D3PMR2_MR50_Msk /*!< Pending Mask Event for line 50 */
  9484. #define EXTI_D3PMR2_MR51_Pos (19U)
  9485. #define EXTI_D3PMR2_MR51_Msk (0x1U << EXTI_D3PMR2_MR51_Pos) /*!< 0x00080000 */
  9486. #define EXTI_D3PMR2_MR51 EXTI_D3PMR2_MR51_Msk /*!< Pending Mask Event for line 51 */
  9487. #define EXTI_D3PMR2_MR52_Pos (20U)
  9488. #define EXTI_D3PMR2_MR52_Msk (0x1U << EXTI_D3PMR2_MR52_Pos) /*!< 0x00100000 */
  9489. #define EXTI_D3PMR2_MR52 EXTI_D3PMR2_MR52_Msk /*!< Pending Mask Event for line 52 */
  9490. #define EXTI_D3PMR2_MR53_Pos (21U)
  9491. #define EXTI_D3PMR2_MR53_Msk (0x1U << EXTI_D3PMR2_MR53_Pos) /*!< 0x00200000 */
  9492. #define EXTI_D3PMR2_MR53 EXTI_D3PMR2_MR53_Msk /*!< Pending Mask Event for line 53 */
  9493. /****************** Bit definition for EXTI_D3PMR3 register ******************/
  9494. #define EXTI_D3PMR3_MR88_Pos (24U)
  9495. #define EXTI_D3PMR3_MR88_Msk (0x1U << EXTI_D3PMR3_MR88_Pos) /*!< 0x01000000 */
  9496. #define EXTI_D3PMR3_MR88 EXTI_D3PMR3_MR88_Msk /*!< Pending Mask Event for line 88 */
  9497. /******************* Bit definition for EXTI_PR1 register ********************/
  9498. #define EXTI_PR1_PR0_Pos (0U)
  9499. #define EXTI_PR1_PR0_Msk (0x1U << EXTI_PR1_PR0_Pos) /*!< 0x00000001 */
  9500. #define EXTI_PR1_PR0 EXTI_PR1_PR0_Msk /*!< Pending bit for line 0 */
  9501. #define EXTI_PR1_PR1_Pos (1U)
  9502. #define EXTI_PR1_PR1_Msk (0x1U << EXTI_PR1_PR1_Pos) /*!< 0x00000002 */
  9503. #define EXTI_PR1_PR1 EXTI_PR1_PR1_Msk /*!< Pending bit for line 1 */
  9504. #define EXTI_PR1_PR2_Pos (2U)
  9505. #define EXTI_PR1_PR2_Msk (0x1U << EXTI_PR1_PR2_Pos) /*!< 0x00000004 */
  9506. #define EXTI_PR1_PR2 EXTI_PR1_PR2_Msk /*!< Pending bit for line 2 */
  9507. #define EXTI_PR1_PR3_Pos (3U)
  9508. #define EXTI_PR1_PR3_Msk (0x1U << EXTI_PR1_PR3_Pos) /*!< 0x00000008 */
  9509. #define EXTI_PR1_PR3 EXTI_PR1_PR3_Msk /*!< Pending bit for line 3 */
  9510. #define EXTI_PR1_PR4_Pos (4U)
  9511. #define EXTI_PR1_PR4_Msk (0x1U << EXTI_PR1_PR4_Pos) /*!< 0x00000010 */
  9512. #define EXTI_PR1_PR4 EXTI_PR1_PR4_Msk /*!< Pending bit for line 4 */
  9513. #define EXTI_PR1_PR5_Pos (5U)
  9514. #define EXTI_PR1_PR5_Msk (0x1U << EXTI_PR1_PR5_Pos) /*!< 0x00000020 */
  9515. #define EXTI_PR1_PR5 EXTI_PR1_PR5_Msk /*!< Pending bit for line 5 */
  9516. #define EXTI_PR1_PR6_Pos (6U)
  9517. #define EXTI_PR1_PR6_Msk (0x1U << EXTI_PR1_PR6_Pos) /*!< 0x00000040 */
  9518. #define EXTI_PR1_PR6 EXTI_PR1_PR6_Msk /*!< Pending bit for line 6 */
  9519. #define EXTI_PR1_PR7_Pos (7U)
  9520. #define EXTI_PR1_PR7_Msk (0x1U << EXTI_PR1_PR7_Pos) /*!< 0x00000080 */
  9521. #define EXTI_PR1_PR7 EXTI_PR1_PR7_Msk /*!< Pending bit for line 7 */
  9522. #define EXTI_PR1_PR8_Pos (8U)
  9523. #define EXTI_PR1_PR8_Msk (0x1U << EXTI_PR1_PR8_Pos) /*!< 0x00000100 */
  9524. #define EXTI_PR1_PR8 EXTI_PR1_PR8_Msk /*!< Pending bit for line 8 */
  9525. #define EXTI_PR1_PR9_Pos (9U)
  9526. #define EXTI_PR1_PR9_Msk (0x1U << EXTI_PR1_PR9_Pos) /*!< 0x00000200 */
  9527. #define EXTI_PR1_PR9 EXTI_PR1_PR9_Msk /*!< Pending bit for line 9 */
  9528. #define EXTI_PR1_PR10_Pos (10U)
  9529. #define EXTI_PR1_PR10_Msk (0x1U << EXTI_PR1_PR10_Pos) /*!< 0x00000400 */
  9530. #define EXTI_PR1_PR10 EXTI_PR1_PR10_Msk /*!< Pending bit for line 10 */
  9531. #define EXTI_PR1_PR11_Pos (11U)
  9532. #define EXTI_PR1_PR11_Msk (0x1U << EXTI_PR1_PR11_Pos) /*!< 0x00000800 */
  9533. #define EXTI_PR1_PR11 EXTI_PR1_PR11_Msk /*!< Pending bit for line 11 */
  9534. #define EXTI_PR1_PR12_Pos (12U)
  9535. #define EXTI_PR1_PR12_Msk (0x1U << EXTI_PR1_PR12_Pos) /*!< 0x00001000 */
  9536. #define EXTI_PR1_PR12 EXTI_PR1_PR12_Msk /*!< Pending bit for line 12 */
  9537. #define EXTI_PR1_PR13_Pos (13U)
  9538. #define EXTI_PR1_PR13_Msk (0x1U << EXTI_PR1_PR13_Pos) /*!< 0x00002000 */
  9539. #define EXTI_PR1_PR13 EXTI_PR1_PR13_Msk /*!< Pending bit for line 13 */
  9540. #define EXTI_PR1_PR14_Pos (14U)
  9541. #define EXTI_PR1_PR14_Msk (0x1U << EXTI_PR1_PR14_Pos) /*!< 0x00004000 */
  9542. #define EXTI_PR1_PR14 EXTI_PR1_PR14_Msk /*!< Pending bit for line 14 */
  9543. #define EXTI_PR1_PR15_Pos (15U)
  9544. #define EXTI_PR1_PR15_Msk (0x1U << EXTI_PR1_PR15_Pos) /*!< 0x00008000 */
  9545. #define EXTI_PR1_PR15 EXTI_PR1_PR15_Msk /*!< Pending bit for line 15 */
  9546. #define EXTI_PR1_PR16_Pos (16U)
  9547. #define EXTI_PR1_PR16_Msk (0x1U << EXTI_PR1_PR16_Pos) /*!< 0x00010000 */
  9548. #define EXTI_PR1_PR16 EXTI_PR1_PR16_Msk /*!< Pending bit for line 16 */
  9549. #define EXTI_PR1_PR17_Pos (17U)
  9550. #define EXTI_PR1_PR17_Msk (0x1U << EXTI_PR1_PR17_Pos) /*!< 0x00020000 */
  9551. #define EXTI_PR1_PR17 EXTI_PR1_PR17_Msk /*!< Pending bit for line 17 */
  9552. #define EXTI_PR1_PR18_Pos (18U)
  9553. #define EXTI_PR1_PR18_Msk (0x1U << EXTI_PR1_PR18_Pos) /*!< 0x00040000 */
  9554. #define EXTI_PR1_PR18 EXTI_PR1_PR18_Msk /*!< Pending bit for line 18 */
  9555. #define EXTI_PR1_PR19_Pos (19U)
  9556. #define EXTI_PR1_PR19_Msk (0x1U << EXTI_PR1_PR19_Pos) /*!< 0x00080000 */
  9557. #define EXTI_PR1_PR19 EXTI_PR1_PR19_Msk /*!< Pending bit for line 19 */
  9558. #define EXTI_PR1_PR20_Pos (20U)
  9559. #define EXTI_PR1_PR20_Msk (0x1U << EXTI_PR1_PR20_Pos) /*!< 0x00100000 */
  9560. #define EXTI_PR1_PR20 EXTI_PR1_PR20_Msk /*!< Pending bit for line 20 */
  9561. #define EXTI_PR1_PR21_Pos (21U)
  9562. #define EXTI_PR1_PR21_Msk (0x1U << EXTI_PR1_PR21_Pos) /*!< 0x00200000 */
  9563. #define EXTI_PR1_PR21 EXTI_PR1_PR21_Msk /*!< Pending bit for line 21 */
  9564. /******************* Bit definition for EXTI_PR2 register ********************/
  9565. #define EXTI_PR2_PR49_Pos (17U)
  9566. #define EXTI_PR2_PR49_Msk (0x1U << EXTI_PR2_PR49_Pos) /*!< 0x00020000 */
  9567. #define EXTI_PR2_PR49 EXTI_PR2_PR49_Msk /*!< Pending bit for line 49 */
  9568. #define EXTI_PR2_PR51_Pos (19U)
  9569. #define EXTI_PR2_PR51_Msk (0x1U << EXTI_PR2_PR51_Pos) /*!< 0x00080000 */
  9570. #define EXTI_PR2_PR51 EXTI_PR2_PR51_Msk /*!< Pending bit for line 51 */
  9571. /******************* Bit definition for EXTI_PR3 register ********************/
  9572. #define EXTI_PR3_PR82_Pos (18U)
  9573. #define EXTI_PR3_PR82_Msk (0x1U << EXTI_PR3_PR82_Pos) /*!< 0x00040000 */
  9574. #define EXTI_PR3_PR82 EXTI_PR3_PR82_Msk /*!< Pending bit for line 82 */
  9575. #define EXTI_PR3_PR84_Pos (20U)
  9576. #define EXTI_PR3_PR84_Msk (0x1U << EXTI_PR3_PR84_Pos) /*!< 0x00100000 */
  9577. #define EXTI_PR3_PR84 EXTI_PR3_PR84_Msk /*!< Pending bit for line 84 */
  9578. #define EXTI_PR3_PR85_Pos (21U)
  9579. #define EXTI_PR3_PR85_Msk (0x1U << EXTI_PR3_PR85_Pos) /*!< 0x00200000 */
  9580. #define EXTI_PR3_PR85 EXTI_PR3_PR85_Msk /*!< Pending bit for line 85 */
  9581. #define EXTI_PR3_PR86_Pos (22U)
  9582. #define EXTI_PR3_PR86_Msk (0x1U << EXTI_PR3_PR86_Pos) /*!< 0x00400000 */
  9583. #define EXTI_PR3_PR86 EXTI_PR3_PR86_Msk /*!< Pending bit for line 86 */
  9584. /******************************************************************************/
  9585. /* */
  9586. /* FLASH */
  9587. /* */
  9588. /******************************************************************************/
  9589. /*
  9590. * @brief FLASH Total Sectors Number
  9591. */
  9592. #define FLASH_SECTOR_TOTAL 16
  9593. /******************* Bits definition for FLASH_ACR register **********************/
  9594. #define FLASH_ACR_LATENCY 0x00000007U
  9595. #define FLASH_ACR_LATENCY_0WS 0x00000000U
  9596. #define FLASH_ACR_LATENCY_1WS 0x00000001U
  9597. #define FLASH_ACR_LATENCY_2WS 0x00000002U
  9598. #define FLASH_ACR_LATENCY_3WS 0x00000003U
  9599. #define FLASH_ACR_LATENCY_4WS 0x00000004U
  9600. #define FLASH_ACR_LATENCY_5WS 0x00000005U
  9601. #define FLASH_ACR_LATENCY_6WS 0x00000006U
  9602. #define FLASH_ACR_LATENCY_7WS 0x00000007U
  9603. #define FLASH_ACR_WRHIGHFREQ 0x00000030U
  9604. #define FLASH_ACR_WRHIGHFREQ_0 0x00000000U
  9605. #define FLASH_ACR_WRHIGHFREQ_1 0x00000010U
  9606. #define FLASH_ACR_WRHIGHFREQ_2 0x00000020U
  9607. #define FLASH_ACR_WRHIGHFREQ_3 0x00000030U
  9608. /******************* Bits definition for FLASH_CR register ***********************/
  9609. #define FLASH_CR_LOCK 0x00000001U
  9610. #define FLASH_CR_PG 0x00000002U
  9611. #define FLASH_CR_SER 0x00000004U
  9612. #define FLASH_CR_BER 0x00000008U
  9613. #define FLASH_CR_PSIZE 0x00000030U
  9614. #define FLASH_CR_PSIZE_0 0x00000010U
  9615. #define FLASH_CR_PSIZE_1 0x00000020U
  9616. #define FLASH_CR_FW 0x00000040U
  9617. #define FLASH_CR_START 0x00000080U
  9618. #define FLASH_CR_SNB 0x00000700U
  9619. #define FLASH_CR_SNB_0 0x00000000U
  9620. #define FLASH_CR_SNB_1 0x00000100U
  9621. #define FLASH_CR_SNB_2 0x00000200U
  9622. #define FLASH_CR_SNB_3 0x00000300U
  9623. #define FLASH_CR_SNB_4 0x00000400U
  9624. #define FLASH_CR_SNB_5 0x00000500U
  9625. #define FLASH_CR_SNB_6 0x00000600U
  9626. #define FLASH_CR_SNB_7 0x00000700U
  9627. #define FLASH_CR_CRC_EN 0x00008000U
  9628. #define FLASH_CR_EOPIE 0x00010000U
  9629. #define FLASH_CR_WRPERRIE 0x00020000U
  9630. #define FLASH_CR_PGSERRIE 0x00040000U
  9631. #define FLASH_CR_STRBERRIE 0x00080000U
  9632. #define FLASH_CR_INCERRIE 0x00200000U
  9633. #define FLASH_CR_OPERRIE 0x00400000U
  9634. #define FLASH_CR_RDPERRIE 0x00800000U
  9635. #define FLASH_CR_RDSERRIE 0x01000000U
  9636. #define FLASH_CR_SNECCERRIE 0x02000000U
  9637. #define FLASH_CR_DBECCERRIE 0x04000000U
  9638. #define FLASH_CR_CRCENDIE 0x08000000U
  9639. /******************* Bits definition for FLASH_SR register ***********************/
  9640. #define FLASH_SR_BSY 0x00000001U
  9641. #define FLASH_SR_WBNE 0x00000002U
  9642. #define FLASH_SR_QW 0x00000004U
  9643. #define FLASH_SR_CRC_BUSY 0x00000008U
  9644. #define FLASH_SR_EOP 0x00010000U
  9645. #define FLASH_SR_WRPERR 0x00020000U
  9646. #define FLASH_SR_PGSERR 0x00040000U
  9647. #define FLASH_SR_STRBERR 0x00080000U
  9648. #define FLASH_SR_INCERR 0x00200000U
  9649. #define FLASH_SR_OPERR 0x00400000U
  9650. #define FLASH_SR_RDPERR 0x00800000U
  9651. #define FLASH_SR_RDSERR 0x01000000U
  9652. #define FLASH_SR_SNECCERR 0x02000000U
  9653. #define FLASH_SR_DBECCERR 0x04000000U
  9654. #define FLASH_SR_CRCEND 0x08000000U
  9655. /******************* Bits definition for FLASH_CCR register *******************/
  9656. #define FLASH_CCR_CLR_EOP 0x00010000U
  9657. #define FLASH_CCR_CLR_WRPERR 0x00020000U
  9658. #define FLASH_CCR_CLR_PGSERR 0x00040000U
  9659. #define FLASH_CCR_CLR_STRBERR 0x00080000U
  9660. #define FLASH_CCR_CLR_INCERR 0x00200000U
  9661. #define FLASH_CCR_CLR_OPERR 0x00400000U
  9662. #define FLASH_CCR_CLR_RDPERR 0x00800000U
  9663. #define FLASH_CCR_CLR_RDSERR 0x01000000U
  9664. #define FLASH_CCR_CLR_SNECCERR 0x02000000U
  9665. #define FLASH_CCR_CLR_DBECCERR 0x04000000U
  9666. #define FLASH_CCR_CLR_CRCEND 0x08000000U
  9667. /******************* Bits definition for FLASH_OPTCR register *******************/
  9668. #define FLASH_OPTCR_OPTLOCK 0x00000001U
  9669. #define FLASH_OPTCR_OPTSTART 0x00000002U
  9670. #define FLASH_OPTCR_MER 0x00000008U
  9671. #define FLASH_OPTCR_OPTCHANGEERRIE 0x40000000U
  9672. #define FLASH_OPTCR_SWAP_BANK 0x80000000U
  9673. /******************* Bits definition for FLASH_OPTSR register ***************/
  9674. #define FLASH_OPTSR_OPT_BUSY 0x00000001U
  9675. #define FLASH_OPTSR_BOR_LEV 0x0000000CU
  9676. #define FLASH_OPTSR_BOR_LEV_0 0x00000004U
  9677. #define FLASH_OPTSR_BOR_LEV_1 0x00000008U
  9678. #define FLASH_OPTSR_IWDG1_SW 0x00000010U
  9679. #define FLASH_OPTSR_NRST_STOP_D1 0x00000040U
  9680. #define FLASH_OPTSR_NRST_STBY_D1 0x00000080U
  9681. #define FLASH_OPTSR_RDP 0x0000FF00U
  9682. #define FLASH_OPTCR_RDP_0 0x00000100U
  9683. #define FLASH_OPTCR_RDP_1 0x00000200U
  9684. #define FLASH_OPTCR_RDP_2 0x00000400U
  9685. #define FLASH_OPTCR_RDP_3 0x00000800U
  9686. #define FLASH_OPTCR_RDP_4 0x00001000U
  9687. #define FLASH_OPTCR_RDP_5 0x00002000U
  9688. #define FLASH_OPTCR_RDP_6 0x00004000U
  9689. #define FLASH_OPTCR_RDP_7 0x00008000U
  9690. #define FLASH_OPTSR_FZ_IWDG_STOP 0x00020000U
  9691. #define FLASH_OPTSR_FZ_IWDG_SDBY 0x00040000U
  9692. #define FLASH_OPTSR_ST_RAM_SIZE 0x00180000U
  9693. #define FLASH_OPTSR_ST_RAM_SIZE_0 0x00080000U
  9694. #define FLASH_OPTSR_ST_RAM_SIZE_1 0x00100000U
  9695. #define FLASH_OPTSR_SECURITY 0x00200000U
  9696. #define FLASH_OPTSR_RSS1 0x04000000U
  9697. #define FLASH_OPTSR_RSS2 0x08000000U
  9698. #define FLASH_OPTSR_PERSO_OK 0x10000000U
  9699. #define FLASH_OPTSR_IO_HSLV 0x20000000U
  9700. #define FLASH_OPTSR_OPTCHANGEERR 0x40000000U
  9701. #define FLASH_OPTSR_SWAP_BANK_OPT 0x80000000U
  9702. /******************* Bits definition for FLASH_OPTCCR register *******************/
  9703. #define FLASH_OPTCCR_CLR_OPTCHANGEERR 0x40000000U
  9704. /******************* Bits definition for FLASH_PRAR register *********************/
  9705. #define FLASH_PRAR_PROT_AREA_START 0x00000FFFU
  9706. #define FLASH_PRAR_PROT_AREA_END 0x0FFF0000U
  9707. #define FLASH_PRAR_DMEP 0x80000000U
  9708. /******************* Bits definition for FLASH_SCAR register *********************/
  9709. #define FLASH_SCAR_SEC_AREA_START 0x00000FFFU
  9710. #define FLASH_SCAR_SEC_AREA_END 0x0FFF0000U
  9711. #define FLASH_SCAR_DMES 0x80000000U
  9712. /******************* Bits definition for FLASH_WPSN register *********************/
  9713. #define FLASH_WPSN_WRPSN 0x000000FFU
  9714. /******************* Bits definition for FLASH_BOOT_CUR register ****************/
  9715. #define FLASH_BOOT_ADD0 0x0000FFFFU
  9716. #define FLASH_BOOT_ADD1 0xFFFF0000U
  9717. /******************* Bits definition for FLASH_CRCCR register ********************/
  9718. #define FLASH_CRCCR_CRC_SECT 0x00000007U
  9719. #define FLASH_CRCCR_ALL_BANK 0x00000080U
  9720. #define FLASH_CRCCR_CRC_BY_SECT 0x00000100U
  9721. #define FLASH_CRCCR_ADD_SECT 0x00000200U
  9722. #define FLASH_CRCCR_CLEAN_SECT 0x00000400U
  9723. #define FLASH_CRCCR_START_CRC 0x00010000U
  9724. #define FLASH_CRCCR_CLEAN_CRC 0x00020000U
  9725. #define FLASH_CRCCR_CRC_BURST 0x00300000U
  9726. #define FLASH_CRCCR_CRC_BURST_0 0x00000000U
  9727. #define FLASH_CRCCR_CRC_BURST_1 0x00100000U
  9728. #define FLASH_CRCCR_CRC_BURST_2 0x00200000U
  9729. #define FLASH_CRCCR_CRC_BURST_3 0x00300000U
  9730. /******************* Bits definition for FLASH_CRCSADD register ****************/
  9731. #define FLASH_CRCSADD_CRC_START_ADDR 0xFFFFFFFFU
  9732. /******************* Bits definition for FLASH_CRCEADD register ****************/
  9733. #define FLASH_CRCEADD_CRC_END_ADDR 0xFFFFFFFFU
  9734. /******************* Bits definition for FLASH_CRCDATA register ***************/
  9735. #define FLASH_CRCDATA_CRC_DATA 0xFFFFFFFFU
  9736. /******************* Bits definition for FLASH_ECC_FA register *******************/
  9737. #define FLASH_ECC_FA_FAIL_ECC_ADDR 0x00007FFFU
  9738. /******************************************************************************/
  9739. /* */
  9740. /* Flexible Memory Controller */
  9741. /* */
  9742. /******************************************************************************/
  9743. /****************** Bit definition for FMC_BCR1 register *******************/
  9744. #define FMC_BCR1_MBKEN_Pos (0U)
  9745. #define FMC_BCR1_MBKEN_Msk (0x1U << FMC_BCR1_MBKEN_Pos) /*!< 0x00000001 */
  9746. #define FMC_BCR1_MBKEN FMC_BCR1_MBKEN_Msk /*!<Memory bank enable bit */
  9747. #define FMC_BCR1_MUXEN_Pos (1U)
  9748. #define FMC_BCR1_MUXEN_Msk (0x1U << FMC_BCR1_MUXEN_Pos) /*!< 0x00000002 */
  9749. #define FMC_BCR1_MUXEN FMC_BCR1_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9750. #define FMC_BCR1_MTYP_Pos (2U)
  9751. #define FMC_BCR1_MTYP_Msk (0x3U << FMC_BCR1_MTYP_Pos) /*!< 0x0000000C */
  9752. #define FMC_BCR1_MTYP FMC_BCR1_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9753. #define FMC_BCR1_MTYP_0 (0x1U << FMC_BCR1_MTYP_Pos) /*!< 0x00000004 */
  9754. #define FMC_BCR1_MTYP_1 (0x2U << FMC_BCR1_MTYP_Pos) /*!< 0x00000008 */
  9755. #define FMC_BCR1_MWID_Pos (4U)
  9756. #define FMC_BCR1_MWID_Msk (0x3U << FMC_BCR1_MWID_Pos) /*!< 0x00000030 */
  9757. #define FMC_BCR1_MWID FMC_BCR1_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9758. #define FMC_BCR1_MWID_0 (0x1U << FMC_BCR1_MWID_Pos) /*!< 0x00000010 */
  9759. #define FMC_BCR1_MWID_1 (0x2U << FMC_BCR1_MWID_Pos) /*!< 0x00000020 */
  9760. #define FMC_BCR1_FACCEN_Pos (6U)
  9761. #define FMC_BCR1_FACCEN_Msk (0x1U << FMC_BCR1_FACCEN_Pos) /*!< 0x00000040 */
  9762. #define FMC_BCR1_FACCEN FMC_BCR1_FACCEN_Msk /*!<Flash access enable */
  9763. #define FMC_BCR1_BURSTEN_Pos (8U)
  9764. #define FMC_BCR1_BURSTEN_Msk (0x1U << FMC_BCR1_BURSTEN_Pos) /*!< 0x00000100 */
  9765. #define FMC_BCR1_BURSTEN FMC_BCR1_BURSTEN_Msk /*!<Burst enable bit */
  9766. #define FMC_BCR1_WAITPOL_Pos (9U)
  9767. #define FMC_BCR1_WAITPOL_Msk (0x1U << FMC_BCR1_WAITPOL_Pos) /*!< 0x00000200 */
  9768. #define FMC_BCR1_WAITPOL FMC_BCR1_WAITPOL_Msk /*!<Wait signal polarity bit */
  9769. #define FMC_BCR1_WAITCFG_Pos (11U)
  9770. #define FMC_BCR1_WAITCFG_Msk (0x1U << FMC_BCR1_WAITCFG_Pos) /*!< 0x00000800 */
  9771. #define FMC_BCR1_WAITCFG FMC_BCR1_WAITCFG_Msk /*!<Wait timing configuration */
  9772. #define FMC_BCR1_WREN_Pos (12U)
  9773. #define FMC_BCR1_WREN_Msk (0x1U << FMC_BCR1_WREN_Pos) /*!< 0x00001000 */
  9774. #define FMC_BCR1_WREN FMC_BCR1_WREN_Msk /*!<Write enable bit */
  9775. #define FMC_BCR1_WAITEN_Pos (13U)
  9776. #define FMC_BCR1_WAITEN_Msk (0x1U << FMC_BCR1_WAITEN_Pos) /*!< 0x00002000 */
  9777. #define FMC_BCR1_WAITEN FMC_BCR1_WAITEN_Msk /*!<Wait enable bit */
  9778. #define FMC_BCR1_EXTMOD_Pos (14U)
  9779. #define FMC_BCR1_EXTMOD_Msk (0x1U << FMC_BCR1_EXTMOD_Pos) /*!< 0x00004000 */
  9780. #define FMC_BCR1_EXTMOD FMC_BCR1_EXTMOD_Msk /*!<Extended mode enable */
  9781. #define FMC_BCR1_ASYNCWAIT_Pos (15U)
  9782. #define FMC_BCR1_ASYNCWAIT_Msk (0x1U << FMC_BCR1_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9783. #define FMC_BCR1_ASYNCWAIT FMC_BCR1_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9784. #define FMC_BCR1_CPSIZE_Pos (16U)
  9785. #define FMC_BCR1_CPSIZE_Msk (0x7U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00070000 */
  9786. #define FMC_BCR1_CPSIZE FMC_BCR1_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9787. #define FMC_BCR1_CPSIZE_0 (0x1U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00010000 */
  9788. #define FMC_BCR1_CPSIZE_1 (0x2U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00020000 */
  9789. #define FMC_BCR1_CPSIZE_2 (0x4U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00040000 */
  9790. #define FMC_BCR1_CBURSTRW_Pos (19U)
  9791. #define FMC_BCR1_CBURSTRW_Msk (0x1U << FMC_BCR1_CBURSTRW_Pos) /*!< 0x00080000 */
  9792. #define FMC_BCR1_CBURSTRW FMC_BCR1_CBURSTRW_Msk /*!<Write burst enable */
  9793. #define FMC_BCR1_CCLKEN_Pos (20U)
  9794. #define FMC_BCR1_CCLKEN_Msk (0x1U << FMC_BCR1_CCLKEN_Pos) /*!< 0x00100000 */
  9795. #define FMC_BCR1_CCLKEN FMC_BCR1_CCLKEN_Msk /*!<Continous clock enable */
  9796. #define FMC_BCR1_WFDIS_Pos (21U)
  9797. #define FMC_BCR1_WFDIS_Msk (0x1U << FMC_BCR1_WFDIS_Pos) /*!< 0x00200000 */
  9798. #define FMC_BCR1_WFDIS FMC_BCR1_WFDIS_Msk /*!<Write FIFO Disable */
  9799. #define FMC_BCR1_BMAP_Pos (24U)
  9800. #define FMC_BCR1_BMAP_Msk (0x3U << FMC_BCR1_BMAP_Pos) /*!< 0x03000000 */
  9801. #define FMC_BCR1_BMAP FMC_BCR1_BMAP_Msk /*!<BMAP[1:0] FMC bank mapping */
  9802. #define FMC_BCR1_BMAP_0 (0x1U << FMC_BCR1_BMAP_Pos) /*!< 0x01000000 */
  9803. #define FMC_BCR1_BMAP_1 (0x2U << FMC_BCR1_BMAP_Pos) /*!< 0x02000000 */
  9804. #define FMC_BCR1_FMCEN_Pos (31U)
  9805. #define FMC_BCR1_FMCEN_Msk (0x1U << FMC_BCR1_FMCEN_Pos) /*!< 0x80000000 */
  9806. #define FMC_BCR1_FMCEN FMC_BCR1_FMCEN_Msk /*!<FMC controller Enable */
  9807. /****************** Bit definition for FMC_BCR2 register *******************/
  9808. #define FMC_BCR2_MBKEN_Pos (0U)
  9809. #define FMC_BCR2_MBKEN_Msk (0x1U << FMC_BCR2_MBKEN_Pos) /*!< 0x00000001 */
  9810. #define FMC_BCR2_MBKEN FMC_BCR2_MBKEN_Msk /*!<Memory bank enable bit */
  9811. #define FMC_BCR2_MUXEN_Pos (1U)
  9812. #define FMC_BCR2_MUXEN_Msk (0x1U << FMC_BCR2_MUXEN_Pos) /*!< 0x00000002 */
  9813. #define FMC_BCR2_MUXEN FMC_BCR2_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9814. #define FMC_BCR2_MTYP_Pos (2U)
  9815. #define FMC_BCR2_MTYP_Msk (0x3U << FMC_BCR2_MTYP_Pos) /*!< 0x0000000C */
  9816. #define FMC_BCR2_MTYP FMC_BCR2_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9817. #define FMC_BCR2_MTYP_0 (0x1U << FMC_BCR2_MTYP_Pos) /*!< 0x00000004 */
  9818. #define FMC_BCR2_MTYP_1 (0x2U << FMC_BCR2_MTYP_Pos) /*!< 0x00000008 */
  9819. #define FMC_BCR2_MWID_Pos (4U)
  9820. #define FMC_BCR2_MWID_Msk (0x3U << FMC_BCR2_MWID_Pos) /*!< 0x00000030 */
  9821. #define FMC_BCR2_MWID FMC_BCR2_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9822. #define FMC_BCR2_MWID_0 (0x1U << FMC_BCR2_MWID_Pos) /*!< 0x00000010 */
  9823. #define FMC_BCR2_MWID_1 (0x2U << FMC_BCR2_MWID_Pos) /*!< 0x00000020 */
  9824. #define FMC_BCR2_FACCEN_Pos (6U)
  9825. #define FMC_BCR2_FACCEN_Msk (0x1U << FMC_BCR2_FACCEN_Pos) /*!< 0x00000040 */
  9826. #define FMC_BCR2_FACCEN FMC_BCR2_FACCEN_Msk /*!<Flash access enable */
  9827. #define FMC_BCR2_BURSTEN_Pos (8U)
  9828. #define FMC_BCR2_BURSTEN_Msk (0x1U << FMC_BCR2_BURSTEN_Pos) /*!< 0x00000100 */
  9829. #define FMC_BCR2_BURSTEN FMC_BCR2_BURSTEN_Msk /*!<Burst enable bit */
  9830. #define FMC_BCR2_WAITPOL_Pos (9U)
  9831. #define FMC_BCR2_WAITPOL_Msk (0x1U << FMC_BCR2_WAITPOL_Pos) /*!< 0x00000200 */
  9832. #define FMC_BCR2_WAITPOL FMC_BCR2_WAITPOL_Msk /*!<Wait signal polarity bit */
  9833. #define FMC_BCR2_WAITCFG_Pos (11U)
  9834. #define FMC_BCR2_WAITCFG_Msk (0x1U << FMC_BCR2_WAITCFG_Pos) /*!< 0x00000800 */
  9835. #define FMC_BCR2_WAITCFG FMC_BCR2_WAITCFG_Msk /*!<Wait timing configuration */
  9836. #define FMC_BCR2_WREN_Pos (12U)
  9837. #define FMC_BCR2_WREN_Msk (0x1U << FMC_BCR2_WREN_Pos) /*!< 0x00001000 */
  9838. #define FMC_BCR2_WREN FMC_BCR2_WREN_Msk /*!<Write enable bit */
  9839. #define FMC_BCR2_WAITEN_Pos (13U)
  9840. #define FMC_BCR2_WAITEN_Msk (0x1U << FMC_BCR2_WAITEN_Pos) /*!< 0x00002000 */
  9841. #define FMC_BCR2_WAITEN FMC_BCR2_WAITEN_Msk /*!<Wait enable bit */
  9842. #define FMC_BCR2_EXTMOD_Pos (14U)
  9843. #define FMC_BCR2_EXTMOD_Msk (0x1U << FMC_BCR2_EXTMOD_Pos) /*!< 0x00004000 */
  9844. #define FMC_BCR2_EXTMOD FMC_BCR2_EXTMOD_Msk /*!<Extended mode enable */
  9845. #define FMC_BCR2_ASYNCWAIT_Pos (15U)
  9846. #define FMC_BCR2_ASYNCWAIT_Msk (0x1U << FMC_BCR2_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9847. #define FMC_BCR2_ASYNCWAIT FMC_BCR2_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9848. #define FMC_BCR2_CPSIZE_Pos (16U)
  9849. #define FMC_BCR2_CPSIZE_Msk (0x7U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00070000 */
  9850. #define FMC_BCR2_CPSIZE FMC_BCR2_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9851. #define FMC_BCR2_CPSIZE_0 (0x1U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00010000 */
  9852. #define FMC_BCR2_CPSIZE_1 (0x2U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00020000 */
  9853. #define FMC_BCR2_CPSIZE_2 (0x4U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00040000 */
  9854. #define FMC_BCR2_CBURSTRW_Pos (19U)
  9855. #define FMC_BCR2_CBURSTRW_Msk (0x1U << FMC_BCR2_CBURSTRW_Pos) /*!< 0x00080000 */
  9856. #define FMC_BCR2_CBURSTRW FMC_BCR2_CBURSTRW_Msk /*!<Write burst enable */
  9857. /****************** Bit definition for FMC_BCR3 register *******************/
  9858. #define FMC_BCR3_MBKEN_Pos (0U)
  9859. #define FMC_BCR3_MBKEN_Msk (0x1U << FMC_BCR3_MBKEN_Pos) /*!< 0x00000001 */
  9860. #define FMC_BCR3_MBKEN FMC_BCR3_MBKEN_Msk /*!<Memory bank enable bit */
  9861. #define FMC_BCR3_MUXEN_Pos (1U)
  9862. #define FMC_BCR3_MUXEN_Msk (0x1U << FMC_BCR3_MUXEN_Pos) /*!< 0x00000002 */
  9863. #define FMC_BCR3_MUXEN FMC_BCR3_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9864. #define FMC_BCR3_MTYP_Pos (2U)
  9865. #define FMC_BCR3_MTYP_Msk (0x3U << FMC_BCR3_MTYP_Pos) /*!< 0x0000000C */
  9866. #define FMC_BCR3_MTYP FMC_BCR3_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9867. #define FMC_BCR3_MTYP_0 (0x1U << FMC_BCR3_MTYP_Pos) /*!< 0x00000004 */
  9868. #define FMC_BCR3_MTYP_1 (0x2U << FMC_BCR3_MTYP_Pos) /*!< 0x00000008 */
  9869. #define FMC_BCR3_MWID_Pos (4U)
  9870. #define FMC_BCR3_MWID_Msk (0x3U << FMC_BCR3_MWID_Pos) /*!< 0x00000030 */
  9871. #define FMC_BCR3_MWID FMC_BCR3_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9872. #define FMC_BCR3_MWID_0 (0x1U << FMC_BCR3_MWID_Pos) /*!< 0x00000010 */
  9873. #define FMC_BCR3_MWID_1 (0x2U << FMC_BCR3_MWID_Pos) /*!< 0x00000020 */
  9874. #define FMC_BCR3_FACCEN_Pos (6U)
  9875. #define FMC_BCR3_FACCEN_Msk (0x1U << FMC_BCR3_FACCEN_Pos) /*!< 0x00000040 */
  9876. #define FMC_BCR3_FACCEN FMC_BCR3_FACCEN_Msk /*!<Flash access enable */
  9877. #define FMC_BCR3_BURSTEN_Pos (8U)
  9878. #define FMC_BCR3_BURSTEN_Msk (0x1U << FMC_BCR3_BURSTEN_Pos) /*!< 0x00000100 */
  9879. #define FMC_BCR3_BURSTEN FMC_BCR3_BURSTEN_Msk /*!<Burst enable bit */
  9880. #define FMC_BCR3_WAITPOL_Pos (9U)
  9881. #define FMC_BCR3_WAITPOL_Msk (0x1U << FMC_BCR3_WAITPOL_Pos) /*!< 0x00000200 */
  9882. #define FMC_BCR3_WAITPOL FMC_BCR3_WAITPOL_Msk /*!<Wait signal polarity bit */
  9883. #define FMC_BCR3_WAITCFG_Pos (11U)
  9884. #define FMC_BCR3_WAITCFG_Msk (0x1U << FMC_BCR3_WAITCFG_Pos) /*!< 0x00000800 */
  9885. #define FMC_BCR3_WAITCFG FMC_BCR3_WAITCFG_Msk /*!<Wait timing configuration */
  9886. #define FMC_BCR3_WREN_Pos (12U)
  9887. #define FMC_BCR3_WREN_Msk (0x1U << FMC_BCR3_WREN_Pos) /*!< 0x00001000 */
  9888. #define FMC_BCR3_WREN FMC_BCR3_WREN_Msk /*!<Write enable bit */
  9889. #define FMC_BCR3_WAITEN_Pos (13U)
  9890. #define FMC_BCR3_WAITEN_Msk (0x1U << FMC_BCR3_WAITEN_Pos) /*!< 0x00002000 */
  9891. #define FMC_BCR3_WAITEN FMC_BCR3_WAITEN_Msk /*!<Wait enable bit */
  9892. #define FMC_BCR3_EXTMOD_Pos (14U)
  9893. #define FMC_BCR3_EXTMOD_Msk (0x1U << FMC_BCR3_EXTMOD_Pos) /*!< 0x00004000 */
  9894. #define FMC_BCR3_EXTMOD FMC_BCR3_EXTMOD_Msk /*!<Extended mode enable */
  9895. #define FMC_BCR3_ASYNCWAIT_Pos (15U)
  9896. #define FMC_BCR3_ASYNCWAIT_Msk (0x1U << FMC_BCR3_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9897. #define FMC_BCR3_ASYNCWAIT FMC_BCR3_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9898. #define FMC_BCR3_CPSIZE_Pos (16U)
  9899. #define FMC_BCR3_CPSIZE_Msk (0x7U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00070000 */
  9900. #define FMC_BCR3_CPSIZE FMC_BCR3_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9901. #define FMC_BCR3_CPSIZE_0 (0x1U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00010000 */
  9902. #define FMC_BCR3_CPSIZE_1 (0x2U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00020000 */
  9903. #define FMC_BCR3_CPSIZE_2 (0x4U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00040000 */
  9904. #define FMC_BCR3_CBURSTRW_Pos (19U)
  9905. #define FMC_BCR3_CBURSTRW_Msk (0x1U << FMC_BCR3_CBURSTRW_Pos) /*!< 0x00080000 */
  9906. #define FMC_BCR3_CBURSTRW FMC_BCR3_CBURSTRW_Msk /*!<Write burst enable */
  9907. /****************** Bit definition for FMC_BCR4 register *******************/
  9908. #define FMC_BCR4_MBKEN_Pos (0U)
  9909. #define FMC_BCR4_MBKEN_Msk (0x1U << FMC_BCR4_MBKEN_Pos) /*!< 0x00000001 */
  9910. #define FMC_BCR4_MBKEN FMC_BCR4_MBKEN_Msk /*!<Memory bank enable bit */
  9911. #define FMC_BCR4_MUXEN_Pos (1U)
  9912. #define FMC_BCR4_MUXEN_Msk (0x1U << FMC_BCR4_MUXEN_Pos) /*!< 0x00000002 */
  9913. #define FMC_BCR4_MUXEN FMC_BCR4_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9914. #define FMC_BCR4_MTYP_Pos (2U)
  9915. #define FMC_BCR4_MTYP_Msk (0x3U << FMC_BCR4_MTYP_Pos) /*!< 0x0000000C */
  9916. #define FMC_BCR4_MTYP FMC_BCR4_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9917. #define FMC_BCR4_MTYP_0 (0x1U << FMC_BCR4_MTYP_Pos) /*!< 0x00000004 */
  9918. #define FMC_BCR4_MTYP_1 (0x2U << FMC_BCR4_MTYP_Pos) /*!< 0x00000008 */
  9919. #define FMC_BCR4_MWID_Pos (4U)
  9920. #define FMC_BCR4_MWID_Msk (0x3U << FMC_BCR4_MWID_Pos) /*!< 0x00000030 */
  9921. #define FMC_BCR4_MWID FMC_BCR4_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9922. #define FMC_BCR4_MWID_0 (0x1U << FMC_BCR4_MWID_Pos) /*!< 0x00000010 */
  9923. #define FMC_BCR4_MWID_1 (0x2U << FMC_BCR4_MWID_Pos) /*!< 0x00000020 */
  9924. #define FMC_BCR4_FACCEN_Pos (6U)
  9925. #define FMC_BCR4_FACCEN_Msk (0x1U << FMC_BCR4_FACCEN_Pos) /*!< 0x00000040 */
  9926. #define FMC_BCR4_FACCEN FMC_BCR4_FACCEN_Msk /*!<Flash access enable */
  9927. #define FMC_BCR4_BURSTEN_Pos (8U)
  9928. #define FMC_BCR4_BURSTEN_Msk (0x1U << FMC_BCR4_BURSTEN_Pos) /*!< 0x00000100 */
  9929. #define FMC_BCR4_BURSTEN FMC_BCR4_BURSTEN_Msk /*!<Burst enable bit */
  9930. #define FMC_BCR4_WAITPOL_Pos (9U)
  9931. #define FMC_BCR4_WAITPOL_Msk (0x1U << FMC_BCR4_WAITPOL_Pos) /*!< 0x00000200 */
  9932. #define FMC_BCR4_WAITPOL FMC_BCR4_WAITPOL_Msk /*!<Wait signal polarity bit */
  9933. #define FMC_BCR4_WAITCFG_Pos (11U)
  9934. #define FMC_BCR4_WAITCFG_Msk (0x1U << FMC_BCR4_WAITCFG_Pos) /*!< 0x00000800 */
  9935. #define FMC_BCR4_WAITCFG FMC_BCR4_WAITCFG_Msk /*!<Wait timing configuration */
  9936. #define FMC_BCR4_WREN_Pos (12U)
  9937. #define FMC_BCR4_WREN_Msk (0x1U << FMC_BCR4_WREN_Pos) /*!< 0x00001000 */
  9938. #define FMC_BCR4_WREN FMC_BCR4_WREN_Msk /*!<Write enable bit */
  9939. #define FMC_BCR4_WAITEN_Pos (13U)
  9940. #define FMC_BCR4_WAITEN_Msk (0x1U << FMC_BCR4_WAITEN_Pos) /*!< 0x00002000 */
  9941. #define FMC_BCR4_WAITEN FMC_BCR4_WAITEN_Msk /*!<Wait enable bit */
  9942. #define FMC_BCR4_EXTMOD_Pos (14U)
  9943. #define FMC_BCR4_EXTMOD_Msk (0x1U << FMC_BCR4_EXTMOD_Pos) /*!< 0x00004000 */
  9944. #define FMC_BCR4_EXTMOD FMC_BCR4_EXTMOD_Msk /*!<Extended mode enable */
  9945. #define FMC_BCR4_ASYNCWAIT_Pos (15U)
  9946. #define FMC_BCR4_ASYNCWAIT_Msk (0x1U << FMC_BCR4_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9947. #define FMC_BCR4_ASYNCWAIT FMC_BCR4_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9948. #define FMC_BCR4_CPSIZE_Pos (16U)
  9949. #define FMC_BCR4_CPSIZE_Msk (0x7U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00070000 */
  9950. #define FMC_BCR4_CPSIZE FMC_BCR4_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9951. #define FMC_BCR4_CPSIZE_0 (0x1U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00010000 */
  9952. #define FMC_BCR4_CPSIZE_1 (0x2U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00020000 */
  9953. #define FMC_BCR4_CPSIZE_2 (0x4U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00040000 */
  9954. #define FMC_BCR4_CBURSTRW_Pos (19U)
  9955. #define FMC_BCR4_CBURSTRW_Msk (0x1U << FMC_BCR4_CBURSTRW_Pos) /*!< 0x00080000 */
  9956. #define FMC_BCR4_CBURSTRW FMC_BCR4_CBURSTRW_Msk /*!<Write burst enable */
  9957. /****************** Bit definition for FMC_BTR1 register ******************/
  9958. #define FMC_BTR1_ADDSET_Pos (0U)
  9959. #define FMC_BTR1_ADDSET_Msk (0xFU << FMC_BTR1_ADDSET_Pos) /*!< 0x0000000F */
  9960. #define FMC_BTR1_ADDSET FMC_BTR1_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9961. #define FMC_BTR1_ADDSET_0 (0x1U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000001 */
  9962. #define FMC_BTR1_ADDSET_1 (0x2U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000002 */
  9963. #define FMC_BTR1_ADDSET_2 (0x4U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000004 */
  9964. #define FMC_BTR1_ADDSET_3 (0x8U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000008 */
  9965. #define FMC_BTR1_ADDHLD_Pos (4U)
  9966. #define FMC_BTR1_ADDHLD_Msk (0xFU << FMC_BTR1_ADDHLD_Pos) /*!< 0x000000F0 */
  9967. #define FMC_BTR1_ADDHLD FMC_BTR1_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9968. #define FMC_BTR1_ADDHLD_0 (0x1U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000010 */
  9969. #define FMC_BTR1_ADDHLD_1 (0x2U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000020 */
  9970. #define FMC_BTR1_ADDHLD_2 (0x4U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000040 */
  9971. #define FMC_BTR1_ADDHLD_3 (0x8U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000080 */
  9972. #define FMC_BTR1_DATAST_Pos (8U)
  9973. #define FMC_BTR1_DATAST_Msk (0xFFU << FMC_BTR1_DATAST_Pos) /*!< 0x0000FF00 */
  9974. #define FMC_BTR1_DATAST FMC_BTR1_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  9975. #define FMC_BTR1_DATAST_0 (0x01U << FMC_BTR1_DATAST_Pos) /*!< 0x00000100 */
  9976. #define FMC_BTR1_DATAST_1 (0x02U << FMC_BTR1_DATAST_Pos) /*!< 0x00000200 */
  9977. #define FMC_BTR1_DATAST_2 (0x04U << FMC_BTR1_DATAST_Pos) /*!< 0x00000400 */
  9978. #define FMC_BTR1_DATAST_3 (0x08U << FMC_BTR1_DATAST_Pos) /*!< 0x00000800 */
  9979. #define FMC_BTR1_DATAST_4 (0x10U << FMC_BTR1_DATAST_Pos) /*!< 0x00001000 */
  9980. #define FMC_BTR1_DATAST_5 (0x20U << FMC_BTR1_DATAST_Pos) /*!< 0x00002000 */
  9981. #define FMC_BTR1_DATAST_6 (0x40U << FMC_BTR1_DATAST_Pos) /*!< 0x00004000 */
  9982. #define FMC_BTR1_DATAST_7 (0x80U << FMC_BTR1_DATAST_Pos) /*!< 0x00008000 */
  9983. #define FMC_BTR1_BUSTURN_Pos (16U)
  9984. #define FMC_BTR1_BUSTURN_Msk (0xFU << FMC_BTR1_BUSTURN_Pos) /*!< 0x000F0000 */
  9985. #define FMC_BTR1_BUSTURN FMC_BTR1_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  9986. #define FMC_BTR1_BUSTURN_0 (0x1U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00010000 */
  9987. #define FMC_BTR1_BUSTURN_1 (0x2U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00020000 */
  9988. #define FMC_BTR1_BUSTURN_2 (0x4U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00040000 */
  9989. #define FMC_BTR1_BUSTURN_3 (0x8U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00080000 */
  9990. #define FMC_BTR1_CLKDIV_Pos (20U)
  9991. #define FMC_BTR1_CLKDIV_Msk (0xFU << FMC_BTR1_CLKDIV_Pos) /*!< 0x00F00000 */
  9992. #define FMC_BTR1_CLKDIV FMC_BTR1_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  9993. #define FMC_BTR1_CLKDIV_0 (0x1U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00100000 */
  9994. #define FMC_BTR1_CLKDIV_1 (0x2U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00200000 */
  9995. #define FMC_BTR1_CLKDIV_2 (0x4U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00400000 */
  9996. #define FMC_BTR1_CLKDIV_3 (0x8U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00800000 */
  9997. #define FMC_BTR1_DATLAT_Pos (24U)
  9998. #define FMC_BTR1_DATLAT_Msk (0xFU << FMC_BTR1_DATLAT_Pos) /*!< 0x0F000000 */
  9999. #define FMC_BTR1_DATLAT FMC_BTR1_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  10000. #define FMC_BTR1_DATLAT_0 (0x1U << FMC_BTR1_DATLAT_Pos) /*!< 0x01000000 */
  10001. #define FMC_BTR1_DATLAT_1 (0x2U << FMC_BTR1_DATLAT_Pos) /*!< 0x02000000 */
  10002. #define FMC_BTR1_DATLAT_2 (0x4U << FMC_BTR1_DATLAT_Pos) /*!< 0x04000000 */
  10003. #define FMC_BTR1_DATLAT_3 (0x8U << FMC_BTR1_DATLAT_Pos) /*!< 0x08000000 */
  10004. #define FMC_BTR1_ACCMOD_Pos (28U)
  10005. #define FMC_BTR1_ACCMOD_Msk (0x3U << FMC_BTR1_ACCMOD_Pos) /*!< 0x30000000 */
  10006. #define FMC_BTR1_ACCMOD FMC_BTR1_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10007. #define FMC_BTR1_ACCMOD_0 (0x1U << FMC_BTR1_ACCMOD_Pos) /*!< 0x10000000 */
  10008. #define FMC_BTR1_ACCMOD_1 (0x2U << FMC_BTR1_ACCMOD_Pos) /*!< 0x20000000 */
  10009. /****************** Bit definition for FMC_BTR2 register *******************/
  10010. #define FMC_BTR2_ADDSET_Pos (0U)
  10011. #define FMC_BTR2_ADDSET_Msk (0xFU << FMC_BTR2_ADDSET_Pos) /*!< 0x0000000F */
  10012. #define FMC_BTR2_ADDSET FMC_BTR2_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10013. #define FMC_BTR2_ADDSET_0 (0x1U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000001 */
  10014. #define FMC_BTR2_ADDSET_1 (0x2U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000002 */
  10015. #define FMC_BTR2_ADDSET_2 (0x4U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000004 */
  10016. #define FMC_BTR2_ADDSET_3 (0x8U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000008 */
  10017. #define FMC_BTR2_ADDHLD_Pos (4U)
  10018. #define FMC_BTR2_ADDHLD_Msk (0xFU << FMC_BTR2_ADDHLD_Pos) /*!< 0x000000F0 */
  10019. #define FMC_BTR2_ADDHLD FMC_BTR2_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10020. #define FMC_BTR2_ADDHLD_0 (0x1U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000010 */
  10021. #define FMC_BTR2_ADDHLD_1 (0x2U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000020 */
  10022. #define FMC_BTR2_ADDHLD_2 (0x4U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000040 */
  10023. #define FMC_BTR2_ADDHLD_3 (0x8U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000080 */
  10024. #define FMC_BTR2_DATAST_Pos (8U)
  10025. #define FMC_BTR2_DATAST_Msk (0xFFU << FMC_BTR2_DATAST_Pos) /*!< 0x0000FF00 */
  10026. #define FMC_BTR2_DATAST FMC_BTR2_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10027. #define FMC_BTR2_DATAST_0 (0x01U << FMC_BTR2_DATAST_Pos) /*!< 0x00000100 */
  10028. #define FMC_BTR2_DATAST_1 (0x02U << FMC_BTR2_DATAST_Pos) /*!< 0x00000200 */
  10029. #define FMC_BTR2_DATAST_2 (0x04U << FMC_BTR2_DATAST_Pos) /*!< 0x00000400 */
  10030. #define FMC_BTR2_DATAST_3 (0x08U << FMC_BTR2_DATAST_Pos) /*!< 0x00000800 */
  10031. #define FMC_BTR2_DATAST_4 (0x10U << FMC_BTR2_DATAST_Pos) /*!< 0x00001000 */
  10032. #define FMC_BTR2_DATAST_5 (0x20U << FMC_BTR2_DATAST_Pos) /*!< 0x00002000 */
  10033. #define FMC_BTR2_DATAST_6 (0x40U << FMC_BTR2_DATAST_Pos) /*!< 0x00004000 */
  10034. #define FMC_BTR2_DATAST_7 (0x80U << FMC_BTR2_DATAST_Pos) /*!< 0x00008000 */
  10035. #define FMC_BTR2_BUSTURN_Pos (16U)
  10036. #define FMC_BTR2_BUSTURN_Msk (0xFU << FMC_BTR2_BUSTURN_Pos) /*!< 0x000F0000 */
  10037. #define FMC_BTR2_BUSTURN FMC_BTR2_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10038. #define FMC_BTR2_BUSTURN_0 (0x1U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00010000 */
  10039. #define FMC_BTR2_BUSTURN_1 (0x2U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00020000 */
  10040. #define FMC_BTR2_BUSTURN_2 (0x4U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00040000 */
  10041. #define FMC_BTR2_BUSTURN_3 (0x8U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00080000 */
  10042. #define FMC_BTR2_CLKDIV_Pos (20U)
  10043. #define FMC_BTR2_CLKDIV_Msk (0xFU << FMC_BTR2_CLKDIV_Pos) /*!< 0x00F00000 */
  10044. #define FMC_BTR2_CLKDIV FMC_BTR2_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  10045. #define FMC_BTR2_CLKDIV_0 (0x1U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00100000 */
  10046. #define FMC_BTR2_CLKDIV_1 (0x2U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00200000 */
  10047. #define FMC_BTR2_CLKDIV_2 (0x4U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00400000 */
  10048. #define FMC_BTR2_CLKDIV_3 (0x8U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00800000 */
  10049. #define FMC_BTR2_DATLAT_Pos (24U)
  10050. #define FMC_BTR2_DATLAT_Msk (0xFU << FMC_BTR2_DATLAT_Pos) /*!< 0x0F000000 */
  10051. #define FMC_BTR2_DATLAT FMC_BTR2_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  10052. #define FMC_BTR2_DATLAT_0 (0x1U << FMC_BTR2_DATLAT_Pos) /*!< 0x01000000 */
  10053. #define FMC_BTR2_DATLAT_1 (0x2U << FMC_BTR2_DATLAT_Pos) /*!< 0x02000000 */
  10054. #define FMC_BTR2_DATLAT_2 (0x4U << FMC_BTR2_DATLAT_Pos) /*!< 0x04000000 */
  10055. #define FMC_BTR2_DATLAT_3 (0x8U << FMC_BTR2_DATLAT_Pos) /*!< 0x08000000 */
  10056. #define FMC_BTR2_ACCMOD_Pos (28U)
  10057. #define FMC_BTR2_ACCMOD_Msk (0x3U << FMC_BTR2_ACCMOD_Pos) /*!< 0x30000000 */
  10058. #define FMC_BTR2_ACCMOD FMC_BTR2_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10059. #define FMC_BTR2_ACCMOD_0 (0x1U << FMC_BTR2_ACCMOD_Pos) /*!< 0x10000000 */
  10060. #define FMC_BTR2_ACCMOD_1 (0x2U << FMC_BTR2_ACCMOD_Pos) /*!< 0x20000000 */
  10061. /******************* Bit definition for FMC_BTR3 register *******************/
  10062. #define FMC_BTR3_ADDSET_Pos (0U)
  10063. #define FMC_BTR3_ADDSET_Msk (0xFU << FMC_BTR3_ADDSET_Pos) /*!< 0x0000000F */
  10064. #define FMC_BTR3_ADDSET FMC_BTR3_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10065. #define FMC_BTR3_ADDSET_0 (0x1U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000001 */
  10066. #define FMC_BTR3_ADDSET_1 (0x2U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000002 */
  10067. #define FMC_BTR3_ADDSET_2 (0x4U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000004 */
  10068. #define FMC_BTR3_ADDSET_3 (0x8U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000008 */
  10069. #define FMC_BTR3_ADDHLD_Pos (4U)
  10070. #define FMC_BTR3_ADDHLD_Msk (0xFU << FMC_BTR3_ADDHLD_Pos) /*!< 0x000000F0 */
  10071. #define FMC_BTR3_ADDHLD FMC_BTR3_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10072. #define FMC_BTR3_ADDHLD_0 (0x1U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000010 */
  10073. #define FMC_BTR3_ADDHLD_1 (0x2U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000020 */
  10074. #define FMC_BTR3_ADDHLD_2 (0x4U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000040 */
  10075. #define FMC_BTR3_ADDHLD_3 (0x8U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000080 */
  10076. #define FMC_BTR3_DATAST_Pos (8U)
  10077. #define FMC_BTR3_DATAST_Msk (0xFFU << FMC_BTR3_DATAST_Pos) /*!< 0x0000FF00 */
  10078. #define FMC_BTR3_DATAST FMC_BTR3_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10079. #define FMC_BTR3_DATAST_0 (0x01U << FMC_BTR3_DATAST_Pos) /*!< 0x00000100 */
  10080. #define FMC_BTR3_DATAST_1 (0x02U << FMC_BTR3_DATAST_Pos) /*!< 0x00000200 */
  10081. #define FMC_BTR3_DATAST_2 (0x04U << FMC_BTR3_DATAST_Pos) /*!< 0x00000400 */
  10082. #define FMC_BTR3_DATAST_3 (0x08U << FMC_BTR3_DATAST_Pos) /*!< 0x00000800 */
  10083. #define FMC_BTR3_DATAST_4 (0x10U << FMC_BTR3_DATAST_Pos) /*!< 0x00001000 */
  10084. #define FMC_BTR3_DATAST_5 (0x20U << FMC_BTR3_DATAST_Pos) /*!< 0x00002000 */
  10085. #define FMC_BTR3_DATAST_6 (0x40U << FMC_BTR3_DATAST_Pos) /*!< 0x00004000 */
  10086. #define FMC_BTR3_DATAST_7 (0x80U << FMC_BTR3_DATAST_Pos) /*!< 0x00008000 */
  10087. #define FMC_BTR3_BUSTURN_Pos (16U)
  10088. #define FMC_BTR3_BUSTURN_Msk (0xFU << FMC_BTR3_BUSTURN_Pos) /*!< 0x000F0000 */
  10089. #define FMC_BTR3_BUSTURN FMC_BTR3_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10090. #define FMC_BTR3_BUSTURN_0 (0x1U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00010000 */
  10091. #define FMC_BTR3_BUSTURN_1 (0x2U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00020000 */
  10092. #define FMC_BTR3_BUSTURN_2 (0x4U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00040000 */
  10093. #define FMC_BTR3_BUSTURN_3 (0x8U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00080000 */
  10094. #define FMC_BTR3_CLKDIV_Pos (20U)
  10095. #define FMC_BTR3_CLKDIV_Msk (0xFU << FMC_BTR3_CLKDIV_Pos) /*!< 0x00F00000 */
  10096. #define FMC_BTR3_CLKDIV FMC_BTR3_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  10097. #define FMC_BTR3_CLKDIV_0 (0x1U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00100000 */
  10098. #define FMC_BTR3_CLKDIV_1 (0x2U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00200000 */
  10099. #define FMC_BTR3_CLKDIV_2 (0x4U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00400000 */
  10100. #define FMC_BTR3_CLKDIV_3 (0x8U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00800000 */
  10101. #define FMC_BTR3_DATLAT_Pos (24U)
  10102. #define FMC_BTR3_DATLAT_Msk (0xFU << FMC_BTR3_DATLAT_Pos) /*!< 0x0F000000 */
  10103. #define FMC_BTR3_DATLAT FMC_BTR3_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  10104. #define FMC_BTR3_DATLAT_0 (0x1U << FMC_BTR3_DATLAT_Pos) /*!< 0x01000000 */
  10105. #define FMC_BTR3_DATLAT_1 (0x2U << FMC_BTR3_DATLAT_Pos) /*!< 0x02000000 */
  10106. #define FMC_BTR3_DATLAT_2 (0x4U << FMC_BTR3_DATLAT_Pos) /*!< 0x04000000 */
  10107. #define FMC_BTR3_DATLAT_3 (0x8U << FMC_BTR3_DATLAT_Pos) /*!< 0x08000000 */
  10108. #define FMC_BTR3_ACCMOD_Pos (28U)
  10109. #define FMC_BTR3_ACCMOD_Msk (0x3U << FMC_BTR3_ACCMOD_Pos) /*!< 0x30000000 */
  10110. #define FMC_BTR3_ACCMOD FMC_BTR3_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10111. #define FMC_BTR3_ACCMOD_0 (0x1U << FMC_BTR3_ACCMOD_Pos) /*!< 0x10000000 */
  10112. #define FMC_BTR3_ACCMOD_1 (0x2U << FMC_BTR3_ACCMOD_Pos) /*!< 0x20000000 */
  10113. /****************** Bit definition for FMC_BTR4 register *******************/
  10114. #define FMC_BTR4_ADDSET_Pos (0U)
  10115. #define FMC_BTR4_ADDSET_Msk (0xFU << FMC_BTR4_ADDSET_Pos) /*!< 0x0000000F */
  10116. #define FMC_BTR4_ADDSET FMC_BTR4_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10117. #define FMC_BTR4_ADDSET_0 (0x1U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000001 */
  10118. #define FMC_BTR4_ADDSET_1 (0x2U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000002 */
  10119. #define FMC_BTR4_ADDSET_2 (0x4U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000004 */
  10120. #define FMC_BTR4_ADDSET_3 (0x8U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000008 */
  10121. #define FMC_BTR4_ADDHLD_Pos (4U)
  10122. #define FMC_BTR4_ADDHLD_Msk (0xFU << FMC_BTR4_ADDHLD_Pos) /*!< 0x000000F0 */
  10123. #define FMC_BTR4_ADDHLD FMC_BTR4_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10124. #define FMC_BTR4_ADDHLD_0 (0x1U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000010 */
  10125. #define FMC_BTR4_ADDHLD_1 (0x2U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000020 */
  10126. #define FMC_BTR4_ADDHLD_2 (0x4U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000040 */
  10127. #define FMC_BTR4_ADDHLD_3 (0x8U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000080 */
  10128. #define FMC_BTR4_DATAST_Pos (8U)
  10129. #define FMC_BTR4_DATAST_Msk (0xFFU << FMC_BTR4_DATAST_Pos) /*!< 0x0000FF00 */
  10130. #define FMC_BTR4_DATAST FMC_BTR4_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10131. #define FMC_BTR4_DATAST_0 (0x01U << FMC_BTR4_DATAST_Pos) /*!< 0x00000100 */
  10132. #define FMC_BTR4_DATAST_1 (0x02U << FMC_BTR4_DATAST_Pos) /*!< 0x00000200 */
  10133. #define FMC_BTR4_DATAST_2 (0x04U << FMC_BTR4_DATAST_Pos) /*!< 0x00000400 */
  10134. #define FMC_BTR4_DATAST_3 (0x08U << FMC_BTR4_DATAST_Pos) /*!< 0x00000800 */
  10135. #define FMC_BTR4_DATAST_4 (0x10U << FMC_BTR4_DATAST_Pos) /*!< 0x00001000 */
  10136. #define FMC_BTR4_DATAST_5 (0x20U << FMC_BTR4_DATAST_Pos) /*!< 0x00002000 */
  10137. #define FMC_BTR4_DATAST_6 (0x40U << FMC_BTR4_DATAST_Pos) /*!< 0x00004000 */
  10138. #define FMC_BTR4_DATAST_7 (0x80U << FMC_BTR4_DATAST_Pos) /*!< 0x00008000 */
  10139. #define FMC_BTR4_BUSTURN_Pos (16U)
  10140. #define FMC_BTR4_BUSTURN_Msk (0xFU << FMC_BTR4_BUSTURN_Pos) /*!< 0x000F0000 */
  10141. #define FMC_BTR4_BUSTURN FMC_BTR4_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10142. #define FMC_BTR4_BUSTURN_0 (0x1U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00010000 */
  10143. #define FMC_BTR4_BUSTURN_1 (0x2U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00020000 */
  10144. #define FMC_BTR4_BUSTURN_2 (0x4U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00040000 */
  10145. #define FMC_BTR4_BUSTURN_3 (0x8U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00080000 */
  10146. #define FMC_BTR4_CLKDIV_Pos (20U)
  10147. #define FMC_BTR4_CLKDIV_Msk (0xFU << FMC_BTR4_CLKDIV_Pos) /*!< 0x00F00000 */
  10148. #define FMC_BTR4_CLKDIV FMC_BTR4_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  10149. #define FMC_BTR4_CLKDIV_0 (0x1U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00100000 */
  10150. #define FMC_BTR4_CLKDIV_1 (0x2U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00200000 */
  10151. #define FMC_BTR4_CLKDIV_2 (0x4U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00400000 */
  10152. #define FMC_BTR4_CLKDIV_3 (0x8U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00800000 */
  10153. #define FMC_BTR4_DATLAT_Pos (24U)
  10154. #define FMC_BTR4_DATLAT_Msk (0xFU << FMC_BTR4_DATLAT_Pos) /*!< 0x0F000000 */
  10155. #define FMC_BTR4_DATLAT FMC_BTR4_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  10156. #define FMC_BTR4_DATLAT_0 (0x1U << FMC_BTR4_DATLAT_Pos) /*!< 0x01000000 */
  10157. #define FMC_BTR4_DATLAT_1 (0x2U << FMC_BTR4_DATLAT_Pos) /*!< 0x02000000 */
  10158. #define FMC_BTR4_DATLAT_2 (0x4U << FMC_BTR4_DATLAT_Pos) /*!< 0x04000000 */
  10159. #define FMC_BTR4_DATLAT_3 (0x8U << FMC_BTR4_DATLAT_Pos) /*!< 0x08000000 */
  10160. #define FMC_BTR4_ACCMOD_Pos (28U)
  10161. #define FMC_BTR4_ACCMOD_Msk (0x3U << FMC_BTR4_ACCMOD_Pos) /*!< 0x30000000 */
  10162. #define FMC_BTR4_ACCMOD FMC_BTR4_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10163. #define FMC_BTR4_ACCMOD_0 (0x1U << FMC_BTR4_ACCMOD_Pos) /*!< 0x10000000 */
  10164. #define FMC_BTR4_ACCMOD_1 (0x2U << FMC_BTR4_ACCMOD_Pos) /*!< 0x20000000 */
  10165. /****************** Bit definition for FMC_BWTR1 register ******************/
  10166. #define FMC_BWTR1_ADDSET_Pos (0U)
  10167. #define FMC_BWTR1_ADDSET_Msk (0xFU << FMC_BWTR1_ADDSET_Pos) /*!< 0x0000000F */
  10168. #define FMC_BWTR1_ADDSET FMC_BWTR1_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10169. #define FMC_BWTR1_ADDSET_0 (0x1U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000001 */
  10170. #define FMC_BWTR1_ADDSET_1 (0x2U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000002 */
  10171. #define FMC_BWTR1_ADDSET_2 (0x4U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000004 */
  10172. #define FMC_BWTR1_ADDSET_3 (0x8U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000008 */
  10173. #define FMC_BWTR1_ADDHLD_Pos (4U)
  10174. #define FMC_BWTR1_ADDHLD_Msk (0xFU << FMC_BWTR1_ADDHLD_Pos) /*!< 0x000000F0 */
  10175. #define FMC_BWTR1_ADDHLD FMC_BWTR1_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10176. #define FMC_BWTR1_ADDHLD_0 (0x1U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000010 */
  10177. #define FMC_BWTR1_ADDHLD_1 (0x2U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000020 */
  10178. #define FMC_BWTR1_ADDHLD_2 (0x4U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000040 */
  10179. #define FMC_BWTR1_ADDHLD_3 (0x8U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000080 */
  10180. #define FMC_BWTR1_DATAST_Pos (8U)
  10181. #define FMC_BWTR1_DATAST_Msk (0xFFU << FMC_BWTR1_DATAST_Pos) /*!< 0x0000FF00 */
  10182. #define FMC_BWTR1_DATAST FMC_BWTR1_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10183. #define FMC_BWTR1_DATAST_0 (0x01U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000100 */
  10184. #define FMC_BWTR1_DATAST_1 (0x02U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000200 */
  10185. #define FMC_BWTR1_DATAST_2 (0x04U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000400 */
  10186. #define FMC_BWTR1_DATAST_3 (0x08U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000800 */
  10187. #define FMC_BWTR1_DATAST_4 (0x10U << FMC_BWTR1_DATAST_Pos) /*!< 0x00001000 */
  10188. #define FMC_BWTR1_DATAST_5 (0x20U << FMC_BWTR1_DATAST_Pos) /*!< 0x00002000 */
  10189. #define FMC_BWTR1_DATAST_6 (0x40U << FMC_BWTR1_DATAST_Pos) /*!< 0x00004000 */
  10190. #define FMC_BWTR1_DATAST_7 (0x80U << FMC_BWTR1_DATAST_Pos) /*!< 0x00008000 */
  10191. #define FMC_BWTR1_BUSTURN_Pos (16U)
  10192. #define FMC_BWTR1_BUSTURN_Msk (0xFU << FMC_BWTR1_BUSTURN_Pos) /*!< 0x000F0000 */
  10193. #define FMC_BWTR1_BUSTURN FMC_BWTR1_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10194. #define FMC_BWTR1_BUSTURN_0 (0x1U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00010000 */
  10195. #define FMC_BWTR1_BUSTURN_1 (0x2U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00020000 */
  10196. #define FMC_BWTR1_BUSTURN_2 (0x4U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00040000 */
  10197. #define FMC_BWTR1_BUSTURN_3 (0x8U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00080000 */
  10198. #define FMC_BWTR1_ACCMOD_Pos (28U)
  10199. #define FMC_BWTR1_ACCMOD_Msk (0x3U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x30000000 */
  10200. #define FMC_BWTR1_ACCMOD FMC_BWTR1_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10201. #define FMC_BWTR1_ACCMOD_0 (0x1U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x10000000 */
  10202. #define FMC_BWTR1_ACCMOD_1 (0x2U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x20000000 */
  10203. /****************** Bit definition for FMC_BWTR2 register ******************/
  10204. #define FMC_BWTR2_ADDSET_Pos (0U)
  10205. #define FMC_BWTR2_ADDSET_Msk (0xFU << FMC_BWTR2_ADDSET_Pos) /*!< 0x0000000F */
  10206. #define FMC_BWTR2_ADDSET FMC_BWTR2_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10207. #define FMC_BWTR2_ADDSET_0 (0x1U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000001 */
  10208. #define FMC_BWTR2_ADDSET_1 (0x2U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000002 */
  10209. #define FMC_BWTR2_ADDSET_2 (0x4U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000004 */
  10210. #define FMC_BWTR2_ADDSET_3 (0x8U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000008 */
  10211. #define FMC_BWTR2_ADDHLD_Pos (4U)
  10212. #define FMC_BWTR2_ADDHLD_Msk (0xFU << FMC_BWTR2_ADDHLD_Pos) /*!< 0x000000F0 */
  10213. #define FMC_BWTR2_ADDHLD FMC_BWTR2_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10214. #define FMC_BWTR2_ADDHLD_0 (0x1U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000010 */
  10215. #define FMC_BWTR2_ADDHLD_1 (0x2U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000020 */
  10216. #define FMC_BWTR2_ADDHLD_2 (0x4U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000040 */
  10217. #define FMC_BWTR2_ADDHLD_3 (0x8U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000080 */
  10218. #define FMC_BWTR2_DATAST_Pos (8U)
  10219. #define FMC_BWTR2_DATAST_Msk (0xFFU << FMC_BWTR2_DATAST_Pos) /*!< 0x0000FF00 */
  10220. #define FMC_BWTR2_DATAST FMC_BWTR2_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10221. #define FMC_BWTR2_DATAST_0 (0x01U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000100 */
  10222. #define FMC_BWTR2_DATAST_1 (0x02U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000200 */
  10223. #define FMC_BWTR2_DATAST_2 (0x04U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000400 */
  10224. #define FMC_BWTR2_DATAST_3 (0x08U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000800 */
  10225. #define FMC_BWTR2_DATAST_4 (0x10U << FMC_BWTR2_DATAST_Pos) /*!< 0x00001000 */
  10226. #define FMC_BWTR2_DATAST_5 (0x20U << FMC_BWTR2_DATAST_Pos) /*!< 0x00002000 */
  10227. #define FMC_BWTR2_DATAST_6 (0x40U << FMC_BWTR2_DATAST_Pos) /*!< 0x00004000 */
  10228. #define FMC_BWTR2_DATAST_7 (0x80U << FMC_BWTR2_DATAST_Pos) /*!< 0x00008000 */
  10229. #define FMC_BWTR2_BUSTURN_Pos (16U)
  10230. #define FMC_BWTR2_BUSTURN_Msk (0xFU << FMC_BWTR2_BUSTURN_Pos) /*!< 0x000F0000 */
  10231. #define FMC_BWTR2_BUSTURN FMC_BWTR2_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10232. #define FMC_BWTR2_BUSTURN_0 (0x1U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00010000 */
  10233. #define FMC_BWTR2_BUSTURN_1 (0x2U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00020000 */
  10234. #define FMC_BWTR2_BUSTURN_2 (0x4U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00040000 */
  10235. #define FMC_BWTR2_BUSTURN_3 (0x8U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00080000 */
  10236. #define FMC_BWTR2_ACCMOD_Pos (28U)
  10237. #define FMC_BWTR2_ACCMOD_Msk (0x3U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x30000000 */
  10238. #define FMC_BWTR2_ACCMOD FMC_BWTR2_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10239. #define FMC_BWTR2_ACCMOD_0 (0x1U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x10000000 */
  10240. #define FMC_BWTR2_ACCMOD_1 (0x2U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x20000000 */
  10241. /****************** Bit definition for FMC_BWTR3 register ******************/
  10242. #define FMC_BWTR3_ADDSET_Pos (0U)
  10243. #define FMC_BWTR3_ADDSET_Msk (0xFU << FMC_BWTR3_ADDSET_Pos) /*!< 0x0000000F */
  10244. #define FMC_BWTR3_ADDSET FMC_BWTR3_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10245. #define FMC_BWTR3_ADDSET_0 (0x1U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000001 */
  10246. #define FMC_BWTR3_ADDSET_1 (0x2U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000002 */
  10247. #define FMC_BWTR3_ADDSET_2 (0x4U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000004 */
  10248. #define FMC_BWTR3_ADDSET_3 (0x8U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000008 */
  10249. #define FMC_BWTR3_ADDHLD_Pos (4U)
  10250. #define FMC_BWTR3_ADDHLD_Msk (0xFU << FMC_BWTR3_ADDHLD_Pos) /*!< 0x000000F0 */
  10251. #define FMC_BWTR3_ADDHLD FMC_BWTR3_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10252. #define FMC_BWTR3_ADDHLD_0 (0x1U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000010 */
  10253. #define FMC_BWTR3_ADDHLD_1 (0x2U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000020 */
  10254. #define FMC_BWTR3_ADDHLD_2 (0x4U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000040 */
  10255. #define FMC_BWTR3_ADDHLD_3 (0x8U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000080 */
  10256. #define FMC_BWTR3_DATAST_Pos (8U)
  10257. #define FMC_BWTR3_DATAST_Msk (0xFFU << FMC_BWTR3_DATAST_Pos) /*!< 0x0000FF00 */
  10258. #define FMC_BWTR3_DATAST FMC_BWTR3_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10259. #define FMC_BWTR3_DATAST_0 (0x01U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000100 */
  10260. #define FMC_BWTR3_DATAST_1 (0x02U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000200 */
  10261. #define FMC_BWTR3_DATAST_2 (0x04U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000400 */
  10262. #define FMC_BWTR3_DATAST_3 (0x08U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000800 */
  10263. #define FMC_BWTR3_DATAST_4 (0x10U << FMC_BWTR3_DATAST_Pos) /*!< 0x00001000 */
  10264. #define FMC_BWTR3_DATAST_5 (0x20U << FMC_BWTR3_DATAST_Pos) /*!< 0x00002000 */
  10265. #define FMC_BWTR3_DATAST_6 (0x40U << FMC_BWTR3_DATAST_Pos) /*!< 0x00004000 */
  10266. #define FMC_BWTR3_DATAST_7 (0x80U << FMC_BWTR3_DATAST_Pos) /*!< 0x00008000 */
  10267. #define FMC_BWTR3_BUSTURN_Pos (16U)
  10268. #define FMC_BWTR3_BUSTURN_Msk (0xFU << FMC_BWTR3_BUSTURN_Pos) /*!< 0x000F0000 */
  10269. #define FMC_BWTR3_BUSTURN FMC_BWTR3_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10270. #define FMC_BWTR3_BUSTURN_0 (0x1U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00010000 */
  10271. #define FMC_BWTR3_BUSTURN_1 (0x2U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00020000 */
  10272. #define FMC_BWTR3_BUSTURN_2 (0x4U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00040000 */
  10273. #define FMC_BWTR3_BUSTURN_3 (0x8U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00080000 */
  10274. #define FMC_BWTR3_ACCMOD_Pos (28U)
  10275. #define FMC_BWTR3_ACCMOD_Msk (0x3U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x30000000 */
  10276. #define FMC_BWTR3_ACCMOD FMC_BWTR3_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10277. #define FMC_BWTR3_ACCMOD_0 (0x1U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x10000000 */
  10278. #define FMC_BWTR3_ACCMOD_1 (0x2U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x20000000 */
  10279. /****************** Bit definition for FMC_BWTR4 register ******************/
  10280. #define FMC_BWTR4_ADDSET_Pos (0U)
  10281. #define FMC_BWTR4_ADDSET_Msk (0xFU << FMC_BWTR4_ADDSET_Pos) /*!< 0x0000000F */
  10282. #define FMC_BWTR4_ADDSET FMC_BWTR4_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10283. #define FMC_BWTR4_ADDSET_0 (0x1U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000001 */
  10284. #define FMC_BWTR4_ADDSET_1 (0x2U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000002 */
  10285. #define FMC_BWTR4_ADDSET_2 (0x4U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000004 */
  10286. #define FMC_BWTR4_ADDSET_3 (0x8U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000008 */
  10287. #define FMC_BWTR4_ADDHLD_Pos (4U)
  10288. #define FMC_BWTR4_ADDHLD_Msk (0xFU << FMC_BWTR4_ADDHLD_Pos) /*!< 0x000000F0 */
  10289. #define FMC_BWTR4_ADDHLD FMC_BWTR4_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10290. #define FMC_BWTR4_ADDHLD_0 (0x1U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000010 */
  10291. #define FMC_BWTR4_ADDHLD_1 (0x2U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000020 */
  10292. #define FMC_BWTR4_ADDHLD_2 (0x4U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000040 */
  10293. #define FMC_BWTR4_ADDHLD_3 (0x8U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000080 */
  10294. #define FMC_BWTR4_DATAST_Pos (8U)
  10295. #define FMC_BWTR4_DATAST_Msk (0xFFU << FMC_BWTR4_DATAST_Pos) /*!< 0x0000FF00 */
  10296. #define FMC_BWTR4_DATAST FMC_BWTR4_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10297. #define FMC_BWTR4_DATAST_0 (0x01U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000100 */
  10298. #define FMC_BWTR4_DATAST_1 (0x02U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000200 */
  10299. #define FMC_BWTR4_DATAST_2 (0x04U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000400 */
  10300. #define FMC_BWTR4_DATAST_3 (0x08U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000800 */
  10301. #define FMC_BWTR4_DATAST_4 (0x10U << FMC_BWTR4_DATAST_Pos) /*!< 0x00001000 */
  10302. #define FMC_BWTR4_DATAST_5 (0x20U << FMC_BWTR4_DATAST_Pos) /*!< 0x00002000 */
  10303. #define FMC_BWTR4_DATAST_6 (0x40U << FMC_BWTR4_DATAST_Pos) /*!< 0x00004000 */
  10304. #define FMC_BWTR4_DATAST_7 (0x80U << FMC_BWTR4_DATAST_Pos) /*!< 0x00008000 */
  10305. #define FMC_BWTR4_BUSTURN_Pos (16U)
  10306. #define FMC_BWTR4_BUSTURN_Msk (0xFU << FMC_BWTR4_BUSTURN_Pos) /*!< 0x000F0000 */
  10307. #define FMC_BWTR4_BUSTURN FMC_BWTR4_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10308. #define FMC_BWTR4_BUSTURN_0 (0x1U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00010000 */
  10309. #define FMC_BWTR4_BUSTURN_1 (0x2U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00020000 */
  10310. #define FMC_BWTR4_BUSTURN_2 (0x4U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00040000 */
  10311. #define FMC_BWTR4_BUSTURN_3 (0x8U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00080000 */
  10312. #define FMC_BWTR4_ACCMOD_Pos (28U)
  10313. #define FMC_BWTR4_ACCMOD_Msk (0x3U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x30000000 */
  10314. #define FMC_BWTR4_ACCMOD FMC_BWTR4_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10315. #define FMC_BWTR4_ACCMOD_0 (0x1U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x10000000 */
  10316. #define FMC_BWTR4_ACCMOD_1 (0x2U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x20000000 */
  10317. /****************** Bit definition for FMC_PCR register *******************/
  10318. #define FMC_PCR_PWAITEN_Pos (1U)
  10319. #define FMC_PCR_PWAITEN_Msk (0x1U << FMC_PCR_PWAITEN_Pos) /*!< 0x00000002 */
  10320. #define FMC_PCR_PWAITEN FMC_PCR_PWAITEN_Msk /*!<Wait feature enable bit */
  10321. #define FMC_PCR_PBKEN_Pos (2U)
  10322. #define FMC_PCR_PBKEN_Msk (0x1U << FMC_PCR_PBKEN_Pos) /*!< 0x00000004 */
  10323. #define FMC_PCR_PBKEN FMC_PCR_PBKEN_Msk /*!<NAND Flash memory bank enable bit */
  10324. #define FMC_PCR_PWID_Pos (4U)
  10325. #define FMC_PCR_PWID_Msk (0x3U << FMC_PCR_PWID_Pos) /*!< 0x00000030 */
  10326. #define FMC_PCR_PWID FMC_PCR_PWID_Msk /*!<PWID[1:0] bits (NAND Flash databus width) */
  10327. #define FMC_PCR_PWID_0 (0x1U << FMC_PCR_PWID_Pos) /*!< 0x00000010 */
  10328. #define FMC_PCR_PWID_1 (0x2U << FMC_PCR_PWID_Pos) /*!< 0x00000020 */
  10329. #define FMC_PCR_ECCEN_Pos (6U)
  10330. #define FMC_PCR_ECCEN_Msk (0x1U << FMC_PCR_ECCEN_Pos) /*!< 0x00000040 */
  10331. #define FMC_PCR_ECCEN FMC_PCR_ECCEN_Msk /*!<ECC computation logic enable bit */
  10332. #define FMC_PCR_TCLR_Pos (9U)
  10333. #define FMC_PCR_TCLR_Msk (0xFU << FMC_PCR_TCLR_Pos) /*!< 0x00001E00 */
  10334. #define FMC_PCR_TCLR FMC_PCR_TCLR_Msk /*!<TCLR[3:0] bits (CLE to RE delay) */
  10335. #define FMC_PCR_TCLR_0 (0x1U << FMC_PCR_TCLR_Pos) /*!< 0x00000200 */
  10336. #define FMC_PCR_TCLR_1 (0x2U << FMC_PCR_TCLR_Pos) /*!< 0x00000400 */
  10337. #define FMC_PCR_TCLR_2 (0x4U << FMC_PCR_TCLR_Pos) /*!< 0x00000800 */
  10338. #define FMC_PCR_TCLR_3 (0x8U << FMC_PCR_TCLR_Pos) /*!< 0x00001000 */
  10339. #define FMC_PCR_TAR_Pos (13U)
  10340. #define FMC_PCR_TAR_Msk (0xFU << FMC_PCR_TAR_Pos) /*!< 0x0001E000 */
  10341. #define FMC_PCR_TAR FMC_PCR_TAR_Msk /*!<TAR[3:0] bits (ALE to RE delay) */
  10342. #define FMC_PCR_TAR_0 (0x1U << FMC_PCR_TAR_Pos) /*!< 0x00002000 */
  10343. #define FMC_PCR_TAR_1 (0x2U << FMC_PCR_TAR_Pos) /*!< 0x00004000 */
  10344. #define FMC_PCR_TAR_2 (0x4U << FMC_PCR_TAR_Pos) /*!< 0x00008000 */
  10345. #define FMC_PCR_TAR_3 (0x8U << FMC_PCR_TAR_Pos) /*!< 0x00010000 */
  10346. #define FMC_PCR_ECCPS_Pos (17U)
  10347. #define FMC_PCR_ECCPS_Msk (0x7U << FMC_PCR_ECCPS_Pos) /*!< 0x000E0000 */
  10348. #define FMC_PCR_ECCPS FMC_PCR_ECCPS_Msk /*!<ECCPS[1:0] bits (ECC page size) */
  10349. #define FMC_PCR_ECCPS_0 (0x1U << FMC_PCR_ECCPS_Pos) /*!< 0x00020000 */
  10350. #define FMC_PCR_ECCPS_1 (0x2U << FMC_PCR_ECCPS_Pos) /*!< 0x00040000 */
  10351. #define FMC_PCR_ECCPS_2 (0x4U << FMC_PCR_ECCPS_Pos) /*!< 0x00080000 */
  10352. /******************* Bit definition for FMC_SR register *******************/
  10353. #define FMC_SR_IRS ((uint8_t)0x01) /*!<Interrupt Rising Edge status */
  10354. #define FMC_SR_ILS ((uint8_t)0x02) /*!<Interrupt Level status */
  10355. #define FMC_SR_IFS ((uint8_t)0x04) /*!<Interrupt Falling Edge status */
  10356. #define FMC_SR_IREN ((uint8_t)0x08) /*!<Interrupt Rising Edge detection Enable bit */
  10357. #define FMC_SR_ILEN ((uint8_t)0x10) /*!<Interrupt Level detection Enable bit */
  10358. #define FMC_SR_IFEN ((uint8_t)0x20) /*!<Interrupt Falling Edge detection Enable bit */
  10359. #define FMC_SR_FEMPT ((uint8_t)0x40) /*!<FIFO empty */
  10360. /****************** Bit definition for FMC_PMEM register ******************/
  10361. #define FMC_PMEM_MEMSET3_Pos (0U)
  10362. #define FMC_PMEM_MEMSET3_Msk (0xFFU << FMC_PMEM_MEMSET3_Pos) /*!< 0x000000FF */
  10363. #define FMC_PMEM_MEMSET3 FMC_PMEM_MEMSET3_Msk /*!<MEMSET3[7:0] bits (Common memory 3 setup time) */
  10364. #define FMC_PMEM_MEMSET3_0 (0x01U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000001 */
  10365. #define FMC_PMEM_MEMSET3_1 (0x02U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000002 */
  10366. #define FMC_PMEM_MEMSET3_2 (0x04U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000004 */
  10367. #define FMC_PMEM_MEMSET3_3 (0x08U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000008 */
  10368. #define FMC_PMEM_MEMSET3_4 (0x10U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000010 */
  10369. #define FMC_PMEM_MEMSET3_5 (0x20U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000020 */
  10370. #define FMC_PMEM_MEMSET3_6 (0x40U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000040 */
  10371. #define FMC_PMEM_MEMSET3_7 (0x80U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000080 */
  10372. #define FMC_PMEM_MEMWAIT3_Pos (8U)
  10373. #define FMC_PMEM_MEMWAIT3_Msk (0xFFU << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x0000FF00 */
  10374. #define FMC_PMEM_MEMWAIT3 FMC_PMEM_MEMWAIT3_Msk /*!<MEMWAIT3[7:0] bits (Common memory 3 wait time) */
  10375. #define FMC_PMEM_MEMWAIT3_0 (0x01U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000100 */
  10376. #define FMC_PMEM_MEMWAIT3_1 (0x02U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000200 */
  10377. #define FMC_PMEM_MEMWAIT3_2 (0x04U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000400 */
  10378. #define FMC_PMEM_MEMWAIT3_3 (0x08U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000800 */
  10379. #define FMC_PMEM_MEMWAIT3_4 (0x10U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00001000 */
  10380. #define FMC_PMEM_MEMWAIT3_5 (0x20U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00002000 */
  10381. #define FMC_PMEM_MEMWAIT3_6 (0x40U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00004000 */
  10382. #define FMC_PMEM_MEMWAIT3_7 (0x80U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00008000 */
  10383. #define FMC_PMEM_MEMHOLD3_Pos (16U)
  10384. #define FMC_PMEM_MEMHOLD3_Msk (0xFFU << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00FF0000 */
  10385. #define FMC_PMEM_MEMHOLD3 FMC_PMEM_MEMHOLD3_Msk /*!<MEMHOLD3[7:0] bits (Common memory 3 hold time) */
  10386. #define FMC_PMEM_MEMHOLD3_0 (0x01U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00010000 */
  10387. #define FMC_PMEM_MEMHOLD3_1 (0x02U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00020000 */
  10388. #define FMC_PMEM_MEMHOLD3_2 (0x04U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00040000 */
  10389. #define FMC_PMEM_MEMHOLD3_3 (0x08U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00080000 */
  10390. #define FMC_PMEM_MEMHOLD3_4 (0x10U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00100000 */
  10391. #define FMC_PMEM_MEMHOLD3_5 (0x20U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00200000 */
  10392. #define FMC_PMEM_MEMHOLD3_6 (0x40U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00400000 */
  10393. #define FMC_PMEM_MEMHOLD3_7 (0x80U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00800000 */
  10394. #define FMC_PMEM_MEMHIZ3_Pos (24U)
  10395. #define FMC_PMEM_MEMHIZ3_Msk (0xFFU << FMC_PMEM_MEMHIZ3_Pos) /*!< 0xFF000000 */
  10396. #define FMC_PMEM_MEMHIZ3 FMC_PMEM_MEMHIZ3_Msk /*!<MEMHIZ3[7:0] bits (Common memory 3 databus HiZ time) */
  10397. #define FMC_PMEM_MEMHIZ3_0 (0x01U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x01000000 */
  10398. #define FMC_PMEM_MEMHIZ3_1 (0x02U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x02000000 */
  10399. #define FMC_PMEM_MEMHIZ3_2 (0x04U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x04000000 */
  10400. #define FMC_PMEM_MEMHIZ3_3 (0x08U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x08000000 */
  10401. #define FMC_PMEM_MEMHIZ3_4 (0x10U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x10000000 */
  10402. #define FMC_PMEM_MEMHIZ3_5 (0x20U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x20000000 */
  10403. #define FMC_PMEM_MEMHIZ3_6 (0x40U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x40000000 */
  10404. #define FMC_PMEM_MEMHIZ3_7 (0x80U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x80000000 */
  10405. /****************** Bit definition for FMC_PATT register ******************/
  10406. #define FMC_PATT_ATTSET3_Pos (0U)
  10407. #define FMC_PATT_ATTSET3_Msk (0xFFU << FMC_PATT_ATTSET3_Pos) /*!< 0x000000FF */
  10408. #define FMC_PATT_ATTSET3 FMC_PATT_ATTSET3_Msk /*!<ATTSET3[7:0] bits (Attribute memory 3 setup time) */
  10409. #define FMC_PATT_ATTSET3_0 (0x01U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000001 */
  10410. #define FMC_PATT_ATTSET3_1 (0x02U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000002 */
  10411. #define FMC_PATT_ATTSET3_2 (0x04U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000004 */
  10412. #define FMC_PATT_ATTSET3_3 (0x08U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000008 */
  10413. #define FMC_PATT_ATTSET3_4 (0x10U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000010 */
  10414. #define FMC_PATT_ATTSET3_5 (0x20U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000020 */
  10415. #define FMC_PATT_ATTSET3_6 (0x40U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000040 */
  10416. #define FMC_PATT_ATTSET3_7 (0x80U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000080 */
  10417. #define FMC_PATT_ATTWAIT3_Pos (8U)
  10418. #define FMC_PATT_ATTWAIT3_Msk (0xFFU << FMC_PATT_ATTWAIT3_Pos) /*!< 0x0000FF00 */
  10419. #define FMC_PATT_ATTWAIT3 FMC_PATT_ATTWAIT3_Msk /*!<ATTWAIT3[7:0] bits (Attribute memory 3 wait time) */
  10420. #define FMC_PATT_ATTWAIT3_0 (0x01U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000100 */
  10421. #define FMC_PATT_ATTWAIT3_1 (0x02U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000200 */
  10422. #define FMC_PATT_ATTWAIT3_2 (0x04U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000400 */
  10423. #define FMC_PATT_ATTWAIT3_3 (0x08U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000800 */
  10424. #define FMC_PATT_ATTWAIT3_4 (0x10U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00001000 */
  10425. #define FMC_PATT_ATTWAIT3_5 (0x20U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00002000 */
  10426. #define FMC_PATT_ATTWAIT3_6 (0x40U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00004000 */
  10427. #define FMC_PATT_ATTWAIT3_7 (0x80U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00008000 */
  10428. #define FMC_PATT_ATTHOLD3_Pos (16U)
  10429. #define FMC_PATT_ATTHOLD3_Msk (0xFFU << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00FF0000 */
  10430. #define FMC_PATT_ATTHOLD3 FMC_PATT_ATTHOLD3_Msk /*!<ATTHOLD3[7:0] bits (Attribute memory 3 hold time) */
  10431. #define FMC_PATT_ATTHOLD3_0 (0x01U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00010000 */
  10432. #define FMC_PATT_ATTHOLD3_1 (0x02U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00020000 */
  10433. #define FMC_PATT_ATTHOLD3_2 (0x04U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00040000 */
  10434. #define FMC_PATT_ATTHOLD3_3 (0x08U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00080000 */
  10435. #define FMC_PATT_ATTHOLD3_4 (0x10U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00100000 */
  10436. #define FMC_PATT_ATTHOLD3_5 (0x20U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00200000 */
  10437. #define FMC_PATT_ATTHOLD3_6 (0x40U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00400000 */
  10438. #define FMC_PATT_ATTHOLD3_7 (0x80U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00800000 */
  10439. #define FMC_PATT_ATTHIZ3_Pos (24U)
  10440. #define FMC_PATT_ATTHIZ3_Msk (0xFFU << FMC_PATT_ATTHIZ3_Pos) /*!< 0xFF000000 */
  10441. #define FMC_PATT_ATTHIZ3 FMC_PATT_ATTHIZ3_Msk /*!<ATTHIZ3[7:0] bits (Attribute memory 3 databus HiZ time) */
  10442. #define FMC_PATT_ATTHIZ3_0 (0x01U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x01000000 */
  10443. #define FMC_PATT_ATTHIZ3_1 (0x02U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x02000000 */
  10444. #define FMC_PATT_ATTHIZ3_2 (0x04U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x04000000 */
  10445. #define FMC_PATT_ATTHIZ3_3 (0x08U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x08000000 */
  10446. #define FMC_PATT_ATTHIZ3_4 (0x10U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x10000000 */
  10447. #define FMC_PATT_ATTHIZ3_5 (0x20U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x20000000 */
  10448. #define FMC_PATT_ATTHIZ3_6 (0x40U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x40000000 */
  10449. #define FMC_PATT_ATTHIZ3_7 (0x80U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x80000000 */
  10450. /****************** Bit definition for FMC_ECCR3 register ******************/
  10451. #define FMC_ECCR3_ECC3_Pos (0U)
  10452. #define FMC_ECCR3_ECC3_Msk (0xFFFFFFFFU << FMC_ECCR3_ECC3_Pos) /*!< 0xFFFFFFFF */
  10453. #define FMC_ECCR3_ECC3 FMC_ECCR3_ECC3_Msk /*!<ECC result */
  10454. /****************** Bit definition for FMC_SDCR1 register ******************/
  10455. #define FMC_SDCR1_NC_Pos (0U)
  10456. #define FMC_SDCR1_NC_Msk (0x3U << FMC_SDCR1_NC_Pos) /*!< 0x00000003 */
  10457. #define FMC_SDCR1_NC FMC_SDCR1_NC_Msk /*!<NC[1:0] bits (Number of column bits) */
  10458. #define FMC_SDCR1_NC_0 (0x1U << FMC_SDCR1_NC_Pos) /*!< 0x00000001 */
  10459. #define FMC_SDCR1_NC_1 (0x2U << FMC_SDCR1_NC_Pos) /*!< 0x00000002 */
  10460. #define FMC_SDCR1_NR_Pos (2U)
  10461. #define FMC_SDCR1_NR_Msk (0x3U << FMC_SDCR1_NR_Pos) /*!< 0x0000000C */
  10462. #define FMC_SDCR1_NR FMC_SDCR1_NR_Msk /*!<NR[1:0] bits (Number of row bits) */
  10463. #define FMC_SDCR1_NR_0 (0x1U << FMC_SDCR1_NR_Pos) /*!< 0x00000004 */
  10464. #define FMC_SDCR1_NR_1 (0x2U << FMC_SDCR1_NR_Pos) /*!< 0x00000008 */
  10465. #define FMC_SDCR1_MWID_Pos (4U)
  10466. #define FMC_SDCR1_MWID_Msk (0x3U << FMC_SDCR1_MWID_Pos) /*!< 0x00000030 */
  10467. #define FMC_SDCR1_MWID FMC_SDCR1_MWID_Msk /*!<NR[1:0] bits (Number of row bits) */
  10468. #define FMC_SDCR1_MWID_0 (0x1U << FMC_SDCR1_MWID_Pos) /*!< 0x00000010 */
  10469. #define FMC_SDCR1_MWID_1 (0x2U << FMC_SDCR1_MWID_Pos) /*!< 0x00000020 */
  10470. #define FMC_SDCR1_NB_Pos (6U)
  10471. #define FMC_SDCR1_NB_Msk (0x1U << FMC_SDCR1_NB_Pos) /*!< 0x00000040 */
  10472. #define FMC_SDCR1_NB FMC_SDCR1_NB_Msk /*!<Number of internal bank */
  10473. #define FMC_SDCR1_CAS_Pos (7U)
  10474. #define FMC_SDCR1_CAS_Msk (0x3U << FMC_SDCR1_CAS_Pos) /*!< 0x00000180 */
  10475. #define FMC_SDCR1_CAS FMC_SDCR1_CAS_Msk /*!<CAS[1:0] bits (CAS latency) */
  10476. #define FMC_SDCR1_CAS_0 (0x1U << FMC_SDCR1_CAS_Pos) /*!< 0x00000080 */
  10477. #define FMC_SDCR1_CAS_1 (0x2U << FMC_SDCR1_CAS_Pos) /*!< 0x00000100 */
  10478. #define FMC_SDCR1_WP_Pos (9U)
  10479. #define FMC_SDCR1_WP_Msk (0x1U << FMC_SDCR1_WP_Pos) /*!< 0x00000200 */
  10480. #define FMC_SDCR1_WP FMC_SDCR1_WP_Msk /*!<Write protection */
  10481. #define FMC_SDCR1_SDCLK_Pos (10U)
  10482. #define FMC_SDCR1_SDCLK_Msk (0x3U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000C00 */
  10483. #define FMC_SDCR1_SDCLK FMC_SDCR1_SDCLK_Msk /*!<SDRAM clock configuration */
  10484. #define FMC_SDCR1_SDCLK_0 (0x1U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000400 */
  10485. #define FMC_SDCR1_SDCLK_1 (0x2U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000800 */
  10486. #define FMC_SDCR1_RBURST_Pos (12U)
  10487. #define FMC_SDCR1_RBURST_Msk (0x1U << FMC_SDCR1_RBURST_Pos) /*!< 0x00001000 */
  10488. #define FMC_SDCR1_RBURST FMC_SDCR1_RBURST_Msk /*!<Read burst */
  10489. #define FMC_SDCR1_RPIPE_Pos (13U)
  10490. #define FMC_SDCR1_RPIPE_Msk (0x3U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00006000 */
  10491. #define FMC_SDCR1_RPIPE FMC_SDCR1_RPIPE_Msk /*!<Write protection */
  10492. #define FMC_SDCR1_RPIPE_0 (0x1U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00002000 */
  10493. #define FMC_SDCR1_RPIPE_1 (0x2U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00004000 */
  10494. /****************** Bit definition for FMC_SDCR2 register ******************/
  10495. #define FMC_SDCR2_NC_Pos (0U)
  10496. #define FMC_SDCR2_NC_Msk (0x3U << FMC_SDCR2_NC_Pos) /*!< 0x00000003 */
  10497. #define FMC_SDCR2_NC FMC_SDCR2_NC_Msk /*!<NC[1:0] bits (Number of column bits) */
  10498. #define FMC_SDCR2_NC_0 (0x1U << FMC_SDCR2_NC_Pos) /*!< 0x00000001 */
  10499. #define FMC_SDCR2_NC_1 (0x2U << FMC_SDCR2_NC_Pos) /*!< 0x00000002 */
  10500. #define FMC_SDCR2_NR_Pos (2U)
  10501. #define FMC_SDCR2_NR_Msk (0x3U << FMC_SDCR2_NR_Pos) /*!< 0x0000000C */
  10502. #define FMC_SDCR2_NR FMC_SDCR2_NR_Msk /*!<NR[1:0] bits (Number of row bits) */
  10503. #define FMC_SDCR2_NR_0 (0x1U << FMC_SDCR2_NR_Pos) /*!< 0x00000004 */
  10504. #define FMC_SDCR2_NR_1 (0x2U << FMC_SDCR2_NR_Pos) /*!< 0x00000008 */
  10505. #define FMC_SDCR2_MWID_Pos (4U)
  10506. #define FMC_SDCR2_MWID_Msk (0x3U << FMC_SDCR2_MWID_Pos) /*!< 0x00000030 */
  10507. #define FMC_SDCR2_MWID FMC_SDCR2_MWID_Msk /*!<NR[1:0] bits (Number of row bits) */
  10508. #define FMC_SDCR2_MWID_0 (0x1U << FMC_SDCR2_MWID_Pos) /*!< 0x00000010 */
  10509. #define FMC_SDCR2_MWID_1 (0x2U << FMC_SDCR2_MWID_Pos) /*!< 0x00000020 */
  10510. #define FMC_SDCR2_NB_Pos (6U)
  10511. #define FMC_SDCR2_NB_Msk (0x1U << FMC_SDCR2_NB_Pos) /*!< 0x00000040 */
  10512. #define FMC_SDCR2_NB FMC_SDCR2_NB_Msk /*!<Number of internal bank */
  10513. #define FMC_SDCR2_CAS_Pos (7U)
  10514. #define FMC_SDCR2_CAS_Msk (0x3U << FMC_SDCR2_CAS_Pos) /*!< 0x00000180 */
  10515. #define FMC_SDCR2_CAS FMC_SDCR2_CAS_Msk /*!<CAS[1:0] bits (CAS latency) */
  10516. #define FMC_SDCR2_CAS_0 (0x1U << FMC_SDCR2_CAS_Pos) /*!< 0x00000080 */
  10517. #define FMC_SDCR2_CAS_1 (0x2U << FMC_SDCR2_CAS_Pos) /*!< 0x00000100 */
  10518. #define FMC_SDCR2_WP_Pos (9U)
  10519. #define FMC_SDCR2_WP_Msk (0x1U << FMC_SDCR2_WP_Pos) /*!< 0x00000200 */
  10520. #define FMC_SDCR2_WP FMC_SDCR2_WP_Msk /*!<Write protection */
  10521. #define FMC_SDCR2_SDCLK_Pos (10U)
  10522. #define FMC_SDCR2_SDCLK_Msk (0x3U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000C00 */
  10523. #define FMC_SDCR2_SDCLK FMC_SDCR2_SDCLK_Msk /*!<SDCLK[1:0] (SDRAM clock configuration) */
  10524. #define FMC_SDCR2_SDCLK_0 (0x1U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000400 */
  10525. #define FMC_SDCR2_SDCLK_1 (0x2U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000800 */
  10526. /****************** Bit definition for FMC_SDTR1 register ******************/
  10527. #define FMC_SDTR1_TMRD_Pos (0U)
  10528. #define FMC_SDTR1_TMRD_Msk (0xFU << FMC_SDTR1_TMRD_Pos) /*!< 0x0000000F */
  10529. #define FMC_SDTR1_TMRD FMC_SDTR1_TMRD_Msk /*!<TMRD[3:0] bits (Load mode register to active) */
  10530. #define FMC_SDTR1_TMRD_0 (0x1U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000001 */
  10531. #define FMC_SDTR1_TMRD_1 (0x2U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000002 */
  10532. #define FMC_SDTR1_TMRD_2 (0x4U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000004 */
  10533. #define FMC_SDTR1_TMRD_3 (0x8U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000008 */
  10534. #define FMC_SDTR1_TXSR_Pos (4U)
  10535. #define FMC_SDTR1_TXSR_Msk (0xFU << FMC_SDTR1_TXSR_Pos) /*!< 0x000000F0 */
  10536. #define FMC_SDTR1_TXSR FMC_SDTR1_TXSR_Msk /*!<TXSR[3:0] bits (Exit self refresh) */
  10537. #define FMC_SDTR1_TXSR_0 (0x1U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000010 */
  10538. #define FMC_SDTR1_TXSR_1 (0x2U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000020 */
  10539. #define FMC_SDTR1_TXSR_2 (0x4U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000040 */
  10540. #define FMC_SDTR1_TXSR_3 (0x8U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000080 */
  10541. #define FMC_SDTR1_TRAS_Pos (8U)
  10542. #define FMC_SDTR1_TRAS_Msk (0xFU << FMC_SDTR1_TRAS_Pos) /*!< 0x00000F00 */
  10543. #define FMC_SDTR1_TRAS FMC_SDTR1_TRAS_Msk /*!<TRAS[3:0] bits (Self refresh time) */
  10544. #define FMC_SDTR1_TRAS_0 (0x1U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000100 */
  10545. #define FMC_SDTR1_TRAS_1 (0x2U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000200 */
  10546. #define FMC_SDTR1_TRAS_2 (0x4U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000400 */
  10547. #define FMC_SDTR1_TRAS_3 (0x8U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000800 */
  10548. #define FMC_SDTR1_TRC_Pos (12U)
  10549. #define FMC_SDTR1_TRC_Msk (0xFU << FMC_SDTR1_TRC_Pos) /*!< 0x0000F000 */
  10550. #define FMC_SDTR1_TRC FMC_SDTR1_TRC_Msk /*!<TRC[2:0] bits (Row cycle delay) */
  10551. #define FMC_SDTR1_TRC_0 (0x1U << FMC_SDTR1_TRC_Pos) /*!< 0x00001000 */
  10552. #define FMC_SDTR1_TRC_1 (0x2U << FMC_SDTR1_TRC_Pos) /*!< 0x00002000 */
  10553. #define FMC_SDTR1_TRC_2 (0x4U << FMC_SDTR1_TRC_Pos) /*!< 0x00004000 */
  10554. #define FMC_SDTR1_TWR_Pos (16U)
  10555. #define FMC_SDTR1_TWR_Msk (0xFU << FMC_SDTR1_TWR_Pos) /*!< 0x000F0000 */
  10556. #define FMC_SDTR1_TWR FMC_SDTR1_TWR_Msk /*!<TRC[2:0] bits (Write recovery delay) */
  10557. #define FMC_SDTR1_TWR_0 (0x1U << FMC_SDTR1_TWR_Pos) /*!< 0x00010000 */
  10558. #define FMC_SDTR1_TWR_1 (0x2U << FMC_SDTR1_TWR_Pos) /*!< 0x00020000 */
  10559. #define FMC_SDTR1_TWR_2 (0x4U << FMC_SDTR1_TWR_Pos) /*!< 0x00040000 */
  10560. #define FMC_SDTR1_TRP_Pos (20U)
  10561. #define FMC_SDTR1_TRP_Msk (0xFU << FMC_SDTR1_TRP_Pos) /*!< 0x00F00000 */
  10562. #define FMC_SDTR1_TRP FMC_SDTR1_TRP_Msk /*!<TRP[2:0] bits (Row precharge delay) */
  10563. #define FMC_SDTR1_TRP_0 (0x1U << FMC_SDTR1_TRP_Pos) /*!< 0x00100000 */
  10564. #define FMC_SDTR1_TRP_1 (0x2U << FMC_SDTR1_TRP_Pos) /*!< 0x00200000 */
  10565. #define FMC_SDTR1_TRP_2 (0x4U << FMC_SDTR1_TRP_Pos) /*!< 0x00400000 */
  10566. #define FMC_SDTR1_TRCD_Pos (24U)
  10567. #define FMC_SDTR1_TRCD_Msk (0xFU << FMC_SDTR1_TRCD_Pos) /*!< 0x0F000000 */
  10568. #define FMC_SDTR1_TRCD FMC_SDTR1_TRCD_Msk /*!<TRP[2:0] bits (Row to column delay) */
  10569. #define FMC_SDTR1_TRCD_0 (0x1U << FMC_SDTR1_TRCD_Pos) /*!< 0x01000000 */
  10570. #define FMC_SDTR1_TRCD_1 (0x2U << FMC_SDTR1_TRCD_Pos) /*!< 0x02000000 */
  10571. #define FMC_SDTR1_TRCD_2 (0x4U << FMC_SDTR1_TRCD_Pos) /*!< 0x04000000 */
  10572. /****************** Bit definition for FMC_SDTR2 register ******************/
  10573. #define FMC_SDTR2_TMRD_Pos (0U)
  10574. #define FMC_SDTR2_TMRD_Msk (0xFU << FMC_SDTR2_TMRD_Pos) /*!< 0x0000000F */
  10575. #define FMC_SDTR2_TMRD FMC_SDTR2_TMRD_Msk /*!<TMRD[3:0] bits (Load mode register to active) */
  10576. #define FMC_SDTR2_TMRD_0 (0x1U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000001 */
  10577. #define FMC_SDTR2_TMRD_1 (0x2U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000002 */
  10578. #define FMC_SDTR2_TMRD_2 (0x4U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000004 */
  10579. #define FMC_SDTR2_TMRD_3 (0x8U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000008 */
  10580. #define FMC_SDTR2_TXSR_Pos (4U)
  10581. #define FMC_SDTR2_TXSR_Msk (0xFU << FMC_SDTR2_TXSR_Pos) /*!< 0x000000F0 */
  10582. #define FMC_SDTR2_TXSR FMC_SDTR2_TXSR_Msk /*!<TXSR[3:0] bits (Exit self refresh) */
  10583. #define FMC_SDTR2_TXSR_0 (0x1U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000010 */
  10584. #define FMC_SDTR2_TXSR_1 (0x2U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000020 */
  10585. #define FMC_SDTR2_TXSR_2 (0x4U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000040 */
  10586. #define FMC_SDTR2_TXSR_3 (0x8U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000080 */
  10587. #define FMC_SDTR2_TRAS_Pos (8U)
  10588. #define FMC_SDTR2_TRAS_Msk (0xFU << FMC_SDTR2_TRAS_Pos) /*!< 0x00000F00 */
  10589. #define FMC_SDTR2_TRAS FMC_SDTR2_TRAS_Msk /*!<TRAS[3:0] bits (Self refresh time) */
  10590. #define FMC_SDTR2_TRAS_0 (0x1U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000100 */
  10591. #define FMC_SDTR2_TRAS_1 (0x2U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000200 */
  10592. #define FMC_SDTR2_TRAS_2 (0x4U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000400 */
  10593. #define FMC_SDTR2_TRAS_3 (0x8U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000800 */
  10594. #define FMC_SDTR2_TRC_Pos (12U)
  10595. #define FMC_SDTR2_TRC_Msk (0xFU << FMC_SDTR2_TRC_Pos) /*!< 0x0000F000 */
  10596. #define FMC_SDTR2_TRC FMC_SDTR2_TRC_Msk /*!<TRC[2:0] bits (Row cycle delay) */
  10597. #define FMC_SDTR2_TRC_0 (0x1U << FMC_SDTR2_TRC_Pos) /*!< 0x00001000 */
  10598. #define FMC_SDTR2_TRC_1 (0x2U << FMC_SDTR2_TRC_Pos) /*!< 0x00002000 */
  10599. #define FMC_SDTR2_TRC_2 (0x4U << FMC_SDTR2_TRC_Pos) /*!< 0x00004000 */
  10600. #define FMC_SDTR2_TWR_Pos (16U)
  10601. #define FMC_SDTR2_TWR_Msk (0xFU << FMC_SDTR2_TWR_Pos) /*!< 0x000F0000 */
  10602. #define FMC_SDTR2_TWR FMC_SDTR2_TWR_Msk /*!<TRC[2:0] bits (Write recovery delay) */
  10603. #define FMC_SDTR2_TWR_0 (0x1U << FMC_SDTR2_TWR_Pos) /*!< 0x00010000 */
  10604. #define FMC_SDTR2_TWR_1 (0x2U << FMC_SDTR2_TWR_Pos) /*!< 0x00020000 */
  10605. #define FMC_SDTR2_TWR_2 (0x4U << FMC_SDTR2_TWR_Pos) /*!< 0x00040000 */
  10606. #define FMC_SDTR2_TRP_Pos (20U)
  10607. #define FMC_SDTR2_TRP_Msk (0xFU << FMC_SDTR2_TRP_Pos) /*!< 0x00F00000 */
  10608. #define FMC_SDTR2_TRP FMC_SDTR2_TRP_Msk /*!<TRP[2:0] bits (Row precharge delay) */
  10609. #define FMC_SDTR2_TRP_0 (0x1U << FMC_SDTR2_TRP_Pos) /*!< 0x00100000 */
  10610. #define FMC_SDTR2_TRP_1 (0x2U << FMC_SDTR2_TRP_Pos) /*!< 0x00200000 */
  10611. #define FMC_SDTR2_TRP_2 (0x4U << FMC_SDTR2_TRP_Pos) /*!< 0x00400000 */
  10612. #define FMC_SDTR2_TRCD_Pos (24U)
  10613. #define FMC_SDTR2_TRCD_Msk (0xFU << FMC_SDTR2_TRCD_Pos) /*!< 0x0F000000 */
  10614. #define FMC_SDTR2_TRCD FMC_SDTR2_TRCD_Msk /*!<TRP[2:0] bits (Row to column delay) */
  10615. #define FMC_SDTR2_TRCD_0 (0x1U << FMC_SDTR2_TRCD_Pos) /*!< 0x01000000 */
  10616. #define FMC_SDTR2_TRCD_1 (0x2U << FMC_SDTR2_TRCD_Pos) /*!< 0x02000000 */
  10617. #define FMC_SDTR2_TRCD_2 (0x4U << FMC_SDTR2_TRCD_Pos) /*!< 0x04000000 */
  10618. /****************** Bit definition for FMC_SDCMR register ******************/
  10619. #define FMC_SDCMR_MODE_Pos (0U)
  10620. #define FMC_SDCMR_MODE_Msk (0x7U << FMC_SDCMR_MODE_Pos) /*!< 0x00000007 */
  10621. #define FMC_SDCMR_MODE FMC_SDCMR_MODE_Msk /*!<MODE[2:0] bits (Command mode) */
  10622. #define FMC_SDCMR_MODE_0 (0x1U << FMC_SDCMR_MODE_Pos) /*!< 0x00000001 */
  10623. #define FMC_SDCMR_MODE_1 (0x2U << FMC_SDCMR_MODE_Pos) /*!< 0x00000002 */
  10624. #define FMC_SDCMR_MODE_2 (0x3U << FMC_SDCMR_MODE_Pos) /*!< 0x00000003 */
  10625. #define FMC_SDCMR_CTB2_Pos (3U)
  10626. #define FMC_SDCMR_CTB2_Msk (0x1U << FMC_SDCMR_CTB2_Pos) /*!< 0x00000008 */
  10627. #define FMC_SDCMR_CTB2 FMC_SDCMR_CTB2_Msk /*!<Command target 2 */
  10628. #define FMC_SDCMR_CTB1_Pos (4U)
  10629. #define FMC_SDCMR_CTB1_Msk (0x1U << FMC_SDCMR_CTB1_Pos) /*!< 0x00000010 */
  10630. #define FMC_SDCMR_CTB1 FMC_SDCMR_CTB1_Msk /*!<Command target 1 */
  10631. #define FMC_SDCMR_NRFS_Pos (5U)
  10632. #define FMC_SDCMR_NRFS_Msk (0xFU << FMC_SDCMR_NRFS_Pos) /*!< 0x000001E0 */
  10633. #define FMC_SDCMR_NRFS FMC_SDCMR_NRFS_Msk /*!<NRFS[3:0] bits (Number of auto-refresh) */
  10634. #define FMC_SDCMR_NRFS_0 (0x1U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000020 */
  10635. #define FMC_SDCMR_NRFS_1 (0x2U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000040 */
  10636. #define FMC_SDCMR_NRFS_2 (0x4U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000080 */
  10637. #define FMC_SDCMR_NRFS_3 (0x8U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000100 */
  10638. #define FMC_SDCMR_MRD_Pos (9U)
  10639. #define FMC_SDCMR_MRD_Msk (0x1FFFU << FMC_SDCMR_MRD_Pos) /*!< 0x003FFE00 */
  10640. #define FMC_SDCMR_MRD FMC_SDCMR_MRD_Msk /*!<MRD[12:0] bits (Mode register definition) */
  10641. /****************** Bit definition for FMC_SDRTR register ******************/
  10642. #define FMC_SDRTR_CRE_Pos (0U)
  10643. #define FMC_SDRTR_CRE_Msk (0x1U << FMC_SDRTR_CRE_Pos) /*!< 0x00000001 */
  10644. #define FMC_SDRTR_CRE FMC_SDRTR_CRE_Msk /*!<Clear refresh error flag */
  10645. #define FMC_SDRTR_COUNT_Pos (1U)
  10646. #define FMC_SDRTR_COUNT_Msk (0x1FFFU << FMC_SDRTR_COUNT_Pos) /*!< 0x00003FFE */
  10647. #define FMC_SDRTR_COUNT FMC_SDRTR_COUNT_Msk /*!<COUNT[12:0] bits (Refresh timer count) */
  10648. #define FMC_SDRTR_REIE_Pos (14U)
  10649. #define FMC_SDRTR_REIE_Msk (0x1U << FMC_SDRTR_REIE_Pos) /*!< 0x00004000 */
  10650. #define FMC_SDRTR_REIE FMC_SDRTR_REIE_Msk /*!<RES interupt enable */
  10651. /****************** Bit definition for FMC_SDSR register ******************/
  10652. #define FMC_SDSR_RE_Pos (0U)
  10653. #define FMC_SDSR_RE_Msk (0x1U << FMC_SDSR_RE_Pos) /*!< 0x00000001 */
  10654. #define FMC_SDSR_RE FMC_SDSR_RE_Msk /*!<Refresh error flag */
  10655. #define FMC_SDSR_MODES1_Pos (1U)
  10656. #define FMC_SDSR_MODES1_Msk (0x3U << FMC_SDSR_MODES1_Pos) /*!< 0x00000006 */
  10657. #define FMC_SDSR_MODES1 FMC_SDSR_MODES1_Msk /*!<MODES1[1:0]bits (Status mode for bank 1) */
  10658. #define FMC_SDSR_MODES1_0 (0x1U << FMC_SDSR_MODES1_Pos) /*!< 0x00000002 */
  10659. #define FMC_SDSR_MODES1_1 (0x2U << FMC_SDSR_MODES1_Pos) /*!< 0x00000004 */
  10660. #define FMC_SDSR_MODES2_Pos (3U)
  10661. #define FMC_SDSR_MODES2_Msk (0x3U << FMC_SDSR_MODES2_Pos) /*!< 0x00000018 */
  10662. #define FMC_SDSR_MODES2 FMC_SDSR_MODES2_Msk /*!<MODES2[1:0]bits (Status mode for bank 2) */
  10663. #define FMC_SDSR_MODES2_0 (0x1U << FMC_SDSR_MODES2_Pos) /*!< 0x00000008 */
  10664. #define FMC_SDSR_MODES2_1 (0x2U << FMC_SDSR_MODES2_Pos) /*!< 0x00000010 */
  10665. /******************************************************************************/
  10666. /* */
  10667. /* General Purpose I/O */
  10668. /* */
  10669. /******************************************************************************/
  10670. /****************** Bits definition for GPIO_MODER register *****************/
  10671. #define GPIO_MODER_MODER0_Pos (0U)
  10672. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  10673. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  10674. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  10675. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  10676. #define GPIO_MODER_MODER1_Pos (2U)
  10677. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  10678. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  10679. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  10680. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  10681. #define GPIO_MODER_MODER2_Pos (4U)
  10682. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  10683. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  10684. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  10685. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  10686. #define GPIO_MODER_MODER3_Pos (6U)
  10687. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  10688. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  10689. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  10690. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  10691. #define GPIO_MODER_MODER4_Pos (8U)
  10692. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  10693. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  10694. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  10695. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  10696. #define GPIO_MODER_MODER5_Pos (10U)
  10697. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  10698. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  10699. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  10700. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  10701. #define GPIO_MODER_MODER6_Pos (12U)
  10702. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  10703. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  10704. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  10705. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  10706. #define GPIO_MODER_MODER7_Pos (14U)
  10707. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  10708. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  10709. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  10710. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  10711. #define GPIO_MODER_MODER8_Pos (16U)
  10712. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  10713. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  10714. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  10715. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  10716. #define GPIO_MODER_MODER9_Pos (18U)
  10717. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  10718. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  10719. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  10720. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  10721. #define GPIO_MODER_MODER10_Pos (20U)
  10722. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  10723. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  10724. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  10725. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  10726. #define GPIO_MODER_MODER11_Pos (22U)
  10727. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  10728. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  10729. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  10730. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  10731. #define GPIO_MODER_MODER12_Pos (24U)
  10732. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  10733. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  10734. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  10735. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  10736. #define GPIO_MODER_MODER13_Pos (26U)
  10737. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  10738. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  10739. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  10740. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  10741. #define GPIO_MODER_MODER14_Pos (28U)
  10742. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  10743. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  10744. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  10745. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  10746. #define GPIO_MODER_MODER15_Pos (30U)
  10747. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  10748. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  10749. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  10750. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  10751. /****************** Bits definition for GPIO_OTYPER register ****************/
  10752. #define GPIO_OTYPER_OT_0 ((uint32_t)0x00000001)
  10753. #define GPIO_OTYPER_OT_1 ((uint32_t)0x00000002)
  10754. #define GPIO_OTYPER_OT_2 ((uint32_t)0x00000004)
  10755. #define GPIO_OTYPER_OT_3 ((uint32_t)0x00000008)
  10756. #define GPIO_OTYPER_OT_4 ((uint32_t)0x00000010)
  10757. #define GPIO_OTYPER_OT_5 ((uint32_t)0x00000020)
  10758. #define GPIO_OTYPER_OT_6 ((uint32_t)0x00000040)
  10759. #define GPIO_OTYPER_OT_7 ((uint32_t)0x00000080)
  10760. #define GPIO_OTYPER_OT_8 ((uint32_t)0x00000100)
  10761. #define GPIO_OTYPER_OT_9 ((uint32_t)0x00000200)
  10762. #define GPIO_OTYPER_OT_10 ((uint32_t)0x00000400)
  10763. #define GPIO_OTYPER_OT_11 ((uint32_t)0x00000800)
  10764. #define GPIO_OTYPER_OT_12 ((uint32_t)0x00001000)
  10765. #define GPIO_OTYPER_OT_13 ((uint32_t)0x00002000)
  10766. #define GPIO_OTYPER_OT_14 ((uint32_t)0x00004000)
  10767. #define GPIO_OTYPER_OT_15 ((uint32_t)0x00008000)
  10768. /****************** Bits definition for GPIO_OSPEEDR register ***************/
  10769. #define GPIO_OSPEEDER_OSPEEDR0_Pos (0U)
  10770. #define GPIO_OSPEEDER_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000003 */
  10771. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDER_OSPEEDR0_Msk
  10772. #define GPIO_OSPEEDER_OSPEEDR0_0 (0x1U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000001 */
  10773. #define GPIO_OSPEEDER_OSPEEDR0_1 (0x2U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000002 */
  10774. #define GPIO_OSPEEDER_OSPEEDR1_Pos (2U)
  10775. #define GPIO_OSPEEDER_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x0000000C */
  10776. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDER_OSPEEDR1_Msk
  10777. #define GPIO_OSPEEDER_OSPEEDR1_0 (0x1U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000004 */
  10778. #define GPIO_OSPEEDER_OSPEEDR1_1 (0x2U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000008 */
  10779. #define GPIO_OSPEEDER_OSPEEDR2_Pos (4U)
  10780. #define GPIO_OSPEEDER_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000030 */
  10781. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDER_OSPEEDR2_Msk
  10782. #define GPIO_OSPEEDER_OSPEEDR2_0 (0x1U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000010 */
  10783. #define GPIO_OSPEEDER_OSPEEDR2_1 (0x2U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000020 */
  10784. #define GPIO_OSPEEDER_OSPEEDR3_Pos (6U)
  10785. #define GPIO_OSPEEDER_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x000000C0 */
  10786. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDER_OSPEEDR3_Msk
  10787. #define GPIO_OSPEEDER_OSPEEDR3_0 (0x1U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000040 */
  10788. #define GPIO_OSPEEDER_OSPEEDR3_1 (0x2U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000080 */
  10789. #define GPIO_OSPEEDER_OSPEEDR4_Pos (8U)
  10790. #define GPIO_OSPEEDER_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000300 */
  10791. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDER_OSPEEDR4_Msk
  10792. #define GPIO_OSPEEDER_OSPEEDR4_0 (0x1U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000100 */
  10793. #define GPIO_OSPEEDER_OSPEEDR4_1 (0x2U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000200 */
  10794. #define GPIO_OSPEEDER_OSPEEDR5_Pos (10U)
  10795. #define GPIO_OSPEEDER_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000C00 */
  10796. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDER_OSPEEDR5_Msk
  10797. #define GPIO_OSPEEDER_OSPEEDR5_0 (0x1U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000400 */
  10798. #define GPIO_OSPEEDER_OSPEEDR5_1 (0x2U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000800 */
  10799. #define GPIO_OSPEEDER_OSPEEDR6_Pos (12U)
  10800. #define GPIO_OSPEEDER_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00003000 */
  10801. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDER_OSPEEDR6_Msk
  10802. #define GPIO_OSPEEDER_OSPEEDR6_0 (0x1U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00001000 */
  10803. #define GPIO_OSPEEDER_OSPEEDR6_1 (0x2U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00002000 */
  10804. #define GPIO_OSPEEDER_OSPEEDR7_Pos (14U)
  10805. #define GPIO_OSPEEDER_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x0000C000 */
  10806. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDER_OSPEEDR7_Msk
  10807. #define GPIO_OSPEEDER_OSPEEDR7_0 (0x1U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00004000 */
  10808. #define GPIO_OSPEEDER_OSPEEDR7_1 (0x2U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00008000 */
  10809. #define GPIO_OSPEEDER_OSPEEDR8_Pos (16U)
  10810. #define GPIO_OSPEEDER_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00030000 */
  10811. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDER_OSPEEDR8_Msk
  10812. #define GPIO_OSPEEDER_OSPEEDR8_0 (0x1U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00010000 */
  10813. #define GPIO_OSPEEDER_OSPEEDR8_1 (0x2U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00020000 */
  10814. #define GPIO_OSPEEDER_OSPEEDR9_Pos (18U)
  10815. #define GPIO_OSPEEDER_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x000C0000 */
  10816. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDER_OSPEEDR9_Msk
  10817. #define GPIO_OSPEEDER_OSPEEDR9_0 (0x1U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00040000 */
  10818. #define GPIO_OSPEEDER_OSPEEDR9_1 (0x2U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00080000 */
  10819. #define GPIO_OSPEEDER_OSPEEDR10_Pos (20U)
  10820. #define GPIO_OSPEEDER_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00300000 */
  10821. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDER_OSPEEDR10_Msk
  10822. #define GPIO_OSPEEDER_OSPEEDR10_0 (0x1U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00100000 */
  10823. #define GPIO_OSPEEDER_OSPEEDR10_1 (0x2U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00200000 */
  10824. #define GPIO_OSPEEDER_OSPEEDR11_Pos (22U)
  10825. #define GPIO_OSPEEDER_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00C00000 */
  10826. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDER_OSPEEDR11_Msk
  10827. #define GPIO_OSPEEDER_OSPEEDR11_0 (0x1U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00400000 */
  10828. #define GPIO_OSPEEDER_OSPEEDR11_1 (0x2U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00800000 */
  10829. #define GPIO_OSPEEDER_OSPEEDR12_Pos (24U)
  10830. #define GPIO_OSPEEDER_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x03000000 */
  10831. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDER_OSPEEDR12_Msk
  10832. #define GPIO_OSPEEDER_OSPEEDR12_0 (0x1U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x01000000 */
  10833. #define GPIO_OSPEEDER_OSPEEDR12_1 (0x2U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x02000000 */
  10834. #define GPIO_OSPEEDER_OSPEEDR13_Pos (26U)
  10835. #define GPIO_OSPEEDER_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x0C000000 */
  10836. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDER_OSPEEDR13_Msk
  10837. #define GPIO_OSPEEDER_OSPEEDR13_0 (0x1U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x04000000 */
  10838. #define GPIO_OSPEEDER_OSPEEDR13_1 (0x2U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x08000000 */
  10839. #define GPIO_OSPEEDER_OSPEEDR14_Pos (28U)
  10840. #define GPIO_OSPEEDER_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x30000000 */
  10841. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDER_OSPEEDR14_Msk
  10842. #define GPIO_OSPEEDER_OSPEEDR14_0 (0x1U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x10000000 */
  10843. #define GPIO_OSPEEDER_OSPEEDR14_1 (0x2U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x20000000 */
  10844. #define GPIO_OSPEEDER_OSPEEDR15_Pos (30U)
  10845. #define GPIO_OSPEEDER_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0xC0000000 */
  10846. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDER_OSPEEDR15_Msk
  10847. #define GPIO_OSPEEDER_OSPEEDR15_0 (0x1U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x40000000 */
  10848. #define GPIO_OSPEEDER_OSPEEDR15_1 (0x2U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x80000000 */
  10849. /****************** Bits definition for GPIO_PUPDR register *****************/
  10850. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  10851. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  10852. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  10853. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  10854. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  10855. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  10856. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  10857. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  10858. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  10859. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  10860. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  10861. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  10862. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  10863. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  10864. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  10865. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  10866. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  10867. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  10868. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  10869. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  10870. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  10871. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  10872. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  10873. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  10874. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  10875. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  10876. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  10877. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  10878. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  10879. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  10880. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  10881. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  10882. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  10883. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  10884. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  10885. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  10886. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  10887. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  10888. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  10889. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  10890. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  10891. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  10892. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  10893. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  10894. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  10895. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  10896. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  10897. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  10898. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  10899. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  10900. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  10901. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  10902. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  10903. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  10904. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  10905. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  10906. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  10907. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  10908. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  10909. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  10910. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  10911. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  10912. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  10913. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  10914. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  10915. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  10916. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  10917. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  10918. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  10919. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  10920. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  10921. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  10922. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  10923. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  10924. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  10925. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  10926. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  10927. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  10928. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  10929. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  10930. /****************** Bits definition for GPIO_IDR register *******************/
  10931. #define GPIO_IDR_IDR_0 ((uint32_t)0x00000001)
  10932. #define GPIO_IDR_IDR_1 ((uint32_t)0x00000002)
  10933. #define GPIO_IDR_IDR_2 ((uint32_t)0x00000004)
  10934. #define GPIO_IDR_IDR_3 ((uint32_t)0x00000008)
  10935. #define GPIO_IDR_IDR_4 ((uint32_t)0x00000010)
  10936. #define GPIO_IDR_IDR_5 ((uint32_t)0x00000020)
  10937. #define GPIO_IDR_IDR_6 ((uint32_t)0x00000040)
  10938. #define GPIO_IDR_IDR_7 ((uint32_t)0x00000080)
  10939. #define GPIO_IDR_IDR_8 ((uint32_t)0x00000100)
  10940. #define GPIO_IDR_IDR_9 ((uint32_t)0x00000200)
  10941. #define GPIO_IDR_IDR_10 ((uint32_t)0x00000400)
  10942. #define GPIO_IDR_IDR_11 ((uint32_t)0x00000800)
  10943. #define GPIO_IDR_IDR_12 ((uint32_t)0x00001000)
  10944. #define GPIO_IDR_IDR_13 ((uint32_t)0x00002000)
  10945. #define GPIO_IDR_IDR_14 ((uint32_t)0x00004000)
  10946. #define GPIO_IDR_IDR_15 ((uint32_t)0x00008000)
  10947. /* Old GPIO_IDR register bits definition, maintained for legacy purpose */
  10948. #define GPIO_OTYPER_IDR_0 GPIO_IDR_IDR_0
  10949. #define GPIO_OTYPER_IDR_1 GPIO_IDR_IDR_1
  10950. #define GPIO_OTYPER_IDR_2 GPIO_IDR_IDR_2
  10951. #define GPIO_OTYPER_IDR_3 GPIO_IDR_IDR_3
  10952. #define GPIO_OTYPER_IDR_4 GPIO_IDR_IDR_4
  10953. #define GPIO_OTYPER_IDR_5 GPIO_IDR_IDR_5
  10954. #define GPIO_OTYPER_IDR_6 GPIO_IDR_IDR_6
  10955. #define GPIO_OTYPER_IDR_7 GPIO_IDR_IDR_7
  10956. #define GPIO_OTYPER_IDR_8 GPIO_IDR_IDR_8
  10957. #define GPIO_OTYPER_IDR_9 GPIO_IDR_IDR_9
  10958. #define GPIO_OTYPER_IDR_10 GPIO_IDR_IDR_10
  10959. #define GPIO_OTYPER_IDR_11 GPIO_IDR_IDR_11
  10960. #define GPIO_OTYPER_IDR_12 GPIO_IDR_IDR_12
  10961. #define GPIO_OTYPER_IDR_13 GPIO_IDR_IDR_13
  10962. #define GPIO_OTYPER_IDR_14 GPIO_IDR_IDR_14
  10963. #define GPIO_OTYPER_IDR_15 GPIO_IDR_IDR_15
  10964. /****************** Bits definition for GPIO_ODR register *******************/
  10965. #define GPIO_ODR_ODR_0 ((uint32_t)0x00000001)
  10966. #define GPIO_ODR_ODR_1 ((uint32_t)0x00000002)
  10967. #define GPIO_ODR_ODR_2 ((uint32_t)0x00000004)
  10968. #define GPIO_ODR_ODR_3 ((uint32_t)0x00000008)
  10969. #define GPIO_ODR_ODR_4 ((uint32_t)0x00000010)
  10970. #define GPIO_ODR_ODR_5 ((uint32_t)0x00000020)
  10971. #define GPIO_ODR_ODR_6 ((uint32_t)0x00000040)
  10972. #define GPIO_ODR_ODR_7 ((uint32_t)0x00000080)
  10973. #define GPIO_ODR_ODR_8 ((uint32_t)0x00000100)
  10974. #define GPIO_ODR_ODR_9 ((uint32_t)0x00000200)
  10975. #define GPIO_ODR_ODR_10 ((uint32_t)0x00000400)
  10976. #define GPIO_ODR_ODR_11 ((uint32_t)0x00000800)
  10977. #define GPIO_ODR_ODR_12 ((uint32_t)0x00001000)
  10978. #define GPIO_ODR_ODR_13 ((uint32_t)0x00002000)
  10979. #define GPIO_ODR_ODR_14 ((uint32_t)0x00004000)
  10980. #define GPIO_ODR_ODR_15 ((uint32_t)0x00008000)
  10981. /* Old GPIO_ODR register bits definition, maintained for legacy purpose */
  10982. #define GPIO_OTYPER_ODR_0 GPIO_ODR_ODR_0
  10983. #define GPIO_OTYPER_ODR_1 GPIO_ODR_ODR_1
  10984. #define GPIO_OTYPER_ODR_2 GPIO_ODR_ODR_2
  10985. #define GPIO_OTYPER_ODR_3 GPIO_ODR_ODR_3
  10986. #define GPIO_OTYPER_ODR_4 GPIO_ODR_ODR_4
  10987. #define GPIO_OTYPER_ODR_5 GPIO_ODR_ODR_5
  10988. #define GPIO_OTYPER_ODR_6 GPIO_ODR_ODR_6
  10989. #define GPIO_OTYPER_ODR_7 GPIO_ODR_ODR_7
  10990. #define GPIO_OTYPER_ODR_8 GPIO_ODR_ODR_8
  10991. #define GPIO_OTYPER_ODR_9 GPIO_ODR_ODR_9
  10992. #define GPIO_OTYPER_ODR_10 GPIO_ODR_ODR_10
  10993. #define GPIO_OTYPER_ODR_11 GPIO_ODR_ODR_11
  10994. #define GPIO_OTYPER_ODR_12 GPIO_ODR_ODR_12
  10995. #define GPIO_OTYPER_ODR_13 GPIO_ODR_ODR_13
  10996. #define GPIO_OTYPER_ODR_14 GPIO_ODR_ODR_14
  10997. #define GPIO_OTYPER_ODR_15 GPIO_ODR_ODR_15
  10998. /****************** Bits definition for GPIO_BSRR register ******************/
  10999. #define GPIO_BSRR_BS_0 ((uint32_t)0x00000001)
  11000. #define GPIO_BSRR_BS_1 ((uint32_t)0x00000002)
  11001. #define GPIO_BSRR_BS_2 ((uint32_t)0x00000004)
  11002. #define GPIO_BSRR_BS_3 ((uint32_t)0x00000008)
  11003. #define GPIO_BSRR_BS_4 ((uint32_t)0x00000010)
  11004. #define GPIO_BSRR_BS_5 ((uint32_t)0x00000020)
  11005. #define GPIO_BSRR_BS_6 ((uint32_t)0x00000040)
  11006. #define GPIO_BSRR_BS_7 ((uint32_t)0x00000080)
  11007. #define GPIO_BSRR_BS_8 ((uint32_t)0x00000100)
  11008. #define GPIO_BSRR_BS_9 ((uint32_t)0x00000200)
  11009. #define GPIO_BSRR_BS_10 ((uint32_t)0x00000400)
  11010. #define GPIO_BSRR_BS_11 ((uint32_t)0x00000800)
  11011. #define GPIO_BSRR_BS_12 ((uint32_t)0x00001000)
  11012. #define GPIO_BSRR_BS_13 ((uint32_t)0x00002000)
  11013. #define GPIO_BSRR_BS_14 ((uint32_t)0x00004000)
  11014. #define GPIO_BSRR_BS_15 ((uint32_t)0x00008000)
  11015. #define GPIO_BSRR_BR_0 ((uint32_t)0x00010000)
  11016. #define GPIO_BSRR_BR_1 ((uint32_t)0x00020000)
  11017. #define GPIO_BSRR_BR_2 ((uint32_t)0x00040000)
  11018. #define GPIO_BSRR_BR_3 ((uint32_t)0x00080000)
  11019. #define GPIO_BSRR_BR_4 ((uint32_t)0x00100000)
  11020. #define GPIO_BSRR_BR_5 ((uint32_t)0x00200000)
  11021. #define GPIO_BSRR_BR_6 ((uint32_t)0x00400000)
  11022. #define GPIO_BSRR_BR_7 ((uint32_t)0x00800000)
  11023. #define GPIO_BSRR_BR_8 ((uint32_t)0x01000000)
  11024. #define GPIO_BSRR_BR_9 ((uint32_t)0x02000000)
  11025. #define GPIO_BSRR_BR_10 ((uint32_t)0x04000000)
  11026. #define GPIO_BSRR_BR_11 ((uint32_t)0x08000000)
  11027. #define GPIO_BSRR_BR_12 ((uint32_t)0x10000000)
  11028. #define GPIO_BSRR_BR_13 ((uint32_t)0x20000000)
  11029. #define GPIO_BSRR_BR_14 ((uint32_t)0x40000000)
  11030. #define GPIO_BSRR_BR_15 ((uint32_t)0x80000000)
  11031. /****************** Bit definition for GPIO_LCKR register *********************/
  11032. #define GPIO_LCKR_LCK0_Pos (0U)
  11033. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  11034. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  11035. #define GPIO_LCKR_LCK1_Pos (1U)
  11036. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  11037. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  11038. #define GPIO_LCKR_LCK2_Pos (2U)
  11039. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  11040. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  11041. #define GPIO_LCKR_LCK3_Pos (3U)
  11042. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  11043. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  11044. #define GPIO_LCKR_LCK4_Pos (4U)
  11045. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  11046. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  11047. #define GPIO_LCKR_LCK5_Pos (5U)
  11048. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  11049. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  11050. #define GPIO_LCKR_LCK6_Pos (6U)
  11051. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  11052. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  11053. #define GPIO_LCKR_LCK7_Pos (7U)
  11054. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  11055. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  11056. #define GPIO_LCKR_LCK8_Pos (8U)
  11057. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  11058. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  11059. #define GPIO_LCKR_LCK9_Pos (9U)
  11060. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  11061. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  11062. #define GPIO_LCKR_LCK10_Pos (10U)
  11063. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  11064. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  11065. #define GPIO_LCKR_LCK11_Pos (11U)
  11066. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  11067. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  11068. #define GPIO_LCKR_LCK12_Pos (12U)
  11069. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  11070. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  11071. #define GPIO_LCKR_LCK13_Pos (13U)
  11072. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  11073. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  11074. #define GPIO_LCKR_LCK14_Pos (14U)
  11075. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  11076. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  11077. #define GPIO_LCKR_LCK15_Pos (15U)
  11078. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  11079. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  11080. #define GPIO_LCKR_LCKK_Pos (16U)
  11081. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  11082. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  11083. /****************** Bit definition for GPIO_AFRL register ********************/
  11084. #define GPIO_AFRL_AFRL0_Pos (0U)
  11085. #define GPIO_AFRL_AFRL0_Msk (0xFU << GPIO_AFRL_AFRL0_Pos) /*!< 0x0000000F */
  11086. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFRL0_Msk
  11087. #define GPIO_AFRL_AFRL1_Pos (4U)
  11088. #define GPIO_AFRL_AFRL1_Msk (0xFU << GPIO_AFRL_AFRL1_Pos) /*!< 0x000000F0 */
  11089. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFRL1_Msk
  11090. #define GPIO_AFRL_AFRL2_Pos (8U)
  11091. #define GPIO_AFRL_AFRL2_Msk (0xFU << GPIO_AFRL_AFRL2_Pos) /*!< 0x00000F00 */
  11092. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFRL2_Msk
  11093. #define GPIO_AFRL_AFRL3_Pos (12U)
  11094. #define GPIO_AFRL_AFRL3_Msk (0xFU << GPIO_AFRL_AFRL3_Pos) /*!< 0x0000F000 */
  11095. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFRL3_Msk
  11096. #define GPIO_AFRL_AFRL4_Pos (16U)
  11097. #define GPIO_AFRL_AFRL4_Msk (0xFU << GPIO_AFRL_AFRL4_Pos) /*!< 0x000F0000 */
  11098. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFRL4_Msk
  11099. #define GPIO_AFRL_AFRL5_Pos (20U)
  11100. #define GPIO_AFRL_AFRL5_Msk (0xFU << GPIO_AFRL_AFRL5_Pos) /*!< 0x00F00000 */
  11101. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFRL5_Msk
  11102. #define GPIO_AFRL_AFRL6_Pos (24U)
  11103. #define GPIO_AFRL_AFRL6_Msk (0xFU << GPIO_AFRL_AFRL6_Pos) /*!< 0x0F000000 */
  11104. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFRL6_Msk
  11105. #define GPIO_AFRL_AFRL7_Pos (28U)
  11106. #define GPIO_AFRL_AFRL7_Msk (0xFU << GPIO_AFRL_AFRL7_Pos) /*!< 0xF0000000 */
  11107. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFRL7_Msk
  11108. /****************** Bit definition for GPIO_AFRH register ********************/
  11109. #define GPIO_AFRH_AFRH0_Pos (0U)
  11110. #define GPIO_AFRH_AFRH0_Msk (0xFU << GPIO_AFRH_AFRH0_Pos) /*!< 0x0000000F */
  11111. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFRH0_Msk
  11112. #define GPIO_AFRH_AFRH1_Pos (4U)
  11113. #define GPIO_AFRH_AFRH1_Msk (0xFU << GPIO_AFRH_AFRH1_Pos) /*!< 0x000000F0 */
  11114. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFRH1_Msk
  11115. #define GPIO_AFRH_AFRH2_Pos (8U)
  11116. #define GPIO_AFRH_AFRH2_Msk (0xFU << GPIO_AFRH_AFRH2_Pos) /*!< 0x00000F00 */
  11117. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFRH2_Msk
  11118. #define GPIO_AFRH_AFRH3_Pos (12U)
  11119. #define GPIO_AFRH_AFRH3_Msk (0xFU << GPIO_AFRH_AFRH3_Pos) /*!< 0x0000F000 */
  11120. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFRH3_Msk
  11121. #define GPIO_AFRH_AFRH4_Pos (16U)
  11122. #define GPIO_AFRH_AFRH4_Msk (0xFU << GPIO_AFRH_AFRH4_Pos) /*!< 0x000F0000 */
  11123. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFRH4_Msk
  11124. #define GPIO_AFRH_AFRH5_Pos (20U)
  11125. #define GPIO_AFRH_AFRH5_Msk (0xFU << GPIO_AFRH_AFRH5_Pos) /*!< 0x00F00000 */
  11126. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFRH5_Msk
  11127. #define GPIO_AFRH_AFRH6_Pos (24U)
  11128. #define GPIO_AFRH_AFRH6_Msk (0xFU << GPIO_AFRH_AFRH6_Pos) /*!< 0x0F000000 */
  11129. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFRH6_Msk
  11130. #define GPIO_AFRH_AFRH7_Pos (28U)
  11131. #define GPIO_AFRH_AFRH7_Msk (0xFU << GPIO_AFRH_AFRH7_Pos) /*!< 0xF0000000 */
  11132. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFRH7_Msk
  11133. /******************************************************************************/
  11134. /* */
  11135. /* HSEM HW Semaphore */
  11136. /* */
  11137. /******************************************************************************/
  11138. /******************** Bit definition for HSEM_R register ********************/
  11139. #define HSEM_R_PROCID_Pos (0U)
  11140. #define HSEM_R_PROCID_Msk (0xFFU << HSEM_R_PROCID_Pos) /*!< 0x000000FF */
  11141. #define HSEM_R_PROCID HSEM_R_PROCID_Msk /*!<Semaphore ProcessID */
  11142. #define HSEM_R_MASTERID_Pos (8U)
  11143. #define HSEM_R_MASTERID_Msk (0xFFU << HSEM_R_MASTERID_Pos) /*!< 0x0000FF00 */
  11144. #define HSEM_R_MASTERID HSEM_R_MASTERID_Msk /*!<Semaphore MasterID. */
  11145. #define HSEM_R_LOCK_Pos (31U)
  11146. #define HSEM_R_LOCK_Msk (0x1U << HSEM_R_LOCK_Pos) /*!< 0x80000000 */
  11147. #define HSEM_R_LOCK HSEM_R_LOCK_Msk /*!<Lock indication. */
  11148. /******************** Bit definition for HSEM_RLR register ******************/
  11149. #define HSEM_RLR_PROCID_Pos (0U)
  11150. #define HSEM_RLR_PROCID_Msk (0xFFU << HSEM_RLR_PROCID_Pos) /*!< 0x000000FF */
  11151. #define HSEM_RLR_PROCID HSEM_RLR_PROCID_Msk /*!<Semaphore ProcessID */
  11152. #define HSEM_RLR_MASTERID_Pos (8U)
  11153. #define HSEM_RLR_MASTERID_Msk (0xFFU << HSEM_RLR_MASTERID_Pos) /*!< 0x0000FF00 */
  11154. #define HSEM_RLR_MASTERID HSEM_RLR_MASTERID_Msk /*!<Semaphore MasterID. */
  11155. #define HSEM_RLR_LOCK_Pos (31U)
  11156. #define HSEM_RLR_LOCK_Msk (0x1U << HSEM_RLR_LOCK_Pos) /*!< 0x80000000 */
  11157. #define HSEM_RLR_LOCK HSEM_RLR_LOCK_Msk /*!<Lock indication. */
  11158. /******************** Bit definition for HSEM_IER register *****************/
  11159. #define HSEM_IER_ISEM0_Pos (0U)
  11160. #define HSEM_IER_ISEM0_Msk (0x1U << HSEM_IER_ISEM0_Pos) /*!< 0x00000001 */
  11161. #define HSEM_IER_ISEM0 HSEM_IER_ISEM0_Msk /*!<semaphore 0 , interrupt 0 enable bit. */
  11162. #define HSEM_IER_ISEM1_Pos (1U)
  11163. #define HSEM_IER_ISEM1_Msk (0x1U << HSEM_IER_ISEM1_Pos) /*!< 0x00000002 */
  11164. #define HSEM_IER_ISEM1 HSEM_IER_ISEM1_Msk /*!<semaphore 1 , interrupt 0 enable bit. */
  11165. #define HSEM_IER_ISEM2_Pos (2U)
  11166. #define HSEM_IER_ISEM2_Msk (0x1U << HSEM_IER_ISEM2_Pos) /*!< 0x00000004 */
  11167. #define HSEM_IER_ISEM2 HSEM_IER_ISEM2_Msk /*!<semaphore 2 , interrupt 0 enable bit. */
  11168. #define HSEM_IER_ISEM3_Pos (3U)
  11169. #define HSEM_IER_ISEM3_Msk (0x1U << HSEM_IER_ISEM3_Pos) /*!< 0x00000008 */
  11170. #define HSEM_IER_ISEM3 HSEM_IER_ISEM3_Msk /*!<semaphore 3 , interrupt 0 enable bit. */
  11171. #define HSEM_IER_ISEM4_Pos (4U)
  11172. #define HSEM_IER_ISEM4_Msk (0x1U << HSEM_IER_ISEM4_Pos) /*!< 0x00000010 */
  11173. #define HSEM_IER_ISEM4 HSEM_IER_ISEM4_Msk /*!<semaphore 4 , interrupt 0 enable bit. */
  11174. #define HSEM_IER_ISEM5_Pos (5U)
  11175. #define HSEM_IER_ISEM5_Msk (0x1U << HSEM_IER_ISEM5_Pos) /*!< 0x00000020 */
  11176. #define HSEM_IER_ISEM5 HSEM_IER_ISEM5_Msk /*!<semaphore 5 interrupt 0 enable bit. */
  11177. #define HSEM_IER_ISEM6_Pos (6U)
  11178. #define HSEM_IER_ISEM6_Msk (0x1U << HSEM_IER_ISEM6_Pos) /*!< 0x00000040 */
  11179. #define HSEM_IER_ISEM6 HSEM_IER_ISEM6_Msk /*!<semaphore 6 interrupt 0 enable bit. */
  11180. #define HSEM_IER_ISEM7_Pos (7U)
  11181. #define HSEM_IER_ISEM7_Msk (0x1U << HSEM_IER_ISEM7_Pos) /*!< 0x00000080 */
  11182. #define HSEM_IER_ISEM7 HSEM_IER_ISEM7_Msk /*!<semaphore 7 interrupt 0 enable bit. */
  11183. #define HSEM_IER_ISEM8_Pos (8U)
  11184. #define HSEM_IER_ISEM8_Msk (0x1U << HSEM_IER_ISEM8_Pos) /*!< 0x00000100 */
  11185. #define HSEM_IER_ISEM8 HSEM_IER_ISEM8_Msk /*!<semaphore 8 interrupt 0 enable bit. */
  11186. #define HSEM_IER_ISEM9_Pos (9U)
  11187. #define HSEM_IER_ISEM9_Msk (0x1U << HSEM_IER_ISEM9_Pos) /*!< 0x00000200 */
  11188. #define HSEM_IER_ISEM9 HSEM_IER_ISEM9_Msk /*!<semaphore 9 interrupt 0 enable bit. */
  11189. #define HSEM_IER_ISEM10_Pos (10U)
  11190. #define HSEM_IER_ISEM10_Msk (0x1U << HSEM_IER_ISEM10_Pos) /*!< 0x00000400 */
  11191. #define HSEM_IER_ISEM10 HSEM_IER_ISEM10_Msk /*!<semaphore 10 interrupt 0 enable bit. */
  11192. #define HSEM_IER_ISEM11_Pos (11U)
  11193. #define HSEM_IER_ISEM11_Msk (0x1U << HSEM_IER_ISEM11_Pos) /*!< 0x00000800 */
  11194. #define HSEM_IER_ISEM11 HSEM_IER_ISEM11_Msk /*!<semaphore 11 interrupt 0 enable bit. */
  11195. #define HSEM_IER_ISEM12_Pos (12U)
  11196. #define HSEM_IER_ISEM12_Msk (0x1U << HSEM_IER_ISEM12_Pos) /*!< 0x00001000 */
  11197. #define HSEM_IER_ISEM12 HSEM_IER_ISEM12_Msk /*!<semaphore 12 interrupt 0 enable bit. */
  11198. #define HSEM_IER_ISEM13_Pos (13U)
  11199. #define HSEM_IER_ISEM13_Msk (0x1U << HSEM_IER_ISEM13_Pos) /*!< 0x00002000 */
  11200. #define HSEM_IER_ISEM13 HSEM_IER_ISEM13_Msk /*!<semaphore 13 interrupt 0 enable bit. */
  11201. #define HSEM_IER_ISEM14_Pos (14U)
  11202. #define HSEM_IER_ISEM14_Msk (0x1U << HSEM_IER_ISEM14_Pos) /*!< 0x00004000 */
  11203. #define HSEM_IER_ISEM14 HSEM_IER_ISEM14_Msk /*!<semaphore 14 interrupt 0 enable bit. */
  11204. #define HSEM_IER_ISEM15_Pos (15U)
  11205. #define HSEM_IER_ISEM15_Msk (0x1U << HSEM_IER_ISEM15_Pos) /*!< 0x00008000 */
  11206. #define HSEM_IER_ISEM15 HSEM_IER_ISEM15_Msk /*!<semaphore 15 interrupt 0 enable bit. */
  11207. #define HSEM_IER_ISEM16_Pos (16U)
  11208. #define HSEM_IER_ISEM16_Msk (0x1U << HSEM_IER_ISEM16_Pos) /*!< 0x00010000 */
  11209. #define HSEM_IER_ISEM16 HSEM_IER_ISEM16_Msk /*!<semaphore 16 interrupt 0 enable bit. */
  11210. #define HSEM_IER_ISEM17_Pos (17U)
  11211. #define HSEM_IER_ISEM17_Msk (0x1U << HSEM_IER_ISEM17_Pos) /*!< 0x00020000 */
  11212. #define HSEM_IER_ISEM17 HSEM_IER_ISEM17_Msk /*!<semaphore 17 interrupt 0 enable bit. */
  11213. #define HSEM_IER_ISEM18_Pos (18U)
  11214. #define HSEM_IER_ISEM18_Msk (0x1U << HSEM_IER_ISEM18_Pos) /*!< 0x00040000 */
  11215. #define HSEM_IER_ISEM18 HSEM_IER_ISEM18_Msk /*!<semaphore 18 interrupt 0 enable bit. */
  11216. #define HSEM_IER_ISEM19_Pos (19U)
  11217. #define HSEM_IER_ISEM19_Msk (0x1U << HSEM_IER_ISEM19_Pos) /*!< 0x00080000 */
  11218. #define HSEM_IER_ISEM19 HSEM_IER_ISEM19_Msk /*!<semaphore 19 interrupt 0 enable bit. */
  11219. #define HSEM_IER_ISEM20_Pos (20U)
  11220. #define HSEM_IER_ISEM20_Msk (0x1U << HSEM_IER_ISEM20_Pos) /*!< 0x00100000 */
  11221. #define HSEM_IER_ISEM20 HSEM_IER_ISEM20_Msk /*!<semaphore 20 interrupt 0 enable bit. */
  11222. #define HSEM_IER_ISEM21_Pos (21U)
  11223. #define HSEM_IER_ISEM21_Msk (0x1U << HSEM_IER_ISEM21_Pos) /*!< 0x00200000 */
  11224. #define HSEM_IER_ISEM21 HSEM_IER_ISEM21_Msk /*!<semaphore 21 interrupt 0 enable bit. */
  11225. #define HSEM_IER_ISEM22_Pos (22U)
  11226. #define HSEM_IER_ISEM22_Msk (0x1U << HSEM_IER_ISEM22_Pos) /*!< 0x00400000 */
  11227. #define HSEM_IER_ISEM22 HSEM_IER_ISEM22_Msk /*!<semaphore 22 interrupt 0 enable bit. */
  11228. #define HSEM_IER_ISEM23_Pos (23U)
  11229. #define HSEM_IER_ISEM23_Msk (0x1U << HSEM_IER_ISEM23_Pos) /*!< 0x00800000 */
  11230. #define HSEM_IER_ISEM23 HSEM_IER_ISEM23_Msk /*!<semaphore 23 interrupt 0 enable bit. */
  11231. #define HSEM_IER_ISEM24_Pos (24U)
  11232. #define HSEM_IER_ISEM24_Msk (0x1U << HSEM_IER_ISEM24_Pos) /*!< 0x01000000 */
  11233. #define HSEM_IER_ISEM24 HSEM_IER_ISEM24_Msk /*!<semaphore 24 interrupt 0 enable bit. */
  11234. #define HSEM_IER_ISEM25_Pos (25U)
  11235. #define HSEM_IER_ISEM25_Msk (0x1U << HSEM_IER_ISEM25_Pos) /*!< 0x02000000 */
  11236. #define HSEM_IER_ISEM25 HSEM_IER_ISEM25_Msk /*!<semaphore 25 interrupt 0 enable bit. */
  11237. #define HSEM_IER_ISEM26_Pos (26U)
  11238. #define HSEM_IER_ISEM26_Msk (0x1U << HSEM_IER_ISEM26_Pos) /*!< 0x04000000 */
  11239. #define HSEM_IER_ISEM26 HSEM_IER_ISEM26_Msk /*!<semaphore 26 interrupt 0 enable bit. */
  11240. #define HSEM_IER_ISEM27_Pos (27U)
  11241. #define HSEM_IER_ISEM27_Msk (0x1U << HSEM_IER_ISEM27_Pos) /*!< 0x08000000 */
  11242. #define HSEM_IER_ISEM27 HSEM_IER_ISEM27_Msk /*!<semaphore 27 interrupt 0 enable bit. */
  11243. #define HSEM_IER_ISEM28_Pos (28U)
  11244. #define HSEM_IER_ISEM28_Msk (0x1U << HSEM_IER_ISEM28_Pos) /*!< 0x10000000 */
  11245. #define HSEM_IER_ISEM28 HSEM_IER_ISEM28_Msk /*!<semaphore 28 interrupt 0 enable bit. */
  11246. #define HSEM_IER_ISEM29_Pos (29U)
  11247. #define HSEM_IER_ISEM29_Msk (0x1U << HSEM_IER_ISEM29_Pos) /*!< 0x20000000 */
  11248. #define HSEM_IER_ISEM29 HSEM_IER_ISEM29_Msk /*!<semaphore 29 interrupt 0 enable bit. */
  11249. #define HSEM_IER_ISEM30_Pos (30U)
  11250. #define HSEM_IER_ISEM30_Msk (0x1U << HSEM_IER_ISEM30_Pos) /*!< 0x40000000 */
  11251. #define HSEM_IER_ISEM30 HSEM_IER_ISEM30_Msk /*!<semaphore 30 interrupt 0 enable bit. */
  11252. #define HSEM_IER_ISEM31_Pos (31U)
  11253. #define HSEM_IER_ISEM31_Msk (0x1U << HSEM_IER_ISEM31_Pos) /*!< 0x80000000 */
  11254. #define HSEM_IER_ISEM31 HSEM_IER_ISEM31_Msk /*!<semaphore 31 interrupt 0 enable bit. */
  11255. /******************** Bit definition for HSEM_ICR register *****************/
  11256. #define HSEM_ICR_ISEM0_Pos (0U)
  11257. #define HSEM_ICR_ISEM0_Msk (0x1U << HSEM_ICR_ISEM0_Pos) /*!< 0x00000001 */
  11258. #define HSEM_ICR_ISEM0 HSEM_ICR_ISEM0_Msk /*!<semaphore 0 , interrupt 0 clear bit. */
  11259. #define HSEM_ICR_ISEM1_Pos (1U)
  11260. #define HSEM_ICR_ISEM1_Msk (0x1U << HSEM_ICR_ISEM1_Pos) /*!< 0x00000002 */
  11261. #define HSEM_ICR_ISEM1 HSEM_ICR_ISEM1_Msk /*!<semaphore 1 , interrupt 0 clear bit. */
  11262. #define HSEM_ICR_ISEM2_Pos (2U)
  11263. #define HSEM_ICR_ISEM2_Msk (0x1U << HSEM_ICR_ISEM2_Pos) /*!< 0x00000004 */
  11264. #define HSEM_ICR_ISEM2 HSEM_ICR_ISEM2_Msk /*!<semaphore 2 , interrupt 0 clear bit. */
  11265. #define HSEM_ICR_ISEM3_Pos (3U)
  11266. #define HSEM_ICR_ISEM3_Msk (0x1U << HSEM_ICR_ISEM3_Pos) /*!< 0x00000008 */
  11267. #define HSEM_ICR_ISEM3 HSEM_ICR_ISEM3_Msk /*!<semaphore 3 , interrupt 0 clear bit. */
  11268. #define HSEM_ICR_ISEM4_Pos (4U)
  11269. #define HSEM_ICR_ISEM4_Msk (0x1U << HSEM_ICR_ISEM4_Pos) /*!< 0x00000010 */
  11270. #define HSEM_ICR_ISEM4 HSEM_ICR_ISEM4_Msk /*!<semaphore 4 , interrupt 0 clear bit. */
  11271. #define HSEM_ICR_ISEM5_Pos (5U)
  11272. #define HSEM_ICR_ISEM5_Msk (0x1U << HSEM_ICR_ISEM5_Pos) /*!< 0x00000020 */
  11273. #define HSEM_ICR_ISEM5 HSEM_ICR_ISEM5_Msk /*!<semaphore 5 interrupt 0 clear bit. */
  11274. #define HSEM_ICR_ISEM6_Pos (6U)
  11275. #define HSEM_ICR_ISEM6_Msk (0x1U << HSEM_ICR_ISEM6_Pos) /*!< 0x00000040 */
  11276. #define HSEM_ICR_ISEM6 HSEM_ICR_ISEM6_Msk /*!<semaphore 6 interrupt 0 clear bit. */
  11277. #define HSEM_ICR_ISEM7_Pos (7U)
  11278. #define HSEM_ICR_ISEM7_Msk (0x1U << HSEM_ICR_ISEM7_Pos) /*!< 0x00000080 */
  11279. #define HSEM_ICR_ISEM7 HSEM_ICR_ISEM7_Msk /*!<semaphore 7 interrupt 0 clear bit. */
  11280. #define HSEM_ICR_ISEM8_Pos (8U)
  11281. #define HSEM_ICR_ISEM8_Msk (0x1U << HSEM_ICR_ISEM8_Pos) /*!< 0x00000100 */
  11282. #define HSEM_ICR_ISEM8 HSEM_ICR_ISEM8_Msk /*!<semaphore 8 interrupt 0 clear bit. */
  11283. #define HSEM_ICR_ISEM9_Pos (9U)
  11284. #define HSEM_ICR_ISEM9_Msk (0x1U << HSEM_ICR_ISEM9_Pos) /*!< 0x00000200 */
  11285. #define HSEM_ICR_ISEM9 HSEM_ICR_ISEM9_Msk /*!<semaphore 9 interrupt 0 clear bit. */
  11286. #define HSEM_ICR_ISEM10_Pos (10U)
  11287. #define HSEM_ICR_ISEM10_Msk (0x1U << HSEM_ICR_ISEM10_Pos) /*!< 0x00000400 */
  11288. #define HSEM_ICR_ISEM10 HSEM_ICR_ISEM10_Msk /*!<semaphore 10 interrupt 0 clear bit. */
  11289. #define HSEM_ICR_ISEM11_Pos (11U)
  11290. #define HSEM_ICR_ISEM11_Msk (0x1U << HSEM_ICR_ISEM11_Pos) /*!< 0x00000800 */
  11291. #define HSEM_ICR_ISEM11 HSEM_ICR_ISEM11_Msk /*!<semaphore 11 interrupt 0 clear bit. */
  11292. #define HSEM_ICR_ISEM12_Pos (12U)
  11293. #define HSEM_ICR_ISEM12_Msk (0x1U << HSEM_ICR_ISEM12_Pos) /*!< 0x00001000 */
  11294. #define HSEM_ICR_ISEM12 HSEM_ICR_ISEM12_Msk /*!<semaphore 12 interrupt 0 clear bit. */
  11295. #define HSEM_ICR_ISEM13_Pos (13U)
  11296. #define HSEM_ICR_ISEM13_Msk (0x1U << HSEM_ICR_ISEM13_Pos) /*!< 0x00002000 */
  11297. #define HSEM_ICR_ISEM13 HSEM_ICR_ISEM13_Msk /*!<semaphore 13 interrupt 0 clear bit. */
  11298. #define HSEM_ICR_ISEM14_Pos (14U)
  11299. #define HSEM_ICR_ISEM14_Msk (0x1U << HSEM_ICR_ISEM14_Pos) /*!< 0x00004000 */
  11300. #define HSEM_ICR_ISEM14 HSEM_ICR_ISEM14_Msk /*!<semaphore 14 interrupt 0 clear bit. */
  11301. #define HSEM_ICR_ISEM15_Pos (15U)
  11302. #define HSEM_ICR_ISEM15_Msk (0x1U << HSEM_ICR_ISEM15_Pos) /*!< 0x00008000 */
  11303. #define HSEM_ICR_ISEM15 HSEM_ICR_ISEM15_Msk /*!<semaphore 15 interrupt 0 clear bit. */
  11304. #define HSEM_ICR_ISEM16_Pos (16U)
  11305. #define HSEM_ICR_ISEM16_Msk (0x1U << HSEM_ICR_ISEM16_Pos) /*!< 0x00010000 */
  11306. #define HSEM_ICR_ISEM16 HSEM_ICR_ISEM16_Msk /*!<semaphore 16 interrupt 0 clear bit. */
  11307. #define HSEM_ICR_ISEM17_Pos (17U)
  11308. #define HSEM_ICR_ISEM17_Msk (0x1U << HSEM_ICR_ISEM17_Pos) /*!< 0x00020000 */
  11309. #define HSEM_ICR_ISEM17 HSEM_ICR_ISEM17_Msk /*!<semaphore 17 interrupt 0 clear bit. */
  11310. #define HSEM_ICR_ISEM18_Pos (18U)
  11311. #define HSEM_ICR_ISEM18_Msk (0x1U << HSEM_ICR_ISEM18_Pos) /*!< 0x00040000 */
  11312. #define HSEM_ICR_ISEM18 HSEM_ICR_ISEM18_Msk /*!<semaphore 18 interrupt 0 clear bit. */
  11313. #define HSEM_ICR_ISEM19_Pos (19U)
  11314. #define HSEM_ICR_ISEM19_Msk (0x1U << HSEM_ICR_ISEM19_Pos) /*!< 0x00080000 */
  11315. #define HSEM_ICR_ISEM19 HSEM_ICR_ISEM19_Msk /*!<semaphore 19 interrupt 0 clear bit. */
  11316. #define HSEM_ICR_ISEM20_Pos (20U)
  11317. #define HSEM_ICR_ISEM20_Msk (0x1U << HSEM_ICR_ISEM20_Pos) /*!< 0x00100000 */
  11318. #define HSEM_ICR_ISEM20 HSEM_ICR_ISEM20_Msk /*!<semaphore 20 interrupt 0 clear bit. */
  11319. #define HSEM_ICR_ISEM21_Pos (21U)
  11320. #define HSEM_ICR_ISEM21_Msk (0x1U << HSEM_ICR_ISEM21_Pos) /*!< 0x00200000 */
  11321. #define HSEM_ICR_ISEM21 HSEM_ICR_ISEM21_Msk /*!<semaphore 21 interrupt 0 clear bit. */
  11322. #define HSEM_ICR_ISEM22_Pos (22U)
  11323. #define HSEM_ICR_ISEM22_Msk (0x1U << HSEM_ICR_ISEM22_Pos) /*!< 0x00400000 */
  11324. #define HSEM_ICR_ISEM22 HSEM_ICR_ISEM22_Msk /*!<semaphore 22 interrupt 0 clear bit. */
  11325. #define HSEM_ICR_ISEM23_Pos (23U)
  11326. #define HSEM_ICR_ISEM23_Msk (0x1U << HSEM_ICR_ISEM23_Pos) /*!< 0x00800000 */
  11327. #define HSEM_ICR_ISEM23 HSEM_ICR_ISEM23_Msk /*!<semaphore 23 interrupt 0 clear bit. */
  11328. #define HSEM_ICR_ISEM24_Pos (24U)
  11329. #define HSEM_ICR_ISEM24_Msk (0x1U << HSEM_ICR_ISEM24_Pos) /*!< 0x01000000 */
  11330. #define HSEM_ICR_ISEM24 HSEM_ICR_ISEM24_Msk /*!<semaphore 24 interrupt 0 clear bit. */
  11331. #define HSEM_ICR_ISEM25_Pos (25U)
  11332. #define HSEM_ICR_ISEM25_Msk (0x1U << HSEM_ICR_ISEM25_Pos) /*!< 0x02000000 */
  11333. #define HSEM_ICR_ISEM25 HSEM_ICR_ISEM25_Msk /*!<semaphore 25 interrupt 0 clear bit. */
  11334. #define HSEM_ICR_ISEM26_Pos (26U)
  11335. #define HSEM_ICR_ISEM26_Msk (0x1U << HSEM_ICR_ISEM26_Pos) /*!< 0x04000000 */
  11336. #define HSEM_ICR_ISEM26 HSEM_ICR_ISEM26_Msk /*!<semaphore 26 interrupt 0 clear bit. */
  11337. #define HSEM_ICR_ISEM27_Pos (27U)
  11338. #define HSEM_ICR_ISEM27_Msk (0x1U << HSEM_ICR_ISEM27_Pos) /*!< 0x08000000 */
  11339. #define HSEM_ICR_ISEM27 HSEM_ICR_ISEM27_Msk /*!<semaphore 27 interrupt 0 clear bit. */
  11340. #define HSEM_ICR_ISEM28_Pos (28U)
  11341. #define HSEM_ICR_ISEM28_Msk (0x1U << HSEM_ICR_ISEM28_Pos) /*!< 0x10000000 */
  11342. #define HSEM_ICR_ISEM28 HSEM_ICR_ISEM28_Msk /*!<semaphore 28 interrupt 0 clear bit. */
  11343. #define HSEM_ICR_ISEM29_Pos (29U)
  11344. #define HSEM_ICR_ISEM29_Msk (0x1U << HSEM_ICR_ISEM29_Pos) /*!< 0x20000000 */
  11345. #define HSEM_ICR_ISEM29 HSEM_ICR_ISEM29_Msk /*!<semaphore 29 interrupt 0 clear bit. */
  11346. #define HSEM_ICR_ISEM30_Pos (30U)
  11347. #define HSEM_ICR_ISEM30_Msk (0x1U << HSEM_ICR_ISEM30_Pos) /*!< 0x40000000 */
  11348. #define HSEM_ICR_ISEM30 HSEM_ICR_ISEM30_Msk /*!<semaphore 30 interrupt 0 clear bit. */
  11349. #define HSEM_ICR_ISEM31_Pos (31U)
  11350. #define HSEM_ICR_ISEM31_Msk (0x1U << HSEM_ICR_ISEM31_Pos) /*!< 0x80000000 */
  11351. #define HSEM_ICR_ISEM31 HSEM_ICR_ISEM31_Msk /*!<semaphore 31 interrupt 0 clear bit. */
  11352. /******************** Bit definition for HSEM_ISR register *****************/
  11353. #define HSEM_ISR_ISEM0_Pos (0U)
  11354. #define HSEM_ISR_ISEM0_Msk (0x1U << HSEM_ISR_ISEM0_Pos) /*!< 0x00000001 */
  11355. #define HSEM_ISR_ISEM0 HSEM_ISR_ISEM0_Msk /*!<semaphore 0 interrupt 0 status bit. */
  11356. #define HSEM_ISR_ISEM1_Pos (1U)
  11357. #define HSEM_ISR_ISEM1_Msk (0x1U << HSEM_ISR_ISEM1_Pos) /*!< 0x00000002 */
  11358. #define HSEM_ISR_ISEM1 HSEM_ISR_ISEM1_Msk /*!<semaphore 1 interrupt 0 status bit. */
  11359. #define HSEM_ISR_ISEM2_Pos (2U)
  11360. #define HSEM_ISR_ISEM2_Msk (0x1U << HSEM_ISR_ISEM2_Pos) /*!< 0x00000004 */
  11361. #define HSEM_ISR_ISEM2 HSEM_ISR_ISEM2_Msk /*!<semaphore 2 interrupt 0 status bit. */
  11362. #define HSEM_ISR_ISEM3_Pos (3U)
  11363. #define HSEM_ISR_ISEM3_Msk (0x1U << HSEM_ISR_ISEM3_Pos) /*!< 0x00000008 */
  11364. #define HSEM_ISR_ISEM3 HSEM_ISR_ISEM3_Msk /*!<semaphore 3 interrupt 0 status bit. */
  11365. #define HSEM_ISR_ISEM4_Pos (4U)
  11366. #define HSEM_ISR_ISEM4_Msk (0x1U << HSEM_ISR_ISEM4_Pos) /*!< 0x00000010 */
  11367. #define HSEM_ISR_ISEM4 HSEM_ISR_ISEM4_Msk /*!<semaphore 4 interrupt 0 status bit. */
  11368. #define HSEM_ISR_ISEM5_Pos (5U)
  11369. #define HSEM_ISR_ISEM5_Msk (0x1U << HSEM_ISR_ISEM5_Pos) /*!< 0x00000020 */
  11370. #define HSEM_ISR_ISEM5 HSEM_ISR_ISEM5_Msk /*!<semaphore 5 interrupt 0 status bit. */
  11371. #define HSEM_ISR_ISEM6_Pos (6U)
  11372. #define HSEM_ISR_ISEM6_Msk (0x1U << HSEM_ISR_ISEM6_Pos) /*!< 0x00000040 */
  11373. #define HSEM_ISR_ISEM6 HSEM_ISR_ISEM6_Msk /*!<semaphore 6 interrupt 0 status bit. */
  11374. #define HSEM_ISR_ISEM7_Pos (7U)
  11375. #define HSEM_ISR_ISEM7_Msk (0x1U << HSEM_ISR_ISEM7_Pos) /*!< 0x00000080 */
  11376. #define HSEM_ISR_ISEM7 HSEM_ISR_ISEM7_Msk /*!<semaphore 7 interrupt 0 status bit. */
  11377. #define HSEM_ISR_ISEM8_Pos (8U)
  11378. #define HSEM_ISR_ISEM8_Msk (0x1U << HSEM_ISR_ISEM8_Pos) /*!< 0x00000100 */
  11379. #define HSEM_ISR_ISEM8 HSEM_ISR_ISEM8_Msk /*!<semaphore 8 interrupt 0 status bit. */
  11380. #define HSEM_ISR_ISEM9_Pos (9U)
  11381. #define HSEM_ISR_ISEM9_Msk (0x1U << HSEM_ISR_ISEM9_Pos) /*!< 0x00000200 */
  11382. #define HSEM_ISR_ISEM9 HSEM_ISR_ISEM9_Msk /*!<semaphore 9 interrupt 0 status bit. */
  11383. #define HSEM_ISR_ISEM10_Pos (10U)
  11384. #define HSEM_ISR_ISEM10_Msk (0x1U << HSEM_ISR_ISEM10_Pos) /*!< 0x00000400 */
  11385. #define HSEM_ISR_ISEM10 HSEM_ISR_ISEM10_Msk /*!<semaphore 10 interrupt 0 status bit. */
  11386. #define HSEM_ISR_ISEM11_Pos (11U)
  11387. #define HSEM_ISR_ISEM11_Msk (0x1U << HSEM_ISR_ISEM11_Pos) /*!< 0x00000800 */
  11388. #define HSEM_ISR_ISEM11 HSEM_ISR_ISEM11_Msk /*!<semaphore 11 interrupt 0 status bit. */
  11389. #define HSEM_ISR_ISEM12_Pos (12U)
  11390. #define HSEM_ISR_ISEM12_Msk (0x1U << HSEM_ISR_ISEM12_Pos) /*!< 0x00001000 */
  11391. #define HSEM_ISR_ISEM12 HSEM_ISR_ISEM12_Msk /*!<semaphore 12 interrupt 0 status bit. */
  11392. #define HSEM_ISR_ISEM13_Pos (13U)
  11393. #define HSEM_ISR_ISEM13_Msk (0x1U << HSEM_ISR_ISEM13_Pos) /*!< 0x00002000 */
  11394. #define HSEM_ISR_ISEM13 HSEM_ISR_ISEM13_Msk /*!<semaphore 13 interrupt 0 status bit. */
  11395. #define HSEM_ISR_ISEM14_Pos (14U)
  11396. #define HSEM_ISR_ISEM14_Msk (0x1U << HSEM_ISR_ISEM14_Pos) /*!< 0x00004000 */
  11397. #define HSEM_ISR_ISEM14 HSEM_ISR_ISEM14_Msk /*!<semaphore 14 interrupt 0 status bit. */
  11398. #define HSEM_ISR_ISEM15_Pos (15U)
  11399. #define HSEM_ISR_ISEM15_Msk (0x1U << HSEM_ISR_ISEM15_Pos) /*!< 0x00008000 */
  11400. #define HSEM_ISR_ISEM15 HSEM_ISR_ISEM15_Msk /*!<semaphore 15 interrupt 0 status bit. */
  11401. #define HSEM_ISR_ISEM16_Pos (16U)
  11402. #define HSEM_ISR_ISEM16_Msk (0x1U << HSEM_ISR_ISEM16_Pos) /*!< 0x00010000 */
  11403. #define HSEM_ISR_ISEM16 HSEM_ISR_ISEM16_Msk /*!<semaphore 16 interrupt 0 status bit. */
  11404. #define HSEM_ISR_ISEM17_Pos (17U)
  11405. #define HSEM_ISR_ISEM17_Msk (0x1U << HSEM_ISR_ISEM17_Pos) /*!< 0x00020000 */
  11406. #define HSEM_ISR_ISEM17 HSEM_ISR_ISEM17_Msk /*!<semaphore 17 interrupt 0 status bit. */
  11407. #define HSEM_ISR_ISEM18_Pos (18U)
  11408. #define HSEM_ISR_ISEM18_Msk (0x1U << HSEM_ISR_ISEM18_Pos) /*!< 0x00040000 */
  11409. #define HSEM_ISR_ISEM18 HSEM_ISR_ISEM18_Msk /*!<semaphore 18 interrupt 0 status bit. */
  11410. #define HSEM_ISR_ISEM19_Pos (19U)
  11411. #define HSEM_ISR_ISEM19_Msk (0x1U << HSEM_ISR_ISEM19_Pos) /*!< 0x00080000 */
  11412. #define HSEM_ISR_ISEM19 HSEM_ISR_ISEM19_Msk /*!<semaphore 19 interrupt 0 status bit. */
  11413. #define HSEM_ISR_ISEM20_Pos (20U)
  11414. #define HSEM_ISR_ISEM20_Msk (0x1U << HSEM_ISR_ISEM20_Pos) /*!< 0x00100000 */
  11415. #define HSEM_ISR_ISEM20 HSEM_ISR_ISEM20_Msk /*!<semaphore 20 interrupt 0 status bit. */
  11416. #define HSEM_ISR_ISEM21_Pos (21U)
  11417. #define HSEM_ISR_ISEM21_Msk (0x1U << HSEM_ISR_ISEM21_Pos) /*!< 0x00200000 */
  11418. #define HSEM_ISR_ISEM21 HSEM_ISR_ISEM21_Msk /*!<semaphore 21 interrupt 0 status bit. */
  11419. #define HSEM_ISR_ISEM22_Pos (22U)
  11420. #define HSEM_ISR_ISEM22_Msk (0x1U << HSEM_ISR_ISEM22_Pos) /*!< 0x00400000 */
  11421. #define HSEM_ISR_ISEM22 HSEM_ISR_ISEM22_Msk /*!<semaphore 22 interrupt 0 status bit. */
  11422. #define HSEM_ISR_ISEM23_Pos (23U)
  11423. #define HSEM_ISR_ISEM23_Msk (0x1U << HSEM_ISR_ISEM23_Pos) /*!< 0x00800000 */
  11424. #define HSEM_ISR_ISEM23 HSEM_ISR_ISEM23_Msk /*!<semaphore 23 interrupt 0 status bit. */
  11425. #define HSEM_ISR_ISEM24_Pos (24U)
  11426. #define HSEM_ISR_ISEM24_Msk (0x1U << HSEM_ISR_ISEM24_Pos) /*!< 0x01000000 */
  11427. #define HSEM_ISR_ISEM24 HSEM_ISR_ISEM24_Msk /*!<semaphore 24 interrupt 0 status bit. */
  11428. #define HSEM_ISR_ISEM25_Pos (25U)
  11429. #define HSEM_ISR_ISEM25_Msk (0x1U << HSEM_ISR_ISEM25_Pos) /*!< 0x02000000 */
  11430. #define HSEM_ISR_ISEM25 HSEM_ISR_ISEM25_Msk /*!<semaphore 25 interrupt 0 status bit. */
  11431. #define HSEM_ISR_ISEM26_Pos (26U)
  11432. #define HSEM_ISR_ISEM26_Msk (0x1U << HSEM_ISR_ISEM26_Pos) /*!< 0x04000000 */
  11433. #define HSEM_ISR_ISEM26 HSEM_ISR_ISEM26_Msk /*!<semaphore 26 interrupt 0 status bit. */
  11434. #define HSEM_ISR_ISEM27_Pos (27U)
  11435. #define HSEM_ISR_ISEM27_Msk (0x1U << HSEM_ISR_ISEM27_Pos) /*!< 0x08000000 */
  11436. #define HSEM_ISR_ISEM27 HSEM_ISR_ISEM27_Msk /*!<semaphore 27 interrupt 0 status bit. */
  11437. #define HSEM_ISR_ISEM28_Pos (28U)
  11438. #define HSEM_ISR_ISEM28_Msk (0x1U << HSEM_ISR_ISEM28_Pos) /*!< 0x10000000 */
  11439. #define HSEM_ISR_ISEM28 HSEM_ISR_ISEM28_Msk /*!<semaphore 28 interrupt 0 status bit. */
  11440. #define HSEM_ISR_ISEM29_Pos (29U)
  11441. #define HSEM_ISR_ISEM29_Msk (0x1U << HSEM_ISR_ISEM29_Pos) /*!< 0x20000000 */
  11442. #define HSEM_ISR_ISEM29 HSEM_ISR_ISEM29_Msk /*!<semaphore 29 interrupt 0 status bit. */
  11443. #define HSEM_ISR_ISEM30_Pos (30U)
  11444. #define HSEM_ISR_ISEM30_Msk (0x1U << HSEM_ISR_ISEM30_Pos) /*!< 0x40000000 */
  11445. #define HSEM_ISR_ISEM30 HSEM_ISR_ISEM30_Msk /*!<semaphore 30 interrupt 0 status bit. */
  11446. #define HSEM_ISR_ISEM31_Pos (31U)
  11447. #define HSEM_ISR_ISEM31_Msk (0x1U << HSEM_ISR_ISEM31_Pos) /*!< 0x80000000 */
  11448. #define HSEM_ISR_ISEM31 HSEM_ISR_ISEM31_Msk /*!<semaphore 31 interrupt 0 status bit. */
  11449. /******************** Bit definition for HSEM_MISR register *****************/
  11450. #define HSEM_MISR_ISEM0_Pos (0U)
  11451. #define HSEM_MISR_ISEM0_Msk (0x1U << HSEM_MISR_ISEM0_Pos) /*!< 0x00000001 */
  11452. #define HSEM_MISR_ISEM0 HSEM_MISR_ISEM0_Msk /*!<semaphore 0 interrupt 0 masked status bit. */
  11453. #define HSEM_MISR_ISEM1_Pos (1U)
  11454. #define HSEM_MISR_ISEM1_Msk (0x1U << HSEM_MISR_ISEM1_Pos) /*!< 0x00000002 */
  11455. #define HSEM_MISR_ISEM1 HSEM_MISR_ISEM1_Msk /*!<semaphore 1 interrupt 0 masked status bit. */
  11456. #define HSEM_MISR_ISEM2_Pos (2U)
  11457. #define HSEM_MISR_ISEM2_Msk (0x1U << HSEM_MISR_ISEM2_Pos) /*!< 0x00000004 */
  11458. #define HSEM_MISR_ISEM2 HSEM_MISR_ISEM2_Msk /*!<semaphore 2 interrupt 0 masked status bit. */
  11459. #define HSEM_MISR_ISEM3_Pos (3U)
  11460. #define HSEM_MISR_ISEM3_Msk (0x1U << HSEM_MISR_ISEM3_Pos) /*!< 0x00000008 */
  11461. #define HSEM_MISR_ISEM3 HSEM_MISR_ISEM3_Msk /*!<semaphore 3 interrupt 0 masked status bit. */
  11462. #define HSEM_MISR_ISEM4_Pos (4U)
  11463. #define HSEM_MISR_ISEM4_Msk (0x1U << HSEM_MISR_ISEM4_Pos) /*!< 0x00000010 */
  11464. #define HSEM_MISR_ISEM4 HSEM_MISR_ISEM4_Msk /*!<semaphore 4 interrupt 0 masked status bit. */
  11465. #define HSEM_MISR_ISEM5_Pos (5U)
  11466. #define HSEM_MISR_ISEM5_Msk (0x1U << HSEM_MISR_ISEM5_Pos) /*!< 0x00000020 */
  11467. #define HSEM_MISR_ISEM5 HSEM_MISR_ISEM5_Msk /*!<semaphore 5 interrupt 0 masked status bit. */
  11468. #define HSEM_MISR_ISEM6_Pos (6U)
  11469. #define HSEM_MISR_ISEM6_Msk (0x1U << HSEM_MISR_ISEM6_Pos) /*!< 0x00000040 */
  11470. #define HSEM_MISR_ISEM6 HSEM_MISR_ISEM6_Msk /*!<semaphore 6 interrupt 0 masked status bit. */
  11471. #define HSEM_MISR_ISEM7_Pos (7U)
  11472. #define HSEM_MISR_ISEM7_Msk (0x1U << HSEM_MISR_ISEM7_Pos) /*!< 0x00000080 */
  11473. #define HSEM_MISR_ISEM7 HSEM_MISR_ISEM7_Msk /*!<semaphore 7 interrupt 0 masked status bit. */
  11474. #define HSEM_MISR_ISEM8_Pos (8U)
  11475. #define HSEM_MISR_ISEM8_Msk (0x1U << HSEM_MISR_ISEM8_Pos) /*!< 0x00000100 */
  11476. #define HSEM_MISR_ISEM8 HSEM_MISR_ISEM8_Msk /*!<semaphore 8 interrupt 0 masked status bit. */
  11477. #define HSEM_MISR_ISEM9_Pos (9U)
  11478. #define HSEM_MISR_ISEM9_Msk (0x1U << HSEM_MISR_ISEM9_Pos) /*!< 0x00000200 */
  11479. #define HSEM_MISR_ISEM9 HSEM_MISR_ISEM9_Msk /*!<semaphore 9 interrupt 0 masked status bit. */
  11480. #define HSEM_MISR_ISEM10_Pos (10U)
  11481. #define HSEM_MISR_ISEM10_Msk (0x1U << HSEM_MISR_ISEM10_Pos) /*!< 0x00000400 */
  11482. #define HSEM_MISR_ISEM10 HSEM_MISR_ISEM10_Msk /*!<semaphore 10 interrupt 0 masked status bit. */
  11483. #define HSEM_MISR_ISEM11_Pos (11U)
  11484. #define HSEM_MISR_ISEM11_Msk (0x1U << HSEM_MISR_ISEM11_Pos) /*!< 0x00000800 */
  11485. #define HSEM_MISR_ISEM11 HSEM_MISR_ISEM11_Msk /*!<semaphore 11 interrupt 0 masked status bit. */
  11486. #define HSEM_MISR_ISEM12_Pos (12U)
  11487. #define HSEM_MISR_ISEM12_Msk (0x1U << HSEM_MISR_ISEM12_Pos) /*!< 0x00001000 */
  11488. #define HSEM_MISR_ISEM12 HSEM_MISR_ISEM12_Msk /*!<semaphore 12 interrupt 0 masked status bit. */
  11489. #define HSEM_MISR_ISEM13_Pos (13U)
  11490. #define HSEM_MISR_ISEM13_Msk (0x1U << HSEM_MISR_ISEM13_Pos) /*!< 0x00002000 */
  11491. #define HSEM_MISR_ISEM13 HSEM_MISR_ISEM13_Msk /*!<semaphore 13 interrupt 0 masked status bit. */
  11492. #define HSEM_MISR_ISEM14_Pos (14U)
  11493. #define HSEM_MISR_ISEM14_Msk (0x1U << HSEM_MISR_ISEM14_Pos) /*!< 0x00004000 */
  11494. #define HSEM_MISR_ISEM14 HSEM_MISR_ISEM14_Msk /*!<semaphore 14 interrupt 0 masked status bit. */
  11495. #define HSEM_MISR_ISEM15_Pos (15U)
  11496. #define HSEM_MISR_ISEM15_Msk (0x1U << HSEM_MISR_ISEM15_Pos) /*!< 0x00008000 */
  11497. #define HSEM_MISR_ISEM15 HSEM_MISR_ISEM15_Msk /*!<semaphore 15 interrupt 0 masked status bit. */
  11498. #define HSEM_MISR_ISEM16_Pos (16U)
  11499. #define HSEM_MISR_ISEM16_Msk (0x1U << HSEM_MISR_ISEM16_Pos) /*!< 0x00010000 */
  11500. #define HSEM_MISR_ISEM16 HSEM_MISR_ISEM16_Msk /*!<semaphore 16 interrupt 0 masked status bit. */
  11501. #define HSEM_MISR_ISEM17_Pos (17U)
  11502. #define HSEM_MISR_ISEM17_Msk (0x1U << HSEM_MISR_ISEM17_Pos) /*!< 0x00020000 */
  11503. #define HSEM_MISR_ISEM17 HSEM_MISR_ISEM17_Msk /*!<semaphore 17 interrupt 0 masked status bit. */
  11504. #define HSEM_MISR_ISEM18_Pos (18U)
  11505. #define HSEM_MISR_ISEM18_Msk (0x1U << HSEM_MISR_ISEM18_Pos) /*!< 0x00040000 */
  11506. #define HSEM_MISR_ISEM18 HSEM_MISR_ISEM18_Msk /*!<semaphore 18 interrupt 0 masked status bit. */
  11507. #define HSEM_MISR_ISEM19_Pos (19U)
  11508. #define HSEM_MISR_ISEM19_Msk (0x1U << HSEM_MISR_ISEM19_Pos) /*!< 0x00080000 */
  11509. #define HSEM_MISR_ISEM19 HSEM_MISR_ISEM19_Msk /*!<semaphore 19 interrupt 0 masked status bit. */
  11510. #define HSEM_MISR_ISEM20_Pos (20U)
  11511. #define HSEM_MISR_ISEM20_Msk (0x1U << HSEM_MISR_ISEM20_Pos) /*!< 0x00100000 */
  11512. #define HSEM_MISR_ISEM20 HSEM_MISR_ISEM20_Msk /*!<semaphore 20 interrupt 0 masked status bit. */
  11513. #define HSEM_MISR_ISEM21_Pos (21U)
  11514. #define HSEM_MISR_ISEM21_Msk (0x1U << HSEM_MISR_ISEM21_Pos) /*!< 0x00200000 */
  11515. #define HSEM_MISR_ISEM21 HSEM_MISR_ISEM21_Msk /*!<semaphore 21 interrupt 0 masked status bit. */
  11516. #define HSEM_MISR_ISEM22_Pos (22U)
  11517. #define HSEM_MISR_ISEM22_Msk (0x1U << HSEM_MISR_ISEM22_Pos) /*!< 0x00400000 */
  11518. #define HSEM_MISR_ISEM22 HSEM_MISR_ISEM22_Msk /*!<semaphore 22 interrupt 0 masked status bit. */
  11519. #define HSEM_MISR_ISEM23_Pos (23U)
  11520. #define HSEM_MISR_ISEM23_Msk (0x1U << HSEM_MISR_ISEM23_Pos) /*!< 0x00800000 */
  11521. #define HSEM_MISR_ISEM23 HSEM_MISR_ISEM23_Msk /*!<semaphore 23 interrupt 0 masked status bit. */
  11522. #define HSEM_MISR_ISEM24_Pos (24U)
  11523. #define HSEM_MISR_ISEM24_Msk (0x1U << HSEM_MISR_ISEM24_Pos) /*!< 0x01000000 */
  11524. #define HSEM_MISR_ISEM24 HSEM_MISR_ISEM24_Msk /*!<semaphore 24 interrupt 0 masked status bit. */
  11525. #define HSEM_MISR_ISEM25_Pos (25U)
  11526. #define HSEM_MISR_ISEM25_Msk (0x1U << HSEM_MISR_ISEM25_Pos) /*!< 0x02000000 */
  11527. #define HSEM_MISR_ISEM25 HSEM_MISR_ISEM25_Msk /*!<semaphore 25 interrupt 0 masked status bit. */
  11528. #define HSEM_MISR_ISEM26_Pos (26U)
  11529. #define HSEM_MISR_ISEM26_Msk (0x1U << HSEM_MISR_ISEM26_Pos) /*!< 0x04000000 */
  11530. #define HSEM_MISR_ISEM26 HSEM_MISR_ISEM26_Msk /*!<semaphore 26 interrupt 0 masked status bit. */
  11531. #define HSEM_MISR_ISEM27_Pos (27U)
  11532. #define HSEM_MISR_ISEM27_Msk (0x1U << HSEM_MISR_ISEM27_Pos) /*!< 0x08000000 */
  11533. #define HSEM_MISR_ISEM27 HSEM_MISR_ISEM27_Msk /*!<semaphore 27 interrupt 0 masked status bit. */
  11534. #define HSEM_MISR_ISEM28_Pos (28U)
  11535. #define HSEM_MISR_ISEM28_Msk (0x1U << HSEM_MISR_ISEM28_Pos) /*!< 0x10000000 */
  11536. #define HSEM_MISR_ISEM28 HSEM_MISR_ISEM28_Msk /*!<semaphore 28 interrupt 0 masked status bit. */
  11537. #define HSEM_MISR_ISEM29_Pos (29U)
  11538. #define HSEM_MISR_ISEM29_Msk (0x1U << HSEM_MISR_ISEM29_Pos) /*!< 0x20000000 */
  11539. #define HSEM_MISR_ISEM29 HSEM_MISR_ISEM29_Msk /*!<semaphore 29 interrupt 0 masked status bit. */
  11540. #define HSEM_MISR_ISEM30_Pos (30U)
  11541. #define HSEM_MISR_ISEM30_Msk (0x1U << HSEM_MISR_ISEM30_Pos) /*!< 0x40000000 */
  11542. #define HSEM_MISR_ISEM30 HSEM_MISR_ISEM30_Msk /*!<semaphore 30 interrupt 0 masked status bit. */
  11543. #define HSEM_MISR_ISEM31_Pos (31U)
  11544. #define HSEM_MISR_ISEM31_Msk (0x1U << HSEM_MISR_ISEM31_Pos) /*!< 0x80000000 */
  11545. #define HSEM_MISR_ISEM31 HSEM_MISR_ISEM31_Msk /*!<semaphore 31 interrupt 0 masked status bit. */
  11546. /******************** Bit definition for HSEM_CR register *****************/
  11547. #define HSEM_CR_MASTERID_Pos (8U)
  11548. #define HSEM_CR_MASTERID_Msk (0xFFU << HSEM_CR_MASTERID_Pos) /*!< 0x0000FF00 */
  11549. #define HSEM_CR_MASTERID HSEM_CR_MASTERID_Msk /*!<MasterID of semaphores to be cleared. */
  11550. #define HSEM_CR_KEY_Pos (16U)
  11551. #define HSEM_CR_KEY_Msk (0xFFFFU << HSEM_CR_KEY_Pos) /*!< 0xFFFF0000 */
  11552. #define HSEM_CR_KEY HSEM_CR_KEY_Msk /*!<semaphores clear key. */
  11553. /******************** Bit definition for HSEM_KEYR register *****************/
  11554. #define HSEM_KEYR_KEY_Pos (16U)
  11555. #define HSEM_KEYR_KEY_Msk (0xFFFFU << HSEM_KEYR_KEY_Pos) /*!< 0xFFFF0000 */
  11556. #define HSEM_KEYR_KEY HSEM_KEYR_KEY_Msk /*!<semaphores clear key. */
  11557. /******************************************************************************/
  11558. /* */
  11559. /* HASH */
  11560. /* */
  11561. /******************************************************************************/
  11562. /****************** Bits definition for HASH_CR register ********************/
  11563. #define HASH_CR_INIT_Pos (2U)
  11564. #define HASH_CR_INIT_Msk (0x1U << HASH_CR_INIT_Pos) /*!< 0x00000004 */
  11565. #define HASH_CR_INIT HASH_CR_INIT_Msk
  11566. #define HASH_CR_DMAE_Pos (3U)
  11567. #define HASH_CR_DMAE_Msk (0x1U << HASH_CR_DMAE_Pos) /*!< 0x00000008 */
  11568. #define HASH_CR_DMAE HASH_CR_DMAE_Msk
  11569. #define HASH_CR_DATATYPE_Pos (4U)
  11570. #define HASH_CR_DATATYPE_Msk (0x3U << HASH_CR_DATATYPE_Pos) /*!< 0x00000030 */
  11571. #define HASH_CR_DATATYPE HASH_CR_DATATYPE_Msk
  11572. #define HASH_CR_DATATYPE_0 (0x1U << HASH_CR_DATATYPE_Pos) /*!< 0x00000010 */
  11573. #define HASH_CR_DATATYPE_1 (0x2U << HASH_CR_DATATYPE_Pos) /*!< 0x00000020 */
  11574. #define HASH_CR_MODE_Pos (6U)
  11575. #define HASH_CR_MODE_Msk (0x1U << HASH_CR_MODE_Pos) /*!< 0x00000040 */
  11576. #define HASH_CR_MODE HASH_CR_MODE_Msk
  11577. #define HASH_CR_ALGO_Pos (7U)
  11578. #define HASH_CR_ALGO_Msk (0x801U << HASH_CR_ALGO_Pos) /*!< 0x00040080 */
  11579. #define HASH_CR_ALGO HASH_CR_ALGO_Msk
  11580. #define HASH_CR_ALGO_0 (0x001U << HASH_CR_ALGO_Pos) /*!< 0x00000080 */
  11581. #define HASH_CR_ALGO_1 (0x800U << HASH_CR_ALGO_Pos) /*!< 0x00040000 */
  11582. #define HASH_CR_NBW_Pos (8U)
  11583. #define HASH_CR_NBW_Msk (0xFU << HASH_CR_NBW_Pos) /*!< 0x00000F00 */
  11584. #define HASH_CR_NBW HASH_CR_NBW_Msk
  11585. #define HASH_CR_NBW_0 (0x1U << HASH_CR_NBW_Pos) /*!< 0x00000100 */
  11586. #define HASH_CR_NBW_1 (0x2U << HASH_CR_NBW_Pos) /*!< 0x00000200 */
  11587. #define HASH_CR_NBW_2 (0x4U << HASH_CR_NBW_Pos) /*!< 0x00000400 */
  11588. #define HASH_CR_NBW_3 (0x8U << HASH_CR_NBW_Pos) /*!< 0x00000800 */
  11589. #define HASH_CR_DINNE_Pos (12U)
  11590. #define HASH_CR_DINNE_Msk (0x1U << HASH_CR_DINNE_Pos) /*!< 0x00001000 */
  11591. #define HASH_CR_DINNE HASH_CR_DINNE_Msk
  11592. #define HASH_CR_MDMAT_Pos (13U)
  11593. #define HASH_CR_MDMAT_Msk (0x1U << HASH_CR_MDMAT_Pos) /*!< 0x00002000 */
  11594. #define HASH_CR_MDMAT HASH_CR_MDMAT_Msk
  11595. #define HASH_CR_LKEY_Pos (16U)
  11596. #define HASH_CR_LKEY_Msk (0x1U << HASH_CR_LKEY_Pos) /*!< 0x00010000 */
  11597. #define HASH_CR_LKEY HASH_CR_LKEY_Msk
  11598. /****************** Bits definition for HASH_STR register *******************/
  11599. #define HASH_STR_NBLW_Pos (0U)
  11600. #define HASH_STR_NBLW_Msk (0x1FU << HASH_STR_NBLW_Pos) /*!< 0x0000001F */
  11601. #define HASH_STR_NBLW HASH_STR_NBLW_Msk
  11602. #define HASH_STR_NBLW_0 (0x01U << HASH_STR_NBLW_Pos) /*!< 0x00000001 */
  11603. #define HASH_STR_NBLW_1 (0x02U << HASH_STR_NBLW_Pos) /*!< 0x00000002 */
  11604. #define HASH_STR_NBLW_2 (0x04U << HASH_STR_NBLW_Pos) /*!< 0x00000004 */
  11605. #define HASH_STR_NBLW_3 (0x08U << HASH_STR_NBLW_Pos) /*!< 0x00000008 */
  11606. #define HASH_STR_NBLW_4 (0x10U << HASH_STR_NBLW_Pos) /*!< 0x00000010 */
  11607. #define HASH_STR_DCAL_Pos (8U)
  11608. #define HASH_STR_DCAL_Msk (0x1U << HASH_STR_DCAL_Pos) /*!< 0x00000100 */
  11609. #define HASH_STR_DCAL HASH_STR_DCAL_Msk
  11610. /****************** Bits definition for HASH_IMR register *******************/
  11611. #define HASH_IMR_DINIE_Pos (0U)
  11612. #define HASH_IMR_DINIE_Msk (0x1U << HASH_IMR_DINIE_Pos) /*!< 0x00000001 */
  11613. #define HASH_IMR_DINIE HASH_IMR_DINIE_Msk
  11614. #define HASH_IMR_DCIE_Pos (1U)
  11615. #define HASH_IMR_DCIE_Msk (0x1U << HASH_IMR_DCIE_Pos) /*!< 0x00000002 */
  11616. #define HASH_IMR_DCIE HASH_IMR_DCIE_Msk
  11617. /****************** Bits definition for HASH_SR register ********************/
  11618. #define HASH_SR_DINIS_Pos (0U)
  11619. #define HASH_SR_DINIS_Msk (0x1U << HASH_SR_DINIS_Pos) /*!< 0x00000001 */
  11620. #define HASH_SR_DINIS HASH_SR_DINIS_Msk
  11621. #define HASH_SR_DCIS_Pos (1U)
  11622. #define HASH_SR_DCIS_Msk (0x1U << HASH_SR_DCIS_Pos) /*!< 0x00000002 */
  11623. #define HASH_SR_DCIS HASH_SR_DCIS_Msk
  11624. #define HASH_SR_DMAS_Pos (2U)
  11625. #define HASH_SR_DMAS_Msk (0x1U << HASH_SR_DMAS_Pos) /*!< 0x00000004 */
  11626. #define HASH_SR_DMAS HASH_SR_DMAS_Msk
  11627. #define HASH_SR_BUSY_Pos (3U)
  11628. #define HASH_SR_BUSY_Msk (0x1U << HASH_SR_BUSY_Pos) /*!< 0x00000008 */
  11629. #define HASH_SR_BUSY HASH_SR_BUSY_Msk
  11630. /******************************************************************************/
  11631. /* */
  11632. /* Inter-integrated Circuit Interface (I2C) */
  11633. /* */
  11634. /******************************************************************************/
  11635. /******************* Bit definition for I2C_CR1 register *******************/
  11636. #define I2C_CR1_PE_Pos (0U)
  11637. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  11638. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  11639. #define I2C_CR1_TXIE_Pos (1U)
  11640. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  11641. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  11642. #define I2C_CR1_RXIE_Pos (2U)
  11643. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  11644. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  11645. #define I2C_CR1_ADDRIE_Pos (3U)
  11646. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  11647. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  11648. #define I2C_CR1_NACKIE_Pos (4U)
  11649. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  11650. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  11651. #define I2C_CR1_STOPIE_Pos (5U)
  11652. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  11653. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  11654. #define I2C_CR1_TCIE_Pos (6U)
  11655. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  11656. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  11657. #define I2C_CR1_ERRIE_Pos (7U)
  11658. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  11659. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  11660. #define I2C_CR1_DNF_Pos (8U)
  11661. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  11662. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  11663. #define I2C_CR1_ANFOFF_Pos (12U)
  11664. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  11665. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  11666. #define I2C_CR1_SWRST_Pos (13U)
  11667. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  11668. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  11669. #define I2C_CR1_TXDMAEN_Pos (14U)
  11670. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  11671. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  11672. #define I2C_CR1_RXDMAEN_Pos (15U)
  11673. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  11674. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  11675. #define I2C_CR1_SBC_Pos (16U)
  11676. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  11677. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  11678. #define I2C_CR1_NOSTRETCH_Pos (17U)
  11679. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  11680. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  11681. #define I2C_CR1_WUPEN_Pos (18U)
  11682. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  11683. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  11684. #define I2C_CR1_GCEN_Pos (19U)
  11685. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  11686. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  11687. #define I2C_CR1_SMBHEN_Pos (20U)
  11688. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  11689. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  11690. #define I2C_CR1_SMBDEN_Pos (21U)
  11691. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  11692. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  11693. #define I2C_CR1_ALERTEN_Pos (22U)
  11694. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  11695. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  11696. #define I2C_CR1_PECEN_Pos (23U)
  11697. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  11698. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  11699. /****************** Bit definition for I2C_CR2 register ********************/
  11700. #define I2C_CR2_SADD_Pos (0U)
  11701. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  11702. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  11703. #define I2C_CR2_RD_WRN_Pos (10U)
  11704. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  11705. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  11706. #define I2C_CR2_ADD10_Pos (11U)
  11707. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  11708. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  11709. #define I2C_CR2_HEAD10R_Pos (12U)
  11710. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  11711. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  11712. #define I2C_CR2_START_Pos (13U)
  11713. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  11714. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  11715. #define I2C_CR2_STOP_Pos (14U)
  11716. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  11717. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  11718. #define I2C_CR2_NACK_Pos (15U)
  11719. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  11720. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  11721. #define I2C_CR2_NBYTES_Pos (16U)
  11722. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  11723. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  11724. #define I2C_CR2_RELOAD_Pos (24U)
  11725. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  11726. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  11727. #define I2C_CR2_AUTOEND_Pos (25U)
  11728. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  11729. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  11730. #define I2C_CR2_PECBYTE_Pos (26U)
  11731. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  11732. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  11733. /******************* Bit definition for I2C_OAR1 register ******************/
  11734. #define I2C_OAR1_OA1_Pos (0U)
  11735. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  11736. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  11737. #define I2C_OAR1_OA1MODE_Pos (10U)
  11738. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  11739. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  11740. #define I2C_OAR1_OA1EN_Pos (15U)
  11741. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  11742. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  11743. /******************* Bit definition for I2C_OAR2 register ******************/
  11744. #define I2C_OAR2_OA2_Pos (1U)
  11745. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  11746. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  11747. #define I2C_OAR2_OA2MSK_Pos (8U)
  11748. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  11749. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  11750. #define I2C_OAR2_OA2EN_Pos (15U)
  11751. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  11752. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  11753. /******************* Bit definition for I2C_TIMINGR register *******************/
  11754. #define I2C_TIMINGR_SCLL_Pos (0U)
  11755. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  11756. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  11757. #define I2C_TIMINGR_SCLH_Pos (8U)
  11758. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  11759. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  11760. #define I2C_TIMINGR_SDADEL_Pos (16U)
  11761. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  11762. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  11763. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  11764. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  11765. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  11766. #define I2C_TIMINGR_PRESC_Pos (28U)
  11767. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  11768. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  11769. /******************* Bit definition for I2C_TIMEOUTR register *******************/
  11770. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  11771. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  11772. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  11773. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  11774. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  11775. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  11776. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  11777. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  11778. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  11779. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  11780. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  11781. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  11782. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  11783. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  11784. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  11785. /****************** Bit definition for I2C_ISR register *********************/
  11786. #define I2C_ISR_TXE_Pos (0U)
  11787. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  11788. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  11789. #define I2C_ISR_TXIS_Pos (1U)
  11790. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  11791. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  11792. #define I2C_ISR_RXNE_Pos (2U)
  11793. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  11794. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  11795. #define I2C_ISR_ADDR_Pos (3U)
  11796. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  11797. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  11798. #define I2C_ISR_NACKF_Pos (4U)
  11799. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  11800. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  11801. #define I2C_ISR_STOPF_Pos (5U)
  11802. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  11803. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  11804. #define I2C_ISR_TC_Pos (6U)
  11805. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  11806. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  11807. #define I2C_ISR_TCR_Pos (7U)
  11808. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  11809. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  11810. #define I2C_ISR_BERR_Pos (8U)
  11811. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  11812. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  11813. #define I2C_ISR_ARLO_Pos (9U)
  11814. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  11815. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  11816. #define I2C_ISR_OVR_Pos (10U)
  11817. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  11818. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  11819. #define I2C_ISR_PECERR_Pos (11U)
  11820. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  11821. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  11822. #define I2C_ISR_TIMEOUT_Pos (12U)
  11823. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  11824. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  11825. #define I2C_ISR_ALERT_Pos (13U)
  11826. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  11827. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  11828. #define I2C_ISR_BUSY_Pos (15U)
  11829. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  11830. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  11831. #define I2C_ISR_DIR_Pos (16U)
  11832. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  11833. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  11834. #define I2C_ISR_ADDCODE_Pos (17U)
  11835. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  11836. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  11837. /****************** Bit definition for I2C_ICR register *********************/
  11838. #define I2C_ICR_ADDRCF_Pos (3U)
  11839. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  11840. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  11841. #define I2C_ICR_NACKCF_Pos (4U)
  11842. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  11843. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  11844. #define I2C_ICR_STOPCF_Pos (5U)
  11845. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  11846. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  11847. #define I2C_ICR_BERRCF_Pos (8U)
  11848. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  11849. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  11850. #define I2C_ICR_ARLOCF_Pos (9U)
  11851. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  11852. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  11853. #define I2C_ICR_OVRCF_Pos (10U)
  11854. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  11855. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  11856. #define I2C_ICR_PECCF_Pos (11U)
  11857. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  11858. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  11859. #define I2C_ICR_TIMOUTCF_Pos (12U)
  11860. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  11861. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  11862. #define I2C_ICR_ALERTCF_Pos (13U)
  11863. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  11864. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  11865. /****************** Bit definition for I2C_PECR register *********************/
  11866. #define I2C_PECR_PEC_Pos (0U)
  11867. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  11868. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  11869. /****************** Bit definition for I2C_RXDR register *********************/
  11870. #define I2C_RXDR_RXDATA_Pos (0U)
  11871. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  11872. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  11873. /****************** Bit definition for I2C_TXDR register *********************/
  11874. #define I2C_TXDR_TXDATA_Pos (0U)
  11875. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  11876. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  11877. /******************************************************************************/
  11878. /* */
  11879. /* Independent WATCHDOG */
  11880. /* */
  11881. /******************************************************************************/
  11882. /******************* Bit definition for IWDG_KR register ********************/
  11883. #define IWDG_KR_KEY ((uint16_t)0xFFFF) /*!<Key value (write only, read 0000h) */
  11884. /******************* Bit definition for IWDG_PR register ********************/
  11885. #define IWDG_PR_PR ((uint8_t)0x07) /*!<PR[2:0] (Prescaler divider) */
  11886. #define IWDG_PR_PR_0 ((uint8_t)0x01) /*!<Bit 0 */
  11887. #define IWDG_PR_PR_1 ((uint8_t)0x02) /*!<Bit 1 */
  11888. #define IWDG_PR_PR_2 ((uint8_t)0x04) /*!<Bit 2 */
  11889. /******************* Bit definition for IWDG_RLR register *******************/
  11890. #define IWDG_RLR_RL ((uint16_t)0x0FFF) /*!<Watchdog counter reload value */
  11891. /******************* Bit definition for IWDG_SR register ********************/
  11892. #define IWDG_SR_PVU ((uint8_t)0x01) /*!< Watchdog prescaler value update */
  11893. #define IWDG_SR_RVU ((uint8_t)0x02) /*!< Watchdog counter reload value update */
  11894. #define IWDG_SR_WVU ((uint8_t)0x04) /*!< Watchdog counter window value update */
  11895. /******************* Bit definition for IWDG_KR register ********************/
  11896. #define IWDG_WINR_WIN ((uint16_t)0x0FFF) /*!< Watchdog counter window value */
  11897. /******************************************************************************/
  11898. /* */
  11899. /* JPEG Encoder/Decoder */
  11900. /* */
  11901. /******************************************************************************/
  11902. /******************** Bit definition for CONFR0 register ********************/
  11903. #define JPEG_CONFR0_START_Pos (0U)
  11904. #define JPEG_CONFR0_START_Msk (0x1U << JPEG_CONFR0_START_Pos) /*!< 0x00000001 */
  11905. #define JPEG_CONFR0_START JPEG_CONFR0_START_Msk /*!<Start/Stop bit */
  11906. /******************** Bit definition for CONFR1 register ********************/
  11907. #define JPEG_CONFR1_NF_Pos (0U)
  11908. #define JPEG_CONFR1_NF_Msk (0x3U << JPEG_CONFR1_NF_Pos) /*!< 0x00000003 */
  11909. #define JPEG_CONFR1_NF JPEG_CONFR1_NF_Msk /*!<Number of color components */
  11910. #define JPEG_CONFR1_NF_0 (0x1U << JPEG_CONFR1_NF_Pos) /*!< 0x00000001 */
  11911. #define JPEG_CONFR1_NF_1 (0x2U << JPEG_CONFR1_NF_Pos) /*!< 0x00000002 */
  11912. #define JPEG_CONFR1_DE_Pos (3U)
  11913. #define JPEG_CONFR1_DE_Msk (0x1U << JPEG_CONFR1_DE_Pos) /*!< 0x00000008 */
  11914. #define JPEG_CONFR1_DE JPEG_CONFR1_DE_Msk /*!<Decoding Enable */
  11915. #define JPEG_CONFR1_COLORSPACE_Pos (4U)
  11916. #define JPEG_CONFR1_COLORSPACE_Msk (0x3U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000030 */
  11917. #define JPEG_CONFR1_COLORSPACE JPEG_CONFR1_COLORSPACE_Msk /*!<Color Space */
  11918. #define JPEG_CONFR1_COLORSPACE_0 (0x1U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000010 */
  11919. #define JPEG_CONFR1_COLORSPACE_1 (0x2U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000020 */
  11920. #define JPEG_CONFR1_NS_Pos (6U)
  11921. #define JPEG_CONFR1_NS_Msk (0x3U << JPEG_CONFR1_NS_Pos) /*!< 0x000000C0 */
  11922. #define JPEG_CONFR1_NS JPEG_CONFR1_NS_Msk /*!<Number of components for Scan */
  11923. #define JPEG_CONFR1_NS_0 (0x1U << JPEG_CONFR1_NS_Pos) /*!< 0x00000040 */
  11924. #define JPEG_CONFR1_NS_1 (0x2U << JPEG_CONFR1_NS_Pos) /*!< 0x00000080 */
  11925. #define JPEG_CONFR1_HDR_Pos (8U)
  11926. #define JPEG_CONFR1_HDR_Msk (0x1U << JPEG_CONFR1_HDR_Pos) /*!< 0x00000100 */
  11927. #define JPEG_CONFR1_HDR JPEG_CONFR1_HDR_Msk /*!<Header Processing On/Off */
  11928. #define JPEG_CONFR1_YSIZE_Pos (16U)
  11929. #define JPEG_CONFR1_YSIZE_Msk (0xFFFFU << JPEG_CONFR1_YSIZE_Pos) /*!< 0xFFFF0000 */
  11930. #define JPEG_CONFR1_YSIZE JPEG_CONFR1_YSIZE_Msk /*!<Number of lines in source image */
  11931. /******************** Bit definition for CONFR2 register ********************/
  11932. #define JPEG_CONFR2_NMCU_Pos (0U)
  11933. #define JPEG_CONFR2_NMCU_Msk (0x3FFFFFFU << JPEG_CONFR2_NMCU_Pos) /*!< 0x03FFFFFF */
  11934. #define JPEG_CONFR2_NMCU JPEG_CONFR2_NMCU_Msk /*!<Number of MCU units minus 1 to encode */
  11935. /******************** Bit definition for CONFR3 register ********************/
  11936. #define JPEG_CONFR3_XSIZE_Pos (16U)
  11937. #define JPEG_CONFR3_XSIZE_Msk (0xFFFFU << JPEG_CONFR3_XSIZE_Pos) /*!< 0xFFFF0000 */
  11938. #define JPEG_CONFR3_XSIZE JPEG_CONFR3_XSIZE_Msk /*!<Number of pixels per line */
  11939. /******************** Bit definition for CONFR4 register ********************/
  11940. #define JPEG_CONFR4_HD_Pos (0U)
  11941. #define JPEG_CONFR4_HD_Msk (0x1U << JPEG_CONFR4_HD_Pos) /*!< 0x00000001 */
  11942. #define JPEG_CONFR4_HD JPEG_CONFR4_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11943. #define JPEG_CONFR4_HA_Pos (1U)
  11944. #define JPEG_CONFR4_HA_Msk (0x1U << JPEG_CONFR4_HA_Pos) /*!< 0x00000002 */
  11945. #define JPEG_CONFR4_HA JPEG_CONFR4_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11946. #define JPEG_CONFR4_QT_Pos (2U)
  11947. #define JPEG_CONFR4_QT_Msk (0x3U << JPEG_CONFR4_QT_Pos) /*!< 0x0000000C */
  11948. #define JPEG_CONFR4_QT JPEG_CONFR4_QT_Msk /*!<Selects quantization table associated with a color component */
  11949. #define JPEG_CONFR4_QT_0 (0x1U << JPEG_CONFR4_QT_Pos) /*!< 0x00000004 */
  11950. #define JPEG_CONFR4_QT_1 (0x2U << JPEG_CONFR4_QT_Pos) /*!< 0x00000008 */
  11951. #define JPEG_CONFR4_NB_Pos (4U)
  11952. #define JPEG_CONFR4_NB_Msk (0xFU << JPEG_CONFR4_NB_Pos) /*!< 0x000000F0 */
  11953. #define JPEG_CONFR4_NB JPEG_CONFR4_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11954. #define JPEG_CONFR4_NB_0 (0x1U << JPEG_CONFR4_NB_Pos) /*!< 0x00000010 */
  11955. #define JPEG_CONFR4_NB_1 (0x2U << JPEG_CONFR4_NB_Pos) /*!< 0x00000020 */
  11956. #define JPEG_CONFR4_NB_2 (0x4U << JPEG_CONFR4_NB_Pos) /*!< 0x00000040 */
  11957. #define JPEG_CONFR4_NB_3 (0x8U << JPEG_CONFR4_NB_Pos) /*!< 0x00000080 */
  11958. #define JPEG_CONFR4_VSF_Pos (8U)
  11959. #define JPEG_CONFR4_VSF_Msk (0xFU << JPEG_CONFR4_VSF_Pos) /*!< 0x00000F00 */
  11960. #define JPEG_CONFR4_VSF JPEG_CONFR4_VSF_Msk /*!<Vertical sampling factor for component 1 */
  11961. #define JPEG_CONFR4_VSF_0 (0x1U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000100 */
  11962. #define JPEG_CONFR4_VSF_1 (0x2U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000200 */
  11963. #define JPEG_CONFR4_VSF_2 (0x4U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000400 */
  11964. #define JPEG_CONFR4_VSF_3 (0x8U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000800 */
  11965. #define JPEG_CONFR4_HSF_Pos (12U)
  11966. #define JPEG_CONFR4_HSF_Msk (0xFU << JPEG_CONFR4_HSF_Pos) /*!< 0x0000F000 */
  11967. #define JPEG_CONFR4_HSF JPEG_CONFR4_HSF_Msk /*!<Horizontal sampling factor for component 1 */
  11968. #define JPEG_CONFR4_HSF_0 (0x1U << JPEG_CONFR4_HSF_Pos) /*!< 0x00001000 */
  11969. #define JPEG_CONFR4_HSF_1 (0x2U << JPEG_CONFR4_HSF_Pos) /*!< 0x00002000 */
  11970. #define JPEG_CONFR4_HSF_2 (0x4U << JPEG_CONFR4_HSF_Pos) /*!< 0x00004000 */
  11971. #define JPEG_CONFR4_HSF_3 (0x8U << JPEG_CONFR4_HSF_Pos) /*!< 0x00008000 */
  11972. /******************** Bit definition for CONFR5 register ********************/
  11973. #define JPEG_CONFR5_HD_Pos (0U)
  11974. #define JPEG_CONFR5_HD_Msk (0x1U << JPEG_CONFR5_HD_Pos) /*!< 0x00000001 */
  11975. #define JPEG_CONFR5_HD JPEG_CONFR5_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11976. #define JPEG_CONFR5_HA_Pos (1U)
  11977. #define JPEG_CONFR5_HA_Msk (0x1U << JPEG_CONFR5_HA_Pos) /*!< 0x00000002 */
  11978. #define JPEG_CONFR5_HA JPEG_CONFR5_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11979. #define JPEG_CONFR5_QT_Pos (2U)
  11980. #define JPEG_CONFR5_QT_Msk (0x3U << JPEG_CONFR5_QT_Pos) /*!< 0x0000000C */
  11981. #define JPEG_CONFR5_QT JPEG_CONFR5_QT_Msk /*!<Selects quantization table associated with a color component */
  11982. #define JPEG_CONFR5_QT_0 (0x1U << JPEG_CONFR5_QT_Pos) /*!< 0x00000004 */
  11983. #define JPEG_CONFR5_QT_1 (0x2U << JPEG_CONFR5_QT_Pos) /*!< 0x00000008 */
  11984. #define JPEG_CONFR5_NB_Pos (4U)
  11985. #define JPEG_CONFR5_NB_Msk (0xFU << JPEG_CONFR5_NB_Pos) /*!< 0x000000F0 */
  11986. #define JPEG_CONFR5_NB JPEG_CONFR5_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11987. #define JPEG_CONFR5_NB_0 (0x1U << JPEG_CONFR5_NB_Pos) /*!< 0x00000010 */
  11988. #define JPEG_CONFR5_NB_1 (0x2U << JPEG_CONFR5_NB_Pos) /*!< 0x00000020 */
  11989. #define JPEG_CONFR5_NB_2 (0x4U << JPEG_CONFR5_NB_Pos) /*!< 0x00000040 */
  11990. #define JPEG_CONFR5_NB_3 (0x8U << JPEG_CONFR5_NB_Pos) /*!< 0x00000080 */
  11991. #define JPEG_CONFR5_VSF_Pos (8U)
  11992. #define JPEG_CONFR5_VSF_Msk (0xFU << JPEG_CONFR5_VSF_Pos) /*!< 0x00000F00 */
  11993. #define JPEG_CONFR5_VSF JPEG_CONFR5_VSF_Msk /*!<Vertical sampling factor for component 2 */
  11994. #define JPEG_CONFR5_VSF_0 (0x1U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000100 */
  11995. #define JPEG_CONFR5_VSF_1 (0x2U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000200 */
  11996. #define JPEG_CONFR5_VSF_2 (0x4U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000400 */
  11997. #define JPEG_CONFR5_VSF_3 (0x8U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000800 */
  11998. #define JPEG_CONFR5_HSF_Pos (12U)
  11999. #define JPEG_CONFR5_HSF_Msk (0xFU << JPEG_CONFR5_HSF_Pos) /*!< 0x0000F000 */
  12000. #define JPEG_CONFR5_HSF JPEG_CONFR5_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  12001. #define JPEG_CONFR5_HSF_0 (0x1U << JPEG_CONFR5_HSF_Pos) /*!< 0x00001000 */
  12002. #define JPEG_CONFR5_HSF_1 (0x2U << JPEG_CONFR5_HSF_Pos) /*!< 0x00002000 */
  12003. #define JPEG_CONFR5_HSF_2 (0x4U << JPEG_CONFR5_HSF_Pos) /*!< 0x00004000 */
  12004. #define JPEG_CONFR5_HSF_3 (0x8U << JPEG_CONFR5_HSF_Pos) /*!< 0x00008000 */
  12005. /******************** Bit definition for CONFR6 register ********************/
  12006. #define JPEG_CONFR6_HD_Pos (0U)
  12007. #define JPEG_CONFR6_HD_Msk (0x1U << JPEG_CONFR6_HD_Pos) /*!< 0x00000001 */
  12008. #define JPEG_CONFR6_HD JPEG_CONFR6_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  12009. #define JPEG_CONFR6_HA_Pos (1U)
  12010. #define JPEG_CONFR6_HA_Msk (0x1U << JPEG_CONFR6_HA_Pos) /*!< 0x00000002 */
  12011. #define JPEG_CONFR6_HA JPEG_CONFR6_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  12012. #define JPEG_CONFR6_QT_Pos (2U)
  12013. #define JPEG_CONFR6_QT_Msk (0x3U << JPEG_CONFR6_QT_Pos) /*!< 0x0000000C */
  12014. #define JPEG_CONFR6_QT JPEG_CONFR6_QT_Msk /*!<Selects quantization table associated with a color component */
  12015. #define JPEG_CONFR6_QT_0 (0x1U << JPEG_CONFR6_QT_Pos) /*!< 0x00000004 */
  12016. #define JPEG_CONFR6_QT_1 (0x2U << JPEG_CONFR6_QT_Pos) /*!< 0x00000008 */
  12017. #define JPEG_CONFR6_NB_Pos (4U)
  12018. #define JPEG_CONFR6_NB_Msk (0xFU << JPEG_CONFR6_NB_Pos) /*!< 0x000000F0 */
  12019. #define JPEG_CONFR6_NB JPEG_CONFR6_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  12020. #define JPEG_CONFR6_NB_0 (0x1U << JPEG_CONFR6_NB_Pos) /*!< 0x00000010 */
  12021. #define JPEG_CONFR6_NB_1 (0x2U << JPEG_CONFR6_NB_Pos) /*!< 0x00000020 */
  12022. #define JPEG_CONFR6_NB_2 (0x4U << JPEG_CONFR6_NB_Pos) /*!< 0x00000040 */
  12023. #define JPEG_CONFR6_NB_3 (0x8U << JPEG_CONFR6_NB_Pos) /*!< 0x00000080 */
  12024. #define JPEG_CONFR6_VSF_Pos (8U)
  12025. #define JPEG_CONFR6_VSF_Msk (0xFU << JPEG_CONFR6_VSF_Pos) /*!< 0x00000F00 */
  12026. #define JPEG_CONFR6_VSF JPEG_CONFR6_VSF_Msk /*!<Vertical sampling factor for component 2 */
  12027. #define JPEG_CONFR6_VSF_0 (0x1U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000100 */
  12028. #define JPEG_CONFR6_VSF_1 (0x2U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000200 */
  12029. #define JPEG_CONFR6_VSF_2 (0x4U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000400 */
  12030. #define JPEG_CONFR6_VSF_3 (0x8U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000800 */
  12031. #define JPEG_CONFR6_HSF_Pos (12U)
  12032. #define JPEG_CONFR6_HSF_Msk (0xFU << JPEG_CONFR6_HSF_Pos) /*!< 0x0000F000 */
  12033. #define JPEG_CONFR6_HSF JPEG_CONFR6_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  12034. #define JPEG_CONFR6_HSF_0 (0x1U << JPEG_CONFR6_HSF_Pos) /*!< 0x00001000 */
  12035. #define JPEG_CONFR6_HSF_1 (0x2U << JPEG_CONFR6_HSF_Pos) /*!< 0x00002000 */
  12036. #define JPEG_CONFR6_HSF_2 (0x4U << JPEG_CONFR6_HSF_Pos) /*!< 0x00004000 */
  12037. #define JPEG_CONFR6_HSF_3 (0x8U << JPEG_CONFR6_HSF_Pos) /*!< 0x00008000 */
  12038. /******************** Bit definition for CONFR7 register ********************/
  12039. #define JPEG_CONFR7_HD_Pos (0U)
  12040. #define JPEG_CONFR7_HD_Msk (0x1U << JPEG_CONFR7_HD_Pos) /*!< 0x00000001 */
  12041. #define JPEG_CONFR7_HD JPEG_CONFR7_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  12042. #define JPEG_CONFR7_HA_Pos (1U)
  12043. #define JPEG_CONFR7_HA_Msk (0x1U << JPEG_CONFR7_HA_Pos) /*!< 0x00000002 */
  12044. #define JPEG_CONFR7_HA JPEG_CONFR7_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  12045. #define JPEG_CONFR7_QT_Pos (2U)
  12046. #define JPEG_CONFR7_QT_Msk (0x3U << JPEG_CONFR7_QT_Pos) /*!< 0x0000000C */
  12047. #define JPEG_CONFR7_QT JPEG_CONFR7_QT_Msk /*!<Selects quantization table associated with a color component */
  12048. #define JPEG_CONFR7_QT_0 (0x1U << JPEG_CONFR7_QT_Pos) /*!< 0x00000004 */
  12049. #define JPEG_CONFR7_QT_1 (0x2U << JPEG_CONFR7_QT_Pos) /*!< 0x00000008 */
  12050. #define JPEG_CONFR7_NB_Pos (4U)
  12051. #define JPEG_CONFR7_NB_Msk (0xFU << JPEG_CONFR7_NB_Pos) /*!< 0x000000F0 */
  12052. #define JPEG_CONFR7_NB JPEG_CONFR7_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  12053. #define JPEG_CONFR7_NB_0 (0x1U << JPEG_CONFR7_NB_Pos) /*!< 0x00000010 */
  12054. #define JPEG_CONFR7_NB_1 (0x2U << JPEG_CONFR7_NB_Pos) /*!< 0x00000020 */
  12055. #define JPEG_CONFR7_NB_2 (0x4U << JPEG_CONFR7_NB_Pos) /*!< 0x00000040 */
  12056. #define JPEG_CONFR7_NB_3 (0x8U << JPEG_CONFR7_NB_Pos) /*!< 0x00000080 */
  12057. #define JPEG_CONFR7_VSF_Pos (8U)
  12058. #define JPEG_CONFR7_VSF_Msk (0xFU << JPEG_CONFR7_VSF_Pos) /*!< 0x00000F00 */
  12059. #define JPEG_CONFR7_VSF JPEG_CONFR7_VSF_Msk /*!<Vertical sampling factor for component 2 */
  12060. #define JPEG_CONFR7_VSF_0 (0x1U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000100 */
  12061. #define JPEG_CONFR7_VSF_1 (0x2U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000200 */
  12062. #define JPEG_CONFR7_VSF_2 (0x4U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000400 */
  12063. #define JPEG_CONFR7_VSF_3 (0x8U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000800 */
  12064. #define JPEG_CONFR7_HSF_Pos (12U)
  12065. #define JPEG_CONFR7_HSF_Msk (0xFU << JPEG_CONFR7_HSF_Pos) /*!< 0x0000F000 */
  12066. #define JPEG_CONFR7_HSF JPEG_CONFR7_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  12067. #define JPEG_CONFR7_HSF_0 (0x1U << JPEG_CONFR7_HSF_Pos) /*!< 0x00001000 */
  12068. #define JPEG_CONFR7_HSF_1 (0x2U << JPEG_CONFR7_HSF_Pos) /*!< 0x00002000 */
  12069. #define JPEG_CONFR7_HSF_2 (0x4U << JPEG_CONFR7_HSF_Pos) /*!< 0x00004000 */
  12070. #define JPEG_CONFR7_HSF_3 (0x8U << JPEG_CONFR7_HSF_Pos) /*!< 0x00008000 */
  12071. /******************** Bit definition for CR register ********************/
  12072. #define JPEG_CR_JCEN_Pos (0U)
  12073. #define JPEG_CR_JCEN_Msk (0x1U << JPEG_CR_JCEN_Pos) /*!< 0x00000001 */
  12074. #define JPEG_CR_JCEN JPEG_CR_JCEN_Msk /*!<Enable the JPEG Codec Core */
  12075. #define JPEG_CR_IFTIE_Pos (1U)
  12076. #define JPEG_CR_IFTIE_Msk (0x1U << JPEG_CR_IFTIE_Pos) /*!< 0x00000002 */
  12077. #define JPEG_CR_IFTIE JPEG_CR_IFTIE_Msk /*!<Input FIFO Threshold Interrupt Enable */
  12078. #define JPEG_CR_IFNFIE_Pos (2U)
  12079. #define JPEG_CR_IFNFIE_Msk (0x1U << JPEG_CR_IFNFIE_Pos) /*!< 0x00000004 */
  12080. #define JPEG_CR_IFNFIE JPEG_CR_IFNFIE_Msk /*!<Input FIFO Not Full Interrupt Enable */
  12081. #define JPEG_CR_OFTIE_Pos (3U)
  12082. #define JPEG_CR_OFTIE_Msk (0x1U << JPEG_CR_OFTIE_Pos) /*!< 0x00000008 */
  12083. #define JPEG_CR_OFTIE JPEG_CR_OFTIE_Msk /*!<Output FIFO Threshold Interrupt Enable */
  12084. #define JPEG_CR_OFNEIE_Pos (4U)
  12085. #define JPEG_CR_OFNEIE_Msk (0x1U << JPEG_CR_OFNEIE_Pos) /*!< 0x00000010 */
  12086. #define JPEG_CR_OFNEIE JPEG_CR_OFNEIE_Msk /*!<Output FIFO Not Empty Interrupt Enable */
  12087. #define JPEG_CR_EOCIE_Pos (5U)
  12088. #define JPEG_CR_EOCIE_Msk (0x1U << JPEG_CR_EOCIE_Pos) /*!< 0x00000020 */
  12089. #define JPEG_CR_EOCIE JPEG_CR_EOCIE_Msk /*!<End of Conversion Interrupt Enable */
  12090. #define JPEG_CR_HPDIE_Pos (6U)
  12091. #define JPEG_CR_HPDIE_Msk (0x1U << JPEG_CR_HPDIE_Pos) /*!< 0x00000040 */
  12092. #define JPEG_CR_HPDIE JPEG_CR_HPDIE_Msk /*!<Header Parsing Done Interrupt Enable */
  12093. #define JPEG_CR_IFF_Pos (13U)
  12094. #define JPEG_CR_IFF_Msk (0x1U << JPEG_CR_IFF_Pos) /*!< 0x00002000 */
  12095. #define JPEG_CR_IFF JPEG_CR_IFF_Msk /*!<Flush the input FIFO */
  12096. #define JPEG_CR_OFF_Pos (14U)
  12097. #define JPEG_CR_OFF_Msk (0x1U << JPEG_CR_OFF_Pos) /*!< 0x00004000 */
  12098. #define JPEG_CR_OFF JPEG_CR_OFF_Msk /*!<Flush the output FIFO */
  12099. /******************** Bit definition for SR register ********************/
  12100. #define JPEG_SR_IFTF_Pos (1U)
  12101. #define JPEG_SR_IFTF_Msk (0x1U << JPEG_SR_IFTF_Pos) /*!< 0x00000002 */
  12102. #define JPEG_SR_IFTF JPEG_SR_IFTF_Msk /*!<Input FIFO is not full and is bellow its threshold flag */
  12103. #define JPEG_SR_IFNFF_Pos (2U)
  12104. #define JPEG_SR_IFNFF_Msk (0x1U << JPEG_SR_IFNFF_Pos) /*!< 0x00000004 */
  12105. #define JPEG_SR_IFNFF JPEG_SR_IFNFF_Msk /*!<Input FIFO Not Full Flag, a data can be written */
  12106. #define JPEG_SR_OFTF_Pos (3U)
  12107. #define JPEG_SR_OFTF_Msk (0x1U << JPEG_SR_OFTF_Pos) /*!< 0x00000008 */
  12108. #define JPEG_SR_OFTF JPEG_SR_OFTF_Msk /*!<Output FIFO is not empty and has reach its threshold */
  12109. #define JPEG_SR_OFNEF_Pos (4U)
  12110. #define JPEG_SR_OFNEF_Msk (0x1U << JPEG_SR_OFNEF_Pos) /*!< 0x00000010 */
  12111. #define JPEG_SR_OFNEF JPEG_SR_OFNEF_Msk /*!<Output FIFO is not empty, a data is available */
  12112. #define JPEG_SR_EOCF_Pos (5U)
  12113. #define JPEG_SR_EOCF_Msk (0x1U << JPEG_SR_EOCF_Pos) /*!< 0x00000020 */
  12114. #define JPEG_SR_EOCF JPEG_SR_EOCF_Msk /*!<JPEG Codec core has finished the encoding or the decoding process and than last data has been sent to the output FIFO */
  12115. #define JPEG_SR_HPDF_Pos (6U)
  12116. #define JPEG_SR_HPDF_Msk (0x1U << JPEG_SR_HPDF_Pos) /*!< 0x00000040 */
  12117. #define JPEG_SR_HPDF JPEG_SR_HPDF_Msk /*!<JPEG Codec has finished the parsing of the headers and the internal registers have been updated */
  12118. #define JPEG_SR_COF_Pos (7U)
  12119. #define JPEG_SR_COF_Msk (0x1U << JPEG_SR_COF_Pos) /*!< 0x00000080 */
  12120. #define JPEG_SR_COF JPEG_SR_COF_Msk /*!<JPEG Codec operation on going flag */
  12121. /******************** Bit definition for CFR register ********************/
  12122. #define JPEG_CFR_CEOCF_Pos (4U)
  12123. #define JPEG_CFR_CEOCF_Msk (0x1U << JPEG_CFR_CEOCF_Pos) /*!< 0x00000010 */
  12124. #define JPEG_CFR_CEOCF JPEG_CFR_CEOCF_Msk /*!<Clear End of Conversion Flag */
  12125. #define JPEG_CFR_CHPDF_Pos (5U)
  12126. #define JPEG_CFR_CHPDF_Msk (0x1U << JPEG_CFR_CHPDF_Pos) /*!< 0x00000020 */
  12127. #define JPEG_CFR_CHPDF JPEG_CFR_CHPDF_Msk /*!<Clear Header Parsing Done Flag */
  12128. /******************** Bit definition for DIR register ********************/
  12129. #define JPEG_DIR_DATAIN_Pos (0U)
  12130. #define JPEG_DIR_DATAIN_Msk (0xFFFFFFFFU << JPEG_DIR_DATAIN_Pos) /*!< 0xFFFFFFFF */
  12131. #define JPEG_DIR_DATAIN JPEG_DIR_DATAIN_Msk /*!<Data Input FIFO */
  12132. /******************** Bit definition for DOR register ********************/
  12133. #define JPEG_DOR_DATAOUT_Pos (0U)
  12134. #define JPEG_DOR_DATAOUT_Msk (0xFFFFFFFFU << JPEG_DOR_DATAOUT_Pos) /*!< 0xFFFFFFFF */
  12135. #define JPEG_DOR_DATAOUT JPEG_DOR_DATAOUT_Msk /*!<Data Output FIFO */
  12136. /******************************************************************************/
  12137. /* */
  12138. /* LCD-TFT Display Controller (LTDC) */
  12139. /* */
  12140. /******************************************************************************/
  12141. /******************** Bit definition for LTDC_SSCR register *****************/
  12142. #define LTDC_SSCR_VSH_Pos (0U)
  12143. #define LTDC_SSCR_VSH_Msk (0x7FFU << LTDC_SSCR_VSH_Pos) /*!< 0x000007FF */
  12144. #define LTDC_SSCR_VSH LTDC_SSCR_VSH_Msk /*!< Vertical Synchronization Height */
  12145. #define LTDC_SSCR_HSW_Pos (16U)
  12146. #define LTDC_SSCR_HSW_Msk (0xFFFU << LTDC_SSCR_HSW_Pos) /*!< 0x0FFF0000 */
  12147. #define LTDC_SSCR_HSW LTDC_SSCR_HSW_Msk /*!< Horizontal Synchronization Width */
  12148. /******************** Bit definition for LTDC_BPCR register *****************/
  12149. #define LTDC_BPCR_AVBP_Pos (0U)
  12150. #define LTDC_BPCR_AVBP_Msk (0x7FFU << LTDC_BPCR_AVBP_Pos) /*!< 0x000007FF */
  12151. #define LTDC_BPCR_AVBP LTDC_BPCR_AVBP_Msk /*!< Accumulated Vertical Back Porch */
  12152. #define LTDC_BPCR_AHBP_Pos (16U)
  12153. #define LTDC_BPCR_AHBP_Msk (0xFFFU << LTDC_BPCR_AHBP_Pos) /*!< 0x0FFF0000 */
  12154. #define LTDC_BPCR_AHBP LTDC_BPCR_AHBP_Msk /*!< Accumulated Horizontal Back Porch */
  12155. /******************** Bit definition for LTDC_AWCR register *****************/
  12156. #define LTDC_AWCR_AAH_Pos (0U)
  12157. #define LTDC_AWCR_AAH_Msk (0x7FFU << LTDC_AWCR_AAH_Pos) /*!< 0x000007FF */
  12158. #define LTDC_AWCR_AAH LTDC_AWCR_AAH_Msk /*!< Accumulated Active heigh */
  12159. #define LTDC_AWCR_AAW_Pos (16U)
  12160. #define LTDC_AWCR_AAW_Msk (0xFFFU << LTDC_AWCR_AAW_Pos) /*!< 0x0FFF0000 */
  12161. #define LTDC_AWCR_AAW LTDC_AWCR_AAW_Msk /*!< Accumulated Active Width */
  12162. /******************** Bit definition for LTDC_TWCR register *****************/
  12163. #define LTDC_TWCR_TOTALH_Pos (0U)
  12164. #define LTDC_TWCR_TOTALH_Msk (0x7FFU << LTDC_TWCR_TOTALH_Pos) /*!< 0x000007FF */
  12165. #define LTDC_TWCR_TOTALH LTDC_TWCR_TOTALH_Msk /*!< Total Heigh */
  12166. #define LTDC_TWCR_TOTALW_Pos (16U)
  12167. #define LTDC_TWCR_TOTALW_Msk (0xFFFU << LTDC_TWCR_TOTALW_Pos) /*!< 0x0FFF0000 */
  12168. #define LTDC_TWCR_TOTALW LTDC_TWCR_TOTALW_Msk /*!< Total Width */
  12169. /******************** Bit definition for LTDC_GCR register ******************/
  12170. #define LTDC_GCR_LTDCEN_Pos (0U)
  12171. #define LTDC_GCR_LTDCEN_Msk (0x1U << LTDC_GCR_LTDCEN_Pos) /*!< 0x00000001 */
  12172. #define LTDC_GCR_LTDCEN LTDC_GCR_LTDCEN_Msk /*!< LCD-TFT controller enable bit */
  12173. #define LTDC_GCR_DBW_Pos (4U)
  12174. #define LTDC_GCR_DBW_Msk (0x7U << LTDC_GCR_DBW_Pos) /*!< 0x00000070 */
  12175. #define LTDC_GCR_DBW LTDC_GCR_DBW_Msk /*!< Dither Blue Width */
  12176. #define LTDC_GCR_DGW_Pos (8U)
  12177. #define LTDC_GCR_DGW_Msk (0x7U << LTDC_GCR_DGW_Pos) /*!< 0x00000700 */
  12178. #define LTDC_GCR_DGW LTDC_GCR_DGW_Msk /*!< Dither Green Width */
  12179. #define LTDC_GCR_DRW_Pos (12U)
  12180. #define LTDC_GCR_DRW_Msk (0x7U << LTDC_GCR_DRW_Pos) /*!< 0x00007000 */
  12181. #define LTDC_GCR_DRW LTDC_GCR_DRW_Msk /*!< Dither Red Width */
  12182. #define LTDC_GCR_DEN_Pos (16U)
  12183. #define LTDC_GCR_DEN_Msk (0x1U << LTDC_GCR_DEN_Pos) /*!< 0x00010000 */
  12184. #define LTDC_GCR_DEN LTDC_GCR_DEN_Msk /*!< Dither Enable */
  12185. #define LTDC_GCR_PCPOL_Pos (28U)
  12186. #define LTDC_GCR_PCPOL_Msk (0x1U << LTDC_GCR_PCPOL_Pos) /*!< 0x10000000 */
  12187. #define LTDC_GCR_PCPOL LTDC_GCR_PCPOL_Msk /*!< Pixel Clock Polarity */
  12188. #define LTDC_GCR_DEPOL_Pos (29U)
  12189. #define LTDC_GCR_DEPOL_Msk (0x1U << LTDC_GCR_DEPOL_Pos) /*!< 0x20000000 */
  12190. #define LTDC_GCR_DEPOL LTDC_GCR_DEPOL_Msk /*!< Data Enable Polarity */
  12191. #define LTDC_GCR_VSPOL_Pos (30U)
  12192. #define LTDC_GCR_VSPOL_Msk (0x1U << LTDC_GCR_VSPOL_Pos) /*!< 0x40000000 */
  12193. #define LTDC_GCR_VSPOL LTDC_GCR_VSPOL_Msk /*!< Vertical Synchronization Polarity */
  12194. #define LTDC_GCR_HSPOL_Pos (31U)
  12195. #define LTDC_GCR_HSPOL_Msk (0x1U << LTDC_GCR_HSPOL_Pos) /*!< 0x80000000 */
  12196. #define LTDC_GCR_HSPOL LTDC_GCR_HSPOL_Msk /*!< Horizontal Synchronization Polarity */
  12197. /******************** Bit definition for LTDC_SRCR register *****************/
  12198. #define LTDC_SRCR_IMR_Pos (0U)
  12199. #define LTDC_SRCR_IMR_Msk (0x1U << LTDC_SRCR_IMR_Pos) /*!< 0x00000001 */
  12200. #define LTDC_SRCR_IMR LTDC_SRCR_IMR_Msk /*!< Immediate Reload */
  12201. #define LTDC_SRCR_VBR_Pos (1U)
  12202. #define LTDC_SRCR_VBR_Msk (0x1U << LTDC_SRCR_VBR_Pos) /*!< 0x00000002 */
  12203. #define LTDC_SRCR_VBR LTDC_SRCR_VBR_Msk /*!< Vertical Blanking Reload */
  12204. /******************** Bit definition for LTDC_BCCR register *****************/
  12205. #define LTDC_BCCR_BCBLUE_Pos (0U)
  12206. #define LTDC_BCCR_BCBLUE_Msk (0xFFU << LTDC_BCCR_BCBLUE_Pos) /*!< 0x000000FF */
  12207. #define LTDC_BCCR_BCBLUE LTDC_BCCR_BCBLUE_Msk /*!< Background Blue value */
  12208. #define LTDC_BCCR_BCGREEN_Pos (8U)
  12209. #define LTDC_BCCR_BCGREEN_Msk (0xFFU << LTDC_BCCR_BCGREEN_Pos) /*!< 0x0000FF00 */
  12210. #define LTDC_BCCR_BCGREEN LTDC_BCCR_BCGREEN_Msk /*!< Background Green value */
  12211. #define LTDC_BCCR_BCRED_Pos (16U)
  12212. #define LTDC_BCCR_BCRED_Msk (0xFFU << LTDC_BCCR_BCRED_Pos) /*!< 0x00FF0000 */
  12213. #define LTDC_BCCR_BCRED LTDC_BCCR_BCRED_Msk /*!< Background Red value */
  12214. /******************** Bit definition for LTDC_IER register ******************/
  12215. #define LTDC_IER_LIE_Pos (0U)
  12216. #define LTDC_IER_LIE_Msk (0x1U << LTDC_IER_LIE_Pos) /*!< 0x00000001 */
  12217. #define LTDC_IER_LIE LTDC_IER_LIE_Msk /*!< Line Interrupt Enable */
  12218. #define LTDC_IER_FUIE_Pos (1U)
  12219. #define LTDC_IER_FUIE_Msk (0x1U << LTDC_IER_FUIE_Pos) /*!< 0x00000002 */
  12220. #define LTDC_IER_FUIE LTDC_IER_FUIE_Msk /*!< FIFO Underrun Interrupt Enable */
  12221. #define LTDC_IER_TERRIE_Pos (2U)
  12222. #define LTDC_IER_TERRIE_Msk (0x1U << LTDC_IER_TERRIE_Pos) /*!< 0x00000004 */
  12223. #define LTDC_IER_TERRIE LTDC_IER_TERRIE_Msk /*!< Transfer Error Interrupt Enable */
  12224. #define LTDC_IER_RRIE_Pos (3U)
  12225. #define LTDC_IER_RRIE_Msk (0x1U << LTDC_IER_RRIE_Pos) /*!< 0x00000008 */
  12226. #define LTDC_IER_RRIE LTDC_IER_RRIE_Msk /*!< Register Reload interrupt enable */
  12227. /******************** Bit definition for LTDC_ISR register ******************/
  12228. #define LTDC_ISR_LIF_Pos (0U)
  12229. #define LTDC_ISR_LIF_Msk (0x1U << LTDC_ISR_LIF_Pos) /*!< 0x00000001 */
  12230. #define LTDC_ISR_LIF LTDC_ISR_LIF_Msk /*!< Line Interrupt Flag */
  12231. #define LTDC_ISR_FUIF_Pos (1U)
  12232. #define LTDC_ISR_FUIF_Msk (0x1U << LTDC_ISR_FUIF_Pos) /*!< 0x00000002 */
  12233. #define LTDC_ISR_FUIF LTDC_ISR_FUIF_Msk /*!< FIFO Underrun Interrupt Flag */
  12234. #define LTDC_ISR_TERRIF_Pos (2U)
  12235. #define LTDC_ISR_TERRIF_Msk (0x1U << LTDC_ISR_TERRIF_Pos) /*!< 0x00000004 */
  12236. #define LTDC_ISR_TERRIF LTDC_ISR_TERRIF_Msk /*!< Transfer Error Interrupt Flag */
  12237. #define LTDC_ISR_RRIF_Pos (3U)
  12238. #define LTDC_ISR_RRIF_Msk (0x1U << LTDC_ISR_RRIF_Pos) /*!< 0x00000008 */
  12239. #define LTDC_ISR_RRIF LTDC_ISR_RRIF_Msk /*!< Register Reload interrupt Flag */
  12240. /******************** Bit definition for LTDC_ICR register ******************/
  12241. #define LTDC_ICR_CLIF_Pos (0U)
  12242. #define LTDC_ICR_CLIF_Msk (0x1U << LTDC_ICR_CLIF_Pos) /*!< 0x00000001 */
  12243. #define LTDC_ICR_CLIF LTDC_ICR_CLIF_Msk /*!< Clears the Line Interrupt Flag */
  12244. #define LTDC_ICR_CFUIF_Pos (1U)
  12245. #define LTDC_ICR_CFUIF_Msk (0x1U << LTDC_ICR_CFUIF_Pos) /*!< 0x00000002 */
  12246. #define LTDC_ICR_CFUIF LTDC_ICR_CFUIF_Msk /*!< Clears the FIFO Underrun Interrupt Flag */
  12247. #define LTDC_ICR_CTERRIF_Pos (2U)
  12248. #define LTDC_ICR_CTERRIF_Msk (0x1U << LTDC_ICR_CTERRIF_Pos) /*!< 0x00000004 */
  12249. #define LTDC_ICR_CTERRIF LTDC_ICR_CTERRIF_Msk /*!< Clears the Transfer Error Interrupt Flag */
  12250. #define LTDC_ICR_CRRIF_Pos (3U)
  12251. #define LTDC_ICR_CRRIF_Msk (0x1U << LTDC_ICR_CRRIF_Pos) /*!< 0x00000008 */
  12252. #define LTDC_ICR_CRRIF LTDC_ICR_CRRIF_Msk /*!< Clears Register Reload interrupt Flag */
  12253. /******************** Bit definition for LTDC_LIPCR register ****************/
  12254. #define LTDC_LIPCR_LIPOS_Pos (0U)
  12255. #define LTDC_LIPCR_LIPOS_Msk (0x7FFU << LTDC_LIPCR_LIPOS_Pos) /*!< 0x000007FF */
  12256. #define LTDC_LIPCR_LIPOS LTDC_LIPCR_LIPOS_Msk /*!< Line Interrupt Position */
  12257. /******************** Bit definition for LTDC_CPSR register *****************/
  12258. #define LTDC_CPSR_CYPOS_Pos (0U)
  12259. #define LTDC_CPSR_CYPOS_Msk (0xFFFFU << LTDC_CPSR_CYPOS_Pos) /*!< 0x0000FFFF */
  12260. #define LTDC_CPSR_CYPOS LTDC_CPSR_CYPOS_Msk /*!< Current Y Position */
  12261. #define LTDC_CPSR_CXPOS_Pos (16U)
  12262. #define LTDC_CPSR_CXPOS_Msk (0xFFFFU << LTDC_CPSR_CXPOS_Pos) /*!< 0xFFFF0000 */
  12263. #define LTDC_CPSR_CXPOS LTDC_CPSR_CXPOS_Msk /*!< Current X Position */
  12264. /******************** Bit definition for LTDC_CDSR register *****************/
  12265. #define LTDC_CDSR_VDES_Pos (0U)
  12266. #define LTDC_CDSR_VDES_Msk (0x1U << LTDC_CDSR_VDES_Pos) /*!< 0x00000001 */
  12267. #define LTDC_CDSR_VDES LTDC_CDSR_VDES_Msk /*!< Vertical Data Enable Status */
  12268. #define LTDC_CDSR_HDES_Pos (1U)
  12269. #define LTDC_CDSR_HDES_Msk (0x1U << LTDC_CDSR_HDES_Pos) /*!< 0x00000002 */
  12270. #define LTDC_CDSR_HDES LTDC_CDSR_HDES_Msk /*!< Horizontal Data Enable Status */
  12271. #define LTDC_CDSR_VSYNCS_Pos (2U)
  12272. #define LTDC_CDSR_VSYNCS_Msk (0x1U << LTDC_CDSR_VSYNCS_Pos) /*!< 0x00000004 */
  12273. #define LTDC_CDSR_VSYNCS LTDC_CDSR_VSYNCS_Msk /*!< Vertical Synchronization Status */
  12274. #define LTDC_CDSR_HSYNCS_Pos (3U)
  12275. #define LTDC_CDSR_HSYNCS_Msk (0x1U << LTDC_CDSR_HSYNCS_Pos) /*!< 0x00000008 */
  12276. #define LTDC_CDSR_HSYNCS LTDC_CDSR_HSYNCS_Msk /*!< Horizontal Synchronization Status */
  12277. /******************** Bit definition for LTDC_LxCR register *****************/
  12278. #define LTDC_LxCR_LEN_Pos (0U)
  12279. #define LTDC_LxCR_LEN_Msk (0x1U << LTDC_LxCR_LEN_Pos) /*!< 0x00000001 */
  12280. #define LTDC_LxCR_LEN LTDC_LxCR_LEN_Msk /*!< Layer Enable */
  12281. #define LTDC_LxCR_COLKEN_Pos (1U)
  12282. #define LTDC_LxCR_COLKEN_Msk (0x1U << LTDC_LxCR_COLKEN_Pos) /*!< 0x00000002 */
  12283. #define LTDC_LxCR_COLKEN LTDC_LxCR_COLKEN_Msk /*!< Color Keying Enable */
  12284. #define LTDC_LxCR_CLUTEN_Pos (4U)
  12285. #define LTDC_LxCR_CLUTEN_Msk (0x1U << LTDC_LxCR_CLUTEN_Pos) /*!< 0x00000010 */
  12286. #define LTDC_LxCR_CLUTEN LTDC_LxCR_CLUTEN_Msk /*!< Color Lockup Table Enable */
  12287. /******************** Bit definition for LTDC_LxWHPCR register **************/
  12288. #define LTDC_LxWHPCR_WHSTPOS_Pos (0U)
  12289. #define LTDC_LxWHPCR_WHSTPOS_Msk (0xFFFU << LTDC_LxWHPCR_WHSTPOS_Pos) /*!< 0x00000FFF */
  12290. #define LTDC_LxWHPCR_WHSTPOS LTDC_LxWHPCR_WHSTPOS_Msk /*!< Window Horizontal Start Position */
  12291. #define LTDC_LxWHPCR_WHSPPOS_Pos (16U)
  12292. #define LTDC_LxWHPCR_WHSPPOS_Msk (0xFFFFU << LTDC_LxWHPCR_WHSPPOS_Pos) /*!< 0xFFFF0000 */
  12293. #define LTDC_LxWHPCR_WHSPPOS LTDC_LxWHPCR_WHSPPOS_Msk /*!< Window Horizontal Stop Position */
  12294. /******************** Bit definition for LTDC_LxWVPCR register **************/
  12295. #define LTDC_LxWVPCR_WVSTPOS_Pos (0U)
  12296. #define LTDC_LxWVPCR_WVSTPOS_Msk (0xFFFU << LTDC_LxWVPCR_WVSTPOS_Pos) /*!< 0x00000FFF */
  12297. #define LTDC_LxWVPCR_WVSTPOS LTDC_LxWVPCR_WVSTPOS_Msk /*!< Window Vertical Start Position */
  12298. #define LTDC_LxWVPCR_WVSPPOS_Pos (16U)
  12299. #define LTDC_LxWVPCR_WVSPPOS_Msk (0xFFFFU << LTDC_LxWVPCR_WVSPPOS_Pos) /*!< 0xFFFF0000 */
  12300. #define LTDC_LxWVPCR_WVSPPOS LTDC_LxWVPCR_WVSPPOS_Msk /*!< Window Vertical Stop Position */
  12301. /******************** Bit definition for LTDC_LxCKCR register ***************/
  12302. #define LTDC_LxCKCR_CKBLUE_Pos (0U)
  12303. #define LTDC_LxCKCR_CKBLUE_Msk (0xFFU << LTDC_LxCKCR_CKBLUE_Pos) /*!< 0x000000FF */
  12304. #define LTDC_LxCKCR_CKBLUE LTDC_LxCKCR_CKBLUE_Msk /*!< Color Key Blue value */
  12305. #define LTDC_LxCKCR_CKGREEN_Pos (8U)
  12306. #define LTDC_LxCKCR_CKGREEN_Msk (0xFFU << LTDC_LxCKCR_CKGREEN_Pos) /*!< 0x0000FF00 */
  12307. #define LTDC_LxCKCR_CKGREEN LTDC_LxCKCR_CKGREEN_Msk /*!< Color Key Green value */
  12308. #define LTDC_LxCKCR_CKRED_Pos (16U)
  12309. #define LTDC_LxCKCR_CKRED_Msk (0xFFU << LTDC_LxCKCR_CKRED_Pos) /*!< 0x00FF0000 */
  12310. #define LTDC_LxCKCR_CKRED LTDC_LxCKCR_CKRED_Msk /*!< Color Key Red value */
  12311. /******************** Bit definition for LTDC_LxPFCR register ***************/
  12312. #define LTDC_LxPFCR_PF_Pos (0U)
  12313. #define LTDC_LxPFCR_PF_Msk (0x7U << LTDC_LxPFCR_PF_Pos) /*!< 0x00000007 */
  12314. #define LTDC_LxPFCR_PF LTDC_LxPFCR_PF_Msk /*!< Pixel Format */
  12315. /******************** Bit definition for LTDC_LxCACR register ***************/
  12316. #define LTDC_LxCACR_CONSTA_Pos (0U)
  12317. #define LTDC_LxCACR_CONSTA_Msk (0xFFU << LTDC_LxCACR_CONSTA_Pos) /*!< 0x000000FF */
  12318. #define LTDC_LxCACR_CONSTA LTDC_LxCACR_CONSTA_Msk /*!< Constant Alpha */
  12319. /******************** Bit definition for LTDC_LxDCCR register ***************/
  12320. #define LTDC_LxDCCR_DCBLUE_Pos (0U)
  12321. #define LTDC_LxDCCR_DCBLUE_Msk (0xFFU << LTDC_LxDCCR_DCBLUE_Pos) /*!< 0x000000FF */
  12322. #define LTDC_LxDCCR_DCBLUE LTDC_LxDCCR_DCBLUE_Msk /*!< Default Color Blue */
  12323. #define LTDC_LxDCCR_DCGREEN_Pos (8U)
  12324. #define LTDC_LxDCCR_DCGREEN_Msk (0xFFU << LTDC_LxDCCR_DCGREEN_Pos) /*!< 0x0000FF00 */
  12325. #define LTDC_LxDCCR_DCGREEN LTDC_LxDCCR_DCGREEN_Msk /*!< Default Color Green */
  12326. #define LTDC_LxDCCR_DCRED_Pos (16U)
  12327. #define LTDC_LxDCCR_DCRED_Msk (0xFFU << LTDC_LxDCCR_DCRED_Pos) /*!< 0x00FF0000 */
  12328. #define LTDC_LxDCCR_DCRED LTDC_LxDCCR_DCRED_Msk /*!< Default Color Red */
  12329. #define LTDC_LxDCCR_DCALPHA_Pos (24U)
  12330. #define LTDC_LxDCCR_DCALPHA_Msk (0xFFU << LTDC_LxDCCR_DCALPHA_Pos) /*!< 0xFF000000 */
  12331. #define LTDC_LxDCCR_DCALPHA LTDC_LxDCCR_DCALPHA_Msk /*!< Default Color Alpha */
  12332. /******************** Bit definition for LTDC_LxBFCR register ***************/
  12333. #define LTDC_LxBFCR_BF2_Pos (0U)
  12334. #define LTDC_LxBFCR_BF2_Msk (0x7U << LTDC_LxBFCR_BF2_Pos) /*!< 0x00000007 */
  12335. #define LTDC_LxBFCR_BF2 LTDC_LxBFCR_BF2_Msk /*!< Blending Factor 2 */
  12336. #define LTDC_LxBFCR_BF1_Pos (8U)
  12337. #define LTDC_LxBFCR_BF1_Msk (0x7U << LTDC_LxBFCR_BF1_Pos) /*!< 0x00000700 */
  12338. #define LTDC_LxBFCR_BF1 LTDC_LxBFCR_BF1_Msk /*!< Blending Factor 1 */
  12339. /******************** Bit definition for LTDC_LxCFBAR register **************/
  12340. #define LTDC_LxCFBAR_CFBADD_Pos (0U)
  12341. #define LTDC_LxCFBAR_CFBADD_Msk (0xFFFFFFFFU << LTDC_LxCFBAR_CFBADD_Pos) /*!< 0xFFFFFFFF */
  12342. #define LTDC_LxCFBAR_CFBADD LTDC_LxCFBAR_CFBADD_Msk /*!< Color Frame Buffer Start Address */
  12343. /******************** Bit definition for LTDC_LxCFBLR register **************/
  12344. #define LTDC_LxCFBLR_CFBLL_Pos (0U)
  12345. #define LTDC_LxCFBLR_CFBLL_Msk (0x1FFFU << LTDC_LxCFBLR_CFBLL_Pos) /*!< 0x00001FFF */
  12346. #define LTDC_LxCFBLR_CFBLL LTDC_LxCFBLR_CFBLL_Msk /*!< Color Frame Buffer Line Length */
  12347. #define LTDC_LxCFBLR_CFBP_Pos (16U)
  12348. #define LTDC_LxCFBLR_CFBP_Msk (0x1FFFU << LTDC_LxCFBLR_CFBP_Pos) /*!< 0x1FFF0000 */
  12349. #define LTDC_LxCFBLR_CFBP LTDC_LxCFBLR_CFBP_Msk /*!< Color Frame Buffer Pitch in bytes */
  12350. /******************** Bit definition for LTDC_LxCFBLNR register *************/
  12351. #define LTDC_LxCFBLNR_CFBLNBR_Pos (0U)
  12352. #define LTDC_LxCFBLNR_CFBLNBR_Msk (0x7FFU << LTDC_LxCFBLNR_CFBLNBR_Pos) /*!< 0x000007FF */
  12353. #define LTDC_LxCFBLNR_CFBLNBR LTDC_LxCFBLNR_CFBLNBR_Msk /*!< Frame Buffer Line Number */
  12354. /******************** Bit definition for LTDC_LxCLUTWR register *************/
  12355. #define LTDC_LxCLUTWR_BLUE_Pos (0U)
  12356. #define LTDC_LxCLUTWR_BLUE_Msk (0xFFU << LTDC_LxCLUTWR_BLUE_Pos) /*!< 0x000000FF */
  12357. #define LTDC_LxCLUTWR_BLUE LTDC_LxCLUTWR_BLUE_Msk /*!< Blue value */
  12358. #define LTDC_LxCLUTWR_GREEN_Pos (8U)
  12359. #define LTDC_LxCLUTWR_GREEN_Msk (0xFFU << LTDC_LxCLUTWR_GREEN_Pos) /*!< 0x0000FF00 */
  12360. #define LTDC_LxCLUTWR_GREEN LTDC_LxCLUTWR_GREEN_Msk /*!< Green value */
  12361. #define LTDC_LxCLUTWR_RED_Pos (16U)
  12362. #define LTDC_LxCLUTWR_RED_Msk (0xFFU << LTDC_LxCLUTWR_RED_Pos) /*!< 0x00FF0000 */
  12363. #define LTDC_LxCLUTWR_RED LTDC_LxCLUTWR_RED_Msk /*!< Red value */
  12364. #define LTDC_LxCLUTWR_CLUTADD_Pos (24U)
  12365. #define LTDC_LxCLUTWR_CLUTADD_Msk (0xFFU << LTDC_LxCLUTWR_CLUTADD_Pos) /*!< 0xFF000000 */
  12366. #define LTDC_LxCLUTWR_CLUTADD LTDC_LxCLUTWR_CLUTADD_Msk /*!< CLUT address */
  12367. /******************************************************************************/
  12368. /* */
  12369. /* MDMA */
  12370. /* */
  12371. /******************************************************************************/
  12372. /******************** Bit definition for MDMA_GISR0 register ****************/
  12373. #define MDMA_GISR0_GIF0_Pos (0U)
  12374. #define MDMA_GISR0_GIF0_Msk (0x1U << MDMA_GISR0_GIF0_Pos) /*!< 0x00000001 */
  12375. #define MDMA_GISR0_GIF0 MDMA_GISR0_GIF0_Msk /*!< Channel 0 global interrupt flag */
  12376. #define MDMA_GISR0_GIF1_Pos (1U)
  12377. #define MDMA_GISR0_GIF1_Msk (0x1U << MDMA_GISR0_GIF1_Pos) /*!< 0x00000002 */
  12378. #define MDMA_GISR0_GIF1 MDMA_GISR0_GIF1_Msk /*!< Channel 1 global interrupt flag */
  12379. #define MDMA_GISR0_GIF2_Pos (2U)
  12380. #define MDMA_GISR0_GIF2_Msk (0x1U << MDMA_GISR0_GIF2_Pos) /*!< 0x00000004 */
  12381. #define MDMA_GISR0_GIF2 MDMA_GISR0_GIF2_Msk /*!< Channel 2 global interrupt flag */
  12382. #define MDMA_GISR0_GIF3_Pos (3U)
  12383. #define MDMA_GISR0_GIF3_Msk (0x1U << MDMA_GISR0_GIF3_Pos) /*!< 0x00000008 */
  12384. #define MDMA_GISR0_GIF3 MDMA_GISR0_GIF3_Msk /*!< Channel 3 global interrupt flag */
  12385. #define MDMA_GISR0_GIF4_Pos (4U)
  12386. #define MDMA_GISR0_GIF4_Msk (0x1U << MDMA_GISR0_GIF4_Pos) /*!< 0x00000010 */
  12387. #define MDMA_GISR0_GIF4 MDMA_GISR0_GIF4_Msk /*!< Channel 4 global interrupt flag */
  12388. #define MDMA_GISR0_GIF5_Pos (5U)
  12389. #define MDMA_GISR0_GIF5_Msk (0x1U << MDMA_GISR0_GIF5_Pos) /*!< 0x00000020 */
  12390. #define MDMA_GISR0_GIF5 MDMA_GISR0_GIF5_Msk /*!< Channel 5 global interrupt flag */
  12391. #define MDMA_GISR0_GIF6_Pos (6U)
  12392. #define MDMA_GISR0_GIF6_Msk (0x1U << MDMA_GISR0_GIF6_Pos) /*!< 0x00000040 */
  12393. #define MDMA_GISR0_GIF6 MDMA_GISR0_GIF6_Msk /*!< Channel 6 global interrupt flag */
  12394. #define MDMA_GISR0_GIF7_Pos (7U)
  12395. #define MDMA_GISR0_GIF7_Msk (0x1U << MDMA_GISR0_GIF7_Pos) /*!< 0x00000080 */
  12396. #define MDMA_GISR0_GIF7 MDMA_GISR0_GIF7_Msk /*!< Channel 7 global interrupt flag */
  12397. #define MDMA_GISR0_GIF8_Pos (8U)
  12398. #define MDMA_GISR0_GIF8_Msk (0x1U << MDMA_GISR0_GIF8_Pos) /*!< 0x00000100 */
  12399. #define MDMA_GISR0_GIF8 MDMA_GISR0_GIF8_Msk /*!< Channel 8 global interrupt flag */
  12400. #define MDMA_GISR0_GIF9_Pos (9U)
  12401. #define MDMA_GISR0_GIF9_Msk (0x1U << MDMA_GISR0_GIF9_Pos) /*!< 0x00000200 */
  12402. #define MDMA_GISR0_GIF9 MDMA_GISR0_GIF9_Msk /*!< Channel 9 global interrupt flag */
  12403. #define MDMA_GISR0_GIF10_Pos (10U)
  12404. #define MDMA_GISR0_GIF10_Msk (0x1U << MDMA_GISR0_GIF10_Pos) /*!< 0x00000400 */
  12405. #define MDMA_GISR0_GIF10 MDMA_GISR0_GIF10_Msk /*!< Channel 10 global interrupt flag */
  12406. #define MDMA_GISR0_GIF11_Pos (11U)
  12407. #define MDMA_GISR0_GIF11_Msk (0x1U << MDMA_GISR0_GIF11_Pos) /*!< 0x00000800 */
  12408. #define MDMA_GISR0_GIF11 MDMA_GISR0_GIF11_Msk /*!< Channel 11 global interrupt flag */
  12409. #define MDMA_GISR0_GIF12_Pos (12U)
  12410. #define MDMA_GISR0_GIF12_Msk (0x1U << MDMA_GISR0_GIF12_Pos) /*!< 0x00001000 */
  12411. #define MDMA_GISR0_GIF12 MDMA_GISR0_GIF12_Msk /*!< Channel 12 global interrupt flag */
  12412. #define MDMA_GISR0_GIF13_Pos (13U)
  12413. #define MDMA_GISR0_GIF13_Msk (0x1U << MDMA_GISR0_GIF13_Pos) /*!< 0x00002000 */
  12414. #define MDMA_GISR0_GIF13 MDMA_GISR0_GIF13_Msk /*!< Channel 13 global interrupt flag */
  12415. #define MDMA_GISR0_GIF14_Pos (14U)
  12416. #define MDMA_GISR0_GIF14_Msk (0x1U << MDMA_GISR0_GIF14_Pos) /*!< 0x00004000 */
  12417. #define MDMA_GISR0_GIF14 MDMA_GISR0_GIF14_Msk /*!< Channel 14 global interrupt flag */
  12418. #define MDMA_GISR0_GIF15_Pos (15U)
  12419. #define MDMA_GISR0_GIF15_Msk (0x1U << MDMA_GISR0_GIF15_Pos) /*!< 0x00008000 */
  12420. #define MDMA_GISR0_GIF15 MDMA_GISR0_GIF15_Msk /*!< Channel 15 global interrupt flag */
  12421. /******************** Bit definition for MDMA_CxISR register ****************/
  12422. #define MDMA_CISR_TEIF_Pos (0U)
  12423. #define MDMA_CISR_TEIF_Msk (0x1U << MDMA_CISR_TEIF_Pos) /*!< 0x00000001 */
  12424. #define MDMA_CISR_TEIF MDMA_CISR_TEIF_Msk /*!< Channel x transfer error interrupt flag */
  12425. #define MDMA_CISR_CTCIF_Pos (1U)
  12426. #define MDMA_CISR_CTCIF_Msk (0x1U << MDMA_CISR_CTCIF_Pos) /*!< 0x00000002 */
  12427. #define MDMA_CISR_CTCIF MDMA_CISR_CTCIF_Msk /*!< Channel x Channel Transfer Complete interrupt flag */
  12428. #define MDMA_CISR_BRTIF_Pos (2U)
  12429. #define MDMA_CISR_BRTIF_Msk (0x1U << MDMA_CISR_BRTIF_Pos) /*!< 0x00000004 */
  12430. #define MDMA_CISR_BRTIF MDMA_CISR_BRTIF_Msk /*!< Channel x block repeat transfer complete interrupt flag */
  12431. #define MDMA_CISR_BTIF_Pos (3U)
  12432. #define MDMA_CISR_BTIF_Msk (0x1U << MDMA_CISR_BTIF_Pos) /*!< 0x00000008 */
  12433. #define MDMA_CISR_BTIF MDMA_CISR_BTIF_Msk /*!< Channel x block transfer complete interrupt flag */
  12434. #define MDMA_CISR_TCIF_Pos (4U)
  12435. #define MDMA_CISR_TCIF_Msk (0x1U << MDMA_CISR_TCIF_Pos) /*!< 0x00000010 */
  12436. #define MDMA_CISR_TCIF MDMA_CISR_TCIF_Msk /*!< Channel x buffer transfer complete interrupt flag */
  12437. #define MDMA_CISR_CRQA_Pos (16U)
  12438. #define MDMA_CISR_CRQA_Msk (0x1U << MDMA_CISR_CRQA_Pos) /*!< 0x00010000 */
  12439. #define MDMA_CISR_CRQA MDMA_CISR_CRQA_Msk /*!< Channel x ReQest Active flag */
  12440. /******************** Bit definition for MDMA_CxIFCR register ****************/
  12441. #define MDMA_CIFCR_CTEIF_Pos (0U)
  12442. #define MDMA_CIFCR_CTEIF_Msk (0x1U << MDMA_CIFCR_CTEIF_Pos) /*!< 0x00000001 */
  12443. #define MDMA_CIFCR_CTEIF MDMA_CIFCR_CTEIF_Msk /*!< Channel x clear transfer error interrupt flag */
  12444. #define MDMA_CIFCR_CCTCIF_Pos (1U)
  12445. #define MDMA_CIFCR_CCTCIF_Msk (0x1U << MDMA_CIFCR_CCTCIF_Pos) /*!< 0x00000002 */
  12446. #define MDMA_CIFCR_CCTCIF MDMA_CIFCR_CCTCIF_Msk /*!< Clear Channel transfer complete interrupt flag for channel x */
  12447. #define MDMA_CIFCR_CBRTIF_Pos (2U)
  12448. #define MDMA_CIFCR_CBRTIF_Msk (0x1U << MDMA_CIFCR_CBRTIF_Pos) /*!< 0x00000004 */
  12449. #define MDMA_CIFCR_CBRTIF MDMA_CIFCR_CBRTIF_Msk /*!< Channel x clear block repeat transfer complete interrupt flag */
  12450. #define MDMA_CIFCR_CBTIF_Pos (3U)
  12451. #define MDMA_CIFCR_CBTIF_Msk (0x1U << MDMA_CIFCR_CBTIF_Pos) /*!< 0x00000008 */
  12452. #define MDMA_CIFCR_CBTIF MDMA_CIFCR_CBTIF_Msk /*!< Channel x Clear block transfer complete interrupt flag */
  12453. #define MDMA_CIFCR_CLTCIF_Pos (4U)
  12454. #define MDMA_CIFCR_CLTCIF_Msk (0x1U << MDMA_CIFCR_CLTCIF_Pos) /*!< 0x00000010 */
  12455. #define MDMA_CIFCR_CLTCIF MDMA_CIFCR_CLTCIF_Msk /*!< CLear Transfer buffer Complete Interrupt Flag for channel */
  12456. /******************** Bit definition for MDMA_CxESR register ****************/
  12457. #define MDMA_CESR_TEA_Pos (0U)
  12458. #define MDMA_CESR_TEA_Msk (0x7FU << MDMA_CESR_TEA_Pos) /*!< 0x0000007F */
  12459. #define MDMA_CESR_TEA MDMA_CESR_TEA_Msk /*!< Transfer Error Address */
  12460. #define MDMA_CESR_TED_Pos (7U)
  12461. #define MDMA_CESR_TED_Msk (0x1U << MDMA_CESR_TED_Pos) /*!< 0x00000080 */
  12462. #define MDMA_CESR_TED MDMA_CESR_TED_Msk /*!< Transfer Error Direction */
  12463. #define MDMA_CESR_TELD_Pos (8U)
  12464. #define MDMA_CESR_TELD_Msk (0x1U << MDMA_CESR_TELD_Pos) /*!< 0x00000100 */
  12465. #define MDMA_CESR_TELD MDMA_CESR_TELD_Msk /*!< Transfer Error Link Data */
  12466. #define MDMA_CESR_TEMD_Pos (9U)
  12467. #define MDMA_CESR_TEMD_Msk (0x1U << MDMA_CESR_TEMD_Pos) /*!< 0x00000200 */
  12468. #define MDMA_CESR_TEMD MDMA_CESR_TEMD_Msk /*!< Transfer Error Mask Data */
  12469. #define MDMA_CESR_ASE_Pos (10U)
  12470. #define MDMA_CESR_ASE_Msk (0x1U << MDMA_CESR_ASE_Pos) /*!< 0x00000400 */
  12471. #define MDMA_CESR_ASE MDMA_CESR_ASE_Msk /*!< Address/Size Error */
  12472. #define MDMA_CESR_BSE_Pos (11U)
  12473. #define MDMA_CESR_BSE_Msk (0x1U << MDMA_CESR_BSE_Pos) /*!< 0x00000800 */
  12474. #define MDMA_CESR_BSE MDMA_CESR_BSE_Msk /*!< Block Size Error */
  12475. /******************** Bit definition for MDMA_CxCR register ****************/
  12476. #define MDMA_CCR_EN_Pos (0U)
  12477. #define MDMA_CCR_EN_Msk (0x1U << MDMA_CCR_EN_Pos) /*!< 0x00000001 */
  12478. #define MDMA_CCR_EN MDMA_CCR_EN_Msk /*!< Channel enable / flag channel ready when read low */
  12479. #define MDMA_CCR_TEIE_Pos (1U)
  12480. #define MDMA_CCR_TEIE_Msk (0x1U << MDMA_CCR_TEIE_Pos) /*!< 0x00000002 */
  12481. #define MDMA_CCR_TEIE MDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  12482. #define MDMA_CCR_CTCIE_Pos (2U)
  12483. #define MDMA_CCR_CTCIE_Msk (0x1U << MDMA_CCR_CTCIE_Pos) /*!< 0x00000004 */
  12484. #define MDMA_CCR_CTCIE MDMA_CCR_CTCIE_Msk /*!< Channel Transfer Complete interrupt enable */
  12485. #define MDMA_CCR_BRTIE_Pos (3U)
  12486. #define MDMA_CCR_BRTIE_Msk (0x1U << MDMA_CCR_BRTIE_Pos) /*!< 0x00000008 */
  12487. #define MDMA_CCR_BRTIE MDMA_CCR_BRTIE_Msk /*!< Block Repeat transfer interrupt enable */
  12488. #define MDMA_CCR_BTIE_Pos (4U)
  12489. #define MDMA_CCR_BTIE_Msk (0x1U << MDMA_CCR_BTIE_Pos) /*!< 0x00000010 */
  12490. #define MDMA_CCR_BTIE MDMA_CCR_BTIE_Msk /*!< Block Transfer interrupt enable */
  12491. #define MDMA_CCR_TCIE_Pos (5U)
  12492. #define MDMA_CCR_TCIE_Msk (0x1U << MDMA_CCR_TCIE_Pos) /*!< 0x00000020 */
  12493. #define MDMA_CCR_TCIE MDMA_CCR_TCIE_Msk /*!< buffer Transfer Complete interrupt enable */
  12494. #define MDMA_CCR_PL_Pos (6U)
  12495. #define MDMA_CCR_PL_Msk (0x3U << MDMA_CCR_PL_Pos) /*!< 0x000000C0 */
  12496. #define MDMA_CCR_PL MDMA_CCR_PL_Msk /*!< Priority level */
  12497. #define MDMA_CCR_PL_0 (0x1U << MDMA_CCR_PL_Pos) /*!< 0x00000040 */
  12498. #define MDMA_CCR_PL_1 (0x2U << MDMA_CCR_PL_Pos) /*!< 0x00000080 */
  12499. #define MDMA_CCR_BEX_Pos (12U)
  12500. #define MDMA_CCR_BEX_Msk (0x1U << MDMA_CCR_BEX_Pos) /*!< 0x00001000 */
  12501. #define MDMA_CCR_BEX MDMA_CCR_BEX_Msk /*!< Byte Endianess eXchange */
  12502. #define MDMA_CCR_HEX_Pos (13U)
  12503. #define MDMA_CCR_HEX_Msk (0x1U << MDMA_CCR_HEX_Pos) /*!< 0x00002000 */
  12504. #define MDMA_CCR_HEX MDMA_CCR_HEX_Msk /*!< Half word Endianess eXchange */
  12505. #define MDMA_CCR_WEX_Pos (14U)
  12506. #define MDMA_CCR_WEX_Msk (0x1U << MDMA_CCR_WEX_Pos) /*!< 0x00004000 */
  12507. #define MDMA_CCR_WEX MDMA_CCR_WEX_Msk /*!< Word Endianess eXchange */
  12508. #define MDMA_CCR_SWRQ_Pos (16U)
  12509. #define MDMA_CCR_SWRQ_Msk (0x1U << MDMA_CCR_SWRQ_Pos) /*!< 0x00010000 */
  12510. #define MDMA_CCR_SWRQ MDMA_CCR_SWRQ_Msk /*!< SW ReQuest */
  12511. /******************** Bit definition for MDMA_CxTCR register ****************/
  12512. #define MDMA_CTCR_SINC_Pos (0U)
  12513. #define MDMA_CTCR_SINC_Msk (0x3U << MDMA_CTCR_SINC_Pos) /*!< 0x00000003 */
  12514. #define MDMA_CTCR_SINC MDMA_CTCR_SINC_Msk /*!< Source increment mode */
  12515. #define MDMA_CTCR_SINC_0 (0x1U << MDMA_CTCR_SINC_Pos) /*!< 0x00000001 */
  12516. #define MDMA_CTCR_SINC_1 (0x2U << MDMA_CTCR_SINC_Pos) /*!< 0x00000002 */
  12517. #define MDMA_CTCR_DINC_Pos (2U)
  12518. #define MDMA_CTCR_DINC_Msk (0x3U << MDMA_CTCR_DINC_Pos) /*!< 0x0000000C */
  12519. #define MDMA_CTCR_DINC MDMA_CTCR_DINC_Msk /*!< Source increment mode */
  12520. #define MDMA_CTCR_DINC_0 (0x1U << MDMA_CTCR_DINC_Pos) /*!< 0x00000004 */
  12521. #define MDMA_CTCR_DINC_1 (0x2U << MDMA_CTCR_DINC_Pos) /*!< 0x00000008 */
  12522. #define MDMA_CTCR_SSIZE_Pos (4U)
  12523. #define MDMA_CTCR_SSIZE_Msk (0x3U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000030 */
  12524. #define MDMA_CTCR_SSIZE MDMA_CTCR_SSIZE_Msk /*!< Source data size */
  12525. #define MDMA_CTCR_SSIZE_0 (0x1U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000010 */
  12526. #define MDMA_CTCR_SSIZE_1 (0x2U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000020 */
  12527. #define MDMA_CTCR_DSIZE_Pos (6U)
  12528. #define MDMA_CTCR_DSIZE_Msk (0x3U << MDMA_CTCR_DSIZE_Pos) /*!< 0x000000C0 */
  12529. #define MDMA_CTCR_DSIZE MDMA_CTCR_DSIZE_Msk /*!< Destination data size */
  12530. #define MDMA_CTCR_DSIZE_0 (0x1U << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000040 */
  12531. #define MDMA_CTCR_DSIZE_1 (0x2U << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000080 */
  12532. #define MDMA_CTCR_SINCOS_Pos (8U)
  12533. #define MDMA_CTCR_SINCOS_Msk (0x3U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000300 */
  12534. #define MDMA_CTCR_SINCOS MDMA_CTCR_SINCOS_Msk /*!< Source increment offset size */
  12535. #define MDMA_CTCR_SINCOS_0 (0x1U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000100 */
  12536. #define MDMA_CTCR_SINCOS_1 (0x2U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000200 */
  12537. #define MDMA_CTCR_DINCOS_Pos (10U)
  12538. #define MDMA_CTCR_DINCOS_Msk (0x3U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000C00 */
  12539. #define MDMA_CTCR_DINCOS MDMA_CTCR_DINCOS_Msk /*!< Destination increment offset size */
  12540. #define MDMA_CTCR_DINCOS_0 (0x1U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000400 */
  12541. #define MDMA_CTCR_DINCOS_1 (0x2U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000800 */
  12542. #define MDMA_CTCR_SBURST_Pos (12U)
  12543. #define MDMA_CTCR_SBURST_Msk (0x7U << MDMA_CTCR_SBURST_Pos) /*!< 0x00007000 */
  12544. #define MDMA_CTCR_SBURST MDMA_CTCR_SBURST_Msk /*!< Source burst transfer configuration */
  12545. #define MDMA_CTCR_SBURST_0 (0x1U << MDMA_CTCR_SBURST_Pos) /*!< 0x00001000 */
  12546. #define MDMA_CTCR_SBURST_1 (0x2U << MDMA_CTCR_SBURST_Pos) /*!< 0x00002000 */
  12547. #define MDMA_CTCR_SBURST_2 (0x3U << MDMA_CTCR_SBURST_Pos) /*!< 0x00003000 */
  12548. #define MDMA_CTCR_DBURST_Pos (15U)
  12549. #define MDMA_CTCR_DBURST_Msk (0x7U << MDMA_CTCR_DBURST_Pos) /*!< 0x00038000 */
  12550. #define MDMA_CTCR_DBURST MDMA_CTCR_DBURST_Msk /*!< Destination burst transfer configuration */
  12551. #define MDMA_CTCR_DBURST_0 (0x1U << MDMA_CTCR_DBURST_Pos) /*!< 0x00008000 */
  12552. #define MDMA_CTCR_DBURST_1 (0x2U << MDMA_CTCR_DBURST_Pos) /*!< 0x00010000 */
  12553. #define MDMA_CTCR_DBURST_2 (0x4U << MDMA_CTCR_DBURST_Pos) /*!< 0x00020000 */
  12554. #define MDMA_CTCR_TLEN_Pos (18U)
  12555. #define MDMA_CTCR_TLEN_Msk (0x7FU << MDMA_CTCR_TLEN_Pos) /*!< 0x01FC0000 */
  12556. #define MDMA_CTCR_TLEN MDMA_CTCR_TLEN_Msk /*!< buffer Transfer Length (number of bytes - 1) */
  12557. #define MDMA_CTCR_PKE_Pos (25U)
  12558. #define MDMA_CTCR_PKE_Msk (0x1U << MDMA_CTCR_PKE_Pos) /*!< 0x02000000 */
  12559. #define MDMA_CTCR_PKE MDMA_CTCR_PKE_Msk /*!< PacK Enable */
  12560. #define MDMA_CTCR_PAM_Pos (26U)
  12561. #define MDMA_CTCR_PAM_Msk (0x3U << MDMA_CTCR_PAM_Pos) /*!< 0x0C000000 */
  12562. #define MDMA_CTCR_PAM MDMA_CTCR_PAM_Msk /*!< Padding/Alignement Mode */
  12563. #define MDMA_CTCR_PAM_0 (0x1U << MDMA_CTCR_PAM_Pos) /*!< 0x4000000 */
  12564. #define MDMA_CTCR_PAM_1 (0x2U << MDMA_CTCR_PAM_Pos) /*!< 0x8000000 */
  12565. #define MDMA_CTCR_TRGM_Pos (28U)
  12566. #define MDMA_CTCR_TRGM_Msk (0x3U << MDMA_CTCR_TRGM_Pos) /*!< 0x30000000 */
  12567. #define MDMA_CTCR_TRGM MDMA_CTCR_TRGM_Msk /*!< Trigger Mode */
  12568. #define MDMA_CTCR_TRGM_0 (0x1U << MDMA_CTCR_TRGM_Pos) /*!< 0x10000000 */
  12569. #define MDMA_CTCR_TRGM_1 (0x2U << MDMA_CTCR_TRGM_Pos) /*!< 0x20000000 */
  12570. #define MDMA_CTCR_SWRM_Pos (30U)
  12571. #define MDMA_CTCR_SWRM_Msk (0x1U << MDMA_CTCR_SWRM_Pos) /*!< 0x40000000 */
  12572. #define MDMA_CTCR_SWRM MDMA_CTCR_SWRM_Msk /*!< SW Request Mode */
  12573. #define MDMA_CTCR_BWM_Pos (31U)
  12574. #define MDMA_CTCR_BWM_Msk (0x1U << MDMA_CTCR_BWM_Pos) /*!< 0x80000000 */
  12575. #define MDMA_CTCR_BWM MDMA_CTCR_BWM_Msk /*!< Bufferable Write Mode */
  12576. /******************** Bit definition for MDMA_CxBNDTR register ****************/
  12577. #define MDMA_CBNDTR_BNDT_Pos (0U)
  12578. #define MDMA_CBNDTR_BNDT_Msk (0x1FFFFU << MDMA_CBNDTR_BNDT_Pos) /*!< 0x0001FFFF */
  12579. #define MDMA_CBNDTR_BNDT MDMA_CBNDTR_BNDT_Msk /*!< Block Number of data bytes to transfer */
  12580. #define MDMA_CBNDTR_BRSUM_Pos (18U)
  12581. #define MDMA_CBNDTR_BRSUM_Msk (0x1U << MDMA_CBNDTR_BRSUM_Pos) /*!< 0x00040000 */
  12582. #define MDMA_CBNDTR_BRSUM MDMA_CBNDTR_BRSUM_Msk /*!< Block Repeat Source address Update Mode */
  12583. #define MDMA_CBNDTR_BRDUM_Pos (19U)
  12584. #define MDMA_CBNDTR_BRDUM_Msk (0x1U << MDMA_CBNDTR_BRDUM_Pos) /*!< 0x00080000 */
  12585. #define MDMA_CBNDTR_BRDUM MDMA_CBNDTR_BRDUM_Msk /*!< Block Repeat Destination address Update Mode */
  12586. #define MDMA_CBNDTR_BRC_Pos (20U)
  12587. #define MDMA_CBNDTR_BRC_Msk (0xFFFU << MDMA_CBNDTR_BRC_Pos) /*!< 0xFFF00000 */
  12588. #define MDMA_CBNDTR_BRC MDMA_CBNDTR_BRC_Msk /*!< Block Repeat Count */
  12589. /******************** Bit definition for MDMA_CxSAR register ****************/
  12590. #define MDMA_CSAR_SAR_Pos (0U)
  12591. #define MDMA_CSAR_SAR_Msk (0xFFFFFFFFU << MDMA_CSAR_SAR_Pos) /*!< 0xFFFFFFFF */
  12592. #define MDMA_CSAR_SAR MDMA_CSAR_SAR_Msk /*!< Source address */
  12593. /******************** Bit definition for MDMA_CxDAR register ****************/
  12594. #define MDMA_CDAR_DAR_Pos (0U)
  12595. #define MDMA_CDAR_DAR_Msk (0xFFFFFFFFU << MDMA_CDAR_DAR_Pos) /*!< 0xFFFFFFFF */
  12596. #define MDMA_CDAR_DAR MDMA_CDAR_DAR_Msk /*!< Destination address */
  12597. /******************** Bit definition for MDMA_CxBRUR ************************/
  12598. #define MDMA_CBRUR_SUV_Pos (0U)
  12599. #define MDMA_CBRUR_SUV_Msk (0xFFFFU << MDMA_CBRUR_SUV_Pos) /*!< 0x0000FFFF */
  12600. #define MDMA_CBRUR_SUV MDMA_CBRUR_SUV_Msk /*!< Source address Update Value */
  12601. #define MDMA_CBRUR_DUV_Pos (16U)
  12602. #define MDMA_CBRUR_DUV_Msk (0xFFFFU << MDMA_CBRUR_DUV_Pos) /*!< 0xFFFF0000 */
  12603. #define MDMA_CBRUR_DUV MDMA_CBRUR_DUV_Msk /*!< Destination address Update Value */
  12604. /******************** Bit definition for MDMA_CxLAR *************************/
  12605. #define MDMA_CLAR_LAR_Pos (0U)
  12606. #define MDMA_CLAR_LAR_Msk (0xFFFFFFFFU << MDMA_CLAR_LAR_Pos) /*!< 0xFFFFFFFF */
  12607. #define MDMA_CLAR_LAR MDMA_CLAR_LAR_Msk /*!< Link Address Register */
  12608. /******************** Bit definition for MDMA_CxTBR) ************************/
  12609. #define MDMA_CTBR_TSEL_Pos (0U)
  12610. #define MDMA_CTBR_TSEL_Msk (0xFFU << MDMA_CTBR_TSEL_Pos) /*!< 0x000000FF */
  12611. #define MDMA_CTBR_TSEL MDMA_CTBR_TSEL_Msk /*!< Trigger SELection */
  12612. #define MDMA_CTBR_SBUS_Pos (16U)
  12613. #define MDMA_CTBR_SBUS_Msk (0x1U << MDMA_CTBR_SBUS_Pos) /*!< 0x00010000 */
  12614. #define MDMA_CTBR_SBUS MDMA_CTBR_SBUS_Msk /*!< Source BUS select */
  12615. #define MDMA_CTBR_DBUS_Pos (17U)
  12616. #define MDMA_CTBR_DBUS_Msk (0x1U << MDMA_CTBR_DBUS_Pos) /*!< 0x00020000 */
  12617. #define MDMA_CTBR_DBUS MDMA_CTBR_DBUS_Msk /*!< Destination BUS select */
  12618. /******************** Bit definition for MDMA_CxMAR) ************************/
  12619. #define MDMA_CMAR_MAR_Pos (0U)
  12620. #define MDMA_CMAR_MAR_Msk (0xFFFFFFFFU << MDMA_CMAR_MAR_Pos) /*!< 0xFFFFFFFF */
  12621. #define MDMA_CMAR_MAR MDMA_CMAR_MAR_Msk /*!< Mask address */
  12622. /******************** Bit definition for MDMA_CxMDR) ************************/
  12623. #define MDMA_CMDR_MDR_Pos (0U)
  12624. #define MDMA_CMDR_MDR_Msk (0xFFFFFFFFU << MDMA_CMDR_MDR_Pos) /*!< 0xFFFFFFFF */
  12625. #define MDMA_CMDR_MDR MDMA_CMDR_MDR_Msk /*!< Mask Mask Data */
  12626. /******************************************************************************/
  12627. /* */
  12628. /* Operational Amplifier (OPAMP) */
  12629. /* */
  12630. /******************************************************************************/
  12631. /********************* Bit definition for OPAMPx_CSR register ***************/
  12632. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  12633. #define OPAMP_CSR_OPAMPxEN_Msk (0x1U << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  12634. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  12635. #define OPAMP_CSR_FORCEVP_Pos (1U)
  12636. #define OPAMP_CSR_FORCEVP_Msk (0x1U << OPAMP_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12637. #define OPAMP_CSR_FORCEVP OPAMP_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12638. #define OPAMP_CSR_VPSEL_Pos (2U)
  12639. #define OPAMP_CSR_VPSEL_Msk (0x3U << OPAMP_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12640. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12641. #define OPAMP_CSR_VPSEL_0 (0x1U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12642. #define OPAMP_CSR_VPSEL_1 (0x2U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12643. #define OPAMP_CSR_VMSEL_Pos (5U)
  12644. #define OPAMP_CSR_VMSEL_Msk (0x3U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12645. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  12646. #define OPAMP_CSR_VMSEL_0 (0x1U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12647. #define OPAMP_CSR_VMSEL_1 (0x2U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12648. #define OPAMP_CSR_OPAHSM_Pos (8U)
  12649. #define OPAMP_CSR_OPAHSM_Msk (0x1U << OPAMP_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12650. #define OPAMP_CSR_OPAHSM OPAMP_CSR_OPAHSM_Msk /*!< Operational amplifier high speed mode */
  12651. #define OPAMP_CSR_CALON_Pos (11U)
  12652. #define OPAMP_CSR_CALON_Msk (0x1U << OPAMP_CSR_CALON_Pos) /*!< 0x00000800 */
  12653. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  12654. #define OPAMP_CSR_CALSEL_Pos (12U)
  12655. #define OPAMP_CSR_CALSEL_Msk (0x3U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12656. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  12657. #define OPAMP_CSR_CALSEL_0 (0x1U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12658. #define OPAMP_CSR_CALSEL_1 (0x2U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12659. #define OPAMP_CSR_PGGAIN_Pos (14U)
  12660. #define OPAMP_CSR_PGGAIN_Msk (0xFU << OPAMP_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12661. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */
  12662. #define OPAMP_CSR_PGGAIN_0 (0x1U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12663. #define OPAMP_CSR_PGGAIN_1 (0x2U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12664. #define OPAMP_CSR_PGGAIN_2 (0x4U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12665. #define OPAMP_CSR_PGGAIN_3 (0x8U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12666. #define OPAMP_CSR_USERTRIM_Pos (18U)
  12667. #define OPAMP_CSR_USERTRIM_Msk (0x1U << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12668. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  12669. #define OPAMP_CSR_TSTREF_Pos (29U)
  12670. #define OPAMP_CSR_TSTREF_Msk (0x1U << OPAMP_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12671. #define OPAMP_CSR_TSTREF OPAMP_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12672. #define OPAMP_CSR_CALOUT_Pos (30U)
  12673. #define OPAMP_CSR_CALOUT_Msk (0x1U << OPAMP_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12674. #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier calibration output */
  12675. /********************* Bit definition for OPAMP1_CSR register ***************/
  12676. #define OPAMP1_CSR_OPAEN_Pos (0U)
  12677. #define OPAMP1_CSR_OPAEN_Msk (0x1U << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12678. #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */
  12679. #define OPAMP1_CSR_FORCEVP_Pos (1U)
  12680. #define OPAMP1_CSR_FORCEVP_Msk (0x1U << OPAMP1_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12681. #define OPAMP1_CSR_FORCEVP OPAMP1_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12682. #define OPAMP1_CSR_VPSEL_Pos (2U)
  12683. #define OPAMP1_CSR_VPSEL_Msk (0x3U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12684. #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12685. #define OPAMP1_CSR_VPSEL_0 (0x1U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12686. #define OPAMP1_CSR_VPSEL_1 (0x2U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12687. #define OPAMP1_CSR_VMSEL_Pos (5U)
  12688. #define OPAMP1_CSR_VMSEL_Msk (0x3U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12689. #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */
  12690. #define OPAMP1_CSR_VMSEL_0 (0x1U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12691. #define OPAMP1_CSR_VMSEL_1 (0x2U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12692. #define OPAMP1_CSR_OPAHSM_Pos (8U)
  12693. #define OPAMP1_CSR_OPAHSM_Msk (0x1U << OPAMP1_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12694. #define OPAMP1_CSR_OPAHSM OPAMP1_CSR_OPAHSM_Msk /*!< Operational amplifier1 high speed mode */
  12695. #define OPAMP1_CSR_CALON_Pos (11U)
  12696. #define OPAMP1_CSR_CALON_Msk (0x1U << OPAMP1_CSR_CALON_Pos) /*!< 0x00000800 */
  12697. #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */
  12698. #define OPAMP1_CSR_CALSEL_Pos (12U)
  12699. #define OPAMP1_CSR_CALSEL_Msk (0x3U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12700. #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */
  12701. #define OPAMP1_CSR_CALSEL_0 (0x1U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12702. #define OPAMP1_CSR_CALSEL_1 (0x2U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12703. #define OPAMP1_CSR_PGGAIN_Pos (14U)
  12704. #define OPAMP1_CSR_PGGAIN_Msk (0xFU << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12705. #define OPAMP1_CSR_PGGAIN OPAMP1_CSR_PGGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */
  12706. #define OPAMP1_CSR_PGGAIN_0 (0x1U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12707. #define OPAMP1_CSR_PGGAIN_1 (0x2U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12708. #define OPAMP1_CSR_PGGAIN_2 (0x4U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12709. #define OPAMP1_CSR_PGGAIN_3 (0x8U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12710. #define OPAMP1_CSR_USERTRIM_Pos (18U)
  12711. #define OPAMP1_CSR_USERTRIM_Msk (0x1U << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12712. #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */
  12713. #define OPAMP1_CSR_TSTREF_Pos (29U)
  12714. #define OPAMP1_CSR_TSTREF_Msk (0x1U << OPAMP1_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12715. #define OPAMP1_CSR_TSTREF OPAMP1_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12716. #define OPAMP1_CSR_CALOUT_Pos (30U)
  12717. #define OPAMP1_CSR_CALOUT_Msk (0x1U << OPAMP1_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12718. #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  12719. /********************* Bit definition for OPAMP2_CSR register ***************/
  12720. #define OPAMP2_CSR_OPAEN_Pos (0U)
  12721. #define OPAMP2_CSR_OPAEN_Msk (0x1U << OPAMP2_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12722. #define OPAMP2_CSR_OPAEN OPAMP2_CSR_OPAEN_Msk /*!< Operational amplifier2 Enable */
  12723. #define OPAMP2_CSR_FORCEVP_Pos (1U)
  12724. #define OPAMP2_CSR_FORCEVP_Msk (0x1U << OPAMP2_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12725. #define OPAMP2_CSR_FORCEVP OPAMP2_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12726. #define OPAMP2_CSR_VPSEL_Pos (2U)
  12727. #define OPAMP2_CSR_VPSEL_Msk (0x3U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12728. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12729. #define OPAMP2_CSR_VPSEL_0 (0x1U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12730. #define OPAMP2_CSR_VPSEL_1 (0x2U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12731. #define OPAMP2_CSR_VMSEL_Pos (5U)
  12732. #define OPAMP2_CSR_VMSEL_Msk (0x3U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12733. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  12734. #define OPAMP2_CSR_VMSEL_0 (0x1U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12735. #define OPAMP2_CSR_VMSEL_1 (0x2U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12736. #define OPAMP2_CSR_OPAHSM_Pos (8U)
  12737. #define OPAMP2_CSR_OPAHSM_Msk (0x1U << OPAMP2_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12738. #define OPAMP2_CSR_OPAHSM OPAMP2_CSR_OPAHSM_Msk /*!< Operational amplifier2 high speed mode */
  12739. #define OPAMP2_CSR_CALON_Pos (11U)
  12740. #define OPAMP2_CSR_CALON_Msk (0x1U << OPAMP2_CSR_CALON_Pos) /*!< 0x00000800 */
  12741. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  12742. #define OPAMP2_CSR_CALSEL_Pos (12U)
  12743. #define OPAMP2_CSR_CALSEL_Msk (0x3U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12744. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  12745. #define OPAMP2_CSR_CALSEL_0 (0x1U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12746. #define OPAMP2_CSR_CALSEL_1 (0x2U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12747. #define OPAMP2_CSR_PGGAIN_Pos (14U)
  12748. #define OPAMP2_CSR_PGGAIN_Msk (0xFU << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12749. #define OPAMP2_CSR_PGGAIN OPAMP2_CSR_PGGAIN_Msk /*!< Operational amplifier2 Programmable amplifier gain value */
  12750. #define OPAMP2_CSR_PGGAIN_0 (0x1U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12751. #define OPAMP2_CSR_PGGAIN_1 (0x2U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12752. #define OPAMP2_CSR_PGGAIN_2 (0x4U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12753. #define OPAMP2_CSR_PGGAIN_3 (0x8U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12754. #define OPAMP2_CSR_USERTRIM_Pos (18U)
  12755. #define OPAMP2_CSR_USERTRIM_Msk (0x1U << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12756. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  12757. #define OPAMP2_CSR_TSTREF_Pos (29U)
  12758. #define OPAMP2_CSR_TSTREF_Msk (0x1U << OPAMP2_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12759. #define OPAMP2_CSR_TSTREF OPAMP2_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12760. #define OPAMP2_CSR_CALOUT_Pos (30U)
  12761. #define OPAMP2_CSR_CALOUT_Msk (0x1U << OPAMP2_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12762. #define OPAMP2_CSR_CALOUT OPAMP2_CSR_CALOUT_Msk /*!< Operational amplifier2 calibration output */
  12763. /******************* Bit definition for OPAMP_OTR register ******************/
  12764. #define OPAMP_OTR_TRIMOFFSETN_Pos (0U)
  12765. #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12766. #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12767. #define OPAMP_OTR_TRIMOFFSETP_Pos (8U)
  12768. #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12769. #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12770. /******************* Bit definition for OPAMP1_OTR register ******************/
  12771. #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U)
  12772. #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12773. #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12774. #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U)
  12775. #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12776. #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12777. /******************* Bit definition for OPAMP2_OTR register ******************/
  12778. #define OPAMP2_OTR_TRIMOFFSETN_Pos (0U)
  12779. #define OPAMP2_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP2_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12780. #define OPAMP2_OTR_TRIMOFFSETN OPAMP2_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12781. #define OPAMP2_OTR_TRIMOFFSETP_Pos (8U)
  12782. #define OPAMP2_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP2_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12783. #define OPAMP2_OTR_TRIMOFFSETP OPAMP2_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12784. /******************* Bit definition for OPAMP_HSOTR register ****************/
  12785. #define OPAMP_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12786. #define OPAMP_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12787. #define OPAMP_HSOTR_TRIMHSOFFSETN OPAMP_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12788. #define OPAMP_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12789. #define OPAMP_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12790. #define OPAMP_HSOTR_TRIMHSOFFSETP OPAMP_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12791. /******************* Bit definition for OPAMP1_HSOTR register ****************/
  12792. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12793. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP1_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12794. #define OPAMP1_HSOTR_TRIMHSOFFSETN OPAMP1_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12795. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12796. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP1_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12797. #define OPAMP1_HSOTR_TRIMHSOFFSETP OPAMP1_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12798. /******************* Bit definition for OPAMP2_HSOTR register ****************/
  12799. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12800. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP2_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12801. #define OPAMP2_HSOTR_TRIMHSOFFSETN OPAMP2_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12802. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12803. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP2_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12804. #define OPAMP2_HSOTR_TRIMHSOFFSETP OPAMP2_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12805. /******************************************************************************/
  12806. /* */
  12807. /* Power Control */
  12808. /* */
  12809. /******************************************************************************/
  12810. /******************** Bit definition for PWR_CR1 register ********************/
  12811. #define PWR_CR1_ALS_Pos (17U)
  12812. #define PWR_CR1_ALS_Msk (0x3U << PWR_CR1_ALS_Pos) /*!< 0x00060000 */
  12813. #define PWR_CR1_ALS PWR_CR1_ALS_Msk /*!< Analog Voltage Detector level selection */
  12814. #define PWR_CR1_ALS_0 (0x1U << PWR_CR1_ALS_Pos) /*!< 0x00020000 */
  12815. #define PWR_CR1_ALS_1 (0x2U << PWR_CR1_ALS_Pos) /*!< 0x00040000 */
  12816. #define PWR_CR1_AVDEN_Pos (16U)
  12817. #define PWR_CR1_AVDEN_Msk (0x1U << PWR_CR1_AVDEN_Pos) /*!< 0x00010000 */
  12818. #define PWR_CR1_AVDEN PWR_CR1_AVDEN_Msk /*!< Analog Voltage Detector Enable */
  12819. #define PWR_CR1_SVOS_Pos (14U)
  12820. #define PWR_CR1_SVOS_Msk (0x3U << PWR_CR1_SVOS_Pos) /*!< 0x0000C000 */
  12821. #define PWR_CR1_SVOS PWR_CR1_SVOS_Msk /*!< System STOP mode Voltage Scaling selection. */
  12822. #define PWR_CR1_SVOS_0 (0x1U << PWR_CR1_SVOS_Pos) /*!< 0x00004000 */
  12823. #define PWR_CR1_SVOS_1 (0x2U << PWR_CR1_SVOS_Pos) /*!< 0x00008000 */
  12824. #define PWR_CR1_RLPSN_Pos (10U)
  12825. #define PWR_CR1_RLPSN_Msk (0x1U << PWR_CR1_RLPSN_Pos) /*!< 0x00000400 */
  12826. #define PWR_CR1_RLPSN PWR_CR1_RLPSN_Msk /*!< RAM low power mode disable in STOP. */
  12827. #define PWR_CR1_FLPS_Pos (9U)
  12828. #define PWR_CR1_FLPS_Msk (0x1U << PWR_CR1_FLPS_Pos) /*!< 0x00000200 */
  12829. #define PWR_CR1_FLPS PWR_CR1_FLPS_Msk /*!< Flash low power mode in DSTOP */
  12830. #define PWR_CR1_DBP_Pos (8U)
  12831. #define PWR_CR1_DBP_Msk (0x1U << PWR_CR1_DBP_Pos) /*!< 0x00000100 */
  12832. #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */
  12833. #define PWR_CR1_PLS_Pos (5U)
  12834. #define PWR_CR1_PLS_Msk (0x7U << PWR_CR1_PLS_Pos) /*!< 0x000000E0 */
  12835. #define PWR_CR1_PLS PWR_CR1_PLS_Msk /*!< Programmable Voltage Detector level selection */
  12836. #define PWR_CR1_PLS_0 (0x1U << PWR_CR1_PLS_Pos) /*!< 0x00000020 */
  12837. #define PWR_CR1_PLS_1 (0x2U << PWR_CR1_PLS_Pos) /*!< 0x00000040 */
  12838. #define PWR_CR1_PLS_2 (0x4U << PWR_CR1_PLS_Pos) /*!< 0x00000080 */
  12839. #define PWR_CR1_PVDEN_Pos (4U)
  12840. #define PWR_CR1_PVDEN_Msk (0x1U << PWR_CR1_PVDEN_Pos) /*!< 0x00000010 */
  12841. #define PWR_CR1_PVDEN PWR_CR1_PVDEN_Msk /*!< Programmable Voltage detector enable. */
  12842. #define PWR_CR1_LPDS_Pos (0U)
  12843. #define PWR_CR1_LPDS_Msk (0x1U << PWR_CR1_LPDS_Pos) /*!< 0x00000001 */
  12844. #define PWR_CR1_LPDS PWR_CR1_LPDS_Msk /*!< Low Power Deepsleep with SVOS3 */
  12845. /*!< PVD level configuration */
  12846. #define PWR_CR1_PLS_LEV0 ((uint32_t)0x00000000U) /*!< PVD level 0 */
  12847. #define PWR_CR1_PLS_LEV1_Pos (5U)
  12848. #define PWR_CR1_PLS_LEV1_Msk (0x1U << PWR_CR1_PLS_LEV1_Pos) /*!< 0x00000020 */
  12849. #define PWR_CR1_PLS_LEV1 PWR_CR1_PLS_LEV1_Msk /*!< PVD level 1 */
  12850. #define PWR_CR1_PLS_LEV2_Pos (6U)
  12851. #define PWR_CR1_PLS_LEV2_Msk (0x1U << PWR_CR1_PLS_LEV2_Pos) /*!< 0x00000040 */
  12852. #define PWR_CR1_PLS_LEV2 PWR_CR1_PLS_LEV2_Msk /*!< PVD level 2 */
  12853. #define PWR_CR1_PLS_LEV3_Pos (5U)
  12854. #define PWR_CR1_PLS_LEV3_Msk (0x3U << PWR_CR1_PLS_LEV3_Pos) /*!< 0x00000060 */
  12855. #define PWR_CR1_PLS_LEV3 PWR_CR1_PLS_LEV3_Msk /*!< PVD level 3 */
  12856. #define PWR_CR1_PLS_LEV4_Pos (7U)
  12857. #define PWR_CR1_PLS_LEV4_Msk (0x1U << PWR_CR1_PLS_LEV4_Pos) /*!< 0x00000080 */
  12858. #define PWR_CR1_PLS_LEV4 PWR_CR1_PLS_LEV4_Msk /*!< PVD level 4 */
  12859. #define PWR_CR1_PLS_LEV5_Pos (5U)
  12860. #define PWR_CR1_PLS_LEV5_Msk (0x5U << PWR_CR1_PLS_LEV5_Pos) /*!< 0x000000A0 */
  12861. #define PWR_CR1_PLS_LEV5 PWR_CR1_PLS_LEV5_Msk /*!< PVD level 5 */
  12862. #define PWR_CR1_PLS_LEV6_Pos (6U)
  12863. #define PWR_CR1_PLS_LEV6_Msk (0x3U << PWR_CR1_PLS_LEV6_Pos) /*!< 0x000000C0 */
  12864. #define PWR_CR1_PLS_LEV6 PWR_CR1_PLS_LEV6_Msk /*!< PVD level 6 */
  12865. #define PWR_CR1_PLS_LEV7_Pos (5U)
  12866. #define PWR_CR1_PLS_LEV7_Msk (0x7U << PWR_CR1_PLS_LEV7_Pos) /*!< 0x000000E0 */
  12867. #define PWR_CR1_PLS_LEV7 PWR_CR1_PLS_LEV7_Msk /*!< PVD level 7 */
  12868. /*!< AVD level configuration */
  12869. #define PWR_CR1_ALS_LEV0 ((uint32_t)0x00000000U) /*!< AVD level 0 */
  12870. #define PWR_CR1_ALS_LEV1_Pos (17U)
  12871. #define PWR_CR1_ALS_LEV1_Msk (0x1U << PWR_CR1_ALS_LEV1_Pos) /*!< 0x00020000 */
  12872. #define PWR_CR1_ALS_LEV1 PWR_CR1_ALS_LEV1_Msk /*!< AVD level 1 */
  12873. #define PWR_CR1_ALS_LEV2_Pos (18U)
  12874. #define PWR_CR1_ALS_LEV2_Msk (0x1U << PWR_CR1_ALS_LEV2_Pos) /*!< 0x00040000 */
  12875. #define PWR_CR1_ALS_LEV2 PWR_CR1_ALS_LEV2_Msk /*!< AVD level 2 */
  12876. #define PWR_CR1_ALS_LEV3_Pos (17U)
  12877. #define PWR_CR1_ALS_LEV3_Msk (0x3U << PWR_CR1_ALS_LEV3_Pos) /*!< 0x00060000 */
  12878. #define PWR_CR1_ALS_LEV3 PWR_CR1_ALS_LEV3_Msk /*!< AVD level 3 */
  12879. /******************** Bit definition for PWR_CSR1 register ********************/
  12880. #define PWR_CSR1_AVDO_Pos (16U)
  12881. #define PWR_CSR1_AVDO_Msk (0x1U << PWR_CSR1_AVDO_Pos) /*!< 0x00010000 */
  12882. #define PWR_CSR1_AVDO PWR_CSR1_AVDO_Msk /*!< Analog Voltage Detect Output */
  12883. #define PWR_CSR1_ACTVOS_Pos (14U)
  12884. #define PWR_CSR1_ACTVOS_Msk (0x3U << PWR_CSR1_ACTVOS_Pos) /*!< 0x0000C000 */
  12885. #define PWR_CSR1_ACTVOS PWR_CSR1_ACTVOS_Msk /*!< Current actual used VOS for VDD11 Voltage Scaling */
  12886. #define PWR_CSR1_ACTVOS_0 (0x1U << PWR_CSR1_ACTVOS_Pos) /*!< 0x00004000 */
  12887. #define PWR_CSR1_ACTVOS_1 (0x2U << PWR_CSR1_ACTVOS_Pos) /*!< 0x00008000 */
  12888. #define PWR_CSR1_ACTVOSRDY_Pos (13U)
  12889. #define PWR_CSR1_ACTVOSRDY_Msk (0x1U << PWR_CSR1_ACTVOSRDY_Pos) /*!< 0x00002000 */
  12890. #define PWR_CSR1_ACTVOSRDY PWR_CSR1_ACTVOSRDY_Msk /*!< Ready bit for current actual used VOS for VDD11 Voltage Scaling */
  12891. #define PWR_CSR1_PVDO_Pos (4U)
  12892. #define PWR_CSR1_PVDO_Msk (0x1U << PWR_CSR1_PVDO_Pos) /*!< 0x00000010 */
  12893. #define PWR_CSR1_PVDO PWR_CSR1_PVDO_Msk /*!< Programmable Voltage Detect Output */
  12894. /******************** Bit definition for PWR_CR2 register ********************/
  12895. #define PWR_CR2_TEMPH_Pos (23U)
  12896. #define PWR_CR2_TEMPH_Msk (0x1U << PWR_CR2_TEMPH_Pos) /*!< 0x00800000 */
  12897. #define PWR_CR2_TEMPH PWR_CR2_TEMPH_Msk /*!< Monitored temperature level above high threshold */
  12898. #define PWR_CR2_TEMPL_Pos (22U)
  12899. #define PWR_CR2_TEMPL_Msk (0x1U << PWR_CR2_TEMPL_Pos) /*!< 0x00400000 */
  12900. #define PWR_CR2_TEMPL PWR_CR2_TEMPL_Msk /*!< Monitored temperature level above low threshold */
  12901. #define PWR_CR2_VBATH_Pos (21U)
  12902. #define PWR_CR2_VBATH_Msk (0x1U << PWR_CR2_VBATH_Pos) /*!< 0x00200000 */
  12903. #define PWR_CR2_VBATH PWR_CR2_VBATH_Msk /*!< Monitored VBAT level above high threshold */
  12904. #define PWR_CR2_VBATL_Pos (20U)
  12905. #define PWR_CR2_VBATL_Msk (0x1U << PWR_CR2_VBATL_Pos) /*!< 0x00100000 */
  12906. #define PWR_CR2_VBATL PWR_CR2_VBATL_Msk /*!< Monitored VBAT level above low threshold */
  12907. #define PWR_CR2_BRRDY_Pos (16U)
  12908. #define PWR_CR2_BRRDY_Msk (0x1U << PWR_CR2_BRRDY_Pos) /*!< 0x00010000 */
  12909. #define PWR_CR2_BRRDY PWR_CR2_BRRDY_Msk /*!< Backup regulator ready */
  12910. #define PWR_CR2_MONEN_Pos (4U)
  12911. #define PWR_CR2_MONEN_Msk (0x1U << PWR_CR2_MONEN_Pos) /*!< 0x00000010 */
  12912. #define PWR_CR2_MONEN PWR_CR2_MONEN_Msk /*!< VBAT and temperature monitoring enable */
  12913. #define PWR_CR2_BREN_Pos (0U)
  12914. #define PWR_CR2_BREN_Msk (0x1U << PWR_CR2_BREN_Pos) /*!< 0x00000001 */
  12915. #define PWR_CR2_BREN PWR_CR2_BREN_Msk /*!< Backup regulator enable */
  12916. /******************** Bit definition for PWR_CR3 register ********************/
  12917. #define PWR_CR3_USB33RDY_Pos (26U)
  12918. #define PWR_CR3_USB33RDY_Msk (0x1U << PWR_CR3_USB33RDY_Pos) /*!< 0x04000000 */
  12919. #define PWR_CR3_USB33RDY PWR_CR3_USB33RDY_Msk /*!< USB supply ready */
  12920. #define PWR_CR3_USBREGEN_Pos (25U)
  12921. #define PWR_CR3_USBREGEN_Msk (0x1U << PWR_CR3_USBREGEN_Pos) /*!< 0x02000000 */
  12922. #define PWR_CR3_USBREGEN PWR_CR3_USBREGEN_Msk /*!< USB regulator enable */
  12923. #define PWR_CR3_USB33DEN_Pos (24U)
  12924. #define PWR_CR3_USB33DEN_Msk (0x1U << PWR_CR3_USB33DEN_Pos) /*!< 0x01000000 */
  12925. #define PWR_CR3_USB33DEN PWR_CR3_USB33DEN_Msk /*!< VDD33_USB voltage level detector enable */
  12926. #define PWR_CR3_VBRS_Pos (9U)
  12927. #define PWR_CR3_VBRS_Msk (0x1U << PWR_CR3_VBRS_Pos) /*!< 0x00000200 */
  12928. #define PWR_CR3_VBRS PWR_CR3_VBRS_Msk /*!< VBAT charging resistor selection */
  12929. #define PWR_CR3_VBE_Pos (8U)
  12930. #define PWR_CR3_VBE_Msk (0x1U << PWR_CR3_VBE_Pos) /*!< 0x00000100 */
  12931. #define PWR_CR3_VBE PWR_CR3_VBE_Msk /*!< VBAT charging enable */
  12932. #define PWR_CR3_SCUEN_Pos (2U)
  12933. #define PWR_CR3_SCUEN_Msk (0x1U << PWR_CR3_SCUEN_Pos) /*!< 0x00000004 */
  12934. #define PWR_CR3_SCUEN PWR_CR3_SCUEN_Msk /*!< Supply configuration update enable */
  12935. #define PWR_CR3_LDOEN_Pos (1U)
  12936. #define PWR_CR3_LDOEN_Msk (0x1U << PWR_CR3_LDOEN_Pos) /*!< 0x00000002 */
  12937. #define PWR_CR3_LDOEN PWR_CR3_LDOEN_Msk /*!< Low Drop Output regulator enable */
  12938. #define PWR_CR3_BYPASS_Pos (0U)
  12939. #define PWR_CR3_BYPASS_Msk (0x1U << PWR_CR3_BYPASS_Pos) /*!< 0x00000001 */
  12940. #define PWR_CR3_BYPASS PWR_CR3_BYPASS_Msk /*!< Power Management Unit bypass */
  12941. /******************** Bit definition for PWR_CPUCR register ********************/
  12942. #define PWR_CPUCR_RUN_D3_Pos (11U)
  12943. #define PWR_CPUCR_RUN_D3_Msk (0x1U << PWR_CPUCR_RUN_D3_Pos) /*!< 0x00000800 */
  12944. #define PWR_CPUCR_RUN_D3 PWR_CPUCR_RUN_D3_Msk /*!< Keep system D3 domain in RUN mode regardless of the CPU sub-systems modes */
  12945. #define PWR_CPUCR_CSSF_Pos (9U)
  12946. #define PWR_CPUCR_CSSF_Msk (0x1U << PWR_CPUCR_CSSF_Pos) /*!< 0x00000200 */
  12947. #define PWR_CPUCR_CSSF PWR_CPUCR_CSSF_Msk /*!< Clear D1 domain CPU STANDBY, STOP and HOLD flags */
  12948. #define PWR_CPUCR_SBF_D2_Pos (8U)
  12949. #define PWR_CPUCR_SBF_D2_Msk (0x1U << PWR_CPUCR_SBF_D2_Pos) /*!< 0x00000100 */
  12950. #define PWR_CPUCR_SBF_D2 PWR_CPUCR_SBF_D2_Msk /*!< D2 domain DSTANDBY Flag */
  12951. #define PWR_CPUCR_SBF_D1_Pos (7U)
  12952. #define PWR_CPUCR_SBF_D1_Msk (0x1U << PWR_CPUCR_SBF_D1_Pos) /*!< 0x00000080 */
  12953. #define PWR_CPUCR_SBF_D1 PWR_CPUCR_SBF_D1_Msk /*!< D1 domain DSTANDBY Flag */
  12954. #define PWR_CPUCR_SBF_Pos (6U)
  12955. #define PWR_CPUCR_SBF_Msk (0x1U << PWR_CPUCR_SBF_Pos) /*!< 0x00000040 */
  12956. #define PWR_CPUCR_SBF PWR_CPUCR_SBF_Msk /*!< System STANDBY Flag */
  12957. #define PWR_CPUCR_STOPF_Pos (5U)
  12958. #define PWR_CPUCR_STOPF_Msk (0x1U << PWR_CPUCR_STOPF_Pos) /*!< 0x00000020 */
  12959. #define PWR_CPUCR_STOPF PWR_CPUCR_STOPF_Msk /*!< STOP Flag */
  12960. #define PWR_CPUCR_PDDS_D3_Pos (2U)
  12961. #define PWR_CPUCR_PDDS_D3_Msk (0x1U << PWR_CPUCR_PDDS_D3_Pos) /*!< 0x00000004 */
  12962. #define PWR_CPUCR_PDDS_D3 PWR_CPUCR_PDDS_D3_Msk /*!< System D3 domain Power Down Deepsleep */
  12963. #define PWR_CPUCR_PDDS_D2_Pos (1U)
  12964. #define PWR_CPUCR_PDDS_D2_Msk (0x1U << PWR_CPUCR_PDDS_D2_Pos) /*!< 0x00000002 */
  12965. #define PWR_CPUCR_PDDS_D2 PWR_CPUCR_PDDS_D2_Msk /*!< D2 domain Power Down Deepsleep */
  12966. #define PWR_CPUCR_PDDS_D1_Pos (0U)
  12967. #define PWR_CPUCR_PDDS_D1_Msk (0x1U << PWR_CPUCR_PDDS_D1_Pos) /*!< 0x00000001 */
  12968. #define PWR_CPUCR_PDDS_D1 PWR_CPUCR_PDDS_D1_Msk /*!< D1 domain Power Down Deepsleep selection */
  12969. /******************** Bit definition for PWR_D3CR register ********************/
  12970. #define PWR_D3CR_VOS_Pos (14U)
  12971. #define PWR_D3CR_VOS_Msk (0x3U << PWR_D3CR_VOS_Pos) /*!< 0x0000C000 */
  12972. #define PWR_D3CR_VOS PWR_D3CR_VOS_Msk /*!< Voltage Scaling selection according performance */
  12973. #define PWR_D3CR_VOS_0 (0x1U << PWR_D3CR_VOS_Pos) /*!< 0x00004000 */
  12974. #define PWR_D3CR_VOS_1 (0x2U << PWR_D3CR_VOS_Pos) /*!< 0x00008000 */
  12975. #define PWR_D3CR_VOSRDY_Pos (13U)
  12976. #define PWR_D3CR_VOSRDY_Msk (0x1U << PWR_D3CR_VOSRDY_Pos) /*!< 0x00002000 */
  12977. #define PWR_D3CR_VOSRDY PWR_D3CR_VOSRDY_Msk /*!< VOS Ready bit for VDD11 Voltage Scaling output selection */
  12978. /******************** Bit definition for PWR_WKUPCR register ********************/
  12979. #define PWR_WKUPCR_WKUPC6_Pos (5U)
  12980. #define PWR_WKUPCR_WKUPC6_Msk (0x1U << PWR_WKUPCR_WKUPC6_Pos) /*!< 0x00000020 */
  12981. #define PWR_WKUPCR_WKUPC6 PWR_WKUPCR_WKUPC6_Msk /*!< Clear Wakeup Pin Flag 6 */
  12982. #define PWR_WKUPCR_WKUPC5_Pos (4U)
  12983. #define PWR_WKUPCR_WKUPC5_Msk (0x1U << PWR_WKUPCR_WKUPC5_Pos) /*!< 0x00000010 */
  12984. #define PWR_WKUPCR_WKUPC5 PWR_WKUPCR_WKUPC5_Msk /*!< Clear Wakeup Pin Flag 5 */
  12985. #define PWR_WKUPCR_WKUPC4_Pos (3U)
  12986. #define PWR_WKUPCR_WKUPC4_Msk (0x1U << PWR_WKUPCR_WKUPC4_Pos) /*!< 0x00000008 */
  12987. #define PWR_WKUPCR_WKUPC4 PWR_WKUPCR_WKUPC4_Msk /*!< Clear Wakeup Pin Flag 4 */
  12988. #define PWR_WKUPCR_WKUPC3_Pos (2U)
  12989. #define PWR_WKUPCR_WKUPC3_Msk (0x1U << PWR_WKUPCR_WKUPC3_Pos) /*!< 0x00000004 */
  12990. #define PWR_WKUPCR_WKUPC3 PWR_WKUPCR_WKUPC3_Msk /*!< Clear Wakeup Pin Flag 3 */
  12991. #define PWR_WKUPCR_WKUPC2_Pos (1U)
  12992. #define PWR_WKUPCR_WKUPC2_Msk (0x1U << PWR_WKUPCR_WKUPC2_Pos) /*!< 0x00000002 */
  12993. #define PWR_WKUPCR_WKUPC2 PWR_WKUPCR_WKUPC2_Msk /*!< Clear Wakeup Pin Flag 2 */
  12994. #define PWR_WKUPCR_WKUPC1_Pos (0U)
  12995. #define PWR_WKUPCR_WKUPC1_Msk (0x1U << PWR_WKUPCR_WKUPC1_Pos) /*!< 0x00000001 */
  12996. #define PWR_WKUPCR_WKUPC1 PWR_WKUPCR_WKUPC1_Msk /*!< Clear Wakeup Pin Flag 1 */
  12997. /******************** Bit definition for PWR_WKUPFR register ********************/
  12998. #define PWR_WKUPFR_WKUPF6_Pos (5U)
  12999. #define PWR_WKUPFR_WKUPF6_Msk (0x1U << PWR_WKUPFR_WKUPF6_Pos) /*!< 0x00000020 */
  13000. #define PWR_WKUPFR_WKUPF6 PWR_WKUPFR_WKUPF6_Msk /*!< Wakeup Pin Flag 6 */
  13001. #define PWR_WKUPFR_WKUPF5_Pos (4U)
  13002. #define PWR_WKUPFR_WKUPF5_Msk (0x1U << PWR_WKUPFR_WKUPF5_Pos) /*!< 0x00000010 */
  13003. #define PWR_WKUPFR_WKUPF5 PWR_WKUPFR_WKUPF5_Msk /*!< Wakeup Pin Flag 5 */
  13004. #define PWR_WKUPFR_WKUPF4_Pos (3U)
  13005. #define PWR_WKUPFR_WKUPF4_Msk (0x1U << PWR_WKUPFR_WKUPF4_Pos) /*!< 0x00000008 */
  13006. #define PWR_WKUPFR_WKUPF4 PWR_WKUPFR_WKUPF4_Msk /*!< Wakeup Pin Flag 4 */
  13007. #define PWR_WKUPFR_WKUPF3_Pos (2U)
  13008. #define PWR_WKUPFR_WKUPF3_Msk (0x1U << PWR_WKUPFR_WKUPF3_Pos) /*!< 0x00000004 */
  13009. #define PWR_WKUPFR_WKUPF3 PWR_WKUPFR_WKUPF3_Msk /*!< Wakeup Pin Flag 3 */
  13010. #define PWR_WKUPFR_WKUPF2_Pos (1U)
  13011. #define PWR_WKUPFR_WKUPF2_Msk (0x1U << PWR_WKUPFR_WKUPF2_Pos) /*!< 0x00000002 */
  13012. #define PWR_WKUPFR_WKUPF2 PWR_WKUPFR_WKUPF2_Msk /*!< Wakeup Pin Flag 2 */
  13013. #define PWR_WKUPFR_WKUPF1_Pos (0U)
  13014. #define PWR_WKUPFR_WKUPF1_Msk (0x1U << PWR_WKUPFR_WKUPF1_Pos) /*!< 0x00000001 */
  13015. #define PWR_WKUPFR_WKUPF1 PWR_WKUPFR_WKUPF1_Msk /*!< Wakeup Pin Flag 1 */
  13016. /******************** Bit definition for PWR_WKUPEPR register ********************/
  13017. #define PWR_WKUPEPR_WKUPPUPD6_Pos (26U)
  13018. #define PWR_WKUPEPR_WKUPPUPD6_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x0C000000 */
  13019. #define PWR_WKUPEPR_WKUPPUPD6 PWR_WKUPEPR_WKUPPUPD6_Msk /*!< Wakeup Pin pull configuration for WKUP6 */
  13020. #define PWR_WKUPEPR_WKUPPUPD6_0 (0x1U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x04000000 */
  13021. #define PWR_WKUPEPR_WKUPPUPD6_1 (0x2U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x08000000 */
  13022. #define PWR_WKUPEPR_WKUPPUPD5_Pos (24U)
  13023. #define PWR_WKUPEPR_WKUPPUPD5_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x03000000 */
  13024. #define PWR_WKUPEPR_WKUPPUPD5 PWR_WKUPEPR_WKUPPUPD5_Msk /*!< Wakeup Pin pull configuration for WKUP5 */
  13025. #define PWR_WKUPEPR_WKUPPUPD5_0 (0x1U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x01000000 */
  13026. #define PWR_WKUPEPR_WKUPPUPD5_1 (0x2U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x02000000 */
  13027. #define PWR_WKUPEPR_WKUPPUPD4_Pos (22U)
  13028. #define PWR_WKUPEPR_WKUPPUPD4_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00C00000 */
  13029. #define PWR_WKUPEPR_WKUPPUPD4 PWR_WKUPEPR_WKUPPUPD4_Msk /*!< Wakeup Pin pull configuration for WKUP4 */
  13030. #define PWR_WKUPEPR_WKUPPUPD4_0 (0x1U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00400000 */
  13031. #define PWR_WKUPEPR_WKUPPUPD4_1 (0x2U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00800000 */
  13032. #define PWR_WKUPEPR_WKUPPUPD3_Pos (20U)
  13033. #define PWR_WKUPEPR_WKUPPUPD3_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00300000 */
  13034. #define PWR_WKUPEPR_WKUPPUPD3 PWR_WKUPEPR_WKUPPUPD3_Msk /*!< Wakeup Pin pull configuration for WKUP3 */
  13035. #define PWR_WKUPEPR_WKUPPUPD3_0 (0x1U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00100000 */
  13036. #define PWR_WKUPEPR_WKUPPUPD3_1 (0x2U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00200000 */
  13037. #define PWR_WKUPEPR_WKUPPUPD2_Pos (18U)
  13038. #define PWR_WKUPEPR_WKUPPUPD2_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x000C0000 */
  13039. #define PWR_WKUPEPR_WKUPPUPD2 PWR_WKUPEPR_WKUPPUPD2_Msk /*!< Wakeup Pin pull configuration for WKUP2 */
  13040. #define PWR_WKUPEPR_WKUPPUPD2_0 (0x1U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00040000 */
  13041. #define PWR_WKUPEPR_WKUPPUPD2_1 (0x2U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00080000 */
  13042. #define PWR_WKUPEPR_WKUPPUPD1_Pos (16U)
  13043. #define PWR_WKUPEPR_WKUPPUPD1_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00030000 */
  13044. #define PWR_WKUPEPR_WKUPPUPD1 PWR_WKUPEPR_WKUPPUPD1_Msk /*!< Wakeup Pin pull configuration for WKUP1 */
  13045. #define PWR_WKUPEPR_WKUPPUPD1_0 (0x1U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00010000 */
  13046. #define PWR_WKUPEPR_WKUPPUPD1_1 (0x2U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00020000 */
  13047. #define PWR_WKUPEPR_WKUPP_6 ((uint32_t)0x00002000U) /*!< Wakeup Pin Polarity for WKUP6 */
  13048. #define PWR_WKUPEPR_WKUPP_5 ((uint32_t)0x00001000U) /*!< Wakeup Pin Polarity for WKUP5 */
  13049. #define PWR_WKUPEPR_WKUPP_4 ((uint32_t)0x00000800U) /*!< Wakeup Pin Polarity for WKUP4 */
  13050. #define PWR_WKUPEPR_WKUPP_3 ((uint32_t)0x00000400U) /*!< Wakeup Pin Polarity for WKUP3 */
  13051. #define PWR_WKUPEPR_WKUPP_2 ((uint32_t)0x00000200U) /*!< Wakeup Pin Polarity for WKUP2 */
  13052. #define PWR_WKUPEPR_WKUPP_1 ((uint32_t)0x00000100U) /*!< Wakeup Pin Polarity for WKUP1 */
  13053. #define PWR_WKUPEPR_WKUPEN_6 ((uint32_t)0x00000020U) /*!< Enable Wakeup Pin WKUP6 */
  13054. #define PWR_WKUPEPR_WKUPEN_5 ((uint32_t)0x00000010U) /*!< Enable Wakeup Pin WKUP5 */
  13055. #define PWR_WKUPEPR_WKUPEN_4 ((uint32_t)0x00000008U) /*!< Enable Wakeup Pin WKUP4 */
  13056. #define PWR_WKUPEPR_WKUPEN_3 ((uint32_t)0x00000004U) /*!< Enable Wakeup Pin WKUP3 */
  13057. #define PWR_WKUPEPR_WKUPEN_2 ((uint32_t)0x00000002U) /*!< Enable Wakeup Pin WKUP2 */
  13058. #define PWR_WKUPEPR_WKUPEN_1 ((uint32_t)0x00000001U) /*!< Enable Wakeup Pin WKUP1 */
  13059. /******************************************************************************/
  13060. /* */
  13061. /* Reset and Clock Control */
  13062. /* */
  13063. /******************************************************************************/
  13064. /******************** Bit definition for RCC_CR register ********************/
  13065. #define RCC_CR_HSION_Pos (0U)
  13066. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  13067. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */
  13068. #define RCC_CR_HSIKERON_Pos (1U)
  13069. #define RCC_CR_HSIKERON_Msk (0x1U << RCC_CR_HSIKERON_Pos) /*!< 0x00000002 */
  13070. #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed clock enable for some IPs Kernel */
  13071. #define RCC_CR_HSIRDY_Pos (2U)
  13072. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000004 */
  13073. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */
  13074. #define RCC_CR_HSIDIV_Pos (3U)
  13075. #define RCC_CR_HSIDIV_Msk (0x3U << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  13076. #define RCC_CR_HSIDIV RCC_CR_HSIDIV_Msk /*!< Internal High Speed clock divider selection */
  13077. #define RCC_CR_HSIDIV_1 (0x0U << RCC_CR_HSIDIV_Pos) /*!< 0x00000000 */
  13078. #define RCC_CR_HSIDIV_2 (0x1U << RCC_CR_HSIDIV_Pos) /*!< 0x00000008 */
  13079. #define RCC_CR_HSIDIV_4 (0x2U << RCC_CR_HSIDIV_Pos) /*!< 0x00000010 */
  13080. #define RCC_CR_HSIDIV_8 (0x3U << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  13081. #define RCC_CR_HSIDIVF_Pos (5U)
  13082. #define RCC_CR_HSIDIVF_Msk (0x1U << RCC_CR_HSIDIVF_Pos) /*!< 0x00000020 */
  13083. #define RCC_CR_HSIDIVF RCC_CR_HSIDIVF_Msk /*!< HSI Divider flag */
  13084. #define RCC_CR_CSION_Pos (7U)
  13085. #define RCC_CR_CSION_Msk (0x1U << RCC_CR_CSION_Pos) /*!< 0x00000080 */
  13086. #define RCC_CR_CSION RCC_CR_CSION_Msk /*!< The Internal RC 4MHz oscillator clock enable */
  13087. #define RCC_CR_CSIRDY_Pos (8U)
  13088. #define RCC_CR_CSIRDY_Msk (0x1U << RCC_CR_CSIRDY_Pos) /*!< 0x00000100 */
  13089. #define RCC_CR_CSIRDY RCC_CR_CSIRDY_Msk /*!< The Internal RC 4MHz oscillator clock ready */
  13090. #define RCC_CR_CSIKERON_Pos (9U)
  13091. #define RCC_CR_CSIKERON_Msk (0x1U << RCC_CR_CSIKERON_Pos) /*!< 0x00000200 */
  13092. #define RCC_CR_CSIKERON RCC_CR_CSIKERON_Msk /*!< Internal RC 4MHz oscillator clock enable for some IPs Kernel */
  13093. #define RCC_CR_HSI48ON_Pos (12U)
  13094. #define RCC_CR_HSI48ON_Msk (0x1U << RCC_CR_HSI48ON_Pos) /*!< 0x00001000 */
  13095. #define RCC_CR_HSI48ON RCC_CR_HSI48ON_Msk /*!< HSI48 clock enable clock enable */
  13096. #define RCC_CR_HSI48RDY_Pos (13U)
  13097. #define RCC_CR_HSI48RDY_Msk (0x1U << RCC_CR_HSI48RDY_Pos) /*!< 0x00002000 */
  13098. #define RCC_CR_HSI48RDY RCC_CR_HSI48RDY_Msk /*!< HSI48 clock ready */
  13099. #define RCC_CR_D1CKRDY_Pos (14U)
  13100. #define RCC_CR_D1CKRDY_Msk (0x1U << RCC_CR_D1CKRDY_Pos) /*!< 0x00004000 */
  13101. #define RCC_CR_D1CKRDY RCC_CR_D1CKRDY_Msk /*!< D1 domain clocks ready flag */
  13102. #define RCC_CR_D2CKRDY_Pos (15U)
  13103. #define RCC_CR_D2CKRDY_Msk (0x1U << RCC_CR_D2CKRDY_Pos) /*!< 0x00008000 */
  13104. #define RCC_CR_D2CKRDY RCC_CR_D2CKRDY_Msk /*!< D2 domain clocks ready flag */
  13105. #define RCC_CR_HSEON_Pos (16U)
  13106. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  13107. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */
  13108. #define RCC_CR_HSERDY_Pos (17U)
  13109. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  13110. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready */
  13111. #define RCC_CR_HSEBYP_Pos (18U)
  13112. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  13113. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */
  13114. #define RCC_CR_CSSHSEON_Pos (19U)
  13115. #define RCC_CR_CSSHSEON_Msk (0x1U << RCC_CR_CSSHSEON_Pos) /*!< 0x00080000 */
  13116. #define RCC_CR_CSSHSEON RCC_CR_CSSHSEON_Msk /*!< HSE Clock security System enable */
  13117. #define RCC_CR_PLL1ON_Pos (24U)
  13118. #define RCC_CR_PLL1ON_Msk (0x1U << RCC_CR_PLL1ON_Pos) /*!< 0x01000000 */
  13119. #define RCC_CR_PLL1ON RCC_CR_PLL1ON_Msk /*!< System PLL1 clock enable */
  13120. #define RCC_CR_PLL1RDY_Pos (25U)
  13121. #define RCC_CR_PLL1RDY_Msk (0x1U << RCC_CR_PLL1RDY_Pos) /*!< 0x02000000 */
  13122. #define RCC_CR_PLL1RDY RCC_CR_PLL1RDY_Msk /*!< System PLL1 clock ready */
  13123. #define RCC_CR_PLL2ON_Pos (26U)
  13124. #define RCC_CR_PLL2ON_Msk (0x1U << RCC_CR_PLL2ON_Pos) /*!< 0x04000000 */
  13125. #define RCC_CR_PLL2ON RCC_CR_PLL2ON_Msk /*!< System PLL2 clock enable */
  13126. #define RCC_CR_PLL2RDY_Pos (27U)
  13127. #define RCC_CR_PLL2RDY_Msk (0x1U << RCC_CR_PLL2RDY_Pos) /*!< 0x08000000 */
  13128. #define RCC_CR_PLL2RDY RCC_CR_PLL2RDY_Msk /*!< System PLL2 clock ready */
  13129. #define RCC_CR_PLL3ON_Pos (28U)
  13130. #define RCC_CR_PLL3ON_Msk (0x1U << RCC_CR_PLL3ON_Pos) /*!< 0x10000000 */
  13131. #define RCC_CR_PLL3ON RCC_CR_PLL3ON_Msk /*!< System PLL3 clock enable */
  13132. #define RCC_CR_PLL3RDY_Pos (29U)
  13133. #define RCC_CR_PLL3RDY_Msk (0x1U << RCC_CR_PLL3RDY_Pos) /*!< 0x20000000 */
  13134. #define RCC_CR_PLL3RDY RCC_CR_PLL3RDY_Msk /*!< System PLL3 clock ready */
  13135. /*Legacy */
  13136. #define RCC_CR_PLLON_Pos (24U)
  13137. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  13138. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */
  13139. #define RCC_CR_PLLRDY_Pos (25U)
  13140. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  13141. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */
  13142. /******************** Bit definition for RCC_ICSCR register ***************/
  13143. /*!< HSICAL configuration */
  13144. #define RCC_ICSCR_HSICAL_Pos (0U)
  13145. #define RCC_ICSCR_HSICAL_Msk (0xFFFU << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000FFF */
  13146. #define RCC_ICSCR_HSICAL RCC_ICSCR_HSICAL_Msk /*!< HSICAL[11:0] bits */
  13147. #define RCC_ICSCR_HSICAL_0 (0x001U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000001 */
  13148. #define RCC_ICSCR_HSICAL_1 (0x002U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000002 */
  13149. #define RCC_ICSCR_HSICAL_2 (0x004U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000004 */
  13150. #define RCC_ICSCR_HSICAL_3 (0x008U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000008 */
  13151. #define RCC_ICSCR_HSICAL_4 (0x010U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000010 */
  13152. #define RCC_ICSCR_HSICAL_5 (0x020U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000020 */
  13153. #define RCC_ICSCR_HSICAL_6 (0x040U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000040 */
  13154. #define RCC_ICSCR_HSICAL_7 (0x080U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000080 */
  13155. #define RCC_ICSCR_HSICAL_8 (0x100U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000100 */
  13156. #define RCC_ICSCR_HSICAL_9 (0x200U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000200 */
  13157. #define RCC_ICSCR_HSICAL_10 (0x400U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000400 */
  13158. #define RCC_ICSCR_HSICAL_11 (0x800U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000800 */
  13159. /*!< HSITRIM configuration */
  13160. #define RCC_ICSCR_HSITRIM_Pos (12U)
  13161. #define RCC_ICSCR_HSITRIM_Msk (0x3FU << RCC_ICSCR_HSITRIM_Pos) /*!< 0x0003F000 */
  13162. #define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[5:0] bits */
  13163. #define RCC_ICSCR_HSITRIM_0 (0x01U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00001000 */
  13164. #define RCC_ICSCR_HSITRIM_1 (0x02U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00002000 */
  13165. #define RCC_ICSCR_HSITRIM_2 (0x04U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00004000 */
  13166. #define RCC_ICSCR_HSITRIM_3 (0x08U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00008000 */
  13167. #define RCC_ICSCR_HSITRIM_4 (0x10U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00010000 */
  13168. #define RCC_ICSCR_HSITRIM_5 (0x20U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00020000 */
  13169. /*!< CSICAL configuration */
  13170. #define RCC_ICSCR_CSICAL_Pos (18U)
  13171. #define RCC_ICSCR_CSICAL_Msk (0xFFU << RCC_ICSCR_CSICAL_Pos) /*!< 0x03FC0000 */
  13172. #define RCC_ICSCR_CSICAL RCC_ICSCR_CSICAL_Msk /*!< CSICAL[7:0] bits */
  13173. #define RCC_ICSCR_CSICAL_0 (0x01U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00040000 */
  13174. #define RCC_ICSCR_CSICAL_1 (0x02U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00080000 */
  13175. #define RCC_ICSCR_CSICAL_2 (0x04U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00100000 */
  13176. #define RCC_ICSCR_CSICAL_3 (0x08U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00200000 */
  13177. #define RCC_ICSCR_CSICAL_4 (0x10U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00400000 */
  13178. #define RCC_ICSCR_CSICAL_5 (0x20U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00800000 */
  13179. #define RCC_ICSCR_CSICAL_6 (0x40U << RCC_ICSCR_CSICAL_Pos) /*!< 0x01000000 */
  13180. #define RCC_ICSCR_CSICAL_7 (0x80U << RCC_ICSCR_CSICAL_Pos) /*!< 0x02000000 */
  13181. /*!< CSITRIM configuration */
  13182. #define RCC_ICSCR_CSITRIM_Pos (26U)
  13183. #define RCC_ICSCR_CSITRIM_Msk (0x1FU << RCC_ICSCR_CSITRIM_Pos) /*!< 0x7C000000 */
  13184. #define RCC_ICSCR_CSITRIM RCC_ICSCR_CSITRIM_Msk /*!< CSITRIM[4:0] bits */
  13185. #define RCC_ICSCR_CSITRIM_0 (0x01U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x04000000 */
  13186. #define RCC_ICSCR_CSITRIM_1 (0x02U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x08000000 */
  13187. #define RCC_ICSCR_CSITRIM_2 (0x04U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x10000000 */
  13188. #define RCC_ICSCR_CSITRIM_3 (0x08U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x20000000 */
  13189. #define RCC_ICSCR_CSITRIM_4 (0x10U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x40000000 */
  13190. /******************** Bit definition for RCC_CRRCR register *****************/
  13191. /*!< HSI48CAL configuration */
  13192. #define RCC_CRRCR_HSI48CAL_Pos (0U)
  13193. #define RCC_CRRCR_HSI48CAL_Msk (0x3FFU << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x000003FF */
  13194. #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[9:0] bits */
  13195. #define RCC_CRRCR_HSI48CAL_0 (0x001U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000001 */
  13196. #define RCC_CRRCR_HSI48CAL_1 (0x002U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000002 */
  13197. #define RCC_CRRCR_HSI48CAL_2 (0x004U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000004 */
  13198. #define RCC_CRRCR_HSI48CAL_3 (0x008U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000008 */
  13199. #define RCC_CRRCR_HSI48CAL_4 (0x010U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000010 */
  13200. #define RCC_CRRCR_HSI48CAL_5 (0x020U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000020 */
  13201. #define RCC_CRRCR_HSI48CAL_6 (0x040U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000040 */
  13202. #define RCC_CRRCR_HSI48CAL_7 (0x080U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000080 */
  13203. #define RCC_CRRCR_HSI48CAL_8 (0x100U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000100 */
  13204. #define RCC_CRRCR_HSI48CAL_9 (0x200U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000200 */
  13205. /******************** Bit definition for RCC_CFGR register ******************/
  13206. /*!< SW configuration */
  13207. #define RCC_CFGR_SW ((uint32_t)0x00000007) /*!< SW[2:0] bits (System clock Switch) */
  13208. #define RCC_CFGR_SW_0 ((uint32_t)0x00000001) /*!<Bit 0 */
  13209. #define RCC_CFGR_SW_1 ((uint32_t)0x00000002) /*!<Bit 1 */
  13210. #define RCC_CFGR_SW_2 ((uint32_t)0x00000004) /*!<Bit 2 */
  13211. #define RCC_CFGR_SW_HSI ((uint32_t)0x00000000) /*!< HSI selection as system clock */
  13212. #define RCC_CFGR_SW_CSI ((uint32_t)0x00000001) /*!< CSI selection as system clock */
  13213. #define RCC_CFGR_SW_HSE ((uint32_t)0x00000002) /*!< HSE selection as system clock */
  13214. #define RCC_CFGR_SW_PLL1 ((uint32_t)0x00000003) /*!< PLL1 selection as system clock */
  13215. /*!< SWS configuration */
  13216. #define RCC_CFGR_SWS ((uint32_t)0x00000038) /*!< SWS[2:0] bits (System Clock Switch Status) */
  13217. #define RCC_CFGR_SWS_0 ((uint32_t)0x00000008) /*!<Bit 0 */
  13218. #define RCC_CFGR_SWS_1 ((uint32_t)0x00000010) /*!<Bit 1 */
  13219. #define RCC_CFGR_SWS_2 ((uint32_t)0x00000020) /*!<Bit 2 */
  13220. #define RCC_CFGR_SWS_HSI ((uint32_t)0x00000000) /*!< HSI used as system clock */
  13221. #define RCC_CFGR_SWS_CSI ((uint32_t)0x00000008) /*!< CSI used as system clock */
  13222. #define RCC_CFGR_SWS_HSE ((uint32_t)0x00000010) /*!< HSE used as system clock */
  13223. #define RCC_CFGR_SWS_PLL1 ((uint32_t)0x00000018) /*!< PLL1 used as system clock */
  13224. #define RCC_CFGR_STOPWUCK ((uint32_t)0x00000040) /*!< Wake Up from stop and CSS backup clock selection */
  13225. #define RCC_CFGR_STOPKERWUCK ((uint32_t)0x00000080) /*!< Kernel Clock Selection after a Wake Up from STOP */
  13226. /*!< RTCPRE configuration */
  13227. #define RCC_CFGR_RTCPRE ((uint32_t)0x00003F00)
  13228. #define RCC_CFGR_RTCPRE_0 ((uint32_t)0x00000100)
  13229. #define RCC_CFGR_RTCPRE_1 ((uint32_t)0x00000200)
  13230. #define RCC_CFGR_RTCPRE_2 ((uint32_t)0x00000400)
  13231. #define RCC_CFGR_RTCPRE_3 ((uint32_t)0x00000800)
  13232. #define RCC_CFGR_RTCPRE_4 ((uint32_t)0x00001000)
  13233. #define RCC_CFGR_RTCPRE_5 ((uint32_t)0x00002000)
  13234. #define RCC_CFGR_HRTIMSEL ((uint32_t)0x00004000)
  13235. #define RCC_CFGR_TIMPRE ((uint32_t)0x00008000)
  13236. /*!< MCO1 configuration */
  13237. #define RCC_CFGR_MCO1 ((uint32_t)0x01C00000)
  13238. #define RCC_CFGR_MCO1_0 ((uint32_t)0x00400000)
  13239. #define RCC_CFGR_MCO1_1 ((uint32_t)0x00800000)
  13240. #define RCC_CFGR_MCO1_2 ((uint32_t)0x01000000)
  13241. #define RCC_CFGR_MCO1PRE ((uint32_t)0x003C0000)
  13242. #define RCC_CFGR_MCO1PRE_0 ((uint32_t)0x00040000)
  13243. #define RCC_CFGR_MCO1PRE_1 ((uint32_t)0x00080000)
  13244. #define RCC_CFGR_MCO1PRE_2 ((uint32_t)0x00100000)
  13245. #define RCC_CFGR_MCO1PRE_3 ((uint32_t)0x00200000)
  13246. #define RCC_CFGR_MCO2PRE ((uint32_t)0x1E000000)
  13247. #define RCC_CFGR_MCO2PRE_0 ((uint32_t)0x02000000)
  13248. #define RCC_CFGR_MCO2PRE_1 ((uint32_t)0x04000000)
  13249. #define RCC_CFGR_MCO2PRE_2 ((uint32_t)0x08000000)
  13250. #define RCC_CFGR_MCO2PRE_3 ((uint32_t)0x10000000)
  13251. #define RCC_CFGR_MCO2 ((uint32_t)0xE0000000)
  13252. #define RCC_CFGR_MCO2_0 ((uint32_t)0x20000000)
  13253. #define RCC_CFGR_MCO2_1 ((uint32_t)0x40000000)
  13254. #define RCC_CFGR_MCO2_2 ((uint32_t)0x80000000)
  13255. /******************** Bit definition for RCC_D1CFGR register ******************/
  13256. /*!< D1HPRE configuration */
  13257. #define RCC_D1CFGR_HPRE_Pos (0U)
  13258. #define RCC_D1CFGR_HPRE_Msk (0xFU << RCC_D1CFGR_HPRE_Pos) /*!< 0x0000000F */
  13259. #define RCC_D1CFGR_HPRE RCC_D1CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB3 prescaler) */
  13260. #define RCC_D1CFGR_HPRE_0 (0x1U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000001 */
  13261. #define RCC_D1CFGR_HPRE_1 (0x2U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000002 */
  13262. #define RCC_D1CFGR_HPRE_2 (0x4U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000004 */
  13263. #define RCC_D1CFGR_HPRE_3 (0x8U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000008 */
  13264. #define RCC_D1CFGR_HPRE_DIV1 ((uint32_t)0x00000000) /*!< AHB3 Clock not divided */
  13265. #define RCC_D1CFGR_HPRE_DIV2_Pos (3U)
  13266. #define RCC_D1CFGR_HPRE_DIV2_Msk (0x1U << RCC_D1CFGR_HPRE_DIV2_Pos) /*!< 0x00000008 */
  13267. #define RCC_D1CFGR_HPRE_DIV2 RCC_D1CFGR_HPRE_DIV2_Msk /*!< AHB3 Clock divided by 2 */
  13268. #define RCC_D1CFGR_HPRE_DIV4_Pos (0U)
  13269. #define RCC_D1CFGR_HPRE_DIV4_Msk (0x9U << RCC_D1CFGR_HPRE_DIV4_Pos) /*!< 0x00000009 */
  13270. #define RCC_D1CFGR_HPRE_DIV4 RCC_D1CFGR_HPRE_DIV4_Msk /*!< AHB3 Clock divided by 4 */
  13271. #define RCC_D1CFGR_HPRE_DIV8_Pos (1U)
  13272. #define RCC_D1CFGR_HPRE_DIV8_Msk (0x5U << RCC_D1CFGR_HPRE_DIV8_Pos) /*!< 0x0000000A */
  13273. #define RCC_D1CFGR_HPRE_DIV8 RCC_D1CFGR_HPRE_DIV8_Msk /*!< AHB3 Clock divided by 8 */
  13274. #define RCC_D1CFGR_HPRE_DIV16_Pos (0U)
  13275. #define RCC_D1CFGR_HPRE_DIV16_Msk (0xBU << RCC_D1CFGR_HPRE_DIV16_Pos) /*!< 0x0000000B */
  13276. #define RCC_D1CFGR_HPRE_DIV16 RCC_D1CFGR_HPRE_DIV16_Msk /*!< AHB3 Clock divided by 16 */
  13277. #define RCC_D1CFGR_HPRE_DIV64_Pos (2U)
  13278. #define RCC_D1CFGR_HPRE_DIV64_Msk (0x3U << RCC_D1CFGR_HPRE_DIV64_Pos) /*!< 0x0000000C */
  13279. #define RCC_D1CFGR_HPRE_DIV64 RCC_D1CFGR_HPRE_DIV64_Msk /*!< AHB3 Clock divided by 64 */
  13280. #define RCC_D1CFGR_HPRE_DIV128_Pos (0U)
  13281. #define RCC_D1CFGR_HPRE_DIV128_Msk (0xDU << RCC_D1CFGR_HPRE_DIV128_Pos) /*!< 0x0000000D */
  13282. #define RCC_D1CFGR_HPRE_DIV128 RCC_D1CFGR_HPRE_DIV128_Msk /*!< AHB3 Clock divided by 128 */
  13283. #define RCC_D1CFGR_HPRE_DIV256_Pos (1U)
  13284. #define RCC_D1CFGR_HPRE_DIV256_Msk (0x7U << RCC_D1CFGR_HPRE_DIV256_Pos) /*!< 0x0000000E */
  13285. #define RCC_D1CFGR_HPRE_DIV256 RCC_D1CFGR_HPRE_DIV256_Msk /*!< AHB3 Clock divided by 256 */
  13286. #define RCC_D1CFGR_HPRE_DIV512_Pos (0U)
  13287. #define RCC_D1CFGR_HPRE_DIV512_Msk (0xFU << RCC_D1CFGR_HPRE_DIV512_Pos) /*!< 0x0000000F */
  13288. #define RCC_D1CFGR_HPRE_DIV512 RCC_D1CFGR_HPRE_DIV512_Msk /*!< AHB3 Clock divided by 512 */
  13289. /*!< D1PPRE configuration */
  13290. #define RCC_D1CFGR_D1PPRE_Pos (4U)
  13291. #define RCC_D1CFGR_D1PPRE_Msk (0x7U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000070 */
  13292. #define RCC_D1CFGR_D1PPRE RCC_D1CFGR_D1PPRE_Msk /*!< D1PRE[2:0] bits (APB3 prescaler) */
  13293. #define RCC_D1CFGR_D1PPRE_0 (0x1U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000010 */
  13294. #define RCC_D1CFGR_D1PPRE_1 (0x2U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000020 */
  13295. #define RCC_D1CFGR_D1PPRE_2 (0x4U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000040 */
  13296. #define RCC_D1CFGR_D1PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB3 clock not divided */
  13297. #define RCC_D1CFGR_D1PPRE_DIV2_Pos (6U)
  13298. #define RCC_D1CFGR_D1PPRE_DIV2_Msk (0x1U << RCC_D1CFGR_D1PPRE_DIV2_Pos) /*!< 0x00000040 */
  13299. #define RCC_D1CFGR_D1PPRE_DIV2 RCC_D1CFGR_D1PPRE_DIV2_Msk /*!< APB3 clock divided by 2 */
  13300. #define RCC_D1CFGR_D1PPRE_DIV4_Pos (4U)
  13301. #define RCC_D1CFGR_D1PPRE_DIV4_Msk (0x5U << RCC_D1CFGR_D1PPRE_DIV4_Pos) /*!< 0x00000050 */
  13302. #define RCC_D1CFGR_D1PPRE_DIV4 RCC_D1CFGR_D1PPRE_DIV4_Msk /*!< APB3 clock divided by 4 */
  13303. #define RCC_D1CFGR_D1PPRE_DIV8_Pos (5U)
  13304. #define RCC_D1CFGR_D1PPRE_DIV8_Msk (0x3U << RCC_D1CFGR_D1PPRE_DIV8_Pos) /*!< 0x00000060 */
  13305. #define RCC_D1CFGR_D1PPRE_DIV8 RCC_D1CFGR_D1PPRE_DIV8_Msk /*!< APB3 clock divided by 8 */
  13306. #define RCC_D1CFGR_D1PPRE_DIV16_Pos (4U)
  13307. #define RCC_D1CFGR_D1PPRE_DIV16_Msk (0x7U << RCC_D1CFGR_D1PPRE_DIV16_Pos) /*!< 0x00000070 */
  13308. #define RCC_D1CFGR_D1PPRE_DIV16 RCC_D1CFGR_D1PPRE_DIV16_Msk /*!< APB3 clock divided by 16 */
  13309. #define RCC_D1CFGR_D1CPRE_Pos (8U)
  13310. #define RCC_D1CFGR_D1CPRE_Msk (0xFU << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000F00 */
  13311. #define RCC_D1CFGR_D1CPRE RCC_D1CFGR_D1CPRE_Msk /*!< D1CPRE[2:0] bits (Domain 1 Core prescaler) */
  13312. #define RCC_D1CFGR_D1CPRE_0 (0x1U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000100 */
  13313. #define RCC_D1CFGR_D1CPRE_1 (0x2U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000200 */
  13314. #define RCC_D1CFGR_D1CPRE_2 (0x4U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000400 */
  13315. #define RCC_D1CFGR_D1CPRE_3 (0x8U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000800 */
  13316. #define RCC_D1CFGR_D1CPRE_DIV1 ((uint32_t)0x00000000) /*!< Domain 1 Core clock not divided */
  13317. #define RCC_D1CFGR_D1CPRE_DIV2_Pos (11U)
  13318. #define RCC_D1CFGR_D1CPRE_DIV2_Msk (0x1U << RCC_D1CFGR_D1CPRE_DIV2_Pos) /*!< 0x00000800 */
  13319. #define RCC_D1CFGR_D1CPRE_DIV2 RCC_D1CFGR_D1CPRE_DIV2_Msk /*!< Domain 1 Core clock divided by 2 */
  13320. #define RCC_D1CFGR_D1CPRE_DIV4_Pos (8U)
  13321. #define RCC_D1CFGR_D1CPRE_DIV4_Msk (0x9U << RCC_D1CFGR_D1CPRE_DIV4_Pos) /*!< 0x00000900 */
  13322. #define RCC_D1CFGR_D1CPRE_DIV4 RCC_D1CFGR_D1CPRE_DIV4_Msk /*!< Domain 1 Core clock divided by 4 */
  13323. #define RCC_D1CFGR_D1CPRE_DIV8_Pos (9U)
  13324. #define RCC_D1CFGR_D1CPRE_DIV8_Msk (0x5U << RCC_D1CFGR_D1CPRE_DIV8_Pos) /*!< 0x00000A00 */
  13325. #define RCC_D1CFGR_D1CPRE_DIV8 RCC_D1CFGR_D1CPRE_DIV8_Msk /*!< Domain 1 Core clock divided by 8 */
  13326. #define RCC_D1CFGR_D1CPRE_DIV16_Pos (8U)
  13327. #define RCC_D1CFGR_D1CPRE_DIV16_Msk (0xBU << RCC_D1CFGR_D1CPRE_DIV16_Pos) /*!< 0x00000B00 */
  13328. #define RCC_D1CFGR_D1CPRE_DIV16 RCC_D1CFGR_D1CPRE_DIV16_Msk /*!< Domain 1 Core clock divided by 16 */
  13329. #define RCC_D1CFGR_D1CPRE_DIV64_Pos (10U)
  13330. #define RCC_D1CFGR_D1CPRE_DIV64_Msk (0x3U << RCC_D1CFGR_D1CPRE_DIV64_Pos) /*!< 0x00000C00 */
  13331. #define RCC_D1CFGR_D1CPRE_DIV64 RCC_D1CFGR_D1CPRE_DIV64_Msk /*!< Domain 1 Core clock divided by 64 */
  13332. #define RCC_D1CFGR_D1CPRE_DIV128_Pos (8U)
  13333. #define RCC_D1CFGR_D1CPRE_DIV128_Msk (0xDU << RCC_D1CFGR_D1CPRE_DIV128_Pos) /*!< 0x00000D00 */
  13334. #define RCC_D1CFGR_D1CPRE_DIV128 RCC_D1CFGR_D1CPRE_DIV128_Msk /*!< Domain 1 Core clock divided by 128 */
  13335. #define RCC_D1CFGR_D1CPRE_DIV256_Pos (9U)
  13336. #define RCC_D1CFGR_D1CPRE_DIV256_Msk (0x7U << RCC_D1CFGR_D1CPRE_DIV256_Pos) /*!< 0x00000E00 */
  13337. #define RCC_D1CFGR_D1CPRE_DIV256 RCC_D1CFGR_D1CPRE_DIV256_Msk /*!< Domain 1 Core clock divided by 256 */
  13338. #define RCC_D1CFGR_D1CPRE_DIV512_Pos (8U)
  13339. #define RCC_D1CFGR_D1CPRE_DIV512_Msk (0xFU << RCC_D1CFGR_D1CPRE_DIV512_Pos) /*!< 0x00000F00 */
  13340. #define RCC_D1CFGR_D1CPRE_DIV512 RCC_D1CFGR_D1CPRE_DIV512_Msk /*!< Domain 1 Core clock divided by 512 */
  13341. /******************** Bit definition for RCC_D2CFGR register ******************/
  13342. /*!< D2PPRE1 configuration */
  13343. #define RCC_D2CFGR_D2PPRE1_Pos (4U)
  13344. #define RCC_D2CFGR_D2PPRE1_Msk (0x7U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000070 */
  13345. #define RCC_D2CFGR_D2PPRE1 RCC_D2CFGR_D2PPRE1_Msk /*!< D1PPRE1[2:0] bits (APB1 prescaler) */
  13346. #define RCC_D2CFGR_D2PPRE1_0 (0x1U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000010 */
  13347. #define RCC_D2CFGR_D2PPRE1_1 (0x2U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000020 */
  13348. #define RCC_D2CFGR_D2PPRE1_2 (0x4U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000040 */
  13349. #define RCC_D2CFGR_D2PPRE1_DIV1 ((uint32_t)0x00000000) /*!< APB1 clock not divided */
  13350. #define RCC_D2CFGR_D2PPRE1_DIV2_Pos (6U)
  13351. #define RCC_D2CFGR_D2PPRE1_DIV2_Msk (0x1U << RCC_D2CFGR_D2PPRE1_DIV2_Pos) /*!< 0x00000040 */
  13352. #define RCC_D2CFGR_D2PPRE1_DIV2 RCC_D2CFGR_D2PPRE1_DIV2_Msk /*!< APB1 clock divided by 2 */
  13353. #define RCC_D2CFGR_D2PPRE1_DIV4_Pos (4U)
  13354. #define RCC_D2CFGR_D2PPRE1_DIV4_Msk (0x5U << RCC_D2CFGR_D2PPRE1_DIV4_Pos) /*!< 0x00000050 */
  13355. #define RCC_D2CFGR_D2PPRE1_DIV4 RCC_D2CFGR_D2PPRE1_DIV4_Msk /*!< APB1 clock divided by 4 */
  13356. #define RCC_D2CFGR_D2PPRE1_DIV8_Pos (5U)
  13357. #define RCC_D2CFGR_D2PPRE1_DIV8_Msk (0x3U << RCC_D2CFGR_D2PPRE1_DIV8_Pos) /*!< 0x00000060 */
  13358. #define RCC_D2CFGR_D2PPRE1_DIV8 RCC_D2CFGR_D2PPRE1_DIV8_Msk /*!< APB1 clock divided by 8 */
  13359. #define RCC_D2CFGR_D2PPRE1_DIV16_Pos (4U)
  13360. #define RCC_D2CFGR_D2PPRE1_DIV16_Msk (0x7U << RCC_D2CFGR_D2PPRE1_DIV16_Pos) /*!< 0x00000070 */
  13361. #define RCC_D2CFGR_D2PPRE1_DIV16 RCC_D2CFGR_D2PPRE1_DIV16_Msk /*!< APB1 clock divided by 16 */
  13362. /*!< D2PPRE2 configuration */
  13363. #define RCC_D2CFGR_D2PPRE2_Pos (8U)
  13364. #define RCC_D2CFGR_D2PPRE2_Msk (0x7U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000700 */
  13365. #define RCC_D2CFGR_D2PPRE2 RCC_D2CFGR_D2PPRE2_Msk /*!< D2PPRE2[2:0] bits (APB2 prescaler) */
  13366. #define RCC_D2CFGR_D2PPRE2_0 (0x1U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000100 */
  13367. #define RCC_D2CFGR_D2PPRE2_1 (0x2U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000200 */
  13368. #define RCC_D2CFGR_D2PPRE2_2 (0x4U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000400 */
  13369. #define RCC_D2CFGR_D2PPRE2_DIV1 ((uint32_t)0x00000000) /*!< APB2 clock not divided */
  13370. #define RCC_D2CFGR_D2PPRE2_DIV2_Pos (10U)
  13371. #define RCC_D2CFGR_D2PPRE2_DIV2_Msk (0x1U << RCC_D2CFGR_D2PPRE2_DIV2_Pos) /*!< 0x00000400 */
  13372. #define RCC_D2CFGR_D2PPRE2_DIV2 RCC_D2CFGR_D2PPRE2_DIV2_Msk /*!< APB2 clock divided by 2 */
  13373. #define RCC_D2CFGR_D2PPRE2_DIV4_Pos (8U)
  13374. #define RCC_D2CFGR_D2PPRE2_DIV4_Msk (0x5U << RCC_D2CFGR_D2PPRE2_DIV4_Pos) /*!< 0x00000500 */
  13375. #define RCC_D2CFGR_D2PPRE2_DIV4 RCC_D2CFGR_D2PPRE2_DIV4_Msk /*!< APB2 clock divided by 4 */
  13376. #define RCC_D2CFGR_D2PPRE2_DIV8_Pos (9U)
  13377. #define RCC_D2CFGR_D2PPRE2_DIV8_Msk (0x3U << RCC_D2CFGR_D2PPRE2_DIV8_Pos) /*!< 0x00000600 */
  13378. #define RCC_D2CFGR_D2PPRE2_DIV8 RCC_D2CFGR_D2PPRE2_DIV8_Msk /*!< APB2 clock divided by 8 */
  13379. #define RCC_D2CFGR_D2PPRE2_DIV16_Pos (8U)
  13380. #define RCC_D2CFGR_D2PPRE2_DIV16_Msk (0x7U << RCC_D2CFGR_D2PPRE2_DIV16_Pos) /*!< 0x00000700 */
  13381. #define RCC_D2CFGR_D2PPRE2_DIV16 RCC_D2CFGR_D2PPRE2_DIV16_Msk /*!< APB2 clock divided by 16 */
  13382. /******************** Bit definition for RCC_D3CFGR register ******************/
  13383. /*!< D3PPRE configuration */
  13384. #define RCC_D3CFGR_D3PPRE_Pos (4U)
  13385. #define RCC_D3CFGR_D3PPRE_Msk (0x7U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000070 */
  13386. #define RCC_D3CFGR_D3PPRE RCC_D3CFGR_D3PPRE_Msk /*!< D3PPRE1[2:0] bits (APB4 prescaler) */
  13387. #define RCC_D3CFGR_D3PPRE_0 (0x1U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000010 */
  13388. #define RCC_D3CFGR_D3PPRE_1 (0x2U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000020 */
  13389. #define RCC_D3CFGR_D3PPRE_2 (0x4U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000040 */
  13390. #define RCC_D3CFGR_D3PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB4 clock not divided */
  13391. #define RCC_D3CFGR_D3PPRE_DIV2_Pos (6U)
  13392. #define RCC_D3CFGR_D3PPRE_DIV2_Msk (0x1U << RCC_D3CFGR_D3PPRE_DIV2_Pos) /*!< 0x00000040 */
  13393. #define RCC_D3CFGR_D3PPRE_DIV2 RCC_D3CFGR_D3PPRE_DIV2_Msk /*!< APB4 clock divided by 2 */
  13394. #define RCC_D3CFGR_D3PPRE_DIV4_Pos (4U)
  13395. #define RCC_D3CFGR_D3PPRE_DIV4_Msk (0x5U << RCC_D3CFGR_D3PPRE_DIV4_Pos) /*!< 0x00000050 */
  13396. #define RCC_D3CFGR_D3PPRE_DIV4 RCC_D3CFGR_D3PPRE_DIV4_Msk /*!< APB4 clock divided by 4 */
  13397. #define RCC_D3CFGR_D3PPRE_DIV8_Pos (5U)
  13398. #define RCC_D3CFGR_D3PPRE_DIV8_Msk (0x3U << RCC_D3CFGR_D3PPRE_DIV8_Pos) /*!< 0x00000060 */
  13399. #define RCC_D3CFGR_D3PPRE_DIV8 RCC_D3CFGR_D3PPRE_DIV8_Msk /*!< APB4 clock divided by 8 */
  13400. #define RCC_D3CFGR_D3PPRE_DIV16_Pos (4U)
  13401. #define RCC_D3CFGR_D3PPRE_DIV16_Msk (0x7U << RCC_D3CFGR_D3PPRE_DIV16_Pos) /*!< 0x00000070 */
  13402. #define RCC_D3CFGR_D3PPRE_DIV16 RCC_D3CFGR_D3PPRE_DIV16_Msk /*!< APB4 clock divided by 16 */
  13403. /******************** Bit definition for RCC_PLLCKSELR register *************/
  13404. #define RCC_PLLCKSELR_PLLSRC_Pos (0U)
  13405. #define RCC_PLLCKSELR_PLLSRC_Msk (0x3U << RCC_PLLCKSELR_PLLSRC_Pos) /*!< 0x00000003 */
  13406. #define RCC_PLLCKSELR_PLLSRC RCC_PLLCKSELR_PLLSRC_Msk
  13407. #define RCC_PLLCKSELR_PLLSRC_HSI ((uint32_t)0x00000000) /*!< HSI source clock selected */
  13408. #define RCC_PLLCKSELR_PLLSRC_CSI_Pos (0U)
  13409. #define RCC_PLLCKSELR_PLLSRC_CSI_Msk (0x1U << RCC_PLLCKSELR_PLLSRC_CSI_Pos) /*!< 0x00000001 */
  13410. #define RCC_PLLCKSELR_PLLSRC_CSI RCC_PLLCKSELR_PLLSRC_CSI_Msk /*!< CSI source clock selected */
  13411. #define RCC_PLLCKSELR_PLLSRC_HSE_Pos (1U)
  13412. #define RCC_PLLCKSELR_PLLSRC_HSE_Msk (0x1U << RCC_PLLCKSELR_PLLSRC_HSE_Pos) /*!< 0x00000002 */
  13413. #define RCC_PLLCKSELR_PLLSRC_HSE RCC_PLLCKSELR_PLLSRC_HSE_Msk /*!< HSE source clock selected */
  13414. #define RCC_PLLCKSELR_PLLSRC_NONE_Pos (0U)
  13415. #define RCC_PLLCKSELR_PLLSRC_NONE_Msk (0x3U << RCC_PLLCKSELR_PLLSRC_NONE_Pos) /*!< 0x00000003 */
  13416. #define RCC_PLLCKSELR_PLLSRC_NONE RCC_PLLCKSELR_PLLSRC_NONE_Msk /*!< No source clock selected */
  13417. #define RCC_PLLCKSELR_DIVM1_Pos (4U)
  13418. #define RCC_PLLCKSELR_DIVM1_Msk (0x3FU << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x000003F0 */
  13419. #define RCC_PLLCKSELR_DIVM1 RCC_PLLCKSELR_DIVM1_Msk
  13420. #define RCC_PLLCKSELR_DIVM1_0 (0x01U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000010 */
  13421. #define RCC_PLLCKSELR_DIVM1_1 (0x02U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000020 */
  13422. #define RCC_PLLCKSELR_DIVM1_2 (0x04U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000040 */
  13423. #define RCC_PLLCKSELR_DIVM1_3 (0x08U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000080 */
  13424. #define RCC_PLLCKSELR_DIVM1_4 (0x10U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000100 */
  13425. #define RCC_PLLCKSELR_DIVM1_5 (0x20U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000200 */
  13426. #define RCC_PLLCKSELR_DIVM2_Pos (12U)
  13427. #define RCC_PLLCKSELR_DIVM2_Msk (0x3FU << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x0003F000 */
  13428. #define RCC_PLLCKSELR_DIVM2 RCC_PLLCKSELR_DIVM2_Msk
  13429. #define RCC_PLLCKSELR_DIVM2_0 (0x01U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00001000 */
  13430. #define RCC_PLLCKSELR_DIVM2_1 (0x02U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00002000 */
  13431. #define RCC_PLLCKSELR_DIVM2_2 (0x04U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00004000 */
  13432. #define RCC_PLLCKSELR_DIVM2_3 (0x08U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00008000 */
  13433. #define RCC_PLLCKSELR_DIVM2_4 (0x10U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00010000 */
  13434. #define RCC_PLLCKSELR_DIVM2_5 (0x20U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00020000 */
  13435. #define RCC_PLLCKSELR_DIVM3_Pos (20U)
  13436. #define RCC_PLLCKSELR_DIVM3_Msk (0x3FU << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x03F00000 */
  13437. #define RCC_PLLCKSELR_DIVM3 RCC_PLLCKSELR_DIVM3_Msk
  13438. #define RCC_PLLCKSELR_DIVM3_0 (0x01U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00100000 */
  13439. #define RCC_PLLCKSELR_DIVM3_1 (0x02U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00200000 */
  13440. #define RCC_PLLCKSELR_DIVM3_2 (0x04U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00400000 */
  13441. #define RCC_PLLCKSELR_DIVM3_3 (0x08U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00800000 */
  13442. #define RCC_PLLCKSELR_DIVM3_4 (0x10U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x01000000 */
  13443. #define RCC_PLLCKSELR_DIVM3_5 (0x20U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x02000000 */
  13444. /******************** Bit definition for RCC_PLLCFGR register ***************/
  13445. #define RCC_PLLCFGR_PLL1FRACEN_Pos (0U)
  13446. #define RCC_PLLCFGR_PLL1FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL1FRACEN_Pos) /*!< 0x00000001 */
  13447. #define RCC_PLLCFGR_PLL1FRACEN RCC_PLLCFGR_PLL1FRACEN_Msk
  13448. #define RCC_PLLCFGR_PLL1VCOSEL_Pos (1U)
  13449. #define RCC_PLLCFGR_PLL1VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL1VCOSEL_Pos) /*!< 0x00000002 */
  13450. #define RCC_PLLCFGR_PLL1VCOSEL RCC_PLLCFGR_PLL1VCOSEL_Msk
  13451. #define RCC_PLLCFGR_PLL1RGE_Pos (2U)
  13452. #define RCC_PLLCFGR_PLL1RGE_Msk (0x3U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13453. #define RCC_PLLCFGR_PLL1RGE RCC_PLLCFGR_PLL1RGE_Msk
  13454. #define RCC_PLLCFGR_PLL1RGE_0 (0x0U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000000 */
  13455. #define RCC_PLLCFGR_PLL1RGE_1 (0x1U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000004 */
  13456. #define RCC_PLLCFGR_PLL1RGE_2 (0x2U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000008 */
  13457. #define RCC_PLLCFGR_PLL1RGE_3 (0x3U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13458. #define RCC_PLLCFGR_PLL2FRACEN_Pos (4U)
  13459. #define RCC_PLLCFGR_PLL2FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL2FRACEN_Pos) /*!< 0x00000010 */
  13460. #define RCC_PLLCFGR_PLL2FRACEN RCC_PLLCFGR_PLL2FRACEN_Msk
  13461. #define RCC_PLLCFGR_PLL2VCOSEL_Pos (5U)
  13462. #define RCC_PLLCFGR_PLL2VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL2VCOSEL_Pos) /*!< 0x00000020 */
  13463. #define RCC_PLLCFGR_PLL2VCOSEL RCC_PLLCFGR_PLL2VCOSEL_Msk
  13464. #define RCC_PLLCFGR_PLL2RGE_Pos (6U)
  13465. #define RCC_PLLCFGR_PLL2RGE_Msk (0x3U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13466. #define RCC_PLLCFGR_PLL2RGE RCC_PLLCFGR_PLL2RGE_Msk
  13467. #define RCC_PLLCFGR_PLL2RGE_0 (0x0U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000000 */
  13468. #define RCC_PLLCFGR_PLL2RGE_1 (0x1U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000040 */
  13469. #define RCC_PLLCFGR_PLL2RGE_2 (0x2U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000080 */
  13470. #define RCC_PLLCFGR_PLL2RGE_3 (0x3U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13471. #define RCC_PLLCFGR_PLL3FRACEN_Pos (8U)
  13472. #define RCC_PLLCFGR_PLL3FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL3FRACEN_Pos) /*!< 0x00000100 */
  13473. #define RCC_PLLCFGR_PLL3FRACEN RCC_PLLCFGR_PLL3FRACEN_Msk
  13474. #define RCC_PLLCFGR_PLL3VCOSEL_Pos (9U)
  13475. #define RCC_PLLCFGR_PLL3VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL3VCOSEL_Pos) /*!< 0x00000200 */
  13476. #define RCC_PLLCFGR_PLL3VCOSEL RCC_PLLCFGR_PLL3VCOSEL_Msk
  13477. #define RCC_PLLCFGR_PLL3RGE_Pos (10U)
  13478. #define RCC_PLLCFGR_PLL3RGE_Msk (0x3U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13479. #define RCC_PLLCFGR_PLL3RGE RCC_PLLCFGR_PLL3RGE_Msk
  13480. #define RCC_PLLCFGR_PLL3RGE_0 (0x0U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000000 */
  13481. #define RCC_PLLCFGR_PLL3RGE_1 (0x1U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000400 */
  13482. #define RCC_PLLCFGR_PLL3RGE_2 (0x2U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000800 */
  13483. #define RCC_PLLCFGR_PLL3RGE_3 (0x3U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13484. #define RCC_PLLCFGR_DIVP1EN_Pos (16U)
  13485. #define RCC_PLLCFGR_DIVP1EN_Msk (0x1U << RCC_PLLCFGR_DIVP1EN_Pos) /*!< 0x00010000 */
  13486. #define RCC_PLLCFGR_DIVP1EN RCC_PLLCFGR_DIVP1EN_Msk
  13487. #define RCC_PLLCFGR_DIVQ1EN_Pos (17U)
  13488. #define RCC_PLLCFGR_DIVQ1EN_Msk (0x1U << RCC_PLLCFGR_DIVQ1EN_Pos) /*!< 0x00020000 */
  13489. #define RCC_PLLCFGR_DIVQ1EN RCC_PLLCFGR_DIVQ1EN_Msk
  13490. #define RCC_PLLCFGR_DIVR1EN_Pos (18U)
  13491. #define RCC_PLLCFGR_DIVR1EN_Msk (0x1U << RCC_PLLCFGR_DIVR1EN_Pos) /*!< 0x00040000 */
  13492. #define RCC_PLLCFGR_DIVR1EN RCC_PLLCFGR_DIVR1EN_Msk
  13493. #define RCC_PLLCFGR_DIVP2EN_Pos (19U)
  13494. #define RCC_PLLCFGR_DIVP2EN_Msk (0x1U << RCC_PLLCFGR_DIVP2EN_Pos) /*!< 0x00080000 */
  13495. #define RCC_PLLCFGR_DIVP2EN RCC_PLLCFGR_DIVP2EN_Msk
  13496. #define RCC_PLLCFGR_DIVQ2EN_Pos (20U)
  13497. #define RCC_PLLCFGR_DIVQ2EN_Msk (0x1U << RCC_PLLCFGR_DIVQ2EN_Pos) /*!< 0x00100000 */
  13498. #define RCC_PLLCFGR_DIVQ2EN RCC_PLLCFGR_DIVQ2EN_Msk
  13499. #define RCC_PLLCFGR_DIVR2EN_Pos (21U)
  13500. #define RCC_PLLCFGR_DIVR2EN_Msk (0x1U << RCC_PLLCFGR_DIVR2EN_Pos) /*!< 0x00200000 */
  13501. #define RCC_PLLCFGR_DIVR2EN RCC_PLLCFGR_DIVR2EN_Msk
  13502. #define RCC_PLLCFGR_DIVP3EN_Pos (22U)
  13503. #define RCC_PLLCFGR_DIVP3EN_Msk (0x1U << RCC_PLLCFGR_DIVP3EN_Pos) /*!< 0x00400000 */
  13504. #define RCC_PLLCFGR_DIVP3EN RCC_PLLCFGR_DIVP3EN_Msk
  13505. #define RCC_PLLCFGR_DIVQ3EN_Pos (23U)
  13506. #define RCC_PLLCFGR_DIVQ3EN_Msk (0x1U << RCC_PLLCFGR_DIVQ3EN_Pos) /*!< 0x00800000 */
  13507. #define RCC_PLLCFGR_DIVQ3EN RCC_PLLCFGR_DIVQ3EN_Msk
  13508. #define RCC_PLLCFGR_DIVR3EN_Pos (24U)
  13509. #define RCC_PLLCFGR_DIVR3EN_Msk (0x1U << RCC_PLLCFGR_DIVR3EN_Pos) /*!< 0x01000000 */
  13510. #define RCC_PLLCFGR_DIVR3EN RCC_PLLCFGR_DIVR3EN_Msk
  13511. /******************** Bit definition for RCC_PLL1DIVR register ***************/
  13512. #define RCC_PLL1DIVR_N1_Pos (0U)
  13513. #define RCC_PLL1DIVR_N1_Msk (0x1FFU << RCC_PLL1DIVR_N1_Pos) /*!< 0x000001FF */
  13514. #define RCC_PLL1DIVR_N1 RCC_PLL1DIVR_N1_Msk
  13515. #define RCC_PLL1DIVR_P1_Pos (9U)
  13516. #define RCC_PLL1DIVR_P1_Msk (0x7FU << RCC_PLL1DIVR_P1_Pos) /*!< 0x0000FE00 */
  13517. #define RCC_PLL1DIVR_P1 RCC_PLL1DIVR_P1_Msk
  13518. #define RCC_PLL1DIVR_Q1_Pos (16U)
  13519. #define RCC_PLL1DIVR_Q1_Msk (0x7FU << RCC_PLL1DIVR_Q1_Pos) /*!< 0x007F0000 */
  13520. #define RCC_PLL1DIVR_Q1 RCC_PLL1DIVR_Q1_Msk
  13521. #define RCC_PLL1DIVR_R1_Pos (24U)
  13522. #define RCC_PLL1DIVR_R1_Msk (0x7FU << RCC_PLL1DIVR_R1_Pos) /*!< 0x7F000000 */
  13523. #define RCC_PLL1DIVR_R1 RCC_PLL1DIVR_R1_Msk
  13524. /******************** Bit definition for RCC_PLL1FRACR register ***************/
  13525. #define RCC_PLL1FRACR_FRACN1_Pos (3U)
  13526. #define RCC_PLL1FRACR_FRACN1_Msk (0x1FFFU << RCC_PLL1FRACR_FRACN1_Pos) /*!< 0x0000FFF8 */
  13527. #define RCC_PLL1FRACR_FRACN1 RCC_PLL1FRACR_FRACN1_Msk
  13528. /******************** Bit definition for RCC_PLL2DIVR register ***************/
  13529. #define RCC_PLL2DIVR_N2_Pos (0U)
  13530. #define RCC_PLL2DIVR_N2_Msk (0x1FFU << RCC_PLL2DIVR_N2_Pos) /*!< 0x000001FF */
  13531. #define RCC_PLL2DIVR_N2 RCC_PLL2DIVR_N2_Msk
  13532. #define RCC_PLL2DIVR_P2_Pos (9U)
  13533. #define RCC_PLL2DIVR_P2_Msk (0x7FU << RCC_PLL2DIVR_P2_Pos) /*!< 0x0000FE00 */
  13534. #define RCC_PLL2DIVR_P2 RCC_PLL2DIVR_P2_Msk
  13535. #define RCC_PLL2DIVR_Q2_Pos (16U)
  13536. #define RCC_PLL2DIVR_Q2_Msk (0x7FU << RCC_PLL2DIVR_Q2_Pos) /*!< 0x007F0000 */
  13537. #define RCC_PLL2DIVR_Q2 RCC_PLL2DIVR_Q2_Msk
  13538. #define RCC_PLL2DIVR_R2_Pos (24U)
  13539. #define RCC_PLL2DIVR_R2_Msk (0x7FU << RCC_PLL2DIVR_R2_Pos) /*!< 0x7F000000 */
  13540. #define RCC_PLL2DIVR_R2 RCC_PLL2DIVR_R2_Msk
  13541. /******************** Bit definition for RCC_PLL2FRACR register ***************/
  13542. #define RCC_PLL2FRACR_FRACN2_Pos (3U)
  13543. #define RCC_PLL2FRACR_FRACN2_Msk (0x1FFFU << RCC_PLL2FRACR_FRACN2_Pos) /*!< 0x0000FFF8 */
  13544. #define RCC_PLL2FRACR_FRACN2 RCC_PLL2FRACR_FRACN2_Msk
  13545. /******************** Bit definition for RCC_PLL3DIVR register ***************/
  13546. #define RCC_PLL3DIVR_N3_Pos (0U)
  13547. #define RCC_PLL3DIVR_N3_Msk (0x1FFU << RCC_PLL3DIVR_N3_Pos) /*!< 0x000001FF */
  13548. #define RCC_PLL3DIVR_N3 RCC_PLL3DIVR_N3_Msk
  13549. #define RCC_PLL3DIVR_P3_Pos (9U)
  13550. #define RCC_PLL3DIVR_P3_Msk (0x7FU << RCC_PLL3DIVR_P3_Pos) /*!< 0x0000FE00 */
  13551. #define RCC_PLL3DIVR_P3 RCC_PLL3DIVR_P3_Msk
  13552. #define RCC_PLL3DIVR_Q3_Pos (16U)
  13553. #define RCC_PLL3DIVR_Q3_Msk (0x7FU << RCC_PLL3DIVR_Q3_Pos) /*!< 0x007F0000 */
  13554. #define RCC_PLL3DIVR_Q3 RCC_PLL3DIVR_Q3_Msk
  13555. #define RCC_PLL3DIVR_R3_Pos (24U)
  13556. #define RCC_PLL3DIVR_R3_Msk (0x7FU << RCC_PLL3DIVR_R3_Pos) /*!< 0x7F000000 */
  13557. #define RCC_PLL3DIVR_R3 RCC_PLL3DIVR_R3_Msk
  13558. /******************** Bit definition for RCC_PLL3FRACR register ***************/
  13559. #define RCC_PLL3FRACR_FRACN3_Pos (3U)
  13560. #define RCC_PLL3FRACR_FRACN3_Msk (0x1FFFU << RCC_PLL3FRACR_FRACN3_Pos) /*!< 0x0000FFF8 */
  13561. #define RCC_PLL3FRACR_FRACN3 RCC_PLL3FRACR_FRACN3_Msk
  13562. /******************** Bit definition for RCC_D1CCIPR register ***************/
  13563. #define RCC_D1CCIPR_FMCSEL_Pos (0U)
  13564. #define RCC_D1CCIPR_FMCSEL_Msk (0x3U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000003 */
  13565. #define RCC_D1CCIPR_FMCSEL RCC_D1CCIPR_FMCSEL_Msk
  13566. #define RCC_D1CCIPR_FMCSEL_0 (0x1U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000001 */
  13567. #define RCC_D1CCIPR_FMCSEL_1 (0x2U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000002 */
  13568. #define RCC_D1CCIPR_QSPISEL_Pos (4U)
  13569. #define RCC_D1CCIPR_QSPISEL_Msk (0x3U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000030 */
  13570. #define RCC_D1CCIPR_QSPISEL RCC_D1CCIPR_QSPISEL_Msk
  13571. #define RCC_D1CCIPR_QSPISEL_0 (0x1U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000010 */
  13572. #define RCC_D1CCIPR_QSPISEL_1 (0x2U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000020 */
  13573. #define RCC_D1CCIPR_SDMMCSEL_Pos (16U)
  13574. #define RCC_D1CCIPR_SDMMCSEL_Msk (0x1U << RCC_D1CCIPR_SDMMCSEL_Pos) /*!< 0x00010000 */
  13575. #define RCC_D1CCIPR_SDMMCSEL RCC_D1CCIPR_SDMMCSEL_Msk
  13576. #define RCC_D1CCIPR_CKPERSEL_Pos (28U)
  13577. #define RCC_D1CCIPR_CKPERSEL_Msk (0x3U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x30000000 */
  13578. #define RCC_D1CCIPR_CKPERSEL RCC_D1CCIPR_CKPERSEL_Msk
  13579. #define RCC_D1CCIPR_CKPERSEL_0 (0x1U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x10000000 */
  13580. #define RCC_D1CCIPR_CKPERSEL_1 (0x2U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x20000000 */
  13581. /******************** Bit definition for RCC_D2CCIP1R register ***************/
  13582. #define RCC_D2CCIP1R_SAI1SEL_Pos (0U)
  13583. #define RCC_D2CCIP1R_SAI1SEL_Msk (0x7U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000007 */
  13584. #define RCC_D2CCIP1R_SAI1SEL RCC_D2CCIP1R_SAI1SEL_Msk
  13585. #define RCC_D2CCIP1R_SAI1SEL_0 (0x1U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000001 */
  13586. #define RCC_D2CCIP1R_SAI1SEL_1 (0x2U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000002 */
  13587. #define RCC_D2CCIP1R_SAI1SEL_2 (0x4U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000004 */
  13588. #define RCC_D2CCIP1R_SAI23SEL_Pos (6U)
  13589. #define RCC_D2CCIP1R_SAI23SEL_Msk (0x7U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x000001C0 */
  13590. #define RCC_D2CCIP1R_SAI23SEL RCC_D2CCIP1R_SAI23SEL_Msk
  13591. #define RCC_D2CCIP1R_SAI23SEL_0 (0x1U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000040 */
  13592. #define RCC_D2CCIP1R_SAI23SEL_1 (0x2U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000080 */
  13593. #define RCC_D2CCIP1R_SAI23SEL_2 (0x4U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000100 */
  13594. #define RCC_D2CCIP1R_SPI123SEL_Pos (12U)
  13595. #define RCC_D2CCIP1R_SPI123SEL_Msk (0x7U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00007000 */
  13596. #define RCC_D2CCIP1R_SPI123SEL RCC_D2CCIP1R_SPI123SEL_Msk
  13597. #define RCC_D2CCIP1R_SPI123SEL_0 (0x1U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00001000 */
  13598. #define RCC_D2CCIP1R_SPI123SEL_1 (0x2U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00002000 */
  13599. #define RCC_D2CCIP1R_SPI123SEL_2 (0x4U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00004000 */
  13600. #define RCC_D2CCIP1R_SPI45SEL_Pos (16U)
  13601. #define RCC_D2CCIP1R_SPI45SEL_Msk (0x7U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00070000 */
  13602. #define RCC_D2CCIP1R_SPI45SEL RCC_D2CCIP1R_SPI45SEL_Msk
  13603. #define RCC_D2CCIP1R_SPI45SEL_0 (0x1U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00010000 */
  13604. #define RCC_D2CCIP1R_SPI45SEL_1 (0x2U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00020000 */
  13605. #define RCC_D2CCIP1R_SPI45SEL_2 (0x4U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00040000 */
  13606. #define RCC_D2CCIP1R_SPDIFSEL_Pos (20U)
  13607. #define RCC_D2CCIP1R_SPDIFSEL_Msk (0x3U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00300000 */
  13608. #define RCC_D2CCIP1R_SPDIFSEL RCC_D2CCIP1R_SPDIFSEL_Msk
  13609. #define RCC_D2CCIP1R_SPDIFSEL_0 (0x1U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00100000 */
  13610. #define RCC_D2CCIP1R_SPDIFSEL_1 (0x2U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00200000 */
  13611. #define RCC_D2CCIP1R_DFSDM1SEL_Pos (24U)
  13612. #define RCC_D2CCIP1R_DFSDM1SEL_Msk (0x1U << RCC_D2CCIP1R_DFSDM1SEL_Pos) /*!< 0x01000000 */
  13613. #define RCC_D2CCIP1R_DFSDM1SEL RCC_D2CCIP1R_DFSDM1SEL_Msk
  13614. #define RCC_D2CCIP1R_FDCANSEL_Pos (28U)
  13615. #define RCC_D2CCIP1R_FDCANSEL_Msk (0x3U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x30000000 */
  13616. #define RCC_D2CCIP1R_FDCANSEL RCC_D2CCIP1R_FDCANSEL_Msk
  13617. #define RCC_D2CCIP1R_FDCANSEL_0 (0x1U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x10000000 */
  13618. #define RCC_D2CCIP1R_FDCANSEL_1 (0x2U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x20000000 */
  13619. #define RCC_D2CCIP1R_SWPSEL_Pos (31U)
  13620. #define RCC_D2CCIP1R_SWPSEL_Msk (0x1U << RCC_D2CCIP1R_SWPSEL_Pos) /*!< 0x80000000 */
  13621. #define RCC_D2CCIP1R_SWPSEL RCC_D2CCIP1R_SWPSEL_Msk
  13622. /******************** Bit definition for RCC_D2CCIP2R register ***************/
  13623. #define RCC_D2CCIP2R_USART16SEL_Pos (3U)
  13624. #define RCC_D2CCIP2R_USART16SEL_Msk (0x7U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000038 */
  13625. #define RCC_D2CCIP2R_USART16SEL RCC_D2CCIP2R_USART16SEL_Msk
  13626. #define RCC_D2CCIP2R_USART16SEL_0 (0x1U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000008 */
  13627. #define RCC_D2CCIP2R_USART16SEL_1 (0x2U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000010 */
  13628. #define RCC_D2CCIP2R_USART16SEL_2 (0x4U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000020 */
  13629. #define RCC_D2CCIP2R_USART28SEL_Pos (0U)
  13630. #define RCC_D2CCIP2R_USART28SEL_Msk (0x7U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000007 */
  13631. #define RCC_D2CCIP2R_USART28SEL RCC_D2CCIP2R_USART28SEL_Msk
  13632. #define RCC_D2CCIP2R_USART28SEL_0 (0x1U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000001 */
  13633. #define RCC_D2CCIP2R_USART28SEL_1 (0x2U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000002 */
  13634. #define RCC_D2CCIP2R_USART28SEL_2 (0x4U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000004 */
  13635. #define RCC_D2CCIP2R_RNGSEL_Pos (8U)
  13636. #define RCC_D2CCIP2R_RNGSEL_Msk (0x3U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000300 */
  13637. #define RCC_D2CCIP2R_RNGSEL RCC_D2CCIP2R_RNGSEL_Msk
  13638. #define RCC_D2CCIP2R_RNGSEL_0 (0x1U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000100 */
  13639. #define RCC_D2CCIP2R_RNGSEL_1 (0x2U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000200 */
  13640. #define RCC_D2CCIP2R_I2C123SEL_Pos (12U)
  13641. #define RCC_D2CCIP2R_I2C123SEL_Msk (0x3U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00003000 */
  13642. #define RCC_D2CCIP2R_I2C123SEL RCC_D2CCIP2R_I2C123SEL_Msk
  13643. #define RCC_D2CCIP2R_I2C123SEL_0 (0x1U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00001000 */
  13644. #define RCC_D2CCIP2R_I2C123SEL_1 (0x2U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00002000 */
  13645. #define RCC_D2CCIP2R_USBSEL_Pos (20U)
  13646. #define RCC_D2CCIP2R_USBSEL_Msk (0x3U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00300000 */
  13647. #define RCC_D2CCIP2R_USBSEL RCC_D2CCIP2R_USBSEL_Msk
  13648. #define RCC_D2CCIP2R_USBSEL_0 (0x1U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00100000 */
  13649. #define RCC_D2CCIP2R_USBSEL_1 (0x2U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00200000 */
  13650. #define RCC_D2CCIP2R_CECSEL_Pos (22U)
  13651. #define RCC_D2CCIP2R_CECSEL_Msk (0x3U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00C00000 */
  13652. #define RCC_D2CCIP2R_CECSEL RCC_D2CCIP2R_CECSEL_Msk
  13653. #define RCC_D2CCIP2R_CECSEL_0 (0x1U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00400000 */
  13654. #define RCC_D2CCIP2R_CECSEL_1 (0x2U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00800000 */
  13655. #define RCC_D2CCIP2R_LPTIM1SEL_Pos (28U)
  13656. #define RCC_D2CCIP2R_LPTIM1SEL_Msk (0x7U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x70000000 */
  13657. #define RCC_D2CCIP2R_LPTIM1SEL RCC_D2CCIP2R_LPTIM1SEL_Msk
  13658. #define RCC_D2CCIP2R_LPTIM1SEL_0 (0x1U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x10000000 */
  13659. #define RCC_D2CCIP2R_LPTIM1SEL_1 (0x2U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x20000000 */
  13660. #define RCC_D2CCIP2R_LPTIM1SEL_2 (0x4U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x40000000 */
  13661. /******************** Bit definition for RCC_D3CCIPR register ***************/
  13662. #define RCC_D3CCIPR_LPUART1SEL_Pos (0U)
  13663. #define RCC_D3CCIPR_LPUART1SEL_Msk (0x7U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000007 */
  13664. #define RCC_D3CCIPR_LPUART1SEL RCC_D3CCIPR_LPUART1SEL_Msk
  13665. #define RCC_D3CCIPR_LPUART1SEL_0 (0x1U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000001 */
  13666. #define RCC_D3CCIPR_LPUART1SEL_1 (0x2U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000002 */
  13667. #define RCC_D3CCIPR_LPUART1SEL_2 (0x4U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000004 */
  13668. #define RCC_D3CCIPR_I2C4SEL_Pos (8U)
  13669. #define RCC_D3CCIPR_I2C4SEL_Msk (0x3U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000300 */
  13670. #define RCC_D3CCIPR_I2C4SEL RCC_D3CCIPR_I2C4SEL_Msk
  13671. #define RCC_D3CCIPR_I2C4SEL_0 (0x1U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000100 */
  13672. #define RCC_D3CCIPR_I2C4SEL_1 (0x2U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000200 */
  13673. #define RCC_D3CCIPR_LPTIM2SEL_Pos (10U)
  13674. #define RCC_D3CCIPR_LPTIM2SEL_Msk (0x7U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001C00 */
  13675. #define RCC_D3CCIPR_LPTIM2SEL RCC_D3CCIPR_LPTIM2SEL_Msk
  13676. #define RCC_D3CCIPR_LPTIM2SEL_0 (0x1U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000400 */
  13677. #define RCC_D3CCIPR_LPTIM2SEL_1 (0x2U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000800 */
  13678. #define RCC_D3CCIPR_LPTIM2SEL_2 (0x4U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001000 */
  13679. #define RCC_D3CCIPR_LPTIM345SEL_Pos (13U)
  13680. #define RCC_D3CCIPR_LPTIM345SEL_Msk (0x7U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x0000E000 */
  13681. #define RCC_D3CCIPR_LPTIM345SEL RCC_D3CCIPR_LPTIM345SEL_Msk
  13682. #define RCC_D3CCIPR_LPTIM345SEL_0 (0x1U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00002000 */
  13683. #define RCC_D3CCIPR_LPTIM345SEL_1 (0x2U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00004000 */
  13684. #define RCC_D3CCIPR_LPTIM345SEL_2 (0x4U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00008000 */
  13685. #define RCC_D3CCIPR_SAI4ASEL_Pos (21U)
  13686. #define RCC_D3CCIPR_SAI4ASEL_Msk (0x7U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00E00000 */
  13687. #define RCC_D3CCIPR_SAI4ASEL RCC_D3CCIPR_SAI4ASEL_Msk
  13688. #define RCC_D3CCIPR_SAI4ASEL_0 (0x1U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00200000 */
  13689. #define RCC_D3CCIPR_SAI4ASEL_1 (0x2U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00400000 */
  13690. #define RCC_D3CCIPR_SAI4ASEL_2 (0x4U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00800000 */
  13691. #define RCC_D3CCIPR_SAI4BSEL_Pos (24U)
  13692. #define RCC_D3CCIPR_SAI4BSEL_Msk (0x7U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x07000000 */
  13693. #define RCC_D3CCIPR_SAI4BSEL RCC_D3CCIPR_SAI4BSEL_Msk
  13694. #define RCC_D3CCIPR_SAI4BSEL_0 (0x1U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x01000000 */
  13695. #define RCC_D3CCIPR_SAI4BSEL_1 (0x2U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x02000000 */
  13696. #define RCC_D3CCIPR_SAI4BSEL_2 (0x4U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x04000000 */
  13697. #define RCC_D3CCIPR_ADCSEL_Pos (16U)
  13698. #define RCC_D3CCIPR_ADCSEL_Msk (0x3U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00030000 */
  13699. #define RCC_D3CCIPR_ADCSEL RCC_D3CCIPR_ADCSEL_Msk
  13700. #define RCC_D3CCIPR_ADCSEL_0 (0x1U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00010000 */
  13701. #define RCC_D3CCIPR_ADCSEL_1 (0x2U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00020000 */
  13702. #define RCC_D3CCIPR_SPI6SEL_Pos (28U)
  13703. #define RCC_D3CCIPR_SPI6SEL_Msk (0x7U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x70000000 */
  13704. #define RCC_D3CCIPR_SPI6SEL RCC_D3CCIPR_SPI6SEL_Msk
  13705. #define RCC_D3CCIPR_SPI6SEL_0 (0x1U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x10000000 */
  13706. #define RCC_D3CCIPR_SPI6SEL_1 (0x2U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x20000000 */
  13707. #define RCC_D3CCIPR_SPI6SEL_2 (0x4U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x40000000 */
  13708. /******************** Bit definition for RCC_CIER register ******************/
  13709. #define RCC_CIER_LSIRDYIE_Pos (0U)
  13710. #define RCC_CIER_LSIRDYIE_Msk (0x1U << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */
  13711. #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk
  13712. #define RCC_CIER_LSERDYIE_Pos (1U)
  13713. #define RCC_CIER_LSERDYIE_Msk (0x1U << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */
  13714. #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk
  13715. #define RCC_CIER_HSIRDYIE_Pos (2U)
  13716. #define RCC_CIER_HSIRDYIE_Msk (0x1U << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000004 */
  13717. #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk
  13718. #define RCC_CIER_HSERDYIE_Pos (3U)
  13719. #define RCC_CIER_HSERDYIE_Msk (0x1U << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000008 */
  13720. #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk
  13721. #define RCC_CIER_CSIRDYIE_Pos (4U)
  13722. #define RCC_CIER_CSIRDYIE_Msk (0x1U << RCC_CIER_CSIRDYIE_Pos) /*!< 0x00000010 */
  13723. #define RCC_CIER_CSIRDYIE RCC_CIER_CSIRDYIE_Msk
  13724. #define RCC_CIER_HSI48RDYIE_Pos (5U)
  13725. #define RCC_CIER_HSI48RDYIE_Msk (0x1U << RCC_CIER_HSI48RDYIE_Pos) /*!< 0x00000020 */
  13726. #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk
  13727. #define RCC_CIER_PLL1RDYIE_Pos (6U)
  13728. #define RCC_CIER_PLL1RDYIE_Msk (0x1U << RCC_CIER_PLL1RDYIE_Pos) /*!< 0x00000040 */
  13729. #define RCC_CIER_PLL1RDYIE RCC_CIER_PLL1RDYIE_Msk
  13730. #define RCC_CIER_PLL2RDYIE_Pos (7U)
  13731. #define RCC_CIER_PLL2RDYIE_Msk (0x1U << RCC_CIER_PLL2RDYIE_Pos) /*!< 0x00000080 */
  13732. #define RCC_CIER_PLL2RDYIE RCC_CIER_PLL2RDYIE_Msk
  13733. #define RCC_CIER_PLL3RDYIE_Pos (8U)
  13734. #define RCC_CIER_PLL3RDYIE_Msk (0x1U << RCC_CIER_PLL3RDYIE_Pos) /*!< 0x00000100 */
  13735. #define RCC_CIER_PLL3RDYIE RCC_CIER_PLL3RDYIE_Msk
  13736. #define RCC_CIER_LSECSSIE_Pos (9U)
  13737. #define RCC_CIER_LSECSSIE_Msk (0x1U << RCC_CIER_LSECSSIE_Pos) /*!< 0x00000200 */
  13738. #define RCC_CIER_LSECSSIE RCC_CIER_LSECSSIE_Msk
  13739. /******************** Bit definition for RCC_CIFR register ******************/
  13740. #define RCC_CIFR_LSIRDYF_Pos (0U)
  13741. #define RCC_CIFR_LSIRDYF_Msk (0x1U << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */
  13742. #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk
  13743. #define RCC_CIFR_LSERDYF_Pos (1U)
  13744. #define RCC_CIFR_LSERDYF_Msk (0x1U << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */
  13745. #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk
  13746. #define RCC_CIFR_HSIRDYF_Pos (2U)
  13747. #define RCC_CIFR_HSIRDYF_Msk (0x1U << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000004 */
  13748. #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk
  13749. #define RCC_CIFR_HSERDYF_Pos (3U)
  13750. #define RCC_CIFR_HSERDYF_Msk (0x1U << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000008 */
  13751. #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk
  13752. #define RCC_CIFR_CSIRDYF_Pos (4U)
  13753. #define RCC_CIFR_CSIRDYF_Msk (0x1U << RCC_CIFR_CSIRDYF_Pos) /*!< 0x00000010 */
  13754. #define RCC_CIFR_CSIRDYF RCC_CIFR_CSIRDYF_Msk
  13755. #define RCC_CIFR_HSI48RDYF_Pos (5U)
  13756. #define RCC_CIFR_HSI48RDYF_Msk (0x1U << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000020 */
  13757. #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk
  13758. #define RCC_CIFR_PLLRDYF_Pos (6U)
  13759. #define RCC_CIFR_PLLRDYF_Msk (0x1U << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000040 */
  13760. #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk
  13761. #define RCC_CIFR_PLL2RDYF_Pos (7U)
  13762. #define RCC_CIFR_PLL2RDYF_Msk (0x1U << RCC_CIFR_PLL2RDYF_Pos) /*!< 0x00000080 */
  13763. #define RCC_CIFR_PLL2RDYF RCC_CIFR_PLL2RDYF_Msk
  13764. #define RCC_CIFR_PLL3RDYF_Pos (8U)
  13765. #define RCC_CIFR_PLL3RDYF_Msk (0x1U << RCC_CIFR_PLL3RDYF_Pos) /*!< 0x00000100 */
  13766. #define RCC_CIFR_PLL3RDYF RCC_CIFR_PLL3RDYF_Msk
  13767. #define RCC_CIFR_LSECSSF_Pos (9U)
  13768. #define RCC_CIFR_LSECSSF_Msk (0x1U << RCC_CIFR_LSECSSF_Pos) /*!< 0x00000200 */
  13769. #define RCC_CIFR_LSECSSF RCC_CIFR_LSECSSF_Msk
  13770. #define RCC_CIFR_HSECSSF_Pos (10U)
  13771. #define RCC_CIFR_HSECSSF_Msk (0x1U << RCC_CIFR_HSECSSF_Pos) /*!< 0x00000400 */
  13772. #define RCC_CIFR_HSECSSF RCC_CIFR_HSECSSF_Msk
  13773. /******************** Bit definition for RCC_CICR register ******************/
  13774. #define RCC_CICR_LSIRDYC_Pos (0U)
  13775. #define RCC_CICR_LSIRDYC_Msk (0x1U << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */
  13776. #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk
  13777. #define RCC_CICR_LSERDYC_Pos (1U)
  13778. #define RCC_CICR_LSERDYC_Msk (0x1U << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */
  13779. #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk
  13780. #define RCC_CICR_HSIRDYC_Pos (2U)
  13781. #define RCC_CICR_HSIRDYC_Msk (0x1U << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000004 */
  13782. #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk
  13783. #define RCC_CICR_HSERDYC_Pos (3U)
  13784. #define RCC_CICR_HSERDYC_Msk (0x1U << RCC_CICR_HSERDYC_Pos) /*!< 0x00000008 */
  13785. #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk
  13786. #define RCC_CICR_CSIRDYC_Pos (4U)
  13787. #define RCC_CICR_CSIRDYC_Msk (0x1U << RCC_CICR_CSIRDYC_Pos) /*!< 0x00000010 */
  13788. #define RCC_CICR_CSIRDYC RCC_CICR_CSIRDYC_Msk
  13789. #define RCC_CICR_HSI48RDYC_Pos (5U)
  13790. #define RCC_CICR_HSI48RDYC_Msk (0x1U << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000020 */
  13791. #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk
  13792. #define RCC_CICR_PLLRDYC_Pos (6U)
  13793. #define RCC_CICR_PLLRDYC_Msk (0x1U << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000040 */
  13794. #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk
  13795. #define RCC_CICR_PLL2RDYC_Pos (7U)
  13796. #define RCC_CICR_PLL2RDYC_Msk (0x1U << RCC_CICR_PLL2RDYC_Pos) /*!< 0x00000080 */
  13797. #define RCC_CICR_PLL2RDYC RCC_CICR_PLL2RDYC_Msk
  13798. #define RCC_CICR_PLL3RDYC_Pos (8U)
  13799. #define RCC_CICR_PLL3RDYC_Msk (0x1U << RCC_CICR_PLL3RDYC_Pos) /*!< 0x00000100 */
  13800. #define RCC_CICR_PLL3RDYC RCC_CICR_PLL3RDYC_Msk
  13801. #define RCC_CICR_LSECSSC_Pos (9U)
  13802. #define RCC_CICR_LSECSSC_Msk (0x1U << RCC_CICR_LSECSSC_Pos) /*!< 0x00000200 */
  13803. #define RCC_CICR_LSECSSC RCC_CICR_LSECSSC_Msk
  13804. #define RCC_CICR_HSECSSC_Pos (10U)
  13805. #define RCC_CICR_HSECSSC_Msk (0x1U << RCC_CICR_HSECSSC_Pos) /*!< 0x00000400 */
  13806. #define RCC_CICR_HSECSSC RCC_CICR_HSECSSC_Msk
  13807. /******************** Bit definition for RCC_BDCR register ******************/
  13808. #define RCC_BDCR_LSEON_Pos (0U)
  13809. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  13810. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk
  13811. #define RCC_BDCR_LSERDY_Pos (1U)
  13812. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  13813. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk
  13814. #define RCC_BDCR_LSEBYP_Pos (2U)
  13815. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  13816. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk
  13817. #define RCC_BDCR_LSEDRV_Pos (3U)
  13818. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  13819. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk
  13820. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  13821. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  13822. #define RCC_BDCR_LSECSSON_Pos (5U)
  13823. #define RCC_BDCR_LSECSSON_Msk (0x1U << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */
  13824. #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk
  13825. #define RCC_BDCR_LSECSSD_Pos (6U)
  13826. #define RCC_BDCR_LSECSSD_Msk (0x1U << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */
  13827. #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk
  13828. #define RCC_BDCR_RTCSEL_Pos (8U)
  13829. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  13830. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk
  13831. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  13832. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  13833. #define RCC_BDCR_RTCEN_Pos (15U)
  13834. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  13835. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk
  13836. #define RCC_BDCR_BDRST_Pos (16U)
  13837. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  13838. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk
  13839. /******************** Bit definition for RCC_CSR register *******************/
  13840. #define RCC_CSR_LSION_Pos (0U)
  13841. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  13842. #define RCC_CSR_LSION RCC_CSR_LSION_Msk
  13843. #define RCC_CSR_LSIRDY_Pos (1U)
  13844. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  13845. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk
  13846. /******************** Bit definition for RCC_AHB3ENR register **************/
  13847. #define RCC_AHB3ENR_MDMAEN_Pos (0U)
  13848. #define RCC_AHB3ENR_MDMAEN_Msk (0x1U << RCC_AHB3ENR_MDMAEN_Pos) /*!< 0x00000001 */
  13849. #define RCC_AHB3ENR_MDMAEN RCC_AHB3ENR_MDMAEN_Msk
  13850. #define RCC_AHB3ENR_DMA2DEN_Pos (4U)
  13851. #define RCC_AHB3ENR_DMA2DEN_Msk (0x1U << RCC_AHB3ENR_DMA2DEN_Pos) /*!< 0x00000010 */
  13852. #define RCC_AHB3ENR_DMA2DEN RCC_AHB3ENR_DMA2DEN_Msk
  13853. #define RCC_AHB3ENR_JPGDECEN_Pos (5U)
  13854. #define RCC_AHB3ENR_JPGDECEN_Msk (0x1U << RCC_AHB3ENR_JPGDECEN_Pos) /*!< 0x00000020 */
  13855. #define RCC_AHB3ENR_JPGDECEN RCC_AHB3ENR_JPGDECEN_Msk
  13856. #define RCC_AHB3ENR_FMCEN_Pos (12U)
  13857. #define RCC_AHB3ENR_FMCEN_Msk (0x1U << RCC_AHB3ENR_FMCEN_Pos) /*!< 0x00001000 */
  13858. #define RCC_AHB3ENR_FMCEN RCC_AHB3ENR_FMCEN_Msk
  13859. #define RCC_AHB3ENR_QSPIEN_Pos (14U)
  13860. #define RCC_AHB3ENR_QSPIEN_Msk (0x1U << RCC_AHB3ENR_QSPIEN_Pos) /*!< 0x00004000 */
  13861. #define RCC_AHB3ENR_QSPIEN RCC_AHB3ENR_QSPIEN_Msk
  13862. #define RCC_AHB3ENR_SDMMC1EN_Pos (16U)
  13863. #define RCC_AHB3ENR_SDMMC1EN_Msk (0x1U << RCC_AHB3ENR_SDMMC1EN_Pos) /*!< 0x00010000 */
  13864. #define RCC_AHB3ENR_SDMMC1EN RCC_AHB3ENR_SDMMC1EN_Msk
  13865. /******************** Bit definition for RCC_AHB1ENR register ***************/
  13866. #define RCC_AHB1ENR_DMA1EN_Pos (0U)
  13867. #define RCC_AHB1ENR_DMA1EN_Msk (0x1U << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */
  13868. #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk
  13869. #define RCC_AHB1ENR_DMA2EN_Pos (1U)
  13870. #define RCC_AHB1ENR_DMA2EN_Msk (0x1U << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */
  13871. #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk
  13872. #define RCC_AHB1ENR_ADC12EN_Pos (5U)
  13873. #define RCC_AHB1ENR_ADC12EN_Msk (0x1U << RCC_AHB1ENR_ADC12EN_Pos) /*!< 0x00000020 */
  13874. #define RCC_AHB1ENR_ADC12EN RCC_AHB1ENR_ADC12EN_Msk
  13875. #define RCC_AHB1ENR_ETH1MACEN_Pos (15U)
  13876. #define RCC_AHB1ENR_ETH1MACEN_Msk (0x1U << RCC_AHB1ENR_ETH1MACEN_Pos) /*!< 0x00008000 */
  13877. #define RCC_AHB1ENR_ETH1MACEN RCC_AHB1ENR_ETH1MACEN_Msk
  13878. #define RCC_AHB1ENR_ETH1TXEN_Pos (16U)
  13879. #define RCC_AHB1ENR_ETH1TXEN_Msk (0x1U << RCC_AHB1ENR_ETH1TXEN_Pos) /*!< 0x00010000 */
  13880. #define RCC_AHB1ENR_ETH1TXEN RCC_AHB1ENR_ETH1TXEN_Msk
  13881. #define RCC_AHB1ENR_ETH1RXEN_Pos (17U)
  13882. #define RCC_AHB1ENR_ETH1RXEN_Msk (0x1U << RCC_AHB1ENR_ETH1RXEN_Pos) /*!< 0x00020000 */
  13883. #define RCC_AHB1ENR_ETH1RXEN RCC_AHB1ENR_ETH1RXEN_Msk
  13884. #define RCC_AHB1ENR_USB1OTGHSEN_Pos (25U)
  13885. #define RCC_AHB1ENR_USB1OTGHSEN_Msk (0x1U << RCC_AHB1ENR_USB1OTGHSEN_Pos) /*!< 0x02000000 */
  13886. #define RCC_AHB1ENR_USB1OTGHSEN RCC_AHB1ENR_USB1OTGHSEN_Msk
  13887. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Pos (26U)
  13888. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Msk (0x1U << RCC_AHB1ENR_USB1OTGHSULPIEN_Pos) /*!< 0x04000000 */
  13889. #define RCC_AHB1ENR_USB1OTGHSULPIEN RCC_AHB1ENR_USB1OTGHSULPIEN_Msk
  13890. #define RCC_AHB1ENR_USB2OTGHSEN_Pos (27U)
  13891. #define RCC_AHB1ENR_USB2OTGHSEN_Msk (0x1U << RCC_AHB1ENR_USB2OTGHSEN_Pos) /*!< 0x08000000 */
  13892. #define RCC_AHB1ENR_USB2OTGHSEN RCC_AHB1ENR_USB2OTGHSEN_Msk
  13893. #define RCC_AHB1ENR_USB2OTGHSULPIEN_Pos (28U)
  13894. #define RCC_AHB1ENR_USB2OTGHSULPIEN_Msk (0x1U << RCC_AHB1ENR_USB2OTGHSULPIEN_Pos) /*!< 0x10000000 */
  13895. #define RCC_AHB1ENR_USB2OTGHSULPIEN RCC_AHB1ENR_USB2OTGHSULPIEN_Msk
  13896. /******************** Bit definition for RCC_AHB2ENR register ***************/
  13897. #define RCC_AHB2ENR_DCMIEN_Pos (0U)
  13898. #define RCC_AHB2ENR_DCMIEN_Msk (0x1U << RCC_AHB2ENR_DCMIEN_Pos) /*!< 0x00000001 */
  13899. #define RCC_AHB2ENR_DCMIEN RCC_AHB2ENR_DCMIEN_Msk
  13900. #define RCC_AHB2ENR_CRYPEN_Pos (4U)
  13901. #define RCC_AHB2ENR_CRYPEN_Msk (0x1U << RCC_AHB2ENR_CRYPEN_Pos) /*!< 0x00000010 */
  13902. #define RCC_AHB2ENR_CRYPEN RCC_AHB2ENR_CRYPEN_Msk
  13903. #define RCC_AHB2ENR_HASHEN_Pos (5U)
  13904. #define RCC_AHB2ENR_HASHEN_Msk (0x1U << RCC_AHB2ENR_HASHEN_Pos) /*!< 0x00000020 */
  13905. #define RCC_AHB2ENR_HASHEN RCC_AHB2ENR_HASHEN_Msk
  13906. #define RCC_AHB2ENR_RNGEN_Pos (6U)
  13907. #define RCC_AHB2ENR_RNGEN_Msk (0x1U << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00000040 */
  13908. #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk
  13909. #define RCC_AHB2ENR_SDMMC2EN_Pos (9U)
  13910. #define RCC_AHB2ENR_SDMMC2EN_Msk (0x1U << RCC_AHB2ENR_SDMMC2EN_Pos) /*!< 0x00000200 */
  13911. #define RCC_AHB2ENR_SDMMC2EN RCC_AHB2ENR_SDMMC2EN_Msk
  13912. #define RCC_AHB2ENR_D2SRAM1EN_Pos (29U)
  13913. #define RCC_AHB2ENR_D2SRAM1EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM1EN_Pos) /*!< 0x20000000 */
  13914. #define RCC_AHB2ENR_D2SRAM1EN RCC_AHB2ENR_D2SRAM1EN_Msk
  13915. #define RCC_AHB2ENR_D2SRAM2EN_Pos (30U)
  13916. #define RCC_AHB2ENR_D2SRAM2EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM2EN_Pos) /*!< 0x40000000 */
  13917. #define RCC_AHB2ENR_D2SRAM2EN RCC_AHB2ENR_D2SRAM2EN_Msk
  13918. #define RCC_AHB2ENR_D2SRAM3EN_Pos (31U)
  13919. #define RCC_AHB2ENR_D2SRAM3EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM3EN_Pos) /*!< 0x80000000 */
  13920. #define RCC_AHB2ENR_D2SRAM3EN RCC_AHB2ENR_D2SRAM3EN_Msk
  13921. /******************** Bit definition for RCC_AHB4ENR register ******************/
  13922. #define RCC_AHB4ENR_GPIOAEN_Pos (0U)
  13923. #define RCC_AHB4ENR_GPIOAEN_Msk (0x1U << RCC_AHB4ENR_GPIOAEN_Pos) /*!< 0x00000001 */
  13924. #define RCC_AHB4ENR_GPIOAEN RCC_AHB4ENR_GPIOAEN_Msk
  13925. #define RCC_AHB4ENR_GPIOBEN_Pos (1U)
  13926. #define RCC_AHB4ENR_GPIOBEN_Msk (0x1U << RCC_AHB4ENR_GPIOBEN_Pos) /*!< 0x00000002 */
  13927. #define RCC_AHB4ENR_GPIOBEN RCC_AHB4ENR_GPIOBEN_Msk
  13928. #define RCC_AHB4ENR_GPIOCEN_Pos (2U)
  13929. #define RCC_AHB4ENR_GPIOCEN_Msk (0x1U << RCC_AHB4ENR_GPIOCEN_Pos) /*!< 0x00000004 */
  13930. #define RCC_AHB4ENR_GPIOCEN RCC_AHB4ENR_GPIOCEN_Msk
  13931. #define RCC_AHB4ENR_GPIODEN_Pos (3U)
  13932. #define RCC_AHB4ENR_GPIODEN_Msk (0x1U << RCC_AHB4ENR_GPIODEN_Pos) /*!< 0x00000008 */
  13933. #define RCC_AHB4ENR_GPIODEN RCC_AHB4ENR_GPIODEN_Msk
  13934. #define RCC_AHB4ENR_GPIOEEN_Pos (4U)
  13935. #define RCC_AHB4ENR_GPIOEEN_Msk (0x1U << RCC_AHB4ENR_GPIOEEN_Pos) /*!< 0x00000010 */
  13936. #define RCC_AHB4ENR_GPIOEEN RCC_AHB4ENR_GPIOEEN_Msk
  13937. #define RCC_AHB4ENR_GPIOFEN_Pos (5U)
  13938. #define RCC_AHB4ENR_GPIOFEN_Msk (0x1U << RCC_AHB4ENR_GPIOFEN_Pos) /*!< 0x00000020 */
  13939. #define RCC_AHB4ENR_GPIOFEN RCC_AHB4ENR_GPIOFEN_Msk
  13940. #define RCC_AHB4ENR_GPIOGEN_Pos (6U)
  13941. #define RCC_AHB4ENR_GPIOGEN_Msk (0x1U << RCC_AHB4ENR_GPIOGEN_Pos) /*!< 0x00000040 */
  13942. #define RCC_AHB4ENR_GPIOGEN RCC_AHB4ENR_GPIOGEN_Msk
  13943. #define RCC_AHB4ENR_GPIOHEN_Pos (7U)
  13944. #define RCC_AHB4ENR_GPIOHEN_Msk (0x1U << RCC_AHB4ENR_GPIOHEN_Pos) /*!< 0x00000080 */
  13945. #define RCC_AHB4ENR_GPIOHEN RCC_AHB4ENR_GPIOHEN_Msk
  13946. #define RCC_AHB4ENR_GPIOIEN_Pos (8U)
  13947. #define RCC_AHB4ENR_GPIOIEN_Msk (0x1U << RCC_AHB4ENR_GPIOIEN_Pos) /*!< 0x00000100 */
  13948. #define RCC_AHB4ENR_GPIOIEN RCC_AHB4ENR_GPIOIEN_Msk
  13949. #define RCC_AHB4ENR_GPIOJEN_Pos (9U)
  13950. #define RCC_AHB4ENR_GPIOJEN_Msk (0x1U << RCC_AHB4ENR_GPIOJEN_Pos) /*!< 0x00000200 */
  13951. #define RCC_AHB4ENR_GPIOJEN RCC_AHB4ENR_GPIOJEN_Msk
  13952. #define RCC_AHB4ENR_GPIOKEN_Pos (10U)
  13953. #define RCC_AHB4ENR_GPIOKEN_Msk (0x1U << RCC_AHB4ENR_GPIOKEN_Pos) /*!< 0x00000400 */
  13954. #define RCC_AHB4ENR_GPIOKEN RCC_AHB4ENR_GPIOKEN_Msk
  13955. #define RCC_AHB4ENR_CRCEN_Pos (19U)
  13956. #define RCC_AHB4ENR_CRCEN_Msk (0x1U << RCC_AHB4ENR_CRCEN_Pos) /*!< 0x00080000 */
  13957. #define RCC_AHB4ENR_CRCEN RCC_AHB4ENR_CRCEN_Msk
  13958. #define RCC_AHB4ENR_BDMAEN_Pos (21U)
  13959. #define RCC_AHB4ENR_BDMAEN_Msk (0x1U << RCC_AHB4ENR_BDMAEN_Pos) /*!< 0x00200000 */
  13960. #define RCC_AHB4ENR_BDMAEN RCC_AHB4ENR_BDMAEN_Msk
  13961. #define RCC_AHB4ENR_ADC3EN_Pos (24U)
  13962. #define RCC_AHB4ENR_ADC3EN_Msk (0x1U << RCC_AHB4ENR_ADC3EN_Pos) /*!< 0x01000000 */
  13963. #define RCC_AHB4ENR_ADC3EN RCC_AHB4ENR_ADC3EN_Msk
  13964. #define RCC_AHB4ENR_HSEMEN_Pos (25U)
  13965. #define RCC_AHB4ENR_HSEMEN_Msk (0x1U << RCC_AHB4ENR_HSEMEN_Pos) /*!< 0x02000000 */
  13966. #define RCC_AHB4ENR_HSEMEN RCC_AHB4ENR_HSEMEN_Msk
  13967. #define RCC_AHB4ENR_BKPRAMEN_Pos (28U)
  13968. #define RCC_AHB4ENR_BKPRAMEN_Msk (0x1U << RCC_AHB4ENR_BKPRAMEN_Pos) /*!< 0x10000000 */
  13969. #define RCC_AHB4ENR_BKPRAMEN RCC_AHB4ENR_BKPRAMEN_Msk
  13970. /******************** Bit definition for RCC_APB3ENR register ******************/
  13971. #define RCC_APB3ENR_LTDCEN_Pos (3U)
  13972. #define RCC_APB3ENR_LTDCEN_Msk (0x1U << RCC_APB3ENR_LTDCEN_Pos) /*!< 0x00000008 */
  13973. #define RCC_APB3ENR_LTDCEN RCC_APB3ENR_LTDCEN_Msk
  13974. #define RCC_APB3ENR_WWDG1EN_Pos (6U)
  13975. #define RCC_APB3ENR_WWDG1EN_Msk (0x1U << RCC_APB3ENR_WWDG1EN_Pos) /*!< 0x00000040 */
  13976. #define RCC_APB3ENR_WWDG1EN RCC_APB3ENR_WWDG1EN_Msk
  13977. /******************** Bit definition for RCC_APB1LENR register ******************/
  13978. #define RCC_APB1LENR_TIM2EN_Pos (0U)
  13979. #define RCC_APB1LENR_TIM2EN_Msk (0x1U << RCC_APB1LENR_TIM2EN_Pos) /*!< 0x00000001 */
  13980. #define RCC_APB1LENR_TIM2EN RCC_APB1LENR_TIM2EN_Msk
  13981. #define RCC_APB1LENR_TIM3EN_Pos (1U)
  13982. #define RCC_APB1LENR_TIM3EN_Msk (0x1U << RCC_APB1LENR_TIM3EN_Pos) /*!< 0x00000002 */
  13983. #define RCC_APB1LENR_TIM3EN RCC_APB1LENR_TIM3EN_Msk
  13984. #define RCC_APB1LENR_TIM4EN_Pos (2U)
  13985. #define RCC_APB1LENR_TIM4EN_Msk (0x1U << RCC_APB1LENR_TIM4EN_Pos) /*!< 0x00000004 */
  13986. #define RCC_APB1LENR_TIM4EN RCC_APB1LENR_TIM4EN_Msk
  13987. #define RCC_APB1LENR_TIM5EN_Pos (3U)
  13988. #define RCC_APB1LENR_TIM5EN_Msk (0x1U << RCC_APB1LENR_TIM5EN_Pos) /*!< 0x00000008 */
  13989. #define RCC_APB1LENR_TIM5EN RCC_APB1LENR_TIM5EN_Msk
  13990. #define RCC_APB1LENR_TIM6EN_Pos (4U)
  13991. #define RCC_APB1LENR_TIM6EN_Msk (0x1U << RCC_APB1LENR_TIM6EN_Pos) /*!< 0x00000010 */
  13992. #define RCC_APB1LENR_TIM6EN RCC_APB1LENR_TIM6EN_Msk
  13993. #define RCC_APB1LENR_TIM7EN_Pos (5U)
  13994. #define RCC_APB1LENR_TIM7EN_Msk (0x1U << RCC_APB1LENR_TIM7EN_Pos) /*!< 0x00000020 */
  13995. #define RCC_APB1LENR_TIM7EN RCC_APB1LENR_TIM7EN_Msk
  13996. #define RCC_APB1LENR_TIM12EN_Pos (6U)
  13997. #define RCC_APB1LENR_TIM12EN_Msk (0x1U << RCC_APB1LENR_TIM12EN_Pos) /*!< 0x00000040 */
  13998. #define RCC_APB1LENR_TIM12EN RCC_APB1LENR_TIM12EN_Msk
  13999. #define RCC_APB1LENR_TIM13EN_Pos (7U)
  14000. #define RCC_APB1LENR_TIM13EN_Msk (0x1U << RCC_APB1LENR_TIM13EN_Pos) /*!< 0x00000080 */
  14001. #define RCC_APB1LENR_TIM13EN RCC_APB1LENR_TIM13EN_Msk
  14002. #define RCC_APB1LENR_TIM14EN_Pos (8U)
  14003. #define RCC_APB1LENR_TIM14EN_Msk (0x1U << RCC_APB1LENR_TIM14EN_Pos) /*!< 0x00000100 */
  14004. #define RCC_APB1LENR_TIM14EN RCC_APB1LENR_TIM14EN_Msk
  14005. #define RCC_APB1LENR_LPTIM1EN_Pos (9U)
  14006. #define RCC_APB1LENR_LPTIM1EN_Msk (0x1U << RCC_APB1LENR_LPTIM1EN_Pos) /*!< 0x00000200 */
  14007. #define RCC_APB1LENR_LPTIM1EN RCC_APB1LENR_LPTIM1EN_Msk
  14008. #define RCC_APB1LENR_SPI2EN_Pos (14U)
  14009. #define RCC_APB1LENR_SPI2EN_Msk (0x1U << RCC_APB1LENR_SPI2EN_Pos) /*!< 0x00004000 */
  14010. #define RCC_APB1LENR_SPI2EN RCC_APB1LENR_SPI2EN_Msk
  14011. #define RCC_APB1LENR_SPI3EN_Pos (15U)
  14012. #define RCC_APB1LENR_SPI3EN_Msk (0x1U << RCC_APB1LENR_SPI3EN_Pos) /*!< 0x00008000 */
  14013. #define RCC_APB1LENR_SPI3EN RCC_APB1LENR_SPI3EN_Msk
  14014. #define RCC_APB1LENR_SPDIFRXEN_Pos (16U)
  14015. #define RCC_APB1LENR_SPDIFRXEN_Msk (0x1U << RCC_APB1LENR_SPDIFRXEN_Pos) /*!< 0x00010000 */
  14016. #define RCC_APB1LENR_SPDIFRXEN RCC_APB1LENR_SPDIFRXEN_Msk
  14017. #define RCC_APB1LENR_USART2EN_Pos (17U)
  14018. #define RCC_APB1LENR_USART2EN_Msk (0x1U << RCC_APB1LENR_USART2EN_Pos) /*!< 0x00020000 */
  14019. #define RCC_APB1LENR_USART2EN RCC_APB1LENR_USART2EN_Msk
  14020. #define RCC_APB1LENR_USART3EN_Pos (18U)
  14021. #define RCC_APB1LENR_USART3EN_Msk (0x1U << RCC_APB1LENR_USART3EN_Pos) /*!< 0x00040000 */
  14022. #define RCC_APB1LENR_USART3EN RCC_APB1LENR_USART3EN_Msk
  14023. #define RCC_APB1LENR_UART4EN_Pos (19U)
  14024. #define RCC_APB1LENR_UART4EN_Msk (0x1U << RCC_APB1LENR_UART4EN_Pos) /*!< 0x00080000 */
  14025. #define RCC_APB1LENR_UART4EN RCC_APB1LENR_UART4EN_Msk
  14026. #define RCC_APB1LENR_UART5EN_Pos (20U)
  14027. #define RCC_APB1LENR_UART5EN_Msk (0x1U << RCC_APB1LENR_UART5EN_Pos) /*!< 0x00100000 */
  14028. #define RCC_APB1LENR_UART5EN RCC_APB1LENR_UART5EN_Msk
  14029. #define RCC_APB1LENR_I2C1EN_Pos (21U)
  14030. #define RCC_APB1LENR_I2C1EN_Msk (0x1U << RCC_APB1LENR_I2C1EN_Pos) /*!< 0x00200000 */
  14031. #define RCC_APB1LENR_I2C1EN RCC_APB1LENR_I2C1EN_Msk
  14032. #define RCC_APB1LENR_I2C2EN_Pos (22U)
  14033. #define RCC_APB1LENR_I2C2EN_Msk (0x1U << RCC_APB1LENR_I2C2EN_Pos) /*!< 0x00400000 */
  14034. #define RCC_APB1LENR_I2C2EN RCC_APB1LENR_I2C2EN_Msk
  14035. #define RCC_APB1LENR_I2C3EN_Pos (23U)
  14036. #define RCC_APB1LENR_I2C3EN_Msk (0x1U << RCC_APB1LENR_I2C3EN_Pos) /*!< 0x00800000 */
  14037. #define RCC_APB1LENR_I2C3EN RCC_APB1LENR_I2C3EN_Msk
  14038. #define RCC_APB1LENR_CECEN_Pos (27U)
  14039. #define RCC_APB1LENR_CECEN_Msk (0x1U << RCC_APB1LENR_CECEN_Pos) /*!< 0x08000000 */
  14040. #define RCC_APB1LENR_CECEN RCC_APB1LENR_CECEN_Msk
  14041. #define RCC_APB1LENR_DAC12EN_Pos (29U)
  14042. #define RCC_APB1LENR_DAC12EN_Msk (0x1U << RCC_APB1LENR_DAC12EN_Pos) /*!< 0x20000000 */
  14043. #define RCC_APB1LENR_DAC12EN RCC_APB1LENR_DAC12EN_Msk
  14044. #define RCC_APB1LENR_UART7EN_Pos (30U)
  14045. #define RCC_APB1LENR_UART7EN_Msk (0x1U << RCC_APB1LENR_UART7EN_Pos) /*!< 0x40000000 */
  14046. #define RCC_APB1LENR_UART7EN RCC_APB1LENR_UART7EN_Msk
  14047. #define RCC_APB1LENR_UART8EN_Pos (31U)
  14048. #define RCC_APB1LENR_UART8EN_Msk (0x1U << RCC_APB1LENR_UART8EN_Pos) /*!< 0x80000000 */
  14049. #define RCC_APB1LENR_UART8EN RCC_APB1LENR_UART8EN_Msk
  14050. /******************** Bit definition for RCC_APB1HENR register ******************/
  14051. #define RCC_APB1HENR_CRSEN_Pos (1U)
  14052. #define RCC_APB1HENR_CRSEN_Msk (0x1U << RCC_APB1HENR_CRSEN_Pos) /*!< 0x00000002 */
  14053. #define RCC_APB1HENR_CRSEN RCC_APB1HENR_CRSEN_Msk
  14054. #define RCC_APB1HENR_SWPMIEN_Pos (2U)
  14055. #define RCC_APB1HENR_SWPMIEN_Msk (0x1U << RCC_APB1HENR_SWPMIEN_Pos) /*!< 0x00000004 */
  14056. #define RCC_APB1HENR_SWPMIEN RCC_APB1HENR_SWPMIEN_Msk
  14057. #define RCC_APB1HENR_OPAMPEN_Pos (4U)
  14058. #define RCC_APB1HENR_OPAMPEN_Msk (0x1U << RCC_APB1HENR_OPAMPEN_Pos) /*!< 0x00000010 */
  14059. #define RCC_APB1HENR_OPAMPEN RCC_APB1HENR_OPAMPEN_Msk
  14060. #define RCC_APB1HENR_MDIOSEN_Pos (5U)
  14061. #define RCC_APB1HENR_MDIOSEN_Msk (0x1U << RCC_APB1HENR_MDIOSEN_Pos) /*!< 0x00000020 */
  14062. #define RCC_APB1HENR_MDIOSEN RCC_APB1HENR_MDIOSEN_Msk
  14063. #define RCC_APB1HENR_FDCANEN_Pos (8U)
  14064. #define RCC_APB1HENR_FDCANEN_Msk (0x1U << RCC_APB1HENR_FDCANEN_Pos) /*!< 0x00000100 */
  14065. #define RCC_APB1HENR_FDCANEN RCC_APB1HENR_FDCANEN_Msk
  14066. /******************** Bit definition for RCC_APB2ENR register ******************/
  14067. #define RCC_APB2ENR_TIM1EN_Pos (0U)
  14068. #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000001 */
  14069. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk
  14070. #define RCC_APB2ENR_TIM8EN_Pos (1U)
  14071. #define RCC_APB2ENR_TIM8EN_Msk (0x1U << RCC_APB2ENR_TIM8EN_Pos) /*!< 0x00000002 */
  14072. #define RCC_APB2ENR_TIM8EN RCC_APB2ENR_TIM8EN_Msk
  14073. #define RCC_APB2ENR_USART1EN_Pos (4U)
  14074. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00000010 */
  14075. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk
  14076. #define RCC_APB2ENR_USART6EN_Pos (5U)
  14077. #define RCC_APB2ENR_USART6EN_Msk (0x1U << RCC_APB2ENR_USART6EN_Pos) /*!< 0x00000020 */
  14078. #define RCC_APB2ENR_USART6EN RCC_APB2ENR_USART6EN_Msk
  14079. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  14080. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  14081. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk
  14082. #define RCC_APB2ENR_SPI4EN_Pos (13U)
  14083. #define RCC_APB2ENR_SPI4EN_Msk (0x1U << RCC_APB2ENR_SPI4EN_Pos) /*!< 0x00002000 */
  14084. #define RCC_APB2ENR_SPI4EN RCC_APB2ENR_SPI4EN_Msk
  14085. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  14086. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  14087. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk
  14088. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  14089. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  14090. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk
  14091. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  14092. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  14093. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk
  14094. #define RCC_APB2ENR_SPI5EN_Pos (20U)
  14095. #define RCC_APB2ENR_SPI5EN_Msk (0x1U << RCC_APB2ENR_SPI5EN_Pos) /*!< 0x00100000 */
  14096. #define RCC_APB2ENR_SPI5EN RCC_APB2ENR_SPI5EN_Msk
  14097. #define RCC_APB2ENR_SAI1EN_Pos (22U)
  14098. #define RCC_APB2ENR_SAI1EN_Msk (0x1U << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00400000 */
  14099. #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk
  14100. #define RCC_APB2ENR_SAI2EN_Pos (23U)
  14101. #define RCC_APB2ENR_SAI2EN_Msk (0x1U << RCC_APB2ENR_SAI2EN_Pos) /*!< 0x00800000 */
  14102. #define RCC_APB2ENR_SAI2EN RCC_APB2ENR_SAI2EN_Msk
  14103. #define RCC_APB2ENR_SAI3EN_Pos (24U)
  14104. #define RCC_APB2ENR_SAI3EN_Msk (0x1U << RCC_APB2ENR_SAI3EN_Pos) /*!< 0x01000000 */
  14105. #define RCC_APB2ENR_SAI3EN RCC_APB2ENR_SAI3EN_Msk
  14106. #define RCC_APB2ENR_DFSDM1EN_Pos (28U)
  14107. #define RCC_APB2ENR_DFSDM1EN_Msk (0x1U << RCC_APB2ENR_DFSDM1EN_Pos) /*!< 0x10000000 */
  14108. #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk
  14109. #define RCC_APB2ENR_HRTIMEN_Pos (29U)
  14110. #define RCC_APB2ENR_HRTIMEN_Msk (0x1U << RCC_APB2ENR_HRTIMEN_Pos) /*!< 0x20000000 */
  14111. #define RCC_APB2ENR_HRTIMEN RCC_APB2ENR_HRTIMEN_Msk
  14112. /******************** Bit definition for RCC_APB4ENR register ******************/
  14113. #define RCC_APB4ENR_SYSCFGEN_Pos (1U)
  14114. #define RCC_APB4ENR_SYSCFGEN_Msk (0x1U << RCC_APB4ENR_SYSCFGEN_Pos) /*!< 0x00000002 */
  14115. #define RCC_APB4ENR_SYSCFGEN RCC_APB4ENR_SYSCFGEN_Msk
  14116. #define RCC_APB4ENR_LPUART1EN_Pos (3U)
  14117. #define RCC_APB4ENR_LPUART1EN_Msk (0x1U << RCC_APB4ENR_LPUART1EN_Pos) /*!< 0x00000008 */
  14118. #define RCC_APB4ENR_LPUART1EN RCC_APB4ENR_LPUART1EN_Msk
  14119. #define RCC_APB4ENR_SPI6EN_Pos (5U)
  14120. #define RCC_APB4ENR_SPI6EN_Msk (0x1U << RCC_APB4ENR_SPI6EN_Pos) /*!< 0x00000020 */
  14121. #define RCC_APB4ENR_SPI6EN RCC_APB4ENR_SPI6EN_Msk
  14122. #define RCC_APB4ENR_I2C4EN_Pos (7U)
  14123. #define RCC_APB4ENR_I2C4EN_Msk (0x1U << RCC_APB4ENR_I2C4EN_Pos) /*!< 0x00000080 */
  14124. #define RCC_APB4ENR_I2C4EN RCC_APB4ENR_I2C4EN_Msk
  14125. #define RCC_APB4ENR_LPTIM2EN_Pos (9U)
  14126. #define RCC_APB4ENR_LPTIM2EN_Msk (0x1U << RCC_APB4ENR_LPTIM2EN_Pos) /*!< 0x00000200 */
  14127. #define RCC_APB4ENR_LPTIM2EN RCC_APB4ENR_LPTIM2EN_Msk
  14128. #define RCC_APB4ENR_LPTIM3EN_Pos (10U)
  14129. #define RCC_APB4ENR_LPTIM3EN_Msk (0x1U << RCC_APB4ENR_LPTIM3EN_Pos) /*!< 0x00000400 */
  14130. #define RCC_APB4ENR_LPTIM3EN RCC_APB4ENR_LPTIM3EN_Msk
  14131. #define RCC_APB4ENR_LPTIM4EN_Pos (11U)
  14132. #define RCC_APB4ENR_LPTIM4EN_Msk (0x1U << RCC_APB4ENR_LPTIM4EN_Pos) /*!< 0x00000800 */
  14133. #define RCC_APB4ENR_LPTIM4EN RCC_APB4ENR_LPTIM4EN_Msk
  14134. #define RCC_APB4ENR_LPTIM5EN_Pos (12U)
  14135. #define RCC_APB4ENR_LPTIM5EN_Msk (0x1U << RCC_APB4ENR_LPTIM5EN_Pos) /*!< 0x00001000 */
  14136. #define RCC_APB4ENR_LPTIM5EN RCC_APB4ENR_LPTIM5EN_Msk
  14137. #define RCC_APB4ENR_COMP12EN_Pos (14U)
  14138. #define RCC_APB4ENR_COMP12EN_Msk (0x1U << RCC_APB4ENR_COMP12EN_Pos) /*!< 0x00004000 */
  14139. #define RCC_APB4ENR_COMP12EN RCC_APB4ENR_COMP12EN_Msk
  14140. #define RCC_APB4ENR_VREFEN_Pos (15U)
  14141. #define RCC_APB4ENR_VREFEN_Msk (0x1U << RCC_APB4ENR_VREFEN_Pos) /*!< 0x00008000 */
  14142. #define RCC_APB4ENR_VREFEN RCC_APB4ENR_VREFEN_Msk
  14143. #define RCC_APB4ENR_RTCAPBEN_Pos (16U)
  14144. #define RCC_APB4ENR_RTCAPBEN_Msk (0x1U << RCC_APB4ENR_RTCAPBEN_Pos) /*!< 0x00010000 */
  14145. #define RCC_APB4ENR_RTCAPBEN RCC_APB4ENR_RTCAPBEN_Msk
  14146. #define RCC_APB4ENR_SAI4EN_Pos (21U)
  14147. #define RCC_APB4ENR_SAI4EN_Msk (0x1U << RCC_APB4ENR_SAI4EN_Pos) /*!< 0x00200000 */
  14148. #define RCC_APB4ENR_SAI4EN RCC_APB4ENR_SAI4EN_Msk
  14149. /******************** Bit definition for RCC_AHB3RSTR register ***************/
  14150. #define RCC_AHB3RSTR_MDMARST_Pos (0U)
  14151. #define RCC_AHB3RSTR_MDMARST_Msk (0x1U << RCC_AHB3RSTR_MDMARST_Pos) /*!< 0x00000001 */
  14152. #define RCC_AHB3RSTR_MDMARST RCC_AHB3RSTR_MDMARST_Msk
  14153. #define RCC_AHB3RSTR_DMA2DRST_Pos (4U)
  14154. #define RCC_AHB3RSTR_DMA2DRST_Msk (0x1U << RCC_AHB3RSTR_DMA2DRST_Pos) /*!< 0x00000010 */
  14155. #define RCC_AHB3RSTR_DMA2DRST RCC_AHB3RSTR_DMA2DRST_Msk
  14156. #define RCC_AHB3RSTR_JPGDECRST_Pos (5U)
  14157. #define RCC_AHB3RSTR_JPGDECRST_Msk (0x1U << RCC_AHB3RSTR_JPGDECRST_Pos) /*!< 0x00000020 */
  14158. #define RCC_AHB3RSTR_JPGDECRST RCC_AHB3RSTR_JPGDECRST_Msk
  14159. #define RCC_AHB3RSTR_FMCRST_Pos (12U)
  14160. #define RCC_AHB3RSTR_FMCRST_Msk (0x1U << RCC_AHB3RSTR_FMCRST_Pos) /*!< 0x00001000 */
  14161. #define RCC_AHB3RSTR_FMCRST RCC_AHB3RSTR_FMCRST_Msk
  14162. #define RCC_AHB3RSTR_QSPIRST_Pos (14U)
  14163. #define RCC_AHB3RSTR_QSPIRST_Msk (0x1U << RCC_AHB3RSTR_QSPIRST_Pos) /*!< 0x00004000 */
  14164. #define RCC_AHB3RSTR_QSPIRST RCC_AHB3RSTR_QSPIRST_Msk
  14165. #define RCC_AHB3RSTR_SDMMC1RST_Pos (16U)
  14166. #define RCC_AHB3RSTR_SDMMC1RST_Msk (0x1U << RCC_AHB3RSTR_SDMMC1RST_Pos) /*!< 0x00010000 */
  14167. #define RCC_AHB3RSTR_SDMMC1RST RCC_AHB3RSTR_SDMMC1RST_Msk
  14168. #define RCC_AHB3RSTR_CPURST_Pos (31U)
  14169. #define RCC_AHB3RSTR_CPURST_Msk (0x1U << RCC_AHB3RSTR_CPURST_Pos) /*!< 0x80000000 */
  14170. #define RCC_AHB3RSTR_CPURST RCC_AHB3RSTR_CPURST_Msk
  14171. /******************** Bit definition for RCC_AHB1RSTR register ***************/
  14172. #define RCC_AHB1RSTR_DMA1RST_Pos (0U)
  14173. #define RCC_AHB1RSTR_DMA1RST_Msk (0x1U << RCC_AHB1RSTR_DMA1RST_Pos) /*!< 0x00000001 */
  14174. #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk
  14175. #define RCC_AHB1RSTR_DMA2RST_Pos (1U)
  14176. #define RCC_AHB1RSTR_DMA2RST_Msk (0x1U << RCC_AHB1RSTR_DMA2RST_Pos) /*!< 0x00000002 */
  14177. #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk
  14178. #define RCC_AHB1RSTR_ADC12RST_Pos (5U)
  14179. #define RCC_AHB1RSTR_ADC12RST_Msk (0x1U << RCC_AHB1RSTR_ADC12RST_Pos) /*!< 0x00000020 */
  14180. #define RCC_AHB1RSTR_ADC12RST RCC_AHB1RSTR_ADC12RST_Msk
  14181. #define RCC_AHB1RSTR_ETH1MACRST_Pos (15U)
  14182. #define RCC_AHB1RSTR_ETH1MACRST_Msk (0x1U << RCC_AHB1RSTR_ETH1MACRST_Pos) /*!< 0x00008000 */
  14183. #define RCC_AHB1RSTR_ETH1MACRST RCC_AHB1RSTR_ETH1MACRST_Msk
  14184. #define RCC_AHB1RSTR_USB1OTGHSRST_Pos (25U)
  14185. #define RCC_AHB1RSTR_USB1OTGHSRST_Msk (0x1U << RCC_AHB1RSTR_USB1OTGHSRST_Pos) /*!< 0x02000000 */
  14186. #define RCC_AHB1RSTR_USB1OTGHSRST RCC_AHB1RSTR_USB1OTGHSRST_Msk
  14187. #define RCC_AHB1RSTR_USB2OTGHSRST_Pos (27U)
  14188. #define RCC_AHB1RSTR_USB2OTGHSRST_Msk (0x1U << RCC_AHB1RSTR_USB2OTGHSRST_Pos) /*!< 0x08000000 */
  14189. #define RCC_AHB1RSTR_USB2OTGHSRST RCC_AHB1RSTR_USB2OTGHSRST_Msk
  14190. /******************** Bit definition for RCC_AHB2RSTR register ***************/
  14191. #define RCC_AHB2RSTR_DCMIRST_Pos (0U)
  14192. #define RCC_AHB2RSTR_DCMIRST_Msk (0x1U << RCC_AHB2RSTR_DCMIRST_Pos) /*!< 0x00000001 */
  14193. #define RCC_AHB2RSTR_DCMIRST RCC_AHB2RSTR_DCMIRST_Msk
  14194. #define RCC_AHB2RSTR_CRYPRST_Pos (4U)
  14195. #define RCC_AHB2RSTR_CRYPRST_Msk (0x1U << RCC_AHB2RSTR_CRYPRST_Pos) /*!< 0x00000010 */
  14196. #define RCC_AHB2RSTR_CRYPRST RCC_AHB2RSTR_CRYPRST_Msk
  14197. #define RCC_AHB2RSTR_HASHRST_Pos (5U)
  14198. #define RCC_AHB2RSTR_HASHRST_Msk (0x1U << RCC_AHB2RSTR_HASHRST_Pos) /*!< 0x00000020 */
  14199. #define RCC_AHB2RSTR_HASHRST RCC_AHB2RSTR_HASHRST_Msk
  14200. #define RCC_AHB2RSTR_RNGRST_Pos (6U)
  14201. #define RCC_AHB2RSTR_RNGRST_Msk (0x1U << RCC_AHB2RSTR_RNGRST_Pos) /*!< 0x00000040 */
  14202. #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk
  14203. #define RCC_AHB2RSTR_SDMMC2RST_Pos (9U)
  14204. #define RCC_AHB2RSTR_SDMMC2RST_Msk (0x1U << RCC_AHB2RSTR_SDMMC2RST_Pos) /*!< 0x00000200 */
  14205. #define RCC_AHB2RSTR_SDMMC2RST RCC_AHB2RSTR_SDMMC2RST_Msk
  14206. /******************** Bit definition for RCC_AHB4RSTR register ******************/
  14207. #define RCC_AHB4RSTR_GPIOARST_Pos (0U)
  14208. #define RCC_AHB4RSTR_GPIOARST_Msk (0x1U << RCC_AHB4RSTR_GPIOARST_Pos) /*!< 0x00000001 */
  14209. #define RCC_AHB4RSTR_GPIOARST RCC_AHB4RSTR_GPIOARST_Msk
  14210. #define RCC_AHB4RSTR_GPIOBRST_Pos (1U)
  14211. #define RCC_AHB4RSTR_GPIOBRST_Msk (0x1U << RCC_AHB4RSTR_GPIOBRST_Pos) /*!< 0x00000002 */
  14212. #define RCC_AHB4RSTR_GPIOBRST RCC_AHB4RSTR_GPIOBRST_Msk
  14213. #define RCC_AHB4RSTR_GPIOCRST_Pos (2U)
  14214. #define RCC_AHB4RSTR_GPIOCRST_Msk (0x1U << RCC_AHB4RSTR_GPIOCRST_Pos) /*!< 0x00000004 */
  14215. #define RCC_AHB4RSTR_GPIOCRST RCC_AHB4RSTR_GPIOCRST_Msk
  14216. #define RCC_AHB4RSTR_GPIODRST_Pos (3U)
  14217. #define RCC_AHB4RSTR_GPIODRST_Msk (0x1U << RCC_AHB4RSTR_GPIODRST_Pos) /*!< 0x00000008 */
  14218. #define RCC_AHB4RSTR_GPIODRST RCC_AHB4RSTR_GPIODRST_Msk
  14219. #define RCC_AHB4RSTR_GPIOERST_Pos (4U)
  14220. #define RCC_AHB4RSTR_GPIOERST_Msk (0x1U << RCC_AHB4RSTR_GPIOERST_Pos) /*!< 0x00000010 */
  14221. #define RCC_AHB4RSTR_GPIOERST RCC_AHB4RSTR_GPIOERST_Msk
  14222. #define RCC_AHB4RSTR_GPIOFRST_Pos (5U)
  14223. #define RCC_AHB4RSTR_GPIOFRST_Msk (0x1U << RCC_AHB4RSTR_GPIOFRST_Pos) /*!< 0x00000020 */
  14224. #define RCC_AHB4RSTR_GPIOFRST RCC_AHB4RSTR_GPIOFRST_Msk
  14225. #define RCC_AHB4RSTR_GPIOGRST_Pos (6U)
  14226. #define RCC_AHB4RSTR_GPIOGRST_Msk (0x1U << RCC_AHB4RSTR_GPIOGRST_Pos) /*!< 0x00000040 */
  14227. #define RCC_AHB4RSTR_GPIOGRST RCC_AHB4RSTR_GPIOGRST_Msk
  14228. #define RCC_AHB4RSTR_GPIOHRST_Pos (7U)
  14229. #define RCC_AHB4RSTR_GPIOHRST_Msk (0x1U << RCC_AHB4RSTR_GPIOHRST_Pos) /*!< 0x00000080 */
  14230. #define RCC_AHB4RSTR_GPIOHRST RCC_AHB4RSTR_GPIOHRST_Msk
  14231. #define RCC_AHB4RSTR_GPIOIRST_Pos (8U)
  14232. #define RCC_AHB4RSTR_GPIOIRST_Msk (0x1U << RCC_AHB4RSTR_GPIOIRST_Pos) /*!< 0x00000100 */
  14233. #define RCC_AHB4RSTR_GPIOIRST RCC_AHB4RSTR_GPIOIRST_Msk
  14234. #define RCC_AHB4RSTR_GPIOJRST_Pos (9U)
  14235. #define RCC_AHB4RSTR_GPIOJRST_Msk (0x1U << RCC_AHB4RSTR_GPIOJRST_Pos) /*!< 0x00000200 */
  14236. #define RCC_AHB4RSTR_GPIOJRST RCC_AHB4RSTR_GPIOJRST_Msk
  14237. #define RCC_AHB4RSTR_GPIOKRST_Pos (10U)
  14238. #define RCC_AHB4RSTR_GPIOKRST_Msk (0x1U << RCC_AHB4RSTR_GPIOKRST_Pos) /*!< 0x00000400 */
  14239. #define RCC_AHB4RSTR_GPIOKRST RCC_AHB4RSTR_GPIOKRST_Msk
  14240. #define RCC_AHB4RSTR_CRCRST_Pos (19U)
  14241. #define RCC_AHB4RSTR_CRCRST_Msk (0x1U << RCC_AHB4RSTR_CRCRST_Pos) /*!< 0x00080000 */
  14242. #define RCC_AHB4RSTR_CRCRST RCC_AHB4RSTR_CRCRST_Msk
  14243. #define RCC_AHB4RSTR_BDMARST_Pos (21U)
  14244. #define RCC_AHB4RSTR_BDMARST_Msk (0x1U << RCC_AHB4RSTR_BDMARST_Pos) /*!< 0x00200000 */
  14245. #define RCC_AHB4RSTR_BDMARST RCC_AHB4RSTR_BDMARST_Msk
  14246. #define RCC_AHB4RSTR_ADC3RST_Pos (24U)
  14247. #define RCC_AHB4RSTR_ADC3RST_Msk (0x1U << RCC_AHB4RSTR_ADC3RST_Pos) /*!< 0x01000000 */
  14248. #define RCC_AHB4RSTR_ADC3RST RCC_AHB4RSTR_ADC3RST_Msk
  14249. #define RCC_AHB4RSTR_HSEMRST_Pos (25U)
  14250. #define RCC_AHB4RSTR_HSEMRST_Msk (0x1U << RCC_AHB4RSTR_HSEMRST_Pos) /*!< 0x02000000 */
  14251. #define RCC_AHB4RSTR_HSEMRST RCC_AHB4RSTR_HSEMRST_Msk
  14252. /******************** Bit definition for RCC_APB3RSTR register ******************/
  14253. #define RCC_APB3RSTR_LTDCRST_Pos (3U)
  14254. #define RCC_APB3RSTR_LTDCRST_Msk (0x1U << RCC_APB3RSTR_LTDCRST_Pos) /*!< 0x00000008 */
  14255. #define RCC_APB3RSTR_LTDCRST RCC_APB3RSTR_LTDCRST_Msk
  14256. /******************** Bit definition for RCC_APB1LRSTR register ******************/
  14257. #define RCC_APB1LRSTR_TIM2RST_Pos (0U)
  14258. #define RCC_APB1LRSTR_TIM2RST_Msk (0x1U << RCC_APB1LRSTR_TIM2RST_Pos) /*!< 0x00000001 */
  14259. #define RCC_APB1LRSTR_TIM2RST RCC_APB1LRSTR_TIM2RST_Msk
  14260. #define RCC_APB1LRSTR_TIM3RST_Pos (1U)
  14261. #define RCC_APB1LRSTR_TIM3RST_Msk (0x1U << RCC_APB1LRSTR_TIM3RST_Pos) /*!< 0x00000002 */
  14262. #define RCC_APB1LRSTR_TIM3RST RCC_APB1LRSTR_TIM3RST_Msk
  14263. #define RCC_APB1LRSTR_TIM4RST_Pos (2U)
  14264. #define RCC_APB1LRSTR_TIM4RST_Msk (0x1U << RCC_APB1LRSTR_TIM4RST_Pos) /*!< 0x00000004 */
  14265. #define RCC_APB1LRSTR_TIM4RST RCC_APB1LRSTR_TIM4RST_Msk
  14266. #define RCC_APB1LRSTR_TIM5RST_Pos (3U)
  14267. #define RCC_APB1LRSTR_TIM5RST_Msk (0x1U << RCC_APB1LRSTR_TIM5RST_Pos) /*!< 0x00000008 */
  14268. #define RCC_APB1LRSTR_TIM5RST RCC_APB1LRSTR_TIM5RST_Msk
  14269. #define RCC_APB1LRSTR_TIM6RST_Pos (4U)
  14270. #define RCC_APB1LRSTR_TIM6RST_Msk (0x1U << RCC_APB1LRSTR_TIM6RST_Pos) /*!< 0x00000010 */
  14271. #define RCC_APB1LRSTR_TIM6RST RCC_APB1LRSTR_TIM6RST_Msk
  14272. #define RCC_APB1LRSTR_TIM7RST_Pos (5U)
  14273. #define RCC_APB1LRSTR_TIM7RST_Msk (0x1U << RCC_APB1LRSTR_TIM7RST_Pos) /*!< 0x00000020 */
  14274. #define RCC_APB1LRSTR_TIM7RST RCC_APB1LRSTR_TIM7RST_Msk
  14275. #define RCC_APB1LRSTR_TIM12RST_Pos (6U)
  14276. #define RCC_APB1LRSTR_TIM12RST_Msk (0x1U << RCC_APB1LRSTR_TIM12RST_Pos) /*!< 0x00000040 */
  14277. #define RCC_APB1LRSTR_TIM12RST RCC_APB1LRSTR_TIM12RST_Msk
  14278. #define RCC_APB1LRSTR_TIM13RST_Pos (7U)
  14279. #define RCC_APB1LRSTR_TIM13RST_Msk (0x1U << RCC_APB1LRSTR_TIM13RST_Pos) /*!< 0x00000080 */
  14280. #define RCC_APB1LRSTR_TIM13RST RCC_APB1LRSTR_TIM13RST_Msk
  14281. #define RCC_APB1LRSTR_TIM14RST_Pos (8U)
  14282. #define RCC_APB1LRSTR_TIM14RST_Msk (0x1U << RCC_APB1LRSTR_TIM14RST_Pos) /*!< 0x00000100 */
  14283. #define RCC_APB1LRSTR_TIM14RST RCC_APB1LRSTR_TIM14RST_Msk
  14284. #define RCC_APB1LRSTR_LPTIM1RST_Pos (9U)
  14285. #define RCC_APB1LRSTR_LPTIM1RST_Msk (0x1U << RCC_APB1LRSTR_LPTIM1RST_Pos) /*!< 0x00000200 */
  14286. #define RCC_APB1LRSTR_LPTIM1RST RCC_APB1LRSTR_LPTIM1RST_Msk
  14287. #define RCC_APB1LRSTR_SPI2RST_Pos (14U)
  14288. #define RCC_APB1LRSTR_SPI2RST_Msk (0x1U << RCC_APB1LRSTR_SPI2RST_Pos) /*!< 0x00004000 */
  14289. #define RCC_APB1LRSTR_SPI2RST RCC_APB1LRSTR_SPI2RST_Msk
  14290. #define RCC_APB1LRSTR_SPI3RST_Pos (15U)
  14291. #define RCC_APB1LRSTR_SPI3RST_Msk (0x1U << RCC_APB1LRSTR_SPI3RST_Pos) /*!< 0x00008000 */
  14292. #define RCC_APB1LRSTR_SPI3RST RCC_APB1LRSTR_SPI3RST_Msk
  14293. #define RCC_APB1LRSTR_SPDIFRXRST_Pos (16U)
  14294. #define RCC_APB1LRSTR_SPDIFRXRST_Msk (0x1U << RCC_APB1LRSTR_SPDIFRXRST_Pos) /*!< 0x00010000 */
  14295. #define RCC_APB1LRSTR_SPDIFRXRST RCC_APB1LRSTR_SPDIFRXRST_Msk
  14296. #define RCC_APB1LRSTR_USART2RST_Pos (17U)
  14297. #define RCC_APB1LRSTR_USART2RST_Msk (0x1U << RCC_APB1LRSTR_USART2RST_Pos) /*!< 0x00020000 */
  14298. #define RCC_APB1LRSTR_USART2RST RCC_APB1LRSTR_USART2RST_Msk
  14299. #define RCC_APB1LRSTR_USART3RST_Pos (18U)
  14300. #define RCC_APB1LRSTR_USART3RST_Msk (0x1U << RCC_APB1LRSTR_USART3RST_Pos) /*!< 0x00040000 */
  14301. #define RCC_APB1LRSTR_USART3RST RCC_APB1LRSTR_USART3RST_Msk
  14302. #define RCC_APB1LRSTR_UART4RST_Pos (19U)
  14303. #define RCC_APB1LRSTR_UART4RST_Msk (0x1U << RCC_APB1LRSTR_UART4RST_Pos) /*!< 0x00080000 */
  14304. #define RCC_APB1LRSTR_UART4RST RCC_APB1LRSTR_UART4RST_Msk
  14305. #define RCC_APB1LRSTR_UART5RST_Pos (20U)
  14306. #define RCC_APB1LRSTR_UART5RST_Msk (0x1U << RCC_APB1LRSTR_UART5RST_Pos) /*!< 0x00100000 */
  14307. #define RCC_APB1LRSTR_UART5RST RCC_APB1LRSTR_UART5RST_Msk
  14308. #define RCC_APB1LRSTR_I2C1RST_Pos (21U)
  14309. #define RCC_APB1LRSTR_I2C1RST_Msk (0x1U << RCC_APB1LRSTR_I2C1RST_Pos) /*!< 0x00200000 */
  14310. #define RCC_APB1LRSTR_I2C1RST RCC_APB1LRSTR_I2C1RST_Msk
  14311. #define RCC_APB1LRSTR_I2C2RST_Pos (22U)
  14312. #define RCC_APB1LRSTR_I2C2RST_Msk (0x1U << RCC_APB1LRSTR_I2C2RST_Pos) /*!< 0x00400000 */
  14313. #define RCC_APB1LRSTR_I2C2RST RCC_APB1LRSTR_I2C2RST_Msk
  14314. #define RCC_APB1LRSTR_I2C3RST_Pos (23U)
  14315. #define RCC_APB1LRSTR_I2C3RST_Msk (0x1U << RCC_APB1LRSTR_I2C3RST_Pos) /*!< 0x00800000 */
  14316. #define RCC_APB1LRSTR_I2C3RST RCC_APB1LRSTR_I2C3RST_Msk
  14317. #define RCC_APB1LRSTR_CECRST_Pos (27U)
  14318. #define RCC_APB1LRSTR_CECRST_Msk (0x1U << RCC_APB1LRSTR_CECRST_Pos) /*!< 0x08000000 */
  14319. #define RCC_APB1LRSTR_CECRST RCC_APB1LRSTR_CECRST_Msk
  14320. #define RCC_APB1LRSTR_DAC12RST_Pos (29U)
  14321. #define RCC_APB1LRSTR_DAC12RST_Msk (0x1U << RCC_APB1LRSTR_DAC12RST_Pos) /*!< 0x20000000 */
  14322. #define RCC_APB1LRSTR_DAC12RST RCC_APB1LRSTR_DAC12RST_Msk
  14323. #define RCC_APB1LRSTR_UART7RST_Pos (30U)
  14324. #define RCC_APB1LRSTR_UART7RST_Msk (0x1U << RCC_APB1LRSTR_UART7RST_Pos) /*!< 0x40000000 */
  14325. #define RCC_APB1LRSTR_UART7RST RCC_APB1LRSTR_UART7RST_Msk
  14326. #define RCC_APB1LRSTR_UART8RST_Pos (31U)
  14327. #define RCC_APB1LRSTR_UART8RST_Msk (0x1U << RCC_APB1LRSTR_UART8RST_Pos) /*!< 0x80000000 */
  14328. #define RCC_APB1LRSTR_UART8RST RCC_APB1LRSTR_UART8RST_Msk
  14329. /******************** Bit definition for RCC_APB1HRSTR register ******************/
  14330. #define RCC_APB1HRSTR_CRSRST_Pos (1U)
  14331. #define RCC_APB1HRSTR_CRSRST_Msk (0x1U << RCC_APB1HRSTR_CRSRST_Pos) /*!< 0x00000002 */
  14332. #define RCC_APB1HRSTR_CRSRST RCC_APB1HRSTR_CRSRST_Msk
  14333. #define RCC_APB1HRSTR_SWPMIRST_Pos (2U)
  14334. #define RCC_APB1HRSTR_SWPMIRST_Msk (0x1U << RCC_APB1HRSTR_SWPMIRST_Pos) /*!< 0x00000004 */
  14335. #define RCC_APB1HRSTR_SWPMIRST RCC_APB1HRSTR_SWPMIRST_Msk
  14336. #define RCC_APB1HRSTR_OPAMPRST_Pos (4U)
  14337. #define RCC_APB1HRSTR_OPAMPRST_Msk (0x1U << RCC_APB1HRSTR_OPAMPRST_Pos) /*!< 0x00000010 */
  14338. #define RCC_APB1HRSTR_OPAMPRST RCC_APB1HRSTR_OPAMPRST_Msk
  14339. #define RCC_APB1HRSTR_MDIOSRST_Pos (5U)
  14340. #define RCC_APB1HRSTR_MDIOSRST_Msk (0x1U << RCC_APB1HRSTR_MDIOSRST_Pos) /*!< 0x00000020 */
  14341. #define RCC_APB1HRSTR_MDIOSRST RCC_APB1HRSTR_MDIOSRST_Msk
  14342. #define RCC_APB1HRSTR_FDCANRST_Pos (8U)
  14343. #define RCC_APB1HRSTR_FDCANRST_Msk (0x1U << RCC_APB1HRSTR_FDCANRST_Pos) /*!< 0x00000100 */
  14344. #define RCC_APB1HRSTR_FDCANRST RCC_APB1HRSTR_FDCANRST_Msk
  14345. /******************** Bit definition for RCC_APB2RSTR register ******************/
  14346. #define RCC_APB2RSTR_TIM1RST_Pos (0U)
  14347. #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000001 */
  14348. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk
  14349. #define RCC_APB2RSTR_TIM8RST_Pos (1U)
  14350. #define RCC_APB2RSTR_TIM8RST_Msk (0x1U << RCC_APB2RSTR_TIM8RST_Pos) /*!< 0x00000002 */
  14351. #define RCC_APB2RSTR_TIM8RST RCC_APB2RSTR_TIM8RST_Msk
  14352. #define RCC_APB2RSTR_USART1RST_Pos (4U)
  14353. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00000010 */
  14354. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk
  14355. #define RCC_APB2RSTR_USART6RST_Pos (5U)
  14356. #define RCC_APB2RSTR_USART6RST_Msk (0x1U << RCC_APB2RSTR_USART6RST_Pos) /*!< 0x00000020 */
  14357. #define RCC_APB2RSTR_USART6RST RCC_APB2RSTR_USART6RST_Msk
  14358. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  14359. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  14360. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk
  14361. #define RCC_APB2RSTR_SPI4RST_Pos (13U)
  14362. #define RCC_APB2RSTR_SPI4RST_Msk (0x1U << RCC_APB2RSTR_SPI4RST_Pos) /*!< 0x00002000 */
  14363. #define RCC_APB2RSTR_SPI4RST RCC_APB2RSTR_SPI4RST_Msk
  14364. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  14365. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  14366. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk
  14367. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  14368. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  14369. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk
  14370. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  14371. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  14372. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk
  14373. #define RCC_APB2RSTR_SPI5RST_Pos (20U)
  14374. #define RCC_APB2RSTR_SPI5RST_Msk (0x1U << RCC_APB2RSTR_SPI5RST_Pos) /*!< 0x00100000 */
  14375. #define RCC_APB2RSTR_SPI5RST RCC_APB2RSTR_SPI5RST_Msk
  14376. #define RCC_APB2RSTR_SAI1RST_Pos (22U)
  14377. #define RCC_APB2RSTR_SAI1RST_Msk (0x1U << RCC_APB2RSTR_SAI1RST_Pos) /*!< 0x00400000 */
  14378. #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk
  14379. #define RCC_APB2RSTR_SAI2RST_Pos (23U)
  14380. #define RCC_APB2RSTR_SAI2RST_Msk (0x1U << RCC_APB2RSTR_SAI2RST_Pos) /*!< 0x00800000 */
  14381. #define RCC_APB2RSTR_SAI2RST RCC_APB2RSTR_SAI2RST_Msk
  14382. #define RCC_APB2RSTR_SAI3RST_Pos (24U)
  14383. #define RCC_APB2RSTR_SAI3RST_Msk (0x1U << RCC_APB2RSTR_SAI3RST_Pos) /*!< 0x01000000 */
  14384. #define RCC_APB2RSTR_SAI3RST RCC_APB2RSTR_SAI3RST_Msk
  14385. #define RCC_APB2RSTR_DFSDM1RST_Pos (28U)
  14386. #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1U << RCC_APB2RSTR_DFSDM1RST_Pos) /*!< 0x10000000 */
  14387. #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk
  14388. #define RCC_APB2RSTR_HRTIMRST_Pos (29U)
  14389. #define RCC_APB2RSTR_HRTIMRST_Msk (0x1U << RCC_APB2RSTR_HRTIMRST_Pos) /*!< 0x20000000 */
  14390. #define RCC_APB2RSTR_HRTIMRST RCC_APB2RSTR_HRTIMRST_Msk
  14391. /******************** Bit definition for RCC_APB4RSTR register ******************/
  14392. #define RCC_APB4RSTR_SYSCFGRST_Pos (1U)
  14393. #define RCC_APB4RSTR_SYSCFGRST_Msk (0x1U << RCC_APB4RSTR_SYSCFGRST_Pos) /*!< 0x00000002 */
  14394. #define RCC_APB4RSTR_SYSCFGRST RCC_APB4RSTR_SYSCFGRST_Msk
  14395. #define RCC_APB4RSTR_LPUART1RST_Pos (3U)
  14396. #define RCC_APB4RSTR_LPUART1RST_Msk (0x1U << RCC_APB4RSTR_LPUART1RST_Pos) /*!< 0x00000008 */
  14397. #define RCC_APB4RSTR_LPUART1RST RCC_APB4RSTR_LPUART1RST_Msk
  14398. #define RCC_APB4RSTR_SPI6RST_Pos (5U)
  14399. #define RCC_APB4RSTR_SPI6RST_Msk (0x1U << RCC_APB4RSTR_SPI6RST_Pos) /*!< 0x00000020 */
  14400. #define RCC_APB4RSTR_SPI6RST RCC_APB4RSTR_SPI6RST_Msk
  14401. #define RCC_APB4RSTR_I2C4RST_Pos (7U)
  14402. #define RCC_APB4RSTR_I2C4RST_Msk (0x1U << RCC_APB4RSTR_I2C4RST_Pos) /*!< 0x00000080 */
  14403. #define RCC_APB4RSTR_I2C4RST RCC_APB4RSTR_I2C4RST_Msk
  14404. #define RCC_APB4RSTR_LPTIM2RST_Pos (9U)
  14405. #define RCC_APB4RSTR_LPTIM2RST_Msk (0x1U << RCC_APB4RSTR_LPTIM2RST_Pos) /*!< 0x00000200 */
  14406. #define RCC_APB4RSTR_LPTIM2RST RCC_APB4RSTR_LPTIM2RST_Msk
  14407. #define RCC_APB4RSTR_LPTIM3RST_Pos (10U)
  14408. #define RCC_APB4RSTR_LPTIM3RST_Msk (0x1U << RCC_APB4RSTR_LPTIM3RST_Pos) /*!< 0x00000400 */
  14409. #define RCC_APB4RSTR_LPTIM3RST RCC_APB4RSTR_LPTIM3RST_Msk
  14410. #define RCC_APB4RSTR_LPTIM4RST_Pos (11U)
  14411. #define RCC_APB4RSTR_LPTIM4RST_Msk (0x1U << RCC_APB4RSTR_LPTIM4RST_Pos) /*!< 0x00000800 */
  14412. #define RCC_APB4RSTR_LPTIM4RST RCC_APB4RSTR_LPTIM4RST_Msk
  14413. #define RCC_APB4RSTR_LPTIM5RST_Pos (12U)
  14414. #define RCC_APB4RSTR_LPTIM5RST_Msk (0x1U << RCC_APB4RSTR_LPTIM5RST_Pos) /*!< 0x00001000 */
  14415. #define RCC_APB4RSTR_LPTIM5RST RCC_APB4RSTR_LPTIM5RST_Msk
  14416. #define RCC_APB4RSTR_COMP12RST_Pos (14U)
  14417. #define RCC_APB4RSTR_COMP12RST_Msk (0x1U << RCC_APB4RSTR_COMP12RST_Pos) /*!< 0x00004000 */
  14418. #define RCC_APB4RSTR_COMP12RST RCC_APB4RSTR_COMP12RST_Msk
  14419. #define RCC_APB4RSTR_VREFRST_Pos (15U)
  14420. #define RCC_APB4RSTR_VREFRST_Msk (0x1U << RCC_APB4RSTR_VREFRST_Pos) /*!< 0x00008000 */
  14421. #define RCC_APB4RSTR_VREFRST RCC_APB4RSTR_VREFRST_Msk
  14422. #define RCC_APB4RSTR_SAI4RST_Pos (21U)
  14423. #define RCC_APB4RSTR_SAI4RST_Msk (0x1U << RCC_APB4RSTR_SAI4RST_Pos) /*!< 0x00200000 */
  14424. #define RCC_APB4RSTR_SAI4RST RCC_APB4RSTR_SAI4RST_Msk
  14425. /******************** Bit definition for RCC_GCR register ********************/
  14426. #define RCC_GCR_WW1RSC_Pos (0U)
  14427. #define RCC_GCR_WW1RSC_Msk (0x1U << RCC_GCR_WW1RSC_Pos) /*!< 0x00000001 */
  14428. #define RCC_GCR_WW1RSC RCC_GCR_WW1RSC_Msk
  14429. /******************** Bit definition for RCC_D3AMR register ********************/
  14430. #define RCC_D3AMR_BDMAAMEN_Pos (0U)
  14431. #define RCC_D3AMR_BDMAAMEN_Msk (0x1U << RCC_D3AMR_BDMAAMEN_Pos) /*!< 0x00000001 */
  14432. #define RCC_D3AMR_BDMAAMEN RCC_D3AMR_BDMAAMEN_Msk
  14433. #define RCC_D3AMR_LPUART1AMEN_Pos (3U)
  14434. #define RCC_D3AMR_LPUART1AMEN_Msk (0x1U << RCC_D3AMR_LPUART1AMEN_Pos) /*!< 0x00000008 */
  14435. #define RCC_D3AMR_LPUART1AMEN RCC_D3AMR_LPUART1AMEN_Msk
  14436. #define RCC_D3AMR_SPI6AMEN_Pos (5U)
  14437. #define RCC_D3AMR_SPI6AMEN_Msk (0x1U << RCC_D3AMR_SPI6AMEN_Pos) /*!< 0x00000020 */
  14438. #define RCC_D3AMR_SPI6AMEN RCC_D3AMR_SPI6AMEN_Msk
  14439. #define RCC_D3AMR_I2C4AMEN_Pos (7U)
  14440. #define RCC_D3AMR_I2C4AMEN_Msk (0x1U << RCC_D3AMR_I2C4AMEN_Pos) /*!< 0x00000080 */
  14441. #define RCC_D3AMR_I2C4AMEN RCC_D3AMR_I2C4AMEN_Msk
  14442. #define RCC_D3AMR_LPTIM2AMEN_Pos (9U)
  14443. #define RCC_D3AMR_LPTIM2AMEN_Msk (0x1U << RCC_D3AMR_LPTIM2AMEN_Pos) /*!< 0x00000200 */
  14444. #define RCC_D3AMR_LPTIM2AMEN RCC_D3AMR_LPTIM2AMEN_Msk
  14445. #define RCC_D3AMR_LPTIM3AMEN_Pos (10U)
  14446. #define RCC_D3AMR_LPTIM3AMEN_Msk (0x1U << RCC_D3AMR_LPTIM3AMEN_Pos) /*!< 0x00000400 */
  14447. #define RCC_D3AMR_LPTIM3AMEN RCC_D3AMR_LPTIM3AMEN_Msk
  14448. #define RCC_D3AMR_LPTIM4AMEN_Pos (11U)
  14449. #define RCC_D3AMR_LPTIM4AMEN_Msk (0x1U << RCC_D3AMR_LPTIM4AMEN_Pos) /*!< 0x00000800 */
  14450. #define RCC_D3AMR_LPTIM4AMEN RCC_D3AMR_LPTIM4AMEN_Msk
  14451. #define RCC_D3AMR_LPTIM5AMEN_Pos (12U)
  14452. #define RCC_D3AMR_LPTIM5AMEN_Msk (0x1U << RCC_D3AMR_LPTIM5AMEN_Pos) /*!< 0x00001000 */
  14453. #define RCC_D3AMR_LPTIM5AMEN RCC_D3AMR_LPTIM5AMEN_Msk
  14454. #define RCC_D3AMR_COMP12AMEN_Pos (14U)
  14455. #define RCC_D3AMR_COMP12AMEN_Msk (0x1U << RCC_D3AMR_COMP12AMEN_Pos) /*!< 0x00004000 */
  14456. #define RCC_D3AMR_COMP12AMEN RCC_D3AMR_COMP12AMEN_Msk
  14457. #define RCC_D3AMR_VREFAMEN_Pos (15U)
  14458. #define RCC_D3AMR_VREFAMEN_Msk (0x1U << RCC_D3AMR_VREFAMEN_Pos) /*!< 0x00008000 */
  14459. #define RCC_D3AMR_VREFAMEN RCC_D3AMR_VREFAMEN_Msk
  14460. #define RCC_D3AMR_RTCAMEN_Pos (16U)
  14461. #define RCC_D3AMR_RTCAMEN_Msk (0x1U << RCC_D3AMR_RTCAMEN_Pos) /*!< 0x00010000 */
  14462. #define RCC_D3AMR_RTCAMEN RCC_D3AMR_RTCAMEN_Msk
  14463. #define RCC_D3AMR_CRCAMEN_Pos (19U)
  14464. #define RCC_D3AMR_CRCAMEN_Msk (0x1U << RCC_D3AMR_CRCAMEN_Pos) /*!< 0x00080000 */
  14465. #define RCC_D3AMR_CRCAMEN RCC_D3AMR_CRCAMEN_Msk
  14466. #define RCC_D3AMR_SAI4AMEN_Pos (21U)
  14467. #define RCC_D3AMR_SAI4AMEN_Msk (0x1U << RCC_D3AMR_SAI4AMEN_Pos) /*!< 0x00200000 */
  14468. #define RCC_D3AMR_SAI4AMEN RCC_D3AMR_SAI4AMEN_Msk
  14469. #define RCC_D3AMR_ADC3AMEN_Pos (24U)
  14470. #define RCC_D3AMR_ADC3AMEN_Msk (0x1U << RCC_D3AMR_ADC3AMEN_Pos) /*!< 0x01000000 */
  14471. #define RCC_D3AMR_ADC3AMEN RCC_D3AMR_ADC3AMEN_Msk
  14472. #define RCC_D3AMR_BKPRAMAMEN_Pos (28U)
  14473. #define RCC_D3AMR_BKPRAMAMEN_Msk (0x1U << RCC_D3AMR_BKPRAMAMEN_Pos) /*!< 0x10000000 */
  14474. #define RCC_D3AMR_BKPRAMAMEN RCC_D3AMR_BKPRAMAMEN_Msk
  14475. #define RCC_D3AMR_SRAM4AMEN_Pos (29U)
  14476. #define RCC_D3AMR_SRAM4AMEN_Msk (0x1U << RCC_D3AMR_SRAM4AMEN_Pos) /*!< 0x20000000 */
  14477. #define RCC_D3AMR_SRAM4AMEN RCC_D3AMR_SRAM4AMEN_Msk
  14478. /******************** Bit definition for RCC_AHB3LPENR register **************/
  14479. #define RCC_AHB3LPENR_MDMALPEN_Pos (0U)
  14480. #define RCC_AHB3LPENR_MDMALPEN_Msk (0x1U << RCC_AHB3LPENR_MDMALPEN_Pos) /*!< 0x00000001 */
  14481. #define RCC_AHB3LPENR_MDMALPEN RCC_AHB3LPENR_MDMALPEN_Msk
  14482. #define RCC_AHB3LPENR_DMA2DLPEN_Pos (4U)
  14483. #define RCC_AHB3LPENR_DMA2DLPEN_Msk (0x1U << RCC_AHB3LPENR_DMA2DLPEN_Pos) /*!< 0x00000010 */
  14484. #define RCC_AHB3LPENR_DMA2DLPEN RCC_AHB3LPENR_DMA2DLPEN_Msk
  14485. #define RCC_AHB3LPENR_JPGDECLPEN_Pos (5U)
  14486. #define RCC_AHB3LPENR_JPGDECLPEN_Msk (0x1U << RCC_AHB3LPENR_JPGDECLPEN_Pos) /*!< 0x00000020 */
  14487. #define RCC_AHB3LPENR_JPGDECLPEN RCC_AHB3LPENR_JPGDECLPEN_Msk
  14488. #define RCC_AHB3LPENR_FLASHLPEN_Pos (8U)
  14489. #define RCC_AHB3LPENR_FLASHLPEN_Msk (0x1U << RCC_AHB3LPENR_FLASHLPEN_Pos) /*!< 0x00000100 */
  14490. #define RCC_AHB3LPENR_FLASHLPEN RCC_AHB3LPENR_FLASHLPEN_Msk
  14491. #define RCC_AHB3LPENR_FMCLPEN_Pos (12U)
  14492. #define RCC_AHB3LPENR_FMCLPEN_Msk (0x1U << RCC_AHB3LPENR_FMCLPEN_Pos) /*!< 0x00001000 */
  14493. #define RCC_AHB3LPENR_FMCLPEN RCC_AHB3LPENR_FMCLPEN_Msk
  14494. #define RCC_AHB3LPENR_QSPILPEN_Pos (14U)
  14495. #define RCC_AHB3LPENR_QSPILPEN_Msk (0x1U << RCC_AHB3LPENR_QSPILPEN_Pos) /*!< 0x00004000 */
  14496. #define RCC_AHB3LPENR_QSPILPEN RCC_AHB3LPENR_QSPILPEN_Msk
  14497. #define RCC_AHB3LPENR_SDMMC1LPEN_Pos (16U)
  14498. #define RCC_AHB3LPENR_SDMMC1LPEN_Msk (0x1U << RCC_AHB3LPENR_SDMMC1LPEN_Pos) /*!< 0x00010000 */
  14499. #define RCC_AHB3LPENR_SDMMC1LPEN RCC_AHB3LPENR_SDMMC1LPEN_Msk
  14500. #define RCC_AHB3LPENR_DTCM1LPEN_Pos (28U)
  14501. #define RCC_AHB3LPENR_DTCM1LPEN_Msk (0x1U << RCC_AHB3LPENR_DTCM1LPEN_Pos) /*!< 0x10000000 */
  14502. #define RCC_AHB3LPENR_DTCM1LPEN RCC_AHB3LPENR_DTCM1LPEN_Msk
  14503. #define RCC_AHB3LPENR_DTCM2LPEN_Pos (29U)
  14504. #define RCC_AHB3LPENR_DTCM2LPEN_Msk (0x1U << RCC_AHB3LPENR_DTCM2LPEN_Pos) /*!< 0x20000000 */
  14505. #define RCC_AHB3LPENR_DTCM2LPEN RCC_AHB3LPENR_DTCM2LPEN_Msk
  14506. #define RCC_AHB3LPENR_ITCMLPEN_Pos (30U)
  14507. #define RCC_AHB3LPENR_ITCMLPEN_Msk (0x1U << RCC_AHB3LPENR_ITCMLPEN_Pos) /*!< 0x40000000 */
  14508. #define RCC_AHB3LPENR_ITCMLPEN RCC_AHB3LPENR_ITCMLPEN_Msk
  14509. #define RCC_AHB3LPENR_AXISRAMLPEN_Pos (31U)
  14510. #define RCC_AHB3LPENR_AXISRAMLPEN_Msk (0x1U << RCC_AHB3LPENR_AXISRAMLPEN_Pos) /*!< 0x80000000 */
  14511. #define RCC_AHB3LPENR_AXISRAMLPEN RCC_AHB3LPENR_AXISRAMLPEN_Msk
  14512. /******************** Bit definition for RCC_AHB1LPENR register ***************/
  14513. #define RCC_AHB1LPENR_DMA1LPEN_Pos (0U)
  14514. #define RCC_AHB1LPENR_DMA1LPEN_Msk (0x1U << RCC_AHB1LPENR_DMA1LPEN_Pos) /*!< 0x00000001 */
  14515. #define RCC_AHB1LPENR_DMA1LPEN RCC_AHB1LPENR_DMA1LPEN_Msk
  14516. #define RCC_AHB1LPENR_DMA2LPEN_Pos (1U)
  14517. #define RCC_AHB1LPENR_DMA2LPEN_Msk (0x1U << RCC_AHB1LPENR_DMA2LPEN_Pos) /*!< 0x00000002 */
  14518. #define RCC_AHB1LPENR_DMA2LPEN RCC_AHB1LPENR_DMA2LPEN_Msk
  14519. #define RCC_AHB1LPENR_ADC12LPEN_Pos (5U)
  14520. #define RCC_AHB1LPENR_ADC12LPEN_Msk (0x1U << RCC_AHB1LPENR_ADC12LPEN_Pos) /*!< 0x00000020 */
  14521. #define RCC_AHB1LPENR_ADC12LPEN RCC_AHB1LPENR_ADC12LPEN_Msk
  14522. #define RCC_AHB1LPENR_ETH1MACLPEN_Pos (15U)
  14523. #define RCC_AHB1LPENR_ETH1MACLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1MACLPEN_Pos) /*!< 0x00008000 */
  14524. #define RCC_AHB1LPENR_ETH1MACLPEN RCC_AHB1LPENR_ETH1MACLPEN_Msk
  14525. #define RCC_AHB1LPENR_ETH1TXLPEN_Pos (16U)
  14526. #define RCC_AHB1LPENR_ETH1TXLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1TXLPEN_Pos) /*!< 0x00010000 */
  14527. #define RCC_AHB1LPENR_ETH1TXLPEN RCC_AHB1LPENR_ETH1TXLPEN_Msk
  14528. #define RCC_AHB1LPENR_ETH1RXLPEN_Pos (17U)
  14529. #define RCC_AHB1LPENR_ETH1RXLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1RXLPEN_Pos) /*!< 0x00020000 */
  14530. #define RCC_AHB1LPENR_ETH1RXLPEN RCC_AHB1LPENR_ETH1RXLPEN_Msk
  14531. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Pos (25U)
  14532. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Msk (0x1U << RCC_AHB1LPENR_USB1OTGHSLPEN_Pos) /*!< 0x02000000 */
  14533. #define RCC_AHB1LPENR_USB1OTGHSLPEN RCC_AHB1LPENR_USB1OTGHSLPEN_Msk
  14534. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos (26U)
  14535. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk (0x1U << RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos) /*!< 0x04000000 */
  14536. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk
  14537. #define RCC_AHB1LPENR_USB2OTGHSLPEN_Pos (27U)
  14538. #define RCC_AHB1LPENR_USB2OTGHSLPEN_Msk (0x1U << RCC_AHB1LPENR_USB2OTGHSLPEN_Pos) /*!< 0x08000000 */
  14539. #define RCC_AHB1LPENR_USB2OTGHSLPEN RCC_AHB1LPENR_USB2OTGHSLPEN_Msk
  14540. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN_Pos (28U)
  14541. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN_Msk (0x1U << RCC_AHB1LPENR_USB2OTGHSULPILPEN_Pos) /*!< 0x10000000 */
  14542. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN RCC_AHB1LPENR_USB2OTGHSULPILPEN_Msk
  14543. /******************** Bit definition for RCC_AHB2LPENR register ***************/
  14544. #define RCC_AHB2LPENR_DCMILPEN_Pos (0U)
  14545. #define RCC_AHB2LPENR_DCMILPEN_Msk (0x1U << RCC_AHB2LPENR_DCMILPEN_Pos) /*!< 0x00000001 */
  14546. #define RCC_AHB2LPENR_DCMILPEN RCC_AHB2LPENR_DCMILPEN_Msk
  14547. #define RCC_AHB2LPENR_CRYPLPEN_Pos (4U)
  14548. #define RCC_AHB2LPENR_CRYPLPEN_Msk (0x1U << RCC_AHB2LPENR_CRYPLPEN_Pos) /*!< 0x00000010 */
  14549. #define RCC_AHB2LPENR_CRYPLPEN RCC_AHB2LPENR_CRYPLPEN_Msk
  14550. #define RCC_AHB2LPENR_HASHLPEN_Pos (5U)
  14551. #define RCC_AHB2LPENR_HASHLPEN_Msk (0x1U << RCC_AHB2LPENR_HASHLPEN_Pos) /*!< 0x00000020 */
  14552. #define RCC_AHB2LPENR_HASHLPEN RCC_AHB2LPENR_HASHLPEN_Msk
  14553. #define RCC_AHB2LPENR_RNGLPEN_Pos (6U)
  14554. #define RCC_AHB2LPENR_RNGLPEN_Msk (0x1U << RCC_AHB2LPENR_RNGLPEN_Pos) /*!< 0x00000040 */
  14555. #define RCC_AHB2LPENR_RNGLPEN RCC_AHB2LPENR_RNGLPEN_Msk
  14556. #define RCC_AHB2LPENR_SDMMC2LPEN_Pos (9U)
  14557. #define RCC_AHB2LPENR_SDMMC2LPEN_Msk (0x1U << RCC_AHB2LPENR_SDMMC2LPEN_Pos) /*!< 0x00000200 */
  14558. #define RCC_AHB2LPENR_SDMMC2LPEN RCC_AHB2LPENR_SDMMC2LPEN_Msk
  14559. #define RCC_AHB2LPENR_D2SRAM1LPEN_Pos (30U)
  14560. #define RCC_AHB2LPENR_D2SRAM1LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM1LPEN_Pos) /*!< 0x40000000 */
  14561. #define RCC_AHB2LPENR_D2SRAM1LPEN RCC_AHB2LPENR_D2SRAM1LPEN_Msk
  14562. #define RCC_AHB2LPENR_D2SRAM2LPEN_Pos (30U)
  14563. #define RCC_AHB2LPENR_D2SRAM2LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM2LPEN_Pos) /*!< 0x40000000 */
  14564. #define RCC_AHB2LPENR_D2SRAM2LPEN RCC_AHB2LPENR_D2SRAM2LPEN_Msk
  14565. #define RCC_AHB2LPENR_D2SRAM3LPEN_Pos (31U)
  14566. #define RCC_AHB2LPENR_D2SRAM3LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM3LPEN_Pos) /*!< 0x80000000 */
  14567. #define RCC_AHB2LPENR_D2SRAM3LPEN RCC_AHB2LPENR_D2SRAM3LPEN_Msk
  14568. /******************** Bit definition for RCC_AHB4LPENR register ******************/
  14569. #define RCC_AHB4LPENR_GPIOALPEN_Pos (0U)
  14570. #define RCC_AHB4LPENR_GPIOALPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOALPEN_Pos) /*!< 0x00000001 */
  14571. #define RCC_AHB4LPENR_GPIOALPEN RCC_AHB4LPENR_GPIOALPEN_Msk
  14572. #define RCC_AHB4LPENR_GPIOBLPEN_Pos (1U)
  14573. #define RCC_AHB4LPENR_GPIOBLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOBLPEN_Pos) /*!< 0x00000002 */
  14574. #define RCC_AHB4LPENR_GPIOBLPEN RCC_AHB4LPENR_GPIOBLPEN_Msk
  14575. #define RCC_AHB4LPENR_GPIOCLPEN_Pos (2U)
  14576. #define RCC_AHB4LPENR_GPIOCLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOCLPEN_Pos) /*!< 0x00000004 */
  14577. #define RCC_AHB4LPENR_GPIOCLPEN RCC_AHB4LPENR_GPIOCLPEN_Msk
  14578. #define RCC_AHB4LPENR_GPIODLPEN_Pos (3U)
  14579. #define RCC_AHB4LPENR_GPIODLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIODLPEN_Pos) /*!< 0x00000008 */
  14580. #define RCC_AHB4LPENR_GPIODLPEN RCC_AHB4LPENR_GPIODLPEN_Msk
  14581. #define RCC_AHB4LPENR_GPIOELPEN_Pos (4U)
  14582. #define RCC_AHB4LPENR_GPIOELPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOELPEN_Pos) /*!< 0x00000010 */
  14583. #define RCC_AHB4LPENR_GPIOELPEN RCC_AHB4LPENR_GPIOELPEN_Msk
  14584. #define RCC_AHB4LPENR_GPIOFLPEN_Pos (5U)
  14585. #define RCC_AHB4LPENR_GPIOFLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOFLPEN_Pos) /*!< 0x00000020 */
  14586. #define RCC_AHB4LPENR_GPIOFLPEN RCC_AHB4LPENR_GPIOFLPEN_Msk
  14587. #define RCC_AHB4LPENR_GPIOGLPEN_Pos (6U)
  14588. #define RCC_AHB4LPENR_GPIOGLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOGLPEN_Pos) /*!< 0x00000040 */
  14589. #define RCC_AHB4LPENR_GPIOGLPEN RCC_AHB4LPENR_GPIOGLPEN_Msk
  14590. #define RCC_AHB4LPENR_GPIOHLPEN_Pos (7U)
  14591. #define RCC_AHB4LPENR_GPIOHLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOHLPEN_Pos) /*!< 0x00000080 */
  14592. #define RCC_AHB4LPENR_GPIOHLPEN RCC_AHB4LPENR_GPIOHLPEN_Msk
  14593. #define RCC_AHB4LPENR_GPIOILPEN_Pos (8U)
  14594. #define RCC_AHB4LPENR_GPIOILPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOILPEN_Pos) /*!< 0x00000100 */
  14595. #define RCC_AHB4LPENR_GPIOILPEN RCC_AHB4LPENR_GPIOILPEN_Msk
  14596. #define RCC_AHB4LPENR_GPIOJLPEN_Pos (9U)
  14597. #define RCC_AHB4LPENR_GPIOJLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOJLPEN_Pos) /*!< 0x00000200 */
  14598. #define RCC_AHB4LPENR_GPIOJLPEN RCC_AHB4LPENR_GPIOJLPEN_Msk
  14599. #define RCC_AHB4LPENR_GPIOKLPEN_Pos (10U)
  14600. #define RCC_AHB4LPENR_GPIOKLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOKLPEN_Pos) /*!< 0x00000400 */
  14601. #define RCC_AHB4LPENR_GPIOKLPEN RCC_AHB4LPENR_GPIOKLPEN_Msk
  14602. #define RCC_AHB4LPENR_CRCLPEN_Pos (19U)
  14603. #define RCC_AHB4LPENR_CRCLPEN_Msk (0x1U << RCC_AHB4LPENR_CRCLPEN_Pos) /*!< 0x00080000 */
  14604. #define RCC_AHB4LPENR_CRCLPEN RCC_AHB4LPENR_CRCLPEN_Msk
  14605. #define RCC_AHB4LPENR_BDMALPEN_Pos (21U)
  14606. #define RCC_AHB4LPENR_BDMALPEN_Msk (0x1U << RCC_AHB4LPENR_BDMALPEN_Pos) /*!< 0x00200000 */
  14607. #define RCC_AHB4LPENR_BDMALPEN RCC_AHB4LPENR_BDMALPEN_Msk
  14608. #define RCC_AHB4LPENR_ADC3LPEN_Pos (24U)
  14609. #define RCC_AHB4LPENR_ADC3LPEN_Msk (0x1U << RCC_AHB4LPENR_ADC3LPEN_Pos) /*!< 0x01000000 */
  14610. #define RCC_AHB4LPENR_ADC3LPEN RCC_AHB4LPENR_ADC3LPEN_Msk
  14611. #define RCC_AHB4LPENR_BKPRAMLPEN_Pos (28U)
  14612. #define RCC_AHB4LPENR_BKPRAMLPEN_Msk (0x1U << RCC_AHB4LPENR_BKPRAMLPEN_Pos) /*!< 0x10000000 */
  14613. #define RCC_AHB4LPENR_BKPRAMLPEN RCC_AHB4LPENR_BKPRAMLPEN_Msk
  14614. #define RCC_AHB4LPENR_D3SRAM1LPEN_Pos (29U)
  14615. #define RCC_AHB4LPENR_D3SRAM1LPEN_Msk (0x1U << RCC_AHB4LPENR_D3SRAM1LPEN_Pos) /*!< 0x20000000 */
  14616. #define RCC_AHB4LPENR_D3SRAM1LPEN RCC_AHB4LPENR_D3SRAM1LPEN_Msk
  14617. /******************** Bit definition for RCC_APB3LPENR register ******************/
  14618. #define RCC_APB3LPENR_LTDCLPEN_Pos (3U)
  14619. #define RCC_APB3LPENR_LTDCLPEN_Msk (0x1U << RCC_APB3LPENR_LTDCLPEN_Pos) /*!< 0x00000008 */
  14620. #define RCC_APB3LPENR_LTDCLPEN RCC_APB3LPENR_LTDCLPEN_Msk
  14621. #define RCC_APB3LPENR_WWDG1LPEN_Pos (6U)
  14622. #define RCC_APB3LPENR_WWDG1LPEN_Msk (0x1U << RCC_APB3LPENR_WWDG1LPEN_Pos) /*!< 0x00000040 */
  14623. #define RCC_APB3LPENR_WWDG1LPEN RCC_APB3LPENR_WWDG1LPEN_Msk
  14624. /******************** Bit definition for RCC_APB1LLPENR register ******************/
  14625. #define RCC_APB1LLPENR_TIM2LPEN_Pos (0U)
  14626. #define RCC_APB1LLPENR_TIM2LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM2LPEN_Pos) /*!< 0x00000001 */
  14627. #define RCC_APB1LLPENR_TIM2LPEN RCC_APB1LLPENR_TIM2LPEN_Msk
  14628. #define RCC_APB1LLPENR_TIM3LPEN_Pos (1U)
  14629. #define RCC_APB1LLPENR_TIM3LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM3LPEN_Pos) /*!< 0x00000002 */
  14630. #define RCC_APB1LLPENR_TIM3LPEN RCC_APB1LLPENR_TIM3LPEN_Msk
  14631. #define RCC_APB1LLPENR_TIM4LPEN_Pos (2U)
  14632. #define RCC_APB1LLPENR_TIM4LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM4LPEN_Pos) /*!< 0x00000004 */
  14633. #define RCC_APB1LLPENR_TIM4LPEN RCC_APB1LLPENR_TIM4LPEN_Msk
  14634. #define RCC_APB1LLPENR_TIM5LPEN_Pos (3U)
  14635. #define RCC_APB1LLPENR_TIM5LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM5LPEN_Pos) /*!< 0x00000008 */
  14636. #define RCC_APB1LLPENR_TIM5LPEN RCC_APB1LLPENR_TIM5LPEN_Msk
  14637. #define RCC_APB1LLPENR_TIM6LPEN_Pos (4U)
  14638. #define RCC_APB1LLPENR_TIM6LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM6LPEN_Pos) /*!< 0x00000010 */
  14639. #define RCC_APB1LLPENR_TIM6LPEN RCC_APB1LLPENR_TIM6LPEN_Msk
  14640. #define RCC_APB1LLPENR_TIM7LPEN_Pos (5U)
  14641. #define RCC_APB1LLPENR_TIM7LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM7LPEN_Pos) /*!< 0x00000020 */
  14642. #define RCC_APB1LLPENR_TIM7LPEN RCC_APB1LLPENR_TIM7LPEN_Msk
  14643. #define RCC_APB1LLPENR_TIM12LPEN_Pos (6U)
  14644. #define RCC_APB1LLPENR_TIM12LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM12LPEN_Pos) /*!< 0x00000040 */
  14645. #define RCC_APB1LLPENR_TIM12LPEN RCC_APB1LLPENR_TIM12LPEN_Msk
  14646. #define RCC_APB1LLPENR_TIM13LPEN_Pos (7U)
  14647. #define RCC_APB1LLPENR_TIM13LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM13LPEN_Pos) /*!< 0x00000080 */
  14648. #define RCC_APB1LLPENR_TIM13LPEN RCC_APB1LLPENR_TIM13LPEN_Msk
  14649. #define RCC_APB1LLPENR_TIM14LPEN_Pos (8U)
  14650. #define RCC_APB1LLPENR_TIM14LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM14LPEN_Pos) /*!< 0x00000100 */
  14651. #define RCC_APB1LLPENR_TIM14LPEN RCC_APB1LLPENR_TIM14LPEN_Msk
  14652. #define RCC_APB1LLPENR_LPTIM1LPEN_Pos (9U)
  14653. #define RCC_APB1LLPENR_LPTIM1LPEN_Msk (0x1U << RCC_APB1LLPENR_LPTIM1LPEN_Pos) /*!< 0x00000200 */
  14654. #define RCC_APB1LLPENR_LPTIM1LPEN RCC_APB1LLPENR_LPTIM1LPEN_Msk
  14655. #define RCC_APB1LLPENR_SPI2LPEN_Pos (14U)
  14656. #define RCC_APB1LLPENR_SPI2LPEN_Msk (0x1U << RCC_APB1LLPENR_SPI2LPEN_Pos) /*!< 0x00004000 */
  14657. #define RCC_APB1LLPENR_SPI2LPEN RCC_APB1LLPENR_SPI2LPEN_Msk
  14658. #define RCC_APB1LLPENR_SPI3LPEN_Pos (15U)
  14659. #define RCC_APB1LLPENR_SPI3LPEN_Msk (0x1U << RCC_APB1LLPENR_SPI3LPEN_Pos) /*!< 0x00008000 */
  14660. #define RCC_APB1LLPENR_SPI3LPEN RCC_APB1LLPENR_SPI3LPEN_Msk
  14661. #define RCC_APB1LLPENR_SPDIFRXLPEN_Pos (16U)
  14662. #define RCC_APB1LLPENR_SPDIFRXLPEN_Msk (0x1U << RCC_APB1LLPENR_SPDIFRXLPEN_Pos) /*!< 0x00010000 */
  14663. #define RCC_APB1LLPENR_SPDIFRXLPEN RCC_APB1LLPENR_SPDIFRXLPEN_Msk
  14664. #define RCC_APB1LLPENR_USART2LPEN_Pos (17U)
  14665. #define RCC_APB1LLPENR_USART2LPEN_Msk (0x1U << RCC_APB1LLPENR_USART2LPEN_Pos) /*!< 0x00020000 */
  14666. #define RCC_APB1LLPENR_USART2LPEN RCC_APB1LLPENR_USART2LPEN_Msk
  14667. #define RCC_APB1LLPENR_USART3LPEN_Pos (18U)
  14668. #define RCC_APB1LLPENR_USART3LPEN_Msk (0x1U << RCC_APB1LLPENR_USART3LPEN_Pos) /*!< 0x00040000 */
  14669. #define RCC_APB1LLPENR_USART3LPEN RCC_APB1LLPENR_USART3LPEN_Msk
  14670. #define RCC_APB1LLPENR_UART4LPEN_Pos (19U)
  14671. #define RCC_APB1LLPENR_UART4LPEN_Msk (0x1U << RCC_APB1LLPENR_UART4LPEN_Pos) /*!< 0x00080000 */
  14672. #define RCC_APB1LLPENR_UART4LPEN RCC_APB1LLPENR_UART4LPEN_Msk
  14673. #define RCC_APB1LLPENR_UART5LPEN_Pos (20U)
  14674. #define RCC_APB1LLPENR_UART5LPEN_Msk (0x1U << RCC_APB1LLPENR_UART5LPEN_Pos) /*!< 0x00100000 */
  14675. #define RCC_APB1LLPENR_UART5LPEN RCC_APB1LLPENR_UART5LPEN_Msk
  14676. #define RCC_APB1LLPENR_I2C1LPEN_Pos (21U)
  14677. #define RCC_APB1LLPENR_I2C1LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C1LPEN_Pos) /*!< 0x00200000 */
  14678. #define RCC_APB1LLPENR_I2C1LPEN RCC_APB1LLPENR_I2C1LPEN_Msk
  14679. #define RCC_APB1LLPENR_I2C2LPEN_Pos (22U)
  14680. #define RCC_APB1LLPENR_I2C2LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C2LPEN_Pos) /*!< 0x00400000 */
  14681. #define RCC_APB1LLPENR_I2C2LPEN RCC_APB1LLPENR_I2C2LPEN_Msk
  14682. #define RCC_APB1LLPENR_I2C3LPEN_Pos (23U)
  14683. #define RCC_APB1LLPENR_I2C3LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C3LPEN_Pos) /*!< 0x00800000 */
  14684. #define RCC_APB1LLPENR_I2C3LPEN RCC_APB1LLPENR_I2C3LPEN_Msk
  14685. #define RCC_APB1LLPENR_CECLPEN_Pos (27U)
  14686. #define RCC_APB1LLPENR_CECLPEN_Msk (0x1U << RCC_APB1LLPENR_CECLPEN_Pos) /*!< 0x08000000 */
  14687. #define RCC_APB1LLPENR_CECLPEN RCC_APB1LLPENR_CECLPEN_Msk
  14688. #define RCC_APB1LLPENR_DAC12LPEN_Pos (29U)
  14689. #define RCC_APB1LLPENR_DAC12LPEN_Msk (0x1U << RCC_APB1LLPENR_DAC12LPEN_Pos) /*!< 0x20000000 */
  14690. #define RCC_APB1LLPENR_DAC12LPEN RCC_APB1LLPENR_DAC12LPEN_Msk
  14691. #define RCC_APB1LLPENR_UART7LPEN_Pos (30U)
  14692. #define RCC_APB1LLPENR_UART7LPEN_Msk (0x1U << RCC_APB1LLPENR_UART7LPEN_Pos) /*!< 0x40000000 */
  14693. #define RCC_APB1LLPENR_UART7LPEN RCC_APB1LLPENR_UART7LPEN_Msk
  14694. #define RCC_APB1LLPENR_UART8LPEN_Pos (31U)
  14695. #define RCC_APB1LLPENR_UART8LPEN_Msk (0x1U << RCC_APB1LLPENR_UART8LPEN_Pos) /*!< 0x80000000 */
  14696. #define RCC_APB1LLPENR_UART8LPEN RCC_APB1LLPENR_UART8LPEN_Msk
  14697. /******************** Bit definition for RCC_APB1HLPENR register ******************/
  14698. #define RCC_APB1HLPENR_CRSLPEN_Pos (1U)
  14699. #define RCC_APB1HLPENR_CRSLPEN_Msk (0x1U << RCC_APB1HLPENR_CRSLPEN_Pos) /*!< 0x00000002 */
  14700. #define RCC_APB1HLPENR_CRSLPEN RCC_APB1HLPENR_CRSLPEN_Msk
  14701. #define RCC_APB1HLPENR_SWPMILPEN_Pos (2U)
  14702. #define RCC_APB1HLPENR_SWPMILPEN_Msk (0x1U << RCC_APB1HLPENR_SWPMILPEN_Pos) /*!< 0x00000004 */
  14703. #define RCC_APB1HLPENR_SWPMILPEN RCC_APB1HLPENR_SWPMILPEN_Msk
  14704. #define RCC_APB1HLPENR_OPAMPLPEN_Pos (4U)
  14705. #define RCC_APB1HLPENR_OPAMPLPEN_Msk (0x1U << RCC_APB1HLPENR_OPAMPLPEN_Pos) /*!< 0x00000010 */
  14706. #define RCC_APB1HLPENR_OPAMPLPEN RCC_APB1HLPENR_OPAMPLPEN_Msk
  14707. #define RCC_APB1HLPENR_MDIOSLPEN_Pos (5U)
  14708. #define RCC_APB1HLPENR_MDIOSLPEN_Msk (0x1U << RCC_APB1HLPENR_MDIOSLPEN_Pos) /*!< 0x00000020 */
  14709. #define RCC_APB1HLPENR_MDIOSLPEN RCC_APB1HLPENR_MDIOSLPEN_Msk
  14710. #define RCC_APB1HLPENR_FDCANLPEN_Pos (8U)
  14711. #define RCC_APB1HLPENR_FDCANLPEN_Msk (0x1U << RCC_APB1HLPENR_FDCANLPEN_Pos) /*!< 0x00000100 */
  14712. #define RCC_APB1HLPENR_FDCANLPEN RCC_APB1HLPENR_FDCANLPEN_Msk
  14713. /******************** Bit definition for RCC_APB2LPENR register ******************/
  14714. #define RCC_APB2LPENR_TIM1LPEN_Pos (0U)
  14715. #define RCC_APB2LPENR_TIM1LPEN_Msk (0x1U << RCC_APB2LPENR_TIM1LPEN_Pos) /*!< 0x00000001 */
  14716. #define RCC_APB2LPENR_TIM1LPEN RCC_APB2LPENR_TIM1LPEN_Msk
  14717. #define RCC_APB2LPENR_TIM8LPEN_Pos (1U)
  14718. #define RCC_APB2LPENR_TIM8LPEN_Msk (0x1U << RCC_APB2LPENR_TIM8LPEN_Pos) /*!< 0x00000002 */
  14719. #define RCC_APB2LPENR_TIM8LPEN RCC_APB2LPENR_TIM8LPEN_Msk
  14720. #define RCC_APB2LPENR_USART1LPEN_Pos (4U)
  14721. #define RCC_APB2LPENR_USART1LPEN_Msk (0x1U << RCC_APB2LPENR_USART1LPEN_Pos) /*!< 0x00000010 */
  14722. #define RCC_APB2LPENR_USART1LPEN RCC_APB2LPENR_USART1LPEN_Msk
  14723. #define RCC_APB2LPENR_USART6LPEN_Pos (5U)
  14724. #define RCC_APB2LPENR_USART6LPEN_Msk (0x1U << RCC_APB2LPENR_USART6LPEN_Pos) /*!< 0x00000020 */
  14725. #define RCC_APB2LPENR_USART6LPEN RCC_APB2LPENR_USART6LPEN_Msk
  14726. #define RCC_APB2LPENR_SPI1LPEN_Pos (12U)
  14727. #define RCC_APB2LPENR_SPI1LPEN_Msk (0x1U << RCC_APB2LPENR_SPI1LPEN_Pos) /*!< 0x00001000 */
  14728. #define RCC_APB2LPENR_SPI1LPEN RCC_APB2LPENR_SPI1LPEN_Msk
  14729. #define RCC_APB2LPENR_SPI4LPEN_Pos (13U)
  14730. #define RCC_APB2LPENR_SPI4LPEN_Msk (0x1U << RCC_APB2LPENR_SPI4LPEN_Pos) /*!< 0x00002000 */
  14731. #define RCC_APB2LPENR_SPI4LPEN RCC_APB2LPENR_SPI4LPEN_Msk
  14732. #define RCC_APB2LPENR_TIM15LPEN_Pos (16U)
  14733. #define RCC_APB2LPENR_TIM15LPEN_Msk (0x1U << RCC_APB2LPENR_TIM15LPEN_Pos) /*!< 0x00010000 */
  14734. #define RCC_APB2LPENR_TIM15LPEN RCC_APB2LPENR_TIM15LPEN_Msk
  14735. #define RCC_APB2LPENR_TIM16LPEN_Pos (17U)
  14736. #define RCC_APB2LPENR_TIM16LPEN_Msk (0x1U << RCC_APB2LPENR_TIM16LPEN_Pos) /*!< 0x00020000 */
  14737. #define RCC_APB2LPENR_TIM16LPEN RCC_APB2LPENR_TIM16LPEN_Msk
  14738. #define RCC_APB2LPENR_TIM17LPEN_Pos (18U)
  14739. #define RCC_APB2LPENR_TIM17LPEN_Msk (0x1U << RCC_APB2LPENR_TIM17LPEN_Pos) /*!< 0x00040000 */
  14740. #define RCC_APB2LPENR_TIM17LPEN RCC_APB2LPENR_TIM17LPEN_Msk
  14741. #define RCC_APB2LPENR_SPI5LPEN_Pos (20U)
  14742. #define RCC_APB2LPENR_SPI5LPEN_Msk (0x1U << RCC_APB2LPENR_SPI5LPEN_Pos) /*!< 0x00100000 */
  14743. #define RCC_APB2LPENR_SPI5LPEN RCC_APB2LPENR_SPI5LPEN_Msk
  14744. #define RCC_APB2LPENR_SAI1LPEN_Pos (22U)
  14745. #define RCC_APB2LPENR_SAI1LPEN_Msk (0x1U << RCC_APB2LPENR_SAI1LPEN_Pos) /*!< 0x00400000 */
  14746. #define RCC_APB2LPENR_SAI1LPEN RCC_APB2LPENR_SAI1LPEN_Msk
  14747. #define RCC_APB2LPENR_SAI2LPEN_Pos (23U)
  14748. #define RCC_APB2LPENR_SAI2LPEN_Msk (0x1U << RCC_APB2LPENR_SAI2LPEN_Pos) /*!< 0x00800000 */
  14749. #define RCC_APB2LPENR_SAI2LPEN RCC_APB2LPENR_SAI2LPEN_Msk
  14750. #define RCC_APB2LPENR_SAI3LPEN_Pos (24U)
  14751. #define RCC_APB2LPENR_SAI3LPEN_Msk (0x1U << RCC_APB2LPENR_SAI3LPEN_Pos) /*!< 0x01000000 */
  14752. #define RCC_APB2LPENR_SAI3LPEN RCC_APB2LPENR_SAI3LPEN_Msk
  14753. #define RCC_APB2LPENR_DFSDM1LPEN_Pos (28U)
  14754. #define RCC_APB2LPENR_DFSDM1LPEN_Msk (0x1U << RCC_APB2LPENR_DFSDM1LPEN_Pos) /*!< 0x10000000 */
  14755. #define RCC_APB2LPENR_DFSDM1LPEN RCC_APB2LPENR_DFSDM1LPEN_Msk
  14756. #define RCC_APB2LPENR_HRTIMLPEN_Pos (29U)
  14757. #define RCC_APB2LPENR_HRTIMLPEN_Msk (0x1U << RCC_APB2LPENR_HRTIMLPEN_Pos) /*!< 0x20000000 */
  14758. #define RCC_APB2LPENR_HRTIMLPEN RCC_APB2LPENR_HRTIMLPEN_Msk
  14759. /******************** Bit definition for RCC_APB4LPENR register ******************/
  14760. #define RCC_APB4LPENR_SYSCFGLPEN_Pos (1U)
  14761. #define RCC_APB4LPENR_SYSCFGLPEN_Msk (0x1U << RCC_APB4LPENR_SYSCFGLPEN_Pos) /*!< 0x00000002 */
  14762. #define RCC_APB4LPENR_SYSCFGLPEN RCC_APB4LPENR_SYSCFGLPEN_Msk
  14763. #define RCC_APB4LPENR_LPUART1LPEN_Pos (3U)
  14764. #define RCC_APB4LPENR_LPUART1LPEN_Msk (0x1U << RCC_APB4LPENR_LPUART1LPEN_Pos) /*!< 0x00000008 */
  14765. #define RCC_APB4LPENR_LPUART1LPEN RCC_APB4LPENR_LPUART1LPEN_Msk
  14766. #define RCC_APB4LPENR_SPI6LPEN_Pos (5U)
  14767. #define RCC_APB4LPENR_SPI6LPEN_Msk (0x1U << RCC_APB4LPENR_SPI6LPEN_Pos) /*!< 0x00000020 */
  14768. #define RCC_APB4LPENR_SPI6LPEN RCC_APB4LPENR_SPI6LPEN_Msk
  14769. #define RCC_APB4LPENR_I2C4LPEN_Pos (7U)
  14770. #define RCC_APB4LPENR_I2C4LPEN_Msk (0x1U << RCC_APB4LPENR_I2C4LPEN_Pos) /*!< 0x00000080 */
  14771. #define RCC_APB4LPENR_I2C4LPEN RCC_APB4LPENR_I2C4LPEN_Msk
  14772. #define RCC_APB4LPENR_LPTIM2LPEN_Pos (9U)
  14773. #define RCC_APB4LPENR_LPTIM2LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM2LPEN_Pos) /*!< 0x00000200 */
  14774. #define RCC_APB4LPENR_LPTIM2LPEN RCC_APB4LPENR_LPTIM2LPEN_Msk
  14775. #define RCC_APB4LPENR_LPTIM3LPEN_Pos (10U)
  14776. #define RCC_APB4LPENR_LPTIM3LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM3LPEN_Pos) /*!< 0x00000400 */
  14777. #define RCC_APB4LPENR_LPTIM3LPEN RCC_APB4LPENR_LPTIM3LPEN_Msk
  14778. #define RCC_APB4LPENR_LPTIM4LPEN_Pos (11U)
  14779. #define RCC_APB4LPENR_LPTIM4LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM4LPEN_Pos) /*!< 0x00000800 */
  14780. #define RCC_APB4LPENR_LPTIM4LPEN RCC_APB4LPENR_LPTIM4LPEN_Msk
  14781. #define RCC_APB4LPENR_LPTIM5LPEN_Pos (12U)
  14782. #define RCC_APB4LPENR_LPTIM5LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM5LPEN_Pos) /*!< 0x00001000 */
  14783. #define RCC_APB4LPENR_LPTIM5LPEN RCC_APB4LPENR_LPTIM5LPEN_Msk
  14784. #define RCC_APB4LPENR_COMP12LPEN_Pos (14U)
  14785. #define RCC_APB4LPENR_COMP12LPEN_Msk (0x1U << RCC_APB4LPENR_COMP12LPEN_Pos) /*!< 0x00004000 */
  14786. #define RCC_APB4LPENR_COMP12LPEN RCC_APB4LPENR_COMP12LPEN_Msk
  14787. #define RCC_APB4LPENR_VREFLPEN_Pos (15U)
  14788. #define RCC_APB4LPENR_VREFLPEN_Msk (0x1U << RCC_APB4LPENR_VREFLPEN_Pos) /*!< 0x00008000 */
  14789. #define RCC_APB4LPENR_VREFLPEN RCC_APB4LPENR_VREFLPEN_Msk
  14790. #define RCC_APB4LPENR_RTCAPBLPEN_Pos (16U)
  14791. #define RCC_APB4LPENR_RTCAPBLPEN_Msk (0x1U << RCC_APB4LPENR_RTCAPBLPEN_Pos) /*!< 0x00010000 */
  14792. #define RCC_APB4LPENR_RTCAPBLPEN RCC_APB4LPENR_RTCAPBLPEN_Msk
  14793. #define RCC_APB4LPENR_SAI4LPEN_Pos (21U)
  14794. #define RCC_APB4LPENR_SAI4LPEN_Msk (0x1U << RCC_APB4LPENR_SAI4LPEN_Pos) /*!< 0x00200000 */
  14795. #define RCC_APB4LPENR_SAI4LPEN RCC_APB4LPENR_SAI4LPEN_Msk
  14796. /******************** Bit definition for RCC_RSR register *******************/
  14797. #define RCC_RSR_RMVF_Pos (16U)
  14798. #define RCC_RSR_RMVF_Msk (0x1U << RCC_RSR_RMVF_Pos) /*!< 0x00010000 */
  14799. #define RCC_RSR_RMVF RCC_RSR_RMVF_Msk
  14800. #define RCC_RSR_CPURSTF_Pos (17U)
  14801. #define RCC_RSR_CPURSTF_Msk (0x1U << RCC_RSR_CPURSTF_Pos) /*!< 0x00020000 */
  14802. #define RCC_RSR_CPURSTF RCC_RSR_CPURSTF_Msk
  14803. #define RCC_RSR_D1RSTF_Pos (19U)
  14804. #define RCC_RSR_D1RSTF_Msk (0x1U << RCC_RSR_D1RSTF_Pos) /*!< 0x00080000 */
  14805. #define RCC_RSR_D1RSTF RCC_RSR_D1RSTF_Msk
  14806. #define RCC_RSR_D2RSTF_Pos (20U)
  14807. #define RCC_RSR_D2RSTF_Msk (0x1U << RCC_RSR_D2RSTF_Pos) /*!< 0x00100000 */
  14808. #define RCC_RSR_D2RSTF RCC_RSR_D2RSTF_Msk
  14809. #define RCC_RSR_BORRSTF_Pos (21U)
  14810. #define RCC_RSR_BORRSTF_Msk (0x1U << RCC_RSR_BORRSTF_Pos) /*!< 0x00200000 */
  14811. #define RCC_RSR_BORRSTF RCC_RSR_BORRSTF_Msk
  14812. #define RCC_RSR_PINRSTF_Pos (22U)
  14813. #define RCC_RSR_PINRSTF_Msk (0x1U << RCC_RSR_PINRSTF_Pos) /*!< 0x00400000 */
  14814. #define RCC_RSR_PINRSTF RCC_RSR_PINRSTF_Msk
  14815. #define RCC_RSR_PORRSTF_Pos (23U)
  14816. #define RCC_RSR_PORRSTF_Msk (0x1U << RCC_RSR_PORRSTF_Pos) /*!< 0x00800000 */
  14817. #define RCC_RSR_PORRSTF RCC_RSR_PORRSTF_Msk
  14818. #define RCC_RSR_SFTRSTF_Pos (24U)
  14819. #define RCC_RSR_SFTRSTF_Msk (0x1U << RCC_RSR_SFTRSTF_Pos) /*!< 0x01000000 */
  14820. #define RCC_RSR_SFTRSTF RCC_RSR_SFTRSTF_Msk
  14821. #define RCC_RSR_IWDG1RSTF_Pos (26U)
  14822. #define RCC_RSR_IWDG1RSTF_Msk (0x1U << RCC_RSR_IWDG1RSTF_Pos) /*!< 0x04000000 */
  14823. #define RCC_RSR_IWDG1RSTF RCC_RSR_IWDG1RSTF_Msk
  14824. #define RCC_RSR_WWDG1RSTF_Pos (28U)
  14825. #define RCC_RSR_WWDG1RSTF_Msk (0x1U << RCC_RSR_WWDG1RSTF_Pos) /*!< 0x10000000 */
  14826. #define RCC_RSR_WWDG1RSTF RCC_RSR_WWDG1RSTF_Msk
  14827. #define RCC_RSR_LPWRRSTF_Pos (30U)
  14828. #define RCC_RSR_LPWRRSTF_Msk (0x1U << RCC_RSR_LPWRRSTF_Pos) /*!< 0x40000000 */
  14829. #define RCC_RSR_LPWRRSTF RCC_RSR_LPWRRSTF_Msk
  14830. /******************************************************************************/
  14831. /* */
  14832. /* RNG */
  14833. /* */
  14834. /******************************************************************************/
  14835. /******************** Bits definition for RNG_CR register *******************/
  14836. #define RNG_CR_RNGEN_Pos (2U)
  14837. #define RNG_CR_RNGEN_Msk (0x1U << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */
  14838. #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk
  14839. #define RNG_CR_IE_Pos (3U)
  14840. #define RNG_CR_IE_Msk (0x1U << RNG_CR_IE_Pos) /*!< 0x00000008 */
  14841. #define RNG_CR_IE RNG_CR_IE_Msk
  14842. #define RNG_CR_CED_Pos (5U)
  14843. #define RNG_CR_CED_Msk (0x1U << RNG_CR_CED_Pos) /*!< 0x00000020 */
  14844. #define RNG_CR_CED RNG_CR_CED_Msk
  14845. /******************** Bits definition for RNG_SR register *******************/
  14846. #define RNG_SR_DRDY_Pos (0U)
  14847. #define RNG_SR_DRDY_Msk (0x1U << RNG_SR_DRDY_Pos) /*!< 0x00000001 */
  14848. #define RNG_SR_DRDY RNG_SR_DRDY_Msk
  14849. #define RNG_SR_CECS_Pos (1U)
  14850. #define RNG_SR_CECS_Msk (0x1U << RNG_SR_CECS_Pos) /*!< 0x00000002 */
  14851. #define RNG_SR_CECS RNG_SR_CECS_Msk
  14852. #define RNG_SR_SECS_Pos (2U)
  14853. #define RNG_SR_SECS_Msk (0x1U << RNG_SR_SECS_Pos) /*!< 0x00000004 */
  14854. #define RNG_SR_SECS RNG_SR_SECS_Msk
  14855. #define RNG_SR_CEIS_Pos (5U)
  14856. #define RNG_SR_CEIS_Msk (0x1U << RNG_SR_CEIS_Pos) /*!< 0x00000020 */
  14857. #define RNG_SR_CEIS RNG_SR_CEIS_Msk
  14858. #define RNG_SR_SEIS_Pos (6U)
  14859. #define RNG_SR_SEIS_Msk (0x1U << RNG_SR_SEIS_Pos) /*!< 0x00000040 */
  14860. #define RNG_SR_SEIS RNG_SR_SEIS_Msk
  14861. /******************************************************************************/
  14862. /* */
  14863. /* Real-Time Clock (RTC) */
  14864. /* */
  14865. /******************************************************************************/
  14866. /******************** Bits definition for RTC_TR register *******************/
  14867. #define RTC_TR_PM_Pos (22U)
  14868. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  14869. #define RTC_TR_PM RTC_TR_PM_Msk
  14870. #define RTC_TR_HT_Pos (20U)
  14871. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  14872. #define RTC_TR_HT RTC_TR_HT_Msk
  14873. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  14874. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  14875. #define RTC_TR_HU_Pos (16U)
  14876. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  14877. #define RTC_TR_HU RTC_TR_HU_Msk
  14878. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  14879. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  14880. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  14881. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  14882. #define RTC_TR_MNT_Pos (12U)
  14883. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  14884. #define RTC_TR_MNT RTC_TR_MNT_Msk
  14885. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  14886. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  14887. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  14888. #define RTC_TR_MNU_Pos (8U)
  14889. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  14890. #define RTC_TR_MNU RTC_TR_MNU_Msk
  14891. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  14892. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  14893. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  14894. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  14895. #define RTC_TR_ST_Pos (4U)
  14896. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  14897. #define RTC_TR_ST RTC_TR_ST_Msk
  14898. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  14899. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  14900. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  14901. #define RTC_TR_SU_Pos (0U)
  14902. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  14903. #define RTC_TR_SU RTC_TR_SU_Msk
  14904. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  14905. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  14906. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  14907. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  14908. /******************** Bits definition for RTC_DR register *******************/
  14909. #define RTC_DR_YT_Pos (20U)
  14910. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  14911. #define RTC_DR_YT RTC_DR_YT_Msk
  14912. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  14913. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  14914. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  14915. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  14916. #define RTC_DR_YU_Pos (16U)
  14917. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  14918. #define RTC_DR_YU RTC_DR_YU_Msk
  14919. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  14920. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  14921. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  14922. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  14923. #define RTC_DR_WDU_Pos (13U)
  14924. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  14925. #define RTC_DR_WDU RTC_DR_WDU_Msk
  14926. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  14927. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  14928. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  14929. #define RTC_DR_MT_Pos (12U)
  14930. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  14931. #define RTC_DR_MT RTC_DR_MT_Msk
  14932. #define RTC_DR_MU_Pos (8U)
  14933. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  14934. #define RTC_DR_MU RTC_DR_MU_Msk
  14935. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  14936. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  14937. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  14938. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  14939. #define RTC_DR_DT_Pos (4U)
  14940. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  14941. #define RTC_DR_DT RTC_DR_DT_Msk
  14942. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  14943. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  14944. #define RTC_DR_DU_Pos (0U)
  14945. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  14946. #define RTC_DR_DU RTC_DR_DU_Msk
  14947. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  14948. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  14949. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  14950. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  14951. /******************** Bits definition for RTC_CR register *******************/
  14952. #define RTC_CR_ITSE_Pos (24U)
  14953. #define RTC_CR_ITSE_Msk (0x1U << RTC_CR_ITSE_Pos) /*!< 0x01000000 */
  14954. #define RTC_CR_ITSE RTC_CR_ITSE_Msk
  14955. #define RTC_CR_COE_Pos (23U)
  14956. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  14957. #define RTC_CR_COE RTC_CR_COE_Msk
  14958. #define RTC_CR_OSEL_Pos (21U)
  14959. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  14960. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  14961. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  14962. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  14963. #define RTC_CR_POL_Pos (20U)
  14964. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  14965. #define RTC_CR_POL RTC_CR_POL_Msk
  14966. #define RTC_CR_COSEL_Pos (19U)
  14967. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  14968. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  14969. #define RTC_CR_BCK_Pos (18U)
  14970. #define RTC_CR_BCK_Msk (0x1U << RTC_CR_BCK_Pos) /*!< 0x00040000 */
  14971. #define RTC_CR_BCK RTC_CR_BCK_Msk
  14972. #define RTC_CR_SUB1H_Pos (17U)
  14973. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  14974. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  14975. #define RTC_CR_ADD1H_Pos (16U)
  14976. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  14977. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  14978. #define RTC_CR_TSIE_Pos (15U)
  14979. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  14980. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  14981. #define RTC_CR_WUTIE_Pos (14U)
  14982. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  14983. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  14984. #define RTC_CR_ALRBIE_Pos (13U)
  14985. #define RTC_CR_ALRBIE_Msk (0x1U << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  14986. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  14987. #define RTC_CR_ALRAIE_Pos (12U)
  14988. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  14989. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  14990. #define RTC_CR_TSE_Pos (11U)
  14991. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  14992. #define RTC_CR_TSE RTC_CR_TSE_Msk
  14993. #define RTC_CR_WUTE_Pos (10U)
  14994. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  14995. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  14996. #define RTC_CR_ALRBE_Pos (9U)
  14997. #define RTC_CR_ALRBE_Msk (0x1U << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  14998. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  14999. #define RTC_CR_ALRAE_Pos (8U)
  15000. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  15001. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  15002. #define RTC_CR_FMT_Pos (6U)
  15003. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  15004. #define RTC_CR_FMT RTC_CR_FMT_Msk
  15005. #define RTC_CR_BYPSHAD_Pos (5U)
  15006. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  15007. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  15008. #define RTC_CR_REFCKON_Pos (4U)
  15009. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  15010. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  15011. #define RTC_CR_TSEDGE_Pos (3U)
  15012. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  15013. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  15014. #define RTC_CR_WUCKSEL_Pos (0U)
  15015. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  15016. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  15017. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  15018. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  15019. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  15020. /******************** Bits definition for RTC_ISR register ******************/
  15021. #define RTC_ISR_ITSF_Pos (17U)
  15022. #define RTC_ISR_ITSF_Msk (0x1U << RTC_ISR_ITSF_Pos) /*!< 0x00020000 */
  15023. #define RTC_ISR_ITSF RTC_ISR_ITSF_Msk
  15024. #define RTC_ISR_RECALPF_Pos (16U)
  15025. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  15026. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  15027. #define RTC_ISR_TAMP3F_Pos (15U)
  15028. #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  15029. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  15030. #define RTC_ISR_TAMP2F_Pos (14U)
  15031. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  15032. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  15033. #define RTC_ISR_TAMP1F_Pos (13U)
  15034. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  15035. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  15036. #define RTC_ISR_TSOVF_Pos (12U)
  15037. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  15038. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  15039. #define RTC_ISR_TSF_Pos (11U)
  15040. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  15041. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  15042. #define RTC_ISR_WUTF_Pos (10U)
  15043. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  15044. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  15045. #define RTC_ISR_ALRBF_Pos (9U)
  15046. #define RTC_ISR_ALRBF_Msk (0x1U << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */
  15047. #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk
  15048. #define RTC_ISR_ALRAF_Pos (8U)
  15049. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  15050. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  15051. #define RTC_ISR_INIT_Pos (7U)
  15052. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  15053. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  15054. #define RTC_ISR_INITF_Pos (6U)
  15055. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  15056. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  15057. #define RTC_ISR_RSF_Pos (5U)
  15058. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  15059. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  15060. #define RTC_ISR_INITS_Pos (4U)
  15061. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  15062. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  15063. #define RTC_ISR_SHPF_Pos (3U)
  15064. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  15065. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  15066. #define RTC_ISR_WUTWF_Pos (2U)
  15067. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  15068. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  15069. #define RTC_ISR_ALRBWF_Pos (1U)
  15070. #define RTC_ISR_ALRBWF_Msk (0x1U << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */
  15071. #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk
  15072. #define RTC_ISR_ALRAWF_Pos (0U)
  15073. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  15074. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  15075. /******************** Bits definition for RTC_PRER register *****************/
  15076. #define RTC_PRER_PREDIV_A_Pos (16U)
  15077. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  15078. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  15079. #define RTC_PRER_PREDIV_S_Pos (0U)
  15080. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  15081. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  15082. /******************** Bits definition for RTC_WUTR register *****************/
  15083. #define RTC_WUTR_WUT_Pos (0U)
  15084. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  15085. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  15086. /******************** Bits definition for RTC_ALRMAR register ***************/
  15087. #define RTC_ALRMAR_MSK4_Pos (31U)
  15088. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  15089. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  15090. #define RTC_ALRMAR_WDSEL_Pos (30U)
  15091. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  15092. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  15093. #define RTC_ALRMAR_DT_Pos (28U)
  15094. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  15095. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  15096. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  15097. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  15098. #define RTC_ALRMAR_DU_Pos (24U)
  15099. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  15100. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  15101. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  15102. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  15103. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  15104. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  15105. #define RTC_ALRMAR_MSK3_Pos (23U)
  15106. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  15107. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  15108. #define RTC_ALRMAR_PM_Pos (22U)
  15109. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  15110. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  15111. #define RTC_ALRMAR_HT_Pos (20U)
  15112. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  15113. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  15114. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  15115. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  15116. #define RTC_ALRMAR_HU_Pos (16U)
  15117. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  15118. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  15119. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  15120. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  15121. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  15122. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  15123. #define RTC_ALRMAR_MSK2_Pos (15U)
  15124. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  15125. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  15126. #define RTC_ALRMAR_MNT_Pos (12U)
  15127. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  15128. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  15129. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  15130. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  15131. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  15132. #define RTC_ALRMAR_MNU_Pos (8U)
  15133. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  15134. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  15135. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  15136. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  15137. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  15138. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  15139. #define RTC_ALRMAR_MSK1_Pos (7U)
  15140. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  15141. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  15142. #define RTC_ALRMAR_ST_Pos (4U)
  15143. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  15144. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  15145. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  15146. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  15147. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  15148. #define RTC_ALRMAR_SU_Pos (0U)
  15149. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  15150. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  15151. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  15152. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  15153. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  15154. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  15155. /******************** Bits definition for RTC_ALRMBR register ***************/
  15156. #define RTC_ALRMBR_MSK4_Pos (31U)
  15157. #define RTC_ALRMBR_MSK4_Msk (0x1U << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  15158. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  15159. #define RTC_ALRMBR_WDSEL_Pos (30U)
  15160. #define RTC_ALRMBR_WDSEL_Msk (0x1U << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  15161. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  15162. #define RTC_ALRMBR_DT_Pos (28U)
  15163. #define RTC_ALRMBR_DT_Msk (0x3U << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  15164. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  15165. #define RTC_ALRMBR_DT_0 (0x1U << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  15166. #define RTC_ALRMBR_DT_1 (0x2U << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  15167. #define RTC_ALRMBR_DU_Pos (24U)
  15168. #define RTC_ALRMBR_DU_Msk (0xFU << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  15169. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  15170. #define RTC_ALRMBR_DU_0 (0x1U << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  15171. #define RTC_ALRMBR_DU_1 (0x2U << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  15172. #define RTC_ALRMBR_DU_2 (0x4U << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  15173. #define RTC_ALRMBR_DU_3 (0x8U << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  15174. #define RTC_ALRMBR_MSK3_Pos (23U)
  15175. #define RTC_ALRMBR_MSK3_Msk (0x1U << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  15176. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  15177. #define RTC_ALRMBR_PM_Pos (22U)
  15178. #define RTC_ALRMBR_PM_Msk (0x1U << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  15179. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  15180. #define RTC_ALRMBR_HT_Pos (20U)
  15181. #define RTC_ALRMBR_HT_Msk (0x3U << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  15182. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  15183. #define RTC_ALRMBR_HT_0 (0x1U << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  15184. #define RTC_ALRMBR_HT_1 (0x2U << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  15185. #define RTC_ALRMBR_HU_Pos (16U)
  15186. #define RTC_ALRMBR_HU_Msk (0xFU << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  15187. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  15188. #define RTC_ALRMBR_HU_0 (0x1U << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  15189. #define RTC_ALRMBR_HU_1 (0x2U << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  15190. #define RTC_ALRMBR_HU_2 (0x4U << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  15191. #define RTC_ALRMBR_HU_3 (0x8U << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  15192. #define RTC_ALRMBR_MSK2_Pos (15U)
  15193. #define RTC_ALRMBR_MSK2_Msk (0x1U << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  15194. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  15195. #define RTC_ALRMBR_MNT_Pos (12U)
  15196. #define RTC_ALRMBR_MNT_Msk (0x7U << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  15197. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  15198. #define RTC_ALRMBR_MNT_0 (0x1U << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  15199. #define RTC_ALRMBR_MNT_1 (0x2U << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  15200. #define RTC_ALRMBR_MNT_2 (0x4U << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  15201. #define RTC_ALRMBR_MNU_Pos (8U)
  15202. #define RTC_ALRMBR_MNU_Msk (0xFU << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  15203. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  15204. #define RTC_ALRMBR_MNU_0 (0x1U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  15205. #define RTC_ALRMBR_MNU_1 (0x2U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  15206. #define RTC_ALRMBR_MNU_2 (0x4U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  15207. #define RTC_ALRMBR_MNU_3 (0x8U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  15208. #define RTC_ALRMBR_MSK1_Pos (7U)
  15209. #define RTC_ALRMBR_MSK1_Msk (0x1U << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  15210. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  15211. #define RTC_ALRMBR_ST_Pos (4U)
  15212. #define RTC_ALRMBR_ST_Msk (0x7U << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  15213. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  15214. #define RTC_ALRMBR_ST_0 (0x1U << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  15215. #define RTC_ALRMBR_ST_1 (0x2U << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  15216. #define RTC_ALRMBR_ST_2 (0x4U << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  15217. #define RTC_ALRMBR_SU_Pos (0U)
  15218. #define RTC_ALRMBR_SU_Msk (0xFU << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  15219. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  15220. #define RTC_ALRMBR_SU_0 (0x1U << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  15221. #define RTC_ALRMBR_SU_1 (0x2U << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  15222. #define RTC_ALRMBR_SU_2 (0x4U << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  15223. #define RTC_ALRMBR_SU_3 (0x8U << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  15224. /******************** Bits definition for RTC_WPR register ******************/
  15225. #define RTC_WPR_KEY_Pos (0U)
  15226. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  15227. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  15228. /******************** Bits definition for RTC_SSR register ******************/
  15229. #define RTC_SSR_SS_Pos (0U)
  15230. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  15231. #define RTC_SSR_SS RTC_SSR_SS_Msk
  15232. /******************** Bits definition for RTC_SHIFTR register ***************/
  15233. #define RTC_SHIFTR_SUBFS_Pos (0U)
  15234. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  15235. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  15236. #define RTC_SHIFTR_ADD1S_Pos (31U)
  15237. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  15238. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  15239. /******************** Bits definition for RTC_TSTR register *****************/
  15240. #define RTC_TSTR_PM_Pos (22U)
  15241. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  15242. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  15243. #define RTC_TSTR_HT_Pos (20U)
  15244. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  15245. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  15246. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  15247. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  15248. #define RTC_TSTR_HU_Pos (16U)
  15249. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  15250. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  15251. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  15252. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  15253. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  15254. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  15255. #define RTC_TSTR_MNT_Pos (12U)
  15256. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  15257. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  15258. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  15259. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  15260. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  15261. #define RTC_TSTR_MNU_Pos (8U)
  15262. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  15263. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  15264. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  15265. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  15266. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  15267. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  15268. #define RTC_TSTR_ST_Pos (4U)
  15269. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  15270. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  15271. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  15272. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  15273. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  15274. #define RTC_TSTR_SU_Pos (0U)
  15275. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  15276. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  15277. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  15278. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  15279. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  15280. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  15281. /******************** Bits definition for RTC_TSDR register *****************/
  15282. #define RTC_TSDR_WDU_Pos (13U)
  15283. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  15284. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  15285. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  15286. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  15287. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  15288. #define RTC_TSDR_MT_Pos (12U)
  15289. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  15290. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  15291. #define RTC_TSDR_MU_Pos (8U)
  15292. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  15293. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  15294. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  15295. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  15296. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  15297. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  15298. #define RTC_TSDR_DT_Pos (4U)
  15299. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  15300. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  15301. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  15302. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  15303. #define RTC_TSDR_DU_Pos (0U)
  15304. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  15305. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  15306. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  15307. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  15308. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  15309. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  15310. /******************** Bits definition for RTC_TSSSR register ****************/
  15311. #define RTC_TSSSR_SS_Pos (0U)
  15312. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  15313. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  15314. /******************** Bits definition for RTC_CAL register *****************/
  15315. #define RTC_CALR_CALP_Pos (15U)
  15316. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  15317. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  15318. #define RTC_CALR_CALW8_Pos (14U)
  15319. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  15320. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  15321. #define RTC_CALR_CALW16_Pos (13U)
  15322. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  15323. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  15324. #define RTC_CALR_CALM_Pos (0U)
  15325. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  15326. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  15327. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  15328. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  15329. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  15330. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  15331. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  15332. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  15333. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  15334. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  15335. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  15336. /******************** Bits definition for RTC_TAFCR register ****************/
  15337. #define RTC_TAMPCR_TAMP3MF_Pos (24U)
  15338. #define RTC_TAMPCR_TAMP3MF_Msk (0x1U << RTC_TAMPCR_TAMP3MF_Pos) /*!< 0x01000000 */
  15339. #define RTC_TAMPCR_TAMP3MF RTC_TAMPCR_TAMP3MF_Msk
  15340. #define RTC_TAMPCR_TAMP3NOERASE_Pos (23U)
  15341. #define RTC_TAMPCR_TAMP3NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP3NOERASE_Pos) /*!< 0x00800000 */
  15342. #define RTC_TAMPCR_TAMP3NOERASE RTC_TAMPCR_TAMP3NOERASE_Msk
  15343. #define RTC_TAMPCR_TAMP3IE_Pos (22U)
  15344. #define RTC_TAMPCR_TAMP3IE_Msk (0x1U << RTC_TAMPCR_TAMP3IE_Pos) /*!< 0x00400000 */
  15345. #define RTC_TAMPCR_TAMP3IE RTC_TAMPCR_TAMP3IE_Msk
  15346. #define RTC_TAMPCR_TAMP2MF_Pos (21U)
  15347. #define RTC_TAMPCR_TAMP2MF_Msk (0x1U << RTC_TAMPCR_TAMP2MF_Pos) /*!< 0x00200000 */
  15348. #define RTC_TAMPCR_TAMP2MF RTC_TAMPCR_TAMP2MF_Msk
  15349. #define RTC_TAMPCR_TAMP2NOERASE_Pos (20U)
  15350. #define RTC_TAMPCR_TAMP2NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP2NOERASE_Pos) /*!< 0x00100000 */
  15351. #define RTC_TAMPCR_TAMP2NOERASE RTC_TAMPCR_TAMP2NOERASE_Msk
  15352. #define RTC_TAMPCR_TAMP2IE_Pos (19U)
  15353. #define RTC_TAMPCR_TAMP2IE_Msk (0x1U << RTC_TAMPCR_TAMP2IE_Pos) /*!< 0x00080000 */
  15354. #define RTC_TAMPCR_TAMP2IE RTC_TAMPCR_TAMP2IE_Msk
  15355. #define RTC_TAMPCR_TAMP1MF_Pos (18U)
  15356. #define RTC_TAMPCR_TAMP1MF_Msk (0x1U << RTC_TAMPCR_TAMP1MF_Pos) /*!< 0x00040000 */
  15357. #define RTC_TAMPCR_TAMP1MF RTC_TAMPCR_TAMP1MF_Msk
  15358. #define RTC_TAMPCR_TAMP1NOERASE_Pos (17U)
  15359. #define RTC_TAMPCR_TAMP1NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP1NOERASE_Pos) /*!< 0x00020000 */
  15360. #define RTC_TAMPCR_TAMP1NOERASE RTC_TAMPCR_TAMP1NOERASE_Msk
  15361. #define RTC_TAMPCR_TAMP1IE_Pos (16U)
  15362. #define RTC_TAMPCR_TAMP1IE_Msk (0x1U << RTC_TAMPCR_TAMP1IE_Pos) /*!< 0x00010000 */
  15363. #define RTC_TAMPCR_TAMP1IE RTC_TAMPCR_TAMP1IE_Msk
  15364. #define RTC_TAMPCR_TAMPPUDIS_Pos (15U)
  15365. #define RTC_TAMPCR_TAMPPUDIS_Msk (0x1U << RTC_TAMPCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  15366. #define RTC_TAMPCR_TAMPPUDIS RTC_TAMPCR_TAMPPUDIS_Msk
  15367. #define RTC_TAMPCR_TAMPPRCH_Pos (13U)
  15368. #define RTC_TAMPCR_TAMPPRCH_Msk (0x3U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  15369. #define RTC_TAMPCR_TAMPPRCH RTC_TAMPCR_TAMPPRCH_Msk
  15370. #define RTC_TAMPCR_TAMPPRCH_0 (0x1U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  15371. #define RTC_TAMPCR_TAMPPRCH_1 (0x2U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  15372. #define RTC_TAMPCR_TAMPFLT_Pos (11U)
  15373. #define RTC_TAMPCR_TAMPFLT_Msk (0x3U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001800 */
  15374. #define RTC_TAMPCR_TAMPFLT RTC_TAMPCR_TAMPFLT_Msk
  15375. #define RTC_TAMPCR_TAMPFLT_0 (0x1U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00000800 */
  15376. #define RTC_TAMPCR_TAMPFLT_1 (0x2U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001000 */
  15377. #define RTC_TAMPCR_TAMPFREQ_Pos (8U)
  15378. #define RTC_TAMPCR_TAMPFREQ_Msk (0x7U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  15379. #define RTC_TAMPCR_TAMPFREQ RTC_TAMPCR_TAMPFREQ_Msk
  15380. #define RTC_TAMPCR_TAMPFREQ_0 (0x1U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  15381. #define RTC_TAMPCR_TAMPFREQ_1 (0x2U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  15382. #define RTC_TAMPCR_TAMPFREQ_2 (0x4U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  15383. #define RTC_TAMPCR_TAMPTS_Pos (7U)
  15384. #define RTC_TAMPCR_TAMPTS_Msk (0x1U << RTC_TAMPCR_TAMPTS_Pos) /*!< 0x00000080 */
  15385. #define RTC_TAMPCR_TAMPTS RTC_TAMPCR_TAMPTS_Msk
  15386. #define RTC_TAMPCR_TAMP3_TRG_Pos (6U)
  15387. #define RTC_TAMPCR_TAMP3_TRG_Msk (0x1U << RTC_TAMPCR_TAMP3_TRG_Pos) /*!< 0x00000040 */
  15388. #define RTC_TAMPCR_TAMP3_TRG RTC_TAMPCR_TAMP3_TRG_Msk
  15389. #define RTC_TAMPCR_TAMP3E_Pos (5U)
  15390. #define RTC_TAMPCR_TAMP3E_Msk (0x1U << RTC_TAMPCR_TAMP3E_Pos) /*!< 0x00000020 */
  15391. #define RTC_TAMPCR_TAMP3E RTC_TAMPCR_TAMP3E_Msk
  15392. #define RTC_TAMPCR_TAMP2_TRG_Pos (4U)
  15393. #define RTC_TAMPCR_TAMP2_TRG_Msk (0x1U << RTC_TAMPCR_TAMP2_TRG_Pos) /*!< 0x00000010 */
  15394. #define RTC_TAMPCR_TAMP2_TRG RTC_TAMPCR_TAMP2_TRG_Msk
  15395. #define RTC_TAMPCR_TAMP2E_Pos (3U)
  15396. #define RTC_TAMPCR_TAMP2E_Msk (0x1U << RTC_TAMPCR_TAMP2E_Pos) /*!< 0x00000008 */
  15397. #define RTC_TAMPCR_TAMP2E RTC_TAMPCR_TAMP2E_Msk
  15398. #define RTC_TAMPCR_TAMPIE_Pos (2U)
  15399. #define RTC_TAMPCR_TAMPIE_Msk (0x1U << RTC_TAMPCR_TAMPIE_Pos) /*!< 0x00000004 */
  15400. #define RTC_TAMPCR_TAMPIE RTC_TAMPCR_TAMPIE_Msk
  15401. #define RTC_TAMPCR_TAMP1_TRG_Pos (1U)
  15402. #define RTC_TAMPCR_TAMP1_TRG_Msk (0x1U << RTC_TAMPCR_TAMP1_TRG_Pos) /*!< 0x00000002 */
  15403. #define RTC_TAMPCR_TAMP1_TRG RTC_TAMPCR_TAMP1_TRG_Msk
  15404. #define RTC_TAMPCR_TAMP1E_Pos (0U)
  15405. #define RTC_TAMPCR_TAMP1E_Msk (0x1U << RTC_TAMPCR_TAMP1E_Pos) /*!< 0x00000001 */
  15406. #define RTC_TAMPCR_TAMP1E RTC_TAMPCR_TAMP1E_Msk
  15407. /******************** Bits definition for RTC_ALRMASSR register *************/
  15408. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  15409. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  15410. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  15411. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  15412. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  15413. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  15414. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  15415. #define RTC_ALRMASSR_SS_Pos (0U)
  15416. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  15417. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  15418. /******************** Bits definition for RTC_ALRMBSSR register *************/
  15419. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  15420. #define RTC_ALRMBSSR_MASKSS_Msk (0xFU << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  15421. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  15422. #define RTC_ALRMBSSR_MASKSS_0 (0x1U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  15423. #define RTC_ALRMBSSR_MASKSS_1 (0x2U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  15424. #define RTC_ALRMBSSR_MASKSS_2 (0x4U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  15425. #define RTC_ALRMBSSR_MASKSS_3 (0x8U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  15426. #define RTC_ALRMBSSR_SS_Pos (0U)
  15427. #define RTC_ALRMBSSR_SS_Msk (0x7FFFU << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  15428. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  15429. /******************** Bits definition for RTC_BKP0R register ****************/
  15430. #define RTC_OR_OUT_RMP_Pos (1U)
  15431. #define RTC_OR_OUT_RMP_Msk (0x1U << RTC_OR_OUT_RMP_Pos) /*!< 0x00000002 */
  15432. #define RTC_OR_OUT_RMP RTC_OR_OUT_RMP_Msk
  15433. #define RTC_OR_ALARMOUTTYPE_Pos (0U)
  15434. #define RTC_OR_ALARMOUTTYPE_Msk (0x1U << RTC_OR_ALARMOUTTYPE_Pos) /*!< 0x00000001 */
  15435. #define RTC_OR_ALARMOUTTYPE RTC_OR_ALARMOUTTYPE_Msk
  15436. /******************** Bits definition for RTC_BKP0R register ****************/
  15437. #define RTC_BKP0R_Pos (0U)
  15438. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  15439. #define RTC_BKP0R RTC_BKP0R_Msk
  15440. /******************** Bits definition for RTC_BKP1R register ****************/
  15441. #define RTC_BKP1R_Pos (0U)
  15442. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  15443. #define RTC_BKP1R RTC_BKP1R_Msk
  15444. /******************** Bits definition for RTC_BKP2R register ****************/
  15445. #define RTC_BKP2R_Pos (0U)
  15446. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  15447. #define RTC_BKP2R RTC_BKP2R_Msk
  15448. /******************** Bits definition for RTC_BKP3R register ****************/
  15449. #define RTC_BKP3R_Pos (0U)
  15450. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  15451. #define RTC_BKP3R RTC_BKP3R_Msk
  15452. /******************** Bits definition for RTC_BKP4R register ****************/
  15453. #define RTC_BKP4R_Pos (0U)
  15454. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  15455. #define RTC_BKP4R RTC_BKP4R_Msk
  15456. /******************** Bits definition for RTC_BKP5R register ****************/
  15457. #define RTC_BKP5R_Pos (0U)
  15458. #define RTC_BKP5R_Msk (0xFFFFFFFFU << RTC_BKP5R_Pos) /*!< 0xFFFFFFFF */
  15459. #define RTC_BKP5R RTC_BKP5R_Msk
  15460. /******************** Bits definition for RTC_BKP6R register ****************/
  15461. #define RTC_BKP6R_Pos (0U)
  15462. #define RTC_BKP6R_Msk (0xFFFFFFFFU << RTC_BKP6R_Pos) /*!< 0xFFFFFFFF */
  15463. #define RTC_BKP6R RTC_BKP6R_Msk
  15464. /******************** Bits definition for RTC_BKP7R register ****************/
  15465. #define RTC_BKP7R_Pos (0U)
  15466. #define RTC_BKP7R_Msk (0xFFFFFFFFU << RTC_BKP7R_Pos) /*!< 0xFFFFFFFF */
  15467. #define RTC_BKP7R RTC_BKP7R_Msk
  15468. /******************** Bits definition for RTC_BKP8R register ****************/
  15469. #define RTC_BKP8R_Pos (0U)
  15470. #define RTC_BKP8R_Msk (0xFFFFFFFFU << RTC_BKP8R_Pos) /*!< 0xFFFFFFFF */
  15471. #define RTC_BKP8R RTC_BKP8R_Msk
  15472. /******************** Bits definition for RTC_BKP9R register ****************/
  15473. #define RTC_BKP9R_Pos (0U)
  15474. #define RTC_BKP9R_Msk (0xFFFFFFFFU << RTC_BKP9R_Pos) /*!< 0xFFFFFFFF */
  15475. #define RTC_BKP9R RTC_BKP9R_Msk
  15476. /******************** Bits definition for RTC_BKP10R register ***************/
  15477. #define RTC_BKP10R_Pos (0U)
  15478. #define RTC_BKP10R_Msk (0xFFFFFFFFU << RTC_BKP10R_Pos) /*!< 0xFFFFFFFF */
  15479. #define RTC_BKP10R RTC_BKP10R_Msk
  15480. /******************** Bits definition for RTC_BKP11R register ***************/
  15481. #define RTC_BKP11R_Pos (0U)
  15482. #define RTC_BKP11R_Msk (0xFFFFFFFFU << RTC_BKP11R_Pos) /*!< 0xFFFFFFFF */
  15483. #define RTC_BKP11R RTC_BKP11R_Msk
  15484. /******************** Bits definition for RTC_BKP12R register ***************/
  15485. #define RTC_BKP12R_Pos (0U)
  15486. #define RTC_BKP12R_Msk (0xFFFFFFFFU << RTC_BKP12R_Pos) /*!< 0xFFFFFFFF */
  15487. #define RTC_BKP12R RTC_BKP12R_Msk
  15488. /******************** Bits definition for RTC_BKP13R register ***************/
  15489. #define RTC_BKP13R_Pos (0U)
  15490. #define RTC_BKP13R_Msk (0xFFFFFFFFU << RTC_BKP13R_Pos) /*!< 0xFFFFFFFF */
  15491. #define RTC_BKP13R RTC_BKP13R_Msk
  15492. /******************** Bits definition for RTC_BKP14R register ***************/
  15493. #define RTC_BKP14R_Pos (0U)
  15494. #define RTC_BKP14R_Msk (0xFFFFFFFFU << RTC_BKP14R_Pos) /*!< 0xFFFFFFFF */
  15495. #define RTC_BKP14R RTC_BKP14R_Msk
  15496. /******************** Bits definition for RTC_BKP15R register ***************/
  15497. #define RTC_BKP15R_Pos (0U)
  15498. #define RTC_BKP15R_Msk (0xFFFFFFFFU << RTC_BKP15R_Pos) /*!< 0xFFFFFFFF */
  15499. #define RTC_BKP15R RTC_BKP15R_Msk
  15500. /******************** Bits definition for RTC_BKP16R register ***************/
  15501. #define RTC_BKP16R_Pos (0U)
  15502. #define RTC_BKP16R_Msk (0xFFFFFFFFU << RTC_BKP16R_Pos) /*!< 0xFFFFFFFF */
  15503. #define RTC_BKP16R RTC_BKP16R_Msk
  15504. /******************** Bits definition for RTC_BKP17R register ***************/
  15505. #define RTC_BKP17R_Pos (0U)
  15506. #define RTC_BKP17R_Msk (0xFFFFFFFFU << RTC_BKP17R_Pos) /*!< 0xFFFFFFFF */
  15507. #define RTC_BKP17R RTC_BKP17R_Msk
  15508. /******************** Bits definition for RTC_BKP18R register ***************/
  15509. #define RTC_BKP18R_Pos (0U)
  15510. #define RTC_BKP18R_Msk (0xFFFFFFFFU << RTC_BKP18R_Pos) /*!< 0xFFFFFFFF */
  15511. #define RTC_BKP18R RTC_BKP18R_Msk
  15512. /******************** Bits definition for RTC_BKP19R register ***************/
  15513. #define RTC_BKP19R_Pos (0U)
  15514. #define RTC_BKP19R_Msk (0xFFFFFFFFU << RTC_BKP19R_Pos) /*!< 0xFFFFFFFF */
  15515. #define RTC_BKP19R RTC_BKP19R_Msk
  15516. /******************** Bits definition for RTC_BKP20R register ***************/
  15517. #define RTC_BKP20R_Pos (0U)
  15518. #define RTC_BKP20R_Msk (0xFFFFFFFFU << RTC_BKP20R_Pos) /*!< 0xFFFFFFFF */
  15519. #define RTC_BKP20R RTC_BKP20R_Msk
  15520. /******************** Bits definition for RTC_BKP21R register ***************/
  15521. #define RTC_BKP21R_Pos (0U)
  15522. #define RTC_BKP21R_Msk (0xFFFFFFFFU << RTC_BKP21R_Pos) /*!< 0xFFFFFFFF */
  15523. #define RTC_BKP21R RTC_BKP21R_Msk
  15524. /******************** Bits definition for RTC_BKP22R register ***************/
  15525. #define RTC_BKP22R_Pos (0U)
  15526. #define RTC_BKP22R_Msk (0xFFFFFFFFU << RTC_BKP22R_Pos) /*!< 0xFFFFFFFF */
  15527. #define RTC_BKP22R RTC_BKP22R_Msk
  15528. /******************** Bits definition for RTC_BKP23R register ***************/
  15529. #define RTC_BKP23R_Pos (0U)
  15530. #define RTC_BKP23R_Msk (0xFFFFFFFFU << RTC_BKP23R_Pos) /*!< 0xFFFFFFFF */
  15531. #define RTC_BKP23R RTC_BKP23R_Msk
  15532. /******************** Bits definition for RTC_BKP24R register ***************/
  15533. #define RTC_BKP24R_Pos (0U)
  15534. #define RTC_BKP24R_Msk (0xFFFFFFFFU << RTC_BKP24R_Pos) /*!< 0xFFFFFFFF */
  15535. #define RTC_BKP24R RTC_BKP24R_Msk
  15536. /******************** Bits definition for RTC_BKP25R register ***************/
  15537. #define RTC_BKP25R_Pos (0U)
  15538. #define RTC_BKP25R_Msk (0xFFFFFFFFU << RTC_BKP25R_Pos) /*!< 0xFFFFFFFF */
  15539. #define RTC_BKP25R RTC_BKP25R_Msk
  15540. /******************** Bits definition for RTC_BKP26R register ***************/
  15541. #define RTC_BKP26R_Pos (0U)
  15542. #define RTC_BKP26R_Msk (0xFFFFFFFFU << RTC_BKP26R_Pos) /*!< 0xFFFFFFFF */
  15543. #define RTC_BKP26R RTC_BKP26R_Msk
  15544. /******************** Bits definition for RTC_BKP27R register ***************/
  15545. #define RTC_BKP27R_Pos (0U)
  15546. #define RTC_BKP27R_Msk (0xFFFFFFFFU << RTC_BKP27R_Pos) /*!< 0xFFFFFFFF */
  15547. #define RTC_BKP27R RTC_BKP27R_Msk
  15548. /******************** Bits definition for RTC_BKP28R register ***************/
  15549. #define RTC_BKP28R_Pos (0U)
  15550. #define RTC_BKP28R_Msk (0xFFFFFFFFU << RTC_BKP28R_Pos) /*!< 0xFFFFFFFF */
  15551. #define RTC_BKP28R RTC_BKP28R_Msk
  15552. /******************** Bits definition for RTC_BKP29R register ***************/
  15553. #define RTC_BKP29R_Pos (0U)
  15554. #define RTC_BKP29R_Msk (0xFFFFFFFFU << RTC_BKP29R_Pos) /*!< 0xFFFFFFFF */
  15555. #define RTC_BKP29R RTC_BKP29R_Msk
  15556. /******************** Bits definition for RTC_BKP30R register ***************/
  15557. #define RTC_BKP30R_Pos (0U)
  15558. #define RTC_BKP30R_Msk (0xFFFFFFFFU << RTC_BKP30R_Pos) /*!< 0xFFFFFFFF */
  15559. #define RTC_BKP30R RTC_BKP30R_Msk
  15560. /******************** Bits definition for RTC_BKP31R register ***************/
  15561. #define RTC_BKP31R_Pos (0U)
  15562. #define RTC_BKP31R_Msk (0xFFFFFFFFU << RTC_BKP31R_Pos) /*!< 0xFFFFFFFF */
  15563. #define RTC_BKP31R RTC_BKP31R_Msk
  15564. /******************** Number of backup registers ******************************/
  15565. #define RTC_BKP_NUMBER_Pos (5U)
  15566. #define RTC_BKP_NUMBER_Msk (0x1U << RTC_BKP_NUMBER_Pos) /*!< 0x00000020 */
  15567. #define RTC_BKP_NUMBER RTC_BKP_NUMBER_Msk
  15568. /******************************************************************************/
  15569. /* */
  15570. /* SPDIF-RX Interface */
  15571. /* */
  15572. /******************************************************************************/
  15573. /******************** Bit definition for SPDIF_CR register *******************/
  15574. #define SPDIFRX_CR_SPDIFEN_Pos (0U)
  15575. #define SPDIFRX_CR_SPDIFEN_Msk (0x3U << SPDIFRX_CR_SPDIFEN_Pos) /*!< 0x00000003 */
  15576. #define SPDIFRX_CR_SPDIFEN SPDIFRX_CR_SPDIFEN_Msk /*!<Peripheral Block Enable */
  15577. #define SPDIFRX_CR_RXDMAEN_Pos (2U)
  15578. #define SPDIFRX_CR_RXDMAEN_Msk (0x1U << SPDIFRX_CR_RXDMAEN_Pos) /*!< 0x00000004 */
  15579. #define SPDIFRX_CR_RXDMAEN SPDIFRX_CR_RXDMAEN_Msk /*!<Receiver DMA Enable for data flow */
  15580. #define SPDIFRX_CR_RXSTEO_Pos (3U)
  15581. #define SPDIFRX_CR_RXSTEO_Msk (0x1U << SPDIFRX_CR_RXSTEO_Pos) /*!< 0x00000008 */
  15582. #define SPDIFRX_CR_RXSTEO SPDIFRX_CR_RXSTEO_Msk /*!<Stereo Mode */
  15583. #define SPDIFRX_CR_DRFMT_Pos (4U)
  15584. #define SPDIFRX_CR_DRFMT_Msk (0x3U << SPDIFRX_CR_DRFMT_Pos) /*!< 0x00000030 */
  15585. #define SPDIFRX_CR_DRFMT SPDIFRX_CR_DRFMT_Msk /*!<RX Data format */
  15586. #define SPDIFRX_CR_PMSK_Pos (6U)
  15587. #define SPDIFRX_CR_PMSK_Msk (0x1U << SPDIFRX_CR_PMSK_Pos) /*!< 0x00000040 */
  15588. #define SPDIFRX_CR_PMSK SPDIFRX_CR_PMSK_Msk /*!<Mask Parity error bit */
  15589. #define SPDIFRX_CR_VMSK_Pos (7U)
  15590. #define SPDIFRX_CR_VMSK_Msk (0x1U << SPDIFRX_CR_VMSK_Pos) /*!< 0x00000080 */
  15591. #define SPDIFRX_CR_VMSK SPDIFRX_CR_VMSK_Msk /*!<Mask of Validity bit */
  15592. #define SPDIFRX_CR_CUMSK_Pos (8U)
  15593. #define SPDIFRX_CR_CUMSK_Msk (0x1U << SPDIFRX_CR_CUMSK_Pos) /*!< 0x00000100 */
  15594. #define SPDIFRX_CR_CUMSK SPDIFRX_CR_CUMSK_Msk /*!<Mask of channel status and user bits */
  15595. #define SPDIFRX_CR_PTMSK_Pos (9U)
  15596. #define SPDIFRX_CR_PTMSK_Msk (0x1U << SPDIFRX_CR_PTMSK_Pos) /*!< 0x00000200 */
  15597. #define SPDIFRX_CR_PTMSK SPDIFRX_CR_PTMSK_Msk /*!<Mask of Preamble Type bits */
  15598. #define SPDIFRX_CR_CBDMAEN_Pos (10U)
  15599. #define SPDIFRX_CR_CBDMAEN_Msk (0x1U << SPDIFRX_CR_CBDMAEN_Pos) /*!< 0x00000400 */
  15600. #define SPDIFRX_CR_CBDMAEN SPDIFRX_CR_CBDMAEN_Msk /*!<Control Buffer DMA ENable for control flow */
  15601. #define SPDIFRX_CR_CHSEL_Pos (11U)
  15602. #define SPDIFRX_CR_CHSEL_Msk (0x1U << SPDIFRX_CR_CHSEL_Pos) /*!< 0x00000800 */
  15603. #define SPDIFRX_CR_CHSEL SPDIFRX_CR_CHSEL_Msk /*!<Channel Selection */
  15604. #define SPDIFRX_CR_NBTR_Pos (12U)
  15605. #define SPDIFRX_CR_NBTR_Msk (0x3U << SPDIFRX_CR_NBTR_Pos) /*!< 0x00003000 */
  15606. #define SPDIFRX_CR_NBTR SPDIFRX_CR_NBTR_Msk /*!<Maximum allowed re-tries during synchronization phase */
  15607. #define SPDIFRX_CR_WFA_Pos (14U)
  15608. #define SPDIFRX_CR_WFA_Msk (0x1U << SPDIFRX_CR_WFA_Pos) /*!< 0x00004000 */
  15609. #define SPDIFRX_CR_WFA SPDIFRX_CR_WFA_Msk /*!<Wait For Activity */
  15610. #define SPDIFRX_CR_INSEL_Pos (16U)
  15611. #define SPDIFRX_CR_INSEL_Msk (0x7U << SPDIFRX_CR_INSEL_Pos) /*!< 0x00070000 */
  15612. #define SPDIFRX_CR_INSEL SPDIFRX_CR_INSEL_Msk /*!<SPDIF input selection */
  15613. #define SPDIFRX_CR_CKSEN_Pos (20U)
  15614. #define SPDIFRX_CR_CKSEN_Msk (0x1U << SPDIFRX_CR_CKSEN_Pos) /*!< 0x00100000 */
  15615. #define SPDIFRX_CR_CKSEN SPDIFRX_CR_CKSEN_Msk /*!<Symbol Clock Enable */
  15616. #define SPDIFRX_CR_CKSBKPEN_Pos (21U)
  15617. #define SPDIFRX_CR_CKSBKPEN_Msk (0x1U << SPDIFRX_CR_CKSBKPEN_Pos) /*!< 0x00200000 */
  15618. #define SPDIFRX_CR_CKSBKPEN SPDIFRX_CR_CKSBKPEN_Msk /*!<Backup Symbol Clock Enable */
  15619. /******************* Bit definition for SPDIFRX_IMR register *******************/
  15620. #define SPDIFRX_IMR_RXNEIE_Pos (0U)
  15621. #define SPDIFRX_IMR_RXNEIE_Msk (0x1U << SPDIFRX_IMR_RXNEIE_Pos) /*!< 0x00000001 */
  15622. #define SPDIFRX_IMR_RXNEIE SPDIFRX_IMR_RXNEIE_Msk /*!<RXNE interrupt enable */
  15623. #define SPDIFRX_IMR_CSRNEIE_Pos (1U)
  15624. #define SPDIFRX_IMR_CSRNEIE_Msk (0x1U << SPDIFRX_IMR_CSRNEIE_Pos) /*!< 0x00000002 */
  15625. #define SPDIFRX_IMR_CSRNEIE SPDIFRX_IMR_CSRNEIE_Msk /*!<Control Buffer Ready Interrupt Enable */
  15626. #define SPDIFRX_IMR_PERRIE_Pos (2U)
  15627. #define SPDIFRX_IMR_PERRIE_Msk (0x1U << SPDIFRX_IMR_PERRIE_Pos) /*!< 0x00000004 */
  15628. #define SPDIFRX_IMR_PERRIE SPDIFRX_IMR_PERRIE_Msk /*!<Parity error interrupt enable */
  15629. #define SPDIFRX_IMR_OVRIE_Pos (3U)
  15630. #define SPDIFRX_IMR_OVRIE_Msk (0x1U << SPDIFRX_IMR_OVRIE_Pos) /*!< 0x00000008 */
  15631. #define SPDIFRX_IMR_OVRIE SPDIFRX_IMR_OVRIE_Msk /*!<Overrun error Interrupt Enable */
  15632. #define SPDIFRX_IMR_SBLKIE_Pos (4U)
  15633. #define SPDIFRX_IMR_SBLKIE_Msk (0x1U << SPDIFRX_IMR_SBLKIE_Pos) /*!< 0x00000010 */
  15634. #define SPDIFRX_IMR_SBLKIE SPDIFRX_IMR_SBLKIE_Msk /*!<Synchronization Block Detected Interrupt Enable */
  15635. #define SPDIFRX_IMR_SYNCDIE_Pos (5U)
  15636. #define SPDIFRX_IMR_SYNCDIE_Msk (0x1U << SPDIFRX_IMR_SYNCDIE_Pos) /*!< 0x00000020 */
  15637. #define SPDIFRX_IMR_SYNCDIE SPDIFRX_IMR_SYNCDIE_Msk /*!<Synchronization Done */
  15638. #define SPDIFRX_IMR_IFEIE_Pos (6U)
  15639. #define SPDIFRX_IMR_IFEIE_Msk (0x1U << SPDIFRX_IMR_IFEIE_Pos) /*!< 0x00000040 */
  15640. #define SPDIFRX_IMR_IFEIE SPDIFRX_IMR_IFEIE_Msk /*!<Serial Interface Error Interrupt Enable */
  15641. /******************* Bit definition for SPDIFRX_SR register *******************/
  15642. #define SPDIFRX_SR_RXNE_Pos (0U)
  15643. #define SPDIFRX_SR_RXNE_Msk (0x1U << SPDIFRX_SR_RXNE_Pos) /*!< 0x00000001 */
  15644. #define SPDIFRX_SR_RXNE SPDIFRX_SR_RXNE_Msk /*!<Read data register not empty */
  15645. #define SPDIFRX_SR_CSRNE_Pos (1U)
  15646. #define SPDIFRX_SR_CSRNE_Msk (0x1U << SPDIFRX_SR_CSRNE_Pos) /*!< 0x00000002 */
  15647. #define SPDIFRX_SR_CSRNE SPDIFRX_SR_CSRNE_Msk /*!<The Control Buffer register is not empty */
  15648. #define SPDIFRX_SR_PERR_Pos (2U)
  15649. #define SPDIFRX_SR_PERR_Msk (0x1U << SPDIFRX_SR_PERR_Pos) /*!< 0x00000004 */
  15650. #define SPDIFRX_SR_PERR SPDIFRX_SR_PERR_Msk /*!<Parity error */
  15651. #define SPDIFRX_SR_OVR_Pos (3U)
  15652. #define SPDIFRX_SR_OVR_Msk (0x1U << SPDIFRX_SR_OVR_Pos) /*!< 0x00000008 */
  15653. #define SPDIFRX_SR_OVR SPDIFRX_SR_OVR_Msk /*!<Overrun error */
  15654. #define SPDIFRX_SR_SBD_Pos (4U)
  15655. #define SPDIFRX_SR_SBD_Msk (0x1U << SPDIFRX_SR_SBD_Pos) /*!< 0x00000010 */
  15656. #define SPDIFRX_SR_SBD SPDIFRX_SR_SBD_Msk /*!<Synchronization Block Detected */
  15657. #define SPDIFRX_SR_SYNCD_Pos (5U)
  15658. #define SPDIFRX_SR_SYNCD_Msk (0x1U << SPDIFRX_SR_SYNCD_Pos) /*!< 0x00000020 */
  15659. #define SPDIFRX_SR_SYNCD SPDIFRX_SR_SYNCD_Msk /*!<Synchronization Done */
  15660. #define SPDIFRX_SR_FERR_Pos (6U)
  15661. #define SPDIFRX_SR_FERR_Msk (0x1U << SPDIFRX_SR_FERR_Pos) /*!< 0x00000040 */
  15662. #define SPDIFRX_SR_FERR SPDIFRX_SR_FERR_Msk /*!<Framing error */
  15663. #define SPDIFRX_SR_SERR_Pos (7U)
  15664. #define SPDIFRX_SR_SERR_Msk (0x1U << SPDIFRX_SR_SERR_Pos) /*!< 0x00000080 */
  15665. #define SPDIFRX_SR_SERR SPDIFRX_SR_SERR_Msk /*!<Synchronization error */
  15666. #define SPDIFRX_SR_TERR_Pos (8U)
  15667. #define SPDIFRX_SR_TERR_Msk (0x1U << SPDIFRX_SR_TERR_Pos) /*!< 0x00000100 */
  15668. #define SPDIFRX_SR_TERR SPDIFRX_SR_TERR_Msk /*!<Time-out error */
  15669. #define SPDIFRX_SR_WIDTH5_Pos (16U)
  15670. #define SPDIFRX_SR_WIDTH5_Msk (0x7FFFU << SPDIFRX_SR_WIDTH5_Pos) /*!< 0x7FFF0000 */
  15671. #define SPDIFRX_SR_WIDTH5 SPDIFRX_SR_WIDTH5_Msk /*!<Duration of 5 symbols counted with spdif_clk */
  15672. /******************* Bit definition for SPDIFRX_IFCR register *******************/
  15673. #define SPDIFRX_IFCR_PERRCF_Pos (2U)
  15674. #define SPDIFRX_IFCR_PERRCF_Msk (0x1U << SPDIFRX_IFCR_PERRCF_Pos) /*!< 0x00000004 */
  15675. #define SPDIFRX_IFCR_PERRCF SPDIFRX_IFCR_PERRCF_Msk /*!<Clears the Parity error flag */
  15676. #define SPDIFRX_IFCR_OVRCF_Pos (3U)
  15677. #define SPDIFRX_IFCR_OVRCF_Msk (0x1U << SPDIFRX_IFCR_OVRCF_Pos) /*!< 0x00000008 */
  15678. #define SPDIFRX_IFCR_OVRCF SPDIFRX_IFCR_OVRCF_Msk /*!<Clears the Overrun error flag */
  15679. #define SPDIFRX_IFCR_SBDCF_Pos (4U)
  15680. #define SPDIFRX_IFCR_SBDCF_Msk (0x1U << SPDIFRX_IFCR_SBDCF_Pos) /*!< 0x00000010 */
  15681. #define SPDIFRX_IFCR_SBDCF SPDIFRX_IFCR_SBDCF_Msk /*!<Clears the Synchronization Block Detected flag */
  15682. #define SPDIFRX_IFCR_SYNCDCF_Pos (5U)
  15683. #define SPDIFRX_IFCR_SYNCDCF_Msk (0x1U << SPDIFRX_IFCR_SYNCDCF_Pos) /*!< 0x00000020 */
  15684. #define SPDIFRX_IFCR_SYNCDCF SPDIFRX_IFCR_SYNCDCF_Msk /*!<Clears the Synchronization Done flag */
  15685. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b00 case) *******************/
  15686. #define SPDIFRX_DR0_DR_Pos (0U)
  15687. #define SPDIFRX_DR0_DR_Msk (0xFFFFFFU << SPDIFRX_DR0_DR_Pos) /*!< 0x00FFFFFF */
  15688. #define SPDIFRX_DR0_DR SPDIFRX_DR0_DR_Msk /*!<Data value */
  15689. #define SPDIFRX_DR0_PE_Pos (24U)
  15690. #define SPDIFRX_DR0_PE_Msk (0x1U << SPDIFRX_DR0_PE_Pos) /*!< 0x01000000 */
  15691. #define SPDIFRX_DR0_PE SPDIFRX_DR0_PE_Msk /*!<Parity Error bit */
  15692. #define SPDIFRX_DR0_V_Pos (25U)
  15693. #define SPDIFRX_DR0_V_Msk (0x1U << SPDIFRX_DR0_V_Pos) /*!< 0x02000000 */
  15694. #define SPDIFRX_DR0_V SPDIFRX_DR0_V_Msk /*!<Validity bit */
  15695. #define SPDIFRX_DR0_U_Pos (26U)
  15696. #define SPDIFRX_DR0_U_Msk (0x1U << SPDIFRX_DR0_U_Pos) /*!< 0x04000000 */
  15697. #define SPDIFRX_DR0_U SPDIFRX_DR0_U_Msk /*!<User bit */
  15698. #define SPDIFRX_DR0_C_Pos (27U)
  15699. #define SPDIFRX_DR0_C_Msk (0x1U << SPDIFRX_DR0_C_Pos) /*!< 0x08000000 */
  15700. #define SPDIFRX_DR0_C SPDIFRX_DR0_C_Msk /*!<Channel Status bit */
  15701. #define SPDIFRX_DR0_PT_Pos (28U)
  15702. #define SPDIFRX_DR0_PT_Msk (0x3U << SPDIFRX_DR0_PT_Pos) /*!< 0x30000000 */
  15703. #define SPDIFRX_DR0_PT SPDIFRX_DR0_PT_Msk /*!<Preamble Type */
  15704. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b01 case) *******************/
  15705. #define SPDIFRX_DR1_DR_Pos (8U)
  15706. #define SPDIFRX_DR1_DR_Msk (0xFFFFFFU << SPDIFRX_DR1_DR_Pos) /*!< 0xFFFFFF00 */
  15707. #define SPDIFRX_DR1_DR SPDIFRX_DR1_DR_Msk /*!<Data value */
  15708. #define SPDIFRX_DR1_PT_Pos (4U)
  15709. #define SPDIFRX_DR1_PT_Msk (0x3U << SPDIFRX_DR1_PT_Pos) /*!< 0x00000030 */
  15710. #define SPDIFRX_DR1_PT SPDIFRX_DR1_PT_Msk /*!<Preamble Type */
  15711. #define SPDIFRX_DR1_C_Pos (3U)
  15712. #define SPDIFRX_DR1_C_Msk (0x1U << SPDIFRX_DR1_C_Pos) /*!< 0x00000008 */
  15713. #define SPDIFRX_DR1_C SPDIFRX_DR1_C_Msk /*!<Channel Status bit */
  15714. #define SPDIFRX_DR1_U_Pos (2U)
  15715. #define SPDIFRX_DR1_U_Msk (0x1U << SPDIFRX_DR1_U_Pos) /*!< 0x00000004 */
  15716. #define SPDIFRX_DR1_U SPDIFRX_DR1_U_Msk /*!<User bit */
  15717. #define SPDIFRX_DR1_V_Pos (1U)
  15718. #define SPDIFRX_DR1_V_Msk (0x1U << SPDIFRX_DR1_V_Pos) /*!< 0x00000002 */
  15719. #define SPDIFRX_DR1_V SPDIFRX_DR1_V_Msk /*!<Validity bit */
  15720. #define SPDIFRX_DR1_PE_Pos (0U)
  15721. #define SPDIFRX_DR1_PE_Msk (0x1U << SPDIFRX_DR1_PE_Pos) /*!< 0x00000001 */
  15722. #define SPDIFRX_DR1_PE SPDIFRX_DR1_PE_Msk /*!<Parity Error bit */
  15723. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b10 case) *******************/
  15724. #define SPDIFRX_DR1_DRNL1_Pos (16U)
  15725. #define SPDIFRX_DR1_DRNL1_Msk (0xFFFFU << SPDIFRX_DR1_DRNL1_Pos) /*!< 0xFFFF0000 */
  15726. #define SPDIFRX_DR1_DRNL1 SPDIFRX_DR1_DRNL1_Msk /*!<Data value Channel B */
  15727. #define SPDIFRX_DR1_DRNL2_Pos (0U)
  15728. #define SPDIFRX_DR1_DRNL2_Msk (0xFFFFU << SPDIFRX_DR1_DRNL2_Pos) /*!< 0x0000FFFF */
  15729. #define SPDIFRX_DR1_DRNL2 SPDIFRX_DR1_DRNL2_Msk /*!<Data value Channel A */
  15730. /******************* Bit definition for SPDIFRX_CSR register *******************/
  15731. #define SPDIFRX_CSR_USR_Pos (0U)
  15732. #define SPDIFRX_CSR_USR_Msk (0xFFFFU << SPDIFRX_CSR_USR_Pos) /*!< 0x0000FFFF */
  15733. #define SPDIFRX_CSR_USR SPDIFRX_CSR_USR_Msk /*!<User data information */
  15734. #define SPDIFRX_CSR_CS_Pos (16U)
  15735. #define SPDIFRX_CSR_CS_Msk (0xFFU << SPDIFRX_CSR_CS_Pos) /*!< 0x00FF0000 */
  15736. #define SPDIFRX_CSR_CS SPDIFRX_CSR_CS_Msk /*!<Channel A status information */
  15737. #define SPDIFRX_CSR_SOB_Pos (24U)
  15738. #define SPDIFRX_CSR_SOB_Msk (0x1U << SPDIFRX_CSR_SOB_Pos) /*!< 0x01000000 */
  15739. #define SPDIFRX_CSR_SOB SPDIFRX_CSR_SOB_Msk /*!<Start Of Block */
  15740. /******************* Bit definition for SPDIFRX_DIR register *******************/
  15741. #define SPDIFRX_DIR_THI_Pos (0U)
  15742. #define SPDIFRX_DIR_THI_Msk (0x1FFFU << SPDIFRX_DIR_THI_Pos) /*!< 0x00001FFF */
  15743. #define SPDIFRX_DIR_THI SPDIFRX_DIR_THI_Msk /*!<Threshold LOW */
  15744. #define SPDIFRX_DIR_TLO_Pos (16U)
  15745. #define SPDIFRX_DIR_TLO_Msk (0x1FFFU << SPDIFRX_DIR_TLO_Pos) /*!< 0x1FFF0000 */
  15746. #define SPDIFRX_DIR_TLO SPDIFRX_DIR_TLO_Msk /*!<Threshold HIGH */
  15747. /******************* Bit definition for SPDIFRX_VERR register *******************/
  15748. #define SPDIFRX_VERR_MINREV_Pos (0U)
  15749. #define SPDIFRX_VERR_MINREV_Msk (0xFU << SPDIFRX_VERR_MINREV_Pos) /*!< 0x0000000F */
  15750. #define SPDIFRX_VERR_MINREV SPDIFRX_VERR_MINREV_Msk /*!<SPDIFRX Minor revision */
  15751. #define SPDIFRX_VERR_MAJREV_Pos (4U)
  15752. #define SPDIFRX_VERR_MAJREV_Msk (0xFU << SPDIFRX_VERR_MAJREV_Pos) /*!< 0x000000F0 */
  15753. #define SPDIFRX_VERR_MAJREV SPDIFRX_VERR_MAJREV_Msk /*!<SPDIFRX Major revision */
  15754. /******************* Bit definition for SPDIFRX_IDR register *******************/
  15755. #define SPDIFRX_IDR_ID_Pos (0U)
  15756. #define SPDIFRX_IDR_ID_Msk (0xFFFFFFFFU << SPDIFRX_IDR_ID_Pos) /*!< 0xFFFFFFFF */
  15757. #define SPDIFRX_IDR_ID SPDIFRX_IDR_ID_Msk /*!<SPDIFRX identifier */
  15758. /******************* Bit definition for SPDIFRX_SIDR register *******************/
  15759. #define SPDIFRX_SIDR_SID_Pos (0U)
  15760. #define SPDIFRX_SIDR_SID_Msk (0xFFFFFFFFU << SPDIFRX_SIDR_SID_Pos) /*!< 0xFFFFFFFF */
  15761. #define SPDIFRX_SIDR_SID SPDIFRX_SIDR_SID_Msk /*!<Size of the memory region allocated to SPDIFRX registers */
  15762. /******************************************************************************/
  15763. /* */
  15764. /* Serial Audio Interface */
  15765. /* */
  15766. /******************************************************************************/
  15767. /******************** Bit definition for SAI_GCR register *******************/
  15768. #define SAI_GCR_SYNCIN 0x00000003U /*!<SYNCIN[1:0] bits (Synchronization Inputs) */
  15769. #define SAI_GCR_SYNCIN_0 0x00000001U /*!<Bit 0 */
  15770. #define SAI_GCR_SYNCIN_1 0x00000002U /*!<Bit 1 */
  15771. #define SAI_GCR_SYNCOUT 0x00000030U /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
  15772. #define SAI_GCR_SYNCOUT_0 0x00000010U /*!<Bit 0 */
  15773. #define SAI_GCR_SYNCOUT_1 0x00000020U /*!<Bit 1 */
  15774. /******************* Bit definition for SAI_xCR1 register *******************/
  15775. #define SAI_xCR1_MODE 0x00000003U /*!<MODE[1:0] bits (Audio Block Mode) */
  15776. #define SAI_xCR1_MODE_0 0x00000001U /*!<Bit 0 */
  15777. #define SAI_xCR1_MODE_1 0x00000002U /*!<Bit 1 */
  15778. #define SAI_xCR1_PRTCFG 0x0000000CU /*!<PRTCFG[1:0] bits (Protocol Configuration) */
  15779. #define SAI_xCR1_PRTCFG_0 0x00000004U /*!<Bit 0 */
  15780. #define SAI_xCR1_PRTCFG_1 0x00000008U /*!<Bit 1 */
  15781. #define SAI_xCR1_DS 0x000000E0U /*!<DS[1:0] bits (Data Size) */
  15782. #define SAI_xCR1_DS_0 0x00000020U /*!<Bit 0 */
  15783. #define SAI_xCR1_DS_1 0x00000040U /*!<Bit 1 */
  15784. #define SAI_xCR1_DS_2 0x00000080U /*!<Bit 2 */
  15785. #define SAI_xCR1_LSBFIRST 0x00000100U /*!<LSB First Configuration */
  15786. #define SAI_xCR1_CKSTR 0x00000200U /*!<ClocK STRobing edge */
  15787. #define SAI_xCR1_SYNCEN 0x00000C00U /*!<SYNCEN[1:0](SYNChronization ENable) */
  15788. #define SAI_xCR1_SYNCEN_0 0x00000400U /*!<Bit 0 */
  15789. #define SAI_xCR1_SYNCEN_1 0x00000800U /*!<Bit 1 */
  15790. #define SAI_xCR1_MONO 0x00001000U /*!<Mono mode */
  15791. #define SAI_xCR1_OUTDRIV 0x00002000U /*!<Output Drive */
  15792. #define SAI_xCR1_SAIEN 0x00010000U /*!<Audio Block enable */
  15793. #define SAI_xCR1_DMAEN 0x00020000U /*!<DMA enable */
  15794. #define SAI_xCR1_NOMCK 0x00080000U /*!<No Divider Configuration */
  15795. #define SAI_xCR1_MCKDIV 0x03F00000U /*!<MCKDIV[5:0] (Master ClocK Divider) */
  15796. #define SAI_xCR1_MCKDIV_0 0x00100000U /*!<Bit 0 */
  15797. #define SAI_xCR1_MCKDIV_1 0x00200000U /*!<Bit 1 */
  15798. #define SAI_xCR1_MCKDIV_2 0x00400000U /*!<Bit 2 */
  15799. #define SAI_xCR1_MCKDIV_3 0x00800000U /*!<Bit 3 */
  15800. #define SAI_xCR1_MCKDIV_4 0x01000000U /*!<Bit 4 */
  15801. #define SAI_xCR1_MCKDIV_5 0x02000000U /*!<Bit 5 */
  15802. #define SAI_xCR1_OSR 0x04000000U /*!<OverSampling Ratio for master clock */
  15803. /******************* Bit definition for SAI_xCR2 register *******************/
  15804. #define SAI_xCR2_FTH 0x00000007U /*!<FTH[2:0](Fifo THreshold) */
  15805. #define SAI_xCR2_FTH_0 0x00000001U /*!<Bit 0 */
  15806. #define SAI_xCR2_FTH_1 0x00000002U /*!<Bit 1 */
  15807. #define SAI_xCR2_FTH_2 0x00000004U /*!<Bit 2 */
  15808. #define SAI_xCR2_FFLUSH 0x00000008U /*!<Fifo FLUSH */
  15809. #define SAI_xCR2_TRIS 0x00000010U /*!<TRIState Management on data line */
  15810. #define SAI_xCR2_MUTE 0x00000020U /*!<Mute mode */
  15811. #define SAI_xCR2_MUTEVAL 0x00000040U /*!<Muate value */
  15812. #define SAI_xCR2_MUTECNT 0x00001F80U /*!<MUTECNT[5:0] (MUTE counter) */
  15813. #define SAI_xCR2_MUTECNT_0 0x00000080U /*!<Bit 0 */
  15814. #define SAI_xCR2_MUTECNT_1 0x00000100U /*!<Bit 1 */
  15815. #define SAI_xCR2_MUTECNT_2 0x00000200U /*!<Bit 2 */
  15816. #define SAI_xCR2_MUTECNT_3 0x00000400U /*!<Bit 3 */
  15817. #define SAI_xCR2_MUTECNT_4 0x00000800U /*!<Bit 4 */
  15818. #define SAI_xCR2_MUTECNT_5 0x00001000U /*!<Bit 5 */
  15819. #define SAI_xCR2_CPL 0x00002000U /*!< Complement Bit */
  15820. #define SAI_xCR2_COMP 0x0000C000U /*!<COMP[1:0] (Companding mode) */
  15821. #define SAI_xCR2_COMP_0 0x00004000U /*!<Bit 0 */
  15822. #define SAI_xCR2_COMP_1 0x00008000U /*!<Bit 1 */
  15823. /****************** Bit definition for SAI_xFRCR register *******************/
  15824. #define SAI_xFRCR_FRL 0x000000FFU /*!<FRL[7:0](FRame Length) */
  15825. #define SAI_xFRCR_FRL_0 0x00000001U /*!<Bit 0 */
  15826. #define SAI_xFRCR_FRL_1 0x00000002U /*!<Bit 1 */
  15827. #define SAI_xFRCR_FRL_2 0x00000004U /*!<Bit 2 */
  15828. #define SAI_xFRCR_FRL_3 0x00000008U /*!<Bit 3 */
  15829. #define SAI_xFRCR_FRL_4 0x00000010U /*!<Bit 4 */
  15830. #define SAI_xFRCR_FRL_5 0x00000020U /*!<Bit 5 */
  15831. #define SAI_xFRCR_FRL_6 0x00000040U /*!<Bit 6 */
  15832. #define SAI_xFRCR_FRL_7 0x00000080U /*!<Bit 7 */
  15833. #define SAI_xFRCR_FSALL 0x00007F00U /*!<FSALL[6:0] (Frame Synchronization Active Level Length) */
  15834. #define SAI_xFRCR_FSALL_0 0x00000100U /*!<Bit 0 */
  15835. #define SAI_xFRCR_FSALL_1 0x00000200U /*!<Bit 1 */
  15836. #define SAI_xFRCR_FSALL_2 0x00000400U /*!<Bit 2 */
  15837. #define SAI_xFRCR_FSALL_3 0x00000800U /*!<Bit 3 */
  15838. #define SAI_xFRCR_FSALL_4 0x00001000U /*!<Bit 4 */
  15839. #define SAI_xFRCR_FSALL_5 0x00002000U /*!<Bit 5 */
  15840. #define SAI_xFRCR_FSALL_6 0x00004000U /*!<Bit 6 */
  15841. #define SAI_xFRCR_FSDEF 0x00010000U /*!<Frame Synchronization Definition */
  15842. #define SAI_xFRCR_FSPOL 0x00020000U /*!<Frame Synchronization POLarity */
  15843. #define SAI_xFRCR_FSOFF 0x00040000U /*!<Frame Synchronization OFFset */
  15844. /* Legacy define */
  15845. #define SAI_xFRCR_FSPO SAI_xFRCR_FSPOL
  15846. /****************** Bit definition for SAI_xSLOTR register *******************/
  15847. #define SAI_xSLOTR_FBOFF 0x0000001FU /*!<FBOFF[4:0](First Bit Offset) */
  15848. #define SAI_xSLOTR_FBOFF_0 0x00000001U /*!<Bit 0 */
  15849. #define SAI_xSLOTR_FBOFF_1 0x00000002U /*!<Bit 1 */
  15850. #define SAI_xSLOTR_FBOFF_2 0x00000004U /*!<Bit 2 */
  15851. #define SAI_xSLOTR_FBOFF_3 0x00000008U /*!<Bit 3 */
  15852. #define SAI_xSLOTR_FBOFF_4 0x00000010U /*!<Bit 4 */
  15853. #define SAI_xSLOTR_SLOTSZ 0x000000C0U /*!<SLOTSZ[1:0] (Slot size) */
  15854. #define SAI_xSLOTR_SLOTSZ_0 0x00000040U /*!<Bit 0 */
  15855. #define SAI_xSLOTR_SLOTSZ_1 0x00000080U /*!<Bit 1 */
  15856. #define SAI_xSLOTR_NBSLOT 0x00000F00U /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */
  15857. #define SAI_xSLOTR_NBSLOT_0 0x00000100U /*!<Bit 0 */
  15858. #define SAI_xSLOTR_NBSLOT_1 0x00000200U /*!<Bit 1 */
  15859. #define SAI_xSLOTR_NBSLOT_2 0x00000400U /*!<Bit 2 */
  15860. #define SAI_xSLOTR_NBSLOT_3 0x00000800U /*!<Bit 3 */
  15861. #define SAI_xSLOTR_SLOTEN 0xFFFF0000U /*!<SLOTEN[15:0] (Slot Enable) */
  15862. /******************* Bit definition for SAI_xIMR register *******************/
  15863. #define SAI_xIMR_OVRUDRIE 0x00000001U /*!<Overrun underrun interrupt enable */
  15864. #define SAI_xIMR_MUTEDETIE 0x00000002U /*!<Mute detection interrupt enable */
  15865. #define SAI_xIMR_WCKCFGIE 0x00000004U /*!<Wrong Clock Configuration interrupt enable */
  15866. #define SAI_xIMR_FREQIE 0x00000008U /*!<FIFO request interrupt enable */
  15867. #define SAI_xIMR_CNRDYIE 0x00000010U /*!<Codec not ready interrupt enable */
  15868. #define SAI_xIMR_AFSDETIE 0x00000020U /*!<Anticipated frame synchronization detection interrupt enable */
  15869. #define SAI_xIMR_LFSDETIE 0x00000040U /*!<Late frame synchronization detection interrupt enable */
  15870. /******************** Bit definition for SAI_xSR register *******************/
  15871. #define SAI_xSR_OVRUDR 0x00000001U /*!<Overrun underrun */
  15872. #define SAI_xSR_MUTEDET 0x00000002U /*!<Mute detection */
  15873. #define SAI_xSR_WCKCFG 0x00000004U /*!<Wrong Clock Configuration */
  15874. #define SAI_xSR_FREQ 0x00000008U /*!<FIFO request */
  15875. #define SAI_xSR_CNRDY 0x00000010U /*!<Codec not ready */
  15876. #define SAI_xSR_AFSDET 0x00000020U /*!<Anticipated frame synchronization detection */
  15877. #define SAI_xSR_LFSDET 0x00000040U /*!<Late frame synchronization detection */
  15878. #define SAI_xSR_FLVL 0x00070000U /*!<FLVL[2:0] (FIFO Level Threshold) */
  15879. #define SAI_xSR_FLVL_0 0x00010000U /*!<Bit 0 */
  15880. #define SAI_xSR_FLVL_1 0x00020000U /*!<Bit 1 */
  15881. #define SAI_xSR_FLVL_2 0x00040000U /*!<Bit 2 */
  15882. /****************** Bit definition for SAI_xCLRFR register ******************/
  15883. #define SAI_xCLRFR_COVRUDR 0x00000001U /*!<Clear Overrun underrun */
  15884. #define SAI_xCLRFR_CMUTEDET 0x00000002U /*!<Clear Mute detection */
  15885. #define SAI_xCLRFR_CWCKCFG 0x00000004U /*!<Clear Wrong Clock Configuration */
  15886. #define SAI_xCLRFR_CFREQ 0x00000008U /*!<Clear FIFO request */
  15887. #define SAI_xCLRFR_CCNRDY 0x00000010U /*!<Clear Codec not ready */
  15888. #define SAI_xCLRFR_CAFSDET 0x00000020U /*!<Clear Anticipated frame synchronization detection */
  15889. #define SAI_xCLRFR_CLFSDET 0x00000040U /*!<Clear Late frame synchronization detection */
  15890. /****************** Bit definition for SAI_xDR register *********************/
  15891. #define SAI_xDR_DATA 0xFFFFFFFFU
  15892. /******************* Bit definition for SAI_PDMCR register ******************/
  15893. #define SAI_PDMCR_PDMEN 0x00000001U /*!<PDM Enable */
  15894. #define SAI_PDMCR_MICNBR 0x00000030U /*!<Number of microphones */
  15895. #define SAI_PDMCR_MICNBR_0 0x00000010U /*!<Bit 0 */
  15896. #define SAI_PDMCR_MICNBR_1 0x00000020U /*!<Bit 1 */
  15897. #define SAI_PDMCR_CKEN1 0x00000100U /*!<Clock enable of bitstream clock number 1 */
  15898. #define SAI_PDMCR_CKEN2 0x00000200U /*!<Clock enable of bitstream clock number 2 */
  15899. #define SAI_PDMCR_CKEN3 0x00000400U /*!<Clock enable of bitstream clock number 3 */
  15900. #define SAI_PDMCR_CKEN4 0x00000800U /*!<Clock enable of bitstream clock number 4 */
  15901. /****************** Bit definition for SAI_PDMDLY register ******************/
  15902. #define SAI_PDMDLY_DLYM1L 0x00000007U /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
  15903. #define SAI_PDMDLY_DLYM1L_0 0x00000001U /*!<Bit 0 */
  15904. #define SAI_PDMDLY_DLYM1L_1 0x00000002U /*!<Bit 1 */
  15905. #define SAI_PDMDLY_DLYM1L_2 0x00000004U /*!<Bit 2 */
  15906. #define SAI_PDMDLY_DLYM1R 0x00000070U /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
  15907. #define SAI_PDMDLY_DLYM1R_0 0x00000010U /*!<Bit 0 */
  15908. #define SAI_PDMDLY_DLYM1R_1 0x00000020U /*!<Bit 1 */
  15909. #define SAI_PDMDLY_DLYM1R_2 0x00000040U /*!<Bit 2 */
  15910. #define SAI_PDMDLY_DLYM2L 0x00000700U /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
  15911. #define SAI_PDMDLY_DLYM2L_0 0x00000100U /*!<Bit 0 */
  15912. #define SAI_PDMDLY_DLYM2L_1 0x00000200U /*!<Bit 1 */
  15913. #define SAI_PDMDLY_DLYM2L_2 0x00000400U /*!<Bit 2 */
  15914. #define SAI_PDMDLY_DLYM2R 0x00007000U /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2)*/
  15915. #define SAI_PDMDLY_DLYM2R_0 0x00001000U /*!<Bit 0 */
  15916. #define SAI_PDMDLY_DLYM2R_1 0x00002000U /*!<Bit 1 */
  15917. #define SAI_PDMDLY_DLYM2R_2 0x00004000U /*!<Bit 2 */
  15918. #define SAI_PDMDLY_DLYM3L 0x00070000U /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3)*/
  15919. #define SAI_PDMDLY_DLYM3L_0 0x00010000U /*!<Bit 0 */
  15920. #define SAI_PDMDLY_DLYM3L_1 0x00020000U /*!<Bit 1 */
  15921. #define SAI_PDMDLY_DLYM3L_2 0x00040000U /*!<Bit 2 */
  15922. #define SAI_PDMDLY_DLYM3R 0x00700000U /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3)*/
  15923. #define SAI_PDMDLY_DLYM3R_0 0x00100000U /*!<Bit 0 */
  15924. #define SAI_PDMDLY_DLYM3R_1 0x00200000U /*!<Bit 1 */
  15925. #define SAI_PDMDLY_DLYM3R_2 0x00400000U /*!<Bit 2 */
  15926. #define SAI_PDMDLY_DLYM4L 0x07000000U /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4)*/
  15927. #define SAI_PDMDLY_DLYM4L_0 0x01000000U /*!<Bit 0 */
  15928. #define SAI_PDMDLY_DLYM4L_1 0x02000000U /*!<Bit 1 */
  15929. #define SAI_PDMDLY_DLYM4L_2 0x04000000U /*!<Bit 2 */
  15930. #define SAI_PDMDLY_DLYM4R 0x70000000U /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4)*/
  15931. #define SAI_PDMDLY_DLYM4R_0 0x10000000U /*!<Bit 0 */
  15932. #define SAI_PDMDLY_DLYM4R_1 0x20000000U /*!<Bit 1 */
  15933. #define SAI_PDMDLY_DLYM4R_2 0x40000000U /*!<Bit 2 */
  15934. /******************************************************************************/
  15935. /* */
  15936. /* SDMMC Interface */
  15937. /* */
  15938. /******************************************************************************/
  15939. /****************** Bit definition for SDMMC_POWER register ******************/
  15940. #define SDMMC_POWER_PWRCTRL_Pos (0U)
  15941. #define SDMMC_POWER_PWRCTRL_Msk (0x3U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */
  15942. #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */
  15943. #define SDMMC_POWER_PWRCTRL_0 (0x1U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */
  15944. #define SDMMC_POWER_PWRCTRL_1 (0x2U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */
  15945. #define SDMMC_POWER_VSWITCH_Pos (2U)
  15946. #define SDMMC_POWER_VSWITCH_Msk (0x1U << SDMMC_POWER_VSWITCH_Pos) /*!< 0x00000004 */
  15947. #define SDMMC_POWER_VSWITCH SDMMC_POWER_VSWITCH_Msk /*!<Voltage switch sequence start */
  15948. #define SDMMC_POWER_VSWITCHEN_Pos (3U)
  15949. #define SDMMC_POWER_VSWITCHEN_Msk (0x1U << SDMMC_POWER_VSWITCHEN_Pos) /*!< 0x00000008 */
  15950. #define SDMMC_POWER_VSWITCHEN SDMMC_POWER_VSWITCHEN_Msk /*!<Voltage switch procedure enable */
  15951. #define SDMMC_POWER_DIRPOL_Pos (4U)
  15952. #define SDMMC_POWER_DIRPOL_Msk (0x1U << SDMMC_POWER_DIRPOL_Pos) /*!< 0x00000010 */
  15953. #define SDMMC_POWER_DIRPOL SDMMC_POWER_DIRPOL_Msk /*!<Data and Command direction signals polarity selection */
  15954. /****************** Bit definition for SDMMC_CLKCR register ******************/
  15955. #define SDMMC_CLKCR_CLKDIV_Pos (0U)
  15956. #define SDMMC_CLKCR_CLKDIV_Msk (0x3FFU << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000003FF */
  15957. #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */
  15958. #define SDMMC_CLKCR_PWRSAV_Pos (12U)
  15959. #define SDMMC_CLKCR_PWRSAV_Msk (0x1U << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00001000 */
  15960. #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */
  15961. #define SDMMC_CLKCR_WIDBUS_Pos (14U)
  15962. #define SDMMC_CLKCR_WIDBUS_Msk (0x3U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x0000C000 */
  15963. #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
  15964. #define SDMMC_CLKCR_WIDBUS_0 (0x1U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00004000 */
  15965. #define SDMMC_CLKCR_WIDBUS_1 (0x2U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00008000 */
  15966. #define SDMMC_CLKCR_NEGEDGE_Pos (16U)
  15967. #define SDMMC_CLKCR_NEGEDGE_Msk (0x1U << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00010000 */
  15968. #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */
  15969. #define SDMMC_CLKCR_HWFC_EN_Pos (17U)
  15970. #define SDMMC_CLKCR_HWFC_EN_Msk (0x1U << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00020000 */
  15971. #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */
  15972. #define SDMMC_CLKCR_DDR_Pos (18U)
  15973. #define SDMMC_CLKCR_DDR_Msk (0x1U << SDMMC_CLKCR_DDR_Pos) /*!< 0x00040000 */
  15974. #define SDMMC_CLKCR_DDR SDMMC_CLKCR_DDR_Msk /*!<Data rate signaling selection */
  15975. #define SDMMC_CLKCR_BUSSPEED_Pos (19U)
  15976. #define SDMMC_CLKCR_BUSSPEED_Msk (0x1U << SDMMC_CLKCR_BUSSPEED_Pos) /*!< 0x00080000 */
  15977. #define SDMMC_CLKCR_BUSSPEED SDMMC_CLKCR_BUSSPEED_Msk /*!<Bus speed mode selection */
  15978. #define SDMMC_CLKCR_SELCLKRX_Pos (20U)
  15979. #define SDMMC_CLKCR_SELCLKRX_Msk (0x3U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00300000 */
  15980. #define SDMMC_CLKCR_SELCLKRX SDMMC_CLKCR_SELCLKRX_Msk /*!<SELCLKRX[1:0] bits (Receive clock selection) */
  15981. #define SDMMC_CLKCR_SELCLKRX_0 (0x1U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00100000 */
  15982. #define SDMMC_CLKCR_SELCLKRX_1 (0x2U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00200000 */
  15983. /******************* Bit definition for SDMMC_ARG register *******************/
  15984. #define SDMMC_ARG_CMDARG_Pos (0U)
  15985. #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFU << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */
  15986. #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */
  15987. /******************* Bit definition for SDMMC_CMD register *******************/
  15988. #define SDMMC_CMD_CMDINDEX_Pos (0U)
  15989. #define SDMMC_CMD_CMDINDEX_Msk (0x3FU << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */
  15990. #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */
  15991. #define SDMMC_CMD_CMDTRANS_Pos (6U)
  15992. #define SDMMC_CMD_CMDTRANS_Msk (0x1U << SDMMC_CMD_CMDTRANS_Pos) /*!< 0x00000040 */
  15993. #define SDMMC_CMD_CMDTRANS SDMMC_CMD_CMDTRANS_Msk /*!<CPSM Treats command as a Data Transfer */
  15994. #define SDMMC_CMD_CMDSTOP_Pos (7U)
  15995. #define SDMMC_CMD_CMDSTOP_Msk (0x1U << SDMMC_CMD_CMDSTOP_Pos) /*!< 0x00000080 */
  15996. #define SDMMC_CMD_CMDSTOP SDMMC_CMD_CMDSTOP_Msk /*!<CPSM Treats command as a Stop */
  15997. #define SDMMC_CMD_WAITRESP_Pos (8U)
  15998. #define SDMMC_CMD_WAITRESP_Msk (0x3U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000300 */
  15999. #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */
  16000. #define SDMMC_CMD_WAITRESP_0 (0x1U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000100 */
  16001. #define SDMMC_CMD_WAITRESP_1 (0x2U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000200 */
  16002. #define SDMMC_CMD_WAITINT_Pos (10U)
  16003. #define SDMMC_CMD_WAITINT_Msk (0x1U << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000400 */
  16004. #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */
  16005. #define SDMMC_CMD_WAITPEND_Pos (11U)
  16006. #define SDMMC_CMD_WAITPEND_Msk (0x1U << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000800 */
  16007. #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
  16008. #define SDMMC_CMD_CPSMEN_Pos (12U)
  16009. #define SDMMC_CMD_CPSMEN_Msk (0x1U << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00001000 */
  16010. #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */
  16011. #define SDMMC_CMD_DTHOLD_Pos (13U)
  16012. #define SDMMC_CMD_DTHOLD_Msk (0x1U << SDMMC_CMD_DTHOLD_Pos) /*!< 0x00002000 */
  16013. #define SDMMC_CMD_DTHOLD SDMMC_CMD_DTHOLD_Msk /*!<Hold new data block transmission and reception in the DPSM */
  16014. #define SDMMC_CMD_BOOTMODE_Pos (14U)
  16015. #define SDMMC_CMD_BOOTMODE_Msk (0x1U << SDMMC_CMD_BOOTMODE_Pos) /*!< 0x00004000 */
  16016. #define SDMMC_CMD_BOOTMODE SDMMC_CMD_BOOTMODE_Msk /*!<Boot mode */
  16017. #define SDMMC_CMD_BOOTEN_Pos (15U)
  16018. #define SDMMC_CMD_BOOTEN_Msk (0x1U << SDMMC_CMD_BOOTEN_Pos) /*!< 0x00008000 */
  16019. #define SDMMC_CMD_BOOTEN SDMMC_CMD_BOOTEN_Msk /*!<Enable Boot mode procedure */
  16020. #define SDMMC_CMD_CMDSUSPEND_Pos (16U)
  16021. #define SDMMC_CMD_CMDSUSPEND_Msk (0x1U << SDMMC_CMD_CMDSUSPEND_Pos) /*!< 0x00010000 */
  16022. #define SDMMC_CMD_CMDSUSPEND SDMMC_CMD_CMDSUSPEND_Msk /*!<CPSM Treats command as a Suspend or Resume command */
  16023. /***************** Bit definition for SDMMC_RESPCMD register *****************/
  16024. #define SDMMC_RESPCMD_RESPCMD_Pos (0U)
  16025. #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FU << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */
  16026. #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */
  16027. /****************** Bit definition for SDMMC_RESP0 register ******************/
  16028. #define SDMMC_RESP0_CARDSTATUS0_Pos (0U)
  16029. #define SDMMC_RESP0_CARDSTATUS0_Msk (0xFFFFFFFFU << SDMMC_RESP0_CARDSTATUS0_Pos) /*!< 0xFFFFFFFF */
  16030. #define SDMMC_RESP0_CARDSTATUS0 SDMMC_RESP0_CARDSTATUS0_Msk /*!<Card Status */
  16031. /****************** Bit definition for SDMMC_RESP1 register ******************/
  16032. #define SDMMC_RESP1_CARDSTATUS1_Pos (0U)
  16033. #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFU << SDMMC_RESP1_CARDSTATUS1_Pos) /*!< 0xFFFFFFFF */
  16034. #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */
  16035. /****************** Bit definition for SDMMC_RESP2 register ******************/
  16036. #define SDMMC_RESP2_CARDSTATUS2_Pos (0U)
  16037. #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFU << SDMMC_RESP2_CARDSTATUS2_Pos) /*!< 0xFFFFFFFF */
  16038. #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */
  16039. /****************** Bit definition for SDMMC_RESP3 register ******************/
  16040. #define SDMMC_RESP3_CARDSTATUS3_Pos (0U)
  16041. #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFU << SDMMC_RESP3_CARDSTATUS3_Pos) /*!< 0xFFFFFFFF */
  16042. #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */
  16043. /****************** Bit definition for SDMMC_RESP4 register ******************/
  16044. #define SDMMC_RESP4_CARDSTATUS4_Pos (0U)
  16045. #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFU << SDMMC_RESP4_CARDSTATUS4_Pos) /*!< 0xFFFFFFFF */
  16046. #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */
  16047. /****************** Bit definition for SDMMC_DTIMER register *****************/
  16048. #define SDMMC_DTIMER_DATATIME_Pos (0U)
  16049. #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFU << SDMMC_DTIMER_DATATIME_Pos) /*!< 0xFFFFFFFF */
  16050. #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */
  16051. /****************** Bit definition for SDMMC_DLEN register *******************/
  16052. #define SDMMC_DLEN_DATALENGTH_Pos (0U)
  16053. #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFU << SDMMC_DLEN_DATALENGTH_Pos) /*!< 0x01FFFFFF */
  16054. #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */
  16055. /****************** Bit definition for SDMMC_DCTRL register ******************/
  16056. #define SDMMC_DCTRL_DTEN_Pos (0U)
  16057. #define SDMMC_DCTRL_DTEN_Msk (0x1U << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */
  16058. #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */
  16059. #define SDMMC_DCTRL_DTDIR_Pos (1U)
  16060. #define SDMMC_DCTRL_DTDIR_Msk (0x1U << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */
  16061. #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */
  16062. #define SDMMC_DCTRL_DTMODE_Pos (2U)
  16063. #define SDMMC_DCTRL_DTMODE_Msk (0x3U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x0000000C */
  16064. #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<DTMODE[1:0] Data transfer mode selection */
  16065. #define SDMMC_DCTRL_DTMODE_0 (0x1U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */
  16066. #define SDMMC_DCTRL_DTMODE_1 (0x2U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000008 */
  16067. #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U)
  16068. #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFU << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */
  16069. #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */
  16070. #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */
  16071. #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */
  16072. #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
  16073. #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
  16074. #define SDMMC_DCTRL_RWSTART_Pos (8U)
  16075. #define SDMMC_DCTRL_RWSTART_Msk (0x1U << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */
  16076. #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */
  16077. #define SDMMC_DCTRL_RWSTOP_Pos (9U)
  16078. #define SDMMC_DCTRL_RWSTOP_Msk (0x1U << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */
  16079. #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */
  16080. #define SDMMC_DCTRL_RWMOD_Pos (10U)
  16081. #define SDMMC_DCTRL_RWMOD_Msk (0x1U << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */
  16082. #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */
  16083. #define SDMMC_DCTRL_SDIOEN_Pos (11U)
  16084. #define SDMMC_DCTRL_SDIOEN_Msk (0x1U << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */
  16085. #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */
  16086. #define SDMMC_DCTRL_BOOTACKEN_Pos (12U)
  16087. #define SDMMC_DCTRL_BOOTACKEN_Msk (0x1U << SDMMC_DCTRL_BOOTACKEN_Pos) /*!< 0x00001000 */
  16088. #define SDMMC_DCTRL_BOOTACKEN SDMMC_DCTRL_BOOTACKEN_Msk /*!<Enable the reception of the Boot Acknowledgment */
  16089. #define SDMMC_DCTRL_FIFORST_Pos (13U)
  16090. #define SDMMC_DCTRL_FIFORST_Msk (0x1U << SDMMC_DCTRL_FIFORST_Pos) /*!< 0x00002000 */
  16091. #define SDMMC_DCTRL_FIFORST SDMMC_DCTRL_FIFORST_Msk /*!<FIFO reset */
  16092. /****************** Bit definition for SDMMC_DCOUNT register *****************/
  16093. #define SDMMC_DCOUNT_DATACOUNT_Pos (0U)
  16094. #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFU << SDMMC_DCOUNT_DATACOUNT_Pos) /*!< 0x01FFFFFF */
  16095. #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */
  16096. /****************** Bit definition for SDMMC_STA register ********************/
  16097. #define SDMMC_STA_CCRCFAIL_Pos (0U)
  16098. #define SDMMC_STA_CCRCFAIL_Msk (0x1U << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */
  16099. #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */
  16100. #define SDMMC_STA_DCRCFAIL_Pos (1U)
  16101. #define SDMMC_STA_DCRCFAIL_Msk (0x1U << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */
  16102. #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */
  16103. #define SDMMC_STA_CTIMEOUT_Pos (2U)
  16104. #define SDMMC_STA_CTIMEOUT_Msk (0x1U << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */
  16105. #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */
  16106. #define SDMMC_STA_DTIMEOUT_Pos (3U)
  16107. #define SDMMC_STA_DTIMEOUT_Msk (0x1U << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */
  16108. #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */
  16109. #define SDMMC_STA_TXUNDERR_Pos (4U)
  16110. #define SDMMC_STA_TXUNDERR_Msk (0x1U << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */
  16111. #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */
  16112. #define SDMMC_STA_RXOVERR_Pos (5U)
  16113. #define SDMMC_STA_RXOVERR_Msk (0x1U << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */
  16114. #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */
  16115. #define SDMMC_STA_CMDREND_Pos (6U)
  16116. #define SDMMC_STA_CMDREND_Msk (0x1U << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */
  16117. #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */
  16118. #define SDMMC_STA_CMDSENT_Pos (7U)
  16119. #define SDMMC_STA_CMDSENT_Msk (0x1U << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */
  16120. #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */
  16121. #define SDMMC_STA_DATAEND_Pos (8U)
  16122. #define SDMMC_STA_DATAEND_Msk (0x1U << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */
  16123. #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */
  16124. #define SDMMC_STA_DHOLD_Pos (9U)
  16125. #define SDMMC_STA_DHOLD_Msk (0x1U << SDMMC_STA_DHOLD_Pos) /*!< 0x00000200 */
  16126. #define SDMMC_STA_DHOLD SDMMC_STA_DHOLD_Msk /*!<Data transfer Hold */
  16127. #define SDMMC_STA_DBCKEND_Pos (10U)
  16128. #define SDMMC_STA_DBCKEND_Msk (0x1U << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */
  16129. #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */
  16130. #define SDMMC_STA_DABORT_Pos (11U)
  16131. #define SDMMC_STA_DABORT_Msk (0x1U << SDMMC_STA_DABORT_Pos) /*!< 0x00000800 */
  16132. #define SDMMC_STA_DABORT SDMMC_STA_DABORT_Msk /*!<Data transfer aborted by CMD12 */
  16133. #define SDMMC_STA_CPSMACT_Pos (12U)
  16134. #define SDMMC_STA_CPSMACT_Msk (0x1U << SDMMC_STA_CPSMACT_Pos) /*!< 0x00001000 */
  16135. #define SDMMC_STA_CPSMACT SDMMC_STA_CPSMACT_Msk /*!<Command path state machine active */
  16136. #define SDMMC_STA_DPSMACT_Pos (13U)
  16137. #define SDMMC_STA_DPSMACT_Msk (0x1U << SDMMC_STA_DPSMACT_Pos) /*!< 0x00002000 */
  16138. #define SDMMC_STA_DPSMACT SDMMC_STA_DPSMACT_Msk /*!<Data path state machine active */
  16139. #define SDMMC_STA_TXFIFOHE_Pos (14U)
  16140. #define SDMMC_STA_TXFIFOHE_Msk (0x1U << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */
  16141. #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
  16142. #define SDMMC_STA_RXFIFOHF_Pos (15U)
  16143. #define SDMMC_STA_RXFIFOHF_Msk (0x1U << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */
  16144. #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
  16145. #define SDMMC_STA_TXFIFOF_Pos (16U)
  16146. #define SDMMC_STA_TXFIFOF_Msk (0x1U << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */
  16147. #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */
  16148. #define SDMMC_STA_RXFIFOF_Pos (17U)
  16149. #define SDMMC_STA_RXFIFOF_Msk (0x1U << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */
  16150. #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */
  16151. #define SDMMC_STA_TXFIFOE_Pos (18U)
  16152. #define SDMMC_STA_TXFIFOE_Msk (0x1U << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */
  16153. #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */
  16154. #define SDMMC_STA_RXFIFOE_Pos (19U)
  16155. #define SDMMC_STA_RXFIFOE_Msk (0x1U << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */
  16156. #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */
  16157. #define SDMMC_STA_BUSYD0_Pos (20U)
  16158. #define SDMMC_STA_BUSYD0_Msk (0x1U << SDMMC_STA_BUSYD0_Pos) /*!< 0x00100000 */
  16159. #define SDMMC_STA_BUSYD0 SDMMC_STA_BUSYD0_Msk /*!<Inverted value of SDMMC_D0 line (Busy) */
  16160. #define SDMMC_STA_BUSYD0END_Pos (21U)
  16161. #define SDMMC_STA_BUSYD0END_Msk (0x1U << SDMMC_STA_BUSYD0END_Pos) /*!< 0x00200000 */
  16162. #define SDMMC_STA_BUSYD0END SDMMC_STA_BUSYD0END_Msk /*!<End of SDMMC_D0 Busy following a CMD response detected */
  16163. #define SDMMC_STA_SDIOIT_Pos (22U)
  16164. #define SDMMC_STA_SDIOIT_Msk (0x1U << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */
  16165. #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */
  16166. #define SDMMC_STA_ACKFAIL_Pos (23U)
  16167. #define SDMMC_STA_ACKFAIL_Msk (0x1U << SDMMC_STA_ACKFAIL_Pos) /*!< 0x00800000 */
  16168. #define SDMMC_STA_ACKFAIL SDMMC_STA_ACKFAIL_Msk /*!<Boot Acknowledgment received (BootAck check fail) */
  16169. #define SDMMC_STA_ACKTIMEOUT_Pos (24U)
  16170. #define SDMMC_STA_ACKTIMEOUT_Msk (0x1U << SDMMC_STA_ACKTIMEOUT_Pos) /*!< 0x01000000 */
  16171. #define SDMMC_STA_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT_Msk /*!<Boot Acknowledgment timeout */
  16172. #define SDMMC_STA_VSWEND_Pos (25U)
  16173. #define SDMMC_STA_VSWEND_Msk (0x1U << SDMMC_STA_VSWEND_Pos) /*!< 0x02000000 */
  16174. #define SDMMC_STA_VSWEND SDMMC_STA_VSWEND_Msk /*!<Voltage switch critical timing section completion */
  16175. #define SDMMC_STA_CKSTOP_Pos (26U)
  16176. #define SDMMC_STA_CKSTOP_Msk (0x1U << SDMMC_STA_CKSTOP_Pos) /*!< 0x04000000 */
  16177. #define SDMMC_STA_CKSTOP SDMMC_STA_CKSTOP_Msk /*!<SDMMC_CK stopped in Voltage switch procedure */
  16178. #define SDMMC_STA_IDMATE_Pos (27U)
  16179. #define SDMMC_STA_IDMATE_Msk (0x1U << SDMMC_STA_IDMATE_Pos) /*!< 0x08000000 */
  16180. #define SDMMC_STA_IDMATE SDMMC_STA_IDMATE_Msk /*!<IDMA transfer error */
  16181. #define SDMMC_STA_IDMABTC_Pos (28U)
  16182. #define SDMMC_STA_IDMABTC_Msk (0x1U << SDMMC_STA_IDMABTC_Pos) /*!< 0x10000000 */
  16183. #define SDMMC_STA_IDMABTC SDMMC_STA_IDMABTC_Msk /*!<IDMA buffer transfer complete */
  16184. /******************* Bit definition for SDMMC_ICR register *******************/
  16185. #define SDMMC_ICR_CCRCFAILC_Pos (0U)
  16186. #define SDMMC_ICR_CCRCFAILC_Msk (0x1U << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */
  16187. #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */
  16188. #define SDMMC_ICR_DCRCFAILC_Pos (1U)
  16189. #define SDMMC_ICR_DCRCFAILC_Msk (0x1U << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */
  16190. #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */
  16191. #define SDMMC_ICR_CTIMEOUTC_Pos (2U)
  16192. #define SDMMC_ICR_CTIMEOUTC_Msk (0x1U << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */
  16193. #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */
  16194. #define SDMMC_ICR_DTIMEOUTC_Pos (3U)
  16195. #define SDMMC_ICR_DTIMEOUTC_Msk (0x1U << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */
  16196. #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */
  16197. #define SDMMC_ICR_TXUNDERRC_Pos (4U)
  16198. #define SDMMC_ICR_TXUNDERRC_Msk (0x1U << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */
  16199. #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */
  16200. #define SDMMC_ICR_RXOVERRC_Pos (5U)
  16201. #define SDMMC_ICR_RXOVERRC_Msk (0x1U << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */
  16202. #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */
  16203. #define SDMMC_ICR_CMDRENDC_Pos (6U)
  16204. #define SDMMC_ICR_CMDRENDC_Msk (0x1U << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */
  16205. #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */
  16206. #define SDMMC_ICR_CMDSENTC_Pos (7U)
  16207. #define SDMMC_ICR_CMDSENTC_Msk (0x1U << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */
  16208. #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */
  16209. #define SDMMC_ICR_DATAENDC_Pos (8U)
  16210. #define SDMMC_ICR_DATAENDC_Msk (0x1U << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */
  16211. #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */
  16212. #define SDMMC_ICR_DHOLDC_Pos (9U)
  16213. #define SDMMC_ICR_DHOLDC_Msk (0x1U << SDMMC_ICR_DHOLDC_Pos) /*!< 0x00000200 */
  16214. #define SDMMC_ICR_DHOLDC SDMMC_ICR_DHOLDC_Msk /*!<DHOLD flag clear bit */
  16215. #define SDMMC_ICR_DBCKENDC_Pos (10U)
  16216. #define SDMMC_ICR_DBCKENDC_Msk (0x1U << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */
  16217. #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */
  16218. #define SDMMC_ICR_DABORTC_Pos (11U)
  16219. #define SDMMC_ICR_DABORTC_Msk (0x1U << SDMMC_ICR_DABORTC_Pos) /*!< 0x00000800 */
  16220. #define SDMMC_ICR_DABORTC SDMMC_ICR_DABORTC_Msk /*!<DABORTC flag clear bit */
  16221. #define SDMMC_ICR_BUSYD0ENDC_Pos (21U)
  16222. #define SDMMC_ICR_BUSYD0ENDC_Msk (0x1U << SDMMC_ICR_BUSYD0ENDC_Pos) /*!< 0x00200000 */
  16223. #define SDMMC_ICR_BUSYD0ENDC SDMMC_ICR_BUSYD0ENDC_Msk /*!<BUSYD0ENDC flag clear bit */
  16224. #define SDMMC_ICR_SDIOITC_Pos (22U)
  16225. #define SDMMC_ICR_SDIOITC_Msk (0x1U << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */
  16226. #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */
  16227. #define SDMMC_ICR_ACKFAILC_Pos (23U)
  16228. #define SDMMC_ICR_ACKFAILC_Msk (0x1U << SDMMC_ICR_ACKFAILC_Pos) /*!< 0x00800000 */
  16229. #define SDMMC_ICR_ACKFAILC SDMMC_ICR_ACKFAILC_Msk /*!<ACKFAILC flag clear bit */
  16230. #define SDMMC_ICR_ACKTIMEOUTC_Pos (24U)
  16231. #define SDMMC_ICR_ACKTIMEOUTC_Msk (0x1U << SDMMC_ICR_ACKTIMEOUTC_Pos) /*!< 0x01000000 */
  16232. #define SDMMC_ICR_ACKTIMEOUTC SDMMC_ICR_ACKTIMEOUTC_Msk /*!<ACKTIMEOUTC flag clear bit */
  16233. #define SDMMC_ICR_VSWENDC_Pos (25U)
  16234. #define SDMMC_ICR_VSWENDC_Msk (0x1U << SDMMC_ICR_VSWENDC_Pos) /*!< 0x02000000 */
  16235. #define SDMMC_ICR_VSWENDC SDMMC_ICR_VSWENDC_Msk /*!<VSWENDC flag clear bit */
  16236. #define SDMMC_ICR_CKSTOPC_Pos (26U)
  16237. #define SDMMC_ICR_CKSTOPC_Msk (0x1U << SDMMC_ICR_CKSTOPC_Pos) /*!< 0x04000000 */
  16238. #define SDMMC_ICR_CKSTOPC SDMMC_ICR_CKSTOPC_Msk /*!<CKSTOPC flag clear bit */
  16239. #define SDMMC_ICR_IDMATEC_Pos (27U)
  16240. #define SDMMC_ICR_IDMATEC_Msk (0x1U << SDMMC_ICR_IDMATEC_Pos) /*!< 0x08000000 */
  16241. #define SDMMC_ICR_IDMATEC SDMMC_ICR_IDMATEC_Msk /*!<IDMATEC flag clear bit */
  16242. #define SDMMC_ICR_IDMABTCC_Pos (28U)
  16243. #define SDMMC_ICR_IDMABTCC_Msk (0x1U << SDMMC_ICR_IDMABTCC_Pos) /*!< 0x10000000 */
  16244. #define SDMMC_ICR_IDMABTCC SDMMC_ICR_IDMABTCC_Msk /*!<IDMABTCC flag clear bit */
  16245. /****************** Bit definition for SDMMC_MASK register *******************/
  16246. #define SDMMC_MASK_CCRCFAILIE_Pos (0U)
  16247. #define SDMMC_MASK_CCRCFAILIE_Msk (0x1U << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */
  16248. #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */
  16249. #define SDMMC_MASK_DCRCFAILIE_Pos (1U)
  16250. #define SDMMC_MASK_DCRCFAILIE_Msk (0x1U << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */
  16251. #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */
  16252. #define SDMMC_MASK_CTIMEOUTIE_Pos (2U)
  16253. #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1U << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */
  16254. #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */
  16255. #define SDMMC_MASK_DTIMEOUTIE_Pos (3U)
  16256. #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1U << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */
  16257. #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */
  16258. #define SDMMC_MASK_TXUNDERRIE_Pos (4U)
  16259. #define SDMMC_MASK_TXUNDERRIE_Msk (0x1U << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */
  16260. #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */
  16261. #define SDMMC_MASK_RXOVERRIE_Pos (5U)
  16262. #define SDMMC_MASK_RXOVERRIE_Msk (0x1U << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */
  16263. #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */
  16264. #define SDMMC_MASK_CMDRENDIE_Pos (6U)
  16265. #define SDMMC_MASK_CMDRENDIE_Msk (0x1U << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */
  16266. #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */
  16267. #define SDMMC_MASK_CMDSENTIE_Pos (7U)
  16268. #define SDMMC_MASK_CMDSENTIE_Msk (0x1U << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */
  16269. #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */
  16270. #define SDMMC_MASK_DATAENDIE_Pos (8U)
  16271. #define SDMMC_MASK_DATAENDIE_Msk (0x1U << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */
  16272. #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */
  16273. #define SDMMC_MASK_DHOLDIE_Pos (9U)
  16274. #define SDMMC_MASK_DHOLDIE_Msk (0x1U << SDMMC_MASK_DHOLDIE_Pos) /*!< 0x00000200 */
  16275. #define SDMMC_MASK_DHOLDIE SDMMC_MASK_DHOLDIE_Msk /*!<Data Hold Interrupt Enable */
  16276. #define SDMMC_MASK_DBCKENDIE_Pos (10U)
  16277. #define SDMMC_MASK_DBCKENDIE_Msk (0x1U << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */
  16278. #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */
  16279. #define SDMMC_MASK_DABORTIE_Pos (11U)
  16280. #define SDMMC_MASK_DABORTIE_Msk (0x1U << SDMMC_MASK_DABORTIE_Pos) /*!< 0x00000800 */
  16281. #define SDMMC_MASK_DABORTIE SDMMC_MASK_DABORTIE_Msk /*!<Data transfer aborted interrupt enable */
  16282. #define SDMMC_MASK_TXFIFOHEIE_Pos (14U)
  16283. #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1U << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */
  16284. #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */
  16285. #define SDMMC_MASK_RXFIFOHFIE_Pos (15U)
  16286. #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1U << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */
  16287. #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */
  16288. #define SDMMC_MASK_RXFIFOFIE_Pos (17U)
  16289. #define SDMMC_MASK_RXFIFOFIE_Msk (0x1U << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */
  16290. #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */
  16291. #define SDMMC_MASK_TXFIFOEIE_Pos (18U)
  16292. #define SDMMC_MASK_TXFIFOEIE_Msk (0x1U << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */
  16293. #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */
  16294. #define SDMMC_MASK_BUSYD0ENDIE_Pos (21U)
  16295. #define SDMMC_MASK_BUSYD0ENDIE_Msk (0x1U << SDMMC_MASK_BUSYD0ENDIE_Pos) /*!< 0x00200000 */
  16296. #define SDMMC_MASK_BUSYD0ENDIE SDMMC_MASK_BUSYD0ENDIE_Msk /*!<BUSYD0ENDIE interrupt Enable */
  16297. #define SDMMC_MASK_SDIOTIE_Pos (22U)
  16298. #define SDMMC_MASK_SDIOTIE_Msk (0x1U << SDMMC_MASK_SDIOTIE_Pos) /*!< 0x00400000 */
  16299. #define SDMMC_MASK_SDIOTIE SDMMC_MASK_SDIOTIE_Msk /*!<SDMMC Mode Interrupt Received interrupt Enable */
  16300. #define SDMMC_MASK_ACKFAILIE_Pos (23U)
  16301. #define SDMMC_MASK_ACKFAILIE_Msk (0x1U << SDMMC_MASK_ACKFAILIE_Pos) /*!< 0x00800000 */
  16302. #define SDMMC_MASK_ACKFAILIE SDMMC_MASK_ACKFAILIE_Msk /*!<Acknowledgment Fail Interrupt Enable */
  16303. #define SDMMC_MASK_ACKTIMEOUTIE_Pos (24U)
  16304. #define SDMMC_MASK_ACKTIMEOUTIE_Msk (0x1U << SDMMC_MASK_ACKTIMEOUTIE_Pos) /*!< 0x01000000 */
  16305. #define SDMMC_MASK_ACKTIMEOUTIE SDMMC_MASK_ACKTIMEOUTIE_Msk /*!<Acknowledgment timeout Interrupt Enable */
  16306. #define SDMMC_MASK_VSWENDIE_Pos (25U)
  16307. #define SDMMC_MASK_VSWENDIE_Msk (0x1U << SDMMC_MASK_VSWENDIE_Pos) /*!< 0x02000000 */
  16308. #define SDMMC_MASK_VSWENDIE SDMMC_MASK_VSWENDIE_Msk /*!<Voltage switch critical timing section completion Interrupt Enable */
  16309. #define SDMMC_MASK_CKSTOPIE_Pos (26U)
  16310. #define SDMMC_MASK_CKSTOPIE_Msk (0x1U << SDMMC_MASK_CKSTOPIE_Pos) /*!< 0x04000000 */
  16311. #define SDMMC_MASK_CKSTOPIE SDMMC_MASK_CKSTOPIE_Msk /*!<Voltage Switch clock stopped Interrupt Enable */
  16312. #define SDMMC_MASK_IDMABTCIE_Pos (28U)
  16313. #define SDMMC_MASK_IDMABTCIE_Msk (0x1U << SDMMC_MASK_IDMABTCIE_Pos) /*!< 0x10000000 */
  16314. #define SDMMC_MASK_IDMABTCIE SDMMC_MASK_IDMABTCIE_Msk /*!<IDMA buffer transfer complete Interrupt Enable */
  16315. /***************** Bit definition for SDMMC_ACKTIME register *****************/
  16316. #define SDMMC_ACKTIME_ACKTIME_Pos (0U)
  16317. #define SDMMC_ACKTIME_ACKTIME_Msk (0x1FFFFFFU << SDMMC_ACKTIME_ACKTIME_Pos) /*!< 0x01FFFFFF */
  16318. #define SDMMC_ACKTIME_ACKTIME SDMMC_ACKTIME_ACKTIME_Msk /*!<Boot acknowledgment timeout period */
  16319. /****************** Bit definition for SDMMC_FIFO register *******************/
  16320. #define SDMMC_FIFO_FIFODATA_Pos (0U)
  16321. #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFU << SDMMC_FIFO_FIFODATA_Pos) /*!< 0xFFFFFFFF */
  16322. #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */
  16323. /****************** Bit definition for SDMMC_IDMACTRL register ****************/
  16324. #define SDMMC_IDMA_IDMAEN_Pos (0U)
  16325. #define SDMMC_IDMA_IDMAEN_Msk (0x1U << SDMMC_IDMA_IDMAEN_Pos) /*!< 0x00000001 */
  16326. #define SDMMC_IDMA_IDMAEN SDMMC_IDMA_IDMAEN_Msk /*!< Enable the internal DMA of the SDMMC peripheral */
  16327. #define SDMMC_IDMA_IDMABMODE_Pos (1U)
  16328. #define SDMMC_IDMA_IDMABMODE_Msk (0x1U << SDMMC_IDMA_IDMABMODE_Pos) /*!< 0x00000002 */
  16329. #define SDMMC_IDMA_IDMABMODE SDMMC_IDMA_IDMABMODE_Msk /*!< Enable double buffer mode for IDMA */
  16330. #define SDMMC_IDMA_IDMABACT_Pos (2U)
  16331. #define SDMMC_IDMA_IDMABACT_Msk (0x1U << SDMMC_IDMA_IDMABACT_Pos) /*!< 0x00000004 */
  16332. #define SDMMC_IDMA_IDMABACT SDMMC_IDMA_IDMABACT_Msk /*!< Uses buffer 1 when double buffer mode is selected */
  16333. /***************** Bit definition for SDMMC_IDMABSIZE register ***************/
  16334. #define SDMMC_IDMABSIZE_IDMABNDT_Pos (5U)
  16335. #define SDMMC_IDMABSIZE_IDMABNDT_Msk (0xFFU << SDMMC_IDMABSIZE_IDMABNDT_Pos) /*!< 0x00001FE0 */
  16336. #define SDMMC_IDMABSIZE_IDMABNDT SDMMC_IDMABSIZE_IDMABNDT_Msk /*!< Number of transfers per buffer */
  16337. /***************** Bit definition for SDMMC_IDMABASE0 register ***************/
  16338. #define SDMMC_IDMABASE0_IDMABASE0 ((uint32_t)0xFFFFFFFF) /*!< Buffer 0 memory base address */
  16339. /***************** Bit definition for SDMMC_IDMABASE1 register ***************/
  16340. #define SDMMC_IDMABASE1_IDMABASE1 ((uint32_t)0xFFFFFFFF) /*!< Buffer 1 memory base address */
  16341. /******************************************************************************/
  16342. /* */
  16343. /* Delay Block Interface (DLYB) */
  16344. /* */
  16345. /******************************************************************************/
  16346. /******************* Bit definition for DLYB_CR register ********************/
  16347. #define DLYB_CR_DEN_Pos (0U)
  16348. #define DLYB_CR_DEN_Msk (0x1U << DLYB_CR_DEN_Pos) /*!< 0x00000001 */
  16349. #define DLYB_CR_DEN DLYB_CR_DEN_Msk /*!<Delay Block enable */
  16350. #define DLYB_CR_SEN_Pos (1U)
  16351. #define DLYB_CR_SEN_Msk (0x1U << DLYB_CR_SEN_Pos) /*!< 0x00000002 */
  16352. #define DLYB_CR_SEN DLYB_CR_SEN_Msk /*!<Sampler length enable */
  16353. /******************* Bit definition for DLYB_CFGR register ********************/
  16354. #define DLYB_CFGR_SEL_Pos (0U)
  16355. #define DLYB_CFGR_SEL_Msk (0xFU << DLYB_CFGR_SEL_Pos) /*!< 0x0000000F */
  16356. #define DLYB_CFGR_SEL DLYB_CFGR_SEL_Msk /*!<Select the phase for the Output clock[3:0] */
  16357. #define DLYB_CFGR_SEL_0 (0x1U << DLYB_CFGR_SEL_Pos) /*!< 0x00000001 */
  16358. #define DLYB_CFGR_SEL_1 (0x2U << DLYB_CFGR_SEL_Pos) /*!< 0x00000002 */
  16359. #define DLYB_CFGR_SEL_2 (0x3U << DLYB_CFGR_SEL_Pos) /*!< 0x00000003 */
  16360. #define DLYB_CFGR_SEL_3 (0x8U << DLYB_CFGR_SEL_Pos) /*!< 0x00000008 */
  16361. #define DLYB_CFGR_UNIT_Pos (8U)
  16362. #define DLYB_CFGR_UNIT_Msk (0x7FU << DLYB_CFGR_UNIT_Pos) /*!< 0x00007F00 */
  16363. #define DLYB_CFGR_UNIT DLYB_CFGR_UNIT_Msk /*!<Delay Defines the delay of a Unit delay cell[6:0] */
  16364. #define DLYB_CFGR_UNIT_0 (0x01U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000100 */
  16365. #define DLYB_CFGR_UNIT_1 (0x02U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000200 */
  16366. #define DLYB_CFGR_UNIT_2 (0x04U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000400 */
  16367. #define DLYB_CFGR_UNIT_3 (0x08U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000800 */
  16368. #define DLYB_CFGR_UNIT_4 (0x10U << DLYB_CFGR_UNIT_Pos) /*!< 0x00001000 */
  16369. #define DLYB_CFGR_UNIT_5 (0x20U << DLYB_CFGR_UNIT_Pos) /*!< 0x00002000 */
  16370. #define DLYB_CFGR_UNIT_6 (0x40U << DLYB_CFGR_UNIT_Pos) /*!< 0x00004000 */
  16371. #define DLYB_CFGR_LNG_Pos (16U)
  16372. #define DLYB_CFGR_LNG_Msk (0xFFFU << DLYB_CFGR_LNG_Pos) /*!< 0x0FFF0000 */
  16373. #define DLYB_CFGR_LNG DLYB_CFGR_LNG_Msk /*!<Delay line length value[11:0] */
  16374. #define DLYB_CFGR_LNG_0 (0x001U << DLYB_CFGR_LNG_Pos) /*!< 0x00010000 */
  16375. #define DLYB_CFGR_LNG_1 (0x002U << DLYB_CFGR_LNG_Pos) /*!< 0x00020000 */
  16376. #define DLYB_CFGR_LNG_2 (0x004U << DLYB_CFGR_LNG_Pos) /*!< 0x00040000 */
  16377. #define DLYB_CFGR_LNG_3 (0x008U << DLYB_CFGR_LNG_Pos) /*!< 0x00080000 */
  16378. #define DLYB_CFGR_LNG_4 (0x010U << DLYB_CFGR_LNG_Pos) /*!< 0x00100000 */
  16379. #define DLYB_CFGR_LNG_5 (0x020U << DLYB_CFGR_LNG_Pos) /*!< 0x00200000 */
  16380. #define DLYB_CFGR_LNG_6 (0x040U << DLYB_CFGR_LNG_Pos) /*!< 0x00400000 */
  16381. #define DLYB_CFGR_LNG_7 (0x080U << DLYB_CFGR_LNG_Pos) /*!< 0x00800000 */
  16382. #define DLYB_CFGR_LNG_8 (0x100U << DLYB_CFGR_LNG_Pos) /*!< 0x01000000 */
  16383. #define DLYB_CFGR_LNG_9 (0x200U << DLYB_CFGR_LNG_Pos) /*!< 0x02000000 */
  16384. #define DLYB_CFGR_LNG_10 (0x400U << DLYB_CFGR_LNG_Pos) /*!< 0x04000000 */
  16385. #define DLYB_CFGR_LNG_11 (0x800U << DLYB_CFGR_LNG_Pos) /*!< 0x08000000 */
  16386. #define DLYB_CFGR_LNGF_Pos (31U)
  16387. #define DLYB_CFGR_LNGF_Msk (0x1U << DLYB_CFGR_LNGF_Pos) /*!< 0x80000000 */
  16388. #define DLYB_CFGR_LNGF DLYB_CFGR_LNGF_Msk /*!<Length valid flag */
  16389. /******************************************************************************/
  16390. /* */
  16391. /* Serial Peripheral Interface (SPI/I2S) */
  16392. /* */
  16393. /******************************************************************************/
  16394. /******************* Bit definition for SPI_CR1 register ********************/
  16395. #define SPI_CR1_SPE_Pos (0U)
  16396. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000001 */
  16397. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<Serial Peripheral Enable */
  16398. #define SPI_CR1_MASRX_Pos (8U)
  16399. #define SPI_CR1_MASRX_Msk (0x1U << SPI_CR1_MASRX_Pos) /*!< 0x00000100 */
  16400. #define SPI_CR1_MASRX SPI_CR1_MASRX_Msk /*!<Master automatic SUSP in Receive mode */
  16401. #define SPI_CR1_CSTART_Pos (9U)
  16402. #define SPI_CR1_CSTART_Msk (0x1U << SPI_CR1_CSTART_Pos) /*!< 0x00000200 */
  16403. #define SPI_CR1_CSTART SPI_CR1_CSTART_Msk /*!<Master transfer start */
  16404. #define SPI_CR1_CSUSP_Pos (10U)
  16405. #define SPI_CR1_CSUSP_Msk (0x1U << SPI_CR1_CSUSP_Pos) /*!< 0x00000400 */
  16406. #define SPI_CR1_CSUSP SPI_CR1_CSUSP_Msk /*!<Master SUSPend request */
  16407. #define SPI_CR1_HDDIR_Pos (11U)
  16408. #define SPI_CR1_HDDIR_Msk (0x1U << SPI_CR1_HDDIR_Pos) /*!< 0x00000800 */
  16409. #define SPI_CR1_HDDIR SPI_CR1_HDDIR_Msk /*!<Rx/Tx direction at Half-duplex mode */
  16410. #define SPI_CR1_SSI_Pos (12U)
  16411. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00001000 */
  16412. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal SS signal input level */
  16413. #define SPI_CR1_CRC33_17 ((uint32_t)0x00002000) /*!<32-bit CRC polynomial configuration */
  16414. #define SPI_CR1_RCRCINI_Pos (14U)
  16415. #define SPI_CR1_RCRCINI_Msk (0x1U << SPI_CR1_RCRCINI_Pos) /*!< 0x00004000 */
  16416. #define SPI_CR1_RCRCINI SPI_CR1_RCRCINI_Msk /*!<CRC init pattern control for receiver */
  16417. #define SPI_CR1_TCRCINI_Pos (15U)
  16418. #define SPI_CR1_TCRCINI_Msk (0x1U << SPI_CR1_TCRCINI_Pos) /*!< 0x00008000 */
  16419. #define SPI_CR1_TCRCINI SPI_CR1_TCRCINI_Msk /*!<CRC init pattern control for transmitter */
  16420. #define SPI_CR1_IOLOCK_Pos (16U)
  16421. #define SPI_CR1_IOLOCK_Msk (0x1U << SPI_CR1_IOLOCK_Pos) /*!< 0x00010000 */
  16422. #define SPI_CR1_IOLOCK SPI_CR1_IOLOCK_Msk /*!<Locking the AF configuration of associated IOs */
  16423. /******************* Bit definition for SPI_CR2 register ********************/
  16424. #define SPI_CR2_TSER_Pos (16U)
  16425. #define SPI_CR2_TSER_Msk (0xFFFFU << SPI_CR2_TSER_Pos) /*!< 0xFFFF0000 */
  16426. #define SPI_CR2_TSER SPI_CR2_TSER_Msk /*!<Number of data transfer extension */
  16427. #define SPI_CR2_TSIZE_Pos (0U)
  16428. #define SPI_CR2_TSIZE_Msk (0xFFFFU << SPI_CR2_TSIZE_Pos) /*!< 0x0000FFFF */
  16429. #define SPI_CR2_TSIZE SPI_CR2_TSIZE_Msk /*!<Number of data at current transfer */
  16430. /******************* Bit definition for SPI_CFG1 register ********************/
  16431. #define SPI_CFG1_DSIZE_Pos (0U)
  16432. #define SPI_CFG1_DSIZE_Msk (0x1FU << SPI_CFG1_DSIZE_Pos) /*!< 0x0000001F */
  16433. #define SPI_CFG1_DSIZE SPI_CFG1_DSIZE_Msk /*!<DSIZE[4:0]: Bits number in single SPI data frame */
  16434. #define SPI_CFG1_DSIZE_0 (0x01U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000001 */
  16435. #define SPI_CFG1_DSIZE_1 (0x02U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000002 */
  16436. #define SPI_CFG1_DSIZE_2 (0x04U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000004 */
  16437. #define SPI_CFG1_DSIZE_3 (0x08U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000008 */
  16438. #define SPI_CFG1_DSIZE_4 (0x10U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000010 */
  16439. #define SPI_CFG1_FTHLV_Pos (5U)
  16440. #define SPI_CFG1_FTHLV_Msk (0xFU << SPI_CFG1_FTHLV_Pos) /*!< 0x000001E0 */
  16441. #define SPI_CFG1_FTHLV SPI_CFG1_FTHLV_Msk /*!<FTHVL [3:0]: FIFO threshold level*/
  16442. #define SPI_CFG1_FTHLV_0 (0x1U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000020 */
  16443. #define SPI_CFG1_FTHLV_1 (0x2U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000040 */
  16444. #define SPI_CFG1_FTHLV_2 (0x4U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000080 */
  16445. #define SPI_CFG1_FTHLV_3 (0x8U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000100 */
  16446. #define SPI_CFG1_UDRCFG_Pos (9U)
  16447. #define SPI_CFG1_UDRCFG_Msk (0x3U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000600 */
  16448. #define SPI_CFG1_UDRCFG SPI_CFG1_UDRCFG_Msk /*!<UDRCFG[1:0]: Behavior of transmitter at underrun */
  16449. #define SPI_CFG1_UDRCFG_0 (0x1U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000200 */
  16450. #define SPI_CFG1_UDRCFG_1 (0x2U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000400 */
  16451. #define SPI_CFG1_UDRDET_Pos (11U)
  16452. #define SPI_CFG1_UDRDET_Msk (0x3U << SPI_CFG1_UDRDET_Pos) /*!< 0x00001800 */
  16453. #define SPI_CFG1_UDRDET SPI_CFG1_UDRDET_Msk /*!<UDRDET[1:0]: Detection of underrun condition */
  16454. #define SPI_CFG1_UDRDET_0 (0x1U << SPI_CFG1_UDRDET_Pos) /*!< 0x00000800 */
  16455. #define SPI_CFG1_UDRDET_1 (0x2U << SPI_CFG1_UDRDET_Pos) /*!< 0x00001000 */
  16456. #define SPI_CFG1_RXDMAEN_Pos (14U)
  16457. #define SPI_CFG1_RXDMAEN_Msk (0x1U << SPI_CFG1_RXDMAEN_Pos) /*!< 0x00004000 */
  16458. #define SPI_CFG1_RXDMAEN SPI_CFG1_RXDMAEN_Msk /*!<Rx DMA stream enable */
  16459. #define SPI_CFG1_TXDMAEN_Pos (15U)
  16460. #define SPI_CFG1_TXDMAEN_Msk (0x1U << SPI_CFG1_TXDMAEN_Pos) /*!< 0x00008000 */
  16461. #define SPI_CFG1_TXDMAEN SPI_CFG1_TXDMAEN_Msk /*!<Tx DMA stream enable */
  16462. #define SPI_CFG1_CRCSIZE_Pos (16U)
  16463. #define SPI_CFG1_CRCSIZE_Msk (0x1FU << SPI_CFG1_CRCSIZE_Pos) /*!< 0x001F0000 */
  16464. #define SPI_CFG1_CRCSIZE SPI_CFG1_CRCSIZE_Msk /*!<CRCSIZE [4:0]: Length of CRC frame*/
  16465. #define SPI_CFG1_CRCSIZE_0 (0x01U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00010000 */
  16466. #define SPI_CFG1_CRCSIZE_1 (0x02U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00020000 */
  16467. #define SPI_CFG1_CRCSIZE_2 (0x04U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00040000 */
  16468. #define SPI_CFG1_CRCSIZE_3 (0x08U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00080000 */
  16469. #define SPI_CFG1_CRCSIZE_4 (0x10U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00100000 */
  16470. #define SPI_CFG1_CRCEN_Pos (22U)
  16471. #define SPI_CFG1_CRCEN_Msk (0x1U << SPI_CFG1_CRCEN_Pos) /*!< 0x00400000 */
  16472. #define SPI_CFG1_CRCEN SPI_CFG1_CRCEN_Msk /*!<Hardware CRC computation enable */
  16473. #define SPI_CFG1_MBR_Pos (28U)
  16474. #define SPI_CFG1_MBR_Msk (0x7U << SPI_CFG1_MBR_Pos) /*!< 0x70000000 */
  16475. #define SPI_CFG1_MBR SPI_CFG1_MBR_Msk /*!<Master baud rate */
  16476. #define SPI_CFG1_MBR_0 (0x1U << SPI_CFG1_MBR_Pos) /*!< 0x10000000 */
  16477. #define SPI_CFG1_MBR_1 (0x2U << SPI_CFG1_MBR_Pos) /*!< 0x20000000 */
  16478. #define SPI_CFG1_MBR_2 (0x4U << SPI_CFG1_MBR_Pos) /*!< 0x40000000 */
  16479. /******************* Bit definition for SPI_CFG2 register ********************/
  16480. #define SPI_CFG2_MSSI_Pos (0U)
  16481. #define SPI_CFG2_MSSI_Msk (0xFU << SPI_CFG2_MSSI_Pos) /*!< 0x0000000F */
  16482. #define SPI_CFG2_MSSI SPI_CFG2_MSSI_Msk /*!<Master SS Idleness */
  16483. #define SPI_CFG2_MSSI_0 (0x1U << SPI_CFG2_MSSI_Pos) /*!< 0x00000001 */
  16484. #define SPI_CFG2_MSSI_1 (0x2U << SPI_CFG2_MSSI_Pos) /*!< 0x00000002 */
  16485. #define SPI_CFG2_MSSI_2 (0x4U << SPI_CFG2_MSSI_Pos) /*!< 0x00000004 */
  16486. #define SPI_CFG2_MSSI_3 (0x8U << SPI_CFG2_MSSI_Pos) /*!< 0x00000008 */
  16487. #define SPI_CFG2_MIDI_Pos (4U)
  16488. #define SPI_CFG2_MIDI_Msk (0xFU << SPI_CFG2_MIDI_Pos) /*!< 0x000000F0 */
  16489. #define SPI_CFG2_MIDI SPI_CFG2_MIDI_Msk /*!<Master Inter-Data Idleness */
  16490. #define SPI_CFG2_MIDI_0 (0x1U << SPI_CFG2_MIDI_Pos) /*!< 0x00000010 */
  16491. #define SPI_CFG2_MIDI_1 (0x2U << SPI_CFG2_MIDI_Pos) /*!< 0x00000020 */
  16492. #define SPI_CFG2_MIDI_2 (0x4U << SPI_CFG2_MIDI_Pos) /*!< 0x00000040 */
  16493. #define SPI_CFG2_MIDI_3 (0x8U << SPI_CFG2_MIDI_Pos) /*!< 0x00000080 */
  16494. #define SPI_CFG2_IOSWP_Pos (15U)
  16495. #define SPI_CFG2_IOSWP_Msk (0x1U << SPI_CFG2_IOSWP_Pos) /*!< 0x00008000 */
  16496. #define SPI_CFG2_IOSWP SPI_CFG2_IOSWP_Msk /*!<Swap functionality of MISO and MOSI pins */
  16497. #define SPI_CFG2_COMM_Pos (17U)
  16498. #define SPI_CFG2_COMM_Msk (0x3U << SPI_CFG2_COMM_Pos) /*!< 0x00060000 */
  16499. #define SPI_CFG2_COMM SPI_CFG2_COMM_Msk /*!<COMM [1:0]: SPI Communication Mode*/
  16500. #define SPI_CFG2_COMM_0 (0x1U << SPI_CFG2_COMM_Pos) /*!< 0x00020000 */
  16501. #define SPI_CFG2_COMM_1 (0x2U << SPI_CFG2_COMM_Pos) /*!< 0x00040000 */
  16502. #define SPI_CFG2_SP_Pos (19U)
  16503. #define SPI_CFG2_SP_Msk (0x7U << SPI_CFG2_SP_Pos) /*!< 0x00380000 */
  16504. #define SPI_CFG2_SP SPI_CFG2_SP_Msk /*!<SP[2:0]: Serial Protocol */
  16505. #define SPI_CFG2_SP_0 (0x1U << SPI_CFG2_SP_Pos) /*!< 0x00080000 */
  16506. #define SPI_CFG2_SP_1 (0x2U << SPI_CFG2_SP_Pos) /*!< 0x00100000 */
  16507. #define SPI_CFG2_SP_2 (0x4U << SPI_CFG2_SP_Pos) /*!< 0x00200000 */
  16508. #define SPI_CFG2_MASTER_Pos (22U)
  16509. #define SPI_CFG2_MASTER_Msk (0x1U << SPI_CFG2_MASTER_Pos) /*!< 0x00400000 */
  16510. #define SPI_CFG2_MASTER SPI_CFG2_MASTER_Msk /*!<SPI Master */
  16511. #define SPI_CFG2_LSBFRST_Pos (23U)
  16512. #define SPI_CFG2_LSBFRST_Msk (0x1U << SPI_CFG2_LSBFRST_Pos) /*!< 0x00800000 */
  16513. #define SPI_CFG2_LSBFRST SPI_CFG2_LSBFRST_Msk /*!<Data frame format */
  16514. #define SPI_CFG2_CPHA_Pos (24U)
  16515. #define SPI_CFG2_CPHA_Msk (0x1U << SPI_CFG2_CPHA_Pos) /*!< 0x01000000 */
  16516. #define SPI_CFG2_CPHA SPI_CFG2_CPHA_Msk /*!<Clock Phase */
  16517. #define SPI_CFG2_CPOL_Pos (25U)
  16518. #define SPI_CFG2_CPOL_Msk (0x1U << SPI_CFG2_CPOL_Pos) /*!< 0x02000000 */
  16519. #define SPI_CFG2_CPOL SPI_CFG2_CPOL_Msk /*!<Clock Polarity */
  16520. #define SPI_CFG2_SSM_Pos (26U)
  16521. #define SPI_CFG2_SSM_Msk (0x1U << SPI_CFG2_SSM_Pos) /*!< 0x04000000 */
  16522. #define SPI_CFG2_SSM SPI_CFG2_SSM_Msk /*!<Software slave management */
  16523. #define SPI_CFG2_SSIOP_Pos (28U)
  16524. #define SPI_CFG2_SSIOP_Msk (0x1U << SPI_CFG2_SSIOP_Pos) /*!< 0x10000000 */
  16525. #define SPI_CFG2_SSIOP SPI_CFG2_SSIOP_Msk /*!<SS input/output polarity */
  16526. #define SPI_CFG2_SSOE_Pos (29U)
  16527. #define SPI_CFG2_SSOE_Msk (0x1U << SPI_CFG2_SSOE_Pos) /*!< 0x20000000 */
  16528. #define SPI_CFG2_SSOE SPI_CFG2_SSOE_Msk /*!<SS output enable */
  16529. #define SPI_CFG2_SSOM_Pos (30U)
  16530. #define SPI_CFG2_SSOM_Msk (0x1U << SPI_CFG2_SSOM_Pos) /*!< 0x40000000 */
  16531. #define SPI_CFG2_SSOM SPI_CFG2_SSOM_Msk /*!<SS output management in master mode */
  16532. #define SPI_CFG2_AFCNTR_Pos (31U)
  16533. #define SPI_CFG2_AFCNTR_Msk (0x1U << SPI_CFG2_AFCNTR_Pos) /*!< 0x80000000 */
  16534. #define SPI_CFG2_AFCNTR SPI_CFG2_AFCNTR_Msk /*!<Alternate function GPIOs control */
  16535. /******************* Bit definition for SPI_IER register ********************/
  16536. #define SPI_IER_RXPIE_Pos (0U)
  16537. #define SPI_IER_RXPIE_Msk (0x1U << SPI_IER_RXPIE_Pos) /*!< 0x00000001 */
  16538. #define SPI_IER_RXPIE SPI_IER_RXPIE_Msk /*!<RXP Interrupt Enable */
  16539. #define SPI_IER_TXPIE_Pos (1U)
  16540. #define SPI_IER_TXPIE_Msk (0x1U << SPI_IER_TXPIE_Pos) /*!< 0x00000002 */
  16541. #define SPI_IER_TXPIE SPI_IER_TXPIE_Msk /*!<TXP interrupt enable */
  16542. #define SPI_IER_DXPIE_Pos (2U)
  16543. #define SPI_IER_DXPIE_Msk (0x1U << SPI_IER_DXPIE_Pos) /*!< 0x00000004 */
  16544. #define SPI_IER_DXPIE SPI_IER_DXPIE_Msk /*!<DXP interrupt enable */
  16545. #define SPI_IER_EOTIE_Pos (3U)
  16546. #define SPI_IER_EOTIE_Msk (0x1U << SPI_IER_EOTIE_Pos) /*!< 0x00000008 */
  16547. #define SPI_IER_EOTIE SPI_IER_EOTIE_Msk /*!<EOT/SUSP/TXC interrupt enable */
  16548. #define SPI_IER_TXTFIE_Pos (4U)
  16549. #define SPI_IER_TXTFIE_Msk (0x1U << SPI_IER_TXTFIE_Pos) /*!< 0x00000010 */
  16550. #define SPI_IER_TXTFIE SPI_IER_TXTFIE_Msk /*!<TXTF interrupt enable */
  16551. #define SPI_IER_UDRIE_Pos (5U)
  16552. #define SPI_IER_UDRIE_Msk (0x1U << SPI_IER_UDRIE_Pos) /*!< 0x00000020 */
  16553. #define SPI_IER_UDRIE SPI_IER_UDRIE_Msk /*!<UDR interrupt enable */
  16554. #define SPI_IER_OVRIE_Pos (6U)
  16555. #define SPI_IER_OVRIE_Msk (0x1U << SPI_IER_OVRIE_Pos) /*!< 0x00000040 */
  16556. #define SPI_IER_OVRIE SPI_IER_OVRIE_Msk /*!<OVR interrupt enable */
  16557. #define SPI_IER_CRCIE_Pos (7U)
  16558. #define SPI_IER_CRCIE_Msk (0x1U << SPI_IER_CRCIE_Pos) /*!< 0x00000080 */
  16559. #define SPI_IER_CRCIE SPI_IER_CRCIE_Msk /*!<CRC interrupt enable */
  16560. #define SPI_IER_TIFREIE_Pos (8U)
  16561. #define SPI_IER_TIFREIE_Msk (0x1U << SPI_IER_TIFREIE_Pos) /*!< 0x00000100 */
  16562. #define SPI_IER_TIFREIE SPI_IER_TIFREIE_Msk /*!<TI Frame Error interrupt enable */
  16563. #define SPI_IER_MODFIE_Pos (9U)
  16564. #define SPI_IER_MODFIE_Msk (0x1U << SPI_IER_MODFIE_Pos) /*!< 0x00000200 */
  16565. #define SPI_IER_MODFIE SPI_IER_MODFIE_Msk /*!<MODF interrupt enable */
  16566. #define SPI_IER_TSERIE_Pos (10U)
  16567. #define SPI_IER_TSERIE_Msk (0x1U << SPI_IER_TSERIE_Pos) /*!< 0x00000400 */
  16568. #define SPI_IER_TSERIE SPI_IER_TSERIE_Msk /*!<TSER interrupt enable */
  16569. /******************* Bit definition for SPI_SR register ********************/
  16570. #define SPI_SR_RXP_Pos (0U)
  16571. #define SPI_SR_RXP_Msk (0x1U << SPI_SR_RXP_Pos) /*!< 0x00000001 */
  16572. #define SPI_SR_RXP SPI_SR_RXP_Msk /*!<Rx-Packet available */
  16573. #define SPI_SR_TXP_Pos (1U)
  16574. #define SPI_SR_TXP_Msk (0x1U << SPI_SR_TXP_Pos) /*!< 0x00000002 */
  16575. #define SPI_SR_TXP SPI_SR_TXP_Msk /*!<Tx-Packet space available */
  16576. #define SPI_SR_DXP_Pos (2U)
  16577. #define SPI_SR_DXP_Msk (0x1U << SPI_SR_DXP_Pos) /*!< 0x00000004 */
  16578. #define SPI_SR_DXP SPI_SR_DXP_Msk /*!<Duplex Packet available */
  16579. #define SPI_SR_EOT_Pos (3U)
  16580. #define SPI_SR_EOT_Msk (0x1U << SPI_SR_EOT_Pos) /*!< 0x00000008 */
  16581. #define SPI_SR_EOT SPI_SR_EOT_Msk /*!<Duplex Packet available */
  16582. #define SPI_SR_TXTF_Pos (4U)
  16583. #define SPI_SR_TXTF_Msk (0x1U << SPI_SR_TXTF_Pos) /*!< 0x00000010 */
  16584. #define SPI_SR_TXTF SPI_SR_TXTF_Msk /*!<Transmission Transfer Filled */
  16585. #define SPI_SR_UDR_Pos (5U)
  16586. #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000020 */
  16587. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!<UDR at Slave transmission */
  16588. #define SPI_SR_OVR_Pos (6U)
  16589. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  16590. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!<Rx-Packet available */
  16591. #define SPI_SR_CRCE_Pos (7U)
  16592. #define SPI_SR_CRCE_Msk (0x1U << SPI_SR_CRCE_Pos) /*!< 0x00000080 */
  16593. #define SPI_SR_CRCE SPI_SR_CRCE_Msk /*!<CRC Error Detected */
  16594. #define SPI_SR_TIFRE_Pos (8U)
  16595. #define SPI_SR_TIFRE_Msk (0x1U << SPI_SR_TIFRE_Pos) /*!< 0x00000100 */
  16596. #define SPI_SR_TIFRE SPI_SR_TIFRE_Msk /*!<TI frame format error Detected */
  16597. #define SPI_SR_MODF_Pos (9U)
  16598. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000200 */
  16599. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!<Mode Fault Detected */
  16600. #define SPI_SR_TSERF_Pos (10U)
  16601. #define SPI_SR_TSERF_Msk (0x1U << SPI_SR_TSERF_Pos) /*!< 0x00000400 */
  16602. #define SPI_SR_TSERF SPI_SR_TSERF_Msk /*!<Number of SPI data to be transacted reloaded */
  16603. #define SPI_SR_SUSP_Pos (11U)
  16604. #define SPI_SR_SUSP_Msk (0x1U << SPI_SR_SUSP_Pos) /*!< 0x00000800 */
  16605. #define SPI_SR_SUSP SPI_SR_SUSP_Msk /*!<SUSP is set by hardware */
  16606. #define SPI_SR_TXC_Pos (12U)
  16607. #define SPI_SR_TXC_Msk (0x1U << SPI_SR_TXC_Pos) /*!< 0x00001000 */
  16608. #define SPI_SR_TXC SPI_SR_TXC_Msk /*!<TxFIFO transmission complete */
  16609. #define SPI_SR_RXPLVL_Pos (13U)
  16610. #define SPI_SR_RXPLVL_Msk (0x3U << SPI_SR_RXPLVL_Pos) /*!< 0x00006000 */
  16611. #define SPI_SR_RXPLVL SPI_SR_RXPLVL_Msk /*!<RxFIFO Packing Level */
  16612. #define SPI_SR_RXPLVL_0 (0x1U << SPI_SR_RXPLVL_Pos) /*!< 0x00002000 */
  16613. #define SPI_SR_RXPLVL_1 (0x2U << SPI_SR_RXPLVL_Pos) /*!< 0x00004000 */
  16614. #define SPI_SR_RXWNE_Pos (15U)
  16615. #define SPI_SR_RXWNE_Msk (0x1U << SPI_SR_RXWNE_Pos) /*!< 0x00008000 */
  16616. #define SPI_SR_RXWNE SPI_SR_RXWNE_Msk /*!<Rx FIFO Word Not Empty */
  16617. #define SPI_SR_CTSIZE_Pos (16U)
  16618. #define SPI_SR_CTSIZE_Msk (0xFFFFU << SPI_SR_CTSIZE_Pos) /*!< 0xFFFF0000 */
  16619. #define SPI_SR_CTSIZE SPI_SR_CTSIZE_Msk /*!<Number of data frames remaining in TSIZE */
  16620. /******************* Bit definition for SPI_IFCR register ********************/
  16621. #define SPI_IFCR_EOTC_Pos (3U)
  16622. #define SPI_IFCR_EOTC_Msk (0x1U << SPI_IFCR_EOTC_Pos) /*!< 0x00000008 */
  16623. #define SPI_IFCR_EOTC SPI_IFCR_EOTC_Msk /*!<End Of Transfer flag clear */
  16624. #define SPI_IFCR_TXTFC_Pos (4U)
  16625. #define SPI_IFCR_TXTFC_Msk (0x1U << SPI_IFCR_TXTFC_Pos) /*!< 0x00000010 */
  16626. #define SPI_IFCR_TXTFC SPI_IFCR_TXTFC_Msk /*!<Transmission Transfer Filled flag clear */
  16627. #define SPI_IFCR_UDRC_Pos (5U)
  16628. #define SPI_IFCR_UDRC_Msk (0x1U << SPI_IFCR_UDRC_Pos) /*!< 0x00000020 */
  16629. #define SPI_IFCR_UDRC SPI_IFCR_UDRC_Msk /*!<Underrun flag clear */
  16630. #define SPI_IFCR_OVRC_Pos (6U)
  16631. #define SPI_IFCR_OVRC_Msk (0x1U << SPI_IFCR_OVRC_Pos) /*!< 0x00000040 */
  16632. #define SPI_IFCR_OVRC SPI_IFCR_OVRC_Msk /*!<Overrun flag clear */
  16633. #define SPI_IFCR_CRCEC_Pos (7U)
  16634. #define SPI_IFCR_CRCEC_Msk (0x1U << SPI_IFCR_CRCEC_Pos) /*!< 0x00000080 */
  16635. #define SPI_IFCR_CRCEC SPI_IFCR_CRCEC_Msk /*!<CRC Error flag clear */
  16636. #define SPI_IFCR_TIFREC_Pos (8U)
  16637. #define SPI_IFCR_TIFREC_Msk (0x1U << SPI_IFCR_TIFREC_Pos) /*!< 0x00000100 */
  16638. #define SPI_IFCR_TIFREC SPI_IFCR_TIFREC_Msk /*!<TI frame format error flag clear */
  16639. #define SPI_IFCR_MODFC_Pos (9U)
  16640. #define SPI_IFCR_MODFC_Msk (0x1U << SPI_IFCR_MODFC_Pos) /*!< 0x00000200 */
  16641. #define SPI_IFCR_MODFC SPI_IFCR_MODFC_Msk /*!<Mode Fault flag clear */
  16642. #define SPI_IFCR_TSERFC_Pos (10U)
  16643. #define SPI_IFCR_TSERFC_Msk (0x1U << SPI_IFCR_TSERFC_Pos) /*!< 0x00000400 */
  16644. #define SPI_IFCR_TSERFC SPI_IFCR_TSERFC_Msk /*!<TSERFC flag clear */
  16645. #define SPI_IFCR_SUSPC_Pos (11U)
  16646. #define SPI_IFCR_SUSPC_Msk (0x1U << SPI_IFCR_SUSPC_Pos) /*!< 0x00000800 */
  16647. #define SPI_IFCR_SUSPC SPI_IFCR_SUSPC_Msk /*!<SUSPend flag clear */
  16648. /******************* Bit definition for SPI_TXDR register ********************/
  16649. #define SPI_TXDR_TXDR_Pos (0U)
  16650. #define SPI_TXDR_TXDR_Msk (0xFFFFFFFFU << SPI_TXDR_TXDR_Pos) /*!< 0xFFFFFFFF */
  16651. #define SPI_TXDR_TXDR SPI_TXDR_TXDR_Msk /* Transmit Data Register */
  16652. /******************* Bit definition for SPI_RXDR register ********************/
  16653. #define SPI_RXDR_RXDR_Pos (0U)
  16654. #define SPI_RXDR_RXDR_Msk (0xFFFFFFFFU << SPI_RXDR_RXDR_Pos) /*!< 0xFFFFFFFF */
  16655. #define SPI_RXDR_RXDR SPI_RXDR_RXDR_Msk /* Receive Data Register */
  16656. /******************* Bit definition for SPI_CRCPOLY register ********************/
  16657. #define SPI_CRCPOLY_CRCPOLY_Pos (0U)
  16658. #define SPI_CRCPOLY_CRCPOLY_Msk (0xFFFFFFFFU << SPI_CRCPOLY_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
  16659. #define SPI_CRCPOLY_CRCPOLY SPI_CRCPOLY_CRCPOLY_Msk /* CRC Polynomial register */
  16660. /******************* Bit definition for SPI_TXCRC register ********************/
  16661. #define SPI_TXCRC_TXCRC_Pos (0U)
  16662. #define SPI_TXCRC_TXCRC_Msk (0xFFFFFFFFU << SPI_TXCRC_TXCRC_Pos) /*!< 0xFFFFFFFF */
  16663. #define SPI_TXCRC_TXCRC SPI_TXCRC_TXCRC_Msk /* CRCRegister for transmitter */
  16664. /******************* Bit definition for SPI_RXCRC register ********************/
  16665. #define SPI_TXCRC_RXCRC_Pos (0U)
  16666. #define SPI_TXCRC_RXCRC_Msk (0xFFFFFFFFU << SPI_TXCRC_RXCRC_Pos) /*!< 0xFFFFFFFF */
  16667. #define SPI_TXCRC_RXCRC SPI_TXCRC_RXCRC_Msk /* CRCRegister for receiver */
  16668. /******************* Bit definition for SPI_UDRDR register ********************/
  16669. #define SPI_UDRDR_UDRDR_Pos (0U)
  16670. #define SPI_UDRDR_UDRDR_Msk (0xFFFFFFFFU << SPI_UDRDR_UDRDR_Pos) /*!< 0xFFFFFFFF */
  16671. #define SPI_UDRDR_UDRDR SPI_UDRDR_UDRDR_Msk /* Data at slave underrun condition */
  16672. /****************** Bit definition for SPI_I2SCFGR register *****************/
  16673. #define SPI_I2SCFGR_I2SMOD_Pos (0U)
  16674. #define SPI_I2SCFGR_I2SMOD_Msk (0x1U << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000001 */
  16675. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  16676. #define SPI_I2SCFGR_I2SCFG_Pos (1U)
  16677. #define SPI_I2SCFGR_I2SCFG_Msk (0x7U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x0000000E */
  16678. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[2:0] I2S configuration mode */
  16679. #define SPI_I2SCFGR_I2SCFG_0 (0x1U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000002 */
  16680. #define SPI_I2SCFGR_I2SCFG_1 (0x2U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000004 */
  16681. #define SPI_I2SCFGR_I2SCFG_2 (0x4U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000008 */
  16682. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  16683. #define SPI_I2SCFGR_I2SSTD_Msk (0x3U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  16684. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] I2S standard selection */
  16685. #define SPI_I2SCFGR_I2SSTD_0 (0x1U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  16686. #define SPI_I2SCFGR_I2SSTD_1 (0x2U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  16687. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  16688. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1U << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  16689. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  16690. #define SPI_I2SCFGR_DATLEN_Pos (8U)
  16691. #define SPI_I2SCFGR_DATLEN_Msk (0x3U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000300 */
  16692. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] Data length to be transferred */
  16693. #define SPI_I2SCFGR_DATLEN_0 (0x1U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000100 */
  16694. #define SPI_I2SCFGR_DATLEN_1 (0x2U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000200 */
  16695. #define SPI_I2SCFGR_CHLEN_Pos (10U)
  16696. #define SPI_I2SCFGR_CHLEN_Msk (0x1U << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000400 */
  16697. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  16698. #define SPI_I2SCFGR_CKPOL_Pos (11U)
  16699. #define SPI_I2SCFGR_CKPOL_Msk (0x1U << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000800 */
  16700. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<Steady state clock polarity */
  16701. #define SPI_I2SCFGR_WSINV_Pos (12U)
  16702. #define SPI_I2SCFGR_WSINV_Msk (0x1U << SPI_I2SCFGR_WSINV_Pos) /*!< 0x00001000 */
  16703. #define SPI_I2SCFGR_WSINV SPI_I2SCFGR_WSINV_Msk /*!<Word select inversion */
  16704. #define SPI_I2SCFGR_FIXCH_Pos (13U)
  16705. #define SPI_I2SCFGR_FIXCH_Msk (0x1U << SPI_I2SCFGR_FIXCH_Pos) /*!< 0x00002000 */
  16706. #define SPI_I2SCFGR_FIXCH SPI_I2SCFGR_FIXCH_Msk /*!<Fixed channel length in SLAVE */
  16707. #define SPI_I2SCFGR_DATFMT_Pos (12U)
  16708. #define SPI_I2SCFGR_DATFMT_Msk (0x3U << SPI_I2SCFGR_DATFMT_Pos) /*!< 0x00003000 */
  16709. #define SPI_I2SCFGR_DATFMT SPI_I2SCFGR_DATFMT_Msk /*!<Data format */
  16710. #define SPI_I2SCFGR_I2SDIV_Pos (16U)
  16711. #define SPI_I2SCFGR_I2SDIV_Msk (0xFFU << SPI_I2SCFGR_I2SDIV_Pos) /*!< 0x00FF0000 */
  16712. #define SPI_I2SCFGR_I2SDIV SPI_I2SCFGR_I2SDIV_Msk /*!<I2S Linear prescaler */
  16713. #define SPI_I2SCFGR_ODD_Pos (24U)
  16714. #define SPI_I2SCFGR_ODD_Msk (0x1U << SPI_I2SCFGR_ODD_Pos) /*!< 0x01000000 */
  16715. #define SPI_I2SCFGR_ODD SPI_I2SCFGR_ODD_Msk /*!<Odd factor for the prescaler */
  16716. #define SPI_I2SCFGR_MCKOE_Pos (25U)
  16717. #define SPI_I2SCFGR_MCKOE_Msk (0x1U << SPI_I2SCFGR_MCKOE_Pos) /*!< 0x02000000 */
  16718. #define SPI_I2SCFGR_MCKOE SPI_I2SCFGR_MCKOE_Msk /*!<Master Clock Output Enable */
  16719. /******************************************************************************/
  16720. /* */
  16721. /* QUADSPI */
  16722. /* */
  16723. /******************************************************************************/
  16724. /***************** Bit definition for QUADSPI_CR register *******************/
  16725. #define QUADSPI_CR_EN_Pos (0U)
  16726. #define QUADSPI_CR_EN_Msk (0x1U << QUADSPI_CR_EN_Pos) /*!< 0x00000001 */
  16727. #define QUADSPI_CR_EN QUADSPI_CR_EN_Msk /*!< Enable */
  16728. #define QUADSPI_CR_ABORT_Pos (1U)
  16729. #define QUADSPI_CR_ABORT_Msk (0x1U << QUADSPI_CR_ABORT_Pos) /*!< 0x00000002 */
  16730. #define QUADSPI_CR_ABORT QUADSPI_CR_ABORT_Msk /*!< Abort request */
  16731. #define QUADSPI_CR_DMAEN_Pos (2U)
  16732. #define QUADSPI_CR_DMAEN_Msk (0x1U << QUADSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
  16733. #define QUADSPI_CR_DMAEN QUADSPI_CR_DMAEN_Msk /*!< DMA Enable */
  16734. #define QUADSPI_CR_TCEN_Pos (3U)
  16735. #define QUADSPI_CR_TCEN_Msk (0x1U << QUADSPI_CR_TCEN_Pos) /*!< 0x00000008 */
  16736. #define QUADSPI_CR_TCEN QUADSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */
  16737. #define QUADSPI_CR_SSHIFT_Pos (4U)
  16738. #define QUADSPI_CR_SSHIFT_Msk (0x1U << QUADSPI_CR_SSHIFT_Pos) /*!< 0x00000010 */
  16739. #define QUADSPI_CR_SSHIFT QUADSPI_CR_SSHIFT_Msk /*!< SSHIFT Sample Shift */
  16740. #define QUADSPI_CR_DFM_Pos (6U)
  16741. #define QUADSPI_CR_DFM_Msk (0x1U << QUADSPI_CR_DFM_Pos) /*!< 0x00000040 */
  16742. #define QUADSPI_CR_DFM QUADSPI_CR_DFM_Msk /*!< Dual Flash Mode */
  16743. #define QUADSPI_CR_FSEL_Pos (7U)
  16744. #define QUADSPI_CR_FSEL_Msk (0x1U << QUADSPI_CR_FSEL_Pos) /*!< 0x00000080 */
  16745. #define QUADSPI_CR_FSEL QUADSPI_CR_FSEL_Msk /*!< Flash Select */
  16746. #define QUADSPI_CR_FTHRES_Pos (8U)
  16747. #define QUADSPI_CR_FTHRES_Msk (0xFU << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000F00 */
  16748. #define QUADSPI_CR_FTHRES QUADSPI_CR_FTHRES_Msk /*!< FTHRES[3:0] FIFO Level */
  16749. #define QUADSPI_CR_FTHRES_0 (0x1U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000100 */
  16750. #define QUADSPI_CR_FTHRES_1 (0x2U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000200 */
  16751. #define QUADSPI_CR_FTHRES_2 (0x4U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000400 */
  16752. #define QUADSPI_CR_FTHRES_3 (0x8U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000800 */
  16753. #define QUADSPI_CR_TEIE_Pos (16U)
  16754. #define QUADSPI_CR_TEIE_Msk (0x1U << QUADSPI_CR_TEIE_Pos) /*!< 0x00010000 */
  16755. #define QUADSPI_CR_TEIE QUADSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  16756. #define QUADSPI_CR_TCIE_Pos (17U)
  16757. #define QUADSPI_CR_TCIE_Msk (0x1U << QUADSPI_CR_TCIE_Pos) /*!< 0x00020000 */
  16758. #define QUADSPI_CR_TCIE QUADSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  16759. #define QUADSPI_CR_FTIE_Pos (18U)
  16760. #define QUADSPI_CR_FTIE_Msk (0x1U << QUADSPI_CR_FTIE_Pos) /*!< 0x00040000 */
  16761. #define QUADSPI_CR_FTIE QUADSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */
  16762. #define QUADSPI_CR_SMIE_Pos (19U)
  16763. #define QUADSPI_CR_SMIE_Msk (0x1U << QUADSPI_CR_SMIE_Pos) /*!< 0x00080000 */
  16764. #define QUADSPI_CR_SMIE QUADSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */
  16765. #define QUADSPI_CR_TOIE_Pos (20U)
  16766. #define QUADSPI_CR_TOIE_Msk (0x1U << QUADSPI_CR_TOIE_Pos) /*!< 0x00100000 */
  16767. #define QUADSPI_CR_TOIE QUADSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */
  16768. #define QUADSPI_CR_APMS_Pos (22U)
  16769. #define QUADSPI_CR_APMS_Msk (0x1U << QUADSPI_CR_APMS_Pos) /*!< 0x00400000 */
  16770. #define QUADSPI_CR_APMS QUADSPI_CR_APMS_Msk /*!< Bit 1 */
  16771. #define QUADSPI_CR_PMM_Pos (23U)
  16772. #define QUADSPI_CR_PMM_Msk (0x1U << QUADSPI_CR_PMM_Pos) /*!< 0x00800000 */
  16773. #define QUADSPI_CR_PMM QUADSPI_CR_PMM_Msk /*!< Polling Match Mode */
  16774. #define QUADSPI_CR_PRESCALER_Pos (24U)
  16775. #define QUADSPI_CR_PRESCALER_Msk (0xFFU << QUADSPI_CR_PRESCALER_Pos) /*!< 0xFF000000 */
  16776. #define QUADSPI_CR_PRESCALER QUADSPI_CR_PRESCALER_Msk /*!< PRESCALER[7:0] Clock prescaler */
  16777. #define QUADSPI_CR_PRESCALER_0 (0x01U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x01000000 */
  16778. #define QUADSPI_CR_PRESCALER_1 (0x02U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x02000000 */
  16779. #define QUADSPI_CR_PRESCALER_2 (0x04U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x04000000 */
  16780. #define QUADSPI_CR_PRESCALER_3 (0x08U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x08000000 */
  16781. #define QUADSPI_CR_PRESCALER_4 (0x10U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x10000000 */
  16782. #define QUADSPI_CR_PRESCALER_5 (0x20U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x20000000 */
  16783. #define QUADSPI_CR_PRESCALER_6 (0x40U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x40000000 */
  16784. #define QUADSPI_CR_PRESCALER_7 (0x80U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x80000000 */
  16785. /***************** Bit definition for QUADSPI_DCR register ******************/
  16786. #define QUADSPI_DCR_CKMODE_Pos (0U)
  16787. #define QUADSPI_DCR_CKMODE_Msk (0x1U << QUADSPI_DCR_CKMODE_Pos) /*!< 0x00000001 */
  16788. #define QUADSPI_DCR_CKMODE QUADSPI_DCR_CKMODE_Msk /*!< Mode 0 / Mode 3 */
  16789. #define QUADSPI_DCR_CSHT_Pos (8U)
  16790. #define QUADSPI_DCR_CSHT_Msk (0x7U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000700 */
  16791. #define QUADSPI_DCR_CSHT QUADSPI_DCR_CSHT_Msk /*!< CSHT[2:0]: ChipSelect High Time */
  16792. #define QUADSPI_DCR_CSHT_0 (0x1U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000100 */
  16793. #define QUADSPI_DCR_CSHT_1 (0x2U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000200 */
  16794. #define QUADSPI_DCR_CSHT_2 (0x4U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000400 */
  16795. #define QUADSPI_DCR_FSIZE_Pos (16U)
  16796. #define QUADSPI_DCR_FSIZE_Msk (0x1FU << QUADSPI_DCR_FSIZE_Pos) /*!< 0x001F0000 */
  16797. #define QUADSPI_DCR_FSIZE QUADSPI_DCR_FSIZE_Msk /*!< FSIZE[4:0]: Flash Size */
  16798. #define QUADSPI_DCR_FSIZE_0 (0x01U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00010000 */
  16799. #define QUADSPI_DCR_FSIZE_1 (0x02U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00020000 */
  16800. #define QUADSPI_DCR_FSIZE_2 (0x04U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00040000 */
  16801. #define QUADSPI_DCR_FSIZE_3 (0x08U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00080000 */
  16802. #define QUADSPI_DCR_FSIZE_4 (0x10U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00100000 */
  16803. /****************** Bit definition for QUADSPI_SR register *******************/
  16804. #define QUADSPI_SR_TEF_Pos (0U)
  16805. #define QUADSPI_SR_TEF_Msk (0x1U << QUADSPI_SR_TEF_Pos) /*!< 0x00000001 */
  16806. #define QUADSPI_SR_TEF QUADSPI_SR_TEF_Msk /*!< Transfer Error Flag */
  16807. #define QUADSPI_SR_TCF_Pos (1U)
  16808. #define QUADSPI_SR_TCF_Msk (0x1U << QUADSPI_SR_TCF_Pos) /*!< 0x00000002 */
  16809. #define QUADSPI_SR_TCF QUADSPI_SR_TCF_Msk /*!< Transfer Complete Flag */
  16810. #define QUADSPI_SR_FTF_Pos (2U)
  16811. #define QUADSPI_SR_FTF_Msk (0x1U << QUADSPI_SR_FTF_Pos) /*!< 0x00000004 */
  16812. #define QUADSPI_SR_FTF QUADSPI_SR_FTF_Msk /*!< FIFO Threshlod Flag */
  16813. #define QUADSPI_SR_SMF_Pos (3U)
  16814. #define QUADSPI_SR_SMF_Msk (0x1U << QUADSPI_SR_SMF_Pos) /*!< 0x00000008 */
  16815. #define QUADSPI_SR_SMF QUADSPI_SR_SMF_Msk /*!< Status Match Flag */
  16816. #define QUADSPI_SR_TOF_Pos (4U)
  16817. #define QUADSPI_SR_TOF_Msk (0x1U << QUADSPI_SR_TOF_Pos) /*!< 0x00000010 */
  16818. #define QUADSPI_SR_TOF QUADSPI_SR_TOF_Msk /*!< Timeout Flag */
  16819. #define QUADSPI_SR_BUSY_Pos (5U)
  16820. #define QUADSPI_SR_BUSY_Msk (0x1U << QUADSPI_SR_BUSY_Pos) /*!< 0x00000020 */
  16821. #define QUADSPI_SR_BUSY QUADSPI_SR_BUSY_Msk /*!< Busy */
  16822. #define QUADSPI_SR_FLEVEL_Pos (8U)
  16823. #define QUADSPI_SR_FLEVEL_Msk (0x1FU << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00001F00 */
  16824. #define QUADSPI_SR_FLEVEL QUADSPI_SR_FLEVEL_Msk /*!< FIFO Threshlod Flag */
  16825. #define QUADSPI_SR_FLEVEL_0 (0x01U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000100 */
  16826. #define QUADSPI_SR_FLEVEL_1 (0x02U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000200 */
  16827. #define QUADSPI_SR_FLEVEL_2 (0x04U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000400 */
  16828. #define QUADSPI_SR_FLEVEL_3 (0x08U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000800 */
  16829. #define QUADSPI_SR_FLEVEL_4 (0x10U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00001000 */
  16830. #define QUADSPI_SR_FLEVEL_5 (0x20U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00002000 */
  16831. #define QUADSPI_SR_FLEVEL_6 (0x30U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00003000 */
  16832. /****************** Bit definition for QUADSPI_FCR register ******************/
  16833. #define QUADSPI_FCR_CTEF_Pos (0U)
  16834. #define QUADSPI_FCR_CTEF_Msk (0x1U << QUADSPI_FCR_CTEF_Pos) /*!< 0x00000001 */
  16835. #define QUADSPI_FCR_CTEF QUADSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */
  16836. #define QUADSPI_FCR_CTCF_Pos (1U)
  16837. #define QUADSPI_FCR_CTCF_Msk (0x1U << QUADSPI_FCR_CTCF_Pos) /*!< 0x00000002 */
  16838. #define QUADSPI_FCR_CTCF QUADSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */
  16839. #define QUADSPI_FCR_CSMF_Pos (3U)
  16840. #define QUADSPI_FCR_CSMF_Msk (0x1U << QUADSPI_FCR_CSMF_Pos) /*!< 0x00000008 */
  16841. #define QUADSPI_FCR_CSMF QUADSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */
  16842. #define QUADSPI_FCR_CTOF_Pos (4U)
  16843. #define QUADSPI_FCR_CTOF_Msk (0x1U << QUADSPI_FCR_CTOF_Pos) /*!< 0x00000010 */
  16844. #define QUADSPI_FCR_CTOF QUADSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */
  16845. /****************** Bit definition for QUADSPI_DLR register ******************/
  16846. #define QUADSPI_DLR_DL_Pos (0U)
  16847. #define QUADSPI_DLR_DL_Msk (0xFFFFFFFFU << QUADSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */
  16848. #define QUADSPI_DLR_DL QUADSPI_DLR_DL_Msk /*!< DL[31:0]: Data Length */
  16849. /****************** Bit definition for QUADSPI_CCR register ******************/
  16850. #define QUADSPI_CCR_INSTRUCTION_Pos (0U)
  16851. #define QUADSPI_CCR_INSTRUCTION_Msk (0xFFU << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x000000FF */
  16852. #define QUADSPI_CCR_INSTRUCTION QUADSPI_CCR_INSTRUCTION_Msk /*!< INSTRUCTION[7:0]: Instruction */
  16853. #define QUADSPI_CCR_INSTRUCTION_0 (0x01U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000001 */
  16854. #define QUADSPI_CCR_INSTRUCTION_1 (0x02U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000002 */
  16855. #define QUADSPI_CCR_INSTRUCTION_2 (0x04U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000004 */
  16856. #define QUADSPI_CCR_INSTRUCTION_3 (0x08U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000008 */
  16857. #define QUADSPI_CCR_INSTRUCTION_4 (0x10U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000010 */
  16858. #define QUADSPI_CCR_INSTRUCTION_5 (0x20U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000020 */
  16859. #define QUADSPI_CCR_INSTRUCTION_6 (0x40U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000040 */
  16860. #define QUADSPI_CCR_INSTRUCTION_7 (0x80U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000080 */
  16861. #define QUADSPI_CCR_IMODE_Pos (8U)
  16862. #define QUADSPI_CCR_IMODE_Msk (0x3U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000300 */
  16863. #define QUADSPI_CCR_IMODE QUADSPI_CCR_IMODE_Msk /*!< IMODE[1:0]: Instruction Mode */
  16864. #define QUADSPI_CCR_IMODE_0 (0x1U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000100 */
  16865. #define QUADSPI_CCR_IMODE_1 (0x2U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000200 */
  16866. #define QUADSPI_CCR_ADMODE_Pos (10U)
  16867. #define QUADSPI_CCR_ADMODE_Msk (0x3U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000C00 */
  16868. #define QUADSPI_CCR_ADMODE QUADSPI_CCR_ADMODE_Msk /*!< ADMODE[1:0]: Address Mode */
  16869. #define QUADSPI_CCR_ADMODE_0 (0x1U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */
  16870. #define QUADSPI_CCR_ADMODE_1 (0x2U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000800 */
  16871. #define QUADSPI_CCR_ADSIZE_Pos (12U)
  16872. #define QUADSPI_CCR_ADSIZE_Msk (0x3U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */
  16873. #define QUADSPI_CCR_ADSIZE QUADSPI_CCR_ADSIZE_Msk /*!< ADSIZE[1:0]: Address Size */
  16874. #define QUADSPI_CCR_ADSIZE_0 (0x1U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */
  16875. #define QUADSPI_CCR_ADSIZE_1 (0x2U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */
  16876. #define QUADSPI_CCR_ABMODE_Pos (14U)
  16877. #define QUADSPI_CCR_ABMODE_Msk (0x3U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x0000C000 */
  16878. #define QUADSPI_CCR_ABMODE QUADSPI_CCR_ABMODE_Msk /*!< ABMODE[1:0]: Alternate Bytes Mode */
  16879. #define QUADSPI_CCR_ABMODE_0 (0x1U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00004000 */
  16880. #define QUADSPI_CCR_ABMODE_1 (0x2U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00008000 */
  16881. #define QUADSPI_CCR_ABSIZE_Pos (16U)
  16882. #define QUADSPI_CCR_ABSIZE_Msk (0x3U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00030000 */
  16883. #define QUADSPI_CCR_ABSIZE QUADSPI_CCR_ABSIZE_Msk /*!< ABSIZE[1:0]: Instruction Mode */
  16884. #define QUADSPI_CCR_ABSIZE_0 (0x1U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00010000 */
  16885. #define QUADSPI_CCR_ABSIZE_1 (0x2U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00020000 */
  16886. #define QUADSPI_CCR_DCYC_Pos (18U)
  16887. #define QUADSPI_CCR_DCYC_Msk (0x1FU << QUADSPI_CCR_DCYC_Pos) /*!< 0x007C0000 */
  16888. #define QUADSPI_CCR_DCYC QUADSPI_CCR_DCYC_Msk /*!< DCYC[4:0]: Dummy Cycles */
  16889. #define QUADSPI_CCR_DCYC_0 (0x01U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00040000 */
  16890. #define QUADSPI_CCR_DCYC_1 (0x02U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00080000 */
  16891. #define QUADSPI_CCR_DCYC_2 (0x04U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00100000 */
  16892. #define QUADSPI_CCR_DCYC_3 (0x08U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00200000 */
  16893. #define QUADSPI_CCR_DCYC_4 (0x10U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00400000 */
  16894. #define QUADSPI_CCR_DMODE_Pos (24U)
  16895. #define QUADSPI_CCR_DMODE_Msk (0x3U << QUADSPI_CCR_DMODE_Pos) /*!< 0x03000000 */
  16896. #define QUADSPI_CCR_DMODE QUADSPI_CCR_DMODE_Msk /*!< DMODE[1:0]: Data Mode */
  16897. #define QUADSPI_CCR_DMODE_0 (0x1U << QUADSPI_CCR_DMODE_Pos) /*!< 0x01000000 */
  16898. #define QUADSPI_CCR_DMODE_1 (0x2U << QUADSPI_CCR_DMODE_Pos) /*!< 0x02000000 */
  16899. #define QUADSPI_CCR_FMODE_Pos (26U)
  16900. #define QUADSPI_CCR_FMODE_Msk (0x3U << QUADSPI_CCR_FMODE_Pos) /*!< 0x0C000000 */
  16901. #define QUADSPI_CCR_FMODE QUADSPI_CCR_FMODE_Msk /*!< FMODE[1:0]: Functional Mode */
  16902. #define QUADSPI_CCR_FMODE_0 (0x1U << QUADSPI_CCR_FMODE_Pos) /*!< 0x04000000 */
  16903. #define QUADSPI_CCR_FMODE_1 (0x2U << QUADSPI_CCR_FMODE_Pos) /*!< 0x08000000 */
  16904. #define QUADSPI_CCR_SIOO_Pos (28U)
  16905. #define QUADSPI_CCR_SIOO_Msk (0x1U << QUADSPI_CCR_SIOO_Pos) /*!< 0x10000000 */
  16906. #define QUADSPI_CCR_SIOO QUADSPI_CCR_SIOO_Msk /*!< SIOO: Send Instruction Only Once Mode */
  16907. #define QUADSPI_CCR_DHHC_Pos (30U)
  16908. #define QUADSPI_CCR_DHHC_Msk (0x1U << QUADSPI_CCR_DHHC_Pos) /*!< 0x40000000 */
  16909. #define QUADSPI_CCR_DHHC QUADSPI_CCR_DHHC_Msk /*!< DHHC: DDR hold half cycle */
  16910. #define QUADSPI_CCR_DDRM_Pos (31U)
  16911. #define QUADSPI_CCR_DDRM_Msk (0x1U << QUADSPI_CCR_DDRM_Pos) /*!< 0x80000000 */
  16912. #define QUADSPI_CCR_DDRM QUADSPI_CCR_DDRM_Msk /*!< DDRM: Double Data Rate Mode */
  16913. /****************** Bit definition for QUADSPI_AR register *******************/
  16914. #define QUADSPI_AR_ADDRESS_Pos (0U)
  16915. #define QUADSPI_AR_ADDRESS_Msk (0xFFFFFFFFU << QUADSPI_AR_ADDRESS_Pos) /*!< 0xFFFFFFFF */
  16916. #define QUADSPI_AR_ADDRESS QUADSPI_AR_ADDRESS_Msk /*!< ADDRESS[31:0]: Address */
  16917. /****************** Bit definition for QUADSPI_ABR register ******************/
  16918. #define QUADSPI_ABR_ALTERNATE_Pos (0U)
  16919. #define QUADSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFU << QUADSPI_ABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
  16920. #define QUADSPI_ABR_ALTERNATE QUADSPI_ABR_ALTERNATE_Msk /*!< ALTERNATE[31:0]: Alternate Bytes */
  16921. /****************** Bit definition for QUADSPI_DR register *******************/
  16922. #define QUADSPI_DR_DATA_Pos (0U)
  16923. #define QUADSPI_DR_DATA_Msk (0xFFFFFFFFU << QUADSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */
  16924. #define QUADSPI_DR_DATA QUADSPI_DR_DATA_Msk /*!< DATA[31:0]: Data */
  16925. /****************** Bit definition for QUADSPI_PSMKR register ****************/
  16926. #define QUADSPI_PSMKR_MASK_Pos (0U)
  16927. #define QUADSPI_PSMKR_MASK_Msk (0xFFFFFFFFU << QUADSPI_PSMKR_MASK_Pos) /*!< 0xFFFFFFFF */
  16928. #define QUADSPI_PSMKR_MASK QUADSPI_PSMKR_MASK_Msk /*!< MASK[31:0]: Status Mask */
  16929. /****************** Bit definition for QUADSPI_PSMAR register ****************/
  16930. #define QUADSPI_PSMAR_MATCH_Pos (0U)
  16931. #define QUADSPI_PSMAR_MATCH_Msk (0xFFFFFFFFU << QUADSPI_PSMAR_MATCH_Pos) /*!< 0xFFFFFFFF */
  16932. #define QUADSPI_PSMAR_MATCH QUADSPI_PSMAR_MATCH_Msk /*!< MATCH[31:0]: Status Match */
  16933. /****************** Bit definition for QUADSPI_PIR register *****************/
  16934. #define QUADSPI_PIR_INTERVAL_Pos (0U)
  16935. #define QUADSPI_PIR_INTERVAL_Msk (0xFFFFU << QUADSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */
  16936. #define QUADSPI_PIR_INTERVAL QUADSPI_PIR_INTERVAL_Msk /*!< INTERVAL[15:0]: Polling Interval */
  16937. /****************** Bit definition for QUADSPI_LPTR register *****************/
  16938. #define QUADSPI_LPTR_TIMEOUT_Pos (0U)
  16939. #define QUADSPI_LPTR_TIMEOUT_Msk (0xFFFFU << QUADSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */
  16940. #define QUADSPI_LPTR_TIMEOUT QUADSPI_LPTR_TIMEOUT_Msk /*!< TIMEOUT[15:0]: Timeout period */
  16941. /******************************************************************************/
  16942. /* */
  16943. /* SYSCFG */
  16944. /* */
  16945. /******************************************************************************/
  16946. /****************** Bit definition for SYSCFG_PMCR register ******************/
  16947. #define SYSCFG_PMCR_I2C1_FMP_Pos (0U)
  16948. #define SYSCFG_PMCR_I2C1_FMP_Msk (0x1U << SYSCFG_PMCR_I2C1_FMP_Pos) /*!< 0x00000001 */
  16949. #define SYSCFG_PMCR_I2C1_FMP SYSCFG_PMCR_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  16950. #define SYSCFG_PMCR_I2C2_FMP_Pos (1U)
  16951. #define SYSCFG_PMCR_I2C2_FMP_Msk (0x1U << SYSCFG_PMCR_I2C2_FMP_Pos) /*!< 0x00000002 */
  16952. #define SYSCFG_PMCR_I2C2_FMP SYSCFG_PMCR_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  16953. #define SYSCFG_PMCR_I2C3_FMP_Pos (2U)
  16954. #define SYSCFG_PMCR_I2C3_FMP_Msk (0x1U << SYSCFG_PMCR_I2C3_FMP_Pos) /*!< 0x00000004 */
  16955. #define SYSCFG_PMCR_I2C3_FMP SYSCFG_PMCR_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */
  16956. #define SYSCFG_PMCR_I2C4_FMP_Pos (3U)
  16957. #define SYSCFG_PMCR_I2C4_FMP_Msk (0x1U << SYSCFG_PMCR_I2C4_FMP_Pos) /*!< 0x00000008 */
  16958. #define SYSCFG_PMCR_I2C4_FMP SYSCFG_PMCR_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */
  16959. #define SYSCFG_PMCR_I2C_PB6_FMP_Pos (4U)
  16960. #define SYSCFG_PMCR_I2C_PB6_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB6_FMP_Pos) /*!< 0x00000010 */
  16961. #define SYSCFG_PMCR_I2C_PB6_FMP SYSCFG_PMCR_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  16962. #define SYSCFG_PMCR_I2C_PB7_FMP_Pos (5U)
  16963. #define SYSCFG_PMCR_I2C_PB7_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB7_FMP_Pos) /*!< 0x00000020 */
  16964. #define SYSCFG_PMCR_I2C_PB7_FMP SYSCFG_PMCR_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  16965. #define SYSCFG_PMCR_I2C_PB8_FMP_Pos (6U)
  16966. #define SYSCFG_PMCR_I2C_PB8_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB8_FMP_Pos) /*!< 0x00000040 */
  16967. #define SYSCFG_PMCR_I2C_PB8_FMP SYSCFG_PMCR_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  16968. #define SYSCFG_PMCR_I2C_PB9_FMP_Pos (7U)
  16969. #define SYSCFG_PMCR_I2C_PB9_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB9_FMP_Pos) /*!< 0x00000080 */
  16970. #define SYSCFG_PMCR_I2C_PB9_FMP SYSCFG_PMCR_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  16971. #define SYSCFG_PMCR_BOOSTEN_Pos (8U)
  16972. #define SYSCFG_PMCR_BOOSTEN_Msk (0x1U << SYSCFG_PMCR_BOOSTEN_Pos) /*!< 0x00000100 */
  16973. #define SYSCFG_PMCR_BOOSTEN SYSCFG_PMCR_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */
  16974. #define SYCFG_PMCR_EPIS_SEL_Pos (21U)
  16975. #define SYCFG_PMCR_EPIS_SEL_Msk (0x7U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00E00000 */
  16976. #define SYCFG_PMCR_EPIS_SEL SYCFG_PMCR_EPIS_SEL_Msk /*!< Ethernet PHY Interface Selection */
  16977. #define SYCFG_PMCR_EPIS_SEL_0 (0x1U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00200000 */
  16978. #define SYCFG_PMCR_EPIS_SEL_1 (0x2U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00400000 */
  16979. #define SYSCFG_PMCR_EPIS_SEL_2 ((uint32_t)0x00800000) /*!< Bit 2 */
  16980. #define SYSCFG_PMCR_PA0SO_Pos (24U)
  16981. #define SYSCFG_PMCR_PA0SO_Msk (0x1U << SYSCFG_PMCR_PA0SO_Pos) /*!< 0x01000000 */
  16982. #define SYSCFG_PMCR_PA0SO SYSCFG_PMCR_PA0SO_Msk /*!< PA0 Switch Open */
  16983. #define SYSCFG_PMCR_PA1SO_Pos (25U)
  16984. #define SYSCFG_PMCR_PA1SO_Msk (0x1U << SYSCFG_PMCR_PA1SO_Pos) /*!< 0x02000000 */
  16985. #define SYSCFG_PMCR_PA1SO SYSCFG_PMCR_PA1SO_Msk /*!< PA1 Switch Open */
  16986. #define SYSCFG_PMCR_PC2SO_Pos (26U)
  16987. #define SYSCFG_PMCR_PC2SO_Msk (0x1U << SYSCFG_PMCR_PC2SO_Pos) /*!< 0x04000000 */
  16988. #define SYSCFG_PMCR_PC2SO SYSCFG_PMCR_PC2SO_Msk /*!< PC2 Switch Open */
  16989. #define SYSCFG_PMCR_PC3SO_Pos (27U)
  16990. #define SYSCFG_PMCR_PC3SO_Msk (0x1U << SYSCFG_PMCR_PC3SO_Pos) /*!< 0x08000000 */
  16991. #define SYSCFG_PMCR_PC3SO SYSCFG_PMCR_PC3SO_Msk /*!< PC3 Switch Open */
  16992. /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
  16993. #define SYSCFG_EXTICR1_EXTI0 ((uint16_t)0x0007) /*!<EXTI 0 configuration */
  16994. #define SYSCFG_EXTICR1_EXTI1 ((uint16_t)0x0070) /*!<EXTI 1 configuration */
  16995. #define SYSCFG_EXTICR1_EXTI2 ((uint16_t)0x0700) /*!<EXTI 2 configuration */
  16996. #define SYSCFG_EXTICR1_EXTI3 ((uint16_t)0x7000) /*!<EXTI 3 configuration */
  16997. /**
  16998. * @brief EXTI0 configuration
  16999. */
  17000. #define SYSCFG_EXTICR1_EXTI0_PA ((uint16_t)0x0000) /*!<PA[0] pin */
  17001. #define SYSCFG_EXTICR1_EXTI0_PB ((uint16_t)0x0001) /*!<PB[0] pin */
  17002. #define SYSCFG_EXTICR1_EXTI0_PC ((uint16_t)0x0002) /*!<PC[0] pin */
  17003. #define SYSCFG_EXTICR1_EXTI0_PD ((uint16_t)0x0003) /*!<PD[0] pin */
  17004. #define SYSCFG_EXTICR1_EXTI0_PE ((uint16_t)0x0004) /*!<PE[0] pin */
  17005. #define SYSCFG_EXTICR1_EXTI0_PF ((uint16_t)0x0005) /*!<PF[0] pin */
  17006. #define SYSCFG_EXTICR1_EXTI0_PG ((uint16_t)0x0006) /*!<PG[0] pin */
  17007. #define SYSCFG_EXTICR1_EXTI0_PH ((uint16_t)0x0007) /*!<PH[0] pin */
  17008. #define SYSCFG_EXTICR1_EXTI0_PI ((uint16_t)0x0008) /*!<PI[0] pin */
  17009. #define SYSCFG_EXTICR1_EXTI0_PJ ((uint16_t)0x0009) /*!<PJ[0] pin */
  17010. #define SYSCFG_EXTICR1_EXTI0_PK ((uint16_t)0x000A) /*!<PK[0] pin */
  17011. /**
  17012. * @brief EXTI1 configuration
  17013. */
  17014. #define SYSCFG_EXTICR1_EXTI1_PA ((uint16_t)0x0000) /*!<PA[1] pin */
  17015. #define SYSCFG_EXTICR1_EXTI1_PB ((uint16_t)0x0010) /*!<PB[1] pin */
  17016. #define SYSCFG_EXTICR1_EXTI1_PC ((uint16_t)0x0020) /*!<PC[1] pin */
  17017. #define SYSCFG_EXTICR1_EXTI1_PD ((uint16_t)0x0030) /*!<PD[1] pin */
  17018. #define SYSCFG_EXTICR1_EXTI1_PE ((uint16_t)0x0040) /*!<PE[1] pin */
  17019. #define SYSCFG_EXTICR1_EXTI1_PF ((uint16_t)0x0050) /*!<PF[1] pin */
  17020. #define SYSCFG_EXTICR1_EXTI1_PG ((uint16_t)0x0060) /*!<PG[1] pin */
  17021. #define SYSCFG_EXTICR1_EXTI1_PH ((uint16_t)0x0070) /*!<PH[1] pin */
  17022. #define SYSCFG_EXTICR1_EXTI1_PI ((uint16_t)0x0080) /*!<PI[1] pin */
  17023. #define SYSCFG_EXTICR1_EXTI1_PJ ((uint16_t)0x0090) /*!<PJ[1] pin */
  17024. #define SYSCFG_EXTICR1_EXTI1_PK ((uint16_t)0x00A0) /*!<PK[1] pin */
  17025. /**
  17026. * @brief EXTI2 configuration
  17027. */
  17028. #define SYSCFG_EXTICR1_EXTI2_PA ((uint16_t)0x0000) /*!<PA[2] pin */
  17029. #define SYSCFG_EXTICR1_EXTI2_PB ((uint16_t)0x0100) /*!<PB[2] pin */
  17030. #define SYSCFG_EXTICR1_EXTI2_PC ((uint16_t)0x0200) /*!<PC[2] pin */
  17031. #define SYSCFG_EXTICR1_EXTI2_PD ((uint16_t)0x0300) /*!<PD[2] pin */
  17032. #define SYSCFG_EXTICR1_EXTI2_PE ((uint16_t)0x0400) /*!<PE[2] pin */
  17033. #define SYSCFG_EXTICR1_EXTI2_PF ((uint16_t)0x0500) /*!<PF[2] pin */
  17034. #define SYSCFG_EXTICR1_EXTI2_PG ((uint16_t)0x0600) /*!<PG[2] pin */
  17035. #define SYSCFG_EXTICR1_EXTI2_PH ((uint16_t)0x0700) /*!<PH[2] pin */
  17036. #define SYSCFG_EXTICR1_EXTI2_PI ((uint16_t)0x0800) /*!<PI[2] pin */
  17037. #define SYSCFG_EXTICR1_EXTI2_PJ ((uint16_t)0x0900) /*!<PJ[2] pin */
  17038. #define SYSCFG_EXTICR1_EXTI2_PK ((uint16_t)0x0A00) /*!<PK[2] pin */
  17039. /**
  17040. * @brief EXTI3 configuration
  17041. */
  17042. #define SYSCFG_EXTICR1_EXTI3_PA ((uint16_t)0x0000) /*!<PA[3] pin */
  17043. #define SYSCFG_EXTICR1_EXTI3_PB ((uint16_t)0x1000) /*!<PB[3] pin */
  17044. #define SYSCFG_EXTICR1_EXTI3_PC ((uint16_t)0x2000) /*!<PC[3] pin */
  17045. #define SYSCFG_EXTICR1_EXTI3_PD ((uint16_t)0x3000) /*!<PD[3] pin */
  17046. #define SYSCFG_EXTICR1_EXTI3_PE ((uint16_t)0x4000) /*!<PE[3] pin */
  17047. #define SYSCFG_EXTICR1_EXTI3_PF ((uint16_t)0x5000) /*!<PF[3] pin */
  17048. #define SYSCFG_EXTICR1_EXTI3_PG ((uint16_t)0x6000) /*!<PG[3] pin */
  17049. #define SYSCFG_EXTICR1_EXTI3_PH ((uint16_t)0x7000) /*!<PH[3] pin */
  17050. #define SYSCFG_EXTICR1_EXTI3_PI ((uint16_t)0x8000) /*!<PI[3] pin */
  17051. #define SYSCFG_EXTICR1_EXTI3_PJ ((uint16_t)0x9000) /*!<PJ[3] pin */
  17052. #define SYSCFG_EXTICR1_EXTI3_PK ((uint16_t)0xA000) /*!<PK[3] pin */
  17053. /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
  17054. #define SYSCFG_EXTICR2_EXTI4 ((uint16_t)0x0007) /*!<EXTI 4 configuration */
  17055. #define SYSCFG_EXTICR2_EXTI5 ((uint16_t)0x0070) /*!<EXTI 5 configuration */
  17056. #define SYSCFG_EXTICR2_EXTI6 ((uint16_t)0x0700) /*!<EXTI 6 configuration */
  17057. #define SYSCFG_EXTICR2_EXTI7 ((uint16_t)0x7000) /*!<EXTI 7 configuration */
  17058. /**
  17059. * @brief EXTI4 configuration
  17060. */
  17061. #define SYSCFG_EXTICR2_EXTI4_PA ((uint16_t)0x0000) /*!<PA[4] pin */
  17062. #define SYSCFG_EXTICR2_EXTI4_PB ((uint16_t)0x0001) /*!<PB[4] pin */
  17063. #define SYSCFG_EXTICR2_EXTI4_PC ((uint16_t)0x0002) /*!<PC[4] pin */
  17064. #define SYSCFG_EXTICR2_EXTI4_PD ((uint16_t)0x0003) /*!<PD[4] pin */
  17065. #define SYSCFG_EXTICR2_EXTI4_PE ((uint16_t)0x0004) /*!<PE[4] pin */
  17066. #define SYSCFG_EXTICR2_EXTI4_PF ((uint16_t)0x0005) /*!<PF[4] pin */
  17067. #define SYSCFG_EXTICR2_EXTI4_PG ((uint16_t)0x0006) /*!<PG[4] pin */
  17068. #define SYSCFG_EXTICR2_EXTI4_PH ((uint16_t)0x0007) /*!<PH[4] pin */
  17069. #define SYSCFG_EXTICR2_EXTI4_PI ((uint16_t)0x0008) /*!<PI[4] pin */
  17070. #define SYSCFG_EXTICR2_EXTI4_PJ ((uint16_t)0x0009) /*!<PJ[4] pin */
  17071. #define SYSCFG_EXTICR2_EXTI4_PK ((uint16_t)0x000A) /*!<PK[4] pin */
  17072. /**
  17073. * @brief EXTI5 configuration
  17074. */
  17075. #define SYSCFG_EXTICR2_EXTI5_PA ((uint16_t)0x0000) /*!<PA[5] pin */
  17076. #define SYSCFG_EXTICR2_EXTI5_PB ((uint16_t)0x0010) /*!<PB[5] pin */
  17077. #define SYSCFG_EXTICR2_EXTI5_PC ((uint16_t)0x0020) /*!<PC[5] pin */
  17078. #define SYSCFG_EXTICR2_EXTI5_PD ((uint16_t)0x0030) /*!<PD[5] pin */
  17079. #define SYSCFG_EXTICR2_EXTI5_PE ((uint16_t)0x0040) /*!<PE[5] pin */
  17080. #define SYSCFG_EXTICR2_EXTI5_PF ((uint16_t)0x0050) /*!<PF[5] pin */
  17081. #define SYSCFG_EXTICR2_EXTI5_PG ((uint16_t)0x0060) /*!<PG[5] pin */
  17082. #define SYSCFG_EXTICR2_EXTI5_PH ((uint16_t)0x0070) /*!<PH[5] pin */
  17083. #define SYSCFG_EXTICR2_EXTI5_PI ((uint16_t)0x0080) /*!<PI[5] pin */
  17084. #define SYSCFG_EXTICR2_EXTI5_PJ ((uint16_t)0x0090) /*!<PJ[5] pin */
  17085. #define SYSCFG_EXTICR2_EXTI5_PK ((uint16_t)0x00A0) /*!<PK[5] pin */
  17086. /**
  17087. * @brief EXTI6 configuration
  17088. */
  17089. #define SYSCFG_EXTICR2_EXTI6_PA ((uint16_t)0x0000) /*!<PA[6] pin */
  17090. #define SYSCFG_EXTICR2_EXTI6_PB ((uint16_t)0x0100) /*!<PB[6] pin */
  17091. #define SYSCFG_EXTICR2_EXTI6_PC ((uint16_t)0x0200) /*!<PC[6] pin */
  17092. #define SYSCFG_EXTICR2_EXTI6_PD ((uint16_t)0x0300) /*!<PD[6] pin */
  17093. #define SYSCFG_EXTICR2_EXTI6_PE ((uint16_t)0x0400) /*!<PE[6] pin */
  17094. #define SYSCFG_EXTICR2_EXTI6_PF ((uint16_t)0x0500) /*!<PF[6] pin */
  17095. #define SYSCFG_EXTICR2_EXTI6_PG ((uint16_t)0x0600) /*!<PG[6] pin */
  17096. #define SYSCFG_EXTICR2_EXTI6_PH ((uint16_t)0x0700) /*!<PH[6] pin */
  17097. #define SYSCFG_EXTICR2_EXTI6_PI ((uint16_t)0x0800) /*!<PI[6] pin */
  17098. #define SYSCFG_EXTICR2_EXTI6_PJ ((uint16_t)0x0900) /*!<PJ[6] pin */
  17099. #define SYSCFG_EXTICR2_EXTI6_PK ((uint16_t)0x0A00) /*!<PK[6] pin */
  17100. /**
  17101. * @brief EXTI7 configuration
  17102. */
  17103. #define SYSCFG_EXTICR2_EXTI7_PA ((uint16_t)0x0000) /*!<PA[7] pin */
  17104. #define SYSCFG_EXTICR2_EXTI7_PB ((uint16_t)0x1000) /*!<PB[7] pin */
  17105. #define SYSCFG_EXTICR2_EXTI7_PC ((uint16_t)0x2000) /*!<PC[7] pin */
  17106. #define SYSCFG_EXTICR2_EXTI7_PD ((uint16_t)0x3000) /*!<PD[7] pin */
  17107. #define SYSCFG_EXTICR2_EXTI7_PE ((uint16_t)0x4000) /*!<PE[7] pin */
  17108. #define SYSCFG_EXTICR2_EXTI7_PF ((uint16_t)0x5000) /*!<PF[7] pin */
  17109. #define SYSCFG_EXTICR2_EXTI7_PG ((uint16_t)0x6000) /*!<PG[7] pin */
  17110. #define SYSCFG_EXTICR2_EXTI7_PH ((uint16_t)0x7000) /*!<PH[7] pin */
  17111. #define SYSCFG_EXTICR2_EXTI7_PI ((uint16_t)0x8000) /*!<PI[7] pin */
  17112. #define SYSCFG_EXTICR2_EXTI7_PJ ((uint16_t)0x9000) /*!<PJ[7] pin */
  17113. #define SYSCFG_EXTICR2_EXTI7_PK ((uint16_t)0xA000) /*!<PK[7] pin */
  17114. /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
  17115. #define SYSCFG_EXTICR3_EXTI8 ((uint16_t)0x0007) /*!<EXTI 8 configuration */
  17116. #define SYSCFG_EXTICR3_EXTI9 ((uint16_t)0x0070) /*!<EXTI 9 configuration */
  17117. #define SYSCFG_EXTICR3_EXTI10 ((uint16_t)0x0700) /*!<EXTI 10 configuration */
  17118. #define SYSCFG_EXTICR3_EXTI11 ((uint16_t)0x7000) /*!<EXTI 11 configuration */
  17119. /**
  17120. * @brief EXTI8 configuration
  17121. */
  17122. #define SYSCFG_EXTICR3_EXTI8_PA ((uint16_t)0x0000) /*!<PA[8] pin */
  17123. #define SYSCFG_EXTICR3_EXTI8_PB ((uint16_t)0x0001) /*!<PB[8] pin */
  17124. #define SYSCFG_EXTICR3_EXTI8_PC ((uint16_t)0x0002) /*!<PC[8] pin */
  17125. #define SYSCFG_EXTICR3_EXTI8_PD ((uint16_t)0x0003) /*!<PD[8] pin */
  17126. #define SYSCFG_EXTICR3_EXTI8_PE ((uint16_t)0x0004) /*!<PE[8] pin */
  17127. #define SYSCFG_EXTICR3_EXTI8_PF ((uint16_t)0x0005) /*!<PF[8] pin */
  17128. #define SYSCFG_EXTICR3_EXTI8_PG ((uint16_t)0x0006) /*!<PG[8] pin */
  17129. #define SYSCFG_EXTICR3_EXTI8_PH ((uint16_t)0x0007) /*!<PH[8] pin */
  17130. #define SYSCFG_EXTICR3_EXTI8_PI ((uint16_t)0x0008) /*!<PI[8] pin */
  17131. #define SYSCFG_EXTICR3_EXTI8_PJ ((uint16_t)0x0009) /*!<PJ[8] pin */
  17132. /**
  17133. * @brief EXTI9 configuration
  17134. */
  17135. #define SYSCFG_EXTICR3_EXTI9_PA ((uint16_t)0x0000) /*!<PA[9] pin */
  17136. #define SYSCFG_EXTICR3_EXTI9_PB ((uint16_t)0x0010) /*!<PB[9] pin */
  17137. #define SYSCFG_EXTICR3_EXTI9_PC ((uint16_t)0x0020) /*!<PC[9] pin */
  17138. #define SYSCFG_EXTICR3_EXTI9_PD ((uint16_t)0x0030) /*!<PD[9] pin */
  17139. #define SYSCFG_EXTICR3_EXTI9_PE ((uint16_t)0x0040) /*!<PE[9] pin */
  17140. #define SYSCFG_EXTICR3_EXTI9_PF ((uint16_t)0x0050) /*!<PF[9] pin */
  17141. #define SYSCFG_EXTICR3_EXTI9_PG ((uint16_t)0x0060) /*!<PG[9] pin */
  17142. #define SYSCFG_EXTICR3_EXTI9_PH ((uint16_t)0x0070) /*!<PH[9] pin */
  17143. #define SYSCFG_EXTICR3_EXTI9_PI ((uint16_t)0x0080) /*!<PI[9] pin */
  17144. #define SYSCFG_EXTICR3_EXTI9_PJ ((uint16_t)0x0090) /*!<PJ[9] pin */
  17145. /**
  17146. * @brief EXTI10 configuration
  17147. */
  17148. #define SYSCFG_EXTICR3_EXTI10_PA ((uint16_t)0x0000) /*!<PA[10] pin */
  17149. #define SYSCFG_EXTICR3_EXTI10_PB ((uint16_t)0x0100) /*!<PB[10] pin */
  17150. #define SYSCFG_EXTICR3_EXTI10_PC ((uint16_t)0x0200) /*!<PC[10] pin */
  17151. #define SYSCFG_EXTICR3_EXTI10_PD ((uint16_t)0x0300) /*!<PD[10] pin */
  17152. #define SYSCFG_EXTICR3_EXTI10_PE ((uint16_t)0x0400) /*!<PE[10] pin */
  17153. #define SYSCFG_EXTICR3_EXTI10_PF ((uint16_t)0x0500) /*!<PF[10] pin */
  17154. #define SYSCFG_EXTICR3_EXTI10_PG ((uint16_t)0x0600) /*!<PG[10] pin */
  17155. #define SYSCFG_EXTICR3_EXTI10_PH ((uint16_t)0x0700) /*!<PH[10] pin */
  17156. #define SYSCFG_EXTICR3_EXTI10_PI ((uint16_t)0x0800) /*!<PI[10] pin */
  17157. #define SYSCFG_EXTICR3_EXTI10_PJ ((uint16_t)0x0900) /*!<PJ[10] pin */
  17158. /**
  17159. * @brief EXTI11 configuration
  17160. */
  17161. #define SYSCFG_EXTICR3_EXTI11_PA ((uint16_t)0x0000) /*!<PA[11] pin */
  17162. #define SYSCFG_EXTICR3_EXTI11_PB ((uint16_t)0x1000) /*!<PB[11] pin */
  17163. #define SYSCFG_EXTICR3_EXTI11_PC ((uint16_t)0x2000) /*!<PC[11] pin */
  17164. #define SYSCFG_EXTICR3_EXTI11_PD ((uint16_t)0x3000) /*!<PD[11] pin */
  17165. #define SYSCFG_EXTICR3_EXTI11_PE ((uint16_t)0x4000) /*!<PE[11] pin */
  17166. #define SYSCFG_EXTICR3_EXTI11_PF ((uint16_t)0x5000) /*!<PF[11] pin */
  17167. #define SYSCFG_EXTICR3_EXTI11_PG ((uint16_t)0x6000) /*!<PG[11] pin */
  17168. #define SYSCFG_EXTICR3_EXTI11_PH ((uint16_t)0x7000) /*!<PH[11] pin */
  17169. #define SYSCFG_EXTICR3_EXTI11_PI ((uint16_t)0x8000) /*!<PI[11] pin */
  17170. #define SYSCFG_EXTICR3_EXTI11_PJ ((uint16_t)0x9000) /*!<PJ[11] pin */
  17171. /***************** Bit definition for SYSCFG_EXTICR4 register ***************/
  17172. #define SYSCFG_EXTICR4_EXTI12 ((uint16_t)0x0007) /*!<EXTI 12 configuration */
  17173. #define SYSCFG_EXTICR4_EXTI13 ((uint16_t)0x0070) /*!<EXTI 13 configuration */
  17174. #define SYSCFG_EXTICR4_EXTI14 ((uint16_t)0x0700) /*!<EXTI 14 configuration */
  17175. #define SYSCFG_EXTICR4_EXTI15 ((uint16_t)0x7000) /*!<EXTI 15 configuration */
  17176. /**
  17177. * @brief EXTI12 configuration
  17178. */
  17179. #define SYSCFG_EXTICR4_EXTI12_PA ((uint16_t)0x0000) /*!<PA[12] pin */
  17180. #define SYSCFG_EXTICR4_EXTI12_PB ((uint16_t)0x0001) /*!<PB[12] pin */
  17181. #define SYSCFG_EXTICR4_EXTI12_PC ((uint16_t)0x0002) /*!<PC[12] pin */
  17182. #define SYSCFG_EXTICR4_EXTI12_PD ((uint16_t)0x0003) /*!<PD[12] pin */
  17183. #define SYSCFG_EXTICR4_EXTI12_PE ((uint16_t)0x0004) /*!<PE[12] pin */
  17184. #define SYSCFG_EXTICR4_EXTI12_PF ((uint16_t)0x0005) /*!<PF[12] pin */
  17185. #define SYSCFG_EXTICR4_EXTI12_PG ((uint16_t)0x0006) /*!<PG[12] pin */
  17186. #define SYSCFG_EXTICR4_EXTI12_PH ((uint16_t)0x0007) /*!<PH[12] pin */
  17187. #define SYSCFG_EXTICR4_EXTI12_PI ((uint16_t)0x0008) /*!<PI[12] pin */
  17188. #define SYSCFG_EXTICR4_EXTI12_PJ ((uint16_t)0x0009) /*!<PJ[12] pin */
  17189. /**
  17190. * @brief EXTI13 configuration
  17191. */
  17192. #define SYSCFG_EXTICR4_EXTI13_PA ((uint16_t)0x0000) /*!<PA[13] pin */
  17193. #define SYSCFG_EXTICR4_EXTI13_PB ((uint16_t)0x0010) /*!<PB[13] pin */
  17194. #define SYSCFG_EXTICR4_EXTI13_PC ((uint16_t)0x0020) /*!<PC[13] pin */
  17195. #define SYSCFG_EXTICR4_EXTI13_PD ((uint16_t)0x0030) /*!<PD[13] pin */
  17196. #define SYSCFG_EXTICR4_EXTI13_PE ((uint16_t)0x0040) /*!<PE[13] pin */
  17197. #define SYSCFG_EXTICR4_EXTI13_PF ((uint16_t)0x0050) /*!<PF[13] pin */
  17198. #define SYSCFG_EXTICR4_EXTI13_PG ((uint16_t)0x0060) /*!<PG[13] pin */
  17199. #define SYSCFG_EXTICR4_EXTI13_PH ((uint16_t)0x0070) /*!<PH[13] pin */
  17200. #define SYSCFG_EXTICR4_EXTI13_PI ((uint16_t)0x0080) /*!<PI[13] pin */
  17201. #define SYSCFG_EXTICR4_EXTI13_PJ ((uint16_t)0x0090) /*!<PJ[13] pin */
  17202. /**
  17203. * @brief EXTI14 configuration
  17204. */
  17205. #define SYSCFG_EXTICR4_EXTI14_PA ((uint16_t)0x0000) /*!<PA[14] pin */
  17206. #define SYSCFG_EXTICR4_EXTI14_PB ((uint16_t)0x0100) /*!<PB[14] pin */
  17207. #define SYSCFG_EXTICR4_EXTI14_PC ((uint16_t)0x0200) /*!<PC[14] pin */
  17208. #define SYSCFG_EXTICR4_EXTI14_PD ((uint16_t)0x0300) /*!<PD[14] pin */
  17209. #define SYSCFG_EXTICR4_EXTI14_PE ((uint16_t)0x0400) /*!<PE[14] pin */
  17210. #define SYSCFG_EXTICR4_EXTI14_PF ((uint16_t)0x0500) /*!<PF[14] pin */
  17211. #define SYSCFG_EXTICR4_EXTI14_PG ((uint16_t)0x0600) /*!<PG[14] pin */
  17212. #define SYSCFG_EXTICR4_EXTI14_PH ((uint16_t)0x0700) /*!<PH[14] pin */
  17213. #define SYSCFG_EXTICR4_EXTI14_PI ((uint16_t)0x0800) /*!<PI[14] pin */
  17214. #define SYSCFG_EXTICR4_EXTI14_PJ ((uint16_t)0x0900) /*!<PJ[14] pin */
  17215. /**
  17216. * @brief EXTI15 configuration
  17217. */
  17218. #define SYSCFG_EXTICR4_EXTI15_PA ((uint16_t)0x0000) /*!<PA[15] pin */
  17219. #define SYSCFG_EXTICR4_EXTI15_PB ((uint16_t)0x1000) /*!<PB[15] pin */
  17220. #define SYSCFG_EXTICR4_EXTI15_PC ((uint16_t)0x2000) /*!<PC[15] pin */
  17221. #define SYSCFG_EXTICR4_EXTI15_PD ((uint16_t)0x3000) /*!<PD[15] pin */
  17222. #define SYSCFG_EXTICR4_EXTI15_PE ((uint16_t)0x4000) /*!<PE[15] pin */
  17223. #define SYSCFG_EXTICR4_EXTI15_PF ((uint16_t)0x5000) /*!<PF[15] pin */
  17224. #define SYSCFG_EXTICR4_EXTI15_PG ((uint16_t)0x6000) /*!<PG[15] pin */
  17225. #define SYSCFG_EXTICR4_EXTI15_PH ((uint16_t)0x7000) /*!<PH[15] pin */
  17226. #define SYSCFG_EXTICR4_EXTI15_PI ((uint16_t)0x8000) /*!<PI[15] pin */
  17227. #define SYSCFG_EXTICR4_EXTI15_PJ ((uint16_t)0x9000) /*!<PJ[15] pin */
  17228. /****************** Bit definition for SYSCFG_CCCSR register ******************/
  17229. #define SYSCFG_CCCSR_EN_Pos (0U)
  17230. #define SYSCFG_CCCSR_EN_Msk (0x1U << SYSCFG_CCCSR_EN_Pos) /*!< 0x00000001 */
  17231. #define SYSCFG_CCCSR_EN SYSCFG_CCCSR_EN_Msk /*!< I/O compensation cell enable */
  17232. #define SYSCFG_CCCSR_CS_Pos (1U)
  17233. #define SYSCFG_CCCSR_CS_Msk (0x1U << SYSCFG_CCCSR_CS_Pos) /*!< 0x00000002 */
  17234. #define SYSCFG_CCCSR_CS SYSCFG_CCCSR_CS_Msk /*!< I/O compensation cell code selection */
  17235. #define SYSCFG_CCCSR_READY_Pos (8U)
  17236. #define SYSCFG_CCCSR_READY_Msk (0x1U << SYSCFG_CCCSR_READY_Pos) /*!< 0x00000100 */
  17237. #define SYSCFG_CCCSR_READY SYSCFG_CCCSR_READY_Msk /*!< I/O compensation cell ready flag */
  17238. #define SYSCFG_CCCSR_HSLV_Pos (16U)
  17239. #define SYSCFG_CCCSR_HSLV_Msk (0x1U << SYSCFG_CCCSR_HSLV_Pos) /*!< 0x00010000 */
  17240. #define SYSCFG_CCCSR_HSLV SYSCFG_CCCSR_HSLV_Msk /*!< High-speed at low-voltage */
  17241. /****************** Bit definition for SYSCFG_CCVR register *******************/
  17242. #define SYSCFG_CCVR_NCV_Pos (0U)
  17243. #define SYSCFG_CCVR_NCV_Msk (0xFU << SYSCFG_CCVR_NCV_Pos) /*!< 0x0000000F */
  17244. #define SYSCFG_CCVR_NCV SYSCFG_CCVR_NCV_Msk /*!< NMOS compensation value */
  17245. #define SYSCFG_CCVR_PCV_Pos (4U)
  17246. #define SYSCFG_CCVR_PCV_Msk (0xFU << SYSCFG_CCVR_PCV_Pos) /*!< 0x000000F0 */
  17247. #define SYSCFG_CCVR_PCV SYSCFG_CCVR_PCV_Msk /*!< PMOS compensation value */
  17248. /****************** Bit definition for SYSCFG_CCCR register *******************/
  17249. #define SYSCFG_CCCR_NCC_Pos (0U)
  17250. #define SYSCFG_CCCR_NCC_Msk (0xFU << SYSCFG_CCCR_NCC_Pos) /*!< 0x0000000F */
  17251. #define SYSCFG_CCCR_NCC SYSCFG_CCCR_NCC_Msk /*!< NMOS compensation code */
  17252. #define SYSCFG_CCCR_PCC_Pos (4U)
  17253. #define SYSCFG_CCCR_PCC_Msk (0xFU << SYSCFG_CCCR_PCC_Pos) /*!< 0x000000F0 */
  17254. #define SYSCFG_CCCR_PCC SYSCFG_CCCR_PCC_Msk /*!< PMOS compensation code */
  17255. /****************** Bit definition for SYSCFG_PKGR register *******************/
  17256. #define SYSCFG_PKGR_PKG_Pos (0U)
  17257. #define SYSCFG_PKGR_PKG_Msk (0xFU << SYSCFG_PKGR_PKG_Pos) /*!< 0x0000000F */
  17258. #define SYSCFG_PKGR_PKG SYSCFG_PKGR_PKG_Msk /*!< Package type */
  17259. /****************** Bit definition for SYSCFG_UR0 register *******************/
  17260. #define SYSCFG_UR0_BKS_Pos (0U)
  17261. #define SYSCFG_UR0_BKS_Msk (0x1U << SYSCFG_UR0_BKS_Pos) /*!< 0x00000001 */
  17262. #define SYSCFG_UR0_BKS SYSCFG_UR0_BKS_Msk /*!< Bank Swap */
  17263. #define SYSCFG_UR0_RDP_Pos (16U)
  17264. #define SYSCFG_UR0_RDP_Msk (0xFFU << SYSCFG_UR0_RDP_Pos) /*!< 0x00FF0000 */
  17265. #define SYSCFG_UR0_RDP SYSCFG_UR0_RDP_Msk /*!< Readout protection */
  17266. /****************** Bit definition for SYSCFG_UR2 register *******************/
  17267. #define SYSCFG_UR2_BORH_Pos (0U)
  17268. #define SYSCFG_UR2_BORH_Msk (0x3U << SYSCFG_UR2_BORH_Pos) /*!< 0x00000003 */
  17269. #define SYSCFG_UR2_BORH SYSCFG_UR2_BORH_Msk /*!< Brown Out Reset High level */
  17270. #define SYSCFG_UR2_BOOT_ADD0_Pos (16U)
  17271. #define SYSCFG_UR2_BOOT_ADD0_Msk (0xFFFFU << SYSCFG_UR2_BOOT_ADD0_Pos) /*!< 0xFFFF0000 */
  17272. #define SYSCFG_UR2_BOOT_ADD0 SYSCFG_UR2_BOOT_ADD0_Msk /*!< Core Boot Address 0 */
  17273. /****************** Bit definition for SYSCFG_UR3 register *******************/
  17274. #define SYSCFG_UR3_BOOT_ADD1_Pos (0U)
  17275. #define SYSCFG_UR3_BOOT_ADD1_Msk (0xFFFFU << SYSCFG_UR3_BOOT_ADD1_Pos) /*!< 0x0000FFFF */
  17276. #define SYSCFG_UR3_BOOT_ADD1 SYSCFG_UR3_BOOT_ADD1_Msk /*!< Core Boot Address 1 */
  17277. /****************** Bit definition for SYSCFG_UR4 register *******************/
  17278. #define SYSCFG_UR4_MEPAD_BANK1_Pos (16U)
  17279. #define SYSCFG_UR4_MEPAD_BANK1_Msk (0x1U << SYSCFG_UR4_MEPAD_BANK1_Pos) /*!< 0x00010000 */
  17280. #define SYSCFG_UR4_MEPAD_BANK1 SYSCFG_UR4_MEPAD_BANK1_Msk /*!< Mass Erase Protected Area Disabled for bank 1 */
  17281. /****************** Bit definition for SYSCFG_UR5 register *******************/
  17282. #define SYSCFG_UR5_MESAD_BANK1_Pos (0U)
  17283. #define SYSCFG_UR5_MESAD_BANK1_Msk (0x1U << SYSCFG_UR5_MESAD_BANK1_Pos) /*!< 0x00000001 */
  17284. #define SYSCFG_UR5_MESAD_BANK1 SYSCFG_UR5_MESAD_BANK1_Msk /*!< Mass erase secured area disabled for bank 1 */
  17285. #define SYSCFG_UR5_WRPN_BANK1_Pos (16U)
  17286. #define SYSCFG_UR5_WRPN_BANK1_Msk (0xFFU << SYSCFG_UR5_WRPN_BANK1_Pos) /*!< 0x00FF0000 */
  17287. #define SYSCFG_UR5_WRPN_BANK1 SYSCFG_UR5_WRPN_BANK1_Msk /*!< Write protection for flash bank 1 */
  17288. /****************** Bit definition for SYSCFG_UR6 register *******************/
  17289. #define SYSCFG_UR6_PABEG_BANK1_Pos (0U)
  17290. #define SYSCFG_UR6_PABEG_BANK1_Msk (0xFFFU << SYSCFG_UR6_PABEG_BANK1_Pos) /*!< 0x00000FFF */
  17291. #define SYSCFG_UR6_PABEG_BANK1 SYSCFG_UR6_PABEG_BANK1_Msk /*!< Protected area start address for bank 1 */
  17292. #define SYSCFG_UR6_PAEND_BANK1_Pos (16U)
  17293. #define SYSCFG_UR6_PAEND_BANK1_Msk (0xFFFU << SYSCFG_UR6_PAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17294. #define SYSCFG_UR6_PAEND_BANK1 SYSCFG_UR6_PAEND_BANK1_Msk /*!< Protected area end address for bank 1 */
  17295. /****************** Bit definition for SYSCFG_UR7 register *******************/
  17296. #define SYSCFG_UR7_SABEG_BANK1_Pos (0U)
  17297. #define SYSCFG_UR7_SABEG_BANK1_Msk (0xFFFU << SYSCFG_UR7_SABEG_BANK1_Pos) /*!< 0x00000FFF */
  17298. #define SYSCFG_UR7_SABEG_BANK1 SYSCFG_UR7_SABEG_BANK1_Msk /*!< Secured area start address for bank 1 */
  17299. #define SYSCFG_UR7_SAEND_BANK1_Pos (16U)
  17300. #define SYSCFG_UR7_SAEND_BANK1_Msk (0xFFFU << SYSCFG_UR7_SAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17301. #define SYSCFG_UR7_SAEND_BANK1 SYSCFG_UR7_SAEND_BANK1_Msk /*!< Secured area end address for bank 1 */
  17302. /****************** Bit definition for SYSCFG_UR8 register *******************/
  17303. #define SYSCFG_UR8_MEPAD_BANK2_Pos (0U)
  17304. #define SYSCFG_UR8_MEPAD_BANK2_Msk (0x1U << SYSCFG_UR8_MEPAD_BANK2_Pos) /*!< 0x00000001 */
  17305. #define SYSCFG_UR8_MEPAD_BANK2 SYSCFG_UR8_MEPAD_BANK2_Msk /*!< Mass erase Protected area disabled for bank 2 */
  17306. #define SYSCFG_UR8_MESAD_BANK2_Pos (16U)
  17307. #define SYSCFG_UR8_MESAD_BANK2_Msk (0x1U << SYSCFG_UR8_MESAD_BANK2_Pos) /*!< 0x00010000 */
  17308. #define SYSCFG_UR8_MESAD_BANK2 SYSCFG_UR8_MESAD_BANK2_Msk /*!< Mass Erase Secured Area Disabled for bank 2 */
  17309. /****************** Bit definition for SYSCFG_UR9 register *******************/
  17310. #define SYSCFG_UR9_WRPN_BANK2_Pos (0U)
  17311. #define SYSCFG_UR9_WRPN_BANK2_Msk (0xFFU << SYSCFG_UR9_WRPN_BANK2_Pos) /*!< 0x000000FF */
  17312. #define SYSCFG_UR9_WRPN_BANK2 SYSCFG_UR9_WRPN_BANK2_Msk /*!< Write protection for flash bank 2 */
  17313. #define SYSCFG_UR9_PABEG_BANK2_Pos (16U)
  17314. #define SYSCFG_UR9_PABEG_BANK2_Msk (0xFFFU << SYSCFG_UR9_PABEG_BANK2_Pos) /*!< 0x0FFF0000 */
  17315. #define SYSCFG_UR9_PABEG_BANK2 SYSCFG_UR9_PABEG_BANK2_Msk /*!< Protected area start address for bank 2 */
  17316. /****************** Bit definition for SYSCFG_UR10 register *******************/
  17317. #define SYSCFG_UR10_PAEND_BANK2_Pos (0U)
  17318. #define SYSCFG_UR10_PAEND_BANK2_Msk (0xFFFU << SYSCFG_UR10_PAEND_BANK2_Pos) /*!< 0x00000FFF */
  17319. #define SYSCFG_UR10_PAEND_BANK2 SYSCFG_UR10_PAEND_BANK2_Msk /*!< Protected area end address for bank 2 */
  17320. #define SYSCFG_UR10_SABEG_BANK2_Pos (16U)
  17321. #define SYSCFG_UR10_SABEG_BANK2_Msk (0xFFFU << SYSCFG_UR10_SABEG_BANK2_Pos) /*!< 0x0FFF0000 */
  17322. #define SYSCFG_UR10_SABEG_BANK2 SYSCFG_UR10_SABEG_BANK2_Msk /*!< Secured area start address for bank 2 */
  17323. /****************** Bit definition for SYSCFG_UR11 register *******************/
  17324. #define SYSCFG_UR11_SAEND_BANK2_Pos (0U)
  17325. #define SYSCFG_UR11_SAEND_BANK2_Msk (0xFFFU << SYSCFG_UR11_SAEND_BANK2_Pos) /*!< 0x00000FFF */
  17326. #define SYSCFG_UR11_SAEND_BANK2 SYSCFG_UR11_SAEND_BANK2_Msk /*!< Secured area end address for bank 2 */
  17327. #define SYSCFG_UR11_IWDG1M_Pos (16U)
  17328. #define SYSCFG_UR11_IWDG1M_Msk (0x1U << SYSCFG_UR11_IWDG1M_Pos) /*!< 0x00010000 */
  17329. #define SYSCFG_UR11_IWDG1M SYSCFG_UR11_IWDG1M_Msk /*!< Independent Watchdog 1 mode (SW or HW) */
  17330. /****************** Bit definition for SYSCFG_UR12 register *******************/
  17331. #define SYSCFG_UR12_SECURE_Pos (16U)
  17332. #define SYSCFG_UR12_SECURE_Msk (0x1U << SYSCFG_UR12_SECURE_Pos) /*!< 0x00010000 */
  17333. #define SYSCFG_UR12_SECURE SYSCFG_UR12_SECURE_Msk /*!< Secure mode status */
  17334. /****************** Bit definition for SYSCFG_UR13 register *******************/
  17335. #define SYSCFG_UR13_SDRS_Pos (0U)
  17336. #define SYSCFG_UR13_SDRS_Msk (0x3U << SYSCFG_UR13_SDRS_Pos) /*!< 0x00000003 */
  17337. #define SYSCFG_UR13_SDRS SYSCFG_UR13_SDRS_Msk /*!< Secured DTCM RAM Size */
  17338. #define SYSCFG_UR13_D1SBRST_Pos (16U)
  17339. #define SYSCFG_UR13_D1SBRST_Msk (0x1U << SYSCFG_UR13_D1SBRST_Pos) /*!< 0x00010000 */
  17340. #define SYSCFG_UR13_D1SBRST SYSCFG_UR13_D1SBRST_Msk /*!< D1 Standby reset */
  17341. /****************** Bit definition for SYSCFG_UR14 register *******************/
  17342. #define SYSCFG_UR14_D1STPRST_Pos (0U)
  17343. #define SYSCFG_UR14_D1STPRST_Msk (0x1U << SYSCFG_UR14_D1STPRST_Pos) /*!< 0x00000001 */
  17344. #define SYSCFG_UR14_D1STPRST SYSCFG_UR14_D1STPRST_Msk /*!< D1 Stop Reset */
  17345. /****************** Bit definition for SYSCFG_UR15 register *******************/
  17346. #define SYSCFG_UR15_FZIWDGSTB_Pos (16U)
  17347. #define SYSCFG_UR15_FZIWDGSTB_Msk (0x1U << SYSCFG_UR15_FZIWDGSTB_Pos) /*!< 0x00010000 */
  17348. #define SYSCFG_UR15_FZIWDGSTB SYSCFG_UR15_FZIWDGSTB_Msk /*!< Freeze independent watchdogs in Standby mode */
  17349. /****************** Bit definition for SYSCFG_UR16 register *******************/
  17350. #define SYSCFG_UR16_FZIWDGSTP_Pos (0U)
  17351. #define SYSCFG_UR16_FZIWDGSTP_Msk (0x1U << SYSCFG_UR16_FZIWDGSTP_Pos) /*!< 0x00000001 */
  17352. #define SYSCFG_UR16_FZIWDGSTP SYSCFG_UR16_FZIWDGSTP_Msk /*!< Freeze independent watchdogs in Stop mode */
  17353. #define SYSCFG_UR16_PKP_Pos (16U)
  17354. #define SYSCFG_UR16_PKP_Msk (0x1U << SYSCFG_UR16_PKP_Pos) /*!< 0x00010000 */
  17355. #define SYSCFG_UR16_PKP SYSCFG_UR16_PKP_Msk /*!< Private key programmed */
  17356. /****************** Bit definition for SYSCFG_UR17 register *******************/
  17357. #define SYSCFG_UR17_IOHSLV_Pos (0U)
  17358. #define SYSCFG_UR17_IOHSLV_Msk (0x1U << SYSCFG_UR17_IOHSLV_Pos) /*!< 0x00000001 */
  17359. #define SYSCFG_UR17_IOHSLV SYSCFG_UR17_IOHSLV_Msk /*!< I/O high speed / low voltage */
  17360. /******************************************************************************/
  17361. /* */
  17362. /* TIM */
  17363. /* */
  17364. /******************************************************************************/
  17365. /******************* Bit definition for TIM_CR1 register ********************/
  17366. #define TIM_CR1_CEN ((uint16_t)0x0001) /*!<Counter enable */
  17367. #define TIM_CR1_UDIS ((uint16_t)0x0002) /*!<Update disable */
  17368. #define TIM_CR1_URS ((uint16_t)0x0004) /*!<Update request source */
  17369. #define TIM_CR1_OPM ((uint16_t)0x0008) /*!<One pulse mode */
  17370. #define TIM_CR1_DIR ((uint16_t)0x0010) /*!<Direction */
  17371. #define TIM_CR1_CMS ((uint16_t)0x0060) /*!<CMS[1:0] bits (Center-aligned mode selection) */
  17372. #define TIM_CR1_CMS_0 ((uint16_t)0x0020) /*!<Bit 0 */
  17373. #define TIM_CR1_CMS_1 ((uint16_t)0x0040) /*!<Bit 1 */
  17374. #define TIM_CR1_ARPE ((uint16_t)0x0080) /*!<Auto-reload preload enable */
  17375. #define TIM_CR1_CKD ((uint16_t)0x0300) /*!<CKD[1:0] bits (clock division) */
  17376. #define TIM_CR1_CKD_0 ((uint16_t)0x0100) /*!<Bit 0 */
  17377. #define TIM_CR1_CKD_1 ((uint16_t)0x0200) /*!<Bit 1 */
  17378. #define TIM_CR1_UIFREMAP ((uint16_t)0x0800) /*!<Update interrupt flag remap */
  17379. /******************* Bit definition for TIM_CR2 register ********************/
  17380. #define TIM_CR2_CCPC_Pos (0U)
  17381. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  17382. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  17383. #define TIM_CR2_CCUS_Pos (2U)
  17384. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  17385. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  17386. #define TIM_CR2_CCDS_Pos (3U)
  17387. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  17388. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  17389. #define TIM_CR2_MMS_Pos (4U)
  17390. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  17391. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17392. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  17393. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  17394. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  17395. #define TIM_CR2_TI1S_Pos (7U)
  17396. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  17397. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  17398. #define TIM_CR2_OIS1_Pos (8U)
  17399. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  17400. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  17401. #define TIM_CR2_OIS1N_Pos (9U)
  17402. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  17403. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  17404. #define TIM_CR2_OIS2_Pos (10U)
  17405. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  17406. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  17407. #define TIM_CR2_OIS2N_Pos (11U)
  17408. #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  17409. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  17410. #define TIM_CR2_OIS3_Pos (12U)
  17411. #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  17412. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  17413. #define TIM_CR2_OIS3N_Pos (13U)
  17414. #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  17415. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  17416. #define TIM_CR2_OIS4_Pos (14U)
  17417. #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  17418. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  17419. #define TIM_CR2_OIS5_Pos (16U)
  17420. #define TIM_CR2_OIS5_Msk (0x1U << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  17421. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 4 (OC4 output) */
  17422. #define TIM_CR2_OIS6_Pos (17U)
  17423. #define TIM_CR2_OIS6_Msk (0x1U << TIM_CR2_OIS6_Pos) /*!< 0x00020000 */
  17424. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 4 (OC4 output) */
  17425. #define TIM_CR2_MMS2_Pos (20U)
  17426. #define TIM_CR2_MMS2_Msk (0xFU << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  17427. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17428. #define TIM_CR2_MMS2_0 (0x1U << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  17429. #define TIM_CR2_MMS2_1 (0x2U << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  17430. #define TIM_CR2_MMS2_2 (0x4U << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  17431. #define TIM_CR2_MMS2_3 (0x8U << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  17432. /******************* Bit definition for TIM_SMCR register *******************/
  17433. #define TIM_SMCR_SMS_Pos (0U)
  17434. #define TIM_SMCR_SMS_Msk (0x10007U << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  17435. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  17436. #define TIM_SMCR_SMS_0 (0x00001U << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  17437. #define TIM_SMCR_SMS_1 (0x00002U << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  17438. #define TIM_SMCR_SMS_2 (0x00004U << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  17439. #define TIM_SMCR_SMS_3 (0x10000U << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */
  17440. #define TIM_SMCR_TS_Pos (4U)
  17441. #define TIM_SMCR_TS_Msk (0x30007U << TIM_SMCR_TS_Pos) /*!< 0x00300070 */
  17442. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[4:0] bits (Trigger selection) */
  17443. #define TIM_SMCR_TS_0 (0x00001U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  17444. #define TIM_SMCR_TS_1 (0x00002U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  17445. #define TIM_SMCR_TS_2 (0x00004U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  17446. #define TIM_SMCR_TS_3 (0x10000U << TIM_SMCR_TS_Pos) /*!< 0x00100000 */
  17447. #define TIM_SMCR_TS_4 (0x20000U << TIM_SMCR_TS_Pos) /*!< 0x00200000 */
  17448. #define TIM_SMCR_MSM_Pos (7U)
  17449. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  17450. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  17451. #define TIM_SMCR_ETF_Pos (8U)
  17452. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  17453. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  17454. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  17455. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  17456. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  17457. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  17458. #define TIM_SMCR_ETPS_Pos (12U)
  17459. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  17460. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  17461. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  17462. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  17463. #define TIM_SMCR_ECE_Pos (14U)
  17464. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  17465. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  17466. #define TIM_SMCR_ETP_Pos (15U)
  17467. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  17468. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  17469. /******************* Bit definition for TIM_DIER register *******************/
  17470. #define TIM_DIER_UIE ((uint16_t)0x0001) /*!<Update interrupt enable */
  17471. #define TIM_DIER_CC1IE ((uint16_t)0x0002) /*!<Capture/Compare 1 interrupt enable */
  17472. #define TIM_DIER_CC2IE ((uint16_t)0x0004) /*!<Capture/Compare 2 interrupt enable */
  17473. #define TIM_DIER_CC3IE ((uint16_t)0x0008) /*!<Capture/Compare 3 interrupt enable */
  17474. #define TIM_DIER_CC4IE ((uint16_t)0x0010) /*!<Capture/Compare 4 interrupt enable */
  17475. #define TIM_DIER_COMIE ((uint16_t)0x0020) /*!<COM interrupt enable */
  17476. #define TIM_DIER_TIE ((uint16_t)0x0040) /*!<Trigger interrupt enable */
  17477. #define TIM_DIER_BIE ((uint16_t)0x0080) /*!<Break interrupt enable */
  17478. #define TIM_DIER_UDE ((uint16_t)0x0100) /*!<Update DMA request enable */
  17479. #define TIM_DIER_CC1DE ((uint16_t)0x0200) /*!<Capture/Compare 1 DMA request enable */
  17480. #define TIM_DIER_CC2DE ((uint16_t)0x0400) /*!<Capture/Compare 2 DMA request enable */
  17481. #define TIM_DIER_CC3DE ((uint16_t)0x0800) /*!<Capture/Compare 3 DMA request enable */
  17482. #define TIM_DIER_CC4DE ((uint16_t)0x1000) /*!<Capture/Compare 4 DMA request enable */
  17483. #define TIM_DIER_COMDE ((uint16_t)0x2000) /*!<COM DMA request enable */
  17484. #define TIM_DIER_TDE ((uint16_t)0x4000) /*!<Trigger DMA request enable */
  17485. /******************** Bit definition for TIM_SR register ********************/
  17486. #define TIM_SR_UIF_Pos (0U)
  17487. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  17488. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  17489. #define TIM_SR_CC1IF_Pos (1U)
  17490. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  17491. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  17492. #define TIM_SR_CC2IF_Pos (2U)
  17493. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  17494. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  17495. #define TIM_SR_CC3IF_Pos (3U)
  17496. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  17497. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  17498. #define TIM_SR_CC4IF_Pos (4U)
  17499. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  17500. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  17501. #define TIM_SR_COMIF_Pos (5U)
  17502. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  17503. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  17504. #define TIM_SR_TIF_Pos (6U)
  17505. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  17506. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  17507. #define TIM_SR_BIF_Pos (7U)
  17508. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  17509. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  17510. #define TIM_SR_B2IF_Pos (8U)
  17511. #define TIM_SR_B2IF_Msk (0x1U << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  17512. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break2 interrupt Flag */
  17513. #define TIM_SR_CC1OF_Pos (9U)
  17514. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  17515. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  17516. #define TIM_SR_CC2OF_Pos (10U)
  17517. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  17518. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  17519. #define TIM_SR_CC3OF_Pos (11U)
  17520. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  17521. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  17522. #define TIM_SR_CC4OF_Pos (12U)
  17523. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  17524. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  17525. #define TIM_SR_CC5IF_Pos (16U)
  17526. #define TIM_SR_CC5IF_Msk (0x1U << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  17527. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  17528. #define TIM_SR_CC6IF_Pos (17U)
  17529. #define TIM_SR_CC6IF_Msk (0x1U << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  17530. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  17531. #define TIM_SR_SBIF_Pos (13U)
  17532. #define TIM_SR_SBIF_Msk (0x1U << TIM_SR_SBIF_Pos) /*!< 0x00002000 */
  17533. #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!< System Break Flag */
  17534. /******************* Bit definition for TIM_EGR register ********************/
  17535. #define TIM_EGR_UG ((uint16_t)0x0001) /*!<Update Generation */
  17536. #define TIM_EGR_CC1G ((uint16_t)0x0002) /*!<Capture/Compare 1 Generation */
  17537. #define TIM_EGR_CC2G ((uint16_t)0x0004) /*!<Capture/Compare 2 Generation */
  17538. #define TIM_EGR_CC3G ((uint16_t)0x0008) /*!<Capture/Compare 3 Generation */
  17539. #define TIM_EGR_CC4G ((uint16_t)0x0010) /*!<Capture/Compare 4 Generation */
  17540. #define TIM_EGR_COMG ((uint16_t)0x0020) /*!<Capture/Compare Control Update Generation */
  17541. #define TIM_EGR_TG ((uint16_t)0x0040) /*!<Trigger Generation */
  17542. #define TIM_EGR_BG ((uint16_t)0x0080) /*!<Break Generation */
  17543. #define TIM_EGR_B2G ((uint16_t)0x0100) /*!<Break Generation */
  17544. /****************** Bit definition for TIM_CCMR1 register *******************/
  17545. #define TIM_CCMR1_CC1S_Pos (0U)
  17546. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  17547. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  17548. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  17549. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  17550. #define TIM_CCMR1_OC1FE_Pos (2U)
  17551. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  17552. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  17553. #define TIM_CCMR1_OC1PE_Pos (3U)
  17554. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  17555. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  17556. #define TIM_CCMR1_OC1M_Pos (4U)
  17557. #define TIM_CCMR1_OC1M_Msk (0x1007U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  17558. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  17559. #define TIM_CCMR1_OC1M_0 (0x0001U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  17560. #define TIM_CCMR1_OC1M_1 (0x0002U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  17561. #define TIM_CCMR1_OC1M_2 (0x0004U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  17562. #define TIM_CCMR1_OC1M_3 (0x1000U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */
  17563. #define TIM_CCMR1_OC1CE_Pos (7U)
  17564. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  17565. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  17566. #define TIM_CCMR1_CC2S_Pos (8U)
  17567. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  17568. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  17569. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  17570. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  17571. #define TIM_CCMR1_OC2FE_Pos (10U)
  17572. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  17573. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  17574. #define TIM_CCMR1_OC2PE_Pos (11U)
  17575. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  17576. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  17577. #define TIM_CCMR1_OC2M_Pos (12U)
  17578. #define TIM_CCMR1_OC2M_Msk (0x1007U << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  17579. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  17580. #define TIM_CCMR1_OC2M_0 (0x0001U << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  17581. #define TIM_CCMR1_OC2M_1 (0x0002U << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  17582. #define TIM_CCMR1_OC2M_2 (0x0004U << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  17583. #define TIM_CCMR1_OC2M_3 (0x1000U << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */
  17584. #define TIM_CCMR1_OC2CE_Pos (15U)
  17585. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  17586. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  17587. /*----------------------------------------------------------------------------*/
  17588. #define TIM_CCMR1_IC1PSC_Pos (2U)
  17589. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  17590. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  17591. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  17592. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  17593. #define TIM_CCMR1_IC1F_Pos (4U)
  17594. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  17595. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  17596. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  17597. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  17598. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  17599. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  17600. #define TIM_CCMR1_IC2PSC_Pos (10U)
  17601. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  17602. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  17603. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  17604. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  17605. #define TIM_CCMR1_IC2F_Pos (12U)
  17606. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  17607. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  17608. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  17609. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  17610. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  17611. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  17612. /****************** Bit definition for TIM_CCMR2 register *******************/
  17613. #define TIM_CCMR2_CC3S_Pos (0U)
  17614. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  17615. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  17616. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  17617. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  17618. #define TIM_CCMR2_OC3FE_Pos (2U)
  17619. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  17620. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  17621. #define TIM_CCMR2_OC3PE_Pos (3U)
  17622. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  17623. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  17624. #define TIM_CCMR2_OC3M_Pos (4U)
  17625. #define TIM_CCMR2_OC3M_Msk (0x7U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */
  17626. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  17627. #define TIM_CCMR2_OC3M_0 (0x1U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  17628. #define TIM_CCMR2_OC3M_1 (0x2U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  17629. #define TIM_CCMR2_OC3M_2 (0x4U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  17630. #define TIM_CCMR2_OC3M_3 (0x1000U << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */
  17631. #define TIM_CCMR2_OC3CE_Pos (7U)
  17632. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  17633. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  17634. #define TIM_CCMR2_CC4S_Pos (8U)
  17635. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  17636. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  17637. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  17638. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  17639. #define TIM_CCMR2_OC4FE_Pos (10U)
  17640. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  17641. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  17642. #define TIM_CCMR2_OC4PE_Pos (11U)
  17643. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  17644. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  17645. #define TIM_CCMR2_OC4M_Pos (12U)
  17646. #define TIM_CCMR2_OC4M_Msk (0x7U << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */
  17647. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  17648. #define TIM_CCMR2_OC4M_0 (0x1U << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  17649. #define TIM_CCMR2_OC4M_1 (0x2U << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  17650. #define TIM_CCMR2_OC4M_2 (0x4U << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  17651. #define TIM_CCMR2_OC4M_3 (0x100U << TIM_CCMR2_OC4M_Pos) /*!< 0x00100000 */
  17652. #define TIM_CCMR2_OC4CE_Pos (15U)
  17653. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  17654. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  17655. /*----------------------------------------------------------------------------*/
  17656. #define TIM_CCMR2_IC3PSC ((uint16_t)0x0000000C) /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  17657. #define TIM_CCMR2_IC3PSC_0 ((uint16_t)0x00000004) /*!<Bit 0 */
  17658. #define TIM_CCMR2_IC3PSC_1 ((uint16_t)0x00000008) /*!<Bit 1 */
  17659. #define TIM_CCMR2_IC3F ((uint16_t)0x000000F0) /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  17660. #define TIM_CCMR2_IC3F_0 ((uint16_t)0x00000010) /*!<Bit 0 */
  17661. #define TIM_CCMR2_IC3F_1 ((uint16_t)0x00000020) /*!<Bit 1 */
  17662. #define TIM_CCMR2_IC3F_2 ((uint16_t)0x00000040) /*!<Bit 2 */
  17663. #define TIM_CCMR2_IC3F_3 ((uint16_t)0x00000080) /*!<Bit 3 */
  17664. #define TIM_CCMR2_IC4PSC ((uint16_t)0x00000C00) /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  17665. #define TIM_CCMR2_IC4PSC_0 ((uint16_t)0x00000400) /*!<Bit 0 */
  17666. #define TIM_CCMR2_IC4PSC_1 ((uint16_t)0x00000800) /*!<Bit 1 */
  17667. #define TIM_CCMR2_IC4F ((uint16_t)0x0000F000) /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  17668. #define TIM_CCMR2_IC4F_0 ((uint16_t)0x00001000) /*!<Bit 0 */
  17669. #define TIM_CCMR2_IC4F_1 ((uint16_t)0x00002000) /*!<Bit 1 */
  17670. #define TIM_CCMR2_IC4F_2 ((uint16_t)0x00004000) /*!<Bit 2 */
  17671. #define TIM_CCMR2_IC4F_3 ((uint16_t)0x00008000) /*!<Bit 3 */
  17672. /******************* Bit definition for TIM_CCER register *******************/
  17673. #define TIM_CCER_CC1E_Pos (0U)
  17674. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  17675. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  17676. #define TIM_CCER_CC1P_Pos (1U)
  17677. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  17678. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  17679. #define TIM_CCER_CC1NE_Pos (2U)
  17680. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  17681. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  17682. #define TIM_CCER_CC1NP_Pos (3U)
  17683. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  17684. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  17685. #define TIM_CCER_CC2E_Pos (4U)
  17686. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  17687. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  17688. #define TIM_CCER_CC2P_Pos (5U)
  17689. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  17690. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  17691. #define TIM_CCER_CC2NE_Pos (6U)
  17692. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  17693. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  17694. #define TIM_CCER_CC2NP_Pos (7U)
  17695. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  17696. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  17697. #define TIM_CCER_CC3E_Pos (8U)
  17698. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  17699. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  17700. #define TIM_CCER_CC3P_Pos (9U)
  17701. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  17702. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  17703. #define TIM_CCER_CC3NE_Pos (10U)
  17704. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  17705. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  17706. #define TIM_CCER_CC3NP_Pos (11U)
  17707. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  17708. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  17709. #define TIM_CCER_CC4E_Pos (12U)
  17710. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  17711. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  17712. #define TIM_CCER_CC4P_Pos (13U)
  17713. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  17714. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  17715. #define TIM_CCER_CC4NP_Pos (15U)
  17716. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  17717. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  17718. #define TIM_CCER_CC5E_Pos (16U)
  17719. #define TIM_CCER_CC5E_Msk (0x1U << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  17720. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  17721. #define TIM_CCER_CC5P_Pos (17U)
  17722. #define TIM_CCER_CC5P_Msk (0x1U << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  17723. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  17724. #define TIM_CCER_CC6E_Pos (20U)
  17725. #define TIM_CCER_CC6E_Msk (0x1U << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  17726. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  17727. #define TIM_CCER_CC6P_Pos (21U)
  17728. #define TIM_CCER_CC6P_Msk (0x1U << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  17729. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  17730. /******************* Bit definition for TIM_CNT register ********************/
  17731. #define TIM_CNT_CNT_Pos (0U)
  17732. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  17733. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  17734. #define TIM_CNT_UIFCPY_Pos (31U)
  17735. #define TIM_CNT_UIFCPY_Msk (0x1U << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  17736. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy */
  17737. /******************* Bit definition for TIM_PSC register ********************/
  17738. #define TIM_PSC_PSC ((uint16_t)0xFFFF) /*!<Prescaler Value */
  17739. /******************* Bit definition for TIM_ARR register ********************/
  17740. #define TIM_ARR_ARR_Pos (0U)
  17741. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  17742. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  17743. /******************* Bit definition for TIM_RCR register ********************/
  17744. #define TIM_RCR_REP ((uint8_t)0xFF) /*!<Repetition Counter Value */
  17745. /******************* Bit definition for TIM_CCR1 register *******************/
  17746. #define TIM_CCR1_CCR1 ((uint16_t)0xFFFF) /*!<Capture/Compare 1 Value */
  17747. /******************* Bit definition for TIM_CCR2 register *******************/
  17748. #define TIM_CCR2_CCR2 ((uint16_t)0xFFFF) /*!<Capture/Compare 2 Value */
  17749. /******************* Bit definition for TIM_CCR3 register *******************/
  17750. #define TIM_CCR3_CCR3 ((uint16_t)0xFFFF) /*!<Capture/Compare 3 Value */
  17751. /******************* Bit definition for TIM_CCR4 register *******************/
  17752. #define TIM_CCR4_CCR4 ((uint16_t)0xFFFF) /*!<Capture/Compare 4 Value */
  17753. /******************* Bit definition for TIM_CCR5 register *******************/
  17754. #define TIM_CCR5_CCR5_Pos (0U)
  17755. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFU << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  17756. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  17757. #define TIM_CCR5_GC5C1_Pos (29U)
  17758. #define TIM_CCR5_GC5C1_Msk (0x1U << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  17759. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  17760. #define TIM_CCR5_GC5C2_Pos (30U)
  17761. #define TIM_CCR5_GC5C2_Msk (0x1U << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  17762. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  17763. #define TIM_CCR5_GC5C3_Pos (31U)
  17764. #define TIM_CCR5_GC5C3_Msk (0x1U << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  17765. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  17766. /******************* Bit definition for TIM_CCR6 register *******************/
  17767. #define TIM_CCR6_CCR6 ((uint16_t)0xFFFF) /*!<Capture/Compare 6 Value */
  17768. /******************* Bit definition for TIM_BDTR register *******************/
  17769. #define TIM_BDTR_DTG_Pos (0U)
  17770. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  17771. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  17772. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  17773. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  17774. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  17775. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  17776. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  17777. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  17778. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  17779. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  17780. #define TIM_BDTR_LOCK_Pos (8U)
  17781. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  17782. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  17783. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  17784. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  17785. #define TIM_BDTR_OSSI_Pos (10U)
  17786. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  17787. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  17788. #define TIM_BDTR_OSSR_Pos (11U)
  17789. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  17790. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  17791. #define TIM_BDTR_BKE_Pos (12U)
  17792. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  17793. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break1 */
  17794. #define TIM_BDTR_BKP_Pos (13U)
  17795. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  17796. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break1 */
  17797. #define TIM_BDTR_AOE_Pos (14U)
  17798. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  17799. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  17800. #define TIM_BDTR_MOE_Pos (15U)
  17801. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  17802. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  17803. #define TIM_BDTR_BKF_Pos (16U)
  17804. #define TIM_BDTR_BKF_Msk (0xFU << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  17805. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break1 */
  17806. #define TIM_BDTR_BK2F_Pos (20U)
  17807. #define TIM_BDTR_BK2F_Msk (0xFU << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  17808. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break2 */
  17809. #define TIM_BDTR_BK2E_Pos (24U)
  17810. #define TIM_BDTR_BK2E_Msk (0x1U << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  17811. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break2 */
  17812. #define TIM_BDTR_BK2P_Pos (25U)
  17813. #define TIM_BDTR_BK2P_Msk (0x1U << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  17814. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break2 */
  17815. /******************* Bit definition for TIM_DCR register ********************/
  17816. #define TIM_DCR_DBA ((uint16_t)0x001F) /*!<DBA[4:0] bits (DMA Base Address) */
  17817. #define TIM_DCR_DBA_0 ((uint16_t)0x0001) /*!<Bit 0 */
  17818. #define TIM_DCR_DBA_1 ((uint16_t)0x0002) /*!<Bit 1 */
  17819. #define TIM_DCR_DBA_2 ((uint16_t)0x0004) /*!<Bit 2 */
  17820. #define TIM_DCR_DBA_3 ((uint16_t)0x0008) /*!<Bit 3 */
  17821. #define TIM_DCR_DBA_4 ((uint16_t)0x0010) /*!<Bit 4 */
  17822. #define TIM_DCR_DBL ((uint16_t)0x1F00) /*!<DBL[4:0] bits (DMA Burst Length) */
  17823. #define TIM_DCR_DBL_0 ((uint16_t)0x0100) /*!<Bit 0 */
  17824. #define TIM_DCR_DBL_1 ((uint16_t)0x0200) /*!<Bit 1 */
  17825. #define TIM_DCR_DBL_2 ((uint16_t)0x0400) /*!<Bit 2 */
  17826. #define TIM_DCR_DBL_3 ((uint16_t)0x0800) /*!<Bit 3 */
  17827. #define TIM_DCR_DBL_4 ((uint16_t)0x1000) /*!<Bit 4 */
  17828. /******************* Bit definition for TIM_DMAR register *******************/
  17829. #define TIM_DMAR_DMAB ((uint16_t)0xFFFF) /*!<DMA register for burst accesses */
  17830. /****************** Bit definition for TIM_CCMR3 register *******************/
  17831. #define TIM_CCMR3_OC5FE_Pos (2U)
  17832. #define TIM_CCMR3_OC5FE_Msk (0x1U << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  17833. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  17834. #define TIM_CCMR3_OC5PE_Pos (3U)
  17835. #define TIM_CCMR3_OC5PE_Msk (0x1U << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  17836. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  17837. #define TIM_CCMR3_OC5M_Pos (4U)
  17838. #define TIM_CCMR3_OC5M_Msk (0x7U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000070 */
  17839. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[2:0] bits (Output Compare 5 Mode) */
  17840. #define TIM_CCMR3_OC5M_0 (0x1U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  17841. #define TIM_CCMR3_OC5M_1 (0x2U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  17842. #define TIM_CCMR3_OC5M_2 (0x4U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  17843. #define TIM_CCMR3_OC5M_3 (0x1000U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  17844. #define TIM_CCMR3_OC5CE_Pos (7U)
  17845. #define TIM_CCMR3_OC5CE_Msk (0x1U << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  17846. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  17847. #define TIM_CCMR3_OC6FE_Pos (10U)
  17848. #define TIM_CCMR3_OC6FE_Msk (0x1U << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  17849. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 4 Fast enable */
  17850. #define TIM_CCMR3_OC6PE_Pos (11U)
  17851. #define TIM_CCMR3_OC6PE_Msk (0x1U << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  17852. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 4 Preload enable */
  17853. #define TIM_CCMR3_OC6M_Pos (12U)
  17854. #define TIM_CCMR3_OC6M_Msk (0x7U << TIM_CCMR3_OC6M_Pos) /*!< 0x00007000 */
  17855. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  17856. #define TIM_CCMR3_OC6M_0 (0x1U << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  17857. #define TIM_CCMR3_OC6M_1 (0x2U << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  17858. #define TIM_CCMR3_OC6M_2 (0x4U << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  17859. #define TIM_CCMR3_OC6M_3 (0x100U << TIM_CCMR3_OC6M_Pos) /*!< 0x00100000 */
  17860. #define TIM_CCMR3_OC6CE_Pos (15U)
  17861. #define TIM_CCMR3_OC6CE_Msk (0x1U << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  17862. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 4 Clear Enable */
  17863. /******************* Bit definition for TIM1_AF1 register *********************/
  17864. #define TIM1_AF1_BKINE_Pos (0U)
  17865. #define TIM1_AF1_BKINE_Msk (0x1U << TIM1_AF1_BKINE_Pos) /*!< 0x00000001 */
  17866. #define TIM1_AF1_BKINE TIM1_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17867. #define TIM1_AF1_BKCMP1E_Pos (1U)
  17868. #define TIM1_AF1_BKCMP1E_Msk (0x1U << TIM1_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17869. #define TIM1_AF1_BKCMP1E TIM1_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17870. #define TIM1_AF1_BKCMP2E_Pos (2U)
  17871. #define TIM1_AF1_BKCMP2E_Msk (0x1U << TIM1_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17872. #define TIM1_AF1_BKCMP2E TIM1_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17873. #define TIM1_AF1_BKDFBK0E_Pos (8U)
  17874. #define TIM1_AF1_BKDFBK0E_Msk (0x1U << TIM1_AF1_BKDFBK0E_Pos) /*!< 0x00000100 */
  17875. #define TIM1_AF1_BKDFBK0E TIM1_AF1_BKDFBK0E_Msk /*!<BKDFBK0E Break input DFSDM Break 0 */
  17876. #define TIM1_AF1_BKINP_Pos (9U)
  17877. #define TIM1_AF1_BKINP_Msk (0x1U << TIM1_AF1_BKINP_Pos) /*!< 0x00000200 */
  17878. #define TIM1_AF1_BKINP TIM1_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17879. #define TIM1_AF1_BKCMP1P_Pos (10U)
  17880. #define TIM1_AF1_BKCMP1P_Msk (0x1U << TIM1_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17881. #define TIM1_AF1_BKCMP1P TIM1_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17882. #define TIM1_AF1_BKCMP2P_Pos (11U)
  17883. #define TIM1_AF1_BKCMP2P_Msk (0x1U << TIM1_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17884. #define TIM1_AF1_BKCMP2P TIM1_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17885. #define TIM1_AF1_ETR_SEL_Pos (14U)
  17886. #define TIM1_AF1_ETR_SEL_Msk (0xFU << TIM1_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17887. #define TIM1_AF1_ETR_SEL TIM1_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM1 ETR SEL) */
  17888. #define TIM1_AF1_ETR_SEL_0 (0x1U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17889. #define TIM1_AF1_ETR_SEL_1 (0x2U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17890. #define TIM1_AF1_ETR_SEL_2 (0x4U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17891. #define TIM1_AF1_ETR_SEL_3 (0x8U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17892. /******************* Bit definition for TIM1_AF2 register *********************/
  17893. #define TIM1_AF2_BK2INE_Pos (0U)
  17894. #define TIM1_AF2_BK2INE_Msk (0x1U << TIM1_AF2_BK2INE_Pos) /*!< 0x00000001 */
  17895. #define TIM1_AF2_BK2INE TIM1_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  17896. #define TIM1_AF2_BK2CMP1E_Pos (1U)
  17897. #define TIM1_AF2_BK2CMP1E_Msk (0x1U << TIM1_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  17898. #define TIM1_AF2_BK2CMP1E TIM1_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  17899. #define TIM1_AF2_BK2CMP2E_Pos (2U)
  17900. #define TIM1_AF2_BK2CMP2E_Msk (0x1U << TIM1_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  17901. #define TIM1_AF2_BK2CMP2E TIM1_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  17902. #define TIM1_AF2_BK2DFBK1E_Pos (8U)
  17903. #define TIM1_AF2_BK2DFBK1E_Msk (0x1U << TIM1_AF2_BK2DFBK1E_Pos) /*!< 0x00000100 */
  17904. #define TIM1_AF2_BK2DFBK1E TIM1_AF2_BK2DFBK1E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 1 */
  17905. #define TIM1_AF2_BK2INP_Pos (9U)
  17906. #define TIM1_AF2_BK2INP_Msk (0x1U << TIM1_AF2_BK2INP_Pos) /*!< 0x00000200 */
  17907. #define TIM1_AF2_BK2INP TIM1_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  17908. #define TIM1_AF2_BK2CMP1P_Pos (10U)
  17909. #define TIM1_AF2_BK2CMP1P_Msk (0x1U << TIM1_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  17910. #define TIM1_AF2_BK2CMP1P TIM1_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  17911. #define TIM1_AF2_BK2CMP2P_Pos (11U)
  17912. #define TIM1_AF2_BK2CMP2P_Msk (0x1U << TIM1_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  17913. #define TIM1_AF2_BK2CMP2P TIM1_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  17914. /******************* Bit definition for TIM1_TISEL register *********************/
  17915. #define TIM1_TISEL_TI1SEL_Pos (0U)
  17916. #define TIM1_TISEL_TI1SEL_Msk (0xFU << TIM1_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17917. #define TIM1_TISEL_TI1SEL TIM1_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM1 TI1 SEL)*/
  17918. #define TIM1_TISEL_TI1SEL_0 (0x1U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17919. #define TIM1_TISEL_TI1SEL_1 (0x2U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17920. #define TIM1_TISEL_TI1SEL_2 (0x4U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17921. #define TIM1_TISEL_TI1SEL_3 (0x8U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17922. #define TIM1_TISEL_TI2SEL_Pos (8U)
  17923. #define TIM1_TISEL_TI2SEL_Msk (0xFU << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17924. #define TIM1_TISEL_TI2SEL TIM1_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM1 TI2 SEL)*/
  17925. #define TIM1_TISEL_TI2SEL_0 (0x1U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17926. #define TIM1_TISEL_TI2SEL_1 (0x2U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17927. #define TIM1_TISEL_TI2SEL_2 (0x4U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17928. #define TIM1_TISEL_TI2SEL_3 (0x8U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17929. #define TIM1_TISEL_TI3SEL_Pos (16U)
  17930. #define TIM1_TISEL_TI3SEL_Msk (0xFU << TIM1_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17931. #define TIM1_TISEL_TI3SEL TIM1_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM1 TI3 SEL)*/
  17932. #define TIM1_TISEL_TI3SEL_0 (0x1U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17933. #define TIM1_TISEL_TI3SEL_1 (0x2U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17934. #define TIM1_TISEL_TI3SEL_2 (0x4U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17935. #define TIM1_TISEL_TI3SEL_3 (0x8U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17936. #define TIM1_TISEL_TI4SEL_Pos (24U)
  17937. #define TIM1_TISEL_TI4SEL_Msk (0xFU << TIM1_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17938. #define TIM1_TISEL_TI4SEL TIM1_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM1 TI4 SEL)*/
  17939. #define TIM1_TISEL_TI4SEL_0 (0x1U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17940. #define TIM1_TISEL_TI4SEL_1 (0x2U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17941. #define TIM1_TISEL_TI4SEL_2 (0x4U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17942. #define TIM1_TISEL_TI4SEL_3 (0x8U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17943. /******************* Bit definition for TIM8_AF1 register *********************/
  17944. #define TIM8_AF1_BKINE_Pos (0U)
  17945. #define TIM8_AF1_BKINE_Msk (0x1U << TIM8_AF1_BKINE_Pos) /*!< 0x00000001 */
  17946. #define TIM8_AF1_BKINE TIM8_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17947. #define TIM8_AF1_BKCMP1E_Pos (1U)
  17948. #define TIM8_AF1_BKCMP1E_Msk (0x1U << TIM8_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17949. #define TIM8_AF1_BKCMP1E TIM8_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17950. #define TIM8_AF1_BKCMP2E_Pos (2U)
  17951. #define TIM8_AF1_BKCMP2E_Msk (0x1U << TIM8_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17952. #define TIM8_AF1_BKCMP2E TIM8_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17953. #define TIM8_AF1_BKDFBK2E_Pos (8U)
  17954. #define TIM8_AF1_BKDFBK2E_Msk (0x1U << TIM8_AF1_BKDFBK2E_Pos) /*!< 0x00000100 */
  17955. #define TIM8_AF1_BKDFBK2E TIM8_AF1_BKDFBK2E_Msk /*!<BKDFBK2E Break input DFSDM Break 2 */
  17956. #define TIM8_AF1_BKINP_Pos (9U)
  17957. #define TIM8_AF1_BKINP_Msk (0x1U << TIM8_AF1_BKINP_Pos) /*!< 0x00000200 */
  17958. #define TIM8_AF1_BKINP TIM8_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17959. #define TIM8_AF1_BKCMP1P_Pos (10U)
  17960. #define TIM8_AF1_BKCMP1P_Msk (0x1U << TIM8_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17961. #define TIM8_AF1_BKCMP1P TIM8_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17962. #define TIM8_AF1_BKCMP2P_Pos (11U)
  17963. #define TIM8_AF1_BKCMP2P_Msk (0x1U << TIM8_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17964. #define TIM8_AF1_BKCMP2P TIM8_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17965. #define TIM8_AF1_ETR_SEL_Pos (14U)
  17966. #define TIM8_AF1_ETR_SEL_Msk (0xFU << TIM8_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17967. #define TIM8_AF1_ETR_SEL TIM8_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM8 ETR SEL) */
  17968. #define TIM8_AF1_ETR_SEL_0 (0x1U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17969. #define TIM8_AF1_ETR_SEL_1 (0x2U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17970. #define TIM8_AF1_ETR_SEL_2 (0x4U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17971. #define TIM8_AF1_ETR_SEL_3 (0x8U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17972. /******************* Bit definition for TIM8_AF2 register *********************/
  17973. #define TIM8_AF2_BK2INE_Pos (0U)
  17974. #define TIM8_AF2_BK2INE_Msk (0x1U << TIM8_AF2_BK2INE_Pos) /*!< 0x00000001 */
  17975. #define TIM8_AF2_BK2INE TIM8_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  17976. #define TIM8_AF2_BK2CMP1E_Pos (1U)
  17977. #define TIM8_AF2_BK2CMP1E_Msk (0x1U << TIM8_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  17978. #define TIM8_AF2_BK2CMP1E TIM8_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  17979. #define TIM8_AF2_BK2CMP2E_Pos (2U)
  17980. #define TIM8_AF2_BK2CMP2E_Msk (0x1U << TIM8_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  17981. #define TIM8_AF2_BK2CMP2E TIM8_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  17982. #define TIM8_AF2_BK2DFBK3E_Pos (8U)
  17983. #define TIM8_AF2_BK2DFBK3E_Msk (0x1U << TIM8_AF2_BK2DFBK3E_Pos) /*!< 0x00000100 */
  17984. #define TIM8_AF2_BK2DFBK3E TIM8_AF2_BK2DFBK3E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 3 */
  17985. #define TIM8_AF2_BK2INP_Pos (9U)
  17986. #define TIM8_AF2_BK2INP_Msk (0x1U << TIM8_AF2_BK2INP_Pos) /*!< 0x00000200 */
  17987. #define TIM8_AF2_BK2INP TIM8_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  17988. #define TIM8_AF2_BK2CMP1P_Pos (10U)
  17989. #define TIM8_AF2_BK2CMP1P_Msk (0x1U << TIM8_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  17990. #define TIM8_AF2_BK2CMP1P TIM8_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  17991. #define TIM8_AF2_BK2CMP2P_Pos (11U)
  17992. #define TIM8_AF2_BK2CMP2P_Msk (0x1U << TIM8_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  17993. #define TIM8_AF2_BK2CMP2P TIM8_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  17994. /******************* Bit definition for TIM8_TISEL register *********************/
  17995. #define TIM8_TISEL_TI1SEL_Pos (0U)
  17996. #define TIM8_TISEL_TI1SEL_Msk (0xFU << TIM8_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17997. #define TIM8_TISEL_TI1SEL TIM8_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM8 TI1 SEL)*/
  17998. #define TIM8_TISEL_TI1SEL_0 (0x1U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17999. #define TIM8_TISEL_TI1SEL_1 (0x2U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18000. #define TIM8_TISEL_TI1SEL_2 (0x4U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18001. #define TIM8_TISEL_TI1SEL_3 (0x8U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18002. #define TIM8_TISEL_TI2SEL_Pos (8U)
  18003. #define TIM8_TISEL_TI2SEL_Msk (0xFU << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18004. #define TIM8_TISEL_TI2SEL TIM8_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM8 TI2 SEL)*/
  18005. #define TIM8_TISEL_TI2SEL_0 (0x1U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18006. #define TIM8_TISEL_TI2SEL_1 (0x2U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18007. #define TIM8_TISEL_TI2SEL_2 (0x4U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18008. #define TIM8_TISEL_TI2SEL_3 (0x8U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18009. #define TIM8_TISEL_TI3SEL_Pos (16U)
  18010. #define TIM8_TISEL_TI3SEL_Msk (0xFU << TIM8_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  18011. #define TIM8_TISEL_TI3SEL TIM8_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM8 TI3 SEL)*/
  18012. #define TIM8_TISEL_TI3SEL_0 (0x1U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  18013. #define TIM8_TISEL_TI3SEL_1 (0x2U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  18014. #define TIM8_TISEL_TI3SEL_2 (0x4U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  18015. #define TIM8_TISEL_TI3SEL_3 (0x8U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  18016. #define TIM8_TISEL_TI4SEL_Pos (24U)
  18017. #define TIM8_TISEL_TI4SEL_Msk (0xFU << TIM8_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  18018. #define TIM8_TISEL_TI4SEL TIM8_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM8 TI4 SEL)*/
  18019. #define TIM8_TISEL_TI4SEL_0 (0x1U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  18020. #define TIM8_TISEL_TI4SEL_1 (0x2U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  18021. #define TIM8_TISEL_TI4SEL_2 (0x4U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  18022. #define TIM8_TISEL_TI4SEL_3 (0x8U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  18023. /******************* Bit definition for TIM2_AF1 register *********************/
  18024. #define TIM2_AF1_ETR_SEL_Pos (14U)
  18025. #define TIM2_AF1_ETR_SEL_Msk (0xFU << TIM2_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  18026. #define TIM2_AF1_ETR_SEL TIM2_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM2 ETR SEL) */
  18027. #define TIM2_AF1_ETR_SEL_0 (0x1U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  18028. #define TIM2_AF1_ETR_SEL_1 (0x2U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  18029. #define TIM2_AF1_ETR_SEL_2 (0x4U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  18030. #define TIM2_AF1_ETR_SEL_3 (0x8U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  18031. /******************* Bit definition for TIM2_TISEL register *********************/
  18032. #define TIM2_TISEL_TI1SEL_Pos (0U)
  18033. #define TIM2_TISEL_TI1SEL_Msk (0xFU << TIM2_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18034. #define TIM2_TISEL_TI1SEL TIM2_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM1 TI1 SEL)*/
  18035. #define TIM2_TISEL_TI1SEL_0 (0x1U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18036. #define TIM2_TISEL_TI1SEL_1 (0x2U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18037. #define TIM2_TISEL_TI1SEL_2 (0x4U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18038. #define TIM2_TISEL_TI1SEL_3 (0x8U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18039. #define TIM2_TISEL_TI2SEL_Pos (8U)
  18040. #define TIM2_TISEL_TI2SEL_Msk (0xFU << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18041. #define TIM2_TISEL_TI2SEL TIM2_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM2 TI2 SEL)*/
  18042. #define TIM2_TISEL_TI2SEL_0 (0x1U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18043. #define TIM2_TISEL_TI2SEL_1 (0x2U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18044. #define TIM2_TISEL_TI2SEL_2 (0x4U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18045. #define TIM2_TISEL_TI2SEL_3 (0x8U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18046. #define TIM2_TISEL_TI3SEL_Pos (16U)
  18047. #define TIM2_TISEL_TI3SEL_Msk (0xFU << TIM2_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  18048. #define TIM2_TISEL_TI3SEL TIM2_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM2 TI3 SEL)*/
  18049. #define TIM2_TISEL_TI3SEL_0 (0x1U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  18050. #define TIM2_TISEL_TI3SEL_1 (0x2U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  18051. #define TIM2_TISEL_TI3SEL_2 (0x4U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  18052. #define TIM2_TISEL_TI3SEL_3 (0x8U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  18053. #define TIM2_TISEL_TI4SEL_Pos (24U)
  18054. #define TIM2_TISEL_TI4SEL_Msk (0xFU << TIM2_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  18055. #define TIM2_TISEL_TI4SEL TIM2_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM2 TI4 SEL)*/
  18056. #define TIM2_TISEL_TI4SEL_0 (0x1U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  18057. #define TIM2_TISEL_TI4SEL_1 (0x2U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  18058. #define TIM2_TISEL_TI4SEL_2 (0x4U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  18059. #define TIM2_TISEL_TI4SEL_3 (0x8U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  18060. /******************* Bit definition for TIM3_AF1 register *********************/
  18061. #define TIM3_AF1_ETR_SEL_Pos (14U)
  18062. #define TIM3_AF1_ETR_SEL_Msk (0xFU << TIM3_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  18063. #define TIM3_AF1_ETR_SEL TIM3_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM3 ETR SEL) */
  18064. #define TIM3_AF1_ETR_SEL_0 (0x1U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  18065. #define TIM3_AF1_ETR_SEL_1 (0x2U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  18066. #define TIM3_AF1_ETR_SEL_2 (0x4U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  18067. #define TIM3_AF1_ETR_SEL_3 (0x8U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  18068. /******************* Bit definition for TIM3_TISEL register *********************/
  18069. #define TIM3_TISEL_TI1SEL_Pos (0U)
  18070. #define TIM3_TISEL_TI1SEL_Msk (0xFU << TIM3_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18071. #define TIM3_TISEL_TI1SEL TIM3_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM3 TI1 SEL)*/
  18072. #define TIM3_TISEL_TI1SEL_0 (0x1U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18073. #define TIM3_TISEL_TI1SEL_1 (0x2U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18074. #define TIM3_TISEL_TI1SEL_2 (0x4U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18075. #define TIM3_TISEL_TI1SEL_3 (0x8U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18076. #define TIM3_TISEL_TI2SEL_Pos (8U)
  18077. #define TIM3_TISEL_TI2SEL_Msk (0xFU << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18078. #define TIM3_TISEL_TI2SEL TIM3_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM3 TI2 SEL)*/
  18079. #define TIM3_TISEL_TI2SEL_0 (0x1U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18080. #define TIM3_TISEL_TI2SEL_1 (0x2U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18081. #define TIM3_TISEL_TI2SEL_2 (0x4U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18082. #define TIM3_TISEL_TI2SEL_3 (0x8U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18083. #define TIM3_TISEL_TI3SEL_Pos (16U)
  18084. #define TIM3_TISEL_TI3SEL_Msk (0xFU << TIM3_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  18085. #define TIM3_TISEL_TI3SEL TIM3_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM3 TI3 SEL)*/
  18086. #define TIM3_TISEL_TI3SEL_0 (0x1U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  18087. #define TIM3_TISEL_TI3SEL_1 (0x2U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  18088. #define TIM3_TISEL_TI3SEL_2 (0x4U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  18089. #define TIM3_TISEL_TI3SEL_3 (0x8U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  18090. #define TIM3_TISEL_TI4SEL_Pos (24U)
  18091. #define TIM3_TISEL_TI4SEL_Msk (0xFU << TIM3_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  18092. #define TIM3_TISEL_TI4SEL TIM3_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM3 TI4 SEL)*/
  18093. #define TIM3_TISEL_TI4SEL_0 (0x1U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  18094. #define TIM3_TISEL_TI4SEL_1 (0x2U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  18095. #define TIM3_TISEL_TI4SEL_2 (0x4U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  18096. #define TIM3_TISEL_TI4SEL_3 (0x8U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  18097. /******************* Bit definition for TIM5_AF1 register *********************/
  18098. #define TIM5_AF1_ETR_SEL_Pos (14U)
  18099. #define TIM5_AF1_ETR_SEL_Msk (0xFU << TIM5_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  18100. #define TIM5_AF1_ETR_SEL TIM5_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM5 ETR SEL) */
  18101. #define TIM5_AF1_ETR_SEL_0 (0x1U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  18102. #define TIM5_AF1_ETR_SEL_1 (0x2U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  18103. #define TIM5_AF1_ETR_SEL_2 (0x4U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  18104. #define TIM5_AF1_ETR_SEL_3 (0x8U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  18105. /******************* Bit definition for TIM5_TISEL register *********************/
  18106. #define TIM5_TISEL_TI1SEL_Pos (0U)
  18107. #define TIM5_TISEL_TI1SEL_Msk (0xFU << TIM5_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18108. #define TIM5_TISEL_TI1SEL TIM5_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM3 TI1 SEL)*/
  18109. #define TIM5_TISEL_TI1SEL_0 (0x1U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18110. #define TIM5_TISEL_TI1SEL_1 (0x2U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18111. #define TIM5_TISEL_TI1SEL_2 (0x4U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18112. #define TIM5_TISEL_TI1SEL_3 (0x8U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18113. #define TIM5_TISEL_TI2SEL_Pos (8U)
  18114. #define TIM5_TISEL_TI2SEL_Msk (0xFU << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18115. #define TIM5_TISEL_TI2SEL TIM5_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM3 TI2 SEL)*/
  18116. #define TIM5_TISEL_TI2SEL_0 (0x1U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18117. #define TIM5_TISEL_TI2SEL_1 (0x2U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18118. #define TIM5_TISEL_TI2SEL_2 (0x4U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18119. #define TIM5_TISEL_TI2SEL_3 (0x8U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18120. #define TIM5_TISEL_TI3SEL_Pos (16U)
  18121. #define TIM5_TISEL_TI3SEL_Msk (0xFU << TIM5_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  18122. #define TIM5_TISEL_TI3SEL TIM5_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM3 TI3 SEL)*/
  18123. #define TIM5_TISEL_TI3SEL_0 (0x1U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  18124. #define TIM5_TISEL_TI3SEL_1 (0x2U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  18125. #define TIM5_TISEL_TI3SEL_2 (0x4U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  18126. #define TIM5_TISEL_TI3SEL_3 (0x8U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  18127. #define TIM5_TISEL_TI4SEL_Pos (24U)
  18128. #define TIM5_TISEL_TI4SEL_Msk (0xFU << TIM5_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  18129. #define TIM5_TISEL_TI4SEL TIM5_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM3 TI4 SEL)*/
  18130. #define TIM5_TISEL_TI4SEL_0 (0x1U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  18131. #define TIM5_TISEL_TI4SEL_1 (0x2U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  18132. #define TIM5_TISEL_TI4SEL_2 (0x4U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  18133. #define TIM5_TISEL_TI4SEL_3 (0x8U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  18134. /******************* Bit definition for TIM15_AF1 register *********************/
  18135. #define TIM15_AF1_BKINE_Pos (0U)
  18136. #define TIM15_AF1_BKINE_Msk (0x1U << TIM15_AF1_BKINE_Pos) /*!< 0x00000001 */
  18137. #define TIM15_AF1_BKINE TIM15_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18138. #define TIM15_AF1_BKCMP1E_Pos (1U)
  18139. #define TIM15_AF1_BKCMP1E_Msk (0x1U << TIM15_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18140. #define TIM15_AF1_BKCMP1E TIM15_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18141. #define TIM15_AF1_BKCMP2E_Pos (2U)
  18142. #define TIM15_AF1_BKCMP2E_Msk (0x1U << TIM15_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18143. #define TIM15_AF1_BKCMP2E TIM15_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18144. #define TIM15_AF1_BKDF1BK2E_Pos (8U)
  18145. #define TIM15_AF1_BKDF1BK2E_Msk (0x1U << TIM15_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18146. #define TIM15_AF1_BKDF1BK2E TIM15_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[0] enable */
  18147. #define TIM15_AF1_BKINP_Pos (9U)
  18148. #define TIM15_AF1_BKINP_Msk (0x1U << TIM15_AF1_BKINP_Pos) /*!< 0x00000200 */
  18149. #define TIM15_AF1_BKINP TIM15_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18150. #define TIM15_AF1_BKCMP1P_Pos (10U)
  18151. #define TIM15_AF1_BKCMP1P_Msk (0x1U << TIM15_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18152. #define TIM15_AF1_BKCMP1P TIM15_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18153. #define TIM15_AF1_BKCMP2P_Pos (11U)
  18154. #define TIM15_AF1_BKCMP2P_Msk (0x1U << TIM15_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18155. #define TIM15_AF1_BKCMP2P TIM15_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18156. /******************* Bit definition for TIM15_TISEL register *********************/
  18157. #define TIM15_TISEL_TI1SEL_Pos (0U)
  18158. #define TIM15_TISEL_TI1SEL_Msk (0xFU << TIM15_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18159. #define TIM15_TISEL_TI1SEL TIM15_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM15 TI1 SEL)*/
  18160. #define TIM15_TISEL_TI1SEL_0 (0x1U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18161. #define TIM15_TISEL_TI1SEL_1 (0x2U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18162. #define TIM15_TISEL_TI1SEL_2 (0x4U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18163. #define TIM15_TISEL_TI1SEL_3 (0x8U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18164. #define TIM15_TISEL_TI2SEL_Pos (8U)
  18165. #define TIM15_TISEL_TI2SEL_Msk (0xFU << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  18166. #define TIM15_TISEL_TI2SEL TIM15_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM15 TI2 SEL)*/
  18167. #define TIM15_TISEL_TI2SEL_0 (0x1U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  18168. #define TIM15_TISEL_TI2SEL_1 (0x2U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  18169. #define TIM15_TISEL_TI2SEL_2 (0x4U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  18170. #define TIM15_TISEL_TI2SEL_3 (0x8U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  18171. /******************* Bit definition for TIM16_ register *********************/
  18172. #define TIM16_AF1_BKINE_Pos (0U)
  18173. #define TIM16_AF1_BKINE_Msk (0x1U << TIM16_AF1_BKINE_Pos) /*!< 0x00000001 */
  18174. #define TIM16_AF1_BKINE TIM16_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18175. #define TIM16_AF1_BKCMP1E_Pos (1U)
  18176. #define TIM16_AF1_BKCMP1E_Msk (0x1U << TIM16_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18177. #define TIM16_AF1_BKCMP1E TIM16_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18178. #define TIM16_AF1_BKCMP2E_Pos (2U)
  18179. #define TIM16_AF1_BKCMP2E_Msk (0x1U << TIM16_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18180. #define TIM16_AF1_BKCMP2E TIM16_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18181. #define TIM16_AF1_BKDF1BK2E_Pos (8U)
  18182. #define TIM16_AF1_BKDF1BK2E_Msk (0x1U << TIM16_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18183. #define TIM16_AF1_BKDF1BK2E TIM16_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[1] enable */
  18184. #define TIM16_AF1_BKINP_Pos (9U)
  18185. #define TIM16_AF1_BKINP_Msk (0x1U << TIM16_AF1_BKINP_Pos) /*!< 0x00000200 */
  18186. #define TIM16_AF1_BKINP TIM16_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18187. #define TIM16_AF1_BKCMP1P_Pos (10U)
  18188. #define TIM16_AF1_BKCMP1P_Msk (0x1U << TIM16_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18189. #define TIM16_AF1_BKCMP1P TIM16_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18190. #define TIM16_AF1_BKCMP2P_Pos (11U)
  18191. #define TIM16_AF1_BKCMP2P_Msk (0x1U << TIM16_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18192. #define TIM16_AF1_BKCMP2P TIM16_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18193. /******************* Bit definition for TIM16_TISEL register *********************/
  18194. #define TIM16_TISEL_TI1SEL_Pos (0U)
  18195. #define TIM16_TISEL_TI1SEL_Msk (0xFU << TIM16_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18196. #define TIM16_TISEL_TI1SEL TIM16_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM16 TI1 SEL) */
  18197. #define TIM16_TISEL_TI1SEL_0 (0x1U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18198. #define TIM16_TISEL_TI1SEL_1 (0x2U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18199. #define TIM16_TISEL_TI1SEL_2 (0x4U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18200. #define TIM16_TISEL_TI1SEL_3 (0x8U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18201. /******************* Bit definition for TIM17_AF1 register *********************/
  18202. #define TIM17_AF1_BKINE_Pos (0U)
  18203. #define TIM17_AF1_BKINE_Msk (0x1U << TIM17_AF1_BKINE_Pos) /*!< 0x00000001 */
  18204. #define TIM17_AF1_BKINE TIM17_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  18205. #define TIM17_AF1_BKCMP1E_Pos (1U)
  18206. #define TIM17_AF1_BKCMP1E_Msk (0x1U << TIM17_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  18207. #define TIM17_AF1_BKCMP1E TIM17_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  18208. #define TIM17_AF1_BKCMP2E_Pos (2U)
  18209. #define TIM17_AF1_BKCMP2E_Msk (0x1U << TIM17_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  18210. #define TIM17_AF1_BKCMP2E TIM17_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  18211. #define TIM17_AF1_BKDF1BK2E_Pos (8U)
  18212. #define TIM17_AF1_BKDF1BK2E_Msk (0x1U << TIM17_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  18213. #define TIM17_AF1_BKDF1BK2E TIM17_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[2] enable */
  18214. #define TIM17_AF1_BKINP_Pos (9U)
  18215. #define TIM17_AF1_BKINP_Msk (0x1U << TIM17_AF1_BKINP_Pos) /*!< 0x00000200 */
  18216. #define TIM17_AF1_BKINP TIM17_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  18217. #define TIM17_AF1_BKCMP1P_Pos (10U)
  18218. #define TIM17_AF1_BKCMP1P_Msk (0x1U << TIM17_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  18219. #define TIM17_AF1_BKCMP1P TIM17_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  18220. #define TIM17_AF1_BKCMP2P_Pos (11U)
  18221. #define TIM17_AF1_BKCMP2P_Msk (0x1U << TIM17_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  18222. #define TIM17_AF1_BKCMP2P TIM17_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  18223. /******************* Bit definition for TIM17_TISEL register *********************/
  18224. #define TIM17_TISEL_TI1SEL_Pos (0U)
  18225. #define TIM17_TISEL_TI1SEL_Msk (0xFU << TIM17_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  18226. #define TIM17_TISEL_TI1SEL TIM17_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM17 TI1 SEL) */
  18227. #define TIM17_TISEL_TI1SEL_0 (0x1U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  18228. #define TIM17_TISEL_TI1SEL_1 (0x2U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  18229. #define TIM17_TISEL_TI1SEL_2 (0x4U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  18230. #define TIM17_TISEL_TI1SEL_3 (0x8U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  18231. /******************************************************************************/
  18232. /* */
  18233. /* Low Power Timer (LPTTIM) */
  18234. /* */
  18235. /******************************************************************************/
  18236. /****************** Bit definition for LPTIM_ISR register *******************/
  18237. #define LPTIM_ISR_CMPM_Pos (0U)
  18238. #define LPTIM_ISR_CMPM_Msk (0x1U << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */
  18239. #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */
  18240. #define LPTIM_ISR_ARRM_Pos (1U)
  18241. #define LPTIM_ISR_ARRM_Msk (0x1U << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */
  18242. #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */
  18243. #define LPTIM_ISR_EXTTRIG_Pos (2U)
  18244. #define LPTIM_ISR_EXTTRIG_Msk (0x1U << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */
  18245. #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */
  18246. #define LPTIM_ISR_CMPOK_Pos (3U)
  18247. #define LPTIM_ISR_CMPOK_Msk (0x1U << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */
  18248. #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */
  18249. #define LPTIM_ISR_ARROK_Pos (4U)
  18250. #define LPTIM_ISR_ARROK_Msk (0x1U << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */
  18251. #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */
  18252. #define LPTIM_ISR_UP_Pos (5U)
  18253. #define LPTIM_ISR_UP_Msk (0x1U << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */
  18254. #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */
  18255. #define LPTIM_ISR_DOWN_Pos (6U)
  18256. #define LPTIM_ISR_DOWN_Msk (0x1U << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */
  18257. #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */
  18258. /****************** Bit definition for LPTIM_ICR register *******************/
  18259. #define LPTIM_ICR_CMPMCF_Pos (0U)
  18260. #define LPTIM_ICR_CMPMCF_Msk (0x1U << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */
  18261. #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */
  18262. #define LPTIM_ICR_ARRMCF_Pos (1U)
  18263. #define LPTIM_ICR_ARRMCF_Msk (0x1U << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */
  18264. #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */
  18265. #define LPTIM_ICR_EXTTRIGCF_Pos (2U)
  18266. #define LPTIM_ICR_EXTTRIGCF_Msk (0x1U << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */
  18267. #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */
  18268. #define LPTIM_ICR_CMPOKCF_Pos (3U)
  18269. #define LPTIM_ICR_CMPOKCF_Msk (0x1U << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */
  18270. #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */
  18271. #define LPTIM_ICR_ARROKCF_Pos (4U)
  18272. #define LPTIM_ICR_ARROKCF_Msk (0x1U << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */
  18273. #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */
  18274. #define LPTIM_ICR_UPCF_Pos (5U)
  18275. #define LPTIM_ICR_UPCF_Msk (0x1U << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */
  18276. #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */
  18277. #define LPTIM_ICR_DOWNCF_Pos (6U)
  18278. #define LPTIM_ICR_DOWNCF_Msk (0x1U << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */
  18279. #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */
  18280. /****************** Bit definition for LPTIM_IER register ********************/
  18281. #define LPTIM_IER_CMPMIE_Pos (0U)
  18282. #define LPTIM_IER_CMPMIE_Msk (0x1U << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */
  18283. #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */
  18284. #define LPTIM_IER_ARRMIE_Pos (1U)
  18285. #define LPTIM_IER_ARRMIE_Msk (0x1U << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */
  18286. #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */
  18287. #define LPTIM_IER_EXTTRIGIE_Pos (2U)
  18288. #define LPTIM_IER_EXTTRIGIE_Msk (0x1U << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */
  18289. #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */
  18290. #define LPTIM_IER_CMPOKIE_Pos (3U)
  18291. #define LPTIM_IER_CMPOKIE_Msk (0x1U << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */
  18292. #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */
  18293. #define LPTIM_IER_ARROKIE_Pos (4U)
  18294. #define LPTIM_IER_ARROKIE_Msk (0x1U << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */
  18295. #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */
  18296. #define LPTIM_IER_UPIE_Pos (5U)
  18297. #define LPTIM_IER_UPIE_Msk (0x1U << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */
  18298. #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */
  18299. #define LPTIM_IER_DOWNIE_Pos (6U)
  18300. #define LPTIM_IER_DOWNIE_Msk (0x1U << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */
  18301. #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */
  18302. /****************** Bit definition for LPTIM_CFGR register *******************/
  18303. #define LPTIM_CFGR_CKSEL_Pos (0U)
  18304. #define LPTIM_CFGR_CKSEL_Msk (0x1U << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */
  18305. #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */
  18306. #define LPTIM_CFGR_CKPOL_Pos (1U)
  18307. #define LPTIM_CFGR_CKPOL_Msk (0x3U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */
  18308. #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */
  18309. #define LPTIM_CFGR_CKPOL_0 (0x1U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */
  18310. #define LPTIM_CFGR_CKPOL_1 (0x2U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */
  18311. #define LPTIM_CFGR_CKFLT_Pos (3U)
  18312. #define LPTIM_CFGR_CKFLT_Msk (0x3U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */
  18313. #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
  18314. #define LPTIM_CFGR_CKFLT_0 (0x1U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */
  18315. #define LPTIM_CFGR_CKFLT_1 (0x2U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */
  18316. #define LPTIM_CFGR_TRGFLT_Pos (6U)
  18317. #define LPTIM_CFGR_TRGFLT_Msk (0x3U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */
  18318. #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
  18319. #define LPTIM_CFGR_TRGFLT_0 (0x1U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */
  18320. #define LPTIM_CFGR_TRGFLT_1 (0x2U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */
  18321. #define LPTIM_CFGR_PRESC_Pos (9U)
  18322. #define LPTIM_CFGR_PRESC_Msk (0x7U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */
  18323. #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */
  18324. #define LPTIM_CFGR_PRESC_0 (0x1U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */
  18325. #define LPTIM_CFGR_PRESC_1 (0x2U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */
  18326. #define LPTIM_CFGR_PRESC_2 (0x4U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */
  18327. #define LPTIM_CFGR_TRIGSEL_Pos (13U)
  18328. #define LPTIM_CFGR_TRIGSEL_Msk (0x7U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */
  18329. #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */
  18330. #define LPTIM_CFGR_TRIGSEL_0 (0x1U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */
  18331. #define LPTIM_CFGR_TRIGSEL_1 (0x2U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */
  18332. #define LPTIM_CFGR_TRIGSEL_2 (0x4U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */
  18333. #define LPTIM_CFGR_TRIGEN_Pos (17U)
  18334. #define LPTIM_CFGR_TRIGEN_Msk (0x3U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */
  18335. #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
  18336. #define LPTIM_CFGR_TRIGEN_0 (0x1U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */
  18337. #define LPTIM_CFGR_TRIGEN_1 (0x2U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */
  18338. #define LPTIM_CFGR_TIMOUT_Pos (19U)
  18339. #define LPTIM_CFGR_TIMOUT_Msk (0x1U << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */
  18340. #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */
  18341. #define LPTIM_CFGR_WAVE_Pos (20U)
  18342. #define LPTIM_CFGR_WAVE_Msk (0x1U << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */
  18343. #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */
  18344. #define LPTIM_CFGR_WAVPOL_Pos (21U)
  18345. #define LPTIM_CFGR_WAVPOL_Msk (0x1U << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */
  18346. #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */
  18347. #define LPTIM_CFGR_PRELOAD_Pos (22U)
  18348. #define LPTIM_CFGR_PRELOAD_Msk (0x1U << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */
  18349. #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */
  18350. #define LPTIM_CFGR_COUNTMODE_Pos (23U)
  18351. #define LPTIM_CFGR_COUNTMODE_Msk (0x1U << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */
  18352. #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */
  18353. #define LPTIM_CFGR_ENC_Pos (24U)
  18354. #define LPTIM_CFGR_ENC_Msk (0x1U << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */
  18355. #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */
  18356. /****************** Bit definition for LPTIM_CR register ********************/
  18357. #define LPTIM_CR_ENABLE_Pos (0U)
  18358. #define LPTIM_CR_ENABLE_Msk (0x1U << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */
  18359. #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */
  18360. #define LPTIM_CR_SNGSTRT_Pos (1U)
  18361. #define LPTIM_CR_SNGSTRT_Msk (0x40001U << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00080002 */
  18362. #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */
  18363. #define LPTIM_CR_CNTSTRT_Pos (2U)
  18364. #define LPTIM_CR_CNTSTRT_Msk (0x1U << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */
  18365. #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */
  18366. #define LPTIM_CR_COUNTRST_Pos (3U)
  18367. #define LPTIM_CR_COUNTRST_Msk (0x1U << LPTIM_CR_COUNTRST_Pos) /*!< 0x00000008 */
  18368. #define LPTIM_CR_COUNTRST LPTIM_CR_COUNTRST_Msk /*!< Timer Counter reset in synchronous mode*/
  18369. #define LPTIM_CR_RSTARE_Pos (4U)
  18370. #define LPTIM_CR_RSTARE_Msk (0x1U << LPTIM_CR_RSTARE_Pos) /*!< 0x00000010 */
  18371. #define LPTIM_CR_RSTARE LPTIM_CR_RSTARE_Msk /*!< Timer Counter reset after read enable (asynchronously)*/
  18372. /****************** Bit definition for LPTIM_CMP register *******************/
  18373. #define LPTIM_CMP_CMP_Pos (0U)
  18374. #define LPTIM_CMP_CMP_Msk (0xFFFFU << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */
  18375. #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */
  18376. /****************** Bit definition for LPTIM_ARR register *******************/
  18377. #define LPTIM_ARR_ARR_Pos (0U)
  18378. #define LPTIM_ARR_ARR_Msk (0xFFFFU << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */
  18379. #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */
  18380. /****************** Bit definition for LPTIM_CNT register *******************/
  18381. #define LPTIM_CNT_CNT_Pos (0U)
  18382. #define LPTIM_CNT_CNT_Msk (0xFFFFU << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */
  18383. #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */
  18384. /****************** Bit definition for LPTIM_OR register *******************/
  18385. #define LPTIM_CFGR2_CFGR2_Pos (0U)
  18386. #define LPTIM_CFGR2_CFGR2_Msk (0xFFU << LPTIM_CFGR2_CFGR2_Pos) /*!< 0x000000FF */
  18387. #define LPTIM_CFGR2_CFGR2 LPTIM_CFGR2_CFGR2_Msk /*!< LPTIMER_ CFGR2[7:0] bits (Remap selection) */
  18388. #define LPTIM_CFGR2_IN1_SEL0_Pos (0U)
  18389. #define LPTIM_CFGR2_IN1_SEL0_Msk (0x1U << LPTIM_CFGR2_IN1_SEL0_Pos) /*!< 0x00000001 */
  18390. #define LPTIM_CFGR2_IN1_SEL0 LPTIM_CFGR2_IN1_SEL0_Msk /*!< Bit 0 */
  18391. #define LPTIM_CFGR2_IN1_SEL1_Pos (1U)
  18392. #define LPTIM_CFGR2_IN1_SEL1_Msk (0x1U << LPTIM_CFGR2_IN1_SEL1_Pos) /*!< 0x00000002 */
  18393. #define LPTIM_CFGR2_IN1_SEL1 LPTIM_CFGR2_IN1_SEL1_Msk /*!< Bit 1 */
  18394. #define LPTIM_CFGR2_IN2_SEL0_Pos (4U)
  18395. #define LPTIM_CFGR2_IN2_SEL0_Msk (0x1U << LPTIM_CFGR2_IN2_SEL0_Pos) /*!< 0x00000010 */
  18396. #define LPTIM_CFGR2_IN2_SEL0 LPTIM_CFGR2_IN2_SEL0_Msk /*!< Bit 4 */
  18397. #define LPTIM_CFGR2_IN2_SEL1_Pos (5U)
  18398. #define LPTIM_CFGR2_IN2_SEL1_Msk (0x1U << LPTIM_CFGR2_IN2_SEL1_Pos) /*!< 0x00000020 */
  18399. #define LPTIM_CFGR2_IN2_SEL1 LPTIM_CFGR2_IN2_SEL1_Msk /*!< Bit 5 */
  18400. /******************************************************************************/
  18401. /* */
  18402. /* Analog Comparators (COMP) */
  18403. /* */
  18404. /******************************************************************************/
  18405. /******************* Bit definition for COMP_SR register ********************/
  18406. #define COMP_SR_C1VAL_Pos (0U)
  18407. #define COMP_SR_C1VAL_Msk (0x1U << COMP_SR_C1VAL_Pos) /*!< 0x00000001 */
  18408. #define COMP_SR_C1VAL COMP_SR_C1VAL_Msk
  18409. #define COMP_SR_C2VAL_Pos (1U)
  18410. #define COMP_SR_C2VAL_Msk (0x1U << COMP_SR_C2VAL_Pos) /*!< 0x00000002 */
  18411. #define COMP_SR_C2VAL COMP_SR_C2VAL_Msk
  18412. #define COMP_SR_C1IF_Pos (16U)
  18413. #define COMP_SR_C1IF_Msk (0x1U << COMP_SR_C1IF_Pos) /*!< 0x00010000 */
  18414. #define COMP_SR_C1IF COMP_SR_C1IF_Msk
  18415. #define COMP_SR_C2IF_Pos (17U)
  18416. #define COMP_SR_C2IF_Msk (0x1U << COMP_SR_C2IF_Pos) /*!< 0x00020000 */
  18417. #define COMP_SR_C2IF COMP_SR_C2IF_Msk
  18418. /******************* Bit definition for COMP_ICFR register ********************/
  18419. #define COMP_ICFR_C1IF_Pos (16U)
  18420. #define COMP_ICFR_C1IF_Msk (0x1U << COMP_ICFR_C1IF_Pos) /*!< 0x00010000 */
  18421. #define COMP_ICFR_C1IF COMP_ICFR_C1IF_Msk
  18422. #define COMP_ICFR_C2IF_Pos (17U)
  18423. #define COMP_ICFR_C2IF_Msk (0x1U << COMP_ICFR_C2IF_Pos) /*!< 0x00020000 */
  18424. #define COMP_ICFR_C2IF COMP_ICFR_C2IF_Msk
  18425. /******************* Bit definition for COMP_OR register ********************/
  18426. #define COMP_OR_AFOPA6_Pos (0U)
  18427. #define COMP_OR_AFOPA6_Msk (0x1U << COMP_OR_AFOPA6_Pos) /*!< 0x00000001 */
  18428. #define COMP_OR_AFOPA6 COMP_OR_AFOPA6_Msk
  18429. #define COMP_OR_AFOPA8_Pos (1U)
  18430. #define COMP_OR_AFOPA8_Msk (0x1U << COMP_OR_AFOPA8_Pos) /*!< 0x00000002 */
  18431. #define COMP_OR_AFOPA8 COMP_OR_AFOPA8_Msk
  18432. #define COMP_OR_AFOPB12_Pos (2U)
  18433. #define COMP_OR_AFOPB12_Msk (0x1U << COMP_OR_AFOPB12_Pos) /*!< 0x00000004 */
  18434. #define COMP_OR_AFOPB12 COMP_OR_AFOPB12_Msk
  18435. #define COMP_OR_AFOPE6_Pos (3U)
  18436. #define COMP_OR_AFOPE6_Msk (0x1U << COMP_OR_AFOPE6_Pos) /*!< 0x00000008 */
  18437. #define COMP_OR_AFOPE6 COMP_OR_AFOPE6_Msk
  18438. #define COMP_OR_AFOPE15_Pos (4U)
  18439. #define COMP_OR_AFOPE15_Msk (0x1U << COMP_OR_AFOPE15_Pos) /*!< 0x00000010 */
  18440. #define COMP_OR_AFOPE15 COMP_OR_AFOPE15_Msk
  18441. #define COMP_OR_AFOPG2_Pos (5U)
  18442. #define COMP_OR_AFOPG2_Msk (0x1U << COMP_OR_AFOPG2_Pos) /*!< 0x00000020 */
  18443. #define COMP_OR_AFOPG2 COMP_OR_AFOPG2_Msk
  18444. #define COMP_OR_AFOPG3_Pos (6U)
  18445. #define COMP_OR_AFOPG3_Msk (0x1U << COMP_OR_AFOPG3_Pos) /*!< 0x00000040 */
  18446. #define COMP_OR_AFOPG3 COMP_OR_AFOPG3_Msk
  18447. #define COMP_OR_AFOPG4_Pos (7U)
  18448. #define COMP_OR_AFOPG4_Msk (0x1U << COMP_OR_AFOPG4_Pos) /*!< 0x00000080 */
  18449. #define COMP_OR_AFOPG4 COMP_OR_AFOPG4_Msk
  18450. #define COMP_OR_AFOPI1_Pos (8U)
  18451. #define COMP_OR_AFOPI1_Msk (0x1U << COMP_OR_AFOPI1_Pos) /*!< 0x00000100 */
  18452. #define COMP_OR_AFOPI1 COMP_OR_AFOPI1_Msk
  18453. #define COMP_OR_AFOPI4_Pos (9U)
  18454. #define COMP_OR_AFOPI4_Msk (0x1U << COMP_OR_AFOPI4_Pos) /*!< 0x00000200 */
  18455. #define COMP_OR_AFOPI4 COMP_OR_AFOPI4_Msk
  18456. #define COMP_OR_AFOPK2_Pos (10U)
  18457. #define COMP_OR_AFOPK2_Msk (0x1U << COMP_OR_AFOPK2_Pos) /*!< 0x00000400 */
  18458. #define COMP_OR_AFOPK2 COMP_OR_AFOPK2_Msk
  18459. /*!< ****************** Bit definition for COMP_CFGRx register ********************/
  18460. #define COMP_CFGRx_EN_Pos (0U)
  18461. #define COMP_CFGRx_EN_Msk (0x1U << COMP_CFGRx_EN_Pos) /*!< 0x00000001 */
  18462. #define COMP_CFGRx_EN COMP_CFGRx_EN_Msk /*!< COMPx enable bit */
  18463. #define COMP_CFGRx_BRGEN_Pos (1U)
  18464. #define COMP_CFGRx_BRGEN_Msk (0x1U << COMP_CFGRx_BRGEN_Pos) /*!< 0x00000002 */
  18465. #define COMP_CFGRx_BRGEN COMP_CFGRx_BRGEN_Msk /*!< COMPx Scaler bridge enable */
  18466. #define COMP_CFGRx_SCALEN_Pos (2U)
  18467. #define COMP_CFGRx_SCALEN_Msk (0x1U << COMP_CFGRx_SCALEN_Pos) /*!< 0x00000004 */
  18468. #define COMP_CFGRx_SCALEN COMP_CFGRx_SCALEN_Msk /*!< COMPx Voltage scaler enable bit */
  18469. #define COMP_CFGRx_POLARITY_Pos (3U)
  18470. #define COMP_CFGRx_POLARITY_Msk (0x1U << COMP_CFGRx_POLARITY_Pos) /*!< 0x00000008 */
  18471. #define COMP_CFGRx_POLARITY COMP_CFGRx_POLARITY_Msk /*!< COMPx polarity selection bit */
  18472. #define COMP_CFGRx_WINMODE_Pos (4U)
  18473. #define COMP_CFGRx_WINMODE_Msk (0x1U << COMP_CFGRx_WINMODE_Pos) /*!< 0x00000010 */
  18474. #define COMP_CFGRx_WINMODE COMP_CFGRx_WINMODE_Msk /*!< COMPx Windows mode selection bit */
  18475. #define COMP_CFGRx_ITEN_Pos (6U)
  18476. #define COMP_CFGRx_ITEN_Msk (0x1U << COMP_CFGRx_ITEN_Pos) /*!< 0x00000040 */
  18477. #define COMP_CFGRx_ITEN COMP_CFGRx_ITEN_Msk /*!< COMPx interrupt enable */
  18478. #define COMP_CFGRx_HYST_Pos (8U)
  18479. #define COMP_CFGRx_HYST_Msk (0x3U << COMP_CFGRx_HYST_Pos) /*!< 0x00000300 */
  18480. #define COMP_CFGRx_HYST COMP_CFGRx_HYST_Msk /*!< COMPx hysteresis selection bits */
  18481. #define COMP_CFGRx_HYST_0 (0x1U << COMP_CFGRx_HYST_Pos) /*!< 0x00000100 */
  18482. #define COMP_CFGRx_HYST_1 (0x2U << COMP_CFGRx_HYST_Pos) /*!< 0x00000200 */
  18483. #define COMP_CFGRx_PWRMODE_Pos (12U)
  18484. #define COMP_CFGRx_PWRMODE_Msk (0x3U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00003000 */
  18485. #define COMP_CFGRx_PWRMODE COMP_CFGRx_PWRMODE_Msk /*!< COMPx Power Mode of the comparator */
  18486. #define COMP_CFGRx_PWRMODE_0 (0x1U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00001000 */
  18487. #define COMP_CFGRx_PWRMODE_1 (0x2U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00002000 */
  18488. #define COMP_CFGRx_INMSEL_Pos (16U)
  18489. #define COMP_CFGRx_INMSEL_Msk (0x7U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00070000 */
  18490. #define COMP_CFGRx_INMSEL COMP_CFGRx_INMSEL_Msk /*!< COMPx input minus selection bit */
  18491. #define COMP_CFGRx_INMSEL_0 (0x1U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00010000 */
  18492. #define COMP_CFGRx_INMSEL_1 (0x2U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00020000 */
  18493. #define COMP_CFGRx_INMSEL_2 (0x4U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00040000 */
  18494. #define COMP_CFGRx_INPSEL_Pos (20U)
  18495. #define COMP_CFGRx_INPSEL_Msk (0x1U << COMP_CFGRx_INPSEL_Pos) /*!< 0x00100000 */
  18496. #define COMP_CFGRx_INPSEL COMP_CFGRx_INPSEL_Msk /*!< COMPx input plus selection bit */
  18497. #define COMP_CFGRx_BLANKING_Pos (24U)
  18498. #define COMP_CFGRx_BLANKING_Msk (0xFU << COMP_CFGRx_BLANKING_Pos) /*!< 0x0F000000 */
  18499. #define COMP_CFGRx_BLANKING COMP_CFGRx_BLANKING_Msk /*!< COMPx blanking source selection bits */
  18500. #define COMP_CFGRx_BLANKING_0 (0x1U << COMP_CFGRx_BLANKING_Pos) /*!< 0x01000000 */
  18501. #define COMP_CFGRx_BLANKING_1 (0x2U << COMP_CFGRx_BLANKING_Pos) /*!< 0x02000000 */
  18502. #define COMP_CFGRx_BLANKING_2 (0x4U << COMP_CFGRx_BLANKING_Pos) /*!< 0x04000000 */
  18503. #define COMP_CFGRx_LOCK_Pos (31U)
  18504. #define COMP_CFGRx_LOCK_Msk (0x1U << COMP_CFGRx_LOCK_Pos) /*!< 0x80000000 */
  18505. #define COMP_CFGRx_LOCK COMP_CFGRx_LOCK_Msk /*!< COMPx Lock Bit */
  18506. /******************************************************************************/
  18507. /* */
  18508. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  18509. /* */
  18510. /******************************************************************************/
  18511. /****************** Bit definition for USART_CR1 register *******************/
  18512. #define USART_CR1_UE_Pos (0U)
  18513. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  18514. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  18515. #define USART_CR1_UESM_Pos (1U)
  18516. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  18517. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  18518. #define USART_CR1_RE_Pos (2U)
  18519. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  18520. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  18521. #define USART_CR1_TE_Pos (3U)
  18522. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  18523. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  18524. #define USART_CR1_IDLEIE_Pos (4U)
  18525. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  18526. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  18527. #define USART_CR1_RXNEIE_Pos (5U)
  18528. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  18529. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  18530. #define USART_CR1_TCIE_Pos (6U)
  18531. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  18532. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  18533. #define USART_CR1_TXEIE_Pos (7U)
  18534. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  18535. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  18536. #define USART_CR1_PEIE_Pos (8U)
  18537. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  18538. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  18539. #define USART_CR1_PS_Pos (9U)
  18540. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  18541. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  18542. #define USART_CR1_PCE_Pos (10U)
  18543. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  18544. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  18545. #define USART_CR1_WAKE_Pos (11U)
  18546. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  18547. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  18548. #define USART_CR1_M_Pos (12U)
  18549. #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */
  18550. #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */
  18551. #define USART_CR1_M0_Pos (12U)
  18552. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  18553. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */
  18554. #define USART_CR1_MME_Pos (13U)
  18555. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  18556. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  18557. #define USART_CR1_CMIE_Pos (14U)
  18558. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  18559. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  18560. #define USART_CR1_OVER8_Pos (15U)
  18561. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  18562. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  18563. #define USART_CR1_DEDT_Pos (16U)
  18564. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  18565. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  18566. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  18567. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  18568. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  18569. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  18570. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  18571. #define USART_CR1_DEAT_Pos (21U)
  18572. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  18573. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  18574. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  18575. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  18576. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  18577. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  18578. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  18579. #define USART_CR1_RTOIE_Pos (26U)
  18580. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  18581. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  18582. #define USART_CR1_EOBIE_Pos (27U)
  18583. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  18584. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  18585. #define USART_CR1_M1_Pos (28U)
  18586. #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */
  18587. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */
  18588. #define USART_CR1_FIFOEN_Pos (29U)
  18589. #define USART_CR1_FIFOEN_Msk (0x1U << USART_CR1_FIFOEN_Pos) /*!< 0x20000000 */
  18590. #define USART_CR1_FIFOEN USART_CR1_FIFOEN_Msk /*!< FIFO mode enable */
  18591. #define USART_CR1_TXFEIE_Pos (30U)
  18592. #define USART_CR1_TXFEIE_Msk (0x1U << USART_CR1_TXFEIE_Pos) /*!< 0x40000000 */
  18593. #define USART_CR1_TXFEIE USART_CR1_TXFEIE_Msk /*!< TXFIFO empty interrupt enable */
  18594. #define USART_CR1_RXFFIE_Pos (31U)
  18595. #define USART_CR1_RXFFIE_Msk (0x1U << USART_CR1_RXFFIE_Pos) /*!< 0x80000000 */
  18596. #define USART_CR1_RXFFIE USART_CR1_RXFFIE_Msk /*!< RXFIFO Full interrupt enable */
  18597. /****************** Bit definition for USART_CR2 register *******************/
  18598. #define USART_CR2_SLVEN_Pos (0U)
  18599. #define USART_CR2_SLVEN_Msk (0x1U << USART_CR2_SLVEN_Pos) /*!< 0x00000001 */
  18600. #define USART_CR2_SLVEN USART_CR2_SLVEN_Msk /*!< Synchronous Slave mode Enable */
  18601. #define USART_CR2_DIS_NSS_Pos (3U)
  18602. #define USART_CR2_DIS_NSS_Msk (0x1U << USART_CR2_DIS_NSS_Pos) /*!< 0x00000008 */
  18603. #define USART_CR2_DIS_NSS USART_CR2_DIS_NSS_Msk /*!< Negative Slave Select (NSS) pin management */
  18604. #define USART_CR2_ADDM7_Pos (4U)
  18605. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  18606. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  18607. #define USART_CR2_LBDL_Pos (5U)
  18608. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  18609. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  18610. #define USART_CR2_LBDIE_Pos (6U)
  18611. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  18612. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  18613. #define USART_CR2_LBCL_Pos (8U)
  18614. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  18615. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  18616. #define USART_CR2_CPHA_Pos (9U)
  18617. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  18618. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  18619. #define USART_CR2_CPOL_Pos (10U)
  18620. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  18621. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  18622. #define USART_CR2_CLKEN_Pos (11U)
  18623. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  18624. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  18625. #define USART_CR2_STOP_Pos (12U)
  18626. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  18627. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  18628. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  18629. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  18630. #define USART_CR2_LINEN_Pos (14U)
  18631. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  18632. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  18633. #define USART_CR2_SWAP_Pos (15U)
  18634. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  18635. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  18636. #define USART_CR2_RXINV_Pos (16U)
  18637. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  18638. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  18639. #define USART_CR2_TXINV_Pos (17U)
  18640. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  18641. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  18642. #define USART_CR2_DATAINV_Pos (18U)
  18643. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  18644. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  18645. #define USART_CR2_MSBFIRST_Pos (19U)
  18646. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  18647. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  18648. #define USART_CR2_ABREN_Pos (20U)
  18649. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  18650. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  18651. #define USART_CR2_ABRMODE_Pos (21U)
  18652. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  18653. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  18654. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  18655. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  18656. #define USART_CR2_RTOEN_Pos (23U)
  18657. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  18658. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  18659. #define USART_CR2_ADD_Pos (24U)
  18660. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  18661. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  18662. /****************** Bit definition for USART_CR3 register *******************/
  18663. #define USART_CR3_EIE_Pos (0U)
  18664. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  18665. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  18666. #define USART_CR3_IREN_Pos (1U)
  18667. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  18668. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  18669. #define USART_CR3_IRLP_Pos (2U)
  18670. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  18671. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  18672. #define USART_CR3_HDSEL_Pos (3U)
  18673. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  18674. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  18675. #define USART_CR3_NACK_Pos (4U)
  18676. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  18677. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  18678. #define USART_CR3_SCEN_Pos (5U)
  18679. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  18680. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  18681. #define USART_CR3_DMAR_Pos (6U)
  18682. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  18683. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  18684. #define USART_CR3_DMAT_Pos (7U)
  18685. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  18686. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  18687. #define USART_CR3_RTSE_Pos (8U)
  18688. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  18689. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  18690. #define USART_CR3_CTSE_Pos (9U)
  18691. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  18692. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  18693. #define USART_CR3_CTSIE_Pos (10U)
  18694. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  18695. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  18696. #define USART_CR3_ONEBIT_Pos (11U)
  18697. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  18698. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  18699. #define USART_CR3_OVRDIS_Pos (12U)
  18700. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  18701. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  18702. #define USART_CR3_DDRE_Pos (13U)
  18703. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  18704. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  18705. #define USART_CR3_DEM_Pos (14U)
  18706. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  18707. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  18708. #define USART_CR3_DEP_Pos (15U)
  18709. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  18710. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  18711. #define USART_CR3_SCARCNT_Pos (17U)
  18712. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  18713. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  18714. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  18715. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  18716. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  18717. #define USART_CR3_WUS_Pos (20U)
  18718. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  18719. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  18720. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  18721. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  18722. #define USART_CR3_WUFIE_Pos (22U)
  18723. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  18724. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  18725. #define USART_CR3_TXFTIE_Pos (23U)
  18726. #define USART_CR3_TXFTIE_Msk (0x1U << USART_CR3_TXFTIE_Pos) /*!< 0x00800000 */
  18727. #define USART_CR3_TXFTIE USART_CR3_TXFTIE_Msk /*!< TXFIFO threshold interrupt enable */
  18728. #define USART_CR3_TCBGTIE_Pos (24U)
  18729. #define USART_CR3_TCBGTIE_Msk (0x1U << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
  18730. #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete before guard time, interrupt enable */
  18731. #define USART_CR3_RXFTCFG_Pos (25U)
  18732. #define USART_CR3_RXFTCFG_Msk (0x7U << USART_CR3_RXFTCFG_Pos) /*!< 0x0E000000 */
  18733. #define USART_CR3_RXFTCFG USART_CR3_RXFTCFG_Msk /*!< RXFTCFG [2:0]Receive FIFO threshold configuration */
  18734. #define USART_CR3_RXFTCFG_0 (0x1U << USART_CR3_RXFTCFG_Pos) /*!< 0x02000000 */
  18735. #define USART_CR3_RXFTCFG_1 (0x2U << USART_CR3_RXFTCFG_Pos) /*!< 0x04000000 */
  18736. #define USART_CR3_RXFTCFG_2 (0x4U << USART_CR3_RXFTCFG_Pos) /*!< 0x08000000 */
  18737. #define USART_CR3_RXFTIE_Pos (28U)
  18738. #define USART_CR3_RXFTIE_Msk (0x1U << USART_CR3_RXFTIE_Pos) /*!< 0x10000000 */
  18739. #define USART_CR3_RXFTIE USART_CR3_RXFTIE_Msk /*!< RXFIFO threshold interrupt enable */
  18740. #define USART_CR3_TXFTCFG_Pos (29U)
  18741. #define USART_CR3_TXFTCFG_Msk (0x7U << USART_CR3_TXFTCFG_Pos) /*!< 0xE0000000 */
  18742. #define USART_CR3_TXFTCFG USART_CR3_TXFTCFG_Msk /*!< TXFIFO [2:0] threshold configuration */
  18743. #define USART_CR3_TXFTCFG_0 (0x1U << USART_CR3_TXFTCFG_Pos) /*!< 0x20000000 */
  18744. #define USART_CR3_TXFTCFG_1 (0x2U << USART_CR3_TXFTCFG_Pos) /*!< 0x40000000 */
  18745. #define USART_CR3_TXFTCFG_2 (0x4U << USART_CR3_TXFTCFG_Pos) /*!< 0x80000000 */
  18746. /****************** Bit definition for USART_BRR register *******************/
  18747. #define USART_BRR_DIV_FRACTION_Pos (0U)
  18748. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  18749. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  18750. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  18751. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  18752. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  18753. /****************** Bit definition for USART_GTPR register ******************/
  18754. #define USART_GTPR_PSC_Pos (0U)
  18755. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  18756. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  18757. #define USART_GTPR_GT_Pos (8U)
  18758. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  18759. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  18760. /******************* Bit definition for USART_RTOR register *****************/
  18761. #define USART_RTOR_RTO_Pos (0U)
  18762. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  18763. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  18764. #define USART_RTOR_BLEN_Pos (24U)
  18765. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  18766. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  18767. /******************* Bit definition for USART_RQR register ******************/
  18768. #define USART_RQR_ABRRQ_Pos (0U)
  18769. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  18770. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  18771. #define USART_RQR_SBKRQ_Pos (1U)
  18772. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  18773. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  18774. #define USART_RQR_MMRQ_Pos (2U)
  18775. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  18776. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  18777. #define USART_RQR_RXFRQ_Pos (3U)
  18778. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  18779. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  18780. #define USART_RQR_TXFRQ_Pos (4U)
  18781. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  18782. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  18783. /******************* Bit definition for USART_ISR register ******************/
  18784. #define USART_ISR_PE_Pos (0U)
  18785. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  18786. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  18787. #define USART_ISR_FE_Pos (1U)
  18788. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  18789. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  18790. #define USART_ISR_NE_Pos (2U)
  18791. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  18792. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  18793. #define USART_ISR_ORE_Pos (3U)
  18794. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  18795. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  18796. #define USART_ISR_IDLE_Pos (4U)
  18797. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  18798. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  18799. #define USART_ISR_RXNE_Pos (5U)
  18800. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  18801. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  18802. #define USART_ISR_TC_Pos (6U)
  18803. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  18804. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  18805. #define USART_ISR_TXE_Pos (7U)
  18806. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  18807. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  18808. #define USART_ISR_LBDF_Pos (8U)
  18809. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  18810. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  18811. #define USART_ISR_CTSIF_Pos (9U)
  18812. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  18813. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  18814. #define USART_ISR_CTS_Pos (10U)
  18815. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  18816. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  18817. #define USART_ISR_RTOF_Pos (11U)
  18818. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  18819. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  18820. #define USART_ISR_EOBF_Pos (12U)
  18821. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  18822. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  18823. #define USART_ISR_UDR_Pos (13U)
  18824. #define USART_ISR_UDR_Msk (0x1U << USART_ISR_UDR_Pos) /*!< 0x00002000 */
  18825. #define USART_ISR_UDR USART_ISR_UDR_Msk /*!< SPI slave underrun error flag */
  18826. #define USART_ISR_ABRE_Pos (14U)
  18827. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  18828. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  18829. #define USART_ISR_ABRF_Pos (15U)
  18830. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  18831. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  18832. #define USART_ISR_BUSY_Pos (16U)
  18833. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  18834. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  18835. #define USART_ISR_CMF_Pos (17U)
  18836. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  18837. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  18838. #define USART_ISR_SBKF_Pos (18U)
  18839. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  18840. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  18841. #define USART_ISR_RWU_Pos (19U)
  18842. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  18843. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  18844. #define USART_ISR_WUF_Pos (20U)
  18845. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  18846. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  18847. #define USART_ISR_TEACK_Pos (21U)
  18848. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  18849. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  18850. #define USART_ISR_REACK_Pos (22U)
  18851. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  18852. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  18853. #define USART_ISR_TXFE_Pos (23U)
  18854. #define USART_ISR_TXFE_Msk (0x1U << USART_ISR_TXFE_Pos) /*!< 0x00800000 */
  18855. #define USART_ISR_TXFE USART_ISR_TXFE_Msk /*!< TXFIFO Empty */
  18856. #define USART_ISR_RXFF_Pos (24U)
  18857. #define USART_ISR_RXFF_Msk (0x1U << USART_ISR_RXFF_Pos) /*!< 0x01000000 */
  18858. #define USART_ISR_RXFF USART_ISR_RXFF_Msk /*!< RXFIFO Full Flag */
  18859. #define USART_ISR_TCBGT_Pos (25U)
  18860. #define USART_ISR_TCBGT_Msk (0x1U << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */
  18861. #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission complete before guard time Flag */
  18862. #define USART_ISR_RXFT_Pos (26U)
  18863. #define USART_ISR_RXFT_Msk (0x1U << USART_ISR_RXFT_Pos) /*!< 0x04000000 */
  18864. #define USART_ISR_RXFT USART_ISR_RXFT_Msk /*!< RXFIFO threshold Flag */
  18865. #define USART_ISR_TXFT_Pos (27U)
  18866. #define USART_ISR_TXFT_Msk (0x1U << USART_ISR_TXFT_Pos) /*!< 0x08000000 */
  18867. #define USART_ISR_TXFT USART_ISR_TXFT_Msk /*!< TXFIFO threshold Flag */
  18868. /******************* Bit definition for USART_ICR register ******************/
  18869. #define USART_ICR_PECF_Pos (0U)
  18870. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  18871. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  18872. #define USART_ICR_FECF_Pos (1U)
  18873. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  18874. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  18875. #define USART_ICR_NCF_Pos (2U)
  18876. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  18877. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  18878. #define USART_ICR_ORECF_Pos (3U)
  18879. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  18880. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  18881. #define USART_ICR_IDLECF_Pos (4U)
  18882. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  18883. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  18884. #define USART_ICR_TXFECF_Pos (5U)
  18885. #define USART_ICR_TXFECF_Msk (0x1U << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */
  18886. #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TXFIFO empty clear flag */
  18887. #define USART_ICR_TCCF_Pos (6U)
  18888. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  18889. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  18890. #define USART_ICR_TCBGT_Pos (7U)
  18891. #define USART_ICR_TCBGT_Msk (0x1U << USART_ICR_TCBGT_Pos) /*!< 0x00000080 */
  18892. #define USART_ICR_TCBGT USART_ICR_TCBGT_Msk /*!< Transmission complete before guard time Clear Flag */
  18893. #define USART_ICR_LBDCF_Pos (8U)
  18894. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  18895. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  18896. #define USART_ICR_CTSCF_Pos (9U)
  18897. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  18898. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  18899. #define USART_ICR_RTOCF_Pos (11U)
  18900. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  18901. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  18902. #define USART_ICR_EOBCF_Pos (12U)
  18903. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  18904. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  18905. #define USART_ICR_UDRCF_Pos (13U)
  18906. #define USART_ICR_UDRCF_Msk (0x1U << USART_ICR_UDRCF_Pos) /*!< 0x00002000 */
  18907. #define USART_ICR_UDRCF USART_ICR_UDRCF_Msk /*!< SPI slave underrun clear flag */
  18908. #define USART_ICR_CMCF_Pos (17U)
  18909. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  18910. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  18911. #define USART_ICR_WUCF_Pos (20U)
  18912. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  18913. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  18914. /******************* Bit definition for USART_RDR register ******************/
  18915. #define USART_RDR_RDR_Pos (0U)
  18916. #define USART_RDR_RDR_Msk (0x1FFU << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  18917. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  18918. /******************* Bit definition for USART_TDR register ******************/
  18919. #define USART_TDR_TDR_Pos (0U)
  18920. #define USART_TDR_TDR_Msk (0x1FFU << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  18921. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  18922. /******************* Bit definition for USART_PRESC register ******************/
  18923. #define USART_PRESC_PRESCALER_Pos (0U)
  18924. #define USART_PRESC_PRESCALER_Msk (0xFU << USART_PRESC_PRESCALER_Pos) /*!< 0x0000000F */
  18925. #define USART_PRESC_PRESCALER USART_PRESC_PRESCALER_Msk /*!< PRESCALER[3:0] bits (Clock prescaler) */
  18926. /******************************************************************************/
  18927. /* */
  18928. /* Single Wire Protocol Master Interface (SWPMI) */
  18929. /* */
  18930. /******************************************************************************/
  18931. /******************* Bit definition for SWPMI_CR register ********************/
  18932. #define SWPMI_CR_RXDMA ((uint16_t)0x0001) /*!<Reception DMA enable */
  18933. #define SWPMI_CR_TXDMA ((uint16_t)0x0002) /*!<Transmission DMA enable */
  18934. #define SWPMI_CR_RXMODE ((uint16_t)0x0004) /*!<Reception buffering mode */
  18935. #define SWPMI_CR_TXMODE ((uint16_t)0x0008) /*!<Transmission buffering mode */
  18936. #define SWPMI_CR_LPBK ((uint16_t)0x0010) /*!<Loopback mode enable */
  18937. #define SWPMI_CR_SWPACT ((uint16_t)0x0020) /*!<Single wire protocol master interface activate */
  18938. #define SWPMI_CR_DEACT ((uint16_t)0x0400) /*!<Single wire protocol master interface deactivate */
  18939. #define SWPMI_CR_SWPEN ((uint16_t)0x0800) /*!<Single wire protocol master transceiver enable */
  18940. /******************* Bit definition for SWPMI_BRR register ********************/
  18941. #define SWPMI_BRR_BR ((uint16_t)0x003F) /*!<BR[7:0] bits (Bitrate prescaler) */
  18942. /******************* Bit definition for SWPMI_ISR register ********************/
  18943. #define SWPMI_ISR_RXBFF ((uint16_t)0x0001) /*!<Receive buffer full flag */
  18944. #define SWPMI_ISR_TXBEF ((uint16_t)0x0002) /*!<Transmit buffer empty flag */
  18945. #define SWPMI_ISR_RXBERF ((uint16_t)0x0004) /*!<Receive CRC error flag */
  18946. #define SWPMI_ISR_RXOVRF ((uint16_t)0x0008) /*!<Receive overrun error flag */
  18947. #define SWPMI_ISR_TXUNRF ((uint16_t)0x0010) /*!<Transmit underrun error flag */
  18948. #define SWPMI_ISR_RXNE ((uint16_t)0x0020) /*!<Receive data register not empty */
  18949. #define SWPMI_ISR_TXE ((uint16_t)0x0040) /*!<Transmit data register empty */
  18950. #define SWPMI_ISR_TCF ((uint16_t)0x0080) /*!<Transfer complete flag */
  18951. #define SWPMI_ISR_SRF ((uint16_t)0x0100) /*!<Slave resume flag */
  18952. #define SWPMI_ISR_SUSP ((uint16_t)0x0200) /*!<SUSPEND flag */
  18953. #define SWPMI_ISR_DEACTF ((uint16_t)0x0400) /*!<DEACTIVATED flag */
  18954. #define SWPMI_ISR_RDYF ((uint16_t)0x0800) /*!<Transceiver ready flag */
  18955. /******************* Bit definition for SWPMI_ICR register ********************/
  18956. #define SWPMI_ICR_CRXBFF ((uint16_t)0x0001) /*!<Clear receive buffer full flag */
  18957. #define SWPMI_ICR_CTXBEF ((uint16_t)0x0002) /*!<Clear transmit buffer empty flag */
  18958. #define SWPMI_ICR_CRXBERF ((uint16_t)0x0004) /*!<Clear receive CRC error flag */
  18959. #define SWPMI_ICR_CRXOVRF ((uint16_t)0x0008) /*!<Clear receive overrun error flag */
  18960. #define SWPMI_ICR_CTXUNRF ((uint16_t)0x0010) /*!<Clear transmit underrun error flag */
  18961. #define SWPMI_ICR_CTCF ((uint16_t)0x0080) /*!<Clear transfer complete flag */
  18962. #define SWPMI_ICR_CSRF ((uint16_t)0x0100) /*!<Clear slave resume flag */
  18963. #define SWPMI_ICR_CRDYF ((uint16_t)0x0800) /*!<Clear transceiver ready flag */
  18964. /******************* Bit definition for SWPMI_IER register ********************/
  18965. #define SWPMI_IER_RXBFIE ((uint16_t)0x0001) /*!<Receive buffer full interrupt enable */
  18966. #define SWPMI_IER_TXBEIE ((uint16_t)0x0002) /*!<Transmit buffer empty interrupt enable */
  18967. #define SWPMI_IER_RXBERIE ((uint16_t)0x0004) /*!<Receive CRC error interrupt enable */
  18968. #define SWPMI_IER_RXOVRIE ((uint16_t)0x0008) /*!<Receive overrun error interrupt enable */
  18969. #define SWPMI_IER_TXUNRIE ((uint16_t)0x0010) /*!<Transmit underrun error interrupt enable */
  18970. #define SWPMI_IER_RIE ((uint16_t)0x0020) /*!<Receive interrupt enable */
  18971. #define SWPMI_IER_TIE ((uint16_t)0x0040) /*!<Transmit interrupt enable */
  18972. #define SWPMI_IER_TCIE ((uint16_t)0x0080) /*!<Transmit complete interrupt enable */
  18973. #define SWPMI_IER_SRIE ((uint16_t)0x0100) /*!<Slave resume interrupt enable */
  18974. #define SWPMI_IER_RDYIE ((uint16_t)0x0800) /*!<Transceiver ready interrupt enable */
  18975. /******************* Bit definition for SWPMI_RFL register ********************/
  18976. #define SWPMI_RFL_RFL ((uint16_t)0x001F) /*!<RFL[4:0] bits (Receive Frame length) */
  18977. #define SWPMI_RFL_RFL_0_1 ((uint16_t)0x0003) /*!<RFL[1:0] bits (number of relevant bytes for the last SWPMI_RDR register read.) */
  18978. /******************* Bit definition for SWPMI_TDR register ********************/
  18979. #define SWPMI_TDR_TD_Pos (0U)
  18980. #define SWPMI_TDR_TD_Msk (0xFFFFFFFFU << SWPMI_TDR_TD_Pos) /*!< 0xFFFFFFFF */
  18981. #define SWPMI_TDR_TD SWPMI_TDR_TD_Msk /*!<Transmit Data Register */
  18982. /******************* Bit definition for SWPMI_RDR register ********************/
  18983. #define SWPMI_RDR_RD_Pos (0U)
  18984. #define SWPMI_RDR_RD_Msk (0xFFFFFFFFU << SWPMI_RDR_RD_Pos) /*!< 0xFFFFFFFF */
  18985. #define SWPMI_RDR_RD SWPMI_RDR_RD_Msk /*!<Recive Data Register */
  18986. /******************* Bit definition for SWPMI_OR register ********************/
  18987. #define SWPMI_OR_TBYP ((uint16_t)0x0001) /*!<SWP Transceiver Bypass */
  18988. #define SWPMI_OR_CLASS ((uint16_t)0x0002) /*!<SWP CLASS selection */
  18989. /******************************************************************************/
  18990. /* */
  18991. /* Window WATCHDOG */
  18992. /* */
  18993. /******************************************************************************/
  18994. /******************* Bit definition for WWDG_CR register ********************/
  18995. #define WWDG_CR_T ((uint8_t)0x7F) /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
  18996. #define WWDG_CR_T0 ((uint8_t)0x01) /*!<Bit 0 */
  18997. #define WWDG_CR_T1 ((uint8_t)0x02) /*!<Bit 1 */
  18998. #define WWDG_CR_T2 ((uint8_t)0x04) /*!<Bit 2 */
  18999. #define WWDG_CR_T3 ((uint8_t)0x08) /*!<Bit 3 */
  19000. #define WWDG_CR_T4 ((uint8_t)0x10) /*!<Bit 4 */
  19001. #define WWDG_CR_T5 ((uint8_t)0x20) /*!<Bit 5 */
  19002. #define WWDG_CR_T6 ((uint8_t)0x40) /*!<Bit 6 */
  19003. #define WWDG_CR_WDGA ((uint8_t)0x80) /*!<Activation bit */
  19004. /******************* Bit definition for WWDG_CFR register *******************/
  19005. #define WWDG_CFR_W ((uint16_t)0x007F) /*!<W[6:0] bits (7-bit window value) */
  19006. #define WWDG_CFR_W0 ((uint16_t)0x0001) /*!<Bit 0 */
  19007. #define WWDG_CFR_W1 ((uint16_t)0x0002) /*!<Bit 1 */
  19008. #define WWDG_CFR_W2 ((uint16_t)0x0004) /*!<Bit 2 */
  19009. #define WWDG_CFR_W3 ((uint16_t)0x0008) /*!<Bit 3 */
  19010. #define WWDG_CFR_W4 ((uint16_t)0x0010) /*!<Bit 4 */
  19011. #define WWDG_CFR_W5 ((uint16_t)0x0020) /*!<Bit 5 */
  19012. #define WWDG_CFR_W6 ((uint16_t)0x0040) /*!<Bit 6 */
  19013. #define WWDG_CFR_EWI ((uint16_t)0x0200) /*!<Early Wakeup Interrupt */
  19014. #define WWDG_CFR_WDGTB ((uint16_t)0x3800) /*!<WDGTB[1:0] bits (Timer Base) */
  19015. #define WWDG_CFR_WDGTB0 ((uint16_t)0x0800) /*!<Bit 0 */
  19016. #define WWDG_CFR_WDGTB1 ((uint16_t)0x1000) /*!<Bit 1 */
  19017. #define WWDG_CFR_WDGTB2 ((uint16_t)0x2000)
  19018. /******************* Bit definition for WWDG_SR register ********************/
  19019. #define WWDG_SR_EWIF ((uint8_t)0x01) /*!<Early Wakeup Interrupt Flag */
  19020. /******************************************************************************/
  19021. /* */
  19022. /* DBG */
  19023. /* */
  19024. /******************************************************************************/
  19025. /******************** Bit definition for DBGMCU_IDCODE register *************/
  19026. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  19027. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  19028. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  19029. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  19030. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  19031. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  19032. /******************** Bit definition for DBGMCU_CR register *****************/
  19033. #define DBGMCU_CR_DBG_SLEEPD1_Pos (0U)
  19034. #define DBGMCU_CR_DBG_SLEEPD1_Msk (0x1U << DBGMCU_CR_DBG_SLEEPD1_Pos) /*!< 0x00000001 */
  19035. #define DBGMCU_CR_DBG_SLEEPD1 DBGMCU_CR_DBG_SLEEPD1_Msk
  19036. #define DBGMCU_CR_DBG_STOPD1_Pos (1U)
  19037. #define DBGMCU_CR_DBG_STOPD1_Msk (0x1U << DBGMCU_CR_DBG_STOPD1_Pos) /*!< 0x00000002 */
  19038. #define DBGMCU_CR_DBG_STOPD1 DBGMCU_CR_DBG_STOPD1_Msk
  19039. #define DBGMCU_CR_DBG_STANDBYD1_Pos (2U)
  19040. #define DBGMCU_CR_DBG_STANDBYD1_Msk (0x1U << DBGMCU_CR_DBG_STANDBYD1_Pos) /*!< 0x00000004 */
  19041. #define DBGMCU_CR_DBG_STANDBYD1 DBGMCU_CR_DBG_STANDBYD1_Msk
  19042. #define DBGMCU_CR_DBG_STOPD3_Pos (7U)
  19043. #define DBGMCU_CR_DBG_STOPD3_Msk (0x1U << DBGMCU_CR_DBG_STOPD3_Pos) /*!< 0x00000080 */
  19044. #define DBGMCU_CR_DBG_STOPD3 DBGMCU_CR_DBG_STOPD3_Msk
  19045. #define DBGMCU_CR_DBG_STANDBYD3_Pos (8U)
  19046. #define DBGMCU_CR_DBG_STANDBYD3_Msk (0x1U << DBGMCU_CR_DBG_STANDBYD3_Pos) /*!< 0x00000100 */
  19047. #define DBGMCU_CR_DBG_STANDBYD3 DBGMCU_CR_DBG_STANDBYD3_Msk
  19048. #define DBGMCU_CR_DBG_TRACECKEN_Pos (20U)
  19049. #define DBGMCU_CR_DBG_TRACECKEN_Msk (0x1U << DBGMCU_CR_DBG_TRACECKEN_Pos) /*!< 0x00100000 */
  19050. #define DBGMCU_CR_DBG_TRACECKEN DBGMCU_CR_DBG_TRACECKEN_Msk
  19051. #define DBGMCU_CR_DBG_CKD1EN_Pos (21U)
  19052. #define DBGMCU_CR_DBG_CKD1EN_Msk (0x1U << DBGMCU_CR_DBG_CKD1EN_Pos) /*!< 0x00200000 */
  19053. #define DBGMCU_CR_DBG_CKD1EN DBGMCU_CR_DBG_CKD1EN_Msk
  19054. #define DBGMCU_CR_DBG_CKD3EN_Pos (22U)
  19055. #define DBGMCU_CR_DBG_CKD3EN_Msk (0x1U << DBGMCU_CR_DBG_CKD3EN_Pos) /*!< 0x00400000 */
  19056. #define DBGMCU_CR_DBG_CKD3EN DBGMCU_CR_DBG_CKD3EN_Msk
  19057. #define DBGMCU_CR_DBG_TRGOEN_Pos (28U)
  19058. #define DBGMCU_CR_DBG_TRGOEN_Msk (0x1U << DBGMCU_CR_DBG_TRGOEN_Pos) /*!< 0x10000000 */
  19059. #define DBGMCU_CR_DBG_TRGOEN DBGMCU_CR_DBG_TRGOEN_Msk
  19060. /******************** Bit definition for APB3FZ1 register ************/
  19061. #define DBGMCU_APB3FZ1_DBG_WWDG1_Pos (6U)
  19062. #define DBGMCU_APB3FZ1_DBG_WWDG1_Msk (0x1U << DBGMCU_APB3FZ1_DBG_WWDG1_Pos) /*!< 0x00000040 */
  19063. #define DBGMCU_APB3FZ1_DBG_WWDG1 DBGMCU_APB3FZ1_DBG_WWDG1_Msk
  19064. /******************** Bit definition for APB1LFZ1 register ************/
  19065. #define DBGMCU_APB1LFZ1_DBG_TIM2_Pos (0U)
  19066. #define DBGMCU_APB1LFZ1_DBG_TIM2_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM2_Pos) /*!< 0x00000001 */
  19067. #define DBGMCU_APB1LFZ1_DBG_TIM2 DBGMCU_APB1LFZ1_DBG_TIM2_Msk
  19068. #define DBGMCU_APB1LFZ1_DBG_TIM3_Pos (1U)
  19069. #define DBGMCU_APB1LFZ1_DBG_TIM3_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM3_Pos) /*!< 0x00000002 */
  19070. #define DBGMCU_APB1LFZ1_DBG_TIM3 DBGMCU_APB1LFZ1_DBG_TIM3_Msk
  19071. #define DBGMCU_APB1LFZ1_DBG_TIM4_Pos (2U)
  19072. #define DBGMCU_APB1LFZ1_DBG_TIM4_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM4_Pos) /*!< 0x00000004 */
  19073. #define DBGMCU_APB1LFZ1_DBG_TIM4 DBGMCU_APB1LFZ1_DBG_TIM4_Msk
  19074. #define DBGMCU_APB1LFZ1_DBG_TIM5_Pos (3U)
  19075. #define DBGMCU_APB1LFZ1_DBG_TIM5_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM5_Pos) /*!< 0x00000008 */
  19076. #define DBGMCU_APB1LFZ1_DBG_TIM5 DBGMCU_APB1LFZ1_DBG_TIM5_Msk
  19077. #define DBGMCU_APB1LFZ1_DBG_TIM6_Pos (4U)
  19078. #define DBGMCU_APB1LFZ1_DBG_TIM6_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM6_Pos) /*!< 0x00000010 */
  19079. #define DBGMCU_APB1LFZ1_DBG_TIM6 DBGMCU_APB1LFZ1_DBG_TIM6_Msk
  19080. #define DBGMCU_APB1LFZ1_DBG_TIM7_Pos (5U)
  19081. #define DBGMCU_APB1LFZ1_DBG_TIM7_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM7_Pos) /*!< 0x00000020 */
  19082. #define DBGMCU_APB1LFZ1_DBG_TIM7 DBGMCU_APB1LFZ1_DBG_TIM7_Msk
  19083. #define DBGMCU_APB1LFZ1_DBG_TIM12_Pos (6U)
  19084. #define DBGMCU_APB1LFZ1_DBG_TIM12_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM12_Pos) /*!< 0x00000040 */
  19085. #define DBGMCU_APB1LFZ1_DBG_TIM12 DBGMCU_APB1LFZ1_DBG_TIM12_Msk
  19086. #define DBGMCU_APB1LFZ1_DBG_TIM13_Pos (7U)
  19087. #define DBGMCU_APB1LFZ1_DBG_TIM13_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM13_Pos) /*!< 0x00000080 */
  19088. #define DBGMCU_APB1LFZ1_DBG_TIM13 DBGMCU_APB1LFZ1_DBG_TIM13_Msk
  19089. #define DBGMCU_APB1LFZ1_DBG_TIM14_Pos (8U)
  19090. #define DBGMCU_APB1LFZ1_DBG_TIM14_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM14_Pos) /*!< 0x00000100 */
  19091. #define DBGMCU_APB1LFZ1_DBG_TIM14 DBGMCU_APB1LFZ1_DBG_TIM14_Msk
  19092. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos (9U)
  19093. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos) /*!< 0x00000200 */
  19094. #define DBGMCU_APB1LFZ1_DBG_LPTIM1 DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk
  19095. #define DBGMCU_APB1LFZ1_DBG_I2C1_Pos (21U)
  19096. #define DBGMCU_APB1LFZ1_DBG_I2C1_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C1_Pos) /*!< 0x00200000 */
  19097. #define DBGMCU_APB1LFZ1_DBG_I2C1 DBGMCU_APB1LFZ1_DBG_I2C1_Msk
  19098. #define DBGMCU_APB1LFZ1_DBG_I2C2_Pos (22U)
  19099. #define DBGMCU_APB1LFZ1_DBG_I2C2_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C2_Pos) /*!< 0x00400000 */
  19100. #define DBGMCU_APB1LFZ1_DBG_I2C2 DBGMCU_APB1LFZ1_DBG_I2C2_Msk
  19101. #define DBGMCU_APB1LFZ1_DBG_I2C3_Pos (23U)
  19102. #define DBGMCU_APB1LFZ1_DBG_I2C3_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C3_Pos) /*!< 0x00800000 */
  19103. #define DBGMCU_APB1LFZ1_DBG_I2C3 DBGMCU_APB1LFZ1_DBG_I2C3_Msk
  19104. /******************** Bit definition for APB1HFZ1 register ************/
  19105. #define DBGMCU_APB1HFZ1_DBG_FDCAN_Pos (8U)
  19106. #define DBGMCU_APB1HFZ1_DBG_FDCAN_Msk (0x1U << DBGMCU_APB1HFZ1_DBG_FDCAN_Pos) /*!< 0x00000100 */
  19107. #define DBGMCU_APB1HFZ1_DBG_FDCAN DBGMCU_APB1HFZ1_DBG_FDCAN_Msk
  19108. /******************** Bit definition for APB2FZ1 register ************/
  19109. #define DBGMCU_APB2FZ1_DBG_TIM1_Pos (0U)
  19110. #define DBGMCU_APB2FZ1_DBG_TIM1_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM1_Pos) /*!< 0x00000001 */
  19111. #define DBGMCU_APB2FZ1_DBG_TIM1 DBGMCU_APB2FZ1_DBG_TIM1_Msk
  19112. #define DBGMCU_APB2FZ1_DBG_TIM8_Pos (1U)
  19113. #define DBGMCU_APB2FZ1_DBG_TIM8_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM8_Pos) /*!< 0x00000002 */
  19114. #define DBGMCU_APB2FZ1_DBG_TIM8 DBGMCU_APB2FZ1_DBG_TIM8_Msk
  19115. #define DBGMCU_APB2FZ1_DBG_TIM15_Pos (16U)
  19116. #define DBGMCU_APB2FZ1_DBG_TIM15_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM15_Pos) /*!< 0x00010000 */
  19117. #define DBGMCU_APB2FZ1_DBG_TIM15 DBGMCU_APB2FZ1_DBG_TIM15_Msk
  19118. #define DBGMCU_APB2FZ1_DBG_TIM16_Pos (17U)
  19119. #define DBGMCU_APB2FZ1_DBG_TIM16_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM16_Pos) /*!< 0x00020000 */
  19120. #define DBGMCU_APB2FZ1_DBG_TIM16 DBGMCU_APB2FZ1_DBG_TIM16_Msk
  19121. #define DBGMCU_APB2FZ1_DBG_TIM17_Pos (18U)
  19122. #define DBGMCU_APB2FZ1_DBG_TIM17_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM17_Pos) /*!< 0x00040000 */
  19123. #define DBGMCU_APB2FZ1_DBG_TIM17 DBGMCU_APB2FZ1_DBG_TIM17_Msk
  19124. #define DBGMCU_APB2FZ1_DBG_HRTIM_Pos (29U)
  19125. #define DBGMCU_APB2FZ1_DBG_HRTIM_Msk (0x1U << DBGMCU_APB2FZ1_DBG_HRTIM_Pos) /*!< 0x20000000 */
  19126. #define DBGMCU_APB2FZ1_DBG_HRTIM DBGMCU_APB2FZ1_DBG_HRTIM_Msk
  19127. /******************** Bit definition for APB4FZ1 register ************/
  19128. #define DBGMCU_APB4FZ1_DBG_I2C4_Pos (7U)
  19129. #define DBGMCU_APB4FZ1_DBG_I2C4_Msk (0x1U << DBGMCU_APB4FZ1_DBG_I2C4_Pos) /*!< 0x00000080 */
  19130. #define DBGMCU_APB4FZ1_DBG_I2C4 DBGMCU_APB4FZ1_DBG_I2C4_Msk
  19131. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Pos (9U)
  19132. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM2_Pos) /*!< 0x00000200 */
  19133. #define DBGMCU_APB4FZ1_DBG_LPTIM2 DBGMCU_APB4FZ1_DBG_LPTIM2_Msk
  19134. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Pos (10U)
  19135. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM3_Pos) /*!< 0x00000400 */
  19136. #define DBGMCU_APB4FZ1_DBG_LPTIM3 DBGMCU_APB4FZ1_DBG_LPTIM3_Msk
  19137. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Pos (11U)
  19138. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM4_Pos) /*!< 0x00000800 */
  19139. #define DBGMCU_APB4FZ1_DBG_LPTIM4 DBGMCU_APB4FZ1_DBG_LPTIM4_Msk
  19140. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Pos (12U)
  19141. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM5_Pos) /*!< 0x00001000 */
  19142. #define DBGMCU_APB4FZ1_DBG_LPTIM5 DBGMCU_APB4FZ1_DBG_LPTIM5_Msk
  19143. #define DBGMCU_APB4FZ1_DBG_RTC_Pos (16U)
  19144. #define DBGMCU_APB4FZ1_DBG_RTC_Msk (0x1U << DBGMCU_APB4FZ1_DBG_RTC_Pos) /*!< 0x00010000 */
  19145. #define DBGMCU_APB4FZ1_DBG_RTC DBGMCU_APB4FZ1_DBG_RTC_Msk
  19146. #define DBGMCU_APB4FZ1_DBG_IWDG1_Pos (18U)
  19147. #define DBGMCU_APB4FZ1_DBG_IWDG1_Msk (0x1U << DBGMCU_APB4FZ1_DBG_IWDG1_Pos) /*!< 0x00040000 */
  19148. #define DBGMCU_APB4FZ1_DBG_IWDG1 DBGMCU_APB4FZ1_DBG_IWDG1_Msk
  19149. /******************************************************************************/
  19150. /* */
  19151. /* High Resolution Timer (HRTIM) */
  19152. /* */
  19153. /******************************************************************************/
  19154. /******************** Master Timer control register ***************************/
  19155. #define HRTIM_MCR_CK_PSC_Pos (0U)
  19156. #define HRTIM_MCR_CK_PSC_Msk (0x7U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000007 */
  19157. #define HRTIM_MCR_CK_PSC HRTIM_MCR_CK_PSC_Msk /*!< Prescaler mask */
  19158. #define HRTIM_MCR_CK_PSC_0 (0x1U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000001 */
  19159. #define HRTIM_MCR_CK_PSC_1 (0x2U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000002 */
  19160. #define HRTIM_MCR_CK_PSC_2 (0x4U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000004 */
  19161. #define HRTIM_MCR_CONT_Pos (3U)
  19162. #define HRTIM_MCR_CONT_Msk (0x1U << HRTIM_MCR_CONT_Pos) /*!< 0x00000008 */
  19163. #define HRTIM_MCR_CONT HRTIM_MCR_CONT_Msk /*!< Continuous mode */
  19164. #define HRTIM_MCR_RETRIG_Pos (4U)
  19165. #define HRTIM_MCR_RETRIG_Msk (0x1U << HRTIM_MCR_RETRIG_Pos) /*!< 0x00000010 */
  19166. #define HRTIM_MCR_RETRIG HRTIM_MCR_RETRIG_Msk /*!< Rettrigreable mode */
  19167. #define HRTIM_MCR_HALF_Pos (5U)
  19168. #define HRTIM_MCR_HALF_Msk (0x1U << HRTIM_MCR_HALF_Pos) /*!< 0x00000020 */
  19169. #define HRTIM_MCR_HALF HRTIM_MCR_HALF_Msk /*!< Half mode */
  19170. #define HRTIM_MCR_SYNC_IN_Pos (8U)
  19171. #define HRTIM_MCR_SYNC_IN_Msk (0x3U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000300 */
  19172. #define HRTIM_MCR_SYNC_IN HRTIM_MCR_SYNC_IN_Msk /*!< Synchronization input master */
  19173. #define HRTIM_MCR_SYNC_IN_0 (0x1U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000100 */
  19174. #define HRTIM_MCR_SYNC_IN_1 (0x2U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000200 */
  19175. #define HRTIM_MCR_SYNCRSTM_Pos (10U)
  19176. #define HRTIM_MCR_SYNCRSTM_Msk (0x1U << HRTIM_MCR_SYNCRSTM_Pos) /*!< 0x00000400 */
  19177. #define HRTIM_MCR_SYNCRSTM HRTIM_MCR_SYNCRSTM_Msk /*!< Synchronization reset master */
  19178. #define HRTIM_MCR_SYNCSTRTM_Pos (11U)
  19179. #define HRTIM_MCR_SYNCSTRTM_Msk (0x1U << HRTIM_MCR_SYNCSTRTM_Pos) /*!< 0x00000800 */
  19180. #define HRTIM_MCR_SYNCSTRTM HRTIM_MCR_SYNCSTRTM_Msk /*!< Synchronization start master */
  19181. #define HRTIM_MCR_SYNC_OUT_Pos (12U)
  19182. #define HRTIM_MCR_SYNC_OUT_Msk (0x3U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00003000 */
  19183. #define HRTIM_MCR_SYNC_OUT HRTIM_MCR_SYNC_OUT_Msk /*!< Synchronization output master */
  19184. #define HRTIM_MCR_SYNC_OUT_0 (0x1U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00001000 */
  19185. #define HRTIM_MCR_SYNC_OUT_1 (0x2U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00002000 */
  19186. #define HRTIM_MCR_SYNC_SRC_Pos (14U)
  19187. #define HRTIM_MCR_SYNC_SRC_Msk (0x3U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x0000C000 */
  19188. #define HRTIM_MCR_SYNC_SRC HRTIM_MCR_SYNC_SRC_Msk /*!< Synchronization source */
  19189. #define HRTIM_MCR_SYNC_SRC_0 (0x1U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x00004000 */
  19190. #define HRTIM_MCR_SYNC_SRC_1 (0x2U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x00008000 */
  19191. #define HRTIM_MCR_MCEN_Pos (16U)
  19192. #define HRTIM_MCR_MCEN_Msk (0x1U << HRTIM_MCR_MCEN_Pos) /*!< 0x00010000 */
  19193. #define HRTIM_MCR_MCEN HRTIM_MCR_MCEN_Msk /*!< Master counter enable */
  19194. #define HRTIM_MCR_TACEN_Pos (17U)
  19195. #define HRTIM_MCR_TACEN_Msk (0x1U << HRTIM_MCR_TACEN_Pos) /*!< 0x00020000 */
  19196. #define HRTIM_MCR_TACEN HRTIM_MCR_TACEN_Msk /*!< Timer A counter enable */
  19197. #define HRTIM_MCR_TBCEN_Pos (18U)
  19198. #define HRTIM_MCR_TBCEN_Msk (0x1U << HRTIM_MCR_TBCEN_Pos) /*!< 0x00040000 */
  19199. #define HRTIM_MCR_TBCEN HRTIM_MCR_TBCEN_Msk /*!< Timer B counter enable */
  19200. #define HRTIM_MCR_TCCEN_Pos (19U)
  19201. #define HRTIM_MCR_TCCEN_Msk (0x1U << HRTIM_MCR_TCCEN_Pos) /*!< 0x00080000 */
  19202. #define HRTIM_MCR_TCCEN HRTIM_MCR_TCCEN_Msk /*!< Timer C counter enable */
  19203. #define HRTIM_MCR_TDCEN_Pos (20U)
  19204. #define HRTIM_MCR_TDCEN_Msk (0x1U << HRTIM_MCR_TDCEN_Pos) /*!< 0x00100000 */
  19205. #define HRTIM_MCR_TDCEN HRTIM_MCR_TDCEN_Msk /*!< Timer D counter enable */
  19206. #define HRTIM_MCR_TECEN_Pos (21U)
  19207. #define HRTIM_MCR_TECEN_Msk (0x1U << HRTIM_MCR_TECEN_Pos) /*!< 0x00200000 */
  19208. #define HRTIM_MCR_TECEN HRTIM_MCR_TECEN_Msk /*!< Timer E counter enable */
  19209. #define HRTIM_MCR_DACSYNC_Pos (25U)
  19210. #define HRTIM_MCR_DACSYNC_Msk (0x3U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x06000000 */
  19211. #define HRTIM_MCR_DACSYNC HRTIM_MCR_DACSYNC_Msk /*!< DAC sychronization mask */
  19212. #define HRTIM_MCR_DACSYNC_0 (0x1U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x02000000 */
  19213. #define HRTIM_MCR_DACSYNC_1 (0x2U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x04000000 */
  19214. #define HRTIM_MCR_PREEN_Pos (27U)
  19215. #define HRTIM_MCR_PREEN_Msk (0x1U << HRTIM_MCR_PREEN_Pos) /*!< 0x08000000 */
  19216. #define HRTIM_MCR_PREEN HRTIM_MCR_PREEN_Msk /*!< Master preload enable */
  19217. #define HRTIM_MCR_MREPU_Pos (29U)
  19218. #define HRTIM_MCR_MREPU_Msk (0x1U << HRTIM_MCR_MREPU_Pos) /*!< 0x20000000 */
  19219. #define HRTIM_MCR_MREPU HRTIM_MCR_MREPU_Msk /*!< Master repetition update */
  19220. #define HRTIM_MCR_BRSTDMA_Pos (30U)
  19221. #define HRTIM_MCR_BRSTDMA_Msk (0x3U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0xC0000000 */
  19222. #define HRTIM_MCR_BRSTDMA HRTIM_MCR_BRSTDMA_Msk /*!< Burst DMA update */
  19223. #define HRTIM_MCR_BRSTDMA_0 (0x1U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0x40000000 */
  19224. #define HRTIM_MCR_BRSTDMA_1 (0x2U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0x80000000 */
  19225. /******************** Master Timer Interrupt status register ******************/
  19226. #define HRTIM_MISR_MCMP1_Pos (0U)
  19227. #define HRTIM_MISR_MCMP1_Msk (0x1U << HRTIM_MISR_MCMP1_Pos) /*!< 0x00000001 */
  19228. #define HRTIM_MISR_MCMP1 HRTIM_MISR_MCMP1_Msk /*!< Master compare 1 interrupt flag */
  19229. #define HRTIM_MISR_MCMP2_Pos (1U)
  19230. #define HRTIM_MISR_MCMP2_Msk (0x1U << HRTIM_MISR_MCMP2_Pos) /*!< 0x00000002 */
  19231. #define HRTIM_MISR_MCMP2 HRTIM_MISR_MCMP2_Msk /*!< Master compare 2 interrupt flag */
  19232. #define HRTIM_MISR_MCMP3_Pos (2U)
  19233. #define HRTIM_MISR_MCMP3_Msk (0x1U << HRTIM_MISR_MCMP3_Pos) /*!< 0x00000004 */
  19234. #define HRTIM_MISR_MCMP3 HRTIM_MISR_MCMP3_Msk /*!< Master compare 3 interrupt flag */
  19235. #define HRTIM_MISR_MCMP4_Pos (3U)
  19236. #define HRTIM_MISR_MCMP4_Msk (0x1U << HRTIM_MISR_MCMP4_Pos) /*!< 0x00000008 */
  19237. #define HRTIM_MISR_MCMP4 HRTIM_MISR_MCMP4_Msk /*!< Master compare 4 interrupt flag */
  19238. #define HRTIM_MISR_MREP_Pos (4U)
  19239. #define HRTIM_MISR_MREP_Msk (0x1U << HRTIM_MISR_MREP_Pos) /*!< 0x00000010 */
  19240. #define HRTIM_MISR_MREP HRTIM_MISR_MREP_Msk /*!< Master Repetition interrupt flag */
  19241. #define HRTIM_MISR_SYNC_Pos (5U)
  19242. #define HRTIM_MISR_SYNC_Msk (0x1U << HRTIM_MISR_SYNC_Pos) /*!< 0x00000020 */
  19243. #define HRTIM_MISR_SYNC HRTIM_MISR_SYNC_Msk /*!< Synchronization input interrupt flag */
  19244. #define HRTIM_MISR_MUPD_Pos (6U)
  19245. #define HRTIM_MISR_MUPD_Msk (0x1U << HRTIM_MISR_MUPD_Pos) /*!< 0x00000040 */
  19246. #define HRTIM_MISR_MUPD HRTIM_MISR_MUPD_Msk /*!< Master update interrupt flag */
  19247. /******************** Master Timer Interrupt clear register *******************/
  19248. #define HRTIM_MICR_MCMP1_Pos (0U)
  19249. #define HRTIM_MICR_MCMP1_Msk (0x1U << HRTIM_MICR_MCMP1_Pos) /*!< 0x00000001 */
  19250. #define HRTIM_MICR_MCMP1 HRTIM_MICR_MCMP1_Msk /*!< Master compare 1 interrupt flag clear */
  19251. #define HRTIM_MICR_MCMP2_Pos (1U)
  19252. #define HRTIM_MICR_MCMP2_Msk (0x1U << HRTIM_MICR_MCMP2_Pos) /*!< 0x00000002 */
  19253. #define HRTIM_MICR_MCMP2 HRTIM_MICR_MCMP2_Msk /*!< Master compare 2 interrupt flag clear */
  19254. #define HRTIM_MICR_MCMP3_Pos (2U)
  19255. #define HRTIM_MICR_MCMP3_Msk (0x1U << HRTIM_MICR_MCMP3_Pos) /*!< 0x00000004 */
  19256. #define HRTIM_MICR_MCMP3 HRTIM_MICR_MCMP3_Msk /*!< Master compare 3 interrupt flag clear */
  19257. #define HRTIM_MICR_MCMP4_Pos (3U)
  19258. #define HRTIM_MICR_MCMP4_Msk (0x1U << HRTIM_MICR_MCMP4_Pos) /*!< 0x00000008 */
  19259. #define HRTIM_MICR_MCMP4 HRTIM_MICR_MCMP4_Msk /*!< Master compare 4 interrupt flag clear */
  19260. #define HRTIM_MICR_MREP_Pos (4U)
  19261. #define HRTIM_MICR_MREP_Msk (0x1U << HRTIM_MICR_MREP_Pos) /*!< 0x00000010 */
  19262. #define HRTIM_MICR_MREP HRTIM_MICR_MREP_Msk /*!< Master Repetition interrupt flag clear */
  19263. #define HRTIM_MICR_SYNC_Pos (5U)
  19264. #define HRTIM_MICR_SYNC_Msk (0x1U << HRTIM_MICR_SYNC_Pos) /*!< 0x00000020 */
  19265. #define HRTIM_MICR_SYNC HRTIM_MICR_SYNC_Msk /*!< Synchronization input interrupt flag clear */
  19266. #define HRTIM_MICR_MUPD_Pos (6U)
  19267. #define HRTIM_MICR_MUPD_Msk (0x1U << HRTIM_MICR_MUPD_Pos) /*!< 0x00000040 */
  19268. #define HRTIM_MICR_MUPD HRTIM_MICR_MUPD_Msk /*!< Master update interrupt flag clear */
  19269. /******************** Master Timer DMA/Interrupt enable register **************/
  19270. #define HRTIM_MDIER_MCMP1IE_Pos (0U)
  19271. #define HRTIM_MDIER_MCMP1IE_Msk (0x1U << HRTIM_MDIER_MCMP1IE_Pos) /*!< 0x00000001 */
  19272. #define HRTIM_MDIER_MCMP1IE HRTIM_MDIER_MCMP1IE_Msk /*!< Master compare 1 interrupt enable */
  19273. #define HRTIM_MDIER_MCMP2IE_Pos (1U)
  19274. #define HRTIM_MDIER_MCMP2IE_Msk (0x1U << HRTIM_MDIER_MCMP2IE_Pos) /*!< 0x00000002 */
  19275. #define HRTIM_MDIER_MCMP2IE HRTIM_MDIER_MCMP2IE_Msk /*!< Master compare 2 interrupt enable */
  19276. #define HRTIM_MDIER_MCMP3IE_Pos (2U)
  19277. #define HRTIM_MDIER_MCMP3IE_Msk (0x1U << HRTIM_MDIER_MCMP3IE_Pos) /*!< 0x00000004 */
  19278. #define HRTIM_MDIER_MCMP3IE HRTIM_MDIER_MCMP3IE_Msk /*!< Master compare 3 interrupt enable */
  19279. #define HRTIM_MDIER_MCMP4IE_Pos (3U)
  19280. #define HRTIM_MDIER_MCMP4IE_Msk (0x1U << HRTIM_MDIER_MCMP4IE_Pos) /*!< 0x00000008 */
  19281. #define HRTIM_MDIER_MCMP4IE HRTIM_MDIER_MCMP4IE_Msk /*!< Master compare 4 interrupt enable */
  19282. #define HRTIM_MDIER_MREPIE_Pos (4U)
  19283. #define HRTIM_MDIER_MREPIE_Msk (0x1U << HRTIM_MDIER_MREPIE_Pos) /*!< 0x00000010 */
  19284. #define HRTIM_MDIER_MREPIE HRTIM_MDIER_MREPIE_Msk /*!< Master Repetition interrupt enable */
  19285. #define HRTIM_MDIER_SYNCIE_Pos (5U)
  19286. #define HRTIM_MDIER_SYNCIE_Msk (0x1U << HRTIM_MDIER_SYNCIE_Pos) /*!< 0x00000020 */
  19287. #define HRTIM_MDIER_SYNCIE HRTIM_MDIER_SYNCIE_Msk /*!< Synchronization input interrupt enable */
  19288. #define HRTIM_MDIER_MUPDIE_Pos (6U)
  19289. #define HRTIM_MDIER_MUPDIE_Msk (0x1U << HRTIM_MDIER_MUPDIE_Pos) /*!< 0x00000040 */
  19290. #define HRTIM_MDIER_MUPDIE HRTIM_MDIER_MUPDIE_Msk /*!< Master update interrupt enable */
  19291. #define HRTIM_MDIER_MCMP1DE_Pos (16U)
  19292. #define HRTIM_MDIER_MCMP1DE_Msk (0x1U << HRTIM_MDIER_MCMP1DE_Pos) /*!< 0x00010000 */
  19293. #define HRTIM_MDIER_MCMP1DE HRTIM_MDIER_MCMP1DE_Msk /*!< Master compare 1 DMA enable */
  19294. #define HRTIM_MDIER_MCMP2DE_Pos (17U)
  19295. #define HRTIM_MDIER_MCMP2DE_Msk (0x1U << HRTIM_MDIER_MCMP2DE_Pos) /*!< 0x00020000 */
  19296. #define HRTIM_MDIER_MCMP2DE HRTIM_MDIER_MCMP2DE_Msk /*!< Master compare 2 DMA enable */
  19297. #define HRTIM_MDIER_MCMP3DE_Pos (18U)
  19298. #define HRTIM_MDIER_MCMP3DE_Msk (0x1U << HRTIM_MDIER_MCMP3DE_Pos) /*!< 0x00040000 */
  19299. #define HRTIM_MDIER_MCMP3DE HRTIM_MDIER_MCMP3DE_Msk /*!< Master compare 3 DMA enable */
  19300. #define HRTIM_MDIER_MCMP4DE_Pos (19U)
  19301. #define HRTIM_MDIER_MCMP4DE_Msk (0x1U << HRTIM_MDIER_MCMP4DE_Pos) /*!< 0x00080000 */
  19302. #define HRTIM_MDIER_MCMP4DE HRTIM_MDIER_MCMP4DE_Msk /*!< Master compare 4 DMA enable */
  19303. #define HRTIM_MDIER_MREPDE_Pos (20U)
  19304. #define HRTIM_MDIER_MREPDE_Msk (0x1U << HRTIM_MDIER_MREPDE_Pos) /*!< 0x00100000 */
  19305. #define HRTIM_MDIER_MREPDE HRTIM_MDIER_MREPDE_Msk /*!< Master Repetition DMA enable */
  19306. #define HRTIM_MDIER_SYNCDE_Pos (21U)
  19307. #define HRTIM_MDIER_SYNCDE_Msk (0x1U << HRTIM_MDIER_SYNCDE_Pos) /*!< 0x00200000 */
  19308. #define HRTIM_MDIER_SYNCDE HRTIM_MDIER_SYNCDE_Msk /*!< Synchronization input DMA enable */
  19309. #define HRTIM_MDIER_MUPDDE_Pos (22U)
  19310. #define HRTIM_MDIER_MUPDDE_Msk (0x1U << HRTIM_MDIER_MUPDDE_Pos) /*!< 0x00400000 */
  19311. #define HRTIM_MDIER_MUPDDE HRTIM_MDIER_MUPDDE_Msk /*!< Master update DMA enable */
  19312. /******************* Bit definition for HRTIM_MCNTR register ****************/
  19313. #define HRTIM_MCNTR_MCNTR_Pos (0U)
  19314. #define HRTIM_MCNTR_MCNTR_Msk (0xFFFFU << HRTIM_MCNTR_MCNTR_Pos) /*!< 0x0000FFFF */
  19315. #define HRTIM_MCNTR_MCNTR HRTIM_MCNTR_MCNTR_Msk /*!<Counter Value */
  19316. /******************* Bit definition for HRTIM_MPER register *****************/
  19317. #define HRTIM_MPER_MPER_Pos (0U)
  19318. #define HRTIM_MPER_MPER_Msk (0xFFFFU << HRTIM_MPER_MPER_Pos) /*!< 0x0000FFFF */
  19319. #define HRTIM_MPER_MPER HRTIM_MPER_MPER_Msk /*!< Period Value */
  19320. /******************* Bit definition for HRTIM_MREP register *****************/
  19321. #define HRTIM_MREP_MREP_Pos (0U)
  19322. #define HRTIM_MREP_MREP_Msk (0xFFU << HRTIM_MREP_MREP_Pos) /*!< 0x000000FF */
  19323. #define HRTIM_MREP_MREP HRTIM_MREP_MREP_Msk /*!<Repetition Value */
  19324. /******************* Bit definition for HRTIM_MCMP1R register *****************/
  19325. #define HRTIM_MCMP1R_MCMP1R_Pos (0U)
  19326. #define HRTIM_MCMP1R_MCMP1R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP1R_Pos) /*!< 0x0000FFFF */
  19327. #define HRTIM_MCMP1R_MCMP1R HRTIM_MCMP1R_MCMP1R_Msk /*!<Compare Value */
  19328. /******************* Bit definition for HRTIM_MCMP2R register *****************/
  19329. #define HRTIM_MCMP1R_MCMP2R_Pos (0U)
  19330. #define HRTIM_MCMP1R_MCMP2R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP2R_Pos) /*!< 0x0000FFFF */
  19331. #define HRTIM_MCMP1R_MCMP2R HRTIM_MCMP1R_MCMP2R_Msk /*!<Compare Value */
  19332. /******************* Bit definition for HRTIM_MCMP3R register *****************/
  19333. #define HRTIM_MCMP1R_MCMP3R_Pos (0U)
  19334. #define HRTIM_MCMP1R_MCMP3R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP3R_Pos) /*!< 0x0000FFFF */
  19335. #define HRTIM_MCMP1R_MCMP3R HRTIM_MCMP1R_MCMP3R_Msk /*!<Compare Value */
  19336. /******************* Bit definition for HRTIM_MCMP4R register *****************/
  19337. #define HRTIM_MCMP1R_MCMP4R_Pos (0U)
  19338. #define HRTIM_MCMP1R_MCMP4R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP4R_Pos) /*!< 0x0000FFFF */
  19339. #define HRTIM_MCMP1R_MCMP4R HRTIM_MCMP1R_MCMP4R_Msk /*!<Compare Value */
  19340. /******************** Slave control register **********************************/
  19341. #define HRTIM_TIMCR_CK_PSC_Pos (0U)
  19342. #define HRTIM_TIMCR_CK_PSC_Msk (0x7U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000007 */
  19343. #define HRTIM_TIMCR_CK_PSC HRTIM_TIMCR_CK_PSC_Msk /*!< Slave prescaler mask*/
  19344. #define HRTIM_TIMCR_CK_PSC_0 (0x1U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000001 */
  19345. #define HRTIM_TIMCR_CK_PSC_1 (0x2U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000002 */
  19346. #define HRTIM_TIMCR_CK_PSC_2 (0x4U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000004 */
  19347. #define HRTIM_TIMCR_CONT_Pos (3U)
  19348. #define HRTIM_TIMCR_CONT_Msk (0x1U << HRTIM_TIMCR_CONT_Pos) /*!< 0x00000008 */
  19349. #define HRTIM_TIMCR_CONT HRTIM_TIMCR_CONT_Msk /*!< Slave continuous mode */
  19350. #define HRTIM_TIMCR_RETRIG_Pos (4U)
  19351. #define HRTIM_TIMCR_RETRIG_Msk (0x1U << HRTIM_TIMCR_RETRIG_Pos) /*!< 0x00000010 */
  19352. #define HRTIM_TIMCR_RETRIG HRTIM_TIMCR_RETRIG_Msk /*!< Slave Retrigreable mode */
  19353. #define HRTIM_TIMCR_HALF_Pos (5U)
  19354. #define HRTIM_TIMCR_HALF_Msk (0x1U << HRTIM_TIMCR_HALF_Pos) /*!< 0x00000020 */
  19355. #define HRTIM_TIMCR_HALF HRTIM_TIMCR_HALF_Msk /*!< Slave Half mode */
  19356. #define HRTIM_TIMCR_PSHPLL_Pos (6U)
  19357. #define HRTIM_TIMCR_PSHPLL_Msk (0x1U << HRTIM_TIMCR_PSHPLL_Pos) /*!< 0x00000040 */
  19358. #define HRTIM_TIMCR_PSHPLL HRTIM_TIMCR_PSHPLL_Msk /*!< Slave push-pull mode */
  19359. #define HRTIM_TIMCR_SYNCRST_Pos (10U)
  19360. #define HRTIM_TIMCR_SYNCRST_Msk (0x1U << HRTIM_TIMCR_SYNCRST_Pos) /*!< 0x00000400 */
  19361. #define HRTIM_TIMCR_SYNCRST HRTIM_TIMCR_SYNCRST_Msk /*!< Slave synchronization resets */
  19362. #define HRTIM_TIMCR_SYNCSTRT_Pos (11U)
  19363. #define HRTIM_TIMCR_SYNCSTRT_Msk (0x1U << HRTIM_TIMCR_SYNCSTRT_Pos) /*!< 0x00000800 */
  19364. #define HRTIM_TIMCR_SYNCSTRT HRTIM_TIMCR_SYNCSTRT_Msk /*!< Slave synchronization starts */
  19365. #define HRTIM_TIMCR_DELCMP2_Pos (12U)
  19366. #define HRTIM_TIMCR_DELCMP2_Msk (0x3U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00003000 */
  19367. #define HRTIM_TIMCR_DELCMP2 HRTIM_TIMCR_DELCMP2_Msk /*!< Slave delayed compartor 2 mode mask */
  19368. #define HRTIM_TIMCR_DELCMP2_0 (0x1U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00001000 */
  19369. #define HRTIM_TIMCR_DELCMP2_1 (0x2U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00002000 */
  19370. #define HRTIM_TIMCR_DELCMP4_Pos (14U)
  19371. #define HRTIM_TIMCR_DELCMP4_Msk (0x3U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x0000C000 */
  19372. #define HRTIM_TIMCR_DELCMP4 HRTIM_TIMCR_DELCMP4_Msk /*!< Slave delayed compartor 4 mode mask */
  19373. #define HRTIM_TIMCR_DELCMP4_0 (0x1U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x00004000 */
  19374. #define HRTIM_TIMCR_DELCMP4_1 (0x2U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x00008000 */
  19375. #define HRTIM_TIMCR_TREPU_Pos (17U)
  19376. #define HRTIM_TIMCR_TREPU_Msk (0x1U << HRTIM_TIMCR_TREPU_Pos) /*!< 0x00020000 */
  19377. #define HRTIM_TIMCR_TREPU HRTIM_TIMCR_TREPU_Msk /*!< Slave repetition update */
  19378. #define HRTIM_TIMCR_TRSTU_Pos (18U)
  19379. #define HRTIM_TIMCR_TRSTU_Msk (0x1U << HRTIM_TIMCR_TRSTU_Pos) /*!< 0x00040000 */
  19380. #define HRTIM_TIMCR_TRSTU HRTIM_TIMCR_TRSTU_Msk /*!< Slave reset update */
  19381. #define HRTIM_TIMCR_TAU_Pos (19U)
  19382. #define HRTIM_TIMCR_TAU_Msk (0x1U << HRTIM_TIMCR_TAU_Pos) /*!< 0x00080000 */
  19383. #define HRTIM_TIMCR_TAU HRTIM_TIMCR_TAU_Msk /*!< Slave Timer A update reserved for TIM A */
  19384. #define HRTIM_TIMCR_TBU_Pos (20U)
  19385. #define HRTIM_TIMCR_TBU_Msk (0x1U << HRTIM_TIMCR_TBU_Pos) /*!< 0x00100000 */
  19386. #define HRTIM_TIMCR_TBU HRTIM_TIMCR_TBU_Msk /*!< Slave Timer B update reserved for TIM B */
  19387. #define HRTIM_TIMCR_TCU_Pos (21U)
  19388. #define HRTIM_TIMCR_TCU_Msk (0x1U << HRTIM_TIMCR_TCU_Pos) /*!< 0x00200000 */
  19389. #define HRTIM_TIMCR_TCU HRTIM_TIMCR_TCU_Msk /*!< Slave Timer C update reserved for TIM C */
  19390. #define HRTIM_TIMCR_TDU_Pos (22U)
  19391. #define HRTIM_TIMCR_TDU_Msk (0x1U << HRTIM_TIMCR_TDU_Pos) /*!< 0x00400000 */
  19392. #define HRTIM_TIMCR_TDU HRTIM_TIMCR_TDU_Msk /*!< Slave Timer D update reserved for TIM D */
  19393. #define HRTIM_TIMCR_TEU_Pos (23U)
  19394. #define HRTIM_TIMCR_TEU_Msk (0x1U << HRTIM_TIMCR_TEU_Pos) /*!< 0x00800000 */
  19395. #define HRTIM_TIMCR_TEU HRTIM_TIMCR_TEU_Msk /*!< Slave Timer E update reserved for TIM E */
  19396. #define HRTIM_TIMCR_MSTU_Pos (24U)
  19397. #define HRTIM_TIMCR_MSTU_Msk (0x1U << HRTIM_TIMCR_MSTU_Pos) /*!< 0x01000000 */
  19398. #define HRTIM_TIMCR_MSTU HRTIM_TIMCR_MSTU_Msk /*!< Master Update */
  19399. #define HRTIM_TIMCR_DACSYNC_Pos (25U)
  19400. #define HRTIM_TIMCR_DACSYNC_Msk (0x3U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x06000000 */
  19401. #define HRTIM_TIMCR_DACSYNC HRTIM_TIMCR_DACSYNC_Msk /*!< DAC sychronization mask */
  19402. #define HRTIM_TIMCR_DACSYNC_0 (0x1U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x02000000 */
  19403. #define HRTIM_TIMCR_DACSYNC_1 (0x2U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x04000000 */
  19404. #define HRTIM_TIMCR_PREEN_Pos (27U)
  19405. #define HRTIM_TIMCR_PREEN_Msk (0x1U << HRTIM_TIMCR_PREEN_Pos) /*!< 0x08000000 */
  19406. #define HRTIM_TIMCR_PREEN HRTIM_TIMCR_PREEN_Msk /*!< Slave preload enable */
  19407. #define HRTIM_TIMCR_UPDGAT_Pos (28U)
  19408. #define HRTIM_TIMCR_UPDGAT_Msk (0xFU << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0xF0000000 */
  19409. #define HRTIM_TIMCR_UPDGAT HRTIM_TIMCR_UPDGAT_Msk /*!< Slave update gating mask */
  19410. #define HRTIM_TIMCR_UPDGAT_0 (0x1U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x10000000 */
  19411. #define HRTIM_TIMCR_UPDGAT_1 (0x2U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x20000000 */
  19412. #define HRTIM_TIMCR_UPDGAT_2 (0x4U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x40000000 */
  19413. #define HRTIM_TIMCR_UPDGAT_3 (0x8U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x80000000 */
  19414. /******************** Slave Interrupt status register **************************/
  19415. #define HRTIM_TIMISR_CMP1_Pos (0U)
  19416. #define HRTIM_TIMISR_CMP1_Msk (0x1U << HRTIM_TIMISR_CMP1_Pos) /*!< 0x00000001 */
  19417. #define HRTIM_TIMISR_CMP1 HRTIM_TIMISR_CMP1_Msk /*!< Slave compare 1 interrupt flag */
  19418. #define HRTIM_TIMISR_CMP2_Pos (1U)
  19419. #define HRTIM_TIMISR_CMP2_Msk (0x1U << HRTIM_TIMISR_CMP2_Pos) /*!< 0x00000002 */
  19420. #define HRTIM_TIMISR_CMP2 HRTIM_TIMISR_CMP2_Msk /*!< Slave compare 2 interrupt flag */
  19421. #define HRTIM_TIMISR_CMP3_Pos (2U)
  19422. #define HRTIM_TIMISR_CMP3_Msk (0x1U << HRTIM_TIMISR_CMP3_Pos) /*!< 0x00000004 */
  19423. #define HRTIM_TIMISR_CMP3 HRTIM_TIMISR_CMP3_Msk /*!< Slave compare 3 interrupt flag */
  19424. #define HRTIM_TIMISR_CMP4_Pos (3U)
  19425. #define HRTIM_TIMISR_CMP4_Msk (0x1U << HRTIM_TIMISR_CMP4_Pos) /*!< 0x00000008 */
  19426. #define HRTIM_TIMISR_CMP4 HRTIM_TIMISR_CMP4_Msk /*!< Slave compare 4 interrupt flag */
  19427. #define HRTIM_TIMISR_REP_Pos (4U)
  19428. #define HRTIM_TIMISR_REP_Msk (0x1U << HRTIM_TIMISR_REP_Pos) /*!< 0x00000010 */
  19429. #define HRTIM_TIMISR_REP HRTIM_TIMISR_REP_Msk /*!< Slave repetition interrupt flag */
  19430. #define HRTIM_TIMISR_UPD_Pos (6U)
  19431. #define HRTIM_TIMISR_UPD_Msk (0x1U << HRTIM_TIMISR_UPD_Pos) /*!< 0x00000040 */
  19432. #define HRTIM_TIMISR_UPD HRTIM_TIMISR_UPD_Msk /*!< Slave update interrupt flag */
  19433. #define HRTIM_TIMISR_CPT1_Pos (7U)
  19434. #define HRTIM_TIMISR_CPT1_Msk (0x1U << HRTIM_TIMISR_CPT1_Pos) /*!< 0x00000080 */
  19435. #define HRTIM_TIMISR_CPT1 HRTIM_TIMISR_CPT1_Msk /*!< Slave capture 1 interrupt flag */
  19436. #define HRTIM_TIMISR_CPT2_Pos (8U)
  19437. #define HRTIM_TIMISR_CPT2_Msk (0x1U << HRTIM_TIMISR_CPT2_Pos) /*!< 0x00000100 */
  19438. #define HRTIM_TIMISR_CPT2 HRTIM_TIMISR_CPT2_Msk /*!< Slave capture 2 interrupt flag */
  19439. #define HRTIM_TIMISR_SET1_Pos (9U)
  19440. #define HRTIM_TIMISR_SET1_Msk (0x1U << HRTIM_TIMISR_SET1_Pos) /*!< 0x00000200 */
  19441. #define HRTIM_TIMISR_SET1 HRTIM_TIMISR_SET1_Msk /*!< Slave output 1 set interrupt flag */
  19442. #define HRTIM_TIMISR_RST1_Pos (10U)
  19443. #define HRTIM_TIMISR_RST1_Msk (0x1U << HRTIM_TIMISR_RST1_Pos) /*!< 0x00000400 */
  19444. #define HRTIM_TIMISR_RST1 HRTIM_TIMISR_RST1_Msk /*!< Slave output 1 reset interrupt flag */
  19445. #define HRTIM_TIMISR_SET2_Pos (11U)
  19446. #define HRTIM_TIMISR_SET2_Msk (0x1U << HRTIM_TIMISR_SET2_Pos) /*!< 0x00000800 */
  19447. #define HRTIM_TIMISR_SET2 HRTIM_TIMISR_SET2_Msk /*!< Slave output 2 set interrupt flag */
  19448. #define HRTIM_TIMISR_RST2_Pos (12U)
  19449. #define HRTIM_TIMISR_RST2_Msk (0x1U << HRTIM_TIMISR_RST2_Pos) /*!< 0x00001000 */
  19450. #define HRTIM_TIMISR_RST2 HRTIM_TIMISR_RST2_Msk /*!< Slave output 2 reset interrupt flag */
  19451. #define HRTIM_TIMISR_RST_Pos (13U)
  19452. #define HRTIM_TIMISR_RST_Msk (0x1U << HRTIM_TIMISR_RST_Pos) /*!< 0x00002000 */
  19453. #define HRTIM_TIMISR_RST HRTIM_TIMISR_RST_Msk /*!< Slave reset interrupt flag */
  19454. #define HRTIM_TIMISR_DLYPRT_Pos (14U)
  19455. #define HRTIM_TIMISR_DLYPRT_Msk (0x1U << HRTIM_TIMISR_DLYPRT_Pos) /*!< 0x00004000 */
  19456. #define HRTIM_TIMISR_DLYPRT HRTIM_TIMISR_DLYPRT_Msk /*!< Slave output 1 delay protection interrupt flag */
  19457. #define HRTIM_TIMISR_CPPSTAT_Pos (16U)
  19458. #define HRTIM_TIMISR_CPPSTAT_Msk (0x1U << HRTIM_TIMISR_CPPSTAT_Pos) /*!< 0x00010000 */
  19459. #define HRTIM_TIMISR_CPPSTAT HRTIM_TIMISR_CPPSTAT_Msk /*!< Slave current push-pull flag */
  19460. #define HRTIM_TIMISR_IPPSTAT_Pos (17U)
  19461. #define HRTIM_TIMISR_IPPSTAT_Msk (0x1U << HRTIM_TIMISR_IPPSTAT_Pos) /*!< 0x00020000 */
  19462. #define HRTIM_TIMISR_IPPSTAT HRTIM_TIMISR_IPPSTAT_Msk /*!< Slave idle push-pull flag */
  19463. #define HRTIM_TIMISR_O1STAT_Pos (18U)
  19464. #define HRTIM_TIMISR_O1STAT_Msk (0x1U << HRTIM_TIMISR_O1STAT_Pos) /*!< 0x00040000 */
  19465. #define HRTIM_TIMISR_O1STAT HRTIM_TIMISR_O1STAT_Msk /*!< Slave output 1 state flag */
  19466. #define HRTIM_TIMISR_O2STAT_Pos (19U)
  19467. #define HRTIM_TIMISR_O2STAT_Msk (0x1U << HRTIM_TIMISR_O2STAT_Pos) /*!< 0x00080000 */
  19468. #define HRTIM_TIMISR_O2STAT HRTIM_TIMISR_O2STAT_Msk /*!< Slave output 2 state flag */
  19469. #define HRTIM_TIMISR_O1CPY_Pos (20U)
  19470. #define HRTIM_TIMISR_O1CPY_Msk (0x1U << HRTIM_TIMISR_O1CPY_Pos) /*!< 0x00100000 */
  19471. #define HRTIM_TIMISR_O1CPY HRTIM_TIMISR_O1CPY_Msk /*!< Slave output 1 copy flag */
  19472. #define HRTIM_TIMISR_O2CPY_Pos (21U)
  19473. #define HRTIM_TIMISR_O2CPY_Msk (0x1U << HRTIM_TIMISR_O2CPY_Pos) /*!< 0x00200000 */
  19474. #define HRTIM_TIMISR_O2CPY HRTIM_TIMISR_O2CPY_Msk /*!< Slave output 2 copy flag */
  19475. /******************** Slave Interrupt clear register **************************/
  19476. #define HRTIM_TIMICR_CMP1C_Pos (0U)
  19477. #define HRTIM_TIMICR_CMP1C_Msk (0x1U << HRTIM_TIMICR_CMP1C_Pos) /*!< 0x00000001 */
  19478. #define HRTIM_TIMICR_CMP1C HRTIM_TIMICR_CMP1C_Msk /*!< Slave compare 1 clear flag */
  19479. #define HRTIM_TIMICR_CMP2C_Pos (1U)
  19480. #define HRTIM_TIMICR_CMP2C_Msk (0x1U << HRTIM_TIMICR_CMP2C_Pos) /*!< 0x00000002 */
  19481. #define HRTIM_TIMICR_CMP2C HRTIM_TIMICR_CMP2C_Msk /*!< Slave compare 2 clear flag */
  19482. #define HRTIM_TIMICR_CMP3C_Pos (2U)
  19483. #define HRTIM_TIMICR_CMP3C_Msk (0x1U << HRTIM_TIMICR_CMP3C_Pos) /*!< 0x00000004 */
  19484. #define HRTIM_TIMICR_CMP3C HRTIM_TIMICR_CMP3C_Msk /*!< Slave compare 3 clear flag */
  19485. #define HRTIM_TIMICR_CMP4C_Pos (3U)
  19486. #define HRTIM_TIMICR_CMP4C_Msk (0x1U << HRTIM_TIMICR_CMP4C_Pos) /*!< 0x00000008 */
  19487. #define HRTIM_TIMICR_CMP4C HRTIM_TIMICR_CMP4C_Msk /*!< Slave compare 4 clear flag */
  19488. #define HRTIM_TIMICR_REPC_Pos (4U)
  19489. #define HRTIM_TIMICR_REPC_Msk (0x1U << HRTIM_TIMICR_REPC_Pos) /*!< 0x00000010 */
  19490. #define HRTIM_TIMICR_REPC HRTIM_TIMICR_REPC_Msk /*!< Slave repetition clear flag */
  19491. #define HRTIM_TIMICR_UPDC_Pos (6U)
  19492. #define HRTIM_TIMICR_UPDC_Msk (0x1U << HRTIM_TIMICR_UPDC_Pos) /*!< 0x00000040 */
  19493. #define HRTIM_TIMICR_UPDC HRTIM_TIMICR_UPDC_Msk /*!< Slave update clear flag */
  19494. #define HRTIM_TIMICR_CPT1C_Pos (7U)
  19495. #define HRTIM_TIMICR_CPT1C_Msk (0x1U << HRTIM_TIMICR_CPT1C_Pos) /*!< 0x00000080 */
  19496. #define HRTIM_TIMICR_CPT1C HRTIM_TIMICR_CPT1C_Msk /*!< Slave capture 1 clear flag */
  19497. #define HRTIM_TIMICR_CPT2C_Pos (8U)
  19498. #define HRTIM_TIMICR_CPT2C_Msk (0x1U << HRTIM_TIMICR_CPT2C_Pos) /*!< 0x00000100 */
  19499. #define HRTIM_TIMICR_CPT2C HRTIM_TIMICR_CPT2C_Msk /*!< Slave capture 2 clear flag */
  19500. #define HRTIM_TIMICR_SET1C_Pos (9U)
  19501. #define HRTIM_TIMICR_SET1C_Msk (0x1U << HRTIM_TIMICR_SET1C_Pos) /*!< 0x00000200 */
  19502. #define HRTIM_TIMICR_SET1C HRTIM_TIMICR_SET1C_Msk /*!< Slave output 1 set clear flag */
  19503. #define HRTIM_TIMICR_RST1C_Pos (10U)
  19504. #define HRTIM_TIMICR_RST1C_Msk (0x1U << HRTIM_TIMICR_RST1C_Pos) /*!< 0x00000400 */
  19505. #define HRTIM_TIMICR_RST1C HRTIM_TIMICR_RST1C_Msk /*!< Slave output 1 reset clear flag */
  19506. #define HRTIM_TIMICR_SET2C_Pos (11U)
  19507. #define HRTIM_TIMICR_SET2C_Msk (0x1U << HRTIM_TIMICR_SET2C_Pos) /*!< 0x00000800 */
  19508. #define HRTIM_TIMICR_SET2C HRTIM_TIMICR_SET2C_Msk /*!< Slave output 2 set clear flag */
  19509. #define HRTIM_TIMICR_RST2C_Pos (12U)
  19510. #define HRTIM_TIMICR_RST2C_Msk (0x1U << HRTIM_TIMICR_RST2C_Pos) /*!< 0x00001000 */
  19511. #define HRTIM_TIMICR_RST2C HRTIM_TIMICR_RST2C_Msk /*!< Slave output 2 reset clear flag */
  19512. #define HRTIM_TIMICR_RSTC_Pos (13U)
  19513. #define HRTIM_TIMICR_RSTC_Msk (0x1U << HRTIM_TIMICR_RSTC_Pos) /*!< 0x00002000 */
  19514. #define HRTIM_TIMICR_RSTC HRTIM_TIMICR_RSTC_Msk /*!< Slave reset clear flag */
  19515. #define HRTIM_TIMICR_DLYPRTC_Pos (14U)
  19516. #define HRTIM_TIMICR_DLYPRTC_Msk (0x1U << HRTIM_TIMICR_DLYPRTC_Pos) /*!< 0x00004000 */
  19517. #define HRTIM_TIMICR_DLYPRTC HRTIM_TIMICR_DLYPRTC_Msk /*!< Slave output 1 delay protection clear flag */
  19518. /******************** Slave DMA/Interrupt enable register *********************/
  19519. #define HRTIM_TIMDIER_CMP1IE_Pos (0U)
  19520. #define HRTIM_TIMDIER_CMP1IE_Msk (0x1U << HRTIM_TIMDIER_CMP1IE_Pos) /*!< 0x00000001 */
  19521. #define HRTIM_TIMDIER_CMP1IE HRTIM_TIMDIER_CMP1IE_Msk /*!< Slave compare 1 interrupt enable */
  19522. #define HRTIM_TIMDIER_CMP2IE_Pos (1U)
  19523. #define HRTIM_TIMDIER_CMP2IE_Msk (0x1U << HRTIM_TIMDIER_CMP2IE_Pos) /*!< 0x00000002 */
  19524. #define HRTIM_TIMDIER_CMP2IE HRTIM_TIMDIER_CMP2IE_Msk /*!< Slave compare 2 interrupt enable */
  19525. #define HRTIM_TIMDIER_CMP3IE_Pos (2U)
  19526. #define HRTIM_TIMDIER_CMP3IE_Msk (0x1U << HRTIM_TIMDIER_CMP3IE_Pos) /*!< 0x00000004 */
  19527. #define HRTIM_TIMDIER_CMP3IE HRTIM_TIMDIER_CMP3IE_Msk /*!< Slave compare 3 interrupt enable */
  19528. #define HRTIM_TIMDIER_CMP4IE_Pos (3U)
  19529. #define HRTIM_TIMDIER_CMP4IE_Msk (0x1U << HRTIM_TIMDIER_CMP4IE_Pos) /*!< 0x00000008 */
  19530. #define HRTIM_TIMDIER_CMP4IE HRTIM_TIMDIER_CMP4IE_Msk /*!< Slave compare 4 interrupt enable */
  19531. #define HRTIM_TIMDIER_REPIE_Pos (4U)
  19532. #define HRTIM_TIMDIER_REPIE_Msk (0x1U << HRTIM_TIMDIER_REPIE_Pos) /*!< 0x00000010 */
  19533. #define HRTIM_TIMDIER_REPIE HRTIM_TIMDIER_REPIE_Msk /*!< Slave repetition interrupt enable */
  19534. #define HRTIM_TIMDIER_UPDIE_Pos (6U)
  19535. #define HRTIM_TIMDIER_UPDIE_Msk (0x1U << HRTIM_TIMDIER_UPDIE_Pos) /*!< 0x00000040 */
  19536. #define HRTIM_TIMDIER_UPDIE HRTIM_TIMDIER_UPDIE_Msk /*!< Slave update interrupt enable */
  19537. #define HRTIM_TIMDIER_CPT1IE_Pos (7U)
  19538. #define HRTIM_TIMDIER_CPT1IE_Msk (0x1U << HRTIM_TIMDIER_CPT1IE_Pos) /*!< 0x00000080 */
  19539. #define HRTIM_TIMDIER_CPT1IE HRTIM_TIMDIER_CPT1IE_Msk /*!< Slave capture 1 interrupt enable */
  19540. #define HRTIM_TIMDIER_CPT2IE_Pos (8U)
  19541. #define HRTIM_TIMDIER_CPT2IE_Msk (0x1U << HRTIM_TIMDIER_CPT2IE_Pos) /*!< 0x00000100 */
  19542. #define HRTIM_TIMDIER_CPT2IE HRTIM_TIMDIER_CPT2IE_Msk /*!< Slave capture 2 interrupt enable */
  19543. #define HRTIM_TIMDIER_SET1IE_Pos (9U)
  19544. #define HRTIM_TIMDIER_SET1IE_Msk (0x1U << HRTIM_TIMDIER_SET1IE_Pos) /*!< 0x00000200 */
  19545. #define HRTIM_TIMDIER_SET1IE HRTIM_TIMDIER_SET1IE_Msk /*!< Slave output 1 set interrupt enable */
  19546. #define HRTIM_TIMDIER_RST1IE_Pos (10U)
  19547. #define HRTIM_TIMDIER_RST1IE_Msk (0x1U << HRTIM_TIMDIER_RST1IE_Pos) /*!< 0x00000400 */
  19548. #define HRTIM_TIMDIER_RST1IE HRTIM_TIMDIER_RST1IE_Msk /*!< Slave output 1 reset interrupt enable */
  19549. #define HRTIM_TIMDIER_SET2IE_Pos (11U)
  19550. #define HRTIM_TIMDIER_SET2IE_Msk (0x1U << HRTIM_TIMDIER_SET2IE_Pos) /*!< 0x00000800 */
  19551. #define HRTIM_TIMDIER_SET2IE HRTIM_TIMDIER_SET2IE_Msk /*!< Slave output 2 set interrupt enable */
  19552. #define HRTIM_TIMDIER_RST2IE_Pos (12U)
  19553. #define HRTIM_TIMDIER_RST2IE_Msk (0x1U << HRTIM_TIMDIER_RST2IE_Pos) /*!< 0x00001000 */
  19554. #define HRTIM_TIMDIER_RST2IE HRTIM_TIMDIER_RST2IE_Msk /*!< Slave output 2 reset interrupt enable */
  19555. #define HRTIM_TIMDIER_RSTIE_Pos (13U)
  19556. #define HRTIM_TIMDIER_RSTIE_Msk (0x1U << HRTIM_TIMDIER_RSTIE_Pos) /*!< 0x00002000 */
  19557. #define HRTIM_TIMDIER_RSTIE HRTIM_TIMDIER_RSTIE_Msk /*!< Slave reset interrupt enable */
  19558. #define HRTIM_TIMDIER_DLYPRTIE_Pos (14U)
  19559. #define HRTIM_TIMDIER_DLYPRTIE_Msk (0x1U << HRTIM_TIMDIER_DLYPRTIE_Pos) /*!< 0x00004000 */
  19560. #define HRTIM_TIMDIER_DLYPRTIE HRTIM_TIMDIER_DLYPRTIE_Msk /*!< Slave delay protection interrupt enable */
  19561. #define HRTIM_TIMDIER_CMP1DE_Pos (16U)
  19562. #define HRTIM_TIMDIER_CMP1DE_Msk (0x1U << HRTIM_TIMDIER_CMP1DE_Pos) /*!< 0x00010000 */
  19563. #define HRTIM_TIMDIER_CMP1DE HRTIM_TIMDIER_CMP1DE_Msk /*!< Slave compare 1 request enable */
  19564. #define HRTIM_TIMDIER_CMP2DE_Pos (17U)
  19565. #define HRTIM_TIMDIER_CMP2DE_Msk (0x1U << HRTIM_TIMDIER_CMP2DE_Pos) /*!< 0x00020000 */
  19566. #define HRTIM_TIMDIER_CMP2DE HRTIM_TIMDIER_CMP2DE_Msk /*!< Slave compare 2 request enable */
  19567. #define HRTIM_TIMDIER_CMP3DE_Pos (18U)
  19568. #define HRTIM_TIMDIER_CMP3DE_Msk (0x1U << HRTIM_TIMDIER_CMP3DE_Pos) /*!< 0x00040000 */
  19569. #define HRTIM_TIMDIER_CMP3DE HRTIM_TIMDIER_CMP3DE_Msk /*!< Slave compare 3 request enable */
  19570. #define HRTIM_TIMDIER_CMP4DE_Pos (19U)
  19571. #define HRTIM_TIMDIER_CMP4DE_Msk (0x1U << HRTIM_TIMDIER_CMP4DE_Pos) /*!< 0x00080000 */
  19572. #define HRTIM_TIMDIER_CMP4DE HRTIM_TIMDIER_CMP4DE_Msk /*!< Slave compare 4 request enable */
  19573. #define HRTIM_TIMDIER_REPDE_Pos (20U)
  19574. #define HRTIM_TIMDIER_REPDE_Msk (0x1U << HRTIM_TIMDIER_REPDE_Pos) /*!< 0x00100000 */
  19575. #define HRTIM_TIMDIER_REPDE HRTIM_TIMDIER_REPDE_Msk /*!< Slave repetition request enable */
  19576. #define HRTIM_TIMDIER_UPDDE_Pos (22U)
  19577. #define HRTIM_TIMDIER_UPDDE_Msk (0x1U << HRTIM_TIMDIER_UPDDE_Pos) /*!< 0x00400000 */
  19578. #define HRTIM_TIMDIER_UPDDE HRTIM_TIMDIER_UPDDE_Msk /*!< Slave update request enable */
  19579. #define HRTIM_TIMDIER_CPT1DE_Pos (23U)
  19580. #define HRTIM_TIMDIER_CPT1DE_Msk (0x1U << HRTIM_TIMDIER_CPT1DE_Pos) /*!< 0x00800000 */
  19581. #define HRTIM_TIMDIER_CPT1DE HRTIM_TIMDIER_CPT1DE_Msk /*!< Slave capture 1 request enable */
  19582. #define HRTIM_TIMDIER_CPT2DE_Pos (24U)
  19583. #define HRTIM_TIMDIER_CPT2DE_Msk (0x1U << HRTIM_TIMDIER_CPT2DE_Pos) /*!< 0x01000000 */
  19584. #define HRTIM_TIMDIER_CPT2DE HRTIM_TIMDIER_CPT2DE_Msk /*!< Slave capture 2 request enable */
  19585. #define HRTIM_TIMDIER_SET1DE_Pos (25U)
  19586. #define HRTIM_TIMDIER_SET1DE_Msk (0x1U << HRTIM_TIMDIER_SET1DE_Pos) /*!< 0x02000000 */
  19587. #define HRTIM_TIMDIER_SET1DE HRTIM_TIMDIER_SET1DE_Msk /*!< Slave output 1 set request enable */
  19588. #define HRTIM_TIMDIER_RST1DE_Pos (26U)
  19589. #define HRTIM_TIMDIER_RST1DE_Msk (0x1U << HRTIM_TIMDIER_RST1DE_Pos) /*!< 0x04000000 */
  19590. #define HRTIM_TIMDIER_RST1DE HRTIM_TIMDIER_RST1DE_Msk /*!< Slave output 1 reset request enable */
  19591. #define HRTIM_TIMDIER_SET2DE_Pos (27U)
  19592. #define HRTIM_TIMDIER_SET2DE_Msk (0x1U << HRTIM_TIMDIER_SET2DE_Pos) /*!< 0x08000000 */
  19593. #define HRTIM_TIMDIER_SET2DE HRTIM_TIMDIER_SET2DE_Msk /*!< Slave output 2 set request enable */
  19594. #define HRTIM_TIMDIER_RST2DE_Pos (28U)
  19595. #define HRTIM_TIMDIER_RST2DE_Msk (0x1U << HRTIM_TIMDIER_RST2DE_Pos) /*!< 0x10000000 */
  19596. #define HRTIM_TIMDIER_RST2DE HRTIM_TIMDIER_RST2DE_Msk /*!< Slave output 2 reset request enable */
  19597. #define HRTIM_TIMDIER_RSTDE_Pos (29U)
  19598. #define HRTIM_TIMDIER_RSTDE_Msk (0x1U << HRTIM_TIMDIER_RSTDE_Pos) /*!< 0x20000000 */
  19599. #define HRTIM_TIMDIER_RSTDE HRTIM_TIMDIER_RSTDE_Msk /*!< Slave reset request enable */
  19600. #define HRTIM_TIMDIER_DLYPRTDE_Pos (30U)
  19601. #define HRTIM_TIMDIER_DLYPRTDE_Msk (0x1U << HRTIM_TIMDIER_DLYPRTDE_Pos) /*!< 0x40000000 */
  19602. #define HRTIM_TIMDIER_DLYPRTDE HRTIM_TIMDIER_DLYPRTDE_Msk /*!< Slavedelay protection request enable */
  19603. /****************** Bit definition for HRTIM_CNTR register ****************/
  19604. #define HRTIM_CNTR_CNTR_Pos (0U)
  19605. #define HRTIM_CNTR_CNTR_Msk (0xFFFFU << HRTIM_CNTR_CNTR_Pos) /*!< 0x0000FFFF */
  19606. #define HRTIM_CNTR_CNTR HRTIM_CNTR_CNTR_Msk /*!< Counter Value */
  19607. /******************* Bit definition for HRTIM_PER register *****************/
  19608. #define HRTIM_PER_PER_Pos (0U)
  19609. #define HRTIM_PER_PER_Msk (0xFFFFU << HRTIM_PER_PER_Pos) /*!< 0x0000FFFF */
  19610. #define HRTIM_PER_PER HRTIM_PER_PER_Msk /*!< Period Value */
  19611. /******************* Bit definition for HRTIM_REP register *****************/
  19612. #define HRTIM_REP_REP_Pos (0U)
  19613. #define HRTIM_REP_REP_Msk (0xFFU << HRTIM_REP_REP_Pos) /*!< 0x000000FF */
  19614. #define HRTIM_REP_REP HRTIM_REP_REP_Msk /*!< Repetition Value */
  19615. /******************* Bit definition for HRTIM_CMP1R register *****************/
  19616. #define HRTIM_CMP1R_CMP1R_Pos (0U)
  19617. #define HRTIM_CMP1R_CMP1R_Msk (0xFFFFU << HRTIM_CMP1R_CMP1R_Pos) /*!< 0x0000FFFF */
  19618. #define HRTIM_CMP1R_CMP1R HRTIM_CMP1R_CMP1R_Msk /*!< Compare Value */
  19619. /******************* Bit definition for HRTIM_CMP1CR register *****************/
  19620. #define HRTIM_CMP1CR_CMP1CR_Pos (0U)
  19621. #define HRTIM_CMP1CR_CMP1CR_Msk (0xFFFFFFFFU << HRTIM_CMP1CR_CMP1CR_Pos) /*!< 0xFFFFFFFF */
  19622. #define HRTIM_CMP1CR_CMP1CR HRTIM_CMP1CR_CMP1CR_Msk /*!< Compare Value */
  19623. /******************* Bit definition for HRTIM_CMP2R register *****************/
  19624. #define HRTIM_CMP2R_CMP2R_Pos (0U)
  19625. #define HRTIM_CMP2R_CMP2R_Msk (0xFFFFU << HRTIM_CMP2R_CMP2R_Pos) /*!< 0x0000FFFF */
  19626. #define HRTIM_CMP2R_CMP2R HRTIM_CMP2R_CMP2R_Msk /*!< Compare Value */
  19627. /******************* Bit definition for HRTIM_CMP3R register *****************/
  19628. #define HRTIM_CMP3R_CMP3R_Pos (0U)
  19629. #define HRTIM_CMP3R_CMP3R_Msk (0xFFFFU << HRTIM_CMP3R_CMP3R_Pos) /*!< 0x0000FFFF */
  19630. #define HRTIM_CMP3R_CMP3R HRTIM_CMP3R_CMP3R_Msk /*!< Compare Value */
  19631. /******************* Bit definition for HRTIM_CMP4R register *****************/
  19632. #define HRTIM_CMP4R_CMP4R_Pos (0U)
  19633. #define HRTIM_CMP4R_CMP4R_Msk (0xFFFFU << HRTIM_CMP4R_CMP4R_Pos) /*!< 0x0000FFFF */
  19634. #define HRTIM_CMP4R_CMP4R HRTIM_CMP4R_CMP4R_Msk /*!< Compare Value */
  19635. /******************* Bit definition for HRTIM_CPT1R register ****************/
  19636. #define HRTIM_CPT1R_CPT1R_Pos (0U)
  19637. #define HRTIM_CPT1R_CPT1R_Msk (0xFFFFU << HRTIM_CPT1R_CPT1R_Pos) /*!< 0x0000FFFF */
  19638. #define HRTIM_CPT1R_CPT1R HRTIM_CPT1R_CPT1R_Msk /*!< Capture Value */
  19639. /******************* Bit definition for HRTIM_CPT2R register ****************/
  19640. #define HRTIM_CPT2R_CPT2R_Pos (0U)
  19641. #define HRTIM_CPT2R_CPT2R_Msk (0xFFFFU << HRTIM_CPT2R_CPT2R_Pos) /*!< 0x0000FFFF */
  19642. #define HRTIM_CPT2R_CPT2R HRTIM_CPT2R_CPT2R_Msk /*!< Capture Value */
  19643. /******************** Bit definition for Slave Deadtime register **************/
  19644. #define HRTIM_DTR_DTR_Pos (0U)
  19645. #define HRTIM_DTR_DTR_Msk (0x1FFU << HRTIM_DTR_DTR_Pos) /*!< 0x000001FF */
  19646. #define HRTIM_DTR_DTR HRTIM_DTR_DTR_Msk /*!< Dead time rising value */
  19647. #define HRTIM_DTR_DTR_0 (0x001U << HRTIM_DTR_DTR_Pos) /*!< 0x00000001 */
  19648. #define HRTIM_DTR_DTR_1 (0x002U << HRTIM_DTR_DTR_Pos) /*!< 0x00000002 */
  19649. #define HRTIM_DTR_DTR_2 (0x004U << HRTIM_DTR_DTR_Pos) /*!< 0x00000004 */
  19650. #define HRTIM_DTR_DTR_3 (0x008U << HRTIM_DTR_DTR_Pos) /*!< 0x00000008 */
  19651. #define HRTIM_DTR_DTR_4 (0x010U << HRTIM_DTR_DTR_Pos) /*!< 0x00000010 */
  19652. #define HRTIM_DTR_DTR_5 (0x020U << HRTIM_DTR_DTR_Pos) /*!< 0x00000020 */
  19653. #define HRTIM_DTR_DTR_6 (0x040U << HRTIM_DTR_DTR_Pos) /*!< 0x00000040 */
  19654. #define HRTIM_DTR_DTR_7 (0x080U << HRTIM_DTR_DTR_Pos) /*!< 0x00000080 */
  19655. #define HRTIM_DTR_DTR_8 (0x100U << HRTIM_DTR_DTR_Pos) /*!< 0x00000100 */
  19656. #define HRTIM_DTR_SDTR_Pos (9U)
  19657. #define HRTIM_DTR_SDTR_Msk (0x1U << HRTIM_DTR_SDTR_Pos) /*!< 0x00000200 */
  19658. #define HRTIM_DTR_SDTR HRTIM_DTR_SDTR_Msk /*!< Sign dead time rising value */
  19659. #define HRTIM_DTR_DTPRSC_Pos (10U)
  19660. #define HRTIM_DTR_DTPRSC_Msk (0x7U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00001C00 */
  19661. #define HRTIM_DTR_DTPRSC HRTIM_DTR_DTPRSC_Msk /*!< Dead time prescaler */
  19662. #define HRTIM_DTR_DTPRSC_0 (0x1U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00000400 */
  19663. #define HRTIM_DTR_DTPRSC_1 (0x2U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00000800 */
  19664. #define HRTIM_DTR_DTPRSC_2 (0x4U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00001000 */
  19665. #define HRTIM_DTR_DTRSLK_Pos (14U)
  19666. #define HRTIM_DTR_DTRSLK_Msk (0x1U << HRTIM_DTR_DTRSLK_Pos) /*!< 0x00004000 */
  19667. #define HRTIM_DTR_DTRSLK HRTIM_DTR_DTRSLK_Msk /*!< Dead time rising sign lock */
  19668. #define HRTIM_DTR_DTRLK_Pos (15U)
  19669. #define HRTIM_DTR_DTRLK_Msk (0x1U << HRTIM_DTR_DTRLK_Pos) /*!< 0x00008000 */
  19670. #define HRTIM_DTR_DTRLK HRTIM_DTR_DTRLK_Msk /*!< Dead time rising lock */
  19671. #define HRTIM_DTR_DTF_Pos (16U)
  19672. #define HRTIM_DTR_DTF_Msk (0x1FFU << HRTIM_DTR_DTF_Pos) /*!< 0x01FF0000 */
  19673. #define HRTIM_DTR_DTF HRTIM_DTR_DTF_Msk /*!< Dead time falling value */
  19674. #define HRTIM_DTR_DTF_0 (0x001U << HRTIM_DTR_DTF_Pos) /*!< 0x00010000 */
  19675. #define HRTIM_DTR_DTF_1 (0x002U << HRTIM_DTR_DTF_Pos) /*!< 0x00020000 */
  19676. #define HRTIM_DTR_DTF_2 (0x004U << HRTIM_DTR_DTF_Pos) /*!< 0x00040000 */
  19677. #define HRTIM_DTR_DTF_3 (0x008U << HRTIM_DTR_DTF_Pos) /*!< 0x00080000 */
  19678. #define HRTIM_DTR_DTF_4 (0x010U << HRTIM_DTR_DTF_Pos) /*!< 0x00100000 */
  19679. #define HRTIM_DTR_DTF_5 (0x020U << HRTIM_DTR_DTF_Pos) /*!< 0x00200000 */
  19680. #define HRTIM_DTR_DTF_6 (0x040U << HRTIM_DTR_DTF_Pos) /*!< 0x00400000 */
  19681. #define HRTIM_DTR_DTF_7 (0x080U << HRTIM_DTR_DTF_Pos) /*!< 0x00800000 */
  19682. #define HRTIM_DTR_DTF_8 (0x100U << HRTIM_DTR_DTF_Pos) /*!< 0x01000000 */
  19683. #define HRTIM_DTR_SDTF_Pos (25U)
  19684. #define HRTIM_DTR_SDTF_Msk (0x1U << HRTIM_DTR_SDTF_Pos) /*!< 0x02000000 */
  19685. #define HRTIM_DTR_SDTF HRTIM_DTR_SDTF_Msk /*!< Sign dead time falling value */
  19686. #define HRTIM_DTR_DTFSLK_Pos (30U)
  19687. #define HRTIM_DTR_DTFSLK_Msk (0x1U << HRTIM_DTR_DTFSLK_Pos) /*!< 0x40000000 */
  19688. #define HRTIM_DTR_DTFSLK HRTIM_DTR_DTFSLK_Msk /*!< Dead time falling sign lock */
  19689. #define HRTIM_DTR_DTFLK_Pos (31U)
  19690. #define HRTIM_DTR_DTFLK_Msk (0x1U << HRTIM_DTR_DTFLK_Pos) /*!< 0x80000000 */
  19691. #define HRTIM_DTR_DTFLK HRTIM_DTR_DTFLK_Msk /*!< Dead time falling lock */
  19692. /**** Bit definition for Slave Output 1 set register **************************/
  19693. #define HRTIM_SET1R_SST_Pos (0U)
  19694. #define HRTIM_SET1R_SST_Msk (0x1U << HRTIM_SET1R_SST_Pos) /*!< 0x00000001 */
  19695. #define HRTIM_SET1R_SST HRTIM_SET1R_SST_Msk /*!< software set trigger */
  19696. #define HRTIM_SET1R_RESYNC_Pos (1U)
  19697. #define HRTIM_SET1R_RESYNC_Msk (0x1U << HRTIM_SET1R_RESYNC_Pos) /*!< 0x00000002 */
  19698. #define HRTIM_SET1R_RESYNC HRTIM_SET1R_RESYNC_Msk /*!< Timer A resynchronization */
  19699. #define HRTIM_SET1R_PER_Pos (2U)
  19700. #define HRTIM_SET1R_PER_Msk (0x1U << HRTIM_SET1R_PER_Pos) /*!< 0x00000004 */
  19701. #define HRTIM_SET1R_PER HRTIM_SET1R_PER_Msk /*!< Timer A period */
  19702. #define HRTIM_SET1R_CMP1_Pos (3U)
  19703. #define HRTIM_SET1R_CMP1_Msk (0x1U << HRTIM_SET1R_CMP1_Pos) /*!< 0x00000008 */
  19704. #define HRTIM_SET1R_CMP1 HRTIM_SET1R_CMP1_Msk /*!< Timer A compare 1 */
  19705. #define HRTIM_SET1R_CMP2_Pos (4U)
  19706. #define HRTIM_SET1R_CMP2_Msk (0x1U << HRTIM_SET1R_CMP2_Pos) /*!< 0x00000010 */
  19707. #define HRTIM_SET1R_CMP2 HRTIM_SET1R_CMP2_Msk /*!< Timer A compare 2 */
  19708. #define HRTIM_SET1R_CMP3_Pos (5U)
  19709. #define HRTIM_SET1R_CMP3_Msk (0x1U << HRTIM_SET1R_CMP3_Pos) /*!< 0x00000020 */
  19710. #define HRTIM_SET1R_CMP3 HRTIM_SET1R_CMP3_Msk /*!< Timer A compare 3 */
  19711. #define HRTIM_SET1R_CMP4_Pos (6U)
  19712. #define HRTIM_SET1R_CMP4_Msk (0x1U << HRTIM_SET1R_CMP4_Pos) /*!< 0x00000040 */
  19713. #define HRTIM_SET1R_CMP4 HRTIM_SET1R_CMP4_Msk /*!< Timer A compare 4 */
  19714. #define HRTIM_SET1R_MSTPER_Pos (7U)
  19715. #define HRTIM_SET1R_MSTPER_Msk (0x1U << HRTIM_SET1R_MSTPER_Pos) /*!< 0x00000080 */
  19716. #define HRTIM_SET1R_MSTPER HRTIM_SET1R_MSTPER_Msk /*!< Master period */
  19717. #define HRTIM_SET1R_MSTCMP1_Pos (8U)
  19718. #define HRTIM_SET1R_MSTCMP1_Msk (0x1U << HRTIM_SET1R_MSTCMP1_Pos) /*!< 0x00000100 */
  19719. #define HRTIM_SET1R_MSTCMP1 HRTIM_SET1R_MSTCMP1_Msk /*!< Master compare 1 */
  19720. #define HRTIM_SET1R_MSTCMP2_Pos (9U)
  19721. #define HRTIM_SET1R_MSTCMP2_Msk (0x1U << HRTIM_SET1R_MSTCMP2_Pos) /*!< 0x00000200 */
  19722. #define HRTIM_SET1R_MSTCMP2 HRTIM_SET1R_MSTCMP2_Msk /*!< Master compare 2 */
  19723. #define HRTIM_SET1R_MSTCMP3_Pos (10U)
  19724. #define HRTIM_SET1R_MSTCMP3_Msk (0x1U << HRTIM_SET1R_MSTCMP3_Pos) /*!< 0x00000400 */
  19725. #define HRTIM_SET1R_MSTCMP3 HRTIM_SET1R_MSTCMP3_Msk /*!< Master compare 3 */
  19726. #define HRTIM_SET1R_MSTCMP4_Pos (11U)
  19727. #define HRTIM_SET1R_MSTCMP4_Msk (0x1U << HRTIM_SET1R_MSTCMP4_Pos) /*!< 0x00000800 */
  19728. #define HRTIM_SET1R_MSTCMP4 HRTIM_SET1R_MSTCMP4_Msk /*!< Master compare 4 */
  19729. #define HRTIM_SET1R_TIMEVNT1_Pos (12U)
  19730. #define HRTIM_SET1R_TIMEVNT1_Msk (0x1U << HRTIM_SET1R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19731. #define HRTIM_SET1R_TIMEVNT1 HRTIM_SET1R_TIMEVNT1_Msk /*!< Timer event 1 */
  19732. #define HRTIM_SET1R_TIMEVNT2_Pos (13U)
  19733. #define HRTIM_SET1R_TIMEVNT2_Msk (0x1U << HRTIM_SET1R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19734. #define HRTIM_SET1R_TIMEVNT2 HRTIM_SET1R_TIMEVNT2_Msk /*!< Timer event 2 */
  19735. #define HRTIM_SET1R_TIMEVNT3_Pos (14U)
  19736. #define HRTIM_SET1R_TIMEVNT3_Msk (0x1U << HRTIM_SET1R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19737. #define HRTIM_SET1R_TIMEVNT3 HRTIM_SET1R_TIMEVNT3_Msk /*!< Timer event 3 */
  19738. #define HRTIM_SET1R_TIMEVNT4_Pos (15U)
  19739. #define HRTIM_SET1R_TIMEVNT4_Msk (0x1U << HRTIM_SET1R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19740. #define HRTIM_SET1R_TIMEVNT4 HRTIM_SET1R_TIMEVNT4_Msk /*!< Timer event 4 */
  19741. #define HRTIM_SET1R_TIMEVNT5_Pos (16U)
  19742. #define HRTIM_SET1R_TIMEVNT5_Msk (0x1U << HRTIM_SET1R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19743. #define HRTIM_SET1R_TIMEVNT5 HRTIM_SET1R_TIMEVNT5_Msk /*!< Timer event 5 */
  19744. #define HRTIM_SET1R_TIMEVNT6_Pos (17U)
  19745. #define HRTIM_SET1R_TIMEVNT6_Msk (0x1U << HRTIM_SET1R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19746. #define HRTIM_SET1R_TIMEVNT6 HRTIM_SET1R_TIMEVNT6_Msk /*!< Timer event 6 */
  19747. #define HRTIM_SET1R_TIMEVNT7_Pos (18U)
  19748. #define HRTIM_SET1R_TIMEVNT7_Msk (0x1U << HRTIM_SET1R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19749. #define HRTIM_SET1R_TIMEVNT7 HRTIM_SET1R_TIMEVNT7_Msk /*!< Timer event 7 */
  19750. #define HRTIM_SET1R_TIMEVNT8_Pos (19U)
  19751. #define HRTIM_SET1R_TIMEVNT8_Msk (0x1U << HRTIM_SET1R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19752. #define HRTIM_SET1R_TIMEVNT8 HRTIM_SET1R_TIMEVNT8_Msk /*!< Timer event 8 */
  19753. #define HRTIM_SET1R_TIMEVNT9_Pos (20U)
  19754. #define HRTIM_SET1R_TIMEVNT9_Msk (0x1U << HRTIM_SET1R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19755. #define HRTIM_SET1R_TIMEVNT9 HRTIM_SET1R_TIMEVNT9_Msk /*!< Timer event 9 */
  19756. #define HRTIM_SET1R_EXTVNT1_Pos (21U)
  19757. #define HRTIM_SET1R_EXTVNT1_Msk (0x1U << HRTIM_SET1R_EXTVNT1_Pos) /*!< 0x00200000 */
  19758. #define HRTIM_SET1R_EXTVNT1 HRTIM_SET1R_EXTVNT1_Msk /*!< External event 1 */
  19759. #define HRTIM_SET1R_EXTVNT2_Pos (22U)
  19760. #define HRTIM_SET1R_EXTVNT2_Msk (0x1U << HRTIM_SET1R_EXTVNT2_Pos) /*!< 0x00400000 */
  19761. #define HRTIM_SET1R_EXTVNT2 HRTIM_SET1R_EXTVNT2_Msk /*!< External event 2 */
  19762. #define HRTIM_SET1R_EXTVNT3_Pos (23U)
  19763. #define HRTIM_SET1R_EXTVNT3_Msk (0x1U << HRTIM_SET1R_EXTVNT3_Pos) /*!< 0x00800000 */
  19764. #define HRTIM_SET1R_EXTVNT3 HRTIM_SET1R_EXTVNT3_Msk /*!< External event 3 */
  19765. #define HRTIM_SET1R_EXTVNT4_Pos (24U)
  19766. #define HRTIM_SET1R_EXTVNT4_Msk (0x1U << HRTIM_SET1R_EXTVNT4_Pos) /*!< 0x01000000 */
  19767. #define HRTIM_SET1R_EXTVNT4 HRTIM_SET1R_EXTVNT4_Msk /*!< External event 4 */
  19768. #define HRTIM_SET1R_EXTVNT5_Pos (25U)
  19769. #define HRTIM_SET1R_EXTVNT5_Msk (0x1U << HRTIM_SET1R_EXTVNT5_Pos) /*!< 0x02000000 */
  19770. #define HRTIM_SET1R_EXTVNT5 HRTIM_SET1R_EXTVNT5_Msk /*!< External event 5 */
  19771. #define HRTIM_SET1R_EXTVNT6_Pos (26U)
  19772. #define HRTIM_SET1R_EXTVNT6_Msk (0x1U << HRTIM_SET1R_EXTVNT6_Pos) /*!< 0x04000000 */
  19773. #define HRTIM_SET1R_EXTVNT6 HRTIM_SET1R_EXTVNT6_Msk /*!< External event 6 */
  19774. #define HRTIM_SET1R_EXTVNT7_Pos (27U)
  19775. #define HRTIM_SET1R_EXTVNT7_Msk (0x1U << HRTIM_SET1R_EXTVNT7_Pos) /*!< 0x08000000 */
  19776. #define HRTIM_SET1R_EXTVNT7 HRTIM_SET1R_EXTVNT7_Msk /*!< External event 7 */
  19777. #define HRTIM_SET1R_EXTVNT8_Pos (28U)
  19778. #define HRTIM_SET1R_EXTVNT8_Msk (0x1U << HRTIM_SET1R_EXTVNT8_Pos) /*!< 0x10000000 */
  19779. #define HRTIM_SET1R_EXTVNT8 HRTIM_SET1R_EXTVNT8_Msk /*!< External event 8 */
  19780. #define HRTIM_SET1R_EXTVNT9_Pos (29U)
  19781. #define HRTIM_SET1R_EXTVNT9_Msk (0x1U << HRTIM_SET1R_EXTVNT9_Pos) /*!< 0x20000000 */
  19782. #define HRTIM_SET1R_EXTVNT9 HRTIM_SET1R_EXTVNT9_Msk /*!< External event 9 */
  19783. #define HRTIM_SET1R_EXTVNT10_Pos (30U)
  19784. #define HRTIM_SET1R_EXTVNT10_Msk (0x1U << HRTIM_SET1R_EXTVNT10_Pos) /*!< 0x40000000 */
  19785. #define HRTIM_SET1R_EXTVNT10 HRTIM_SET1R_EXTVNT10_Msk /*!< External event 10 */
  19786. #define HRTIM_SET1R_UPDATE_Pos (31U)
  19787. #define HRTIM_SET1R_UPDATE_Msk (0x1U << HRTIM_SET1R_UPDATE_Pos) /*!< 0x80000000 */
  19788. #define HRTIM_SET1R_UPDATE HRTIM_SET1R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19789. /**** Bit definition for Slave Output 1 reset register ************************/
  19790. #define HRTIM_RST1R_SRT_Pos (0U)
  19791. #define HRTIM_RST1R_SRT_Msk (0x1U << HRTIM_RST1R_SRT_Pos) /*!< 0x00000001 */
  19792. #define HRTIM_RST1R_SRT HRTIM_RST1R_SRT_Msk /*!< software reset trigger */
  19793. #define HRTIM_RST1R_RESYNC_Pos (1U)
  19794. #define HRTIM_RST1R_RESYNC_Msk (0x1U << HRTIM_RST1R_RESYNC_Pos) /*!< 0x00000002 */
  19795. #define HRTIM_RST1R_RESYNC HRTIM_RST1R_RESYNC_Msk /*!< Timer A resynchronization */
  19796. #define HRTIM_RST1R_PER_Pos (2U)
  19797. #define HRTIM_RST1R_PER_Msk (0x1U << HRTIM_RST1R_PER_Pos) /*!< 0x00000004 */
  19798. #define HRTIM_RST1R_PER HRTIM_RST1R_PER_Msk /*!< Timer A period */
  19799. #define HRTIM_RST1R_CMP1_Pos (3U)
  19800. #define HRTIM_RST1R_CMP1_Msk (0x1U << HRTIM_RST1R_CMP1_Pos) /*!< 0x00000008 */
  19801. #define HRTIM_RST1R_CMP1 HRTIM_RST1R_CMP1_Msk /*!< Timer A compare 1 */
  19802. #define HRTIM_RST1R_CMP2_Pos (4U)
  19803. #define HRTIM_RST1R_CMP2_Msk (0x1U << HRTIM_RST1R_CMP2_Pos) /*!< 0x00000010 */
  19804. #define HRTIM_RST1R_CMP2 HRTIM_RST1R_CMP2_Msk /*!< Timer A compare 2 */
  19805. #define HRTIM_RST1R_CMP3_Pos (5U)
  19806. #define HRTIM_RST1R_CMP3_Msk (0x1U << HRTIM_RST1R_CMP3_Pos) /*!< 0x00000020 */
  19807. #define HRTIM_RST1R_CMP3 HRTIM_RST1R_CMP3_Msk /*!< Timer A compare 3 */
  19808. #define HRTIM_RST1R_CMP4_Pos (6U)
  19809. #define HRTIM_RST1R_CMP4_Msk (0x1U << HRTIM_RST1R_CMP4_Pos) /*!< 0x00000040 */
  19810. #define HRTIM_RST1R_CMP4 HRTIM_RST1R_CMP4_Msk /*!< Timer A compare 4 */
  19811. #define HRTIM_RST1R_MSTPER_Pos (7U)
  19812. #define HRTIM_RST1R_MSTPER_Msk (0x1U << HRTIM_RST1R_MSTPER_Pos) /*!< 0x00000080 */
  19813. #define HRTIM_RST1R_MSTPER HRTIM_RST1R_MSTPER_Msk /*!< Master period */
  19814. #define HRTIM_RST1R_MSTCMP1_Pos (8U)
  19815. #define HRTIM_RST1R_MSTCMP1_Msk (0x1U << HRTIM_RST1R_MSTCMP1_Pos) /*!< 0x00000100 */
  19816. #define HRTIM_RST1R_MSTCMP1 HRTIM_RST1R_MSTCMP1_Msk /*!< Master compare 1 */
  19817. #define HRTIM_RST1R_MSTCMP2_Pos (9U)
  19818. #define HRTIM_RST1R_MSTCMP2_Msk (0x1U << HRTIM_RST1R_MSTCMP2_Pos) /*!< 0x00000200 */
  19819. #define HRTIM_RST1R_MSTCMP2 HRTIM_RST1R_MSTCMP2_Msk /*!< Master compare 2 */
  19820. #define HRTIM_RST1R_MSTCMP3_Pos (10U)
  19821. #define HRTIM_RST1R_MSTCMP3_Msk (0x1U << HRTIM_RST1R_MSTCMP3_Pos) /*!< 0x00000400 */
  19822. #define HRTIM_RST1R_MSTCMP3 HRTIM_RST1R_MSTCMP3_Msk /*!< Master compare 3 */
  19823. #define HRTIM_RST1R_MSTCMP4_Pos (11U)
  19824. #define HRTIM_RST1R_MSTCMP4_Msk (0x1U << HRTIM_RST1R_MSTCMP4_Pos) /*!< 0x00000800 */
  19825. #define HRTIM_RST1R_MSTCMP4 HRTIM_RST1R_MSTCMP4_Msk /*!< Master compare 4 */
  19826. #define HRTIM_RST1R_TIMEVNT1_Pos (12U)
  19827. #define HRTIM_RST1R_TIMEVNT1_Msk (0x1U << HRTIM_RST1R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19828. #define HRTIM_RST1R_TIMEVNT1 HRTIM_RST1R_TIMEVNT1_Msk /*!< Timer event 1 */
  19829. #define HRTIM_RST1R_TIMEVNT2_Pos (13U)
  19830. #define HRTIM_RST1R_TIMEVNT2_Msk (0x1U << HRTIM_RST1R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19831. #define HRTIM_RST1R_TIMEVNT2 HRTIM_RST1R_TIMEVNT2_Msk /*!< Timer event 2 */
  19832. #define HRTIM_RST1R_TIMEVNT3_Pos (14U)
  19833. #define HRTIM_RST1R_TIMEVNT3_Msk (0x1U << HRTIM_RST1R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19834. #define HRTIM_RST1R_TIMEVNT3 HRTIM_RST1R_TIMEVNT3_Msk /*!< Timer event 3 */
  19835. #define HRTIM_RST1R_TIMEVNT4_Pos (15U)
  19836. #define HRTIM_RST1R_TIMEVNT4_Msk (0x1U << HRTIM_RST1R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19837. #define HRTIM_RST1R_TIMEVNT4 HRTIM_RST1R_TIMEVNT4_Msk /*!< Timer event 4 */
  19838. #define HRTIM_RST1R_TIMEVNT5_Pos (16U)
  19839. #define HRTIM_RST1R_TIMEVNT5_Msk (0x1U << HRTIM_RST1R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19840. #define HRTIM_RST1R_TIMEVNT5 HRTIM_RST1R_TIMEVNT5_Msk /*!< Timer event 5 */
  19841. #define HRTIM_RST1R_TIMEVNT6_Pos (17U)
  19842. #define HRTIM_RST1R_TIMEVNT6_Msk (0x1U << HRTIM_RST1R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19843. #define HRTIM_RST1R_TIMEVNT6 HRTIM_RST1R_TIMEVNT6_Msk /*!< Timer event 6 */
  19844. #define HRTIM_RST1R_TIMEVNT7_Pos (18U)
  19845. #define HRTIM_RST1R_TIMEVNT7_Msk (0x1U << HRTIM_RST1R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19846. #define HRTIM_RST1R_TIMEVNT7 HRTIM_RST1R_TIMEVNT7_Msk /*!< Timer event 7 */
  19847. #define HRTIM_RST1R_TIMEVNT8_Pos (19U)
  19848. #define HRTIM_RST1R_TIMEVNT8_Msk (0x1U << HRTIM_RST1R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19849. #define HRTIM_RST1R_TIMEVNT8 HRTIM_RST1R_TIMEVNT8_Msk /*!< Timer event 8 */
  19850. #define HRTIM_RST1R_TIMEVNT9_Pos (20U)
  19851. #define HRTIM_RST1R_TIMEVNT9_Msk (0x1U << HRTIM_RST1R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19852. #define HRTIM_RST1R_TIMEVNT9 HRTIM_RST1R_TIMEVNT9_Msk /*!< Timer event 9 */
  19853. #define HRTIM_RST1R_EXTVNT1_Pos (21U)
  19854. #define HRTIM_RST1R_EXTVNT1_Msk (0x1U << HRTIM_RST1R_EXTVNT1_Pos) /*!< 0x00200000 */
  19855. #define HRTIM_RST1R_EXTVNT1 HRTIM_RST1R_EXTVNT1_Msk /*!< External event 1 */
  19856. #define HRTIM_RST1R_EXTVNT2_Pos (22U)
  19857. #define HRTIM_RST1R_EXTVNT2_Msk (0x1U << HRTIM_RST1R_EXTVNT2_Pos) /*!< 0x00400000 */
  19858. #define HRTIM_RST1R_EXTVNT2 HRTIM_RST1R_EXTVNT2_Msk /*!< External event 2 */
  19859. #define HRTIM_RST1R_EXTVNT3_Pos (23U)
  19860. #define HRTIM_RST1R_EXTVNT3_Msk (0x1U << HRTIM_RST1R_EXTVNT3_Pos) /*!< 0x00800000 */
  19861. #define HRTIM_RST1R_EXTVNT3 HRTIM_RST1R_EXTVNT3_Msk /*!< External event 3 */
  19862. #define HRTIM_RST1R_EXTVNT4_Pos (24U)
  19863. #define HRTIM_RST1R_EXTVNT4_Msk (0x1U << HRTIM_RST1R_EXTVNT4_Pos) /*!< 0x01000000 */
  19864. #define HRTIM_RST1R_EXTVNT4 HRTIM_RST1R_EXTVNT4_Msk /*!< External event 4 */
  19865. #define HRTIM_RST1R_EXTVNT5_Pos (25U)
  19866. #define HRTIM_RST1R_EXTVNT5_Msk (0x1U << HRTIM_RST1R_EXTVNT5_Pos) /*!< 0x02000000 */
  19867. #define HRTIM_RST1R_EXTVNT5 HRTIM_RST1R_EXTVNT5_Msk /*!< External event 5 */
  19868. #define HRTIM_RST1R_EXTVNT6_Pos (26U)
  19869. #define HRTIM_RST1R_EXTVNT6_Msk (0x1U << HRTIM_RST1R_EXTVNT6_Pos) /*!< 0x04000000 */
  19870. #define HRTIM_RST1R_EXTVNT6 HRTIM_RST1R_EXTVNT6_Msk /*!< External event 6 */
  19871. #define HRTIM_RST1R_EXTVNT7_Pos (27U)
  19872. #define HRTIM_RST1R_EXTVNT7_Msk (0x1U << HRTIM_RST1R_EXTVNT7_Pos) /*!< 0x08000000 */
  19873. #define HRTIM_RST1R_EXTVNT7 HRTIM_RST1R_EXTVNT7_Msk /*!< External event 7 */
  19874. #define HRTIM_RST1R_EXTVNT8_Pos (28U)
  19875. #define HRTIM_RST1R_EXTVNT8_Msk (0x1U << HRTIM_RST1R_EXTVNT8_Pos) /*!< 0x10000000 */
  19876. #define HRTIM_RST1R_EXTVNT8 HRTIM_RST1R_EXTVNT8_Msk /*!< External event 8 */
  19877. #define HRTIM_RST1R_EXTVNT9_Pos (29U)
  19878. #define HRTIM_RST1R_EXTVNT9_Msk (0x1U << HRTIM_RST1R_EXTVNT9_Pos) /*!< 0x20000000 */
  19879. #define HRTIM_RST1R_EXTVNT9 HRTIM_RST1R_EXTVNT9_Msk /*!< External event 9 */
  19880. #define HRTIM_RST1R_EXTVNT10_Pos (30U)
  19881. #define HRTIM_RST1R_EXTVNT10_Msk (0x1U << HRTIM_RST1R_EXTVNT10_Pos) /*!< 0x40000000 */
  19882. #define HRTIM_RST1R_EXTVNT10 HRTIM_RST1R_EXTVNT10_Msk /*!< External event 10 */
  19883. #define HRTIM_RST1R_UPDATE_Pos (31U)
  19884. #define HRTIM_RST1R_UPDATE_Msk (0x1U << HRTIM_RST1R_UPDATE_Pos) /*!< 0x80000000 */
  19885. #define HRTIM_RST1R_UPDATE HRTIM_RST1R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19886. /**** Bit definition for Slave Output 2 set register **************************/
  19887. #define HRTIM_SET2R_SST_Pos (0U)
  19888. #define HRTIM_SET2R_SST_Msk (0x1U << HRTIM_SET2R_SST_Pos) /*!< 0x00000001 */
  19889. #define HRTIM_SET2R_SST HRTIM_SET2R_SST_Msk /*!< software set trigger */
  19890. #define HRTIM_SET2R_RESYNC_Pos (1U)
  19891. #define HRTIM_SET2R_RESYNC_Msk (0x1U << HRTIM_SET2R_RESYNC_Pos) /*!< 0x00000002 */
  19892. #define HRTIM_SET2R_RESYNC HRTIM_SET2R_RESYNC_Msk /*!< Timer A resynchronization */
  19893. #define HRTIM_SET2R_PER_Pos (2U)
  19894. #define HRTIM_SET2R_PER_Msk (0x1U << HRTIM_SET2R_PER_Pos) /*!< 0x00000004 */
  19895. #define HRTIM_SET2R_PER HRTIM_SET2R_PER_Msk /*!< Timer A period */
  19896. #define HRTIM_SET2R_CMP1_Pos (3U)
  19897. #define HRTIM_SET2R_CMP1_Msk (0x1U << HRTIM_SET2R_CMP1_Pos) /*!< 0x00000008 */
  19898. #define HRTIM_SET2R_CMP1 HRTIM_SET2R_CMP1_Msk /*!< Timer A compare 1 */
  19899. #define HRTIM_SET2R_CMP2_Pos (4U)
  19900. #define HRTIM_SET2R_CMP2_Msk (0x1U << HRTIM_SET2R_CMP2_Pos) /*!< 0x00000010 */
  19901. #define HRTIM_SET2R_CMP2 HRTIM_SET2R_CMP2_Msk /*!< Timer A compare 2 */
  19902. #define HRTIM_SET2R_CMP3_Pos (5U)
  19903. #define HRTIM_SET2R_CMP3_Msk (0x1U << HRTIM_SET2R_CMP3_Pos) /*!< 0x00000020 */
  19904. #define HRTIM_SET2R_CMP3 HRTIM_SET2R_CMP3_Msk /*!< Timer A compare 3 */
  19905. #define HRTIM_SET2R_CMP4_Pos (6U)
  19906. #define HRTIM_SET2R_CMP4_Msk (0x1U << HRTIM_SET2R_CMP4_Pos) /*!< 0x00000040 */
  19907. #define HRTIM_SET2R_CMP4 HRTIM_SET2R_CMP4_Msk /*!< Timer A compare 4 */
  19908. #define HRTIM_SET2R_MSTPER_Pos (7U)
  19909. #define HRTIM_SET2R_MSTPER_Msk (0x1U << HRTIM_SET2R_MSTPER_Pos) /*!< 0x00000080 */
  19910. #define HRTIM_SET2R_MSTPER HRTIM_SET2R_MSTPER_Msk /*!< Master period */
  19911. #define HRTIM_SET2R_MSTCMP1_Pos (8U)
  19912. #define HRTIM_SET2R_MSTCMP1_Msk (0x1U << HRTIM_SET2R_MSTCMP1_Pos) /*!< 0x00000100 */
  19913. #define HRTIM_SET2R_MSTCMP1 HRTIM_SET2R_MSTCMP1_Msk /*!< Master compare 1 */
  19914. #define HRTIM_SET2R_MSTCMP2_Pos (9U)
  19915. #define HRTIM_SET2R_MSTCMP2_Msk (0x1U << HRTIM_SET2R_MSTCMP2_Pos) /*!< 0x00000200 */
  19916. #define HRTIM_SET2R_MSTCMP2 HRTIM_SET2R_MSTCMP2_Msk /*!< Master compare 2 */
  19917. #define HRTIM_SET2R_MSTCMP3_Pos (10U)
  19918. #define HRTIM_SET2R_MSTCMP3_Msk (0x1U << HRTIM_SET2R_MSTCMP3_Pos) /*!< 0x00000400 */
  19919. #define HRTIM_SET2R_MSTCMP3 HRTIM_SET2R_MSTCMP3_Msk /*!< Master compare 3 */
  19920. #define HRTIM_SET2R_MSTCMP4_Pos (11U)
  19921. #define HRTIM_SET2R_MSTCMP4_Msk (0x1U << HRTIM_SET2R_MSTCMP4_Pos) /*!< 0x00000800 */
  19922. #define HRTIM_SET2R_MSTCMP4 HRTIM_SET2R_MSTCMP4_Msk /*!< Master compare 4 */
  19923. #define HRTIM_SET2R_TIMEVNT1_Pos (12U)
  19924. #define HRTIM_SET2R_TIMEVNT1_Msk (0x1U << HRTIM_SET2R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19925. #define HRTIM_SET2R_TIMEVNT1 HRTIM_SET2R_TIMEVNT1_Msk /*!< Timer event 1 */
  19926. #define HRTIM_SET2R_TIMEVNT2_Pos (13U)
  19927. #define HRTIM_SET2R_TIMEVNT2_Msk (0x1U << HRTIM_SET2R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19928. #define HRTIM_SET2R_TIMEVNT2 HRTIM_SET2R_TIMEVNT2_Msk /*!< Timer event 2 */
  19929. #define HRTIM_SET2R_TIMEVNT3_Pos (14U)
  19930. #define HRTIM_SET2R_TIMEVNT3_Msk (0x1U << HRTIM_SET2R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19931. #define HRTIM_SET2R_TIMEVNT3 HRTIM_SET2R_TIMEVNT3_Msk /*!< Timer event 3 */
  19932. #define HRTIM_SET2R_TIMEVNT4_Pos (15U)
  19933. #define HRTIM_SET2R_TIMEVNT4_Msk (0x1U << HRTIM_SET2R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19934. #define HRTIM_SET2R_TIMEVNT4 HRTIM_SET2R_TIMEVNT4_Msk /*!< Timer event 4 */
  19935. #define HRTIM_SET2R_TIMEVNT5_Pos (16U)
  19936. #define HRTIM_SET2R_TIMEVNT5_Msk (0x1U << HRTIM_SET2R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19937. #define HRTIM_SET2R_TIMEVNT5 HRTIM_SET2R_TIMEVNT5_Msk /*!< Timer event 5 */
  19938. #define HRTIM_SET2R_TIMEVNT6_Pos (17U)
  19939. #define HRTIM_SET2R_TIMEVNT6_Msk (0x1U << HRTIM_SET2R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19940. #define HRTIM_SET2R_TIMEVNT6 HRTIM_SET2R_TIMEVNT6_Msk /*!< Timer event 6 */
  19941. #define HRTIM_SET2R_TIMEVNT7_Pos (18U)
  19942. #define HRTIM_SET2R_TIMEVNT7_Msk (0x1U << HRTIM_SET2R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19943. #define HRTIM_SET2R_TIMEVNT7 HRTIM_SET2R_TIMEVNT7_Msk /*!< Timer event 7 */
  19944. #define HRTIM_SET2R_TIMEVNT8_Pos (19U)
  19945. #define HRTIM_SET2R_TIMEVNT8_Msk (0x1U << HRTIM_SET2R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19946. #define HRTIM_SET2R_TIMEVNT8 HRTIM_SET2R_TIMEVNT8_Msk /*!< Timer event 8 */
  19947. #define HRTIM_SET2R_TIMEVNT9_Pos (20U)
  19948. #define HRTIM_SET2R_TIMEVNT9_Msk (0x1U << HRTIM_SET2R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19949. #define HRTIM_SET2R_TIMEVNT9 HRTIM_SET2R_TIMEVNT9_Msk /*!< Timer event 9 */
  19950. #define HRTIM_SET2R_EXTVNT1_Pos (21U)
  19951. #define HRTIM_SET2R_EXTVNT1_Msk (0x1U << HRTIM_SET2R_EXTVNT1_Pos) /*!< 0x00200000 */
  19952. #define HRTIM_SET2R_EXTVNT1 HRTIM_SET2R_EXTVNT1_Msk /*!< External event 1 */
  19953. #define HRTIM_SET2R_EXTVNT2_Pos (22U)
  19954. #define HRTIM_SET2R_EXTVNT2_Msk (0x1U << HRTIM_SET2R_EXTVNT2_Pos) /*!< 0x00400000 */
  19955. #define HRTIM_SET2R_EXTVNT2 HRTIM_SET2R_EXTVNT2_Msk /*!< External event 2 */
  19956. #define HRTIM_SET2R_EXTVNT3_Pos (23U)
  19957. #define HRTIM_SET2R_EXTVNT3_Msk (0x1U << HRTIM_SET2R_EXTVNT3_Pos) /*!< 0x00800000 */
  19958. #define HRTIM_SET2R_EXTVNT3 HRTIM_SET2R_EXTVNT3_Msk /*!< External event 3 */
  19959. #define HRTIM_SET2R_EXTVNT4_Pos (24U)
  19960. #define HRTIM_SET2R_EXTVNT4_Msk (0x1U << HRTIM_SET2R_EXTVNT4_Pos) /*!< 0x01000000 */
  19961. #define HRTIM_SET2R_EXTVNT4 HRTIM_SET2R_EXTVNT4_Msk /*!< External event 4 */
  19962. #define HRTIM_SET2R_EXTVNT5_Pos (25U)
  19963. #define HRTIM_SET2R_EXTVNT5_Msk (0x1U << HRTIM_SET2R_EXTVNT5_Pos) /*!< 0x02000000 */
  19964. #define HRTIM_SET2R_EXTVNT5 HRTIM_SET2R_EXTVNT5_Msk /*!< External event 5 */
  19965. #define HRTIM_SET2R_EXTVNT6_Pos (26U)
  19966. #define HRTIM_SET2R_EXTVNT6_Msk (0x1U << HRTIM_SET2R_EXTVNT6_Pos) /*!< 0x04000000 */
  19967. #define HRTIM_SET2R_EXTVNT6 HRTIM_SET2R_EXTVNT6_Msk /*!< External event 6 */
  19968. #define HRTIM_SET2R_EXTVNT7_Pos (27U)
  19969. #define HRTIM_SET2R_EXTVNT7_Msk (0x1U << HRTIM_SET2R_EXTVNT7_Pos) /*!< 0x08000000 */
  19970. #define HRTIM_SET2R_EXTVNT7 HRTIM_SET2R_EXTVNT7_Msk /*!< External event 7 */
  19971. #define HRTIM_SET2R_EXTVNT8_Pos (28U)
  19972. #define HRTIM_SET2R_EXTVNT8_Msk (0x1U << HRTIM_SET2R_EXTVNT8_Pos) /*!< 0x10000000 */
  19973. #define HRTIM_SET2R_EXTVNT8 HRTIM_SET2R_EXTVNT8_Msk /*!< External event 8 */
  19974. #define HRTIM_SET2R_EXTVNT9_Pos (29U)
  19975. #define HRTIM_SET2R_EXTVNT9_Msk (0x1U << HRTIM_SET2R_EXTVNT9_Pos) /*!< 0x20000000 */
  19976. #define HRTIM_SET2R_EXTVNT9 HRTIM_SET2R_EXTVNT9_Msk /*!< External event 9 */
  19977. #define HRTIM_SET2R_EXTVNT10_Pos (30U)
  19978. #define HRTIM_SET2R_EXTVNT10_Msk (0x1U << HRTIM_SET2R_EXTVNT10_Pos) /*!< 0x40000000 */
  19979. #define HRTIM_SET2R_EXTVNT10 HRTIM_SET2R_EXTVNT10_Msk /*!< External event 10 */
  19980. #define HRTIM_SET2R_UPDATE_Pos (31U)
  19981. #define HRTIM_SET2R_UPDATE_Msk (0x1U << HRTIM_SET2R_UPDATE_Pos) /*!< 0x80000000 */
  19982. #define HRTIM_SET2R_UPDATE HRTIM_SET2R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19983. /**** Bit definition for Slave Output 2 reset register ************************/
  19984. #define HRTIM_RST2R_SRT_Pos (0U)
  19985. #define HRTIM_RST2R_SRT_Msk (0x1U << HRTIM_RST2R_SRT_Pos) /*!< 0x00000001 */
  19986. #define HRTIM_RST2R_SRT HRTIM_RST2R_SRT_Msk /*!< software reset trigger */
  19987. #define HRTIM_RST2R_RESYNC_Pos (1U)
  19988. #define HRTIM_RST2R_RESYNC_Msk (0x1U << HRTIM_RST2R_RESYNC_Pos) /*!< 0x00000002 */
  19989. #define HRTIM_RST2R_RESYNC HRTIM_RST2R_RESYNC_Msk /*!< Timer A resynchronization */
  19990. #define HRTIM_RST2R_PER_Pos (2U)
  19991. #define HRTIM_RST2R_PER_Msk (0x1U << HRTIM_RST2R_PER_Pos) /*!< 0x00000004 */
  19992. #define HRTIM_RST2R_PER HRTIM_RST2R_PER_Msk /*!< Timer A period */
  19993. #define HRTIM_RST2R_CMP1_Pos (3U)
  19994. #define HRTIM_RST2R_CMP1_Msk (0x1U << HRTIM_RST2R_CMP1_Pos) /*!< 0x00000008 */
  19995. #define HRTIM_RST2R_CMP1 HRTIM_RST2R_CMP1_Msk /*!< Timer A compare 1 */
  19996. #define HRTIM_RST2R_CMP2_Pos (4U)
  19997. #define HRTIM_RST2R_CMP2_Msk (0x1U << HRTIM_RST2R_CMP2_Pos) /*!< 0x00000010 */
  19998. #define HRTIM_RST2R_CMP2 HRTIM_RST2R_CMP2_Msk /*!< Timer A compare 2 */
  19999. #define HRTIM_RST2R_CMP3_Pos (5U)
  20000. #define HRTIM_RST2R_CMP3_Msk (0x1U << HRTIM_RST2R_CMP3_Pos) /*!< 0x00000020 */
  20001. #define HRTIM_RST2R_CMP3 HRTIM_RST2R_CMP3_Msk /*!< Timer A compare 3 */
  20002. #define HRTIM_RST2R_CMP4_Pos (6U)
  20003. #define HRTIM_RST2R_CMP4_Msk (0x1U << HRTIM_RST2R_CMP4_Pos) /*!< 0x00000040 */
  20004. #define HRTIM_RST2R_CMP4 HRTIM_RST2R_CMP4_Msk /*!< Timer A compare 4 */
  20005. #define HRTIM_RST2R_MSTPER_Pos (7U)
  20006. #define HRTIM_RST2R_MSTPER_Msk (0x1U << HRTIM_RST2R_MSTPER_Pos) /*!< 0x00000080 */
  20007. #define HRTIM_RST2R_MSTPER HRTIM_RST2R_MSTPER_Msk /*!< Master period */
  20008. #define HRTIM_RST2R_MSTCMP1_Pos (8U)
  20009. #define HRTIM_RST2R_MSTCMP1_Msk (0x1U << HRTIM_RST2R_MSTCMP1_Pos) /*!< 0x00000100 */
  20010. #define HRTIM_RST2R_MSTCMP1 HRTIM_RST2R_MSTCMP1_Msk /*!< Master compare 1 */
  20011. #define HRTIM_RST2R_MSTCMP2_Pos (9U)
  20012. #define HRTIM_RST2R_MSTCMP2_Msk (0x1U << HRTIM_RST2R_MSTCMP2_Pos) /*!< 0x00000200 */
  20013. #define HRTIM_RST2R_MSTCMP2 HRTIM_RST2R_MSTCMP2_Msk /*!< Master compare 2 */
  20014. #define HRTIM_RST2R_MSTCMP3_Pos (10U)
  20015. #define HRTIM_RST2R_MSTCMP3_Msk (0x1U << HRTIM_RST2R_MSTCMP3_Pos) /*!< 0x00000400 */
  20016. #define HRTIM_RST2R_MSTCMP3 HRTIM_RST2R_MSTCMP3_Msk /*!< Master compare 3 */
  20017. #define HRTIM_RST2R_MSTCMP4_Pos (11U)
  20018. #define HRTIM_RST2R_MSTCMP4_Msk (0x1U << HRTIM_RST2R_MSTCMP4_Pos) /*!< 0x00000800 */
  20019. #define HRTIM_RST2R_MSTCMP4 HRTIM_RST2R_MSTCMP4_Msk /*!< Master compare 4 */
  20020. #define HRTIM_RST2R_TIMEVNT1_Pos (12U)
  20021. #define HRTIM_RST2R_TIMEVNT1_Msk (0x1U << HRTIM_RST2R_TIMEVNT1_Pos) /*!< 0x00001000 */
  20022. #define HRTIM_RST2R_TIMEVNT1 HRTIM_RST2R_TIMEVNT1_Msk /*!< Timer event 1 */
  20023. #define HRTIM_RST2R_TIMEVNT2_Pos (13U)
  20024. #define HRTIM_RST2R_TIMEVNT2_Msk (0x1U << HRTIM_RST2R_TIMEVNT2_Pos) /*!< 0x00002000 */
  20025. #define HRTIM_RST2R_TIMEVNT2 HRTIM_RST2R_TIMEVNT2_Msk /*!< Timer event 2 */
  20026. #define HRTIM_RST2R_TIMEVNT3_Pos (14U)
  20027. #define HRTIM_RST2R_TIMEVNT3_Msk (0x1U << HRTIM_RST2R_TIMEVNT3_Pos) /*!< 0x00004000 */
  20028. #define HRTIM_RST2R_TIMEVNT3 HRTIM_RST2R_TIMEVNT3_Msk /*!< Timer event 3 */
  20029. #define HRTIM_RST2R_TIMEVNT4_Pos (15U)
  20030. #define HRTIM_RST2R_TIMEVNT4_Msk (0x1U << HRTIM_RST2R_TIMEVNT4_Pos) /*!< 0x00008000 */
  20031. #define HRTIM_RST2R_TIMEVNT4 HRTIM_RST2R_TIMEVNT4_Msk /*!< Timer event 4 */
  20032. #define HRTIM_RST2R_TIMEVNT5_Pos (16U)
  20033. #define HRTIM_RST2R_TIMEVNT5_Msk (0x1U << HRTIM_RST2R_TIMEVNT5_Pos) /*!< 0x00010000 */
  20034. #define HRTIM_RST2R_TIMEVNT5 HRTIM_RST2R_TIMEVNT5_Msk /*!< Timer event 5 */
  20035. #define HRTIM_RST2R_TIMEVNT6_Pos (17U)
  20036. #define HRTIM_RST2R_TIMEVNT6_Msk (0x1U << HRTIM_RST2R_TIMEVNT6_Pos) /*!< 0x00020000 */
  20037. #define HRTIM_RST2R_TIMEVNT6 HRTIM_RST2R_TIMEVNT6_Msk /*!< Timer event 6 */
  20038. #define HRTIM_RST2R_TIMEVNT7_Pos (18U)
  20039. #define HRTIM_RST2R_TIMEVNT7_Msk (0x1U << HRTIM_RST2R_TIMEVNT7_Pos) /*!< 0x00040000 */
  20040. #define HRTIM_RST2R_TIMEVNT7 HRTIM_RST2R_TIMEVNT7_Msk /*!< Timer event 7 */
  20041. #define HRTIM_RST2R_TIMEVNT8_Pos (19U)
  20042. #define HRTIM_RST2R_TIMEVNT8_Msk (0x1U << HRTIM_RST2R_TIMEVNT8_Pos) /*!< 0x00080000 */
  20043. #define HRTIM_RST2R_TIMEVNT8 HRTIM_RST2R_TIMEVNT8_Msk /*!< Timer event 8 */
  20044. #define HRTIM_RST2R_TIMEVNT9_Pos (20U)
  20045. #define HRTIM_RST2R_TIMEVNT9_Msk (0x1U << HRTIM_RST2R_TIMEVNT9_Pos) /*!< 0x00100000 */
  20046. #define HRTIM_RST2R_TIMEVNT9 HRTIM_RST2R_TIMEVNT9_Msk /*!< Timer event 9 */
  20047. #define HRTIM_RST2R_EXTVNT1_Pos (21U)
  20048. #define HRTIM_RST2R_EXTVNT1_Msk (0x1U << HRTIM_RST2R_EXTVNT1_Pos) /*!< 0x00200000 */
  20049. #define HRTIM_RST2R_EXTVNT1 HRTIM_RST2R_EXTVNT1_Msk /*!< External event 1 */
  20050. #define HRTIM_RST2R_EXTVNT2_Pos (22U)
  20051. #define HRTIM_RST2R_EXTVNT2_Msk (0x1U << HRTIM_RST2R_EXTVNT2_Pos) /*!< 0x00400000 */
  20052. #define HRTIM_RST2R_EXTVNT2 HRTIM_RST2R_EXTVNT2_Msk /*!< External event 2 */
  20053. #define HRTIM_RST2R_EXTVNT3_Pos (23U)
  20054. #define HRTIM_RST2R_EXTVNT3_Msk (0x1U << HRTIM_RST2R_EXTVNT3_Pos) /*!< 0x00800000 */
  20055. #define HRTIM_RST2R_EXTVNT3 HRTIM_RST2R_EXTVNT3_Msk /*!< External event 3 */
  20056. #define HRTIM_RST2R_EXTVNT4_Pos (24U)
  20057. #define HRTIM_RST2R_EXTVNT4_Msk (0x1U << HRTIM_RST2R_EXTVNT4_Pos) /*!< 0x01000000 */
  20058. #define HRTIM_RST2R_EXTVNT4 HRTIM_RST2R_EXTVNT4_Msk /*!< External event 4 */
  20059. #define HRTIM_RST2R_EXTVNT5_Pos (25U)
  20060. #define HRTIM_RST2R_EXTVNT5_Msk (0x1U << HRTIM_RST2R_EXTVNT5_Pos) /*!< 0x02000000 */
  20061. #define HRTIM_RST2R_EXTVNT5 HRTIM_RST2R_EXTVNT5_Msk /*!< External event 5 */
  20062. #define HRTIM_RST2R_EXTVNT6_Pos (26U)
  20063. #define HRTIM_RST2R_EXTVNT6_Msk (0x1U << HRTIM_RST2R_EXTVNT6_Pos) /*!< 0x04000000 */
  20064. #define HRTIM_RST2R_EXTVNT6 HRTIM_RST2R_EXTVNT6_Msk /*!< External event 6 */
  20065. #define HRTIM_RST2R_EXTVNT7_Pos (27U)
  20066. #define HRTIM_RST2R_EXTVNT7_Msk (0x1U << HRTIM_RST2R_EXTVNT7_Pos) /*!< 0x08000000 */
  20067. #define HRTIM_RST2R_EXTVNT7 HRTIM_RST2R_EXTVNT7_Msk /*!< External event 7 */
  20068. #define HRTIM_RST2R_EXTVNT8_Pos (28U)
  20069. #define HRTIM_RST2R_EXTVNT8_Msk (0x1U << HRTIM_RST2R_EXTVNT8_Pos) /*!< 0x10000000 */
  20070. #define HRTIM_RST2R_EXTVNT8 HRTIM_RST2R_EXTVNT8_Msk /*!< External event 8 */
  20071. #define HRTIM_RST2R_EXTVNT9_Pos (29U)
  20072. #define HRTIM_RST2R_EXTVNT9_Msk (0x1U << HRTIM_RST2R_EXTVNT9_Pos) /*!< 0x20000000 */
  20073. #define HRTIM_RST2R_EXTVNT9 HRTIM_RST2R_EXTVNT9_Msk /*!< External event 9 */
  20074. #define HRTIM_RST2R_EXTVNT10_Pos (30U)
  20075. #define HRTIM_RST2R_EXTVNT10_Msk (0x1U << HRTIM_RST2R_EXTVNT10_Pos) /*!< 0x40000000 */
  20076. #define HRTIM_RST2R_EXTVNT10 HRTIM_RST2R_EXTVNT10_Msk /*!< External event 10 */
  20077. #define HRTIM_RST2R_UPDATE_Pos (31U)
  20078. #define HRTIM_RST2R_UPDATE_Msk (0x1U << HRTIM_RST2R_UPDATE_Pos) /*!< 0x80000000 */
  20079. #define HRTIM_RST2R_UPDATE HRTIM_RST2R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  20080. /**** Bit definition for Slave external event filtering register 1 ***********/
  20081. #define HRTIM_EEFR1_EE1LTCH_Pos (0U)
  20082. #define HRTIM_EEFR1_EE1LTCH_Msk (0x1U << HRTIM_EEFR1_EE1LTCH_Pos) /*!< 0x00000001 */
  20083. #define HRTIM_EEFR1_EE1LTCH HRTIM_EEFR1_EE1LTCH_Msk /*!< External Event 1 latch */
  20084. #define HRTIM_EEFR1_EE1FLTR_Pos (1U)
  20085. #define HRTIM_EEFR1_EE1FLTR_Msk (0xFU << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x0000001E */
  20086. #define HRTIM_EEFR1_EE1FLTR HRTIM_EEFR1_EE1FLTR_Msk /*!< External Event 1 filter mask */
  20087. #define HRTIM_EEFR1_EE1FLTR_0 (0x1U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000002 */
  20088. #define HRTIM_EEFR1_EE1FLTR_1 (0x2U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000004 */
  20089. #define HRTIM_EEFR1_EE1FLTR_2 (0x4U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000008 */
  20090. #define HRTIM_EEFR1_EE1FLTR_3 (0x8U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000010 */
  20091. #define HRTIM_EEFR1_EE2LTCH_Pos (6U)
  20092. #define HRTIM_EEFR1_EE2LTCH_Msk (0x1U << HRTIM_EEFR1_EE2LTCH_Pos) /*!< 0x00000040 */
  20093. #define HRTIM_EEFR1_EE2LTCH HRTIM_EEFR1_EE2LTCH_Msk /*!< External Event 2 latch */
  20094. #define HRTIM_EEFR1_EE2FLTR_Pos (7U)
  20095. #define HRTIM_EEFR1_EE2FLTR_Msk (0xFU << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000780 */
  20096. #define HRTIM_EEFR1_EE2FLTR HRTIM_EEFR1_EE2FLTR_Msk /*!< External Event 2 filter mask */
  20097. #define HRTIM_EEFR1_EE2FLTR_0 (0x1U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000080 */
  20098. #define HRTIM_EEFR1_EE2FLTR_1 (0x2U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000100 */
  20099. #define HRTIM_EEFR1_EE2FLTR_2 (0x4U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000200 */
  20100. #define HRTIM_EEFR1_EE2FLTR_3 (0x8U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000400 */
  20101. #define HRTIM_EEFR1_EE3LTCH_Pos (12U)
  20102. #define HRTIM_EEFR1_EE3LTCH_Msk (0x1U << HRTIM_EEFR1_EE3LTCH_Pos) /*!< 0x00001000 */
  20103. #define HRTIM_EEFR1_EE3LTCH HRTIM_EEFR1_EE3LTCH_Msk /*!< External Event 3 latch */
  20104. #define HRTIM_EEFR1_EE3FLTR_Pos (13U)
  20105. #define HRTIM_EEFR1_EE3FLTR_Msk (0xFU << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x0001E000 */
  20106. #define HRTIM_EEFR1_EE3FLTR HRTIM_EEFR1_EE3FLTR_Msk /*!< External Event 3 filter mask */
  20107. #define HRTIM_EEFR1_EE3FLTR_0 (0x1U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00002000 */
  20108. #define HRTIM_EEFR1_EE3FLTR_1 (0x2U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00004000 */
  20109. #define HRTIM_EEFR1_EE3FLTR_2 (0x4U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00008000 */
  20110. #define HRTIM_EEFR1_EE3FLTR_3 (0x8U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00010000 */
  20111. #define HRTIM_EEFR1_EE4LTCH_Pos (18U)
  20112. #define HRTIM_EEFR1_EE4LTCH_Msk (0x1U << HRTIM_EEFR1_EE4LTCH_Pos) /*!< 0x00040000 */
  20113. #define HRTIM_EEFR1_EE4LTCH HRTIM_EEFR1_EE4LTCH_Msk /*!< External Event 4 latch */
  20114. #define HRTIM_EEFR1_EE4FLTR_Pos (19U)
  20115. #define HRTIM_EEFR1_EE4FLTR_Msk (0xFU << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00780000 */
  20116. #define HRTIM_EEFR1_EE4FLTR HRTIM_EEFR1_EE4FLTR_Msk /*!< External Event 4 filter mask */
  20117. #define HRTIM_EEFR1_EE4FLTR_0 (0x1U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00080000 */
  20118. #define HRTIM_EEFR1_EE4FLTR_1 (0x2U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00100000 */
  20119. #define HRTIM_EEFR1_EE4FLTR_2 (0x4U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00200000 */
  20120. #define HRTIM_EEFR1_EE4FLTR_3 (0x8U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00400000 */
  20121. #define HRTIM_EEFR1_EE5LTCH_Pos (24U)
  20122. #define HRTIM_EEFR1_EE5LTCH_Msk (0x1U << HRTIM_EEFR1_EE5LTCH_Pos) /*!< 0x01000000 */
  20123. #define HRTIM_EEFR1_EE5LTCH HRTIM_EEFR1_EE5LTCH_Msk /*!< External Event 5 latch */
  20124. #define HRTIM_EEFR1_EE5FLTR_Pos (25U)
  20125. #define HRTIM_EEFR1_EE5FLTR_Msk (0xFU << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x1E000000 */
  20126. #define HRTIM_EEFR1_EE5FLTR HRTIM_EEFR1_EE5FLTR_Msk /*!< External Event 5 filter mask */
  20127. #define HRTIM_EEFR1_EE5FLTR_0 (0x1U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x02000000 */
  20128. #define HRTIM_EEFR1_EE5FLTR_1 (0x2U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x04000000 */
  20129. #define HRTIM_EEFR1_EE5FLTR_2 (0x4U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x08000000 */
  20130. #define HRTIM_EEFR1_EE5FLTR_3 (0x8U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x10000000 */
  20131. /**** Bit definition for Slave external event filtering register 2 ***********/
  20132. #define HRTIM_EEFR2_EE6LTCH_Pos (0U)
  20133. #define HRTIM_EEFR2_EE6LTCH_Msk (0x1U << HRTIM_EEFR2_EE6LTCH_Pos) /*!< 0x00000001 */
  20134. #define HRTIM_EEFR2_EE6LTCH HRTIM_EEFR2_EE6LTCH_Msk /*!< External Event 6 latch */
  20135. #define HRTIM_EEFR2_EE6FLTR_Pos (1U)
  20136. #define HRTIM_EEFR2_EE6FLTR_Msk (0xFU << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x0000001E */
  20137. #define HRTIM_EEFR2_EE6FLTR HRTIM_EEFR2_EE6FLTR_Msk /*!< External Event 6 filter mask */
  20138. #define HRTIM_EEFR2_EE6FLTR_0 (0x1U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000002 */
  20139. #define HRTIM_EEFR2_EE6FLTR_1 (0x2U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000004 */
  20140. #define HRTIM_EEFR2_EE6FLTR_2 (0x4U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000008 */
  20141. #define HRTIM_EEFR2_EE6FLTR_3 (0x8U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000010 */
  20142. #define HRTIM_EEFR2_EE7LTCH_Pos (6U)
  20143. #define HRTIM_EEFR2_EE7LTCH_Msk (0x1U << HRTIM_EEFR2_EE7LTCH_Pos) /*!< 0x00000040 */
  20144. #define HRTIM_EEFR2_EE7LTCH HRTIM_EEFR2_EE7LTCH_Msk /*!< External Event 7 latch */
  20145. #define HRTIM_EEFR2_EE7FLTR_Pos (7U)
  20146. #define HRTIM_EEFR2_EE7FLTR_Msk (0xFU << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000780 */
  20147. #define HRTIM_EEFR2_EE7FLTR HRTIM_EEFR2_EE7FLTR_Msk /*!< External Event 7 filter mask */
  20148. #define HRTIM_EEFR2_EE7FLTR_0 (0x1U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000080 */
  20149. #define HRTIM_EEFR2_EE7FLTR_1 (0x2U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000100 */
  20150. #define HRTIM_EEFR2_EE7FLTR_2 (0x4U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000200 */
  20151. #define HRTIM_EEFR2_EE7FLTR_3 (0x8U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000400 */
  20152. #define HRTIM_EEFR2_EE8LTCH_Pos (12U)
  20153. #define HRTIM_EEFR2_EE8LTCH_Msk (0x1U << HRTIM_EEFR2_EE8LTCH_Pos) /*!< 0x00001000 */
  20154. #define HRTIM_EEFR2_EE8LTCH HRTIM_EEFR2_EE8LTCH_Msk /*!< External Event 8 latch */
  20155. #define HRTIM_EEFR2_EE8FLTR_Pos (13U)
  20156. #define HRTIM_EEFR2_EE8FLTR_Msk (0xFU << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x0001E000 */
  20157. #define HRTIM_EEFR2_EE8FLTR HRTIM_EEFR2_EE8FLTR_Msk /*!< External Event 8 filter mask */
  20158. #define HRTIM_EEFR2_EE8FLTR_0 (0x1U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00002000 */
  20159. #define HRTIM_EEFR2_EE8FLTR_1 (0x2U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00004000 */
  20160. #define HRTIM_EEFR2_EE8FLTR_2 (0x4U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00008000 */
  20161. #define HRTIM_EEFR2_EE8FLTR_3 (0x8U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00010000 */
  20162. #define HRTIM_EEFR2_EE9LTCH_Pos (18U)
  20163. #define HRTIM_EEFR2_EE9LTCH_Msk (0x1U << HRTIM_EEFR2_EE9LTCH_Pos) /*!< 0x00040000 */
  20164. #define HRTIM_EEFR2_EE9LTCH HRTIM_EEFR2_EE9LTCH_Msk /*!< External Event 9 latch */
  20165. #define HRTIM_EEFR2_EE9FLTR_Pos (19U)
  20166. #define HRTIM_EEFR2_EE9FLTR_Msk (0xFU << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00780000 */
  20167. #define HRTIM_EEFR2_EE9FLTR HRTIM_EEFR2_EE9FLTR_Msk /*!< External Event 9 filter mask */
  20168. #define HRTIM_EEFR2_EE9FLTR_0 (0x1U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00080000 */
  20169. #define HRTIM_EEFR2_EE9FLTR_1 (0x2U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00100000 */
  20170. #define HRTIM_EEFR2_EE9FLTR_2 (0x4U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00200000 */
  20171. #define HRTIM_EEFR2_EE9FLTR_3 (0x8U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00400000 */
  20172. #define HRTIM_EEFR2_EE10LTCH_Pos (24U)
  20173. #define HRTIM_EEFR2_EE10LTCH_Msk (0x1U << HRTIM_EEFR2_EE10LTCH_Pos) /*!< 0x01000000 */
  20174. #define HRTIM_EEFR2_EE10LTCH HRTIM_EEFR2_EE10LTCH_Msk /*!< External Event 10 latch */
  20175. #define HRTIM_EEFR2_EE10FLTR_Pos (25U)
  20176. #define HRTIM_EEFR2_EE10FLTR_Msk (0xFU << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x1E000000 */
  20177. #define HRTIM_EEFR2_EE10FLTR HRTIM_EEFR2_EE10FLTR_Msk /*!< External Event 10 filter mask */
  20178. #define HRTIM_EEFR2_EE10FLTR_0 (0x1U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x02000000 */
  20179. #define HRTIM_EEFR2_EE10FLTR_1 (0x2U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x04000000 */
  20180. #define HRTIM_EEFR2_EE10FLTR_2 (0x4U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x08000000 */
  20181. #define HRTIM_EEFR2_EE10FLTR_3 (0x8U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x10000000 */
  20182. /**** Bit definition for Slave Timer reset register ***************************/
  20183. #define HRTIM_RSTR_UPDATE_Pos (1U)
  20184. #define HRTIM_RSTR_UPDATE_Msk (0x1U << HRTIM_RSTR_UPDATE_Pos) /*!< 0x00000002 */
  20185. #define HRTIM_RSTR_UPDATE HRTIM_RSTR_UPDATE_Msk /*!< Timer update */
  20186. #define HRTIM_RSTR_CMP2_Pos (2U)
  20187. #define HRTIM_RSTR_CMP2_Msk (0x1U << HRTIM_RSTR_CMP2_Pos) /*!< 0x00000004 */
  20188. #define HRTIM_RSTR_CMP2 HRTIM_RSTR_CMP2_Msk /*!< Timer compare2 */
  20189. #define HRTIM_RSTR_CMP4_Pos (3U)
  20190. #define HRTIM_RSTR_CMP4_Msk (0x1U << HRTIM_RSTR_CMP4_Pos) /*!< 0x00000008 */
  20191. #define HRTIM_RSTR_CMP4 HRTIM_RSTR_CMP4_Msk /*!< Timer compare4 */
  20192. #define HRTIM_RSTR_MSTPER_Pos (4U)
  20193. #define HRTIM_RSTR_MSTPER_Msk (0x1U << HRTIM_RSTR_MSTPER_Pos) /*!< 0x00000010 */
  20194. #define HRTIM_RSTR_MSTPER HRTIM_RSTR_MSTPER_Msk /*!< Master period */
  20195. #define HRTIM_RSTR_MSTCMP1_Pos (5U)
  20196. #define HRTIM_RSTR_MSTCMP1_Msk (0x1U << HRTIM_RSTR_MSTCMP1_Pos) /*!< 0x00000020 */
  20197. #define HRTIM_RSTR_MSTCMP1 HRTIM_RSTR_MSTCMP1_Msk /*!< Master compare1 */
  20198. #define HRTIM_RSTR_MSTCMP2_Pos (6U)
  20199. #define HRTIM_RSTR_MSTCMP2_Msk (0x1U << HRTIM_RSTR_MSTCMP2_Pos) /*!< 0x00000040 */
  20200. #define HRTIM_RSTR_MSTCMP2 HRTIM_RSTR_MSTCMP2_Msk /*!< Master compare2 */
  20201. #define HRTIM_RSTR_MSTCMP3_Pos (7U)
  20202. #define HRTIM_RSTR_MSTCMP3_Msk (0x1U << HRTIM_RSTR_MSTCMP3_Pos) /*!< 0x00000080 */
  20203. #define HRTIM_RSTR_MSTCMP3 HRTIM_RSTR_MSTCMP3_Msk /*!< Master compare3 */
  20204. #define HRTIM_RSTR_MSTCMP4_Pos (8U)
  20205. #define HRTIM_RSTR_MSTCMP4_Msk (0x1U << HRTIM_RSTR_MSTCMP4_Pos) /*!< 0x00000100 */
  20206. #define HRTIM_RSTR_MSTCMP4 HRTIM_RSTR_MSTCMP4_Msk /*!< Master compare4 */
  20207. #define HRTIM_RSTR_EXTEVNT1_Pos (9U)
  20208. #define HRTIM_RSTR_EXTEVNT1_Msk (0x1U << HRTIM_RSTR_EXTEVNT1_Pos) /*!< 0x00000200 */
  20209. #define HRTIM_RSTR_EXTEVNT1 HRTIM_RSTR_EXTEVNT1_Msk /*!< External event 1 */
  20210. #define HRTIM_RSTR_EXTEVNT2_Pos (10U)
  20211. #define HRTIM_RSTR_EXTEVNT2_Msk (0x1U << HRTIM_RSTR_EXTEVNT2_Pos) /*!< 0x00000400 */
  20212. #define HRTIM_RSTR_EXTEVNT2 HRTIM_RSTR_EXTEVNT2_Msk /*!< External event 2 */
  20213. #define HRTIM_RSTR_EXTEVNT3_Pos (11U)
  20214. #define HRTIM_RSTR_EXTEVNT3_Msk (0x1U << HRTIM_RSTR_EXTEVNT3_Pos) /*!< 0x00000800 */
  20215. #define HRTIM_RSTR_EXTEVNT3 HRTIM_RSTR_EXTEVNT3_Msk /*!< External event 3 */
  20216. #define HRTIM_RSTR_EXTEVNT4_Pos (12U)
  20217. #define HRTIM_RSTR_EXTEVNT4_Msk (0x1U << HRTIM_RSTR_EXTEVNT4_Pos) /*!< 0x00001000 */
  20218. #define HRTIM_RSTR_EXTEVNT4 HRTIM_RSTR_EXTEVNT4_Msk /*!< External event 4 */
  20219. #define HRTIM_RSTR_EXTEVNT5_Pos (13U)
  20220. #define HRTIM_RSTR_EXTEVNT5_Msk (0x1U << HRTIM_RSTR_EXTEVNT5_Pos) /*!< 0x00002000 */
  20221. #define HRTIM_RSTR_EXTEVNT5 HRTIM_RSTR_EXTEVNT5_Msk /*!< External event 5 */
  20222. #define HRTIM_RSTR_EXTEVNT6_Pos (14U)
  20223. #define HRTIM_RSTR_EXTEVNT6_Msk (0x1U << HRTIM_RSTR_EXTEVNT6_Pos) /*!< 0x00004000 */
  20224. #define HRTIM_RSTR_EXTEVNT6 HRTIM_RSTR_EXTEVNT6_Msk /*!< External event 6 */
  20225. #define HRTIM_RSTR_EXTEVNT7_Pos (15U)
  20226. #define HRTIM_RSTR_EXTEVNT7_Msk (0x1U << HRTIM_RSTR_EXTEVNT7_Pos) /*!< 0x00008000 */
  20227. #define HRTIM_RSTR_EXTEVNT7 HRTIM_RSTR_EXTEVNT7_Msk /*!< External event 7 */
  20228. #define HRTIM_RSTR_EXTEVNT8_Pos (16U)
  20229. #define HRTIM_RSTR_EXTEVNT8_Msk (0x1U << HRTIM_RSTR_EXTEVNT8_Pos) /*!< 0x00010000 */
  20230. #define HRTIM_RSTR_EXTEVNT8 HRTIM_RSTR_EXTEVNT8_Msk /*!< External event 8 */
  20231. #define HRTIM_RSTR_EXTEVNT9_Pos (17U)
  20232. #define HRTIM_RSTR_EXTEVNT9_Msk (0x1U << HRTIM_RSTR_EXTEVNT9_Pos) /*!< 0x00020000 */
  20233. #define HRTIM_RSTR_EXTEVNT9 HRTIM_RSTR_EXTEVNT9_Msk /*!< External event 9 */
  20234. #define HRTIM_RSTR_EXTEVNT10_Pos (18U)
  20235. #define HRTIM_RSTR_EXTEVNT10_Msk (0x1U << HRTIM_RSTR_EXTEVNT10_Pos) /*!< 0x00040000 */
  20236. #define HRTIM_RSTR_EXTEVNT10 HRTIM_RSTR_EXTEVNT10_Msk /*!< External event 10 */
  20237. #define HRTIM_RSTR_TIMBCMP1_Pos (19U)
  20238. #define HRTIM_RSTR_TIMBCMP1_Msk (0x1U << HRTIM_RSTR_TIMBCMP1_Pos) /*!< 0x00080000 */
  20239. #define HRTIM_RSTR_TIMBCMP1 HRTIM_RSTR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  20240. #define HRTIM_RSTR_TIMBCMP2_Pos (20U)
  20241. #define HRTIM_RSTR_TIMBCMP2_Msk (0x1U << HRTIM_RSTR_TIMBCMP2_Pos) /*!< 0x00100000 */
  20242. #define HRTIM_RSTR_TIMBCMP2 HRTIM_RSTR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  20243. #define HRTIM_RSTR_TIMBCMP4_Pos (21U)
  20244. #define HRTIM_RSTR_TIMBCMP4_Msk (0x1U << HRTIM_RSTR_TIMBCMP4_Pos) /*!< 0x00200000 */
  20245. #define HRTIM_RSTR_TIMBCMP4 HRTIM_RSTR_TIMBCMP4_Msk /*!< Timer B compare 4 */
  20246. #define HRTIM_RSTR_TIMCCMP1_Pos (22U)
  20247. #define HRTIM_RSTR_TIMCCMP1_Msk (0x1U << HRTIM_RSTR_TIMCCMP1_Pos) /*!< 0x00400000 */
  20248. #define HRTIM_RSTR_TIMCCMP1 HRTIM_RSTR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  20249. #define HRTIM_RSTR_TIMCCMP2_Pos (23U)
  20250. #define HRTIM_RSTR_TIMCCMP2_Msk (0x1U << HRTIM_RSTR_TIMCCMP2_Pos) /*!< 0x00800000 */
  20251. #define HRTIM_RSTR_TIMCCMP2 HRTIM_RSTR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20252. #define HRTIM_RSTR_TIMCCMP4_Pos (24U)
  20253. #define HRTIM_RSTR_TIMCCMP4_Msk (0x1U << HRTIM_RSTR_TIMCCMP4_Pos) /*!< 0x01000000 */
  20254. #define HRTIM_RSTR_TIMCCMP4 HRTIM_RSTR_TIMCCMP4_Msk /*!< Timer C compare 4 */
  20255. #define HRTIM_RSTR_TIMDCMP1_Pos (25U)
  20256. #define HRTIM_RSTR_TIMDCMP1_Msk (0x1U << HRTIM_RSTR_TIMDCMP1_Pos) /*!< 0x02000000 */
  20257. #define HRTIM_RSTR_TIMDCMP1 HRTIM_RSTR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20258. #define HRTIM_RSTR_TIMDCMP2_Pos (26U)
  20259. #define HRTIM_RSTR_TIMDCMP2_Msk (0x1U << HRTIM_RSTR_TIMDCMP2_Pos) /*!< 0x04000000 */
  20260. #define HRTIM_RSTR_TIMDCMP2 HRTIM_RSTR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20261. #define HRTIM_RSTR_TIMDCMP4_Pos (27U)
  20262. #define HRTIM_RSTR_TIMDCMP4_Msk (0x1U << HRTIM_RSTR_TIMDCMP4_Pos) /*!< 0x08000000 */
  20263. #define HRTIM_RSTR_TIMDCMP4 HRTIM_RSTR_TIMDCMP4_Msk /*!< Timer D compare 4 */
  20264. #define HRTIM_RSTR_TIMECMP1_Pos (28U)
  20265. #define HRTIM_RSTR_TIMECMP1_Msk (0x1U << HRTIM_RSTR_TIMECMP1_Pos) /*!< 0x10000000 */
  20266. #define HRTIM_RSTR_TIMECMP1 HRTIM_RSTR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20267. #define HRTIM_RSTR_TIMECMP2_Pos (29U)
  20268. #define HRTIM_RSTR_TIMECMP2_Msk (0x1U << HRTIM_RSTR_TIMECMP2_Pos) /*!< 0x20000000 */
  20269. #define HRTIM_RSTR_TIMECMP2 HRTIM_RSTR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20270. #define HRTIM_RSTR_TIMECMP4_Pos (30U)
  20271. #define HRTIM_RSTR_TIMECMP4_Msk (0x1U << HRTIM_RSTR_TIMECMP4_Pos) /*!< 0x40000000 */
  20272. #define HRTIM_RSTR_TIMECMP4 HRTIM_RSTR_TIMECMP4_Msk /*!< Timer E compare 4 */
  20273. /**** Bit definition for Slave Timer Chopper register *************************/
  20274. #define HRTIM_CHPR_CARFRQ_Pos (0U)
  20275. #define HRTIM_CHPR_CARFRQ_Msk (0xFU << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x0000000F */
  20276. #define HRTIM_CHPR_CARFRQ HRTIM_CHPR_CARFRQ_Msk /*!< Timer carrier frequency value */
  20277. #define HRTIM_CHPR_CARFRQ_0 (0x1U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000001 */
  20278. #define HRTIM_CHPR_CARFRQ_1 (0x2U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000002 */
  20279. #define HRTIM_CHPR_CARFRQ_2 (0x4U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000004 */
  20280. #define HRTIM_CHPR_CARFRQ_3 (0x8U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000008 */
  20281. #define HRTIM_CHPR_CARDTY_Pos (4U)
  20282. #define HRTIM_CHPR_CARDTY_Msk (0x7U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000070 */
  20283. #define HRTIM_CHPR_CARDTY HRTIM_CHPR_CARDTY_Msk /*!< Timer chopper duty cycle value */
  20284. #define HRTIM_CHPR_CARDTY_0 (0x1U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000010 */
  20285. #define HRTIM_CHPR_CARDTY_1 (0x2U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000020 */
  20286. #define HRTIM_CHPR_CARDTY_2 (0x4U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000040 */
  20287. #define HRTIM_CHPR_STRPW_Pos (7U)
  20288. #define HRTIM_CHPR_STRPW_Msk (0xFU << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000780 */
  20289. #define HRTIM_CHPR_STRPW HRTIM_CHPR_STRPW_Msk /*!< Timer start pulse width value */
  20290. #define HRTIM_CHPR_STRPW_0 (0x1U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000080 */
  20291. #define HRTIM_CHPR_STRPW_1 (0x2U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000100 */
  20292. #define HRTIM_CHPR_STRPW_2 (0x4U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000200 */
  20293. #define HRTIM_CHPR_STRPW_3 (0x8U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000400 */
  20294. /**** Bit definition for Slave Timer Capture 1 control register ***************/
  20295. #define HRTIM_CPT1CR_SWCPT_Pos (0U)
  20296. #define HRTIM_CPT1CR_SWCPT_Msk (0x1U << HRTIM_CPT1CR_SWCPT_Pos) /*!< 0x00000001 */
  20297. #define HRTIM_CPT1CR_SWCPT HRTIM_CPT1CR_SWCPT_Msk /*!< Software capture */
  20298. #define HRTIM_CPT1CR_UPDCPT_Pos (1U)
  20299. #define HRTIM_CPT1CR_UPDCPT_Msk (0x1U << HRTIM_CPT1CR_UPDCPT_Pos) /*!< 0x00000002 */
  20300. #define HRTIM_CPT1CR_UPDCPT HRTIM_CPT1CR_UPDCPT_Msk /*!< Update capture */
  20301. #define HRTIM_CPT1CR_EXEV1CPT_Pos (2U)
  20302. #define HRTIM_CPT1CR_EXEV1CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV1CPT_Pos) /*!< 0x00000004 */
  20303. #define HRTIM_CPT1CR_EXEV1CPT HRTIM_CPT1CR_EXEV1CPT_Msk /*!< External event 1 capture */
  20304. #define HRTIM_CPT1CR_EXEV2CPT_Pos (3U)
  20305. #define HRTIM_CPT1CR_EXEV2CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV2CPT_Pos) /*!< 0x00000008 */
  20306. #define HRTIM_CPT1CR_EXEV2CPT HRTIM_CPT1CR_EXEV2CPT_Msk /*!< External event 2 capture */
  20307. #define HRTIM_CPT1CR_EXEV3CPT_Pos (4U)
  20308. #define HRTIM_CPT1CR_EXEV3CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV3CPT_Pos) /*!< 0x00000010 */
  20309. #define HRTIM_CPT1CR_EXEV3CPT HRTIM_CPT1CR_EXEV3CPT_Msk /*!< External event 3 capture */
  20310. #define HRTIM_CPT1CR_EXEV4CPT_Pos (5U)
  20311. #define HRTIM_CPT1CR_EXEV4CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV4CPT_Pos) /*!< 0x00000020 */
  20312. #define HRTIM_CPT1CR_EXEV4CPT HRTIM_CPT1CR_EXEV4CPT_Msk /*!< External event 4 capture */
  20313. #define HRTIM_CPT1CR_EXEV5CPT_Pos (6U)
  20314. #define HRTIM_CPT1CR_EXEV5CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV5CPT_Pos) /*!< 0x00000040 */
  20315. #define HRTIM_CPT1CR_EXEV5CPT HRTIM_CPT1CR_EXEV5CPT_Msk /*!< External event 5 capture */
  20316. #define HRTIM_CPT1CR_EXEV6CPT_Pos (7U)
  20317. #define HRTIM_CPT1CR_EXEV6CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV6CPT_Pos) /*!< 0x00000080 */
  20318. #define HRTIM_CPT1CR_EXEV6CPT HRTIM_CPT1CR_EXEV6CPT_Msk /*!< External event 6 capture */
  20319. #define HRTIM_CPT1CR_EXEV7CPT_Pos (8U)
  20320. #define HRTIM_CPT1CR_EXEV7CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV7CPT_Pos) /*!< 0x00000100 */
  20321. #define HRTIM_CPT1CR_EXEV7CPT HRTIM_CPT1CR_EXEV7CPT_Msk /*!< External event 7 capture */
  20322. #define HRTIM_CPT1CR_EXEV8CPT_Pos (9U)
  20323. #define HRTIM_CPT1CR_EXEV8CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV8CPT_Pos) /*!< 0x00000200 */
  20324. #define HRTIM_CPT1CR_EXEV8CPT HRTIM_CPT1CR_EXEV8CPT_Msk /*!< External event 8 capture */
  20325. #define HRTIM_CPT1CR_EXEV9CPT_Pos (10U)
  20326. #define HRTIM_CPT1CR_EXEV9CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV9CPT_Pos) /*!< 0x00000400 */
  20327. #define HRTIM_CPT1CR_EXEV9CPT HRTIM_CPT1CR_EXEV9CPT_Msk /*!< External event 9 capture */
  20328. #define HRTIM_CPT1CR_EXEV10CPT_Pos (11U)
  20329. #define HRTIM_CPT1CR_EXEV10CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV10CPT_Pos) /*!< 0x00000800 */
  20330. #define HRTIM_CPT1CR_EXEV10CPT HRTIM_CPT1CR_EXEV10CPT_Msk /*!< External event 10 capture */
  20331. #define HRTIM_CPT1CR_TA1SET_Pos (12U)
  20332. #define HRTIM_CPT1CR_TA1SET_Msk (0x1U << HRTIM_CPT1CR_TA1SET_Pos) /*!< 0x00001000 */
  20333. #define HRTIM_CPT1CR_TA1SET HRTIM_CPT1CR_TA1SET_Msk /*!< Timer A output 1 set */
  20334. #define HRTIM_CPT1CR_TA1RST_Pos (13U)
  20335. #define HRTIM_CPT1CR_TA1RST_Msk (0x1U << HRTIM_CPT1CR_TA1RST_Pos) /*!< 0x00002000 */
  20336. #define HRTIM_CPT1CR_TA1RST HRTIM_CPT1CR_TA1RST_Msk /*!< Timer A output 1 reset */
  20337. #define HRTIM_CPT1CR_TIMACMP1_Pos (14U)
  20338. #define HRTIM_CPT1CR_TIMACMP1_Msk (0x1U << HRTIM_CPT1CR_TIMACMP1_Pos) /*!< 0x00004000 */
  20339. #define HRTIM_CPT1CR_TIMACMP1 HRTIM_CPT1CR_TIMACMP1_Msk /*!< Timer A compare 1 */
  20340. #define HRTIM_CPT1CR_TIMACMP2_Pos (15U)
  20341. #define HRTIM_CPT1CR_TIMACMP2_Msk (0x1U << HRTIM_CPT1CR_TIMACMP2_Pos) /*!< 0x00008000 */
  20342. #define HRTIM_CPT1CR_TIMACMP2 HRTIM_CPT1CR_TIMACMP2_Msk /*!< Timer A compare 2 */
  20343. #define HRTIM_CPT1CR_TB1SET_Pos (16U)
  20344. #define HRTIM_CPT1CR_TB1SET_Msk (0x1U << HRTIM_CPT1CR_TB1SET_Pos) /*!< 0x00010000 */
  20345. #define HRTIM_CPT1CR_TB1SET HRTIM_CPT1CR_TB1SET_Msk /*!< Timer B output 1 set */
  20346. #define HRTIM_CPT1CR_TB1RST_Pos (17U)
  20347. #define HRTIM_CPT1CR_TB1RST_Msk (0x1U << HRTIM_CPT1CR_TB1RST_Pos) /*!< 0x00020000 */
  20348. #define HRTIM_CPT1CR_TB1RST HRTIM_CPT1CR_TB1RST_Msk /*!< Timer B output 1 reset */
  20349. #define HRTIM_CPT1CR_TIMBCMP1_Pos (18U)
  20350. #define HRTIM_CPT1CR_TIMBCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMBCMP1_Pos) /*!< 0x00040000 */
  20351. #define HRTIM_CPT1CR_TIMBCMP1 HRTIM_CPT1CR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  20352. #define HRTIM_CPT1CR_TIMBCMP2_Pos (19U)
  20353. #define HRTIM_CPT1CR_TIMBCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMBCMP2_Pos) /*!< 0x00080000 */
  20354. #define HRTIM_CPT1CR_TIMBCMP2 HRTIM_CPT1CR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  20355. #define HRTIM_CPT1CR_TC1SET_Pos (20U)
  20356. #define HRTIM_CPT1CR_TC1SET_Msk (0x1U << HRTIM_CPT1CR_TC1SET_Pos) /*!< 0x00100000 */
  20357. #define HRTIM_CPT1CR_TC1SET HRTIM_CPT1CR_TC1SET_Msk /*!< Timer C output 1 set */
  20358. #define HRTIM_CPT1CR_TC1RST_Pos (21U)
  20359. #define HRTIM_CPT1CR_TC1RST_Msk (0x1U << HRTIM_CPT1CR_TC1RST_Pos) /*!< 0x00200000 */
  20360. #define HRTIM_CPT1CR_TC1RST HRTIM_CPT1CR_TC1RST_Msk /*!< Timer C output 1 reset */
  20361. #define HRTIM_CPT1CR_TIMCCMP1_Pos (22U)
  20362. #define HRTIM_CPT1CR_TIMCCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMCCMP1_Pos) /*!< 0x00400000 */
  20363. #define HRTIM_CPT1CR_TIMCCMP1 HRTIM_CPT1CR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  20364. #define HRTIM_CPT1CR_TIMCCMP2_Pos (23U)
  20365. #define HRTIM_CPT1CR_TIMCCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMCCMP2_Pos) /*!< 0x00800000 */
  20366. #define HRTIM_CPT1CR_TIMCCMP2 HRTIM_CPT1CR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20367. #define HRTIM_CPT1CR_TD1SET_Pos (24U)
  20368. #define HRTIM_CPT1CR_TD1SET_Msk (0x1U << HRTIM_CPT1CR_TD1SET_Pos) /*!< 0x01000000 */
  20369. #define HRTIM_CPT1CR_TD1SET HRTIM_CPT1CR_TD1SET_Msk /*!< Timer D output 1 set */
  20370. #define HRTIM_CPT1CR_TD1RST_Pos (25U)
  20371. #define HRTIM_CPT1CR_TD1RST_Msk (0x1U << HRTIM_CPT1CR_TD1RST_Pos) /*!< 0x02000000 */
  20372. #define HRTIM_CPT1CR_TD1RST HRTIM_CPT1CR_TD1RST_Msk /*!< Timer D output 1 reset */
  20373. #define HRTIM_CPT1CR_TIMDCMP1_Pos (26U)
  20374. #define HRTIM_CPT1CR_TIMDCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMDCMP1_Pos) /*!< 0x04000000 */
  20375. #define HRTIM_CPT1CR_TIMDCMP1 HRTIM_CPT1CR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20376. #define HRTIM_CPT1CR_TIMDCMP2_Pos (27U)
  20377. #define HRTIM_CPT1CR_TIMDCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMDCMP2_Pos) /*!< 0x08000000 */
  20378. #define HRTIM_CPT1CR_TIMDCMP2 HRTIM_CPT1CR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20379. #define HRTIM_CPT1CR_TE1SET_Pos (28U)
  20380. #define HRTIM_CPT1CR_TE1SET_Msk (0x1U << HRTIM_CPT1CR_TE1SET_Pos) /*!< 0x10000000 */
  20381. #define HRTIM_CPT1CR_TE1SET HRTIM_CPT1CR_TE1SET_Msk /*!< Timer E output 1 set */
  20382. #define HRTIM_CPT1CR_TE1RST_Pos (29U)
  20383. #define HRTIM_CPT1CR_TE1RST_Msk (0x1U << HRTIM_CPT1CR_TE1RST_Pos) /*!< 0x20000000 */
  20384. #define HRTIM_CPT1CR_TE1RST HRTIM_CPT1CR_TE1RST_Msk /*!< Timer E output 1 reset */
  20385. #define HRTIM_CPT1CR_TIMECMP1_Pos (30U)
  20386. #define HRTIM_CPT1CR_TIMECMP1_Msk (0x1U << HRTIM_CPT1CR_TIMECMP1_Pos) /*!< 0x40000000 */
  20387. #define HRTIM_CPT1CR_TIMECMP1 HRTIM_CPT1CR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20388. #define HRTIM_CPT1CR_TIMECMP2_Pos (31U)
  20389. #define HRTIM_CPT1CR_TIMECMP2_Msk (0x1U << HRTIM_CPT1CR_TIMECMP2_Pos) /*!< 0x80000000 */
  20390. #define HRTIM_CPT1CR_TIMECMP2 HRTIM_CPT1CR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20391. /**** Bit definition for Slave Timer Capture 2 control register ***************/
  20392. #define HRTIM_CPT2CR_SWCPT_Pos (0U)
  20393. #define HRTIM_CPT2CR_SWCPT_Msk (0x1U << HRTIM_CPT2CR_SWCPT_Pos) /*!< 0x00000001 */
  20394. #define HRTIM_CPT2CR_SWCPT HRTIM_CPT2CR_SWCPT_Msk /*!< Software capture */
  20395. #define HRTIM_CPT2CR_UPDCPT_Pos (1U)
  20396. #define HRTIM_CPT2CR_UPDCPT_Msk (0x1U << HRTIM_CPT2CR_UPDCPT_Pos) /*!< 0x00000002 */
  20397. #define HRTIM_CPT2CR_UPDCPT HRTIM_CPT2CR_UPDCPT_Msk /*!< Update capture */
  20398. #define HRTIM_CPT2CR_EXEV1CPT_Pos (2U)
  20399. #define HRTIM_CPT2CR_EXEV1CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV1CPT_Pos) /*!< 0x00000004 */
  20400. #define HRTIM_CPT2CR_EXEV1CPT HRTIM_CPT2CR_EXEV1CPT_Msk /*!< External event 1 capture */
  20401. #define HRTIM_CPT2CR_EXEV2CPT_Pos (3U)
  20402. #define HRTIM_CPT2CR_EXEV2CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV2CPT_Pos) /*!< 0x00000008 */
  20403. #define HRTIM_CPT2CR_EXEV2CPT HRTIM_CPT2CR_EXEV2CPT_Msk /*!< External event 2 capture */
  20404. #define HRTIM_CPT2CR_EXEV3CPT_Pos (4U)
  20405. #define HRTIM_CPT2CR_EXEV3CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV3CPT_Pos) /*!< 0x00000010 */
  20406. #define HRTIM_CPT2CR_EXEV3CPT HRTIM_CPT2CR_EXEV3CPT_Msk /*!< External event 3 capture */
  20407. #define HRTIM_CPT2CR_EXEV4CPT_Pos (5U)
  20408. #define HRTIM_CPT2CR_EXEV4CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV4CPT_Pos) /*!< 0x00000020 */
  20409. #define HRTIM_CPT2CR_EXEV4CPT HRTIM_CPT2CR_EXEV4CPT_Msk /*!< External event 4 capture */
  20410. #define HRTIM_CPT2CR_EXEV5CPT_Pos (6U)
  20411. #define HRTIM_CPT2CR_EXEV5CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV5CPT_Pos) /*!< 0x00000040 */
  20412. #define HRTIM_CPT2CR_EXEV5CPT HRTIM_CPT2CR_EXEV5CPT_Msk /*!< External event 5 capture */
  20413. #define HRTIM_CPT2CR_EXEV6CPT_Pos (7U)
  20414. #define HRTIM_CPT2CR_EXEV6CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV6CPT_Pos) /*!< 0x00000080 */
  20415. #define HRTIM_CPT2CR_EXEV6CPT HRTIM_CPT2CR_EXEV6CPT_Msk /*!< External event 6 capture */
  20416. #define HRTIM_CPT2CR_EXEV7CPT_Pos (8U)
  20417. #define HRTIM_CPT2CR_EXEV7CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV7CPT_Pos) /*!< 0x00000100 */
  20418. #define HRTIM_CPT2CR_EXEV7CPT HRTIM_CPT2CR_EXEV7CPT_Msk /*!< External event 7 capture */
  20419. #define HRTIM_CPT2CR_EXEV8CPT_Pos (9U)
  20420. #define HRTIM_CPT2CR_EXEV8CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV8CPT_Pos) /*!< 0x00000200 */
  20421. #define HRTIM_CPT2CR_EXEV8CPT HRTIM_CPT2CR_EXEV8CPT_Msk /*!< External event 8 capture */
  20422. #define HRTIM_CPT2CR_EXEV9CPT_Pos (10U)
  20423. #define HRTIM_CPT2CR_EXEV9CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV9CPT_Pos) /*!< 0x00000400 */
  20424. #define HRTIM_CPT2CR_EXEV9CPT HRTIM_CPT2CR_EXEV9CPT_Msk /*!< External event 9 capture */
  20425. #define HRTIM_CPT2CR_EXEV10CPT_Pos (11U)
  20426. #define HRTIM_CPT2CR_EXEV10CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV10CPT_Pos) /*!< 0x00000800 */
  20427. #define HRTIM_CPT2CR_EXEV10CPT HRTIM_CPT2CR_EXEV10CPT_Msk /*!< External event 10 capture */
  20428. #define HRTIM_CPT2CR_TA1SET_Pos (12U)
  20429. #define HRTIM_CPT2CR_TA1SET_Msk (0x1U << HRTIM_CPT2CR_TA1SET_Pos) /*!< 0x00001000 */
  20430. #define HRTIM_CPT2CR_TA1SET HRTIM_CPT2CR_TA1SET_Msk /*!< Timer A output 1 set */
  20431. #define HRTIM_CPT2CR_TA1RST_Pos (13U)
  20432. #define HRTIM_CPT2CR_TA1RST_Msk (0x1U << HRTIM_CPT2CR_TA1RST_Pos) /*!< 0x00002000 */
  20433. #define HRTIM_CPT2CR_TA1RST HRTIM_CPT2CR_TA1RST_Msk /*!< Timer A output 1 reset */
  20434. #define HRTIM_CPT2CR_TIMACMP1_Pos (14U)
  20435. #define HRTIM_CPT2CR_TIMACMP1_Msk (0x1U << HRTIM_CPT2CR_TIMACMP1_Pos) /*!< 0x00004000 */
  20436. #define HRTIM_CPT2CR_TIMACMP1 HRTIM_CPT2CR_TIMACMP1_Msk /*!< Timer A compare 1 */
  20437. #define HRTIM_CPT2CR_TIMACMP2_Pos (15U)
  20438. #define HRTIM_CPT2CR_TIMACMP2_Msk (0x1U << HRTIM_CPT2CR_TIMACMP2_Pos) /*!< 0x00008000 */
  20439. #define HRTIM_CPT2CR_TIMACMP2 HRTIM_CPT2CR_TIMACMP2_Msk /*!< Timer A compare 2 */
  20440. #define HRTIM_CPT2CR_TB1SET_Pos (16U)
  20441. #define HRTIM_CPT2CR_TB1SET_Msk (0x1U << HRTIM_CPT2CR_TB1SET_Pos) /*!< 0x00010000 */
  20442. #define HRTIM_CPT2CR_TB1SET HRTIM_CPT2CR_TB1SET_Msk /*!< Timer B output 1 set */
  20443. #define HRTIM_CPT2CR_TB1RST_Pos (17U)
  20444. #define HRTIM_CPT2CR_TB1RST_Msk (0x1U << HRTIM_CPT2CR_TB1RST_Pos) /*!< 0x00020000 */
  20445. #define HRTIM_CPT2CR_TB1RST HRTIM_CPT2CR_TB1RST_Msk /*!< Timer B output 1 reset */
  20446. #define HRTIM_CPT2CR_TIMBCMP1_Pos (18U)
  20447. #define HRTIM_CPT2CR_TIMBCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMBCMP1_Pos) /*!< 0x00040000 */
  20448. #define HRTIM_CPT2CR_TIMBCMP1 HRTIM_CPT2CR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  20449. #define HRTIM_CPT2CR_TIMBCMP2_Pos (19U)
  20450. #define HRTIM_CPT2CR_TIMBCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMBCMP2_Pos) /*!< 0x00080000 */
  20451. #define HRTIM_CPT2CR_TIMBCMP2 HRTIM_CPT2CR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  20452. #define HRTIM_CPT2CR_TC1SET_Pos (20U)
  20453. #define HRTIM_CPT2CR_TC1SET_Msk (0x1U << HRTIM_CPT2CR_TC1SET_Pos) /*!< 0x00100000 */
  20454. #define HRTIM_CPT2CR_TC1SET HRTIM_CPT2CR_TC1SET_Msk /*!< Timer C output 1 set */
  20455. #define HRTIM_CPT2CR_TC1RST_Pos (21U)
  20456. #define HRTIM_CPT2CR_TC1RST_Msk (0x1U << HRTIM_CPT2CR_TC1RST_Pos) /*!< 0x00200000 */
  20457. #define HRTIM_CPT2CR_TC1RST HRTIM_CPT2CR_TC1RST_Msk /*!< Timer C output 1 reset */
  20458. #define HRTIM_CPT2CR_TIMCCMP1_Pos (22U)
  20459. #define HRTIM_CPT2CR_TIMCCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMCCMP1_Pos) /*!< 0x00400000 */
  20460. #define HRTIM_CPT2CR_TIMCCMP1 HRTIM_CPT2CR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  20461. #define HRTIM_CPT2CR_TIMCCMP2_Pos (23U)
  20462. #define HRTIM_CPT2CR_TIMCCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMCCMP2_Pos) /*!< 0x00800000 */
  20463. #define HRTIM_CPT2CR_TIMCCMP2 HRTIM_CPT2CR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20464. #define HRTIM_CPT2CR_TD1SET_Pos (24U)
  20465. #define HRTIM_CPT2CR_TD1SET_Msk (0x1U << HRTIM_CPT2CR_TD1SET_Pos) /*!< 0x01000000 */
  20466. #define HRTIM_CPT2CR_TD1SET HRTIM_CPT2CR_TD1SET_Msk /*!< Timer D output 1 set */
  20467. #define HRTIM_CPT2CR_TD1RST_Pos (25U)
  20468. #define HRTIM_CPT2CR_TD1RST_Msk (0x1U << HRTIM_CPT2CR_TD1RST_Pos) /*!< 0x02000000 */
  20469. #define HRTIM_CPT2CR_TD1RST HRTIM_CPT2CR_TD1RST_Msk /*!< Timer D output 1 reset */
  20470. #define HRTIM_CPT2CR_TIMDCMP1_Pos (26U)
  20471. #define HRTIM_CPT2CR_TIMDCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMDCMP1_Pos) /*!< 0x04000000 */
  20472. #define HRTIM_CPT2CR_TIMDCMP1 HRTIM_CPT2CR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20473. #define HRTIM_CPT2CR_TIMDCMP2_Pos (27U)
  20474. #define HRTIM_CPT2CR_TIMDCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMDCMP2_Pos) /*!< 0x08000000 */
  20475. #define HRTIM_CPT2CR_TIMDCMP2 HRTIM_CPT2CR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20476. #define HRTIM_CPT2CR_TE1SET_Pos (28U)
  20477. #define HRTIM_CPT2CR_TE1SET_Msk (0x1U << HRTIM_CPT2CR_TE1SET_Pos) /*!< 0x10000000 */
  20478. #define HRTIM_CPT2CR_TE1SET HRTIM_CPT2CR_TE1SET_Msk /*!< Timer E output 1 set */
  20479. #define HRTIM_CPT2CR_TE1RST_Pos (29U)
  20480. #define HRTIM_CPT2CR_TE1RST_Msk (0x1U << HRTIM_CPT2CR_TE1RST_Pos) /*!< 0x20000000 */
  20481. #define HRTIM_CPT2CR_TE1RST HRTIM_CPT2CR_TE1RST_Msk /*!< Timer E output 1 reset */
  20482. #define HRTIM_CPT2CR_TIMECMP1_Pos (30U)
  20483. #define HRTIM_CPT2CR_TIMECMP1_Msk (0x1U << HRTIM_CPT2CR_TIMECMP1_Pos) /*!< 0x40000000 */
  20484. #define HRTIM_CPT2CR_TIMECMP1 HRTIM_CPT2CR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20485. #define HRTIM_CPT2CR_TIMECMP2_Pos (31U)
  20486. #define HRTIM_CPT2CR_TIMECMP2_Msk (0x1U << HRTIM_CPT2CR_TIMECMP2_Pos) /*!< 0x80000000 */
  20487. #define HRTIM_CPT2CR_TIMECMP2 HRTIM_CPT2CR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20488. /**** Bit definition for Slave Timer Output register **************************/
  20489. #define HRTIM_OUTR_POL1_Pos (1U)
  20490. #define HRTIM_OUTR_POL1_Msk (0x1U << HRTIM_OUTR_POL1_Pos) /*!< 0x00000002 */
  20491. #define HRTIM_OUTR_POL1 HRTIM_OUTR_POL1_Msk /*!< Slave output 1 polarity */
  20492. #define HRTIM_OUTR_IDLM1_Pos (2U)
  20493. #define HRTIM_OUTR_IDLM1_Msk (0x1U << HRTIM_OUTR_IDLM1_Pos) /*!< 0x00000004 */
  20494. #define HRTIM_OUTR_IDLM1 HRTIM_OUTR_IDLM1_Msk /*!< Slave output 1 idle mode */
  20495. #define HRTIM_OUTR_IDLES1_Pos (3U)
  20496. #define HRTIM_OUTR_IDLES1_Msk (0x1U << HRTIM_OUTR_IDLES1_Pos) /*!< 0x00000008 */
  20497. #define HRTIM_OUTR_IDLES1 HRTIM_OUTR_IDLES1_Msk /*!< Slave output 1 idle state */
  20498. #define HRTIM_OUTR_FAULT1_Pos (4U)
  20499. #define HRTIM_OUTR_FAULT1_Msk (0x3U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000030 */
  20500. #define HRTIM_OUTR_FAULT1 HRTIM_OUTR_FAULT1_Msk /*!< Slave output 1 fault state */
  20501. #define HRTIM_OUTR_FAULT1_0 (0x1U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000010 */
  20502. #define HRTIM_OUTR_FAULT1_1 (0x2U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000020 */
  20503. #define HRTIM_OUTR_CHP1_Pos (6U)
  20504. #define HRTIM_OUTR_CHP1_Msk (0x1U << HRTIM_OUTR_CHP1_Pos) /*!< 0x00000040 */
  20505. #define HRTIM_OUTR_CHP1 HRTIM_OUTR_CHP1_Msk /*!< Slave output 1 chopper enable */
  20506. #define HRTIM_OUTR_DIDL1_Pos (7U)
  20507. #define HRTIM_OUTR_DIDL1_Msk (0x1U << HRTIM_OUTR_DIDL1_Pos) /*!< 0x00000080 */
  20508. #define HRTIM_OUTR_DIDL1 HRTIM_OUTR_DIDL1_Msk /*!< Slave output 1 dead time idle */
  20509. #define HRTIM_OUTR_DTEN_Pos (8U)
  20510. #define HRTIM_OUTR_DTEN_Msk (0x1U << HRTIM_OUTR_DTEN_Pos) /*!< 0x00000100 */
  20511. #define HRTIM_OUTR_DTEN HRTIM_OUTR_DTEN_Msk /*!< Slave output deadtime enable */
  20512. #define HRTIM_OUTR_DLYPRTEN_Pos (9U)
  20513. #define HRTIM_OUTR_DLYPRTEN_Msk (0x1U << HRTIM_OUTR_DLYPRTEN_Pos) /*!< 0x00000200 */
  20514. #define HRTIM_OUTR_DLYPRTEN HRTIM_OUTR_DLYPRTEN_Msk /*!< Slave output delay protection enable */
  20515. #define HRTIM_OUTR_DLYPRT_Pos (10U)
  20516. #define HRTIM_OUTR_DLYPRT_Msk (0x7U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00001C00 */
  20517. #define HRTIM_OUTR_DLYPRT HRTIM_OUTR_DLYPRT_Msk /*!< Slave output delay protection */
  20518. #define HRTIM_OUTR_DLYPRT_0 (0x1U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00000400 */
  20519. #define HRTIM_OUTR_DLYPRT_1 (0x2U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00000800 */
  20520. #define HRTIM_OUTR_DLYPRT_2 (0x4U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00001000 */
  20521. #define HRTIM_OUTR_POL2_Pos (17U)
  20522. #define HRTIM_OUTR_POL2_Msk (0x1U << HRTIM_OUTR_POL2_Pos) /*!< 0x00020000 */
  20523. #define HRTIM_OUTR_POL2 HRTIM_OUTR_POL2_Msk /*!< Slave output 2 polarity */
  20524. #define HRTIM_OUTR_IDLM2_Pos (18U)
  20525. #define HRTIM_OUTR_IDLM2_Msk (0x1U << HRTIM_OUTR_IDLM2_Pos) /*!< 0x00040000 */
  20526. #define HRTIM_OUTR_IDLM2 HRTIM_OUTR_IDLM2_Msk /*!< Slave output 2 idle mode */
  20527. #define HRTIM_OUTR_IDLES2_Pos (19U)
  20528. #define HRTIM_OUTR_IDLES2_Msk (0x1U << HRTIM_OUTR_IDLES2_Pos) /*!< 0x00080000 */
  20529. #define HRTIM_OUTR_IDLES2 HRTIM_OUTR_IDLES2_Msk /*!< Slave output 2 idle state */
  20530. #define HRTIM_OUTR_FAULT2_Pos (20U)
  20531. #define HRTIM_OUTR_FAULT2_Msk (0x3U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00300000 */
  20532. #define HRTIM_OUTR_FAULT2 HRTIM_OUTR_FAULT2_Msk /*!< Slave output 2 fault state */
  20533. #define HRTIM_OUTR_FAULT2_0 (0x1U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00100000 */
  20534. #define HRTIM_OUTR_FAULT2_1 (0x2U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00200000 */
  20535. #define HRTIM_OUTR_CHP2_Pos (22U)
  20536. #define HRTIM_OUTR_CHP2_Msk (0x1U << HRTIM_OUTR_CHP2_Pos) /*!< 0x00400000 */
  20537. #define HRTIM_OUTR_CHP2 HRTIM_OUTR_CHP2_Msk /*!< Slave output 2 chopper enable */
  20538. #define HRTIM_OUTR_DIDL2_Pos (23U)
  20539. #define HRTIM_OUTR_DIDL2_Msk (0x1U << HRTIM_OUTR_DIDL2_Pos) /*!< 0x00800000 */
  20540. #define HRTIM_OUTR_DIDL2 HRTIM_OUTR_DIDL2_Msk /*!< Slave output 2 dead time idle */
  20541. /**** Bit definition for Slave Timer Fault register ***************************/
  20542. #define HRTIM_FLTR_FLT1EN_Pos (0U)
  20543. #define HRTIM_FLTR_FLT1EN_Msk (0x1U << HRTIM_FLTR_FLT1EN_Pos) /*!< 0x00000001 */
  20544. #define HRTIM_FLTR_FLT1EN HRTIM_FLTR_FLT1EN_Msk /*!< Fault 1 enable */
  20545. #define HRTIM_FLTR_FLT2EN_Pos (1U)
  20546. #define HRTIM_FLTR_FLT2EN_Msk (0x1U << HRTIM_FLTR_FLT2EN_Pos) /*!< 0x00000002 */
  20547. #define HRTIM_FLTR_FLT2EN HRTIM_FLTR_FLT2EN_Msk /*!< Fault 2 enable */
  20548. #define HRTIM_FLTR_FLT3EN_Pos (2U)
  20549. #define HRTIM_FLTR_FLT3EN_Msk (0x1U << HRTIM_FLTR_FLT3EN_Pos) /*!< 0x00000004 */
  20550. #define HRTIM_FLTR_FLT3EN HRTIM_FLTR_FLT3EN_Msk /*!< Fault 3 enable */
  20551. #define HRTIM_FLTR_FLT4EN_Pos (3U)
  20552. #define HRTIM_FLTR_FLT4EN_Msk (0x1U << HRTIM_FLTR_FLT4EN_Pos) /*!< 0x00000008 */
  20553. #define HRTIM_FLTR_FLT4EN HRTIM_FLTR_FLT4EN_Msk /*!< Fault 4 enable */
  20554. #define HRTIM_FLTR_FLT5EN_Pos (4U)
  20555. #define HRTIM_FLTR_FLT5EN_Msk (0x1U << HRTIM_FLTR_FLT5EN_Pos) /*!< 0x00000010 */
  20556. #define HRTIM_FLTR_FLT5EN HRTIM_FLTR_FLT5EN_Msk /*!< Fault 5 enable */
  20557. #define HRTIM_FLTR_FLTLCK_Pos (31U)
  20558. #define HRTIM_FLTR_FLTLCK_Msk (0x1U << HRTIM_FLTR_FLTLCK_Pos) /*!< 0x80000000 */
  20559. #define HRTIM_FLTR_FLTLCK HRTIM_FLTR_FLTLCK_Msk /*!< Fault sources lock */
  20560. /**** Bit definition for Common HRTIM Timer control register 1 ****************/
  20561. #define HRTIM_CR1_MUDIS_Pos (0U)
  20562. #define HRTIM_CR1_MUDIS_Msk (0x1U << HRTIM_CR1_MUDIS_Pos) /*!< 0x00000001 */
  20563. #define HRTIM_CR1_MUDIS HRTIM_CR1_MUDIS_Msk /*!< Master update disable*/
  20564. #define HRTIM_CR1_TAUDIS_Pos (1U)
  20565. #define HRTIM_CR1_TAUDIS_Msk (0x1U << HRTIM_CR1_TAUDIS_Pos) /*!< 0x00000002 */
  20566. #define HRTIM_CR1_TAUDIS HRTIM_CR1_TAUDIS_Msk /*!< Timer A update disable*/
  20567. #define HRTIM_CR1_TBUDIS_Pos (2U)
  20568. #define HRTIM_CR1_TBUDIS_Msk (0x1U << HRTIM_CR1_TBUDIS_Pos) /*!< 0x00000004 */
  20569. #define HRTIM_CR1_TBUDIS HRTIM_CR1_TBUDIS_Msk /*!< Timer B update disable*/
  20570. #define HRTIM_CR1_TCUDIS_Pos (3U)
  20571. #define HRTIM_CR1_TCUDIS_Msk (0x1U << HRTIM_CR1_TCUDIS_Pos) /*!< 0x00000008 */
  20572. #define HRTIM_CR1_TCUDIS HRTIM_CR1_TCUDIS_Msk /*!< Timer C update disable*/
  20573. #define HRTIM_CR1_TDUDIS_Pos (4U)
  20574. #define HRTIM_CR1_TDUDIS_Msk (0x1U << HRTIM_CR1_TDUDIS_Pos) /*!< 0x00000010 */
  20575. #define HRTIM_CR1_TDUDIS HRTIM_CR1_TDUDIS_Msk /*!< Timer D update disable*/
  20576. #define HRTIM_CR1_TEUDIS_Pos (5U)
  20577. #define HRTIM_CR1_TEUDIS_Msk (0x1U << HRTIM_CR1_TEUDIS_Pos) /*!< 0x00000020 */
  20578. #define HRTIM_CR1_TEUDIS HRTIM_CR1_TEUDIS_Msk /*!< Timer E update disable*/
  20579. #define HRTIM_CR1_ADC1USRC_Pos (16U)
  20580. #define HRTIM_CR1_ADC1USRC_Msk (0x7U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00070000 */
  20581. #define HRTIM_CR1_ADC1USRC HRTIM_CR1_ADC1USRC_Msk /*!< ADC Trigger 1 update source */
  20582. #define HRTIM_CR1_ADC1USRC_0 (0x1U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00010000 */
  20583. #define HRTIM_CR1_ADC1USRC_1 (0x2U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00020000 */
  20584. #define HRTIM_CR1_ADC1USRC_2 (0x4U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00040000 */
  20585. #define HRTIM_CR1_ADC2USRC_Pos (19U)
  20586. #define HRTIM_CR1_ADC2USRC_Msk (0x7U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00380000 */
  20587. #define HRTIM_CR1_ADC2USRC HRTIM_CR1_ADC2USRC_Msk /*!< ADC Trigger 2 update source */
  20588. #define HRTIM_CR1_ADC2USRC_0 (0x1U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00080000 */
  20589. #define HRTIM_CR1_ADC2USRC_1 (0x2U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00100000 */
  20590. #define HRTIM_CR1_ADC2USRC_2 (0x4U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00200000 */
  20591. #define HRTIM_CR1_ADC3USRC_Pos (22U)
  20592. #define HRTIM_CR1_ADC3USRC_Msk (0x7U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x01C00000 */
  20593. #define HRTIM_CR1_ADC3USRC HRTIM_CR1_ADC3USRC_Msk /*!< ADC Trigger 3 update source */
  20594. #define HRTIM_CR1_ADC3USRC_0 (0x1U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x00400000 */
  20595. #define HRTIM_CR1_ADC3USRC_1 (0x2U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x00800000 */
  20596. #define HRTIM_CR1_ADC3USRC_2 (0x4U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x01000000 */
  20597. #define HRTIM_CR1_ADC4USRC_Pos (25U)
  20598. #define HRTIM_CR1_ADC4USRC_Msk (0x7U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x0E000000 */
  20599. #define HRTIM_CR1_ADC4USRC HRTIM_CR1_ADC4USRC_Msk /*!< ADC Trigger 4 update source */
  20600. #define HRTIM_CR1_ADC4USRC_0 (0x1U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x02000000 */
  20601. #define HRTIM_CR1_ADC4USRC_1 (0x2U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x04000000 */
  20602. #define HRTIM_CR1_ADC4USRC_2 (0x0U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x0800000 */
  20603. /**** Bit definition for Common HRTIM Timer control register 2 ****************/
  20604. #define HRTIM_CR2_MSWU_Pos (0U)
  20605. #define HRTIM_CR2_MSWU_Msk (0x1U << HRTIM_CR2_MSWU_Pos) /*!< 0x00000001 */
  20606. #define HRTIM_CR2_MSWU HRTIM_CR2_MSWU_Msk /*!< Master software update */
  20607. #define HRTIM_CR2_TASWU_Pos (1U)
  20608. #define HRTIM_CR2_TASWU_Msk (0x1U << HRTIM_CR2_TASWU_Pos) /*!< 0x00000002 */
  20609. #define HRTIM_CR2_TASWU HRTIM_CR2_TASWU_Msk /*!< Timer A software update */
  20610. #define HRTIM_CR2_TBSWU_Pos (2U)
  20611. #define HRTIM_CR2_TBSWU_Msk (0x1U << HRTIM_CR2_TBSWU_Pos) /*!< 0x00000004 */
  20612. #define HRTIM_CR2_TBSWU HRTIM_CR2_TBSWU_Msk /*!< Timer B software update */
  20613. #define HRTIM_CR2_TCSWU_Pos (3U)
  20614. #define HRTIM_CR2_TCSWU_Msk (0x1U << HRTIM_CR2_TCSWU_Pos) /*!< 0x00000008 */
  20615. #define HRTIM_CR2_TCSWU HRTIM_CR2_TCSWU_Msk /*!< Timer C software update */
  20616. #define HRTIM_CR2_TDSWU_Pos (4U)
  20617. #define HRTIM_CR2_TDSWU_Msk (0x1U << HRTIM_CR2_TDSWU_Pos) /*!< 0x00000010 */
  20618. #define HRTIM_CR2_TDSWU HRTIM_CR2_TDSWU_Msk /*!< Timer D software update */
  20619. #define HRTIM_CR2_TESWU_Pos (5U)
  20620. #define HRTIM_CR2_TESWU_Msk (0x1U << HRTIM_CR2_TESWU_Pos) /*!< 0x00000020 */
  20621. #define HRTIM_CR2_TESWU HRTIM_CR2_TESWU_Msk /*!< Timer E software update */
  20622. #define HRTIM_CR2_MRST_Pos (8U)
  20623. #define HRTIM_CR2_MRST_Msk (0x1U << HRTIM_CR2_MRST_Pos) /*!< 0x00000100 */
  20624. #define HRTIM_CR2_MRST HRTIM_CR2_MRST_Msk /*!< Master count software reset */
  20625. #define HRTIM_CR2_TARST_Pos (9U)
  20626. #define HRTIM_CR2_TARST_Msk (0x1U << HRTIM_CR2_TARST_Pos) /*!< 0x00000200 */
  20627. #define HRTIM_CR2_TARST HRTIM_CR2_TARST_Msk /*!< Timer A count software reset */
  20628. #define HRTIM_CR2_TBRST_Pos (10U)
  20629. #define HRTIM_CR2_TBRST_Msk (0x1U << HRTIM_CR2_TBRST_Pos) /*!< 0x00000400 */
  20630. #define HRTIM_CR2_TBRST HRTIM_CR2_TBRST_Msk /*!< Timer B count software reset */
  20631. #define HRTIM_CR2_TCRST_Pos (11U)
  20632. #define HRTIM_CR2_TCRST_Msk (0x1U << HRTIM_CR2_TCRST_Pos) /*!< 0x00000800 */
  20633. #define HRTIM_CR2_TCRST HRTIM_CR2_TCRST_Msk /*!< Timer C count software reset */
  20634. #define HRTIM_CR2_TDRST_Pos (12U)
  20635. #define HRTIM_CR2_TDRST_Msk (0x1U << HRTIM_CR2_TDRST_Pos) /*!< 0x00001000 */
  20636. #define HRTIM_CR2_TDRST HRTIM_CR2_TDRST_Msk /*!< Timer D count software reset */
  20637. #define HRTIM_CR2_TERST_Pos (13U)
  20638. #define HRTIM_CR2_TERST_Msk (0x1U << HRTIM_CR2_TERST_Pos) /*!< 0x00002000 */
  20639. #define HRTIM_CR2_TERST HRTIM_CR2_TERST_Msk /*!< Timer E count software reset */
  20640. /**** Bit definition for Common HRTIM Timer interrupt status register *********/
  20641. #define HRTIM_ISR_FLT1_Pos (0U)
  20642. #define HRTIM_ISR_FLT1_Msk (0x1U << HRTIM_ISR_FLT1_Pos) /*!< 0x00000001 */
  20643. #define HRTIM_ISR_FLT1 HRTIM_ISR_FLT1_Msk /*!< Fault 1 interrupt flag */
  20644. #define HRTIM_ISR_FLT2_Pos (1U)
  20645. #define HRTIM_ISR_FLT2_Msk (0x1U << HRTIM_ISR_FLT2_Pos) /*!< 0x00000002 */
  20646. #define HRTIM_ISR_FLT2 HRTIM_ISR_FLT2_Msk /*!< Fault 2 interrupt flag */
  20647. #define HRTIM_ISR_FLT3_Pos (2U)
  20648. #define HRTIM_ISR_FLT3_Msk (0x1U << HRTIM_ISR_FLT3_Pos) /*!< 0x00000004 */
  20649. #define HRTIM_ISR_FLT3 HRTIM_ISR_FLT3_Msk /*!< Fault 3 interrupt flag */
  20650. #define HRTIM_ISR_FLT4_Pos (3U)
  20651. #define HRTIM_ISR_FLT4_Msk (0x1U << HRTIM_ISR_FLT4_Pos) /*!< 0x00000008 */
  20652. #define HRTIM_ISR_FLT4 HRTIM_ISR_FLT4_Msk /*!< Fault 4 interrupt flag */
  20653. #define HRTIM_ISR_FLT5_Pos (4U)
  20654. #define HRTIM_ISR_FLT5_Msk (0x1U << HRTIM_ISR_FLT5_Pos) /*!< 0x00000010 */
  20655. #define HRTIM_ISR_FLT5 HRTIM_ISR_FLT5_Msk /*!< Fault 5 interrupt flag */
  20656. #define HRTIM_ISR_SYSFLT_Pos (5U)
  20657. #define HRTIM_ISR_SYSFLT_Msk (0x1U << HRTIM_ISR_SYSFLT_Pos) /*!< 0x00000020 */
  20658. #define HRTIM_ISR_SYSFLT HRTIM_ISR_SYSFLT_Msk /*!< System Fault interrupt flag */
  20659. #define HRTIM_ISR_BMPER_Pos (17U)
  20660. #define HRTIM_ISR_BMPER_Msk (0x1U << HRTIM_ISR_BMPER_Pos) /*!< 0x00020000 */
  20661. #define HRTIM_ISR_BMPER HRTIM_ISR_BMPER_Msk /*!< Burst mode period interrupt flag */
  20662. /**** Bit definition for Common HRTIM Timer interrupt clear register **********/
  20663. #define HRTIM_ICR_FLT1C_Pos (0U)
  20664. #define HRTIM_ICR_FLT1C_Msk (0x1U << HRTIM_ICR_FLT1C_Pos) /*!< 0x00000001 */
  20665. #define HRTIM_ICR_FLT1C HRTIM_ICR_FLT1C_Msk /*!< Fault 1 interrupt flag clear */
  20666. #define HRTIM_ICR_FLT2C_Pos (1U)
  20667. #define HRTIM_ICR_FLT2C_Msk (0x1U << HRTIM_ICR_FLT2C_Pos) /*!< 0x00000002 */
  20668. #define HRTIM_ICR_FLT2C HRTIM_ICR_FLT2C_Msk /*!< Fault 2 interrupt flag clear */
  20669. #define HRTIM_ICR_FLT3C_Pos (2U)
  20670. #define HRTIM_ICR_FLT3C_Msk (0x1U << HRTIM_ICR_FLT3C_Pos) /*!< 0x00000004 */
  20671. #define HRTIM_ICR_FLT3C HRTIM_ICR_FLT3C_Msk /*!< Fault 3 interrupt flag clear */
  20672. #define HRTIM_ICR_FLT4C_Pos (3U)
  20673. #define HRTIM_ICR_FLT4C_Msk (0x1U << HRTIM_ICR_FLT4C_Pos) /*!< 0x00000008 */
  20674. #define HRTIM_ICR_FLT4C HRTIM_ICR_FLT4C_Msk /*!< Fault 4 interrupt flag clear */
  20675. #define HRTIM_ICR_FLT5C_Pos (4U)
  20676. #define HRTIM_ICR_FLT5C_Msk (0x1U << HRTIM_ICR_FLT5C_Pos) /*!< 0x00000010 */
  20677. #define HRTIM_ICR_FLT5C HRTIM_ICR_FLT5C_Msk /*!< Fault 5 interrupt flag clear */
  20678. #define HRTIM_ICR_SYSFLTC_Pos (5U)
  20679. #define HRTIM_ICR_SYSFLTC_Msk (0x1U << HRTIM_ICR_SYSFLTC_Pos) /*!< 0x00000020 */
  20680. #define HRTIM_ICR_SYSFLTC HRTIM_ICR_SYSFLTC_Msk /*!< System Fault interrupt flag clear */
  20681. #define HRTIM_ICR_BMPERC_Pos (17U)
  20682. #define HRTIM_ICR_BMPERC_Msk (0x1U << HRTIM_ICR_BMPERC_Pos) /*!< 0x00020000 */
  20683. #define HRTIM_ICR_BMPERC HRTIM_ICR_BMPERC_Msk /*!< Burst mode period interrupt flag clear */
  20684. /**** Bit definition for Common HRTIM Timer interrupt enable register *********/
  20685. #define HRTIM_IER_FLT1_Pos (0U)
  20686. #define HRTIM_IER_FLT1_Msk (0x1U << HRTIM_IER_FLT1_Pos) /*!< 0x00000001 */
  20687. #define HRTIM_IER_FLT1 HRTIM_IER_FLT1_Msk /*!< Fault 1 interrupt enable */
  20688. #define HRTIM_IER_FLT2_Pos (1U)
  20689. #define HRTIM_IER_FLT2_Msk (0x1U << HRTIM_IER_FLT2_Pos) /*!< 0x00000002 */
  20690. #define HRTIM_IER_FLT2 HRTIM_IER_FLT2_Msk /*!< Fault 2 interrupt enable */
  20691. #define HRTIM_IER_FLT3_Pos (2U)
  20692. #define HRTIM_IER_FLT3_Msk (0x1U << HRTIM_IER_FLT3_Pos) /*!< 0x00000004 */
  20693. #define HRTIM_IER_FLT3 HRTIM_IER_FLT3_Msk /*!< Fault 3 interrupt enable */
  20694. #define HRTIM_IER_FLT4_Pos (3U)
  20695. #define HRTIM_IER_FLT4_Msk (0x1U << HRTIM_IER_FLT4_Pos) /*!< 0x00000008 */
  20696. #define HRTIM_IER_FLT4 HRTIM_IER_FLT4_Msk /*!< Fault 4 interrupt enable */
  20697. #define HRTIM_IER_FLT5_Pos (4U)
  20698. #define HRTIM_IER_FLT5_Msk (0x1U << HRTIM_IER_FLT5_Pos) /*!< 0x00000010 */
  20699. #define HRTIM_IER_FLT5 HRTIM_IER_FLT5_Msk /*!< Fault 5 interrupt enable */
  20700. #define HRTIM_IER_SYSFLT_Pos (5U)
  20701. #define HRTIM_IER_SYSFLT_Msk (0x1U << HRTIM_IER_SYSFLT_Pos) /*!< 0x00000020 */
  20702. #define HRTIM_IER_SYSFLT HRTIM_IER_SYSFLT_Msk /*!< System Fault interrupt enable */
  20703. #define HRTIM_IER_BMPER_Pos (17U)
  20704. #define HRTIM_IER_BMPER_Msk (0x1U << HRTIM_IER_BMPER_Pos) /*!< 0x00020000 */
  20705. #define HRTIM_IER_BMPER HRTIM_IER_BMPER_Msk /*!< Burst mode period interrupt enable */
  20706. /**** Bit definition for Common HRTIM Timer output enable register ************/
  20707. #define HRTIM_OENR_TA1OEN_Pos (0U)
  20708. #define HRTIM_OENR_TA1OEN_Msk (0x1U << HRTIM_OENR_TA1OEN_Pos) /*!< 0x00000001 */
  20709. #define HRTIM_OENR_TA1OEN HRTIM_OENR_TA1OEN_Msk /*!< Timer A Output 1 enable */
  20710. #define HRTIM_OENR_TA2OEN_Pos (1U)
  20711. #define HRTIM_OENR_TA2OEN_Msk (0x1U << HRTIM_OENR_TA2OEN_Pos) /*!< 0x00000002 */
  20712. #define HRTIM_OENR_TA2OEN HRTIM_OENR_TA2OEN_Msk /*!< Timer A Output 2 enable */
  20713. #define HRTIM_OENR_TB1OEN_Pos (2U)
  20714. #define HRTIM_OENR_TB1OEN_Msk (0x1U << HRTIM_OENR_TB1OEN_Pos) /*!< 0x00000004 */
  20715. #define HRTIM_OENR_TB1OEN HRTIM_OENR_TB1OEN_Msk /*!< Timer B Output 1 enable */
  20716. #define HRTIM_OENR_TB2OEN_Pos (3U)
  20717. #define HRTIM_OENR_TB2OEN_Msk (0x1U << HRTIM_OENR_TB2OEN_Pos) /*!< 0x00000008 */
  20718. #define HRTIM_OENR_TB2OEN HRTIM_OENR_TB2OEN_Msk /*!< Timer B Output 2 enable */
  20719. #define HRTIM_OENR_TC1OEN_Pos (4U)
  20720. #define HRTIM_OENR_TC1OEN_Msk (0x1U << HRTIM_OENR_TC1OEN_Pos) /*!< 0x00000010 */
  20721. #define HRTIM_OENR_TC1OEN HRTIM_OENR_TC1OEN_Msk /*!< Timer C Output 1 enable */
  20722. #define HRTIM_OENR_TC2OEN_Pos (5U)
  20723. #define HRTIM_OENR_TC2OEN_Msk (0x1U << HRTIM_OENR_TC2OEN_Pos) /*!< 0x00000020 */
  20724. #define HRTIM_OENR_TC2OEN HRTIM_OENR_TC2OEN_Msk /*!< Timer C Output 2 enable */
  20725. #define HRTIM_OENR_TD1OEN_Pos (6U)
  20726. #define HRTIM_OENR_TD1OEN_Msk (0x1U << HRTIM_OENR_TD1OEN_Pos) /*!< 0x00000040 */
  20727. #define HRTIM_OENR_TD1OEN HRTIM_OENR_TD1OEN_Msk /*!< Timer D Output 1 enable */
  20728. #define HRTIM_OENR_TD2OEN_Pos (7U)
  20729. #define HRTIM_OENR_TD2OEN_Msk (0x1U << HRTIM_OENR_TD2OEN_Pos) /*!< 0x00000080 */
  20730. #define HRTIM_OENR_TD2OEN HRTIM_OENR_TD2OEN_Msk /*!< Timer D Output 2 enable */
  20731. #define HRTIM_OENR_TE1OEN_Pos (8U)
  20732. #define HRTIM_OENR_TE1OEN_Msk (0x1U << HRTIM_OENR_TE1OEN_Pos) /*!< 0x00000100 */
  20733. #define HRTIM_OENR_TE1OEN HRTIM_OENR_TE1OEN_Msk /*!< Timer E Output 1 enable */
  20734. #define HRTIM_OENR_TE2OEN_Pos (9U)
  20735. #define HRTIM_OENR_TE2OEN_Msk (0x1U << HRTIM_OENR_TE2OEN_Pos) /*!< 0x00000200 */
  20736. #define HRTIM_OENR_TE2OEN HRTIM_OENR_TE2OEN_Msk /*!< Timer E Output 2 enable */
  20737. /**** Bit definition for Common HRTIM Timer output disable register ***********/
  20738. #define HRTIM_ODISR_TA1ODIS_Pos (0U)
  20739. #define HRTIM_ODISR_TA1ODIS_Msk (0x1U << HRTIM_ODISR_TA1ODIS_Pos) /*!< 0x00000001 */
  20740. #define HRTIM_ODISR_TA1ODIS HRTIM_ODISR_TA1ODIS_Msk /*!< Timer A Output 1 disable */
  20741. #define HRTIM_ODISR_TA2ODIS_Pos (1U)
  20742. #define HRTIM_ODISR_TA2ODIS_Msk (0x1U << HRTIM_ODISR_TA2ODIS_Pos) /*!< 0x00000002 */
  20743. #define HRTIM_ODISR_TA2ODIS HRTIM_ODISR_TA2ODIS_Msk /*!< Timer A Output 2 disable */
  20744. #define HRTIM_ODISR_TB1ODIS_Pos (2U)
  20745. #define HRTIM_ODISR_TB1ODIS_Msk (0x1U << HRTIM_ODISR_TB1ODIS_Pos) /*!< 0x00000004 */
  20746. #define HRTIM_ODISR_TB1ODIS HRTIM_ODISR_TB1ODIS_Msk /*!< Timer B Output 1 disable */
  20747. #define HRTIM_ODISR_TB2ODIS_Pos (3U)
  20748. #define HRTIM_ODISR_TB2ODIS_Msk (0x1U << HRTIM_ODISR_TB2ODIS_Pos) /*!< 0x00000008 */
  20749. #define HRTIM_ODISR_TB2ODIS HRTIM_ODISR_TB2ODIS_Msk /*!< Timer B Output 2 disable */
  20750. #define HRTIM_ODISR_TC1ODIS_Pos (4U)
  20751. #define HRTIM_ODISR_TC1ODIS_Msk (0x1U << HRTIM_ODISR_TC1ODIS_Pos) /*!< 0x00000010 */
  20752. #define HRTIM_ODISR_TC1ODIS HRTIM_ODISR_TC1ODIS_Msk /*!< Timer C Output 1 disable */
  20753. #define HRTIM_ODISR_TC2ODIS_Pos (5U)
  20754. #define HRTIM_ODISR_TC2ODIS_Msk (0x1U << HRTIM_ODISR_TC2ODIS_Pos) /*!< 0x00000020 */
  20755. #define HRTIM_ODISR_TC2ODIS HRTIM_ODISR_TC2ODIS_Msk /*!< Timer C Output 2 disable */
  20756. #define HRTIM_ODISR_TD1ODIS_Pos (6U)
  20757. #define HRTIM_ODISR_TD1ODIS_Msk (0x1U << HRTIM_ODISR_TD1ODIS_Pos) /*!< 0x00000040 */
  20758. #define HRTIM_ODISR_TD1ODIS HRTIM_ODISR_TD1ODIS_Msk /*!< Timer D Output 1 disable */
  20759. #define HRTIM_ODISR_TD2ODIS_Pos (7U)
  20760. #define HRTIM_ODISR_TD2ODIS_Msk (0x1U << HRTIM_ODISR_TD2ODIS_Pos) /*!< 0x00000080 */
  20761. #define HRTIM_ODISR_TD2ODIS HRTIM_ODISR_TD2ODIS_Msk /*!< Timer D Output 2 disable */
  20762. #define HRTIM_ODISR_TE1ODIS_Pos (8U)
  20763. #define HRTIM_ODISR_TE1ODIS_Msk (0x1U << HRTIM_ODISR_TE1ODIS_Pos) /*!< 0x00000100 */
  20764. #define HRTIM_ODISR_TE1ODIS HRTIM_ODISR_TE1ODIS_Msk /*!< Timer E Output 1 disable */
  20765. #define HRTIM_ODISR_TE2ODIS_Pos (9U)
  20766. #define HRTIM_ODISR_TE2ODIS_Msk (0x1U << HRTIM_ODISR_TE2ODIS_Pos) /*!< 0x00000200 */
  20767. #define HRTIM_ODISR_TE2ODIS HRTIM_ODISR_TE2ODIS_Msk /*!< Timer E Output 2 disable */
  20768. /**** Bit definition for Common HRTIM Timer output disable status register *****/
  20769. #define HRTIM_ODSR_TA1ODS_Pos (0U)
  20770. #define HRTIM_ODSR_TA1ODS_Msk (0x1U << HRTIM_ODSR_TA1ODS_Pos) /*!< 0x00000001 */
  20771. #define HRTIM_ODSR_TA1ODS HRTIM_ODSR_TA1ODS_Msk /*!< Timer A Output 1 disable status */
  20772. #define HRTIM_ODSR_TA2ODS_Pos (1U)
  20773. #define HRTIM_ODSR_TA2ODS_Msk (0x1U << HRTIM_ODSR_TA2ODS_Pos) /*!< 0x00000002 */
  20774. #define HRTIM_ODSR_TA2ODS HRTIM_ODSR_TA2ODS_Msk /*!< Timer A Output 2 disable status */
  20775. #define HRTIM_ODSR_TB1ODS_Pos (2U)
  20776. #define HRTIM_ODSR_TB1ODS_Msk (0x1U << HRTIM_ODSR_TB1ODS_Pos) /*!< 0x00000004 */
  20777. #define HRTIM_ODSR_TB1ODS HRTIM_ODSR_TB1ODS_Msk /*!< Timer B Output 1 disable status */
  20778. #define HRTIM_ODSR_TB2ODS_Pos (3U)
  20779. #define HRTIM_ODSR_TB2ODS_Msk (0x1U << HRTIM_ODSR_TB2ODS_Pos) /*!< 0x00000008 */
  20780. #define HRTIM_ODSR_TB2ODS HRTIM_ODSR_TB2ODS_Msk /*!< Timer B Output 2 disable status */
  20781. #define HRTIM_ODSR_TC1ODS_Pos (4U)
  20782. #define HRTIM_ODSR_TC1ODS_Msk (0x1U << HRTIM_ODSR_TC1ODS_Pos) /*!< 0x00000010 */
  20783. #define HRTIM_ODSR_TC1ODS HRTIM_ODSR_TC1ODS_Msk /*!< Timer C Output 1 disable status */
  20784. #define HRTIM_ODSR_TC2ODS_Pos (5U)
  20785. #define HRTIM_ODSR_TC2ODS_Msk (0x1U << HRTIM_ODSR_TC2ODS_Pos) /*!< 0x00000020 */
  20786. #define HRTIM_ODSR_TC2ODS HRTIM_ODSR_TC2ODS_Msk /*!< Timer C Output 2 disable status */
  20787. #define HRTIM_ODSR_TD1ODS_Pos (6U)
  20788. #define HRTIM_ODSR_TD1ODS_Msk (0x1U << HRTIM_ODSR_TD1ODS_Pos) /*!< 0x00000040 */
  20789. #define HRTIM_ODSR_TD1ODS HRTIM_ODSR_TD1ODS_Msk /*!< Timer D Output 1 disable status */
  20790. #define HRTIM_ODSR_TD2ODS_Pos (7U)
  20791. #define HRTIM_ODSR_TD2ODS_Msk (0x1U << HRTIM_ODSR_TD2ODS_Pos) /*!< 0x00000080 */
  20792. #define HRTIM_ODSR_TD2ODS HRTIM_ODSR_TD2ODS_Msk /*!< Timer D Output 2 disable status */
  20793. #define HRTIM_ODSR_TE1ODS_Pos (8U)
  20794. #define HRTIM_ODSR_TE1ODS_Msk (0x1U << HRTIM_ODSR_TE1ODS_Pos) /*!< 0x00000100 */
  20795. #define HRTIM_ODSR_TE1ODS HRTIM_ODSR_TE1ODS_Msk /*!< Timer E Output 1 disable status */
  20796. #define HRTIM_ODSR_TE2ODS_Pos (9U)
  20797. #define HRTIM_ODSR_TE2ODS_Msk (0x1U << HRTIM_ODSR_TE2ODS_Pos) /*!< 0x00000200 */
  20798. #define HRTIM_ODSR_TE2ODS HRTIM_ODSR_TE2ODS_Msk /*!< Timer E Output 2 disable status */
  20799. /**** Bit definition for Common HRTIM Timer Burst mode control register ********/
  20800. #define HRTIM_BMCR_BME_Pos (0U)
  20801. #define HRTIM_BMCR_BME_Msk (0x1U << HRTIM_BMCR_BME_Pos) /*!< 0x00000001 */
  20802. #define HRTIM_BMCR_BME HRTIM_BMCR_BME_Msk /*!< Burst mode enbale */
  20803. #define HRTIM_BMCR_BMOM_Pos (1U)
  20804. #define HRTIM_BMCR_BMOM_Msk (0x1U << HRTIM_BMCR_BMOM_Pos) /*!< 0x00000002 */
  20805. #define HRTIM_BMCR_BMOM HRTIM_BMCR_BMOM_Msk /*!< Burst mode operating mode */
  20806. #define HRTIM_BMCR_BMCLK_Pos (2U)
  20807. #define HRTIM_BMCR_BMCLK_Msk (0xFU << HRTIM_BMCR_BMCLK_Pos) /*!< 0x0000003C */
  20808. #define HRTIM_BMCR_BMCLK HRTIM_BMCR_BMCLK_Msk /*!< Burst mode clock source */
  20809. #define HRTIM_BMCR_BMCLK_0 (0x1U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000004 */
  20810. #define HRTIM_BMCR_BMCLK_1 (0x2U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000008 */
  20811. #define HRTIM_BMCR_BMCLK_2 (0x4U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000010 */
  20812. #define HRTIM_BMCR_BMCLK_3 (0x8U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000020 */
  20813. #define HRTIM_BMCR_BMPRSC_Pos (6U)
  20814. #define HRTIM_BMCR_BMPRSC_Msk (0xFU << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x000003C0 */
  20815. #define HRTIM_BMCR_BMPRSC HRTIM_BMCR_BMPRSC_Msk /*!< Burst mode prescaler */
  20816. #define HRTIM_BMCR_BMPRSC_0 (0x1U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000040 */
  20817. #define HRTIM_BMCR_BMPRSC_1 (0x2U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000080 */
  20818. #define HRTIM_BMCR_BMPRSC_2 (0x4U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000100 */
  20819. #define HRTIM_BMCR_BMPRSC_3 (0x8U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000200 */
  20820. #define HRTIM_BMCR_BMPREN_Pos (10U)
  20821. #define HRTIM_BMCR_BMPREN_Msk (0x1U << HRTIM_BMCR_BMPREN_Pos) /*!< 0x00000400 */
  20822. #define HRTIM_BMCR_BMPREN HRTIM_BMCR_BMPREN_Msk /*!< Burst mode Preload bit */
  20823. #define HRTIM_BMCR_MTBM_Pos (16U)
  20824. #define HRTIM_BMCR_MTBM_Msk (0x1U << HRTIM_BMCR_MTBM_Pos) /*!< 0x00010000 */
  20825. #define HRTIM_BMCR_MTBM HRTIM_BMCR_MTBM_Msk /*!< Master Timer Burst mode */
  20826. #define HRTIM_BMCR_TABM_Pos (17U)
  20827. #define HRTIM_BMCR_TABM_Msk (0x1U << HRTIM_BMCR_TABM_Pos) /*!< 0x00020000 */
  20828. #define HRTIM_BMCR_TABM HRTIM_BMCR_TABM_Msk /*!< Timer A Burst mode */
  20829. #define HRTIM_BMCR_TBBM_Pos (18U)
  20830. #define HRTIM_BMCR_TBBM_Msk (0x1U << HRTIM_BMCR_TBBM_Pos) /*!< 0x00040000 */
  20831. #define HRTIM_BMCR_TBBM HRTIM_BMCR_TBBM_Msk /*!< Timer B Burst mode */
  20832. #define HRTIM_BMCR_TCBM_Pos (19U)
  20833. #define HRTIM_BMCR_TCBM_Msk (0x1U << HRTIM_BMCR_TCBM_Pos) /*!< 0x00080000 */
  20834. #define HRTIM_BMCR_TCBM HRTIM_BMCR_TCBM_Msk /*!< Timer C Burst mode */
  20835. #define HRTIM_BMCR_TDBM_Pos (20U)
  20836. #define HRTIM_BMCR_TDBM_Msk (0x1U << HRTIM_BMCR_TDBM_Pos) /*!< 0x00100000 */
  20837. #define HRTIM_BMCR_TDBM HRTIM_BMCR_TDBM_Msk /*!< Timer D Burst mode */
  20838. #define HRTIM_BMCR_TEBM_Pos (21U)
  20839. #define HRTIM_BMCR_TEBM_Msk (0x1U << HRTIM_BMCR_TEBM_Pos) /*!< 0x00200000 */
  20840. #define HRTIM_BMCR_TEBM HRTIM_BMCR_TEBM_Msk /*!< Timer E Burst mode */
  20841. #define HRTIM_BMCR_BMSTAT_Pos (31U)
  20842. #define HRTIM_BMCR_BMSTAT_Msk (0x1U << HRTIM_BMCR_BMSTAT_Pos) /*!< 0x80000000 */
  20843. #define HRTIM_BMCR_BMSTAT HRTIM_BMCR_BMSTAT_Msk /*!< Burst mode status */
  20844. /**** Bit definition for Common HRTIM Timer Burst mode Trigger register *******/
  20845. #define HRTIM_BMTRGR_SW_Pos (0U)
  20846. #define HRTIM_BMTRGR_SW_Msk (0x1U << HRTIM_BMTRGR_SW_Pos) /*!< 0x00000001 */
  20847. #define HRTIM_BMTRGR_SW HRTIM_BMTRGR_SW_Msk /*!< Software start */
  20848. #define HRTIM_BMTRGR_MSTRST_Pos (1U)
  20849. #define HRTIM_BMTRGR_MSTRST_Msk (0x1U << HRTIM_BMTRGR_MSTRST_Pos) /*!< 0x00000002 */
  20850. #define HRTIM_BMTRGR_MSTRST HRTIM_BMTRGR_MSTRST_Msk /*!< Master reset */
  20851. #define HRTIM_BMTRGR_MSTREP_Pos (2U)
  20852. #define HRTIM_BMTRGR_MSTREP_Msk (0x1U << HRTIM_BMTRGR_MSTREP_Pos) /*!< 0x00000004 */
  20853. #define HRTIM_BMTRGR_MSTREP HRTIM_BMTRGR_MSTREP_Msk /*!< Master repetition */
  20854. #define HRTIM_BMTRGR_MSTCMP1_Pos (3U)
  20855. #define HRTIM_BMTRGR_MSTCMP1_Msk (0x1U << HRTIM_BMTRGR_MSTCMP1_Pos) /*!< 0x00000008 */
  20856. #define HRTIM_BMTRGR_MSTCMP1 HRTIM_BMTRGR_MSTCMP1_Msk /*!< Master compare 1 */
  20857. #define HRTIM_BMTRGR_MSTCMP2_Pos (4U)
  20858. #define HRTIM_BMTRGR_MSTCMP2_Msk (0x1U << HRTIM_BMTRGR_MSTCMP2_Pos) /*!< 0x00000010 */
  20859. #define HRTIM_BMTRGR_MSTCMP2 HRTIM_BMTRGR_MSTCMP2_Msk /*!< Master compare 2 */
  20860. #define HRTIM_BMTRGR_MSTCMP3_Pos (5U)
  20861. #define HRTIM_BMTRGR_MSTCMP3_Msk (0x1U << HRTIM_BMTRGR_MSTCMP3_Pos) /*!< 0x00000020 */
  20862. #define HRTIM_BMTRGR_MSTCMP3 HRTIM_BMTRGR_MSTCMP3_Msk /*!< Master compare 3 */
  20863. #define HRTIM_BMTRGR_MSTCMP4_Pos (6U)
  20864. #define HRTIM_BMTRGR_MSTCMP4_Msk (0x1U << HRTIM_BMTRGR_MSTCMP4_Pos) /*!< 0x00000040 */
  20865. #define HRTIM_BMTRGR_MSTCMP4 HRTIM_BMTRGR_MSTCMP4_Msk /*!< Master compare 4 */
  20866. #define HRTIM_BMTRGR_TARST_Pos (7U)
  20867. #define HRTIM_BMTRGR_TARST_Msk (0x1U << HRTIM_BMTRGR_TARST_Pos) /*!< 0x00000080 */
  20868. #define HRTIM_BMTRGR_TARST HRTIM_BMTRGR_TARST_Msk /*!< Timer A reset */
  20869. #define HRTIM_BMTRGR_TAREP_Pos (8U)
  20870. #define HRTIM_BMTRGR_TAREP_Msk (0x1U << HRTIM_BMTRGR_TAREP_Pos) /*!< 0x00000100 */
  20871. #define HRTIM_BMTRGR_TAREP HRTIM_BMTRGR_TAREP_Msk /*!< Timer A repetition */
  20872. #define HRTIM_BMTRGR_TACMP1_Pos (9U)
  20873. #define HRTIM_BMTRGR_TACMP1_Msk (0x1U << HRTIM_BMTRGR_TACMP1_Pos) /*!< 0x00000200 */
  20874. #define HRTIM_BMTRGR_TACMP1 HRTIM_BMTRGR_TACMP1_Msk /*!< Timer A compare 1 */
  20875. #define HRTIM_BMTRGR_TACMP2_Pos (10U)
  20876. #define HRTIM_BMTRGR_TACMP2_Msk (0x1U << HRTIM_BMTRGR_TACMP2_Pos) /*!< 0x00000400 */
  20877. #define HRTIM_BMTRGR_TACMP2 HRTIM_BMTRGR_TACMP2_Msk /*!< Timer A compare 2 */
  20878. #define HRTIM_BMTRGR_TBRST_Pos (11U)
  20879. #define HRTIM_BMTRGR_TBRST_Msk (0x1U << HRTIM_BMTRGR_TBRST_Pos) /*!< 0x00000800 */
  20880. #define HRTIM_BMTRGR_TBRST HRTIM_BMTRGR_TBRST_Msk /*!< Timer B reset */
  20881. #define HRTIM_BMTRGR_TBREP_Pos (12U)
  20882. #define HRTIM_BMTRGR_TBREP_Msk (0x1U << HRTIM_BMTRGR_TBREP_Pos) /*!< 0x00001000 */
  20883. #define HRTIM_BMTRGR_TBREP HRTIM_BMTRGR_TBREP_Msk /*!< Timer B repetition */
  20884. #define HRTIM_BMTRGR_TBCMP1_Pos (13U)
  20885. #define HRTIM_BMTRGR_TBCMP1_Msk (0x1U << HRTIM_BMTRGR_TBCMP1_Pos) /*!< 0x00002000 */
  20886. #define HRTIM_BMTRGR_TBCMP1 HRTIM_BMTRGR_TBCMP1_Msk /*!< Timer B compare 1 */
  20887. #define HRTIM_BMTRGR_TBCMP2_Pos (14U)
  20888. #define HRTIM_BMTRGR_TBCMP2_Msk (0x1U << HRTIM_BMTRGR_TBCMP2_Pos) /*!< 0x00004000 */
  20889. #define HRTIM_BMTRGR_TBCMP2 HRTIM_BMTRGR_TBCMP2_Msk /*!< Timer B compare 2 */
  20890. #define HRTIM_BMTRGR_TCRST_Pos (15U)
  20891. #define HRTIM_BMTRGR_TCRST_Msk (0x1U << HRTIM_BMTRGR_TCRST_Pos) /*!< 0x00008000 */
  20892. #define HRTIM_BMTRGR_TCRST HRTIM_BMTRGR_TCRST_Msk /*!< Timer C reset */
  20893. #define HRTIM_BMTRGR_TCREP_Pos (16U)
  20894. #define HRTIM_BMTRGR_TCREP_Msk (0x1U << HRTIM_BMTRGR_TCREP_Pos) /*!< 0x00010000 */
  20895. #define HRTIM_BMTRGR_TCREP HRTIM_BMTRGR_TCREP_Msk /*!< Timer C repetition */
  20896. #define HRTIM_BMTRGR_TCCMP1_Pos (17U)
  20897. #define HRTIM_BMTRGR_TCCMP1_Msk (0x1U << HRTIM_BMTRGR_TCCMP1_Pos) /*!< 0x00020000 */
  20898. #define HRTIM_BMTRGR_TCCMP1 HRTIM_BMTRGR_TCCMP1_Msk /*!< Timer C compare 1 */
  20899. #define HRTIM_BMTRGR_TCCMP2_Pos (18U)
  20900. #define HRTIM_BMTRGR_TCCMP2_Msk (0x1U << HRTIM_BMTRGR_TCCMP2_Pos) /*!< 0x00040000 */
  20901. #define HRTIM_BMTRGR_TCCMP2 HRTIM_BMTRGR_TCCMP2_Msk /*!< Timer C compare 2 */
  20902. #define HRTIM_BMTRGR_TDRST_Pos (19U)
  20903. #define HRTIM_BMTRGR_TDRST_Msk (0x1U << HRTIM_BMTRGR_TDRST_Pos) /*!< 0x00080000 */
  20904. #define HRTIM_BMTRGR_TDRST HRTIM_BMTRGR_TDRST_Msk /*!< Timer D reset */
  20905. #define HRTIM_BMTRGR_TDREP_Pos (20U)
  20906. #define HRTIM_BMTRGR_TDREP_Msk (0x1U << HRTIM_BMTRGR_TDREP_Pos) /*!< 0x00100000 */
  20907. #define HRTIM_BMTRGR_TDREP HRTIM_BMTRGR_TDREP_Msk /*!< Timer D repetition */
  20908. #define HRTIM_BMTRGR_TDCMP1_Pos (21U)
  20909. #define HRTIM_BMTRGR_TDCMP1_Msk (0x1U << HRTIM_BMTRGR_TDCMP1_Pos) /*!< 0x00200000 */
  20910. #define HRTIM_BMTRGR_TDCMP1 HRTIM_BMTRGR_TDCMP1_Msk /*!< Timer D compare 1 */
  20911. #define HRTIM_BMTRGR_TDCMP2_Pos (22U)
  20912. #define HRTIM_BMTRGR_TDCMP2_Msk (0x1U << HRTIM_BMTRGR_TDCMP2_Pos) /*!< 0x00400000 */
  20913. #define HRTIM_BMTRGR_TDCMP2 HRTIM_BMTRGR_TDCMP2_Msk /*!< Timer D compare 2 */
  20914. #define HRTIM_BMTRGR_TERST_Pos (23U)
  20915. #define HRTIM_BMTRGR_TERST_Msk (0x1U << HRTIM_BMTRGR_TERST_Pos) /*!< 0x00800000 */
  20916. #define HRTIM_BMTRGR_TERST HRTIM_BMTRGR_TERST_Msk /*!< Timer E reset */
  20917. #define HRTIM_BMTRGR_TEREP_Pos (24U)
  20918. #define HRTIM_BMTRGR_TEREP_Msk (0x1U << HRTIM_BMTRGR_TEREP_Pos) /*!< 0x01000000 */
  20919. #define HRTIM_BMTRGR_TEREP HRTIM_BMTRGR_TEREP_Msk /*!< Timer E repetition */
  20920. #define HRTIM_BMTRGR_TECMP1_Pos (25U)
  20921. #define HRTIM_BMTRGR_TECMP1_Msk (0x1U << HRTIM_BMTRGR_TECMP1_Pos) /*!< 0x02000000 */
  20922. #define HRTIM_BMTRGR_TECMP1 HRTIM_BMTRGR_TECMP1_Msk /*!< Timer E compare 1 */
  20923. #define HRTIM_BMTRGR_TECMP2_Pos (26U)
  20924. #define HRTIM_BMTRGR_TECMP2_Msk (0x1U << HRTIM_BMTRGR_TECMP2_Pos) /*!< 0x04000000 */
  20925. #define HRTIM_BMTRGR_TECMP2 HRTIM_BMTRGR_TECMP2_Msk /*!< Timer E compare 2 */
  20926. #define HRTIM_BMTRGR_TAEEV7_Pos (27U)
  20927. #define HRTIM_BMTRGR_TAEEV7_Msk (0x1U << HRTIM_BMTRGR_TAEEV7_Pos) /*!< 0x08000000 */
  20928. #define HRTIM_BMTRGR_TAEEV7 HRTIM_BMTRGR_TAEEV7_Msk /*!< Timer A period following External Event7 */
  20929. #define HRTIM_BMTRGR_TDEEV8_Pos (28U)
  20930. #define HRTIM_BMTRGR_TDEEV8_Msk (0x1U << HRTIM_BMTRGR_TDEEV8_Pos) /*!< 0x10000000 */
  20931. #define HRTIM_BMTRGR_TDEEV8 HRTIM_BMTRGR_TDEEV8_Msk /*!< Timer D period following External Event8 */
  20932. #define HRTIM_BMTRGR_EEV7_Pos (29U)
  20933. #define HRTIM_BMTRGR_EEV7_Msk (0x1U << HRTIM_BMTRGR_EEV7_Pos) /*!< 0x20000000 */
  20934. #define HRTIM_BMTRGR_EEV7 HRTIM_BMTRGR_EEV7_Msk /*!< External Event 7 */
  20935. #define HRTIM_BMTRGR_EEV8_Pos (30U)
  20936. #define HRTIM_BMTRGR_EEV8_Msk (0x1U << HRTIM_BMTRGR_EEV8_Pos) /*!< 0x40000000 */
  20937. #define HRTIM_BMTRGR_EEV8 HRTIM_BMTRGR_EEV8_Msk /*!< External Event 8 */
  20938. #define HRTIM_BMTRGR_OCHPEV_Pos (31U)
  20939. #define HRTIM_BMTRGR_OCHPEV_Msk (0x1U << HRTIM_BMTRGR_OCHPEV_Pos) /*!< 0x80000000 */
  20940. #define HRTIM_BMTRGR_OCHPEV HRTIM_BMTRGR_OCHPEV_Msk /*!< on-chip Event */
  20941. /******************* Bit definition for HRTIM_BMCMPR register ***************/
  20942. #define HRTIM_BMCMPR_BMCMPR_Pos (0U)
  20943. #define HRTIM_BMCMPR_BMCMPR_Msk (0xFFFFU << HRTIM_BMCMPR_BMCMPR_Pos) /*!< 0x0000FFFF */
  20944. #define HRTIM_BMCMPR_BMCMPR HRTIM_BMCMPR_BMCMPR_Msk /*!<!<Burst Compare Value */
  20945. /******************* Bit definition for HRTIM_BMPER register ****************/
  20946. #define HRTIM_BMPER_BMPER_Pos (0U)
  20947. #define HRTIM_BMPER_BMPER_Msk (0xFFFFU << HRTIM_BMPER_BMPER_Pos) /*!< 0x0000FFFF */
  20948. #define HRTIM_BMPER_BMPER HRTIM_BMPER_BMPER_Msk /*!<!<Burst period Value */
  20949. /******************* Bit definition for HRTIM_EECR1 register ****************/
  20950. #define HRTIM_EECR1_EE1SRC_Pos (0U)
  20951. #define HRTIM_EECR1_EE1SRC_Msk (0x3U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000003 */
  20952. #define HRTIM_EECR1_EE1SRC HRTIM_EECR1_EE1SRC_Msk /*!< External event 1 source */
  20953. #define HRTIM_EECR1_EE1SRC_0 (0x1U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000001 */
  20954. #define HRTIM_EECR1_EE1SRC_1 (0x2U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000002 */
  20955. #define HRTIM_EECR1_EE1POL_Pos (2U)
  20956. #define HRTIM_EECR1_EE1POL_Msk (0x1U << HRTIM_EECR1_EE1POL_Pos) /*!< 0x00000004 */
  20957. #define HRTIM_EECR1_EE1POL HRTIM_EECR1_EE1POL_Msk /*!< External event 1 Polarity */
  20958. #define HRTIM_EECR1_EE1SNS_Pos (3U)
  20959. #define HRTIM_EECR1_EE1SNS_Msk (0x3U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000018 */
  20960. #define HRTIM_EECR1_EE1SNS HRTIM_EECR1_EE1SNS_Msk /*!< External event 1 sensitivity */
  20961. #define HRTIM_EECR1_EE1SNS_0 (0x1U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000008 */
  20962. #define HRTIM_EECR1_EE1SNS_1 (0x2U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000010 */
  20963. #define HRTIM_EECR1_EE1FAST_Pos (5U)
  20964. #define HRTIM_EECR1_EE1FAST_Msk (0x1U << HRTIM_EECR1_EE1FAST_Pos) /*!< 0x00000020 */
  20965. #define HRTIM_EECR1_EE1FAST HRTIM_EECR1_EE1FAST_Msk /*!< External event 1 Fast mode */
  20966. #define HRTIM_EECR1_EE2SRC_Pos (6U)
  20967. #define HRTIM_EECR1_EE2SRC_Msk (0x3U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x000000C0 */
  20968. #define HRTIM_EECR1_EE2SRC HRTIM_EECR1_EE2SRC_Msk /*!< External event 2 source */
  20969. #define HRTIM_EECR1_EE2SRC_0 (0x1U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x00000040 */
  20970. #define HRTIM_EECR1_EE2SRC_1 (0x2U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x00000080 */
  20971. #define HRTIM_EECR1_EE2POL_Pos (8U)
  20972. #define HRTIM_EECR1_EE2POL_Msk (0x1U << HRTIM_EECR1_EE2POL_Pos) /*!< 0x00000100 */
  20973. #define HRTIM_EECR1_EE2POL HRTIM_EECR1_EE2POL_Msk /*!< External event 2 Polarity */
  20974. #define HRTIM_EECR1_EE2SNS_Pos (9U)
  20975. #define HRTIM_EECR1_EE2SNS_Msk (0x3U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000600 */
  20976. #define HRTIM_EECR1_EE2SNS HRTIM_EECR1_EE2SNS_Msk /*!< External event 2 sensitivity */
  20977. #define HRTIM_EECR1_EE2SNS_0 (0x1U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000200 */
  20978. #define HRTIM_EECR1_EE2SNS_1 (0x2U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000400 */
  20979. #define HRTIM_EECR1_EE2FAST_Pos (11U)
  20980. #define HRTIM_EECR1_EE2FAST_Msk (0x1U << HRTIM_EECR1_EE2FAST_Pos) /*!< 0x00000800 */
  20981. #define HRTIM_EECR1_EE2FAST HRTIM_EECR1_EE2FAST_Msk /*!< External event 2 Fast mode */
  20982. #define HRTIM_EECR1_EE3SRC_Pos (12U)
  20983. #define HRTIM_EECR1_EE3SRC_Msk (0x3U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00003000 */
  20984. #define HRTIM_EECR1_EE3SRC HRTIM_EECR1_EE3SRC_Msk /*!< External event 3 source */
  20985. #define HRTIM_EECR1_EE3SRC_0 (0x1U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00001000 */
  20986. #define HRTIM_EECR1_EE3SRC_1 (0x2U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00002000 */
  20987. #define HRTIM_EECR1_EE3POL_Pos (14U)
  20988. #define HRTIM_EECR1_EE3POL_Msk (0x1U << HRTIM_EECR1_EE3POL_Pos) /*!< 0x00004000 */
  20989. #define HRTIM_EECR1_EE3POL HRTIM_EECR1_EE3POL_Msk /*!< External event 3 Polarity */
  20990. #define HRTIM_EECR1_EE3SNS_Pos (15U)
  20991. #define HRTIM_EECR1_EE3SNS_Msk (0x3U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00018000 */
  20992. #define HRTIM_EECR1_EE3SNS HRTIM_EECR1_EE3SNS_Msk /*!< External event 3 sensitivity */
  20993. #define HRTIM_EECR1_EE3SNS_0 (0x1U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00008000 */
  20994. #define HRTIM_EECR1_EE3SNS_1 (0x2U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00010000 */
  20995. #define HRTIM_EECR1_EE3FAST_Pos (17U)
  20996. #define HRTIM_EECR1_EE3FAST_Msk (0x1U << HRTIM_EECR1_EE3FAST_Pos) /*!< 0x00020000 */
  20997. #define HRTIM_EECR1_EE3FAST HRTIM_EECR1_EE3FAST_Msk /*!< External event 3 Fast mode */
  20998. #define HRTIM_EECR1_EE4SRC_Pos (18U)
  20999. #define HRTIM_EECR1_EE4SRC_Msk (0x3U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x000C0000 */
  21000. #define HRTIM_EECR1_EE4SRC HRTIM_EECR1_EE4SRC_Msk /*!< External event 4 source */
  21001. #define HRTIM_EECR1_EE4SRC_0 (0x1U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x00040000 */
  21002. #define HRTIM_EECR1_EE4SRC_1 (0x2U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x00080000 */
  21003. #define HRTIM_EECR1_EE4POL_Pos (20U)
  21004. #define HRTIM_EECR1_EE4POL_Msk (0x1U << HRTIM_EECR1_EE4POL_Pos) /*!< 0x00100000 */
  21005. #define HRTIM_EECR1_EE4POL HRTIM_EECR1_EE4POL_Msk /*!< External event 4 Polarity */
  21006. #define HRTIM_EECR1_EE4SNS_Pos (21U)
  21007. #define HRTIM_EECR1_EE4SNS_Msk (0x3U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00600000 */
  21008. #define HRTIM_EECR1_EE4SNS HRTIM_EECR1_EE4SNS_Msk /*!< External event 4 sensitivity */
  21009. #define HRTIM_EECR1_EE4SNS_0 (0x1U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00200000 */
  21010. #define HRTIM_EECR1_EE4SNS_1 (0x2U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00400000 */
  21011. #define HRTIM_EECR1_EE4FAST_Pos (23U)
  21012. #define HRTIM_EECR1_EE4FAST_Msk (0x1U << HRTIM_EECR1_EE4FAST_Pos) /*!< 0x00800000 */
  21013. #define HRTIM_EECR1_EE4FAST HRTIM_EECR1_EE4FAST_Msk /*!< External event 4 Fast mode */
  21014. #define HRTIM_EECR1_EE5SRC_Pos (24U)
  21015. #define HRTIM_EECR1_EE5SRC_Msk (0x3U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x03000000 */
  21016. #define HRTIM_EECR1_EE5SRC HRTIM_EECR1_EE5SRC_Msk /*!< External event 5 source */
  21017. #define HRTIM_EECR1_EE5SRC_0 (0x1U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x01000000 */
  21018. #define HRTIM_EECR1_EE5SRC_1 (0x2U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x02000000 */
  21019. #define HRTIM_EECR1_EE5POL_Pos (26U)
  21020. #define HRTIM_EECR1_EE5POL_Msk (0x1U << HRTIM_EECR1_EE5POL_Pos) /*!< 0x04000000 */
  21021. #define HRTIM_EECR1_EE5POL HRTIM_EECR1_EE5POL_Msk /*!< External event 5 Polarity */
  21022. #define HRTIM_EECR1_EE5SNS_Pos (27U)
  21023. #define HRTIM_EECR1_EE5SNS_Msk (0x3U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x18000000 */
  21024. #define HRTIM_EECR1_EE5SNS HRTIM_EECR1_EE5SNS_Msk /*!< External event 5 sensitivity */
  21025. #define HRTIM_EECR1_EE5SNS_0 (0x1U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x08000000 */
  21026. #define HRTIM_EECR1_EE5SNS_1 (0x2U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x10000000 */
  21027. #define HRTIM_EECR1_EE5FAST_Pos (29U)
  21028. #define HRTIM_EECR1_EE5FAST_Msk (0x1U << HRTIM_EECR1_EE5FAST_Pos) /*!< 0x20000000 */
  21029. #define HRTIM_EECR1_EE5FAST HRTIM_EECR1_EE5FAST_Msk /*!< External event 5 Fast mode */
  21030. /******************* Bit definition for HRTIM_EECR2 register ****************/
  21031. #define HRTIM_EECR2_EE6SRC_Pos (0U)
  21032. #define HRTIM_EECR2_EE6SRC_Msk (0x3U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000003 */
  21033. #define HRTIM_EECR2_EE6SRC HRTIM_EECR2_EE6SRC_Msk /*!< External event 6 source */
  21034. #define HRTIM_EECR2_EE6SRC_0 (0x1U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000001 */
  21035. #define HRTIM_EECR2_EE6SRC_1 (0x2U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000002 */
  21036. #define HRTIM_EECR2_EE6POL_Pos (2U)
  21037. #define HRTIM_EECR2_EE6POL_Msk (0x1U << HRTIM_EECR2_EE6POL_Pos) /*!< 0x00000004 */
  21038. #define HRTIM_EECR2_EE6POL HRTIM_EECR2_EE6POL_Msk /*!< External event 6 Polarity */
  21039. #define HRTIM_EECR2_EE6SNS_Pos (3U)
  21040. #define HRTIM_EECR2_EE6SNS_Msk (0x3U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000018 */
  21041. #define HRTIM_EECR2_EE6SNS HRTIM_EECR2_EE6SNS_Msk /*!< External event 6 sensitivity */
  21042. #define HRTIM_EECR2_EE6SNS_0 (0x1U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000008 */
  21043. #define HRTIM_EECR2_EE6SNS_1 (0x2U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000010 */
  21044. #define HRTIM_EECR2_EE7SRC_Pos (6U)
  21045. #define HRTIM_EECR2_EE7SRC_Msk (0x3U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x000000C0 */
  21046. #define HRTIM_EECR2_EE7SRC HRTIM_EECR2_EE7SRC_Msk /*!< External event 7 source */
  21047. #define HRTIM_EECR2_EE7SRC_0 (0x1U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x00000040 */
  21048. #define HRTIM_EECR2_EE7SRC_1 (0x2U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x00000080 */
  21049. #define HRTIM_EECR2_EE7POL_Pos (8U)
  21050. #define HRTIM_EECR2_EE7POL_Msk (0x1U << HRTIM_EECR2_EE7POL_Pos) /*!< 0x00000100 */
  21051. #define HRTIM_EECR2_EE7POL HRTIM_EECR2_EE7POL_Msk /*!< External event 7 Polarity */
  21052. #define HRTIM_EECR2_EE7SNS_Pos (9U)
  21053. #define HRTIM_EECR2_EE7SNS_Msk (0x3U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000600 */
  21054. #define HRTIM_EECR2_EE7SNS HRTIM_EECR2_EE7SNS_Msk /*!< External event 7 sensitivity */
  21055. #define HRTIM_EECR2_EE7SNS_0 (0x1U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000200 */
  21056. #define HRTIM_EECR2_EE7SNS_1 (0x2U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000400 */
  21057. #define HRTIM_EECR2_EE8SRC_Pos (12U)
  21058. #define HRTIM_EECR2_EE8SRC_Msk (0x3U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00003000 */
  21059. #define HRTIM_EECR2_EE8SRC HRTIM_EECR2_EE8SRC_Msk /*!< External event 8 source */
  21060. #define HRTIM_EECR2_EE8SRC_0 (0x1U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00001000 */
  21061. #define HRTIM_EECR2_EE8SRC_1 (0x2U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00002000 */
  21062. #define HRTIM_EECR2_EE8POL_Pos (14U)
  21063. #define HRTIM_EECR2_EE8POL_Msk (0x1U << HRTIM_EECR2_EE8POL_Pos) /*!< 0x00004000 */
  21064. #define HRTIM_EECR2_EE8POL HRTIM_EECR2_EE8POL_Msk /*!< External event 8 Polarity */
  21065. #define HRTIM_EECR2_EE8SNS_Pos (15U)
  21066. #define HRTIM_EECR2_EE8SNS_Msk (0x3U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00018000 */
  21067. #define HRTIM_EECR2_EE8SNS HRTIM_EECR2_EE8SNS_Msk /*!< External event 8 sensitivity */
  21068. #define HRTIM_EECR2_EE8SNS_0 (0x1U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00008000 */
  21069. #define HRTIM_EECR2_EE8SNS_1 (0x2U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00010000 */
  21070. #define HRTIM_EECR2_EE9SRC_Pos (18U)
  21071. #define HRTIM_EECR2_EE9SRC_Msk (0x3U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x000C0000 */
  21072. #define HRTIM_EECR2_EE9SRC HRTIM_EECR2_EE9SRC_Msk /*!< External event 9 source */
  21073. #define HRTIM_EECR2_EE9SRC_0 (0x1U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x00040000 */
  21074. #define HRTIM_EECR2_EE9SRC_1 (0x2U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x00080000 */
  21075. #define HRTIM_EECR2_EE9POL_Pos (20U)
  21076. #define HRTIM_EECR2_EE9POL_Msk (0x1U << HRTIM_EECR2_EE9POL_Pos) /*!< 0x00100000 */
  21077. #define HRTIM_EECR2_EE9POL HRTIM_EECR2_EE9POL_Msk /*!< External event 9 Polarity */
  21078. #define HRTIM_EECR2_EE9SNS_Pos (21U)
  21079. #define HRTIM_EECR2_EE9SNS_Msk (0x3U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00600000 */
  21080. #define HRTIM_EECR2_EE9SNS HRTIM_EECR2_EE9SNS_Msk /*!< External event 9 sensitivity */
  21081. #define HRTIM_EECR2_EE9SNS_0 (0x1U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00200000 */
  21082. #define HRTIM_EECR2_EE9SNS_1 (0x2U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00400000 */
  21083. #define HRTIM_EECR2_EE10SRC_Pos (24U)
  21084. #define HRTIM_EECR2_EE10SRC_Msk (0x3U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x03000000 */
  21085. #define HRTIM_EECR2_EE10SRC HRTIM_EECR2_EE10SRC_Msk /*!< External event 10 source */
  21086. #define HRTIM_EECR2_EE10SRC_0 (0x1U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x01000000 */
  21087. #define HRTIM_EECR2_EE10SRC_1 (0x2U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x02000000 */
  21088. #define HRTIM_EECR2_EE10POL_Pos (26U)
  21089. #define HRTIM_EECR2_EE10POL_Msk (0x1U << HRTIM_EECR2_EE10POL_Pos) /*!< 0x04000000 */
  21090. #define HRTIM_EECR2_EE10POL HRTIM_EECR2_EE10POL_Msk /*!< External event 10 Polarity */
  21091. #define HRTIM_EECR2_EE10SNS_Pos (27U)
  21092. #define HRTIM_EECR2_EE10SNS_Msk (0x3U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x18000000 */
  21093. #define HRTIM_EECR2_EE10SNS HRTIM_EECR2_EE10SNS_Msk /*!< External event 10 sensitivity */
  21094. #define HRTIM_EECR2_EE10SNS_0 (0x1U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x08000000 */
  21095. #define HRTIM_EECR2_EE10SNS_1 (0x2U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x10000000 */
  21096. /******************* Bit definition for HRTIM_EECR3 register ****************/
  21097. #define HRTIM_EECR3_EE6F_Pos (0U)
  21098. #define HRTIM_EECR3_EE6F_Msk (0xFU << HRTIM_EECR3_EE6F_Pos) /*!< 0x0000000F */
  21099. #define HRTIM_EECR3_EE6F HRTIM_EECR3_EE6F_Msk /*!< External event 6 filter */
  21100. #define HRTIM_EECR3_EE6F_0 (0x1U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000001 */
  21101. #define HRTIM_EECR3_EE6F_1 (0x2U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000002 */
  21102. #define HRTIM_EECR3_EE6F_2 (0x4U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000004 */
  21103. #define HRTIM_EECR3_EE6F_3 (0x8U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000008 */
  21104. #define HRTIM_EECR3_EE7F_Pos (6U)
  21105. #define HRTIM_EECR3_EE7F_Msk (0xFU << HRTIM_EECR3_EE7F_Pos) /*!< 0x000003C0 */
  21106. #define HRTIM_EECR3_EE7F HRTIM_EECR3_EE7F_Msk /*!< External event 7 filter */
  21107. #define HRTIM_EECR3_EE7F_0 (0x1U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000040 */
  21108. #define HRTIM_EECR3_EE7F_1 (0x2U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000080 */
  21109. #define HRTIM_EECR3_EE7F_2 (0x4U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000100 */
  21110. #define HRTIM_EECR3_EE7F_3 (0x8U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000200 */
  21111. #define HRTIM_EECR3_EE8F_Pos (12U)
  21112. #define HRTIM_EECR3_EE8F_Msk (0xFU << HRTIM_EECR3_EE8F_Pos) /*!< 0x0000F000 */
  21113. #define HRTIM_EECR3_EE8F HRTIM_EECR3_EE8F_Msk /*!< External event 8 filter */
  21114. #define HRTIM_EECR3_EE8F_0 (0x1U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00001000 */
  21115. #define HRTIM_EECR3_EE8F_1 (0x2U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00002000 */
  21116. #define HRTIM_EECR3_EE8F_2 (0x4U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00004000 */
  21117. #define HRTIM_EECR3_EE8F_3 (0x8U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00008000 */
  21118. #define HRTIM_EECR3_EE9F_Pos (18U)
  21119. #define HRTIM_EECR3_EE9F_Msk (0xFU << HRTIM_EECR3_EE9F_Pos) /*!< 0x003C0000 */
  21120. #define HRTIM_EECR3_EE9F HRTIM_EECR3_EE9F_Msk /*!< External event 9 filter */
  21121. #define HRTIM_EECR3_EE9F_0 (0x1U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00040000 */
  21122. #define HRTIM_EECR3_EE9F_1 (0x2U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00080000 */
  21123. #define HRTIM_EECR3_EE9F_2 (0x4U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00100000 */
  21124. #define HRTIM_EECR3_EE9F_3 (0x8U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00200000 */
  21125. #define HRTIM_EECR3_EE10F_Pos (24U)
  21126. #define HRTIM_EECR3_EE10F_Msk (0xFU << HRTIM_EECR3_EE10F_Pos) /*!< 0x0F000000 */
  21127. #define HRTIM_EECR3_EE10F HRTIM_EECR3_EE10F_Msk /*!< External event 10 filter */
  21128. #define HRTIM_EECR3_EE10F_0 (0x1U << HRTIM_EECR3_EE10F_Pos) /*!< 0x01000000 */
  21129. #define HRTIM_EECR3_EE10F_1 (0x2U << HRTIM_EECR3_EE10F_Pos) /*!< 0x02000000 */
  21130. #define HRTIM_EECR3_EE10F_2 (0x4U << HRTIM_EECR3_EE10F_Pos) /*!< 0x04000000 */
  21131. #define HRTIM_EECR3_EE10F_3 (0x8U << HRTIM_EECR3_EE10F_Pos) /*!< 0x08000000 */
  21132. #define HRTIM_EECR3_EEVSD_Pos (30U)
  21133. #define HRTIM_EECR3_EEVSD_Msk (0x3U << HRTIM_EECR3_EEVSD_Pos) /*!< 0xC0000000 */
  21134. #define HRTIM_EECR3_EEVSD HRTIM_EECR3_EEVSD_Msk /*!< External event sampling clock division */
  21135. #define HRTIM_EECR3_EEVSD_0 (0x1U << HRTIM_EECR3_EEVSD_Pos) /*!< 0x40000000 */
  21136. #define HRTIM_EECR3_EEVSD_1 (0x2U << HRTIM_EECR3_EEVSD_Pos) /*!< 0x80000000 */
  21137. /******************* Bit definition for HRTIM_ADC1R register ****************/
  21138. #define HRTIM_ADC1R_AD1MC1_Pos (0U)
  21139. #define HRTIM_ADC1R_AD1MC1_Msk (0x1U << HRTIM_ADC1R_AD1MC1_Pos) /*!< 0x00000001 */
  21140. #define HRTIM_ADC1R_AD1MC1 HRTIM_ADC1R_AD1MC1_Msk /*!< ADC Trigger 1 on master compare 1 */
  21141. #define HRTIM_ADC1R_AD1MC2_Pos (1U)
  21142. #define HRTIM_ADC1R_AD1MC2_Msk (0x1U << HRTIM_ADC1R_AD1MC2_Pos) /*!< 0x00000002 */
  21143. #define HRTIM_ADC1R_AD1MC2 HRTIM_ADC1R_AD1MC2_Msk /*!< ADC Trigger 1 on master compare 2 */
  21144. #define HRTIM_ADC1R_AD1MC3_Pos (2U)
  21145. #define HRTIM_ADC1R_AD1MC3_Msk (0x1U << HRTIM_ADC1R_AD1MC3_Pos) /*!< 0x00000004 */
  21146. #define HRTIM_ADC1R_AD1MC3 HRTIM_ADC1R_AD1MC3_Msk /*!< ADC Trigger 1 on master compare 3 */
  21147. #define HRTIM_ADC1R_AD1MC4_Pos (3U)
  21148. #define HRTIM_ADC1R_AD1MC4_Msk (0x1U << HRTIM_ADC1R_AD1MC4_Pos) /*!< 0x00000008 */
  21149. #define HRTIM_ADC1R_AD1MC4 HRTIM_ADC1R_AD1MC4_Msk /*!< ADC Trigger 1 on master compare 4 */
  21150. #define HRTIM_ADC1R_AD1MPER_Pos (4U)
  21151. #define HRTIM_ADC1R_AD1MPER_Msk (0x1U << HRTIM_ADC1R_AD1MPER_Pos) /*!< 0x00000010 */
  21152. #define HRTIM_ADC1R_AD1MPER HRTIM_ADC1R_AD1MPER_Msk /*!< ADC Trigger 1 on master period */
  21153. #define HRTIM_ADC1R_AD1EEV1_Pos (5U)
  21154. #define HRTIM_ADC1R_AD1EEV1_Msk (0x1U << HRTIM_ADC1R_AD1EEV1_Pos) /*!< 0x00000020 */
  21155. #define HRTIM_ADC1R_AD1EEV1 HRTIM_ADC1R_AD1EEV1_Msk /*!< ADC Trigger 1 on external event 1 */
  21156. #define HRTIM_ADC1R_AD1EEV2_Pos (6U)
  21157. #define HRTIM_ADC1R_AD1EEV2_Msk (0x1U << HRTIM_ADC1R_AD1EEV2_Pos) /*!< 0x00000040 */
  21158. #define HRTIM_ADC1R_AD1EEV2 HRTIM_ADC1R_AD1EEV2_Msk /*!< ADC Trigger 1 on external event 2 */
  21159. #define HRTIM_ADC1R_AD1EEV3_Pos (7U)
  21160. #define HRTIM_ADC1R_AD1EEV3_Msk (0x1U << HRTIM_ADC1R_AD1EEV3_Pos) /*!< 0x00000080 */
  21161. #define HRTIM_ADC1R_AD1EEV3 HRTIM_ADC1R_AD1EEV3_Msk /*!< ADC Trigger 1 on external event 3 */
  21162. #define HRTIM_ADC1R_AD1EEV4_Pos (8U)
  21163. #define HRTIM_ADC1R_AD1EEV4_Msk (0x1U << HRTIM_ADC1R_AD1EEV4_Pos) /*!< 0x00000100 */
  21164. #define HRTIM_ADC1R_AD1EEV4 HRTIM_ADC1R_AD1EEV4_Msk /*!< ADC Trigger 1 on external event 4 */
  21165. #define HRTIM_ADC1R_AD1EEV5_Pos (9U)
  21166. #define HRTIM_ADC1R_AD1EEV5_Msk (0x1U << HRTIM_ADC1R_AD1EEV5_Pos) /*!< 0x00000200 */
  21167. #define HRTIM_ADC1R_AD1EEV5 HRTIM_ADC1R_AD1EEV5_Msk /*!< ADC Trigger 1 on external event 5 */
  21168. #define HRTIM_ADC1R_AD1TAC2_Pos (10U)
  21169. #define HRTIM_ADC1R_AD1TAC2_Msk (0x1U << HRTIM_ADC1R_AD1TAC2_Pos) /*!< 0x00000400 */
  21170. #define HRTIM_ADC1R_AD1TAC2 HRTIM_ADC1R_AD1TAC2_Msk /*!< ADC Trigger 1 on Timer A compare 2 */
  21171. #define HRTIM_ADC1R_AD1TAC3_Pos (11U)
  21172. #define HRTIM_ADC1R_AD1TAC3_Msk (0x1U << HRTIM_ADC1R_AD1TAC3_Pos) /*!< 0x00000800 */
  21173. #define HRTIM_ADC1R_AD1TAC3 HRTIM_ADC1R_AD1TAC3_Msk /*!< ADC Trigger 1 on Timer A compare 3 */
  21174. #define HRTIM_ADC1R_AD1TAC4_Pos (12U)
  21175. #define HRTIM_ADC1R_AD1TAC4_Msk (0x1U << HRTIM_ADC1R_AD1TAC4_Pos) /*!< 0x00001000 */
  21176. #define HRTIM_ADC1R_AD1TAC4 HRTIM_ADC1R_AD1TAC4_Msk /*!< ADC Trigger 1 on Timer A compare 4 */
  21177. #define HRTIM_ADC1R_AD1TAPER_Pos (13U)
  21178. #define HRTIM_ADC1R_AD1TAPER_Msk (0x1U << HRTIM_ADC1R_AD1TAPER_Pos) /*!< 0x00002000 */
  21179. #define HRTIM_ADC1R_AD1TAPER HRTIM_ADC1R_AD1TAPER_Msk /*!< ADC Trigger 1 on Timer A period */
  21180. #define HRTIM_ADC1R_AD1TARST_Pos (14U)
  21181. #define HRTIM_ADC1R_AD1TARST_Msk (0x1U << HRTIM_ADC1R_AD1TARST_Pos) /*!< 0x00004000 */
  21182. #define HRTIM_ADC1R_AD1TARST HRTIM_ADC1R_AD1TARST_Msk /*!< ADC Trigger 1 on Timer A reset */
  21183. #define HRTIM_ADC1R_AD1TBC2_Pos (15U)
  21184. #define HRTIM_ADC1R_AD1TBC2_Msk (0x1U << HRTIM_ADC1R_AD1TBC2_Pos) /*!< 0x00008000 */
  21185. #define HRTIM_ADC1R_AD1TBC2 HRTIM_ADC1R_AD1TBC2_Msk /*!< ADC Trigger 1 on Timer B compare 2 */
  21186. #define HRTIM_ADC1R_AD1TBC3_Pos (16U)
  21187. #define HRTIM_ADC1R_AD1TBC3_Msk (0x1U << HRTIM_ADC1R_AD1TBC3_Pos) /*!< 0x00010000 */
  21188. #define HRTIM_ADC1R_AD1TBC3 HRTIM_ADC1R_AD1TBC3_Msk /*!< ADC Trigger 1 on Timer B compare 3 */
  21189. #define HRTIM_ADC1R_AD1TBC4_Pos (17U)
  21190. #define HRTIM_ADC1R_AD1TBC4_Msk (0x1U << HRTIM_ADC1R_AD1TBC4_Pos) /*!< 0x00020000 */
  21191. #define HRTIM_ADC1R_AD1TBC4 HRTIM_ADC1R_AD1TBC4_Msk /*!< ADC Trigger 1 on Timer B compare 4 */
  21192. #define HRTIM_ADC1R_AD1TBPER_Pos (18U)
  21193. #define HRTIM_ADC1R_AD1TBPER_Msk (0x1U << HRTIM_ADC1R_AD1TBPER_Pos) /*!< 0x00040000 */
  21194. #define HRTIM_ADC1R_AD1TBPER HRTIM_ADC1R_AD1TBPER_Msk /*!< ADC Trigger 1 on Timer B period */
  21195. #define HRTIM_ADC1R_AD1TBRST_Pos (19U)
  21196. #define HRTIM_ADC1R_AD1TBRST_Msk (0x1U << HRTIM_ADC1R_AD1TBRST_Pos) /*!< 0x00080000 */
  21197. #define HRTIM_ADC1R_AD1TBRST HRTIM_ADC1R_AD1TBRST_Msk /*!< ADC Trigger 1 on Timer B reset */
  21198. #define HRTIM_ADC1R_AD1TCC2_Pos (20U)
  21199. #define HRTIM_ADC1R_AD1TCC2_Msk (0x1U << HRTIM_ADC1R_AD1TCC2_Pos) /*!< 0x00100000 */
  21200. #define HRTIM_ADC1R_AD1TCC2 HRTIM_ADC1R_AD1TCC2_Msk /*!< ADC Trigger 1 on Timer C compare 2 */
  21201. #define HRTIM_ADC1R_AD1TCC3_Pos (21U)
  21202. #define HRTIM_ADC1R_AD1TCC3_Msk (0x1U << HRTIM_ADC1R_AD1TCC3_Pos) /*!< 0x00200000 */
  21203. #define HRTIM_ADC1R_AD1TCC3 HRTIM_ADC1R_AD1TCC3_Msk /*!< ADC Trigger 1 on Timer C compare 3 */
  21204. #define HRTIM_ADC1R_AD1TCC4_Pos (22U)
  21205. #define HRTIM_ADC1R_AD1TCC4_Msk (0x1U << HRTIM_ADC1R_AD1TCC4_Pos) /*!< 0x00400000 */
  21206. #define HRTIM_ADC1R_AD1TCC4 HRTIM_ADC1R_AD1TCC4_Msk /*!< ADC Trigger 1 on Timer C compare 4 */
  21207. #define HRTIM_ADC1R_AD1TCPER_Pos (23U)
  21208. #define HRTIM_ADC1R_AD1TCPER_Msk (0x1U << HRTIM_ADC1R_AD1TCPER_Pos) /*!< 0x00800000 */
  21209. #define HRTIM_ADC1R_AD1TCPER HRTIM_ADC1R_AD1TCPER_Msk /*!< ADC Trigger 1 on Timer C period */
  21210. #define HRTIM_ADC1R_AD1TDC2_Pos (24U)
  21211. #define HRTIM_ADC1R_AD1TDC2_Msk (0x1U << HRTIM_ADC1R_AD1TDC2_Pos) /*!< 0x01000000 */
  21212. #define HRTIM_ADC1R_AD1TDC2 HRTIM_ADC1R_AD1TDC2_Msk /*!< ADC Trigger 1 on Timer D compare 2 */
  21213. #define HRTIM_ADC1R_AD1TDC3_Pos (25U)
  21214. #define HRTIM_ADC1R_AD1TDC3_Msk (0x1U << HRTIM_ADC1R_AD1TDC3_Pos) /*!< 0x02000000 */
  21215. #define HRTIM_ADC1R_AD1TDC3 HRTIM_ADC1R_AD1TDC3_Msk /*!< ADC Trigger 1 on Timer D compare 3 */
  21216. #define HRTIM_ADC1R_AD1TDC4_Pos (26U)
  21217. #define HRTIM_ADC1R_AD1TDC4_Msk (0x1U << HRTIM_ADC1R_AD1TDC4_Pos) /*!< 0x04000000 */
  21218. #define HRTIM_ADC1R_AD1TDC4 HRTIM_ADC1R_AD1TDC4_Msk /*!< ADC Trigger 1 on Timer D compare 4 */
  21219. #define HRTIM_ADC1R_AD1TDPER_Pos (27U)
  21220. #define HRTIM_ADC1R_AD1TDPER_Msk (0x1U << HRTIM_ADC1R_AD1TDPER_Pos) /*!< 0x08000000 */
  21221. #define HRTIM_ADC1R_AD1TDPER HRTIM_ADC1R_AD1TDPER_Msk /*!< ADC Trigger 1 on Timer D period */
  21222. #define HRTIM_ADC1R_AD1TEC2_Pos (28U)
  21223. #define HRTIM_ADC1R_AD1TEC2_Msk (0x1U << HRTIM_ADC1R_AD1TEC2_Pos) /*!< 0x10000000 */
  21224. #define HRTIM_ADC1R_AD1TEC2 HRTIM_ADC1R_AD1TEC2_Msk /*!< ADC Trigger 1 on Timer E compare 2 */
  21225. #define HRTIM_ADC1R_AD1TEC3_Pos (29U)
  21226. #define HRTIM_ADC1R_AD1TEC3_Msk (0x1U << HRTIM_ADC1R_AD1TEC3_Pos) /*!< 0x20000000 */
  21227. #define HRTIM_ADC1R_AD1TEC3 HRTIM_ADC1R_AD1TEC3_Msk /*!< ADC Trigger 1 on Timer E compare 3 */
  21228. #define HRTIM_ADC1R_AD1TEC4_Pos (30U)
  21229. #define HRTIM_ADC1R_AD1TEC4_Msk (0x1U << HRTIM_ADC1R_AD1TEC4_Pos) /*!< 0x40000000 */
  21230. #define HRTIM_ADC1R_AD1TEC4 HRTIM_ADC1R_AD1TEC4_Msk /*!< ADC Trigger 1 on Timer E compare 4 */
  21231. #define HRTIM_ADC1R_AD1TEPER_Pos (31U)
  21232. #define HRTIM_ADC1R_AD1TEPER_Msk (0x1U << HRTIM_ADC1R_AD1TEPER_Pos) /*!< 0x80000000 */
  21233. #define HRTIM_ADC1R_AD1TEPER HRTIM_ADC1R_AD1TEPER_Msk /*!< ADC Trigger 1 on Timer E period */
  21234. /******************* Bit definition for HRTIM_ADC2R register ****************/
  21235. #define HRTIM_ADC2R_AD2MC1_Pos (0U)
  21236. #define HRTIM_ADC2R_AD2MC1_Msk (0x1U << HRTIM_ADC2R_AD2MC1_Pos) /*!< 0x00000001 */
  21237. #define HRTIM_ADC2R_AD2MC1 HRTIM_ADC2R_AD2MC1_Msk /*!< ADC Trigger 2 on master compare 1 */
  21238. #define HRTIM_ADC2R_AD2MC2_Pos (1U)
  21239. #define HRTIM_ADC2R_AD2MC2_Msk (0x1U << HRTIM_ADC2R_AD2MC2_Pos) /*!< 0x00000002 */
  21240. #define HRTIM_ADC2R_AD2MC2 HRTIM_ADC2R_AD2MC2_Msk /*!< ADC Trigger 2 on master compare 2 */
  21241. #define HRTIM_ADC2R_AD2MC3_Pos (2U)
  21242. #define HRTIM_ADC2R_AD2MC3_Msk (0x1U << HRTIM_ADC2R_AD2MC3_Pos) /*!< 0x00000004 */
  21243. #define HRTIM_ADC2R_AD2MC3 HRTIM_ADC2R_AD2MC3_Msk /*!< ADC Trigger 2 on master compare 3 */
  21244. #define HRTIM_ADC2R_AD2MC4_Pos (3U)
  21245. #define HRTIM_ADC2R_AD2MC4_Msk (0x1U << HRTIM_ADC2R_AD2MC4_Pos) /*!< 0x00000008 */
  21246. #define HRTIM_ADC2R_AD2MC4 HRTIM_ADC2R_AD2MC4_Msk /*!< ADC Trigger 2 on master compare 4 */
  21247. #define HRTIM_ADC2R_AD2MPER_Pos (4U)
  21248. #define HRTIM_ADC2R_AD2MPER_Msk (0x1U << HRTIM_ADC2R_AD2MPER_Pos) /*!< 0x00000010 */
  21249. #define HRTIM_ADC2R_AD2MPER HRTIM_ADC2R_AD2MPER_Msk /*!< ADC Trigger 2 on master period */
  21250. #define HRTIM_ADC2R_AD2EEV6_Pos (5U)
  21251. #define HRTIM_ADC2R_AD2EEV6_Msk (0x1U << HRTIM_ADC2R_AD2EEV6_Pos) /*!< 0x00000020 */
  21252. #define HRTIM_ADC2R_AD2EEV6 HRTIM_ADC2R_AD2EEV6_Msk /*!< ADC Trigger 2 on external event 6 */
  21253. #define HRTIM_ADC2R_AD2EEV7_Pos (6U)
  21254. #define HRTIM_ADC2R_AD2EEV7_Msk (0x1U << HRTIM_ADC2R_AD2EEV7_Pos) /*!< 0x00000040 */
  21255. #define HRTIM_ADC2R_AD2EEV7 HRTIM_ADC2R_AD2EEV7_Msk /*!< ADC Trigger 2 on external event 7 */
  21256. #define HRTIM_ADC2R_AD2EEV8_Pos (7U)
  21257. #define HRTIM_ADC2R_AD2EEV8_Msk (0x1U << HRTIM_ADC2R_AD2EEV8_Pos) /*!< 0x00000080 */
  21258. #define HRTIM_ADC2R_AD2EEV8 HRTIM_ADC2R_AD2EEV8_Msk /*!< ADC Trigger 2 on external event 8 */
  21259. #define HRTIM_ADC2R_AD2EEV9_Pos (8U)
  21260. #define HRTIM_ADC2R_AD2EEV9_Msk (0x1U << HRTIM_ADC2R_AD2EEV9_Pos) /*!< 0x00000100 */
  21261. #define HRTIM_ADC2R_AD2EEV9 HRTIM_ADC2R_AD2EEV9_Msk /*!< ADC Trigger 2 on external event 9 */
  21262. #define HRTIM_ADC2R_AD2EEV10_Pos (9U)
  21263. #define HRTIM_ADC2R_AD2EEV10_Msk (0x1U << HRTIM_ADC2R_AD2EEV10_Pos) /*!< 0x00000200 */
  21264. #define HRTIM_ADC2R_AD2EEV10 HRTIM_ADC2R_AD2EEV10_Msk /*!< ADC Trigger 2 on external event 10 */
  21265. #define HRTIM_ADC2R_AD2TAC2_Pos (10U)
  21266. #define HRTIM_ADC2R_AD2TAC2_Msk (0x1U << HRTIM_ADC2R_AD2TAC2_Pos) /*!< 0x00000400 */
  21267. #define HRTIM_ADC2R_AD2TAC2 HRTIM_ADC2R_AD2TAC2_Msk /*!< ADC Trigger 2 on Timer A compare 2 */
  21268. #define HRTIM_ADC2R_AD2TAC3_Pos (11U)
  21269. #define HRTIM_ADC2R_AD2TAC3_Msk (0x1U << HRTIM_ADC2R_AD2TAC3_Pos) /*!< 0x00000800 */
  21270. #define HRTIM_ADC2R_AD2TAC3 HRTIM_ADC2R_AD2TAC3_Msk /*!< ADC Trigger 2 on Timer A compare 3 */
  21271. #define HRTIM_ADC2R_AD2TAC4_Pos (12U)
  21272. #define HRTIM_ADC2R_AD2TAC4_Msk (0x1U << HRTIM_ADC2R_AD2TAC4_Pos) /*!< 0x00001000 */
  21273. #define HRTIM_ADC2R_AD2TAC4 HRTIM_ADC2R_AD2TAC4_Msk /*!< ADC Trigger 2 on Timer A compare 4*/
  21274. #define HRTIM_ADC2R_AD2TAPER_Pos (13U)
  21275. #define HRTIM_ADC2R_AD2TAPER_Msk (0x1U << HRTIM_ADC2R_AD2TAPER_Pos) /*!< 0x00002000 */
  21276. #define HRTIM_ADC2R_AD2TAPER HRTIM_ADC2R_AD2TAPER_Msk /*!< ADC Trigger 2 on Timer A period */
  21277. #define HRTIM_ADC2R_AD2TBC2_Pos (14U)
  21278. #define HRTIM_ADC2R_AD2TBC2_Msk (0x1U << HRTIM_ADC2R_AD2TBC2_Pos) /*!< 0x00004000 */
  21279. #define HRTIM_ADC2R_AD2TBC2 HRTIM_ADC2R_AD2TBC2_Msk /*!< ADC Trigger 2 on Timer B compare 2 */
  21280. #define HRTIM_ADC2R_AD2TBC3_Pos (15U)
  21281. #define HRTIM_ADC2R_AD2TBC3_Msk (0x1U << HRTIM_ADC2R_AD2TBC3_Pos) /*!< 0x00008000 */
  21282. #define HRTIM_ADC2R_AD2TBC3 HRTIM_ADC2R_AD2TBC3_Msk /*!< ADC Trigger 2 on Timer B compare 3 */
  21283. #define HRTIM_ADC2R_AD2TBC4_Pos (16U)
  21284. #define HRTIM_ADC2R_AD2TBC4_Msk (0x1U << HRTIM_ADC2R_AD2TBC4_Pos) /*!< 0x00010000 */
  21285. #define HRTIM_ADC2R_AD2TBC4 HRTIM_ADC2R_AD2TBC4_Msk /*!< ADC Trigger 2 on Timer B compare 4 */
  21286. #define HRTIM_ADC2R_AD2TBPER_Pos (17U)
  21287. #define HRTIM_ADC2R_AD2TBPER_Msk (0x1U << HRTIM_ADC2R_AD2TBPER_Pos) /*!< 0x00020000 */
  21288. #define HRTIM_ADC2R_AD2TBPER HRTIM_ADC2R_AD2TBPER_Msk /*!< ADC Trigger 2 on Timer B period */
  21289. #define HRTIM_ADC2R_AD2TCC2_Pos (18U)
  21290. #define HRTIM_ADC2R_AD2TCC2_Msk (0x1U << HRTIM_ADC2R_AD2TCC2_Pos) /*!< 0x00040000 */
  21291. #define HRTIM_ADC2R_AD2TCC2 HRTIM_ADC2R_AD2TCC2_Msk /*!< ADC Trigger 2 on Timer C compare 2 */
  21292. #define HRTIM_ADC2R_AD2TCC3_Pos (19U)
  21293. #define HRTIM_ADC2R_AD2TCC3_Msk (0x1U << HRTIM_ADC2R_AD2TCC3_Pos) /*!< 0x00080000 */
  21294. #define HRTIM_ADC2R_AD2TCC3 HRTIM_ADC2R_AD2TCC3_Msk /*!< ADC Trigger 2 on Timer C compare 3 */
  21295. #define HRTIM_ADC2R_AD2TCC4_Pos (20U)
  21296. #define HRTIM_ADC2R_AD2TCC4_Msk (0x1U << HRTIM_ADC2R_AD2TCC4_Pos) /*!< 0x00100000 */
  21297. #define HRTIM_ADC2R_AD2TCC4 HRTIM_ADC2R_AD2TCC4_Msk /*!< ADC Trigger 2 on Timer C compare 4 */
  21298. #define HRTIM_ADC2R_AD2TCPER_Pos (21U)
  21299. #define HRTIM_ADC2R_AD2TCPER_Msk (0x1U << HRTIM_ADC2R_AD2TCPER_Pos) /*!< 0x00200000 */
  21300. #define HRTIM_ADC2R_AD2TCPER HRTIM_ADC2R_AD2TCPER_Msk /*!< ADC Trigger 2 on Timer C period */
  21301. #define HRTIM_ADC2R_AD2TCRST_Pos (22U)
  21302. #define HRTIM_ADC2R_AD2TCRST_Msk (0x1U << HRTIM_ADC2R_AD2TCRST_Pos) /*!< 0x00400000 */
  21303. #define HRTIM_ADC2R_AD2TCRST HRTIM_ADC2R_AD2TCRST_Msk /*!< ADC Trigger 2 on Timer C reset */
  21304. #define HRTIM_ADC2R_AD2TDC2_Pos (23U)
  21305. #define HRTIM_ADC2R_AD2TDC2_Msk (0x1U << HRTIM_ADC2R_AD2TDC2_Pos) /*!< 0x00800000 */
  21306. #define HRTIM_ADC2R_AD2TDC2 HRTIM_ADC2R_AD2TDC2_Msk /*!< ADC Trigger 2 on Timer D compare 2 */
  21307. #define HRTIM_ADC2R_AD2TDC3_Pos (24U)
  21308. #define HRTIM_ADC2R_AD2TDC3_Msk (0x1U << HRTIM_ADC2R_AD2TDC3_Pos) /*!< 0x01000000 */
  21309. #define HRTIM_ADC2R_AD2TDC3 HRTIM_ADC2R_AD2TDC3_Msk /*!< ADC Trigger 2 on Timer D compare 3 */
  21310. #define HRTIM_ADC2R_AD2TDC4_Pos (25U)
  21311. #define HRTIM_ADC2R_AD2TDC4_Msk (0x1U << HRTIM_ADC2R_AD2TDC4_Pos) /*!< 0x02000000 */
  21312. #define HRTIM_ADC2R_AD2TDC4 HRTIM_ADC2R_AD2TDC4_Msk /*!< ADC Trigger 2 on Timer D compare 4*/
  21313. #define HRTIM_ADC2R_AD2TDPER_Pos (26U)
  21314. #define HRTIM_ADC2R_AD2TDPER_Msk (0x1U << HRTIM_ADC2R_AD2TDPER_Pos) /*!< 0x04000000 */
  21315. #define HRTIM_ADC2R_AD2TDPER HRTIM_ADC2R_AD2TDPER_Msk /*!< ADC Trigger 2 on Timer D period */
  21316. #define HRTIM_ADC2R_AD2TDRST_Pos (27U)
  21317. #define HRTIM_ADC2R_AD2TDRST_Msk (0x1U << HRTIM_ADC2R_AD2TDRST_Pos) /*!< 0x08000000 */
  21318. #define HRTIM_ADC2R_AD2TDRST HRTIM_ADC2R_AD2TDRST_Msk /*!< ADC Trigger 2 on Timer D reset */
  21319. #define HRTIM_ADC2R_AD2TEC2_Pos (28U)
  21320. #define HRTIM_ADC2R_AD2TEC2_Msk (0x1U << HRTIM_ADC2R_AD2TEC2_Pos) /*!< 0x10000000 */
  21321. #define HRTIM_ADC2R_AD2TEC2 HRTIM_ADC2R_AD2TEC2_Msk /*!< ADC Trigger 2 on Timer E compare 2 */
  21322. #define HRTIM_ADC2R_AD2TEC3_Pos (29U)
  21323. #define HRTIM_ADC2R_AD2TEC3_Msk (0x1U << HRTIM_ADC2R_AD2TEC3_Pos) /*!< 0x20000000 */
  21324. #define HRTIM_ADC2R_AD2TEC3 HRTIM_ADC2R_AD2TEC3_Msk /*!< ADC Trigger 2 on Timer E compare 3 */
  21325. #define HRTIM_ADC2R_AD2TEC4_Pos (30U)
  21326. #define HRTIM_ADC2R_AD2TEC4_Msk (0x1U << HRTIM_ADC2R_AD2TEC4_Pos) /*!< 0x40000000 */
  21327. #define HRTIM_ADC2R_AD2TEC4 HRTIM_ADC2R_AD2TEC4_Msk /*!< ADC Trigger 2 on Timer E compare 4 */
  21328. #define HRTIM_ADC2R_AD2TERST_Pos (31U)
  21329. #define HRTIM_ADC2R_AD2TERST_Msk (0x1U << HRTIM_ADC2R_AD2TERST_Pos) /*!< 0x80000000 */
  21330. #define HRTIM_ADC2R_AD2TERST HRTIM_ADC2R_AD2TERST_Msk /*!< ADC Trigger 2 on Timer E reset */
  21331. /******************* Bit definition for HRTIM_ADC3R register ****************/
  21332. #define HRTIM_ADC3R_AD3MC1_Pos (0U)
  21333. #define HRTIM_ADC3R_AD3MC1_Msk (0x1U << HRTIM_ADC3R_AD3MC1_Pos) /*!< 0x00000001 */
  21334. #define HRTIM_ADC3R_AD3MC1 HRTIM_ADC3R_AD3MC1_Msk /*!< ADC Trigger 3 on master compare 1 */
  21335. #define HRTIM_ADC3R_AD3MC2_Pos (1U)
  21336. #define HRTIM_ADC3R_AD3MC2_Msk (0x1U << HRTIM_ADC3R_AD3MC2_Pos) /*!< 0x00000002 */
  21337. #define HRTIM_ADC3R_AD3MC2 HRTIM_ADC3R_AD3MC2_Msk /*!< ADC Trigger 3 on master compare 2 */
  21338. #define HRTIM_ADC3R_AD3MC3_Pos (2U)
  21339. #define HRTIM_ADC3R_AD3MC3_Msk (0x1U << HRTIM_ADC3R_AD3MC3_Pos) /*!< 0x00000004 */
  21340. #define HRTIM_ADC3R_AD3MC3 HRTIM_ADC3R_AD3MC3_Msk /*!< ADC Trigger 3 on master compare 3 */
  21341. #define HRTIM_ADC3R_AD3MC4_Pos (3U)
  21342. #define HRTIM_ADC3R_AD3MC4_Msk (0x1U << HRTIM_ADC3R_AD3MC4_Pos) /*!< 0x00000008 */
  21343. #define HRTIM_ADC3R_AD3MC4 HRTIM_ADC3R_AD3MC4_Msk /*!< ADC Trigger 3 on master compare 4 */
  21344. #define HRTIM_ADC3R_AD3MPER_Pos (4U)
  21345. #define HRTIM_ADC3R_AD3MPER_Msk (0x1U << HRTIM_ADC3R_AD3MPER_Pos) /*!< 0x00000010 */
  21346. #define HRTIM_ADC3R_AD3MPER HRTIM_ADC3R_AD3MPER_Msk /*!< ADC Trigger 3 on master period */
  21347. #define HRTIM_ADC3R_AD3EEV1_Pos (5U)
  21348. #define HRTIM_ADC3R_AD3EEV1_Msk (0x1U << HRTIM_ADC3R_AD3EEV1_Pos) /*!< 0x00000020 */
  21349. #define HRTIM_ADC3R_AD3EEV1 HRTIM_ADC3R_AD3EEV1_Msk /*!< ADC Trigger 3 on external event 1 */
  21350. #define HRTIM_ADC3R_AD3EEV2_Pos (6U)
  21351. #define HRTIM_ADC3R_AD3EEV2_Msk (0x1U << HRTIM_ADC3R_AD3EEV2_Pos) /*!< 0x00000040 */
  21352. #define HRTIM_ADC3R_AD3EEV2 HRTIM_ADC3R_AD3EEV2_Msk /*!< ADC Trigger 3 on external event 2 */
  21353. #define HRTIM_ADC3R_AD3EEV3_Pos (7U)
  21354. #define HRTIM_ADC3R_AD3EEV3_Msk (0x1U << HRTIM_ADC3R_AD3EEV3_Pos) /*!< 0x00000080 */
  21355. #define HRTIM_ADC3R_AD3EEV3 HRTIM_ADC3R_AD3EEV3_Msk /*!< ADC Trigger 3 on external event 3 */
  21356. #define HRTIM_ADC3R_AD3EEV4_Pos (8U)
  21357. #define HRTIM_ADC3R_AD3EEV4_Msk (0x1U << HRTIM_ADC3R_AD3EEV4_Pos) /*!< 0x00000100 */
  21358. #define HRTIM_ADC3R_AD3EEV4 HRTIM_ADC3R_AD3EEV4_Msk /*!< ADC Trigger 3 on external event 4 */
  21359. #define HRTIM_ADC3R_AD3EEV5_Pos (9U)
  21360. #define HRTIM_ADC3R_AD3EEV5_Msk (0x1U << HRTIM_ADC3R_AD3EEV5_Pos) /*!< 0x00000200 */
  21361. #define HRTIM_ADC3R_AD3EEV5 HRTIM_ADC3R_AD3EEV5_Msk /*!< ADC Trigger 3 on external event 5 */
  21362. #define HRTIM_ADC3R_AD3TAC2_Pos (10U)
  21363. #define HRTIM_ADC3R_AD3TAC2_Msk (0x1U << HRTIM_ADC3R_AD3TAC2_Pos) /*!< 0x00000400 */
  21364. #define HRTIM_ADC3R_AD3TAC2 HRTIM_ADC3R_AD3TAC2_Msk /*!< ADC Trigger 3 on Timer A compare 2 */
  21365. #define HRTIM_ADC3R_AD3TAC3_Pos (11U)
  21366. #define HRTIM_ADC3R_AD3TAC3_Msk (0x1U << HRTIM_ADC3R_AD3TAC3_Pos) /*!< 0x00000800 */
  21367. #define HRTIM_ADC3R_AD3TAC3 HRTIM_ADC3R_AD3TAC3_Msk /*!< ADC Trigger 3 on Timer A compare 3 */
  21368. #define HRTIM_ADC3R_AD3TAC4_Pos (12U)
  21369. #define HRTIM_ADC3R_AD3TAC4_Msk (0x1U << HRTIM_ADC3R_AD3TAC4_Pos) /*!< 0x00001000 */
  21370. #define HRTIM_ADC3R_AD3TAC4 HRTIM_ADC3R_AD3TAC4_Msk /*!< ADC Trigger 3 on Timer A compare 4 */
  21371. #define HRTIM_ADC3R_AD3TAPER_Pos (13U)
  21372. #define HRTIM_ADC3R_AD3TAPER_Msk (0x1U << HRTIM_ADC3R_AD3TAPER_Pos) /*!< 0x00002000 */
  21373. #define HRTIM_ADC3R_AD3TAPER HRTIM_ADC3R_AD3TAPER_Msk /*!< ADC Trigger 3 on Timer A period */
  21374. #define HRTIM_ADC3R_AD3TARST_Pos (14U)
  21375. #define HRTIM_ADC3R_AD3TARST_Msk (0x1U << HRTIM_ADC3R_AD3TARST_Pos) /*!< 0x00004000 */
  21376. #define HRTIM_ADC3R_AD3TARST HRTIM_ADC3R_AD3TARST_Msk /*!< ADC Trigger 3 on Timer A reset */
  21377. #define HRTIM_ADC3R_AD3TBC2_Pos (15U)
  21378. #define HRTIM_ADC3R_AD3TBC2_Msk (0x1U << HRTIM_ADC3R_AD3TBC2_Pos) /*!< 0x00008000 */
  21379. #define HRTIM_ADC3R_AD3TBC2 HRTIM_ADC3R_AD3TBC2_Msk /*!< ADC Trigger 3 on Timer B compare 2 */
  21380. #define HRTIM_ADC3R_AD3TBC3_Pos (16U)
  21381. #define HRTIM_ADC3R_AD3TBC3_Msk (0x1U << HRTIM_ADC3R_AD3TBC3_Pos) /*!< 0x00010000 */
  21382. #define HRTIM_ADC3R_AD3TBC3 HRTIM_ADC3R_AD3TBC3_Msk /*!< ADC Trigger 3 on Timer B compare 3 */
  21383. #define HRTIM_ADC3R_AD3TBC4_Pos (17U)
  21384. #define HRTIM_ADC3R_AD3TBC4_Msk (0x1U << HRTIM_ADC3R_AD3TBC4_Pos) /*!< 0x00020000 */
  21385. #define HRTIM_ADC3R_AD3TBC4 HRTIM_ADC3R_AD3TBC4_Msk /*!< ADC Trigger 3 on Timer B compare 4 */
  21386. #define HRTIM_ADC3R_AD3TBPER_Pos (18U)
  21387. #define HRTIM_ADC3R_AD3TBPER_Msk (0x1U << HRTIM_ADC3R_AD3TBPER_Pos) /*!< 0x00040000 */
  21388. #define HRTIM_ADC3R_AD3TBPER HRTIM_ADC3R_AD3TBPER_Msk /*!< ADC Trigger 3 on Timer B period */
  21389. #define HRTIM_ADC3R_AD3TBRST_Pos (19U)
  21390. #define HRTIM_ADC3R_AD3TBRST_Msk (0x1U << HRTIM_ADC3R_AD3TBRST_Pos) /*!< 0x00080000 */
  21391. #define HRTIM_ADC3R_AD3TBRST HRTIM_ADC3R_AD3TBRST_Msk /*!< ADC Trigger 3 on Timer B reset */
  21392. #define HRTIM_ADC3R_AD3TCC2_Pos (20U)
  21393. #define HRTIM_ADC3R_AD3TCC2_Msk (0x1U << HRTIM_ADC3R_AD3TCC2_Pos) /*!< 0x00100000 */
  21394. #define HRTIM_ADC3R_AD3TCC2 HRTIM_ADC3R_AD3TCC2_Msk /*!< ADC Trigger 3 on Timer C compare 2 */
  21395. #define HRTIM_ADC3R_AD3TCC3_Pos (21U)
  21396. #define HRTIM_ADC3R_AD3TCC3_Msk (0x1U << HRTIM_ADC3R_AD3TCC3_Pos) /*!< 0x00200000 */
  21397. #define HRTIM_ADC3R_AD3TCC3 HRTIM_ADC3R_AD3TCC3_Msk /*!< ADC Trigger 3 on Timer C compare 3 */
  21398. #define HRTIM_ADC3R_AD3TCC4_Pos (22U)
  21399. #define HRTIM_ADC3R_AD3TCC4_Msk (0x1U << HRTIM_ADC3R_AD3TCC4_Pos) /*!< 0x00400000 */
  21400. #define HRTIM_ADC3R_AD3TCC4 HRTIM_ADC3R_AD3TCC4_Msk /*!< ADC Trigger 3 on Timer C compare 4 */
  21401. #define HRTIM_ADC3R_AD3TCPER_Pos (23U)
  21402. #define HRTIM_ADC3R_AD3TCPER_Msk (0x1U << HRTIM_ADC3R_AD3TCPER_Pos) /*!< 0x00800000 */
  21403. #define HRTIM_ADC3R_AD3TCPER HRTIM_ADC3R_AD3TCPER_Msk /*!< ADC Trigger 3 on Timer C period */
  21404. #define HRTIM_ADC3R_AD3TDC2_Pos (24U)
  21405. #define HRTIM_ADC3R_AD3TDC2_Msk (0x1U << HRTIM_ADC3R_AD3TDC2_Pos) /*!< 0x01000000 */
  21406. #define HRTIM_ADC3R_AD3TDC2 HRTIM_ADC3R_AD3TDC2_Msk /*!< ADC Trigger 3 on Timer D compare 2 */
  21407. #define HRTIM_ADC3R_AD3TDC3_Pos (25U)
  21408. #define HRTIM_ADC3R_AD3TDC3_Msk (0x1U << HRTIM_ADC3R_AD3TDC3_Pos) /*!< 0x02000000 */
  21409. #define HRTIM_ADC3R_AD3TDC3 HRTIM_ADC3R_AD3TDC3_Msk /*!< ADC Trigger 3 on Timer D compare 3 */
  21410. #define HRTIM_ADC3R_AD3TDC4_Pos (26U)
  21411. #define HRTIM_ADC3R_AD3TDC4_Msk (0x1U << HRTIM_ADC3R_AD3TDC4_Pos) /*!< 0x04000000 */
  21412. #define HRTIM_ADC3R_AD3TDC4 HRTIM_ADC3R_AD3TDC4_Msk /*!< ADC Trigger 3 on Timer D compare 4 */
  21413. #define HRTIM_ADC3R_AD3TDPER_Pos (27U)
  21414. #define HRTIM_ADC3R_AD3TDPER_Msk (0x1U << HRTIM_ADC3R_AD3TDPER_Pos) /*!< 0x08000000 */
  21415. #define HRTIM_ADC3R_AD3TDPER HRTIM_ADC3R_AD3TDPER_Msk /*!< ADC Trigger 3 on Timer D period */
  21416. #define HRTIM_ADC3R_AD3TEC2_Pos (28U)
  21417. #define HRTIM_ADC3R_AD3TEC2_Msk (0x1U << HRTIM_ADC3R_AD3TEC2_Pos) /*!< 0x10000000 */
  21418. #define HRTIM_ADC3R_AD3TEC2 HRTIM_ADC3R_AD3TEC2_Msk /*!< ADC Trigger 3 on Timer E compare 2 */
  21419. #define HRTIM_ADC3R_AD3TEC3_Pos (29U)
  21420. #define HRTIM_ADC3R_AD3TEC3_Msk (0x1U << HRTIM_ADC3R_AD3TEC3_Pos) /*!< 0x20000000 */
  21421. #define HRTIM_ADC3R_AD3TEC3 HRTIM_ADC3R_AD3TEC3_Msk /*!< ADC Trigger 3 on Timer E compare 3 */
  21422. #define HRTIM_ADC3R_AD3TEC4_Pos (30U)
  21423. #define HRTIM_ADC3R_AD3TEC4_Msk (0x1U << HRTIM_ADC3R_AD3TEC4_Pos) /*!< 0x40000000 */
  21424. #define HRTIM_ADC3R_AD3TEC4 HRTIM_ADC3R_AD3TEC4_Msk /*!< ADC Trigger 3 on Timer E compare 4 */
  21425. #define HRTIM_ADC3R_AD3TEPER_Pos (31U)
  21426. #define HRTIM_ADC3R_AD3TEPER_Msk (0x1U << HRTIM_ADC3R_AD3TEPER_Pos) /*!< 0x80000000 */
  21427. #define HRTIM_ADC3R_AD3TEPER HRTIM_ADC3R_AD3TEPER_Msk /*!< ADC Trigger 3 on Timer E period */
  21428. /******************* Bit definition for HRTIM_ADC4R register ****************/
  21429. #define HRTIM_ADC4R_AD4MC1_Pos (0U)
  21430. #define HRTIM_ADC4R_AD4MC1_Msk (0x1U << HRTIM_ADC4R_AD4MC1_Pos) /*!< 0x00000001 */
  21431. #define HRTIM_ADC4R_AD4MC1 HRTIM_ADC4R_AD4MC1_Msk /*!< ADC Trigger 4 on master compare 1 */
  21432. #define HRTIM_ADC4R_AD4MC2_Pos (1U)
  21433. #define HRTIM_ADC4R_AD4MC2_Msk (0x1U << HRTIM_ADC4R_AD4MC2_Pos) /*!< 0x00000002 */
  21434. #define HRTIM_ADC4R_AD4MC2 HRTIM_ADC4R_AD4MC2_Msk /*!< ADC Trigger 4 on master compare 2 */
  21435. #define HRTIM_ADC4R_AD4MC3_Pos (2U)
  21436. #define HRTIM_ADC4R_AD4MC3_Msk (0x1U << HRTIM_ADC4R_AD4MC3_Pos) /*!< 0x00000004 */
  21437. #define HRTIM_ADC4R_AD4MC3 HRTIM_ADC4R_AD4MC3_Msk /*!< ADC Trigger 4 on master compare 3 */
  21438. #define HRTIM_ADC4R_AD4MC4_Pos (3U)
  21439. #define HRTIM_ADC4R_AD4MC4_Msk (0x1U << HRTIM_ADC4R_AD4MC4_Pos) /*!< 0x00000008 */
  21440. #define HRTIM_ADC4R_AD4MC4 HRTIM_ADC4R_AD4MC4_Msk /*!< ADC Trigger 4 on master compare 4 */
  21441. #define HRTIM_ADC4R_AD4MPER_Pos (4U)
  21442. #define HRTIM_ADC4R_AD4MPER_Msk (0x1U << HRTIM_ADC4R_AD4MPER_Pos) /*!< 0x00000010 */
  21443. #define HRTIM_ADC4R_AD4MPER HRTIM_ADC4R_AD4MPER_Msk /*!< ADC Trigger 4 on master period */
  21444. #define HRTIM_ADC4R_AD4EEV6_Pos (5U)
  21445. #define HRTIM_ADC4R_AD4EEV6_Msk (0x1U << HRTIM_ADC4R_AD4EEV6_Pos) /*!< 0x00000020 */
  21446. #define HRTIM_ADC4R_AD4EEV6 HRTIM_ADC4R_AD4EEV6_Msk /*!< ADC Trigger 4 on external event 6 */
  21447. #define HRTIM_ADC4R_AD4EEV7_Pos (6U)
  21448. #define HRTIM_ADC4R_AD4EEV7_Msk (0x1U << HRTIM_ADC4R_AD4EEV7_Pos) /*!< 0x00000040 */
  21449. #define HRTIM_ADC4R_AD4EEV7 HRTIM_ADC4R_AD4EEV7_Msk /*!< ADC Trigger 4 on external event 7 */
  21450. #define HRTIM_ADC4R_AD4EEV8_Pos (7U)
  21451. #define HRTIM_ADC4R_AD4EEV8_Msk (0x1U << HRTIM_ADC4R_AD4EEV8_Pos) /*!< 0x00000080 */
  21452. #define HRTIM_ADC4R_AD4EEV8 HRTIM_ADC4R_AD4EEV8_Msk /*!< ADC Trigger 4 on external event 8 */
  21453. #define HRTIM_ADC4R_AD4EEV9_Pos (8U)
  21454. #define HRTIM_ADC4R_AD4EEV9_Msk (0x1U << HRTIM_ADC4R_AD4EEV9_Pos) /*!< 0x00000100 */
  21455. #define HRTIM_ADC4R_AD4EEV9 HRTIM_ADC4R_AD4EEV9_Msk /*!< ADC Trigger 4 on external event 9 */
  21456. #define HRTIM_ADC4R_AD4EEV10_Pos (9U)
  21457. #define HRTIM_ADC4R_AD4EEV10_Msk (0x1U << HRTIM_ADC4R_AD4EEV10_Pos) /*!< 0x00000200 */
  21458. #define HRTIM_ADC4R_AD4EEV10 HRTIM_ADC4R_AD4EEV10_Msk /*!< ADC Trigger 4 on external event 10 */
  21459. #define HRTIM_ADC4R_AD4TAC2_Pos (10U)
  21460. #define HRTIM_ADC4R_AD4TAC2_Msk (0x1U << HRTIM_ADC4R_AD4TAC2_Pos) /*!< 0x00000400 */
  21461. #define HRTIM_ADC4R_AD4TAC2 HRTIM_ADC4R_AD4TAC2_Msk /*!< ADC Trigger 4 on Timer A compare 2 */
  21462. #define HRTIM_ADC4R_AD4TAC3_Pos (11U)
  21463. #define HRTIM_ADC4R_AD4TAC3_Msk (0x1U << HRTIM_ADC4R_AD4TAC3_Pos) /*!< 0x00000800 */
  21464. #define HRTIM_ADC4R_AD4TAC3 HRTIM_ADC4R_AD4TAC3_Msk /*!< ADC Trigger 4 on Timer A compare 3 */
  21465. #define HRTIM_ADC4R_AD4TAC4_Pos (12U)
  21466. #define HRTIM_ADC4R_AD4TAC4_Msk (0x1U << HRTIM_ADC4R_AD4TAC4_Pos) /*!< 0x00001000 */
  21467. #define HRTIM_ADC4R_AD4TAC4 HRTIM_ADC4R_AD4TAC4_Msk /*!< ADC Trigger 4 on Timer A compare 4*/
  21468. #define HRTIM_ADC4R_AD4TAPER_Pos (13U)
  21469. #define HRTIM_ADC4R_AD4TAPER_Msk (0x1U << HRTIM_ADC4R_AD4TAPER_Pos) /*!< 0x00002000 */
  21470. #define HRTIM_ADC4R_AD4TAPER HRTIM_ADC4R_AD4TAPER_Msk /*!< ADC Trigger 4 on Timer A period */
  21471. #define HRTIM_ADC4R_AD4TBC2_Pos (14U)
  21472. #define HRTIM_ADC4R_AD4TBC2_Msk (0x1U << HRTIM_ADC4R_AD4TBC2_Pos) /*!< 0x00004000 */
  21473. #define HRTIM_ADC4R_AD4TBC2 HRTIM_ADC4R_AD4TBC2_Msk /*!< ADC Trigger 4 on Timer B compare 2 */
  21474. #define HRTIM_ADC4R_AD4TBC3_Pos (15U)
  21475. #define HRTIM_ADC4R_AD4TBC3_Msk (0x1U << HRTIM_ADC4R_AD4TBC3_Pos) /*!< 0x00008000 */
  21476. #define HRTIM_ADC4R_AD4TBC3 HRTIM_ADC4R_AD4TBC3_Msk /*!< ADC Trigger 4 on Timer B compare 3 */
  21477. #define HRTIM_ADC4R_AD4TBC4_Pos (16U)
  21478. #define HRTIM_ADC4R_AD4TBC4_Msk (0x1U << HRTIM_ADC4R_AD4TBC4_Pos) /*!< 0x00010000 */
  21479. #define HRTIM_ADC4R_AD4TBC4 HRTIM_ADC4R_AD4TBC4_Msk /*!< ADC Trigger 4 on Timer B compare 4 */
  21480. #define HRTIM_ADC4R_AD4TBPER_Pos (17U)
  21481. #define HRTIM_ADC4R_AD4TBPER_Msk (0x1U << HRTIM_ADC4R_AD4TBPER_Pos) /*!< 0x00020000 */
  21482. #define HRTIM_ADC4R_AD4TBPER HRTIM_ADC4R_AD4TBPER_Msk /*!< ADC Trigger 4 on Timer B period */
  21483. #define HRTIM_ADC4R_AD4TCC2_Pos (18U)
  21484. #define HRTIM_ADC4R_AD4TCC2_Msk (0x1U << HRTIM_ADC4R_AD4TCC2_Pos) /*!< 0x00040000 */
  21485. #define HRTIM_ADC4R_AD4TCC2 HRTIM_ADC4R_AD4TCC2_Msk /*!< ADC Trigger 4 on Timer C compare 2 */
  21486. #define HRTIM_ADC4R_AD4TCC3_Pos (19U)
  21487. #define HRTIM_ADC4R_AD4TCC3_Msk (0x1U << HRTIM_ADC4R_AD4TCC3_Pos) /*!< 0x00080000 */
  21488. #define HRTIM_ADC4R_AD4TCC3 HRTIM_ADC4R_AD4TCC3_Msk /*!< ADC Trigger 4 on Timer C compare 3 */
  21489. #define HRTIM_ADC4R_AD4TCC4_Pos (20U)
  21490. #define HRTIM_ADC4R_AD4TCC4_Msk (0x1U << HRTIM_ADC4R_AD4TCC4_Pos) /*!< 0x00100000 */
  21491. #define HRTIM_ADC4R_AD4TCC4 HRTIM_ADC4R_AD4TCC4_Msk /*!< ADC Trigger 4 on Timer C compare 4 */
  21492. #define HRTIM_ADC4R_AD4TCPER_Pos (21U)
  21493. #define HRTIM_ADC4R_AD4TCPER_Msk (0x1U << HRTIM_ADC4R_AD4TCPER_Pos) /*!< 0x00200000 */
  21494. #define HRTIM_ADC4R_AD4TCPER HRTIM_ADC4R_AD4TCPER_Msk /*!< ADC Trigger 4 on Timer C period */
  21495. #define HRTIM_ADC4R_AD4TCRST_Pos (22U)
  21496. #define HRTIM_ADC4R_AD4TCRST_Msk (0x1U << HRTIM_ADC4R_AD4TCRST_Pos) /*!< 0x00400000 */
  21497. #define HRTIM_ADC4R_AD4TCRST HRTIM_ADC4R_AD4TCRST_Msk /*!< ADC Trigger 4 on Timer C reset */
  21498. #define HRTIM_ADC4R_AD4TDC2_Pos (23U)
  21499. #define HRTIM_ADC4R_AD4TDC2_Msk (0x1U << HRTIM_ADC4R_AD4TDC2_Pos) /*!< 0x00800000 */
  21500. #define HRTIM_ADC4R_AD4TDC2 HRTIM_ADC4R_AD4TDC2_Msk /*!< ADC Trigger 4 on Timer D compare 2 */
  21501. #define HRTIM_ADC4R_AD4TDC3_Pos (24U)
  21502. #define HRTIM_ADC4R_AD4TDC3_Msk (0x1U << HRTIM_ADC4R_AD4TDC3_Pos) /*!< 0x01000000 */
  21503. #define HRTIM_ADC4R_AD4TDC3 HRTIM_ADC4R_AD4TDC3_Msk /*!< ADC Trigger 4 on Timer D compare 3 */
  21504. #define HRTIM_ADC4R_AD4TDC4_Pos (25U)
  21505. #define HRTIM_ADC4R_AD4TDC4_Msk (0x1U << HRTIM_ADC4R_AD4TDC4_Pos) /*!< 0x02000000 */
  21506. #define HRTIM_ADC4R_AD4TDC4 HRTIM_ADC4R_AD4TDC4_Msk /*!< ADC Trigger 4 on Timer D compare 4*/
  21507. #define HRTIM_ADC4R_AD4TDPER_Pos (26U)
  21508. #define HRTIM_ADC4R_AD4TDPER_Msk (0x1U << HRTIM_ADC4R_AD4TDPER_Pos) /*!< 0x04000000 */
  21509. #define HRTIM_ADC4R_AD4TDPER HRTIM_ADC4R_AD4TDPER_Msk /*!< ADC Trigger 4 on Timer D period */
  21510. #define HRTIM_ADC4R_AD4TDRST_Pos (27U)
  21511. #define HRTIM_ADC4R_AD4TDRST_Msk (0x1U << HRTIM_ADC4R_AD4TDRST_Pos) /*!< 0x08000000 */
  21512. #define HRTIM_ADC4R_AD4TDRST HRTIM_ADC4R_AD4TDRST_Msk /*!< ADC Trigger 4 on Timer D reset */
  21513. #define HRTIM_ADC4R_AD4TEC2_Pos (28U)
  21514. #define HRTIM_ADC4R_AD4TEC2_Msk (0x1U << HRTIM_ADC4R_AD4TEC2_Pos) /*!< 0x10000000 */
  21515. #define HRTIM_ADC4R_AD4TEC2 HRTIM_ADC4R_AD4TEC2_Msk /*!< ADC Trigger 4 on Timer E compare 2 */
  21516. #define HRTIM_ADC4R_AD4TEC3_Pos (29U)
  21517. #define HRTIM_ADC4R_AD4TEC3_Msk (0x1U << HRTIM_ADC4R_AD4TEC3_Pos) /*!< 0x20000000 */
  21518. #define HRTIM_ADC4R_AD4TEC3 HRTIM_ADC4R_AD4TEC3_Msk /*!< ADC Trigger 4 on Timer E compare 3 */
  21519. #define HRTIM_ADC4R_AD4TEC4_Pos (30U)
  21520. #define HRTIM_ADC4R_AD4TEC4_Msk (0x1U << HRTIM_ADC4R_AD4TEC4_Pos) /*!< 0x40000000 */
  21521. #define HRTIM_ADC4R_AD4TEC4 HRTIM_ADC4R_AD4TEC4_Msk /*!< ADC Trigger 4 on Timer E compare 4 */
  21522. #define HRTIM_ADC4R_AD4TERST_Pos (31U)
  21523. #define HRTIM_ADC4R_AD4TERST_Msk (0x1U << HRTIM_ADC4R_AD4TERST_Pos) /*!< 0x80000000 */
  21524. #define HRTIM_ADC4R_AD4TERST HRTIM_ADC4R_AD4TERST_Msk /*!< ADC Trigger 4 on Timer E reset */
  21525. /******************* Bit definition for HRTIM_FLTINR1 register ***************/
  21526. #define HRTIM_FLTINR1_FLT1E_Pos (0U)
  21527. #define HRTIM_FLTINR1_FLT1E_Msk (0x1U << HRTIM_FLTINR1_FLT1E_Pos) /*!< 0x00000001 */
  21528. #define HRTIM_FLTINR1_FLT1E HRTIM_FLTINR1_FLT1E_Msk /*!< Fault 1 enable */
  21529. #define HRTIM_FLTINR1_FLT1P_Pos (1U)
  21530. #define HRTIM_FLTINR1_FLT1P_Msk (0x1U << HRTIM_FLTINR1_FLT1P_Pos) /*!< 0x00000002 */
  21531. #define HRTIM_FLTINR1_FLT1P HRTIM_FLTINR1_FLT1P_Msk /*!< Fault 1 polarity */
  21532. #define HRTIM_FLTINR1_FLT1SRC_Pos (2U)
  21533. #define HRTIM_FLTINR1_FLT1SRC_Msk (0x1U << HRTIM_FLTINR1_FLT1SRC_Pos) /*!< 0x00000004 */
  21534. #define HRTIM_FLTINR1_FLT1SRC HRTIM_FLTINR1_FLT1SRC_Msk /*!< Fault 1 source */
  21535. #define HRTIM_FLTINR1_FLT1F_Pos (3U)
  21536. #define HRTIM_FLTINR1_FLT1F_Msk (0xFU << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000078 */
  21537. #define HRTIM_FLTINR1_FLT1F HRTIM_FLTINR1_FLT1F_Msk /*!< Fault 1 filter */
  21538. #define HRTIM_FLTINR1_FLT1F_0 (0x1U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000008 */
  21539. #define HRTIM_FLTINR1_FLT1F_1 (0x2U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000010 */
  21540. #define HRTIM_FLTINR1_FLT1F_2 (0x4U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000020 */
  21541. #define HRTIM_FLTINR1_FLT1F_3 (0x8U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000040 */
  21542. #define HRTIM_FLTINR1_FLT1LCK_Pos (7U)
  21543. #define HRTIM_FLTINR1_FLT1LCK_Msk (0x1U << HRTIM_FLTINR1_FLT1LCK_Pos) /*!< 0x00000080 */
  21544. #define HRTIM_FLTINR1_FLT1LCK HRTIM_FLTINR1_FLT1LCK_Msk /*!< Fault 1 lock */
  21545. #define HRTIM_FLTINR1_FLT2E_Pos (8U)
  21546. #define HRTIM_FLTINR1_FLT2E_Msk (0x1U << HRTIM_FLTINR1_FLT2E_Pos) /*!< 0x00000100 */
  21547. #define HRTIM_FLTINR1_FLT2E HRTIM_FLTINR1_FLT2E_Msk /*!< Fault 2 enable */
  21548. #define HRTIM_FLTINR1_FLT2P_Pos (9U)
  21549. #define HRTIM_FLTINR1_FLT2P_Msk (0x1U << HRTIM_FLTINR1_FLT2P_Pos) /*!< 0x00000200 */
  21550. #define HRTIM_FLTINR1_FLT2P HRTIM_FLTINR1_FLT2P_Msk /*!< Fault 2 polarity */
  21551. #define HRTIM_FLTINR1_FLT2SRC_Pos (10U)
  21552. #define HRTIM_FLTINR1_FLT2SRC_Msk (0x1U << HRTIM_FLTINR1_FLT2SRC_Pos) /*!< 0x00000400 */
  21553. #define HRTIM_FLTINR1_FLT2SRC HRTIM_FLTINR1_FLT2SRC_Msk /*!< Fault 2 source */
  21554. #define HRTIM_FLTINR1_FLT2F_Pos (11U)
  21555. #define HRTIM_FLTINR1_FLT2F_Msk (0xFU << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00007800 */
  21556. #define HRTIM_FLTINR1_FLT2F HRTIM_FLTINR1_FLT2F_Msk /*!< Fault 2 filter */
  21557. #define HRTIM_FLTINR1_FLT2F_0 (0x1U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00000800 */
  21558. #define HRTIM_FLTINR1_FLT2F_1 (0x2U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00001000 */
  21559. #define HRTIM_FLTINR1_FLT2F_2 (0x4U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00002000 */
  21560. #define HRTIM_FLTINR1_FLT2F_3 (0x8U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00004000 */
  21561. #define HRTIM_FLTINR1_FLT2LCK_Pos (15U)
  21562. #define HRTIM_FLTINR1_FLT2LCK_Msk (0x1U << HRTIM_FLTINR1_FLT2LCK_Pos) /*!< 0x00008000 */
  21563. #define HRTIM_FLTINR1_FLT2LCK HRTIM_FLTINR1_FLT2LCK_Msk /*!< Fault 2 lock */
  21564. #define HRTIM_FLTINR1_FLT3E_Pos (16U)
  21565. #define HRTIM_FLTINR1_FLT3E_Msk (0x1U << HRTIM_FLTINR1_FLT3E_Pos) /*!< 0x00010000 */
  21566. #define HRTIM_FLTINR1_FLT3E HRTIM_FLTINR1_FLT3E_Msk /*!< Fault 3 enable */
  21567. #define HRTIM_FLTINR1_FLT3P_Pos (17U)
  21568. #define HRTIM_FLTINR1_FLT3P_Msk (0x1U << HRTIM_FLTINR1_FLT3P_Pos) /*!< 0x00020000 */
  21569. #define HRTIM_FLTINR1_FLT3P HRTIM_FLTINR1_FLT3P_Msk /*!< Fault 3 polarity */
  21570. #define HRTIM_FLTINR1_FLT3SRC_Pos (18U)
  21571. #define HRTIM_FLTINR1_FLT3SRC_Msk (0x1U << HRTIM_FLTINR1_FLT3SRC_Pos) /*!< 0x00040000 */
  21572. #define HRTIM_FLTINR1_FLT3SRC HRTIM_FLTINR1_FLT3SRC_Msk /*!< Fault 3 source */
  21573. #define HRTIM_FLTINR1_FLT3F_Pos (19U)
  21574. #define HRTIM_FLTINR1_FLT3F_Msk (0xFU << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00780000 */
  21575. #define HRTIM_FLTINR1_FLT3F HRTIM_FLTINR1_FLT3F_Msk /*!< Fault 3 filter */
  21576. #define HRTIM_FLTINR1_FLT3F_0 (0x1U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00080000 */
  21577. #define HRTIM_FLTINR1_FLT3F_1 (0x2U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00100000 */
  21578. #define HRTIM_FLTINR1_FLT3F_2 (0x4U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00200000 */
  21579. #define HRTIM_FLTINR1_FLT3F_3 (0x8U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00400000 */
  21580. #define HRTIM_FLTINR1_FLT3LCK_Pos (23U)
  21581. #define HRTIM_FLTINR1_FLT3LCK_Msk (0x1U << HRTIM_FLTINR1_FLT3LCK_Pos) /*!< 0x00800000 */
  21582. #define HRTIM_FLTINR1_FLT3LCK HRTIM_FLTINR1_FLT3LCK_Msk /*!< Fault 3 lock */
  21583. #define HRTIM_FLTINR1_FLT4E_Pos (24U)
  21584. #define HRTIM_FLTINR1_FLT4E_Msk (0x1U << HRTIM_FLTINR1_FLT4E_Pos) /*!< 0x01000000 */
  21585. #define HRTIM_FLTINR1_FLT4E HRTIM_FLTINR1_FLT4E_Msk /*!< Fault 4 enable */
  21586. #define HRTIM_FLTINR1_FLT4P_Pos (25U)
  21587. #define HRTIM_FLTINR1_FLT4P_Msk (0x1U << HRTIM_FLTINR1_FLT4P_Pos) /*!< 0x02000000 */
  21588. #define HRTIM_FLTINR1_FLT4P HRTIM_FLTINR1_FLT4P_Msk /*!< Fault 4 polarity */
  21589. #define HRTIM_FLTINR1_FLT4SRC_Pos (26U)
  21590. #define HRTIM_FLTINR1_FLT4SRC_Msk (0x1U << HRTIM_FLTINR1_FLT4SRC_Pos) /*!< 0x04000000 */
  21591. #define HRTIM_FLTINR1_FLT4SRC HRTIM_FLTINR1_FLT4SRC_Msk /*!< Fault 4 source */
  21592. #define HRTIM_FLTINR1_FLT4F_Pos (27U)
  21593. #define HRTIM_FLTINR1_FLT4F_Msk (0xFU << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x78000000 */
  21594. #define HRTIM_FLTINR1_FLT4F HRTIM_FLTINR1_FLT4F_Msk /*!< Fault 4 filter */
  21595. #define HRTIM_FLTINR1_FLT4F_0 (0x1U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x08000000 */
  21596. #define HRTIM_FLTINR1_FLT4F_1 (0x2U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x10000000 */
  21597. #define HRTIM_FLTINR1_FLT4F_2 (0x4U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x20000000 */
  21598. #define HRTIM_FLTINR1_FLT4F_3 (0x8U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x40000000 */
  21599. #define HRTIM_FLTINR1_FLT4LCK_Pos (31U)
  21600. #define HRTIM_FLTINR1_FLT4LCK_Msk (0x1U << HRTIM_FLTINR1_FLT4LCK_Pos) /*!< 0x80000000 */
  21601. #define HRTIM_FLTINR1_FLT4LCK HRTIM_FLTINR1_FLT4LCK_Msk /*!< Fault 4 lock */
  21602. /******************* Bit definition for HRTIM_FLTINR2 register ***************/
  21603. #define HRTIM_FLTINR2_FLT5E_Pos (0U)
  21604. #define HRTIM_FLTINR2_FLT5E_Msk (0x1U << HRTIM_FLTINR2_FLT5E_Pos) /*!< 0x00000001 */
  21605. #define HRTIM_FLTINR2_FLT5E HRTIM_FLTINR2_FLT5E_Msk /*!< Fault 5 enable */
  21606. #define HRTIM_FLTINR2_FLT5P_Pos (1U)
  21607. #define HRTIM_FLTINR2_FLT5P_Msk (0x1U << HRTIM_FLTINR2_FLT5P_Pos) /*!< 0x00000002 */
  21608. #define HRTIM_FLTINR2_FLT5P HRTIM_FLTINR2_FLT5P_Msk /*!< Fault 5 polarity */
  21609. #define HRTIM_FLTINR2_FLT5SRC_Pos (2U)
  21610. #define HRTIM_FLTINR2_FLT5SRC_Msk (0x1U << HRTIM_FLTINR2_FLT5SRC_Pos) /*!< 0x00000004 */
  21611. #define HRTIM_FLTINR2_FLT5SRC HRTIM_FLTINR2_FLT5SRC_Msk /*!< Fault 5 source */
  21612. #define HRTIM_FLTINR2_FLT5F_Pos (3U)
  21613. #define HRTIM_FLTINR2_FLT5F_Msk (0xFU << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000078 */
  21614. #define HRTIM_FLTINR2_FLT5F HRTIM_FLTINR2_FLT5F_Msk /*!< Fault 5 filter */
  21615. #define HRTIM_FLTINR2_FLT5F_0 (0x1U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000008 */
  21616. #define HRTIM_FLTINR2_FLT5F_1 (0x2U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000010 */
  21617. #define HRTIM_FLTINR2_FLT5F_2 (0x4U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000020 */
  21618. #define HRTIM_FLTINR2_FLT5F_3 (0x8U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000040 */
  21619. #define HRTIM_FLTINR2_FLT5LCK_Pos (7U)
  21620. #define HRTIM_FLTINR2_FLT5LCK_Msk (0x1U << HRTIM_FLTINR2_FLT5LCK_Pos) /*!< 0x00000080 */
  21621. #define HRTIM_FLTINR2_FLT5LCK HRTIM_FLTINR2_FLT5LCK_Msk /*!< Fault 5 lock */
  21622. #define HRTIM_FLTINR2_FLTSD_Pos (24U)
  21623. #define HRTIM_FLTINR2_FLTSD_Msk (0x3U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x03000000 */
  21624. #define HRTIM_FLTINR2_FLTSD HRTIM_FLTINR2_FLTSD_Msk /*!< Fault sampling clock division */
  21625. #define HRTIM_FLTINR2_FLTSD_0 (0x1U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x01000000 */
  21626. #define HRTIM_FLTINR2_FLTSD_1 (0x2U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x02000000 */
  21627. /******************* Bit definition for HRTIM_BDMUPR register ***************/
  21628. #define HRTIM_BDMUPR_MCR_Pos (0U)
  21629. #define HRTIM_BDMUPR_MCR_Msk (0x1U << HRTIM_BDMUPR_MCR_Pos) /*!< 0x00000001 */
  21630. #define HRTIM_BDMUPR_MCR HRTIM_BDMUPR_MCR_Msk /*!< MCR register update enable */
  21631. #define HRTIM_BDMUPR_MICR_Pos (1U)
  21632. #define HRTIM_BDMUPR_MICR_Msk (0x1U << HRTIM_BDMUPR_MICR_Pos) /*!< 0x00000002 */
  21633. #define HRTIM_BDMUPR_MICR HRTIM_BDMUPR_MICR_Msk /*!< MICR register update enable */
  21634. #define HRTIM_BDMUPR_MDIER_Pos (2U)
  21635. #define HRTIM_BDMUPR_MDIER_Msk (0x1U << HRTIM_BDMUPR_MDIER_Pos) /*!< 0x00000004 */
  21636. #define HRTIM_BDMUPR_MDIER HRTIM_BDMUPR_MDIER_Msk /*!< MDIER register update enable */
  21637. #define HRTIM_BDMUPR_MCNT_Pos (3U)
  21638. #define HRTIM_BDMUPR_MCNT_Msk (0x1U << HRTIM_BDMUPR_MCNT_Pos) /*!< 0x00000008 */
  21639. #define HRTIM_BDMUPR_MCNT HRTIM_BDMUPR_MCNT_Msk /*!< MCNT register update enable */
  21640. #define HRTIM_BDMUPR_MPER_Pos (4U)
  21641. #define HRTIM_BDMUPR_MPER_Msk (0x1U << HRTIM_BDMUPR_MPER_Pos) /*!< 0x00000010 */
  21642. #define HRTIM_BDMUPR_MPER HRTIM_BDMUPR_MPER_Msk /*!< MPER register update enable */
  21643. #define HRTIM_BDMUPR_MREP_Pos (5U)
  21644. #define HRTIM_BDMUPR_MREP_Msk (0x1U << HRTIM_BDMUPR_MREP_Pos) /*!< 0x00000020 */
  21645. #define HRTIM_BDMUPR_MREP HRTIM_BDMUPR_MREP_Msk /*!< MREP register update enable */
  21646. #define HRTIM_BDMUPR_MCMP1_Pos (6U)
  21647. #define HRTIM_BDMUPR_MCMP1_Msk (0x1U << HRTIM_BDMUPR_MCMP1_Pos) /*!< 0x00000040 */
  21648. #define HRTIM_BDMUPR_MCMP1 HRTIM_BDMUPR_MCMP1_Msk /*!< MCMP1 register update enable */
  21649. #define HRTIM_BDMUPR_MCMP2_Pos (7U)
  21650. #define HRTIM_BDMUPR_MCMP2_Msk (0x1U << HRTIM_BDMUPR_MCMP2_Pos) /*!< 0x00000080 */
  21651. #define HRTIM_BDMUPR_MCMP2 HRTIM_BDMUPR_MCMP2_Msk /*!< MCMP2 register update enable */
  21652. #define HRTIM_BDMUPR_MCMP3_Pos (8U)
  21653. #define HRTIM_BDMUPR_MCMP3_Msk (0x1U << HRTIM_BDMUPR_MCMP3_Pos) /*!< 0x00000100 */
  21654. #define HRTIM_BDMUPR_MCMP3 HRTIM_BDMUPR_MCMP3_Msk /*!< MCMP3 register update enable */
  21655. #define HRTIM_BDMUPR_MCMP4_Pos (9U)
  21656. #define HRTIM_BDMUPR_MCMP4_Msk (0x1U << HRTIM_BDMUPR_MCMP4_Pos) /*!< 0x00000200 */
  21657. #define HRTIM_BDMUPR_MCMP4 HRTIM_BDMUPR_MCMP4_Msk /*!< MPCMP4 register update enable */
  21658. /******************* Bit definition for HRTIM_BDTUPR register ***************/
  21659. #define HRTIM_BDTUPR_TIMCR_Pos (0U)
  21660. #define HRTIM_BDTUPR_TIMCR_Msk (0x1U << HRTIM_BDTUPR_TIMCR_Pos) /*!< 0x00000001 */
  21661. #define HRTIM_BDTUPR_TIMCR HRTIM_BDTUPR_TIMCR_Msk /*!< TIMCR register update enable */
  21662. #define HRTIM_BDTUPR_TIMICR_Pos (1U)
  21663. #define HRTIM_BDTUPR_TIMICR_Msk (0x1U << HRTIM_BDTUPR_TIMICR_Pos) /*!< 0x00000002 */
  21664. #define HRTIM_BDTUPR_TIMICR HRTIM_BDTUPR_TIMICR_Msk /*!< TIMICR register update enable */
  21665. #define HRTIM_BDTUPR_TIMDIER_Pos (2U)
  21666. #define HRTIM_BDTUPR_TIMDIER_Msk (0x1U << HRTIM_BDTUPR_TIMDIER_Pos) /*!< 0x00000004 */
  21667. #define HRTIM_BDTUPR_TIMDIER HRTIM_BDTUPR_TIMDIER_Msk /*!< TIMDIER register update enable */
  21668. #define HRTIM_BDTUPR_TIMCNT_Pos (3U)
  21669. #define HRTIM_BDTUPR_TIMCNT_Msk (0x1U << HRTIM_BDTUPR_TIMCNT_Pos) /*!< 0x00000008 */
  21670. #define HRTIM_BDTUPR_TIMCNT HRTIM_BDTUPR_TIMCNT_Msk /*!< TIMCNT register update enable */
  21671. #define HRTIM_BDTUPR_TIMPER_Pos (4U)
  21672. #define HRTIM_BDTUPR_TIMPER_Msk (0x1U << HRTIM_BDTUPR_TIMPER_Pos) /*!< 0x00000010 */
  21673. #define HRTIM_BDTUPR_TIMPER HRTIM_BDTUPR_TIMPER_Msk /*!< TIMPER register update enable */
  21674. #define HRTIM_BDTUPR_TIMREP_Pos (5U)
  21675. #define HRTIM_BDTUPR_TIMREP_Msk (0x1U << HRTIM_BDTUPR_TIMREP_Pos) /*!< 0x00000020 */
  21676. #define HRTIM_BDTUPR_TIMREP HRTIM_BDTUPR_TIMREP_Msk /*!< TIMREP register update enable */
  21677. #define HRTIM_BDTUPR_TIMCMP1_Pos (6U)
  21678. #define HRTIM_BDTUPR_TIMCMP1_Msk (0x1U << HRTIM_BDTUPR_TIMCMP1_Pos) /*!< 0x00000040 */
  21679. #define HRTIM_BDTUPR_TIMCMP1 HRTIM_BDTUPR_TIMCMP1_Msk /*!< TIMCMP1 register update enable */
  21680. #define HRTIM_BDTUPR_TIMCMP2_Pos (7U)
  21681. #define HRTIM_BDTUPR_TIMCMP2_Msk (0x1U << HRTIM_BDTUPR_TIMCMP2_Pos) /*!< 0x00000080 */
  21682. #define HRTIM_BDTUPR_TIMCMP2 HRTIM_BDTUPR_TIMCMP2_Msk /*!< TIMCMP2 register update enable */
  21683. #define HRTIM_BDTUPR_TIMCMP3_Pos (8U)
  21684. #define HRTIM_BDTUPR_TIMCMP3_Msk (0x1U << HRTIM_BDTUPR_TIMCMP3_Pos) /*!< 0x00000100 */
  21685. #define HRTIM_BDTUPR_TIMCMP3 HRTIM_BDTUPR_TIMCMP3_Msk /*!< TIMCMP3 register update enable */
  21686. #define HRTIM_BDTUPR_TIMCMP4_Pos (9U)
  21687. #define HRTIM_BDTUPR_TIMCMP4_Msk (0x1U << HRTIM_BDTUPR_TIMCMP4_Pos) /*!< 0x00000200 */
  21688. #define HRTIM_BDTUPR_TIMCMP4 HRTIM_BDTUPR_TIMCMP4_Msk /*!< TIMCMP4 register update enable */
  21689. #define HRTIM_BDTUPR_TIMDTR_Pos (10U)
  21690. #define HRTIM_BDTUPR_TIMDTR_Msk (0x1U << HRTIM_BDTUPR_TIMDTR_Pos) /*!< 0x00000400 */
  21691. #define HRTIM_BDTUPR_TIMDTR HRTIM_BDTUPR_TIMDTR_Msk /*!< TIMDTR register update enable */
  21692. #define HRTIM_BDTUPR_TIMSET1R_Pos (11U)
  21693. #define HRTIM_BDTUPR_TIMSET1R_Msk (0x1U << HRTIM_BDTUPR_TIMSET1R_Pos) /*!< 0x00000800 */
  21694. #define HRTIM_BDTUPR_TIMSET1R HRTIM_BDTUPR_TIMSET1R_Msk /*!< TIMSET1R register update enable */
  21695. #define HRTIM_BDTUPR_TIMRST1R_Pos (12U)
  21696. #define HRTIM_BDTUPR_TIMRST1R_Msk (0x1U << HRTIM_BDTUPR_TIMRST1R_Pos) /*!< 0x00001000 */
  21697. #define HRTIM_BDTUPR_TIMRST1R HRTIM_BDTUPR_TIMRST1R_Msk /*!< TIMRST1R register update enable */
  21698. #define HRTIM_BDTUPR_TIMSET2R_Pos (13U)
  21699. #define HRTIM_BDTUPR_TIMSET2R_Msk (0x1U << HRTIM_BDTUPR_TIMSET2R_Pos) /*!< 0x00002000 */
  21700. #define HRTIM_BDTUPR_TIMSET2R HRTIM_BDTUPR_TIMSET2R_Msk /*!< TIMSET2R register update enable */
  21701. #define HRTIM_BDTUPR_TIMRST2R_Pos (14U)
  21702. #define HRTIM_BDTUPR_TIMRST2R_Msk (0x1U << HRTIM_BDTUPR_TIMRST2R_Pos) /*!< 0x00004000 */
  21703. #define HRTIM_BDTUPR_TIMRST2R HRTIM_BDTUPR_TIMRST2R_Msk /*!< TIMRST2R register update enable */
  21704. #define HRTIM_BDTUPR_TIMEEFR1_Pos (15U)
  21705. #define HRTIM_BDTUPR_TIMEEFR1_Msk (0x1U << HRTIM_BDTUPR_TIMEEFR1_Pos) /*!< 0x00008000 */
  21706. #define HRTIM_BDTUPR_TIMEEFR1 HRTIM_BDTUPR_TIMEEFR1_Msk /*!< TIMEEFR1 register update enable */
  21707. #define HRTIM_BDTUPR_TIMEEFR2_Pos (16U)
  21708. #define HRTIM_BDTUPR_TIMEEFR2_Msk (0x1U << HRTIM_BDTUPR_TIMEEFR2_Pos) /*!< 0x00010000 */
  21709. #define HRTIM_BDTUPR_TIMEEFR2 HRTIM_BDTUPR_TIMEEFR2_Msk /*!< TIMEEFR2 register update enable */
  21710. #define HRTIM_BDTUPR_TIMRSTR_Pos (17U)
  21711. #define HRTIM_BDTUPR_TIMRSTR_Msk (0x1U << HRTIM_BDTUPR_TIMRSTR_Pos) /*!< 0x00020000 */
  21712. #define HRTIM_BDTUPR_TIMRSTR HRTIM_BDTUPR_TIMRSTR_Msk /*!< TIMRSTR register update enable */
  21713. #define HRTIM_BDTUPR_TIMCHPR_Pos (18U)
  21714. #define HRTIM_BDTUPR_TIMCHPR_Msk (0x1U << HRTIM_BDTUPR_TIMCHPR_Pos) /*!< 0x00040000 */
  21715. #define HRTIM_BDTUPR_TIMCHPR HRTIM_BDTUPR_TIMCHPR_Msk /*!< TIMCHPR register update enable */
  21716. #define HRTIM_BDTUPR_TIMOUTR_Pos (19U)
  21717. #define HRTIM_BDTUPR_TIMOUTR_Msk (0x1U << HRTIM_BDTUPR_TIMOUTR_Pos) /*!< 0x00080000 */
  21718. #define HRTIM_BDTUPR_TIMOUTR HRTIM_BDTUPR_TIMOUTR_Msk /*!< TIMOUTR register update enable */
  21719. #define HRTIM_BDTUPR_TIMFLTR_Pos (20U)
  21720. #define HRTIM_BDTUPR_TIMFLTR_Msk (0x1U << HRTIM_BDTUPR_TIMFLTR_Pos) /*!< 0x00100000 */
  21721. #define HRTIM_BDTUPR_TIMFLTR HRTIM_BDTUPR_TIMFLTR_Msk /*!< TIMFLTR register update enable */
  21722. /******************* Bit definition for HRTIM_BDMADR register ***************/
  21723. #define HRTIM_BDMADR_BDMADR_Pos (0U)
  21724. #define HRTIM_BDMADR_BDMADR_Msk (0xFFFFFFFFU << HRTIM_BDMADR_BDMADR_Pos) /*!< 0xFFFFFFFF */
  21725. #define HRTIM_BDMADR_BDMADR HRTIM_BDMADR_BDMADR_Msk /*!< Burst DMA Data register */
  21726. /******************************************************************************/
  21727. /* */
  21728. /* MDIOS */
  21729. /* */
  21730. /******************************************************************************/
  21731. /******************** Bit definition for MDIOS_CR register *******************/
  21732. #define MDIOS_CR_EN_Pos (0U)
  21733. #define MDIOS_CR_EN_Msk (0x1U << MDIOS_CR_EN_Pos) /*!< 0x00000001 */
  21734. #define MDIOS_CR_EN MDIOS_CR_EN_Msk /*!< MDIOS slave peripheral enable */
  21735. #define MDIOS_CR_WRIE_Pos (1U)
  21736. #define MDIOS_CR_WRIE_Msk (0x1U << MDIOS_CR_WRIE_Pos) /*!< 0x00000002 */
  21737. #define MDIOS_CR_WRIE MDIOS_CR_WRIE_Msk /*!< MDIOS slave register write interrupt enable. */
  21738. #define MDIOS_CR_RDIE_Pos (2U)
  21739. #define MDIOS_CR_RDIE_Msk (0x1U << MDIOS_CR_RDIE_Pos) /*!< 0x00000004 */
  21740. #define MDIOS_CR_RDIE MDIOS_CR_RDIE_Msk /*!< MDIOS slave register read interrupt enable. */
  21741. #define MDIOS_CR_EIE_Pos (3U)
  21742. #define MDIOS_CR_EIE_Msk (0x1U << MDIOS_CR_EIE_Pos) /*!< 0x00000008 */
  21743. #define MDIOS_CR_EIE MDIOS_CR_EIE_Msk /*!< MDIOS slave register error interrupt enable. */
  21744. #define MDIOS_CR_DPC_Pos (7U)
  21745. #define MDIOS_CR_DPC_Msk (0x1U << MDIOS_CR_DPC_Pos) /*!< 0x00000080 */
  21746. #define MDIOS_CR_DPC MDIOS_CR_DPC_Msk /*!< MDIOS slave disable preamble check. */
  21747. #define MDIOS_CR_PORT_ADDRESS_Pos (8U)
  21748. #define MDIOS_CR_PORT_ADDRESS_Msk (0x1FU << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001F00 */
  21749. #define MDIOS_CR_PORT_ADDRESS MDIOS_CR_PORT_ADDRESS_Msk /*!< MDIOS slave port address mask. */
  21750. #define MDIOS_CR_PORT_ADDRESS_0 (0x01U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000100 */
  21751. #define MDIOS_CR_PORT_ADDRESS_1 (0x02U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000200 */
  21752. #define MDIOS_CR_PORT_ADDRESS_2 (0x04U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000400 */
  21753. #define MDIOS_CR_PORT_ADDRESS_3 (0x08U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000800 */
  21754. #define MDIOS_CR_PORT_ADDRESS_4 (0x10U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001000 */
  21755. /******************** Bit definition for MDIOS_SR register *******************/
  21756. #define MDIOS_SR_PERF_Pos (0U)
  21757. #define MDIOS_SR_PERF_Msk (0x1U << MDIOS_SR_PERF_Pos) /*!< 0x00000001 */
  21758. #define MDIOS_SR_PERF MDIOS_SR_PERF_Msk /*!< MDIOS slave turnaround error flag*/
  21759. #define MDIOS_SR_SERF_Pos (1U)
  21760. #define MDIOS_SR_SERF_Msk (0x1U << MDIOS_SR_SERF_Pos) /*!< 0x00000002 */
  21761. #define MDIOS_SR_SERF MDIOS_SR_SERF_Msk /*!< MDIOS slave start error flag */
  21762. #define MDIOS_SR_TERF_Pos (2U)
  21763. #define MDIOS_SR_TERF_Msk (0x1U << MDIOS_SR_TERF_Pos) /*!< 0x00000004 */
  21764. #define MDIOS_SR_TERF MDIOS_SR_TERF_Msk /*!< MDIOS slave preamble error flag */
  21765. /******************** Bit definition for MDIOS_CLRFR register *******************/
  21766. #define MDIOS_SR_CPERF_Pos (0U)
  21767. #define MDIOS_SR_CPERF_Msk (0x1U << MDIOS_SR_CPERF_Pos) /*!< 0x00000001 */
  21768. #define MDIOS_SR_CPERF MDIOS_SR_CPERF_Msk /*!< MDIOS slave Clear the turnaround error flag */
  21769. #define MDIOS_SR_CSERF_Pos (1U)
  21770. #define MDIOS_SR_CSERF_Msk (0x1U << MDIOS_SR_CSERF_Pos) /*!< 0x00000002 */
  21771. #define MDIOS_SR_CSERF MDIOS_SR_CSERF_Msk /*!< MDIOS slave Clear the start error flag */
  21772. #define MDIOS_SR_CTERF_Pos (2U)
  21773. #define MDIOS_SR_CTERF_Msk (0x1U << MDIOS_SR_CTERF_Pos) /*!< 0x00000004 */
  21774. #define MDIOS_SR_CTERF MDIOS_SR_CTERF_Msk /*!< MDIOS slave Clear the preamble error flag */
  21775. /******************************************************************************/
  21776. /* */
  21777. /* USB_OTG */
  21778. /* */
  21779. /******************************************************************************/
  21780. /******************** Bit definition forUSB_OTG_GOTGCTL register ********************/
  21781. #define USB_OTG_GOTGCTL_SRQSCS_Pos (0U)
  21782. #define USB_OTG_GOTGCTL_SRQSCS_Msk (0x1U << USB_OTG_GOTGCTL_SRQSCS_Pos) /*!< 0x00000001 */
  21783. #define USB_OTG_GOTGCTL_SRQSCS USB_OTG_GOTGCTL_SRQSCS_Msk /*!< Session request success */
  21784. #define USB_OTG_GOTGCTL_SRQ_Pos (1U)
  21785. #define USB_OTG_GOTGCTL_SRQ_Msk (0x1U << USB_OTG_GOTGCTL_SRQ_Pos) /*!< 0x00000002 */
  21786. #define USB_OTG_GOTGCTL_SRQ USB_OTG_GOTGCTL_SRQ_Msk /*!< Session request */
  21787. #define USB_OTG_GOTGCTL_VBVALOEN_Pos (2U)
  21788. #define USB_OTG_GOTGCTL_VBVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_VBVALOEN_Pos) /*!< 0x00000004 */
  21789. #define USB_OTG_GOTGCTL_VBVALOEN USB_OTG_GOTGCTL_VBVALOEN_Msk /*!< VBUS valid override enable */
  21790. #define USB_OTG_GOTGCTL_VBVALOVAL_Pos (3U)
  21791. #define USB_OTG_GOTGCTL_VBVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_VBVALOVAL_Pos) /*!< 0x00000008 */
  21792. #define USB_OTG_GOTGCTL_VBVALOVAL USB_OTG_GOTGCTL_VBVALOVAL_Msk /*!< VBUS valid override value */
  21793. #define USB_OTG_GOTGCTL_AVALOEN_Pos (4U)
  21794. #define USB_OTG_GOTGCTL_AVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_AVALOEN_Pos) /*!< 0x00000010 */
  21795. #define USB_OTG_GOTGCTL_AVALOEN USB_OTG_GOTGCTL_AVALOEN_Msk /*!< A-peripheral session valid override enable */
  21796. #define USB_OTG_GOTGCTL_AVALOVAL_Pos (5U)
  21797. #define USB_OTG_GOTGCTL_AVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_AVALOVAL_Pos) /*!< 0x00000020 */
  21798. #define USB_OTG_GOTGCTL_AVALOVAL USB_OTG_GOTGCTL_AVALOVAL_Msk /*!< A-peripheral session valid override value */
  21799. #define USB_OTG_GOTGCTL_BVALOEN_Pos (6U)
  21800. #define USB_OTG_GOTGCTL_BVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_BVALOEN_Pos) /*!< 0x00000040 */
  21801. #define USB_OTG_GOTGCTL_BVALOEN USB_OTG_GOTGCTL_BVALOEN_Msk /*!< B-peripheral session valid override enable */
  21802. #define USB_OTG_GOTGCTL_BVALOVAL_Pos (7U)
  21803. #define USB_OTG_GOTGCTL_BVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_BVALOVAL_Pos) /*!< 0x00000080 */
  21804. #define USB_OTG_GOTGCTL_BVALOVAL USB_OTG_GOTGCTL_BVALOVAL_Msk /*!< B-peripheral session valid override value */
  21805. #define USB_OTG_GOTGCTL_HNGSCS_Pos (8U)
  21806. #define USB_OTG_GOTGCTL_HNGSCS_Msk (0x1U << USB_OTG_GOTGCTL_HNGSCS_Pos) /*!< 0x00000100 */
  21807. #define USB_OTG_GOTGCTL_HNGSCS USB_OTG_GOTGCTL_HNGSCS_Msk /*!< Host set HNP enable */
  21808. #define USB_OTG_GOTGCTL_HNPRQ_Pos (9U)
  21809. #define USB_OTG_GOTGCTL_HNPRQ_Msk (0x1U << USB_OTG_GOTGCTL_HNPRQ_Pos) /*!< 0x00000200 */
  21810. #define USB_OTG_GOTGCTL_HNPRQ USB_OTG_GOTGCTL_HNPRQ_Msk /*!< HNP request */
  21811. #define USB_OTG_GOTGCTL_HSHNPEN_Pos (10U)
  21812. #define USB_OTG_GOTGCTL_HSHNPEN_Msk (0x1U << USB_OTG_GOTGCTL_HSHNPEN_Pos) /*!< 0x00000400 */
  21813. #define USB_OTG_GOTGCTL_HSHNPEN USB_OTG_GOTGCTL_HSHNPEN_Msk /*!< Host set HNP enable */
  21814. #define USB_OTG_GOTGCTL_DHNPEN_Pos (11U)
  21815. #define USB_OTG_GOTGCTL_DHNPEN_Msk (0x1U << USB_OTG_GOTGCTL_DHNPEN_Pos) /*!< 0x00000800 */
  21816. #define USB_OTG_GOTGCTL_DHNPEN USB_OTG_GOTGCTL_DHNPEN_Msk /*!< Device HNP enabled */
  21817. #define USB_OTG_GOTGCTL_EHEN_Pos (12U)
  21818. #define USB_OTG_GOTGCTL_EHEN_Msk (0x1U << USB_OTG_GOTGCTL_EHEN_Pos) /*!< 0x00001000 */
  21819. #define USB_OTG_GOTGCTL_EHEN USB_OTG_GOTGCTL_EHEN_Msk /*!< Embedded host enable */
  21820. #define USB_OTG_GOTGCTL_CIDSTS_Pos (16U)
  21821. #define USB_OTG_GOTGCTL_CIDSTS_Msk (0x1U << USB_OTG_GOTGCTL_CIDSTS_Pos) /*!< 0x00010000 */
  21822. #define USB_OTG_GOTGCTL_CIDSTS USB_OTG_GOTGCTL_CIDSTS_Msk /*!< Connector ID status */
  21823. #define USB_OTG_GOTGCTL_DBCT_Pos (17U)
  21824. #define USB_OTG_GOTGCTL_DBCT_Msk (0x1U << USB_OTG_GOTGCTL_DBCT_Pos) /*!< 0x00020000 */
  21825. #define USB_OTG_GOTGCTL_DBCT USB_OTG_GOTGCTL_DBCT_Msk /*!< Long/short debounce time */
  21826. #define USB_OTG_GOTGCTL_ASVLD_Pos (18U)
  21827. #define USB_OTG_GOTGCTL_ASVLD_Msk (0x1U << USB_OTG_GOTGCTL_ASVLD_Pos) /*!< 0x00040000 */
  21828. #define USB_OTG_GOTGCTL_ASVLD USB_OTG_GOTGCTL_ASVLD_Msk /*!< A-session valid */
  21829. #define USB_OTG_GOTGCTL_BSESVLD_Pos (19U)
  21830. #define USB_OTG_GOTGCTL_BSESVLD_Msk (0x1U << USB_OTG_GOTGCTL_BSESVLD_Pos) /*!< 0x00080000 */
  21831. #define USB_OTG_GOTGCTL_BSESVLD USB_OTG_GOTGCTL_BSESVLD_Msk /*!< B-session valid */
  21832. #define USB_OTG_GOTGCTL_OTGVER_Pos (20U)
  21833. #define USB_OTG_GOTGCTL_OTGVER_Msk (0x1U << USB_OTG_GOTGCTL_OTGVER_Pos) /*!< 0x00100000 */
  21834. #define USB_OTG_GOTGCTL_OTGVER USB_OTG_GOTGCTL_OTGVER_Msk /*!< OTG version */
  21835. /******************** Bit definition forUSB_OTG_HCFG register ********************/
  21836. #define USB_OTG_HCFG_FSLSPCS_Pos (0U)
  21837. #define USB_OTG_HCFG_FSLSPCS_Msk (0x3U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000003 */
  21838. #define USB_OTG_HCFG_FSLSPCS USB_OTG_HCFG_FSLSPCS_Msk /*!< FS/LS PHY clock select */
  21839. #define USB_OTG_HCFG_FSLSPCS_0 (0x1U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000001 */
  21840. #define USB_OTG_HCFG_FSLSPCS_1 (0x2U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000002 */
  21841. #define USB_OTG_HCFG_FSLSS_Pos (2U)
  21842. #define USB_OTG_HCFG_FSLSS_Msk (0x1U << USB_OTG_HCFG_FSLSS_Pos) /*!< 0x00000004 */
  21843. #define USB_OTG_HCFG_FSLSS USB_OTG_HCFG_FSLSS_Msk /*!< FS- and LS-only support */
  21844. /******************** Bit definition forUSB_OTG_DCFG register ********************/
  21845. #define USB_OTG_DCFG_DSPD_Pos (0U)
  21846. #define USB_OTG_DCFG_DSPD_Msk (0x3U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000003 */
  21847. #define USB_OTG_DCFG_DSPD USB_OTG_DCFG_DSPD_Msk /*!< Device speed */
  21848. #define USB_OTG_DCFG_DSPD_0 (0x1U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000001 */
  21849. #define USB_OTG_DCFG_DSPD_1 (0x2U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000002 */
  21850. #define USB_OTG_DCFG_NZLSOHSK_Pos (2U)
  21851. #define USB_OTG_DCFG_NZLSOHSK_Msk (0x1U << USB_OTG_DCFG_NZLSOHSK_Pos) /*!< 0x00000004 */
  21852. #define USB_OTG_DCFG_NZLSOHSK USB_OTG_DCFG_NZLSOHSK_Msk /*!< Nonzero-length status OUT handshake */
  21853. #define USB_OTG_DCFG_DAD_Pos (4U)
  21854. #define USB_OTG_DCFG_DAD_Msk (0x7FU << USB_OTG_DCFG_DAD_Pos) /*!< 0x000007F0 */
  21855. #define USB_OTG_DCFG_DAD USB_OTG_DCFG_DAD_Msk /*!< Device address */
  21856. #define USB_OTG_DCFG_DAD_0 (0x01U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000010 */
  21857. #define USB_OTG_DCFG_DAD_1 (0x02U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000020 */
  21858. #define USB_OTG_DCFG_DAD_2 (0x04U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000040 */
  21859. #define USB_OTG_DCFG_DAD_3 (0x08U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000080 */
  21860. #define USB_OTG_DCFG_DAD_4 (0x10U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000100 */
  21861. #define USB_OTG_DCFG_DAD_5 (0x20U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000200 */
  21862. #define USB_OTG_DCFG_DAD_6 (0x40U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000400 */
  21863. #define USB_OTG_DCFG_PFIVL_Pos (11U)
  21864. #define USB_OTG_DCFG_PFIVL_Msk (0x3U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001800 */
  21865. #define USB_OTG_DCFG_PFIVL USB_OTG_DCFG_PFIVL_Msk /*!< Periodic (micro)frame interval */
  21866. #define USB_OTG_DCFG_PFIVL_0 (0x1U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00000800 */
  21867. #define USB_OTG_DCFG_PFIVL_1 (0x2U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001000 */
  21868. #define USB_OTG_DCFG_PERSCHIVL_Pos (24U)
  21869. #define USB_OTG_DCFG_PERSCHIVL_Msk (0x3U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x03000000 */
  21870. #define USB_OTG_DCFG_PERSCHIVL USB_OTG_DCFG_PERSCHIVL_Msk /*!< Periodic scheduling interval */
  21871. #define USB_OTG_DCFG_PERSCHIVL_0 (0x1U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x01000000 */
  21872. #define USB_OTG_DCFG_PERSCHIVL_1 (0x2U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x02000000 */
  21873. /******************** Bit definition forUSB_OTG_PCGCR register ********************/
  21874. #define USB_OTG_PCGCR_STPPCLK_Pos (0U)
  21875. #define USB_OTG_PCGCR_STPPCLK_Msk (0x1U << USB_OTG_PCGCR_STPPCLK_Pos) /*!< 0x00000001 */
  21876. #define USB_OTG_PCGCR_STPPCLK USB_OTG_PCGCR_STPPCLK_Msk /*!< Stop PHY clock */
  21877. #define USB_OTG_PCGCR_GATEHCLK_Pos (1U)
  21878. #define USB_OTG_PCGCR_GATEHCLK_Msk (0x1U << USB_OTG_PCGCR_GATEHCLK_Pos) /*!< 0x00000002 */
  21879. #define USB_OTG_PCGCR_GATEHCLK USB_OTG_PCGCR_GATEHCLK_Msk /*!< Gate HCLK */
  21880. #define USB_OTG_PCGCR_PHYSUSP_Pos (4U)
  21881. #define USB_OTG_PCGCR_PHYSUSP_Msk (0x1U << USB_OTG_PCGCR_PHYSUSP_Pos) /*!< 0x00000010 */
  21882. #define USB_OTG_PCGCR_PHYSUSP USB_OTG_PCGCR_PHYSUSP_Msk /*!< PHY suspended */
  21883. /******************** Bit definition forUSB_OTG_GOTGINT register ********************/
  21884. #define USB_OTG_GOTGINT_SEDET_Pos (2U)
  21885. #define USB_OTG_GOTGINT_SEDET_Msk (0x1U << USB_OTG_GOTGINT_SEDET_Pos) /*!< 0x00000004 */
  21886. #define USB_OTG_GOTGINT_SEDET USB_OTG_GOTGINT_SEDET_Msk /*!< Session end detected */
  21887. #define USB_OTG_GOTGINT_SRSSCHG_Pos (8U)
  21888. #define USB_OTG_GOTGINT_SRSSCHG_Msk (0x1U << USB_OTG_GOTGINT_SRSSCHG_Pos) /*!< 0x00000100 */
  21889. #define USB_OTG_GOTGINT_SRSSCHG USB_OTG_GOTGINT_SRSSCHG_Msk /*!< Session request success status change */
  21890. #define USB_OTG_GOTGINT_HNSSCHG_Pos (9U)
  21891. #define USB_OTG_GOTGINT_HNSSCHG_Msk (0x1U << USB_OTG_GOTGINT_HNSSCHG_Pos) /*!< 0x00000200 */
  21892. #define USB_OTG_GOTGINT_HNSSCHG USB_OTG_GOTGINT_HNSSCHG_Msk /*!< Host negotiation success status change */
  21893. #define USB_OTG_GOTGINT_HNGDET_Pos (17U)
  21894. #define USB_OTG_GOTGINT_HNGDET_Msk (0x1U << USB_OTG_GOTGINT_HNGDET_Pos) /*!< 0x00020000 */
  21895. #define USB_OTG_GOTGINT_HNGDET USB_OTG_GOTGINT_HNGDET_Msk /*!< Host negotiation detected */
  21896. #define USB_OTG_GOTGINT_ADTOCHG_Pos (18U)
  21897. #define USB_OTG_GOTGINT_ADTOCHG_Msk (0x1U << USB_OTG_GOTGINT_ADTOCHG_Pos) /*!< 0x00040000 */
  21898. #define USB_OTG_GOTGINT_ADTOCHG USB_OTG_GOTGINT_ADTOCHG_Msk /*!< A-device timeout change */
  21899. #define USB_OTG_GOTGINT_DBCDNE_Pos (19U)
  21900. #define USB_OTG_GOTGINT_DBCDNE_Msk (0x1U << USB_OTG_GOTGINT_DBCDNE_Pos) /*!< 0x00080000 */
  21901. #define USB_OTG_GOTGINT_DBCDNE USB_OTG_GOTGINT_DBCDNE_Msk /*!< Debounce done */
  21902. /******************** Bit definition forUSB_OTG_DCTL register ********************/
  21903. #define USB_OTG_DCTL_RWUSIG_Pos (0U)
  21904. #define USB_OTG_DCTL_RWUSIG_Msk (0x1U << USB_OTG_DCTL_RWUSIG_Pos) /*!< 0x00000001 */
  21905. #define USB_OTG_DCTL_RWUSIG USB_OTG_DCTL_RWUSIG_Msk /*!< Remote wakeup signaling */
  21906. #define USB_OTG_DCTL_SDIS_Pos (1U)
  21907. #define USB_OTG_DCTL_SDIS_Msk (0x1U << USB_OTG_DCTL_SDIS_Pos) /*!< 0x00000002 */
  21908. #define USB_OTG_DCTL_SDIS USB_OTG_DCTL_SDIS_Msk /*!< Soft disconnect */
  21909. #define USB_OTG_DCTL_GINSTS_Pos (2U)
  21910. #define USB_OTG_DCTL_GINSTS_Msk (0x1U << USB_OTG_DCTL_GINSTS_Pos) /*!< 0x00000004 */
  21911. #define USB_OTG_DCTL_GINSTS USB_OTG_DCTL_GINSTS_Msk /*!< Global IN NAK status */
  21912. #define USB_OTG_DCTL_GONSTS_Pos (3U)
  21913. #define USB_OTG_DCTL_GONSTS_Msk (0x1U << USB_OTG_DCTL_GONSTS_Pos) /*!< 0x00000008 */
  21914. #define USB_OTG_DCTL_GONSTS USB_OTG_DCTL_GONSTS_Msk /*!< Global OUT NAK status */
  21915. #define USB_OTG_DCTL_TCTL_Pos (4U)
  21916. #define USB_OTG_DCTL_TCTL_Msk (0x7U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000070 */
  21917. #define USB_OTG_DCTL_TCTL USB_OTG_DCTL_TCTL_Msk /*!< Test control */
  21918. #define USB_OTG_DCTL_TCTL_0 (0x1U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000010 */
  21919. #define USB_OTG_DCTL_TCTL_1 (0x2U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000020 */
  21920. #define USB_OTG_DCTL_TCTL_2 (0x4U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000040 */
  21921. #define USB_OTG_DCTL_SGINAK_Pos (7U)
  21922. #define USB_OTG_DCTL_SGINAK_Msk (0x1U << USB_OTG_DCTL_SGINAK_Pos) /*!< 0x00000080 */
  21923. #define USB_OTG_DCTL_SGINAK USB_OTG_DCTL_SGINAK_Msk /*!< Set global IN NAK */
  21924. #define USB_OTG_DCTL_CGINAK_Pos (8U)
  21925. #define USB_OTG_DCTL_CGINAK_Msk (0x1U << USB_OTG_DCTL_CGINAK_Pos) /*!< 0x00000100 */
  21926. #define USB_OTG_DCTL_CGINAK USB_OTG_DCTL_CGINAK_Msk /*!< Clear global IN NAK */
  21927. #define USB_OTG_DCTL_SGONAK_Pos (9U)
  21928. #define USB_OTG_DCTL_SGONAK_Msk (0x1U << USB_OTG_DCTL_SGONAK_Pos) /*!< 0x00000200 */
  21929. #define USB_OTG_DCTL_SGONAK USB_OTG_DCTL_SGONAK_Msk /*!< Set global OUT NAK */
  21930. #define USB_OTG_DCTL_CGONAK_Pos (10U)
  21931. #define USB_OTG_DCTL_CGONAK_Msk (0x1U << USB_OTG_DCTL_CGONAK_Pos) /*!< 0x00000400 */
  21932. #define USB_OTG_DCTL_CGONAK USB_OTG_DCTL_CGONAK_Msk /*!< Clear global OUT NAK */
  21933. #define USB_OTG_DCTL_POPRGDNE_Pos (11U)
  21934. #define USB_OTG_DCTL_POPRGDNE_Msk (0x1U << USB_OTG_DCTL_POPRGDNE_Pos) /*!< 0x00000800 */
  21935. #define USB_OTG_DCTL_POPRGDNE USB_OTG_DCTL_POPRGDNE_Msk /*!< Power-on programming done */
  21936. /******************** Bit definition forUSB_OTG_HFIR register ********************/
  21937. #define USB_OTG_HFIR_FRIVL_Pos (0U)
  21938. #define USB_OTG_HFIR_FRIVL_Msk (0xFFFFU << USB_OTG_HFIR_FRIVL_Pos) /*!< 0x0000FFFF */
  21939. #define USB_OTG_HFIR_FRIVL USB_OTG_HFIR_FRIVL_Msk /*!< Frame interval */
  21940. /******************** Bit definition forUSB_OTG_HFNUM register ********************/
  21941. #define USB_OTG_HFNUM_FRNUM_Pos (0U)
  21942. #define USB_OTG_HFNUM_FRNUM_Msk (0xFFFFU << USB_OTG_HFNUM_FRNUM_Pos) /*!< 0x0000FFFF */
  21943. #define USB_OTG_HFNUM_FRNUM USB_OTG_HFNUM_FRNUM_Msk /*!< Frame number */
  21944. #define USB_OTG_HFNUM_FTREM_Pos (16U)
  21945. #define USB_OTG_HFNUM_FTREM_Msk (0xFFFFU << USB_OTG_HFNUM_FTREM_Pos) /*!< 0xFFFF0000 */
  21946. #define USB_OTG_HFNUM_FTREM USB_OTG_HFNUM_FTREM_Msk /*!< Frame time remaining */
  21947. /******************** Bit definition forUSB_OTG_DSTS register ********************/
  21948. #define USB_OTG_DSTS_SUSPSTS_Pos (0U)
  21949. #define USB_OTG_DSTS_SUSPSTS_Msk (0x1U << USB_OTG_DSTS_SUSPSTS_Pos) /*!< 0x00000001 */
  21950. #define USB_OTG_DSTS_SUSPSTS USB_OTG_DSTS_SUSPSTS_Msk /*!< Suspend status */
  21951. #define USB_OTG_DSTS_ENUMSPD_Pos (1U)
  21952. #define USB_OTG_DSTS_ENUMSPD_Msk (0x3U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000006 */
  21953. #define USB_OTG_DSTS_ENUMSPD USB_OTG_DSTS_ENUMSPD_Msk /*!< Enumerated speed */
  21954. #define USB_OTG_DSTS_ENUMSPD_0 (0x1U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000002 */
  21955. #define USB_OTG_DSTS_ENUMSPD_1 (0x2U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000004 */
  21956. #define USB_OTG_DSTS_EERR_Pos (3U)
  21957. #define USB_OTG_DSTS_EERR_Msk (0x1U << USB_OTG_DSTS_EERR_Pos) /*!< 0x00000008 */
  21958. #define USB_OTG_DSTS_EERR USB_OTG_DSTS_EERR_Msk /*!< Erratic error */
  21959. #define USB_OTG_DSTS_FNSOF_Pos (8U)
  21960. #define USB_OTG_DSTS_FNSOF_Msk (0x3FFFU << USB_OTG_DSTS_FNSOF_Pos) /*!< 0x003FFF00 */
  21961. #define USB_OTG_DSTS_FNSOF USB_OTG_DSTS_FNSOF_Msk /*!< Frame number of the received SOF */
  21962. /******************** Bit definition forUSB_OTG_GAHBCFG register ********************/
  21963. #define USB_OTG_GAHBCFG_GINT_Pos (0U)
  21964. #define USB_OTG_GAHBCFG_GINT_Msk (0x1U << USB_OTG_GAHBCFG_GINT_Pos) /*!< 0x00000001 */
  21965. #define USB_OTG_GAHBCFG_GINT USB_OTG_GAHBCFG_GINT_Msk /*!< Global interrupt mask */
  21966. #define USB_OTG_GAHBCFG_HBSTLEN_Pos (1U)
  21967. #define USB_OTG_GAHBCFG_HBSTLEN_Msk (0xFU << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x0000001E */
  21968. #define USB_OTG_GAHBCFG_HBSTLEN USB_OTG_GAHBCFG_HBSTLEN_Msk /*!< Burst length/type */
  21969. #define USB_OTG_GAHBCFG_HBSTLEN_0 (0x1U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000002 */
  21970. #define USB_OTG_GAHBCFG_HBSTLEN_1 (0x2U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000004 */
  21971. #define USB_OTG_GAHBCFG_HBSTLEN_2 (0x4U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000008 */
  21972. #define USB_OTG_GAHBCFG_HBSTLEN_3 (0x8U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000010 */
  21973. #define USB_OTG_GAHBCFG_DMAEN_Pos (5U)
  21974. #define USB_OTG_GAHBCFG_DMAEN_Msk (0x1U << USB_OTG_GAHBCFG_DMAEN_Pos) /*!< 0x00000020 */
  21975. #define USB_OTG_GAHBCFG_DMAEN USB_OTG_GAHBCFG_DMAEN_Msk /*!< DMA enable */
  21976. #define USB_OTG_GAHBCFG_TXFELVL_Pos (7U)
  21977. #define USB_OTG_GAHBCFG_TXFELVL_Msk (0x1U << USB_OTG_GAHBCFG_TXFELVL_Pos) /*!< 0x00000080 */
  21978. #define USB_OTG_GAHBCFG_TXFELVL USB_OTG_GAHBCFG_TXFELVL_Msk /*!< TxFIFO empty level */
  21979. #define USB_OTG_GAHBCFG_PTXFELVL_Pos (8U)
  21980. #define USB_OTG_GAHBCFG_PTXFELVL_Msk (0x1U << USB_OTG_GAHBCFG_PTXFELVL_Pos) /*!< 0x00000100 */
  21981. #define USB_OTG_GAHBCFG_PTXFELVL USB_OTG_GAHBCFG_PTXFELVL_Msk /*!< Periodic TxFIFO empty level */
  21982. /******************** Bit definition forUSB_OTG_GUSBCFG register ********************/
  21983. #define USB_OTG_GUSBCFG_TOCAL_Pos (0U)
  21984. #define USB_OTG_GUSBCFG_TOCAL_Msk (0x7U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000007 */
  21985. #define USB_OTG_GUSBCFG_TOCAL USB_OTG_GUSBCFG_TOCAL_Msk /*!< FS timeout calibration */
  21986. #define USB_OTG_GUSBCFG_TOCAL_0 (0x1U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000001 */
  21987. #define USB_OTG_GUSBCFG_TOCAL_1 (0x2U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000002 */
  21988. #define USB_OTG_GUSBCFG_TOCAL_2 (0x4U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000004 */
  21989. #define USB_OTG_GUSBCFG_PHYSEL_Pos (6U)
  21990. #define USB_OTG_GUSBCFG_PHYSEL_Msk (0x1U << USB_OTG_GUSBCFG_PHYSEL_Pos) /*!< 0x00000040 */
  21991. #define USB_OTG_GUSBCFG_PHYSEL USB_OTG_GUSBCFG_PHYSEL_Msk /*!< USB 2.0 high-speed ULPI PHY or USB 1.1 full-speed serial transceiver select */
  21992. #define USB_OTG_GUSBCFG_SRPCAP_Pos (8U)
  21993. #define USB_OTG_GUSBCFG_SRPCAP_Msk (0x1U << USB_OTG_GUSBCFG_SRPCAP_Pos) /*!< 0x00000100 */
  21994. #define USB_OTG_GUSBCFG_SRPCAP USB_OTG_GUSBCFG_SRPCAP_Msk /*!< SRP-capable */
  21995. #define USB_OTG_GUSBCFG_HNPCAP_Pos (9U)
  21996. #define USB_OTG_GUSBCFG_HNPCAP_Msk (0x1U << USB_OTG_GUSBCFG_HNPCAP_Pos) /*!< 0x00000200 */
  21997. #define USB_OTG_GUSBCFG_HNPCAP USB_OTG_GUSBCFG_HNPCAP_Msk /*!< HNP-capable */
  21998. #define USB_OTG_GUSBCFG_TRDT_Pos (10U)
  21999. #define USB_OTG_GUSBCFG_TRDT_Msk (0xFU << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00003C00 */
  22000. #define USB_OTG_GUSBCFG_TRDT USB_OTG_GUSBCFG_TRDT_Msk /*!< USB turnaround time */
  22001. #define USB_OTG_GUSBCFG_TRDT_0 (0x1U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000400 */
  22002. #define USB_OTG_GUSBCFG_TRDT_1 (0x2U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000800 */
  22003. #define USB_OTG_GUSBCFG_TRDT_2 (0x4U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00001000 */
  22004. #define USB_OTG_GUSBCFG_TRDT_3 (0x8U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00002000 */
  22005. #define USB_OTG_GUSBCFG_PHYLPCS_Pos (15U)
  22006. #define USB_OTG_GUSBCFG_PHYLPCS_Msk (0x1U << USB_OTG_GUSBCFG_PHYLPCS_Pos) /*!< 0x00008000 */
  22007. #define USB_OTG_GUSBCFG_PHYLPCS USB_OTG_GUSBCFG_PHYLPCS_Msk /*!< PHY Low-power clock select */
  22008. #define USB_OTG_GUSBCFG_ULPIFSLS_Pos (17U)
  22009. #define USB_OTG_GUSBCFG_ULPIFSLS_Msk (0x1U << USB_OTG_GUSBCFG_ULPIFSLS_Pos) /*!< 0x00020000 */
  22010. #define USB_OTG_GUSBCFG_ULPIFSLS USB_OTG_GUSBCFG_ULPIFSLS_Msk /*!< ULPI FS/LS select */
  22011. #define USB_OTG_GUSBCFG_ULPIAR_Pos (18U)
  22012. #define USB_OTG_GUSBCFG_ULPIAR_Msk (0x1U << USB_OTG_GUSBCFG_ULPIAR_Pos) /*!< 0x00040000 */
  22013. #define USB_OTG_GUSBCFG_ULPIAR USB_OTG_GUSBCFG_ULPIAR_Msk /*!< ULPI Auto-resume */
  22014. #define USB_OTG_GUSBCFG_ULPICSM_Pos (19U)
  22015. #define USB_OTG_GUSBCFG_ULPICSM_Msk (0x1U << USB_OTG_GUSBCFG_ULPICSM_Pos) /*!< 0x00080000 */
  22016. #define USB_OTG_GUSBCFG_ULPICSM USB_OTG_GUSBCFG_ULPICSM_Msk /*!< ULPI Clock SuspendM */
  22017. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Pos (20U)
  22018. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Msk (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSD_Pos) /*!< 0x00100000 */
  22019. #define USB_OTG_GUSBCFG_ULPIEVBUSD USB_OTG_GUSBCFG_ULPIEVBUSD_Msk /*!< ULPI External VBUS Drive */
  22020. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Pos (21U)
  22021. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Msk (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSI_Pos) /*!< 0x00200000 */
  22022. #define USB_OTG_GUSBCFG_ULPIEVBUSI USB_OTG_GUSBCFG_ULPIEVBUSI_Msk /*!< ULPI external VBUS indicator */
  22023. #define USB_OTG_GUSBCFG_TSDPS_Pos (22U)
  22024. #define USB_OTG_GUSBCFG_TSDPS_Msk (0x1U << USB_OTG_GUSBCFG_TSDPS_Pos) /*!< 0x00400000 */
  22025. #define USB_OTG_GUSBCFG_TSDPS USB_OTG_GUSBCFG_TSDPS_Msk /*!< TermSel DLine pulsing selection */
  22026. #define USB_OTG_GUSBCFG_PCCI_Pos (23U)
  22027. #define USB_OTG_GUSBCFG_PCCI_Msk (0x1U << USB_OTG_GUSBCFG_PCCI_Pos) /*!< 0x00800000 */
  22028. #define USB_OTG_GUSBCFG_PCCI USB_OTG_GUSBCFG_PCCI_Msk /*!< Indicator complement */
  22029. #define USB_OTG_GUSBCFG_PTCI_Pos (24U)
  22030. #define USB_OTG_GUSBCFG_PTCI_Msk (0x1U << USB_OTG_GUSBCFG_PTCI_Pos) /*!< 0x01000000 */
  22031. #define USB_OTG_GUSBCFG_PTCI USB_OTG_GUSBCFG_PTCI_Msk /*!< Indicator pass through */
  22032. #define USB_OTG_GUSBCFG_ULPIIPD_Pos (25U)
  22033. #define USB_OTG_GUSBCFG_ULPIIPD_Msk (0x1U << USB_OTG_GUSBCFG_ULPIIPD_Pos) /*!< 0x02000000 */
  22034. #define USB_OTG_GUSBCFG_ULPIIPD USB_OTG_GUSBCFG_ULPIIPD_Msk /*!< ULPI interface protect disable */
  22035. #define USB_OTG_GUSBCFG_FHMOD_Pos (29U)
  22036. #define USB_OTG_GUSBCFG_FHMOD_Msk (0x1U << USB_OTG_GUSBCFG_FHMOD_Pos) /*!< 0x20000000 */
  22037. #define USB_OTG_GUSBCFG_FHMOD USB_OTG_GUSBCFG_FHMOD_Msk /*!< Forced host mode */
  22038. #define USB_OTG_GUSBCFG_FDMOD_Pos (30U)
  22039. #define USB_OTG_GUSBCFG_FDMOD_Msk (0x1U << USB_OTG_GUSBCFG_FDMOD_Pos) /*!< 0x40000000 */
  22040. #define USB_OTG_GUSBCFG_FDMOD USB_OTG_GUSBCFG_FDMOD_Msk /*!< Forced peripheral mode */
  22041. #define USB_OTG_GUSBCFG_CTXPKT_Pos (31U)
  22042. #define USB_OTG_GUSBCFG_CTXPKT_Msk (0x1U << USB_OTG_GUSBCFG_CTXPKT_Pos) /*!< 0x80000000 */
  22043. #define USB_OTG_GUSBCFG_CTXPKT USB_OTG_GUSBCFG_CTXPKT_Msk /*!< Corrupt Tx packet */
  22044. /******************** Bit definition forUSB_OTG_GRSTCTL register ********************/
  22045. #define USB_OTG_GRSTCTL_CSRST_Pos (0U)
  22046. #define USB_OTG_GRSTCTL_CSRST_Msk (0x1U << USB_OTG_GRSTCTL_CSRST_Pos) /*!< 0x00000001 */
  22047. #define USB_OTG_GRSTCTL_CSRST USB_OTG_GRSTCTL_CSRST_Msk /*!< Core soft reset */
  22048. #define USB_OTG_GRSTCTL_HSRST_Pos (1U)
  22049. #define USB_OTG_GRSTCTL_HSRST_Msk (0x1U << USB_OTG_GRSTCTL_HSRST_Pos) /*!< 0x00000002 */
  22050. #define USB_OTG_GRSTCTL_HSRST USB_OTG_GRSTCTL_HSRST_Msk /*!< HCLK soft reset */
  22051. #define USB_OTG_GRSTCTL_FCRST_Pos (2U)
  22052. #define USB_OTG_GRSTCTL_FCRST_Msk (0x1U << USB_OTG_GRSTCTL_FCRST_Pos) /*!< 0x00000004 */
  22053. #define USB_OTG_GRSTCTL_FCRST USB_OTG_GRSTCTL_FCRST_Msk /*!< Host frame counter reset */
  22054. #define USB_OTG_GRSTCTL_RXFFLSH_Pos (4U)
  22055. #define USB_OTG_GRSTCTL_RXFFLSH_Msk (0x1U << USB_OTG_GRSTCTL_RXFFLSH_Pos) /*!< 0x00000010 */
  22056. #define USB_OTG_GRSTCTL_RXFFLSH USB_OTG_GRSTCTL_RXFFLSH_Msk /*!< RxFIFO flush */
  22057. #define USB_OTG_GRSTCTL_TXFFLSH_Pos (5U)
  22058. #define USB_OTG_GRSTCTL_TXFFLSH_Msk (0x1U << USB_OTG_GRSTCTL_TXFFLSH_Pos) /*!< 0x00000020 */
  22059. #define USB_OTG_GRSTCTL_TXFFLSH USB_OTG_GRSTCTL_TXFFLSH_Msk /*!< TxFIFO flush */
  22060. #define USB_OTG_GRSTCTL_TXFNUM_Pos (6U)
  22061. #define USB_OTG_GRSTCTL_TXFNUM_Msk (0x1FU << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x000007C0 */
  22062. #define USB_OTG_GRSTCTL_TXFNUM USB_OTG_GRSTCTL_TXFNUM_Msk /*!< TxFIFO number */
  22063. #define USB_OTG_GRSTCTL_TXFNUM_0 (0x01U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000040 */
  22064. #define USB_OTG_GRSTCTL_TXFNUM_1 (0x02U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000080 */
  22065. #define USB_OTG_GRSTCTL_TXFNUM_2 (0x04U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000100 */
  22066. #define USB_OTG_GRSTCTL_TXFNUM_3 (0x08U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000200 */
  22067. #define USB_OTG_GRSTCTL_TXFNUM_4 (0x10U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000400 */
  22068. #define USB_OTG_GRSTCTL_DMAREQ_Pos (30U)
  22069. #define USB_OTG_GRSTCTL_DMAREQ_Msk (0x1U << USB_OTG_GRSTCTL_DMAREQ_Pos) /*!< 0x40000000 */
  22070. #define USB_OTG_GRSTCTL_DMAREQ USB_OTG_GRSTCTL_DMAREQ_Msk /*!< DMA request signal */
  22071. #define USB_OTG_GRSTCTL_AHBIDL_Pos (31U)
  22072. #define USB_OTG_GRSTCTL_AHBIDL_Msk (0x1U << USB_OTG_GRSTCTL_AHBIDL_Pos) /*!< 0x80000000 */
  22073. #define USB_OTG_GRSTCTL_AHBIDL USB_OTG_GRSTCTL_AHBIDL_Msk /*!< AHB master idle */
  22074. /******************** Bit definition forUSB_OTG_DIEPMSK register ********************/
  22075. #define USB_OTG_DIEPMSK_XFRCM_Pos (0U)
  22076. #define USB_OTG_DIEPMSK_XFRCM_Msk (0x1U << USB_OTG_DIEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  22077. #define USB_OTG_DIEPMSK_XFRCM USB_OTG_DIEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22078. #define USB_OTG_DIEPMSK_EPDM_Pos (1U)
  22079. #define USB_OTG_DIEPMSK_EPDM_Msk (0x1U << USB_OTG_DIEPMSK_EPDM_Pos) /*!< 0x00000002 */
  22080. #define USB_OTG_DIEPMSK_EPDM USB_OTG_DIEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22081. #define USB_OTG_DIEPMSK_TOM_Pos (3U)
  22082. #define USB_OTG_DIEPMSK_TOM_Msk (0x1U << USB_OTG_DIEPMSK_TOM_Pos) /*!< 0x00000008 */
  22083. #define USB_OTG_DIEPMSK_TOM USB_OTG_DIEPMSK_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  22084. #define USB_OTG_DIEPMSK_ITTXFEMSK_Pos (4U)
  22085. #define USB_OTG_DIEPMSK_ITTXFEMSK_Msk (0x1U << USB_OTG_DIEPMSK_ITTXFEMSK_Pos) /*!< 0x00000010 */
  22086. #define USB_OTG_DIEPMSK_ITTXFEMSK USB_OTG_DIEPMSK_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  22087. #define USB_OTG_DIEPMSK_INEPNMM_Pos (5U)
  22088. #define USB_OTG_DIEPMSK_INEPNMM_Msk (0x1U << USB_OTG_DIEPMSK_INEPNMM_Pos) /*!< 0x00000020 */
  22089. #define USB_OTG_DIEPMSK_INEPNMM USB_OTG_DIEPMSK_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  22090. #define USB_OTG_DIEPMSK_INEPNEM_Pos (6U)
  22091. #define USB_OTG_DIEPMSK_INEPNEM_Msk (0x1U << USB_OTG_DIEPMSK_INEPNEM_Pos) /*!< 0x00000040 */
  22092. #define USB_OTG_DIEPMSK_INEPNEM USB_OTG_DIEPMSK_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  22093. #define USB_OTG_DIEPMSK_TXFURM_Pos (8U)
  22094. #define USB_OTG_DIEPMSK_TXFURM_Msk (0x1U << USB_OTG_DIEPMSK_TXFURM_Pos) /*!< 0x00000100 */
  22095. #define USB_OTG_DIEPMSK_TXFURM USB_OTG_DIEPMSK_TXFURM_Msk /*!< FIFO underrun mask */
  22096. #define USB_OTG_DIEPMSK_BIM_Pos (9U)
  22097. #define USB_OTG_DIEPMSK_BIM_Msk (0x1U << USB_OTG_DIEPMSK_BIM_Pos) /*!< 0x00000200 */
  22098. #define USB_OTG_DIEPMSK_BIM USB_OTG_DIEPMSK_BIM_Msk /*!< BNA interrupt mask */
  22099. /******************** Bit definition forUSB_OTG_HPTXSTS register ********************/
  22100. #define USB_OTG_HPTXSTS_PTXFSAVL_Pos (0U)
  22101. #define USB_OTG_HPTXSTS_PTXFSAVL_Msk (0xFFFFU << USB_OTG_HPTXSTS_PTXFSAVL_Pos) /*!< 0x0000FFFF */
  22102. #define USB_OTG_HPTXSTS_PTXFSAVL USB_OTG_HPTXSTS_PTXFSAVL_Msk /*!< Periodic transmit data FIFO space available */
  22103. #define USB_OTG_HPTXSTS_PTXQSAV_Pos (16U)
  22104. #define USB_OTG_HPTXSTS_PTXQSAV_Msk (0xFFU << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00FF0000 */
  22105. #define USB_OTG_HPTXSTS_PTXQSAV USB_OTG_HPTXSTS_PTXQSAV_Msk /*!< Periodic transmit request queue space available */
  22106. #define USB_OTG_HPTXSTS_PTXQSAV_0 (0x01U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00010000 */
  22107. #define USB_OTG_HPTXSTS_PTXQSAV_1 (0x02U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00020000 */
  22108. #define USB_OTG_HPTXSTS_PTXQSAV_2 (0x04U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00040000 */
  22109. #define USB_OTG_HPTXSTS_PTXQSAV_3 (0x08U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00080000 */
  22110. #define USB_OTG_HPTXSTS_PTXQSAV_4 (0x10U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00100000 */
  22111. #define USB_OTG_HPTXSTS_PTXQSAV_5 (0x20U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00200000 */
  22112. #define USB_OTG_HPTXSTS_PTXQSAV_6 (0x40U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00400000 */
  22113. #define USB_OTG_HPTXSTS_PTXQSAV_7 (0x80U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00800000 */
  22114. #define USB_OTG_HPTXSTS_PTXQTOP_Pos (24U)
  22115. #define USB_OTG_HPTXSTS_PTXQTOP_Msk (0xFFU << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0xFF000000 */
  22116. #define USB_OTG_HPTXSTS_PTXQTOP USB_OTG_HPTXSTS_PTXQTOP_Msk /*!< Top of the periodic transmit request queue */
  22117. #define USB_OTG_HPTXSTS_PTXQTOP_0 (0x01U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x01000000 */
  22118. #define USB_OTG_HPTXSTS_PTXQTOP_1 (0x02U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x02000000 */
  22119. #define USB_OTG_HPTXSTS_PTXQTOP_2 (0x04U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x04000000 */
  22120. #define USB_OTG_HPTXSTS_PTXQTOP_3 (0x08U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x08000000 */
  22121. #define USB_OTG_HPTXSTS_PTXQTOP_4 (0x10U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x10000000 */
  22122. #define USB_OTG_HPTXSTS_PTXQTOP_5 (0x20U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x20000000 */
  22123. #define USB_OTG_HPTXSTS_PTXQTOP_6 (0x40U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x40000000 */
  22124. #define USB_OTG_HPTXSTS_PTXQTOP_7 (0x80U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x80000000 */
  22125. /******************** Bit definition forUSB_OTG_HAINT register ********************/
  22126. #define USB_OTG_HAINT_HAINT_Pos (0U)
  22127. #define USB_OTG_HAINT_HAINT_Msk (0xFFFFU << USB_OTG_HAINT_HAINT_Pos) /*!< 0x0000FFFF */
  22128. #define USB_OTG_HAINT_HAINT USB_OTG_HAINT_HAINT_Msk /*!< Channel interrupts */
  22129. /******************** Bit definition forUSB_OTG_DOEPMSK register ********************/
  22130. #define USB_OTG_DOEPMSK_XFRCM_Pos (0U)
  22131. #define USB_OTG_DOEPMSK_XFRCM_Msk (0x1U << USB_OTG_DOEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  22132. #define USB_OTG_DOEPMSK_XFRCM USB_OTG_DOEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22133. #define USB_OTG_DOEPMSK_EPDM_Pos (1U)
  22134. #define USB_OTG_DOEPMSK_EPDM_Msk (0x1U << USB_OTG_DOEPMSK_EPDM_Pos) /*!< 0x00000002 */
  22135. #define USB_OTG_DOEPMSK_EPDM USB_OTG_DOEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22136. #define USB_OTG_DOEPMSK_STUPM_Pos (3U)
  22137. #define USB_OTG_DOEPMSK_STUPM_Msk (0x1U << USB_OTG_DOEPMSK_STUPM_Pos) /*!< 0x00000008 */
  22138. #define USB_OTG_DOEPMSK_STUPM USB_OTG_DOEPMSK_STUPM_Msk /*!< SETUP phase done mask */
  22139. #define USB_OTG_DOEPMSK_OTEPDM_Pos (4U)
  22140. #define USB_OTG_DOEPMSK_OTEPDM_Msk (0x1U << USB_OTG_DOEPMSK_OTEPDM_Pos) /*!< 0x00000010 */
  22141. #define USB_OTG_DOEPMSK_OTEPDM USB_OTG_DOEPMSK_OTEPDM_Msk /*!< OUT token received when endpoint disabled mask */
  22142. #define USB_OTG_DOEPMSK_B2BSTUP_Pos (6U)
  22143. #define USB_OTG_DOEPMSK_B2BSTUP_Msk (0x1U << USB_OTG_DOEPMSK_B2BSTUP_Pos) /*!< 0x00000040 */
  22144. #define USB_OTG_DOEPMSK_B2BSTUP USB_OTG_DOEPMSK_B2BSTUP_Msk /*!< Back-to-back SETUP packets received mask */
  22145. #define USB_OTG_DOEPMSK_OPEM_Pos (8U)
  22146. #define USB_OTG_DOEPMSK_OPEM_Msk (0x1U << USB_OTG_DOEPMSK_OPEM_Pos) /*!< 0x00000100 */
  22147. #define USB_OTG_DOEPMSK_OPEM USB_OTG_DOEPMSK_OPEM_Msk /*!< OUT packet error mask */
  22148. #define USB_OTG_DOEPMSK_BOIM_Pos (9U)
  22149. #define USB_OTG_DOEPMSK_BOIM_Msk (0x1U << USB_OTG_DOEPMSK_BOIM_Pos) /*!< 0x00000200 */
  22150. #define USB_OTG_DOEPMSK_BOIM USB_OTG_DOEPMSK_BOIM_Msk /*!< BNA interrupt mask */
  22151. /******************** Bit definition forUSB_OTG_GINTSTS register ********************/
  22152. #define USB_OTG_GINTSTS_CMOD_Pos (0U)
  22153. #define USB_OTG_GINTSTS_CMOD_Msk (0x1U << USB_OTG_GINTSTS_CMOD_Pos) /*!< 0x00000001 */
  22154. #define USB_OTG_GINTSTS_CMOD USB_OTG_GINTSTS_CMOD_Msk /*!< Current mode of operation */
  22155. #define USB_OTG_GINTSTS_MMIS_Pos (1U)
  22156. #define USB_OTG_GINTSTS_MMIS_Msk (0x1U << USB_OTG_GINTSTS_MMIS_Pos) /*!< 0x00000002 */
  22157. #define USB_OTG_GINTSTS_MMIS USB_OTG_GINTSTS_MMIS_Msk /*!< Mode mismatch interrupt */
  22158. #define USB_OTG_GINTSTS_OTGINT_Pos (2U)
  22159. #define USB_OTG_GINTSTS_OTGINT_Msk (0x1U << USB_OTG_GINTSTS_OTGINT_Pos) /*!< 0x00000004 */
  22160. #define USB_OTG_GINTSTS_OTGINT USB_OTG_GINTSTS_OTGINT_Msk /*!< OTG interrupt */
  22161. #define USB_OTG_GINTSTS_SOF_Pos (3U)
  22162. #define USB_OTG_GINTSTS_SOF_Msk (0x1U << USB_OTG_GINTSTS_SOF_Pos) /*!< 0x00000008 */
  22163. #define USB_OTG_GINTSTS_SOF USB_OTG_GINTSTS_SOF_Msk /*!< Start of frame */
  22164. #define USB_OTG_GINTSTS_RXFLVL_Pos (4U)
  22165. #define USB_OTG_GINTSTS_RXFLVL_Msk (0x1U << USB_OTG_GINTSTS_RXFLVL_Pos) /*!< 0x00000010 */
  22166. #define USB_OTG_GINTSTS_RXFLVL USB_OTG_GINTSTS_RXFLVL_Msk /*!< RxFIFO nonempty */
  22167. #define USB_OTG_GINTSTS_NPTXFE_Pos (5U)
  22168. #define USB_OTG_GINTSTS_NPTXFE_Msk (0x1U << USB_OTG_GINTSTS_NPTXFE_Pos) /*!< 0x00000020 */
  22169. #define USB_OTG_GINTSTS_NPTXFE USB_OTG_GINTSTS_NPTXFE_Msk /*!< Nonperiodic TxFIFO empty */
  22170. #define USB_OTG_GINTSTS_GINAKEFF_Pos (6U)
  22171. #define USB_OTG_GINTSTS_GINAKEFF_Msk (0x1U << USB_OTG_GINTSTS_GINAKEFF_Pos) /*!< 0x00000040 */
  22172. #define USB_OTG_GINTSTS_GINAKEFF USB_OTG_GINTSTS_GINAKEFF_Msk /*!< Global IN nonperiodic NAK effective */
  22173. #define USB_OTG_GINTSTS_BOUTNAKEFF_Pos (7U)
  22174. #define USB_OTG_GINTSTS_BOUTNAKEFF_Msk (0x1U << USB_OTG_GINTSTS_BOUTNAKEFF_Pos) /*!< 0x00000080 */
  22175. #define USB_OTG_GINTSTS_BOUTNAKEFF USB_OTG_GINTSTS_BOUTNAKEFF_Msk /*!< Global OUT NAK effective */
  22176. #define USB_OTG_GINTSTS_ESUSP_Pos (10U)
  22177. #define USB_OTG_GINTSTS_ESUSP_Msk (0x1U << USB_OTG_GINTSTS_ESUSP_Pos) /*!< 0x00000400 */
  22178. #define USB_OTG_GINTSTS_ESUSP USB_OTG_GINTSTS_ESUSP_Msk /*!< Early suspend */
  22179. #define USB_OTG_GINTSTS_USBSUSP_Pos (11U)
  22180. #define USB_OTG_GINTSTS_USBSUSP_Msk (0x1U << USB_OTG_GINTSTS_USBSUSP_Pos) /*!< 0x00000800 */
  22181. #define USB_OTG_GINTSTS_USBSUSP USB_OTG_GINTSTS_USBSUSP_Msk /*!< USB suspend */
  22182. #define USB_OTG_GINTSTS_USBRST_Pos (12U)
  22183. #define USB_OTG_GINTSTS_USBRST_Msk (0x1U << USB_OTG_GINTSTS_USBRST_Pos) /*!< 0x00001000 */
  22184. #define USB_OTG_GINTSTS_USBRST USB_OTG_GINTSTS_USBRST_Msk /*!< USB reset */
  22185. #define USB_OTG_GINTSTS_ENUMDNE_Pos (13U)
  22186. #define USB_OTG_GINTSTS_ENUMDNE_Msk (0x1U << USB_OTG_GINTSTS_ENUMDNE_Pos) /*!< 0x00002000 */
  22187. #define USB_OTG_GINTSTS_ENUMDNE USB_OTG_GINTSTS_ENUMDNE_Msk /*!< Enumeration done */
  22188. #define USB_OTG_GINTSTS_ISOODRP_Pos (14U)
  22189. #define USB_OTG_GINTSTS_ISOODRP_Msk (0x1U << USB_OTG_GINTSTS_ISOODRP_Pos) /*!< 0x00004000 */
  22190. #define USB_OTG_GINTSTS_ISOODRP USB_OTG_GINTSTS_ISOODRP_Msk /*!< Isochronous OUT packet dropped interrupt */
  22191. #define USB_OTG_GINTSTS_EOPF_Pos (15U)
  22192. #define USB_OTG_GINTSTS_EOPF_Msk (0x1U << USB_OTG_GINTSTS_EOPF_Pos) /*!< 0x00008000 */
  22193. #define USB_OTG_GINTSTS_EOPF USB_OTG_GINTSTS_EOPF_Msk /*!< End of periodic frame interrupt */
  22194. #define USB_OTG_GINTSTS_IEPINT_Pos (18U)
  22195. #define USB_OTG_GINTSTS_IEPINT_Msk (0x1U << USB_OTG_GINTSTS_IEPINT_Pos) /*!< 0x00040000 */
  22196. #define USB_OTG_GINTSTS_IEPINT USB_OTG_GINTSTS_IEPINT_Msk /*!< IN endpoint interrupt */
  22197. #define USB_OTG_GINTSTS_OEPINT_Pos (19U)
  22198. #define USB_OTG_GINTSTS_OEPINT_Msk (0x1U << USB_OTG_GINTSTS_OEPINT_Pos) /*!< 0x00080000 */
  22199. #define USB_OTG_GINTSTS_OEPINT USB_OTG_GINTSTS_OEPINT_Msk /*!< OUT endpoint interrupt */
  22200. #define USB_OTG_GINTSTS_IISOIXFR_Pos (20U)
  22201. #define USB_OTG_GINTSTS_IISOIXFR_Msk (0x1U << USB_OTG_GINTSTS_IISOIXFR_Pos) /*!< 0x00100000 */
  22202. #define USB_OTG_GINTSTS_IISOIXFR USB_OTG_GINTSTS_IISOIXFR_Msk /*!< Incomplete isochronous IN transfer */
  22203. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos (21U)
  22204. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk (0x1U << USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos) /*!< 0x00200000 */
  22205. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk /*!< Incomplete periodic transfer */
  22206. #define USB_OTG_GINTSTS_DATAFSUSP_Pos (22U)
  22207. #define USB_OTG_GINTSTS_DATAFSUSP_Msk (0x1U << USB_OTG_GINTSTS_DATAFSUSP_Pos) /*!< 0x00400000 */
  22208. #define USB_OTG_GINTSTS_DATAFSUSP USB_OTG_GINTSTS_DATAFSUSP_Msk /*!< Data fetch suspended */
  22209. #define USB_OTG_GINTSTS_RSTDET_Pos (23U)
  22210. #define USB_OTG_GINTSTS_RSTDET_Msk (0x1U << USB_OTG_GINTSTS_RSTDET_Pos) /*!< 0x00800000 */
  22211. #define USB_OTG_GINTSTS_RSTDET USB_OTG_GINTSTS_RSTDET_Msk /*!< Reset detected interrupt */
  22212. #define USB_OTG_GINTSTS_HPRTINT_Pos (24U)
  22213. #define USB_OTG_GINTSTS_HPRTINT_Msk (0x1U << USB_OTG_GINTSTS_HPRTINT_Pos) /*!< 0x01000000 */
  22214. #define USB_OTG_GINTSTS_HPRTINT USB_OTG_GINTSTS_HPRTINT_Msk /*!< Host port interrupt */
  22215. #define USB_OTG_GINTSTS_HCINT_Pos (25U)
  22216. #define USB_OTG_GINTSTS_HCINT_Msk (0x1U << USB_OTG_GINTSTS_HCINT_Pos) /*!< 0x02000000 */
  22217. #define USB_OTG_GINTSTS_HCINT USB_OTG_GINTSTS_HCINT_Msk /*!< Host channels interrupt */
  22218. #define USB_OTG_GINTSTS_PTXFE_Pos (26U)
  22219. #define USB_OTG_GINTSTS_PTXFE_Msk (0x1U << USB_OTG_GINTSTS_PTXFE_Pos) /*!< 0x04000000 */
  22220. #define USB_OTG_GINTSTS_PTXFE USB_OTG_GINTSTS_PTXFE_Msk /*!< Periodic TxFIFO empty */
  22221. #define USB_OTG_GINTSTS_LPMINT_Pos (27U)
  22222. #define USB_OTG_GINTSTS_LPMINT_Msk (0x1U << USB_OTG_GINTSTS_LPMINT_Pos) /*!< 0x08000000 */
  22223. #define USB_OTG_GINTSTS_LPMINT USB_OTG_GINTSTS_LPMINT_Msk /*!< LPM interrupt */
  22224. #define USB_OTG_GINTSTS_CIDSCHG_Pos (28U)
  22225. #define USB_OTG_GINTSTS_CIDSCHG_Msk (0x1U << USB_OTG_GINTSTS_CIDSCHG_Pos) /*!< 0x10000000 */
  22226. #define USB_OTG_GINTSTS_CIDSCHG USB_OTG_GINTSTS_CIDSCHG_Msk /*!< Connector ID status change */
  22227. #define USB_OTG_GINTSTS_DISCINT_Pos (29U)
  22228. #define USB_OTG_GINTSTS_DISCINT_Msk (0x1U << USB_OTG_GINTSTS_DISCINT_Pos) /*!< 0x20000000 */
  22229. #define USB_OTG_GINTSTS_DISCINT USB_OTG_GINTSTS_DISCINT_Msk /*!< Disconnect detected interrupt */
  22230. #define USB_OTG_GINTSTS_SRQINT_Pos (30U)
  22231. #define USB_OTG_GINTSTS_SRQINT_Msk (0x1U << USB_OTG_GINTSTS_SRQINT_Pos) /*!< 0x40000000 */
  22232. #define USB_OTG_GINTSTS_SRQINT USB_OTG_GINTSTS_SRQINT_Msk /*!< Session request/new session detected interrupt */
  22233. #define USB_OTG_GINTSTS_WKUINT_Pos (31U)
  22234. #define USB_OTG_GINTSTS_WKUINT_Msk (0x1U << USB_OTG_GINTSTS_WKUINT_Pos) /*!< 0x80000000 */
  22235. #define USB_OTG_GINTSTS_WKUINT USB_OTG_GINTSTS_WKUINT_Msk /*!< Resume/remote wakeup detected interrupt */
  22236. /******************** Bit definition forUSB_OTG_GINTMSK register ********************/
  22237. #define USB_OTG_GINTMSK_MMISM_Pos (1U)
  22238. #define USB_OTG_GINTMSK_MMISM_Msk (0x1U << USB_OTG_GINTMSK_MMISM_Pos) /*!< 0x00000002 */
  22239. #define USB_OTG_GINTMSK_MMISM USB_OTG_GINTMSK_MMISM_Msk /*!< Mode mismatch interrupt mask */
  22240. #define USB_OTG_GINTMSK_OTGINT_Pos (2U)
  22241. #define USB_OTG_GINTMSK_OTGINT_Msk (0x1U << USB_OTG_GINTMSK_OTGINT_Pos) /*!< 0x00000004 */
  22242. #define USB_OTG_GINTMSK_OTGINT USB_OTG_GINTMSK_OTGINT_Msk /*!< OTG interrupt mask */
  22243. #define USB_OTG_GINTMSK_SOFM_Pos (3U)
  22244. #define USB_OTG_GINTMSK_SOFM_Msk (0x1U << USB_OTG_GINTMSK_SOFM_Pos) /*!< 0x00000008 */
  22245. #define USB_OTG_GINTMSK_SOFM USB_OTG_GINTMSK_SOFM_Msk /*!< Start of frame mask */
  22246. #define USB_OTG_GINTMSK_RXFLVLM_Pos (4U)
  22247. #define USB_OTG_GINTMSK_RXFLVLM_Msk (0x1U << USB_OTG_GINTMSK_RXFLVLM_Pos) /*!< 0x00000010 */
  22248. #define USB_OTG_GINTMSK_RXFLVLM USB_OTG_GINTMSK_RXFLVLM_Msk /*!< Receive FIFO nonempty mask */
  22249. #define USB_OTG_GINTMSK_NPTXFEM_Pos (5U)
  22250. #define USB_OTG_GINTMSK_NPTXFEM_Msk (0x1U << USB_OTG_GINTMSK_NPTXFEM_Pos) /*!< 0x00000020 */
  22251. #define USB_OTG_GINTMSK_NPTXFEM USB_OTG_GINTMSK_NPTXFEM_Msk /*!< Nonperiodic TxFIFO empty mask */
  22252. #define USB_OTG_GINTMSK_GINAKEFFM_Pos (6U)
  22253. #define USB_OTG_GINTMSK_GINAKEFFM_Msk (0x1U << USB_OTG_GINTMSK_GINAKEFFM_Pos) /*!< 0x00000040 */
  22254. #define USB_OTG_GINTMSK_GINAKEFFM USB_OTG_GINTMSK_GINAKEFFM_Msk /*!< Global nonperiodic IN NAK effective mask */
  22255. #define USB_OTG_GINTMSK_GONAKEFFM_Pos (7U)
  22256. #define USB_OTG_GINTMSK_GONAKEFFM_Msk (0x1U << USB_OTG_GINTMSK_GONAKEFFM_Pos) /*!< 0x00000080 */
  22257. #define USB_OTG_GINTMSK_GONAKEFFM USB_OTG_GINTMSK_GONAKEFFM_Msk /*!< Global OUT NAK effective mask */
  22258. #define USB_OTG_GINTMSK_ESUSPM_Pos (10U)
  22259. #define USB_OTG_GINTMSK_ESUSPM_Msk (0x1U << USB_OTG_GINTMSK_ESUSPM_Pos) /*!< 0x00000400 */
  22260. #define USB_OTG_GINTMSK_ESUSPM USB_OTG_GINTMSK_ESUSPM_Msk /*!< Early suspend mask */
  22261. #define USB_OTG_GINTMSK_USBSUSPM_Pos (11U)
  22262. #define USB_OTG_GINTMSK_USBSUSPM_Msk (0x1U << USB_OTG_GINTMSK_USBSUSPM_Pos) /*!< 0x00000800 */
  22263. #define USB_OTG_GINTMSK_USBSUSPM USB_OTG_GINTMSK_USBSUSPM_Msk /*!< USB suspend mask */
  22264. #define USB_OTG_GINTMSK_USBRST_Pos (12U)
  22265. #define USB_OTG_GINTMSK_USBRST_Msk (0x1U << USB_OTG_GINTMSK_USBRST_Pos) /*!< 0x00001000 */
  22266. #define USB_OTG_GINTMSK_USBRST USB_OTG_GINTMSK_USBRST_Msk /*!< USB reset mask */
  22267. #define USB_OTG_GINTMSK_ENUMDNEM_Pos (13U)
  22268. #define USB_OTG_GINTMSK_ENUMDNEM_Msk (0x1U << USB_OTG_GINTMSK_ENUMDNEM_Pos) /*!< 0x00002000 */
  22269. #define USB_OTG_GINTMSK_ENUMDNEM USB_OTG_GINTMSK_ENUMDNEM_Msk /*!< Enumeration done mask */
  22270. #define USB_OTG_GINTMSK_ISOODRPM_Pos (14U)
  22271. #define USB_OTG_GINTMSK_ISOODRPM_Msk (0x1U << USB_OTG_GINTMSK_ISOODRPM_Pos) /*!< 0x00004000 */
  22272. #define USB_OTG_GINTMSK_ISOODRPM USB_OTG_GINTMSK_ISOODRPM_Msk /*!< Isochronous OUT packet dropped interrupt mask */
  22273. #define USB_OTG_GINTMSK_EOPFM_Pos (15U)
  22274. #define USB_OTG_GINTMSK_EOPFM_Msk (0x1U << USB_OTG_GINTMSK_EOPFM_Pos) /*!< 0x00008000 */
  22275. #define USB_OTG_GINTMSK_EOPFM USB_OTG_GINTMSK_EOPFM_Msk /*!< End of periodic frame interrupt mask */
  22276. #define USB_OTG_GINTMSK_EPMISM_Pos (17U)
  22277. #define USB_OTG_GINTMSK_EPMISM_Msk (0x1U << USB_OTG_GINTMSK_EPMISM_Pos) /*!< 0x00020000 */
  22278. #define USB_OTG_GINTMSK_EPMISM USB_OTG_GINTMSK_EPMISM_Msk /*!< Endpoint mismatch interrupt mask */
  22279. #define USB_OTG_GINTMSK_IEPINT_Pos (18U)
  22280. #define USB_OTG_GINTMSK_IEPINT_Msk (0x1U << USB_OTG_GINTMSK_IEPINT_Pos) /*!< 0x00040000 */
  22281. #define USB_OTG_GINTMSK_IEPINT USB_OTG_GINTMSK_IEPINT_Msk /*!< IN endpoints interrupt mask */
  22282. #define USB_OTG_GINTMSK_OEPINT_Pos (19U)
  22283. #define USB_OTG_GINTMSK_OEPINT_Msk (0x1U << USB_OTG_GINTMSK_OEPINT_Pos) /*!< 0x00080000 */
  22284. #define USB_OTG_GINTMSK_OEPINT USB_OTG_GINTMSK_OEPINT_Msk /*!< OUT endpoints interrupt mask */
  22285. #define USB_OTG_GINTMSK_IISOIXFRM_Pos (20U)
  22286. #define USB_OTG_GINTMSK_IISOIXFRM_Msk (0x1U << USB_OTG_GINTMSK_IISOIXFRM_Pos) /*!< 0x00100000 */
  22287. #define USB_OTG_GINTMSK_IISOIXFRM USB_OTG_GINTMSK_IISOIXFRM_Msk /*!< Incomplete isochronous IN transfer mask */
  22288. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos (21U)
  22289. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk (0x1U << USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos) /*!< 0x00200000 */
  22290. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk /*!< Incomplete periodic transfer mask */
  22291. #define USB_OTG_GINTMSK_FSUSPM_Pos (22U)
  22292. #define USB_OTG_GINTMSK_FSUSPM_Msk (0x1U << USB_OTG_GINTMSK_FSUSPM_Pos) /*!< 0x00400000 */
  22293. #define USB_OTG_GINTMSK_FSUSPM USB_OTG_GINTMSK_FSUSPM_Msk /*!< Data fetch suspended mask */
  22294. #define USB_OTG_GINTMSK_RSTDEM_Pos (23U)
  22295. #define USB_OTG_GINTMSK_RSTDEM_Msk (0x1U << USB_OTG_GINTMSK_RSTDEM_Pos) /*!< 0x00800000 */
  22296. #define USB_OTG_GINTMSK_RSTDEM USB_OTG_GINTMSK_RSTDEM_Msk /*!< Reset detected interrupt mask */
  22297. #define USB_OTG_GINTMSK_PRTIM_Pos (24U)
  22298. #define USB_OTG_GINTMSK_PRTIM_Msk (0x1U << USB_OTG_GINTMSK_PRTIM_Pos) /*!< 0x01000000 */
  22299. #define USB_OTG_GINTMSK_PRTIM USB_OTG_GINTMSK_PRTIM_Msk /*!< Host port interrupt mask */
  22300. #define USB_OTG_GINTMSK_HCIM_Pos (25U)
  22301. #define USB_OTG_GINTMSK_HCIM_Msk (0x1U << USB_OTG_GINTMSK_HCIM_Pos) /*!< 0x02000000 */
  22302. #define USB_OTG_GINTMSK_HCIM USB_OTG_GINTMSK_HCIM_Msk /*!< Host channels interrupt mask */
  22303. #define USB_OTG_GINTMSK_PTXFEM_Pos (26U)
  22304. #define USB_OTG_GINTMSK_PTXFEM_Msk (0x1U << USB_OTG_GINTMSK_PTXFEM_Pos) /*!< 0x04000000 */
  22305. #define USB_OTG_GINTMSK_PTXFEM USB_OTG_GINTMSK_PTXFEM_Msk /*!< Periodic TxFIFO empty mask */
  22306. #define USB_OTG_GINTMSK_LPMINTM_Pos (27U)
  22307. #define USB_OTG_GINTMSK_LPMINTM_Msk (0x1U << USB_OTG_GINTMSK_LPMINTM_Pos) /*!< 0x08000000 */
  22308. #define USB_OTG_GINTMSK_LPMINTM USB_OTG_GINTMSK_LPMINTM_Msk /*!< LPM interrupt Mask */
  22309. #define USB_OTG_GINTMSK_CIDSCHGM_Pos (28U)
  22310. #define USB_OTG_GINTMSK_CIDSCHGM_Msk (0x1U << USB_OTG_GINTMSK_CIDSCHGM_Pos) /*!< 0x10000000 */
  22311. #define USB_OTG_GINTMSK_CIDSCHGM USB_OTG_GINTMSK_CIDSCHGM_Msk /*!< Connector ID status change mask */
  22312. #define USB_OTG_GINTMSK_DISCINT_Pos (29U)
  22313. #define USB_OTG_GINTMSK_DISCINT_Msk (0x1U << USB_OTG_GINTMSK_DISCINT_Pos) /*!< 0x20000000 */
  22314. #define USB_OTG_GINTMSK_DISCINT USB_OTG_GINTMSK_DISCINT_Msk /*!< Disconnect detected interrupt mask */
  22315. #define USB_OTG_GINTMSK_SRQIM_Pos (30U)
  22316. #define USB_OTG_GINTMSK_SRQIM_Msk (0x1U << USB_OTG_GINTMSK_SRQIM_Pos) /*!< 0x40000000 */
  22317. #define USB_OTG_GINTMSK_SRQIM USB_OTG_GINTMSK_SRQIM_Msk /*!< Session request/new session detected interrupt mask */
  22318. #define USB_OTG_GINTMSK_WUIM_Pos (31U)
  22319. #define USB_OTG_GINTMSK_WUIM_Msk (0x1U << USB_OTG_GINTMSK_WUIM_Pos) /*!< 0x80000000 */
  22320. #define USB_OTG_GINTMSK_WUIM USB_OTG_GINTMSK_WUIM_Msk /*!< Resume/remote wakeup detected interrupt mask */
  22321. /******************** Bit definition forUSB_OTG_DAINT register ********************/
  22322. #define USB_OTG_DAINT_IEPINT_Pos (0U)
  22323. #define USB_OTG_DAINT_IEPINT_Msk (0xFFFFU << USB_OTG_DAINT_IEPINT_Pos) /*!< 0x0000FFFF */
  22324. #define USB_OTG_DAINT_IEPINT USB_OTG_DAINT_IEPINT_Msk /*!< IN endpoint interrupt bits */
  22325. #define USB_OTG_DAINT_OEPINT_Pos (16U)
  22326. #define USB_OTG_DAINT_OEPINT_Msk (0xFFFFU << USB_OTG_DAINT_OEPINT_Pos) /*!< 0xFFFF0000 */
  22327. #define USB_OTG_DAINT_OEPINT USB_OTG_DAINT_OEPINT_Msk /*!< OUT endpoint interrupt bits */
  22328. /******************** Bit definition forUSB_OTG_HAINTMSK register ********************/
  22329. #define USB_OTG_HAINTMSK_HAINTM_Pos (0U)
  22330. #define USB_OTG_HAINTMSK_HAINTM_Msk (0xFFFFU << USB_OTG_HAINTMSK_HAINTM_Pos) /*!< 0x0000FFFF */
  22331. #define USB_OTG_HAINTMSK_HAINTM USB_OTG_HAINTMSK_HAINTM_Msk /*!< Channel interrupt mask */
  22332. /******************** Bit definition for USB_OTG_GRXSTSP register ********************/
  22333. #define USB_OTG_GRXSTSP_EPNUM_Pos (0U)
  22334. #define USB_OTG_GRXSTSP_EPNUM_Msk (0xFU << USB_OTG_GRXSTSP_EPNUM_Pos) /*!< 0x0000000F */
  22335. #define USB_OTG_GRXSTSP_EPNUM USB_OTG_GRXSTSP_EPNUM_Msk /*!< IN EP interrupt mask bits */
  22336. #define USB_OTG_GRXSTSP_BCNT_Pos (4U)
  22337. #define USB_OTG_GRXSTSP_BCNT_Msk (0x7FFU << USB_OTG_GRXSTSP_BCNT_Pos) /*!< 0x00007FF0 */
  22338. #define USB_OTG_GRXSTSP_BCNT USB_OTG_GRXSTSP_BCNT_Msk /*!< OUT EP interrupt mask bits */
  22339. #define USB_OTG_GRXSTSP_DPID_Pos (15U)
  22340. #define USB_OTG_GRXSTSP_DPID_Msk (0x3U << USB_OTG_GRXSTSP_DPID_Pos) /*!< 0x00018000 */
  22341. #define USB_OTG_GRXSTSP_DPID USB_OTG_GRXSTSP_DPID_Msk /*!< OUT EP interrupt mask bits */
  22342. #define USB_OTG_GRXSTSP_PKTSTS_Pos (17U)
  22343. #define USB_OTG_GRXSTSP_PKTSTS_Msk (0xFU << USB_OTG_GRXSTSP_PKTSTS_Pos) /*!< 0x001E0000 */
  22344. #define USB_OTG_GRXSTSP_PKTSTS USB_OTG_GRXSTSP_PKTSTS_Msk /*!< OUT EP interrupt mask bits */
  22345. /******************** Bit definition forUSB_OTG_DAINTMSK register ********************/
  22346. #define USB_OTG_DAINTMSK_IEPM_Pos (0U)
  22347. #define USB_OTG_DAINTMSK_IEPM_Msk (0xFFFFU << USB_OTG_DAINTMSK_IEPM_Pos) /*!< 0x0000FFFF */
  22348. #define USB_OTG_DAINTMSK_IEPM USB_OTG_DAINTMSK_IEPM_Msk /*!< IN EP interrupt mask bits */
  22349. #define USB_OTG_DAINTMSK_OEPM_Pos (16U)
  22350. #define USB_OTG_DAINTMSK_OEPM_Msk (0xFFFFU << USB_OTG_DAINTMSK_OEPM_Pos) /*!< 0xFFFF0000 */
  22351. #define USB_OTG_DAINTMSK_OEPM USB_OTG_DAINTMSK_OEPM_Msk /*!< OUT EP interrupt mask bits */
  22352. /******************** Bit definition for OTG register ********************/
  22353. #define USB_OTG_CHNUM_Pos (0U)
  22354. #define USB_OTG_CHNUM_Msk (0xFU << USB_OTG_CHNUM_Pos) /*!< 0x0000000F */
  22355. #define USB_OTG_CHNUM USB_OTG_CHNUM_Msk /*!< Channel number */
  22356. #define USB_OTG_CHNUM_0 (0x1U << USB_OTG_CHNUM_Pos) /*!< 0x00000001 */
  22357. #define USB_OTG_CHNUM_1 (0x2U << USB_OTG_CHNUM_Pos) /*!< 0x00000002 */
  22358. #define USB_OTG_CHNUM_2 (0x4U << USB_OTG_CHNUM_Pos) /*!< 0x00000004 */
  22359. #define USB_OTG_CHNUM_3 (0x8U << USB_OTG_CHNUM_Pos) /*!< 0x00000008 */
  22360. #define USB_OTG_BCNT_Pos (4U)
  22361. #define USB_OTG_BCNT_Msk (0x7FFU << USB_OTG_BCNT_Pos) /*!< 0x00007FF0 */
  22362. #define USB_OTG_BCNT USB_OTG_BCNT_Msk /*!< Byte count */
  22363. #define USB_OTG_DPID_Pos (15U)
  22364. #define USB_OTG_DPID_Msk (0x3U << USB_OTG_DPID_Pos) /*!< 0x00018000 */
  22365. #define USB_OTG_DPID USB_OTG_DPID_Msk /*!< Data PID */
  22366. #define USB_OTG_DPID_0 (0x1U << USB_OTG_DPID_Pos) /*!< 0x00008000 */
  22367. #define USB_OTG_DPID_1 (0x2U << USB_OTG_DPID_Pos) /*!< 0x00010000 */
  22368. #define USB_OTG_PKTSTS_Pos (17U)
  22369. #define USB_OTG_PKTSTS_Msk (0xFU << USB_OTG_PKTSTS_Pos) /*!< 0x001E0000 */
  22370. #define USB_OTG_PKTSTS USB_OTG_PKTSTS_Msk /*!< Packet status */
  22371. #define USB_OTG_PKTSTS_0 (0x1U << USB_OTG_PKTSTS_Pos) /*!< 0x00020000 */
  22372. #define USB_OTG_PKTSTS_1 (0x2U << USB_OTG_PKTSTS_Pos) /*!< 0x00040000 */
  22373. #define USB_OTG_PKTSTS_2 (0x4U << USB_OTG_PKTSTS_Pos) /*!< 0x00080000 */
  22374. #define USB_OTG_PKTSTS_3 (0x8U << USB_OTG_PKTSTS_Pos) /*!< 0x00100000 */
  22375. #define USB_OTG_EPNUM_Pos (0U)
  22376. #define USB_OTG_EPNUM_Msk (0xFU << USB_OTG_EPNUM_Pos) /*!< 0x0000000F */
  22377. #define USB_OTG_EPNUM USB_OTG_EPNUM_Msk /*!< Endpoint number */
  22378. #define USB_OTG_EPNUM_0 (0x1U << USB_OTG_EPNUM_Pos) /*!< 0x00000001 */
  22379. #define USB_OTG_EPNUM_1 (0x2U << USB_OTG_EPNUM_Pos) /*!< 0x00000002 */
  22380. #define USB_OTG_EPNUM_2 (0x4U << USB_OTG_EPNUM_Pos) /*!< 0x00000004 */
  22381. #define USB_OTG_EPNUM_3 (0x8U << USB_OTG_EPNUM_Pos) /*!< 0x00000008 */
  22382. #define USB_OTG_FRMNUM_Pos (21U)
  22383. #define USB_OTG_FRMNUM_Msk (0xFU << USB_OTG_FRMNUM_Pos) /*!< 0x01E00000 */
  22384. #define USB_OTG_FRMNUM USB_OTG_FRMNUM_Msk /*!< Frame number */
  22385. #define USB_OTG_FRMNUM_0 (0x1U << USB_OTG_FRMNUM_Pos) /*!< 0x00200000 */
  22386. #define USB_OTG_FRMNUM_1 (0x2U << USB_OTG_FRMNUM_Pos) /*!< 0x00400000 */
  22387. #define USB_OTG_FRMNUM_2 (0x4U << USB_OTG_FRMNUM_Pos) /*!< 0x00800000 */
  22388. #define USB_OTG_FRMNUM_3 (0x8U << USB_OTG_FRMNUM_Pos) /*!< 0x01000000 */
  22389. /******************** Bit definition forUSB_OTG_GRXFSIZ register ********************/
  22390. #define USB_OTG_GRXFSIZ_RXFD_Pos (0U)
  22391. #define USB_OTG_GRXFSIZ_RXFD_Msk (0xFFFFU << USB_OTG_GRXFSIZ_RXFD_Pos) /*!< 0x0000FFFF */
  22392. #define USB_OTG_GRXFSIZ_RXFD USB_OTG_GRXFSIZ_RXFD_Msk /*!< RxFIFO depth */
  22393. /******************** Bit definition forUSB_OTG_DVBUSDIS register ********************/
  22394. #define USB_OTG_DVBUSDIS_VBUSDT_Pos (0U)
  22395. #define USB_OTG_DVBUSDIS_VBUSDT_Msk (0xFFFFU << USB_OTG_DVBUSDIS_VBUSDT_Pos) /*!< 0x0000FFFF */
  22396. #define USB_OTG_DVBUSDIS_VBUSDT USB_OTG_DVBUSDIS_VBUSDT_Msk /*!< Device VBUS discharge time */
  22397. /******************** Bit definition for OTG register ********************/
  22398. #define USB_OTG_NPTXFSA_Pos (0U)
  22399. #define USB_OTG_NPTXFSA_Msk (0xFFFFU << USB_OTG_NPTXFSA_Pos) /*!< 0x0000FFFF */
  22400. #define USB_OTG_NPTXFSA USB_OTG_NPTXFSA_Msk /*!< Nonperiodic transmit RAM start address */
  22401. #define USB_OTG_NPTXFD_Pos (16U)
  22402. #define USB_OTG_NPTXFD_Msk (0xFFFFU << USB_OTG_NPTXFD_Pos) /*!< 0xFFFF0000 */
  22403. #define USB_OTG_NPTXFD USB_OTG_NPTXFD_Msk /*!< Nonperiodic TxFIFO depth */
  22404. #define USB_OTG_TX0FSA_Pos (0U)
  22405. #define USB_OTG_TX0FSA_Msk (0xFFFFU << USB_OTG_TX0FSA_Pos) /*!< 0x0000FFFF */
  22406. #define USB_OTG_TX0FSA USB_OTG_TX0FSA_Msk /*!< Endpoint 0 transmit RAM start address */
  22407. #define USB_OTG_TX0FD_Pos (16U)
  22408. #define USB_OTG_TX0FD_Msk (0xFFFFU << USB_OTG_TX0FD_Pos) /*!< 0xFFFF0000 */
  22409. #define USB_OTG_TX0FD USB_OTG_TX0FD_Msk /*!< Endpoint 0 TxFIFO depth */
  22410. /******************** Bit definition forUSB_OTG_DVBUSPULSE register ********************/
  22411. #define USB_OTG_DVBUSPULSE_DVBUSP_Pos (0U)
  22412. #define USB_OTG_DVBUSPULSE_DVBUSP_Msk (0xFFFU << USB_OTG_DVBUSPULSE_DVBUSP_Pos) /*!< 0x00000FFF */
  22413. #define USB_OTG_DVBUSPULSE_DVBUSP USB_OTG_DVBUSPULSE_DVBUSP_Msk /*!< Device VBUS pulsing time */
  22414. /******************** Bit definition forUSB_OTG_GNPTXSTS register ********************/
  22415. #define USB_OTG_GNPTXSTS_NPTXFSAV_Pos (0U)
  22416. #define USB_OTG_GNPTXSTS_NPTXFSAV_Msk (0xFFFFU << USB_OTG_GNPTXSTS_NPTXFSAV_Pos) /*!< 0x0000FFFF */
  22417. #define USB_OTG_GNPTXSTS_NPTXFSAV USB_OTG_GNPTXSTS_NPTXFSAV_Msk /*!< Nonperiodic TxFIFO space available */
  22418. #define USB_OTG_GNPTXSTS_NPTQXSAV_Pos (16U)
  22419. #define USB_OTG_GNPTXSTS_NPTQXSAV_Msk (0xFFU << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00FF0000 */
  22420. #define USB_OTG_GNPTXSTS_NPTQXSAV USB_OTG_GNPTXSTS_NPTQXSAV_Msk /*!< Nonperiodic transmit request queue space available */
  22421. #define USB_OTG_GNPTXSTS_NPTQXSAV_0 (0x01U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00010000 */
  22422. #define USB_OTG_GNPTXSTS_NPTQXSAV_1 (0x02U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00020000 */
  22423. #define USB_OTG_GNPTXSTS_NPTQXSAV_2 (0x04U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00040000 */
  22424. #define USB_OTG_GNPTXSTS_NPTQXSAV_3 (0x08U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00080000 */
  22425. #define USB_OTG_GNPTXSTS_NPTQXSAV_4 (0x10U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00100000 */
  22426. #define USB_OTG_GNPTXSTS_NPTQXSAV_5 (0x20U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00200000 */
  22427. #define USB_OTG_GNPTXSTS_NPTQXSAV_6 (0x40U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00400000 */
  22428. #define USB_OTG_GNPTXSTS_NPTQXSAV_7 (0x80U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00800000 */
  22429. #define USB_OTG_GNPTXSTS_NPTXQTOP_Pos (24U)
  22430. #define USB_OTG_GNPTXSTS_NPTXQTOP_Msk (0x7FU << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x7F000000 */
  22431. #define USB_OTG_GNPTXSTS_NPTXQTOP USB_OTG_GNPTXSTS_NPTXQTOP_Msk /*!< Top of the nonperiodic transmit request queue */
  22432. #define USB_OTG_GNPTXSTS_NPTXQTOP_0 (0x01U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x01000000 */
  22433. #define USB_OTG_GNPTXSTS_NPTXQTOP_1 (0x02U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x02000000 */
  22434. #define USB_OTG_GNPTXSTS_NPTXQTOP_2 (0x04U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x04000000 */
  22435. #define USB_OTG_GNPTXSTS_NPTXQTOP_3 (0x08U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x08000000 */
  22436. #define USB_OTG_GNPTXSTS_NPTXQTOP_4 (0x10U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x10000000 */
  22437. #define USB_OTG_GNPTXSTS_NPTXQTOP_5 (0x20U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x20000000 */
  22438. #define USB_OTG_GNPTXSTS_NPTXQTOP_6 (0x40U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x40000000 */
  22439. /******************** Bit definition forUSB_OTG_DTHRCTL register ********************/
  22440. #define USB_OTG_DTHRCTL_NONISOTHREN_Pos (0U)
  22441. #define USB_OTG_DTHRCTL_NONISOTHREN_Msk (0x1U << USB_OTG_DTHRCTL_NONISOTHREN_Pos) /*!< 0x00000001 */
  22442. #define USB_OTG_DTHRCTL_NONISOTHREN USB_OTG_DTHRCTL_NONISOTHREN_Msk /*!< Nonisochronous IN endpoints threshold enable */
  22443. #define USB_OTG_DTHRCTL_ISOTHREN_Pos (1U)
  22444. #define USB_OTG_DTHRCTL_ISOTHREN_Msk (0x1U << USB_OTG_DTHRCTL_ISOTHREN_Pos) /*!< 0x00000002 */
  22445. #define USB_OTG_DTHRCTL_ISOTHREN USB_OTG_DTHRCTL_ISOTHREN_Msk /*!< ISO IN endpoint threshold enable */
  22446. #define USB_OTG_DTHRCTL_TXTHRLEN_Pos (2U)
  22447. #define USB_OTG_DTHRCTL_TXTHRLEN_Msk (0x1FFU << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x000007FC */
  22448. #define USB_OTG_DTHRCTL_TXTHRLEN USB_OTG_DTHRCTL_TXTHRLEN_Msk /*!< Transmit threshold length */
  22449. #define USB_OTG_DTHRCTL_TXTHRLEN_0 (0x001U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000004 */
  22450. #define USB_OTG_DTHRCTL_TXTHRLEN_1 (0x002U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000008 */
  22451. #define USB_OTG_DTHRCTL_TXTHRLEN_2 (0x004U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000010 */
  22452. #define USB_OTG_DTHRCTL_TXTHRLEN_3 (0x008U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000020 */
  22453. #define USB_OTG_DTHRCTL_TXTHRLEN_4 (0x010U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000040 */
  22454. #define USB_OTG_DTHRCTL_TXTHRLEN_5 (0x020U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000080 */
  22455. #define USB_OTG_DTHRCTL_TXTHRLEN_6 (0x040U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000100 */
  22456. #define USB_OTG_DTHRCTL_TXTHRLEN_7 (0x080U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000200 */
  22457. #define USB_OTG_DTHRCTL_TXTHRLEN_8 (0x100U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000400 */
  22458. #define USB_OTG_DTHRCTL_RXTHREN_Pos (16U)
  22459. #define USB_OTG_DTHRCTL_RXTHREN_Msk (0x1U << USB_OTG_DTHRCTL_RXTHREN_Pos) /*!< 0x00010000 */
  22460. #define USB_OTG_DTHRCTL_RXTHREN USB_OTG_DTHRCTL_RXTHREN_Msk /*!< Receive threshold enable */
  22461. #define USB_OTG_DTHRCTL_RXTHRLEN_Pos (17U)
  22462. #define USB_OTG_DTHRCTL_RXTHRLEN_Msk (0x1FFU << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x03FE0000 */
  22463. #define USB_OTG_DTHRCTL_RXTHRLEN USB_OTG_DTHRCTL_RXTHRLEN_Msk /*!< Receive threshold length */
  22464. #define USB_OTG_DTHRCTL_RXTHRLEN_0 (0x001U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00020000 */
  22465. #define USB_OTG_DTHRCTL_RXTHRLEN_1 (0x002U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00040000 */
  22466. #define USB_OTG_DTHRCTL_RXTHRLEN_2 (0x004U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00080000 */
  22467. #define USB_OTG_DTHRCTL_RXTHRLEN_3 (0x008U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00100000 */
  22468. #define USB_OTG_DTHRCTL_RXTHRLEN_4 (0x010U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00200000 */
  22469. #define USB_OTG_DTHRCTL_RXTHRLEN_5 (0x020U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00400000 */
  22470. #define USB_OTG_DTHRCTL_RXTHRLEN_6 (0x040U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00800000 */
  22471. #define USB_OTG_DTHRCTL_RXTHRLEN_7 (0x080U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x01000000 */
  22472. #define USB_OTG_DTHRCTL_RXTHRLEN_8 (0x100U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x02000000 */
  22473. #define USB_OTG_DTHRCTL_ARPEN_Pos (27U)
  22474. #define USB_OTG_DTHRCTL_ARPEN_Msk (0x1U << USB_OTG_DTHRCTL_ARPEN_Pos) /*!< 0x08000000 */
  22475. #define USB_OTG_DTHRCTL_ARPEN USB_OTG_DTHRCTL_ARPEN_Msk /*!< Arbiter parking enable */
  22476. /******************** Bit definition forUSB_OTG_DIEPEMPMSK register ********************/
  22477. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos (0U)
  22478. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk (0xFFFFU << USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos) /*!< 0x0000FFFF */
  22479. #define USB_OTG_DIEPEMPMSK_INEPTXFEM USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk /*!< IN EP Tx FIFO empty interrupt mask bits */
  22480. /******************** Bit definition forUSB_OTG_DEACHINT register ********************/
  22481. #define USB_OTG_DEACHINT_IEP1INT_Pos (1U)
  22482. #define USB_OTG_DEACHINT_IEP1INT_Msk (0x1U << USB_OTG_DEACHINT_IEP1INT_Pos) /*!< 0x00000002 */
  22483. #define USB_OTG_DEACHINT_IEP1INT USB_OTG_DEACHINT_IEP1INT_Msk /*!< IN endpoint 1interrupt bit */
  22484. #define USB_OTG_DEACHINT_OEP1INT_Pos (17U)
  22485. #define USB_OTG_DEACHINT_OEP1INT_Msk (0x1U << USB_OTG_DEACHINT_OEP1INT_Pos) /*!< 0x00020000 */
  22486. #define USB_OTG_DEACHINT_OEP1INT USB_OTG_DEACHINT_OEP1INT_Msk /*!< OUT endpoint 1 interrupt bit */
  22487. /******************** Bit definition forUSB_OTG_GCCFG register ********************/
  22488. #define USB_OTG_GCCFG_DCDET_Pos (0U)
  22489. #define USB_OTG_GCCFG_DCDET_Msk (0x1U << USB_OTG_GCCFG_DCDET_Pos) /*!< 0x00000001 */
  22490. #define USB_OTG_GCCFG_DCDET USB_OTG_GCCFG_DCDET_Msk /*!< Data contact detection (DCD) status */
  22491. #define USB_OTG_GCCFG_PDET_Pos (1U)
  22492. #define USB_OTG_GCCFG_PDET_Msk (0x1U << USB_OTG_GCCFG_PDET_Pos) /*!< 0x00000002 */
  22493. #define USB_OTG_GCCFG_PDET USB_OTG_GCCFG_PDET_Msk /*!< Primary detection (PD) status */
  22494. #define USB_OTG_GCCFG_SDET_Pos (2U)
  22495. #define USB_OTG_GCCFG_SDET_Msk (0x1U << USB_OTG_GCCFG_SDET_Pos) /*!< 0x00000004 */
  22496. #define USB_OTG_GCCFG_SDET USB_OTG_GCCFG_SDET_Msk /*!< Secondary detection (SD) status */
  22497. #define USB_OTG_GCCFG_PS2DET_Pos (3U)
  22498. #define USB_OTG_GCCFG_PS2DET_Msk (0x1U << USB_OTG_GCCFG_PS2DET_Pos) /*!< 0x00000008 */
  22499. #define USB_OTG_GCCFG_PS2DET USB_OTG_GCCFG_PS2DET_Msk /*!< DM pull-up detection status */
  22500. #define USB_OTG_GCCFG_PWRDWN_Pos (16U)
  22501. #define USB_OTG_GCCFG_PWRDWN_Msk (0x1U << USB_OTG_GCCFG_PWRDWN_Pos) /*!< 0x00010000 */
  22502. #define USB_OTG_GCCFG_PWRDWN USB_OTG_GCCFG_PWRDWN_Msk /*!< Power down */
  22503. #define USB_OTG_GCCFG_BCDEN_Pos (17U)
  22504. #define USB_OTG_GCCFG_BCDEN_Msk (0x1U << USB_OTG_GCCFG_BCDEN_Pos) /*!< 0x00020000 */
  22505. #define USB_OTG_GCCFG_BCDEN USB_OTG_GCCFG_BCDEN_Msk /*!< Battery charging detector (BCD) enable */
  22506. #define USB_OTG_GCCFG_DCDEN_Pos (18U)
  22507. #define USB_OTG_GCCFG_DCDEN_Msk (0x1U << USB_OTG_GCCFG_DCDEN_Pos) /*!< 0x00040000 */
  22508. #define USB_OTG_GCCFG_DCDEN USB_OTG_GCCFG_DCDEN_Msk /*!< Data contact detection (DCD) mode enable*/
  22509. #define USB_OTG_GCCFG_PDEN_Pos (19U)
  22510. #define USB_OTG_GCCFG_PDEN_Msk (0x1U << USB_OTG_GCCFG_PDEN_Pos) /*!< 0x00080000 */
  22511. #define USB_OTG_GCCFG_PDEN USB_OTG_GCCFG_PDEN_Msk /*!< Primary detection (PD) mode enable*/
  22512. #define USB_OTG_GCCFG_SDEN_Pos (20U)
  22513. #define USB_OTG_GCCFG_SDEN_Msk (0x1U << USB_OTG_GCCFG_SDEN_Pos) /*!< 0x00100000 */
  22514. #define USB_OTG_GCCFG_SDEN USB_OTG_GCCFG_SDEN_Msk /*!< Secondary detection (SD) mode enable */
  22515. #define USB_OTG_GCCFG_VBDEN_Pos (21U)
  22516. #define USB_OTG_GCCFG_VBDEN_Msk (0x1U << USB_OTG_GCCFG_VBDEN_Pos) /*!< 0x00200000 */
  22517. #define USB_OTG_GCCFG_VBDEN USB_OTG_GCCFG_VBDEN_Msk /*!< Secondary detection (SD) mode enable */
  22518. /******************** Bit definition forUSB_OTG_GPWRDN) register ********************/
  22519. #define USB_OTG_GPWRDN_ADPMEN_Pos (0U)
  22520. #define USB_OTG_GPWRDN_ADPMEN_Msk (0x1U << USB_OTG_GPWRDN_ADPMEN_Pos) /*!< 0x00000001 */
  22521. #define USB_OTG_GPWRDN_ADPMEN USB_OTG_GPWRDN_ADPMEN_Msk /*!< ADP module enable */
  22522. #define USB_OTG_GPWRDN_ADPIF_Pos (23U)
  22523. #define USB_OTG_GPWRDN_ADPIF_Msk (0x1U << USB_OTG_GPWRDN_ADPIF_Pos) /*!< 0x00800000 */
  22524. #define USB_OTG_GPWRDN_ADPIF USB_OTG_GPWRDN_ADPIF_Msk /*!< ADP Interrupt flag */
  22525. /******************** Bit definition forUSB_OTG_DEACHINTMSK register ********************/
  22526. #define USB_OTG_DEACHINTMSK_IEP1INTM_Pos (1U)
  22527. #define USB_OTG_DEACHINTMSK_IEP1INTM_Msk (0x1U << USB_OTG_DEACHINTMSK_IEP1INTM_Pos) /*!< 0x00000002 */
  22528. #define USB_OTG_DEACHINTMSK_IEP1INTM USB_OTG_DEACHINTMSK_IEP1INTM_Msk /*!< IN Endpoint 1 interrupt mask bit */
  22529. #define USB_OTG_DEACHINTMSK_OEP1INTM_Pos (17U)
  22530. #define USB_OTG_DEACHINTMSK_OEP1INTM_Msk (0x1U << USB_OTG_DEACHINTMSK_OEP1INTM_Pos) /*!< 0x00020000 */
  22531. #define USB_OTG_DEACHINTMSK_OEP1INTM USB_OTG_DEACHINTMSK_OEP1INTM_Msk /*!< OUT Endpoint 1 interrupt mask bit */
  22532. /******************** Bit definition forUSB_OTG_CID register ********************/
  22533. #define USB_OTG_CID_PRODUCT_ID_Pos (0U)
  22534. #define USB_OTG_CID_PRODUCT_ID_Msk (0xFFFFFFFFU << USB_OTG_CID_PRODUCT_ID_Pos) /*!< 0xFFFFFFFF */
  22535. #define USB_OTG_CID_PRODUCT_ID USB_OTG_CID_PRODUCT_ID_Msk /*!< Product ID field */
  22536. /******************** Bit definition for USB_OTG_GLPMCFG register ********************/
  22537. #define USB_OTG_GLPMCFG_LPMEN_Pos (0U)
  22538. #define USB_OTG_GLPMCFG_LPMEN_Msk (0x1U << USB_OTG_GLPMCFG_LPMEN_Pos) /*!< 0x00000001 */
  22539. #define USB_OTG_GLPMCFG_LPMEN USB_OTG_GLPMCFG_LPMEN_Msk /*!< LPM support enable */
  22540. #define USB_OTG_GLPMCFG_LPMACK_Pos (1U)
  22541. #define USB_OTG_GLPMCFG_LPMACK_Msk (0x1U << USB_OTG_GLPMCFG_LPMACK_Pos) /*!< 0x00000002 */
  22542. #define USB_OTG_GLPMCFG_LPMACK USB_OTG_GLPMCFG_LPMACK_Msk /*!< LPM Token acknowledge enable */
  22543. #define USB_OTG_GLPMCFG_BESL_Pos (2U)
  22544. #define USB_OTG_GLPMCFG_BESL_Msk (0xFU << USB_OTG_GLPMCFG_BESL_Pos) /*!< 0x0000003C */
  22545. #define USB_OTG_GLPMCFG_BESL USB_OTG_GLPMCFG_BESL_Msk /*!< BESL value received with last ACKed LPM Token */
  22546. #define USB_OTG_GLPMCFG_REMWAKE_Pos (6U)
  22547. #define USB_OTG_GLPMCFG_REMWAKE_Msk (0x1U << USB_OTG_GLPMCFG_REMWAKE_Pos) /*!< 0x00000040 */
  22548. #define USB_OTG_GLPMCFG_REMWAKE USB_OTG_GLPMCFG_REMWAKE_Msk /*!< bRemoteWake value received with last ACKed LPM Token */
  22549. #define USB_OTG_GLPMCFG_L1SSEN_Pos (7U)
  22550. #define USB_OTG_GLPMCFG_L1SSEN_Msk (0x1U << USB_OTG_GLPMCFG_L1SSEN_Pos) /*!< 0x00000080 */
  22551. #define USB_OTG_GLPMCFG_L1SSEN USB_OTG_GLPMCFG_L1SSEN_Msk /*!< L1 shallow sleep enable */
  22552. #define USB_OTG_GLPMCFG_BESLTHRS_Pos (8U)
  22553. #define USB_OTG_GLPMCFG_BESLTHRS_Msk (0xFU << USB_OTG_GLPMCFG_BESLTHRS_Pos) /*!< 0x00000F00 */
  22554. #define USB_OTG_GLPMCFG_BESLTHRS USB_OTG_GLPMCFG_BESLTHRS_Msk /*!< BESL threshold */
  22555. #define USB_OTG_GLPMCFG_L1DSEN_Pos (12U)
  22556. #define USB_OTG_GLPMCFG_L1DSEN_Msk (0x1U << USB_OTG_GLPMCFG_L1DSEN_Pos) /*!< 0x00001000 */
  22557. #define USB_OTG_GLPMCFG_L1DSEN USB_OTG_GLPMCFG_L1DSEN_Msk /*!< L1 deep sleep enable */
  22558. #define USB_OTG_GLPMCFG_LPMRSP_Pos (13U)
  22559. #define USB_OTG_GLPMCFG_LPMRSP_Msk (0x3U << USB_OTG_GLPMCFG_LPMRSP_Pos) /*!< 0x00006000 */
  22560. #define USB_OTG_GLPMCFG_LPMRSP USB_OTG_GLPMCFG_LPMRSP_Msk /*!< LPM response */
  22561. #define USB_OTG_GLPMCFG_SLPSTS_Pos (15U)
  22562. #define USB_OTG_GLPMCFG_SLPSTS_Msk (0x1U << USB_OTG_GLPMCFG_SLPSTS_Pos) /*!< 0x00008000 */
  22563. #define USB_OTG_GLPMCFG_SLPSTS USB_OTG_GLPMCFG_SLPSTS_Msk /*!< Port sleep status */
  22564. #define USB_OTG_GLPMCFG_L1RSMOK_Pos (16U)
  22565. #define USB_OTG_GLPMCFG_L1RSMOK_Msk (0x1U << USB_OTG_GLPMCFG_L1RSMOK_Pos) /*!< 0x00010000 */
  22566. #define USB_OTG_GLPMCFG_L1RSMOK USB_OTG_GLPMCFG_L1RSMOK_Msk /*!< Sleep State Resume OK */
  22567. #define USB_OTG_GLPMCFG_LPMCHIDX_Pos (17U)
  22568. #define USB_OTG_GLPMCFG_LPMCHIDX_Msk (0xFU << USB_OTG_GLPMCFG_LPMCHIDX_Pos) /*!< 0x001E0000 */
  22569. #define USB_OTG_GLPMCFG_LPMCHIDX USB_OTG_GLPMCFG_LPMCHIDX_Msk /*!< LPM Channel Index */
  22570. #define USB_OTG_GLPMCFG_LPMRCNT_Pos (21U)
  22571. #define USB_OTG_GLPMCFG_LPMRCNT_Msk (0x7U << USB_OTG_GLPMCFG_LPMRCNT_Pos) /*!< 0x00E00000 */
  22572. #define USB_OTG_GLPMCFG_LPMRCNT USB_OTG_GLPMCFG_LPMRCNT_Msk /*!< LPM retry count */
  22573. #define USB_OTG_GLPMCFG_SNDLPM_Pos (24U)
  22574. #define USB_OTG_GLPMCFG_SNDLPM_Msk (0x1U << USB_OTG_GLPMCFG_SNDLPM_Pos) /*!< 0x01000000 */
  22575. #define USB_OTG_GLPMCFG_SNDLPM USB_OTG_GLPMCFG_SNDLPM_Msk /*!< Send LPM transaction */
  22576. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Pos (25U)
  22577. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Msk (0x7U << USB_OTG_GLPMCFG_LPMRCNTSTS_Pos) /*!< 0x0E000000 */
  22578. #define USB_OTG_GLPMCFG_LPMRCNTSTS USB_OTG_GLPMCFG_LPMRCNTSTS_Msk /*!< LPM retry count status */
  22579. #define USB_OTG_GLPMCFG_ENBESL_Pos (28U)
  22580. #define USB_OTG_GLPMCFG_ENBESL_Msk (0x1U << USB_OTG_GLPMCFG_ENBESL_Pos) /*!< 0x10000000 */
  22581. #define USB_OTG_GLPMCFG_ENBESL USB_OTG_GLPMCFG_ENBESL_Msk /*!< Enable best effort service latency */
  22582. /******************** Bit definition forUSB_OTG_DIEPEACHMSK1 register ********************/
  22583. #define USB_OTG_DIEPEACHMSK1_XFRCM_Pos (0U)
  22584. #define USB_OTG_DIEPEACHMSK1_XFRCM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  22585. #define USB_OTG_DIEPEACHMSK1_XFRCM USB_OTG_DIEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22586. #define USB_OTG_DIEPEACHMSK1_EPDM_Pos (1U)
  22587. #define USB_OTG_DIEPEACHMSK1_EPDM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  22588. #define USB_OTG_DIEPEACHMSK1_EPDM USB_OTG_DIEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22589. #define USB_OTG_DIEPEACHMSK1_TOM_Pos (3U)
  22590. #define USB_OTG_DIEPEACHMSK1_TOM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  22591. #define USB_OTG_DIEPEACHMSK1_TOM USB_OTG_DIEPEACHMSK1_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  22592. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos (4U)
  22593. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk (0x1U << USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  22594. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  22595. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Pos (5U)
  22596. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  22597. #define USB_OTG_DIEPEACHMSK1_INEPNMM USB_OTG_DIEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  22598. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Pos (6U)
  22599. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  22600. #define USB_OTG_DIEPEACHMSK1_INEPNEM USB_OTG_DIEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  22601. #define USB_OTG_DIEPEACHMSK1_TXFURM_Pos (8U)
  22602. #define USB_OTG_DIEPEACHMSK1_TXFURM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  22603. #define USB_OTG_DIEPEACHMSK1_TXFURM USB_OTG_DIEPEACHMSK1_TXFURM_Msk /*!< FIFO underrun mask */
  22604. #define USB_OTG_DIEPEACHMSK1_BIM_Pos (9U)
  22605. #define USB_OTG_DIEPEACHMSK1_BIM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  22606. #define USB_OTG_DIEPEACHMSK1_BIM USB_OTG_DIEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  22607. #define USB_OTG_DIEPEACHMSK1_NAKM_Pos (13U)
  22608. #define USB_OTG_DIEPEACHMSK1_NAKM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  22609. #define USB_OTG_DIEPEACHMSK1_NAKM USB_OTG_DIEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  22610. /******************** Bit definition forUSB_OTG_HPRT register ********************/
  22611. #define USB_OTG_HPRT_PCSTS_Pos (0U)
  22612. #define USB_OTG_HPRT_PCSTS_Msk (0x1U << USB_OTG_HPRT_PCSTS_Pos) /*!< 0x00000001 */
  22613. #define USB_OTG_HPRT_PCSTS USB_OTG_HPRT_PCSTS_Msk /*!< Port connect status */
  22614. #define USB_OTG_HPRT_PCDET_Pos (1U)
  22615. #define USB_OTG_HPRT_PCDET_Msk (0x1U << USB_OTG_HPRT_PCDET_Pos) /*!< 0x00000002 */
  22616. #define USB_OTG_HPRT_PCDET USB_OTG_HPRT_PCDET_Msk /*!< Port connect detected */
  22617. #define USB_OTG_HPRT_PENA_Pos (2U)
  22618. #define USB_OTG_HPRT_PENA_Msk (0x1U << USB_OTG_HPRT_PENA_Pos) /*!< 0x00000004 */
  22619. #define USB_OTG_HPRT_PENA USB_OTG_HPRT_PENA_Msk /*!< Port enable */
  22620. #define USB_OTG_HPRT_PENCHNG_Pos (3U)
  22621. #define USB_OTG_HPRT_PENCHNG_Msk (0x1U << USB_OTG_HPRT_PENCHNG_Pos) /*!< 0x00000008 */
  22622. #define USB_OTG_HPRT_PENCHNG USB_OTG_HPRT_PENCHNG_Msk /*!< Port enable/disable change */
  22623. #define USB_OTG_HPRT_POCA_Pos (4U)
  22624. #define USB_OTG_HPRT_POCA_Msk (0x1U << USB_OTG_HPRT_POCA_Pos) /*!< 0x00000010 */
  22625. #define USB_OTG_HPRT_POCA USB_OTG_HPRT_POCA_Msk /*!< Port overcurrent active */
  22626. #define USB_OTG_HPRT_POCCHNG_Pos (5U)
  22627. #define USB_OTG_HPRT_POCCHNG_Msk (0x1U << USB_OTG_HPRT_POCCHNG_Pos) /*!< 0x00000020 */
  22628. #define USB_OTG_HPRT_POCCHNG USB_OTG_HPRT_POCCHNG_Msk /*!< Port overcurrent change */
  22629. #define USB_OTG_HPRT_PRES_Pos (6U)
  22630. #define USB_OTG_HPRT_PRES_Msk (0x1U << USB_OTG_HPRT_PRES_Pos) /*!< 0x00000040 */
  22631. #define USB_OTG_HPRT_PRES USB_OTG_HPRT_PRES_Msk /*!< Port resume */
  22632. #define USB_OTG_HPRT_PSUSP_Pos (7U)
  22633. #define USB_OTG_HPRT_PSUSP_Msk (0x1U << USB_OTG_HPRT_PSUSP_Pos) /*!< 0x00000080 */
  22634. #define USB_OTG_HPRT_PSUSP USB_OTG_HPRT_PSUSP_Msk /*!< Port suspend */
  22635. #define USB_OTG_HPRT_PRST_Pos (8U)
  22636. #define USB_OTG_HPRT_PRST_Msk (0x1U << USB_OTG_HPRT_PRST_Pos) /*!< 0x00000100 */
  22637. #define USB_OTG_HPRT_PRST USB_OTG_HPRT_PRST_Msk /*!< Port reset */
  22638. #define USB_OTG_HPRT_PLSTS_Pos (10U)
  22639. #define USB_OTG_HPRT_PLSTS_Msk (0x3U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000C00 */
  22640. #define USB_OTG_HPRT_PLSTS USB_OTG_HPRT_PLSTS_Msk /*!< Port line status */
  22641. #define USB_OTG_HPRT_PLSTS_0 (0x1U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000400 */
  22642. #define USB_OTG_HPRT_PLSTS_1 (0x2U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000800 */
  22643. #define USB_OTG_HPRT_PPWR_Pos (12U)
  22644. #define USB_OTG_HPRT_PPWR_Msk (0x1U << USB_OTG_HPRT_PPWR_Pos) /*!< 0x00001000 */
  22645. #define USB_OTG_HPRT_PPWR USB_OTG_HPRT_PPWR_Msk /*!< Port power */
  22646. #define USB_OTG_HPRT_PTCTL_Pos (13U)
  22647. #define USB_OTG_HPRT_PTCTL_Msk (0xFU << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x0001E000 */
  22648. #define USB_OTG_HPRT_PTCTL USB_OTG_HPRT_PTCTL_Msk /*!< Port test control */
  22649. #define USB_OTG_HPRT_PTCTL_0 (0x1U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00002000 */
  22650. #define USB_OTG_HPRT_PTCTL_1 (0x2U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00004000 */
  22651. #define USB_OTG_HPRT_PTCTL_2 (0x4U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00008000 */
  22652. #define USB_OTG_HPRT_PTCTL_3 (0x8U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00010000 */
  22653. #define USB_OTG_HPRT_PSPD_Pos (17U)
  22654. #define USB_OTG_HPRT_PSPD_Msk (0x3U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00060000 */
  22655. #define USB_OTG_HPRT_PSPD USB_OTG_HPRT_PSPD_Msk /*!< Port speed */
  22656. #define USB_OTG_HPRT_PSPD_0 (0x1U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00020000 */
  22657. #define USB_OTG_HPRT_PSPD_1 (0x2U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00040000 */
  22658. /******************** Bit definition forUSB_OTG_DOEPEACHMSK1 register ********************/
  22659. #define USB_OTG_DOEPEACHMSK1_XFRCM_Pos (0U)
  22660. #define USB_OTG_DOEPEACHMSK1_XFRCM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  22661. #define USB_OTG_DOEPEACHMSK1_XFRCM USB_OTG_DOEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22662. #define USB_OTG_DOEPEACHMSK1_EPDM_Pos (1U)
  22663. #define USB_OTG_DOEPEACHMSK1_EPDM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  22664. #define USB_OTG_DOEPEACHMSK1_EPDM USB_OTG_DOEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22665. #define USB_OTG_DOEPEACHMSK1_TOM_Pos (3U)
  22666. #define USB_OTG_DOEPEACHMSK1_TOM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  22667. #define USB_OTG_DOEPEACHMSK1_TOM USB_OTG_DOEPEACHMSK1_TOM_Msk /*!< Timeout condition mask */
  22668. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos (4U)
  22669. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk (0x1U << USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  22670. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  22671. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Pos (5U)
  22672. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  22673. #define USB_OTG_DOEPEACHMSK1_INEPNMM USB_OTG_DOEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  22674. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Pos (6U)
  22675. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  22676. #define USB_OTG_DOEPEACHMSK1_INEPNEM USB_OTG_DOEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  22677. #define USB_OTG_DOEPEACHMSK1_TXFURM_Pos (8U)
  22678. #define USB_OTG_DOEPEACHMSK1_TXFURM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  22679. #define USB_OTG_DOEPEACHMSK1_TXFURM USB_OTG_DOEPEACHMSK1_TXFURM_Msk /*!< OUT packet error mask */
  22680. #define USB_OTG_DOEPEACHMSK1_BIM_Pos (9U)
  22681. #define USB_OTG_DOEPEACHMSK1_BIM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  22682. #define USB_OTG_DOEPEACHMSK1_BIM USB_OTG_DOEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  22683. #define USB_OTG_DOEPEACHMSK1_BERRM_Pos (12U)
  22684. #define USB_OTG_DOEPEACHMSK1_BERRM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_BERRM_Pos) /*!< 0x00001000 */
  22685. #define USB_OTG_DOEPEACHMSK1_BERRM USB_OTG_DOEPEACHMSK1_BERRM_Msk /*!< Bubble error interrupt mask */
  22686. #define USB_OTG_DOEPEACHMSK1_NAKM_Pos (13U)
  22687. #define USB_OTG_DOEPEACHMSK1_NAKM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  22688. #define USB_OTG_DOEPEACHMSK1_NAKM USB_OTG_DOEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  22689. #define USB_OTG_DOEPEACHMSK1_NYETM_Pos (14U)
  22690. #define USB_OTG_DOEPEACHMSK1_NYETM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_NYETM_Pos) /*!< 0x00004000 */
  22691. #define USB_OTG_DOEPEACHMSK1_NYETM USB_OTG_DOEPEACHMSK1_NYETM_Msk /*!< NYET interrupt mask */
  22692. /******************** Bit definition forUSB_OTG_HPTXFSIZ register ********************/
  22693. #define USB_OTG_HPTXFSIZ_PTXSA_Pos (0U)
  22694. #define USB_OTG_HPTXFSIZ_PTXSA_Msk (0xFFFFU << USB_OTG_HPTXFSIZ_PTXSA_Pos) /*!< 0x0000FFFF */
  22695. #define USB_OTG_HPTXFSIZ_PTXSA USB_OTG_HPTXFSIZ_PTXSA_Msk /*!< Host periodic TxFIFO start address */
  22696. #define USB_OTG_HPTXFSIZ_PTXFD_Pos (16U)
  22697. #define USB_OTG_HPTXFSIZ_PTXFD_Msk (0xFFFFU << USB_OTG_HPTXFSIZ_PTXFD_Pos) /*!< 0xFFFF0000 */
  22698. #define USB_OTG_HPTXFSIZ_PTXFD USB_OTG_HPTXFSIZ_PTXFD_Msk /*!< Host periodic TxFIFO depth */
  22699. /******************** Bit definition forUSB_OTG_DIEPCTL register ********************/
  22700. #define USB_OTG_DIEPCTL_MPSIZ_Pos (0U)
  22701. #define USB_OTG_DIEPCTL_MPSIZ_Msk (0x7FFU << USB_OTG_DIEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  22702. #define USB_OTG_DIEPCTL_MPSIZ USB_OTG_DIEPCTL_MPSIZ_Msk /*!< Maximum packet size */
  22703. #define USB_OTG_DIEPCTL_USBAEP_Pos (15U)
  22704. #define USB_OTG_DIEPCTL_USBAEP_Msk (0x1U << USB_OTG_DIEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  22705. #define USB_OTG_DIEPCTL_USBAEP USB_OTG_DIEPCTL_USBAEP_Msk /*!< USB active endpoint */
  22706. #define USB_OTG_DIEPCTL_EONUM_DPID_Pos (16U)
  22707. #define USB_OTG_DIEPCTL_EONUM_DPID_Msk (0x1U << USB_OTG_DIEPCTL_EONUM_DPID_Pos) /*!< 0x00010000 */
  22708. #define USB_OTG_DIEPCTL_EONUM_DPID USB_OTG_DIEPCTL_EONUM_DPID_Msk /*!< Even/odd frame */
  22709. #define USB_OTG_DIEPCTL_NAKSTS_Pos (17U)
  22710. #define USB_OTG_DIEPCTL_NAKSTS_Msk (0x1U << USB_OTG_DIEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  22711. #define USB_OTG_DIEPCTL_NAKSTS USB_OTG_DIEPCTL_NAKSTS_Msk /*!< NAK status */
  22712. #define USB_OTG_DIEPCTL_EPTYP_Pos (18U)
  22713. #define USB_OTG_DIEPCTL_EPTYP_Msk (0x3U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  22714. #define USB_OTG_DIEPCTL_EPTYP USB_OTG_DIEPCTL_EPTYP_Msk /*!< Endpoint type */
  22715. #define USB_OTG_DIEPCTL_EPTYP_0 (0x1U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  22716. #define USB_OTG_DIEPCTL_EPTYP_1 (0x2U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  22717. #define USB_OTG_DIEPCTL_STALL_Pos (21U)
  22718. #define USB_OTG_DIEPCTL_STALL_Msk (0x1U << USB_OTG_DIEPCTL_STALL_Pos) /*!< 0x00200000 */
  22719. #define USB_OTG_DIEPCTL_STALL USB_OTG_DIEPCTL_STALL_Msk /*!< STALL handshake */
  22720. #define USB_OTG_DIEPCTL_TXFNUM_Pos (22U)
  22721. #define USB_OTG_DIEPCTL_TXFNUM_Msk (0xFU << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x03C00000 */
  22722. #define USB_OTG_DIEPCTL_TXFNUM USB_OTG_DIEPCTL_TXFNUM_Msk /*!< TxFIFO number */
  22723. #define USB_OTG_DIEPCTL_TXFNUM_0 (0x1U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00400000 */
  22724. #define USB_OTG_DIEPCTL_TXFNUM_1 (0x2U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00800000 */
  22725. #define USB_OTG_DIEPCTL_TXFNUM_2 (0x4U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x01000000 */
  22726. #define USB_OTG_DIEPCTL_TXFNUM_3 (0x8U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x02000000 */
  22727. #define USB_OTG_DIEPCTL_CNAK_Pos (26U)
  22728. #define USB_OTG_DIEPCTL_CNAK_Msk (0x1U << USB_OTG_DIEPCTL_CNAK_Pos) /*!< 0x04000000 */
  22729. #define USB_OTG_DIEPCTL_CNAK USB_OTG_DIEPCTL_CNAK_Msk /*!< Clear NAK */
  22730. #define USB_OTG_DIEPCTL_SNAK_Pos (27U)
  22731. #define USB_OTG_DIEPCTL_SNAK_Msk (0x1U << USB_OTG_DIEPCTL_SNAK_Pos) /*!< 0x08000000 */
  22732. #define USB_OTG_DIEPCTL_SNAK USB_OTG_DIEPCTL_SNAK_Msk /*!< Set NAK */
  22733. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos (28U)
  22734. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk (0x1U << USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  22735. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  22736. #define USB_OTG_DIEPCTL_SODDFRM_Pos (29U)
  22737. #define USB_OTG_DIEPCTL_SODDFRM_Msk (0x1U << USB_OTG_DIEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  22738. #define USB_OTG_DIEPCTL_SODDFRM USB_OTG_DIEPCTL_SODDFRM_Msk /*!< Set odd frame */
  22739. #define USB_OTG_DIEPCTL_EPDIS_Pos (30U)
  22740. #define USB_OTG_DIEPCTL_EPDIS_Msk (0x1U << USB_OTG_DIEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  22741. #define USB_OTG_DIEPCTL_EPDIS USB_OTG_DIEPCTL_EPDIS_Msk /*!< Endpoint disable */
  22742. #define USB_OTG_DIEPCTL_EPENA_Pos (31U)
  22743. #define USB_OTG_DIEPCTL_EPENA_Msk (0x1U << USB_OTG_DIEPCTL_EPENA_Pos) /*!< 0x80000000 */
  22744. #define USB_OTG_DIEPCTL_EPENA USB_OTG_DIEPCTL_EPENA_Msk /*!< Endpoint enable */
  22745. /******************** Bit definition forUSB_OTG_HCCHAR register ********************/
  22746. #define USB_OTG_HCCHAR_MPSIZ_Pos (0U)
  22747. #define USB_OTG_HCCHAR_MPSIZ_Msk (0x7FFU << USB_OTG_HCCHAR_MPSIZ_Pos) /*!< 0x000007FF */
  22748. #define USB_OTG_HCCHAR_MPSIZ USB_OTG_HCCHAR_MPSIZ_Msk /*!< Maximum packet size */
  22749. #define USB_OTG_HCCHAR_EPNUM_Pos (11U)
  22750. #define USB_OTG_HCCHAR_EPNUM_Msk (0xFU << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00007800 */
  22751. #define USB_OTG_HCCHAR_EPNUM USB_OTG_HCCHAR_EPNUM_Msk /*!< Endpoint number */
  22752. #define USB_OTG_HCCHAR_EPNUM_0 (0x1U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00000800 */
  22753. #define USB_OTG_HCCHAR_EPNUM_1 (0x2U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00001000 */
  22754. #define USB_OTG_HCCHAR_EPNUM_2 (0x4U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00002000 */
  22755. #define USB_OTG_HCCHAR_EPNUM_3 (0x8U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00004000 */
  22756. #define USB_OTG_HCCHAR_EPDIR_Pos (15U)
  22757. #define USB_OTG_HCCHAR_EPDIR_Msk (0x1U << USB_OTG_HCCHAR_EPDIR_Pos) /*!< 0x00008000 */
  22758. #define USB_OTG_HCCHAR_EPDIR USB_OTG_HCCHAR_EPDIR_Msk /*!< Endpoint direction */
  22759. #define USB_OTG_HCCHAR_LSDEV_Pos (17U)
  22760. #define USB_OTG_HCCHAR_LSDEV_Msk (0x1U << USB_OTG_HCCHAR_LSDEV_Pos) /*!< 0x00020000 */
  22761. #define USB_OTG_HCCHAR_LSDEV USB_OTG_HCCHAR_LSDEV_Msk /*!< Low-speed device */
  22762. #define USB_OTG_HCCHAR_EPTYP_Pos (18U)
  22763. #define USB_OTG_HCCHAR_EPTYP_Msk (0x3U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x000C0000 */
  22764. #define USB_OTG_HCCHAR_EPTYP USB_OTG_HCCHAR_EPTYP_Msk /*!< Endpoint type */
  22765. #define USB_OTG_HCCHAR_EPTYP_0 (0x1U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00040000 */
  22766. #define USB_OTG_HCCHAR_EPTYP_1 (0x2U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00080000 */
  22767. #define USB_OTG_HCCHAR_MC_Pos (20U)
  22768. #define USB_OTG_HCCHAR_MC_Msk (0x3U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00300000 */
  22769. #define USB_OTG_HCCHAR_MC USB_OTG_HCCHAR_MC_Msk /*!< Multi Count (MC) / Error Count (EC) */
  22770. #define USB_OTG_HCCHAR_MC_0 (0x1U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00100000 */
  22771. #define USB_OTG_HCCHAR_MC_1 (0x2U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00200000 */
  22772. #define USB_OTG_HCCHAR_DAD_Pos (22U)
  22773. #define USB_OTG_HCCHAR_DAD_Msk (0x7FU << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x1FC00000 */
  22774. #define USB_OTG_HCCHAR_DAD USB_OTG_HCCHAR_DAD_Msk /*!< Device address */
  22775. #define USB_OTG_HCCHAR_DAD_0 (0x01U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00400000 */
  22776. #define USB_OTG_HCCHAR_DAD_1 (0x02U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00800000 */
  22777. #define USB_OTG_HCCHAR_DAD_2 (0x04U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x01000000 */
  22778. #define USB_OTG_HCCHAR_DAD_3 (0x08U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x02000000 */
  22779. #define USB_OTG_HCCHAR_DAD_4 (0x10U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x04000000 */
  22780. #define USB_OTG_HCCHAR_DAD_5 (0x20U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x08000000 */
  22781. #define USB_OTG_HCCHAR_DAD_6 (0x40U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x10000000 */
  22782. #define USB_OTG_HCCHAR_ODDFRM_Pos (29U)
  22783. #define USB_OTG_HCCHAR_ODDFRM_Msk (0x1U << USB_OTG_HCCHAR_ODDFRM_Pos) /*!< 0x20000000 */
  22784. #define USB_OTG_HCCHAR_ODDFRM USB_OTG_HCCHAR_ODDFRM_Msk /*!< Odd frame */
  22785. #define USB_OTG_HCCHAR_CHDIS_Pos (30U)
  22786. #define USB_OTG_HCCHAR_CHDIS_Msk (0x1U << USB_OTG_HCCHAR_CHDIS_Pos) /*!< 0x40000000 */
  22787. #define USB_OTG_HCCHAR_CHDIS USB_OTG_HCCHAR_CHDIS_Msk /*!< Channel disable */
  22788. #define USB_OTG_HCCHAR_CHENA_Pos (31U)
  22789. #define USB_OTG_HCCHAR_CHENA_Msk (0x1U << USB_OTG_HCCHAR_CHENA_Pos) /*!< 0x80000000 */
  22790. #define USB_OTG_HCCHAR_CHENA USB_OTG_HCCHAR_CHENA_Msk /*!< Channel enable */
  22791. /******************** Bit definition forUSB_OTG_HCSPLT register ********************/
  22792. #define USB_OTG_HCSPLT_PRTADDR_Pos (0U)
  22793. #define USB_OTG_HCSPLT_PRTADDR_Msk (0x7FU << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x0000007F */
  22794. #define USB_OTG_HCSPLT_PRTADDR USB_OTG_HCSPLT_PRTADDR_Msk /*!< Port address */
  22795. #define USB_OTG_HCSPLT_PRTADDR_0 (0x01U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000001 */
  22796. #define USB_OTG_HCSPLT_PRTADDR_1 (0x02U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000002 */
  22797. #define USB_OTG_HCSPLT_PRTADDR_2 (0x04U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000004 */
  22798. #define USB_OTG_HCSPLT_PRTADDR_3 (0x08U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000008 */
  22799. #define USB_OTG_HCSPLT_PRTADDR_4 (0x10U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000010 */
  22800. #define USB_OTG_HCSPLT_PRTADDR_5 (0x20U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000020 */
  22801. #define USB_OTG_HCSPLT_PRTADDR_6 (0x40U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000040 */
  22802. #define USB_OTG_HCSPLT_HUBADDR_Pos (7U)
  22803. #define USB_OTG_HCSPLT_HUBADDR_Msk (0x7FU << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00003F80 */
  22804. #define USB_OTG_HCSPLT_HUBADDR USB_OTG_HCSPLT_HUBADDR_Msk /*!< Hub address */
  22805. #define USB_OTG_HCSPLT_HUBADDR_0 (0x01U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000080 */
  22806. #define USB_OTG_HCSPLT_HUBADDR_1 (0x02U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000100 */
  22807. #define USB_OTG_HCSPLT_HUBADDR_2 (0x04U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000200 */
  22808. #define USB_OTG_HCSPLT_HUBADDR_3 (0x08U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000400 */
  22809. #define USB_OTG_HCSPLT_HUBADDR_4 (0x10U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000800 */
  22810. #define USB_OTG_HCSPLT_HUBADDR_5 (0x20U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00001000 */
  22811. #define USB_OTG_HCSPLT_HUBADDR_6 (0x40U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00002000 */
  22812. #define USB_OTG_HCSPLT_XACTPOS_Pos (14U)
  22813. #define USB_OTG_HCSPLT_XACTPOS_Msk (0x3U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x0000C000 */
  22814. #define USB_OTG_HCSPLT_XACTPOS USB_OTG_HCSPLT_XACTPOS_Msk /*!< XACTPOS */
  22815. #define USB_OTG_HCSPLT_XACTPOS_0 (0x1U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00004000 */
  22816. #define USB_OTG_HCSPLT_XACTPOS_1 (0x2U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00008000 */
  22817. #define USB_OTG_HCSPLT_COMPLSPLT_Pos (16U)
  22818. #define USB_OTG_HCSPLT_COMPLSPLT_Msk (0x1U << USB_OTG_HCSPLT_COMPLSPLT_Pos) /*!< 0x00010000 */
  22819. #define USB_OTG_HCSPLT_COMPLSPLT USB_OTG_HCSPLT_COMPLSPLT_Msk /*!< Do complete split */
  22820. #define USB_OTG_HCSPLT_SPLITEN_Pos (31U)
  22821. #define USB_OTG_HCSPLT_SPLITEN_Msk (0x1U << USB_OTG_HCSPLT_SPLITEN_Pos) /*!< 0x80000000 */
  22822. #define USB_OTG_HCSPLT_SPLITEN USB_OTG_HCSPLT_SPLITEN_Msk /*!< Split enable */
  22823. /******************** Bit definition forUSB_OTG_HCINT register ********************/
  22824. #define USB_OTG_HCINT_XFRC_Pos (0U)
  22825. #define USB_OTG_HCINT_XFRC_Msk (0x1U << USB_OTG_HCINT_XFRC_Pos) /*!< 0x00000001 */
  22826. #define USB_OTG_HCINT_XFRC USB_OTG_HCINT_XFRC_Msk /*!< Transfer completed */
  22827. #define USB_OTG_HCINT_CHH_Pos (1U)
  22828. #define USB_OTG_HCINT_CHH_Msk (0x1U << USB_OTG_HCINT_CHH_Pos) /*!< 0x00000002 */
  22829. #define USB_OTG_HCINT_CHH USB_OTG_HCINT_CHH_Msk /*!< Channel halted */
  22830. #define USB_OTG_HCINT_AHBERR_Pos (2U)
  22831. #define USB_OTG_HCINT_AHBERR_Msk (0x1U << USB_OTG_HCINT_AHBERR_Pos) /*!< 0x00000004 */
  22832. #define USB_OTG_HCINT_AHBERR USB_OTG_HCINT_AHBERR_Msk /*!< AHB error */
  22833. #define USB_OTG_HCINT_STALL_Pos (3U)
  22834. #define USB_OTG_HCINT_STALL_Msk (0x1U << USB_OTG_HCINT_STALL_Pos) /*!< 0x00000008 */
  22835. #define USB_OTG_HCINT_STALL USB_OTG_HCINT_STALL_Msk /*!< STALL response received interrupt */
  22836. #define USB_OTG_HCINT_NAK_Pos (4U)
  22837. #define USB_OTG_HCINT_NAK_Msk (0x1U << USB_OTG_HCINT_NAK_Pos) /*!< 0x00000010 */
  22838. #define USB_OTG_HCINT_NAK USB_OTG_HCINT_NAK_Msk /*!< NAK response received interrupt */
  22839. #define USB_OTG_HCINT_ACK_Pos (5U)
  22840. #define USB_OTG_HCINT_ACK_Msk (0x1U << USB_OTG_HCINT_ACK_Pos) /*!< 0x00000020 */
  22841. #define USB_OTG_HCINT_ACK USB_OTG_HCINT_ACK_Msk /*!< ACK response received/transmitted interrupt */
  22842. #define USB_OTG_HCINT_NYET_Pos (6U)
  22843. #define USB_OTG_HCINT_NYET_Msk (0x1U << USB_OTG_HCINT_NYET_Pos) /*!< 0x00000040 */
  22844. #define USB_OTG_HCINT_NYET USB_OTG_HCINT_NYET_Msk /*!< Response received interrupt */
  22845. #define USB_OTG_HCINT_TXERR_Pos (7U)
  22846. #define USB_OTG_HCINT_TXERR_Msk (0x1U << USB_OTG_HCINT_TXERR_Pos) /*!< 0x00000080 */
  22847. #define USB_OTG_HCINT_TXERR USB_OTG_HCINT_TXERR_Msk /*!< Transaction error */
  22848. #define USB_OTG_HCINT_BBERR_Pos (8U)
  22849. #define USB_OTG_HCINT_BBERR_Msk (0x1U << USB_OTG_HCINT_BBERR_Pos) /*!< 0x00000100 */
  22850. #define USB_OTG_HCINT_BBERR USB_OTG_HCINT_BBERR_Msk /*!< Babble error */
  22851. #define USB_OTG_HCINT_FRMOR_Pos (9U)
  22852. #define USB_OTG_HCINT_FRMOR_Msk (0x1U << USB_OTG_HCINT_FRMOR_Pos) /*!< 0x00000200 */
  22853. #define USB_OTG_HCINT_FRMOR USB_OTG_HCINT_FRMOR_Msk /*!< Frame overrun */
  22854. #define USB_OTG_HCINT_DTERR_Pos (10U)
  22855. #define USB_OTG_HCINT_DTERR_Msk (0x1U << USB_OTG_HCINT_DTERR_Pos) /*!< 0x00000400 */
  22856. #define USB_OTG_HCINT_DTERR USB_OTG_HCINT_DTERR_Msk /*!< Data toggle error */
  22857. /******************** Bit definition forUSB_OTG_DIEPINT register ********************/
  22858. #define USB_OTG_DIEPINT_XFRC_Pos (0U)
  22859. #define USB_OTG_DIEPINT_XFRC_Msk (0x1U << USB_OTG_DIEPINT_XFRC_Pos) /*!< 0x00000001 */
  22860. #define USB_OTG_DIEPINT_XFRC USB_OTG_DIEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  22861. #define USB_OTG_DIEPINT_EPDISD_Pos (1U)
  22862. #define USB_OTG_DIEPINT_EPDISD_Msk (0x1U << USB_OTG_DIEPINT_EPDISD_Pos) /*!< 0x00000002 */
  22863. #define USB_OTG_DIEPINT_EPDISD USB_OTG_DIEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  22864. #define USB_OTG_DIEPINT_TOC_Pos (3U)
  22865. #define USB_OTG_DIEPINT_TOC_Msk (0x1U << USB_OTG_DIEPINT_TOC_Pos) /*!< 0x00000008 */
  22866. #define USB_OTG_DIEPINT_TOC USB_OTG_DIEPINT_TOC_Msk /*!< Timeout condition */
  22867. #define USB_OTG_DIEPINT_ITTXFE_Pos (4U)
  22868. #define USB_OTG_DIEPINT_ITTXFE_Msk (0x1U << USB_OTG_DIEPINT_ITTXFE_Pos) /*!< 0x00000010 */
  22869. #define USB_OTG_DIEPINT_ITTXFE USB_OTG_DIEPINT_ITTXFE_Msk /*!< IN token received when TxFIFO is empty */
  22870. #define USB_OTG_DIEPINT_INEPNE_Pos (6U)
  22871. #define USB_OTG_DIEPINT_INEPNE_Msk (0x1U << USB_OTG_DIEPINT_INEPNE_Pos) /*!< 0x00000040 */
  22872. #define USB_OTG_DIEPINT_INEPNE USB_OTG_DIEPINT_INEPNE_Msk /*!< IN endpoint NAK effective */
  22873. #define USB_OTG_DIEPINT_TXFE_Pos (7U)
  22874. #define USB_OTG_DIEPINT_TXFE_Msk (0x1U << USB_OTG_DIEPINT_TXFE_Pos) /*!< 0x00000080 */
  22875. #define USB_OTG_DIEPINT_TXFE USB_OTG_DIEPINT_TXFE_Msk /*!< Transmit FIFO empty */
  22876. #define USB_OTG_DIEPINT_TXFIFOUDRN_Pos (8U)
  22877. #define USB_OTG_DIEPINT_TXFIFOUDRN_Msk (0x1U << USB_OTG_DIEPINT_TXFIFOUDRN_Pos) /*!< 0x00000100 */
  22878. #define USB_OTG_DIEPINT_TXFIFOUDRN USB_OTG_DIEPINT_TXFIFOUDRN_Msk /*!< Transmit Fifo Underrun */
  22879. #define USB_OTG_DIEPINT_BNA_Pos (9U)
  22880. #define USB_OTG_DIEPINT_BNA_Msk (0x1U << USB_OTG_DIEPINT_BNA_Pos) /*!< 0x00000200 */
  22881. #define USB_OTG_DIEPINT_BNA USB_OTG_DIEPINT_BNA_Msk /*!< Buffer not available interrupt */
  22882. #define USB_OTG_DIEPINT_PKTDRPSTS_Pos (11U)
  22883. #define USB_OTG_DIEPINT_PKTDRPSTS_Msk (0x1U << USB_OTG_DIEPINT_PKTDRPSTS_Pos) /*!< 0x00000800 */
  22884. #define USB_OTG_DIEPINT_PKTDRPSTS USB_OTG_DIEPINT_PKTDRPSTS_Msk /*!< Packet dropped status */
  22885. #define USB_OTG_DIEPINT_BERR_Pos (12U)
  22886. #define USB_OTG_DIEPINT_BERR_Msk (0x1U << USB_OTG_DIEPINT_BERR_Pos) /*!< 0x00001000 */
  22887. #define USB_OTG_DIEPINT_BERR USB_OTG_DIEPINT_BERR_Msk /*!< Babble error interrupt */
  22888. #define USB_OTG_DIEPINT_NAK_Pos (13U)
  22889. #define USB_OTG_DIEPINT_NAK_Msk (0x1U << USB_OTG_DIEPINT_NAK_Pos) /*!< 0x00002000 */
  22890. #define USB_OTG_DIEPINT_NAK USB_OTG_DIEPINT_NAK_Msk /*!< NAK interrupt */
  22891. /******************** Bit definition forUSB_OTG_HCINTMSK register ********************/
  22892. #define USB_OTG_HCINTMSK_XFRCM_Pos (0U)
  22893. #define USB_OTG_HCINTMSK_XFRCM_Msk (0x1U << USB_OTG_HCINTMSK_XFRCM_Pos) /*!< 0x00000001 */
  22894. #define USB_OTG_HCINTMSK_XFRCM USB_OTG_HCINTMSK_XFRCM_Msk /*!< Transfer completed mask */
  22895. #define USB_OTG_HCINTMSK_CHHM_Pos (1U)
  22896. #define USB_OTG_HCINTMSK_CHHM_Msk (0x1U << USB_OTG_HCINTMSK_CHHM_Pos) /*!< 0x00000002 */
  22897. #define USB_OTG_HCINTMSK_CHHM USB_OTG_HCINTMSK_CHHM_Msk /*!< Channel halted mask */
  22898. #define USB_OTG_HCINTMSK_AHBERR_Pos (2U)
  22899. #define USB_OTG_HCINTMSK_AHBERR_Msk (0x1U << USB_OTG_HCINTMSK_AHBERR_Pos) /*!< 0x00000004 */
  22900. #define USB_OTG_HCINTMSK_AHBERR USB_OTG_HCINTMSK_AHBERR_Msk /*!< AHB error */
  22901. #define USB_OTG_HCINTMSK_STALLM_Pos (3U)
  22902. #define USB_OTG_HCINTMSK_STALLM_Msk (0x1U << USB_OTG_HCINTMSK_STALLM_Pos) /*!< 0x00000008 */
  22903. #define USB_OTG_HCINTMSK_STALLM USB_OTG_HCINTMSK_STALLM_Msk /*!< STALL response received interrupt mask */
  22904. #define USB_OTG_HCINTMSK_NAKM_Pos (4U)
  22905. #define USB_OTG_HCINTMSK_NAKM_Msk (0x1U << USB_OTG_HCINTMSK_NAKM_Pos) /*!< 0x00000010 */
  22906. #define USB_OTG_HCINTMSK_NAKM USB_OTG_HCINTMSK_NAKM_Msk /*!< NAK response received interrupt mask */
  22907. #define USB_OTG_HCINTMSK_ACKM_Pos (5U)
  22908. #define USB_OTG_HCINTMSK_ACKM_Msk (0x1U << USB_OTG_HCINTMSK_ACKM_Pos) /*!< 0x00000020 */
  22909. #define USB_OTG_HCINTMSK_ACKM USB_OTG_HCINTMSK_ACKM_Msk /*!< ACK response received/transmitted interrupt mask */
  22910. #define USB_OTG_HCINTMSK_NYET_Pos (6U)
  22911. #define USB_OTG_HCINTMSK_NYET_Msk (0x1U << USB_OTG_HCINTMSK_NYET_Pos) /*!< 0x00000040 */
  22912. #define USB_OTG_HCINTMSK_NYET USB_OTG_HCINTMSK_NYET_Msk /*!< response received interrupt mask */
  22913. #define USB_OTG_HCINTMSK_TXERRM_Pos (7U)
  22914. #define USB_OTG_HCINTMSK_TXERRM_Msk (0x1U << USB_OTG_HCINTMSK_TXERRM_Pos) /*!< 0x00000080 */
  22915. #define USB_OTG_HCINTMSK_TXERRM USB_OTG_HCINTMSK_TXERRM_Msk /*!< Transaction error mask */
  22916. #define USB_OTG_HCINTMSK_BBERRM_Pos (8U)
  22917. #define USB_OTG_HCINTMSK_BBERRM_Msk (0x1U << USB_OTG_HCINTMSK_BBERRM_Pos) /*!< 0x00000100 */
  22918. #define USB_OTG_HCINTMSK_BBERRM USB_OTG_HCINTMSK_BBERRM_Msk /*!< Babble error mask */
  22919. #define USB_OTG_HCINTMSK_FRMORM_Pos (9U)
  22920. #define USB_OTG_HCINTMSK_FRMORM_Msk (0x1U << USB_OTG_HCINTMSK_FRMORM_Pos) /*!< 0x00000200 */
  22921. #define USB_OTG_HCINTMSK_FRMORM USB_OTG_HCINTMSK_FRMORM_Msk /*!< Frame overrun mask */
  22922. #define USB_OTG_HCINTMSK_DTERRM_Pos (10U)
  22923. #define USB_OTG_HCINTMSK_DTERRM_Msk (0x1U << USB_OTG_HCINTMSK_DTERRM_Pos) /*!< 0x00000400 */
  22924. #define USB_OTG_HCINTMSK_DTERRM USB_OTG_HCINTMSK_DTERRM_Msk /*!< Data toggle error mask */
  22925. /******************** Bit definition for USB_OTG_DIEPTSIZ register ********************/
  22926. #define USB_OTG_DIEPTSIZ_XFRSIZ_Pos (0U)
  22927. #define USB_OTG_DIEPTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_DIEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  22928. #define USB_OTG_DIEPTSIZ_XFRSIZ USB_OTG_DIEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  22929. #define USB_OTG_DIEPTSIZ_PKTCNT_Pos (19U)
  22930. #define USB_OTG_DIEPTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_DIEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  22931. #define USB_OTG_DIEPTSIZ_PKTCNT USB_OTG_DIEPTSIZ_PKTCNT_Msk /*!< Packet count */
  22932. #define USB_OTG_DIEPTSIZ_MULCNT_Pos (29U)
  22933. #define USB_OTG_DIEPTSIZ_MULCNT_Msk (0x3U << USB_OTG_DIEPTSIZ_MULCNT_Pos) /*!< 0x60000000 */
  22934. #define USB_OTG_DIEPTSIZ_MULCNT USB_OTG_DIEPTSIZ_MULCNT_Msk /*!< Packet count */
  22935. /******************** Bit definition forUSB_OTG_HCTSIZ register ********************/
  22936. #define USB_OTG_HCTSIZ_XFRSIZ_Pos (0U)
  22937. #define USB_OTG_HCTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_HCTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  22938. #define USB_OTG_HCTSIZ_XFRSIZ USB_OTG_HCTSIZ_XFRSIZ_Msk /*!< Transfer size */
  22939. #define USB_OTG_HCTSIZ_PKTCNT_Pos (19U)
  22940. #define USB_OTG_HCTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_HCTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  22941. #define USB_OTG_HCTSIZ_PKTCNT USB_OTG_HCTSIZ_PKTCNT_Msk /*!< Packet count */
  22942. #define USB_OTG_HCTSIZ_DOPING_Pos (31U)
  22943. #define USB_OTG_HCTSIZ_DOPING_Msk (0x1U << USB_OTG_HCTSIZ_DOPING_Pos) /*!< 0x80000000 */
  22944. #define USB_OTG_HCTSIZ_DOPING USB_OTG_HCTSIZ_DOPING_Msk /*!< Do PING */
  22945. #define USB_OTG_HCTSIZ_DPID_Pos (29U)
  22946. #define USB_OTG_HCTSIZ_DPID_Msk (0x3U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x60000000 */
  22947. #define USB_OTG_HCTSIZ_DPID USB_OTG_HCTSIZ_DPID_Msk /*!< Data PID */
  22948. #define USB_OTG_HCTSIZ_DPID_0 (0x1U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x20000000 */
  22949. #define USB_OTG_HCTSIZ_DPID_1 (0x2U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x40000000 */
  22950. /******************** Bit definition forUSB_OTG_DIEPDMA register ********************/
  22951. #define USB_OTG_DIEPDMA_DMAADDR_Pos (0U)
  22952. #define USB_OTG_DIEPDMA_DMAADDR_Msk (0xFFFFFFFFU << USB_OTG_DIEPDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  22953. #define USB_OTG_DIEPDMA_DMAADDR USB_OTG_DIEPDMA_DMAADDR_Msk /*!< DMA address */
  22954. /******************** Bit definition forUSB_OTG_HCDMA register ********************/
  22955. #define USB_OTG_HCDMA_DMAADDR_Pos (0U)
  22956. #define USB_OTG_HCDMA_DMAADDR_Msk (0xFFFFFFFFU << USB_OTG_HCDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  22957. #define USB_OTG_HCDMA_DMAADDR USB_OTG_HCDMA_DMAADDR_Msk /*!< DMA address */
  22958. /******************** Bit definition forUSB_OTG_DTXFSTS register ********************/
  22959. #define USB_OTG_DTXFSTS_INEPTFSAV_Pos (0U)
  22960. #define USB_OTG_DTXFSTS_INEPTFSAV_Msk (0xFFFFU << USB_OTG_DTXFSTS_INEPTFSAV_Pos) /*!< 0x0000FFFF */
  22961. #define USB_OTG_DTXFSTS_INEPTFSAV USB_OTG_DTXFSTS_INEPTFSAV_Msk /*!< IN endpoint TxFIFO space available */
  22962. /******************** Bit definition forUSB_OTG_DIEPTXF register ********************/
  22963. #define USB_OTG_DIEPTXF_INEPTXSA_Pos (0U)
  22964. #define USB_OTG_DIEPTXF_INEPTXSA_Msk (0xFFFFU << USB_OTG_DIEPTXF_INEPTXSA_Pos) /*!< 0x0000FFFF */
  22965. #define USB_OTG_DIEPTXF_INEPTXSA USB_OTG_DIEPTXF_INEPTXSA_Msk /*!< IN endpoint FIFOx transmit RAM start address */
  22966. #define USB_OTG_DIEPTXF_INEPTXFD_Pos (16U)
  22967. #define USB_OTG_DIEPTXF_INEPTXFD_Msk (0xFFFFU << USB_OTG_DIEPTXF_INEPTXFD_Pos) /*!< 0xFFFF0000 */
  22968. #define USB_OTG_DIEPTXF_INEPTXFD USB_OTG_DIEPTXF_INEPTXFD_Msk /*!< IN endpoint TxFIFO depth */
  22969. /******************** Bit definition forUSB_OTG_DOEPCTL register ********************/
  22970. #define USB_OTG_DOEPCTL_MPSIZ_Pos (0U)
  22971. #define USB_OTG_DOEPCTL_MPSIZ_Msk (0x7FFU << USB_OTG_DOEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  22972. #define USB_OTG_DOEPCTL_MPSIZ USB_OTG_DOEPCTL_MPSIZ_Msk /*!< Maximum packet size */ /*!<Bit 1 */
  22973. #define USB_OTG_DOEPCTL_USBAEP_Pos (15U)
  22974. #define USB_OTG_DOEPCTL_USBAEP_Msk (0x1U << USB_OTG_DOEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  22975. #define USB_OTG_DOEPCTL_USBAEP USB_OTG_DOEPCTL_USBAEP_Msk /*!< USB active endpoint */
  22976. #define USB_OTG_DOEPCTL_NAKSTS_Pos (17U)
  22977. #define USB_OTG_DOEPCTL_NAKSTS_Msk (0x1U << USB_OTG_DOEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  22978. #define USB_OTG_DOEPCTL_NAKSTS USB_OTG_DOEPCTL_NAKSTS_Msk /*!< NAK status */
  22979. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos (28U)
  22980. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk (0x1U << USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  22981. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  22982. #define USB_OTG_DOEPCTL_SODDFRM_Pos (29U)
  22983. #define USB_OTG_DOEPCTL_SODDFRM_Msk (0x1U << USB_OTG_DOEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  22984. #define USB_OTG_DOEPCTL_SODDFRM USB_OTG_DOEPCTL_SODDFRM_Msk /*!< Set odd frame */
  22985. #define USB_OTG_DOEPCTL_EPTYP_Pos (18U)
  22986. #define USB_OTG_DOEPCTL_EPTYP_Msk (0x3U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  22987. #define USB_OTG_DOEPCTL_EPTYP USB_OTG_DOEPCTL_EPTYP_Msk /*!< Endpoint type */
  22988. #define USB_OTG_DOEPCTL_EPTYP_0 (0x1U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  22989. #define USB_OTG_DOEPCTL_EPTYP_1 (0x2U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  22990. #define USB_OTG_DOEPCTL_SNPM_Pos (20U)
  22991. #define USB_OTG_DOEPCTL_SNPM_Msk (0x1U << USB_OTG_DOEPCTL_SNPM_Pos) /*!< 0x00100000 */
  22992. #define USB_OTG_DOEPCTL_SNPM USB_OTG_DOEPCTL_SNPM_Msk /*!< Snoop mode */
  22993. #define USB_OTG_DOEPCTL_STALL_Pos (21U)
  22994. #define USB_OTG_DOEPCTL_STALL_Msk (0x1U << USB_OTG_DOEPCTL_STALL_Pos) /*!< 0x00200000 */
  22995. #define USB_OTG_DOEPCTL_STALL USB_OTG_DOEPCTL_STALL_Msk /*!< STALL handshake */
  22996. #define USB_OTG_DOEPCTL_CNAK_Pos (26U)
  22997. #define USB_OTG_DOEPCTL_CNAK_Msk (0x1U << USB_OTG_DOEPCTL_CNAK_Pos) /*!< 0x04000000 */
  22998. #define USB_OTG_DOEPCTL_CNAK USB_OTG_DOEPCTL_CNAK_Msk /*!< Clear NAK */
  22999. #define USB_OTG_DOEPCTL_SNAK_Pos (27U)
  23000. #define USB_OTG_DOEPCTL_SNAK_Msk (0x1U << USB_OTG_DOEPCTL_SNAK_Pos) /*!< 0x08000000 */
  23001. #define USB_OTG_DOEPCTL_SNAK USB_OTG_DOEPCTL_SNAK_Msk /*!< Set NAK */
  23002. #define USB_OTG_DOEPCTL_EPDIS_Pos (30U)
  23003. #define USB_OTG_DOEPCTL_EPDIS_Msk (0x1U << USB_OTG_DOEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  23004. #define USB_OTG_DOEPCTL_EPDIS USB_OTG_DOEPCTL_EPDIS_Msk /*!< Endpoint disable */
  23005. #define USB_OTG_DOEPCTL_EPENA_Pos (31U)
  23006. #define USB_OTG_DOEPCTL_EPENA_Msk (0x1U << USB_OTG_DOEPCTL_EPENA_Pos) /*!< 0x80000000 */
  23007. #define USB_OTG_DOEPCTL_EPENA USB_OTG_DOEPCTL_EPENA_Msk /*!< Endpoint enable */
  23008. /******************** Bit definition forUSB_OTG_DOEPINT register ********************/
  23009. #define USB_OTG_DOEPINT_XFRC_Pos (0U)
  23010. #define USB_OTG_DOEPINT_XFRC_Msk (0x1U << USB_OTG_DOEPINT_XFRC_Pos) /*!< 0x00000001 */
  23011. #define USB_OTG_DOEPINT_XFRC USB_OTG_DOEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  23012. #define USB_OTG_DOEPINT_EPDISD_Pos (1U)
  23013. #define USB_OTG_DOEPINT_EPDISD_Msk (0x1U << USB_OTG_DOEPINT_EPDISD_Pos) /*!< 0x00000002 */
  23014. #define USB_OTG_DOEPINT_EPDISD USB_OTG_DOEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  23015. #define USB_OTG_DOEPINT_STUP_Pos (3U)
  23016. #define USB_OTG_DOEPINT_STUP_Msk (0x1U << USB_OTG_DOEPINT_STUP_Pos) /*!< 0x00000008 */
  23017. #define USB_OTG_DOEPINT_STUP USB_OTG_DOEPINT_STUP_Msk /*!< SETUP phase done */
  23018. #define USB_OTG_DOEPINT_OTEPDIS_Pos (4U)
  23019. #define USB_OTG_DOEPINT_OTEPDIS_Msk (0x1U << USB_OTG_DOEPINT_OTEPDIS_Pos) /*!< 0x00000010 */
  23020. #define USB_OTG_DOEPINT_OTEPDIS USB_OTG_DOEPINT_OTEPDIS_Msk /*!< OUT token received when endpoint disabled */
  23021. #define USB_OTG_DOEPINT_OTEPSPR_Pos (5U)
  23022. #define USB_OTG_DOEPINT_OTEPSPR_Msk (0x1U << USB_OTG_DOEPINT_OTEPSPR_Pos) /*!< 0x00000020 */
  23023. #define USB_OTG_DOEPINT_OTEPSPR USB_OTG_DOEPINT_OTEPSPR_Msk /*!< OUT Status Phase Received interrupt */
  23024. #define USB_OTG_DOEPINT_B2BSTUP_Pos (6U)
  23025. #define USB_OTG_DOEPINT_B2BSTUP_Msk (0x1U << USB_OTG_DOEPINT_B2BSTUP_Pos) /*!< 0x00000040 */
  23026. #define USB_OTG_DOEPINT_B2BSTUP USB_OTG_DOEPINT_B2BSTUP_Msk /*!< Back-to-back SETUP packets received */
  23027. #define USB_OTG_DOEPINT_NYET_Pos (14U)
  23028. #define USB_OTG_DOEPINT_NYET_Msk (0x1U << USB_OTG_DOEPINT_NYET_Pos) /*!< 0x00004000 */
  23029. #define USB_OTG_DOEPINT_NYET USB_OTG_DOEPINT_NYET_Msk /*!< NYET interrupt */
  23030. /******************** Bit definition forUSB_OTG_DOEPTSIZ register ********************/
  23031. #define USB_OTG_DOEPTSIZ_XFRSIZ_Pos (0U)
  23032. #define USB_OTG_DOEPTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_DOEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  23033. #define USB_OTG_DOEPTSIZ_XFRSIZ USB_OTG_DOEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  23034. #define USB_OTG_DOEPTSIZ_PKTCNT_Pos (19U)
  23035. #define USB_OTG_DOEPTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_DOEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  23036. #define USB_OTG_DOEPTSIZ_PKTCNT USB_OTG_DOEPTSIZ_PKTCNT_Msk /*!< Packet count */
  23037. #define USB_OTG_DOEPTSIZ_STUPCNT_Pos (29U)
  23038. #define USB_OTG_DOEPTSIZ_STUPCNT_Msk (0x3U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x60000000 */
  23039. #define USB_OTG_DOEPTSIZ_STUPCNT USB_OTG_DOEPTSIZ_STUPCNT_Msk /*!< SETUP packet count */
  23040. #define USB_OTG_DOEPTSIZ_STUPCNT_0 (0x1U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x20000000 */
  23041. #define USB_OTG_DOEPTSIZ_STUPCNT_1 (0x2U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x40000000 */
  23042. /******************** Bit definition for PCGCCTL register ********************/
  23043. #define USB_OTG_PCGCCTL_STOPCLK_Pos (0U)
  23044. #define USB_OTG_PCGCCTL_STOPCLK_Msk (0x1U << USB_OTG_PCGCCTL_STOPCLK_Pos) /*!< 0x00000001 */
  23045. #define USB_OTG_PCGCCTL_STOPCLK USB_OTG_PCGCCTL_STOPCLK_Msk /*!< SETUP packet count */
  23046. #define USB_OTG_PCGCCTL_GATECLK_Pos (1U)
  23047. #define USB_OTG_PCGCCTL_GATECLK_Msk (0x1U << USB_OTG_PCGCCTL_GATECLK_Pos) /*!< 0x00000002 */
  23048. #define USB_OTG_PCGCCTL_GATECLK USB_OTG_PCGCCTL_GATECLK_Msk /*!<Bit 0 */
  23049. #define USB_OTG_PCGCCTL_PHYSUSP_Pos (4U)
  23050. #define USB_OTG_PCGCCTL_PHYSUSP_Msk (0x1U << USB_OTG_PCGCCTL_PHYSUSP_Pos) /*!< 0x00000010 */
  23051. #define USB_OTG_PCGCCTL_PHYSUSP USB_OTG_PCGCCTL_PHYSUSP_Msk /*!<Bit 1 */
  23052. /**
  23053. * @}
  23054. */
  23055. /**
  23056. * @}
  23057. */
  23058. /** @addtogroup Exported_macros
  23059. * @{
  23060. */
  23061. /******************************* ADC Instances ********************************/
  23062. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
  23063. ((INSTANCE) == ADC2) || \
  23064. ((INSTANCE) == ADC3))
  23065. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  23066. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON ||\
  23067. (INSTANCE) == ADC3_COMMON)
  23068. /******************************** COMP Instances ******************************/
  23069. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  23070. ((INSTANCE) == COMP2))
  23071. #define IS_COMP_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == COMP12_COMMON)
  23072. /******************** COMP Instances with window mode capability **************/
  23073. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  23074. /******************************* CRC Instances ********************************/
  23075. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  23076. /******************************* DAC Instances ********************************/
  23077. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
  23078. /******************************* DCMI Instances *******************************/
  23079. #define IS_DCMI_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DCMI)
  23080. /****************************** DFSDM Instances *******************************/
  23081. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0) || \
  23082. ((INSTANCE) == DFSDM1_Filter1) || \
  23083. ((INSTANCE) == DFSDM1_Filter2) || \
  23084. ((INSTANCE) == DFSDM1_Filter3))
  23085. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0) || \
  23086. ((INSTANCE) == DFSDM1_Channel1) || \
  23087. ((INSTANCE) == DFSDM1_Channel2) || \
  23088. ((INSTANCE) == DFSDM1_Channel3) || \
  23089. ((INSTANCE) == DFSDM1_Channel4) || \
  23090. ((INSTANCE) == DFSDM1_Channel5) || \
  23091. ((INSTANCE) == DFSDM1_Channel6) || \
  23092. ((INSTANCE) == DFSDM1_Channel7))
  23093. /******************************** DMA Instances *******************************/
  23094. #define IS_DMA_STREAM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  23095. ((INSTANCE) == DMA1_Stream1) || \
  23096. ((INSTANCE) == DMA1_Stream2) || \
  23097. ((INSTANCE) == DMA1_Stream3) || \
  23098. ((INSTANCE) == DMA1_Stream4) || \
  23099. ((INSTANCE) == DMA1_Stream5) || \
  23100. ((INSTANCE) == DMA1_Stream6) || \
  23101. ((INSTANCE) == DMA1_Stream7) || \
  23102. ((INSTANCE) == DMA2_Stream0) || \
  23103. ((INSTANCE) == DMA2_Stream1) || \
  23104. ((INSTANCE) == DMA2_Stream2) || \
  23105. ((INSTANCE) == DMA2_Stream3) || \
  23106. ((INSTANCE) == DMA2_Stream4) || \
  23107. ((INSTANCE) == DMA2_Stream5) || \
  23108. ((INSTANCE) == DMA2_Stream6) || \
  23109. ((INSTANCE) == DMA2_Stream7) || \
  23110. ((INSTANCE) == BDMA_Channel0) || \
  23111. ((INSTANCE) == BDMA_Channel1) || \
  23112. ((INSTANCE) == BDMA_Channel2) || \
  23113. ((INSTANCE) == BDMA_Channel3) || \
  23114. ((INSTANCE) == BDMA_Channel4) || \
  23115. ((INSTANCE) == BDMA_Channel5) || \
  23116. ((INSTANCE) == BDMA_Channel6) || \
  23117. ((INSTANCE) == BDMA_Channel7))
  23118. /******************************** DMA Request Generator Instances **************/
  23119. #define IS_DMA_REQUEST_GEN_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMAMUX1_RequestGenerator0) || \
  23120. ((INSTANCE) == DMAMUX1_RequestGenerator1) || \
  23121. ((INSTANCE) == DMAMUX1_RequestGenerator2) || \
  23122. ((INSTANCE) == DMAMUX1_RequestGenerator3) || \
  23123. ((INSTANCE) == DMAMUX1_RequestGenerator4) || \
  23124. ((INSTANCE) == DMAMUX1_RequestGenerator5) || \
  23125. ((INSTANCE) == DMAMUX1_RequestGenerator6) || \
  23126. ((INSTANCE) == DMAMUX1_RequestGenerator7) || \
  23127. ((INSTANCE) == DMAMUX2_RequestGenerator0) || \
  23128. ((INSTANCE) == DMAMUX2_RequestGenerator1) || \
  23129. ((INSTANCE) == DMAMUX2_RequestGenerator2) || \
  23130. ((INSTANCE) == DMAMUX2_RequestGenerator3) || \
  23131. ((INSTANCE) == DMAMUX2_RequestGenerator4) || \
  23132. ((INSTANCE) == DMAMUX2_RequestGenerator5) || \
  23133. ((INSTANCE) == DMAMUX2_RequestGenerator6) || \
  23134. ((INSTANCE) == DMAMUX2_RequestGenerator7))
  23135. /******************************* DMA2D Instances *******************************/
  23136. #define IS_DMA2D_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DMA2D)
  23137. /******************************** MDMA Request Generator Instances **************/
  23138. #define IS_MDMA_STREAM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == MDMA_Channel0) || \
  23139. ((INSTANCE) == MDMA_Channel1) || \
  23140. ((INSTANCE) == MDMA_Channel2) || \
  23141. ((INSTANCE) == MDMA_Channel3) || \
  23142. ((INSTANCE) == MDMA_Channel4) || \
  23143. ((INSTANCE) == MDMA_Channel5) || \
  23144. ((INSTANCE) == MDMA_Channel6) || \
  23145. ((INSTANCE) == MDMA_Channel7) || \
  23146. ((INSTANCE) == MDMA_Channel8) || \
  23147. ((INSTANCE) == MDMA_Channel9) || \
  23148. ((INSTANCE) == MDMA_Channel10) || \
  23149. ((INSTANCE) == MDMA_Channel11) || \
  23150. ((INSTANCE) == MDMA_Channel12) || \
  23151. ((INSTANCE) == MDMA_Channel13) || \
  23152. ((INSTANCE) == MDMA_Channel14) || \
  23153. ((INSTANCE) == MDMA_Channel15))
  23154. /******************************* QUADSPI Instances *******************************/
  23155. #define IS_QSPI_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == QUADSPI)
  23156. /******************************* FDCAN Instances ******************************/
  23157. #define IS_FDCAN_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == FDCAN1) || \
  23158. ((__INSTANCE__) == FDCAN2))
  23159. #define IS_FDCAN_TT_INSTANCE(__INSTANCE__) ((__INSTANCE__) == FDCAN1)
  23160. /******************************* GPIO Instances *******************************/
  23161. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  23162. ((INSTANCE) == GPIOB) || \
  23163. ((INSTANCE) == GPIOC) || \
  23164. ((INSTANCE) == GPIOD) || \
  23165. ((INSTANCE) == GPIOE) || \
  23166. ((INSTANCE) == GPIOF) || \
  23167. ((INSTANCE) == GPIOG) || \
  23168. ((INSTANCE) == GPIOH) || \
  23169. ((INSTANCE) == GPIOI) || \
  23170. ((INSTANCE) == GPIOJ) || \
  23171. ((INSTANCE) == GPIOK))
  23172. /**************************** GPIO Lock Instances *****************************/
  23173. /* On H7, all GPIO Bank support the Lock mechanism */
  23174. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  23175. /******************************** HSEM Instances *******************************/
  23176. #define IS_HSEM_ALL_INSTANCE(INSTANCE) ((INSTANCE) == HSEM)
  23177. #define HSEM_CM7_MASTERID (0x00000003U) /* Semaphore Master CM7 ID */
  23178. #define HSEM_SEMID_MIN (0U) /* HSEM ID Min*/
  23179. #define HSEM_SEMID_MAX (31U) /* HSEM ID Max */
  23180. #define HSEM_PROCESSID_MIN (0U) /* HSEM Process ID Min */
  23181. #define HSEM_PROCESSID_MAX (255U) /* HSEM Process ID Max */
  23182. #define HSEM_CLEAR_KEY_MIN (0U) /* HSEM clear Key Min value */
  23183. #define HSEM_CLEAR_KEY_MAX (0xFFFFU) /* HSEM clear Key Max value */
  23184. /******************************** I2C Instances *******************************/
  23185. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  23186. ((INSTANCE) == I2C2) || \
  23187. ((INSTANCE) == I2C3) || \
  23188. ((INSTANCE) == I2C4))
  23189. /************** I2C Instances : wakeup capability from stop modes *************/
  23190. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  23191. /****************************** SMBUS Instances *******************************/
  23192. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  23193. ((INSTANCE) == I2C2) || \
  23194. ((INSTANCE) == I2C3) || \
  23195. ((INSTANCE) == I2C4))
  23196. /******************************** I2S Instances *******************************/
  23197. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  23198. ((INSTANCE) == SPI2) || \
  23199. ((INSTANCE) == SPI3))
  23200. /****************************** LTDC Instances ********************************/
  23201. #define IS_LTDC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LTDC)
  23202. /******************************* RNG Instances ********************************/
  23203. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG)
  23204. /****************************** RTC Instances *********************************/
  23205. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  23206. /******************************** SMBUS Instances *****************************/
  23207. #define IS_SMBUS_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  23208. /******************************** SPI Instances *******************************/
  23209. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  23210. ((INSTANCE) == SPI2) || \
  23211. ((INSTANCE) == SPI3) || \
  23212. ((INSTANCE) == SPI4) || \
  23213. ((INSTANCE) == SPI5) || \
  23214. ((INSTANCE) == SPI6))
  23215. #define IS_SPI_HIGHEND_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  23216. ((INSTANCE) == SPI2) || \
  23217. ((INSTANCE) == SPI3))
  23218. /******************************** SWPMI Instances *****************************/
  23219. #define IS_SWPMI_INSTANCE(INSTANCE) ((INSTANCE) == SWPMI1)
  23220. /****************** LPTIM Instances : All supported instances *****************/
  23221. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \
  23222. ((INSTANCE) == LPTIM2) || \
  23223. ((INSTANCE) == LPTIM3) ||\
  23224. ((INSTANCE) == LPTIM4) ||\
  23225. ((INSTANCE) == LPTIM5))
  23226. /****************** TIM Instances : All supported instances *******************/
  23227. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23228. ((INSTANCE) == TIM2) || \
  23229. ((INSTANCE) == TIM3) || \
  23230. ((INSTANCE) == TIM4) || \
  23231. ((INSTANCE) == TIM5) || \
  23232. ((INSTANCE) == TIM6) || \
  23233. ((INSTANCE) == TIM7) || \
  23234. ((INSTANCE) == TIM8) || \
  23235. ((INSTANCE) == TIM12) || \
  23236. ((INSTANCE) == TIM13) || \
  23237. ((INSTANCE) == TIM14) || \
  23238. ((INSTANCE) == TIM15) || \
  23239. ((INSTANCE) == TIM16) || \
  23240. ((INSTANCE) == TIM17))
  23241. /************* TIM Instances : at least 1 capture/compare channel *************/
  23242. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23243. ((INSTANCE) == TIM2) || \
  23244. ((INSTANCE) == TIM3) || \
  23245. ((INSTANCE) == TIM4) || \
  23246. ((INSTANCE) == TIM5) || \
  23247. ((INSTANCE) == TIM8) || \
  23248. ((INSTANCE) == TIM12) || \
  23249. ((INSTANCE) == TIM13) || \
  23250. ((INSTANCE) == TIM14) || \
  23251. ((INSTANCE) == TIM15) || \
  23252. ((INSTANCE) == TIM16) || \
  23253. ((INSTANCE) == TIM17))
  23254. /************ TIM Instances : at least 2 capture/compare channels *************/
  23255. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23256. ((INSTANCE) == TIM2) || \
  23257. ((INSTANCE) == TIM3) || \
  23258. ((INSTANCE) == TIM4) || \
  23259. ((INSTANCE) == TIM5) || \
  23260. ((INSTANCE) == TIM8) || \
  23261. ((INSTANCE) == TIM12) || \
  23262. ((INSTANCE) == TIM15))
  23263. /************ TIM Instances : at least 3 capture/compare channels *************/
  23264. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23265. ((INSTANCE) == TIM2) || \
  23266. ((INSTANCE) == TIM3) || \
  23267. ((INSTANCE) == TIM4) || \
  23268. ((INSTANCE) == TIM5) || \
  23269. ((INSTANCE) == TIM8))
  23270. /************ TIM Instances : at least 4 capture/compare channels *************/
  23271. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23272. ((INSTANCE) == TIM2) || \
  23273. ((INSTANCE) == TIM3) || \
  23274. ((INSTANCE) == TIM4) || \
  23275. ((INSTANCE) == TIM5) || \
  23276. ((INSTANCE) == TIM8))
  23277. /************ TIM Instances : at least 5 capture/compare channels *************/
  23278. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23279. ((INSTANCE) == TIM8))
  23280. /************ TIM Instances : at least 6 capture/compare channels *************/
  23281. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23282. ((INSTANCE) == TIM8))
  23283. /******************** TIM Instances : Advanced-control timers *****************/
  23284. /******************* TIM Instances : Timer input XOR function *****************/
  23285. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23286. ((INSTANCE) == TIM2) || \
  23287. ((INSTANCE) == TIM3) || \
  23288. ((INSTANCE) == TIM4) || \
  23289. ((INSTANCE) == TIM5) || \
  23290. ((INSTANCE) == TIM8))
  23291. /****************** TIM Instances : DMA requests generation (UDE) *************/
  23292. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23293. ((INSTANCE) == TIM2) || \
  23294. ((INSTANCE) == TIM3) || \
  23295. ((INSTANCE) == TIM4) || \
  23296. ((INSTANCE) == TIM5) || \
  23297. ((INSTANCE) == TIM6) || \
  23298. ((INSTANCE) == TIM7) || \
  23299. ((INSTANCE) == TIM8) || \
  23300. ((INSTANCE) == TIM15) || \
  23301. ((INSTANCE) == TIM16) || \
  23302. ((INSTANCE) == TIM17))
  23303. /************ TIM Instances : DMA requests generation (CCxDE) *****************/
  23304. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23305. ((INSTANCE) == TIM2) || \
  23306. ((INSTANCE) == TIM3) || \
  23307. ((INSTANCE) == TIM4) || \
  23308. ((INSTANCE) == TIM5) || \
  23309. ((INSTANCE) == TIM8) || \
  23310. ((INSTANCE) == TIM15) || \
  23311. ((INSTANCE) == TIM16) || \
  23312. ((INSTANCE) == TIM17))
  23313. /************ TIM Instances : DMA requests generation (COMDE) *****************/
  23314. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23315. ((INSTANCE) == TIM2) || \
  23316. ((INSTANCE) == TIM3) || \
  23317. ((INSTANCE) == TIM4) || \
  23318. ((INSTANCE) == TIM5) || \
  23319. ((INSTANCE) == TIM8) || \
  23320. ((INSTANCE) == TIM15))
  23321. /******************** TIM Instances : DMA burst feature ***********************/
  23322. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23323. ((INSTANCE) == TIM2) || \
  23324. ((INSTANCE) == TIM3) || \
  23325. ((INSTANCE) == TIM4) || \
  23326. ((INSTANCE) == TIM5) || \
  23327. ((INSTANCE) == TIM8))
  23328. /***************** TIM Instances : external trigger reamp input availabe *******/
  23329. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23330. ((INSTANCE) == TIM2) || \
  23331. ((INSTANCE) == TIM3) || \
  23332. ((INSTANCE) == TIM4) || \
  23333. ((INSTANCE) == TIM5) || \
  23334. ((INSTANCE) == TIM8))
  23335. /***************** TIM Instances : external trigger reamp input availabe *******/
  23336. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23337. ((INSTANCE) == TIM2) || \
  23338. ((INSTANCE) == TIM3) || \
  23339. ((INSTANCE) == TIM5) || \
  23340. ((INSTANCE) == TIM8))
  23341. /****** TIM Instances : master mode available (TIMx_CR2.MMS available )********/
  23342. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23343. ((INSTANCE) == TIM2) || \
  23344. ((INSTANCE) == TIM3) || \
  23345. ((INSTANCE) == TIM4) || \
  23346. ((INSTANCE) == TIM5) || \
  23347. ((INSTANCE) == TIM6) || \
  23348. ((INSTANCE) == TIM7) || \
  23349. ((INSTANCE) == TIM8) || \
  23350. ((INSTANCE) == TIM15))
  23351. /****** TIM Instances : Salve mode available (TIMx_SMCR.TS available )*********/
  23352. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23353. ((INSTANCE) == TIM2) || \
  23354. ((INSTANCE) == TIM3) || \
  23355. ((INSTANCE) == TIM4) || \
  23356. ((INSTANCE) == TIM5) || \
  23357. ((INSTANCE) == TIM8) || \
  23358. ((INSTANCE) == TIM12))
  23359. /****** TIM Instances : TRGO2 available (TIMx_CR2.MMS2 available )*********/
  23360. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23361. ((INSTANCE) == TIM8))
  23362. /****** TIM Instances : TISEL available (TIMx_TISEL available )*********/
  23363. #define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23364. ((INSTANCE) == TIM2) || \
  23365. ((INSTANCE) == TIM3) || \
  23366. ((INSTANCE) == TIM4) || \
  23367. ((INSTANCE) == TIM5) || \
  23368. ((INSTANCE) == TIM8) || \
  23369. ((INSTANCE) == TIM15) || \
  23370. ((INSTANCE) == TIM16) || \
  23371. ((INSTANCE) == TIM17))
  23372. /****************** TIM Instances : supporting commutation event *************/
  23373. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23374. ((INSTANCE) == TIM8) || \
  23375. ((INSTANCE) == TIM15) || \
  23376. ((INSTANCE) == TIM16) || \
  23377. ((INSTANCE) == TIM17))
  23378. /****** TIM Instances : TIM_CCR5_GC5C available (TIMx_CCR5.GC5C available )*********/
  23379. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23380. ((INSTANCE) == TIM8))
  23381. /******************* TIM Instances : output(s) available **********************/
  23382. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  23383. ((((INSTANCE) == TIM1) && \
  23384. (((CHANNEL) == TIM_CHANNEL_1) || \
  23385. ((CHANNEL) == TIM_CHANNEL_2) || \
  23386. ((CHANNEL) == TIM_CHANNEL_3) || \
  23387. ((CHANNEL) == TIM_CHANNEL_4))) \
  23388. || \
  23389. (((INSTANCE) == TIM2) && \
  23390. (((CHANNEL) == TIM_CHANNEL_1) || \
  23391. ((CHANNEL) == TIM_CHANNEL_2) || \
  23392. ((CHANNEL) == TIM_CHANNEL_3) || \
  23393. ((CHANNEL) == TIM_CHANNEL_4))) \
  23394. || \
  23395. (((INSTANCE) == TIM3) && \
  23396. (((CHANNEL) == TIM_CHANNEL_1)|| \
  23397. ((CHANNEL) == TIM_CHANNEL_2) || \
  23398. ((CHANNEL) == TIM_CHANNEL_3) || \
  23399. ((CHANNEL) == TIM_CHANNEL_4))) \
  23400. || \
  23401. (((INSTANCE) == TIM4) && \
  23402. (((CHANNEL) == TIM_CHANNEL_1) || \
  23403. ((CHANNEL) == TIM_CHANNEL_2) || \
  23404. ((CHANNEL) == TIM_CHANNEL_3) || \
  23405. ((CHANNEL) == TIM_CHANNEL_4))) \
  23406. || \
  23407. (((INSTANCE) == TIM5) && \
  23408. (((CHANNEL) == TIM_CHANNEL_1) || \
  23409. ((CHANNEL) == TIM_CHANNEL_2) || \
  23410. ((CHANNEL) == TIM_CHANNEL_3) || \
  23411. ((CHANNEL) == TIM_CHANNEL_4))) \
  23412. || \
  23413. (((INSTANCE) == TIM8) && \
  23414. (((CHANNEL) == TIM_CHANNEL_1) || \
  23415. ((CHANNEL) == TIM_CHANNEL_2) || \
  23416. ((CHANNEL) == TIM_CHANNEL_3) || \
  23417. ((CHANNEL) == TIM_CHANNEL_4))) \
  23418. || \
  23419. (((INSTANCE) == TIM13) && \
  23420. (((CHANNEL) == TIM_CHANNEL_1))) \
  23421. || \
  23422. (((INSTANCE) == TIM14) && \
  23423. (((CHANNEL) == TIM_CHANNEL_1))) \
  23424. || \
  23425. (((INSTANCE) == TIM15) && \
  23426. (((CHANNEL) == TIM_CHANNEL_1) || \
  23427. ((CHANNEL) == TIM_CHANNEL_2))) \
  23428. || \
  23429. (((INSTANCE) == TIM16) && \
  23430. (((CHANNEL) == TIM_CHANNEL_1))) \
  23431. || \
  23432. (((INSTANCE) == TIM17) && \
  23433. (((CHANNEL) == TIM_CHANNEL_1))))
  23434. /****************** TIM Instances : supporting the break function *************/
  23435. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  23436. (((INSTANCE) == TIM1) || \
  23437. ((INSTANCE) == TIM8) || \
  23438. ((INSTANCE) == TIM15) || \
  23439. ((INSTANCE) == TIM16) || \
  23440. ((INSTANCE) == TIM17))
  23441. /****************** TIM Instances : supporting complementary output(s) ********/
  23442. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  23443. ((((INSTANCE) == TIM1) && \
  23444. (((CHANNEL) == TIM_CHANNEL_1) || \
  23445. ((CHANNEL) == TIM_CHANNEL_2) || \
  23446. ((CHANNEL) == TIM_CHANNEL_3))) \
  23447. || \
  23448. (((INSTANCE) == TIM8) && \
  23449. (((CHANNEL) == TIM_CHANNEL_1) || \
  23450. ((CHANNEL) == TIM_CHANNEL_2) || \
  23451. ((CHANNEL) == TIM_CHANNEL_3))) \
  23452. || \
  23453. (((INSTANCE) == TIM15) && \
  23454. ((CHANNEL) == TIM_CHANNEL_1)) \
  23455. || \
  23456. (((INSTANCE) == TIM16) && \
  23457. ((CHANNEL) == TIM_CHANNEL_1)) \
  23458. || \
  23459. (((INSTANCE) == TIM17) && \
  23460. ((CHANNEL) == TIM_CHANNEL_1)))
  23461. /****************** TIM Instances : supporting counting mode selection ********/
  23462. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  23463. (((INSTANCE) == TIM1) || \
  23464. ((INSTANCE) == TIM2) || \
  23465. ((INSTANCE) == TIM3) || \
  23466. ((INSTANCE) == TIM4) || \
  23467. ((INSTANCE) == TIM5) || \
  23468. ((INSTANCE) == TIM8))
  23469. /****************** TIM Instances : supporting repetition counter *************/
  23470. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  23471. (((INSTANCE) == TIM1) || \
  23472. ((INSTANCE) == TIM8) || \
  23473. ((INSTANCE) == TIM15) || \
  23474. ((INSTANCE) == TIM16) || \
  23475. ((INSTANCE) == TIM17))
  23476. /****************** TIM Instances : supporting clock division *****************/
  23477. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  23478. (((INSTANCE) == TIM1) || \
  23479. ((INSTANCE) == TIM2) || \
  23480. ((INSTANCE) == TIM3) || \
  23481. ((INSTANCE) == TIM4) || \
  23482. ((INSTANCE) == TIM5) || \
  23483. ((INSTANCE) == TIM8) || \
  23484. ((INSTANCE) == TIM15) || \
  23485. ((INSTANCE) == TIM16) || \
  23486. ((INSTANCE) == TIM17))
  23487. /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
  23488. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  23489. (((INSTANCE) == TIM1) || \
  23490. ((INSTANCE) == TIM2) || \
  23491. ((INSTANCE) == TIM3) || \
  23492. ((INSTANCE) == TIM4) || \
  23493. ((INSTANCE) == TIM5) || \
  23494. ((INSTANCE) == TIM8))
  23495. /****************** TIM Instances : supporting external clock mode 2 **********/
  23496. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  23497. (((INSTANCE) == TIM1) || \
  23498. ((INSTANCE) == TIM2) || \
  23499. ((INSTANCE) == TIM3) || \
  23500. ((INSTANCE) == TIM4) || \
  23501. ((INSTANCE) == TIM5) || \
  23502. ((INSTANCE) == TIM8))
  23503. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  23504. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  23505. (((INSTANCE) == TIM1) || \
  23506. ((INSTANCE) == TIM2) || \
  23507. ((INSTANCE) == TIM3) || \
  23508. ((INSTANCE) == TIM4) || \
  23509. ((INSTANCE) == TIM5) || \
  23510. ((INSTANCE) == TIM8) || \
  23511. ((INSTANCE) == TIM15))
  23512. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  23513. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  23514. (((INSTANCE) == TIM1) || \
  23515. ((INSTANCE) == TIM2) || \
  23516. ((INSTANCE) == TIM3) || \
  23517. ((INSTANCE) == TIM4) || \
  23518. ((INSTANCE) == TIM5) || \
  23519. ((INSTANCE) == TIM8) || \
  23520. ((INSTANCE) == TIM15))
  23521. /****************** TIM Instances : supporting OCxREF clear *******************/
  23522. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  23523. (((INSTANCE) == TIM1) || \
  23524. ((INSTANCE) == TIM2) || \
  23525. ((INSTANCE) == TIM3))
  23526. /****************** TIM Instances : TIM_32B_COUNTER ***************************/
  23527. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  23528. (((INSTANCE) == TIM2) || \
  23529. ((INSTANCE) == TIM5))
  23530. /****************** TIM Instances : TIM_BKIN2 ***************************/
  23531. #define IS_TIM_BKIN2_INSTANCE(INSTANCE)\
  23532. (((INSTANCE) == TIM1) || \
  23533. ((INSTANCE) == TIM8))
  23534. /****************************** HRTIM Instances *******************************/
  23535. #define IS_HRTIM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == HRTIM1))
  23536. /******************** USART Instances : Synchronous mode **********************/
  23537. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23538. ((INSTANCE) == USART2) || \
  23539. ((INSTANCE) == USART3) || \
  23540. ((INSTANCE) == USART6))
  23541. /******************** UART Instances : Asynchronous mode **********************/
  23542. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23543. ((INSTANCE) == USART2) || \
  23544. ((INSTANCE) == USART3) || \
  23545. ((INSTANCE) == UART4) || \
  23546. ((INSTANCE) == UART5) || \
  23547. ((INSTANCE) == USART6) || \
  23548. ((INSTANCE) == UART7) || \
  23549. ((INSTANCE) == UART8))
  23550. /****************** UART Instances : Auto Baud Rate detection *****************/
  23551. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23552. ((INSTANCE) == USART2) || \
  23553. ((INSTANCE) == USART3) || \
  23554. ((INSTANCE) == UART4) || \
  23555. ((INSTANCE) == UART5) || \
  23556. ((INSTANCE) == USART6) || \
  23557. ((INSTANCE) == UART7) || \
  23558. ((INSTANCE) == UART8))
  23559. /*********************** UART Instances : Driver Enable ***********************/
  23560. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23561. ((INSTANCE) == USART2) || \
  23562. ((INSTANCE) == USART3) || \
  23563. ((INSTANCE) == UART4) || \
  23564. ((INSTANCE) == UART5) || \
  23565. ((INSTANCE) == USART6) || \
  23566. ((INSTANCE) == UART7) || \
  23567. ((INSTANCE) == UART8) || \
  23568. ((INSTANCE) == LPUART1))
  23569. /********************* UART Instances : Half-Duplex mode **********************/
  23570. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23571. ((INSTANCE) == USART2) || \
  23572. ((INSTANCE) == USART3) || \
  23573. ((INSTANCE) == UART4) || \
  23574. ((INSTANCE) == UART5) || \
  23575. ((INSTANCE) == USART6) || \
  23576. ((INSTANCE) == UART7) || \
  23577. ((INSTANCE) == UART8) || \
  23578. ((INSTANCE) == LPUART1))
  23579. /******************* UART Instances : Hardware Flow control *******************/
  23580. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23581. ((INSTANCE) == USART2) || \
  23582. ((INSTANCE) == USART3) || \
  23583. ((INSTANCE) == UART4) || \
  23584. ((INSTANCE) == UART5) || \
  23585. ((INSTANCE) == USART6) || \
  23586. ((INSTANCE) == UART7) || \
  23587. ((INSTANCE) == UART8) || \
  23588. ((INSTANCE) == LPUART1))
  23589. /************************* UART Instances : LIN mode **************************/
  23590. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23591. ((INSTANCE) == USART2) || \
  23592. ((INSTANCE) == USART3) || \
  23593. ((INSTANCE) == UART4) || \
  23594. ((INSTANCE) == UART5) || \
  23595. ((INSTANCE) == USART6) || \
  23596. ((INSTANCE) == UART7) || \
  23597. ((INSTANCE) == UART8))
  23598. /****************** UART Instances : Wake-up from Stop mode *******************/
  23599. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23600. ((INSTANCE) == USART2) || \
  23601. ((INSTANCE) == USART3) || \
  23602. ((INSTANCE) == UART4) || \
  23603. ((INSTANCE) == UART5) || \
  23604. ((INSTANCE) == USART6) || \
  23605. ((INSTANCE) == UART7) || \
  23606. ((INSTANCE) == UART8) || \
  23607. ((INSTANCE) == LPUART1))
  23608. /************************* UART Instances : IRDA mode *************************/
  23609. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23610. ((INSTANCE) == USART2) || \
  23611. ((INSTANCE) == USART3) || \
  23612. ((INSTANCE) == UART4) || \
  23613. ((INSTANCE) == UART5) || \
  23614. ((INSTANCE) == USART6) || \
  23615. ((INSTANCE) == UART7) || \
  23616. ((INSTANCE) == UART8))
  23617. /********************* USART Instances : Smard card mode **********************/
  23618. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23619. ((INSTANCE) == USART2) || \
  23620. ((INSTANCE) == USART3) || \
  23621. ((INSTANCE) == USART6))
  23622. /****************************** LPUART Instance *******************************/
  23623. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1)
  23624. /****************************** IWDG Instances ********************************/
  23625. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG1)
  23626. /****************************** USB Instances ********************************/
  23627. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB)
  23628. /****************************** WWDG Instances ********************************/
  23629. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG1)
  23630. /****************************** MDIOS Instances ********************************/
  23631. #define IS_MDIOS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == MDIOS)
  23632. /****************************** CEC Instances *********************************/
  23633. #define IS_CEC_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == CEC)
  23634. /****************************** SAI Instances ********************************/
  23635. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A) || \
  23636. ((INSTANCE) == SAI1_Block_B) || \
  23637. ((INSTANCE) == SAI2_Block_A) || \
  23638. ((INSTANCE) == SAI2_Block_B) || \
  23639. ((INSTANCE) == SAI3_Block_A) || \
  23640. ((INSTANCE) == SAI3_Block_B) || \
  23641. ((INSTANCE) == SAI4_Block_A) || \
  23642. ((INSTANCE) == SAI4_Block_B))
  23643. /****************************** SPDIFRX Instances ********************************/
  23644. #define IS_SPDIFRX_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPDIFRX)
  23645. /****************************** OPAMP Instances *******************************/
  23646. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \
  23647. ((INSTANCE) == OPAMP2))
  23648. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON)
  23649. /******************************************************************************/
  23650. /* For a painless codes migration between the STM32H7xx device product */
  23651. /* lines, or with STM32F7xx devices the aliases defined below are put */
  23652. /* in place to overcome the differences in the interrupt handlers and IRQn */
  23653. /* definitions. No need to update developed interrupt code when moving */
  23654. /* across product lines within the same STM32H7 Family */
  23655. /******************************************************************************/
  23656. /* Aliases for __IRQn */
  23657. #define RNG_IRQn HASH_RNG_IRQn
  23658. #define TIM1_BRK_TIM9_IRQn TIM1_BRK_IRQn
  23659. #define TIM1_UP_TIM10_IRQn TIM1_UP_IRQn
  23660. #define TIM1_TRG_COM_TIM11_IRQn TIM1_TRG_COM_IRQn
  23661. #define PVD_IRQn PVD_AVD_IRQn
  23662. /* Aliases for __IRQHandler */
  23663. #define RNG_IRQHandler HASH_RNG_IRQHandler
  23664. #define TIM1_BRK_TIM9_IRQHandler TIM1_BRK_IRQHandler
  23665. #define TIM1_UP_TIM9_IRQHandler TIM1_UP_IRQHandler
  23666. #define TIM1_TRG_COM_TIM11_IRQHandler TIM1_TRG_COM_IRQHandler
  23667. #define PVD_IRQHandler PVD_AVD_IRQHandler
  23668. /**
  23669. * @}
  23670. */
  23671. /****************************** Product define *********************************/
  23672. #define FLASH_SIZE 0x200000 /* 2MB */
  23673. #define FLASH_BANK_SIZE (FLASH_SIZE >> 1) /* 1MB */
  23674. #define FLASH_SECTOR_SIZE 0x00020000 /* 128 KB */
  23675. /**
  23676. * @}
  23677. */
  23678. /**
  23679. * @}
  23680. */
  23681. #ifdef __cplusplus
  23682. }
  23683. #endif /* __cplusplus */
  23684. #endif /* __STM32H7xx_H */
  23685. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/