stm32h743xx.h 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303
  1. /**
  2. ******************************************************************************
  3. * @file stm32h743xx.h
  4. * @author MCD Application Team
  5. * @version V1.1.0
  6. * @date 31-August-2017
  7. * @brief CMSIS STM32H743xx 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 stm32h743xx
  47. * @{
  48. */
  49. #ifndef __STM32H743xx_H
  50. #define __STM32H743xx_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. RNG_IRQn = 80, /*!< RNG global interrupt */
  149. FPU_IRQn = 81, /*!< FPU global interrupt */
  150. UART7_IRQn = 82, /*!< UART7 global interrupt */
  151. UART8_IRQn = 83, /*!< UART8 global interrupt */
  152. SPI4_IRQn = 84, /*!< SPI4 global Interrupt */
  153. SPI5_IRQn = 85, /*!< SPI5 global Interrupt */
  154. SPI6_IRQn = 86, /*!< SPI6 global Interrupt */
  155. SAI1_IRQn = 87, /*!< SAI1 global Interrupt */
  156. LTDC_IRQn = 88, /*!< LTDC global Interrupt */
  157. LTDC_ER_IRQn = 89, /*!< LTDC Error global Interrupt */
  158. DMA2D_IRQn = 90, /*!< DMA2D global Interrupt */
  159. SAI2_IRQn = 91, /*!< SAI2 global Interrupt */
  160. QUADSPI_IRQn = 92, /*!< Quad SPI global interrupt */
  161. LPTIM1_IRQn = 93, /*!< LP TIM1 interrupt */
  162. CEC_IRQn = 94, /*!< HDMI-CEC global Interrupt */
  163. I2C4_EV_IRQn = 95, /*!< I2C4 Event Interrupt */
  164. I2C4_ER_IRQn = 96, /*!< I2C4 Error Interrupt */
  165. SPDIF_RX_IRQn = 97, /*!< SPDIF-RX global Interrupt */
  166. OTG_FS_EP1_OUT_IRQn = 98, /*!< USB OTG HS2 global interrupt */
  167. OTG_FS_EP1_IN_IRQn = 99, /*!< USB OTG HS2 End Point 1 Out global interrupt */
  168. OTG_FS_WKUP_IRQn = 100, /*!< USB OTG HS2 End Point 1 In global interrupt */
  169. OTG_FS_IRQn = 101, /*!< USB OTG HS2 Wakeup through EXTI interrupt */
  170. DMAMUX1_OVR_IRQn = 102, /*!<DMAMUX1 Overrun interrupt */
  171. HRTIM1_Master_IRQn = 103, /*!< HRTIM Master Timer global Interrupts */
  172. HRTIM1_TIMA_IRQn = 104, /*!< HRTIM Timer A global Interrupt */
  173. HRTIM1_TIMB_IRQn = 105, /*!< HRTIM Timer B global Interrupt */
  174. HRTIM1_TIMC_IRQn = 106, /*!< HRTIM Timer C global Interrupt */
  175. HRTIM1_TIMD_IRQn = 107, /*!< HRTIM Timer D global Interrupt */
  176. HRTIM1_TIME_IRQn = 108, /*!< HRTIM Timer E global Interrupt */
  177. HRTIM1_FLT_IRQn = 109, /*!< HRTIM Fault global Interrupt */
  178. DFSDM1_FLT0_IRQn = 110, /*!<DFSDM Filter1 Interrupt */
  179. DFSDM1_FLT1_IRQn = 111, /*!<DFSDM Filter2 Interrupt */
  180. DFSDM1_FLT2_IRQn = 112, /*!<DFSDM Filter3 Interrupt */
  181. DFSDM1_FLT3_IRQn = 113, /*!<DFSDM Filter4 Interrupt */
  182. SAI3_IRQn = 114, /*!< SAI3 global Interrupt */
  183. SWPMI1_IRQn = 115, /*!< Serial Wire Interface 1 global interrupt */
  184. TIM15_IRQn = 116, /*!< TIM15 global Interrupt */
  185. TIM16_IRQn = 117, /*!< TIM16 global Interrupt */
  186. TIM17_IRQn = 118, /*!< TIM17 global Interrupt */
  187. MDIOS_WKUP_IRQn = 119, /*!< MDIOS Wakeup Interrupt */
  188. MDIOS_IRQn = 120, /*!< MDIOS global Interrupt */
  189. JPEG_IRQn = 121, /*!< JPEG global Interrupt */
  190. MDMA_IRQn = 122, /*!< MDMA global Interrupt */
  191. SDMMC2_IRQn = 124, /*!< SDMMC2 global Interrupt */
  192. HSEM1_IRQn = 125, /*!< HSEM1 global Interrupt */
  193. ADC3_IRQn = 127, /*!< ADC3 global Interrupt */
  194. DMAMUX2_OVR_IRQn = 128, /*!<DMAMUX2 Overrun interrupt */
  195. BDMA_Channel0_IRQn = 129, /*!< BDMA Channel 0 global Interrupt */
  196. BDMA_Channel1_IRQn = 130, /*!< BDMA Channel 1 global Interrupt */
  197. BDMA_Channel2_IRQn = 131, /*!< BDMA Channel 2 global Interrupt */
  198. BDMA_Channel3_IRQn = 132, /*!< BDMA Channel 3 global Interrupt */
  199. BDMA_Channel4_IRQn = 133, /*!< BDMA Channel 4 global Interrupt */
  200. BDMA_Channel5_IRQn = 134, /*!< BDMA Channel 5 global Interrupt */
  201. BDMA_Channel6_IRQn = 135, /*!< BDMA Channel 6 global Interrupt */
  202. BDMA_Channel7_IRQn = 136, /*!< BDMA Channel 7 global Interrupt */
  203. COMP_IRQn = 137 , /*!< COMP global Interrupt */
  204. LPTIM2_IRQn = 138, /*!< LP TIM2 global interrupt */
  205. LPTIM3_IRQn = 139, /*!< LP TIM3 global interrupt */
  206. LPTIM4_IRQn = 140, /*!< LP TIM4 global interrupt */
  207. LPTIM5_IRQn = 141, /*!< LP TIM5 global interrupt */
  208. LPUART1_IRQn = 142, /*!< LP UART1 interrupt */
  209. CRS_IRQn = 144, /*!< Clock Recovery Global Interrupt */
  210. SAI4_IRQn = 146, /*!< SAI4 global interrupt */
  211. WAKEUP_PIN_IRQn = 149, /*!< Interrupt for all 6 wake-up pins */
  212. } IRQn_Type;
  213. /**
  214. * @}
  215. */
  216. /** @addtogroup Configuration_section_for_CMSIS
  217. * @{
  218. */
  219. /**
  220. * @brief Configuration of the Cortex-M7 Processor and Core Peripherals
  221. */
  222. #define __CM7_REV 0x0100U /*!< Cortex-M7 revision r1p0 */
  223. #define __MPU_PRESENT 1 /*!< CM7 provides an MPU */
  224. #define __NVIC_PRIO_BITS 4 /*!< CM7 uses 4 Bits for the Priority Levels */
  225. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  226. #define __FPU_PRESENT 1 /*!< FPU present */
  227. #define __ICACHE_PRESENT 1 /*!< CM7 instruction cache present */
  228. #define __DCACHE_PRESENT 1 /*!< CM7 data cache present */
  229. #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
  230. /**
  231. * @}
  232. */
  233. #include "system_stm32h7xx.h"
  234. #include <stdint.h>
  235. /** @addtogroup Peripheral_registers_structures
  236. * @{
  237. */
  238. /**
  239. * @brief Analog to Digital Converter
  240. */
  241. typedef struct
  242. {
  243. __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */
  244. __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */
  245. __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
  246. __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */
  247. __IO uint32_t CFGR2; /*!< ADC Configuration register 2, Address offset: 0x10 */
  248. __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */
  249. __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */
  250. __IO uint32_t PCSEL; /*!< ADC pre-channel selection, Address offset: 0x1C */
  251. __IO uint32_t LTR1; /*!< ADC watchdog Lower threshold register 1, Address offset: 0x20 */
  252. __IO uint32_t HTR1; /*!< ADC watchdog higher threshold register 1, Address offset: 0x24 */
  253. uint32_t RESERVED1; /*!< Reserved, 0x028 */
  254. uint32_t RESERVED2; /*!< Reserved, 0x02C */
  255. __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */
  256. __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */
  257. __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */
  258. __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */
  259. __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */
  260. uint32_t RESERVED3; /*!< Reserved, 0x044 */
  261. uint32_t RESERVED4; /*!< Reserved, 0x048 */
  262. __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */
  263. uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */
  264. __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
  265. __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
  266. __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
  267. __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
  268. uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */
  269. __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */
  270. __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */
  271. __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */
  272. __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */
  273. uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
  274. __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */
  275. __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */
  276. uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
  277. uint32_t RESERVED9; /*!< Reserved, 0x0AC */
  278. __IO uint32_t LTR2; /*!< ADC watchdog Lower threshold register 2, Address offset: 0xB0 */
  279. __IO uint32_t HTR2; /*!< ADC watchdog Higher threshold register 2, Address offset: 0xB4 */
  280. __IO uint32_t LTR3; /*!< ADC watchdog Lower threshold register 3, Address offset: 0xB8 */
  281. __IO uint32_t HTR3; /*!< ADC watchdog Higher threshold register 3, Address offset: 0xBC */
  282. __IO uint32_t DIFSEL; /*!< ADC Differential Mode Selection Register, Address offset: 0xC0 */
  283. __IO uint32_t CALFACT; /*!< ADC Calibration Factors, Address offset: 0xC4 */
  284. __IO uint32_t CALFACT2; /*!< ADC Linearity Calibration Factors, Address offset: 0xC8 */
  285. } ADC_TypeDef;
  286. typedef struct
  287. {
  288. __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */
  289. uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */
  290. __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */
  291. __IO uint32_t CDR; /*!< ADC common regular data register for dual Address offset: ADC1/3 base address + 0x30C */
  292. __IO uint32_t CDR2; /*!< ADC common regular data register for 32-bit dual mode Address offset: ADC1/3 base address + 0x310 */
  293. } ADC_Common_TypeDef;
  294. /**
  295. * @brief VREFBUF
  296. */
  297. typedef struct
  298. {
  299. __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
  300. __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
  301. } VREFBUF_TypeDef;
  302. /**
  303. * @brief FD Controller Area Network
  304. */
  305. typedef struct
  306. {
  307. __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */
  308. __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */
  309. __IO uint32_t RESERVED1; /*!< Reserved, 0x008 */
  310. __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */
  311. __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */
  312. __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */
  313. __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */
  314. __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */
  315. __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */
  316. __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */
  317. __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */
  318. __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */
  319. __IO uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */
  320. __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */
  321. __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */
  322. __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */
  323. __IO uint32_t RESERVED3; /*!< Reserved, 0x04C */
  324. __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */
  325. __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */
  326. __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */
  327. __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */
  328. __IO uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */
  329. __IO uint32_t GFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */
  330. __IO uint32_t SIDFC; /*!< FDCAN Standard ID Filter Configuration register, Address offset: 0x084 */
  331. __IO uint32_t XIDFC; /*!< FDCAN Extended ID Filter Configuration register, Address offset: 0x088 */
  332. __IO uint32_t RESERVED5; /*!< Reserved, 0x08C */
  333. __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x090 */
  334. __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x094 */
  335. __IO uint32_t NDAT1; /*!< FDCAN New Data 1 register, Address offset: 0x098 */
  336. __IO uint32_t NDAT2; /*!< FDCAN New Data 2 register, Address offset: 0x09C */
  337. __IO uint32_t RXF0C; /*!< FDCAN Rx FIFO 0 Configuration register, Address offset: 0x0A0 */
  338. __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x0A4 */
  339. __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x0A8 */
  340. __IO uint32_t RXBC; /*!< FDCAN Rx Buffer Configuration register, Address offset: 0x0AC */
  341. __IO uint32_t RXF1C; /*!< FDCAN Rx FIFO 1 Configuration register, Address offset: 0x0B0 */
  342. __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x0B4 */
  343. __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x0B8 */
  344. __IO uint32_t RXESC; /*!< FDCAN Rx Buffer/FIFO Element Size Configuration register, Address offset: 0x0BC */
  345. __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */
  346. __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */
  347. __IO uint32_t TXESC; /*!< FDCAN Tx Buffer Element Size Configuration register, Address offset: 0x0C8 */
  348. __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0CC */
  349. __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0D0 */
  350. __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D4 */
  351. __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D8 */
  352. __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0DC */
  353. __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0E0 */
  354. __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E4 */
  355. __IO uint32_t RESERVED6[2]; /*!< Reserved, 0x0E8 - 0x0EC */
  356. __IO uint32_t TXEFC; /*!< FDCAN Tx Event FIFO Configuration register, Address offset: 0x0F0 */
  357. __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0F4 */
  358. __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0F8 */
  359. __IO uint32_t RESERVED7; /*!< Reserved, 0x0FC */
  360. } FDCAN_GlobalTypeDef;
  361. /**
  362. * @brief TTFD Controller Area Network
  363. */
  364. typedef struct
  365. {
  366. __IO uint32_t TTTMC; /*!< TT Trigger Memory Configuration register, Address offset: 0x100 */
  367. __IO uint32_t TTRMC; /*!< TT Reference Message Configuration register, Address offset: 0x104 */
  368. __IO uint32_t TTOCF; /*!< TT Operation Configuration register, Address offset: 0x108 */
  369. __IO uint32_t TTMLM; /*!< TT Matrix Limits register, Address offset: 0x10C */
  370. __IO uint32_t TURCF; /*!< TUR Configuration register, Address offset: 0x110 */
  371. __IO uint32_t TTOCN; /*!< TT Operation Control register, Address offset: 0x114 */
  372. __IO uint32_t TTGTP; /*!< TT Global Time Preset register, Address offset: 0x118 */
  373. __IO uint32_t TTTMK; /*!< TT Time Mark register, Address offset: 0x11C */
  374. __IO uint32_t TTIR; /*!< TT Interrupt register, Address offset: 0x120 */
  375. __IO uint32_t TTIE; /*!< TT Interrupt Enable register, Address offset: 0x124 */
  376. __IO uint32_t TTILS; /*!< TT Interrupt Line Select register, Address offset: 0x128 */
  377. __IO uint32_t TTOST; /*!< TT Operation Status register, Address offset: 0x12C */
  378. __IO uint32_t TURNA; /*!< TT TUR Numerator Actual register, Address offset: 0x130 */
  379. __IO uint32_t TTLGT; /*!< TT Local and Global Time register, Address offset: 0x134 */
  380. __IO uint32_t TTCTC; /*!< TT Cycle Time and Count register, Address offset: 0x138 */
  381. __IO uint32_t TTCPT; /*!< TT Capture Time register, Address offset: 0x13C */
  382. __IO uint32_t TTCSM; /*!< TT Cycle Sync Mark register, Address offset: 0x140 */
  383. __IO uint32_t RESERVED1[111]; /*!< Reserved, 0x144 - 0x2FC */
  384. __IO uint32_t TTTS; /*!< TT Trigger Select register, Address offset: 0x300 */
  385. } TTCAN_TypeDef;
  386. /**
  387. * @brief FD Controller Area Network
  388. */
  389. typedef struct
  390. {
  391. __IO uint32_t CREL; /*!< Clock Calibration Unit Core Release register, Address offset: 0x00 */
  392. __IO uint32_t CCFG; /*!< Calibration Configuration register, Address offset: 0x04 */
  393. __IO uint32_t CSTAT; /*!< Calibration Status register, Address offset: 0x08 */
  394. __IO uint32_t CWD; /*!< Calibration Watchdog register, Address offset: 0x0C */
  395. __IO uint32_t IR; /*!< CCU Interrupt register, Address offset: 0x10 */
  396. __IO uint32_t IE; /*!< CCU Interrupt Enable register, Address offset: 0x14 */
  397. } FDCAN_ClockCalibrationUnit_TypeDef;
  398. /**
  399. * @brief Consumer Electronics Control
  400. */
  401. typedef struct
  402. {
  403. __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */
  404. __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */
  405. __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */
  406. __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */
  407. __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */
  408. __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */
  409. }CEC_TypeDef;
  410. /**
  411. * @brief CRC calculation unit
  412. */
  413. typedef struct
  414. {
  415. __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
  416. __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
  417. __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
  418. uint32_t RESERVED2; /*!< Reserved, 0x0C */
  419. __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
  420. __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
  421. } CRC_TypeDef;
  422. /**
  423. * @brief Clock Recovery System
  424. */
  425. typedef struct
  426. {
  427. __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */
  428. __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */
  429. __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */
  430. __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */
  431. } CRS_TypeDef;
  432. /**
  433. * @brief Digital to Analog Converter
  434. */
  435. typedef struct
  436. {
  437. __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
  438. __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
  439. __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
  440. __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
  441. __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
  442. __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
  443. __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
  444. __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
  445. __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
  446. __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
  447. __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
  448. __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
  449. __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
  450. __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
  451. __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
  452. __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
  453. __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
  454. __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
  455. __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
  456. __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
  457. } DAC_TypeDef;
  458. /**
  459. * @brief DFSDM module registers
  460. */
  461. typedef struct
  462. {
  463. __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
  464. __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
  465. __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
  466. __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
  467. __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
  468. __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
  469. __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
  470. __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
  471. __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
  472. __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
  473. __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
  474. __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
  475. __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
  476. __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
  477. __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
  478. } DFSDM_Filter_TypeDef;
  479. /**
  480. * @brief DFSDM channel configuration registers
  481. */
  482. typedef struct
  483. {
  484. __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
  485. __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
  486. __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
  487. short circuit detector register, Address offset: 0x08 */
  488. __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
  489. __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
  490. } DFSDM_Channel_TypeDef;
  491. /**
  492. * @brief Debug MCU
  493. */
  494. typedef struct
  495. {
  496. __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
  497. __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
  498. uint32_t RESERVED4[11]; /*!< Reserved, Address offset: 0x08 */
  499. __IO uint32_t APB3FZ1; /*!< Debug MCU APB3FZ1 freeze register, Address offset: 0x34 */
  500. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x38 */
  501. __IO uint32_t APB1LFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x3C */
  502. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x40 */
  503. __IO uint32_t APB1HFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x44 */
  504. uint32_t RESERVED7; /*!< Reserved, Address offset: 0x48 */
  505. __IO uint32_t APB2FZ1; /*!< Debug MCU APB2FZ1 freeze register, Address offset: 0x4C */
  506. uint32_t RESERVED8; /*!< Reserved, Address offset: 0x50 */
  507. __IO uint32_t APB4FZ1; /*!< Debug MCU APB4FZ1 freeze register, Address offset: 0x54 */
  508. }DBGMCU_TypeDef;
  509. /**
  510. * @brief DCMI
  511. */
  512. typedef struct
  513. {
  514. __IO uint32_t CR; /*!< DCMI control register 1, Address offset: 0x00 */
  515. __IO uint32_t SR; /*!< DCMI status register, Address offset: 0x04 */
  516. __IO uint32_t RISR; /*!< DCMI raw interrupt status register, Address offset: 0x08 */
  517. __IO uint32_t IER; /*!< DCMI interrupt enable register, Address offset: 0x0C */
  518. __IO uint32_t MISR; /*!< DCMI masked interrupt status register, Address offset: 0x10 */
  519. __IO uint32_t ICR; /*!< DCMI interrupt clear register, Address offset: 0x14 */
  520. __IO uint32_t ESCR; /*!< DCMI embedded synchronization code register, Address offset: 0x18 */
  521. __IO uint32_t ESUR; /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */
  522. __IO uint32_t CWSTRTR; /*!< DCMI crop window start, Address offset: 0x20 */
  523. __IO uint32_t CWSIZER; /*!< DCMI crop window size, Address offset: 0x24 */
  524. __IO uint32_t DR; /*!< DCMI data register, Address offset: 0x28 */
  525. } DCMI_TypeDef;
  526. /**
  527. * @brief DMA Controller
  528. */
  529. typedef struct
  530. {
  531. __IO uint32_t CR; /*!< DMA stream x configuration register */
  532. __IO uint32_t NDTR; /*!< DMA stream x number of data register */
  533. __IO uint32_t PAR; /*!< DMA stream x peripheral address register */
  534. __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */
  535. __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */
  536. __IO uint32_t FCR; /*!< DMA stream x FIFO control register */
  537. } DMA_Stream_TypeDef;
  538. typedef struct
  539. {
  540. __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */
  541. __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */
  542. __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */
  543. __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */
  544. } DMA_TypeDef;
  545. typedef struct
  546. {
  547. __IO uint32_t CCR; /*!< DMA channel x configuration register */
  548. __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
  549. __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
  550. __IO uint32_t CMAR; /*!< DMA channel x memory address register */
  551. } BDMA_Channel_TypeDef;
  552. typedef struct
  553. {
  554. __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
  555. __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
  556. } BDMA_TypeDef;
  557. typedef struct
  558. {
  559. __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register */
  560. }DMAMUX_Channel_TypeDef;
  561. typedef struct
  562. {
  563. __IO uint32_t CSR; /*!< DMA Channel Status Register */
  564. __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register */
  565. }DMAMUX_ChannelStatus_TypeDef;
  566. typedef struct
  567. {
  568. __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register */
  569. }DMAMUX_RequestGen_TypeDef;
  570. typedef struct
  571. {
  572. __IO uint32_t RGSR; /*!< DMA Request Generator Status Register */
  573. __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register */
  574. }DMAMUX_RequestGenStatus_TypeDef;
  575. /**
  576. * @brief MDMA Controller
  577. */
  578. typedef struct
  579. {
  580. __IO uint32_t GISR0; /*!< MDMA Global Interrupt/Status Register 0, Address offset: 0x00 */
  581. }MDMA_TypeDef;
  582. typedef struct
  583. {
  584. __IO uint32_t CISR; /*!< MDMA channel x interrupt/status register, Address offset: 0x40 */
  585. __IO uint32_t CIFCR; /*!< MDMA channel x interrupt flag clear register, Address offset: 0x44 */
  586. __IO uint32_t CESR; /*!< MDMA Channel x error status register, Address offset: 0x48 */
  587. __IO uint32_t CCR; /*!< MDMA channel x control register, Address offset: 0x4C */
  588. __IO uint32_t CTCR; /*!< MDMA channel x Transfer Configuration register, Address offset: 0x50 */
  589. __IO uint32_t CBNDTR; /*!< MDMA Channel x block number of data register, Address offset: 0x54 */
  590. __IO uint32_t CSAR; /*!< MDMA channel x source address register, Address offset: 0x58 */
  591. __IO uint32_t CDAR; /*!< MDMA channel x destination address register, Address offset: 0x5C */
  592. __IO uint32_t CBRUR; /*!< MDMA channel x Block Repeat address Update register, Address offset: 0x60 */
  593. __IO uint32_t CLAR; /*!< MDMA channel x Link Address register, Address offset: 0x64 */
  594. __IO uint32_t CTBR; /*!< MDMA channel x Trigger and Bus selection Register, Address offset: 0x68 */
  595. uint32_t RESERVED0; /*!< Reserved, 0x68 */
  596. __IO uint32_t CMAR; /*!< MDMA channel x Mask address register, Address offset: 0x70 */
  597. __IO uint32_t CMDR; /*!< MDMA channel x Mask Data register, Address offset: 0x74 */
  598. }MDMA_Channel_TypeDef;
  599. /**
  600. * @brief DMA2D Controller
  601. */
  602. typedef struct
  603. {
  604. __IO uint32_t CR; /*!< DMA2D Control Register, Address offset: 0x00 */
  605. __IO uint32_t ISR; /*!< DMA2D Interrupt Status Register, Address offset: 0x04 */
  606. __IO uint32_t IFCR; /*!< DMA2D Interrupt Flag Clear Register, Address offset: 0x08 */
  607. __IO uint32_t FGMAR; /*!< DMA2D Foreground Memory Address Register, Address offset: 0x0C */
  608. __IO uint32_t FGOR; /*!< DMA2D Foreground Offset Register, Address offset: 0x10 */
  609. __IO uint32_t BGMAR; /*!< DMA2D Background Memory Address Register, Address offset: 0x14 */
  610. __IO uint32_t BGOR; /*!< DMA2D Background Offset Register, Address offset: 0x18 */
  611. __IO uint32_t FGPFCCR; /*!< DMA2D Foreground PFC Control Register, Address offset: 0x1C */
  612. __IO uint32_t FGCOLR; /*!< DMA2D Foreground Color Register, Address offset: 0x20 */
  613. __IO uint32_t BGPFCCR; /*!< DMA2D Background PFC Control Register, Address offset: 0x24 */
  614. __IO uint32_t BGCOLR; /*!< DMA2D Background Color Register, Address offset: 0x28 */
  615. __IO uint32_t FGCMAR; /*!< DMA2D Foreground CLUT Memory Address Register, Address offset: 0x2C */
  616. __IO uint32_t BGCMAR; /*!< DMA2D Background CLUT Memory Address Register, Address offset: 0x30 */
  617. __IO uint32_t OPFCCR; /*!< DMA2D Output PFC Control Register, Address offset: 0x34 */
  618. __IO uint32_t OCOLR; /*!< DMA2D Output Color Register, Address offset: 0x38 */
  619. __IO uint32_t OMAR; /*!< DMA2D Output Memory Address Register, Address offset: 0x3C */
  620. __IO uint32_t OOR; /*!< DMA2D Output Offset Register, Address offset: 0x40 */
  621. __IO uint32_t NLR; /*!< DMA2D Number of Line Register, Address offset: 0x44 */
  622. __IO uint32_t LWR; /*!< DMA2D Line Watermark Register, Address offset: 0x48 */
  623. __IO uint32_t AMTCR; /*!< DMA2D AHB Master Timer Configuration Register, Address offset: 0x4C */
  624. uint32_t RESERVED[236]; /*!< Reserved, 0x50-0x3FF */
  625. __IO uint32_t FGCLUT[256]; /*!< DMA2D Foreground CLUT, Address offset:400-7FF */
  626. __IO uint32_t BGCLUT[256]; /*!< DMA2D Background CLUT, Address offset:800-BFF */
  627. } DMA2D_TypeDef;
  628. /**
  629. * @brief Ethernet MAC
  630. */
  631. typedef struct
  632. {
  633. __IO uint32_t MACCR;
  634. __IO uint32_t MACECR;
  635. __IO uint32_t MACPFR;
  636. __IO uint32_t MACWTR;
  637. __IO uint32_t MACHT0R;
  638. __IO uint32_t MACHT1R;
  639. uint32_t RESERVED1[14];
  640. __IO uint32_t MACVTR;
  641. uint32_t RESERVED2;
  642. __IO uint32_t MACVHTR;
  643. uint32_t RESERVED3;
  644. __IO uint32_t MACVIR;
  645. __IO uint32_t MACIVIR;
  646. uint32_t RESERVED4[2];
  647. __IO uint32_t MACTFCR;
  648. uint32_t RESERVED5[7];
  649. __IO uint32_t MACRFCR;
  650. uint32_t RESERVED6[7];
  651. __IO uint32_t MACISR;
  652. __IO uint32_t MACIER;
  653. __IO uint32_t MACRXTXSR;
  654. uint32_t RESERVED7;
  655. __IO uint32_t MACPCSR;
  656. __IO uint32_t MACRWKPFR;
  657. uint32_t RESERVED8[2];
  658. __IO uint32_t MACLCSR;
  659. __IO uint32_t MACLTCR;
  660. __IO uint32_t MACLETR;
  661. __IO uint32_t MAC1USTCR;
  662. uint32_t RESERVED9[12];
  663. __IO uint32_t MACVR;
  664. __IO uint32_t MACDR;
  665. uint32_t RESERVED10;
  666. __IO uint32_t MACHWF0R;
  667. __IO uint32_t MACHWF1R;
  668. __IO uint32_t MACHWF2R;
  669. uint32_t RESERVED11[54];
  670. __IO uint32_t MACMDIOAR;
  671. __IO uint32_t MACMDIODR;
  672. uint32_t RESERVED12[2];
  673. __IO uint32_t MACARPAR;
  674. uint32_t RESERVED13[59];
  675. __IO uint32_t MACA0HR;
  676. __IO uint32_t MACA0LR;
  677. __IO uint32_t MACA1HR;
  678. __IO uint32_t MACA1LR;
  679. __IO uint32_t MACA2HR;
  680. __IO uint32_t MACA2LR;
  681. __IO uint32_t MACA3HR;
  682. __IO uint32_t MACA3LR;
  683. uint32_t RESERVED14[248];
  684. __IO uint32_t MMCCR;
  685. __IO uint32_t MMCRIR;
  686. __IO uint32_t MMCTIR;
  687. __IO uint32_t MMCRIMR;
  688. __IO uint32_t MMCTIMR;
  689. uint32_t RESERVED15[14];
  690. __IO uint32_t MMCTSCGPR;
  691. __IO uint32_t MMCTMCGPR;
  692. int32_t RESERVED16[5];
  693. __IO uint32_t MMCTPCGR;
  694. uint32_t RESERVED17[10];
  695. __IO uint32_t MMCRCRCEPR;
  696. __IO uint32_t MMCRAEPR;
  697. uint32_t RESERVED18[10];
  698. __IO uint32_t MMCRUPGR;
  699. uint32_t RESERVED19[9];
  700. __IO uint32_t MMCTLPIMSTR;
  701. __IO uint32_t MMCTLPITCR;
  702. __IO uint32_t MMCRLPIMSTR;
  703. __IO uint32_t MMCRLPITCR;
  704. uint32_t RESERVED20[65];
  705. __IO uint32_t MACL3L4C0R;
  706. __IO uint32_t MACL4A0R;
  707. uint32_t RESERVED21[2];
  708. __IO uint32_t MACL3A0R0R;
  709. __IO uint32_t MACL3A1R0R;
  710. __IO uint32_t MACL3A2R0R;
  711. __IO uint32_t MACL3A3R0R;
  712. uint32_t RESERVED22[4];
  713. __IO uint32_t MACL3L4C1R;
  714. __IO uint32_t MACL4A1R;
  715. uint32_t RESERVED23[2];
  716. __IO uint32_t MACL3A0R1R;
  717. __IO uint32_t MACL3A1R1R;
  718. __IO uint32_t MACL3A2R1R;
  719. __IO uint32_t MACL3A3R1R;
  720. uint32_t RESERVED24[108];
  721. __IO uint32_t MACTSCR;
  722. __IO uint32_t MACSSIR;
  723. __IO uint32_t MACSTSR;
  724. __IO uint32_t MACSTNR;
  725. __IO uint32_t MACSTSUR;
  726. __IO uint32_t MACSTNUR;
  727. __IO uint32_t MACTSAR;
  728. uint32_t RESERVED25;
  729. __IO uint32_t MACTSSR;
  730. uint32_t RESERVED26[3];
  731. __IO uint32_t MACTTSSNR;
  732. __IO uint32_t MACTTSSSR;
  733. uint32_t RESERVED27[2];
  734. __IO uint32_t MACACR;
  735. uint32_t RESERVED28;
  736. __IO uint32_t MACATSNR;
  737. __IO uint32_t MACATSSR;
  738. __IO uint32_t MACTSIACR;
  739. __IO uint32_t MACTSEACR;
  740. __IO uint32_t MACTSICNR;
  741. __IO uint32_t MACTSECNR;
  742. uint32_t RESERVED29[4];
  743. __IO uint32_t MACPPSCR;
  744. uint32_t RESERVED30[3];
  745. __IO uint32_t MACPPSTTSR;
  746. __IO uint32_t MACPPSTTNR;
  747. __IO uint32_t MACPPSIR;
  748. __IO uint32_t MACPPSWR;
  749. uint32_t RESERVED31[12];
  750. __IO uint32_t MACPOCR;
  751. __IO uint32_t MACSPI0R;
  752. __IO uint32_t MACSPI1R;
  753. __IO uint32_t MACSPI2R;
  754. __IO uint32_t MACLMIR;
  755. uint32_t RESERVED32[11];
  756. __IO uint32_t MTLOMR;
  757. uint32_t RESERVED33[7];
  758. __IO uint32_t MTLISR;
  759. uint32_t RESERVED34[55];
  760. __IO uint32_t MTLTQOMR;
  761. __IO uint32_t MTLTQUR;
  762. __IO uint32_t MTLTQDR;
  763. uint32_t RESERVED35[8];
  764. __IO uint32_t MTLQICSR;
  765. __IO uint32_t MTLRQOMR;
  766. __IO uint32_t MTLRQMPOCR;
  767. __IO uint32_t MTLRQDR;
  768. uint32_t RESERVED36[177];
  769. __IO uint32_t DMAMR;
  770. __IO uint32_t DMASBMR;
  771. __IO uint32_t DMAISR;
  772. __IO uint32_t DMADSR;
  773. uint32_t RESERVED37[60];
  774. __IO uint32_t DMACCR;
  775. __IO uint32_t DMACTCR;
  776. __IO uint32_t DMACRCR;
  777. uint32_t RESERVED38[2];
  778. __IO uint32_t DMACTDLAR;
  779. uint32_t RESERVED39;
  780. __IO uint32_t DMACRDLAR;
  781. __IO uint32_t DMACTDTPR;
  782. uint32_t RESERVED40;
  783. __IO uint32_t DMACRDTPR;
  784. __IO uint32_t DMACTDRLR;
  785. __IO uint32_t DMACRDRLR;
  786. __IO uint32_t DMACIER;
  787. __IO uint32_t DMACRIWTR;
  788. __IO uint32_t DMACSFCSR;
  789. uint32_t RESERVED41;
  790. __IO uint32_t DMACCATDR;
  791. uint32_t RESERVED42;
  792. __IO uint32_t DMACCARDR;
  793. uint32_t RESERVED43;
  794. __IO uint32_t DMACCATBR;
  795. uint32_t RESERVED44;
  796. __IO uint32_t DMACCARBR;
  797. __IO uint32_t DMACSR;
  798. uint32_t RESERVED45[2];
  799. __IO uint32_t DMACMFCR;
  800. }ETH_TypeDef;
  801. /**
  802. * @brief External Interrupt/Event Controller
  803. */
  804. typedef struct
  805. {
  806. __IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register, Address offset: 0x00 */
  807. __IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register, Address offset: 0x04 */
  808. __IO uint32_t SWIER1; /*!< EXTI Software interrupt event register, Address offset: 0x08 */
  809. __IO uint32_t D3PMR1; /*!< EXTI D3 Pending mask register, Address offset: 0x0C */
  810. __IO uint32_t D3PCR1L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x10 */
  811. __IO uint32_t D3PCR1H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x14 */
  812. uint32_t RESERVED1; /*!< Reserved, 0x18 */
  813. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  814. __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x20 */
  815. __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x24 */
  816. __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x28 */
  817. __IO uint32_t D3PMR2; /*!< EXTI D3 Pending mask register, Address offset: 0x2C */
  818. __IO uint32_t D3PCR2L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x30 */
  819. __IO uint32_t D3PCR2H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x34 */
  820. uint32_t RESERVED3; /*!< Reserved, 0x38 */
  821. uint32_t RESERVED4; /*!< Reserved, 0x3C */
  822. __IO uint32_t RTSR3; /*!< EXTI Rising trigger selection register, Address offset: 0x40 */
  823. __IO uint32_t FTSR3; /*!< EXTI Falling trigger selection register, Address offset: 0x44 */
  824. __IO uint32_t SWIER3; /*!< EXTI Software interrupt event register, Address offset: 0x48 */
  825. __IO uint32_t D3PMR3; /*!< EXTI D3 Pending mask register, Address offset: 0x4C */
  826. __IO uint32_t D3PCR3L; /*!< EXTI D3 Pending clear selection register low, Address offset: 0x50 */
  827. __IO uint32_t D3PCR3H; /*!< EXTI D3 Pending clear selection register High,Address offset: 0x54 */
  828. }EXTI_TypeDef;
  829. typedef struct
  830. {
  831. __IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x00 */
  832. __IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x04 */
  833. __IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x08 */
  834. uint32_t RESERVED1; /*!< Reserved, 0x0C */
  835. __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x10 */
  836. __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x14 */
  837. __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x18 */
  838. uint32_t RESERVED2; /*!< Reserved, 0x1C */
  839. __IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0x20 */
  840. __IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0x24 */
  841. __IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0x28 */
  842. }EXTI_Core_TypeDef;
  843. /**
  844. * @brief FLASH Registers
  845. */
  846. typedef struct
  847. {
  848. __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
  849. __IO uint32_t KEYR1; /*!< Flash Key Register for bank1, Address offset: 0x04 */
  850. __IO uint32_t OPTKEYR; /*!< Flash Option Key Register, Address offset: 0x08 */
  851. __IO uint32_t CR1; /*!< Flash Control Register for bank1, Address offset: 0x0C */
  852. __IO uint32_t SR1; /*!< Flash Status Register for bank1, Address offset: 0x10 */
  853. __IO uint32_t CCR1; /*!< Flash Control Register for bank1, Address offset: 0x14 */
  854. __IO uint32_t OPTCR; /*!< Flash Option Control Register, Address offset: 0x18 */
  855. __IO uint32_t OPTSR_CUR; /*!< Flash Option Status Current Register, Address offset: 0x1C */
  856. __IO uint32_t OPTSR_PRG; /*!< Flash Option Status Current Register, Address offset: 0x20 */
  857. __IO uint32_t OPTCCR; /*!< Flash Option Clear Control Register, Address offset: 0x24 */
  858. __IO uint32_t PRAR_CUR1; /*!< Flash Current Protection Address Register for bank1, Address offset: 0x28 */
  859. __IO uint32_t PRAR_PRG1; /*!< Flash Protection Address to Program Register for bank1, Address offset: 0x2C */
  860. __IO uint32_t SCAR_CUR1; /*!< Flash Current Secure Address Register for bank1, Address offset: 0x30 */
  861. __IO uint32_t SCAR_PRG1; /*!< Flash Secure Address Register for bank1, Address offset: 0x34 */
  862. __IO uint32_t WPSN_CUR1; /*!< Flash Current Write Protection Register on bank1, Address offset: 0x38 */
  863. __IO uint32_t WPSN_PRG1; /*!< Flash Write Protection to Program Register on bank1, Address offset: 0x3C */
  864. __IO uint32_t BOOT_CUR; /*!< Flash Current Boot Address for Pelican Core Register, Address offset: 0x40 */
  865. __IO uint32_t BOOT_PRG; /*!< Flash Boot Address to Program for Pelican Core Register, Address offset: 0x44 */
  866. uint32_t RESERVED0[2]; /*!< Reserved, 0x48 to 0x4C */
  867. __IO uint32_t CRCCR1; /*!< Flash CRC Control register For Bank1 Register , Address offset: 0x50 */
  868. __IO uint32_t CRCSADD1; /*!< Flash CRC Start Address Register for Bank1 , Address offset: 0x54 */
  869. __IO uint32_t CRCEADD1; /*!< Flash CRC End Address Register for Bank1 , Address offset: 0x58 */
  870. __IO uint32_t CRCDATA; /*!< Flash CRC Data Register for Bank1 , Address offset: 0x5C */
  871. __IO uint32_t ECC_FA1; /*!< Flash ECC Fail Address For Bank1 Register , Address offset: 0x60 */
  872. uint32_t RESERVED1[40]; /*!< Reserved, 0x64 to 0x100 */
  873. __IO uint32_t KEYR2; /*!< Flash Key Register for bank2, Address offset: 0x104 */
  874. uint32_t RESERVED2; /*!< Reserved, 0x108 */
  875. __IO uint32_t CR2; /*!< Flash Control Register for bank2, Address offset: 0x10C */
  876. __IO uint32_t SR2; /*!< Flash Status Register for bank2, Address offset: 0x110 */
  877. __IO uint32_t CCR2; /*!< Flash Status Register for bank2, Address offset: 0x114 */
  878. uint32_t RESERVED3[4]; /*!< Reserved, 0x118 to 0x124 */
  879. __IO uint32_t PRAR_CUR2; /*!< Flash Current Protection Address Register for bank2, Address offset: 0x128 */
  880. __IO uint32_t PRAR_PRG2; /*!< Flash Protection Address to Program Register for bank2, Address offset: 0x12C */
  881. __IO uint32_t SCAR_CUR2; /*!< Flash Current Secure Address Register for bank2, Address offset: 0x130 */
  882. __IO uint32_t SCAR_PRG2; /*!< Flash Secure Address Register for bank2, Address offset: 0x134 */
  883. __IO uint32_t WPSN_CUR2; /*!< Flash Current Write Protection Register on bank2, Address offset: 0x138 */
  884. __IO uint32_t WPSN_PRG2; /*!< Flash Write Protection to Program Register on bank2, Address offset: 0x13C */
  885. uint32_t RESERVED4[4]; /*!< Reserved, 0x140 to 0x14C */
  886. __IO uint32_t CRCCR2; /*!< Flash CRC Control register For Bank2 Register , Address offset: 0x150 */
  887. __IO uint32_t CRCSADD2; /*!< Flash CRC Start Address Register for Bank2 , Address offset: 0x154 */
  888. __IO uint32_t CRCEADD2; /*!< Flash CRC End Address Register for Bank2 , Address offset: 0x158 */
  889. __IO uint32_t CRCDATA2; /*!< Flash CRC Data Register for Bank2 , Address offset: 0x15C */
  890. __IO uint32_t ECC_FA2; /*!< Flash ECC Fail Address For Bank2 Register , Address offset: 0x160 */
  891. } FLASH_TypeDef;
  892. /**
  893. * @brief Flexible Memory Controller
  894. */
  895. typedef struct
  896. {
  897. __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
  898. } FMC_Bank1_TypeDef;
  899. /**
  900. * @brief Flexible Memory Controller Bank1E
  901. */
  902. typedef struct
  903. {
  904. __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
  905. } FMC_Bank1E_TypeDef;
  906. /**
  907. * @brief Flexible Memory Controller Bank2
  908. */
  909. typedef struct
  910. {
  911. __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */
  912. __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */
  913. __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */
  914. __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */
  915. uint32_t RESERVED0; /*!< Reserved, 0x70 */
  916. __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */
  917. } FMC_Bank2_TypeDef;
  918. /**
  919. * @brief Flexible Memory Controller Bank3
  920. */
  921. typedef struct
  922. {
  923. __IO uint32_t PCR; /*!< NAND Flash control register 3, Address offset: 0x80 */
  924. __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */
  925. __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */
  926. __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */
  927. uint32_t RESERVED; /*!< Reserved, 0x90 */
  928. __IO uint32_t ECCR; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */
  929. } FMC_Bank3_TypeDef;
  930. /**
  931. * @brief Flexible Memory Controller Bank5 and 6
  932. */
  933. typedef struct
  934. {
  935. __IO uint32_t SDCR[2]; /*!< SDRAM Control registers , Address offset: 0x140-0x144 */
  936. __IO uint32_t SDTR[2]; /*!< SDRAM Timing registers , Address offset: 0x148-0x14C */
  937. __IO uint32_t SDCMR; /*!< SDRAM Command Mode register, Address offset: 0x150 */
  938. __IO uint32_t SDRTR; /*!< SDRAM Refresh Timer register, Address offset: 0x154 */
  939. __IO uint32_t SDSR; /*!< SDRAM Status register, Address offset: 0x158 */
  940. } FMC_Bank5_6_TypeDef;
  941. /**
  942. * @brief General Purpose I/O
  943. */
  944. typedef struct
  945. {
  946. __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
  947. __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
  948. __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
  949. __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
  950. __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
  951. __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
  952. __IO uint16_t BSRRL; /*!< GPIO port bit set/reset low register, Address offset: 0x18 */
  953. __IO uint16_t BSRRH; /*!< GPIO port bit set/reset high register, Address offset: 0x1A */
  954. __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
  955. __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
  956. } GPIO_TypeDef;
  957. /**
  958. * @brief Operational Amplifier (OPAMP)
  959. */
  960. typedef struct
  961. {
  962. __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
  963. __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
  964. __IO uint32_t HSOTR; /*!< OPAMP offset trimming register for high speed mode, Address offset: 0x08 */
  965. } OPAMP_TypeDef;
  966. /**
  967. * @brief System configuration controller
  968. */
  969. typedef struct
  970. {
  971. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x00 */
  972. __IO uint32_t PMCR; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */
  973. __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */
  974. uint32_t RESERVED2[2]; /*!< Reserved, Address offset: 0x18-0x1C */
  975. __IO uint32_t CCCSR; /*!< SYSCFG compensation cell control/status register, Address offset: 0x20 */
  976. __IO uint32_t CCVR; /*!< SYSCFG compensation cell value register, Address offset: 0x24 */
  977. __IO uint32_t CCCR; /*!< SYSCFG compensation cell code register, Address offset: 0x28 */
  978. uint32_t RESERVED3[62]; /*!< Reserved, 0x2C-0x120 */
  979. __IO uint32_t PKGR; /*!< SYSCFG package register, Address offset: 0x124 */
  980. uint32_t RESERVED4[118]; /*!< Reserved, 0x128-0x2FC */
  981. __IO uint32_t UR0; /*!< SYSCFG user register 0, Address offset: 0x300 */
  982. __IO uint32_t UR1; /*!< SYSCFG user register 1, Address offset: 0x304 */
  983. __IO uint32_t UR2; /*!< SYSCFG user register 2, Address offset: 0x308 */
  984. __IO uint32_t UR3; /*!< SYSCFG user register 3, Address offset: 0x30C */
  985. __IO uint32_t UR4; /*!< SYSCFG user register 4, Address offset: 0x310 */
  986. __IO uint32_t UR5; /*!< SYSCFG user register 5, Address offset: 0x314 */
  987. __IO uint32_t UR6; /*!< SYSCFG user register 6, Address offset: 0x318 */
  988. __IO uint32_t UR7; /*!< SYSCFG user register 7, Address offset: 0x31C */
  989. __IO uint32_t UR8; /*!< SYSCFG user register 8, Address offset: 0x320 */
  990. __IO uint32_t UR9; /*!< SYSCFG user register 9, Address offset: 0x324 */
  991. __IO uint32_t UR10; /*!< SYSCFG user register 10, Address offset: 0x328 */
  992. __IO uint32_t UR11; /*!< SYSCFG user register 11, Address offset: 0x32C */
  993. __IO uint32_t UR12; /*!< SYSCFG user register 12, Address offset: 0x330 */
  994. __IO uint32_t UR13; /*!< SYSCFG user register 13, Address offset: 0x334 */
  995. __IO uint32_t UR14; /*!< SYSCFG user register 14, Address offset: 0x338 */
  996. __IO uint32_t UR15; /*!< SYSCFG user register 15, Address offset: 0x33C */
  997. __IO uint32_t UR16; /*!< SYSCFG user register 16, Address offset: 0x340 */
  998. __IO uint32_t UR17; /*!< SYSCFG user register 17, Address offset: 0x344 */
  999. } SYSCFG_TypeDef;
  1000. /**
  1001. * @brief Inter-integrated Circuit Interface
  1002. */
  1003. typedef struct
  1004. {
  1005. __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
  1006. __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
  1007. __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
  1008. __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
  1009. __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
  1010. __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
  1011. __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
  1012. __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
  1013. __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
  1014. __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
  1015. __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
  1016. } I2C_TypeDef;
  1017. /**
  1018. * @brief Independent WATCHDOG
  1019. */
  1020. typedef struct
  1021. {
  1022. __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
  1023. __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
  1024. __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
  1025. __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
  1026. __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
  1027. } IWDG_TypeDef;
  1028. /**
  1029. * @brief JPEG Codec
  1030. */
  1031. typedef struct
  1032. {
  1033. __IO uint32_t CONFR0; /*!< JPEG Codec Control Register (JPEG_CONFR0), Address offset: 00h */
  1034. __IO uint32_t CONFR1; /*!< JPEG Codec Control Register (JPEG_CONFR1), Address offset: 04h */
  1035. __IO uint32_t CONFR2; /*!< JPEG Codec Control Register (JPEG_CONFR2), Address offset: 08h */
  1036. __IO uint32_t CONFR3; /*!< JPEG Codec Control Register (JPEG_CONFR3), Address offset: 0Ch */
  1037. __IO uint32_t CONFR4; /*!< JPEG Codec Control Register (JPEG_CONFR4), Address offset: 10h */
  1038. __IO uint32_t CONFR5; /*!< JPEG Codec Control Register (JPEG_CONFR5), Address offset: 14h */
  1039. __IO uint32_t CONFR6; /*!< JPEG Codec Control Register (JPEG_CONFR6), Address offset: 18h */
  1040. __IO uint32_t CONFR7; /*!< JPEG Codec Control Register (JPEG_CONFR7), Address offset: 1Ch */
  1041. uint32_t Reserved20[4]; /* Reserved Address offset: 20h-2Ch */
  1042. __IO uint32_t CR; /*!< JPEG Control Register (JPEG_CR), Address offset: 30h */
  1043. __IO uint32_t SR; /*!< JPEG Status Register (JPEG_SR), Address offset: 34h */
  1044. __IO uint32_t CFR; /*!< JPEG Clear Flag Register (JPEG_CFR), Address offset: 38h */
  1045. uint32_t Reserved3c; /* Reserved Address offset: 3Ch */
  1046. __IO uint32_t DIR; /*!< JPEG Data Input Register (JPEG_DIR), Address offset: 40h */
  1047. __IO uint32_t DOR; /*!< JPEG Data Output Register (JPEG_DOR), Address offset: 44h */
  1048. uint32_t Reserved48[2]; /* Reserved Address offset: 48h-4Ch */
  1049. __IO uint32_t QMEM0[16]; /*!< JPEG quantization tables 0, Address offset: 50h-8Ch */
  1050. __IO uint32_t QMEM1[16]; /*!< JPEG quantization tables 1, Address offset: 90h-CCh */
  1051. __IO uint32_t QMEM2[16]; /*!< JPEG quantization tables 2, Address offset: D0h-10Ch */
  1052. __IO uint32_t QMEM3[16]; /*!< JPEG quantization tables 3, Address offset: 110h-14Ch */
  1053. __IO uint32_t HUFFMIN[16]; /*!< JPEG HuffMin tables, Address offset: 150h-18Ch */
  1054. __IO uint32_t HUFFBASE[32]; /*!< JPEG HuffSymb tables, Address offset: 190h-20Ch */
  1055. __IO uint32_t HUFFSYMB[84]; /*!< JPEG HUFFSYMB tables, Address offset: 210h-35Ch */
  1056. __IO uint32_t DHTMEM[103]; /*!< JPEG DHTMem tables, Address offset: 360h-4F8h */
  1057. uint32_t Reserved4FC; /* Reserved Address offset: 4FCh */
  1058. __IO uint32_t HUFFENC_AC0[88]; /*!< JPEG encodor, AC Huffman table 0, Address offset: 500h-65Ch */
  1059. __IO uint32_t HUFFENC_AC1[88]; /*!< JPEG encodor, AC Huffman table 1, Address offset: 660h-7BCh */
  1060. __IO uint32_t HUFFENC_DC0[8]; /*!< JPEG encodor, DC Huffman table 0, Address offset: 7C0h-7DCh */
  1061. __IO uint32_t HUFFENC_DC1[8]; /*!< JPEG encodor, DC Huffman table 1, Address offset: 7E0h-7FCh */
  1062. } JPEG_TypeDef;
  1063. /**
  1064. * @brief LCD-TFT Display Controller
  1065. */
  1066. typedef struct
  1067. {
  1068. uint32_t RESERVED0[2]; /*!< Reserved, 0x00-0x04 */
  1069. __IO uint32_t SSCR; /*!< LTDC Synchronization Size Configuration Register, Address offset: 0x08 */
  1070. __IO uint32_t BPCR; /*!< LTDC Back Porch Configuration Register, Address offset: 0x0C */
  1071. __IO uint32_t AWCR; /*!< LTDC Active Width Configuration Register, Address offset: 0x10 */
  1072. __IO uint32_t TWCR; /*!< LTDC Total Width Configuration Register, Address offset: 0x14 */
  1073. __IO uint32_t GCR; /*!< LTDC Global Control Register, Address offset: 0x18 */
  1074. uint32_t RESERVED1[2]; /*!< Reserved, 0x1C-0x20 */
  1075. __IO uint32_t SRCR; /*!< LTDC Shadow Reload Configuration Register, Address offset: 0x24 */
  1076. uint32_t RESERVED2[1]; /*!< Reserved, 0x28 */
  1077. __IO uint32_t BCCR; /*!< LTDC Background Color Configuration Register, Address offset: 0x2C */
  1078. uint32_t RESERVED3[1]; /*!< Reserved, 0x30 */
  1079. __IO uint32_t IER; /*!< LTDC Interrupt Enable Register, Address offset: 0x34 */
  1080. __IO uint32_t ISR; /*!< LTDC Interrupt Status Register, Address offset: 0x38 */
  1081. __IO uint32_t ICR; /*!< LTDC Interrupt Clear Register, Address offset: 0x3C */
  1082. __IO uint32_t LIPCR; /*!< LTDC Line Interrupt Position Configuration Register, Address offset: 0x40 */
  1083. __IO uint32_t CPSR; /*!< LTDC Current Position Status Register, Address offset: 0x44 */
  1084. __IO uint32_t CDSR; /*!< LTDC Current Display Status Register, Address offset: 0x48 */
  1085. } LTDC_TypeDef;
  1086. /**
  1087. * @brief LCD-TFT Display layer x Controller
  1088. */
  1089. typedef struct
  1090. {
  1091. __IO uint32_t CR; /*!< LTDC Layerx Control Register Address offset: 0x84 */
  1092. __IO uint32_t WHPCR; /*!< LTDC Layerx Window Horizontal Position Configuration Register Address offset: 0x88 */
  1093. __IO uint32_t WVPCR; /*!< LTDC Layerx Window Vertical Position Configuration Register Address offset: 0x8C */
  1094. __IO uint32_t CKCR; /*!< LTDC Layerx Color Keying Configuration Register Address offset: 0x90 */
  1095. __IO uint32_t PFCR; /*!< LTDC Layerx Pixel Format Configuration Register Address offset: 0x94 */
  1096. __IO uint32_t CACR; /*!< LTDC Layerx Constant Alpha Configuration Register Address offset: 0x98 */
  1097. __IO uint32_t DCCR; /*!< LTDC Layerx Default Color Configuration Register Address offset: 0x9C */
  1098. __IO uint32_t BFCR; /*!< LTDC Layerx Blending Factors Configuration Register Address offset: 0xA0 */
  1099. uint32_t RESERVED0[2]; /*!< Reserved */
  1100. __IO uint32_t CFBAR; /*!< LTDC Layerx Color Frame Buffer Address Register Address offset: 0xAC */
  1101. __IO uint32_t CFBLR; /*!< LTDC Layerx Color Frame Buffer Length Register Address offset: 0xB0 */
  1102. __IO uint32_t CFBLNR; /*!< LTDC Layerx ColorFrame Buffer Line Number Register Address offset: 0xB4 */
  1103. uint32_t RESERVED1[3]; /*!< Reserved */
  1104. __IO uint32_t CLUTWR; /*!< LTDC Layerx CLUT Write Register Address offset: 0x144 */
  1105. } LTDC_Layer_TypeDef;
  1106. /**
  1107. * @brief Power Control
  1108. */
  1109. typedef struct
  1110. {
  1111. __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
  1112. __IO uint32_t CSR1; /*!< PWR power control status register 1, Address offset: 0x04 */
  1113. __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x08 */
  1114. __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x0C */
  1115. __IO uint32_t CPUCR; /*!< PWR CPU control register, Address offset: 0x10 */
  1116. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x14 */
  1117. __IO uint32_t D3CR; /*!< PWR D3 domain control register, Address offset: 0x18 */
  1118. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x1C */
  1119. __IO uint32_t WKUPCR; /*!< PWR wakeup clear register, Address offset: 0x20 */
  1120. __IO uint32_t WKUPFR; /*!< PWR wakeup flag register, Address offset: 0x24 */
  1121. __IO uint32_t WKUPEPR; /*!< PWR wakeup enable and polarity register, Address offset: 0x28 */
  1122. } PWR_TypeDef;
  1123. /**
  1124. * @brief Reset and Clock Control
  1125. */
  1126. typedef struct
  1127. {
  1128. __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
  1129. __IO uint32_t ICSCR; /*!< RCC Internal Clock Sources Calibration Register, Address offset: 0x04 */
  1130. __IO uint32_t CRRCR; /*!< Clock Recovery RC Register, Address offset: 0x08 */
  1131. uint32_t RESERVED0; /*!< Reserved, Address offset: 0x0C */
  1132. __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x10 */
  1133. uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
  1134. __IO uint32_t D1CFGR; /*!< RCC Domain 1 configuration register, Address offset: 0x18 */
  1135. __IO uint32_t D2CFGR; /*!< RCC Domain 2 configuration register, Address offset: 0x1C */
  1136. __IO uint32_t D3CFGR; /*!< RCC Domain 3 configuration register, Address offset: 0x20 */
  1137. uint32_t RESERVED2; /*!< Reserved, Address offset: 0x24 */
  1138. __IO uint32_t PLLCKSELR; /*!< RCC PLLs Clock Source Selection Register, Address offset: 0x28 */
  1139. __IO uint32_t PLLCFGR; /*!< RCC PLLs Configuration Register, Address offset: 0x2C */
  1140. __IO uint32_t PLL1DIVR; /*!< RCC PLL1 Dividers Configuration Register, Address offset: 0x30 */
  1141. __IO uint32_t PLL1FRACR; /*!< RCC PLL1 Fractional Divider Configuration Register, Address offset: 0x34 */
  1142. __IO uint32_t PLL2DIVR; /*!< RCC PLL2 Dividers Configuration Register, Address offset: 0x38 */
  1143. __IO uint32_t PLL2FRACR; /*!< RCC PLL2 Fractional Divider Configuration Register, Address offset: 0x3C */
  1144. __IO uint32_t PLL3DIVR; /*!< RCC PLL3 Dividers Configuration Register, Address offset: 0x40 */
  1145. __IO uint32_t PLL3FRACR; /*!< RCC PLL3 Fractional Divider Configuration Register, Address offset: 0x44 */
  1146. uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */
  1147. __IO uint32_t D1CCIPR; /*!< RCC Domain 1 Kernel Clock Configuration Register Address offset: 0x4C */
  1148. __IO uint32_t D2CCIP1R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x50 */
  1149. __IO uint32_t D2CCIP2R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x54 */
  1150. __IO uint32_t D3CCIPR; /*!< RCC Domain 3 Kernel Clock Configuration Register Address offset: 0x58 */
  1151. uint32_t RESERVED4; /*!< Reserved, Address offset: 0x5C */
  1152. __IO uint32_t CIER; /*!< RCC Clock Source Interrupt Enable Register Address offset: 0x60 */
  1153. __IO uint32_t CIFR; /*!< RCC Clock Source Interrupt Flag Register Address offset: 0x64 */
  1154. __IO uint32_t CICR; /*!< RCC Clock Source Interrupt Clear Register Address offset: 0x68 */
  1155. uint32_t RESERVED5; /*!< Reserved, Address offset: 0x6C */
  1156. __IO uint32_t BDCR; /*!< RCC Vswitch Backup Domain Control Register, Address offset: 0x70 */
  1157. __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */
  1158. uint32_t RESERVED6; /*!< Reserved, Address offset: 0x78 */
  1159. __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x7C */
  1160. __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x80 */
  1161. __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x84 */
  1162. __IO uint32_t AHB4RSTR; /*!< RCC AHB4 peripheral reset register, Address offset: 0x88 */
  1163. __IO uint32_t APB3RSTR; /*!< RCC APB3 peripheral reset register, Address offset: 0x8C */
  1164. __IO uint32_t APB1LRSTR; /*!< RCC APB1 peripheral reset Low Word register, Address offset: 0x90 */
  1165. __IO uint32_t APB1HRSTR; /*!< RCC APB1 peripheral reset High Word register, Address offset: 0x94 */
  1166. __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x98 */
  1167. __IO uint32_t APB4RSTR; /*!< RCC APB4 peripheral reset register, Address offset: 0x9C */
  1168. __IO uint32_t GCR; /*!< RCC RCC Global Control Register, Address offset: 0xA0 */
  1169. uint32_t RESERVED7; /*!< Reserved, Address offset: 0xA4 */
  1170. __IO uint32_t D3AMR; /*!< RCC Domain 3 Autonomous Mode Register, Address offset: 0xA8 */
  1171. uint32_t RESERVED8[9]; /*!< Reserved, 0xAC-0xCC Address offset: 0xAC */
  1172. __IO uint32_t RSR; /*!< RCC Reset status register, Address offset: 0xD0 */
  1173. __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0xD4 */
  1174. __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0xD8 */
  1175. __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0xDC */
  1176. __IO uint32_t AHB4ENR; /*!< RCC AHB4 peripheral clock register, Address offset: 0xE0 */
  1177. __IO uint32_t APB3ENR; /*!< RCC APB3 peripheral clock register, Address offset: 0xE4 */
  1178. __IO uint32_t APB1LENR; /*!< RCC APB1 peripheral clock Low Word register, Address offset: 0xE8 */
  1179. __IO uint32_t APB1HENR; /*!< RCC APB1 peripheral clock High Word register, Address offset: 0xEC */
  1180. __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock register, Address offset: 0xF0 */
  1181. __IO uint32_t APB4ENR; /*!< RCC APB4 peripheral clock register, Address offset: 0xF4 */
  1182. uint32_t RESERVED9; /*!< Reserved, Address offset: 0xF8 */
  1183. __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral sleep clock register, Address offset: 0xFC */
  1184. __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral sleep clock register, Address offset: 0x100 */
  1185. __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral sleep clock register, Address offset: 0x104 */
  1186. __IO uint32_t AHB4LPENR; /*!< RCC AHB4 peripheral sleep clock register, Address offset: 0x108 */
  1187. __IO uint32_t APB3LPENR; /*!< RCC APB3 peripheral sleep clock register, Address offset: 0x10C */
  1188. __IO uint32_t APB1LLPENR; /*!< RCC APB1 peripheral sleep clock Low Word register, Address offset: 0x110 */
  1189. __IO uint32_t APB1HLPENR; /*!< RCC APB1 peripheral sleep clock High Word register, Address offset: 0x114 */
  1190. __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral sleep clock register, Address offset: 0x118 */
  1191. __IO uint32_t APB4LPENR; /*!< RCC APB4 peripheral sleep clock register, Address offset: 0x11C */
  1192. uint32_t RESERVED10[4]; /*!< Reserved, 0x120-0x12C Address offset: 0x120 */
  1193. } RCC_TypeDef;
  1194. /**
  1195. * @brief Real-Time Clock
  1196. */
  1197. typedef struct
  1198. {
  1199. __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
  1200. __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
  1201. __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
  1202. __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
  1203. __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
  1204. __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
  1205. uint32_t reserved; /*!< Reserved */
  1206. __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
  1207. __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
  1208. __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
  1209. __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
  1210. __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
  1211. __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
  1212. __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
  1213. __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
  1214. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  1215. __IO uint32_t TAMPCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  1216. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  1217. __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
  1218. __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */
  1219. __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  1220. __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  1221. __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  1222. __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  1223. __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  1224. __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
  1225. __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
  1226. __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
  1227. __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
  1228. __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
  1229. __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
  1230. __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
  1231. __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
  1232. __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
  1233. __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
  1234. __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
  1235. __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */
  1236. __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */
  1237. __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */
  1238. __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */
  1239. __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */
  1240. __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */
  1241. __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */
  1242. __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */
  1243. __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */
  1244. __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */
  1245. __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */
  1246. __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */
  1247. __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */
  1248. __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */
  1249. __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */
  1250. __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */
  1251. } RTC_TypeDef;
  1252. /**
  1253. * @brief Serial Audio Interface
  1254. */
  1255. typedef struct
  1256. {
  1257. __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
  1258. uint32_t RESERVED0[16]; /*!< Reserved, 0x04 - 0x43 */
  1259. __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */
  1260. __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */
  1261. } SAI_TypeDef;
  1262. typedef struct
  1263. {
  1264. __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
  1265. __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
  1266. __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
  1267. __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
  1268. __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
  1269. __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
  1270. __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
  1271. __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
  1272. } SAI_Block_TypeDef;
  1273. /**
  1274. * @brief SPDIF-RX Interface
  1275. */
  1276. typedef struct
  1277. {
  1278. __IO uint32_t CR; /*!< Control register, Address offset: 0x00 */
  1279. __IO uint32_t IMR; /*!< Interrupt mask register, Address offset: 0x04 */
  1280. __IO uint32_t SR; /*!< Status register, Address offset: 0x08 */
  1281. __IO uint32_t IFCR; /*!< Interrupt Flag Clear register, Address offset: 0x0C */
  1282. __IO uint32_t DR; /*!< Data input register, Address offset: 0x10 */
  1283. __IO uint32_t CSR; /*!< Channel Status register, Address offset: 0x14 */
  1284. __IO uint32_t DIR; /*!< Debug Information register, Address offset: 0x18 */
  1285. uint32_t RESERVED2; /*!< Reserved, 0x1A */
  1286. } SPDIFRX_TypeDef;
  1287. /**
  1288. * @brief Secure digital input/output Interface
  1289. */
  1290. typedef struct
  1291. {
  1292. __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
  1293. __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
  1294. __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
  1295. __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
  1296. __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
  1297. __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
  1298. __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
  1299. __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
  1300. __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
  1301. __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
  1302. __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
  1303. __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
  1304. __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
  1305. __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
  1306. __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
  1307. __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
  1308. __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */
  1309. uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */
  1310. __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */
  1311. __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */
  1312. __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */
  1313. __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */
  1314. uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */
  1315. __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
  1316. uint32_t RESERVED2[222]; /*!< Reserved, 0x84-0x3F8 */
  1317. __IO uint32_t IPVR; /*!< SDMMC data FIFO register, Address offset: 0x3FC */
  1318. } SDMMC_TypeDef;
  1319. /**
  1320. * @brief Delay Block DLYB
  1321. */
  1322. typedef struct
  1323. {
  1324. __IO uint32_t CR; /*!< DELAY BLOCK control register, Address offset: 0x00 */
  1325. __IO uint32_t CFGR; /*!< DELAY BLOCK configuration register, Address offset: 0x04 */
  1326. } DLYB_TypeDef;
  1327. /**
  1328. * @brief HW Semaphore HSEM
  1329. */
  1330. typedef struct
  1331. {
  1332. __IO uint32_t R[32]; /*!< 2-step write lock and read back registers, Address offset: 00h-7Ch */
  1333. __IO uint32_t RLR[32]; /*!< 1-step read lock registers, Address offset: 80h-FCh */
  1334. __IO uint32_t IER; /*!< HSEM Interrupt enable register , Address offset: 100h */
  1335. __IO uint32_t ICR; /*!< HSEM Interrupt clear register , Address offset: 104h */
  1336. __IO uint32_t ISR; /*!< HSEM Interrupt Status register , Address offset: 108h */
  1337. __IO uint32_t MISR; /*!< HSEM Interrupt Masked Status register , Address offset: 10Ch */
  1338. uint32_t Reserved[12]; /* Reserved Address offset: 110h-13Ch*/
  1339. __IO uint32_t CR; /*!< HSEM Semaphore clear register , Address offset: 140h */
  1340. __IO uint32_t KEYR; /*!< HSEM Semaphore clear key register , Address offset: 144h */
  1341. } HSEM_TypeDef;
  1342. /**
  1343. * @brief Serial Peripheral Interface
  1344. */
  1345. typedef struct
  1346. {
  1347. __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
  1348. __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
  1349. __IO uint32_t CFG1; /*!< SPI Status register, Address offset: 0x08 */
  1350. __IO uint32_t CFG2; /*!< SPI Status register, Address offset: 0x0C */
  1351. __IO uint32_t IER; /*!< SPI data register, Address offset: 0x10 */
  1352. __IO uint32_t SR; /*!< SPI data register, Address offset: 0x14 */
  1353. __IO uint32_t IFCR; /*!< SPI data register, Address offset: 0x18 */
  1354. uint32_t RESERVED0; /*!< SPI data register, Address offset: 0x1C */
  1355. __IO uint32_t TXDR; /*!< SPI data register, Address offset: 0x20 */
  1356. uint32_t RESERVED1[3]; /*!< Reserved, 0x24-0x2C */
  1357. __IO uint32_t RXDR; /*!< SPI data register, Address offset: 0x30 */
  1358. uint32_t RESERVED2[3]; /*!< Reserved, 0x34-0x3C */
  1359. __IO uint32_t CRCPOLY; /*!< SPI data register, Address offset: 0x40 */
  1360. __IO uint32_t TXCRC; /*!< SPI data register, Address offset: 0x44 */
  1361. __IO uint32_t RXCRC; /*!< SPI data register, Address offset: 0x48 */
  1362. __IO uint32_t UDRDR; /*!< SPI data register, Address offset: 0x4C */
  1363. __IO uint32_t I2SCFGR; /*!< SPI data register, Address offset: 0x50 */
  1364. } SPI_TypeDef;
  1365. /**
  1366. * @brief QUAD Serial Peripheral Interface
  1367. */
  1368. typedef struct
  1369. {
  1370. __IO uint32_t CR; /*!< QUADSPI Control register, Address offset: 0x00 */
  1371. __IO uint32_t DCR; /*!< QUADSPI Device Configuration register, Address offset: 0x04 */
  1372. __IO uint32_t SR; /*!< QUADSPI Status register, Address offset: 0x08 */
  1373. __IO uint32_t FCR; /*!< QUADSPI Flag Clear register, Address offset: 0x0C */
  1374. __IO uint32_t DLR; /*!< QUADSPI Data Length register, Address offset: 0x10 */
  1375. __IO uint32_t CCR; /*!< QUADSPI Communication Configuration register, Address offset: 0x14 */
  1376. __IO uint32_t AR; /*!< QUADSPI Address register, Address offset: 0x18 */
  1377. __IO uint32_t ABR; /*!< QUADSPI Alternate Bytes register, Address offset: 0x1C */
  1378. __IO uint32_t DR; /*!< QUADSPI Data register, Address offset: 0x20 */
  1379. __IO uint32_t PSMKR; /*!< QUADSPI Polling Status Mask register, Address offset: 0x24 */
  1380. __IO uint32_t PSMAR; /*!< QUADSPI Polling Status Match register, Address offset: 0x28 */
  1381. __IO uint32_t PIR; /*!< QUADSPI Polling Interval register, Address offset: 0x2C */
  1382. __IO uint32_t LPTR; /*!< QUADSPI Low Power Timeout register, Address offset: 0x30 */
  1383. } QUADSPI_TypeDef;
  1384. /**
  1385. * @brief TIM
  1386. */
  1387. typedef struct
  1388. {
  1389. __IO uint16_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
  1390. uint16_t RESERVED0; /*!< Reserved, 0x02 */
  1391. __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
  1392. __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
  1393. __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
  1394. __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
  1395. __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
  1396. __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
  1397. __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
  1398. __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
  1399. __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
  1400. __IO uint16_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
  1401. uint16_t RESERVED9; /*!< Reserved, 0x2A */
  1402. __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
  1403. __IO uint16_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
  1404. uint16_t RESERVED10; /*!< Reserved, 0x32 */
  1405. __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
  1406. __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
  1407. __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
  1408. __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
  1409. __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
  1410. __IO uint16_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
  1411. uint16_t RESERVED12; /*!< Reserved, 0x4A */
  1412. __IO uint16_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
  1413. uint16_t RESERVED13; /*!< Reserved, 0x4E */
  1414. uint16_t RESERVED14; /*!< Reserved, 0x50 */
  1415. __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
  1416. __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
  1417. __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
  1418. __IO uint32_t AF1; /*!< TIM alternate function option register 1, Address offset: 0x60 */
  1419. __IO uint32_t AF2; /*!< TIM alternate function option register 2, Address offset: 0x64 */
  1420. __IO uint32_t TISEL; /*!< TIM Input Selection register, Address offset: 0x68 */
  1421. } TIM_TypeDef;
  1422. /**
  1423. * @brief LPTIMIMER
  1424. */
  1425. typedef struct
  1426. {
  1427. __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
  1428. __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
  1429. __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
  1430. __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
  1431. __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
  1432. __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
  1433. __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
  1434. __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
  1435. uint16_t RESERVED1; /*!< Reserved, 0x20 */
  1436. __IO uint32_t CFGR2; /*!< LPTIM Option register, Address offset: 0x24 */
  1437. } LPTIM_TypeDef;
  1438. /**
  1439. * @brief Comparator
  1440. */
  1441. typedef struct
  1442. {
  1443. __IO uint32_t SR; /*!< Comparator status register, Address offset: 0x00 */
  1444. __IO uint32_t ICFR; /*!< Comparator interrupt clear flag register, Address offset: 0x04 */
  1445. __IO uint32_t OR; /*!< Comparator option register, Address offset: 0x08 */
  1446. } COMPOPT_TypeDef;
  1447. typedef struct
  1448. {
  1449. __IO uint32_t CFGR; /*!< Comparator configuration register , Address offset: 0x00 */
  1450. } COMP_TypeDef;
  1451. typedef struct
  1452. {
  1453. __IO uint32_t CFGR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
  1454. } COMP_Common_TypeDef;
  1455. /**
  1456. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  1457. */
  1458. typedef struct
  1459. {
  1460. __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
  1461. __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
  1462. __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
  1463. __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
  1464. __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
  1465. uint16_t RESERVED2; /*!< Reserved, 0x12 */
  1466. __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
  1467. __IO uint16_t RQR; /*!< USART Request register, Address offset: 0x18 */
  1468. uint16_t RESERVED3; /*!< Reserved, 0x1A */
  1469. __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
  1470. __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
  1471. __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
  1472. uint16_t RESERVED4; /*!< Reserved, 0x26 */
  1473. __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
  1474. uint16_t RESERVED5; /*!< Reserved, 0x2A */
  1475. __IO uint32_t PRESC; /*!< USART clock Prescaler register, Address offset: 0x2C */
  1476. } USART_TypeDef;
  1477. /**
  1478. * @brief Single Wire Protocol Master Interface SPWMI
  1479. */
  1480. typedef struct
  1481. {
  1482. __IO uint32_t CR; /*!< SWPMI Configuration/Control register, Address offset: 0x00 */
  1483. __IO uint32_t BRR; /*!< SWPMI bitrate register, Address offset: 0x04 */
  1484. uint32_t RESERVED1; /*!< Reserved, 0x08 */
  1485. __IO uint32_t ISR; /*!< SWPMI Interrupt and Status register, Address offset: 0x0C */
  1486. __IO uint32_t ICR; /*!< SWPMI Interrupt Flag Clear register, Address offset: 0x10 */
  1487. __IO uint32_t IER; /*!< SWPMI Interrupt Enable register, Address offset: 0x14 */
  1488. __IO uint32_t RFL; /*!< SWPMI Receive Frame Length register, Address offset: 0x18 */
  1489. __IO uint32_t TDR; /*!< SWPMI Transmit data register, Address offset: 0x1C */
  1490. __IO uint32_t RDR; /*!< SWPMI Receive data register, Address offset: 0x20 */
  1491. __IO uint32_t OR; /*!< SWPMI Option register, Address offset: 0x24 */
  1492. } SWPMI_TypeDef;
  1493. /**
  1494. * @brief Window WATCHDOG
  1495. */
  1496. typedef struct
  1497. {
  1498. __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
  1499. __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
  1500. __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
  1501. } WWDG_TypeDef;
  1502. /**
  1503. * @brief High resolution Timer (HRTIM)
  1504. */
  1505. /* HRTIM master registers definition */
  1506. typedef struct
  1507. {
  1508. __IO uint32_t MCR; /*!< HRTIM Master Timer control register, Address offset: 0x00 */
  1509. __IO uint32_t MISR; /*!< HRTIM Master Timer interrupt status register, Address offset: 0x04 */
  1510. __IO uint32_t MICR; /*!< HRTIM Master Timer interupt clear register, Address offset: 0x08 */
  1511. __IO uint32_t MDIER; /*!< HRTIM Master Timer DMA/interrupt enable register Address offset: 0x0C */
  1512. __IO uint32_t MCNTR; /*!< HRTIM Master Timer counter register, Address offset: 0x10 */
  1513. __IO uint32_t MPER; /*!< HRTIM Master Timer period register, Address offset: 0x14 */
  1514. __IO uint32_t MREP; /*!< HRTIM Master Timer repetition register, Address offset: 0x18 */
  1515. __IO uint32_t MCMP1R; /*!< HRTIM Master Timer compare 1 register, Address offset: 0x1C */
  1516. uint32_t RESERVED0; /*!< Reserved, 0x20 */
  1517. __IO uint32_t MCMP2R; /*!< HRTIM Master Timer compare 2 register, Address offset: 0x24 */
  1518. __IO uint32_t MCMP3R; /*!< HRTIM Master Timer compare 3 register, Address offset: 0x28 */
  1519. __IO uint32_t MCMP4R; /*!< HRTIM Master Timer compare 4 register, Address offset: 0x2C */
  1520. uint32_t RESERVED1[20]; /*!< Reserved, 0x30..0x7C */
  1521. }HRTIM_Master_TypeDef;
  1522. /* HRTIM Timer A to E registers definition */
  1523. typedef struct
  1524. {
  1525. __IO uint32_t TIMxCR; /*!< HRTIM Timerx control register, Address offset: 0x00 */
  1526. __IO uint32_t TIMxISR; /*!< HRTIM Timerx interrupt status register, Address offset: 0x04 */
  1527. __IO uint32_t TIMxICR; /*!< HRTIM Timerx interrupt clear register, Address offset: 0x08 */
  1528. __IO uint32_t TIMxDIER; /*!< HRTIM Timerx DMA/interrupt enable register, Address offset: 0x0C */
  1529. __IO uint32_t CNTxR; /*!< HRTIM Timerx counter register, Address offset: 0x10 */
  1530. __IO uint32_t PERxR; /*!< HRTIM Timerx period register, Address offset: 0x14 */
  1531. __IO uint32_t REPxR; /*!< HRTIM Timerx repetition register, Address offset: 0x18 */
  1532. __IO uint32_t CMP1xR; /*!< HRTIM Timerx compare 1 register, Address offset: 0x1C */
  1533. __IO uint32_t CMP1CxR; /*!< HRTIM Timerx compare 1 compound register, Address offset: 0x20 */
  1534. __IO uint32_t CMP2xR; /*!< HRTIM Timerx compare 2 register, Address offset: 0x24 */
  1535. __IO uint32_t CMP3xR; /*!< HRTIM Timerx compare 3 register, Address offset: 0x28 */
  1536. __IO uint32_t CMP4xR; /*!< HRTIM Timerx compare 4 register, Address offset: 0x2C */
  1537. __IO uint32_t CPT1xR; /*!< HRTIM Timerx capture 1 register, Address offset: 0x30 */
  1538. __IO uint32_t CPT2xR; /*!< HRTIM Timerx capture 2 register, Address offset: 0x34 */
  1539. __IO uint32_t DTxR; /*!< HRTIM Timerx dead time register, Address offset: 0x38 */
  1540. __IO uint32_t SETx1R; /*!< HRTIM Timerx output 1 set register, Address offset: 0x3C */
  1541. __IO uint32_t RSTx1R; /*!< HRTIM Timerx output 1 reset register, Address offset: 0x40 */
  1542. __IO uint32_t SETx2R; /*!< HRTIM Timerx output 2 set register, Address offset: 0x44 */
  1543. __IO uint32_t RSTx2R; /*!< HRTIM Timerx output 2 reset register, Address offset: 0x48 */
  1544. __IO uint32_t EEFxR1; /*!< HRTIM Timerx external event filtering 1 register, Address offset: 0x4C */
  1545. __IO uint32_t EEFxR2; /*!< HRTIM Timerx external event filtering 2 register, Address offset: 0x50 */
  1546. __IO uint32_t RSTxR; /*!< HRTIM Timerx Reset register, Address offset: 0x54 */
  1547. __IO uint32_t CHPxR; /*!< HRTIM Timerx Chopper register, Address offset: 0x58 */
  1548. __IO uint32_t CPT1xCR; /*!< HRTIM Timerx Capture 1 register, Address offset: 0x5C */
  1549. __IO uint32_t CPT2xCR; /*!< HRTIM Timerx Capture 2 register, Address offset: 0x60 */
  1550. __IO uint32_t OUTxR; /*!< HRTIM Timerx Output register, Address offset: 0x64 */
  1551. __IO uint32_t FLTxR; /*!< HRTIM Timerx Fault register, Address offset: 0x68 */
  1552. uint32_t RESERVED0[5]; /*!< Reserved, 0x6C..0x7C */
  1553. }HRTIM_Timerx_TypeDef;
  1554. /* HRTIM common register definition */
  1555. typedef struct
  1556. {
  1557. __IO uint32_t CR1; /*!< HRTIM control register1, Address offset: 0x00 */
  1558. __IO uint32_t CR2; /*!< HRTIM control register2, Address offset: 0x04 */
  1559. __IO uint32_t ISR; /*!< HRTIM interrupt status register, Address offset: 0x08 */
  1560. __IO uint32_t ICR; /*!< HRTIM interrupt clear register, Address offset: 0x0C */
  1561. __IO uint32_t IER; /*!< HRTIM interrupt enable register, Address offset: 0x10 */
  1562. __IO uint32_t OENR; /*!< HRTIM Output enable register, Address offset: 0x14 */
  1563. __IO uint32_t ODISR; /*!< HRTIM Output disable register, Address offset: 0x18 */
  1564. __IO uint32_t ODSR; /*!< HRTIM Output disable status register, Address offset: 0x1C */
  1565. __IO uint32_t BMCR; /*!< HRTIM Burst mode control register, Address offset: 0x20 */
  1566. __IO uint32_t BMTRGR; /*!< HRTIM Busrt mode trigger register, Address offset: 0x24 */
  1567. __IO uint32_t BMCMPR; /*!< HRTIM Burst mode compare register, Address offset: 0x28 */
  1568. __IO uint32_t BMPER; /*!< HRTIM Burst mode period register, Address offset: 0x2C */
  1569. __IO uint32_t EECR1; /*!< HRTIM Timer external event control register1, Address offset: 0x30 */
  1570. __IO uint32_t EECR2; /*!< HRTIM Timer external event control register2, Address offset: 0x34 */
  1571. __IO uint32_t EECR3; /*!< HRTIM Timer external event control register3, Address offset: 0x38 */
  1572. __IO uint32_t ADC1R; /*!< HRTIM ADC Trigger 1 register, Address offset: 0x3C */
  1573. __IO uint32_t ADC2R; /*!< HRTIM ADC Trigger 2 register, Address offset: 0x40 */
  1574. __IO uint32_t ADC3R; /*!< HRTIM ADC Trigger 3 register, Address offset: 0x44 */
  1575. __IO uint32_t ADC4R; /*!< HRTIM ADC Trigger 4 register, Address offset: 0x48 */
  1576. __IO uint32_t DLLCR; /*!< HRTIM DLL control register, Address offset: 0x4C */
  1577. __IO uint32_t FLTINR1; /*!< HRTIM Fault input register1, Address offset: 0x50 */
  1578. __IO uint32_t FLTINR2; /*!< HRTIM Fault input register2, Address offset: 0x54 */
  1579. __IO uint32_t BDMUPR; /*!< HRTIM Burst DMA Master Timer update register, Address offset: 0x58 */
  1580. __IO uint32_t BDTAUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x5C */
  1581. __IO uint32_t BDTBUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x60 */
  1582. __IO uint32_t BDTCUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x64 */
  1583. __IO uint32_t BDTDUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x68 */
  1584. __IO uint32_t BDTEUPR; /*!< HRTIM Burst DMA Timerx update register, Address offset: 0x6C */
  1585. __IO uint32_t BDMADR; /*!< HRTIM Burst DMA Master Data register, Address offset: 0x70 */
  1586. }HRTIM_Common_TypeDef;
  1587. /* HRTIM register definition */
  1588. typedef struct {
  1589. HRTIM_Master_TypeDef sMasterRegs;
  1590. HRTIM_Timerx_TypeDef sTimerxRegs[5];
  1591. uint32_t RESERVED0[32];
  1592. HRTIM_Common_TypeDef sCommonRegs;
  1593. }HRTIM_TypeDef;
  1594. /**
  1595. * @brief RNG
  1596. */
  1597. typedef struct
  1598. {
  1599. __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
  1600. __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
  1601. __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
  1602. } RNG_TypeDef;
  1603. /**
  1604. * @brief MDIOS
  1605. */
  1606. typedef struct
  1607. {
  1608. __IO uint32_t CR;
  1609. __IO uint32_t WRFR;
  1610. __IO uint32_t CWRFR;
  1611. __IO uint32_t RDFR;
  1612. __IO uint32_t CRDFR;
  1613. __IO uint32_t SR;
  1614. __IO uint32_t CLRFR;
  1615. uint32_t RESERVED[57];
  1616. __IO uint32_t DINR0;
  1617. __IO uint32_t DINR1;
  1618. __IO uint32_t DINR2;
  1619. __IO uint32_t DINR3;
  1620. __IO uint32_t DINR4;
  1621. __IO uint32_t DINR5;
  1622. __IO uint32_t DINR6;
  1623. __IO uint32_t DINR7;
  1624. __IO uint32_t DINR8;
  1625. __IO uint32_t DINR9;
  1626. __IO uint32_t DINR10;
  1627. __IO uint32_t DINR11;
  1628. __IO uint32_t DINR12;
  1629. __IO uint32_t DINR13;
  1630. __IO uint32_t DINR14;
  1631. __IO uint32_t DINR15;
  1632. __IO uint32_t DINR16;
  1633. __IO uint32_t DINR17;
  1634. __IO uint32_t DINR18;
  1635. __IO uint32_t DINR19;
  1636. __IO uint32_t DINR20;
  1637. __IO uint32_t DINR21;
  1638. __IO uint32_t DINR22;
  1639. __IO uint32_t DINR23;
  1640. __IO uint32_t DINR24;
  1641. __IO uint32_t DINR25;
  1642. __IO uint32_t DINR26;
  1643. __IO uint32_t DINR27;
  1644. __IO uint32_t DINR28;
  1645. __IO uint32_t DINR29;
  1646. __IO uint32_t DINR30;
  1647. __IO uint32_t DINR31;
  1648. __IO uint32_t DOUTR0;
  1649. __IO uint32_t DOUTR1;
  1650. __IO uint32_t DOUTR2;
  1651. __IO uint32_t DOUTR3;
  1652. __IO uint32_t DOUTR4;
  1653. __IO uint32_t DOUTR5;
  1654. __IO uint32_t DOUTR6;
  1655. __IO uint32_t DOUTR7;
  1656. __IO uint32_t DOUTR8;
  1657. __IO uint32_t DOUTR9;
  1658. __IO uint32_t DOUTR10;
  1659. __IO uint32_t DOUTR11;
  1660. __IO uint32_t DOUTR12;
  1661. __IO uint32_t DOUTR13;
  1662. __IO uint32_t DOUTR14;
  1663. __IO uint32_t DOUTR15;
  1664. __IO uint32_t DOUTR16;
  1665. __IO uint32_t DOUTR17;
  1666. __IO uint32_t DOUTR18;
  1667. __IO uint32_t DOUTR19;
  1668. __IO uint32_t DOUTR20;
  1669. __IO uint32_t DOUTR21;
  1670. __IO uint32_t DOUTR22;
  1671. __IO uint32_t DOUTR23;
  1672. __IO uint32_t DOUTR24;
  1673. __IO uint32_t DOUTR25;
  1674. __IO uint32_t DOUTR26;
  1675. __IO uint32_t DOUTR27;
  1676. __IO uint32_t DOUTR28;
  1677. __IO uint32_t DOUTR29;
  1678. __IO uint32_t DOUTR30;
  1679. __IO uint32_t DOUTR31;
  1680. } MDIOS_TypeDef;
  1681. /**
  1682. * @brief USB_OTG_Core_Registers
  1683. */
  1684. typedef struct
  1685. {
  1686. __IO uint32_t GOTGCTL; /*!< USB_OTG Control and Status Register 000h */
  1687. __IO uint32_t GOTGINT; /*!< USB_OTG Interrupt Register 004h */
  1688. __IO uint32_t GAHBCFG; /*!< Core AHB Configuration Register 008h */
  1689. __IO uint32_t GUSBCFG; /*!< Core USB Configuration Register 00Ch */
  1690. __IO uint32_t GRSTCTL; /*!< Core Reset Register 010h */
  1691. __IO uint32_t GINTSTS; /*!< Core Interrupt Register 014h */
  1692. __IO uint32_t GINTMSK; /*!< Core Interrupt Mask Register 018h */
  1693. __IO uint32_t GRXSTSR; /*!< Receive Sts Q Read Register 01Ch */
  1694. __IO uint32_t GRXSTSP; /*!< Receive Sts Q Read & POP Register 020h */
  1695. __IO uint32_t GRXFSIZ; /*!< Receive FIFO Size Register 024h */
  1696. __IO uint32_t DIEPTXF0_HNPTXFSIZ; /*!< EP0 / Non Periodic Tx FIFO Size Register 028h */
  1697. __IO uint32_t HNPTXSTS; /*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch */
  1698. uint32_t Reserved30[2]; /*!< Reserved 030h */
  1699. __IO uint32_t GCCFG; /*!< General Purpose IO Register 038h */
  1700. __IO uint32_t CID; /*!< User ID Register 03Ch */
  1701. __IO uint32_t GSNPSID; /* USB_OTG core ID 040h*/
  1702. __IO uint32_t GHWCFG1; /* User HW config1 044h*/
  1703. __IO uint32_t GHWCFG2; /* User HW config2 048h*/
  1704. __IO uint32_t GHWCFG3; /*!< User HW config3 04Ch */
  1705. uint32_t Reserved6; /*!< Reserved 050h */
  1706. __IO uint32_t GLPMCFG; /*!< LPM Register 054h */
  1707. __IO uint32_t GPWRDN; /*!< Power Down Register 058h */
  1708. __IO uint32_t GDFIFOCFG; /*!< DFIFO Software Config Register 05Ch */
  1709. __IO uint32_t GADPCTL; /*!< ADP Timer, Control and Status Register 60Ch */
  1710. uint32_t Reserved43[39]; /*!< Reserved 058h-0FFh */
  1711. __IO uint32_t HPTXFSIZ; /*!< Host Periodic Tx FIFO Size Reg 100h */
  1712. __IO uint32_t DIEPTXF[0x0F]; /*!< dev Periodic Transmit FIFO */
  1713. } USB_OTG_GlobalTypeDef;
  1714. /**
  1715. * @brief USB_OTG_device_Registers
  1716. */
  1717. typedef struct
  1718. {
  1719. __IO uint32_t DCFG; /*!< dev Configuration Register 800h */
  1720. __IO uint32_t DCTL; /*!< dev Control Register 804h */
  1721. __IO uint32_t DSTS; /*!< dev Status Register (RO) 808h */
  1722. uint32_t Reserved0C; /*!< Reserved 80Ch */
  1723. __IO uint32_t DIEPMSK; /*!< dev IN Endpoint Mask 810h */
  1724. __IO uint32_t DOEPMSK; /*!< dev OUT Endpoint Mask 814h */
  1725. __IO uint32_t DAINT; /*!< dev All Endpoints Itr Reg 818h */
  1726. __IO uint32_t DAINTMSK; /*!< dev All Endpoints Itr Mask 81Ch */
  1727. uint32_t Reserved20; /*!< Reserved 820h */
  1728. uint32_t Reserved9; /*!< Reserved 824h */
  1729. __IO uint32_t DVBUSDIS; /*!< dev VBUS discharge Register 828h */
  1730. __IO uint32_t DVBUSPULSE; /*!< dev VBUS Pulse Register 82Ch */
  1731. __IO uint32_t DTHRCTL; /*!< dev threshold 830h */
  1732. __IO uint32_t DIEPEMPMSK; /*!< dev empty msk 834h */
  1733. __IO uint32_t DEACHINT; /*!< dedicated EP interrupt 838h */
  1734. __IO uint32_t DEACHMSK; /*!< dedicated EP msk 83Ch */
  1735. uint32_t Reserved40; /*!< dedicated EP mask 840h */
  1736. __IO uint32_t DINEP1MSK; /*!< dedicated EP mask 844h */
  1737. uint32_t Reserved44[15]; /*!< Reserved 844-87Ch */
  1738. __IO uint32_t DOUTEP1MSK; /*!< dedicated EP msk 884h */
  1739. } USB_OTG_DeviceTypeDef;
  1740. /**
  1741. * @brief USB_OTG_IN_Endpoint-Specific_Register
  1742. */
  1743. typedef struct
  1744. {
  1745. __IO uint32_t DIEPCTL; /*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h */
  1746. uint32_t Reserved04; /*!< Reserved 900h + (ep_num * 20h) + 04h */
  1747. __IO uint32_t DIEPINT; /*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h */
  1748. uint32_t Reserved0C; /*!< Reserved 900h + (ep_num * 20h) + 0Ch */
  1749. __IO uint32_t DIEPTSIZ; /*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h */
  1750. __IO uint32_t DIEPDMA; /*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h */
  1751. __IO uint32_t DTXFSTS; /*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h */
  1752. uint32_t Reserved18; /*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch */
  1753. } USB_OTG_INEndpointTypeDef;
  1754. /**
  1755. * @brief USB_OTG_OUT_Endpoint-Specific_Registers
  1756. */
  1757. typedef struct
  1758. {
  1759. __IO uint32_t DOEPCTL; /*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h */
  1760. uint32_t Reserved04; /*!< Reserved B00h + (ep_num * 20h) + 04h */
  1761. __IO uint32_t DOEPINT; /*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h */
  1762. uint32_t Reserved0C; /*!< Reserved B00h + (ep_num * 20h) + 0Ch */
  1763. __IO uint32_t DOEPTSIZ; /*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h */
  1764. __IO uint32_t DOEPDMA; /*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h */
  1765. uint32_t Reserved18[2]; /*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch */
  1766. } USB_OTG_OUTEndpointTypeDef;
  1767. /**
  1768. * @brief USB_OTG_Host_Mode_Register_Structures
  1769. */
  1770. typedef struct
  1771. {
  1772. __IO uint32_t HCFG; /*!< Host Configuration Register 400h */
  1773. __IO uint32_t HFIR; /*!< Host Frame Interval Register 404h */
  1774. __IO uint32_t HFNUM; /*!< Host Frame Nbr/Frame Remaining 408h */
  1775. uint32_t Reserved40C; /*!< Reserved 40Ch */
  1776. __IO uint32_t HPTXSTS; /*!< Host Periodic Tx FIFO/ Queue Status 410h */
  1777. __IO uint32_t HAINT; /*!< Host All Channels Interrupt Register 414h */
  1778. __IO uint32_t HAINTMSK; /*!< Host All Channels Interrupt Mask 418h */
  1779. } USB_OTG_HostTypeDef;
  1780. /**
  1781. * @brief USB_OTG_Host_Channel_Specific_Registers
  1782. */
  1783. typedef struct
  1784. {
  1785. __IO uint32_t HCCHAR; /*!< Host Channel Characteristics Register 500h */
  1786. __IO uint32_t HCSPLT; /*!< Host Channel Split Control Register 504h */
  1787. __IO uint32_t HCINT; /*!< Host Channel Interrupt Register 508h */
  1788. __IO uint32_t HCINTMSK; /*!< Host Channel Interrupt Mask Register 50Ch */
  1789. __IO uint32_t HCTSIZ; /*!< Host Channel Transfer Size Register 510h */
  1790. __IO uint32_t HCDMA; /*!< Host Channel DMA Address Register 514h */
  1791. uint32_t Reserved[2]; /*!< Reserved */
  1792. } USB_OTG_HostChannelTypeDef;
  1793. /**
  1794. * @}
  1795. */
  1796. /** @addtogroup Peripheral_memory_map
  1797. * @{
  1798. */
  1799. #define D1_ITCMRAM_BASE ((uint32_t)0x00000000) /*!< Base address of : 64KB RAM reserved for CPU execution/instruction accessible over ITCM */
  1800. #define D1_ITCMICP_BASE ((uint32_t)0x00100000) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over ITCM */
  1801. #define D1_DTCMRAM_BASE ((uint32_t)0x20000000) /*!< Base address of : 128KB system data RAM accessible over DTCM */
  1802. #define D1_AXIFLASH_BASE ((uint32_t)0x08000000) /*!< Base address of : (up to 2 MB) embedded FLASH memory accessible over AXI */
  1803. #define D1_AXIICP_BASE ((uint32_t)0x1FF00000) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over AXI */
  1804. #define D1_AXISRAM_BASE ((uint32_t)0x24000000) /*!< Base address of : (up to 512KB) system data RAM accessible over over AXI */
  1805. #define D2_AXISRAM_BASE ((uint32_t)0x10000000) /*!< Base address of : (up to 288KB) system data RAM accessible over over AXI */
  1806. #define D2_AHBSRAM_BASE ((uint32_t)0x30000000) /*!< Base address of : (up to 288KB) system data RAM accessible over over AXI->AHB Bridge */
  1807. #define D3_BKPSRAM_BASE ((uint32_t)0x38800000) /*!< Base address of : Backup SRAM(4 KB) over AXI->AHB Bridge */
  1808. #define D3_SRAM_BASE ((uint32_t)0x38000000) /*!< Base address of : Backup SRAM(64 KB) over AXI->AHB Bridge */
  1809. #define PERIPH_BASE ((uint32_t)0x40000000) /*!< Base address of : AHB/ABP Peripherals */
  1810. #define QSPI_BASE ((uint32_t)0x90000000) /*!< Base address of : QSPI memories accessible over AXI */
  1811. #define FLASH_BANK1_BASE ((uint32_t)0x08000000) /*!< Base address of : Flash Bank1 accessible over AXI */
  1812. #define FLASH_BANK2_BASE ((uint32_t)0x08100000) /*!< Base address of : Flash Bank2 accessible over AXI */
  1813. #define FLASH_END ((uint32_t)0x081FFFFF) /*!< FLASH end address */
  1814. /* Legacy define */
  1815. #define FLASH_BASE FLASH_BANK1_BASE
  1816. /*!< Peripheral memory map */
  1817. #define D2_APB1PERIPH_BASE PERIPH_BASE
  1818. #define D2_APB2PERIPH_BASE (PERIPH_BASE + 0x00010000)
  1819. #define D2_AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000)
  1820. #define D2_AHB2PERIPH_BASE (PERIPH_BASE + 0x08020000)
  1821. #define D1_APB1PERIPH_BASE (PERIPH_BASE + 0x10000000)
  1822. #define D1_AHB1PERIPH_BASE (PERIPH_BASE + 0x12000000)
  1823. #define D3_APB1PERIPH_BASE (PERIPH_BASE + 0x18000000)
  1824. #define D3_AHB1PERIPH_BASE (PERIPH_BASE + 0x18020000)
  1825. /*!< Legacy Peripheral memory map */
  1826. #define APB1PERIPH_BASE PERIPH_BASE
  1827. #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000)
  1828. #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000)
  1829. #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
  1830. /*!< D1_AHB1PERIPH peripherals */
  1831. #define MDMA_BASE (D1_AHB1PERIPH_BASE + 0x0000)
  1832. #define DMA2D_BASE (D1_AHB1PERIPH_BASE + 0x1000)
  1833. #define JPGDEC_BASE (D1_AHB1PERIPH_BASE + 0x3000)
  1834. #define FLASH_R_BASE (D1_AHB1PERIPH_BASE + 0x2000)
  1835. #define FMC_R_BASE (D1_AHB1PERIPH_BASE + 0x4000)
  1836. #define QSPI_R_BASE (D1_AHB1PERIPH_BASE + 0x5000)
  1837. #define DLYB_QSPI_BASE (D1_AHB1PERIPH_BASE + 0x6000)
  1838. #define SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x7000)
  1839. #define DLYB_SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x8000)
  1840. /*!< D2_AHB1PERIPH peripherals */
  1841. #define DMA1_BASE (D2_AHB1PERIPH_BASE + 0x0000)
  1842. #define DMA2_BASE (D2_AHB1PERIPH_BASE + 0x0400)
  1843. #define DMAMUX1_BASE (D2_AHB1PERIPH_BASE + 0x0800)
  1844. #define ADC1_BASE (D2_AHB1PERIPH_BASE + 0x2000)
  1845. #define ADC2_BASE (D2_AHB1PERIPH_BASE + 0x2100)
  1846. #define ADC12_COMMON_BASE (D2_AHB1PERIPH_BASE + 0x2300)
  1847. #define ART_BASE (D2_AHB1PERIPH_BASE + 0x4400)
  1848. #define ETH_BASE (D2_AHB1PERIPH_BASE + 0x8000)
  1849. #define ETH_MAC_BASE (ETH_BASE)
  1850. /*!< USB registers base address */
  1851. #define USB1_OTG_HS_PERIPH_BASE ((uint32_t )0x40040000)
  1852. #define USB2_OTG_FS_PERIPH_BASE ((uint32_t )0x40080000)
  1853. #define USB_OTG_GLOBAL_BASE ((uint32_t )0x000)
  1854. #define USB_OTG_DEVICE_BASE ((uint32_t )0x800)
  1855. #define USB_OTG_IN_ENDPOINT_BASE ((uint32_t )0x900)
  1856. #define USB_OTG_OUT_ENDPOINT_BASE ((uint32_t )0xB00)
  1857. #define USB_OTG_EP_REG_SIZE ((uint32_t )0x20)
  1858. #define USB_OTG_HOST_BASE ((uint32_t )0x400)
  1859. #define USB_OTG_HOST_PORT_BASE ((uint32_t )0x440)
  1860. #define USB_OTG_HOST_CHANNEL_BASE ((uint32_t )0x500)
  1861. #define USB_OTG_HOST_CHANNEL_SIZE ((uint32_t )0x20)
  1862. #define USB_OTG_PCGCCTL_BASE ((uint32_t )0xE00)
  1863. #define USB_OTG_FIFO_BASE ((uint32_t )0x1000)
  1864. #define USB_OTG_FIFO_SIZE ((uint32_t )0x1000)
  1865. /*!< D2_AHB2PERIPH peripherals */
  1866. #define DCMI_BASE (D2_AHB2PERIPH_BASE + 0x0000)
  1867. #define RNG_BASE (D2_AHB2PERIPH_BASE + 0x1800)
  1868. #define SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2400)
  1869. #define DLYB_SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2800)
  1870. /*!< D3_AHB1PERIPH peripherals */
  1871. #define GPIOA_BASE (D3_AHB1PERIPH_BASE + 0x0000)
  1872. #define GPIOB_BASE (D3_AHB1PERIPH_BASE + 0x0400)
  1873. #define GPIOC_BASE (D3_AHB1PERIPH_BASE + 0x0800)
  1874. #define GPIOD_BASE (D3_AHB1PERIPH_BASE + 0x0C00)
  1875. #define GPIOE_BASE (D3_AHB1PERIPH_BASE + 0x1000)
  1876. #define GPIOF_BASE (D3_AHB1PERIPH_BASE + 0x1400)
  1877. #define GPIOG_BASE (D3_AHB1PERIPH_BASE + 0x1800)
  1878. #define GPIOH_BASE (D3_AHB1PERIPH_BASE + 0x1C00)
  1879. #define GPIOI_BASE (D3_AHB1PERIPH_BASE + 0x2000)
  1880. #define GPIOJ_BASE (D3_AHB1PERIPH_BASE + 0x2400)
  1881. #define GPIOK_BASE (D3_AHB1PERIPH_BASE + 0x2800)
  1882. #define RCC_BASE (D3_AHB1PERIPH_BASE + 0x4400)
  1883. #define RCC_C1_BASE (RCC_BASE + 0x130)
  1884. #define PWR_BASE (D3_AHB1PERIPH_BASE + 0x4800)
  1885. #define CRC_BASE (D3_AHB1PERIPH_BASE + 0x4C00)
  1886. #define BDMA_BASE (D3_AHB1PERIPH_BASE + 0x5400)
  1887. #define DMAMUX2_BASE (D3_AHB1PERIPH_BASE + 0x5800)
  1888. #define ADC3_BASE (D3_AHB1PERIPH_BASE + 0x6000)
  1889. #define ADC3_COMMON_BASE (D3_AHB1PERIPH_BASE + 0x6300)
  1890. #define HSEM_BASE (D3_AHB1PERIPH_BASE + 0x6400)
  1891. /*!< D1_APB1PERIPH peripherals */
  1892. #define LTDC_BASE (D1_APB1PERIPH_BASE + 0x1000)
  1893. #define LTDC_Layer1_BASE (LTDC_BASE + 0x84)
  1894. #define LTDC_Layer2_BASE (LTDC_BASE + 0x104)
  1895. #define WWDG1_BASE (D1_APB1PERIPH_BASE + 0x3000)
  1896. /*!< D2_APB1PERIPH peripherals */
  1897. #define TIM2_BASE (D2_APB1PERIPH_BASE + 0x0000)
  1898. #define TIM3_BASE (D2_APB1PERIPH_BASE + 0x0400)
  1899. #define TIM4_BASE (D2_APB1PERIPH_BASE + 0x0800)
  1900. #define TIM5_BASE (D2_APB1PERIPH_BASE + 0x0C00)
  1901. #define TIM6_BASE (D2_APB1PERIPH_BASE + 0x1000)
  1902. #define TIM7_BASE (D2_APB1PERIPH_BASE + 0x1400)
  1903. #define TIM12_BASE (D2_APB1PERIPH_BASE + 0x1800)
  1904. #define TIM13_BASE (D2_APB1PERIPH_BASE + 0x1C00)
  1905. #define TIM14_BASE (D2_APB1PERIPH_BASE + 0x2000)
  1906. #define LPTIM1_BASE (D2_APB1PERIPH_BASE + 0x2400)
  1907. #define SPI2_BASE (D2_APB1PERIPH_BASE + 0x3800)
  1908. #define SPI3_BASE (D2_APB1PERIPH_BASE + 0x3C00)
  1909. #define SPDIFRX_BASE (D2_APB1PERIPH_BASE + 0x4000)
  1910. #define USART2_BASE (D2_APB1PERIPH_BASE + 0x4400)
  1911. #define USART3_BASE (D2_APB1PERIPH_BASE + 0x4800)
  1912. #define UART4_BASE (D2_APB1PERIPH_BASE + 0x4C00)
  1913. #define UART5_BASE (D2_APB1PERIPH_BASE + 0x5000)
  1914. #define I2C1_BASE (D2_APB1PERIPH_BASE + 0x5400)
  1915. #define I2C2_BASE (D2_APB1PERIPH_BASE + 0x5800)
  1916. #define I2C3_BASE (D2_APB1PERIPH_BASE + 0x5C00)
  1917. #define CEC_BASE (D2_APB1PERIPH_BASE + 0x6C00)
  1918. #define DAC1_BASE (D2_APB1PERIPH_BASE + 0x7400)
  1919. #define UART7_BASE (D2_APB1PERIPH_BASE + 0x7800)
  1920. #define UART8_BASE (D2_APB1PERIPH_BASE + 0x7C00)
  1921. #define CRS_BASE (D2_APB1PERIPH_BASE + 0x8400)
  1922. #define SWPMI1_BASE (D2_APB1PERIPH_BASE + 0x8800)
  1923. #define OPAMP_BASE (D2_APB1PERIPH_BASE + 0x9000)
  1924. #define OPAMP1_BASE (D2_APB1PERIPH_BASE + 0x9000)
  1925. #define OPAMP2_BASE (D2_APB1PERIPH_BASE + 0x9010)
  1926. #define MDIOS_BASE (D2_APB1PERIPH_BASE + 0x9400)
  1927. #define FDCAN1_BASE (D2_APB1PERIPH_BASE + 0xA000)
  1928. #define FDCAN2_BASE (D2_APB1PERIPH_BASE + 0xA400)
  1929. #define FDCAN_CCU_BASE (D2_APB1PERIPH_BASE + 0xA800)
  1930. #define SRAMCAN_BASE (D2_APB1PERIPH_BASE + 0xAC00)
  1931. /*!< D2_APB2PERIPH peripherals */
  1932. #define TIM1_BASE (D2_APB2PERIPH_BASE + 0x0000)
  1933. #define TIM8_BASE (D2_APB2PERIPH_BASE + 0x0400)
  1934. #define USART1_BASE (D2_APB2PERIPH_BASE + 0x1000)
  1935. #define USART6_BASE (D2_APB2PERIPH_BASE + 0x1400)
  1936. #define SPI1_BASE (D2_APB2PERIPH_BASE + 0x3000)
  1937. #define SPI4_BASE (D2_APB2PERIPH_BASE + 0x3400)
  1938. #define TIM15_BASE (D2_APB2PERIPH_BASE + 0x4000)
  1939. #define TIM16_BASE (D2_APB2PERIPH_BASE + 0x4400)
  1940. #define TIM17_BASE (D2_APB2PERIPH_BASE + 0x4800)
  1941. #define SPI5_BASE (D2_APB2PERIPH_BASE + 0x5000)
  1942. #define SAI1_BASE (D2_APB2PERIPH_BASE + 0x5800)
  1943. #define SAI1_Block_A_BASE (SAI1_BASE + 0x004)
  1944. #define SAI1_Block_B_BASE (SAI1_BASE + 0x024)
  1945. #define SAI2_BASE (D2_APB2PERIPH_BASE + 0x5C00)
  1946. #define SAI2_Block_A_BASE (SAI2_BASE + 0x004)
  1947. #define SAI2_Block_B_BASE (SAI2_BASE + 0x024)
  1948. #define SAI3_BASE (D2_APB2PERIPH_BASE + 0x6000)
  1949. #define SAI3_Block_A_BASE (SAI3_BASE + 0x004)
  1950. #define SAI3_Block_B_BASE (SAI3_BASE + 0x024)
  1951. #define DFSDM1_BASE (D2_APB2PERIPH_BASE + 0x7000)
  1952. #define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00)
  1953. #define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20)
  1954. #define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40)
  1955. #define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60)
  1956. #define DFSDM1_Channel4_BASE (DFSDM1_BASE + 0x80)
  1957. #define DFSDM1_Channel5_BASE (DFSDM1_BASE + 0xA0)
  1958. #define DFSDM1_Channel6_BASE (DFSDM1_BASE + 0xC0)
  1959. #define DFSDM1_Channel7_BASE (DFSDM1_BASE + 0xE0)
  1960. #define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100)
  1961. #define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180)
  1962. #define DFSDM1_Filter2_BASE (DFSDM1_BASE + 0x200)
  1963. #define DFSDM1_Filter3_BASE (DFSDM1_BASE + 0x280)
  1964. #define HRTIM1_BASE (D2_APB2PERIPH_BASE + 0x7400)
  1965. #define HRTIM1_TIMA_BASE (HRTIM1_BASE + 0x00000080)
  1966. #define HRTIM1_TIMB_BASE (HRTIM1_BASE + 0x00000100)
  1967. #define HRTIM1_TIMC_BASE (HRTIM1_BASE + 0x00000180)
  1968. #define HRTIM1_TIMD_BASE (HRTIM1_BASE + 0x00000200)
  1969. #define HRTIM1_TIME_BASE (HRTIM1_BASE + 0x00000280)
  1970. #define HRTIM1_COMMON_BASE (HRTIM1_BASE + 0x00000380)
  1971. /*!< D3_APB1PERIPH peripherals */
  1972. #define EXTI_BASE (D3_APB1PERIPH_BASE + 0x0000)
  1973. #define EXTI_D1_BASE (EXTI_BASE + 0x0080)
  1974. #define EXTI_D2_BASE (EXTI_BASE + 0x00C0)
  1975. #define SYSCFG_BASE (D3_APB1PERIPH_BASE + 0x0400)
  1976. #define LPUART1_BASE (D3_APB1PERIPH_BASE + 0x0C00)
  1977. #define SPI6_BASE (D3_APB1PERIPH_BASE + 0x1400)
  1978. #define I2C4_BASE (D3_APB1PERIPH_BASE + 0x1C00)
  1979. #define LPTIM2_BASE (D3_APB1PERIPH_BASE + 0x2400)
  1980. #define LPTIM3_BASE (D3_APB1PERIPH_BASE + 0x2800)
  1981. #define LPTIM4_BASE (D3_APB1PERIPH_BASE + 0x2C00)
  1982. #define LPTIM5_BASE (D3_APB1PERIPH_BASE + 0x3000)
  1983. #define COMP12_BASE (D3_APB1PERIPH_BASE + 0x3800)
  1984. #define COMP1_BASE (COMP12_BASE + 0x0C)
  1985. #define COMP2_BASE (COMP12_BASE + 0x10)
  1986. #define VREFBUF_BASE (D3_APB1PERIPH_BASE + 0x3C00)
  1987. #define RTC_BASE (D3_APB1PERIPH_BASE + 0x4000)
  1988. #define IWDG1_BASE (D3_APB1PERIPH_BASE + 0x4800)
  1989. #define SAI4_BASE (D3_APB1PERIPH_BASE + 0x5400)
  1990. #define SAI4_Block_A_BASE (SAI4_BASE + 0x004)
  1991. #define SAI4_Block_B_BASE (SAI4_BASE + 0x024)
  1992. #define BDMA_Channel0_BASE (BDMA_BASE + 0x0008)
  1993. #define BDMA_Channel1_BASE (BDMA_BASE + 0x001C)
  1994. #define BDMA_Channel2_BASE (BDMA_BASE + 0x0030)
  1995. #define BDMA_Channel3_BASE (BDMA_BASE + 0x0044)
  1996. #define BDMA_Channel4_BASE (BDMA_BASE + 0x0058)
  1997. #define BDMA_Channel5_BASE (BDMA_BASE + 0x006C)
  1998. #define BDMA_Channel6_BASE (BDMA_BASE + 0x0080)
  1999. #define BDMA_Channel7_BASE (BDMA_BASE + 0x0094)
  2000. #define DMAMUX2_Channel0_BASE (DMAMUX2_BASE)
  2001. #define DMAMUX2_Channel1_BASE (DMAMUX2_BASE + 0x0004)
  2002. #define DMAMUX2_Channel2_BASE (DMAMUX2_BASE + 0x0008)
  2003. #define DMAMUX2_Channel3_BASE (DMAMUX2_BASE + 0x000C)
  2004. #define DMAMUX2_Channel4_BASE (DMAMUX2_BASE + 0x0010)
  2005. #define DMAMUX2_Channel5_BASE (DMAMUX2_BASE + 0x0014)
  2006. #define DMAMUX2_Channel6_BASE (DMAMUX2_BASE + 0x0018)
  2007. #define DMAMUX2_Channel7_BASE (DMAMUX2_BASE + 0x001C)
  2008. #define DMAMUX2_RequestGenerator0_BASE (DMAMUX2_BASE + 0x0100)
  2009. #define DMAMUX2_RequestGenerator1_BASE (DMAMUX2_BASE + 0x0104)
  2010. #define DMAMUX2_RequestGenerator2_BASE (DMAMUX2_BASE + 0x0108)
  2011. #define DMAMUX2_RequestGenerator3_BASE (DMAMUX2_BASE + 0x010C)
  2012. #define DMAMUX2_RequestGenerator4_BASE (DMAMUX2_BASE + 0x0110)
  2013. #define DMAMUX2_RequestGenerator5_BASE (DMAMUX2_BASE + 0x0114)
  2014. #define DMAMUX2_RequestGenerator6_BASE (DMAMUX2_BASE + 0x0118)
  2015. #define DMAMUX2_RequestGenerator7_BASE (DMAMUX2_BASE + 0x011C)
  2016. #define DMAMUX2_ChannelStatus_BASE (DMAMUX2_BASE + 0x0080)
  2017. #define DMAMUX2_RequestGenStatus_BASE (DMAMUX2_BASE + 0x0140)
  2018. #define DMA1_Stream0_BASE (DMA1_BASE + 0x010)
  2019. #define DMA1_Stream1_BASE (DMA1_BASE + 0x028)
  2020. #define DMA1_Stream2_BASE (DMA1_BASE + 0x040)
  2021. #define DMA1_Stream3_BASE (DMA1_BASE + 0x058)
  2022. #define DMA1_Stream4_BASE (DMA1_BASE + 0x070)
  2023. #define DMA1_Stream5_BASE (DMA1_BASE + 0x088)
  2024. #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0)
  2025. #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8)
  2026. #define DMA2_Stream0_BASE (DMA2_BASE + 0x010)
  2027. #define DMA2_Stream1_BASE (DMA2_BASE + 0x028)
  2028. #define DMA2_Stream2_BASE (DMA2_BASE + 0x040)
  2029. #define DMA2_Stream3_BASE (DMA2_BASE + 0x058)
  2030. #define DMA2_Stream4_BASE (DMA2_BASE + 0x070)
  2031. #define DMA2_Stream5_BASE (DMA2_BASE + 0x088)
  2032. #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0)
  2033. #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8)
  2034. #define DMAMUX1_Channel0_BASE (DMAMUX1_BASE)
  2035. #define DMAMUX1_Channel1_BASE (DMAMUX1_BASE + 0x0004)
  2036. #define DMAMUX1_Channel2_BASE (DMAMUX1_BASE + 0x0008)
  2037. #define DMAMUX1_Channel3_BASE (DMAMUX1_BASE + 0x000C)
  2038. #define DMAMUX1_Channel4_BASE (DMAMUX1_BASE + 0x0010)
  2039. #define DMAMUX1_Channel5_BASE (DMAMUX1_BASE + 0x0014)
  2040. #define DMAMUX1_Channel6_BASE (DMAMUX1_BASE + 0x0018)
  2041. #define DMAMUX1_Channel7_BASE (DMAMUX1_BASE + 0x001C)
  2042. #define DMAMUX1_Channel8_BASE (DMAMUX1_BASE + 0x0020)
  2043. #define DMAMUX1_Channel9_BASE (DMAMUX1_BASE + 0x0024)
  2044. #define DMAMUX1_Channel10_BASE (DMAMUX1_BASE + 0x0028)
  2045. #define DMAMUX1_Channel11_BASE (DMAMUX1_BASE + 0x002C)
  2046. #define DMAMUX1_Channel12_BASE (DMAMUX1_BASE + 0x0030)
  2047. #define DMAMUX1_Channel13_BASE (DMAMUX1_BASE + 0x0034)
  2048. #define DMAMUX1_Channel14_BASE (DMAMUX1_BASE + 0x0038)
  2049. #define DMAMUX1_Channel15_BASE (DMAMUX1_BASE + 0x003C)
  2050. #define DMAMUX1_RequestGenerator0_BASE (DMAMUX1_BASE + 0x0100)
  2051. #define DMAMUX1_RequestGenerator1_BASE (DMAMUX1_BASE + 0x0104)
  2052. #define DMAMUX1_RequestGenerator2_BASE (DMAMUX1_BASE + 0x0108)
  2053. #define DMAMUX1_RequestGenerator3_BASE (DMAMUX1_BASE + 0x010C)
  2054. #define DMAMUX1_RequestGenerator4_BASE (DMAMUX1_BASE + 0x0110)
  2055. #define DMAMUX1_RequestGenerator5_BASE (DMAMUX1_BASE + 0x0114)
  2056. #define DMAMUX1_RequestGenerator6_BASE (DMAMUX1_BASE + 0x0118)
  2057. #define DMAMUX1_RequestGenerator7_BASE (DMAMUX1_BASE + 0x011C)
  2058. #define DMAMUX1_ChannelStatus_BASE (DMAMUX1_BASE + 0x0080)
  2059. #define DMAMUX1_RequestGenStatus_BASE (DMAMUX1_BASE + 0x0140)
  2060. /*!< FMC Banks registers base address */
  2061. #define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
  2062. #define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104)
  2063. #define FMC_Bank2_R_BASE (FMC_R_BASE + 0x0060)
  2064. #define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080)
  2065. #define FMC_Bank5_6_R_BASE (FMC_R_BASE + 0x0140)
  2066. /* Debug MCU registers base address */
  2067. #define DBGMCU_BASE ((uint32_t )0x5C001000)
  2068. #define MDMA_Channel0_BASE (MDMA_BASE + 0x00000040)
  2069. #define MDMA_Channel1_BASE (MDMA_BASE + 0x00000080)
  2070. #define MDMA_Channel2_BASE (MDMA_BASE + 0x000000C0)
  2071. #define MDMA_Channel3_BASE (MDMA_BASE + 0x00000100)
  2072. #define MDMA_Channel4_BASE (MDMA_BASE + 0x00000140)
  2073. #define MDMA_Channel5_BASE (MDMA_BASE + 0x00000180)
  2074. #define MDMA_Channel6_BASE (MDMA_BASE + 0x000001C0)
  2075. #define MDMA_Channel7_BASE (MDMA_BASE + 0x00000200)
  2076. #define MDMA_Channel8_BASE (MDMA_BASE + 0x00000240)
  2077. #define MDMA_Channel9_BASE (MDMA_BASE + 0x00000280)
  2078. #define MDMA_Channel10_BASE (MDMA_BASE + 0x000002C0)
  2079. #define MDMA_Channel11_BASE (MDMA_BASE + 0x00000300)
  2080. #define MDMA_Channel12_BASE (MDMA_BASE + 0x00000340)
  2081. #define MDMA_Channel13_BASE (MDMA_BASE + 0x00000380)
  2082. #define MDMA_Channel14_BASE (MDMA_BASE + 0x000003C0)
  2083. #define MDMA_Channel15_BASE (MDMA_BASE + 0x00000400)
  2084. /**
  2085. * @}
  2086. */
  2087. /** @addtogroup Peripheral_declaration
  2088. * @{
  2089. */
  2090. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  2091. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  2092. #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
  2093. #define TIM5 ((TIM_TypeDef *) TIM5_BASE)
  2094. #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
  2095. #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
  2096. #define TIM13 ((TIM_TypeDef *) TIM13_BASE)
  2097. #define TIM14 ((TIM_TypeDef *) TIM14_BASE)
  2098. #define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE)
  2099. #define RTC ((RTC_TypeDef *) RTC_BASE)
  2100. #define WWDG1 ((WWDG_TypeDef *) WWDG1_BASE)
  2101. #define IWDG1 ((IWDG_TypeDef *) IWDG1_BASE)
  2102. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  2103. #define SPI3 ((SPI_TypeDef *) SPI3_BASE)
  2104. #define SPI4 ((SPI_TypeDef *) SPI4_BASE)
  2105. #define SPI5 ((SPI_TypeDef *) SPI5_BASE)
  2106. #define SPI6 ((SPI_TypeDef *) SPI6_BASE)
  2107. #define USART2 ((USART_TypeDef *) USART2_BASE)
  2108. #define USART3 ((USART_TypeDef *) USART3_BASE)
  2109. #define USART6 ((USART_TypeDef *) USART6_BASE)
  2110. #define UART7 ((USART_TypeDef *) UART7_BASE)
  2111. #define UART8 ((USART_TypeDef *) UART8_BASE)
  2112. #define CRS ((CRS_TypeDef *) CRS_BASE)
  2113. #define UART4 ((USART_TypeDef *) UART4_BASE)
  2114. #define UART5 ((USART_TypeDef *) UART5_BASE)
  2115. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  2116. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  2117. #define I2C3 ((I2C_TypeDef *) I2C3_BASE)
  2118. #define I2C4 ((I2C_TypeDef *) I2C4_BASE)
  2119. #define FDCAN1 ((FDCAN_GlobalTypeDef *) FDCAN1_BASE)
  2120. #define FDCAN2 ((FDCAN_GlobalTypeDef *) FDCAN2_BASE)
  2121. #define FDCAN_CCU ((FDCAN_ClockCalibrationUnit_TypeDef *) FDCAN_CCU_BASE)
  2122. #define CEC ((CEC_TypeDef *) CEC_BASE)
  2123. #define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE)
  2124. #define PWR ((PWR_TypeDef *) PWR_BASE)
  2125. #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
  2126. #define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
  2127. #define SWPMI1 ((SWPMI_TypeDef *) SWPMI1_BASE)
  2128. #define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE)
  2129. #define LPTIM3 ((LPTIM_TypeDef *) LPTIM3_BASE)
  2130. #define LPTIM4 ((LPTIM_TypeDef *) LPTIM4_BASE)
  2131. #define LPTIM5 ((LPTIM_TypeDef *) LPTIM5_BASE)
  2132. #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
  2133. #define COMP12 ((COMPOPT_TypeDef *) COMP12_BASE)
  2134. #define COMP1 ((COMP_TypeDef *) COMP1_BASE)
  2135. #define COMP2 ((COMP_TypeDef *) COMP2_BASE)
  2136. #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE)
  2137. #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
  2138. #define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE)
  2139. #define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
  2140. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  2141. #define EXTI_D1 ((EXTI_Core_TypeDef *) EXTI_D1_BASE)
  2142. #define EXTI_D2 ((EXTI_Core_TypeDef *) EXTI_D2_BASE)
  2143. #define SDMMC ((SDMMC_TypeDef *) SDMMC_BASE)
  2144. #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
  2145. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  2146. #define TIM8 ((TIM_TypeDef *) TIM8_BASE)
  2147. #define USART1 ((USART_TypeDef *) USART1_BASE)
  2148. #define TIM12 ((TIM_TypeDef *) TIM12_BASE)
  2149. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  2150. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  2151. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  2152. #define HRTIM1 ((HRTIM_TypeDef *) HRTIM1_BASE)
  2153. #define HRTIM1_TIMA ((HRTIM_TIM_TypeDef *) HRTIM1_TIMA_BASE)
  2154. #define HRTIM1_TIMB ((HRTIM_TIM_TypeDef *) HRTIM1_TIMB_BASE)
  2155. #define HRTIM1_TIMC ((HRTIM_TIM_TypeDef *) HRTIM1_TIMC_BASE)
  2156. #define HRTIM1_TIMD ((HRTIM_TIM_TypeDef *) HRTIM1_TIMD_BASE)
  2157. #define HRTIM1_TIME ((HRTIM_TIM_TypeDef *) HRTIM1_TIME_BASE)
  2158. #define HRTIM1_COMMON ((HRTIM_Common_TypeDef *) HRTIM1_COMMON_BASE)
  2159. #define SAI1 ((SAI_TypeDef *) SAI1_BASE)
  2160. #define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE)
  2161. #define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE)
  2162. #define SAI2 ((SAI_TypeDef *) SAI2_BASE)
  2163. #define SAI2_Block_A ((SAI_Block_TypeDef *)SAI2_Block_A_BASE)
  2164. #define SAI2_Block_B ((SAI_Block_TypeDef *)SAI2_Block_B_BASE)
  2165. #define SAI3 ((SAI_TypeDef *) SAI3_BASE)
  2166. #define SAI3_Block_A ((SAI_Block_TypeDef *)SAI3_Block_A_BASE)
  2167. #define SAI3_Block_B ((SAI_Block_TypeDef *)SAI3_Block_B_BASE)
  2168. #define SAI4 ((SAI_TypeDef *) SAI4_BASE)
  2169. #define SAI4_Block_A ((SAI_Block_TypeDef *)SAI4_Block_A_BASE)
  2170. #define SAI4_Block_B ((SAI_Block_TypeDef *)SAI4_Block_B_BASE)
  2171. #define SPDIFRX ((SPDIFRX_TypeDef *) SPDIFRX_BASE)
  2172. #define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE)
  2173. #define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE)
  2174. #define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE)
  2175. #define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE)
  2176. #define DFSDM1_Channel4 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel4_BASE)
  2177. #define DFSDM1_Channel5 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel5_BASE)
  2178. #define DFSDM1_Channel6 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel6_BASE)
  2179. #define DFSDM1_Channel7 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel7_BASE)
  2180. #define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE)
  2181. #define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE)
  2182. #define DFSDM1_Filter2 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE)
  2183. #define DFSDM1_Filter3 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE)
  2184. #define DMA2D ((DMA2D_TypeDef *) DMA2D_BASE)
  2185. #define DCMI ((DCMI_TypeDef *) DCMI_BASE)
  2186. #define RCC ((RCC_TypeDef *) RCC_BASE)
  2187. #define RCC_C1 ((RCC_Core_TypeDef *) RCC_C1_BASE)
  2188. #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
  2189. #define CRC ((CRC_TypeDef *) CRC_BASE)
  2190. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  2191. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  2192. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  2193. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  2194. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  2195. #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
  2196. #define GPIOG ((GPIO_TypeDef *) GPIOG_BASE)
  2197. #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE)
  2198. #define GPIOI ((GPIO_TypeDef *) GPIOI_BASE)
  2199. #define GPIOJ ((GPIO_TypeDef *) GPIOJ_BASE)
  2200. #define GPIOK ((GPIO_TypeDef *) GPIOK_BASE)
  2201. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  2202. #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
  2203. #define ADC3 ((ADC_TypeDef *) ADC3_BASE)
  2204. #define ADC12_COMMON ((ADC_Common_TypeDef *) ADC12_COMMON_BASE)
  2205. #define ADC3_COMMON ((ADC_Common_TypeDef *) ADC3_COMMON_BASE)
  2206. #define RNG ((RNG_TypeDef *) RNG_BASE)
  2207. #define SDMMC2 ((SDMMC_TypeDef *) SDMMC2_BASE)
  2208. #define DLYB_SDMMC2 ((DLYB_TypeDef *) DLYB_SDMMC2_BASE)
  2209. #define BDMA ((BDMA_TypeDef *) BDMA_BASE)
  2210. #define BDMA_Channel0 ((BDMA_Channel_TypeDef *) BDMA_Channel0_BASE)
  2211. #define BDMA_Channel1 ((BDMA_Channel_TypeDef *) BDMA_Channel1_BASE)
  2212. #define BDMA_Channel2 ((BDMA_Channel_TypeDef *) BDMA_Channel2_BASE)
  2213. #define BDMA_Channel3 ((BDMA_Channel_TypeDef *) BDMA_Channel3_BASE)
  2214. #define BDMA_Channel4 ((BDMA_Channel_TypeDef *) BDMA_Channel4_BASE)
  2215. #define BDMA_Channel5 ((BDMA_Channel_TypeDef *) BDMA_Channel5_BASE)
  2216. #define BDMA_Channel6 ((BDMA_Channel_TypeDef *) BDMA_Channel6_BASE)
  2217. #define BDMA_Channel7 ((BDMA_Channel_TypeDef *) BDMA_Channel7_BASE)
  2218. #define DMAMUX2_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel0_BASE)
  2219. #define DMAMUX2_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel1_BASE)
  2220. #define DMAMUX2_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel2_BASE)
  2221. #define DMAMUX2_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel3_BASE)
  2222. #define DMAMUX2_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel4_BASE)
  2223. #define DMAMUX2_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel5_BASE)
  2224. #define DMAMUX2_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel6_BASE)
  2225. #define DMAMUX2_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel7_BASE)
  2226. #define DMAMUX2_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator0_BASE)
  2227. #define DMAMUX2_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator1_BASE)
  2228. #define DMAMUX2_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator2_BASE)
  2229. #define DMAMUX2_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator3_BASE)
  2230. #define DMAMUX2_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator4_BASE)
  2231. #define DMAMUX2_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator5_BASE)
  2232. #define DMAMUX2_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator6_BASE)
  2233. #define DMAMUX2_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator7_BASE)
  2234. #define DMAMUX2_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX2_ChannelStatus_BASE)
  2235. #define DMAMUX2_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX2_RequestGenStatus_BASE)
  2236. #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
  2237. #define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE)
  2238. #define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE)
  2239. #define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE)
  2240. #define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE)
  2241. #define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE)
  2242. #define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE)
  2243. #define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE)
  2244. #define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE)
  2245. #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
  2246. #define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE)
  2247. #define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE)
  2248. #define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE)
  2249. #define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE)
  2250. #define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE)
  2251. #define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE)
  2252. #define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE)
  2253. #define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE)
  2254. #define DMAMUX1_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE)
  2255. #define DMAMUX1_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE)
  2256. #define DMAMUX1_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE)
  2257. #define DMAMUX1_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE)
  2258. #define DMAMUX1_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE)
  2259. #define DMAMUX1_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE)
  2260. #define DMAMUX1_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE)
  2261. #define DMAMUX1_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE)
  2262. #define DMAMUX1_Channel8 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE)
  2263. #define DMAMUX1_Channel9 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE)
  2264. #define DMAMUX1_Channel10 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE)
  2265. #define DMAMUX1_Channel11 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE)
  2266. #define DMAMUX1_Channel12 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE)
  2267. #define DMAMUX1_Channel13 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE)
  2268. #define DMAMUX1_Channel14 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE)
  2269. #define DMAMUX1_Channel15 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE)
  2270. #define DMAMUX1_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE)
  2271. #define DMAMUX1_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE)
  2272. #define DMAMUX1_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE)
  2273. #define DMAMUX1_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE)
  2274. #define DMAMUX1_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator4_BASE)
  2275. #define DMAMUX1_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator5_BASE)
  2276. #define DMAMUX1_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator6_BASE)
  2277. #define DMAMUX1_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator7_BASE)
  2278. #define DMAMUX1_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE)
  2279. #define DMAMUX1_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE)
  2280. #define FMC_Bank1 ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE)
  2281. #define FMC_Bank1E ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE)
  2282. #define FMC_Bank2 ((FMC_Bank2_TypeDef *) FMC_Bank2_R_BASE)
  2283. #define FMC_Bank3 ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE)
  2284. #define FMC_Bank5_6 ((FMC_Bank5_6_TypeDef *) FMC_Bank5_6_R_BASE)
  2285. #define QUADSPI ((QUADSPI_TypeDef *) QSPI_R_BASE)
  2286. #define DLYB_QUADSPI ((DLYB_TypeDef *) DLYB_QSPI_BASE)
  2287. #define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE)
  2288. #define DLYB_SDMMC1 ((DLYB_TypeDef *) DLYB_SDMMC1_BASE)
  2289. #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
  2290. #define JPEG ((JPEG_TypeDef *) JPGDEC_BASE)
  2291. #define HSEM ((HSEM_TypeDef *) HSEM_BASE)
  2292. #define LTDC ((LTDC_TypeDef *)LTDC_BASE)
  2293. #define LTDC_Layer1 ((LTDC_Layer_TypeDef *)LTDC_Layer1_BASE)
  2294. #define LTDC_Layer2 ((LTDC_Layer_TypeDef *)LTDC_Layer2_BASE)
  2295. #define MDIOS ((MDIOS_TypeDef *) MDIOS_BASE)
  2296. #define ETH ((ETH_TypeDef *)ETH_BASE)
  2297. #define MDMA ((MDMA_TypeDef *)MDMA_BASE)
  2298. #define MDMA_Channel0 ((MDMA_Channel_TypeDef *)MDMA_Channel0_BASE)
  2299. #define MDMA_Channel1 ((MDMA_Channel_TypeDef *)MDMA_Channel1_BASE)
  2300. #define MDMA_Channel2 ((MDMA_Channel_TypeDef *)MDMA_Channel2_BASE)
  2301. #define MDMA_Channel3 ((MDMA_Channel_TypeDef *)MDMA_Channel3_BASE)
  2302. #define MDMA_Channel4 ((MDMA_Channel_TypeDef *)MDMA_Channel4_BASE)
  2303. #define MDMA_Channel5 ((MDMA_Channel_TypeDef *)MDMA_Channel5_BASE)
  2304. #define MDMA_Channel6 ((MDMA_Channel_TypeDef *)MDMA_Channel6_BASE)
  2305. #define MDMA_Channel7 ((MDMA_Channel_TypeDef *)MDMA_Channel7_BASE)
  2306. #define MDMA_Channel8 ((MDMA_Channel_TypeDef *)MDMA_Channel8_BASE)
  2307. #define MDMA_Channel9 ((MDMA_Channel_TypeDef *)MDMA_Channel9_BASE)
  2308. #define MDMA_Channel10 ((MDMA_Channel_TypeDef *)MDMA_Channel10_BASE)
  2309. #define MDMA_Channel11 ((MDMA_Channel_TypeDef *)MDMA_Channel11_BASE)
  2310. #define MDMA_Channel12 ((MDMA_Channel_TypeDef *)MDMA_Channel12_BASE)
  2311. #define MDMA_Channel13 ((MDMA_Channel_TypeDef *)MDMA_Channel13_BASE)
  2312. #define MDMA_Channel14 ((MDMA_Channel_TypeDef *)MDMA_Channel14_BASE)
  2313. #define MDMA_Channel15 ((MDMA_Channel_TypeDef *)MDMA_Channel15_BASE)
  2314. #define USB1_OTG_HS ((USB_OTG_GlobalTypeDef *) USB1_OTG_HS_PERIPH_BASE)
  2315. #define USB2_OTG_FS ((USB_OTG_GlobalTypeDef *) USB2_OTG_FS_PERIPH_BASE)
  2316. /* Legacy defines */
  2317. #define USB_OTG_HS USB1_OTG_HS
  2318. #define USB_OTG_FS USB2_OTG_FS
  2319. #define USB_OTG_HS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
  2320. #define USB_OTG_FS_PERIPH_BASE USB2_OTG_FS_PERIPH_BASE
  2321. /**
  2322. * @}
  2323. */
  2324. /** @addtogroup Exported_constants
  2325. * @{
  2326. */
  2327. /** @addtogroup Peripheral_Registers_Bits_Definition
  2328. * @{
  2329. */
  2330. /******************************************************************************/
  2331. /* Peripheral Registers_Bits_Definition */
  2332. /******************************************************************************/
  2333. /******************************************************************************/
  2334. /* */
  2335. /* Analog to Digital Converter */
  2336. /* */
  2337. /******************************************************************************/
  2338. /******************** Bit definition for ADC_ISR register ********************/
  2339. #define ADC_ISR_ADRD_Pos (0U)
  2340. #define ADC_ISR_ADRD_Msk (0x1U << ADC_ISR_ADRD_Pos) /*!< 0x00000001 */
  2341. #define ADC_ISR_ADRD ADC_ISR_ADRD_Msk /*!< ADC Ready (ADRDY) flag */
  2342. #define ADC_ISR_EOSMP_Pos (1U)
  2343. #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
  2344. #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC End of Sampling flag */
  2345. #define ADC_ISR_EOC_Pos (2U)
  2346. #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
  2347. #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC End of Regular Conversion flag */
  2348. #define ADC_ISR_EOS_Pos (3U)
  2349. #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
  2350. #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC End of Regular sequence of Conversions flag */
  2351. #define ADC_ISR_OVR_Pos (4U)
  2352. #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
  2353. #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC overrun flag */
  2354. #define ADC_ISR_JEOC_Pos (5U)
  2355. #define ADC_ISR_JEOC_Msk (0x1U << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
  2356. #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC End of Injected Conversion flag */
  2357. #define ADC_ISR_JEOS_Pos (6U)
  2358. #define ADC_ISR_JEOS_Msk (0x1U << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
  2359. #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC End of Injected sequence of Conversions flag */
  2360. #define ADC_ISR_AWD1_Pos (7U)
  2361. #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
  2362. #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC Analog watchdog 1 flag */
  2363. #define ADC_ISR_AWD2_Pos (8U)
  2364. #define ADC_ISR_AWD2_Msk (0x1U << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
  2365. #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC Analog watchdog 2 flag */
  2366. #define ADC_ISR_AWD3_Pos (9U)
  2367. #define ADC_ISR_AWD3_Msk (0x1U << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
  2368. #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC Analog watchdog 3 flag */
  2369. #define ADC_ISR_JQOVF_Pos (10U)
  2370. #define ADC_ISR_JQOVF_Msk (0x1U << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
  2371. #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC Injected Context Queue Overflow flag */
  2372. /******************** Bit definition for ADC_IER register ********************/
  2373. #define ADC_IER_RDY_Pos (0U)
  2374. #define ADC_IER_RDY_Msk (0x1U << ADC_IER_RDY_Pos) /*!< 0x00000001 */
  2375. #define ADC_IER_RDY ADC_IER_RDY_Msk /*!< ADC Ready (ADRDY) interrupt source */
  2376. #define ADC_IER_EOSMP_Pos (1U)
  2377. #define ADC_IER_EOSMP_Msk (0x1U << ADC_IER_EOSMP_Pos) /*!< 0x00000002 */
  2378. #define ADC_IER_EOSMP ADC_IER_EOSMP_Msk /*!< ADC End of Sampling interrupt source */
  2379. #define ADC_IER_EOC_Pos (2U)
  2380. #define ADC_IER_EOC_Msk (0x1U << ADC_IER_EOC_Pos) /*!< 0x00000004 */
  2381. #define ADC_IER_EOC ADC_IER_EOC_Msk /*!< ADC End of Regular Conversion interrupt source */
  2382. #define ADC_IER_EOS_Pos (3U)
  2383. #define ADC_IER_EOS_Msk (0x1U << ADC_IER_EOS_Pos) /*!< 0x00000008 */
  2384. #define ADC_IER_EOS ADC_IER_EOS_Msk /*!< ADC End of Regular sequence of Conversions interrupt source */
  2385. #define ADC_IER_OVR_Pos (4U)
  2386. #define ADC_IER_OVR_Msk (0x1U << ADC_IER_OVR_Pos) /*!< 0x00000010 */
  2387. #define ADC_IER_OVR ADC_IER_OVR_Msk /*!< ADC overrun interrupt source */
  2388. #define ADC_IER_JEOC_Pos (5U)
  2389. #define ADC_IER_JEOC_Msk (0x1U << ADC_IER_JEOC_Pos) /*!< 0x00000020 */
  2390. #define ADC_IER_JEOC ADC_IER_JEOC_Msk /*!< ADC End of Injected Conversion interrupt source */
  2391. #define ADC_IER_JEOS_Pos (6U)
  2392. #define ADC_IER_JEOS_Msk (0x1U << ADC_IER_JEOS_Pos) /*!< 0x00000040 */
  2393. #define ADC_IER_JEOS ADC_IER_JEOS_Msk /*!< ADC End of Injected sequence of Conversions interrupt source */
  2394. #define ADC_IER_AWD1_Pos (7U)
  2395. #define ADC_IER_AWD1_Msk (0x1U << ADC_IER_AWD1_Pos) /*!< 0x00000080 */
  2396. #define ADC_IER_AWD1 ADC_IER_AWD1_Msk /*!< ADC Analog watchdog 1 interrupt source */
  2397. #define ADC_IER_AWD2_Pos (8U)
  2398. #define ADC_IER_AWD2_Msk (0x1U << ADC_IER_AWD2_Pos) /*!< 0x00000100 */
  2399. #define ADC_IER_AWD2 ADC_IER_AWD2_Msk /*!< ADC Analog watchdog 2 interrupt source */
  2400. #define ADC_IER_AWD3_Pos (9U)
  2401. #define ADC_IER_AWD3_Msk (0x1U << ADC_IER_AWD3_Pos) /*!< 0x00000200 */
  2402. #define ADC_IER_AWD3 ADC_IER_AWD3_Msk /*!< ADC Analog watchdog 3 interrupt source */
  2403. #define ADC_IER_JQOVF_Pos (10U)
  2404. #define ADC_IER_JQOVF_Msk (0x1U << ADC_IER_JQOVF_Pos) /*!< 0x00000400 */
  2405. #define ADC_IER_JQOVF ADC_IER_JQOVF_Msk /*!< ADC Injected Context Queue Overflow interrupt source */
  2406. /******************** Bit definition for ADC_CR register ********************/
  2407. #define ADC_CR_ADEN_Pos (0U)
  2408. #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
  2409. #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC Enable control */
  2410. #define ADC_CR_ADDIS_Pos (1U)
  2411. #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
  2412. #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC Disable command */
  2413. #define ADC_CR_ADSTART_Pos (2U)
  2414. #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
  2415. #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC Start of Regular conversion */
  2416. #define ADC_CR_JADSTART_Pos (3U)
  2417. #define ADC_CR_JADSTART_Msk (0x1U << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
  2418. #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC Start of injected conversion */
  2419. #define ADC_CR_ADSTP_Pos (4U)
  2420. #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
  2421. #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC Stop of Regular conversion */
  2422. #define ADC_CR_JADSTP_Pos (5U)
  2423. #define ADC_CR_JADSTP_Msk (0x1U << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
  2424. #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC Boost Mode */
  2425. #define ADC_CR_BOOST_Pos (8U)
  2426. #define ADC_CR_BOOST_Msk (0x1U << ADC_CR_BOOST_Pos) /*!< 0x00000100 */
  2427. #define ADC_CR_BOOST ADC_CR_BOOST_Msk /*!< ADC Stop of injected conversion */
  2428. #define ADC_CR_ADCALLIN_Pos (16U)
  2429. #define ADC_CR_ADCALLIN_Msk (0x1U << ADC_CR_ADCALLIN_Pos) /*!< 0x00010000 */
  2430. #define ADC_CR_ADCALLIN ADC_CR_ADCALLIN_Msk /*!< ADC Linearity calibration */
  2431. #define ADC_CR_LINCALRDYW1_Pos (22U)
  2432. #define ADC_CR_LINCALRDYW1_Msk (0x1U << ADC_CR_LINCALRDYW1_Pos) /*!< 0x00400000 */
  2433. #define ADC_CR_LINCALRDYW1 ADC_CR_LINCALRDYW1_Msk /*!< ADC Linearity calibration ready Word 1 */
  2434. #define ADC_CR_LINCALRDYW2_Pos (23U)
  2435. #define ADC_CR_LINCALRDYW2_Msk (0x1U << ADC_CR_LINCALRDYW2_Pos) /*!< 0x00800000 */
  2436. #define ADC_CR_LINCALRDYW2 ADC_CR_LINCALRDYW2_Msk /*!< ADC Linearity calibration ready Word 2 */
  2437. #define ADC_CR_LINCALRDYW3_Pos (24U)
  2438. #define ADC_CR_LINCALRDYW3_Msk (0x1U << ADC_CR_LINCALRDYW3_Pos) /*!< 0x01000000 */
  2439. #define ADC_CR_LINCALRDYW3 ADC_CR_LINCALRDYW3_Msk /*!< ADC Linearity calibration ready Word 3 */
  2440. #define ADC_CR_LINCALRDYW4_Pos (25U)
  2441. #define ADC_CR_LINCALRDYW4_Msk (0x1U << ADC_CR_LINCALRDYW4_Pos) /*!< 0x02000000 */
  2442. #define ADC_CR_LINCALRDYW4 ADC_CR_LINCALRDYW4_Msk /*!< ADC Linearity calibration ready Word 4 */
  2443. #define ADC_CR_LINCALRDYW5_Pos (26U)
  2444. #define ADC_CR_LINCALRDYW5_Msk (0x1U << ADC_CR_LINCALRDYW5_Pos) /*!< 0x04000000 */
  2445. #define ADC_CR_LINCALRDYW5 ADC_CR_LINCALRDYW5_Msk /*!< ADC Linearity calibration ready Word 5 */
  2446. #define ADC_CR_LINCALRDYW6_Pos (27U)
  2447. #define ADC_CR_LINCALRDYW6_Msk (0x1U << ADC_CR_LINCALRDYW6_Pos) /*!< 0x08000000 */
  2448. #define ADC_CR_LINCALRDYW6 ADC_CR_LINCALRDYW6_Msk /*!< ADC Linearity calibration ready Word 6 */
  2449. #define ADC_CR_ADVREGEN_Pos (28U)
  2450. #define ADC_CR_ADVREGEN_Msk (0x1U << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
  2451. #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC Voltage regulator Enable */
  2452. #define ADC_CR_DEEPPWD_Pos (29U)
  2453. #define ADC_CR_DEEPPWD_Msk (0x1U << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
  2454. #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC Deep power down Enable */
  2455. #define ADC_CR_ADCALDIF_Pos (30U)
  2456. #define ADC_CR_ADCALDIF_Msk (0x1U << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
  2457. #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC Differential Mode for calibration */
  2458. #define ADC_CR_ADCAL_Pos (31U)
  2459. #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
  2460. #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC Calibration */
  2461. /******************** Bit definition for ADC_CFGR register ********************/
  2462. #define ADC_CFGR_DMNGT_Pos (0U)
  2463. #define ADC_CFGR_DMNGT_Msk (0x3U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000003 */
  2464. #define ADC_CFGR_DMNGT ADC_CFGR_DMNGT_Msk /*!< ADC Data Management configuration */
  2465. #define ADC_CFGR_DMNGT_0 (0x1U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000001 */
  2466. #define ADC_CFGR_DMNGT_1 (0x2U << ADC_CFGR_DMNGT_Pos) /*!< 0x00000002 */
  2467. #define ADC_CFGR_RES_Pos (2U)
  2468. #define ADC_CFGR_RES_Msk (0x7U << ADC_CFGR_RES_Pos) /*!< 0x0000001C */
  2469. #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC Data resolution */
  2470. #define ADC_CFGR_RES_0 (0x1U << ADC_CFGR_RES_Pos) /*!< 0x00000004 */
  2471. #define ADC_CFGR_RES_1 (0x2U << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
  2472. #define ADC_CFGR_RES_2 (0x4U << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
  2473. #define ADC_CFGR_EXTSEL_Pos (5U)
  2474. #define ADC_CFGR_EXTSEL_Msk (0x1FU << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003E0 */
  2475. #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC External trigger selection for regular group */
  2476. #define ADC_CFGR_EXTSEL_0 (0x01U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000020 */
  2477. #define ADC_CFGR_EXTSEL_1 (0x02U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
  2478. #define ADC_CFGR_EXTSEL_2 (0x04U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
  2479. #define ADC_CFGR_EXTSEL_3 (0x08U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
  2480. #define ADC_CFGR_EXTSEL_4 (0x10U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
  2481. #define ADC_CFGR_EXTEN_Pos (10U)
  2482. #define ADC_CFGR_EXTEN_Msk (0x3U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
  2483. #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC External trigger enable and polarity selection for regular channels */
  2484. #define ADC_CFGR_EXTEN_0 (0x1U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
  2485. #define ADC_CFGR_EXTEN_1 (0x2U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
  2486. #define ADC_CFGR_OVRMOD_Pos (12U)
  2487. #define ADC_CFGR_OVRMOD_Msk (0x1U << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
  2488. #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC overrun mode */
  2489. #define ADC_CFGR_CONT_Pos (13U)
  2490. #define ADC_CFGR_CONT_Msk (0x1U << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
  2491. #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC Single/continuous conversion mode for regular conversion */
  2492. #define ADC_CFGR_AUTDLY_Pos (14U)
  2493. #define ADC_CFGR_AUTDLY_Msk (0x1U << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
  2494. #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC Delayed conversion mode */
  2495. #define ADC_CFGR_DISCEN_Pos (16U)
  2496. #define ADC_CFGR_DISCEN_Msk (0x1U << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
  2497. #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC Discontinuous mode for regular channels */
  2498. #define ADC_CFGR_DISCNUM_Pos (17U)
  2499. #define ADC_CFGR_DISCNUM_Msk (0x7U << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
  2500. #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC Discontinuous mode channel count */
  2501. #define ADC_CFGR_DISCNUM_0 (0x1U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
  2502. #define ADC_CFGR_DISCNUM_1 (0x2U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
  2503. #define ADC_CFGR_DISCNUM_2 (0x4U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
  2504. #define ADC_CFGR_JDISCEN_Pos (20U)
  2505. #define ADC_CFGR_JDISCEN_Msk (0x1U << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
  2506. #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC Discontinuous mode on injected channels */
  2507. #define ADC_CFGR_JQM_Pos (21U)
  2508. #define ADC_CFGR_JQM_Msk (0x1U << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
  2509. #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC JSQR Queue mode */
  2510. #define ADC_CFGR_AWD1SGL_Pos (22U)
  2511. #define ADC_CFGR_AWD1SGL_Msk (0x1U << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
  2512. #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< Enable the watchdog 1 on a single channel or on all channels */
  2513. #define ADC_CFGR_AWD1EN_Pos (23U)
  2514. #define ADC_CFGR_AWD1EN_Msk (0x1U << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
  2515. #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC Analog watchdog 1 enable on regular Channels */
  2516. #define ADC_CFGR_JAWD1EN_Pos (24U)
  2517. #define ADC_CFGR_JAWD1EN_Msk (0x1U << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
  2518. #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC Analog watchdog 1 enable on injected Channels */
  2519. #define ADC_CFGR_JAUTO_Pos (25U)
  2520. #define ADC_CFGR_JAUTO_Msk (0x1U << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
  2521. #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC Automatic injected group conversion */
  2522. #define ADC_CFGR_AWD1CH_Pos (26U)
  2523. #define ADC_CFGR_AWD1CH_Msk (0x1FU << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
  2524. #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC Analog watchdog 1 Channel selection */
  2525. #define ADC_CFGR_AWD1CH_0 (0x01U << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
  2526. #define ADC_CFGR_AWD1CH_1 (0x02U << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
  2527. #define ADC_CFGR_AWD1CH_2 (0x04U << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
  2528. #define ADC_CFGR_AWD1CH_3 (0x08U << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
  2529. #define ADC_CFGR_AWD1CH_4 (0x10U << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
  2530. #define ADC_CFGR_JQDIS_Pos (31U)
  2531. #define ADC_CFGR_JQDIS_Msk (0x1U << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
  2532. #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC Injected queue disable */
  2533. /******************** Bit definition for ADC_CFGR2 register ********************/
  2534. #define ADC_CFGR2_ROVSE_Pos (0U)
  2535. #define ADC_CFGR2_ROVSE_Msk (0x1U << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
  2536. #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC Regular group oversampler enable */
  2537. #define ADC_CFGR2_JOVSE_Pos (1U)
  2538. #define ADC_CFGR2_JOVSE_Msk (0x1U << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
  2539. #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC Injected group oversampler enable */
  2540. #define ADC_CFGR2_OVSS_Pos (5U)
  2541. #define ADC_CFGR2_OVSS_Msk (0xFU << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
  2542. #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC Regular Oversampling shift */
  2543. #define ADC_CFGR2_OVSS_0 (0x1U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
  2544. #define ADC_CFGR2_OVSS_1 (0x2U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
  2545. #define ADC_CFGR2_OVSS_2 (0x4U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
  2546. #define ADC_CFGR2_OVSS_3 (0x8U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
  2547. #define ADC_CFGR2_TROVS_Pos (9U)
  2548. #define ADC_CFGR2_TROVS_Msk (0x1U << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
  2549. #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC Triggered regular Oversampling */
  2550. #define ADC_CFGR2_ROVSM_Pos (10U)
  2551. #define ADC_CFGR2_ROVSM_Msk (0x1U << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
  2552. #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC Regular oversampling mode */
  2553. #define ADC_CFGR2_RSHIFT1_Pos (11U)
  2554. #define ADC_CFGR2_RSHIFT1_Msk (0x1U << ADC_CFGR2_RSHIFT1_Pos) /*!< 0x00000800 */
  2555. #define ADC_CFGR2_RSHIFT1 ADC_CFGR2_RSHIFT1_Msk /*!< ADC Right-shift data after Offset 1 correction */
  2556. #define ADC_CFGR2_RSHIFT2_Pos (12U)
  2557. #define ADC_CFGR2_RSHIFT2_Msk (0x1U << ADC_CFGR2_RSHIFT2_Pos) /*!< 0x00001000 */
  2558. #define ADC_CFGR2_RSHIFT2 ADC_CFGR2_RSHIFT2_Msk /*!< ADC Right-shift data after Offset 2 correction */
  2559. #define ADC_CFGR2_RSHIFT3_Pos (13U)
  2560. #define ADC_CFGR2_RSHIFT3_Msk (0x1U << ADC_CFGR2_RSHIFT3_Pos) /*!< 0x00002000 */
  2561. #define ADC_CFGR2_RSHIFT3 ADC_CFGR2_RSHIFT3_Msk /*!< ADC Right-shift data after Offset 3 correction */
  2562. #define ADC_CFGR2_RSHIFT4_Pos (14U)
  2563. #define ADC_CFGR2_RSHIFT4_Msk (0x1U << ADC_CFGR2_RSHIFT4_Pos) /*!< 0x00004000 */
  2564. #define ADC_CFGR2_RSHIFT4 ADC_CFGR2_RSHIFT4_Msk /*!< ADC Right-shift data after Offset 4 correction */
  2565. #define ADC_CFGR2_OSR_Pos (16U)
  2566. #define ADC_CFGR2_OSR_Msk (0x3FFU << ADC_CFGR2_OSR_Pos) /*!< 0x03FF0000 */
  2567. #define ADC_CFGR2_OSR ADC_CFGR2_OSR_Msk /*!< ADC oversampling Ratio */
  2568. #define ADC_CFGR2_OSR_0 (0x001U << ADC_CFGR2_OSR_Pos) /*!< 0x00010000 */
  2569. #define ADC_CFGR2_OSR_1 (0x002U << ADC_CFGR2_OSR_Pos) /*!< 0x00020000 */
  2570. #define ADC_CFGR2_OSR_2 (0x004U << ADC_CFGR2_OSR_Pos) /*!< 0x00040000 */
  2571. #define ADC_CFGR2_OSR_3 (0x008U << ADC_CFGR2_OSR_Pos) /*!< 0x00080000 */
  2572. #define ADC_CFGR2_OSR_4 (0x010U << ADC_CFGR2_OSR_Pos) /*!< 0x00100000 */
  2573. #define ADC_CFGR2_OSR_5 (0x020U << ADC_CFGR2_OSR_Pos) /*!< 0x00200000 */
  2574. #define ADC_CFGR2_OSR_6 (0x040U << ADC_CFGR2_OSR_Pos) /*!< 0x00400000 */
  2575. #define ADC_CFGR2_OSR_7 (0x080U << ADC_CFGR2_OSR_Pos) /*!< 0x00800000 */
  2576. #define ADC_CFGR2_OSR_8 (0x100U << ADC_CFGR2_OSR_Pos) /*!< 0x01000000 */
  2577. #define ADC_CFGR2_OSR_9 (0x200U << ADC_CFGR2_OSR_Pos) /*!< 0x02000000 */
  2578. #define ADC_CFGR2_LSHIFT_Pos (28U)
  2579. #define ADC_CFGR2_LSHIFT_Msk (0xFU << ADC_CFGR2_LSHIFT_Pos) /*!< 0xF0000000 */
  2580. #define ADC_CFGR2_LSHIFT ADC_CFGR2_LSHIFT_Msk /*!< ADC Left shift factor */
  2581. #define ADC_CFGR2_LSHIFT_0 (0x1U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x10000000 */
  2582. #define ADC_CFGR2_LSHIFT_1 (0x2U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x20000000 */
  2583. #define ADC_CFGR2_LSHIFT_2 (0x4U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x40000000 */
  2584. #define ADC_CFGR2_LSHIFT_3 (0x8U << ADC_CFGR2_LSHIFT_Pos) /*!< 0x80000000 */
  2585. /******************** Bit definition for ADC_SMPR1 register ********************/
  2586. #define ADC_SMPR1_SMP0_Pos (0U)
  2587. #define ADC_SMPR1_SMP0_Msk (0x7U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
  2588. #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC Channel 0 Sampling time selection */
  2589. #define ADC_SMPR1_SMP0_0 (0x1U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
  2590. #define ADC_SMPR1_SMP0_1 (0x2U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
  2591. #define ADC_SMPR1_SMP0_2 (0x4U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
  2592. #define ADC_SMPR1_SMP1_Pos (3U)
  2593. #define ADC_SMPR1_SMP1_Msk (0x7U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
  2594. #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC Channel 1 Sampling time selection */
  2595. #define ADC_SMPR1_SMP1_0 (0x1U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
  2596. #define ADC_SMPR1_SMP1_1 (0x2U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
  2597. #define ADC_SMPR1_SMP1_2 (0x4U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
  2598. #define ADC_SMPR1_SMP2_Pos (6U)
  2599. #define ADC_SMPR1_SMP2_Msk (0x7U << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
  2600. #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC Channel 2 Sampling time selection */
  2601. #define ADC_SMPR1_SMP2_0 (0x1U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
  2602. #define ADC_SMPR1_SMP2_1 (0x2U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
  2603. #define ADC_SMPR1_SMP2_2 (0x4U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
  2604. #define ADC_SMPR1_SMP3_Pos (9U)
  2605. #define ADC_SMPR1_SMP3_Msk (0x7U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
  2606. #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC Channel 3 Sampling time selection */
  2607. #define ADC_SMPR1_SMP3_0 (0x1U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
  2608. #define ADC_SMPR1_SMP3_1 (0x2U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
  2609. #define ADC_SMPR1_SMP3_2 (0x4U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
  2610. #define ADC_SMPR1_SMP4_Pos (12U)
  2611. #define ADC_SMPR1_SMP4_Msk (0x7U << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
  2612. #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC Channel 4 Sampling time selection */
  2613. #define ADC_SMPR1_SMP4_0 (0x1U << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
  2614. #define ADC_SMPR1_SMP4_1 (0x2U << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
  2615. #define ADC_SMPR1_SMP4_2 (0x4U << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
  2616. #define ADC_SMPR1_SMP5_Pos (15U)
  2617. #define ADC_SMPR1_SMP5_Msk (0x7U << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
  2618. #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC Channel 5 Sampling time selection */
  2619. #define ADC_SMPR1_SMP5_0 (0x1U << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
  2620. #define ADC_SMPR1_SMP5_1 (0x2U << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
  2621. #define ADC_SMPR1_SMP5_2 (0x4U << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
  2622. #define ADC_SMPR1_SMP6_Pos (18U)
  2623. #define ADC_SMPR1_SMP6_Msk (0x7U << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
  2624. #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC Channel 6 Sampling time selection */
  2625. #define ADC_SMPR1_SMP6_0 (0x1U << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
  2626. #define ADC_SMPR1_SMP6_1 (0x2U << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
  2627. #define ADC_SMPR1_SMP6_2 (0x4U << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
  2628. #define ADC_SMPR1_SMP7_Pos (21U)
  2629. #define ADC_SMPR1_SMP7_Msk (0x7U << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
  2630. #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC Channel 7 Sampling time selection */
  2631. #define ADC_SMPR1_SMP7_0 (0x1U << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
  2632. #define ADC_SMPR1_SMP7_1 (0x2U << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
  2633. #define ADC_SMPR1_SMP7_2 (0x4U << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
  2634. #define ADC_SMPR1_SMP8_Pos (24U)
  2635. #define ADC_SMPR1_SMP8_Msk (0x7U << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
  2636. #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC Channel 8 Sampling time selection */
  2637. #define ADC_SMPR1_SMP8_0 (0x1U << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
  2638. #define ADC_SMPR1_SMP8_1 (0x2U << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
  2639. #define ADC_SMPR1_SMP8_2 (0x4U << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
  2640. #define ADC_SMPR1_SMP9_Pos (27U)
  2641. #define ADC_SMPR1_SMP9_Msk (0x7U << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
  2642. #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC Channel 9 Sampling time selection */
  2643. #define ADC_SMPR1_SMP9_0 (0x1U << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
  2644. #define ADC_SMPR1_SMP9_1 (0x2U << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
  2645. #define ADC_SMPR1_SMP9_2 (0x4U << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
  2646. /******************** Bit definition for ADC_SMPR2 register ********************/
  2647. #define ADC_SMPR2_SMP10_Pos (0U)
  2648. #define ADC_SMPR2_SMP10_Msk (0x7U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
  2649. #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC Channel 10 Sampling time selection */
  2650. #define ADC_SMPR2_SMP10_0 (0x1U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
  2651. #define ADC_SMPR2_SMP10_1 (0x2U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
  2652. #define ADC_SMPR2_SMP10_2 (0x4U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
  2653. #define ADC_SMPR2_SMP11_Pos (3U)
  2654. #define ADC_SMPR2_SMP11_Msk (0x7U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
  2655. #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC Channel 11 Sampling time selection */
  2656. #define ADC_SMPR2_SMP11_0 (0x1U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
  2657. #define ADC_SMPR2_SMP11_1 (0x2U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
  2658. #define ADC_SMPR2_SMP11_2 (0x4U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
  2659. #define ADC_SMPR2_SMP12_Pos (6U)
  2660. #define ADC_SMPR2_SMP12_Msk (0x7U << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
  2661. #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC Channel 12 Sampling time selection */
  2662. #define ADC_SMPR2_SMP12_0 (0x1U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
  2663. #define ADC_SMPR2_SMP12_1 (0x2U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
  2664. #define ADC_SMPR2_SMP12_2 (0x4U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
  2665. #define ADC_SMPR2_SMP13_Pos (9U)
  2666. #define ADC_SMPR2_SMP13_Msk (0x7U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
  2667. #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC Channel 13 Sampling time selection */
  2668. #define ADC_SMPR2_SMP13_0 (0x1U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
  2669. #define ADC_SMPR2_SMP13_1 (0x2U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
  2670. #define ADC_SMPR2_SMP13_2 (0x4U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
  2671. #define ADC_SMPR2_SMP14_Pos (12U)
  2672. #define ADC_SMPR2_SMP14_Msk (0x7U << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
  2673. #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC Channel 14 Sampling time selection */
  2674. #define ADC_SMPR2_SMP14_0 (0x1U << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
  2675. #define ADC_SMPR2_SMP14_1 (0x2U << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
  2676. #define ADC_SMPR2_SMP14_2 (0x4U << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
  2677. #define ADC_SMPR2_SMP15_Pos (15U)
  2678. #define ADC_SMPR2_SMP15_Msk (0x7U << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
  2679. #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC Channel 15 Sampling time selection */
  2680. #define ADC_SMPR2_SMP15_0 (0x1U << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
  2681. #define ADC_SMPR2_SMP15_1 (0x2U << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
  2682. #define ADC_SMPR2_SMP15_2 (0x4U << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
  2683. #define ADC_SMPR2_SMP16_Pos (18U)
  2684. #define ADC_SMPR2_SMP16_Msk (0x7U << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
  2685. #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC Channel 16 Sampling time selection */
  2686. #define ADC_SMPR2_SMP16_0 (0x1U << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
  2687. #define ADC_SMPR2_SMP16_1 (0x2U << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
  2688. #define ADC_SMPR2_SMP16_2 (0x4U << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
  2689. #define ADC_SMPR2_SMP17_Pos (21U)
  2690. #define ADC_SMPR2_SMP17_Msk (0x7U << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
  2691. #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC Channel 17 Sampling time selection */
  2692. #define ADC_SMPR2_SMP17_0 (0x1U << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
  2693. #define ADC_SMPR2_SMP17_1 (0x2U << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
  2694. #define ADC_SMPR2_SMP17_2 (0x4U << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
  2695. #define ADC_SMPR2_SMP18_Pos (24U)
  2696. #define ADC_SMPR2_SMP18_Msk (0x7U << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
  2697. #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC Channel 18 Sampling time selection */
  2698. #define ADC_SMPR2_SMP18_0 (0x1U << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
  2699. #define ADC_SMPR2_SMP18_1 (0x2U << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
  2700. #define ADC_SMPR2_SMP18_2 (0x4U << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
  2701. #define ADC_SMPR2_SMP19_Pos (27U)
  2702. #define ADC_SMPR2_SMP19_Msk (0x7U << ADC_SMPR2_SMP19_Pos) /*!< 0x38000000 */
  2703. #define ADC_SMPR2_SMP19 ADC_SMPR2_SMP19_Msk /*!< ADC Channel 19 Sampling time selection */
  2704. #define ADC_SMPR2_SMP19_0 (0x1U << ADC_SMPR2_SMP19_Pos) /*!< 0x08000000 */
  2705. #define ADC_SMPR2_SMP19_1 (0x2U << ADC_SMPR2_SMP19_Pos) /*!< 0x10000000 */
  2706. #define ADC_SMPR2_SMP19_2 (0x4U << ADC_SMPR2_SMP19_Pos) /*!< 0x20000000 */
  2707. /******************** Bit definition for ADC_PCSEL register ********************/
  2708. #define ADC_PCSEL_PCSEL_Pos (0U)
  2709. #define ADC_PCSEL_PCSEL_Msk (0xFFFFFU << ADC_PCSEL_PCSEL_Pos) /*!< 0x000FFFFF */
  2710. #define ADC_PCSEL_PCSEL ADC_PCSEL_PCSEL_Msk /*!< ADC pre channel selection */
  2711. #define ADC_PCSEL_PCSEL_0 (0x00001U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000001 */
  2712. #define ADC_PCSEL_PCSEL_1 (0x00002U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000002 */
  2713. #define ADC_PCSEL_PCSEL_2 (0x00004U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000004 */
  2714. #define ADC_PCSEL_PCSEL_3 (0x00008U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000008 */
  2715. #define ADC_PCSEL_PCSEL_4 (0x00010U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000010 */
  2716. #define ADC_PCSEL_PCSEL_5 (0x00020U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000020 */
  2717. #define ADC_PCSEL_PCSEL_6 (0x00040U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000040 */
  2718. #define ADC_PCSEL_PCSEL_7 (0x00080U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000080 */
  2719. #define ADC_PCSEL_PCSEL_8 (0x00100U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000100 */
  2720. #define ADC_PCSEL_PCSEL_9 (0x00200U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000200 */
  2721. #define ADC_PCSEL_PCSEL_10 (0x00400U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000400 */
  2722. #define ADC_PCSEL_PCSEL_11 (0x00800U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000800 */
  2723. #define ADC_PCSEL_PCSEL_12 (0x01000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00001000 */
  2724. #define ADC_PCSEL_PCSEL_13 (0x02000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00002000 */
  2725. #define ADC_PCSEL_PCSEL_14 (0x04000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00004000 */
  2726. #define ADC_PCSEL_PCSEL_15 (0x08000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00008000 */
  2727. #define ADC_PCSEL_PCSEL_16 (0x10000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00010000 */
  2728. #define ADC_PCSEL_PCSEL_17 (0x20000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00020000 */
  2729. #define ADC_PCSEL_PCSEL_18 (0x40000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00040000 */
  2730. #define ADC_PCSEL_PCSEL_19 (0x80000U << ADC_PCSEL_PCSEL_Pos) /*!< 0x00080000 */
  2731. /******************** Bit definition for ADC_LTR1 register ********************/
  2732. #define ADC_LTR1_LT1_Pos (0U)
  2733. #define ADC_LTR1_LT1_Msk (0x3FFFFFFU << ADC_LTR1_LT1_Pos) /*!< 0x03FFFFFF */
  2734. #define ADC_LTR1_LT1 ADC_LTR1_LT1_Msk /*!< ADC Analog watchdog 1 lower threshold */
  2735. #define ADC_LTR1_LT1_0 (0x0000001U << ADC_LTR1_LT1_Pos) /*!< 0x00000001 */
  2736. #define ADC_LTR1_LT1_1 (0x0000002U << ADC_LTR1_LT1_Pos) /*!< 0x00000002 */
  2737. #define ADC_LTR1_LT1_2 (0x0000004U << ADC_LTR1_LT1_Pos) /*!< 0x00000004 */
  2738. #define ADC_LTR1_LT1_3 (0x0000008U << ADC_LTR1_LT1_Pos) /*!< 0x00000008 */
  2739. #define ADC_LTR1_LT1_4 (0x0000010U << ADC_LTR1_LT1_Pos) /*!< 0x00000010 */
  2740. #define ADC_LTR1_LT1_5 (0x0000020U << ADC_LTR1_LT1_Pos) /*!< 0x00000020 */
  2741. #define ADC_LTR1_LT1_6 (0x0000040U << ADC_LTR1_LT1_Pos) /*!< 0x00000040 */
  2742. #define ADC_LTR1_LT1_7 (0x0000080U << ADC_LTR1_LT1_Pos) /*!< 0x00000080 */
  2743. #define ADC_LTR1_LT1_8 (0x0000100U << ADC_LTR1_LT1_Pos) /*!< 0x00000100 */
  2744. #define ADC_LTR1_LT1_9 (0x0000200U << ADC_LTR1_LT1_Pos) /*!< 0x00000200 */
  2745. #define ADC_LTR1_LT1_10 (0x0000400U << ADC_LTR1_LT1_Pos) /*!< 0x00000400 */
  2746. #define ADC_LTR1_LT1_11 (0x0000800U << ADC_LTR1_LT1_Pos) /*!< 0x00000800 */
  2747. #define ADC_LTR1_LT1_12 (0x0001000U << ADC_LTR1_LT1_Pos) /*!< 0x00001000 */
  2748. #define ADC_LTR1_LT1_13 (0x0002000U << ADC_LTR1_LT1_Pos) /*!< 0x00002000 */
  2749. #define ADC_LTR1_LT1_14 (0x0004000U << ADC_LTR1_LT1_Pos) /*!< 0x00004000 */
  2750. #define ADC_LTR1_LT1_15 (0x0008000U << ADC_LTR1_LT1_Pos) /*!< 0x00008000 */
  2751. #define ADC_LTR1_LT1_16 (0x0010000U << ADC_LTR1_LT1_Pos) /*!< 0x00010000 */
  2752. #define ADC_LTR1_LT1_17 (0x0020000U << ADC_LTR1_LT1_Pos) /*!< 0x00020000 */
  2753. #define ADC_LTR1_LT1_18 (0x0040000U << ADC_LTR1_LT1_Pos) /*!< 0x00040000 */
  2754. #define ADC_LTR1_LT1_19 (0x0080000U << ADC_LTR1_LT1_Pos) /*!< 0x00080000 */
  2755. #define ADC_LTR1_LT1_20 (0x0100000U << ADC_LTR1_LT1_Pos) /*!< 0x00100000 */
  2756. #define ADC_LTR1_LT1_21 (0x0200000U << ADC_LTR1_LT1_Pos) /*!< 0x00200000 */
  2757. #define ADC_LTR1_LT1_22 (0x0400000U << ADC_LTR1_LT1_Pos) /*!< 0x00400000 */
  2758. #define ADC_LTR1_LT1_23 (0x0800000U << ADC_LTR1_LT1_Pos) /*!< 0x00800000 */
  2759. #define ADC_LTR1_LT1_24 (0x1000000U << ADC_LTR1_LT1_Pos) /*!< 0x01000000 */
  2760. #define ADC_LTR1_LT1_25 (0x2000000U << ADC_LTR1_LT1_Pos) /*!< 0x02000000 */
  2761. /******************** Bit definition for ADC_HTR1 register ********************/
  2762. #define ADC_HTR1_HT1_Pos (0U)
  2763. #define ADC_HTR1_HT1_Msk (0x3FFFFFFU << ADC_HTR1_HT1_Pos) /*!< 0x03FFFFFF */
  2764. #define ADC_HTR1_HT1 ADC_HTR1_HT1_Msk /*!< ADC Analog watchdog 1 higher threshold */
  2765. #define ADC_HTR1_HT1_0 (0x0000001U << ADC_HTR1_HT1_Pos) /*!< 0x00000001 */
  2766. #define ADC_HTR1_HT1_1 (0x0000002U << ADC_HTR1_HT1_Pos) /*!< 0x00000002 */
  2767. #define ADC_HTR1_HT1_2 (0x0000004U << ADC_HTR1_HT1_Pos) /*!< 0x00000004 */
  2768. #define ADC_HTR1_HT1_3 (0x0000008U << ADC_HTR1_HT1_Pos) /*!< 0x00000008 */
  2769. #define ADC_HTR1_HT1_4 (0x0000010U << ADC_HTR1_HT1_Pos) /*!< 0x00000010 */
  2770. #define ADC_HTR1_HT1_5 (0x0000020U << ADC_HTR1_HT1_Pos) /*!< 0x00000020 */
  2771. #define ADC_HTR1_HT1_6 (0x0000040U << ADC_HTR1_HT1_Pos) /*!< 0x00000040 */
  2772. #define ADC_HTR1_HT1_7 (0x0000080U << ADC_HTR1_HT1_Pos) /*!< 0x00000080 */
  2773. #define ADC_HTR1_HT1_8 (0x0000100U << ADC_HTR1_HT1_Pos) /*!< 0x00000100 */
  2774. #define ADC_HTR1_HT1_9 (0x0000200U << ADC_HTR1_HT1_Pos) /*!< 0x00000200 */
  2775. #define ADC_HTR1_HT1_10 (0x0000400U << ADC_HTR1_HT1_Pos) /*!< 0x00000400 */
  2776. #define ADC_HTR1_HT1_11 (0x0000800U << ADC_HTR1_HT1_Pos) /*!< 0x00000800 */
  2777. #define ADC_HTR1_HT1_12 (0x0001000U << ADC_HTR1_HT1_Pos) /*!< 0x00001000 */
  2778. #define ADC_HTR1_HT1_13 (0x0002000U << ADC_HTR1_HT1_Pos) /*!< 0x00002000 */
  2779. #define ADC_HTR1_HT1_14 (0x0004000U << ADC_HTR1_HT1_Pos) /*!< 0x00004000 */
  2780. #define ADC_HTR1_HT1_15 (0x0008000U << ADC_HTR1_HT1_Pos) /*!< 0x00008000 */
  2781. #define ADC_HTR1_HT1_16 (0x0010000U << ADC_HTR1_HT1_Pos) /*!< 0x00010000 */
  2782. #define ADC_HTR1_HT1_17 (0x0020000U << ADC_HTR1_HT1_Pos) /*!< 0x00020000 */
  2783. #define ADC_HTR1_HT1_18 (0x0040000U << ADC_HTR1_HT1_Pos) /*!< 0x00040000 */
  2784. #define ADC_HTR1_HT1_19 (0x0080000U << ADC_HTR1_HT1_Pos) /*!< 0x00080000 */
  2785. #define ADC_HTR1_HT1_20 (0x0100000U << ADC_HTR1_HT1_Pos) /*!< 0x00100000 */
  2786. #define ADC_HTR1_HT1_21 (0x0200000U << ADC_HTR1_HT1_Pos) /*!< 0x00200000 */
  2787. #define ADC_HTR1_HT1_22 (0x0400000U << ADC_HTR1_HT1_Pos) /*!< 0x00400000 */
  2788. #define ADC_HTR1_HT1_23 (0x0800000U << ADC_HTR1_HT1_Pos) /*!< 0x00800000 */
  2789. #define ADC_HTR1_HT1_24 (0x1000000U << ADC_HTR1_HT1_Pos) /*!< 0x01000000 */
  2790. #define ADC_HTR1_HT1_25 (0x2000000U << ADC_HTR1_HT1_Pos) /*!< 0x02000000 */
  2791. /******************** Bit definition for ADC_LTR2 register ********************/
  2792. #define ADC_LTR2_LT2_Pos (0U)
  2793. #define ADC_LTR2_LT2_Msk (0x3FFFFFFU << ADC_LTR2_LT2_Pos) /*!< 0x03FFFFFF */
  2794. #define ADC_LTR2_LT2 ADC_LTR2_LT2_Msk /*!< ADC Analog watchdog 2 lower threshold */
  2795. #define ADC_LTR2_LT2_0 (0x0000001U << ADC_LTR2_LT2_Pos) /*!< 0x00000001 */
  2796. #define ADC_LTR2_LT2_1 (0x0000002U << ADC_LTR2_LT2_Pos) /*!< 0x00000002 */
  2797. #define ADC_LTR2_LT2_2 (0x0000004U << ADC_LTR2_LT2_Pos) /*!< 0x00000004 */
  2798. #define ADC_LTR2_LT2_3 (0x0000008U << ADC_LTR2_LT2_Pos) /*!< 0x00000008 */
  2799. #define ADC_LTR2_LT2_4 (0x0000010U << ADC_LTR2_LT2_Pos) /*!< 0x00000010 */
  2800. #define ADC_LTR2_LT2_5 (0x0000020U << ADC_LTR2_LT2_Pos) /*!< 0x00000020 */
  2801. #define ADC_LTR2_LT2_6 (0x0000040U << ADC_LTR2_LT2_Pos) /*!< 0x00000040 */
  2802. #define ADC_LTR2_LT2_7 (0x0000080U << ADC_LTR2_LT2_Pos) /*!< 0x00000080 */
  2803. #define ADC_LTR2_LT2_8 (0x0000100U << ADC_LTR2_LT2_Pos) /*!< 0x00000100 */
  2804. #define ADC_LTR2_LT2_9 (0x0000200U << ADC_LTR2_LT2_Pos) /*!< 0x00000200 */
  2805. #define ADC_LTR2_LT2_10 (0x0000400U << ADC_LTR2_LT2_Pos) /*!< 0x00000400 */
  2806. #define ADC_LTR2_LT2_11 (0x0000800U << ADC_LTR2_LT2_Pos) /*!< 0x00000800 */
  2807. #define ADC_LTR2_LT2_12 (0x0001000U << ADC_LTR2_LT2_Pos) /*!< 0x00001000 */
  2808. #define ADC_LTR2_LT2_13 (0x0002000U << ADC_LTR2_LT2_Pos) /*!< 0x00002000 */
  2809. #define ADC_LTR2_LT2_14 (0x0004000U << ADC_LTR2_LT2_Pos) /*!< 0x00004000 */
  2810. #define ADC_LTR2_LT2_15 (0x0008000U << ADC_LTR2_LT2_Pos) /*!< 0x00008000 */
  2811. #define ADC_LTR2_LT2_16 (0x0010000U << ADC_LTR2_LT2_Pos) /*!< 0x00010000 */
  2812. #define ADC_LTR2_LT2_17 (0x0020000U << ADC_LTR2_LT2_Pos) /*!< 0x00020000 */
  2813. #define ADC_LTR2_LT2_18 (0x0040000U << ADC_LTR2_LT2_Pos) /*!< 0x00040000 */
  2814. #define ADC_LTR2_LT2_19 (0x0080000U << ADC_LTR2_LT2_Pos) /*!< 0x00080000 */
  2815. #define ADC_LTR2_LT2_20 (0x0100000U << ADC_LTR2_LT2_Pos) /*!< 0x00100000 */
  2816. #define ADC_LTR2_LT2_21 (0x0200000U << ADC_LTR2_LT2_Pos) /*!< 0x00200000 */
  2817. #define ADC_LTR2_LT2_22 (0x0400000U << ADC_LTR2_LT2_Pos) /*!< 0x00400000 */
  2818. #define ADC_LTR2_LT2_23 (0x0800000U << ADC_LTR2_LT2_Pos) /*!< 0x00800000 */
  2819. #define ADC_LTR2_LT2_24 (0x1000000U << ADC_LTR2_LT2_Pos) /*!< 0x01000000 */
  2820. #define ADC_LTR2_LT2_25 (0x2000000U << ADC_LTR2_LT2_Pos) /*!< 0x02000000 */
  2821. /******************** Bit definition for ADC_HTR2 register ********************/
  2822. #define ADC_HTR2_HT2_Pos (0U)
  2823. #define ADC_HTR2_HT2_Msk (0x3FFFFFFU << ADC_HTR2_HT2_Pos) /*!< 0x03FFFFFF */
  2824. #define ADC_HTR2_HT2 ADC_HTR2_HT2_Msk /*!< ADC Analog watchdog 2 higher threshold */
  2825. #define ADC_HTR2_HT2_0 (0x0000001U << ADC_HTR2_HT2_Pos) /*!< 0x00000001 */
  2826. #define ADC_HTR2_HT2_1 (0x0000002U << ADC_HTR2_HT2_Pos) /*!< 0x00000002 */
  2827. #define ADC_HTR2_HT2_2 (0x0000004U << ADC_HTR2_HT2_Pos) /*!< 0x00000004 */
  2828. #define ADC_HTR2_HT2_3 (0x0000008U << ADC_HTR2_HT2_Pos) /*!< 0x00000008 */
  2829. #define ADC_HTR2_HT2_4 (0x0000010U << ADC_HTR2_HT2_Pos) /*!< 0x00000010 */
  2830. #define ADC_HTR2_HT2_5 (0x0000020U << ADC_HTR2_HT2_Pos) /*!< 0x00000020 */
  2831. #define ADC_HTR2_HT2_6 (0x0000040U << ADC_HTR2_HT2_Pos) /*!< 0x00000040 */
  2832. #define ADC_HTR2_HT2_7 (0x0000080U << ADC_HTR2_HT2_Pos) /*!< 0x00000080 */
  2833. #define ADC_HTR2_HT2_8 (0x0000100U << ADC_HTR2_HT2_Pos) /*!< 0x00000100 */
  2834. #define ADC_HTR2_HT2_9 (0x0000200U << ADC_HTR2_HT2_Pos) /*!< 0x00000200 */
  2835. #define ADC_HTR2_HT2_10 (0x0000400U << ADC_HTR2_HT2_Pos) /*!< 0x00000400 */
  2836. #define ADC_HTR2_HT2_11 (0x0000800U << ADC_HTR2_HT2_Pos) /*!< 0x00000800 */
  2837. #define ADC_HTR2_HT2_12 (0x0001000U << ADC_HTR2_HT2_Pos) /*!< 0x00001000 */
  2838. #define ADC_HTR2_HT2_13 (0x0002000U << ADC_HTR2_HT2_Pos) /*!< 0x00002000 */
  2839. #define ADC_HTR2_HT2_14 (0x0004000U << ADC_HTR2_HT2_Pos) /*!< 0x00004000 */
  2840. #define ADC_HTR2_HT2_15 (0x0008000U << ADC_HTR2_HT2_Pos) /*!< 0x00008000 */
  2841. #define ADC_HTR2_HT2_16 (0x0010000U << ADC_HTR2_HT2_Pos) /*!< 0x00010000 */
  2842. #define ADC_HTR2_HT2_17 (0x0020000U << ADC_HTR2_HT2_Pos) /*!< 0x00020000 */
  2843. #define ADC_HTR2_HT2_18 (0x0040000U << ADC_HTR2_HT2_Pos) /*!< 0x00040000 */
  2844. #define ADC_HTR2_HT2_19 (0x0080000U << ADC_HTR2_HT2_Pos) /*!< 0x00080000 */
  2845. #define ADC_HTR2_HT2_20 (0x0100000U << ADC_HTR2_HT2_Pos) /*!< 0x00100000 */
  2846. #define ADC_HTR2_HT2_21 (0x0200000U << ADC_HTR2_HT2_Pos) /*!< 0x00200000 */
  2847. #define ADC_HTR2_HT2_22 (0x0400000U << ADC_HTR2_HT2_Pos) /*!< 0x00400000 */
  2848. #define ADC_HTR2_HT2_23 (0x0800000U << ADC_HTR2_HT2_Pos) /*!< 0x00800000 */
  2849. #define ADC_HTR2_HT2_24 (0x1000000U << ADC_HTR2_HT2_Pos) /*!< 0x01000000 */
  2850. #define ADC_HTR2_HT2_25 (0x2000000U << ADC_HTR2_HT2_Pos) /*!< 0x02000000 */
  2851. /******************** Bit definition for ADC_LTR3 register ********************/
  2852. #define ADC_LTR3_LT3_Pos (0U)
  2853. #define ADC_LTR3_LT3_Msk (0x3FFFFFFU << ADC_LTR3_LT3_Pos) /*!< 0x03FFFFFF */
  2854. #define ADC_LTR3_LT3 ADC_LTR3_LT3_Msk /*!< ADC Analog watchdog 3 lower threshold */
  2855. #define ADC_LTR3_LT3_0 (0x0000001U << ADC_LTR3_LT3_Pos) /*!< 0x00000001 */
  2856. #define ADC_LTR3_LT3_1 (0x0000002U << ADC_LTR3_LT3_Pos) /*!< 0x00000002 */
  2857. #define ADC_LTR3_LT3_2 (0x0000004U << ADC_LTR3_LT3_Pos) /*!< 0x00000004 */
  2858. #define ADC_LTR3_LT3_3 (0x0000008U << ADC_LTR3_LT3_Pos) /*!< 0x00000008 */
  2859. #define ADC_LTR3_LT3_4 (0x0000010U << ADC_LTR3_LT3_Pos) /*!< 0x00000010 */
  2860. #define ADC_LTR3_LT3_5 (0x0000020U << ADC_LTR3_LT3_Pos) /*!< 0x00000020 */
  2861. #define ADC_LTR3_LT3_6 (0x0000040U << ADC_LTR3_LT3_Pos) /*!< 0x00000040 */
  2862. #define ADC_LTR3_LT3_7 (0x0000080U << ADC_LTR3_LT3_Pos) /*!< 0x00000080 */
  2863. #define ADC_LTR3_LT3_8 (0x0000100U << ADC_LTR3_LT3_Pos) /*!< 0x00000100 */
  2864. #define ADC_LTR3_LT3_9 (0x0000200U << ADC_LTR3_LT3_Pos) /*!< 0x00000200 */
  2865. #define ADC_LTR3_LT3_10 (0x0000400U << ADC_LTR3_LT3_Pos) /*!< 0x00000400 */
  2866. #define ADC_LTR3_LT3_11 (0x0000800U << ADC_LTR3_LT3_Pos) /*!< 0x00000800 */
  2867. #define ADC_LTR3_LT3_12 (0x0001000U << ADC_LTR3_LT3_Pos) /*!< 0x00001000 */
  2868. #define ADC_LTR3_LT3_13 (0x0002000U << ADC_LTR3_LT3_Pos) /*!< 0x00002000 */
  2869. #define ADC_LTR3_LT3_14 (0x0004000U << ADC_LTR3_LT3_Pos) /*!< 0x00004000 */
  2870. #define ADC_LTR3_LT3_15 (0x0008000U << ADC_LTR3_LT3_Pos) /*!< 0x00008000 */
  2871. #define ADC_LTR3_LT3_16 (0x0010000U << ADC_LTR3_LT3_Pos) /*!< 0x00010000 */
  2872. #define ADC_LTR3_LT3_17 (0x0020000U << ADC_LTR3_LT3_Pos) /*!< 0x00020000 */
  2873. #define ADC_LTR3_LT3_18 (0x0040000U << ADC_LTR3_LT3_Pos) /*!< 0x00040000 */
  2874. #define ADC_LTR3_LT3_19 (0x0080000U << ADC_LTR3_LT3_Pos) /*!< 0x00080000 */
  2875. #define ADC_LTR3_LT3_20 (0x0100000U << ADC_LTR3_LT3_Pos) /*!< 0x00100000 */
  2876. #define ADC_LTR3_LT3_21 (0x0200000U << ADC_LTR3_LT3_Pos) /*!< 0x00200000 */
  2877. #define ADC_LTR3_LT3_22 (0x0400000U << ADC_LTR3_LT3_Pos) /*!< 0x00400000 */
  2878. #define ADC_LTR3_LT3_23 (0x0800000U << ADC_LTR3_LT3_Pos) /*!< 0x00800000 */
  2879. #define ADC_LTR3_LT3_24 (0x1000000U << ADC_LTR3_LT3_Pos) /*!< 0x01000000 */
  2880. #define ADC_LTR3_LT3_25 (0x2000000U << ADC_LTR3_LT3_Pos) /*!< 0x02000000 */
  2881. /******************** Bit definition for ADC_HTR3 register ********************/
  2882. #define ADC_HTR3_HT3_Pos (0U)
  2883. #define ADC_HTR3_HT3_Msk (0x3FFFFFFU << ADC_HTR3_HT3_Pos) /*!< 0x03FFFFFF */
  2884. #define ADC_HTR3_HT3 ADC_HTR3_HT3_Msk /*!< ADC Analog watchdog 3 higher threshold */
  2885. #define ADC_HTR3_HT3_0 (0x0000001U << ADC_HTR3_HT3_Pos) /*!< 0x00000001 */
  2886. #define ADC_HTR3_HT3_1 (0x0000002U << ADC_HTR3_HT3_Pos) /*!< 0x00000002 */
  2887. #define ADC_HTR3_HT3_2 (0x0000004U << ADC_HTR3_HT3_Pos) /*!< 0x00000004 */
  2888. #define ADC_HTR3_HT3_3 (0x0000008U << ADC_HTR3_HT3_Pos) /*!< 0x00000008 */
  2889. #define ADC_HTR3_HT3_4 (0x0000010U << ADC_HTR3_HT3_Pos) /*!< 0x00000010 */
  2890. #define ADC_HTR3_HT3_5 (0x0000020U << ADC_HTR3_HT3_Pos) /*!< 0x00000020 */
  2891. #define ADC_HTR3_HT3_6 (0x0000040U << ADC_HTR3_HT3_Pos) /*!< 0x00000040 */
  2892. #define ADC_HTR3_HT3_7 (0x0000080U << ADC_HTR3_HT3_Pos) /*!< 0x00000080 */
  2893. #define ADC_HTR3_HT3_8 (0x0000100U << ADC_HTR3_HT3_Pos) /*!< 0x00000100 */
  2894. #define ADC_HTR3_HT3_9 (0x0000200U << ADC_HTR3_HT3_Pos) /*!< 0x00000200 */
  2895. #define ADC_HTR3_HT3_10 (0x0000400U << ADC_HTR3_HT3_Pos) /*!< 0x00000400 */
  2896. #define ADC_HTR3_HT3_11 (0x0000800U << ADC_HTR3_HT3_Pos) /*!< 0x00000800 */
  2897. #define ADC_HTR3_HT3_12 (0x0001000U << ADC_HTR3_HT3_Pos) /*!< 0x00001000 */
  2898. #define ADC_HTR3_HT3_13 (0x0002000U << ADC_HTR3_HT3_Pos) /*!< 0x00002000 */
  2899. #define ADC_HTR3_HT3_14 (0x0004000U << ADC_HTR3_HT3_Pos) /*!< 0x00004000 */
  2900. #define ADC_HTR3_HT3_15 (0x0008000U << ADC_HTR3_HT3_Pos) /*!< 0x00008000 */
  2901. #define ADC_HTR3_HT3_16 (0x0010000U << ADC_HTR3_HT3_Pos) /*!< 0x00010000 */
  2902. #define ADC_HTR3_HT3_17 (0x0020000U << ADC_HTR3_HT3_Pos) /*!< 0x00020000 */
  2903. #define ADC_HTR3_HT3_18 (0x0040000U << ADC_HTR3_HT3_Pos) /*!< 0x00040000 */
  2904. #define ADC_HTR3_HT3_19 (0x0080000U << ADC_HTR3_HT3_Pos) /*!< 0x00080000 */
  2905. #define ADC_HTR3_HT3_20 (0x0100000U << ADC_HTR3_HT3_Pos) /*!< 0x00100000 */
  2906. #define ADC_HTR3_HT3_21 (0x0200000U << ADC_HTR3_HT3_Pos) /*!< 0x00200000 */
  2907. #define ADC_HTR3_HT3_22 (0x0400000U << ADC_HTR3_HT3_Pos) /*!< 0x00400000 */
  2908. #define ADC_HTR3_HT3_23 (0x0800000U << ADC_HTR3_HT3_Pos) /*!< 0x00800000 */
  2909. #define ADC_HTR3_HT3_24 (0x1000000U << ADC_HTR3_HT3_Pos) /*!< 0x01000000 */
  2910. #define ADC_HTR3_HT3_25 (0x2000000U << ADC_HTR3_HT3_Pos) /*!< 0x02000000 */
  2911. /******************** Bit definition for ADC_SQR1 register ********************/
  2912. #define ADC_SQR1_L_Pos (0U)
  2913. #define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x0000000F */
  2914. #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC regular channel sequence lenght */
  2915. #define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00000001 */
  2916. #define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00000002 */
  2917. #define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00000004 */
  2918. #define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00000008 */
  2919. #define ADC_SQR1_SQ1_Pos (6U)
  2920. #define ADC_SQR1_SQ1_Msk (0x1FU << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
  2921. #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC 1st conversion in regular sequence */
  2922. #define ADC_SQR1_SQ1_0 (0x01U << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
  2923. #define ADC_SQR1_SQ1_1 (0x02U << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
  2924. #define ADC_SQR1_SQ1_2 (0x04U << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
  2925. #define ADC_SQR1_SQ1_3 (0x08U << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
  2926. #define ADC_SQR1_SQ1_4 (0x10U << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
  2927. #define ADC_SQR1_SQ2_Pos (12U)
  2928. #define ADC_SQR1_SQ2_Msk (0x1FU << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
  2929. #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC 2nd conversion in regular sequence */
  2930. #define ADC_SQR1_SQ2_0 (0x01U << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
  2931. #define ADC_SQR1_SQ2_1 (0x02U << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
  2932. #define ADC_SQR1_SQ2_2 (0x04U << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
  2933. #define ADC_SQR1_SQ2_3 (0x08U << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
  2934. #define ADC_SQR1_SQ2_4 (0x10U << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
  2935. #define ADC_SQR1_SQ3_Pos (18U)
  2936. #define ADC_SQR1_SQ3_Msk (0x1FU << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
  2937. #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC 3rd conversion in regular sequence */
  2938. #define ADC_SQR1_SQ3_0 (0x01U << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
  2939. #define ADC_SQR1_SQ3_1 (0x02U << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
  2940. #define ADC_SQR1_SQ3_2 (0x04U << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
  2941. #define ADC_SQR1_SQ3_3 (0x08U << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
  2942. #define ADC_SQR1_SQ3_4 (0x10U << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
  2943. #define ADC_SQR1_SQ4_Pos (24U)
  2944. #define ADC_SQR1_SQ4_Msk (0x1FU << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
  2945. #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC 4th conversion in regular sequence */
  2946. #define ADC_SQR1_SQ4_0 (0x01U << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
  2947. #define ADC_SQR1_SQ4_1 (0x02U << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
  2948. #define ADC_SQR1_SQ4_2 (0x04U << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
  2949. #define ADC_SQR1_SQ4_3 (0x08U << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
  2950. #define ADC_SQR1_SQ4_4 (0x10U << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
  2951. /******************** Bit definition for ADC_SQR2 register ********************/
  2952. #define ADC_SQR2_SQ5_Pos (0U)
  2953. #define ADC_SQR2_SQ5_Msk (0x1FU << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
  2954. #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC 5th conversion in regular sequence */
  2955. #define ADC_SQR2_SQ5_0 (0x01U << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
  2956. #define ADC_SQR2_SQ5_1 (0x02U << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
  2957. #define ADC_SQR2_SQ5_2 (0x04U << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
  2958. #define ADC_SQR2_SQ5_3 (0x08U << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
  2959. #define ADC_SQR2_SQ5_4 (0x10U << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
  2960. #define ADC_SQR2_SQ6_Pos (6U)
  2961. #define ADC_SQR2_SQ6_Msk (0x1FU << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
  2962. #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC 6th conversion in regular sequence */
  2963. #define ADC_SQR2_SQ6_0 (0x01U << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
  2964. #define ADC_SQR2_SQ6_1 (0x02U << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
  2965. #define ADC_SQR2_SQ6_2 (0x04U << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
  2966. #define ADC_SQR2_SQ6_3 (0x08U << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
  2967. #define ADC_SQR2_SQ6_4 (0x10U << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
  2968. #define ADC_SQR2_SQ7_Pos (12U)
  2969. #define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
  2970. #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC 7th conversion in regular sequence */
  2971. #define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
  2972. #define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
  2973. #define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
  2974. #define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
  2975. #define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
  2976. #define ADC_SQR2_SQ8_Pos (18U)
  2977. #define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
  2978. #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC 8th conversion in regular sequence */
  2979. #define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
  2980. #define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
  2981. #define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
  2982. #define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
  2983. #define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
  2984. #define ADC_SQR2_SQ9_Pos (24U)
  2985. #define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
  2986. #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC 9th conversion in regular sequence */
  2987. #define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
  2988. #define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
  2989. #define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
  2990. #define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
  2991. #define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
  2992. /******************** Bit definition for ADC_SQR3 register ********************/
  2993. #define ADC_SQR3_SQ10_Pos (0U)
  2994. #define ADC_SQR3_SQ10_Msk (0x1FU << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
  2995. #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC 10th conversion in regular sequence */
  2996. #define ADC_SQR3_SQ10_0 (0x01U << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
  2997. #define ADC_SQR3_SQ10_1 (0x02U << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
  2998. #define ADC_SQR3_SQ10_2 (0x04U << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
  2999. #define ADC_SQR3_SQ10_3 (0x08U << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
  3000. #define ADC_SQR3_SQ10_4 (0x10U << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
  3001. #define ADC_SQR3_SQ11_Pos (6U)
  3002. #define ADC_SQR3_SQ11_Msk (0x1FU << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
  3003. #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC 11th conversion in regular sequence */
  3004. #define ADC_SQR3_SQ11_0 (0x01U << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
  3005. #define ADC_SQR3_SQ11_1 (0x02U << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
  3006. #define ADC_SQR3_SQ11_2 (0x04U << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
  3007. #define ADC_SQR3_SQ11_3 (0x08U << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
  3008. #define ADC_SQR3_SQ11_4 (0x10U << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
  3009. #define ADC_SQR3_SQ12_Pos (12U)
  3010. #define ADC_SQR3_SQ12_Msk (0x1FU << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
  3011. #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC 12th conversion in regular sequence */
  3012. #define ADC_SQR3_SQ12_0 (0x01U << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
  3013. #define ADC_SQR3_SQ12_1 (0x02U << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
  3014. #define ADC_SQR3_SQ12_2 (0x04U << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
  3015. #define ADC_SQR3_SQ12_3 (0x08U << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
  3016. #define ADC_SQR3_SQ12_4 (0x10U << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
  3017. #define ADC_SQR3_SQ13_Pos (18U)
  3018. #define ADC_SQR3_SQ13_Msk (0x1FU << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
  3019. #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC 13th conversion in regular sequence */
  3020. #define ADC_SQR3_SQ13_0 (0x01U << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
  3021. #define ADC_SQR3_SQ13_1 (0x02U << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
  3022. #define ADC_SQR3_SQ13_2 (0x04U << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
  3023. #define ADC_SQR3_SQ13_3 (0x08U << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
  3024. #define ADC_SQR3_SQ13_4 (0x10U << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
  3025. #define ADC_SQR3_SQ14_Pos (24U)
  3026. #define ADC_SQR3_SQ14_Msk (0x1FU << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
  3027. #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC 14th conversion in regular sequence */
  3028. #define ADC_SQR3_SQ14_0 (0x01U << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
  3029. #define ADC_SQR3_SQ14_1 (0x02U << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
  3030. #define ADC_SQR3_SQ14_2 (0x04U << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
  3031. #define ADC_SQR3_SQ14_3 (0x08U << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
  3032. #define ADC_SQR3_SQ14_4 (0x10U << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
  3033. /******************** Bit definition for ADC_SQR4 register ********************/
  3034. #define ADC_SQR4_SQ15_Pos (0U)
  3035. #define ADC_SQR4_SQ15_Msk (0x1FU << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
  3036. #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC 15th conversion in regular sequence */
  3037. #define ADC_SQR4_SQ15_0 (0x01U << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
  3038. #define ADC_SQR4_SQ15_1 (0x02U << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
  3039. #define ADC_SQR4_SQ15_2 (0x04U << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
  3040. #define ADC_SQR4_SQ15_3 (0x08U << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
  3041. #define ADC_SQR4_SQ15_4 (0x10U << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
  3042. #define ADC_SQR4_SQ16_Pos (6U)
  3043. #define ADC_SQR4_SQ16_Msk (0x1FU << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
  3044. #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC 16th conversion in regular sequence */
  3045. #define ADC_SQR4_SQ16_0 (0x01U << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
  3046. #define ADC_SQR4_SQ16_1 (0x02U << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
  3047. #define ADC_SQR4_SQ16_2 (0x04U << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
  3048. #define ADC_SQR4_SQ16_3 (0x08U << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
  3049. #define ADC_SQR4_SQ16_4 (0x10U << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
  3050. /******************** Bit definition for ADC_DR register ********************/
  3051. #define ADC_DR_RDATA_Pos (0U)
  3052. #define ADC_DR_RDATA_Msk (0xFFFFFFFFU << ADC_DR_RDATA_Pos) /*!< 0xFFFFFFFF */
  3053. #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC regular Data converted */
  3054. #define ADC_DR_RDATA_0 (0x00000001U << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
  3055. #define ADC_DR_RDATA_1 (0x00000002U << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
  3056. #define ADC_DR_RDATA_2 (0x00000004U << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
  3057. #define ADC_DR_RDATA_3 (0x00000008U << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
  3058. #define ADC_DR_RDATA_4 (0x00000010U << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
  3059. #define ADC_DR_RDATA_5 (0x00000020U << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
  3060. #define ADC_DR_RDATA_6 (0x00000040U << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
  3061. #define ADC_DR_RDATA_7 (0x00000080U << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
  3062. #define ADC_DR_RDATA_8 (0x00000100U << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
  3063. #define ADC_DR_RDATA_9 (0x00000200U << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
  3064. #define ADC_DR_RDATA_10 (0x00000400U << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
  3065. #define ADC_DR_RDATA_11 (0x00000800U << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
  3066. #define ADC_DR_RDATA_12 (0x00001000U << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
  3067. #define ADC_DR_RDATA_13 (0x00002000U << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
  3068. #define ADC_DR_RDATA_14 (0x00004000U << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
  3069. #define ADC_DR_RDATA_15 (0x00008000U << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
  3070. #define ADC_DR_RDATA_16 (0x00010000U << ADC_DR_RDATA_Pos) /*!< 0x00010000 */
  3071. #define ADC_DR_RDATA_17 (0x00020000U << ADC_DR_RDATA_Pos) /*!< 0x00020000 */
  3072. #define ADC_DR_RDATA_18 (0x00040000U << ADC_DR_RDATA_Pos) /*!< 0x00040000 */
  3073. #define ADC_DR_RDATA_19 (0x00080000U << ADC_DR_RDATA_Pos) /*!< 0x00080000 */
  3074. #define ADC_DR_RDATA_20 (0x00100000U << ADC_DR_RDATA_Pos) /*!< 0x00100000 */
  3075. #define ADC_DR_RDATA_21 (0x00200000U << ADC_DR_RDATA_Pos) /*!< 0x00200000 */
  3076. #define ADC_DR_RDATA_22 (0x00400000U << ADC_DR_RDATA_Pos) /*!< 0x00400000 */
  3077. #define ADC_DR_RDATA_23 (0x00800000U << ADC_DR_RDATA_Pos) /*!< 0x00800000 */
  3078. #define ADC_DR_RDATA_24 (0x01000000U << ADC_DR_RDATA_Pos) /*!< 0x01000000 */
  3079. #define ADC_DR_RDATA_25 (0x02000000U << ADC_DR_RDATA_Pos) /*!< 0x02000000 */
  3080. #define ADC_DR_RDATA_26 (0x04000000U << ADC_DR_RDATA_Pos) /*!< 0x04000000 */
  3081. #define ADC_DR_RDATA_27 (0x08000000U << ADC_DR_RDATA_Pos) /*!< 0x08000000 */
  3082. #define ADC_DR_RDATA_28 (0x10000000U << ADC_DR_RDATA_Pos) /*!< 0x10000000 */
  3083. #define ADC_DR_RDATA_29 (0x20000000U << ADC_DR_RDATA_Pos) /*!< 0x20000000 */
  3084. #define ADC_DR_RDATA_30 (0x40000000U << ADC_DR_RDATA_Pos) /*!< 0x40000000 */
  3085. #define ADC_DR_RDATA_31 (0x80000000U << ADC_DR_RDATA_Pos) /*!< 0x80000000 */
  3086. /******************** Bit definition for ADC_JSQR register ********************/
  3087. #define ADC_JSQR_JL_Pos (0U)
  3088. #define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
  3089. #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC injected channel sequence length */
  3090. #define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
  3091. #define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
  3092. #define ADC_JSQR_JEXTSEL_Pos (2U)
  3093. #define ADC_JSQR_JEXTSEL_Msk (0x1FU << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000007C */
  3094. #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC external trigger selection for injected group */
  3095. #define ADC_JSQR_JEXTSEL_0 (0x01U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
  3096. #define ADC_JSQR_JEXTSEL_1 (0x02U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
  3097. #define ADC_JSQR_JEXTSEL_2 (0x04U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
  3098. #define ADC_JSQR_JEXTSEL_3 (0x08U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
  3099. #define ADC_JSQR_JEXTSEL_4 (0x10U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000040 */
  3100. #define ADC_JSQR_JEXTEN_Pos (7U)
  3101. #define ADC_JSQR_JEXTEN_Msk (0x3U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000180 */
  3102. #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC external trigger enable and polarity selection for injected channels */
  3103. #define ADC_JSQR_JEXTEN_0 (0x1U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
  3104. #define ADC_JSQR_JEXTEN_1 (0x2U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000100 */
  3105. #define ADC_JSQR_JSQ1_Pos (9U)
  3106. #define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x00003E00 */
  3107. #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC 1st conversion in injected sequence */
  3108. #define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
  3109. #define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
  3110. #define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
  3111. #define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
  3112. #define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00002000 */
  3113. #define ADC_JSQR_JSQ2_Pos (15U)
  3114. #define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x000F8000 */
  3115. #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC 2nd conversion in injected sequence */
  3116. #define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
  3117. #define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
  3118. #define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
  3119. #define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
  3120. #define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00080000 */
  3121. #define ADC_JSQR_JSQ3_Pos (21U)
  3122. #define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x03E00000 */
  3123. #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC 3rd conversion in injected sequence */
  3124. #define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
  3125. #define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
  3126. #define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
  3127. #define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
  3128. #define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x02000000 */
  3129. #define ADC_JSQR_JSQ4_Pos (27U)
  3130. #define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0xF8000000 */
  3131. #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC 4th conversion in injected sequence */
  3132. #define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
  3133. #define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
  3134. #define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
  3135. #define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
  3136. #define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x80000000 */
  3137. /******************** Bit definition for ADC_OFR1 register ********************/
  3138. #define ADC_OFR1_OFFSET1_Pos (0U)
  3139. #define ADC_OFR1_OFFSET1_Msk (0x3FFFFFFU << ADC_OFR1_OFFSET1_Pos) /*!< 0x03FFFFFF */
  3140. #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
  3141. #define ADC_OFR1_OFFSET1_0 (0x0000001U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
  3142. #define ADC_OFR1_OFFSET1_1 (0x0000002U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
  3143. #define ADC_OFR1_OFFSET1_2 (0x0000004U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
  3144. #define ADC_OFR1_OFFSET1_3 (0x0000008U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
  3145. #define ADC_OFR1_OFFSET1_4 (0x0000010U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
  3146. #define ADC_OFR1_OFFSET1_5 (0x0000020U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
  3147. #define ADC_OFR1_OFFSET1_6 (0x0000040U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
  3148. #define ADC_OFR1_OFFSET1_7 (0x0000080U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
  3149. #define ADC_OFR1_OFFSET1_8 (0x0000100U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
  3150. #define ADC_OFR1_OFFSET1_9 (0x0000200U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
  3151. #define ADC_OFR1_OFFSET1_10 (0x0000400U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
  3152. #define ADC_OFR1_OFFSET1_11 (0x0000800U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
  3153. #define ADC_OFR1_OFFSET1_12 (0x0001000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00001000 */
  3154. #define ADC_OFR1_OFFSET1_13 (0x0002000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00002000 */
  3155. #define ADC_OFR1_OFFSET1_14 (0x0004000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00004000 */
  3156. #define ADC_OFR1_OFFSET1_15 (0x0008000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00008000 */
  3157. #define ADC_OFR1_OFFSET1_16 (0x0010000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00010000 */
  3158. #define ADC_OFR1_OFFSET1_17 (0x0020000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00020000 */
  3159. #define ADC_OFR1_OFFSET1_18 (0x0040000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00040000 */
  3160. #define ADC_OFR1_OFFSET1_19 (0x0080000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00080000 */
  3161. #define ADC_OFR1_OFFSET1_20 (0x0100000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00100000 */
  3162. #define ADC_OFR1_OFFSET1_21 (0x0200000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00200000 */
  3163. #define ADC_OFR1_OFFSET1_22 (0x0400000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00400000 */
  3164. #define ADC_OFR1_OFFSET1_23 (0x0800000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00800000 */
  3165. #define ADC_OFR1_OFFSET1_24 (0x1000000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x01000000 */
  3166. #define ADC_OFR1_OFFSET1_25 (0x2000000U << ADC_OFR1_OFFSET1_Pos) /*!< 0x02000000 */
  3167. #define ADC_OFR1_OFFSET1_CH_Pos (26U)
  3168. #define ADC_OFR1_OFFSET1_CH_Msk (0x1FU << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
  3169. #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC Channel selection for the data offset 1 */
  3170. #define ADC_OFR1_OFFSET1_CH_0 (0x01U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
  3171. #define ADC_OFR1_OFFSET1_CH_1 (0x02U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
  3172. #define ADC_OFR1_OFFSET1_CH_2 (0x04U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
  3173. #define ADC_OFR1_OFFSET1_CH_3 (0x08U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
  3174. #define ADC_OFR1_OFFSET1_CH_4 (0x10U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
  3175. #define ADC_OFR1_SSATE_Pos (31U)
  3176. #define ADC_OFR1_SSATE_Msk (0x1U << ADC_OFR1_SSATE_Pos) /*!< 0x80000000 */
  3177. #define ADC_OFR1_SSATE ADC_OFR1_SSATE_Msk /*!< ADC Signed saturation Enable */
  3178. /******************** Bit definition for ADC_OFR2 register ********************/
  3179. #define ADC_OFR2_OFFSET2_Pos (0U)
  3180. #define ADC_OFR2_OFFSET2_Msk (0x3FFFFFFU << ADC_OFR2_OFFSET2_Pos) /*!< 0x03FFFFFF */
  3181. #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */
  3182. #define ADC_OFR2_OFFSET2_0 (0x0000001U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
  3183. #define ADC_OFR2_OFFSET2_1 (0x0000002U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
  3184. #define ADC_OFR2_OFFSET2_2 (0x0000004U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
  3185. #define ADC_OFR2_OFFSET2_3 (0x0000008U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
  3186. #define ADC_OFR2_OFFSET2_4 (0x0000010U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
  3187. #define ADC_OFR2_OFFSET2_5 (0x0000020U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
  3188. #define ADC_OFR2_OFFSET2_6 (0x0000040U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
  3189. #define ADC_OFR2_OFFSET2_7 (0x0000080U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
  3190. #define ADC_OFR2_OFFSET2_8 (0x0000100U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
  3191. #define ADC_OFR2_OFFSET2_9 (0x0000200U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
  3192. #define ADC_OFR2_OFFSET2_10 (0x0000400U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
  3193. #define ADC_OFR2_OFFSET2_11 (0x0000800U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
  3194. #define ADC_OFR2_OFFSET2_12 (0x0001000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00001000 */
  3195. #define ADC_OFR2_OFFSET2_13 (0x0002000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00002000 */
  3196. #define ADC_OFR2_OFFSET2_14 (0x0004000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00004000 */
  3197. #define ADC_OFR2_OFFSET2_15 (0x0008000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00008000 */
  3198. #define ADC_OFR2_OFFSET2_16 (0x0010000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00010000 */
  3199. #define ADC_OFR2_OFFSET2_17 (0x0020000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00020000 */
  3200. #define ADC_OFR2_OFFSET2_18 (0x0040000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00040000 */
  3201. #define ADC_OFR2_OFFSET2_19 (0x0080000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00080000 */
  3202. #define ADC_OFR2_OFFSET2_20 (0x0100000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00100000 */
  3203. #define ADC_OFR2_OFFSET2_21 (0x0200000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00200000 */
  3204. #define ADC_OFR2_OFFSET2_22 (0x0400000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00400000 */
  3205. #define ADC_OFR2_OFFSET2_23 (0x0800000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00800000 */
  3206. #define ADC_OFR2_OFFSET2_24 (0x1000000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x01000000 */
  3207. #define ADC_OFR2_OFFSET2_25 (0x2000000U << ADC_OFR2_OFFSET2_Pos) /*!< 0x02000000 */
  3208. #define ADC_OFR2_OFFSET2_CH_Pos (26U)
  3209. #define ADC_OFR2_OFFSET2_CH_Msk (0x1FU << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
  3210. #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC Channel selection for the data offset 2 */
  3211. #define ADC_OFR2_OFFSET2_CH_0 (0x01U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
  3212. #define ADC_OFR2_OFFSET2_CH_1 (0x02U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
  3213. #define ADC_OFR2_OFFSET2_CH_2 (0x04U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
  3214. #define ADC_OFR2_OFFSET2_CH_3 (0x08U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
  3215. #define ADC_OFR2_OFFSET2_CH_4 (0x10U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
  3216. #define ADC_OFR2_SSATE_Pos (31U)
  3217. #define ADC_OFR2_SSATE_Msk (0x1U << ADC_OFR2_SSATE_Pos) /*!< 0x80000000 */
  3218. #define ADC_OFR2_SSATE ADC_OFR2_SSATE_Msk /*!< ADC Signed saturation Enable */
  3219. /******************** Bit definition for ADC_OFR3 register ********************/
  3220. #define ADC_OFR3_OFFSET3_Pos (0U)
  3221. #define ADC_OFR3_OFFSET3_Msk (0x3FFFFFFU << ADC_OFR3_OFFSET3_Pos) /*!< 0x03FFFFFF */
  3222. #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */
  3223. #define ADC_OFR3_OFFSET3_0 (0x0000001U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
  3224. #define ADC_OFR3_OFFSET3_1 (0x0000002U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
  3225. #define ADC_OFR3_OFFSET3_2 (0x0000004U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
  3226. #define ADC_OFR3_OFFSET3_3 (0x0000008U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
  3227. #define ADC_OFR3_OFFSET3_4 (0x0000010U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
  3228. #define ADC_OFR3_OFFSET3_5 (0x0000020U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
  3229. #define ADC_OFR3_OFFSET3_6 (0x0000040U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
  3230. #define ADC_OFR3_OFFSET3_7 (0x0000080U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
  3231. #define ADC_OFR3_OFFSET3_8 (0x0000100U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
  3232. #define ADC_OFR3_OFFSET3_9 (0x0000200U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
  3233. #define ADC_OFR3_OFFSET3_10 (0x0000400U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
  3234. #define ADC_OFR3_OFFSET3_11 (0x0000800U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
  3235. #define ADC_OFR3_OFFSET3_12 (0x0001000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00001000 */
  3236. #define ADC_OFR3_OFFSET3_13 (0x0002000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00002000 */
  3237. #define ADC_OFR3_OFFSET3_14 (0x0004000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00004000 */
  3238. #define ADC_OFR3_OFFSET3_15 (0x0008000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00008000 */
  3239. #define ADC_OFR3_OFFSET3_16 (0x0010000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00010000 */
  3240. #define ADC_OFR3_OFFSET3_17 (0x0020000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00020000 */
  3241. #define ADC_OFR3_OFFSET3_18 (0x0040000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00040000 */
  3242. #define ADC_OFR3_OFFSET3_19 (0x0080000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00080000 */
  3243. #define ADC_OFR3_OFFSET3_20 (0x0100000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00100000 */
  3244. #define ADC_OFR3_OFFSET3_21 (0x0200000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00200000 */
  3245. #define ADC_OFR3_OFFSET3_22 (0x0400000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00400000 */
  3246. #define ADC_OFR3_OFFSET3_23 (0x0800000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00800000 */
  3247. #define ADC_OFR3_OFFSET3_24 (0x1000000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x01000000 */
  3248. #define ADC_OFR3_OFFSET3_25 (0x2000000U << ADC_OFR3_OFFSET3_Pos) /*!< 0x02000000 */
  3249. #define ADC_OFR3_OFFSET3_CH_Pos (26U)
  3250. #define ADC_OFR3_OFFSET3_CH_Msk (0x1FU << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
  3251. #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC Channel selection for the data offset 3 */
  3252. #define ADC_OFR3_OFFSET3_CH_0 (0x01U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
  3253. #define ADC_OFR3_OFFSET3_CH_1 (0x02U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
  3254. #define ADC_OFR3_OFFSET3_CH_2 (0x04U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
  3255. #define ADC_OFR3_OFFSET3_CH_3 (0x08U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
  3256. #define ADC_OFR3_OFFSET3_CH_4 (0x10U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
  3257. #define ADC_OFR3_SSATE_Pos (31U)
  3258. #define ADC_OFR3_SSATE_Msk (0x1U << ADC_OFR3_SSATE_Pos) /*!< 0x80000000 */
  3259. #define ADC_OFR3_SSATE ADC_OFR3_SSATE_Msk /*!< ADC Signed saturation Enable */
  3260. /******************** Bit definition for ADC_OFR4 register ********************/
  3261. #define ADC_OFR4_OFFSET4_Pos (0U)
  3262. #define ADC_OFR4_OFFSET4_Msk (0x3FFFFFFU << ADC_OFR4_OFFSET4_Pos) /*!< 0x03FFFFFF */
  3263. #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */
  3264. #define ADC_OFR4_OFFSET4_0 (0x0000001U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
  3265. #define ADC_OFR4_OFFSET4_1 (0x0000002U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
  3266. #define ADC_OFR4_OFFSET4_2 (0x0000004U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
  3267. #define ADC_OFR4_OFFSET4_3 (0x0000008U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
  3268. #define ADC_OFR4_OFFSET4_4 (0x0000010U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
  3269. #define ADC_OFR4_OFFSET4_5 (0x0000020U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
  3270. #define ADC_OFR4_OFFSET4_6 (0x0000040U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
  3271. #define ADC_OFR4_OFFSET4_7 (0x0000080U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
  3272. #define ADC_OFR4_OFFSET4_8 (0x0000100U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
  3273. #define ADC_OFR4_OFFSET4_9 (0x0000200U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
  3274. #define ADC_OFR4_OFFSET4_10 (0x0000400U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
  3275. #define ADC_OFR4_OFFSET4_11 (0x0000800U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
  3276. #define ADC_OFR4_OFFSET4_12 (0x0001000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00001000 */
  3277. #define ADC_OFR4_OFFSET4_13 (0x0002000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00002000 */
  3278. #define ADC_OFR4_OFFSET4_14 (0x0004000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00004000 */
  3279. #define ADC_OFR4_OFFSET4_15 (0x0008000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00008000 */
  3280. #define ADC_OFR4_OFFSET4_16 (0x0010000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00010000 */
  3281. #define ADC_OFR4_OFFSET4_17 (0x0020000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00020000 */
  3282. #define ADC_OFR4_OFFSET4_18 (0x0040000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00040000 */
  3283. #define ADC_OFR4_OFFSET4_19 (0x0080000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00080000 */
  3284. #define ADC_OFR4_OFFSET4_20 (0x0100000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00100000 */
  3285. #define ADC_OFR4_OFFSET4_21 (0x0200000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00200000 */
  3286. #define ADC_OFR4_OFFSET4_22 (0x0400000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00400000 */
  3287. #define ADC_OFR4_OFFSET4_23 (0x0800000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00800000 */
  3288. #define ADC_OFR4_OFFSET4_24 (0x1000000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x01000000 */
  3289. #define ADC_OFR4_OFFSET4_25 (0x2000000U << ADC_OFR4_OFFSET4_Pos) /*!< 0x02000000 */
  3290. #define ADC_OFR4_OFFSET4_CH_Pos (26U)
  3291. #define ADC_OFR4_OFFSET4_CH_Msk (0x1FU << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
  3292. #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC Channel selection for the data offset 4 */
  3293. #define ADC_OFR4_OFFSET4_CH_0 (0x01U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
  3294. #define ADC_OFR4_OFFSET4_CH_1 (0x02U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
  3295. #define ADC_OFR4_OFFSET4_CH_2 (0x04U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
  3296. #define ADC_OFR4_OFFSET4_CH_3 (0x08U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
  3297. #define ADC_OFR4_OFFSET4_CH_4 (0x10U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
  3298. #define ADC_OFR4_SSATE_Pos (31U)
  3299. #define ADC_OFR4_SSATE_Msk (0x1U << ADC_OFR4_SSATE_Pos) /*!< 0x80000000 */
  3300. #define ADC_OFR4_SSATE ADC_OFR4_SSATE_Msk /*!< ADC Signed saturation Enable */
  3301. /******************** Bit definition for ADC_JDR1 register ********************/
  3302. #define ADC_JDR1_JDATA_Pos (0U)
  3303. #define ADC_JDR1_JDATA_Msk (0xFFFFFFFFU << ADC_JDR1_JDATA_Pos) /*!< 0xFFFFFFFF */
  3304. #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC Injected DATA */
  3305. #define ADC_JDR1_JDATA_0 (0x00000001U << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
  3306. #define ADC_JDR1_JDATA_1 (0x00000002U << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
  3307. #define ADC_JDR1_JDATA_2 (0x00000004U << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
  3308. #define ADC_JDR1_JDATA_3 (0x00000008U << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
  3309. #define ADC_JDR1_JDATA_4 (0x00000010U << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
  3310. #define ADC_JDR1_JDATA_5 (0x00000020U << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
  3311. #define ADC_JDR1_JDATA_6 (0x00000040U << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
  3312. #define ADC_JDR1_JDATA_7 (0x00000080U << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
  3313. #define ADC_JDR1_JDATA_8 (0x00000100U << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
  3314. #define ADC_JDR1_JDATA_9 (0x00000200U << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
  3315. #define ADC_JDR1_JDATA_10 (0x00000400U << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
  3316. #define ADC_JDR1_JDATA_11 (0x00000800U << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
  3317. #define ADC_JDR1_JDATA_12 (0x00001000U << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
  3318. #define ADC_JDR1_JDATA_13 (0x00002000U << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
  3319. #define ADC_JDR1_JDATA_14 (0x00004000U << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
  3320. #define ADC_JDR1_JDATA_15 (0x00008000U << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
  3321. #define ADC_JDR1_JDATA_16 (0x00010000U << ADC_JDR1_JDATA_Pos) /*!< 0x00010000 */
  3322. #define ADC_JDR1_JDATA_17 (0x00020000U << ADC_JDR1_JDATA_Pos) /*!< 0x00020000 */
  3323. #define ADC_JDR1_JDATA_18 (0x00040000U << ADC_JDR1_JDATA_Pos) /*!< 0x00040000 */
  3324. #define ADC_JDR1_JDATA_19 (0x00080000U << ADC_JDR1_JDATA_Pos) /*!< 0x00080000 */
  3325. #define ADC_JDR1_JDATA_20 (0x00100000U << ADC_JDR1_JDATA_Pos) /*!< 0x00100000 */
  3326. #define ADC_JDR1_JDATA_21 (0x00200000U << ADC_JDR1_JDATA_Pos) /*!< 0x00200000 */
  3327. #define ADC_JDR1_JDATA_22 (0x00400000U << ADC_JDR1_JDATA_Pos) /*!< 0x00400000 */
  3328. #define ADC_JDR1_JDATA_23 (0x00800000U << ADC_JDR1_JDATA_Pos) /*!< 0x00800000 */
  3329. #define ADC_JDR1_JDATA_24 (0x01000000U << ADC_JDR1_JDATA_Pos) /*!< 0x01000000 */
  3330. #define ADC_JDR1_JDATA_25 (0x02000000U << ADC_JDR1_JDATA_Pos) /*!< 0x02000000 */
  3331. #define ADC_JDR1_JDATA_26 (0x04000000U << ADC_JDR1_JDATA_Pos) /*!< 0x04000000 */
  3332. #define ADC_JDR1_JDATA_27 (0x08000000U << ADC_JDR1_JDATA_Pos) /*!< 0x08000000 */
  3333. #define ADC_JDR1_JDATA_28 (0x10000000U << ADC_JDR1_JDATA_Pos) /*!< 0x10000000 */
  3334. #define ADC_JDR1_JDATA_29 (0x20000000U << ADC_JDR1_JDATA_Pos) /*!< 0x20000000 */
  3335. #define ADC_JDR1_JDATA_30 (0x40000000U << ADC_JDR1_JDATA_Pos) /*!< 0x40000000 */
  3336. #define ADC_JDR1_JDATA_31 (0x80000000U << ADC_JDR1_JDATA_Pos) /*!< 0x80000000 */
  3337. /******************** Bit definition for ADC_JDR2 register ********************/
  3338. #define ADC_JDR2_JDATA_Pos (0U)
  3339. #define ADC_JDR2_JDATA_Msk (0xFFFFFFFFU << ADC_JDR2_JDATA_Pos) /*!< 0xFFFFFFFF */
  3340. #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC Injected DATA */
  3341. #define ADC_JDR2_JDATA_0 (0x00000001U << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
  3342. #define ADC_JDR2_JDATA_1 (0x00000002U << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
  3343. #define ADC_JDR2_JDATA_2 (0x00000004U << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
  3344. #define ADC_JDR2_JDATA_3 (0x00000008U << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
  3345. #define ADC_JDR2_JDATA_4 (0x00000010U << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
  3346. #define ADC_JDR2_JDATA_5 (0x00000020U << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
  3347. #define ADC_JDR2_JDATA_6 (0x00000040U << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
  3348. #define ADC_JDR2_JDATA_7 (0x00000080U << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
  3349. #define ADC_JDR2_JDATA_8 (0x00000100U << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
  3350. #define ADC_JDR2_JDATA_9 (0x00000200U << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
  3351. #define ADC_JDR2_JDATA_10 (0x00000400U << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
  3352. #define ADC_JDR2_JDATA_11 (0x00000800U << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
  3353. #define ADC_JDR2_JDATA_12 (0x00001000U << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
  3354. #define ADC_JDR2_JDATA_13 (0x00002000U << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
  3355. #define ADC_JDR2_JDATA_14 (0x00004000U << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
  3356. #define ADC_JDR2_JDATA_15 (0x00008000U << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
  3357. #define ADC_JDR2_JDATA_16 (0x00010000U << ADC_JDR2_JDATA_Pos) /*!< 0x00010000 */
  3358. #define ADC_JDR2_JDATA_17 (0x00020000U << ADC_JDR2_JDATA_Pos) /*!< 0x00020000 */
  3359. #define ADC_JDR2_JDATA_18 (0x00040000U << ADC_JDR2_JDATA_Pos) /*!< 0x00040000 */
  3360. #define ADC_JDR2_JDATA_19 (0x00080000U << ADC_JDR2_JDATA_Pos) /*!< 0x00080000 */
  3361. #define ADC_JDR2_JDATA_20 (0x00100000U << ADC_JDR2_JDATA_Pos) /*!< 0x00100000 */
  3362. #define ADC_JDR2_JDATA_21 (0x00200000U << ADC_JDR2_JDATA_Pos) /*!< 0x00200000 */
  3363. #define ADC_JDR2_JDATA_22 (0x00400000U << ADC_JDR2_JDATA_Pos) /*!< 0x00400000 */
  3364. #define ADC_JDR2_JDATA_23 (0x00800000U << ADC_JDR2_JDATA_Pos) /*!< 0x00800000 */
  3365. #define ADC_JDR2_JDATA_24 (0x01000000U << ADC_JDR2_JDATA_Pos) /*!< 0x01000000 */
  3366. #define ADC_JDR2_JDATA_25 (0x02000000U << ADC_JDR2_JDATA_Pos) /*!< 0x02000000 */
  3367. #define ADC_JDR2_JDATA_26 (0x04000000U << ADC_JDR2_JDATA_Pos) /*!< 0x04000000 */
  3368. #define ADC_JDR2_JDATA_27 (0x08000000U << ADC_JDR2_JDATA_Pos) /*!< 0x08000000 */
  3369. #define ADC_JDR2_JDATA_28 (0x10000000U << ADC_JDR2_JDATA_Pos) /*!< 0x10000000 */
  3370. #define ADC_JDR2_JDATA_29 (0x20000000U << ADC_JDR2_JDATA_Pos) /*!< 0x20000000 */
  3371. #define ADC_JDR2_JDATA_30 (0x40000000U << ADC_JDR2_JDATA_Pos) /*!< 0x40000000 */
  3372. #define ADC_JDR2_JDATA_31 (0x80000000U << ADC_JDR2_JDATA_Pos) /*!< 0x80000000 */
  3373. /******************** Bit definition for ADC_JDR3 register ********************/
  3374. #define ADC_JDR3_JDATA_Pos (0U)
  3375. #define ADC_JDR3_JDATA_Msk (0xFFFFFFFFU << ADC_JDR3_JDATA_Pos) /*!< 0xFFFFFFFF */
  3376. #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC Injected DATA */
  3377. #define ADC_JDR3_JDATA_0 (0x00000001U << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
  3378. #define ADC_JDR3_JDATA_1 (0x00000002U << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
  3379. #define ADC_JDR3_JDATA_2 (0x00000004U << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
  3380. #define ADC_JDR3_JDATA_3 (0x00000008U << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
  3381. #define ADC_JDR3_JDATA_4 (0x00000010U << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
  3382. #define ADC_JDR3_JDATA_5 (0x00000020U << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
  3383. #define ADC_JDR3_JDATA_6 (0x00000040U << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
  3384. #define ADC_JDR3_JDATA_7 (0x00000080U << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
  3385. #define ADC_JDR3_JDATA_8 (0x00000100U << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
  3386. #define ADC_JDR3_JDATA_9 (0x00000200U << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
  3387. #define ADC_JDR3_JDATA_10 (0x00000400U << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
  3388. #define ADC_JDR3_JDATA_11 (0x00000800U << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
  3389. #define ADC_JDR3_JDATA_12 (0x00001000U << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
  3390. #define ADC_JDR3_JDATA_13 (0x00002000U << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
  3391. #define ADC_JDR3_JDATA_14 (0x00004000U << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
  3392. #define ADC_JDR3_JDATA_15 (0x00008000U << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
  3393. #define ADC_JDR3_JDATA_16 (0x00010000U << ADC_JDR3_JDATA_Pos) /*!< 0x00010000 */
  3394. #define ADC_JDR3_JDATA_17 (0x00020000U << ADC_JDR3_JDATA_Pos) /*!< 0x00020000 */
  3395. #define ADC_JDR3_JDATA_18 (0x00040000U << ADC_JDR3_JDATA_Pos) /*!< 0x00040000 */
  3396. #define ADC_JDR3_JDATA_19 (0x00080000U << ADC_JDR3_JDATA_Pos) /*!< 0x00080000 */
  3397. #define ADC_JDR3_JDATA_20 (0x00100000U << ADC_JDR3_JDATA_Pos) /*!< 0x00100000 */
  3398. #define ADC_JDR3_JDATA_21 (0x00200000U << ADC_JDR3_JDATA_Pos) /*!< 0x00200000 */
  3399. #define ADC_JDR3_JDATA_22 (0x00400000U << ADC_JDR3_JDATA_Pos) /*!< 0x00400000 */
  3400. #define ADC_JDR3_JDATA_23 (0x00800000U << ADC_JDR3_JDATA_Pos) /*!< 0x00800000 */
  3401. #define ADC_JDR3_JDATA_24 (0x01000000U << ADC_JDR3_JDATA_Pos) /*!< 0x01000000 */
  3402. #define ADC_JDR3_JDATA_25 (0x02000000U << ADC_JDR3_JDATA_Pos) /*!< 0x02000000 */
  3403. #define ADC_JDR3_JDATA_26 (0x04000000U << ADC_JDR3_JDATA_Pos) /*!< 0x04000000 */
  3404. #define ADC_JDR3_JDATA_27 (0x08000000U << ADC_JDR3_JDATA_Pos) /*!< 0x08000000 */
  3405. #define ADC_JDR3_JDATA_28 (0x10000000U << ADC_JDR3_JDATA_Pos) /*!< 0x10000000 */
  3406. #define ADC_JDR3_JDATA_29 (0x20000000U << ADC_JDR3_JDATA_Pos) /*!< 0x20000000 */
  3407. #define ADC_JDR3_JDATA_30 (0x40000000U << ADC_JDR3_JDATA_Pos) /*!< 0x40000000 */
  3408. #define ADC_JDR3_JDATA_31 (0x80000000U << ADC_JDR3_JDATA_Pos) /*!< 0x80000000 */
  3409. /******************** Bit definition for ADC_JDR4 register ********************/
  3410. #define ADC_JDR4_JDATA_Pos (0U)
  3411. #define ADC_JDR4_JDATA_Msk (0xFFFFFFFFU << ADC_JDR4_JDATA_Pos) /*!< 0xFFFFFFFF */
  3412. #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC Injected DATA */
  3413. #define ADC_JDR4_JDATA_0 (0x00000001U << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
  3414. #define ADC_JDR4_JDATA_1 (0x00000002U << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
  3415. #define ADC_JDR4_JDATA_2 (0x00000004U << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
  3416. #define ADC_JDR4_JDATA_3 (0x00000008U << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
  3417. #define ADC_JDR4_JDATA_4 (0x00000010U << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
  3418. #define ADC_JDR4_JDATA_5 (0x00000020U << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
  3419. #define ADC_JDR4_JDATA_6 (0x00000040U << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
  3420. #define ADC_JDR4_JDATA_7 (0x00000080U << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
  3421. #define ADC_JDR4_JDATA_8 (0x00000100U << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
  3422. #define ADC_JDR4_JDATA_9 (0x00000200U << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
  3423. #define ADC_JDR4_JDATA_10 (0x00000400U << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
  3424. #define ADC_JDR4_JDATA_11 (0x00000800U << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
  3425. #define ADC_JDR4_JDATA_12 (0x00001000U << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
  3426. #define ADC_JDR4_JDATA_13 (0x00002000U << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
  3427. #define ADC_JDR4_JDATA_14 (0x00004000U << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
  3428. #define ADC_JDR4_JDATA_15 (0x00008000U << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
  3429. #define ADC_JDR4_JDATA_16 (0x00010000U << ADC_JDR4_JDATA_Pos) /*!< 0x00010000 */
  3430. #define ADC_JDR4_JDATA_17 (0x00020000U << ADC_JDR4_JDATA_Pos) /*!< 0x00020000 */
  3431. #define ADC_JDR4_JDATA_18 (0x00040000U << ADC_JDR4_JDATA_Pos) /*!< 0x00040000 */
  3432. #define ADC_JDR4_JDATA_19 (0x00080000U << ADC_JDR4_JDATA_Pos) /*!< 0x00080000 */
  3433. #define ADC_JDR4_JDATA_20 (0x00100000U << ADC_JDR4_JDATA_Pos) /*!< 0x00100000 */
  3434. #define ADC_JDR4_JDATA_21 (0x00200000U << ADC_JDR4_JDATA_Pos) /*!< 0x00200000 */
  3435. #define ADC_JDR4_JDATA_22 (0x00400000U << ADC_JDR4_JDATA_Pos) /*!< 0x00400000 */
  3436. #define ADC_JDR4_JDATA_23 (0x00800000U << ADC_JDR4_JDATA_Pos) /*!< 0x00800000 */
  3437. #define ADC_JDR4_JDATA_24 (0x01000000U << ADC_JDR4_JDATA_Pos) /*!< 0x01000000 */
  3438. #define ADC_JDR4_JDATA_25 (0x02000000U << ADC_JDR4_JDATA_Pos) /*!< 0x02000000 */
  3439. #define ADC_JDR4_JDATA_26 (0x04000000U << ADC_JDR4_JDATA_Pos) /*!< 0x04000000 */
  3440. #define ADC_JDR4_JDATA_27 (0x08000000U << ADC_JDR4_JDATA_Pos) /*!< 0x08000000 */
  3441. #define ADC_JDR4_JDATA_28 (0x10000000U << ADC_JDR4_JDATA_Pos) /*!< 0x10000000 */
  3442. #define ADC_JDR4_JDATA_29 (0x20000000U << ADC_JDR4_JDATA_Pos) /*!< 0x20000000 */
  3443. #define ADC_JDR4_JDATA_30 (0x40000000U << ADC_JDR4_JDATA_Pos) /*!< 0x40000000 */
  3444. #define ADC_JDR4_JDATA_31 (0x80000000U << ADC_JDR4_JDATA_Pos) /*!< 0x80000000 */
  3445. /******************** Bit definition for ADC_AWD2CR register ********************/
  3446. #define ADC_AWD2CR_AWD2CH_Pos (0U)
  3447. #define ADC_AWD2CR_AWD2CH_Msk (0xFFFFFU << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x000FFFFF */
  3448. #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3449. #define ADC_AWD2CR_AWD2CH_0 (0x00001U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
  3450. #define ADC_AWD2CR_AWD2CH_1 (0x00002U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
  3451. #define ADC_AWD2CR_AWD2CH_2 (0x00004U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
  3452. #define ADC_AWD2CR_AWD2CH_3 (0x00008U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
  3453. #define ADC_AWD2CR_AWD2CH_4 (0x00010U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
  3454. #define ADC_AWD2CR_AWD2CH_5 (0x00020U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
  3455. #define ADC_AWD2CR_AWD2CH_6 (0x00040U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
  3456. #define ADC_AWD2CR_AWD2CH_7 (0x00080U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
  3457. #define ADC_AWD2CR_AWD2CH_8 (0x00100U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
  3458. #define ADC_AWD2CR_AWD2CH_9 (0x00200U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
  3459. #define ADC_AWD2CR_AWD2CH_10 (0x00400U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
  3460. #define ADC_AWD2CR_AWD2CH_11 (0x00800U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
  3461. #define ADC_AWD2CR_AWD2CH_12 (0x01000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
  3462. #define ADC_AWD2CR_AWD2CH_13 (0x02000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
  3463. #define ADC_AWD2CR_AWD2CH_14 (0x04000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
  3464. #define ADC_AWD2CR_AWD2CH_15 (0x08000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
  3465. #define ADC_AWD2CR_AWD2CH_16 (0x10000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
  3466. #define ADC_AWD2CR_AWD2CH_17 (0x20000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
  3467. #define ADC_AWD2CR_AWD2CH_18 (0x40000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
  3468. #define ADC_AWD2CR_AWD2CH_19 (0x80000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00080000 */
  3469. /******************** Bit definition for ADC_AWD3CR register ********************/
  3470. #define ADC_AWD3CR_AWD3CH_Pos (0U)
  3471. #define ADC_AWD3CR_AWD3CH_Msk (0xFFFFFU << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x000FFFFF */
  3472. #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC Analog watchdog 2 channel selection */
  3473. #define ADC_AWD3CR_AWD3CH_0 (0x00001U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
  3474. #define ADC_AWD3CR_AWD3CH_1 (0x00002U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
  3475. #define ADC_AWD3CR_AWD3CH_2 (0x00004U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
  3476. #define ADC_AWD3CR_AWD3CH_3 (0x00008U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
  3477. #define ADC_AWD3CR_AWD3CH_4 (0x00010U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
  3478. #define ADC_AWD3CR_AWD3CH_5 (0x00020U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
  3479. #define ADC_AWD3CR_AWD3CH_6 (0x00040U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
  3480. #define ADC_AWD3CR_AWD3CH_7 (0x00080U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
  3481. #define ADC_AWD3CR_AWD3CH_8 (0x00100U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
  3482. #define ADC_AWD3CR_AWD3CH_9 (0x00200U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
  3483. #define ADC_AWD3CR_AWD3CH_10 (0x00400U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
  3484. #define ADC_AWD3CR_AWD3CH_11 (0x00800U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
  3485. #define ADC_AWD3CR_AWD3CH_12 (0x01000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
  3486. #define ADC_AWD3CR_AWD3CH_13 (0x02000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
  3487. #define ADC_AWD3CR_AWD3CH_14 (0x04000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
  3488. #define ADC_AWD3CR_AWD3CH_15 (0x08000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
  3489. #define ADC_AWD3CR_AWD3CH_16 (0x10000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
  3490. #define ADC_AWD3CR_AWD3CH_17 (0x20000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
  3491. #define ADC_AWD3CR_AWD3CH_18 (0x40000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
  3492. #define ADC_AWD3CR_AWD3CH_19 (0x80000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00080000 */
  3493. /******************** Bit definition for ADC_DIFSEL register ********************/
  3494. #define ADC_DIFSEL_DIFSEL_Pos (0U)
  3495. #define ADC_DIFSEL_DIFSEL_Msk (0xFFFFFU << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x000FFFFF */
  3496. #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC differential modes for channels 1 to 18 */
  3497. #define ADC_DIFSEL_DIFSEL_0 (0x00001U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
  3498. #define ADC_DIFSEL_DIFSEL_1 (0x00002U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
  3499. #define ADC_DIFSEL_DIFSEL_2 (0x00004U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
  3500. #define ADC_DIFSEL_DIFSEL_3 (0x00008U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
  3501. #define ADC_DIFSEL_DIFSEL_4 (0x00010U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
  3502. #define ADC_DIFSEL_DIFSEL_5 (0x00020U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
  3503. #define ADC_DIFSEL_DIFSEL_6 (0x00040U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
  3504. #define ADC_DIFSEL_DIFSEL_7 (0x00080U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
  3505. #define ADC_DIFSEL_DIFSEL_8 (0x00100U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
  3506. #define ADC_DIFSEL_DIFSEL_9 (0x00200U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
  3507. #define ADC_DIFSEL_DIFSEL_10 (0x00400U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
  3508. #define ADC_DIFSEL_DIFSEL_11 (0x00800U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
  3509. #define ADC_DIFSEL_DIFSEL_12 (0x01000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
  3510. #define ADC_DIFSEL_DIFSEL_13 (0x02000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
  3511. #define ADC_DIFSEL_DIFSEL_14 (0x04000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
  3512. #define ADC_DIFSEL_DIFSEL_15 (0x08000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
  3513. #define ADC_DIFSEL_DIFSEL_16 (0x10000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
  3514. #define ADC_DIFSEL_DIFSEL_17 (0x20000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
  3515. #define ADC_DIFSEL_DIFSEL_18 (0x40000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
  3516. #define ADC_DIFSEL_DIFSEL_19 (0x80000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00080000 */
  3517. /******************** Bit definition for ADC_CALFACT register ********************/
  3518. #define ADC_CALFACT_CALFACT_S_Pos (0U)
  3519. #define ADC_CALFACT_CALFACT_S_Msk (0x7FFU << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x000007FF */
  3520. #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factors in single-ended mode */
  3521. #define ADC_CALFACT_CALFACT_S_0 (0x001U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
  3522. #define ADC_CALFACT_CALFACT_S_1 (0x002U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
  3523. #define ADC_CALFACT_CALFACT_S_2 (0x004U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
  3524. #define ADC_CALFACT_CALFACT_S_3 (0x008U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
  3525. #define ADC_CALFACT_CALFACT_S_4 (0x010U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
  3526. #define ADC_CALFACT_CALFACT_S_5 (0x020U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
  3527. #define ADC_CALFACT_CALFACT_S_6 (0x040U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
  3528. #define ADC_CALFACT_CALFACT_S_7 (0x080U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000080 */
  3529. #define ADC_CALFACT_CALFACT_S_8 (0x100U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000100 */
  3530. #define ADC_CALFACT_CALFACT_S_9 (0x200U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000200 */
  3531. #define ADC_CALFACT_CALFACT_S_10 (0x400U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000400 */
  3532. #define ADC_CALFACT_CALFACT_D_Pos (16U)
  3533. #define ADC_CALFACT_CALFACT_D_Msk (0x7FFU << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x07FF0000 */
  3534. #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factors in differential mode */
  3535. #define ADC_CALFACT_CALFACT_D_0 (0x001U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
  3536. #define ADC_CALFACT_CALFACT_D_1 (0x002U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
  3537. #define ADC_CALFACT_CALFACT_D_2 (0x004U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
  3538. #define ADC_CALFACT_CALFACT_D_3 (0x008U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
  3539. #define ADC_CALFACT_CALFACT_D_4 (0x010U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
  3540. #define ADC_CALFACT_CALFACT_D_5 (0x020U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
  3541. #define ADC_CALFACT_CALFACT_D_6 (0x040U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
  3542. #define ADC_CALFACT_CALFACT_D_7 (0x080U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00800000 */
  3543. #define ADC_CALFACT_CALFACT_D_8 (0x100U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x01000000 */
  3544. #define ADC_CALFACT_CALFACT_D_9 (0x200U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x02000000 */
  3545. #define ADC_CALFACT_CALFACT_D_10 (0x400U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x04000000 */
  3546. /******************** Bit definition for ADC_CALFACT2 register ********************/
  3547. #define ADC_CALFACT2_LINCALFACT_Pos (0U)
  3548. #define ADC_CALFACT2_LINCALFACT_Msk (0x3FFFFFFFU << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x3FFFFFFF */
  3549. #define ADC_CALFACT2_LINCALFACT ADC_CALFACT2_LINCALFACT_Msk /*!< ADC Linearity calibration factors */
  3550. #define ADC_CALFACT2_LINCALFACT_0 (0x00000001U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000001 */
  3551. #define ADC_CALFACT2_LINCALFACT_1 (0x00000002U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000002 */
  3552. #define ADC_CALFACT2_LINCALFACT_2 (0x00000004U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000004 */
  3553. #define ADC_CALFACT2_LINCALFACT_3 (0x00000008U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000008 */
  3554. #define ADC_CALFACT2_LINCALFACT_4 (0x00000010U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000010 */
  3555. #define ADC_CALFACT2_LINCALFACT_5 (0x00000020U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000020 */
  3556. #define ADC_CALFACT2_LINCALFACT_6 (0x00000040U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000040 */
  3557. #define ADC_CALFACT2_LINCALFACT_7 (0x00000080U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000080 */
  3558. #define ADC_CALFACT2_LINCALFACT_8 (0x00000100U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000100 */
  3559. #define ADC_CALFACT2_LINCALFACT_9 (0x00000200U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000200 */
  3560. #define ADC_CALFACT2_LINCALFACT_10 (0x00000400U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000400 */
  3561. #define ADC_CALFACT2_LINCALFACT_11 (0x00000800U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000800 */
  3562. #define ADC_CALFACT2_LINCALFACT_12 (0x00001000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00001000 */
  3563. #define ADC_CALFACT2_LINCALFACT_13 (0x00002000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00002000 */
  3564. #define ADC_CALFACT2_LINCALFACT_14 (0x00004000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00004000 */
  3565. #define ADC_CALFACT2_LINCALFACT_15 (0x00008000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00008000 */
  3566. #define ADC_CALFACT2_LINCALFACT_16 (0x00010000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00010000 */
  3567. #define ADC_CALFACT2_LINCALFACT_17 (0x00020000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00020000 */
  3568. #define ADC_CALFACT2_LINCALFACT_18 (0x00040000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00040000 */
  3569. #define ADC_CALFACT2_LINCALFACT_19 (0x00080000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00080000 */
  3570. #define ADC_CALFACT2_LINCALFACT_20 (0x00100000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00100000 */
  3571. #define ADC_CALFACT2_LINCALFACT_21 (0x00200000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00200000 */
  3572. #define ADC_CALFACT2_LINCALFACT_22 (0x00400000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00400000 */
  3573. #define ADC_CALFACT2_LINCALFACT_23 (0x00800000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00800000 */
  3574. #define ADC_CALFACT2_LINCALFACT_24 (0x01000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x01000000 */
  3575. #define ADC_CALFACT2_LINCALFACT_25 (0x02000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x02000000 */
  3576. #define ADC_CALFACT2_LINCALFACT_26 (0x04000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x04000000 */
  3577. #define ADC_CALFACT2_LINCALFACT_27 (0x08000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x08000000 */
  3578. #define ADC_CALFACT2_LINCALFACT_28 (0x10000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x10000000 */
  3579. #define ADC_CALFACT2_LINCALFACT_29 (0x20000000U << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x20000000 */
  3580. /************************* ADC Common registers *****************************/
  3581. /******************** Bit definition for ADC_CSR register ********************/
  3582. #define ADC123_CSR_ADRDY_MST_Pos (0U)
  3583. #define ADC123_CSR_ADRDY_MST_Msk (0x1U << ADC123_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
  3584. #define ADC123_CSR_ADRDY_MST ADC123_CSR_ADRDY_MST_Msk /*!< Master ADC ready */
  3585. #define ADC123_CSR_EOSMP_MST_Pos (1U)
  3586. #define ADC123_CSR_EOSMP_MST_Msk (0x1U << ADC123_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
  3587. #define ADC123_CSR_EOSMP_MST ADC123_CSR_EOSMP_MST_Msk /*!< End of sampling phase flag of the master ADC */
  3588. #define ADC123_CSR_EOC_MST_Pos (2U)
  3589. #define ADC123_CSR_EOC_MST_Msk (0x1U << ADC123_CSR_EOC_MST_Pos) /*!< 0x00000004 */
  3590. #define ADC123_CSR_EOC_MST ADC123_CSR_EOC_MST_Msk /*!< End of regular conversion of the master ADC */
  3591. #define ADC123_CSR_EOS_MST_Pos (3U)
  3592. #define ADC123_CSR_EOS_MST_Msk (0x1U << ADC123_CSR_EOS_MST_Pos) /*!< 0x00000008 */
  3593. #define ADC123_CSR_EOS_MST ADC123_CSR_EOS_MST_Msk /*!< End of regular sequence flag of the master ADC */
  3594. #define ADC123_CSR_OVR_MST_Pos (4U)
  3595. #define ADC123_CSR_OVR_MST_Msk (0x1U << ADC123_CSR_OVR_MST_Pos) /*!< 0x00000010 */
  3596. #define ADC123_CSR_OVR_MST ADC123_CSR_OVR_MST_Msk /*!< Overrun flag of the master ADC */
  3597. #define ADC123_CSR_JEOC_MST_Pos (5U)
  3598. #define ADC123_CSR_JEOC_MST_Msk (0x1U << ADC123_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
  3599. #define ADC123_CSR_JEOC_MST ADC123_CSR_JEOC_MST_Msk /*!< End of injected conversion of the master ADC */
  3600. #define ADC123_CSR_JEOS_MST_Pos (6U)
  3601. #define ADC123_CSR_JEOS_MST_Msk (0x1U << ADC123_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
  3602. #define ADC123_CSR_JEOS_MST ADC123_CSR_JEOS_MST_Msk /*!< End of injected sequence flag of the master ADC */
  3603. #define ADC123_CSR_AWD1_MST_Pos (7U)
  3604. #define ADC123_CSR_AWD1_MST_Msk (0x1U << ADC123_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
  3605. #define ADC123_CSR_AWD1_MST ADC123_CSR_AWD1_MST_Msk /*!< Analog watchdog 1 flag of the master ADC */
  3606. #define ADC123_CSR_AWD2_MST_Pos (8U)
  3607. #define ADC123_CSR_AWD2_MST_Msk (0x1U << ADC123_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
  3608. #define ADC123_CSR_AWD2_MST ADC123_CSR_AWD2_MST_Msk /*!< Analog watchdog 2 flag of the master ADC */
  3609. #define ADC123_CSR_AWD3_MST_Pos (9U)
  3610. #define ADC123_CSR_AWD3_MST_Msk (0x1U << ADC123_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
  3611. #define ADC123_CSR_AWD3_MST ADC123_CSR_AWD3_MST_Msk /*!< Analog watchdog 3 flag of the master ADC */
  3612. #define ADC123_CSR_JQOVF_MST_Pos (10U)
  3613. #define ADC123_CSR_JQOVF_MST_Msk (0x1U << ADC123_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
  3614. #define ADC123_CSR_JQOVF_MST ADC123_CSR_JQOVF_MST_Msk /*!< Injected context queue overflow flag of the master ADC */
  3615. #define ADC123_CSR_ADRDY_SLV_Pos (16U)
  3616. #define ADC123_CSR_ADRDY_SLV_Msk (0x1U << ADC123_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
  3617. #define ADC123_CSR_ADRDY_SLV ADC123_CSR_ADRDY_SLV_Msk /*!< Slave ADC ready */
  3618. #define ADC123_CSR_EOSMP_SLV_Pos (17U)
  3619. #define ADC123_CSR_EOSMP_SLV_Msk (0x1U << ADC123_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
  3620. #define ADC123_CSR_EOSMP_SLV ADC123_CSR_EOSMP_SLV_Msk /*!< End of sampling phase flag of the slave ADC */
  3621. #define ADC123_CSR_EOC_SLV_Pos (18U)
  3622. #define ADC123_CSR_EOC_SLV_Msk (0x1U << ADC123_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
  3623. #define ADC123_CSR_EOC_SLV ADC123_CSR_EOC_SLV_Msk /*!< End of regular conversion of the slave ADC */
  3624. #define ADC123_CSR_EOS_SLV_Pos (19U)
  3625. #define ADC123_CSR_EOS_SLV_Msk (0x1U << ADC123_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
  3626. #define ADC123_CSR_EOS_SLV ADC123_CSR_EOS_SLV_Msk /*!< End of regular sequence flag of the slave ADC */
  3627. #define ADC123_CSR_OVR_SLV_Pos (20U)
  3628. #define ADC123_CSR_OVR_SLV_Msk (0x1U << ADC123_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
  3629. #define ADC123_CSR_OVR_SLV ADC123_CSR_OVR_SLV_Msk /*!< Overrun flag of the slave ADC */
  3630. #define ADC123_CSR_JEOC_SLV_Pos (21U)
  3631. #define ADC123_CSR_JEOC_SLV_Msk (0x1U << ADC123_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
  3632. #define ADC123_CSR_JEOC_SLV ADC123_CSR_JEOC_SLV_Msk /*!< End of injected conversion of the slave ADC */
  3633. #define ADC123_CSR_JEOS_SLV_Pos (22U)
  3634. #define ADC123_CSR_JEOS_SLV_Msk (0x1U << ADC123_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
  3635. #define ADC123_CSR_JEOS_SLV ADC123_CSR_JEOS_SLV_Msk /*!< End of injected sequence flag of the slave ADC */
  3636. #define ADC123_CSR_AWD1_SLV_Pos (23U)
  3637. #define ADC123_CSR_AWD1_SLV_Msk (0x1U << ADC123_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
  3638. #define ADC123_CSR_AWD1_SLV ADC123_CSR_AWD1_SLV_Msk /*!< Analog watchdog 1 flag of the slave ADC */
  3639. #define ADC123_CSR_AWD2_SLV_Pos (24U)
  3640. #define ADC123_CSR_AWD2_SLV_Msk (0x1U << ADC123_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
  3641. #define ADC123_CSR_AWD2_SLV ADC123_CSR_AWD2_SLV_Msk /*!< Analog watchdog 2 flag of the slave ADC */
  3642. #define ADC123_CSR_AWD3_SLV_Pos (25U)
  3643. #define ADC123_CSR_AWD3_SLV_Msk (0x1U << ADC123_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
  3644. #define ADC123_CSR_AWD3_SLV ADC123_CSR_AWD3_SLV_Msk /*!< Analog watchdog 3 flag of the slave ADC */
  3645. #define ADC123_CSR_JQOVF_SLV_Pos (26U)
  3646. #define ADC123_CSR_JQOVF_SLV_Msk (0x1U << ADC123_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
  3647. #define ADC123_CSR_JQOVF_SLV ADC123_CSR_JQOVF_SLV_Msk /*!< Injected context queue overflow flag of the slave ADC */
  3648. /******************** Bit definition for ADC_CCR register ********************/
  3649. #define ADC_CCR_DUAL_Pos (0U)
  3650. #define ADC_CCR_DUAL_Msk (0x1FU << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
  3651. #define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< Dual ADC mode selection */
  3652. #define ADC_CCR_DUAL_0 (0x01U << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
  3653. #define ADC_CCR_DUAL_1 (0x02U << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
  3654. #define ADC_CCR_DUAL_2 (0x04U << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
  3655. #define ADC_CCR_DUAL_3 (0x08U << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
  3656. #define ADC_CCR_DUAL_4 (0x10U << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
  3657. #define ADC_CCR_DELAY_Pos (8U)
  3658. #define ADC_CCR_DELAY_Msk (0xFU << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
  3659. #define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< Delay between 2 sampling phases */
  3660. #define ADC_CCR_DELAY_0 (0x1U << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
  3661. #define ADC_CCR_DELAY_1 (0x2U << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
  3662. #define ADC_CCR_DELAY_2 (0x4U << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
  3663. #define ADC_CCR_DELAY_3 (0x8U << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
  3664. #define ADC_CCR_DAMDF_Pos (14U)
  3665. #define ADC_CCR_DAMDF_Msk (0x3U << ADC_CCR_DAMDF_Pos) /*!< 0x0000C000 */
  3666. #define ADC_CCR_DAMDF ADC_CCR_DAMDF_Msk /*!< Dual ADC mode Data format */
  3667. #define ADC_CCR_DAMDF_0 (0x1U << ADC_CCR_DAMDF_Pos) /*!< 0x00004000 */
  3668. #define ADC_CCR_DAMDF_1 (0x2U << ADC_CCR_DAMDF_Pos) /*!< 0x00008000 */
  3669. #define ADC_CCR_CKMODE_Pos (16U)
  3670. #define ADC_CCR_CKMODE_Msk (0x3U << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
  3671. #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC clock mode */
  3672. #define ADC_CCR_CKMODE_0 (0x1U << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
  3673. #define ADC_CCR_CKMODE_1 (0x2U << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
  3674. #define ADC_CCR_PRESC_Pos (18U)
  3675. #define ADC_CCR_PRESC_Msk (0xFU << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
  3676. #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC prescaler */
  3677. #define ADC_CCR_PRESC_0 (0x1U << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
  3678. #define ADC_CCR_PRESC_1 (0x2U << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
  3679. #define ADC_CCR_PRESC_2 (0x4U << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
  3680. #define ADC_CCR_PRESC_3 (0x8U << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
  3681. #define ADC_CCR_VREFEN_Pos (22U)
  3682. #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
  3683. #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< VREFINT enable */
  3684. #define ADC_CCR_TSEN_Pos (23U)
  3685. #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
  3686. #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< Temperature sensor enable */
  3687. #define ADC_CCR_VBATEN_Pos (24U)
  3688. #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
  3689. #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< VBAT enable */
  3690. /******************** Bit definition for ADC_CDR register ********************/
  3691. #define ADC123_CDR_RDATA_MST_Pos (0U)
  3692. #define ADC123_CDR_RDATA_MST_Msk (0xFFFFU << ADC123_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
  3693. #define ADC123_CDR_RDATA_MST ADC123_CDR_RDATA_MST_Msk /*!< Regular Data of the master ADC */
  3694. #define ADC123_CDR_RDATA_MST_0 (0x0001U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
  3695. #define ADC123_CDR_RDATA_MST_1 (0x0002U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
  3696. #define ADC123_CDR_RDATA_MST_2 (0x0004U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
  3697. #define ADC123_CDR_RDATA_MST_3 (0x0008U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
  3698. #define ADC123_CDR_RDATA_MST_4 (0x0010U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
  3699. #define ADC123_CDR_RDATA_MST_5 (0x0020U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
  3700. #define ADC123_CDR_RDATA_MST_6 (0x0040U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
  3701. #define ADC123_CDR_RDATA_MST_7 (0x0080U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
  3702. #define ADC123_CDR_RDATA_MST_8 (0x0100U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
  3703. #define ADC123_CDR_RDATA_MST_9 (0x0200U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
  3704. #define ADC123_CDR_RDATA_MST_10 (0x0400U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
  3705. #define ADC123_CDR_RDATA_MST_11 (0x0800U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
  3706. #define ADC123_CDR_RDATA_MST_12 (0x1000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
  3707. #define ADC123_CDR_RDATA_MST_13 (0x2000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
  3708. #define ADC123_CDR_RDATA_MST_14 (0x4000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
  3709. #define ADC123_CDR_RDATA_MST_15 (0x8000U << ADC123_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
  3710. #define ADC123_CDR_RDATA_SLV_Pos (16U)
  3711. #define ADC123_CDR_RDATA_SLV_Msk (0xFFFFU << ADC123_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
  3712. #define ADC123_CDR_RDATA_SLV ADC123_CDR_RDATA_SLV_Msk /*!< Regular Data of the master ADC */
  3713. #define ADC123_CDR_RDATA_SLV_0 (0x0001U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
  3714. #define ADC123_CDR_RDATA_SLV_1 (0x0002U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
  3715. #define ADC123_CDR_RDATA_SLV_2 (0x0004U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
  3716. #define ADC123_CDR_RDATA_SLV_3 (0x0008U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
  3717. #define ADC123_CDR_RDATA_SLV_4 (0x0010U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
  3718. #define ADC123_CDR_RDATA_SLV_5 (0x0020U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
  3719. #define ADC123_CDR_RDATA_SLV_6 (0x0040U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
  3720. #define ADC123_CDR_RDATA_SLV_7 (0x0080U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
  3721. #define ADC123_CDR_RDATA_SLV_8 (0x0100U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
  3722. #define ADC123_CDR_RDATA_SLV_9 (0x0200U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
  3723. #define ADC123_CDR_RDATA_SLV_10 (0x0400U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
  3724. #define ADC123_CDR_RDATA_SLV_11 (0x0800U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
  3725. #define ADC123_CDR_RDATA_SLV_12 (0x1000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
  3726. #define ADC123_CDR_RDATA_SLV_13 (0x2000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
  3727. #define ADC123_CDR_RDATA_SLV_14 (0x4000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
  3728. #define ADC123_CDR_RDATA_SLV_15 (0x8000U << ADC123_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
  3729. /******************** Bit definition for ADC_CDR2 register ********************/
  3730. #define ADC123_CDR2_RDATA_ALT_Pos (0U)
  3731. #define ADC123_CDR2_RDATA_ALT_Msk (0xFFFFFFFFU << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0xFFFFFFFF */
  3732. #define ADC123_CDR2_RDATA_ALT ADC123_CDR2_RDATA_ALT_Msk /*!< Regular Data for dual Mode */
  3733. #define ADC123_CDR2_RDATA_ALT_0 (0x00000001U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000001 */
  3734. #define ADC123_CDR2_RDATA_ALT_1 (0x00000002U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000002 */
  3735. #define ADC123_CDR2_RDATA_ALT_2 (0x00000004U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000004 */
  3736. #define ADC123_CDR2_RDATA_ALT_3 (0x00000008U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000008 */
  3737. #define ADC123_CDR2_RDATA_ALT_4 (0x00000010U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000010 */
  3738. #define ADC123_CDR2_RDATA_ALT_5 (0x00000020U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000020 */
  3739. #define ADC123_CDR2_RDATA_ALT_6 (0x00000040U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000040 */
  3740. #define ADC123_CDR2_RDATA_ALT_7 (0x00000080U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000080 */
  3741. #define ADC123_CDR2_RDATA_ALT_8 (0x00000100U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000100 */
  3742. #define ADC123_CDR2_RDATA_ALT_9 (0x00000200U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000200 */
  3743. #define ADC123_CDR2_RDATA_ALT_10 (0x00000400U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000400 */
  3744. #define ADC123_CDR2_RDATA_ALT_11 (0x00000800U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00000800 */
  3745. #define ADC123_CDR2_RDATA_ALT_12 (0x00001000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00001000 */
  3746. #define ADC123_CDR2_RDATA_ALT_13 (0x00002000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00002000 */
  3747. #define ADC123_CDR2_RDATA_ALT_14 (0x00004000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00004000 */
  3748. #define ADC123_CDR2_RDATA_ALT_15 (0x00008000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00008000 */
  3749. #define ADC123_CDR2_RDATA_ALT_16 (0x00010000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00010000 */
  3750. #define ADC123_CDR2_RDATA_ALT_17 (0x00020000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00020000 */
  3751. #define ADC123_CDR2_RDATA_ALT_18 (0x00040000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00040000 */
  3752. #define ADC123_CDR2_RDATA_ALT_19 (0x00080000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00080000 */
  3753. #define ADC123_CDR2_RDATA_ALT_20 (0x00100000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00100000 */
  3754. #define ADC123_CDR2_RDATA_ALT_21 (0x00200000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00200000 */
  3755. #define ADC123_CDR2_RDATA_ALT_22 (0x00400000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00400000 */
  3756. #define ADC123_CDR2_RDATA_ALT_23 (0x00800000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x00800000 */
  3757. #define ADC123_CDR2_RDATA_ALT_24 (0x01000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x01000000 */
  3758. #define ADC123_CDR2_RDATA_ALT_25 (0x02000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x02000000 */
  3759. #define ADC123_CDR2_RDATA_ALT_26 (0x04000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x04000000 */
  3760. #define ADC123_CDR2_RDATA_ALT_27 (0x08000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x08000000 */
  3761. #define ADC123_CDR2_RDATA_ALT_28 (0x10000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x10000000 */
  3762. #define ADC123_CDR2_RDATA_ALT_29 (0x20000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x20000000 */
  3763. #define ADC123_CDR2_RDATA_ALT_30 (0x40000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x40000000 */
  3764. #define ADC123_CDR2_RDATA_ALT_31 (0x80000000U << ADC123_CDR2_RDATA_ALT_Pos) /*!< 0x80000000 */
  3765. /******************************************************************************/
  3766. /* */
  3767. /* VREFBUF */
  3768. /* */
  3769. /******************************************************************************/
  3770. /******************* Bit definition for VREFBUF_CSR register ****************/
  3771. #define VREFBUF_CSR_ENVR_Pos (0U)
  3772. #define VREFBUF_CSR_ENVR_Msk (0x1U << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */
  3773. #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */
  3774. #define VREFBUF_CSR_HIZ_Pos (1U)
  3775. #define VREFBUF_CSR_HIZ_Msk (0x1U << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */
  3776. #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */
  3777. #define VREFBUF_CSR_VRR_Pos (3U)
  3778. #define VREFBUF_CSR_VRR_Msk (0x1U << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */
  3779. #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */
  3780. #define VREFBUF_CSR_VRS_Pos (4U)
  3781. #define VREFBUF_CSR_VRS_Msk (0x7U << VREFBUF_CSR_VRS_Pos) /*!< 0x00000070 */
  3782. #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */
  3783. #define VREFBUF_CSR_VRS_OUT1 ((uint32_t)0x00000000) /*!<Voltage reference VREF_OUT1 */
  3784. #define VREFBUF_CSR_VRS_OUT2_Pos (4U)
  3785. #define VREFBUF_CSR_VRS_OUT2_Msk (0x1U << VREFBUF_CSR_VRS_OUT2_Pos) /*!< 0x00000010 */
  3786. #define VREFBUF_CSR_VRS_OUT2 VREFBUF_CSR_VRS_OUT2_Msk /*!<Voltage reference VREF_OUT2 */
  3787. #define VREFBUF_CSR_VRS_OUT3_Pos (5U)
  3788. #define VREFBUF_CSR_VRS_OUT3_Msk (0x1U << VREFBUF_CSR_VRS_OUT3_Pos) /*!< 0x00000020 */
  3789. #define VREFBUF_CSR_VRS_OUT3 VREFBUF_CSR_VRS_OUT3_Msk /*!<Voltage reference VREF_OUT3 */
  3790. #define VREFBUF_CSR_VRS_OUT4_Pos (4U)
  3791. #define VREFBUF_CSR_VRS_OUT4_Msk (0x3U << VREFBUF_CSR_VRS_OUT4_Pos) /*!< 0x00000030 */
  3792. #define VREFBUF_CSR_VRS_OUT4 VREFBUF_CSR_VRS_OUT4_Msk /*!<Voltage reference VREF_OUT4 */
  3793. /******************* Bit definition for VREFBUF_CCR register ****************/
  3794. #define VREFBUF_CCR_TRIM_Pos (0U)
  3795. #define VREFBUF_CCR_TRIM_Msk (0x3FU << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */
  3796. #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */
  3797. /******************************************************************************/
  3798. /* */
  3799. /* Flexible Datarate Controller Area Network */
  3800. /* */
  3801. /******************************************************************************/
  3802. /*!<FDCAN control and status registers */
  3803. /***************** Bit definition for FDCAN_CREL register *******************/
  3804. #define FDCAN_CREL_DAY_Pos (0U)
  3805. #define FDCAN_CREL_DAY_Msk (0xFFU << FDCAN_CREL_DAY_Pos) /*!< 0x000000FF */
  3806. #define FDCAN_CREL_DAY FDCAN_CREL_DAY_Msk /*!<Timestamp Day */
  3807. #define FDCAN_CREL_MON_Pos (8U)
  3808. #define FDCAN_CREL_MON_Msk (0xFFU << FDCAN_CREL_MON_Pos) /*!< 0x0000FF00 */
  3809. #define FDCAN_CREL_MON FDCAN_CREL_MON_Msk /*!<Timestamp Month */
  3810. #define FDCAN_CREL_YEAR_Pos (16U)
  3811. #define FDCAN_CREL_YEAR_Msk (0xFU << FDCAN_CREL_YEAR_Pos) /*!< 0x000F0000 */
  3812. #define FDCAN_CREL_YEAR FDCAN_CREL_YEAR_Msk /*!<Timestamp Year */
  3813. #define FDCAN_CREL_SUBSTEP_Pos (20U)
  3814. #define FDCAN_CREL_SUBSTEP_Msk (0xFU << FDCAN_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  3815. #define FDCAN_CREL_SUBSTEP FDCAN_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  3816. #define FDCAN_CREL_STEP_Pos (24U)
  3817. #define FDCAN_CREL_STEP_Msk (0xFU << FDCAN_CREL_STEP_Pos) /*!< 0x0F000000 */
  3818. #define FDCAN_CREL_STEP FDCAN_CREL_STEP_Msk /*!<Step of Core release */
  3819. #define FDCAN_CREL_REL_Pos (28U)
  3820. #define FDCAN_CREL_REL_Msk (0xFU << FDCAN_CREL_REL_Pos) /*!< 0xF0000000 */
  3821. #define FDCAN_CREL_REL FDCAN_CREL_REL_Msk /*!<Core release */
  3822. /***************** Bit definition for FDCAN_ENDN register *******************/
  3823. #define FDCAN_ENDN_ETV_Pos (0U)
  3824. #define FDCAN_ENDN_ETV_Msk (0xFFFFFFFFU << FDCAN_ENDN_ETV_Pos) /*!< 0xFFFFFFFF */
  3825. #define FDCAN_ENDN_ETV FDCAN_ENDN_ETV_Msk /*!<Endiannes Test Value */
  3826. /***************** Bit definition for FDCAN_DBTP register *******************/
  3827. #define FDCAN_DBTP_DSJW_Pos (0U)
  3828. #define FDCAN_DBTP_DSJW_Msk (0xFU << FDCAN_DBTP_DSJW_Pos) /*!< 0x0000000F */
  3829. #define FDCAN_DBTP_DSJW FDCAN_DBTP_DSJW_Msk /*!<Synchronization Jump Width */
  3830. #define FDCAN_DBTP_DTSEG2_Pos (4U)
  3831. #define FDCAN_DBTP_DTSEG2_Msk (0xFU << FDCAN_DBTP_DTSEG2_Pos) /*!< 0x000000F0 */
  3832. #define FDCAN_DBTP_DTSEG2 FDCAN_DBTP_DTSEG2_Msk /*!<Data time segment after sample point */
  3833. #define FDCAN_DBTP_DTSEG1_Pos (8U)
  3834. #define FDCAN_DBTP_DTSEG1_Msk (0xFU << FDCAN_DBTP_DTSEG1_Pos) /*!< 0x00000F00 */
  3835. #define FDCAN_DBTP_DTSEG1 FDCAN_DBTP_DTSEG1_Msk /*!<Data time segment before sample point */
  3836. #define FDCAN_DBTP_DBRP_Pos (16U)
  3837. #define FDCAN_DBTP_DBRP_Msk (0x1FU << FDCAN_DBTP_DBRP_Pos) /*!< 0x001F0000 */
  3838. #define FDCAN_DBTP_DBRP FDCAN_DBTP_DBRP_Msk /*!<Data BIt Rate Prescaler */
  3839. #define FDCAN_DBTP_TDC_Pos (23U)
  3840. #define FDCAN_DBTP_TDC_Msk (0x1U << FDCAN_DBTP_TDC_Pos) /*!< 0x00800000 */
  3841. #define FDCAN_DBTP_TDC FDCAN_DBTP_TDC_Msk /*!<Transceiver Delay Compensation */
  3842. /***************** Bit definition for FDCAN_TEST register *******************/
  3843. #define FDCAN_TEST_LBCK_Pos (4U)
  3844. #define FDCAN_TEST_LBCK_Msk (0x1U << FDCAN_TEST_LBCK_Pos) /*!< 0x00000010 */
  3845. #define FDCAN_TEST_LBCK FDCAN_TEST_LBCK_Msk /*!<Loop Back mode */
  3846. #define FDCAN_TEST_TX_Pos (5U)
  3847. #define FDCAN_TEST_TX_Msk (0x3U << FDCAN_TEST_TX_Pos) /*!< 0x00000060 */
  3848. #define FDCAN_TEST_TX FDCAN_TEST_TX_Msk /*!<Control of Transmit Pin */
  3849. #define FDCAN_TEST_RX_Pos (7U)
  3850. #define FDCAN_TEST_RX_Msk (0x1U << FDCAN_TEST_RX_Pos) /*!< 0x00000080 */
  3851. #define FDCAN_TEST_RX FDCAN_TEST_RX_Msk /*!<Receive Pin */
  3852. /***************** Bit definition for FDCAN_RWD register ********************/
  3853. #define FDCAN_RWD_WDC_Pos (0U)
  3854. #define FDCAN_RWD_WDC_Msk (0xFU << FDCAN_RWD_WDC_Pos) /*!< 0x0000000F */
  3855. #define FDCAN_RWD_WDC FDCAN_RWD_WDC_Msk /*!<Watchdog configuration */
  3856. #define FDCAN_RWD_WDV_Pos (4U)
  3857. #define FDCAN_RWD_WDV_Msk (0xFU << FDCAN_RWD_WDV_Pos) /*!< 0x000000F0 */
  3858. #define FDCAN_RWD_WDV FDCAN_RWD_WDV_Msk /*!<Watchdog value */
  3859. /***************** Bit definition for FDCAN_CCCR register ********************/
  3860. #define FDCAN_CCCR_INIT_Pos (0U)
  3861. #define FDCAN_CCCR_INIT_Msk (0x1U << FDCAN_CCCR_INIT_Pos) /*!< 0x00000001 */
  3862. #define FDCAN_CCCR_INIT FDCAN_CCCR_INIT_Msk /*!<Initialization */
  3863. #define FDCAN_CCCR_CCE_Pos (1U)
  3864. #define FDCAN_CCCR_CCE_Msk (0x1U << FDCAN_CCCR_CCE_Pos) /*!< 0x00000002 */
  3865. #define FDCAN_CCCR_CCE FDCAN_CCCR_CCE_Msk /*!<Configuration Change Enable */
  3866. #define FDCAN_CCCR_ASM_Pos (2U)
  3867. #define FDCAN_CCCR_ASM_Msk (0x1U << FDCAN_CCCR_ASM_Pos) /*!< 0x00000004 */
  3868. #define FDCAN_CCCR_ASM FDCAN_CCCR_ASM_Msk /*!<ASM Restricted Operation Mode */
  3869. #define FDCAN_CCCR_CSA_Pos (3U)
  3870. #define FDCAN_CCCR_CSA_Msk (0x1U << FDCAN_CCCR_CSA_Pos) /*!< 0x00000008 */
  3871. #define FDCAN_CCCR_CSA FDCAN_CCCR_CSA_Msk /*!<Clock Stop Acknowledge */
  3872. #define FDCAN_CCCR_CSR_Pos (4U)
  3873. #define FDCAN_CCCR_CSR_Msk (0x1U << FDCAN_CCCR_CSR_Pos) /*!< 0x00000010 */
  3874. #define FDCAN_CCCR_CSR FDCAN_CCCR_CSR_Msk /*!<Clock Stop Request */
  3875. #define FDCAN_CCCR_MON_Pos (5U)
  3876. #define FDCAN_CCCR_MON_Msk (0x1U << FDCAN_CCCR_MON_Pos) /*!< 0x00000020 */
  3877. #define FDCAN_CCCR_MON FDCAN_CCCR_MON_Msk /*!<Bus Monitoring Mode */
  3878. #define FDCAN_CCCR_DAR_Pos (6U)
  3879. #define FDCAN_CCCR_DAR_Msk (0x1U << FDCAN_CCCR_DAR_Pos) /*!< 0x00000040 */
  3880. #define FDCAN_CCCR_DAR FDCAN_CCCR_DAR_Msk /*!<Disable Automatic Retransmission */
  3881. #define FDCAN_CCCR_TEST_Pos (7U)
  3882. #define FDCAN_CCCR_TEST_Msk (0x1U << FDCAN_CCCR_TEST_Pos) /*!< 0x00000080 */
  3883. #define FDCAN_CCCR_TEST FDCAN_CCCR_TEST_Msk /*!<Test Mode Enable */
  3884. #define FDCAN_CCCR_FDOE_Pos (8U)
  3885. #define FDCAN_CCCR_FDOE_Msk (0x1U << FDCAN_CCCR_FDOE_Pos) /*!< 0x00000100 */
  3886. #define FDCAN_CCCR_FDOE FDCAN_CCCR_FDOE_Msk /*!<FD Operation Enable */
  3887. #define FDCAN_CCCR_BRSE_Pos (9U)
  3888. #define FDCAN_CCCR_BRSE_Msk (0x1U << FDCAN_CCCR_BRSE_Pos) /*!< 0x00000200 */
  3889. #define FDCAN_CCCR_BRSE FDCAN_CCCR_BRSE_Msk /*!<FDCAN Bit Rate Switching */
  3890. #define FDCAN_CCCR_PXHD_Pos (12U)
  3891. #define FDCAN_CCCR_PXHD_Msk (0x1U << FDCAN_CCCR_PXHD_Pos) /*!< 0x00001000 */
  3892. #define FDCAN_CCCR_PXHD FDCAN_CCCR_PXHD_Msk /*!<Protocol Exception Handling Disable */
  3893. #define FDCAN_CCCR_EFBI_Pos (13U)
  3894. #define FDCAN_CCCR_EFBI_Msk (0x1U << FDCAN_CCCR_EFBI_Pos) /*!< 0x00002000 */
  3895. #define FDCAN_CCCR_EFBI FDCAN_CCCR_EFBI_Msk /*!<Edge Filtering during Bus Integration */
  3896. #define FDCAN_CCCR_TXP_Pos (14U)
  3897. #define FDCAN_CCCR_TXP_Msk (0x1U << FDCAN_CCCR_TXP_Pos) /*!< 0x00004000 */
  3898. #define FDCAN_CCCR_TXP FDCAN_CCCR_TXP_Msk /*!<Two CAN bit times Pause */
  3899. #define FDCAN_CCCR_NISO_Pos (15U)
  3900. #define FDCAN_CCCR_NISO_Msk (0x1U << FDCAN_CCCR_NISO_Pos) /*!< 0x00008000 */
  3901. #define FDCAN_CCCR_NISO FDCAN_CCCR_NISO_Msk /*!<Non ISO Operation */
  3902. /***************** Bit definition for FDCAN_NBTP register ********************/
  3903. #define FDCAN_NBTP_TSEG2_Pos (0U)
  3904. #define FDCAN_NBTP_TSEG2_Msk (0x7FU << FDCAN_NBTP_TSEG2_Pos) /*!< 0x0000007F */
  3905. #define FDCAN_NBTP_TSEG2 FDCAN_NBTP_TSEG2_Msk /*!<Nominal Time segment after sample point */
  3906. #define FDCAN_NBTP_NTSEG1_Pos (8U)
  3907. #define FDCAN_NBTP_NTSEG1_Msk (0xFFU << FDCAN_NBTP_NTSEG1_Pos) /*!< 0x0000FF00 */
  3908. #define FDCAN_NBTP_NTSEG1 FDCAN_NBTP_NTSEG1_Msk /*!<Nominal Time segment before sample point */
  3909. #define FDCAN_NBTP_NBRP_Pos (16U)
  3910. #define FDCAN_NBTP_NBRP_Msk (0x1FFU << FDCAN_NBTP_NBRP_Pos) /*!< 0x01FF0000 */
  3911. #define FDCAN_NBTP_NBRP FDCAN_NBTP_NBRP_Msk /*!<Bit Rate Prescaler */
  3912. #define FDCAN_NBTP_NSJW_Pos (25U)
  3913. #define FDCAN_NBTP_NSJW_Msk (0x7FU << FDCAN_NBTP_NSJW_Pos) /*!< 0xFE000000 */
  3914. #define FDCAN_NBTP_NSJW FDCAN_NBTP_NSJW_Msk /*!<Nominal (Re)Synchronization Jump Width */
  3915. /***************** Bit definition for FDCAN_TSCC register ********************/
  3916. #define FDCAN_TSCC_TSS_Pos (0U)
  3917. #define FDCAN_TSCC_TSS_Msk (0x3U << FDCAN_TSCC_TSS_Pos) /*!< 0x00000003 */
  3918. #define FDCAN_TSCC_TSS FDCAN_TSCC_TSS_Msk /*!<Timestamp Select */
  3919. #define FDCAN_TSCC_TCP_Pos (16U)
  3920. #define FDCAN_TSCC_TCP_Msk (0xFU << FDCAN_TSCC_TCP_Pos) /*!< 0x000F0000 */
  3921. #define FDCAN_TSCC_TCP FDCAN_TSCC_TCP_Msk /*!<Timestamp Counter Prescaler */
  3922. /***************** Bit definition for FDCAN_TSCV register ********************/
  3923. #define FDCAN_TSCV_TSC_Pos (0U)
  3924. #define FDCAN_TSCV_TSC_Msk (0xFFFFU << FDCAN_TSCV_TSC_Pos) /*!< 0x0000FFFF */
  3925. #define FDCAN_TSCV_TSC FDCAN_TSCV_TSC_Msk /*!<Timestamp Counter */
  3926. /***************** Bit definition for FDCAN_TOCC register ********************/
  3927. #define FDCAN_TOCC_ETOC_Pos (0U)
  3928. #define FDCAN_TOCC_ETOC_Msk (0x1U << FDCAN_TOCC_ETOC_Pos) /*!< 0x00000001 */
  3929. #define FDCAN_TOCC_ETOC FDCAN_TOCC_ETOC_Msk /*!<Enable Timeout Counter */
  3930. #define FDCAN_TOCC_TOS_Pos (1U)
  3931. #define FDCAN_TOCC_TOS_Msk (0x3U << FDCAN_TOCC_TOS_Pos) /*!< 0x00000006 */
  3932. #define FDCAN_TOCC_TOS FDCAN_TOCC_TOS_Msk /*!<Timeout Select */
  3933. #define FDCAN_TOCC_TOP_Pos (16U)
  3934. #define FDCAN_TOCC_TOP_Msk (0xFFFFU << FDCAN_TOCC_TOP_Pos) /*!< 0xFFFF0000 */
  3935. #define FDCAN_TOCC_TOP FDCAN_TOCC_TOP_Msk /*!<Timeout Period */
  3936. /***************** Bit definition for FDCAN_TOCV register ********************/
  3937. #define FDCAN_TOCV_TOC_Pos (0U)
  3938. #define FDCAN_TOCV_TOC_Msk (0xFFFFU << FDCAN_TOCV_TOC_Pos) /*!< 0x0000FFFF */
  3939. #define FDCAN_TOCV_TOC FDCAN_TOCV_TOC_Msk /*!<Timeout Counter */
  3940. /***************** Bit definition for FDCAN_ECR register *********************/
  3941. #define FDCAN_ECR_TEC_Pos (0U)
  3942. #define FDCAN_ECR_TEC_Msk (0xFU << FDCAN_ECR_TEC_Pos) /*!< 0x0000000F */
  3943. #define FDCAN_ECR_TEC FDCAN_ECR_TEC_Msk /*!<Transmit Error Counter */
  3944. #define FDCAN_ECR_TREC_Pos (8U)
  3945. #define FDCAN_ECR_TREC_Msk (0x7FU << FDCAN_ECR_TREC_Pos) /*!< 0x00007F00 */
  3946. #define FDCAN_ECR_TREC FDCAN_ECR_TREC_Msk /*!<Receive Error Counter */
  3947. #define FDCAN_ECR_RP_Pos (15U)
  3948. #define FDCAN_ECR_RP_Msk (0x1U << FDCAN_ECR_RP_Pos) /*!< 0x00008000 */
  3949. #define FDCAN_ECR_RP FDCAN_ECR_RP_Msk /*!<Receive Error Passive */
  3950. #define FDCAN_ECR_CEL_Pos (16U)
  3951. #define FDCAN_ECR_CEL_Msk (0xFFU << FDCAN_ECR_CEL_Pos) /*!< 0x00FF0000 */
  3952. #define FDCAN_ECR_CEL FDCAN_ECR_CEL_Msk /*!<CAN Error Logging */
  3953. /***************** Bit definition for FDCAN_PSR register *********************/
  3954. #define FDCAN_PSR_LEC_Pos (0U)
  3955. #define FDCAN_PSR_LEC_Msk (0x7U << FDCAN_PSR_LEC_Pos) /*!< 0x00000007 */
  3956. #define FDCAN_PSR_LEC FDCAN_PSR_LEC_Msk /*!<Last Error Code */
  3957. #define FDCAN_PSR_ACT_Pos (3U)
  3958. #define FDCAN_PSR_ACT_Msk (0x3U << FDCAN_PSR_ACT_Pos) /*!< 0x00000018 */
  3959. #define FDCAN_PSR_ACT FDCAN_PSR_ACT_Msk /*!<Activity */
  3960. #define FDCAN_PSR_EP_Pos (5U)
  3961. #define FDCAN_PSR_EP_Msk (0x1U << FDCAN_PSR_EP_Pos) /*!< 0x00000020 */
  3962. #define FDCAN_PSR_EP FDCAN_PSR_EP_Msk /*!<Error Passive */
  3963. #define FDCAN_PSR_EW_Pos (6U)
  3964. #define FDCAN_PSR_EW_Msk (0x1U << FDCAN_PSR_EW_Pos) /*!< 0x00000040 */
  3965. #define FDCAN_PSR_EW FDCAN_PSR_EW_Msk /*!<Warning Status */
  3966. #define FDCAN_PSR_BO_Pos (7U)
  3967. #define FDCAN_PSR_BO_Msk (0x1U << FDCAN_PSR_BO_Pos) /*!< 0x00000080 */
  3968. #define FDCAN_PSR_BO FDCAN_PSR_BO_Msk /*!<Bus_Off Status */
  3969. #define FDCAN_PSR_DLEC_Pos (8U)
  3970. #define FDCAN_PSR_DLEC_Msk (0x7U << FDCAN_PSR_DLEC_Pos) /*!< 0x00000700 */
  3971. #define FDCAN_PSR_DLEC FDCAN_PSR_DLEC_Msk /*!<Data Last Error Code */
  3972. #define FDCAN_PSR_RESI_Pos (11U)
  3973. #define FDCAN_PSR_RESI_Msk (0x1U << FDCAN_PSR_RESI_Pos) /*!< 0x00000800 */
  3974. #define FDCAN_PSR_RESI FDCAN_PSR_RESI_Msk /*!<ESI flag of last received FDCAN Message */
  3975. #define FDCAN_PSR_RBRS_Pos (12U)
  3976. #define FDCAN_PSR_RBRS_Msk (0x1U << FDCAN_PSR_RBRS_Pos) /*!< 0x00001000 */
  3977. #define FDCAN_PSR_RBRS FDCAN_PSR_RBRS_Msk /*!<BRS flag of last received FDCAN Message */
  3978. #define FDCAN_PSR_REDL_Pos (13U)
  3979. #define FDCAN_PSR_REDL_Msk (0x1U << FDCAN_PSR_REDL_Pos) /*!< 0x00002000 */
  3980. #define FDCAN_PSR_REDL FDCAN_PSR_REDL_Msk /*!<Received FDCAN Message */
  3981. #define FDCAN_PSR_PXE_Pos (14U)
  3982. #define FDCAN_PSR_PXE_Msk (0x1U << FDCAN_PSR_PXE_Pos) /*!< 0x00004000 */
  3983. #define FDCAN_PSR_PXE FDCAN_PSR_PXE_Msk /*!<Protocol Exception Event */
  3984. #define FDCAN_PSR_TDCV_Pos (16U)
  3985. #define FDCAN_PSR_TDCV_Msk (0x7FU << FDCAN_PSR_TDCV_Pos) /*!< 0x007F0000 */
  3986. #define FDCAN_PSR_TDCV FDCAN_PSR_TDCV_Msk /*!<Transmitter Delay Compensation Value */
  3987. /***************** Bit definition for FDCAN_TDCR register ********************/
  3988. #define FDCAN_TDCR_TDCF_Pos (0U)
  3989. #define FDCAN_TDCR_TDCF_Msk (0x7FU << FDCAN_TDCR_TDCF_Pos) /*!< 0x0000007F */
  3990. #define FDCAN_TDCR_TDCF FDCAN_TDCR_TDCF_Msk /*!<Transmitter Delay Compensation Filter */
  3991. #define FDCAN_TDCR_TDCO_Pos (8U)
  3992. #define FDCAN_TDCR_TDCO_Msk (0x7FU << FDCAN_TDCR_TDCO_Pos) /*!< 0x00007F00 */
  3993. #define FDCAN_TDCR_TDCO FDCAN_TDCR_TDCO_Msk /*!<Transmitter Delay Compensation Offset */
  3994. /***************** Bit definition for FDCAN_IR register **********************/
  3995. #define FDCAN_IR_RF0N_Pos (0U)
  3996. #define FDCAN_IR_RF0N_Msk (0x1U << FDCAN_IR_RF0N_Pos) /*!< 0x00000001 */
  3997. #define FDCAN_IR_RF0N FDCAN_IR_RF0N_Msk /*!<Rx FIFO 0 New Message */
  3998. #define FDCAN_IR_RF0W_Pos (1U)
  3999. #define FDCAN_IR_RF0W_Msk (0x1U << FDCAN_IR_RF0W_Pos) /*!< 0x00000002 */
  4000. #define FDCAN_IR_RF0W FDCAN_IR_RF0W_Msk /*!<Rx FIFO 0 Watermark Reached */
  4001. #define FDCAN_IR_RF0F_Pos (2U)
  4002. #define FDCAN_IR_RF0F_Msk (0x1U << FDCAN_IR_RF0F_Pos) /*!< 0x00000004 */
  4003. #define FDCAN_IR_RF0F FDCAN_IR_RF0F_Msk /*!<Rx FIFO 0 Full */
  4004. #define FDCAN_IR_RF0L_Pos (3U)
  4005. #define FDCAN_IR_RF0L_Msk (0x1U << FDCAN_IR_RF0L_Pos) /*!< 0x00000008 */
  4006. #define FDCAN_IR_RF0L FDCAN_IR_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  4007. #define FDCAN_IR_RF1N_Pos (4U)
  4008. #define FDCAN_IR_RF1N_Msk (0x1U << FDCAN_IR_RF1N_Pos) /*!< 0x00000010 */
  4009. #define FDCAN_IR_RF1N FDCAN_IR_RF1N_Msk /*!<Rx FIFO 1 New Message */
  4010. #define FDCAN_IR_RF1W_Pos (5U)
  4011. #define FDCAN_IR_RF1W_Msk (0x1U << FDCAN_IR_RF1W_Pos) /*!< 0x00000020 */
  4012. #define FDCAN_IR_RF1W FDCAN_IR_RF1W_Msk /*!<Rx FIFO 1 Watermark Reached */
  4013. #define FDCAN_IR_RF1F_Pos (6U)
  4014. #define FDCAN_IR_RF1F_Msk (0x1U << FDCAN_IR_RF1F_Pos) /*!< 0x00000040 */
  4015. #define FDCAN_IR_RF1F FDCAN_IR_RF1F_Msk /*!<Rx FIFO 1 Full */
  4016. #define FDCAN_IR_RF1L_Pos (7U)
  4017. #define FDCAN_IR_RF1L_Msk (0x1U << FDCAN_IR_RF1L_Pos) /*!< 0x00000080 */
  4018. #define FDCAN_IR_RF1L FDCAN_IR_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  4019. #define FDCAN_IR_HPM_Pos (8U)
  4020. #define FDCAN_IR_HPM_Msk (0x1U << FDCAN_IR_HPM_Pos) /*!< 0x00000100 */
  4021. #define FDCAN_IR_HPM FDCAN_IR_HPM_Msk /*!<High Priority Message */
  4022. #define FDCAN_IR_TC_Pos (9U)
  4023. #define FDCAN_IR_TC_Msk (0x1U << FDCAN_IR_TC_Pos) /*!< 0x00000200 */
  4024. #define FDCAN_IR_TC FDCAN_IR_TC_Msk /*!<Transmission Completed */
  4025. #define FDCAN_IR_TCF_Pos (10U)
  4026. #define FDCAN_IR_TCF_Msk (0x1U << FDCAN_IR_TCF_Pos) /*!< 0x00000400 */
  4027. #define FDCAN_IR_TCF FDCAN_IR_TCF_Msk /*!<Transmission Cancellation Finished */
  4028. #define FDCAN_IR_TFE_Pos (11U)
  4029. #define FDCAN_IR_TFE_Msk (0x1U << FDCAN_IR_TFE_Pos) /*!< 0x00000800 */
  4030. #define FDCAN_IR_TFE FDCAN_IR_TFE_Msk /*!<Tx FIFO Empty */
  4031. #define FDCAN_IR_TEFN_Pos (12U)
  4032. #define FDCAN_IR_TEFN_Msk (0x1U << FDCAN_IR_TEFN_Pos) /*!< 0x00001000 */
  4033. #define FDCAN_IR_TEFN FDCAN_IR_TEFN_Msk /*!<Tx Event FIFO New Entry */
  4034. #define FDCAN_IR_TEFW_Pos (13U)
  4035. #define FDCAN_IR_TEFW_Msk (0x1U << FDCAN_IR_TEFW_Pos) /*!< 0x00002000 */
  4036. #define FDCAN_IR_TEFW FDCAN_IR_TEFW_Msk /*!<Tx Event FIFO Watermark Reached */
  4037. #define FDCAN_IR_TEFF_Pos (14U)
  4038. #define FDCAN_IR_TEFF_Msk (0x1U << FDCAN_IR_TEFF_Pos) /*!< 0x00004000 */
  4039. #define FDCAN_IR_TEFF FDCAN_IR_TEFF_Msk /*!<Tx Event FIFO Full */
  4040. #define FDCAN_IR_TEFL_Pos (15U)
  4041. #define FDCAN_IR_TEFL_Msk (0x1U << FDCAN_IR_TEFL_Pos) /*!< 0x00008000 */
  4042. #define FDCAN_IR_TEFL FDCAN_IR_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4043. #define FDCAN_IR_TSW_Pos (16U)
  4044. #define FDCAN_IR_TSW_Msk (0x1U << FDCAN_IR_TSW_Pos) /*!< 0x00010000 */
  4045. #define FDCAN_IR_TSW FDCAN_IR_TSW_Msk /*!<Timestamp Wraparound */
  4046. #define FDCAN_IR_MRAF_Pos (17U)
  4047. #define FDCAN_IR_MRAF_Msk (0x1U << FDCAN_IR_MRAF_Pos) /*!< 0x00020000 */
  4048. #define FDCAN_IR_MRAF FDCAN_IR_MRAF_Msk /*!<Message RAM Access Failure */
  4049. #define FDCAN_IR_TOO_Pos (18U)
  4050. #define FDCAN_IR_TOO_Msk (0x1U << FDCAN_IR_TOO_Pos) /*!< 0x00040000 */
  4051. #define FDCAN_IR_TOO FDCAN_IR_TOO_Msk /*!<Timeout Occurred */
  4052. #define FDCAN_IR_DRX_Pos (19U)
  4053. #define FDCAN_IR_DRX_Msk (0x1U << FDCAN_IR_DRX_Pos) /*!< 0x00080000 */
  4054. #define FDCAN_IR_DRX FDCAN_IR_DRX_Msk /*!<Message stored to Dedicated Rx Buffer */
  4055. #define FDCAN_IR_ELO_Pos (22U)
  4056. #define FDCAN_IR_ELO_Msk (0x1U << FDCAN_IR_ELO_Pos) /*!< 0x00400000 */
  4057. #define FDCAN_IR_ELO FDCAN_IR_ELO_Msk /*!<Error Logging Overflow */
  4058. #define FDCAN_IR_EP_Pos (23U)
  4059. #define FDCAN_IR_EP_Msk (0x1U << FDCAN_IR_EP_Pos) /*!< 0x00800000 */
  4060. #define FDCAN_IR_EP FDCAN_IR_EP_Msk /*!<Error Passive */
  4061. #define FDCAN_IR_EW_Pos (24U)
  4062. #define FDCAN_IR_EW_Msk (0x1U << FDCAN_IR_EW_Pos) /*!< 0x01000000 */
  4063. #define FDCAN_IR_EW FDCAN_IR_EW_Msk /*!<Warning Status */
  4064. #define FDCAN_IR_BO_Pos (25U)
  4065. #define FDCAN_IR_BO_Msk (0x1U << FDCAN_IR_BO_Pos) /*!< 0x02000000 */
  4066. #define FDCAN_IR_BO FDCAN_IR_BO_Msk /*!<Bus_Off Status */
  4067. #define FDCAN_IR_WDI_Pos (26U)
  4068. #define FDCAN_IR_WDI_Msk (0x1U << FDCAN_IR_WDI_Pos) /*!< 0x04000000 */
  4069. #define FDCAN_IR_WDI FDCAN_IR_WDI_Msk /*!<Watchdog Interrupt */
  4070. #define FDCAN_IR_PEA_Pos (27U)
  4071. #define FDCAN_IR_PEA_Msk (0x1U << FDCAN_IR_PEA_Pos) /*!< 0x08000000 */
  4072. #define FDCAN_IR_PEA FDCAN_IR_PEA_Msk /*!<Protocol Error in Arbitration Phase */
  4073. #define FDCAN_IR_PED_Pos (28U)
  4074. #define FDCAN_IR_PED_Msk (0x1U << FDCAN_IR_PED_Pos) /*!< 0x10000000 */
  4075. #define FDCAN_IR_PED FDCAN_IR_PED_Msk /*!<Protocol Error in Data Phase */
  4076. #define FDCAN_IR_ARA_Pos (29U)
  4077. #define FDCAN_IR_ARA_Msk (0x1U << FDCAN_IR_ARA_Pos) /*!< 0x20000000 */
  4078. #define FDCAN_IR_ARA FDCAN_IR_ARA_Msk /*!<Access to Reserved Address */
  4079. /***************** Bit definition for FDCAN_IE register **********************/
  4080. #define FDCAN_IE_RF0NE_Pos (0U)
  4081. #define FDCAN_IE_RF0NE_Msk (0x1U << FDCAN_IE_RF0NE_Pos) /*!< 0x00000001 */
  4082. #define FDCAN_IE_RF0NE FDCAN_IE_RF0NE_Msk /*!<Rx FIFO 0 New Message Enable */
  4083. #define FDCAN_IE_RF0WE_Pos (1U)
  4084. #define FDCAN_IE_RF0WE_Msk (0x1U << FDCAN_IE_RF0WE_Pos) /*!< 0x00000002 */
  4085. #define FDCAN_IE_RF0WE FDCAN_IE_RF0WE_Msk /*!<Rx FIFO 0 Watermark Reached Enable */
  4086. #define FDCAN_IE_RF0FE_Pos (2U)
  4087. #define FDCAN_IE_RF0FE_Msk (0x1U << FDCAN_IE_RF0FE_Pos) /*!< 0x00000004 */
  4088. #define FDCAN_IE_RF0FE FDCAN_IE_RF0FE_Msk /*!<Rx FIFO 0 Full Enable */
  4089. #define FDCAN_IE_RF0LE_Pos (3U)
  4090. #define FDCAN_IE_RF0LE_Msk (0x1U << FDCAN_IE_RF0LE_Pos) /*!< 0x00000008 */
  4091. #define FDCAN_IE_RF0LE FDCAN_IE_RF0LE_Msk /*!<Rx FIFO 0 Message Lost Enable */
  4092. #define FDCAN_IE_RF1NE_Pos (4U)
  4093. #define FDCAN_IE_RF1NE_Msk (0x1U << FDCAN_IE_RF1NE_Pos) /*!< 0x00000010 */
  4094. #define FDCAN_IE_RF1NE FDCAN_IE_RF1NE_Msk /*!<Rx FIFO 1 New Message Enable */
  4095. #define FDCAN_IE_RF1WE_Pos (5U)
  4096. #define FDCAN_IE_RF1WE_Msk (0x1U << FDCAN_IE_RF1WE_Pos) /*!< 0x00000020 */
  4097. #define FDCAN_IE_RF1WE FDCAN_IE_RF1WE_Msk /*!<Rx FIFO 1 Watermark Reached Enable */
  4098. #define FDCAN_IE_RF1FE_Pos (6U)
  4099. #define FDCAN_IE_RF1FE_Msk (0x1U << FDCAN_IE_RF1FE_Pos) /*!< 0x00000040 */
  4100. #define FDCAN_IE_RF1FE FDCAN_IE_RF1FE_Msk /*!<Rx FIFO 1 Full Enable */
  4101. #define FDCAN_IE_RF1LE_Pos (7U)
  4102. #define FDCAN_IE_RF1LE_Msk (0x1U << FDCAN_IE_RF1LE_Pos) /*!< 0x00000080 */
  4103. #define FDCAN_IE_RF1LE FDCAN_IE_RF1LE_Msk /*!<Rx FIFO 1 Message Lost Enable */
  4104. #define FDCAN_IE_HPME_Pos (8U)
  4105. #define FDCAN_IE_HPME_Msk (0x1U << FDCAN_IE_HPME_Pos) /*!< 0x00000100 */
  4106. #define FDCAN_IE_HPME FDCAN_IE_HPME_Msk /*!<High Priority Message Enable */
  4107. #define FDCAN_IE_TCE_Pos (9U)
  4108. #define FDCAN_IE_TCE_Msk (0x1U << FDCAN_IE_TCE_Pos) /*!< 0x00000200 */
  4109. #define FDCAN_IE_TCE FDCAN_IE_TCE_Msk /*!<Transmission Completed Enable */
  4110. #define FDCAN_IE_TCFE_Pos (10U)
  4111. #define FDCAN_IE_TCFE_Msk (0x1U << FDCAN_IE_TCFE_Pos) /*!< 0x00000400 */
  4112. #define FDCAN_IE_TCFE FDCAN_IE_TCFE_Msk /*!<Transmission Cancellation Finished Enable */
  4113. #define FDCAN_IE_TFEE_Pos (11U)
  4114. #define FDCAN_IE_TFEE_Msk (0x1U << FDCAN_IE_TFEE_Pos) /*!< 0x00000800 */
  4115. #define FDCAN_IE_TFEE FDCAN_IE_TFEE_Msk /*!<Tx FIFO Empty Enable */
  4116. #define FDCAN_IE_TEFNE_Pos (12U)
  4117. #define FDCAN_IE_TEFNE_Msk (0x1U << FDCAN_IE_TEFNE_Pos) /*!< 0x00001000 */
  4118. #define FDCAN_IE_TEFNE FDCAN_IE_TEFNE_Msk /*!<Tx Event FIFO New Entry Enable */
  4119. #define FDCAN_IE_TEFWE_Pos (13U)
  4120. #define FDCAN_IE_TEFWE_Msk (0x1U << FDCAN_IE_TEFWE_Pos) /*!< 0x00002000 */
  4121. #define FDCAN_IE_TEFWE FDCAN_IE_TEFWE_Msk /*!<Tx Event FIFO Watermark Reached Enable */
  4122. #define FDCAN_IE_TEFFE_Pos (14U)
  4123. #define FDCAN_IE_TEFFE_Msk (0x1U << FDCAN_IE_TEFFE_Pos) /*!< 0x00004000 */
  4124. #define FDCAN_IE_TEFFE FDCAN_IE_TEFFE_Msk /*!<Tx Event FIFO Full Enable */
  4125. #define FDCAN_IE_TEFLE_Pos (15U)
  4126. #define FDCAN_IE_TEFLE_Msk (0x1U << FDCAN_IE_TEFLE_Pos) /*!< 0x00008000 */
  4127. #define FDCAN_IE_TEFLE FDCAN_IE_TEFLE_Msk /*!<Tx Event FIFO Element Lost Enable */
  4128. #define FDCAN_IE_TSWE_Pos (16U)
  4129. #define FDCAN_IE_TSWE_Msk (0x1U << FDCAN_IE_TSWE_Pos) /*!< 0x00010000 */
  4130. #define FDCAN_IE_TSWE FDCAN_IE_TSWE_Msk /*!<Timestamp Wraparound Enable */
  4131. #define FDCAN_IE_MRAFE_Pos (17U)
  4132. #define FDCAN_IE_MRAFE_Msk (0x1U << FDCAN_IE_MRAFE_Pos) /*!< 0x00020000 */
  4133. #define FDCAN_IE_MRAFE FDCAN_IE_MRAFE_Msk /*!<Message RAM Access Failure Enable */
  4134. #define FDCAN_IE_TOOE_Pos (18U)
  4135. #define FDCAN_IE_TOOE_Msk (0x1U << FDCAN_IE_TOOE_Pos) /*!< 0x00040000 */
  4136. #define FDCAN_IE_TOOE FDCAN_IE_TOOE_Msk /*!<Timeout Occurred Enable */
  4137. #define FDCAN_IE_DRXE_Pos (19U)
  4138. #define FDCAN_IE_DRXE_Msk (0x1U << FDCAN_IE_DRXE_Pos) /*!< 0x00080000 */
  4139. #define FDCAN_IE_DRXE FDCAN_IE_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Enable */
  4140. #define FDCAN_IE_BECE_Pos (20U)
  4141. #define FDCAN_IE_BECE_Msk (0x1U << FDCAN_IE_BECE_Pos) /*!< 0x00100000 */
  4142. #define FDCAN_IE_BECE FDCAN_IE_BECE_Msk /*!<Bit Error Corrected Interrupt Enable */
  4143. #define FDCAN_IE_BEUE_Pos (21U)
  4144. #define FDCAN_IE_BEUE_Msk (0x1U << FDCAN_IE_BEUE_Pos) /*!< 0x00200000 */
  4145. #define FDCAN_IE_BEUE FDCAN_IE_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Enable */
  4146. #define FDCAN_IE_ELOE_Pos (22U)
  4147. #define FDCAN_IE_ELOE_Msk (0x1U << FDCAN_IE_ELOE_Pos) /*!< 0x00400000 */
  4148. #define FDCAN_IE_ELOE FDCAN_IE_ELOE_Msk /*!<Error Logging Overflow Enable */
  4149. #define FDCAN_IE_EPE_Pos (23U)
  4150. #define FDCAN_IE_EPE_Msk (0x1U << FDCAN_IE_EPE_Pos) /*!< 0x00800000 */
  4151. #define FDCAN_IE_EPE FDCAN_IE_EPE_Msk /*!<Error Passive Enable */
  4152. #define FDCAN_IE_EWE_Pos (24U)
  4153. #define FDCAN_IE_EWE_Msk (0x1U << FDCAN_IE_EWE_Pos) /*!< 0x01000000 */
  4154. #define FDCAN_IE_EWE FDCAN_IE_EWE_Msk /*!<Warning Status Enable */
  4155. #define FDCAN_IE_BOE_Pos (25U)
  4156. #define FDCAN_IE_BOE_Msk (0x1U << FDCAN_IE_BOE_Pos) /*!< 0x02000000 */
  4157. #define FDCAN_IE_BOE FDCAN_IE_BOE_Msk /*!<Bus_Off Status Enable */
  4158. #define FDCAN_IE_WDIE_Pos (26U)
  4159. #define FDCAN_IE_WDIE_Msk (0x1U << FDCAN_IE_WDIE_Pos) /*!< 0x04000000 */
  4160. #define FDCAN_IE_WDIE FDCAN_IE_WDIE_Msk /*!<Watchdog Interrupt Enable */
  4161. #define FDCAN_IE_PEAE_Pos (27U)
  4162. #define FDCAN_IE_PEAE_Msk (0x1U << FDCAN_IE_PEAE_Pos) /*!< 0x08000000 */
  4163. #define FDCAN_IE_PEAE FDCAN_IE_PEAE_Msk /*!<Protocol Error in Arbitration Phase Enable */
  4164. #define FDCAN_IE_PEDE_Pos (28U)
  4165. #define FDCAN_IE_PEDE_Msk (0x1U << FDCAN_IE_PEDE_Pos) /*!< 0x10000000 */
  4166. #define FDCAN_IE_PEDE FDCAN_IE_PEDE_Msk /*!<Protocol Error in Data Phase Enable */
  4167. #define FDCAN_IE_ARAE_Pos (29U)
  4168. #define FDCAN_IE_ARAE_Msk (0x1U << FDCAN_IE_ARAE_Pos) /*!< 0x20000000 */
  4169. #define FDCAN_IE_ARAE FDCAN_IE_ARAE_Msk /*!<Access to Reserved Address Enable */
  4170. /***************** Bit definition for FDCAN_ILS register **********************/
  4171. #define FDCAN_ILS_RF0NL_Pos (0U)
  4172. #define FDCAN_ILS_RF0NL_Msk (0x1U << FDCAN_ILS_RF0NL_Pos) /*!< 0x00000001 */
  4173. #define FDCAN_ILS_RF0NL FDCAN_ILS_RF0NL_Msk /*!<Rx FIFO 0 New Message Line */
  4174. #define FDCAN_ILS_RF0WL_Pos (1U)
  4175. #define FDCAN_ILS_RF0WL_Msk (0x1U << FDCAN_ILS_RF0WL_Pos) /*!< 0x00000002 */
  4176. #define FDCAN_ILS_RF0WL FDCAN_ILS_RF0WL_Msk /*!<Rx FIFO 0 Watermark Reached Line */
  4177. #define FDCAN_ILS_RF0FL_Pos (2U)
  4178. #define FDCAN_ILS_RF0FL_Msk (0x1U << FDCAN_ILS_RF0FL_Pos) /*!< 0x00000004 */
  4179. #define FDCAN_ILS_RF0FL FDCAN_ILS_RF0FL_Msk /*!<Rx FIFO 0 Full Line */
  4180. #define FDCAN_ILS_RF0LL_Pos (3U)
  4181. #define FDCAN_ILS_RF0LL_Msk (0x1U << FDCAN_ILS_RF0LL_Pos) /*!< 0x00000008 */
  4182. #define FDCAN_ILS_RF0LL FDCAN_ILS_RF0LL_Msk /*!<Rx FIFO 0 Message Lost Line */
  4183. #define FDCAN_ILS_RF1NL_Pos (4U)
  4184. #define FDCAN_ILS_RF1NL_Msk (0x1U << FDCAN_ILS_RF1NL_Pos) /*!< 0x00000010 */
  4185. #define FDCAN_ILS_RF1NL FDCAN_ILS_RF1NL_Msk /*!<Rx FIFO 1 New Message Line */
  4186. #define FDCAN_ILS_RF1WL_Pos (5U)
  4187. #define FDCAN_ILS_RF1WL_Msk (0x1U << FDCAN_ILS_RF1WL_Pos) /*!< 0x00000020 */
  4188. #define FDCAN_ILS_RF1WL FDCAN_ILS_RF1WL_Msk /*!<Rx FIFO 1 Watermark Reached Line */
  4189. #define FDCAN_ILS_RF1FL_Pos (6U)
  4190. #define FDCAN_ILS_RF1FL_Msk (0x1U << FDCAN_ILS_RF1FL_Pos) /*!< 0x00000040 */
  4191. #define FDCAN_ILS_RF1FL FDCAN_ILS_RF1FL_Msk /*!<Rx FIFO 1 Full Line */
  4192. #define FDCAN_ILS_RF1LL_Pos (7U)
  4193. #define FDCAN_ILS_RF1LL_Msk (0x1U << FDCAN_ILS_RF1LL_Pos) /*!< 0x00000080 */
  4194. #define FDCAN_ILS_RF1LL FDCAN_ILS_RF1LL_Msk /*!<Rx FIFO 1 Message Lost Line */
  4195. #define FDCAN_ILS_HPML_Pos (8U)
  4196. #define FDCAN_ILS_HPML_Msk (0x1U << FDCAN_ILS_HPML_Pos) /*!< 0x00000100 */
  4197. #define FDCAN_ILS_HPML FDCAN_ILS_HPML_Msk /*!<High Priority Message Line */
  4198. #define FDCAN_ILS_TCL_Pos (9U)
  4199. #define FDCAN_ILS_TCL_Msk (0x1U << FDCAN_ILS_TCL_Pos) /*!< 0x00000200 */
  4200. #define FDCAN_ILS_TCL FDCAN_ILS_TCL_Msk /*!<Transmission Completed Line */
  4201. #define FDCAN_ILS_TCFL_Pos (10U)
  4202. #define FDCAN_ILS_TCFL_Msk (0x1U << FDCAN_ILS_TCFL_Pos) /*!< 0x00000400 */
  4203. #define FDCAN_ILS_TCFL FDCAN_ILS_TCFL_Msk /*!<Transmission Cancellation Finished Line */
  4204. #define FDCAN_ILS_TFEL_Pos (11U)
  4205. #define FDCAN_ILS_TFEL_Msk (0x1U << FDCAN_ILS_TFEL_Pos) /*!< 0x00000800 */
  4206. #define FDCAN_ILS_TFEL FDCAN_ILS_TFEL_Msk /*!<Tx FIFO Empty Line */
  4207. #define FDCAN_ILS_TEFNL_Pos (12U)
  4208. #define FDCAN_ILS_TEFNL_Msk (0x1U << FDCAN_ILS_TEFNL_Pos) /*!< 0x00001000 */
  4209. #define FDCAN_ILS_TEFNL FDCAN_ILS_TEFNL_Msk /*!<Tx Event FIFO New Entry Line */
  4210. #define FDCAN_ILS_TEFWL_Pos (13U)
  4211. #define FDCAN_ILS_TEFWL_Msk (0x1U << FDCAN_ILS_TEFWL_Pos) /*!< 0x00002000 */
  4212. #define FDCAN_ILS_TEFWL FDCAN_ILS_TEFWL_Msk /*!<Tx Event FIFO Watermark Reached Line */
  4213. #define FDCAN_ILS_TEFFL_Pos (14U)
  4214. #define FDCAN_ILS_TEFFL_Msk (0x1U << FDCAN_ILS_TEFFL_Pos) /*!< 0x00004000 */
  4215. #define FDCAN_ILS_TEFFL FDCAN_ILS_TEFFL_Msk /*!<Tx Event FIFO Full Line */
  4216. #define FDCAN_ILS_TEFLL_Pos (15U)
  4217. #define FDCAN_ILS_TEFLL_Msk (0x1U << FDCAN_ILS_TEFLL_Pos) /*!< 0x00008000 */
  4218. #define FDCAN_ILS_TEFLL FDCAN_ILS_TEFLL_Msk /*!<Tx Event FIFO Element Lost Line */
  4219. #define FDCAN_ILS_TSWL_Pos (16U)
  4220. #define FDCAN_ILS_TSWL_Msk (0x1U << FDCAN_ILS_TSWL_Pos) /*!< 0x00010000 */
  4221. #define FDCAN_ILS_TSWL FDCAN_ILS_TSWL_Msk /*!<Timestamp Wraparound Line */
  4222. #define FDCAN_ILS_MRAFE_Pos (17U)
  4223. #define FDCAN_ILS_MRAFE_Msk (0x1U << FDCAN_ILS_MRAFE_Pos) /*!< 0x00020000 */
  4224. #define FDCAN_ILS_MRAFE FDCAN_ILS_MRAFE_Msk /*!<Message RAM Access Failure Line */
  4225. #define FDCAN_ILS_TOOE_Pos (18U)
  4226. #define FDCAN_ILS_TOOE_Msk (0x1U << FDCAN_ILS_TOOE_Pos) /*!< 0x00040000 */
  4227. #define FDCAN_ILS_TOOE FDCAN_ILS_TOOE_Msk /*!<Timeout Occurred Line */
  4228. #define FDCAN_ILS_DRXE_Pos (19U)
  4229. #define FDCAN_ILS_DRXE_Msk (0x1U << FDCAN_ILS_DRXE_Pos) /*!< 0x00080000 */
  4230. #define FDCAN_ILS_DRXE FDCAN_ILS_DRXE_Msk /*!<Message stored to Dedicated Rx Buffer Line */
  4231. #define FDCAN_ILS_BECE_Pos (20U)
  4232. #define FDCAN_ILS_BECE_Msk (0x1U << FDCAN_ILS_BECE_Pos) /*!< 0x00100000 */
  4233. #define FDCAN_ILS_BECE FDCAN_ILS_BECE_Msk /*!<Bit Error Corrected Interrupt Line */
  4234. #define FDCAN_ILS_BEUE_Pos (21U)
  4235. #define FDCAN_ILS_BEUE_Msk (0x1U << FDCAN_ILS_BEUE_Pos) /*!< 0x00200000 */
  4236. #define FDCAN_ILS_BEUE FDCAN_ILS_BEUE_Msk /*!<Bit Error Uncorrected Interrupt Line */
  4237. #define FDCAN_ILS_ELOE_Pos (22U)
  4238. #define FDCAN_ILS_ELOE_Msk (0x1U << FDCAN_ILS_ELOE_Pos) /*!< 0x00400000 */
  4239. #define FDCAN_ILS_ELOE FDCAN_ILS_ELOE_Msk /*!<Error Logging Overflow Line */
  4240. #define FDCAN_ILS_EPE_Pos (23U)
  4241. #define FDCAN_ILS_EPE_Msk (0x1U << FDCAN_ILS_EPE_Pos) /*!< 0x00800000 */
  4242. #define FDCAN_ILS_EPE FDCAN_ILS_EPE_Msk /*!<Error Passive Line */
  4243. #define FDCAN_ILS_EWE_Pos (24U)
  4244. #define FDCAN_ILS_EWE_Msk (0x1U << FDCAN_ILS_EWE_Pos) /*!< 0x01000000 */
  4245. #define FDCAN_ILS_EWE FDCAN_ILS_EWE_Msk /*!<Warning Status Line */
  4246. #define FDCAN_ILS_BOE_Pos (25U)
  4247. #define FDCAN_ILS_BOE_Msk (0x1U << FDCAN_ILS_BOE_Pos) /*!< 0x02000000 */
  4248. #define FDCAN_ILS_BOE FDCAN_ILS_BOE_Msk /*!<Bus_Off Status Line */
  4249. #define FDCAN_ILS_WDIE_Pos (26U)
  4250. #define FDCAN_ILS_WDIE_Msk (0x1U << FDCAN_ILS_WDIE_Pos) /*!< 0x04000000 */
  4251. #define FDCAN_ILS_WDIE FDCAN_ILS_WDIE_Msk /*!<Watchdog Interrupt Line */
  4252. #define FDCAN_ILS_PEAE_Pos (27U)
  4253. #define FDCAN_ILS_PEAE_Msk (0x1U << FDCAN_ILS_PEAE_Pos) /*!< 0x08000000 */
  4254. #define FDCAN_ILS_PEAE FDCAN_ILS_PEAE_Msk /*!<Protocol Error in Arbitration Phase Line */
  4255. #define FDCAN_ILS_PEDE_Pos (28U)
  4256. #define FDCAN_ILS_PEDE_Msk (0x1U << FDCAN_ILS_PEDE_Pos) /*!< 0x10000000 */
  4257. #define FDCAN_ILS_PEDE FDCAN_ILS_PEDE_Msk /*!<Protocol Error in Data Phase Line */
  4258. #define FDCAN_ILS_ARAE_Pos (29U)
  4259. #define FDCAN_ILS_ARAE_Msk (0x1U << FDCAN_ILS_ARAE_Pos) /*!< 0x20000000 */
  4260. #define FDCAN_ILS_ARAE FDCAN_ILS_ARAE_Msk /*!<Access to Reserved Address Line */
  4261. /***************** Bit definition for FDCAN_ILE register **********************/
  4262. #define FDCAN_ILE_EINT0_Pos (0U)
  4263. #define FDCAN_ILE_EINT0_Msk (0x1U << FDCAN_ILE_EINT0_Pos) /*!< 0x00000001 */
  4264. #define FDCAN_ILE_EINT0 FDCAN_ILE_EINT0_Msk /*!<Enable Interrupt Line 0 */
  4265. #define FDCAN_ILE_EINT1_Pos (1U)
  4266. #define FDCAN_ILE_EINT1_Msk (0x1U << FDCAN_ILE_EINT1_Pos) /*!< 0x00000002 */
  4267. #define FDCAN_ILE_EINT1 FDCAN_ILE_EINT1_Msk /*!<Enable Interrupt Line 1 */
  4268. /***************** Bit definition for FDCAN_GFC register **********************/
  4269. #define FDCAN_GFC_RRFE_Pos (0U)
  4270. #define FDCAN_GFC_RRFE_Msk (0x1U << FDCAN_GFC_RRFE_Pos) /*!< 0x00000001 */
  4271. #define FDCAN_GFC_RRFE FDCAN_GFC_RRFE_Msk /*!<Reject Remote Frames Extended */
  4272. #define FDCAN_GFC_RRFS_Pos (1U)
  4273. #define FDCAN_GFC_RRFS_Msk (0x1U << FDCAN_GFC_RRFS_Pos) /*!< 0x00000002 */
  4274. #define FDCAN_GFC_RRFS FDCAN_GFC_RRFS_Msk /*!<Reject Remote Frames Standard */
  4275. #define FDCAN_GFC_ANFE_Pos (2U)
  4276. #define FDCAN_GFC_ANFE_Msk (0x3U << FDCAN_GFC_ANFE_Pos) /*!< 0x0000000C */
  4277. #define FDCAN_GFC_ANFE FDCAN_GFC_ANFE_Msk /*!<Accept Non-matching Frames Extended */
  4278. #define FDCAN_GFC_ANFS_Pos (4U)
  4279. #define FDCAN_GFC_ANFS_Msk (0x3U << FDCAN_GFC_ANFS_Pos) /*!< 0x00000030 */
  4280. #define FDCAN_GFC_ANFS FDCAN_GFC_ANFS_Msk /*!<Accept Non-matching Frames Standard */
  4281. /***************** Bit definition for FDCAN_SIDFC register ********************/
  4282. #define FDCAN_SIDFC_FLSSA_Pos (2U)
  4283. #define FDCAN_SIDFC_FLSSA_Msk (0x3FFFU << FDCAN_SIDFC_FLSSA_Pos) /*!< 0x0000FFFC */
  4284. #define FDCAN_SIDFC_FLSSA FDCAN_SIDFC_FLSSA_Msk /*!<Filter List Standard Start Address */
  4285. #define FDCAN_SIDFC_LSS_Pos (16U)
  4286. #define FDCAN_SIDFC_LSS_Msk (0xFFU << FDCAN_SIDFC_LSS_Pos) /*!< 0x00FF0000 */
  4287. #define FDCAN_SIDFC_LSS FDCAN_SIDFC_LSS_Msk /*!<List Size Standard */
  4288. /***************** Bit definition for FDCAN_XIDFC register ********************/
  4289. #define FDCAN_XIDFC_FLESA_Pos (2U)
  4290. #define FDCAN_XIDFC_FLESA_Msk (0x3FFFU << FDCAN_XIDFC_FLESA_Pos) /*!< 0x0000FFFC */
  4291. #define FDCAN_XIDFC_FLESA FDCAN_XIDFC_FLESA_Msk /*!<Filter List Standard Start Address */
  4292. #define FDCAN_XIDFC_LSE_Pos (16U)
  4293. #define FDCAN_XIDFC_LSE_Msk (0xFFU << FDCAN_XIDFC_LSE_Pos) /*!< 0x00FF0000 */
  4294. #define FDCAN_XIDFC_LSE FDCAN_XIDFC_LSE_Msk /*!<List Size Extended */
  4295. /***************** Bit definition for FDCAN_XIDAM register ********************/
  4296. #define FDCAN_XIDAM_EIDM_Pos (0U)
  4297. #define FDCAN_XIDAM_EIDM_Msk (0x1FFFFFFFU << FDCAN_XIDAM_EIDM_Pos) /*!< 0x1FFFFFFF */
  4298. #define FDCAN_XIDAM_EIDM FDCAN_XIDAM_EIDM_Msk /*!<Extended ID Mask */
  4299. /***************** Bit definition for FDCAN_HPMS register *********************/
  4300. #define FDCAN_HPMS_BIDX_Pos (0U)
  4301. #define FDCAN_HPMS_BIDX_Msk (0x3FU << FDCAN_HPMS_BIDX_Pos) /*!< 0x0000003F */
  4302. #define FDCAN_HPMS_BIDX FDCAN_HPMS_BIDX_Msk /*!<Buffer Index */
  4303. #define FDCAN_HPMS_MSI_Pos (6U)
  4304. #define FDCAN_HPMS_MSI_Msk (0x3U << FDCAN_HPMS_MSI_Pos) /*!< 0x000000C0 */
  4305. #define FDCAN_HPMS_MSI FDCAN_HPMS_MSI_Msk /*!<Message Storage Indicator */
  4306. #define FDCAN_HPMS_FIDX_Pos (8U)
  4307. #define FDCAN_HPMS_FIDX_Msk (0x7FU << FDCAN_HPMS_FIDX_Pos) /*!< 0x00007F00 */
  4308. #define FDCAN_HPMS_FIDX FDCAN_HPMS_FIDX_Msk /*!<Filter Index */
  4309. #define FDCAN_HPMS_FLST_Pos (15U)
  4310. #define FDCAN_HPMS_FLST_Msk (0x1U << FDCAN_HPMS_FLST_Pos) /*!< 0x00008000 */
  4311. #define FDCAN_HPMS_FLST FDCAN_HPMS_FLST_Msk /*!<Filter List */
  4312. /***************** Bit definition for FDCAN_NDAT1 register ********************/
  4313. #define FDCAN_NDAT1_ND0_Pos (0U)
  4314. #define FDCAN_NDAT1_ND0_Msk (0x1U << FDCAN_NDAT1_ND0_Pos) /*!< 0x00000001 */
  4315. #define FDCAN_NDAT1_ND0 FDCAN_NDAT1_ND0_Msk /*!<New Data flag of Rx Buffer 0 */
  4316. #define FDCAN_NDAT1_ND1_Pos (1U)
  4317. #define FDCAN_NDAT1_ND1_Msk (0x1U << FDCAN_NDAT1_ND1_Pos) /*!< 0x00000002 */
  4318. #define FDCAN_NDAT1_ND1 FDCAN_NDAT1_ND1_Msk /*!<New Data flag of Rx Buffer 1 */
  4319. #define FDCAN_NDAT1_ND2_Pos (2U)
  4320. #define FDCAN_NDAT1_ND2_Msk (0x1U << FDCAN_NDAT1_ND2_Pos) /*!< 0x00000004 */
  4321. #define FDCAN_NDAT1_ND2 FDCAN_NDAT1_ND2_Msk /*!<New Data flag of Rx Buffer 2 */
  4322. #define FDCAN_NDAT1_ND3_Pos (3U)
  4323. #define FDCAN_NDAT1_ND3_Msk (0x1U << FDCAN_NDAT1_ND3_Pos) /*!< 0x00000008 */
  4324. #define FDCAN_NDAT1_ND3 FDCAN_NDAT1_ND3_Msk /*!<New Data flag of Rx Buffer 3 */
  4325. #define FDCAN_NDAT1_ND4_Pos (4U)
  4326. #define FDCAN_NDAT1_ND4_Msk (0x1U << FDCAN_NDAT1_ND4_Pos) /*!< 0x00000010 */
  4327. #define FDCAN_NDAT1_ND4 FDCAN_NDAT1_ND4_Msk /*!<New Data flag of Rx Buffer 4 */
  4328. #define FDCAN_NDAT1_ND5_Pos (5U)
  4329. #define FDCAN_NDAT1_ND5_Msk (0x1U << FDCAN_NDAT1_ND5_Pos) /*!< 0x00000020 */
  4330. #define FDCAN_NDAT1_ND5 FDCAN_NDAT1_ND5_Msk /*!<New Data flag of Rx Buffer 5 */
  4331. #define FDCAN_NDAT1_ND6_Pos (6U)
  4332. #define FDCAN_NDAT1_ND6_Msk (0x1U << FDCAN_NDAT1_ND6_Pos) /*!< 0x00000040 */
  4333. #define FDCAN_NDAT1_ND6 FDCAN_NDAT1_ND6_Msk /*!<New Data flag of Rx Buffer 6 */
  4334. #define FDCAN_NDAT1_ND7_Pos (7U)
  4335. #define FDCAN_NDAT1_ND7_Msk (0x1U << FDCAN_NDAT1_ND7_Pos) /*!< 0x00000080 */
  4336. #define FDCAN_NDAT1_ND7 FDCAN_NDAT1_ND7_Msk /*!<New Data flag of Rx Buffer 7 */
  4337. #define FDCAN_NDAT1_ND8_Pos (8U)
  4338. #define FDCAN_NDAT1_ND8_Msk (0x1U << FDCAN_NDAT1_ND8_Pos) /*!< 0x00000100 */
  4339. #define FDCAN_NDAT1_ND8 FDCAN_NDAT1_ND8_Msk /*!<New Data flag of Rx Buffer 8 */
  4340. #define FDCAN_NDAT1_ND9_Pos (9U)
  4341. #define FDCAN_NDAT1_ND9_Msk (0x1U << FDCAN_NDAT1_ND9_Pos) /*!< 0x00000200 */
  4342. #define FDCAN_NDAT1_ND9 FDCAN_NDAT1_ND9_Msk /*!<New Data flag of Rx Buffer 9 */
  4343. #define FDCAN_NDAT1_ND10_Pos (10U)
  4344. #define FDCAN_NDAT1_ND10_Msk (0x1U << FDCAN_NDAT1_ND10_Pos) /*!< 0x00000400 */
  4345. #define FDCAN_NDAT1_ND10 FDCAN_NDAT1_ND10_Msk /*!<New Data flag of Rx Buffer 10 */
  4346. #define FDCAN_NDAT1_ND11_Pos (11U)
  4347. #define FDCAN_NDAT1_ND11_Msk (0x1U << FDCAN_NDAT1_ND11_Pos) /*!< 0x00000800 */
  4348. #define FDCAN_NDAT1_ND11 FDCAN_NDAT1_ND11_Msk /*!<New Data flag of Rx Buffer 11 */
  4349. #define FDCAN_NDAT1_ND12_Pos (12U)
  4350. #define FDCAN_NDAT1_ND12_Msk (0x1U << FDCAN_NDAT1_ND12_Pos) /*!< 0x00001000 */
  4351. #define FDCAN_NDAT1_ND12 FDCAN_NDAT1_ND12_Msk /*!<New Data flag of Rx Buffer 12 */
  4352. #define FDCAN_NDAT1_ND13_Pos (13U)
  4353. #define FDCAN_NDAT1_ND13_Msk (0x1U << FDCAN_NDAT1_ND13_Pos) /*!< 0x00002000 */
  4354. #define FDCAN_NDAT1_ND13 FDCAN_NDAT1_ND13_Msk /*!<New Data flag of Rx Buffer 13 */
  4355. #define FDCAN_NDAT1_ND14_Pos (14U)
  4356. #define FDCAN_NDAT1_ND14_Msk (0x1U << FDCAN_NDAT1_ND14_Pos) /*!< 0x00004000 */
  4357. #define FDCAN_NDAT1_ND14 FDCAN_NDAT1_ND14_Msk /*!<New Data flag of Rx Buffer 14 */
  4358. #define FDCAN_NDAT1_ND15_Pos (15U)
  4359. #define FDCAN_NDAT1_ND15_Msk (0x1U << FDCAN_NDAT1_ND15_Pos) /*!< 0x00008000 */
  4360. #define FDCAN_NDAT1_ND15 FDCAN_NDAT1_ND15_Msk /*!<New Data flag of Rx Buffer 15 */
  4361. #define FDCAN_NDAT1_ND16_Pos (16U)
  4362. #define FDCAN_NDAT1_ND16_Msk (0x1U << FDCAN_NDAT1_ND16_Pos) /*!< 0x00010000 */
  4363. #define FDCAN_NDAT1_ND16 FDCAN_NDAT1_ND16_Msk /*!<New Data flag of Rx Buffer 16 */
  4364. #define FDCAN_NDAT1_ND17_Pos (17U)
  4365. #define FDCAN_NDAT1_ND17_Msk (0x1U << FDCAN_NDAT1_ND17_Pos) /*!< 0x00020000 */
  4366. #define FDCAN_NDAT1_ND17 FDCAN_NDAT1_ND17_Msk /*!<New Data flag of Rx Buffer 17 */
  4367. #define FDCAN_NDAT1_ND18_Pos (18U)
  4368. #define FDCAN_NDAT1_ND18_Msk (0x1U << FDCAN_NDAT1_ND18_Pos) /*!< 0x00040000 */
  4369. #define FDCAN_NDAT1_ND18 FDCAN_NDAT1_ND18_Msk /*!<New Data flag of Rx Buffer 18 */
  4370. #define FDCAN_NDAT1_ND19_Pos (19U)
  4371. #define FDCAN_NDAT1_ND19_Msk (0x1U << FDCAN_NDAT1_ND19_Pos) /*!< 0x00080000 */
  4372. #define FDCAN_NDAT1_ND19 FDCAN_NDAT1_ND19_Msk /*!<New Data flag of Rx Buffer 19 */
  4373. #define FDCAN_NDAT1_ND20_Pos (20U)
  4374. #define FDCAN_NDAT1_ND20_Msk (0x1U << FDCAN_NDAT1_ND20_Pos) /*!< 0x00100000 */
  4375. #define FDCAN_NDAT1_ND20 FDCAN_NDAT1_ND20_Msk /*!<New Data flag of Rx Buffer 20 */
  4376. #define FDCAN_NDAT1_ND21_Pos (21U)
  4377. #define FDCAN_NDAT1_ND21_Msk (0x1U << FDCAN_NDAT1_ND21_Pos) /*!< 0x00200000 */
  4378. #define FDCAN_NDAT1_ND21 FDCAN_NDAT1_ND21_Msk /*!<New Data flag of Rx Buffer 21 */
  4379. #define FDCAN_NDAT1_ND22_Pos (22U)
  4380. #define FDCAN_NDAT1_ND22_Msk (0x1U << FDCAN_NDAT1_ND22_Pos) /*!< 0x00400000 */
  4381. #define FDCAN_NDAT1_ND22 FDCAN_NDAT1_ND22_Msk /*!<New Data flag of Rx Buffer 22 */
  4382. #define FDCAN_NDAT1_ND23_Pos (23U)
  4383. #define FDCAN_NDAT1_ND23_Msk (0x1U << FDCAN_NDAT1_ND23_Pos) /*!< 0x00800000 */
  4384. #define FDCAN_NDAT1_ND23 FDCAN_NDAT1_ND23_Msk /*!<New Data flag of Rx Buffer 23 */
  4385. #define FDCAN_NDAT1_ND24_Pos (24U)
  4386. #define FDCAN_NDAT1_ND24_Msk (0x1U << FDCAN_NDAT1_ND24_Pos) /*!< 0x01000000 */
  4387. #define FDCAN_NDAT1_ND24 FDCAN_NDAT1_ND24_Msk /*!<New Data flag of Rx Buffer 24 */
  4388. #define FDCAN_NDAT1_ND25_Pos (25U)
  4389. #define FDCAN_NDAT1_ND25_Msk (0x1U << FDCAN_NDAT1_ND25_Pos) /*!< 0x02000000 */
  4390. #define FDCAN_NDAT1_ND25 FDCAN_NDAT1_ND25_Msk /*!<New Data flag of Rx Buffer 25 */
  4391. #define FDCAN_NDAT1_ND26_Pos (26U)
  4392. #define FDCAN_NDAT1_ND26_Msk (0x1U << FDCAN_NDAT1_ND26_Pos) /*!< 0x04000000 */
  4393. #define FDCAN_NDAT1_ND26 FDCAN_NDAT1_ND26_Msk /*!<New Data flag of Rx Buffer 26 */
  4394. #define FDCAN_NDAT1_ND27_Pos (27U)
  4395. #define FDCAN_NDAT1_ND27_Msk (0x1U << FDCAN_NDAT1_ND27_Pos) /*!< 0x08000000 */
  4396. #define FDCAN_NDAT1_ND27 FDCAN_NDAT1_ND27_Msk /*!<New Data flag of Rx Buffer 27 */
  4397. #define FDCAN_NDAT1_ND28_Pos (28U)
  4398. #define FDCAN_NDAT1_ND28_Msk (0x1U << FDCAN_NDAT1_ND28_Pos) /*!< 0x10000000 */
  4399. #define FDCAN_NDAT1_ND28 FDCAN_NDAT1_ND28_Msk /*!<New Data flag of Rx Buffer 28 */
  4400. #define FDCAN_NDAT1_ND29_Pos (29U)
  4401. #define FDCAN_NDAT1_ND29_Msk (0x1U << FDCAN_NDAT1_ND29_Pos) /*!< 0x20000000 */
  4402. #define FDCAN_NDAT1_ND29 FDCAN_NDAT1_ND29_Msk /*!<New Data flag of Rx Buffer 29 */
  4403. #define FDCAN_NDAT1_ND30_Pos (30U)
  4404. #define FDCAN_NDAT1_ND30_Msk (0x1U << FDCAN_NDAT1_ND30_Pos) /*!< 0x40000000 */
  4405. #define FDCAN_NDAT1_ND30 FDCAN_NDAT1_ND30_Msk /*!<New Data flag of Rx Buffer 30 */
  4406. #define FDCAN_NDAT1_ND31_Pos (31U)
  4407. #define FDCAN_NDAT1_ND31_Msk (0x1U << FDCAN_NDAT1_ND31_Pos) /*!< 0x80000000 */
  4408. #define FDCAN_NDAT1_ND31 FDCAN_NDAT1_ND31_Msk /*!<New Data flag of Rx Buffer 31 */
  4409. /***************** Bit definition for FDCAN_NDAT2 register ********************/
  4410. #define FDCAN_NDAT2_ND32_Pos (0U)
  4411. #define FDCAN_NDAT2_ND32_Msk (0x1U << FDCAN_NDAT2_ND32_Pos) /*!< 0x00000001 */
  4412. #define FDCAN_NDAT2_ND32 FDCAN_NDAT2_ND32_Msk /*!<New Data flag of Rx Buffer 32 */
  4413. #define FDCAN_NDAT2_ND33_Pos (1U)
  4414. #define FDCAN_NDAT2_ND33_Msk (0x1U << FDCAN_NDAT2_ND33_Pos) /*!< 0x00000002 */
  4415. #define FDCAN_NDAT2_ND33 FDCAN_NDAT2_ND33_Msk /*!<New Data flag of Rx Buffer 33 */
  4416. #define FDCAN_NDAT2_ND34_Pos (2U)
  4417. #define FDCAN_NDAT2_ND34_Msk (0x1U << FDCAN_NDAT2_ND34_Pos) /*!< 0x00000004 */
  4418. #define FDCAN_NDAT2_ND34 FDCAN_NDAT2_ND34_Msk /*!<New Data flag of Rx Buffer 34 */
  4419. #define FDCAN_NDAT2_ND35_Pos (3U)
  4420. #define FDCAN_NDAT2_ND35_Msk (0x1U << FDCAN_NDAT2_ND35_Pos) /*!< 0x00000008 */
  4421. #define FDCAN_NDAT2_ND35 FDCAN_NDAT2_ND35_Msk /*!<New Data flag of Rx Buffer 35 */
  4422. #define FDCAN_NDAT2_ND36_Pos (4U)
  4423. #define FDCAN_NDAT2_ND36_Msk (0x1U << FDCAN_NDAT2_ND36_Pos) /*!< 0x00000010 */
  4424. #define FDCAN_NDAT2_ND36 FDCAN_NDAT2_ND36_Msk /*!<New Data flag of Rx Buffer 36 */
  4425. #define FDCAN_NDAT2_ND37_Pos (5U)
  4426. #define FDCAN_NDAT2_ND37_Msk (0x1U << FDCAN_NDAT2_ND37_Pos) /*!< 0x00000020 */
  4427. #define FDCAN_NDAT2_ND37 FDCAN_NDAT2_ND37_Msk /*!<New Data flag of Rx Buffer 37 */
  4428. #define FDCAN_NDAT2_ND38_Pos (6U)
  4429. #define FDCAN_NDAT2_ND38_Msk (0x1U << FDCAN_NDAT2_ND38_Pos) /*!< 0x00000040 */
  4430. #define FDCAN_NDAT2_ND38 FDCAN_NDAT2_ND38_Msk /*!<New Data flag of Rx Buffer 38 */
  4431. #define FDCAN_NDAT2_ND39_Pos (7U)
  4432. #define FDCAN_NDAT2_ND39_Msk (0x1U << FDCAN_NDAT2_ND39_Pos) /*!< 0x00000080 */
  4433. #define FDCAN_NDAT2_ND39 FDCAN_NDAT2_ND39_Msk /*!<New Data flag of Rx Buffer 39 */
  4434. #define FDCAN_NDAT2_ND40_Pos (8U)
  4435. #define FDCAN_NDAT2_ND40_Msk (0x1U << FDCAN_NDAT2_ND40_Pos) /*!< 0x00000100 */
  4436. #define FDCAN_NDAT2_ND40 FDCAN_NDAT2_ND40_Msk /*!<New Data flag of Rx Buffer 40 */
  4437. #define FDCAN_NDAT2_ND41_Pos (9U)
  4438. #define FDCAN_NDAT2_ND41_Msk (0x1U << FDCAN_NDAT2_ND41_Pos) /*!< 0x00000200 */
  4439. #define FDCAN_NDAT2_ND41 FDCAN_NDAT2_ND41_Msk /*!<New Data flag of Rx Buffer 41 */
  4440. #define FDCAN_NDAT2_ND42_Pos (10U)
  4441. #define FDCAN_NDAT2_ND42_Msk (0x1U << FDCAN_NDAT2_ND42_Pos) /*!< 0x00000400 */
  4442. #define FDCAN_NDAT2_ND42 FDCAN_NDAT2_ND42_Msk /*!<New Data flag of Rx Buffer 42 */
  4443. #define FDCAN_NDAT2_ND43_Pos (11U)
  4444. #define FDCAN_NDAT2_ND43_Msk (0x1U << FDCAN_NDAT2_ND43_Pos) /*!< 0x00000800 */
  4445. #define FDCAN_NDAT2_ND43 FDCAN_NDAT2_ND43_Msk /*!<New Data flag of Rx Buffer 43 */
  4446. #define FDCAN_NDAT2_ND44_Pos (12U)
  4447. #define FDCAN_NDAT2_ND44_Msk (0x1U << FDCAN_NDAT2_ND44_Pos) /*!< 0x00001000 */
  4448. #define FDCAN_NDAT2_ND44 FDCAN_NDAT2_ND44_Msk /*!<New Data flag of Rx Buffer 44 */
  4449. #define FDCAN_NDAT2_ND45_Pos (13U)
  4450. #define FDCAN_NDAT2_ND45_Msk (0x1U << FDCAN_NDAT2_ND45_Pos) /*!< 0x00002000 */
  4451. #define FDCAN_NDAT2_ND45 FDCAN_NDAT2_ND45_Msk /*!<New Data flag of Rx Buffer 45 */
  4452. #define FDCAN_NDAT2_ND46_Pos (14U)
  4453. #define FDCAN_NDAT2_ND46_Msk (0x1U << FDCAN_NDAT2_ND46_Pos) /*!< 0x00004000 */
  4454. #define FDCAN_NDAT2_ND46 FDCAN_NDAT2_ND46_Msk /*!<New Data flag of Rx Buffer 46 */
  4455. #define FDCAN_NDAT2_ND47_Pos (15U)
  4456. #define FDCAN_NDAT2_ND47_Msk (0x1U << FDCAN_NDAT2_ND47_Pos) /*!< 0x00008000 */
  4457. #define FDCAN_NDAT2_ND47 FDCAN_NDAT2_ND47_Msk /*!<New Data flag of Rx Buffer 47 */
  4458. #define FDCAN_NDAT2_ND48_Pos (16U)
  4459. #define FDCAN_NDAT2_ND48_Msk (0x1U << FDCAN_NDAT2_ND48_Pos) /*!< 0x00010000 */
  4460. #define FDCAN_NDAT2_ND48 FDCAN_NDAT2_ND48_Msk /*!<New Data flag of Rx Buffer 48 */
  4461. #define FDCAN_NDAT2_ND49_Pos (17U)
  4462. #define FDCAN_NDAT2_ND49_Msk (0x1U << FDCAN_NDAT2_ND49_Pos) /*!< 0x00020000 */
  4463. #define FDCAN_NDAT2_ND49 FDCAN_NDAT2_ND49_Msk /*!<New Data flag of Rx Buffer 49 */
  4464. #define FDCAN_NDAT2_ND50_Pos (18U)
  4465. #define FDCAN_NDAT2_ND50_Msk (0x1U << FDCAN_NDAT2_ND50_Pos) /*!< 0x00040000 */
  4466. #define FDCAN_NDAT2_ND50 FDCAN_NDAT2_ND50_Msk /*!<New Data flag of Rx Buffer 50 */
  4467. #define FDCAN_NDAT2_ND51_Pos (19U)
  4468. #define FDCAN_NDAT2_ND51_Msk (0x1U << FDCAN_NDAT2_ND51_Pos) /*!< 0x00080000 */
  4469. #define FDCAN_NDAT2_ND51 FDCAN_NDAT2_ND51_Msk /*!<New Data flag of Rx Buffer 51 */
  4470. #define FDCAN_NDAT2_ND52_Pos (20U)
  4471. #define FDCAN_NDAT2_ND52_Msk (0x1U << FDCAN_NDAT2_ND52_Pos) /*!< 0x00100000 */
  4472. #define FDCAN_NDAT2_ND52 FDCAN_NDAT2_ND52_Msk /*!<New Data flag of Rx Buffer 52 */
  4473. #define FDCAN_NDAT2_ND53_Pos (21U)
  4474. #define FDCAN_NDAT2_ND53_Msk (0x1U << FDCAN_NDAT2_ND53_Pos) /*!< 0x00200000 */
  4475. #define FDCAN_NDAT2_ND53 FDCAN_NDAT2_ND53_Msk /*!<New Data flag of Rx Buffer 53 */
  4476. #define FDCAN_NDAT2_ND54_Pos (22U)
  4477. #define FDCAN_NDAT2_ND54_Msk (0x1U << FDCAN_NDAT2_ND54_Pos) /*!< 0x00400000 */
  4478. #define FDCAN_NDAT2_ND54 FDCAN_NDAT2_ND54_Msk /*!<New Data flag of Rx Buffer 54 */
  4479. #define FDCAN_NDAT2_ND55_Pos (23U)
  4480. #define FDCAN_NDAT2_ND55_Msk (0x1U << FDCAN_NDAT2_ND55_Pos) /*!< 0x00800000 */
  4481. #define FDCAN_NDAT2_ND55 FDCAN_NDAT2_ND55_Msk /*!<New Data flag of Rx Buffer 55 */
  4482. #define FDCAN_NDAT2_ND56_Pos (24U)
  4483. #define FDCAN_NDAT2_ND56_Msk (0x1U << FDCAN_NDAT2_ND56_Pos) /*!< 0x01000000 */
  4484. #define FDCAN_NDAT2_ND56 FDCAN_NDAT2_ND56_Msk /*!<New Data flag of Rx Buffer 56 */
  4485. #define FDCAN_NDAT2_ND57_Pos (25U)
  4486. #define FDCAN_NDAT2_ND57_Msk (0x1U << FDCAN_NDAT2_ND57_Pos) /*!< 0x02000000 */
  4487. #define FDCAN_NDAT2_ND57 FDCAN_NDAT2_ND57_Msk /*!<New Data flag of Rx Buffer 57 */
  4488. #define FDCAN_NDAT2_ND58_Pos (26U)
  4489. #define FDCAN_NDAT2_ND58_Msk (0x1U << FDCAN_NDAT2_ND58_Pos) /*!< 0x04000000 */
  4490. #define FDCAN_NDAT2_ND58 FDCAN_NDAT2_ND58_Msk /*!<New Data flag of Rx Buffer 58 */
  4491. #define FDCAN_NDAT2_ND59_Pos (27U)
  4492. #define FDCAN_NDAT2_ND59_Msk (0x1U << FDCAN_NDAT2_ND59_Pos) /*!< 0x08000000 */
  4493. #define FDCAN_NDAT2_ND59 FDCAN_NDAT2_ND59_Msk /*!<New Data flag of Rx Buffer 59 */
  4494. #define FDCAN_NDAT2_ND60_Pos (28U)
  4495. #define FDCAN_NDAT2_ND60_Msk (0x1U << FDCAN_NDAT2_ND60_Pos) /*!< 0x10000000 */
  4496. #define FDCAN_NDAT2_ND60 FDCAN_NDAT2_ND60_Msk /*!<New Data flag of Rx Buffer 60 */
  4497. #define FDCAN_NDAT2_ND61_Pos (29U)
  4498. #define FDCAN_NDAT2_ND61_Msk (0x1U << FDCAN_NDAT2_ND61_Pos) /*!< 0x20000000 */
  4499. #define FDCAN_NDAT2_ND61 FDCAN_NDAT2_ND61_Msk /*!<New Data flag of Rx Buffer 61 */
  4500. #define FDCAN_NDAT2_ND62_Pos (30U)
  4501. #define FDCAN_NDAT2_ND62_Msk (0x1U << FDCAN_NDAT2_ND62_Pos) /*!< 0x40000000 */
  4502. #define FDCAN_NDAT2_ND62 FDCAN_NDAT2_ND62_Msk /*!<New Data flag of Rx Buffer 62 */
  4503. #define FDCAN_NDAT2_ND63_Pos (31U)
  4504. #define FDCAN_NDAT2_ND63_Msk (0x1U << FDCAN_NDAT2_ND63_Pos) /*!< 0x80000000 */
  4505. #define FDCAN_NDAT2_ND63 FDCAN_NDAT2_ND63_Msk /*!<New Data flag of Rx Buffer 63 */
  4506. /***************** Bit definition for FDCAN_RXF0C register ********************/
  4507. #define FDCAN_RXF0C_F0SA_Pos (2U)
  4508. #define FDCAN_RXF0C_F0SA_Msk (0x3FFFU << FDCAN_RXF0C_F0SA_Pos) /*!< 0x0000FFFC */
  4509. #define FDCAN_RXF0C_F0SA FDCAN_RXF0C_F0SA_Msk /*!<Rx FIFO 0 Start Address */
  4510. #define FDCAN_RXF0C_F0S_Pos (16U)
  4511. #define FDCAN_RXF0C_F0S_Msk (0x7FU << FDCAN_RXF0C_F0S_Pos) /*!< 0x007F0000 */
  4512. #define FDCAN_RXF0C_F0S FDCAN_RXF0C_F0S_Msk /*!<Number of Rx FIFO 0 elements */
  4513. #define FDCAN_RXF0C_F0WM_Pos (24U)
  4514. #define FDCAN_RXF0C_F0WM_Msk (0x7FU << FDCAN_RXF0C_F0WM_Pos) /*!< 0x7F000000 */
  4515. #define FDCAN_RXF0C_F0WM FDCAN_RXF0C_F0WM_Msk /*!<FIFO 0 Watermark */
  4516. #define FDCAN_RXF0C_F0OM_Pos (31U)
  4517. #define FDCAN_RXF0C_F0OM_Msk (0x1U << FDCAN_RXF0C_F0OM_Pos) /*!< 0x80000000 */
  4518. #define FDCAN_RXF0C_F0OM FDCAN_RXF0C_F0OM_Msk /*!<FIFO 0 Operation Mode */
  4519. /***************** Bit definition for FDCAN_RXF0S register ********************/
  4520. #define FDCAN_RXF0S_F0FL_Pos (0U)
  4521. #define FDCAN_RXF0S_F0FL_Msk (0x7FU << FDCAN_RXF0S_F0FL_Pos) /*!< 0x0000007F */
  4522. #define FDCAN_RXF0S_F0FL FDCAN_RXF0S_F0FL_Msk /*!<Rx FIFO 0 Fill Level */
  4523. #define FDCAN_RXF0S_F0GI_Pos (8U)
  4524. #define FDCAN_RXF0S_F0GI_Msk (0x3FU << FDCAN_RXF0S_F0GI_Pos) /*!< 0x00003F00 */
  4525. #define FDCAN_RXF0S_F0GI FDCAN_RXF0S_F0GI_Msk /*!<Rx FIFO 0 Get Index */
  4526. #define FDCAN_RXF0S_F0PI_Pos (16U)
  4527. #define FDCAN_RXF0S_F0PI_Msk (0x3FU << FDCAN_RXF0S_F0PI_Pos) /*!< 0x003F0000 */
  4528. #define FDCAN_RXF0S_F0PI FDCAN_RXF0S_F0PI_Msk /*!<Rx FIFO 0 Put Index */
  4529. #define FDCAN_RXF0S_F0F_Pos (24U)
  4530. #define FDCAN_RXF0S_F0F_Msk (0x1U << FDCAN_RXF0S_F0F_Pos) /*!< 0x01000000 */
  4531. #define FDCAN_RXF0S_F0F FDCAN_RXF0S_F0F_Msk /*!<Rx FIFO 0 Full */
  4532. #define FDCAN_RXF0S_RF0L_Pos (25U)
  4533. #define FDCAN_RXF0S_RF0L_Msk (0x1U << FDCAN_RXF0S_RF0L_Pos) /*!< 0x02000000 */
  4534. #define FDCAN_RXF0S_RF0L FDCAN_RXF0S_RF0L_Msk /*!<Rx FIFO 0 Message Lost */
  4535. /***************** Bit definition for FDCAN_RXF0A register ********************/
  4536. #define FDCAN_RXF0A_F0AI_Pos (0U)
  4537. #define FDCAN_RXF0A_F0AI_Msk (0x3FU << FDCAN_RXF0A_F0AI_Pos) /*!< 0x0000003F */
  4538. #define FDCAN_RXF0A_F0AI FDCAN_RXF0A_F0AI_Msk /*!<Rx FIFO 0 Acknowledge Index */
  4539. /***************** Bit definition for FDCAN_RXBC register ********************/
  4540. #define FDCAN_RXBC_RBSA_Pos (2U)
  4541. #define FDCAN_RXBC_RBSA_Msk (0x3FU << FDCAN_RXBC_RBSA_Pos) /*!< 0x000000FC */
  4542. #define FDCAN_RXBC_RBSA FDCAN_RXBC_RBSA_Msk /*!<Rx Buffer Start Address */
  4543. /***************** Bit definition for FDCAN_RXF1C register ********************/
  4544. #define FDCAN_RXF1C_F1SA_Pos (2U)
  4545. #define FDCAN_RXF1C_F1SA_Msk (0x3FU << FDCAN_RXF1C_F1SA_Pos) /*!< 0x000000FC */
  4546. #define FDCAN_RXF1C_F1SA FDCAN_RXF1C_F1SA_Msk /*!<Rx FIFO 1 Start Address */
  4547. #define FDCAN_RXF1C_F1S_Pos (16U)
  4548. #define FDCAN_RXF1C_F1S_Msk (0x7FU << FDCAN_RXF1C_F1S_Pos) /*!< 0x007F0000 */
  4549. #define FDCAN_RXF1C_F1S FDCAN_RXF1C_F1S_Msk /*!<Number of Rx FIFO 1 elements */
  4550. #define FDCAN_RXF1C_F1WM_Pos (24U)
  4551. #define FDCAN_RXF1C_F1WM_Msk (0x7FU << FDCAN_RXF1C_F1WM_Pos) /*!< 0x7F000000 */
  4552. #define FDCAN_RXF1C_F1WM FDCAN_RXF1C_F1WM_Msk /*!<Rx FIFO 1 Watermark */
  4553. #define FDCAN_RXF1C_F1OM_Pos (31U)
  4554. #define FDCAN_RXF1C_F1OM_Msk (0x1U << FDCAN_RXF1C_F1OM_Pos) /*!< 0x80000000 */
  4555. #define FDCAN_RXF1C_F1OM FDCAN_RXF1C_F1OM_Msk /*!<FIFO 1 Operation Mode */
  4556. /***************** Bit definition for FDCAN_RXF1S register ********************/
  4557. #define FDCAN_RXF1S_F1FL_Pos (0U)
  4558. #define FDCAN_RXF1S_F1FL_Msk (0x7FU << FDCAN_RXF1S_F1FL_Pos) /*!< 0x0000007F */
  4559. #define FDCAN_RXF1S_F1FL FDCAN_RXF1S_F1FL_Msk /*!<Rx FIFO 1 Fill Level */
  4560. #define FDCAN_RXF1S_F1GI_Pos (8U)
  4561. #define FDCAN_RXF1S_F1GI_Msk (0x3FU << FDCAN_RXF1S_F1GI_Pos) /*!< 0x00003F00 */
  4562. #define FDCAN_RXF1S_F1GI FDCAN_RXF1S_F1GI_Msk /*!<Rx FIFO 1 Get Index */
  4563. #define FDCAN_RXF1S_F1PI_Pos (16U)
  4564. #define FDCAN_RXF1S_F1PI_Msk (0x3FU << FDCAN_RXF1S_F1PI_Pos) /*!< 0x003F0000 */
  4565. #define FDCAN_RXF1S_F1PI FDCAN_RXF1S_F1PI_Msk /*!<Rx FIFO 1 Put Index */
  4566. #define FDCAN_RXF1S_F1F_Pos (24U)
  4567. #define FDCAN_RXF1S_F1F_Msk (0x1U << FDCAN_RXF1S_F1F_Pos) /*!< 0x01000000 */
  4568. #define FDCAN_RXF1S_F1F FDCAN_RXF1S_F1F_Msk /*!<Rx FIFO 1 Full */
  4569. #define FDCAN_RXF1S_RF1L_Pos (25U)
  4570. #define FDCAN_RXF1S_RF1L_Msk (0x1U << FDCAN_RXF1S_RF1L_Pos) /*!< 0x02000000 */
  4571. #define FDCAN_RXF1S_RF1L FDCAN_RXF1S_RF1L_Msk /*!<Rx FIFO 1 Message Lost */
  4572. /***************** Bit definition for FDCAN_RXF1A register ********************/
  4573. #define FDCAN_RXF1A_F1AI_Pos (0U)
  4574. #define FDCAN_RXF1A_F1AI_Msk (0x3FU << FDCAN_RXF1A_F1AI_Pos) /*!< 0x0000003F */
  4575. #define FDCAN_RXF1A_F1AI FDCAN_RXF1A_F1AI_Msk /*!<Rx FIFO 1 Acknowledge Index */
  4576. /***************** Bit definition for FDCAN_RXESC register ********************/
  4577. #define FDCAN_RXESC_F0DS_Pos (0U)
  4578. #define FDCAN_RXESC_F0DS_Msk (0x7U << FDCAN_RXESC_F0DS_Pos) /*!< 0x00000007 */
  4579. #define FDCAN_RXESC_F0DS FDCAN_RXESC_F0DS_Msk /*!<Rx FIFO 1 Data Field Size */
  4580. #define FDCAN_RXESC_F1DS_Pos (4U)
  4581. #define FDCAN_RXESC_F1DS_Msk (0x7U << FDCAN_RXESC_F1DS_Pos) /*!< 0x00000070 */
  4582. #define FDCAN_RXESC_F1DS FDCAN_RXESC_F1DS_Msk /*!<Rx FIFO 0 Data Field Size */
  4583. #define FDCAN_RXESC_RBDS_Pos (8U)
  4584. #define FDCAN_RXESC_RBDS_Msk (0x7U << FDCAN_RXESC_RBDS_Pos) /*!< 0x00000700 */
  4585. #define FDCAN_RXESC_RBDS FDCAN_RXESC_RBDS_Msk /*!<Rx Buffer Data Field Size */
  4586. /***************** Bit definition for FDCAN_TXBC register *********************/
  4587. #define FDCAN_TXBC_TBSA_Pos (2U)
  4588. #define FDCAN_TXBC_TBSA_Msk (0x3FU << FDCAN_TXBC_TBSA_Pos) /*!< 0x000000FC */
  4589. #define FDCAN_TXBC_TBSA FDCAN_TXBC_TBSA_Msk /*!<Tx Buffers Start Address */
  4590. #define FDCAN_TXBC_NDTB_Pos (16U)
  4591. #define FDCAN_TXBC_NDTB_Msk (0x3FU << FDCAN_TXBC_NDTB_Pos) /*!< 0x003F0000 */
  4592. #define FDCAN_TXBC_NDTB FDCAN_TXBC_NDTB_Msk /*!<Number of Dedicated Transmit Buffers */
  4593. #define FDCAN_TXBC_TFQS_Pos (24U)
  4594. #define FDCAN_TXBC_TFQS_Msk (0x3FU << FDCAN_TXBC_TFQS_Pos) /*!< 0x3F000000 */
  4595. #define FDCAN_TXBC_TFQS FDCAN_TXBC_TFQS_Msk /*!<Transmit FIFO/Queue Size */
  4596. #define FDCAN_TXBC_TFQM_Pos (30U)
  4597. #define FDCAN_TXBC_TFQM_Msk (0x1U << FDCAN_TXBC_TFQM_Pos) /*!< 0x40000000 */
  4598. #define FDCAN_TXBC_TFQM FDCAN_TXBC_TFQM_Msk /*!<Tx FIFO/Queue Mode */
  4599. /***************** Bit definition for FDCAN_TXFQS register *********************/
  4600. #define FDCAN_TXFQS_TFFL_Pos (0U)
  4601. #define FDCAN_TXFQS_TFFL_Msk (0x3FU << FDCAN_TXFQS_TFFL_Pos) /*!< 0x0000003F */
  4602. #define FDCAN_TXFQS_TFFL FDCAN_TXFQS_TFFL_Msk /*!<Tx FIFO Free Level */
  4603. #define FDCAN_TXFQS_TFGI_Pos (8U)
  4604. #define FDCAN_TXFQS_TFGI_Msk (0x1FU << FDCAN_TXFQS_TFGI_Pos) /*!< 0x00001F00 */
  4605. #define FDCAN_TXFQS_TFGI FDCAN_TXFQS_TFGI_Msk /*!<Tx FIFO Get Index */
  4606. #define FDCAN_TXFQS_TFQPI_Pos (16U)
  4607. #define FDCAN_TXFQS_TFQPI_Msk (0x1FU << FDCAN_TXFQS_TFQPI_Pos) /*!< 0x001F0000 */
  4608. #define FDCAN_TXFQS_TFQPI FDCAN_TXFQS_TFQPI_Msk /*!<Tx FIFO/Queue Put Index */
  4609. #define FDCAN_TXFQS_TFQF_Pos (21U)
  4610. #define FDCAN_TXFQS_TFQF_Msk (0x1U << FDCAN_TXFQS_TFQF_Pos) /*!< 0x00200000 */
  4611. #define FDCAN_TXFQS_TFQF FDCAN_TXFQS_TFQF_Msk /*!<Tx FIFO/Queue Full */
  4612. /***************** Bit definition for FDCAN_TXESC register *********************/
  4613. #define FDCAN_TXESC_TBDS_Pos (0U)
  4614. #define FDCAN_TXESC_TBDS_Msk (0x7U << FDCAN_TXESC_TBDS_Pos) /*!< 0x00000007 */
  4615. #define FDCAN_TXESC_TBDS FDCAN_TXESC_TBDS_Msk /*!<Tx Buffer Data Field Size */
  4616. /***************** Bit definition for FDCAN_TXBRP register *********************/
  4617. #define FDCAN_TXBRP_TRP_Pos (0U)
  4618. #define FDCAN_TXBRP_TRP_Msk (0xFFFFFFFFU << FDCAN_TXBRP_TRP_Pos) /*!< 0xFFFFFFFF */
  4619. #define FDCAN_TXBRP_TRP FDCAN_TXBRP_TRP_Msk /*!<Transmission Request Pending */
  4620. /***************** Bit definition for FDCAN_TXBAR register *********************/
  4621. #define FDCAN_TXBAR_AR_Pos (0U)
  4622. #define FDCAN_TXBAR_AR_Msk (0xFFFFFFFFU << FDCAN_TXBAR_AR_Pos) /*!< 0xFFFFFFFF */
  4623. #define FDCAN_TXBAR_AR FDCAN_TXBAR_AR_Msk /*!<Add Request */
  4624. /***************** Bit definition for FDCAN_TXBCR register *********************/
  4625. #define FDCAN_TXBCR_CR_Pos (0U)
  4626. #define FDCAN_TXBCR_CR_Msk (0xFFFFFFFFU << FDCAN_TXBCR_CR_Pos) /*!< 0xFFFFFFFF */
  4627. #define FDCAN_TXBCR_CR FDCAN_TXBCR_CR_Msk /*!<Cancellation Request */
  4628. /***************** Bit definition for FDCAN_TXBTO register *********************/
  4629. #define FDCAN_TXBTO_TO_Pos (0U)
  4630. #define FDCAN_TXBTO_TO_Msk (0xFFFFFFFFU << FDCAN_TXBTO_TO_Pos) /*!< 0xFFFFFFFF */
  4631. #define FDCAN_TXBTO_TO FDCAN_TXBTO_TO_Msk /*!<Transmission Occurred */
  4632. /***************** Bit definition for FDCAN_TXBCF register *********************/
  4633. #define FDCAN_TXBCF_CF_Pos (0U)
  4634. #define FDCAN_TXBCF_CF_Msk (0xFFFFFFFFU << FDCAN_TXBCF_CF_Pos) /*!< 0xFFFFFFFF */
  4635. #define FDCAN_TXBCF_CF FDCAN_TXBCF_CF_Msk /*!<Cancellation Finished */
  4636. /***************** Bit definition for FDCAN_TXBTIE register ********************/
  4637. #define FDCAN_TXBTIE_TIE_Pos (0U)
  4638. #define FDCAN_TXBTIE_TIE_Msk (0xFFFFFFFFU << FDCAN_TXBTIE_TIE_Pos) /*!< 0xFFFFFFFF */
  4639. #define FDCAN_TXBTIE_TIE FDCAN_TXBTIE_TIE_Msk /*!<Transmission Interrupt Enable */
  4640. /***************** Bit definition for FDCAN_ TXBCIE register *******************/
  4641. #define FDCAN_TXBCIE_CF_Pos (0U)
  4642. #define FDCAN_TXBCIE_CF_Msk (0xFFFFFFFFU << FDCAN_TXBCIE_CF_Pos) /*!< 0xFFFFFFFF */
  4643. #define FDCAN_TXBCIE_CF FDCAN_TXBCIE_CF_Msk /*!<Cancellation Finished Interrupt Enable */
  4644. /***************** Bit definition for FDCAN_TXEFC register *********************/
  4645. #define FDCAN_TXEFC_EFSA_Pos (2U)
  4646. #define FDCAN_TXEFC_EFSA_Msk (0x3FU << FDCAN_TXEFC_EFSA_Pos) /*!< 0x000000FC */
  4647. #define FDCAN_TXEFC_EFSA FDCAN_TXEFC_EFSA_Msk /*!<Event FIFO Start Address */
  4648. #define FDCAN_TXEFC_EFS_Pos (8U)
  4649. #define FDCAN_TXEFC_EFS_Msk (0x3FU << FDCAN_TXEFC_EFS_Pos) /*!< 0x00003F00 */
  4650. #define FDCAN_TXEFC_EFS FDCAN_TXEFC_EFS_Msk /*!<Event FIFO Size */
  4651. #define FDCAN_TXEFC_EFWM_Pos (24U)
  4652. #define FDCAN_TXEFC_EFWM_Msk (0x3FU << FDCAN_TXEFC_EFWM_Pos) /*!< 0x3F000000 */
  4653. #define FDCAN_TXEFC_EFWM FDCAN_TXEFC_EFWM_Msk /*!<Event FIFO Watermark */
  4654. /***************** Bit definition for FDCAN_TXEFS register *********************/
  4655. #define FDCAN_TXEFS_EFFL_Pos (0U)
  4656. #define FDCAN_TXEFS_EFFL_Msk (0x3FU << FDCAN_TXEFS_EFFL_Pos) /*!< 0x0000003F */
  4657. #define FDCAN_TXEFS_EFFL FDCAN_TXEFS_EFFL_Msk /*!<Event FIFO Fill Level */
  4658. #define FDCAN_TXEFS_EFGI_Pos (8U)
  4659. #define FDCAN_TXEFS_EFGI_Msk (0x1FU << FDCAN_TXEFS_EFGI_Pos) /*!< 0x00001F00 */
  4660. #define FDCAN_TXEFS_EFGI FDCAN_TXEFS_EFGI_Msk /*!<Event FIFO Get Index */
  4661. #define FDCAN_TXEFS_EFPI_Pos (16U)
  4662. #define FDCAN_TXEFS_EFPI_Msk (0x1FU << FDCAN_TXEFS_EFPI_Pos) /*!< 0x001F0000 */
  4663. #define FDCAN_TXEFS_EFPI FDCAN_TXEFS_EFPI_Msk /*!<Event FIFO Put Index */
  4664. #define FDCAN_TXEFS_EFF_Pos (24U)
  4665. #define FDCAN_TXEFS_EFF_Msk (0x1U << FDCAN_TXEFS_EFF_Pos) /*!< 0x01000000 */
  4666. #define FDCAN_TXEFS_EFF FDCAN_TXEFS_EFF_Msk /*!<Event FIFO Full */
  4667. #define FDCAN_TXEFS_TEFL_Pos (25U)
  4668. #define FDCAN_TXEFS_TEFL_Msk (0x1U << FDCAN_TXEFS_TEFL_Pos) /*!< 0x02000000 */
  4669. #define FDCAN_TXEFS_TEFL FDCAN_TXEFS_TEFL_Msk /*!<Tx Event FIFO Element Lost */
  4670. /***************** Bit definition for FDCAN_TXEFA register *********************/
  4671. #define FDCAN_TXEFA_EFAI_Pos (0U)
  4672. #define FDCAN_TXEFA_EFAI_Msk (0x1FU << FDCAN_TXEFA_EFAI_Pos) /*!< 0x0000001F */
  4673. #define FDCAN_TXEFA_EFAI FDCAN_TXEFA_EFAI_Msk /*!<Event FIFO Acknowledge Index */
  4674. /***************** Bit definition for FDCAN_TTTMC register *********************/
  4675. #define FDCAN_TTTMC_TMSA_Pos (2U)
  4676. #define FDCAN_TTTMC_TMSA_Msk (0x3FFFU << FDCAN_TTTMC_TMSA_Pos) /*!< 0x0000FFFC */
  4677. #define FDCAN_TTTMC_TMSA FDCAN_TTTMC_TMSA_Msk /*!<Trigger Memory Start Address */
  4678. #define FDCAN_TTTMC_TME_Pos (16U)
  4679. #define FDCAN_TTTMC_TME_Msk (0x7FU << FDCAN_TTTMC_TME_Pos) /*!< 0x007F0000 */
  4680. #define FDCAN_TTTMC_TME FDCAN_TTTMC_TME_Msk /*!<Trigger Memory Elements */
  4681. /***************** Bit definition for FDCAN_TTRMC register *********************/
  4682. #define FDCAN_TTRMC_RID_Pos (0U)
  4683. #define FDCAN_TTRMC_RID_Msk (0x1FFFFFFFU << FDCAN_TTRMC_RID_Pos) /*!< 0x1FFFFFFF */
  4684. #define FDCAN_TTRMC_RID FDCAN_TTRMC_RID_Msk /*!<Reference Identifier */
  4685. #define FDCAN_TTRMC_XTD_Pos (30U)
  4686. #define FDCAN_TTRMC_XTD_Msk (0x1U << FDCAN_TTRMC_XTD_Pos) /*!< 0x40000000 */
  4687. #define FDCAN_TTRMC_XTD FDCAN_TTRMC_XTD_Msk /*!< Extended Identifier */
  4688. #define FDCAN_TTRMC_RMPS_Pos (31U)
  4689. #define FDCAN_TTRMC_RMPS_Msk (0x1U << FDCAN_TTRMC_RMPS_Pos) /*!< 0x80000000 */
  4690. #define FDCAN_TTRMC_RMPS FDCAN_TTRMC_RMPS_Msk /*!<Reference Message Payload Select */
  4691. /***************** Bit definition for FDCAN_TTOCF register *********************/
  4692. #define FDCAN_TTOCF_OM_Pos (0U)
  4693. #define FDCAN_TTOCF_OM_Msk (0x3U << FDCAN_TTOCF_OM_Pos) /*!< 0x00000003 */
  4694. #define FDCAN_TTOCF_OM FDCAN_TTOCF_OM_Msk /*!<Operation Mode */
  4695. #define FDCAN_TTOCF_GEN_Pos (3U)
  4696. #define FDCAN_TTOCF_GEN_Msk (0x1U << FDCAN_TTOCF_GEN_Pos) /*!< 0x00000008 */
  4697. #define FDCAN_TTOCF_GEN FDCAN_TTOCF_GEN_Msk /*!<Gap Enable */
  4698. #define FDCAN_TTOCF_TM_Pos (4U)
  4699. #define FDCAN_TTOCF_TM_Msk (0x1U << FDCAN_TTOCF_TM_Pos) /*!< 0x00000010 */
  4700. #define FDCAN_TTOCF_TM FDCAN_TTOCF_TM_Msk /*!<Time Master */
  4701. #define FDCAN_TTOCF_LDSDL_Pos (5U)
  4702. #define FDCAN_TTOCF_LDSDL_Msk (0x7U << FDCAN_TTOCF_LDSDL_Pos) /*!< 0x000000E0 */
  4703. #define FDCAN_TTOCF_LDSDL FDCAN_TTOCF_LDSDL_Msk /*!<LD of Synchronization Deviation Limit */
  4704. #define FDCAN_TTOCF_IRTO_Pos (8U)
  4705. #define FDCAN_TTOCF_IRTO_Msk (0x7FU << FDCAN_TTOCF_IRTO_Pos) /*!< 0x00007F00 */
  4706. #define FDCAN_TTOCF_IRTO FDCAN_TTOCF_IRTO_Msk /*!<Initial Reference Trigger Offset */
  4707. #define FDCAN_TTOCF_EECS_Pos (15U)
  4708. #define FDCAN_TTOCF_EECS_Msk (0x1U << FDCAN_TTOCF_EECS_Pos) /*!< 0x00008000 */
  4709. #define FDCAN_TTOCF_EECS FDCAN_TTOCF_EECS_Msk /*!<Enable External Clock Synchronization */
  4710. #define FDCAN_TTOCF_AWL_Pos (16U)
  4711. #define FDCAN_TTOCF_AWL_Msk (0xFFU << FDCAN_TTOCF_AWL_Pos) /*!< 0x00FF0000 */
  4712. #define FDCAN_TTOCF_AWL FDCAN_TTOCF_AWL_Msk /*!<Application Watchdog Limit */
  4713. #define FDCAN_TTOCF_EGTF_Pos (24U)
  4714. #define FDCAN_TTOCF_EGTF_Msk (0x1U << FDCAN_TTOCF_EGTF_Pos) /*!< 0x01000000 */
  4715. #define FDCAN_TTOCF_EGTF FDCAN_TTOCF_EGTF_Msk /*!<Enable Global Time Filtering */
  4716. #define FDCAN_TTOCF_ECC_Pos (25U)
  4717. #define FDCAN_TTOCF_ECC_Msk (0x1U << FDCAN_TTOCF_ECC_Pos) /*!< 0x02000000 */
  4718. #define FDCAN_TTOCF_ECC FDCAN_TTOCF_ECC_Msk /*!<Enable Clock Calibration */
  4719. #define FDCAN_TTOCF_EVTP_Pos (26U)
  4720. #define FDCAN_TTOCF_EVTP_Msk (0x1U << FDCAN_TTOCF_EVTP_Pos) /*!< 0x04000000 */
  4721. #define FDCAN_TTOCF_EVTP FDCAN_TTOCF_EVTP_Msk /*!<Event Trigger Polarity */
  4722. /***************** Bit definition for FDCAN_TTMLM register *********************/
  4723. #define FDCAN_TTMLM_CCM_Pos (0U)
  4724. #define FDCAN_TTMLM_CCM_Msk (0x3FU << FDCAN_TTMLM_CCM_Pos) /*!< 0x0000003F */
  4725. #define FDCAN_TTMLM_CCM FDCAN_TTMLM_CCM_Msk /*!<Cycle Count Max */
  4726. #define FDCAN_TTMLM_CSS_Pos (6U)
  4727. #define FDCAN_TTMLM_CSS_Msk (0x3U << FDCAN_TTMLM_CSS_Pos) /*!< 0x000000C0 */
  4728. #define FDCAN_TTMLM_CSS FDCAN_TTMLM_CSS_Msk /*!<Cycle Start Synchronization */
  4729. #define FDCAN_TTMLM_TXEW_Pos (8U)
  4730. #define FDCAN_TTMLM_TXEW_Msk (0xFU << FDCAN_TTMLM_TXEW_Pos) /*!< 0x00000F00 */
  4731. #define FDCAN_TTMLM_TXEW FDCAN_TTMLM_TXEW_Msk /*!<Tx Enable Window */
  4732. #define FDCAN_TTMLM_ENTT_Pos (16U)
  4733. #define FDCAN_TTMLM_ENTT_Msk (0xFFFU << FDCAN_TTMLM_ENTT_Pos) /*!< 0x0FFF0000 */
  4734. #define FDCAN_TTMLM_ENTT FDCAN_TTMLM_ENTT_Msk /*!<Expected Number of Tx Triggers */
  4735. /***************** Bit definition for FDCAN_TURCF register *********************/
  4736. #define FDCAN_TURCF_NCL_Pos (0U)
  4737. #define FDCAN_TURCF_NCL_Msk (0xFFFFU << FDCAN_TURCF_NCL_Pos) /*!< 0x0000FFFF */
  4738. #define FDCAN_TURCF_NCL FDCAN_TURCF_NCL_Msk /*!<Numerator Configuration Low */
  4739. #define FDCAN_TURCF_DC_Pos (16U)
  4740. #define FDCAN_TURCF_DC_Msk (0x3FFFU << FDCAN_TURCF_DC_Pos) /*!< 0x3FFF0000 */
  4741. #define FDCAN_TURCF_DC FDCAN_TURCF_DC_Msk /*!<Denominator Configuration */
  4742. #define FDCAN_TURCF_ELT_Pos (31U)
  4743. #define FDCAN_TURCF_ELT_Msk (0x1U << FDCAN_TURCF_ELT_Pos) /*!< 0x80000000 */
  4744. #define FDCAN_TURCF_ELT FDCAN_TURCF_ELT_Msk /*!<Enable Local Time */
  4745. /***************** Bit definition for FDCAN_TTOCN register ********************/
  4746. #define FDCAN_TTOCN_SGT_Pos (0U)
  4747. #define FDCAN_TTOCN_SGT_Msk (0x1U << FDCAN_TTOCN_SGT_Pos) /*!< 0x00000001 */
  4748. #define FDCAN_TTOCN_SGT FDCAN_TTOCN_SGT_Msk /*!<Set Global time */
  4749. #define FDCAN_TTOCN_ECS_Pos (1U)
  4750. #define FDCAN_TTOCN_ECS_Msk (0x1U << FDCAN_TTOCN_ECS_Pos) /*!< 0x00000002 */
  4751. #define FDCAN_TTOCN_ECS FDCAN_TTOCN_ECS_Msk /*!<External Clock Synchronization */
  4752. #define FDCAN_TTOCN_SWP_Pos (2U)
  4753. #define FDCAN_TTOCN_SWP_Msk (0x1U << FDCAN_TTOCN_SWP_Pos) /*!< 0x00000004 */
  4754. #define FDCAN_TTOCN_SWP FDCAN_TTOCN_SWP_Msk /*!<Stop Watch Polarity */
  4755. #define FDCAN_TTOCN_SWS_Pos (3U)
  4756. #define FDCAN_TTOCN_SWS_Msk (0x3U << FDCAN_TTOCN_SWS_Pos) /*!< 0x00000018 */
  4757. #define FDCAN_TTOCN_SWS FDCAN_TTOCN_SWS_Msk /*!<Stop Watch Source */
  4758. #define FDCAN_TTOCN_RTIE_Pos (5U)
  4759. #define FDCAN_TTOCN_RTIE_Msk (0x1U << FDCAN_TTOCN_RTIE_Pos) /*!< 0x00000020 */
  4760. #define FDCAN_TTOCN_RTIE FDCAN_TTOCN_RTIE_Msk /*!<Register Time Mark Interrupt Pulse Enable */
  4761. #define FDCAN_TTOCN_TMC_Pos (6U)
  4762. #define FDCAN_TTOCN_TMC_Msk (0x3U << FDCAN_TTOCN_TMC_Pos) /*!< 0x000000C0 */
  4763. #define FDCAN_TTOCN_TMC FDCAN_TTOCN_TMC_Msk /*!<Register Time Mark Compare */
  4764. #define FDCAN_TTOCN_TTIE_Pos (8U)
  4765. #define FDCAN_TTOCN_TTIE_Msk (0x1U << FDCAN_TTOCN_TTIE_Pos) /*!< 0x00000100 */
  4766. #define FDCAN_TTOCN_TTIE FDCAN_TTOCN_TTIE_Msk /*!<Trigger Time Mark Interrupt Pulse Enable */
  4767. #define FDCAN_TTOCN_GCS_Pos (9U)
  4768. #define FDCAN_TTOCN_GCS_Msk (0x1U << FDCAN_TTOCN_GCS_Pos) /*!< 0x00000200 */
  4769. #define FDCAN_TTOCN_GCS FDCAN_TTOCN_GCS_Msk /*!<Gap Control Select */
  4770. #define FDCAN_TTOCN_FGP_Pos (10U)
  4771. #define FDCAN_TTOCN_FGP_Msk (0x1U << FDCAN_TTOCN_FGP_Pos) /*!< 0x00000400 */
  4772. #define FDCAN_TTOCN_FGP FDCAN_TTOCN_FGP_Msk /*!<Finish Gap */
  4773. #define FDCAN_TTOCN_TMG_Pos (11U)
  4774. #define FDCAN_TTOCN_TMG_Msk (0x1U << FDCAN_TTOCN_TMG_Pos) /*!< 0x00000800 */
  4775. #define FDCAN_TTOCN_TMG FDCAN_TTOCN_TMG_Msk /*!<Time Mark Gap */
  4776. #define FDCAN_TTOCN_NIG_Pos (12U)
  4777. #define FDCAN_TTOCN_NIG_Msk (0x1U << FDCAN_TTOCN_NIG_Pos) /*!< 0x00001000 */
  4778. #define FDCAN_TTOCN_NIG FDCAN_TTOCN_NIG_Msk /*!<Next is Gap */
  4779. #define FDCAN_TTOCN_ESCN_Pos (13U)
  4780. #define FDCAN_TTOCN_ESCN_Msk (0x1U << FDCAN_TTOCN_ESCN_Pos) /*!< 0x00002000 */
  4781. #define FDCAN_TTOCN_ESCN FDCAN_TTOCN_ESCN_Msk /*!<External Synchronization Control */
  4782. #define FDCAN_TTOCN_LCKC_Pos (15U)
  4783. #define FDCAN_TTOCN_LCKC_Msk (0x1U << FDCAN_TTOCN_LCKC_Pos) /*!< 0x00008000 */
  4784. #define FDCAN_TTOCN_LCKC FDCAN_TTOCN_LCKC_Msk /*!<TT Operation Control Register Locked */
  4785. /***************** Bit definition for FDCAN_TTGTP register ********************/
  4786. #define FDCAN_TTGTP_TP_Pos (0U)
  4787. #define FDCAN_TTGTP_TP_Msk (0xFFFFU << FDCAN_TTGTP_TP_Pos) /*!< 0x0000FFFF */
  4788. #define FDCAN_TTGTP_TP FDCAN_TTGTP_TP_Msk /*!<Time Preset */
  4789. #define FDCAN_TTGTP_CTP_Pos (16U)
  4790. #define FDCAN_TTGTP_CTP_Msk (0xFFFFU << FDCAN_TTGTP_CTP_Pos) /*!< 0xFFFF0000 */
  4791. #define FDCAN_TTGTP_CTP FDCAN_TTGTP_CTP_Msk /*!<Cycle Time Target Phase */
  4792. /***************** Bit definition for FDCAN_TTTMK register ********************/
  4793. #define FDCAN_TTTMK_TM_Pos (0U)
  4794. #define FDCAN_TTTMK_TM_Msk (0xFFFFU << FDCAN_TTTMK_TM_Pos) /*!< 0x0000FFFF */
  4795. #define FDCAN_TTTMK_TM FDCAN_TTTMK_TM_Msk /*!<Time Mark */
  4796. #define FDCAN_TTTMK_TICC_Pos (16U)
  4797. #define FDCAN_TTTMK_TICC_Msk (0x7FU << FDCAN_TTTMK_TICC_Pos) /*!< 0x007F0000 */
  4798. #define FDCAN_TTTMK_TICC FDCAN_TTTMK_TICC_Msk /*!<Time Mark Cycle Code */
  4799. #define FDCAN_TTTMK_LCKM_Pos (31U)
  4800. #define FDCAN_TTTMK_LCKM_Msk (0x1U << FDCAN_TTTMK_LCKM_Pos) /*!< 0x80000000 */
  4801. #define FDCAN_TTTMK_LCKM FDCAN_TTTMK_LCKM_Msk /*!<TT Time Mark Register Locked */
  4802. /***************** Bit definition for FDCAN_TTIR register ********************/
  4803. #define FDCAN_TTIR_SBC_Pos (0U)
  4804. #define FDCAN_TTIR_SBC_Msk (0x1U << FDCAN_TTIR_SBC_Pos) /*!< 0x00000001 */
  4805. #define FDCAN_TTIR_SBC FDCAN_TTIR_SBC_Msk /*!<Start of Basic Cycle */
  4806. #define FDCAN_TTIR_SMC_Pos (1U)
  4807. #define FDCAN_TTIR_SMC_Msk (0x1U << FDCAN_TTIR_SMC_Pos) /*!< 0x00000002 */
  4808. #define FDCAN_TTIR_SMC FDCAN_TTIR_SMC_Msk /*!<Start of Matrix Cycle */
  4809. #define FDCAN_TTIR_CSM_Pos (2U)
  4810. #define FDCAN_TTIR_CSM_Msk (0x1U << FDCAN_TTIR_CSM_Pos) /*!< 0x00000004 */
  4811. #define FDCAN_TTIR_CSM FDCAN_TTIR_CSM_Msk /*!<Change of Synchronization Mode */
  4812. #define FDCAN_TTIR_SOG_Pos (3U)
  4813. #define FDCAN_TTIR_SOG_Msk (0x1U << FDCAN_TTIR_SOG_Pos) /*!< 0x00000008 */
  4814. #define FDCAN_TTIR_SOG FDCAN_TTIR_SOG_Msk /*!<Start of Gap */
  4815. #define FDCAN_TTIR_RTMI_Pos (4U)
  4816. #define FDCAN_TTIR_RTMI_Msk (0x1U << FDCAN_TTIR_RTMI_Pos) /*!< 0x00000010 */
  4817. #define FDCAN_TTIR_RTMI FDCAN_TTIR_RTMI_Msk /*!<Register Time Mark Interrupt */
  4818. #define FDCAN_TTIR_TTMI_Pos (5U)
  4819. #define FDCAN_TTIR_TTMI_Msk (0x1U << FDCAN_TTIR_TTMI_Pos) /*!< 0x00000020 */
  4820. #define FDCAN_TTIR_TTMI FDCAN_TTIR_TTMI_Msk /*!<Trigger Time Mark Event Internal */
  4821. #define FDCAN_TTIR_SWE_Pos (6U)
  4822. #define FDCAN_TTIR_SWE_Msk (0x1U << FDCAN_TTIR_SWE_Pos) /*!< 0x00000040 */
  4823. #define FDCAN_TTIR_SWE FDCAN_TTIR_SWE_Msk /*!<Stop Watch Event */
  4824. #define FDCAN_TTIR_GTW_Pos (7U)
  4825. #define FDCAN_TTIR_GTW_Msk (0x1U << FDCAN_TTIR_GTW_Pos) /*!< 0x00000080 */
  4826. #define FDCAN_TTIR_GTW FDCAN_TTIR_GTW_Msk /*!<Global Time Wrap */
  4827. #define FDCAN_TTIR_GTD_Pos (8U)
  4828. #define FDCAN_TTIR_GTD_Msk (0x1U << FDCAN_TTIR_GTD_Pos) /*!< 0x00000100 */
  4829. #define FDCAN_TTIR_GTD FDCAN_TTIR_GTD_Msk /*!<Global Time Discontinuity */
  4830. #define FDCAN_TTIR_GTE_Pos (9U)
  4831. #define FDCAN_TTIR_GTE_Msk (0x1U << FDCAN_TTIR_GTE_Pos) /*!< 0x00000200 */
  4832. #define FDCAN_TTIR_GTE FDCAN_TTIR_GTE_Msk /*!<Global Time Error */
  4833. #define FDCAN_TTIR_TXU_Pos (10U)
  4834. #define FDCAN_TTIR_TXU_Msk (0x1U << FDCAN_TTIR_TXU_Pos) /*!< 0x00000400 */
  4835. #define FDCAN_TTIR_TXU FDCAN_TTIR_TXU_Msk /*!<Tx Count Underflow */
  4836. #define FDCAN_TTIR_TXO_Pos (11U)
  4837. #define FDCAN_TTIR_TXO_Msk (0x1U << FDCAN_TTIR_TXO_Pos) /*!< 0x00000800 */
  4838. #define FDCAN_TTIR_TXO FDCAN_TTIR_TXO_Msk /*!<Tx Count Overflow */
  4839. #define FDCAN_TTIR_SE1_Pos (12U)
  4840. #define FDCAN_TTIR_SE1_Msk (0x1U << FDCAN_TTIR_SE1_Pos) /*!< 0x00001000 */
  4841. #define FDCAN_TTIR_SE1 FDCAN_TTIR_SE1_Msk /*!<Scheduling Error 1 */
  4842. #define FDCAN_TTIR_SE2_Pos (13U)
  4843. #define FDCAN_TTIR_SE2_Msk (0x1U << FDCAN_TTIR_SE2_Pos) /*!< 0x00002000 */
  4844. #define FDCAN_TTIR_SE2 FDCAN_TTIR_SE2_Msk /*!<Scheduling Error 2 */
  4845. #define FDCAN_TTIR_ELC_Pos (14U)
  4846. #define FDCAN_TTIR_ELC_Msk (0x1U << FDCAN_TTIR_ELC_Pos) /*!< 0x00004000 */
  4847. #define FDCAN_TTIR_ELC FDCAN_TTIR_ELC_Msk /*!<Error Level Changed */
  4848. #define FDCAN_TTIR_IWT_Pos (15U)
  4849. #define FDCAN_TTIR_IWT_Msk (0x1U << FDCAN_TTIR_IWT_Pos) /*!< 0x00008000 */
  4850. #define FDCAN_TTIR_IWT FDCAN_TTIR_IWT_Msk /*!<Initialization Watch Trigger */
  4851. #define FDCAN_TTIR_WT_Pos (16U)
  4852. #define FDCAN_TTIR_WT_Msk (0x1U << FDCAN_TTIR_WT_Pos) /*!< 0x00010000 */
  4853. #define FDCAN_TTIR_WT FDCAN_TTIR_WT_Msk /*!<Watch Trigger */
  4854. #define FDCAN_TTIR_AW_Pos (17U)
  4855. #define FDCAN_TTIR_AW_Msk (0x1U << FDCAN_TTIR_AW_Pos) /*!< 0x00020000 */
  4856. #define FDCAN_TTIR_AW FDCAN_TTIR_AW_Msk /*!<Application Watchdog */
  4857. #define FDCAN_TTIR_CER_Pos (18U)
  4858. #define FDCAN_TTIR_CER_Msk (0x1U << FDCAN_TTIR_CER_Pos) /*!< 0x00040000 */
  4859. #define FDCAN_TTIR_CER FDCAN_TTIR_CER_Msk /*!<Configuration Error */
  4860. /***************** Bit definition for FDCAN_TTIE register ********************/
  4861. #define FDCAN_TTIE_SBCE_Pos (0U)
  4862. #define FDCAN_TTIE_SBCE_Msk (0x1U << FDCAN_TTIE_SBCE_Pos) /*!< 0x00000001 */
  4863. #define FDCAN_TTIE_SBCE FDCAN_TTIE_SBCE_Msk /*!<Start of Basic Cycle Interrupt Enable */
  4864. #define FDCAN_TTIE_SMCE_Pos (1U)
  4865. #define FDCAN_TTIE_SMCE_Msk (0x1U << FDCAN_TTIE_SMCE_Pos) /*!< 0x00000002 */
  4866. #define FDCAN_TTIE_SMCE FDCAN_TTIE_SMCE_Msk /*!<Start of Matrix Cycle Interrupt Enable */
  4867. #define FDCAN_TTIE_CSME_Pos (2U)
  4868. #define FDCAN_TTIE_CSME_Msk (0x1U << FDCAN_TTIE_CSME_Pos) /*!< 0x00000004 */
  4869. #define FDCAN_TTIE_CSME FDCAN_TTIE_CSME_Msk /*!<Change of Synchronization Mode Interrupt Enable */
  4870. #define FDCAN_TTIE_SOGE_Pos (3U)
  4871. #define FDCAN_TTIE_SOGE_Msk (0x1U << FDCAN_TTIE_SOGE_Pos) /*!< 0x00000008 */
  4872. #define FDCAN_TTIE_SOGE FDCAN_TTIE_SOGE_Msk /*!<Start of Gap Interrupt Enable */
  4873. #define FDCAN_TTIE_RTMIE_Pos (4U)
  4874. #define FDCAN_TTIE_RTMIE_Msk (0x1U << FDCAN_TTIE_RTMIE_Pos) /*!< 0x00000010 */
  4875. #define FDCAN_TTIE_RTMIE FDCAN_TTIE_RTMIE_Msk /*!<Register Time Mark Interrupt Interrupt Enable */
  4876. #define FDCAN_TTIE_TTMIE_Pos (5U)
  4877. #define FDCAN_TTIE_TTMIE_Msk (0x1U << FDCAN_TTIE_TTMIE_Pos) /*!< 0x00000020 */
  4878. #define FDCAN_TTIE_TTMIE FDCAN_TTIE_TTMIE_Msk /*!<Trigger Time Mark Event Internal Interrupt Enable */
  4879. #define FDCAN_TTIE_SWEE_Pos (6U)
  4880. #define FDCAN_TTIE_SWEE_Msk (0x1U << FDCAN_TTIE_SWEE_Pos) /*!< 0x00000040 */
  4881. #define FDCAN_TTIE_SWEE FDCAN_TTIE_SWEE_Msk /*!<Stop Watch Event Interrupt Enable */
  4882. #define FDCAN_TTIE_GTWE_Pos (7U)
  4883. #define FDCAN_TTIE_GTWE_Msk (0x1U << FDCAN_TTIE_GTWE_Pos) /*!< 0x00000080 */
  4884. #define FDCAN_TTIE_GTWE FDCAN_TTIE_GTWE_Msk /*!<Global Time Wrap Interrupt Enable */
  4885. #define FDCAN_TTIE_GTDE_Pos (8U)
  4886. #define FDCAN_TTIE_GTDE_Msk (0x1U << FDCAN_TTIE_GTDE_Pos) /*!< 0x00000100 */
  4887. #define FDCAN_TTIE_GTDE FDCAN_TTIE_GTDE_Msk /*!<Global Time Discontinuity Interrupt Enable */
  4888. #define FDCAN_TTIE_GTEE_Pos (9U)
  4889. #define FDCAN_TTIE_GTEE_Msk (0x1U << FDCAN_TTIE_GTEE_Pos) /*!< 0x00000200 */
  4890. #define FDCAN_TTIE_GTEE FDCAN_TTIE_GTEE_Msk /*!<Global Time Error Interrupt Enable */
  4891. #define FDCAN_TTIE_TXUE_Pos (10U)
  4892. #define FDCAN_TTIE_TXUE_Msk (0x1U << FDCAN_TTIE_TXUE_Pos) /*!< 0x00000400 */
  4893. #define FDCAN_TTIE_TXUE FDCAN_TTIE_TXUE_Msk /*!<Tx Count Underflow Interrupt Enable */
  4894. #define FDCAN_TTIE_TXOE_Pos (11U)
  4895. #define FDCAN_TTIE_TXOE_Msk (0x1U << FDCAN_TTIE_TXOE_Pos) /*!< 0x00000800 */
  4896. #define FDCAN_TTIE_TXOE FDCAN_TTIE_TXOE_Msk /*!<Tx Count Overflow Interrupt Enable */
  4897. #define FDCAN_TTIE_SE1E_Pos (12U)
  4898. #define FDCAN_TTIE_SE1E_Msk (0x1U << FDCAN_TTIE_SE1E_Pos) /*!< 0x00001000 */
  4899. #define FDCAN_TTIE_SE1E FDCAN_TTIE_SE1E_Msk /*!<Scheduling Error 1 Interrupt Enable */
  4900. #define FDCAN_TTIE_SE2E_Pos (13U)
  4901. #define FDCAN_TTIE_SE2E_Msk (0x1U << FDCAN_TTIE_SE2E_Pos) /*!< 0x00002000 */
  4902. #define FDCAN_TTIE_SE2E FDCAN_TTIE_SE2E_Msk /*!<Scheduling Error 2 Interrupt Enable */
  4903. #define FDCAN_TTIE_ELCE_Pos (14U)
  4904. #define FDCAN_TTIE_ELCE_Msk (0x1U << FDCAN_TTIE_ELCE_Pos) /*!< 0x00004000 */
  4905. #define FDCAN_TTIE_ELCE FDCAN_TTIE_ELCE_Msk /*!<Error Level Changed Interrupt Enable */
  4906. #define FDCAN_TTIE_IWTE_Pos (15U)
  4907. #define FDCAN_TTIE_IWTE_Msk (0x1U << FDCAN_TTIE_IWTE_Pos) /*!< 0x00008000 */
  4908. #define FDCAN_TTIE_IWTE FDCAN_TTIE_IWTE_Msk /*!<Initialization Watch Trigger Interrupt Enable */
  4909. #define FDCAN_TTIE_WTE_Pos (16U)
  4910. #define FDCAN_TTIE_WTE_Msk (0x1U << FDCAN_TTIE_WTE_Pos) /*!< 0x00010000 */
  4911. #define FDCAN_TTIE_WTE FDCAN_TTIE_WTE_Msk /*!<Watch Trigger Interrupt Enable */
  4912. #define FDCAN_TTIE_AWE_Pos (17U)
  4913. #define FDCAN_TTIE_AWE_Msk (0x1U << FDCAN_TTIE_AWE_Pos) /*!< 0x00020000 */
  4914. #define FDCAN_TTIE_AWE FDCAN_TTIE_AWE_Msk /*!<Application Watchdog Interrupt Enable */
  4915. #define FDCAN_TTIE_CERE_Pos (18U)
  4916. #define FDCAN_TTIE_CERE_Msk (0x1U << FDCAN_TTIE_CERE_Pos) /*!< 0x00040000 */
  4917. #define FDCAN_TTIE_CERE FDCAN_TTIE_CERE_Msk /*!<Configuration Error Interrupt Enable */
  4918. /***************** Bit definition for FDCAN_TTILS register ********************/
  4919. #define FDCAN_TTILS_SBCS_Pos (0U)
  4920. #define FDCAN_TTILS_SBCS_Msk (0x1U << FDCAN_TTILS_SBCS_Pos) /*!< 0x00000001 */
  4921. #define FDCAN_TTILS_SBCS FDCAN_TTILS_SBCS_Msk /*!<Start of Basic Cycle Interrupt Line */
  4922. #define FDCAN_TTILS_SMCS_Pos (1U)
  4923. #define FDCAN_TTILS_SMCS_Msk (0x1U << FDCAN_TTILS_SMCS_Pos) /*!< 0x00000002 */
  4924. #define FDCAN_TTILS_SMCS FDCAN_TTILS_SMCS_Msk /*!<Start of Matrix Cycle Interrupt Line */
  4925. #define FDCAN_TTILS_CSMS_Pos (2U)
  4926. #define FDCAN_TTILS_CSMS_Msk (0x1U << FDCAN_TTILS_CSMS_Pos) /*!< 0x00000004 */
  4927. #define FDCAN_TTILS_CSMS FDCAN_TTILS_CSMS_Msk /*!<Change of Synchronization Mode Interrupt Line */
  4928. #define FDCAN_TTILS_SOGS_Pos (3U)
  4929. #define FDCAN_TTILS_SOGS_Msk (0x1U << FDCAN_TTILS_SOGS_Pos) /*!< 0x00000008 */
  4930. #define FDCAN_TTILS_SOGS FDCAN_TTILS_SOGS_Msk /*!<Start of Gap Interrupt Line */
  4931. #define FDCAN_TTILS_RTMIS_Pos (4U)
  4932. #define FDCAN_TTILS_RTMIS_Msk (0x1U << FDCAN_TTILS_RTMIS_Pos) /*!< 0x00000010 */
  4933. #define FDCAN_TTILS_RTMIS FDCAN_TTILS_RTMIS_Msk /*!<Register Time Mark Interrupt Interrupt Line */
  4934. #define FDCAN_TTILS_TTMIS_Pos (5U)
  4935. #define FDCAN_TTILS_TTMIS_Msk (0x1U << FDCAN_TTILS_TTMIS_Pos) /*!< 0x00000020 */
  4936. #define FDCAN_TTILS_TTMIS FDCAN_TTILS_TTMIS_Msk /*!<Trigger Time Mark Event Internal Interrupt Line */
  4937. #define FDCAN_TTILS_SWES_Pos (6U)
  4938. #define FDCAN_TTILS_SWES_Msk (0x1U << FDCAN_TTILS_SWES_Pos) /*!< 0x00000040 */
  4939. #define FDCAN_TTILS_SWES FDCAN_TTILS_SWES_Msk /*!<Stop Watch Event Interrupt Line */
  4940. #define FDCAN_TTILS_GTWS_Pos (7U)
  4941. #define FDCAN_TTILS_GTWS_Msk (0x1U << FDCAN_TTILS_GTWS_Pos) /*!< 0x00000080 */
  4942. #define FDCAN_TTILS_GTWS FDCAN_TTILS_GTWS_Msk /*!<Global Time Wrap Interrupt Line */
  4943. #define FDCAN_TTILS_GTDS_Pos (8U)
  4944. #define FDCAN_TTILS_GTDS_Msk (0x1U << FDCAN_TTILS_GTDS_Pos) /*!< 0x00000100 */
  4945. #define FDCAN_TTILS_GTDS FDCAN_TTILS_GTDS_Msk /*!<Global Time Discontinuity Interrupt Line */
  4946. #define FDCAN_TTILS_GTES_Pos (9U)
  4947. #define FDCAN_TTILS_GTES_Msk (0x1U << FDCAN_TTILS_GTES_Pos) /*!< 0x00000200 */
  4948. #define FDCAN_TTILS_GTES FDCAN_TTILS_GTES_Msk /*!<Global Time Error Interrupt Line */
  4949. #define FDCAN_TTILS_TXUS_Pos (10U)
  4950. #define FDCAN_TTILS_TXUS_Msk (0x1U << FDCAN_TTILS_TXUS_Pos) /*!< 0x00000400 */
  4951. #define FDCAN_TTILS_TXUS FDCAN_TTILS_TXUS_Msk /*!<Tx Count Underflow Interrupt Line */
  4952. #define FDCAN_TTILS_TXOS_Pos (11U)
  4953. #define FDCAN_TTILS_TXOS_Msk (0x1U << FDCAN_TTILS_TXOS_Pos) /*!< 0x00000800 */
  4954. #define FDCAN_TTILS_TXOS FDCAN_TTILS_TXOS_Msk /*!<Tx Count Overflow Interrupt Line */
  4955. #define FDCAN_TTILS_SE1S_Pos (12U)
  4956. #define FDCAN_TTILS_SE1S_Msk (0x1U << FDCAN_TTILS_SE1S_Pos) /*!< 0x00001000 */
  4957. #define FDCAN_TTILS_SE1S FDCAN_TTILS_SE1S_Msk /*!<Scheduling Error 1 Interrupt Line */
  4958. #define FDCAN_TTILS_SE2S_Pos (13U)
  4959. #define FDCAN_TTILS_SE2S_Msk (0x1U << FDCAN_TTILS_SE2S_Pos) /*!< 0x00002000 */
  4960. #define FDCAN_TTILS_SE2S FDCAN_TTILS_SE2S_Msk /*!<Scheduling Error 2 Interrupt Line */
  4961. #define FDCAN_TTILS_ELCS_Pos (14U)
  4962. #define FDCAN_TTILS_ELCS_Msk (0x1U << FDCAN_TTILS_ELCS_Pos) /*!< 0x00004000 */
  4963. #define FDCAN_TTILS_ELCS FDCAN_TTILS_ELCS_Msk /*!<Error Level Changed Interrupt Line */
  4964. #define FDCAN_TTILS_IWTS_Pos (15U)
  4965. #define FDCAN_TTILS_IWTS_Msk (0x1U << FDCAN_TTILS_IWTS_Pos) /*!< 0x00008000 */
  4966. #define FDCAN_TTILS_IWTS FDCAN_TTILS_IWTS_Msk /*!<Initialization Watch Trigger Interrupt Line */
  4967. #define FDCAN_TTILS_WTS_Pos (16U)
  4968. #define FDCAN_TTILS_WTS_Msk (0x1U << FDCAN_TTILS_WTS_Pos) /*!< 0x00010000 */
  4969. #define FDCAN_TTILS_WTS FDCAN_TTILS_WTS_Msk /*!<Watch Trigger Interrupt Line */
  4970. #define FDCAN_TTILS_AWS_Pos (17U)
  4971. #define FDCAN_TTILS_AWS_Msk (0x1U << FDCAN_TTILS_AWS_Pos) /*!< 0x00020000 */
  4972. #define FDCAN_TTILS_AWS FDCAN_TTILS_AWS_Msk /*!<Application Watchdog Interrupt Line */
  4973. #define FDCAN_TTILS_CERS_Pos (18U)
  4974. #define FDCAN_TTILS_CERS_Msk (0x1U << FDCAN_TTILS_CERS_Pos) /*!< 0x00040000 */
  4975. #define FDCAN_TTILS_CERS FDCAN_TTILS_CERS_Msk /*!<Configuration Error Interrupt Line */
  4976. /***************** Bit definition for FDCAN_TTOST register ********************/
  4977. #define FDCAN_TTOST_EL_Pos (0U)
  4978. #define FDCAN_TTOST_EL_Msk (0x3U << FDCAN_TTOST_EL_Pos) /*!< 0x00000003 */
  4979. #define FDCAN_TTOST_EL FDCAN_TTOST_EL_Msk /*!<Error Level */
  4980. #define FDCAN_TTOST_MS_Pos (2U)
  4981. #define FDCAN_TTOST_MS_Msk (0x3U << FDCAN_TTOST_MS_Pos) /*!< 0x0000000C */
  4982. #define FDCAN_TTOST_MS FDCAN_TTOST_MS_Msk /*!<Master State */
  4983. #define FDCAN_TTOST_SYS_Pos (4U)
  4984. #define FDCAN_TTOST_SYS_Msk (0x3U << FDCAN_TTOST_SYS_Pos) /*!< 0x00000030 */
  4985. #define FDCAN_TTOST_SYS FDCAN_TTOST_SYS_Msk /*!<Synchronization State */
  4986. #define FDCAN_TTOST_QGTP_Pos (6U)
  4987. #define FDCAN_TTOST_QGTP_Msk (0x1U << FDCAN_TTOST_QGTP_Pos) /*!< 0x00000040 */
  4988. #define FDCAN_TTOST_QGTP FDCAN_TTOST_QGTP_Msk /*!<Quality of Global Time Phase */
  4989. #define FDCAN_TTOST_QCS_Pos (7U)
  4990. #define FDCAN_TTOST_QCS_Msk (0x1U << FDCAN_TTOST_QCS_Pos) /*!< 0x00000080 */
  4991. #define FDCAN_TTOST_QCS FDCAN_TTOST_QCS_Msk /*!<Quality of Clock Speed */
  4992. #define FDCAN_TTOST_RTO_Pos (8U)
  4993. #define FDCAN_TTOST_RTO_Msk (0xFFU << FDCAN_TTOST_RTO_Pos) /*!< 0x0000FF00 */
  4994. #define FDCAN_TTOST_RTO FDCAN_TTOST_RTO_Msk /*!<Reference Trigger Offset */
  4995. #define FDCAN_TTOST_WGTD_Pos (22U)
  4996. #define FDCAN_TTOST_WGTD_Msk (0x1U << FDCAN_TTOST_WGTD_Pos) /*!< 0x00400000 */
  4997. #define FDCAN_TTOST_WGTD FDCAN_TTOST_WGTD_Msk /*!<Wait for Global Time Discontinuity */
  4998. #define FDCAN_TTOST_GFI_Pos (23U)
  4999. #define FDCAN_TTOST_GFI_Msk (0x1U << FDCAN_TTOST_GFI_Pos) /*!< 0x00800000 */
  5000. #define FDCAN_TTOST_GFI FDCAN_TTOST_GFI_Msk /*!<Gap Finished Indicator */
  5001. #define FDCAN_TTOST_TMP_Pos (24U)
  5002. #define FDCAN_TTOST_TMP_Msk (0x7U << FDCAN_TTOST_TMP_Pos) /*!< 0x07000000 */
  5003. #define FDCAN_TTOST_TMP FDCAN_TTOST_TMP_Msk /*!<Time Master Priority */
  5004. #define FDCAN_TTOST_GSI_Pos (27U)
  5005. #define FDCAN_TTOST_GSI_Msk (0x1U << FDCAN_TTOST_GSI_Pos) /*!< 0x08000000 */
  5006. #define FDCAN_TTOST_GSI FDCAN_TTOST_GSI_Msk /*!<Gap Started Indicator */
  5007. #define FDCAN_TTOST_WFE_Pos (28U)
  5008. #define FDCAN_TTOST_WFE_Msk (0x1U << FDCAN_TTOST_WFE_Pos) /*!< 0x10000000 */
  5009. #define FDCAN_TTOST_WFE FDCAN_TTOST_WFE_Msk /*!<Wait for Event */
  5010. #define FDCAN_TTOST_AWE_Pos (29U)
  5011. #define FDCAN_TTOST_AWE_Msk (0x1U << FDCAN_TTOST_AWE_Pos) /*!< 0x20000000 */
  5012. #define FDCAN_TTOST_AWE FDCAN_TTOST_AWE_Msk /*!<Application Watchdog Event */
  5013. #define FDCAN_TTOST_WECS_Pos (30U)
  5014. #define FDCAN_TTOST_WECS_Msk (0x1U << FDCAN_TTOST_WECS_Pos) /*!< 0x40000000 */
  5015. #define FDCAN_TTOST_WECS FDCAN_TTOST_WECS_Msk /*!<Wait for External Clock Synchronization */
  5016. #define FDCAN_TTOST_SPL_Pos (31U)
  5017. #define FDCAN_TTOST_SPL_Msk (0x1U << FDCAN_TTOST_SPL_Pos) /*!< 0x80000000 */
  5018. #define FDCAN_TTOST_SPL FDCAN_TTOST_SPL_Msk /*!<Schedule Phase Lock */
  5019. /***************** Bit definition for FDCAN_TURNA register ********************/
  5020. #define FDCAN_TURNA_NAV_Pos (0U)
  5021. #define FDCAN_TURNA_NAV_Msk (0x3FFFFU << FDCAN_TURNA_NAV_Pos) /*!< 0x0003FFFF */
  5022. #define FDCAN_TURNA_NAV FDCAN_TURNA_NAV_Msk /*!<Numerator Actual Value */
  5023. /***************** Bit definition for FDCAN_TTLGT register ********************/
  5024. #define FDCAN_TTLGT_LT_Pos (0U)
  5025. #define FDCAN_TTLGT_LT_Msk (0xFFFFU << FDCAN_TTLGT_LT_Pos) /*!< 0x0000FFFF */
  5026. #define FDCAN_TTLGT_LT FDCAN_TTLGT_LT_Msk /*!<Local Time */
  5027. #define FDCAN_TTLGT_GT_Pos (16U)
  5028. #define FDCAN_TTLGT_GT_Msk (0xFFFFU << FDCAN_TTLGT_GT_Pos) /*!< 0xFFFF0000 */
  5029. #define FDCAN_TTLGT_GT FDCAN_TTLGT_GT_Msk /*!<Global Time */
  5030. /***************** Bit definition for FDCAN_TTCTC register ********************/
  5031. #define FDCAN_TTCTC_CT_Pos (0U)
  5032. #define FDCAN_TTCTC_CT_Msk (0xFFFFU << FDCAN_TTCTC_CT_Pos) /*!< 0x0000FFFF */
  5033. #define FDCAN_TTCTC_CT FDCAN_TTCTC_CT_Msk /*!<Cycle Time */
  5034. #define FDCAN_TTCTC_CC_Pos (16U)
  5035. #define FDCAN_TTCTC_CC_Msk (0x3FU << FDCAN_TTCTC_CC_Pos) /*!< 0x003F0000 */
  5036. #define FDCAN_TTCTC_CC FDCAN_TTCTC_CC_Msk /*!<Cycle Count */
  5037. /***************** Bit definition for FDCAN_TTCPT register ********************/
  5038. #define FDCAN_TTCPT_CCV_Pos (0U)
  5039. #define FDCAN_TTCPT_CCV_Msk (0x3FU << FDCAN_TTCPT_CCV_Pos) /*!< 0x0000003F */
  5040. #define FDCAN_TTCPT_CCV FDCAN_TTCPT_CCV_Msk /*!<Cycle Count Value */
  5041. #define FDCAN_TTCPT_SWV_Pos (16U)
  5042. #define FDCAN_TTCPT_SWV_Msk (0xFFFFU << FDCAN_TTCPT_SWV_Pos) /*!< 0xFFFF0000 */
  5043. #define FDCAN_TTCPT_SWV FDCAN_TTCPT_SWV_Msk /*!<Stop Watch Value */
  5044. /***************** Bit definition for FDCAN_TTCSM register ********************/
  5045. #define FDCAN_TTCSM_CSM_Pos (0U)
  5046. #define FDCAN_TTCSM_CSM_Msk (0xFFFFU << FDCAN_TTCSM_CSM_Pos) /*!< 0x0000FFFF */
  5047. #define FDCAN_TTCSM_CSM FDCAN_TTCSM_CSM_Msk /*!<Cycle Sync Mark */
  5048. /***************** Bit definition for FDCAN_TTTS register *********************/
  5049. #define FDCAN_TTTS_SWTSEL_Pos (0U)
  5050. #define FDCAN_TTTS_SWTSEL_Msk (0x3U << FDCAN_TTTS_SWTSEL_Pos) /*!< 0x00000003 */
  5051. #define FDCAN_TTTS_SWTSEL FDCAN_TTTS_SWTSEL_Msk /*!<Stop watch trigger input selection */
  5052. #define FDCAN_TTTS_EVTSEL_Pos (4U)
  5053. #define FDCAN_TTTS_EVTSEL_Msk (0x3U << FDCAN_TTTS_EVTSEL_Pos) /*!< 0x00000030 */
  5054. #define FDCAN_TTTS_EVTSEL FDCAN_TTTS_EVTSEL_Msk /*!<Event trigger input selection */
  5055. /********************************************************************************/
  5056. /* */
  5057. /* FDCANCCU (Clock Calibration unit) */
  5058. /* */
  5059. /********************************************************************************/
  5060. /***************** Bit definition for FDCANCCU_CREL register ******************/
  5061. #define FDCANCCU_CREL_DAY_Pos (0U)
  5062. #define FDCANCCU_CREL_DAY_Msk (0xFFU << FDCANCCU_CREL_DAY_Pos) /*!< 0x000000FF */
  5063. #define FDCANCCU_CREL_DAY FDCANCCU_CREL_DAY_Msk /*!<Timestamp Day */
  5064. #define FDCANCCU_CREL_MON_Pos (8U)
  5065. #define FDCANCCU_CREL_MON_Msk (0xFFU << FDCANCCU_CREL_MON_Pos) /*!< 0x0000FF00 */
  5066. #define FDCANCCU_CREL_MON FDCANCCU_CREL_MON_Msk /*!<Timestamp Month */
  5067. #define FDCANCCU_CREL_YEAR_Pos (16U)
  5068. #define FDCANCCU_CREL_YEAR_Msk (0xFU << FDCANCCU_CREL_YEAR_Pos) /*!< 0x000F0000 */
  5069. #define FDCANCCU_CREL_YEAR FDCANCCU_CREL_YEAR_Msk /*!<Timestamp Year */
  5070. #define FDCANCCU_CREL_SUBSTEP_Pos (20U)
  5071. #define FDCANCCU_CREL_SUBSTEP_Msk (0xFU << FDCANCCU_CREL_SUBSTEP_Pos) /*!< 0x00F00000 */
  5072. #define FDCANCCU_CREL_SUBSTEP FDCANCCU_CREL_SUBSTEP_Msk /*!<Sub-step of Core release */
  5073. #define FDCANCCU_CREL_STEP_Pos (24U)
  5074. #define FDCANCCU_CREL_STEP_Msk (0xFU << FDCANCCU_CREL_STEP_Pos) /*!< 0x0F000000 */
  5075. #define FDCANCCU_CREL_STEP FDCANCCU_CREL_STEP_Msk /*!<Step of Core release */
  5076. #define FDCANCCU_CREL_REL_Pos (28U)
  5077. #define FDCANCCU_CREL_REL_Msk (0xFU << FDCANCCU_CREL_REL_Pos) /*!< 0xF0000000 */
  5078. #define FDCANCCU_CREL_REL FDCANCCU_CREL_REL_Msk /*!<Core release */
  5079. /***************** Bit definition for FDCANCCU_CCFG register ******************/
  5080. #define FDCANCCU_CCFG_TQBT_Pos (0U)
  5081. #define FDCANCCU_CCFG_TQBT_Msk (0x1FU << FDCANCCU_CCFG_TQBT_Pos) /*!< 0x0000001F */
  5082. #define FDCANCCU_CCFG_TQBT FDCANCCU_CCFG_TQBT_Msk /*!<Time Quanta per Bit Time */
  5083. #define FDCANCCU_CCFG_BCC_Pos (6U)
  5084. #define FDCANCCU_CCFG_BCC_Msk (0x1U << FDCANCCU_CCFG_BCC_Pos) /*!< 0x00000040 */
  5085. #define FDCANCCU_CCFG_BCC FDCANCCU_CCFG_BCC_Msk /*!<Bypass Clock Calibration */
  5086. #define FDCANCCU_CCFG_CFL_Pos (7U)
  5087. #define FDCANCCU_CCFG_CFL_Msk (0x1U << FDCANCCU_CCFG_CFL_Pos) /*!< 0x00000080 */
  5088. #define FDCANCCU_CCFG_CFL FDCANCCU_CCFG_CFL_Msk /*!<Calibration Field Length */
  5089. #define FDCANCCU_CCFG_OCPM_Pos (8U)
  5090. #define FDCANCCU_CCFG_OCPM_Msk (0xFFU << FDCANCCU_CCFG_OCPM_Pos) /*!< 0x0000FF00 */
  5091. #define FDCANCCU_CCFG_OCPM FDCANCCU_CCFG_OCPM_Msk /*!<Oscillator Clock Periods Minimum */
  5092. #define FDCANCCU_CCFG_CDIV_Pos (16U)
  5093. #define FDCANCCU_CCFG_CDIV_Msk (0xFU << FDCANCCU_CCFG_CDIV_Pos) /*!< 0x000F0000 */
  5094. #define FDCANCCU_CCFG_CDIV FDCANCCU_CCFG_CDIV_Msk /*!<Clock Divider */
  5095. #define FDCANCCU_CCFG_SWR_Pos (31U)
  5096. #define FDCANCCU_CCFG_SWR_Msk (0x1U << FDCANCCU_CCFG_SWR_Pos) /*!< 0x80000000 */
  5097. #define FDCANCCU_CCFG_SWR FDCANCCU_CCFG_SWR_Msk /*!<Software Reset */
  5098. /***************** Bit definition for FDCANCCU_CSTAT register *****************/
  5099. #define FDCANCCU_CSTAT_OCPC_Pos (0U)
  5100. #define FDCANCCU_CSTAT_OCPC_Msk (0x3FFFFU << FDCANCCU_CSTAT_OCPC_Pos) /*!< 0x0003FFFF */
  5101. #define FDCANCCU_CSTAT_OCPC FDCANCCU_CSTAT_OCPC_Msk /*!<Oscillator Clock Period Counter */
  5102. #define FDCANCCU_CSTAT_TQC_Pos (18U)
  5103. #define FDCANCCU_CSTAT_TQC_Msk (0x7FFU << FDCANCCU_CSTAT_TQC_Pos) /*!< 0x1FFC0000 */
  5104. #define FDCANCCU_CSTAT_TQC FDCANCCU_CSTAT_TQC_Msk /*!<Time Quanta Counter */
  5105. #define FDCANCCU_CSTAT_CALS_Pos (30U)
  5106. #define FDCANCCU_CSTAT_CALS_Msk (0x3U << FDCANCCU_CSTAT_CALS_Pos) /*!< 0xC0000000 */
  5107. #define FDCANCCU_CSTAT_CALS FDCANCCU_CSTAT_CALS_Msk /*!<Calibration State */
  5108. /****************** Bit definition for FDCANCCU_CWD register ******************/
  5109. #define FDCANCCU_CWD_WDC_Pos (0U)
  5110. #define FDCANCCU_CWD_WDC_Msk (0xFFFFU << FDCANCCU_CWD_WDC_Pos) /*!< 0x0000FFFF */
  5111. #define FDCANCCU_CWD_WDC FDCANCCU_CWD_WDC_Msk /*!<Watchdog Configuration */
  5112. #define FDCANCCU_CWD_WDV_Pos (16U)
  5113. #define FDCANCCU_CWD_WDV_Msk (0xFFFFU << FDCANCCU_CWD_WDV_Pos) /*!< 0xFFFF0000 */
  5114. #define FDCANCCU_CWD_WDV FDCANCCU_CWD_WDV_Msk /*!<Watchdog Value */
  5115. /****************** Bit definition for FDCANCCU_IR register *******************/
  5116. #define FDCANCCU_IR_CWE_Pos (0U)
  5117. #define FDCANCCU_IR_CWE_Msk (0x1U << FDCANCCU_IR_CWE_Pos) /*!< 0x00000001 */
  5118. #define FDCANCCU_IR_CWE FDCANCCU_IR_CWE_Msk /*!<Calibration Watchdog Event */
  5119. #define FDCANCCU_IR_CSC_Pos (1U)
  5120. #define FDCANCCU_IR_CSC_Msk (0x1U << FDCANCCU_IR_CSC_Pos) /*!< 0x00000002 */
  5121. #define FDCANCCU_IR_CSC FDCANCCU_IR_CSC_Msk /*!<Calibration State Changed */
  5122. /****************** Bit definition for FDCANCCU_IE register *******************/
  5123. #define FDCANCCU_IE_CWEE_Pos (0U)
  5124. #define FDCANCCU_IE_CWEE_Msk (0x1U << FDCANCCU_IE_CWEE_Pos) /*!< 0x00000001 */
  5125. #define FDCANCCU_IE_CWEE FDCANCCU_IE_CWEE_Msk /*!<Calibration Watchdog Event Enable */
  5126. #define FDCANCCU_IE_CSCE_Pos (1U)
  5127. #define FDCANCCU_IE_CSCE_Msk (0x1U << FDCANCCU_IE_CSCE_Pos) /*!< 0x00000002 */
  5128. #define FDCANCCU_IE_CSCE FDCANCCU_IE_CSCE_Msk /*!<Calibration State Changed Enable */
  5129. /******************************************************************************/
  5130. /* */
  5131. /* HDMI-CEC (CEC) */
  5132. /* */
  5133. /******************************************************************************/
  5134. /******************* Bit definition for CEC_CR register *********************/
  5135. #define CEC_CR_CECEN_Pos (0U)
  5136. #define CEC_CR_CECEN_Msk (0x1U << CEC_CR_CECEN_Pos) /*!< 0x00000001 */
  5137. #define CEC_CR_CECEN CEC_CR_CECEN_Msk /*!< CEC Enable */
  5138. #define CEC_CR_TXSOM_Pos (1U)
  5139. #define CEC_CR_TXSOM_Msk (0x1U << CEC_CR_TXSOM_Pos) /*!< 0x00000002 */
  5140. #define CEC_CR_TXSOM CEC_CR_TXSOM_Msk /*!< CEC Tx Start Of Message */
  5141. #define CEC_CR_TXEOM_Pos (2U)
  5142. #define CEC_CR_TXEOM_Msk (0x1U << CEC_CR_TXEOM_Pos) /*!< 0x00000004 */
  5143. #define CEC_CR_TXEOM CEC_CR_TXEOM_Msk /*!< CEC Tx End Of Message */
  5144. /******************* Bit definition for CEC_CFGR register *******************/
  5145. #define CEC_CFGR_SFT_Pos (0U)
  5146. #define CEC_CFGR_SFT_Msk (0x7U << CEC_CFGR_SFT_Pos) /*!< 0x00000007 */
  5147. #define CEC_CFGR_SFT CEC_CFGR_SFT_Msk /*!< CEC Signal Free Time */
  5148. #define CEC_CFGR_RXTOL_Pos (3U)
  5149. #define CEC_CFGR_RXTOL_Msk (0x1U << CEC_CFGR_RXTOL_Pos) /*!< 0x00000008 */
  5150. #define CEC_CFGR_RXTOL CEC_CFGR_RXTOL_Msk /*!< CEC Tolerance */
  5151. #define CEC_CFGR_BRESTP_Pos (4U)
  5152. #define CEC_CFGR_BRESTP_Msk (0x1U << CEC_CFGR_BRESTP_Pos) /*!< 0x00000010 */
  5153. #define CEC_CFGR_BRESTP CEC_CFGR_BRESTP_Msk /*!< CEC Rx Stop */
  5154. #define CEC_CFGR_BREGEN_Pos (5U)
  5155. #define CEC_CFGR_BREGEN_Msk (0x1U << CEC_CFGR_BREGEN_Pos) /*!< 0x00000020 */
  5156. #define CEC_CFGR_BREGEN CEC_CFGR_BREGEN_Msk /*!< CEC Bit Rising Error generation */
  5157. #define CEC_CFGR_LBPEGEN_Pos (6U)
  5158. #define CEC_CFGR_LBPEGEN_Msk (0x1U << CEC_CFGR_LBPEGEN_Pos) /*!< 0x00000040 */
  5159. #define CEC_CFGR_LBPEGEN CEC_CFGR_LBPEGEN_Msk /*!< CEC Long Bit Period Error generation */
  5160. #define CEC_CFGR_SFTOPT_Pos (8U)
  5161. #define CEC_CFGR_SFTOPT_Msk (0x1U << CEC_CFGR_SFTOPT_Pos) /*!< 0x00000100 */
  5162. #define CEC_CFGR_SFTOPT CEC_CFGR_SFTOPT_Msk /*!< CEC Signal Free Time optional */
  5163. #define CEC_CFGR_BRDNOGEN_Pos (7U)
  5164. #define CEC_CFGR_BRDNOGEN_Msk (0x1U << CEC_CFGR_BRDNOGEN_Pos) /*!< 0x00000080 */
  5165. #define CEC_CFGR_BRDNOGEN CEC_CFGR_BRDNOGEN_Msk /*!< CEC Broadcast No error generation */
  5166. #define CEC_CFGR_OAR_Pos (16U)
  5167. #define CEC_CFGR_OAR_Msk (0x7FFFU << CEC_CFGR_OAR_Pos) /*!< 0x7FFF0000 */
  5168. #define CEC_CFGR_OAR CEC_CFGR_OAR_Msk /*!< CEC Own Address */
  5169. #define CEC_CFGR_LSTN_Pos (31U)
  5170. #define CEC_CFGR_LSTN_Msk (0x1U << CEC_CFGR_LSTN_Pos) /*!< 0x80000000 */
  5171. #define CEC_CFGR_LSTN CEC_CFGR_LSTN_Msk /*!< CEC Listen mode */
  5172. /******************* Bit definition for CEC_TXDR register *******************/
  5173. #define CEC_TXDR_TXD_Pos (0U)
  5174. #define CEC_TXDR_TXD_Msk (0xFFU << CEC_TXDR_TXD_Pos) /*!< 0x000000FF */
  5175. #define CEC_TXDR_TXD CEC_TXDR_TXD_Msk /*!< CEC Tx Data */
  5176. /******************* Bit definition for CEC_RXDR register *******************/
  5177. #define CEC_TXDR_RXD_Pos (0U)
  5178. #define CEC_TXDR_RXD_Msk (0xFFU << CEC_TXDR_RXD_Pos) /*!< 0x000000FF */
  5179. #define CEC_TXDR_RXD CEC_TXDR_RXD_Msk /*!< CEC Rx Data */
  5180. /******************* Bit definition for CEC_ISR register ********************/
  5181. #define CEC_ISR_RXBR_Pos (0U)
  5182. #define CEC_ISR_RXBR_Msk (0x1U << CEC_ISR_RXBR_Pos) /*!< 0x00000001 */
  5183. #define CEC_ISR_RXBR CEC_ISR_RXBR_Msk /*!< CEC Rx-Byte Received */
  5184. #define CEC_ISR_RXEND_Pos (1U)
  5185. #define CEC_ISR_RXEND_Msk (0x1U << CEC_ISR_RXEND_Pos) /*!< 0x00000002 */
  5186. #define CEC_ISR_RXEND CEC_ISR_RXEND_Msk /*!< CEC End Of Reception */
  5187. #define CEC_ISR_RXOVR_Pos (2U)
  5188. #define CEC_ISR_RXOVR_Msk (0x1U << CEC_ISR_RXOVR_Pos) /*!< 0x00000004 */
  5189. #define CEC_ISR_RXOVR CEC_ISR_RXOVR_Msk /*!< CEC Rx-Overrun */
  5190. #define CEC_ISR_BRE_Pos (3U)
  5191. #define CEC_ISR_BRE_Msk (0x1U << CEC_ISR_BRE_Pos) /*!< 0x00000008 */
  5192. #define CEC_ISR_BRE CEC_ISR_BRE_Msk /*!< CEC Rx Bit Rising Error */
  5193. #define CEC_ISR_SBPE_Pos (4U)
  5194. #define CEC_ISR_SBPE_Msk (0x1U << CEC_ISR_SBPE_Pos) /*!< 0x00000010 */
  5195. #define CEC_ISR_SBPE CEC_ISR_SBPE_Msk /*!< CEC Rx Short Bit period Error */
  5196. #define CEC_ISR_LBPE_Pos (5U)
  5197. #define CEC_ISR_LBPE_Msk (0x1U << CEC_ISR_LBPE_Pos) /*!< 0x00000020 */
  5198. #define CEC_ISR_LBPE CEC_ISR_LBPE_Msk /*!< CEC Rx Long Bit period Error */
  5199. #define CEC_ISR_RXACKE_Pos (6U)
  5200. #define CEC_ISR_RXACKE_Msk (0x1U << CEC_ISR_RXACKE_Pos) /*!< 0x00000040 */
  5201. #define CEC_ISR_RXACKE CEC_ISR_RXACKE_Msk /*!< CEC Rx Missing Acknowledge */
  5202. #define CEC_ISR_ARBLST_Pos (7U)
  5203. #define CEC_ISR_ARBLST_Msk (0x1U << CEC_ISR_ARBLST_Pos) /*!< 0x00000080 */
  5204. #define CEC_ISR_ARBLST CEC_ISR_ARBLST_Msk /*!< CEC Arbitration Lost */
  5205. #define CEC_ISR_TXBR_Pos (8U)
  5206. #define CEC_ISR_TXBR_Msk (0x1U << CEC_ISR_TXBR_Pos) /*!< 0x00000100 */
  5207. #define CEC_ISR_TXBR CEC_ISR_TXBR_Msk /*!< CEC Tx Byte Request */
  5208. #define CEC_ISR_TXEND_Pos (9U)
  5209. #define CEC_ISR_TXEND_Msk (0x1U << CEC_ISR_TXEND_Pos) /*!< 0x00000200 */
  5210. #define CEC_ISR_TXEND CEC_ISR_TXEND_Msk /*!< CEC End of Transmission */
  5211. #define CEC_ISR_TXUDR_Pos (10U)
  5212. #define CEC_ISR_TXUDR_Msk (0x1U << CEC_ISR_TXUDR_Pos) /*!< 0x00000400 */
  5213. #define CEC_ISR_TXUDR CEC_ISR_TXUDR_Msk /*!< CEC Tx-Buffer Underrun */
  5214. #define CEC_ISR_TXERR_Pos (11U)
  5215. #define CEC_ISR_TXERR_Msk (0x1U << CEC_ISR_TXERR_Pos) /*!< 0x00000800 */
  5216. #define CEC_ISR_TXERR CEC_ISR_TXERR_Msk /*!< CEC Tx-Error */
  5217. #define CEC_ISR_TXACKE_Pos (12U)
  5218. #define CEC_ISR_TXACKE_Msk (0x1U << CEC_ISR_TXACKE_Pos) /*!< 0x00001000 */
  5219. #define CEC_ISR_TXACKE CEC_ISR_TXACKE_Msk /*!< CEC Tx Missing Acknowledge */
  5220. /******************* Bit definition for CEC_IER register ********************/
  5221. #define CEC_IER_RXBRIE_Pos (0U)
  5222. #define CEC_IER_RXBRIE_Msk (0x1U << CEC_IER_RXBRIE_Pos) /*!< 0x00000001 */
  5223. #define CEC_IER_RXBRIE CEC_IER_RXBRIE_Msk /*!< CEC Rx-Byte Received IT Enable */
  5224. #define CEC_IER_RXENDIE_Pos (1U)
  5225. #define CEC_IER_RXENDIE_Msk (0x1U << CEC_IER_RXENDIE_Pos) /*!< 0x00000002 */
  5226. #define CEC_IER_RXENDIE CEC_IER_RXENDIE_Msk /*!< CEC End Of Reception IT Enable */
  5227. #define CEC_IER_RXOVRIE_Pos (2U)
  5228. #define CEC_IER_RXOVRIE_Msk (0x1U << CEC_IER_RXOVRIE_Pos) /*!< 0x00000004 */
  5229. #define CEC_IER_RXOVRIE CEC_IER_RXOVRIE_Msk /*!< CEC Rx-Overrun IT Enable */
  5230. #define CEC_IER_BREIE_Pos (3U)
  5231. #define CEC_IER_BREIE_Msk (0x1U << CEC_IER_BREIE_Pos) /*!< 0x00000008 */
  5232. #define CEC_IER_BREIE CEC_IER_BREIE_Msk /*!< CEC Rx Bit Rising Error IT Enable */
  5233. #define CEC_IER_SBPEIE_Pos (4U)
  5234. #define CEC_IER_SBPEIE_Msk (0x1U << CEC_IER_SBPEIE_Pos) /*!< 0x00000010 */
  5235. #define CEC_IER_SBPEIE CEC_IER_SBPEIE_Msk /*!< CEC Rx Short Bit period Error IT Enable */
  5236. #define CEC_IER_LBPEIE_Pos (5U)
  5237. #define CEC_IER_LBPEIE_Msk (0x1U << CEC_IER_LBPEIE_Pos) /*!< 0x00000020 */
  5238. #define CEC_IER_LBPEIE CEC_IER_LBPEIE_Msk /*!< CEC Rx Long Bit period Error IT Enable */
  5239. #define CEC_IER_RXACKEIE_Pos (6U)
  5240. #define CEC_IER_RXACKEIE_Msk (0x1U << CEC_IER_RXACKEIE_Pos) /*!< 0x00000040 */
  5241. #define CEC_IER_RXACKEIE CEC_IER_RXACKEIE_Msk /*!< CEC Rx Missing Acknowledge IT Enable */
  5242. #define CEC_IER_ARBLSTIE_Pos (7U)
  5243. #define CEC_IER_ARBLSTIE_Msk (0x1U << CEC_IER_ARBLSTIE_Pos) /*!< 0x00000080 */
  5244. #define CEC_IER_ARBLSTIE CEC_IER_ARBLSTIE_Msk /*!< CEC Arbitration Lost IT Enable */
  5245. #define CEC_IER_TXBRIE_Pos (8U)
  5246. #define CEC_IER_TXBRIE_Msk (0x1U << CEC_IER_TXBRIE_Pos) /*!< 0x00000100 */
  5247. #define CEC_IER_TXBRIE CEC_IER_TXBRIE_Msk /*!< CEC Tx Byte Request IT Enable */
  5248. #define CEC_IER_TXENDIE_Pos (9U)
  5249. #define CEC_IER_TXENDIE_Msk (0x1U << CEC_IER_TXENDIE_Pos) /*!< 0x00000200 */
  5250. #define CEC_IER_TXENDIE CEC_IER_TXENDIE_Msk /*!< CEC End of Transmission IT Enable */
  5251. #define CEC_IER_TXUDRIE_Pos (10U)
  5252. #define CEC_IER_TXUDRIE_Msk (0x1U << CEC_IER_TXUDRIE_Pos) /*!< 0x00000400 */
  5253. #define CEC_IER_TXUDRIE CEC_IER_TXUDRIE_Msk /*!< CEC Tx-Buffer Underrun IT Enable */
  5254. #define CEC_IER_TXERRIE_Pos (11U)
  5255. #define CEC_IER_TXERRIE_Msk (0x1U << CEC_IER_TXERRIE_Pos) /*!< 0x00000800 */
  5256. #define CEC_IER_TXERRIE CEC_IER_TXERRIE_Msk /*!< CEC Tx-Error IT Enable */
  5257. #define CEC_IER_TXACKEIE_Pos (12U)
  5258. #define CEC_IER_TXACKEIE_Msk (0x1U << CEC_IER_TXACKEIE_Pos) /*!< 0x00001000 */
  5259. #define CEC_IER_TXACKEIE CEC_IER_TXACKEIE_Msk /*!< CEC Tx Missing Acknowledge IT Enable */
  5260. /******************************************************************************/
  5261. /* */
  5262. /* CRC calculation unit */
  5263. /* */
  5264. /******************************************************************************/
  5265. /******************* Bit definition for CRC_DR register *********************/
  5266. #define CRC_DR_DR_Pos (0U)
  5267. #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */
  5268. #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */
  5269. /******************* Bit definition for CRC_IDR register ********************/
  5270. #define CRC_IDR_IDR_Pos (0U)
  5271. #define CRC_IDR_IDR_Msk (0xFFFFFFFFU << CRC_IDR_IDR_Pos) /*!< 0xFFFFFFFF */
  5272. #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 32-bit data register bits */
  5273. /******************** Bit definition for CRC_CR register ********************/
  5274. #define CRC_CR_RESET_Pos (0U)
  5275. #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */
  5276. #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */
  5277. #define CRC_CR_POLYSIZE_Pos (3U)
  5278. #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */
  5279. #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */
  5280. #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */
  5281. #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */
  5282. #define CRC_CR_REV_IN_Pos (5U)
  5283. #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */
  5284. #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */
  5285. #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */
  5286. #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */
  5287. #define CRC_CR_REV_OUT_Pos (7U)
  5288. #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */
  5289. #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */
  5290. /******************* Bit definition for CRC_INIT register *******************/
  5291. #define CRC_INIT_INIT_Pos (0U)
  5292. #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */
  5293. #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */
  5294. /******************* Bit definition for CRC_POL register ********************/
  5295. #define CRC_POL_POL_Pos (0U)
  5296. #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */
  5297. #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */
  5298. /******************************************************************************/
  5299. /* */
  5300. /* CRS Clock Recovery System */
  5301. /******************************************************************************/
  5302. /******************* Bit definition for CRS_CR register *********************/
  5303. #define CRS_CR_SYNCOKIE_Pos (0U)
  5304. #define CRS_CR_SYNCOKIE_Msk (0x1U << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */
  5305. #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */
  5306. #define CRS_CR_SYNCWARNIE_Pos (1U)
  5307. #define CRS_CR_SYNCWARNIE_Msk (0x1U << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */
  5308. #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */
  5309. #define CRS_CR_ERRIE_Pos (2U)
  5310. #define CRS_CR_ERRIE_Msk (0x1U << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */
  5311. #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */
  5312. #define CRS_CR_ESYNCIE_Pos (3U)
  5313. #define CRS_CR_ESYNCIE_Msk (0x1U << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */
  5314. #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */
  5315. #define CRS_CR_CEN_Pos (5U)
  5316. #define CRS_CR_CEN_Msk (0x1U << CRS_CR_CEN_Pos) /*!< 0x00000020 */
  5317. #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */
  5318. #define CRS_CR_AUTOTRIMEN_Pos (6U)
  5319. #define CRS_CR_AUTOTRIMEN_Msk (0x1U << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */
  5320. #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */
  5321. #define CRS_CR_SWSYNC_Pos (7U)
  5322. #define CRS_CR_SWSYNC_Msk (0x1U << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */
  5323. #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
  5324. #define CRS_CR_TRIM_Pos (8U)
  5325. #define CRS_CR_TRIM_Msk (0x3FU << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
  5326. #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
  5327. /******************* Bit definition for CRS_CFGR register *********************/
  5328. #define CRS_CFGR_RELOAD_Pos (0U)
  5329. #define CRS_CFGR_RELOAD_Msk (0xFFFFU << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */
  5330. #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */
  5331. #define CRS_CFGR_FELIM_Pos (16U)
  5332. #define CRS_CFGR_FELIM_Msk (0xFFU << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */
  5333. #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */
  5334. #define CRS_CFGR_SYNCDIV_Pos (24U)
  5335. #define CRS_CFGR_SYNCDIV_Msk (0x7U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */
  5336. #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */
  5337. #define CRS_CFGR_SYNCDIV_0 (0x1U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */
  5338. #define CRS_CFGR_SYNCDIV_1 (0x2U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */
  5339. #define CRS_CFGR_SYNCDIV_2 (0x4U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */
  5340. #define CRS_CFGR_SYNCSRC_Pos (28U)
  5341. #define CRS_CFGR_SYNCSRC_Msk (0x3U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */
  5342. #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */
  5343. #define CRS_CFGR_SYNCSRC_0 (0x1U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */
  5344. #define CRS_CFGR_SYNCSRC_1 (0x2U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */
  5345. #define CRS_CFGR_SYNCPOL_Pos (31U)
  5346. #define CRS_CFGR_SYNCPOL_Msk (0x1U << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */
  5347. #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */
  5348. /******************* Bit definition for CRS_ISR register *********************/
  5349. #define CRS_ISR_SYNCOKF_Pos (0U)
  5350. #define CRS_ISR_SYNCOKF_Msk (0x1U << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */
  5351. #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */
  5352. #define CRS_ISR_SYNCWARNF_Pos (1U)
  5353. #define CRS_ISR_SYNCWARNF_Msk (0x1U << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */
  5354. #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */
  5355. #define CRS_ISR_ERRF_Pos (2U)
  5356. #define CRS_ISR_ERRF_Msk (0x1U << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */
  5357. #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */
  5358. #define CRS_ISR_ESYNCF_Pos (3U)
  5359. #define CRS_ISR_ESYNCF_Msk (0x1U << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */
  5360. #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */
  5361. #define CRS_ISR_SYNCERR_Pos (8U)
  5362. #define CRS_ISR_SYNCERR_Msk (0x1U << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */
  5363. #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */
  5364. #define CRS_ISR_SYNCMISS_Pos (9U)
  5365. #define CRS_ISR_SYNCMISS_Msk (0x1U << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */
  5366. #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */
  5367. #define CRS_ISR_TRIMOVF_Pos (10U)
  5368. #define CRS_ISR_TRIMOVF_Msk (0x1U << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */
  5369. #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */
  5370. #define CRS_ISR_FEDIR_Pos (15U)
  5371. #define CRS_ISR_FEDIR_Msk (0x1U << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */
  5372. #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */
  5373. #define CRS_ISR_FECAP_Pos (16U)
  5374. #define CRS_ISR_FECAP_Msk (0xFFFFU << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */
  5375. #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */
  5376. /******************* Bit definition for CRS_ICR register *********************/
  5377. #define CRS_ICR_SYNCOKC_Pos (0U)
  5378. #define CRS_ICR_SYNCOKC_Msk (0x1U << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */
  5379. #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */
  5380. #define CRS_ICR_SYNCWARNC_Pos (1U)
  5381. #define CRS_ICR_SYNCWARNC_Msk (0x1U << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */
  5382. #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */
  5383. #define CRS_ICR_ERRC_Pos (2U)
  5384. #define CRS_ICR_ERRC_Msk (0x1U << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */
  5385. #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */
  5386. #define CRS_ICR_ESYNCC_Pos (3U)
  5387. #define CRS_ICR_ESYNCC_Msk (0x1U << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */
  5388. #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */
  5389. /******************************************************************************/
  5390. /* */
  5391. /* Digital to Analog Converter */
  5392. /* */
  5393. /******************************************************************************/
  5394. /******************** Bit definition for DAC_CR register ********************/
  5395. #define DAC_CR_EN1_Pos (0U)
  5396. #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */
  5397. #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */
  5398. #define DAC_CR_TEN1_Pos (1U)
  5399. #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000002 */
  5400. #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */
  5401. #define DAC_CR_TSEL1_Pos (2U)
  5402. #define DAC_CR_TSEL1_Msk (0xFU << DAC_CR_TSEL1_Pos) /*!< 0x0000003C */
  5403. #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[2:0] (DAC channel1 Trigger selection) */
  5404. #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000004 */
  5405. #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */
  5406. #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */
  5407. #define DAC_CR_TSEL1_3 (0x8U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */
  5408. #define DAC_CR_WAVE1_Pos (6U)
  5409. #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */
  5410. #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
  5411. #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */
  5412. #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */
  5413. #define DAC_CR_MAMP1_Pos (8U)
  5414. #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */
  5415. #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
  5416. #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */
  5417. #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */
  5418. #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */
  5419. #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */
  5420. #define DAC_CR_DMAEN1_Pos (12U)
  5421. #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */
  5422. #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */
  5423. #define DAC_CR_DMAUDRIE1_Pos (13U)
  5424. #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */
  5425. #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/
  5426. #define DAC_CR_CEN1_Pos (14U)
  5427. #define DAC_CR_CEN1_Msk (0x1U << DAC_CR_CEN1_Pos) /*!< 0x00004000 */
  5428. #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/
  5429. #define DAC_CR_EN2_Pos (16U)
  5430. #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */
  5431. #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */
  5432. #define DAC_CR_TEN2_Pos (17U)
  5433. #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00020000 */
  5434. #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */
  5435. #define DAC_CR_TSEL2_Pos (18U)
  5436. #define DAC_CR_TSEL2_Msk (0xFU << DAC_CR_TSEL2_Pos) /*!< 0x003C0000 */
  5437. #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[2:0] (DAC channel2 Trigger selection) */
  5438. #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00040000 */
  5439. #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */
  5440. #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */
  5441. #define DAC_CR_TSEL2_3 (0x8U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */
  5442. #define DAC_CR_WAVE2_Pos (22U)
  5443. #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */
  5444. #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
  5445. #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */
  5446. #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */
  5447. #define DAC_CR_MAMP2_Pos (24U)
  5448. #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */
  5449. #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
  5450. #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */
  5451. #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */
  5452. #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */
  5453. #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */
  5454. #define DAC_CR_DMAEN2_Pos (28U)
  5455. #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */
  5456. #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */
  5457. #define DAC_CR_DMAUDRIE2_Pos (29U)
  5458. #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */
  5459. #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/
  5460. #define DAC_CR_CEN2_Pos (30U)
  5461. #define DAC_CR_CEN2_Msk (0x1U << DAC_CR_CEN2_Pos) /*!< 0x40000000 */
  5462. #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/
  5463. /***************** Bit definition for DAC_SWTRIGR register ******************/
  5464. #define DAC_SWTRIGR_SWTRIG1 ((uint8_t)0x01) /*!<DAC channel1 software trigger */
  5465. #define DAC_SWTRIGR_SWTRIG2 ((uint8_t)0x02) /*!<DAC channel2 software trigger */
  5466. /***************** Bit definition for DAC_DHR12R1 register ******************/
  5467. #define DAC_DHR12R1_DACC1DHR ((uint16_t)0x0FFF) /*!<DAC channel1 12-bit Right aligned data */
  5468. /***************** Bit definition for DAC_DHR12L1 register ******************/
  5469. #define DAC_DHR12L1_DACC1DHR ((uint16_t)0xFFF0) /*!<DAC channel1 12-bit Left aligned data */
  5470. /****************** Bit definition for DAC_DHR8R1 register ******************/
  5471. #define DAC_DHR8R1_DACC1DHR ((uint8_t)0xFF) /*!<DAC channel1 8-bit Right aligned data */
  5472. /***************** Bit definition for DAC_DHR12R2 register ******************/
  5473. #define DAC_DHR12R2_DACC2DHR ((uint16_t)0x0FFF) /*!<DAC channel2 12-bit Right aligned data */
  5474. /***************** Bit definition for DAC_DHR12L2 register ******************/
  5475. #define DAC_DHR12L2_DACC2DHR ((uint16_t)0xFFF0) /*!<DAC channel2 12-bit Left aligned data */
  5476. /****************** Bit definition for DAC_DHR8R2 register ******************/
  5477. #define DAC_DHR8R2_DACC2DHR ((uint8_t)0xFF) /*!<DAC channel2 8-bit Right aligned data */
  5478. /***************** Bit definition for DAC_DHR12RD register ******************/
  5479. #define DAC_DHR12RD_DACC1DHR_Pos (0U)
  5480. #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */
  5481. #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */
  5482. #define DAC_DHR12RD_DACC2DHR_Pos (16U)
  5483. #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */
  5484. #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */
  5485. /***************** Bit definition for DAC_DHR12LD register ******************/
  5486. #define DAC_DHR12LD_DACC1DHR_Pos (4U)
  5487. #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */
  5488. #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */
  5489. #define DAC_DHR12LD_DACC2DHR_Pos (20U)
  5490. #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */
  5491. #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */
  5492. /****************** Bit definition for DAC_DHR8RD register ******************/
  5493. #define DAC_DHR8RD_DACC1DHR ((uint16_t)0x00FF) /*!<DAC channel1 8-bit Right aligned data */
  5494. #define DAC_DHR8RD_DACC2DHR ((uint16_t)0xFF00) /*!<DAC channel2 8-bit Right aligned data */
  5495. /******************* Bit definition for DAC_DOR1 register *******************/
  5496. #define DAC_DOR1_DACC1DOR ((uint16_t)0x0FFF) /*!<DAC channel1 data output */
  5497. /******************* Bit definition for DAC_DOR2 register *******************/
  5498. #define DAC_DOR2_DACC2DOR ((uint16_t)0x0FFF) /*!<DAC channel2 data output */
  5499. /******************** Bit definition for DAC_SR register ********************/
  5500. #define DAC_SR_DMAUDR1_Pos (13U)
  5501. #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */
  5502. #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */
  5503. #define DAC_SR_CAL_FLAG1_Pos (14U)
  5504. #define DAC_SR_CAL_FLAG1_Msk (0x1U << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */
  5505. #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */
  5506. #define DAC_SR_BWST1_Pos (15U)
  5507. #define DAC_SR_BWST1_Msk (0x4001U << DAC_SR_BWST1_Pos) /*!< 0x20008000 */
  5508. #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */
  5509. #define DAC_SR_DMAUDR2_Pos (29U)
  5510. #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */
  5511. #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */
  5512. #define DAC_SR_CAL_FLAG2_Pos (30U)
  5513. #define DAC_SR_CAL_FLAG2_Msk (0x1U << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */
  5514. #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */
  5515. #define DAC_SR_BWST2_Pos (31U)
  5516. #define DAC_SR_BWST2_Msk (0x1U << DAC_SR_BWST2_Pos) /*!< 0x80000000 */
  5517. #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */
  5518. /******************* Bit definition for DAC_CCR register ********************/
  5519. #define DAC_CCR_OTRIM1_Pos (0U)
  5520. #define DAC_CCR_OTRIM1_Msk (0x1FU << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */
  5521. #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */
  5522. #define DAC_CCR_OTRIM2_Pos (16U)
  5523. #define DAC_CCR_OTRIM2_Msk (0x1FU << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */
  5524. #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */
  5525. /******************* Bit definition for DAC_MCR register *******************/
  5526. #define DAC_MCR_MODE1_Pos (0U)
  5527. #define DAC_MCR_MODE1_Msk (0x7U << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */
  5528. #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */
  5529. #define DAC_MCR_MODE1_0 (0x1U << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */
  5530. #define DAC_MCR_MODE1_1 (0x2U << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */
  5531. #define DAC_MCR_MODE1_2 (0x4U << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */
  5532. #define DAC_MCR_MODE2_Pos (16U)
  5533. #define DAC_MCR_MODE2_Msk (0x7U << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */
  5534. #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */
  5535. #define DAC_MCR_MODE2_0 (0x1U << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */
  5536. #define DAC_MCR_MODE2_1 (0x2U << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */
  5537. #define DAC_MCR_MODE2_2 (0x4U << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */
  5538. /****************** Bit definition for DAC_SHSR1 register ******************/
  5539. #define DAC_SHSR1_TSAMPLE1_Pos (0U)
  5540. #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFU << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */
  5541. #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */
  5542. /****************** Bit definition for DAC_SHSR2 register ******************/
  5543. #define DAC_SHSR1_TSAMPLE2_Pos (0U)
  5544. #define DAC_SHSR1_TSAMPLE2_Msk (0x3FFU << DAC_SHSR1_TSAMPLE2_Pos) /*!< 0x000003FF */
  5545. #define DAC_SHSR1_TSAMPLE2 DAC_SHSR1_TSAMPLE2_Msk /*!<DAC channel2 sample time */
  5546. /****************** Bit definition for DAC_SHHR register ******************/
  5547. #define DAC_SHHR_THOLD1_Pos (0U)
  5548. #define DAC_SHHR_THOLD1_Msk (0x3FFU << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */
  5549. #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */
  5550. #define DAC_SHHR_THOLD2_Pos (16U)
  5551. #define DAC_SHHR_THOLD2_Msk (0x3FFU << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */
  5552. #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */
  5553. /****************** Bit definition for DAC_SHRR register ******************/
  5554. #define DAC_SHRR_TREFRESH1_Pos (0U)
  5555. #define DAC_SHRR_TREFRESH1_Msk (0xFFU << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */
  5556. #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */
  5557. #define DAC_SHRR_TREFRESH2_Pos (16U)
  5558. #define DAC_SHRR_TREFRESH2_Msk (0xFFU << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */
  5559. #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */
  5560. /******************************************************************************/
  5561. /* */
  5562. /* DCMI */
  5563. /* */
  5564. /******************************************************************************/
  5565. /******************** Bits definition for DCMI_CR register ******************/
  5566. #define DCMI_CR_CAPTURE_Pos (0U)
  5567. #define DCMI_CR_CAPTURE_Msk (0x1U << DCMI_CR_CAPTURE_Pos) /*!< 0x00000001 */
  5568. #define DCMI_CR_CAPTURE DCMI_CR_CAPTURE_Msk
  5569. #define DCMI_CR_CM_Pos (1U)
  5570. #define DCMI_CR_CM_Msk (0x1U << DCMI_CR_CM_Pos) /*!< 0x00000002 */
  5571. #define DCMI_CR_CM DCMI_CR_CM_Msk
  5572. #define DCMI_CR_CROP_Pos (2U)
  5573. #define DCMI_CR_CROP_Msk (0x1U << DCMI_CR_CROP_Pos) /*!< 0x00000004 */
  5574. #define DCMI_CR_CROP DCMI_CR_CROP_Msk
  5575. #define DCMI_CR_JPEG_Pos (3U)
  5576. #define DCMI_CR_JPEG_Msk (0x1U << DCMI_CR_JPEG_Pos) /*!< 0x00000008 */
  5577. #define DCMI_CR_JPEG DCMI_CR_JPEG_Msk
  5578. #define DCMI_CR_ESS_Pos (4U)
  5579. #define DCMI_CR_ESS_Msk (0x1U << DCMI_CR_ESS_Pos) /*!< 0x00000010 */
  5580. #define DCMI_CR_ESS DCMI_CR_ESS_Msk
  5581. #define DCMI_CR_PCKPOL_Pos (5U)
  5582. #define DCMI_CR_PCKPOL_Msk (0x1U << DCMI_CR_PCKPOL_Pos) /*!< 0x00000020 */
  5583. #define DCMI_CR_PCKPOL DCMI_CR_PCKPOL_Msk
  5584. #define DCMI_CR_HSPOL_Pos (6U)
  5585. #define DCMI_CR_HSPOL_Msk (0x1U << DCMI_CR_HSPOL_Pos) /*!< 0x00000040 */
  5586. #define DCMI_CR_HSPOL DCMI_CR_HSPOL_Msk
  5587. #define DCMI_CR_VSPOL_Pos (7U)
  5588. #define DCMI_CR_VSPOL_Msk (0x1U << DCMI_CR_VSPOL_Pos) /*!< 0x00000080 */
  5589. #define DCMI_CR_VSPOL DCMI_CR_VSPOL_Msk
  5590. #define DCMI_CR_FCRC_0 ((uint32_t)0x00000100U)
  5591. #define DCMI_CR_FCRC_1 ((uint32_t)0x00000200U)
  5592. #define DCMI_CR_EDM_0 ((uint32_t)0x00000400U)
  5593. #define DCMI_CR_EDM_1 ((uint32_t)0x00000800U)
  5594. #define DCMI_CR_CRE_Pos (12U)
  5595. #define DCMI_CR_CRE_Msk (0x1U << DCMI_CR_CRE_Pos) /*!< 0x00001000 */
  5596. #define DCMI_CR_CRE DCMI_CR_CRE_Msk
  5597. #define DCMI_CR_ENABLE_Pos (14U)
  5598. #define DCMI_CR_ENABLE_Msk (0x1U << DCMI_CR_ENABLE_Pos) /*!< 0x00004000 */
  5599. #define DCMI_CR_ENABLE DCMI_CR_ENABLE_Msk
  5600. #define DCMI_CR_BSM_Pos (16U)
  5601. #define DCMI_CR_BSM_Msk (0x3U << DCMI_CR_BSM_Pos) /*!< 0x00030000 */
  5602. #define DCMI_CR_BSM DCMI_CR_BSM_Msk
  5603. #define DCMI_CR_BSM_0 (0x1U << DCMI_CR_BSM_Pos) /*!< 0x00010000 */
  5604. #define DCMI_CR_BSM_1 (0x2U << DCMI_CR_BSM_Pos) /*!< 0x00020000 */
  5605. #define DCMI_CR_OEBS_Pos (18U)
  5606. #define DCMI_CR_OEBS_Msk (0x1U << DCMI_CR_OEBS_Pos) /*!< 0x00040000 */
  5607. #define DCMI_CR_OEBS DCMI_CR_OEBS_Msk
  5608. #define DCMI_CR_LSM_Pos (19U)
  5609. #define DCMI_CR_LSM_Msk (0x1U << DCMI_CR_LSM_Pos) /*!< 0x00080000 */
  5610. #define DCMI_CR_LSM DCMI_CR_LSM_Msk
  5611. #define DCMI_CR_OELS_Pos (20U)
  5612. #define DCMI_CR_OELS_Msk (0x1U << DCMI_CR_OELS_Pos) /*!< 0x00100000 */
  5613. #define DCMI_CR_OELS DCMI_CR_OELS_Msk
  5614. /******************** Bits definition for DCMI_SR register ******************/
  5615. #define DCMI_SR_HSYNC_Pos (0U)
  5616. #define DCMI_SR_HSYNC_Msk (0x1U << DCMI_SR_HSYNC_Pos) /*!< 0x00000001 */
  5617. #define DCMI_SR_HSYNC DCMI_SR_HSYNC_Msk
  5618. #define DCMI_SR_VSYNC_Pos (1U)
  5619. #define DCMI_SR_VSYNC_Msk (0x1U << DCMI_SR_VSYNC_Pos) /*!< 0x00000002 */
  5620. #define DCMI_SR_VSYNC DCMI_SR_VSYNC_Msk
  5621. #define DCMI_SR_FNE_Pos (2U)
  5622. #define DCMI_SR_FNE_Msk (0x1U << DCMI_SR_FNE_Pos) /*!< 0x00000004 */
  5623. #define DCMI_SR_FNE DCMI_SR_FNE_Msk
  5624. /******************** Bits definition for DCMI_RIS register ****************/
  5625. #define DCMI_RIS_FRAME_RIS_Pos (0U)
  5626. #define DCMI_RIS_FRAME_RIS_Msk (0x1U << DCMI_RIS_FRAME_RIS_Pos) /*!< 0x00000001 */
  5627. #define DCMI_RIS_FRAME_RIS DCMI_RIS_FRAME_RIS_Msk
  5628. #define DCMI_RIS_OVR_RIS_Pos (1U)
  5629. #define DCMI_RIS_OVR_RIS_Msk (0x1U << DCMI_RIS_OVR_RIS_Pos) /*!< 0x00000002 */
  5630. #define DCMI_RIS_OVR_RIS DCMI_RIS_OVR_RIS_Msk
  5631. #define DCMI_RIS_ERR_RIS_Pos (2U)
  5632. #define DCMI_RIS_ERR_RIS_Msk (0x1U << DCMI_RIS_ERR_RIS_Pos) /*!< 0x00000004 */
  5633. #define DCMI_RIS_ERR_RIS DCMI_RIS_ERR_RIS_Msk
  5634. #define DCMI_RIS_VSYNC_RIS_Pos (3U)
  5635. #define DCMI_RIS_VSYNC_RIS_Msk (0x1U << DCMI_RIS_VSYNC_RIS_Pos) /*!< 0x00000008 */
  5636. #define DCMI_RIS_VSYNC_RIS DCMI_RIS_VSYNC_RIS_Msk
  5637. #define DCMI_RIS_LINE_RIS_Pos (4U)
  5638. #define DCMI_RIS_LINE_RIS_Msk (0x1U << DCMI_RIS_LINE_RIS_Pos) /*!< 0x00000010 */
  5639. #define DCMI_RIS_LINE_RIS DCMI_RIS_LINE_RIS_Msk
  5640. /******************** Bits definition for DCMI_IER register *****************/
  5641. #define DCMI_IER_FRAME_IE_Pos (0U)
  5642. #define DCMI_IER_FRAME_IE_Msk (0x1U << DCMI_IER_FRAME_IE_Pos) /*!< 0x00000001 */
  5643. #define DCMI_IER_FRAME_IE DCMI_IER_FRAME_IE_Msk
  5644. #define DCMI_IER_OVR_IE_Pos (1U)
  5645. #define DCMI_IER_OVR_IE_Msk (0x1U << DCMI_IER_OVR_IE_Pos) /*!< 0x00000002 */
  5646. #define DCMI_IER_OVR_IE DCMI_IER_OVR_IE_Msk
  5647. #define DCMI_IER_ERR_IE_Pos (2U)
  5648. #define DCMI_IER_ERR_IE_Msk (0x1U << DCMI_IER_ERR_IE_Pos) /*!< 0x00000004 */
  5649. #define DCMI_IER_ERR_IE DCMI_IER_ERR_IE_Msk
  5650. #define DCMI_IER_VSYNC_IE_Pos (3U)
  5651. #define DCMI_IER_VSYNC_IE_Msk (0x1U << DCMI_IER_VSYNC_IE_Pos) /*!< 0x00000008 */
  5652. #define DCMI_IER_VSYNC_IE DCMI_IER_VSYNC_IE_Msk
  5653. #define DCMI_IER_LINE_IE_Pos (4U)
  5654. #define DCMI_IER_LINE_IE_Msk (0x1U << DCMI_IER_LINE_IE_Pos) /*!< 0x00000010 */
  5655. #define DCMI_IER_LINE_IE DCMI_IER_LINE_IE_Msk
  5656. /******************** Bits definition for DCMI_MIS register *****************/
  5657. #define DCMI_MIS_FRAME_MIS_Pos (0U)
  5658. #define DCMI_MIS_FRAME_MIS_Msk (0x1U << DCMI_MIS_FRAME_MIS_Pos) /*!< 0x00000001 */
  5659. #define DCMI_MIS_FRAME_MIS DCMI_MIS_FRAME_MIS_Msk
  5660. #define DCMI_MIS_OVR_MIS_Pos (1U)
  5661. #define DCMI_MIS_OVR_MIS_Msk (0x1U << DCMI_MIS_OVR_MIS_Pos) /*!< 0x00000002 */
  5662. #define DCMI_MIS_OVR_MIS DCMI_MIS_OVR_MIS_Msk
  5663. #define DCMI_MIS_ERR_MIS_Pos (2U)
  5664. #define DCMI_MIS_ERR_MIS_Msk (0x1U << DCMI_MIS_ERR_MIS_Pos) /*!< 0x00000004 */
  5665. #define DCMI_MIS_ERR_MIS DCMI_MIS_ERR_MIS_Msk
  5666. #define DCMI_MIS_VSYNC_MIS_Pos (3U)
  5667. #define DCMI_MIS_VSYNC_MIS_Msk (0x1U << DCMI_MIS_VSYNC_MIS_Pos) /*!< 0x00000008 */
  5668. #define DCMI_MIS_VSYNC_MIS DCMI_MIS_VSYNC_MIS_Msk
  5669. #define DCMI_MIS_LINE_MIS_Pos (4U)
  5670. #define DCMI_MIS_LINE_MIS_Msk (0x1U << DCMI_MIS_LINE_MIS_Pos) /*!< 0x00000010 */
  5671. #define DCMI_MIS_LINE_MIS DCMI_MIS_LINE_MIS_Msk
  5672. /******************** Bits definition for DCMI_ICR register *****************/
  5673. #define DCMI_ICR_FRAME_ISC_Pos (0U)
  5674. #define DCMI_ICR_FRAME_ISC_Msk (0x1U << DCMI_ICR_FRAME_ISC_Pos) /*!< 0x00000001 */
  5675. #define DCMI_ICR_FRAME_ISC DCMI_ICR_FRAME_ISC_Msk
  5676. #define DCMI_ICR_OVR_ISC_Pos (1U)
  5677. #define DCMI_ICR_OVR_ISC_Msk (0x1U << DCMI_ICR_OVR_ISC_Pos) /*!< 0x00000002 */
  5678. #define DCMI_ICR_OVR_ISC DCMI_ICR_OVR_ISC_Msk
  5679. #define DCMI_ICR_ERR_ISC_Pos (2U)
  5680. #define DCMI_ICR_ERR_ISC_Msk (0x1U << DCMI_ICR_ERR_ISC_Pos) /*!< 0x00000004 */
  5681. #define DCMI_ICR_ERR_ISC DCMI_ICR_ERR_ISC_Msk
  5682. #define DCMI_ICR_VSYNC_ISC_Pos (3U)
  5683. #define DCMI_ICR_VSYNC_ISC_Msk (0x1U << DCMI_ICR_VSYNC_ISC_Pos) /*!< 0x00000008 */
  5684. #define DCMI_ICR_VSYNC_ISC DCMI_ICR_VSYNC_ISC_Msk
  5685. #define DCMI_ICR_LINE_ISC_Pos (4U)
  5686. #define DCMI_ICR_LINE_ISC_Msk (0x1U << DCMI_ICR_LINE_ISC_Pos) /*!< 0x00000010 */
  5687. #define DCMI_ICR_LINE_ISC DCMI_ICR_LINE_ISC_Msk
  5688. /******************** Bits definition for DCMI_ESCR register ******************/
  5689. #define DCMI_ESCR_FSC_Pos (0U)
  5690. #define DCMI_ESCR_FSC_Msk (0xFFU << DCMI_ESCR_FSC_Pos) /*!< 0x000000FF */
  5691. #define DCMI_ESCR_FSC DCMI_ESCR_FSC_Msk
  5692. #define DCMI_ESCR_LSC_Pos (8U)
  5693. #define DCMI_ESCR_LSC_Msk (0xFFU << DCMI_ESCR_LSC_Pos) /*!< 0x0000FF00 */
  5694. #define DCMI_ESCR_LSC DCMI_ESCR_LSC_Msk
  5695. #define DCMI_ESCR_LEC_Pos (16U)
  5696. #define DCMI_ESCR_LEC_Msk (0xFFU << DCMI_ESCR_LEC_Pos) /*!< 0x00FF0000 */
  5697. #define DCMI_ESCR_LEC DCMI_ESCR_LEC_Msk
  5698. #define DCMI_ESCR_FEC_Pos (24U)
  5699. #define DCMI_ESCR_FEC_Msk (0xFFU << DCMI_ESCR_FEC_Pos) /*!< 0xFF000000 */
  5700. #define DCMI_ESCR_FEC DCMI_ESCR_FEC_Msk
  5701. /******************** Bits definition for DCMI_ESUR register ******************/
  5702. #define DCMI_ESUR_FSU_Pos (0U)
  5703. #define DCMI_ESUR_FSU_Msk (0xFFU << DCMI_ESUR_FSU_Pos) /*!< 0x000000FF */
  5704. #define DCMI_ESUR_FSU DCMI_ESUR_FSU_Msk
  5705. #define DCMI_ESUR_LSU_Pos (8U)
  5706. #define DCMI_ESUR_LSU_Msk (0xFFU << DCMI_ESUR_LSU_Pos) /*!< 0x0000FF00 */
  5707. #define DCMI_ESUR_LSU DCMI_ESUR_LSU_Msk
  5708. #define DCMI_ESUR_LEU_Pos (16U)
  5709. #define DCMI_ESUR_LEU_Msk (0xFFU << DCMI_ESUR_LEU_Pos) /*!< 0x00FF0000 */
  5710. #define DCMI_ESUR_LEU DCMI_ESUR_LEU_Msk
  5711. #define DCMI_ESUR_FEU_Pos (24U)
  5712. #define DCMI_ESUR_FEU_Msk (0xFFU << DCMI_ESUR_FEU_Pos) /*!< 0xFF000000 */
  5713. #define DCMI_ESUR_FEU DCMI_ESUR_FEU_Msk
  5714. /******************** Bits definition for DCMI_CWSTRT register ******************/
  5715. #define DCMI_CWSTRT_HOFFCNT_Pos (0U)
  5716. #define DCMI_CWSTRT_HOFFCNT_Msk (0x3FFFU << DCMI_CWSTRT_HOFFCNT_Pos) /*!< 0x00003FFF */
  5717. #define DCMI_CWSTRT_HOFFCNT DCMI_CWSTRT_HOFFCNT_Msk
  5718. #define DCMI_CWSTRT_VST_Pos (16U)
  5719. #define DCMI_CWSTRT_VST_Msk (0x1FFFU << DCMI_CWSTRT_VST_Pos) /*!< 0x1FFF0000 */
  5720. #define DCMI_CWSTRT_VST DCMI_CWSTRT_VST_Msk
  5721. /******************** Bits definition for DCMI_CWSIZE register ******************/
  5722. #define DCMI_CWSIZE_CAPCNT_Pos (0U)
  5723. #define DCMI_CWSIZE_CAPCNT_Msk (0x3FFFU << DCMI_CWSIZE_CAPCNT_Pos) /*!< 0x00003FFF */
  5724. #define DCMI_CWSIZE_CAPCNT DCMI_CWSIZE_CAPCNT_Msk
  5725. #define DCMI_CWSIZE_VLINE_Pos (16U)
  5726. #define DCMI_CWSIZE_VLINE_Msk (0x3FFFU << DCMI_CWSIZE_VLINE_Pos) /*!< 0x3FFF0000 */
  5727. #define DCMI_CWSIZE_VLINE DCMI_CWSIZE_VLINE_Msk
  5728. /******************** Bits definition for DCMI_DR register ******************/
  5729. #define DCMI_DR_BYTE0_Pos (0U)
  5730. #define DCMI_DR_BYTE0_Msk (0xFFU << DCMI_DR_BYTE0_Pos) /*!< 0x000000FF */
  5731. #define DCMI_DR_BYTE0 DCMI_DR_BYTE0_Msk
  5732. #define DCMI_DR_BYTE1_Pos (8U)
  5733. #define DCMI_DR_BYTE1_Msk (0xFFU << DCMI_DR_BYTE1_Pos) /*!< 0x0000FF00 */
  5734. #define DCMI_DR_BYTE1 DCMI_DR_BYTE1_Msk
  5735. #define DCMI_DR_BYTE2_Pos (16U)
  5736. #define DCMI_DR_BYTE2_Msk (0xFFU << DCMI_DR_BYTE2_Pos) /*!< 0x00FF0000 */
  5737. #define DCMI_DR_BYTE2 DCMI_DR_BYTE2_Msk
  5738. #define DCMI_DR_BYTE3_Pos (24U)
  5739. #define DCMI_DR_BYTE3_Msk (0xFFU << DCMI_DR_BYTE3_Pos) /*!< 0xFF000000 */
  5740. #define DCMI_DR_BYTE3 DCMI_DR_BYTE3_Msk
  5741. /******************************************************************************/
  5742. /* */
  5743. /* Digital Filter for Sigma Delta Modulators */
  5744. /* */
  5745. /******************************************************************************/
  5746. /**************** DFSDM channel configuration registers ********************/
  5747. /*************** Bit definition for DFSDM_CHCFGR1 register ******************/
  5748. #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U)
  5749. #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1U << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */
  5750. #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */
  5751. #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U)
  5752. #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1U << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */
  5753. #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */
  5754. #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U)
  5755. #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFU << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */
  5756. #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */
  5757. #define DFSDM_CHCFGR1_DATPACK_Pos (14U)
  5758. #define DFSDM_CHCFGR1_DATPACK_Msk (0x3U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */
  5759. #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */
  5760. #define DFSDM_CHCFGR1_DATPACK_1 (0x2U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */
  5761. #define DFSDM_CHCFGR1_DATPACK_0 (0x1U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */
  5762. #define DFSDM_CHCFGR1_DATMPX_Pos (12U)
  5763. #define DFSDM_CHCFGR1_DATMPX_Msk (0x3U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */
  5764. #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */
  5765. #define DFSDM_CHCFGR1_DATMPX_1 (0x2U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */
  5766. #define DFSDM_CHCFGR1_DATMPX_0 (0x1U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */
  5767. #define DFSDM_CHCFGR1_CHINSEL_Pos (8U)
  5768. #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1U << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */
  5769. #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */
  5770. #define DFSDM_CHCFGR1_CHEN_Pos (7U)
  5771. #define DFSDM_CHCFGR1_CHEN_Msk (0x1U << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */
  5772. #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */
  5773. #define DFSDM_CHCFGR1_CKABEN_Pos (6U)
  5774. #define DFSDM_CHCFGR1_CKABEN_Msk (0x1U << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */
  5775. #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */
  5776. #define DFSDM_CHCFGR1_SCDEN_Pos (5U)
  5777. #define DFSDM_CHCFGR1_SCDEN_Msk (0x1U << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */
  5778. #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */
  5779. #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U)
  5780. #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */
  5781. #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */
  5782. #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */
  5783. #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */
  5784. #define DFSDM_CHCFGR1_SITP_Pos (0U)
  5785. #define DFSDM_CHCFGR1_SITP_Msk (0x3U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */
  5786. #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */
  5787. #define DFSDM_CHCFGR1_SITP_1 (0x2U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */
  5788. #define DFSDM_CHCFGR1_SITP_0 (0x1U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */
  5789. /*************** Bit definition for DFSDM_CHCFGR2 register ******************/
  5790. #define DFSDM_CHCFGR2_OFFSET_Pos (8U)
  5791. #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFU << DFSDM_CHCFGR2_OFFSET_Pos) /*!< 0xFFFFFF00 */
  5792. #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */
  5793. #define DFSDM_CHCFGR2_DTRBS_Pos (3U)
  5794. #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FU << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */
  5795. #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */
  5796. /****************** Bit definition for DFSDM_CHAWSCDR register *****************/
  5797. #define DFSDM_CHAWSCDR_AWFORD_Pos (22U)
  5798. #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */
  5799. #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */
  5800. #define DFSDM_CHAWSCDR_AWFORD_1 (0x2U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */
  5801. #define DFSDM_CHAWSCDR_AWFORD_0 (0x1U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */
  5802. #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U)
  5803. #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FU << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */
  5804. #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */
  5805. #define DFSDM_CHAWSCDR_BKSCD_Pos (12U)
  5806. #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFU << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */
  5807. #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */
  5808. #define DFSDM_CHAWSCDR_SCDT_Pos (0U)
  5809. #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFU << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */
  5810. #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */
  5811. /**************** Bit definition for DFSDM_CHWDATR register *******************/
  5812. #define DFSDM_CHWDATR_WDATA_Pos (0U)
  5813. #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFU << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */
  5814. #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */
  5815. /**************** Bit definition for DFSDM_CHDATINR register *****************/
  5816. #define DFSDM_CHDATINR_INDAT0_Pos (0U)
  5817. #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT0_Pos) /*!< 0x0000FFFF */
  5818. #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */
  5819. #define DFSDM_CHDATINR_INDAT1_Pos (16U)
  5820. #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT1_Pos) /*!< 0xFFFF0000 */
  5821. #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */
  5822. /************************ DFSDM module registers ****************************/
  5823. /******************** Bit definition for DFSDM_FLTCR1 register *******************/
  5824. #define DFSDM_FLTCR1_AWFSEL_Pos (30U)
  5825. #define DFSDM_FLTCR1_AWFSEL_Msk (0x1U << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */
  5826. #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */
  5827. #define DFSDM_FLTCR1_FAST_Pos (29U)
  5828. #define DFSDM_FLTCR1_FAST_Msk (0x1U << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */
  5829. #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */
  5830. #define DFSDM_FLTCR1_RCH_Pos (24U)
  5831. #define DFSDM_FLTCR1_RCH_Msk (0x7U << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */
  5832. #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */
  5833. #define DFSDM_FLTCR1_RDMAEN_Pos (21U)
  5834. #define DFSDM_FLTCR1_RDMAEN_Msk (0x1U << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */
  5835. #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */
  5836. #define DFSDM_FLTCR1_RSYNC_Pos (19U)
  5837. #define DFSDM_FLTCR1_RSYNC_Msk (0x1U << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */
  5838. #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */
  5839. #define DFSDM_FLTCR1_RCONT_Pos (18U)
  5840. #define DFSDM_FLTCR1_RCONT_Msk (0x1U << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */
  5841. #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */
  5842. #define DFSDM_FLTCR1_RSWSTART_Pos (17U)
  5843. #define DFSDM_FLTCR1_RSWSTART_Msk (0x1U << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */
  5844. #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */
  5845. #define DFSDM_FLTCR1_JEXTEN_Pos (13U)
  5846. #define DFSDM_FLTCR1_JEXTEN_Msk (0x3U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */
  5847. #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */
  5848. #define DFSDM_FLTCR1_JEXTEN_1 (0x2U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */
  5849. #define DFSDM_FLTCR1_JEXTEN_0 (0x1U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */
  5850. #define DFSDM_FLTCR1_JEXTSEL_Pos (8U)
  5851. #define DFSDM_FLTCR1_JEXTSEL_Msk (0x1FU << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001F00 */
  5852. #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[4:0]Trigger signal selection for launching injected conversions */
  5853. #define DFSDM_FLTCR1_JEXTSEL_0 (0x01U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */
  5854. #define DFSDM_FLTCR1_JEXTSEL_1 (0x02U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */
  5855. #define DFSDM_FLTCR1_JEXTSEL_2 (0x04U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */
  5856. #define DFSDM_FLTCR1_JEXTSEL_3 (0x08U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000800 */
  5857. #define DFSDM_FLTCR1_JEXTSEL_4 (0x10U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00001000 */
  5858. #define DFSDM_FLTCR1_JDMAEN_Pos (5U)
  5859. #define DFSDM_FLTCR1_JDMAEN_Msk (0x1U << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */
  5860. #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */
  5861. #define DFSDM_FLTCR1_JSCAN_Pos (4U)
  5862. #define DFSDM_FLTCR1_JSCAN_Msk (0x1U << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */
  5863. #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */
  5864. #define DFSDM_FLTCR1_JSYNC_Pos (3U)
  5865. #define DFSDM_FLTCR1_JSYNC_Msk (0x1U << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */
  5866. #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */
  5867. #define DFSDM_FLTCR1_JSWSTART_Pos (1U)
  5868. #define DFSDM_FLTCR1_JSWSTART_Msk (0x1U << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */
  5869. #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */
  5870. #define DFSDM_FLTCR1_DFEN_Pos (0U)
  5871. #define DFSDM_FLTCR1_DFEN_Msk (0x1U << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */
  5872. #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */
  5873. /******************** Bit definition for DFSDM_FLTCR2 register *******************/
  5874. #define DFSDM_FLTCR2_AWDCH_Pos (16U)
  5875. #define DFSDM_FLTCR2_AWDCH_Msk (0xFFU << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */
  5876. #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */
  5877. #define DFSDM_FLTCR2_EXCH_Pos (8U)
  5878. #define DFSDM_FLTCR2_EXCH_Msk (0xFFU << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */
  5879. #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */
  5880. #define DFSDM_FLTCR2_CKABIE_Pos (6U)
  5881. #define DFSDM_FLTCR2_CKABIE_Msk (0x1U << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */
  5882. #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */
  5883. #define DFSDM_FLTCR2_SCDIE_Pos (5U)
  5884. #define DFSDM_FLTCR2_SCDIE_Msk (0x1U << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */
  5885. #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */
  5886. #define DFSDM_FLTCR2_AWDIE_Pos (4U)
  5887. #define DFSDM_FLTCR2_AWDIE_Msk (0x1U << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */
  5888. #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */
  5889. #define DFSDM_FLTCR2_ROVRIE_Pos (3U)
  5890. #define DFSDM_FLTCR2_ROVRIE_Msk (0x1U << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */
  5891. #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */
  5892. #define DFSDM_FLTCR2_JOVRIE_Pos (2U)
  5893. #define DFSDM_FLTCR2_JOVRIE_Msk (0x1U << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */
  5894. #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */
  5895. #define DFSDM_FLTCR2_REOCIE_Pos (1U)
  5896. #define DFSDM_FLTCR2_REOCIE_Msk (0x1U << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */
  5897. #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */
  5898. #define DFSDM_FLTCR2_JEOCIE_Pos (0U)
  5899. #define DFSDM_FLTCR2_JEOCIE_Msk (0x1U << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */
  5900. #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */
  5901. /******************** Bit definition for DFSDM_FLTISR register *******************/
  5902. #define DFSDM_FLTISR_SCDF_Pos (24U)
  5903. #define DFSDM_FLTISR_SCDF_Msk (0xFFU << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */
  5904. #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */
  5905. #define DFSDM_FLTISR_CKABF_Pos (16U)
  5906. #define DFSDM_FLTISR_CKABF_Msk (0xFFU << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */
  5907. #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */
  5908. #define DFSDM_FLTISR_RCIP_Pos (14U)
  5909. #define DFSDM_FLTISR_RCIP_Msk (0x1U << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */
  5910. #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */
  5911. #define DFSDM_FLTISR_JCIP_Pos (13U)
  5912. #define DFSDM_FLTISR_JCIP_Msk (0x1U << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */
  5913. #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */
  5914. #define DFSDM_FLTISR_AWDF_Pos (4U)
  5915. #define DFSDM_FLTISR_AWDF_Msk (0x1U << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */
  5916. #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */
  5917. #define DFSDM_FLTISR_ROVRF_Pos (3U)
  5918. #define DFSDM_FLTISR_ROVRF_Msk (0x1U << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */
  5919. #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */
  5920. #define DFSDM_FLTISR_JOVRF_Pos (2U)
  5921. #define DFSDM_FLTISR_JOVRF_Msk (0x1U << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */
  5922. #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */
  5923. #define DFSDM_FLTISR_REOCF_Pos (1U)
  5924. #define DFSDM_FLTISR_REOCF_Msk (0x1U << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */
  5925. #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */
  5926. #define DFSDM_FLTISR_JEOCF_Pos (0U)
  5927. #define DFSDM_FLTISR_JEOCF_Msk (0x1U << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */
  5928. #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */
  5929. /******************** Bit definition for DFSDM_FLTICR register *******************/
  5930. #define DFSDM_FLTICR_CLRSCDF_Pos (24U)
  5931. #define DFSDM_FLTICR_CLRSCDF_Msk (0xFFU << DFSDM_FLTICR_CLRSCDF_Pos) /*!< 0xFF000000 */
  5932. #define DFSDM_FLTICR_CLRSCDF DFSDM_FLTICR_CLRSCDF_Msk /*!< CLRSCSDF[7:0] Clear the short circuit detector flag */
  5933. #define DFSDM_FLTICR_CLRCKABF_Pos (16U)
  5934. #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFU << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */
  5935. #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */
  5936. #define DFSDM_FLTICR_CLRROVRF_Pos (3U)
  5937. #define DFSDM_FLTICR_CLRROVRF_Msk (0x1U << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */
  5938. #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */
  5939. #define DFSDM_FLTICR_CLRJOVRF_Pos (2U)
  5940. #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1U << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */
  5941. #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */
  5942. /******************* Bit definition for DFSDM_FLTJCHGR register ******************/
  5943. #define DFSDM_FLTJCHGR_JCHG_Pos (0U)
  5944. #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFU << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */
  5945. #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */
  5946. /******************** Bit definition for DFSDM_FLTFCR register *******************/
  5947. #define DFSDM_FLTFCR_FORD_Pos (29U)
  5948. #define DFSDM_FLTFCR_FORD_Msk (0x7U << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */
  5949. #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */
  5950. #define DFSDM_FLTFCR_FORD_2 (0x4U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */
  5951. #define DFSDM_FLTFCR_FORD_1 (0x2U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */
  5952. #define DFSDM_FLTFCR_FORD_0 (0x1U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */
  5953. #define DFSDM_FLTFCR_FOSR_Pos (16U)
  5954. #define DFSDM_FLTFCR_FOSR_Msk (0x3FFU << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */
  5955. #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */
  5956. #define DFSDM_FLTFCR_IOSR_Pos (0U)
  5957. #define DFSDM_FLTFCR_IOSR_Msk (0xFFU << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */
  5958. #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */
  5959. /****************** Bit definition for DFSDM_FLTJDATAR register *****************/
  5960. #define DFSDM_FLTJDATAR_JDATA_Pos (8U)
  5961. #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFU << DFSDM_FLTJDATAR_JDATA_Pos) /*!< 0xFFFFFF00 */
  5962. #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */
  5963. #define DFSDM_FLTJDATAR_JDATACH_Pos (0U)
  5964. #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7U << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */
  5965. #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */
  5966. /****************** Bit definition for DFSDM_FLTRDATAR register *****************/
  5967. #define DFSDM_FLTRDATAR_RDATA_Pos (8U)
  5968. #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFU << DFSDM_FLTRDATAR_RDATA_Pos) /*!< 0xFFFFFF00 */
  5969. #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */
  5970. #define DFSDM_FLTRDATAR_RPEND_Pos (4U)
  5971. #define DFSDM_FLTRDATAR_RPEND_Msk (0x1U << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */
  5972. #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */
  5973. #define DFSDM_FLTRDATAR_RDATACH_Pos (0U)
  5974. #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7U << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */
  5975. #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */
  5976. /****************** Bit definition for DFSDM_FLTAWHTR register ******************/
  5977. #define DFSDM_FLTAWHTR_AWHT_Pos (8U)
  5978. #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFU << DFSDM_FLTAWHTR_AWHT_Pos) /*!< 0xFFFFFF00 */
  5979. #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */
  5980. #define DFSDM_FLTAWHTR_BKAWH_Pos (0U)
  5981. #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFU << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */
  5982. #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */
  5983. /****************** Bit definition for DFSDM_FLTAWLTR register ******************/
  5984. #define DFSDM_FLTAWLTR_AWLT_Pos (8U)
  5985. #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFU << DFSDM_FLTAWLTR_AWLT_Pos) /*!< 0xFFFFFF00 */
  5986. #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWHT[23:0] Analog watchdog low threshold */
  5987. #define DFSDM_FLTAWLTR_BKAWL_Pos (0U)
  5988. #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFU << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */
  5989. #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */
  5990. /****************** Bit definition for DFSDM_FLTAWSR register ******************/
  5991. #define DFSDM_FLTAWSR_AWHTF_Pos (8U)
  5992. #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFU << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */
  5993. #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */
  5994. #define DFSDM_FLTAWSR_AWLTF_Pos (0U)
  5995. #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFU << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */
  5996. #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */
  5997. /****************** Bit definition for DFSDM_FLTAWCFR) register *****************/
  5998. #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U)
  5999. #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWHTF_Pos) /*!< 0x0000FF00 */
  6000. #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */
  6001. #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U)
  6002. #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWLTF_Pos) /*!< 0x000000FF */
  6003. #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */
  6004. /****************** Bit definition for DFSDM_FLTEXMAX register ******************/
  6005. #define DFSDM_FLTEXMAX_EXMAX_Pos (8U)
  6006. #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFU << DFSDM_FLTEXMAX_EXMAX_Pos) /*!< 0xFFFFFF00 */
  6007. #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */
  6008. #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U)
  6009. #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7U << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */
  6010. #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */
  6011. /****************** Bit definition for DFSDM_FLTEXMIN register ******************/
  6012. #define DFSDM_FLTEXMIN_EXMIN_Pos (8U)
  6013. #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFU << DFSDM_FLTEXMIN_EXMIN_Pos) /*!< 0xFFFFFF00 */
  6014. #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */
  6015. #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U)
  6016. #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7U << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */
  6017. #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */
  6018. /****************** Bit definition for DFSDM_FLTCNVTIMR register ******************/
  6019. #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U)
  6020. #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFU << DFSDM_FLTCNVTIMR_CNVCNT_Pos) /*!< 0xFFFFFFF0 */
  6021. #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */
  6022. /******************************************************************************/
  6023. /* */
  6024. /* BDMA Controller */
  6025. /* */
  6026. /******************************************************************************/
  6027. /******************* Bit definition for BDMA_ISR register ********************/
  6028. #define BDMA_ISR_GIF0_Pos (0U)
  6029. #define BDMA_ISR_GIF0_Msk (0x1U << BDMA_ISR_GIF0_Pos) /*!< 0x00000001 */
  6030. #define BDMA_ISR_GIF0 BDMA_ISR_GIF0_Msk /*!< Channel 0 Global interrupt flag */
  6031. #define BDMA_ISR_TCIF0_Pos (1U)
  6032. #define BDMA_ISR_TCIF0_Msk (0x1U << BDMA_ISR_TCIF0_Pos) /*!< 0x00000002 */
  6033. #define BDMA_ISR_TCIF0 BDMA_ISR_TCIF0_Msk /*!< Channel 0 Transfer Complete flag */
  6034. #define BDMA_ISR_HTIF0_Pos (2U)
  6035. #define BDMA_ISR_HTIF0_Msk (0x1U << BDMA_ISR_HTIF0_Pos) /*!< 0x00000004 */
  6036. #define BDMA_ISR_HTIF0 BDMA_ISR_HTIF0_Msk /*!< Channel 0 Half Transfer flag */
  6037. #define BDMA_ISR_TEIF0_Pos (3U)
  6038. #define BDMA_ISR_TEIF0_Msk (0x1U << BDMA_ISR_TEIF0_Pos) /*!< 0x00000008 */
  6039. #define BDMA_ISR_TEIF0 BDMA_ISR_TEIF0_Msk /*!< Channel 0 Transfer Error flag */
  6040. #define BDMA_ISR_GIF1_Pos (4U)
  6041. #define BDMA_ISR_GIF1_Msk (0x1U << BDMA_ISR_GIF1_Pos) /*!< 0x00000010 */
  6042. #define BDMA_ISR_GIF1 BDMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */
  6043. #define BDMA_ISR_TCIF1_Pos (5U)
  6044. #define BDMA_ISR_TCIF1_Msk (0x1U << BDMA_ISR_TCIF1_Pos) /*!< 0x00000020 */
  6045. #define BDMA_ISR_TCIF1 BDMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */
  6046. #define BDMA_ISR_HTIF1_Pos (6U)
  6047. #define BDMA_ISR_HTIF1_Msk (0x1U << BDMA_ISR_HTIF1_Pos) /*!< 0x00000040 */
  6048. #define BDMA_ISR_HTIF1 BDMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */
  6049. #define BDMA_ISR_TEIF1_Pos (7U)
  6050. #define BDMA_ISR_TEIF1_Msk (0x1U << BDMA_ISR_TEIF1_Pos) /*!< 0x00000080 */
  6051. #define BDMA_ISR_TEIF1 BDMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */
  6052. #define BDMA_ISR_GIF2_Pos (8U)
  6053. #define BDMA_ISR_GIF2_Msk (0x1U << BDMA_ISR_GIF2_Pos) /*!< 0x00000100 */
  6054. #define BDMA_ISR_GIF2 BDMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */
  6055. #define BDMA_ISR_TCIF2_Pos (9U)
  6056. #define BDMA_ISR_TCIF2_Msk (0x1U << BDMA_ISR_TCIF2_Pos) /*!< 0x00000200 */
  6057. #define BDMA_ISR_TCIF2 BDMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */
  6058. #define BDMA_ISR_HTIF2_Pos (10U)
  6059. #define BDMA_ISR_HTIF2_Msk (0x1U << BDMA_ISR_HTIF2_Pos) /*!< 0x00000400 */
  6060. #define BDMA_ISR_HTIF2 BDMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */
  6061. #define BDMA_ISR_TEIF2_Pos (11U)
  6062. #define BDMA_ISR_TEIF2_Msk (0x1U << BDMA_ISR_TEIF2_Pos) /*!< 0x00000800 */
  6063. #define BDMA_ISR_TEIF2 BDMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */
  6064. #define BDMA_ISR_GIF3_Pos (12U)
  6065. #define BDMA_ISR_GIF3_Msk (0x1U << BDMA_ISR_GIF3_Pos) /*!< 0x00001000 */
  6066. #define BDMA_ISR_GIF3 BDMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */
  6067. #define BDMA_ISR_TCIF3_Pos (13U)
  6068. #define BDMA_ISR_TCIF3_Msk (0x1U << BDMA_ISR_TCIF3_Pos) /*!< 0x00002000 */
  6069. #define BDMA_ISR_TCIF3 BDMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */
  6070. #define BDMA_ISR_HTIF3_Pos (14U)
  6071. #define BDMA_ISR_HTIF3_Msk (0x1U << BDMA_ISR_HTIF3_Pos) /*!< 0x00004000 */
  6072. #define BDMA_ISR_HTIF3 BDMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */
  6073. #define BDMA_ISR_TEIF3_Pos (15U)
  6074. #define BDMA_ISR_TEIF3_Msk (0x1U << BDMA_ISR_TEIF3_Pos) /*!< 0x00008000 */
  6075. #define BDMA_ISR_TEIF3 BDMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */
  6076. #define BDMA_ISR_GIF4_Pos (16U)
  6077. #define BDMA_ISR_GIF4_Msk (0x1U << BDMA_ISR_GIF4_Pos) /*!< 0x00010000 */
  6078. #define BDMA_ISR_GIF4 BDMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */
  6079. #define BDMA_ISR_TCIF4_Pos (17U)
  6080. #define BDMA_ISR_TCIF4_Msk (0x1U << BDMA_ISR_TCIF4_Pos) /*!< 0x00020000 */
  6081. #define BDMA_ISR_TCIF4 BDMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */
  6082. #define BDMA_ISR_HTIF4_Pos (18U)
  6083. #define BDMA_ISR_HTIF4_Msk (0x1U << BDMA_ISR_HTIF4_Pos) /*!< 0x00040000 */
  6084. #define BDMA_ISR_HTIF4 BDMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */
  6085. #define BDMA_ISR_TEIF4_Pos (19U)
  6086. #define BDMA_ISR_TEIF4_Msk (0x1U << BDMA_ISR_TEIF4_Pos) /*!< 0x00080000 */
  6087. #define BDMA_ISR_TEIF4 BDMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */
  6088. #define BDMA_ISR_GIF5_Pos (20U)
  6089. #define BDMA_ISR_GIF5_Msk (0x1U << BDMA_ISR_GIF5_Pos) /*!< 0x00100000 */
  6090. #define BDMA_ISR_GIF5 BDMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */
  6091. #define BDMA_ISR_TCIF5_Pos (21U)
  6092. #define BDMA_ISR_TCIF5_Msk (0x1U << BDMA_ISR_TCIF5_Pos) /*!< 0x00200000 */
  6093. #define BDMA_ISR_TCIF5 BDMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */
  6094. #define BDMA_ISR_HTIF5_Pos (22U)
  6095. #define BDMA_ISR_HTIF5_Msk (0x1U << BDMA_ISR_HTIF5_Pos) /*!< 0x00400000 */
  6096. #define BDMA_ISR_HTIF5 BDMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */
  6097. #define BDMA_ISR_TEIF5_Pos (23U)
  6098. #define BDMA_ISR_TEIF5_Msk (0x1U << BDMA_ISR_TEIF5_Pos) /*!< 0x00800000 */
  6099. #define BDMA_ISR_TEIF5 BDMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */
  6100. #define BDMA_ISR_GIF6_Pos (24U)
  6101. #define BDMA_ISR_GIF6_Msk (0x1U << BDMA_ISR_GIF6_Pos) /*!< 0x01000000 */
  6102. #define BDMA_ISR_GIF6 BDMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */
  6103. #define BDMA_ISR_TCIF6_Pos (25U)
  6104. #define BDMA_ISR_TCIF6_Msk (0x1U << BDMA_ISR_TCIF6_Pos) /*!< 0x02000000 */
  6105. #define BDMA_ISR_TCIF6 BDMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */
  6106. #define BDMA_ISR_HTIF6_Pos (26U)
  6107. #define BDMA_ISR_HTIF6_Msk (0x1U << BDMA_ISR_HTIF6_Pos) /*!< 0x04000000 */
  6108. #define BDMA_ISR_HTIF6 BDMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */
  6109. #define BDMA_ISR_TEIF6_Pos (27U)
  6110. #define BDMA_ISR_TEIF6_Msk (0x1U << BDMA_ISR_TEIF6_Pos) /*!< 0x08000000 */
  6111. #define BDMA_ISR_TEIF6 BDMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */
  6112. #define BDMA_ISR_GIF7_Pos (28U)
  6113. #define BDMA_ISR_GIF7_Msk (0x1U << BDMA_ISR_GIF7_Pos) /*!< 0x10000000 */
  6114. #define BDMA_ISR_GIF7 BDMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */
  6115. #define BDMA_ISR_TCIF7_Pos (29U)
  6116. #define BDMA_ISR_TCIF7_Msk (0x1U << BDMA_ISR_TCIF7_Pos) /*!< 0x20000000 */
  6117. #define BDMA_ISR_TCIF7 BDMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */
  6118. #define BDMA_ISR_HTIF7_Pos (30U)
  6119. #define BDMA_ISR_HTIF7_Msk (0x1U << BDMA_ISR_HTIF7_Pos) /*!< 0x40000000 */
  6120. #define BDMA_ISR_HTIF7 BDMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */
  6121. #define BDMA_ISR_TEIF7_Pos (31U)
  6122. #define BDMA_ISR_TEIF7_Msk (0x1U << BDMA_ISR_TEIF7_Pos) /*!< 0x80000000 */
  6123. #define BDMA_ISR_TEIF7 BDMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */
  6124. /******************* Bit definition for BDMA_IFCR register *******************/
  6125. #define BDMA_IFCR_CGIF0_Pos (0U)
  6126. #define BDMA_IFCR_CGIF0_Msk (0x1U << BDMA_IFCR_CGIF0_Pos) /*!< 0x00000001 */
  6127. #define BDMA_IFCR_CGIF0 BDMA_IFCR_CGIF0_Msk /*!< Channel 0 Global interrupt clearr */
  6128. #define BDMA_IFCR_CTCIF0_Pos (1U)
  6129. #define BDMA_IFCR_CTCIF0_Msk (0x1U << BDMA_IFCR_CTCIF0_Pos) /*!< 0x00000002 */
  6130. #define BDMA_IFCR_CTCIF0 BDMA_IFCR_CTCIF0_Msk /*!< Channel 0 Transfer Complete clear */
  6131. #define BDMA_IFCR_CHTIF0_Pos (2U)
  6132. #define BDMA_IFCR_CHTIF0_Msk (0x1U << BDMA_IFCR_CHTIF0_Pos) /*!< 0x00000004 */
  6133. #define BDMA_IFCR_CHTIF0 BDMA_IFCR_CHTIF0_Msk /*!< Channel 0 Half Transfer clear */
  6134. #define BDMA_IFCR_CTEIF0_Pos (3U)
  6135. #define BDMA_IFCR_CTEIF0_Msk (0x1U << BDMA_IFCR_CTEIF0_Pos) /*!< 0x00000008 */
  6136. #define BDMA_IFCR_CTEIF0 BDMA_IFCR_CTEIF0_Msk /*!< Channel 0 Transfer Error clear */
  6137. #define BDMA_IFCR_CGIF1_Pos (4U)
  6138. #define BDMA_IFCR_CGIF1_Msk (0x1U << BDMA_IFCR_CGIF1_Pos) /*!< 0x00000010 */
  6139. #define BDMA_IFCR_CGIF1 BDMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */
  6140. #define BDMA_IFCR_CTCIF1_Pos (5U)
  6141. #define BDMA_IFCR_CTCIF1_Msk (0x1U << BDMA_IFCR_CTCIF1_Pos) /*!< 0x00000020 */
  6142. #define BDMA_IFCR_CTCIF1 BDMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */
  6143. #define BDMA_IFCR_CHTIF1_Pos (6U)
  6144. #define BDMA_IFCR_CHTIF1_Msk (0x1U << BDMA_IFCR_CHTIF1_Pos) /*!< 0x00000040 */
  6145. #define BDMA_IFCR_CHTIF1 BDMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */
  6146. #define BDMA_IFCR_CTEIF1_Pos (7U)
  6147. #define BDMA_IFCR_CTEIF1_Msk (0x1U << BDMA_IFCR_CTEIF1_Pos) /*!< 0x00000080 */
  6148. #define BDMA_IFCR_CTEIF1 BDMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */
  6149. #define BDMA_IFCR_CGIF2_Pos (8U)
  6150. #define BDMA_IFCR_CGIF2_Msk (0x1U << BDMA_IFCR_CGIF2_Pos) /*!< 0x00000100 */
  6151. #define BDMA_IFCR_CGIF2 BDMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */
  6152. #define BDMA_IFCR_CTCIF2_Pos (9U)
  6153. #define BDMA_IFCR_CTCIF2_Msk (0x1U << BDMA_IFCR_CTCIF2_Pos) /*!< 0x00000200 */
  6154. #define BDMA_IFCR_CTCIF2 BDMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */
  6155. #define BDMA_IFCR_CHTIF2_Pos (10U)
  6156. #define BDMA_IFCR_CHTIF2_Msk (0x1U << BDMA_IFCR_CHTIF2_Pos) /*!< 0x00000400 */
  6157. #define BDMA_IFCR_CHTIF2 BDMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */
  6158. #define BDMA_IFCR_CTEIF2_Pos (11U)
  6159. #define BDMA_IFCR_CTEIF2_Msk (0x1U << BDMA_IFCR_CTEIF2_Pos) /*!< 0x00000800 */
  6160. #define BDMA_IFCR_CTEIF2 BDMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */
  6161. #define BDMA_IFCR_CGIF3_Pos (12U)
  6162. #define BDMA_IFCR_CGIF3_Msk (0x1U << BDMA_IFCR_CGIF3_Pos) /*!< 0x00001000 */
  6163. #define BDMA_IFCR_CGIF3 BDMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */
  6164. #define BDMA_IFCR_CTCIF3_Pos (13U)
  6165. #define BDMA_IFCR_CTCIF3_Msk (0x1U << BDMA_IFCR_CTCIF3_Pos) /*!< 0x00002000 */
  6166. #define BDMA_IFCR_CTCIF3 BDMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */
  6167. #define BDMA_IFCR_CHTIF3_Pos (14U)
  6168. #define BDMA_IFCR_CHTIF3_Msk (0x1U << BDMA_IFCR_CHTIF3_Pos) /*!< 0x00004000 */
  6169. #define BDMA_IFCR_CHTIF3 BDMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */
  6170. #define BDMA_IFCR_CTEIF3_Pos (15U)
  6171. #define BDMA_IFCR_CTEIF3_Msk (0x1U << BDMA_IFCR_CTEIF3_Pos) /*!< 0x00008000 */
  6172. #define BDMA_IFCR_CTEIF3 BDMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */
  6173. #define BDMA_IFCR_CGIF4_Pos (16U)
  6174. #define BDMA_IFCR_CGIF4_Msk (0x1U << BDMA_IFCR_CGIF4_Pos) /*!< 0x00010000 */
  6175. #define BDMA_IFCR_CGIF4 BDMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */
  6176. #define BDMA_IFCR_CTCIF4_Pos (17U)
  6177. #define BDMA_IFCR_CTCIF4_Msk (0x1U << BDMA_IFCR_CTCIF4_Pos) /*!< 0x00020000 */
  6178. #define BDMA_IFCR_CTCIF4 BDMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */
  6179. #define BDMA_IFCR_CHTIF4_Pos (18U)
  6180. #define BDMA_IFCR_CHTIF4_Msk (0x1U << BDMA_IFCR_CHTIF4_Pos) /*!< 0x00040000 */
  6181. #define BDMA_IFCR_CHTIF4 BDMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */
  6182. #define BDMA_IFCR_CTEIF4_Pos (19U)
  6183. #define BDMA_IFCR_CTEIF4_Msk (0x1U << BDMA_IFCR_CTEIF4_Pos) /*!< 0x00080000 */
  6184. #define BDMA_IFCR_CTEIF4 BDMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */
  6185. #define BDMA_IFCR_CGIF5_Pos (20U)
  6186. #define BDMA_IFCR_CGIF5_Msk (0x1U << BDMA_IFCR_CGIF5_Pos) /*!< 0x00100000 */
  6187. #define BDMA_IFCR_CGIF5 BDMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */
  6188. #define BDMA_IFCR_CTCIF5_Pos (21U)
  6189. #define BDMA_IFCR_CTCIF5_Msk (0x1U << BDMA_IFCR_CTCIF5_Pos) /*!< 0x00200000 */
  6190. #define BDMA_IFCR_CTCIF5 BDMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */
  6191. #define BDMA_IFCR_CHTIF5_Pos (22U)
  6192. #define BDMA_IFCR_CHTIF5_Msk (0x1U << BDMA_IFCR_CHTIF5_Pos) /*!< 0x00400000 */
  6193. #define BDMA_IFCR_CHTIF5 BDMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */
  6194. #define BDMA_IFCR_CTEIF5_Pos (23U)
  6195. #define BDMA_IFCR_CTEIF5_Msk (0x1U << BDMA_IFCR_CTEIF5_Pos) /*!< 0x00800000 */
  6196. #define BDMA_IFCR_CTEIF5 BDMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */
  6197. #define BDMA_IFCR_CGIF6_Pos (24U)
  6198. #define BDMA_IFCR_CGIF6_Msk (0x1U << BDMA_IFCR_CGIF6_Pos) /*!< 0x01000000 */
  6199. #define BDMA_IFCR_CGIF6 BDMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */
  6200. #define BDMA_IFCR_CTCIF6_Pos (25U)
  6201. #define BDMA_IFCR_CTCIF6_Msk (0x1U << BDMA_IFCR_CTCIF6_Pos) /*!< 0x02000000 */
  6202. #define BDMA_IFCR_CTCIF6 BDMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */
  6203. #define BDMA_IFCR_CHTIF6_Pos (26U)
  6204. #define BDMA_IFCR_CHTIF6_Msk (0x1U << BDMA_IFCR_CHTIF6_Pos) /*!< 0x04000000 */
  6205. #define BDMA_IFCR_CHTIF6 BDMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */
  6206. #define BDMA_IFCR_CTEIF6_Pos (27U)
  6207. #define BDMA_IFCR_CTEIF6_Msk (0x1U << BDMA_IFCR_CTEIF6_Pos) /*!< 0x08000000 */
  6208. #define BDMA_IFCR_CTEIF6 BDMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */
  6209. #define BDMA_IFCR_CGIF7_Pos (28U)
  6210. #define BDMA_IFCR_CGIF7_Msk (0x1U << BDMA_IFCR_CGIF7_Pos) /*!< 0x10000000 */
  6211. #define BDMA_IFCR_CGIF7 BDMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */
  6212. #define BDMA_IFCR_CTCIF7_Pos (29U)
  6213. #define BDMA_IFCR_CTCIF7_Msk (0x1U << BDMA_IFCR_CTCIF7_Pos) /*!< 0x20000000 */
  6214. #define BDMA_IFCR_CTCIF7 BDMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */
  6215. #define BDMA_IFCR_CHTIF7_Pos (30U)
  6216. #define BDMA_IFCR_CHTIF7_Msk (0x1U << BDMA_IFCR_CHTIF7_Pos) /*!< 0x40000000 */
  6217. #define BDMA_IFCR_CHTIF7 BDMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */
  6218. #define BDMA_IFCR_CTEIF7_Pos (31U)
  6219. #define BDMA_IFCR_CTEIF7_Msk (0x1U << BDMA_IFCR_CTEIF7_Pos) /*!< 0x80000000 */
  6220. #define BDMA_IFCR_CTEIF7 BDMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */
  6221. /******************* Bit definition for BDMA_CCR register ********************/
  6222. #define BDMA_CCR_EN_Pos (0U)
  6223. #define BDMA_CCR_EN_Msk (0x1U << BDMA_CCR_EN_Pos) /*!< 0x00000001 */
  6224. #define BDMA_CCR_EN BDMA_CCR_EN_Msk /*!< Channel enable */
  6225. #define BDMA_CCR_TCIE_Pos (1U)
  6226. #define BDMA_CCR_TCIE_Msk (0x1U << BDMA_CCR_TCIE_Pos) /*!< 0x00000002 */
  6227. #define BDMA_CCR_TCIE BDMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  6228. #define BDMA_CCR_HTIE_Pos (2U)
  6229. #define BDMA_CCR_HTIE_Msk (0x1U << BDMA_CCR_HTIE_Pos) /*!< 0x00000004 */
  6230. #define BDMA_CCR_HTIE BDMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */
  6231. #define BDMA_CCR_TEIE_Pos (3U)
  6232. #define BDMA_CCR_TEIE_Msk (0x1U << BDMA_CCR_TEIE_Pos) /*!< 0x00000008 */
  6233. #define BDMA_CCR_TEIE BDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  6234. #define BDMA_CCR_DIR_Pos (4U)
  6235. #define BDMA_CCR_DIR_Msk (0x1U << BDMA_CCR_DIR_Pos) /*!< 0x00000010 */
  6236. #define BDMA_CCR_DIR BDMA_CCR_DIR_Msk /*!< Data transfer direction */
  6237. #define BDMA_CCR_CIRC_Pos (5U)
  6238. #define BDMA_CCR_CIRC_Msk (0x1U << BDMA_CCR_CIRC_Pos) /*!< 0x00000020 */
  6239. #define BDMA_CCR_CIRC BDMA_CCR_CIRC_Msk /*!< Circular mode */
  6240. #define BDMA_CCR_PINC_Pos (6U)
  6241. #define BDMA_CCR_PINC_Msk (0x1U << BDMA_CCR_PINC_Pos) /*!< 0x00000040 */
  6242. #define BDMA_CCR_PINC BDMA_CCR_PINC_Msk /*!< Peripheral increment mode */
  6243. #define BDMA_CCR_MINC_Pos (7U)
  6244. #define BDMA_CCR_MINC_Msk (0x1U << BDMA_CCR_MINC_Pos) /*!< 0x00000080 */
  6245. #define BDMA_CCR_MINC BDMA_CCR_MINC_Msk /*!< Memory increment mode */
  6246. #define BDMA_CCR_PSIZE_Pos (8U)
  6247. #define BDMA_CCR_PSIZE_Msk (0x3U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000300 */
  6248. #define BDMA_CCR_PSIZE BDMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */
  6249. #define BDMA_CCR_PSIZE_0 (0x1U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000100 */
  6250. #define BDMA_CCR_PSIZE_1 (0x2U << BDMA_CCR_PSIZE_Pos) /*!< 0x00000200 */
  6251. #define BDMA_CCR_MSIZE_Pos (10U)
  6252. #define BDMA_CCR_MSIZE_Msk (0x3U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */
  6253. #define BDMA_CCR_MSIZE BDMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */
  6254. #define BDMA_CCR_MSIZE_0 (0x1U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000400 */
  6255. #define BDMA_CCR_MSIZE_1 (0x2U << BDMA_CCR_MSIZE_Pos) /*!< 0x00000800 */
  6256. #define BDMA_CCR_PL_Pos (12U)
  6257. #define BDMA_CCR_PL_Msk (0x3U << BDMA_CCR_PL_Pos) /*!< 0x00003000 */
  6258. #define BDMA_CCR_PL BDMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/
  6259. #define BDMA_CCR_PL_0 (0x1U << BDMA_CCR_PL_Pos) /*!< 0x00001000 */
  6260. #define BDMA_CCR_PL_1 (0x2U << BDMA_CCR_PL_Pos) /*!< 0x00002000 */
  6261. #define BDMA_CCR_MEM2MEM_Pos (14U)
  6262. #define BDMA_CCR_MEM2MEM_Msk (0x1U << BDMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */
  6263. #define BDMA_CCR_MEM2MEM BDMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */
  6264. /****************** Bit definition for BDMA_CNDTR register *******************/
  6265. #define BDMA_CNDTR_NDT_Pos (0U)
  6266. #define BDMA_CNDTR_NDT_Msk (0xFFFFU << BDMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */
  6267. #define BDMA_CNDTR_NDT BDMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */
  6268. /****************** Bit definition for BDMA_CPAR register ********************/
  6269. #define BDMA_CPAR_PA_Pos (0U)
  6270. #define BDMA_CPAR_PA_Msk (0xFFFFFFFFU << BDMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */
  6271. #define BDMA_CPAR_PA BDMA_CPAR_PA_Msk /*!< Peripheral Address */
  6272. /****************** Bit definition for BDMA_CMAR register ********************/
  6273. #define BDMA_CMAR_MA_Pos (0U)
  6274. #define BDMA_CMAR_MA_Msk (0xFFFFFFFFU << BDMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */
  6275. #define BDMA_CMAR_MA BDMA_CMAR_MA_Msk /*!< Memory Address */
  6276. /******************************************************************************/
  6277. /* */
  6278. /* Ethernet MAC Registers bits definitions */
  6279. /* */
  6280. /******************************************************************************/
  6281. /* Bit definition for Ethernet MAC Configuration Register register */
  6282. #define ETH_MACCR_ARP_Pos (31U)
  6283. #define ETH_MACCR_ARP_Msk (0x1U << ETH_MACCR_ARP_Pos) /*!< 0x80000000 */
  6284. #define ETH_MACCR_ARP ETH_MACCR_ARP_Msk /* ARP Offload Enable */
  6285. #define ETH_MACCR_SARC_Pos (28U)
  6286. #define ETH_MACCR_SARC_Msk (0x7U << ETH_MACCR_SARC_Pos) /*!< 0x70000000 */
  6287. #define ETH_MACCR_SARC ETH_MACCR_SARC_Msk /* Source Address Insertion or Replacement Control */
  6288. #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. */
  6289. #define ETH_MACCR_SARC_INSADDR0_Pos (29U)
  6290. #define ETH_MACCR_SARC_INSADDR0_Msk (0x1U << ETH_MACCR_SARC_INSADDR0_Pos) /*!< 0x20000000 */
  6291. #define ETH_MACCR_SARC_INSADDR0 ETH_MACCR_SARC_INSADDR0_Msk /* Insert MAC Address0 in the SA field of all transmitted packets. */
  6292. #define ETH_MACCR_SARC_INSADDR1_Pos (29U)
  6293. #define ETH_MACCR_SARC_INSADDR1_Msk (0x3U << ETH_MACCR_SARC_INSADDR1_Pos) /*!< 0x60000000 */
  6294. #define ETH_MACCR_SARC_INSADDR1 ETH_MACCR_SARC_INSADDR1_Msk /* Insert MAC Address1 in the SA field of all transmitted packets. */
  6295. #define ETH_MACCR_SARC_REPADDR0_Pos (28U)
  6296. #define ETH_MACCR_SARC_REPADDR0_Msk (0x3U << ETH_MACCR_SARC_REPADDR0_Pos) /*!< 0x30000000 */
  6297. #define ETH_MACCR_SARC_REPADDR0 ETH_MACCR_SARC_REPADDR0_Msk /* Replace MAC Address0 in the SA field of all transmitted packets. */
  6298. #define ETH_MACCR_SARC_REPADDR1_Pos (28U)
  6299. #define ETH_MACCR_SARC_REPADDR1_Msk (0x7U << ETH_MACCR_SARC_REPADDR1_Pos) /*!< 0x70000000 */
  6300. #define ETH_MACCR_SARC_REPADDR1 ETH_MACCR_SARC_REPADDR1_Msk /* Replace MAC Address1 in the SA field of all transmitted packets. */
  6301. #define ETH_MACCR_IPC_Pos (27U)
  6302. #define ETH_MACCR_IPC_Msk (0x1U << ETH_MACCR_IPC_Pos) /*!< 0x08000000 */
  6303. #define ETH_MACCR_IPC ETH_MACCR_IPC_Msk /* Checksum Offload */
  6304. #define ETH_MACCR_IPG_Pos (24U)
  6305. #define ETH_MACCR_IPG_Msk (0x7U << ETH_MACCR_IPG_Pos) /*!< 0x07000000 */
  6306. #define ETH_MACCR_IPG ETH_MACCR_IPG_Msk /* Inter-Packet Gap */
  6307. #define ETH_MACCR_IPG_96BIT ((uint32_t)0x00000000) /* Minimum IFG between Packets during transmission is 96Bit */
  6308. #define ETH_MACCR_IPG_88BIT ((uint32_t)0x01000000) /* Minimum IFG between Packets during transmission is 88Bit */
  6309. #define ETH_MACCR_IPG_80BIT ((uint32_t)0x02000000) /* Minimum IFG between Packets during transmission is 80Bit */
  6310. #define ETH_MACCR_IPG_72BIT ((uint32_t)0x03000000) /* Minimum IFG between Packets during transmission is 72Bit */
  6311. #define ETH_MACCR_IPG_64BIT ((uint32_t)0x04000000) /* Minimum IFG between Packets during transmission is 64Bit */
  6312. #define ETH_MACCR_IPG_56BIT ((uint32_t)0x05000000) /* Minimum IFG between Packets during transmission is 56Bit */
  6313. #define ETH_MACCR_IPG_48BIT ((uint32_t)0x06000000) /* Minimum IFG between Packets during transmission is 48Bit */
  6314. #define ETH_MACCR_IPG_40BIT ((uint32_t)0x07000000) /* Minimum IFG between Packets during transmission is 40Bit */
  6315. #define ETH_MACCR_GPSLCE_Pos (23U)
  6316. #define ETH_MACCR_GPSLCE_Msk (0x1U << ETH_MACCR_GPSLCE_Pos) /*!< 0x00800000 */
  6317. #define ETH_MACCR_GPSLCE ETH_MACCR_GPSLCE_Msk /* Giant Packet Size Limit Control Enable */
  6318. #define ETH_MACCR_S2KP_Pos (22U)
  6319. #define ETH_MACCR_S2KP_Msk (0x1U << ETH_MACCR_S2KP_Pos) /*!< 0x00400000 */
  6320. #define ETH_MACCR_S2KP ETH_MACCR_S2KP_Msk /* IEEE 802.3as Support for 2K Packets */
  6321. #define ETH_MACCR_CST_Pos (21U)
  6322. #define ETH_MACCR_CST_Msk (0x1U << ETH_MACCR_CST_Pos) /*!< 0x00200000 */
  6323. #define ETH_MACCR_CST ETH_MACCR_CST_Msk /* CRC stripping for Type packets */
  6324. #define ETH_MACCR_ACS_Pos (20U)
  6325. #define ETH_MACCR_ACS_Msk (0x1U << ETH_MACCR_ACS_Pos) /*!< 0x00100000 */
  6326. #define ETH_MACCR_ACS ETH_MACCR_ACS_Msk /* Automatic Pad or CRC Stripping */
  6327. #define ETH_MACCR_WD_Pos (19U)
  6328. #define ETH_MACCR_WD_Msk (0x1U << ETH_MACCR_WD_Pos) /*!< 0x00080000 */
  6329. #define ETH_MACCR_WD ETH_MACCR_WD_Msk /* Watchdog disable */
  6330. #define ETH_MACCR_JD_Pos (17U)
  6331. #define ETH_MACCR_JD_Msk (0x1U << ETH_MACCR_JD_Pos) /*!< 0x00020000 */
  6332. #define ETH_MACCR_JD ETH_MACCR_JD_Msk /* Jabber disable */
  6333. #define ETH_MACCR_JE_Pos (16U)
  6334. #define ETH_MACCR_JE_Msk (0x1U << ETH_MACCR_JE_Pos) /*!< 0x00010000 */
  6335. #define ETH_MACCR_JE ETH_MACCR_JE_Msk /* Jumbo Packet Enable */
  6336. #define ETH_MACCR_FES_Pos (14U)
  6337. #define ETH_MACCR_FES_Msk (0x1U << ETH_MACCR_FES_Pos) /*!< 0x00004000 */
  6338. #define ETH_MACCR_FES ETH_MACCR_FES_Msk /* Fast ethernet speed */
  6339. #define ETH_MACCR_DM_Pos (13U)
  6340. #define ETH_MACCR_DM_Msk (0x1U << ETH_MACCR_DM_Pos) /*!< 0x00002000 */
  6341. #define ETH_MACCR_DM ETH_MACCR_DM_Msk /* Duplex mode */
  6342. #define ETH_MACCR_LM_Pos (12U)
  6343. #define ETH_MACCR_LM_Msk (0x1U << ETH_MACCR_LM_Pos) /*!< 0x00001000 */
  6344. #define ETH_MACCR_LM ETH_MACCR_LM_Msk /* loopback mode */
  6345. #define ETH_MACCR_ECRSFD_Pos (11U)
  6346. #define ETH_MACCR_ECRSFD_Msk (0x1U << ETH_MACCR_ECRSFD_Pos) /*!< 0x00000800 */
  6347. #define ETH_MACCR_ECRSFD ETH_MACCR_ECRSFD_Msk /* Enable Carrier Sense Before Transmission in Full-Duplex Mode */
  6348. #define ETH_MACCR_DO_Pos (10U)
  6349. #define ETH_MACCR_DO_Msk (0x1U << ETH_MACCR_DO_Pos) /*!< 0x00000400 */
  6350. #define ETH_MACCR_DO ETH_MACCR_DO_Msk /* Disable Receive own */
  6351. #define ETH_MACCR_DCRS_Pos (9U)
  6352. #define ETH_MACCR_DCRS_Msk (0x1U << ETH_MACCR_DCRS_Pos) /*!< 0x00000200 */
  6353. #define ETH_MACCR_DCRS ETH_MACCR_DCRS_Msk /* Disable Carrier Sense During Transmission */
  6354. #define ETH_MACCR_DR_Pos (8U)
  6355. #define ETH_MACCR_DR_Msk (0x1U << ETH_MACCR_DR_Pos) /*!< 0x00000100 */
  6356. #define ETH_MACCR_DR ETH_MACCR_DR_Msk /* Disable Retry */
  6357. #define ETH_MACCR_BL_Pos (5U)
  6358. #define ETH_MACCR_BL_Msk (0x3U << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6359. #define ETH_MACCR_BL ETH_MACCR_BL_Msk /* Back-off limit mask */
  6360. #define ETH_MACCR_BL_10 (0x0U << ETH_MACCR_BL_Pos) /*!< 0x00000000 */
  6361. #define ETH_MACCR_BL_8 (0x1U << ETH_MACCR_BL_Pos) /*!< 0x00000020 */
  6362. #define ETH_MACCR_BL_4 (0x2U << ETH_MACCR_BL_Pos) /*!< 0x00000040 */
  6363. #define ETH_MACCR_BL_1 (0x3U << ETH_MACCR_BL_Pos) /*!< 0x00000060 */
  6364. #define ETH_MACCR_DC_Pos (4U)
  6365. #define ETH_MACCR_DC_Msk (0x1U << ETH_MACCR_DC_Pos) /*!< 0x00000010 */
  6366. #define ETH_MACCR_DC ETH_MACCR_DC_Msk /* Defferal check */
  6367. #define ETH_MACCR_PRELEN_Pos (2U)
  6368. #define ETH_MACCR_PRELEN_Msk (0x3U << ETH_MACCR_PRELEN_Pos) /*!< 0x0000000C */
  6369. #define ETH_MACCR_PRELEN ETH_MACCR_PRELEN_Msk /* Preamble Length for Transmit packets */
  6370. #define ETH_MACCR_PRELEN_7 (0x0U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000000 */
  6371. #define ETH_MACCR_PRELEN_5 (0x1U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000004 */
  6372. #define ETH_MACCR_PRELEN_3 (0x2U << ETH_MACCR_PRELEN_Pos) /*!< 0x00000008 */
  6373. #define ETH_MACCR_TE_Pos (1U)
  6374. #define ETH_MACCR_TE_Msk (0x1U << ETH_MACCR_TE_Pos) /*!< 0x00000002 */
  6375. #define ETH_MACCR_TE ETH_MACCR_TE_Msk /* Transmitter enable */
  6376. #define ETH_MACCR_RE_Pos (0U)
  6377. #define ETH_MACCR_RE_Msk (0x1U << ETH_MACCR_RE_Pos) /*!< 0x00000001 */
  6378. #define ETH_MACCR_RE ETH_MACCR_RE_Msk /* Receiver enable */
  6379. /* Bit definition for Ethernet MAC Extended Configuration Register register */
  6380. #define ETH_MACECR_EIPG_Pos (25U)
  6381. #define ETH_MACECR_EIPG_Msk (0x1FU << ETH_MACECR_EIPG_Pos) /*!< 0x3E000000 */
  6382. #define ETH_MACECR_EIPG ETH_MACECR_EIPG_Msk /* Extended Inter-Packet Gap */
  6383. #define ETH_MACECR_EIPGEN_Pos (24U)
  6384. #define ETH_MACECR_EIPGEN_Msk (0x1U << ETH_MACECR_EIPGEN_Pos) /*!< 0x01000000 */
  6385. #define ETH_MACECR_EIPGEN ETH_MACECR_EIPGEN_Msk /* Extended Inter-Packet Gap Enable */
  6386. #define ETH_MACECR_USP_Pos (18U)
  6387. #define ETH_MACECR_USP_Msk (0x1U << ETH_MACECR_USP_Pos) /*!< 0x00040000 */
  6388. #define ETH_MACECR_USP ETH_MACECR_USP_Msk /* Unicast Slow Protocol Packet Detect */
  6389. #define ETH_MACECR_SPEN_Pos (17U)
  6390. #define ETH_MACECR_SPEN_Msk (0x1U << ETH_MACECR_SPEN_Pos) /*!< 0x00020000 */
  6391. #define ETH_MACECR_SPEN ETH_MACECR_SPEN_Msk /* Slow Protocol Detection Enable */
  6392. #define ETH_MACECR_DCRCC_Pos (16U)
  6393. #define ETH_MACECR_DCRCC_Msk (0x1U << ETH_MACECR_DCRCC_Pos) /*!< 0x00010000 */
  6394. #define ETH_MACECR_DCRCC ETH_MACECR_DCRCC_Msk /* Disable CRC Checking for Received Packets */
  6395. #define ETH_MACECR_GPSL_Pos (0U)
  6396. #define ETH_MACECR_GPSL_Msk (0x3FFFU << ETH_MACECR_GPSL_Pos) /*!< 0x00003FFF */
  6397. #define ETH_MACECR_GPSL ETH_MACECR_GPSL_Msk /* Giant Packet Size Limit */
  6398. /* Bit definition for Ethernet MAC Packet Filter Register */
  6399. #define ETH_MACPFR_RA_Pos (31U)
  6400. #define ETH_MACPFR_RA_Msk (0x1U << ETH_MACPFR_RA_Pos) /*!< 0x80000000 */
  6401. #define ETH_MACPFR_RA ETH_MACPFR_RA_Msk /* Receive all */
  6402. #define ETH_MACPFR_DNTU_Pos (21U)
  6403. #define ETH_MACPFR_DNTU_Msk (0x1U << ETH_MACPFR_DNTU_Pos) /*!< 0x00200000 */
  6404. #define ETH_MACPFR_DNTU ETH_MACPFR_DNTU_Msk /* Drop Non-TCP/UDP over IP Packets */
  6405. #define ETH_MACPFR_IPFE_Pos (20U)
  6406. #define ETH_MACPFR_IPFE_Msk (0x1U << ETH_MACPFR_IPFE_Pos) /*!< 0x00100000 */
  6407. #define ETH_MACPFR_IPFE ETH_MACPFR_IPFE_Msk /* Layer 3 and Layer 4 Filter Enable */
  6408. #define ETH_MACPFR_VTFE_Pos (16U)
  6409. #define ETH_MACPFR_VTFE_Msk (0x1U << ETH_MACPFR_VTFE_Pos) /*!< 0x00010000 */
  6410. #define ETH_MACPFR_VTFE ETH_MACPFR_VTFE_Msk /* VLAN Tag Filter Enable */
  6411. #define ETH_MACPFR_HPF_Pos (10U)
  6412. #define ETH_MACPFR_HPF_Msk (0x1U << ETH_MACPFR_HPF_Pos) /*!< 0x00000400 */
  6413. #define ETH_MACPFR_HPF ETH_MACPFR_HPF_Msk /* Hash or perfect filter */
  6414. #define ETH_MACPFR_SAF_Pos (9U)
  6415. #define ETH_MACPFR_SAF_Msk (0x1U << ETH_MACPFR_SAF_Pos) /*!< 0x00000200 */
  6416. #define ETH_MACPFR_SAF ETH_MACPFR_SAF_Msk /* Source address filter enable */
  6417. #define ETH_MACPFR_SAIF_Pos (8U)
  6418. #define ETH_MACPFR_SAIF_Msk (0x1U << ETH_MACPFR_SAIF_Pos) /*!< 0x00000100 */
  6419. #define ETH_MACPFR_SAIF ETH_MACPFR_SAIF_Msk /* SA inverse filtering */
  6420. #define ETH_MACPFR_PCF_Pos (6U)
  6421. #define ETH_MACPFR_PCF_Msk (0x3U << ETH_MACPFR_PCF_Pos) /*!< 0x000000C0 */
  6422. #define ETH_MACPFR_PCF ETH_MACPFR_PCF_Msk /* Pass control frames: 4 cases */
  6423. #define ETH_MACPFR_PCF_BLOCKALL ((uint32_t)0x00000000) /* MAC filters all control frames from reaching the application */
  6424. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos (6U)
  6425. #define ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Msk (0x1U << ETH_MACPFR_PCF_FORWARDALLEXCEPTPA_Pos) /*!< 0x00000040 */
  6426. #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 */
  6427. #define ETH_MACPFR_PCF_FORWARDALL_Pos (7U)
  6428. #define ETH_MACPFR_PCF_FORWARDALL_Msk (0x1U << ETH_MACPFR_PCF_FORWARDALL_Pos) /*!< 0x00000080 */
  6429. #define ETH_MACPFR_PCF_FORWARDALL ETH_MACPFR_PCF_FORWARDALL_Msk /* MAC forwards all control frames to application even if they fail the Address Filter */
  6430. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos (6U)
  6431. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk (0x3U << ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Pos) /*!< 0x000000C0 */
  6432. #define ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER ETH_MACPFR_PCF_FORWARDPASSEDADDRFILTER_Msk /* MAC forwards control frames that pass the Address Filter. */
  6433. #define ETH_MACPFR_DBF_Pos (5U)
  6434. #define ETH_MACPFR_DBF_Msk (0x1U << ETH_MACPFR_DBF_Pos) /*!< 0x00000020 */
  6435. #define ETH_MACPFR_DBF ETH_MACPFR_DBF_Msk /* Disable Broadcast Packets */
  6436. #define ETH_MACPFR_PM_Pos (4U)
  6437. #define ETH_MACPFR_PM_Msk (0x1U << ETH_MACPFR_PM_Pos) /*!< 0x00000010 */
  6438. #define ETH_MACPFR_PM ETH_MACPFR_PM_Msk /* Pass all mutlicast */
  6439. #define ETH_MACPFR_DAIF_Pos (3U)
  6440. #define ETH_MACPFR_DAIF_Msk (0x1U << ETH_MACPFR_DAIF_Pos) /*!< 0x00000008 */
  6441. #define ETH_MACPFR_DAIF ETH_MACPFR_DAIF_Msk /* DA Inverse filtering */
  6442. #define ETH_MACPFR_HMC_Pos (2U)
  6443. #define ETH_MACPFR_HMC_Msk (0x1U << ETH_MACPFR_HMC_Pos) /*!< 0x00000004 */
  6444. #define ETH_MACPFR_HMC ETH_MACPFR_HMC_Msk /* Hash multicast */
  6445. #define ETH_MACPFR_HUC_Pos (1U)
  6446. #define ETH_MACPFR_HUC_Msk (0x1U << ETH_MACPFR_HUC_Pos) /*!< 0x00000002 */
  6447. #define ETH_MACPFR_HUC ETH_MACPFR_HUC_Msk /* Hash unicast */
  6448. #define ETH_MACPFR_PR_Pos (0U)
  6449. #define ETH_MACPFR_PR_Msk (0x1U << ETH_MACPFR_PR_Pos) /*!< 0x00000001 */
  6450. #define ETH_MACPFR_PR ETH_MACPFR_PR_Msk /* Promiscuous mode */
  6451. /* Bit definition for Ethernet MAC Watchdog Timeout Register */
  6452. #define ETH_MACWTR_PWE_Pos (8U)
  6453. #define ETH_MACWTR_PWE_Msk (0x1U << ETH_MACWTR_PWE_Pos) /*!< 0x00000100 */
  6454. #define ETH_MACWTR_PWE ETH_MACWTR_PWE_Msk /* Programmable Watchdog Enable */
  6455. #define ETH_MACWTR_WTO_Pos (0U)
  6456. #define ETH_MACWTR_WTO_Msk (0xFU << ETH_MACWTR_WTO_Pos) /*!< 0x0000000F */
  6457. #define ETH_MACWTR_WTO ETH_MACWTR_WTO_Msk /* Watchdog Timeout */
  6458. #define ETH_MACWTR_WTO_2KB ((uint32_t)0x00000000) /* Maximum received packet length 2KB*/
  6459. #define ETH_MACWTR_WTO_3KB ((uint32_t)0x00000001) /* Maximum received packet length 3KB */
  6460. #define ETH_MACWTR_WTO_4KB ((uint32_t)0x00000002) /* Maximum received packet length 4KB */
  6461. #define ETH_MACWTR_WTO_5KB ((uint32_t)0x00000003) /* Maximum received packet length 5KB */
  6462. #define ETH_MACWTR_WTO_6KB ((uint32_t)0x00000004) /* Maximum received packet length 6KB */
  6463. #define ETH_MACWTR_WTO_7KB ((uint32_t)0x00000005) /* Maximum received packet length 7KB */
  6464. #define ETH_MACWTR_WTO_8KB ((uint32_t)0x00000006) /* Maximum received packet length 8KB */
  6465. #define ETH_MACWTR_WTO_9KB ((uint32_t)0x00000007) /* Maximum received packet length 9KB */
  6466. #define ETH_MACWTR_WTO_10KB ((uint32_t)0x00000008) /* Maximum received packet length 10KB */
  6467. #define ETH_MACWTR_WTO_11KB ((uint32_t)0x00000009) /* Maximum received packet length 11KB */
  6468. #define ETH_MACWTR_WTO_12KB ((uint32_t)0x0000000A) /* Maximum received packet length 12KB */
  6469. #define ETH_MACWTR_WTO_13KB ((uint32_t)0x0000000B) /* Maximum received packet length 13KB */
  6470. #define ETH_MACWTR_WTO_14KB ((uint32_t)0x0000000C) /* Maximum received packet length 14KB */
  6471. #define ETH_MACWTR_WTO_15KB ((uint32_t)0x0000000D) /* Maximum received packet length 15KB */
  6472. #define ETH_MACWTR_WTO_16KB ((uint32_t)0x0000000E) /* Maximum received packet length 16KB */
  6473. /* Bit definition for Ethernet MAC Hash Table High Register */
  6474. #define ETH_MACHTHR_HTH_Pos (0U)
  6475. #define ETH_MACHTHR_HTH_Msk (0xFFFFFFFFU << ETH_MACHTHR_HTH_Pos) /*!< 0xFFFFFFFF */
  6476. #define ETH_MACHTHR_HTH ETH_MACHTHR_HTH_Msk /* Hash table high */
  6477. /* Bit definition for Ethernet MAC Hash Table Low Register */
  6478. #define ETH_MACHTLR_HTL_Pos (0U)
  6479. #define ETH_MACHTLR_HTL_Msk (0xFFFFFFFFU << ETH_MACHTLR_HTL_Pos) /*!< 0xFFFFFFFF */
  6480. #define ETH_MACHTLR_HTL ETH_MACHTLR_HTL_Msk /* Hash table low */
  6481. /* Bit definition for Ethernet MAC VLAN Tag Register */
  6482. #define ETH_MACVTR_EIVLRXS_Pos (31U)
  6483. #define ETH_MACVTR_EIVLRXS_Msk (0x1U << ETH_MACVTR_EIVLRXS_Pos) /*!< 0x80000000 */
  6484. #define ETH_MACVTR_EIVLRXS ETH_MACVTR_EIVLRXS_Msk /* Enable Inner VLAN Tag in Rx Status */
  6485. #define ETH_MACVTR_EIVLS_Pos (28U)
  6486. #define ETH_MACVTR_EIVLS_Msk (0x3U << ETH_MACVTR_EIVLS_Pos) /*!< 0x30000000 */
  6487. #define ETH_MACVTR_EIVLS ETH_MACVTR_EIVLS_Msk /* Enable Inner VLAN Tag Stripping on Receive */
  6488. #define ETH_MACVTR_EIVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6489. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Pos (28U)
  6490. #define ETH_MACVTR_EIVLS_STRIPIFPASS_Msk (0x1U << ETH_MACVTR_EIVLS_STRIPIFPASS_Pos) /*!< 0x10000000 */
  6491. #define ETH_MACVTR_EIVLS_STRIPIFPASS ETH_MACVTR_EIVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6492. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos (29U)
  6493. #define ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk (0x1U << ETH_MACVTR_EIVLS_STRIPIFFAILS_Pos) /*!< 0x20000000 */
  6494. #define ETH_MACVTR_EIVLS_STRIPIFFAILS ETH_MACVTR_EIVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6495. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos (28U)
  6496. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk (0x3U << ETH_MACVTR_EIVLS_ALWAYSSTRIP_Pos) /*!< 0x30000000 */
  6497. #define ETH_MACVTR_EIVLS_ALWAYSSTRIP ETH_MACVTR_EIVLS_ALWAYSSTRIP_Msk /* Always strip */
  6498. #define ETH_MACVTR_ERIVLT_Pos (27U)
  6499. #define ETH_MACVTR_ERIVLT_Msk (0x1U << ETH_MACVTR_ERIVLT_Pos) /*!< 0x08000000 */
  6500. #define ETH_MACVTR_ERIVLT ETH_MACVTR_ERIVLT_Msk /* Enable Inner VLAN Tag */
  6501. #define ETH_MACVTR_EDVLP_Pos (26U)
  6502. #define ETH_MACVTR_EDVLP_Msk (0x1U << ETH_MACVTR_EDVLP_Pos) /*!< 0x04000000 */
  6503. #define ETH_MACVTR_EDVLP ETH_MACVTR_EDVLP_Msk /* Enable Double VLAN Processing */
  6504. #define ETH_MACVTR_VTHM_Pos (25U)
  6505. #define ETH_MACVTR_VTHM_Msk (0x1U << ETH_MACVTR_VTHM_Pos) /*!< 0x02000000 */
  6506. #define ETH_MACVTR_VTHM ETH_MACVTR_VTHM_Msk /* VLAN Tag Hash Table Match Enable */
  6507. #define ETH_MACVTR_EVLRXS_Pos (24U)
  6508. #define ETH_MACVTR_EVLRXS_Msk (0x1U << ETH_MACVTR_EVLRXS_Pos) /*!< 0x01000000 */
  6509. #define ETH_MACVTR_EVLRXS ETH_MACVTR_EVLRXS_Msk /* Enable VLAN Tag in Rx status */
  6510. #define ETH_MACVTR_EVLS_Pos (21U)
  6511. #define ETH_MACVTR_EVLS_Msk (0x3U << ETH_MACVTR_EVLS_Pos) /*!< 0x00600000 */
  6512. #define ETH_MACVTR_EVLS ETH_MACVTR_EVLS_Msk /* Enable VLAN Tag Stripping on Receive */
  6513. #define ETH_MACVTR_EVLS_DONOTSTRIP ((uint32_t)0x00000000) /* Do not strip */
  6514. #define ETH_MACVTR_EVLS_STRIPIFPASS_Pos (21U)
  6515. #define ETH_MACVTR_EVLS_STRIPIFPASS_Msk (0x1U << ETH_MACVTR_EVLS_STRIPIFPASS_Pos) /*!< 0x00200000 */
  6516. #define ETH_MACVTR_EVLS_STRIPIFPASS ETH_MACVTR_EVLS_STRIPIFPASS_Msk /* Strip if VLAN filter passes */
  6517. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Pos (22U)
  6518. #define ETH_MACVTR_EVLS_STRIPIFFAILS_Msk (0x1U << ETH_MACVTR_EVLS_STRIPIFFAILS_Pos) /*!< 0x00400000 */
  6519. #define ETH_MACVTR_EVLS_STRIPIFFAILS ETH_MACVTR_EVLS_STRIPIFFAILS_Msk /* Strip if VLAN filter fails */
  6520. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos (21U)
  6521. #define ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk (0x3U << ETH_MACVTR_EVLS_ALWAYSSTRIP_Pos) /*!< 0x00600000 */
  6522. #define ETH_MACVTR_EVLS_ALWAYSSTRIP ETH_MACVTR_EVLS_ALWAYSSTRIP_Msk /* Always strip */
  6523. #define ETH_MACVTR_DOVLTC_Pos (20U)
  6524. #define ETH_MACVTR_DOVLTC_Msk (0x1U << ETH_MACVTR_DOVLTC_Pos) /*!< 0x00100000 */
  6525. #define ETH_MACVTR_DOVLTC ETH_MACVTR_DOVLTC_Msk /* Disable VLAN Type Check */
  6526. #define ETH_MACVTR_ERSVLM_Pos (19U)
  6527. #define ETH_MACVTR_ERSVLM_Msk (0x1U << ETH_MACVTR_ERSVLM_Pos) /*!< 0x00080000 */
  6528. #define ETH_MACVTR_ERSVLM ETH_MACVTR_ERSVLM_Msk /* Enable Receive S-VLAN Match */
  6529. #define ETH_MACVTR_ESVL_Pos (18U)
  6530. #define ETH_MACVTR_ESVL_Msk (0x1U << ETH_MACVTR_ESVL_Pos) /*!< 0x00040000 */
  6531. #define ETH_MACVTR_ESVL ETH_MACVTR_ESVL_Msk /* Enable S-VLAN */
  6532. #define ETH_MACVTR_VTIM_Pos (17U)
  6533. #define ETH_MACVTR_VTIM_Msk (0x1U << ETH_MACVTR_VTIM_Pos) /*!< 0x00020000 */
  6534. #define ETH_MACVTR_VTIM ETH_MACVTR_VTIM_Msk /* VLAN Tag Inverse Match Enable */
  6535. #define ETH_MACVTR_ETV_Pos (16U)
  6536. #define ETH_MACVTR_ETV_Msk (0x1U << ETH_MACVTR_ETV_Pos) /*!< 0x00010000 */
  6537. #define ETH_MACVTR_ETV ETH_MACVTR_ETV_Msk /* Enable 12-Bit VLAN Tag Comparison */
  6538. #define ETH_MACVTR_VL_Pos (0U)
  6539. #define ETH_MACVTR_VL_Msk (0xFFFFU << ETH_MACVTR_VL_Pos) /*!< 0x0000FFFF */
  6540. #define ETH_MACVTR_VL ETH_MACVTR_VL_Msk /* VLAN Tag Identifier for Receive Packets */
  6541. #define ETH_MACVTR_VL_UP_Pos (13U)
  6542. #define ETH_MACVTR_VL_UP_Msk (0x7U << ETH_MACVTR_VL_UP_Pos) /*!< 0x0000E000 */
  6543. #define ETH_MACVTR_VL_UP ETH_MACVTR_VL_UP_Msk /* User Priority */
  6544. #define ETH_MACVTR_VL_CFIDEI_Pos (12U)
  6545. #define ETH_MACVTR_VL_CFIDEI_Msk (0x1U << ETH_MACVTR_VL_CFIDEI_Pos) /*!< 0x00001000 */
  6546. #define ETH_MACVTR_VL_CFIDEI ETH_MACVTR_VL_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6547. #define ETH_MACVTR_VL_VID_Pos (0U)
  6548. #define ETH_MACVTR_VL_VID_Msk (0xFFFU << ETH_MACVTR_VL_VID_Pos) /*!< 0x00000FFF */
  6549. #define ETH_MACVTR_VL_VID ETH_MACVTR_VL_VID_Msk /* VLAN Identifier field of VLAN tag */
  6550. /* Bit definition for Ethernet MAC VLAN Hash Table Register */
  6551. #define ETH_MACVHTR_VLHT_Pos (0U)
  6552. #define ETH_MACVHTR_VLHT_Msk (0xFFFFU << ETH_MACVHTR_VLHT_Pos) /*!< 0x0000FFFF */
  6553. #define ETH_MACVHTR_VLHT ETH_MACVHTR_VLHT_Msk /* VLAN Hash Table */
  6554. /* Bit definition for Ethernet MAC VLAN Incl Register */
  6555. #define ETH_MACVIR_VLTI_Pos (20U)
  6556. #define ETH_MACVIR_VLTI_Msk (0x1U << ETH_MACVIR_VLTI_Pos) /*!< 0x00100000 */
  6557. #define ETH_MACVIR_VLTI ETH_MACVIR_VLTI_Msk /* VLAN Tag Input */
  6558. #define ETH_MACVIR_CSVL_Pos (19U)
  6559. #define ETH_MACVIR_CSVL_Msk (0x1U << ETH_MACVIR_CSVL_Pos) /*!< 0x00080000 */
  6560. #define ETH_MACVIR_CSVL ETH_MACVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6561. #define ETH_MACVIR_VLP_Pos (18U)
  6562. #define ETH_MACVIR_VLP_Msk (0x1U << ETH_MACVIR_VLP_Pos) /*!< 0x00040000 */
  6563. #define ETH_MACVIR_VLP ETH_MACVIR_VLP_Msk /* VLAN Priority Control */
  6564. #define ETH_MACVIR_VLC_Pos (16U)
  6565. #define ETH_MACVIR_VLC_Msk (0x3U << ETH_MACVIR_VLC_Pos) /*!< 0x00030000 */
  6566. #define ETH_MACVIR_VLC ETH_MACVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6567. #define ETH_MACVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6568. #define ETH_MACVIR_VLC_VLANTAGDELETE_Pos (16U)
  6569. #define ETH_MACVIR_VLC_VLANTAGDELETE_Msk (0x1U << ETH_MACVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6570. #define ETH_MACVIR_VLC_VLANTAGDELETE ETH_MACVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6571. #define ETH_MACVIR_VLC_VLANTAGINSERT_Pos (17U)
  6572. #define ETH_MACVIR_VLC_VLANTAGINSERT_Msk (0x1U << ETH_MACVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6573. #define ETH_MACVIR_VLC_VLANTAGINSERT ETH_MACVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6574. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6575. #define ETH_MACVIR_VLC_VLANTAGREPLACE_Msk (0x3U << ETH_MACVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6576. #define ETH_MACVIR_VLC_VLANTAGREPLACE ETH_MACVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6577. #define ETH_MACVIR_VLT_Pos (0U)
  6578. #define ETH_MACVIR_VLT_Msk (0xFFFFU << ETH_MACVIR_VLT_Pos) /*!< 0x0000FFFF */
  6579. #define ETH_MACVIR_VLT ETH_MACVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6580. #define ETH_MACVIR_VLT_UP_Pos (13U)
  6581. #define ETH_MACVIR_VLT_UP_Msk (0x7U << ETH_MACVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6582. #define ETH_MACVIR_VLT_UP ETH_MACVIR_VLT_UP_Msk /* User Priority */
  6583. #define ETH_MACVIR_VLT_CFIDEI_Pos (12U)
  6584. #define ETH_MACVIR_VLT_CFIDEI_Msk (0x1U << ETH_MACVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6585. #define ETH_MACVIR_VLT_CFIDEI ETH_MACVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6586. #define ETH_MACVIR_VLT_VID_Pos (0U)
  6587. #define ETH_MACVIR_VLT_VID_Msk (0xFFFU << ETH_MACVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6588. #define ETH_MACVIR_VLT_VID ETH_MACVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6589. /* Bit definition for Ethernet MAC Inner_VLAN Incl Register */
  6590. #define ETH_MACIVIR_VLTI_Pos (20U)
  6591. #define ETH_MACIVIR_VLTI_Msk (0x1U << ETH_MACIVIR_VLTI_Pos) /*!< 0x00100000 */
  6592. #define ETH_MACIVIR_VLTI ETH_MACIVIR_VLTI_Msk /* VLAN Tag Input */
  6593. #define ETH_MACIVIR_CSVL_Pos (19U)
  6594. #define ETH_MACIVIR_CSVL_Msk (0x1U << ETH_MACIVIR_CSVL_Pos) /*!< 0x00080000 */
  6595. #define ETH_MACIVIR_CSVL ETH_MACIVIR_CSVL_Msk /* C-VLAN or S-VLAN */
  6596. #define ETH_MACIVIR_VLP_Pos (18U)
  6597. #define ETH_MACIVIR_VLP_Msk (0x1U << ETH_MACIVIR_VLP_Pos) /*!< 0x00040000 */
  6598. #define ETH_MACIVIR_VLP ETH_MACIVIR_VLP_Msk /* VLAN Priority Control */
  6599. #define ETH_MACIVIR_VLC_Pos (16U)
  6600. #define ETH_MACIVIR_VLC_Msk (0x3U << ETH_MACIVIR_VLC_Pos) /*!< 0x00030000 */
  6601. #define ETH_MACIVIR_VLC ETH_MACIVIR_VLC_Msk /* VLAN Tag Control in Transmit Packets */
  6602. #define ETH_MACIVIR_VLC_NOVLANTAG ((uint32_t)0x00000000) /* No VLAN tag deletion, insertion, or replacement */
  6603. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Pos (16U)
  6604. #define ETH_MACIVIR_VLC_VLANTAGDELETE_Msk (0x1U << ETH_MACIVIR_VLC_VLANTAGDELETE_Pos) /*!< 0x00010000 */
  6605. #define ETH_MACIVIR_VLC_VLANTAGDELETE ETH_MACIVIR_VLC_VLANTAGDELETE_Msk /* VLAN tag deletion */
  6606. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Pos (17U)
  6607. #define ETH_MACIVIR_VLC_VLANTAGINSERT_Msk (0x1U << ETH_MACIVIR_VLC_VLANTAGINSERT_Pos) /*!< 0x00020000 */
  6608. #define ETH_MACIVIR_VLC_VLANTAGINSERT ETH_MACIVIR_VLC_VLANTAGINSERT_Msk /* VLAN tag insertion */
  6609. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos (16U)
  6610. #define ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk (0x3U << ETH_MACIVIR_VLC_VLANTAGREPLACE_Pos) /*!< 0x00030000 */
  6611. #define ETH_MACIVIR_VLC_VLANTAGREPLACE ETH_MACIVIR_VLC_VLANTAGREPLACE_Msk /* VLAN tag replacement */
  6612. #define ETH_MACIVIR_VLT_Pos (0U)
  6613. #define ETH_MACIVIR_VLT_Msk (0xFFFFU << ETH_MACIVIR_VLT_Pos) /*!< 0x0000FFFF */
  6614. #define ETH_MACIVIR_VLT ETH_MACIVIR_VLT_Msk /* VLAN Tag for Transmit Packets */
  6615. #define ETH_MACIVIR_VLT_UP_Pos (13U)
  6616. #define ETH_MACIVIR_VLT_UP_Msk (0x7U << ETH_MACIVIR_VLT_UP_Pos) /*!< 0x0000E000 */
  6617. #define ETH_MACIVIR_VLT_UP ETH_MACIVIR_VLT_UP_Msk /* User Priority */
  6618. #define ETH_MACIVIR_VLT_CFIDEI_Pos (12U)
  6619. #define ETH_MACIVIR_VLT_CFIDEI_Msk (0x1U << ETH_MACIVIR_VLT_CFIDEI_Pos) /*!< 0x00001000 */
  6620. #define ETH_MACIVIR_VLT_CFIDEI ETH_MACIVIR_VLT_CFIDEI_Msk /* Canonical Format Indicator or Drop Eligible Indicator */
  6621. #define ETH_MACIVIR_VLT_VID_Pos (0U)
  6622. #define ETH_MACIVIR_VLT_VID_Msk (0xFFFU << ETH_MACIVIR_VLT_VID_Pos) /*!< 0x00000FFF */
  6623. #define ETH_MACIVIR_VLT_VID ETH_MACIVIR_VLT_VID_Msk /* VLAN Identifier field of VLAN tag */
  6624. /* Bit definition for Ethernet MAC Tx Flow Ctrl Register */
  6625. #define ETH_MACTFCR_PT_Pos (16U)
  6626. #define ETH_MACTFCR_PT_Msk (0xFFFFU << ETH_MACTFCR_PT_Pos) /*!< 0xFFFF0000 */
  6627. #define ETH_MACTFCR_PT ETH_MACTFCR_PT_Msk /* Pause Time */
  6628. #define ETH_MACTFCR_DZPQ_Pos (7U)
  6629. #define ETH_MACTFCR_DZPQ_Msk (0x1U << ETH_MACTFCR_DZPQ_Pos) /*!< 0x00000080 */
  6630. #define ETH_MACTFCR_DZPQ ETH_MACTFCR_DZPQ_Msk /* Disable Zero-Quanta Pause */
  6631. #define ETH_MACTFCR_PLT_Pos (4U)
  6632. #define ETH_MACTFCR_PLT_Msk (0x7U << ETH_MACTFCR_PLT_Pos) /*!< 0x00000070 */
  6633. #define ETH_MACTFCR_PLT ETH_MACTFCR_PLT_Msk /* Pause Low Threshold */
  6634. #define ETH_MACTFCR_PLT_MINUS4 ((uint32_t)0x00000000) /* Pause time minus 4 slot times */
  6635. #define ETH_MACTFCR_PLT_MINUS28_Pos (4U)
  6636. #define ETH_MACTFCR_PLT_MINUS28_Msk (0x1U << ETH_MACTFCR_PLT_MINUS28_Pos) /*!< 0x00000010 */
  6637. #define ETH_MACTFCR_PLT_MINUS28 ETH_MACTFCR_PLT_MINUS28_Msk /* Pause time minus 28 slot times */
  6638. #define ETH_MACTFCR_PLT_MINUS36_Pos (5U)
  6639. #define ETH_MACTFCR_PLT_MINUS36_Msk (0x1U << ETH_MACTFCR_PLT_MINUS36_Pos) /*!< 0x00000020 */
  6640. #define ETH_MACTFCR_PLT_MINUS36 ETH_MACTFCR_PLT_MINUS36_Msk /* Pause time minus 36 slot times */
  6641. #define ETH_MACTFCR_PLT_MINUS144_Pos (4U)
  6642. #define ETH_MACTFCR_PLT_MINUS144_Msk (0x3U << ETH_MACTFCR_PLT_MINUS144_Pos) /*!< 0x00000030 */
  6643. #define ETH_MACTFCR_PLT_MINUS144 ETH_MACTFCR_PLT_MINUS144_Msk /* Pause time minus 144 slot times */
  6644. #define ETH_MACTFCR_PLT_MINUS256_Pos (6U)
  6645. #define ETH_MACTFCR_PLT_MINUS256_Msk (0x1U << ETH_MACTFCR_PLT_MINUS256_Pos) /*!< 0x00000040 */
  6646. #define ETH_MACTFCR_PLT_MINUS256 ETH_MACTFCR_PLT_MINUS256_Msk /* Pause time minus 256 slot times */
  6647. #define ETH_MACTFCR_PLT_MINUS512_Pos (4U)
  6648. #define ETH_MACTFCR_PLT_MINUS512_Msk (0x5U << ETH_MACTFCR_PLT_MINUS512_Pos) /*!< 0x00000050 */
  6649. #define ETH_MACTFCR_PLT_MINUS512 ETH_MACTFCR_PLT_MINUS512_Msk /* Pause time minus 512 slot times */
  6650. #define ETH_MACTFCR_TFE_Pos (1U)
  6651. #define ETH_MACTFCR_TFE_Msk (0x1U << ETH_MACTFCR_TFE_Pos) /*!< 0x00000002 */
  6652. #define ETH_MACTFCR_TFE ETH_MACTFCR_TFE_Msk /* Transmit Flow Control Enable */
  6653. #define ETH_MACTFCR_FCB_Pos (0U)
  6654. #define ETH_MACTFCR_FCB_Msk (0x1U << ETH_MACTFCR_FCB_Pos) /*!< 0x00000001 */
  6655. #define ETH_MACTFCR_FCB ETH_MACTFCR_FCB_Msk /* Flow Control Busy or Backpressure Activate */
  6656. /* Bit definition for Ethernet MAC Rx Flow Ctrl Register */
  6657. #define ETH_MACRFCR_UP_Pos (1U)
  6658. #define ETH_MACRFCR_UP_Msk (0x1U << ETH_MACRFCR_UP_Pos) /*!< 0x00000002 */
  6659. #define ETH_MACRFCR_UP ETH_MACRFCR_UP_Msk /* Unicast Pause Packet Detect */
  6660. #define ETH_MACRFCR_RFE_Pos (0U)
  6661. #define ETH_MACRFCR_RFE_Msk (0x1U << ETH_MACRFCR_RFE_Pos) /*!< 0x00000001 */
  6662. #define ETH_MACRFCR_RFE ETH_MACRFCR_RFE_Msk /* Receive Flow Control Enable */
  6663. /* Bit definition for Ethernet MAC Interrupt Status Register */
  6664. #define ETH_MACISR_RXSTSIS_Pos (14U)
  6665. #define ETH_MACISR_RXSTSIS_Msk (0x1U << ETH_MACISR_RXSTSIS_Pos) /*!< 0x00004000 */
  6666. #define ETH_MACISR_RXSTSIS ETH_MACISR_RXSTSIS_Msk /* Receive Status Interrupt */
  6667. #define ETH_MACISR_TXSTSIS_Pos (13U)
  6668. #define ETH_MACISR_TXSTSIS_Msk (0x1U << ETH_MACISR_TXSTSIS_Pos) /*!< 0x00002000 */
  6669. #define ETH_MACISR_TXSTSIS ETH_MACISR_TXSTSIS_Msk /* Transmit Status Interrupt */
  6670. #define ETH_MACISR_TSIS_Pos (12U)
  6671. #define ETH_MACISR_TSIS_Msk (0x1U << ETH_MACISR_TSIS_Pos) /*!< 0x00001000 */
  6672. #define ETH_MACISR_TSIS ETH_MACISR_TSIS_Msk /* Timestamp Interrupt Status */
  6673. #define ETH_MACISR_MMCTXIS_Pos (10U)
  6674. #define ETH_MACISR_MMCTXIS_Msk (0x1U << ETH_MACISR_MMCTXIS_Pos) /*!< 0x00000400 */
  6675. #define ETH_MACISR_MMCTXIS ETH_MACISR_MMCTXIS_Msk /* MMC Transmit Interrupt Status */
  6676. #define ETH_MACISR_MMCRXIS_Pos (9U)
  6677. #define ETH_MACISR_MMCRXIS_Msk (0x1U << ETH_MACISR_MMCRXIS_Pos) /*!< 0x00000200 */
  6678. #define ETH_MACISR_MMCRXIS ETH_MACISR_MMCRXIS_Msk /* MMC Receive Interrupt Status */
  6679. #define ETH_MACISR_MMCIS_Pos (8U)
  6680. #define ETH_MACISR_MMCIS_Msk (0x1U << ETH_MACISR_MMCIS_Pos) /*!< 0x00000100 */
  6681. #define ETH_MACISR_MMCIS ETH_MACISR_MMCIS_Msk /* MMC Interrupt Status */
  6682. #define ETH_MACISR_LPIIS_Pos (5U)
  6683. #define ETH_MACISR_LPIIS_Msk (0x1U << ETH_MACISR_LPIIS_Pos) /*!< 0x00000020 */
  6684. #define ETH_MACISR_LPIIS ETH_MACISR_LPIIS_Msk /* LPI Interrupt Status */
  6685. #define ETH_MACISR_PMTIS_Pos (4U)
  6686. #define ETH_MACISR_PMTIS_Msk (0x1U << ETH_MACISR_PMTIS_Pos) /*!< 0x00000010 */
  6687. #define ETH_MACISR_PMTIS ETH_MACISR_PMTIS_Msk /* PMT Interrupt Status */
  6688. #define ETH_MACISR_PHYIS_Pos (3U)
  6689. #define ETH_MACISR_PHYIS_Msk (0x1U << ETH_MACISR_PHYIS_Pos) /*!< 0x00000008 */
  6690. #define ETH_MACISR_PHYIS ETH_MACISR_PHYIS_Msk /* PHY Interrupt */
  6691. /* Bit definition for Ethernet MAC Interrupt Enable Register */
  6692. #define ETH_MACIER_RXSTSIE_Pos (14U)
  6693. #define ETH_MACIER_RXSTSIE_Msk (0x1U << ETH_MACIER_RXSTSIE_Pos) /*!< 0x00004000 */
  6694. #define ETH_MACIER_RXSTSIE ETH_MACIER_RXSTSIE_Msk /* Receive Status Interrupt Enable */
  6695. #define ETH_MACIER_TXSTSIE_Pos (13U)
  6696. #define ETH_MACIER_TXSTSIE_Msk (0x1U << ETH_MACIER_TXSTSIE_Pos) /*!< 0x00002000 */
  6697. #define ETH_MACIER_TXSTSIE ETH_MACIER_TXSTSIE_Msk /* Transmit Status Interrupt Enable */
  6698. #define ETH_MACIER_TSIE_Pos (12U)
  6699. #define ETH_MACIER_TSIE_Msk (0x1U << ETH_MACIER_TSIE_Pos) /*!< 0x00001000 */
  6700. #define ETH_MACIER_TSIE ETH_MACIER_TSIE_Msk /* Timestamp Interrupt Enable */
  6701. #define ETH_MACIER_LPIIE_Pos (5U)
  6702. #define ETH_MACIER_LPIIE_Msk (0x1U << ETH_MACIER_LPIIE_Pos) /*!< 0x00000020 */
  6703. #define ETH_MACIER_LPIIE ETH_MACIER_LPIIE_Msk /* LPI Interrupt Enable */
  6704. #define ETH_MACIER_PMTIE_Pos (4U)
  6705. #define ETH_MACIER_PMTIE_Msk (0x1U << ETH_MACIER_PMTIE_Pos) /*!< 0x00000010 */
  6706. #define ETH_MACIER_PMTIE ETH_MACIER_PMTIE_Msk /* PMT Interrupt Enable */
  6707. #define ETH_MACIER_PHYIE_Pos (3U)
  6708. #define ETH_MACIER_PHYIE_Msk (0x1U << ETH_MACIER_PHYIE_Pos) /*!< 0x00000008 */
  6709. #define ETH_MACIER_PHYIE ETH_MACIER_PHYIE_Msk /* PHY Interrupt Enable */
  6710. /* Bit definition for Ethernet MAC Rx Tx Status Register */
  6711. #define ETH_MACRXTXSR_RWT_Pos (8U)
  6712. #define ETH_MACRXTXSR_RWT_Msk (0x1U << ETH_MACRXTXSR_RWT_Pos) /*!< 0x00000100 */
  6713. #define ETH_MACRXTXSR_RWT ETH_MACRXTXSR_RWT_Msk /* Receive Watchdog Timeout */
  6714. #define ETH_MACRXTXSR_EXCOL_Pos (5U)
  6715. #define ETH_MACRXTXSR_EXCOL_Msk (0x1U << ETH_MACRXTXSR_EXCOL_Pos) /*!< 0x00000020 */
  6716. #define ETH_MACRXTXSR_EXCOL ETH_MACRXTXSR_EXCOL_Msk /* Excessive Collisions */
  6717. #define ETH_MACRXTXSR_LCOL_Pos (4U)
  6718. #define ETH_MACRXTXSR_LCOL_Msk (0x1U << ETH_MACRXTXSR_LCOL_Pos) /*!< 0x00000010 */
  6719. #define ETH_MACRXTXSR_LCOL ETH_MACRXTXSR_LCOL_Msk /* Late Collision */
  6720. #define ETH_MACRXTXSR_EXDEF_Pos (3U)
  6721. #define ETH_MACRXTXSR_EXDEF_Msk (0x1U << ETH_MACRXTXSR_EXDEF_Pos) /*!< 0x00000008 */
  6722. #define ETH_MACRXTXSR_EXDEF ETH_MACRXTXSR_EXDEF_Msk /* Excessive Deferral */
  6723. #define ETH_MACRXTXSR_LCARR_Pos (2U)
  6724. #define ETH_MACRXTXSR_LCARR_Msk (0x1U << ETH_MACRXTXSR_LCARR_Pos) /*!< 0x00000004 */
  6725. #define ETH_MACRXTXSR_LCARR ETH_MACRXTXSR_LCARR_Msk /* Loss of Carrier */
  6726. #define ETH_MACRXTXSR_NCARR_Pos (1U)
  6727. #define ETH_MACRXTXSR_NCARR_Msk (0x1U << ETH_MACRXTXSR_NCARR_Pos) /*!< 0x00000002 */
  6728. #define ETH_MACRXTXSR_NCARR ETH_MACRXTXSR_NCARR_Msk /* No Carrier */
  6729. #define ETH_MACRXTXSR_TJT_Pos (0U)
  6730. #define ETH_MACRXTXSR_TJT_Msk (0x1U << ETH_MACRXTXSR_TJT_Pos) /*!< 0x00000001 */
  6731. #define ETH_MACRXTXSR_TJT ETH_MACRXTXSR_TJT_Msk /* Transmit Jabber Timeout */
  6732. /* Bit definition for Ethernet MAC PMT Control Status Register */
  6733. #define ETH_MACPCSR_RWKFILTRST_Pos (31U)
  6734. #define ETH_MACPCSR_RWKFILTRST_Msk (0x1U << ETH_MACPCSR_RWKFILTRST_Pos) /*!< 0x80000000 */
  6735. #define ETH_MACPCSR_RWKFILTRST ETH_MACPCSR_RWKFILTRST_Msk /* Remote Wake-Up Packet Filter Register Pointer Reset */
  6736. #define ETH_MACPCSR_RWKPTR_Pos (24U)
  6737. #define ETH_MACPCSR_RWKPTR_Msk (0x1FU << ETH_MACPCSR_RWKPTR_Pos) /*!< 0x1F000000 */
  6738. #define ETH_MACPCSR_RWKPTR ETH_MACPCSR_RWKPTR_Msk /* Remote Wake-up FIFO Pointer */
  6739. #define ETH_MACPCSR_RWKPFE_Pos (10U)
  6740. #define ETH_MACPCSR_RWKPFE_Msk (0x1U << ETH_MACPCSR_RWKPFE_Pos) /*!< 0x00000400 */
  6741. #define ETH_MACPCSR_RWKPFE ETH_MACPCSR_RWKPFE_Msk /* Remote Wake-up Packet Forwarding Enable */
  6742. #define ETH_MACPCSR_GLBLUCAST_Pos (9U)
  6743. #define ETH_MACPCSR_GLBLUCAST_Msk (0x1U << ETH_MACPCSR_GLBLUCAST_Pos) /*!< 0x00000200 */
  6744. #define ETH_MACPCSR_GLBLUCAST ETH_MACPCSR_GLBLUCAST_Msk /* Global Unicast */
  6745. #define ETH_MACPCSR_RWKPRCVD_Pos (6U)
  6746. #define ETH_MACPCSR_RWKPRCVD_Msk (0x1U << ETH_MACPCSR_RWKPRCVD_Pos) /*!< 0x00000040 */
  6747. #define ETH_MACPCSR_RWKPRCVD ETH_MACPCSR_RWKPRCVD_Msk /* Remote Wake-Up Packet Received */
  6748. #define ETH_MACPCSR_MGKPRCVD_Pos (5U)
  6749. #define ETH_MACPCSR_MGKPRCVD_Msk (0x1U << ETH_MACPCSR_MGKPRCVD_Pos) /*!< 0x00000020 */
  6750. #define ETH_MACPCSR_MGKPRCVD ETH_MACPCSR_MGKPRCVD_Msk /* Magic Packet Received */
  6751. #define ETH_MACPCSR_RWKPKTEN_Pos (2U)
  6752. #define ETH_MACPCSR_RWKPKTEN_Msk (0x1U << ETH_MACPCSR_RWKPKTEN_Pos) /*!< 0x00000004 */
  6753. #define ETH_MACPCSR_RWKPKTEN ETH_MACPCSR_RWKPKTEN_Msk /* Remote Wake-Up Packet Enable */
  6754. #define ETH_MACPCSR_MGKPKTEN_Pos (1U)
  6755. #define ETH_MACPCSR_MGKPKTEN_Msk (0x1U << ETH_MACPCSR_MGKPKTEN_Pos) /*!< 0x00000002 */
  6756. #define ETH_MACPCSR_MGKPKTEN ETH_MACPCSR_MGKPKTEN_Msk /* Magic Packet Enable */
  6757. #define ETH_MACPCSR_PWRDWN_Pos (0U)
  6758. #define ETH_MACPCSR_PWRDWN_Msk (0x1U << ETH_MACPCSR_PWRDWN_Pos) /*!< 0x00000001 */
  6759. #define ETH_MACPCSR_PWRDWN ETH_MACPCSR_PWRDWN_Msk /* Power Down */
  6760. /* Bit definition for Ethernet MAC Remote Wake-Up Packet Filter Register */
  6761. #define ETH_MACRWUPFR_D_Pos (0U)
  6762. #define ETH_MACRWUPFR_D_Msk (0xFFFFFFFFU << ETH_MACRWUPFR_D_Pos) /*!< 0xFFFFFFFF */
  6763. #define ETH_MACRWUPFR_D ETH_MACRWUPFR_D_Msk /* Wake-up Packet filter register data */
  6764. /* Bit definition for Ethernet MAC LPI Control Status Register */
  6765. #define ETH_MACLCSR_LPITCSE_Pos (21U)
  6766. #define ETH_MACLCSR_LPITCSE_Msk (0x1U << ETH_MACLCSR_LPITCSE_Pos) /*!< 0x00200000 */
  6767. #define ETH_MACLCSR_LPITCSE ETH_MACLCSR_LPITCSE_Msk /* LPI Tx Clock Stop Enable */
  6768. #define ETH_MACLCSR_LPITE_Pos (20U)
  6769. #define ETH_MACLCSR_LPITE_Msk (0x1U << ETH_MACLCSR_LPITE_Pos) /*!< 0x00100000 */
  6770. #define ETH_MACLCSR_LPITE ETH_MACLCSR_LPITE_Msk /* LPI Timer Enable */
  6771. #define ETH_MACLCSR_LPITXA_Pos (19U)
  6772. #define ETH_MACLCSR_LPITXA_Msk (0x1U << ETH_MACLCSR_LPITXA_Pos) /*!< 0x00080000 */
  6773. #define ETH_MACLCSR_LPITXA ETH_MACLCSR_LPITXA_Msk /* LPI Tx Automate */
  6774. #define ETH_MACLCSR_PLS_Pos (17U)
  6775. #define ETH_MACLCSR_PLS_Msk (0x1U << ETH_MACLCSR_PLS_Pos) /*!< 0x00020000 */
  6776. #define ETH_MACLCSR_PLS ETH_MACLCSR_PLS_Msk /* PHY Link Status */
  6777. #define ETH_MACLCSR_LPIEN_Pos (16U)
  6778. #define ETH_MACLCSR_LPIEN_Msk (0x1U << ETH_MACLCSR_LPIEN_Pos) /*!< 0x00010000 */
  6779. #define ETH_MACLCSR_LPIEN ETH_MACLCSR_LPIEN_Msk /* LPI Enable */
  6780. #define ETH_MACLCSR_RLPIST_Pos (9U)
  6781. #define ETH_MACLCSR_RLPIST_Msk (0x1U << ETH_MACLCSR_RLPIST_Pos) /*!< 0x00000200 */
  6782. #define ETH_MACLCSR_RLPIST ETH_MACLCSR_RLPIST_Msk /* Receive LPI State */
  6783. #define ETH_MACLCSR_TLPIST_Pos (8U)
  6784. #define ETH_MACLCSR_TLPIST_Msk (0x1U << ETH_MACLCSR_TLPIST_Pos) /*!< 0x00000100 */
  6785. #define ETH_MACLCSR_TLPIST ETH_MACLCSR_TLPIST_Msk /* Transmit LPI State */
  6786. #define ETH_MACLCSR_RLPIEX_Pos (3U)
  6787. #define ETH_MACLCSR_RLPIEX_Msk (0x1U << ETH_MACLCSR_RLPIEX_Pos) /*!< 0x00000008 */
  6788. #define ETH_MACLCSR_RLPIEX ETH_MACLCSR_RLPIEX_Msk /* Receive LPI Exit */
  6789. #define ETH_MACLCSR_RLPIEN_Pos (2U)
  6790. #define ETH_MACLCSR_RLPIEN_Msk (0x1U << ETH_MACLCSR_RLPIEN_Pos) /*!< 0x00000004 */
  6791. #define ETH_MACLCSR_RLPIEN ETH_MACLCSR_RLPIEN_Msk /* Receive LPI Entry */
  6792. #define ETH_MACLCSR_TLPIEX_Pos (1U)
  6793. #define ETH_MACLCSR_TLPIEX_Msk (0x1U << ETH_MACLCSR_TLPIEX_Pos) /*!< 0x00000002 */
  6794. #define ETH_MACLCSR_TLPIEX ETH_MACLCSR_TLPIEX_Msk /* Transmit LPI Exit */
  6795. #define ETH_MACLCSR_TLPIEN_Pos (0U)
  6796. #define ETH_MACLCSR_TLPIEN_Msk (0x1U << ETH_MACLCSR_TLPIEN_Pos) /*!< 0x00000001 */
  6797. #define ETH_MACLCSR_TLPIEN ETH_MACLCSR_TLPIEN_Msk /* Transmit LPI Entry */
  6798. /* Bit definition for Ethernet MAC LPI Timers Control Register */
  6799. #define ETH_MACLTCR_LST_Pos (16U)
  6800. #define ETH_MACLTCR_LST_Msk (0x3FFU << ETH_MACLTCR_LST_Pos) /*!< 0x03FF0000 */
  6801. #define ETH_MACLTCR_LST ETH_MACLTCR_LST_Msk /* LPI LS TIMER */
  6802. #define ETH_MACLTCR_TWT_Pos (0U)
  6803. #define ETH_MACLTCR_TWT_Msk (0xFFFFU << ETH_MACLTCR_TWT_Pos) /*!< 0x0000FFFF */
  6804. #define ETH_MACLTCR_TWT ETH_MACLTCR_TWT_Msk /* LPI TW TIMER */
  6805. /* Bit definition for Ethernet MAC LPI Entry Timer Register */
  6806. #define ETH_MACLETR_LPIET_Pos (0U)
  6807. #define ETH_MACLETR_LPIET_Msk (0xFFFFFU << ETH_MACLETR_LPIET_Pos) /*!< 0x000FFFFF */
  6808. #define ETH_MACLETR_LPIET ETH_MACLETR_LPIET_Msk /* LPI Entry Timer */
  6809. /* Bit definition for Ethernet MAC 1US Tic Counter Register */
  6810. #define ETH_MAC1USTCR_TIC1USCNTR_Pos (0U)
  6811. #define ETH_MAC1USTCR_TIC1USCNTR_Msk (0xFFFU << ETH_MAC1USTCR_TIC1USCNTR_Pos) /*!< 0x00000FFF */
  6812. #define ETH_MAC1USTCR_TIC1USCNTR ETH_MAC1USTCR_TIC1USCNTR_Msk /* 1US TIC Counter */
  6813. /* Bit definition for Ethernet MAC Version Register */
  6814. #define ETH_MACVR_USERVER_Pos (8U)
  6815. #define ETH_MACVR_USERVER_Msk (0xFFU << ETH_MACVR_USERVER_Pos) /*!< 0x0000FF00 */
  6816. #define ETH_MACVR_USERVER ETH_MACVR_USERVER_Msk /* User-defined Version */
  6817. #define ETH_MACVR_SNPSVER_Pos (0U)
  6818. #define ETH_MACVR_SNPSVER_Msk (0xFFU << ETH_MACVR_SNPSVER_Pos) /*!< 0x000000FF */
  6819. #define ETH_MACVR_SNPSVER ETH_MACVR_SNPSVER_Msk /* Synopsys-defined Version */
  6820. /* Bit definition for Ethernet MAC Debug Register */
  6821. #define ETH_MACDR_TFCSTS_Pos (17U)
  6822. #define ETH_MACDR_TFCSTS_Msk (0x3U << ETH_MACDR_TFCSTS_Pos) /*!< 0x00060000 */
  6823. #define ETH_MACDR_TFCSTS ETH_MACDR_TFCSTS_Msk /* MAC Transmit Packet Controller Status */
  6824. #define ETH_MACDR_TFCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  6825. #define ETH_MACDR_TFCSTS_WAIT_Pos (17U)
  6826. #define ETH_MACDR_TFCSTS_WAIT_Msk (0x1U << ETH_MACDR_TFCSTS_WAIT_Pos) /*!< 0x00020000 */
  6827. #define ETH_MACDR_TFCSTS_WAIT ETH_MACDR_TFCSTS_WAIT_Msk /* Waiting for status of the previous packet, IPG or backoff period to be over */
  6828. #define ETH_MACDR_TFCSTS_GENERATEPCP_Pos (18U)
  6829. #define ETH_MACDR_TFCSTS_GENERATEPCP_Msk (0x1U << ETH_MACDR_TFCSTS_GENERATEPCP_Pos) /*!< 0x00040000 */
  6830. #define ETH_MACDR_TFCSTS_GENERATEPCP ETH_MACDR_TFCSTS_GENERATEPCP_Msk /* Generating and transmitting a Pause control packet */
  6831. #define ETH_MACDR_TFCSTS_TRASFERIP_Pos (17U)
  6832. #define ETH_MACDR_TFCSTS_TRASFERIP_Msk (0x3U << ETH_MACDR_TFCSTS_TRASFERIP_Pos) /*!< 0x00060000 */
  6833. #define ETH_MACDR_TFCSTS_TRASFERIP ETH_MACDR_TFCSTS_TRASFERIP_Msk /* Transferring input packet for transmission */
  6834. #define ETH_MACDR_TPESTS_Pos (16U)
  6835. #define ETH_MACDR_TPESTS_Msk (0x1U << ETH_MACDR_TPESTS_Pos) /*!< 0x00010000 */
  6836. #define ETH_MACDR_TPESTS ETH_MACDR_TPESTS_Msk /* MAC Receive Packet Controller FIFO Status */
  6837. #define ETH_MACDR_RFCFCSTS_Pos (1U)
  6838. #define ETH_MACDR_RFCFCSTS_Msk (0x3U << ETH_MACDR_RFCFCSTS_Pos) /*!< 0x00000006 */
  6839. #define ETH_MACDR_RFCFCSTS ETH_MACDR_RFCFCSTS_Msk /* MAC MII Transmit Protocol Engine Status */
  6840. #define ETH_MACDR_RPESTS_Pos (0U)
  6841. #define ETH_MACDR_RPESTS_Msk (0x1U << ETH_MACDR_RPESTS_Pos) /*!< 0x00000001 */
  6842. #define ETH_MACDR_RPESTS ETH_MACDR_RPESTS_Msk /* MAC MII Receive Protocol Engine Status */
  6843. /* Bit definition for Ethernet MAC HW Feature0 Register */
  6844. #define ETH_MACHWF0R_ACTPHYSEL_Pos (28U)
  6845. #define ETH_MACHWF0R_ACTPHYSEL_Msk (0x7U << ETH_MACHWF0R_ACTPHYSEL_Pos) /*!< 0x70000000 */
  6846. #define ETH_MACHWF0R_ACTPHYSEL ETH_MACHWF0R_ACTPHYSEL_Msk /* Active PHY Selected */
  6847. #define ETH_MACHWF0R_ACTPHYSEL_MII ((uint32_t)0x00000000) /* MII */
  6848. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Pos (30U)
  6849. #define ETH_MACHWF0R_ACTPHYSEL_RMII_Msk (0x1U << ETH_MACHWF0R_ACTPHYSEL_RMII_Pos) /*!< 0x40000000 */
  6850. #define ETH_MACHWF0R_ACTPHYSEL_RMII ETH_MACHWF0R_ACTPHYSEL_RMII_Msk /* RMII */
  6851. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos (28U)
  6852. #define ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk (0x7U << ETH_MACHWF0R_ACTPHYSEL_REVMII_Pos) /*!< 0x70000000 */
  6853. #define ETH_MACHWF0R_ACTPHYSEL_REVMII ETH_MACHWF0R_ACTPHYSEL_REVMII_Msk /* RevMII */
  6854. #define ETH_MACHWF0R_SAVLANINS_Pos (27U)
  6855. #define ETH_MACHWF0R_SAVLANINS_Msk (0x1U << ETH_MACHWF0R_SAVLANINS_Pos) /*!< 0x08000000 */
  6856. #define ETH_MACHWF0R_SAVLANINS ETH_MACHWF0R_SAVLANINS_Msk /* Source Address or VLAN Insertion Enable */
  6857. #define ETH_MACHWF0R_TSSTSSEL_Pos (25U)
  6858. #define ETH_MACHWF0R_TSSTSSEL_Msk (0x3U << ETH_MACHWF0R_TSSTSSEL_Pos) /*!< 0x06000000 */
  6859. #define ETH_MACHWF0R_TSSTSSEL ETH_MACHWF0R_TSSTSSEL_Msk /* Timestamp System Time Source */
  6860. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos (25U)
  6861. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk (0x1U << ETH_MACHWF0R_TSSTSSEL_INTERNAL_Pos) /*!< 0x02000000 */
  6862. #define ETH_MACHWF0R_TSSTSSEL_INTERNAL ETH_MACHWF0R_TSSTSSEL_INTERNAL_Msk /* Timestamp System Time Source: Internal */
  6863. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos (26U)
  6864. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk (0x1U << ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Pos) /*!< 0x04000000 */
  6865. #define ETH_MACHWF0R_TSSTSSEL_EXTERNAL ETH_MACHWF0R_TSSTSSEL_EXTERNAL_Msk /* Timestamp System Time Source: External */
  6866. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Pos (25U)
  6867. #define ETH_MACHWF0R_TSSTSSEL_BOTH_Msk (0x3U << ETH_MACHWF0R_TSSTSSEL_BOTH_Pos) /*!< 0x06000000 */
  6868. #define ETH_MACHWF0R_TSSTSSEL_BOTH ETH_MACHWF0R_TSSTSSEL_BOTH_Msk /* Timestamp System Time Source: Internal & External */
  6869. #define ETH_MACHWF0R_MACADR64SEL_Pos (24U)
  6870. #define ETH_MACHWF0R_MACADR64SEL_Msk (0x1U << ETH_MACHWF0R_MACADR64SEL_Pos) /*!< 0x01000000 */
  6871. #define ETH_MACHWF0R_MACADR64SEL ETH_MACHWF0R_MACADR64SEL_Msk /* MAC Addresses 64–127 Selected */
  6872. #define ETH_MACHWF0R_MACADR32SEL_Pos (23U)
  6873. #define ETH_MACHWF0R_MACADR32SEL_Msk (0x1U << ETH_MACHWF0R_MACADR32SEL_Pos) /*!< 0x00800000 */
  6874. #define ETH_MACHWF0R_MACADR32SEL ETH_MACHWF0R_MACADR32SEL_Msk /* MAC Addresses 32–63 Selected */
  6875. #define ETH_MACHWF0R_ADDMACADRSEL_Pos (18U)
  6876. #define ETH_MACHWF0R_ADDMACADRSEL_Msk (0x1FU << ETH_MACHWF0R_ADDMACADRSEL_Pos) /*!< 0x007C0000 */
  6877. #define ETH_MACHWF0R_ADDMACADRSEL ETH_MACHWF0R_ADDMACADRSEL_Msk /* MAC Addresses 1– 31 Selected */
  6878. #define ETH_MACHWF0R_RXCOESEL_Pos (16U)
  6879. #define ETH_MACHWF0R_RXCOESEL_Msk (0x1U << ETH_MACHWF0R_RXCOESEL_Pos) /*!< 0x00010000 */
  6880. #define ETH_MACHWF0R_RXCOESEL ETH_MACHWF0R_RXCOESEL_Msk /* Receive Checksum Offload Enabled */
  6881. #define ETH_MACHWF0R_TXCOESEL_Pos (14U)
  6882. #define ETH_MACHWF0R_TXCOESEL_Msk (0x1U << ETH_MACHWF0R_TXCOESEL_Pos) /*!< 0x00004000 */
  6883. #define ETH_MACHWF0R_TXCOESEL ETH_MACHWF0R_TXCOESEL_Msk /* Transmit Checksum Offload Enabled */
  6884. #define ETH_MACHWF0R_EEESEL_Pos (13U)
  6885. #define ETH_MACHWF0R_EEESEL_Msk (0x1U << ETH_MACHWF0R_EEESEL_Pos) /*!< 0x00002000 */
  6886. #define ETH_MACHWF0R_EEESEL ETH_MACHWF0R_EEESEL_Msk /* Energy Efficient Ethernet Enabled */
  6887. #define ETH_MACHWF0R_TSSEL_Pos (12U)
  6888. #define ETH_MACHWF0R_TSSEL_Msk (0x1U << ETH_MACHWF0R_TSSEL_Pos) /*!< 0x00001000 */
  6889. #define ETH_MACHWF0R_TSSEL ETH_MACHWF0R_TSSEL_Msk /* IEEE 1588-2008 Timestamp Enabled */
  6890. #define ETH_MACHWF0R_ARPOFFSEL_Pos (9U)
  6891. #define ETH_MACHWF0R_ARPOFFSEL_Msk (0x1U << ETH_MACHWF0R_ARPOFFSEL_Pos) /*!< 0x00000200 */
  6892. #define ETH_MACHWF0R_ARPOFFSEL ETH_MACHWF0R_ARPOFFSEL_Msk /* ARP Offload Enabled */
  6893. #define ETH_MACHWF0R_MMCSEL_Pos (8U)
  6894. #define ETH_MACHWF0R_MMCSEL_Msk (0x1U << ETH_MACHWF0R_MMCSEL_Pos) /*!< 0x00000100 */
  6895. #define ETH_MACHWF0R_MMCSEL ETH_MACHWF0R_MMCSEL_Msk /* RMON Module Enable */
  6896. #define ETH_MACHWF0R_MGKSEL_Pos (7U)
  6897. #define ETH_MACHWF0R_MGKSEL_Msk (0x1U << ETH_MACHWF0R_MGKSEL_Pos) /*!< 0x00000080 */
  6898. #define ETH_MACHWF0R_MGKSEL ETH_MACHWF0R_MGKSEL_Msk /* PMT Magic Packet Enable */
  6899. #define ETH_MACHWF0R_RWKSEL_Pos (6U)
  6900. #define ETH_MACHWF0R_RWKSEL_Msk (0x1U << ETH_MACHWF0R_RWKSEL_Pos) /*!< 0x00000040 */
  6901. #define ETH_MACHWF0R_RWKSEL ETH_MACHWF0R_RWKSEL_Msk /* PMT Remote Wake-up Packet Enable */
  6902. #define ETH_MACHWF0R_SMASEL_Pos (5U)
  6903. #define ETH_MACHWF0R_SMASEL_Msk (0x1U << ETH_MACHWF0R_SMASEL_Pos) /*!< 0x00000020 */
  6904. #define ETH_MACHWF0R_SMASEL ETH_MACHWF0R_SMASEL_Msk /* SMA (MDIO) Interface */
  6905. #define ETH_MACHWF0R_VLHASH_Pos (4U)
  6906. #define ETH_MACHWF0R_VLHASH_Msk (0x1U << ETH_MACHWF0R_VLHASH_Pos) /*!< 0x00000010 */
  6907. #define ETH_MACHWF0R_VLHASH ETH_MACHWF0R_VLHASH_Msk /* VLAN Hash Filter Selected */
  6908. #define ETH_MACHWF0R_PCSSEL_Pos (3U)
  6909. #define ETH_MACHWF0R_PCSSEL_Msk (0x1U << ETH_MACHWF0R_PCSSEL_Pos) /*!< 0x00000008 */
  6910. #define ETH_MACHWF0R_PCSSEL ETH_MACHWF0R_PCSSEL_Msk /* PCS Registers (TBI, SGMII, or RTBI PHY interface) */
  6911. #define ETH_MACHWF0R_HDSEL_Pos (2U)
  6912. #define ETH_MACHWF0R_HDSEL_Msk (0x1U << ETH_MACHWF0R_HDSEL_Pos) /*!< 0x00000004 */
  6913. #define ETH_MACHWF0R_HDSEL ETH_MACHWF0R_HDSEL_Msk /* Half-duplex Support */
  6914. #define ETH_MACHWF0R_GMIISEL_Pos (1U)
  6915. #define ETH_MACHWF0R_GMIISEL_Msk (0x1U << ETH_MACHWF0R_GMIISEL_Pos) /*!< 0x00000002 */
  6916. #define ETH_MACHWF0R_GMIISEL ETH_MACHWF0R_GMIISEL_Msk /* 1000 Mbps Support */
  6917. #define ETH_MACHWF0R_MIISEL_Pos (0U)
  6918. #define ETH_MACHWF0R_MIISEL_Msk (0x1U << ETH_MACHWF0R_MIISEL_Pos) /*!< 0x00000001 */
  6919. #define ETH_MACHWF0R_MIISEL ETH_MACHWF0R_MIISEL_Msk /* 10 or 100 Mbps Support */
  6920. /* Bit definition for Ethernet MAC HW Feature1 Register */
  6921. #define ETH_MACHWF1R_L3L4FNUM_Pos (27U)
  6922. #define ETH_MACHWF1R_L3L4FNUM_Msk (0xFU << ETH_MACHWF1R_L3L4FNUM_Pos) /*!< 0x78000000 */
  6923. #define ETH_MACHWF1R_L3L4FNUM ETH_MACHWF1R_L3L4FNUM_Msk /* Total number of L3 or L4 Filters */
  6924. #define ETH_MACHWF1R_HASHTBLSZ_Pos (24U)
  6925. #define ETH_MACHWF1R_HASHTBLSZ_Msk (0x3U << ETH_MACHWF1R_HASHTBLSZ_Pos) /*!< 0x03000000 */
  6926. #define ETH_MACHWF1R_HASHTBLSZ ETH_MACHWF1R_HASHTBLSZ_Msk /* Hash Table Size */
  6927. #define ETH_MACHWF1R_AVSEL_Pos (20U)
  6928. #define ETH_MACHWF1R_AVSEL_Msk (0x1U << ETH_MACHWF1R_AVSEL_Pos) /*!< 0x00100000 */
  6929. #define ETH_MACHWF1R_AVSEL ETH_MACHWF1R_AVSEL_Msk /* AV Feature Enabled */
  6930. #define ETH_MACHWF1R_DBGMEMA_Pos (19U)
  6931. #define ETH_MACHWF1R_DBGMEMA_Msk (0x1U << ETH_MACHWF1R_DBGMEMA_Pos) /*!< 0x00080000 */
  6932. #define ETH_MACHWF1R_DBGMEMA ETH_MACHWF1R_DBGMEMA_Msk /* Debug Memory Interface Enabled */
  6933. #define ETH_MACHWF1R_TSOEN_Pos (18U)
  6934. #define ETH_MACHWF1R_TSOEN_Msk (0x1U << ETH_MACHWF1R_TSOEN_Pos) /*!< 0x00040000 */
  6935. #define ETH_MACHWF1R_TSOEN ETH_MACHWF1R_TSOEN_Msk /* TCP Segmentation Offload Enable */
  6936. #define ETH_MACHWF1R_SPHEN_Pos (17U)
  6937. #define ETH_MACHWF1R_SPHEN_Msk (0x1U << ETH_MACHWF1R_SPHEN_Pos) /*!< 0x00020000 */
  6938. #define ETH_MACHWF1R_SPHEN ETH_MACHWF1R_SPHEN_Msk /* Split Header Feature Enable */
  6939. #define ETH_MACHWF1R_DCBEN_Pos (16U)
  6940. #define ETH_MACHWF1R_DCBEN_Msk (0x1U << ETH_MACHWF1R_DCBEN_Pos) /*!< 0x00010000 */
  6941. #define ETH_MACHWF1R_DCBEN ETH_MACHWF1R_DCBEN_Msk /* DCB Feature Enable */
  6942. #define ETH_MACHWF1R_ADDR64_Pos (14U)
  6943. #define ETH_MACHWF1R_ADDR64_Msk (0x3U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x0000C000 */
  6944. #define ETH_MACHWF1R_ADDR64 ETH_MACHWF1R_ADDR64_Msk /* Address Width */
  6945. #define ETH_MACHWF1R_ADDR64_32 (0x0U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00000000 */
  6946. #define ETH_MACHWF1R_ADDR64_40 (0x1U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00004000 */
  6947. #define ETH_MACHWF1R_ADDR64_48 (0x2U << ETH_MACHWF1R_ADDR64_Pos) /*!< 0x00008000 */
  6948. #define ETH_MACHWF1R_ADVTHWORD_Pos (13U)
  6949. #define ETH_MACHWF1R_ADVTHWORD_Msk (0x1U << ETH_MACHWF1R_ADVTHWORD_Pos) /*!< 0x00002000 */
  6950. #define ETH_MACHWF1R_ADVTHWORD ETH_MACHWF1R_ADVTHWORD_Msk /* IEEE 1588 High Word Register Enable */
  6951. #define ETH_MACHWF1R_PTOEN_Pos (12U)
  6952. #define ETH_MACHWF1R_PTOEN_Msk (0x1U << ETH_MACHWF1R_PTOEN_Pos) /*!< 0x00001000 */
  6953. #define ETH_MACHWF1R_PTOEN ETH_MACHWF1R_PTOEN_Msk /* PTP Offload Enable */
  6954. #define ETH_MACHWF1R_OSTEN_Pos (11U)
  6955. #define ETH_MACHWF1R_OSTEN_Msk (0x1U << ETH_MACHWF1R_OSTEN_Pos) /*!< 0x00000800 */
  6956. #define ETH_MACHWF1R_OSTEN ETH_MACHWF1R_OSTEN_Msk /* One-Step Timestamping Enable */
  6957. #define ETH_MACHWF1R_TXFIFOSIZE_Pos (6U)
  6958. #define ETH_MACHWF1R_TXFIFOSIZE_Msk (0x1FU << ETH_MACHWF1R_TXFIFOSIZE_Pos) /*!< 0x000007C0 */
  6959. #define ETH_MACHWF1R_TXFIFOSIZE ETH_MACHWF1R_TXFIFOSIZE_Msk /* MTL Transmit FIFO Size */
  6960. #define ETH_MACHWF1R_RXFIFOSIZE_Pos (0U)
  6961. #define ETH_MACHWF1R_RXFIFOSIZE_Msk (0x1FU << ETH_MACHWF1R_RXFIFOSIZE_Pos) /*!< 0x0000001F */
  6962. #define ETH_MACHWF1R_RXFIFOSIZE ETH_MACHWF1R_RXFIFOSIZE_Msk /* MTL Receive FIFO Size */
  6963. /* Bit definition for Ethernet MAC HW Feature2 Register */
  6964. #define ETH_MACHWF2R_AUXSNAPNUM_Pos (28U)
  6965. #define ETH_MACHWF2R_AUXSNAPNUM_Msk (0x7U << ETH_MACHWF2R_AUXSNAPNUM_Pos) /*!< 0x70000000 */
  6966. #define ETH_MACHWF2R_AUXSNAPNUM ETH_MACHWF2R_AUXSNAPNUM_Msk /* Number of Auxiliary Snapshot Inputs */
  6967. #define ETH_MACHWF2R_PPSOUTNUM_Pos (24U)
  6968. #define ETH_MACHWF2R_PPSOUTNUM_Msk (0x7U << ETH_MACHWF2R_PPSOUTNUM_Pos) /*!< 0x07000000 */
  6969. #define ETH_MACHWF2R_PPSOUTNUM ETH_MACHWF2R_PPSOUTNUM_Msk /* Number of PPS Outputs */
  6970. #define ETH_MACHWF2R_TXCHCNT_Pos (18U)
  6971. #define ETH_MACHWF2R_TXCHCNT_Msk (0xFU << ETH_MACHWF2R_TXCHCNT_Pos) /*!< 0x003C0000 */
  6972. #define ETH_MACHWF2R_TXCHCNT ETH_MACHWF2R_TXCHCNT_Msk /* Number of DMA Transmit Channels */
  6973. #define ETH_MACHWF2R_RXCHCNT_Pos (13U)
  6974. #define ETH_MACHWF2R_RXCHCNT_Msk (0x7U << ETH_MACHWF2R_RXCHCNT_Pos) /*!< 0x0000E000 */
  6975. #define ETH_MACHWF2R_RXCHCNT ETH_MACHWF2R_RXCHCNT_Msk /* Number of DMA Receive Channels */
  6976. #define ETH_MACHWF2R_TXQCNT_Pos (6U)
  6977. #define ETH_MACHWF2R_TXQCNT_Msk (0xFU << ETH_MACHWF2R_TXQCNT_Pos) /*!< 0x000003C0 */
  6978. #define ETH_MACHWF2R_TXQCNT ETH_MACHWF2R_TXQCNT_Msk /* Number of MTL Transmit Queues */
  6979. #define ETH_MACHWF2R_RXQCNT_Pos (0U)
  6980. #define ETH_MACHWF2R_RXQCNT_Msk (0xFU << ETH_MACHWF2R_RXQCNT_Pos) /*!< 0x0000000F */
  6981. #define ETH_MACHWF2R_RXQCNT ETH_MACHWF2R_RXQCNT_Msk /* Number of MTL Receive Queues */
  6982. /* Bit definition for Ethernet MAC MDIO Address Register */
  6983. #define ETH_MACMDIOAR_PSE_Pos (27U)
  6984. #define ETH_MACMDIOAR_PSE_Msk (0x1U << ETH_MACMDIOAR_PSE_Pos) /*!< 0x08000000 */
  6985. #define ETH_MACMDIOAR_PSE ETH_MACMDIOAR_PSE_Msk /* Preamble Suppression Enable */
  6986. #define ETH_MACMDIOAR_BTB_Pos (26U)
  6987. #define ETH_MACMDIOAR_BTB_Msk (0x1U << ETH_MACMDIOAR_BTB_Pos) /*!< 0x04000000 */
  6988. #define ETH_MACMDIOAR_BTB ETH_MACMDIOAR_BTB_Msk /* Back to Back transactions */
  6989. #define ETH_MACMDIOAR_PA_Pos (21U)
  6990. #define ETH_MACMDIOAR_PA_Msk (0x1FU << ETH_MACMDIOAR_PA_Pos) /*!< 0x03E00000 */
  6991. #define ETH_MACMDIOAR_PA ETH_MACMDIOAR_PA_Msk /* Physical Layer Address */
  6992. #define ETH_MACMDIOAR_RDA_Pos (16U)
  6993. #define ETH_MACMDIOAR_RDA_Msk (0x1FU << ETH_MACMDIOAR_RDA_Pos) /*!< 0x001F0000 */
  6994. #define ETH_MACMDIOAR_RDA ETH_MACMDIOAR_RDA_Msk /* Register/Device Address */
  6995. #define ETH_MACMDIOAR_NTC_Pos (12U)
  6996. #define ETH_MACMDIOAR_NTC_Msk (0x7U << ETH_MACMDIOAR_NTC_Pos) /*!< 0x00007000 */
  6997. #define ETH_MACMDIOAR_NTC ETH_MACMDIOAR_NTC_Msk /* Number of Trailing Clocks */
  6998. #define ETH_MACMDIOAR_CR_Pos (8U)
  6999. #define ETH_MACMDIOAR_CR_Msk (0xFU << ETH_MACMDIOAR_CR_Pos) /*!< 0x00000F00 */
  7000. #define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_Msk /* CSR Clock Range */
  7001. #define ETH_MACMDIOAR_CR_DIV42 ((uint32_t)0x00000000) /* CSR clock/42 */
  7002. #define ETH_MACMDIOAR_CR_DIV62_Pos (8U)
  7003. #define ETH_MACMDIOAR_CR_DIV62_Msk (0x1U << ETH_MACMDIOAR_CR_DIV62_Pos) /*!< 0x00000100 */
  7004. #define ETH_MACMDIOAR_CR_DIV62 ETH_MACMDIOAR_CR_DIV62_Msk /* CSR clock/62 */
  7005. #define ETH_MACMDIOAR_CR_DIV16_Pos (9U)
  7006. #define ETH_MACMDIOAR_CR_DIV16_Msk (0x1U << ETH_MACMDIOAR_CR_DIV16_Pos) /*!< 0x00000200 */
  7007. #define ETH_MACMDIOAR_CR_DIV16 ETH_MACMDIOAR_CR_DIV16_Msk /* CSR clock/16 */
  7008. #define ETH_MACMDIOAR_CR_DIV26_Pos (8U)
  7009. #define ETH_MACMDIOAR_CR_DIV26_Msk (0x3U << ETH_MACMDIOAR_CR_DIV26_Pos) /*!< 0x00000300 */
  7010. #define ETH_MACMDIOAR_CR_DIV26 ETH_MACMDIOAR_CR_DIV26_Msk /* CSR clock/26 */
  7011. #define ETH_MACMDIOAR_CR_DIV102_Pos (10U)
  7012. #define ETH_MACMDIOAR_CR_DIV102_Msk (0x1U << ETH_MACMDIOAR_CR_DIV102_Pos) /*!< 0x00000400 */
  7013. #define ETH_MACMDIOAR_CR_DIV102 ETH_MACMDIOAR_CR_DIV102_Msk /* CSR clock/102 */
  7014. #define ETH_MACMDIOAR_CR_DIV124_Pos (8U)
  7015. #define ETH_MACMDIOAR_CR_DIV124_Msk (0x5U << ETH_MACMDIOAR_CR_DIV124_Pos) /*!< 0x00000500 */
  7016. #define ETH_MACMDIOAR_CR_DIV124 ETH_MACMDIOAR_CR_DIV124_Msk /* CSR clock/124 */
  7017. #define ETH_MACMDIOAR_CR_DIV4AR_Pos (11U)
  7018. #define ETH_MACMDIOAR_CR_DIV4AR_Msk (0x1U << ETH_MACMDIOAR_CR_DIV4AR_Pos) /*!< 0x00000800 */
  7019. #define ETH_MACMDIOAR_CR_DIV4AR ETH_MACMDIOAR_CR_DIV4AR_Msk /* CSR clock/4: MDC clock above range specified in IEEE */
  7020. #define ETH_MACMDIOAR_CR_DIV6AR_Pos (8U)
  7021. #define ETH_MACMDIOAR_CR_DIV6AR_Msk (0x9U << ETH_MACMDIOAR_CR_DIV6AR_Pos) /*!< 0x00000900 */
  7022. #define ETH_MACMDIOAR_CR_DIV6AR ETH_MACMDIOAR_CR_DIV6AR_Msk /* CSR clock/6: MDC clock above range specified in IEEE */
  7023. #define ETH_MACMDIOAR_CR_DIV8AR_Pos (9U)
  7024. #define ETH_MACMDIOAR_CR_DIV8AR_Msk (0x5U << ETH_MACMDIOAR_CR_DIV8AR_Pos) /*!< 0x00000A00 */
  7025. #define ETH_MACMDIOAR_CR_DIV8AR ETH_MACMDIOAR_CR_DIV8AR_Msk /* CSR clock/8: MDC clock above range specified in IEEE */
  7026. #define ETH_MACMDIOAR_CR_DIV10AR_Pos (8U)
  7027. #define ETH_MACMDIOAR_CR_DIV10AR_Msk (0xBU << ETH_MACMDIOAR_CR_DIV10AR_Pos) /*!< 0x00000B00 */
  7028. #define ETH_MACMDIOAR_CR_DIV10AR ETH_MACMDIOAR_CR_DIV10AR_Msk /* CSR clock/10: MDC clock above range specified in IEEE */
  7029. #define ETH_MACMDIOAR_CR_DIV12AR_Pos (10U)
  7030. #define ETH_MACMDIOAR_CR_DIV12AR_Msk (0x3U << ETH_MACMDIOAR_CR_DIV12AR_Pos) /*!< 0x00000C00 */
  7031. #define ETH_MACMDIOAR_CR_DIV12AR ETH_MACMDIOAR_CR_DIV12AR_Msk /* CSR clock/12: MDC clock above range specified in IEEE */
  7032. #define ETH_MACMDIOAR_CR_DIV14AR_Pos (8U)
  7033. #define ETH_MACMDIOAR_CR_DIV14AR_Msk (0xDU << ETH_MACMDIOAR_CR_DIV14AR_Pos) /*!< 0x00000D00 */
  7034. #define ETH_MACMDIOAR_CR_DIV14AR ETH_MACMDIOAR_CR_DIV14AR_Msk /* CSR clock/14: MDC clock above range specified in IEEE */
  7035. #define ETH_MACMDIOAR_CR_DIV16AR_Pos (9U)
  7036. #define ETH_MACMDIOAR_CR_DIV16AR_Msk (0x7U << ETH_MACMDIOAR_CR_DIV16AR_Pos) /*!< 0x00000E00 */
  7037. #define ETH_MACMDIOAR_CR_DIV16AR ETH_MACMDIOAR_CR_DIV16AR_Msk /* CSR clock/16: MDC clock above range specified in IEEE */
  7038. #define ETH_MACMDIOAR_CR_DIV18AR_Pos (8U)
  7039. #define ETH_MACMDIOAR_CR_DIV18AR_Msk (0xFU << ETH_MACMDIOAR_CR_DIV18AR_Pos) /*!< 0x00000F00 */
  7040. #define ETH_MACMDIOAR_CR_DIV18AR ETH_MACMDIOAR_CR_DIV18AR_Msk /* CSR clock/18: MDC clock above range specified in IEEE */
  7041. #define ETH_MACMDIOAR_SKAP_Pos (4U)
  7042. #define ETH_MACMDIOAR_SKAP_Msk (0x1U << ETH_MACMDIOAR_SKAP_Pos) /*!< 0x00000010 */
  7043. #define ETH_MACMDIOAR_SKAP ETH_MACMDIOAR_SKAP_Msk /* Skip Address Packet */
  7044. #define ETH_MACMDIOAR_MOC_Pos (2U)
  7045. #define ETH_MACMDIOAR_MOC_Msk (0x3U << ETH_MACMDIOAR_MOC_Pos) /*!< 0x0000000C */
  7046. #define ETH_MACMDIOAR_MOC ETH_MACMDIOAR_MOC_Msk /* MII Operation Command */
  7047. #define ETH_MACMDIOAR_MOC_WR_Pos (2U)
  7048. #define ETH_MACMDIOAR_MOC_WR_Msk (0x1U << ETH_MACMDIOAR_MOC_WR_Pos) /*!< 0x00000004 */
  7049. #define ETH_MACMDIOAR_MOC_WR ETH_MACMDIOAR_MOC_WR_Msk /* Write */
  7050. #define ETH_MACMDIOAR_MOC_PRDIA_Pos (3U)
  7051. #define ETH_MACMDIOAR_MOC_PRDIA_Msk (0x1U << ETH_MACMDIOAR_MOC_PRDIA_Pos) /*!< 0x00000008 */
  7052. #define ETH_MACMDIOAR_MOC_PRDIA ETH_MACMDIOAR_MOC_PRDIA_Msk /* Post Read Increment Address for Clause 45 PHY */
  7053. #define ETH_MACMDIOAR_MOC_RD_Pos (2U)
  7054. #define ETH_MACMDIOAR_MOC_RD_Msk (0x3U << ETH_MACMDIOAR_MOC_RD_Pos) /*!< 0x0000000C */
  7055. #define ETH_MACMDIOAR_MOC_RD ETH_MACMDIOAR_MOC_RD_Msk /* Read */
  7056. #define ETH_MACMDIOAR_C45E_Pos (1U)
  7057. #define ETH_MACMDIOAR_C45E_Msk (0x1U << ETH_MACMDIOAR_C45E_Pos) /*!< 0x00000002 */
  7058. #define ETH_MACMDIOAR_C45E ETH_MACMDIOAR_C45E_Msk /* Clause 45 PHY Enable */
  7059. #define ETH_MACMDIOAR_MB_Pos (0U)
  7060. #define ETH_MACMDIOAR_MB_Msk (0x1U << ETH_MACMDIOAR_MB_Pos) /*!< 0x00000001 */
  7061. #define ETH_MACMDIOAR_MB ETH_MACMDIOAR_MB_Msk /* MII Busy */
  7062. /* Bit definition for Ethernet MAC MDIO Data Register */
  7063. #define ETH_MACMDIODR_RA_Pos (16U)
  7064. #define ETH_MACMDIODR_RA_Msk (0xFFFFU << ETH_MACMDIODR_RA_Pos) /*!< 0xFFFF0000 */
  7065. #define ETH_MACMDIODR_RA ETH_MACMDIODR_RA_Msk /* Register Address */
  7066. #define ETH_MACMDIODR_MD_Pos (0U)
  7067. #define ETH_MACMDIODR_MD_Msk (0xFFFFU << ETH_MACMDIODR_MD_Pos) /*!< 0x0000FFFF */
  7068. #define ETH_MACMDIODR_MD ETH_MACMDIODR_MD_Msk /* MII Data */
  7069. /* Bit definition for Ethernet MAC Address High Register */
  7070. #define ETH_MACAHR_AE_Pos (31U)
  7071. #define ETH_MACAHR_AE_Msk (0x1U << ETH_MACAHR_AE_Pos) /*!< 0x80000000 */
  7072. #define ETH_MACAHR_AE ETH_MACAHR_AE_Msk /* Address enable */
  7073. #define ETH_MACAHR_SA_Pos (30U)
  7074. #define ETH_MACAHR_SA_Msk (0x1U << ETH_MACAHR_SA_Pos) /*!< 0x40000000 */
  7075. #define ETH_MACAHR_SA ETH_MACAHR_SA_Msk /* Source address */
  7076. #define ETH_MACAHR_MBC_Pos (24U)
  7077. #define ETH_MACAHR_MBC_Msk (0x3FU << ETH_MACAHR_MBC_Pos) /*!< 0x3F000000 */
  7078. #define ETH_MACAHR_MBC ETH_MACAHR_MBC_Msk /* Mask byte control: bits to mask for comparison of the MAC Address bytes */
  7079. #define ETH_MACAHR_MBC_HBITS15_8 ((uint32_t)0x20000000) /* Mask MAC Address high reg bits [15:8] */
  7080. #define ETH_MACAHR_MBC_HBITS7_0 ((uint32_t)0x10000000) /* Mask MAC Address high reg bits [7:0] */
  7081. #define ETH_MACAHR_MBC_LBITS31_24 ((uint32_t)0x08000000) /* Mask MAC Address low reg bits [31:24] */
  7082. #define ETH_MACAHR_MBC_LBITS23_16 ((uint32_t)0x04000000) /* Mask MAC Address low reg bits [23:16] */
  7083. #define ETH_MACAHR_MBC_LBITS15_8 ((uint32_t)0x02000000) /* Mask MAC Address low reg bits [15:8] */
  7084. #define ETH_MACAHR_MBC_LBITS7_0 ((uint32_t)0x01000000) /* Mask MAC Address low reg bits [7:0] */
  7085. #define ETH_MACAHR_MACAH_Pos (0U)
  7086. #define ETH_MACAHR_MACAH_Msk (0xFFFFU << ETH_MACAHR_MACAH_Pos) /*!< 0x0000FFFF */
  7087. #define ETH_MACAHR_MACAH ETH_MACAHR_MACAH_Msk /* MAC address high */
  7088. /* Bit definition for Ethernet MAC Address Low Register */
  7089. #define ETH_MACALR_MACAL_Pos (0U)
  7090. #define ETH_MACALR_MACAL_Msk (0xFFFFFFFFU << ETH_MACALR_MACAL_Pos) /*!< 0xFFFFFFFF */
  7091. #define ETH_MACALR_MACAL ETH_MACALR_MACAL_Msk /* MAC address low */
  7092. /* Bit definition for Ethernet MAC L3 L4 Control Register */
  7093. #define ETH_MACL3L4CR_L4DPIM_Pos (21U)
  7094. #define ETH_MACL3L4CR_L4DPIM_Msk (0x1U << ETH_MACL3L4CR_L4DPIM_Pos) /*!< 0x00200000 */
  7095. #define ETH_MACL3L4CR_L4DPIM ETH_MACL3L4CR_L4DPIM_Msk /* Layer 4 Destination Port Inverse Match Enable */
  7096. #define ETH_MACL3L4CR_L4DPM_Pos (20U)
  7097. #define ETH_MACL3L4CR_L4DPM_Msk (0x1U << ETH_MACL3L4CR_L4DPM_Pos) /*!< 0x00100000 */
  7098. #define ETH_MACL3L4CR_L4DPM ETH_MACL3L4CR_L4DPM_Msk /* Layer 4 Destination Port Match Enable */
  7099. #define ETH_MACL3L4CR_L4SPIM_Pos (19U)
  7100. #define ETH_MACL3L4CR_L4SPIM_Msk (0x1U << ETH_MACL3L4CR_L4SPIM_Pos) /*!< 0x00080000 */
  7101. #define ETH_MACL3L4CR_L4SPIM ETH_MACL3L4CR_L4SPIM_Msk /* Layer 4 Source Port Inverse Match Enable */
  7102. #define ETH_MACL3L4CR_L4SPM_Pos (18U)
  7103. #define ETH_MACL3L4CR_L4SPM_Msk (0x1U << ETH_MACL3L4CR_L4SPM_Pos) /*!< 0x00040000 */
  7104. #define ETH_MACL3L4CR_L4SPM ETH_MACL3L4CR_L4SPM_Msk /* Layer 4 Source Port Match Enable */
  7105. #define ETH_MACL3L4CR_L4PEN_Pos (16U)
  7106. #define ETH_MACL3L4CR_L4PEN_Msk (0x1U << ETH_MACL3L4CR_L4PEN_Pos) /*!< 0x00010000 */
  7107. #define ETH_MACL3L4CR_L4PEN ETH_MACL3L4CR_L4PEN_Msk /* Layer 4 Protocol Enable */
  7108. #define ETH_MACL3L4CR_L3HDBM_Pos (11U)
  7109. #define ETH_MACL3L4CR_L3HDBM_Msk (0x1FU << ETH_MACL3L4CR_L3HDBM_Pos) /*!< 0x0000F800 */
  7110. #define ETH_MACL3L4CR_L3HDBM ETH_MACL3L4CR_L3HDBM_Msk /* Layer 3 IP DA Higher Bits Match */
  7111. #define ETH_MACL3L4CR_L3HSBM_Pos (6U)
  7112. #define ETH_MACL3L4CR_L3HSBM_Msk (0x1FU << ETH_MACL3L4CR_L3HSBM_Pos) /*!< 0x000007C0 */
  7113. #define ETH_MACL3L4CR_L3HSBM ETH_MACL3L4CR_L3HSBM_Msk /* Layer 3 IP SA Higher Bits Match */
  7114. #define ETH_MACL3L4CR_L3DAIM_Pos (5U)
  7115. #define ETH_MACL3L4CR_L3DAIM_Msk (0x1U << ETH_MACL3L4CR_L3DAIM_Pos) /*!< 0x00000020 */
  7116. #define ETH_MACL3L4CR_L3DAIM ETH_MACL3L4CR_L3DAIM_Msk /* Layer 3 IP DA Inverse Match Enable */
  7117. #define ETH_MACL3L4CR_L3DAM_Pos (4U)
  7118. #define ETH_MACL3L4CR_L3DAM_Msk (0x1U << ETH_MACL3L4CR_L3DAM_Pos) /*!< 0x00000010 */
  7119. #define ETH_MACL3L4CR_L3DAM ETH_MACL3L4CR_L3DAM_Msk /* Layer 3 IP DA Match Enable */
  7120. #define ETH_MACL3L4CR_L3SAIM_Pos (3U)
  7121. #define ETH_MACL3L4CR_L3SAIM_Msk (0x1U << ETH_MACL3L4CR_L3SAIM_Pos) /*!< 0x00000008 */
  7122. #define ETH_MACL3L4CR_L3SAIM ETH_MACL3L4CR_L3SAIM_Msk /* Layer 3 IP SA Inverse Match Enable */
  7123. #define ETH_MACL3L4CR_L3SAM_Pos (2U)
  7124. #define ETH_MACL3L4CR_L3SAM_Msk (0x1U << ETH_MACL3L4CR_L3SAM_Pos) /*!< 0x00000004 */
  7125. #define ETH_MACL3L4CR_L3SAM ETH_MACL3L4CR_L3SAM_Msk /* Layer 3 IP SA Match Enable*/
  7126. #define ETH_MACL3L4CR_L3PEN_Pos (0U)
  7127. #define ETH_MACL3L4CR_L3PEN_Msk (0x1U << ETH_MACL3L4CR_L3PEN_Pos) /*!< 0x00000001 */
  7128. #define ETH_MACL3L4CR_L3PEN ETH_MACL3L4CR_L3PEN_Msk /* Layer 3 Protocol Enable */
  7129. /* Bit definition for Ethernet MAC L4 Address Register */
  7130. #define ETH_MACL4AR_L4DP_Pos (16U)
  7131. #define ETH_MACL4AR_L4DP_Msk (0xFFFFU << ETH_MACL4AR_L4DP_Pos) /*!< 0xFFFF0000 */
  7132. #define ETH_MACL4AR_L4DP ETH_MACL4AR_L4DP_Msk /* Layer 4 Destination Port Number Field */
  7133. #define ETH_MACL4AR_L4SP_Pos (0U)
  7134. #define ETH_MACL4AR_L4SP_Msk (0xFFFFU << ETH_MACL4AR_L4SP_Pos) /*!< 0x0000FFFF */
  7135. #define ETH_MACL4AR_L4SP ETH_MACL4AR_L4SP_Msk /* Layer 4 Source Port Number Field */
  7136. /* Bit definition for Ethernet MAC L3 Address0 Register */
  7137. #define ETH_MACL3A0R_L3A0_Pos (0U)
  7138. #define ETH_MACL3A0R_L3A0_Msk (0xFFFFFFFFU << ETH_MACL3A0R_L3A0_Pos) /*!< 0xFFFFFFFF */
  7139. #define ETH_MACL3A0R_L3A0 ETH_MACL3A0R_L3A0_Msk /* Layer 3 Address 0 Field */
  7140. /* Bit definition for Ethernet MAC L4 Address1 Register */
  7141. #define ETH_MACL3A1R_L3A1_Pos (0U)
  7142. #define ETH_MACL3A1R_L3A1_Msk (0xFFFFFFFFU << ETH_MACL3A1R_L3A1_Pos) /*!< 0xFFFFFFFF */
  7143. #define ETH_MACL3A1R_L3A1 ETH_MACL3A1R_L3A1_Msk /* Layer 3 Address 1 Field */
  7144. /* Bit definition for Ethernet MAC L4 Address2 Register */
  7145. #define ETH_MACL3A2R_L3A2_Pos (0U)
  7146. #define ETH_MACL3A2R_L3A2_Msk (0xFFFFFFFFU << ETH_MACL3A2R_L3A2_Pos) /*!< 0xFFFFFFFF */
  7147. #define ETH_MACL3A2R_L3A2 ETH_MACL3A2R_L3A2_Msk /* Layer 3 Address 2 Field */
  7148. /* Bit definition for Ethernet MAC L4 Address3 Register */
  7149. #define ETH_MACL3A3R_L3A3_Pos (0U)
  7150. #define ETH_MACL3A3R_L3A3_Msk (0xFFFFFFFFU << ETH_MACL3A3R_L3A3_Pos) /*!< 0xFFFFFFFF */
  7151. #define ETH_MACL3A3R_L3A3 ETH_MACL3A3R_L3A3_Msk /* Layer 3 Address 3 Field */
  7152. /* Bit definition for Ethernet MTL Operation Mode Register */
  7153. #define ETH_MTLOMR_CNTCLR_Pos (9U)
  7154. #define ETH_MTLOMR_CNTCLR_Msk (0x1U << ETH_MTLOMR_CNTCLR_Pos) /*!< 0x00000200 */
  7155. #define ETH_MTLOMR_CNTCLR ETH_MTLOMR_CNTCLR_Msk /* Counters Reset */
  7156. #define ETH_MTLOMR_CNTPRST_Pos (8U)
  7157. #define ETH_MTLOMR_CNTPRST_Msk (0x1U << ETH_MTLOMR_CNTPRST_Pos) /*!< 0x00000100 */
  7158. #define ETH_MTLOMR_CNTPRST ETH_MTLOMR_CNTPRST_Msk /* Counters Preset */
  7159. /* Bit definition for Ethernet MTL Interrupt Status Register */
  7160. #define ETH_MTLISR_MACIS_Pos (16U)
  7161. #define ETH_MTLISR_MACIS_Msk (0x1U << ETH_MTLISR_MACIS_Pos) /*!< 0x00010000 */
  7162. #define ETH_MTLISR_MACIS ETH_MTLISR_MACIS_Msk /* MAC Interrupt Status */
  7163. #define ETH_MTLISR_QIS_Pos (0U)
  7164. #define ETH_MTLISR_QIS_Msk (0x1U << ETH_MTLISR_QIS_Pos) /*!< 0x00000001 */
  7165. #define ETH_MTLISR_QIS ETH_MTLISR_QIS_Msk /* Queue Interrupt status */
  7166. /* Bit definition for Ethernet MTL Tx Queue Operation Mode Register */
  7167. #define ETH_MTLTQOMR_TTC_Pos (4U)
  7168. #define ETH_MTLTQOMR_TTC_Msk (0x7U << ETH_MTLTQOMR_TTC_Pos) /*!< 0x00000070 */
  7169. #define ETH_MTLTQOMR_TTC ETH_MTLTQOMR_TTC_Msk /* Transmit Threshold Control */
  7170. #define ETH_MTLTQOMR_TTC_32BITS ((uint32_t)0x00000000) /* 32 bits Threshold */
  7171. #define ETH_MTLTQOMR_TTC_64BITS ((uint32_t)0x00000010) /* 64 bits Threshold */
  7172. #define ETH_MTLTQOMR_TTC_96BITS ((uint32_t)0x00000020) /* 96 bits Threshold */
  7173. #define ETH_MTLTQOMR_TTC_128BITS ((uint32_t)0x00000030) /* 128 bits Threshold */
  7174. #define ETH_MTLTQOMR_TTC_192BITS ((uint32_t)0x00000040) /* 192 bits Threshold */
  7175. #define ETH_MTLTQOMR_TTC_256BITS ((uint32_t)0x00000050) /* 256 bits Threshold */
  7176. #define ETH_MTLTQOMR_TTC_384BITS ((uint32_t)0x00000060) /* 384 bits Threshold */
  7177. #define ETH_MTLTQOMR_TTC_512BITS ((uint32_t)0x00000070) /* 512 bits Threshold */
  7178. #define ETH_MTLTQOMR_TSF_Pos (1U)
  7179. #define ETH_MTLTQOMR_TSF_Msk (0x1U << ETH_MTLTQOMR_TSF_Pos) /*!< 0x00000002 */
  7180. #define ETH_MTLTQOMR_TSF ETH_MTLTQOMR_TSF_Msk /* Transmit Store and Forward */
  7181. #define ETH_MTLTQOMR_FTQ_Pos (0U)
  7182. #define ETH_MTLTQOMR_FTQ_Msk (0x1U << ETH_MTLTQOMR_FTQ_Pos) /*!< 0x00000001 */
  7183. #define ETH_MTLTQOMR_FTQ ETH_MTLTQOMR_FTQ_Msk /* Flush Transmit Queue */
  7184. /* Bit definition for Ethernet MTL Tx Queue Underflow Register */
  7185. #define ETH_MTLTQUR_UFCNTOVF_Pos (11U)
  7186. #define ETH_MTLTQUR_UFCNTOVF_Msk (0x1U << ETH_MTLTQUR_UFCNTOVF_Pos) /*!< 0x00000800 */
  7187. #define ETH_MTLTQUR_UFCNTOVF ETH_MTLTQUR_UFCNTOVF_Msk /* Overflow Bit for Underflow Packet Counter */
  7188. #define ETH_MTLTQUR_UFPKTCNT_Pos (0U)
  7189. #define ETH_MTLTQUR_UFPKTCNT_Msk (0x7FFU << ETH_MTLTQUR_UFPKTCNT_Pos) /*!< 0x000007FF */
  7190. #define ETH_MTLTQUR_UFPKTCNT ETH_MTLTQUR_UFPKTCNT_Msk /* Underflow Packet Counter */
  7191. /* Bit definition for Ethernet MTL Tx Queue Debug Register */
  7192. #define ETH_MTLTQDR_STXSTSF_Pos (20U)
  7193. #define ETH_MTLTQDR_STXSTSF_Msk (0x7U << ETH_MTLTQDR_STXSTSF_Pos) /*!< 0x00700000 */
  7194. #define ETH_MTLTQDR_STXSTSF ETH_MTLTQDR_STXSTSF_Msk /* Number of Status Words in the Tx Status FIFO of Queue */
  7195. #define ETH_MTLTQDR_PTXQ_Pos (16U)
  7196. #define ETH_MTLTQDR_PTXQ_Msk (0x7U << ETH_MTLTQDR_PTXQ_Pos) /*!< 0x00070000 */
  7197. #define ETH_MTLTQDR_PTXQ ETH_MTLTQDR_PTXQ_Msk /* Number of Packets in the Transmit Queue */
  7198. #define ETH_MTLTQDR_TXSTSFSTS_Pos (5U)
  7199. #define ETH_MTLTQDR_TXSTSFSTS_Msk (0x1U << ETH_MTLTQDR_TXSTSFSTS_Pos) /*!< 0x00000020 */
  7200. #define ETH_MTLTQDR_TXSTSFSTS ETH_MTLTQDR_TXSTSFSTS_Msk /* MTL Tx Status FIFO Full Status */
  7201. #define ETH_MTLTQDR_TXQSTS_Pos (4U)
  7202. #define ETH_MTLTQDR_TXQSTS_Msk (0x1U << ETH_MTLTQDR_TXQSTS_Pos) /*!< 0x00000010 */
  7203. #define ETH_MTLTQDR_TXQSTS ETH_MTLTQDR_TXQSTS_Msk /* MTL Tx Queue Not Empty Status */
  7204. #define ETH_MTLTQDR_TWCSTS_Pos (3U)
  7205. #define ETH_MTLTQDR_TWCSTS_Msk (0x1U << ETH_MTLTQDR_TWCSTS_Pos) /*!< 0x00000008 */
  7206. #define ETH_MTLTQDR_TWCSTS ETH_MTLTQDR_TWCSTS_Msk /* MTL Tx Queue Write Controller Status */
  7207. #define ETH_MTLTQDR_TRCSTS_Pos (1U)
  7208. #define ETH_MTLTQDR_TRCSTS_Msk (0x3U << ETH_MTLTQDR_TRCSTS_Pos) /*!< 0x00000006 */
  7209. #define ETH_MTLTQDR_TRCSTS ETH_MTLTQDR_TRCSTS_Msk /* MTL Tx Queue Read Controller Status */
  7210. #define ETH_MTLTQDR_TXQSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7211. #define ETH_MTLTQDR_TXQSTS_READ_Pos (1U)
  7212. #define ETH_MTLTQDR_TXQSTS_READ_Msk (0x1U << ETH_MTLTQDR_TXQSTS_READ_Pos) /*!< 0x00000002 */
  7213. #define ETH_MTLTQDR_TXQSTS_READ ETH_MTLTQDR_TXQSTS_READ_Msk /* Read state (transferring data to the MAC transmitter) */
  7214. #define ETH_MTLTQDR_TXQSTS_WAITING_Pos (2U)
  7215. #define ETH_MTLTQDR_TXQSTS_WAITING_Msk (0x1U << ETH_MTLTQDR_TXQSTS_WAITING_Pos) /*!< 0x00000004 */
  7216. #define ETH_MTLTQDR_TXQSTS_WAITING ETH_MTLTQDR_TXQSTS_WAITING_Msk /* Waiting for pending Tx Status from the MAC transmitter */
  7217. #define ETH_MTLTQDR_TXQSTS_FLUSHING_Pos (1U)
  7218. #define ETH_MTLTQDR_TXQSTS_FLUSHING_Msk (0x3U << ETH_MTLTQDR_TXQSTS_FLUSHING_Pos) /*!< 0x00000006 */
  7219. #define ETH_MTLTQDR_TXQSTS_FLUSHING ETH_MTLTQDR_TXQSTS_FLUSHING_Msk /* Flushing the Tx queue because of the Packet Abort request from the MAC */
  7220. #define ETH_MTLTQDR_TXQPAUSED_Pos (0U)
  7221. #define ETH_MTLTQDR_TXQPAUSED_Msk (0x1U << ETH_MTLTQDR_TXQPAUSED_Pos) /*!< 0x00000001 */
  7222. #define ETH_MTLTQDR_TXQPAUSED ETH_MTLTQDR_TXQPAUSED_Msk /* Transmit Queue in Pause */
  7223. /* Bit definition for Ethernet MTL Queue Interrupt Control Status Register */
  7224. #define ETH_MTLQICSR_RXOIE_Pos (24U)
  7225. #define ETH_MTLQICSR_RXOIE_Msk (0x1U << ETH_MTLQICSR_RXOIE_Pos) /*!< 0x01000000 */
  7226. #define ETH_MTLQICSR_RXOIE ETH_MTLQICSR_RXOIE_Msk /* Receive Queue Overflow Interrupt Enable */
  7227. #define ETH_MTLQICSR_RXOVFIS_Pos (16U)
  7228. #define ETH_MTLQICSR_RXOVFIS_Msk (0x1U << ETH_MTLQICSR_RXOVFIS_Pos) /*!< 0x00010000 */
  7229. #define ETH_MTLQICSR_RXOVFIS ETH_MTLQICSR_RXOVFIS_Msk /* Receive Queue Overflow Interrupt Status */
  7230. #define ETH_MTLQICSR_TXUIE_Pos (8U)
  7231. #define ETH_MTLQICSR_TXUIE_Msk (0x1U << ETH_MTLQICSR_TXUIE_Pos) /*!< 0x00000100 */
  7232. #define ETH_MTLQICSR_TXUIE ETH_MTLQICSR_TXUIE_Msk /* Transmit Queue Underflow Interrupt Enable */
  7233. #define ETH_MTLQICSR_TXUNFIS_Pos (0U)
  7234. #define ETH_MTLQICSR_TXUNFIS_Msk (0x1U << ETH_MTLQICSR_TXUNFIS_Pos) /*!< 0x00000001 */
  7235. #define ETH_MTLQICSR_TXUNFIS ETH_MTLQICSR_TXUNFIS_Msk /* Transmit Queue Underflow Interrupt Status */
  7236. /* Bit definition for Ethernet MTL Rx Queue Operation Mode Register */
  7237. #define ETH_MTLRQOMR_DISTCPEF_Pos (6U)
  7238. #define ETH_MTLRQOMR_DISTCPEF_Msk (0x1U << ETH_MTLRQOMR_DISTCPEF_Pos) /*!< 0x00000040 */
  7239. #define ETH_MTLRQOMR_DISTCPEF ETH_MTLRQOMR_DISTCPEF_Msk /* Disable Dropping of TCP/IP Checksum Error Packets */
  7240. #define ETH_MTLRQOMR_RSF_Pos (5U)
  7241. #define ETH_MTLRQOMR_RSF_Msk (0x1U << ETH_MTLRQOMR_RSF_Pos) /*!< 0x00000020 */
  7242. #define ETH_MTLRQOMR_RSF ETH_MTLRQOMR_RSF_Msk /* Receive Queue Store and Forward */
  7243. #define ETH_MTLRQOMR_FEP_Pos (4U)
  7244. #define ETH_MTLRQOMR_FEP_Msk (0x1U << ETH_MTLRQOMR_FEP_Pos) /*!< 0x00000010 */
  7245. #define ETH_MTLRQOMR_FEP ETH_MTLRQOMR_FEP_Msk /* Forward Error Packets */
  7246. #define ETH_MTLRQOMR_FUP_Pos (3U)
  7247. #define ETH_MTLRQOMR_FUP_Msk (0x1U << ETH_MTLRQOMR_FUP_Pos) /*!< 0x00000008 */
  7248. #define ETH_MTLRQOMR_FUP ETH_MTLRQOMR_FUP_Msk /* Forward Undersized Good Packets */
  7249. #define ETH_MTLRQOMR_RTC_Pos (0U)
  7250. #define ETH_MTLRQOMR_RTC_Msk (0x3U << ETH_MTLRQOMR_RTC_Pos) /*!< 0x00000003 */
  7251. #define ETH_MTLRQOMR_RTC ETH_MTLRQOMR_RTC_Msk /* Receive Queue Threshold Control */
  7252. #define ETH_MTLRQOMR_RTC_64BITS ((uint32_t)0x00000000) /* 64 bits Threshold */
  7253. #define ETH_MTLRQOMR_RTC_32BITS ((uint32_t)0x00000001) /* 32 bits Threshold */
  7254. #define ETH_MTLRQOMR_RTC_96BITS ((uint32_t)0x00000002) /* 96 bits Threshold */
  7255. #define ETH_MTLRQOMR_RTC_128BITS ((uint32_t)0x00000003) /* 128 bits Threshold */
  7256. /* Bit definition for Ethernet MTL Rx Queue Missed Packet Overflow Cnt Register */
  7257. #define ETH_MTLRQMPOCR_MISCNTOVF_Pos (27U)
  7258. #define ETH_MTLRQMPOCR_MISCNTOVF_Msk (0x1U << ETH_MTLRQMPOCR_MISCNTOVF_Pos) /*!< 0x08000000 */
  7259. #define ETH_MTLRQMPOCR_MISCNTOVF ETH_MTLRQMPOCR_MISCNTOVF_Msk /* Missed Packet Counter Overflow Bit */
  7260. #define ETH_MTLRQMPOCR_MISPKTCNT_Pos (16U)
  7261. #define ETH_MTLRQMPOCR_MISPKTCNT_Msk (0x7FFU << ETH_MTLRQMPOCR_MISPKTCNT_Pos) /*!< 0x07FF0000 */
  7262. #define ETH_MTLRQMPOCR_MISPKTCNT ETH_MTLRQMPOCR_MISPKTCNT_Msk /* Missed Packet Counter */
  7263. #define ETH_MTLRQMPOCR_OVFCNTOVF_Pos (11U)
  7264. #define ETH_MTLRQMPOCR_OVFCNTOVF_Msk (0x1U << ETH_MTLRQMPOCR_OVFCNTOVF_Pos) /*!< 0x00000800 */
  7265. #define ETH_MTLRQMPOCR_OVFCNTOVF ETH_MTLRQMPOCR_OVFCNTOVF_Msk /* Overflow Counter Overflow Bit */
  7266. #define ETH_MTLRQMPOCR_OVFPKTCNT_Pos (0U)
  7267. #define ETH_MTLRQMPOCR_OVFPKTCNT_Msk (0x7FFU << ETH_MTLRQMPOCR_OVFPKTCNT_Pos) /*!< 0x000007FF */
  7268. #define ETH_MTLRQMPOCR_OVFPKTCNT ETH_MTLRQMPOCR_OVFPKTCNT_Msk /* Overflow Packet Counter */
  7269. /* Bit definition for Ethernet MTL Rx Queue Debug Register */
  7270. #define ETH_MTLRQDR_PRXQ_Pos (16U)
  7271. #define ETH_MTLRQDR_PRXQ_Msk (0x3FFFU << ETH_MTLRQDR_PRXQ_Pos) /*!< 0x3FFF0000 */
  7272. #define ETH_MTLRQDR_PRXQ ETH_MTLRQDR_PRXQ_Msk /* Number of Packets in Receive Queue */
  7273. #define ETH_MTLRQDR_RXQSTS_Pos (4U)
  7274. #define ETH_MTLRQDR_RXQSTS_Msk (0x3U << ETH_MTLRQDR_RXQSTS_Pos) /*!< 0x00000030 */
  7275. #define ETH_MTLRQDR_RXQSTS ETH_MTLRQDR_RXQSTS_Msk /* MTL Rx Queue Fill-Level Status */
  7276. #define ETH_MTLRQDR_RXQSTS_EMPTY ((uint32_t)0x00000000) /* Rx Queue empty */
  7277. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos (4U)
  7278. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk (0x1U << ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Pos) /*!< 0x00000010 */
  7279. #define ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD ETH_MTLRQDR_RXQSTS_BELOWTHRESHOLD_Msk /* Rx Queue fill-level below flow-control deactivate threshold */
  7280. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos (5U)
  7281. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk (0x1U << ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Pos) /*!< 0x00000020 */
  7282. #define ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD ETH_MTLRQDR_RXQSTS_ABOVETHRESHOLD_Msk /* Rx Queue fill-level above flow-control activate threshold */
  7283. #define ETH_MTLRQDR_RXQSTS_FULL_Pos (4U)
  7284. #define ETH_MTLRQDR_RXQSTS_FULL_Msk (0x3U << ETH_MTLRQDR_RXQSTS_FULL_Pos) /*!< 0x00000030 */
  7285. #define ETH_MTLRQDR_RXQSTS_FULL ETH_MTLRQDR_RXQSTS_FULL_Msk /* Rx Queue full */
  7286. #define ETH_MTLRQDR_RRCSTS_Pos (1U)
  7287. #define ETH_MTLRQDR_RRCSTS_Msk (0x3U << ETH_MTLRQDR_RRCSTS_Pos) /*!< 0x00000006 */
  7288. #define ETH_MTLRQDR_RRCSTS ETH_MTLRQDR_RRCSTS_Msk /* MTL Rx Queue Read Controller State */
  7289. #define ETH_MTLRQDR_RRCSTS_IDLE ((uint32_t)0x00000000) /* Idle state */
  7290. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Pos (1U)
  7291. #define ETH_MTLRQDR_RRCSTS_READINGDATA_Msk (0x1U << ETH_MTLRQDR_RRCSTS_READINGDATA_Pos) /*!< 0x00000002 */
  7292. #define ETH_MTLRQDR_RRCSTS_READINGDATA ETH_MTLRQDR_RRCSTS_READINGDATA_Msk /* Reading packet data */
  7293. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos (2U)
  7294. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk (0x1U << ETH_MTLRQDR_RRCSTS_READINGSTATUS_Pos) /*!< 0x00000004 */
  7295. #define ETH_MTLRQDR_RRCSTS_READINGSTATUS ETH_MTLRQDR_RRCSTS_READINGSTATUS_Msk /* Reading packet status (or timestamp) */
  7296. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Pos (1U)
  7297. #define ETH_MTLRQDR_RRCSTS_FLUSHING_Msk (0x3U << ETH_MTLRQDR_RRCSTS_FLUSHING_Pos) /*!< 0x00000006 */
  7298. #define ETH_MTLRQDR_RRCSTS_FLUSHING ETH_MTLRQDR_RRCSTS_FLUSHING_Msk /* Flushing the packet data and status */
  7299. #define ETH_MTLRQDR_RWCSTS_Pos (0U)
  7300. #define ETH_MTLRQDR_RWCSTS_Msk (0x1U << ETH_MTLRQDR_RWCSTS_Pos) /*!< 0x00000001 */
  7301. #define ETH_MTLRQDR_RWCSTS ETH_MTLRQDR_RWCSTS_Msk /* MTL Rx Queue Write Controller Active Status */
  7302. /* Bit definition for Ethernet MTL Rx Queue Control Register */
  7303. #define ETH_MTLRQCR_RQPA_Pos (3U)
  7304. #define ETH_MTLRQCR_RQPA_Msk (0x1U << ETH_MTLRQCR_RQPA_Pos) /*!< 0x00000008 */
  7305. #define ETH_MTLRQCR_RQPA ETH_MTLRQCR_RQPA_Msk /* Receive Queue Packet Arbitration */
  7306. #define ETH_MTLRQCR_RQW_Pos (0U)
  7307. #define ETH_MTLRQCR_RQW_Msk (0x7U << ETH_MTLRQCR_RQW_Pos) /*!< 0x00000007 */
  7308. #define ETH_MTLRQCR_RQW ETH_MTLRQCR_RQW_Msk /* Receive Queue Weight */
  7309. /* Bit definition for Ethernet DMA Mode Register */
  7310. #define ETH_DMAMR_INTM_Pos (16U)
  7311. #define ETH_DMAMR_INTM_Msk (0x3U << ETH_DMAMR_INTM_Pos) /*!< 0x00030000 */
  7312. #define ETH_DMAMR_INTM ETH_DMAMR_INTM_Msk /* This field defines the interrupt mode */
  7313. #define ETH_DMAMR_INTM_0 (0x0U << ETH_DMAMR_INTM_Pos) /*!< 0x00000000 */
  7314. #define ETH_DMAMR_INTM_1 (0x1U << ETH_DMAMR_INTM_Pos) /*!< 0x00010000 */
  7315. #define ETH_DMAMR_INTM_2 (0x2U << ETH_DMAMR_INTM_Pos) /*!< 0x00020000 */
  7316. #define ETH_DMAMR_PR_Pos (12U)
  7317. #define ETH_DMAMR_PR_Msk (0x7U << ETH_DMAMR_PR_Pos) /*!< 0x00007000 */
  7318. #define ETH_DMAMR_PR ETH_DMAMR_PR_Msk /* Priority Ratio */
  7319. #define ETH_DMAMR_PR_1_1 ((uint32_t)0x00000000) /* The priority ratio is 1:1 */
  7320. #define ETH_DMAMR_PR_2_1 ((uint32_t)0x00001000) /* The priority ratio is 2:1 */
  7321. #define ETH_DMAMR_PR_3_1 ((uint32_t)0x00002000) /* The priority ratio is 3:1 */
  7322. #define ETH_DMAMR_PR_4_1 ((uint32_t)0x00003000) /* The priority ratio is 4:1 */
  7323. #define ETH_DMAMR_PR_5_1 ((uint32_t)0x00004000) /* The priority ratio is 5:1 */
  7324. #define ETH_DMAMR_PR_6_1 ((uint32_t)0x00005000) /* The priority ratio is 6:1 */
  7325. #define ETH_DMAMR_PR_7_1 ((uint32_t)0x00006000) /* The priority ratio is 7:1 */
  7326. #define ETH_DMAMR_PR_8_1 ((uint32_t)0x00007000) /* The priority ratio is 8:1 */
  7327. #define ETH_DMAMR_TXPR_Pos (11U)
  7328. #define ETH_DMAMR_TXPR_Msk (0x1U << ETH_DMAMR_TXPR_Pos) /*!< 0x00000800 */
  7329. #define ETH_DMAMR_TXPR ETH_DMAMR_TXPR_Msk /* Transmit Priority */
  7330. #define ETH_DMAMR_DA_Pos (1U)
  7331. #define ETH_DMAMR_DA_Msk (0x1U << ETH_DMAMR_DA_Pos) /*!< 0x00000002 */
  7332. #define ETH_DMAMR_DA ETH_DMAMR_DA_Msk /* DMA Tx or Rx Arbitration Scheme */
  7333. #define ETH_DMAMR_SWR_Pos (0U)
  7334. #define ETH_DMAMR_SWR_Msk (0x1U << ETH_DMAMR_SWR_Pos) /*!< 0x00000001 */
  7335. #define ETH_DMAMR_SWR ETH_DMAMR_SWR_Msk /* Software Reset */
  7336. /* Bit definition for Ethernet DMA SysBus Mode Register */
  7337. #define ETH_DMASBMR_RB_Pos (15U)
  7338. #define ETH_DMASBMR_RB_Msk (0x1U << ETH_DMASBMR_RB_Pos) /*!< 0x00008000 */
  7339. #define ETH_DMASBMR_RB ETH_DMASBMR_RB_Msk /* Rebuild INCRx Burst */
  7340. #define ETH_DMASBMR_MB_Pos (14U)
  7341. #define ETH_DMASBMR_MB_Msk (0x1U << ETH_DMASBMR_MB_Pos) /*!< 0x00004000 */
  7342. #define ETH_DMASBMR_MB ETH_DMASBMR_MB_Msk /* Mixed Burst */
  7343. #define ETH_DMASBMR_AAL_Pos (12U)
  7344. #define ETH_DMASBMR_AAL_Msk (0x1U << ETH_DMASBMR_AAL_Pos) /*!< 0x00001000 */
  7345. #define ETH_DMASBMR_AAL ETH_DMASBMR_AAL_Msk /* Address-Aligned Beats */
  7346. #define ETH_DMASBMR_FB_Pos (0U)
  7347. #define ETH_DMASBMR_FB_Msk (0x1U << ETH_DMASBMR_FB_Pos) /*!< 0x00000001 */
  7348. #define ETH_DMASBMR_FB ETH_DMASBMR_FB_Msk /* Fixed Burst Length */
  7349. /* Bit definition for Ethernet DMA Interrupt Status Register */
  7350. #define ETH_DMAISR_MACIS_Pos (17U)
  7351. #define ETH_DMAISR_MACIS_Msk (0x1U << ETH_DMAISR_MACIS_Pos) /*!< 0x00020000 */
  7352. #define ETH_DMAISR_MACIS ETH_DMAISR_MACIS_Msk /* MAC Interrupt Status */
  7353. #define ETH_DMAISR_MTLIS_Pos (16U)
  7354. #define ETH_DMAISR_MTLIS_Msk (0x1U << ETH_DMAISR_MTLIS_Pos) /*!< 0x00010000 */
  7355. #define ETH_DMAISR_MTLIS ETH_DMAISR_MTLIS_Msk /* MAC Interrupt Status */
  7356. #define ETH_DMAISR_DMACIS_Pos (0U)
  7357. #define ETH_DMAISR_DMACIS_Msk (0x1U << ETH_DMAISR_DMACIS_Pos) /*!< 0x00000001 */
  7358. #define ETH_DMAISR_DMACIS ETH_DMAISR_DMACIS_Msk /* DMA Channel Interrupt Status */
  7359. /* Bit definition for Ethernet DMA Debug Status Register */
  7360. #define ETH_DMADSR_TPS_Pos (12U)
  7361. #define ETH_DMADSR_TPS_Msk (0xFU << ETH_DMADSR_TPS_Pos) /*!< 0x0000F000 */
  7362. #define ETH_DMADSR_TPS ETH_DMADSR_TPS_Msk /* DMA Channel Transmit Process State */
  7363. #define ETH_DMADSR_TPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Transmit Command issued) */
  7364. #define ETH_DMADSR_TPS_FETCHING_Pos (12U)
  7365. #define ETH_DMADSR_TPS_FETCHING_Msk (0x1U << ETH_DMADSR_TPS_FETCHING_Pos) /*!< 0x00001000 */
  7366. #define ETH_DMADSR_TPS_FETCHING ETH_DMADSR_TPS_FETCHING_Msk /* Running (Fetching Tx Transfer Descriptor) */
  7367. #define ETH_DMADSR_TPS_WAITING_Pos (13U)
  7368. #define ETH_DMADSR_TPS_WAITING_Msk (0x1U << ETH_DMADSR_TPS_WAITING_Pos) /*!< 0x00002000 */
  7369. #define ETH_DMADSR_TPS_WAITING ETH_DMADSR_TPS_WAITING_Msk /* Running (Waiting for status) */
  7370. #define ETH_DMADSR_TPS_READING_Pos (12U)
  7371. #define ETH_DMADSR_TPS_READING_Msk (0x3U << ETH_DMADSR_TPS_READING_Pos) /*!< 0x00003000 */
  7372. #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)) */
  7373. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Pos (14U)
  7374. #define ETH_DMADSR_TPS_TIMESTAMP_WR_Msk (0x1U << ETH_DMADSR_TPS_TIMESTAMP_WR_Pos) /*!< 0x00004000 */
  7375. #define ETH_DMADSR_TPS_TIMESTAMP_WR ETH_DMADSR_TPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7376. #define ETH_DMADSR_TPS_SUSPENDED_Pos (13U)
  7377. #define ETH_DMADSR_TPS_SUSPENDED_Msk (0x3U << ETH_DMADSR_TPS_SUSPENDED_Pos) /*!< 0x00006000 */
  7378. #define ETH_DMADSR_TPS_SUSPENDED ETH_DMADSR_TPS_SUSPENDED_Msk /* Suspended (Tx Descriptor Unavailable or Tx Buffer Underflow) */
  7379. #define ETH_DMADSR_TPS_CLOSING_Pos (12U)
  7380. #define ETH_DMADSR_TPS_CLOSING_Msk (0x7U << ETH_DMADSR_TPS_CLOSING_Pos) /*!< 0x00007000 */
  7381. #define ETH_DMADSR_TPS_CLOSING ETH_DMADSR_TPS_CLOSING_Msk /* Running (Closing Tx Descriptor) */
  7382. #define ETH_DMADSR_RPS_Pos (8U)
  7383. #define ETH_DMADSR_RPS_Msk (0xFU << ETH_DMADSR_RPS_Pos) /*!< 0x00000F00 */
  7384. #define ETH_DMADSR_RPS ETH_DMADSR_RPS_Msk /* DMA Channel Receive Process State */
  7385. #define ETH_DMADSR_RPS_STOPPED ((uint32_t)0x00000000) /* Stopped (Reset or Stop Receive Command issued) */
  7386. #define ETH_DMADSR_RPS_FETCHING_Pos (12U)
  7387. #define ETH_DMADSR_RPS_FETCHING_Msk (0x1U << ETH_DMADSR_RPS_FETCHING_Pos) /*!< 0x00001000 */
  7388. #define ETH_DMADSR_RPS_FETCHING ETH_DMADSR_RPS_FETCHING_Msk /* Running (Fetching Rx Transfer Descriptor) */
  7389. #define ETH_DMADSR_RPS_WAITING_Pos (12U)
  7390. #define ETH_DMADSR_RPS_WAITING_Msk (0x3U << ETH_DMADSR_RPS_WAITING_Pos) /*!< 0x00003000 */
  7391. #define ETH_DMADSR_RPS_WAITING ETH_DMADSR_RPS_WAITING_Msk /* Running (Waiting for status) */
  7392. #define ETH_DMADSR_RPS_SUSPENDED_Pos (14U)
  7393. #define ETH_DMADSR_RPS_SUSPENDED_Msk (0x1U << ETH_DMADSR_RPS_SUSPENDED_Pos) /*!< 0x00004000 */
  7394. #define ETH_DMADSR_RPS_SUSPENDED ETH_DMADSR_RPS_SUSPENDED_Msk /* Suspended (Rx Descriptor Unavailable) */
  7395. #define ETH_DMADSR_RPS_CLOSING_Pos (12U)
  7396. #define ETH_DMADSR_RPS_CLOSING_Msk (0x5U << ETH_DMADSR_RPS_CLOSING_Pos) /*!< 0x00005000 */
  7397. #define ETH_DMADSR_RPS_CLOSING ETH_DMADSR_RPS_CLOSING_Msk /* Running (Closing the Rx Descriptor) */
  7398. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Pos (13U)
  7399. #define ETH_DMADSR_RPS_TIMESTAMP_WR_Msk (0x3U << ETH_DMADSR_RPS_TIMESTAMP_WR_Pos) /*!< 0x00006000 */
  7400. #define ETH_DMADSR_RPS_TIMESTAMP_WR ETH_DMADSR_RPS_TIMESTAMP_WR_Msk /* Timestamp write state */
  7401. #define ETH_DMADSR_RPS_TRANSFERRING_Pos (12U)
  7402. #define ETH_DMADSR_RPS_TRANSFERRING_Msk (0x7U << ETH_DMADSR_RPS_TRANSFERRING_Pos) /*!< 0x00007000 */
  7403. #define ETH_DMADSR_RPS_TRANSFERRING ETH_DMADSR_RPS_TRANSFERRING_Msk /* Running (Transferring the received packet data from the Rx buffer to the system memory) */
  7404. /* Bit definition for Ethernet DMA Channel Control Register */
  7405. #define ETH_DMACCR_DSL_Pos (18U)
  7406. #define ETH_DMACCR_DSL_Msk (0x7U << ETH_DMACCR_DSL_Pos) /*!< 0x001C0000 */
  7407. #define ETH_DMACCR_DSL ETH_DMACCR_DSL_Msk /* Descriptor Skip Length */
  7408. #define ETH_DMACCR_DSL_0BIT ((uint32_t)0x00000000)
  7409. #define ETH_DMACCR_DSL_32BIT ((uint32_t)0x00040000)
  7410. #define ETH_DMACCR_DSL_64BIT ((uint32_t)0x00080000)
  7411. #define ETH_DMACCR_DSL_128BIT ((uint32_t)0x00100000)
  7412. #define ETH_DMACCR_8PBL ((uint32_t)0x00010000) /* 8xPBL mode */
  7413. #define ETH_DMACCR_MSS_Pos (0U)
  7414. #define ETH_DMACCR_MSS_Msk (0x3FFFU << ETH_DMACCR_MSS_Pos) /*!< 0x00003FFF */
  7415. #define ETH_DMACCR_MSS ETH_DMACCR_MSS_Msk /* Maximum Segment Size */
  7416. /* Bit definition for Ethernet DMA Channel Tx Control Register */
  7417. #define ETH_DMACTCR_TPBL_Pos (16U)
  7418. #define ETH_DMACTCR_TPBL_Msk (0x3FU << ETH_DMACTCR_TPBL_Pos) /*!< 0x003F0000 */
  7419. #define ETH_DMACTCR_TPBL ETH_DMACTCR_TPBL_Msk /* Transmit Programmable Burst Length */
  7420. #define ETH_DMACTCR_TPBL_1PBL ((uint32_t)0x00010000) /* Transmit Programmable Burst Length 1 */
  7421. #define ETH_DMACTCR_TPBL_2PBL ((uint32_t)0x00020000) /* Transmit Programmable Burst Length 2 */
  7422. #define ETH_DMACTCR_TPBL_4PBL ((uint32_t)0x00040000) /* Transmit Programmable Burst Length 4 */
  7423. #define ETH_DMACTCR_TPBL_8PBL ((uint32_t)0x00080000) /* Transmit Programmable Burst Length 8 */
  7424. #define ETH_DMACTCR_TPBL_16PBL ((uint32_t)0x00100000) /* Transmit Programmable Burst Length 16 */
  7425. #define ETH_DMACTCR_TPBL_32PBL ((uint32_t)0x00200000) /* Transmit Programmable Burst Length 32 */
  7426. #define ETH_DMACTCR_TSE_Pos (12U)
  7427. #define ETH_DMACTCR_TSE_Msk (0x1U << ETH_DMACTCR_TSE_Pos) /*!< 0x00001000 */
  7428. #define ETH_DMACTCR_TSE ETH_DMACTCR_TSE_Msk /* TCP Segmentation Enabled */
  7429. #define ETH_DMACTCR_OSP_Pos (4U)
  7430. #define ETH_DMACTCR_OSP_Msk (0x1U << ETH_DMACTCR_OSP_Pos) /*!< 0x00000010 */
  7431. #define ETH_DMACTCR_OSP ETH_DMACTCR_OSP_Msk /* Operate on Second Packet */
  7432. #define ETH_DMACTCR_ST_Pos (0U)
  7433. #define ETH_DMACTCR_ST_Msk (0x1U << ETH_DMACTCR_ST_Pos) /*!< 0x00000001 */
  7434. #define ETH_DMACTCR_ST ETH_DMACTCR_ST_Msk /* Start or Stop Transmission Command */
  7435. /* Bit definition for Ethernet DMA Channel Rx Control Register */
  7436. #define ETH_DMACRCR_RPF_Pos (31U)
  7437. #define ETH_DMACRCR_RPF_Msk (0x1U << ETH_DMACRCR_RPF_Pos) /*!< 0x80000000 */
  7438. #define ETH_DMACRCR_RPF ETH_DMACRCR_RPF_Msk /* Rx Packet Flush */
  7439. #define ETH_DMACRCR_RPBL_Pos (16U)
  7440. #define ETH_DMACRCR_RPBL_Msk (0x3FU << ETH_DMACRCR_RPBL_Pos) /*!< 0x003F0000 */
  7441. #define ETH_DMACRCR_RPBL ETH_DMACRCR_RPBL_Msk /* Receive Programmable Burst Length */
  7442. #define ETH_DMACRCR_RPBL_1PBL ((uint32_t)0x00010000) /* Receive Programmable Burst Length 1 */
  7443. #define ETH_DMACRCR_RPBL_2PBL ((uint32_t)0x00020000) /* Receive Programmable Burst Length 2 */
  7444. #define ETH_DMACRCR_RPBL_4PBL ((uint32_t)0x00040000) /* Receive Programmable Burst Length 4 */
  7445. #define ETH_DMACRCR_RPBL_8PBL ((uint32_t)0x00080000) /* Receive Programmable Burst Length 8 */
  7446. #define ETH_DMACRCR_RPBL_16PBL ((uint32_t)0x00100000) /* Receive Programmable Burst Length 16 */
  7447. #define ETH_DMACRCR_RPBL_32PBL ((uint32_t)0x00200000) /* Receive Programmable Burst Length 32 */
  7448. #define ETH_DMACRCR_RBSZ_Pos (1U)
  7449. #define ETH_DMACRCR_RBSZ_Msk (0x3FFFU << ETH_DMACRCR_RBSZ_Pos) /*!< 0x00007FFE */
  7450. #define ETH_DMACRCR_RBSZ ETH_DMACRCR_RBSZ_Msk /* Receive Buffer size */
  7451. #define ETH_DMACRCR_SR_Pos (0U)
  7452. #define ETH_DMACRCR_SR_Msk (0x1U << ETH_DMACRCR_SR_Pos) /*!< 0x00000001 */
  7453. #define ETH_DMACRCR_SR ETH_DMACRCR_SR_Msk /* Start or Stop Receive */
  7454. /* Bit definition for Ethernet DMA CH Tx Desc List Address Register */
  7455. #define ETH_DMACTDLAR_TDESLA_Pos (2U)
  7456. #define ETH_DMACTDLAR_TDESLA_Msk (0x3FFFFFFFU << ETH_DMACTDLAR_TDESLA_Pos) /*!< 0xFFFFFFFC */
  7457. #define ETH_DMACTDLAR_TDESLA ETH_DMACTDLAR_TDESLA_Msk /* Start of Transmit List */
  7458. /* Bit definition for Ethernet DMA CH Rx Desc List Address Register */
  7459. #define ETH_DMACRDLAR_RDESLA_Pos (2U)
  7460. #define ETH_DMACRDLAR_RDESLA_Msk (0x3FFFFFFFU << ETH_DMACRDLAR_RDESLA_Pos) /*!< 0xFFFFFFFC */
  7461. #define ETH_DMACRDLAR_RDESLA ETH_DMACRDLAR_RDESLA_Msk /* Start of Receive List */
  7462. /* Bit definition for Ethernet DMA CH Tx Desc Tail Pointer Register */
  7463. #define ETH_DMACTDTPR_TDT_Pos (2U)
  7464. #define ETH_DMACTDTPR_TDT_Msk (0x3FFFFFFFU << ETH_DMACTDTPR_TDT_Pos) /*!< 0xFFFFFFFC */
  7465. #define ETH_DMACTDTPR_TDT ETH_DMACTDTPR_TDT_Msk /* Transmit Descriptor Tail Pointer */
  7466. /* Bit definition for Ethernet DMA CH Rx Desc Tail Pointer Register */
  7467. #define ETH_DMACRDTPR_RDT_Pos (2U)
  7468. #define ETH_DMACRDTPR_RDT_Msk (0x3FFFFFFFU << ETH_DMACRDTPR_RDT_Pos) /*!< 0xFFFFFFFC */
  7469. #define ETH_DMACRDTPR_RDT ETH_DMACRDTPR_RDT_Msk /* Receive Descriptor Tail Pointer */
  7470. /* Bit definition for Ethernet DMA CH Tx Desc Ring Length Register */
  7471. #define ETH_DMACTDRLR_TDRL_Pos (0U)
  7472. #define ETH_DMACTDRLR_TDRL_Msk (0x3FFU << ETH_DMACTDRLR_TDRL_Pos) /*!< 0x000003FF */
  7473. #define ETH_DMACTDRLR_TDRL ETH_DMACTDRLR_TDRL_Msk /* Transmit Descriptor Ring Length */
  7474. /* Bit definition for Ethernet DMA CH Rx Desc Ring Length Register */
  7475. #define ETH_DMACRDRLR_RDRL_Pos (0U)
  7476. #define ETH_DMACRDRLR_RDRL_Msk (0x3FFU << ETH_DMACRDRLR_RDRL_Pos) /*!< 0x000003FF */
  7477. #define ETH_DMACRDRLR_RDRL ETH_DMACRDRLR_RDRL_Msk /* Receive Descriptor Ring Length */
  7478. /* Bit definition for Ethernet DMA Channel Interrupt Enable Register */
  7479. #define ETH_DMACIER_NIE_Pos (15U)
  7480. #define ETH_DMACIER_NIE_Msk (0x1U << ETH_DMACIER_NIE_Pos) /*!< 0x00008000 */
  7481. #define ETH_DMACIER_NIE ETH_DMACIER_NIE_Msk /* Normal Interrupt Summary Enable */
  7482. #define ETH_DMACIER_AIE_Pos (14U)
  7483. #define ETH_DMACIER_AIE_Msk (0x1U << ETH_DMACIER_AIE_Pos) /*!< 0x00004000 */
  7484. #define ETH_DMACIER_AIE ETH_DMACIER_AIE_Msk /* Abnormal Interrupt Summary Enable */
  7485. #define ETH_DMACIER_CDEE_Pos (13U)
  7486. #define ETH_DMACIER_CDEE_Msk (0x1U << ETH_DMACIER_CDEE_Pos) /*!< 0x00002000 */
  7487. #define ETH_DMACIER_CDEE ETH_DMACIER_CDEE_Msk /* Context Descriptor Error Enable */
  7488. #define ETH_DMACIER_FBEE_Pos (12U)
  7489. #define ETH_DMACIER_FBEE_Msk (0x1U << ETH_DMACIER_FBEE_Pos) /*!< 0x00001000 */
  7490. #define ETH_DMACIER_FBEE ETH_DMACIER_FBEE_Msk /* Fatal Bus Error Enable */
  7491. #define ETH_DMACIER_ERIE_Pos (11U)
  7492. #define ETH_DMACIER_ERIE_Msk (0x1U << ETH_DMACIER_ERIE_Pos) /*!< 0x00000800 */
  7493. #define ETH_DMACIER_ERIE ETH_DMACIER_ERIE_Msk /* Early Receive Interrupt Enable */
  7494. #define ETH_DMACIER_ETIE_Pos (10U)
  7495. #define ETH_DMACIER_ETIE_Msk (0x1U << ETH_DMACIER_ETIE_Pos) /*!< 0x00000400 */
  7496. #define ETH_DMACIER_ETIE ETH_DMACIER_ETIE_Msk /* Early Transmit Interrupt Enable */
  7497. #define ETH_DMACIER_RWTE_Pos (9U)
  7498. #define ETH_DMACIER_RWTE_Msk (0x1U << ETH_DMACIER_RWTE_Pos) /*!< 0x00000200 */
  7499. #define ETH_DMACIER_RWTE ETH_DMACIER_RWTE_Msk /* Receive Watchdog Timeout Enable */
  7500. #define ETH_DMACIER_RSE_Pos (8U)
  7501. #define ETH_DMACIER_RSE_Msk (0x1U << ETH_DMACIER_RSE_Pos) /*!< 0x00000100 */
  7502. #define ETH_DMACIER_RSE ETH_DMACIER_RSE_Msk /* Receive Stopped Enable */
  7503. #define ETH_DMACIER_RBUE_Pos (7U)
  7504. #define ETH_DMACIER_RBUE_Msk (0x1U << ETH_DMACIER_RBUE_Pos) /*!< 0x00000080 */
  7505. #define ETH_DMACIER_RBUE ETH_DMACIER_RBUE_Msk /* Receive Buffer Unavailable Enable */
  7506. #define ETH_DMACIER_RIE_Pos (6U)
  7507. #define ETH_DMACIER_RIE_Msk (0x1U << ETH_DMACIER_RIE_Pos) /*!< 0x00000040 */
  7508. #define ETH_DMACIER_RIE ETH_DMACIER_RIE_Msk /* Receive Interrupt Enable */
  7509. #define ETH_DMACIER_TBUE_Pos (2U)
  7510. #define ETH_DMACIER_TBUE_Msk (0x1U << ETH_DMACIER_TBUE_Pos) /*!< 0x00000004 */
  7511. #define ETH_DMACIER_TBUE ETH_DMACIER_TBUE_Msk /* Transmit Buffer Unavailable Enable */
  7512. #define ETH_DMACIER_TXSE_Pos (1U)
  7513. #define ETH_DMACIER_TXSE_Msk (0x1U << ETH_DMACIER_TXSE_Pos) /*!< 0x00000002 */
  7514. #define ETH_DMACIER_TXSE ETH_DMACIER_TXSE_Msk /* Transmit Stopped Enable */
  7515. #define ETH_DMACIER_TIE_Pos (0U)
  7516. #define ETH_DMACIER_TIE_Msk (0x1U << ETH_DMACIER_TIE_Pos) /*!< 0x00000001 */
  7517. #define ETH_DMACIER_TIE ETH_DMACIER_TIE_Msk /* Transmit Interrupt Enable */
  7518. /* Bit definition for Ethernet DMA Channel Rx Interrupt Watchdog Timer Register */
  7519. #define ETH_DMACRIWTR_RWT_Pos (0U)
  7520. #define ETH_DMACRIWTR_RWT_Msk (0xFFU << ETH_DMACRIWTR_RWT_Pos) /*!< 0x000000FF */
  7521. #define ETH_DMACRIWTR_RWT ETH_DMACRIWTR_RWT_Msk /* Receive Interrupt Watchdog Timer Count */
  7522. /* Bit definition for Ethernet DMA Channel Current App Tx Desc Register */
  7523. #define ETH_DMACCATDR_CURTDESAPTR_Pos (0U)
  7524. #define ETH_DMACCATDR_CURTDESAPTR_Msk (0xFFFFFFFFU << ETH_DMACCATDR_CURTDESAPTR_Pos) /*!< 0xFFFFFFFF */
  7525. #define ETH_DMACCATDR_CURTDESAPTR ETH_DMACCATDR_CURTDESAPTR_Msk /* Application Transmit Descriptor Address Pointer */
  7526. /* Bit definition for Ethernet DMA Channel Current App Rx Desc Register */
  7527. #define ETH_DMACCARDR_CURRDESAPTR_Pos (0U)
  7528. #define ETH_DMACCARDR_CURRDESAPTR_Msk (0xFFFFFFFFU << ETH_DMACCARDR_CURRDESAPTR_Pos) /*!< 0xFFFFFFFF */
  7529. #define ETH_DMACCARDR_CURRDESAPTR ETH_DMACCARDR_CURRDESAPTR_Msk /* Application Receive Descriptor Address Pointer */
  7530. /* Bit definition for Ethernet DMA Channel Current App Tx Buffer Register */
  7531. #define ETH_DMACCATBR_CURTBUFAPTR_Pos (0U)
  7532. #define ETH_DMACCATBR_CURTBUFAPTR_Msk (0xFFFFFFFFU << ETH_DMACCATBR_CURTBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  7533. #define ETH_DMACCATBR_CURTBUFAPTR ETH_DMACCATBR_CURTBUFAPTR_Msk /* Application Transmit Buffer Address Pointer */
  7534. /* Bit definition for Ethernet DMA Channel Current App Rx Buffer Register */
  7535. #define ETH_DMACCARBR_CURRBUFAPTR_Pos (0U)
  7536. #define ETH_DMACCARBR_CURRBUFAPTR_Msk (0xFFFFFFFFU << ETH_DMACCARBR_CURRBUFAPTR_Pos) /*!< 0xFFFFFFFF */
  7537. #define ETH_DMACCARBR_CURRBUFAPTR ETH_DMACCARBR_CURRBUFAPTR_Msk /* Application Receive Buffer Address Pointer */
  7538. /* Bit definition for Ethernet DMA Channel Status Register */
  7539. #define ETH_DMACSR_REB_Pos (19U)
  7540. #define ETH_DMACSR_REB_Msk (0x7U << ETH_DMACSR_REB_Pos) /*!< 0x00380000 */
  7541. #define ETH_DMACSR_REB ETH_DMACSR_REB_Msk /* Rx DMA Error Bits */
  7542. #define ETH_DMACSR_TEB_Pos (16U)
  7543. #define ETH_DMACSR_TEB_Msk (0x7U << ETH_DMACSR_TEB_Pos) /*!< 0x00070000 */
  7544. #define ETH_DMACSR_TEB ETH_DMACSR_TEB_Msk /* Tx DMA Error Bits */
  7545. #define ETH_DMACSR_NIS_Pos (15U)
  7546. #define ETH_DMACSR_NIS_Msk (0x1U << ETH_DMACSR_NIS_Pos) /*!< 0x00008000 */
  7547. #define ETH_DMACSR_NIS ETH_DMACSR_NIS_Msk /* Normal Interrupt Summary */
  7548. #define ETH_DMACSR_AIS_Pos (14U)
  7549. #define ETH_DMACSR_AIS_Msk (0x1U << ETH_DMACSR_AIS_Pos) /*!< 0x00004000 */
  7550. #define ETH_DMACSR_AIS ETH_DMACSR_AIS_Msk /* Abnormal Interrupt Summary */
  7551. #define ETH_DMACSR_CDE_Pos (13U)
  7552. #define ETH_DMACSR_CDE_Msk (0x1U << ETH_DMACSR_CDE_Pos) /*!< 0x00002000 */
  7553. #define ETH_DMACSR_CDE ETH_DMACSR_CDE_Msk /* Context Descriptor Error */
  7554. #define ETH_DMACSR_FBE_Pos (12U)
  7555. #define ETH_DMACSR_FBE_Msk (0x1U << ETH_DMACSR_FBE_Pos) /*!< 0x00001000 */
  7556. #define ETH_DMACSR_FBE ETH_DMACSR_FBE_Msk /* Fatal Bus Error */
  7557. #define ETH_DMACSR_ERI_Pos (11U)
  7558. #define ETH_DMACSR_ERI_Msk (0x1U << ETH_DMACSR_ERI_Pos) /*!< 0x00000800 */
  7559. #define ETH_DMACSR_ERI ETH_DMACSR_ERI_Msk /* Early Receive Interrupt */
  7560. #define ETH_DMACSR_ETI_Pos (10U)
  7561. #define ETH_DMACSR_ETI_Msk (0x1U << ETH_DMACSR_ETI_Pos) /*!< 0x00000400 */
  7562. #define ETH_DMACSR_ETI ETH_DMACSR_ETI_Msk /* Early Transmit Interrupt */
  7563. #define ETH_DMACSR_RWT_Pos (9U)
  7564. #define ETH_DMACSR_RWT_Msk (0x1U << ETH_DMACSR_RWT_Pos) /*!< 0x00000200 */
  7565. #define ETH_DMACSR_RWT ETH_DMACSR_RWT_Msk /* Receive Watchdog Timeout */
  7566. #define ETH_DMACSR_RPS_Pos (8U)
  7567. #define ETH_DMACSR_RPS_Msk (0x1U << ETH_DMACSR_RPS_Pos) /*!< 0x00000100 */
  7568. #define ETH_DMACSR_RPS ETH_DMACSR_RPS_Msk /* Receive Process Stopped */
  7569. #define ETH_DMACSR_RBU_Pos (7U)
  7570. #define ETH_DMACSR_RBU_Msk (0x1U << ETH_DMACSR_RBU_Pos) /*!< 0x00000080 */
  7571. #define ETH_DMACSR_RBU ETH_DMACSR_RBU_Msk /* Receive Buffer Unavailable */
  7572. #define ETH_DMACSR_RI_Pos (6U)
  7573. #define ETH_DMACSR_RI_Msk (0x1U << ETH_DMACSR_RI_Pos) /*!< 0x00000040 */
  7574. #define ETH_DMACSR_RI ETH_DMACSR_RI_Msk /* Receive Interrupt */
  7575. #define ETH_DMACSR_TBU_Pos (2U)
  7576. #define ETH_DMACSR_TBU_Msk (0x1U << ETH_DMACSR_TBU_Pos) /*!< 0x00000004 */
  7577. #define ETH_DMACSR_TBU ETH_DMACSR_TBU_Msk /* Transmit Buffer Unavailable */
  7578. #define ETH_DMACSR_TPS_Pos (1U)
  7579. #define ETH_DMACSR_TPS_Msk (0x1U << ETH_DMACSR_TPS_Pos) /*!< 0x00000002 */
  7580. #define ETH_DMACSR_TPS ETH_DMACSR_TPS_Msk /* Transmit Process Stopped */
  7581. #define ETH_DMACSR_TI_Pos (0U)
  7582. #define ETH_DMACSR_TI_Msk (0x1U << ETH_DMACSR_TI_Pos) /*!< 0x00000001 */
  7583. #define ETH_DMACSR_TI ETH_DMACSR_TI_Msk /* Transmit Interrupt */
  7584. /* Bit definition for Ethernet DMA Channel missed frame count register */
  7585. #define ETH_DMACMFCR_MFCO_Pos (15U)
  7586. #define ETH_DMACMFCR_MFCO_Msk (0x1U << ETH_DMACMFCR_MFCO_Pos) /*!< 0x00008000 */
  7587. #define ETH_DMACMFCR_MFCO ETH_DMACMFCR_MFCO_Msk /* Overflow status of the MFC Counter */
  7588. #define ETH_DMACMFCR_MFC_Pos (0U)
  7589. #define ETH_DMACMFCR_MFC_Msk (0x7FFU << ETH_DMACMFCR_MFC_Pos) /*!< 0x000007FF */
  7590. #define ETH_DMACMFCR_MFC ETH_DMACMFCR_MFC_Msk /* The number of packet counters dropped by the DMA */
  7591. /******************************************************************************/
  7592. /* */
  7593. /* DMA Controller */
  7594. /* */
  7595. /******************************************************************************/
  7596. /******************** Bits definition for DMA_SxCR register *****************/
  7597. #define DMA_SxCR_MBURST_Pos (23U)
  7598. #define DMA_SxCR_MBURST_Msk (0x3U << DMA_SxCR_MBURST_Pos) /*!< 0x01800000 */
  7599. #define DMA_SxCR_MBURST DMA_SxCR_MBURST_Msk /*!< Memory burst transfer configuration */
  7600. #define DMA_SxCR_MBURST_0 (0x1U << DMA_SxCR_MBURST_Pos) /*!< 0x00800000 */
  7601. #define DMA_SxCR_MBURST_1 (0x2U << DMA_SxCR_MBURST_Pos) /*!< 0x01000000 */
  7602. #define DMA_SxCR_PBURST_Pos (21U)
  7603. #define DMA_SxCR_PBURST_Msk (0x3U << DMA_SxCR_PBURST_Pos) /*!< 0x00600000 */
  7604. #define DMA_SxCR_PBURST DMA_SxCR_PBURST_Msk /*!< Peripheral burst transfer configuration */
  7605. #define DMA_SxCR_PBURST_0 (0x1U << DMA_SxCR_PBURST_Pos) /*!< 0x00200000 */
  7606. #define DMA_SxCR_PBURST_1 (0x2U << DMA_SxCR_PBURST_Pos) /*!< 0x00400000 */
  7607. #define DMA_SxCR_CT_Pos (19U)
  7608. #define DMA_SxCR_CT_Msk (0x1U << DMA_SxCR_CT_Pos) /*!< 0x00080000 */
  7609. #define DMA_SxCR_CT DMA_SxCR_CT_Msk /*!< Current target (only in double buffer mode) */
  7610. #define DMA_SxCR_DBM_Pos (18U)
  7611. #define DMA_SxCR_DBM_Msk (0x1U << DMA_SxCR_DBM_Pos) /*!< 0x00040000 */
  7612. #define DMA_SxCR_DBM DMA_SxCR_DBM_Msk /*!< Double buffer mode */
  7613. #define DMA_SxCR_PL_Pos (16U)
  7614. #define DMA_SxCR_PL_Msk (0x3U << DMA_SxCR_PL_Pos) /*!< 0x00030000 */
  7615. #define DMA_SxCR_PL DMA_SxCR_PL_Msk /*!< Priority level */
  7616. #define DMA_SxCR_PL_0 (0x1U << DMA_SxCR_PL_Pos) /*!< 0x00010000 */
  7617. #define DMA_SxCR_PL_1 (0x2U << DMA_SxCR_PL_Pos) /*!< 0x00020000 */
  7618. #define DMA_SxCR_PINCOS_Pos (15U)
  7619. #define DMA_SxCR_PINCOS_Msk (0x1U << DMA_SxCR_PINCOS_Pos) /*!< 0x00008000 */
  7620. #define DMA_SxCR_PINCOS DMA_SxCR_PINCOS_Msk /*!< Peripheral increment offset size */
  7621. #define DMA_SxCR_MSIZE_Pos (13U)
  7622. #define DMA_SxCR_MSIZE_Msk (0x3U << DMA_SxCR_MSIZE_Pos) /*!< 0x00006000 */
  7623. #define DMA_SxCR_MSIZE DMA_SxCR_MSIZE_Msk /*!< Memory data size */
  7624. #define DMA_SxCR_MSIZE_0 (0x1U << DMA_SxCR_MSIZE_Pos) /*!< 0x00002000 */
  7625. #define DMA_SxCR_MSIZE_1 (0x2U << DMA_SxCR_MSIZE_Pos) /*!< 0x00004000 */
  7626. #define DMA_SxCR_PSIZE_Pos (11U)
  7627. #define DMA_SxCR_PSIZE_Msk (0x3U << DMA_SxCR_PSIZE_Pos) /*!< 0x00001800 */
  7628. #define DMA_SxCR_PSIZE DMA_SxCR_PSIZE_Msk /*< Peripheral data size */
  7629. #define DMA_SxCR_PSIZE_0 (0x1U << DMA_SxCR_PSIZE_Pos) /*!< 0x00000800 */
  7630. #define DMA_SxCR_PSIZE_1 (0x2U << DMA_SxCR_PSIZE_Pos) /*!< 0x00001000 */
  7631. #define DMA_SxCR_MINC_Pos (10U)
  7632. #define DMA_SxCR_MINC_Msk (0x1U << DMA_SxCR_MINC_Pos) /*!< 0x00000400 */
  7633. #define DMA_SxCR_MINC DMA_SxCR_MINC_Msk /*!< Memory increment mode */
  7634. #define DMA_SxCR_PINC_Pos (9U)
  7635. #define DMA_SxCR_PINC_Msk (0x1U << DMA_SxCR_PINC_Pos) /*!< 0x00000200 */
  7636. #define DMA_SxCR_PINC DMA_SxCR_PINC_Msk /*!< Peripheral increment mode */
  7637. #define DMA_SxCR_CIRC_Pos (8U)
  7638. #define DMA_SxCR_CIRC_Msk (0x1U << DMA_SxCR_CIRC_Pos) /*!< 0x00000100 */
  7639. #define DMA_SxCR_CIRC DMA_SxCR_CIRC_Msk /*!< Circular mode */
  7640. #define DMA_SxCR_DIR_Pos (6U)
  7641. #define DMA_SxCR_DIR_Msk (0x3U << DMA_SxCR_DIR_Pos) /*!< 0x000000C0 */
  7642. #define DMA_SxCR_DIR DMA_SxCR_DIR_Msk /*!< Data transfer direction */
  7643. #define DMA_SxCR_DIR_0 (0x1U << DMA_SxCR_DIR_Pos) /*!< 0x00000040 */
  7644. #define DMA_SxCR_DIR_1 (0x2U << DMA_SxCR_DIR_Pos) /*!< 0x00000080 */
  7645. #define DMA_SxCR_PFCTRL_Pos (5U)
  7646. #define DMA_SxCR_PFCTRL_Msk (0x1U << DMA_SxCR_PFCTRL_Pos) /*!< 0x00000020 */
  7647. #define DMA_SxCR_PFCTRL DMA_SxCR_PFCTRL_Msk /*!< Peripheral flow controller */
  7648. #define DMA_SxCR_TCIE_Pos (4U)
  7649. #define DMA_SxCR_TCIE_Msk (0x1U << DMA_SxCR_TCIE_Pos) /*!< 0x00000010 */
  7650. #define DMA_SxCR_TCIE DMA_SxCR_TCIE_Msk /*!< Transfer complete interrupt enable */
  7651. #define DMA_SxCR_HTIE_Pos (3U)
  7652. #define DMA_SxCR_HTIE_Msk (0x1U << DMA_SxCR_HTIE_Pos) /*!< 0x00000008 */
  7653. #define DMA_SxCR_HTIE DMA_SxCR_HTIE_Msk /*!< Half transfer interrupt enable */
  7654. #define DMA_SxCR_TEIE_Pos (2U)
  7655. #define DMA_SxCR_TEIE_Msk (0x1U << DMA_SxCR_TEIE_Pos) /*!< 0x00000004 */
  7656. #define DMA_SxCR_TEIE DMA_SxCR_TEIE_Msk /*!< Transfer error interrupt enable */
  7657. #define DMA_SxCR_DMEIE_Pos (1U)
  7658. #define DMA_SxCR_DMEIE_Msk (0x1U << DMA_SxCR_DMEIE_Pos) /*!< 0x00000002 */
  7659. #define DMA_SxCR_DMEIE DMA_SxCR_DMEIE_Msk /*!< Direct mode error interrupt enable */
  7660. #define DMA_SxCR_EN_Pos (0U)
  7661. #define DMA_SxCR_EN_Msk (0x1U << DMA_SxCR_EN_Pos) /*!< 0x00000001 */
  7662. #define DMA_SxCR_EN DMA_SxCR_EN_Msk /*!< Stream enable / flag stream ready when read low */
  7663. /******************** Bits definition for DMA_SxCNDTR register **************/
  7664. #define DMA_SxNDT_Pos (0U)
  7665. #define DMA_SxNDT_Msk (0xFFFFU << DMA_SxNDT_Pos) /*!< 0x0000FFFF */
  7666. #define DMA_SxNDT DMA_SxNDT_Msk /*!< Number of data items to transfer */
  7667. #define DMA_SxNDT_0 (0x0001U << DMA_SxNDT_Pos) /*!< 0x00000001 */
  7668. #define DMA_SxNDT_1 (0x0002U << DMA_SxNDT_Pos) /*!< 0x00000002 */
  7669. #define DMA_SxNDT_2 (0x0004U << DMA_SxNDT_Pos) /*!< 0x00000004 */
  7670. #define DMA_SxNDT_3 (0x0008U << DMA_SxNDT_Pos) /*!< 0x00000008 */
  7671. #define DMA_SxNDT_4 (0x0010U << DMA_SxNDT_Pos) /*!< 0x00000010 */
  7672. #define DMA_SxNDT_5 (0x0020U << DMA_SxNDT_Pos) /*!< 0x00000020 */
  7673. #define DMA_SxNDT_6 (0x0040U << DMA_SxNDT_Pos) /*!< 0x00000040 */
  7674. #define DMA_SxNDT_7 (0x0080U << DMA_SxNDT_Pos) /*!< 0x00000080 */
  7675. #define DMA_SxNDT_8 (0x0100U << DMA_SxNDT_Pos) /*!< 0x00000100 */
  7676. #define DMA_SxNDT_9 (0x0200U << DMA_SxNDT_Pos) /*!< 0x00000200 */
  7677. #define DMA_SxNDT_10 (0x0400U << DMA_SxNDT_Pos) /*!< 0x00000400 */
  7678. #define DMA_SxNDT_11 (0x0800U << DMA_SxNDT_Pos) /*!< 0x00000800 */
  7679. #define DMA_SxNDT_12 (0x1000U << DMA_SxNDT_Pos) /*!< 0x00001000 */
  7680. #define DMA_SxNDT_13 (0x2000U << DMA_SxNDT_Pos) /*!< 0x00002000 */
  7681. #define DMA_SxNDT_14 (0x4000U << DMA_SxNDT_Pos) /*!< 0x00004000 */
  7682. #define DMA_SxNDT_15 (0x8000U << DMA_SxNDT_Pos) /*!< 0x00008000 */
  7683. /******************** Bits definition for DMA_SxFCR register ****************/
  7684. #define DMA_SxFCR_FEIE_Pos (7U)
  7685. #define DMA_SxFCR_FEIE_Msk (0x1U << DMA_SxFCR_FEIE_Pos) /*!< 0x00000080 */
  7686. #define DMA_SxFCR_FEIE DMA_SxFCR_FEIE_Msk /*!< FIFO error interrupt enable */
  7687. #define DMA_SxFCR_FS_Pos (3U)
  7688. #define DMA_SxFCR_FS_Msk (0x7U << DMA_SxFCR_FS_Pos) /*!< 0x00000038 */
  7689. #define DMA_SxFCR_FS DMA_SxFCR_FS_Msk /*!< FIFO status */
  7690. #define DMA_SxFCR_FS_0 (0x1U << DMA_SxFCR_FS_Pos) /*!< 0x00000008 */
  7691. #define DMA_SxFCR_FS_1 (0x2U << DMA_SxFCR_FS_Pos) /*!< 0x00000010 */
  7692. #define DMA_SxFCR_FS_2 (0x4U << DMA_SxFCR_FS_Pos) /*!< 0x00000020 */
  7693. #define DMA_SxFCR_DMDIS_Pos (2U)
  7694. #define DMA_SxFCR_DMDIS_Msk (0x1U << DMA_SxFCR_DMDIS_Pos) /*!< 0x00000004 */
  7695. #define DMA_SxFCR_DMDIS DMA_SxFCR_DMDIS_Msk /*!< Direct mode disable */
  7696. #define DMA_SxFCR_FTH_Pos (0U)
  7697. #define DMA_SxFCR_FTH_Msk (0x3U << DMA_SxFCR_FTH_Pos) /*!< 0x00000003 */
  7698. #define DMA_SxFCR_FTH DMA_SxFCR_FTH_Msk /*!< FIFO threshold selection */
  7699. #define DMA_SxFCR_FTH_0 (0x1U << DMA_SxFCR_FTH_Pos) /*!< 0x00000001 */
  7700. #define DMA_SxFCR_FTH_1 (0x2U << DMA_SxFCR_FTH_Pos) /*!< 0x00000002 */
  7701. /******************** Bits definition for DMA_LISR register *****************/
  7702. #define DMA_LISR_TCIF3_Pos (27U)
  7703. #define DMA_LISR_TCIF3_Msk (0x1U << DMA_LISR_TCIF3_Pos) /*!< 0x08000000 */
  7704. #define DMA_LISR_TCIF3 DMA_LISR_TCIF3_Msk /*!< Stream 3 transfer complete interrupt flag */
  7705. #define DMA_LISR_HTIF3_Pos (26U)
  7706. #define DMA_LISR_HTIF3_Msk (0x1U << DMA_LISR_HTIF3_Pos) /*!< 0x04000000 */
  7707. #define DMA_LISR_HTIF3 DMA_LISR_HTIF3_Msk /*!< Stream 3 half transfer interrupt flag */
  7708. #define DMA_LISR_TEIF3_Pos (25U)
  7709. #define DMA_LISR_TEIF3_Msk (0x1U << DMA_LISR_TEIF3_Pos) /*!< 0x02000000 */
  7710. #define DMA_LISR_TEIF3 DMA_LISR_TEIF3_Msk /*!< Stream 3 transfer error interrupt flag */
  7711. #define DMA_LISR_DMEIF3_Pos (24U)
  7712. #define DMA_LISR_DMEIF3_Msk (0x1U << DMA_LISR_DMEIF3_Pos) /*!< 0x01000000 */
  7713. #define DMA_LISR_DMEIF3 DMA_LISR_DMEIF3_Msk /*!< Stream 3 direct mode error interrupt flag */
  7714. #define DMA_LISR_FEIF3_Pos (22U)
  7715. #define DMA_LISR_FEIF3_Msk (0x1U << DMA_LISR_FEIF3_Pos) /*!< 0x00400000 */
  7716. #define DMA_LISR_FEIF3 DMA_LISR_FEIF3_Msk /*!< Stream 3 FIFO error interrupt flag */
  7717. #define DMA_LISR_TCIF2_Pos (21U)
  7718. #define DMA_LISR_TCIF2_Msk (0x1U << DMA_LISR_TCIF2_Pos) /*!< 0x00200000 */
  7719. #define DMA_LISR_TCIF2 DMA_LISR_TCIF2_Msk /*!< Stream 2 transfer complete interrupt flag */
  7720. #define DMA_LISR_HTIF2_Pos (20U)
  7721. #define DMA_LISR_HTIF2_Msk (0x1U << DMA_LISR_HTIF2_Pos) /*!< 0x00100000 */
  7722. #define DMA_LISR_HTIF2 DMA_LISR_HTIF2_Msk /*!< Stream 2 half transfer interrupt flag */
  7723. #define DMA_LISR_TEIF2_Pos (19U)
  7724. #define DMA_LISR_TEIF2_Msk (0x1U << DMA_LISR_TEIF2_Pos) /*!< 0x00080000 */
  7725. #define DMA_LISR_TEIF2 DMA_LISR_TEIF2_Msk /*!< Stream 2 transfer error interrupt flag */
  7726. #define DMA_LISR_DMEIF2_Pos (18U)
  7727. #define DMA_LISR_DMEIF2_Msk (0x1U << DMA_LISR_DMEIF2_Pos) /*!< 0x00040000 */
  7728. #define DMA_LISR_DMEIF2 DMA_LISR_DMEIF2_Msk /*!< Stream 2 direct mode error interrupt flag */
  7729. #define DMA_LISR_FEIF2_Pos (16U)
  7730. #define DMA_LISR_FEIF2_Msk (0x1U << DMA_LISR_FEIF2_Pos) /*!< 0x00010000 */
  7731. #define DMA_LISR_FEIF2 DMA_LISR_FEIF2_Msk /*!< Stream 2 FIFO error interrupt flag */
  7732. #define DMA_LISR_TCIF1_Pos (11U)
  7733. #define DMA_LISR_TCIF1_Msk (0x1U << DMA_LISR_TCIF1_Pos) /*!< 0x00000800 */
  7734. #define DMA_LISR_TCIF1 DMA_LISR_TCIF1_Msk /*!< Stream 1 transfer complete interrupt flag */
  7735. #define DMA_LISR_HTIF1_Pos (10U)
  7736. #define DMA_LISR_HTIF1_Msk (0x1U << DMA_LISR_HTIF1_Pos) /*!< 0x00000400 */
  7737. #define DMA_LISR_HTIF1 DMA_LISR_HTIF1_Msk /*!< Stream 1 half transfer interrupt flag */
  7738. #define DMA_LISR_TEIF1_Pos (9U)
  7739. #define DMA_LISR_TEIF1_Msk (0x1U << DMA_LISR_TEIF1_Pos) /*!< 0x00000200 */
  7740. #define DMA_LISR_TEIF1 DMA_LISR_TEIF1_Msk /*!< Stream 1 transfer error interrupt flag */
  7741. #define DMA_LISR_DMEIF1_Pos (8U)
  7742. #define DMA_LISR_DMEIF1_Msk (0x1U << DMA_LISR_DMEIF1_Pos) /*!< 0x00000100 */
  7743. #define DMA_LISR_DMEIF1 DMA_LISR_DMEIF1_Msk /*!< Stream 1 direct mode error interrupt flag */
  7744. #define DMA_LISR_FEIF1_Pos (6U)
  7745. #define DMA_LISR_FEIF1_Msk (0x1U << DMA_LISR_FEIF1_Pos) /*!< 0x00000040 */
  7746. #define DMA_LISR_FEIF1 DMA_LISR_FEIF1_Msk /*!< Stream 1 FIFO error interrupt flag */
  7747. #define DMA_LISR_TCIF0_Pos (5U)
  7748. #define DMA_LISR_TCIF0_Msk (0x1U << DMA_LISR_TCIF0_Pos) /*!< 0x00000020 */
  7749. #define DMA_LISR_TCIF0 DMA_LISR_TCIF0_Msk /*!< Stream 0 transfer complete interrupt flag */
  7750. #define DMA_LISR_HTIF0_Pos (4U)
  7751. #define DMA_LISR_HTIF0_Msk (0x1U << DMA_LISR_HTIF0_Pos) /*!< 0x00000010 */
  7752. #define DMA_LISR_HTIF0 DMA_LISR_HTIF0_Msk /*!< Stream 0 half transfer interrupt flag */
  7753. #define DMA_LISR_TEIF0_Pos (3U)
  7754. #define DMA_LISR_TEIF0_Msk (0x1U << DMA_LISR_TEIF0_Pos) /*!< 0x00000008 */
  7755. #define DMA_LISR_TEIF0 DMA_LISR_TEIF0_Msk /*!< Stream 0 transfer error interrupt flag */
  7756. #define DMA_LISR_DMEIF0_Pos (2U)
  7757. #define DMA_LISR_DMEIF0_Msk (0x1U << DMA_LISR_DMEIF0_Pos) /*!< 0x00000004 */
  7758. #define DMA_LISR_DMEIF0 DMA_LISR_DMEIF0_Msk /*!< Stream 0 direct mode error interrupt flag */
  7759. #define DMA_LISR_FEIF0_Pos (0U)
  7760. #define DMA_LISR_FEIF0_Msk (0x1U << DMA_LISR_FEIF0_Pos) /*!< 0x00000001 */
  7761. #define DMA_LISR_FEIF0 DMA_LISR_FEIF0_Msk /*!< Stream 0 FIFO error interrupt flag */
  7762. /******************** Bits definition for DMA_HISR register *****************/
  7763. #define DMA_HISR_TCIF7_Pos (27U)
  7764. #define DMA_HISR_TCIF7_Msk (0x1U << DMA_HISR_TCIF7_Pos) /*!< 0x08000000 */
  7765. #define DMA_HISR_TCIF7 DMA_HISR_TCIF7_Msk /*!< Stream 7 transfer complete interrupt flag */
  7766. #define DMA_HISR_HTIF7_Pos (26U)
  7767. #define DMA_HISR_HTIF7_Msk (0x1U << DMA_HISR_HTIF7_Pos) /*!< 0x04000000 */
  7768. #define DMA_HISR_HTIF7 DMA_HISR_HTIF7_Msk /*!< Stream 7 half transfer interrupt flag */
  7769. #define DMA_HISR_TEIF7_Pos (25U)
  7770. #define DMA_HISR_TEIF7_Msk (0x1U << DMA_HISR_TEIF7_Pos) /*!< 0x02000000 */
  7771. #define DMA_HISR_TEIF7 DMA_HISR_TEIF7_Msk /*!< Stream 7 transfer error interrupt flag */
  7772. #define DMA_HISR_DMEIF7_Pos (24U)
  7773. #define DMA_HISR_DMEIF7_Msk (0x1U << DMA_HISR_DMEIF7_Pos) /*!< 0x01000000 */
  7774. #define DMA_HISR_DMEIF7 DMA_HISR_DMEIF7_Msk /*!< Stream 7 direct mode error interrupt flag */
  7775. #define DMA_HISR_FEIF7_Pos (22U)
  7776. #define DMA_HISR_FEIF7_Msk (0x1U << DMA_HISR_FEIF7_Pos) /*!< 0x00400000 */
  7777. #define DMA_HISR_FEIF7 DMA_HISR_FEIF7_Msk /*!< Stream 7 FIFO error interrupt flag */
  7778. #define DMA_HISR_TCIF6_Pos (21U)
  7779. #define DMA_HISR_TCIF6_Msk (0x1U << DMA_HISR_TCIF6_Pos) /*!< 0x00200000 */
  7780. #define DMA_HISR_TCIF6 DMA_HISR_TCIF6_Msk /*!< Stream 6 transfer complete interrupt flag */
  7781. #define DMA_HISR_HTIF6_Pos (20U)
  7782. #define DMA_HISR_HTIF6_Msk (0x1U << DMA_HISR_HTIF6_Pos) /*!< 0x00100000 */
  7783. #define DMA_HISR_HTIF6 DMA_HISR_HTIF6_Msk /*!< Stream 6 half transfer interrupt flag */
  7784. #define DMA_HISR_TEIF6_Pos (19U)
  7785. #define DMA_HISR_TEIF6_Msk (0x1U << DMA_HISR_TEIF6_Pos) /*!< 0x00080000 */
  7786. #define DMA_HISR_TEIF6 DMA_HISR_TEIF6_Msk /*!< Stream 6 transfer error interrupt flag */
  7787. #define DMA_HISR_DMEIF6_Pos (18U)
  7788. #define DMA_HISR_DMEIF6_Msk (0x1U << DMA_HISR_DMEIF6_Pos) /*!< 0x00040000 */
  7789. #define DMA_HISR_DMEIF6 DMA_HISR_DMEIF6_Msk /*!< Stream 6 direct mode error interrupt flag */
  7790. #define DMA_HISR_FEIF6_Pos (16U)
  7791. #define DMA_HISR_FEIF6_Msk (0x1U << DMA_HISR_FEIF6_Pos) /*!< 0x00010000 */
  7792. #define DMA_HISR_FEIF6 DMA_HISR_FEIF6_Msk /*!< Stream 6 FIFO error interrupt flag */
  7793. #define DMA_HISR_TCIF5_Pos (11U)
  7794. #define DMA_HISR_TCIF5_Msk (0x1U << DMA_HISR_TCIF5_Pos) /*!< 0x00000800 */
  7795. #define DMA_HISR_TCIF5 DMA_HISR_TCIF5_Msk /*!< Stream 5 transfer complete interrupt flag */
  7796. #define DMA_HISR_HTIF5_Pos (10U)
  7797. #define DMA_HISR_HTIF5_Msk (0x1U << DMA_HISR_HTIF5_Pos) /*!< 0x00000400 */
  7798. #define DMA_HISR_HTIF5 DMA_HISR_HTIF5_Msk /*!< Stream 5 half transfer interrupt flag */
  7799. #define DMA_HISR_TEIF5_Pos (9U)
  7800. #define DMA_HISR_TEIF5_Msk (0x1U << DMA_HISR_TEIF5_Pos) /*!< 0x00000200 */
  7801. #define DMA_HISR_TEIF5 DMA_HISR_TEIF5_Msk /*!< Stream 5 transfer error interrupt flag */
  7802. #define DMA_HISR_DMEIF5_Pos (8U)
  7803. #define DMA_HISR_DMEIF5_Msk (0x1U << DMA_HISR_DMEIF5_Pos) /*!< 0x00000100 */
  7804. #define DMA_HISR_DMEIF5 DMA_HISR_DMEIF5_Msk /*!< Stream 5 direct mode error interrupt flag */
  7805. #define DMA_HISR_FEIF5_Pos (6U)
  7806. #define DMA_HISR_FEIF5_Msk (0x1U << DMA_HISR_FEIF5_Pos) /*!< 0x00000040 */
  7807. #define DMA_HISR_FEIF5 DMA_HISR_FEIF5_Msk /*!< Stream 5 FIFO error interrupt flag */
  7808. #define DMA_HISR_TCIF4_Pos (5U)
  7809. #define DMA_HISR_TCIF4_Msk (0x1U << DMA_HISR_TCIF4_Pos) /*!< 0x00000020 */
  7810. #define DMA_HISR_TCIF4 DMA_HISR_TCIF4_Msk /*!< Stream 4 transfer complete interrupt flag */
  7811. #define DMA_HISR_HTIF4_Pos (4U)
  7812. #define DMA_HISR_HTIF4_Msk (0x1U << DMA_HISR_HTIF4_Pos) /*!< 0x00000010 */
  7813. #define DMA_HISR_HTIF4 DMA_HISR_HTIF4_Msk /*!< Stream 4 half transfer interrupt flag */
  7814. #define DMA_HISR_TEIF4_Pos (3U)
  7815. #define DMA_HISR_TEIF4_Msk (0x1U << DMA_HISR_TEIF4_Pos) /*!< 0x00000008 */
  7816. #define DMA_HISR_TEIF4 DMA_HISR_TEIF4_Msk /*!< Stream 4 transfer error interrupt flag */
  7817. #define DMA_HISR_DMEIF4_Pos (2U)
  7818. #define DMA_HISR_DMEIF4_Msk (0x1U << DMA_HISR_DMEIF4_Pos) /*!< 0x00000004 */
  7819. #define DMA_HISR_DMEIF4 DMA_HISR_DMEIF4_Msk /*!< Stream 4 direct mode error interrupt flag */
  7820. #define DMA_HISR_FEIF4_Pos (0U)
  7821. #define DMA_HISR_FEIF4_Msk (0x1U << DMA_HISR_FEIF4_Pos) /*!< 0x00000001 */
  7822. #define DMA_HISR_FEIF4 DMA_HISR_FEIF4_Msk /*!< Stream 4 FIFO error interrupt flag */
  7823. /******************** Bits definition for DMA_LIFCR register ****************/
  7824. #define DMA_LIFCR_CTCIF3_Pos (27U)
  7825. #define DMA_LIFCR_CTCIF3_Msk (0x1U << DMA_LIFCR_CTCIF3_Pos) /*!< 0x08000000 */
  7826. #define DMA_LIFCR_CTCIF3 DMA_LIFCR_CTCIF3_Msk /*!< Stream 3 clear transfer complete interrupt flag */
  7827. #define DMA_LIFCR_CHTIF3_Pos (26U)
  7828. #define DMA_LIFCR_CHTIF3_Msk (0x1U << DMA_LIFCR_CHTIF3_Pos) /*!< 0x04000000 */
  7829. #define DMA_LIFCR_CHTIF3 DMA_LIFCR_CHTIF3_Msk /*!< Stream 3 clear half transfer interrupt flag */
  7830. #define DMA_LIFCR_CTEIF3_Pos (25U)
  7831. #define DMA_LIFCR_CTEIF3_Msk (0x1U << DMA_LIFCR_CTEIF3_Pos) /*!< 0x02000000 */
  7832. #define DMA_LIFCR_CTEIF3 DMA_LIFCR_CTEIF3_Msk /*!< Stream 3 clear transfer error interrupt flag */
  7833. #define DMA_LIFCR_CDMEIF3_Pos (24U)
  7834. #define DMA_LIFCR_CDMEIF3_Msk (0x1U << DMA_LIFCR_CDMEIF3_Pos) /*!< 0x01000000 */
  7835. #define DMA_LIFCR_CDMEIF3 DMA_LIFCR_CDMEIF3_Msk /*!< Stream 3 clear direct mode error interrupt flag */
  7836. #define DMA_LIFCR_CFEIF3_Pos (22U)
  7837. #define DMA_LIFCR_CFEIF3_Msk (0x1U << DMA_LIFCR_CFEIF3_Pos) /*!< 0x00400000 */
  7838. #define DMA_LIFCR_CFEIF3 DMA_LIFCR_CFEIF3_Msk /*!< Stream 3 clear FIFO error interrupt flag */
  7839. #define DMA_LIFCR_CTCIF2_Pos (21U)
  7840. #define DMA_LIFCR_CTCIF2_Msk (0x1U << DMA_LIFCR_CTCIF2_Pos) /*!< 0x00200000 */
  7841. #define DMA_LIFCR_CTCIF2 DMA_LIFCR_CTCIF2_Msk /*!< Stream 2 clear transfer complete interrupt flag */
  7842. #define DMA_LIFCR_CHTIF2_Pos (20U)
  7843. #define DMA_LIFCR_CHTIF2_Msk (0x1U << DMA_LIFCR_CHTIF2_Pos) /*!< 0x00100000 */
  7844. #define DMA_LIFCR_CHTIF2 DMA_LIFCR_CHTIF2_Msk /*!< Stream 2 clear half transfer interrupt flag */
  7845. #define DMA_LIFCR_CTEIF2_Pos (19U)
  7846. #define DMA_LIFCR_CTEIF2_Msk (0x1U << DMA_LIFCR_CTEIF2_Pos) /*!< 0x00080000 */
  7847. #define DMA_LIFCR_CTEIF2 DMA_LIFCR_CTEIF2_Msk /*!< Stream 2 clear transfer error interrupt flag */
  7848. #define DMA_LIFCR_CDMEIF2_Pos (18U)
  7849. #define DMA_LIFCR_CDMEIF2_Msk (0x1U << DMA_LIFCR_CDMEIF2_Pos) /*!< 0x00040000 */
  7850. #define DMA_LIFCR_CDMEIF2 DMA_LIFCR_CDMEIF2_Msk /*!< Stream 2 clear direct mode error interrupt flag */
  7851. #define DMA_LIFCR_CFEIF2_Pos (16U)
  7852. #define DMA_LIFCR_CFEIF2_Msk (0x1U << DMA_LIFCR_CFEIF2_Pos) /*!< 0x00010000 */
  7853. #define DMA_LIFCR_CFEIF2 DMA_LIFCR_CFEIF2_Msk /*!< Stream 2 clear FIFO error interrupt flag */
  7854. #define DMA_LIFCR_CTCIF1_Pos (11U)
  7855. #define DMA_LIFCR_CTCIF1_Msk (0x1U << DMA_LIFCR_CTCIF1_Pos) /*!< 0x00000800 */
  7856. #define DMA_LIFCR_CTCIF1 DMA_LIFCR_CTCIF1_Msk /*!< Stream 1 clear transfer complete interrupt flag */
  7857. #define DMA_LIFCR_CHTIF1_Pos (10U)
  7858. #define DMA_LIFCR_CHTIF1_Msk (0x1U << DMA_LIFCR_CHTIF1_Pos) /*!< 0x00000400 */
  7859. #define DMA_LIFCR_CHTIF1 DMA_LIFCR_CHTIF1_Msk /*!< Stream 1 clear half transfer interrupt flag */
  7860. #define DMA_LIFCR_CTEIF1_Pos (9U)
  7861. #define DMA_LIFCR_CTEIF1_Msk (0x1U << DMA_LIFCR_CTEIF1_Pos) /*!< 0x00000200 */
  7862. #define DMA_LIFCR_CTEIF1 DMA_LIFCR_CTEIF1_Msk /*!< Stream 1 clear transfer error interrupt flag */
  7863. #define DMA_LIFCR_CDMEIF1_Pos (8U)
  7864. #define DMA_LIFCR_CDMEIF1_Msk (0x1U << DMA_LIFCR_CDMEIF1_Pos) /*!< 0x00000100 */
  7865. #define DMA_LIFCR_CDMEIF1 DMA_LIFCR_CDMEIF1_Msk /*!< Stream 1 clear direct mode error interrupt flag */
  7866. #define DMA_LIFCR_CFEIF1_Pos (6U)
  7867. #define DMA_LIFCR_CFEIF1_Msk (0x1U << DMA_LIFCR_CFEIF1_Pos) /*!< 0x00000040 */
  7868. #define DMA_LIFCR_CFEIF1 DMA_LIFCR_CFEIF1_Msk /*!< Stream 1 clear FIFO error interrupt flag */
  7869. #define DMA_LIFCR_CTCIF0_Pos (5U)
  7870. #define DMA_LIFCR_CTCIF0_Msk (0x1U << DMA_LIFCR_CTCIF0_Pos) /*!< 0x00000020 */
  7871. #define DMA_LIFCR_CTCIF0 DMA_LIFCR_CTCIF0_Msk /*!< Stream 0 clear transfer complete interrupt flag */
  7872. #define DMA_LIFCR_CHTIF0_Pos (4U)
  7873. #define DMA_LIFCR_CHTIF0_Msk (0x1U << DMA_LIFCR_CHTIF0_Pos) /*!< 0x00000010 */
  7874. #define DMA_LIFCR_CHTIF0 DMA_LIFCR_CHTIF0_Msk /*!< Stream 0 clear half transfer interrupt flag */
  7875. #define DMA_LIFCR_CTEIF0_Pos (3U)
  7876. #define DMA_LIFCR_CTEIF0_Msk (0x1U << DMA_LIFCR_CTEIF0_Pos) /*!< 0x00000008 */
  7877. #define DMA_LIFCR_CTEIF0 DMA_LIFCR_CTEIF0_Msk /*!< Stream 0 clear transfer error interrupt flag */
  7878. #define DMA_LIFCR_CDMEIF0_Pos (2U)
  7879. #define DMA_LIFCR_CDMEIF0_Msk (0x1U << DMA_LIFCR_CDMEIF0_Pos) /*!< 0x00000004 */
  7880. #define DMA_LIFCR_CDMEIF0 DMA_LIFCR_CDMEIF0_Msk /*!< Stream 0 clear direct mode error interrupt flag */
  7881. #define DMA_LIFCR_CFEIF0_Pos (0U)
  7882. #define DMA_LIFCR_CFEIF0_Msk (0x1U << DMA_LIFCR_CFEIF0_Pos) /*!< 0x00000001 */
  7883. #define DMA_LIFCR_CFEIF0 DMA_LIFCR_CFEIF0_Msk /*!< Stream 0 clear FIFO error interrupt flag */
  7884. /******************** Bits definition for DMA_HIFCR register ****************/
  7885. #define DMA_HIFCR_CTCIF7_Pos (27U)
  7886. #define DMA_HIFCR_CTCIF7_Msk (0x1U << DMA_HIFCR_CTCIF7_Pos) /*!< 0x08000000 */
  7887. #define DMA_HIFCR_CTCIF7 DMA_HIFCR_CTCIF7_Msk /*!< Stream 7 clear transfer complete interrupt flag */
  7888. #define DMA_HIFCR_CHTIF7_Pos (26U)
  7889. #define DMA_HIFCR_CHTIF7_Msk (0x1U << DMA_HIFCR_CHTIF7_Pos) /*!< 0x04000000 */
  7890. #define DMA_HIFCR_CHTIF7 DMA_HIFCR_CHTIF7_Msk /*!< Stream 7 clear half transfer interrupt flag */
  7891. #define DMA_HIFCR_CTEIF7_Pos (25U)
  7892. #define DMA_HIFCR_CTEIF7_Msk (0x1U << DMA_HIFCR_CTEIF7_Pos) /*!< 0x02000000 */
  7893. #define DMA_HIFCR_CTEIF7 DMA_HIFCR_CTEIF7_Msk /*!< Stream 7 clear transfer error interrupt flag */
  7894. #define DMA_HIFCR_CDMEIF7_Pos (24U)
  7895. #define DMA_HIFCR_CDMEIF7_Msk (0x1U << DMA_HIFCR_CDMEIF7_Pos) /*!< 0x01000000 */
  7896. #define DMA_HIFCR_CDMEIF7 DMA_HIFCR_CDMEIF7_Msk /*!< Stream 7 clear direct mode error interrupt flag */
  7897. #define DMA_HIFCR_CFEIF7_Pos (22U)
  7898. #define DMA_HIFCR_CFEIF7_Msk (0x1U << DMA_HIFCR_CFEIF7_Pos) /*!< 0x00400000 */
  7899. #define DMA_HIFCR_CFEIF7 DMA_HIFCR_CFEIF7_Msk /*!< Stream 7 clear FIFO error interrupt flag */
  7900. #define DMA_HIFCR_CTCIF6_Pos (21U)
  7901. #define DMA_HIFCR_CTCIF6_Msk (0x1U << DMA_HIFCR_CTCIF6_Pos) /*!< 0x00200000 */
  7902. #define DMA_HIFCR_CTCIF6 DMA_HIFCR_CTCIF6_Msk /*!< Stream 6 clear transfer complete interrupt flag */
  7903. #define DMA_HIFCR_CHTIF6_Pos (20U)
  7904. #define DMA_HIFCR_CHTIF6_Msk (0x1U << DMA_HIFCR_CHTIF6_Pos) /*!< 0x00100000 */
  7905. #define DMA_HIFCR_CHTIF6 DMA_HIFCR_CHTIF6_Msk /*!< Stream 6 clear half transfer interrupt flag */
  7906. #define DMA_HIFCR_CTEIF6_Pos (19U)
  7907. #define DMA_HIFCR_CTEIF6_Msk (0x1U << DMA_HIFCR_CTEIF6_Pos) /*!< 0x00080000 */
  7908. #define DMA_HIFCR_CTEIF6 DMA_HIFCR_CTEIF6_Msk /*!< Stream 6 clear transfer error interrupt flag */
  7909. #define DMA_HIFCR_CDMEIF6_Pos (18U)
  7910. #define DMA_HIFCR_CDMEIF6_Msk (0x1U << DMA_HIFCR_CDMEIF6_Pos) /*!< 0x00040000 */
  7911. #define DMA_HIFCR_CDMEIF6 DMA_HIFCR_CDMEIF6_Msk /*!< Stream 6 clear direct mode error interrupt flag */
  7912. #define DMA_HIFCR_CFEIF6_Pos (16U)
  7913. #define DMA_HIFCR_CFEIF6_Msk (0x1U << DMA_HIFCR_CFEIF6_Pos) /*!< 0x00010000 */
  7914. #define DMA_HIFCR_CFEIF6 DMA_HIFCR_CFEIF6_Msk /*!< Stream 6 clear FIFO error interrupt flag */
  7915. #define DMA_HIFCR_CTCIF5_Pos (11U)
  7916. #define DMA_HIFCR_CTCIF5_Msk (0x1U << DMA_HIFCR_CTCIF5_Pos) /*!< 0x00000800 */
  7917. #define DMA_HIFCR_CTCIF5 DMA_HIFCR_CTCIF5_Msk /*!< Stream 5 clear transfer complete interrupt flag */
  7918. #define DMA_HIFCR_CHTIF5_Pos (10U)
  7919. #define DMA_HIFCR_CHTIF5_Msk (0x1U << DMA_HIFCR_CHTIF5_Pos) /*!< 0x00000400 */
  7920. #define DMA_HIFCR_CHTIF5 DMA_HIFCR_CHTIF5_Msk /*!< Stream 5 clear half transfer interrupt flag */
  7921. #define DMA_HIFCR_CTEIF5_Pos (9U)
  7922. #define DMA_HIFCR_CTEIF5_Msk (0x1U << DMA_HIFCR_CTEIF5_Pos) /*!< 0x00000200 */
  7923. #define DMA_HIFCR_CTEIF5 DMA_HIFCR_CTEIF5_Msk /*!< Stream 5 clear transfer error interrupt flag */
  7924. #define DMA_HIFCR_CDMEIF5_Pos (8U)
  7925. #define DMA_HIFCR_CDMEIF5_Msk (0x1U << DMA_HIFCR_CDMEIF5_Pos) /*!< 0x00000100 */
  7926. #define DMA_HIFCR_CDMEIF5 DMA_HIFCR_CDMEIF5_Msk /*!< Stream 5 clear direct mode error interrupt flag */
  7927. #define DMA_HIFCR_CFEIF5_Pos (6U)
  7928. #define DMA_HIFCR_CFEIF5_Msk (0x1U << DMA_HIFCR_CFEIF5_Pos) /*!< 0x00000040 */
  7929. #define DMA_HIFCR_CFEIF5 DMA_HIFCR_CFEIF5_Msk /*!< Stream 5 clear FIFO error interrupt flag */
  7930. #define DMA_HIFCR_CTCIF4_Pos (5U)
  7931. #define DMA_HIFCR_CTCIF4_Msk (0x1U << DMA_HIFCR_CTCIF4_Pos) /*!< 0x00000020 */
  7932. #define DMA_HIFCR_CTCIF4 DMA_HIFCR_CTCIF4_Msk /*!< Stream 4 clear transfer complete interrupt flag */
  7933. #define DMA_HIFCR_CHTIF4_Pos (4U)
  7934. #define DMA_HIFCR_CHTIF4_Msk (0x1U << DMA_HIFCR_CHTIF4_Pos) /*!< 0x00000010 */
  7935. #define DMA_HIFCR_CHTIF4 DMA_HIFCR_CHTIF4_Msk /*!< Stream 4 clear half transfer interrupt flag */
  7936. #define DMA_HIFCR_CTEIF4_Pos (3U)
  7937. #define DMA_HIFCR_CTEIF4_Msk (0x1U << DMA_HIFCR_CTEIF4_Pos) /*!< 0x00000008 */
  7938. #define DMA_HIFCR_CTEIF4 DMA_HIFCR_CTEIF4_Msk /*!< Stream 4 clear transfer error interrupt flag */
  7939. #define DMA_HIFCR_CDMEIF4_Pos (2U)
  7940. #define DMA_HIFCR_CDMEIF4_Msk (0x1U << DMA_HIFCR_CDMEIF4_Pos) /*!< 0x00000004 */
  7941. #define DMA_HIFCR_CDMEIF4 DMA_HIFCR_CDMEIF4_Msk /*!< Stream 4 clear direct mode error interrupt flag */
  7942. #define DMA_HIFCR_CFEIF4_Pos (0U)
  7943. #define DMA_HIFCR_CFEIF4_Msk (0x1U << DMA_HIFCR_CFEIF4_Pos) /*!< 0x00000001 */
  7944. #define DMA_HIFCR_CFEIF4 DMA_HIFCR_CFEIF4_Msk /*!< Stream 4 clear FIFO error interrupt flag */
  7945. /****************** Bit definition for DMA_SxPAR register ********************/
  7946. #define DMA_SxPAR_PA_Pos (0U)
  7947. #define DMA_SxPAR_PA_Msk (0xFFFFFFFFU << DMA_SxPAR_PA_Pos) /*!< 0xFFFFFFFF */
  7948. #define DMA_SxPAR_PA DMA_SxPAR_PA_Msk /*!< Peripheral Address */
  7949. /****************** Bit definition for DMA_SxM0AR register ********************/
  7950. #define DMA_SxM0AR_M0A_Pos (0U)
  7951. #define DMA_SxM0AR_M0A_Msk (0xFFFFFFFFU << DMA_SxM0AR_M0A_Pos) /*!< 0xFFFFFFFF */
  7952. #define DMA_SxM0AR_M0A DMA_SxM0AR_M0A_Msk /*!< Memory 0 Address */
  7953. /****************** Bit definition for DMA_SxM1AR register ********************/
  7954. #define DMA_SxM1AR_M1A_Pos (0U)
  7955. #define DMA_SxM1AR_M1A_Msk (0xFFFFFFFFU << DMA_SxM1AR_M1A_Pos) /*!< 0xFFFFFFFF */
  7956. #define DMA_SxM1AR_M1A DMA_SxM1AR_M1A_Msk /*!< Memory 1 Address */
  7957. /******************************************************************************/
  7958. /* */
  7959. /* DMAMUX Controller */
  7960. /* */
  7961. /******************************************************************************/
  7962. /******************** Bits definition for DMAMUX_CxCR register **************/
  7963. #define DMAMUX_CxCR_DMAREQ_ID_Pos (0U)
  7964. #define DMAMUX_CxCR_DMAREQ_ID_Msk (0xFFU << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x000000FF */
  7965. #define DMAMUX_CxCR_DMAREQ_ID DMAMUX_CxCR_DMAREQ_ID_Msk /*!< DMA request identification */
  7966. #define DMAMUX_CxCR_DMAREQ_ID_0 (0x01U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000001 */
  7967. #define DMAMUX_CxCR_DMAREQ_ID_1 (0x02U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000002 */
  7968. #define DMAMUX_CxCR_DMAREQ_ID_2 (0x04U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000004 */
  7969. #define DMAMUX_CxCR_DMAREQ_ID_3 (0x08U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000008 */
  7970. #define DMAMUX_CxCR_DMAREQ_ID_4 (0x10U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000010 */
  7971. #define DMAMUX_CxCR_DMAREQ_ID_5 (0x20U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000020 */
  7972. #define DMAMUX_CxCR_DMAREQ_ID_6 (0x40U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000040 */
  7973. #define DMAMUX_CxCR_DMAREQ_ID_7 (0x80U << DMAMUX_CxCR_DMAREQ_ID_Pos) /*!< 0x00000080 */
  7974. #define DMAMUX_CxCR_SOIE_Pos (8U)
  7975. #define DMAMUX_CxCR_SOIE_Msk (0x1U << DMAMUX_CxCR_SOIE_Pos) /*!< 0x00000100 */
  7976. #define DMAMUX_CxCR_SOIE DMAMUX_CxCR_SOIE_Msk /*!< Synchronization overrun interrupt enable */
  7977. #define DMAMUX_CxCR_EGE_Pos (9U)
  7978. #define DMAMUX_CxCR_EGE_Msk (0x1U << DMAMUX_CxCR_EGE_Pos) /*!< 0x00000200 */
  7979. #define DMAMUX_CxCR_EGE DMAMUX_CxCR_EGE_Msk /*!< Event generation enable */
  7980. #define DMAMUX_CxCR_SE_Pos (16U)
  7981. #define DMAMUX_CxCR_SE_Msk (0x1U << DMAMUX_CxCR_SE_Pos) /*!< 0x00010000 */
  7982. #define DMAMUX_CxCR_SE DMAMUX_CxCR_SE_Msk /*!< Synchronization enable */
  7983. #define DMAMUX_CxCR_SPOL_Pos (17U)
  7984. #define DMAMUX_CxCR_SPOL_Msk (0x3U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00060000 */
  7985. #define DMAMUX_CxCR_SPOL DMAMUX_CxCR_SPOL_Msk /*!< Synchronization polarity */
  7986. #define DMAMUX_CxCR_SPOL_0 (0x1U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00020000 */
  7987. #define DMAMUX_CxCR_SPOL_1 (0x2U << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00040000 */
  7988. #define DMAMUX_CxCR_NBREQ_Pos (19U)
  7989. #define DMAMUX_CxCR_NBREQ_Msk (0x1FU << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00F80000 */
  7990. #define DMAMUX_CxCR_NBREQ DMAMUX_CxCR_NBREQ_Msk /*!< Number of DMA requests minus 1 to forward */
  7991. #define DMAMUX_CxCR_NBREQ_0 (0x01U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00080000 */
  7992. #define DMAMUX_CxCR_NBREQ_1 (0x02U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00100000 */
  7993. #define DMAMUX_CxCR_NBREQ_2 (0x04U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00200000 */
  7994. #define DMAMUX_CxCR_NBREQ_3 (0x08U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00400000 */
  7995. #define DMAMUX_CxCR_NBREQ_4 (0x10U << DMAMUX_CxCR_NBREQ_Pos) /*!< 0x00800000 */
  7996. #define DMAMUX_CxCR_SYNC_ID_Pos (24U)
  7997. #define DMAMUX_CxCR_SYNC_ID_Msk (0x1FU << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x1F000000 */
  7998. #define DMAMUX_CxCR_SYNC_ID DMAMUX_CxCR_SYNC_ID_Msk /*!< Synchronization identification */
  7999. #define DMAMUX_CxCR_SYNC_ID_0 (0x01U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x01000000 */
  8000. #define DMAMUX_CxCR_SYNC_ID_1 (0x02U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x02000000 */
  8001. #define DMAMUX_CxCR_SYNC_ID_2 (0x04U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x04000000 */
  8002. #define DMAMUX_CxCR_SYNC_ID_3 (0x08U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x08000000 */
  8003. #define DMAMUX_CxCR_SYNC_ID_4 (0x10U << DMAMUX_CxCR_SYNC_ID_Pos) /*!< 0x10000000 */
  8004. /******************** Bits definition for DMAMUX_CSR register **************/
  8005. #define DMAMUX_CSR_SOF0_Pos (0U)
  8006. #define DMAMUX_CSR_SOF0_Msk (0x1U << DMAMUX_CSR_SOF0_Pos) /*!< 0x00000001 */
  8007. #define DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0_Msk /*!< Channel 0 Synchronization overrun event flag */
  8008. #define DMAMUX_CSR_SOF1_Pos (1U)
  8009. #define DMAMUX_CSR_SOF1_Msk (0x1U << DMAMUX_CSR_SOF1_Pos) /*!< 0x00000002 */
  8010. #define DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1_Msk /*!< Channel 1 Synchronization overrun event flag */
  8011. #define DMAMUX_CSR_SOF2_Pos (2U)
  8012. #define DMAMUX_CSR_SOF2_Msk (0x1U << DMAMUX_CSR_SOF2_Pos) /*!< 0x00000004 */
  8013. #define DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2_Msk /*!< Channel 2 Synchronization overrun event flag */
  8014. #define DMAMUX_CSR_SOF3_Pos (3U)
  8015. #define DMAMUX_CSR_SOF3_Msk (0x1U << DMAMUX_CSR_SOF3_Pos) /*!< 0x00000008 */
  8016. #define DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3_Msk /*!< Channel 3 Synchronization overrun event flag */
  8017. #define DMAMUX_CSR_SOF4_Pos (4U)
  8018. #define DMAMUX_CSR_SOF4_Msk (0x1U << DMAMUX_CSR_SOF4_Pos) /*!< 0x00000010 */
  8019. #define DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4_Msk /*!< Channel 4 Synchronization overrun event flag */
  8020. #define DMAMUX_CSR_SOF5_Pos (5U)
  8021. #define DMAMUX_CSR_SOF5_Msk (0x1U << DMAMUX_CSR_SOF5_Pos) /*!< 0x00000020 */
  8022. #define DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5_Msk /*!< Channel 5 Synchronization overrun event flag */
  8023. #define DMAMUX_CSR_SOF6_Pos (6U)
  8024. #define DMAMUX_CSR_SOF6_Msk (0x1U << DMAMUX_CSR_SOF6_Pos) /*!< 0x00000040 */
  8025. #define DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6_Msk /*!< Channel 6 Synchronization overrun event flag */
  8026. #define DMAMUX_CSR_SOF7_Pos (7U)
  8027. #define DMAMUX_CSR_SOF7_Msk (0x1U << DMAMUX_CSR_SOF7_Pos) /*!< 0x00000080 */
  8028. #define DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7_Msk /*!< Channel 7 Synchronization overrun event flag */
  8029. #define DMAMUX_CSR_SOF8_Pos (8U)
  8030. #define DMAMUX_CSR_SOF8_Msk (0x1U << DMAMUX_CSR_SOF8_Pos) /*!< 0x00000100 */
  8031. #define DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8_Msk /*!< Channel 8 Synchronization overrun event flag */
  8032. #define DMAMUX_CSR_SOF9_Pos (9U)
  8033. #define DMAMUX_CSR_SOF9_Msk (0x1U << DMAMUX_CSR_SOF9_Pos) /*!< 0x00000200 */
  8034. #define DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9_Msk /*!< Channel 9 Synchronization overrun event flag */
  8035. #define DMAMUX_CSR_SOF10_Pos (10U)
  8036. #define DMAMUX_CSR_SOF10_Msk (0x1U << DMAMUX_CSR_SOF10_Pos) /*!< 0x00000400 */
  8037. #define DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10_Msk /*!< Channel 10 Synchronization overrun event flag */
  8038. #define DMAMUX_CSR_SOF11_Pos (11U)
  8039. #define DMAMUX_CSR_SOF11_Msk (0x1U << DMAMUX_CSR_SOF11_Pos) /*!< 0x00000800 */
  8040. #define DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11_Msk /*!< Channel 11 Synchronization overrun event flag */
  8041. #define DMAMUX_CSR_SOF12_Pos (12U)
  8042. #define DMAMUX_CSR_SOF12_Msk (0x1U << DMAMUX_CSR_SOF12_Pos) /*!< 0x00001000 */
  8043. #define DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12_Msk /*!< Channel 12 Synchronization overrun event flag */
  8044. #define DMAMUX_CSR_SOF13_Pos (13U)
  8045. #define DMAMUX_CSR_SOF13_Msk (0x1U << DMAMUX_CSR_SOF13_Pos) /*!< 0x00002000 */
  8046. #define DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13_Msk /*!< Channel 13 Synchronization overrun event flag */
  8047. #define DMAMUX_CSR_SOF14_Pos (14U)
  8048. #define DMAMUX_CSR_SOF14_Msk (0x1U << DMAMUX_CSR_SOF14_Pos) /*!< 0x00004000 */
  8049. #define DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14_Msk /*!< Channel 14 Synchronization overrun event flag */
  8050. #define DMAMUX_CSR_SOF15_Pos (15U)
  8051. #define DMAMUX_CSR_SOF15_Msk (0x1U << DMAMUX_CSR_SOF15_Pos) /*!< 0x00008000 */
  8052. #define DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15_Msk /*!< Channel 15 Synchronization overrun event flag */
  8053. /******************** Bits definition for DMAMUX_CFR register **************/
  8054. #define DMAMUX_CFR_CSOF0_Pos (0U)
  8055. #define DMAMUX_CFR_CSOF0_Msk (0x1U << DMAMUX_CFR_CSOF0_Pos) /*!< 0x00000001 */
  8056. #define DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0_Msk /*!< Channel 0 Clear synchronization overrun event flag */
  8057. #define DMAMUX_CFR_CSOF1_Pos (1U)
  8058. #define DMAMUX_CFR_CSOF1_Msk (0x1U << DMAMUX_CFR_CSOF1_Pos) /*!< 0x00000002 */
  8059. #define DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1_Msk /*!< Channel 1 Clear synchronization overrun event flag */
  8060. #define DMAMUX_CFR_CSOF2_Pos (2U)
  8061. #define DMAMUX_CFR_CSOF2_Msk (0x1U << DMAMUX_CFR_CSOF2_Pos) /*!< 0x00000004 */
  8062. #define DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2_Msk /*!< Channel 2 Clear synchronization overrun event flag */
  8063. #define DMAMUX_CFR_CSOF3_Pos (3U)
  8064. #define DMAMUX_CFR_CSOF3_Msk (0x1U << DMAMUX_CFR_CSOF3_Pos) /*!< 0x00000008 */
  8065. #define DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3_Msk /*!< Channel 3 Clear synchronization overrun event flag */
  8066. #define DMAMUX_CFR_CSOF4_Pos (4U)
  8067. #define DMAMUX_CFR_CSOF4_Msk (0x1U << DMAMUX_CFR_CSOF4_Pos) /*!< 0x00000010 */
  8068. #define DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4_Msk /*!< Channel 4 Clear synchronization overrun event flag */
  8069. #define DMAMUX_CFR_CSOF5_Pos (5U)
  8070. #define DMAMUX_CFR_CSOF5_Msk (0x1U << DMAMUX_CFR_CSOF5_Pos) /*!< 0x00000020 */
  8071. #define DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5_Msk /*!< Channel 5 Clear synchronization overrun event flag */
  8072. #define DMAMUX_CFR_CSOF6_Pos (6U)
  8073. #define DMAMUX_CFR_CSOF6_Msk (0x1U << DMAMUX_CFR_CSOF6_Pos) /*!< 0x00000040 */
  8074. #define DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6_Msk /*!< Channel 6 Clear synchronization overrun event flag */
  8075. #define DMAMUX_CFR_CSOF7_Pos (7U)
  8076. #define DMAMUX_CFR_CSOF7_Msk (0x1U << DMAMUX_CFR_CSOF7_Pos) /*!< 0x00000080 */
  8077. #define DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7_Msk /*!< Channel 7 Clear synchronization overrun event flag */
  8078. #define DMAMUX_CFR_CSOF8_Pos (8U)
  8079. #define DMAMUX_CFR_CSOF8_Msk (0x1U << DMAMUX_CFR_CSOF8_Pos) /*!< 0x00000100 */
  8080. #define DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8_Msk /*!< Channel 8 Clear synchronization overrun event flag */
  8081. #define DMAMUX_CFR_CSOF9_Pos (9U)
  8082. #define DMAMUX_CFR_CSOF9_Msk (0x1U << DMAMUX_CFR_CSOF9_Pos) /*!< 0x00000200 */
  8083. #define DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9_Msk /*!< Channel 9 Clear synchronization overrun event flag */
  8084. #define DMAMUX_CFR_CSOF10_Pos (10U)
  8085. #define DMAMUX_CFR_CSOF10_Msk (0x1U << DMAMUX_CFR_CSOF10_Pos) /*!< 0x00000400 */
  8086. #define DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10_Msk /*!< Channel 10 Clear synchronization overrun event flag */
  8087. #define DMAMUX_CFR_CSOF11_Pos (11U)
  8088. #define DMAMUX_CFR_CSOF11_Msk (0x1U << DMAMUX_CFR_CSOF11_Pos) /*!< 0x00000800 */
  8089. #define DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11_Msk /*!< Channel 11 Clear synchronization overrun event flag */
  8090. #define DMAMUX_CFR_CSOF12_Pos (12U)
  8091. #define DMAMUX_CFR_CSOF12_Msk (0x1U << DMAMUX_CFR_CSOF12_Pos) /*!< 0x00001000 */
  8092. #define DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12_Msk /*!< Channel 12 Clear synchronization overrun event flag */
  8093. #define DMAMUX_CFR_CSOF13_Pos (13U)
  8094. #define DMAMUX_CFR_CSOF13_Msk (0x1U << DMAMUX_CFR_CSOF13_Pos) /*!< 0x00002000 */
  8095. #define DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13_Msk /*!< Channel 13 Clear synchronization overrun event flag */
  8096. #define DMAMUX_CFR_CSOF14_Pos (14U)
  8097. #define DMAMUX_CFR_CSOF14_Msk (0x1U << DMAMUX_CFR_CSOF14_Pos) /*!< 0x00004000 */
  8098. #define DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14_Msk /*!< Channel 14 Clear synchronization overrun event flag */
  8099. #define DMAMUX_CFR_CSOF15_Pos (15U)
  8100. #define DMAMUX_CFR_CSOF15_Msk (0x1U << DMAMUX_CFR_CSOF15_Pos) /*!< 0x00008000 */
  8101. #define DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15_Msk /*!< Channel 15 Clear synchronization overrun event flag */
  8102. /******************** Bits definition for DMAMUX_RGxCR register ************/
  8103. #define DMAMUX_RGxCR_SIG_ID_Pos (0U)
  8104. #define DMAMUX_RGxCR_SIG_ID_Msk (0x1FU << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x0000001F */
  8105. #define DMAMUX_RGxCR_SIG_ID DMAMUX_RGxCR_SIG_ID_Msk /*!< Signal identification */
  8106. #define DMAMUX_RGxCR_SIG_ID_0 (0x01U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000001 */
  8107. #define DMAMUX_RGxCR_SIG_ID_1 (0x02U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000002 */
  8108. #define DMAMUX_RGxCR_SIG_ID_2 (0x04U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000004 */
  8109. #define DMAMUX_RGxCR_SIG_ID_3 (0x08U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000008 */
  8110. #define DMAMUX_RGxCR_SIG_ID_4 (0x10U << DMAMUX_RGxCR_SIG_ID_Pos) /*!< 0x00000010 */
  8111. #define DMAMUX_RGxCR_OIE_Pos (8U)
  8112. #define DMAMUX_RGxCR_OIE_Msk (0x1U << DMAMUX_RGxCR_OIE_Pos) /*!< 0x00000100 */
  8113. #define DMAMUX_RGxCR_OIE DMAMUX_RGxCR_OIE_Msk /*!< Trigger overrun interrupt enable */
  8114. #define DMAMUX_RGxCR_GE_Pos (16U)
  8115. #define DMAMUX_RGxCR_GE_Msk (0x1U << DMAMUX_RGxCR_GE_Pos) /*!< 0x00010000 */
  8116. #define DMAMUX_RGxCR_GE DMAMUX_RGxCR_GE_Msk /*!< DMA request generator enable */
  8117. #define DMAMUX_RGxCR_GPOL_Pos (17U)
  8118. #define DMAMUX_RGxCR_GPOL_Msk (0x3U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00060000 */
  8119. #define DMAMUX_RGxCR_GPOL DMAMUX_RGxCR_GPOL_Msk /*!< DMA request generator trigger polarity */
  8120. #define DMAMUX_RGxCR_GPOL_0 (0x1U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00020000 */
  8121. #define DMAMUX_RGxCR_GPOL_1 (0x2U << DMAMUX_RGxCR_GPOL_Pos) /*!< 0x00040000 */
  8122. #define DMAMUX_RGxCR_NBREQ_Pos (19U)
  8123. #define DMAMUX_RGxCR_NBREQ_Msk (0x1FU << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00F80000 */
  8124. #define DMAMUX_RGxCR_NBREQ DMAMUX_RGxCR_NBREQ_Msk /*!< Number of DMA requests to be generated */
  8125. #define DMAMUX_RGxCR_NBREQ_0 (0x01U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00080000 */
  8126. #define DMAMUX_RGxCR_NBREQ_1 (0x02U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00100000 */
  8127. #define DMAMUX_RGxCR_NBREQ_2 (0x04U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00200000 */
  8128. #define DMAMUX_RGxCR_NBREQ_3 (0x08U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00400000 */
  8129. #define DMAMUX_RGxCR_NBREQ_4 (0x10U << DMAMUX_RGxCR_NBREQ_Pos) /*!< 0x00800000 */
  8130. /******************** Bits definition for DMAMUX_RGSR register **************/
  8131. #define DMAMUX_RGSR_OF0_Pos (0U)
  8132. #define DMAMUX_RGSR_OF0_Msk (0x1U << DMAMUX_RGSR_OF0_Pos) /*!< 0x00000001 */
  8133. #define DMAMUX_RGSR_OF0 DMAMUX_RGSR_OF0_Msk /*!< Request generator channel 0 Trigger overrun event flag */
  8134. #define DMAMUX_RGSR_OF1_Pos (1U)
  8135. #define DMAMUX_RGSR_OF1_Msk (0x1U << DMAMUX_RGSR_OF1_Pos) /*!< 0x00000002 */
  8136. #define DMAMUX_RGSR_OF1 DMAMUX_RGSR_OF1_Msk /*!< Request generator channel 1 Trigger overrun event flag */
  8137. #define DMAMUX_RGSR_OF2_Pos (2U)
  8138. #define DMAMUX_RGSR_OF2_Msk (0x1U << DMAMUX_RGSR_OF2_Pos) /*!< 0x00000004 */
  8139. #define DMAMUX_RGSR_OF2 DMAMUX_RGSR_OF2_Msk /*!< Request generator channel 2 Trigger overrun event flag */
  8140. #define DMAMUX_RGSR_OF3_Pos (3U)
  8141. #define DMAMUX_RGSR_OF3_Msk (0x1U << DMAMUX_RGSR_OF3_Pos) /*!< 0x00000008 */
  8142. #define DMAMUX_RGSR_OF3 DMAMUX_RGSR_OF3_Msk /*!< Request generator channel 3 Trigger overrun event flag */
  8143. #define DMAMUX_RGSR_OF4_Pos (4U)
  8144. #define DMAMUX_RGSR_OF4_Msk (0x1U << DMAMUX_RGSR_OF4_Pos) /*!< 0x00000010 */
  8145. #define DMAMUX_RGSR_OF4 DMAMUX_RGSR_OF4_Msk /*!< Request generator channel 4 Trigger overrun event flag */
  8146. #define DMAMUX_RGSR_OF5_Pos (5U)
  8147. #define DMAMUX_RGSR_OF5_Msk (0x1U << DMAMUX_RGSR_OF5_Pos) /*!< 0x00000020 */
  8148. #define DMAMUX_RGSR_OF5 DMAMUX_RGSR_OF5_Msk /*!< Request generator channel 5 Trigger overrun event flag */
  8149. #define DMAMUX_RGSR_OF6_Pos (6U)
  8150. #define DMAMUX_RGSR_OF6_Msk (0x1U << DMAMUX_RGSR_OF6_Pos) /*!< 0x00000040 */
  8151. #define DMAMUX_RGSR_OF6 DMAMUX_RGSR_OF6_Msk /*!< Request generator channel 6 Trigger overrun event flag */
  8152. #define DMAMUX_RGSR_OF7_Pos (7U)
  8153. #define DMAMUX_RGSR_OF7_Msk (0x1U << DMAMUX_RGSR_OF7_Pos) /*!< 0x00000080 */
  8154. #define DMAMUX_RGSR_OF7 DMAMUX_RGSR_OF7_Msk /*!< Request generator channel 7 Trigger overrun event flag */
  8155. /******************** Bits definition for DMAMUX_RGCFR register **************/
  8156. #define DMAMUX_RGCFR_COF0_Pos (0U)
  8157. #define DMAMUX_RGCFR_COF0_Msk (0x1U << DMAMUX_RGCFR_COF0_Pos) /*!< 0x00000001 */
  8158. #define DMAMUX_RGCFR_COF0 DMAMUX_RGCFR_COF0_Msk /*!< Request generator channel 0 Clear trigger overrun event flag */
  8159. #define DMAMUX_RGCFR_COF1_Pos (1U)
  8160. #define DMAMUX_RGCFR_COF1_Msk (0x1U << DMAMUX_RGCFR_COF1_Pos) /*!< 0x00000002 */
  8161. #define DMAMUX_RGCFR_COF1 DMAMUX_RGCFR_COF1_Msk /*!< Request generator channel 1 Clear trigger overrun event flag */
  8162. #define DMAMUX_RGCFR_COF2_Pos (2U)
  8163. #define DMAMUX_RGCFR_COF2_Msk (0x1U << DMAMUX_RGCFR_COF2_Pos) /*!< 0x00000004 */
  8164. #define DMAMUX_RGCFR_COF2 DMAMUX_RGCFR_COF2_Msk /*!< Request generator channel 2 Clear trigger overrun event flag */
  8165. #define DMAMUX_RGCFR_COF3_Pos (3U)
  8166. #define DMAMUX_RGCFR_COF3_Msk (0x1U << DMAMUX_RGCFR_COF3_Pos) /*!< 0x00000008 */
  8167. #define DMAMUX_RGCFR_COF3 DMAMUX_RGCFR_COF3_Msk /*!< Request generator channel 3 Clear trigger overrun event flag */
  8168. #define DMAMUX_RGCFR_COF4_Pos (4U)
  8169. #define DMAMUX_RGCFR_COF4_Msk (0x1U << DMAMUX_RGCFR_COF4_Pos) /*!< 0x00000010 */
  8170. #define DMAMUX_RGCFR_COF4 DMAMUX_RGCFR_COF4_Msk /*!< Request generator channel 4 Clear trigger overrun event flag */
  8171. #define DMAMUX_RGCFR_COF5_Pos (5U)
  8172. #define DMAMUX_RGCFR_COF5_Msk (0x1U << DMAMUX_RGCFR_COF5_Pos) /*!< 0x00000020 */
  8173. #define DMAMUX_RGCFR_COF5 DMAMUX_RGCFR_COF5_Msk /*!< Request generator channel 5 Clear trigger overrun event flag */
  8174. #define DMAMUX_RGCFR_COF6_Pos (6U)
  8175. #define DMAMUX_RGCFR_COF6_Msk (0x1U << DMAMUX_RGCFR_COF6_Pos) /*!< 0x00000040 */
  8176. #define DMAMUX_RGCFR_COF6 DMAMUX_RGCFR_COF6_Msk /*!< Request generator channel 6 Clear trigger overrun event flag */
  8177. #define DMAMUX_RGCFR_COF7_Pos (7U)
  8178. #define DMAMUX_RGCFR_COF7_Msk (0x1U << DMAMUX_RGCFR_COF7_Pos) /*!< 0x00000080 */
  8179. #define DMAMUX_RGCFR_COF7 DMAMUX_RGCFR_COF7_Msk /*!< Request generator channel 7 Clear trigger overrun event flag */
  8180. /******************************************************************************/
  8181. /* */
  8182. /* AHB Master DMA2D Controller (DMA2D) */
  8183. /* */
  8184. /******************************************************************************/
  8185. /******************** Bit definition for DMA2D_CR register ******************/
  8186. #define DMA2D_CR_START_Pos (0U)
  8187. #define DMA2D_CR_START_Msk (0x1U << DMA2D_CR_START_Pos) /*!< 0x00000001 */
  8188. #define DMA2D_CR_START DMA2D_CR_START_Msk /*!< Start transfer */
  8189. #define DMA2D_CR_SUSP_Pos (1U)
  8190. #define DMA2D_CR_SUSP_Msk (0x1U << DMA2D_CR_SUSP_Pos) /*!< 0x00000002 */
  8191. #define DMA2D_CR_SUSP DMA2D_CR_SUSP_Msk /*!< Suspend transfer */
  8192. #define DMA2D_CR_ABORT_Pos (2U)
  8193. #define DMA2D_CR_ABORT_Msk (0x1U << DMA2D_CR_ABORT_Pos) /*!< 0x00000004 */
  8194. #define DMA2D_CR_ABORT DMA2D_CR_ABORT_Msk /*!< Abort transfer */
  8195. #define DMA2D_CR_TEIE_Pos (8U)
  8196. #define DMA2D_CR_TEIE_Msk (0x1U << DMA2D_CR_TEIE_Pos) /*!< 0x00000100 */
  8197. #define DMA2D_CR_TEIE DMA2D_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  8198. #define DMA2D_CR_TCIE_Pos (9U)
  8199. #define DMA2D_CR_TCIE_Msk (0x1U << DMA2D_CR_TCIE_Pos) /*!< 0x00000200 */
  8200. #define DMA2D_CR_TCIE DMA2D_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  8201. #define DMA2D_CR_TWIE_Pos (10U)
  8202. #define DMA2D_CR_TWIE_Msk (0x1U << DMA2D_CR_TWIE_Pos) /*!< 0x00000400 */
  8203. #define DMA2D_CR_TWIE DMA2D_CR_TWIE_Msk /*!< Transfer Watermark Interrupt Enable */
  8204. #define DMA2D_CR_CAEIE_Pos (11U)
  8205. #define DMA2D_CR_CAEIE_Msk (0x1U << DMA2D_CR_CAEIE_Pos) /*!< 0x00000800 */
  8206. #define DMA2D_CR_CAEIE DMA2D_CR_CAEIE_Msk /*!< CLUT Access Error Interrupt Enable */
  8207. #define DMA2D_CR_CTCIE_Pos (12U)
  8208. #define DMA2D_CR_CTCIE_Msk (0x1U << DMA2D_CR_CTCIE_Pos) /*!< 0x00001000 */
  8209. #define DMA2D_CR_CTCIE DMA2D_CR_CTCIE_Msk /*!< CLUT Transfer Complete Interrupt Enable */
  8210. #define DMA2D_CR_CEIE_Pos (13U)
  8211. #define DMA2D_CR_CEIE_Msk (0x1U << DMA2D_CR_CEIE_Pos) /*!< 0x00002000 */
  8212. #define DMA2D_CR_CEIE DMA2D_CR_CEIE_Msk /*!< Configuration Error Interrupt Enable */
  8213. #define DMA2D_CR_MODE_Pos (16U)
  8214. #define DMA2D_CR_MODE_Msk (0x3U << DMA2D_CR_MODE_Pos) /*!< 0x00030000 */
  8215. #define DMA2D_CR_MODE DMA2D_CR_MODE_Msk /*!< DMA2D Mode[1:0] */
  8216. #define DMA2D_CR_MODE_0 (0x1U << DMA2D_CR_MODE_Pos) /*!< 0x00010000 */
  8217. #define DMA2D_CR_MODE_1 (0x2U << DMA2D_CR_MODE_Pos) /*!< 0x00020000 */
  8218. /******************** Bit definition for DMA2D_ISR register *****************/
  8219. #define DMA2D_ISR_TEIF_Pos (0U)
  8220. #define DMA2D_ISR_TEIF_Msk (0x1U << DMA2D_ISR_TEIF_Pos) /*!< 0x00000001 */
  8221. #define DMA2D_ISR_TEIF DMA2D_ISR_TEIF_Msk /*!< Transfer Error Interrupt Flag */
  8222. #define DMA2D_ISR_TCIF_Pos (1U)
  8223. #define DMA2D_ISR_TCIF_Msk (0x1U << DMA2D_ISR_TCIF_Pos) /*!< 0x00000002 */
  8224. #define DMA2D_ISR_TCIF DMA2D_ISR_TCIF_Msk /*!< Transfer Complete Interrupt Flag */
  8225. #define DMA2D_ISR_TWIF_Pos (2U)
  8226. #define DMA2D_ISR_TWIF_Msk (0x1U << DMA2D_ISR_TWIF_Pos) /*!< 0x00000004 */
  8227. #define DMA2D_ISR_TWIF DMA2D_ISR_TWIF_Msk /*!< Transfer Watermark Interrupt Flag */
  8228. #define DMA2D_ISR_CAEIF_Pos (3U)
  8229. #define DMA2D_ISR_CAEIF_Msk (0x1U << DMA2D_ISR_CAEIF_Pos) /*!< 0x00000008 */
  8230. #define DMA2D_ISR_CAEIF DMA2D_ISR_CAEIF_Msk /*!< CLUT Access Error Interrupt Flag */
  8231. #define DMA2D_ISR_CTCIF_Pos (4U)
  8232. #define DMA2D_ISR_CTCIF_Msk (0x1U << DMA2D_ISR_CTCIF_Pos) /*!< 0x00000010 */
  8233. #define DMA2D_ISR_CTCIF DMA2D_ISR_CTCIF_Msk /*!< CLUT Transfer Complete Interrupt Flag */
  8234. #define DMA2D_ISR_CEIF_Pos (5U)
  8235. #define DMA2D_ISR_CEIF_Msk (0x1U << DMA2D_ISR_CEIF_Pos) /*!< 0x00000020 */
  8236. #define DMA2D_ISR_CEIF DMA2D_ISR_CEIF_Msk /*!< Configuration Error Interrupt Flag */
  8237. /******************** Bit definition for DMA2D_IFCR register ****************/
  8238. #define DMA2D_IFCR_CTEIF_Pos (0U)
  8239. #define DMA2D_IFCR_CTEIF_Msk (0x1U << DMA2D_IFCR_CTEIF_Pos) /*!< 0x00000001 */
  8240. #define DMA2D_IFCR_CTEIF DMA2D_IFCR_CTEIF_Msk /*!< Clears Transfer Error Interrupt Flag */
  8241. #define DMA2D_IFCR_CTCIF_Pos (1U)
  8242. #define DMA2D_IFCR_CTCIF_Msk (0x1U << DMA2D_IFCR_CTCIF_Pos) /*!< 0x00000002 */
  8243. #define DMA2D_IFCR_CTCIF DMA2D_IFCR_CTCIF_Msk /*!< Clears Transfer Complete Interrupt Flag */
  8244. #define DMA2D_IFCR_CTWIF_Pos (2U)
  8245. #define DMA2D_IFCR_CTWIF_Msk (0x1U << DMA2D_IFCR_CTWIF_Pos) /*!< 0x00000004 */
  8246. #define DMA2D_IFCR_CTWIF DMA2D_IFCR_CTWIF_Msk /*!< Clears Transfer Watermark Interrupt Flag */
  8247. #define DMA2D_IFCR_CAECIF_Pos (3U)
  8248. #define DMA2D_IFCR_CAECIF_Msk (0x1U << DMA2D_IFCR_CAECIF_Pos) /*!< 0x00000008 */
  8249. #define DMA2D_IFCR_CAECIF DMA2D_IFCR_CAECIF_Msk /*!< Clears CLUT Access Error Interrupt Flag */
  8250. #define DMA2D_IFCR_CCTCIF_Pos (4U)
  8251. #define DMA2D_IFCR_CCTCIF_Msk (0x1U << DMA2D_IFCR_CCTCIF_Pos) /*!< 0x00000010 */
  8252. #define DMA2D_IFCR_CCTCIF DMA2D_IFCR_CCTCIF_Msk /*!< Clears CLUT Transfer Complete Interrupt Flag */
  8253. #define DMA2D_IFCR_CCEIF_Pos (5U)
  8254. #define DMA2D_IFCR_CCEIF_Msk (0x1U << DMA2D_IFCR_CCEIF_Pos) /*!< 0x00000020 */
  8255. #define DMA2D_IFCR_CCEIF DMA2D_IFCR_CCEIF_Msk /*!< Clears Configuration Error Interrupt Flag */
  8256. /******************** Bit definition for DMA2D_FGMAR register ***************/
  8257. #define DMA2D_FGMAR_MA_Pos (0U)
  8258. #define DMA2D_FGMAR_MA_Msk (0xFFFFFFFFU << DMA2D_FGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8259. #define DMA2D_FGMAR_MA DMA2D_FGMAR_MA_Msk /*!< Foreground Memory Address */
  8260. /******************** Bit definition for DMA2D_FGOR register ****************/
  8261. #define DMA2D_FGOR_LO_Pos (0U)
  8262. #define DMA2D_FGOR_LO_Msk (0x3FFFU << DMA2D_FGOR_LO_Pos) /*!< 0x00003FFF */
  8263. #define DMA2D_FGOR_LO DMA2D_FGOR_LO_Msk /*!< Line Offset */
  8264. /******************** Bit definition for DMA2D_BGMAR register ***************/
  8265. #define DMA2D_BGMAR_MA_Pos (0U)
  8266. #define DMA2D_BGMAR_MA_Msk (0xFFFFFFFFU << DMA2D_BGMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8267. #define DMA2D_BGMAR_MA DMA2D_BGMAR_MA_Msk /*!< Background Memory Address */
  8268. /******************** Bit definition for DMA2D_BGOR register ****************/
  8269. #define DMA2D_BGOR_LO_Pos (0U)
  8270. #define DMA2D_BGOR_LO_Msk (0x3FFFU << DMA2D_BGOR_LO_Pos) /*!< 0x00003FFF */
  8271. #define DMA2D_BGOR_LO DMA2D_BGOR_LO_Msk /*!< Line Offset */
  8272. /******************** Bit definition for DMA2D_FGPFCCR register *************/
  8273. #define DMA2D_FGPFCCR_CM_Pos (0U)
  8274. #define DMA2D_FGPFCCR_CM_Msk (0xFU << DMA2D_FGPFCCR_CM_Pos) /*!< 0x0000000F */
  8275. #define DMA2D_FGPFCCR_CM DMA2D_FGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8276. #define DMA2D_FGPFCCR_CM_0 (0x1U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000001 */
  8277. #define DMA2D_FGPFCCR_CM_1 (0x2U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000002 */
  8278. #define DMA2D_FGPFCCR_CM_2 (0x4U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000004 */
  8279. #define DMA2D_FGPFCCR_CM_3 (0x8U << DMA2D_FGPFCCR_CM_Pos) /*!< 0x00000008 */
  8280. #define DMA2D_FGPFCCR_CCM_Pos (4U)
  8281. #define DMA2D_FGPFCCR_CCM_Msk (0x1U << DMA2D_FGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8282. #define DMA2D_FGPFCCR_CCM DMA2D_FGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8283. #define DMA2D_FGPFCCR_START_Pos (5U)
  8284. #define DMA2D_FGPFCCR_START_Msk (0x1U << DMA2D_FGPFCCR_START_Pos) /*!< 0x00000020 */
  8285. #define DMA2D_FGPFCCR_START DMA2D_FGPFCCR_START_Msk /*!< Start */
  8286. #define DMA2D_FGPFCCR_CS_Pos (8U)
  8287. #define DMA2D_FGPFCCR_CS_Msk (0xFFU << DMA2D_FGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8288. #define DMA2D_FGPFCCR_CS DMA2D_FGPFCCR_CS_Msk /*!< CLUT size */
  8289. #define DMA2D_FGPFCCR_AM_Pos (16U)
  8290. #define DMA2D_FGPFCCR_AM_Msk (0x3U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00030000 */
  8291. #define DMA2D_FGPFCCR_AM DMA2D_FGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8292. #define DMA2D_FGPFCCR_AM_0 (0x1U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00010000 */
  8293. #define DMA2D_FGPFCCR_AM_1 (0x2U << DMA2D_FGPFCCR_AM_Pos) /*!< 0x00020000 */
  8294. #define DMA2D_FGPFCCR_CSS_Pos (18U)
  8295. #define DMA2D_FGPFCCR_CSS_Msk (0x3U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x000C0000 */
  8296. #define DMA2D_FGPFCCR_CSS DMA2D_FGPFCCR_CSS_Msk /* !< Chroma Sub-Sampling */
  8297. #define DMA2D_FGPFCCR_CSS_0 (0x1U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00040000 */
  8298. #define DMA2D_FGPFCCR_CSS_1 (0x2U << DMA2D_FGPFCCR_CSS_Pos) /*!< 0x00080000 */
  8299. #define DMA2D_FGPFCCR_AI_Pos (20U)
  8300. #define DMA2D_FGPFCCR_AI_Msk (0x1U << DMA2D_FGPFCCR_AI_Pos) /*!< 0x00100000 */
  8301. #define DMA2D_FGPFCCR_AI DMA2D_FGPFCCR_AI_Msk /*!< Foreground Input Alpha Inverted */
  8302. #define DMA2D_FGPFCCR_RBS_Pos (21U)
  8303. #define DMA2D_FGPFCCR_RBS_Msk (0x1U << DMA2D_FGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8304. #define DMA2D_FGPFCCR_RBS DMA2D_FGPFCCR_RBS_Msk /*!< Foreground Input Red Blue Swap */
  8305. #define DMA2D_FGPFCCR_ALPHA_Pos (24U)
  8306. #define DMA2D_FGPFCCR_ALPHA_Msk (0xFFU << DMA2D_FGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8307. #define DMA2D_FGPFCCR_ALPHA DMA2D_FGPFCCR_ALPHA_Msk /*!< Alpha value */
  8308. /******************** Bit definition for DMA2D_FGCOLR register **************/
  8309. #define DMA2D_FGCOLR_BLUE_Pos (0U)
  8310. #define DMA2D_FGCOLR_BLUE_Msk (0xFFU << DMA2D_FGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8311. #define DMA2D_FGCOLR_BLUE DMA2D_FGCOLR_BLUE_Msk /*!< Foreground Blue Value */
  8312. #define DMA2D_FGCOLR_GREEN_Pos (8U)
  8313. #define DMA2D_FGCOLR_GREEN_Msk (0xFFU << DMA2D_FGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8314. #define DMA2D_FGCOLR_GREEN DMA2D_FGCOLR_GREEN_Msk /*!< Foreground Green Value */
  8315. #define DMA2D_FGCOLR_RED_Pos (16U)
  8316. #define DMA2D_FGCOLR_RED_Msk (0xFFU << DMA2D_FGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8317. #define DMA2D_FGCOLR_RED DMA2D_FGCOLR_RED_Msk /*!< Foreground Red Value */
  8318. /******************** Bit definition for DMA2D_BGPFCCR register *************/
  8319. #define DMA2D_BGPFCCR_CM_Pos (0U)
  8320. #define DMA2D_BGPFCCR_CM_Msk (0xFU << DMA2D_BGPFCCR_CM_Pos) /*!< 0x0000000F */
  8321. #define DMA2D_BGPFCCR_CM DMA2D_BGPFCCR_CM_Msk /*!< Input color mode CM[3:0] */
  8322. #define DMA2D_BGPFCCR_CM_0 (0x1U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000001 */
  8323. #define DMA2D_BGPFCCR_CM_1 (0x2U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000002 */
  8324. #define DMA2D_BGPFCCR_CM_2 (0x4U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000004 */
  8325. #define DMA2D_BGPFCCR_CM_3 (0x8U << DMA2D_BGPFCCR_CM_Pos) /*!< 0x00000008 */
  8326. #define DMA2D_BGPFCCR_CCM_Pos (4U)
  8327. #define DMA2D_BGPFCCR_CCM_Msk (0x1U << DMA2D_BGPFCCR_CCM_Pos) /*!< 0x00000010 */
  8328. #define DMA2D_BGPFCCR_CCM DMA2D_BGPFCCR_CCM_Msk /*!< CLUT Color mode */
  8329. #define DMA2D_BGPFCCR_START_Pos (5U)
  8330. #define DMA2D_BGPFCCR_START_Msk (0x1U << DMA2D_BGPFCCR_START_Pos) /*!< 0x00000020 */
  8331. #define DMA2D_BGPFCCR_START DMA2D_BGPFCCR_START_Msk /*!< Start */
  8332. #define DMA2D_BGPFCCR_CS_Pos (8U)
  8333. #define DMA2D_BGPFCCR_CS_Msk (0xFFU << DMA2D_BGPFCCR_CS_Pos) /*!< 0x0000FF00 */
  8334. #define DMA2D_BGPFCCR_CS DMA2D_BGPFCCR_CS_Msk /*!< CLUT size */
  8335. #define DMA2D_BGPFCCR_AM_Pos (16U)
  8336. #define DMA2D_BGPFCCR_AM_Msk (0x3U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00030000 */
  8337. #define DMA2D_BGPFCCR_AM DMA2D_BGPFCCR_AM_Msk /*!< Alpha mode AM[1:0] */
  8338. #define DMA2D_BGPFCCR_AM_0 (0x1U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00010000 */
  8339. #define DMA2D_BGPFCCR_AM_1 (0x2U << DMA2D_BGPFCCR_AM_Pos) /*!< 0x00020000 */
  8340. #define DMA2D_BGPFCCR_AI_Pos (20U)
  8341. #define DMA2D_BGPFCCR_AI_Msk (0x1U << DMA2D_BGPFCCR_AI_Pos) /*!< 0x00100000 */
  8342. #define DMA2D_BGPFCCR_AI DMA2D_BGPFCCR_AI_Msk /*!< background Input Alpha Inverted */
  8343. #define DMA2D_BGPFCCR_RBS_Pos (21U)
  8344. #define DMA2D_BGPFCCR_RBS_Msk (0x1U << DMA2D_BGPFCCR_RBS_Pos) /*!< 0x00200000 */
  8345. #define DMA2D_BGPFCCR_RBS DMA2D_BGPFCCR_RBS_Msk /*!< Background Input Red Blue Swap */
  8346. #define DMA2D_BGPFCCR_ALPHA_Pos (24U)
  8347. #define DMA2D_BGPFCCR_ALPHA_Msk (0xFFU << DMA2D_BGPFCCR_ALPHA_Pos) /*!< 0xFF000000 */
  8348. #define DMA2D_BGPFCCR_ALPHA DMA2D_BGPFCCR_ALPHA_Msk /*!< background Input Alpha value */
  8349. /******************** Bit definition for DMA2D_BGCOLR register **************/
  8350. #define DMA2D_BGCOLR_BLUE_Pos (0U)
  8351. #define DMA2D_BGCOLR_BLUE_Msk (0xFFU << DMA2D_BGCOLR_BLUE_Pos) /*!< 0x000000FF */
  8352. #define DMA2D_BGCOLR_BLUE DMA2D_BGCOLR_BLUE_Msk /*!< Background Blue Value */
  8353. #define DMA2D_BGCOLR_GREEN_Pos (8U)
  8354. #define DMA2D_BGCOLR_GREEN_Msk (0xFFU << DMA2D_BGCOLR_GREEN_Pos) /*!< 0x0000FF00 */
  8355. #define DMA2D_BGCOLR_GREEN DMA2D_BGCOLR_GREEN_Msk /*!< Background Green Value */
  8356. #define DMA2D_BGCOLR_RED_Pos (16U)
  8357. #define DMA2D_BGCOLR_RED_Msk (0xFFU << DMA2D_BGCOLR_RED_Pos) /*!< 0x00FF0000 */
  8358. #define DMA2D_BGCOLR_RED DMA2D_BGCOLR_RED_Msk /*!< Background Red Value */
  8359. /******************** Bit definition for DMA2D_FGCMAR register **************/
  8360. #define DMA2D_FGCMAR_MA_Pos (0U)
  8361. #define DMA2D_FGCMAR_MA_Msk (0xFFFFFFFFU << DMA2D_FGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8362. #define DMA2D_FGCMAR_MA DMA2D_FGCMAR_MA_Msk /*!< Foreground CLUT Memory Address */
  8363. /******************** Bit definition for DMA2D_BGCMAR register **************/
  8364. #define DMA2D_BGCMAR_MA_Pos (0U)
  8365. #define DMA2D_BGCMAR_MA_Msk (0xFFFFFFFFU << DMA2D_BGCMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8366. #define DMA2D_BGCMAR_MA DMA2D_BGCMAR_MA_Msk /*!< Background CLUT Memory Address */
  8367. /******************** Bit definition for DMA2D_OPFCCR register **************/
  8368. #define DMA2D_OPFCCR_CM_Pos (0U)
  8369. #define DMA2D_OPFCCR_CM_Msk (0x7U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000007 */
  8370. #define DMA2D_OPFCCR_CM DMA2D_OPFCCR_CM_Msk /*!< Output Color mode CM[2:0] */
  8371. #define DMA2D_OPFCCR_CM_0 (0x1U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000001 */
  8372. #define DMA2D_OPFCCR_CM_1 (0x2U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000002 */
  8373. #define DMA2D_OPFCCR_CM_2 (0x4U << DMA2D_OPFCCR_CM_Pos) /*!< 0x00000004 */
  8374. #define DMA2D_OPFCCR_AI_Pos (20U)
  8375. #define DMA2D_OPFCCR_AI_Msk (0x1U << DMA2D_OPFCCR_AI_Pos) /*!< 0x00100000 */
  8376. #define DMA2D_OPFCCR_AI DMA2D_OPFCCR_AI_Msk /*!< Output Alpha Inverted */
  8377. #define DMA2D_OPFCCR_RBS_Pos (21U)
  8378. #define DMA2D_OPFCCR_RBS_Msk (0x1U << DMA2D_OPFCCR_RBS_Pos) /*!< 0x00200000 */
  8379. #define DMA2D_OPFCCR_RBS DMA2D_OPFCCR_RBS_Msk /*!< Output Red Blue Swap */
  8380. /******************** Bit definition for DMA2D_OCOLR register ***************/
  8381. /*!<Mode_ARGB8888/RGB888 */
  8382. #define DMA2D_OCOLR_BLUE_1 ((uint32_t)0x000000FFU) /*!< Output BLUE Value */
  8383. #define DMA2D_OCOLR_GREEN_1 ((uint32_t)0x0000FF00U) /*!< Output GREEN Value */
  8384. #define DMA2D_OCOLR_RED_1 ((uint32_t)0x00FF0000U) /*!< Output Red Value */
  8385. #define DMA2D_OCOLR_ALPHA_1 ((uint32_t)0xFF000000U) /*!< Output Alpha Channel Value */
  8386. /*!<Mode_RGB565 */
  8387. #define DMA2D_OCOLR_BLUE_2 ((uint32_t)0x0000001FU) /*!< Output BLUE Value */
  8388. #define DMA2D_OCOLR_GREEN_2 ((uint32_t)0x000007E0U) /*!< Output GREEN Value */
  8389. #define DMA2D_OCOLR_RED_2 ((uint32_t)0x0000F800U) /*!< Output Red Value */
  8390. /*!<Mode_ARGB1555 */
  8391. #define DMA2D_OCOLR_BLUE_3 ((uint32_t)0x0000001FU) /*!< Output BLUE Value */
  8392. #define DMA2D_OCOLR_GREEN_3 ((uint32_t)0x000003E0U) /*!< Output GREEN Value */
  8393. #define DMA2D_OCOLR_RED_3 ((uint32_t)0x00007C00U) /*!< Output Red Value */
  8394. #define DMA2D_OCOLR_ALPHA_3 ((uint32_t)0x00008000U) /*!< Output Alpha Channel Value */
  8395. /*!<Mode_ARGB4444 */
  8396. #define DMA2D_OCOLR_BLUE_4 ((uint32_t)0x0000000FU) /*!< Output BLUE Value */
  8397. #define DMA2D_OCOLR_GREEN_4 ((uint32_t)0x000000F0U) /*!< Output GREEN Value */
  8398. #define DMA2D_OCOLR_RED_4 ((uint32_t)0x00000F00U) /*!< Output Red Value */
  8399. #define DMA2D_OCOLR_ALPHA_4 ((uint32_t)0x0000F000U) /*!< Output Alpha Channel Value */
  8400. /******************** Bit definition for DMA2D_OMAR register ****************/
  8401. #define DMA2D_OMAR_MA_Pos (0U)
  8402. #define DMA2D_OMAR_MA_Msk (0xFFFFFFFFU << DMA2D_OMAR_MA_Pos) /*!< 0xFFFFFFFF */
  8403. #define DMA2D_OMAR_MA DMA2D_OMAR_MA_Msk /*!< Output Memory Address */
  8404. /******************** Bit definition for DMA2D_OOR register *****************/
  8405. #define DMA2D_OOR_LO_Pos (0U)
  8406. #define DMA2D_OOR_LO_Msk (0x3FFFU << DMA2D_OOR_LO_Pos) /*!< 0x00003FFF */
  8407. #define DMA2D_OOR_LO DMA2D_OOR_LO_Msk /*!< Output Line Offset */
  8408. /******************** Bit definition for DMA2D_NLR register *****************/
  8409. #define DMA2D_NLR_NL_Pos (0U)
  8410. #define DMA2D_NLR_NL_Msk (0xFFFFU << DMA2D_NLR_NL_Pos) /*!< 0x0000FFFF */
  8411. #define DMA2D_NLR_NL DMA2D_NLR_NL_Msk /*!< Number of Lines */
  8412. #define DMA2D_NLR_PL_Pos (16U)
  8413. #define DMA2D_NLR_PL_Msk (0x3FFFU << DMA2D_NLR_PL_Pos) /*!< 0x3FFF0000 */
  8414. #define DMA2D_NLR_PL DMA2D_NLR_PL_Msk /*!< Pixel per Lines */
  8415. /******************** Bit definition for DMA2D_LWR register *****************/
  8416. #define DMA2D_LWR_LW_Pos (0U)
  8417. #define DMA2D_LWR_LW_Msk (0xFFFFU << DMA2D_LWR_LW_Pos) /*!< 0x0000FFFF */
  8418. #define DMA2D_LWR_LW DMA2D_LWR_LW_Msk /*!< Line Watermark */
  8419. /******************** Bit definition for DMA2D_AMTCR register ***************/
  8420. #define DMA2D_AMTCR_EN_Pos (0U)
  8421. #define DMA2D_AMTCR_EN_Msk (0x1U << DMA2D_AMTCR_EN_Pos) /*!< 0x00000001 */
  8422. #define DMA2D_AMTCR_EN DMA2D_AMTCR_EN_Msk /*!< Enable */
  8423. #define DMA2D_AMTCR_DT_Pos (8U)
  8424. #define DMA2D_AMTCR_DT_Msk (0xFFU << DMA2D_AMTCR_DT_Pos) /*!< 0x0000FF00 */
  8425. #define DMA2D_AMTCR_DT DMA2D_AMTCR_DT_Msk /*!< Dead Time */
  8426. /******************** Bit definition for DMA2D_FGCLUT register **************/
  8427. /******************** Bit definition for DMA2D_BGCLUT register **************/
  8428. /******************************************************************************/
  8429. /* */
  8430. /* External Interrupt/Event Controller */
  8431. /* */
  8432. /******************************************************************************/
  8433. /******************* Bit definition for EXTI_IMR1 register *******************/
  8434. #define EXTI_IMR1_IM0_Pos (0U)
  8435. #define EXTI_IMR1_IM0_Msk (0x1U << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */
  8436. #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */
  8437. #define EXTI_IMR1_IM1_Pos (1U)
  8438. #define EXTI_IMR1_IM1_Msk (0x1U << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */
  8439. #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */
  8440. #define EXTI_IMR1_IM2_Pos (2U)
  8441. #define EXTI_IMR1_IM2_Msk (0x1U << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */
  8442. #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */
  8443. #define EXTI_IMR1_IM3_Pos (3U)
  8444. #define EXTI_IMR1_IM3_Msk (0x1U << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */
  8445. #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */
  8446. #define EXTI_IMR1_IM4_Pos (4U)
  8447. #define EXTI_IMR1_IM4_Msk (0x1U << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */
  8448. #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */
  8449. #define EXTI_IMR1_IM5_Pos (5U)
  8450. #define EXTI_IMR1_IM5_Msk (0x1U << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */
  8451. #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */
  8452. #define EXTI_IMR1_IM6_Pos (6U)
  8453. #define EXTI_IMR1_IM6_Msk (0x1U << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */
  8454. #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */
  8455. #define EXTI_IMR1_IM7_Pos (7U)
  8456. #define EXTI_IMR1_IM7_Msk (0x1U << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */
  8457. #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */
  8458. #define EXTI_IMR1_IM8_Pos (8U)
  8459. #define EXTI_IMR1_IM8_Msk (0x1U << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */
  8460. #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */
  8461. #define EXTI_IMR1_IM9_Pos (9U)
  8462. #define EXTI_IMR1_IM9_Msk (0x1U << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */
  8463. #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */
  8464. #define EXTI_IMR1_IM10_Pos (10U)
  8465. #define EXTI_IMR1_IM10_Msk (0x1U << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */
  8466. #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */
  8467. #define EXTI_IMR1_IM11_Pos (11U)
  8468. #define EXTI_IMR1_IM11_Msk (0x1U << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */
  8469. #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */
  8470. #define EXTI_IMR1_IM12_Pos (12U)
  8471. #define EXTI_IMR1_IM12_Msk (0x1U << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */
  8472. #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */
  8473. #define EXTI_IMR1_IM13_Pos (13U)
  8474. #define EXTI_IMR1_IM13_Msk (0x1U << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */
  8475. #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */
  8476. #define EXTI_IMR1_IM14_Pos (14U)
  8477. #define EXTI_IMR1_IM14_Msk (0x1U << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */
  8478. #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */
  8479. #define EXTI_IMR1_IM15_Pos (15U)
  8480. #define EXTI_IMR1_IM15_Msk (0x1U << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */
  8481. #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */
  8482. #define EXTI_IMR1_IM16_Pos (16U)
  8483. #define EXTI_IMR1_IM16_Msk (0x1U << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */
  8484. #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */
  8485. #define EXTI_IMR1_IM17_Pos (17U)
  8486. #define EXTI_IMR1_IM17_Msk (0x1U << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */
  8487. #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */
  8488. #define EXTI_IMR1_IM18_Pos (18U)
  8489. #define EXTI_IMR1_IM18_Msk (0x1U << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */
  8490. #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */
  8491. #define EXTI_IMR1_IM19_Pos (19U)
  8492. #define EXTI_IMR1_IM19_Msk (0x1U << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */
  8493. #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */
  8494. #define EXTI_IMR1_IM20_Pos (20U)
  8495. #define EXTI_IMR1_IM20_Msk (0x1U << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */
  8496. #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */
  8497. #define EXTI_IMR1_IM21_Pos (21U)
  8498. #define EXTI_IMR1_IM21_Msk (0x1U << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */
  8499. #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */
  8500. #define EXTI_IMR1_IM22_Pos (22U)
  8501. #define EXTI_IMR1_IM22_Msk (0x1U << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */
  8502. #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */
  8503. #define EXTI_IMR1_IM23_Pos (23U)
  8504. #define EXTI_IMR1_IM23_Msk (0x1U << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */
  8505. #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */
  8506. #define EXTI_IMR1_IM24_Pos (24U)
  8507. #define EXTI_IMR1_IM24_Msk (0x1U << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */
  8508. #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */
  8509. #define EXTI_IMR1_IM25_Pos (25U)
  8510. #define EXTI_IMR1_IM25_Msk (0x1U << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */
  8511. #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */
  8512. #define EXTI_IMR1_IM26_Pos (26U)
  8513. #define EXTI_IMR1_IM26_Msk (0x1U << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */
  8514. #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */
  8515. #define EXTI_IMR1_IM27_Pos (27U)
  8516. #define EXTI_IMR1_IM27_Msk (0x1U << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */
  8517. #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */
  8518. #define EXTI_IMR1_IM28_Pos (28U)
  8519. #define EXTI_IMR1_IM28_Msk (0x1U << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */
  8520. #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */
  8521. #define EXTI_IMR1_IM29_Pos (29U)
  8522. #define EXTI_IMR1_IM29_Msk (0x1U << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */
  8523. #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */
  8524. #define EXTI_IMR1_IM30_Pos (30U)
  8525. #define EXTI_IMR1_IM30_Msk (0x1U << EXTI_IMR1_IM30_Pos) /*!< 0x40000000 */
  8526. #define EXTI_IMR1_IM30 EXTI_IMR1_IM30_Msk /*!< Interrupt Mask on line 30 */
  8527. #define EXTI_IMR1_IM31_Pos (31U)
  8528. #define EXTI_IMR1_IM31_Msk (0x1U << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */
  8529. #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */
  8530. /******************* Bit definition for EXTI_IMR2 register *******************/
  8531. #define EXTI_IMR2_IM32_Pos (0U)
  8532. #define EXTI_IMR2_IM32_Msk (0x1U << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */
  8533. #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */
  8534. #define EXTI_IMR2_IM33_Pos (1U)
  8535. #define EXTI_IMR2_IM33_Msk (0x1U << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */
  8536. #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */
  8537. #define EXTI_IMR2_IM34_Pos (2U)
  8538. #define EXTI_IMR2_IM34_Msk (0x1U << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */
  8539. #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */
  8540. #define EXTI_IMR2_IM35_Pos (3U)
  8541. #define EXTI_IMR2_IM35_Msk (0x1U << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */
  8542. #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */
  8543. #define EXTI_IMR2_IM36_Pos (4U)
  8544. #define EXTI_IMR2_IM36_Msk (0x1U << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */
  8545. #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */
  8546. #define EXTI_IMR2_IM37_Pos (5U)
  8547. #define EXTI_IMR2_IM37_Msk (0x1U << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */
  8548. #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */
  8549. #define EXTI_IMR2_IM38_Pos (6U)
  8550. #define EXTI_IMR2_IM38_Msk (0x1U << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */
  8551. #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */
  8552. #define EXTI_IMR2_IM39_Pos (7U)
  8553. #define EXTI_IMR2_IM39_Msk (0x1U << EXTI_IMR2_IM39_Pos) /*!< 0x00000080 */
  8554. #define EXTI_IMR2_IM39 EXTI_IMR2_IM39_Msk /*!< Interrupt Mask on line 39 */
  8555. #define EXTI_IMR2_IM40_Pos (8U)
  8556. #define EXTI_IMR2_IM40_Msk (0x1U << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */
  8557. #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */
  8558. #define EXTI_IMR2_IM41_Pos (9U)
  8559. #define EXTI_IMR2_IM41_Msk (0x1U << EXTI_IMR2_IM41_Pos) /*!< 0x00000200 */
  8560. #define EXTI_IMR2_IM41 EXTI_IMR2_IM41_Msk /*!< Interrupt Mask on line 41 */
  8561. #define EXTI_IMR2_IM42_Pos (10U)
  8562. #define EXTI_IMR2_IM42_Msk (0x1U << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
  8563. #define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< Interrupt Mask on line 42 */
  8564. #define EXTI_IMR2_IM43_Pos (11U)
  8565. #define EXTI_IMR2_IM43_Msk (0x1U << EXTI_IMR2_IM43_Pos) /*!< 0x00000800 */
  8566. #define EXTI_IMR2_IM43 EXTI_IMR2_IM43_Msk /*!< Interrupt Mask on line 43 */
  8567. #define EXTI_IMR2_IM44_Pos (12U)
  8568. #define EXTI_IMR2_IM44_Msk (0x1U << EXTI_IMR2_IM44_Pos) /*!< 0x00001000 */
  8569. #define EXTI_IMR2_IM44 EXTI_IMR2_IM44_Msk /*!< Interrupt Mask on line 44 */
  8570. #define EXTI_IMR2_IM45_Pos (13U)
  8571. #define EXTI_IMR2_IM45_Msk (0x1U << EXTI_IMR2_IM45_Pos) /*!< 0x00002000 */
  8572. #define EXTI_IMR2_IM45 EXTI_IMR2_IM45_Msk /*!< Interrupt Mask on line 45 */
  8573. #define EXTI_IMR2_IM46_Pos (14U)
  8574. #define EXTI_IMR2_IM46_Msk (0x1U << EXTI_IMR2_IM46_Pos) /*!< 0x00004000 */
  8575. #define EXTI_IMR2_IM46 EXTI_IMR2_IM46_Msk /*!< Interrupt Mask on line 46 */
  8576. #define EXTI_IMR2_IM47_Pos (15U)
  8577. #define EXTI_IMR2_IM47_Msk (0x1U << EXTI_IMR2_IM47_Pos) /*!< 0x00008000 */
  8578. #define EXTI_IMR2_IM47 EXTI_IMR2_IM47_Msk /*!< Interrupt Mask on line 47 */
  8579. #define EXTI_IMR2_IM48_Pos (16U)
  8580. #define EXTI_IMR2_IM48_Msk (0x1U << EXTI_IMR2_IM48_Pos) /*!< 0x00010000 */
  8581. #define EXTI_IMR2_IM48 EXTI_IMR2_IM48_Msk /*!< Interrupt Mask on line 48 */
  8582. #define EXTI_IMR2_IM49_Pos (17U)
  8583. #define EXTI_IMR2_IM49_Msk (0x1U << EXTI_IMR2_IM49_Pos) /*!< 0x00020000 */
  8584. #define EXTI_IMR2_IM49 EXTI_IMR2_IM49_Msk /*!< Interrupt Mask on line 49 */
  8585. #define EXTI_IMR2_IM50_Pos (18U)
  8586. #define EXTI_IMR2_IM50_Msk (0x1U << EXTI_IMR2_IM50_Pos) /*!< 0x00040000 */
  8587. #define EXTI_IMR2_IM50 EXTI_IMR2_IM50_Msk /*!< Interrupt Mask on line 50 */
  8588. #define EXTI_IMR2_IM51_Pos (19U)
  8589. #define EXTI_IMR2_IM51_Msk (0x1U << EXTI_IMR2_IM51_Pos) /*!< 0x00080000 */
  8590. #define EXTI_IMR2_IM51 EXTI_IMR2_IM51_Msk /*!< Interrupt Mask on line 51 */
  8591. #define EXTI_IMR2_IM52_Pos (20U)
  8592. #define EXTI_IMR2_IM52_Msk (0x1U << EXTI_IMR2_IM52_Pos) /*!< 0x00100000 */
  8593. #define EXTI_IMR2_IM52 EXTI_IMR2_IM52_Msk /*!< Interrupt Mask on line 52 */
  8594. #define EXTI_IMR2_IM53_Pos (21U)
  8595. #define EXTI_IMR2_IM53_Msk (0x1U << EXTI_IMR2_IM53_Pos) /*!< 0x00200000 */
  8596. #define EXTI_IMR2_IM53 EXTI_IMR2_IM53_Msk /*!< Interrupt Mask on line 53 */
  8597. #define EXTI_IMR2_IM54_Pos (22U)
  8598. #define EXTI_IMR2_IM54_Msk (0x1U << EXTI_IMR2_IM54_Pos) /*!< 0x00400000 */
  8599. #define EXTI_IMR2_IM54 EXTI_IMR2_IM54_Msk /*!< Interrupt Mask on line 54 */
  8600. #define EXTI_IMR2_IM55_Pos (23U)
  8601. #define EXTI_IMR2_IM55_Msk (0x1U << EXTI_IMR2_IM55_Pos) /*!< 0x00800000 */
  8602. #define EXTI_IMR2_IM55 EXTI_IMR2_IM55_Msk /*!< Interrupt Mask on line 55 */
  8603. #define EXTI_IMR2_IM56_Pos (24U)
  8604. #define EXTI_IMR2_IM56_Msk (0x1U << EXTI_IMR2_IM56_Pos) /*!< 0x01000000 */
  8605. #define EXTI_IMR2_IM56 EXTI_IMR2_IM56_Msk /*!< Interrupt Mask on line 56 */
  8606. #define EXTI_IMR2_IM57_Pos (25U)
  8607. #define EXTI_IMR2_IM57_Msk (0x1U << EXTI_IMR2_IM57_Pos) /*!< 0x02000000 */
  8608. #define EXTI_IMR2_IM57 EXTI_IMR2_IM57_Msk /*!< Interrupt Mask on line 57 */
  8609. #define EXTI_IMR2_IM58_Pos (26U)
  8610. #define EXTI_IMR2_IM58_Msk (0x1U << EXTI_IMR2_IM58_Pos) /*!< 0x04000000 */
  8611. #define EXTI_IMR2_IM58 EXTI_IMR2_IM58_Msk /*!< Interrupt Mask on line 58 */
  8612. #define EXTI_IMR2_IM59_Pos (27U)
  8613. #define EXTI_IMR2_IM59_Msk (0x1U << EXTI_IMR2_IM59_Pos) /*!< 0x08000000 */
  8614. #define EXTI_IMR2_IM59 EXTI_IMR2_IM59_Msk /*!< Interrupt Mask on line 59 */
  8615. #define EXTI_IMR2_IM60_Pos (28U)
  8616. #define EXTI_IMR2_IM60_Msk (0x1U << EXTI_IMR2_IM60_Pos) /*!< 0x10000000 */
  8617. #define EXTI_IMR2_IM60 EXTI_IMR2_IM60_Msk /*!< Interrupt Mask on line 60 */
  8618. #define EXTI_IMR2_IM61_Pos (29U)
  8619. #define EXTI_IMR2_IM61_Msk (0x1U << EXTI_IMR2_IM61_Pos) /*!< 0x20000000 */
  8620. #define EXTI_IMR2_IM61 EXTI_IMR2_IM61_Msk /*!< Interrupt Mask on line 61 */
  8621. #define EXTI_IMR2_IM62_Pos (30U)
  8622. #define EXTI_IMR2_IM62_Msk (0x1U << EXTI_IMR2_IM62_Pos) /*!< 0x40000000 */
  8623. #define EXTI_IMR2_IM62 EXTI_IMR2_IM62_Msk /*!< Interrupt Mask on line 62 */
  8624. #define EXTI_IMR2_IM63_Pos (31U)
  8625. #define EXTI_IMR2_IM63_Msk (0x1U << EXTI_IMR2_IM63_Pos) /*!< 0x80000000 */
  8626. #define EXTI_IMR2_IM63 EXTI_IMR2_IM63_Msk /*!< Interrupt Mask on line 63 */
  8627. /******************* Bit definition for EXTI_IMR3 register *******************/
  8628. #define EXTI_IMR3_IM64_Pos (0U)
  8629. #define EXTI_IMR3_IM64_Msk (0x1U << EXTI_IMR3_IM64_Pos) /*!< 0x00000001 */
  8630. #define EXTI_IMR3_IM64 EXTI_IMR3_IM64_Msk /*!< Interrupt Mask on line 64 */
  8631. #define EXTI_IMR3_IM65_Pos (1U)
  8632. #define EXTI_IMR3_IM65_Msk (0x1U << EXTI_IMR3_IM65_Pos) /*!< 0x00000002 */
  8633. #define EXTI_IMR3_IM65 EXTI_IMR3_IM65_Msk /*!< Interrupt Mask on line 65 */
  8634. #define EXTI_IMR3_IM66_Pos (2U)
  8635. #define EXTI_IMR3_IM66_Msk (0x1U << EXTI_IMR3_IM66_Pos) /*!< 0x00000004 */
  8636. #define EXTI_IMR3_IM66 EXTI_IMR3_IM66_Msk /*!< Interrupt Mask on line 66 */
  8637. #define EXTI_IMR3_IM67_Pos (3U)
  8638. #define EXTI_IMR3_IM67_Msk (0x1U << EXTI_IMR3_IM67_Pos) /*!< 0x00000008 */
  8639. #define EXTI_IMR3_IM67 EXTI_IMR3_IM67_Msk /*!< Interrupt Mask on line 67 */
  8640. #define EXTI_IMR3_IM68_Pos (4U)
  8641. #define EXTI_IMR3_IM68_Msk (0x1U << EXTI_IMR3_IM68_Pos) /*!< 0x00000010 */
  8642. #define EXTI_IMR3_IM68 EXTI_IMR3_IM68_Msk /*!< Interrupt Mask on line 68 */
  8643. #define EXTI_IMR3_IM69_Pos (5U)
  8644. #define EXTI_IMR3_IM69_Msk (0x1U << EXTI_IMR3_IM69_Pos) /*!< 0x00000020 */
  8645. #define EXTI_IMR3_IM69 EXTI_IMR3_IM69_Msk /*!< Interrupt Mask on line 69 */
  8646. #define EXTI_IMR3_IM70_Pos (6U)
  8647. #define EXTI_IMR3_IM70_Msk (0x1U << EXTI_IMR3_IM70_Pos) /*!< 0x00000040 */
  8648. #define EXTI_IMR3_IM70 EXTI_IMR3_IM70_Msk /*!< Interrupt Mask on line 70 */
  8649. #define EXTI_IMR3_IM71_Pos (7U)
  8650. #define EXTI_IMR3_IM71_Msk (0x1U << EXTI_IMR3_IM71_Pos) /*!< 0x00000080 */
  8651. #define EXTI_IMR3_IM71 EXTI_IMR3_IM71_Msk /*!< Interrupt Mask on line 71 */
  8652. #define EXTI_IMR3_IM72_Pos (8U)
  8653. #define EXTI_IMR3_IM72_Msk (0x1U << EXTI_IMR3_IM72_Pos) /*!< 0x00000100 */
  8654. #define EXTI_IMR3_IM72 EXTI_IMR3_IM72_Msk /*!< Interrupt Mask on line 72 */
  8655. #define EXTI_IMR3_IM73_Pos (9U)
  8656. #define EXTI_IMR3_IM73_Msk (0x1U << EXTI_IMR3_IM73_Pos) /*!< 0x00000200 */
  8657. #define EXTI_IMR3_IM73 EXTI_IMR3_IM73_Msk /*!< Interrupt Mask on line 73 */
  8658. #define EXTI_IMR3_IM74_Pos (10U)
  8659. #define EXTI_IMR3_IM74_Msk (0x1U << EXTI_IMR3_IM74_Pos) /*!< 0x00000400 */
  8660. #define EXTI_IMR3_IM74 EXTI_IMR3_IM74_Msk /*!< Interrupt Mask on line 74 */
  8661. #define EXTI_IMR3_IM75_Pos (11U)
  8662. #define EXTI_IMR3_IM75_Msk (0x1U << EXTI_IMR3_IM75_Pos) /*!< 0x00000800 */
  8663. #define EXTI_IMR3_IM75 EXTI_IMR3_IM75_Msk /*!< Interrupt Mask on line 75 */
  8664. #define EXTI_IMR3_IM76_Pos (12U)
  8665. #define EXTI_IMR3_IM76_Msk (0x1U << EXTI_IMR3_IM76_Pos) /*!< 0x00001000 */
  8666. #define EXTI_IMR3_IM76 EXTI_IMR3_IM76_Msk /*!< Interrupt Mask on line 76 */
  8667. #define EXTI_IMR3_IM77_Pos (13U)
  8668. #define EXTI_IMR3_IM77_Msk (0x1U << EXTI_IMR3_IM77_Pos) /*!< 0x00002000 */
  8669. #define EXTI_IMR3_IM77 EXTI_IMR3_IM77_Msk /*!< Interrupt Mask on line 77 */
  8670. #define EXTI_IMR3_IM78_Pos (14U)
  8671. #define EXTI_IMR3_IM78_Msk (0x1U << EXTI_IMR3_IM78_Pos) /*!< 0x00004000 */
  8672. #define EXTI_IMR3_IM78 EXTI_IMR3_IM78_Msk /*!< Interrupt Mask on line 78 */
  8673. #define EXTI_IMR3_IM79_Pos (15U)
  8674. #define EXTI_IMR3_IM79_Msk (0x1U << EXTI_IMR3_IM79_Pos) /*!< 0x00008000 */
  8675. #define EXTI_IMR3_IM79 EXTI_IMR3_IM79_Msk /*!< Interrupt Mask on line 79 */
  8676. #define EXTI_IMR3_IM80_Pos (16U)
  8677. #define EXTI_IMR3_IM80_Msk (0x1U << EXTI_IMR3_IM80_Pos) /*!< 0x00010000 */
  8678. #define EXTI_IMR3_IM80 EXTI_IMR3_IM80_Msk /*!< Interrupt Mask on line 80 */
  8679. #define EXTI_IMR3_IM81_Pos (17U)
  8680. #define EXTI_IMR3_IM81_Msk (0x1U << EXTI_IMR3_IM81_Pos) /*!< 0x00020000 */
  8681. #define EXTI_IMR3_IM81 EXTI_IMR3_IM81_Msk /*!< Interrupt Mask on line 81 */
  8682. #define EXTI_IMR3_IM82_Pos (18U)
  8683. #define EXTI_IMR3_IM82_Msk (0x1U << EXTI_IMR3_IM82_Pos) /*!< 0x00040000 */
  8684. #define EXTI_IMR3_IM82 EXTI_IMR3_IM82_Msk /*!< Interrupt Mask on line 82 */
  8685. #define EXTI_IMR3_IM84_Pos (20U)
  8686. #define EXTI_IMR3_IM84_Msk (0x1U << EXTI_IMR3_IM84_Pos) /*!< 0x00100000 */
  8687. #define EXTI_IMR3_IM84 EXTI_IMR3_IM84_Msk /*!< Interrupt Mask on line 84 */
  8688. #define EXTI_IMR3_IM85_Pos (21U)
  8689. #define EXTI_IMR3_IM85_Msk (0x1U << EXTI_IMR3_IM85_Pos) /*!< 0x00200000 */
  8690. #define EXTI_IMR3_IM85 EXTI_IMR3_IM85_Msk /*!< Interrupt Mask on line 85 */
  8691. #define EXTI_IMR3_IM86_Pos (22U)
  8692. #define EXTI_IMR3_IM86_Msk (0x1U << EXTI_IMR3_IM86_Pos) /*!< 0x00400000 */
  8693. #define EXTI_IMR3_IM86 EXTI_IMR3_IM86_Msk /*!< Interrupt Mask on line 86 */
  8694. #define EXTI_IMR3_IM87_Pos (23U)
  8695. #define EXTI_IMR3_IM87_Msk (0x1U << EXTI_IMR3_IM87_Pos) /*!< 0x00800000 */
  8696. #define EXTI_IMR3_IM87 EXTI_IMR3_IM87_Msk /*!< Interrupt Mask on line 87 */
  8697. #define EXTI_IMR3_IM88_Pos (24U)
  8698. #define EXTI_IMR3_IM88_Msk (0x1U << EXTI_IMR3_IM88_Pos) /*!< 0x01000000 */
  8699. #define EXTI_IMR3_IM88 EXTI_IMR3_IM88_Msk /*!< Interrupt Mask on line 88 */
  8700. /******************* Bit definition for EXTI_EMR1 register *******************/
  8701. #define EXTI_EMR1_EM0_Pos (0U)
  8702. #define EXTI_EMR1_EM0_Msk (0x1U << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */
  8703. #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */
  8704. #define EXTI_EMR1_EM1_Pos (1U)
  8705. #define EXTI_EMR1_EM1_Msk (0x1U << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */
  8706. #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */
  8707. #define EXTI_EMR1_EM2_Pos (2U)
  8708. #define EXTI_EMR1_EM2_Msk (0x1U << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */
  8709. #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */
  8710. #define EXTI_EMR1_EM3_Pos (3U)
  8711. #define EXTI_EMR1_EM3_Msk (0x1U << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */
  8712. #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */
  8713. #define EXTI_EMR1_EM4_Pos (4U)
  8714. #define EXTI_EMR1_EM4_Msk (0x1U << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */
  8715. #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */
  8716. #define EXTI_EMR1_EM5_Pos (5U)
  8717. #define EXTI_EMR1_EM5_Msk (0x1U << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */
  8718. #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */
  8719. #define EXTI_EMR1_EM6_Pos (6U)
  8720. #define EXTI_EMR1_EM6_Msk (0x1U << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */
  8721. #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */
  8722. #define EXTI_EMR1_EM7_Pos (7U)
  8723. #define EXTI_EMR1_EM7_Msk (0x1U << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */
  8724. #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */
  8725. #define EXTI_EMR1_EM8_Pos (8U)
  8726. #define EXTI_EMR1_EM8_Msk (0x1U << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */
  8727. #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */
  8728. #define EXTI_EMR1_EM9_Pos (9U)
  8729. #define EXTI_EMR1_EM9_Msk (0x1U << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */
  8730. #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */
  8731. #define EXTI_EMR1_EM10_Pos (10U)
  8732. #define EXTI_EMR1_EM10_Msk (0x1U << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */
  8733. #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */
  8734. #define EXTI_EMR1_EM11_Pos (11U)
  8735. #define EXTI_EMR1_EM11_Msk (0x1U << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */
  8736. #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */
  8737. #define EXTI_EMR1_EM12_Pos (12U)
  8738. #define EXTI_EMR1_EM12_Msk (0x1U << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */
  8739. #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */
  8740. #define EXTI_EMR1_EM13_Pos (13U)
  8741. #define EXTI_EMR1_EM13_Msk (0x1U << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */
  8742. #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */
  8743. #define EXTI_EMR1_EM14_Pos (14U)
  8744. #define EXTI_EMR1_EM14_Msk (0x1U << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */
  8745. #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */
  8746. #define EXTI_EMR1_EM15_Pos (15U)
  8747. #define EXTI_EMR1_EM15_Msk (0x1U << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */
  8748. #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */
  8749. #define EXTI_EMR1_EM16_Pos (16U)
  8750. #define EXTI_EMR1_EM16_Msk (0x1U << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */
  8751. #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */
  8752. #define EXTI_EMR1_EM17_Pos (17U)
  8753. #define EXTI_EMR1_EM17_Msk (0x1U << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */
  8754. #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */
  8755. #define EXTI_EMR1_EM18_Pos (18U)
  8756. #define EXTI_EMR1_EM18_Msk (0x1U << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */
  8757. #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */
  8758. #define EXTI_EMR1_EM20_Pos (20U)
  8759. #define EXTI_EMR1_EM20_Msk (0x1U << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */
  8760. #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */
  8761. #define EXTI_EMR1_EM21_Pos (21U)
  8762. #define EXTI_EMR1_EM21_Msk (0x1U << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */
  8763. #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */
  8764. #define EXTI_EMR1_EM22_Pos (22U)
  8765. #define EXTI_EMR1_EM22_Msk (0x1U << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */
  8766. #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */
  8767. #define EXTI_EMR1_EM23_Pos (23U)
  8768. #define EXTI_EMR1_EM23_Msk (0x1U << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */
  8769. #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */
  8770. #define EXTI_EMR1_EM24_Pos (24U)
  8771. #define EXTI_EMR1_EM24_Msk (0x1U << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */
  8772. #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */
  8773. #define EXTI_EMR1_EM25_Pos (25U)
  8774. #define EXTI_EMR1_EM25_Msk (0x1U << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */
  8775. #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */
  8776. #define EXTI_EMR1_EM26_Pos (26U)
  8777. #define EXTI_EMR1_EM26_Msk (0x1U << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */
  8778. #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */
  8779. #define EXTI_EMR1_EM27_Pos (27U)
  8780. #define EXTI_EMR1_EM27_Msk (0x1U << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */
  8781. #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */
  8782. #define EXTI_EMR1_EM28_Pos (28U)
  8783. #define EXTI_EMR1_EM28_Msk (0x1U << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */
  8784. #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */
  8785. #define EXTI_EMR1_EM29_Pos (29U)
  8786. #define EXTI_EMR1_EM29_Msk (0x1U << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */
  8787. #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */
  8788. #define EXTI_EMR1_EM30_Pos (30U)
  8789. #define EXTI_EMR1_EM30_Msk (0x1U << EXTI_EMR1_EM30_Pos) /*!< 0x40000000 */
  8790. #define EXTI_EMR1_EM30 EXTI_EMR1_EM30_Msk /*!< Event Mask on line 30 */
  8791. #define EXTI_EMR1_EM31_Pos (31U)
  8792. #define EXTI_EMR1_EM31_Msk (0x1U << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */
  8793. #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */
  8794. /******************* Bit definition for EXTI_EMR2 register *******************/
  8795. #define EXTI_EMR2_EM32_Pos (0U)
  8796. #define EXTI_EMR2_EM32_Msk (0x1U << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */
  8797. #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32*/
  8798. #define EXTI_EMR2_EM33_Pos (1U)
  8799. #define EXTI_EMR2_EM33_Msk (0x1U << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */
  8800. #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33*/
  8801. #define EXTI_EMR2_EM34_Pos (2U)
  8802. #define EXTI_EMR2_EM34_Msk (0x1U << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */
  8803. #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34*/
  8804. #define EXTI_EMR2_EM35_Pos (3U)
  8805. #define EXTI_EMR2_EM35_Msk (0x1U << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */
  8806. #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35*/
  8807. #define EXTI_EMR2_EM36_Pos (4U)
  8808. #define EXTI_EMR2_EM36_Msk (0x1U << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */
  8809. #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36*/
  8810. #define EXTI_EMR2_EM37_Pos (5U)
  8811. #define EXTI_EMR2_EM37_Msk (0x1U << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */
  8812. #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37*/
  8813. #define EXTI_EMR2_EM38_Pos (6U)
  8814. #define EXTI_EMR2_EM38_Msk (0x1U << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */
  8815. #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38*/
  8816. #define EXTI_EMR2_EM39_Pos (7U)
  8817. #define EXTI_EMR2_EM39_Msk (0x1U << EXTI_EMR2_EM39_Pos) /*!< 0x00000080 */
  8818. #define EXTI_EMR2_EM39 EXTI_EMR2_EM39_Msk /*!< Event Mask on line 39*/
  8819. #define EXTI_EMR2_EM40_Pos (8U)
  8820. #define EXTI_EMR2_EM40_Msk (0x1U << EXTI_EMR2_EM40_Pos) /*!< 0x00000100 */
  8821. #define EXTI_EMR2_EM40 EXTI_EMR2_EM40_Msk /*!< Event Mask on line 40*/
  8822. #define EXTI_EMR2_EM41_Pos (9U)
  8823. #define EXTI_EMR2_EM41_Msk (0x1U << EXTI_EMR2_EM41_Pos) /*!< 0x00000200 */
  8824. #define EXTI_EMR2_EM41 EXTI_EMR2_EM41_Msk /*!< Event Mask on line 41*/
  8825. #define EXTI_EMR2_EM42_Pos (10U)
  8826. #define EXTI_EMR2_EM42_Msk (0x1U << EXTI_EMR2_EM42_Pos) /*!< 0x00000400 */
  8827. #define EXTI_EMR2_EM42 EXTI_EMR2_EM42_Msk /*!< Event Mask on line 42 */
  8828. #define EXTI_EMR2_EM43_Pos (11U)
  8829. #define EXTI_EMR2_EM43_Msk (0x1U << EXTI_EMR2_EM43_Pos) /*!< 0x00000800 */
  8830. #define EXTI_EMR2_EM43 EXTI_EMR2_EM43_Msk /*!< Event Mask on line 43 */
  8831. #define EXTI_EMR2_EM44_Pos (12U)
  8832. #define EXTI_EMR2_EM44_Msk (0x1U << EXTI_EMR2_EM44_Pos) /*!< 0x00001000 */
  8833. #define EXTI_EMR2_EM44 EXTI_EMR2_EM44_Msk /*!< Event Mask on line 44 */
  8834. #define EXTI_EMR2_EM45_Pos (13U)
  8835. #define EXTI_EMR2_EM45_Msk (0x1U << EXTI_EMR2_EM45_Pos) /*!< 0x00002000 */
  8836. #define EXTI_EMR2_EM45 EXTI_EMR2_EM45_Msk /*!< Event Mask on line 45 */
  8837. #define EXTI_EMR2_EM46_Pos (14U)
  8838. #define EXTI_EMR2_EM46_Msk (0x1U << EXTI_EMR2_EM46_Pos) /*!< 0x00004000 */
  8839. #define EXTI_EMR2_EM46 EXTI_EMR2_EM46_Msk /*!< Event Mask on line 46 */
  8840. #define EXTI_EMR2_EM47_Pos (15U)
  8841. #define EXTI_EMR2_EM47_Msk (0x1U << EXTI_EMR2_EM47_Pos) /*!< 0x00008000 */
  8842. #define EXTI_EMR2_EM47 EXTI_EMR2_EM47_Msk /*!< Event Mask on line 47 */
  8843. #define EXTI_EMR2_EM48_Pos (16U)
  8844. #define EXTI_EMR2_EM48_Msk (0x1U << EXTI_EMR2_EM48_Pos) /*!< 0x00010000 */
  8845. #define EXTI_EMR2_EM48 EXTI_EMR2_EM48_Msk /*!< Event Mask on line 48 */
  8846. #define EXTI_EMR2_EM49_Pos (17U)
  8847. #define EXTI_EMR2_EM49_Msk (0x1U << EXTI_EMR2_EM49_Pos) /*!< 0x00020000 */
  8848. #define EXTI_EMR2_EM49 EXTI_EMR2_EM49_Msk /*!< Event Mask on line 49 */
  8849. #define EXTI_EMR2_EM50_Pos (18U)
  8850. #define EXTI_EMR2_EM50_Msk (0x1U << EXTI_EMR2_EM50_Pos) /*!< 0x00040000 */
  8851. #define EXTI_EMR2_EM50 EXTI_EMR2_EM50_Msk /*!< Event Mask on line 50 */
  8852. #define EXTI_EMR2_EM51_Pos (19U)
  8853. #define EXTI_EMR2_EM51_Msk (0x1U << EXTI_EMR2_EM51_Pos) /*!< 0x00080000 */
  8854. #define EXTI_EMR2_EM51 EXTI_EMR2_EM51_Msk /*!< Event Mask on line 51 */
  8855. #define EXTI_EMR2_EM52_Pos (20U)
  8856. #define EXTI_EMR2_EM52_Msk (0x1U << EXTI_EMR2_EM52_Pos) /*!< 0x00100000 */
  8857. #define EXTI_EMR2_EM52 EXTI_EMR2_EM52_Msk /*!< Event Mask on line 52 */
  8858. #define EXTI_EMR2_EM53_Pos (21U)
  8859. #define EXTI_EMR2_EM53_Msk (0x1U << EXTI_EMR2_EM53_Pos) /*!< 0x00200000 */
  8860. #define EXTI_EMR2_EM53 EXTI_EMR2_EM53_Msk /*!< Event Mask on line 53 */
  8861. #define EXTI_EMR2_EM54_Pos (22U)
  8862. #define EXTI_EMR2_EM54_Msk (0x1U << EXTI_EMR2_EM54_Pos) /*!< 0x00400000 */
  8863. #define EXTI_EMR2_EM54 EXTI_EMR2_EM54_Msk /*!< Event Mask on line 54 */
  8864. #define EXTI_EMR2_EM55_Pos (23U)
  8865. #define EXTI_EMR2_EM55_Msk (0x1U << EXTI_EMR2_EM55_Pos) /*!< 0x00800000 */
  8866. #define EXTI_EMR2_EM55 EXTI_EMR2_EM55_Msk /*!< Event Mask on line 55 */
  8867. #define EXTI_EMR2_EM56_Pos (24U)
  8868. #define EXTI_EMR2_EM56_Msk (0x1U << EXTI_EMR2_EM56_Pos) /*!< 0x01000000 */
  8869. #define EXTI_EMR2_EM56 EXTI_EMR2_EM56_Msk /*!< Event Mask on line 56 */
  8870. #define EXTI_EMR2_EM57_Pos (25U)
  8871. #define EXTI_EMR2_EM57_Msk (0x1U << EXTI_EMR2_EM57_Pos) /*!< 0x02000000 */
  8872. #define EXTI_EMR2_EM57 EXTI_EMR2_EM57_Msk /*!< Event Mask on line 57 */
  8873. #define EXTI_EMR2_EM58_Pos (26U)
  8874. #define EXTI_EMR2_EM58_Msk (0x1U << EXTI_EMR2_EM58_Pos) /*!< 0x04000000 */
  8875. #define EXTI_EMR2_EM58 EXTI_EMR2_EM58_Msk /*!< Event Mask on line 58 */
  8876. #define EXTI_EMR2_EM59_Pos (27U)
  8877. #define EXTI_EMR2_EM59_Msk (0x1U << EXTI_EMR2_EM59_Pos) /*!< 0x08000000 */
  8878. #define EXTI_EMR2_EM59 EXTI_EMR2_EM59_Msk /*!< Event Mask on line 59 */
  8879. #define EXTI_EMR2_EM60_Pos (28U)
  8880. #define EXTI_EMR2_EM60_Msk (0x1U << EXTI_EMR2_EM60_Pos) /*!< 0x10000000 */
  8881. #define EXTI_EMR2_EM60 EXTI_EMR2_EM60_Msk /*!< Event Mask on line 60 */
  8882. #define EXTI_EMR2_EM61_Pos (29U)
  8883. #define EXTI_EMR2_EM61_Msk (0x1U << EXTI_EMR2_EM61_Pos) /*!< 0x20000000 */
  8884. #define EXTI_EMR2_EM61 EXTI_EMR2_EM61_Msk /*!< Event Mask on line 61 */
  8885. #define EXTI_EMR2_EM62_Pos (30U)
  8886. #define EXTI_EMR2_EM62_Msk (0x1U << EXTI_EMR2_EM62_Pos) /*!< 0x40000000 */
  8887. #define EXTI_EMR2_EM62 EXTI_EMR2_EM62_Msk /*!< Event Mask on line 62 */
  8888. #define EXTI_EMR2_EM63_Pos (31U)
  8889. #define EXTI_EMR2_EM63_Msk (0x1U << EXTI_EMR2_EM63_Pos) /*!< 0x80000000 */
  8890. #define EXTI_EMR2_EM63 EXTI_EMR2_EM63_Msk /*!< Event Mask on line 63 */
  8891. /******************* Bit definition for EXTI_EMR3 register *******************/
  8892. #define EXTI_EMR3_EM64_Pos (0U)
  8893. #define EXTI_EMR3_EM64_Msk (0x1U << EXTI_EMR3_EM64_Pos) /*!< 0x00000001 */
  8894. #define EXTI_EMR3_EM64 EXTI_EMR3_EM64_Msk /*!< Event Mask on line 64*/
  8895. #define EXTI_EMR3_EM65_Pos (1U)
  8896. #define EXTI_EMR3_EM65_Msk (0x1U << EXTI_EMR3_EM65_Pos) /*!< 0x00000002 */
  8897. #define EXTI_EMR3_EM65 EXTI_EMR3_EM65_Msk /*!< Event Mask on line 65*/
  8898. #define EXTI_EMR3_EM66_Pos (2U)
  8899. #define EXTI_EMR3_EM66_Msk (0x1U << EXTI_EMR3_EM66_Pos) /*!< 0x00000004 */
  8900. #define EXTI_EMR3_EM66 EXTI_EMR3_EM66_Msk /*!< Event Mask on line 66*/
  8901. #define EXTI_EMR3_EM67_Pos (3U)
  8902. #define EXTI_EMR3_EM67_Msk (0x1U << EXTI_EMR3_EM67_Pos) /*!< 0x00000008 */
  8903. #define EXTI_EMR3_EM67 EXTI_EMR3_EM67_Msk /*!< Event Mask on line 67*/
  8904. #define EXTI_EMR3_EM68_Pos (4U)
  8905. #define EXTI_EMR3_EM68_Msk (0x1U << EXTI_EMR3_EM68_Pos) /*!< 0x00000010 */
  8906. #define EXTI_EMR3_EM68 EXTI_EMR3_EM68_Msk /*!< Event Mask on line 68*/
  8907. #define EXTI_EMR3_EM69_Pos (5U)
  8908. #define EXTI_EMR3_EM69_Msk (0x1U << EXTI_EMR3_EM69_Pos) /*!< 0x00000020 */
  8909. #define EXTI_EMR3_EM69 EXTI_EMR3_EM69_Msk /*!< Event Mask on line 69*/
  8910. #define EXTI_EMR3_EM70_Pos (6U)
  8911. #define EXTI_EMR3_EM70_Msk (0x1U << EXTI_EMR3_EM70_Pos) /*!< 0x00000040 */
  8912. #define EXTI_EMR3_EM70 EXTI_EMR3_EM70_Msk /*!< Event Mask on line 70*/
  8913. #define EXTI_EMR3_EM71_Pos (7U)
  8914. #define EXTI_EMR3_EM71_Msk (0x1U << EXTI_EMR3_EM71_Pos) /*!< 0x00000080 */
  8915. #define EXTI_EMR3_EM71 EXTI_EMR3_EM71_Msk /*!< Event Mask on line 71*/
  8916. #define EXTI_EMR3_EM72_Pos (8U)
  8917. #define EXTI_EMR3_EM72_Msk (0x1U << EXTI_EMR3_EM72_Pos) /*!< 0x00000100 */
  8918. #define EXTI_EMR3_EM72 EXTI_EMR3_EM72_Msk /*!< Event Mask on line 72*/
  8919. #define EXTI_EMR3_EM73_Pos (9U)
  8920. #define EXTI_EMR3_EM73_Msk (0x1U << EXTI_EMR3_EM73_Pos) /*!< 0x00000200 */
  8921. #define EXTI_EMR3_EM73 EXTI_EMR3_EM73_Msk /*!< Event Mask on line 73*/
  8922. #define EXTI_EMR3_EM74_Pos (10U)
  8923. #define EXTI_EMR3_EM74_Msk (0x1U << EXTI_EMR3_EM74_Pos) /*!< 0x00000400 */
  8924. #define EXTI_EMR3_EM74 EXTI_EMR3_EM74_Msk /*!< Event Mask on line 74 */
  8925. #define EXTI_EMR3_EM75_Pos (11U)
  8926. #define EXTI_EMR3_EM75_Msk (0x1U << EXTI_EMR3_EM75_Pos) /*!< 0x00000800 */
  8927. #define EXTI_EMR3_EM75 EXTI_EMR3_EM75_Msk /*!< Event Mask on line 75 */
  8928. #define EXTI_EMR3_EM76_Pos (12U)
  8929. #define EXTI_EMR3_EM76_Msk (0x1U << EXTI_EMR3_EM76_Pos) /*!< 0x00001000 */
  8930. #define EXTI_EMR3_EM76 EXTI_EMR3_EM76_Msk /*!< Event Mask on line 76 */
  8931. #define EXTI_EMR3_EM77_Pos (13U)
  8932. #define EXTI_EMR3_EM77_Msk (0x1U << EXTI_EMR3_EM77_Pos) /*!< 0x00002000 */
  8933. #define EXTI_EMR3_EM77 EXTI_EMR3_EM77_Msk /*!< Event Mask on line 77 */
  8934. #define EXTI_EMR3_EM78_Pos (14U)
  8935. #define EXTI_EMR3_EM78_Msk (0x1U << EXTI_EMR3_EM78_Pos) /*!< 0x00004000 */
  8936. #define EXTI_EMR3_EM78 EXTI_EMR3_EM78_Msk /*!< Event Mask on line 78 */
  8937. #define EXTI_EMR3_EM79_Pos (15U)
  8938. #define EXTI_EMR3_EM79_Msk (0x1U << EXTI_EMR3_EM79_Pos) /*!< 0x00008000 */
  8939. #define EXTI_EMR3_EM79 EXTI_EMR3_EM79_Msk /*!< Event Mask on line 79 */
  8940. #define EXTI_EMR3_EM80_Pos (16U)
  8941. #define EXTI_EMR3_EM80_Msk (0x1U << EXTI_EMR3_EM80_Pos) /*!< 0x00010000 */
  8942. #define EXTI_EMR3_EM80 EXTI_EMR3_EM80_Msk /*!< Event Mask on line 80 */
  8943. #define EXTI_EMR3_EM81_Pos (17U)
  8944. #define EXTI_EMR3_EM81_Msk (0x1U << EXTI_EMR3_EM81_Pos) /*!< 0x00020000 */
  8945. #define EXTI_EMR3_EM81 EXTI_EMR3_EM81_Msk /*!< Event Mask on line 81 */
  8946. #define EXTI_EMR3_EM82_Pos (18U)
  8947. #define EXTI_EMR3_EM82_Msk (0x1U << EXTI_EMR3_EM82_Pos) /*!< 0x00040000 */
  8948. #define EXTI_EMR3_EM82 EXTI_EMR3_EM82_Msk /*!< Event Mask on line 82 */
  8949. #define EXTI_EMR3_EM84_Pos (20U)
  8950. #define EXTI_EMR3_EM84_Msk (0x1U << EXTI_EMR3_EM84_Pos) /*!< 0x00100000 */
  8951. #define EXTI_EMR3_EM84 EXTI_EMR3_EM84_Msk /*!< Event Mask on line 84 */
  8952. #define EXTI_EMR3_EM85_Pos (21U)
  8953. #define EXTI_EMR3_EM85_Msk (0x1U << EXTI_EMR3_EM85_Pos) /*!< 0x00200000 */
  8954. #define EXTI_EMR3_EM85 EXTI_EMR3_EM85_Msk /*!< Event Mask on line 85 */
  8955. #define EXTI_EMR3_EM86_Pos (22U)
  8956. #define EXTI_EMR3_EM86_Msk (0x1U << EXTI_EMR3_EM86_Pos) /*!< 0x00400000 */
  8957. #define EXTI_EMR3_EM86 EXTI_EMR3_EM86_Msk /*!< Event Mask on line 86 */
  8958. #define EXTI_EMR3_EM87_Pos (23U)
  8959. #define EXTI_EMR3_EM87_Msk (0x1U << EXTI_EMR3_EM87_Pos) /*!< 0x00800000 */
  8960. #define EXTI_EMR3_EM87 EXTI_EMR3_EM87_Msk /*!< Event Mask on line 87 */
  8961. #define EXTI_EMR3_EM88_Pos (24U)
  8962. #define EXTI_EMR3_EM88_Msk (0x1U << EXTI_EMR3_EM88_Pos) /*!< 0x01000000 */
  8963. #define EXTI_EMR3_EM88 EXTI_EMR3_EM88_Msk /*!< Event Mask on line 88 */
  8964. /****************** Bit definition for EXTI_RTSR1 register *******************/
  8965. #define EXTI_RTSR1_TR0_Pos (0U)
  8966. #define EXTI_RTSR1_TR0_Msk (0x1U << EXTI_RTSR1_TR0_Pos) /*!< 0x00000001 */
  8967. #define EXTI_RTSR1_TR0 EXTI_RTSR1_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */
  8968. #define EXTI_RTSR1_TR1_Pos (1U)
  8969. #define EXTI_RTSR1_TR1_Msk (0x1U << EXTI_RTSR1_TR1_Pos) /*!< 0x00000002 */
  8970. #define EXTI_RTSR1_TR1 EXTI_RTSR1_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */
  8971. #define EXTI_RTSR1_TR2_Pos (2U)
  8972. #define EXTI_RTSR1_TR2_Msk (0x1U << EXTI_RTSR1_TR2_Pos) /*!< 0x00000004 */
  8973. #define EXTI_RTSR1_TR2 EXTI_RTSR1_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */
  8974. #define EXTI_RTSR1_TR3_Pos (3U)
  8975. #define EXTI_RTSR1_TR3_Msk (0x1U << EXTI_RTSR1_TR3_Pos) /*!< 0x00000008 */
  8976. #define EXTI_RTSR1_TR3 EXTI_RTSR1_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */
  8977. #define EXTI_RTSR1_TR4_Pos (4U)
  8978. #define EXTI_RTSR1_TR4_Msk (0x1U << EXTI_RTSR1_TR4_Pos) /*!< 0x00000010 */
  8979. #define EXTI_RTSR1_TR4 EXTI_RTSR1_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */
  8980. #define EXTI_RTSR1_TR5_Pos (5U)
  8981. #define EXTI_RTSR1_TR5_Msk (0x1U << EXTI_RTSR1_TR5_Pos) /*!< 0x00000020 */
  8982. #define EXTI_RTSR1_TR5 EXTI_RTSR1_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */
  8983. #define EXTI_RTSR1_TR6_Pos (6U)
  8984. #define EXTI_RTSR1_TR6_Msk (0x1U << EXTI_RTSR1_TR6_Pos) /*!< 0x00000040 */
  8985. #define EXTI_RTSR1_TR6 EXTI_RTSR1_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */
  8986. #define EXTI_RTSR1_TR7_Pos (7U)
  8987. #define EXTI_RTSR1_TR7_Msk (0x1U << EXTI_RTSR1_TR7_Pos) /*!< 0x00000080 */
  8988. #define EXTI_RTSR1_TR7 EXTI_RTSR1_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */
  8989. #define EXTI_RTSR1_TR8_Pos (8U)
  8990. #define EXTI_RTSR1_TR8_Msk (0x1U << EXTI_RTSR1_TR8_Pos) /*!< 0x00000100 */
  8991. #define EXTI_RTSR1_TR8 EXTI_RTSR1_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */
  8992. #define EXTI_RTSR1_TR9_Pos (9U)
  8993. #define EXTI_RTSR1_TR9_Msk (0x1U << EXTI_RTSR1_TR9_Pos) /*!< 0x00000200 */
  8994. #define EXTI_RTSR1_TR9 EXTI_RTSR1_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */
  8995. #define EXTI_RTSR1_TR10_Pos (10U)
  8996. #define EXTI_RTSR1_TR10_Msk (0x1U << EXTI_RTSR1_TR10_Pos) /*!< 0x00000400 */
  8997. #define EXTI_RTSR1_TR10 EXTI_RTSR1_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */
  8998. #define EXTI_RTSR1_TR11_Pos (11U)
  8999. #define EXTI_RTSR1_TR11_Msk (0x1U << EXTI_RTSR1_TR11_Pos) /*!< 0x00000800 */
  9000. #define EXTI_RTSR1_TR11 EXTI_RTSR1_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */
  9001. #define EXTI_RTSR1_TR12_Pos (12U)
  9002. #define EXTI_RTSR1_TR12_Msk (0x1U << EXTI_RTSR1_TR12_Pos) /*!< 0x00001000 */
  9003. #define EXTI_RTSR1_TR12 EXTI_RTSR1_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */
  9004. #define EXTI_RTSR1_TR13_Pos (13U)
  9005. #define EXTI_RTSR1_TR13_Msk (0x1U << EXTI_RTSR1_TR13_Pos) /*!< 0x00002000 */
  9006. #define EXTI_RTSR1_TR13 EXTI_RTSR1_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */
  9007. #define EXTI_RTSR1_TR14_Pos (14U)
  9008. #define EXTI_RTSR1_TR14_Msk (0x1U << EXTI_RTSR1_TR14_Pos) /*!< 0x00004000 */
  9009. #define EXTI_RTSR1_TR14 EXTI_RTSR1_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */
  9010. #define EXTI_RTSR1_TR15_Pos (15U)
  9011. #define EXTI_RTSR1_TR15_Msk (0x1U << EXTI_RTSR1_TR15_Pos) /*!< 0x00008000 */
  9012. #define EXTI_RTSR1_TR15 EXTI_RTSR1_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */
  9013. #define EXTI_RTSR1_TR16_Pos (16U)
  9014. #define EXTI_RTSR1_TR16_Msk (0x1U << EXTI_RTSR1_TR16_Pos) /*!< 0x00010000 */
  9015. #define EXTI_RTSR1_TR16 EXTI_RTSR1_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */
  9016. #define EXTI_RTSR1_TR17_Pos (17U)
  9017. #define EXTI_RTSR1_TR17_Msk (0x1U << EXTI_RTSR1_TR17_Pos) /*!< 0x00020000 */
  9018. #define EXTI_RTSR1_TR17 EXTI_RTSR1_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */
  9019. #define EXTI_RTSR1_TR18_Pos (18U)
  9020. #define EXTI_RTSR1_TR18_Msk (0x1U << EXTI_RTSR1_TR18_Pos) /*!< 0x00040000 */
  9021. #define EXTI_RTSR1_TR18 EXTI_RTSR1_TR18_Msk /*!< Rising trigger event configuration bit of line 18 */
  9022. #define EXTI_RTSR1_TR19_Pos (19U)
  9023. #define EXTI_RTSR1_TR19_Msk (0x1U << EXTI_RTSR1_TR19_Pos) /*!< 0x00080000 */
  9024. #define EXTI_RTSR1_TR19 EXTI_RTSR1_TR19_Msk /*!< Rising trigger event configuration bit of line 19 */
  9025. #define EXTI_RTSR1_TR20_Pos (20U)
  9026. #define EXTI_RTSR1_TR20_Msk (0x1U << EXTI_RTSR1_TR20_Pos) /*!< 0x00100000 */
  9027. #define EXTI_RTSR1_TR20 EXTI_RTSR1_TR20_Msk /*!< Rising trigger event configuration bit of line 20 */
  9028. #define EXTI_RTSR1_TR21_Pos (21U)
  9029. #define EXTI_RTSR1_TR21_Msk (0x1U << EXTI_RTSR1_TR21_Pos) /*!< 0x00200000 */
  9030. #define EXTI_RTSR1_TR21 EXTI_RTSR1_TR21_Msk /*!< Rising trigger event configuration bit of line 21 */
  9031. /****************** Bit definition for EXTI_RTSR2 register *******************/
  9032. #define EXTI_RTSR2_TR49_Pos (17U)
  9033. #define EXTI_RTSR2_TR49_Msk (0x1U << EXTI_RTSR2_TR49_Pos) /*!< 0x00020000 */
  9034. #define EXTI_RTSR2_TR49 EXTI_RTSR2_TR49_Msk /*!< Rising trigger event configuration bit of line 49 */
  9035. #define EXTI_RTSR2_TR51_Pos (19U)
  9036. #define EXTI_RTSR2_TR51_Msk (0x1U << EXTI_RTSR2_TR51_Pos) /*!< 0x00080000 */
  9037. #define EXTI_RTSR2_TR51 EXTI_RTSR2_TR51_Msk /*!< Rising trigger event configuration bit of line 51 */
  9038. /****************** Bit definition for EXTI_RTSR3 register *******************/
  9039. #define EXTI_RTSR3_TR82_Pos (18U)
  9040. #define EXTI_RTSR3_TR82_Msk (0x1U << EXTI_RTSR3_TR82_Pos) /*!< 0x00040000 */
  9041. #define EXTI_RTSR3_TR82 EXTI_RTSR3_TR82_Msk /*!< Rising trigger event configuration bit of line 82 */
  9042. #define EXTI_RTSR3_TR84_Pos (20U)
  9043. #define EXTI_RTSR3_TR84_Msk (0x1U << EXTI_RTSR3_TR84_Pos) /*!< 0x00100000 */
  9044. #define EXTI_RTSR3_TR84 EXTI_RTSR3_TR84_Msk /*!< Rising trigger event configuration bit of line 84 */
  9045. #define EXTI_RTSR3_TR85_Pos (21U)
  9046. #define EXTI_RTSR3_TR85_Msk (0x1U << EXTI_RTSR3_TR85_Pos) /*!< 0x00200000 */
  9047. #define EXTI_RTSR3_TR85 EXTI_RTSR3_TR85_Msk /*!< Rising trigger event configuration bit of line 85 */
  9048. #define EXTI_RTSR3_TR86_Pos (22U)
  9049. #define EXTI_RTSR3_TR86_Msk (0x1U << EXTI_RTSR3_TR86_Pos) /*!< 0x00400000 */
  9050. #define EXTI_RTSR3_TR86 EXTI_RTSR3_TR86_Msk /*!< Rising trigger event configuration bit of line 86 */
  9051. /****************** Bit definition for EXTI_FTSR1 register *******************/
  9052. #define EXTI_FTSR1_TR0_Pos (0U)
  9053. #define EXTI_FTSR1_TR0_Msk (0x1U << EXTI_FTSR1_TR0_Pos) /*!< 0x00000001 */
  9054. #define EXTI_FTSR1_TR0 EXTI_FTSR1_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */
  9055. #define EXTI_FTSR1_TR1_Pos (1U)
  9056. #define EXTI_FTSR1_TR1_Msk (0x1U << EXTI_FTSR1_TR1_Pos) /*!< 0x00000002 */
  9057. #define EXTI_FTSR1_TR1 EXTI_FTSR1_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */
  9058. #define EXTI_FTSR1_TR2_Pos (2U)
  9059. #define EXTI_FTSR1_TR2_Msk (0x1U << EXTI_FTSR1_TR2_Pos) /*!< 0x00000004 */
  9060. #define EXTI_FTSR1_TR2 EXTI_FTSR1_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */
  9061. #define EXTI_FTSR1_TR3_Pos (3U)
  9062. #define EXTI_FTSR1_TR3_Msk (0x1U << EXTI_FTSR1_TR3_Pos) /*!< 0x00000008 */
  9063. #define EXTI_FTSR1_TR3 EXTI_FTSR1_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */
  9064. #define EXTI_FTSR1_TR4_Pos (4U)
  9065. #define EXTI_FTSR1_TR4_Msk (0x1U << EXTI_FTSR1_TR4_Pos) /*!< 0x00000010 */
  9066. #define EXTI_FTSR1_TR4 EXTI_FTSR1_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */
  9067. #define EXTI_FTSR1_TR5_Pos (5U)
  9068. #define EXTI_FTSR1_TR5_Msk (0x1U << EXTI_FTSR1_TR5_Pos) /*!< 0x00000020 */
  9069. #define EXTI_FTSR1_TR5 EXTI_FTSR1_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */
  9070. #define EXTI_FTSR1_TR6_Pos (6U)
  9071. #define EXTI_FTSR1_TR6_Msk (0x1U << EXTI_FTSR1_TR6_Pos) /*!< 0x00000040 */
  9072. #define EXTI_FTSR1_TR6 EXTI_FTSR1_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */
  9073. #define EXTI_FTSR1_TR7_Pos (7U)
  9074. #define EXTI_FTSR1_TR7_Msk (0x1U << EXTI_FTSR1_TR7_Pos) /*!< 0x00000080 */
  9075. #define EXTI_FTSR1_TR7 EXTI_FTSR1_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */
  9076. #define EXTI_FTSR1_TR8_Pos (8U)
  9077. #define EXTI_FTSR1_TR8_Msk (0x1U << EXTI_FTSR1_TR8_Pos) /*!< 0x00000100 */
  9078. #define EXTI_FTSR1_TR8 EXTI_FTSR1_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */
  9079. #define EXTI_FTSR1_TR9_Pos (9U)
  9080. #define EXTI_FTSR1_TR9_Msk (0x1U << EXTI_FTSR1_TR9_Pos) /*!< 0x00000200 */
  9081. #define EXTI_FTSR1_TR9 EXTI_FTSR1_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */
  9082. #define EXTI_FTSR1_TR10_Pos (10U)
  9083. #define EXTI_FTSR1_TR10_Msk (0x1U << EXTI_FTSR1_TR10_Pos) /*!< 0x00000400 */
  9084. #define EXTI_FTSR1_TR10 EXTI_FTSR1_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */
  9085. #define EXTI_FTSR1_TR11_Pos (11U)
  9086. #define EXTI_FTSR1_TR11_Msk (0x1U << EXTI_FTSR1_TR11_Pos) /*!< 0x00000800 */
  9087. #define EXTI_FTSR1_TR11 EXTI_FTSR1_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */
  9088. #define EXTI_FTSR1_TR12_Pos (12U)
  9089. #define EXTI_FTSR1_TR12_Msk (0x1U << EXTI_FTSR1_TR12_Pos) /*!< 0x00001000 */
  9090. #define EXTI_FTSR1_TR12 EXTI_FTSR1_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */
  9091. #define EXTI_FTSR1_TR13_Pos (13U)
  9092. #define EXTI_FTSR1_TR13_Msk (0x1U << EXTI_FTSR1_TR13_Pos) /*!< 0x00002000 */
  9093. #define EXTI_FTSR1_TR13 EXTI_FTSR1_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */
  9094. #define EXTI_FTSR1_TR14_Pos (14U)
  9095. #define EXTI_FTSR1_TR14_Msk (0x1U << EXTI_FTSR1_TR14_Pos) /*!< 0x00004000 */
  9096. #define EXTI_FTSR1_TR14 EXTI_FTSR1_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */
  9097. #define EXTI_FTSR1_TR15_Pos (15U)
  9098. #define EXTI_FTSR1_TR15_Msk (0x1U << EXTI_FTSR1_TR15_Pos) /*!< 0x00008000 */
  9099. #define EXTI_FTSR1_TR15 EXTI_FTSR1_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */
  9100. #define EXTI_FTSR1_TR16_Pos (16U)
  9101. #define EXTI_FTSR1_TR16_Msk (0x1U << EXTI_FTSR1_TR16_Pos) /*!< 0x00010000 */
  9102. #define EXTI_FTSR1_TR16 EXTI_FTSR1_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */
  9103. #define EXTI_FTSR1_TR17_Pos (17U)
  9104. #define EXTI_FTSR1_TR17_Msk (0x1U << EXTI_FTSR1_TR17_Pos) /*!< 0x00020000 */
  9105. #define EXTI_FTSR1_TR17 EXTI_FTSR1_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */
  9106. #define EXTI_FTSR1_TR18_Pos (18U)
  9107. #define EXTI_FTSR1_TR18_Msk (0x1U << EXTI_FTSR1_TR18_Pos) /*!< 0x00040000 */
  9108. #define EXTI_FTSR1_TR18 EXTI_FTSR1_TR18_Msk /*!< Falling trigger event configuration bit of line 18 */
  9109. #define EXTI_FTSR1_TR19_Pos (19U)
  9110. #define EXTI_FTSR1_TR19_Msk (0x1U << EXTI_FTSR1_TR19_Pos) /*!< 0x00080000 */
  9111. #define EXTI_FTSR1_TR19 EXTI_FTSR1_TR19_Msk /*!< Falling trigger event configuration bit of line 19 */
  9112. #define EXTI_FTSR1_TR20_Pos (20U)
  9113. #define EXTI_FTSR1_TR20_Msk (0x1U << EXTI_FTSR1_TR20_Pos) /*!< 0x00100000 */
  9114. #define EXTI_FTSR1_TR20 EXTI_FTSR1_TR20_Msk /*!< Falling trigger event configuration bit of line 20 */
  9115. #define EXTI_FTSR1_TR21_Pos (21U)
  9116. #define EXTI_FTSR1_TR21_Msk (0x1U << EXTI_FTSR1_TR21_Pos) /*!< 0x00200000 */
  9117. #define EXTI_FTSR1_TR21 EXTI_FTSR1_TR21_Msk /*!< Falling trigger event configuration bit of line 21 */
  9118. /****************** Bit definition for EXTI_FTSR2 register *******************/
  9119. #define EXTI_FTSR2_TR49_Pos (17U)
  9120. #define EXTI_FTSR2_TR49_Msk (0x1U << EXTI_FTSR2_TR49_Pos) /*!< 0x00020000 */
  9121. #define EXTI_FTSR2_TR49 EXTI_FTSR2_TR49_Msk /*!< Falling trigger event configuration bit of line 49 */
  9122. #define EXTI_FTSR2_TR51_Pos (19U)
  9123. #define EXTI_FTSR2_TR51_Msk (0x1U << EXTI_FTSR2_TR51_Pos) /*!< 0x00080000 */
  9124. #define EXTI_FTSR2_TR51 EXTI_FTSR2_TR51_Msk /*!< Falling trigger event configuration bit of line 51 */
  9125. /****************** Bit definition for EXTI_FTSR3 register *******************/
  9126. #define EXTI_FTSR3_TR82_Pos (18U)
  9127. #define EXTI_FTSR3_TR82_Msk (0x1U << EXTI_FTSR3_TR82_Pos) /*!< 0x00040000 */
  9128. #define EXTI_FTSR3_TR82 EXTI_FTSR3_TR82_Msk /*!< Falling trigger event configuration bit of line 82 */
  9129. #define EXTI_FTSR3_TR84_Pos (20U)
  9130. #define EXTI_FTSR3_TR84_Msk (0x1U << EXTI_FTSR3_TR84_Pos) /*!< 0x00100000 */
  9131. #define EXTI_FTSR3_TR84 EXTI_FTSR3_TR84_Msk /*!< Falling trigger event configuration bit of line 84 */
  9132. #define EXTI_FTSR3_TR85_Pos (21U)
  9133. #define EXTI_FTSR3_TR85_Msk (0x1U << EXTI_FTSR3_TR85_Pos) /*!< 0x00200000 */
  9134. #define EXTI_FTSR3_TR85 EXTI_FTSR3_TR85_Msk /*!< Falling trigger event configuration bit of line 85 */
  9135. #define EXTI_FTSR3_TR86_Pos (22U)
  9136. #define EXTI_FTSR3_TR86_Msk (0x1U << EXTI_FTSR3_TR86_Pos) /*!< 0x00400000 */
  9137. #define EXTI_FTSR3_TR86 EXTI_FTSR3_TR86_Msk /*!< Falling trigger event configuration bit of line 86 */
  9138. /****************** Bit definition for EXTI_SWIER1 register ******************/
  9139. #define EXTI_SWIER1_SWIER0_Pos (0U)
  9140. #define EXTI_SWIER1_SWIER0_Msk (0x1U << EXTI_SWIER1_SWIER0_Pos) /*!< 0x00000001 */
  9141. #define EXTI_SWIER1_SWIER0 EXTI_SWIER1_SWIER0_Msk /*!< Software Interrupt on line 0 */
  9142. #define EXTI_SWIER1_SWIER1_Pos (1U)
  9143. #define EXTI_SWIER1_SWIER1_Msk (0x1U << EXTI_SWIER1_SWIER1_Pos) /*!< 0x00000002 */
  9144. #define EXTI_SWIER1_SWIER1 EXTI_SWIER1_SWIER1_Msk /*!< Software Interrupt on line 1 */
  9145. #define EXTI_SWIER1_SWIER2_Pos (2U)
  9146. #define EXTI_SWIER1_SWIER2_Msk (0x1U << EXTI_SWIER1_SWIER2_Pos) /*!< 0x00000004 */
  9147. #define EXTI_SWIER1_SWIER2 EXTI_SWIER1_SWIER2_Msk /*!< Software Interrupt on line 2 */
  9148. #define EXTI_SWIER1_SWIER3_Pos (3U)
  9149. #define EXTI_SWIER1_SWIER3_Msk (0x1U << EXTI_SWIER1_SWIER3_Pos) /*!< 0x00000008 */
  9150. #define EXTI_SWIER1_SWIER3 EXTI_SWIER1_SWIER3_Msk /*!< Software Interrupt on line 3 */
  9151. #define EXTI_SWIER1_SWIER4_Pos (4U)
  9152. #define EXTI_SWIER1_SWIER4_Msk (0x1U << EXTI_SWIER1_SWIER4_Pos) /*!< 0x00000010 */
  9153. #define EXTI_SWIER1_SWIER4 EXTI_SWIER1_SWIER4_Msk /*!< Software Interrupt on line 4 */
  9154. #define EXTI_SWIER1_SWIER5_Pos (5U)
  9155. #define EXTI_SWIER1_SWIER5_Msk (0x1U << EXTI_SWIER1_SWIER5_Pos) /*!< 0x00000020 */
  9156. #define EXTI_SWIER1_SWIER5 EXTI_SWIER1_SWIER5_Msk /*!< Software Interrupt on line 5 */
  9157. #define EXTI_SWIER1_SWIER6_Pos (6U)
  9158. #define EXTI_SWIER1_SWIER6_Msk (0x1U << EXTI_SWIER1_SWIER6_Pos) /*!< 0x00000040 */
  9159. #define EXTI_SWIER1_SWIER6 EXTI_SWIER1_SWIER6_Msk /*!< Software Interrupt on line 6 */
  9160. #define EXTI_SWIER1_SWIER7_Pos (7U)
  9161. #define EXTI_SWIER1_SWIER7_Msk (0x1U << EXTI_SWIER1_SWIER7_Pos) /*!< 0x00000080 */
  9162. #define EXTI_SWIER1_SWIER7 EXTI_SWIER1_SWIER7_Msk /*!< Software Interrupt on line 7 */
  9163. #define EXTI_SWIER1_SWIER8_Pos (8U)
  9164. #define EXTI_SWIER1_SWIER8_Msk (0x1U << EXTI_SWIER1_SWIER8_Pos) /*!< 0x00000100 */
  9165. #define EXTI_SWIER1_SWIER8 EXTI_SWIER1_SWIER8_Msk /*!< Software Interrupt on line 8 */
  9166. #define EXTI_SWIER1_SWIER9_Pos (9U)
  9167. #define EXTI_SWIER1_SWIER9_Msk (0x1U << EXTI_SWIER1_SWIER9_Pos) /*!< 0x00000200 */
  9168. #define EXTI_SWIER1_SWIER9 EXTI_SWIER1_SWIER9_Msk /*!< Software Interrupt on line 9 */
  9169. #define EXTI_SWIER1_SWIER10_Pos (10U)
  9170. #define EXTI_SWIER1_SWIER10_Msk (0x1U << EXTI_SWIER1_SWIER10_Pos) /*!< 0x00000400 */
  9171. #define EXTI_SWIER1_SWIER10 EXTI_SWIER1_SWIER10_Msk /*!< Software Interrupt on line 10 */
  9172. #define EXTI_SWIER1_SWIER11_Pos (11U)
  9173. #define EXTI_SWIER1_SWIER11_Msk (0x1U << EXTI_SWIER1_SWIER11_Pos) /*!< 0x00000800 */
  9174. #define EXTI_SWIER1_SWIER11 EXTI_SWIER1_SWIER11_Msk /*!< Software Interrupt on line 11 */
  9175. #define EXTI_SWIER1_SWIER12_Pos (12U)
  9176. #define EXTI_SWIER1_SWIER12_Msk (0x1U << EXTI_SWIER1_SWIER12_Pos) /*!< 0x00001000 */
  9177. #define EXTI_SWIER1_SWIER12 EXTI_SWIER1_SWIER12_Msk /*!< Software Interrupt on line 12 */
  9178. #define EXTI_SWIER1_SWIER13_Pos (13U)
  9179. #define EXTI_SWIER1_SWIER13_Msk (0x1U << EXTI_SWIER1_SWIER13_Pos) /*!< 0x00002000 */
  9180. #define EXTI_SWIER1_SWIER13 EXTI_SWIER1_SWIER13_Msk /*!< Software Interrupt on line 13 */
  9181. #define EXTI_SWIER1_SWIER14_Pos (14U)
  9182. #define EXTI_SWIER1_SWIER14_Msk (0x1U << EXTI_SWIER1_SWIER14_Pos) /*!< 0x00004000 */
  9183. #define EXTI_SWIER1_SWIER14 EXTI_SWIER1_SWIER14_Msk /*!< Software Interrupt on line 14 */
  9184. #define EXTI_SWIER1_SWIER15_Pos (15U)
  9185. #define EXTI_SWIER1_SWIER15_Msk (0x1U << EXTI_SWIER1_SWIER15_Pos) /*!< 0x00008000 */
  9186. #define EXTI_SWIER1_SWIER15 EXTI_SWIER1_SWIER15_Msk /*!< Software Interrupt on line 15 */
  9187. #define EXTI_SWIER1_SWIER16_Pos (16U)
  9188. #define EXTI_SWIER1_SWIER16_Msk (0x1U << EXTI_SWIER1_SWIER16_Pos) /*!< 0x00010000 */
  9189. #define EXTI_SWIER1_SWIER16 EXTI_SWIER1_SWIER16_Msk /*!< Software Interrupt on line 16 */
  9190. #define EXTI_SWIER1_SWIER17_Pos (17U)
  9191. #define EXTI_SWIER1_SWIER17_Msk (0x1U << EXTI_SWIER1_SWIER17_Pos) /*!< 0x00020000 */
  9192. #define EXTI_SWIER1_SWIER17 EXTI_SWIER1_SWIER17_Msk /*!< Software Interrupt on line 17 */
  9193. #define EXTI_SWIER1_SWIER18_Pos (18U)
  9194. #define EXTI_SWIER1_SWIER18_Msk (0x1U << EXTI_SWIER1_SWIER18_Pos) /*!< 0x00040000 */
  9195. #define EXTI_SWIER1_SWIER18 EXTI_SWIER1_SWIER18_Msk /*!< Software Interrupt on line 18 */
  9196. #define EXTI_SWIER1_SWIER19_Pos (19U)
  9197. #define EXTI_SWIER1_SWIER19_Msk (0x1U << EXTI_SWIER1_SWIER19_Pos) /*!< 0x00080000 */
  9198. #define EXTI_SWIER1_SWIER19 EXTI_SWIER1_SWIER19_Msk /*!< Software Interrupt on line 19 */
  9199. #define EXTI_SWIER1_SWIER20_Pos (20U)
  9200. #define EXTI_SWIER1_SWIER20_Msk (0x1U << EXTI_SWIER1_SWIER20_Pos) /*!< 0x00100000 */
  9201. #define EXTI_SWIER1_SWIER20 EXTI_SWIER1_SWIER20_Msk /*!< Software Interrupt on line 20 */
  9202. #define EXTI_SWIER1_SWIER21_Pos (21U)
  9203. #define EXTI_SWIER1_SWIER21_Msk (0x1U << EXTI_SWIER1_SWIER21_Pos) /*!< 0x00200000 */
  9204. #define EXTI_SWIER1_SWIER21 EXTI_SWIER1_SWIER21_Msk /*!< Software Interrupt on line 21 */
  9205. /****************** Bit definition for EXTI_SWIER2 register ******************/
  9206. #define EXTI_SWIER2_SWIER49_Pos (17U)
  9207. #define EXTI_SWIER2_SWIER49_Msk (0x1U << EXTI_SWIER2_SWIER49_Pos) /*!< 0x00020000 */
  9208. #define EXTI_SWIER2_SWIER49 EXTI_SWIER2_SWIER49_Msk /*!< Software Interrupt on line 49 */
  9209. #define EXTI_SWIER2_SWIER51_Pos (19U)
  9210. #define EXTI_SWIER2_SWIER51_Msk (0x1U << EXTI_SWIER2_SWIER51_Pos) /*!< 0x00080000 */
  9211. #define EXTI_SWIER2_SWIER51 EXTI_SWIER2_SWIER51_Msk /*!< Software Interrupt on line 51 */
  9212. /****************** Bit definition for EXTI_SWIER3 register ******************/
  9213. #define EXTI_SWIER3_SWIER82_Pos (18U)
  9214. #define EXTI_SWIER3_SWIER82_Msk (0x1U << EXTI_SWIER3_SWIER82_Pos) /*!< 0x00040000 */
  9215. #define EXTI_SWIER3_SWIER82 EXTI_SWIER3_SWIER82_Msk /*!< Software Interrupt on line 82 */
  9216. #define EXTI_SWIER3_SWIER84_Pos (20U)
  9217. #define EXTI_SWIER3_SWIER84_Msk (0x1U << EXTI_SWIER3_SWIER84_Pos) /*!< 0x00100000 */
  9218. #define EXTI_SWIER3_SWIER84 EXTI_SWIER3_SWIER84_Msk /*!< Software Interrupt on line 84 */
  9219. #define EXTI_SWIER3_SWIER85_Pos (21U)
  9220. #define EXTI_SWIER3_SWIER85_Msk (0x1U << EXTI_SWIER3_SWIER85_Pos) /*!< 0x00200000 */
  9221. #define EXTI_SWIER3_SWIER85 EXTI_SWIER3_SWIER85_Msk /*!< Software Interrupt on line 85 */
  9222. #define EXTI_SWIER3_SWIER86_Pos (22U)
  9223. #define EXTI_SWIER3_SWIER86_Msk (0x1U << EXTI_SWIER3_SWIER86_Pos) /*!< 0x00400000 */
  9224. #define EXTI_SWIER3_SWIER86 EXTI_SWIER3_SWIER86_Msk /*!< Software Interrupt on line 86 */
  9225. /****************** Bit definition for EXTI_D3PMR1 register ******************/
  9226. #define EXTI_D3PMR1_MR0_Pos (0U)
  9227. #define EXTI_D3PMR1_MR0_Msk (0x1U << EXTI_D3PMR1_MR0_Pos) /*!< 0x00000001 */
  9228. #define EXTI_D3PMR1_MR0 EXTI_D3PMR1_MR0_Msk /*!< Pending Mask Event for line 0 */
  9229. #define EXTI_D3PMR1_MR1_Pos (1U)
  9230. #define EXTI_D3PMR1_MR1_Msk (0x1U << EXTI_D3PMR1_MR1_Pos) /*!< 0x00000002 */
  9231. #define EXTI_D3PMR1_MR1 EXTI_D3PMR1_MR1_Msk /*!< Pending Mask Event for line 1 */
  9232. #define EXTI_D3PMR1_MR2_Pos (2U)
  9233. #define EXTI_D3PMR1_MR2_Msk (0x1U << EXTI_D3PMR1_MR2_Pos) /*!< 0x00000004 */
  9234. #define EXTI_D3PMR1_MR2 EXTI_D3PMR1_MR2_Msk /*!< Pending Mask Event for line 2 */
  9235. #define EXTI_D3PMR1_MR3_Pos (3U)
  9236. #define EXTI_D3PMR1_MR3_Msk (0x1U << EXTI_D3PMR1_MR3_Pos) /*!< 0x00000008 */
  9237. #define EXTI_D3PMR1_MR3 EXTI_D3PMR1_MR3_Msk /*!< Pending Mask Event for line 3 */
  9238. #define EXTI_D3PMR1_MR4_Pos (4U)
  9239. #define EXTI_D3PMR1_MR4_Msk (0x1U << EXTI_D3PMR1_MR4_Pos) /*!< 0x00000010 */
  9240. #define EXTI_D3PMR1_MR4 EXTI_D3PMR1_MR4_Msk /*!< Pending Mask Event for line 4 */
  9241. #define EXTI_D3PMR1_MR5_Pos (5U)
  9242. #define EXTI_D3PMR1_MR5_Msk (0x1U << EXTI_D3PMR1_MR5_Pos) /*!< 0x00000020 */
  9243. #define EXTI_D3PMR1_MR5 EXTI_D3PMR1_MR5_Msk /*!< Pending Mask Event for line 5 */
  9244. #define EXTI_D3PMR1_MR6_Pos (6U)
  9245. #define EXTI_D3PMR1_MR6_Msk (0x1U << EXTI_D3PMR1_MR6_Pos) /*!< 0x00000040 */
  9246. #define EXTI_D3PMR1_MR6 EXTI_D3PMR1_MR6_Msk /*!< Pending Mask Event for line 6 */
  9247. #define EXTI_D3PMR1_MR7_Pos (7U)
  9248. #define EXTI_D3PMR1_MR7_Msk (0x1U << EXTI_D3PMR1_MR7_Pos) /*!< 0x00000080 */
  9249. #define EXTI_D3PMR1_MR7 EXTI_D3PMR1_MR7_Msk /*!< Pending Mask Event for line 7 */
  9250. #define EXTI_D3PMR1_MR8_Pos (8U)
  9251. #define EXTI_D3PMR1_MR8_Msk (0x1U << EXTI_D3PMR1_MR8_Pos) /*!< 0x00000100 */
  9252. #define EXTI_D3PMR1_MR8 EXTI_D3PMR1_MR8_Msk /*!< Pending Mask Event for line 8 */
  9253. #define EXTI_D3PMR1_MR9_Pos (9U)
  9254. #define EXTI_D3PMR1_MR9_Msk (0x1U << EXTI_D3PMR1_MR9_Pos) /*!< 0x00000200 */
  9255. #define EXTI_D3PMR1_MR9 EXTI_D3PMR1_MR9_Msk /*!< Pending Mask Event for line 9 */
  9256. #define EXTI_D3PMR1_MR10_Pos (10U)
  9257. #define EXTI_D3PMR1_MR10_Msk (0x1U << EXTI_D3PMR1_MR10_Pos) /*!< 0x00000400 */
  9258. #define EXTI_D3PMR1_MR10 EXTI_D3PMR1_MR10_Msk /*!< Pending Mask Event for line 10 */
  9259. #define EXTI_D3PMR1_MR11_Pos (11U)
  9260. #define EXTI_D3PMR1_MR11_Msk (0x1U << EXTI_D3PMR1_MR11_Pos) /*!< 0x00000800 */
  9261. #define EXTI_D3PMR1_MR11 EXTI_D3PMR1_MR11_Msk /*!< Pending Mask Event for line 11 */
  9262. #define EXTI_D3PMR1_MR12_Pos (12U)
  9263. #define EXTI_D3PMR1_MR12_Msk (0x1U << EXTI_D3PMR1_MR12_Pos) /*!< 0x00001000 */
  9264. #define EXTI_D3PMR1_MR12 EXTI_D3PMR1_MR12_Msk /*!< Pending Mask Event for line 12 */
  9265. #define EXTI_D3PMR1_MR13_Pos (13U)
  9266. #define EXTI_D3PMR1_MR13_Msk (0x1U << EXTI_D3PMR1_MR13_Pos) /*!< 0x00002000 */
  9267. #define EXTI_D3PMR1_MR13 EXTI_D3PMR1_MR13_Msk /*!< Pending Mask Event for line 13 */
  9268. #define EXTI_D3PMR1_MR14_Pos (14U)
  9269. #define EXTI_D3PMR1_MR14_Msk (0x1U << EXTI_D3PMR1_MR14_Pos) /*!< 0x00004000 */
  9270. #define EXTI_D3PMR1_MR14 EXTI_D3PMR1_MR14_Msk /*!< Pending Mask Event for line 14 */
  9271. #define EXTI_D3PMR1_MR15_Pos (15U)
  9272. #define EXTI_D3PMR1_MR15_Msk (0x1U << EXTI_D3PMR1_MR15_Pos) /*!< 0x00008000 */
  9273. #define EXTI_D3PMR1_MR15 EXTI_D3PMR1_MR15_Msk /*!< Pending Mask Event for line 15 */
  9274. #define EXTI_D3PMR1_MR19_Pos (19U)
  9275. #define EXTI_D3PMR1_MR19_Msk (0x1U << EXTI_D3PMR1_MR19_Pos) /*!< 0x00080000 */
  9276. #define EXTI_D3PMR1_MR19 EXTI_D3PMR1_MR19_Msk /*!< Pending Mask Event for line 19 */
  9277. #define EXTI_D3PMR1_MR20_Pos (20U)
  9278. #define EXTI_D3PMR1_MR20_Msk (0x1U << EXTI_D3PMR1_MR20_Pos) /*!< 0x00100000 */
  9279. #define EXTI_D3PMR1_MR20 EXTI_D3PMR1_MR20_Msk /*!< Pending Mask Event for line 20 */
  9280. #define EXTI_D3PMR1_MR21_Pos (21U)
  9281. #define EXTI_D3PMR1_MR21_Msk (0x1U << EXTI_D3PMR1_MR21_Pos) /*!< 0x00200000 */
  9282. #define EXTI_D3PMR1_MR21 EXTI_D3PMR1_MR21_Msk /*!< Pending Mask Event for line 21 */
  9283. #define EXTI_D3PMR1_MR25_Pos (24U)
  9284. #define EXTI_D3PMR1_MR25_Msk (0x1U << EXTI_D3PMR1_MR25_Pos) /*!< 0x01000000 */
  9285. #define EXTI_D3PMR1_MR25 EXTI_D3PMR1_MR25_Msk /*!< Pending Mask Event for line 25 */
  9286. /****************** Bit definition for EXTI_D3PMR2 register ******************/
  9287. #define EXTI_D3PMR2_MR34_Pos (2U)
  9288. #define EXTI_D3PMR2_MR34_Msk (0x1U << EXTI_D3PMR2_MR34_Pos) /*!< 0x00000004 */
  9289. #define EXTI_D3PMR2_MR34 EXTI_D3PMR2_MR34_Msk /*!< Pending Mask Event for line 34 */
  9290. #define EXTI_D3PMR2_MR35_Pos (3U)
  9291. #define EXTI_D3PMR2_MR35_Msk (0x1U << EXTI_D3PMR2_MR35_Pos) /*!< 0x00000008 */
  9292. #define EXTI_D3PMR2_MR35 EXTI_D3PMR2_MR35_Msk /*!< Pending Mask Event for line 35 */
  9293. #define EXTI_D3PMR2_MR41_Pos (9U)
  9294. #define EXTI_D3PMR2_MR41_Msk (0x1U << EXTI_D3PMR2_MR41_Pos) /*!< 0x00000200 */
  9295. #define EXTI_D3PMR2_MR41 EXTI_D3PMR2_MR41_Msk /*!< Pending Mask Event for line 41 */
  9296. #define EXTI_D3PMR2_MR48_Pos (16U)
  9297. #define EXTI_D3PMR2_MR48_Msk (0x1U << EXTI_D3PMR2_MR48_Pos) /*!< 0x00010000 */
  9298. #define EXTI_D3PMR2_MR48 EXTI_D3PMR2_MR48_Msk /*!< Pending Mask Event for line 48 */
  9299. #define EXTI_D3PMR2_MR49_Pos (17U)
  9300. #define EXTI_D3PMR2_MR49_Msk (0x1U << EXTI_D3PMR2_MR49_Pos) /*!< 0x00020000 */
  9301. #define EXTI_D3PMR2_MR49 EXTI_D3PMR2_MR49_Msk /*!< Pending Mask Event for line 49 */
  9302. #define EXTI_D3PMR2_MR50_Pos (18U)
  9303. #define EXTI_D3PMR2_MR50_Msk (0x1U << EXTI_D3PMR2_MR50_Pos) /*!< 0x00040000 */
  9304. #define EXTI_D3PMR2_MR50 EXTI_D3PMR2_MR50_Msk /*!< Pending Mask Event for line 50 */
  9305. #define EXTI_D3PMR2_MR51_Pos (19U)
  9306. #define EXTI_D3PMR2_MR51_Msk (0x1U << EXTI_D3PMR2_MR51_Pos) /*!< 0x00080000 */
  9307. #define EXTI_D3PMR2_MR51 EXTI_D3PMR2_MR51_Msk /*!< Pending Mask Event for line 51 */
  9308. #define EXTI_D3PMR2_MR52_Pos (20U)
  9309. #define EXTI_D3PMR2_MR52_Msk (0x1U << EXTI_D3PMR2_MR52_Pos) /*!< 0x00100000 */
  9310. #define EXTI_D3PMR2_MR52 EXTI_D3PMR2_MR52_Msk /*!< Pending Mask Event for line 52 */
  9311. #define EXTI_D3PMR2_MR53_Pos (21U)
  9312. #define EXTI_D3PMR2_MR53_Msk (0x1U << EXTI_D3PMR2_MR53_Pos) /*!< 0x00200000 */
  9313. #define EXTI_D3PMR2_MR53 EXTI_D3PMR2_MR53_Msk /*!< Pending Mask Event for line 53 */
  9314. /****************** Bit definition for EXTI_D3PMR3 register ******************/
  9315. #define EXTI_D3PMR3_MR88_Pos (24U)
  9316. #define EXTI_D3PMR3_MR88_Msk (0x1U << EXTI_D3PMR3_MR88_Pos) /*!< 0x01000000 */
  9317. #define EXTI_D3PMR3_MR88 EXTI_D3PMR3_MR88_Msk /*!< Pending Mask Event for line 88 */
  9318. /******************* Bit definition for EXTI_PR1 register ********************/
  9319. #define EXTI_PR1_PR0_Pos (0U)
  9320. #define EXTI_PR1_PR0_Msk (0x1U << EXTI_PR1_PR0_Pos) /*!< 0x00000001 */
  9321. #define EXTI_PR1_PR0 EXTI_PR1_PR0_Msk /*!< Pending bit for line 0 */
  9322. #define EXTI_PR1_PR1_Pos (1U)
  9323. #define EXTI_PR1_PR1_Msk (0x1U << EXTI_PR1_PR1_Pos) /*!< 0x00000002 */
  9324. #define EXTI_PR1_PR1 EXTI_PR1_PR1_Msk /*!< Pending bit for line 1 */
  9325. #define EXTI_PR1_PR2_Pos (2U)
  9326. #define EXTI_PR1_PR2_Msk (0x1U << EXTI_PR1_PR2_Pos) /*!< 0x00000004 */
  9327. #define EXTI_PR1_PR2 EXTI_PR1_PR2_Msk /*!< Pending bit for line 2 */
  9328. #define EXTI_PR1_PR3_Pos (3U)
  9329. #define EXTI_PR1_PR3_Msk (0x1U << EXTI_PR1_PR3_Pos) /*!< 0x00000008 */
  9330. #define EXTI_PR1_PR3 EXTI_PR1_PR3_Msk /*!< Pending bit for line 3 */
  9331. #define EXTI_PR1_PR4_Pos (4U)
  9332. #define EXTI_PR1_PR4_Msk (0x1U << EXTI_PR1_PR4_Pos) /*!< 0x00000010 */
  9333. #define EXTI_PR1_PR4 EXTI_PR1_PR4_Msk /*!< Pending bit for line 4 */
  9334. #define EXTI_PR1_PR5_Pos (5U)
  9335. #define EXTI_PR1_PR5_Msk (0x1U << EXTI_PR1_PR5_Pos) /*!< 0x00000020 */
  9336. #define EXTI_PR1_PR5 EXTI_PR1_PR5_Msk /*!< Pending bit for line 5 */
  9337. #define EXTI_PR1_PR6_Pos (6U)
  9338. #define EXTI_PR1_PR6_Msk (0x1U << EXTI_PR1_PR6_Pos) /*!< 0x00000040 */
  9339. #define EXTI_PR1_PR6 EXTI_PR1_PR6_Msk /*!< Pending bit for line 6 */
  9340. #define EXTI_PR1_PR7_Pos (7U)
  9341. #define EXTI_PR1_PR7_Msk (0x1U << EXTI_PR1_PR7_Pos) /*!< 0x00000080 */
  9342. #define EXTI_PR1_PR7 EXTI_PR1_PR7_Msk /*!< Pending bit for line 7 */
  9343. #define EXTI_PR1_PR8_Pos (8U)
  9344. #define EXTI_PR1_PR8_Msk (0x1U << EXTI_PR1_PR8_Pos) /*!< 0x00000100 */
  9345. #define EXTI_PR1_PR8 EXTI_PR1_PR8_Msk /*!< Pending bit for line 8 */
  9346. #define EXTI_PR1_PR9_Pos (9U)
  9347. #define EXTI_PR1_PR9_Msk (0x1U << EXTI_PR1_PR9_Pos) /*!< 0x00000200 */
  9348. #define EXTI_PR1_PR9 EXTI_PR1_PR9_Msk /*!< Pending bit for line 9 */
  9349. #define EXTI_PR1_PR10_Pos (10U)
  9350. #define EXTI_PR1_PR10_Msk (0x1U << EXTI_PR1_PR10_Pos) /*!< 0x00000400 */
  9351. #define EXTI_PR1_PR10 EXTI_PR1_PR10_Msk /*!< Pending bit for line 10 */
  9352. #define EXTI_PR1_PR11_Pos (11U)
  9353. #define EXTI_PR1_PR11_Msk (0x1U << EXTI_PR1_PR11_Pos) /*!< 0x00000800 */
  9354. #define EXTI_PR1_PR11 EXTI_PR1_PR11_Msk /*!< Pending bit for line 11 */
  9355. #define EXTI_PR1_PR12_Pos (12U)
  9356. #define EXTI_PR1_PR12_Msk (0x1U << EXTI_PR1_PR12_Pos) /*!< 0x00001000 */
  9357. #define EXTI_PR1_PR12 EXTI_PR1_PR12_Msk /*!< Pending bit for line 12 */
  9358. #define EXTI_PR1_PR13_Pos (13U)
  9359. #define EXTI_PR1_PR13_Msk (0x1U << EXTI_PR1_PR13_Pos) /*!< 0x00002000 */
  9360. #define EXTI_PR1_PR13 EXTI_PR1_PR13_Msk /*!< Pending bit for line 13 */
  9361. #define EXTI_PR1_PR14_Pos (14U)
  9362. #define EXTI_PR1_PR14_Msk (0x1U << EXTI_PR1_PR14_Pos) /*!< 0x00004000 */
  9363. #define EXTI_PR1_PR14 EXTI_PR1_PR14_Msk /*!< Pending bit for line 14 */
  9364. #define EXTI_PR1_PR15_Pos (15U)
  9365. #define EXTI_PR1_PR15_Msk (0x1U << EXTI_PR1_PR15_Pos) /*!< 0x00008000 */
  9366. #define EXTI_PR1_PR15 EXTI_PR1_PR15_Msk /*!< Pending bit for line 15 */
  9367. #define EXTI_PR1_PR16_Pos (16U)
  9368. #define EXTI_PR1_PR16_Msk (0x1U << EXTI_PR1_PR16_Pos) /*!< 0x00010000 */
  9369. #define EXTI_PR1_PR16 EXTI_PR1_PR16_Msk /*!< Pending bit for line 16 */
  9370. #define EXTI_PR1_PR17_Pos (17U)
  9371. #define EXTI_PR1_PR17_Msk (0x1U << EXTI_PR1_PR17_Pos) /*!< 0x00020000 */
  9372. #define EXTI_PR1_PR17 EXTI_PR1_PR17_Msk /*!< Pending bit for line 17 */
  9373. #define EXTI_PR1_PR18_Pos (18U)
  9374. #define EXTI_PR1_PR18_Msk (0x1U << EXTI_PR1_PR18_Pos) /*!< 0x00040000 */
  9375. #define EXTI_PR1_PR18 EXTI_PR1_PR18_Msk /*!< Pending bit for line 18 */
  9376. #define EXTI_PR1_PR19_Pos (19U)
  9377. #define EXTI_PR1_PR19_Msk (0x1U << EXTI_PR1_PR19_Pos) /*!< 0x00080000 */
  9378. #define EXTI_PR1_PR19 EXTI_PR1_PR19_Msk /*!< Pending bit for line 19 */
  9379. #define EXTI_PR1_PR20_Pos (20U)
  9380. #define EXTI_PR1_PR20_Msk (0x1U << EXTI_PR1_PR20_Pos) /*!< 0x00100000 */
  9381. #define EXTI_PR1_PR20 EXTI_PR1_PR20_Msk /*!< Pending bit for line 20 */
  9382. #define EXTI_PR1_PR21_Pos (21U)
  9383. #define EXTI_PR1_PR21_Msk (0x1U << EXTI_PR1_PR21_Pos) /*!< 0x00200000 */
  9384. #define EXTI_PR1_PR21 EXTI_PR1_PR21_Msk /*!< Pending bit for line 21 */
  9385. /******************* Bit definition for EXTI_PR2 register ********************/
  9386. #define EXTI_PR2_PR49_Pos (17U)
  9387. #define EXTI_PR2_PR49_Msk (0x1U << EXTI_PR2_PR49_Pos) /*!< 0x00020000 */
  9388. #define EXTI_PR2_PR49 EXTI_PR2_PR49_Msk /*!< Pending bit for line 49 */
  9389. #define EXTI_PR2_PR51_Pos (19U)
  9390. #define EXTI_PR2_PR51_Msk (0x1U << EXTI_PR2_PR51_Pos) /*!< 0x00080000 */
  9391. #define EXTI_PR2_PR51 EXTI_PR2_PR51_Msk /*!< Pending bit for line 51 */
  9392. /******************* Bit definition for EXTI_PR3 register ********************/
  9393. #define EXTI_PR3_PR82_Pos (18U)
  9394. #define EXTI_PR3_PR82_Msk (0x1U << EXTI_PR3_PR82_Pos) /*!< 0x00040000 */
  9395. #define EXTI_PR3_PR82 EXTI_PR3_PR82_Msk /*!< Pending bit for line 82 */
  9396. #define EXTI_PR3_PR84_Pos (20U)
  9397. #define EXTI_PR3_PR84_Msk (0x1U << EXTI_PR3_PR84_Pos) /*!< 0x00100000 */
  9398. #define EXTI_PR3_PR84 EXTI_PR3_PR84_Msk /*!< Pending bit for line 84 */
  9399. #define EXTI_PR3_PR85_Pos (21U)
  9400. #define EXTI_PR3_PR85_Msk (0x1U << EXTI_PR3_PR85_Pos) /*!< 0x00200000 */
  9401. #define EXTI_PR3_PR85 EXTI_PR3_PR85_Msk /*!< Pending bit for line 85 */
  9402. #define EXTI_PR3_PR86_Pos (22U)
  9403. #define EXTI_PR3_PR86_Msk (0x1U << EXTI_PR3_PR86_Pos) /*!< 0x00400000 */
  9404. #define EXTI_PR3_PR86 EXTI_PR3_PR86_Msk /*!< Pending bit for line 86 */
  9405. /******************************************************************************/
  9406. /* */
  9407. /* FLASH */
  9408. /* */
  9409. /******************************************************************************/
  9410. /*
  9411. * @brief FLASH Total Sectors Number
  9412. */
  9413. #define FLASH_SECTOR_TOTAL 16
  9414. /******************* Bits definition for FLASH_ACR register **********************/
  9415. #define FLASH_ACR_LATENCY 0x00000007U
  9416. #define FLASH_ACR_LATENCY_0WS 0x00000000U
  9417. #define FLASH_ACR_LATENCY_1WS 0x00000001U
  9418. #define FLASH_ACR_LATENCY_2WS 0x00000002U
  9419. #define FLASH_ACR_LATENCY_3WS 0x00000003U
  9420. #define FLASH_ACR_LATENCY_4WS 0x00000004U
  9421. #define FLASH_ACR_LATENCY_5WS 0x00000005U
  9422. #define FLASH_ACR_LATENCY_6WS 0x00000006U
  9423. #define FLASH_ACR_LATENCY_7WS 0x00000007U
  9424. #define FLASH_ACR_WRHIGHFREQ 0x00000030U
  9425. #define FLASH_ACR_WRHIGHFREQ_0 0x00000000U
  9426. #define FLASH_ACR_WRHIGHFREQ_1 0x00000010U
  9427. #define FLASH_ACR_WRHIGHFREQ_2 0x00000020U
  9428. #define FLASH_ACR_WRHIGHFREQ_3 0x00000030U
  9429. /******************* Bits definition for FLASH_CR register ***********************/
  9430. #define FLASH_CR_LOCK 0x00000001U
  9431. #define FLASH_CR_PG 0x00000002U
  9432. #define FLASH_CR_SER 0x00000004U
  9433. #define FLASH_CR_BER 0x00000008U
  9434. #define FLASH_CR_PSIZE 0x00000030U
  9435. #define FLASH_CR_PSIZE_0 0x00000010U
  9436. #define FLASH_CR_PSIZE_1 0x00000020U
  9437. #define FLASH_CR_FW 0x00000040U
  9438. #define FLASH_CR_START 0x00000080U
  9439. #define FLASH_CR_SNB 0x00000700U
  9440. #define FLASH_CR_SNB_0 0x00000000U
  9441. #define FLASH_CR_SNB_1 0x00000100U
  9442. #define FLASH_CR_SNB_2 0x00000200U
  9443. #define FLASH_CR_SNB_3 0x00000300U
  9444. #define FLASH_CR_SNB_4 0x00000400U
  9445. #define FLASH_CR_SNB_5 0x00000500U
  9446. #define FLASH_CR_SNB_6 0x00000600U
  9447. #define FLASH_CR_SNB_7 0x00000700U
  9448. #define FLASH_CR_CRC_EN 0x00008000U
  9449. #define FLASH_CR_EOPIE 0x00010000U
  9450. #define FLASH_CR_WRPERRIE 0x00020000U
  9451. #define FLASH_CR_PGSERRIE 0x00040000U
  9452. #define FLASH_CR_STRBERRIE 0x00080000U
  9453. #define FLASH_CR_INCERRIE 0x00200000U
  9454. #define FLASH_CR_OPERRIE 0x00400000U
  9455. #define FLASH_CR_RDPERRIE 0x00800000U
  9456. #define FLASH_CR_RDSERRIE 0x01000000U
  9457. #define FLASH_CR_SNECCERRIE 0x02000000U
  9458. #define FLASH_CR_DBECCERRIE 0x04000000U
  9459. #define FLASH_CR_CRCENDIE 0x08000000U
  9460. /******************* Bits definition for FLASH_SR register ***********************/
  9461. #define FLASH_SR_BSY 0x00000001U
  9462. #define FLASH_SR_WBNE 0x00000002U
  9463. #define FLASH_SR_QW 0x00000004U
  9464. #define FLASH_SR_CRC_BUSY 0x00000008U
  9465. #define FLASH_SR_EOP 0x00010000U
  9466. #define FLASH_SR_WRPERR 0x00020000U
  9467. #define FLASH_SR_PGSERR 0x00040000U
  9468. #define FLASH_SR_STRBERR 0x00080000U
  9469. #define FLASH_SR_INCERR 0x00200000U
  9470. #define FLASH_SR_OPERR 0x00400000U
  9471. #define FLASH_SR_RDPERR 0x00800000U
  9472. #define FLASH_SR_RDSERR 0x01000000U
  9473. #define FLASH_SR_SNECCERR 0x02000000U
  9474. #define FLASH_SR_DBECCERR 0x04000000U
  9475. #define FLASH_SR_CRCEND 0x08000000U
  9476. /******************* Bits definition for FLASH_CCR register *******************/
  9477. #define FLASH_CCR_CLR_EOP 0x00010000U
  9478. #define FLASH_CCR_CLR_WRPERR 0x00020000U
  9479. #define FLASH_CCR_CLR_PGSERR 0x00040000U
  9480. #define FLASH_CCR_CLR_STRBERR 0x00080000U
  9481. #define FLASH_CCR_CLR_INCERR 0x00200000U
  9482. #define FLASH_CCR_CLR_OPERR 0x00400000U
  9483. #define FLASH_CCR_CLR_RDPERR 0x00800000U
  9484. #define FLASH_CCR_CLR_RDSERR 0x01000000U
  9485. #define FLASH_CCR_CLR_SNECCERR 0x02000000U
  9486. #define FLASH_CCR_CLR_DBECCERR 0x04000000U
  9487. #define FLASH_CCR_CLR_CRCEND 0x08000000U
  9488. /******************* Bits definition for FLASH_OPTCR register *******************/
  9489. #define FLASH_OPTCR_OPTLOCK 0x00000001U
  9490. #define FLASH_OPTCR_OPTSTART 0x00000002U
  9491. #define FLASH_OPTCR_MER 0x00000008U
  9492. #define FLASH_OPTCR_OPTCHANGEERRIE 0x40000000U
  9493. #define FLASH_OPTCR_SWAP_BANK 0x80000000U
  9494. /******************* Bits definition for FLASH_OPTSR register ***************/
  9495. #define FLASH_OPTSR_OPT_BUSY 0x00000001U
  9496. #define FLASH_OPTSR_BOR_LEV 0x0000000CU
  9497. #define FLASH_OPTSR_BOR_LEV_0 0x00000004U
  9498. #define FLASH_OPTSR_BOR_LEV_1 0x00000008U
  9499. #define FLASH_OPTSR_IWDG1_SW 0x00000010U
  9500. #define FLASH_OPTSR_NRST_STOP_D1 0x00000040U
  9501. #define FLASH_OPTSR_NRST_STBY_D1 0x00000080U
  9502. #define FLASH_OPTSR_RDP 0x0000FF00U
  9503. #define FLASH_OPTCR_RDP_0 0x00000100U
  9504. #define FLASH_OPTCR_RDP_1 0x00000200U
  9505. #define FLASH_OPTCR_RDP_2 0x00000400U
  9506. #define FLASH_OPTCR_RDP_3 0x00000800U
  9507. #define FLASH_OPTCR_RDP_4 0x00001000U
  9508. #define FLASH_OPTCR_RDP_5 0x00002000U
  9509. #define FLASH_OPTCR_RDP_6 0x00004000U
  9510. #define FLASH_OPTCR_RDP_7 0x00008000U
  9511. #define FLASH_OPTSR_FZ_IWDG_STOP 0x00020000U
  9512. #define FLASH_OPTSR_FZ_IWDG_SDBY 0x00040000U
  9513. #define FLASH_OPTSR_ST_RAM_SIZE 0x00180000U
  9514. #define FLASH_OPTSR_ST_RAM_SIZE_0 0x00080000U
  9515. #define FLASH_OPTSR_ST_RAM_SIZE_1 0x00100000U
  9516. #define FLASH_OPTSR_SECURITY 0x00200000U
  9517. #define FLASH_OPTSR_RSS1 0x04000000U
  9518. #define FLASH_OPTSR_RSS2 0x08000000U
  9519. #define FLASH_OPTSR_PERSO_OK 0x10000000U
  9520. #define FLASH_OPTSR_IO_HSLV 0x20000000U
  9521. #define FLASH_OPTSR_OPTCHANGEERR 0x40000000U
  9522. #define FLASH_OPTSR_SWAP_BANK_OPT 0x80000000U
  9523. /******************* Bits definition for FLASH_OPTCCR register *******************/
  9524. #define FLASH_OPTCCR_CLR_OPTCHANGEERR 0x40000000U
  9525. /******************* Bits definition for FLASH_PRAR register *********************/
  9526. #define FLASH_PRAR_PROT_AREA_START 0x00000FFFU
  9527. #define FLASH_PRAR_PROT_AREA_END 0x0FFF0000U
  9528. #define FLASH_PRAR_DMEP 0x80000000U
  9529. /******************* Bits definition for FLASH_SCAR register *********************/
  9530. #define FLASH_SCAR_SEC_AREA_START 0x00000FFFU
  9531. #define FLASH_SCAR_SEC_AREA_END 0x0FFF0000U
  9532. #define FLASH_SCAR_DMES 0x80000000U
  9533. /******************* Bits definition for FLASH_WPSN register *********************/
  9534. #define FLASH_WPSN_WRPSN 0x000000FFU
  9535. /******************* Bits definition for FLASH_BOOT_CUR register ****************/
  9536. #define FLASH_BOOT_ADD0 0x0000FFFFU
  9537. #define FLASH_BOOT_ADD1 0xFFFF0000U
  9538. /******************* Bits definition for FLASH_CRCCR register ********************/
  9539. #define FLASH_CRCCR_CRC_SECT 0x00000007U
  9540. #define FLASH_CRCCR_ALL_BANK 0x00000080U
  9541. #define FLASH_CRCCR_CRC_BY_SECT 0x00000100U
  9542. #define FLASH_CRCCR_ADD_SECT 0x00000200U
  9543. #define FLASH_CRCCR_CLEAN_SECT 0x00000400U
  9544. #define FLASH_CRCCR_START_CRC 0x00010000U
  9545. #define FLASH_CRCCR_CLEAN_CRC 0x00020000U
  9546. #define FLASH_CRCCR_CRC_BURST 0x00300000U
  9547. #define FLASH_CRCCR_CRC_BURST_0 0x00000000U
  9548. #define FLASH_CRCCR_CRC_BURST_1 0x00100000U
  9549. #define FLASH_CRCCR_CRC_BURST_2 0x00200000U
  9550. #define FLASH_CRCCR_CRC_BURST_3 0x00300000U
  9551. /******************* Bits definition for FLASH_CRCSADD register ****************/
  9552. #define FLASH_CRCSADD_CRC_START_ADDR 0xFFFFFFFFU
  9553. /******************* Bits definition for FLASH_CRCEADD register ****************/
  9554. #define FLASH_CRCEADD_CRC_END_ADDR 0xFFFFFFFFU
  9555. /******************* Bits definition for FLASH_CRCDATA register ***************/
  9556. #define FLASH_CRCDATA_CRC_DATA 0xFFFFFFFFU
  9557. /******************* Bits definition for FLASH_ECC_FA register *******************/
  9558. #define FLASH_ECC_FA_FAIL_ECC_ADDR 0x00007FFFU
  9559. /******************************************************************************/
  9560. /* */
  9561. /* Flexible Memory Controller */
  9562. /* */
  9563. /******************************************************************************/
  9564. /****************** Bit definition for FMC_BCR1 register *******************/
  9565. #define FMC_BCR1_MBKEN_Pos (0U)
  9566. #define FMC_BCR1_MBKEN_Msk (0x1U << FMC_BCR1_MBKEN_Pos) /*!< 0x00000001 */
  9567. #define FMC_BCR1_MBKEN FMC_BCR1_MBKEN_Msk /*!<Memory bank enable bit */
  9568. #define FMC_BCR1_MUXEN_Pos (1U)
  9569. #define FMC_BCR1_MUXEN_Msk (0x1U << FMC_BCR1_MUXEN_Pos) /*!< 0x00000002 */
  9570. #define FMC_BCR1_MUXEN FMC_BCR1_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9571. #define FMC_BCR1_MTYP_Pos (2U)
  9572. #define FMC_BCR1_MTYP_Msk (0x3U << FMC_BCR1_MTYP_Pos) /*!< 0x0000000C */
  9573. #define FMC_BCR1_MTYP FMC_BCR1_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9574. #define FMC_BCR1_MTYP_0 (0x1U << FMC_BCR1_MTYP_Pos) /*!< 0x00000004 */
  9575. #define FMC_BCR1_MTYP_1 (0x2U << FMC_BCR1_MTYP_Pos) /*!< 0x00000008 */
  9576. #define FMC_BCR1_MWID_Pos (4U)
  9577. #define FMC_BCR1_MWID_Msk (0x3U << FMC_BCR1_MWID_Pos) /*!< 0x00000030 */
  9578. #define FMC_BCR1_MWID FMC_BCR1_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9579. #define FMC_BCR1_MWID_0 (0x1U << FMC_BCR1_MWID_Pos) /*!< 0x00000010 */
  9580. #define FMC_BCR1_MWID_1 (0x2U << FMC_BCR1_MWID_Pos) /*!< 0x00000020 */
  9581. #define FMC_BCR1_FACCEN_Pos (6U)
  9582. #define FMC_BCR1_FACCEN_Msk (0x1U << FMC_BCR1_FACCEN_Pos) /*!< 0x00000040 */
  9583. #define FMC_BCR1_FACCEN FMC_BCR1_FACCEN_Msk /*!<Flash access enable */
  9584. #define FMC_BCR1_BURSTEN_Pos (8U)
  9585. #define FMC_BCR1_BURSTEN_Msk (0x1U << FMC_BCR1_BURSTEN_Pos) /*!< 0x00000100 */
  9586. #define FMC_BCR1_BURSTEN FMC_BCR1_BURSTEN_Msk /*!<Burst enable bit */
  9587. #define FMC_BCR1_WAITPOL_Pos (9U)
  9588. #define FMC_BCR1_WAITPOL_Msk (0x1U << FMC_BCR1_WAITPOL_Pos) /*!< 0x00000200 */
  9589. #define FMC_BCR1_WAITPOL FMC_BCR1_WAITPOL_Msk /*!<Wait signal polarity bit */
  9590. #define FMC_BCR1_WAITCFG_Pos (11U)
  9591. #define FMC_BCR1_WAITCFG_Msk (0x1U << FMC_BCR1_WAITCFG_Pos) /*!< 0x00000800 */
  9592. #define FMC_BCR1_WAITCFG FMC_BCR1_WAITCFG_Msk /*!<Wait timing configuration */
  9593. #define FMC_BCR1_WREN_Pos (12U)
  9594. #define FMC_BCR1_WREN_Msk (0x1U << FMC_BCR1_WREN_Pos) /*!< 0x00001000 */
  9595. #define FMC_BCR1_WREN FMC_BCR1_WREN_Msk /*!<Write enable bit */
  9596. #define FMC_BCR1_WAITEN_Pos (13U)
  9597. #define FMC_BCR1_WAITEN_Msk (0x1U << FMC_BCR1_WAITEN_Pos) /*!< 0x00002000 */
  9598. #define FMC_BCR1_WAITEN FMC_BCR1_WAITEN_Msk /*!<Wait enable bit */
  9599. #define FMC_BCR1_EXTMOD_Pos (14U)
  9600. #define FMC_BCR1_EXTMOD_Msk (0x1U << FMC_BCR1_EXTMOD_Pos) /*!< 0x00004000 */
  9601. #define FMC_BCR1_EXTMOD FMC_BCR1_EXTMOD_Msk /*!<Extended mode enable */
  9602. #define FMC_BCR1_ASYNCWAIT_Pos (15U)
  9603. #define FMC_BCR1_ASYNCWAIT_Msk (0x1U << FMC_BCR1_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9604. #define FMC_BCR1_ASYNCWAIT FMC_BCR1_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9605. #define FMC_BCR1_CPSIZE_Pos (16U)
  9606. #define FMC_BCR1_CPSIZE_Msk (0x7U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00070000 */
  9607. #define FMC_BCR1_CPSIZE FMC_BCR1_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9608. #define FMC_BCR1_CPSIZE_0 (0x1U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00010000 */
  9609. #define FMC_BCR1_CPSIZE_1 (0x2U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00020000 */
  9610. #define FMC_BCR1_CPSIZE_2 (0x4U << FMC_BCR1_CPSIZE_Pos) /*!< 0x00040000 */
  9611. #define FMC_BCR1_CBURSTRW_Pos (19U)
  9612. #define FMC_BCR1_CBURSTRW_Msk (0x1U << FMC_BCR1_CBURSTRW_Pos) /*!< 0x00080000 */
  9613. #define FMC_BCR1_CBURSTRW FMC_BCR1_CBURSTRW_Msk /*!<Write burst enable */
  9614. #define FMC_BCR1_CCLKEN_Pos (20U)
  9615. #define FMC_BCR1_CCLKEN_Msk (0x1U << FMC_BCR1_CCLKEN_Pos) /*!< 0x00100000 */
  9616. #define FMC_BCR1_CCLKEN FMC_BCR1_CCLKEN_Msk /*!<Continous clock enable */
  9617. #define FMC_BCR1_WFDIS_Pos (21U)
  9618. #define FMC_BCR1_WFDIS_Msk (0x1U << FMC_BCR1_WFDIS_Pos) /*!< 0x00200000 */
  9619. #define FMC_BCR1_WFDIS FMC_BCR1_WFDIS_Msk /*!<Write FIFO Disable */
  9620. #define FMC_BCR1_BMAP_Pos (24U)
  9621. #define FMC_BCR1_BMAP_Msk (0x3U << FMC_BCR1_BMAP_Pos) /*!< 0x03000000 */
  9622. #define FMC_BCR1_BMAP FMC_BCR1_BMAP_Msk /*!<BMAP[1:0] FMC bank mapping */
  9623. #define FMC_BCR1_BMAP_0 (0x1U << FMC_BCR1_BMAP_Pos) /*!< 0x01000000 */
  9624. #define FMC_BCR1_BMAP_1 (0x2U << FMC_BCR1_BMAP_Pos) /*!< 0x02000000 */
  9625. #define FMC_BCR1_FMCEN_Pos (31U)
  9626. #define FMC_BCR1_FMCEN_Msk (0x1U << FMC_BCR1_FMCEN_Pos) /*!< 0x80000000 */
  9627. #define FMC_BCR1_FMCEN FMC_BCR1_FMCEN_Msk /*!<FMC controller Enable */
  9628. /****************** Bit definition for FMC_BCR2 register *******************/
  9629. #define FMC_BCR2_MBKEN_Pos (0U)
  9630. #define FMC_BCR2_MBKEN_Msk (0x1U << FMC_BCR2_MBKEN_Pos) /*!< 0x00000001 */
  9631. #define FMC_BCR2_MBKEN FMC_BCR2_MBKEN_Msk /*!<Memory bank enable bit */
  9632. #define FMC_BCR2_MUXEN_Pos (1U)
  9633. #define FMC_BCR2_MUXEN_Msk (0x1U << FMC_BCR2_MUXEN_Pos) /*!< 0x00000002 */
  9634. #define FMC_BCR2_MUXEN FMC_BCR2_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9635. #define FMC_BCR2_MTYP_Pos (2U)
  9636. #define FMC_BCR2_MTYP_Msk (0x3U << FMC_BCR2_MTYP_Pos) /*!< 0x0000000C */
  9637. #define FMC_BCR2_MTYP FMC_BCR2_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9638. #define FMC_BCR2_MTYP_0 (0x1U << FMC_BCR2_MTYP_Pos) /*!< 0x00000004 */
  9639. #define FMC_BCR2_MTYP_1 (0x2U << FMC_BCR2_MTYP_Pos) /*!< 0x00000008 */
  9640. #define FMC_BCR2_MWID_Pos (4U)
  9641. #define FMC_BCR2_MWID_Msk (0x3U << FMC_BCR2_MWID_Pos) /*!< 0x00000030 */
  9642. #define FMC_BCR2_MWID FMC_BCR2_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9643. #define FMC_BCR2_MWID_0 (0x1U << FMC_BCR2_MWID_Pos) /*!< 0x00000010 */
  9644. #define FMC_BCR2_MWID_1 (0x2U << FMC_BCR2_MWID_Pos) /*!< 0x00000020 */
  9645. #define FMC_BCR2_FACCEN_Pos (6U)
  9646. #define FMC_BCR2_FACCEN_Msk (0x1U << FMC_BCR2_FACCEN_Pos) /*!< 0x00000040 */
  9647. #define FMC_BCR2_FACCEN FMC_BCR2_FACCEN_Msk /*!<Flash access enable */
  9648. #define FMC_BCR2_BURSTEN_Pos (8U)
  9649. #define FMC_BCR2_BURSTEN_Msk (0x1U << FMC_BCR2_BURSTEN_Pos) /*!< 0x00000100 */
  9650. #define FMC_BCR2_BURSTEN FMC_BCR2_BURSTEN_Msk /*!<Burst enable bit */
  9651. #define FMC_BCR2_WAITPOL_Pos (9U)
  9652. #define FMC_BCR2_WAITPOL_Msk (0x1U << FMC_BCR2_WAITPOL_Pos) /*!< 0x00000200 */
  9653. #define FMC_BCR2_WAITPOL FMC_BCR2_WAITPOL_Msk /*!<Wait signal polarity bit */
  9654. #define FMC_BCR2_WAITCFG_Pos (11U)
  9655. #define FMC_BCR2_WAITCFG_Msk (0x1U << FMC_BCR2_WAITCFG_Pos) /*!< 0x00000800 */
  9656. #define FMC_BCR2_WAITCFG FMC_BCR2_WAITCFG_Msk /*!<Wait timing configuration */
  9657. #define FMC_BCR2_WREN_Pos (12U)
  9658. #define FMC_BCR2_WREN_Msk (0x1U << FMC_BCR2_WREN_Pos) /*!< 0x00001000 */
  9659. #define FMC_BCR2_WREN FMC_BCR2_WREN_Msk /*!<Write enable bit */
  9660. #define FMC_BCR2_WAITEN_Pos (13U)
  9661. #define FMC_BCR2_WAITEN_Msk (0x1U << FMC_BCR2_WAITEN_Pos) /*!< 0x00002000 */
  9662. #define FMC_BCR2_WAITEN FMC_BCR2_WAITEN_Msk /*!<Wait enable bit */
  9663. #define FMC_BCR2_EXTMOD_Pos (14U)
  9664. #define FMC_BCR2_EXTMOD_Msk (0x1U << FMC_BCR2_EXTMOD_Pos) /*!< 0x00004000 */
  9665. #define FMC_BCR2_EXTMOD FMC_BCR2_EXTMOD_Msk /*!<Extended mode enable */
  9666. #define FMC_BCR2_ASYNCWAIT_Pos (15U)
  9667. #define FMC_BCR2_ASYNCWAIT_Msk (0x1U << FMC_BCR2_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9668. #define FMC_BCR2_ASYNCWAIT FMC_BCR2_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9669. #define FMC_BCR2_CPSIZE_Pos (16U)
  9670. #define FMC_BCR2_CPSIZE_Msk (0x7U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00070000 */
  9671. #define FMC_BCR2_CPSIZE FMC_BCR2_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9672. #define FMC_BCR2_CPSIZE_0 (0x1U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00010000 */
  9673. #define FMC_BCR2_CPSIZE_1 (0x2U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00020000 */
  9674. #define FMC_BCR2_CPSIZE_2 (0x4U << FMC_BCR2_CPSIZE_Pos) /*!< 0x00040000 */
  9675. #define FMC_BCR2_CBURSTRW_Pos (19U)
  9676. #define FMC_BCR2_CBURSTRW_Msk (0x1U << FMC_BCR2_CBURSTRW_Pos) /*!< 0x00080000 */
  9677. #define FMC_BCR2_CBURSTRW FMC_BCR2_CBURSTRW_Msk /*!<Write burst enable */
  9678. /****************** Bit definition for FMC_BCR3 register *******************/
  9679. #define FMC_BCR3_MBKEN_Pos (0U)
  9680. #define FMC_BCR3_MBKEN_Msk (0x1U << FMC_BCR3_MBKEN_Pos) /*!< 0x00000001 */
  9681. #define FMC_BCR3_MBKEN FMC_BCR3_MBKEN_Msk /*!<Memory bank enable bit */
  9682. #define FMC_BCR3_MUXEN_Pos (1U)
  9683. #define FMC_BCR3_MUXEN_Msk (0x1U << FMC_BCR3_MUXEN_Pos) /*!< 0x00000002 */
  9684. #define FMC_BCR3_MUXEN FMC_BCR3_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9685. #define FMC_BCR3_MTYP_Pos (2U)
  9686. #define FMC_BCR3_MTYP_Msk (0x3U << FMC_BCR3_MTYP_Pos) /*!< 0x0000000C */
  9687. #define FMC_BCR3_MTYP FMC_BCR3_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9688. #define FMC_BCR3_MTYP_0 (0x1U << FMC_BCR3_MTYP_Pos) /*!< 0x00000004 */
  9689. #define FMC_BCR3_MTYP_1 (0x2U << FMC_BCR3_MTYP_Pos) /*!< 0x00000008 */
  9690. #define FMC_BCR3_MWID_Pos (4U)
  9691. #define FMC_BCR3_MWID_Msk (0x3U << FMC_BCR3_MWID_Pos) /*!< 0x00000030 */
  9692. #define FMC_BCR3_MWID FMC_BCR3_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9693. #define FMC_BCR3_MWID_0 (0x1U << FMC_BCR3_MWID_Pos) /*!< 0x00000010 */
  9694. #define FMC_BCR3_MWID_1 (0x2U << FMC_BCR3_MWID_Pos) /*!< 0x00000020 */
  9695. #define FMC_BCR3_FACCEN_Pos (6U)
  9696. #define FMC_BCR3_FACCEN_Msk (0x1U << FMC_BCR3_FACCEN_Pos) /*!< 0x00000040 */
  9697. #define FMC_BCR3_FACCEN FMC_BCR3_FACCEN_Msk /*!<Flash access enable */
  9698. #define FMC_BCR3_BURSTEN_Pos (8U)
  9699. #define FMC_BCR3_BURSTEN_Msk (0x1U << FMC_BCR3_BURSTEN_Pos) /*!< 0x00000100 */
  9700. #define FMC_BCR3_BURSTEN FMC_BCR3_BURSTEN_Msk /*!<Burst enable bit */
  9701. #define FMC_BCR3_WAITPOL_Pos (9U)
  9702. #define FMC_BCR3_WAITPOL_Msk (0x1U << FMC_BCR3_WAITPOL_Pos) /*!< 0x00000200 */
  9703. #define FMC_BCR3_WAITPOL FMC_BCR3_WAITPOL_Msk /*!<Wait signal polarity bit */
  9704. #define FMC_BCR3_WAITCFG_Pos (11U)
  9705. #define FMC_BCR3_WAITCFG_Msk (0x1U << FMC_BCR3_WAITCFG_Pos) /*!< 0x00000800 */
  9706. #define FMC_BCR3_WAITCFG FMC_BCR3_WAITCFG_Msk /*!<Wait timing configuration */
  9707. #define FMC_BCR3_WREN_Pos (12U)
  9708. #define FMC_BCR3_WREN_Msk (0x1U << FMC_BCR3_WREN_Pos) /*!< 0x00001000 */
  9709. #define FMC_BCR3_WREN FMC_BCR3_WREN_Msk /*!<Write enable bit */
  9710. #define FMC_BCR3_WAITEN_Pos (13U)
  9711. #define FMC_BCR3_WAITEN_Msk (0x1U << FMC_BCR3_WAITEN_Pos) /*!< 0x00002000 */
  9712. #define FMC_BCR3_WAITEN FMC_BCR3_WAITEN_Msk /*!<Wait enable bit */
  9713. #define FMC_BCR3_EXTMOD_Pos (14U)
  9714. #define FMC_BCR3_EXTMOD_Msk (0x1U << FMC_BCR3_EXTMOD_Pos) /*!< 0x00004000 */
  9715. #define FMC_BCR3_EXTMOD FMC_BCR3_EXTMOD_Msk /*!<Extended mode enable */
  9716. #define FMC_BCR3_ASYNCWAIT_Pos (15U)
  9717. #define FMC_BCR3_ASYNCWAIT_Msk (0x1U << FMC_BCR3_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9718. #define FMC_BCR3_ASYNCWAIT FMC_BCR3_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9719. #define FMC_BCR3_CPSIZE_Pos (16U)
  9720. #define FMC_BCR3_CPSIZE_Msk (0x7U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00070000 */
  9721. #define FMC_BCR3_CPSIZE FMC_BCR3_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9722. #define FMC_BCR3_CPSIZE_0 (0x1U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00010000 */
  9723. #define FMC_BCR3_CPSIZE_1 (0x2U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00020000 */
  9724. #define FMC_BCR3_CPSIZE_2 (0x4U << FMC_BCR3_CPSIZE_Pos) /*!< 0x00040000 */
  9725. #define FMC_BCR3_CBURSTRW_Pos (19U)
  9726. #define FMC_BCR3_CBURSTRW_Msk (0x1U << FMC_BCR3_CBURSTRW_Pos) /*!< 0x00080000 */
  9727. #define FMC_BCR3_CBURSTRW FMC_BCR3_CBURSTRW_Msk /*!<Write burst enable */
  9728. /****************** Bit definition for FMC_BCR4 register *******************/
  9729. #define FMC_BCR4_MBKEN_Pos (0U)
  9730. #define FMC_BCR4_MBKEN_Msk (0x1U << FMC_BCR4_MBKEN_Pos) /*!< 0x00000001 */
  9731. #define FMC_BCR4_MBKEN FMC_BCR4_MBKEN_Msk /*!<Memory bank enable bit */
  9732. #define FMC_BCR4_MUXEN_Pos (1U)
  9733. #define FMC_BCR4_MUXEN_Msk (0x1U << FMC_BCR4_MUXEN_Pos) /*!< 0x00000002 */
  9734. #define FMC_BCR4_MUXEN FMC_BCR4_MUXEN_Msk /*!<Address/data multiplexing enable bit */
  9735. #define FMC_BCR4_MTYP_Pos (2U)
  9736. #define FMC_BCR4_MTYP_Msk (0x3U << FMC_BCR4_MTYP_Pos) /*!< 0x0000000C */
  9737. #define FMC_BCR4_MTYP FMC_BCR4_MTYP_Msk /*!<MTYP[1:0] bits (Memory type) */
  9738. #define FMC_BCR4_MTYP_0 (0x1U << FMC_BCR4_MTYP_Pos) /*!< 0x00000004 */
  9739. #define FMC_BCR4_MTYP_1 (0x2U << FMC_BCR4_MTYP_Pos) /*!< 0x00000008 */
  9740. #define FMC_BCR4_MWID_Pos (4U)
  9741. #define FMC_BCR4_MWID_Msk (0x3U << FMC_BCR4_MWID_Pos) /*!< 0x00000030 */
  9742. #define FMC_BCR4_MWID FMC_BCR4_MWID_Msk /*!<MWID[1:0] bits (Memory data bus width) */
  9743. #define FMC_BCR4_MWID_0 (0x1U << FMC_BCR4_MWID_Pos) /*!< 0x00000010 */
  9744. #define FMC_BCR4_MWID_1 (0x2U << FMC_BCR4_MWID_Pos) /*!< 0x00000020 */
  9745. #define FMC_BCR4_FACCEN_Pos (6U)
  9746. #define FMC_BCR4_FACCEN_Msk (0x1U << FMC_BCR4_FACCEN_Pos) /*!< 0x00000040 */
  9747. #define FMC_BCR4_FACCEN FMC_BCR4_FACCEN_Msk /*!<Flash access enable */
  9748. #define FMC_BCR4_BURSTEN_Pos (8U)
  9749. #define FMC_BCR4_BURSTEN_Msk (0x1U << FMC_BCR4_BURSTEN_Pos) /*!< 0x00000100 */
  9750. #define FMC_BCR4_BURSTEN FMC_BCR4_BURSTEN_Msk /*!<Burst enable bit */
  9751. #define FMC_BCR4_WAITPOL_Pos (9U)
  9752. #define FMC_BCR4_WAITPOL_Msk (0x1U << FMC_BCR4_WAITPOL_Pos) /*!< 0x00000200 */
  9753. #define FMC_BCR4_WAITPOL FMC_BCR4_WAITPOL_Msk /*!<Wait signal polarity bit */
  9754. #define FMC_BCR4_WAITCFG_Pos (11U)
  9755. #define FMC_BCR4_WAITCFG_Msk (0x1U << FMC_BCR4_WAITCFG_Pos) /*!< 0x00000800 */
  9756. #define FMC_BCR4_WAITCFG FMC_BCR4_WAITCFG_Msk /*!<Wait timing configuration */
  9757. #define FMC_BCR4_WREN_Pos (12U)
  9758. #define FMC_BCR4_WREN_Msk (0x1U << FMC_BCR4_WREN_Pos) /*!< 0x00001000 */
  9759. #define FMC_BCR4_WREN FMC_BCR4_WREN_Msk /*!<Write enable bit */
  9760. #define FMC_BCR4_WAITEN_Pos (13U)
  9761. #define FMC_BCR4_WAITEN_Msk (0x1U << FMC_BCR4_WAITEN_Pos) /*!< 0x00002000 */
  9762. #define FMC_BCR4_WAITEN FMC_BCR4_WAITEN_Msk /*!<Wait enable bit */
  9763. #define FMC_BCR4_EXTMOD_Pos (14U)
  9764. #define FMC_BCR4_EXTMOD_Msk (0x1U << FMC_BCR4_EXTMOD_Pos) /*!< 0x00004000 */
  9765. #define FMC_BCR4_EXTMOD FMC_BCR4_EXTMOD_Msk /*!<Extended mode enable */
  9766. #define FMC_BCR4_ASYNCWAIT_Pos (15U)
  9767. #define FMC_BCR4_ASYNCWAIT_Msk (0x1U << FMC_BCR4_ASYNCWAIT_Pos) /*!< 0x00008000 */
  9768. #define FMC_BCR4_ASYNCWAIT FMC_BCR4_ASYNCWAIT_Msk /*!<Asynchronous wait */
  9769. #define FMC_BCR4_CPSIZE_Pos (16U)
  9770. #define FMC_BCR4_CPSIZE_Msk (0x7U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00070000 */
  9771. #define FMC_BCR4_CPSIZE FMC_BCR4_CPSIZE_Msk /*!<PSIZE[2:0] bits CRAM Page Size */
  9772. #define FMC_BCR4_CPSIZE_0 (0x1U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00010000 */
  9773. #define FMC_BCR4_CPSIZE_1 (0x2U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00020000 */
  9774. #define FMC_BCR4_CPSIZE_2 (0x4U << FMC_BCR4_CPSIZE_Pos) /*!< 0x00040000 */
  9775. #define FMC_BCR4_CBURSTRW_Pos (19U)
  9776. #define FMC_BCR4_CBURSTRW_Msk (0x1U << FMC_BCR4_CBURSTRW_Pos) /*!< 0x00080000 */
  9777. #define FMC_BCR4_CBURSTRW FMC_BCR4_CBURSTRW_Msk /*!<Write burst enable */
  9778. /****************** Bit definition for FMC_BTR1 register ******************/
  9779. #define FMC_BTR1_ADDSET_Pos (0U)
  9780. #define FMC_BTR1_ADDSET_Msk (0xFU << FMC_BTR1_ADDSET_Pos) /*!< 0x0000000F */
  9781. #define FMC_BTR1_ADDSET FMC_BTR1_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9782. #define FMC_BTR1_ADDSET_0 (0x1U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000001 */
  9783. #define FMC_BTR1_ADDSET_1 (0x2U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000002 */
  9784. #define FMC_BTR1_ADDSET_2 (0x4U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000004 */
  9785. #define FMC_BTR1_ADDSET_3 (0x8U << FMC_BTR1_ADDSET_Pos) /*!< 0x00000008 */
  9786. #define FMC_BTR1_ADDHLD_Pos (4U)
  9787. #define FMC_BTR1_ADDHLD_Msk (0xFU << FMC_BTR1_ADDHLD_Pos) /*!< 0x000000F0 */
  9788. #define FMC_BTR1_ADDHLD FMC_BTR1_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9789. #define FMC_BTR1_ADDHLD_0 (0x1U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000010 */
  9790. #define FMC_BTR1_ADDHLD_1 (0x2U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000020 */
  9791. #define FMC_BTR1_ADDHLD_2 (0x4U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000040 */
  9792. #define FMC_BTR1_ADDHLD_3 (0x8U << FMC_BTR1_ADDHLD_Pos) /*!< 0x00000080 */
  9793. #define FMC_BTR1_DATAST_Pos (8U)
  9794. #define FMC_BTR1_DATAST_Msk (0xFFU << FMC_BTR1_DATAST_Pos) /*!< 0x0000FF00 */
  9795. #define FMC_BTR1_DATAST FMC_BTR1_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  9796. #define FMC_BTR1_DATAST_0 (0x01U << FMC_BTR1_DATAST_Pos) /*!< 0x00000100 */
  9797. #define FMC_BTR1_DATAST_1 (0x02U << FMC_BTR1_DATAST_Pos) /*!< 0x00000200 */
  9798. #define FMC_BTR1_DATAST_2 (0x04U << FMC_BTR1_DATAST_Pos) /*!< 0x00000400 */
  9799. #define FMC_BTR1_DATAST_3 (0x08U << FMC_BTR1_DATAST_Pos) /*!< 0x00000800 */
  9800. #define FMC_BTR1_DATAST_4 (0x10U << FMC_BTR1_DATAST_Pos) /*!< 0x00001000 */
  9801. #define FMC_BTR1_DATAST_5 (0x20U << FMC_BTR1_DATAST_Pos) /*!< 0x00002000 */
  9802. #define FMC_BTR1_DATAST_6 (0x40U << FMC_BTR1_DATAST_Pos) /*!< 0x00004000 */
  9803. #define FMC_BTR1_DATAST_7 (0x80U << FMC_BTR1_DATAST_Pos) /*!< 0x00008000 */
  9804. #define FMC_BTR1_BUSTURN_Pos (16U)
  9805. #define FMC_BTR1_BUSTURN_Msk (0xFU << FMC_BTR1_BUSTURN_Pos) /*!< 0x000F0000 */
  9806. #define FMC_BTR1_BUSTURN FMC_BTR1_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  9807. #define FMC_BTR1_BUSTURN_0 (0x1U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00010000 */
  9808. #define FMC_BTR1_BUSTURN_1 (0x2U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00020000 */
  9809. #define FMC_BTR1_BUSTURN_2 (0x4U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00040000 */
  9810. #define FMC_BTR1_BUSTURN_3 (0x8U << FMC_BTR1_BUSTURN_Pos) /*!< 0x00080000 */
  9811. #define FMC_BTR1_CLKDIV_Pos (20U)
  9812. #define FMC_BTR1_CLKDIV_Msk (0xFU << FMC_BTR1_CLKDIV_Pos) /*!< 0x00F00000 */
  9813. #define FMC_BTR1_CLKDIV FMC_BTR1_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  9814. #define FMC_BTR1_CLKDIV_0 (0x1U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00100000 */
  9815. #define FMC_BTR1_CLKDIV_1 (0x2U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00200000 */
  9816. #define FMC_BTR1_CLKDIV_2 (0x4U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00400000 */
  9817. #define FMC_BTR1_CLKDIV_3 (0x8U << FMC_BTR1_CLKDIV_Pos) /*!< 0x00800000 */
  9818. #define FMC_BTR1_DATLAT_Pos (24U)
  9819. #define FMC_BTR1_DATLAT_Msk (0xFU << FMC_BTR1_DATLAT_Pos) /*!< 0x0F000000 */
  9820. #define FMC_BTR1_DATLAT FMC_BTR1_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  9821. #define FMC_BTR1_DATLAT_0 (0x1U << FMC_BTR1_DATLAT_Pos) /*!< 0x01000000 */
  9822. #define FMC_BTR1_DATLAT_1 (0x2U << FMC_BTR1_DATLAT_Pos) /*!< 0x02000000 */
  9823. #define FMC_BTR1_DATLAT_2 (0x4U << FMC_BTR1_DATLAT_Pos) /*!< 0x04000000 */
  9824. #define FMC_BTR1_DATLAT_3 (0x8U << FMC_BTR1_DATLAT_Pos) /*!< 0x08000000 */
  9825. #define FMC_BTR1_ACCMOD_Pos (28U)
  9826. #define FMC_BTR1_ACCMOD_Msk (0x3U << FMC_BTR1_ACCMOD_Pos) /*!< 0x30000000 */
  9827. #define FMC_BTR1_ACCMOD FMC_BTR1_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  9828. #define FMC_BTR1_ACCMOD_0 (0x1U << FMC_BTR1_ACCMOD_Pos) /*!< 0x10000000 */
  9829. #define FMC_BTR1_ACCMOD_1 (0x2U << FMC_BTR1_ACCMOD_Pos) /*!< 0x20000000 */
  9830. /****************** Bit definition for FMC_BTR2 register *******************/
  9831. #define FMC_BTR2_ADDSET_Pos (0U)
  9832. #define FMC_BTR2_ADDSET_Msk (0xFU << FMC_BTR2_ADDSET_Pos) /*!< 0x0000000F */
  9833. #define FMC_BTR2_ADDSET FMC_BTR2_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9834. #define FMC_BTR2_ADDSET_0 (0x1U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000001 */
  9835. #define FMC_BTR2_ADDSET_1 (0x2U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000002 */
  9836. #define FMC_BTR2_ADDSET_2 (0x4U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000004 */
  9837. #define FMC_BTR2_ADDSET_3 (0x8U << FMC_BTR2_ADDSET_Pos) /*!< 0x00000008 */
  9838. #define FMC_BTR2_ADDHLD_Pos (4U)
  9839. #define FMC_BTR2_ADDHLD_Msk (0xFU << FMC_BTR2_ADDHLD_Pos) /*!< 0x000000F0 */
  9840. #define FMC_BTR2_ADDHLD FMC_BTR2_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9841. #define FMC_BTR2_ADDHLD_0 (0x1U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000010 */
  9842. #define FMC_BTR2_ADDHLD_1 (0x2U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000020 */
  9843. #define FMC_BTR2_ADDHLD_2 (0x4U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000040 */
  9844. #define FMC_BTR2_ADDHLD_3 (0x8U << FMC_BTR2_ADDHLD_Pos) /*!< 0x00000080 */
  9845. #define FMC_BTR2_DATAST_Pos (8U)
  9846. #define FMC_BTR2_DATAST_Msk (0xFFU << FMC_BTR2_DATAST_Pos) /*!< 0x0000FF00 */
  9847. #define FMC_BTR2_DATAST FMC_BTR2_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  9848. #define FMC_BTR2_DATAST_0 (0x01U << FMC_BTR2_DATAST_Pos) /*!< 0x00000100 */
  9849. #define FMC_BTR2_DATAST_1 (0x02U << FMC_BTR2_DATAST_Pos) /*!< 0x00000200 */
  9850. #define FMC_BTR2_DATAST_2 (0x04U << FMC_BTR2_DATAST_Pos) /*!< 0x00000400 */
  9851. #define FMC_BTR2_DATAST_3 (0x08U << FMC_BTR2_DATAST_Pos) /*!< 0x00000800 */
  9852. #define FMC_BTR2_DATAST_4 (0x10U << FMC_BTR2_DATAST_Pos) /*!< 0x00001000 */
  9853. #define FMC_BTR2_DATAST_5 (0x20U << FMC_BTR2_DATAST_Pos) /*!< 0x00002000 */
  9854. #define FMC_BTR2_DATAST_6 (0x40U << FMC_BTR2_DATAST_Pos) /*!< 0x00004000 */
  9855. #define FMC_BTR2_DATAST_7 (0x80U << FMC_BTR2_DATAST_Pos) /*!< 0x00008000 */
  9856. #define FMC_BTR2_BUSTURN_Pos (16U)
  9857. #define FMC_BTR2_BUSTURN_Msk (0xFU << FMC_BTR2_BUSTURN_Pos) /*!< 0x000F0000 */
  9858. #define FMC_BTR2_BUSTURN FMC_BTR2_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  9859. #define FMC_BTR2_BUSTURN_0 (0x1U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00010000 */
  9860. #define FMC_BTR2_BUSTURN_1 (0x2U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00020000 */
  9861. #define FMC_BTR2_BUSTURN_2 (0x4U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00040000 */
  9862. #define FMC_BTR2_BUSTURN_3 (0x8U << FMC_BTR2_BUSTURN_Pos) /*!< 0x00080000 */
  9863. #define FMC_BTR2_CLKDIV_Pos (20U)
  9864. #define FMC_BTR2_CLKDIV_Msk (0xFU << FMC_BTR2_CLKDIV_Pos) /*!< 0x00F00000 */
  9865. #define FMC_BTR2_CLKDIV FMC_BTR2_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  9866. #define FMC_BTR2_CLKDIV_0 (0x1U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00100000 */
  9867. #define FMC_BTR2_CLKDIV_1 (0x2U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00200000 */
  9868. #define FMC_BTR2_CLKDIV_2 (0x4U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00400000 */
  9869. #define FMC_BTR2_CLKDIV_3 (0x8U << FMC_BTR2_CLKDIV_Pos) /*!< 0x00800000 */
  9870. #define FMC_BTR2_DATLAT_Pos (24U)
  9871. #define FMC_BTR2_DATLAT_Msk (0xFU << FMC_BTR2_DATLAT_Pos) /*!< 0x0F000000 */
  9872. #define FMC_BTR2_DATLAT FMC_BTR2_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  9873. #define FMC_BTR2_DATLAT_0 (0x1U << FMC_BTR2_DATLAT_Pos) /*!< 0x01000000 */
  9874. #define FMC_BTR2_DATLAT_1 (0x2U << FMC_BTR2_DATLAT_Pos) /*!< 0x02000000 */
  9875. #define FMC_BTR2_DATLAT_2 (0x4U << FMC_BTR2_DATLAT_Pos) /*!< 0x04000000 */
  9876. #define FMC_BTR2_DATLAT_3 (0x8U << FMC_BTR2_DATLAT_Pos) /*!< 0x08000000 */
  9877. #define FMC_BTR2_ACCMOD_Pos (28U)
  9878. #define FMC_BTR2_ACCMOD_Msk (0x3U << FMC_BTR2_ACCMOD_Pos) /*!< 0x30000000 */
  9879. #define FMC_BTR2_ACCMOD FMC_BTR2_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  9880. #define FMC_BTR2_ACCMOD_0 (0x1U << FMC_BTR2_ACCMOD_Pos) /*!< 0x10000000 */
  9881. #define FMC_BTR2_ACCMOD_1 (0x2U << FMC_BTR2_ACCMOD_Pos) /*!< 0x20000000 */
  9882. /******************* Bit definition for FMC_BTR3 register *******************/
  9883. #define FMC_BTR3_ADDSET_Pos (0U)
  9884. #define FMC_BTR3_ADDSET_Msk (0xFU << FMC_BTR3_ADDSET_Pos) /*!< 0x0000000F */
  9885. #define FMC_BTR3_ADDSET FMC_BTR3_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9886. #define FMC_BTR3_ADDSET_0 (0x1U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000001 */
  9887. #define FMC_BTR3_ADDSET_1 (0x2U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000002 */
  9888. #define FMC_BTR3_ADDSET_2 (0x4U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000004 */
  9889. #define FMC_BTR3_ADDSET_3 (0x8U << FMC_BTR3_ADDSET_Pos) /*!< 0x00000008 */
  9890. #define FMC_BTR3_ADDHLD_Pos (4U)
  9891. #define FMC_BTR3_ADDHLD_Msk (0xFU << FMC_BTR3_ADDHLD_Pos) /*!< 0x000000F0 */
  9892. #define FMC_BTR3_ADDHLD FMC_BTR3_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9893. #define FMC_BTR3_ADDHLD_0 (0x1U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000010 */
  9894. #define FMC_BTR3_ADDHLD_1 (0x2U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000020 */
  9895. #define FMC_BTR3_ADDHLD_2 (0x4U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000040 */
  9896. #define FMC_BTR3_ADDHLD_3 (0x8U << FMC_BTR3_ADDHLD_Pos) /*!< 0x00000080 */
  9897. #define FMC_BTR3_DATAST_Pos (8U)
  9898. #define FMC_BTR3_DATAST_Msk (0xFFU << FMC_BTR3_DATAST_Pos) /*!< 0x0000FF00 */
  9899. #define FMC_BTR3_DATAST FMC_BTR3_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  9900. #define FMC_BTR3_DATAST_0 (0x01U << FMC_BTR3_DATAST_Pos) /*!< 0x00000100 */
  9901. #define FMC_BTR3_DATAST_1 (0x02U << FMC_BTR3_DATAST_Pos) /*!< 0x00000200 */
  9902. #define FMC_BTR3_DATAST_2 (0x04U << FMC_BTR3_DATAST_Pos) /*!< 0x00000400 */
  9903. #define FMC_BTR3_DATAST_3 (0x08U << FMC_BTR3_DATAST_Pos) /*!< 0x00000800 */
  9904. #define FMC_BTR3_DATAST_4 (0x10U << FMC_BTR3_DATAST_Pos) /*!< 0x00001000 */
  9905. #define FMC_BTR3_DATAST_5 (0x20U << FMC_BTR3_DATAST_Pos) /*!< 0x00002000 */
  9906. #define FMC_BTR3_DATAST_6 (0x40U << FMC_BTR3_DATAST_Pos) /*!< 0x00004000 */
  9907. #define FMC_BTR3_DATAST_7 (0x80U << FMC_BTR3_DATAST_Pos) /*!< 0x00008000 */
  9908. #define FMC_BTR3_BUSTURN_Pos (16U)
  9909. #define FMC_BTR3_BUSTURN_Msk (0xFU << FMC_BTR3_BUSTURN_Pos) /*!< 0x000F0000 */
  9910. #define FMC_BTR3_BUSTURN FMC_BTR3_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  9911. #define FMC_BTR3_BUSTURN_0 (0x1U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00010000 */
  9912. #define FMC_BTR3_BUSTURN_1 (0x2U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00020000 */
  9913. #define FMC_BTR3_BUSTURN_2 (0x4U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00040000 */
  9914. #define FMC_BTR3_BUSTURN_3 (0x8U << FMC_BTR3_BUSTURN_Pos) /*!< 0x00080000 */
  9915. #define FMC_BTR3_CLKDIV_Pos (20U)
  9916. #define FMC_BTR3_CLKDIV_Msk (0xFU << FMC_BTR3_CLKDIV_Pos) /*!< 0x00F00000 */
  9917. #define FMC_BTR3_CLKDIV FMC_BTR3_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  9918. #define FMC_BTR3_CLKDIV_0 (0x1U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00100000 */
  9919. #define FMC_BTR3_CLKDIV_1 (0x2U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00200000 */
  9920. #define FMC_BTR3_CLKDIV_2 (0x4U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00400000 */
  9921. #define FMC_BTR3_CLKDIV_3 (0x8U << FMC_BTR3_CLKDIV_Pos) /*!< 0x00800000 */
  9922. #define FMC_BTR3_DATLAT_Pos (24U)
  9923. #define FMC_BTR3_DATLAT_Msk (0xFU << FMC_BTR3_DATLAT_Pos) /*!< 0x0F000000 */
  9924. #define FMC_BTR3_DATLAT FMC_BTR3_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  9925. #define FMC_BTR3_DATLAT_0 (0x1U << FMC_BTR3_DATLAT_Pos) /*!< 0x01000000 */
  9926. #define FMC_BTR3_DATLAT_1 (0x2U << FMC_BTR3_DATLAT_Pos) /*!< 0x02000000 */
  9927. #define FMC_BTR3_DATLAT_2 (0x4U << FMC_BTR3_DATLAT_Pos) /*!< 0x04000000 */
  9928. #define FMC_BTR3_DATLAT_3 (0x8U << FMC_BTR3_DATLAT_Pos) /*!< 0x08000000 */
  9929. #define FMC_BTR3_ACCMOD_Pos (28U)
  9930. #define FMC_BTR3_ACCMOD_Msk (0x3U << FMC_BTR3_ACCMOD_Pos) /*!< 0x30000000 */
  9931. #define FMC_BTR3_ACCMOD FMC_BTR3_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  9932. #define FMC_BTR3_ACCMOD_0 (0x1U << FMC_BTR3_ACCMOD_Pos) /*!< 0x10000000 */
  9933. #define FMC_BTR3_ACCMOD_1 (0x2U << FMC_BTR3_ACCMOD_Pos) /*!< 0x20000000 */
  9934. /****************** Bit definition for FMC_BTR4 register *******************/
  9935. #define FMC_BTR4_ADDSET_Pos (0U)
  9936. #define FMC_BTR4_ADDSET_Msk (0xFU << FMC_BTR4_ADDSET_Pos) /*!< 0x0000000F */
  9937. #define FMC_BTR4_ADDSET FMC_BTR4_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9938. #define FMC_BTR4_ADDSET_0 (0x1U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000001 */
  9939. #define FMC_BTR4_ADDSET_1 (0x2U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000002 */
  9940. #define FMC_BTR4_ADDSET_2 (0x4U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000004 */
  9941. #define FMC_BTR4_ADDSET_3 (0x8U << FMC_BTR4_ADDSET_Pos) /*!< 0x00000008 */
  9942. #define FMC_BTR4_ADDHLD_Pos (4U)
  9943. #define FMC_BTR4_ADDHLD_Msk (0xFU << FMC_BTR4_ADDHLD_Pos) /*!< 0x000000F0 */
  9944. #define FMC_BTR4_ADDHLD FMC_BTR4_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9945. #define FMC_BTR4_ADDHLD_0 (0x1U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000010 */
  9946. #define FMC_BTR4_ADDHLD_1 (0x2U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000020 */
  9947. #define FMC_BTR4_ADDHLD_2 (0x4U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000040 */
  9948. #define FMC_BTR4_ADDHLD_3 (0x8U << FMC_BTR4_ADDHLD_Pos) /*!< 0x00000080 */
  9949. #define FMC_BTR4_DATAST_Pos (8U)
  9950. #define FMC_BTR4_DATAST_Msk (0xFFU << FMC_BTR4_DATAST_Pos) /*!< 0x0000FF00 */
  9951. #define FMC_BTR4_DATAST FMC_BTR4_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  9952. #define FMC_BTR4_DATAST_0 (0x01U << FMC_BTR4_DATAST_Pos) /*!< 0x00000100 */
  9953. #define FMC_BTR4_DATAST_1 (0x02U << FMC_BTR4_DATAST_Pos) /*!< 0x00000200 */
  9954. #define FMC_BTR4_DATAST_2 (0x04U << FMC_BTR4_DATAST_Pos) /*!< 0x00000400 */
  9955. #define FMC_BTR4_DATAST_3 (0x08U << FMC_BTR4_DATAST_Pos) /*!< 0x00000800 */
  9956. #define FMC_BTR4_DATAST_4 (0x10U << FMC_BTR4_DATAST_Pos) /*!< 0x00001000 */
  9957. #define FMC_BTR4_DATAST_5 (0x20U << FMC_BTR4_DATAST_Pos) /*!< 0x00002000 */
  9958. #define FMC_BTR4_DATAST_6 (0x40U << FMC_BTR4_DATAST_Pos) /*!< 0x00004000 */
  9959. #define FMC_BTR4_DATAST_7 (0x80U << FMC_BTR4_DATAST_Pos) /*!< 0x00008000 */
  9960. #define FMC_BTR4_BUSTURN_Pos (16U)
  9961. #define FMC_BTR4_BUSTURN_Msk (0xFU << FMC_BTR4_BUSTURN_Pos) /*!< 0x000F0000 */
  9962. #define FMC_BTR4_BUSTURN FMC_BTR4_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  9963. #define FMC_BTR4_BUSTURN_0 (0x1U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00010000 */
  9964. #define FMC_BTR4_BUSTURN_1 (0x2U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00020000 */
  9965. #define FMC_BTR4_BUSTURN_2 (0x4U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00040000 */
  9966. #define FMC_BTR4_BUSTURN_3 (0x8U << FMC_BTR4_BUSTURN_Pos) /*!< 0x00080000 */
  9967. #define FMC_BTR4_CLKDIV_Pos (20U)
  9968. #define FMC_BTR4_CLKDIV_Msk (0xFU << FMC_BTR4_CLKDIV_Pos) /*!< 0x00F00000 */
  9969. #define FMC_BTR4_CLKDIV FMC_BTR4_CLKDIV_Msk /*!<CLKDIV[3:0] bits (Clock divide ratio) */
  9970. #define FMC_BTR4_CLKDIV_0 (0x1U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00100000 */
  9971. #define FMC_BTR4_CLKDIV_1 (0x2U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00200000 */
  9972. #define FMC_BTR4_CLKDIV_2 (0x4U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00400000 */
  9973. #define FMC_BTR4_CLKDIV_3 (0x8U << FMC_BTR4_CLKDIV_Pos) /*!< 0x00800000 */
  9974. #define FMC_BTR4_DATLAT_Pos (24U)
  9975. #define FMC_BTR4_DATLAT_Msk (0xFU << FMC_BTR4_DATLAT_Pos) /*!< 0x0F000000 */
  9976. #define FMC_BTR4_DATLAT FMC_BTR4_DATLAT_Msk /*!<DATLA[3:0] bits (Data latency) */
  9977. #define FMC_BTR4_DATLAT_0 (0x1U << FMC_BTR4_DATLAT_Pos) /*!< 0x01000000 */
  9978. #define FMC_BTR4_DATLAT_1 (0x2U << FMC_BTR4_DATLAT_Pos) /*!< 0x02000000 */
  9979. #define FMC_BTR4_DATLAT_2 (0x4U << FMC_BTR4_DATLAT_Pos) /*!< 0x04000000 */
  9980. #define FMC_BTR4_DATLAT_3 (0x8U << FMC_BTR4_DATLAT_Pos) /*!< 0x08000000 */
  9981. #define FMC_BTR4_ACCMOD_Pos (28U)
  9982. #define FMC_BTR4_ACCMOD_Msk (0x3U << FMC_BTR4_ACCMOD_Pos) /*!< 0x30000000 */
  9983. #define FMC_BTR4_ACCMOD FMC_BTR4_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  9984. #define FMC_BTR4_ACCMOD_0 (0x1U << FMC_BTR4_ACCMOD_Pos) /*!< 0x10000000 */
  9985. #define FMC_BTR4_ACCMOD_1 (0x2U << FMC_BTR4_ACCMOD_Pos) /*!< 0x20000000 */
  9986. /****************** Bit definition for FMC_BWTR1 register ******************/
  9987. #define FMC_BWTR1_ADDSET_Pos (0U)
  9988. #define FMC_BWTR1_ADDSET_Msk (0xFU << FMC_BWTR1_ADDSET_Pos) /*!< 0x0000000F */
  9989. #define FMC_BWTR1_ADDSET FMC_BWTR1_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  9990. #define FMC_BWTR1_ADDSET_0 (0x1U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000001 */
  9991. #define FMC_BWTR1_ADDSET_1 (0x2U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000002 */
  9992. #define FMC_BWTR1_ADDSET_2 (0x4U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000004 */
  9993. #define FMC_BWTR1_ADDSET_3 (0x8U << FMC_BWTR1_ADDSET_Pos) /*!< 0x00000008 */
  9994. #define FMC_BWTR1_ADDHLD_Pos (4U)
  9995. #define FMC_BWTR1_ADDHLD_Msk (0xFU << FMC_BWTR1_ADDHLD_Pos) /*!< 0x000000F0 */
  9996. #define FMC_BWTR1_ADDHLD FMC_BWTR1_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  9997. #define FMC_BWTR1_ADDHLD_0 (0x1U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000010 */
  9998. #define FMC_BWTR1_ADDHLD_1 (0x2U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000020 */
  9999. #define FMC_BWTR1_ADDHLD_2 (0x4U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000040 */
  10000. #define FMC_BWTR1_ADDHLD_3 (0x8U << FMC_BWTR1_ADDHLD_Pos) /*!< 0x00000080 */
  10001. #define FMC_BWTR1_DATAST_Pos (8U)
  10002. #define FMC_BWTR1_DATAST_Msk (0xFFU << FMC_BWTR1_DATAST_Pos) /*!< 0x0000FF00 */
  10003. #define FMC_BWTR1_DATAST FMC_BWTR1_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10004. #define FMC_BWTR1_DATAST_0 (0x01U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000100 */
  10005. #define FMC_BWTR1_DATAST_1 (0x02U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000200 */
  10006. #define FMC_BWTR1_DATAST_2 (0x04U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000400 */
  10007. #define FMC_BWTR1_DATAST_3 (0x08U << FMC_BWTR1_DATAST_Pos) /*!< 0x00000800 */
  10008. #define FMC_BWTR1_DATAST_4 (0x10U << FMC_BWTR1_DATAST_Pos) /*!< 0x00001000 */
  10009. #define FMC_BWTR1_DATAST_5 (0x20U << FMC_BWTR1_DATAST_Pos) /*!< 0x00002000 */
  10010. #define FMC_BWTR1_DATAST_6 (0x40U << FMC_BWTR1_DATAST_Pos) /*!< 0x00004000 */
  10011. #define FMC_BWTR1_DATAST_7 (0x80U << FMC_BWTR1_DATAST_Pos) /*!< 0x00008000 */
  10012. #define FMC_BWTR1_BUSTURN_Pos (16U)
  10013. #define FMC_BWTR1_BUSTURN_Msk (0xFU << FMC_BWTR1_BUSTURN_Pos) /*!< 0x000F0000 */
  10014. #define FMC_BWTR1_BUSTURN FMC_BWTR1_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10015. #define FMC_BWTR1_BUSTURN_0 (0x1U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00010000 */
  10016. #define FMC_BWTR1_BUSTURN_1 (0x2U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00020000 */
  10017. #define FMC_BWTR1_BUSTURN_2 (0x4U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00040000 */
  10018. #define FMC_BWTR1_BUSTURN_3 (0x8U << FMC_BWTR1_BUSTURN_Pos) /*!< 0x00080000 */
  10019. #define FMC_BWTR1_ACCMOD_Pos (28U)
  10020. #define FMC_BWTR1_ACCMOD_Msk (0x3U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x30000000 */
  10021. #define FMC_BWTR1_ACCMOD FMC_BWTR1_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10022. #define FMC_BWTR1_ACCMOD_0 (0x1U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x10000000 */
  10023. #define FMC_BWTR1_ACCMOD_1 (0x2U << FMC_BWTR1_ACCMOD_Pos) /*!< 0x20000000 */
  10024. /****************** Bit definition for FMC_BWTR2 register ******************/
  10025. #define FMC_BWTR2_ADDSET_Pos (0U)
  10026. #define FMC_BWTR2_ADDSET_Msk (0xFU << FMC_BWTR2_ADDSET_Pos) /*!< 0x0000000F */
  10027. #define FMC_BWTR2_ADDSET FMC_BWTR2_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10028. #define FMC_BWTR2_ADDSET_0 (0x1U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000001 */
  10029. #define FMC_BWTR2_ADDSET_1 (0x2U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000002 */
  10030. #define FMC_BWTR2_ADDSET_2 (0x4U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000004 */
  10031. #define FMC_BWTR2_ADDSET_3 (0x8U << FMC_BWTR2_ADDSET_Pos) /*!< 0x00000008 */
  10032. #define FMC_BWTR2_ADDHLD_Pos (4U)
  10033. #define FMC_BWTR2_ADDHLD_Msk (0xFU << FMC_BWTR2_ADDHLD_Pos) /*!< 0x000000F0 */
  10034. #define FMC_BWTR2_ADDHLD FMC_BWTR2_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10035. #define FMC_BWTR2_ADDHLD_0 (0x1U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000010 */
  10036. #define FMC_BWTR2_ADDHLD_1 (0x2U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000020 */
  10037. #define FMC_BWTR2_ADDHLD_2 (0x4U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000040 */
  10038. #define FMC_BWTR2_ADDHLD_3 (0x8U << FMC_BWTR2_ADDHLD_Pos) /*!< 0x00000080 */
  10039. #define FMC_BWTR2_DATAST_Pos (8U)
  10040. #define FMC_BWTR2_DATAST_Msk (0xFFU << FMC_BWTR2_DATAST_Pos) /*!< 0x0000FF00 */
  10041. #define FMC_BWTR2_DATAST FMC_BWTR2_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10042. #define FMC_BWTR2_DATAST_0 (0x01U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000100 */
  10043. #define FMC_BWTR2_DATAST_1 (0x02U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000200 */
  10044. #define FMC_BWTR2_DATAST_2 (0x04U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000400 */
  10045. #define FMC_BWTR2_DATAST_3 (0x08U << FMC_BWTR2_DATAST_Pos) /*!< 0x00000800 */
  10046. #define FMC_BWTR2_DATAST_4 (0x10U << FMC_BWTR2_DATAST_Pos) /*!< 0x00001000 */
  10047. #define FMC_BWTR2_DATAST_5 (0x20U << FMC_BWTR2_DATAST_Pos) /*!< 0x00002000 */
  10048. #define FMC_BWTR2_DATAST_6 (0x40U << FMC_BWTR2_DATAST_Pos) /*!< 0x00004000 */
  10049. #define FMC_BWTR2_DATAST_7 (0x80U << FMC_BWTR2_DATAST_Pos) /*!< 0x00008000 */
  10050. #define FMC_BWTR2_BUSTURN_Pos (16U)
  10051. #define FMC_BWTR2_BUSTURN_Msk (0xFU << FMC_BWTR2_BUSTURN_Pos) /*!< 0x000F0000 */
  10052. #define FMC_BWTR2_BUSTURN FMC_BWTR2_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10053. #define FMC_BWTR2_BUSTURN_0 (0x1U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00010000 */
  10054. #define FMC_BWTR2_BUSTURN_1 (0x2U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00020000 */
  10055. #define FMC_BWTR2_BUSTURN_2 (0x4U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00040000 */
  10056. #define FMC_BWTR2_BUSTURN_3 (0x8U << FMC_BWTR2_BUSTURN_Pos) /*!< 0x00080000 */
  10057. #define FMC_BWTR2_ACCMOD_Pos (28U)
  10058. #define FMC_BWTR2_ACCMOD_Msk (0x3U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x30000000 */
  10059. #define FMC_BWTR2_ACCMOD FMC_BWTR2_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10060. #define FMC_BWTR2_ACCMOD_0 (0x1U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x10000000 */
  10061. #define FMC_BWTR2_ACCMOD_1 (0x2U << FMC_BWTR2_ACCMOD_Pos) /*!< 0x20000000 */
  10062. /****************** Bit definition for FMC_BWTR3 register ******************/
  10063. #define FMC_BWTR3_ADDSET_Pos (0U)
  10064. #define FMC_BWTR3_ADDSET_Msk (0xFU << FMC_BWTR3_ADDSET_Pos) /*!< 0x0000000F */
  10065. #define FMC_BWTR3_ADDSET FMC_BWTR3_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10066. #define FMC_BWTR3_ADDSET_0 (0x1U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000001 */
  10067. #define FMC_BWTR3_ADDSET_1 (0x2U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000002 */
  10068. #define FMC_BWTR3_ADDSET_2 (0x4U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000004 */
  10069. #define FMC_BWTR3_ADDSET_3 (0x8U << FMC_BWTR3_ADDSET_Pos) /*!< 0x00000008 */
  10070. #define FMC_BWTR3_ADDHLD_Pos (4U)
  10071. #define FMC_BWTR3_ADDHLD_Msk (0xFU << FMC_BWTR3_ADDHLD_Pos) /*!< 0x000000F0 */
  10072. #define FMC_BWTR3_ADDHLD FMC_BWTR3_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10073. #define FMC_BWTR3_ADDHLD_0 (0x1U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000010 */
  10074. #define FMC_BWTR3_ADDHLD_1 (0x2U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000020 */
  10075. #define FMC_BWTR3_ADDHLD_2 (0x4U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000040 */
  10076. #define FMC_BWTR3_ADDHLD_3 (0x8U << FMC_BWTR3_ADDHLD_Pos) /*!< 0x00000080 */
  10077. #define FMC_BWTR3_DATAST_Pos (8U)
  10078. #define FMC_BWTR3_DATAST_Msk (0xFFU << FMC_BWTR3_DATAST_Pos) /*!< 0x0000FF00 */
  10079. #define FMC_BWTR3_DATAST FMC_BWTR3_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10080. #define FMC_BWTR3_DATAST_0 (0x01U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000100 */
  10081. #define FMC_BWTR3_DATAST_1 (0x02U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000200 */
  10082. #define FMC_BWTR3_DATAST_2 (0x04U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000400 */
  10083. #define FMC_BWTR3_DATAST_3 (0x08U << FMC_BWTR3_DATAST_Pos) /*!< 0x00000800 */
  10084. #define FMC_BWTR3_DATAST_4 (0x10U << FMC_BWTR3_DATAST_Pos) /*!< 0x00001000 */
  10085. #define FMC_BWTR3_DATAST_5 (0x20U << FMC_BWTR3_DATAST_Pos) /*!< 0x00002000 */
  10086. #define FMC_BWTR3_DATAST_6 (0x40U << FMC_BWTR3_DATAST_Pos) /*!< 0x00004000 */
  10087. #define FMC_BWTR3_DATAST_7 (0x80U << FMC_BWTR3_DATAST_Pos) /*!< 0x00008000 */
  10088. #define FMC_BWTR3_BUSTURN_Pos (16U)
  10089. #define FMC_BWTR3_BUSTURN_Msk (0xFU << FMC_BWTR3_BUSTURN_Pos) /*!< 0x000F0000 */
  10090. #define FMC_BWTR3_BUSTURN FMC_BWTR3_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10091. #define FMC_BWTR3_BUSTURN_0 (0x1U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00010000 */
  10092. #define FMC_BWTR3_BUSTURN_1 (0x2U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00020000 */
  10093. #define FMC_BWTR3_BUSTURN_2 (0x4U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00040000 */
  10094. #define FMC_BWTR3_BUSTURN_3 (0x8U << FMC_BWTR3_BUSTURN_Pos) /*!< 0x00080000 */
  10095. #define FMC_BWTR3_ACCMOD_Pos (28U)
  10096. #define FMC_BWTR3_ACCMOD_Msk (0x3U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x30000000 */
  10097. #define FMC_BWTR3_ACCMOD FMC_BWTR3_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10098. #define FMC_BWTR3_ACCMOD_0 (0x1U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x10000000 */
  10099. #define FMC_BWTR3_ACCMOD_1 (0x2U << FMC_BWTR3_ACCMOD_Pos) /*!< 0x20000000 */
  10100. /****************** Bit definition for FMC_BWTR4 register ******************/
  10101. #define FMC_BWTR4_ADDSET_Pos (0U)
  10102. #define FMC_BWTR4_ADDSET_Msk (0xFU << FMC_BWTR4_ADDSET_Pos) /*!< 0x0000000F */
  10103. #define FMC_BWTR4_ADDSET FMC_BWTR4_ADDSET_Msk /*!<ADDSET[3:0] bits (Address setup phase duration) */
  10104. #define FMC_BWTR4_ADDSET_0 (0x1U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000001 */
  10105. #define FMC_BWTR4_ADDSET_1 (0x2U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000002 */
  10106. #define FMC_BWTR4_ADDSET_2 (0x4U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000004 */
  10107. #define FMC_BWTR4_ADDSET_3 (0x8U << FMC_BWTR4_ADDSET_Pos) /*!< 0x00000008 */
  10108. #define FMC_BWTR4_ADDHLD_Pos (4U)
  10109. #define FMC_BWTR4_ADDHLD_Msk (0xFU << FMC_BWTR4_ADDHLD_Pos) /*!< 0x000000F0 */
  10110. #define FMC_BWTR4_ADDHLD FMC_BWTR4_ADDHLD_Msk /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
  10111. #define FMC_BWTR4_ADDHLD_0 (0x1U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000010 */
  10112. #define FMC_BWTR4_ADDHLD_1 (0x2U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000020 */
  10113. #define FMC_BWTR4_ADDHLD_2 (0x4U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000040 */
  10114. #define FMC_BWTR4_ADDHLD_3 (0x8U << FMC_BWTR4_ADDHLD_Pos) /*!< 0x00000080 */
  10115. #define FMC_BWTR4_DATAST_Pos (8U)
  10116. #define FMC_BWTR4_DATAST_Msk (0xFFU << FMC_BWTR4_DATAST_Pos) /*!< 0x0000FF00 */
  10117. #define FMC_BWTR4_DATAST FMC_BWTR4_DATAST_Msk /*!<DATAST [3:0] bits (Data-phase duration) */
  10118. #define FMC_BWTR4_DATAST_0 (0x01U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000100 */
  10119. #define FMC_BWTR4_DATAST_1 (0x02U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000200 */
  10120. #define FMC_BWTR4_DATAST_2 (0x04U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000400 */
  10121. #define FMC_BWTR4_DATAST_3 (0x08U << FMC_BWTR4_DATAST_Pos) /*!< 0x00000800 */
  10122. #define FMC_BWTR4_DATAST_4 (0x10U << FMC_BWTR4_DATAST_Pos) /*!< 0x00001000 */
  10123. #define FMC_BWTR4_DATAST_5 (0x20U << FMC_BWTR4_DATAST_Pos) /*!< 0x00002000 */
  10124. #define FMC_BWTR4_DATAST_6 (0x40U << FMC_BWTR4_DATAST_Pos) /*!< 0x00004000 */
  10125. #define FMC_BWTR4_DATAST_7 (0x80U << FMC_BWTR4_DATAST_Pos) /*!< 0x00008000 */
  10126. #define FMC_BWTR4_BUSTURN_Pos (16U)
  10127. #define FMC_BWTR4_BUSTURN_Msk (0xFU << FMC_BWTR4_BUSTURN_Pos) /*!< 0x000F0000 */
  10128. #define FMC_BWTR4_BUSTURN FMC_BWTR4_BUSTURN_Msk /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
  10129. #define FMC_BWTR4_BUSTURN_0 (0x1U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00010000 */
  10130. #define FMC_BWTR4_BUSTURN_1 (0x2U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00020000 */
  10131. #define FMC_BWTR4_BUSTURN_2 (0x4U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00040000 */
  10132. #define FMC_BWTR4_BUSTURN_3 (0x8U << FMC_BWTR4_BUSTURN_Pos) /*!< 0x00080000 */
  10133. #define FMC_BWTR4_ACCMOD_Pos (28U)
  10134. #define FMC_BWTR4_ACCMOD_Msk (0x3U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x30000000 */
  10135. #define FMC_BWTR4_ACCMOD FMC_BWTR4_ACCMOD_Msk /*!<ACCMOD[1:0] bits (Access mode) */
  10136. #define FMC_BWTR4_ACCMOD_0 (0x1U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x10000000 */
  10137. #define FMC_BWTR4_ACCMOD_1 (0x2U << FMC_BWTR4_ACCMOD_Pos) /*!< 0x20000000 */
  10138. /****************** Bit definition for FMC_PCR register *******************/
  10139. #define FMC_PCR_PWAITEN_Pos (1U)
  10140. #define FMC_PCR_PWAITEN_Msk (0x1U << FMC_PCR_PWAITEN_Pos) /*!< 0x00000002 */
  10141. #define FMC_PCR_PWAITEN FMC_PCR_PWAITEN_Msk /*!<Wait feature enable bit */
  10142. #define FMC_PCR_PBKEN_Pos (2U)
  10143. #define FMC_PCR_PBKEN_Msk (0x1U << FMC_PCR_PBKEN_Pos) /*!< 0x00000004 */
  10144. #define FMC_PCR_PBKEN FMC_PCR_PBKEN_Msk /*!<NAND Flash memory bank enable bit */
  10145. #define FMC_PCR_PWID_Pos (4U)
  10146. #define FMC_PCR_PWID_Msk (0x3U << FMC_PCR_PWID_Pos) /*!< 0x00000030 */
  10147. #define FMC_PCR_PWID FMC_PCR_PWID_Msk /*!<PWID[1:0] bits (NAND Flash databus width) */
  10148. #define FMC_PCR_PWID_0 (0x1U << FMC_PCR_PWID_Pos) /*!< 0x00000010 */
  10149. #define FMC_PCR_PWID_1 (0x2U << FMC_PCR_PWID_Pos) /*!< 0x00000020 */
  10150. #define FMC_PCR_ECCEN_Pos (6U)
  10151. #define FMC_PCR_ECCEN_Msk (0x1U << FMC_PCR_ECCEN_Pos) /*!< 0x00000040 */
  10152. #define FMC_PCR_ECCEN FMC_PCR_ECCEN_Msk /*!<ECC computation logic enable bit */
  10153. #define FMC_PCR_TCLR_Pos (9U)
  10154. #define FMC_PCR_TCLR_Msk (0xFU << FMC_PCR_TCLR_Pos) /*!< 0x00001E00 */
  10155. #define FMC_PCR_TCLR FMC_PCR_TCLR_Msk /*!<TCLR[3:0] bits (CLE to RE delay) */
  10156. #define FMC_PCR_TCLR_0 (0x1U << FMC_PCR_TCLR_Pos) /*!< 0x00000200 */
  10157. #define FMC_PCR_TCLR_1 (0x2U << FMC_PCR_TCLR_Pos) /*!< 0x00000400 */
  10158. #define FMC_PCR_TCLR_2 (0x4U << FMC_PCR_TCLR_Pos) /*!< 0x00000800 */
  10159. #define FMC_PCR_TCLR_3 (0x8U << FMC_PCR_TCLR_Pos) /*!< 0x00001000 */
  10160. #define FMC_PCR_TAR_Pos (13U)
  10161. #define FMC_PCR_TAR_Msk (0xFU << FMC_PCR_TAR_Pos) /*!< 0x0001E000 */
  10162. #define FMC_PCR_TAR FMC_PCR_TAR_Msk /*!<TAR[3:0] bits (ALE to RE delay) */
  10163. #define FMC_PCR_TAR_0 (0x1U << FMC_PCR_TAR_Pos) /*!< 0x00002000 */
  10164. #define FMC_PCR_TAR_1 (0x2U << FMC_PCR_TAR_Pos) /*!< 0x00004000 */
  10165. #define FMC_PCR_TAR_2 (0x4U << FMC_PCR_TAR_Pos) /*!< 0x00008000 */
  10166. #define FMC_PCR_TAR_3 (0x8U << FMC_PCR_TAR_Pos) /*!< 0x00010000 */
  10167. #define FMC_PCR_ECCPS_Pos (17U)
  10168. #define FMC_PCR_ECCPS_Msk (0x7U << FMC_PCR_ECCPS_Pos) /*!< 0x000E0000 */
  10169. #define FMC_PCR_ECCPS FMC_PCR_ECCPS_Msk /*!<ECCPS[1:0] bits (ECC page size) */
  10170. #define FMC_PCR_ECCPS_0 (0x1U << FMC_PCR_ECCPS_Pos) /*!< 0x00020000 */
  10171. #define FMC_PCR_ECCPS_1 (0x2U << FMC_PCR_ECCPS_Pos) /*!< 0x00040000 */
  10172. #define FMC_PCR_ECCPS_2 (0x4U << FMC_PCR_ECCPS_Pos) /*!< 0x00080000 */
  10173. /******************* Bit definition for FMC_SR register *******************/
  10174. #define FMC_SR_IRS ((uint8_t)0x01) /*!<Interrupt Rising Edge status */
  10175. #define FMC_SR_ILS ((uint8_t)0x02) /*!<Interrupt Level status */
  10176. #define FMC_SR_IFS ((uint8_t)0x04) /*!<Interrupt Falling Edge status */
  10177. #define FMC_SR_IREN ((uint8_t)0x08) /*!<Interrupt Rising Edge detection Enable bit */
  10178. #define FMC_SR_ILEN ((uint8_t)0x10) /*!<Interrupt Level detection Enable bit */
  10179. #define FMC_SR_IFEN ((uint8_t)0x20) /*!<Interrupt Falling Edge detection Enable bit */
  10180. #define FMC_SR_FEMPT ((uint8_t)0x40) /*!<FIFO empty */
  10181. /****************** Bit definition for FMC_PMEM register ******************/
  10182. #define FMC_PMEM_MEMSET3_Pos (0U)
  10183. #define FMC_PMEM_MEMSET3_Msk (0xFFU << FMC_PMEM_MEMSET3_Pos) /*!< 0x000000FF */
  10184. #define FMC_PMEM_MEMSET3 FMC_PMEM_MEMSET3_Msk /*!<MEMSET3[7:0] bits (Common memory 3 setup time) */
  10185. #define FMC_PMEM_MEMSET3_0 (0x01U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000001 */
  10186. #define FMC_PMEM_MEMSET3_1 (0x02U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000002 */
  10187. #define FMC_PMEM_MEMSET3_2 (0x04U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000004 */
  10188. #define FMC_PMEM_MEMSET3_3 (0x08U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000008 */
  10189. #define FMC_PMEM_MEMSET3_4 (0x10U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000010 */
  10190. #define FMC_PMEM_MEMSET3_5 (0x20U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000020 */
  10191. #define FMC_PMEM_MEMSET3_6 (0x40U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000040 */
  10192. #define FMC_PMEM_MEMSET3_7 (0x80U << FMC_PMEM_MEMSET3_Pos) /*!< 0x00000080 */
  10193. #define FMC_PMEM_MEMWAIT3_Pos (8U)
  10194. #define FMC_PMEM_MEMWAIT3_Msk (0xFFU << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x0000FF00 */
  10195. #define FMC_PMEM_MEMWAIT3 FMC_PMEM_MEMWAIT3_Msk /*!<MEMWAIT3[7:0] bits (Common memory 3 wait time) */
  10196. #define FMC_PMEM_MEMWAIT3_0 (0x01U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000100 */
  10197. #define FMC_PMEM_MEMWAIT3_1 (0x02U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000200 */
  10198. #define FMC_PMEM_MEMWAIT3_2 (0x04U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000400 */
  10199. #define FMC_PMEM_MEMWAIT3_3 (0x08U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00000800 */
  10200. #define FMC_PMEM_MEMWAIT3_4 (0x10U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00001000 */
  10201. #define FMC_PMEM_MEMWAIT3_5 (0x20U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00002000 */
  10202. #define FMC_PMEM_MEMWAIT3_6 (0x40U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00004000 */
  10203. #define FMC_PMEM_MEMWAIT3_7 (0x80U << FMC_PMEM_MEMWAIT3_Pos) /*!< 0x00008000 */
  10204. #define FMC_PMEM_MEMHOLD3_Pos (16U)
  10205. #define FMC_PMEM_MEMHOLD3_Msk (0xFFU << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00FF0000 */
  10206. #define FMC_PMEM_MEMHOLD3 FMC_PMEM_MEMHOLD3_Msk /*!<MEMHOLD3[7:0] bits (Common memory 3 hold time) */
  10207. #define FMC_PMEM_MEMHOLD3_0 (0x01U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00010000 */
  10208. #define FMC_PMEM_MEMHOLD3_1 (0x02U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00020000 */
  10209. #define FMC_PMEM_MEMHOLD3_2 (0x04U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00040000 */
  10210. #define FMC_PMEM_MEMHOLD3_3 (0x08U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00080000 */
  10211. #define FMC_PMEM_MEMHOLD3_4 (0x10U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00100000 */
  10212. #define FMC_PMEM_MEMHOLD3_5 (0x20U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00200000 */
  10213. #define FMC_PMEM_MEMHOLD3_6 (0x40U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00400000 */
  10214. #define FMC_PMEM_MEMHOLD3_7 (0x80U << FMC_PMEM_MEMHOLD3_Pos) /*!< 0x00800000 */
  10215. #define FMC_PMEM_MEMHIZ3_Pos (24U)
  10216. #define FMC_PMEM_MEMHIZ3_Msk (0xFFU << FMC_PMEM_MEMHIZ3_Pos) /*!< 0xFF000000 */
  10217. #define FMC_PMEM_MEMHIZ3 FMC_PMEM_MEMHIZ3_Msk /*!<MEMHIZ3[7:0] bits (Common memory 3 databus HiZ time) */
  10218. #define FMC_PMEM_MEMHIZ3_0 (0x01U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x01000000 */
  10219. #define FMC_PMEM_MEMHIZ3_1 (0x02U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x02000000 */
  10220. #define FMC_PMEM_MEMHIZ3_2 (0x04U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x04000000 */
  10221. #define FMC_PMEM_MEMHIZ3_3 (0x08U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x08000000 */
  10222. #define FMC_PMEM_MEMHIZ3_4 (0x10U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x10000000 */
  10223. #define FMC_PMEM_MEMHIZ3_5 (0x20U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x20000000 */
  10224. #define FMC_PMEM_MEMHIZ3_6 (0x40U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x40000000 */
  10225. #define FMC_PMEM_MEMHIZ3_7 (0x80U << FMC_PMEM_MEMHIZ3_Pos) /*!< 0x80000000 */
  10226. /****************** Bit definition for FMC_PATT register ******************/
  10227. #define FMC_PATT_ATTSET3_Pos (0U)
  10228. #define FMC_PATT_ATTSET3_Msk (0xFFU << FMC_PATT_ATTSET3_Pos) /*!< 0x000000FF */
  10229. #define FMC_PATT_ATTSET3 FMC_PATT_ATTSET3_Msk /*!<ATTSET3[7:0] bits (Attribute memory 3 setup time) */
  10230. #define FMC_PATT_ATTSET3_0 (0x01U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000001 */
  10231. #define FMC_PATT_ATTSET3_1 (0x02U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000002 */
  10232. #define FMC_PATT_ATTSET3_2 (0x04U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000004 */
  10233. #define FMC_PATT_ATTSET3_3 (0x08U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000008 */
  10234. #define FMC_PATT_ATTSET3_4 (0x10U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000010 */
  10235. #define FMC_PATT_ATTSET3_5 (0x20U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000020 */
  10236. #define FMC_PATT_ATTSET3_6 (0x40U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000040 */
  10237. #define FMC_PATT_ATTSET3_7 (0x80U << FMC_PATT_ATTSET3_Pos) /*!< 0x00000080 */
  10238. #define FMC_PATT_ATTWAIT3_Pos (8U)
  10239. #define FMC_PATT_ATTWAIT3_Msk (0xFFU << FMC_PATT_ATTWAIT3_Pos) /*!< 0x0000FF00 */
  10240. #define FMC_PATT_ATTWAIT3 FMC_PATT_ATTWAIT3_Msk /*!<ATTWAIT3[7:0] bits (Attribute memory 3 wait time) */
  10241. #define FMC_PATT_ATTWAIT3_0 (0x01U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000100 */
  10242. #define FMC_PATT_ATTWAIT3_1 (0x02U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000200 */
  10243. #define FMC_PATT_ATTWAIT3_2 (0x04U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000400 */
  10244. #define FMC_PATT_ATTWAIT3_3 (0x08U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00000800 */
  10245. #define FMC_PATT_ATTWAIT3_4 (0x10U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00001000 */
  10246. #define FMC_PATT_ATTWAIT3_5 (0x20U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00002000 */
  10247. #define FMC_PATT_ATTWAIT3_6 (0x40U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00004000 */
  10248. #define FMC_PATT_ATTWAIT3_7 (0x80U << FMC_PATT_ATTWAIT3_Pos) /*!< 0x00008000 */
  10249. #define FMC_PATT_ATTHOLD3_Pos (16U)
  10250. #define FMC_PATT_ATTHOLD3_Msk (0xFFU << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00FF0000 */
  10251. #define FMC_PATT_ATTHOLD3 FMC_PATT_ATTHOLD3_Msk /*!<ATTHOLD3[7:0] bits (Attribute memory 3 hold time) */
  10252. #define FMC_PATT_ATTHOLD3_0 (0x01U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00010000 */
  10253. #define FMC_PATT_ATTHOLD3_1 (0x02U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00020000 */
  10254. #define FMC_PATT_ATTHOLD3_2 (0x04U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00040000 */
  10255. #define FMC_PATT_ATTHOLD3_3 (0x08U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00080000 */
  10256. #define FMC_PATT_ATTHOLD3_4 (0x10U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00100000 */
  10257. #define FMC_PATT_ATTHOLD3_5 (0x20U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00200000 */
  10258. #define FMC_PATT_ATTHOLD3_6 (0x40U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00400000 */
  10259. #define FMC_PATT_ATTHOLD3_7 (0x80U << FMC_PATT_ATTHOLD3_Pos) /*!< 0x00800000 */
  10260. #define FMC_PATT_ATTHIZ3_Pos (24U)
  10261. #define FMC_PATT_ATTHIZ3_Msk (0xFFU << FMC_PATT_ATTHIZ3_Pos) /*!< 0xFF000000 */
  10262. #define FMC_PATT_ATTHIZ3 FMC_PATT_ATTHIZ3_Msk /*!<ATTHIZ3[7:0] bits (Attribute memory 3 databus HiZ time) */
  10263. #define FMC_PATT_ATTHIZ3_0 (0x01U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x01000000 */
  10264. #define FMC_PATT_ATTHIZ3_1 (0x02U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x02000000 */
  10265. #define FMC_PATT_ATTHIZ3_2 (0x04U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x04000000 */
  10266. #define FMC_PATT_ATTHIZ3_3 (0x08U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x08000000 */
  10267. #define FMC_PATT_ATTHIZ3_4 (0x10U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x10000000 */
  10268. #define FMC_PATT_ATTHIZ3_5 (0x20U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x20000000 */
  10269. #define FMC_PATT_ATTHIZ3_6 (0x40U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x40000000 */
  10270. #define FMC_PATT_ATTHIZ3_7 (0x80U << FMC_PATT_ATTHIZ3_Pos) /*!< 0x80000000 */
  10271. /****************** Bit definition for FMC_ECCR3 register ******************/
  10272. #define FMC_ECCR3_ECC3_Pos (0U)
  10273. #define FMC_ECCR3_ECC3_Msk (0xFFFFFFFFU << FMC_ECCR3_ECC3_Pos) /*!< 0xFFFFFFFF */
  10274. #define FMC_ECCR3_ECC3 FMC_ECCR3_ECC3_Msk /*!<ECC result */
  10275. /****************** Bit definition for FMC_SDCR1 register ******************/
  10276. #define FMC_SDCR1_NC_Pos (0U)
  10277. #define FMC_SDCR1_NC_Msk (0x3U << FMC_SDCR1_NC_Pos) /*!< 0x00000003 */
  10278. #define FMC_SDCR1_NC FMC_SDCR1_NC_Msk /*!<NC[1:0] bits (Number of column bits) */
  10279. #define FMC_SDCR1_NC_0 (0x1U << FMC_SDCR1_NC_Pos) /*!< 0x00000001 */
  10280. #define FMC_SDCR1_NC_1 (0x2U << FMC_SDCR1_NC_Pos) /*!< 0x00000002 */
  10281. #define FMC_SDCR1_NR_Pos (2U)
  10282. #define FMC_SDCR1_NR_Msk (0x3U << FMC_SDCR1_NR_Pos) /*!< 0x0000000C */
  10283. #define FMC_SDCR1_NR FMC_SDCR1_NR_Msk /*!<NR[1:0] bits (Number of row bits) */
  10284. #define FMC_SDCR1_NR_0 (0x1U << FMC_SDCR1_NR_Pos) /*!< 0x00000004 */
  10285. #define FMC_SDCR1_NR_1 (0x2U << FMC_SDCR1_NR_Pos) /*!< 0x00000008 */
  10286. #define FMC_SDCR1_MWID_Pos (4U)
  10287. #define FMC_SDCR1_MWID_Msk (0x3U << FMC_SDCR1_MWID_Pos) /*!< 0x00000030 */
  10288. #define FMC_SDCR1_MWID FMC_SDCR1_MWID_Msk /*!<NR[1:0] bits (Number of row bits) */
  10289. #define FMC_SDCR1_MWID_0 (0x1U << FMC_SDCR1_MWID_Pos) /*!< 0x00000010 */
  10290. #define FMC_SDCR1_MWID_1 (0x2U << FMC_SDCR1_MWID_Pos) /*!< 0x00000020 */
  10291. #define FMC_SDCR1_NB_Pos (6U)
  10292. #define FMC_SDCR1_NB_Msk (0x1U << FMC_SDCR1_NB_Pos) /*!< 0x00000040 */
  10293. #define FMC_SDCR1_NB FMC_SDCR1_NB_Msk /*!<Number of internal bank */
  10294. #define FMC_SDCR1_CAS_Pos (7U)
  10295. #define FMC_SDCR1_CAS_Msk (0x3U << FMC_SDCR1_CAS_Pos) /*!< 0x00000180 */
  10296. #define FMC_SDCR1_CAS FMC_SDCR1_CAS_Msk /*!<CAS[1:0] bits (CAS latency) */
  10297. #define FMC_SDCR1_CAS_0 (0x1U << FMC_SDCR1_CAS_Pos) /*!< 0x00000080 */
  10298. #define FMC_SDCR1_CAS_1 (0x2U << FMC_SDCR1_CAS_Pos) /*!< 0x00000100 */
  10299. #define FMC_SDCR1_WP_Pos (9U)
  10300. #define FMC_SDCR1_WP_Msk (0x1U << FMC_SDCR1_WP_Pos) /*!< 0x00000200 */
  10301. #define FMC_SDCR1_WP FMC_SDCR1_WP_Msk /*!<Write protection */
  10302. #define FMC_SDCR1_SDCLK_Pos (10U)
  10303. #define FMC_SDCR1_SDCLK_Msk (0x3U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000C00 */
  10304. #define FMC_SDCR1_SDCLK FMC_SDCR1_SDCLK_Msk /*!<SDRAM clock configuration */
  10305. #define FMC_SDCR1_SDCLK_0 (0x1U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000400 */
  10306. #define FMC_SDCR1_SDCLK_1 (0x2U << FMC_SDCR1_SDCLK_Pos) /*!< 0x00000800 */
  10307. #define FMC_SDCR1_RBURST_Pos (12U)
  10308. #define FMC_SDCR1_RBURST_Msk (0x1U << FMC_SDCR1_RBURST_Pos) /*!< 0x00001000 */
  10309. #define FMC_SDCR1_RBURST FMC_SDCR1_RBURST_Msk /*!<Read burst */
  10310. #define FMC_SDCR1_RPIPE_Pos (13U)
  10311. #define FMC_SDCR1_RPIPE_Msk (0x3U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00006000 */
  10312. #define FMC_SDCR1_RPIPE FMC_SDCR1_RPIPE_Msk /*!<Write protection */
  10313. #define FMC_SDCR1_RPIPE_0 (0x1U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00002000 */
  10314. #define FMC_SDCR1_RPIPE_1 (0x2U << FMC_SDCR1_RPIPE_Pos) /*!< 0x00004000 */
  10315. /****************** Bit definition for FMC_SDCR2 register ******************/
  10316. #define FMC_SDCR2_NC_Pos (0U)
  10317. #define FMC_SDCR2_NC_Msk (0x3U << FMC_SDCR2_NC_Pos) /*!< 0x00000003 */
  10318. #define FMC_SDCR2_NC FMC_SDCR2_NC_Msk /*!<NC[1:0] bits (Number of column bits) */
  10319. #define FMC_SDCR2_NC_0 (0x1U << FMC_SDCR2_NC_Pos) /*!< 0x00000001 */
  10320. #define FMC_SDCR2_NC_1 (0x2U << FMC_SDCR2_NC_Pos) /*!< 0x00000002 */
  10321. #define FMC_SDCR2_NR_Pos (2U)
  10322. #define FMC_SDCR2_NR_Msk (0x3U << FMC_SDCR2_NR_Pos) /*!< 0x0000000C */
  10323. #define FMC_SDCR2_NR FMC_SDCR2_NR_Msk /*!<NR[1:0] bits (Number of row bits) */
  10324. #define FMC_SDCR2_NR_0 (0x1U << FMC_SDCR2_NR_Pos) /*!< 0x00000004 */
  10325. #define FMC_SDCR2_NR_1 (0x2U << FMC_SDCR2_NR_Pos) /*!< 0x00000008 */
  10326. #define FMC_SDCR2_MWID_Pos (4U)
  10327. #define FMC_SDCR2_MWID_Msk (0x3U << FMC_SDCR2_MWID_Pos) /*!< 0x00000030 */
  10328. #define FMC_SDCR2_MWID FMC_SDCR2_MWID_Msk /*!<NR[1:0] bits (Number of row bits) */
  10329. #define FMC_SDCR2_MWID_0 (0x1U << FMC_SDCR2_MWID_Pos) /*!< 0x00000010 */
  10330. #define FMC_SDCR2_MWID_1 (0x2U << FMC_SDCR2_MWID_Pos) /*!< 0x00000020 */
  10331. #define FMC_SDCR2_NB_Pos (6U)
  10332. #define FMC_SDCR2_NB_Msk (0x1U << FMC_SDCR2_NB_Pos) /*!< 0x00000040 */
  10333. #define FMC_SDCR2_NB FMC_SDCR2_NB_Msk /*!<Number of internal bank */
  10334. #define FMC_SDCR2_CAS_Pos (7U)
  10335. #define FMC_SDCR2_CAS_Msk (0x3U << FMC_SDCR2_CAS_Pos) /*!< 0x00000180 */
  10336. #define FMC_SDCR2_CAS FMC_SDCR2_CAS_Msk /*!<CAS[1:0] bits (CAS latency) */
  10337. #define FMC_SDCR2_CAS_0 (0x1U << FMC_SDCR2_CAS_Pos) /*!< 0x00000080 */
  10338. #define FMC_SDCR2_CAS_1 (0x2U << FMC_SDCR2_CAS_Pos) /*!< 0x00000100 */
  10339. #define FMC_SDCR2_WP_Pos (9U)
  10340. #define FMC_SDCR2_WP_Msk (0x1U << FMC_SDCR2_WP_Pos) /*!< 0x00000200 */
  10341. #define FMC_SDCR2_WP FMC_SDCR2_WP_Msk /*!<Write protection */
  10342. #define FMC_SDCR2_SDCLK_Pos (10U)
  10343. #define FMC_SDCR2_SDCLK_Msk (0x3U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000C00 */
  10344. #define FMC_SDCR2_SDCLK FMC_SDCR2_SDCLK_Msk /*!<SDCLK[1:0] (SDRAM clock configuration) */
  10345. #define FMC_SDCR2_SDCLK_0 (0x1U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000400 */
  10346. #define FMC_SDCR2_SDCLK_1 (0x2U << FMC_SDCR2_SDCLK_Pos) /*!< 0x00000800 */
  10347. /****************** Bit definition for FMC_SDTR1 register ******************/
  10348. #define FMC_SDTR1_TMRD_Pos (0U)
  10349. #define FMC_SDTR1_TMRD_Msk (0xFU << FMC_SDTR1_TMRD_Pos) /*!< 0x0000000F */
  10350. #define FMC_SDTR1_TMRD FMC_SDTR1_TMRD_Msk /*!<TMRD[3:0] bits (Load mode register to active) */
  10351. #define FMC_SDTR1_TMRD_0 (0x1U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000001 */
  10352. #define FMC_SDTR1_TMRD_1 (0x2U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000002 */
  10353. #define FMC_SDTR1_TMRD_2 (0x4U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000004 */
  10354. #define FMC_SDTR1_TMRD_3 (0x8U << FMC_SDTR1_TMRD_Pos) /*!< 0x00000008 */
  10355. #define FMC_SDTR1_TXSR_Pos (4U)
  10356. #define FMC_SDTR1_TXSR_Msk (0xFU << FMC_SDTR1_TXSR_Pos) /*!< 0x000000F0 */
  10357. #define FMC_SDTR1_TXSR FMC_SDTR1_TXSR_Msk /*!<TXSR[3:0] bits (Exit self refresh) */
  10358. #define FMC_SDTR1_TXSR_0 (0x1U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000010 */
  10359. #define FMC_SDTR1_TXSR_1 (0x2U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000020 */
  10360. #define FMC_SDTR1_TXSR_2 (0x4U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000040 */
  10361. #define FMC_SDTR1_TXSR_3 (0x8U << FMC_SDTR1_TXSR_Pos) /*!< 0x00000080 */
  10362. #define FMC_SDTR1_TRAS_Pos (8U)
  10363. #define FMC_SDTR1_TRAS_Msk (0xFU << FMC_SDTR1_TRAS_Pos) /*!< 0x00000F00 */
  10364. #define FMC_SDTR1_TRAS FMC_SDTR1_TRAS_Msk /*!<TRAS[3:0] bits (Self refresh time) */
  10365. #define FMC_SDTR1_TRAS_0 (0x1U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000100 */
  10366. #define FMC_SDTR1_TRAS_1 (0x2U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000200 */
  10367. #define FMC_SDTR1_TRAS_2 (0x4U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000400 */
  10368. #define FMC_SDTR1_TRAS_3 (0x8U << FMC_SDTR1_TRAS_Pos) /*!< 0x00000800 */
  10369. #define FMC_SDTR1_TRC_Pos (12U)
  10370. #define FMC_SDTR1_TRC_Msk (0xFU << FMC_SDTR1_TRC_Pos) /*!< 0x0000F000 */
  10371. #define FMC_SDTR1_TRC FMC_SDTR1_TRC_Msk /*!<TRC[2:0] bits (Row cycle delay) */
  10372. #define FMC_SDTR1_TRC_0 (0x1U << FMC_SDTR1_TRC_Pos) /*!< 0x00001000 */
  10373. #define FMC_SDTR1_TRC_1 (0x2U << FMC_SDTR1_TRC_Pos) /*!< 0x00002000 */
  10374. #define FMC_SDTR1_TRC_2 (0x4U << FMC_SDTR1_TRC_Pos) /*!< 0x00004000 */
  10375. #define FMC_SDTR1_TWR_Pos (16U)
  10376. #define FMC_SDTR1_TWR_Msk (0xFU << FMC_SDTR1_TWR_Pos) /*!< 0x000F0000 */
  10377. #define FMC_SDTR1_TWR FMC_SDTR1_TWR_Msk /*!<TRC[2:0] bits (Write recovery delay) */
  10378. #define FMC_SDTR1_TWR_0 (0x1U << FMC_SDTR1_TWR_Pos) /*!< 0x00010000 */
  10379. #define FMC_SDTR1_TWR_1 (0x2U << FMC_SDTR1_TWR_Pos) /*!< 0x00020000 */
  10380. #define FMC_SDTR1_TWR_2 (0x4U << FMC_SDTR1_TWR_Pos) /*!< 0x00040000 */
  10381. #define FMC_SDTR1_TRP_Pos (20U)
  10382. #define FMC_SDTR1_TRP_Msk (0xFU << FMC_SDTR1_TRP_Pos) /*!< 0x00F00000 */
  10383. #define FMC_SDTR1_TRP FMC_SDTR1_TRP_Msk /*!<TRP[2:0] bits (Row precharge delay) */
  10384. #define FMC_SDTR1_TRP_0 (0x1U << FMC_SDTR1_TRP_Pos) /*!< 0x00100000 */
  10385. #define FMC_SDTR1_TRP_1 (0x2U << FMC_SDTR1_TRP_Pos) /*!< 0x00200000 */
  10386. #define FMC_SDTR1_TRP_2 (0x4U << FMC_SDTR1_TRP_Pos) /*!< 0x00400000 */
  10387. #define FMC_SDTR1_TRCD_Pos (24U)
  10388. #define FMC_SDTR1_TRCD_Msk (0xFU << FMC_SDTR1_TRCD_Pos) /*!< 0x0F000000 */
  10389. #define FMC_SDTR1_TRCD FMC_SDTR1_TRCD_Msk /*!<TRP[2:0] bits (Row to column delay) */
  10390. #define FMC_SDTR1_TRCD_0 (0x1U << FMC_SDTR1_TRCD_Pos) /*!< 0x01000000 */
  10391. #define FMC_SDTR1_TRCD_1 (0x2U << FMC_SDTR1_TRCD_Pos) /*!< 0x02000000 */
  10392. #define FMC_SDTR1_TRCD_2 (0x4U << FMC_SDTR1_TRCD_Pos) /*!< 0x04000000 */
  10393. /****************** Bit definition for FMC_SDTR2 register ******************/
  10394. #define FMC_SDTR2_TMRD_Pos (0U)
  10395. #define FMC_SDTR2_TMRD_Msk (0xFU << FMC_SDTR2_TMRD_Pos) /*!< 0x0000000F */
  10396. #define FMC_SDTR2_TMRD FMC_SDTR2_TMRD_Msk /*!<TMRD[3:0] bits (Load mode register to active) */
  10397. #define FMC_SDTR2_TMRD_0 (0x1U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000001 */
  10398. #define FMC_SDTR2_TMRD_1 (0x2U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000002 */
  10399. #define FMC_SDTR2_TMRD_2 (0x4U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000004 */
  10400. #define FMC_SDTR2_TMRD_3 (0x8U << FMC_SDTR2_TMRD_Pos) /*!< 0x00000008 */
  10401. #define FMC_SDTR2_TXSR_Pos (4U)
  10402. #define FMC_SDTR2_TXSR_Msk (0xFU << FMC_SDTR2_TXSR_Pos) /*!< 0x000000F0 */
  10403. #define FMC_SDTR2_TXSR FMC_SDTR2_TXSR_Msk /*!<TXSR[3:0] bits (Exit self refresh) */
  10404. #define FMC_SDTR2_TXSR_0 (0x1U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000010 */
  10405. #define FMC_SDTR2_TXSR_1 (0x2U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000020 */
  10406. #define FMC_SDTR2_TXSR_2 (0x4U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000040 */
  10407. #define FMC_SDTR2_TXSR_3 (0x8U << FMC_SDTR2_TXSR_Pos) /*!< 0x00000080 */
  10408. #define FMC_SDTR2_TRAS_Pos (8U)
  10409. #define FMC_SDTR2_TRAS_Msk (0xFU << FMC_SDTR2_TRAS_Pos) /*!< 0x00000F00 */
  10410. #define FMC_SDTR2_TRAS FMC_SDTR2_TRAS_Msk /*!<TRAS[3:0] bits (Self refresh time) */
  10411. #define FMC_SDTR2_TRAS_0 (0x1U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000100 */
  10412. #define FMC_SDTR2_TRAS_1 (0x2U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000200 */
  10413. #define FMC_SDTR2_TRAS_2 (0x4U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000400 */
  10414. #define FMC_SDTR2_TRAS_3 (0x8U << FMC_SDTR2_TRAS_Pos) /*!< 0x00000800 */
  10415. #define FMC_SDTR2_TRC_Pos (12U)
  10416. #define FMC_SDTR2_TRC_Msk (0xFU << FMC_SDTR2_TRC_Pos) /*!< 0x0000F000 */
  10417. #define FMC_SDTR2_TRC FMC_SDTR2_TRC_Msk /*!<TRC[2:0] bits (Row cycle delay) */
  10418. #define FMC_SDTR2_TRC_0 (0x1U << FMC_SDTR2_TRC_Pos) /*!< 0x00001000 */
  10419. #define FMC_SDTR2_TRC_1 (0x2U << FMC_SDTR2_TRC_Pos) /*!< 0x00002000 */
  10420. #define FMC_SDTR2_TRC_2 (0x4U << FMC_SDTR2_TRC_Pos) /*!< 0x00004000 */
  10421. #define FMC_SDTR2_TWR_Pos (16U)
  10422. #define FMC_SDTR2_TWR_Msk (0xFU << FMC_SDTR2_TWR_Pos) /*!< 0x000F0000 */
  10423. #define FMC_SDTR2_TWR FMC_SDTR2_TWR_Msk /*!<TRC[2:0] bits (Write recovery delay) */
  10424. #define FMC_SDTR2_TWR_0 (0x1U << FMC_SDTR2_TWR_Pos) /*!< 0x00010000 */
  10425. #define FMC_SDTR2_TWR_1 (0x2U << FMC_SDTR2_TWR_Pos) /*!< 0x00020000 */
  10426. #define FMC_SDTR2_TWR_2 (0x4U << FMC_SDTR2_TWR_Pos) /*!< 0x00040000 */
  10427. #define FMC_SDTR2_TRP_Pos (20U)
  10428. #define FMC_SDTR2_TRP_Msk (0xFU << FMC_SDTR2_TRP_Pos) /*!< 0x00F00000 */
  10429. #define FMC_SDTR2_TRP FMC_SDTR2_TRP_Msk /*!<TRP[2:0] bits (Row precharge delay) */
  10430. #define FMC_SDTR2_TRP_0 (0x1U << FMC_SDTR2_TRP_Pos) /*!< 0x00100000 */
  10431. #define FMC_SDTR2_TRP_1 (0x2U << FMC_SDTR2_TRP_Pos) /*!< 0x00200000 */
  10432. #define FMC_SDTR2_TRP_2 (0x4U << FMC_SDTR2_TRP_Pos) /*!< 0x00400000 */
  10433. #define FMC_SDTR2_TRCD_Pos (24U)
  10434. #define FMC_SDTR2_TRCD_Msk (0xFU << FMC_SDTR2_TRCD_Pos) /*!< 0x0F000000 */
  10435. #define FMC_SDTR2_TRCD FMC_SDTR2_TRCD_Msk /*!<TRP[2:0] bits (Row to column delay) */
  10436. #define FMC_SDTR2_TRCD_0 (0x1U << FMC_SDTR2_TRCD_Pos) /*!< 0x01000000 */
  10437. #define FMC_SDTR2_TRCD_1 (0x2U << FMC_SDTR2_TRCD_Pos) /*!< 0x02000000 */
  10438. #define FMC_SDTR2_TRCD_2 (0x4U << FMC_SDTR2_TRCD_Pos) /*!< 0x04000000 */
  10439. /****************** Bit definition for FMC_SDCMR register ******************/
  10440. #define FMC_SDCMR_MODE_Pos (0U)
  10441. #define FMC_SDCMR_MODE_Msk (0x7U << FMC_SDCMR_MODE_Pos) /*!< 0x00000007 */
  10442. #define FMC_SDCMR_MODE FMC_SDCMR_MODE_Msk /*!<MODE[2:0] bits (Command mode) */
  10443. #define FMC_SDCMR_MODE_0 (0x1U << FMC_SDCMR_MODE_Pos) /*!< 0x00000001 */
  10444. #define FMC_SDCMR_MODE_1 (0x2U << FMC_SDCMR_MODE_Pos) /*!< 0x00000002 */
  10445. #define FMC_SDCMR_MODE_2 (0x3U << FMC_SDCMR_MODE_Pos) /*!< 0x00000003 */
  10446. #define FMC_SDCMR_CTB2_Pos (3U)
  10447. #define FMC_SDCMR_CTB2_Msk (0x1U << FMC_SDCMR_CTB2_Pos) /*!< 0x00000008 */
  10448. #define FMC_SDCMR_CTB2 FMC_SDCMR_CTB2_Msk /*!<Command target 2 */
  10449. #define FMC_SDCMR_CTB1_Pos (4U)
  10450. #define FMC_SDCMR_CTB1_Msk (0x1U << FMC_SDCMR_CTB1_Pos) /*!< 0x00000010 */
  10451. #define FMC_SDCMR_CTB1 FMC_SDCMR_CTB1_Msk /*!<Command target 1 */
  10452. #define FMC_SDCMR_NRFS_Pos (5U)
  10453. #define FMC_SDCMR_NRFS_Msk (0xFU << FMC_SDCMR_NRFS_Pos) /*!< 0x000001E0 */
  10454. #define FMC_SDCMR_NRFS FMC_SDCMR_NRFS_Msk /*!<NRFS[3:0] bits (Number of auto-refresh) */
  10455. #define FMC_SDCMR_NRFS_0 (0x1U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000020 */
  10456. #define FMC_SDCMR_NRFS_1 (0x2U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000040 */
  10457. #define FMC_SDCMR_NRFS_2 (0x4U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000080 */
  10458. #define FMC_SDCMR_NRFS_3 (0x8U << FMC_SDCMR_NRFS_Pos) /*!< 0x00000100 */
  10459. #define FMC_SDCMR_MRD_Pos (9U)
  10460. #define FMC_SDCMR_MRD_Msk (0x1FFFU << FMC_SDCMR_MRD_Pos) /*!< 0x003FFE00 */
  10461. #define FMC_SDCMR_MRD FMC_SDCMR_MRD_Msk /*!<MRD[12:0] bits (Mode register definition) */
  10462. /****************** Bit definition for FMC_SDRTR register ******************/
  10463. #define FMC_SDRTR_CRE_Pos (0U)
  10464. #define FMC_SDRTR_CRE_Msk (0x1U << FMC_SDRTR_CRE_Pos) /*!< 0x00000001 */
  10465. #define FMC_SDRTR_CRE FMC_SDRTR_CRE_Msk /*!<Clear refresh error flag */
  10466. #define FMC_SDRTR_COUNT_Pos (1U)
  10467. #define FMC_SDRTR_COUNT_Msk (0x1FFFU << FMC_SDRTR_COUNT_Pos) /*!< 0x00003FFE */
  10468. #define FMC_SDRTR_COUNT FMC_SDRTR_COUNT_Msk /*!<COUNT[12:0] bits (Refresh timer count) */
  10469. #define FMC_SDRTR_REIE_Pos (14U)
  10470. #define FMC_SDRTR_REIE_Msk (0x1U << FMC_SDRTR_REIE_Pos) /*!< 0x00004000 */
  10471. #define FMC_SDRTR_REIE FMC_SDRTR_REIE_Msk /*!<RES interupt enable */
  10472. /****************** Bit definition for FMC_SDSR register ******************/
  10473. #define FMC_SDSR_RE_Pos (0U)
  10474. #define FMC_SDSR_RE_Msk (0x1U << FMC_SDSR_RE_Pos) /*!< 0x00000001 */
  10475. #define FMC_SDSR_RE FMC_SDSR_RE_Msk /*!<Refresh error flag */
  10476. #define FMC_SDSR_MODES1_Pos (1U)
  10477. #define FMC_SDSR_MODES1_Msk (0x3U << FMC_SDSR_MODES1_Pos) /*!< 0x00000006 */
  10478. #define FMC_SDSR_MODES1 FMC_SDSR_MODES1_Msk /*!<MODES1[1:0]bits (Status mode for bank 1) */
  10479. #define FMC_SDSR_MODES1_0 (0x1U << FMC_SDSR_MODES1_Pos) /*!< 0x00000002 */
  10480. #define FMC_SDSR_MODES1_1 (0x2U << FMC_SDSR_MODES1_Pos) /*!< 0x00000004 */
  10481. #define FMC_SDSR_MODES2_Pos (3U)
  10482. #define FMC_SDSR_MODES2_Msk (0x3U << FMC_SDSR_MODES2_Pos) /*!< 0x00000018 */
  10483. #define FMC_SDSR_MODES2 FMC_SDSR_MODES2_Msk /*!<MODES2[1:0]bits (Status mode for bank 2) */
  10484. #define FMC_SDSR_MODES2_0 (0x1U << FMC_SDSR_MODES2_Pos) /*!< 0x00000008 */
  10485. #define FMC_SDSR_MODES2_1 (0x2U << FMC_SDSR_MODES2_Pos) /*!< 0x00000010 */
  10486. /******************************************************************************/
  10487. /* */
  10488. /* General Purpose I/O */
  10489. /* */
  10490. /******************************************************************************/
  10491. /****************** Bits definition for GPIO_MODER register *****************/
  10492. #define GPIO_MODER_MODER0_Pos (0U)
  10493. #define GPIO_MODER_MODER0_Msk (0x3U << GPIO_MODER_MODER0_Pos) /*!< 0x00000003 */
  10494. #define GPIO_MODER_MODER0 GPIO_MODER_MODER0_Msk
  10495. #define GPIO_MODER_MODER0_0 (0x1U << GPIO_MODER_MODER0_Pos) /*!< 0x00000001 */
  10496. #define GPIO_MODER_MODER0_1 (0x2U << GPIO_MODER_MODER0_Pos) /*!< 0x00000002 */
  10497. #define GPIO_MODER_MODER1_Pos (2U)
  10498. #define GPIO_MODER_MODER1_Msk (0x3U << GPIO_MODER_MODER1_Pos) /*!< 0x0000000C */
  10499. #define GPIO_MODER_MODER1 GPIO_MODER_MODER1_Msk
  10500. #define GPIO_MODER_MODER1_0 (0x1U << GPIO_MODER_MODER1_Pos) /*!< 0x00000004 */
  10501. #define GPIO_MODER_MODER1_1 (0x2U << GPIO_MODER_MODER1_Pos) /*!< 0x00000008 */
  10502. #define GPIO_MODER_MODER2_Pos (4U)
  10503. #define GPIO_MODER_MODER2_Msk (0x3U << GPIO_MODER_MODER2_Pos) /*!< 0x00000030 */
  10504. #define GPIO_MODER_MODER2 GPIO_MODER_MODER2_Msk
  10505. #define GPIO_MODER_MODER2_0 (0x1U << GPIO_MODER_MODER2_Pos) /*!< 0x00000010 */
  10506. #define GPIO_MODER_MODER2_1 (0x2U << GPIO_MODER_MODER2_Pos) /*!< 0x00000020 */
  10507. #define GPIO_MODER_MODER3_Pos (6U)
  10508. #define GPIO_MODER_MODER3_Msk (0x3U << GPIO_MODER_MODER3_Pos) /*!< 0x000000C0 */
  10509. #define GPIO_MODER_MODER3 GPIO_MODER_MODER3_Msk
  10510. #define GPIO_MODER_MODER3_0 (0x1U << GPIO_MODER_MODER3_Pos) /*!< 0x00000040 */
  10511. #define GPIO_MODER_MODER3_1 (0x2U << GPIO_MODER_MODER3_Pos) /*!< 0x00000080 */
  10512. #define GPIO_MODER_MODER4_Pos (8U)
  10513. #define GPIO_MODER_MODER4_Msk (0x3U << GPIO_MODER_MODER4_Pos) /*!< 0x00000300 */
  10514. #define GPIO_MODER_MODER4 GPIO_MODER_MODER4_Msk
  10515. #define GPIO_MODER_MODER4_0 (0x1U << GPIO_MODER_MODER4_Pos) /*!< 0x00000100 */
  10516. #define GPIO_MODER_MODER4_1 (0x2U << GPIO_MODER_MODER4_Pos) /*!< 0x00000200 */
  10517. #define GPIO_MODER_MODER5_Pos (10U)
  10518. #define GPIO_MODER_MODER5_Msk (0x3U << GPIO_MODER_MODER5_Pos) /*!< 0x00000C00 */
  10519. #define GPIO_MODER_MODER5 GPIO_MODER_MODER5_Msk
  10520. #define GPIO_MODER_MODER5_0 (0x1U << GPIO_MODER_MODER5_Pos) /*!< 0x00000400 */
  10521. #define GPIO_MODER_MODER5_1 (0x2U << GPIO_MODER_MODER5_Pos) /*!< 0x00000800 */
  10522. #define GPIO_MODER_MODER6_Pos (12U)
  10523. #define GPIO_MODER_MODER6_Msk (0x3U << GPIO_MODER_MODER6_Pos) /*!< 0x00003000 */
  10524. #define GPIO_MODER_MODER6 GPIO_MODER_MODER6_Msk
  10525. #define GPIO_MODER_MODER6_0 (0x1U << GPIO_MODER_MODER6_Pos) /*!< 0x00001000 */
  10526. #define GPIO_MODER_MODER6_1 (0x2U << GPIO_MODER_MODER6_Pos) /*!< 0x00002000 */
  10527. #define GPIO_MODER_MODER7_Pos (14U)
  10528. #define GPIO_MODER_MODER7_Msk (0x3U << GPIO_MODER_MODER7_Pos) /*!< 0x0000C000 */
  10529. #define GPIO_MODER_MODER7 GPIO_MODER_MODER7_Msk
  10530. #define GPIO_MODER_MODER7_0 (0x1U << GPIO_MODER_MODER7_Pos) /*!< 0x00004000 */
  10531. #define GPIO_MODER_MODER7_1 (0x2U << GPIO_MODER_MODER7_Pos) /*!< 0x00008000 */
  10532. #define GPIO_MODER_MODER8_Pos (16U)
  10533. #define GPIO_MODER_MODER8_Msk (0x3U << GPIO_MODER_MODER8_Pos) /*!< 0x00030000 */
  10534. #define GPIO_MODER_MODER8 GPIO_MODER_MODER8_Msk
  10535. #define GPIO_MODER_MODER8_0 (0x1U << GPIO_MODER_MODER8_Pos) /*!< 0x00010000 */
  10536. #define GPIO_MODER_MODER8_1 (0x2U << GPIO_MODER_MODER8_Pos) /*!< 0x00020000 */
  10537. #define GPIO_MODER_MODER9_Pos (18U)
  10538. #define GPIO_MODER_MODER9_Msk (0x3U << GPIO_MODER_MODER9_Pos) /*!< 0x000C0000 */
  10539. #define GPIO_MODER_MODER9 GPIO_MODER_MODER9_Msk
  10540. #define GPIO_MODER_MODER9_0 (0x1U << GPIO_MODER_MODER9_Pos) /*!< 0x00040000 */
  10541. #define GPIO_MODER_MODER9_1 (0x2U << GPIO_MODER_MODER9_Pos) /*!< 0x00080000 */
  10542. #define GPIO_MODER_MODER10_Pos (20U)
  10543. #define GPIO_MODER_MODER10_Msk (0x3U << GPIO_MODER_MODER10_Pos) /*!< 0x00300000 */
  10544. #define GPIO_MODER_MODER10 GPIO_MODER_MODER10_Msk
  10545. #define GPIO_MODER_MODER10_0 (0x1U << GPIO_MODER_MODER10_Pos) /*!< 0x00100000 */
  10546. #define GPIO_MODER_MODER10_1 (0x2U << GPIO_MODER_MODER10_Pos) /*!< 0x00200000 */
  10547. #define GPIO_MODER_MODER11_Pos (22U)
  10548. #define GPIO_MODER_MODER11_Msk (0x3U << GPIO_MODER_MODER11_Pos) /*!< 0x00C00000 */
  10549. #define GPIO_MODER_MODER11 GPIO_MODER_MODER11_Msk
  10550. #define GPIO_MODER_MODER11_0 (0x1U << GPIO_MODER_MODER11_Pos) /*!< 0x00400000 */
  10551. #define GPIO_MODER_MODER11_1 (0x2U << GPIO_MODER_MODER11_Pos) /*!< 0x00800000 */
  10552. #define GPIO_MODER_MODER12_Pos (24U)
  10553. #define GPIO_MODER_MODER12_Msk (0x3U << GPIO_MODER_MODER12_Pos) /*!< 0x03000000 */
  10554. #define GPIO_MODER_MODER12 GPIO_MODER_MODER12_Msk
  10555. #define GPIO_MODER_MODER12_0 (0x1U << GPIO_MODER_MODER12_Pos) /*!< 0x01000000 */
  10556. #define GPIO_MODER_MODER12_1 (0x2U << GPIO_MODER_MODER12_Pos) /*!< 0x02000000 */
  10557. #define GPIO_MODER_MODER13_Pos (26U)
  10558. #define GPIO_MODER_MODER13_Msk (0x3U << GPIO_MODER_MODER13_Pos) /*!< 0x0C000000 */
  10559. #define GPIO_MODER_MODER13 GPIO_MODER_MODER13_Msk
  10560. #define GPIO_MODER_MODER13_0 (0x1U << GPIO_MODER_MODER13_Pos) /*!< 0x04000000 */
  10561. #define GPIO_MODER_MODER13_1 (0x2U << GPIO_MODER_MODER13_Pos) /*!< 0x08000000 */
  10562. #define GPIO_MODER_MODER14_Pos (28U)
  10563. #define GPIO_MODER_MODER14_Msk (0x3U << GPIO_MODER_MODER14_Pos) /*!< 0x30000000 */
  10564. #define GPIO_MODER_MODER14 GPIO_MODER_MODER14_Msk
  10565. #define GPIO_MODER_MODER14_0 (0x1U << GPIO_MODER_MODER14_Pos) /*!< 0x10000000 */
  10566. #define GPIO_MODER_MODER14_1 (0x2U << GPIO_MODER_MODER14_Pos) /*!< 0x20000000 */
  10567. #define GPIO_MODER_MODER15_Pos (30U)
  10568. #define GPIO_MODER_MODER15_Msk (0x3U << GPIO_MODER_MODER15_Pos) /*!< 0xC0000000 */
  10569. #define GPIO_MODER_MODER15 GPIO_MODER_MODER15_Msk
  10570. #define GPIO_MODER_MODER15_0 (0x1U << GPIO_MODER_MODER15_Pos) /*!< 0x40000000 */
  10571. #define GPIO_MODER_MODER15_1 (0x2U << GPIO_MODER_MODER15_Pos) /*!< 0x80000000 */
  10572. /****************** Bits definition for GPIO_OTYPER register ****************/
  10573. #define GPIO_OTYPER_OT_0 ((uint32_t)0x00000001)
  10574. #define GPIO_OTYPER_OT_1 ((uint32_t)0x00000002)
  10575. #define GPIO_OTYPER_OT_2 ((uint32_t)0x00000004)
  10576. #define GPIO_OTYPER_OT_3 ((uint32_t)0x00000008)
  10577. #define GPIO_OTYPER_OT_4 ((uint32_t)0x00000010)
  10578. #define GPIO_OTYPER_OT_5 ((uint32_t)0x00000020)
  10579. #define GPIO_OTYPER_OT_6 ((uint32_t)0x00000040)
  10580. #define GPIO_OTYPER_OT_7 ((uint32_t)0x00000080)
  10581. #define GPIO_OTYPER_OT_8 ((uint32_t)0x00000100)
  10582. #define GPIO_OTYPER_OT_9 ((uint32_t)0x00000200)
  10583. #define GPIO_OTYPER_OT_10 ((uint32_t)0x00000400)
  10584. #define GPIO_OTYPER_OT_11 ((uint32_t)0x00000800)
  10585. #define GPIO_OTYPER_OT_12 ((uint32_t)0x00001000)
  10586. #define GPIO_OTYPER_OT_13 ((uint32_t)0x00002000)
  10587. #define GPIO_OTYPER_OT_14 ((uint32_t)0x00004000)
  10588. #define GPIO_OTYPER_OT_15 ((uint32_t)0x00008000)
  10589. /****************** Bits definition for GPIO_OSPEEDR register ***************/
  10590. #define GPIO_OSPEEDER_OSPEEDR0_Pos (0U)
  10591. #define GPIO_OSPEEDER_OSPEEDR0_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000003 */
  10592. #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDER_OSPEEDR0_Msk
  10593. #define GPIO_OSPEEDER_OSPEEDR0_0 (0x1U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000001 */
  10594. #define GPIO_OSPEEDER_OSPEEDR0_1 (0x2U << GPIO_OSPEEDER_OSPEEDR0_Pos) /*!< 0x00000002 */
  10595. #define GPIO_OSPEEDER_OSPEEDR1_Pos (2U)
  10596. #define GPIO_OSPEEDER_OSPEEDR1_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x0000000C */
  10597. #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDER_OSPEEDR1_Msk
  10598. #define GPIO_OSPEEDER_OSPEEDR1_0 (0x1U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000004 */
  10599. #define GPIO_OSPEEDER_OSPEEDR1_1 (0x2U << GPIO_OSPEEDER_OSPEEDR1_Pos) /*!< 0x00000008 */
  10600. #define GPIO_OSPEEDER_OSPEEDR2_Pos (4U)
  10601. #define GPIO_OSPEEDER_OSPEEDR2_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000030 */
  10602. #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDER_OSPEEDR2_Msk
  10603. #define GPIO_OSPEEDER_OSPEEDR2_0 (0x1U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000010 */
  10604. #define GPIO_OSPEEDER_OSPEEDR2_1 (0x2U << GPIO_OSPEEDER_OSPEEDR2_Pos) /*!< 0x00000020 */
  10605. #define GPIO_OSPEEDER_OSPEEDR3_Pos (6U)
  10606. #define GPIO_OSPEEDER_OSPEEDR3_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x000000C0 */
  10607. #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDER_OSPEEDR3_Msk
  10608. #define GPIO_OSPEEDER_OSPEEDR3_0 (0x1U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000040 */
  10609. #define GPIO_OSPEEDER_OSPEEDR3_1 (0x2U << GPIO_OSPEEDER_OSPEEDR3_Pos) /*!< 0x00000080 */
  10610. #define GPIO_OSPEEDER_OSPEEDR4_Pos (8U)
  10611. #define GPIO_OSPEEDER_OSPEEDR4_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000300 */
  10612. #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDER_OSPEEDR4_Msk
  10613. #define GPIO_OSPEEDER_OSPEEDR4_0 (0x1U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000100 */
  10614. #define GPIO_OSPEEDER_OSPEEDR4_1 (0x2U << GPIO_OSPEEDER_OSPEEDR4_Pos) /*!< 0x00000200 */
  10615. #define GPIO_OSPEEDER_OSPEEDR5_Pos (10U)
  10616. #define GPIO_OSPEEDER_OSPEEDR5_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000C00 */
  10617. #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDER_OSPEEDR5_Msk
  10618. #define GPIO_OSPEEDER_OSPEEDR5_0 (0x1U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000400 */
  10619. #define GPIO_OSPEEDER_OSPEEDR5_1 (0x2U << GPIO_OSPEEDER_OSPEEDR5_Pos) /*!< 0x00000800 */
  10620. #define GPIO_OSPEEDER_OSPEEDR6_Pos (12U)
  10621. #define GPIO_OSPEEDER_OSPEEDR6_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00003000 */
  10622. #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDER_OSPEEDR6_Msk
  10623. #define GPIO_OSPEEDER_OSPEEDR6_0 (0x1U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00001000 */
  10624. #define GPIO_OSPEEDER_OSPEEDR6_1 (0x2U << GPIO_OSPEEDER_OSPEEDR6_Pos) /*!< 0x00002000 */
  10625. #define GPIO_OSPEEDER_OSPEEDR7_Pos (14U)
  10626. #define GPIO_OSPEEDER_OSPEEDR7_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x0000C000 */
  10627. #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDER_OSPEEDR7_Msk
  10628. #define GPIO_OSPEEDER_OSPEEDR7_0 (0x1U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00004000 */
  10629. #define GPIO_OSPEEDER_OSPEEDR7_1 (0x2U << GPIO_OSPEEDER_OSPEEDR7_Pos) /*!< 0x00008000 */
  10630. #define GPIO_OSPEEDER_OSPEEDR8_Pos (16U)
  10631. #define GPIO_OSPEEDER_OSPEEDR8_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00030000 */
  10632. #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDER_OSPEEDR8_Msk
  10633. #define GPIO_OSPEEDER_OSPEEDR8_0 (0x1U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00010000 */
  10634. #define GPIO_OSPEEDER_OSPEEDR8_1 (0x2U << GPIO_OSPEEDER_OSPEEDR8_Pos) /*!< 0x00020000 */
  10635. #define GPIO_OSPEEDER_OSPEEDR9_Pos (18U)
  10636. #define GPIO_OSPEEDER_OSPEEDR9_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x000C0000 */
  10637. #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDER_OSPEEDR9_Msk
  10638. #define GPIO_OSPEEDER_OSPEEDR9_0 (0x1U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00040000 */
  10639. #define GPIO_OSPEEDER_OSPEEDR9_1 (0x2U << GPIO_OSPEEDER_OSPEEDR9_Pos) /*!< 0x00080000 */
  10640. #define GPIO_OSPEEDER_OSPEEDR10_Pos (20U)
  10641. #define GPIO_OSPEEDER_OSPEEDR10_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00300000 */
  10642. #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDER_OSPEEDR10_Msk
  10643. #define GPIO_OSPEEDER_OSPEEDR10_0 (0x1U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00100000 */
  10644. #define GPIO_OSPEEDER_OSPEEDR10_1 (0x2U << GPIO_OSPEEDER_OSPEEDR10_Pos) /*!< 0x00200000 */
  10645. #define GPIO_OSPEEDER_OSPEEDR11_Pos (22U)
  10646. #define GPIO_OSPEEDER_OSPEEDR11_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00C00000 */
  10647. #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDER_OSPEEDR11_Msk
  10648. #define GPIO_OSPEEDER_OSPEEDR11_0 (0x1U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00400000 */
  10649. #define GPIO_OSPEEDER_OSPEEDR11_1 (0x2U << GPIO_OSPEEDER_OSPEEDR11_Pos) /*!< 0x00800000 */
  10650. #define GPIO_OSPEEDER_OSPEEDR12_Pos (24U)
  10651. #define GPIO_OSPEEDER_OSPEEDR12_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x03000000 */
  10652. #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDER_OSPEEDR12_Msk
  10653. #define GPIO_OSPEEDER_OSPEEDR12_0 (0x1U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x01000000 */
  10654. #define GPIO_OSPEEDER_OSPEEDR12_1 (0x2U << GPIO_OSPEEDER_OSPEEDR12_Pos) /*!< 0x02000000 */
  10655. #define GPIO_OSPEEDER_OSPEEDR13_Pos (26U)
  10656. #define GPIO_OSPEEDER_OSPEEDR13_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x0C000000 */
  10657. #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDER_OSPEEDR13_Msk
  10658. #define GPIO_OSPEEDER_OSPEEDR13_0 (0x1U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x04000000 */
  10659. #define GPIO_OSPEEDER_OSPEEDR13_1 (0x2U << GPIO_OSPEEDER_OSPEEDR13_Pos) /*!< 0x08000000 */
  10660. #define GPIO_OSPEEDER_OSPEEDR14_Pos (28U)
  10661. #define GPIO_OSPEEDER_OSPEEDR14_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x30000000 */
  10662. #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDER_OSPEEDR14_Msk
  10663. #define GPIO_OSPEEDER_OSPEEDR14_0 (0x1U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x10000000 */
  10664. #define GPIO_OSPEEDER_OSPEEDR14_1 (0x2U << GPIO_OSPEEDER_OSPEEDR14_Pos) /*!< 0x20000000 */
  10665. #define GPIO_OSPEEDER_OSPEEDR15_Pos (30U)
  10666. #define GPIO_OSPEEDER_OSPEEDR15_Msk (0x3U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0xC0000000 */
  10667. #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDER_OSPEEDR15_Msk
  10668. #define GPIO_OSPEEDER_OSPEEDR15_0 (0x1U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x40000000 */
  10669. #define GPIO_OSPEEDER_OSPEEDR15_1 (0x2U << GPIO_OSPEEDER_OSPEEDR15_Pos) /*!< 0x80000000 */
  10670. /****************** Bits definition for GPIO_PUPDR register *****************/
  10671. #define GPIO_PUPDR_PUPDR0_Pos (0U)
  10672. #define GPIO_PUPDR_PUPDR0_Msk (0x3U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000003 */
  10673. #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPDR0_Msk
  10674. #define GPIO_PUPDR_PUPDR0_0 (0x1U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000001 */
  10675. #define GPIO_PUPDR_PUPDR0_1 (0x2U << GPIO_PUPDR_PUPDR0_Pos) /*!< 0x00000002 */
  10676. #define GPIO_PUPDR_PUPDR1_Pos (2U)
  10677. #define GPIO_PUPDR_PUPDR1_Msk (0x3U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x0000000C */
  10678. #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPDR1_Msk
  10679. #define GPIO_PUPDR_PUPDR1_0 (0x1U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000004 */
  10680. #define GPIO_PUPDR_PUPDR1_1 (0x2U << GPIO_PUPDR_PUPDR1_Pos) /*!< 0x00000008 */
  10681. #define GPIO_PUPDR_PUPDR2_Pos (4U)
  10682. #define GPIO_PUPDR_PUPDR2_Msk (0x3U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000030 */
  10683. #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPDR2_Msk
  10684. #define GPIO_PUPDR_PUPDR2_0 (0x1U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000010 */
  10685. #define GPIO_PUPDR_PUPDR2_1 (0x2U << GPIO_PUPDR_PUPDR2_Pos) /*!< 0x00000020 */
  10686. #define GPIO_PUPDR_PUPDR3_Pos (6U)
  10687. #define GPIO_PUPDR_PUPDR3_Msk (0x3U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x000000C0 */
  10688. #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPDR3_Msk
  10689. #define GPIO_PUPDR_PUPDR3_0 (0x1U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000040 */
  10690. #define GPIO_PUPDR_PUPDR3_1 (0x2U << GPIO_PUPDR_PUPDR3_Pos) /*!< 0x00000080 */
  10691. #define GPIO_PUPDR_PUPDR4_Pos (8U)
  10692. #define GPIO_PUPDR_PUPDR4_Msk (0x3U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000300 */
  10693. #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPDR4_Msk
  10694. #define GPIO_PUPDR_PUPDR4_0 (0x1U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000100 */
  10695. #define GPIO_PUPDR_PUPDR4_1 (0x2U << GPIO_PUPDR_PUPDR4_Pos) /*!< 0x00000200 */
  10696. #define GPIO_PUPDR_PUPDR5_Pos (10U)
  10697. #define GPIO_PUPDR_PUPDR5_Msk (0x3U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000C00 */
  10698. #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPDR5_Msk
  10699. #define GPIO_PUPDR_PUPDR5_0 (0x1U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000400 */
  10700. #define GPIO_PUPDR_PUPDR5_1 (0x2U << GPIO_PUPDR_PUPDR5_Pos) /*!< 0x00000800 */
  10701. #define GPIO_PUPDR_PUPDR6_Pos (12U)
  10702. #define GPIO_PUPDR_PUPDR6_Msk (0x3U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00003000 */
  10703. #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPDR6_Msk
  10704. #define GPIO_PUPDR_PUPDR6_0 (0x1U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00001000 */
  10705. #define GPIO_PUPDR_PUPDR6_1 (0x2U << GPIO_PUPDR_PUPDR6_Pos) /*!< 0x00002000 */
  10706. #define GPIO_PUPDR_PUPDR7_Pos (14U)
  10707. #define GPIO_PUPDR_PUPDR7_Msk (0x3U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x0000C000 */
  10708. #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPDR7_Msk
  10709. #define GPIO_PUPDR_PUPDR7_0 (0x1U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00004000 */
  10710. #define GPIO_PUPDR_PUPDR7_1 (0x2U << GPIO_PUPDR_PUPDR7_Pos) /*!< 0x00008000 */
  10711. #define GPIO_PUPDR_PUPDR8_Pos (16U)
  10712. #define GPIO_PUPDR_PUPDR8_Msk (0x3U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00030000 */
  10713. #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPDR8_Msk
  10714. #define GPIO_PUPDR_PUPDR8_0 (0x1U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00010000 */
  10715. #define GPIO_PUPDR_PUPDR8_1 (0x2U << GPIO_PUPDR_PUPDR8_Pos) /*!< 0x00020000 */
  10716. #define GPIO_PUPDR_PUPDR9_Pos (18U)
  10717. #define GPIO_PUPDR_PUPDR9_Msk (0x3U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x000C0000 */
  10718. #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPDR9_Msk
  10719. #define GPIO_PUPDR_PUPDR9_0 (0x1U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00040000 */
  10720. #define GPIO_PUPDR_PUPDR9_1 (0x2U << GPIO_PUPDR_PUPDR9_Pos) /*!< 0x00080000 */
  10721. #define GPIO_PUPDR_PUPDR10_Pos (20U)
  10722. #define GPIO_PUPDR_PUPDR10_Msk (0x3U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00300000 */
  10723. #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPDR10_Msk
  10724. #define GPIO_PUPDR_PUPDR10_0 (0x1U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00100000 */
  10725. #define GPIO_PUPDR_PUPDR10_1 (0x2U << GPIO_PUPDR_PUPDR10_Pos) /*!< 0x00200000 */
  10726. #define GPIO_PUPDR_PUPDR11_Pos (22U)
  10727. #define GPIO_PUPDR_PUPDR11_Msk (0x3U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00C00000 */
  10728. #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPDR11_Msk
  10729. #define GPIO_PUPDR_PUPDR11_0 (0x1U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00400000 */
  10730. #define GPIO_PUPDR_PUPDR11_1 (0x2U << GPIO_PUPDR_PUPDR11_Pos) /*!< 0x00800000 */
  10731. #define GPIO_PUPDR_PUPDR12_Pos (24U)
  10732. #define GPIO_PUPDR_PUPDR12_Msk (0x3U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x03000000 */
  10733. #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPDR12_Msk
  10734. #define GPIO_PUPDR_PUPDR12_0 (0x1U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x01000000 */
  10735. #define GPIO_PUPDR_PUPDR12_1 (0x2U << GPIO_PUPDR_PUPDR12_Pos) /*!< 0x02000000 */
  10736. #define GPIO_PUPDR_PUPDR13_Pos (26U)
  10737. #define GPIO_PUPDR_PUPDR13_Msk (0x3U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x0C000000 */
  10738. #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPDR13_Msk
  10739. #define GPIO_PUPDR_PUPDR13_0 (0x1U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x04000000 */
  10740. #define GPIO_PUPDR_PUPDR13_1 (0x2U << GPIO_PUPDR_PUPDR13_Pos) /*!< 0x08000000 */
  10741. #define GPIO_PUPDR_PUPDR14_Pos (28U)
  10742. #define GPIO_PUPDR_PUPDR14_Msk (0x3U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x30000000 */
  10743. #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPDR14_Msk
  10744. #define GPIO_PUPDR_PUPDR14_0 (0x1U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x10000000 */
  10745. #define GPIO_PUPDR_PUPDR14_1 (0x2U << GPIO_PUPDR_PUPDR14_Pos) /*!< 0x20000000 */
  10746. #define GPIO_PUPDR_PUPDR15_Pos (30U)
  10747. #define GPIO_PUPDR_PUPDR15_Msk (0x3U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0xC0000000 */
  10748. #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPDR15_Msk
  10749. #define GPIO_PUPDR_PUPDR15_0 (0x1U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x40000000 */
  10750. #define GPIO_PUPDR_PUPDR15_1 (0x2U << GPIO_PUPDR_PUPDR15_Pos) /*!< 0x80000000 */
  10751. /****************** Bits definition for GPIO_IDR register *******************/
  10752. #define GPIO_IDR_IDR_0 ((uint32_t)0x00000001)
  10753. #define GPIO_IDR_IDR_1 ((uint32_t)0x00000002)
  10754. #define GPIO_IDR_IDR_2 ((uint32_t)0x00000004)
  10755. #define GPIO_IDR_IDR_3 ((uint32_t)0x00000008)
  10756. #define GPIO_IDR_IDR_4 ((uint32_t)0x00000010)
  10757. #define GPIO_IDR_IDR_5 ((uint32_t)0x00000020)
  10758. #define GPIO_IDR_IDR_6 ((uint32_t)0x00000040)
  10759. #define GPIO_IDR_IDR_7 ((uint32_t)0x00000080)
  10760. #define GPIO_IDR_IDR_8 ((uint32_t)0x00000100)
  10761. #define GPIO_IDR_IDR_9 ((uint32_t)0x00000200)
  10762. #define GPIO_IDR_IDR_10 ((uint32_t)0x00000400)
  10763. #define GPIO_IDR_IDR_11 ((uint32_t)0x00000800)
  10764. #define GPIO_IDR_IDR_12 ((uint32_t)0x00001000)
  10765. #define GPIO_IDR_IDR_13 ((uint32_t)0x00002000)
  10766. #define GPIO_IDR_IDR_14 ((uint32_t)0x00004000)
  10767. #define GPIO_IDR_IDR_15 ((uint32_t)0x00008000)
  10768. /* Old GPIO_IDR register bits definition, maintained for legacy purpose */
  10769. #define GPIO_OTYPER_IDR_0 GPIO_IDR_IDR_0
  10770. #define GPIO_OTYPER_IDR_1 GPIO_IDR_IDR_1
  10771. #define GPIO_OTYPER_IDR_2 GPIO_IDR_IDR_2
  10772. #define GPIO_OTYPER_IDR_3 GPIO_IDR_IDR_3
  10773. #define GPIO_OTYPER_IDR_4 GPIO_IDR_IDR_4
  10774. #define GPIO_OTYPER_IDR_5 GPIO_IDR_IDR_5
  10775. #define GPIO_OTYPER_IDR_6 GPIO_IDR_IDR_6
  10776. #define GPIO_OTYPER_IDR_7 GPIO_IDR_IDR_7
  10777. #define GPIO_OTYPER_IDR_8 GPIO_IDR_IDR_8
  10778. #define GPIO_OTYPER_IDR_9 GPIO_IDR_IDR_9
  10779. #define GPIO_OTYPER_IDR_10 GPIO_IDR_IDR_10
  10780. #define GPIO_OTYPER_IDR_11 GPIO_IDR_IDR_11
  10781. #define GPIO_OTYPER_IDR_12 GPIO_IDR_IDR_12
  10782. #define GPIO_OTYPER_IDR_13 GPIO_IDR_IDR_13
  10783. #define GPIO_OTYPER_IDR_14 GPIO_IDR_IDR_14
  10784. #define GPIO_OTYPER_IDR_15 GPIO_IDR_IDR_15
  10785. /****************** Bits definition for GPIO_ODR register *******************/
  10786. #define GPIO_ODR_ODR_0 ((uint32_t)0x00000001)
  10787. #define GPIO_ODR_ODR_1 ((uint32_t)0x00000002)
  10788. #define GPIO_ODR_ODR_2 ((uint32_t)0x00000004)
  10789. #define GPIO_ODR_ODR_3 ((uint32_t)0x00000008)
  10790. #define GPIO_ODR_ODR_4 ((uint32_t)0x00000010)
  10791. #define GPIO_ODR_ODR_5 ((uint32_t)0x00000020)
  10792. #define GPIO_ODR_ODR_6 ((uint32_t)0x00000040)
  10793. #define GPIO_ODR_ODR_7 ((uint32_t)0x00000080)
  10794. #define GPIO_ODR_ODR_8 ((uint32_t)0x00000100)
  10795. #define GPIO_ODR_ODR_9 ((uint32_t)0x00000200)
  10796. #define GPIO_ODR_ODR_10 ((uint32_t)0x00000400)
  10797. #define GPIO_ODR_ODR_11 ((uint32_t)0x00000800)
  10798. #define GPIO_ODR_ODR_12 ((uint32_t)0x00001000)
  10799. #define GPIO_ODR_ODR_13 ((uint32_t)0x00002000)
  10800. #define GPIO_ODR_ODR_14 ((uint32_t)0x00004000)
  10801. #define GPIO_ODR_ODR_15 ((uint32_t)0x00008000)
  10802. /* Old GPIO_ODR register bits definition, maintained for legacy purpose */
  10803. #define GPIO_OTYPER_ODR_0 GPIO_ODR_ODR_0
  10804. #define GPIO_OTYPER_ODR_1 GPIO_ODR_ODR_1
  10805. #define GPIO_OTYPER_ODR_2 GPIO_ODR_ODR_2
  10806. #define GPIO_OTYPER_ODR_3 GPIO_ODR_ODR_3
  10807. #define GPIO_OTYPER_ODR_4 GPIO_ODR_ODR_4
  10808. #define GPIO_OTYPER_ODR_5 GPIO_ODR_ODR_5
  10809. #define GPIO_OTYPER_ODR_6 GPIO_ODR_ODR_6
  10810. #define GPIO_OTYPER_ODR_7 GPIO_ODR_ODR_7
  10811. #define GPIO_OTYPER_ODR_8 GPIO_ODR_ODR_8
  10812. #define GPIO_OTYPER_ODR_9 GPIO_ODR_ODR_9
  10813. #define GPIO_OTYPER_ODR_10 GPIO_ODR_ODR_10
  10814. #define GPIO_OTYPER_ODR_11 GPIO_ODR_ODR_11
  10815. #define GPIO_OTYPER_ODR_12 GPIO_ODR_ODR_12
  10816. #define GPIO_OTYPER_ODR_13 GPIO_ODR_ODR_13
  10817. #define GPIO_OTYPER_ODR_14 GPIO_ODR_ODR_14
  10818. #define GPIO_OTYPER_ODR_15 GPIO_ODR_ODR_15
  10819. /****************** Bits definition for GPIO_BSRR register ******************/
  10820. #define GPIO_BSRR_BS_0 ((uint32_t)0x00000001)
  10821. #define GPIO_BSRR_BS_1 ((uint32_t)0x00000002)
  10822. #define GPIO_BSRR_BS_2 ((uint32_t)0x00000004)
  10823. #define GPIO_BSRR_BS_3 ((uint32_t)0x00000008)
  10824. #define GPIO_BSRR_BS_4 ((uint32_t)0x00000010)
  10825. #define GPIO_BSRR_BS_5 ((uint32_t)0x00000020)
  10826. #define GPIO_BSRR_BS_6 ((uint32_t)0x00000040)
  10827. #define GPIO_BSRR_BS_7 ((uint32_t)0x00000080)
  10828. #define GPIO_BSRR_BS_8 ((uint32_t)0x00000100)
  10829. #define GPIO_BSRR_BS_9 ((uint32_t)0x00000200)
  10830. #define GPIO_BSRR_BS_10 ((uint32_t)0x00000400)
  10831. #define GPIO_BSRR_BS_11 ((uint32_t)0x00000800)
  10832. #define GPIO_BSRR_BS_12 ((uint32_t)0x00001000)
  10833. #define GPIO_BSRR_BS_13 ((uint32_t)0x00002000)
  10834. #define GPIO_BSRR_BS_14 ((uint32_t)0x00004000)
  10835. #define GPIO_BSRR_BS_15 ((uint32_t)0x00008000)
  10836. #define GPIO_BSRR_BR_0 ((uint32_t)0x00010000)
  10837. #define GPIO_BSRR_BR_1 ((uint32_t)0x00020000)
  10838. #define GPIO_BSRR_BR_2 ((uint32_t)0x00040000)
  10839. #define GPIO_BSRR_BR_3 ((uint32_t)0x00080000)
  10840. #define GPIO_BSRR_BR_4 ((uint32_t)0x00100000)
  10841. #define GPIO_BSRR_BR_5 ((uint32_t)0x00200000)
  10842. #define GPIO_BSRR_BR_6 ((uint32_t)0x00400000)
  10843. #define GPIO_BSRR_BR_7 ((uint32_t)0x00800000)
  10844. #define GPIO_BSRR_BR_8 ((uint32_t)0x01000000)
  10845. #define GPIO_BSRR_BR_9 ((uint32_t)0x02000000)
  10846. #define GPIO_BSRR_BR_10 ((uint32_t)0x04000000)
  10847. #define GPIO_BSRR_BR_11 ((uint32_t)0x08000000)
  10848. #define GPIO_BSRR_BR_12 ((uint32_t)0x10000000)
  10849. #define GPIO_BSRR_BR_13 ((uint32_t)0x20000000)
  10850. #define GPIO_BSRR_BR_14 ((uint32_t)0x40000000)
  10851. #define GPIO_BSRR_BR_15 ((uint32_t)0x80000000)
  10852. /****************** Bit definition for GPIO_LCKR register *********************/
  10853. #define GPIO_LCKR_LCK0_Pos (0U)
  10854. #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */
  10855. #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk
  10856. #define GPIO_LCKR_LCK1_Pos (1U)
  10857. #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */
  10858. #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk
  10859. #define GPIO_LCKR_LCK2_Pos (2U)
  10860. #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */
  10861. #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk
  10862. #define GPIO_LCKR_LCK3_Pos (3U)
  10863. #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */
  10864. #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk
  10865. #define GPIO_LCKR_LCK4_Pos (4U)
  10866. #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */
  10867. #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk
  10868. #define GPIO_LCKR_LCK5_Pos (5U)
  10869. #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */
  10870. #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk
  10871. #define GPIO_LCKR_LCK6_Pos (6U)
  10872. #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */
  10873. #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk
  10874. #define GPIO_LCKR_LCK7_Pos (7U)
  10875. #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */
  10876. #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk
  10877. #define GPIO_LCKR_LCK8_Pos (8U)
  10878. #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */
  10879. #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk
  10880. #define GPIO_LCKR_LCK9_Pos (9U)
  10881. #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */
  10882. #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk
  10883. #define GPIO_LCKR_LCK10_Pos (10U)
  10884. #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */
  10885. #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk
  10886. #define GPIO_LCKR_LCK11_Pos (11U)
  10887. #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */
  10888. #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk
  10889. #define GPIO_LCKR_LCK12_Pos (12U)
  10890. #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */
  10891. #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk
  10892. #define GPIO_LCKR_LCK13_Pos (13U)
  10893. #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */
  10894. #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk
  10895. #define GPIO_LCKR_LCK14_Pos (14U)
  10896. #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */
  10897. #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk
  10898. #define GPIO_LCKR_LCK15_Pos (15U)
  10899. #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */
  10900. #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk
  10901. #define GPIO_LCKR_LCKK_Pos (16U)
  10902. #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */
  10903. #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk
  10904. /****************** Bit definition for GPIO_AFRL register ********************/
  10905. #define GPIO_AFRL_AFRL0_Pos (0U)
  10906. #define GPIO_AFRL_AFRL0_Msk (0xFU << GPIO_AFRL_AFRL0_Pos) /*!< 0x0000000F */
  10907. #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFRL0_Msk
  10908. #define GPIO_AFRL_AFRL1_Pos (4U)
  10909. #define GPIO_AFRL_AFRL1_Msk (0xFU << GPIO_AFRL_AFRL1_Pos) /*!< 0x000000F0 */
  10910. #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFRL1_Msk
  10911. #define GPIO_AFRL_AFRL2_Pos (8U)
  10912. #define GPIO_AFRL_AFRL2_Msk (0xFU << GPIO_AFRL_AFRL2_Pos) /*!< 0x00000F00 */
  10913. #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFRL2_Msk
  10914. #define GPIO_AFRL_AFRL3_Pos (12U)
  10915. #define GPIO_AFRL_AFRL3_Msk (0xFU << GPIO_AFRL_AFRL3_Pos) /*!< 0x0000F000 */
  10916. #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFRL3_Msk
  10917. #define GPIO_AFRL_AFRL4_Pos (16U)
  10918. #define GPIO_AFRL_AFRL4_Msk (0xFU << GPIO_AFRL_AFRL4_Pos) /*!< 0x000F0000 */
  10919. #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFRL4_Msk
  10920. #define GPIO_AFRL_AFRL5_Pos (20U)
  10921. #define GPIO_AFRL_AFRL5_Msk (0xFU << GPIO_AFRL_AFRL5_Pos) /*!< 0x00F00000 */
  10922. #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFRL5_Msk
  10923. #define GPIO_AFRL_AFRL6_Pos (24U)
  10924. #define GPIO_AFRL_AFRL6_Msk (0xFU << GPIO_AFRL_AFRL6_Pos) /*!< 0x0F000000 */
  10925. #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFRL6_Msk
  10926. #define GPIO_AFRL_AFRL7_Pos (28U)
  10927. #define GPIO_AFRL_AFRL7_Msk (0xFU << GPIO_AFRL_AFRL7_Pos) /*!< 0xF0000000 */
  10928. #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFRL7_Msk
  10929. /****************** Bit definition for GPIO_AFRH register ********************/
  10930. #define GPIO_AFRH_AFRH0_Pos (0U)
  10931. #define GPIO_AFRH_AFRH0_Msk (0xFU << GPIO_AFRH_AFRH0_Pos) /*!< 0x0000000F */
  10932. #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFRH0_Msk
  10933. #define GPIO_AFRH_AFRH1_Pos (4U)
  10934. #define GPIO_AFRH_AFRH1_Msk (0xFU << GPIO_AFRH_AFRH1_Pos) /*!< 0x000000F0 */
  10935. #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFRH1_Msk
  10936. #define GPIO_AFRH_AFRH2_Pos (8U)
  10937. #define GPIO_AFRH_AFRH2_Msk (0xFU << GPIO_AFRH_AFRH2_Pos) /*!< 0x00000F00 */
  10938. #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFRH2_Msk
  10939. #define GPIO_AFRH_AFRH3_Pos (12U)
  10940. #define GPIO_AFRH_AFRH3_Msk (0xFU << GPIO_AFRH_AFRH3_Pos) /*!< 0x0000F000 */
  10941. #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFRH3_Msk
  10942. #define GPIO_AFRH_AFRH4_Pos (16U)
  10943. #define GPIO_AFRH_AFRH4_Msk (0xFU << GPIO_AFRH_AFRH4_Pos) /*!< 0x000F0000 */
  10944. #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFRH4_Msk
  10945. #define GPIO_AFRH_AFRH5_Pos (20U)
  10946. #define GPIO_AFRH_AFRH5_Msk (0xFU << GPIO_AFRH_AFRH5_Pos) /*!< 0x00F00000 */
  10947. #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFRH5_Msk
  10948. #define GPIO_AFRH_AFRH6_Pos (24U)
  10949. #define GPIO_AFRH_AFRH6_Msk (0xFU << GPIO_AFRH_AFRH6_Pos) /*!< 0x0F000000 */
  10950. #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFRH6_Msk
  10951. #define GPIO_AFRH_AFRH7_Pos (28U)
  10952. #define GPIO_AFRH_AFRH7_Msk (0xFU << GPIO_AFRH_AFRH7_Pos) /*!< 0xF0000000 */
  10953. #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFRH7_Msk
  10954. /******************************************************************************/
  10955. /* */
  10956. /* HSEM HW Semaphore */
  10957. /* */
  10958. /******************************************************************************/
  10959. /******************** Bit definition for HSEM_R register ********************/
  10960. #define HSEM_R_PROCID_Pos (0U)
  10961. #define HSEM_R_PROCID_Msk (0xFFU << HSEM_R_PROCID_Pos) /*!< 0x000000FF */
  10962. #define HSEM_R_PROCID HSEM_R_PROCID_Msk /*!<Semaphore ProcessID */
  10963. #define HSEM_R_MASTERID_Pos (8U)
  10964. #define HSEM_R_MASTERID_Msk (0xFFU << HSEM_R_MASTERID_Pos) /*!< 0x0000FF00 */
  10965. #define HSEM_R_MASTERID HSEM_R_MASTERID_Msk /*!<Semaphore MasterID. */
  10966. #define HSEM_R_LOCK_Pos (31U)
  10967. #define HSEM_R_LOCK_Msk (0x1U << HSEM_R_LOCK_Pos) /*!< 0x80000000 */
  10968. #define HSEM_R_LOCK HSEM_R_LOCK_Msk /*!<Lock indication. */
  10969. /******************** Bit definition for HSEM_RLR register ******************/
  10970. #define HSEM_RLR_PROCID_Pos (0U)
  10971. #define HSEM_RLR_PROCID_Msk (0xFFU << HSEM_RLR_PROCID_Pos) /*!< 0x000000FF */
  10972. #define HSEM_RLR_PROCID HSEM_RLR_PROCID_Msk /*!<Semaphore ProcessID */
  10973. #define HSEM_RLR_MASTERID_Pos (8U)
  10974. #define HSEM_RLR_MASTERID_Msk (0xFFU << HSEM_RLR_MASTERID_Pos) /*!< 0x0000FF00 */
  10975. #define HSEM_RLR_MASTERID HSEM_RLR_MASTERID_Msk /*!<Semaphore MasterID. */
  10976. #define HSEM_RLR_LOCK_Pos (31U)
  10977. #define HSEM_RLR_LOCK_Msk (0x1U << HSEM_RLR_LOCK_Pos) /*!< 0x80000000 */
  10978. #define HSEM_RLR_LOCK HSEM_RLR_LOCK_Msk /*!<Lock indication. */
  10979. /******************** Bit definition for HSEM_IER register *****************/
  10980. #define HSEM_IER_ISEM0_Pos (0U)
  10981. #define HSEM_IER_ISEM0_Msk (0x1U << HSEM_IER_ISEM0_Pos) /*!< 0x00000001 */
  10982. #define HSEM_IER_ISEM0 HSEM_IER_ISEM0_Msk /*!<semaphore 0 , interrupt 0 enable bit. */
  10983. #define HSEM_IER_ISEM1_Pos (1U)
  10984. #define HSEM_IER_ISEM1_Msk (0x1U << HSEM_IER_ISEM1_Pos) /*!< 0x00000002 */
  10985. #define HSEM_IER_ISEM1 HSEM_IER_ISEM1_Msk /*!<semaphore 1 , interrupt 0 enable bit. */
  10986. #define HSEM_IER_ISEM2_Pos (2U)
  10987. #define HSEM_IER_ISEM2_Msk (0x1U << HSEM_IER_ISEM2_Pos) /*!< 0x00000004 */
  10988. #define HSEM_IER_ISEM2 HSEM_IER_ISEM2_Msk /*!<semaphore 2 , interrupt 0 enable bit. */
  10989. #define HSEM_IER_ISEM3_Pos (3U)
  10990. #define HSEM_IER_ISEM3_Msk (0x1U << HSEM_IER_ISEM3_Pos) /*!< 0x00000008 */
  10991. #define HSEM_IER_ISEM3 HSEM_IER_ISEM3_Msk /*!<semaphore 3 , interrupt 0 enable bit. */
  10992. #define HSEM_IER_ISEM4_Pos (4U)
  10993. #define HSEM_IER_ISEM4_Msk (0x1U << HSEM_IER_ISEM4_Pos) /*!< 0x00000010 */
  10994. #define HSEM_IER_ISEM4 HSEM_IER_ISEM4_Msk /*!<semaphore 4 , interrupt 0 enable bit. */
  10995. #define HSEM_IER_ISEM5_Pos (5U)
  10996. #define HSEM_IER_ISEM5_Msk (0x1U << HSEM_IER_ISEM5_Pos) /*!< 0x00000020 */
  10997. #define HSEM_IER_ISEM5 HSEM_IER_ISEM5_Msk /*!<semaphore 5 interrupt 0 enable bit. */
  10998. #define HSEM_IER_ISEM6_Pos (6U)
  10999. #define HSEM_IER_ISEM6_Msk (0x1U << HSEM_IER_ISEM6_Pos) /*!< 0x00000040 */
  11000. #define HSEM_IER_ISEM6 HSEM_IER_ISEM6_Msk /*!<semaphore 6 interrupt 0 enable bit. */
  11001. #define HSEM_IER_ISEM7_Pos (7U)
  11002. #define HSEM_IER_ISEM7_Msk (0x1U << HSEM_IER_ISEM7_Pos) /*!< 0x00000080 */
  11003. #define HSEM_IER_ISEM7 HSEM_IER_ISEM7_Msk /*!<semaphore 7 interrupt 0 enable bit. */
  11004. #define HSEM_IER_ISEM8_Pos (8U)
  11005. #define HSEM_IER_ISEM8_Msk (0x1U << HSEM_IER_ISEM8_Pos) /*!< 0x00000100 */
  11006. #define HSEM_IER_ISEM8 HSEM_IER_ISEM8_Msk /*!<semaphore 8 interrupt 0 enable bit. */
  11007. #define HSEM_IER_ISEM9_Pos (9U)
  11008. #define HSEM_IER_ISEM9_Msk (0x1U << HSEM_IER_ISEM9_Pos) /*!< 0x00000200 */
  11009. #define HSEM_IER_ISEM9 HSEM_IER_ISEM9_Msk /*!<semaphore 9 interrupt 0 enable bit. */
  11010. #define HSEM_IER_ISEM10_Pos (10U)
  11011. #define HSEM_IER_ISEM10_Msk (0x1U << HSEM_IER_ISEM10_Pos) /*!< 0x00000400 */
  11012. #define HSEM_IER_ISEM10 HSEM_IER_ISEM10_Msk /*!<semaphore 10 interrupt 0 enable bit. */
  11013. #define HSEM_IER_ISEM11_Pos (11U)
  11014. #define HSEM_IER_ISEM11_Msk (0x1U << HSEM_IER_ISEM11_Pos) /*!< 0x00000800 */
  11015. #define HSEM_IER_ISEM11 HSEM_IER_ISEM11_Msk /*!<semaphore 11 interrupt 0 enable bit. */
  11016. #define HSEM_IER_ISEM12_Pos (12U)
  11017. #define HSEM_IER_ISEM12_Msk (0x1U << HSEM_IER_ISEM12_Pos) /*!< 0x00001000 */
  11018. #define HSEM_IER_ISEM12 HSEM_IER_ISEM12_Msk /*!<semaphore 12 interrupt 0 enable bit. */
  11019. #define HSEM_IER_ISEM13_Pos (13U)
  11020. #define HSEM_IER_ISEM13_Msk (0x1U << HSEM_IER_ISEM13_Pos) /*!< 0x00002000 */
  11021. #define HSEM_IER_ISEM13 HSEM_IER_ISEM13_Msk /*!<semaphore 13 interrupt 0 enable bit. */
  11022. #define HSEM_IER_ISEM14_Pos (14U)
  11023. #define HSEM_IER_ISEM14_Msk (0x1U << HSEM_IER_ISEM14_Pos) /*!< 0x00004000 */
  11024. #define HSEM_IER_ISEM14 HSEM_IER_ISEM14_Msk /*!<semaphore 14 interrupt 0 enable bit. */
  11025. #define HSEM_IER_ISEM15_Pos (15U)
  11026. #define HSEM_IER_ISEM15_Msk (0x1U << HSEM_IER_ISEM15_Pos) /*!< 0x00008000 */
  11027. #define HSEM_IER_ISEM15 HSEM_IER_ISEM15_Msk /*!<semaphore 15 interrupt 0 enable bit. */
  11028. #define HSEM_IER_ISEM16_Pos (16U)
  11029. #define HSEM_IER_ISEM16_Msk (0x1U << HSEM_IER_ISEM16_Pos) /*!< 0x00010000 */
  11030. #define HSEM_IER_ISEM16 HSEM_IER_ISEM16_Msk /*!<semaphore 16 interrupt 0 enable bit. */
  11031. #define HSEM_IER_ISEM17_Pos (17U)
  11032. #define HSEM_IER_ISEM17_Msk (0x1U << HSEM_IER_ISEM17_Pos) /*!< 0x00020000 */
  11033. #define HSEM_IER_ISEM17 HSEM_IER_ISEM17_Msk /*!<semaphore 17 interrupt 0 enable bit. */
  11034. #define HSEM_IER_ISEM18_Pos (18U)
  11035. #define HSEM_IER_ISEM18_Msk (0x1U << HSEM_IER_ISEM18_Pos) /*!< 0x00040000 */
  11036. #define HSEM_IER_ISEM18 HSEM_IER_ISEM18_Msk /*!<semaphore 18 interrupt 0 enable bit. */
  11037. #define HSEM_IER_ISEM19_Pos (19U)
  11038. #define HSEM_IER_ISEM19_Msk (0x1U << HSEM_IER_ISEM19_Pos) /*!< 0x00080000 */
  11039. #define HSEM_IER_ISEM19 HSEM_IER_ISEM19_Msk /*!<semaphore 19 interrupt 0 enable bit. */
  11040. #define HSEM_IER_ISEM20_Pos (20U)
  11041. #define HSEM_IER_ISEM20_Msk (0x1U << HSEM_IER_ISEM20_Pos) /*!< 0x00100000 */
  11042. #define HSEM_IER_ISEM20 HSEM_IER_ISEM20_Msk /*!<semaphore 20 interrupt 0 enable bit. */
  11043. #define HSEM_IER_ISEM21_Pos (21U)
  11044. #define HSEM_IER_ISEM21_Msk (0x1U << HSEM_IER_ISEM21_Pos) /*!< 0x00200000 */
  11045. #define HSEM_IER_ISEM21 HSEM_IER_ISEM21_Msk /*!<semaphore 21 interrupt 0 enable bit. */
  11046. #define HSEM_IER_ISEM22_Pos (22U)
  11047. #define HSEM_IER_ISEM22_Msk (0x1U << HSEM_IER_ISEM22_Pos) /*!< 0x00400000 */
  11048. #define HSEM_IER_ISEM22 HSEM_IER_ISEM22_Msk /*!<semaphore 22 interrupt 0 enable bit. */
  11049. #define HSEM_IER_ISEM23_Pos (23U)
  11050. #define HSEM_IER_ISEM23_Msk (0x1U << HSEM_IER_ISEM23_Pos) /*!< 0x00800000 */
  11051. #define HSEM_IER_ISEM23 HSEM_IER_ISEM23_Msk /*!<semaphore 23 interrupt 0 enable bit. */
  11052. #define HSEM_IER_ISEM24_Pos (24U)
  11053. #define HSEM_IER_ISEM24_Msk (0x1U << HSEM_IER_ISEM24_Pos) /*!< 0x01000000 */
  11054. #define HSEM_IER_ISEM24 HSEM_IER_ISEM24_Msk /*!<semaphore 24 interrupt 0 enable bit. */
  11055. #define HSEM_IER_ISEM25_Pos (25U)
  11056. #define HSEM_IER_ISEM25_Msk (0x1U << HSEM_IER_ISEM25_Pos) /*!< 0x02000000 */
  11057. #define HSEM_IER_ISEM25 HSEM_IER_ISEM25_Msk /*!<semaphore 25 interrupt 0 enable bit. */
  11058. #define HSEM_IER_ISEM26_Pos (26U)
  11059. #define HSEM_IER_ISEM26_Msk (0x1U << HSEM_IER_ISEM26_Pos) /*!< 0x04000000 */
  11060. #define HSEM_IER_ISEM26 HSEM_IER_ISEM26_Msk /*!<semaphore 26 interrupt 0 enable bit. */
  11061. #define HSEM_IER_ISEM27_Pos (27U)
  11062. #define HSEM_IER_ISEM27_Msk (0x1U << HSEM_IER_ISEM27_Pos) /*!< 0x08000000 */
  11063. #define HSEM_IER_ISEM27 HSEM_IER_ISEM27_Msk /*!<semaphore 27 interrupt 0 enable bit. */
  11064. #define HSEM_IER_ISEM28_Pos (28U)
  11065. #define HSEM_IER_ISEM28_Msk (0x1U << HSEM_IER_ISEM28_Pos) /*!< 0x10000000 */
  11066. #define HSEM_IER_ISEM28 HSEM_IER_ISEM28_Msk /*!<semaphore 28 interrupt 0 enable bit. */
  11067. #define HSEM_IER_ISEM29_Pos (29U)
  11068. #define HSEM_IER_ISEM29_Msk (0x1U << HSEM_IER_ISEM29_Pos) /*!< 0x20000000 */
  11069. #define HSEM_IER_ISEM29 HSEM_IER_ISEM29_Msk /*!<semaphore 29 interrupt 0 enable bit. */
  11070. #define HSEM_IER_ISEM30_Pos (30U)
  11071. #define HSEM_IER_ISEM30_Msk (0x1U << HSEM_IER_ISEM30_Pos) /*!< 0x40000000 */
  11072. #define HSEM_IER_ISEM30 HSEM_IER_ISEM30_Msk /*!<semaphore 30 interrupt 0 enable bit. */
  11073. #define HSEM_IER_ISEM31_Pos (31U)
  11074. #define HSEM_IER_ISEM31_Msk (0x1U << HSEM_IER_ISEM31_Pos) /*!< 0x80000000 */
  11075. #define HSEM_IER_ISEM31 HSEM_IER_ISEM31_Msk /*!<semaphore 31 interrupt 0 enable bit. */
  11076. /******************** Bit definition for HSEM_ICR register *****************/
  11077. #define HSEM_ICR_ISEM0_Pos (0U)
  11078. #define HSEM_ICR_ISEM0_Msk (0x1U << HSEM_ICR_ISEM0_Pos) /*!< 0x00000001 */
  11079. #define HSEM_ICR_ISEM0 HSEM_ICR_ISEM0_Msk /*!<semaphore 0 , interrupt 0 clear bit. */
  11080. #define HSEM_ICR_ISEM1_Pos (1U)
  11081. #define HSEM_ICR_ISEM1_Msk (0x1U << HSEM_ICR_ISEM1_Pos) /*!< 0x00000002 */
  11082. #define HSEM_ICR_ISEM1 HSEM_ICR_ISEM1_Msk /*!<semaphore 1 , interrupt 0 clear bit. */
  11083. #define HSEM_ICR_ISEM2_Pos (2U)
  11084. #define HSEM_ICR_ISEM2_Msk (0x1U << HSEM_ICR_ISEM2_Pos) /*!< 0x00000004 */
  11085. #define HSEM_ICR_ISEM2 HSEM_ICR_ISEM2_Msk /*!<semaphore 2 , interrupt 0 clear bit. */
  11086. #define HSEM_ICR_ISEM3_Pos (3U)
  11087. #define HSEM_ICR_ISEM3_Msk (0x1U << HSEM_ICR_ISEM3_Pos) /*!< 0x00000008 */
  11088. #define HSEM_ICR_ISEM3 HSEM_ICR_ISEM3_Msk /*!<semaphore 3 , interrupt 0 clear bit. */
  11089. #define HSEM_ICR_ISEM4_Pos (4U)
  11090. #define HSEM_ICR_ISEM4_Msk (0x1U << HSEM_ICR_ISEM4_Pos) /*!< 0x00000010 */
  11091. #define HSEM_ICR_ISEM4 HSEM_ICR_ISEM4_Msk /*!<semaphore 4 , interrupt 0 clear bit. */
  11092. #define HSEM_ICR_ISEM5_Pos (5U)
  11093. #define HSEM_ICR_ISEM5_Msk (0x1U << HSEM_ICR_ISEM5_Pos) /*!< 0x00000020 */
  11094. #define HSEM_ICR_ISEM5 HSEM_ICR_ISEM5_Msk /*!<semaphore 5 interrupt 0 clear bit. */
  11095. #define HSEM_ICR_ISEM6_Pos (6U)
  11096. #define HSEM_ICR_ISEM6_Msk (0x1U << HSEM_ICR_ISEM6_Pos) /*!< 0x00000040 */
  11097. #define HSEM_ICR_ISEM6 HSEM_ICR_ISEM6_Msk /*!<semaphore 6 interrupt 0 clear bit. */
  11098. #define HSEM_ICR_ISEM7_Pos (7U)
  11099. #define HSEM_ICR_ISEM7_Msk (0x1U << HSEM_ICR_ISEM7_Pos) /*!< 0x00000080 */
  11100. #define HSEM_ICR_ISEM7 HSEM_ICR_ISEM7_Msk /*!<semaphore 7 interrupt 0 clear bit. */
  11101. #define HSEM_ICR_ISEM8_Pos (8U)
  11102. #define HSEM_ICR_ISEM8_Msk (0x1U << HSEM_ICR_ISEM8_Pos) /*!< 0x00000100 */
  11103. #define HSEM_ICR_ISEM8 HSEM_ICR_ISEM8_Msk /*!<semaphore 8 interrupt 0 clear bit. */
  11104. #define HSEM_ICR_ISEM9_Pos (9U)
  11105. #define HSEM_ICR_ISEM9_Msk (0x1U << HSEM_ICR_ISEM9_Pos) /*!< 0x00000200 */
  11106. #define HSEM_ICR_ISEM9 HSEM_ICR_ISEM9_Msk /*!<semaphore 9 interrupt 0 clear bit. */
  11107. #define HSEM_ICR_ISEM10_Pos (10U)
  11108. #define HSEM_ICR_ISEM10_Msk (0x1U << HSEM_ICR_ISEM10_Pos) /*!< 0x00000400 */
  11109. #define HSEM_ICR_ISEM10 HSEM_ICR_ISEM10_Msk /*!<semaphore 10 interrupt 0 clear bit. */
  11110. #define HSEM_ICR_ISEM11_Pos (11U)
  11111. #define HSEM_ICR_ISEM11_Msk (0x1U << HSEM_ICR_ISEM11_Pos) /*!< 0x00000800 */
  11112. #define HSEM_ICR_ISEM11 HSEM_ICR_ISEM11_Msk /*!<semaphore 11 interrupt 0 clear bit. */
  11113. #define HSEM_ICR_ISEM12_Pos (12U)
  11114. #define HSEM_ICR_ISEM12_Msk (0x1U << HSEM_ICR_ISEM12_Pos) /*!< 0x00001000 */
  11115. #define HSEM_ICR_ISEM12 HSEM_ICR_ISEM12_Msk /*!<semaphore 12 interrupt 0 clear bit. */
  11116. #define HSEM_ICR_ISEM13_Pos (13U)
  11117. #define HSEM_ICR_ISEM13_Msk (0x1U << HSEM_ICR_ISEM13_Pos) /*!< 0x00002000 */
  11118. #define HSEM_ICR_ISEM13 HSEM_ICR_ISEM13_Msk /*!<semaphore 13 interrupt 0 clear bit. */
  11119. #define HSEM_ICR_ISEM14_Pos (14U)
  11120. #define HSEM_ICR_ISEM14_Msk (0x1U << HSEM_ICR_ISEM14_Pos) /*!< 0x00004000 */
  11121. #define HSEM_ICR_ISEM14 HSEM_ICR_ISEM14_Msk /*!<semaphore 14 interrupt 0 clear bit. */
  11122. #define HSEM_ICR_ISEM15_Pos (15U)
  11123. #define HSEM_ICR_ISEM15_Msk (0x1U << HSEM_ICR_ISEM15_Pos) /*!< 0x00008000 */
  11124. #define HSEM_ICR_ISEM15 HSEM_ICR_ISEM15_Msk /*!<semaphore 15 interrupt 0 clear bit. */
  11125. #define HSEM_ICR_ISEM16_Pos (16U)
  11126. #define HSEM_ICR_ISEM16_Msk (0x1U << HSEM_ICR_ISEM16_Pos) /*!< 0x00010000 */
  11127. #define HSEM_ICR_ISEM16 HSEM_ICR_ISEM16_Msk /*!<semaphore 16 interrupt 0 clear bit. */
  11128. #define HSEM_ICR_ISEM17_Pos (17U)
  11129. #define HSEM_ICR_ISEM17_Msk (0x1U << HSEM_ICR_ISEM17_Pos) /*!< 0x00020000 */
  11130. #define HSEM_ICR_ISEM17 HSEM_ICR_ISEM17_Msk /*!<semaphore 17 interrupt 0 clear bit. */
  11131. #define HSEM_ICR_ISEM18_Pos (18U)
  11132. #define HSEM_ICR_ISEM18_Msk (0x1U << HSEM_ICR_ISEM18_Pos) /*!< 0x00040000 */
  11133. #define HSEM_ICR_ISEM18 HSEM_ICR_ISEM18_Msk /*!<semaphore 18 interrupt 0 clear bit. */
  11134. #define HSEM_ICR_ISEM19_Pos (19U)
  11135. #define HSEM_ICR_ISEM19_Msk (0x1U << HSEM_ICR_ISEM19_Pos) /*!< 0x00080000 */
  11136. #define HSEM_ICR_ISEM19 HSEM_ICR_ISEM19_Msk /*!<semaphore 19 interrupt 0 clear bit. */
  11137. #define HSEM_ICR_ISEM20_Pos (20U)
  11138. #define HSEM_ICR_ISEM20_Msk (0x1U << HSEM_ICR_ISEM20_Pos) /*!< 0x00100000 */
  11139. #define HSEM_ICR_ISEM20 HSEM_ICR_ISEM20_Msk /*!<semaphore 20 interrupt 0 clear bit. */
  11140. #define HSEM_ICR_ISEM21_Pos (21U)
  11141. #define HSEM_ICR_ISEM21_Msk (0x1U << HSEM_ICR_ISEM21_Pos) /*!< 0x00200000 */
  11142. #define HSEM_ICR_ISEM21 HSEM_ICR_ISEM21_Msk /*!<semaphore 21 interrupt 0 clear bit. */
  11143. #define HSEM_ICR_ISEM22_Pos (22U)
  11144. #define HSEM_ICR_ISEM22_Msk (0x1U << HSEM_ICR_ISEM22_Pos) /*!< 0x00400000 */
  11145. #define HSEM_ICR_ISEM22 HSEM_ICR_ISEM22_Msk /*!<semaphore 22 interrupt 0 clear bit. */
  11146. #define HSEM_ICR_ISEM23_Pos (23U)
  11147. #define HSEM_ICR_ISEM23_Msk (0x1U << HSEM_ICR_ISEM23_Pos) /*!< 0x00800000 */
  11148. #define HSEM_ICR_ISEM23 HSEM_ICR_ISEM23_Msk /*!<semaphore 23 interrupt 0 clear bit. */
  11149. #define HSEM_ICR_ISEM24_Pos (24U)
  11150. #define HSEM_ICR_ISEM24_Msk (0x1U << HSEM_ICR_ISEM24_Pos) /*!< 0x01000000 */
  11151. #define HSEM_ICR_ISEM24 HSEM_ICR_ISEM24_Msk /*!<semaphore 24 interrupt 0 clear bit. */
  11152. #define HSEM_ICR_ISEM25_Pos (25U)
  11153. #define HSEM_ICR_ISEM25_Msk (0x1U << HSEM_ICR_ISEM25_Pos) /*!< 0x02000000 */
  11154. #define HSEM_ICR_ISEM25 HSEM_ICR_ISEM25_Msk /*!<semaphore 25 interrupt 0 clear bit. */
  11155. #define HSEM_ICR_ISEM26_Pos (26U)
  11156. #define HSEM_ICR_ISEM26_Msk (0x1U << HSEM_ICR_ISEM26_Pos) /*!< 0x04000000 */
  11157. #define HSEM_ICR_ISEM26 HSEM_ICR_ISEM26_Msk /*!<semaphore 26 interrupt 0 clear bit. */
  11158. #define HSEM_ICR_ISEM27_Pos (27U)
  11159. #define HSEM_ICR_ISEM27_Msk (0x1U << HSEM_ICR_ISEM27_Pos) /*!< 0x08000000 */
  11160. #define HSEM_ICR_ISEM27 HSEM_ICR_ISEM27_Msk /*!<semaphore 27 interrupt 0 clear bit. */
  11161. #define HSEM_ICR_ISEM28_Pos (28U)
  11162. #define HSEM_ICR_ISEM28_Msk (0x1U << HSEM_ICR_ISEM28_Pos) /*!< 0x10000000 */
  11163. #define HSEM_ICR_ISEM28 HSEM_ICR_ISEM28_Msk /*!<semaphore 28 interrupt 0 clear bit. */
  11164. #define HSEM_ICR_ISEM29_Pos (29U)
  11165. #define HSEM_ICR_ISEM29_Msk (0x1U << HSEM_ICR_ISEM29_Pos) /*!< 0x20000000 */
  11166. #define HSEM_ICR_ISEM29 HSEM_ICR_ISEM29_Msk /*!<semaphore 29 interrupt 0 clear bit. */
  11167. #define HSEM_ICR_ISEM30_Pos (30U)
  11168. #define HSEM_ICR_ISEM30_Msk (0x1U << HSEM_ICR_ISEM30_Pos) /*!< 0x40000000 */
  11169. #define HSEM_ICR_ISEM30 HSEM_ICR_ISEM30_Msk /*!<semaphore 30 interrupt 0 clear bit. */
  11170. #define HSEM_ICR_ISEM31_Pos (31U)
  11171. #define HSEM_ICR_ISEM31_Msk (0x1U << HSEM_ICR_ISEM31_Pos) /*!< 0x80000000 */
  11172. #define HSEM_ICR_ISEM31 HSEM_ICR_ISEM31_Msk /*!<semaphore 31 interrupt 0 clear bit. */
  11173. /******************** Bit definition for HSEM_ISR register *****************/
  11174. #define HSEM_ISR_ISEM0_Pos (0U)
  11175. #define HSEM_ISR_ISEM0_Msk (0x1U << HSEM_ISR_ISEM0_Pos) /*!< 0x00000001 */
  11176. #define HSEM_ISR_ISEM0 HSEM_ISR_ISEM0_Msk /*!<semaphore 0 interrupt 0 status bit. */
  11177. #define HSEM_ISR_ISEM1_Pos (1U)
  11178. #define HSEM_ISR_ISEM1_Msk (0x1U << HSEM_ISR_ISEM1_Pos) /*!< 0x00000002 */
  11179. #define HSEM_ISR_ISEM1 HSEM_ISR_ISEM1_Msk /*!<semaphore 1 interrupt 0 status bit. */
  11180. #define HSEM_ISR_ISEM2_Pos (2U)
  11181. #define HSEM_ISR_ISEM2_Msk (0x1U << HSEM_ISR_ISEM2_Pos) /*!< 0x00000004 */
  11182. #define HSEM_ISR_ISEM2 HSEM_ISR_ISEM2_Msk /*!<semaphore 2 interrupt 0 status bit. */
  11183. #define HSEM_ISR_ISEM3_Pos (3U)
  11184. #define HSEM_ISR_ISEM3_Msk (0x1U << HSEM_ISR_ISEM3_Pos) /*!< 0x00000008 */
  11185. #define HSEM_ISR_ISEM3 HSEM_ISR_ISEM3_Msk /*!<semaphore 3 interrupt 0 status bit. */
  11186. #define HSEM_ISR_ISEM4_Pos (4U)
  11187. #define HSEM_ISR_ISEM4_Msk (0x1U << HSEM_ISR_ISEM4_Pos) /*!< 0x00000010 */
  11188. #define HSEM_ISR_ISEM4 HSEM_ISR_ISEM4_Msk /*!<semaphore 4 interrupt 0 status bit. */
  11189. #define HSEM_ISR_ISEM5_Pos (5U)
  11190. #define HSEM_ISR_ISEM5_Msk (0x1U << HSEM_ISR_ISEM5_Pos) /*!< 0x00000020 */
  11191. #define HSEM_ISR_ISEM5 HSEM_ISR_ISEM5_Msk /*!<semaphore 5 interrupt 0 status bit. */
  11192. #define HSEM_ISR_ISEM6_Pos (6U)
  11193. #define HSEM_ISR_ISEM6_Msk (0x1U << HSEM_ISR_ISEM6_Pos) /*!< 0x00000040 */
  11194. #define HSEM_ISR_ISEM6 HSEM_ISR_ISEM6_Msk /*!<semaphore 6 interrupt 0 status bit. */
  11195. #define HSEM_ISR_ISEM7_Pos (7U)
  11196. #define HSEM_ISR_ISEM7_Msk (0x1U << HSEM_ISR_ISEM7_Pos) /*!< 0x00000080 */
  11197. #define HSEM_ISR_ISEM7 HSEM_ISR_ISEM7_Msk /*!<semaphore 7 interrupt 0 status bit. */
  11198. #define HSEM_ISR_ISEM8_Pos (8U)
  11199. #define HSEM_ISR_ISEM8_Msk (0x1U << HSEM_ISR_ISEM8_Pos) /*!< 0x00000100 */
  11200. #define HSEM_ISR_ISEM8 HSEM_ISR_ISEM8_Msk /*!<semaphore 8 interrupt 0 status bit. */
  11201. #define HSEM_ISR_ISEM9_Pos (9U)
  11202. #define HSEM_ISR_ISEM9_Msk (0x1U << HSEM_ISR_ISEM9_Pos) /*!< 0x00000200 */
  11203. #define HSEM_ISR_ISEM9 HSEM_ISR_ISEM9_Msk /*!<semaphore 9 interrupt 0 status bit. */
  11204. #define HSEM_ISR_ISEM10_Pos (10U)
  11205. #define HSEM_ISR_ISEM10_Msk (0x1U << HSEM_ISR_ISEM10_Pos) /*!< 0x00000400 */
  11206. #define HSEM_ISR_ISEM10 HSEM_ISR_ISEM10_Msk /*!<semaphore 10 interrupt 0 status bit. */
  11207. #define HSEM_ISR_ISEM11_Pos (11U)
  11208. #define HSEM_ISR_ISEM11_Msk (0x1U << HSEM_ISR_ISEM11_Pos) /*!< 0x00000800 */
  11209. #define HSEM_ISR_ISEM11 HSEM_ISR_ISEM11_Msk /*!<semaphore 11 interrupt 0 status bit. */
  11210. #define HSEM_ISR_ISEM12_Pos (12U)
  11211. #define HSEM_ISR_ISEM12_Msk (0x1U << HSEM_ISR_ISEM12_Pos) /*!< 0x00001000 */
  11212. #define HSEM_ISR_ISEM12 HSEM_ISR_ISEM12_Msk /*!<semaphore 12 interrupt 0 status bit. */
  11213. #define HSEM_ISR_ISEM13_Pos (13U)
  11214. #define HSEM_ISR_ISEM13_Msk (0x1U << HSEM_ISR_ISEM13_Pos) /*!< 0x00002000 */
  11215. #define HSEM_ISR_ISEM13 HSEM_ISR_ISEM13_Msk /*!<semaphore 13 interrupt 0 status bit. */
  11216. #define HSEM_ISR_ISEM14_Pos (14U)
  11217. #define HSEM_ISR_ISEM14_Msk (0x1U << HSEM_ISR_ISEM14_Pos) /*!< 0x00004000 */
  11218. #define HSEM_ISR_ISEM14 HSEM_ISR_ISEM14_Msk /*!<semaphore 14 interrupt 0 status bit. */
  11219. #define HSEM_ISR_ISEM15_Pos (15U)
  11220. #define HSEM_ISR_ISEM15_Msk (0x1U << HSEM_ISR_ISEM15_Pos) /*!< 0x00008000 */
  11221. #define HSEM_ISR_ISEM15 HSEM_ISR_ISEM15_Msk /*!<semaphore 15 interrupt 0 status bit. */
  11222. #define HSEM_ISR_ISEM16_Pos (16U)
  11223. #define HSEM_ISR_ISEM16_Msk (0x1U << HSEM_ISR_ISEM16_Pos) /*!< 0x00010000 */
  11224. #define HSEM_ISR_ISEM16 HSEM_ISR_ISEM16_Msk /*!<semaphore 16 interrupt 0 status bit. */
  11225. #define HSEM_ISR_ISEM17_Pos (17U)
  11226. #define HSEM_ISR_ISEM17_Msk (0x1U << HSEM_ISR_ISEM17_Pos) /*!< 0x00020000 */
  11227. #define HSEM_ISR_ISEM17 HSEM_ISR_ISEM17_Msk /*!<semaphore 17 interrupt 0 status bit. */
  11228. #define HSEM_ISR_ISEM18_Pos (18U)
  11229. #define HSEM_ISR_ISEM18_Msk (0x1U << HSEM_ISR_ISEM18_Pos) /*!< 0x00040000 */
  11230. #define HSEM_ISR_ISEM18 HSEM_ISR_ISEM18_Msk /*!<semaphore 18 interrupt 0 status bit. */
  11231. #define HSEM_ISR_ISEM19_Pos (19U)
  11232. #define HSEM_ISR_ISEM19_Msk (0x1U << HSEM_ISR_ISEM19_Pos) /*!< 0x00080000 */
  11233. #define HSEM_ISR_ISEM19 HSEM_ISR_ISEM19_Msk /*!<semaphore 19 interrupt 0 status bit. */
  11234. #define HSEM_ISR_ISEM20_Pos (20U)
  11235. #define HSEM_ISR_ISEM20_Msk (0x1U << HSEM_ISR_ISEM20_Pos) /*!< 0x00100000 */
  11236. #define HSEM_ISR_ISEM20 HSEM_ISR_ISEM20_Msk /*!<semaphore 20 interrupt 0 status bit. */
  11237. #define HSEM_ISR_ISEM21_Pos (21U)
  11238. #define HSEM_ISR_ISEM21_Msk (0x1U << HSEM_ISR_ISEM21_Pos) /*!< 0x00200000 */
  11239. #define HSEM_ISR_ISEM21 HSEM_ISR_ISEM21_Msk /*!<semaphore 21 interrupt 0 status bit. */
  11240. #define HSEM_ISR_ISEM22_Pos (22U)
  11241. #define HSEM_ISR_ISEM22_Msk (0x1U << HSEM_ISR_ISEM22_Pos) /*!< 0x00400000 */
  11242. #define HSEM_ISR_ISEM22 HSEM_ISR_ISEM22_Msk /*!<semaphore 22 interrupt 0 status bit. */
  11243. #define HSEM_ISR_ISEM23_Pos (23U)
  11244. #define HSEM_ISR_ISEM23_Msk (0x1U << HSEM_ISR_ISEM23_Pos) /*!< 0x00800000 */
  11245. #define HSEM_ISR_ISEM23 HSEM_ISR_ISEM23_Msk /*!<semaphore 23 interrupt 0 status bit. */
  11246. #define HSEM_ISR_ISEM24_Pos (24U)
  11247. #define HSEM_ISR_ISEM24_Msk (0x1U << HSEM_ISR_ISEM24_Pos) /*!< 0x01000000 */
  11248. #define HSEM_ISR_ISEM24 HSEM_ISR_ISEM24_Msk /*!<semaphore 24 interrupt 0 status bit. */
  11249. #define HSEM_ISR_ISEM25_Pos (25U)
  11250. #define HSEM_ISR_ISEM25_Msk (0x1U << HSEM_ISR_ISEM25_Pos) /*!< 0x02000000 */
  11251. #define HSEM_ISR_ISEM25 HSEM_ISR_ISEM25_Msk /*!<semaphore 25 interrupt 0 status bit. */
  11252. #define HSEM_ISR_ISEM26_Pos (26U)
  11253. #define HSEM_ISR_ISEM26_Msk (0x1U << HSEM_ISR_ISEM26_Pos) /*!< 0x04000000 */
  11254. #define HSEM_ISR_ISEM26 HSEM_ISR_ISEM26_Msk /*!<semaphore 26 interrupt 0 status bit. */
  11255. #define HSEM_ISR_ISEM27_Pos (27U)
  11256. #define HSEM_ISR_ISEM27_Msk (0x1U << HSEM_ISR_ISEM27_Pos) /*!< 0x08000000 */
  11257. #define HSEM_ISR_ISEM27 HSEM_ISR_ISEM27_Msk /*!<semaphore 27 interrupt 0 status bit. */
  11258. #define HSEM_ISR_ISEM28_Pos (28U)
  11259. #define HSEM_ISR_ISEM28_Msk (0x1U << HSEM_ISR_ISEM28_Pos) /*!< 0x10000000 */
  11260. #define HSEM_ISR_ISEM28 HSEM_ISR_ISEM28_Msk /*!<semaphore 28 interrupt 0 status bit. */
  11261. #define HSEM_ISR_ISEM29_Pos (29U)
  11262. #define HSEM_ISR_ISEM29_Msk (0x1U << HSEM_ISR_ISEM29_Pos) /*!< 0x20000000 */
  11263. #define HSEM_ISR_ISEM29 HSEM_ISR_ISEM29_Msk /*!<semaphore 29 interrupt 0 status bit. */
  11264. #define HSEM_ISR_ISEM30_Pos (30U)
  11265. #define HSEM_ISR_ISEM30_Msk (0x1U << HSEM_ISR_ISEM30_Pos) /*!< 0x40000000 */
  11266. #define HSEM_ISR_ISEM30 HSEM_ISR_ISEM30_Msk /*!<semaphore 30 interrupt 0 status bit. */
  11267. #define HSEM_ISR_ISEM31_Pos (31U)
  11268. #define HSEM_ISR_ISEM31_Msk (0x1U << HSEM_ISR_ISEM31_Pos) /*!< 0x80000000 */
  11269. #define HSEM_ISR_ISEM31 HSEM_ISR_ISEM31_Msk /*!<semaphore 31 interrupt 0 status bit. */
  11270. /******************** Bit definition for HSEM_MISR register *****************/
  11271. #define HSEM_MISR_ISEM0_Pos (0U)
  11272. #define HSEM_MISR_ISEM0_Msk (0x1U << HSEM_MISR_ISEM0_Pos) /*!< 0x00000001 */
  11273. #define HSEM_MISR_ISEM0 HSEM_MISR_ISEM0_Msk /*!<semaphore 0 interrupt 0 masked status bit. */
  11274. #define HSEM_MISR_ISEM1_Pos (1U)
  11275. #define HSEM_MISR_ISEM1_Msk (0x1U << HSEM_MISR_ISEM1_Pos) /*!< 0x00000002 */
  11276. #define HSEM_MISR_ISEM1 HSEM_MISR_ISEM1_Msk /*!<semaphore 1 interrupt 0 masked status bit. */
  11277. #define HSEM_MISR_ISEM2_Pos (2U)
  11278. #define HSEM_MISR_ISEM2_Msk (0x1U << HSEM_MISR_ISEM2_Pos) /*!< 0x00000004 */
  11279. #define HSEM_MISR_ISEM2 HSEM_MISR_ISEM2_Msk /*!<semaphore 2 interrupt 0 masked status bit. */
  11280. #define HSEM_MISR_ISEM3_Pos (3U)
  11281. #define HSEM_MISR_ISEM3_Msk (0x1U << HSEM_MISR_ISEM3_Pos) /*!< 0x00000008 */
  11282. #define HSEM_MISR_ISEM3 HSEM_MISR_ISEM3_Msk /*!<semaphore 3 interrupt 0 masked status bit. */
  11283. #define HSEM_MISR_ISEM4_Pos (4U)
  11284. #define HSEM_MISR_ISEM4_Msk (0x1U << HSEM_MISR_ISEM4_Pos) /*!< 0x00000010 */
  11285. #define HSEM_MISR_ISEM4 HSEM_MISR_ISEM4_Msk /*!<semaphore 4 interrupt 0 masked status bit. */
  11286. #define HSEM_MISR_ISEM5_Pos (5U)
  11287. #define HSEM_MISR_ISEM5_Msk (0x1U << HSEM_MISR_ISEM5_Pos) /*!< 0x00000020 */
  11288. #define HSEM_MISR_ISEM5 HSEM_MISR_ISEM5_Msk /*!<semaphore 5 interrupt 0 masked status bit. */
  11289. #define HSEM_MISR_ISEM6_Pos (6U)
  11290. #define HSEM_MISR_ISEM6_Msk (0x1U << HSEM_MISR_ISEM6_Pos) /*!< 0x00000040 */
  11291. #define HSEM_MISR_ISEM6 HSEM_MISR_ISEM6_Msk /*!<semaphore 6 interrupt 0 masked status bit. */
  11292. #define HSEM_MISR_ISEM7_Pos (7U)
  11293. #define HSEM_MISR_ISEM7_Msk (0x1U << HSEM_MISR_ISEM7_Pos) /*!< 0x00000080 */
  11294. #define HSEM_MISR_ISEM7 HSEM_MISR_ISEM7_Msk /*!<semaphore 7 interrupt 0 masked status bit. */
  11295. #define HSEM_MISR_ISEM8_Pos (8U)
  11296. #define HSEM_MISR_ISEM8_Msk (0x1U << HSEM_MISR_ISEM8_Pos) /*!< 0x00000100 */
  11297. #define HSEM_MISR_ISEM8 HSEM_MISR_ISEM8_Msk /*!<semaphore 8 interrupt 0 masked status bit. */
  11298. #define HSEM_MISR_ISEM9_Pos (9U)
  11299. #define HSEM_MISR_ISEM9_Msk (0x1U << HSEM_MISR_ISEM9_Pos) /*!< 0x00000200 */
  11300. #define HSEM_MISR_ISEM9 HSEM_MISR_ISEM9_Msk /*!<semaphore 9 interrupt 0 masked status bit. */
  11301. #define HSEM_MISR_ISEM10_Pos (10U)
  11302. #define HSEM_MISR_ISEM10_Msk (0x1U << HSEM_MISR_ISEM10_Pos) /*!< 0x00000400 */
  11303. #define HSEM_MISR_ISEM10 HSEM_MISR_ISEM10_Msk /*!<semaphore 10 interrupt 0 masked status bit. */
  11304. #define HSEM_MISR_ISEM11_Pos (11U)
  11305. #define HSEM_MISR_ISEM11_Msk (0x1U << HSEM_MISR_ISEM11_Pos) /*!< 0x00000800 */
  11306. #define HSEM_MISR_ISEM11 HSEM_MISR_ISEM11_Msk /*!<semaphore 11 interrupt 0 masked status bit. */
  11307. #define HSEM_MISR_ISEM12_Pos (12U)
  11308. #define HSEM_MISR_ISEM12_Msk (0x1U << HSEM_MISR_ISEM12_Pos) /*!< 0x00001000 */
  11309. #define HSEM_MISR_ISEM12 HSEM_MISR_ISEM12_Msk /*!<semaphore 12 interrupt 0 masked status bit. */
  11310. #define HSEM_MISR_ISEM13_Pos (13U)
  11311. #define HSEM_MISR_ISEM13_Msk (0x1U << HSEM_MISR_ISEM13_Pos) /*!< 0x00002000 */
  11312. #define HSEM_MISR_ISEM13 HSEM_MISR_ISEM13_Msk /*!<semaphore 13 interrupt 0 masked status bit. */
  11313. #define HSEM_MISR_ISEM14_Pos (14U)
  11314. #define HSEM_MISR_ISEM14_Msk (0x1U << HSEM_MISR_ISEM14_Pos) /*!< 0x00004000 */
  11315. #define HSEM_MISR_ISEM14 HSEM_MISR_ISEM14_Msk /*!<semaphore 14 interrupt 0 masked status bit. */
  11316. #define HSEM_MISR_ISEM15_Pos (15U)
  11317. #define HSEM_MISR_ISEM15_Msk (0x1U << HSEM_MISR_ISEM15_Pos) /*!< 0x00008000 */
  11318. #define HSEM_MISR_ISEM15 HSEM_MISR_ISEM15_Msk /*!<semaphore 15 interrupt 0 masked status bit. */
  11319. #define HSEM_MISR_ISEM16_Pos (16U)
  11320. #define HSEM_MISR_ISEM16_Msk (0x1U << HSEM_MISR_ISEM16_Pos) /*!< 0x00010000 */
  11321. #define HSEM_MISR_ISEM16 HSEM_MISR_ISEM16_Msk /*!<semaphore 16 interrupt 0 masked status bit. */
  11322. #define HSEM_MISR_ISEM17_Pos (17U)
  11323. #define HSEM_MISR_ISEM17_Msk (0x1U << HSEM_MISR_ISEM17_Pos) /*!< 0x00020000 */
  11324. #define HSEM_MISR_ISEM17 HSEM_MISR_ISEM17_Msk /*!<semaphore 17 interrupt 0 masked status bit. */
  11325. #define HSEM_MISR_ISEM18_Pos (18U)
  11326. #define HSEM_MISR_ISEM18_Msk (0x1U << HSEM_MISR_ISEM18_Pos) /*!< 0x00040000 */
  11327. #define HSEM_MISR_ISEM18 HSEM_MISR_ISEM18_Msk /*!<semaphore 18 interrupt 0 masked status bit. */
  11328. #define HSEM_MISR_ISEM19_Pos (19U)
  11329. #define HSEM_MISR_ISEM19_Msk (0x1U << HSEM_MISR_ISEM19_Pos) /*!< 0x00080000 */
  11330. #define HSEM_MISR_ISEM19 HSEM_MISR_ISEM19_Msk /*!<semaphore 19 interrupt 0 masked status bit. */
  11331. #define HSEM_MISR_ISEM20_Pos (20U)
  11332. #define HSEM_MISR_ISEM20_Msk (0x1U << HSEM_MISR_ISEM20_Pos) /*!< 0x00100000 */
  11333. #define HSEM_MISR_ISEM20 HSEM_MISR_ISEM20_Msk /*!<semaphore 20 interrupt 0 masked status bit. */
  11334. #define HSEM_MISR_ISEM21_Pos (21U)
  11335. #define HSEM_MISR_ISEM21_Msk (0x1U << HSEM_MISR_ISEM21_Pos) /*!< 0x00200000 */
  11336. #define HSEM_MISR_ISEM21 HSEM_MISR_ISEM21_Msk /*!<semaphore 21 interrupt 0 masked status bit. */
  11337. #define HSEM_MISR_ISEM22_Pos (22U)
  11338. #define HSEM_MISR_ISEM22_Msk (0x1U << HSEM_MISR_ISEM22_Pos) /*!< 0x00400000 */
  11339. #define HSEM_MISR_ISEM22 HSEM_MISR_ISEM22_Msk /*!<semaphore 22 interrupt 0 masked status bit. */
  11340. #define HSEM_MISR_ISEM23_Pos (23U)
  11341. #define HSEM_MISR_ISEM23_Msk (0x1U << HSEM_MISR_ISEM23_Pos) /*!< 0x00800000 */
  11342. #define HSEM_MISR_ISEM23 HSEM_MISR_ISEM23_Msk /*!<semaphore 23 interrupt 0 masked status bit. */
  11343. #define HSEM_MISR_ISEM24_Pos (24U)
  11344. #define HSEM_MISR_ISEM24_Msk (0x1U << HSEM_MISR_ISEM24_Pos) /*!< 0x01000000 */
  11345. #define HSEM_MISR_ISEM24 HSEM_MISR_ISEM24_Msk /*!<semaphore 24 interrupt 0 masked status bit. */
  11346. #define HSEM_MISR_ISEM25_Pos (25U)
  11347. #define HSEM_MISR_ISEM25_Msk (0x1U << HSEM_MISR_ISEM25_Pos) /*!< 0x02000000 */
  11348. #define HSEM_MISR_ISEM25 HSEM_MISR_ISEM25_Msk /*!<semaphore 25 interrupt 0 masked status bit. */
  11349. #define HSEM_MISR_ISEM26_Pos (26U)
  11350. #define HSEM_MISR_ISEM26_Msk (0x1U << HSEM_MISR_ISEM26_Pos) /*!< 0x04000000 */
  11351. #define HSEM_MISR_ISEM26 HSEM_MISR_ISEM26_Msk /*!<semaphore 26 interrupt 0 masked status bit. */
  11352. #define HSEM_MISR_ISEM27_Pos (27U)
  11353. #define HSEM_MISR_ISEM27_Msk (0x1U << HSEM_MISR_ISEM27_Pos) /*!< 0x08000000 */
  11354. #define HSEM_MISR_ISEM27 HSEM_MISR_ISEM27_Msk /*!<semaphore 27 interrupt 0 masked status bit. */
  11355. #define HSEM_MISR_ISEM28_Pos (28U)
  11356. #define HSEM_MISR_ISEM28_Msk (0x1U << HSEM_MISR_ISEM28_Pos) /*!< 0x10000000 */
  11357. #define HSEM_MISR_ISEM28 HSEM_MISR_ISEM28_Msk /*!<semaphore 28 interrupt 0 masked status bit. */
  11358. #define HSEM_MISR_ISEM29_Pos (29U)
  11359. #define HSEM_MISR_ISEM29_Msk (0x1U << HSEM_MISR_ISEM29_Pos) /*!< 0x20000000 */
  11360. #define HSEM_MISR_ISEM29 HSEM_MISR_ISEM29_Msk /*!<semaphore 29 interrupt 0 masked status bit. */
  11361. #define HSEM_MISR_ISEM30_Pos (30U)
  11362. #define HSEM_MISR_ISEM30_Msk (0x1U << HSEM_MISR_ISEM30_Pos) /*!< 0x40000000 */
  11363. #define HSEM_MISR_ISEM30 HSEM_MISR_ISEM30_Msk /*!<semaphore 30 interrupt 0 masked status bit. */
  11364. #define HSEM_MISR_ISEM31_Pos (31U)
  11365. #define HSEM_MISR_ISEM31_Msk (0x1U << HSEM_MISR_ISEM31_Pos) /*!< 0x80000000 */
  11366. #define HSEM_MISR_ISEM31 HSEM_MISR_ISEM31_Msk /*!<semaphore 31 interrupt 0 masked status bit. */
  11367. /******************** Bit definition for HSEM_CR register *****************/
  11368. #define HSEM_CR_MASTERID_Pos (8U)
  11369. #define HSEM_CR_MASTERID_Msk (0xFFU << HSEM_CR_MASTERID_Pos) /*!< 0x0000FF00 */
  11370. #define HSEM_CR_MASTERID HSEM_CR_MASTERID_Msk /*!<MasterID of semaphores to be cleared. */
  11371. #define HSEM_CR_KEY_Pos (16U)
  11372. #define HSEM_CR_KEY_Msk (0xFFFFU << HSEM_CR_KEY_Pos) /*!< 0xFFFF0000 */
  11373. #define HSEM_CR_KEY HSEM_CR_KEY_Msk /*!<semaphores clear key. */
  11374. /******************** Bit definition for HSEM_KEYR register *****************/
  11375. #define HSEM_KEYR_KEY_Pos (16U)
  11376. #define HSEM_KEYR_KEY_Msk (0xFFFFU << HSEM_KEYR_KEY_Pos) /*!< 0xFFFF0000 */
  11377. #define HSEM_KEYR_KEY HSEM_KEYR_KEY_Msk /*!<semaphores clear key. */
  11378. /******************************************************************************/
  11379. /* */
  11380. /* Inter-integrated Circuit Interface (I2C) */
  11381. /* */
  11382. /******************************************************************************/
  11383. /******************* Bit definition for I2C_CR1 register *******************/
  11384. #define I2C_CR1_PE_Pos (0U)
  11385. #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */
  11386. #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */
  11387. #define I2C_CR1_TXIE_Pos (1U)
  11388. #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */
  11389. #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */
  11390. #define I2C_CR1_RXIE_Pos (2U)
  11391. #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */
  11392. #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */
  11393. #define I2C_CR1_ADDRIE_Pos (3U)
  11394. #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */
  11395. #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */
  11396. #define I2C_CR1_NACKIE_Pos (4U)
  11397. #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */
  11398. #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */
  11399. #define I2C_CR1_STOPIE_Pos (5U)
  11400. #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */
  11401. #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */
  11402. #define I2C_CR1_TCIE_Pos (6U)
  11403. #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */
  11404. #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */
  11405. #define I2C_CR1_ERRIE_Pos (7U)
  11406. #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */
  11407. #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */
  11408. #define I2C_CR1_DNF_Pos (8U)
  11409. #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */
  11410. #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */
  11411. #define I2C_CR1_ANFOFF_Pos (12U)
  11412. #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */
  11413. #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */
  11414. #define I2C_CR1_SWRST_Pos (13U)
  11415. #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */
  11416. #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */
  11417. #define I2C_CR1_TXDMAEN_Pos (14U)
  11418. #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */
  11419. #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */
  11420. #define I2C_CR1_RXDMAEN_Pos (15U)
  11421. #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */
  11422. #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */
  11423. #define I2C_CR1_SBC_Pos (16U)
  11424. #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */
  11425. #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */
  11426. #define I2C_CR1_NOSTRETCH_Pos (17U)
  11427. #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */
  11428. #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */
  11429. #define I2C_CR1_WUPEN_Pos (18U)
  11430. #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */
  11431. #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */
  11432. #define I2C_CR1_GCEN_Pos (19U)
  11433. #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */
  11434. #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */
  11435. #define I2C_CR1_SMBHEN_Pos (20U)
  11436. #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */
  11437. #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */
  11438. #define I2C_CR1_SMBDEN_Pos (21U)
  11439. #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */
  11440. #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */
  11441. #define I2C_CR1_ALERTEN_Pos (22U)
  11442. #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */
  11443. #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */
  11444. #define I2C_CR1_PECEN_Pos (23U)
  11445. #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */
  11446. #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */
  11447. /****************** Bit definition for I2C_CR2 register ********************/
  11448. #define I2C_CR2_SADD_Pos (0U)
  11449. #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */
  11450. #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */
  11451. #define I2C_CR2_RD_WRN_Pos (10U)
  11452. #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */
  11453. #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */
  11454. #define I2C_CR2_ADD10_Pos (11U)
  11455. #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */
  11456. #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */
  11457. #define I2C_CR2_HEAD10R_Pos (12U)
  11458. #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */
  11459. #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */
  11460. #define I2C_CR2_START_Pos (13U)
  11461. #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */
  11462. #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */
  11463. #define I2C_CR2_STOP_Pos (14U)
  11464. #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */
  11465. #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */
  11466. #define I2C_CR2_NACK_Pos (15U)
  11467. #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */
  11468. #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */
  11469. #define I2C_CR2_NBYTES_Pos (16U)
  11470. #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */
  11471. #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */
  11472. #define I2C_CR2_RELOAD_Pos (24U)
  11473. #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */
  11474. #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */
  11475. #define I2C_CR2_AUTOEND_Pos (25U)
  11476. #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */
  11477. #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */
  11478. #define I2C_CR2_PECBYTE_Pos (26U)
  11479. #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */
  11480. #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */
  11481. /******************* Bit definition for I2C_OAR1 register ******************/
  11482. #define I2C_OAR1_OA1_Pos (0U)
  11483. #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */
  11484. #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */
  11485. #define I2C_OAR1_OA1MODE_Pos (10U)
  11486. #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */
  11487. #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */
  11488. #define I2C_OAR1_OA1EN_Pos (15U)
  11489. #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */
  11490. #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */
  11491. /******************* Bit definition for I2C_OAR2 register ******************/
  11492. #define I2C_OAR2_OA2_Pos (1U)
  11493. #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */
  11494. #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */
  11495. #define I2C_OAR2_OA2MSK_Pos (8U)
  11496. #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */
  11497. #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */
  11498. #define I2C_OAR2_OA2EN_Pos (15U)
  11499. #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */
  11500. #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */
  11501. /******************* Bit definition for I2C_TIMINGR register *******************/
  11502. #define I2C_TIMINGR_SCLL_Pos (0U)
  11503. #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */
  11504. #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */
  11505. #define I2C_TIMINGR_SCLH_Pos (8U)
  11506. #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */
  11507. #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */
  11508. #define I2C_TIMINGR_SDADEL_Pos (16U)
  11509. #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */
  11510. #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */
  11511. #define I2C_TIMINGR_SCLDEL_Pos (20U)
  11512. #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */
  11513. #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */
  11514. #define I2C_TIMINGR_PRESC_Pos (28U)
  11515. #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */
  11516. #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */
  11517. /******************* Bit definition for I2C_TIMEOUTR register *******************/
  11518. #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U)
  11519. #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */
  11520. #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */
  11521. #define I2C_TIMEOUTR_TIDLE_Pos (12U)
  11522. #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */
  11523. #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */
  11524. #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U)
  11525. #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */
  11526. #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */
  11527. #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U)
  11528. #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */
  11529. #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B*/
  11530. #define I2C_TIMEOUTR_TEXTEN_Pos (31U)
  11531. #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */
  11532. #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */
  11533. /****************** Bit definition for I2C_ISR register *********************/
  11534. #define I2C_ISR_TXE_Pos (0U)
  11535. #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */
  11536. #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */
  11537. #define I2C_ISR_TXIS_Pos (1U)
  11538. #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */
  11539. #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */
  11540. #define I2C_ISR_RXNE_Pos (2U)
  11541. #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */
  11542. #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */
  11543. #define I2C_ISR_ADDR_Pos (3U)
  11544. #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */
  11545. #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode)*/
  11546. #define I2C_ISR_NACKF_Pos (4U)
  11547. #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */
  11548. #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */
  11549. #define I2C_ISR_STOPF_Pos (5U)
  11550. #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */
  11551. #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */
  11552. #define I2C_ISR_TC_Pos (6U)
  11553. #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */
  11554. #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */
  11555. #define I2C_ISR_TCR_Pos (7U)
  11556. #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */
  11557. #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */
  11558. #define I2C_ISR_BERR_Pos (8U)
  11559. #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */
  11560. #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */
  11561. #define I2C_ISR_ARLO_Pos (9U)
  11562. #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */
  11563. #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */
  11564. #define I2C_ISR_OVR_Pos (10U)
  11565. #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */
  11566. #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */
  11567. #define I2C_ISR_PECERR_Pos (11U)
  11568. #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */
  11569. #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */
  11570. #define I2C_ISR_TIMEOUT_Pos (12U)
  11571. #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */
  11572. #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */
  11573. #define I2C_ISR_ALERT_Pos (13U)
  11574. #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */
  11575. #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */
  11576. #define I2C_ISR_BUSY_Pos (15U)
  11577. #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */
  11578. #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */
  11579. #define I2C_ISR_DIR_Pos (16U)
  11580. #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */
  11581. #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */
  11582. #define I2C_ISR_ADDCODE_Pos (17U)
  11583. #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */
  11584. #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */
  11585. /****************** Bit definition for I2C_ICR register *********************/
  11586. #define I2C_ICR_ADDRCF_Pos (3U)
  11587. #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */
  11588. #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */
  11589. #define I2C_ICR_NACKCF_Pos (4U)
  11590. #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */
  11591. #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */
  11592. #define I2C_ICR_STOPCF_Pos (5U)
  11593. #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */
  11594. #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */
  11595. #define I2C_ICR_BERRCF_Pos (8U)
  11596. #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */
  11597. #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */
  11598. #define I2C_ICR_ARLOCF_Pos (9U)
  11599. #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */
  11600. #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */
  11601. #define I2C_ICR_OVRCF_Pos (10U)
  11602. #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */
  11603. #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */
  11604. #define I2C_ICR_PECCF_Pos (11U)
  11605. #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */
  11606. #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */
  11607. #define I2C_ICR_TIMOUTCF_Pos (12U)
  11608. #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */
  11609. #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */
  11610. #define I2C_ICR_ALERTCF_Pos (13U)
  11611. #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */
  11612. #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */
  11613. /****************** Bit definition for I2C_PECR register *********************/
  11614. #define I2C_PECR_PEC_Pos (0U)
  11615. #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */
  11616. #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */
  11617. /****************** Bit definition for I2C_RXDR register *********************/
  11618. #define I2C_RXDR_RXDATA_Pos (0U)
  11619. #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */
  11620. #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */
  11621. /****************** Bit definition for I2C_TXDR register *********************/
  11622. #define I2C_TXDR_TXDATA_Pos (0U)
  11623. #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */
  11624. #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */
  11625. /******************************************************************************/
  11626. /* */
  11627. /* Independent WATCHDOG */
  11628. /* */
  11629. /******************************************************************************/
  11630. /******************* Bit definition for IWDG_KR register ********************/
  11631. #define IWDG_KR_KEY ((uint16_t)0xFFFF) /*!<Key value (write only, read 0000h) */
  11632. /******************* Bit definition for IWDG_PR register ********************/
  11633. #define IWDG_PR_PR ((uint8_t)0x07) /*!<PR[2:0] (Prescaler divider) */
  11634. #define IWDG_PR_PR_0 ((uint8_t)0x01) /*!<Bit 0 */
  11635. #define IWDG_PR_PR_1 ((uint8_t)0x02) /*!<Bit 1 */
  11636. #define IWDG_PR_PR_2 ((uint8_t)0x04) /*!<Bit 2 */
  11637. /******************* Bit definition for IWDG_RLR register *******************/
  11638. #define IWDG_RLR_RL ((uint16_t)0x0FFF) /*!<Watchdog counter reload value */
  11639. /******************* Bit definition for IWDG_SR register ********************/
  11640. #define IWDG_SR_PVU ((uint8_t)0x01) /*!< Watchdog prescaler value update */
  11641. #define IWDG_SR_RVU ((uint8_t)0x02) /*!< Watchdog counter reload value update */
  11642. #define IWDG_SR_WVU ((uint8_t)0x04) /*!< Watchdog counter window value update */
  11643. /******************* Bit definition for IWDG_KR register ********************/
  11644. #define IWDG_WINR_WIN ((uint16_t)0x0FFF) /*!< Watchdog counter window value */
  11645. /******************************************************************************/
  11646. /* */
  11647. /* JPEG Encoder/Decoder */
  11648. /* */
  11649. /******************************************************************************/
  11650. /******************** Bit definition for CONFR0 register ********************/
  11651. #define JPEG_CONFR0_START_Pos (0U)
  11652. #define JPEG_CONFR0_START_Msk (0x1U << JPEG_CONFR0_START_Pos) /*!< 0x00000001 */
  11653. #define JPEG_CONFR0_START JPEG_CONFR0_START_Msk /*!<Start/Stop bit */
  11654. /******************** Bit definition for CONFR1 register ********************/
  11655. #define JPEG_CONFR1_NF_Pos (0U)
  11656. #define JPEG_CONFR1_NF_Msk (0x3U << JPEG_CONFR1_NF_Pos) /*!< 0x00000003 */
  11657. #define JPEG_CONFR1_NF JPEG_CONFR1_NF_Msk /*!<Number of color components */
  11658. #define JPEG_CONFR1_NF_0 (0x1U << JPEG_CONFR1_NF_Pos) /*!< 0x00000001 */
  11659. #define JPEG_CONFR1_NF_1 (0x2U << JPEG_CONFR1_NF_Pos) /*!< 0x00000002 */
  11660. #define JPEG_CONFR1_DE_Pos (3U)
  11661. #define JPEG_CONFR1_DE_Msk (0x1U << JPEG_CONFR1_DE_Pos) /*!< 0x00000008 */
  11662. #define JPEG_CONFR1_DE JPEG_CONFR1_DE_Msk /*!<Decoding Enable */
  11663. #define JPEG_CONFR1_COLORSPACE_Pos (4U)
  11664. #define JPEG_CONFR1_COLORSPACE_Msk (0x3U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000030 */
  11665. #define JPEG_CONFR1_COLORSPACE JPEG_CONFR1_COLORSPACE_Msk /*!<Color Space */
  11666. #define JPEG_CONFR1_COLORSPACE_0 (0x1U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000010 */
  11667. #define JPEG_CONFR1_COLORSPACE_1 (0x2U << JPEG_CONFR1_COLORSPACE_Pos) /*!< 0x00000020 */
  11668. #define JPEG_CONFR1_NS_Pos (6U)
  11669. #define JPEG_CONFR1_NS_Msk (0x3U << JPEG_CONFR1_NS_Pos) /*!< 0x000000C0 */
  11670. #define JPEG_CONFR1_NS JPEG_CONFR1_NS_Msk /*!<Number of components for Scan */
  11671. #define JPEG_CONFR1_NS_0 (0x1U << JPEG_CONFR1_NS_Pos) /*!< 0x00000040 */
  11672. #define JPEG_CONFR1_NS_1 (0x2U << JPEG_CONFR1_NS_Pos) /*!< 0x00000080 */
  11673. #define JPEG_CONFR1_HDR_Pos (8U)
  11674. #define JPEG_CONFR1_HDR_Msk (0x1U << JPEG_CONFR1_HDR_Pos) /*!< 0x00000100 */
  11675. #define JPEG_CONFR1_HDR JPEG_CONFR1_HDR_Msk /*!<Header Processing On/Off */
  11676. #define JPEG_CONFR1_YSIZE_Pos (16U)
  11677. #define JPEG_CONFR1_YSIZE_Msk (0xFFFFU << JPEG_CONFR1_YSIZE_Pos) /*!< 0xFFFF0000 */
  11678. #define JPEG_CONFR1_YSIZE JPEG_CONFR1_YSIZE_Msk /*!<Number of lines in source image */
  11679. /******************** Bit definition for CONFR2 register ********************/
  11680. #define JPEG_CONFR2_NMCU_Pos (0U)
  11681. #define JPEG_CONFR2_NMCU_Msk (0x3FFFFFFU << JPEG_CONFR2_NMCU_Pos) /*!< 0x03FFFFFF */
  11682. #define JPEG_CONFR2_NMCU JPEG_CONFR2_NMCU_Msk /*!<Number of MCU units minus 1 to encode */
  11683. /******************** Bit definition for CONFR3 register ********************/
  11684. #define JPEG_CONFR3_XSIZE_Pos (16U)
  11685. #define JPEG_CONFR3_XSIZE_Msk (0xFFFFU << JPEG_CONFR3_XSIZE_Pos) /*!< 0xFFFF0000 */
  11686. #define JPEG_CONFR3_XSIZE JPEG_CONFR3_XSIZE_Msk /*!<Number of pixels per line */
  11687. /******************** Bit definition for CONFR4 register ********************/
  11688. #define JPEG_CONFR4_HD_Pos (0U)
  11689. #define JPEG_CONFR4_HD_Msk (0x1U << JPEG_CONFR4_HD_Pos) /*!< 0x00000001 */
  11690. #define JPEG_CONFR4_HD JPEG_CONFR4_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11691. #define JPEG_CONFR4_HA_Pos (1U)
  11692. #define JPEG_CONFR4_HA_Msk (0x1U << JPEG_CONFR4_HA_Pos) /*!< 0x00000002 */
  11693. #define JPEG_CONFR4_HA JPEG_CONFR4_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11694. #define JPEG_CONFR4_QT_Pos (2U)
  11695. #define JPEG_CONFR4_QT_Msk (0x3U << JPEG_CONFR4_QT_Pos) /*!< 0x0000000C */
  11696. #define JPEG_CONFR4_QT JPEG_CONFR4_QT_Msk /*!<Selects quantization table associated with a color component */
  11697. #define JPEG_CONFR4_QT_0 (0x1U << JPEG_CONFR4_QT_Pos) /*!< 0x00000004 */
  11698. #define JPEG_CONFR4_QT_1 (0x2U << JPEG_CONFR4_QT_Pos) /*!< 0x00000008 */
  11699. #define JPEG_CONFR4_NB_Pos (4U)
  11700. #define JPEG_CONFR4_NB_Msk (0xFU << JPEG_CONFR4_NB_Pos) /*!< 0x000000F0 */
  11701. #define JPEG_CONFR4_NB JPEG_CONFR4_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11702. #define JPEG_CONFR4_NB_0 (0x1U << JPEG_CONFR4_NB_Pos) /*!< 0x00000010 */
  11703. #define JPEG_CONFR4_NB_1 (0x2U << JPEG_CONFR4_NB_Pos) /*!< 0x00000020 */
  11704. #define JPEG_CONFR4_NB_2 (0x4U << JPEG_CONFR4_NB_Pos) /*!< 0x00000040 */
  11705. #define JPEG_CONFR4_NB_3 (0x8U << JPEG_CONFR4_NB_Pos) /*!< 0x00000080 */
  11706. #define JPEG_CONFR4_VSF_Pos (8U)
  11707. #define JPEG_CONFR4_VSF_Msk (0xFU << JPEG_CONFR4_VSF_Pos) /*!< 0x00000F00 */
  11708. #define JPEG_CONFR4_VSF JPEG_CONFR4_VSF_Msk /*!<Vertical sampling factor for component 1 */
  11709. #define JPEG_CONFR4_VSF_0 (0x1U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000100 */
  11710. #define JPEG_CONFR4_VSF_1 (0x2U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000200 */
  11711. #define JPEG_CONFR4_VSF_2 (0x4U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000400 */
  11712. #define JPEG_CONFR4_VSF_3 (0x8U << JPEG_CONFR4_VSF_Pos) /*!< 0x00000800 */
  11713. #define JPEG_CONFR4_HSF_Pos (12U)
  11714. #define JPEG_CONFR4_HSF_Msk (0xFU << JPEG_CONFR4_HSF_Pos) /*!< 0x0000F000 */
  11715. #define JPEG_CONFR4_HSF JPEG_CONFR4_HSF_Msk /*!<Horizontal sampling factor for component 1 */
  11716. #define JPEG_CONFR4_HSF_0 (0x1U << JPEG_CONFR4_HSF_Pos) /*!< 0x00001000 */
  11717. #define JPEG_CONFR4_HSF_1 (0x2U << JPEG_CONFR4_HSF_Pos) /*!< 0x00002000 */
  11718. #define JPEG_CONFR4_HSF_2 (0x4U << JPEG_CONFR4_HSF_Pos) /*!< 0x00004000 */
  11719. #define JPEG_CONFR4_HSF_3 (0x8U << JPEG_CONFR4_HSF_Pos) /*!< 0x00008000 */
  11720. /******************** Bit definition for CONFR5 register ********************/
  11721. #define JPEG_CONFR5_HD_Pos (0U)
  11722. #define JPEG_CONFR5_HD_Msk (0x1U << JPEG_CONFR5_HD_Pos) /*!< 0x00000001 */
  11723. #define JPEG_CONFR5_HD JPEG_CONFR5_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11724. #define JPEG_CONFR5_HA_Pos (1U)
  11725. #define JPEG_CONFR5_HA_Msk (0x1U << JPEG_CONFR5_HA_Pos) /*!< 0x00000002 */
  11726. #define JPEG_CONFR5_HA JPEG_CONFR5_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11727. #define JPEG_CONFR5_QT_Pos (2U)
  11728. #define JPEG_CONFR5_QT_Msk (0x3U << JPEG_CONFR5_QT_Pos) /*!< 0x0000000C */
  11729. #define JPEG_CONFR5_QT JPEG_CONFR5_QT_Msk /*!<Selects quantization table associated with a color component */
  11730. #define JPEG_CONFR5_QT_0 (0x1U << JPEG_CONFR5_QT_Pos) /*!< 0x00000004 */
  11731. #define JPEG_CONFR5_QT_1 (0x2U << JPEG_CONFR5_QT_Pos) /*!< 0x00000008 */
  11732. #define JPEG_CONFR5_NB_Pos (4U)
  11733. #define JPEG_CONFR5_NB_Msk (0xFU << JPEG_CONFR5_NB_Pos) /*!< 0x000000F0 */
  11734. #define JPEG_CONFR5_NB JPEG_CONFR5_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11735. #define JPEG_CONFR5_NB_0 (0x1U << JPEG_CONFR5_NB_Pos) /*!< 0x00000010 */
  11736. #define JPEG_CONFR5_NB_1 (0x2U << JPEG_CONFR5_NB_Pos) /*!< 0x00000020 */
  11737. #define JPEG_CONFR5_NB_2 (0x4U << JPEG_CONFR5_NB_Pos) /*!< 0x00000040 */
  11738. #define JPEG_CONFR5_NB_3 (0x8U << JPEG_CONFR5_NB_Pos) /*!< 0x00000080 */
  11739. #define JPEG_CONFR5_VSF_Pos (8U)
  11740. #define JPEG_CONFR5_VSF_Msk (0xFU << JPEG_CONFR5_VSF_Pos) /*!< 0x00000F00 */
  11741. #define JPEG_CONFR5_VSF JPEG_CONFR5_VSF_Msk /*!<Vertical sampling factor for component 2 */
  11742. #define JPEG_CONFR5_VSF_0 (0x1U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000100 */
  11743. #define JPEG_CONFR5_VSF_1 (0x2U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000200 */
  11744. #define JPEG_CONFR5_VSF_2 (0x4U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000400 */
  11745. #define JPEG_CONFR5_VSF_3 (0x8U << JPEG_CONFR5_VSF_Pos) /*!< 0x00000800 */
  11746. #define JPEG_CONFR5_HSF_Pos (12U)
  11747. #define JPEG_CONFR5_HSF_Msk (0xFU << JPEG_CONFR5_HSF_Pos) /*!< 0x0000F000 */
  11748. #define JPEG_CONFR5_HSF JPEG_CONFR5_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  11749. #define JPEG_CONFR5_HSF_0 (0x1U << JPEG_CONFR5_HSF_Pos) /*!< 0x00001000 */
  11750. #define JPEG_CONFR5_HSF_1 (0x2U << JPEG_CONFR5_HSF_Pos) /*!< 0x00002000 */
  11751. #define JPEG_CONFR5_HSF_2 (0x4U << JPEG_CONFR5_HSF_Pos) /*!< 0x00004000 */
  11752. #define JPEG_CONFR5_HSF_3 (0x8U << JPEG_CONFR5_HSF_Pos) /*!< 0x00008000 */
  11753. /******************** Bit definition for CONFR6 register ********************/
  11754. #define JPEG_CONFR6_HD_Pos (0U)
  11755. #define JPEG_CONFR6_HD_Msk (0x1U << JPEG_CONFR6_HD_Pos) /*!< 0x00000001 */
  11756. #define JPEG_CONFR6_HD JPEG_CONFR6_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11757. #define JPEG_CONFR6_HA_Pos (1U)
  11758. #define JPEG_CONFR6_HA_Msk (0x1U << JPEG_CONFR6_HA_Pos) /*!< 0x00000002 */
  11759. #define JPEG_CONFR6_HA JPEG_CONFR6_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11760. #define JPEG_CONFR6_QT_Pos (2U)
  11761. #define JPEG_CONFR6_QT_Msk (0x3U << JPEG_CONFR6_QT_Pos) /*!< 0x0000000C */
  11762. #define JPEG_CONFR6_QT JPEG_CONFR6_QT_Msk /*!<Selects quantization table associated with a color component */
  11763. #define JPEG_CONFR6_QT_0 (0x1U << JPEG_CONFR6_QT_Pos) /*!< 0x00000004 */
  11764. #define JPEG_CONFR6_QT_1 (0x2U << JPEG_CONFR6_QT_Pos) /*!< 0x00000008 */
  11765. #define JPEG_CONFR6_NB_Pos (4U)
  11766. #define JPEG_CONFR6_NB_Msk (0xFU << JPEG_CONFR6_NB_Pos) /*!< 0x000000F0 */
  11767. #define JPEG_CONFR6_NB JPEG_CONFR6_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11768. #define JPEG_CONFR6_NB_0 (0x1U << JPEG_CONFR6_NB_Pos) /*!< 0x00000010 */
  11769. #define JPEG_CONFR6_NB_1 (0x2U << JPEG_CONFR6_NB_Pos) /*!< 0x00000020 */
  11770. #define JPEG_CONFR6_NB_2 (0x4U << JPEG_CONFR6_NB_Pos) /*!< 0x00000040 */
  11771. #define JPEG_CONFR6_NB_3 (0x8U << JPEG_CONFR6_NB_Pos) /*!< 0x00000080 */
  11772. #define JPEG_CONFR6_VSF_Pos (8U)
  11773. #define JPEG_CONFR6_VSF_Msk (0xFU << JPEG_CONFR6_VSF_Pos) /*!< 0x00000F00 */
  11774. #define JPEG_CONFR6_VSF JPEG_CONFR6_VSF_Msk /*!<Vertical sampling factor for component 2 */
  11775. #define JPEG_CONFR6_VSF_0 (0x1U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000100 */
  11776. #define JPEG_CONFR6_VSF_1 (0x2U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000200 */
  11777. #define JPEG_CONFR6_VSF_2 (0x4U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000400 */
  11778. #define JPEG_CONFR6_VSF_3 (0x8U << JPEG_CONFR6_VSF_Pos) /*!< 0x00000800 */
  11779. #define JPEG_CONFR6_HSF_Pos (12U)
  11780. #define JPEG_CONFR6_HSF_Msk (0xFU << JPEG_CONFR6_HSF_Pos) /*!< 0x0000F000 */
  11781. #define JPEG_CONFR6_HSF JPEG_CONFR6_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  11782. #define JPEG_CONFR6_HSF_0 (0x1U << JPEG_CONFR6_HSF_Pos) /*!< 0x00001000 */
  11783. #define JPEG_CONFR6_HSF_1 (0x2U << JPEG_CONFR6_HSF_Pos) /*!< 0x00002000 */
  11784. #define JPEG_CONFR6_HSF_2 (0x4U << JPEG_CONFR6_HSF_Pos) /*!< 0x00004000 */
  11785. #define JPEG_CONFR6_HSF_3 (0x8U << JPEG_CONFR6_HSF_Pos) /*!< 0x00008000 */
  11786. /******************** Bit definition for CONFR7 register ********************/
  11787. #define JPEG_CONFR7_HD_Pos (0U)
  11788. #define JPEG_CONFR7_HD_Msk (0x1U << JPEG_CONFR7_HD_Pos) /*!< 0x00000001 */
  11789. #define JPEG_CONFR7_HD JPEG_CONFR7_HD_Msk /*!<Selects the Huffman table for encoding the DC coefficients */
  11790. #define JPEG_CONFR7_HA_Pos (1U)
  11791. #define JPEG_CONFR7_HA_Msk (0x1U << JPEG_CONFR7_HA_Pos) /*!< 0x00000002 */
  11792. #define JPEG_CONFR7_HA JPEG_CONFR7_HA_Msk /*!<Selects the Huffman table for encoding the AC coefficients */
  11793. #define JPEG_CONFR7_QT_Pos (2U)
  11794. #define JPEG_CONFR7_QT_Msk (0x3U << JPEG_CONFR7_QT_Pos) /*!< 0x0000000C */
  11795. #define JPEG_CONFR7_QT JPEG_CONFR7_QT_Msk /*!<Selects quantization table associated with a color component */
  11796. #define JPEG_CONFR7_QT_0 (0x1U << JPEG_CONFR7_QT_Pos) /*!< 0x00000004 */
  11797. #define JPEG_CONFR7_QT_1 (0x2U << JPEG_CONFR7_QT_Pos) /*!< 0x00000008 */
  11798. #define JPEG_CONFR7_NB_Pos (4U)
  11799. #define JPEG_CONFR7_NB_Msk (0xFU << JPEG_CONFR7_NB_Pos) /*!< 0x000000F0 */
  11800. #define JPEG_CONFR7_NB JPEG_CONFR7_NB_Msk /*!<Number of data units minus 1 that belong to a particular color in the MCU */
  11801. #define JPEG_CONFR7_NB_0 (0x1U << JPEG_CONFR7_NB_Pos) /*!< 0x00000010 */
  11802. #define JPEG_CONFR7_NB_1 (0x2U << JPEG_CONFR7_NB_Pos) /*!< 0x00000020 */
  11803. #define JPEG_CONFR7_NB_2 (0x4U << JPEG_CONFR7_NB_Pos) /*!< 0x00000040 */
  11804. #define JPEG_CONFR7_NB_3 (0x8U << JPEG_CONFR7_NB_Pos) /*!< 0x00000080 */
  11805. #define JPEG_CONFR7_VSF_Pos (8U)
  11806. #define JPEG_CONFR7_VSF_Msk (0xFU << JPEG_CONFR7_VSF_Pos) /*!< 0x00000F00 */
  11807. #define JPEG_CONFR7_VSF JPEG_CONFR7_VSF_Msk /*!<Vertical sampling factor for component 2 */
  11808. #define JPEG_CONFR7_VSF_0 (0x1U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000100 */
  11809. #define JPEG_CONFR7_VSF_1 (0x2U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000200 */
  11810. #define JPEG_CONFR7_VSF_2 (0x4U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000400 */
  11811. #define JPEG_CONFR7_VSF_3 (0x8U << JPEG_CONFR7_VSF_Pos) /*!< 0x00000800 */
  11812. #define JPEG_CONFR7_HSF_Pos (12U)
  11813. #define JPEG_CONFR7_HSF_Msk (0xFU << JPEG_CONFR7_HSF_Pos) /*!< 0x0000F000 */
  11814. #define JPEG_CONFR7_HSF JPEG_CONFR7_HSF_Msk /*!<Horizontal sampling factor for component 2 */
  11815. #define JPEG_CONFR7_HSF_0 (0x1U << JPEG_CONFR7_HSF_Pos) /*!< 0x00001000 */
  11816. #define JPEG_CONFR7_HSF_1 (0x2U << JPEG_CONFR7_HSF_Pos) /*!< 0x00002000 */
  11817. #define JPEG_CONFR7_HSF_2 (0x4U << JPEG_CONFR7_HSF_Pos) /*!< 0x00004000 */
  11818. #define JPEG_CONFR7_HSF_3 (0x8U << JPEG_CONFR7_HSF_Pos) /*!< 0x00008000 */
  11819. /******************** Bit definition for CR register ********************/
  11820. #define JPEG_CR_JCEN_Pos (0U)
  11821. #define JPEG_CR_JCEN_Msk (0x1U << JPEG_CR_JCEN_Pos) /*!< 0x00000001 */
  11822. #define JPEG_CR_JCEN JPEG_CR_JCEN_Msk /*!<Enable the JPEG Codec Core */
  11823. #define JPEG_CR_IFTIE_Pos (1U)
  11824. #define JPEG_CR_IFTIE_Msk (0x1U << JPEG_CR_IFTIE_Pos) /*!< 0x00000002 */
  11825. #define JPEG_CR_IFTIE JPEG_CR_IFTIE_Msk /*!<Input FIFO Threshold Interrupt Enable */
  11826. #define JPEG_CR_IFNFIE_Pos (2U)
  11827. #define JPEG_CR_IFNFIE_Msk (0x1U << JPEG_CR_IFNFIE_Pos) /*!< 0x00000004 */
  11828. #define JPEG_CR_IFNFIE JPEG_CR_IFNFIE_Msk /*!<Input FIFO Not Full Interrupt Enable */
  11829. #define JPEG_CR_OFTIE_Pos (3U)
  11830. #define JPEG_CR_OFTIE_Msk (0x1U << JPEG_CR_OFTIE_Pos) /*!< 0x00000008 */
  11831. #define JPEG_CR_OFTIE JPEG_CR_OFTIE_Msk /*!<Output FIFO Threshold Interrupt Enable */
  11832. #define JPEG_CR_OFNEIE_Pos (4U)
  11833. #define JPEG_CR_OFNEIE_Msk (0x1U << JPEG_CR_OFNEIE_Pos) /*!< 0x00000010 */
  11834. #define JPEG_CR_OFNEIE JPEG_CR_OFNEIE_Msk /*!<Output FIFO Not Empty Interrupt Enable */
  11835. #define JPEG_CR_EOCIE_Pos (5U)
  11836. #define JPEG_CR_EOCIE_Msk (0x1U << JPEG_CR_EOCIE_Pos) /*!< 0x00000020 */
  11837. #define JPEG_CR_EOCIE JPEG_CR_EOCIE_Msk /*!<End of Conversion Interrupt Enable */
  11838. #define JPEG_CR_HPDIE_Pos (6U)
  11839. #define JPEG_CR_HPDIE_Msk (0x1U << JPEG_CR_HPDIE_Pos) /*!< 0x00000040 */
  11840. #define JPEG_CR_HPDIE JPEG_CR_HPDIE_Msk /*!<Header Parsing Done Interrupt Enable */
  11841. #define JPEG_CR_IFF_Pos (13U)
  11842. #define JPEG_CR_IFF_Msk (0x1U << JPEG_CR_IFF_Pos) /*!< 0x00002000 */
  11843. #define JPEG_CR_IFF JPEG_CR_IFF_Msk /*!<Flush the input FIFO */
  11844. #define JPEG_CR_OFF_Pos (14U)
  11845. #define JPEG_CR_OFF_Msk (0x1U << JPEG_CR_OFF_Pos) /*!< 0x00004000 */
  11846. #define JPEG_CR_OFF JPEG_CR_OFF_Msk /*!<Flush the output FIFO */
  11847. /******************** Bit definition for SR register ********************/
  11848. #define JPEG_SR_IFTF_Pos (1U)
  11849. #define JPEG_SR_IFTF_Msk (0x1U << JPEG_SR_IFTF_Pos) /*!< 0x00000002 */
  11850. #define JPEG_SR_IFTF JPEG_SR_IFTF_Msk /*!<Input FIFO is not full and is bellow its threshold flag */
  11851. #define JPEG_SR_IFNFF_Pos (2U)
  11852. #define JPEG_SR_IFNFF_Msk (0x1U << JPEG_SR_IFNFF_Pos) /*!< 0x00000004 */
  11853. #define JPEG_SR_IFNFF JPEG_SR_IFNFF_Msk /*!<Input FIFO Not Full Flag, a data can be written */
  11854. #define JPEG_SR_OFTF_Pos (3U)
  11855. #define JPEG_SR_OFTF_Msk (0x1U << JPEG_SR_OFTF_Pos) /*!< 0x00000008 */
  11856. #define JPEG_SR_OFTF JPEG_SR_OFTF_Msk /*!<Output FIFO is not empty and has reach its threshold */
  11857. #define JPEG_SR_OFNEF_Pos (4U)
  11858. #define JPEG_SR_OFNEF_Msk (0x1U << JPEG_SR_OFNEF_Pos) /*!< 0x00000010 */
  11859. #define JPEG_SR_OFNEF JPEG_SR_OFNEF_Msk /*!<Output FIFO is not empty, a data is available */
  11860. #define JPEG_SR_EOCF_Pos (5U)
  11861. #define JPEG_SR_EOCF_Msk (0x1U << JPEG_SR_EOCF_Pos) /*!< 0x00000020 */
  11862. #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 */
  11863. #define JPEG_SR_HPDF_Pos (6U)
  11864. #define JPEG_SR_HPDF_Msk (0x1U << JPEG_SR_HPDF_Pos) /*!< 0x00000040 */
  11865. #define JPEG_SR_HPDF JPEG_SR_HPDF_Msk /*!<JPEG Codec has finished the parsing of the headers and the internal registers have been updated */
  11866. #define JPEG_SR_COF_Pos (7U)
  11867. #define JPEG_SR_COF_Msk (0x1U << JPEG_SR_COF_Pos) /*!< 0x00000080 */
  11868. #define JPEG_SR_COF JPEG_SR_COF_Msk /*!<JPEG Codec operation on going flag */
  11869. /******************** Bit definition for CFR register ********************/
  11870. #define JPEG_CFR_CEOCF_Pos (4U)
  11871. #define JPEG_CFR_CEOCF_Msk (0x1U << JPEG_CFR_CEOCF_Pos) /*!< 0x00000010 */
  11872. #define JPEG_CFR_CEOCF JPEG_CFR_CEOCF_Msk /*!<Clear End of Conversion Flag */
  11873. #define JPEG_CFR_CHPDF_Pos (5U)
  11874. #define JPEG_CFR_CHPDF_Msk (0x1U << JPEG_CFR_CHPDF_Pos) /*!< 0x00000020 */
  11875. #define JPEG_CFR_CHPDF JPEG_CFR_CHPDF_Msk /*!<Clear Header Parsing Done Flag */
  11876. /******************** Bit definition for DIR register ********************/
  11877. #define JPEG_DIR_DATAIN_Pos (0U)
  11878. #define JPEG_DIR_DATAIN_Msk (0xFFFFFFFFU << JPEG_DIR_DATAIN_Pos) /*!< 0xFFFFFFFF */
  11879. #define JPEG_DIR_DATAIN JPEG_DIR_DATAIN_Msk /*!<Data Input FIFO */
  11880. /******************** Bit definition for DOR register ********************/
  11881. #define JPEG_DOR_DATAOUT_Pos (0U)
  11882. #define JPEG_DOR_DATAOUT_Msk (0xFFFFFFFFU << JPEG_DOR_DATAOUT_Pos) /*!< 0xFFFFFFFF */
  11883. #define JPEG_DOR_DATAOUT JPEG_DOR_DATAOUT_Msk /*!<Data Output FIFO */
  11884. /******************************************************************************/
  11885. /* */
  11886. /* LCD-TFT Display Controller (LTDC) */
  11887. /* */
  11888. /******************************************************************************/
  11889. /******************** Bit definition for LTDC_SSCR register *****************/
  11890. #define LTDC_SSCR_VSH_Pos (0U)
  11891. #define LTDC_SSCR_VSH_Msk (0x7FFU << LTDC_SSCR_VSH_Pos) /*!< 0x000007FF */
  11892. #define LTDC_SSCR_VSH LTDC_SSCR_VSH_Msk /*!< Vertical Synchronization Height */
  11893. #define LTDC_SSCR_HSW_Pos (16U)
  11894. #define LTDC_SSCR_HSW_Msk (0xFFFU << LTDC_SSCR_HSW_Pos) /*!< 0x0FFF0000 */
  11895. #define LTDC_SSCR_HSW LTDC_SSCR_HSW_Msk /*!< Horizontal Synchronization Width */
  11896. /******************** Bit definition for LTDC_BPCR register *****************/
  11897. #define LTDC_BPCR_AVBP_Pos (0U)
  11898. #define LTDC_BPCR_AVBP_Msk (0x7FFU << LTDC_BPCR_AVBP_Pos) /*!< 0x000007FF */
  11899. #define LTDC_BPCR_AVBP LTDC_BPCR_AVBP_Msk /*!< Accumulated Vertical Back Porch */
  11900. #define LTDC_BPCR_AHBP_Pos (16U)
  11901. #define LTDC_BPCR_AHBP_Msk (0xFFFU << LTDC_BPCR_AHBP_Pos) /*!< 0x0FFF0000 */
  11902. #define LTDC_BPCR_AHBP LTDC_BPCR_AHBP_Msk /*!< Accumulated Horizontal Back Porch */
  11903. /******************** Bit definition for LTDC_AWCR register *****************/
  11904. #define LTDC_AWCR_AAH_Pos (0U)
  11905. #define LTDC_AWCR_AAH_Msk (0x7FFU << LTDC_AWCR_AAH_Pos) /*!< 0x000007FF */
  11906. #define LTDC_AWCR_AAH LTDC_AWCR_AAH_Msk /*!< Accumulated Active heigh */
  11907. #define LTDC_AWCR_AAW_Pos (16U)
  11908. #define LTDC_AWCR_AAW_Msk (0xFFFU << LTDC_AWCR_AAW_Pos) /*!< 0x0FFF0000 */
  11909. #define LTDC_AWCR_AAW LTDC_AWCR_AAW_Msk /*!< Accumulated Active Width */
  11910. /******************** Bit definition for LTDC_TWCR register *****************/
  11911. #define LTDC_TWCR_TOTALH_Pos (0U)
  11912. #define LTDC_TWCR_TOTALH_Msk (0x7FFU << LTDC_TWCR_TOTALH_Pos) /*!< 0x000007FF */
  11913. #define LTDC_TWCR_TOTALH LTDC_TWCR_TOTALH_Msk /*!< Total Heigh */
  11914. #define LTDC_TWCR_TOTALW_Pos (16U)
  11915. #define LTDC_TWCR_TOTALW_Msk (0xFFFU << LTDC_TWCR_TOTALW_Pos) /*!< 0x0FFF0000 */
  11916. #define LTDC_TWCR_TOTALW LTDC_TWCR_TOTALW_Msk /*!< Total Width */
  11917. /******************** Bit definition for LTDC_GCR register ******************/
  11918. #define LTDC_GCR_LTDCEN_Pos (0U)
  11919. #define LTDC_GCR_LTDCEN_Msk (0x1U << LTDC_GCR_LTDCEN_Pos) /*!< 0x00000001 */
  11920. #define LTDC_GCR_LTDCEN LTDC_GCR_LTDCEN_Msk /*!< LCD-TFT controller enable bit */
  11921. #define LTDC_GCR_DBW_Pos (4U)
  11922. #define LTDC_GCR_DBW_Msk (0x7U << LTDC_GCR_DBW_Pos) /*!< 0x00000070 */
  11923. #define LTDC_GCR_DBW LTDC_GCR_DBW_Msk /*!< Dither Blue Width */
  11924. #define LTDC_GCR_DGW_Pos (8U)
  11925. #define LTDC_GCR_DGW_Msk (0x7U << LTDC_GCR_DGW_Pos) /*!< 0x00000700 */
  11926. #define LTDC_GCR_DGW LTDC_GCR_DGW_Msk /*!< Dither Green Width */
  11927. #define LTDC_GCR_DRW_Pos (12U)
  11928. #define LTDC_GCR_DRW_Msk (0x7U << LTDC_GCR_DRW_Pos) /*!< 0x00007000 */
  11929. #define LTDC_GCR_DRW LTDC_GCR_DRW_Msk /*!< Dither Red Width */
  11930. #define LTDC_GCR_DEN_Pos (16U)
  11931. #define LTDC_GCR_DEN_Msk (0x1U << LTDC_GCR_DEN_Pos) /*!< 0x00010000 */
  11932. #define LTDC_GCR_DEN LTDC_GCR_DEN_Msk /*!< Dither Enable */
  11933. #define LTDC_GCR_PCPOL_Pos (28U)
  11934. #define LTDC_GCR_PCPOL_Msk (0x1U << LTDC_GCR_PCPOL_Pos) /*!< 0x10000000 */
  11935. #define LTDC_GCR_PCPOL LTDC_GCR_PCPOL_Msk /*!< Pixel Clock Polarity */
  11936. #define LTDC_GCR_DEPOL_Pos (29U)
  11937. #define LTDC_GCR_DEPOL_Msk (0x1U << LTDC_GCR_DEPOL_Pos) /*!< 0x20000000 */
  11938. #define LTDC_GCR_DEPOL LTDC_GCR_DEPOL_Msk /*!< Data Enable Polarity */
  11939. #define LTDC_GCR_VSPOL_Pos (30U)
  11940. #define LTDC_GCR_VSPOL_Msk (0x1U << LTDC_GCR_VSPOL_Pos) /*!< 0x40000000 */
  11941. #define LTDC_GCR_VSPOL LTDC_GCR_VSPOL_Msk /*!< Vertical Synchronization Polarity */
  11942. #define LTDC_GCR_HSPOL_Pos (31U)
  11943. #define LTDC_GCR_HSPOL_Msk (0x1U << LTDC_GCR_HSPOL_Pos) /*!< 0x80000000 */
  11944. #define LTDC_GCR_HSPOL LTDC_GCR_HSPOL_Msk /*!< Horizontal Synchronization Polarity */
  11945. /******************** Bit definition for LTDC_SRCR register *****************/
  11946. #define LTDC_SRCR_IMR_Pos (0U)
  11947. #define LTDC_SRCR_IMR_Msk (0x1U << LTDC_SRCR_IMR_Pos) /*!< 0x00000001 */
  11948. #define LTDC_SRCR_IMR LTDC_SRCR_IMR_Msk /*!< Immediate Reload */
  11949. #define LTDC_SRCR_VBR_Pos (1U)
  11950. #define LTDC_SRCR_VBR_Msk (0x1U << LTDC_SRCR_VBR_Pos) /*!< 0x00000002 */
  11951. #define LTDC_SRCR_VBR LTDC_SRCR_VBR_Msk /*!< Vertical Blanking Reload */
  11952. /******************** Bit definition for LTDC_BCCR register *****************/
  11953. #define LTDC_BCCR_BCBLUE_Pos (0U)
  11954. #define LTDC_BCCR_BCBLUE_Msk (0xFFU << LTDC_BCCR_BCBLUE_Pos) /*!< 0x000000FF */
  11955. #define LTDC_BCCR_BCBLUE LTDC_BCCR_BCBLUE_Msk /*!< Background Blue value */
  11956. #define LTDC_BCCR_BCGREEN_Pos (8U)
  11957. #define LTDC_BCCR_BCGREEN_Msk (0xFFU << LTDC_BCCR_BCGREEN_Pos) /*!< 0x0000FF00 */
  11958. #define LTDC_BCCR_BCGREEN LTDC_BCCR_BCGREEN_Msk /*!< Background Green value */
  11959. #define LTDC_BCCR_BCRED_Pos (16U)
  11960. #define LTDC_BCCR_BCRED_Msk (0xFFU << LTDC_BCCR_BCRED_Pos) /*!< 0x00FF0000 */
  11961. #define LTDC_BCCR_BCRED LTDC_BCCR_BCRED_Msk /*!< Background Red value */
  11962. /******************** Bit definition for LTDC_IER register ******************/
  11963. #define LTDC_IER_LIE_Pos (0U)
  11964. #define LTDC_IER_LIE_Msk (0x1U << LTDC_IER_LIE_Pos) /*!< 0x00000001 */
  11965. #define LTDC_IER_LIE LTDC_IER_LIE_Msk /*!< Line Interrupt Enable */
  11966. #define LTDC_IER_FUIE_Pos (1U)
  11967. #define LTDC_IER_FUIE_Msk (0x1U << LTDC_IER_FUIE_Pos) /*!< 0x00000002 */
  11968. #define LTDC_IER_FUIE LTDC_IER_FUIE_Msk /*!< FIFO Underrun Interrupt Enable */
  11969. #define LTDC_IER_TERRIE_Pos (2U)
  11970. #define LTDC_IER_TERRIE_Msk (0x1U << LTDC_IER_TERRIE_Pos) /*!< 0x00000004 */
  11971. #define LTDC_IER_TERRIE LTDC_IER_TERRIE_Msk /*!< Transfer Error Interrupt Enable */
  11972. #define LTDC_IER_RRIE_Pos (3U)
  11973. #define LTDC_IER_RRIE_Msk (0x1U << LTDC_IER_RRIE_Pos) /*!< 0x00000008 */
  11974. #define LTDC_IER_RRIE LTDC_IER_RRIE_Msk /*!< Register Reload interrupt enable */
  11975. /******************** Bit definition for LTDC_ISR register ******************/
  11976. #define LTDC_ISR_LIF_Pos (0U)
  11977. #define LTDC_ISR_LIF_Msk (0x1U << LTDC_ISR_LIF_Pos) /*!< 0x00000001 */
  11978. #define LTDC_ISR_LIF LTDC_ISR_LIF_Msk /*!< Line Interrupt Flag */
  11979. #define LTDC_ISR_FUIF_Pos (1U)
  11980. #define LTDC_ISR_FUIF_Msk (0x1U << LTDC_ISR_FUIF_Pos) /*!< 0x00000002 */
  11981. #define LTDC_ISR_FUIF LTDC_ISR_FUIF_Msk /*!< FIFO Underrun Interrupt Flag */
  11982. #define LTDC_ISR_TERRIF_Pos (2U)
  11983. #define LTDC_ISR_TERRIF_Msk (0x1U << LTDC_ISR_TERRIF_Pos) /*!< 0x00000004 */
  11984. #define LTDC_ISR_TERRIF LTDC_ISR_TERRIF_Msk /*!< Transfer Error Interrupt Flag */
  11985. #define LTDC_ISR_RRIF_Pos (3U)
  11986. #define LTDC_ISR_RRIF_Msk (0x1U << LTDC_ISR_RRIF_Pos) /*!< 0x00000008 */
  11987. #define LTDC_ISR_RRIF LTDC_ISR_RRIF_Msk /*!< Register Reload interrupt Flag */
  11988. /******************** Bit definition for LTDC_ICR register ******************/
  11989. #define LTDC_ICR_CLIF_Pos (0U)
  11990. #define LTDC_ICR_CLIF_Msk (0x1U << LTDC_ICR_CLIF_Pos) /*!< 0x00000001 */
  11991. #define LTDC_ICR_CLIF LTDC_ICR_CLIF_Msk /*!< Clears the Line Interrupt Flag */
  11992. #define LTDC_ICR_CFUIF_Pos (1U)
  11993. #define LTDC_ICR_CFUIF_Msk (0x1U << LTDC_ICR_CFUIF_Pos) /*!< 0x00000002 */
  11994. #define LTDC_ICR_CFUIF LTDC_ICR_CFUIF_Msk /*!< Clears the FIFO Underrun Interrupt Flag */
  11995. #define LTDC_ICR_CTERRIF_Pos (2U)
  11996. #define LTDC_ICR_CTERRIF_Msk (0x1U << LTDC_ICR_CTERRIF_Pos) /*!< 0x00000004 */
  11997. #define LTDC_ICR_CTERRIF LTDC_ICR_CTERRIF_Msk /*!< Clears the Transfer Error Interrupt Flag */
  11998. #define LTDC_ICR_CRRIF_Pos (3U)
  11999. #define LTDC_ICR_CRRIF_Msk (0x1U << LTDC_ICR_CRRIF_Pos) /*!< 0x00000008 */
  12000. #define LTDC_ICR_CRRIF LTDC_ICR_CRRIF_Msk /*!< Clears Register Reload interrupt Flag */
  12001. /******************** Bit definition for LTDC_LIPCR register ****************/
  12002. #define LTDC_LIPCR_LIPOS_Pos (0U)
  12003. #define LTDC_LIPCR_LIPOS_Msk (0x7FFU << LTDC_LIPCR_LIPOS_Pos) /*!< 0x000007FF */
  12004. #define LTDC_LIPCR_LIPOS LTDC_LIPCR_LIPOS_Msk /*!< Line Interrupt Position */
  12005. /******************** Bit definition for LTDC_CPSR register *****************/
  12006. #define LTDC_CPSR_CYPOS_Pos (0U)
  12007. #define LTDC_CPSR_CYPOS_Msk (0xFFFFU << LTDC_CPSR_CYPOS_Pos) /*!< 0x0000FFFF */
  12008. #define LTDC_CPSR_CYPOS LTDC_CPSR_CYPOS_Msk /*!< Current Y Position */
  12009. #define LTDC_CPSR_CXPOS_Pos (16U)
  12010. #define LTDC_CPSR_CXPOS_Msk (0xFFFFU << LTDC_CPSR_CXPOS_Pos) /*!< 0xFFFF0000 */
  12011. #define LTDC_CPSR_CXPOS LTDC_CPSR_CXPOS_Msk /*!< Current X Position */
  12012. /******************** Bit definition for LTDC_CDSR register *****************/
  12013. #define LTDC_CDSR_VDES_Pos (0U)
  12014. #define LTDC_CDSR_VDES_Msk (0x1U << LTDC_CDSR_VDES_Pos) /*!< 0x00000001 */
  12015. #define LTDC_CDSR_VDES LTDC_CDSR_VDES_Msk /*!< Vertical Data Enable Status */
  12016. #define LTDC_CDSR_HDES_Pos (1U)
  12017. #define LTDC_CDSR_HDES_Msk (0x1U << LTDC_CDSR_HDES_Pos) /*!< 0x00000002 */
  12018. #define LTDC_CDSR_HDES LTDC_CDSR_HDES_Msk /*!< Horizontal Data Enable Status */
  12019. #define LTDC_CDSR_VSYNCS_Pos (2U)
  12020. #define LTDC_CDSR_VSYNCS_Msk (0x1U << LTDC_CDSR_VSYNCS_Pos) /*!< 0x00000004 */
  12021. #define LTDC_CDSR_VSYNCS LTDC_CDSR_VSYNCS_Msk /*!< Vertical Synchronization Status */
  12022. #define LTDC_CDSR_HSYNCS_Pos (3U)
  12023. #define LTDC_CDSR_HSYNCS_Msk (0x1U << LTDC_CDSR_HSYNCS_Pos) /*!< 0x00000008 */
  12024. #define LTDC_CDSR_HSYNCS LTDC_CDSR_HSYNCS_Msk /*!< Horizontal Synchronization Status */
  12025. /******************** Bit definition for LTDC_LxCR register *****************/
  12026. #define LTDC_LxCR_LEN_Pos (0U)
  12027. #define LTDC_LxCR_LEN_Msk (0x1U << LTDC_LxCR_LEN_Pos) /*!< 0x00000001 */
  12028. #define LTDC_LxCR_LEN LTDC_LxCR_LEN_Msk /*!< Layer Enable */
  12029. #define LTDC_LxCR_COLKEN_Pos (1U)
  12030. #define LTDC_LxCR_COLKEN_Msk (0x1U << LTDC_LxCR_COLKEN_Pos) /*!< 0x00000002 */
  12031. #define LTDC_LxCR_COLKEN LTDC_LxCR_COLKEN_Msk /*!< Color Keying Enable */
  12032. #define LTDC_LxCR_CLUTEN_Pos (4U)
  12033. #define LTDC_LxCR_CLUTEN_Msk (0x1U << LTDC_LxCR_CLUTEN_Pos) /*!< 0x00000010 */
  12034. #define LTDC_LxCR_CLUTEN LTDC_LxCR_CLUTEN_Msk /*!< Color Lockup Table Enable */
  12035. /******************** Bit definition for LTDC_LxWHPCR register **************/
  12036. #define LTDC_LxWHPCR_WHSTPOS_Pos (0U)
  12037. #define LTDC_LxWHPCR_WHSTPOS_Msk (0xFFFU << LTDC_LxWHPCR_WHSTPOS_Pos) /*!< 0x00000FFF */
  12038. #define LTDC_LxWHPCR_WHSTPOS LTDC_LxWHPCR_WHSTPOS_Msk /*!< Window Horizontal Start Position */
  12039. #define LTDC_LxWHPCR_WHSPPOS_Pos (16U)
  12040. #define LTDC_LxWHPCR_WHSPPOS_Msk (0xFFFFU << LTDC_LxWHPCR_WHSPPOS_Pos) /*!< 0xFFFF0000 */
  12041. #define LTDC_LxWHPCR_WHSPPOS LTDC_LxWHPCR_WHSPPOS_Msk /*!< Window Horizontal Stop Position */
  12042. /******************** Bit definition for LTDC_LxWVPCR register **************/
  12043. #define LTDC_LxWVPCR_WVSTPOS_Pos (0U)
  12044. #define LTDC_LxWVPCR_WVSTPOS_Msk (0xFFFU << LTDC_LxWVPCR_WVSTPOS_Pos) /*!< 0x00000FFF */
  12045. #define LTDC_LxWVPCR_WVSTPOS LTDC_LxWVPCR_WVSTPOS_Msk /*!< Window Vertical Start Position */
  12046. #define LTDC_LxWVPCR_WVSPPOS_Pos (16U)
  12047. #define LTDC_LxWVPCR_WVSPPOS_Msk (0xFFFFU << LTDC_LxWVPCR_WVSPPOS_Pos) /*!< 0xFFFF0000 */
  12048. #define LTDC_LxWVPCR_WVSPPOS LTDC_LxWVPCR_WVSPPOS_Msk /*!< Window Vertical Stop Position */
  12049. /******************** Bit definition for LTDC_LxCKCR register ***************/
  12050. #define LTDC_LxCKCR_CKBLUE_Pos (0U)
  12051. #define LTDC_LxCKCR_CKBLUE_Msk (0xFFU << LTDC_LxCKCR_CKBLUE_Pos) /*!< 0x000000FF */
  12052. #define LTDC_LxCKCR_CKBLUE LTDC_LxCKCR_CKBLUE_Msk /*!< Color Key Blue value */
  12053. #define LTDC_LxCKCR_CKGREEN_Pos (8U)
  12054. #define LTDC_LxCKCR_CKGREEN_Msk (0xFFU << LTDC_LxCKCR_CKGREEN_Pos) /*!< 0x0000FF00 */
  12055. #define LTDC_LxCKCR_CKGREEN LTDC_LxCKCR_CKGREEN_Msk /*!< Color Key Green value */
  12056. #define LTDC_LxCKCR_CKRED_Pos (16U)
  12057. #define LTDC_LxCKCR_CKRED_Msk (0xFFU << LTDC_LxCKCR_CKRED_Pos) /*!< 0x00FF0000 */
  12058. #define LTDC_LxCKCR_CKRED LTDC_LxCKCR_CKRED_Msk /*!< Color Key Red value */
  12059. /******************** Bit definition for LTDC_LxPFCR register ***************/
  12060. #define LTDC_LxPFCR_PF_Pos (0U)
  12061. #define LTDC_LxPFCR_PF_Msk (0x7U << LTDC_LxPFCR_PF_Pos) /*!< 0x00000007 */
  12062. #define LTDC_LxPFCR_PF LTDC_LxPFCR_PF_Msk /*!< Pixel Format */
  12063. /******************** Bit definition for LTDC_LxCACR register ***************/
  12064. #define LTDC_LxCACR_CONSTA_Pos (0U)
  12065. #define LTDC_LxCACR_CONSTA_Msk (0xFFU << LTDC_LxCACR_CONSTA_Pos) /*!< 0x000000FF */
  12066. #define LTDC_LxCACR_CONSTA LTDC_LxCACR_CONSTA_Msk /*!< Constant Alpha */
  12067. /******************** Bit definition for LTDC_LxDCCR register ***************/
  12068. #define LTDC_LxDCCR_DCBLUE_Pos (0U)
  12069. #define LTDC_LxDCCR_DCBLUE_Msk (0xFFU << LTDC_LxDCCR_DCBLUE_Pos) /*!< 0x000000FF */
  12070. #define LTDC_LxDCCR_DCBLUE LTDC_LxDCCR_DCBLUE_Msk /*!< Default Color Blue */
  12071. #define LTDC_LxDCCR_DCGREEN_Pos (8U)
  12072. #define LTDC_LxDCCR_DCGREEN_Msk (0xFFU << LTDC_LxDCCR_DCGREEN_Pos) /*!< 0x0000FF00 */
  12073. #define LTDC_LxDCCR_DCGREEN LTDC_LxDCCR_DCGREEN_Msk /*!< Default Color Green */
  12074. #define LTDC_LxDCCR_DCRED_Pos (16U)
  12075. #define LTDC_LxDCCR_DCRED_Msk (0xFFU << LTDC_LxDCCR_DCRED_Pos) /*!< 0x00FF0000 */
  12076. #define LTDC_LxDCCR_DCRED LTDC_LxDCCR_DCRED_Msk /*!< Default Color Red */
  12077. #define LTDC_LxDCCR_DCALPHA_Pos (24U)
  12078. #define LTDC_LxDCCR_DCALPHA_Msk (0xFFU << LTDC_LxDCCR_DCALPHA_Pos) /*!< 0xFF000000 */
  12079. #define LTDC_LxDCCR_DCALPHA LTDC_LxDCCR_DCALPHA_Msk /*!< Default Color Alpha */
  12080. /******************** Bit definition for LTDC_LxBFCR register ***************/
  12081. #define LTDC_LxBFCR_BF2_Pos (0U)
  12082. #define LTDC_LxBFCR_BF2_Msk (0x7U << LTDC_LxBFCR_BF2_Pos) /*!< 0x00000007 */
  12083. #define LTDC_LxBFCR_BF2 LTDC_LxBFCR_BF2_Msk /*!< Blending Factor 2 */
  12084. #define LTDC_LxBFCR_BF1_Pos (8U)
  12085. #define LTDC_LxBFCR_BF1_Msk (0x7U << LTDC_LxBFCR_BF1_Pos) /*!< 0x00000700 */
  12086. #define LTDC_LxBFCR_BF1 LTDC_LxBFCR_BF1_Msk /*!< Blending Factor 1 */
  12087. /******************** Bit definition for LTDC_LxCFBAR register **************/
  12088. #define LTDC_LxCFBAR_CFBADD_Pos (0U)
  12089. #define LTDC_LxCFBAR_CFBADD_Msk (0xFFFFFFFFU << LTDC_LxCFBAR_CFBADD_Pos) /*!< 0xFFFFFFFF */
  12090. #define LTDC_LxCFBAR_CFBADD LTDC_LxCFBAR_CFBADD_Msk /*!< Color Frame Buffer Start Address */
  12091. /******************** Bit definition for LTDC_LxCFBLR register **************/
  12092. #define LTDC_LxCFBLR_CFBLL_Pos (0U)
  12093. #define LTDC_LxCFBLR_CFBLL_Msk (0x1FFFU << LTDC_LxCFBLR_CFBLL_Pos) /*!< 0x00001FFF */
  12094. #define LTDC_LxCFBLR_CFBLL LTDC_LxCFBLR_CFBLL_Msk /*!< Color Frame Buffer Line Length */
  12095. #define LTDC_LxCFBLR_CFBP_Pos (16U)
  12096. #define LTDC_LxCFBLR_CFBP_Msk (0x1FFFU << LTDC_LxCFBLR_CFBP_Pos) /*!< 0x1FFF0000 */
  12097. #define LTDC_LxCFBLR_CFBP LTDC_LxCFBLR_CFBP_Msk /*!< Color Frame Buffer Pitch in bytes */
  12098. /******************** Bit definition for LTDC_LxCFBLNR register *************/
  12099. #define LTDC_LxCFBLNR_CFBLNBR_Pos (0U)
  12100. #define LTDC_LxCFBLNR_CFBLNBR_Msk (0x7FFU << LTDC_LxCFBLNR_CFBLNBR_Pos) /*!< 0x000007FF */
  12101. #define LTDC_LxCFBLNR_CFBLNBR LTDC_LxCFBLNR_CFBLNBR_Msk /*!< Frame Buffer Line Number */
  12102. /******************** Bit definition for LTDC_LxCLUTWR register *************/
  12103. #define LTDC_LxCLUTWR_BLUE_Pos (0U)
  12104. #define LTDC_LxCLUTWR_BLUE_Msk (0xFFU << LTDC_LxCLUTWR_BLUE_Pos) /*!< 0x000000FF */
  12105. #define LTDC_LxCLUTWR_BLUE LTDC_LxCLUTWR_BLUE_Msk /*!< Blue value */
  12106. #define LTDC_LxCLUTWR_GREEN_Pos (8U)
  12107. #define LTDC_LxCLUTWR_GREEN_Msk (0xFFU << LTDC_LxCLUTWR_GREEN_Pos) /*!< 0x0000FF00 */
  12108. #define LTDC_LxCLUTWR_GREEN LTDC_LxCLUTWR_GREEN_Msk /*!< Green value */
  12109. #define LTDC_LxCLUTWR_RED_Pos (16U)
  12110. #define LTDC_LxCLUTWR_RED_Msk (0xFFU << LTDC_LxCLUTWR_RED_Pos) /*!< 0x00FF0000 */
  12111. #define LTDC_LxCLUTWR_RED LTDC_LxCLUTWR_RED_Msk /*!< Red value */
  12112. #define LTDC_LxCLUTWR_CLUTADD_Pos (24U)
  12113. #define LTDC_LxCLUTWR_CLUTADD_Msk (0xFFU << LTDC_LxCLUTWR_CLUTADD_Pos) /*!< 0xFF000000 */
  12114. #define LTDC_LxCLUTWR_CLUTADD LTDC_LxCLUTWR_CLUTADD_Msk /*!< CLUT address */
  12115. /******************************************************************************/
  12116. /* */
  12117. /* MDMA */
  12118. /* */
  12119. /******************************************************************************/
  12120. /******************** Bit definition for MDMA_GISR0 register ****************/
  12121. #define MDMA_GISR0_GIF0_Pos (0U)
  12122. #define MDMA_GISR0_GIF0_Msk (0x1U << MDMA_GISR0_GIF0_Pos) /*!< 0x00000001 */
  12123. #define MDMA_GISR0_GIF0 MDMA_GISR0_GIF0_Msk /*!< Channel 0 global interrupt flag */
  12124. #define MDMA_GISR0_GIF1_Pos (1U)
  12125. #define MDMA_GISR0_GIF1_Msk (0x1U << MDMA_GISR0_GIF1_Pos) /*!< 0x00000002 */
  12126. #define MDMA_GISR0_GIF1 MDMA_GISR0_GIF1_Msk /*!< Channel 1 global interrupt flag */
  12127. #define MDMA_GISR0_GIF2_Pos (2U)
  12128. #define MDMA_GISR0_GIF2_Msk (0x1U << MDMA_GISR0_GIF2_Pos) /*!< 0x00000004 */
  12129. #define MDMA_GISR0_GIF2 MDMA_GISR0_GIF2_Msk /*!< Channel 2 global interrupt flag */
  12130. #define MDMA_GISR0_GIF3_Pos (3U)
  12131. #define MDMA_GISR0_GIF3_Msk (0x1U << MDMA_GISR0_GIF3_Pos) /*!< 0x00000008 */
  12132. #define MDMA_GISR0_GIF3 MDMA_GISR0_GIF3_Msk /*!< Channel 3 global interrupt flag */
  12133. #define MDMA_GISR0_GIF4_Pos (4U)
  12134. #define MDMA_GISR0_GIF4_Msk (0x1U << MDMA_GISR0_GIF4_Pos) /*!< 0x00000010 */
  12135. #define MDMA_GISR0_GIF4 MDMA_GISR0_GIF4_Msk /*!< Channel 4 global interrupt flag */
  12136. #define MDMA_GISR0_GIF5_Pos (5U)
  12137. #define MDMA_GISR0_GIF5_Msk (0x1U << MDMA_GISR0_GIF5_Pos) /*!< 0x00000020 */
  12138. #define MDMA_GISR0_GIF5 MDMA_GISR0_GIF5_Msk /*!< Channel 5 global interrupt flag */
  12139. #define MDMA_GISR0_GIF6_Pos (6U)
  12140. #define MDMA_GISR0_GIF6_Msk (0x1U << MDMA_GISR0_GIF6_Pos) /*!< 0x00000040 */
  12141. #define MDMA_GISR0_GIF6 MDMA_GISR0_GIF6_Msk /*!< Channel 6 global interrupt flag */
  12142. #define MDMA_GISR0_GIF7_Pos (7U)
  12143. #define MDMA_GISR0_GIF7_Msk (0x1U << MDMA_GISR0_GIF7_Pos) /*!< 0x00000080 */
  12144. #define MDMA_GISR0_GIF7 MDMA_GISR0_GIF7_Msk /*!< Channel 7 global interrupt flag */
  12145. #define MDMA_GISR0_GIF8_Pos (8U)
  12146. #define MDMA_GISR0_GIF8_Msk (0x1U << MDMA_GISR0_GIF8_Pos) /*!< 0x00000100 */
  12147. #define MDMA_GISR0_GIF8 MDMA_GISR0_GIF8_Msk /*!< Channel 8 global interrupt flag */
  12148. #define MDMA_GISR0_GIF9_Pos (9U)
  12149. #define MDMA_GISR0_GIF9_Msk (0x1U << MDMA_GISR0_GIF9_Pos) /*!< 0x00000200 */
  12150. #define MDMA_GISR0_GIF9 MDMA_GISR0_GIF9_Msk /*!< Channel 9 global interrupt flag */
  12151. #define MDMA_GISR0_GIF10_Pos (10U)
  12152. #define MDMA_GISR0_GIF10_Msk (0x1U << MDMA_GISR0_GIF10_Pos) /*!< 0x00000400 */
  12153. #define MDMA_GISR0_GIF10 MDMA_GISR0_GIF10_Msk /*!< Channel 10 global interrupt flag */
  12154. #define MDMA_GISR0_GIF11_Pos (11U)
  12155. #define MDMA_GISR0_GIF11_Msk (0x1U << MDMA_GISR0_GIF11_Pos) /*!< 0x00000800 */
  12156. #define MDMA_GISR0_GIF11 MDMA_GISR0_GIF11_Msk /*!< Channel 11 global interrupt flag */
  12157. #define MDMA_GISR0_GIF12_Pos (12U)
  12158. #define MDMA_GISR0_GIF12_Msk (0x1U << MDMA_GISR0_GIF12_Pos) /*!< 0x00001000 */
  12159. #define MDMA_GISR0_GIF12 MDMA_GISR0_GIF12_Msk /*!< Channel 12 global interrupt flag */
  12160. #define MDMA_GISR0_GIF13_Pos (13U)
  12161. #define MDMA_GISR0_GIF13_Msk (0x1U << MDMA_GISR0_GIF13_Pos) /*!< 0x00002000 */
  12162. #define MDMA_GISR0_GIF13 MDMA_GISR0_GIF13_Msk /*!< Channel 13 global interrupt flag */
  12163. #define MDMA_GISR0_GIF14_Pos (14U)
  12164. #define MDMA_GISR0_GIF14_Msk (0x1U << MDMA_GISR0_GIF14_Pos) /*!< 0x00004000 */
  12165. #define MDMA_GISR0_GIF14 MDMA_GISR0_GIF14_Msk /*!< Channel 14 global interrupt flag */
  12166. #define MDMA_GISR0_GIF15_Pos (15U)
  12167. #define MDMA_GISR0_GIF15_Msk (0x1U << MDMA_GISR0_GIF15_Pos) /*!< 0x00008000 */
  12168. #define MDMA_GISR0_GIF15 MDMA_GISR0_GIF15_Msk /*!< Channel 15 global interrupt flag */
  12169. /******************** Bit definition for MDMA_CxISR register ****************/
  12170. #define MDMA_CISR_TEIF_Pos (0U)
  12171. #define MDMA_CISR_TEIF_Msk (0x1U << MDMA_CISR_TEIF_Pos) /*!< 0x00000001 */
  12172. #define MDMA_CISR_TEIF MDMA_CISR_TEIF_Msk /*!< Channel x transfer error interrupt flag */
  12173. #define MDMA_CISR_CTCIF_Pos (1U)
  12174. #define MDMA_CISR_CTCIF_Msk (0x1U << MDMA_CISR_CTCIF_Pos) /*!< 0x00000002 */
  12175. #define MDMA_CISR_CTCIF MDMA_CISR_CTCIF_Msk /*!< Channel x Channel Transfer Complete interrupt flag */
  12176. #define MDMA_CISR_BRTIF_Pos (2U)
  12177. #define MDMA_CISR_BRTIF_Msk (0x1U << MDMA_CISR_BRTIF_Pos) /*!< 0x00000004 */
  12178. #define MDMA_CISR_BRTIF MDMA_CISR_BRTIF_Msk /*!< Channel x block repeat transfer complete interrupt flag */
  12179. #define MDMA_CISR_BTIF_Pos (3U)
  12180. #define MDMA_CISR_BTIF_Msk (0x1U << MDMA_CISR_BTIF_Pos) /*!< 0x00000008 */
  12181. #define MDMA_CISR_BTIF MDMA_CISR_BTIF_Msk /*!< Channel x block transfer complete interrupt flag */
  12182. #define MDMA_CISR_TCIF_Pos (4U)
  12183. #define MDMA_CISR_TCIF_Msk (0x1U << MDMA_CISR_TCIF_Pos) /*!< 0x00000010 */
  12184. #define MDMA_CISR_TCIF MDMA_CISR_TCIF_Msk /*!< Channel x buffer transfer complete interrupt flag */
  12185. #define MDMA_CISR_CRQA_Pos (16U)
  12186. #define MDMA_CISR_CRQA_Msk (0x1U << MDMA_CISR_CRQA_Pos) /*!< 0x00010000 */
  12187. #define MDMA_CISR_CRQA MDMA_CISR_CRQA_Msk /*!< Channel x ReQest Active flag */
  12188. /******************** Bit definition for MDMA_CxIFCR register ****************/
  12189. #define MDMA_CIFCR_CTEIF_Pos (0U)
  12190. #define MDMA_CIFCR_CTEIF_Msk (0x1U << MDMA_CIFCR_CTEIF_Pos) /*!< 0x00000001 */
  12191. #define MDMA_CIFCR_CTEIF MDMA_CIFCR_CTEIF_Msk /*!< Channel x clear transfer error interrupt flag */
  12192. #define MDMA_CIFCR_CCTCIF_Pos (1U)
  12193. #define MDMA_CIFCR_CCTCIF_Msk (0x1U << MDMA_CIFCR_CCTCIF_Pos) /*!< 0x00000002 */
  12194. #define MDMA_CIFCR_CCTCIF MDMA_CIFCR_CCTCIF_Msk /*!< Clear Channel transfer complete interrupt flag for channel x */
  12195. #define MDMA_CIFCR_CBRTIF_Pos (2U)
  12196. #define MDMA_CIFCR_CBRTIF_Msk (0x1U << MDMA_CIFCR_CBRTIF_Pos) /*!< 0x00000004 */
  12197. #define MDMA_CIFCR_CBRTIF MDMA_CIFCR_CBRTIF_Msk /*!< Channel x clear block repeat transfer complete interrupt flag */
  12198. #define MDMA_CIFCR_CBTIF_Pos (3U)
  12199. #define MDMA_CIFCR_CBTIF_Msk (0x1U << MDMA_CIFCR_CBTIF_Pos) /*!< 0x00000008 */
  12200. #define MDMA_CIFCR_CBTIF MDMA_CIFCR_CBTIF_Msk /*!< Channel x Clear block transfer complete interrupt flag */
  12201. #define MDMA_CIFCR_CLTCIF_Pos (4U)
  12202. #define MDMA_CIFCR_CLTCIF_Msk (0x1U << MDMA_CIFCR_CLTCIF_Pos) /*!< 0x00000010 */
  12203. #define MDMA_CIFCR_CLTCIF MDMA_CIFCR_CLTCIF_Msk /*!< CLear Transfer buffer Complete Interrupt Flag for channel */
  12204. /******************** Bit definition for MDMA_CxESR register ****************/
  12205. #define MDMA_CESR_TEA_Pos (0U)
  12206. #define MDMA_CESR_TEA_Msk (0x7FU << MDMA_CESR_TEA_Pos) /*!< 0x0000007F */
  12207. #define MDMA_CESR_TEA MDMA_CESR_TEA_Msk /*!< Transfer Error Address */
  12208. #define MDMA_CESR_TED_Pos (7U)
  12209. #define MDMA_CESR_TED_Msk (0x1U << MDMA_CESR_TED_Pos) /*!< 0x00000080 */
  12210. #define MDMA_CESR_TED MDMA_CESR_TED_Msk /*!< Transfer Error Direction */
  12211. #define MDMA_CESR_TELD_Pos (8U)
  12212. #define MDMA_CESR_TELD_Msk (0x1U << MDMA_CESR_TELD_Pos) /*!< 0x00000100 */
  12213. #define MDMA_CESR_TELD MDMA_CESR_TELD_Msk /*!< Transfer Error Link Data */
  12214. #define MDMA_CESR_TEMD_Pos (9U)
  12215. #define MDMA_CESR_TEMD_Msk (0x1U << MDMA_CESR_TEMD_Pos) /*!< 0x00000200 */
  12216. #define MDMA_CESR_TEMD MDMA_CESR_TEMD_Msk /*!< Transfer Error Mask Data */
  12217. #define MDMA_CESR_ASE_Pos (10U)
  12218. #define MDMA_CESR_ASE_Msk (0x1U << MDMA_CESR_ASE_Pos) /*!< 0x00000400 */
  12219. #define MDMA_CESR_ASE MDMA_CESR_ASE_Msk /*!< Address/Size Error */
  12220. #define MDMA_CESR_BSE_Pos (11U)
  12221. #define MDMA_CESR_BSE_Msk (0x1U << MDMA_CESR_BSE_Pos) /*!< 0x00000800 */
  12222. #define MDMA_CESR_BSE MDMA_CESR_BSE_Msk /*!< Block Size Error */
  12223. /******************** Bit definition for MDMA_CxCR register ****************/
  12224. #define MDMA_CCR_EN_Pos (0U)
  12225. #define MDMA_CCR_EN_Msk (0x1U << MDMA_CCR_EN_Pos) /*!< 0x00000001 */
  12226. #define MDMA_CCR_EN MDMA_CCR_EN_Msk /*!< Channel enable / flag channel ready when read low */
  12227. #define MDMA_CCR_TEIE_Pos (1U)
  12228. #define MDMA_CCR_TEIE_Msk (0x1U << MDMA_CCR_TEIE_Pos) /*!< 0x00000002 */
  12229. #define MDMA_CCR_TEIE MDMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */
  12230. #define MDMA_CCR_CTCIE_Pos (2U)
  12231. #define MDMA_CCR_CTCIE_Msk (0x1U << MDMA_CCR_CTCIE_Pos) /*!< 0x00000004 */
  12232. #define MDMA_CCR_CTCIE MDMA_CCR_CTCIE_Msk /*!< Channel Transfer Complete interrupt enable */
  12233. #define MDMA_CCR_BRTIE_Pos (3U)
  12234. #define MDMA_CCR_BRTIE_Msk (0x1U << MDMA_CCR_BRTIE_Pos) /*!< 0x00000008 */
  12235. #define MDMA_CCR_BRTIE MDMA_CCR_BRTIE_Msk /*!< Block Repeat transfer interrupt enable */
  12236. #define MDMA_CCR_BTIE_Pos (4U)
  12237. #define MDMA_CCR_BTIE_Msk (0x1U << MDMA_CCR_BTIE_Pos) /*!< 0x00000010 */
  12238. #define MDMA_CCR_BTIE MDMA_CCR_BTIE_Msk /*!< Block Transfer interrupt enable */
  12239. #define MDMA_CCR_TCIE_Pos (5U)
  12240. #define MDMA_CCR_TCIE_Msk (0x1U << MDMA_CCR_TCIE_Pos) /*!< 0x00000020 */
  12241. #define MDMA_CCR_TCIE MDMA_CCR_TCIE_Msk /*!< buffer Transfer Complete interrupt enable */
  12242. #define MDMA_CCR_PL_Pos (6U)
  12243. #define MDMA_CCR_PL_Msk (0x3U << MDMA_CCR_PL_Pos) /*!< 0x000000C0 */
  12244. #define MDMA_CCR_PL MDMA_CCR_PL_Msk /*!< Priority level */
  12245. #define MDMA_CCR_PL_0 (0x1U << MDMA_CCR_PL_Pos) /*!< 0x00000040 */
  12246. #define MDMA_CCR_PL_1 (0x2U << MDMA_CCR_PL_Pos) /*!< 0x00000080 */
  12247. #define MDMA_CCR_BEX_Pos (12U)
  12248. #define MDMA_CCR_BEX_Msk (0x1U << MDMA_CCR_BEX_Pos) /*!< 0x00001000 */
  12249. #define MDMA_CCR_BEX MDMA_CCR_BEX_Msk /*!< Byte Endianess eXchange */
  12250. #define MDMA_CCR_HEX_Pos (13U)
  12251. #define MDMA_CCR_HEX_Msk (0x1U << MDMA_CCR_HEX_Pos) /*!< 0x00002000 */
  12252. #define MDMA_CCR_HEX MDMA_CCR_HEX_Msk /*!< Half word Endianess eXchange */
  12253. #define MDMA_CCR_WEX_Pos (14U)
  12254. #define MDMA_CCR_WEX_Msk (0x1U << MDMA_CCR_WEX_Pos) /*!< 0x00004000 */
  12255. #define MDMA_CCR_WEX MDMA_CCR_WEX_Msk /*!< Word Endianess eXchange */
  12256. #define MDMA_CCR_SWRQ_Pos (16U)
  12257. #define MDMA_CCR_SWRQ_Msk (0x1U << MDMA_CCR_SWRQ_Pos) /*!< 0x00010000 */
  12258. #define MDMA_CCR_SWRQ MDMA_CCR_SWRQ_Msk /*!< SW ReQuest */
  12259. /******************** Bit definition for MDMA_CxTCR register ****************/
  12260. #define MDMA_CTCR_SINC_Pos (0U)
  12261. #define MDMA_CTCR_SINC_Msk (0x3U << MDMA_CTCR_SINC_Pos) /*!< 0x00000003 */
  12262. #define MDMA_CTCR_SINC MDMA_CTCR_SINC_Msk /*!< Source increment mode */
  12263. #define MDMA_CTCR_SINC_0 (0x1U << MDMA_CTCR_SINC_Pos) /*!< 0x00000001 */
  12264. #define MDMA_CTCR_SINC_1 (0x2U << MDMA_CTCR_SINC_Pos) /*!< 0x00000002 */
  12265. #define MDMA_CTCR_DINC_Pos (2U)
  12266. #define MDMA_CTCR_DINC_Msk (0x3U << MDMA_CTCR_DINC_Pos) /*!< 0x0000000C */
  12267. #define MDMA_CTCR_DINC MDMA_CTCR_DINC_Msk /*!< Source increment mode */
  12268. #define MDMA_CTCR_DINC_0 (0x1U << MDMA_CTCR_DINC_Pos) /*!< 0x00000004 */
  12269. #define MDMA_CTCR_DINC_1 (0x2U << MDMA_CTCR_DINC_Pos) /*!< 0x00000008 */
  12270. #define MDMA_CTCR_SSIZE_Pos (4U)
  12271. #define MDMA_CTCR_SSIZE_Msk (0x3U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000030 */
  12272. #define MDMA_CTCR_SSIZE MDMA_CTCR_SSIZE_Msk /*!< Source data size */
  12273. #define MDMA_CTCR_SSIZE_0 (0x1U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000010 */
  12274. #define MDMA_CTCR_SSIZE_1 (0x2U << MDMA_CTCR_SSIZE_Pos) /*!< 0x00000020 */
  12275. #define MDMA_CTCR_DSIZE_Pos (6U)
  12276. #define MDMA_CTCR_DSIZE_Msk (0x3U << MDMA_CTCR_DSIZE_Pos) /*!< 0x000000C0 */
  12277. #define MDMA_CTCR_DSIZE MDMA_CTCR_DSIZE_Msk /*!< Destination data size */
  12278. #define MDMA_CTCR_DSIZE_0 (0x1U << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000040 */
  12279. #define MDMA_CTCR_DSIZE_1 (0x2U << MDMA_CTCR_DSIZE_Pos) /*!< 0x00000080 */
  12280. #define MDMA_CTCR_SINCOS_Pos (8U)
  12281. #define MDMA_CTCR_SINCOS_Msk (0x3U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000300 */
  12282. #define MDMA_CTCR_SINCOS MDMA_CTCR_SINCOS_Msk /*!< Source increment offset size */
  12283. #define MDMA_CTCR_SINCOS_0 (0x1U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000100 */
  12284. #define MDMA_CTCR_SINCOS_1 (0x2U << MDMA_CTCR_SINCOS_Pos) /*!< 0x00000200 */
  12285. #define MDMA_CTCR_DINCOS_Pos (10U)
  12286. #define MDMA_CTCR_DINCOS_Msk (0x3U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000C00 */
  12287. #define MDMA_CTCR_DINCOS MDMA_CTCR_DINCOS_Msk /*!< Destination increment offset size */
  12288. #define MDMA_CTCR_DINCOS_0 (0x1U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000400 */
  12289. #define MDMA_CTCR_DINCOS_1 (0x2U << MDMA_CTCR_DINCOS_Pos) /*!< 0x00000800 */
  12290. #define MDMA_CTCR_SBURST_Pos (12U)
  12291. #define MDMA_CTCR_SBURST_Msk (0x7U << MDMA_CTCR_SBURST_Pos) /*!< 0x00007000 */
  12292. #define MDMA_CTCR_SBURST MDMA_CTCR_SBURST_Msk /*!< Source burst transfer configuration */
  12293. #define MDMA_CTCR_SBURST_0 (0x1U << MDMA_CTCR_SBURST_Pos) /*!< 0x00001000 */
  12294. #define MDMA_CTCR_SBURST_1 (0x2U << MDMA_CTCR_SBURST_Pos) /*!< 0x00002000 */
  12295. #define MDMA_CTCR_SBURST_2 (0x3U << MDMA_CTCR_SBURST_Pos) /*!< 0x00003000 */
  12296. #define MDMA_CTCR_DBURST_Pos (15U)
  12297. #define MDMA_CTCR_DBURST_Msk (0x7U << MDMA_CTCR_DBURST_Pos) /*!< 0x00038000 */
  12298. #define MDMA_CTCR_DBURST MDMA_CTCR_DBURST_Msk /*!< Destination burst transfer configuration */
  12299. #define MDMA_CTCR_DBURST_0 (0x1U << MDMA_CTCR_DBURST_Pos) /*!< 0x00008000 */
  12300. #define MDMA_CTCR_DBURST_1 (0x2U << MDMA_CTCR_DBURST_Pos) /*!< 0x00010000 */
  12301. #define MDMA_CTCR_DBURST_2 (0x4U << MDMA_CTCR_DBURST_Pos) /*!< 0x00020000 */
  12302. #define MDMA_CTCR_TLEN_Pos (18U)
  12303. #define MDMA_CTCR_TLEN_Msk (0x7FU << MDMA_CTCR_TLEN_Pos) /*!< 0x01FC0000 */
  12304. #define MDMA_CTCR_TLEN MDMA_CTCR_TLEN_Msk /*!< buffer Transfer Length (number of bytes - 1) */
  12305. #define MDMA_CTCR_PKE_Pos (25U)
  12306. #define MDMA_CTCR_PKE_Msk (0x1U << MDMA_CTCR_PKE_Pos) /*!< 0x02000000 */
  12307. #define MDMA_CTCR_PKE MDMA_CTCR_PKE_Msk /*!< PacK Enable */
  12308. #define MDMA_CTCR_PAM_Pos (26U)
  12309. #define MDMA_CTCR_PAM_Msk (0x3U << MDMA_CTCR_PAM_Pos) /*!< 0x0C000000 */
  12310. #define MDMA_CTCR_PAM MDMA_CTCR_PAM_Msk /*!< Padding/Alignement Mode */
  12311. #define MDMA_CTCR_PAM_0 (0x1U << MDMA_CTCR_PAM_Pos) /*!< 0x4000000 */
  12312. #define MDMA_CTCR_PAM_1 (0x2U << MDMA_CTCR_PAM_Pos) /*!< 0x8000000 */
  12313. #define MDMA_CTCR_TRGM_Pos (28U)
  12314. #define MDMA_CTCR_TRGM_Msk (0x3U << MDMA_CTCR_TRGM_Pos) /*!< 0x30000000 */
  12315. #define MDMA_CTCR_TRGM MDMA_CTCR_TRGM_Msk /*!< Trigger Mode */
  12316. #define MDMA_CTCR_TRGM_0 (0x1U << MDMA_CTCR_TRGM_Pos) /*!< 0x10000000 */
  12317. #define MDMA_CTCR_TRGM_1 (0x2U << MDMA_CTCR_TRGM_Pos) /*!< 0x20000000 */
  12318. #define MDMA_CTCR_SWRM_Pos (30U)
  12319. #define MDMA_CTCR_SWRM_Msk (0x1U << MDMA_CTCR_SWRM_Pos) /*!< 0x40000000 */
  12320. #define MDMA_CTCR_SWRM MDMA_CTCR_SWRM_Msk /*!< SW Request Mode */
  12321. #define MDMA_CTCR_BWM_Pos (31U)
  12322. #define MDMA_CTCR_BWM_Msk (0x1U << MDMA_CTCR_BWM_Pos) /*!< 0x80000000 */
  12323. #define MDMA_CTCR_BWM MDMA_CTCR_BWM_Msk /*!< Bufferable Write Mode */
  12324. /******************** Bit definition for MDMA_CxBNDTR register ****************/
  12325. #define MDMA_CBNDTR_BNDT_Pos (0U)
  12326. #define MDMA_CBNDTR_BNDT_Msk (0x1FFFFU << MDMA_CBNDTR_BNDT_Pos) /*!< 0x0001FFFF */
  12327. #define MDMA_CBNDTR_BNDT MDMA_CBNDTR_BNDT_Msk /*!< Block Number of data bytes to transfer */
  12328. #define MDMA_CBNDTR_BRSUM_Pos (18U)
  12329. #define MDMA_CBNDTR_BRSUM_Msk (0x1U << MDMA_CBNDTR_BRSUM_Pos) /*!< 0x00040000 */
  12330. #define MDMA_CBNDTR_BRSUM MDMA_CBNDTR_BRSUM_Msk /*!< Block Repeat Source address Update Mode */
  12331. #define MDMA_CBNDTR_BRDUM_Pos (19U)
  12332. #define MDMA_CBNDTR_BRDUM_Msk (0x1U << MDMA_CBNDTR_BRDUM_Pos) /*!< 0x00080000 */
  12333. #define MDMA_CBNDTR_BRDUM MDMA_CBNDTR_BRDUM_Msk /*!< Block Repeat Destination address Update Mode */
  12334. #define MDMA_CBNDTR_BRC_Pos (20U)
  12335. #define MDMA_CBNDTR_BRC_Msk (0xFFFU << MDMA_CBNDTR_BRC_Pos) /*!< 0xFFF00000 */
  12336. #define MDMA_CBNDTR_BRC MDMA_CBNDTR_BRC_Msk /*!< Block Repeat Count */
  12337. /******************** Bit definition for MDMA_CxSAR register ****************/
  12338. #define MDMA_CSAR_SAR_Pos (0U)
  12339. #define MDMA_CSAR_SAR_Msk (0xFFFFFFFFU << MDMA_CSAR_SAR_Pos) /*!< 0xFFFFFFFF */
  12340. #define MDMA_CSAR_SAR MDMA_CSAR_SAR_Msk /*!< Source address */
  12341. /******************** Bit definition for MDMA_CxDAR register ****************/
  12342. #define MDMA_CDAR_DAR_Pos (0U)
  12343. #define MDMA_CDAR_DAR_Msk (0xFFFFFFFFU << MDMA_CDAR_DAR_Pos) /*!< 0xFFFFFFFF */
  12344. #define MDMA_CDAR_DAR MDMA_CDAR_DAR_Msk /*!< Destination address */
  12345. /******************** Bit definition for MDMA_CxBRUR ************************/
  12346. #define MDMA_CBRUR_SUV_Pos (0U)
  12347. #define MDMA_CBRUR_SUV_Msk (0xFFFFU << MDMA_CBRUR_SUV_Pos) /*!< 0x0000FFFF */
  12348. #define MDMA_CBRUR_SUV MDMA_CBRUR_SUV_Msk /*!< Source address Update Value */
  12349. #define MDMA_CBRUR_DUV_Pos (16U)
  12350. #define MDMA_CBRUR_DUV_Msk (0xFFFFU << MDMA_CBRUR_DUV_Pos) /*!< 0xFFFF0000 */
  12351. #define MDMA_CBRUR_DUV MDMA_CBRUR_DUV_Msk /*!< Destination address Update Value */
  12352. /******************** Bit definition for MDMA_CxLAR *************************/
  12353. #define MDMA_CLAR_LAR_Pos (0U)
  12354. #define MDMA_CLAR_LAR_Msk (0xFFFFFFFFU << MDMA_CLAR_LAR_Pos) /*!< 0xFFFFFFFF */
  12355. #define MDMA_CLAR_LAR MDMA_CLAR_LAR_Msk /*!< Link Address Register */
  12356. /******************** Bit definition for MDMA_CxTBR) ************************/
  12357. #define MDMA_CTBR_TSEL_Pos (0U)
  12358. #define MDMA_CTBR_TSEL_Msk (0xFFU << MDMA_CTBR_TSEL_Pos) /*!< 0x000000FF */
  12359. #define MDMA_CTBR_TSEL MDMA_CTBR_TSEL_Msk /*!< Trigger SELection */
  12360. #define MDMA_CTBR_SBUS_Pos (16U)
  12361. #define MDMA_CTBR_SBUS_Msk (0x1U << MDMA_CTBR_SBUS_Pos) /*!< 0x00010000 */
  12362. #define MDMA_CTBR_SBUS MDMA_CTBR_SBUS_Msk /*!< Source BUS select */
  12363. #define MDMA_CTBR_DBUS_Pos (17U)
  12364. #define MDMA_CTBR_DBUS_Msk (0x1U << MDMA_CTBR_DBUS_Pos) /*!< 0x00020000 */
  12365. #define MDMA_CTBR_DBUS MDMA_CTBR_DBUS_Msk /*!< Destination BUS select */
  12366. /******************** Bit definition for MDMA_CxMAR) ************************/
  12367. #define MDMA_CMAR_MAR_Pos (0U)
  12368. #define MDMA_CMAR_MAR_Msk (0xFFFFFFFFU << MDMA_CMAR_MAR_Pos) /*!< 0xFFFFFFFF */
  12369. #define MDMA_CMAR_MAR MDMA_CMAR_MAR_Msk /*!< Mask address */
  12370. /******************** Bit definition for MDMA_CxMDR) ************************/
  12371. #define MDMA_CMDR_MDR_Pos (0U)
  12372. #define MDMA_CMDR_MDR_Msk (0xFFFFFFFFU << MDMA_CMDR_MDR_Pos) /*!< 0xFFFFFFFF */
  12373. #define MDMA_CMDR_MDR MDMA_CMDR_MDR_Msk /*!< Mask Mask Data */
  12374. /******************************************************************************/
  12375. /* */
  12376. /* Operational Amplifier (OPAMP) */
  12377. /* */
  12378. /******************************************************************************/
  12379. /********************* Bit definition for OPAMPx_CSR register ***************/
  12380. #define OPAMP_CSR_OPAMPxEN_Pos (0U)
  12381. #define OPAMP_CSR_OPAMPxEN_Msk (0x1U << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */
  12382. #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */
  12383. #define OPAMP_CSR_FORCEVP_Pos (1U)
  12384. #define OPAMP_CSR_FORCEVP_Msk (0x1U << OPAMP_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12385. #define OPAMP_CSR_FORCEVP OPAMP_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12386. #define OPAMP_CSR_VPSEL_Pos (2U)
  12387. #define OPAMP_CSR_VPSEL_Msk (0x3U << OPAMP_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12388. #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12389. #define OPAMP_CSR_VPSEL_0 (0x1U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12390. #define OPAMP_CSR_VPSEL_1 (0x2U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12391. #define OPAMP_CSR_VMSEL_Pos (5U)
  12392. #define OPAMP_CSR_VMSEL_Msk (0x3U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12393. #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */
  12394. #define OPAMP_CSR_VMSEL_0 (0x1U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12395. #define OPAMP_CSR_VMSEL_1 (0x2U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12396. #define OPAMP_CSR_OPAHSM_Pos (8U)
  12397. #define OPAMP_CSR_OPAHSM_Msk (0x1U << OPAMP_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12398. #define OPAMP_CSR_OPAHSM OPAMP_CSR_OPAHSM_Msk /*!< Operational amplifier high speed mode */
  12399. #define OPAMP_CSR_CALON_Pos (11U)
  12400. #define OPAMP_CSR_CALON_Msk (0x1U << OPAMP_CSR_CALON_Pos) /*!< 0x00000800 */
  12401. #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */
  12402. #define OPAMP_CSR_CALSEL_Pos (12U)
  12403. #define OPAMP_CSR_CALSEL_Msk (0x3U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12404. #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */
  12405. #define OPAMP_CSR_CALSEL_0 (0x1U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12406. #define OPAMP_CSR_CALSEL_1 (0x2U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12407. #define OPAMP_CSR_PGGAIN_Pos (14U)
  12408. #define OPAMP_CSR_PGGAIN_Msk (0xFU << OPAMP_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12409. #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */
  12410. #define OPAMP_CSR_PGGAIN_0 (0x1U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12411. #define OPAMP_CSR_PGGAIN_1 (0x2U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12412. #define OPAMP_CSR_PGGAIN_2 (0x4U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12413. #define OPAMP_CSR_PGGAIN_3 (0x8U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12414. #define OPAMP_CSR_USERTRIM_Pos (18U)
  12415. #define OPAMP_CSR_USERTRIM_Msk (0x1U << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12416. #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */
  12417. #define OPAMP_CSR_TSTREF_Pos (29U)
  12418. #define OPAMP_CSR_TSTREF_Msk (0x1U << OPAMP_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12419. #define OPAMP_CSR_TSTREF OPAMP_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12420. #define OPAMP_CSR_CALOUT_Pos (30U)
  12421. #define OPAMP_CSR_CALOUT_Msk (0x1U << OPAMP_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12422. #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier calibration output */
  12423. /********************* Bit definition for OPAMP1_CSR register ***************/
  12424. #define OPAMP1_CSR_OPAEN_Pos (0U)
  12425. #define OPAMP1_CSR_OPAEN_Msk (0x1U << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12426. #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */
  12427. #define OPAMP1_CSR_FORCEVP_Pos (1U)
  12428. #define OPAMP1_CSR_FORCEVP_Msk (0x1U << OPAMP1_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12429. #define OPAMP1_CSR_FORCEVP OPAMP1_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12430. #define OPAMP1_CSR_VPSEL_Pos (2U)
  12431. #define OPAMP1_CSR_VPSEL_Msk (0x3U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12432. #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12433. #define OPAMP1_CSR_VPSEL_0 (0x1U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12434. #define OPAMP1_CSR_VPSEL_1 (0x2U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12435. #define OPAMP1_CSR_VMSEL_Pos (5U)
  12436. #define OPAMP1_CSR_VMSEL_Msk (0x3U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12437. #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */
  12438. #define OPAMP1_CSR_VMSEL_0 (0x1U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12439. #define OPAMP1_CSR_VMSEL_1 (0x2U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12440. #define OPAMP1_CSR_OPAHSM_Pos (8U)
  12441. #define OPAMP1_CSR_OPAHSM_Msk (0x1U << OPAMP1_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12442. #define OPAMP1_CSR_OPAHSM OPAMP1_CSR_OPAHSM_Msk /*!< Operational amplifier1 high speed mode */
  12443. #define OPAMP1_CSR_CALON_Pos (11U)
  12444. #define OPAMP1_CSR_CALON_Msk (0x1U << OPAMP1_CSR_CALON_Pos) /*!< 0x00000800 */
  12445. #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */
  12446. #define OPAMP1_CSR_CALSEL_Pos (12U)
  12447. #define OPAMP1_CSR_CALSEL_Msk (0x3U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12448. #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */
  12449. #define OPAMP1_CSR_CALSEL_0 (0x1U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12450. #define OPAMP1_CSR_CALSEL_1 (0x2U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12451. #define OPAMP1_CSR_PGGAIN_Pos (14U)
  12452. #define OPAMP1_CSR_PGGAIN_Msk (0xFU << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12453. #define OPAMP1_CSR_PGGAIN OPAMP1_CSR_PGGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */
  12454. #define OPAMP1_CSR_PGGAIN_0 (0x1U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12455. #define OPAMP1_CSR_PGGAIN_1 (0x2U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12456. #define OPAMP1_CSR_PGGAIN_2 (0x4U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12457. #define OPAMP1_CSR_PGGAIN_3 (0x8U << OPAMP1_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12458. #define OPAMP1_CSR_USERTRIM_Pos (18U)
  12459. #define OPAMP1_CSR_USERTRIM_Msk (0x1U << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12460. #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */
  12461. #define OPAMP1_CSR_TSTREF_Pos (29U)
  12462. #define OPAMP1_CSR_TSTREF_Msk (0x1U << OPAMP1_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12463. #define OPAMP1_CSR_TSTREF OPAMP1_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12464. #define OPAMP1_CSR_CALOUT_Pos (30U)
  12465. #define OPAMP1_CSR_CALOUT_Msk (0x1U << OPAMP1_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12466. #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */
  12467. /********************* Bit definition for OPAMP2_CSR register ***************/
  12468. #define OPAMP2_CSR_OPAEN_Pos (0U)
  12469. #define OPAMP2_CSR_OPAEN_Msk (0x1U << OPAMP2_CSR_OPAEN_Pos) /*!< 0x00000001 */
  12470. #define OPAMP2_CSR_OPAEN OPAMP2_CSR_OPAEN_Msk /*!< Operational amplifier2 Enable */
  12471. #define OPAMP2_CSR_FORCEVP_Pos (1U)
  12472. #define OPAMP2_CSR_FORCEVP_Msk (0x1U << OPAMP2_CSR_FORCEVP_Pos) /*!< 0x00000002 */
  12473. #define OPAMP2_CSR_FORCEVP OPAMP2_CSR_FORCEVP_Msk /*!< Force internal reference on VP */
  12474. #define OPAMP2_CSR_VPSEL_Pos (2U)
  12475. #define OPAMP2_CSR_VPSEL_Msk (0x3U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x0000000C */
  12476. #define OPAMP2_CSR_VPSEL OPAMP2_CSR_VPSEL_Msk /*!< Non inverted input selection */
  12477. #define OPAMP2_CSR_VPSEL_0 (0x1U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000004 */
  12478. #define OPAMP2_CSR_VPSEL_1 (0x2U << OPAMP2_CSR_VPSEL_Pos) /*!< 0x00000008 */
  12479. #define OPAMP2_CSR_VMSEL_Pos (5U)
  12480. #define OPAMP2_CSR_VMSEL_Msk (0x3U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000060 */
  12481. #define OPAMP2_CSR_VMSEL OPAMP2_CSR_VMSEL_Msk /*!< Inverting input selection */
  12482. #define OPAMP2_CSR_VMSEL_0 (0x1U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000020 */
  12483. #define OPAMP2_CSR_VMSEL_1 (0x2U << OPAMP2_CSR_VMSEL_Pos) /*!< 0x00000040 */
  12484. #define OPAMP2_CSR_OPAHSM_Pos (8U)
  12485. #define OPAMP2_CSR_OPAHSM_Msk (0x1U << OPAMP2_CSR_OPAHSM_Pos) /*!< 0x00000100 */
  12486. #define OPAMP2_CSR_OPAHSM OPAMP2_CSR_OPAHSM_Msk /*!< Operational amplifier2 high speed mode */
  12487. #define OPAMP2_CSR_CALON_Pos (11U)
  12488. #define OPAMP2_CSR_CALON_Msk (0x1U << OPAMP2_CSR_CALON_Pos) /*!< 0x00000800 */
  12489. #define OPAMP2_CSR_CALON OPAMP2_CSR_CALON_Msk /*!< Calibration mode enable */
  12490. #define OPAMP2_CSR_CALSEL_Pos (12U)
  12491. #define OPAMP2_CSR_CALSEL_Msk (0x3U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00003000 */
  12492. #define OPAMP2_CSR_CALSEL OPAMP2_CSR_CALSEL_Msk /*!< Calibration selection */
  12493. #define OPAMP2_CSR_CALSEL_0 (0x1U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00001000 */
  12494. #define OPAMP2_CSR_CALSEL_1 (0x2U << OPAMP2_CSR_CALSEL_Pos) /*!< 0x00002000 */
  12495. #define OPAMP2_CSR_PGGAIN_Pos (14U)
  12496. #define OPAMP2_CSR_PGGAIN_Msk (0xFU << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x0003C000 */
  12497. #define OPAMP2_CSR_PGGAIN OPAMP2_CSR_PGGAIN_Msk /*!< Operational amplifier2 Programmable amplifier gain value */
  12498. #define OPAMP2_CSR_PGGAIN_0 (0x1U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00004000 */
  12499. #define OPAMP2_CSR_PGGAIN_1 (0x2U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00008000 */
  12500. #define OPAMP2_CSR_PGGAIN_2 (0x4U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00010000 */
  12501. #define OPAMP2_CSR_PGGAIN_3 (0x8U << OPAMP2_CSR_PGGAIN_Pos) /*!< 0x00020000 */
  12502. #define OPAMP2_CSR_USERTRIM_Pos (18U)
  12503. #define OPAMP2_CSR_USERTRIM_Msk (0x1U << OPAMP2_CSR_USERTRIM_Pos) /*!< 0x00040000 */
  12504. #define OPAMP2_CSR_USERTRIM OPAMP2_CSR_USERTRIM_Msk /*!< User trimming enable */
  12505. #define OPAMP2_CSR_TSTREF_Pos (29U)
  12506. #define OPAMP2_CSR_TSTREF_Msk (0x1U << OPAMP2_CSR_TSTREF_Pos) /*!< 0x20000000 */
  12507. #define OPAMP2_CSR_TSTREF OPAMP2_CSR_TSTREF_Msk /*!< OpAmp calibration reference voltage output control */
  12508. #define OPAMP2_CSR_CALOUT_Pos (30U)
  12509. #define OPAMP2_CSR_CALOUT_Msk (0x1U << OPAMP2_CSR_CALOUT_Pos) /*!< 0x40000000 */
  12510. #define OPAMP2_CSR_CALOUT OPAMP2_CSR_CALOUT_Msk /*!< Operational amplifier2 calibration output */
  12511. /******************* Bit definition for OPAMP_OTR register ******************/
  12512. #define OPAMP_OTR_TRIMOFFSETN_Pos (0U)
  12513. #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12514. #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12515. #define OPAMP_OTR_TRIMOFFSETP_Pos (8U)
  12516. #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12517. #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12518. /******************* Bit definition for OPAMP1_OTR register ******************/
  12519. #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U)
  12520. #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12521. #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12522. #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U)
  12523. #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12524. #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12525. /******************* Bit definition for OPAMP2_OTR register ******************/
  12526. #define OPAMP2_OTR_TRIMOFFSETN_Pos (0U)
  12527. #define OPAMP2_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP2_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */
  12528. #define OPAMP2_OTR_TRIMOFFSETN OPAMP2_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12529. #define OPAMP2_OTR_TRIMOFFSETP_Pos (8U)
  12530. #define OPAMP2_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP2_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */
  12531. #define OPAMP2_OTR_TRIMOFFSETP OPAMP2_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12532. /******************* Bit definition for OPAMP_HSOTR register ****************/
  12533. #define OPAMP_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12534. #define OPAMP_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12535. #define OPAMP_HSOTR_TRIMHSOFFSETN OPAMP_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12536. #define OPAMP_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12537. #define OPAMP_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12538. #define OPAMP_HSOTR_TRIMHSOFFSETP OPAMP_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12539. /******************* Bit definition for OPAMP1_HSOTR register ****************/
  12540. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12541. #define OPAMP1_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP1_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12542. #define OPAMP1_HSOTR_TRIMHSOFFSETN OPAMP1_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12543. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12544. #define OPAMP1_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP1_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12545. #define OPAMP1_HSOTR_TRIMHSOFFSETP OPAMP1_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12546. /******************* Bit definition for OPAMP2_HSOTR register ****************/
  12547. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Pos (0U)
  12548. #define OPAMP2_HSOTR_TRIMHSOFFSETN_Msk (0x1FU << OPAMP2_HSOTR_TRIMHSOFFSETN_Pos) /*!< 0x0000001F */
  12549. #define OPAMP2_HSOTR_TRIMHSOFFSETN OPAMP2_HSOTR_TRIMHSOFFSETN_Msk /*!< Trim for NMOS differential pairs */
  12550. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Pos (8U)
  12551. #define OPAMP2_HSOTR_TRIMHSOFFSETP_Msk (0x1FU << OPAMP2_HSOTR_TRIMHSOFFSETP_Pos) /*!< 0x00001F00 */
  12552. #define OPAMP2_HSOTR_TRIMHSOFFSETP OPAMP2_HSOTR_TRIMHSOFFSETP_Msk /*!< Trim for PMOS differential pairs */
  12553. /******************************************************************************/
  12554. /* */
  12555. /* Power Control */
  12556. /* */
  12557. /******************************************************************************/
  12558. /******************** Bit definition for PWR_CR1 register ********************/
  12559. #define PWR_CR1_ALS_Pos (17U)
  12560. #define PWR_CR1_ALS_Msk (0x3U << PWR_CR1_ALS_Pos) /*!< 0x00060000 */
  12561. #define PWR_CR1_ALS PWR_CR1_ALS_Msk /*!< Analog Voltage Detector level selection */
  12562. #define PWR_CR1_ALS_0 (0x1U << PWR_CR1_ALS_Pos) /*!< 0x00020000 */
  12563. #define PWR_CR1_ALS_1 (0x2U << PWR_CR1_ALS_Pos) /*!< 0x00040000 */
  12564. #define PWR_CR1_AVDEN_Pos (16U)
  12565. #define PWR_CR1_AVDEN_Msk (0x1U << PWR_CR1_AVDEN_Pos) /*!< 0x00010000 */
  12566. #define PWR_CR1_AVDEN PWR_CR1_AVDEN_Msk /*!< Analog Voltage Detector Enable */
  12567. #define PWR_CR1_SVOS_Pos (14U)
  12568. #define PWR_CR1_SVOS_Msk (0x3U << PWR_CR1_SVOS_Pos) /*!< 0x0000C000 */
  12569. #define PWR_CR1_SVOS PWR_CR1_SVOS_Msk /*!< System STOP mode Voltage Scaling selection. */
  12570. #define PWR_CR1_SVOS_0 (0x1U << PWR_CR1_SVOS_Pos) /*!< 0x00004000 */
  12571. #define PWR_CR1_SVOS_1 (0x2U << PWR_CR1_SVOS_Pos) /*!< 0x00008000 */
  12572. #define PWR_CR1_RLPSN_Pos (10U)
  12573. #define PWR_CR1_RLPSN_Msk (0x1U << PWR_CR1_RLPSN_Pos) /*!< 0x00000400 */
  12574. #define PWR_CR1_RLPSN PWR_CR1_RLPSN_Msk /*!< RAM low power mode disable in STOP. */
  12575. #define PWR_CR1_FLPS_Pos (9U)
  12576. #define PWR_CR1_FLPS_Msk (0x1U << PWR_CR1_FLPS_Pos) /*!< 0x00000200 */
  12577. #define PWR_CR1_FLPS PWR_CR1_FLPS_Msk /*!< Flash low power mode in DSTOP */
  12578. #define PWR_CR1_DBP_Pos (8U)
  12579. #define PWR_CR1_DBP_Msk (0x1U << PWR_CR1_DBP_Pos) /*!< 0x00000100 */
  12580. #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */
  12581. #define PWR_CR1_PLS_Pos (5U)
  12582. #define PWR_CR1_PLS_Msk (0x7U << PWR_CR1_PLS_Pos) /*!< 0x000000E0 */
  12583. #define PWR_CR1_PLS PWR_CR1_PLS_Msk /*!< Programmable Voltage Detector level selection */
  12584. #define PWR_CR1_PLS_0 (0x1U << PWR_CR1_PLS_Pos) /*!< 0x00000020 */
  12585. #define PWR_CR1_PLS_1 (0x2U << PWR_CR1_PLS_Pos) /*!< 0x00000040 */
  12586. #define PWR_CR1_PLS_2 (0x4U << PWR_CR1_PLS_Pos) /*!< 0x00000080 */
  12587. #define PWR_CR1_PVDEN_Pos (4U)
  12588. #define PWR_CR1_PVDEN_Msk (0x1U << PWR_CR1_PVDEN_Pos) /*!< 0x00000010 */
  12589. #define PWR_CR1_PVDEN PWR_CR1_PVDEN_Msk /*!< Programmable Voltage detector enable. */
  12590. #define PWR_CR1_LPDS_Pos (0U)
  12591. #define PWR_CR1_LPDS_Msk (0x1U << PWR_CR1_LPDS_Pos) /*!< 0x00000001 */
  12592. #define PWR_CR1_LPDS PWR_CR1_LPDS_Msk /*!< Low Power Deepsleep with SVOS3 */
  12593. /*!< PVD level configuration */
  12594. #define PWR_CR1_PLS_LEV0 ((uint32_t)0x00000000U) /*!< PVD level 0 */
  12595. #define PWR_CR1_PLS_LEV1_Pos (5U)
  12596. #define PWR_CR1_PLS_LEV1_Msk (0x1U << PWR_CR1_PLS_LEV1_Pos) /*!< 0x00000020 */
  12597. #define PWR_CR1_PLS_LEV1 PWR_CR1_PLS_LEV1_Msk /*!< PVD level 1 */
  12598. #define PWR_CR1_PLS_LEV2_Pos (6U)
  12599. #define PWR_CR1_PLS_LEV2_Msk (0x1U << PWR_CR1_PLS_LEV2_Pos) /*!< 0x00000040 */
  12600. #define PWR_CR1_PLS_LEV2 PWR_CR1_PLS_LEV2_Msk /*!< PVD level 2 */
  12601. #define PWR_CR1_PLS_LEV3_Pos (5U)
  12602. #define PWR_CR1_PLS_LEV3_Msk (0x3U << PWR_CR1_PLS_LEV3_Pos) /*!< 0x00000060 */
  12603. #define PWR_CR1_PLS_LEV3 PWR_CR1_PLS_LEV3_Msk /*!< PVD level 3 */
  12604. #define PWR_CR1_PLS_LEV4_Pos (7U)
  12605. #define PWR_CR1_PLS_LEV4_Msk (0x1U << PWR_CR1_PLS_LEV4_Pos) /*!< 0x00000080 */
  12606. #define PWR_CR1_PLS_LEV4 PWR_CR1_PLS_LEV4_Msk /*!< PVD level 4 */
  12607. #define PWR_CR1_PLS_LEV5_Pos (5U)
  12608. #define PWR_CR1_PLS_LEV5_Msk (0x5U << PWR_CR1_PLS_LEV5_Pos) /*!< 0x000000A0 */
  12609. #define PWR_CR1_PLS_LEV5 PWR_CR1_PLS_LEV5_Msk /*!< PVD level 5 */
  12610. #define PWR_CR1_PLS_LEV6_Pos (6U)
  12611. #define PWR_CR1_PLS_LEV6_Msk (0x3U << PWR_CR1_PLS_LEV6_Pos) /*!< 0x000000C0 */
  12612. #define PWR_CR1_PLS_LEV6 PWR_CR1_PLS_LEV6_Msk /*!< PVD level 6 */
  12613. #define PWR_CR1_PLS_LEV7_Pos (5U)
  12614. #define PWR_CR1_PLS_LEV7_Msk (0x7U << PWR_CR1_PLS_LEV7_Pos) /*!< 0x000000E0 */
  12615. #define PWR_CR1_PLS_LEV7 PWR_CR1_PLS_LEV7_Msk /*!< PVD level 7 */
  12616. /*!< AVD level configuration */
  12617. #define PWR_CR1_ALS_LEV0 ((uint32_t)0x00000000U) /*!< AVD level 0 */
  12618. #define PWR_CR1_ALS_LEV1_Pos (17U)
  12619. #define PWR_CR1_ALS_LEV1_Msk (0x1U << PWR_CR1_ALS_LEV1_Pos) /*!< 0x00020000 */
  12620. #define PWR_CR1_ALS_LEV1 PWR_CR1_ALS_LEV1_Msk /*!< AVD level 1 */
  12621. #define PWR_CR1_ALS_LEV2_Pos (18U)
  12622. #define PWR_CR1_ALS_LEV2_Msk (0x1U << PWR_CR1_ALS_LEV2_Pos) /*!< 0x00040000 */
  12623. #define PWR_CR1_ALS_LEV2 PWR_CR1_ALS_LEV2_Msk /*!< AVD level 2 */
  12624. #define PWR_CR1_ALS_LEV3_Pos (17U)
  12625. #define PWR_CR1_ALS_LEV3_Msk (0x3U << PWR_CR1_ALS_LEV3_Pos) /*!< 0x00060000 */
  12626. #define PWR_CR1_ALS_LEV3 PWR_CR1_ALS_LEV3_Msk /*!< AVD level 3 */
  12627. /******************** Bit definition for PWR_CSR1 register ********************/
  12628. #define PWR_CSR1_AVDO_Pos (16U)
  12629. #define PWR_CSR1_AVDO_Msk (0x1U << PWR_CSR1_AVDO_Pos) /*!< 0x00010000 */
  12630. #define PWR_CSR1_AVDO PWR_CSR1_AVDO_Msk /*!< Analog Voltage Detect Output */
  12631. #define PWR_CSR1_ACTVOS_Pos (14U)
  12632. #define PWR_CSR1_ACTVOS_Msk (0x3U << PWR_CSR1_ACTVOS_Pos) /*!< 0x0000C000 */
  12633. #define PWR_CSR1_ACTVOS PWR_CSR1_ACTVOS_Msk /*!< Current actual used VOS for VDD11 Voltage Scaling */
  12634. #define PWR_CSR1_ACTVOS_0 (0x1U << PWR_CSR1_ACTVOS_Pos) /*!< 0x00004000 */
  12635. #define PWR_CSR1_ACTVOS_1 (0x2U << PWR_CSR1_ACTVOS_Pos) /*!< 0x00008000 */
  12636. #define PWR_CSR1_ACTVOSRDY_Pos (13U)
  12637. #define PWR_CSR1_ACTVOSRDY_Msk (0x1U << PWR_CSR1_ACTVOSRDY_Pos) /*!< 0x00002000 */
  12638. #define PWR_CSR1_ACTVOSRDY PWR_CSR1_ACTVOSRDY_Msk /*!< Ready bit for current actual used VOS for VDD11 Voltage Scaling */
  12639. #define PWR_CSR1_PVDO_Pos (4U)
  12640. #define PWR_CSR1_PVDO_Msk (0x1U << PWR_CSR1_PVDO_Pos) /*!< 0x00000010 */
  12641. #define PWR_CSR1_PVDO PWR_CSR1_PVDO_Msk /*!< Programmable Voltage Detect Output */
  12642. /******************** Bit definition for PWR_CR2 register ********************/
  12643. #define PWR_CR2_TEMPH_Pos (23U)
  12644. #define PWR_CR2_TEMPH_Msk (0x1U << PWR_CR2_TEMPH_Pos) /*!< 0x00800000 */
  12645. #define PWR_CR2_TEMPH PWR_CR2_TEMPH_Msk /*!< Monitored temperature level above high threshold */
  12646. #define PWR_CR2_TEMPL_Pos (22U)
  12647. #define PWR_CR2_TEMPL_Msk (0x1U << PWR_CR2_TEMPL_Pos) /*!< 0x00400000 */
  12648. #define PWR_CR2_TEMPL PWR_CR2_TEMPL_Msk /*!< Monitored temperature level above low threshold */
  12649. #define PWR_CR2_VBATH_Pos (21U)
  12650. #define PWR_CR2_VBATH_Msk (0x1U << PWR_CR2_VBATH_Pos) /*!< 0x00200000 */
  12651. #define PWR_CR2_VBATH PWR_CR2_VBATH_Msk /*!< Monitored VBAT level above high threshold */
  12652. #define PWR_CR2_VBATL_Pos (20U)
  12653. #define PWR_CR2_VBATL_Msk (0x1U << PWR_CR2_VBATL_Pos) /*!< 0x00100000 */
  12654. #define PWR_CR2_VBATL PWR_CR2_VBATL_Msk /*!< Monitored VBAT level above low threshold */
  12655. #define PWR_CR2_BRRDY_Pos (16U)
  12656. #define PWR_CR2_BRRDY_Msk (0x1U << PWR_CR2_BRRDY_Pos) /*!< 0x00010000 */
  12657. #define PWR_CR2_BRRDY PWR_CR2_BRRDY_Msk /*!< Backup regulator ready */
  12658. #define PWR_CR2_MONEN_Pos (4U)
  12659. #define PWR_CR2_MONEN_Msk (0x1U << PWR_CR2_MONEN_Pos) /*!< 0x00000010 */
  12660. #define PWR_CR2_MONEN PWR_CR2_MONEN_Msk /*!< VBAT and temperature monitoring enable */
  12661. #define PWR_CR2_BREN_Pos (0U)
  12662. #define PWR_CR2_BREN_Msk (0x1U << PWR_CR2_BREN_Pos) /*!< 0x00000001 */
  12663. #define PWR_CR2_BREN PWR_CR2_BREN_Msk /*!< Backup regulator enable */
  12664. /******************** Bit definition for PWR_CR3 register ********************/
  12665. #define PWR_CR3_USB33RDY_Pos (26U)
  12666. #define PWR_CR3_USB33RDY_Msk (0x1U << PWR_CR3_USB33RDY_Pos) /*!< 0x04000000 */
  12667. #define PWR_CR3_USB33RDY PWR_CR3_USB33RDY_Msk /*!< USB supply ready */
  12668. #define PWR_CR3_USBREGEN_Pos (25U)
  12669. #define PWR_CR3_USBREGEN_Msk (0x1U << PWR_CR3_USBREGEN_Pos) /*!< 0x02000000 */
  12670. #define PWR_CR3_USBREGEN PWR_CR3_USBREGEN_Msk /*!< USB regulator enable */
  12671. #define PWR_CR3_USB33DEN_Pos (24U)
  12672. #define PWR_CR3_USB33DEN_Msk (0x1U << PWR_CR3_USB33DEN_Pos) /*!< 0x01000000 */
  12673. #define PWR_CR3_USB33DEN PWR_CR3_USB33DEN_Msk /*!< VDD33_USB voltage level detector enable */
  12674. #define PWR_CR3_VBRS_Pos (9U)
  12675. #define PWR_CR3_VBRS_Msk (0x1U << PWR_CR3_VBRS_Pos) /*!< 0x00000200 */
  12676. #define PWR_CR3_VBRS PWR_CR3_VBRS_Msk /*!< VBAT charging resistor selection */
  12677. #define PWR_CR3_VBE_Pos (8U)
  12678. #define PWR_CR3_VBE_Msk (0x1U << PWR_CR3_VBE_Pos) /*!< 0x00000100 */
  12679. #define PWR_CR3_VBE PWR_CR3_VBE_Msk /*!< VBAT charging enable */
  12680. #define PWR_CR3_SCUEN_Pos (2U)
  12681. #define PWR_CR3_SCUEN_Msk (0x1U << PWR_CR3_SCUEN_Pos) /*!< 0x00000004 */
  12682. #define PWR_CR3_SCUEN PWR_CR3_SCUEN_Msk /*!< Supply configuration update enable */
  12683. #define PWR_CR3_LDOEN_Pos (1U)
  12684. #define PWR_CR3_LDOEN_Msk (0x1U << PWR_CR3_LDOEN_Pos) /*!< 0x00000002 */
  12685. #define PWR_CR3_LDOEN PWR_CR3_LDOEN_Msk /*!< Low Drop Output regulator enable */
  12686. #define PWR_CR3_BYPASS_Pos (0U)
  12687. #define PWR_CR3_BYPASS_Msk (0x1U << PWR_CR3_BYPASS_Pos) /*!< 0x00000001 */
  12688. #define PWR_CR3_BYPASS PWR_CR3_BYPASS_Msk /*!< Power Management Unit bypass */
  12689. /******************** Bit definition for PWR_CPUCR register ********************/
  12690. #define PWR_CPUCR_RUN_D3_Pos (11U)
  12691. #define PWR_CPUCR_RUN_D3_Msk (0x1U << PWR_CPUCR_RUN_D3_Pos) /*!< 0x00000800 */
  12692. #define PWR_CPUCR_RUN_D3 PWR_CPUCR_RUN_D3_Msk /*!< Keep system D3 domain in RUN mode regardless of the CPU sub-systems modes */
  12693. #define PWR_CPUCR_CSSF_Pos (9U)
  12694. #define PWR_CPUCR_CSSF_Msk (0x1U << PWR_CPUCR_CSSF_Pos) /*!< 0x00000200 */
  12695. #define PWR_CPUCR_CSSF PWR_CPUCR_CSSF_Msk /*!< Clear D1 domain CPU STANDBY, STOP and HOLD flags */
  12696. #define PWR_CPUCR_SBF_D2_Pos (8U)
  12697. #define PWR_CPUCR_SBF_D2_Msk (0x1U << PWR_CPUCR_SBF_D2_Pos) /*!< 0x00000100 */
  12698. #define PWR_CPUCR_SBF_D2 PWR_CPUCR_SBF_D2_Msk /*!< D2 domain DSTANDBY Flag */
  12699. #define PWR_CPUCR_SBF_D1_Pos (7U)
  12700. #define PWR_CPUCR_SBF_D1_Msk (0x1U << PWR_CPUCR_SBF_D1_Pos) /*!< 0x00000080 */
  12701. #define PWR_CPUCR_SBF_D1 PWR_CPUCR_SBF_D1_Msk /*!< D1 domain DSTANDBY Flag */
  12702. #define PWR_CPUCR_SBF_Pos (6U)
  12703. #define PWR_CPUCR_SBF_Msk (0x1U << PWR_CPUCR_SBF_Pos) /*!< 0x00000040 */
  12704. #define PWR_CPUCR_SBF PWR_CPUCR_SBF_Msk /*!< System STANDBY Flag */
  12705. #define PWR_CPUCR_STOPF_Pos (5U)
  12706. #define PWR_CPUCR_STOPF_Msk (0x1U << PWR_CPUCR_STOPF_Pos) /*!< 0x00000020 */
  12707. #define PWR_CPUCR_STOPF PWR_CPUCR_STOPF_Msk /*!< STOP Flag */
  12708. #define PWR_CPUCR_PDDS_D3_Pos (2U)
  12709. #define PWR_CPUCR_PDDS_D3_Msk (0x1U << PWR_CPUCR_PDDS_D3_Pos) /*!< 0x00000004 */
  12710. #define PWR_CPUCR_PDDS_D3 PWR_CPUCR_PDDS_D3_Msk /*!< System D3 domain Power Down Deepsleep */
  12711. #define PWR_CPUCR_PDDS_D2_Pos (1U)
  12712. #define PWR_CPUCR_PDDS_D2_Msk (0x1U << PWR_CPUCR_PDDS_D2_Pos) /*!< 0x00000002 */
  12713. #define PWR_CPUCR_PDDS_D2 PWR_CPUCR_PDDS_D2_Msk /*!< D2 domain Power Down Deepsleep */
  12714. #define PWR_CPUCR_PDDS_D1_Pos (0U)
  12715. #define PWR_CPUCR_PDDS_D1_Msk (0x1U << PWR_CPUCR_PDDS_D1_Pos) /*!< 0x00000001 */
  12716. #define PWR_CPUCR_PDDS_D1 PWR_CPUCR_PDDS_D1_Msk /*!< D1 domain Power Down Deepsleep selection */
  12717. /******************** Bit definition for PWR_D3CR register ********************/
  12718. #define PWR_D3CR_VOS_Pos (14U)
  12719. #define PWR_D3CR_VOS_Msk (0x3U << PWR_D3CR_VOS_Pos) /*!< 0x0000C000 */
  12720. #define PWR_D3CR_VOS PWR_D3CR_VOS_Msk /*!< Voltage Scaling selection according performance */
  12721. #define PWR_D3CR_VOS_0 (0x1U << PWR_D3CR_VOS_Pos) /*!< 0x00004000 */
  12722. #define PWR_D3CR_VOS_1 (0x2U << PWR_D3CR_VOS_Pos) /*!< 0x00008000 */
  12723. #define PWR_D3CR_VOSRDY_Pos (13U)
  12724. #define PWR_D3CR_VOSRDY_Msk (0x1U << PWR_D3CR_VOSRDY_Pos) /*!< 0x00002000 */
  12725. #define PWR_D3CR_VOSRDY PWR_D3CR_VOSRDY_Msk /*!< VOS Ready bit for VDD11 Voltage Scaling output selection */
  12726. /******************** Bit definition for PWR_WKUPCR register ********************/
  12727. #define PWR_WKUPCR_WKUPC6_Pos (5U)
  12728. #define PWR_WKUPCR_WKUPC6_Msk (0x1U << PWR_WKUPCR_WKUPC6_Pos) /*!< 0x00000020 */
  12729. #define PWR_WKUPCR_WKUPC6 PWR_WKUPCR_WKUPC6_Msk /*!< Clear Wakeup Pin Flag 6 */
  12730. #define PWR_WKUPCR_WKUPC5_Pos (4U)
  12731. #define PWR_WKUPCR_WKUPC5_Msk (0x1U << PWR_WKUPCR_WKUPC5_Pos) /*!< 0x00000010 */
  12732. #define PWR_WKUPCR_WKUPC5 PWR_WKUPCR_WKUPC5_Msk /*!< Clear Wakeup Pin Flag 5 */
  12733. #define PWR_WKUPCR_WKUPC4_Pos (3U)
  12734. #define PWR_WKUPCR_WKUPC4_Msk (0x1U << PWR_WKUPCR_WKUPC4_Pos) /*!< 0x00000008 */
  12735. #define PWR_WKUPCR_WKUPC4 PWR_WKUPCR_WKUPC4_Msk /*!< Clear Wakeup Pin Flag 4 */
  12736. #define PWR_WKUPCR_WKUPC3_Pos (2U)
  12737. #define PWR_WKUPCR_WKUPC3_Msk (0x1U << PWR_WKUPCR_WKUPC3_Pos) /*!< 0x00000004 */
  12738. #define PWR_WKUPCR_WKUPC3 PWR_WKUPCR_WKUPC3_Msk /*!< Clear Wakeup Pin Flag 3 */
  12739. #define PWR_WKUPCR_WKUPC2_Pos (1U)
  12740. #define PWR_WKUPCR_WKUPC2_Msk (0x1U << PWR_WKUPCR_WKUPC2_Pos) /*!< 0x00000002 */
  12741. #define PWR_WKUPCR_WKUPC2 PWR_WKUPCR_WKUPC2_Msk /*!< Clear Wakeup Pin Flag 2 */
  12742. #define PWR_WKUPCR_WKUPC1_Pos (0U)
  12743. #define PWR_WKUPCR_WKUPC1_Msk (0x1U << PWR_WKUPCR_WKUPC1_Pos) /*!< 0x00000001 */
  12744. #define PWR_WKUPCR_WKUPC1 PWR_WKUPCR_WKUPC1_Msk /*!< Clear Wakeup Pin Flag 1 */
  12745. /******************** Bit definition for PWR_WKUPFR register ********************/
  12746. #define PWR_WKUPFR_WKUPF6_Pos (5U)
  12747. #define PWR_WKUPFR_WKUPF6_Msk (0x1U << PWR_WKUPFR_WKUPF6_Pos) /*!< 0x00000020 */
  12748. #define PWR_WKUPFR_WKUPF6 PWR_WKUPFR_WKUPF6_Msk /*!< Wakeup Pin Flag 6 */
  12749. #define PWR_WKUPFR_WKUPF5_Pos (4U)
  12750. #define PWR_WKUPFR_WKUPF5_Msk (0x1U << PWR_WKUPFR_WKUPF5_Pos) /*!< 0x00000010 */
  12751. #define PWR_WKUPFR_WKUPF5 PWR_WKUPFR_WKUPF5_Msk /*!< Wakeup Pin Flag 5 */
  12752. #define PWR_WKUPFR_WKUPF4_Pos (3U)
  12753. #define PWR_WKUPFR_WKUPF4_Msk (0x1U << PWR_WKUPFR_WKUPF4_Pos) /*!< 0x00000008 */
  12754. #define PWR_WKUPFR_WKUPF4 PWR_WKUPFR_WKUPF4_Msk /*!< Wakeup Pin Flag 4 */
  12755. #define PWR_WKUPFR_WKUPF3_Pos (2U)
  12756. #define PWR_WKUPFR_WKUPF3_Msk (0x1U << PWR_WKUPFR_WKUPF3_Pos) /*!< 0x00000004 */
  12757. #define PWR_WKUPFR_WKUPF3 PWR_WKUPFR_WKUPF3_Msk /*!< Wakeup Pin Flag 3 */
  12758. #define PWR_WKUPFR_WKUPF2_Pos (1U)
  12759. #define PWR_WKUPFR_WKUPF2_Msk (0x1U << PWR_WKUPFR_WKUPF2_Pos) /*!< 0x00000002 */
  12760. #define PWR_WKUPFR_WKUPF2 PWR_WKUPFR_WKUPF2_Msk /*!< Wakeup Pin Flag 2 */
  12761. #define PWR_WKUPFR_WKUPF1_Pos (0U)
  12762. #define PWR_WKUPFR_WKUPF1_Msk (0x1U << PWR_WKUPFR_WKUPF1_Pos) /*!< 0x00000001 */
  12763. #define PWR_WKUPFR_WKUPF1 PWR_WKUPFR_WKUPF1_Msk /*!< Wakeup Pin Flag 1 */
  12764. /******************** Bit definition for PWR_WKUPEPR register ********************/
  12765. #define PWR_WKUPEPR_WKUPPUPD6_Pos (26U)
  12766. #define PWR_WKUPEPR_WKUPPUPD6_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x0C000000 */
  12767. #define PWR_WKUPEPR_WKUPPUPD6 PWR_WKUPEPR_WKUPPUPD6_Msk /*!< Wakeup Pin pull configuration for WKUP6 */
  12768. #define PWR_WKUPEPR_WKUPPUPD6_0 (0x1U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x04000000 */
  12769. #define PWR_WKUPEPR_WKUPPUPD6_1 (0x2U << PWR_WKUPEPR_WKUPPUPD6_Pos) /*!< 0x08000000 */
  12770. #define PWR_WKUPEPR_WKUPPUPD5_Pos (24U)
  12771. #define PWR_WKUPEPR_WKUPPUPD5_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x03000000 */
  12772. #define PWR_WKUPEPR_WKUPPUPD5 PWR_WKUPEPR_WKUPPUPD5_Msk /*!< Wakeup Pin pull configuration for WKUP5 */
  12773. #define PWR_WKUPEPR_WKUPPUPD5_0 (0x1U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x01000000 */
  12774. #define PWR_WKUPEPR_WKUPPUPD5_1 (0x2U << PWR_WKUPEPR_WKUPPUPD5_Pos) /*!< 0x02000000 */
  12775. #define PWR_WKUPEPR_WKUPPUPD4_Pos (22U)
  12776. #define PWR_WKUPEPR_WKUPPUPD4_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00C00000 */
  12777. #define PWR_WKUPEPR_WKUPPUPD4 PWR_WKUPEPR_WKUPPUPD4_Msk /*!< Wakeup Pin pull configuration for WKUP4 */
  12778. #define PWR_WKUPEPR_WKUPPUPD4_0 (0x1U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00400000 */
  12779. #define PWR_WKUPEPR_WKUPPUPD4_1 (0x2U << PWR_WKUPEPR_WKUPPUPD4_Pos) /*!< 0x00800000 */
  12780. #define PWR_WKUPEPR_WKUPPUPD3_Pos (20U)
  12781. #define PWR_WKUPEPR_WKUPPUPD3_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00300000 */
  12782. #define PWR_WKUPEPR_WKUPPUPD3 PWR_WKUPEPR_WKUPPUPD3_Msk /*!< Wakeup Pin pull configuration for WKUP3 */
  12783. #define PWR_WKUPEPR_WKUPPUPD3_0 (0x1U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00100000 */
  12784. #define PWR_WKUPEPR_WKUPPUPD3_1 (0x2U << PWR_WKUPEPR_WKUPPUPD3_Pos) /*!< 0x00200000 */
  12785. #define PWR_WKUPEPR_WKUPPUPD2_Pos (18U)
  12786. #define PWR_WKUPEPR_WKUPPUPD2_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x000C0000 */
  12787. #define PWR_WKUPEPR_WKUPPUPD2 PWR_WKUPEPR_WKUPPUPD2_Msk /*!< Wakeup Pin pull configuration for WKUP2 */
  12788. #define PWR_WKUPEPR_WKUPPUPD2_0 (0x1U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00040000 */
  12789. #define PWR_WKUPEPR_WKUPPUPD2_1 (0x2U << PWR_WKUPEPR_WKUPPUPD2_Pos) /*!< 0x00080000 */
  12790. #define PWR_WKUPEPR_WKUPPUPD1_Pos (16U)
  12791. #define PWR_WKUPEPR_WKUPPUPD1_Msk (0x3U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00030000 */
  12792. #define PWR_WKUPEPR_WKUPPUPD1 PWR_WKUPEPR_WKUPPUPD1_Msk /*!< Wakeup Pin pull configuration for WKUP1 */
  12793. #define PWR_WKUPEPR_WKUPPUPD1_0 (0x1U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00010000 */
  12794. #define PWR_WKUPEPR_WKUPPUPD1_1 (0x2U << PWR_WKUPEPR_WKUPPUPD1_Pos) /*!< 0x00020000 */
  12795. #define PWR_WKUPEPR_WKUPP_6 ((uint32_t)0x00002000U) /*!< Wakeup Pin Polarity for WKUP6 */
  12796. #define PWR_WKUPEPR_WKUPP_5 ((uint32_t)0x00001000U) /*!< Wakeup Pin Polarity for WKUP5 */
  12797. #define PWR_WKUPEPR_WKUPP_4 ((uint32_t)0x00000800U) /*!< Wakeup Pin Polarity for WKUP4 */
  12798. #define PWR_WKUPEPR_WKUPP_3 ((uint32_t)0x00000400U) /*!< Wakeup Pin Polarity for WKUP3 */
  12799. #define PWR_WKUPEPR_WKUPP_2 ((uint32_t)0x00000200U) /*!< Wakeup Pin Polarity for WKUP2 */
  12800. #define PWR_WKUPEPR_WKUPP_1 ((uint32_t)0x00000100U) /*!< Wakeup Pin Polarity for WKUP1 */
  12801. #define PWR_WKUPEPR_WKUPEN_6 ((uint32_t)0x00000020U) /*!< Enable Wakeup Pin WKUP6 */
  12802. #define PWR_WKUPEPR_WKUPEN_5 ((uint32_t)0x00000010U) /*!< Enable Wakeup Pin WKUP5 */
  12803. #define PWR_WKUPEPR_WKUPEN_4 ((uint32_t)0x00000008U) /*!< Enable Wakeup Pin WKUP4 */
  12804. #define PWR_WKUPEPR_WKUPEN_3 ((uint32_t)0x00000004U) /*!< Enable Wakeup Pin WKUP3 */
  12805. #define PWR_WKUPEPR_WKUPEN_2 ((uint32_t)0x00000002U) /*!< Enable Wakeup Pin WKUP2 */
  12806. #define PWR_WKUPEPR_WKUPEN_1 ((uint32_t)0x00000001U) /*!< Enable Wakeup Pin WKUP1 */
  12807. /******************************************************************************/
  12808. /* */
  12809. /* Reset and Clock Control */
  12810. /* */
  12811. /******************************************************************************/
  12812. /******************** Bit definition for RCC_CR register ********************/
  12813. #define RCC_CR_HSION_Pos (0U)
  12814. #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000001 */
  12815. #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */
  12816. #define RCC_CR_HSIKERON_Pos (1U)
  12817. #define RCC_CR_HSIKERON_Msk (0x1U << RCC_CR_HSIKERON_Pos) /*!< 0x00000002 */
  12818. #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed clock enable for some IPs Kernel */
  12819. #define RCC_CR_HSIRDY_Pos (2U)
  12820. #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000004 */
  12821. #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */
  12822. #define RCC_CR_HSIDIV_Pos (3U)
  12823. #define RCC_CR_HSIDIV_Msk (0x3U << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  12824. #define RCC_CR_HSIDIV RCC_CR_HSIDIV_Msk /*!< Internal High Speed clock divider selection */
  12825. #define RCC_CR_HSIDIV_1 (0x0U << RCC_CR_HSIDIV_Pos) /*!< 0x00000000 */
  12826. #define RCC_CR_HSIDIV_2 (0x1U << RCC_CR_HSIDIV_Pos) /*!< 0x00000008 */
  12827. #define RCC_CR_HSIDIV_4 (0x2U << RCC_CR_HSIDIV_Pos) /*!< 0x00000010 */
  12828. #define RCC_CR_HSIDIV_8 (0x3U << RCC_CR_HSIDIV_Pos) /*!< 0x00000018 */
  12829. #define RCC_CR_HSIDIVF_Pos (5U)
  12830. #define RCC_CR_HSIDIVF_Msk (0x1U << RCC_CR_HSIDIVF_Pos) /*!< 0x00000020 */
  12831. #define RCC_CR_HSIDIVF RCC_CR_HSIDIVF_Msk /*!< HSI Divider flag */
  12832. #define RCC_CR_CSION_Pos (7U)
  12833. #define RCC_CR_CSION_Msk (0x1U << RCC_CR_CSION_Pos) /*!< 0x00000080 */
  12834. #define RCC_CR_CSION RCC_CR_CSION_Msk /*!< The Internal RC 4MHz oscillator clock enable */
  12835. #define RCC_CR_CSIRDY_Pos (8U)
  12836. #define RCC_CR_CSIRDY_Msk (0x1U << RCC_CR_CSIRDY_Pos) /*!< 0x00000100 */
  12837. #define RCC_CR_CSIRDY RCC_CR_CSIRDY_Msk /*!< The Internal RC 4MHz oscillator clock ready */
  12838. #define RCC_CR_CSIKERON_Pos (9U)
  12839. #define RCC_CR_CSIKERON_Msk (0x1U << RCC_CR_CSIKERON_Pos) /*!< 0x00000200 */
  12840. #define RCC_CR_CSIKERON RCC_CR_CSIKERON_Msk /*!< Internal RC 4MHz oscillator clock enable for some IPs Kernel */
  12841. #define RCC_CR_HSI48ON_Pos (12U)
  12842. #define RCC_CR_HSI48ON_Msk (0x1U << RCC_CR_HSI48ON_Pos) /*!< 0x00001000 */
  12843. #define RCC_CR_HSI48ON RCC_CR_HSI48ON_Msk /*!< HSI48 clock enable clock enable */
  12844. #define RCC_CR_HSI48RDY_Pos (13U)
  12845. #define RCC_CR_HSI48RDY_Msk (0x1U << RCC_CR_HSI48RDY_Pos) /*!< 0x00002000 */
  12846. #define RCC_CR_HSI48RDY RCC_CR_HSI48RDY_Msk /*!< HSI48 clock ready */
  12847. #define RCC_CR_D1CKRDY_Pos (14U)
  12848. #define RCC_CR_D1CKRDY_Msk (0x1U << RCC_CR_D1CKRDY_Pos) /*!< 0x00004000 */
  12849. #define RCC_CR_D1CKRDY RCC_CR_D1CKRDY_Msk /*!< D1 domain clocks ready flag */
  12850. #define RCC_CR_D2CKRDY_Pos (15U)
  12851. #define RCC_CR_D2CKRDY_Msk (0x1U << RCC_CR_D2CKRDY_Pos) /*!< 0x00008000 */
  12852. #define RCC_CR_D2CKRDY RCC_CR_D2CKRDY_Msk /*!< D2 domain clocks ready flag */
  12853. #define RCC_CR_HSEON_Pos (16U)
  12854. #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */
  12855. #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */
  12856. #define RCC_CR_HSERDY_Pos (17U)
  12857. #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
  12858. #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready */
  12859. #define RCC_CR_HSEBYP_Pos (18U)
  12860. #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
  12861. #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */
  12862. #define RCC_CR_CSSHSEON_Pos (19U)
  12863. #define RCC_CR_CSSHSEON_Msk (0x1U << RCC_CR_CSSHSEON_Pos) /*!< 0x00080000 */
  12864. #define RCC_CR_CSSHSEON RCC_CR_CSSHSEON_Msk /*!< HSE Clock security System enable */
  12865. #define RCC_CR_PLL1ON_Pos (24U)
  12866. #define RCC_CR_PLL1ON_Msk (0x1U << RCC_CR_PLL1ON_Pos) /*!< 0x01000000 */
  12867. #define RCC_CR_PLL1ON RCC_CR_PLL1ON_Msk /*!< System PLL1 clock enable */
  12868. #define RCC_CR_PLL1RDY_Pos (25U)
  12869. #define RCC_CR_PLL1RDY_Msk (0x1U << RCC_CR_PLL1RDY_Pos) /*!< 0x02000000 */
  12870. #define RCC_CR_PLL1RDY RCC_CR_PLL1RDY_Msk /*!< System PLL1 clock ready */
  12871. #define RCC_CR_PLL2ON_Pos (26U)
  12872. #define RCC_CR_PLL2ON_Msk (0x1U << RCC_CR_PLL2ON_Pos) /*!< 0x04000000 */
  12873. #define RCC_CR_PLL2ON RCC_CR_PLL2ON_Msk /*!< System PLL2 clock enable */
  12874. #define RCC_CR_PLL2RDY_Pos (27U)
  12875. #define RCC_CR_PLL2RDY_Msk (0x1U << RCC_CR_PLL2RDY_Pos) /*!< 0x08000000 */
  12876. #define RCC_CR_PLL2RDY RCC_CR_PLL2RDY_Msk /*!< System PLL2 clock ready */
  12877. #define RCC_CR_PLL3ON_Pos (28U)
  12878. #define RCC_CR_PLL3ON_Msk (0x1U << RCC_CR_PLL3ON_Pos) /*!< 0x10000000 */
  12879. #define RCC_CR_PLL3ON RCC_CR_PLL3ON_Msk /*!< System PLL3 clock enable */
  12880. #define RCC_CR_PLL3RDY_Pos (29U)
  12881. #define RCC_CR_PLL3RDY_Msk (0x1U << RCC_CR_PLL3RDY_Pos) /*!< 0x20000000 */
  12882. #define RCC_CR_PLL3RDY RCC_CR_PLL3RDY_Msk /*!< System PLL3 clock ready */
  12883. /*Legacy */
  12884. #define RCC_CR_PLLON_Pos (24U)
  12885. #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */
  12886. #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */
  12887. #define RCC_CR_PLLRDY_Pos (25U)
  12888. #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */
  12889. #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */
  12890. /******************** Bit definition for RCC_ICSCR register ***************/
  12891. /*!< HSICAL configuration */
  12892. #define RCC_ICSCR_HSICAL_Pos (0U)
  12893. #define RCC_ICSCR_HSICAL_Msk (0xFFFU << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000FFF */
  12894. #define RCC_ICSCR_HSICAL RCC_ICSCR_HSICAL_Msk /*!< HSICAL[11:0] bits */
  12895. #define RCC_ICSCR_HSICAL_0 (0x001U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000001 */
  12896. #define RCC_ICSCR_HSICAL_1 (0x002U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000002 */
  12897. #define RCC_ICSCR_HSICAL_2 (0x004U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000004 */
  12898. #define RCC_ICSCR_HSICAL_3 (0x008U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000008 */
  12899. #define RCC_ICSCR_HSICAL_4 (0x010U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000010 */
  12900. #define RCC_ICSCR_HSICAL_5 (0x020U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000020 */
  12901. #define RCC_ICSCR_HSICAL_6 (0x040U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000040 */
  12902. #define RCC_ICSCR_HSICAL_7 (0x080U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000080 */
  12903. #define RCC_ICSCR_HSICAL_8 (0x100U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000100 */
  12904. #define RCC_ICSCR_HSICAL_9 (0x200U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000200 */
  12905. #define RCC_ICSCR_HSICAL_10 (0x400U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000400 */
  12906. #define RCC_ICSCR_HSICAL_11 (0x800U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00000800 */
  12907. /*!< HSITRIM configuration */
  12908. #define RCC_ICSCR_HSITRIM_Pos (12U)
  12909. #define RCC_ICSCR_HSITRIM_Msk (0x3FU << RCC_ICSCR_HSITRIM_Pos) /*!< 0x0003F000 */
  12910. #define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[5:0] bits */
  12911. #define RCC_ICSCR_HSITRIM_0 (0x01U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00001000 */
  12912. #define RCC_ICSCR_HSITRIM_1 (0x02U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00002000 */
  12913. #define RCC_ICSCR_HSITRIM_2 (0x04U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00004000 */
  12914. #define RCC_ICSCR_HSITRIM_3 (0x08U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00008000 */
  12915. #define RCC_ICSCR_HSITRIM_4 (0x10U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00010000 */
  12916. #define RCC_ICSCR_HSITRIM_5 (0x20U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x00020000 */
  12917. /*!< CSICAL configuration */
  12918. #define RCC_ICSCR_CSICAL_Pos (18U)
  12919. #define RCC_ICSCR_CSICAL_Msk (0xFFU << RCC_ICSCR_CSICAL_Pos) /*!< 0x03FC0000 */
  12920. #define RCC_ICSCR_CSICAL RCC_ICSCR_CSICAL_Msk /*!< CSICAL[7:0] bits */
  12921. #define RCC_ICSCR_CSICAL_0 (0x01U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00040000 */
  12922. #define RCC_ICSCR_CSICAL_1 (0x02U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00080000 */
  12923. #define RCC_ICSCR_CSICAL_2 (0x04U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00100000 */
  12924. #define RCC_ICSCR_CSICAL_3 (0x08U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00200000 */
  12925. #define RCC_ICSCR_CSICAL_4 (0x10U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00400000 */
  12926. #define RCC_ICSCR_CSICAL_5 (0x20U << RCC_ICSCR_CSICAL_Pos) /*!< 0x00800000 */
  12927. #define RCC_ICSCR_CSICAL_6 (0x40U << RCC_ICSCR_CSICAL_Pos) /*!< 0x01000000 */
  12928. #define RCC_ICSCR_CSICAL_7 (0x80U << RCC_ICSCR_CSICAL_Pos) /*!< 0x02000000 */
  12929. /*!< CSITRIM configuration */
  12930. #define RCC_ICSCR_CSITRIM_Pos (26U)
  12931. #define RCC_ICSCR_CSITRIM_Msk (0x1FU << RCC_ICSCR_CSITRIM_Pos) /*!< 0x7C000000 */
  12932. #define RCC_ICSCR_CSITRIM RCC_ICSCR_CSITRIM_Msk /*!< CSITRIM[4:0] bits */
  12933. #define RCC_ICSCR_CSITRIM_0 (0x01U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x04000000 */
  12934. #define RCC_ICSCR_CSITRIM_1 (0x02U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x08000000 */
  12935. #define RCC_ICSCR_CSITRIM_2 (0x04U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x10000000 */
  12936. #define RCC_ICSCR_CSITRIM_3 (0x08U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x20000000 */
  12937. #define RCC_ICSCR_CSITRIM_4 (0x10U << RCC_ICSCR_CSITRIM_Pos) /*!< 0x40000000 */
  12938. /******************** Bit definition for RCC_CRRCR register *****************/
  12939. /*!< HSI48CAL configuration */
  12940. #define RCC_CRRCR_HSI48CAL_Pos (0U)
  12941. #define RCC_CRRCR_HSI48CAL_Msk (0x3FFU << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x000003FF */
  12942. #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[9:0] bits */
  12943. #define RCC_CRRCR_HSI48CAL_0 (0x001U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000001 */
  12944. #define RCC_CRRCR_HSI48CAL_1 (0x002U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000002 */
  12945. #define RCC_CRRCR_HSI48CAL_2 (0x004U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000004 */
  12946. #define RCC_CRRCR_HSI48CAL_3 (0x008U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000008 */
  12947. #define RCC_CRRCR_HSI48CAL_4 (0x010U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000010 */
  12948. #define RCC_CRRCR_HSI48CAL_5 (0x020U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000020 */
  12949. #define RCC_CRRCR_HSI48CAL_6 (0x040U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000040 */
  12950. #define RCC_CRRCR_HSI48CAL_7 (0x080U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000080 */
  12951. #define RCC_CRRCR_HSI48CAL_8 (0x100U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000100 */
  12952. #define RCC_CRRCR_HSI48CAL_9 (0x200U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00000200 */
  12953. /******************** Bit definition for RCC_CFGR register ******************/
  12954. /*!< SW configuration */
  12955. #define RCC_CFGR_SW ((uint32_t)0x00000007) /*!< SW[2:0] bits (System clock Switch) */
  12956. #define RCC_CFGR_SW_0 ((uint32_t)0x00000001) /*!<Bit 0 */
  12957. #define RCC_CFGR_SW_1 ((uint32_t)0x00000002) /*!<Bit 1 */
  12958. #define RCC_CFGR_SW_2 ((uint32_t)0x00000004) /*!<Bit 2 */
  12959. #define RCC_CFGR_SW_HSI ((uint32_t)0x00000000) /*!< HSI selection as system clock */
  12960. #define RCC_CFGR_SW_CSI ((uint32_t)0x00000001) /*!< CSI selection as system clock */
  12961. #define RCC_CFGR_SW_HSE ((uint32_t)0x00000002) /*!< HSE selection as system clock */
  12962. #define RCC_CFGR_SW_PLL1 ((uint32_t)0x00000003) /*!< PLL1 selection as system clock */
  12963. /*!< SWS configuration */
  12964. #define RCC_CFGR_SWS ((uint32_t)0x00000038) /*!< SWS[2:0] bits (System Clock Switch Status) */
  12965. #define RCC_CFGR_SWS_0 ((uint32_t)0x00000008) /*!<Bit 0 */
  12966. #define RCC_CFGR_SWS_1 ((uint32_t)0x00000010) /*!<Bit 1 */
  12967. #define RCC_CFGR_SWS_2 ((uint32_t)0x00000020) /*!<Bit 2 */
  12968. #define RCC_CFGR_SWS_HSI ((uint32_t)0x00000000) /*!< HSI used as system clock */
  12969. #define RCC_CFGR_SWS_CSI ((uint32_t)0x00000008) /*!< CSI used as system clock */
  12970. #define RCC_CFGR_SWS_HSE ((uint32_t)0x00000010) /*!< HSE used as system clock */
  12971. #define RCC_CFGR_SWS_PLL1 ((uint32_t)0x00000018) /*!< PLL1 used as system clock */
  12972. #define RCC_CFGR_STOPWUCK ((uint32_t)0x00000040) /*!< Wake Up from stop and CSS backup clock selection */
  12973. #define RCC_CFGR_STOPKERWUCK ((uint32_t)0x00000080) /*!< Kernel Clock Selection after a Wake Up from STOP */
  12974. /*!< RTCPRE configuration */
  12975. #define RCC_CFGR_RTCPRE ((uint32_t)0x00003F00)
  12976. #define RCC_CFGR_RTCPRE_0 ((uint32_t)0x00000100)
  12977. #define RCC_CFGR_RTCPRE_1 ((uint32_t)0x00000200)
  12978. #define RCC_CFGR_RTCPRE_2 ((uint32_t)0x00000400)
  12979. #define RCC_CFGR_RTCPRE_3 ((uint32_t)0x00000800)
  12980. #define RCC_CFGR_RTCPRE_4 ((uint32_t)0x00001000)
  12981. #define RCC_CFGR_RTCPRE_5 ((uint32_t)0x00002000)
  12982. #define RCC_CFGR_HRTIMSEL ((uint32_t)0x00004000)
  12983. #define RCC_CFGR_TIMPRE ((uint32_t)0x00008000)
  12984. /*!< MCO1 configuration */
  12985. #define RCC_CFGR_MCO1 ((uint32_t)0x01C00000)
  12986. #define RCC_CFGR_MCO1_0 ((uint32_t)0x00400000)
  12987. #define RCC_CFGR_MCO1_1 ((uint32_t)0x00800000)
  12988. #define RCC_CFGR_MCO1_2 ((uint32_t)0x01000000)
  12989. #define RCC_CFGR_MCO1PRE ((uint32_t)0x003C0000)
  12990. #define RCC_CFGR_MCO1PRE_0 ((uint32_t)0x00040000)
  12991. #define RCC_CFGR_MCO1PRE_1 ((uint32_t)0x00080000)
  12992. #define RCC_CFGR_MCO1PRE_2 ((uint32_t)0x00100000)
  12993. #define RCC_CFGR_MCO1PRE_3 ((uint32_t)0x00200000)
  12994. #define RCC_CFGR_MCO2PRE ((uint32_t)0x1E000000)
  12995. #define RCC_CFGR_MCO2PRE_0 ((uint32_t)0x02000000)
  12996. #define RCC_CFGR_MCO2PRE_1 ((uint32_t)0x04000000)
  12997. #define RCC_CFGR_MCO2PRE_2 ((uint32_t)0x08000000)
  12998. #define RCC_CFGR_MCO2PRE_3 ((uint32_t)0x10000000)
  12999. #define RCC_CFGR_MCO2 ((uint32_t)0xE0000000)
  13000. #define RCC_CFGR_MCO2_0 ((uint32_t)0x20000000)
  13001. #define RCC_CFGR_MCO2_1 ((uint32_t)0x40000000)
  13002. #define RCC_CFGR_MCO2_2 ((uint32_t)0x80000000)
  13003. /******************** Bit definition for RCC_D1CFGR register ******************/
  13004. /*!< D1HPRE configuration */
  13005. #define RCC_D1CFGR_HPRE_Pos (0U)
  13006. #define RCC_D1CFGR_HPRE_Msk (0xFU << RCC_D1CFGR_HPRE_Pos) /*!< 0x0000000F */
  13007. #define RCC_D1CFGR_HPRE RCC_D1CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB3 prescaler) */
  13008. #define RCC_D1CFGR_HPRE_0 (0x1U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000001 */
  13009. #define RCC_D1CFGR_HPRE_1 (0x2U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000002 */
  13010. #define RCC_D1CFGR_HPRE_2 (0x4U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000004 */
  13011. #define RCC_D1CFGR_HPRE_3 (0x8U << RCC_D1CFGR_HPRE_Pos) /*!< 0x00000008 */
  13012. #define RCC_D1CFGR_HPRE_DIV1 ((uint32_t)0x00000000) /*!< AHB3 Clock not divided */
  13013. #define RCC_D1CFGR_HPRE_DIV2_Pos (3U)
  13014. #define RCC_D1CFGR_HPRE_DIV2_Msk (0x1U << RCC_D1CFGR_HPRE_DIV2_Pos) /*!< 0x00000008 */
  13015. #define RCC_D1CFGR_HPRE_DIV2 RCC_D1CFGR_HPRE_DIV2_Msk /*!< AHB3 Clock divided by 2 */
  13016. #define RCC_D1CFGR_HPRE_DIV4_Pos (0U)
  13017. #define RCC_D1CFGR_HPRE_DIV4_Msk (0x9U << RCC_D1CFGR_HPRE_DIV4_Pos) /*!< 0x00000009 */
  13018. #define RCC_D1CFGR_HPRE_DIV4 RCC_D1CFGR_HPRE_DIV4_Msk /*!< AHB3 Clock divided by 4 */
  13019. #define RCC_D1CFGR_HPRE_DIV8_Pos (1U)
  13020. #define RCC_D1CFGR_HPRE_DIV8_Msk (0x5U << RCC_D1CFGR_HPRE_DIV8_Pos) /*!< 0x0000000A */
  13021. #define RCC_D1CFGR_HPRE_DIV8 RCC_D1CFGR_HPRE_DIV8_Msk /*!< AHB3 Clock divided by 8 */
  13022. #define RCC_D1CFGR_HPRE_DIV16_Pos (0U)
  13023. #define RCC_D1CFGR_HPRE_DIV16_Msk (0xBU << RCC_D1CFGR_HPRE_DIV16_Pos) /*!< 0x0000000B */
  13024. #define RCC_D1CFGR_HPRE_DIV16 RCC_D1CFGR_HPRE_DIV16_Msk /*!< AHB3 Clock divided by 16 */
  13025. #define RCC_D1CFGR_HPRE_DIV64_Pos (2U)
  13026. #define RCC_D1CFGR_HPRE_DIV64_Msk (0x3U << RCC_D1CFGR_HPRE_DIV64_Pos) /*!< 0x0000000C */
  13027. #define RCC_D1CFGR_HPRE_DIV64 RCC_D1CFGR_HPRE_DIV64_Msk /*!< AHB3 Clock divided by 64 */
  13028. #define RCC_D1CFGR_HPRE_DIV128_Pos (0U)
  13029. #define RCC_D1CFGR_HPRE_DIV128_Msk (0xDU << RCC_D1CFGR_HPRE_DIV128_Pos) /*!< 0x0000000D */
  13030. #define RCC_D1CFGR_HPRE_DIV128 RCC_D1CFGR_HPRE_DIV128_Msk /*!< AHB3 Clock divided by 128 */
  13031. #define RCC_D1CFGR_HPRE_DIV256_Pos (1U)
  13032. #define RCC_D1CFGR_HPRE_DIV256_Msk (0x7U << RCC_D1CFGR_HPRE_DIV256_Pos) /*!< 0x0000000E */
  13033. #define RCC_D1CFGR_HPRE_DIV256 RCC_D1CFGR_HPRE_DIV256_Msk /*!< AHB3 Clock divided by 256 */
  13034. #define RCC_D1CFGR_HPRE_DIV512_Pos (0U)
  13035. #define RCC_D1CFGR_HPRE_DIV512_Msk (0xFU << RCC_D1CFGR_HPRE_DIV512_Pos) /*!< 0x0000000F */
  13036. #define RCC_D1CFGR_HPRE_DIV512 RCC_D1CFGR_HPRE_DIV512_Msk /*!< AHB3 Clock divided by 512 */
  13037. /*!< D1PPRE configuration */
  13038. #define RCC_D1CFGR_D1PPRE_Pos (4U)
  13039. #define RCC_D1CFGR_D1PPRE_Msk (0x7U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000070 */
  13040. #define RCC_D1CFGR_D1PPRE RCC_D1CFGR_D1PPRE_Msk /*!< D1PRE[2:0] bits (APB3 prescaler) */
  13041. #define RCC_D1CFGR_D1PPRE_0 (0x1U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000010 */
  13042. #define RCC_D1CFGR_D1PPRE_1 (0x2U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000020 */
  13043. #define RCC_D1CFGR_D1PPRE_2 (0x4U << RCC_D1CFGR_D1PPRE_Pos) /*!< 0x00000040 */
  13044. #define RCC_D1CFGR_D1PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB3 clock not divided */
  13045. #define RCC_D1CFGR_D1PPRE_DIV2_Pos (6U)
  13046. #define RCC_D1CFGR_D1PPRE_DIV2_Msk (0x1U << RCC_D1CFGR_D1PPRE_DIV2_Pos) /*!< 0x00000040 */
  13047. #define RCC_D1CFGR_D1PPRE_DIV2 RCC_D1CFGR_D1PPRE_DIV2_Msk /*!< APB3 clock divided by 2 */
  13048. #define RCC_D1CFGR_D1PPRE_DIV4_Pos (4U)
  13049. #define RCC_D1CFGR_D1PPRE_DIV4_Msk (0x5U << RCC_D1CFGR_D1PPRE_DIV4_Pos) /*!< 0x00000050 */
  13050. #define RCC_D1CFGR_D1PPRE_DIV4 RCC_D1CFGR_D1PPRE_DIV4_Msk /*!< APB3 clock divided by 4 */
  13051. #define RCC_D1CFGR_D1PPRE_DIV8_Pos (5U)
  13052. #define RCC_D1CFGR_D1PPRE_DIV8_Msk (0x3U << RCC_D1CFGR_D1PPRE_DIV8_Pos) /*!< 0x00000060 */
  13053. #define RCC_D1CFGR_D1PPRE_DIV8 RCC_D1CFGR_D1PPRE_DIV8_Msk /*!< APB3 clock divided by 8 */
  13054. #define RCC_D1CFGR_D1PPRE_DIV16_Pos (4U)
  13055. #define RCC_D1CFGR_D1PPRE_DIV16_Msk (0x7U << RCC_D1CFGR_D1PPRE_DIV16_Pos) /*!< 0x00000070 */
  13056. #define RCC_D1CFGR_D1PPRE_DIV16 RCC_D1CFGR_D1PPRE_DIV16_Msk /*!< APB3 clock divided by 16 */
  13057. #define RCC_D1CFGR_D1CPRE_Pos (8U)
  13058. #define RCC_D1CFGR_D1CPRE_Msk (0xFU << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000F00 */
  13059. #define RCC_D1CFGR_D1CPRE RCC_D1CFGR_D1CPRE_Msk /*!< D1CPRE[2:0] bits (Domain 1 Core prescaler) */
  13060. #define RCC_D1CFGR_D1CPRE_0 (0x1U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000100 */
  13061. #define RCC_D1CFGR_D1CPRE_1 (0x2U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000200 */
  13062. #define RCC_D1CFGR_D1CPRE_2 (0x4U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000400 */
  13063. #define RCC_D1CFGR_D1CPRE_3 (0x8U << RCC_D1CFGR_D1CPRE_Pos) /*!< 0x00000800 */
  13064. #define RCC_D1CFGR_D1CPRE_DIV1 ((uint32_t)0x00000000) /*!< Domain 1 Core clock not divided */
  13065. #define RCC_D1CFGR_D1CPRE_DIV2_Pos (11U)
  13066. #define RCC_D1CFGR_D1CPRE_DIV2_Msk (0x1U << RCC_D1CFGR_D1CPRE_DIV2_Pos) /*!< 0x00000800 */
  13067. #define RCC_D1CFGR_D1CPRE_DIV2 RCC_D1CFGR_D1CPRE_DIV2_Msk /*!< Domain 1 Core clock divided by 2 */
  13068. #define RCC_D1CFGR_D1CPRE_DIV4_Pos (8U)
  13069. #define RCC_D1CFGR_D1CPRE_DIV4_Msk (0x9U << RCC_D1CFGR_D1CPRE_DIV4_Pos) /*!< 0x00000900 */
  13070. #define RCC_D1CFGR_D1CPRE_DIV4 RCC_D1CFGR_D1CPRE_DIV4_Msk /*!< Domain 1 Core clock divided by 4 */
  13071. #define RCC_D1CFGR_D1CPRE_DIV8_Pos (9U)
  13072. #define RCC_D1CFGR_D1CPRE_DIV8_Msk (0x5U << RCC_D1CFGR_D1CPRE_DIV8_Pos) /*!< 0x00000A00 */
  13073. #define RCC_D1CFGR_D1CPRE_DIV8 RCC_D1CFGR_D1CPRE_DIV8_Msk /*!< Domain 1 Core clock divided by 8 */
  13074. #define RCC_D1CFGR_D1CPRE_DIV16_Pos (8U)
  13075. #define RCC_D1CFGR_D1CPRE_DIV16_Msk (0xBU << RCC_D1CFGR_D1CPRE_DIV16_Pos) /*!< 0x00000B00 */
  13076. #define RCC_D1CFGR_D1CPRE_DIV16 RCC_D1CFGR_D1CPRE_DIV16_Msk /*!< Domain 1 Core clock divided by 16 */
  13077. #define RCC_D1CFGR_D1CPRE_DIV64_Pos (10U)
  13078. #define RCC_D1CFGR_D1CPRE_DIV64_Msk (0x3U << RCC_D1CFGR_D1CPRE_DIV64_Pos) /*!< 0x00000C00 */
  13079. #define RCC_D1CFGR_D1CPRE_DIV64 RCC_D1CFGR_D1CPRE_DIV64_Msk /*!< Domain 1 Core clock divided by 64 */
  13080. #define RCC_D1CFGR_D1CPRE_DIV128_Pos (8U)
  13081. #define RCC_D1CFGR_D1CPRE_DIV128_Msk (0xDU << RCC_D1CFGR_D1CPRE_DIV128_Pos) /*!< 0x00000D00 */
  13082. #define RCC_D1CFGR_D1CPRE_DIV128 RCC_D1CFGR_D1CPRE_DIV128_Msk /*!< Domain 1 Core clock divided by 128 */
  13083. #define RCC_D1CFGR_D1CPRE_DIV256_Pos (9U)
  13084. #define RCC_D1CFGR_D1CPRE_DIV256_Msk (0x7U << RCC_D1CFGR_D1CPRE_DIV256_Pos) /*!< 0x00000E00 */
  13085. #define RCC_D1CFGR_D1CPRE_DIV256 RCC_D1CFGR_D1CPRE_DIV256_Msk /*!< Domain 1 Core clock divided by 256 */
  13086. #define RCC_D1CFGR_D1CPRE_DIV512_Pos (8U)
  13087. #define RCC_D1CFGR_D1CPRE_DIV512_Msk (0xFU << RCC_D1CFGR_D1CPRE_DIV512_Pos) /*!< 0x00000F00 */
  13088. #define RCC_D1CFGR_D1CPRE_DIV512 RCC_D1CFGR_D1CPRE_DIV512_Msk /*!< Domain 1 Core clock divided by 512 */
  13089. /******************** Bit definition for RCC_D2CFGR register ******************/
  13090. /*!< D2PPRE1 configuration */
  13091. #define RCC_D2CFGR_D2PPRE1_Pos (4U)
  13092. #define RCC_D2CFGR_D2PPRE1_Msk (0x7U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000070 */
  13093. #define RCC_D2CFGR_D2PPRE1 RCC_D2CFGR_D2PPRE1_Msk /*!< D1PPRE1[2:0] bits (APB1 prescaler) */
  13094. #define RCC_D2CFGR_D2PPRE1_0 (0x1U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000010 */
  13095. #define RCC_D2CFGR_D2PPRE1_1 (0x2U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000020 */
  13096. #define RCC_D2CFGR_D2PPRE1_2 (0x4U << RCC_D2CFGR_D2PPRE1_Pos) /*!< 0x00000040 */
  13097. #define RCC_D2CFGR_D2PPRE1_DIV1 ((uint32_t)0x00000000) /*!< APB1 clock not divided */
  13098. #define RCC_D2CFGR_D2PPRE1_DIV2_Pos (6U)
  13099. #define RCC_D2CFGR_D2PPRE1_DIV2_Msk (0x1U << RCC_D2CFGR_D2PPRE1_DIV2_Pos) /*!< 0x00000040 */
  13100. #define RCC_D2CFGR_D2PPRE1_DIV2 RCC_D2CFGR_D2PPRE1_DIV2_Msk /*!< APB1 clock divided by 2 */
  13101. #define RCC_D2CFGR_D2PPRE1_DIV4_Pos (4U)
  13102. #define RCC_D2CFGR_D2PPRE1_DIV4_Msk (0x5U << RCC_D2CFGR_D2PPRE1_DIV4_Pos) /*!< 0x00000050 */
  13103. #define RCC_D2CFGR_D2PPRE1_DIV4 RCC_D2CFGR_D2PPRE1_DIV4_Msk /*!< APB1 clock divided by 4 */
  13104. #define RCC_D2CFGR_D2PPRE1_DIV8_Pos (5U)
  13105. #define RCC_D2CFGR_D2PPRE1_DIV8_Msk (0x3U << RCC_D2CFGR_D2PPRE1_DIV8_Pos) /*!< 0x00000060 */
  13106. #define RCC_D2CFGR_D2PPRE1_DIV8 RCC_D2CFGR_D2PPRE1_DIV8_Msk /*!< APB1 clock divided by 8 */
  13107. #define RCC_D2CFGR_D2PPRE1_DIV16_Pos (4U)
  13108. #define RCC_D2CFGR_D2PPRE1_DIV16_Msk (0x7U << RCC_D2CFGR_D2PPRE1_DIV16_Pos) /*!< 0x00000070 */
  13109. #define RCC_D2CFGR_D2PPRE1_DIV16 RCC_D2CFGR_D2PPRE1_DIV16_Msk /*!< APB1 clock divided by 16 */
  13110. /*!< D2PPRE2 configuration */
  13111. #define RCC_D2CFGR_D2PPRE2_Pos (8U)
  13112. #define RCC_D2CFGR_D2PPRE2_Msk (0x7U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000700 */
  13113. #define RCC_D2CFGR_D2PPRE2 RCC_D2CFGR_D2PPRE2_Msk /*!< D2PPRE2[2:0] bits (APB2 prescaler) */
  13114. #define RCC_D2CFGR_D2PPRE2_0 (0x1U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000100 */
  13115. #define RCC_D2CFGR_D2PPRE2_1 (0x2U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000200 */
  13116. #define RCC_D2CFGR_D2PPRE2_2 (0x4U << RCC_D2CFGR_D2PPRE2_Pos) /*!< 0x00000400 */
  13117. #define RCC_D2CFGR_D2PPRE2_DIV1 ((uint32_t)0x00000000) /*!< APB2 clock not divided */
  13118. #define RCC_D2CFGR_D2PPRE2_DIV2_Pos (10U)
  13119. #define RCC_D2CFGR_D2PPRE2_DIV2_Msk (0x1U << RCC_D2CFGR_D2PPRE2_DIV2_Pos) /*!< 0x00000400 */
  13120. #define RCC_D2CFGR_D2PPRE2_DIV2 RCC_D2CFGR_D2PPRE2_DIV2_Msk /*!< APB2 clock divided by 2 */
  13121. #define RCC_D2CFGR_D2PPRE2_DIV4_Pos (8U)
  13122. #define RCC_D2CFGR_D2PPRE2_DIV4_Msk (0x5U << RCC_D2CFGR_D2PPRE2_DIV4_Pos) /*!< 0x00000500 */
  13123. #define RCC_D2CFGR_D2PPRE2_DIV4 RCC_D2CFGR_D2PPRE2_DIV4_Msk /*!< APB2 clock divided by 4 */
  13124. #define RCC_D2CFGR_D2PPRE2_DIV8_Pos (9U)
  13125. #define RCC_D2CFGR_D2PPRE2_DIV8_Msk (0x3U << RCC_D2CFGR_D2PPRE2_DIV8_Pos) /*!< 0x00000600 */
  13126. #define RCC_D2CFGR_D2PPRE2_DIV8 RCC_D2CFGR_D2PPRE2_DIV8_Msk /*!< APB2 clock divided by 8 */
  13127. #define RCC_D2CFGR_D2PPRE2_DIV16_Pos (8U)
  13128. #define RCC_D2CFGR_D2PPRE2_DIV16_Msk (0x7U << RCC_D2CFGR_D2PPRE2_DIV16_Pos) /*!< 0x00000700 */
  13129. #define RCC_D2CFGR_D2PPRE2_DIV16 RCC_D2CFGR_D2PPRE2_DIV16_Msk /*!< APB2 clock divided by 16 */
  13130. /******************** Bit definition for RCC_D3CFGR register ******************/
  13131. /*!< D3PPRE configuration */
  13132. #define RCC_D3CFGR_D3PPRE_Pos (4U)
  13133. #define RCC_D3CFGR_D3PPRE_Msk (0x7U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000070 */
  13134. #define RCC_D3CFGR_D3PPRE RCC_D3CFGR_D3PPRE_Msk /*!< D3PPRE1[2:0] bits (APB4 prescaler) */
  13135. #define RCC_D3CFGR_D3PPRE_0 (0x1U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000010 */
  13136. #define RCC_D3CFGR_D3PPRE_1 (0x2U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000020 */
  13137. #define RCC_D3CFGR_D3PPRE_2 (0x4U << RCC_D3CFGR_D3PPRE_Pos) /*!< 0x00000040 */
  13138. #define RCC_D3CFGR_D3PPRE_DIV1 ((uint32_t)0x00000000) /*!< APB4 clock not divided */
  13139. #define RCC_D3CFGR_D3PPRE_DIV2_Pos (6U)
  13140. #define RCC_D3CFGR_D3PPRE_DIV2_Msk (0x1U << RCC_D3CFGR_D3PPRE_DIV2_Pos) /*!< 0x00000040 */
  13141. #define RCC_D3CFGR_D3PPRE_DIV2 RCC_D3CFGR_D3PPRE_DIV2_Msk /*!< APB4 clock divided by 2 */
  13142. #define RCC_D3CFGR_D3PPRE_DIV4_Pos (4U)
  13143. #define RCC_D3CFGR_D3PPRE_DIV4_Msk (0x5U << RCC_D3CFGR_D3PPRE_DIV4_Pos) /*!< 0x00000050 */
  13144. #define RCC_D3CFGR_D3PPRE_DIV4 RCC_D3CFGR_D3PPRE_DIV4_Msk /*!< APB4 clock divided by 4 */
  13145. #define RCC_D3CFGR_D3PPRE_DIV8_Pos (5U)
  13146. #define RCC_D3CFGR_D3PPRE_DIV8_Msk (0x3U << RCC_D3CFGR_D3PPRE_DIV8_Pos) /*!< 0x00000060 */
  13147. #define RCC_D3CFGR_D3PPRE_DIV8 RCC_D3CFGR_D3PPRE_DIV8_Msk /*!< APB4 clock divided by 8 */
  13148. #define RCC_D3CFGR_D3PPRE_DIV16_Pos (4U)
  13149. #define RCC_D3CFGR_D3PPRE_DIV16_Msk (0x7U << RCC_D3CFGR_D3PPRE_DIV16_Pos) /*!< 0x00000070 */
  13150. #define RCC_D3CFGR_D3PPRE_DIV16 RCC_D3CFGR_D3PPRE_DIV16_Msk /*!< APB4 clock divided by 16 */
  13151. /******************** Bit definition for RCC_PLLCKSELR register *************/
  13152. #define RCC_PLLCKSELR_PLLSRC_Pos (0U)
  13153. #define RCC_PLLCKSELR_PLLSRC_Msk (0x3U << RCC_PLLCKSELR_PLLSRC_Pos) /*!< 0x00000003 */
  13154. #define RCC_PLLCKSELR_PLLSRC RCC_PLLCKSELR_PLLSRC_Msk
  13155. #define RCC_PLLCKSELR_PLLSRC_HSI ((uint32_t)0x00000000) /*!< HSI source clock selected */
  13156. #define RCC_PLLCKSELR_PLLSRC_CSI_Pos (0U)
  13157. #define RCC_PLLCKSELR_PLLSRC_CSI_Msk (0x1U << RCC_PLLCKSELR_PLLSRC_CSI_Pos) /*!< 0x00000001 */
  13158. #define RCC_PLLCKSELR_PLLSRC_CSI RCC_PLLCKSELR_PLLSRC_CSI_Msk /*!< CSI source clock selected */
  13159. #define RCC_PLLCKSELR_PLLSRC_HSE_Pos (1U)
  13160. #define RCC_PLLCKSELR_PLLSRC_HSE_Msk (0x1U << RCC_PLLCKSELR_PLLSRC_HSE_Pos) /*!< 0x00000002 */
  13161. #define RCC_PLLCKSELR_PLLSRC_HSE RCC_PLLCKSELR_PLLSRC_HSE_Msk /*!< HSE source clock selected */
  13162. #define RCC_PLLCKSELR_PLLSRC_NONE_Pos (0U)
  13163. #define RCC_PLLCKSELR_PLLSRC_NONE_Msk (0x3U << RCC_PLLCKSELR_PLLSRC_NONE_Pos) /*!< 0x00000003 */
  13164. #define RCC_PLLCKSELR_PLLSRC_NONE RCC_PLLCKSELR_PLLSRC_NONE_Msk /*!< No source clock selected */
  13165. #define RCC_PLLCKSELR_DIVM1_Pos (4U)
  13166. #define RCC_PLLCKSELR_DIVM1_Msk (0x3FU << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x000003F0 */
  13167. #define RCC_PLLCKSELR_DIVM1 RCC_PLLCKSELR_DIVM1_Msk
  13168. #define RCC_PLLCKSELR_DIVM1_0 (0x01U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000010 */
  13169. #define RCC_PLLCKSELR_DIVM1_1 (0x02U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000020 */
  13170. #define RCC_PLLCKSELR_DIVM1_2 (0x04U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000040 */
  13171. #define RCC_PLLCKSELR_DIVM1_3 (0x08U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000080 */
  13172. #define RCC_PLLCKSELR_DIVM1_4 (0x10U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000100 */
  13173. #define RCC_PLLCKSELR_DIVM1_5 (0x20U << RCC_PLLCKSELR_DIVM1_Pos) /*!< 0x00000200 */
  13174. #define RCC_PLLCKSELR_DIVM2_Pos (12U)
  13175. #define RCC_PLLCKSELR_DIVM2_Msk (0x3FU << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x0003F000 */
  13176. #define RCC_PLLCKSELR_DIVM2 RCC_PLLCKSELR_DIVM2_Msk
  13177. #define RCC_PLLCKSELR_DIVM2_0 (0x01U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00001000 */
  13178. #define RCC_PLLCKSELR_DIVM2_1 (0x02U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00002000 */
  13179. #define RCC_PLLCKSELR_DIVM2_2 (0x04U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00004000 */
  13180. #define RCC_PLLCKSELR_DIVM2_3 (0x08U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00008000 */
  13181. #define RCC_PLLCKSELR_DIVM2_4 (0x10U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00010000 */
  13182. #define RCC_PLLCKSELR_DIVM2_5 (0x20U << RCC_PLLCKSELR_DIVM2_Pos) /*!< 0x00020000 */
  13183. #define RCC_PLLCKSELR_DIVM3_Pos (20U)
  13184. #define RCC_PLLCKSELR_DIVM3_Msk (0x3FU << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x03F00000 */
  13185. #define RCC_PLLCKSELR_DIVM3 RCC_PLLCKSELR_DIVM3_Msk
  13186. #define RCC_PLLCKSELR_DIVM3_0 (0x01U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00100000 */
  13187. #define RCC_PLLCKSELR_DIVM3_1 (0x02U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00200000 */
  13188. #define RCC_PLLCKSELR_DIVM3_2 (0x04U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00400000 */
  13189. #define RCC_PLLCKSELR_DIVM3_3 (0x08U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x00800000 */
  13190. #define RCC_PLLCKSELR_DIVM3_4 (0x10U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x01000000 */
  13191. #define RCC_PLLCKSELR_DIVM3_5 (0x20U << RCC_PLLCKSELR_DIVM3_Pos) /*!< 0x02000000 */
  13192. /******************** Bit definition for RCC_PLLCFGR register ***************/
  13193. #define RCC_PLLCFGR_PLL1FRACEN_Pos (0U)
  13194. #define RCC_PLLCFGR_PLL1FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL1FRACEN_Pos) /*!< 0x00000001 */
  13195. #define RCC_PLLCFGR_PLL1FRACEN RCC_PLLCFGR_PLL1FRACEN_Msk
  13196. #define RCC_PLLCFGR_PLL1VCOSEL_Pos (1U)
  13197. #define RCC_PLLCFGR_PLL1VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL1VCOSEL_Pos) /*!< 0x00000002 */
  13198. #define RCC_PLLCFGR_PLL1VCOSEL RCC_PLLCFGR_PLL1VCOSEL_Msk
  13199. #define RCC_PLLCFGR_PLL1RGE_Pos (2U)
  13200. #define RCC_PLLCFGR_PLL1RGE_Msk (0x3U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13201. #define RCC_PLLCFGR_PLL1RGE RCC_PLLCFGR_PLL1RGE_Msk
  13202. #define RCC_PLLCFGR_PLL1RGE_0 (0x0U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000000 */
  13203. #define RCC_PLLCFGR_PLL1RGE_1 (0x1U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000004 */
  13204. #define RCC_PLLCFGR_PLL1RGE_2 (0x2U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x00000008 */
  13205. #define RCC_PLLCFGR_PLL1RGE_3 (0x3U << RCC_PLLCFGR_PLL1RGE_Pos) /*!< 0x0000000C */
  13206. #define RCC_PLLCFGR_PLL2FRACEN_Pos (4U)
  13207. #define RCC_PLLCFGR_PLL2FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL2FRACEN_Pos) /*!< 0x00000010 */
  13208. #define RCC_PLLCFGR_PLL2FRACEN RCC_PLLCFGR_PLL2FRACEN_Msk
  13209. #define RCC_PLLCFGR_PLL2VCOSEL_Pos (5U)
  13210. #define RCC_PLLCFGR_PLL2VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL2VCOSEL_Pos) /*!< 0x00000020 */
  13211. #define RCC_PLLCFGR_PLL2VCOSEL RCC_PLLCFGR_PLL2VCOSEL_Msk
  13212. #define RCC_PLLCFGR_PLL2RGE_Pos (6U)
  13213. #define RCC_PLLCFGR_PLL2RGE_Msk (0x3U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13214. #define RCC_PLLCFGR_PLL2RGE RCC_PLLCFGR_PLL2RGE_Msk
  13215. #define RCC_PLLCFGR_PLL2RGE_0 (0x0U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000000 */
  13216. #define RCC_PLLCFGR_PLL2RGE_1 (0x1U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000040 */
  13217. #define RCC_PLLCFGR_PLL2RGE_2 (0x2U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x00000080 */
  13218. #define RCC_PLLCFGR_PLL2RGE_3 (0x3U << RCC_PLLCFGR_PLL2RGE_Pos) /*!< 0x000000C0 */
  13219. #define RCC_PLLCFGR_PLL3FRACEN_Pos (8U)
  13220. #define RCC_PLLCFGR_PLL3FRACEN_Msk (0x1U << RCC_PLLCFGR_PLL3FRACEN_Pos) /*!< 0x00000100 */
  13221. #define RCC_PLLCFGR_PLL3FRACEN RCC_PLLCFGR_PLL3FRACEN_Msk
  13222. #define RCC_PLLCFGR_PLL3VCOSEL_Pos (9U)
  13223. #define RCC_PLLCFGR_PLL3VCOSEL_Msk (0x1U << RCC_PLLCFGR_PLL3VCOSEL_Pos) /*!< 0x00000200 */
  13224. #define RCC_PLLCFGR_PLL3VCOSEL RCC_PLLCFGR_PLL3VCOSEL_Msk
  13225. #define RCC_PLLCFGR_PLL3RGE_Pos (10U)
  13226. #define RCC_PLLCFGR_PLL3RGE_Msk (0x3U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13227. #define RCC_PLLCFGR_PLL3RGE RCC_PLLCFGR_PLL3RGE_Msk
  13228. #define RCC_PLLCFGR_PLL3RGE_0 (0x0U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000000 */
  13229. #define RCC_PLLCFGR_PLL3RGE_1 (0x1U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000400 */
  13230. #define RCC_PLLCFGR_PLL3RGE_2 (0x2U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000800 */
  13231. #define RCC_PLLCFGR_PLL3RGE_3 (0x3U << RCC_PLLCFGR_PLL3RGE_Pos) /*!< 0x00000C00 */
  13232. #define RCC_PLLCFGR_DIVP1EN_Pos (16U)
  13233. #define RCC_PLLCFGR_DIVP1EN_Msk (0x1U << RCC_PLLCFGR_DIVP1EN_Pos) /*!< 0x00010000 */
  13234. #define RCC_PLLCFGR_DIVP1EN RCC_PLLCFGR_DIVP1EN_Msk
  13235. #define RCC_PLLCFGR_DIVQ1EN_Pos (17U)
  13236. #define RCC_PLLCFGR_DIVQ1EN_Msk (0x1U << RCC_PLLCFGR_DIVQ1EN_Pos) /*!< 0x00020000 */
  13237. #define RCC_PLLCFGR_DIVQ1EN RCC_PLLCFGR_DIVQ1EN_Msk
  13238. #define RCC_PLLCFGR_DIVR1EN_Pos (18U)
  13239. #define RCC_PLLCFGR_DIVR1EN_Msk (0x1U << RCC_PLLCFGR_DIVR1EN_Pos) /*!< 0x00040000 */
  13240. #define RCC_PLLCFGR_DIVR1EN RCC_PLLCFGR_DIVR1EN_Msk
  13241. #define RCC_PLLCFGR_DIVP2EN_Pos (19U)
  13242. #define RCC_PLLCFGR_DIVP2EN_Msk (0x1U << RCC_PLLCFGR_DIVP2EN_Pos) /*!< 0x00080000 */
  13243. #define RCC_PLLCFGR_DIVP2EN RCC_PLLCFGR_DIVP2EN_Msk
  13244. #define RCC_PLLCFGR_DIVQ2EN_Pos (20U)
  13245. #define RCC_PLLCFGR_DIVQ2EN_Msk (0x1U << RCC_PLLCFGR_DIVQ2EN_Pos) /*!< 0x00100000 */
  13246. #define RCC_PLLCFGR_DIVQ2EN RCC_PLLCFGR_DIVQ2EN_Msk
  13247. #define RCC_PLLCFGR_DIVR2EN_Pos (21U)
  13248. #define RCC_PLLCFGR_DIVR2EN_Msk (0x1U << RCC_PLLCFGR_DIVR2EN_Pos) /*!< 0x00200000 */
  13249. #define RCC_PLLCFGR_DIVR2EN RCC_PLLCFGR_DIVR2EN_Msk
  13250. #define RCC_PLLCFGR_DIVP3EN_Pos (22U)
  13251. #define RCC_PLLCFGR_DIVP3EN_Msk (0x1U << RCC_PLLCFGR_DIVP3EN_Pos) /*!< 0x00400000 */
  13252. #define RCC_PLLCFGR_DIVP3EN RCC_PLLCFGR_DIVP3EN_Msk
  13253. #define RCC_PLLCFGR_DIVQ3EN_Pos (23U)
  13254. #define RCC_PLLCFGR_DIVQ3EN_Msk (0x1U << RCC_PLLCFGR_DIVQ3EN_Pos) /*!< 0x00800000 */
  13255. #define RCC_PLLCFGR_DIVQ3EN RCC_PLLCFGR_DIVQ3EN_Msk
  13256. #define RCC_PLLCFGR_DIVR3EN_Pos (24U)
  13257. #define RCC_PLLCFGR_DIVR3EN_Msk (0x1U << RCC_PLLCFGR_DIVR3EN_Pos) /*!< 0x01000000 */
  13258. #define RCC_PLLCFGR_DIVR3EN RCC_PLLCFGR_DIVR3EN_Msk
  13259. /******************** Bit definition for RCC_PLL1DIVR register ***************/
  13260. #define RCC_PLL1DIVR_N1_Pos (0U)
  13261. #define RCC_PLL1DIVR_N1_Msk (0x1FFU << RCC_PLL1DIVR_N1_Pos) /*!< 0x000001FF */
  13262. #define RCC_PLL1DIVR_N1 RCC_PLL1DIVR_N1_Msk
  13263. #define RCC_PLL1DIVR_P1_Pos (9U)
  13264. #define RCC_PLL1DIVR_P1_Msk (0x7FU << RCC_PLL1DIVR_P1_Pos) /*!< 0x0000FE00 */
  13265. #define RCC_PLL1DIVR_P1 RCC_PLL1DIVR_P1_Msk
  13266. #define RCC_PLL1DIVR_Q1_Pos (16U)
  13267. #define RCC_PLL1DIVR_Q1_Msk (0x7FU << RCC_PLL1DIVR_Q1_Pos) /*!< 0x007F0000 */
  13268. #define RCC_PLL1DIVR_Q1 RCC_PLL1DIVR_Q1_Msk
  13269. #define RCC_PLL1DIVR_R1_Pos (24U)
  13270. #define RCC_PLL1DIVR_R1_Msk (0x7FU << RCC_PLL1DIVR_R1_Pos) /*!< 0x7F000000 */
  13271. #define RCC_PLL1DIVR_R1 RCC_PLL1DIVR_R1_Msk
  13272. /******************** Bit definition for RCC_PLL1FRACR register ***************/
  13273. #define RCC_PLL1FRACR_FRACN1_Pos (3U)
  13274. #define RCC_PLL1FRACR_FRACN1_Msk (0x1FFFU << RCC_PLL1FRACR_FRACN1_Pos) /*!< 0x0000FFF8 */
  13275. #define RCC_PLL1FRACR_FRACN1 RCC_PLL1FRACR_FRACN1_Msk
  13276. /******************** Bit definition for RCC_PLL2DIVR register ***************/
  13277. #define RCC_PLL2DIVR_N2_Pos (0U)
  13278. #define RCC_PLL2DIVR_N2_Msk (0x1FFU << RCC_PLL2DIVR_N2_Pos) /*!< 0x000001FF */
  13279. #define RCC_PLL2DIVR_N2 RCC_PLL2DIVR_N2_Msk
  13280. #define RCC_PLL2DIVR_P2_Pos (9U)
  13281. #define RCC_PLL2DIVR_P2_Msk (0x7FU << RCC_PLL2DIVR_P2_Pos) /*!< 0x0000FE00 */
  13282. #define RCC_PLL2DIVR_P2 RCC_PLL2DIVR_P2_Msk
  13283. #define RCC_PLL2DIVR_Q2_Pos (16U)
  13284. #define RCC_PLL2DIVR_Q2_Msk (0x7FU << RCC_PLL2DIVR_Q2_Pos) /*!< 0x007F0000 */
  13285. #define RCC_PLL2DIVR_Q2 RCC_PLL2DIVR_Q2_Msk
  13286. #define RCC_PLL2DIVR_R2_Pos (24U)
  13287. #define RCC_PLL2DIVR_R2_Msk (0x7FU << RCC_PLL2DIVR_R2_Pos) /*!< 0x7F000000 */
  13288. #define RCC_PLL2DIVR_R2 RCC_PLL2DIVR_R2_Msk
  13289. /******************** Bit definition for RCC_PLL2FRACR register ***************/
  13290. #define RCC_PLL2FRACR_FRACN2_Pos (3U)
  13291. #define RCC_PLL2FRACR_FRACN2_Msk (0x1FFFU << RCC_PLL2FRACR_FRACN2_Pos) /*!< 0x0000FFF8 */
  13292. #define RCC_PLL2FRACR_FRACN2 RCC_PLL2FRACR_FRACN2_Msk
  13293. /******************** Bit definition for RCC_PLL3DIVR register ***************/
  13294. #define RCC_PLL3DIVR_N3_Pos (0U)
  13295. #define RCC_PLL3DIVR_N3_Msk (0x1FFU << RCC_PLL3DIVR_N3_Pos) /*!< 0x000001FF */
  13296. #define RCC_PLL3DIVR_N3 RCC_PLL3DIVR_N3_Msk
  13297. #define RCC_PLL3DIVR_P3_Pos (9U)
  13298. #define RCC_PLL3DIVR_P3_Msk (0x7FU << RCC_PLL3DIVR_P3_Pos) /*!< 0x0000FE00 */
  13299. #define RCC_PLL3DIVR_P3 RCC_PLL3DIVR_P3_Msk
  13300. #define RCC_PLL3DIVR_Q3_Pos (16U)
  13301. #define RCC_PLL3DIVR_Q3_Msk (0x7FU << RCC_PLL3DIVR_Q3_Pos) /*!< 0x007F0000 */
  13302. #define RCC_PLL3DIVR_Q3 RCC_PLL3DIVR_Q3_Msk
  13303. #define RCC_PLL3DIVR_R3_Pos (24U)
  13304. #define RCC_PLL3DIVR_R3_Msk (0x7FU << RCC_PLL3DIVR_R3_Pos) /*!< 0x7F000000 */
  13305. #define RCC_PLL3DIVR_R3 RCC_PLL3DIVR_R3_Msk
  13306. /******************** Bit definition for RCC_PLL3FRACR register ***************/
  13307. #define RCC_PLL3FRACR_FRACN3_Pos (3U)
  13308. #define RCC_PLL3FRACR_FRACN3_Msk (0x1FFFU << RCC_PLL3FRACR_FRACN3_Pos) /*!< 0x0000FFF8 */
  13309. #define RCC_PLL3FRACR_FRACN3 RCC_PLL3FRACR_FRACN3_Msk
  13310. /******************** Bit definition for RCC_D1CCIPR register ***************/
  13311. #define RCC_D1CCIPR_FMCSEL_Pos (0U)
  13312. #define RCC_D1CCIPR_FMCSEL_Msk (0x3U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000003 */
  13313. #define RCC_D1CCIPR_FMCSEL RCC_D1CCIPR_FMCSEL_Msk
  13314. #define RCC_D1CCIPR_FMCSEL_0 (0x1U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000001 */
  13315. #define RCC_D1CCIPR_FMCSEL_1 (0x2U << RCC_D1CCIPR_FMCSEL_Pos) /*!< 0x00000002 */
  13316. #define RCC_D1CCIPR_QSPISEL_Pos (4U)
  13317. #define RCC_D1CCIPR_QSPISEL_Msk (0x3U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000030 */
  13318. #define RCC_D1CCIPR_QSPISEL RCC_D1CCIPR_QSPISEL_Msk
  13319. #define RCC_D1CCIPR_QSPISEL_0 (0x1U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000010 */
  13320. #define RCC_D1CCIPR_QSPISEL_1 (0x2U << RCC_D1CCIPR_QSPISEL_Pos) /*!< 0x00000020 */
  13321. #define RCC_D1CCIPR_SDMMCSEL_Pos (16U)
  13322. #define RCC_D1CCIPR_SDMMCSEL_Msk (0x1U << RCC_D1CCIPR_SDMMCSEL_Pos) /*!< 0x00010000 */
  13323. #define RCC_D1CCIPR_SDMMCSEL RCC_D1CCIPR_SDMMCSEL_Msk
  13324. #define RCC_D1CCIPR_CKPERSEL_Pos (28U)
  13325. #define RCC_D1CCIPR_CKPERSEL_Msk (0x3U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x30000000 */
  13326. #define RCC_D1CCIPR_CKPERSEL RCC_D1CCIPR_CKPERSEL_Msk
  13327. #define RCC_D1CCIPR_CKPERSEL_0 (0x1U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x10000000 */
  13328. #define RCC_D1CCIPR_CKPERSEL_1 (0x2U << RCC_D1CCIPR_CKPERSEL_Pos) /*!< 0x20000000 */
  13329. /******************** Bit definition for RCC_D2CCIP1R register ***************/
  13330. #define RCC_D2CCIP1R_SAI1SEL_Pos (0U)
  13331. #define RCC_D2CCIP1R_SAI1SEL_Msk (0x7U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000007 */
  13332. #define RCC_D2CCIP1R_SAI1SEL RCC_D2CCIP1R_SAI1SEL_Msk
  13333. #define RCC_D2CCIP1R_SAI1SEL_0 (0x1U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000001 */
  13334. #define RCC_D2CCIP1R_SAI1SEL_1 (0x2U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000002 */
  13335. #define RCC_D2CCIP1R_SAI1SEL_2 (0x4U << RCC_D2CCIP1R_SAI1SEL_Pos) /*!< 0x00000004 */
  13336. #define RCC_D2CCIP1R_SAI23SEL_Pos (6U)
  13337. #define RCC_D2CCIP1R_SAI23SEL_Msk (0x7U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x000001C0 */
  13338. #define RCC_D2CCIP1R_SAI23SEL RCC_D2CCIP1R_SAI23SEL_Msk
  13339. #define RCC_D2CCIP1R_SAI23SEL_0 (0x1U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000040 */
  13340. #define RCC_D2CCIP1R_SAI23SEL_1 (0x2U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000080 */
  13341. #define RCC_D2CCIP1R_SAI23SEL_2 (0x4U << RCC_D2CCIP1R_SAI23SEL_Pos) /*!< 0x00000100 */
  13342. #define RCC_D2CCIP1R_SPI123SEL_Pos (12U)
  13343. #define RCC_D2CCIP1R_SPI123SEL_Msk (0x7U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00007000 */
  13344. #define RCC_D2CCIP1R_SPI123SEL RCC_D2CCIP1R_SPI123SEL_Msk
  13345. #define RCC_D2CCIP1R_SPI123SEL_0 (0x1U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00001000 */
  13346. #define RCC_D2CCIP1R_SPI123SEL_1 (0x2U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00002000 */
  13347. #define RCC_D2CCIP1R_SPI123SEL_2 (0x4U << RCC_D2CCIP1R_SPI123SEL_Pos) /*!< 0x00004000 */
  13348. #define RCC_D2CCIP1R_SPI45SEL_Pos (16U)
  13349. #define RCC_D2CCIP1R_SPI45SEL_Msk (0x7U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00070000 */
  13350. #define RCC_D2CCIP1R_SPI45SEL RCC_D2CCIP1R_SPI45SEL_Msk
  13351. #define RCC_D2CCIP1R_SPI45SEL_0 (0x1U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00010000 */
  13352. #define RCC_D2CCIP1R_SPI45SEL_1 (0x2U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00020000 */
  13353. #define RCC_D2CCIP1R_SPI45SEL_2 (0x4U << RCC_D2CCIP1R_SPI45SEL_Pos) /*!< 0x00040000 */
  13354. #define RCC_D2CCIP1R_SPDIFSEL_Pos (20U)
  13355. #define RCC_D2CCIP1R_SPDIFSEL_Msk (0x3U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00300000 */
  13356. #define RCC_D2CCIP1R_SPDIFSEL RCC_D2CCIP1R_SPDIFSEL_Msk
  13357. #define RCC_D2CCIP1R_SPDIFSEL_0 (0x1U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00100000 */
  13358. #define RCC_D2CCIP1R_SPDIFSEL_1 (0x2U << RCC_D2CCIP1R_SPDIFSEL_Pos) /*!< 0x00200000 */
  13359. #define RCC_D2CCIP1R_DFSDM1SEL_Pos (24U)
  13360. #define RCC_D2CCIP1R_DFSDM1SEL_Msk (0x1U << RCC_D2CCIP1R_DFSDM1SEL_Pos) /*!< 0x01000000 */
  13361. #define RCC_D2CCIP1R_DFSDM1SEL RCC_D2CCIP1R_DFSDM1SEL_Msk
  13362. #define RCC_D2CCIP1R_FDCANSEL_Pos (28U)
  13363. #define RCC_D2CCIP1R_FDCANSEL_Msk (0x3U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x30000000 */
  13364. #define RCC_D2CCIP1R_FDCANSEL RCC_D2CCIP1R_FDCANSEL_Msk
  13365. #define RCC_D2CCIP1R_FDCANSEL_0 (0x1U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x10000000 */
  13366. #define RCC_D2CCIP1R_FDCANSEL_1 (0x2U << RCC_D2CCIP1R_FDCANSEL_Pos) /*!< 0x20000000 */
  13367. #define RCC_D2CCIP1R_SWPSEL_Pos (31U)
  13368. #define RCC_D2CCIP1R_SWPSEL_Msk (0x1U << RCC_D2CCIP1R_SWPSEL_Pos) /*!< 0x80000000 */
  13369. #define RCC_D2CCIP1R_SWPSEL RCC_D2CCIP1R_SWPSEL_Msk
  13370. /******************** Bit definition for RCC_D2CCIP2R register ***************/
  13371. #define RCC_D2CCIP2R_USART16SEL_Pos (3U)
  13372. #define RCC_D2CCIP2R_USART16SEL_Msk (0x7U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000038 */
  13373. #define RCC_D2CCIP2R_USART16SEL RCC_D2CCIP2R_USART16SEL_Msk
  13374. #define RCC_D2CCIP2R_USART16SEL_0 (0x1U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000008 */
  13375. #define RCC_D2CCIP2R_USART16SEL_1 (0x2U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000010 */
  13376. #define RCC_D2CCIP2R_USART16SEL_2 (0x4U << RCC_D2CCIP2R_USART16SEL_Pos) /*!< 0x00000020 */
  13377. #define RCC_D2CCIP2R_USART28SEL_Pos (0U)
  13378. #define RCC_D2CCIP2R_USART28SEL_Msk (0x7U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000007 */
  13379. #define RCC_D2CCIP2R_USART28SEL RCC_D2CCIP2R_USART28SEL_Msk
  13380. #define RCC_D2CCIP2R_USART28SEL_0 (0x1U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000001 */
  13381. #define RCC_D2CCIP2R_USART28SEL_1 (0x2U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000002 */
  13382. #define RCC_D2CCIP2R_USART28SEL_2 (0x4U << RCC_D2CCIP2R_USART28SEL_Pos) /*!< 0x00000004 */
  13383. #define RCC_D2CCIP2R_RNGSEL_Pos (8U)
  13384. #define RCC_D2CCIP2R_RNGSEL_Msk (0x3U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000300 */
  13385. #define RCC_D2CCIP2R_RNGSEL RCC_D2CCIP2R_RNGSEL_Msk
  13386. #define RCC_D2CCIP2R_RNGSEL_0 (0x1U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000100 */
  13387. #define RCC_D2CCIP2R_RNGSEL_1 (0x2U << RCC_D2CCIP2R_RNGSEL_Pos) /*!< 0x00000200 */
  13388. #define RCC_D2CCIP2R_I2C123SEL_Pos (12U)
  13389. #define RCC_D2CCIP2R_I2C123SEL_Msk (0x3U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00003000 */
  13390. #define RCC_D2CCIP2R_I2C123SEL RCC_D2CCIP2R_I2C123SEL_Msk
  13391. #define RCC_D2CCIP2R_I2C123SEL_0 (0x1U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00001000 */
  13392. #define RCC_D2CCIP2R_I2C123SEL_1 (0x2U << RCC_D2CCIP2R_I2C123SEL_Pos) /*!< 0x00002000 */
  13393. #define RCC_D2CCIP2R_USBSEL_Pos (20U)
  13394. #define RCC_D2CCIP2R_USBSEL_Msk (0x3U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00300000 */
  13395. #define RCC_D2CCIP2R_USBSEL RCC_D2CCIP2R_USBSEL_Msk
  13396. #define RCC_D2CCIP2R_USBSEL_0 (0x1U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00100000 */
  13397. #define RCC_D2CCIP2R_USBSEL_1 (0x2U << RCC_D2CCIP2R_USBSEL_Pos) /*!< 0x00200000 */
  13398. #define RCC_D2CCIP2R_CECSEL_Pos (22U)
  13399. #define RCC_D2CCIP2R_CECSEL_Msk (0x3U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00C00000 */
  13400. #define RCC_D2CCIP2R_CECSEL RCC_D2CCIP2R_CECSEL_Msk
  13401. #define RCC_D2CCIP2R_CECSEL_0 (0x1U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00400000 */
  13402. #define RCC_D2CCIP2R_CECSEL_1 (0x2U << RCC_D2CCIP2R_CECSEL_Pos) /*!< 0x00800000 */
  13403. #define RCC_D2CCIP2R_LPTIM1SEL_Pos (28U)
  13404. #define RCC_D2CCIP2R_LPTIM1SEL_Msk (0x7U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x70000000 */
  13405. #define RCC_D2CCIP2R_LPTIM1SEL RCC_D2CCIP2R_LPTIM1SEL_Msk
  13406. #define RCC_D2CCIP2R_LPTIM1SEL_0 (0x1U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x10000000 */
  13407. #define RCC_D2CCIP2R_LPTIM1SEL_1 (0x2U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x20000000 */
  13408. #define RCC_D2CCIP2R_LPTIM1SEL_2 (0x4U << RCC_D2CCIP2R_LPTIM1SEL_Pos) /*!< 0x40000000 */
  13409. /******************** Bit definition for RCC_D3CCIPR register ***************/
  13410. #define RCC_D3CCIPR_LPUART1SEL_Pos (0U)
  13411. #define RCC_D3CCIPR_LPUART1SEL_Msk (0x7U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000007 */
  13412. #define RCC_D3CCIPR_LPUART1SEL RCC_D3CCIPR_LPUART1SEL_Msk
  13413. #define RCC_D3CCIPR_LPUART1SEL_0 (0x1U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000001 */
  13414. #define RCC_D3CCIPR_LPUART1SEL_1 (0x2U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000002 */
  13415. #define RCC_D3CCIPR_LPUART1SEL_2 (0x4U << RCC_D3CCIPR_LPUART1SEL_Pos) /*!< 0x00000004 */
  13416. #define RCC_D3CCIPR_I2C4SEL_Pos (8U)
  13417. #define RCC_D3CCIPR_I2C4SEL_Msk (0x3U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000300 */
  13418. #define RCC_D3CCIPR_I2C4SEL RCC_D3CCIPR_I2C4SEL_Msk
  13419. #define RCC_D3CCIPR_I2C4SEL_0 (0x1U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000100 */
  13420. #define RCC_D3CCIPR_I2C4SEL_1 (0x2U << RCC_D3CCIPR_I2C4SEL_Pos) /*!< 0x00000200 */
  13421. #define RCC_D3CCIPR_LPTIM2SEL_Pos (10U)
  13422. #define RCC_D3CCIPR_LPTIM2SEL_Msk (0x7U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001C00 */
  13423. #define RCC_D3CCIPR_LPTIM2SEL RCC_D3CCIPR_LPTIM2SEL_Msk
  13424. #define RCC_D3CCIPR_LPTIM2SEL_0 (0x1U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000400 */
  13425. #define RCC_D3CCIPR_LPTIM2SEL_1 (0x2U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00000800 */
  13426. #define RCC_D3CCIPR_LPTIM2SEL_2 (0x4U << RCC_D3CCIPR_LPTIM2SEL_Pos) /*!< 0x00001000 */
  13427. #define RCC_D3CCIPR_LPTIM345SEL_Pos (13U)
  13428. #define RCC_D3CCIPR_LPTIM345SEL_Msk (0x7U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x0000E000 */
  13429. #define RCC_D3CCIPR_LPTIM345SEL RCC_D3CCIPR_LPTIM345SEL_Msk
  13430. #define RCC_D3CCIPR_LPTIM345SEL_0 (0x1U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00002000 */
  13431. #define RCC_D3CCIPR_LPTIM345SEL_1 (0x2U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00004000 */
  13432. #define RCC_D3CCIPR_LPTIM345SEL_2 (0x4U << RCC_D3CCIPR_LPTIM345SEL_Pos) /*!< 0x00008000 */
  13433. #define RCC_D3CCIPR_SAI4ASEL_Pos (21U)
  13434. #define RCC_D3CCIPR_SAI4ASEL_Msk (0x7U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00E00000 */
  13435. #define RCC_D3CCIPR_SAI4ASEL RCC_D3CCIPR_SAI4ASEL_Msk
  13436. #define RCC_D3CCIPR_SAI4ASEL_0 (0x1U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00200000 */
  13437. #define RCC_D3CCIPR_SAI4ASEL_1 (0x2U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00400000 */
  13438. #define RCC_D3CCIPR_SAI4ASEL_2 (0x4U << RCC_D3CCIPR_SAI4ASEL_Pos) /*!< 0x00800000 */
  13439. #define RCC_D3CCIPR_SAI4BSEL_Pos (24U)
  13440. #define RCC_D3CCIPR_SAI4BSEL_Msk (0x7U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x07000000 */
  13441. #define RCC_D3CCIPR_SAI4BSEL RCC_D3CCIPR_SAI4BSEL_Msk
  13442. #define RCC_D3CCIPR_SAI4BSEL_0 (0x1U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x01000000 */
  13443. #define RCC_D3CCIPR_SAI4BSEL_1 (0x2U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x02000000 */
  13444. #define RCC_D3CCIPR_SAI4BSEL_2 (0x4U << RCC_D3CCIPR_SAI4BSEL_Pos) /*!< 0x04000000 */
  13445. #define RCC_D3CCIPR_ADCSEL_Pos (16U)
  13446. #define RCC_D3CCIPR_ADCSEL_Msk (0x3U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00030000 */
  13447. #define RCC_D3CCIPR_ADCSEL RCC_D3CCIPR_ADCSEL_Msk
  13448. #define RCC_D3CCIPR_ADCSEL_0 (0x1U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00010000 */
  13449. #define RCC_D3CCIPR_ADCSEL_1 (0x2U << RCC_D3CCIPR_ADCSEL_Pos) /*!< 0x00020000 */
  13450. #define RCC_D3CCIPR_SPI6SEL_Pos (28U)
  13451. #define RCC_D3CCIPR_SPI6SEL_Msk (0x7U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x70000000 */
  13452. #define RCC_D3CCIPR_SPI6SEL RCC_D3CCIPR_SPI6SEL_Msk
  13453. #define RCC_D3CCIPR_SPI6SEL_0 (0x1U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x10000000 */
  13454. #define RCC_D3CCIPR_SPI6SEL_1 (0x2U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x20000000 */
  13455. #define RCC_D3CCIPR_SPI6SEL_2 (0x4U << RCC_D3CCIPR_SPI6SEL_Pos) /*!< 0x40000000 */
  13456. /******************** Bit definition for RCC_CIER register ******************/
  13457. #define RCC_CIER_LSIRDYIE_Pos (0U)
  13458. #define RCC_CIER_LSIRDYIE_Msk (0x1U << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */
  13459. #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk
  13460. #define RCC_CIER_LSERDYIE_Pos (1U)
  13461. #define RCC_CIER_LSERDYIE_Msk (0x1U << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */
  13462. #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk
  13463. #define RCC_CIER_HSIRDYIE_Pos (2U)
  13464. #define RCC_CIER_HSIRDYIE_Msk (0x1U << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000004 */
  13465. #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk
  13466. #define RCC_CIER_HSERDYIE_Pos (3U)
  13467. #define RCC_CIER_HSERDYIE_Msk (0x1U << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000008 */
  13468. #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk
  13469. #define RCC_CIER_CSIRDYIE_Pos (4U)
  13470. #define RCC_CIER_CSIRDYIE_Msk (0x1U << RCC_CIER_CSIRDYIE_Pos) /*!< 0x00000010 */
  13471. #define RCC_CIER_CSIRDYIE RCC_CIER_CSIRDYIE_Msk
  13472. #define RCC_CIER_HSI48RDYIE_Pos (5U)
  13473. #define RCC_CIER_HSI48RDYIE_Msk (0x1U << RCC_CIER_HSI48RDYIE_Pos) /*!< 0x00000020 */
  13474. #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk
  13475. #define RCC_CIER_PLL1RDYIE_Pos (6U)
  13476. #define RCC_CIER_PLL1RDYIE_Msk (0x1U << RCC_CIER_PLL1RDYIE_Pos) /*!< 0x00000040 */
  13477. #define RCC_CIER_PLL1RDYIE RCC_CIER_PLL1RDYIE_Msk
  13478. #define RCC_CIER_PLL2RDYIE_Pos (7U)
  13479. #define RCC_CIER_PLL2RDYIE_Msk (0x1U << RCC_CIER_PLL2RDYIE_Pos) /*!< 0x00000080 */
  13480. #define RCC_CIER_PLL2RDYIE RCC_CIER_PLL2RDYIE_Msk
  13481. #define RCC_CIER_PLL3RDYIE_Pos (8U)
  13482. #define RCC_CIER_PLL3RDYIE_Msk (0x1U << RCC_CIER_PLL3RDYIE_Pos) /*!< 0x00000100 */
  13483. #define RCC_CIER_PLL3RDYIE RCC_CIER_PLL3RDYIE_Msk
  13484. #define RCC_CIER_LSECSSIE_Pos (9U)
  13485. #define RCC_CIER_LSECSSIE_Msk (0x1U << RCC_CIER_LSECSSIE_Pos) /*!< 0x00000200 */
  13486. #define RCC_CIER_LSECSSIE RCC_CIER_LSECSSIE_Msk
  13487. /******************** Bit definition for RCC_CIFR register ******************/
  13488. #define RCC_CIFR_LSIRDYF_Pos (0U)
  13489. #define RCC_CIFR_LSIRDYF_Msk (0x1U << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */
  13490. #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk
  13491. #define RCC_CIFR_LSERDYF_Pos (1U)
  13492. #define RCC_CIFR_LSERDYF_Msk (0x1U << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */
  13493. #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk
  13494. #define RCC_CIFR_HSIRDYF_Pos (2U)
  13495. #define RCC_CIFR_HSIRDYF_Msk (0x1U << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000004 */
  13496. #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk
  13497. #define RCC_CIFR_HSERDYF_Pos (3U)
  13498. #define RCC_CIFR_HSERDYF_Msk (0x1U << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000008 */
  13499. #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk
  13500. #define RCC_CIFR_CSIRDYF_Pos (4U)
  13501. #define RCC_CIFR_CSIRDYF_Msk (0x1U << RCC_CIFR_CSIRDYF_Pos) /*!< 0x00000010 */
  13502. #define RCC_CIFR_CSIRDYF RCC_CIFR_CSIRDYF_Msk
  13503. #define RCC_CIFR_HSI48RDYF_Pos (5U)
  13504. #define RCC_CIFR_HSI48RDYF_Msk (0x1U << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000020 */
  13505. #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk
  13506. #define RCC_CIFR_PLLRDYF_Pos (6U)
  13507. #define RCC_CIFR_PLLRDYF_Msk (0x1U << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000040 */
  13508. #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk
  13509. #define RCC_CIFR_PLL2RDYF_Pos (7U)
  13510. #define RCC_CIFR_PLL2RDYF_Msk (0x1U << RCC_CIFR_PLL2RDYF_Pos) /*!< 0x00000080 */
  13511. #define RCC_CIFR_PLL2RDYF RCC_CIFR_PLL2RDYF_Msk
  13512. #define RCC_CIFR_PLL3RDYF_Pos (8U)
  13513. #define RCC_CIFR_PLL3RDYF_Msk (0x1U << RCC_CIFR_PLL3RDYF_Pos) /*!< 0x00000100 */
  13514. #define RCC_CIFR_PLL3RDYF RCC_CIFR_PLL3RDYF_Msk
  13515. #define RCC_CIFR_LSECSSF_Pos (9U)
  13516. #define RCC_CIFR_LSECSSF_Msk (0x1U << RCC_CIFR_LSECSSF_Pos) /*!< 0x00000200 */
  13517. #define RCC_CIFR_LSECSSF RCC_CIFR_LSECSSF_Msk
  13518. #define RCC_CIFR_HSECSSF_Pos (10U)
  13519. #define RCC_CIFR_HSECSSF_Msk (0x1U << RCC_CIFR_HSECSSF_Pos) /*!< 0x00000400 */
  13520. #define RCC_CIFR_HSECSSF RCC_CIFR_HSECSSF_Msk
  13521. /******************** Bit definition for RCC_CICR register ******************/
  13522. #define RCC_CICR_LSIRDYC_Pos (0U)
  13523. #define RCC_CICR_LSIRDYC_Msk (0x1U << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */
  13524. #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk
  13525. #define RCC_CICR_LSERDYC_Pos (1U)
  13526. #define RCC_CICR_LSERDYC_Msk (0x1U << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */
  13527. #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk
  13528. #define RCC_CICR_HSIRDYC_Pos (2U)
  13529. #define RCC_CICR_HSIRDYC_Msk (0x1U << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000004 */
  13530. #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk
  13531. #define RCC_CICR_HSERDYC_Pos (3U)
  13532. #define RCC_CICR_HSERDYC_Msk (0x1U << RCC_CICR_HSERDYC_Pos) /*!< 0x00000008 */
  13533. #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk
  13534. #define RCC_CICR_CSIRDYC_Pos (4U)
  13535. #define RCC_CICR_CSIRDYC_Msk (0x1U << RCC_CICR_CSIRDYC_Pos) /*!< 0x00000010 */
  13536. #define RCC_CICR_CSIRDYC RCC_CICR_CSIRDYC_Msk
  13537. #define RCC_CICR_HSI48RDYC_Pos (5U)
  13538. #define RCC_CICR_HSI48RDYC_Msk (0x1U << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000020 */
  13539. #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk
  13540. #define RCC_CICR_PLLRDYC_Pos (6U)
  13541. #define RCC_CICR_PLLRDYC_Msk (0x1U << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000040 */
  13542. #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk
  13543. #define RCC_CICR_PLL2RDYC_Pos (7U)
  13544. #define RCC_CICR_PLL2RDYC_Msk (0x1U << RCC_CICR_PLL2RDYC_Pos) /*!< 0x00000080 */
  13545. #define RCC_CICR_PLL2RDYC RCC_CICR_PLL2RDYC_Msk
  13546. #define RCC_CICR_PLL3RDYC_Pos (8U)
  13547. #define RCC_CICR_PLL3RDYC_Msk (0x1U << RCC_CICR_PLL3RDYC_Pos) /*!< 0x00000100 */
  13548. #define RCC_CICR_PLL3RDYC RCC_CICR_PLL3RDYC_Msk
  13549. #define RCC_CICR_LSECSSC_Pos (9U)
  13550. #define RCC_CICR_LSECSSC_Msk (0x1U << RCC_CICR_LSECSSC_Pos) /*!< 0x00000200 */
  13551. #define RCC_CICR_LSECSSC RCC_CICR_LSECSSC_Msk
  13552. #define RCC_CICR_HSECSSC_Pos (10U)
  13553. #define RCC_CICR_HSECSSC_Msk (0x1U << RCC_CICR_HSECSSC_Pos) /*!< 0x00000400 */
  13554. #define RCC_CICR_HSECSSC RCC_CICR_HSECSSC_Msk
  13555. /******************** Bit definition for RCC_BDCR register ******************/
  13556. #define RCC_BDCR_LSEON_Pos (0U)
  13557. #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */
  13558. #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk
  13559. #define RCC_BDCR_LSERDY_Pos (1U)
  13560. #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */
  13561. #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk
  13562. #define RCC_BDCR_LSEBYP_Pos (2U)
  13563. #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */
  13564. #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk
  13565. #define RCC_BDCR_LSEDRV_Pos (3U)
  13566. #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */
  13567. #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk
  13568. #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */
  13569. #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */
  13570. #define RCC_BDCR_LSECSSON_Pos (5U)
  13571. #define RCC_BDCR_LSECSSON_Msk (0x1U << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */
  13572. #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk
  13573. #define RCC_BDCR_LSECSSD_Pos (6U)
  13574. #define RCC_BDCR_LSECSSD_Msk (0x1U << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */
  13575. #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk
  13576. #define RCC_BDCR_RTCSEL_Pos (8U)
  13577. #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */
  13578. #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk
  13579. #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */
  13580. #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */
  13581. #define RCC_BDCR_RTCEN_Pos (15U)
  13582. #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */
  13583. #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk
  13584. #define RCC_BDCR_BDRST_Pos (16U)
  13585. #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */
  13586. #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk
  13587. /******************** Bit definition for RCC_CSR register *******************/
  13588. #define RCC_CSR_LSION_Pos (0U)
  13589. #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */
  13590. #define RCC_CSR_LSION RCC_CSR_LSION_Msk
  13591. #define RCC_CSR_LSIRDY_Pos (1U)
  13592. #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */
  13593. #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk
  13594. /******************** Bit definition for RCC_AHB3ENR register **************/
  13595. #define RCC_AHB3ENR_MDMAEN_Pos (0U)
  13596. #define RCC_AHB3ENR_MDMAEN_Msk (0x1U << RCC_AHB3ENR_MDMAEN_Pos) /*!< 0x00000001 */
  13597. #define RCC_AHB3ENR_MDMAEN RCC_AHB3ENR_MDMAEN_Msk
  13598. #define RCC_AHB3ENR_DMA2DEN_Pos (4U)
  13599. #define RCC_AHB3ENR_DMA2DEN_Msk (0x1U << RCC_AHB3ENR_DMA2DEN_Pos) /*!< 0x00000010 */
  13600. #define RCC_AHB3ENR_DMA2DEN RCC_AHB3ENR_DMA2DEN_Msk
  13601. #define RCC_AHB3ENR_JPGDECEN_Pos (5U)
  13602. #define RCC_AHB3ENR_JPGDECEN_Msk (0x1U << RCC_AHB3ENR_JPGDECEN_Pos) /*!< 0x00000020 */
  13603. #define RCC_AHB3ENR_JPGDECEN RCC_AHB3ENR_JPGDECEN_Msk
  13604. #define RCC_AHB3ENR_FMCEN_Pos (12U)
  13605. #define RCC_AHB3ENR_FMCEN_Msk (0x1U << RCC_AHB3ENR_FMCEN_Pos) /*!< 0x00001000 */
  13606. #define RCC_AHB3ENR_FMCEN RCC_AHB3ENR_FMCEN_Msk
  13607. #define RCC_AHB3ENR_QSPIEN_Pos (14U)
  13608. #define RCC_AHB3ENR_QSPIEN_Msk (0x1U << RCC_AHB3ENR_QSPIEN_Pos) /*!< 0x00004000 */
  13609. #define RCC_AHB3ENR_QSPIEN RCC_AHB3ENR_QSPIEN_Msk
  13610. #define RCC_AHB3ENR_SDMMC1EN_Pos (16U)
  13611. #define RCC_AHB3ENR_SDMMC1EN_Msk (0x1U << RCC_AHB3ENR_SDMMC1EN_Pos) /*!< 0x00010000 */
  13612. #define RCC_AHB3ENR_SDMMC1EN RCC_AHB3ENR_SDMMC1EN_Msk
  13613. /******************** Bit definition for RCC_AHB1ENR register ***************/
  13614. #define RCC_AHB1ENR_DMA1EN_Pos (0U)
  13615. #define RCC_AHB1ENR_DMA1EN_Msk (0x1U << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */
  13616. #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk
  13617. #define RCC_AHB1ENR_DMA2EN_Pos (1U)
  13618. #define RCC_AHB1ENR_DMA2EN_Msk (0x1U << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */
  13619. #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk
  13620. #define RCC_AHB1ENR_ADC12EN_Pos (5U)
  13621. #define RCC_AHB1ENR_ADC12EN_Msk (0x1U << RCC_AHB1ENR_ADC12EN_Pos) /*!< 0x00000020 */
  13622. #define RCC_AHB1ENR_ADC12EN RCC_AHB1ENR_ADC12EN_Msk
  13623. #define RCC_AHB1ENR_ETH1MACEN_Pos (15U)
  13624. #define RCC_AHB1ENR_ETH1MACEN_Msk (0x1U << RCC_AHB1ENR_ETH1MACEN_Pos) /*!< 0x00008000 */
  13625. #define RCC_AHB1ENR_ETH1MACEN RCC_AHB1ENR_ETH1MACEN_Msk
  13626. #define RCC_AHB1ENR_ETH1TXEN_Pos (16U)
  13627. #define RCC_AHB1ENR_ETH1TXEN_Msk (0x1U << RCC_AHB1ENR_ETH1TXEN_Pos) /*!< 0x00010000 */
  13628. #define RCC_AHB1ENR_ETH1TXEN RCC_AHB1ENR_ETH1TXEN_Msk
  13629. #define RCC_AHB1ENR_ETH1RXEN_Pos (17U)
  13630. #define RCC_AHB1ENR_ETH1RXEN_Msk (0x1U << RCC_AHB1ENR_ETH1RXEN_Pos) /*!< 0x00020000 */
  13631. #define RCC_AHB1ENR_ETH1RXEN RCC_AHB1ENR_ETH1RXEN_Msk
  13632. #define RCC_AHB1ENR_USB1OTGHSEN_Pos (25U)
  13633. #define RCC_AHB1ENR_USB1OTGHSEN_Msk (0x1U << RCC_AHB1ENR_USB1OTGHSEN_Pos) /*!< 0x02000000 */
  13634. #define RCC_AHB1ENR_USB1OTGHSEN RCC_AHB1ENR_USB1OTGHSEN_Msk
  13635. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Pos (26U)
  13636. #define RCC_AHB1ENR_USB1OTGHSULPIEN_Msk (0x1U << RCC_AHB1ENR_USB1OTGHSULPIEN_Pos) /*!< 0x04000000 */
  13637. #define RCC_AHB1ENR_USB1OTGHSULPIEN RCC_AHB1ENR_USB1OTGHSULPIEN_Msk
  13638. #define RCC_AHB1ENR_USB2OTGHSEN_Pos (27U)
  13639. #define RCC_AHB1ENR_USB2OTGHSEN_Msk (0x1U << RCC_AHB1ENR_USB2OTGHSEN_Pos) /*!< 0x08000000 */
  13640. #define RCC_AHB1ENR_USB2OTGHSEN RCC_AHB1ENR_USB2OTGHSEN_Msk
  13641. #define RCC_AHB1ENR_USB2OTGHSULPIEN_Pos (28U)
  13642. #define RCC_AHB1ENR_USB2OTGHSULPIEN_Msk (0x1U << RCC_AHB1ENR_USB2OTGHSULPIEN_Pos) /*!< 0x10000000 */
  13643. #define RCC_AHB1ENR_USB2OTGHSULPIEN RCC_AHB1ENR_USB2OTGHSULPIEN_Msk
  13644. /******************** Bit definition for RCC_AHB2ENR register ***************/
  13645. #define RCC_AHB2ENR_DCMIEN_Pos (0U)
  13646. #define RCC_AHB2ENR_DCMIEN_Msk (0x1U << RCC_AHB2ENR_DCMIEN_Pos) /*!< 0x00000001 */
  13647. #define RCC_AHB2ENR_DCMIEN RCC_AHB2ENR_DCMIEN_Msk
  13648. #define RCC_AHB2ENR_CRYPEN_Pos (4U)
  13649. #define RCC_AHB2ENR_CRYPEN_Msk (0x1U << RCC_AHB2ENR_CRYPEN_Pos) /*!< 0x00000010 */
  13650. #define RCC_AHB2ENR_CRYPEN RCC_AHB2ENR_CRYPEN_Msk
  13651. #define RCC_AHB2ENR_HASHEN_Pos (5U)
  13652. #define RCC_AHB2ENR_HASHEN_Msk (0x1U << RCC_AHB2ENR_HASHEN_Pos) /*!< 0x00000020 */
  13653. #define RCC_AHB2ENR_HASHEN RCC_AHB2ENR_HASHEN_Msk
  13654. #define RCC_AHB2ENR_RNGEN_Pos (6U)
  13655. #define RCC_AHB2ENR_RNGEN_Msk (0x1U << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00000040 */
  13656. #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk
  13657. #define RCC_AHB2ENR_SDMMC2EN_Pos (9U)
  13658. #define RCC_AHB2ENR_SDMMC2EN_Msk (0x1U << RCC_AHB2ENR_SDMMC2EN_Pos) /*!< 0x00000200 */
  13659. #define RCC_AHB2ENR_SDMMC2EN RCC_AHB2ENR_SDMMC2EN_Msk
  13660. #define RCC_AHB2ENR_D2SRAM1EN_Pos (29U)
  13661. #define RCC_AHB2ENR_D2SRAM1EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM1EN_Pos) /*!< 0x20000000 */
  13662. #define RCC_AHB2ENR_D2SRAM1EN RCC_AHB2ENR_D2SRAM1EN_Msk
  13663. #define RCC_AHB2ENR_D2SRAM2EN_Pos (30U)
  13664. #define RCC_AHB2ENR_D2SRAM2EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM2EN_Pos) /*!< 0x40000000 */
  13665. #define RCC_AHB2ENR_D2SRAM2EN RCC_AHB2ENR_D2SRAM2EN_Msk
  13666. #define RCC_AHB2ENR_D2SRAM3EN_Pos (31U)
  13667. #define RCC_AHB2ENR_D2SRAM3EN_Msk (0x1U << RCC_AHB2ENR_D2SRAM3EN_Pos) /*!< 0x80000000 */
  13668. #define RCC_AHB2ENR_D2SRAM3EN RCC_AHB2ENR_D2SRAM3EN_Msk
  13669. /******************** Bit definition for RCC_AHB4ENR register ******************/
  13670. #define RCC_AHB4ENR_GPIOAEN_Pos (0U)
  13671. #define RCC_AHB4ENR_GPIOAEN_Msk (0x1U << RCC_AHB4ENR_GPIOAEN_Pos) /*!< 0x00000001 */
  13672. #define RCC_AHB4ENR_GPIOAEN RCC_AHB4ENR_GPIOAEN_Msk
  13673. #define RCC_AHB4ENR_GPIOBEN_Pos (1U)
  13674. #define RCC_AHB4ENR_GPIOBEN_Msk (0x1U << RCC_AHB4ENR_GPIOBEN_Pos) /*!< 0x00000002 */
  13675. #define RCC_AHB4ENR_GPIOBEN RCC_AHB4ENR_GPIOBEN_Msk
  13676. #define RCC_AHB4ENR_GPIOCEN_Pos (2U)
  13677. #define RCC_AHB4ENR_GPIOCEN_Msk (0x1U << RCC_AHB4ENR_GPIOCEN_Pos) /*!< 0x00000004 */
  13678. #define RCC_AHB4ENR_GPIOCEN RCC_AHB4ENR_GPIOCEN_Msk
  13679. #define RCC_AHB4ENR_GPIODEN_Pos (3U)
  13680. #define RCC_AHB4ENR_GPIODEN_Msk (0x1U << RCC_AHB4ENR_GPIODEN_Pos) /*!< 0x00000008 */
  13681. #define RCC_AHB4ENR_GPIODEN RCC_AHB4ENR_GPIODEN_Msk
  13682. #define RCC_AHB4ENR_GPIOEEN_Pos (4U)
  13683. #define RCC_AHB4ENR_GPIOEEN_Msk (0x1U << RCC_AHB4ENR_GPIOEEN_Pos) /*!< 0x00000010 */
  13684. #define RCC_AHB4ENR_GPIOEEN RCC_AHB4ENR_GPIOEEN_Msk
  13685. #define RCC_AHB4ENR_GPIOFEN_Pos (5U)
  13686. #define RCC_AHB4ENR_GPIOFEN_Msk (0x1U << RCC_AHB4ENR_GPIOFEN_Pos) /*!< 0x00000020 */
  13687. #define RCC_AHB4ENR_GPIOFEN RCC_AHB4ENR_GPIOFEN_Msk
  13688. #define RCC_AHB4ENR_GPIOGEN_Pos (6U)
  13689. #define RCC_AHB4ENR_GPIOGEN_Msk (0x1U << RCC_AHB4ENR_GPIOGEN_Pos) /*!< 0x00000040 */
  13690. #define RCC_AHB4ENR_GPIOGEN RCC_AHB4ENR_GPIOGEN_Msk
  13691. #define RCC_AHB4ENR_GPIOHEN_Pos (7U)
  13692. #define RCC_AHB4ENR_GPIOHEN_Msk (0x1U << RCC_AHB4ENR_GPIOHEN_Pos) /*!< 0x00000080 */
  13693. #define RCC_AHB4ENR_GPIOHEN RCC_AHB4ENR_GPIOHEN_Msk
  13694. #define RCC_AHB4ENR_GPIOIEN_Pos (8U)
  13695. #define RCC_AHB4ENR_GPIOIEN_Msk (0x1U << RCC_AHB4ENR_GPIOIEN_Pos) /*!< 0x00000100 */
  13696. #define RCC_AHB4ENR_GPIOIEN RCC_AHB4ENR_GPIOIEN_Msk
  13697. #define RCC_AHB4ENR_GPIOJEN_Pos (9U)
  13698. #define RCC_AHB4ENR_GPIOJEN_Msk (0x1U << RCC_AHB4ENR_GPIOJEN_Pos) /*!< 0x00000200 */
  13699. #define RCC_AHB4ENR_GPIOJEN RCC_AHB4ENR_GPIOJEN_Msk
  13700. #define RCC_AHB4ENR_GPIOKEN_Pos (10U)
  13701. #define RCC_AHB4ENR_GPIOKEN_Msk (0x1U << RCC_AHB4ENR_GPIOKEN_Pos) /*!< 0x00000400 */
  13702. #define RCC_AHB4ENR_GPIOKEN RCC_AHB4ENR_GPIOKEN_Msk
  13703. #define RCC_AHB4ENR_CRCEN_Pos (19U)
  13704. #define RCC_AHB4ENR_CRCEN_Msk (0x1U << RCC_AHB4ENR_CRCEN_Pos) /*!< 0x00080000 */
  13705. #define RCC_AHB4ENR_CRCEN RCC_AHB4ENR_CRCEN_Msk
  13706. #define RCC_AHB4ENR_BDMAEN_Pos (21U)
  13707. #define RCC_AHB4ENR_BDMAEN_Msk (0x1U << RCC_AHB4ENR_BDMAEN_Pos) /*!< 0x00200000 */
  13708. #define RCC_AHB4ENR_BDMAEN RCC_AHB4ENR_BDMAEN_Msk
  13709. #define RCC_AHB4ENR_ADC3EN_Pos (24U)
  13710. #define RCC_AHB4ENR_ADC3EN_Msk (0x1U << RCC_AHB4ENR_ADC3EN_Pos) /*!< 0x01000000 */
  13711. #define RCC_AHB4ENR_ADC3EN RCC_AHB4ENR_ADC3EN_Msk
  13712. #define RCC_AHB4ENR_HSEMEN_Pos (25U)
  13713. #define RCC_AHB4ENR_HSEMEN_Msk (0x1U << RCC_AHB4ENR_HSEMEN_Pos) /*!< 0x02000000 */
  13714. #define RCC_AHB4ENR_HSEMEN RCC_AHB4ENR_HSEMEN_Msk
  13715. #define RCC_AHB4ENR_BKPRAMEN_Pos (28U)
  13716. #define RCC_AHB4ENR_BKPRAMEN_Msk (0x1U << RCC_AHB4ENR_BKPRAMEN_Pos) /*!< 0x10000000 */
  13717. #define RCC_AHB4ENR_BKPRAMEN RCC_AHB4ENR_BKPRAMEN_Msk
  13718. /******************** Bit definition for RCC_APB3ENR register ******************/
  13719. #define RCC_APB3ENR_LTDCEN_Pos (3U)
  13720. #define RCC_APB3ENR_LTDCEN_Msk (0x1U << RCC_APB3ENR_LTDCEN_Pos) /*!< 0x00000008 */
  13721. #define RCC_APB3ENR_LTDCEN RCC_APB3ENR_LTDCEN_Msk
  13722. #define RCC_APB3ENR_WWDG1EN_Pos (6U)
  13723. #define RCC_APB3ENR_WWDG1EN_Msk (0x1U << RCC_APB3ENR_WWDG1EN_Pos) /*!< 0x00000040 */
  13724. #define RCC_APB3ENR_WWDG1EN RCC_APB3ENR_WWDG1EN_Msk
  13725. /******************** Bit definition for RCC_APB1LENR register ******************/
  13726. #define RCC_APB1LENR_TIM2EN_Pos (0U)
  13727. #define RCC_APB1LENR_TIM2EN_Msk (0x1U << RCC_APB1LENR_TIM2EN_Pos) /*!< 0x00000001 */
  13728. #define RCC_APB1LENR_TIM2EN RCC_APB1LENR_TIM2EN_Msk
  13729. #define RCC_APB1LENR_TIM3EN_Pos (1U)
  13730. #define RCC_APB1LENR_TIM3EN_Msk (0x1U << RCC_APB1LENR_TIM3EN_Pos) /*!< 0x00000002 */
  13731. #define RCC_APB1LENR_TIM3EN RCC_APB1LENR_TIM3EN_Msk
  13732. #define RCC_APB1LENR_TIM4EN_Pos (2U)
  13733. #define RCC_APB1LENR_TIM4EN_Msk (0x1U << RCC_APB1LENR_TIM4EN_Pos) /*!< 0x00000004 */
  13734. #define RCC_APB1LENR_TIM4EN RCC_APB1LENR_TIM4EN_Msk
  13735. #define RCC_APB1LENR_TIM5EN_Pos (3U)
  13736. #define RCC_APB1LENR_TIM5EN_Msk (0x1U << RCC_APB1LENR_TIM5EN_Pos) /*!< 0x00000008 */
  13737. #define RCC_APB1LENR_TIM5EN RCC_APB1LENR_TIM5EN_Msk
  13738. #define RCC_APB1LENR_TIM6EN_Pos (4U)
  13739. #define RCC_APB1LENR_TIM6EN_Msk (0x1U << RCC_APB1LENR_TIM6EN_Pos) /*!< 0x00000010 */
  13740. #define RCC_APB1LENR_TIM6EN RCC_APB1LENR_TIM6EN_Msk
  13741. #define RCC_APB1LENR_TIM7EN_Pos (5U)
  13742. #define RCC_APB1LENR_TIM7EN_Msk (0x1U << RCC_APB1LENR_TIM7EN_Pos) /*!< 0x00000020 */
  13743. #define RCC_APB1LENR_TIM7EN RCC_APB1LENR_TIM7EN_Msk
  13744. #define RCC_APB1LENR_TIM12EN_Pos (6U)
  13745. #define RCC_APB1LENR_TIM12EN_Msk (0x1U << RCC_APB1LENR_TIM12EN_Pos) /*!< 0x00000040 */
  13746. #define RCC_APB1LENR_TIM12EN RCC_APB1LENR_TIM12EN_Msk
  13747. #define RCC_APB1LENR_TIM13EN_Pos (7U)
  13748. #define RCC_APB1LENR_TIM13EN_Msk (0x1U << RCC_APB1LENR_TIM13EN_Pos) /*!< 0x00000080 */
  13749. #define RCC_APB1LENR_TIM13EN RCC_APB1LENR_TIM13EN_Msk
  13750. #define RCC_APB1LENR_TIM14EN_Pos (8U)
  13751. #define RCC_APB1LENR_TIM14EN_Msk (0x1U << RCC_APB1LENR_TIM14EN_Pos) /*!< 0x00000100 */
  13752. #define RCC_APB1LENR_TIM14EN RCC_APB1LENR_TIM14EN_Msk
  13753. #define RCC_APB1LENR_LPTIM1EN_Pos (9U)
  13754. #define RCC_APB1LENR_LPTIM1EN_Msk (0x1U << RCC_APB1LENR_LPTIM1EN_Pos) /*!< 0x00000200 */
  13755. #define RCC_APB1LENR_LPTIM1EN RCC_APB1LENR_LPTIM1EN_Msk
  13756. #define RCC_APB1LENR_SPI2EN_Pos (14U)
  13757. #define RCC_APB1LENR_SPI2EN_Msk (0x1U << RCC_APB1LENR_SPI2EN_Pos) /*!< 0x00004000 */
  13758. #define RCC_APB1LENR_SPI2EN RCC_APB1LENR_SPI2EN_Msk
  13759. #define RCC_APB1LENR_SPI3EN_Pos (15U)
  13760. #define RCC_APB1LENR_SPI3EN_Msk (0x1U << RCC_APB1LENR_SPI3EN_Pos) /*!< 0x00008000 */
  13761. #define RCC_APB1LENR_SPI3EN RCC_APB1LENR_SPI3EN_Msk
  13762. #define RCC_APB1LENR_SPDIFRXEN_Pos (16U)
  13763. #define RCC_APB1LENR_SPDIFRXEN_Msk (0x1U << RCC_APB1LENR_SPDIFRXEN_Pos) /*!< 0x00010000 */
  13764. #define RCC_APB1LENR_SPDIFRXEN RCC_APB1LENR_SPDIFRXEN_Msk
  13765. #define RCC_APB1LENR_USART2EN_Pos (17U)
  13766. #define RCC_APB1LENR_USART2EN_Msk (0x1U << RCC_APB1LENR_USART2EN_Pos) /*!< 0x00020000 */
  13767. #define RCC_APB1LENR_USART2EN RCC_APB1LENR_USART2EN_Msk
  13768. #define RCC_APB1LENR_USART3EN_Pos (18U)
  13769. #define RCC_APB1LENR_USART3EN_Msk (0x1U << RCC_APB1LENR_USART3EN_Pos) /*!< 0x00040000 */
  13770. #define RCC_APB1LENR_USART3EN RCC_APB1LENR_USART3EN_Msk
  13771. #define RCC_APB1LENR_UART4EN_Pos (19U)
  13772. #define RCC_APB1LENR_UART4EN_Msk (0x1U << RCC_APB1LENR_UART4EN_Pos) /*!< 0x00080000 */
  13773. #define RCC_APB1LENR_UART4EN RCC_APB1LENR_UART4EN_Msk
  13774. #define RCC_APB1LENR_UART5EN_Pos (20U)
  13775. #define RCC_APB1LENR_UART5EN_Msk (0x1U << RCC_APB1LENR_UART5EN_Pos) /*!< 0x00100000 */
  13776. #define RCC_APB1LENR_UART5EN RCC_APB1LENR_UART5EN_Msk
  13777. #define RCC_APB1LENR_I2C1EN_Pos (21U)
  13778. #define RCC_APB1LENR_I2C1EN_Msk (0x1U << RCC_APB1LENR_I2C1EN_Pos) /*!< 0x00200000 */
  13779. #define RCC_APB1LENR_I2C1EN RCC_APB1LENR_I2C1EN_Msk
  13780. #define RCC_APB1LENR_I2C2EN_Pos (22U)
  13781. #define RCC_APB1LENR_I2C2EN_Msk (0x1U << RCC_APB1LENR_I2C2EN_Pos) /*!< 0x00400000 */
  13782. #define RCC_APB1LENR_I2C2EN RCC_APB1LENR_I2C2EN_Msk
  13783. #define RCC_APB1LENR_I2C3EN_Pos (23U)
  13784. #define RCC_APB1LENR_I2C3EN_Msk (0x1U << RCC_APB1LENR_I2C3EN_Pos) /*!< 0x00800000 */
  13785. #define RCC_APB1LENR_I2C3EN RCC_APB1LENR_I2C3EN_Msk
  13786. #define RCC_APB1LENR_CECEN_Pos (27U)
  13787. #define RCC_APB1LENR_CECEN_Msk (0x1U << RCC_APB1LENR_CECEN_Pos) /*!< 0x08000000 */
  13788. #define RCC_APB1LENR_CECEN RCC_APB1LENR_CECEN_Msk
  13789. #define RCC_APB1LENR_DAC12EN_Pos (29U)
  13790. #define RCC_APB1LENR_DAC12EN_Msk (0x1U << RCC_APB1LENR_DAC12EN_Pos) /*!< 0x20000000 */
  13791. #define RCC_APB1LENR_DAC12EN RCC_APB1LENR_DAC12EN_Msk
  13792. #define RCC_APB1LENR_UART7EN_Pos (30U)
  13793. #define RCC_APB1LENR_UART7EN_Msk (0x1U << RCC_APB1LENR_UART7EN_Pos) /*!< 0x40000000 */
  13794. #define RCC_APB1LENR_UART7EN RCC_APB1LENR_UART7EN_Msk
  13795. #define RCC_APB1LENR_UART8EN_Pos (31U)
  13796. #define RCC_APB1LENR_UART8EN_Msk (0x1U << RCC_APB1LENR_UART8EN_Pos) /*!< 0x80000000 */
  13797. #define RCC_APB1LENR_UART8EN RCC_APB1LENR_UART8EN_Msk
  13798. /******************** Bit definition for RCC_APB1HENR register ******************/
  13799. #define RCC_APB1HENR_CRSEN_Pos (1U)
  13800. #define RCC_APB1HENR_CRSEN_Msk (0x1U << RCC_APB1HENR_CRSEN_Pos) /*!< 0x00000002 */
  13801. #define RCC_APB1HENR_CRSEN RCC_APB1HENR_CRSEN_Msk
  13802. #define RCC_APB1HENR_SWPMIEN_Pos (2U)
  13803. #define RCC_APB1HENR_SWPMIEN_Msk (0x1U << RCC_APB1HENR_SWPMIEN_Pos) /*!< 0x00000004 */
  13804. #define RCC_APB1HENR_SWPMIEN RCC_APB1HENR_SWPMIEN_Msk
  13805. #define RCC_APB1HENR_OPAMPEN_Pos (4U)
  13806. #define RCC_APB1HENR_OPAMPEN_Msk (0x1U << RCC_APB1HENR_OPAMPEN_Pos) /*!< 0x00000010 */
  13807. #define RCC_APB1HENR_OPAMPEN RCC_APB1HENR_OPAMPEN_Msk
  13808. #define RCC_APB1HENR_MDIOSEN_Pos (5U)
  13809. #define RCC_APB1HENR_MDIOSEN_Msk (0x1U << RCC_APB1HENR_MDIOSEN_Pos) /*!< 0x00000020 */
  13810. #define RCC_APB1HENR_MDIOSEN RCC_APB1HENR_MDIOSEN_Msk
  13811. #define RCC_APB1HENR_FDCANEN_Pos (8U)
  13812. #define RCC_APB1HENR_FDCANEN_Msk (0x1U << RCC_APB1HENR_FDCANEN_Pos) /*!< 0x00000100 */
  13813. #define RCC_APB1HENR_FDCANEN RCC_APB1HENR_FDCANEN_Msk
  13814. /******************** Bit definition for RCC_APB2ENR register ******************/
  13815. #define RCC_APB2ENR_TIM1EN_Pos (0U)
  13816. #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000001 */
  13817. #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk
  13818. #define RCC_APB2ENR_TIM8EN_Pos (1U)
  13819. #define RCC_APB2ENR_TIM8EN_Msk (0x1U << RCC_APB2ENR_TIM8EN_Pos) /*!< 0x00000002 */
  13820. #define RCC_APB2ENR_TIM8EN RCC_APB2ENR_TIM8EN_Msk
  13821. #define RCC_APB2ENR_USART1EN_Pos (4U)
  13822. #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00000010 */
  13823. #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk
  13824. #define RCC_APB2ENR_USART6EN_Pos (5U)
  13825. #define RCC_APB2ENR_USART6EN_Msk (0x1U << RCC_APB2ENR_USART6EN_Pos) /*!< 0x00000020 */
  13826. #define RCC_APB2ENR_USART6EN RCC_APB2ENR_USART6EN_Msk
  13827. #define RCC_APB2ENR_SPI1EN_Pos (12U)
  13828. #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */
  13829. #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk
  13830. #define RCC_APB2ENR_SPI4EN_Pos (13U)
  13831. #define RCC_APB2ENR_SPI4EN_Msk (0x1U << RCC_APB2ENR_SPI4EN_Pos) /*!< 0x00002000 */
  13832. #define RCC_APB2ENR_SPI4EN RCC_APB2ENR_SPI4EN_Msk
  13833. #define RCC_APB2ENR_TIM15EN_Pos (16U)
  13834. #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */
  13835. #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk
  13836. #define RCC_APB2ENR_TIM16EN_Pos (17U)
  13837. #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
  13838. #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk
  13839. #define RCC_APB2ENR_TIM17EN_Pos (18U)
  13840. #define RCC_APB2ENR_TIM17EN_Msk (0x1U << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
  13841. #define RCC_APB2ENR_TIM17EN RCC_APB2ENR_TIM17EN_Msk
  13842. #define RCC_APB2ENR_SPI5EN_Pos (20U)
  13843. #define RCC_APB2ENR_SPI5EN_Msk (0x1U << RCC_APB2ENR_SPI5EN_Pos) /*!< 0x00100000 */
  13844. #define RCC_APB2ENR_SPI5EN RCC_APB2ENR_SPI5EN_Msk
  13845. #define RCC_APB2ENR_SAI1EN_Pos (22U)
  13846. #define RCC_APB2ENR_SAI1EN_Msk (0x1U << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00400000 */
  13847. #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk
  13848. #define RCC_APB2ENR_SAI2EN_Pos (23U)
  13849. #define RCC_APB2ENR_SAI2EN_Msk (0x1U << RCC_APB2ENR_SAI2EN_Pos) /*!< 0x00800000 */
  13850. #define RCC_APB2ENR_SAI2EN RCC_APB2ENR_SAI2EN_Msk
  13851. #define RCC_APB2ENR_SAI3EN_Pos (24U)
  13852. #define RCC_APB2ENR_SAI3EN_Msk (0x1U << RCC_APB2ENR_SAI3EN_Pos) /*!< 0x01000000 */
  13853. #define RCC_APB2ENR_SAI3EN RCC_APB2ENR_SAI3EN_Msk
  13854. #define RCC_APB2ENR_DFSDM1EN_Pos (28U)
  13855. #define RCC_APB2ENR_DFSDM1EN_Msk (0x1U << RCC_APB2ENR_DFSDM1EN_Pos) /*!< 0x10000000 */
  13856. #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk
  13857. #define RCC_APB2ENR_HRTIMEN_Pos (29U)
  13858. #define RCC_APB2ENR_HRTIMEN_Msk (0x1U << RCC_APB2ENR_HRTIMEN_Pos) /*!< 0x20000000 */
  13859. #define RCC_APB2ENR_HRTIMEN RCC_APB2ENR_HRTIMEN_Msk
  13860. /******************** Bit definition for RCC_APB4ENR register ******************/
  13861. #define RCC_APB4ENR_SYSCFGEN_Pos (1U)
  13862. #define RCC_APB4ENR_SYSCFGEN_Msk (0x1U << RCC_APB4ENR_SYSCFGEN_Pos) /*!< 0x00000002 */
  13863. #define RCC_APB4ENR_SYSCFGEN RCC_APB4ENR_SYSCFGEN_Msk
  13864. #define RCC_APB4ENR_LPUART1EN_Pos (3U)
  13865. #define RCC_APB4ENR_LPUART1EN_Msk (0x1U << RCC_APB4ENR_LPUART1EN_Pos) /*!< 0x00000008 */
  13866. #define RCC_APB4ENR_LPUART1EN RCC_APB4ENR_LPUART1EN_Msk
  13867. #define RCC_APB4ENR_SPI6EN_Pos (5U)
  13868. #define RCC_APB4ENR_SPI6EN_Msk (0x1U << RCC_APB4ENR_SPI6EN_Pos) /*!< 0x00000020 */
  13869. #define RCC_APB4ENR_SPI6EN RCC_APB4ENR_SPI6EN_Msk
  13870. #define RCC_APB4ENR_I2C4EN_Pos (7U)
  13871. #define RCC_APB4ENR_I2C4EN_Msk (0x1U << RCC_APB4ENR_I2C4EN_Pos) /*!< 0x00000080 */
  13872. #define RCC_APB4ENR_I2C4EN RCC_APB4ENR_I2C4EN_Msk
  13873. #define RCC_APB4ENR_LPTIM2EN_Pos (9U)
  13874. #define RCC_APB4ENR_LPTIM2EN_Msk (0x1U << RCC_APB4ENR_LPTIM2EN_Pos) /*!< 0x00000200 */
  13875. #define RCC_APB4ENR_LPTIM2EN RCC_APB4ENR_LPTIM2EN_Msk
  13876. #define RCC_APB4ENR_LPTIM3EN_Pos (10U)
  13877. #define RCC_APB4ENR_LPTIM3EN_Msk (0x1U << RCC_APB4ENR_LPTIM3EN_Pos) /*!< 0x00000400 */
  13878. #define RCC_APB4ENR_LPTIM3EN RCC_APB4ENR_LPTIM3EN_Msk
  13879. #define RCC_APB4ENR_LPTIM4EN_Pos (11U)
  13880. #define RCC_APB4ENR_LPTIM4EN_Msk (0x1U << RCC_APB4ENR_LPTIM4EN_Pos) /*!< 0x00000800 */
  13881. #define RCC_APB4ENR_LPTIM4EN RCC_APB4ENR_LPTIM4EN_Msk
  13882. #define RCC_APB4ENR_LPTIM5EN_Pos (12U)
  13883. #define RCC_APB4ENR_LPTIM5EN_Msk (0x1U << RCC_APB4ENR_LPTIM5EN_Pos) /*!< 0x00001000 */
  13884. #define RCC_APB4ENR_LPTIM5EN RCC_APB4ENR_LPTIM5EN_Msk
  13885. #define RCC_APB4ENR_COMP12EN_Pos (14U)
  13886. #define RCC_APB4ENR_COMP12EN_Msk (0x1U << RCC_APB4ENR_COMP12EN_Pos) /*!< 0x00004000 */
  13887. #define RCC_APB4ENR_COMP12EN RCC_APB4ENR_COMP12EN_Msk
  13888. #define RCC_APB4ENR_VREFEN_Pos (15U)
  13889. #define RCC_APB4ENR_VREFEN_Msk (0x1U << RCC_APB4ENR_VREFEN_Pos) /*!< 0x00008000 */
  13890. #define RCC_APB4ENR_VREFEN RCC_APB4ENR_VREFEN_Msk
  13891. #define RCC_APB4ENR_RTCAPBEN_Pos (16U)
  13892. #define RCC_APB4ENR_RTCAPBEN_Msk (0x1U << RCC_APB4ENR_RTCAPBEN_Pos) /*!< 0x00010000 */
  13893. #define RCC_APB4ENR_RTCAPBEN RCC_APB4ENR_RTCAPBEN_Msk
  13894. #define RCC_APB4ENR_SAI4EN_Pos (21U)
  13895. #define RCC_APB4ENR_SAI4EN_Msk (0x1U << RCC_APB4ENR_SAI4EN_Pos) /*!< 0x00200000 */
  13896. #define RCC_APB4ENR_SAI4EN RCC_APB4ENR_SAI4EN_Msk
  13897. /******************** Bit definition for RCC_AHB3RSTR register ***************/
  13898. #define RCC_AHB3RSTR_MDMARST_Pos (0U)
  13899. #define RCC_AHB3RSTR_MDMARST_Msk (0x1U << RCC_AHB3RSTR_MDMARST_Pos) /*!< 0x00000001 */
  13900. #define RCC_AHB3RSTR_MDMARST RCC_AHB3RSTR_MDMARST_Msk
  13901. #define RCC_AHB3RSTR_DMA2DRST_Pos (4U)
  13902. #define RCC_AHB3RSTR_DMA2DRST_Msk (0x1U << RCC_AHB3RSTR_DMA2DRST_Pos) /*!< 0x00000010 */
  13903. #define RCC_AHB3RSTR_DMA2DRST RCC_AHB3RSTR_DMA2DRST_Msk
  13904. #define RCC_AHB3RSTR_JPGDECRST_Pos (5U)
  13905. #define RCC_AHB3RSTR_JPGDECRST_Msk (0x1U << RCC_AHB3RSTR_JPGDECRST_Pos) /*!< 0x00000020 */
  13906. #define RCC_AHB3RSTR_JPGDECRST RCC_AHB3RSTR_JPGDECRST_Msk
  13907. #define RCC_AHB3RSTR_FMCRST_Pos (12U)
  13908. #define RCC_AHB3RSTR_FMCRST_Msk (0x1U << RCC_AHB3RSTR_FMCRST_Pos) /*!< 0x00001000 */
  13909. #define RCC_AHB3RSTR_FMCRST RCC_AHB3RSTR_FMCRST_Msk
  13910. #define RCC_AHB3RSTR_QSPIRST_Pos (14U)
  13911. #define RCC_AHB3RSTR_QSPIRST_Msk (0x1U << RCC_AHB3RSTR_QSPIRST_Pos) /*!< 0x00004000 */
  13912. #define RCC_AHB3RSTR_QSPIRST RCC_AHB3RSTR_QSPIRST_Msk
  13913. #define RCC_AHB3RSTR_SDMMC1RST_Pos (16U)
  13914. #define RCC_AHB3RSTR_SDMMC1RST_Msk (0x1U << RCC_AHB3RSTR_SDMMC1RST_Pos) /*!< 0x00010000 */
  13915. #define RCC_AHB3RSTR_SDMMC1RST RCC_AHB3RSTR_SDMMC1RST_Msk
  13916. #define RCC_AHB3RSTR_CPURST_Pos (31U)
  13917. #define RCC_AHB3RSTR_CPURST_Msk (0x1U << RCC_AHB3RSTR_CPURST_Pos) /*!< 0x80000000 */
  13918. #define RCC_AHB3RSTR_CPURST RCC_AHB3RSTR_CPURST_Msk
  13919. /******************** Bit definition for RCC_AHB1RSTR register ***************/
  13920. #define RCC_AHB1RSTR_DMA1RST_Pos (0U)
  13921. #define RCC_AHB1RSTR_DMA1RST_Msk (0x1U << RCC_AHB1RSTR_DMA1RST_Pos) /*!< 0x00000001 */
  13922. #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk
  13923. #define RCC_AHB1RSTR_DMA2RST_Pos (1U)
  13924. #define RCC_AHB1RSTR_DMA2RST_Msk (0x1U << RCC_AHB1RSTR_DMA2RST_Pos) /*!< 0x00000002 */
  13925. #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk
  13926. #define RCC_AHB1RSTR_ADC12RST_Pos (5U)
  13927. #define RCC_AHB1RSTR_ADC12RST_Msk (0x1U << RCC_AHB1RSTR_ADC12RST_Pos) /*!< 0x00000020 */
  13928. #define RCC_AHB1RSTR_ADC12RST RCC_AHB1RSTR_ADC12RST_Msk
  13929. #define RCC_AHB1RSTR_ETH1MACRST_Pos (15U)
  13930. #define RCC_AHB1RSTR_ETH1MACRST_Msk (0x1U << RCC_AHB1RSTR_ETH1MACRST_Pos) /*!< 0x00008000 */
  13931. #define RCC_AHB1RSTR_ETH1MACRST RCC_AHB1RSTR_ETH1MACRST_Msk
  13932. #define RCC_AHB1RSTR_USB1OTGHSRST_Pos (25U)
  13933. #define RCC_AHB1RSTR_USB1OTGHSRST_Msk (0x1U << RCC_AHB1RSTR_USB1OTGHSRST_Pos) /*!< 0x02000000 */
  13934. #define RCC_AHB1RSTR_USB1OTGHSRST RCC_AHB1RSTR_USB1OTGHSRST_Msk
  13935. #define RCC_AHB1RSTR_USB2OTGHSRST_Pos (27U)
  13936. #define RCC_AHB1RSTR_USB2OTGHSRST_Msk (0x1U << RCC_AHB1RSTR_USB2OTGHSRST_Pos) /*!< 0x08000000 */
  13937. #define RCC_AHB1RSTR_USB2OTGHSRST RCC_AHB1RSTR_USB2OTGHSRST_Msk
  13938. /******************** Bit definition for RCC_AHB2RSTR register ***************/
  13939. #define RCC_AHB2RSTR_DCMIRST_Pos (0U)
  13940. #define RCC_AHB2RSTR_DCMIRST_Msk (0x1U << RCC_AHB2RSTR_DCMIRST_Pos) /*!< 0x00000001 */
  13941. #define RCC_AHB2RSTR_DCMIRST RCC_AHB2RSTR_DCMIRST_Msk
  13942. #define RCC_AHB2RSTR_CRYPRST_Pos (4U)
  13943. #define RCC_AHB2RSTR_CRYPRST_Msk (0x1U << RCC_AHB2RSTR_CRYPRST_Pos) /*!< 0x00000010 */
  13944. #define RCC_AHB2RSTR_CRYPRST RCC_AHB2RSTR_CRYPRST_Msk
  13945. #define RCC_AHB2RSTR_HASHRST_Pos (5U)
  13946. #define RCC_AHB2RSTR_HASHRST_Msk (0x1U << RCC_AHB2RSTR_HASHRST_Pos) /*!< 0x00000020 */
  13947. #define RCC_AHB2RSTR_HASHRST RCC_AHB2RSTR_HASHRST_Msk
  13948. #define RCC_AHB2RSTR_RNGRST_Pos (6U)
  13949. #define RCC_AHB2RSTR_RNGRST_Msk (0x1U << RCC_AHB2RSTR_RNGRST_Pos) /*!< 0x00000040 */
  13950. #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk
  13951. #define RCC_AHB2RSTR_SDMMC2RST_Pos (9U)
  13952. #define RCC_AHB2RSTR_SDMMC2RST_Msk (0x1U << RCC_AHB2RSTR_SDMMC2RST_Pos) /*!< 0x00000200 */
  13953. #define RCC_AHB2RSTR_SDMMC2RST RCC_AHB2RSTR_SDMMC2RST_Msk
  13954. /******************** Bit definition for RCC_AHB4RSTR register ******************/
  13955. #define RCC_AHB4RSTR_GPIOARST_Pos (0U)
  13956. #define RCC_AHB4RSTR_GPIOARST_Msk (0x1U << RCC_AHB4RSTR_GPIOARST_Pos) /*!< 0x00000001 */
  13957. #define RCC_AHB4RSTR_GPIOARST RCC_AHB4RSTR_GPIOARST_Msk
  13958. #define RCC_AHB4RSTR_GPIOBRST_Pos (1U)
  13959. #define RCC_AHB4RSTR_GPIOBRST_Msk (0x1U << RCC_AHB4RSTR_GPIOBRST_Pos) /*!< 0x00000002 */
  13960. #define RCC_AHB4RSTR_GPIOBRST RCC_AHB4RSTR_GPIOBRST_Msk
  13961. #define RCC_AHB4RSTR_GPIOCRST_Pos (2U)
  13962. #define RCC_AHB4RSTR_GPIOCRST_Msk (0x1U << RCC_AHB4RSTR_GPIOCRST_Pos) /*!< 0x00000004 */
  13963. #define RCC_AHB4RSTR_GPIOCRST RCC_AHB4RSTR_GPIOCRST_Msk
  13964. #define RCC_AHB4RSTR_GPIODRST_Pos (3U)
  13965. #define RCC_AHB4RSTR_GPIODRST_Msk (0x1U << RCC_AHB4RSTR_GPIODRST_Pos) /*!< 0x00000008 */
  13966. #define RCC_AHB4RSTR_GPIODRST RCC_AHB4RSTR_GPIODRST_Msk
  13967. #define RCC_AHB4RSTR_GPIOERST_Pos (4U)
  13968. #define RCC_AHB4RSTR_GPIOERST_Msk (0x1U << RCC_AHB4RSTR_GPIOERST_Pos) /*!< 0x00000010 */
  13969. #define RCC_AHB4RSTR_GPIOERST RCC_AHB4RSTR_GPIOERST_Msk
  13970. #define RCC_AHB4RSTR_GPIOFRST_Pos (5U)
  13971. #define RCC_AHB4RSTR_GPIOFRST_Msk (0x1U << RCC_AHB4RSTR_GPIOFRST_Pos) /*!< 0x00000020 */
  13972. #define RCC_AHB4RSTR_GPIOFRST RCC_AHB4RSTR_GPIOFRST_Msk
  13973. #define RCC_AHB4RSTR_GPIOGRST_Pos (6U)
  13974. #define RCC_AHB4RSTR_GPIOGRST_Msk (0x1U << RCC_AHB4RSTR_GPIOGRST_Pos) /*!< 0x00000040 */
  13975. #define RCC_AHB4RSTR_GPIOGRST RCC_AHB4RSTR_GPIOGRST_Msk
  13976. #define RCC_AHB4RSTR_GPIOHRST_Pos (7U)
  13977. #define RCC_AHB4RSTR_GPIOHRST_Msk (0x1U << RCC_AHB4RSTR_GPIOHRST_Pos) /*!< 0x00000080 */
  13978. #define RCC_AHB4RSTR_GPIOHRST RCC_AHB4RSTR_GPIOHRST_Msk
  13979. #define RCC_AHB4RSTR_GPIOIRST_Pos (8U)
  13980. #define RCC_AHB4RSTR_GPIOIRST_Msk (0x1U << RCC_AHB4RSTR_GPIOIRST_Pos) /*!< 0x00000100 */
  13981. #define RCC_AHB4RSTR_GPIOIRST RCC_AHB4RSTR_GPIOIRST_Msk
  13982. #define RCC_AHB4RSTR_GPIOJRST_Pos (9U)
  13983. #define RCC_AHB4RSTR_GPIOJRST_Msk (0x1U << RCC_AHB4RSTR_GPIOJRST_Pos) /*!< 0x00000200 */
  13984. #define RCC_AHB4RSTR_GPIOJRST RCC_AHB4RSTR_GPIOJRST_Msk
  13985. #define RCC_AHB4RSTR_GPIOKRST_Pos (10U)
  13986. #define RCC_AHB4RSTR_GPIOKRST_Msk (0x1U << RCC_AHB4RSTR_GPIOKRST_Pos) /*!< 0x00000400 */
  13987. #define RCC_AHB4RSTR_GPIOKRST RCC_AHB4RSTR_GPIOKRST_Msk
  13988. #define RCC_AHB4RSTR_CRCRST_Pos (19U)
  13989. #define RCC_AHB4RSTR_CRCRST_Msk (0x1U << RCC_AHB4RSTR_CRCRST_Pos) /*!< 0x00080000 */
  13990. #define RCC_AHB4RSTR_CRCRST RCC_AHB4RSTR_CRCRST_Msk
  13991. #define RCC_AHB4RSTR_BDMARST_Pos (21U)
  13992. #define RCC_AHB4RSTR_BDMARST_Msk (0x1U << RCC_AHB4RSTR_BDMARST_Pos) /*!< 0x00200000 */
  13993. #define RCC_AHB4RSTR_BDMARST RCC_AHB4RSTR_BDMARST_Msk
  13994. #define RCC_AHB4RSTR_ADC3RST_Pos (24U)
  13995. #define RCC_AHB4RSTR_ADC3RST_Msk (0x1U << RCC_AHB4RSTR_ADC3RST_Pos) /*!< 0x01000000 */
  13996. #define RCC_AHB4RSTR_ADC3RST RCC_AHB4RSTR_ADC3RST_Msk
  13997. #define RCC_AHB4RSTR_HSEMRST_Pos (25U)
  13998. #define RCC_AHB4RSTR_HSEMRST_Msk (0x1U << RCC_AHB4RSTR_HSEMRST_Pos) /*!< 0x02000000 */
  13999. #define RCC_AHB4RSTR_HSEMRST RCC_AHB4RSTR_HSEMRST_Msk
  14000. /******************** Bit definition for RCC_APB3RSTR register ******************/
  14001. #define RCC_APB3RSTR_LTDCRST_Pos (3U)
  14002. #define RCC_APB3RSTR_LTDCRST_Msk (0x1U << RCC_APB3RSTR_LTDCRST_Pos) /*!< 0x00000008 */
  14003. #define RCC_APB3RSTR_LTDCRST RCC_APB3RSTR_LTDCRST_Msk
  14004. /******************** Bit definition for RCC_APB1LRSTR register ******************/
  14005. #define RCC_APB1LRSTR_TIM2RST_Pos (0U)
  14006. #define RCC_APB1LRSTR_TIM2RST_Msk (0x1U << RCC_APB1LRSTR_TIM2RST_Pos) /*!< 0x00000001 */
  14007. #define RCC_APB1LRSTR_TIM2RST RCC_APB1LRSTR_TIM2RST_Msk
  14008. #define RCC_APB1LRSTR_TIM3RST_Pos (1U)
  14009. #define RCC_APB1LRSTR_TIM3RST_Msk (0x1U << RCC_APB1LRSTR_TIM3RST_Pos) /*!< 0x00000002 */
  14010. #define RCC_APB1LRSTR_TIM3RST RCC_APB1LRSTR_TIM3RST_Msk
  14011. #define RCC_APB1LRSTR_TIM4RST_Pos (2U)
  14012. #define RCC_APB1LRSTR_TIM4RST_Msk (0x1U << RCC_APB1LRSTR_TIM4RST_Pos) /*!< 0x00000004 */
  14013. #define RCC_APB1LRSTR_TIM4RST RCC_APB1LRSTR_TIM4RST_Msk
  14014. #define RCC_APB1LRSTR_TIM5RST_Pos (3U)
  14015. #define RCC_APB1LRSTR_TIM5RST_Msk (0x1U << RCC_APB1LRSTR_TIM5RST_Pos) /*!< 0x00000008 */
  14016. #define RCC_APB1LRSTR_TIM5RST RCC_APB1LRSTR_TIM5RST_Msk
  14017. #define RCC_APB1LRSTR_TIM6RST_Pos (4U)
  14018. #define RCC_APB1LRSTR_TIM6RST_Msk (0x1U << RCC_APB1LRSTR_TIM6RST_Pos) /*!< 0x00000010 */
  14019. #define RCC_APB1LRSTR_TIM6RST RCC_APB1LRSTR_TIM6RST_Msk
  14020. #define RCC_APB1LRSTR_TIM7RST_Pos (5U)
  14021. #define RCC_APB1LRSTR_TIM7RST_Msk (0x1U << RCC_APB1LRSTR_TIM7RST_Pos) /*!< 0x00000020 */
  14022. #define RCC_APB1LRSTR_TIM7RST RCC_APB1LRSTR_TIM7RST_Msk
  14023. #define RCC_APB1LRSTR_TIM12RST_Pos (6U)
  14024. #define RCC_APB1LRSTR_TIM12RST_Msk (0x1U << RCC_APB1LRSTR_TIM12RST_Pos) /*!< 0x00000040 */
  14025. #define RCC_APB1LRSTR_TIM12RST RCC_APB1LRSTR_TIM12RST_Msk
  14026. #define RCC_APB1LRSTR_TIM13RST_Pos (7U)
  14027. #define RCC_APB1LRSTR_TIM13RST_Msk (0x1U << RCC_APB1LRSTR_TIM13RST_Pos) /*!< 0x00000080 */
  14028. #define RCC_APB1LRSTR_TIM13RST RCC_APB1LRSTR_TIM13RST_Msk
  14029. #define RCC_APB1LRSTR_TIM14RST_Pos (8U)
  14030. #define RCC_APB1LRSTR_TIM14RST_Msk (0x1U << RCC_APB1LRSTR_TIM14RST_Pos) /*!< 0x00000100 */
  14031. #define RCC_APB1LRSTR_TIM14RST RCC_APB1LRSTR_TIM14RST_Msk
  14032. #define RCC_APB1LRSTR_LPTIM1RST_Pos (9U)
  14033. #define RCC_APB1LRSTR_LPTIM1RST_Msk (0x1U << RCC_APB1LRSTR_LPTIM1RST_Pos) /*!< 0x00000200 */
  14034. #define RCC_APB1LRSTR_LPTIM1RST RCC_APB1LRSTR_LPTIM1RST_Msk
  14035. #define RCC_APB1LRSTR_SPI2RST_Pos (14U)
  14036. #define RCC_APB1LRSTR_SPI2RST_Msk (0x1U << RCC_APB1LRSTR_SPI2RST_Pos) /*!< 0x00004000 */
  14037. #define RCC_APB1LRSTR_SPI2RST RCC_APB1LRSTR_SPI2RST_Msk
  14038. #define RCC_APB1LRSTR_SPI3RST_Pos (15U)
  14039. #define RCC_APB1LRSTR_SPI3RST_Msk (0x1U << RCC_APB1LRSTR_SPI3RST_Pos) /*!< 0x00008000 */
  14040. #define RCC_APB1LRSTR_SPI3RST RCC_APB1LRSTR_SPI3RST_Msk
  14041. #define RCC_APB1LRSTR_SPDIFRXRST_Pos (16U)
  14042. #define RCC_APB1LRSTR_SPDIFRXRST_Msk (0x1U << RCC_APB1LRSTR_SPDIFRXRST_Pos) /*!< 0x00010000 */
  14043. #define RCC_APB1LRSTR_SPDIFRXRST RCC_APB1LRSTR_SPDIFRXRST_Msk
  14044. #define RCC_APB1LRSTR_USART2RST_Pos (17U)
  14045. #define RCC_APB1LRSTR_USART2RST_Msk (0x1U << RCC_APB1LRSTR_USART2RST_Pos) /*!< 0x00020000 */
  14046. #define RCC_APB1LRSTR_USART2RST RCC_APB1LRSTR_USART2RST_Msk
  14047. #define RCC_APB1LRSTR_USART3RST_Pos (18U)
  14048. #define RCC_APB1LRSTR_USART3RST_Msk (0x1U << RCC_APB1LRSTR_USART3RST_Pos) /*!< 0x00040000 */
  14049. #define RCC_APB1LRSTR_USART3RST RCC_APB1LRSTR_USART3RST_Msk
  14050. #define RCC_APB1LRSTR_UART4RST_Pos (19U)
  14051. #define RCC_APB1LRSTR_UART4RST_Msk (0x1U << RCC_APB1LRSTR_UART4RST_Pos) /*!< 0x00080000 */
  14052. #define RCC_APB1LRSTR_UART4RST RCC_APB1LRSTR_UART4RST_Msk
  14053. #define RCC_APB1LRSTR_UART5RST_Pos (20U)
  14054. #define RCC_APB1LRSTR_UART5RST_Msk (0x1U << RCC_APB1LRSTR_UART5RST_Pos) /*!< 0x00100000 */
  14055. #define RCC_APB1LRSTR_UART5RST RCC_APB1LRSTR_UART5RST_Msk
  14056. #define RCC_APB1LRSTR_I2C1RST_Pos (21U)
  14057. #define RCC_APB1LRSTR_I2C1RST_Msk (0x1U << RCC_APB1LRSTR_I2C1RST_Pos) /*!< 0x00200000 */
  14058. #define RCC_APB1LRSTR_I2C1RST RCC_APB1LRSTR_I2C1RST_Msk
  14059. #define RCC_APB1LRSTR_I2C2RST_Pos (22U)
  14060. #define RCC_APB1LRSTR_I2C2RST_Msk (0x1U << RCC_APB1LRSTR_I2C2RST_Pos) /*!< 0x00400000 */
  14061. #define RCC_APB1LRSTR_I2C2RST RCC_APB1LRSTR_I2C2RST_Msk
  14062. #define RCC_APB1LRSTR_I2C3RST_Pos (23U)
  14063. #define RCC_APB1LRSTR_I2C3RST_Msk (0x1U << RCC_APB1LRSTR_I2C3RST_Pos) /*!< 0x00800000 */
  14064. #define RCC_APB1LRSTR_I2C3RST RCC_APB1LRSTR_I2C3RST_Msk
  14065. #define RCC_APB1LRSTR_CECRST_Pos (27U)
  14066. #define RCC_APB1LRSTR_CECRST_Msk (0x1U << RCC_APB1LRSTR_CECRST_Pos) /*!< 0x08000000 */
  14067. #define RCC_APB1LRSTR_CECRST RCC_APB1LRSTR_CECRST_Msk
  14068. #define RCC_APB1LRSTR_DAC12RST_Pos (29U)
  14069. #define RCC_APB1LRSTR_DAC12RST_Msk (0x1U << RCC_APB1LRSTR_DAC12RST_Pos) /*!< 0x20000000 */
  14070. #define RCC_APB1LRSTR_DAC12RST RCC_APB1LRSTR_DAC12RST_Msk
  14071. #define RCC_APB1LRSTR_UART7RST_Pos (30U)
  14072. #define RCC_APB1LRSTR_UART7RST_Msk (0x1U << RCC_APB1LRSTR_UART7RST_Pos) /*!< 0x40000000 */
  14073. #define RCC_APB1LRSTR_UART7RST RCC_APB1LRSTR_UART7RST_Msk
  14074. #define RCC_APB1LRSTR_UART8RST_Pos (31U)
  14075. #define RCC_APB1LRSTR_UART8RST_Msk (0x1U << RCC_APB1LRSTR_UART8RST_Pos) /*!< 0x80000000 */
  14076. #define RCC_APB1LRSTR_UART8RST RCC_APB1LRSTR_UART8RST_Msk
  14077. /******************** Bit definition for RCC_APB1HRSTR register ******************/
  14078. #define RCC_APB1HRSTR_CRSRST_Pos (1U)
  14079. #define RCC_APB1HRSTR_CRSRST_Msk (0x1U << RCC_APB1HRSTR_CRSRST_Pos) /*!< 0x00000002 */
  14080. #define RCC_APB1HRSTR_CRSRST RCC_APB1HRSTR_CRSRST_Msk
  14081. #define RCC_APB1HRSTR_SWPMIRST_Pos (2U)
  14082. #define RCC_APB1HRSTR_SWPMIRST_Msk (0x1U << RCC_APB1HRSTR_SWPMIRST_Pos) /*!< 0x00000004 */
  14083. #define RCC_APB1HRSTR_SWPMIRST RCC_APB1HRSTR_SWPMIRST_Msk
  14084. #define RCC_APB1HRSTR_OPAMPRST_Pos (4U)
  14085. #define RCC_APB1HRSTR_OPAMPRST_Msk (0x1U << RCC_APB1HRSTR_OPAMPRST_Pos) /*!< 0x00000010 */
  14086. #define RCC_APB1HRSTR_OPAMPRST RCC_APB1HRSTR_OPAMPRST_Msk
  14087. #define RCC_APB1HRSTR_MDIOSRST_Pos (5U)
  14088. #define RCC_APB1HRSTR_MDIOSRST_Msk (0x1U << RCC_APB1HRSTR_MDIOSRST_Pos) /*!< 0x00000020 */
  14089. #define RCC_APB1HRSTR_MDIOSRST RCC_APB1HRSTR_MDIOSRST_Msk
  14090. #define RCC_APB1HRSTR_FDCANRST_Pos (8U)
  14091. #define RCC_APB1HRSTR_FDCANRST_Msk (0x1U << RCC_APB1HRSTR_FDCANRST_Pos) /*!< 0x00000100 */
  14092. #define RCC_APB1HRSTR_FDCANRST RCC_APB1HRSTR_FDCANRST_Msk
  14093. /******************** Bit definition for RCC_APB2RSTR register ******************/
  14094. #define RCC_APB2RSTR_TIM1RST_Pos (0U)
  14095. #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000001 */
  14096. #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk
  14097. #define RCC_APB2RSTR_TIM8RST_Pos (1U)
  14098. #define RCC_APB2RSTR_TIM8RST_Msk (0x1U << RCC_APB2RSTR_TIM8RST_Pos) /*!< 0x00000002 */
  14099. #define RCC_APB2RSTR_TIM8RST RCC_APB2RSTR_TIM8RST_Msk
  14100. #define RCC_APB2RSTR_USART1RST_Pos (4U)
  14101. #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00000010 */
  14102. #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk
  14103. #define RCC_APB2RSTR_USART6RST_Pos (5U)
  14104. #define RCC_APB2RSTR_USART6RST_Msk (0x1U << RCC_APB2RSTR_USART6RST_Pos) /*!< 0x00000020 */
  14105. #define RCC_APB2RSTR_USART6RST RCC_APB2RSTR_USART6RST_Msk
  14106. #define RCC_APB2RSTR_SPI1RST_Pos (12U)
  14107. #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */
  14108. #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk
  14109. #define RCC_APB2RSTR_SPI4RST_Pos (13U)
  14110. #define RCC_APB2RSTR_SPI4RST_Msk (0x1U << RCC_APB2RSTR_SPI4RST_Pos) /*!< 0x00002000 */
  14111. #define RCC_APB2RSTR_SPI4RST RCC_APB2RSTR_SPI4RST_Msk
  14112. #define RCC_APB2RSTR_TIM15RST_Pos (16U)
  14113. #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */
  14114. #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk
  14115. #define RCC_APB2RSTR_TIM16RST_Pos (17U)
  14116. #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */
  14117. #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk
  14118. #define RCC_APB2RSTR_TIM17RST_Pos (18U)
  14119. #define RCC_APB2RSTR_TIM17RST_Msk (0x1U << RCC_APB2RSTR_TIM17RST_Pos) /*!< 0x00040000 */
  14120. #define RCC_APB2RSTR_TIM17RST RCC_APB2RSTR_TIM17RST_Msk
  14121. #define RCC_APB2RSTR_SPI5RST_Pos (20U)
  14122. #define RCC_APB2RSTR_SPI5RST_Msk (0x1U << RCC_APB2RSTR_SPI5RST_Pos) /*!< 0x00100000 */
  14123. #define RCC_APB2RSTR_SPI5RST RCC_APB2RSTR_SPI5RST_Msk
  14124. #define RCC_APB2RSTR_SAI1RST_Pos (22U)
  14125. #define RCC_APB2RSTR_SAI1RST_Msk (0x1U << RCC_APB2RSTR_SAI1RST_Pos) /*!< 0x00400000 */
  14126. #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk
  14127. #define RCC_APB2RSTR_SAI2RST_Pos (23U)
  14128. #define RCC_APB2RSTR_SAI2RST_Msk (0x1U << RCC_APB2RSTR_SAI2RST_Pos) /*!< 0x00800000 */
  14129. #define RCC_APB2RSTR_SAI2RST RCC_APB2RSTR_SAI2RST_Msk
  14130. #define RCC_APB2RSTR_SAI3RST_Pos (24U)
  14131. #define RCC_APB2RSTR_SAI3RST_Msk (0x1U << RCC_APB2RSTR_SAI3RST_Pos) /*!< 0x01000000 */
  14132. #define RCC_APB2RSTR_SAI3RST RCC_APB2RSTR_SAI3RST_Msk
  14133. #define RCC_APB2RSTR_DFSDM1RST_Pos (28U)
  14134. #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1U << RCC_APB2RSTR_DFSDM1RST_Pos) /*!< 0x10000000 */
  14135. #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk
  14136. #define RCC_APB2RSTR_HRTIMRST_Pos (29U)
  14137. #define RCC_APB2RSTR_HRTIMRST_Msk (0x1U << RCC_APB2RSTR_HRTIMRST_Pos) /*!< 0x20000000 */
  14138. #define RCC_APB2RSTR_HRTIMRST RCC_APB2RSTR_HRTIMRST_Msk
  14139. /******************** Bit definition for RCC_APB4RSTR register ******************/
  14140. #define RCC_APB4RSTR_SYSCFGRST_Pos (1U)
  14141. #define RCC_APB4RSTR_SYSCFGRST_Msk (0x1U << RCC_APB4RSTR_SYSCFGRST_Pos) /*!< 0x00000002 */
  14142. #define RCC_APB4RSTR_SYSCFGRST RCC_APB4RSTR_SYSCFGRST_Msk
  14143. #define RCC_APB4RSTR_LPUART1RST_Pos (3U)
  14144. #define RCC_APB4RSTR_LPUART1RST_Msk (0x1U << RCC_APB4RSTR_LPUART1RST_Pos) /*!< 0x00000008 */
  14145. #define RCC_APB4RSTR_LPUART1RST RCC_APB4RSTR_LPUART1RST_Msk
  14146. #define RCC_APB4RSTR_SPI6RST_Pos (5U)
  14147. #define RCC_APB4RSTR_SPI6RST_Msk (0x1U << RCC_APB4RSTR_SPI6RST_Pos) /*!< 0x00000020 */
  14148. #define RCC_APB4RSTR_SPI6RST RCC_APB4RSTR_SPI6RST_Msk
  14149. #define RCC_APB4RSTR_I2C4RST_Pos (7U)
  14150. #define RCC_APB4RSTR_I2C4RST_Msk (0x1U << RCC_APB4RSTR_I2C4RST_Pos) /*!< 0x00000080 */
  14151. #define RCC_APB4RSTR_I2C4RST RCC_APB4RSTR_I2C4RST_Msk
  14152. #define RCC_APB4RSTR_LPTIM2RST_Pos (9U)
  14153. #define RCC_APB4RSTR_LPTIM2RST_Msk (0x1U << RCC_APB4RSTR_LPTIM2RST_Pos) /*!< 0x00000200 */
  14154. #define RCC_APB4RSTR_LPTIM2RST RCC_APB4RSTR_LPTIM2RST_Msk
  14155. #define RCC_APB4RSTR_LPTIM3RST_Pos (10U)
  14156. #define RCC_APB4RSTR_LPTIM3RST_Msk (0x1U << RCC_APB4RSTR_LPTIM3RST_Pos) /*!< 0x00000400 */
  14157. #define RCC_APB4RSTR_LPTIM3RST RCC_APB4RSTR_LPTIM3RST_Msk
  14158. #define RCC_APB4RSTR_LPTIM4RST_Pos (11U)
  14159. #define RCC_APB4RSTR_LPTIM4RST_Msk (0x1U << RCC_APB4RSTR_LPTIM4RST_Pos) /*!< 0x00000800 */
  14160. #define RCC_APB4RSTR_LPTIM4RST RCC_APB4RSTR_LPTIM4RST_Msk
  14161. #define RCC_APB4RSTR_LPTIM5RST_Pos (12U)
  14162. #define RCC_APB4RSTR_LPTIM5RST_Msk (0x1U << RCC_APB4RSTR_LPTIM5RST_Pos) /*!< 0x00001000 */
  14163. #define RCC_APB4RSTR_LPTIM5RST RCC_APB4RSTR_LPTIM5RST_Msk
  14164. #define RCC_APB4RSTR_COMP12RST_Pos (14U)
  14165. #define RCC_APB4RSTR_COMP12RST_Msk (0x1U << RCC_APB4RSTR_COMP12RST_Pos) /*!< 0x00004000 */
  14166. #define RCC_APB4RSTR_COMP12RST RCC_APB4RSTR_COMP12RST_Msk
  14167. #define RCC_APB4RSTR_VREFRST_Pos (15U)
  14168. #define RCC_APB4RSTR_VREFRST_Msk (0x1U << RCC_APB4RSTR_VREFRST_Pos) /*!< 0x00008000 */
  14169. #define RCC_APB4RSTR_VREFRST RCC_APB4RSTR_VREFRST_Msk
  14170. #define RCC_APB4RSTR_SAI4RST_Pos (21U)
  14171. #define RCC_APB4RSTR_SAI4RST_Msk (0x1U << RCC_APB4RSTR_SAI4RST_Pos) /*!< 0x00200000 */
  14172. #define RCC_APB4RSTR_SAI4RST RCC_APB4RSTR_SAI4RST_Msk
  14173. /******************** Bit definition for RCC_GCR register ********************/
  14174. #define RCC_GCR_WW1RSC_Pos (0U)
  14175. #define RCC_GCR_WW1RSC_Msk (0x1U << RCC_GCR_WW1RSC_Pos) /*!< 0x00000001 */
  14176. #define RCC_GCR_WW1RSC RCC_GCR_WW1RSC_Msk
  14177. /******************** Bit definition for RCC_D3AMR register ********************/
  14178. #define RCC_D3AMR_BDMAAMEN_Pos (0U)
  14179. #define RCC_D3AMR_BDMAAMEN_Msk (0x1U << RCC_D3AMR_BDMAAMEN_Pos) /*!< 0x00000001 */
  14180. #define RCC_D3AMR_BDMAAMEN RCC_D3AMR_BDMAAMEN_Msk
  14181. #define RCC_D3AMR_LPUART1AMEN_Pos (3U)
  14182. #define RCC_D3AMR_LPUART1AMEN_Msk (0x1U << RCC_D3AMR_LPUART1AMEN_Pos) /*!< 0x00000008 */
  14183. #define RCC_D3AMR_LPUART1AMEN RCC_D3AMR_LPUART1AMEN_Msk
  14184. #define RCC_D3AMR_SPI6AMEN_Pos (5U)
  14185. #define RCC_D3AMR_SPI6AMEN_Msk (0x1U << RCC_D3AMR_SPI6AMEN_Pos) /*!< 0x00000020 */
  14186. #define RCC_D3AMR_SPI6AMEN RCC_D3AMR_SPI6AMEN_Msk
  14187. #define RCC_D3AMR_I2C4AMEN_Pos (7U)
  14188. #define RCC_D3AMR_I2C4AMEN_Msk (0x1U << RCC_D3AMR_I2C4AMEN_Pos) /*!< 0x00000080 */
  14189. #define RCC_D3AMR_I2C4AMEN RCC_D3AMR_I2C4AMEN_Msk
  14190. #define RCC_D3AMR_LPTIM2AMEN_Pos (9U)
  14191. #define RCC_D3AMR_LPTIM2AMEN_Msk (0x1U << RCC_D3AMR_LPTIM2AMEN_Pos) /*!< 0x00000200 */
  14192. #define RCC_D3AMR_LPTIM2AMEN RCC_D3AMR_LPTIM2AMEN_Msk
  14193. #define RCC_D3AMR_LPTIM3AMEN_Pos (10U)
  14194. #define RCC_D3AMR_LPTIM3AMEN_Msk (0x1U << RCC_D3AMR_LPTIM3AMEN_Pos) /*!< 0x00000400 */
  14195. #define RCC_D3AMR_LPTIM3AMEN RCC_D3AMR_LPTIM3AMEN_Msk
  14196. #define RCC_D3AMR_LPTIM4AMEN_Pos (11U)
  14197. #define RCC_D3AMR_LPTIM4AMEN_Msk (0x1U << RCC_D3AMR_LPTIM4AMEN_Pos) /*!< 0x00000800 */
  14198. #define RCC_D3AMR_LPTIM4AMEN RCC_D3AMR_LPTIM4AMEN_Msk
  14199. #define RCC_D3AMR_LPTIM5AMEN_Pos (12U)
  14200. #define RCC_D3AMR_LPTIM5AMEN_Msk (0x1U << RCC_D3AMR_LPTIM5AMEN_Pos) /*!< 0x00001000 */
  14201. #define RCC_D3AMR_LPTIM5AMEN RCC_D3AMR_LPTIM5AMEN_Msk
  14202. #define RCC_D3AMR_COMP12AMEN_Pos (14U)
  14203. #define RCC_D3AMR_COMP12AMEN_Msk (0x1U << RCC_D3AMR_COMP12AMEN_Pos) /*!< 0x00004000 */
  14204. #define RCC_D3AMR_COMP12AMEN RCC_D3AMR_COMP12AMEN_Msk
  14205. #define RCC_D3AMR_VREFAMEN_Pos (15U)
  14206. #define RCC_D3AMR_VREFAMEN_Msk (0x1U << RCC_D3AMR_VREFAMEN_Pos) /*!< 0x00008000 */
  14207. #define RCC_D3AMR_VREFAMEN RCC_D3AMR_VREFAMEN_Msk
  14208. #define RCC_D3AMR_RTCAMEN_Pos (16U)
  14209. #define RCC_D3AMR_RTCAMEN_Msk (0x1U << RCC_D3AMR_RTCAMEN_Pos) /*!< 0x00010000 */
  14210. #define RCC_D3AMR_RTCAMEN RCC_D3AMR_RTCAMEN_Msk
  14211. #define RCC_D3AMR_CRCAMEN_Pos (19U)
  14212. #define RCC_D3AMR_CRCAMEN_Msk (0x1U << RCC_D3AMR_CRCAMEN_Pos) /*!< 0x00080000 */
  14213. #define RCC_D3AMR_CRCAMEN RCC_D3AMR_CRCAMEN_Msk
  14214. #define RCC_D3AMR_SAI4AMEN_Pos (21U)
  14215. #define RCC_D3AMR_SAI4AMEN_Msk (0x1U << RCC_D3AMR_SAI4AMEN_Pos) /*!< 0x00200000 */
  14216. #define RCC_D3AMR_SAI4AMEN RCC_D3AMR_SAI4AMEN_Msk
  14217. #define RCC_D3AMR_ADC3AMEN_Pos (24U)
  14218. #define RCC_D3AMR_ADC3AMEN_Msk (0x1U << RCC_D3AMR_ADC3AMEN_Pos) /*!< 0x01000000 */
  14219. #define RCC_D3AMR_ADC3AMEN RCC_D3AMR_ADC3AMEN_Msk
  14220. #define RCC_D3AMR_BKPRAMAMEN_Pos (28U)
  14221. #define RCC_D3AMR_BKPRAMAMEN_Msk (0x1U << RCC_D3AMR_BKPRAMAMEN_Pos) /*!< 0x10000000 */
  14222. #define RCC_D3AMR_BKPRAMAMEN RCC_D3AMR_BKPRAMAMEN_Msk
  14223. #define RCC_D3AMR_SRAM4AMEN_Pos (29U)
  14224. #define RCC_D3AMR_SRAM4AMEN_Msk (0x1U << RCC_D3AMR_SRAM4AMEN_Pos) /*!< 0x20000000 */
  14225. #define RCC_D3AMR_SRAM4AMEN RCC_D3AMR_SRAM4AMEN_Msk
  14226. /******************** Bit definition for RCC_AHB3LPENR register **************/
  14227. #define RCC_AHB3LPENR_MDMALPEN_Pos (0U)
  14228. #define RCC_AHB3LPENR_MDMALPEN_Msk (0x1U << RCC_AHB3LPENR_MDMALPEN_Pos) /*!< 0x00000001 */
  14229. #define RCC_AHB3LPENR_MDMALPEN RCC_AHB3LPENR_MDMALPEN_Msk
  14230. #define RCC_AHB3LPENR_DMA2DLPEN_Pos (4U)
  14231. #define RCC_AHB3LPENR_DMA2DLPEN_Msk (0x1U << RCC_AHB3LPENR_DMA2DLPEN_Pos) /*!< 0x00000010 */
  14232. #define RCC_AHB3LPENR_DMA2DLPEN RCC_AHB3LPENR_DMA2DLPEN_Msk
  14233. #define RCC_AHB3LPENR_JPGDECLPEN_Pos (5U)
  14234. #define RCC_AHB3LPENR_JPGDECLPEN_Msk (0x1U << RCC_AHB3LPENR_JPGDECLPEN_Pos) /*!< 0x00000020 */
  14235. #define RCC_AHB3LPENR_JPGDECLPEN RCC_AHB3LPENR_JPGDECLPEN_Msk
  14236. #define RCC_AHB3LPENR_FLASHLPEN_Pos (8U)
  14237. #define RCC_AHB3LPENR_FLASHLPEN_Msk (0x1U << RCC_AHB3LPENR_FLASHLPEN_Pos) /*!< 0x00000100 */
  14238. #define RCC_AHB3LPENR_FLASHLPEN RCC_AHB3LPENR_FLASHLPEN_Msk
  14239. #define RCC_AHB3LPENR_FMCLPEN_Pos (12U)
  14240. #define RCC_AHB3LPENR_FMCLPEN_Msk (0x1U << RCC_AHB3LPENR_FMCLPEN_Pos) /*!< 0x00001000 */
  14241. #define RCC_AHB3LPENR_FMCLPEN RCC_AHB3LPENR_FMCLPEN_Msk
  14242. #define RCC_AHB3LPENR_QSPILPEN_Pos (14U)
  14243. #define RCC_AHB3LPENR_QSPILPEN_Msk (0x1U << RCC_AHB3LPENR_QSPILPEN_Pos) /*!< 0x00004000 */
  14244. #define RCC_AHB3LPENR_QSPILPEN RCC_AHB3LPENR_QSPILPEN_Msk
  14245. #define RCC_AHB3LPENR_SDMMC1LPEN_Pos (16U)
  14246. #define RCC_AHB3LPENR_SDMMC1LPEN_Msk (0x1U << RCC_AHB3LPENR_SDMMC1LPEN_Pos) /*!< 0x00010000 */
  14247. #define RCC_AHB3LPENR_SDMMC1LPEN RCC_AHB3LPENR_SDMMC1LPEN_Msk
  14248. #define RCC_AHB3LPENR_DTCM1LPEN_Pos (28U)
  14249. #define RCC_AHB3LPENR_DTCM1LPEN_Msk (0x1U << RCC_AHB3LPENR_DTCM1LPEN_Pos) /*!< 0x10000000 */
  14250. #define RCC_AHB3LPENR_DTCM1LPEN RCC_AHB3LPENR_DTCM1LPEN_Msk
  14251. #define RCC_AHB3LPENR_DTCM2LPEN_Pos (29U)
  14252. #define RCC_AHB3LPENR_DTCM2LPEN_Msk (0x1U << RCC_AHB3LPENR_DTCM2LPEN_Pos) /*!< 0x20000000 */
  14253. #define RCC_AHB3LPENR_DTCM2LPEN RCC_AHB3LPENR_DTCM2LPEN_Msk
  14254. #define RCC_AHB3LPENR_ITCMLPEN_Pos (30U)
  14255. #define RCC_AHB3LPENR_ITCMLPEN_Msk (0x1U << RCC_AHB3LPENR_ITCMLPEN_Pos) /*!< 0x40000000 */
  14256. #define RCC_AHB3LPENR_ITCMLPEN RCC_AHB3LPENR_ITCMLPEN_Msk
  14257. #define RCC_AHB3LPENR_AXISRAMLPEN_Pos (31U)
  14258. #define RCC_AHB3LPENR_AXISRAMLPEN_Msk (0x1U << RCC_AHB3LPENR_AXISRAMLPEN_Pos) /*!< 0x80000000 */
  14259. #define RCC_AHB3LPENR_AXISRAMLPEN RCC_AHB3LPENR_AXISRAMLPEN_Msk
  14260. /******************** Bit definition for RCC_AHB1LPENR register ***************/
  14261. #define RCC_AHB1LPENR_DMA1LPEN_Pos (0U)
  14262. #define RCC_AHB1LPENR_DMA1LPEN_Msk (0x1U << RCC_AHB1LPENR_DMA1LPEN_Pos) /*!< 0x00000001 */
  14263. #define RCC_AHB1LPENR_DMA1LPEN RCC_AHB1LPENR_DMA1LPEN_Msk
  14264. #define RCC_AHB1LPENR_DMA2LPEN_Pos (1U)
  14265. #define RCC_AHB1LPENR_DMA2LPEN_Msk (0x1U << RCC_AHB1LPENR_DMA2LPEN_Pos) /*!< 0x00000002 */
  14266. #define RCC_AHB1LPENR_DMA2LPEN RCC_AHB1LPENR_DMA2LPEN_Msk
  14267. #define RCC_AHB1LPENR_ADC12LPEN_Pos (5U)
  14268. #define RCC_AHB1LPENR_ADC12LPEN_Msk (0x1U << RCC_AHB1LPENR_ADC12LPEN_Pos) /*!< 0x00000020 */
  14269. #define RCC_AHB1LPENR_ADC12LPEN RCC_AHB1LPENR_ADC12LPEN_Msk
  14270. #define RCC_AHB1LPENR_ETH1MACLPEN_Pos (15U)
  14271. #define RCC_AHB1LPENR_ETH1MACLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1MACLPEN_Pos) /*!< 0x00008000 */
  14272. #define RCC_AHB1LPENR_ETH1MACLPEN RCC_AHB1LPENR_ETH1MACLPEN_Msk
  14273. #define RCC_AHB1LPENR_ETH1TXLPEN_Pos (16U)
  14274. #define RCC_AHB1LPENR_ETH1TXLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1TXLPEN_Pos) /*!< 0x00010000 */
  14275. #define RCC_AHB1LPENR_ETH1TXLPEN RCC_AHB1LPENR_ETH1TXLPEN_Msk
  14276. #define RCC_AHB1LPENR_ETH1RXLPEN_Pos (17U)
  14277. #define RCC_AHB1LPENR_ETH1RXLPEN_Msk (0x1U << RCC_AHB1LPENR_ETH1RXLPEN_Pos) /*!< 0x00020000 */
  14278. #define RCC_AHB1LPENR_ETH1RXLPEN RCC_AHB1LPENR_ETH1RXLPEN_Msk
  14279. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Pos (25U)
  14280. #define RCC_AHB1LPENR_USB1OTGHSLPEN_Msk (0x1U << RCC_AHB1LPENR_USB1OTGHSLPEN_Pos) /*!< 0x02000000 */
  14281. #define RCC_AHB1LPENR_USB1OTGHSLPEN RCC_AHB1LPENR_USB1OTGHSLPEN_Msk
  14282. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos (26U)
  14283. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk (0x1U << RCC_AHB1LPENR_USB1OTGHSULPILPEN_Pos) /*!< 0x04000000 */
  14284. #define RCC_AHB1LPENR_USB1OTGHSULPILPEN RCC_AHB1LPENR_USB1OTGHSULPILPEN_Msk
  14285. #define RCC_AHB1LPENR_USB2OTGHSLPEN_Pos (27U)
  14286. #define RCC_AHB1LPENR_USB2OTGHSLPEN_Msk (0x1U << RCC_AHB1LPENR_USB2OTGHSLPEN_Pos) /*!< 0x08000000 */
  14287. #define RCC_AHB1LPENR_USB2OTGHSLPEN RCC_AHB1LPENR_USB2OTGHSLPEN_Msk
  14288. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN_Pos (28U)
  14289. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN_Msk (0x1U << RCC_AHB1LPENR_USB2OTGHSULPILPEN_Pos) /*!< 0x10000000 */
  14290. #define RCC_AHB1LPENR_USB2OTGHSULPILPEN RCC_AHB1LPENR_USB2OTGHSULPILPEN_Msk
  14291. /******************** Bit definition for RCC_AHB2LPENR register ***************/
  14292. #define RCC_AHB2LPENR_DCMILPEN_Pos (0U)
  14293. #define RCC_AHB2LPENR_DCMILPEN_Msk (0x1U << RCC_AHB2LPENR_DCMILPEN_Pos) /*!< 0x00000001 */
  14294. #define RCC_AHB2LPENR_DCMILPEN RCC_AHB2LPENR_DCMILPEN_Msk
  14295. #define RCC_AHB2LPENR_CRYPLPEN_Pos (4U)
  14296. #define RCC_AHB2LPENR_CRYPLPEN_Msk (0x1U << RCC_AHB2LPENR_CRYPLPEN_Pos) /*!< 0x00000010 */
  14297. #define RCC_AHB2LPENR_CRYPLPEN RCC_AHB2LPENR_CRYPLPEN_Msk
  14298. #define RCC_AHB2LPENR_HASHLPEN_Pos (5U)
  14299. #define RCC_AHB2LPENR_HASHLPEN_Msk (0x1U << RCC_AHB2LPENR_HASHLPEN_Pos) /*!< 0x00000020 */
  14300. #define RCC_AHB2LPENR_HASHLPEN RCC_AHB2LPENR_HASHLPEN_Msk
  14301. #define RCC_AHB2LPENR_RNGLPEN_Pos (6U)
  14302. #define RCC_AHB2LPENR_RNGLPEN_Msk (0x1U << RCC_AHB2LPENR_RNGLPEN_Pos) /*!< 0x00000040 */
  14303. #define RCC_AHB2LPENR_RNGLPEN RCC_AHB2LPENR_RNGLPEN_Msk
  14304. #define RCC_AHB2LPENR_SDMMC2LPEN_Pos (9U)
  14305. #define RCC_AHB2LPENR_SDMMC2LPEN_Msk (0x1U << RCC_AHB2LPENR_SDMMC2LPEN_Pos) /*!< 0x00000200 */
  14306. #define RCC_AHB2LPENR_SDMMC2LPEN RCC_AHB2LPENR_SDMMC2LPEN_Msk
  14307. #define RCC_AHB2LPENR_D2SRAM1LPEN_Pos (30U)
  14308. #define RCC_AHB2LPENR_D2SRAM1LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM1LPEN_Pos) /*!< 0x40000000 */
  14309. #define RCC_AHB2LPENR_D2SRAM1LPEN RCC_AHB2LPENR_D2SRAM1LPEN_Msk
  14310. #define RCC_AHB2LPENR_D2SRAM2LPEN_Pos (30U)
  14311. #define RCC_AHB2LPENR_D2SRAM2LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM2LPEN_Pos) /*!< 0x40000000 */
  14312. #define RCC_AHB2LPENR_D2SRAM2LPEN RCC_AHB2LPENR_D2SRAM2LPEN_Msk
  14313. #define RCC_AHB2LPENR_D2SRAM3LPEN_Pos (31U)
  14314. #define RCC_AHB2LPENR_D2SRAM3LPEN_Msk (0x1U << RCC_AHB2LPENR_D2SRAM3LPEN_Pos) /*!< 0x80000000 */
  14315. #define RCC_AHB2LPENR_D2SRAM3LPEN RCC_AHB2LPENR_D2SRAM3LPEN_Msk
  14316. /******************** Bit definition for RCC_AHB4LPENR register ******************/
  14317. #define RCC_AHB4LPENR_GPIOALPEN_Pos (0U)
  14318. #define RCC_AHB4LPENR_GPIOALPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOALPEN_Pos) /*!< 0x00000001 */
  14319. #define RCC_AHB4LPENR_GPIOALPEN RCC_AHB4LPENR_GPIOALPEN_Msk
  14320. #define RCC_AHB4LPENR_GPIOBLPEN_Pos (1U)
  14321. #define RCC_AHB4LPENR_GPIOBLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOBLPEN_Pos) /*!< 0x00000002 */
  14322. #define RCC_AHB4LPENR_GPIOBLPEN RCC_AHB4LPENR_GPIOBLPEN_Msk
  14323. #define RCC_AHB4LPENR_GPIOCLPEN_Pos (2U)
  14324. #define RCC_AHB4LPENR_GPIOCLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOCLPEN_Pos) /*!< 0x00000004 */
  14325. #define RCC_AHB4LPENR_GPIOCLPEN RCC_AHB4LPENR_GPIOCLPEN_Msk
  14326. #define RCC_AHB4LPENR_GPIODLPEN_Pos (3U)
  14327. #define RCC_AHB4LPENR_GPIODLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIODLPEN_Pos) /*!< 0x00000008 */
  14328. #define RCC_AHB4LPENR_GPIODLPEN RCC_AHB4LPENR_GPIODLPEN_Msk
  14329. #define RCC_AHB4LPENR_GPIOELPEN_Pos (4U)
  14330. #define RCC_AHB4LPENR_GPIOELPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOELPEN_Pos) /*!< 0x00000010 */
  14331. #define RCC_AHB4LPENR_GPIOELPEN RCC_AHB4LPENR_GPIOELPEN_Msk
  14332. #define RCC_AHB4LPENR_GPIOFLPEN_Pos (5U)
  14333. #define RCC_AHB4LPENR_GPIOFLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOFLPEN_Pos) /*!< 0x00000020 */
  14334. #define RCC_AHB4LPENR_GPIOFLPEN RCC_AHB4LPENR_GPIOFLPEN_Msk
  14335. #define RCC_AHB4LPENR_GPIOGLPEN_Pos (6U)
  14336. #define RCC_AHB4LPENR_GPIOGLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOGLPEN_Pos) /*!< 0x00000040 */
  14337. #define RCC_AHB4LPENR_GPIOGLPEN RCC_AHB4LPENR_GPIOGLPEN_Msk
  14338. #define RCC_AHB4LPENR_GPIOHLPEN_Pos (7U)
  14339. #define RCC_AHB4LPENR_GPIOHLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOHLPEN_Pos) /*!< 0x00000080 */
  14340. #define RCC_AHB4LPENR_GPIOHLPEN RCC_AHB4LPENR_GPIOHLPEN_Msk
  14341. #define RCC_AHB4LPENR_GPIOILPEN_Pos (8U)
  14342. #define RCC_AHB4LPENR_GPIOILPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOILPEN_Pos) /*!< 0x00000100 */
  14343. #define RCC_AHB4LPENR_GPIOILPEN RCC_AHB4LPENR_GPIOILPEN_Msk
  14344. #define RCC_AHB4LPENR_GPIOJLPEN_Pos (9U)
  14345. #define RCC_AHB4LPENR_GPIOJLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOJLPEN_Pos) /*!< 0x00000200 */
  14346. #define RCC_AHB4LPENR_GPIOJLPEN RCC_AHB4LPENR_GPIOJLPEN_Msk
  14347. #define RCC_AHB4LPENR_GPIOKLPEN_Pos (10U)
  14348. #define RCC_AHB4LPENR_GPIOKLPEN_Msk (0x1U << RCC_AHB4LPENR_GPIOKLPEN_Pos) /*!< 0x00000400 */
  14349. #define RCC_AHB4LPENR_GPIOKLPEN RCC_AHB4LPENR_GPIOKLPEN_Msk
  14350. #define RCC_AHB4LPENR_CRCLPEN_Pos (19U)
  14351. #define RCC_AHB4LPENR_CRCLPEN_Msk (0x1U << RCC_AHB4LPENR_CRCLPEN_Pos) /*!< 0x00080000 */
  14352. #define RCC_AHB4LPENR_CRCLPEN RCC_AHB4LPENR_CRCLPEN_Msk
  14353. #define RCC_AHB4LPENR_BDMALPEN_Pos (21U)
  14354. #define RCC_AHB4LPENR_BDMALPEN_Msk (0x1U << RCC_AHB4LPENR_BDMALPEN_Pos) /*!< 0x00200000 */
  14355. #define RCC_AHB4LPENR_BDMALPEN RCC_AHB4LPENR_BDMALPEN_Msk
  14356. #define RCC_AHB4LPENR_ADC3LPEN_Pos (24U)
  14357. #define RCC_AHB4LPENR_ADC3LPEN_Msk (0x1U << RCC_AHB4LPENR_ADC3LPEN_Pos) /*!< 0x01000000 */
  14358. #define RCC_AHB4LPENR_ADC3LPEN RCC_AHB4LPENR_ADC3LPEN_Msk
  14359. #define RCC_AHB4LPENR_BKPRAMLPEN_Pos (28U)
  14360. #define RCC_AHB4LPENR_BKPRAMLPEN_Msk (0x1U << RCC_AHB4LPENR_BKPRAMLPEN_Pos) /*!< 0x10000000 */
  14361. #define RCC_AHB4LPENR_BKPRAMLPEN RCC_AHB4LPENR_BKPRAMLPEN_Msk
  14362. #define RCC_AHB4LPENR_D3SRAM1LPEN_Pos (29U)
  14363. #define RCC_AHB4LPENR_D3SRAM1LPEN_Msk (0x1U << RCC_AHB4LPENR_D3SRAM1LPEN_Pos) /*!< 0x20000000 */
  14364. #define RCC_AHB4LPENR_D3SRAM1LPEN RCC_AHB4LPENR_D3SRAM1LPEN_Msk
  14365. /******************** Bit definition for RCC_APB3LPENR register ******************/
  14366. #define RCC_APB3LPENR_LTDCLPEN_Pos (3U)
  14367. #define RCC_APB3LPENR_LTDCLPEN_Msk (0x1U << RCC_APB3LPENR_LTDCLPEN_Pos) /*!< 0x00000008 */
  14368. #define RCC_APB3LPENR_LTDCLPEN RCC_APB3LPENR_LTDCLPEN_Msk
  14369. #define RCC_APB3LPENR_WWDG1LPEN_Pos (6U)
  14370. #define RCC_APB3LPENR_WWDG1LPEN_Msk (0x1U << RCC_APB3LPENR_WWDG1LPEN_Pos) /*!< 0x00000040 */
  14371. #define RCC_APB3LPENR_WWDG1LPEN RCC_APB3LPENR_WWDG1LPEN_Msk
  14372. /******************** Bit definition for RCC_APB1LLPENR register ******************/
  14373. #define RCC_APB1LLPENR_TIM2LPEN_Pos (0U)
  14374. #define RCC_APB1LLPENR_TIM2LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM2LPEN_Pos) /*!< 0x00000001 */
  14375. #define RCC_APB1LLPENR_TIM2LPEN RCC_APB1LLPENR_TIM2LPEN_Msk
  14376. #define RCC_APB1LLPENR_TIM3LPEN_Pos (1U)
  14377. #define RCC_APB1LLPENR_TIM3LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM3LPEN_Pos) /*!< 0x00000002 */
  14378. #define RCC_APB1LLPENR_TIM3LPEN RCC_APB1LLPENR_TIM3LPEN_Msk
  14379. #define RCC_APB1LLPENR_TIM4LPEN_Pos (2U)
  14380. #define RCC_APB1LLPENR_TIM4LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM4LPEN_Pos) /*!< 0x00000004 */
  14381. #define RCC_APB1LLPENR_TIM4LPEN RCC_APB1LLPENR_TIM4LPEN_Msk
  14382. #define RCC_APB1LLPENR_TIM5LPEN_Pos (3U)
  14383. #define RCC_APB1LLPENR_TIM5LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM5LPEN_Pos) /*!< 0x00000008 */
  14384. #define RCC_APB1LLPENR_TIM5LPEN RCC_APB1LLPENR_TIM5LPEN_Msk
  14385. #define RCC_APB1LLPENR_TIM6LPEN_Pos (4U)
  14386. #define RCC_APB1LLPENR_TIM6LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM6LPEN_Pos) /*!< 0x00000010 */
  14387. #define RCC_APB1LLPENR_TIM6LPEN RCC_APB1LLPENR_TIM6LPEN_Msk
  14388. #define RCC_APB1LLPENR_TIM7LPEN_Pos (5U)
  14389. #define RCC_APB1LLPENR_TIM7LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM7LPEN_Pos) /*!< 0x00000020 */
  14390. #define RCC_APB1LLPENR_TIM7LPEN RCC_APB1LLPENR_TIM7LPEN_Msk
  14391. #define RCC_APB1LLPENR_TIM12LPEN_Pos (6U)
  14392. #define RCC_APB1LLPENR_TIM12LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM12LPEN_Pos) /*!< 0x00000040 */
  14393. #define RCC_APB1LLPENR_TIM12LPEN RCC_APB1LLPENR_TIM12LPEN_Msk
  14394. #define RCC_APB1LLPENR_TIM13LPEN_Pos (7U)
  14395. #define RCC_APB1LLPENR_TIM13LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM13LPEN_Pos) /*!< 0x00000080 */
  14396. #define RCC_APB1LLPENR_TIM13LPEN RCC_APB1LLPENR_TIM13LPEN_Msk
  14397. #define RCC_APB1LLPENR_TIM14LPEN_Pos (8U)
  14398. #define RCC_APB1LLPENR_TIM14LPEN_Msk (0x1U << RCC_APB1LLPENR_TIM14LPEN_Pos) /*!< 0x00000100 */
  14399. #define RCC_APB1LLPENR_TIM14LPEN RCC_APB1LLPENR_TIM14LPEN_Msk
  14400. #define RCC_APB1LLPENR_LPTIM1LPEN_Pos (9U)
  14401. #define RCC_APB1LLPENR_LPTIM1LPEN_Msk (0x1U << RCC_APB1LLPENR_LPTIM1LPEN_Pos) /*!< 0x00000200 */
  14402. #define RCC_APB1LLPENR_LPTIM1LPEN RCC_APB1LLPENR_LPTIM1LPEN_Msk
  14403. #define RCC_APB1LLPENR_SPI2LPEN_Pos (14U)
  14404. #define RCC_APB1LLPENR_SPI2LPEN_Msk (0x1U << RCC_APB1LLPENR_SPI2LPEN_Pos) /*!< 0x00004000 */
  14405. #define RCC_APB1LLPENR_SPI2LPEN RCC_APB1LLPENR_SPI2LPEN_Msk
  14406. #define RCC_APB1LLPENR_SPI3LPEN_Pos (15U)
  14407. #define RCC_APB1LLPENR_SPI3LPEN_Msk (0x1U << RCC_APB1LLPENR_SPI3LPEN_Pos) /*!< 0x00008000 */
  14408. #define RCC_APB1LLPENR_SPI3LPEN RCC_APB1LLPENR_SPI3LPEN_Msk
  14409. #define RCC_APB1LLPENR_SPDIFRXLPEN_Pos (16U)
  14410. #define RCC_APB1LLPENR_SPDIFRXLPEN_Msk (0x1U << RCC_APB1LLPENR_SPDIFRXLPEN_Pos) /*!< 0x00010000 */
  14411. #define RCC_APB1LLPENR_SPDIFRXLPEN RCC_APB1LLPENR_SPDIFRXLPEN_Msk
  14412. #define RCC_APB1LLPENR_USART2LPEN_Pos (17U)
  14413. #define RCC_APB1LLPENR_USART2LPEN_Msk (0x1U << RCC_APB1LLPENR_USART2LPEN_Pos) /*!< 0x00020000 */
  14414. #define RCC_APB1LLPENR_USART2LPEN RCC_APB1LLPENR_USART2LPEN_Msk
  14415. #define RCC_APB1LLPENR_USART3LPEN_Pos (18U)
  14416. #define RCC_APB1LLPENR_USART3LPEN_Msk (0x1U << RCC_APB1LLPENR_USART3LPEN_Pos) /*!< 0x00040000 */
  14417. #define RCC_APB1LLPENR_USART3LPEN RCC_APB1LLPENR_USART3LPEN_Msk
  14418. #define RCC_APB1LLPENR_UART4LPEN_Pos (19U)
  14419. #define RCC_APB1LLPENR_UART4LPEN_Msk (0x1U << RCC_APB1LLPENR_UART4LPEN_Pos) /*!< 0x00080000 */
  14420. #define RCC_APB1LLPENR_UART4LPEN RCC_APB1LLPENR_UART4LPEN_Msk
  14421. #define RCC_APB1LLPENR_UART5LPEN_Pos (20U)
  14422. #define RCC_APB1LLPENR_UART5LPEN_Msk (0x1U << RCC_APB1LLPENR_UART5LPEN_Pos) /*!< 0x00100000 */
  14423. #define RCC_APB1LLPENR_UART5LPEN RCC_APB1LLPENR_UART5LPEN_Msk
  14424. #define RCC_APB1LLPENR_I2C1LPEN_Pos (21U)
  14425. #define RCC_APB1LLPENR_I2C1LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C1LPEN_Pos) /*!< 0x00200000 */
  14426. #define RCC_APB1LLPENR_I2C1LPEN RCC_APB1LLPENR_I2C1LPEN_Msk
  14427. #define RCC_APB1LLPENR_I2C2LPEN_Pos (22U)
  14428. #define RCC_APB1LLPENR_I2C2LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C2LPEN_Pos) /*!< 0x00400000 */
  14429. #define RCC_APB1LLPENR_I2C2LPEN RCC_APB1LLPENR_I2C2LPEN_Msk
  14430. #define RCC_APB1LLPENR_I2C3LPEN_Pos (23U)
  14431. #define RCC_APB1LLPENR_I2C3LPEN_Msk (0x1U << RCC_APB1LLPENR_I2C3LPEN_Pos) /*!< 0x00800000 */
  14432. #define RCC_APB1LLPENR_I2C3LPEN RCC_APB1LLPENR_I2C3LPEN_Msk
  14433. #define RCC_APB1LLPENR_CECLPEN_Pos (27U)
  14434. #define RCC_APB1LLPENR_CECLPEN_Msk (0x1U << RCC_APB1LLPENR_CECLPEN_Pos) /*!< 0x08000000 */
  14435. #define RCC_APB1LLPENR_CECLPEN RCC_APB1LLPENR_CECLPEN_Msk
  14436. #define RCC_APB1LLPENR_DAC12LPEN_Pos (29U)
  14437. #define RCC_APB1LLPENR_DAC12LPEN_Msk (0x1U << RCC_APB1LLPENR_DAC12LPEN_Pos) /*!< 0x20000000 */
  14438. #define RCC_APB1LLPENR_DAC12LPEN RCC_APB1LLPENR_DAC12LPEN_Msk
  14439. #define RCC_APB1LLPENR_UART7LPEN_Pos (30U)
  14440. #define RCC_APB1LLPENR_UART7LPEN_Msk (0x1U << RCC_APB1LLPENR_UART7LPEN_Pos) /*!< 0x40000000 */
  14441. #define RCC_APB1LLPENR_UART7LPEN RCC_APB1LLPENR_UART7LPEN_Msk
  14442. #define RCC_APB1LLPENR_UART8LPEN_Pos (31U)
  14443. #define RCC_APB1LLPENR_UART8LPEN_Msk (0x1U << RCC_APB1LLPENR_UART8LPEN_Pos) /*!< 0x80000000 */
  14444. #define RCC_APB1LLPENR_UART8LPEN RCC_APB1LLPENR_UART8LPEN_Msk
  14445. /******************** Bit definition for RCC_APB1HLPENR register ******************/
  14446. #define RCC_APB1HLPENR_CRSLPEN_Pos (1U)
  14447. #define RCC_APB1HLPENR_CRSLPEN_Msk (0x1U << RCC_APB1HLPENR_CRSLPEN_Pos) /*!< 0x00000002 */
  14448. #define RCC_APB1HLPENR_CRSLPEN RCC_APB1HLPENR_CRSLPEN_Msk
  14449. #define RCC_APB1HLPENR_SWPMILPEN_Pos (2U)
  14450. #define RCC_APB1HLPENR_SWPMILPEN_Msk (0x1U << RCC_APB1HLPENR_SWPMILPEN_Pos) /*!< 0x00000004 */
  14451. #define RCC_APB1HLPENR_SWPMILPEN RCC_APB1HLPENR_SWPMILPEN_Msk
  14452. #define RCC_APB1HLPENR_OPAMPLPEN_Pos (4U)
  14453. #define RCC_APB1HLPENR_OPAMPLPEN_Msk (0x1U << RCC_APB1HLPENR_OPAMPLPEN_Pos) /*!< 0x00000010 */
  14454. #define RCC_APB1HLPENR_OPAMPLPEN RCC_APB1HLPENR_OPAMPLPEN_Msk
  14455. #define RCC_APB1HLPENR_MDIOSLPEN_Pos (5U)
  14456. #define RCC_APB1HLPENR_MDIOSLPEN_Msk (0x1U << RCC_APB1HLPENR_MDIOSLPEN_Pos) /*!< 0x00000020 */
  14457. #define RCC_APB1HLPENR_MDIOSLPEN RCC_APB1HLPENR_MDIOSLPEN_Msk
  14458. #define RCC_APB1HLPENR_FDCANLPEN_Pos (8U)
  14459. #define RCC_APB1HLPENR_FDCANLPEN_Msk (0x1U << RCC_APB1HLPENR_FDCANLPEN_Pos) /*!< 0x00000100 */
  14460. #define RCC_APB1HLPENR_FDCANLPEN RCC_APB1HLPENR_FDCANLPEN_Msk
  14461. /******************** Bit definition for RCC_APB2LPENR register ******************/
  14462. #define RCC_APB2LPENR_TIM1LPEN_Pos (0U)
  14463. #define RCC_APB2LPENR_TIM1LPEN_Msk (0x1U << RCC_APB2LPENR_TIM1LPEN_Pos) /*!< 0x00000001 */
  14464. #define RCC_APB2LPENR_TIM1LPEN RCC_APB2LPENR_TIM1LPEN_Msk
  14465. #define RCC_APB2LPENR_TIM8LPEN_Pos (1U)
  14466. #define RCC_APB2LPENR_TIM8LPEN_Msk (0x1U << RCC_APB2LPENR_TIM8LPEN_Pos) /*!< 0x00000002 */
  14467. #define RCC_APB2LPENR_TIM8LPEN RCC_APB2LPENR_TIM8LPEN_Msk
  14468. #define RCC_APB2LPENR_USART1LPEN_Pos (4U)
  14469. #define RCC_APB2LPENR_USART1LPEN_Msk (0x1U << RCC_APB2LPENR_USART1LPEN_Pos) /*!< 0x00000010 */
  14470. #define RCC_APB2LPENR_USART1LPEN RCC_APB2LPENR_USART1LPEN_Msk
  14471. #define RCC_APB2LPENR_USART6LPEN_Pos (5U)
  14472. #define RCC_APB2LPENR_USART6LPEN_Msk (0x1U << RCC_APB2LPENR_USART6LPEN_Pos) /*!< 0x00000020 */
  14473. #define RCC_APB2LPENR_USART6LPEN RCC_APB2LPENR_USART6LPEN_Msk
  14474. #define RCC_APB2LPENR_SPI1LPEN_Pos (12U)
  14475. #define RCC_APB2LPENR_SPI1LPEN_Msk (0x1U << RCC_APB2LPENR_SPI1LPEN_Pos) /*!< 0x00001000 */
  14476. #define RCC_APB2LPENR_SPI1LPEN RCC_APB2LPENR_SPI1LPEN_Msk
  14477. #define RCC_APB2LPENR_SPI4LPEN_Pos (13U)
  14478. #define RCC_APB2LPENR_SPI4LPEN_Msk (0x1U << RCC_APB2LPENR_SPI4LPEN_Pos) /*!< 0x00002000 */
  14479. #define RCC_APB2LPENR_SPI4LPEN RCC_APB2LPENR_SPI4LPEN_Msk
  14480. #define RCC_APB2LPENR_TIM15LPEN_Pos (16U)
  14481. #define RCC_APB2LPENR_TIM15LPEN_Msk (0x1U << RCC_APB2LPENR_TIM15LPEN_Pos) /*!< 0x00010000 */
  14482. #define RCC_APB2LPENR_TIM15LPEN RCC_APB2LPENR_TIM15LPEN_Msk
  14483. #define RCC_APB2LPENR_TIM16LPEN_Pos (17U)
  14484. #define RCC_APB2LPENR_TIM16LPEN_Msk (0x1U << RCC_APB2LPENR_TIM16LPEN_Pos) /*!< 0x00020000 */
  14485. #define RCC_APB2LPENR_TIM16LPEN RCC_APB2LPENR_TIM16LPEN_Msk
  14486. #define RCC_APB2LPENR_TIM17LPEN_Pos (18U)
  14487. #define RCC_APB2LPENR_TIM17LPEN_Msk (0x1U << RCC_APB2LPENR_TIM17LPEN_Pos) /*!< 0x00040000 */
  14488. #define RCC_APB2LPENR_TIM17LPEN RCC_APB2LPENR_TIM17LPEN_Msk
  14489. #define RCC_APB2LPENR_SPI5LPEN_Pos (20U)
  14490. #define RCC_APB2LPENR_SPI5LPEN_Msk (0x1U << RCC_APB2LPENR_SPI5LPEN_Pos) /*!< 0x00100000 */
  14491. #define RCC_APB2LPENR_SPI5LPEN RCC_APB2LPENR_SPI5LPEN_Msk
  14492. #define RCC_APB2LPENR_SAI1LPEN_Pos (22U)
  14493. #define RCC_APB2LPENR_SAI1LPEN_Msk (0x1U << RCC_APB2LPENR_SAI1LPEN_Pos) /*!< 0x00400000 */
  14494. #define RCC_APB2LPENR_SAI1LPEN RCC_APB2LPENR_SAI1LPEN_Msk
  14495. #define RCC_APB2LPENR_SAI2LPEN_Pos (23U)
  14496. #define RCC_APB2LPENR_SAI2LPEN_Msk (0x1U << RCC_APB2LPENR_SAI2LPEN_Pos) /*!< 0x00800000 */
  14497. #define RCC_APB2LPENR_SAI2LPEN RCC_APB2LPENR_SAI2LPEN_Msk
  14498. #define RCC_APB2LPENR_SAI3LPEN_Pos (24U)
  14499. #define RCC_APB2LPENR_SAI3LPEN_Msk (0x1U << RCC_APB2LPENR_SAI3LPEN_Pos) /*!< 0x01000000 */
  14500. #define RCC_APB2LPENR_SAI3LPEN RCC_APB2LPENR_SAI3LPEN_Msk
  14501. #define RCC_APB2LPENR_DFSDM1LPEN_Pos (28U)
  14502. #define RCC_APB2LPENR_DFSDM1LPEN_Msk (0x1U << RCC_APB2LPENR_DFSDM1LPEN_Pos) /*!< 0x10000000 */
  14503. #define RCC_APB2LPENR_DFSDM1LPEN RCC_APB2LPENR_DFSDM1LPEN_Msk
  14504. #define RCC_APB2LPENR_HRTIMLPEN_Pos (29U)
  14505. #define RCC_APB2LPENR_HRTIMLPEN_Msk (0x1U << RCC_APB2LPENR_HRTIMLPEN_Pos) /*!< 0x20000000 */
  14506. #define RCC_APB2LPENR_HRTIMLPEN RCC_APB2LPENR_HRTIMLPEN_Msk
  14507. /******************** Bit definition for RCC_APB4LPENR register ******************/
  14508. #define RCC_APB4LPENR_SYSCFGLPEN_Pos (1U)
  14509. #define RCC_APB4LPENR_SYSCFGLPEN_Msk (0x1U << RCC_APB4LPENR_SYSCFGLPEN_Pos) /*!< 0x00000002 */
  14510. #define RCC_APB4LPENR_SYSCFGLPEN RCC_APB4LPENR_SYSCFGLPEN_Msk
  14511. #define RCC_APB4LPENR_LPUART1LPEN_Pos (3U)
  14512. #define RCC_APB4LPENR_LPUART1LPEN_Msk (0x1U << RCC_APB4LPENR_LPUART1LPEN_Pos) /*!< 0x00000008 */
  14513. #define RCC_APB4LPENR_LPUART1LPEN RCC_APB4LPENR_LPUART1LPEN_Msk
  14514. #define RCC_APB4LPENR_SPI6LPEN_Pos (5U)
  14515. #define RCC_APB4LPENR_SPI6LPEN_Msk (0x1U << RCC_APB4LPENR_SPI6LPEN_Pos) /*!< 0x00000020 */
  14516. #define RCC_APB4LPENR_SPI6LPEN RCC_APB4LPENR_SPI6LPEN_Msk
  14517. #define RCC_APB4LPENR_I2C4LPEN_Pos (7U)
  14518. #define RCC_APB4LPENR_I2C4LPEN_Msk (0x1U << RCC_APB4LPENR_I2C4LPEN_Pos) /*!< 0x00000080 */
  14519. #define RCC_APB4LPENR_I2C4LPEN RCC_APB4LPENR_I2C4LPEN_Msk
  14520. #define RCC_APB4LPENR_LPTIM2LPEN_Pos (9U)
  14521. #define RCC_APB4LPENR_LPTIM2LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM2LPEN_Pos) /*!< 0x00000200 */
  14522. #define RCC_APB4LPENR_LPTIM2LPEN RCC_APB4LPENR_LPTIM2LPEN_Msk
  14523. #define RCC_APB4LPENR_LPTIM3LPEN_Pos (10U)
  14524. #define RCC_APB4LPENR_LPTIM3LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM3LPEN_Pos) /*!< 0x00000400 */
  14525. #define RCC_APB4LPENR_LPTIM3LPEN RCC_APB4LPENR_LPTIM3LPEN_Msk
  14526. #define RCC_APB4LPENR_LPTIM4LPEN_Pos (11U)
  14527. #define RCC_APB4LPENR_LPTIM4LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM4LPEN_Pos) /*!< 0x00000800 */
  14528. #define RCC_APB4LPENR_LPTIM4LPEN RCC_APB4LPENR_LPTIM4LPEN_Msk
  14529. #define RCC_APB4LPENR_LPTIM5LPEN_Pos (12U)
  14530. #define RCC_APB4LPENR_LPTIM5LPEN_Msk (0x1U << RCC_APB4LPENR_LPTIM5LPEN_Pos) /*!< 0x00001000 */
  14531. #define RCC_APB4LPENR_LPTIM5LPEN RCC_APB4LPENR_LPTIM5LPEN_Msk
  14532. #define RCC_APB4LPENR_COMP12LPEN_Pos (14U)
  14533. #define RCC_APB4LPENR_COMP12LPEN_Msk (0x1U << RCC_APB4LPENR_COMP12LPEN_Pos) /*!< 0x00004000 */
  14534. #define RCC_APB4LPENR_COMP12LPEN RCC_APB4LPENR_COMP12LPEN_Msk
  14535. #define RCC_APB4LPENR_VREFLPEN_Pos (15U)
  14536. #define RCC_APB4LPENR_VREFLPEN_Msk (0x1U << RCC_APB4LPENR_VREFLPEN_Pos) /*!< 0x00008000 */
  14537. #define RCC_APB4LPENR_VREFLPEN RCC_APB4LPENR_VREFLPEN_Msk
  14538. #define RCC_APB4LPENR_RTCAPBLPEN_Pos (16U)
  14539. #define RCC_APB4LPENR_RTCAPBLPEN_Msk (0x1U << RCC_APB4LPENR_RTCAPBLPEN_Pos) /*!< 0x00010000 */
  14540. #define RCC_APB4LPENR_RTCAPBLPEN RCC_APB4LPENR_RTCAPBLPEN_Msk
  14541. #define RCC_APB4LPENR_SAI4LPEN_Pos (21U)
  14542. #define RCC_APB4LPENR_SAI4LPEN_Msk (0x1U << RCC_APB4LPENR_SAI4LPEN_Pos) /*!< 0x00200000 */
  14543. #define RCC_APB4LPENR_SAI4LPEN RCC_APB4LPENR_SAI4LPEN_Msk
  14544. /******************** Bit definition for RCC_RSR register *******************/
  14545. #define RCC_RSR_RMVF_Pos (16U)
  14546. #define RCC_RSR_RMVF_Msk (0x1U << RCC_RSR_RMVF_Pos) /*!< 0x00010000 */
  14547. #define RCC_RSR_RMVF RCC_RSR_RMVF_Msk
  14548. #define RCC_RSR_CPURSTF_Pos (17U)
  14549. #define RCC_RSR_CPURSTF_Msk (0x1U << RCC_RSR_CPURSTF_Pos) /*!< 0x00020000 */
  14550. #define RCC_RSR_CPURSTF RCC_RSR_CPURSTF_Msk
  14551. #define RCC_RSR_D1RSTF_Pos (19U)
  14552. #define RCC_RSR_D1RSTF_Msk (0x1U << RCC_RSR_D1RSTF_Pos) /*!< 0x00080000 */
  14553. #define RCC_RSR_D1RSTF RCC_RSR_D1RSTF_Msk
  14554. #define RCC_RSR_D2RSTF_Pos (20U)
  14555. #define RCC_RSR_D2RSTF_Msk (0x1U << RCC_RSR_D2RSTF_Pos) /*!< 0x00100000 */
  14556. #define RCC_RSR_D2RSTF RCC_RSR_D2RSTF_Msk
  14557. #define RCC_RSR_BORRSTF_Pos (21U)
  14558. #define RCC_RSR_BORRSTF_Msk (0x1U << RCC_RSR_BORRSTF_Pos) /*!< 0x00200000 */
  14559. #define RCC_RSR_BORRSTF RCC_RSR_BORRSTF_Msk
  14560. #define RCC_RSR_PINRSTF_Pos (22U)
  14561. #define RCC_RSR_PINRSTF_Msk (0x1U << RCC_RSR_PINRSTF_Pos) /*!< 0x00400000 */
  14562. #define RCC_RSR_PINRSTF RCC_RSR_PINRSTF_Msk
  14563. #define RCC_RSR_PORRSTF_Pos (23U)
  14564. #define RCC_RSR_PORRSTF_Msk (0x1U << RCC_RSR_PORRSTF_Pos) /*!< 0x00800000 */
  14565. #define RCC_RSR_PORRSTF RCC_RSR_PORRSTF_Msk
  14566. #define RCC_RSR_SFTRSTF_Pos (24U)
  14567. #define RCC_RSR_SFTRSTF_Msk (0x1U << RCC_RSR_SFTRSTF_Pos) /*!< 0x01000000 */
  14568. #define RCC_RSR_SFTRSTF RCC_RSR_SFTRSTF_Msk
  14569. #define RCC_RSR_IWDG1RSTF_Pos (26U)
  14570. #define RCC_RSR_IWDG1RSTF_Msk (0x1U << RCC_RSR_IWDG1RSTF_Pos) /*!< 0x04000000 */
  14571. #define RCC_RSR_IWDG1RSTF RCC_RSR_IWDG1RSTF_Msk
  14572. #define RCC_RSR_WWDG1RSTF_Pos (28U)
  14573. #define RCC_RSR_WWDG1RSTF_Msk (0x1U << RCC_RSR_WWDG1RSTF_Pos) /*!< 0x10000000 */
  14574. #define RCC_RSR_WWDG1RSTF RCC_RSR_WWDG1RSTF_Msk
  14575. #define RCC_RSR_LPWRRSTF_Pos (30U)
  14576. #define RCC_RSR_LPWRRSTF_Msk (0x1U << RCC_RSR_LPWRRSTF_Pos) /*!< 0x40000000 */
  14577. #define RCC_RSR_LPWRRSTF RCC_RSR_LPWRRSTF_Msk
  14578. /******************************************************************************/
  14579. /* */
  14580. /* RNG */
  14581. /* */
  14582. /******************************************************************************/
  14583. /******************** Bits definition for RNG_CR register *******************/
  14584. #define RNG_CR_RNGEN_Pos (2U)
  14585. #define RNG_CR_RNGEN_Msk (0x1U << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */
  14586. #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk
  14587. #define RNG_CR_IE_Pos (3U)
  14588. #define RNG_CR_IE_Msk (0x1U << RNG_CR_IE_Pos) /*!< 0x00000008 */
  14589. #define RNG_CR_IE RNG_CR_IE_Msk
  14590. #define RNG_CR_CED_Pos (5U)
  14591. #define RNG_CR_CED_Msk (0x1U << RNG_CR_CED_Pos) /*!< 0x00000020 */
  14592. #define RNG_CR_CED RNG_CR_CED_Msk
  14593. /******************** Bits definition for RNG_SR register *******************/
  14594. #define RNG_SR_DRDY_Pos (0U)
  14595. #define RNG_SR_DRDY_Msk (0x1U << RNG_SR_DRDY_Pos) /*!< 0x00000001 */
  14596. #define RNG_SR_DRDY RNG_SR_DRDY_Msk
  14597. #define RNG_SR_CECS_Pos (1U)
  14598. #define RNG_SR_CECS_Msk (0x1U << RNG_SR_CECS_Pos) /*!< 0x00000002 */
  14599. #define RNG_SR_CECS RNG_SR_CECS_Msk
  14600. #define RNG_SR_SECS_Pos (2U)
  14601. #define RNG_SR_SECS_Msk (0x1U << RNG_SR_SECS_Pos) /*!< 0x00000004 */
  14602. #define RNG_SR_SECS RNG_SR_SECS_Msk
  14603. #define RNG_SR_CEIS_Pos (5U)
  14604. #define RNG_SR_CEIS_Msk (0x1U << RNG_SR_CEIS_Pos) /*!< 0x00000020 */
  14605. #define RNG_SR_CEIS RNG_SR_CEIS_Msk
  14606. #define RNG_SR_SEIS_Pos (6U)
  14607. #define RNG_SR_SEIS_Msk (0x1U << RNG_SR_SEIS_Pos) /*!< 0x00000040 */
  14608. #define RNG_SR_SEIS RNG_SR_SEIS_Msk
  14609. /******************************************************************************/
  14610. /* */
  14611. /* Real-Time Clock (RTC) */
  14612. /* */
  14613. /******************************************************************************/
  14614. /******************** Bits definition for RTC_TR register *******************/
  14615. #define RTC_TR_PM_Pos (22U)
  14616. #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */
  14617. #define RTC_TR_PM RTC_TR_PM_Msk
  14618. #define RTC_TR_HT_Pos (20U)
  14619. #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */
  14620. #define RTC_TR_HT RTC_TR_HT_Msk
  14621. #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */
  14622. #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */
  14623. #define RTC_TR_HU_Pos (16U)
  14624. #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */
  14625. #define RTC_TR_HU RTC_TR_HU_Msk
  14626. #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */
  14627. #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */
  14628. #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */
  14629. #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */
  14630. #define RTC_TR_MNT_Pos (12U)
  14631. #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */
  14632. #define RTC_TR_MNT RTC_TR_MNT_Msk
  14633. #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */
  14634. #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */
  14635. #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */
  14636. #define RTC_TR_MNU_Pos (8U)
  14637. #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */
  14638. #define RTC_TR_MNU RTC_TR_MNU_Msk
  14639. #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */
  14640. #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */
  14641. #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */
  14642. #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */
  14643. #define RTC_TR_ST_Pos (4U)
  14644. #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */
  14645. #define RTC_TR_ST RTC_TR_ST_Msk
  14646. #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */
  14647. #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */
  14648. #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */
  14649. #define RTC_TR_SU_Pos (0U)
  14650. #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */
  14651. #define RTC_TR_SU RTC_TR_SU_Msk
  14652. #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */
  14653. #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */
  14654. #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */
  14655. #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */
  14656. /******************** Bits definition for RTC_DR register *******************/
  14657. #define RTC_DR_YT_Pos (20U)
  14658. #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */
  14659. #define RTC_DR_YT RTC_DR_YT_Msk
  14660. #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */
  14661. #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */
  14662. #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */
  14663. #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */
  14664. #define RTC_DR_YU_Pos (16U)
  14665. #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */
  14666. #define RTC_DR_YU RTC_DR_YU_Msk
  14667. #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */
  14668. #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */
  14669. #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */
  14670. #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */
  14671. #define RTC_DR_WDU_Pos (13U)
  14672. #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */
  14673. #define RTC_DR_WDU RTC_DR_WDU_Msk
  14674. #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */
  14675. #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */
  14676. #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */
  14677. #define RTC_DR_MT_Pos (12U)
  14678. #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */
  14679. #define RTC_DR_MT RTC_DR_MT_Msk
  14680. #define RTC_DR_MU_Pos (8U)
  14681. #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */
  14682. #define RTC_DR_MU RTC_DR_MU_Msk
  14683. #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */
  14684. #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */
  14685. #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */
  14686. #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */
  14687. #define RTC_DR_DT_Pos (4U)
  14688. #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */
  14689. #define RTC_DR_DT RTC_DR_DT_Msk
  14690. #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */
  14691. #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */
  14692. #define RTC_DR_DU_Pos (0U)
  14693. #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */
  14694. #define RTC_DR_DU RTC_DR_DU_Msk
  14695. #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */
  14696. #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */
  14697. #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */
  14698. #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */
  14699. /******************** Bits definition for RTC_CR register *******************/
  14700. #define RTC_CR_ITSE_Pos (24U)
  14701. #define RTC_CR_ITSE_Msk (0x1U << RTC_CR_ITSE_Pos) /*!< 0x01000000 */
  14702. #define RTC_CR_ITSE RTC_CR_ITSE_Msk
  14703. #define RTC_CR_COE_Pos (23U)
  14704. #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */
  14705. #define RTC_CR_COE RTC_CR_COE_Msk
  14706. #define RTC_CR_OSEL_Pos (21U)
  14707. #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */
  14708. #define RTC_CR_OSEL RTC_CR_OSEL_Msk
  14709. #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */
  14710. #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */
  14711. #define RTC_CR_POL_Pos (20U)
  14712. #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */
  14713. #define RTC_CR_POL RTC_CR_POL_Msk
  14714. #define RTC_CR_COSEL_Pos (19U)
  14715. #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */
  14716. #define RTC_CR_COSEL RTC_CR_COSEL_Msk
  14717. #define RTC_CR_BCK_Pos (18U)
  14718. #define RTC_CR_BCK_Msk (0x1U << RTC_CR_BCK_Pos) /*!< 0x00040000 */
  14719. #define RTC_CR_BCK RTC_CR_BCK_Msk
  14720. #define RTC_CR_SUB1H_Pos (17U)
  14721. #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */
  14722. #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk
  14723. #define RTC_CR_ADD1H_Pos (16U)
  14724. #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */
  14725. #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk
  14726. #define RTC_CR_TSIE_Pos (15U)
  14727. #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */
  14728. #define RTC_CR_TSIE RTC_CR_TSIE_Msk
  14729. #define RTC_CR_WUTIE_Pos (14U)
  14730. #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */
  14731. #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk
  14732. #define RTC_CR_ALRBIE_Pos (13U)
  14733. #define RTC_CR_ALRBIE_Msk (0x1U << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */
  14734. #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk
  14735. #define RTC_CR_ALRAIE_Pos (12U)
  14736. #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */
  14737. #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk
  14738. #define RTC_CR_TSE_Pos (11U)
  14739. #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */
  14740. #define RTC_CR_TSE RTC_CR_TSE_Msk
  14741. #define RTC_CR_WUTE_Pos (10U)
  14742. #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */
  14743. #define RTC_CR_WUTE RTC_CR_WUTE_Msk
  14744. #define RTC_CR_ALRBE_Pos (9U)
  14745. #define RTC_CR_ALRBE_Msk (0x1U << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */
  14746. #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk
  14747. #define RTC_CR_ALRAE_Pos (8U)
  14748. #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */
  14749. #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk
  14750. #define RTC_CR_FMT_Pos (6U)
  14751. #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */
  14752. #define RTC_CR_FMT RTC_CR_FMT_Msk
  14753. #define RTC_CR_BYPSHAD_Pos (5U)
  14754. #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */
  14755. #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk
  14756. #define RTC_CR_REFCKON_Pos (4U)
  14757. #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */
  14758. #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk
  14759. #define RTC_CR_TSEDGE_Pos (3U)
  14760. #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */
  14761. #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk
  14762. #define RTC_CR_WUCKSEL_Pos (0U)
  14763. #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */
  14764. #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk
  14765. #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */
  14766. #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */
  14767. #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */
  14768. /******************** Bits definition for RTC_ISR register ******************/
  14769. #define RTC_ISR_ITSF_Pos (17U)
  14770. #define RTC_ISR_ITSF_Msk (0x1U << RTC_ISR_ITSF_Pos) /*!< 0x00020000 */
  14771. #define RTC_ISR_ITSF RTC_ISR_ITSF_Msk
  14772. #define RTC_ISR_RECALPF_Pos (16U)
  14773. #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */
  14774. #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk
  14775. #define RTC_ISR_TAMP3F_Pos (15U)
  14776. #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */
  14777. #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk
  14778. #define RTC_ISR_TAMP2F_Pos (14U)
  14779. #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */
  14780. #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk
  14781. #define RTC_ISR_TAMP1F_Pos (13U)
  14782. #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */
  14783. #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk
  14784. #define RTC_ISR_TSOVF_Pos (12U)
  14785. #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */
  14786. #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk
  14787. #define RTC_ISR_TSF_Pos (11U)
  14788. #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */
  14789. #define RTC_ISR_TSF RTC_ISR_TSF_Msk
  14790. #define RTC_ISR_WUTF_Pos (10U)
  14791. #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */
  14792. #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk
  14793. #define RTC_ISR_ALRBF_Pos (9U)
  14794. #define RTC_ISR_ALRBF_Msk (0x1U << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */
  14795. #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk
  14796. #define RTC_ISR_ALRAF_Pos (8U)
  14797. #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */
  14798. #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk
  14799. #define RTC_ISR_INIT_Pos (7U)
  14800. #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */
  14801. #define RTC_ISR_INIT RTC_ISR_INIT_Msk
  14802. #define RTC_ISR_INITF_Pos (6U)
  14803. #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */
  14804. #define RTC_ISR_INITF RTC_ISR_INITF_Msk
  14805. #define RTC_ISR_RSF_Pos (5U)
  14806. #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */
  14807. #define RTC_ISR_RSF RTC_ISR_RSF_Msk
  14808. #define RTC_ISR_INITS_Pos (4U)
  14809. #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */
  14810. #define RTC_ISR_INITS RTC_ISR_INITS_Msk
  14811. #define RTC_ISR_SHPF_Pos (3U)
  14812. #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */
  14813. #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk
  14814. #define RTC_ISR_WUTWF_Pos (2U)
  14815. #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */
  14816. #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk
  14817. #define RTC_ISR_ALRBWF_Pos (1U)
  14818. #define RTC_ISR_ALRBWF_Msk (0x1U << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */
  14819. #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk
  14820. #define RTC_ISR_ALRAWF_Pos (0U)
  14821. #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */
  14822. #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk
  14823. /******************** Bits definition for RTC_PRER register *****************/
  14824. #define RTC_PRER_PREDIV_A_Pos (16U)
  14825. #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */
  14826. #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk
  14827. #define RTC_PRER_PREDIV_S_Pos (0U)
  14828. #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */
  14829. #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk
  14830. /******************** Bits definition for RTC_WUTR register *****************/
  14831. #define RTC_WUTR_WUT_Pos (0U)
  14832. #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */
  14833. #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk
  14834. /******************** Bits definition for RTC_ALRMAR register ***************/
  14835. #define RTC_ALRMAR_MSK4_Pos (31U)
  14836. #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */
  14837. #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk
  14838. #define RTC_ALRMAR_WDSEL_Pos (30U)
  14839. #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */
  14840. #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk
  14841. #define RTC_ALRMAR_DT_Pos (28U)
  14842. #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */
  14843. #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk
  14844. #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */
  14845. #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */
  14846. #define RTC_ALRMAR_DU_Pos (24U)
  14847. #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */
  14848. #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk
  14849. #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */
  14850. #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */
  14851. #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */
  14852. #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */
  14853. #define RTC_ALRMAR_MSK3_Pos (23U)
  14854. #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */
  14855. #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk
  14856. #define RTC_ALRMAR_PM_Pos (22U)
  14857. #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */
  14858. #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk
  14859. #define RTC_ALRMAR_HT_Pos (20U)
  14860. #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */
  14861. #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk
  14862. #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */
  14863. #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */
  14864. #define RTC_ALRMAR_HU_Pos (16U)
  14865. #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */
  14866. #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk
  14867. #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */
  14868. #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */
  14869. #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */
  14870. #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */
  14871. #define RTC_ALRMAR_MSK2_Pos (15U)
  14872. #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */
  14873. #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk
  14874. #define RTC_ALRMAR_MNT_Pos (12U)
  14875. #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */
  14876. #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk
  14877. #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */
  14878. #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */
  14879. #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */
  14880. #define RTC_ALRMAR_MNU_Pos (8U)
  14881. #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */
  14882. #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk
  14883. #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */
  14884. #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */
  14885. #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */
  14886. #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */
  14887. #define RTC_ALRMAR_MSK1_Pos (7U)
  14888. #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */
  14889. #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk
  14890. #define RTC_ALRMAR_ST_Pos (4U)
  14891. #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */
  14892. #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk
  14893. #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */
  14894. #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */
  14895. #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */
  14896. #define RTC_ALRMAR_SU_Pos (0U)
  14897. #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */
  14898. #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk
  14899. #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */
  14900. #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */
  14901. #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */
  14902. #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */
  14903. /******************** Bits definition for RTC_ALRMBR register ***************/
  14904. #define RTC_ALRMBR_MSK4_Pos (31U)
  14905. #define RTC_ALRMBR_MSK4_Msk (0x1U << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */
  14906. #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk
  14907. #define RTC_ALRMBR_WDSEL_Pos (30U)
  14908. #define RTC_ALRMBR_WDSEL_Msk (0x1U << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */
  14909. #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk
  14910. #define RTC_ALRMBR_DT_Pos (28U)
  14911. #define RTC_ALRMBR_DT_Msk (0x3U << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */
  14912. #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk
  14913. #define RTC_ALRMBR_DT_0 (0x1U << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */
  14914. #define RTC_ALRMBR_DT_1 (0x2U << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */
  14915. #define RTC_ALRMBR_DU_Pos (24U)
  14916. #define RTC_ALRMBR_DU_Msk (0xFU << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */
  14917. #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk
  14918. #define RTC_ALRMBR_DU_0 (0x1U << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */
  14919. #define RTC_ALRMBR_DU_1 (0x2U << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */
  14920. #define RTC_ALRMBR_DU_2 (0x4U << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */
  14921. #define RTC_ALRMBR_DU_3 (0x8U << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */
  14922. #define RTC_ALRMBR_MSK3_Pos (23U)
  14923. #define RTC_ALRMBR_MSK3_Msk (0x1U << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */
  14924. #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk
  14925. #define RTC_ALRMBR_PM_Pos (22U)
  14926. #define RTC_ALRMBR_PM_Msk (0x1U << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */
  14927. #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk
  14928. #define RTC_ALRMBR_HT_Pos (20U)
  14929. #define RTC_ALRMBR_HT_Msk (0x3U << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */
  14930. #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk
  14931. #define RTC_ALRMBR_HT_0 (0x1U << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */
  14932. #define RTC_ALRMBR_HT_1 (0x2U << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */
  14933. #define RTC_ALRMBR_HU_Pos (16U)
  14934. #define RTC_ALRMBR_HU_Msk (0xFU << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */
  14935. #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk
  14936. #define RTC_ALRMBR_HU_0 (0x1U << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */
  14937. #define RTC_ALRMBR_HU_1 (0x2U << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */
  14938. #define RTC_ALRMBR_HU_2 (0x4U << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */
  14939. #define RTC_ALRMBR_HU_3 (0x8U << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */
  14940. #define RTC_ALRMBR_MSK2_Pos (15U)
  14941. #define RTC_ALRMBR_MSK2_Msk (0x1U << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */
  14942. #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk
  14943. #define RTC_ALRMBR_MNT_Pos (12U)
  14944. #define RTC_ALRMBR_MNT_Msk (0x7U << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */
  14945. #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk
  14946. #define RTC_ALRMBR_MNT_0 (0x1U << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */
  14947. #define RTC_ALRMBR_MNT_1 (0x2U << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */
  14948. #define RTC_ALRMBR_MNT_2 (0x4U << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */
  14949. #define RTC_ALRMBR_MNU_Pos (8U)
  14950. #define RTC_ALRMBR_MNU_Msk (0xFU << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */
  14951. #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk
  14952. #define RTC_ALRMBR_MNU_0 (0x1U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */
  14953. #define RTC_ALRMBR_MNU_1 (0x2U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */
  14954. #define RTC_ALRMBR_MNU_2 (0x4U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */
  14955. #define RTC_ALRMBR_MNU_3 (0x8U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */
  14956. #define RTC_ALRMBR_MSK1_Pos (7U)
  14957. #define RTC_ALRMBR_MSK1_Msk (0x1U << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */
  14958. #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk
  14959. #define RTC_ALRMBR_ST_Pos (4U)
  14960. #define RTC_ALRMBR_ST_Msk (0x7U << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */
  14961. #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk
  14962. #define RTC_ALRMBR_ST_0 (0x1U << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */
  14963. #define RTC_ALRMBR_ST_1 (0x2U << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */
  14964. #define RTC_ALRMBR_ST_2 (0x4U << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */
  14965. #define RTC_ALRMBR_SU_Pos (0U)
  14966. #define RTC_ALRMBR_SU_Msk (0xFU << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */
  14967. #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk
  14968. #define RTC_ALRMBR_SU_0 (0x1U << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */
  14969. #define RTC_ALRMBR_SU_1 (0x2U << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */
  14970. #define RTC_ALRMBR_SU_2 (0x4U << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */
  14971. #define RTC_ALRMBR_SU_3 (0x8U << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */
  14972. /******************** Bits definition for RTC_WPR register ******************/
  14973. #define RTC_WPR_KEY_Pos (0U)
  14974. #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */
  14975. #define RTC_WPR_KEY RTC_WPR_KEY_Msk
  14976. /******************** Bits definition for RTC_SSR register ******************/
  14977. #define RTC_SSR_SS_Pos (0U)
  14978. #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */
  14979. #define RTC_SSR_SS RTC_SSR_SS_Msk
  14980. /******************** Bits definition for RTC_SHIFTR register ***************/
  14981. #define RTC_SHIFTR_SUBFS_Pos (0U)
  14982. #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */
  14983. #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk
  14984. #define RTC_SHIFTR_ADD1S_Pos (31U)
  14985. #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */
  14986. #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk
  14987. /******************** Bits definition for RTC_TSTR register *****************/
  14988. #define RTC_TSTR_PM_Pos (22U)
  14989. #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */
  14990. #define RTC_TSTR_PM RTC_TSTR_PM_Msk
  14991. #define RTC_TSTR_HT_Pos (20U)
  14992. #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */
  14993. #define RTC_TSTR_HT RTC_TSTR_HT_Msk
  14994. #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */
  14995. #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */
  14996. #define RTC_TSTR_HU_Pos (16U)
  14997. #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */
  14998. #define RTC_TSTR_HU RTC_TSTR_HU_Msk
  14999. #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */
  15000. #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */
  15001. #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */
  15002. #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */
  15003. #define RTC_TSTR_MNT_Pos (12U)
  15004. #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */
  15005. #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk
  15006. #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */
  15007. #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */
  15008. #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */
  15009. #define RTC_TSTR_MNU_Pos (8U)
  15010. #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */
  15011. #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk
  15012. #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */
  15013. #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */
  15014. #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */
  15015. #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */
  15016. #define RTC_TSTR_ST_Pos (4U)
  15017. #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */
  15018. #define RTC_TSTR_ST RTC_TSTR_ST_Msk
  15019. #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */
  15020. #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */
  15021. #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */
  15022. #define RTC_TSTR_SU_Pos (0U)
  15023. #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */
  15024. #define RTC_TSTR_SU RTC_TSTR_SU_Msk
  15025. #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */
  15026. #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */
  15027. #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */
  15028. #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */
  15029. /******************** Bits definition for RTC_TSDR register *****************/
  15030. #define RTC_TSDR_WDU_Pos (13U)
  15031. #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */
  15032. #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk
  15033. #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */
  15034. #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */
  15035. #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */
  15036. #define RTC_TSDR_MT_Pos (12U)
  15037. #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */
  15038. #define RTC_TSDR_MT RTC_TSDR_MT_Msk
  15039. #define RTC_TSDR_MU_Pos (8U)
  15040. #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */
  15041. #define RTC_TSDR_MU RTC_TSDR_MU_Msk
  15042. #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */
  15043. #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */
  15044. #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */
  15045. #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */
  15046. #define RTC_TSDR_DT_Pos (4U)
  15047. #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */
  15048. #define RTC_TSDR_DT RTC_TSDR_DT_Msk
  15049. #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */
  15050. #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */
  15051. #define RTC_TSDR_DU_Pos (0U)
  15052. #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */
  15053. #define RTC_TSDR_DU RTC_TSDR_DU_Msk
  15054. #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */
  15055. #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */
  15056. #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */
  15057. #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */
  15058. /******************** Bits definition for RTC_TSSSR register ****************/
  15059. #define RTC_TSSSR_SS_Pos (0U)
  15060. #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */
  15061. #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk
  15062. /******************** Bits definition for RTC_CAL register *****************/
  15063. #define RTC_CALR_CALP_Pos (15U)
  15064. #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */
  15065. #define RTC_CALR_CALP RTC_CALR_CALP_Msk
  15066. #define RTC_CALR_CALW8_Pos (14U)
  15067. #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */
  15068. #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk
  15069. #define RTC_CALR_CALW16_Pos (13U)
  15070. #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */
  15071. #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk
  15072. #define RTC_CALR_CALM_Pos (0U)
  15073. #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */
  15074. #define RTC_CALR_CALM RTC_CALR_CALM_Msk
  15075. #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */
  15076. #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */
  15077. #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */
  15078. #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */
  15079. #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */
  15080. #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */
  15081. #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */
  15082. #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */
  15083. #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */
  15084. /******************** Bits definition for RTC_TAFCR register ****************/
  15085. #define RTC_TAMPCR_TAMP3MF_Pos (24U)
  15086. #define RTC_TAMPCR_TAMP3MF_Msk (0x1U << RTC_TAMPCR_TAMP3MF_Pos) /*!< 0x01000000 */
  15087. #define RTC_TAMPCR_TAMP3MF RTC_TAMPCR_TAMP3MF_Msk
  15088. #define RTC_TAMPCR_TAMP3NOERASE_Pos (23U)
  15089. #define RTC_TAMPCR_TAMP3NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP3NOERASE_Pos) /*!< 0x00800000 */
  15090. #define RTC_TAMPCR_TAMP3NOERASE RTC_TAMPCR_TAMP3NOERASE_Msk
  15091. #define RTC_TAMPCR_TAMP3IE_Pos (22U)
  15092. #define RTC_TAMPCR_TAMP3IE_Msk (0x1U << RTC_TAMPCR_TAMP3IE_Pos) /*!< 0x00400000 */
  15093. #define RTC_TAMPCR_TAMP3IE RTC_TAMPCR_TAMP3IE_Msk
  15094. #define RTC_TAMPCR_TAMP2MF_Pos (21U)
  15095. #define RTC_TAMPCR_TAMP2MF_Msk (0x1U << RTC_TAMPCR_TAMP2MF_Pos) /*!< 0x00200000 */
  15096. #define RTC_TAMPCR_TAMP2MF RTC_TAMPCR_TAMP2MF_Msk
  15097. #define RTC_TAMPCR_TAMP2NOERASE_Pos (20U)
  15098. #define RTC_TAMPCR_TAMP2NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP2NOERASE_Pos) /*!< 0x00100000 */
  15099. #define RTC_TAMPCR_TAMP2NOERASE RTC_TAMPCR_TAMP2NOERASE_Msk
  15100. #define RTC_TAMPCR_TAMP2IE_Pos (19U)
  15101. #define RTC_TAMPCR_TAMP2IE_Msk (0x1U << RTC_TAMPCR_TAMP2IE_Pos) /*!< 0x00080000 */
  15102. #define RTC_TAMPCR_TAMP2IE RTC_TAMPCR_TAMP2IE_Msk
  15103. #define RTC_TAMPCR_TAMP1MF_Pos (18U)
  15104. #define RTC_TAMPCR_TAMP1MF_Msk (0x1U << RTC_TAMPCR_TAMP1MF_Pos) /*!< 0x00040000 */
  15105. #define RTC_TAMPCR_TAMP1MF RTC_TAMPCR_TAMP1MF_Msk
  15106. #define RTC_TAMPCR_TAMP1NOERASE_Pos (17U)
  15107. #define RTC_TAMPCR_TAMP1NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP1NOERASE_Pos) /*!< 0x00020000 */
  15108. #define RTC_TAMPCR_TAMP1NOERASE RTC_TAMPCR_TAMP1NOERASE_Msk
  15109. #define RTC_TAMPCR_TAMP1IE_Pos (16U)
  15110. #define RTC_TAMPCR_TAMP1IE_Msk (0x1U << RTC_TAMPCR_TAMP1IE_Pos) /*!< 0x00010000 */
  15111. #define RTC_TAMPCR_TAMP1IE RTC_TAMPCR_TAMP1IE_Msk
  15112. #define RTC_TAMPCR_TAMPPUDIS_Pos (15U)
  15113. #define RTC_TAMPCR_TAMPPUDIS_Msk (0x1U << RTC_TAMPCR_TAMPPUDIS_Pos) /*!< 0x00008000 */
  15114. #define RTC_TAMPCR_TAMPPUDIS RTC_TAMPCR_TAMPPUDIS_Msk
  15115. #define RTC_TAMPCR_TAMPPRCH_Pos (13U)
  15116. #define RTC_TAMPCR_TAMPPRCH_Msk (0x3U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00006000 */
  15117. #define RTC_TAMPCR_TAMPPRCH RTC_TAMPCR_TAMPPRCH_Msk
  15118. #define RTC_TAMPCR_TAMPPRCH_0 (0x1U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00002000 */
  15119. #define RTC_TAMPCR_TAMPPRCH_1 (0x2U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00004000 */
  15120. #define RTC_TAMPCR_TAMPFLT_Pos (11U)
  15121. #define RTC_TAMPCR_TAMPFLT_Msk (0x3U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001800 */
  15122. #define RTC_TAMPCR_TAMPFLT RTC_TAMPCR_TAMPFLT_Msk
  15123. #define RTC_TAMPCR_TAMPFLT_0 (0x1U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00000800 */
  15124. #define RTC_TAMPCR_TAMPFLT_1 (0x2U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001000 */
  15125. #define RTC_TAMPCR_TAMPFREQ_Pos (8U)
  15126. #define RTC_TAMPCR_TAMPFREQ_Msk (0x7U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000700 */
  15127. #define RTC_TAMPCR_TAMPFREQ RTC_TAMPCR_TAMPFREQ_Msk
  15128. #define RTC_TAMPCR_TAMPFREQ_0 (0x1U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000100 */
  15129. #define RTC_TAMPCR_TAMPFREQ_1 (0x2U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000200 */
  15130. #define RTC_TAMPCR_TAMPFREQ_2 (0x4U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000400 */
  15131. #define RTC_TAMPCR_TAMPTS_Pos (7U)
  15132. #define RTC_TAMPCR_TAMPTS_Msk (0x1U << RTC_TAMPCR_TAMPTS_Pos) /*!< 0x00000080 */
  15133. #define RTC_TAMPCR_TAMPTS RTC_TAMPCR_TAMPTS_Msk
  15134. #define RTC_TAMPCR_TAMP3_TRG_Pos (6U)
  15135. #define RTC_TAMPCR_TAMP3_TRG_Msk (0x1U << RTC_TAMPCR_TAMP3_TRG_Pos) /*!< 0x00000040 */
  15136. #define RTC_TAMPCR_TAMP3_TRG RTC_TAMPCR_TAMP3_TRG_Msk
  15137. #define RTC_TAMPCR_TAMP3E_Pos (5U)
  15138. #define RTC_TAMPCR_TAMP3E_Msk (0x1U << RTC_TAMPCR_TAMP3E_Pos) /*!< 0x00000020 */
  15139. #define RTC_TAMPCR_TAMP3E RTC_TAMPCR_TAMP3E_Msk
  15140. #define RTC_TAMPCR_TAMP2_TRG_Pos (4U)
  15141. #define RTC_TAMPCR_TAMP2_TRG_Msk (0x1U << RTC_TAMPCR_TAMP2_TRG_Pos) /*!< 0x00000010 */
  15142. #define RTC_TAMPCR_TAMP2_TRG RTC_TAMPCR_TAMP2_TRG_Msk
  15143. #define RTC_TAMPCR_TAMP2E_Pos (3U)
  15144. #define RTC_TAMPCR_TAMP2E_Msk (0x1U << RTC_TAMPCR_TAMP2E_Pos) /*!< 0x00000008 */
  15145. #define RTC_TAMPCR_TAMP2E RTC_TAMPCR_TAMP2E_Msk
  15146. #define RTC_TAMPCR_TAMPIE_Pos (2U)
  15147. #define RTC_TAMPCR_TAMPIE_Msk (0x1U << RTC_TAMPCR_TAMPIE_Pos) /*!< 0x00000004 */
  15148. #define RTC_TAMPCR_TAMPIE RTC_TAMPCR_TAMPIE_Msk
  15149. #define RTC_TAMPCR_TAMP1_TRG_Pos (1U)
  15150. #define RTC_TAMPCR_TAMP1_TRG_Msk (0x1U << RTC_TAMPCR_TAMP1_TRG_Pos) /*!< 0x00000002 */
  15151. #define RTC_TAMPCR_TAMP1_TRG RTC_TAMPCR_TAMP1_TRG_Msk
  15152. #define RTC_TAMPCR_TAMP1E_Pos (0U)
  15153. #define RTC_TAMPCR_TAMP1E_Msk (0x1U << RTC_TAMPCR_TAMP1E_Pos) /*!< 0x00000001 */
  15154. #define RTC_TAMPCR_TAMP1E RTC_TAMPCR_TAMP1E_Msk
  15155. /******************** Bits definition for RTC_ALRMASSR register *************/
  15156. #define RTC_ALRMASSR_MASKSS_Pos (24U)
  15157. #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */
  15158. #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk
  15159. #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */
  15160. #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */
  15161. #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */
  15162. #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */
  15163. #define RTC_ALRMASSR_SS_Pos (0U)
  15164. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  15165. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  15166. /******************** Bits definition for RTC_ALRMBSSR register *************/
  15167. #define RTC_ALRMBSSR_MASKSS_Pos (24U)
  15168. #define RTC_ALRMBSSR_MASKSS_Msk (0xFU << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */
  15169. #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk
  15170. #define RTC_ALRMBSSR_MASKSS_0 (0x1U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */
  15171. #define RTC_ALRMBSSR_MASKSS_1 (0x2U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */
  15172. #define RTC_ALRMBSSR_MASKSS_2 (0x4U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */
  15173. #define RTC_ALRMBSSR_MASKSS_3 (0x8U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */
  15174. #define RTC_ALRMBSSR_SS_Pos (0U)
  15175. #define RTC_ALRMBSSR_SS_Msk (0x7FFFU << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */
  15176. #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk
  15177. /******************** Bits definition for RTC_BKP0R register ****************/
  15178. #define RTC_OR_OUT_RMP_Pos (1U)
  15179. #define RTC_OR_OUT_RMP_Msk (0x1U << RTC_OR_OUT_RMP_Pos) /*!< 0x00000002 */
  15180. #define RTC_OR_OUT_RMP RTC_OR_OUT_RMP_Msk
  15181. #define RTC_OR_ALARMOUTTYPE_Pos (0U)
  15182. #define RTC_OR_ALARMOUTTYPE_Msk (0x1U << RTC_OR_ALARMOUTTYPE_Pos) /*!< 0x00000001 */
  15183. #define RTC_OR_ALARMOUTTYPE RTC_OR_ALARMOUTTYPE_Msk
  15184. /******************** Bits definition for RTC_BKP0R register ****************/
  15185. #define RTC_BKP0R_Pos (0U)
  15186. #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  15187. #define RTC_BKP0R RTC_BKP0R_Msk
  15188. /******************** Bits definition for RTC_BKP1R register ****************/
  15189. #define RTC_BKP1R_Pos (0U)
  15190. #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  15191. #define RTC_BKP1R RTC_BKP1R_Msk
  15192. /******************** Bits definition for RTC_BKP2R register ****************/
  15193. #define RTC_BKP2R_Pos (0U)
  15194. #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  15195. #define RTC_BKP2R RTC_BKP2R_Msk
  15196. /******************** Bits definition for RTC_BKP3R register ****************/
  15197. #define RTC_BKP3R_Pos (0U)
  15198. #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  15199. #define RTC_BKP3R RTC_BKP3R_Msk
  15200. /******************** Bits definition for RTC_BKP4R register ****************/
  15201. #define RTC_BKP4R_Pos (0U)
  15202. #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  15203. #define RTC_BKP4R RTC_BKP4R_Msk
  15204. /******************** Bits definition for RTC_BKP5R register ****************/
  15205. #define RTC_BKP5R_Pos (0U)
  15206. #define RTC_BKP5R_Msk (0xFFFFFFFFU << RTC_BKP5R_Pos) /*!< 0xFFFFFFFF */
  15207. #define RTC_BKP5R RTC_BKP5R_Msk
  15208. /******************** Bits definition for RTC_BKP6R register ****************/
  15209. #define RTC_BKP6R_Pos (0U)
  15210. #define RTC_BKP6R_Msk (0xFFFFFFFFU << RTC_BKP6R_Pos) /*!< 0xFFFFFFFF */
  15211. #define RTC_BKP6R RTC_BKP6R_Msk
  15212. /******************** Bits definition for RTC_BKP7R register ****************/
  15213. #define RTC_BKP7R_Pos (0U)
  15214. #define RTC_BKP7R_Msk (0xFFFFFFFFU << RTC_BKP7R_Pos) /*!< 0xFFFFFFFF */
  15215. #define RTC_BKP7R RTC_BKP7R_Msk
  15216. /******************** Bits definition for RTC_BKP8R register ****************/
  15217. #define RTC_BKP8R_Pos (0U)
  15218. #define RTC_BKP8R_Msk (0xFFFFFFFFU << RTC_BKP8R_Pos) /*!< 0xFFFFFFFF */
  15219. #define RTC_BKP8R RTC_BKP8R_Msk
  15220. /******************** Bits definition for RTC_BKP9R register ****************/
  15221. #define RTC_BKP9R_Pos (0U)
  15222. #define RTC_BKP9R_Msk (0xFFFFFFFFU << RTC_BKP9R_Pos) /*!< 0xFFFFFFFF */
  15223. #define RTC_BKP9R RTC_BKP9R_Msk
  15224. /******************** Bits definition for RTC_BKP10R register ***************/
  15225. #define RTC_BKP10R_Pos (0U)
  15226. #define RTC_BKP10R_Msk (0xFFFFFFFFU << RTC_BKP10R_Pos) /*!< 0xFFFFFFFF */
  15227. #define RTC_BKP10R RTC_BKP10R_Msk
  15228. /******************** Bits definition for RTC_BKP11R register ***************/
  15229. #define RTC_BKP11R_Pos (0U)
  15230. #define RTC_BKP11R_Msk (0xFFFFFFFFU << RTC_BKP11R_Pos) /*!< 0xFFFFFFFF */
  15231. #define RTC_BKP11R RTC_BKP11R_Msk
  15232. /******************** Bits definition for RTC_BKP12R register ***************/
  15233. #define RTC_BKP12R_Pos (0U)
  15234. #define RTC_BKP12R_Msk (0xFFFFFFFFU << RTC_BKP12R_Pos) /*!< 0xFFFFFFFF */
  15235. #define RTC_BKP12R RTC_BKP12R_Msk
  15236. /******************** Bits definition for RTC_BKP13R register ***************/
  15237. #define RTC_BKP13R_Pos (0U)
  15238. #define RTC_BKP13R_Msk (0xFFFFFFFFU << RTC_BKP13R_Pos) /*!< 0xFFFFFFFF */
  15239. #define RTC_BKP13R RTC_BKP13R_Msk
  15240. /******************** Bits definition for RTC_BKP14R register ***************/
  15241. #define RTC_BKP14R_Pos (0U)
  15242. #define RTC_BKP14R_Msk (0xFFFFFFFFU << RTC_BKP14R_Pos) /*!< 0xFFFFFFFF */
  15243. #define RTC_BKP14R RTC_BKP14R_Msk
  15244. /******************** Bits definition for RTC_BKP15R register ***************/
  15245. #define RTC_BKP15R_Pos (0U)
  15246. #define RTC_BKP15R_Msk (0xFFFFFFFFU << RTC_BKP15R_Pos) /*!< 0xFFFFFFFF */
  15247. #define RTC_BKP15R RTC_BKP15R_Msk
  15248. /******************** Bits definition for RTC_BKP16R register ***************/
  15249. #define RTC_BKP16R_Pos (0U)
  15250. #define RTC_BKP16R_Msk (0xFFFFFFFFU << RTC_BKP16R_Pos) /*!< 0xFFFFFFFF */
  15251. #define RTC_BKP16R RTC_BKP16R_Msk
  15252. /******************** Bits definition for RTC_BKP17R register ***************/
  15253. #define RTC_BKP17R_Pos (0U)
  15254. #define RTC_BKP17R_Msk (0xFFFFFFFFU << RTC_BKP17R_Pos) /*!< 0xFFFFFFFF */
  15255. #define RTC_BKP17R RTC_BKP17R_Msk
  15256. /******************** Bits definition for RTC_BKP18R register ***************/
  15257. #define RTC_BKP18R_Pos (0U)
  15258. #define RTC_BKP18R_Msk (0xFFFFFFFFU << RTC_BKP18R_Pos) /*!< 0xFFFFFFFF */
  15259. #define RTC_BKP18R RTC_BKP18R_Msk
  15260. /******************** Bits definition for RTC_BKP19R register ***************/
  15261. #define RTC_BKP19R_Pos (0U)
  15262. #define RTC_BKP19R_Msk (0xFFFFFFFFU << RTC_BKP19R_Pos) /*!< 0xFFFFFFFF */
  15263. #define RTC_BKP19R RTC_BKP19R_Msk
  15264. /******************** Bits definition for RTC_BKP20R register ***************/
  15265. #define RTC_BKP20R_Pos (0U)
  15266. #define RTC_BKP20R_Msk (0xFFFFFFFFU << RTC_BKP20R_Pos) /*!< 0xFFFFFFFF */
  15267. #define RTC_BKP20R RTC_BKP20R_Msk
  15268. /******************** Bits definition for RTC_BKP21R register ***************/
  15269. #define RTC_BKP21R_Pos (0U)
  15270. #define RTC_BKP21R_Msk (0xFFFFFFFFU << RTC_BKP21R_Pos) /*!< 0xFFFFFFFF */
  15271. #define RTC_BKP21R RTC_BKP21R_Msk
  15272. /******************** Bits definition for RTC_BKP22R register ***************/
  15273. #define RTC_BKP22R_Pos (0U)
  15274. #define RTC_BKP22R_Msk (0xFFFFFFFFU << RTC_BKP22R_Pos) /*!< 0xFFFFFFFF */
  15275. #define RTC_BKP22R RTC_BKP22R_Msk
  15276. /******************** Bits definition for RTC_BKP23R register ***************/
  15277. #define RTC_BKP23R_Pos (0U)
  15278. #define RTC_BKP23R_Msk (0xFFFFFFFFU << RTC_BKP23R_Pos) /*!< 0xFFFFFFFF */
  15279. #define RTC_BKP23R RTC_BKP23R_Msk
  15280. /******************** Bits definition for RTC_BKP24R register ***************/
  15281. #define RTC_BKP24R_Pos (0U)
  15282. #define RTC_BKP24R_Msk (0xFFFFFFFFU << RTC_BKP24R_Pos) /*!< 0xFFFFFFFF */
  15283. #define RTC_BKP24R RTC_BKP24R_Msk
  15284. /******************** Bits definition for RTC_BKP25R register ***************/
  15285. #define RTC_BKP25R_Pos (0U)
  15286. #define RTC_BKP25R_Msk (0xFFFFFFFFU << RTC_BKP25R_Pos) /*!< 0xFFFFFFFF */
  15287. #define RTC_BKP25R RTC_BKP25R_Msk
  15288. /******************** Bits definition for RTC_BKP26R register ***************/
  15289. #define RTC_BKP26R_Pos (0U)
  15290. #define RTC_BKP26R_Msk (0xFFFFFFFFU << RTC_BKP26R_Pos) /*!< 0xFFFFFFFF */
  15291. #define RTC_BKP26R RTC_BKP26R_Msk
  15292. /******************** Bits definition for RTC_BKP27R register ***************/
  15293. #define RTC_BKP27R_Pos (0U)
  15294. #define RTC_BKP27R_Msk (0xFFFFFFFFU << RTC_BKP27R_Pos) /*!< 0xFFFFFFFF */
  15295. #define RTC_BKP27R RTC_BKP27R_Msk
  15296. /******************** Bits definition for RTC_BKP28R register ***************/
  15297. #define RTC_BKP28R_Pos (0U)
  15298. #define RTC_BKP28R_Msk (0xFFFFFFFFU << RTC_BKP28R_Pos) /*!< 0xFFFFFFFF */
  15299. #define RTC_BKP28R RTC_BKP28R_Msk
  15300. /******************** Bits definition for RTC_BKP29R register ***************/
  15301. #define RTC_BKP29R_Pos (0U)
  15302. #define RTC_BKP29R_Msk (0xFFFFFFFFU << RTC_BKP29R_Pos) /*!< 0xFFFFFFFF */
  15303. #define RTC_BKP29R RTC_BKP29R_Msk
  15304. /******************** Bits definition for RTC_BKP30R register ***************/
  15305. #define RTC_BKP30R_Pos (0U)
  15306. #define RTC_BKP30R_Msk (0xFFFFFFFFU << RTC_BKP30R_Pos) /*!< 0xFFFFFFFF */
  15307. #define RTC_BKP30R RTC_BKP30R_Msk
  15308. /******************** Bits definition for RTC_BKP31R register ***************/
  15309. #define RTC_BKP31R_Pos (0U)
  15310. #define RTC_BKP31R_Msk (0xFFFFFFFFU << RTC_BKP31R_Pos) /*!< 0xFFFFFFFF */
  15311. #define RTC_BKP31R RTC_BKP31R_Msk
  15312. /******************** Number of backup registers ******************************/
  15313. #define RTC_BKP_NUMBER_Pos (5U)
  15314. #define RTC_BKP_NUMBER_Msk (0x1U << RTC_BKP_NUMBER_Pos) /*!< 0x00000020 */
  15315. #define RTC_BKP_NUMBER RTC_BKP_NUMBER_Msk
  15316. /******************************************************************************/
  15317. /* */
  15318. /* SPDIF-RX Interface */
  15319. /* */
  15320. /******************************************************************************/
  15321. /******************** Bit definition for SPDIF_CR register *******************/
  15322. #define SPDIFRX_CR_SPDIFEN_Pos (0U)
  15323. #define SPDIFRX_CR_SPDIFEN_Msk (0x3U << SPDIFRX_CR_SPDIFEN_Pos) /*!< 0x00000003 */
  15324. #define SPDIFRX_CR_SPDIFEN SPDIFRX_CR_SPDIFEN_Msk /*!<Peripheral Block Enable */
  15325. #define SPDIFRX_CR_RXDMAEN_Pos (2U)
  15326. #define SPDIFRX_CR_RXDMAEN_Msk (0x1U << SPDIFRX_CR_RXDMAEN_Pos) /*!< 0x00000004 */
  15327. #define SPDIFRX_CR_RXDMAEN SPDIFRX_CR_RXDMAEN_Msk /*!<Receiver DMA Enable for data flow */
  15328. #define SPDIFRX_CR_RXSTEO_Pos (3U)
  15329. #define SPDIFRX_CR_RXSTEO_Msk (0x1U << SPDIFRX_CR_RXSTEO_Pos) /*!< 0x00000008 */
  15330. #define SPDIFRX_CR_RXSTEO SPDIFRX_CR_RXSTEO_Msk /*!<Stereo Mode */
  15331. #define SPDIFRX_CR_DRFMT_Pos (4U)
  15332. #define SPDIFRX_CR_DRFMT_Msk (0x3U << SPDIFRX_CR_DRFMT_Pos) /*!< 0x00000030 */
  15333. #define SPDIFRX_CR_DRFMT SPDIFRX_CR_DRFMT_Msk /*!<RX Data format */
  15334. #define SPDIFRX_CR_PMSK_Pos (6U)
  15335. #define SPDIFRX_CR_PMSK_Msk (0x1U << SPDIFRX_CR_PMSK_Pos) /*!< 0x00000040 */
  15336. #define SPDIFRX_CR_PMSK SPDIFRX_CR_PMSK_Msk /*!<Mask Parity error bit */
  15337. #define SPDIFRX_CR_VMSK_Pos (7U)
  15338. #define SPDIFRX_CR_VMSK_Msk (0x1U << SPDIFRX_CR_VMSK_Pos) /*!< 0x00000080 */
  15339. #define SPDIFRX_CR_VMSK SPDIFRX_CR_VMSK_Msk /*!<Mask of Validity bit */
  15340. #define SPDIFRX_CR_CUMSK_Pos (8U)
  15341. #define SPDIFRX_CR_CUMSK_Msk (0x1U << SPDIFRX_CR_CUMSK_Pos) /*!< 0x00000100 */
  15342. #define SPDIFRX_CR_CUMSK SPDIFRX_CR_CUMSK_Msk /*!<Mask of channel status and user bits */
  15343. #define SPDIFRX_CR_PTMSK_Pos (9U)
  15344. #define SPDIFRX_CR_PTMSK_Msk (0x1U << SPDIFRX_CR_PTMSK_Pos) /*!< 0x00000200 */
  15345. #define SPDIFRX_CR_PTMSK SPDIFRX_CR_PTMSK_Msk /*!<Mask of Preamble Type bits */
  15346. #define SPDIFRX_CR_CBDMAEN_Pos (10U)
  15347. #define SPDIFRX_CR_CBDMAEN_Msk (0x1U << SPDIFRX_CR_CBDMAEN_Pos) /*!< 0x00000400 */
  15348. #define SPDIFRX_CR_CBDMAEN SPDIFRX_CR_CBDMAEN_Msk /*!<Control Buffer DMA ENable for control flow */
  15349. #define SPDIFRX_CR_CHSEL_Pos (11U)
  15350. #define SPDIFRX_CR_CHSEL_Msk (0x1U << SPDIFRX_CR_CHSEL_Pos) /*!< 0x00000800 */
  15351. #define SPDIFRX_CR_CHSEL SPDIFRX_CR_CHSEL_Msk /*!<Channel Selection */
  15352. #define SPDIFRX_CR_NBTR_Pos (12U)
  15353. #define SPDIFRX_CR_NBTR_Msk (0x3U << SPDIFRX_CR_NBTR_Pos) /*!< 0x00003000 */
  15354. #define SPDIFRX_CR_NBTR SPDIFRX_CR_NBTR_Msk /*!<Maximum allowed re-tries during synchronization phase */
  15355. #define SPDIFRX_CR_WFA_Pos (14U)
  15356. #define SPDIFRX_CR_WFA_Msk (0x1U << SPDIFRX_CR_WFA_Pos) /*!< 0x00004000 */
  15357. #define SPDIFRX_CR_WFA SPDIFRX_CR_WFA_Msk /*!<Wait For Activity */
  15358. #define SPDIFRX_CR_INSEL_Pos (16U)
  15359. #define SPDIFRX_CR_INSEL_Msk (0x7U << SPDIFRX_CR_INSEL_Pos) /*!< 0x00070000 */
  15360. #define SPDIFRX_CR_INSEL SPDIFRX_CR_INSEL_Msk /*!<SPDIF input selection */
  15361. #define SPDIFRX_CR_CKSEN_Pos (20U)
  15362. #define SPDIFRX_CR_CKSEN_Msk (0x1U << SPDIFRX_CR_CKSEN_Pos) /*!< 0x00100000 */
  15363. #define SPDIFRX_CR_CKSEN SPDIFRX_CR_CKSEN_Msk /*!<Symbol Clock Enable */
  15364. #define SPDIFRX_CR_CKSBKPEN_Pos (21U)
  15365. #define SPDIFRX_CR_CKSBKPEN_Msk (0x1U << SPDIFRX_CR_CKSBKPEN_Pos) /*!< 0x00200000 */
  15366. #define SPDIFRX_CR_CKSBKPEN SPDIFRX_CR_CKSBKPEN_Msk /*!<Backup Symbol Clock Enable */
  15367. /******************* Bit definition for SPDIFRX_IMR register *******************/
  15368. #define SPDIFRX_IMR_RXNEIE_Pos (0U)
  15369. #define SPDIFRX_IMR_RXNEIE_Msk (0x1U << SPDIFRX_IMR_RXNEIE_Pos) /*!< 0x00000001 */
  15370. #define SPDIFRX_IMR_RXNEIE SPDIFRX_IMR_RXNEIE_Msk /*!<RXNE interrupt enable */
  15371. #define SPDIFRX_IMR_CSRNEIE_Pos (1U)
  15372. #define SPDIFRX_IMR_CSRNEIE_Msk (0x1U << SPDIFRX_IMR_CSRNEIE_Pos) /*!< 0x00000002 */
  15373. #define SPDIFRX_IMR_CSRNEIE SPDIFRX_IMR_CSRNEIE_Msk /*!<Control Buffer Ready Interrupt Enable */
  15374. #define SPDIFRX_IMR_PERRIE_Pos (2U)
  15375. #define SPDIFRX_IMR_PERRIE_Msk (0x1U << SPDIFRX_IMR_PERRIE_Pos) /*!< 0x00000004 */
  15376. #define SPDIFRX_IMR_PERRIE SPDIFRX_IMR_PERRIE_Msk /*!<Parity error interrupt enable */
  15377. #define SPDIFRX_IMR_OVRIE_Pos (3U)
  15378. #define SPDIFRX_IMR_OVRIE_Msk (0x1U << SPDIFRX_IMR_OVRIE_Pos) /*!< 0x00000008 */
  15379. #define SPDIFRX_IMR_OVRIE SPDIFRX_IMR_OVRIE_Msk /*!<Overrun error Interrupt Enable */
  15380. #define SPDIFRX_IMR_SBLKIE_Pos (4U)
  15381. #define SPDIFRX_IMR_SBLKIE_Msk (0x1U << SPDIFRX_IMR_SBLKIE_Pos) /*!< 0x00000010 */
  15382. #define SPDIFRX_IMR_SBLKIE SPDIFRX_IMR_SBLKIE_Msk /*!<Synchronization Block Detected Interrupt Enable */
  15383. #define SPDIFRX_IMR_SYNCDIE_Pos (5U)
  15384. #define SPDIFRX_IMR_SYNCDIE_Msk (0x1U << SPDIFRX_IMR_SYNCDIE_Pos) /*!< 0x00000020 */
  15385. #define SPDIFRX_IMR_SYNCDIE SPDIFRX_IMR_SYNCDIE_Msk /*!<Synchronization Done */
  15386. #define SPDIFRX_IMR_IFEIE_Pos (6U)
  15387. #define SPDIFRX_IMR_IFEIE_Msk (0x1U << SPDIFRX_IMR_IFEIE_Pos) /*!< 0x00000040 */
  15388. #define SPDIFRX_IMR_IFEIE SPDIFRX_IMR_IFEIE_Msk /*!<Serial Interface Error Interrupt Enable */
  15389. /******************* Bit definition for SPDIFRX_SR register *******************/
  15390. #define SPDIFRX_SR_RXNE_Pos (0U)
  15391. #define SPDIFRX_SR_RXNE_Msk (0x1U << SPDIFRX_SR_RXNE_Pos) /*!< 0x00000001 */
  15392. #define SPDIFRX_SR_RXNE SPDIFRX_SR_RXNE_Msk /*!<Read data register not empty */
  15393. #define SPDIFRX_SR_CSRNE_Pos (1U)
  15394. #define SPDIFRX_SR_CSRNE_Msk (0x1U << SPDIFRX_SR_CSRNE_Pos) /*!< 0x00000002 */
  15395. #define SPDIFRX_SR_CSRNE SPDIFRX_SR_CSRNE_Msk /*!<The Control Buffer register is not empty */
  15396. #define SPDIFRX_SR_PERR_Pos (2U)
  15397. #define SPDIFRX_SR_PERR_Msk (0x1U << SPDIFRX_SR_PERR_Pos) /*!< 0x00000004 */
  15398. #define SPDIFRX_SR_PERR SPDIFRX_SR_PERR_Msk /*!<Parity error */
  15399. #define SPDIFRX_SR_OVR_Pos (3U)
  15400. #define SPDIFRX_SR_OVR_Msk (0x1U << SPDIFRX_SR_OVR_Pos) /*!< 0x00000008 */
  15401. #define SPDIFRX_SR_OVR SPDIFRX_SR_OVR_Msk /*!<Overrun error */
  15402. #define SPDIFRX_SR_SBD_Pos (4U)
  15403. #define SPDIFRX_SR_SBD_Msk (0x1U << SPDIFRX_SR_SBD_Pos) /*!< 0x00000010 */
  15404. #define SPDIFRX_SR_SBD SPDIFRX_SR_SBD_Msk /*!<Synchronization Block Detected */
  15405. #define SPDIFRX_SR_SYNCD_Pos (5U)
  15406. #define SPDIFRX_SR_SYNCD_Msk (0x1U << SPDIFRX_SR_SYNCD_Pos) /*!< 0x00000020 */
  15407. #define SPDIFRX_SR_SYNCD SPDIFRX_SR_SYNCD_Msk /*!<Synchronization Done */
  15408. #define SPDIFRX_SR_FERR_Pos (6U)
  15409. #define SPDIFRX_SR_FERR_Msk (0x1U << SPDIFRX_SR_FERR_Pos) /*!< 0x00000040 */
  15410. #define SPDIFRX_SR_FERR SPDIFRX_SR_FERR_Msk /*!<Framing error */
  15411. #define SPDIFRX_SR_SERR_Pos (7U)
  15412. #define SPDIFRX_SR_SERR_Msk (0x1U << SPDIFRX_SR_SERR_Pos) /*!< 0x00000080 */
  15413. #define SPDIFRX_SR_SERR SPDIFRX_SR_SERR_Msk /*!<Synchronization error */
  15414. #define SPDIFRX_SR_TERR_Pos (8U)
  15415. #define SPDIFRX_SR_TERR_Msk (0x1U << SPDIFRX_SR_TERR_Pos) /*!< 0x00000100 */
  15416. #define SPDIFRX_SR_TERR SPDIFRX_SR_TERR_Msk /*!<Time-out error */
  15417. #define SPDIFRX_SR_WIDTH5_Pos (16U)
  15418. #define SPDIFRX_SR_WIDTH5_Msk (0x7FFFU << SPDIFRX_SR_WIDTH5_Pos) /*!< 0x7FFF0000 */
  15419. #define SPDIFRX_SR_WIDTH5 SPDIFRX_SR_WIDTH5_Msk /*!<Duration of 5 symbols counted with spdif_clk */
  15420. /******************* Bit definition for SPDIFRX_IFCR register *******************/
  15421. #define SPDIFRX_IFCR_PERRCF_Pos (2U)
  15422. #define SPDIFRX_IFCR_PERRCF_Msk (0x1U << SPDIFRX_IFCR_PERRCF_Pos) /*!< 0x00000004 */
  15423. #define SPDIFRX_IFCR_PERRCF SPDIFRX_IFCR_PERRCF_Msk /*!<Clears the Parity error flag */
  15424. #define SPDIFRX_IFCR_OVRCF_Pos (3U)
  15425. #define SPDIFRX_IFCR_OVRCF_Msk (0x1U << SPDIFRX_IFCR_OVRCF_Pos) /*!< 0x00000008 */
  15426. #define SPDIFRX_IFCR_OVRCF SPDIFRX_IFCR_OVRCF_Msk /*!<Clears the Overrun error flag */
  15427. #define SPDIFRX_IFCR_SBDCF_Pos (4U)
  15428. #define SPDIFRX_IFCR_SBDCF_Msk (0x1U << SPDIFRX_IFCR_SBDCF_Pos) /*!< 0x00000010 */
  15429. #define SPDIFRX_IFCR_SBDCF SPDIFRX_IFCR_SBDCF_Msk /*!<Clears the Synchronization Block Detected flag */
  15430. #define SPDIFRX_IFCR_SYNCDCF_Pos (5U)
  15431. #define SPDIFRX_IFCR_SYNCDCF_Msk (0x1U << SPDIFRX_IFCR_SYNCDCF_Pos) /*!< 0x00000020 */
  15432. #define SPDIFRX_IFCR_SYNCDCF SPDIFRX_IFCR_SYNCDCF_Msk /*!<Clears the Synchronization Done flag */
  15433. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b00 case) *******************/
  15434. #define SPDIFRX_DR0_DR_Pos (0U)
  15435. #define SPDIFRX_DR0_DR_Msk (0xFFFFFFU << SPDIFRX_DR0_DR_Pos) /*!< 0x00FFFFFF */
  15436. #define SPDIFRX_DR0_DR SPDIFRX_DR0_DR_Msk /*!<Data value */
  15437. #define SPDIFRX_DR0_PE_Pos (24U)
  15438. #define SPDIFRX_DR0_PE_Msk (0x1U << SPDIFRX_DR0_PE_Pos) /*!< 0x01000000 */
  15439. #define SPDIFRX_DR0_PE SPDIFRX_DR0_PE_Msk /*!<Parity Error bit */
  15440. #define SPDIFRX_DR0_V_Pos (25U)
  15441. #define SPDIFRX_DR0_V_Msk (0x1U << SPDIFRX_DR0_V_Pos) /*!< 0x02000000 */
  15442. #define SPDIFRX_DR0_V SPDIFRX_DR0_V_Msk /*!<Validity bit */
  15443. #define SPDIFRX_DR0_U_Pos (26U)
  15444. #define SPDIFRX_DR0_U_Msk (0x1U << SPDIFRX_DR0_U_Pos) /*!< 0x04000000 */
  15445. #define SPDIFRX_DR0_U SPDIFRX_DR0_U_Msk /*!<User bit */
  15446. #define SPDIFRX_DR0_C_Pos (27U)
  15447. #define SPDIFRX_DR0_C_Msk (0x1U << SPDIFRX_DR0_C_Pos) /*!< 0x08000000 */
  15448. #define SPDIFRX_DR0_C SPDIFRX_DR0_C_Msk /*!<Channel Status bit */
  15449. #define SPDIFRX_DR0_PT_Pos (28U)
  15450. #define SPDIFRX_DR0_PT_Msk (0x3U << SPDIFRX_DR0_PT_Pos) /*!< 0x30000000 */
  15451. #define SPDIFRX_DR0_PT SPDIFRX_DR0_PT_Msk /*!<Preamble Type */
  15452. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b01 case) *******************/
  15453. #define SPDIFRX_DR1_DR_Pos (8U)
  15454. #define SPDIFRX_DR1_DR_Msk (0xFFFFFFU << SPDIFRX_DR1_DR_Pos) /*!< 0xFFFFFF00 */
  15455. #define SPDIFRX_DR1_DR SPDIFRX_DR1_DR_Msk /*!<Data value */
  15456. #define SPDIFRX_DR1_PT_Pos (4U)
  15457. #define SPDIFRX_DR1_PT_Msk (0x3U << SPDIFRX_DR1_PT_Pos) /*!< 0x00000030 */
  15458. #define SPDIFRX_DR1_PT SPDIFRX_DR1_PT_Msk /*!<Preamble Type */
  15459. #define SPDIFRX_DR1_C_Pos (3U)
  15460. #define SPDIFRX_DR1_C_Msk (0x1U << SPDIFRX_DR1_C_Pos) /*!< 0x00000008 */
  15461. #define SPDIFRX_DR1_C SPDIFRX_DR1_C_Msk /*!<Channel Status bit */
  15462. #define SPDIFRX_DR1_U_Pos (2U)
  15463. #define SPDIFRX_DR1_U_Msk (0x1U << SPDIFRX_DR1_U_Pos) /*!< 0x00000004 */
  15464. #define SPDIFRX_DR1_U SPDIFRX_DR1_U_Msk /*!<User bit */
  15465. #define SPDIFRX_DR1_V_Pos (1U)
  15466. #define SPDIFRX_DR1_V_Msk (0x1U << SPDIFRX_DR1_V_Pos) /*!< 0x00000002 */
  15467. #define SPDIFRX_DR1_V SPDIFRX_DR1_V_Msk /*!<Validity bit */
  15468. #define SPDIFRX_DR1_PE_Pos (0U)
  15469. #define SPDIFRX_DR1_PE_Msk (0x1U << SPDIFRX_DR1_PE_Pos) /*!< 0x00000001 */
  15470. #define SPDIFRX_DR1_PE SPDIFRX_DR1_PE_Msk /*!<Parity Error bit */
  15471. /******************* Bit definition for SPDIFRX_DR register (DRFMT = 0b10 case) *******************/
  15472. #define SPDIFRX_DR1_DRNL1_Pos (16U)
  15473. #define SPDIFRX_DR1_DRNL1_Msk (0xFFFFU << SPDIFRX_DR1_DRNL1_Pos) /*!< 0xFFFF0000 */
  15474. #define SPDIFRX_DR1_DRNL1 SPDIFRX_DR1_DRNL1_Msk /*!<Data value Channel B */
  15475. #define SPDIFRX_DR1_DRNL2_Pos (0U)
  15476. #define SPDIFRX_DR1_DRNL2_Msk (0xFFFFU << SPDIFRX_DR1_DRNL2_Pos) /*!< 0x0000FFFF */
  15477. #define SPDIFRX_DR1_DRNL2 SPDIFRX_DR1_DRNL2_Msk /*!<Data value Channel A */
  15478. /******************* Bit definition for SPDIFRX_CSR register *******************/
  15479. #define SPDIFRX_CSR_USR_Pos (0U)
  15480. #define SPDIFRX_CSR_USR_Msk (0xFFFFU << SPDIFRX_CSR_USR_Pos) /*!< 0x0000FFFF */
  15481. #define SPDIFRX_CSR_USR SPDIFRX_CSR_USR_Msk /*!<User data information */
  15482. #define SPDIFRX_CSR_CS_Pos (16U)
  15483. #define SPDIFRX_CSR_CS_Msk (0xFFU << SPDIFRX_CSR_CS_Pos) /*!< 0x00FF0000 */
  15484. #define SPDIFRX_CSR_CS SPDIFRX_CSR_CS_Msk /*!<Channel A status information */
  15485. #define SPDIFRX_CSR_SOB_Pos (24U)
  15486. #define SPDIFRX_CSR_SOB_Msk (0x1U << SPDIFRX_CSR_SOB_Pos) /*!< 0x01000000 */
  15487. #define SPDIFRX_CSR_SOB SPDIFRX_CSR_SOB_Msk /*!<Start Of Block */
  15488. /******************* Bit definition for SPDIFRX_DIR register *******************/
  15489. #define SPDIFRX_DIR_THI_Pos (0U)
  15490. #define SPDIFRX_DIR_THI_Msk (0x1FFFU << SPDIFRX_DIR_THI_Pos) /*!< 0x00001FFF */
  15491. #define SPDIFRX_DIR_THI SPDIFRX_DIR_THI_Msk /*!<Threshold LOW */
  15492. #define SPDIFRX_DIR_TLO_Pos (16U)
  15493. #define SPDIFRX_DIR_TLO_Msk (0x1FFFU << SPDIFRX_DIR_TLO_Pos) /*!< 0x1FFF0000 */
  15494. #define SPDIFRX_DIR_TLO SPDIFRX_DIR_TLO_Msk /*!<Threshold HIGH */
  15495. /******************* Bit definition for SPDIFRX_VERR register *******************/
  15496. #define SPDIFRX_VERR_MINREV_Pos (0U)
  15497. #define SPDIFRX_VERR_MINREV_Msk (0xFU << SPDIFRX_VERR_MINREV_Pos) /*!< 0x0000000F */
  15498. #define SPDIFRX_VERR_MINREV SPDIFRX_VERR_MINREV_Msk /*!<SPDIFRX Minor revision */
  15499. #define SPDIFRX_VERR_MAJREV_Pos (4U)
  15500. #define SPDIFRX_VERR_MAJREV_Msk (0xFU << SPDIFRX_VERR_MAJREV_Pos) /*!< 0x000000F0 */
  15501. #define SPDIFRX_VERR_MAJREV SPDIFRX_VERR_MAJREV_Msk /*!<SPDIFRX Major revision */
  15502. /******************* Bit definition for SPDIFRX_IDR register *******************/
  15503. #define SPDIFRX_IDR_ID_Pos (0U)
  15504. #define SPDIFRX_IDR_ID_Msk (0xFFFFFFFFU << SPDIFRX_IDR_ID_Pos) /*!< 0xFFFFFFFF */
  15505. #define SPDIFRX_IDR_ID SPDIFRX_IDR_ID_Msk /*!<SPDIFRX identifier */
  15506. /******************* Bit definition for SPDIFRX_SIDR register *******************/
  15507. #define SPDIFRX_SIDR_SID_Pos (0U)
  15508. #define SPDIFRX_SIDR_SID_Msk (0xFFFFFFFFU << SPDIFRX_SIDR_SID_Pos) /*!< 0xFFFFFFFF */
  15509. #define SPDIFRX_SIDR_SID SPDIFRX_SIDR_SID_Msk /*!<Size of the memory region allocated to SPDIFRX registers */
  15510. /******************************************************************************/
  15511. /* */
  15512. /* Serial Audio Interface */
  15513. /* */
  15514. /******************************************************************************/
  15515. /******************** Bit definition for SAI_GCR register *******************/
  15516. #define SAI_GCR_SYNCIN 0x00000003U /*!<SYNCIN[1:0] bits (Synchronization Inputs) */
  15517. #define SAI_GCR_SYNCIN_0 0x00000001U /*!<Bit 0 */
  15518. #define SAI_GCR_SYNCIN_1 0x00000002U /*!<Bit 1 */
  15519. #define SAI_GCR_SYNCOUT 0x00000030U /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
  15520. #define SAI_GCR_SYNCOUT_0 0x00000010U /*!<Bit 0 */
  15521. #define SAI_GCR_SYNCOUT_1 0x00000020U /*!<Bit 1 */
  15522. /******************* Bit definition for SAI_xCR1 register *******************/
  15523. #define SAI_xCR1_MODE 0x00000003U /*!<MODE[1:0] bits (Audio Block Mode) */
  15524. #define SAI_xCR1_MODE_0 0x00000001U /*!<Bit 0 */
  15525. #define SAI_xCR1_MODE_1 0x00000002U /*!<Bit 1 */
  15526. #define SAI_xCR1_PRTCFG 0x0000000CU /*!<PRTCFG[1:0] bits (Protocol Configuration) */
  15527. #define SAI_xCR1_PRTCFG_0 0x00000004U /*!<Bit 0 */
  15528. #define SAI_xCR1_PRTCFG_1 0x00000008U /*!<Bit 1 */
  15529. #define SAI_xCR1_DS 0x000000E0U /*!<DS[1:0] bits (Data Size) */
  15530. #define SAI_xCR1_DS_0 0x00000020U /*!<Bit 0 */
  15531. #define SAI_xCR1_DS_1 0x00000040U /*!<Bit 1 */
  15532. #define SAI_xCR1_DS_2 0x00000080U /*!<Bit 2 */
  15533. #define SAI_xCR1_LSBFIRST 0x00000100U /*!<LSB First Configuration */
  15534. #define SAI_xCR1_CKSTR 0x00000200U /*!<ClocK STRobing edge */
  15535. #define SAI_xCR1_SYNCEN 0x00000C00U /*!<SYNCEN[1:0](SYNChronization ENable) */
  15536. #define SAI_xCR1_SYNCEN_0 0x00000400U /*!<Bit 0 */
  15537. #define SAI_xCR1_SYNCEN_1 0x00000800U /*!<Bit 1 */
  15538. #define SAI_xCR1_MONO 0x00001000U /*!<Mono mode */
  15539. #define SAI_xCR1_OUTDRIV 0x00002000U /*!<Output Drive */
  15540. #define SAI_xCR1_SAIEN 0x00010000U /*!<Audio Block enable */
  15541. #define SAI_xCR1_DMAEN 0x00020000U /*!<DMA enable */
  15542. #define SAI_xCR1_NOMCK 0x00080000U /*!<No Divider Configuration */
  15543. #define SAI_xCR1_MCKDIV 0x03F00000U /*!<MCKDIV[5:0] (Master ClocK Divider) */
  15544. #define SAI_xCR1_MCKDIV_0 0x00100000U /*!<Bit 0 */
  15545. #define SAI_xCR1_MCKDIV_1 0x00200000U /*!<Bit 1 */
  15546. #define SAI_xCR1_MCKDIV_2 0x00400000U /*!<Bit 2 */
  15547. #define SAI_xCR1_MCKDIV_3 0x00800000U /*!<Bit 3 */
  15548. #define SAI_xCR1_MCKDIV_4 0x01000000U /*!<Bit 4 */
  15549. #define SAI_xCR1_MCKDIV_5 0x02000000U /*!<Bit 5 */
  15550. #define SAI_xCR1_OSR 0x04000000U /*!<OverSampling Ratio for master clock */
  15551. /******************* Bit definition for SAI_xCR2 register *******************/
  15552. #define SAI_xCR2_FTH 0x00000007U /*!<FTH[2:0](Fifo THreshold) */
  15553. #define SAI_xCR2_FTH_0 0x00000001U /*!<Bit 0 */
  15554. #define SAI_xCR2_FTH_1 0x00000002U /*!<Bit 1 */
  15555. #define SAI_xCR2_FTH_2 0x00000004U /*!<Bit 2 */
  15556. #define SAI_xCR2_FFLUSH 0x00000008U /*!<Fifo FLUSH */
  15557. #define SAI_xCR2_TRIS 0x00000010U /*!<TRIState Management on data line */
  15558. #define SAI_xCR2_MUTE 0x00000020U /*!<Mute mode */
  15559. #define SAI_xCR2_MUTEVAL 0x00000040U /*!<Muate value */
  15560. #define SAI_xCR2_MUTECNT 0x00001F80U /*!<MUTECNT[5:0] (MUTE counter) */
  15561. #define SAI_xCR2_MUTECNT_0 0x00000080U /*!<Bit 0 */
  15562. #define SAI_xCR2_MUTECNT_1 0x00000100U /*!<Bit 1 */
  15563. #define SAI_xCR2_MUTECNT_2 0x00000200U /*!<Bit 2 */
  15564. #define SAI_xCR2_MUTECNT_3 0x00000400U /*!<Bit 3 */
  15565. #define SAI_xCR2_MUTECNT_4 0x00000800U /*!<Bit 4 */
  15566. #define SAI_xCR2_MUTECNT_5 0x00001000U /*!<Bit 5 */
  15567. #define SAI_xCR2_CPL 0x00002000U /*!< Complement Bit */
  15568. #define SAI_xCR2_COMP 0x0000C000U /*!<COMP[1:0] (Companding mode) */
  15569. #define SAI_xCR2_COMP_0 0x00004000U /*!<Bit 0 */
  15570. #define SAI_xCR2_COMP_1 0x00008000U /*!<Bit 1 */
  15571. /****************** Bit definition for SAI_xFRCR register *******************/
  15572. #define SAI_xFRCR_FRL 0x000000FFU /*!<FRL[7:0](FRame Length) */
  15573. #define SAI_xFRCR_FRL_0 0x00000001U /*!<Bit 0 */
  15574. #define SAI_xFRCR_FRL_1 0x00000002U /*!<Bit 1 */
  15575. #define SAI_xFRCR_FRL_2 0x00000004U /*!<Bit 2 */
  15576. #define SAI_xFRCR_FRL_3 0x00000008U /*!<Bit 3 */
  15577. #define SAI_xFRCR_FRL_4 0x00000010U /*!<Bit 4 */
  15578. #define SAI_xFRCR_FRL_5 0x00000020U /*!<Bit 5 */
  15579. #define SAI_xFRCR_FRL_6 0x00000040U /*!<Bit 6 */
  15580. #define SAI_xFRCR_FRL_7 0x00000080U /*!<Bit 7 */
  15581. #define SAI_xFRCR_FSALL 0x00007F00U /*!<FSALL[6:0] (Frame Synchronization Active Level Length) */
  15582. #define SAI_xFRCR_FSALL_0 0x00000100U /*!<Bit 0 */
  15583. #define SAI_xFRCR_FSALL_1 0x00000200U /*!<Bit 1 */
  15584. #define SAI_xFRCR_FSALL_2 0x00000400U /*!<Bit 2 */
  15585. #define SAI_xFRCR_FSALL_3 0x00000800U /*!<Bit 3 */
  15586. #define SAI_xFRCR_FSALL_4 0x00001000U /*!<Bit 4 */
  15587. #define SAI_xFRCR_FSALL_5 0x00002000U /*!<Bit 5 */
  15588. #define SAI_xFRCR_FSALL_6 0x00004000U /*!<Bit 6 */
  15589. #define SAI_xFRCR_FSDEF 0x00010000U /*!<Frame Synchronization Definition */
  15590. #define SAI_xFRCR_FSPOL 0x00020000U /*!<Frame Synchronization POLarity */
  15591. #define SAI_xFRCR_FSOFF 0x00040000U /*!<Frame Synchronization OFFset */
  15592. /* Legacy define */
  15593. #define SAI_xFRCR_FSPO SAI_xFRCR_FSPOL
  15594. /****************** Bit definition for SAI_xSLOTR register *******************/
  15595. #define SAI_xSLOTR_FBOFF 0x0000001FU /*!<FBOFF[4:0](First Bit Offset) */
  15596. #define SAI_xSLOTR_FBOFF_0 0x00000001U /*!<Bit 0 */
  15597. #define SAI_xSLOTR_FBOFF_1 0x00000002U /*!<Bit 1 */
  15598. #define SAI_xSLOTR_FBOFF_2 0x00000004U /*!<Bit 2 */
  15599. #define SAI_xSLOTR_FBOFF_3 0x00000008U /*!<Bit 3 */
  15600. #define SAI_xSLOTR_FBOFF_4 0x00000010U /*!<Bit 4 */
  15601. #define SAI_xSLOTR_SLOTSZ 0x000000C0U /*!<SLOTSZ[1:0] (Slot size) */
  15602. #define SAI_xSLOTR_SLOTSZ_0 0x00000040U /*!<Bit 0 */
  15603. #define SAI_xSLOTR_SLOTSZ_1 0x00000080U /*!<Bit 1 */
  15604. #define SAI_xSLOTR_NBSLOT 0x00000F00U /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */
  15605. #define SAI_xSLOTR_NBSLOT_0 0x00000100U /*!<Bit 0 */
  15606. #define SAI_xSLOTR_NBSLOT_1 0x00000200U /*!<Bit 1 */
  15607. #define SAI_xSLOTR_NBSLOT_2 0x00000400U /*!<Bit 2 */
  15608. #define SAI_xSLOTR_NBSLOT_3 0x00000800U /*!<Bit 3 */
  15609. #define SAI_xSLOTR_SLOTEN 0xFFFF0000U /*!<SLOTEN[15:0] (Slot Enable) */
  15610. /******************* Bit definition for SAI_xIMR register *******************/
  15611. #define SAI_xIMR_OVRUDRIE 0x00000001U /*!<Overrun underrun interrupt enable */
  15612. #define SAI_xIMR_MUTEDETIE 0x00000002U /*!<Mute detection interrupt enable */
  15613. #define SAI_xIMR_WCKCFGIE 0x00000004U /*!<Wrong Clock Configuration interrupt enable */
  15614. #define SAI_xIMR_FREQIE 0x00000008U /*!<FIFO request interrupt enable */
  15615. #define SAI_xIMR_CNRDYIE 0x00000010U /*!<Codec not ready interrupt enable */
  15616. #define SAI_xIMR_AFSDETIE 0x00000020U /*!<Anticipated frame synchronization detection interrupt enable */
  15617. #define SAI_xIMR_LFSDETIE 0x00000040U /*!<Late frame synchronization detection interrupt enable */
  15618. /******************** Bit definition for SAI_xSR register *******************/
  15619. #define SAI_xSR_OVRUDR 0x00000001U /*!<Overrun underrun */
  15620. #define SAI_xSR_MUTEDET 0x00000002U /*!<Mute detection */
  15621. #define SAI_xSR_WCKCFG 0x00000004U /*!<Wrong Clock Configuration */
  15622. #define SAI_xSR_FREQ 0x00000008U /*!<FIFO request */
  15623. #define SAI_xSR_CNRDY 0x00000010U /*!<Codec not ready */
  15624. #define SAI_xSR_AFSDET 0x00000020U /*!<Anticipated frame synchronization detection */
  15625. #define SAI_xSR_LFSDET 0x00000040U /*!<Late frame synchronization detection */
  15626. #define SAI_xSR_FLVL 0x00070000U /*!<FLVL[2:0] (FIFO Level Threshold) */
  15627. #define SAI_xSR_FLVL_0 0x00010000U /*!<Bit 0 */
  15628. #define SAI_xSR_FLVL_1 0x00020000U /*!<Bit 1 */
  15629. #define SAI_xSR_FLVL_2 0x00040000U /*!<Bit 2 */
  15630. /****************** Bit definition for SAI_xCLRFR register ******************/
  15631. #define SAI_xCLRFR_COVRUDR 0x00000001U /*!<Clear Overrun underrun */
  15632. #define SAI_xCLRFR_CMUTEDET 0x00000002U /*!<Clear Mute detection */
  15633. #define SAI_xCLRFR_CWCKCFG 0x00000004U /*!<Clear Wrong Clock Configuration */
  15634. #define SAI_xCLRFR_CFREQ 0x00000008U /*!<Clear FIFO request */
  15635. #define SAI_xCLRFR_CCNRDY 0x00000010U /*!<Clear Codec not ready */
  15636. #define SAI_xCLRFR_CAFSDET 0x00000020U /*!<Clear Anticipated frame synchronization detection */
  15637. #define SAI_xCLRFR_CLFSDET 0x00000040U /*!<Clear Late frame synchronization detection */
  15638. /****************** Bit definition for SAI_xDR register *********************/
  15639. #define SAI_xDR_DATA 0xFFFFFFFFU
  15640. /******************* Bit definition for SAI_PDMCR register ******************/
  15641. #define SAI_PDMCR_PDMEN 0x00000001U /*!<PDM Enable */
  15642. #define SAI_PDMCR_MICNBR 0x00000030U /*!<Number of microphones */
  15643. #define SAI_PDMCR_MICNBR_0 0x00000010U /*!<Bit 0 */
  15644. #define SAI_PDMCR_MICNBR_1 0x00000020U /*!<Bit 1 */
  15645. #define SAI_PDMCR_CKEN1 0x00000100U /*!<Clock enable of bitstream clock number 1 */
  15646. #define SAI_PDMCR_CKEN2 0x00000200U /*!<Clock enable of bitstream clock number 2 */
  15647. #define SAI_PDMCR_CKEN3 0x00000400U /*!<Clock enable of bitstream clock number 3 */
  15648. #define SAI_PDMCR_CKEN4 0x00000800U /*!<Clock enable of bitstream clock number 4 */
  15649. /****************** Bit definition for SAI_PDMDLY register ******************/
  15650. #define SAI_PDMDLY_DLYM1L 0x00000007U /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
  15651. #define SAI_PDMDLY_DLYM1L_0 0x00000001U /*!<Bit 0 */
  15652. #define SAI_PDMDLY_DLYM1L_1 0x00000002U /*!<Bit 1 */
  15653. #define SAI_PDMDLY_DLYM1L_2 0x00000004U /*!<Bit 2 */
  15654. #define SAI_PDMDLY_DLYM1R 0x00000070U /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
  15655. #define SAI_PDMDLY_DLYM1R_0 0x00000010U /*!<Bit 0 */
  15656. #define SAI_PDMDLY_DLYM1R_1 0x00000020U /*!<Bit 1 */
  15657. #define SAI_PDMDLY_DLYM1R_2 0x00000040U /*!<Bit 2 */
  15658. #define SAI_PDMDLY_DLYM2L 0x00000700U /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
  15659. #define SAI_PDMDLY_DLYM2L_0 0x00000100U /*!<Bit 0 */
  15660. #define SAI_PDMDLY_DLYM2L_1 0x00000200U /*!<Bit 1 */
  15661. #define SAI_PDMDLY_DLYM2L_2 0x00000400U /*!<Bit 2 */
  15662. #define SAI_PDMDLY_DLYM2R 0x00007000U /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2)*/
  15663. #define SAI_PDMDLY_DLYM2R_0 0x00001000U /*!<Bit 0 */
  15664. #define SAI_PDMDLY_DLYM2R_1 0x00002000U /*!<Bit 1 */
  15665. #define SAI_PDMDLY_DLYM2R_2 0x00004000U /*!<Bit 2 */
  15666. #define SAI_PDMDLY_DLYM3L 0x00070000U /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3)*/
  15667. #define SAI_PDMDLY_DLYM3L_0 0x00010000U /*!<Bit 0 */
  15668. #define SAI_PDMDLY_DLYM3L_1 0x00020000U /*!<Bit 1 */
  15669. #define SAI_PDMDLY_DLYM3L_2 0x00040000U /*!<Bit 2 */
  15670. #define SAI_PDMDLY_DLYM3R 0x00700000U /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3)*/
  15671. #define SAI_PDMDLY_DLYM3R_0 0x00100000U /*!<Bit 0 */
  15672. #define SAI_PDMDLY_DLYM3R_1 0x00200000U /*!<Bit 1 */
  15673. #define SAI_PDMDLY_DLYM3R_2 0x00400000U /*!<Bit 2 */
  15674. #define SAI_PDMDLY_DLYM4L 0x07000000U /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4)*/
  15675. #define SAI_PDMDLY_DLYM4L_0 0x01000000U /*!<Bit 0 */
  15676. #define SAI_PDMDLY_DLYM4L_1 0x02000000U /*!<Bit 1 */
  15677. #define SAI_PDMDLY_DLYM4L_2 0x04000000U /*!<Bit 2 */
  15678. #define SAI_PDMDLY_DLYM4R 0x70000000U /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4)*/
  15679. #define SAI_PDMDLY_DLYM4R_0 0x10000000U /*!<Bit 0 */
  15680. #define SAI_PDMDLY_DLYM4R_1 0x20000000U /*!<Bit 1 */
  15681. #define SAI_PDMDLY_DLYM4R_2 0x40000000U /*!<Bit 2 */
  15682. /******************************************************************************/
  15683. /* */
  15684. /* SDMMC Interface */
  15685. /* */
  15686. /******************************************************************************/
  15687. /****************** Bit definition for SDMMC_POWER register ******************/
  15688. #define SDMMC_POWER_PWRCTRL_Pos (0U)
  15689. #define SDMMC_POWER_PWRCTRL_Msk (0x3U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */
  15690. #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */
  15691. #define SDMMC_POWER_PWRCTRL_0 (0x1U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */
  15692. #define SDMMC_POWER_PWRCTRL_1 (0x2U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */
  15693. #define SDMMC_POWER_VSWITCH_Pos (2U)
  15694. #define SDMMC_POWER_VSWITCH_Msk (0x1U << SDMMC_POWER_VSWITCH_Pos) /*!< 0x00000004 */
  15695. #define SDMMC_POWER_VSWITCH SDMMC_POWER_VSWITCH_Msk /*!<Voltage switch sequence start */
  15696. #define SDMMC_POWER_VSWITCHEN_Pos (3U)
  15697. #define SDMMC_POWER_VSWITCHEN_Msk (0x1U << SDMMC_POWER_VSWITCHEN_Pos) /*!< 0x00000008 */
  15698. #define SDMMC_POWER_VSWITCHEN SDMMC_POWER_VSWITCHEN_Msk /*!<Voltage switch procedure enable */
  15699. #define SDMMC_POWER_DIRPOL_Pos (4U)
  15700. #define SDMMC_POWER_DIRPOL_Msk (0x1U << SDMMC_POWER_DIRPOL_Pos) /*!< 0x00000010 */
  15701. #define SDMMC_POWER_DIRPOL SDMMC_POWER_DIRPOL_Msk /*!<Data and Command direction signals polarity selection */
  15702. /****************** Bit definition for SDMMC_CLKCR register ******************/
  15703. #define SDMMC_CLKCR_CLKDIV_Pos (0U)
  15704. #define SDMMC_CLKCR_CLKDIV_Msk (0x3FFU << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000003FF */
  15705. #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */
  15706. #define SDMMC_CLKCR_PWRSAV_Pos (12U)
  15707. #define SDMMC_CLKCR_PWRSAV_Msk (0x1U << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00001000 */
  15708. #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */
  15709. #define SDMMC_CLKCR_WIDBUS_Pos (14U)
  15710. #define SDMMC_CLKCR_WIDBUS_Msk (0x3U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x0000C000 */
  15711. #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
  15712. #define SDMMC_CLKCR_WIDBUS_0 (0x1U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00004000 */
  15713. #define SDMMC_CLKCR_WIDBUS_1 (0x2U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00008000 */
  15714. #define SDMMC_CLKCR_NEGEDGE_Pos (16U)
  15715. #define SDMMC_CLKCR_NEGEDGE_Msk (0x1U << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00010000 */
  15716. #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */
  15717. #define SDMMC_CLKCR_HWFC_EN_Pos (17U)
  15718. #define SDMMC_CLKCR_HWFC_EN_Msk (0x1U << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00020000 */
  15719. #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */
  15720. #define SDMMC_CLKCR_DDR_Pos (18U)
  15721. #define SDMMC_CLKCR_DDR_Msk (0x1U << SDMMC_CLKCR_DDR_Pos) /*!< 0x00040000 */
  15722. #define SDMMC_CLKCR_DDR SDMMC_CLKCR_DDR_Msk /*!<Data rate signaling selection */
  15723. #define SDMMC_CLKCR_BUSSPEED_Pos (19U)
  15724. #define SDMMC_CLKCR_BUSSPEED_Msk (0x1U << SDMMC_CLKCR_BUSSPEED_Pos) /*!< 0x00080000 */
  15725. #define SDMMC_CLKCR_BUSSPEED SDMMC_CLKCR_BUSSPEED_Msk /*!<Bus speed mode selection */
  15726. #define SDMMC_CLKCR_SELCLKRX_Pos (20U)
  15727. #define SDMMC_CLKCR_SELCLKRX_Msk (0x3U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00300000 */
  15728. #define SDMMC_CLKCR_SELCLKRX SDMMC_CLKCR_SELCLKRX_Msk /*!<SELCLKRX[1:0] bits (Receive clock selection) */
  15729. #define SDMMC_CLKCR_SELCLKRX_0 (0x1U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00100000 */
  15730. #define SDMMC_CLKCR_SELCLKRX_1 (0x2U << SDMMC_CLKCR_SELCLKRX_Pos) /*!< 0x00200000 */
  15731. /******************* Bit definition for SDMMC_ARG register *******************/
  15732. #define SDMMC_ARG_CMDARG_Pos (0U)
  15733. #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFU << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */
  15734. #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */
  15735. /******************* Bit definition for SDMMC_CMD register *******************/
  15736. #define SDMMC_CMD_CMDINDEX_Pos (0U)
  15737. #define SDMMC_CMD_CMDINDEX_Msk (0x3FU << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */
  15738. #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */
  15739. #define SDMMC_CMD_CMDTRANS_Pos (6U)
  15740. #define SDMMC_CMD_CMDTRANS_Msk (0x1U << SDMMC_CMD_CMDTRANS_Pos) /*!< 0x00000040 */
  15741. #define SDMMC_CMD_CMDTRANS SDMMC_CMD_CMDTRANS_Msk /*!<CPSM Treats command as a Data Transfer */
  15742. #define SDMMC_CMD_CMDSTOP_Pos (7U)
  15743. #define SDMMC_CMD_CMDSTOP_Msk (0x1U << SDMMC_CMD_CMDSTOP_Pos) /*!< 0x00000080 */
  15744. #define SDMMC_CMD_CMDSTOP SDMMC_CMD_CMDSTOP_Msk /*!<CPSM Treats command as a Stop */
  15745. #define SDMMC_CMD_WAITRESP_Pos (8U)
  15746. #define SDMMC_CMD_WAITRESP_Msk (0x3U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000300 */
  15747. #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */
  15748. #define SDMMC_CMD_WAITRESP_0 (0x1U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000100 */
  15749. #define SDMMC_CMD_WAITRESP_1 (0x2U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000200 */
  15750. #define SDMMC_CMD_WAITINT_Pos (10U)
  15751. #define SDMMC_CMD_WAITINT_Msk (0x1U << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000400 */
  15752. #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */
  15753. #define SDMMC_CMD_WAITPEND_Pos (11U)
  15754. #define SDMMC_CMD_WAITPEND_Msk (0x1U << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000800 */
  15755. #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
  15756. #define SDMMC_CMD_CPSMEN_Pos (12U)
  15757. #define SDMMC_CMD_CPSMEN_Msk (0x1U << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00001000 */
  15758. #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */
  15759. #define SDMMC_CMD_DTHOLD_Pos (13U)
  15760. #define SDMMC_CMD_DTHOLD_Msk (0x1U << SDMMC_CMD_DTHOLD_Pos) /*!< 0x00002000 */
  15761. #define SDMMC_CMD_DTHOLD SDMMC_CMD_DTHOLD_Msk /*!<Hold new data block transmission and reception in the DPSM */
  15762. #define SDMMC_CMD_BOOTMODE_Pos (14U)
  15763. #define SDMMC_CMD_BOOTMODE_Msk (0x1U << SDMMC_CMD_BOOTMODE_Pos) /*!< 0x00004000 */
  15764. #define SDMMC_CMD_BOOTMODE SDMMC_CMD_BOOTMODE_Msk /*!<Boot mode */
  15765. #define SDMMC_CMD_BOOTEN_Pos (15U)
  15766. #define SDMMC_CMD_BOOTEN_Msk (0x1U << SDMMC_CMD_BOOTEN_Pos) /*!< 0x00008000 */
  15767. #define SDMMC_CMD_BOOTEN SDMMC_CMD_BOOTEN_Msk /*!<Enable Boot mode procedure */
  15768. #define SDMMC_CMD_CMDSUSPEND_Pos (16U)
  15769. #define SDMMC_CMD_CMDSUSPEND_Msk (0x1U << SDMMC_CMD_CMDSUSPEND_Pos) /*!< 0x00010000 */
  15770. #define SDMMC_CMD_CMDSUSPEND SDMMC_CMD_CMDSUSPEND_Msk /*!<CPSM Treats command as a Suspend or Resume command */
  15771. /***************** Bit definition for SDMMC_RESPCMD register *****************/
  15772. #define SDMMC_RESPCMD_RESPCMD_Pos (0U)
  15773. #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FU << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */
  15774. #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */
  15775. /****************** Bit definition for SDMMC_RESP0 register ******************/
  15776. #define SDMMC_RESP0_CARDSTATUS0_Pos (0U)
  15777. #define SDMMC_RESP0_CARDSTATUS0_Msk (0xFFFFFFFFU << SDMMC_RESP0_CARDSTATUS0_Pos) /*!< 0xFFFFFFFF */
  15778. #define SDMMC_RESP0_CARDSTATUS0 SDMMC_RESP0_CARDSTATUS0_Msk /*!<Card Status */
  15779. /****************** Bit definition for SDMMC_RESP1 register ******************/
  15780. #define SDMMC_RESP1_CARDSTATUS1_Pos (0U)
  15781. #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFU << SDMMC_RESP1_CARDSTATUS1_Pos) /*!< 0xFFFFFFFF */
  15782. #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */
  15783. /****************** Bit definition for SDMMC_RESP2 register ******************/
  15784. #define SDMMC_RESP2_CARDSTATUS2_Pos (0U)
  15785. #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFU << SDMMC_RESP2_CARDSTATUS2_Pos) /*!< 0xFFFFFFFF */
  15786. #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */
  15787. /****************** Bit definition for SDMMC_RESP3 register ******************/
  15788. #define SDMMC_RESP3_CARDSTATUS3_Pos (0U)
  15789. #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFU << SDMMC_RESP3_CARDSTATUS3_Pos) /*!< 0xFFFFFFFF */
  15790. #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */
  15791. /****************** Bit definition for SDMMC_RESP4 register ******************/
  15792. #define SDMMC_RESP4_CARDSTATUS4_Pos (0U)
  15793. #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFU << SDMMC_RESP4_CARDSTATUS4_Pos) /*!< 0xFFFFFFFF */
  15794. #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */
  15795. /****************** Bit definition for SDMMC_DTIMER register *****************/
  15796. #define SDMMC_DTIMER_DATATIME_Pos (0U)
  15797. #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFU << SDMMC_DTIMER_DATATIME_Pos) /*!< 0xFFFFFFFF */
  15798. #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */
  15799. /****************** Bit definition for SDMMC_DLEN register *******************/
  15800. #define SDMMC_DLEN_DATALENGTH_Pos (0U)
  15801. #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFU << SDMMC_DLEN_DATALENGTH_Pos) /*!< 0x01FFFFFF */
  15802. #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */
  15803. /****************** Bit definition for SDMMC_DCTRL register ******************/
  15804. #define SDMMC_DCTRL_DTEN_Pos (0U)
  15805. #define SDMMC_DCTRL_DTEN_Msk (0x1U << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */
  15806. #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */
  15807. #define SDMMC_DCTRL_DTDIR_Pos (1U)
  15808. #define SDMMC_DCTRL_DTDIR_Msk (0x1U << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */
  15809. #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */
  15810. #define SDMMC_DCTRL_DTMODE_Pos (2U)
  15811. #define SDMMC_DCTRL_DTMODE_Msk (0x3U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x0000000C */
  15812. #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<DTMODE[1:0] Data transfer mode selection */
  15813. #define SDMMC_DCTRL_DTMODE_0 (0x1U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */
  15814. #define SDMMC_DCTRL_DTMODE_1 (0x2U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000008 */
  15815. #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U)
  15816. #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFU << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */
  15817. #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */
  15818. #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */
  15819. #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */
  15820. #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
  15821. #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
  15822. #define SDMMC_DCTRL_RWSTART_Pos (8U)
  15823. #define SDMMC_DCTRL_RWSTART_Msk (0x1U << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */
  15824. #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */
  15825. #define SDMMC_DCTRL_RWSTOP_Pos (9U)
  15826. #define SDMMC_DCTRL_RWSTOP_Msk (0x1U << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */
  15827. #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */
  15828. #define SDMMC_DCTRL_RWMOD_Pos (10U)
  15829. #define SDMMC_DCTRL_RWMOD_Msk (0x1U << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */
  15830. #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */
  15831. #define SDMMC_DCTRL_SDIOEN_Pos (11U)
  15832. #define SDMMC_DCTRL_SDIOEN_Msk (0x1U << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */
  15833. #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */
  15834. #define SDMMC_DCTRL_BOOTACKEN_Pos (12U)
  15835. #define SDMMC_DCTRL_BOOTACKEN_Msk (0x1U << SDMMC_DCTRL_BOOTACKEN_Pos) /*!< 0x00001000 */
  15836. #define SDMMC_DCTRL_BOOTACKEN SDMMC_DCTRL_BOOTACKEN_Msk /*!<Enable the reception of the Boot Acknowledgment */
  15837. #define SDMMC_DCTRL_FIFORST_Pos (13U)
  15838. #define SDMMC_DCTRL_FIFORST_Msk (0x1U << SDMMC_DCTRL_FIFORST_Pos) /*!< 0x00002000 */
  15839. #define SDMMC_DCTRL_FIFORST SDMMC_DCTRL_FIFORST_Msk /*!<FIFO reset */
  15840. /****************** Bit definition for SDMMC_DCOUNT register *****************/
  15841. #define SDMMC_DCOUNT_DATACOUNT_Pos (0U)
  15842. #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFU << SDMMC_DCOUNT_DATACOUNT_Pos) /*!< 0x01FFFFFF */
  15843. #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */
  15844. /****************** Bit definition for SDMMC_STA register ********************/
  15845. #define SDMMC_STA_CCRCFAIL_Pos (0U)
  15846. #define SDMMC_STA_CCRCFAIL_Msk (0x1U << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */
  15847. #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */
  15848. #define SDMMC_STA_DCRCFAIL_Pos (1U)
  15849. #define SDMMC_STA_DCRCFAIL_Msk (0x1U << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */
  15850. #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */
  15851. #define SDMMC_STA_CTIMEOUT_Pos (2U)
  15852. #define SDMMC_STA_CTIMEOUT_Msk (0x1U << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */
  15853. #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */
  15854. #define SDMMC_STA_DTIMEOUT_Pos (3U)
  15855. #define SDMMC_STA_DTIMEOUT_Msk (0x1U << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */
  15856. #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */
  15857. #define SDMMC_STA_TXUNDERR_Pos (4U)
  15858. #define SDMMC_STA_TXUNDERR_Msk (0x1U << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */
  15859. #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */
  15860. #define SDMMC_STA_RXOVERR_Pos (5U)
  15861. #define SDMMC_STA_RXOVERR_Msk (0x1U << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */
  15862. #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */
  15863. #define SDMMC_STA_CMDREND_Pos (6U)
  15864. #define SDMMC_STA_CMDREND_Msk (0x1U << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */
  15865. #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */
  15866. #define SDMMC_STA_CMDSENT_Pos (7U)
  15867. #define SDMMC_STA_CMDSENT_Msk (0x1U << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */
  15868. #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */
  15869. #define SDMMC_STA_DATAEND_Pos (8U)
  15870. #define SDMMC_STA_DATAEND_Msk (0x1U << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */
  15871. #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */
  15872. #define SDMMC_STA_DHOLD_Pos (9U)
  15873. #define SDMMC_STA_DHOLD_Msk (0x1U << SDMMC_STA_DHOLD_Pos) /*!< 0x00000200 */
  15874. #define SDMMC_STA_DHOLD SDMMC_STA_DHOLD_Msk /*!<Data transfer Hold */
  15875. #define SDMMC_STA_DBCKEND_Pos (10U)
  15876. #define SDMMC_STA_DBCKEND_Msk (0x1U << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */
  15877. #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */
  15878. #define SDMMC_STA_DABORT_Pos (11U)
  15879. #define SDMMC_STA_DABORT_Msk (0x1U << SDMMC_STA_DABORT_Pos) /*!< 0x00000800 */
  15880. #define SDMMC_STA_DABORT SDMMC_STA_DABORT_Msk /*!<Data transfer aborted by CMD12 */
  15881. #define SDMMC_STA_CPSMACT_Pos (12U)
  15882. #define SDMMC_STA_CPSMACT_Msk (0x1U << SDMMC_STA_CPSMACT_Pos) /*!< 0x00001000 */
  15883. #define SDMMC_STA_CPSMACT SDMMC_STA_CPSMACT_Msk /*!<Command path state machine active */
  15884. #define SDMMC_STA_DPSMACT_Pos (13U)
  15885. #define SDMMC_STA_DPSMACT_Msk (0x1U << SDMMC_STA_DPSMACT_Pos) /*!< 0x00002000 */
  15886. #define SDMMC_STA_DPSMACT SDMMC_STA_DPSMACT_Msk /*!<Data path state machine active */
  15887. #define SDMMC_STA_TXFIFOHE_Pos (14U)
  15888. #define SDMMC_STA_TXFIFOHE_Msk (0x1U << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */
  15889. #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
  15890. #define SDMMC_STA_RXFIFOHF_Pos (15U)
  15891. #define SDMMC_STA_RXFIFOHF_Msk (0x1U << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */
  15892. #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
  15893. #define SDMMC_STA_TXFIFOF_Pos (16U)
  15894. #define SDMMC_STA_TXFIFOF_Msk (0x1U << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */
  15895. #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */
  15896. #define SDMMC_STA_RXFIFOF_Pos (17U)
  15897. #define SDMMC_STA_RXFIFOF_Msk (0x1U << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */
  15898. #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */
  15899. #define SDMMC_STA_TXFIFOE_Pos (18U)
  15900. #define SDMMC_STA_TXFIFOE_Msk (0x1U << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */
  15901. #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */
  15902. #define SDMMC_STA_RXFIFOE_Pos (19U)
  15903. #define SDMMC_STA_RXFIFOE_Msk (0x1U << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */
  15904. #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */
  15905. #define SDMMC_STA_BUSYD0_Pos (20U)
  15906. #define SDMMC_STA_BUSYD0_Msk (0x1U << SDMMC_STA_BUSYD0_Pos) /*!< 0x00100000 */
  15907. #define SDMMC_STA_BUSYD0 SDMMC_STA_BUSYD0_Msk /*!<Inverted value of SDMMC_D0 line (Busy) */
  15908. #define SDMMC_STA_BUSYD0END_Pos (21U)
  15909. #define SDMMC_STA_BUSYD0END_Msk (0x1U << SDMMC_STA_BUSYD0END_Pos) /*!< 0x00200000 */
  15910. #define SDMMC_STA_BUSYD0END SDMMC_STA_BUSYD0END_Msk /*!<End of SDMMC_D0 Busy following a CMD response detected */
  15911. #define SDMMC_STA_SDIOIT_Pos (22U)
  15912. #define SDMMC_STA_SDIOIT_Msk (0x1U << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */
  15913. #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */
  15914. #define SDMMC_STA_ACKFAIL_Pos (23U)
  15915. #define SDMMC_STA_ACKFAIL_Msk (0x1U << SDMMC_STA_ACKFAIL_Pos) /*!< 0x00800000 */
  15916. #define SDMMC_STA_ACKFAIL SDMMC_STA_ACKFAIL_Msk /*!<Boot Acknowledgment received (BootAck check fail) */
  15917. #define SDMMC_STA_ACKTIMEOUT_Pos (24U)
  15918. #define SDMMC_STA_ACKTIMEOUT_Msk (0x1U << SDMMC_STA_ACKTIMEOUT_Pos) /*!< 0x01000000 */
  15919. #define SDMMC_STA_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT_Msk /*!<Boot Acknowledgment timeout */
  15920. #define SDMMC_STA_VSWEND_Pos (25U)
  15921. #define SDMMC_STA_VSWEND_Msk (0x1U << SDMMC_STA_VSWEND_Pos) /*!< 0x02000000 */
  15922. #define SDMMC_STA_VSWEND SDMMC_STA_VSWEND_Msk /*!<Voltage switch critical timing section completion */
  15923. #define SDMMC_STA_CKSTOP_Pos (26U)
  15924. #define SDMMC_STA_CKSTOP_Msk (0x1U << SDMMC_STA_CKSTOP_Pos) /*!< 0x04000000 */
  15925. #define SDMMC_STA_CKSTOP SDMMC_STA_CKSTOP_Msk /*!<SDMMC_CK stopped in Voltage switch procedure */
  15926. #define SDMMC_STA_IDMATE_Pos (27U)
  15927. #define SDMMC_STA_IDMATE_Msk (0x1U << SDMMC_STA_IDMATE_Pos) /*!< 0x08000000 */
  15928. #define SDMMC_STA_IDMATE SDMMC_STA_IDMATE_Msk /*!<IDMA transfer error */
  15929. #define SDMMC_STA_IDMABTC_Pos (28U)
  15930. #define SDMMC_STA_IDMABTC_Msk (0x1U << SDMMC_STA_IDMABTC_Pos) /*!< 0x10000000 */
  15931. #define SDMMC_STA_IDMABTC SDMMC_STA_IDMABTC_Msk /*!<IDMA buffer transfer complete */
  15932. /******************* Bit definition for SDMMC_ICR register *******************/
  15933. #define SDMMC_ICR_CCRCFAILC_Pos (0U)
  15934. #define SDMMC_ICR_CCRCFAILC_Msk (0x1U << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */
  15935. #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */
  15936. #define SDMMC_ICR_DCRCFAILC_Pos (1U)
  15937. #define SDMMC_ICR_DCRCFAILC_Msk (0x1U << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */
  15938. #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */
  15939. #define SDMMC_ICR_CTIMEOUTC_Pos (2U)
  15940. #define SDMMC_ICR_CTIMEOUTC_Msk (0x1U << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */
  15941. #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */
  15942. #define SDMMC_ICR_DTIMEOUTC_Pos (3U)
  15943. #define SDMMC_ICR_DTIMEOUTC_Msk (0x1U << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */
  15944. #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */
  15945. #define SDMMC_ICR_TXUNDERRC_Pos (4U)
  15946. #define SDMMC_ICR_TXUNDERRC_Msk (0x1U << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */
  15947. #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */
  15948. #define SDMMC_ICR_RXOVERRC_Pos (5U)
  15949. #define SDMMC_ICR_RXOVERRC_Msk (0x1U << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */
  15950. #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */
  15951. #define SDMMC_ICR_CMDRENDC_Pos (6U)
  15952. #define SDMMC_ICR_CMDRENDC_Msk (0x1U << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */
  15953. #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */
  15954. #define SDMMC_ICR_CMDSENTC_Pos (7U)
  15955. #define SDMMC_ICR_CMDSENTC_Msk (0x1U << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */
  15956. #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */
  15957. #define SDMMC_ICR_DATAENDC_Pos (8U)
  15958. #define SDMMC_ICR_DATAENDC_Msk (0x1U << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */
  15959. #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */
  15960. #define SDMMC_ICR_DHOLDC_Pos (9U)
  15961. #define SDMMC_ICR_DHOLDC_Msk (0x1U << SDMMC_ICR_DHOLDC_Pos) /*!< 0x00000200 */
  15962. #define SDMMC_ICR_DHOLDC SDMMC_ICR_DHOLDC_Msk /*!<DHOLD flag clear bit */
  15963. #define SDMMC_ICR_DBCKENDC_Pos (10U)
  15964. #define SDMMC_ICR_DBCKENDC_Msk (0x1U << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */
  15965. #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */
  15966. #define SDMMC_ICR_DABORTC_Pos (11U)
  15967. #define SDMMC_ICR_DABORTC_Msk (0x1U << SDMMC_ICR_DABORTC_Pos) /*!< 0x00000800 */
  15968. #define SDMMC_ICR_DABORTC SDMMC_ICR_DABORTC_Msk /*!<DABORTC flag clear bit */
  15969. #define SDMMC_ICR_BUSYD0ENDC_Pos (21U)
  15970. #define SDMMC_ICR_BUSYD0ENDC_Msk (0x1U << SDMMC_ICR_BUSYD0ENDC_Pos) /*!< 0x00200000 */
  15971. #define SDMMC_ICR_BUSYD0ENDC SDMMC_ICR_BUSYD0ENDC_Msk /*!<BUSYD0ENDC flag clear bit */
  15972. #define SDMMC_ICR_SDIOITC_Pos (22U)
  15973. #define SDMMC_ICR_SDIOITC_Msk (0x1U << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */
  15974. #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */
  15975. #define SDMMC_ICR_ACKFAILC_Pos (23U)
  15976. #define SDMMC_ICR_ACKFAILC_Msk (0x1U << SDMMC_ICR_ACKFAILC_Pos) /*!< 0x00800000 */
  15977. #define SDMMC_ICR_ACKFAILC SDMMC_ICR_ACKFAILC_Msk /*!<ACKFAILC flag clear bit */
  15978. #define SDMMC_ICR_ACKTIMEOUTC_Pos (24U)
  15979. #define SDMMC_ICR_ACKTIMEOUTC_Msk (0x1U << SDMMC_ICR_ACKTIMEOUTC_Pos) /*!< 0x01000000 */
  15980. #define SDMMC_ICR_ACKTIMEOUTC SDMMC_ICR_ACKTIMEOUTC_Msk /*!<ACKTIMEOUTC flag clear bit */
  15981. #define SDMMC_ICR_VSWENDC_Pos (25U)
  15982. #define SDMMC_ICR_VSWENDC_Msk (0x1U << SDMMC_ICR_VSWENDC_Pos) /*!< 0x02000000 */
  15983. #define SDMMC_ICR_VSWENDC SDMMC_ICR_VSWENDC_Msk /*!<VSWENDC flag clear bit */
  15984. #define SDMMC_ICR_CKSTOPC_Pos (26U)
  15985. #define SDMMC_ICR_CKSTOPC_Msk (0x1U << SDMMC_ICR_CKSTOPC_Pos) /*!< 0x04000000 */
  15986. #define SDMMC_ICR_CKSTOPC SDMMC_ICR_CKSTOPC_Msk /*!<CKSTOPC flag clear bit */
  15987. #define SDMMC_ICR_IDMATEC_Pos (27U)
  15988. #define SDMMC_ICR_IDMATEC_Msk (0x1U << SDMMC_ICR_IDMATEC_Pos) /*!< 0x08000000 */
  15989. #define SDMMC_ICR_IDMATEC SDMMC_ICR_IDMATEC_Msk /*!<IDMATEC flag clear bit */
  15990. #define SDMMC_ICR_IDMABTCC_Pos (28U)
  15991. #define SDMMC_ICR_IDMABTCC_Msk (0x1U << SDMMC_ICR_IDMABTCC_Pos) /*!< 0x10000000 */
  15992. #define SDMMC_ICR_IDMABTCC SDMMC_ICR_IDMABTCC_Msk /*!<IDMABTCC flag clear bit */
  15993. /****************** Bit definition for SDMMC_MASK register *******************/
  15994. #define SDMMC_MASK_CCRCFAILIE_Pos (0U)
  15995. #define SDMMC_MASK_CCRCFAILIE_Msk (0x1U << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */
  15996. #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */
  15997. #define SDMMC_MASK_DCRCFAILIE_Pos (1U)
  15998. #define SDMMC_MASK_DCRCFAILIE_Msk (0x1U << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */
  15999. #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */
  16000. #define SDMMC_MASK_CTIMEOUTIE_Pos (2U)
  16001. #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1U << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */
  16002. #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */
  16003. #define SDMMC_MASK_DTIMEOUTIE_Pos (3U)
  16004. #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1U << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */
  16005. #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */
  16006. #define SDMMC_MASK_TXUNDERRIE_Pos (4U)
  16007. #define SDMMC_MASK_TXUNDERRIE_Msk (0x1U << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */
  16008. #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */
  16009. #define SDMMC_MASK_RXOVERRIE_Pos (5U)
  16010. #define SDMMC_MASK_RXOVERRIE_Msk (0x1U << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */
  16011. #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */
  16012. #define SDMMC_MASK_CMDRENDIE_Pos (6U)
  16013. #define SDMMC_MASK_CMDRENDIE_Msk (0x1U << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */
  16014. #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */
  16015. #define SDMMC_MASK_CMDSENTIE_Pos (7U)
  16016. #define SDMMC_MASK_CMDSENTIE_Msk (0x1U << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */
  16017. #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */
  16018. #define SDMMC_MASK_DATAENDIE_Pos (8U)
  16019. #define SDMMC_MASK_DATAENDIE_Msk (0x1U << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */
  16020. #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */
  16021. #define SDMMC_MASK_DHOLDIE_Pos (9U)
  16022. #define SDMMC_MASK_DHOLDIE_Msk (0x1U << SDMMC_MASK_DHOLDIE_Pos) /*!< 0x00000200 */
  16023. #define SDMMC_MASK_DHOLDIE SDMMC_MASK_DHOLDIE_Msk /*!<Data Hold Interrupt Enable */
  16024. #define SDMMC_MASK_DBCKENDIE_Pos (10U)
  16025. #define SDMMC_MASK_DBCKENDIE_Msk (0x1U << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */
  16026. #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */
  16027. #define SDMMC_MASK_DABORTIE_Pos (11U)
  16028. #define SDMMC_MASK_DABORTIE_Msk (0x1U << SDMMC_MASK_DABORTIE_Pos) /*!< 0x00000800 */
  16029. #define SDMMC_MASK_DABORTIE SDMMC_MASK_DABORTIE_Msk /*!<Data transfer aborted interrupt enable */
  16030. #define SDMMC_MASK_TXFIFOHEIE_Pos (14U)
  16031. #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1U << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */
  16032. #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */
  16033. #define SDMMC_MASK_RXFIFOHFIE_Pos (15U)
  16034. #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1U << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */
  16035. #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */
  16036. #define SDMMC_MASK_RXFIFOFIE_Pos (17U)
  16037. #define SDMMC_MASK_RXFIFOFIE_Msk (0x1U << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */
  16038. #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */
  16039. #define SDMMC_MASK_TXFIFOEIE_Pos (18U)
  16040. #define SDMMC_MASK_TXFIFOEIE_Msk (0x1U << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */
  16041. #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */
  16042. #define SDMMC_MASK_BUSYD0ENDIE_Pos (21U)
  16043. #define SDMMC_MASK_BUSYD0ENDIE_Msk (0x1U << SDMMC_MASK_BUSYD0ENDIE_Pos) /*!< 0x00200000 */
  16044. #define SDMMC_MASK_BUSYD0ENDIE SDMMC_MASK_BUSYD0ENDIE_Msk /*!<BUSYD0ENDIE interrupt Enable */
  16045. #define SDMMC_MASK_SDIOTIE_Pos (22U)
  16046. #define SDMMC_MASK_SDIOTIE_Msk (0x1U << SDMMC_MASK_SDIOTIE_Pos) /*!< 0x00400000 */
  16047. #define SDMMC_MASK_SDIOTIE SDMMC_MASK_SDIOTIE_Msk /*!<SDMMC Mode Interrupt Received interrupt Enable */
  16048. #define SDMMC_MASK_ACKFAILIE_Pos (23U)
  16049. #define SDMMC_MASK_ACKFAILIE_Msk (0x1U << SDMMC_MASK_ACKFAILIE_Pos) /*!< 0x00800000 */
  16050. #define SDMMC_MASK_ACKFAILIE SDMMC_MASK_ACKFAILIE_Msk /*!<Acknowledgment Fail Interrupt Enable */
  16051. #define SDMMC_MASK_ACKTIMEOUTIE_Pos (24U)
  16052. #define SDMMC_MASK_ACKTIMEOUTIE_Msk (0x1U << SDMMC_MASK_ACKTIMEOUTIE_Pos) /*!< 0x01000000 */
  16053. #define SDMMC_MASK_ACKTIMEOUTIE SDMMC_MASK_ACKTIMEOUTIE_Msk /*!<Acknowledgment timeout Interrupt Enable */
  16054. #define SDMMC_MASK_VSWENDIE_Pos (25U)
  16055. #define SDMMC_MASK_VSWENDIE_Msk (0x1U << SDMMC_MASK_VSWENDIE_Pos) /*!< 0x02000000 */
  16056. #define SDMMC_MASK_VSWENDIE SDMMC_MASK_VSWENDIE_Msk /*!<Voltage switch critical timing section completion Interrupt Enable */
  16057. #define SDMMC_MASK_CKSTOPIE_Pos (26U)
  16058. #define SDMMC_MASK_CKSTOPIE_Msk (0x1U << SDMMC_MASK_CKSTOPIE_Pos) /*!< 0x04000000 */
  16059. #define SDMMC_MASK_CKSTOPIE SDMMC_MASK_CKSTOPIE_Msk /*!<Voltage Switch clock stopped Interrupt Enable */
  16060. #define SDMMC_MASK_IDMABTCIE_Pos (28U)
  16061. #define SDMMC_MASK_IDMABTCIE_Msk (0x1U << SDMMC_MASK_IDMABTCIE_Pos) /*!< 0x10000000 */
  16062. #define SDMMC_MASK_IDMABTCIE SDMMC_MASK_IDMABTCIE_Msk /*!<IDMA buffer transfer complete Interrupt Enable */
  16063. /***************** Bit definition for SDMMC_ACKTIME register *****************/
  16064. #define SDMMC_ACKTIME_ACKTIME_Pos (0U)
  16065. #define SDMMC_ACKTIME_ACKTIME_Msk (0x1FFFFFFU << SDMMC_ACKTIME_ACKTIME_Pos) /*!< 0x01FFFFFF */
  16066. #define SDMMC_ACKTIME_ACKTIME SDMMC_ACKTIME_ACKTIME_Msk /*!<Boot acknowledgment timeout period */
  16067. /****************** Bit definition for SDMMC_FIFO register *******************/
  16068. #define SDMMC_FIFO_FIFODATA_Pos (0U)
  16069. #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFU << SDMMC_FIFO_FIFODATA_Pos) /*!< 0xFFFFFFFF */
  16070. #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */
  16071. /****************** Bit definition for SDMMC_IDMACTRL register ****************/
  16072. #define SDMMC_IDMA_IDMAEN_Pos (0U)
  16073. #define SDMMC_IDMA_IDMAEN_Msk (0x1U << SDMMC_IDMA_IDMAEN_Pos) /*!< 0x00000001 */
  16074. #define SDMMC_IDMA_IDMAEN SDMMC_IDMA_IDMAEN_Msk /*!< Enable the internal DMA of the SDMMC peripheral */
  16075. #define SDMMC_IDMA_IDMABMODE_Pos (1U)
  16076. #define SDMMC_IDMA_IDMABMODE_Msk (0x1U << SDMMC_IDMA_IDMABMODE_Pos) /*!< 0x00000002 */
  16077. #define SDMMC_IDMA_IDMABMODE SDMMC_IDMA_IDMABMODE_Msk /*!< Enable double buffer mode for IDMA */
  16078. #define SDMMC_IDMA_IDMABACT_Pos (2U)
  16079. #define SDMMC_IDMA_IDMABACT_Msk (0x1U << SDMMC_IDMA_IDMABACT_Pos) /*!< 0x00000004 */
  16080. #define SDMMC_IDMA_IDMABACT SDMMC_IDMA_IDMABACT_Msk /*!< Uses buffer 1 when double buffer mode is selected */
  16081. /***************** Bit definition for SDMMC_IDMABSIZE register ***************/
  16082. #define SDMMC_IDMABSIZE_IDMABNDT_Pos (5U)
  16083. #define SDMMC_IDMABSIZE_IDMABNDT_Msk (0xFFU << SDMMC_IDMABSIZE_IDMABNDT_Pos) /*!< 0x00001FE0 */
  16084. #define SDMMC_IDMABSIZE_IDMABNDT SDMMC_IDMABSIZE_IDMABNDT_Msk /*!< Number of transfers per buffer */
  16085. /***************** Bit definition for SDMMC_IDMABASE0 register ***************/
  16086. #define SDMMC_IDMABASE0_IDMABASE0 ((uint32_t)0xFFFFFFFF) /*!< Buffer 0 memory base address */
  16087. /***************** Bit definition for SDMMC_IDMABASE1 register ***************/
  16088. #define SDMMC_IDMABASE1_IDMABASE1 ((uint32_t)0xFFFFFFFF) /*!< Buffer 1 memory base address */
  16089. /******************************************************************************/
  16090. /* */
  16091. /* Delay Block Interface (DLYB) */
  16092. /* */
  16093. /******************************************************************************/
  16094. /******************* Bit definition for DLYB_CR register ********************/
  16095. #define DLYB_CR_DEN_Pos (0U)
  16096. #define DLYB_CR_DEN_Msk (0x1U << DLYB_CR_DEN_Pos) /*!< 0x00000001 */
  16097. #define DLYB_CR_DEN DLYB_CR_DEN_Msk /*!<Delay Block enable */
  16098. #define DLYB_CR_SEN_Pos (1U)
  16099. #define DLYB_CR_SEN_Msk (0x1U << DLYB_CR_SEN_Pos) /*!< 0x00000002 */
  16100. #define DLYB_CR_SEN DLYB_CR_SEN_Msk /*!<Sampler length enable */
  16101. /******************* Bit definition for DLYB_CFGR register ********************/
  16102. #define DLYB_CFGR_SEL_Pos (0U)
  16103. #define DLYB_CFGR_SEL_Msk (0xFU << DLYB_CFGR_SEL_Pos) /*!< 0x0000000F */
  16104. #define DLYB_CFGR_SEL DLYB_CFGR_SEL_Msk /*!<Select the phase for the Output clock[3:0] */
  16105. #define DLYB_CFGR_SEL_0 (0x1U << DLYB_CFGR_SEL_Pos) /*!< 0x00000001 */
  16106. #define DLYB_CFGR_SEL_1 (0x2U << DLYB_CFGR_SEL_Pos) /*!< 0x00000002 */
  16107. #define DLYB_CFGR_SEL_2 (0x3U << DLYB_CFGR_SEL_Pos) /*!< 0x00000003 */
  16108. #define DLYB_CFGR_SEL_3 (0x8U << DLYB_CFGR_SEL_Pos) /*!< 0x00000008 */
  16109. #define DLYB_CFGR_UNIT_Pos (8U)
  16110. #define DLYB_CFGR_UNIT_Msk (0x7FU << DLYB_CFGR_UNIT_Pos) /*!< 0x00007F00 */
  16111. #define DLYB_CFGR_UNIT DLYB_CFGR_UNIT_Msk /*!<Delay Defines the delay of a Unit delay cell[6:0] */
  16112. #define DLYB_CFGR_UNIT_0 (0x01U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000100 */
  16113. #define DLYB_CFGR_UNIT_1 (0x02U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000200 */
  16114. #define DLYB_CFGR_UNIT_2 (0x04U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000400 */
  16115. #define DLYB_CFGR_UNIT_3 (0x08U << DLYB_CFGR_UNIT_Pos) /*!< 0x00000800 */
  16116. #define DLYB_CFGR_UNIT_4 (0x10U << DLYB_CFGR_UNIT_Pos) /*!< 0x00001000 */
  16117. #define DLYB_CFGR_UNIT_5 (0x20U << DLYB_CFGR_UNIT_Pos) /*!< 0x00002000 */
  16118. #define DLYB_CFGR_UNIT_6 (0x40U << DLYB_CFGR_UNIT_Pos) /*!< 0x00004000 */
  16119. #define DLYB_CFGR_LNG_Pos (16U)
  16120. #define DLYB_CFGR_LNG_Msk (0xFFFU << DLYB_CFGR_LNG_Pos) /*!< 0x0FFF0000 */
  16121. #define DLYB_CFGR_LNG DLYB_CFGR_LNG_Msk /*!<Delay line length value[11:0] */
  16122. #define DLYB_CFGR_LNG_0 (0x001U << DLYB_CFGR_LNG_Pos) /*!< 0x00010000 */
  16123. #define DLYB_CFGR_LNG_1 (0x002U << DLYB_CFGR_LNG_Pos) /*!< 0x00020000 */
  16124. #define DLYB_CFGR_LNG_2 (0x004U << DLYB_CFGR_LNG_Pos) /*!< 0x00040000 */
  16125. #define DLYB_CFGR_LNG_3 (0x008U << DLYB_CFGR_LNG_Pos) /*!< 0x00080000 */
  16126. #define DLYB_CFGR_LNG_4 (0x010U << DLYB_CFGR_LNG_Pos) /*!< 0x00100000 */
  16127. #define DLYB_CFGR_LNG_5 (0x020U << DLYB_CFGR_LNG_Pos) /*!< 0x00200000 */
  16128. #define DLYB_CFGR_LNG_6 (0x040U << DLYB_CFGR_LNG_Pos) /*!< 0x00400000 */
  16129. #define DLYB_CFGR_LNG_7 (0x080U << DLYB_CFGR_LNG_Pos) /*!< 0x00800000 */
  16130. #define DLYB_CFGR_LNG_8 (0x100U << DLYB_CFGR_LNG_Pos) /*!< 0x01000000 */
  16131. #define DLYB_CFGR_LNG_9 (0x200U << DLYB_CFGR_LNG_Pos) /*!< 0x02000000 */
  16132. #define DLYB_CFGR_LNG_10 (0x400U << DLYB_CFGR_LNG_Pos) /*!< 0x04000000 */
  16133. #define DLYB_CFGR_LNG_11 (0x800U << DLYB_CFGR_LNG_Pos) /*!< 0x08000000 */
  16134. #define DLYB_CFGR_LNGF_Pos (31U)
  16135. #define DLYB_CFGR_LNGF_Msk (0x1U << DLYB_CFGR_LNGF_Pos) /*!< 0x80000000 */
  16136. #define DLYB_CFGR_LNGF DLYB_CFGR_LNGF_Msk /*!<Length valid flag */
  16137. /******************************************************************************/
  16138. /* */
  16139. /* Serial Peripheral Interface (SPI/I2S) */
  16140. /* */
  16141. /******************************************************************************/
  16142. /******************* Bit definition for SPI_CR1 register ********************/
  16143. #define SPI_CR1_SPE_Pos (0U)
  16144. #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000001 */
  16145. #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<Serial Peripheral Enable */
  16146. #define SPI_CR1_MASRX_Pos (8U)
  16147. #define SPI_CR1_MASRX_Msk (0x1U << SPI_CR1_MASRX_Pos) /*!< 0x00000100 */
  16148. #define SPI_CR1_MASRX SPI_CR1_MASRX_Msk /*!<Master automatic SUSP in Receive mode */
  16149. #define SPI_CR1_CSTART_Pos (9U)
  16150. #define SPI_CR1_CSTART_Msk (0x1U << SPI_CR1_CSTART_Pos) /*!< 0x00000200 */
  16151. #define SPI_CR1_CSTART SPI_CR1_CSTART_Msk /*!<Master transfer start */
  16152. #define SPI_CR1_CSUSP_Pos (10U)
  16153. #define SPI_CR1_CSUSP_Msk (0x1U << SPI_CR1_CSUSP_Pos) /*!< 0x00000400 */
  16154. #define SPI_CR1_CSUSP SPI_CR1_CSUSP_Msk /*!<Master SUSPend request */
  16155. #define SPI_CR1_HDDIR_Pos (11U)
  16156. #define SPI_CR1_HDDIR_Msk (0x1U << SPI_CR1_HDDIR_Pos) /*!< 0x00000800 */
  16157. #define SPI_CR1_HDDIR SPI_CR1_HDDIR_Msk /*!<Rx/Tx direction at Half-duplex mode */
  16158. #define SPI_CR1_SSI_Pos (12U)
  16159. #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00001000 */
  16160. #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal SS signal input level */
  16161. #define SPI_CR1_CRC33_17 ((uint32_t)0x00002000) /*!<32-bit CRC polynomial configuration */
  16162. #define SPI_CR1_RCRCINI_Pos (14U)
  16163. #define SPI_CR1_RCRCINI_Msk (0x1U << SPI_CR1_RCRCINI_Pos) /*!< 0x00004000 */
  16164. #define SPI_CR1_RCRCINI SPI_CR1_RCRCINI_Msk /*!<CRC init pattern control for receiver */
  16165. #define SPI_CR1_TCRCINI_Pos (15U)
  16166. #define SPI_CR1_TCRCINI_Msk (0x1U << SPI_CR1_TCRCINI_Pos) /*!< 0x00008000 */
  16167. #define SPI_CR1_TCRCINI SPI_CR1_TCRCINI_Msk /*!<CRC init pattern control for transmitter */
  16168. #define SPI_CR1_IOLOCK_Pos (16U)
  16169. #define SPI_CR1_IOLOCK_Msk (0x1U << SPI_CR1_IOLOCK_Pos) /*!< 0x00010000 */
  16170. #define SPI_CR1_IOLOCK SPI_CR1_IOLOCK_Msk /*!<Locking the AF configuration of associated IOs */
  16171. /******************* Bit definition for SPI_CR2 register ********************/
  16172. #define SPI_CR2_TSER_Pos (16U)
  16173. #define SPI_CR2_TSER_Msk (0xFFFFU << SPI_CR2_TSER_Pos) /*!< 0xFFFF0000 */
  16174. #define SPI_CR2_TSER SPI_CR2_TSER_Msk /*!<Number of data transfer extension */
  16175. #define SPI_CR2_TSIZE_Pos (0U)
  16176. #define SPI_CR2_TSIZE_Msk (0xFFFFU << SPI_CR2_TSIZE_Pos) /*!< 0x0000FFFF */
  16177. #define SPI_CR2_TSIZE SPI_CR2_TSIZE_Msk /*!<Number of data at current transfer */
  16178. /******************* Bit definition for SPI_CFG1 register ********************/
  16179. #define SPI_CFG1_DSIZE_Pos (0U)
  16180. #define SPI_CFG1_DSIZE_Msk (0x1FU << SPI_CFG1_DSIZE_Pos) /*!< 0x0000001F */
  16181. #define SPI_CFG1_DSIZE SPI_CFG1_DSIZE_Msk /*!<DSIZE[4:0]: Bits number in single SPI data frame */
  16182. #define SPI_CFG1_DSIZE_0 (0x01U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000001 */
  16183. #define SPI_CFG1_DSIZE_1 (0x02U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000002 */
  16184. #define SPI_CFG1_DSIZE_2 (0x04U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000004 */
  16185. #define SPI_CFG1_DSIZE_3 (0x08U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000008 */
  16186. #define SPI_CFG1_DSIZE_4 (0x10U << SPI_CFG1_DSIZE_Pos) /*!< 0x00000010 */
  16187. #define SPI_CFG1_FTHLV_Pos (5U)
  16188. #define SPI_CFG1_FTHLV_Msk (0xFU << SPI_CFG1_FTHLV_Pos) /*!< 0x000001E0 */
  16189. #define SPI_CFG1_FTHLV SPI_CFG1_FTHLV_Msk /*!<FTHVL [3:0]: FIFO threshold level*/
  16190. #define SPI_CFG1_FTHLV_0 (0x1U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000020 */
  16191. #define SPI_CFG1_FTHLV_1 (0x2U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000040 */
  16192. #define SPI_CFG1_FTHLV_2 (0x4U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000080 */
  16193. #define SPI_CFG1_FTHLV_3 (0x8U << SPI_CFG1_FTHLV_Pos) /*!< 0x00000100 */
  16194. #define SPI_CFG1_UDRCFG_Pos (9U)
  16195. #define SPI_CFG1_UDRCFG_Msk (0x3U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000600 */
  16196. #define SPI_CFG1_UDRCFG SPI_CFG1_UDRCFG_Msk /*!<UDRCFG[1:0]: Behavior of transmitter at underrun */
  16197. #define SPI_CFG1_UDRCFG_0 (0x1U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000200 */
  16198. #define SPI_CFG1_UDRCFG_1 (0x2U << SPI_CFG1_UDRCFG_Pos) /*!< 0x00000400 */
  16199. #define SPI_CFG1_UDRDET_Pos (11U)
  16200. #define SPI_CFG1_UDRDET_Msk (0x3U << SPI_CFG1_UDRDET_Pos) /*!< 0x00001800 */
  16201. #define SPI_CFG1_UDRDET SPI_CFG1_UDRDET_Msk /*!<UDRDET[1:0]: Detection of underrun condition */
  16202. #define SPI_CFG1_UDRDET_0 (0x1U << SPI_CFG1_UDRDET_Pos) /*!< 0x00000800 */
  16203. #define SPI_CFG1_UDRDET_1 (0x2U << SPI_CFG1_UDRDET_Pos) /*!< 0x00001000 */
  16204. #define SPI_CFG1_RXDMAEN_Pos (14U)
  16205. #define SPI_CFG1_RXDMAEN_Msk (0x1U << SPI_CFG1_RXDMAEN_Pos) /*!< 0x00004000 */
  16206. #define SPI_CFG1_RXDMAEN SPI_CFG1_RXDMAEN_Msk /*!<Rx DMA stream enable */
  16207. #define SPI_CFG1_TXDMAEN_Pos (15U)
  16208. #define SPI_CFG1_TXDMAEN_Msk (0x1U << SPI_CFG1_TXDMAEN_Pos) /*!< 0x00008000 */
  16209. #define SPI_CFG1_TXDMAEN SPI_CFG1_TXDMAEN_Msk /*!<Tx DMA stream enable */
  16210. #define SPI_CFG1_CRCSIZE_Pos (16U)
  16211. #define SPI_CFG1_CRCSIZE_Msk (0x1FU << SPI_CFG1_CRCSIZE_Pos) /*!< 0x001F0000 */
  16212. #define SPI_CFG1_CRCSIZE SPI_CFG1_CRCSIZE_Msk /*!<CRCSIZE [4:0]: Length of CRC frame*/
  16213. #define SPI_CFG1_CRCSIZE_0 (0x01U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00010000 */
  16214. #define SPI_CFG1_CRCSIZE_1 (0x02U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00020000 */
  16215. #define SPI_CFG1_CRCSIZE_2 (0x04U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00040000 */
  16216. #define SPI_CFG1_CRCSIZE_3 (0x08U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00080000 */
  16217. #define SPI_CFG1_CRCSIZE_4 (0x10U << SPI_CFG1_CRCSIZE_Pos) /*!< 0x00100000 */
  16218. #define SPI_CFG1_CRCEN_Pos (22U)
  16219. #define SPI_CFG1_CRCEN_Msk (0x1U << SPI_CFG1_CRCEN_Pos) /*!< 0x00400000 */
  16220. #define SPI_CFG1_CRCEN SPI_CFG1_CRCEN_Msk /*!<Hardware CRC computation enable */
  16221. #define SPI_CFG1_MBR_Pos (28U)
  16222. #define SPI_CFG1_MBR_Msk (0x7U << SPI_CFG1_MBR_Pos) /*!< 0x70000000 */
  16223. #define SPI_CFG1_MBR SPI_CFG1_MBR_Msk /*!<Master baud rate */
  16224. #define SPI_CFG1_MBR_0 (0x1U << SPI_CFG1_MBR_Pos) /*!< 0x10000000 */
  16225. #define SPI_CFG1_MBR_1 (0x2U << SPI_CFG1_MBR_Pos) /*!< 0x20000000 */
  16226. #define SPI_CFG1_MBR_2 (0x4U << SPI_CFG1_MBR_Pos) /*!< 0x40000000 */
  16227. /******************* Bit definition for SPI_CFG2 register ********************/
  16228. #define SPI_CFG2_MSSI_Pos (0U)
  16229. #define SPI_CFG2_MSSI_Msk (0xFU << SPI_CFG2_MSSI_Pos) /*!< 0x0000000F */
  16230. #define SPI_CFG2_MSSI SPI_CFG2_MSSI_Msk /*!<Master SS Idleness */
  16231. #define SPI_CFG2_MSSI_0 (0x1U << SPI_CFG2_MSSI_Pos) /*!< 0x00000001 */
  16232. #define SPI_CFG2_MSSI_1 (0x2U << SPI_CFG2_MSSI_Pos) /*!< 0x00000002 */
  16233. #define SPI_CFG2_MSSI_2 (0x4U << SPI_CFG2_MSSI_Pos) /*!< 0x00000004 */
  16234. #define SPI_CFG2_MSSI_3 (0x8U << SPI_CFG2_MSSI_Pos) /*!< 0x00000008 */
  16235. #define SPI_CFG2_MIDI_Pos (4U)
  16236. #define SPI_CFG2_MIDI_Msk (0xFU << SPI_CFG2_MIDI_Pos) /*!< 0x000000F0 */
  16237. #define SPI_CFG2_MIDI SPI_CFG2_MIDI_Msk /*!<Master Inter-Data Idleness */
  16238. #define SPI_CFG2_MIDI_0 (0x1U << SPI_CFG2_MIDI_Pos) /*!< 0x00000010 */
  16239. #define SPI_CFG2_MIDI_1 (0x2U << SPI_CFG2_MIDI_Pos) /*!< 0x00000020 */
  16240. #define SPI_CFG2_MIDI_2 (0x4U << SPI_CFG2_MIDI_Pos) /*!< 0x00000040 */
  16241. #define SPI_CFG2_MIDI_3 (0x8U << SPI_CFG2_MIDI_Pos) /*!< 0x00000080 */
  16242. #define SPI_CFG2_IOSWP_Pos (15U)
  16243. #define SPI_CFG2_IOSWP_Msk (0x1U << SPI_CFG2_IOSWP_Pos) /*!< 0x00008000 */
  16244. #define SPI_CFG2_IOSWP SPI_CFG2_IOSWP_Msk /*!<Swap functionality of MISO and MOSI pins */
  16245. #define SPI_CFG2_COMM_Pos (17U)
  16246. #define SPI_CFG2_COMM_Msk (0x3U << SPI_CFG2_COMM_Pos) /*!< 0x00060000 */
  16247. #define SPI_CFG2_COMM SPI_CFG2_COMM_Msk /*!<COMM [1:0]: SPI Communication Mode*/
  16248. #define SPI_CFG2_COMM_0 (0x1U << SPI_CFG2_COMM_Pos) /*!< 0x00020000 */
  16249. #define SPI_CFG2_COMM_1 (0x2U << SPI_CFG2_COMM_Pos) /*!< 0x00040000 */
  16250. #define SPI_CFG2_SP_Pos (19U)
  16251. #define SPI_CFG2_SP_Msk (0x7U << SPI_CFG2_SP_Pos) /*!< 0x00380000 */
  16252. #define SPI_CFG2_SP SPI_CFG2_SP_Msk /*!<SP[2:0]: Serial Protocol */
  16253. #define SPI_CFG2_SP_0 (0x1U << SPI_CFG2_SP_Pos) /*!< 0x00080000 */
  16254. #define SPI_CFG2_SP_1 (0x2U << SPI_CFG2_SP_Pos) /*!< 0x00100000 */
  16255. #define SPI_CFG2_SP_2 (0x4U << SPI_CFG2_SP_Pos) /*!< 0x00200000 */
  16256. #define SPI_CFG2_MASTER_Pos (22U)
  16257. #define SPI_CFG2_MASTER_Msk (0x1U << SPI_CFG2_MASTER_Pos) /*!< 0x00400000 */
  16258. #define SPI_CFG2_MASTER SPI_CFG2_MASTER_Msk /*!<SPI Master */
  16259. #define SPI_CFG2_LSBFRST_Pos (23U)
  16260. #define SPI_CFG2_LSBFRST_Msk (0x1U << SPI_CFG2_LSBFRST_Pos) /*!< 0x00800000 */
  16261. #define SPI_CFG2_LSBFRST SPI_CFG2_LSBFRST_Msk /*!<Data frame format */
  16262. #define SPI_CFG2_CPHA_Pos (24U)
  16263. #define SPI_CFG2_CPHA_Msk (0x1U << SPI_CFG2_CPHA_Pos) /*!< 0x01000000 */
  16264. #define SPI_CFG2_CPHA SPI_CFG2_CPHA_Msk /*!<Clock Phase */
  16265. #define SPI_CFG2_CPOL_Pos (25U)
  16266. #define SPI_CFG2_CPOL_Msk (0x1U << SPI_CFG2_CPOL_Pos) /*!< 0x02000000 */
  16267. #define SPI_CFG2_CPOL SPI_CFG2_CPOL_Msk /*!<Clock Polarity */
  16268. #define SPI_CFG2_SSM_Pos (26U)
  16269. #define SPI_CFG2_SSM_Msk (0x1U << SPI_CFG2_SSM_Pos) /*!< 0x04000000 */
  16270. #define SPI_CFG2_SSM SPI_CFG2_SSM_Msk /*!<Software slave management */
  16271. #define SPI_CFG2_SSIOP_Pos (28U)
  16272. #define SPI_CFG2_SSIOP_Msk (0x1U << SPI_CFG2_SSIOP_Pos) /*!< 0x10000000 */
  16273. #define SPI_CFG2_SSIOP SPI_CFG2_SSIOP_Msk /*!<SS input/output polarity */
  16274. #define SPI_CFG2_SSOE_Pos (29U)
  16275. #define SPI_CFG2_SSOE_Msk (0x1U << SPI_CFG2_SSOE_Pos) /*!< 0x20000000 */
  16276. #define SPI_CFG2_SSOE SPI_CFG2_SSOE_Msk /*!<SS output enable */
  16277. #define SPI_CFG2_SSOM_Pos (30U)
  16278. #define SPI_CFG2_SSOM_Msk (0x1U << SPI_CFG2_SSOM_Pos) /*!< 0x40000000 */
  16279. #define SPI_CFG2_SSOM SPI_CFG2_SSOM_Msk /*!<SS output management in master mode */
  16280. #define SPI_CFG2_AFCNTR_Pos (31U)
  16281. #define SPI_CFG2_AFCNTR_Msk (0x1U << SPI_CFG2_AFCNTR_Pos) /*!< 0x80000000 */
  16282. #define SPI_CFG2_AFCNTR SPI_CFG2_AFCNTR_Msk /*!<Alternate function GPIOs control */
  16283. /******************* Bit definition for SPI_IER register ********************/
  16284. #define SPI_IER_RXPIE_Pos (0U)
  16285. #define SPI_IER_RXPIE_Msk (0x1U << SPI_IER_RXPIE_Pos) /*!< 0x00000001 */
  16286. #define SPI_IER_RXPIE SPI_IER_RXPIE_Msk /*!<RXP Interrupt Enable */
  16287. #define SPI_IER_TXPIE_Pos (1U)
  16288. #define SPI_IER_TXPIE_Msk (0x1U << SPI_IER_TXPIE_Pos) /*!< 0x00000002 */
  16289. #define SPI_IER_TXPIE SPI_IER_TXPIE_Msk /*!<TXP interrupt enable */
  16290. #define SPI_IER_DXPIE_Pos (2U)
  16291. #define SPI_IER_DXPIE_Msk (0x1U << SPI_IER_DXPIE_Pos) /*!< 0x00000004 */
  16292. #define SPI_IER_DXPIE SPI_IER_DXPIE_Msk /*!<DXP interrupt enable */
  16293. #define SPI_IER_EOTIE_Pos (3U)
  16294. #define SPI_IER_EOTIE_Msk (0x1U << SPI_IER_EOTIE_Pos) /*!< 0x00000008 */
  16295. #define SPI_IER_EOTIE SPI_IER_EOTIE_Msk /*!<EOT/SUSP/TXC interrupt enable */
  16296. #define SPI_IER_TXTFIE_Pos (4U)
  16297. #define SPI_IER_TXTFIE_Msk (0x1U << SPI_IER_TXTFIE_Pos) /*!< 0x00000010 */
  16298. #define SPI_IER_TXTFIE SPI_IER_TXTFIE_Msk /*!<TXTF interrupt enable */
  16299. #define SPI_IER_UDRIE_Pos (5U)
  16300. #define SPI_IER_UDRIE_Msk (0x1U << SPI_IER_UDRIE_Pos) /*!< 0x00000020 */
  16301. #define SPI_IER_UDRIE SPI_IER_UDRIE_Msk /*!<UDR interrupt enable */
  16302. #define SPI_IER_OVRIE_Pos (6U)
  16303. #define SPI_IER_OVRIE_Msk (0x1U << SPI_IER_OVRIE_Pos) /*!< 0x00000040 */
  16304. #define SPI_IER_OVRIE SPI_IER_OVRIE_Msk /*!<OVR interrupt enable */
  16305. #define SPI_IER_CRCIE_Pos (7U)
  16306. #define SPI_IER_CRCIE_Msk (0x1U << SPI_IER_CRCIE_Pos) /*!< 0x00000080 */
  16307. #define SPI_IER_CRCIE SPI_IER_CRCIE_Msk /*!<CRC interrupt enable */
  16308. #define SPI_IER_TIFREIE_Pos (8U)
  16309. #define SPI_IER_TIFREIE_Msk (0x1U << SPI_IER_TIFREIE_Pos) /*!< 0x00000100 */
  16310. #define SPI_IER_TIFREIE SPI_IER_TIFREIE_Msk /*!<TI Frame Error interrupt enable */
  16311. #define SPI_IER_MODFIE_Pos (9U)
  16312. #define SPI_IER_MODFIE_Msk (0x1U << SPI_IER_MODFIE_Pos) /*!< 0x00000200 */
  16313. #define SPI_IER_MODFIE SPI_IER_MODFIE_Msk /*!<MODF interrupt enable */
  16314. #define SPI_IER_TSERIE_Pos (10U)
  16315. #define SPI_IER_TSERIE_Msk (0x1U << SPI_IER_TSERIE_Pos) /*!< 0x00000400 */
  16316. #define SPI_IER_TSERIE SPI_IER_TSERIE_Msk /*!<TSER interrupt enable */
  16317. /******************* Bit definition for SPI_SR register ********************/
  16318. #define SPI_SR_RXP_Pos (0U)
  16319. #define SPI_SR_RXP_Msk (0x1U << SPI_SR_RXP_Pos) /*!< 0x00000001 */
  16320. #define SPI_SR_RXP SPI_SR_RXP_Msk /*!<Rx-Packet available */
  16321. #define SPI_SR_TXP_Pos (1U)
  16322. #define SPI_SR_TXP_Msk (0x1U << SPI_SR_TXP_Pos) /*!< 0x00000002 */
  16323. #define SPI_SR_TXP SPI_SR_TXP_Msk /*!<Tx-Packet space available */
  16324. #define SPI_SR_DXP_Pos (2U)
  16325. #define SPI_SR_DXP_Msk (0x1U << SPI_SR_DXP_Pos) /*!< 0x00000004 */
  16326. #define SPI_SR_DXP SPI_SR_DXP_Msk /*!<Duplex Packet available */
  16327. #define SPI_SR_EOT_Pos (3U)
  16328. #define SPI_SR_EOT_Msk (0x1U << SPI_SR_EOT_Pos) /*!< 0x00000008 */
  16329. #define SPI_SR_EOT SPI_SR_EOT_Msk /*!<Duplex Packet available */
  16330. #define SPI_SR_TXTF_Pos (4U)
  16331. #define SPI_SR_TXTF_Msk (0x1U << SPI_SR_TXTF_Pos) /*!< 0x00000010 */
  16332. #define SPI_SR_TXTF SPI_SR_TXTF_Msk /*!<Transmission Transfer Filled */
  16333. #define SPI_SR_UDR_Pos (5U)
  16334. #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000020 */
  16335. #define SPI_SR_UDR SPI_SR_UDR_Msk /*!<UDR at Slave transmission */
  16336. #define SPI_SR_OVR_Pos (6U)
  16337. #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */
  16338. #define SPI_SR_OVR SPI_SR_OVR_Msk /*!<Rx-Packet available */
  16339. #define SPI_SR_CRCE_Pos (7U)
  16340. #define SPI_SR_CRCE_Msk (0x1U << SPI_SR_CRCE_Pos) /*!< 0x00000080 */
  16341. #define SPI_SR_CRCE SPI_SR_CRCE_Msk /*!<CRC Error Detected */
  16342. #define SPI_SR_TIFRE_Pos (8U)
  16343. #define SPI_SR_TIFRE_Msk (0x1U << SPI_SR_TIFRE_Pos) /*!< 0x00000100 */
  16344. #define SPI_SR_TIFRE SPI_SR_TIFRE_Msk /*!<TI frame format error Detected */
  16345. #define SPI_SR_MODF_Pos (9U)
  16346. #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000200 */
  16347. #define SPI_SR_MODF SPI_SR_MODF_Msk /*!<Mode Fault Detected */
  16348. #define SPI_SR_TSERF_Pos (10U)
  16349. #define SPI_SR_TSERF_Msk (0x1U << SPI_SR_TSERF_Pos) /*!< 0x00000400 */
  16350. #define SPI_SR_TSERF SPI_SR_TSERF_Msk /*!<Number of SPI data to be transacted reloaded */
  16351. #define SPI_SR_SUSP_Pos (11U)
  16352. #define SPI_SR_SUSP_Msk (0x1U << SPI_SR_SUSP_Pos) /*!< 0x00000800 */
  16353. #define SPI_SR_SUSP SPI_SR_SUSP_Msk /*!<SUSP is set by hardware */
  16354. #define SPI_SR_TXC_Pos (12U)
  16355. #define SPI_SR_TXC_Msk (0x1U << SPI_SR_TXC_Pos) /*!< 0x00001000 */
  16356. #define SPI_SR_TXC SPI_SR_TXC_Msk /*!<TxFIFO transmission complete */
  16357. #define SPI_SR_RXPLVL_Pos (13U)
  16358. #define SPI_SR_RXPLVL_Msk (0x3U << SPI_SR_RXPLVL_Pos) /*!< 0x00006000 */
  16359. #define SPI_SR_RXPLVL SPI_SR_RXPLVL_Msk /*!<RxFIFO Packing Level */
  16360. #define SPI_SR_RXPLVL_0 (0x1U << SPI_SR_RXPLVL_Pos) /*!< 0x00002000 */
  16361. #define SPI_SR_RXPLVL_1 (0x2U << SPI_SR_RXPLVL_Pos) /*!< 0x00004000 */
  16362. #define SPI_SR_RXWNE_Pos (15U)
  16363. #define SPI_SR_RXWNE_Msk (0x1U << SPI_SR_RXWNE_Pos) /*!< 0x00008000 */
  16364. #define SPI_SR_RXWNE SPI_SR_RXWNE_Msk /*!<Rx FIFO Word Not Empty */
  16365. #define SPI_SR_CTSIZE_Pos (16U)
  16366. #define SPI_SR_CTSIZE_Msk (0xFFFFU << SPI_SR_CTSIZE_Pos) /*!< 0xFFFF0000 */
  16367. #define SPI_SR_CTSIZE SPI_SR_CTSIZE_Msk /*!<Number of data frames remaining in TSIZE */
  16368. /******************* Bit definition for SPI_IFCR register ********************/
  16369. #define SPI_IFCR_EOTC_Pos (3U)
  16370. #define SPI_IFCR_EOTC_Msk (0x1U << SPI_IFCR_EOTC_Pos) /*!< 0x00000008 */
  16371. #define SPI_IFCR_EOTC SPI_IFCR_EOTC_Msk /*!<End Of Transfer flag clear */
  16372. #define SPI_IFCR_TXTFC_Pos (4U)
  16373. #define SPI_IFCR_TXTFC_Msk (0x1U << SPI_IFCR_TXTFC_Pos) /*!< 0x00000010 */
  16374. #define SPI_IFCR_TXTFC SPI_IFCR_TXTFC_Msk /*!<Transmission Transfer Filled flag clear */
  16375. #define SPI_IFCR_UDRC_Pos (5U)
  16376. #define SPI_IFCR_UDRC_Msk (0x1U << SPI_IFCR_UDRC_Pos) /*!< 0x00000020 */
  16377. #define SPI_IFCR_UDRC SPI_IFCR_UDRC_Msk /*!<Underrun flag clear */
  16378. #define SPI_IFCR_OVRC_Pos (6U)
  16379. #define SPI_IFCR_OVRC_Msk (0x1U << SPI_IFCR_OVRC_Pos) /*!< 0x00000040 */
  16380. #define SPI_IFCR_OVRC SPI_IFCR_OVRC_Msk /*!<Overrun flag clear */
  16381. #define SPI_IFCR_CRCEC_Pos (7U)
  16382. #define SPI_IFCR_CRCEC_Msk (0x1U << SPI_IFCR_CRCEC_Pos) /*!< 0x00000080 */
  16383. #define SPI_IFCR_CRCEC SPI_IFCR_CRCEC_Msk /*!<CRC Error flag clear */
  16384. #define SPI_IFCR_TIFREC_Pos (8U)
  16385. #define SPI_IFCR_TIFREC_Msk (0x1U << SPI_IFCR_TIFREC_Pos) /*!< 0x00000100 */
  16386. #define SPI_IFCR_TIFREC SPI_IFCR_TIFREC_Msk /*!<TI frame format error flag clear */
  16387. #define SPI_IFCR_MODFC_Pos (9U)
  16388. #define SPI_IFCR_MODFC_Msk (0x1U << SPI_IFCR_MODFC_Pos) /*!< 0x00000200 */
  16389. #define SPI_IFCR_MODFC SPI_IFCR_MODFC_Msk /*!<Mode Fault flag clear */
  16390. #define SPI_IFCR_TSERFC_Pos (10U)
  16391. #define SPI_IFCR_TSERFC_Msk (0x1U << SPI_IFCR_TSERFC_Pos) /*!< 0x00000400 */
  16392. #define SPI_IFCR_TSERFC SPI_IFCR_TSERFC_Msk /*!<TSERFC flag clear */
  16393. #define SPI_IFCR_SUSPC_Pos (11U)
  16394. #define SPI_IFCR_SUSPC_Msk (0x1U << SPI_IFCR_SUSPC_Pos) /*!< 0x00000800 */
  16395. #define SPI_IFCR_SUSPC SPI_IFCR_SUSPC_Msk /*!<SUSPend flag clear */
  16396. /******************* Bit definition for SPI_TXDR register ********************/
  16397. #define SPI_TXDR_TXDR_Pos (0U)
  16398. #define SPI_TXDR_TXDR_Msk (0xFFFFFFFFU << SPI_TXDR_TXDR_Pos) /*!< 0xFFFFFFFF */
  16399. #define SPI_TXDR_TXDR SPI_TXDR_TXDR_Msk /* Transmit Data Register */
  16400. /******************* Bit definition for SPI_RXDR register ********************/
  16401. #define SPI_RXDR_RXDR_Pos (0U)
  16402. #define SPI_RXDR_RXDR_Msk (0xFFFFFFFFU << SPI_RXDR_RXDR_Pos) /*!< 0xFFFFFFFF */
  16403. #define SPI_RXDR_RXDR SPI_RXDR_RXDR_Msk /* Receive Data Register */
  16404. /******************* Bit definition for SPI_CRCPOLY register ********************/
  16405. #define SPI_CRCPOLY_CRCPOLY_Pos (0U)
  16406. #define SPI_CRCPOLY_CRCPOLY_Msk (0xFFFFFFFFU << SPI_CRCPOLY_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
  16407. #define SPI_CRCPOLY_CRCPOLY SPI_CRCPOLY_CRCPOLY_Msk /* CRC Polynomial register */
  16408. /******************* Bit definition for SPI_TXCRC register ********************/
  16409. #define SPI_TXCRC_TXCRC_Pos (0U)
  16410. #define SPI_TXCRC_TXCRC_Msk (0xFFFFFFFFU << SPI_TXCRC_TXCRC_Pos) /*!< 0xFFFFFFFF */
  16411. #define SPI_TXCRC_TXCRC SPI_TXCRC_TXCRC_Msk /* CRCRegister for transmitter */
  16412. /******************* Bit definition for SPI_RXCRC register ********************/
  16413. #define SPI_TXCRC_RXCRC_Pos (0U)
  16414. #define SPI_TXCRC_RXCRC_Msk (0xFFFFFFFFU << SPI_TXCRC_RXCRC_Pos) /*!< 0xFFFFFFFF */
  16415. #define SPI_TXCRC_RXCRC SPI_TXCRC_RXCRC_Msk /* CRCRegister for receiver */
  16416. /******************* Bit definition for SPI_UDRDR register ********************/
  16417. #define SPI_UDRDR_UDRDR_Pos (0U)
  16418. #define SPI_UDRDR_UDRDR_Msk (0xFFFFFFFFU << SPI_UDRDR_UDRDR_Pos) /*!< 0xFFFFFFFF */
  16419. #define SPI_UDRDR_UDRDR SPI_UDRDR_UDRDR_Msk /* Data at slave underrun condition */
  16420. /****************** Bit definition for SPI_I2SCFGR register *****************/
  16421. #define SPI_I2SCFGR_I2SMOD_Pos (0U)
  16422. #define SPI_I2SCFGR_I2SMOD_Msk (0x1U << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000001 */
  16423. #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!<I2S mode selection */
  16424. #define SPI_I2SCFGR_I2SCFG_Pos (1U)
  16425. #define SPI_I2SCFGR_I2SCFG_Msk (0x7U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x0000000E */
  16426. #define SPI_I2SCFGR_I2SCFG SPI_I2SCFGR_I2SCFG_Msk /*!<I2SCFG[2:0] I2S configuration mode */
  16427. #define SPI_I2SCFGR_I2SCFG_0 (0x1U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000002 */
  16428. #define SPI_I2SCFGR_I2SCFG_1 (0x2U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000004 */
  16429. #define SPI_I2SCFGR_I2SCFG_2 (0x4U << SPI_I2SCFGR_I2SCFG_Pos) /*!< 0x00000008 */
  16430. #define SPI_I2SCFGR_I2SSTD_Pos (4U)
  16431. #define SPI_I2SCFGR_I2SSTD_Msk (0x3U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000030 */
  16432. #define SPI_I2SCFGR_I2SSTD SPI_I2SCFGR_I2SSTD_Msk /*!<I2SSTD[1:0] I2S standard selection */
  16433. #define SPI_I2SCFGR_I2SSTD_0 (0x1U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000010 */
  16434. #define SPI_I2SCFGR_I2SSTD_1 (0x2U << SPI_I2SCFGR_I2SSTD_Pos) /*!< 0x00000020 */
  16435. #define SPI_I2SCFGR_PCMSYNC_Pos (7U)
  16436. #define SPI_I2SCFGR_PCMSYNC_Msk (0x1U << SPI_I2SCFGR_PCMSYNC_Pos) /*!< 0x00000080 */
  16437. #define SPI_I2SCFGR_PCMSYNC SPI_I2SCFGR_PCMSYNC_Msk /*!<PCM frame synchronization */
  16438. #define SPI_I2SCFGR_DATLEN_Pos (8U)
  16439. #define SPI_I2SCFGR_DATLEN_Msk (0x3U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000300 */
  16440. #define SPI_I2SCFGR_DATLEN SPI_I2SCFGR_DATLEN_Msk /*!<DATLEN[1:0] Data length to be transferred */
  16441. #define SPI_I2SCFGR_DATLEN_0 (0x1U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000100 */
  16442. #define SPI_I2SCFGR_DATLEN_1 (0x2U << SPI_I2SCFGR_DATLEN_Pos) /*!< 0x00000200 */
  16443. #define SPI_I2SCFGR_CHLEN_Pos (10U)
  16444. #define SPI_I2SCFGR_CHLEN_Msk (0x1U << SPI_I2SCFGR_CHLEN_Pos) /*!< 0x00000400 */
  16445. #define SPI_I2SCFGR_CHLEN SPI_I2SCFGR_CHLEN_Msk /*!<Channel length (number of bits per audio channel) */
  16446. #define SPI_I2SCFGR_CKPOL_Pos (11U)
  16447. #define SPI_I2SCFGR_CKPOL_Msk (0x1U << SPI_I2SCFGR_CKPOL_Pos) /*!< 0x00000800 */
  16448. #define SPI_I2SCFGR_CKPOL SPI_I2SCFGR_CKPOL_Msk /*!<Steady state clock polarity */
  16449. #define SPI_I2SCFGR_WSINV_Pos (12U)
  16450. #define SPI_I2SCFGR_WSINV_Msk (0x1U << SPI_I2SCFGR_WSINV_Pos) /*!< 0x00001000 */
  16451. #define SPI_I2SCFGR_WSINV SPI_I2SCFGR_WSINV_Msk /*!<Word select inversion */
  16452. #define SPI_I2SCFGR_FIXCH_Pos (13U)
  16453. #define SPI_I2SCFGR_FIXCH_Msk (0x1U << SPI_I2SCFGR_FIXCH_Pos) /*!< 0x00002000 */
  16454. #define SPI_I2SCFGR_FIXCH SPI_I2SCFGR_FIXCH_Msk /*!<Fixed channel length in SLAVE */
  16455. #define SPI_I2SCFGR_DATFMT_Pos (12U)
  16456. #define SPI_I2SCFGR_DATFMT_Msk (0x3U << SPI_I2SCFGR_DATFMT_Pos) /*!< 0x00003000 */
  16457. #define SPI_I2SCFGR_DATFMT SPI_I2SCFGR_DATFMT_Msk /*!<Data format */
  16458. #define SPI_I2SCFGR_I2SDIV_Pos (16U)
  16459. #define SPI_I2SCFGR_I2SDIV_Msk (0xFFU << SPI_I2SCFGR_I2SDIV_Pos) /*!< 0x00FF0000 */
  16460. #define SPI_I2SCFGR_I2SDIV SPI_I2SCFGR_I2SDIV_Msk /*!<I2S Linear prescaler */
  16461. #define SPI_I2SCFGR_ODD_Pos (24U)
  16462. #define SPI_I2SCFGR_ODD_Msk (0x1U << SPI_I2SCFGR_ODD_Pos) /*!< 0x01000000 */
  16463. #define SPI_I2SCFGR_ODD SPI_I2SCFGR_ODD_Msk /*!<Odd factor for the prescaler */
  16464. #define SPI_I2SCFGR_MCKOE_Pos (25U)
  16465. #define SPI_I2SCFGR_MCKOE_Msk (0x1U << SPI_I2SCFGR_MCKOE_Pos) /*!< 0x02000000 */
  16466. #define SPI_I2SCFGR_MCKOE SPI_I2SCFGR_MCKOE_Msk /*!<Master Clock Output Enable */
  16467. /******************************************************************************/
  16468. /* */
  16469. /* QUADSPI */
  16470. /* */
  16471. /******************************************************************************/
  16472. /***************** Bit definition for QUADSPI_CR register *******************/
  16473. #define QUADSPI_CR_EN_Pos (0U)
  16474. #define QUADSPI_CR_EN_Msk (0x1U << QUADSPI_CR_EN_Pos) /*!< 0x00000001 */
  16475. #define QUADSPI_CR_EN QUADSPI_CR_EN_Msk /*!< Enable */
  16476. #define QUADSPI_CR_ABORT_Pos (1U)
  16477. #define QUADSPI_CR_ABORT_Msk (0x1U << QUADSPI_CR_ABORT_Pos) /*!< 0x00000002 */
  16478. #define QUADSPI_CR_ABORT QUADSPI_CR_ABORT_Msk /*!< Abort request */
  16479. #define QUADSPI_CR_DMAEN_Pos (2U)
  16480. #define QUADSPI_CR_DMAEN_Msk (0x1U << QUADSPI_CR_DMAEN_Pos) /*!< 0x00000004 */
  16481. #define QUADSPI_CR_DMAEN QUADSPI_CR_DMAEN_Msk /*!< DMA Enable */
  16482. #define QUADSPI_CR_TCEN_Pos (3U)
  16483. #define QUADSPI_CR_TCEN_Msk (0x1U << QUADSPI_CR_TCEN_Pos) /*!< 0x00000008 */
  16484. #define QUADSPI_CR_TCEN QUADSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */
  16485. #define QUADSPI_CR_SSHIFT_Pos (4U)
  16486. #define QUADSPI_CR_SSHIFT_Msk (0x1U << QUADSPI_CR_SSHIFT_Pos) /*!< 0x00000010 */
  16487. #define QUADSPI_CR_SSHIFT QUADSPI_CR_SSHIFT_Msk /*!< SSHIFT Sample Shift */
  16488. #define QUADSPI_CR_DFM_Pos (6U)
  16489. #define QUADSPI_CR_DFM_Msk (0x1U << QUADSPI_CR_DFM_Pos) /*!< 0x00000040 */
  16490. #define QUADSPI_CR_DFM QUADSPI_CR_DFM_Msk /*!< Dual Flash Mode */
  16491. #define QUADSPI_CR_FSEL_Pos (7U)
  16492. #define QUADSPI_CR_FSEL_Msk (0x1U << QUADSPI_CR_FSEL_Pos) /*!< 0x00000080 */
  16493. #define QUADSPI_CR_FSEL QUADSPI_CR_FSEL_Msk /*!< Flash Select */
  16494. #define QUADSPI_CR_FTHRES_Pos (8U)
  16495. #define QUADSPI_CR_FTHRES_Msk (0xFU << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000F00 */
  16496. #define QUADSPI_CR_FTHRES QUADSPI_CR_FTHRES_Msk /*!< FTHRES[3:0] FIFO Level */
  16497. #define QUADSPI_CR_FTHRES_0 (0x1U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000100 */
  16498. #define QUADSPI_CR_FTHRES_1 (0x2U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000200 */
  16499. #define QUADSPI_CR_FTHRES_2 (0x4U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000400 */
  16500. #define QUADSPI_CR_FTHRES_3 (0x8U << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000800 */
  16501. #define QUADSPI_CR_TEIE_Pos (16U)
  16502. #define QUADSPI_CR_TEIE_Msk (0x1U << QUADSPI_CR_TEIE_Pos) /*!< 0x00010000 */
  16503. #define QUADSPI_CR_TEIE QUADSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */
  16504. #define QUADSPI_CR_TCIE_Pos (17U)
  16505. #define QUADSPI_CR_TCIE_Msk (0x1U << QUADSPI_CR_TCIE_Pos) /*!< 0x00020000 */
  16506. #define QUADSPI_CR_TCIE QUADSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */
  16507. #define QUADSPI_CR_FTIE_Pos (18U)
  16508. #define QUADSPI_CR_FTIE_Msk (0x1U << QUADSPI_CR_FTIE_Pos) /*!< 0x00040000 */
  16509. #define QUADSPI_CR_FTIE QUADSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */
  16510. #define QUADSPI_CR_SMIE_Pos (19U)
  16511. #define QUADSPI_CR_SMIE_Msk (0x1U << QUADSPI_CR_SMIE_Pos) /*!< 0x00080000 */
  16512. #define QUADSPI_CR_SMIE QUADSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */
  16513. #define QUADSPI_CR_TOIE_Pos (20U)
  16514. #define QUADSPI_CR_TOIE_Msk (0x1U << QUADSPI_CR_TOIE_Pos) /*!< 0x00100000 */
  16515. #define QUADSPI_CR_TOIE QUADSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */
  16516. #define QUADSPI_CR_APMS_Pos (22U)
  16517. #define QUADSPI_CR_APMS_Msk (0x1U << QUADSPI_CR_APMS_Pos) /*!< 0x00400000 */
  16518. #define QUADSPI_CR_APMS QUADSPI_CR_APMS_Msk /*!< Bit 1 */
  16519. #define QUADSPI_CR_PMM_Pos (23U)
  16520. #define QUADSPI_CR_PMM_Msk (0x1U << QUADSPI_CR_PMM_Pos) /*!< 0x00800000 */
  16521. #define QUADSPI_CR_PMM QUADSPI_CR_PMM_Msk /*!< Polling Match Mode */
  16522. #define QUADSPI_CR_PRESCALER_Pos (24U)
  16523. #define QUADSPI_CR_PRESCALER_Msk (0xFFU << QUADSPI_CR_PRESCALER_Pos) /*!< 0xFF000000 */
  16524. #define QUADSPI_CR_PRESCALER QUADSPI_CR_PRESCALER_Msk /*!< PRESCALER[7:0] Clock prescaler */
  16525. #define QUADSPI_CR_PRESCALER_0 (0x01U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x01000000 */
  16526. #define QUADSPI_CR_PRESCALER_1 (0x02U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x02000000 */
  16527. #define QUADSPI_CR_PRESCALER_2 (0x04U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x04000000 */
  16528. #define QUADSPI_CR_PRESCALER_3 (0x08U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x08000000 */
  16529. #define QUADSPI_CR_PRESCALER_4 (0x10U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x10000000 */
  16530. #define QUADSPI_CR_PRESCALER_5 (0x20U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x20000000 */
  16531. #define QUADSPI_CR_PRESCALER_6 (0x40U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x40000000 */
  16532. #define QUADSPI_CR_PRESCALER_7 (0x80U << QUADSPI_CR_PRESCALER_Pos) /*!< 0x80000000 */
  16533. /***************** Bit definition for QUADSPI_DCR register ******************/
  16534. #define QUADSPI_DCR_CKMODE_Pos (0U)
  16535. #define QUADSPI_DCR_CKMODE_Msk (0x1U << QUADSPI_DCR_CKMODE_Pos) /*!< 0x00000001 */
  16536. #define QUADSPI_DCR_CKMODE QUADSPI_DCR_CKMODE_Msk /*!< Mode 0 / Mode 3 */
  16537. #define QUADSPI_DCR_CSHT_Pos (8U)
  16538. #define QUADSPI_DCR_CSHT_Msk (0x7U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000700 */
  16539. #define QUADSPI_DCR_CSHT QUADSPI_DCR_CSHT_Msk /*!< CSHT[2:0]: ChipSelect High Time */
  16540. #define QUADSPI_DCR_CSHT_0 (0x1U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000100 */
  16541. #define QUADSPI_DCR_CSHT_1 (0x2U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000200 */
  16542. #define QUADSPI_DCR_CSHT_2 (0x4U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000400 */
  16543. #define QUADSPI_DCR_FSIZE_Pos (16U)
  16544. #define QUADSPI_DCR_FSIZE_Msk (0x1FU << QUADSPI_DCR_FSIZE_Pos) /*!< 0x001F0000 */
  16545. #define QUADSPI_DCR_FSIZE QUADSPI_DCR_FSIZE_Msk /*!< FSIZE[4:0]: Flash Size */
  16546. #define QUADSPI_DCR_FSIZE_0 (0x01U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00010000 */
  16547. #define QUADSPI_DCR_FSIZE_1 (0x02U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00020000 */
  16548. #define QUADSPI_DCR_FSIZE_2 (0x04U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00040000 */
  16549. #define QUADSPI_DCR_FSIZE_3 (0x08U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00080000 */
  16550. #define QUADSPI_DCR_FSIZE_4 (0x10U << QUADSPI_DCR_FSIZE_Pos) /*!< 0x00100000 */
  16551. /****************** Bit definition for QUADSPI_SR register *******************/
  16552. #define QUADSPI_SR_TEF_Pos (0U)
  16553. #define QUADSPI_SR_TEF_Msk (0x1U << QUADSPI_SR_TEF_Pos) /*!< 0x00000001 */
  16554. #define QUADSPI_SR_TEF QUADSPI_SR_TEF_Msk /*!< Transfer Error Flag */
  16555. #define QUADSPI_SR_TCF_Pos (1U)
  16556. #define QUADSPI_SR_TCF_Msk (0x1U << QUADSPI_SR_TCF_Pos) /*!< 0x00000002 */
  16557. #define QUADSPI_SR_TCF QUADSPI_SR_TCF_Msk /*!< Transfer Complete Flag */
  16558. #define QUADSPI_SR_FTF_Pos (2U)
  16559. #define QUADSPI_SR_FTF_Msk (0x1U << QUADSPI_SR_FTF_Pos) /*!< 0x00000004 */
  16560. #define QUADSPI_SR_FTF QUADSPI_SR_FTF_Msk /*!< FIFO Threshlod Flag */
  16561. #define QUADSPI_SR_SMF_Pos (3U)
  16562. #define QUADSPI_SR_SMF_Msk (0x1U << QUADSPI_SR_SMF_Pos) /*!< 0x00000008 */
  16563. #define QUADSPI_SR_SMF QUADSPI_SR_SMF_Msk /*!< Status Match Flag */
  16564. #define QUADSPI_SR_TOF_Pos (4U)
  16565. #define QUADSPI_SR_TOF_Msk (0x1U << QUADSPI_SR_TOF_Pos) /*!< 0x00000010 */
  16566. #define QUADSPI_SR_TOF QUADSPI_SR_TOF_Msk /*!< Timeout Flag */
  16567. #define QUADSPI_SR_BUSY_Pos (5U)
  16568. #define QUADSPI_SR_BUSY_Msk (0x1U << QUADSPI_SR_BUSY_Pos) /*!< 0x00000020 */
  16569. #define QUADSPI_SR_BUSY QUADSPI_SR_BUSY_Msk /*!< Busy */
  16570. #define QUADSPI_SR_FLEVEL_Pos (8U)
  16571. #define QUADSPI_SR_FLEVEL_Msk (0x1FU << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00001F00 */
  16572. #define QUADSPI_SR_FLEVEL QUADSPI_SR_FLEVEL_Msk /*!< FIFO Threshlod Flag */
  16573. #define QUADSPI_SR_FLEVEL_0 (0x01U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000100 */
  16574. #define QUADSPI_SR_FLEVEL_1 (0x02U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000200 */
  16575. #define QUADSPI_SR_FLEVEL_2 (0x04U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000400 */
  16576. #define QUADSPI_SR_FLEVEL_3 (0x08U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00000800 */
  16577. #define QUADSPI_SR_FLEVEL_4 (0x10U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00001000 */
  16578. #define QUADSPI_SR_FLEVEL_5 (0x20U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00002000 */
  16579. #define QUADSPI_SR_FLEVEL_6 (0x30U << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00003000 */
  16580. /****************** Bit definition for QUADSPI_FCR register ******************/
  16581. #define QUADSPI_FCR_CTEF_Pos (0U)
  16582. #define QUADSPI_FCR_CTEF_Msk (0x1U << QUADSPI_FCR_CTEF_Pos) /*!< 0x00000001 */
  16583. #define QUADSPI_FCR_CTEF QUADSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */
  16584. #define QUADSPI_FCR_CTCF_Pos (1U)
  16585. #define QUADSPI_FCR_CTCF_Msk (0x1U << QUADSPI_FCR_CTCF_Pos) /*!< 0x00000002 */
  16586. #define QUADSPI_FCR_CTCF QUADSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */
  16587. #define QUADSPI_FCR_CSMF_Pos (3U)
  16588. #define QUADSPI_FCR_CSMF_Msk (0x1U << QUADSPI_FCR_CSMF_Pos) /*!< 0x00000008 */
  16589. #define QUADSPI_FCR_CSMF QUADSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */
  16590. #define QUADSPI_FCR_CTOF_Pos (4U)
  16591. #define QUADSPI_FCR_CTOF_Msk (0x1U << QUADSPI_FCR_CTOF_Pos) /*!< 0x00000010 */
  16592. #define QUADSPI_FCR_CTOF QUADSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */
  16593. /****************** Bit definition for QUADSPI_DLR register ******************/
  16594. #define QUADSPI_DLR_DL_Pos (0U)
  16595. #define QUADSPI_DLR_DL_Msk (0xFFFFFFFFU << QUADSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */
  16596. #define QUADSPI_DLR_DL QUADSPI_DLR_DL_Msk /*!< DL[31:0]: Data Length */
  16597. /****************** Bit definition for QUADSPI_CCR register ******************/
  16598. #define QUADSPI_CCR_INSTRUCTION_Pos (0U)
  16599. #define QUADSPI_CCR_INSTRUCTION_Msk (0xFFU << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x000000FF */
  16600. #define QUADSPI_CCR_INSTRUCTION QUADSPI_CCR_INSTRUCTION_Msk /*!< INSTRUCTION[7:0]: Instruction */
  16601. #define QUADSPI_CCR_INSTRUCTION_0 (0x01U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000001 */
  16602. #define QUADSPI_CCR_INSTRUCTION_1 (0x02U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000002 */
  16603. #define QUADSPI_CCR_INSTRUCTION_2 (0x04U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000004 */
  16604. #define QUADSPI_CCR_INSTRUCTION_3 (0x08U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000008 */
  16605. #define QUADSPI_CCR_INSTRUCTION_4 (0x10U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000010 */
  16606. #define QUADSPI_CCR_INSTRUCTION_5 (0x20U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000020 */
  16607. #define QUADSPI_CCR_INSTRUCTION_6 (0x40U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000040 */
  16608. #define QUADSPI_CCR_INSTRUCTION_7 (0x80U << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x00000080 */
  16609. #define QUADSPI_CCR_IMODE_Pos (8U)
  16610. #define QUADSPI_CCR_IMODE_Msk (0x3U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000300 */
  16611. #define QUADSPI_CCR_IMODE QUADSPI_CCR_IMODE_Msk /*!< IMODE[1:0]: Instruction Mode */
  16612. #define QUADSPI_CCR_IMODE_0 (0x1U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000100 */
  16613. #define QUADSPI_CCR_IMODE_1 (0x2U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000200 */
  16614. #define QUADSPI_CCR_ADMODE_Pos (10U)
  16615. #define QUADSPI_CCR_ADMODE_Msk (0x3U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000C00 */
  16616. #define QUADSPI_CCR_ADMODE QUADSPI_CCR_ADMODE_Msk /*!< ADMODE[1:0]: Address Mode */
  16617. #define QUADSPI_CCR_ADMODE_0 (0x1U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */
  16618. #define QUADSPI_CCR_ADMODE_1 (0x2U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000800 */
  16619. #define QUADSPI_CCR_ADSIZE_Pos (12U)
  16620. #define QUADSPI_CCR_ADSIZE_Msk (0x3U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */
  16621. #define QUADSPI_CCR_ADSIZE QUADSPI_CCR_ADSIZE_Msk /*!< ADSIZE[1:0]: Address Size */
  16622. #define QUADSPI_CCR_ADSIZE_0 (0x1U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */
  16623. #define QUADSPI_CCR_ADSIZE_1 (0x2U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */
  16624. #define QUADSPI_CCR_ABMODE_Pos (14U)
  16625. #define QUADSPI_CCR_ABMODE_Msk (0x3U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x0000C000 */
  16626. #define QUADSPI_CCR_ABMODE QUADSPI_CCR_ABMODE_Msk /*!< ABMODE[1:0]: Alternate Bytes Mode */
  16627. #define QUADSPI_CCR_ABMODE_0 (0x1U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00004000 */
  16628. #define QUADSPI_CCR_ABMODE_1 (0x2U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00008000 */
  16629. #define QUADSPI_CCR_ABSIZE_Pos (16U)
  16630. #define QUADSPI_CCR_ABSIZE_Msk (0x3U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00030000 */
  16631. #define QUADSPI_CCR_ABSIZE QUADSPI_CCR_ABSIZE_Msk /*!< ABSIZE[1:0]: Instruction Mode */
  16632. #define QUADSPI_CCR_ABSIZE_0 (0x1U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00010000 */
  16633. #define QUADSPI_CCR_ABSIZE_1 (0x2U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00020000 */
  16634. #define QUADSPI_CCR_DCYC_Pos (18U)
  16635. #define QUADSPI_CCR_DCYC_Msk (0x1FU << QUADSPI_CCR_DCYC_Pos) /*!< 0x007C0000 */
  16636. #define QUADSPI_CCR_DCYC QUADSPI_CCR_DCYC_Msk /*!< DCYC[4:0]: Dummy Cycles */
  16637. #define QUADSPI_CCR_DCYC_0 (0x01U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00040000 */
  16638. #define QUADSPI_CCR_DCYC_1 (0x02U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00080000 */
  16639. #define QUADSPI_CCR_DCYC_2 (0x04U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00100000 */
  16640. #define QUADSPI_CCR_DCYC_3 (0x08U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00200000 */
  16641. #define QUADSPI_CCR_DCYC_4 (0x10U << QUADSPI_CCR_DCYC_Pos) /*!< 0x00400000 */
  16642. #define QUADSPI_CCR_DMODE_Pos (24U)
  16643. #define QUADSPI_CCR_DMODE_Msk (0x3U << QUADSPI_CCR_DMODE_Pos) /*!< 0x03000000 */
  16644. #define QUADSPI_CCR_DMODE QUADSPI_CCR_DMODE_Msk /*!< DMODE[1:0]: Data Mode */
  16645. #define QUADSPI_CCR_DMODE_0 (0x1U << QUADSPI_CCR_DMODE_Pos) /*!< 0x01000000 */
  16646. #define QUADSPI_CCR_DMODE_1 (0x2U << QUADSPI_CCR_DMODE_Pos) /*!< 0x02000000 */
  16647. #define QUADSPI_CCR_FMODE_Pos (26U)
  16648. #define QUADSPI_CCR_FMODE_Msk (0x3U << QUADSPI_CCR_FMODE_Pos) /*!< 0x0C000000 */
  16649. #define QUADSPI_CCR_FMODE QUADSPI_CCR_FMODE_Msk /*!< FMODE[1:0]: Functional Mode */
  16650. #define QUADSPI_CCR_FMODE_0 (0x1U << QUADSPI_CCR_FMODE_Pos) /*!< 0x04000000 */
  16651. #define QUADSPI_CCR_FMODE_1 (0x2U << QUADSPI_CCR_FMODE_Pos) /*!< 0x08000000 */
  16652. #define QUADSPI_CCR_SIOO_Pos (28U)
  16653. #define QUADSPI_CCR_SIOO_Msk (0x1U << QUADSPI_CCR_SIOO_Pos) /*!< 0x10000000 */
  16654. #define QUADSPI_CCR_SIOO QUADSPI_CCR_SIOO_Msk /*!< SIOO: Send Instruction Only Once Mode */
  16655. #define QUADSPI_CCR_DHHC_Pos (30U)
  16656. #define QUADSPI_CCR_DHHC_Msk (0x1U << QUADSPI_CCR_DHHC_Pos) /*!< 0x40000000 */
  16657. #define QUADSPI_CCR_DHHC QUADSPI_CCR_DHHC_Msk /*!< DHHC: DDR hold half cycle */
  16658. #define QUADSPI_CCR_DDRM_Pos (31U)
  16659. #define QUADSPI_CCR_DDRM_Msk (0x1U << QUADSPI_CCR_DDRM_Pos) /*!< 0x80000000 */
  16660. #define QUADSPI_CCR_DDRM QUADSPI_CCR_DDRM_Msk /*!< DDRM: Double Data Rate Mode */
  16661. /****************** Bit definition for QUADSPI_AR register *******************/
  16662. #define QUADSPI_AR_ADDRESS_Pos (0U)
  16663. #define QUADSPI_AR_ADDRESS_Msk (0xFFFFFFFFU << QUADSPI_AR_ADDRESS_Pos) /*!< 0xFFFFFFFF */
  16664. #define QUADSPI_AR_ADDRESS QUADSPI_AR_ADDRESS_Msk /*!< ADDRESS[31:0]: Address */
  16665. /****************** Bit definition for QUADSPI_ABR register ******************/
  16666. #define QUADSPI_ABR_ALTERNATE_Pos (0U)
  16667. #define QUADSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFU << QUADSPI_ABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
  16668. #define QUADSPI_ABR_ALTERNATE QUADSPI_ABR_ALTERNATE_Msk /*!< ALTERNATE[31:0]: Alternate Bytes */
  16669. /****************** Bit definition for QUADSPI_DR register *******************/
  16670. #define QUADSPI_DR_DATA_Pos (0U)
  16671. #define QUADSPI_DR_DATA_Msk (0xFFFFFFFFU << QUADSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */
  16672. #define QUADSPI_DR_DATA QUADSPI_DR_DATA_Msk /*!< DATA[31:0]: Data */
  16673. /****************** Bit definition for QUADSPI_PSMKR register ****************/
  16674. #define QUADSPI_PSMKR_MASK_Pos (0U)
  16675. #define QUADSPI_PSMKR_MASK_Msk (0xFFFFFFFFU << QUADSPI_PSMKR_MASK_Pos) /*!< 0xFFFFFFFF */
  16676. #define QUADSPI_PSMKR_MASK QUADSPI_PSMKR_MASK_Msk /*!< MASK[31:0]: Status Mask */
  16677. /****************** Bit definition for QUADSPI_PSMAR register ****************/
  16678. #define QUADSPI_PSMAR_MATCH_Pos (0U)
  16679. #define QUADSPI_PSMAR_MATCH_Msk (0xFFFFFFFFU << QUADSPI_PSMAR_MATCH_Pos) /*!< 0xFFFFFFFF */
  16680. #define QUADSPI_PSMAR_MATCH QUADSPI_PSMAR_MATCH_Msk /*!< MATCH[31:0]: Status Match */
  16681. /****************** Bit definition for QUADSPI_PIR register *****************/
  16682. #define QUADSPI_PIR_INTERVAL_Pos (0U)
  16683. #define QUADSPI_PIR_INTERVAL_Msk (0xFFFFU << QUADSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */
  16684. #define QUADSPI_PIR_INTERVAL QUADSPI_PIR_INTERVAL_Msk /*!< INTERVAL[15:0]: Polling Interval */
  16685. /****************** Bit definition for QUADSPI_LPTR register *****************/
  16686. #define QUADSPI_LPTR_TIMEOUT_Pos (0U)
  16687. #define QUADSPI_LPTR_TIMEOUT_Msk (0xFFFFU << QUADSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */
  16688. #define QUADSPI_LPTR_TIMEOUT QUADSPI_LPTR_TIMEOUT_Msk /*!< TIMEOUT[15:0]: Timeout period */
  16689. /******************************************************************************/
  16690. /* */
  16691. /* SYSCFG */
  16692. /* */
  16693. /******************************************************************************/
  16694. /****************** Bit definition for SYSCFG_PMCR register ******************/
  16695. #define SYSCFG_PMCR_I2C1_FMP_Pos (0U)
  16696. #define SYSCFG_PMCR_I2C1_FMP_Msk (0x1U << SYSCFG_PMCR_I2C1_FMP_Pos) /*!< 0x00000001 */
  16697. #define SYSCFG_PMCR_I2C1_FMP SYSCFG_PMCR_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */
  16698. #define SYSCFG_PMCR_I2C2_FMP_Pos (1U)
  16699. #define SYSCFG_PMCR_I2C2_FMP_Msk (0x1U << SYSCFG_PMCR_I2C2_FMP_Pos) /*!< 0x00000002 */
  16700. #define SYSCFG_PMCR_I2C2_FMP SYSCFG_PMCR_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */
  16701. #define SYSCFG_PMCR_I2C3_FMP_Pos (2U)
  16702. #define SYSCFG_PMCR_I2C3_FMP_Msk (0x1U << SYSCFG_PMCR_I2C3_FMP_Pos) /*!< 0x00000004 */
  16703. #define SYSCFG_PMCR_I2C3_FMP SYSCFG_PMCR_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */
  16704. #define SYSCFG_PMCR_I2C4_FMP_Pos (3U)
  16705. #define SYSCFG_PMCR_I2C4_FMP_Msk (0x1U << SYSCFG_PMCR_I2C4_FMP_Pos) /*!< 0x00000008 */
  16706. #define SYSCFG_PMCR_I2C4_FMP SYSCFG_PMCR_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */
  16707. #define SYSCFG_PMCR_I2C_PB6_FMP_Pos (4U)
  16708. #define SYSCFG_PMCR_I2C_PB6_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB6_FMP_Pos) /*!< 0x00000010 */
  16709. #define SYSCFG_PMCR_I2C_PB6_FMP SYSCFG_PMCR_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */
  16710. #define SYSCFG_PMCR_I2C_PB7_FMP_Pos (5U)
  16711. #define SYSCFG_PMCR_I2C_PB7_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB7_FMP_Pos) /*!< 0x00000020 */
  16712. #define SYSCFG_PMCR_I2C_PB7_FMP SYSCFG_PMCR_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */
  16713. #define SYSCFG_PMCR_I2C_PB8_FMP_Pos (6U)
  16714. #define SYSCFG_PMCR_I2C_PB8_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB8_FMP_Pos) /*!< 0x00000040 */
  16715. #define SYSCFG_PMCR_I2C_PB8_FMP SYSCFG_PMCR_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */
  16716. #define SYSCFG_PMCR_I2C_PB9_FMP_Pos (7U)
  16717. #define SYSCFG_PMCR_I2C_PB9_FMP_Msk (0x1U << SYSCFG_PMCR_I2C_PB9_FMP_Pos) /*!< 0x00000080 */
  16718. #define SYSCFG_PMCR_I2C_PB9_FMP SYSCFG_PMCR_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */
  16719. #define SYSCFG_PMCR_BOOSTEN_Pos (8U)
  16720. #define SYSCFG_PMCR_BOOSTEN_Msk (0x1U << SYSCFG_PMCR_BOOSTEN_Pos) /*!< 0x00000100 */
  16721. #define SYSCFG_PMCR_BOOSTEN SYSCFG_PMCR_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */
  16722. #define SYCFG_PMCR_EPIS_SEL_Pos (21U)
  16723. #define SYCFG_PMCR_EPIS_SEL_Msk (0x7U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00E00000 */
  16724. #define SYCFG_PMCR_EPIS_SEL SYCFG_PMCR_EPIS_SEL_Msk /*!< Ethernet PHY Interface Selection */
  16725. #define SYCFG_PMCR_EPIS_SEL_0 (0x1U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00200000 */
  16726. #define SYCFG_PMCR_EPIS_SEL_1 (0x2U << SYCFG_PMCR_EPIS_SEL_Pos) /*!< 0x00400000 */
  16727. #define SYSCFG_PMCR_EPIS_SEL_2 ((uint32_t)0x00800000) /*!< Bit 2 */
  16728. #define SYSCFG_PMCR_PA0SO_Pos (24U)
  16729. #define SYSCFG_PMCR_PA0SO_Msk (0x1U << SYSCFG_PMCR_PA0SO_Pos) /*!< 0x01000000 */
  16730. #define SYSCFG_PMCR_PA0SO SYSCFG_PMCR_PA0SO_Msk /*!< PA0 Switch Open */
  16731. #define SYSCFG_PMCR_PA1SO_Pos (25U)
  16732. #define SYSCFG_PMCR_PA1SO_Msk (0x1U << SYSCFG_PMCR_PA1SO_Pos) /*!< 0x02000000 */
  16733. #define SYSCFG_PMCR_PA1SO SYSCFG_PMCR_PA1SO_Msk /*!< PA1 Switch Open */
  16734. #define SYSCFG_PMCR_PC2SO_Pos (26U)
  16735. #define SYSCFG_PMCR_PC2SO_Msk (0x1U << SYSCFG_PMCR_PC2SO_Pos) /*!< 0x04000000 */
  16736. #define SYSCFG_PMCR_PC2SO SYSCFG_PMCR_PC2SO_Msk /*!< PC2 Switch Open */
  16737. #define SYSCFG_PMCR_PC3SO_Pos (27U)
  16738. #define SYSCFG_PMCR_PC3SO_Msk (0x1U << SYSCFG_PMCR_PC3SO_Pos) /*!< 0x08000000 */
  16739. #define SYSCFG_PMCR_PC3SO SYSCFG_PMCR_PC3SO_Msk /*!< PC3 Switch Open */
  16740. /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
  16741. #define SYSCFG_EXTICR1_EXTI0 ((uint16_t)0x0007) /*!<EXTI 0 configuration */
  16742. #define SYSCFG_EXTICR1_EXTI1 ((uint16_t)0x0070) /*!<EXTI 1 configuration */
  16743. #define SYSCFG_EXTICR1_EXTI2 ((uint16_t)0x0700) /*!<EXTI 2 configuration */
  16744. #define SYSCFG_EXTICR1_EXTI3 ((uint16_t)0x7000) /*!<EXTI 3 configuration */
  16745. /**
  16746. * @brief EXTI0 configuration
  16747. */
  16748. #define SYSCFG_EXTICR1_EXTI0_PA ((uint16_t)0x0000) /*!<PA[0] pin */
  16749. #define SYSCFG_EXTICR1_EXTI0_PB ((uint16_t)0x0001) /*!<PB[0] pin */
  16750. #define SYSCFG_EXTICR1_EXTI0_PC ((uint16_t)0x0002) /*!<PC[0] pin */
  16751. #define SYSCFG_EXTICR1_EXTI0_PD ((uint16_t)0x0003) /*!<PD[0] pin */
  16752. #define SYSCFG_EXTICR1_EXTI0_PE ((uint16_t)0x0004) /*!<PE[0] pin */
  16753. #define SYSCFG_EXTICR1_EXTI0_PF ((uint16_t)0x0005) /*!<PF[0] pin */
  16754. #define SYSCFG_EXTICR1_EXTI0_PG ((uint16_t)0x0006) /*!<PG[0] pin */
  16755. #define SYSCFG_EXTICR1_EXTI0_PH ((uint16_t)0x0007) /*!<PH[0] pin */
  16756. #define SYSCFG_EXTICR1_EXTI0_PI ((uint16_t)0x0008) /*!<PI[0] pin */
  16757. #define SYSCFG_EXTICR1_EXTI0_PJ ((uint16_t)0x0009) /*!<PJ[0] pin */
  16758. #define SYSCFG_EXTICR1_EXTI0_PK ((uint16_t)0x000A) /*!<PK[0] pin */
  16759. /**
  16760. * @brief EXTI1 configuration
  16761. */
  16762. #define SYSCFG_EXTICR1_EXTI1_PA ((uint16_t)0x0000) /*!<PA[1] pin */
  16763. #define SYSCFG_EXTICR1_EXTI1_PB ((uint16_t)0x0010) /*!<PB[1] pin */
  16764. #define SYSCFG_EXTICR1_EXTI1_PC ((uint16_t)0x0020) /*!<PC[1] pin */
  16765. #define SYSCFG_EXTICR1_EXTI1_PD ((uint16_t)0x0030) /*!<PD[1] pin */
  16766. #define SYSCFG_EXTICR1_EXTI1_PE ((uint16_t)0x0040) /*!<PE[1] pin */
  16767. #define SYSCFG_EXTICR1_EXTI1_PF ((uint16_t)0x0050) /*!<PF[1] pin */
  16768. #define SYSCFG_EXTICR1_EXTI1_PG ((uint16_t)0x0060) /*!<PG[1] pin */
  16769. #define SYSCFG_EXTICR1_EXTI1_PH ((uint16_t)0x0070) /*!<PH[1] pin */
  16770. #define SYSCFG_EXTICR1_EXTI1_PI ((uint16_t)0x0080) /*!<PI[1] pin */
  16771. #define SYSCFG_EXTICR1_EXTI1_PJ ((uint16_t)0x0090) /*!<PJ[1] pin */
  16772. #define SYSCFG_EXTICR1_EXTI1_PK ((uint16_t)0x00A0) /*!<PK[1] pin */
  16773. /**
  16774. * @brief EXTI2 configuration
  16775. */
  16776. #define SYSCFG_EXTICR1_EXTI2_PA ((uint16_t)0x0000) /*!<PA[2] pin */
  16777. #define SYSCFG_EXTICR1_EXTI2_PB ((uint16_t)0x0100) /*!<PB[2] pin */
  16778. #define SYSCFG_EXTICR1_EXTI2_PC ((uint16_t)0x0200) /*!<PC[2] pin */
  16779. #define SYSCFG_EXTICR1_EXTI2_PD ((uint16_t)0x0300) /*!<PD[2] pin */
  16780. #define SYSCFG_EXTICR1_EXTI2_PE ((uint16_t)0x0400) /*!<PE[2] pin */
  16781. #define SYSCFG_EXTICR1_EXTI2_PF ((uint16_t)0x0500) /*!<PF[2] pin */
  16782. #define SYSCFG_EXTICR1_EXTI2_PG ((uint16_t)0x0600) /*!<PG[2] pin */
  16783. #define SYSCFG_EXTICR1_EXTI2_PH ((uint16_t)0x0700) /*!<PH[2] pin */
  16784. #define SYSCFG_EXTICR1_EXTI2_PI ((uint16_t)0x0800) /*!<PI[2] pin */
  16785. #define SYSCFG_EXTICR1_EXTI2_PJ ((uint16_t)0x0900) /*!<PJ[2] pin */
  16786. #define SYSCFG_EXTICR1_EXTI2_PK ((uint16_t)0x0A00) /*!<PK[2] pin */
  16787. /**
  16788. * @brief EXTI3 configuration
  16789. */
  16790. #define SYSCFG_EXTICR1_EXTI3_PA ((uint16_t)0x0000) /*!<PA[3] pin */
  16791. #define SYSCFG_EXTICR1_EXTI3_PB ((uint16_t)0x1000) /*!<PB[3] pin */
  16792. #define SYSCFG_EXTICR1_EXTI3_PC ((uint16_t)0x2000) /*!<PC[3] pin */
  16793. #define SYSCFG_EXTICR1_EXTI3_PD ((uint16_t)0x3000) /*!<PD[3] pin */
  16794. #define SYSCFG_EXTICR1_EXTI3_PE ((uint16_t)0x4000) /*!<PE[3] pin */
  16795. #define SYSCFG_EXTICR1_EXTI3_PF ((uint16_t)0x5000) /*!<PF[3] pin */
  16796. #define SYSCFG_EXTICR1_EXTI3_PG ((uint16_t)0x6000) /*!<PG[3] pin */
  16797. #define SYSCFG_EXTICR1_EXTI3_PH ((uint16_t)0x7000) /*!<PH[3] pin */
  16798. #define SYSCFG_EXTICR1_EXTI3_PI ((uint16_t)0x8000) /*!<PI[3] pin */
  16799. #define SYSCFG_EXTICR1_EXTI3_PJ ((uint16_t)0x9000) /*!<PJ[3] pin */
  16800. #define SYSCFG_EXTICR1_EXTI3_PK ((uint16_t)0xA000) /*!<PK[3] pin */
  16801. /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
  16802. #define SYSCFG_EXTICR2_EXTI4 ((uint16_t)0x0007) /*!<EXTI 4 configuration */
  16803. #define SYSCFG_EXTICR2_EXTI5 ((uint16_t)0x0070) /*!<EXTI 5 configuration */
  16804. #define SYSCFG_EXTICR2_EXTI6 ((uint16_t)0x0700) /*!<EXTI 6 configuration */
  16805. #define SYSCFG_EXTICR2_EXTI7 ((uint16_t)0x7000) /*!<EXTI 7 configuration */
  16806. /**
  16807. * @brief EXTI4 configuration
  16808. */
  16809. #define SYSCFG_EXTICR2_EXTI4_PA ((uint16_t)0x0000) /*!<PA[4] pin */
  16810. #define SYSCFG_EXTICR2_EXTI4_PB ((uint16_t)0x0001) /*!<PB[4] pin */
  16811. #define SYSCFG_EXTICR2_EXTI4_PC ((uint16_t)0x0002) /*!<PC[4] pin */
  16812. #define SYSCFG_EXTICR2_EXTI4_PD ((uint16_t)0x0003) /*!<PD[4] pin */
  16813. #define SYSCFG_EXTICR2_EXTI4_PE ((uint16_t)0x0004) /*!<PE[4] pin */
  16814. #define SYSCFG_EXTICR2_EXTI4_PF ((uint16_t)0x0005) /*!<PF[4] pin */
  16815. #define SYSCFG_EXTICR2_EXTI4_PG ((uint16_t)0x0006) /*!<PG[4] pin */
  16816. #define SYSCFG_EXTICR2_EXTI4_PH ((uint16_t)0x0007) /*!<PH[4] pin */
  16817. #define SYSCFG_EXTICR2_EXTI4_PI ((uint16_t)0x0008) /*!<PI[4] pin */
  16818. #define SYSCFG_EXTICR2_EXTI4_PJ ((uint16_t)0x0009) /*!<PJ[4] pin */
  16819. #define SYSCFG_EXTICR2_EXTI4_PK ((uint16_t)0x000A) /*!<PK[4] pin */
  16820. /**
  16821. * @brief EXTI5 configuration
  16822. */
  16823. #define SYSCFG_EXTICR2_EXTI5_PA ((uint16_t)0x0000) /*!<PA[5] pin */
  16824. #define SYSCFG_EXTICR2_EXTI5_PB ((uint16_t)0x0010) /*!<PB[5] pin */
  16825. #define SYSCFG_EXTICR2_EXTI5_PC ((uint16_t)0x0020) /*!<PC[5] pin */
  16826. #define SYSCFG_EXTICR2_EXTI5_PD ((uint16_t)0x0030) /*!<PD[5] pin */
  16827. #define SYSCFG_EXTICR2_EXTI5_PE ((uint16_t)0x0040) /*!<PE[5] pin */
  16828. #define SYSCFG_EXTICR2_EXTI5_PF ((uint16_t)0x0050) /*!<PF[5] pin */
  16829. #define SYSCFG_EXTICR2_EXTI5_PG ((uint16_t)0x0060) /*!<PG[5] pin */
  16830. #define SYSCFG_EXTICR2_EXTI5_PH ((uint16_t)0x0070) /*!<PH[5] pin */
  16831. #define SYSCFG_EXTICR2_EXTI5_PI ((uint16_t)0x0080) /*!<PI[5] pin */
  16832. #define SYSCFG_EXTICR2_EXTI5_PJ ((uint16_t)0x0090) /*!<PJ[5] pin */
  16833. #define SYSCFG_EXTICR2_EXTI5_PK ((uint16_t)0x00A0) /*!<PK[5] pin */
  16834. /**
  16835. * @brief EXTI6 configuration
  16836. */
  16837. #define SYSCFG_EXTICR2_EXTI6_PA ((uint16_t)0x0000) /*!<PA[6] pin */
  16838. #define SYSCFG_EXTICR2_EXTI6_PB ((uint16_t)0x0100) /*!<PB[6] pin */
  16839. #define SYSCFG_EXTICR2_EXTI6_PC ((uint16_t)0x0200) /*!<PC[6] pin */
  16840. #define SYSCFG_EXTICR2_EXTI6_PD ((uint16_t)0x0300) /*!<PD[6] pin */
  16841. #define SYSCFG_EXTICR2_EXTI6_PE ((uint16_t)0x0400) /*!<PE[6] pin */
  16842. #define SYSCFG_EXTICR2_EXTI6_PF ((uint16_t)0x0500) /*!<PF[6] pin */
  16843. #define SYSCFG_EXTICR2_EXTI6_PG ((uint16_t)0x0600) /*!<PG[6] pin */
  16844. #define SYSCFG_EXTICR2_EXTI6_PH ((uint16_t)0x0700) /*!<PH[6] pin */
  16845. #define SYSCFG_EXTICR2_EXTI6_PI ((uint16_t)0x0800) /*!<PI[6] pin */
  16846. #define SYSCFG_EXTICR2_EXTI6_PJ ((uint16_t)0x0900) /*!<PJ[6] pin */
  16847. #define SYSCFG_EXTICR2_EXTI6_PK ((uint16_t)0x0A00) /*!<PK[6] pin */
  16848. /**
  16849. * @brief EXTI7 configuration
  16850. */
  16851. #define SYSCFG_EXTICR2_EXTI7_PA ((uint16_t)0x0000) /*!<PA[7] pin */
  16852. #define SYSCFG_EXTICR2_EXTI7_PB ((uint16_t)0x1000) /*!<PB[7] pin */
  16853. #define SYSCFG_EXTICR2_EXTI7_PC ((uint16_t)0x2000) /*!<PC[7] pin */
  16854. #define SYSCFG_EXTICR2_EXTI7_PD ((uint16_t)0x3000) /*!<PD[7] pin */
  16855. #define SYSCFG_EXTICR2_EXTI7_PE ((uint16_t)0x4000) /*!<PE[7] pin */
  16856. #define SYSCFG_EXTICR2_EXTI7_PF ((uint16_t)0x5000) /*!<PF[7] pin */
  16857. #define SYSCFG_EXTICR2_EXTI7_PG ((uint16_t)0x6000) /*!<PG[7] pin */
  16858. #define SYSCFG_EXTICR2_EXTI7_PH ((uint16_t)0x7000) /*!<PH[7] pin */
  16859. #define SYSCFG_EXTICR2_EXTI7_PI ((uint16_t)0x8000) /*!<PI[7] pin */
  16860. #define SYSCFG_EXTICR2_EXTI7_PJ ((uint16_t)0x9000) /*!<PJ[7] pin */
  16861. #define SYSCFG_EXTICR2_EXTI7_PK ((uint16_t)0xA000) /*!<PK[7] pin */
  16862. /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
  16863. #define SYSCFG_EXTICR3_EXTI8 ((uint16_t)0x0007) /*!<EXTI 8 configuration */
  16864. #define SYSCFG_EXTICR3_EXTI9 ((uint16_t)0x0070) /*!<EXTI 9 configuration */
  16865. #define SYSCFG_EXTICR3_EXTI10 ((uint16_t)0x0700) /*!<EXTI 10 configuration */
  16866. #define SYSCFG_EXTICR3_EXTI11 ((uint16_t)0x7000) /*!<EXTI 11 configuration */
  16867. /**
  16868. * @brief EXTI8 configuration
  16869. */
  16870. #define SYSCFG_EXTICR3_EXTI8_PA ((uint16_t)0x0000) /*!<PA[8] pin */
  16871. #define SYSCFG_EXTICR3_EXTI8_PB ((uint16_t)0x0001) /*!<PB[8] pin */
  16872. #define SYSCFG_EXTICR3_EXTI8_PC ((uint16_t)0x0002) /*!<PC[8] pin */
  16873. #define SYSCFG_EXTICR3_EXTI8_PD ((uint16_t)0x0003) /*!<PD[8] pin */
  16874. #define SYSCFG_EXTICR3_EXTI8_PE ((uint16_t)0x0004) /*!<PE[8] pin */
  16875. #define SYSCFG_EXTICR3_EXTI8_PF ((uint16_t)0x0005) /*!<PF[8] pin */
  16876. #define SYSCFG_EXTICR3_EXTI8_PG ((uint16_t)0x0006) /*!<PG[8] pin */
  16877. #define SYSCFG_EXTICR3_EXTI8_PH ((uint16_t)0x0007) /*!<PH[8] pin */
  16878. #define SYSCFG_EXTICR3_EXTI8_PI ((uint16_t)0x0008) /*!<PI[8] pin */
  16879. #define SYSCFG_EXTICR3_EXTI8_PJ ((uint16_t)0x0009) /*!<PJ[8] pin */
  16880. /**
  16881. * @brief EXTI9 configuration
  16882. */
  16883. #define SYSCFG_EXTICR3_EXTI9_PA ((uint16_t)0x0000) /*!<PA[9] pin */
  16884. #define SYSCFG_EXTICR3_EXTI9_PB ((uint16_t)0x0010) /*!<PB[9] pin */
  16885. #define SYSCFG_EXTICR3_EXTI9_PC ((uint16_t)0x0020) /*!<PC[9] pin */
  16886. #define SYSCFG_EXTICR3_EXTI9_PD ((uint16_t)0x0030) /*!<PD[9] pin */
  16887. #define SYSCFG_EXTICR3_EXTI9_PE ((uint16_t)0x0040) /*!<PE[9] pin */
  16888. #define SYSCFG_EXTICR3_EXTI9_PF ((uint16_t)0x0050) /*!<PF[9] pin */
  16889. #define SYSCFG_EXTICR3_EXTI9_PG ((uint16_t)0x0060) /*!<PG[9] pin */
  16890. #define SYSCFG_EXTICR3_EXTI9_PH ((uint16_t)0x0070) /*!<PH[9] pin */
  16891. #define SYSCFG_EXTICR3_EXTI9_PI ((uint16_t)0x0080) /*!<PI[9] pin */
  16892. #define SYSCFG_EXTICR3_EXTI9_PJ ((uint16_t)0x0090) /*!<PJ[9] pin */
  16893. /**
  16894. * @brief EXTI10 configuration
  16895. */
  16896. #define SYSCFG_EXTICR3_EXTI10_PA ((uint16_t)0x0000) /*!<PA[10] pin */
  16897. #define SYSCFG_EXTICR3_EXTI10_PB ((uint16_t)0x0100) /*!<PB[10] pin */
  16898. #define SYSCFG_EXTICR3_EXTI10_PC ((uint16_t)0x0200) /*!<PC[10] pin */
  16899. #define SYSCFG_EXTICR3_EXTI10_PD ((uint16_t)0x0300) /*!<PD[10] pin */
  16900. #define SYSCFG_EXTICR3_EXTI10_PE ((uint16_t)0x0400) /*!<PE[10] pin */
  16901. #define SYSCFG_EXTICR3_EXTI10_PF ((uint16_t)0x0500) /*!<PF[10] pin */
  16902. #define SYSCFG_EXTICR3_EXTI10_PG ((uint16_t)0x0600) /*!<PG[10] pin */
  16903. #define SYSCFG_EXTICR3_EXTI10_PH ((uint16_t)0x0700) /*!<PH[10] pin */
  16904. #define SYSCFG_EXTICR3_EXTI10_PI ((uint16_t)0x0800) /*!<PI[10] pin */
  16905. #define SYSCFG_EXTICR3_EXTI10_PJ ((uint16_t)0x0900) /*!<PJ[10] pin */
  16906. /**
  16907. * @brief EXTI11 configuration
  16908. */
  16909. #define SYSCFG_EXTICR3_EXTI11_PA ((uint16_t)0x0000) /*!<PA[11] pin */
  16910. #define SYSCFG_EXTICR3_EXTI11_PB ((uint16_t)0x1000) /*!<PB[11] pin */
  16911. #define SYSCFG_EXTICR3_EXTI11_PC ((uint16_t)0x2000) /*!<PC[11] pin */
  16912. #define SYSCFG_EXTICR3_EXTI11_PD ((uint16_t)0x3000) /*!<PD[11] pin */
  16913. #define SYSCFG_EXTICR3_EXTI11_PE ((uint16_t)0x4000) /*!<PE[11] pin */
  16914. #define SYSCFG_EXTICR3_EXTI11_PF ((uint16_t)0x5000) /*!<PF[11] pin */
  16915. #define SYSCFG_EXTICR3_EXTI11_PG ((uint16_t)0x6000) /*!<PG[11] pin */
  16916. #define SYSCFG_EXTICR3_EXTI11_PH ((uint16_t)0x7000) /*!<PH[11] pin */
  16917. #define SYSCFG_EXTICR3_EXTI11_PI ((uint16_t)0x8000) /*!<PI[11] pin */
  16918. #define SYSCFG_EXTICR3_EXTI11_PJ ((uint16_t)0x9000) /*!<PJ[11] pin */
  16919. /***************** Bit definition for SYSCFG_EXTICR4 register ***************/
  16920. #define SYSCFG_EXTICR4_EXTI12 ((uint16_t)0x0007) /*!<EXTI 12 configuration */
  16921. #define SYSCFG_EXTICR4_EXTI13 ((uint16_t)0x0070) /*!<EXTI 13 configuration */
  16922. #define SYSCFG_EXTICR4_EXTI14 ((uint16_t)0x0700) /*!<EXTI 14 configuration */
  16923. #define SYSCFG_EXTICR4_EXTI15 ((uint16_t)0x7000) /*!<EXTI 15 configuration */
  16924. /**
  16925. * @brief EXTI12 configuration
  16926. */
  16927. #define SYSCFG_EXTICR4_EXTI12_PA ((uint16_t)0x0000) /*!<PA[12] pin */
  16928. #define SYSCFG_EXTICR4_EXTI12_PB ((uint16_t)0x0001) /*!<PB[12] pin */
  16929. #define SYSCFG_EXTICR4_EXTI12_PC ((uint16_t)0x0002) /*!<PC[12] pin */
  16930. #define SYSCFG_EXTICR4_EXTI12_PD ((uint16_t)0x0003) /*!<PD[12] pin */
  16931. #define SYSCFG_EXTICR4_EXTI12_PE ((uint16_t)0x0004) /*!<PE[12] pin */
  16932. #define SYSCFG_EXTICR4_EXTI12_PF ((uint16_t)0x0005) /*!<PF[12] pin */
  16933. #define SYSCFG_EXTICR4_EXTI12_PG ((uint16_t)0x0006) /*!<PG[12] pin */
  16934. #define SYSCFG_EXTICR4_EXTI12_PH ((uint16_t)0x0007) /*!<PH[12] pin */
  16935. #define SYSCFG_EXTICR4_EXTI12_PI ((uint16_t)0x0008) /*!<PI[12] pin */
  16936. #define SYSCFG_EXTICR4_EXTI12_PJ ((uint16_t)0x0009) /*!<PJ[12] pin */
  16937. /**
  16938. * @brief EXTI13 configuration
  16939. */
  16940. #define SYSCFG_EXTICR4_EXTI13_PA ((uint16_t)0x0000) /*!<PA[13] pin */
  16941. #define SYSCFG_EXTICR4_EXTI13_PB ((uint16_t)0x0010) /*!<PB[13] pin */
  16942. #define SYSCFG_EXTICR4_EXTI13_PC ((uint16_t)0x0020) /*!<PC[13] pin */
  16943. #define SYSCFG_EXTICR4_EXTI13_PD ((uint16_t)0x0030) /*!<PD[13] pin */
  16944. #define SYSCFG_EXTICR4_EXTI13_PE ((uint16_t)0x0040) /*!<PE[13] pin */
  16945. #define SYSCFG_EXTICR4_EXTI13_PF ((uint16_t)0x0050) /*!<PF[13] pin */
  16946. #define SYSCFG_EXTICR4_EXTI13_PG ((uint16_t)0x0060) /*!<PG[13] pin */
  16947. #define SYSCFG_EXTICR4_EXTI13_PH ((uint16_t)0x0070) /*!<PH[13] pin */
  16948. #define SYSCFG_EXTICR4_EXTI13_PI ((uint16_t)0x0080) /*!<PI[13] pin */
  16949. #define SYSCFG_EXTICR4_EXTI13_PJ ((uint16_t)0x0090) /*!<PJ[13] pin */
  16950. /**
  16951. * @brief EXTI14 configuration
  16952. */
  16953. #define SYSCFG_EXTICR4_EXTI14_PA ((uint16_t)0x0000) /*!<PA[14] pin */
  16954. #define SYSCFG_EXTICR4_EXTI14_PB ((uint16_t)0x0100) /*!<PB[14] pin */
  16955. #define SYSCFG_EXTICR4_EXTI14_PC ((uint16_t)0x0200) /*!<PC[14] pin */
  16956. #define SYSCFG_EXTICR4_EXTI14_PD ((uint16_t)0x0300) /*!<PD[14] pin */
  16957. #define SYSCFG_EXTICR4_EXTI14_PE ((uint16_t)0x0400) /*!<PE[14] pin */
  16958. #define SYSCFG_EXTICR4_EXTI14_PF ((uint16_t)0x0500) /*!<PF[14] pin */
  16959. #define SYSCFG_EXTICR4_EXTI14_PG ((uint16_t)0x0600) /*!<PG[14] pin */
  16960. #define SYSCFG_EXTICR4_EXTI14_PH ((uint16_t)0x0700) /*!<PH[14] pin */
  16961. #define SYSCFG_EXTICR4_EXTI14_PI ((uint16_t)0x0800) /*!<PI[14] pin */
  16962. #define SYSCFG_EXTICR4_EXTI14_PJ ((uint16_t)0x0900) /*!<PJ[14] pin */
  16963. /**
  16964. * @brief EXTI15 configuration
  16965. */
  16966. #define SYSCFG_EXTICR4_EXTI15_PA ((uint16_t)0x0000) /*!<PA[15] pin */
  16967. #define SYSCFG_EXTICR4_EXTI15_PB ((uint16_t)0x1000) /*!<PB[15] pin */
  16968. #define SYSCFG_EXTICR4_EXTI15_PC ((uint16_t)0x2000) /*!<PC[15] pin */
  16969. #define SYSCFG_EXTICR4_EXTI15_PD ((uint16_t)0x3000) /*!<PD[15] pin */
  16970. #define SYSCFG_EXTICR4_EXTI15_PE ((uint16_t)0x4000) /*!<PE[15] pin */
  16971. #define SYSCFG_EXTICR4_EXTI15_PF ((uint16_t)0x5000) /*!<PF[15] pin */
  16972. #define SYSCFG_EXTICR4_EXTI15_PG ((uint16_t)0x6000) /*!<PG[15] pin */
  16973. #define SYSCFG_EXTICR4_EXTI15_PH ((uint16_t)0x7000) /*!<PH[15] pin */
  16974. #define SYSCFG_EXTICR4_EXTI15_PI ((uint16_t)0x8000) /*!<PI[15] pin */
  16975. #define SYSCFG_EXTICR4_EXTI15_PJ ((uint16_t)0x9000) /*!<PJ[15] pin */
  16976. /****************** Bit definition for SYSCFG_CCCSR register ******************/
  16977. #define SYSCFG_CCCSR_EN_Pos (0U)
  16978. #define SYSCFG_CCCSR_EN_Msk (0x1U << SYSCFG_CCCSR_EN_Pos) /*!< 0x00000001 */
  16979. #define SYSCFG_CCCSR_EN SYSCFG_CCCSR_EN_Msk /*!< I/O compensation cell enable */
  16980. #define SYSCFG_CCCSR_CS_Pos (1U)
  16981. #define SYSCFG_CCCSR_CS_Msk (0x1U << SYSCFG_CCCSR_CS_Pos) /*!< 0x00000002 */
  16982. #define SYSCFG_CCCSR_CS SYSCFG_CCCSR_CS_Msk /*!< I/O compensation cell code selection */
  16983. #define SYSCFG_CCCSR_READY_Pos (8U)
  16984. #define SYSCFG_CCCSR_READY_Msk (0x1U << SYSCFG_CCCSR_READY_Pos) /*!< 0x00000100 */
  16985. #define SYSCFG_CCCSR_READY SYSCFG_CCCSR_READY_Msk /*!< I/O compensation cell ready flag */
  16986. #define SYSCFG_CCCSR_HSLV_Pos (16U)
  16987. #define SYSCFG_CCCSR_HSLV_Msk (0x1U << SYSCFG_CCCSR_HSLV_Pos) /*!< 0x00010000 */
  16988. #define SYSCFG_CCCSR_HSLV SYSCFG_CCCSR_HSLV_Msk /*!< High-speed at low-voltage */
  16989. /****************** Bit definition for SYSCFG_CCVR register *******************/
  16990. #define SYSCFG_CCVR_NCV_Pos (0U)
  16991. #define SYSCFG_CCVR_NCV_Msk (0xFU << SYSCFG_CCVR_NCV_Pos) /*!< 0x0000000F */
  16992. #define SYSCFG_CCVR_NCV SYSCFG_CCVR_NCV_Msk /*!< NMOS compensation value */
  16993. #define SYSCFG_CCVR_PCV_Pos (4U)
  16994. #define SYSCFG_CCVR_PCV_Msk (0xFU << SYSCFG_CCVR_PCV_Pos) /*!< 0x000000F0 */
  16995. #define SYSCFG_CCVR_PCV SYSCFG_CCVR_PCV_Msk /*!< PMOS compensation value */
  16996. /****************** Bit definition for SYSCFG_CCCR register *******************/
  16997. #define SYSCFG_CCCR_NCC_Pos (0U)
  16998. #define SYSCFG_CCCR_NCC_Msk (0xFU << SYSCFG_CCCR_NCC_Pos) /*!< 0x0000000F */
  16999. #define SYSCFG_CCCR_NCC SYSCFG_CCCR_NCC_Msk /*!< NMOS compensation code */
  17000. #define SYSCFG_CCCR_PCC_Pos (4U)
  17001. #define SYSCFG_CCCR_PCC_Msk (0xFU << SYSCFG_CCCR_PCC_Pos) /*!< 0x000000F0 */
  17002. #define SYSCFG_CCCR_PCC SYSCFG_CCCR_PCC_Msk /*!< PMOS compensation code */
  17003. /****************** Bit definition for SYSCFG_PKGR register *******************/
  17004. #define SYSCFG_PKGR_PKG_Pos (0U)
  17005. #define SYSCFG_PKGR_PKG_Msk (0xFU << SYSCFG_PKGR_PKG_Pos) /*!< 0x0000000F */
  17006. #define SYSCFG_PKGR_PKG SYSCFG_PKGR_PKG_Msk /*!< Package type */
  17007. /****************** Bit definition for SYSCFG_UR0 register *******************/
  17008. #define SYSCFG_UR0_BKS_Pos (0U)
  17009. #define SYSCFG_UR0_BKS_Msk (0x1U << SYSCFG_UR0_BKS_Pos) /*!< 0x00000001 */
  17010. #define SYSCFG_UR0_BKS SYSCFG_UR0_BKS_Msk /*!< Bank Swap */
  17011. #define SYSCFG_UR0_RDP_Pos (16U)
  17012. #define SYSCFG_UR0_RDP_Msk (0xFFU << SYSCFG_UR0_RDP_Pos) /*!< 0x00FF0000 */
  17013. #define SYSCFG_UR0_RDP SYSCFG_UR0_RDP_Msk /*!< Readout protection */
  17014. /****************** Bit definition for SYSCFG_UR2 register *******************/
  17015. #define SYSCFG_UR2_BORH_Pos (0U)
  17016. #define SYSCFG_UR2_BORH_Msk (0x3U << SYSCFG_UR2_BORH_Pos) /*!< 0x00000003 */
  17017. #define SYSCFG_UR2_BORH SYSCFG_UR2_BORH_Msk /*!< Brown Out Reset High level */
  17018. #define SYSCFG_UR2_BOOT_ADD0_Pos (16U)
  17019. #define SYSCFG_UR2_BOOT_ADD0_Msk (0xFFFFU << SYSCFG_UR2_BOOT_ADD0_Pos) /*!< 0xFFFF0000 */
  17020. #define SYSCFG_UR2_BOOT_ADD0 SYSCFG_UR2_BOOT_ADD0_Msk /*!< Core Boot Address 0 */
  17021. /****************** Bit definition for SYSCFG_UR3 register *******************/
  17022. #define SYSCFG_UR3_BOOT_ADD1_Pos (0U)
  17023. #define SYSCFG_UR3_BOOT_ADD1_Msk (0xFFFFU << SYSCFG_UR3_BOOT_ADD1_Pos) /*!< 0x0000FFFF */
  17024. #define SYSCFG_UR3_BOOT_ADD1 SYSCFG_UR3_BOOT_ADD1_Msk /*!< Core Boot Address 1 */
  17025. /****************** Bit definition for SYSCFG_UR4 register *******************/
  17026. #define SYSCFG_UR4_MEPAD_BANK1_Pos (16U)
  17027. #define SYSCFG_UR4_MEPAD_BANK1_Msk (0x1U << SYSCFG_UR4_MEPAD_BANK1_Pos) /*!< 0x00010000 */
  17028. #define SYSCFG_UR4_MEPAD_BANK1 SYSCFG_UR4_MEPAD_BANK1_Msk /*!< Mass Erase Protected Area Disabled for bank 1 */
  17029. /****************** Bit definition for SYSCFG_UR5 register *******************/
  17030. #define SYSCFG_UR5_MESAD_BANK1_Pos (0U)
  17031. #define SYSCFG_UR5_MESAD_BANK1_Msk (0x1U << SYSCFG_UR5_MESAD_BANK1_Pos) /*!< 0x00000001 */
  17032. #define SYSCFG_UR5_MESAD_BANK1 SYSCFG_UR5_MESAD_BANK1_Msk /*!< Mass erase secured area disabled for bank 1 */
  17033. #define SYSCFG_UR5_WRPN_BANK1_Pos (16U)
  17034. #define SYSCFG_UR5_WRPN_BANK1_Msk (0xFFU << SYSCFG_UR5_WRPN_BANK1_Pos) /*!< 0x00FF0000 */
  17035. #define SYSCFG_UR5_WRPN_BANK1 SYSCFG_UR5_WRPN_BANK1_Msk /*!< Write protection for flash bank 1 */
  17036. /****************** Bit definition for SYSCFG_UR6 register *******************/
  17037. #define SYSCFG_UR6_PABEG_BANK1_Pos (0U)
  17038. #define SYSCFG_UR6_PABEG_BANK1_Msk (0xFFFU << SYSCFG_UR6_PABEG_BANK1_Pos) /*!< 0x00000FFF */
  17039. #define SYSCFG_UR6_PABEG_BANK1 SYSCFG_UR6_PABEG_BANK1_Msk /*!< Protected area start address for bank 1 */
  17040. #define SYSCFG_UR6_PAEND_BANK1_Pos (16U)
  17041. #define SYSCFG_UR6_PAEND_BANK1_Msk (0xFFFU << SYSCFG_UR6_PAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17042. #define SYSCFG_UR6_PAEND_BANK1 SYSCFG_UR6_PAEND_BANK1_Msk /*!< Protected area end address for bank 1 */
  17043. /****************** Bit definition for SYSCFG_UR7 register *******************/
  17044. #define SYSCFG_UR7_SABEG_BANK1_Pos (0U)
  17045. #define SYSCFG_UR7_SABEG_BANK1_Msk (0xFFFU << SYSCFG_UR7_SABEG_BANK1_Pos) /*!< 0x00000FFF */
  17046. #define SYSCFG_UR7_SABEG_BANK1 SYSCFG_UR7_SABEG_BANK1_Msk /*!< Secured area start address for bank 1 */
  17047. #define SYSCFG_UR7_SAEND_BANK1_Pos (16U)
  17048. #define SYSCFG_UR7_SAEND_BANK1_Msk (0xFFFU << SYSCFG_UR7_SAEND_BANK1_Pos) /*!< 0x0FFF0000 */
  17049. #define SYSCFG_UR7_SAEND_BANK1 SYSCFG_UR7_SAEND_BANK1_Msk /*!< Secured area end address for bank 1 */
  17050. /****************** Bit definition for SYSCFG_UR8 register *******************/
  17051. #define SYSCFG_UR8_MEPAD_BANK2_Pos (0U)
  17052. #define SYSCFG_UR8_MEPAD_BANK2_Msk (0x1U << SYSCFG_UR8_MEPAD_BANK2_Pos) /*!< 0x00000001 */
  17053. #define SYSCFG_UR8_MEPAD_BANK2 SYSCFG_UR8_MEPAD_BANK2_Msk /*!< Mass erase Protected area disabled for bank 2 */
  17054. #define SYSCFG_UR8_MESAD_BANK2_Pos (16U)
  17055. #define SYSCFG_UR8_MESAD_BANK2_Msk (0x1U << SYSCFG_UR8_MESAD_BANK2_Pos) /*!< 0x00010000 */
  17056. #define SYSCFG_UR8_MESAD_BANK2 SYSCFG_UR8_MESAD_BANK2_Msk /*!< Mass Erase Secured Area Disabled for bank 2 */
  17057. /****************** Bit definition for SYSCFG_UR9 register *******************/
  17058. #define SYSCFG_UR9_WRPN_BANK2_Pos (0U)
  17059. #define SYSCFG_UR9_WRPN_BANK2_Msk (0xFFU << SYSCFG_UR9_WRPN_BANK2_Pos) /*!< 0x000000FF */
  17060. #define SYSCFG_UR9_WRPN_BANK2 SYSCFG_UR9_WRPN_BANK2_Msk /*!< Write protection for flash bank 2 */
  17061. #define SYSCFG_UR9_PABEG_BANK2_Pos (16U)
  17062. #define SYSCFG_UR9_PABEG_BANK2_Msk (0xFFFU << SYSCFG_UR9_PABEG_BANK2_Pos) /*!< 0x0FFF0000 */
  17063. #define SYSCFG_UR9_PABEG_BANK2 SYSCFG_UR9_PABEG_BANK2_Msk /*!< Protected area start address for bank 2 */
  17064. /****************** Bit definition for SYSCFG_UR10 register *******************/
  17065. #define SYSCFG_UR10_PAEND_BANK2_Pos (0U)
  17066. #define SYSCFG_UR10_PAEND_BANK2_Msk (0xFFFU << SYSCFG_UR10_PAEND_BANK2_Pos) /*!< 0x00000FFF */
  17067. #define SYSCFG_UR10_PAEND_BANK2 SYSCFG_UR10_PAEND_BANK2_Msk /*!< Protected area end address for bank 2 */
  17068. #define SYSCFG_UR10_SABEG_BANK2_Pos (16U)
  17069. #define SYSCFG_UR10_SABEG_BANK2_Msk (0xFFFU << SYSCFG_UR10_SABEG_BANK2_Pos) /*!< 0x0FFF0000 */
  17070. #define SYSCFG_UR10_SABEG_BANK2 SYSCFG_UR10_SABEG_BANK2_Msk /*!< Secured area start address for bank 2 */
  17071. /****************** Bit definition for SYSCFG_UR11 register *******************/
  17072. #define SYSCFG_UR11_SAEND_BANK2_Pos (0U)
  17073. #define SYSCFG_UR11_SAEND_BANK2_Msk (0xFFFU << SYSCFG_UR11_SAEND_BANK2_Pos) /*!< 0x00000FFF */
  17074. #define SYSCFG_UR11_SAEND_BANK2 SYSCFG_UR11_SAEND_BANK2_Msk /*!< Secured area end address for bank 2 */
  17075. #define SYSCFG_UR11_IWDG1M_Pos (16U)
  17076. #define SYSCFG_UR11_IWDG1M_Msk (0x1U << SYSCFG_UR11_IWDG1M_Pos) /*!< 0x00010000 */
  17077. #define SYSCFG_UR11_IWDG1M SYSCFG_UR11_IWDG1M_Msk /*!< Independent Watchdog 1 mode (SW or HW) */
  17078. /****************** Bit definition for SYSCFG_UR12 register *******************/
  17079. #define SYSCFG_UR12_SECURE_Pos (16U)
  17080. #define SYSCFG_UR12_SECURE_Msk (0x1U << SYSCFG_UR12_SECURE_Pos) /*!< 0x00010000 */
  17081. #define SYSCFG_UR12_SECURE SYSCFG_UR12_SECURE_Msk /*!< Secure mode status */
  17082. /****************** Bit definition for SYSCFG_UR13 register *******************/
  17083. #define SYSCFG_UR13_SDRS_Pos (0U)
  17084. #define SYSCFG_UR13_SDRS_Msk (0x3U << SYSCFG_UR13_SDRS_Pos) /*!< 0x00000003 */
  17085. #define SYSCFG_UR13_SDRS SYSCFG_UR13_SDRS_Msk /*!< Secured DTCM RAM Size */
  17086. #define SYSCFG_UR13_D1SBRST_Pos (16U)
  17087. #define SYSCFG_UR13_D1SBRST_Msk (0x1U << SYSCFG_UR13_D1SBRST_Pos) /*!< 0x00010000 */
  17088. #define SYSCFG_UR13_D1SBRST SYSCFG_UR13_D1SBRST_Msk /*!< D1 Standby reset */
  17089. /****************** Bit definition for SYSCFG_UR14 register *******************/
  17090. #define SYSCFG_UR14_D1STPRST_Pos (0U)
  17091. #define SYSCFG_UR14_D1STPRST_Msk (0x1U << SYSCFG_UR14_D1STPRST_Pos) /*!< 0x00000001 */
  17092. #define SYSCFG_UR14_D1STPRST SYSCFG_UR14_D1STPRST_Msk /*!< D1 Stop Reset */
  17093. /****************** Bit definition for SYSCFG_UR15 register *******************/
  17094. #define SYSCFG_UR15_FZIWDGSTB_Pos (16U)
  17095. #define SYSCFG_UR15_FZIWDGSTB_Msk (0x1U << SYSCFG_UR15_FZIWDGSTB_Pos) /*!< 0x00010000 */
  17096. #define SYSCFG_UR15_FZIWDGSTB SYSCFG_UR15_FZIWDGSTB_Msk /*!< Freeze independent watchdogs in Standby mode */
  17097. /****************** Bit definition for SYSCFG_UR16 register *******************/
  17098. #define SYSCFG_UR16_FZIWDGSTP_Pos (0U)
  17099. #define SYSCFG_UR16_FZIWDGSTP_Msk (0x1U << SYSCFG_UR16_FZIWDGSTP_Pos) /*!< 0x00000001 */
  17100. #define SYSCFG_UR16_FZIWDGSTP SYSCFG_UR16_FZIWDGSTP_Msk /*!< Freeze independent watchdogs in Stop mode */
  17101. #define SYSCFG_UR16_PKP_Pos (16U)
  17102. #define SYSCFG_UR16_PKP_Msk (0x1U << SYSCFG_UR16_PKP_Pos) /*!< 0x00010000 */
  17103. #define SYSCFG_UR16_PKP SYSCFG_UR16_PKP_Msk /*!< Private key programmed */
  17104. /****************** Bit definition for SYSCFG_UR17 register *******************/
  17105. #define SYSCFG_UR17_IOHSLV_Pos (0U)
  17106. #define SYSCFG_UR17_IOHSLV_Msk (0x1U << SYSCFG_UR17_IOHSLV_Pos) /*!< 0x00000001 */
  17107. #define SYSCFG_UR17_IOHSLV SYSCFG_UR17_IOHSLV_Msk /*!< I/O high speed / low voltage */
  17108. /******************************************************************************/
  17109. /* */
  17110. /* TIM */
  17111. /* */
  17112. /******************************************************************************/
  17113. /******************* Bit definition for TIM_CR1 register ********************/
  17114. #define TIM_CR1_CEN ((uint16_t)0x0001) /*!<Counter enable */
  17115. #define TIM_CR1_UDIS ((uint16_t)0x0002) /*!<Update disable */
  17116. #define TIM_CR1_URS ((uint16_t)0x0004) /*!<Update request source */
  17117. #define TIM_CR1_OPM ((uint16_t)0x0008) /*!<One pulse mode */
  17118. #define TIM_CR1_DIR ((uint16_t)0x0010) /*!<Direction */
  17119. #define TIM_CR1_CMS ((uint16_t)0x0060) /*!<CMS[1:0] bits (Center-aligned mode selection) */
  17120. #define TIM_CR1_CMS_0 ((uint16_t)0x0020) /*!<Bit 0 */
  17121. #define TIM_CR1_CMS_1 ((uint16_t)0x0040) /*!<Bit 1 */
  17122. #define TIM_CR1_ARPE ((uint16_t)0x0080) /*!<Auto-reload preload enable */
  17123. #define TIM_CR1_CKD ((uint16_t)0x0300) /*!<CKD[1:0] bits (clock division) */
  17124. #define TIM_CR1_CKD_0 ((uint16_t)0x0100) /*!<Bit 0 */
  17125. #define TIM_CR1_CKD_1 ((uint16_t)0x0200) /*!<Bit 1 */
  17126. #define TIM_CR1_UIFREMAP ((uint16_t)0x0800) /*!<Update interrupt flag remap */
  17127. /******************* Bit definition for TIM_CR2 register ********************/
  17128. #define TIM_CR2_CCPC_Pos (0U)
  17129. #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */
  17130. #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */
  17131. #define TIM_CR2_CCUS_Pos (2U)
  17132. #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */
  17133. #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */
  17134. #define TIM_CR2_CCDS_Pos (3U)
  17135. #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */
  17136. #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */
  17137. #define TIM_CR2_MMS_Pos (4U)
  17138. #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */
  17139. #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17140. #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */
  17141. #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */
  17142. #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */
  17143. #define TIM_CR2_TI1S_Pos (7U)
  17144. #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */
  17145. #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */
  17146. #define TIM_CR2_OIS1_Pos (8U)
  17147. #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */
  17148. #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */
  17149. #define TIM_CR2_OIS1N_Pos (9U)
  17150. #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */
  17151. #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */
  17152. #define TIM_CR2_OIS2_Pos (10U)
  17153. #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */
  17154. #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */
  17155. #define TIM_CR2_OIS2N_Pos (11U)
  17156. #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */
  17157. #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */
  17158. #define TIM_CR2_OIS3_Pos (12U)
  17159. #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */
  17160. #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */
  17161. #define TIM_CR2_OIS3N_Pos (13U)
  17162. #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */
  17163. #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */
  17164. #define TIM_CR2_OIS4_Pos (14U)
  17165. #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */
  17166. #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */
  17167. #define TIM_CR2_OIS5_Pos (16U)
  17168. #define TIM_CR2_OIS5_Msk (0x1U << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */
  17169. #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 4 (OC4 output) */
  17170. #define TIM_CR2_OIS6_Pos (17U)
  17171. #define TIM_CR2_OIS6_Msk (0x1U << TIM_CR2_OIS6_Pos) /*!< 0x00020000 */
  17172. #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 4 (OC4 output) */
  17173. #define TIM_CR2_MMS2_Pos (20U)
  17174. #define TIM_CR2_MMS2_Msk (0xFU << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */
  17175. #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */
  17176. #define TIM_CR2_MMS2_0 (0x1U << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */
  17177. #define TIM_CR2_MMS2_1 (0x2U << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */
  17178. #define TIM_CR2_MMS2_2 (0x4U << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */
  17179. #define TIM_CR2_MMS2_3 (0x8U << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */
  17180. /******************* Bit definition for TIM_SMCR register *******************/
  17181. #define TIM_SMCR_SMS_Pos (0U)
  17182. #define TIM_SMCR_SMS_Msk (0x10007U << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */
  17183. #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */
  17184. #define TIM_SMCR_SMS_0 (0x00001U << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */
  17185. #define TIM_SMCR_SMS_1 (0x00002U << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */
  17186. #define TIM_SMCR_SMS_2 (0x00004U << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */
  17187. #define TIM_SMCR_SMS_3 (0x10000U << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */
  17188. #define TIM_SMCR_TS_Pos (4U)
  17189. #define TIM_SMCR_TS_Msk (0x30007U << TIM_SMCR_TS_Pos) /*!< 0x00300070 */
  17190. #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[4:0] bits (Trigger selection) */
  17191. #define TIM_SMCR_TS_0 (0x00001U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */
  17192. #define TIM_SMCR_TS_1 (0x00002U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */
  17193. #define TIM_SMCR_TS_2 (0x00004U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */
  17194. #define TIM_SMCR_TS_3 (0x10000U << TIM_SMCR_TS_Pos) /*!< 0x00100000 */
  17195. #define TIM_SMCR_TS_4 (0x20000U << TIM_SMCR_TS_Pos) /*!< 0x00200000 */
  17196. #define TIM_SMCR_MSM_Pos (7U)
  17197. #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */
  17198. #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */
  17199. #define TIM_SMCR_ETF_Pos (8U)
  17200. #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */
  17201. #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */
  17202. #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */
  17203. #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */
  17204. #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */
  17205. #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */
  17206. #define TIM_SMCR_ETPS_Pos (12U)
  17207. #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */
  17208. #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */
  17209. #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */
  17210. #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */
  17211. #define TIM_SMCR_ECE_Pos (14U)
  17212. #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */
  17213. #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */
  17214. #define TIM_SMCR_ETP_Pos (15U)
  17215. #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */
  17216. #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */
  17217. /******************* Bit definition for TIM_DIER register *******************/
  17218. #define TIM_DIER_UIE ((uint16_t)0x0001) /*!<Update interrupt enable */
  17219. #define TIM_DIER_CC1IE ((uint16_t)0x0002) /*!<Capture/Compare 1 interrupt enable */
  17220. #define TIM_DIER_CC2IE ((uint16_t)0x0004) /*!<Capture/Compare 2 interrupt enable */
  17221. #define TIM_DIER_CC3IE ((uint16_t)0x0008) /*!<Capture/Compare 3 interrupt enable */
  17222. #define TIM_DIER_CC4IE ((uint16_t)0x0010) /*!<Capture/Compare 4 interrupt enable */
  17223. #define TIM_DIER_COMIE ((uint16_t)0x0020) /*!<COM interrupt enable */
  17224. #define TIM_DIER_TIE ((uint16_t)0x0040) /*!<Trigger interrupt enable */
  17225. #define TIM_DIER_BIE ((uint16_t)0x0080) /*!<Break interrupt enable */
  17226. #define TIM_DIER_UDE ((uint16_t)0x0100) /*!<Update DMA request enable */
  17227. #define TIM_DIER_CC1DE ((uint16_t)0x0200) /*!<Capture/Compare 1 DMA request enable */
  17228. #define TIM_DIER_CC2DE ((uint16_t)0x0400) /*!<Capture/Compare 2 DMA request enable */
  17229. #define TIM_DIER_CC3DE ((uint16_t)0x0800) /*!<Capture/Compare 3 DMA request enable */
  17230. #define TIM_DIER_CC4DE ((uint16_t)0x1000) /*!<Capture/Compare 4 DMA request enable */
  17231. #define TIM_DIER_COMDE ((uint16_t)0x2000) /*!<COM DMA request enable */
  17232. #define TIM_DIER_TDE ((uint16_t)0x4000) /*!<Trigger DMA request enable */
  17233. /******************** Bit definition for TIM_SR register ********************/
  17234. #define TIM_SR_UIF_Pos (0U)
  17235. #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */
  17236. #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */
  17237. #define TIM_SR_CC1IF_Pos (1U)
  17238. #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */
  17239. #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */
  17240. #define TIM_SR_CC2IF_Pos (2U)
  17241. #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */
  17242. #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */
  17243. #define TIM_SR_CC3IF_Pos (3U)
  17244. #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */
  17245. #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */
  17246. #define TIM_SR_CC4IF_Pos (4U)
  17247. #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */
  17248. #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */
  17249. #define TIM_SR_COMIF_Pos (5U)
  17250. #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */
  17251. #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */
  17252. #define TIM_SR_TIF_Pos (6U)
  17253. #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */
  17254. #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */
  17255. #define TIM_SR_BIF_Pos (7U)
  17256. #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */
  17257. #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */
  17258. #define TIM_SR_B2IF_Pos (8U)
  17259. #define TIM_SR_B2IF_Msk (0x1U << TIM_SR_B2IF_Pos) /*!< 0x00000100 */
  17260. #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break2 interrupt Flag */
  17261. #define TIM_SR_CC1OF_Pos (9U)
  17262. #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */
  17263. #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */
  17264. #define TIM_SR_CC2OF_Pos (10U)
  17265. #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */
  17266. #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */
  17267. #define TIM_SR_CC3OF_Pos (11U)
  17268. #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */
  17269. #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */
  17270. #define TIM_SR_CC4OF_Pos (12U)
  17271. #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */
  17272. #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */
  17273. #define TIM_SR_CC5IF_Pos (16U)
  17274. #define TIM_SR_CC5IF_Msk (0x1U << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */
  17275. #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */
  17276. #define TIM_SR_CC6IF_Pos (17U)
  17277. #define TIM_SR_CC6IF_Msk (0x1U << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */
  17278. #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */
  17279. #define TIM_SR_SBIF_Pos (13U)
  17280. #define TIM_SR_SBIF_Msk (0x1U << TIM_SR_SBIF_Pos) /*!< 0x00002000 */
  17281. #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!< System Break Flag */
  17282. /******************* Bit definition for TIM_EGR register ********************/
  17283. #define TIM_EGR_UG ((uint16_t)0x0001) /*!<Update Generation */
  17284. #define TIM_EGR_CC1G ((uint16_t)0x0002) /*!<Capture/Compare 1 Generation */
  17285. #define TIM_EGR_CC2G ((uint16_t)0x0004) /*!<Capture/Compare 2 Generation */
  17286. #define TIM_EGR_CC3G ((uint16_t)0x0008) /*!<Capture/Compare 3 Generation */
  17287. #define TIM_EGR_CC4G ((uint16_t)0x0010) /*!<Capture/Compare 4 Generation */
  17288. #define TIM_EGR_COMG ((uint16_t)0x0020) /*!<Capture/Compare Control Update Generation */
  17289. #define TIM_EGR_TG ((uint16_t)0x0040) /*!<Trigger Generation */
  17290. #define TIM_EGR_BG ((uint16_t)0x0080) /*!<Break Generation */
  17291. #define TIM_EGR_B2G ((uint16_t)0x0100) /*!<Break Generation */
  17292. /****************** Bit definition for TIM_CCMR1 register *******************/
  17293. #define TIM_CCMR1_CC1S_Pos (0U)
  17294. #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */
  17295. #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
  17296. #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */
  17297. #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */
  17298. #define TIM_CCMR1_OC1FE_Pos (2U)
  17299. #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */
  17300. #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */
  17301. #define TIM_CCMR1_OC1PE_Pos (3U)
  17302. #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */
  17303. #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */
  17304. #define TIM_CCMR1_OC1M_Pos (4U)
  17305. #define TIM_CCMR1_OC1M_Msk (0x1007U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */
  17306. #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
  17307. #define TIM_CCMR1_OC1M_0 (0x0001U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */
  17308. #define TIM_CCMR1_OC1M_1 (0x0002U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */
  17309. #define TIM_CCMR1_OC1M_2 (0x0004U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */
  17310. #define TIM_CCMR1_OC1M_3 (0x1000U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */
  17311. #define TIM_CCMR1_OC1CE_Pos (7U)
  17312. #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */
  17313. #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */
  17314. #define TIM_CCMR1_CC2S_Pos (8U)
  17315. #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */
  17316. #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
  17317. #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */
  17318. #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */
  17319. #define TIM_CCMR1_OC2FE_Pos (10U)
  17320. #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */
  17321. #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */
  17322. #define TIM_CCMR1_OC2PE_Pos (11U)
  17323. #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */
  17324. #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */
  17325. #define TIM_CCMR1_OC2M_Pos (12U)
  17326. #define TIM_CCMR1_OC2M_Msk (0x1007U << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */
  17327. #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
  17328. #define TIM_CCMR1_OC2M_0 (0x0001U << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */
  17329. #define TIM_CCMR1_OC2M_1 (0x0002U << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */
  17330. #define TIM_CCMR1_OC2M_2 (0x0004U << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */
  17331. #define TIM_CCMR1_OC2M_3 (0x1000U << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */
  17332. #define TIM_CCMR1_OC2CE_Pos (15U)
  17333. #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */
  17334. #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */
  17335. /*----------------------------------------------------------------------------*/
  17336. #define TIM_CCMR1_IC1PSC_Pos (2U)
  17337. #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */
  17338. #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
  17339. #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */
  17340. #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */
  17341. #define TIM_CCMR1_IC1F_Pos (4U)
  17342. #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */
  17343. #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
  17344. #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */
  17345. #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */
  17346. #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */
  17347. #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */
  17348. #define TIM_CCMR1_IC2PSC_Pos (10U)
  17349. #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */
  17350. #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
  17351. #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */
  17352. #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */
  17353. #define TIM_CCMR1_IC2F_Pos (12U)
  17354. #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */
  17355. #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
  17356. #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */
  17357. #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */
  17358. #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */
  17359. #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */
  17360. /****************** Bit definition for TIM_CCMR2 register *******************/
  17361. #define TIM_CCMR2_CC3S_Pos (0U)
  17362. #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */
  17363. #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
  17364. #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */
  17365. #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */
  17366. #define TIM_CCMR2_OC3FE_Pos (2U)
  17367. #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */
  17368. #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */
  17369. #define TIM_CCMR2_OC3PE_Pos (3U)
  17370. #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */
  17371. #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */
  17372. #define TIM_CCMR2_OC3M_Pos (4U)
  17373. #define TIM_CCMR2_OC3M_Msk (0x7U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */
  17374. #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
  17375. #define TIM_CCMR2_OC3M_0 (0x1U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */
  17376. #define TIM_CCMR2_OC3M_1 (0x2U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */
  17377. #define TIM_CCMR2_OC3M_2 (0x4U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */
  17378. #define TIM_CCMR2_OC3M_3 (0x1000U << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */
  17379. #define TIM_CCMR2_OC3CE_Pos (7U)
  17380. #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */
  17381. #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */
  17382. #define TIM_CCMR2_CC4S_Pos (8U)
  17383. #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */
  17384. #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
  17385. #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */
  17386. #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */
  17387. #define TIM_CCMR2_OC4FE_Pos (10U)
  17388. #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */
  17389. #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */
  17390. #define TIM_CCMR2_OC4PE_Pos (11U)
  17391. #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */
  17392. #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */
  17393. #define TIM_CCMR2_OC4M_Pos (12U)
  17394. #define TIM_CCMR2_OC4M_Msk (0x7U << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */
  17395. #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  17396. #define TIM_CCMR2_OC4M_0 (0x1U << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */
  17397. #define TIM_CCMR2_OC4M_1 (0x2U << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */
  17398. #define TIM_CCMR2_OC4M_2 (0x4U << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */
  17399. #define TIM_CCMR2_OC4M_3 (0x100U << TIM_CCMR2_OC4M_Pos) /*!< 0x00100000 */
  17400. #define TIM_CCMR2_OC4CE_Pos (15U)
  17401. #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */
  17402. #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */
  17403. /*----------------------------------------------------------------------------*/
  17404. #define TIM_CCMR2_IC3PSC ((uint16_t)0x0000000C) /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
  17405. #define TIM_CCMR2_IC3PSC_0 ((uint16_t)0x00000004) /*!<Bit 0 */
  17406. #define TIM_CCMR2_IC3PSC_1 ((uint16_t)0x00000008) /*!<Bit 1 */
  17407. #define TIM_CCMR2_IC3F ((uint16_t)0x000000F0) /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
  17408. #define TIM_CCMR2_IC3F_0 ((uint16_t)0x00000010) /*!<Bit 0 */
  17409. #define TIM_CCMR2_IC3F_1 ((uint16_t)0x00000020) /*!<Bit 1 */
  17410. #define TIM_CCMR2_IC3F_2 ((uint16_t)0x00000040) /*!<Bit 2 */
  17411. #define TIM_CCMR2_IC3F_3 ((uint16_t)0x00000080) /*!<Bit 3 */
  17412. #define TIM_CCMR2_IC4PSC ((uint16_t)0x00000C00) /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
  17413. #define TIM_CCMR2_IC4PSC_0 ((uint16_t)0x00000400) /*!<Bit 0 */
  17414. #define TIM_CCMR2_IC4PSC_1 ((uint16_t)0x00000800) /*!<Bit 1 */
  17415. #define TIM_CCMR2_IC4F ((uint16_t)0x0000F000) /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
  17416. #define TIM_CCMR2_IC4F_0 ((uint16_t)0x00001000) /*!<Bit 0 */
  17417. #define TIM_CCMR2_IC4F_1 ((uint16_t)0x00002000) /*!<Bit 1 */
  17418. #define TIM_CCMR2_IC4F_2 ((uint16_t)0x00004000) /*!<Bit 2 */
  17419. #define TIM_CCMR2_IC4F_3 ((uint16_t)0x00008000) /*!<Bit 3 */
  17420. /******************* Bit definition for TIM_CCER register *******************/
  17421. #define TIM_CCER_CC1E_Pos (0U)
  17422. #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */
  17423. #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */
  17424. #define TIM_CCER_CC1P_Pos (1U)
  17425. #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */
  17426. #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */
  17427. #define TIM_CCER_CC1NE_Pos (2U)
  17428. #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */
  17429. #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */
  17430. #define TIM_CCER_CC1NP_Pos (3U)
  17431. #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */
  17432. #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */
  17433. #define TIM_CCER_CC2E_Pos (4U)
  17434. #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */
  17435. #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */
  17436. #define TIM_CCER_CC2P_Pos (5U)
  17437. #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */
  17438. #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */
  17439. #define TIM_CCER_CC2NE_Pos (6U)
  17440. #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */
  17441. #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */
  17442. #define TIM_CCER_CC2NP_Pos (7U)
  17443. #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */
  17444. #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */
  17445. #define TIM_CCER_CC3E_Pos (8U)
  17446. #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */
  17447. #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */
  17448. #define TIM_CCER_CC3P_Pos (9U)
  17449. #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */
  17450. #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */
  17451. #define TIM_CCER_CC3NE_Pos (10U)
  17452. #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */
  17453. #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */
  17454. #define TIM_CCER_CC3NP_Pos (11U)
  17455. #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */
  17456. #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */
  17457. #define TIM_CCER_CC4E_Pos (12U)
  17458. #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */
  17459. #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */
  17460. #define TIM_CCER_CC4P_Pos (13U)
  17461. #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */
  17462. #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */
  17463. #define TIM_CCER_CC4NP_Pos (15U)
  17464. #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */
  17465. #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */
  17466. #define TIM_CCER_CC5E_Pos (16U)
  17467. #define TIM_CCER_CC5E_Msk (0x1U << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */
  17468. #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */
  17469. #define TIM_CCER_CC5P_Pos (17U)
  17470. #define TIM_CCER_CC5P_Msk (0x1U << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */
  17471. #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */
  17472. #define TIM_CCER_CC6E_Pos (20U)
  17473. #define TIM_CCER_CC6E_Msk (0x1U << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */
  17474. #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */
  17475. #define TIM_CCER_CC6P_Pos (21U)
  17476. #define TIM_CCER_CC6P_Msk (0x1U << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */
  17477. #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */
  17478. /******************* Bit definition for TIM_CNT register ********************/
  17479. #define TIM_CNT_CNT_Pos (0U)
  17480. #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */
  17481. #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */
  17482. #define TIM_CNT_UIFCPY_Pos (31U)
  17483. #define TIM_CNT_UIFCPY_Msk (0x1U << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */
  17484. #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy */
  17485. /******************* Bit definition for TIM_PSC register ********************/
  17486. #define TIM_PSC_PSC ((uint16_t)0xFFFF) /*!<Prescaler Value */
  17487. /******************* Bit definition for TIM_ARR register ********************/
  17488. #define TIM_ARR_ARR_Pos (0U)
  17489. #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */
  17490. #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */
  17491. /******************* Bit definition for TIM_RCR register ********************/
  17492. #define TIM_RCR_REP ((uint8_t)0xFF) /*!<Repetition Counter Value */
  17493. /******************* Bit definition for TIM_CCR1 register *******************/
  17494. #define TIM_CCR1_CCR1 ((uint16_t)0xFFFF) /*!<Capture/Compare 1 Value */
  17495. /******************* Bit definition for TIM_CCR2 register *******************/
  17496. #define TIM_CCR2_CCR2 ((uint16_t)0xFFFF) /*!<Capture/Compare 2 Value */
  17497. /******************* Bit definition for TIM_CCR3 register *******************/
  17498. #define TIM_CCR3_CCR3 ((uint16_t)0xFFFF) /*!<Capture/Compare 3 Value */
  17499. /******************* Bit definition for TIM_CCR4 register *******************/
  17500. #define TIM_CCR4_CCR4 ((uint16_t)0xFFFF) /*!<Capture/Compare 4 Value */
  17501. /******************* Bit definition for TIM_CCR5 register *******************/
  17502. #define TIM_CCR5_CCR5_Pos (0U)
  17503. #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFU << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */
  17504. #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */
  17505. #define TIM_CCR5_GC5C1_Pos (29U)
  17506. #define TIM_CCR5_GC5C1_Msk (0x1U << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */
  17507. #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */
  17508. #define TIM_CCR5_GC5C2_Pos (30U)
  17509. #define TIM_CCR5_GC5C2_Msk (0x1U << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */
  17510. #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */
  17511. #define TIM_CCR5_GC5C3_Pos (31U)
  17512. #define TIM_CCR5_GC5C3_Msk (0x1U << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */
  17513. #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */
  17514. /******************* Bit definition for TIM_CCR6 register *******************/
  17515. #define TIM_CCR6_CCR6 ((uint16_t)0xFFFF) /*!<Capture/Compare 6 Value */
  17516. /******************* Bit definition for TIM_BDTR register *******************/
  17517. #define TIM_BDTR_DTG_Pos (0U)
  17518. #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */
  17519. #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
  17520. #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */
  17521. #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */
  17522. #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */
  17523. #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */
  17524. #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */
  17525. #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */
  17526. #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */
  17527. #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */
  17528. #define TIM_BDTR_LOCK_Pos (8U)
  17529. #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */
  17530. #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */
  17531. #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */
  17532. #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */
  17533. #define TIM_BDTR_OSSI_Pos (10U)
  17534. #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */
  17535. #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */
  17536. #define TIM_BDTR_OSSR_Pos (11U)
  17537. #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */
  17538. #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */
  17539. #define TIM_BDTR_BKE_Pos (12U)
  17540. #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */
  17541. #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break1 */
  17542. #define TIM_BDTR_BKP_Pos (13U)
  17543. #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */
  17544. #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break1 */
  17545. #define TIM_BDTR_AOE_Pos (14U)
  17546. #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */
  17547. #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */
  17548. #define TIM_BDTR_MOE_Pos (15U)
  17549. #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */
  17550. #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */
  17551. #define TIM_BDTR_BKF_Pos (16U)
  17552. #define TIM_BDTR_BKF_Msk (0xFU << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */
  17553. #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break1 */
  17554. #define TIM_BDTR_BK2F_Pos (20U)
  17555. #define TIM_BDTR_BK2F_Msk (0xFU << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */
  17556. #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break2 */
  17557. #define TIM_BDTR_BK2E_Pos (24U)
  17558. #define TIM_BDTR_BK2E_Msk (0x1U << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */
  17559. #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break2 */
  17560. #define TIM_BDTR_BK2P_Pos (25U)
  17561. #define TIM_BDTR_BK2P_Msk (0x1U << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */
  17562. #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break2 */
  17563. /******************* Bit definition for TIM_DCR register ********************/
  17564. #define TIM_DCR_DBA ((uint16_t)0x001F) /*!<DBA[4:0] bits (DMA Base Address) */
  17565. #define TIM_DCR_DBA_0 ((uint16_t)0x0001) /*!<Bit 0 */
  17566. #define TIM_DCR_DBA_1 ((uint16_t)0x0002) /*!<Bit 1 */
  17567. #define TIM_DCR_DBA_2 ((uint16_t)0x0004) /*!<Bit 2 */
  17568. #define TIM_DCR_DBA_3 ((uint16_t)0x0008) /*!<Bit 3 */
  17569. #define TIM_DCR_DBA_4 ((uint16_t)0x0010) /*!<Bit 4 */
  17570. #define TIM_DCR_DBL ((uint16_t)0x1F00) /*!<DBL[4:0] bits (DMA Burst Length) */
  17571. #define TIM_DCR_DBL_0 ((uint16_t)0x0100) /*!<Bit 0 */
  17572. #define TIM_DCR_DBL_1 ((uint16_t)0x0200) /*!<Bit 1 */
  17573. #define TIM_DCR_DBL_2 ((uint16_t)0x0400) /*!<Bit 2 */
  17574. #define TIM_DCR_DBL_3 ((uint16_t)0x0800) /*!<Bit 3 */
  17575. #define TIM_DCR_DBL_4 ((uint16_t)0x1000) /*!<Bit 4 */
  17576. /******************* Bit definition for TIM_DMAR register *******************/
  17577. #define TIM_DMAR_DMAB ((uint16_t)0xFFFF) /*!<DMA register for burst accesses */
  17578. /****************** Bit definition for TIM_CCMR3 register *******************/
  17579. #define TIM_CCMR3_OC5FE_Pos (2U)
  17580. #define TIM_CCMR3_OC5FE_Msk (0x1U << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */
  17581. #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */
  17582. #define TIM_CCMR3_OC5PE_Pos (3U)
  17583. #define TIM_CCMR3_OC5PE_Msk (0x1U << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */
  17584. #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */
  17585. #define TIM_CCMR3_OC5M_Pos (4U)
  17586. #define TIM_CCMR3_OC5M_Msk (0x7U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000070 */
  17587. #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[2:0] bits (Output Compare 5 Mode) */
  17588. #define TIM_CCMR3_OC5M_0 (0x1U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */
  17589. #define TIM_CCMR3_OC5M_1 (0x2U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */
  17590. #define TIM_CCMR3_OC5M_2 (0x4U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */
  17591. #define TIM_CCMR3_OC5M_3 (0x1000U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */
  17592. #define TIM_CCMR3_OC5CE_Pos (7U)
  17593. #define TIM_CCMR3_OC5CE_Msk (0x1U << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */
  17594. #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */
  17595. #define TIM_CCMR3_OC6FE_Pos (10U)
  17596. #define TIM_CCMR3_OC6FE_Msk (0x1U << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */
  17597. #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 4 Fast enable */
  17598. #define TIM_CCMR3_OC6PE_Pos (11U)
  17599. #define TIM_CCMR3_OC6PE_Msk (0x1U << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */
  17600. #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 4 Preload enable */
  17601. #define TIM_CCMR3_OC6M_Pos (12U)
  17602. #define TIM_CCMR3_OC6M_Msk (0x7U << TIM_CCMR3_OC6M_Pos) /*!< 0x00007000 */
  17603. #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
  17604. #define TIM_CCMR3_OC6M_0 (0x1U << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */
  17605. #define TIM_CCMR3_OC6M_1 (0x2U << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */
  17606. #define TIM_CCMR3_OC6M_2 (0x4U << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */
  17607. #define TIM_CCMR3_OC6M_3 (0x100U << TIM_CCMR3_OC6M_Pos) /*!< 0x00100000 */
  17608. #define TIM_CCMR3_OC6CE_Pos (15U)
  17609. #define TIM_CCMR3_OC6CE_Msk (0x1U << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */
  17610. #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 4 Clear Enable */
  17611. /******************* Bit definition for TIM1_AF1 register *********************/
  17612. #define TIM1_AF1_BKINE_Pos (0U)
  17613. #define TIM1_AF1_BKINE_Msk (0x1U << TIM1_AF1_BKINE_Pos) /*!< 0x00000001 */
  17614. #define TIM1_AF1_BKINE TIM1_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17615. #define TIM1_AF1_BKCMP1E_Pos (1U)
  17616. #define TIM1_AF1_BKCMP1E_Msk (0x1U << TIM1_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17617. #define TIM1_AF1_BKCMP1E TIM1_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17618. #define TIM1_AF1_BKCMP2E_Pos (2U)
  17619. #define TIM1_AF1_BKCMP2E_Msk (0x1U << TIM1_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17620. #define TIM1_AF1_BKCMP2E TIM1_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17621. #define TIM1_AF1_BKDFBK0E_Pos (8U)
  17622. #define TIM1_AF1_BKDFBK0E_Msk (0x1U << TIM1_AF1_BKDFBK0E_Pos) /*!< 0x00000100 */
  17623. #define TIM1_AF1_BKDFBK0E TIM1_AF1_BKDFBK0E_Msk /*!<BKDFBK0E Break input DFSDM Break 0 */
  17624. #define TIM1_AF1_BKINP_Pos (9U)
  17625. #define TIM1_AF1_BKINP_Msk (0x1U << TIM1_AF1_BKINP_Pos) /*!< 0x00000200 */
  17626. #define TIM1_AF1_BKINP TIM1_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17627. #define TIM1_AF1_BKCMP1P_Pos (10U)
  17628. #define TIM1_AF1_BKCMP1P_Msk (0x1U << TIM1_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17629. #define TIM1_AF1_BKCMP1P TIM1_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17630. #define TIM1_AF1_BKCMP2P_Pos (11U)
  17631. #define TIM1_AF1_BKCMP2P_Msk (0x1U << TIM1_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17632. #define TIM1_AF1_BKCMP2P TIM1_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17633. #define TIM1_AF1_ETR_SEL_Pos (14U)
  17634. #define TIM1_AF1_ETR_SEL_Msk (0xFU << TIM1_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17635. #define TIM1_AF1_ETR_SEL TIM1_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM1 ETR SEL) */
  17636. #define TIM1_AF1_ETR_SEL_0 (0x1U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17637. #define TIM1_AF1_ETR_SEL_1 (0x2U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17638. #define TIM1_AF1_ETR_SEL_2 (0x4U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17639. #define TIM1_AF1_ETR_SEL_3 (0x8U << TIM1_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17640. /******************* Bit definition for TIM1_AF2 register *********************/
  17641. #define TIM1_AF2_BK2INE_Pos (0U)
  17642. #define TIM1_AF2_BK2INE_Msk (0x1U << TIM1_AF2_BK2INE_Pos) /*!< 0x00000001 */
  17643. #define TIM1_AF2_BK2INE TIM1_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  17644. #define TIM1_AF2_BK2CMP1E_Pos (1U)
  17645. #define TIM1_AF2_BK2CMP1E_Msk (0x1U << TIM1_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  17646. #define TIM1_AF2_BK2CMP1E TIM1_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  17647. #define TIM1_AF2_BK2CMP2E_Pos (2U)
  17648. #define TIM1_AF2_BK2CMP2E_Msk (0x1U << TIM1_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  17649. #define TIM1_AF2_BK2CMP2E TIM1_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  17650. #define TIM1_AF2_BK2DFBK1E_Pos (8U)
  17651. #define TIM1_AF2_BK2DFBK1E_Msk (0x1U << TIM1_AF2_BK2DFBK1E_Pos) /*!< 0x00000100 */
  17652. #define TIM1_AF2_BK2DFBK1E TIM1_AF2_BK2DFBK1E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 1 */
  17653. #define TIM1_AF2_BK2INP_Pos (9U)
  17654. #define TIM1_AF2_BK2INP_Msk (0x1U << TIM1_AF2_BK2INP_Pos) /*!< 0x00000200 */
  17655. #define TIM1_AF2_BK2INP TIM1_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  17656. #define TIM1_AF2_BK2CMP1P_Pos (10U)
  17657. #define TIM1_AF2_BK2CMP1P_Msk (0x1U << TIM1_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  17658. #define TIM1_AF2_BK2CMP1P TIM1_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  17659. #define TIM1_AF2_BK2CMP2P_Pos (11U)
  17660. #define TIM1_AF2_BK2CMP2P_Msk (0x1U << TIM1_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  17661. #define TIM1_AF2_BK2CMP2P TIM1_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  17662. /******************* Bit definition for TIM1_TISEL register *********************/
  17663. #define TIM1_TISEL_TI1SEL_Pos (0U)
  17664. #define TIM1_TISEL_TI1SEL_Msk (0xFU << TIM1_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17665. #define TIM1_TISEL_TI1SEL TIM1_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM1 TI1 SEL)*/
  17666. #define TIM1_TISEL_TI1SEL_0 (0x1U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17667. #define TIM1_TISEL_TI1SEL_1 (0x2U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17668. #define TIM1_TISEL_TI1SEL_2 (0x4U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17669. #define TIM1_TISEL_TI1SEL_3 (0x8U << TIM1_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17670. #define TIM1_TISEL_TI2SEL_Pos (8U)
  17671. #define TIM1_TISEL_TI2SEL_Msk (0xFU << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17672. #define TIM1_TISEL_TI2SEL TIM1_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM1 TI2 SEL)*/
  17673. #define TIM1_TISEL_TI2SEL_0 (0x1U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17674. #define TIM1_TISEL_TI2SEL_1 (0x2U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17675. #define TIM1_TISEL_TI2SEL_2 (0x4U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17676. #define TIM1_TISEL_TI2SEL_3 (0x8U << TIM1_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17677. #define TIM1_TISEL_TI3SEL_Pos (16U)
  17678. #define TIM1_TISEL_TI3SEL_Msk (0xFU << TIM1_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17679. #define TIM1_TISEL_TI3SEL TIM1_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM1 TI3 SEL)*/
  17680. #define TIM1_TISEL_TI3SEL_0 (0x1U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17681. #define TIM1_TISEL_TI3SEL_1 (0x2U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17682. #define TIM1_TISEL_TI3SEL_2 (0x4U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17683. #define TIM1_TISEL_TI3SEL_3 (0x8U << TIM1_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17684. #define TIM1_TISEL_TI4SEL_Pos (24U)
  17685. #define TIM1_TISEL_TI4SEL_Msk (0xFU << TIM1_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17686. #define TIM1_TISEL_TI4SEL TIM1_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM1 TI4 SEL)*/
  17687. #define TIM1_TISEL_TI4SEL_0 (0x1U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17688. #define TIM1_TISEL_TI4SEL_1 (0x2U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17689. #define TIM1_TISEL_TI4SEL_2 (0x4U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17690. #define TIM1_TISEL_TI4SEL_3 (0x8U << TIM1_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17691. /******************* Bit definition for TIM8_AF1 register *********************/
  17692. #define TIM8_AF1_BKINE_Pos (0U)
  17693. #define TIM8_AF1_BKINE_Msk (0x1U << TIM8_AF1_BKINE_Pos) /*!< 0x00000001 */
  17694. #define TIM8_AF1_BKINE TIM8_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17695. #define TIM8_AF1_BKCMP1E_Pos (1U)
  17696. #define TIM8_AF1_BKCMP1E_Msk (0x1U << TIM8_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17697. #define TIM8_AF1_BKCMP1E TIM8_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17698. #define TIM8_AF1_BKCMP2E_Pos (2U)
  17699. #define TIM8_AF1_BKCMP2E_Msk (0x1U << TIM8_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17700. #define TIM8_AF1_BKCMP2E TIM8_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17701. #define TIM8_AF1_BKDFBK2E_Pos (8U)
  17702. #define TIM8_AF1_BKDFBK2E_Msk (0x1U << TIM8_AF1_BKDFBK2E_Pos) /*!< 0x00000100 */
  17703. #define TIM8_AF1_BKDFBK2E TIM8_AF1_BKDFBK2E_Msk /*!<BKDFBK2E Break input DFSDM Break 2 */
  17704. #define TIM8_AF1_BKINP_Pos (9U)
  17705. #define TIM8_AF1_BKINP_Msk (0x1U << TIM8_AF1_BKINP_Pos) /*!< 0x00000200 */
  17706. #define TIM8_AF1_BKINP TIM8_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17707. #define TIM8_AF1_BKCMP1P_Pos (10U)
  17708. #define TIM8_AF1_BKCMP1P_Msk (0x1U << TIM8_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17709. #define TIM8_AF1_BKCMP1P TIM8_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17710. #define TIM8_AF1_BKCMP2P_Pos (11U)
  17711. #define TIM8_AF1_BKCMP2P_Msk (0x1U << TIM8_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17712. #define TIM8_AF1_BKCMP2P TIM8_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17713. #define TIM8_AF1_ETR_SEL_Pos (14U)
  17714. #define TIM8_AF1_ETR_SEL_Msk (0xFU << TIM8_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17715. #define TIM8_AF1_ETR_SEL TIM8_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM8 ETR SEL) */
  17716. #define TIM8_AF1_ETR_SEL_0 (0x1U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17717. #define TIM8_AF1_ETR_SEL_1 (0x2U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17718. #define TIM8_AF1_ETR_SEL_2 (0x4U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17719. #define TIM8_AF1_ETR_SEL_3 (0x8U << TIM8_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17720. /******************* Bit definition for TIM8_AF2 register *********************/
  17721. #define TIM8_AF2_BK2INE_Pos (0U)
  17722. #define TIM8_AF2_BK2INE_Msk (0x1U << TIM8_AF2_BK2INE_Pos) /*!< 0x00000001 */
  17723. #define TIM8_AF2_BK2INE TIM8_AF2_BK2INE_Msk /*!<BK2INE Break input 2 enable bit */
  17724. #define TIM8_AF2_BK2CMP1E_Pos (1U)
  17725. #define TIM8_AF2_BK2CMP1E_Msk (0x1U << TIM8_AF2_BK2CMP1E_Pos) /*!< 0x00000002 */
  17726. #define TIM8_AF2_BK2CMP1E TIM8_AF2_BK2CMP1E_Msk /*!<BK2CMP1E Break2 Compare1 Enable bit */
  17727. #define TIM8_AF2_BK2CMP2E_Pos (2U)
  17728. #define TIM8_AF2_BK2CMP2E_Msk (0x1U << TIM8_AF2_BK2CMP2E_Pos) /*!< 0x00000004 */
  17729. #define TIM8_AF2_BK2CMP2E TIM8_AF2_BK2CMP2E_Msk /*!<BK2CMP1E Break2 Compare2 Enable bit */
  17730. #define TIM8_AF2_BK2DFBK3E_Pos (8U)
  17731. #define TIM8_AF2_BK2DFBK3E_Msk (0x1U << TIM8_AF2_BK2DFBK3E_Pos) /*!< 0x00000100 */
  17732. #define TIM8_AF2_BK2DFBK3E TIM8_AF2_BK2DFBK3E_Msk /*!<BK2DFBK1E Break input2 DFSDM Break 3 */
  17733. #define TIM8_AF2_BK2INP_Pos (9U)
  17734. #define TIM8_AF2_BK2INP_Msk (0x1U << TIM8_AF2_BK2INP_Pos) /*!< 0x00000200 */
  17735. #define TIM8_AF2_BK2INP TIM8_AF2_BK2INP_Msk /*!<BRKINP Break2 input polarity */
  17736. #define TIM8_AF2_BK2CMP1P_Pos (10U)
  17737. #define TIM8_AF2_BK2CMP1P_Msk (0x1U << TIM8_AF2_BK2CMP1P_Pos) /*!< 0x00000400 */
  17738. #define TIM8_AF2_BK2CMP1P TIM8_AF2_BK2CMP1P_Msk /*!<BKCMP1P Break2 COMP1 input polarity */
  17739. #define TIM8_AF2_BK2CMP2P_Pos (11U)
  17740. #define TIM8_AF2_BK2CMP2P_Msk (0x1U << TIM8_AF2_BK2CMP2P_Pos) /*!< 0x00000800 */
  17741. #define TIM8_AF2_BK2CMP2P TIM8_AF2_BK2CMP2P_Msk /*!<BKCMP2P Break2 COMP2 input polarity */
  17742. /******************* Bit definition for TIM8_TISEL register *********************/
  17743. #define TIM8_TISEL_TI1SEL_Pos (0U)
  17744. #define TIM8_TISEL_TI1SEL_Msk (0xFU << TIM8_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17745. #define TIM8_TISEL_TI1SEL TIM8_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM8 TI1 SEL)*/
  17746. #define TIM8_TISEL_TI1SEL_0 (0x1U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17747. #define TIM8_TISEL_TI1SEL_1 (0x2U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17748. #define TIM8_TISEL_TI1SEL_2 (0x4U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17749. #define TIM8_TISEL_TI1SEL_3 (0x8U << TIM8_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17750. #define TIM8_TISEL_TI2SEL_Pos (8U)
  17751. #define TIM8_TISEL_TI2SEL_Msk (0xFU << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17752. #define TIM8_TISEL_TI2SEL TIM8_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM8 TI2 SEL)*/
  17753. #define TIM8_TISEL_TI2SEL_0 (0x1U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17754. #define TIM8_TISEL_TI2SEL_1 (0x2U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17755. #define TIM8_TISEL_TI2SEL_2 (0x4U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17756. #define TIM8_TISEL_TI2SEL_3 (0x8U << TIM8_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17757. #define TIM8_TISEL_TI3SEL_Pos (16U)
  17758. #define TIM8_TISEL_TI3SEL_Msk (0xFU << TIM8_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17759. #define TIM8_TISEL_TI3SEL TIM8_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM8 TI3 SEL)*/
  17760. #define TIM8_TISEL_TI3SEL_0 (0x1U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17761. #define TIM8_TISEL_TI3SEL_1 (0x2U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17762. #define TIM8_TISEL_TI3SEL_2 (0x4U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17763. #define TIM8_TISEL_TI3SEL_3 (0x8U << TIM8_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17764. #define TIM8_TISEL_TI4SEL_Pos (24U)
  17765. #define TIM8_TISEL_TI4SEL_Msk (0xFU << TIM8_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17766. #define TIM8_TISEL_TI4SEL TIM8_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM8 TI4 SEL)*/
  17767. #define TIM8_TISEL_TI4SEL_0 (0x1U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17768. #define TIM8_TISEL_TI4SEL_1 (0x2U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17769. #define TIM8_TISEL_TI4SEL_2 (0x4U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17770. #define TIM8_TISEL_TI4SEL_3 (0x8U << TIM8_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17771. /******************* Bit definition for TIM2_AF1 register *********************/
  17772. #define TIM2_AF1_ETR_SEL_Pos (14U)
  17773. #define TIM2_AF1_ETR_SEL_Msk (0xFU << TIM2_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17774. #define TIM2_AF1_ETR_SEL TIM2_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM2 ETR SEL) */
  17775. #define TIM2_AF1_ETR_SEL_0 (0x1U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17776. #define TIM2_AF1_ETR_SEL_1 (0x2U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17777. #define TIM2_AF1_ETR_SEL_2 (0x4U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17778. #define TIM2_AF1_ETR_SEL_3 (0x8U << TIM2_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17779. /******************* Bit definition for TIM2_TISEL register *********************/
  17780. #define TIM2_TISEL_TI1SEL_Pos (0U)
  17781. #define TIM2_TISEL_TI1SEL_Msk (0xFU << TIM2_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17782. #define TIM2_TISEL_TI1SEL TIM2_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM1 TI1 SEL)*/
  17783. #define TIM2_TISEL_TI1SEL_0 (0x1U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17784. #define TIM2_TISEL_TI1SEL_1 (0x2U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17785. #define TIM2_TISEL_TI1SEL_2 (0x4U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17786. #define TIM2_TISEL_TI1SEL_3 (0x8U << TIM2_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17787. #define TIM2_TISEL_TI2SEL_Pos (8U)
  17788. #define TIM2_TISEL_TI2SEL_Msk (0xFU << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17789. #define TIM2_TISEL_TI2SEL TIM2_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM2 TI2 SEL)*/
  17790. #define TIM2_TISEL_TI2SEL_0 (0x1U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17791. #define TIM2_TISEL_TI2SEL_1 (0x2U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17792. #define TIM2_TISEL_TI2SEL_2 (0x4U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17793. #define TIM2_TISEL_TI2SEL_3 (0x8U << TIM2_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17794. #define TIM2_TISEL_TI3SEL_Pos (16U)
  17795. #define TIM2_TISEL_TI3SEL_Msk (0xFU << TIM2_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17796. #define TIM2_TISEL_TI3SEL TIM2_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM2 TI3 SEL)*/
  17797. #define TIM2_TISEL_TI3SEL_0 (0x1U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17798. #define TIM2_TISEL_TI3SEL_1 (0x2U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17799. #define TIM2_TISEL_TI3SEL_2 (0x4U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17800. #define TIM2_TISEL_TI3SEL_3 (0x8U << TIM2_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17801. #define TIM2_TISEL_TI4SEL_Pos (24U)
  17802. #define TIM2_TISEL_TI4SEL_Msk (0xFU << TIM2_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17803. #define TIM2_TISEL_TI4SEL TIM2_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM2 TI4 SEL)*/
  17804. #define TIM2_TISEL_TI4SEL_0 (0x1U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17805. #define TIM2_TISEL_TI4SEL_1 (0x2U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17806. #define TIM2_TISEL_TI4SEL_2 (0x4U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17807. #define TIM2_TISEL_TI4SEL_3 (0x8U << TIM2_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17808. /******************* Bit definition for TIM3_AF1 register *********************/
  17809. #define TIM3_AF1_ETR_SEL_Pos (14U)
  17810. #define TIM3_AF1_ETR_SEL_Msk (0xFU << TIM3_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17811. #define TIM3_AF1_ETR_SEL TIM3_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM3 ETR SEL) */
  17812. #define TIM3_AF1_ETR_SEL_0 (0x1U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17813. #define TIM3_AF1_ETR_SEL_1 (0x2U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17814. #define TIM3_AF1_ETR_SEL_2 (0x4U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17815. #define TIM3_AF1_ETR_SEL_3 (0x8U << TIM3_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17816. /******************* Bit definition for TIM3_TISEL register *********************/
  17817. #define TIM3_TISEL_TI1SEL_Pos (0U)
  17818. #define TIM3_TISEL_TI1SEL_Msk (0xFU << TIM3_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17819. #define TIM3_TISEL_TI1SEL TIM3_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM3 TI1 SEL)*/
  17820. #define TIM3_TISEL_TI1SEL_0 (0x1U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17821. #define TIM3_TISEL_TI1SEL_1 (0x2U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17822. #define TIM3_TISEL_TI1SEL_2 (0x4U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17823. #define TIM3_TISEL_TI1SEL_3 (0x8U << TIM3_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17824. #define TIM3_TISEL_TI2SEL_Pos (8U)
  17825. #define TIM3_TISEL_TI2SEL_Msk (0xFU << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17826. #define TIM3_TISEL_TI2SEL TIM3_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM3 TI2 SEL)*/
  17827. #define TIM3_TISEL_TI2SEL_0 (0x1U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17828. #define TIM3_TISEL_TI2SEL_1 (0x2U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17829. #define TIM3_TISEL_TI2SEL_2 (0x4U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17830. #define TIM3_TISEL_TI2SEL_3 (0x8U << TIM3_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17831. #define TIM3_TISEL_TI3SEL_Pos (16U)
  17832. #define TIM3_TISEL_TI3SEL_Msk (0xFU << TIM3_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17833. #define TIM3_TISEL_TI3SEL TIM3_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM3 TI3 SEL)*/
  17834. #define TIM3_TISEL_TI3SEL_0 (0x1U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17835. #define TIM3_TISEL_TI3SEL_1 (0x2U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17836. #define TIM3_TISEL_TI3SEL_2 (0x4U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17837. #define TIM3_TISEL_TI3SEL_3 (0x8U << TIM3_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17838. #define TIM3_TISEL_TI4SEL_Pos (24U)
  17839. #define TIM3_TISEL_TI4SEL_Msk (0xFU << TIM3_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17840. #define TIM3_TISEL_TI4SEL TIM3_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM3 TI4 SEL)*/
  17841. #define TIM3_TISEL_TI4SEL_0 (0x1U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17842. #define TIM3_TISEL_TI4SEL_1 (0x2U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17843. #define TIM3_TISEL_TI4SEL_2 (0x4U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17844. #define TIM3_TISEL_TI4SEL_3 (0x8U << TIM3_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17845. /******************* Bit definition for TIM5_AF1 register *********************/
  17846. #define TIM5_AF1_ETR_SEL_Pos (14U)
  17847. #define TIM5_AF1_ETR_SEL_Msk (0xFU << TIM5_AF1_ETR_SEL_Pos) /*!< 0x0003C000 */
  17848. #define TIM5_AF1_ETR_SEL TIM5_AF1_ETR_SEL_Msk /*!<ETR_SEL[3:0] bits (TIM5 ETR SEL) */
  17849. #define TIM5_AF1_ETR_SEL_0 (0x1U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00004000 */
  17850. #define TIM5_AF1_ETR_SEL_1 (0x2U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00008000 */
  17851. #define TIM5_AF1_ETR_SEL_2 (0x4U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00010000 */
  17852. #define TIM5_AF1_ETR_SEL_3 (0x8U << TIM5_AF1_ETR_SEL_Pos) /*!< 0x00020000 */
  17853. /******************* Bit definition for TIM5_TISEL register *********************/
  17854. #define TIM5_TISEL_TI1SEL_Pos (0U)
  17855. #define TIM5_TISEL_TI1SEL_Msk (0xFU << TIM5_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17856. #define TIM5_TISEL_TI1SEL TIM5_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM3 TI1 SEL)*/
  17857. #define TIM5_TISEL_TI1SEL_0 (0x1U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17858. #define TIM5_TISEL_TI1SEL_1 (0x2U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17859. #define TIM5_TISEL_TI1SEL_2 (0x4U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17860. #define TIM5_TISEL_TI1SEL_3 (0x8U << TIM5_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17861. #define TIM5_TISEL_TI2SEL_Pos (8U)
  17862. #define TIM5_TISEL_TI2SEL_Msk (0xFU << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17863. #define TIM5_TISEL_TI2SEL TIM5_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM3 TI2 SEL)*/
  17864. #define TIM5_TISEL_TI2SEL_0 (0x1U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17865. #define TIM5_TISEL_TI2SEL_1 (0x2U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17866. #define TIM5_TISEL_TI2SEL_2 (0x4U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17867. #define TIM5_TISEL_TI2SEL_3 (0x8U << TIM5_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17868. #define TIM5_TISEL_TI3SEL_Pos (16U)
  17869. #define TIM5_TISEL_TI3SEL_Msk (0xFU << TIM5_TISEL_TI3SEL_Pos) /*!< 0x000F0000 */
  17870. #define TIM5_TISEL_TI3SEL TIM5_TISEL_TI3SEL_Msk /*!<TI3SEL[3:0] bits (TIM3 TI3 SEL)*/
  17871. #define TIM5_TISEL_TI3SEL_0 (0x1U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00010000 */
  17872. #define TIM5_TISEL_TI3SEL_1 (0x2U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00020000 */
  17873. #define TIM5_TISEL_TI3SEL_2 (0x4U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00040000 */
  17874. #define TIM5_TISEL_TI3SEL_3 (0x8U << TIM5_TISEL_TI3SEL_Pos) /*!< 0x00080000 */
  17875. #define TIM5_TISEL_TI4SEL_Pos (24U)
  17876. #define TIM5_TISEL_TI4SEL_Msk (0xFU << TIM5_TISEL_TI4SEL_Pos) /*!< 0x0F000000 */
  17877. #define TIM5_TISEL_TI4SEL TIM5_TISEL_TI4SEL_Msk /*!<TI4SEL[3:0] bits (TIM3 TI4 SEL)*/
  17878. #define TIM5_TISEL_TI4SEL_0 (0x1U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x01000000 */
  17879. #define TIM5_TISEL_TI4SEL_1 (0x2U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x02000000 */
  17880. #define TIM5_TISEL_TI4SEL_2 (0x4U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x04000000 */
  17881. #define TIM5_TISEL_TI4SEL_3 (0x8U << TIM5_TISEL_TI4SEL_Pos) /*!< 0x08000000 */
  17882. /******************* Bit definition for TIM15_AF1 register *********************/
  17883. #define TIM15_AF1_BKINE_Pos (0U)
  17884. #define TIM15_AF1_BKINE_Msk (0x1U << TIM15_AF1_BKINE_Pos) /*!< 0x00000001 */
  17885. #define TIM15_AF1_BKINE TIM15_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17886. #define TIM15_AF1_BKCMP1E_Pos (1U)
  17887. #define TIM15_AF1_BKCMP1E_Msk (0x1U << TIM15_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17888. #define TIM15_AF1_BKCMP1E TIM15_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17889. #define TIM15_AF1_BKCMP2E_Pos (2U)
  17890. #define TIM15_AF1_BKCMP2E_Msk (0x1U << TIM15_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17891. #define TIM15_AF1_BKCMP2E TIM15_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17892. #define TIM15_AF1_BKDF1BK2E_Pos (8U)
  17893. #define TIM15_AF1_BKDF1BK2E_Msk (0x1U << TIM15_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  17894. #define TIM15_AF1_BKDF1BK2E TIM15_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[0] enable */
  17895. #define TIM15_AF1_BKINP_Pos (9U)
  17896. #define TIM15_AF1_BKINP_Msk (0x1U << TIM15_AF1_BKINP_Pos) /*!< 0x00000200 */
  17897. #define TIM15_AF1_BKINP TIM15_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17898. #define TIM15_AF1_BKCMP1P_Pos (10U)
  17899. #define TIM15_AF1_BKCMP1P_Msk (0x1U << TIM15_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17900. #define TIM15_AF1_BKCMP1P TIM15_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17901. #define TIM15_AF1_BKCMP2P_Pos (11U)
  17902. #define TIM15_AF1_BKCMP2P_Msk (0x1U << TIM15_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17903. #define TIM15_AF1_BKCMP2P TIM15_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17904. /******************* Bit definition for TIM15_TISEL register *********************/
  17905. #define TIM15_TISEL_TI1SEL_Pos (0U)
  17906. #define TIM15_TISEL_TI1SEL_Msk (0xFU << TIM15_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17907. #define TIM15_TISEL_TI1SEL TIM15_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM15 TI1 SEL)*/
  17908. #define TIM15_TISEL_TI1SEL_0 (0x1U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17909. #define TIM15_TISEL_TI1SEL_1 (0x2U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17910. #define TIM15_TISEL_TI1SEL_2 (0x4U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17911. #define TIM15_TISEL_TI1SEL_3 (0x8U << TIM15_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17912. #define TIM15_TISEL_TI2SEL_Pos (8U)
  17913. #define TIM15_TISEL_TI2SEL_Msk (0xFU << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000F00 */
  17914. #define TIM15_TISEL_TI2SEL TIM15_TISEL_TI2SEL_Msk /*!<TI2SEL[3:0] bits (TIM15 TI2 SEL)*/
  17915. #define TIM15_TISEL_TI2SEL_0 (0x1U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000100 */
  17916. #define TIM15_TISEL_TI2SEL_1 (0x2U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000200 */
  17917. #define TIM15_TISEL_TI2SEL_2 (0x4U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000400 */
  17918. #define TIM15_TISEL_TI2SEL_3 (0x8U << TIM15_TISEL_TI2SEL_Pos) /*!< 0x00000800 */
  17919. /******************* Bit definition for TIM16_ register *********************/
  17920. #define TIM16_AF1_BKINE_Pos (0U)
  17921. #define TIM16_AF1_BKINE_Msk (0x1U << TIM16_AF1_BKINE_Pos) /*!< 0x00000001 */
  17922. #define TIM16_AF1_BKINE TIM16_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17923. #define TIM16_AF1_BKCMP1E_Pos (1U)
  17924. #define TIM16_AF1_BKCMP1E_Msk (0x1U << TIM16_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17925. #define TIM16_AF1_BKCMP1E TIM16_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17926. #define TIM16_AF1_BKCMP2E_Pos (2U)
  17927. #define TIM16_AF1_BKCMP2E_Msk (0x1U << TIM16_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17928. #define TIM16_AF1_BKCMP2E TIM16_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17929. #define TIM16_AF1_BKDF1BK2E_Pos (8U)
  17930. #define TIM16_AF1_BKDF1BK2E_Msk (0x1U << TIM16_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  17931. #define TIM16_AF1_BKDF1BK2E TIM16_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[1] enable */
  17932. #define TIM16_AF1_BKINP_Pos (9U)
  17933. #define TIM16_AF1_BKINP_Msk (0x1U << TIM16_AF1_BKINP_Pos) /*!< 0x00000200 */
  17934. #define TIM16_AF1_BKINP TIM16_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17935. #define TIM16_AF1_BKCMP1P_Pos (10U)
  17936. #define TIM16_AF1_BKCMP1P_Msk (0x1U << TIM16_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17937. #define TIM16_AF1_BKCMP1P TIM16_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17938. #define TIM16_AF1_BKCMP2P_Pos (11U)
  17939. #define TIM16_AF1_BKCMP2P_Msk (0x1U << TIM16_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17940. #define TIM16_AF1_BKCMP2P TIM16_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17941. /******************* Bit definition for TIM16_TISEL register *********************/
  17942. #define TIM16_TISEL_TI1SEL_Pos (0U)
  17943. #define TIM16_TISEL_TI1SEL_Msk (0xFU << TIM16_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17944. #define TIM16_TISEL_TI1SEL TIM16_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM16 TI1 SEL) */
  17945. #define TIM16_TISEL_TI1SEL_0 (0x1U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17946. #define TIM16_TISEL_TI1SEL_1 (0x2U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17947. #define TIM16_TISEL_TI1SEL_2 (0x4U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17948. #define TIM16_TISEL_TI1SEL_3 (0x8U << TIM16_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17949. /******************* Bit definition for TIM17_AF1 register *********************/
  17950. #define TIM17_AF1_BKINE_Pos (0U)
  17951. #define TIM17_AF1_BKINE_Msk (0x1U << TIM17_AF1_BKINE_Pos) /*!< 0x00000001 */
  17952. #define TIM17_AF1_BKINE TIM17_AF1_BKINE_Msk /*!<BKINE Break input enable bit */
  17953. #define TIM17_AF1_BKCMP1E_Pos (1U)
  17954. #define TIM17_AF1_BKCMP1E_Msk (0x1U << TIM17_AF1_BKCMP1E_Pos) /*!< 0x00000002 */
  17955. #define TIM17_AF1_BKCMP1E TIM17_AF1_BKCMP1E_Msk /*!<BKCMP1E Break Compare1 Enable bit */
  17956. #define TIM17_AF1_BKCMP2E_Pos (2U)
  17957. #define TIM17_AF1_BKCMP2E_Msk (0x1U << TIM17_AF1_BKCMP2E_Pos) /*!< 0x00000004 */
  17958. #define TIM17_AF1_BKCMP2E TIM17_AF1_BKCMP2E_Msk /*!<BKCMP1E Break Compare2 Enable bit */
  17959. #define TIM17_AF1_BKDF1BK2E_Pos (8U)
  17960. #define TIM17_AF1_BKDF1BK2E_Msk (0x1U << TIM17_AF1_BKDF1BK2E_Pos) /*!< 0x00000100 */
  17961. #define TIM17_AF1_BKDF1BK2E TIM17_AF1_BKDF1BK2E_Msk /*!<BRK dfsdm1_break[2] enable */
  17962. #define TIM17_AF1_BKINP_Pos (9U)
  17963. #define TIM17_AF1_BKINP_Msk (0x1U << TIM17_AF1_BKINP_Pos) /*!< 0x00000200 */
  17964. #define TIM17_AF1_BKINP TIM17_AF1_BKINP_Msk /*!<BRKINP Break input polarity */
  17965. #define TIM17_AF1_BKCMP1P_Pos (10U)
  17966. #define TIM17_AF1_BKCMP1P_Msk (0x1U << TIM17_AF1_BKCMP1P_Pos) /*!< 0x00000400 */
  17967. #define TIM17_AF1_BKCMP1P TIM17_AF1_BKCMP1P_Msk /*!<BKCMP1P Break COMP1 input polarity */
  17968. #define TIM17_AF1_BKCMP2P_Pos (11U)
  17969. #define TIM17_AF1_BKCMP2P_Msk (0x1U << TIM17_AF1_BKCMP2P_Pos) /*!< 0x00000800 */
  17970. #define TIM17_AF1_BKCMP2P TIM17_AF1_BKCMP2P_Msk /*!<BKCMP2P Break COMP2 input polarity */
  17971. /******************* Bit definition for TIM17_TISEL register *********************/
  17972. #define TIM17_TISEL_TI1SEL_Pos (0U)
  17973. #define TIM17_TISEL_TI1SEL_Msk (0xFU << TIM17_TISEL_TI1SEL_Pos) /*!< 0x0000000F */
  17974. #define TIM17_TISEL_TI1SEL TIM17_TISEL_TI1SEL_Msk /*!<TI1SEL[3:0] bits (TIM17 TI1 SEL) */
  17975. #define TIM17_TISEL_TI1SEL_0 (0x1U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000001 */
  17976. #define TIM17_TISEL_TI1SEL_1 (0x2U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000002 */
  17977. #define TIM17_TISEL_TI1SEL_2 (0x4U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000004 */
  17978. #define TIM17_TISEL_TI1SEL_3 (0x8U << TIM17_TISEL_TI1SEL_Pos) /*!< 0x00000008 */
  17979. /******************************************************************************/
  17980. /* */
  17981. /* Low Power Timer (LPTTIM) */
  17982. /* */
  17983. /******************************************************************************/
  17984. /****************** Bit definition for LPTIM_ISR register *******************/
  17985. #define LPTIM_ISR_CMPM_Pos (0U)
  17986. #define LPTIM_ISR_CMPM_Msk (0x1U << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */
  17987. #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */
  17988. #define LPTIM_ISR_ARRM_Pos (1U)
  17989. #define LPTIM_ISR_ARRM_Msk (0x1U << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */
  17990. #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */
  17991. #define LPTIM_ISR_EXTTRIG_Pos (2U)
  17992. #define LPTIM_ISR_EXTTRIG_Msk (0x1U << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */
  17993. #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */
  17994. #define LPTIM_ISR_CMPOK_Pos (3U)
  17995. #define LPTIM_ISR_CMPOK_Msk (0x1U << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */
  17996. #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */
  17997. #define LPTIM_ISR_ARROK_Pos (4U)
  17998. #define LPTIM_ISR_ARROK_Msk (0x1U << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */
  17999. #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */
  18000. #define LPTIM_ISR_UP_Pos (5U)
  18001. #define LPTIM_ISR_UP_Msk (0x1U << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */
  18002. #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */
  18003. #define LPTIM_ISR_DOWN_Pos (6U)
  18004. #define LPTIM_ISR_DOWN_Msk (0x1U << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */
  18005. #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */
  18006. /****************** Bit definition for LPTIM_ICR register *******************/
  18007. #define LPTIM_ICR_CMPMCF_Pos (0U)
  18008. #define LPTIM_ICR_CMPMCF_Msk (0x1U << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */
  18009. #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */
  18010. #define LPTIM_ICR_ARRMCF_Pos (1U)
  18011. #define LPTIM_ICR_ARRMCF_Msk (0x1U << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */
  18012. #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */
  18013. #define LPTIM_ICR_EXTTRIGCF_Pos (2U)
  18014. #define LPTIM_ICR_EXTTRIGCF_Msk (0x1U << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */
  18015. #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */
  18016. #define LPTIM_ICR_CMPOKCF_Pos (3U)
  18017. #define LPTIM_ICR_CMPOKCF_Msk (0x1U << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */
  18018. #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */
  18019. #define LPTIM_ICR_ARROKCF_Pos (4U)
  18020. #define LPTIM_ICR_ARROKCF_Msk (0x1U << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */
  18021. #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */
  18022. #define LPTIM_ICR_UPCF_Pos (5U)
  18023. #define LPTIM_ICR_UPCF_Msk (0x1U << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */
  18024. #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */
  18025. #define LPTIM_ICR_DOWNCF_Pos (6U)
  18026. #define LPTIM_ICR_DOWNCF_Msk (0x1U << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */
  18027. #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */
  18028. /****************** Bit definition for LPTIM_IER register ********************/
  18029. #define LPTIM_IER_CMPMIE_Pos (0U)
  18030. #define LPTIM_IER_CMPMIE_Msk (0x1U << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */
  18031. #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */
  18032. #define LPTIM_IER_ARRMIE_Pos (1U)
  18033. #define LPTIM_IER_ARRMIE_Msk (0x1U << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */
  18034. #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */
  18035. #define LPTIM_IER_EXTTRIGIE_Pos (2U)
  18036. #define LPTIM_IER_EXTTRIGIE_Msk (0x1U << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */
  18037. #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */
  18038. #define LPTIM_IER_CMPOKIE_Pos (3U)
  18039. #define LPTIM_IER_CMPOKIE_Msk (0x1U << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */
  18040. #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */
  18041. #define LPTIM_IER_ARROKIE_Pos (4U)
  18042. #define LPTIM_IER_ARROKIE_Msk (0x1U << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */
  18043. #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */
  18044. #define LPTIM_IER_UPIE_Pos (5U)
  18045. #define LPTIM_IER_UPIE_Msk (0x1U << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */
  18046. #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */
  18047. #define LPTIM_IER_DOWNIE_Pos (6U)
  18048. #define LPTIM_IER_DOWNIE_Msk (0x1U << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */
  18049. #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */
  18050. /****************** Bit definition for LPTIM_CFGR register *******************/
  18051. #define LPTIM_CFGR_CKSEL_Pos (0U)
  18052. #define LPTIM_CFGR_CKSEL_Msk (0x1U << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */
  18053. #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */
  18054. #define LPTIM_CFGR_CKPOL_Pos (1U)
  18055. #define LPTIM_CFGR_CKPOL_Msk (0x3U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */
  18056. #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */
  18057. #define LPTIM_CFGR_CKPOL_0 (0x1U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */
  18058. #define LPTIM_CFGR_CKPOL_1 (0x2U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */
  18059. #define LPTIM_CFGR_CKFLT_Pos (3U)
  18060. #define LPTIM_CFGR_CKFLT_Msk (0x3U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */
  18061. #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
  18062. #define LPTIM_CFGR_CKFLT_0 (0x1U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */
  18063. #define LPTIM_CFGR_CKFLT_1 (0x2U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */
  18064. #define LPTIM_CFGR_TRGFLT_Pos (6U)
  18065. #define LPTIM_CFGR_TRGFLT_Msk (0x3U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */
  18066. #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
  18067. #define LPTIM_CFGR_TRGFLT_0 (0x1U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */
  18068. #define LPTIM_CFGR_TRGFLT_1 (0x2U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */
  18069. #define LPTIM_CFGR_PRESC_Pos (9U)
  18070. #define LPTIM_CFGR_PRESC_Msk (0x7U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */
  18071. #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */
  18072. #define LPTIM_CFGR_PRESC_0 (0x1U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */
  18073. #define LPTIM_CFGR_PRESC_1 (0x2U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */
  18074. #define LPTIM_CFGR_PRESC_2 (0x4U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */
  18075. #define LPTIM_CFGR_TRIGSEL_Pos (13U)
  18076. #define LPTIM_CFGR_TRIGSEL_Msk (0x7U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */
  18077. #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */
  18078. #define LPTIM_CFGR_TRIGSEL_0 (0x1U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */
  18079. #define LPTIM_CFGR_TRIGSEL_1 (0x2U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */
  18080. #define LPTIM_CFGR_TRIGSEL_2 (0x4U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */
  18081. #define LPTIM_CFGR_TRIGEN_Pos (17U)
  18082. #define LPTIM_CFGR_TRIGEN_Msk (0x3U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */
  18083. #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
  18084. #define LPTIM_CFGR_TRIGEN_0 (0x1U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */
  18085. #define LPTIM_CFGR_TRIGEN_1 (0x2U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */
  18086. #define LPTIM_CFGR_TIMOUT_Pos (19U)
  18087. #define LPTIM_CFGR_TIMOUT_Msk (0x1U << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */
  18088. #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */
  18089. #define LPTIM_CFGR_WAVE_Pos (20U)
  18090. #define LPTIM_CFGR_WAVE_Msk (0x1U << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */
  18091. #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */
  18092. #define LPTIM_CFGR_WAVPOL_Pos (21U)
  18093. #define LPTIM_CFGR_WAVPOL_Msk (0x1U << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */
  18094. #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */
  18095. #define LPTIM_CFGR_PRELOAD_Pos (22U)
  18096. #define LPTIM_CFGR_PRELOAD_Msk (0x1U << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */
  18097. #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */
  18098. #define LPTIM_CFGR_COUNTMODE_Pos (23U)
  18099. #define LPTIM_CFGR_COUNTMODE_Msk (0x1U << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */
  18100. #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */
  18101. #define LPTIM_CFGR_ENC_Pos (24U)
  18102. #define LPTIM_CFGR_ENC_Msk (0x1U << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */
  18103. #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */
  18104. /****************** Bit definition for LPTIM_CR register ********************/
  18105. #define LPTIM_CR_ENABLE_Pos (0U)
  18106. #define LPTIM_CR_ENABLE_Msk (0x1U << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */
  18107. #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */
  18108. #define LPTIM_CR_SNGSTRT_Pos (1U)
  18109. #define LPTIM_CR_SNGSTRT_Msk (0x40001U << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00080002 */
  18110. #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */
  18111. #define LPTIM_CR_CNTSTRT_Pos (2U)
  18112. #define LPTIM_CR_CNTSTRT_Msk (0x1U << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */
  18113. #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */
  18114. #define LPTIM_CR_COUNTRST_Pos (3U)
  18115. #define LPTIM_CR_COUNTRST_Msk (0x1U << LPTIM_CR_COUNTRST_Pos) /*!< 0x00000008 */
  18116. #define LPTIM_CR_COUNTRST LPTIM_CR_COUNTRST_Msk /*!< Timer Counter reset in synchronous mode*/
  18117. #define LPTIM_CR_RSTARE_Pos (4U)
  18118. #define LPTIM_CR_RSTARE_Msk (0x1U << LPTIM_CR_RSTARE_Pos) /*!< 0x00000010 */
  18119. #define LPTIM_CR_RSTARE LPTIM_CR_RSTARE_Msk /*!< Timer Counter reset after read enable (asynchronously)*/
  18120. /****************** Bit definition for LPTIM_CMP register *******************/
  18121. #define LPTIM_CMP_CMP_Pos (0U)
  18122. #define LPTIM_CMP_CMP_Msk (0xFFFFU << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */
  18123. #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */
  18124. /****************** Bit definition for LPTIM_ARR register *******************/
  18125. #define LPTIM_ARR_ARR_Pos (0U)
  18126. #define LPTIM_ARR_ARR_Msk (0xFFFFU << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */
  18127. #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */
  18128. /****************** Bit definition for LPTIM_CNT register *******************/
  18129. #define LPTIM_CNT_CNT_Pos (0U)
  18130. #define LPTIM_CNT_CNT_Msk (0xFFFFU << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */
  18131. #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */
  18132. /****************** Bit definition for LPTIM_OR register *******************/
  18133. #define LPTIM_CFGR2_CFGR2_Pos (0U)
  18134. #define LPTIM_CFGR2_CFGR2_Msk (0xFFU << LPTIM_CFGR2_CFGR2_Pos) /*!< 0x000000FF */
  18135. #define LPTIM_CFGR2_CFGR2 LPTIM_CFGR2_CFGR2_Msk /*!< LPTIMER_ CFGR2[7:0] bits (Remap selection) */
  18136. #define LPTIM_CFGR2_IN1_SEL0_Pos (0U)
  18137. #define LPTIM_CFGR2_IN1_SEL0_Msk (0x1U << LPTIM_CFGR2_IN1_SEL0_Pos) /*!< 0x00000001 */
  18138. #define LPTIM_CFGR2_IN1_SEL0 LPTIM_CFGR2_IN1_SEL0_Msk /*!< Bit 0 */
  18139. #define LPTIM_CFGR2_IN1_SEL1_Pos (1U)
  18140. #define LPTIM_CFGR2_IN1_SEL1_Msk (0x1U << LPTIM_CFGR2_IN1_SEL1_Pos) /*!< 0x00000002 */
  18141. #define LPTIM_CFGR2_IN1_SEL1 LPTIM_CFGR2_IN1_SEL1_Msk /*!< Bit 1 */
  18142. #define LPTIM_CFGR2_IN2_SEL0_Pos (4U)
  18143. #define LPTIM_CFGR2_IN2_SEL0_Msk (0x1U << LPTIM_CFGR2_IN2_SEL0_Pos) /*!< 0x00000010 */
  18144. #define LPTIM_CFGR2_IN2_SEL0 LPTIM_CFGR2_IN2_SEL0_Msk /*!< Bit 4 */
  18145. #define LPTIM_CFGR2_IN2_SEL1_Pos (5U)
  18146. #define LPTIM_CFGR2_IN2_SEL1_Msk (0x1U << LPTIM_CFGR2_IN2_SEL1_Pos) /*!< 0x00000020 */
  18147. #define LPTIM_CFGR2_IN2_SEL1 LPTIM_CFGR2_IN2_SEL1_Msk /*!< Bit 5 */
  18148. /******************************************************************************/
  18149. /* */
  18150. /* Analog Comparators (COMP) */
  18151. /* */
  18152. /******************************************************************************/
  18153. /******************* Bit definition for COMP_SR register ********************/
  18154. #define COMP_SR_C1VAL_Pos (0U)
  18155. #define COMP_SR_C1VAL_Msk (0x1U << COMP_SR_C1VAL_Pos) /*!< 0x00000001 */
  18156. #define COMP_SR_C1VAL COMP_SR_C1VAL_Msk
  18157. #define COMP_SR_C2VAL_Pos (1U)
  18158. #define COMP_SR_C2VAL_Msk (0x1U << COMP_SR_C2VAL_Pos) /*!< 0x00000002 */
  18159. #define COMP_SR_C2VAL COMP_SR_C2VAL_Msk
  18160. #define COMP_SR_C1IF_Pos (16U)
  18161. #define COMP_SR_C1IF_Msk (0x1U << COMP_SR_C1IF_Pos) /*!< 0x00010000 */
  18162. #define COMP_SR_C1IF COMP_SR_C1IF_Msk
  18163. #define COMP_SR_C2IF_Pos (17U)
  18164. #define COMP_SR_C2IF_Msk (0x1U << COMP_SR_C2IF_Pos) /*!< 0x00020000 */
  18165. #define COMP_SR_C2IF COMP_SR_C2IF_Msk
  18166. /******************* Bit definition for COMP_ICFR register ********************/
  18167. #define COMP_ICFR_C1IF_Pos (16U)
  18168. #define COMP_ICFR_C1IF_Msk (0x1U << COMP_ICFR_C1IF_Pos) /*!< 0x00010000 */
  18169. #define COMP_ICFR_C1IF COMP_ICFR_C1IF_Msk
  18170. #define COMP_ICFR_C2IF_Pos (17U)
  18171. #define COMP_ICFR_C2IF_Msk (0x1U << COMP_ICFR_C2IF_Pos) /*!< 0x00020000 */
  18172. #define COMP_ICFR_C2IF COMP_ICFR_C2IF_Msk
  18173. /******************* Bit definition for COMP_OR register ********************/
  18174. #define COMP_OR_AFOPA6_Pos (0U)
  18175. #define COMP_OR_AFOPA6_Msk (0x1U << COMP_OR_AFOPA6_Pos) /*!< 0x00000001 */
  18176. #define COMP_OR_AFOPA6 COMP_OR_AFOPA6_Msk
  18177. #define COMP_OR_AFOPA8_Pos (1U)
  18178. #define COMP_OR_AFOPA8_Msk (0x1U << COMP_OR_AFOPA8_Pos) /*!< 0x00000002 */
  18179. #define COMP_OR_AFOPA8 COMP_OR_AFOPA8_Msk
  18180. #define COMP_OR_AFOPB12_Pos (2U)
  18181. #define COMP_OR_AFOPB12_Msk (0x1U << COMP_OR_AFOPB12_Pos) /*!< 0x00000004 */
  18182. #define COMP_OR_AFOPB12 COMP_OR_AFOPB12_Msk
  18183. #define COMP_OR_AFOPE6_Pos (3U)
  18184. #define COMP_OR_AFOPE6_Msk (0x1U << COMP_OR_AFOPE6_Pos) /*!< 0x00000008 */
  18185. #define COMP_OR_AFOPE6 COMP_OR_AFOPE6_Msk
  18186. #define COMP_OR_AFOPE15_Pos (4U)
  18187. #define COMP_OR_AFOPE15_Msk (0x1U << COMP_OR_AFOPE15_Pos) /*!< 0x00000010 */
  18188. #define COMP_OR_AFOPE15 COMP_OR_AFOPE15_Msk
  18189. #define COMP_OR_AFOPG2_Pos (5U)
  18190. #define COMP_OR_AFOPG2_Msk (0x1U << COMP_OR_AFOPG2_Pos) /*!< 0x00000020 */
  18191. #define COMP_OR_AFOPG2 COMP_OR_AFOPG2_Msk
  18192. #define COMP_OR_AFOPG3_Pos (6U)
  18193. #define COMP_OR_AFOPG3_Msk (0x1U << COMP_OR_AFOPG3_Pos) /*!< 0x00000040 */
  18194. #define COMP_OR_AFOPG3 COMP_OR_AFOPG3_Msk
  18195. #define COMP_OR_AFOPG4_Pos (7U)
  18196. #define COMP_OR_AFOPG4_Msk (0x1U << COMP_OR_AFOPG4_Pos) /*!< 0x00000080 */
  18197. #define COMP_OR_AFOPG4 COMP_OR_AFOPG4_Msk
  18198. #define COMP_OR_AFOPI1_Pos (8U)
  18199. #define COMP_OR_AFOPI1_Msk (0x1U << COMP_OR_AFOPI1_Pos) /*!< 0x00000100 */
  18200. #define COMP_OR_AFOPI1 COMP_OR_AFOPI1_Msk
  18201. #define COMP_OR_AFOPI4_Pos (9U)
  18202. #define COMP_OR_AFOPI4_Msk (0x1U << COMP_OR_AFOPI4_Pos) /*!< 0x00000200 */
  18203. #define COMP_OR_AFOPI4 COMP_OR_AFOPI4_Msk
  18204. #define COMP_OR_AFOPK2_Pos (10U)
  18205. #define COMP_OR_AFOPK2_Msk (0x1U << COMP_OR_AFOPK2_Pos) /*!< 0x00000400 */
  18206. #define COMP_OR_AFOPK2 COMP_OR_AFOPK2_Msk
  18207. /*!< ****************** Bit definition for COMP_CFGRx register ********************/
  18208. #define COMP_CFGRx_EN_Pos (0U)
  18209. #define COMP_CFGRx_EN_Msk (0x1U << COMP_CFGRx_EN_Pos) /*!< 0x00000001 */
  18210. #define COMP_CFGRx_EN COMP_CFGRx_EN_Msk /*!< COMPx enable bit */
  18211. #define COMP_CFGRx_BRGEN_Pos (1U)
  18212. #define COMP_CFGRx_BRGEN_Msk (0x1U << COMP_CFGRx_BRGEN_Pos) /*!< 0x00000002 */
  18213. #define COMP_CFGRx_BRGEN COMP_CFGRx_BRGEN_Msk /*!< COMPx Scaler bridge enable */
  18214. #define COMP_CFGRx_SCALEN_Pos (2U)
  18215. #define COMP_CFGRx_SCALEN_Msk (0x1U << COMP_CFGRx_SCALEN_Pos) /*!< 0x00000004 */
  18216. #define COMP_CFGRx_SCALEN COMP_CFGRx_SCALEN_Msk /*!< COMPx Voltage scaler enable bit */
  18217. #define COMP_CFGRx_POLARITY_Pos (3U)
  18218. #define COMP_CFGRx_POLARITY_Msk (0x1U << COMP_CFGRx_POLARITY_Pos) /*!< 0x00000008 */
  18219. #define COMP_CFGRx_POLARITY COMP_CFGRx_POLARITY_Msk /*!< COMPx polarity selection bit */
  18220. #define COMP_CFGRx_WINMODE_Pos (4U)
  18221. #define COMP_CFGRx_WINMODE_Msk (0x1U << COMP_CFGRx_WINMODE_Pos) /*!< 0x00000010 */
  18222. #define COMP_CFGRx_WINMODE COMP_CFGRx_WINMODE_Msk /*!< COMPx Windows mode selection bit */
  18223. #define COMP_CFGRx_ITEN_Pos (6U)
  18224. #define COMP_CFGRx_ITEN_Msk (0x1U << COMP_CFGRx_ITEN_Pos) /*!< 0x00000040 */
  18225. #define COMP_CFGRx_ITEN COMP_CFGRx_ITEN_Msk /*!< COMPx interrupt enable */
  18226. #define COMP_CFGRx_HYST_Pos (8U)
  18227. #define COMP_CFGRx_HYST_Msk (0x3U << COMP_CFGRx_HYST_Pos) /*!< 0x00000300 */
  18228. #define COMP_CFGRx_HYST COMP_CFGRx_HYST_Msk /*!< COMPx hysteresis selection bits */
  18229. #define COMP_CFGRx_HYST_0 (0x1U << COMP_CFGRx_HYST_Pos) /*!< 0x00000100 */
  18230. #define COMP_CFGRx_HYST_1 (0x2U << COMP_CFGRx_HYST_Pos) /*!< 0x00000200 */
  18231. #define COMP_CFGRx_PWRMODE_Pos (12U)
  18232. #define COMP_CFGRx_PWRMODE_Msk (0x3U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00003000 */
  18233. #define COMP_CFGRx_PWRMODE COMP_CFGRx_PWRMODE_Msk /*!< COMPx Power Mode of the comparator */
  18234. #define COMP_CFGRx_PWRMODE_0 (0x1U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00001000 */
  18235. #define COMP_CFGRx_PWRMODE_1 (0x2U << COMP_CFGRx_PWRMODE_Pos) /*!< 0x00002000 */
  18236. #define COMP_CFGRx_INMSEL_Pos (16U)
  18237. #define COMP_CFGRx_INMSEL_Msk (0x7U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00070000 */
  18238. #define COMP_CFGRx_INMSEL COMP_CFGRx_INMSEL_Msk /*!< COMPx input minus selection bit */
  18239. #define COMP_CFGRx_INMSEL_0 (0x1U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00010000 */
  18240. #define COMP_CFGRx_INMSEL_1 (0x2U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00020000 */
  18241. #define COMP_CFGRx_INMSEL_2 (0x4U << COMP_CFGRx_INMSEL_Pos) /*!< 0x00040000 */
  18242. #define COMP_CFGRx_INPSEL_Pos (20U)
  18243. #define COMP_CFGRx_INPSEL_Msk (0x1U << COMP_CFGRx_INPSEL_Pos) /*!< 0x00100000 */
  18244. #define COMP_CFGRx_INPSEL COMP_CFGRx_INPSEL_Msk /*!< COMPx input plus selection bit */
  18245. #define COMP_CFGRx_BLANKING_Pos (24U)
  18246. #define COMP_CFGRx_BLANKING_Msk (0xFU << COMP_CFGRx_BLANKING_Pos) /*!< 0x0F000000 */
  18247. #define COMP_CFGRx_BLANKING COMP_CFGRx_BLANKING_Msk /*!< COMPx blanking source selection bits */
  18248. #define COMP_CFGRx_BLANKING_0 (0x1U << COMP_CFGRx_BLANKING_Pos) /*!< 0x01000000 */
  18249. #define COMP_CFGRx_BLANKING_1 (0x2U << COMP_CFGRx_BLANKING_Pos) /*!< 0x02000000 */
  18250. #define COMP_CFGRx_BLANKING_2 (0x4U << COMP_CFGRx_BLANKING_Pos) /*!< 0x04000000 */
  18251. #define COMP_CFGRx_LOCK_Pos (31U)
  18252. #define COMP_CFGRx_LOCK_Msk (0x1U << COMP_CFGRx_LOCK_Pos) /*!< 0x80000000 */
  18253. #define COMP_CFGRx_LOCK COMP_CFGRx_LOCK_Msk /*!< COMPx Lock Bit */
  18254. /******************************************************************************/
  18255. /* */
  18256. /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
  18257. /* */
  18258. /******************************************************************************/
  18259. /****************** Bit definition for USART_CR1 register *******************/
  18260. #define USART_CR1_UE_Pos (0U)
  18261. #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */
  18262. #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */
  18263. #define USART_CR1_UESM_Pos (1U)
  18264. #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */
  18265. #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */
  18266. #define USART_CR1_RE_Pos (2U)
  18267. #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */
  18268. #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */
  18269. #define USART_CR1_TE_Pos (3U)
  18270. #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */
  18271. #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */
  18272. #define USART_CR1_IDLEIE_Pos (4U)
  18273. #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */
  18274. #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */
  18275. #define USART_CR1_RXNEIE_Pos (5U)
  18276. #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */
  18277. #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */
  18278. #define USART_CR1_TCIE_Pos (6U)
  18279. #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */
  18280. #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */
  18281. #define USART_CR1_TXEIE_Pos (7U)
  18282. #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */
  18283. #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */
  18284. #define USART_CR1_PEIE_Pos (8U)
  18285. #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */
  18286. #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */
  18287. #define USART_CR1_PS_Pos (9U)
  18288. #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */
  18289. #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */
  18290. #define USART_CR1_PCE_Pos (10U)
  18291. #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */
  18292. #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */
  18293. #define USART_CR1_WAKE_Pos (11U)
  18294. #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */
  18295. #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */
  18296. #define USART_CR1_M_Pos (12U)
  18297. #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */
  18298. #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */
  18299. #define USART_CR1_M0_Pos (12U)
  18300. #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */
  18301. #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */
  18302. #define USART_CR1_MME_Pos (13U)
  18303. #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */
  18304. #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */
  18305. #define USART_CR1_CMIE_Pos (14U)
  18306. #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */
  18307. #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */
  18308. #define USART_CR1_OVER8_Pos (15U)
  18309. #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */
  18310. #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */
  18311. #define USART_CR1_DEDT_Pos (16U)
  18312. #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */
  18313. #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
  18314. #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */
  18315. #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */
  18316. #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */
  18317. #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */
  18318. #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */
  18319. #define USART_CR1_DEAT_Pos (21U)
  18320. #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */
  18321. #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
  18322. #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */
  18323. #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */
  18324. #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */
  18325. #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */
  18326. #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */
  18327. #define USART_CR1_RTOIE_Pos (26U)
  18328. #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */
  18329. #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */
  18330. #define USART_CR1_EOBIE_Pos (27U)
  18331. #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */
  18332. #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */
  18333. #define USART_CR1_M1_Pos (28U)
  18334. #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */
  18335. #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */
  18336. #define USART_CR1_FIFOEN_Pos (29U)
  18337. #define USART_CR1_FIFOEN_Msk (0x1U << USART_CR1_FIFOEN_Pos) /*!< 0x20000000 */
  18338. #define USART_CR1_FIFOEN USART_CR1_FIFOEN_Msk /*!< FIFO mode enable */
  18339. #define USART_CR1_TXFEIE_Pos (30U)
  18340. #define USART_CR1_TXFEIE_Msk (0x1U << USART_CR1_TXFEIE_Pos) /*!< 0x40000000 */
  18341. #define USART_CR1_TXFEIE USART_CR1_TXFEIE_Msk /*!< TXFIFO empty interrupt enable */
  18342. #define USART_CR1_RXFFIE_Pos (31U)
  18343. #define USART_CR1_RXFFIE_Msk (0x1U << USART_CR1_RXFFIE_Pos) /*!< 0x80000000 */
  18344. #define USART_CR1_RXFFIE USART_CR1_RXFFIE_Msk /*!< RXFIFO Full interrupt enable */
  18345. /****************** Bit definition for USART_CR2 register *******************/
  18346. #define USART_CR2_SLVEN_Pos (0U)
  18347. #define USART_CR2_SLVEN_Msk (0x1U << USART_CR2_SLVEN_Pos) /*!< 0x00000001 */
  18348. #define USART_CR2_SLVEN USART_CR2_SLVEN_Msk /*!< Synchronous Slave mode Enable */
  18349. #define USART_CR2_DIS_NSS_Pos (3U)
  18350. #define USART_CR2_DIS_NSS_Msk (0x1U << USART_CR2_DIS_NSS_Pos) /*!< 0x00000008 */
  18351. #define USART_CR2_DIS_NSS USART_CR2_DIS_NSS_Msk /*!< Negative Slave Select (NSS) pin management */
  18352. #define USART_CR2_ADDM7_Pos (4U)
  18353. #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */
  18354. #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */
  18355. #define USART_CR2_LBDL_Pos (5U)
  18356. #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */
  18357. #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */
  18358. #define USART_CR2_LBDIE_Pos (6U)
  18359. #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */
  18360. #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */
  18361. #define USART_CR2_LBCL_Pos (8U)
  18362. #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */
  18363. #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */
  18364. #define USART_CR2_CPHA_Pos (9U)
  18365. #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */
  18366. #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */
  18367. #define USART_CR2_CPOL_Pos (10U)
  18368. #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */
  18369. #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */
  18370. #define USART_CR2_CLKEN_Pos (11U)
  18371. #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */
  18372. #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */
  18373. #define USART_CR2_STOP_Pos (12U)
  18374. #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */
  18375. #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */
  18376. #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */
  18377. #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */
  18378. #define USART_CR2_LINEN_Pos (14U)
  18379. #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */
  18380. #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */
  18381. #define USART_CR2_SWAP_Pos (15U)
  18382. #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */
  18383. #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */
  18384. #define USART_CR2_RXINV_Pos (16U)
  18385. #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */
  18386. #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */
  18387. #define USART_CR2_TXINV_Pos (17U)
  18388. #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */
  18389. #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */
  18390. #define USART_CR2_DATAINV_Pos (18U)
  18391. #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */
  18392. #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */
  18393. #define USART_CR2_MSBFIRST_Pos (19U)
  18394. #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */
  18395. #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */
  18396. #define USART_CR2_ABREN_Pos (20U)
  18397. #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */
  18398. #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/
  18399. #define USART_CR2_ABRMODE_Pos (21U)
  18400. #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */
  18401. #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
  18402. #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */
  18403. #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */
  18404. #define USART_CR2_RTOEN_Pos (23U)
  18405. #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */
  18406. #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */
  18407. #define USART_CR2_ADD_Pos (24U)
  18408. #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */
  18409. #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */
  18410. /****************** Bit definition for USART_CR3 register *******************/
  18411. #define USART_CR3_EIE_Pos (0U)
  18412. #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */
  18413. #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */
  18414. #define USART_CR3_IREN_Pos (1U)
  18415. #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */
  18416. #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */
  18417. #define USART_CR3_IRLP_Pos (2U)
  18418. #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */
  18419. #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */
  18420. #define USART_CR3_HDSEL_Pos (3U)
  18421. #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */
  18422. #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */
  18423. #define USART_CR3_NACK_Pos (4U)
  18424. #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */
  18425. #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */
  18426. #define USART_CR3_SCEN_Pos (5U)
  18427. #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */
  18428. #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */
  18429. #define USART_CR3_DMAR_Pos (6U)
  18430. #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */
  18431. #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */
  18432. #define USART_CR3_DMAT_Pos (7U)
  18433. #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */
  18434. #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */
  18435. #define USART_CR3_RTSE_Pos (8U)
  18436. #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */
  18437. #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */
  18438. #define USART_CR3_CTSE_Pos (9U)
  18439. #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */
  18440. #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */
  18441. #define USART_CR3_CTSIE_Pos (10U)
  18442. #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */
  18443. #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */
  18444. #define USART_CR3_ONEBIT_Pos (11U)
  18445. #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */
  18446. #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */
  18447. #define USART_CR3_OVRDIS_Pos (12U)
  18448. #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */
  18449. #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */
  18450. #define USART_CR3_DDRE_Pos (13U)
  18451. #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */
  18452. #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */
  18453. #define USART_CR3_DEM_Pos (14U)
  18454. #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */
  18455. #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */
  18456. #define USART_CR3_DEP_Pos (15U)
  18457. #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */
  18458. #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */
  18459. #define USART_CR3_SCARCNT_Pos (17U)
  18460. #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */
  18461. #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
  18462. #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */
  18463. #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */
  18464. #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */
  18465. #define USART_CR3_WUS_Pos (20U)
  18466. #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */
  18467. #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
  18468. #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */
  18469. #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */
  18470. #define USART_CR3_WUFIE_Pos (22U)
  18471. #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */
  18472. #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */
  18473. #define USART_CR3_TXFTIE_Pos (23U)
  18474. #define USART_CR3_TXFTIE_Msk (0x1U << USART_CR3_TXFTIE_Pos) /*!< 0x00800000 */
  18475. #define USART_CR3_TXFTIE USART_CR3_TXFTIE_Msk /*!< TXFIFO threshold interrupt enable */
  18476. #define USART_CR3_TCBGTIE_Pos (24U)
  18477. #define USART_CR3_TCBGTIE_Msk (0x1U << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
  18478. #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete before guard time, interrupt enable */
  18479. #define USART_CR3_RXFTCFG_Pos (25U)
  18480. #define USART_CR3_RXFTCFG_Msk (0x7U << USART_CR3_RXFTCFG_Pos) /*!< 0x0E000000 */
  18481. #define USART_CR3_RXFTCFG USART_CR3_RXFTCFG_Msk /*!< RXFTCFG [2:0]Receive FIFO threshold configuration */
  18482. #define USART_CR3_RXFTCFG_0 (0x1U << USART_CR3_RXFTCFG_Pos) /*!< 0x02000000 */
  18483. #define USART_CR3_RXFTCFG_1 (0x2U << USART_CR3_RXFTCFG_Pos) /*!< 0x04000000 */
  18484. #define USART_CR3_RXFTCFG_2 (0x4U << USART_CR3_RXFTCFG_Pos) /*!< 0x08000000 */
  18485. #define USART_CR3_RXFTIE_Pos (28U)
  18486. #define USART_CR3_RXFTIE_Msk (0x1U << USART_CR3_RXFTIE_Pos) /*!< 0x10000000 */
  18487. #define USART_CR3_RXFTIE USART_CR3_RXFTIE_Msk /*!< RXFIFO threshold interrupt enable */
  18488. #define USART_CR3_TXFTCFG_Pos (29U)
  18489. #define USART_CR3_TXFTCFG_Msk (0x7U << USART_CR3_TXFTCFG_Pos) /*!< 0xE0000000 */
  18490. #define USART_CR3_TXFTCFG USART_CR3_TXFTCFG_Msk /*!< TXFIFO [2:0] threshold configuration */
  18491. #define USART_CR3_TXFTCFG_0 (0x1U << USART_CR3_TXFTCFG_Pos) /*!< 0x20000000 */
  18492. #define USART_CR3_TXFTCFG_1 (0x2U << USART_CR3_TXFTCFG_Pos) /*!< 0x40000000 */
  18493. #define USART_CR3_TXFTCFG_2 (0x4U << USART_CR3_TXFTCFG_Pos) /*!< 0x80000000 */
  18494. /****************** Bit definition for USART_BRR register *******************/
  18495. #define USART_BRR_DIV_FRACTION_Pos (0U)
  18496. #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */
  18497. #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */
  18498. #define USART_BRR_DIV_MANTISSA_Pos (4U)
  18499. #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */
  18500. #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */
  18501. /****************** Bit definition for USART_GTPR register ******************/
  18502. #define USART_GTPR_PSC_Pos (0U)
  18503. #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */
  18504. #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */
  18505. #define USART_GTPR_GT_Pos (8U)
  18506. #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */
  18507. #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */
  18508. /******************* Bit definition for USART_RTOR register *****************/
  18509. #define USART_RTOR_RTO_Pos (0U)
  18510. #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */
  18511. #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */
  18512. #define USART_RTOR_BLEN_Pos (24U)
  18513. #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */
  18514. #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */
  18515. /******************* Bit definition for USART_RQR register ******************/
  18516. #define USART_RQR_ABRRQ_Pos (0U)
  18517. #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */
  18518. #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */
  18519. #define USART_RQR_SBKRQ_Pos (1U)
  18520. #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */
  18521. #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */
  18522. #define USART_RQR_MMRQ_Pos (2U)
  18523. #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */
  18524. #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */
  18525. #define USART_RQR_RXFRQ_Pos (3U)
  18526. #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */
  18527. #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */
  18528. #define USART_RQR_TXFRQ_Pos (4U)
  18529. #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */
  18530. #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */
  18531. /******************* Bit definition for USART_ISR register ******************/
  18532. #define USART_ISR_PE_Pos (0U)
  18533. #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */
  18534. #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */
  18535. #define USART_ISR_FE_Pos (1U)
  18536. #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */
  18537. #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */
  18538. #define USART_ISR_NE_Pos (2U)
  18539. #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */
  18540. #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */
  18541. #define USART_ISR_ORE_Pos (3U)
  18542. #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */
  18543. #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */
  18544. #define USART_ISR_IDLE_Pos (4U)
  18545. #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */
  18546. #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */
  18547. #define USART_ISR_RXNE_Pos (5U)
  18548. #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */
  18549. #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */
  18550. #define USART_ISR_TC_Pos (6U)
  18551. #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */
  18552. #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */
  18553. #define USART_ISR_TXE_Pos (7U)
  18554. #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */
  18555. #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */
  18556. #define USART_ISR_LBDF_Pos (8U)
  18557. #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */
  18558. #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */
  18559. #define USART_ISR_CTSIF_Pos (9U)
  18560. #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */
  18561. #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */
  18562. #define USART_ISR_CTS_Pos (10U)
  18563. #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */
  18564. #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */
  18565. #define USART_ISR_RTOF_Pos (11U)
  18566. #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */
  18567. #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */
  18568. #define USART_ISR_EOBF_Pos (12U)
  18569. #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */
  18570. #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */
  18571. #define USART_ISR_UDR_Pos (13U)
  18572. #define USART_ISR_UDR_Msk (0x1U << USART_ISR_UDR_Pos) /*!< 0x00002000 */
  18573. #define USART_ISR_UDR USART_ISR_UDR_Msk /*!< SPI slave underrun error flag */
  18574. #define USART_ISR_ABRE_Pos (14U)
  18575. #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */
  18576. #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */
  18577. #define USART_ISR_ABRF_Pos (15U)
  18578. #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */
  18579. #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */
  18580. #define USART_ISR_BUSY_Pos (16U)
  18581. #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */
  18582. #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */
  18583. #define USART_ISR_CMF_Pos (17U)
  18584. #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */
  18585. #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */
  18586. #define USART_ISR_SBKF_Pos (18U)
  18587. #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */
  18588. #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */
  18589. #define USART_ISR_RWU_Pos (19U)
  18590. #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */
  18591. #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */
  18592. #define USART_ISR_WUF_Pos (20U)
  18593. #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */
  18594. #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */
  18595. #define USART_ISR_TEACK_Pos (21U)
  18596. #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */
  18597. #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */
  18598. #define USART_ISR_REACK_Pos (22U)
  18599. #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */
  18600. #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */
  18601. #define USART_ISR_TXFE_Pos (23U)
  18602. #define USART_ISR_TXFE_Msk (0x1U << USART_ISR_TXFE_Pos) /*!< 0x00800000 */
  18603. #define USART_ISR_TXFE USART_ISR_TXFE_Msk /*!< TXFIFO Empty */
  18604. #define USART_ISR_RXFF_Pos (24U)
  18605. #define USART_ISR_RXFF_Msk (0x1U << USART_ISR_RXFF_Pos) /*!< 0x01000000 */
  18606. #define USART_ISR_RXFF USART_ISR_RXFF_Msk /*!< RXFIFO Full Flag */
  18607. #define USART_ISR_TCBGT_Pos (25U)
  18608. #define USART_ISR_TCBGT_Msk (0x1U << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */
  18609. #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission complete before guard time Flag */
  18610. #define USART_ISR_RXFT_Pos (26U)
  18611. #define USART_ISR_RXFT_Msk (0x1U << USART_ISR_RXFT_Pos) /*!< 0x04000000 */
  18612. #define USART_ISR_RXFT USART_ISR_RXFT_Msk /*!< RXFIFO threshold Flag */
  18613. #define USART_ISR_TXFT_Pos (27U)
  18614. #define USART_ISR_TXFT_Msk (0x1U << USART_ISR_TXFT_Pos) /*!< 0x08000000 */
  18615. #define USART_ISR_TXFT USART_ISR_TXFT_Msk /*!< TXFIFO threshold Flag */
  18616. /******************* Bit definition for USART_ICR register ******************/
  18617. #define USART_ICR_PECF_Pos (0U)
  18618. #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */
  18619. #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */
  18620. #define USART_ICR_FECF_Pos (1U)
  18621. #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */
  18622. #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */
  18623. #define USART_ICR_NCF_Pos (2U)
  18624. #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */
  18625. #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */
  18626. #define USART_ICR_ORECF_Pos (3U)
  18627. #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */
  18628. #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */
  18629. #define USART_ICR_IDLECF_Pos (4U)
  18630. #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */
  18631. #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */
  18632. #define USART_ICR_TXFECF_Pos (5U)
  18633. #define USART_ICR_TXFECF_Msk (0x1U << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */
  18634. #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TXFIFO empty clear flag */
  18635. #define USART_ICR_TCCF_Pos (6U)
  18636. #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */
  18637. #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */
  18638. #define USART_ICR_TCBGT_Pos (7U)
  18639. #define USART_ICR_TCBGT_Msk (0x1U << USART_ICR_TCBGT_Pos) /*!< 0x00000080 */
  18640. #define USART_ICR_TCBGT USART_ICR_TCBGT_Msk /*!< Transmission complete before guard time Clear Flag */
  18641. #define USART_ICR_LBDCF_Pos (8U)
  18642. #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */
  18643. #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */
  18644. #define USART_ICR_CTSCF_Pos (9U)
  18645. #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */
  18646. #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */
  18647. #define USART_ICR_RTOCF_Pos (11U)
  18648. #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */
  18649. #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */
  18650. #define USART_ICR_EOBCF_Pos (12U)
  18651. #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */
  18652. #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */
  18653. #define USART_ICR_UDRCF_Pos (13U)
  18654. #define USART_ICR_UDRCF_Msk (0x1U << USART_ICR_UDRCF_Pos) /*!< 0x00002000 */
  18655. #define USART_ICR_UDRCF USART_ICR_UDRCF_Msk /*!< SPI slave underrun clear flag */
  18656. #define USART_ICR_CMCF_Pos (17U)
  18657. #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */
  18658. #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */
  18659. #define USART_ICR_WUCF_Pos (20U)
  18660. #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */
  18661. #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */
  18662. /******************* Bit definition for USART_RDR register ******************/
  18663. #define USART_RDR_RDR_Pos (0U)
  18664. #define USART_RDR_RDR_Msk (0x1FFU << USART_RDR_RDR_Pos) /*!< 0x000001FF */
  18665. #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */
  18666. /******************* Bit definition for USART_TDR register ******************/
  18667. #define USART_TDR_TDR_Pos (0U)
  18668. #define USART_TDR_TDR_Msk (0x1FFU << USART_TDR_TDR_Pos) /*!< 0x000001FF */
  18669. #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */
  18670. /******************* Bit definition for USART_PRESC register ******************/
  18671. #define USART_PRESC_PRESCALER_Pos (0U)
  18672. #define USART_PRESC_PRESCALER_Msk (0xFU << USART_PRESC_PRESCALER_Pos) /*!< 0x0000000F */
  18673. #define USART_PRESC_PRESCALER USART_PRESC_PRESCALER_Msk /*!< PRESCALER[3:0] bits (Clock prescaler) */
  18674. /******************************************************************************/
  18675. /* */
  18676. /* Single Wire Protocol Master Interface (SWPMI) */
  18677. /* */
  18678. /******************************************************************************/
  18679. /******************* Bit definition for SWPMI_CR register ********************/
  18680. #define SWPMI_CR_RXDMA ((uint16_t)0x0001) /*!<Reception DMA enable */
  18681. #define SWPMI_CR_TXDMA ((uint16_t)0x0002) /*!<Transmission DMA enable */
  18682. #define SWPMI_CR_RXMODE ((uint16_t)0x0004) /*!<Reception buffering mode */
  18683. #define SWPMI_CR_TXMODE ((uint16_t)0x0008) /*!<Transmission buffering mode */
  18684. #define SWPMI_CR_LPBK ((uint16_t)0x0010) /*!<Loopback mode enable */
  18685. #define SWPMI_CR_SWPACT ((uint16_t)0x0020) /*!<Single wire protocol master interface activate */
  18686. #define SWPMI_CR_DEACT ((uint16_t)0x0400) /*!<Single wire protocol master interface deactivate */
  18687. #define SWPMI_CR_SWPEN ((uint16_t)0x0800) /*!<Single wire protocol master transceiver enable */
  18688. /******************* Bit definition for SWPMI_BRR register ********************/
  18689. #define SWPMI_BRR_BR ((uint16_t)0x003F) /*!<BR[7:0] bits (Bitrate prescaler) */
  18690. /******************* Bit definition for SWPMI_ISR register ********************/
  18691. #define SWPMI_ISR_RXBFF ((uint16_t)0x0001) /*!<Receive buffer full flag */
  18692. #define SWPMI_ISR_TXBEF ((uint16_t)0x0002) /*!<Transmit buffer empty flag */
  18693. #define SWPMI_ISR_RXBERF ((uint16_t)0x0004) /*!<Receive CRC error flag */
  18694. #define SWPMI_ISR_RXOVRF ((uint16_t)0x0008) /*!<Receive overrun error flag */
  18695. #define SWPMI_ISR_TXUNRF ((uint16_t)0x0010) /*!<Transmit underrun error flag */
  18696. #define SWPMI_ISR_RXNE ((uint16_t)0x0020) /*!<Receive data register not empty */
  18697. #define SWPMI_ISR_TXE ((uint16_t)0x0040) /*!<Transmit data register empty */
  18698. #define SWPMI_ISR_TCF ((uint16_t)0x0080) /*!<Transfer complete flag */
  18699. #define SWPMI_ISR_SRF ((uint16_t)0x0100) /*!<Slave resume flag */
  18700. #define SWPMI_ISR_SUSP ((uint16_t)0x0200) /*!<SUSPEND flag */
  18701. #define SWPMI_ISR_DEACTF ((uint16_t)0x0400) /*!<DEACTIVATED flag */
  18702. #define SWPMI_ISR_RDYF ((uint16_t)0x0800) /*!<Transceiver ready flag */
  18703. /******************* Bit definition for SWPMI_ICR register ********************/
  18704. #define SWPMI_ICR_CRXBFF ((uint16_t)0x0001) /*!<Clear receive buffer full flag */
  18705. #define SWPMI_ICR_CTXBEF ((uint16_t)0x0002) /*!<Clear transmit buffer empty flag */
  18706. #define SWPMI_ICR_CRXBERF ((uint16_t)0x0004) /*!<Clear receive CRC error flag */
  18707. #define SWPMI_ICR_CRXOVRF ((uint16_t)0x0008) /*!<Clear receive overrun error flag */
  18708. #define SWPMI_ICR_CTXUNRF ((uint16_t)0x0010) /*!<Clear transmit underrun error flag */
  18709. #define SWPMI_ICR_CTCF ((uint16_t)0x0080) /*!<Clear transfer complete flag */
  18710. #define SWPMI_ICR_CSRF ((uint16_t)0x0100) /*!<Clear slave resume flag */
  18711. #define SWPMI_ICR_CRDYF ((uint16_t)0x0800) /*!<Clear transceiver ready flag */
  18712. /******************* Bit definition for SWPMI_IER register ********************/
  18713. #define SWPMI_IER_RXBFIE ((uint16_t)0x0001) /*!<Receive buffer full interrupt enable */
  18714. #define SWPMI_IER_TXBEIE ((uint16_t)0x0002) /*!<Transmit buffer empty interrupt enable */
  18715. #define SWPMI_IER_RXBERIE ((uint16_t)0x0004) /*!<Receive CRC error interrupt enable */
  18716. #define SWPMI_IER_RXOVRIE ((uint16_t)0x0008) /*!<Receive overrun error interrupt enable */
  18717. #define SWPMI_IER_TXUNRIE ((uint16_t)0x0010) /*!<Transmit underrun error interrupt enable */
  18718. #define SWPMI_IER_RIE ((uint16_t)0x0020) /*!<Receive interrupt enable */
  18719. #define SWPMI_IER_TIE ((uint16_t)0x0040) /*!<Transmit interrupt enable */
  18720. #define SWPMI_IER_TCIE ((uint16_t)0x0080) /*!<Transmit complete interrupt enable */
  18721. #define SWPMI_IER_SRIE ((uint16_t)0x0100) /*!<Slave resume interrupt enable */
  18722. #define SWPMI_IER_RDYIE ((uint16_t)0x0800) /*!<Transceiver ready interrupt enable */
  18723. /******************* Bit definition for SWPMI_RFL register ********************/
  18724. #define SWPMI_RFL_RFL ((uint16_t)0x001F) /*!<RFL[4:0] bits (Receive Frame length) */
  18725. #define SWPMI_RFL_RFL_0_1 ((uint16_t)0x0003) /*!<RFL[1:0] bits (number of relevant bytes for the last SWPMI_RDR register read.) */
  18726. /******************* Bit definition for SWPMI_TDR register ********************/
  18727. #define SWPMI_TDR_TD_Pos (0U)
  18728. #define SWPMI_TDR_TD_Msk (0xFFFFFFFFU << SWPMI_TDR_TD_Pos) /*!< 0xFFFFFFFF */
  18729. #define SWPMI_TDR_TD SWPMI_TDR_TD_Msk /*!<Transmit Data Register */
  18730. /******************* Bit definition for SWPMI_RDR register ********************/
  18731. #define SWPMI_RDR_RD_Pos (0U)
  18732. #define SWPMI_RDR_RD_Msk (0xFFFFFFFFU << SWPMI_RDR_RD_Pos) /*!< 0xFFFFFFFF */
  18733. #define SWPMI_RDR_RD SWPMI_RDR_RD_Msk /*!<Recive Data Register */
  18734. /******************* Bit definition for SWPMI_OR register ********************/
  18735. #define SWPMI_OR_TBYP ((uint16_t)0x0001) /*!<SWP Transceiver Bypass */
  18736. #define SWPMI_OR_CLASS ((uint16_t)0x0002) /*!<SWP CLASS selection */
  18737. /******************************************************************************/
  18738. /* */
  18739. /* Window WATCHDOG */
  18740. /* */
  18741. /******************************************************************************/
  18742. /******************* Bit definition for WWDG_CR register ********************/
  18743. #define WWDG_CR_T ((uint8_t)0x7F) /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
  18744. #define WWDG_CR_T0 ((uint8_t)0x01) /*!<Bit 0 */
  18745. #define WWDG_CR_T1 ((uint8_t)0x02) /*!<Bit 1 */
  18746. #define WWDG_CR_T2 ((uint8_t)0x04) /*!<Bit 2 */
  18747. #define WWDG_CR_T3 ((uint8_t)0x08) /*!<Bit 3 */
  18748. #define WWDG_CR_T4 ((uint8_t)0x10) /*!<Bit 4 */
  18749. #define WWDG_CR_T5 ((uint8_t)0x20) /*!<Bit 5 */
  18750. #define WWDG_CR_T6 ((uint8_t)0x40) /*!<Bit 6 */
  18751. #define WWDG_CR_WDGA ((uint8_t)0x80) /*!<Activation bit */
  18752. /******************* Bit definition for WWDG_CFR register *******************/
  18753. #define WWDG_CFR_W ((uint16_t)0x007F) /*!<W[6:0] bits (7-bit window value) */
  18754. #define WWDG_CFR_W0 ((uint16_t)0x0001) /*!<Bit 0 */
  18755. #define WWDG_CFR_W1 ((uint16_t)0x0002) /*!<Bit 1 */
  18756. #define WWDG_CFR_W2 ((uint16_t)0x0004) /*!<Bit 2 */
  18757. #define WWDG_CFR_W3 ((uint16_t)0x0008) /*!<Bit 3 */
  18758. #define WWDG_CFR_W4 ((uint16_t)0x0010) /*!<Bit 4 */
  18759. #define WWDG_CFR_W5 ((uint16_t)0x0020) /*!<Bit 5 */
  18760. #define WWDG_CFR_W6 ((uint16_t)0x0040) /*!<Bit 6 */
  18761. #define WWDG_CFR_EWI ((uint16_t)0x0200) /*!<Early Wakeup Interrupt */
  18762. #define WWDG_CFR_WDGTB ((uint16_t)0x3800) /*!<WDGTB[1:0] bits (Timer Base) */
  18763. #define WWDG_CFR_WDGTB0 ((uint16_t)0x0800) /*!<Bit 0 */
  18764. #define WWDG_CFR_WDGTB1 ((uint16_t)0x1000) /*!<Bit 1 */
  18765. #define WWDG_CFR_WDGTB2 ((uint16_t)0x2000)
  18766. /******************* Bit definition for WWDG_SR register ********************/
  18767. #define WWDG_SR_EWIF ((uint8_t)0x01) /*!<Early Wakeup Interrupt Flag */
  18768. /******************************************************************************/
  18769. /* */
  18770. /* DBG */
  18771. /* */
  18772. /******************************************************************************/
  18773. /******************** Bit definition for DBGMCU_IDCODE register *************/
  18774. #define DBGMCU_IDCODE_DEV_ID_Pos (0U)
  18775. #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
  18776. #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk
  18777. #define DBGMCU_IDCODE_REV_ID_Pos (16U)
  18778. #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */
  18779. #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk
  18780. /******************** Bit definition for DBGMCU_CR register *****************/
  18781. #define DBGMCU_CR_DBG_SLEEPD1_Pos (0U)
  18782. #define DBGMCU_CR_DBG_SLEEPD1_Msk (0x1U << DBGMCU_CR_DBG_SLEEPD1_Pos) /*!< 0x00000001 */
  18783. #define DBGMCU_CR_DBG_SLEEPD1 DBGMCU_CR_DBG_SLEEPD1_Msk
  18784. #define DBGMCU_CR_DBG_STOPD1_Pos (1U)
  18785. #define DBGMCU_CR_DBG_STOPD1_Msk (0x1U << DBGMCU_CR_DBG_STOPD1_Pos) /*!< 0x00000002 */
  18786. #define DBGMCU_CR_DBG_STOPD1 DBGMCU_CR_DBG_STOPD1_Msk
  18787. #define DBGMCU_CR_DBG_STANDBYD1_Pos (2U)
  18788. #define DBGMCU_CR_DBG_STANDBYD1_Msk (0x1U << DBGMCU_CR_DBG_STANDBYD1_Pos) /*!< 0x00000004 */
  18789. #define DBGMCU_CR_DBG_STANDBYD1 DBGMCU_CR_DBG_STANDBYD1_Msk
  18790. #define DBGMCU_CR_DBG_STOPD3_Pos (7U)
  18791. #define DBGMCU_CR_DBG_STOPD3_Msk (0x1U << DBGMCU_CR_DBG_STOPD3_Pos) /*!< 0x00000080 */
  18792. #define DBGMCU_CR_DBG_STOPD3 DBGMCU_CR_DBG_STOPD3_Msk
  18793. #define DBGMCU_CR_DBG_STANDBYD3_Pos (8U)
  18794. #define DBGMCU_CR_DBG_STANDBYD3_Msk (0x1U << DBGMCU_CR_DBG_STANDBYD3_Pos) /*!< 0x00000100 */
  18795. #define DBGMCU_CR_DBG_STANDBYD3 DBGMCU_CR_DBG_STANDBYD3_Msk
  18796. #define DBGMCU_CR_DBG_TRACECKEN_Pos (20U)
  18797. #define DBGMCU_CR_DBG_TRACECKEN_Msk (0x1U << DBGMCU_CR_DBG_TRACECKEN_Pos) /*!< 0x00100000 */
  18798. #define DBGMCU_CR_DBG_TRACECKEN DBGMCU_CR_DBG_TRACECKEN_Msk
  18799. #define DBGMCU_CR_DBG_CKD1EN_Pos (21U)
  18800. #define DBGMCU_CR_DBG_CKD1EN_Msk (0x1U << DBGMCU_CR_DBG_CKD1EN_Pos) /*!< 0x00200000 */
  18801. #define DBGMCU_CR_DBG_CKD1EN DBGMCU_CR_DBG_CKD1EN_Msk
  18802. #define DBGMCU_CR_DBG_CKD3EN_Pos (22U)
  18803. #define DBGMCU_CR_DBG_CKD3EN_Msk (0x1U << DBGMCU_CR_DBG_CKD3EN_Pos) /*!< 0x00400000 */
  18804. #define DBGMCU_CR_DBG_CKD3EN DBGMCU_CR_DBG_CKD3EN_Msk
  18805. #define DBGMCU_CR_DBG_TRGOEN_Pos (28U)
  18806. #define DBGMCU_CR_DBG_TRGOEN_Msk (0x1U << DBGMCU_CR_DBG_TRGOEN_Pos) /*!< 0x10000000 */
  18807. #define DBGMCU_CR_DBG_TRGOEN DBGMCU_CR_DBG_TRGOEN_Msk
  18808. /******************** Bit definition for APB3FZ1 register ************/
  18809. #define DBGMCU_APB3FZ1_DBG_WWDG1_Pos (6U)
  18810. #define DBGMCU_APB3FZ1_DBG_WWDG1_Msk (0x1U << DBGMCU_APB3FZ1_DBG_WWDG1_Pos) /*!< 0x00000040 */
  18811. #define DBGMCU_APB3FZ1_DBG_WWDG1 DBGMCU_APB3FZ1_DBG_WWDG1_Msk
  18812. /******************** Bit definition for APB1LFZ1 register ************/
  18813. #define DBGMCU_APB1LFZ1_DBG_TIM2_Pos (0U)
  18814. #define DBGMCU_APB1LFZ1_DBG_TIM2_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM2_Pos) /*!< 0x00000001 */
  18815. #define DBGMCU_APB1LFZ1_DBG_TIM2 DBGMCU_APB1LFZ1_DBG_TIM2_Msk
  18816. #define DBGMCU_APB1LFZ1_DBG_TIM3_Pos (1U)
  18817. #define DBGMCU_APB1LFZ1_DBG_TIM3_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM3_Pos) /*!< 0x00000002 */
  18818. #define DBGMCU_APB1LFZ1_DBG_TIM3 DBGMCU_APB1LFZ1_DBG_TIM3_Msk
  18819. #define DBGMCU_APB1LFZ1_DBG_TIM4_Pos (2U)
  18820. #define DBGMCU_APB1LFZ1_DBG_TIM4_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM4_Pos) /*!< 0x00000004 */
  18821. #define DBGMCU_APB1LFZ1_DBG_TIM4 DBGMCU_APB1LFZ1_DBG_TIM4_Msk
  18822. #define DBGMCU_APB1LFZ1_DBG_TIM5_Pos (3U)
  18823. #define DBGMCU_APB1LFZ1_DBG_TIM5_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM5_Pos) /*!< 0x00000008 */
  18824. #define DBGMCU_APB1LFZ1_DBG_TIM5 DBGMCU_APB1LFZ1_DBG_TIM5_Msk
  18825. #define DBGMCU_APB1LFZ1_DBG_TIM6_Pos (4U)
  18826. #define DBGMCU_APB1LFZ1_DBG_TIM6_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM6_Pos) /*!< 0x00000010 */
  18827. #define DBGMCU_APB1LFZ1_DBG_TIM6 DBGMCU_APB1LFZ1_DBG_TIM6_Msk
  18828. #define DBGMCU_APB1LFZ1_DBG_TIM7_Pos (5U)
  18829. #define DBGMCU_APB1LFZ1_DBG_TIM7_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM7_Pos) /*!< 0x00000020 */
  18830. #define DBGMCU_APB1LFZ1_DBG_TIM7 DBGMCU_APB1LFZ1_DBG_TIM7_Msk
  18831. #define DBGMCU_APB1LFZ1_DBG_TIM12_Pos (6U)
  18832. #define DBGMCU_APB1LFZ1_DBG_TIM12_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM12_Pos) /*!< 0x00000040 */
  18833. #define DBGMCU_APB1LFZ1_DBG_TIM12 DBGMCU_APB1LFZ1_DBG_TIM12_Msk
  18834. #define DBGMCU_APB1LFZ1_DBG_TIM13_Pos (7U)
  18835. #define DBGMCU_APB1LFZ1_DBG_TIM13_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM13_Pos) /*!< 0x00000080 */
  18836. #define DBGMCU_APB1LFZ1_DBG_TIM13 DBGMCU_APB1LFZ1_DBG_TIM13_Msk
  18837. #define DBGMCU_APB1LFZ1_DBG_TIM14_Pos (8U)
  18838. #define DBGMCU_APB1LFZ1_DBG_TIM14_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_TIM14_Pos) /*!< 0x00000100 */
  18839. #define DBGMCU_APB1LFZ1_DBG_TIM14 DBGMCU_APB1LFZ1_DBG_TIM14_Msk
  18840. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos (9U)
  18841. #define DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_LPTIM1_Pos) /*!< 0x00000200 */
  18842. #define DBGMCU_APB1LFZ1_DBG_LPTIM1 DBGMCU_APB1LFZ1_DBG_LPTIM1_Msk
  18843. #define DBGMCU_APB1LFZ1_DBG_I2C1_Pos (21U)
  18844. #define DBGMCU_APB1LFZ1_DBG_I2C1_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C1_Pos) /*!< 0x00200000 */
  18845. #define DBGMCU_APB1LFZ1_DBG_I2C1 DBGMCU_APB1LFZ1_DBG_I2C1_Msk
  18846. #define DBGMCU_APB1LFZ1_DBG_I2C2_Pos (22U)
  18847. #define DBGMCU_APB1LFZ1_DBG_I2C2_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C2_Pos) /*!< 0x00400000 */
  18848. #define DBGMCU_APB1LFZ1_DBG_I2C2 DBGMCU_APB1LFZ1_DBG_I2C2_Msk
  18849. #define DBGMCU_APB1LFZ1_DBG_I2C3_Pos (23U)
  18850. #define DBGMCU_APB1LFZ1_DBG_I2C3_Msk (0x1U << DBGMCU_APB1LFZ1_DBG_I2C3_Pos) /*!< 0x00800000 */
  18851. #define DBGMCU_APB1LFZ1_DBG_I2C3 DBGMCU_APB1LFZ1_DBG_I2C3_Msk
  18852. /******************** Bit definition for APB1HFZ1 register ************/
  18853. #define DBGMCU_APB1HFZ1_DBG_FDCAN_Pos (8U)
  18854. #define DBGMCU_APB1HFZ1_DBG_FDCAN_Msk (0x1U << DBGMCU_APB1HFZ1_DBG_FDCAN_Pos) /*!< 0x00000100 */
  18855. #define DBGMCU_APB1HFZ1_DBG_FDCAN DBGMCU_APB1HFZ1_DBG_FDCAN_Msk
  18856. /******************** Bit definition for APB2FZ1 register ************/
  18857. #define DBGMCU_APB2FZ1_DBG_TIM1_Pos (0U)
  18858. #define DBGMCU_APB2FZ1_DBG_TIM1_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM1_Pos) /*!< 0x00000001 */
  18859. #define DBGMCU_APB2FZ1_DBG_TIM1 DBGMCU_APB2FZ1_DBG_TIM1_Msk
  18860. #define DBGMCU_APB2FZ1_DBG_TIM8_Pos (1U)
  18861. #define DBGMCU_APB2FZ1_DBG_TIM8_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM8_Pos) /*!< 0x00000002 */
  18862. #define DBGMCU_APB2FZ1_DBG_TIM8 DBGMCU_APB2FZ1_DBG_TIM8_Msk
  18863. #define DBGMCU_APB2FZ1_DBG_TIM15_Pos (16U)
  18864. #define DBGMCU_APB2FZ1_DBG_TIM15_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM15_Pos) /*!< 0x00010000 */
  18865. #define DBGMCU_APB2FZ1_DBG_TIM15 DBGMCU_APB2FZ1_DBG_TIM15_Msk
  18866. #define DBGMCU_APB2FZ1_DBG_TIM16_Pos (17U)
  18867. #define DBGMCU_APB2FZ1_DBG_TIM16_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM16_Pos) /*!< 0x00020000 */
  18868. #define DBGMCU_APB2FZ1_DBG_TIM16 DBGMCU_APB2FZ1_DBG_TIM16_Msk
  18869. #define DBGMCU_APB2FZ1_DBG_TIM17_Pos (18U)
  18870. #define DBGMCU_APB2FZ1_DBG_TIM17_Msk (0x1U << DBGMCU_APB2FZ1_DBG_TIM17_Pos) /*!< 0x00040000 */
  18871. #define DBGMCU_APB2FZ1_DBG_TIM17 DBGMCU_APB2FZ1_DBG_TIM17_Msk
  18872. #define DBGMCU_APB2FZ1_DBG_HRTIM_Pos (29U)
  18873. #define DBGMCU_APB2FZ1_DBG_HRTIM_Msk (0x1U << DBGMCU_APB2FZ1_DBG_HRTIM_Pos) /*!< 0x20000000 */
  18874. #define DBGMCU_APB2FZ1_DBG_HRTIM DBGMCU_APB2FZ1_DBG_HRTIM_Msk
  18875. /******************** Bit definition for APB4FZ1 register ************/
  18876. #define DBGMCU_APB4FZ1_DBG_I2C4_Pos (7U)
  18877. #define DBGMCU_APB4FZ1_DBG_I2C4_Msk (0x1U << DBGMCU_APB4FZ1_DBG_I2C4_Pos) /*!< 0x00000080 */
  18878. #define DBGMCU_APB4FZ1_DBG_I2C4 DBGMCU_APB4FZ1_DBG_I2C4_Msk
  18879. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Pos (9U)
  18880. #define DBGMCU_APB4FZ1_DBG_LPTIM2_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM2_Pos) /*!< 0x00000200 */
  18881. #define DBGMCU_APB4FZ1_DBG_LPTIM2 DBGMCU_APB4FZ1_DBG_LPTIM2_Msk
  18882. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Pos (10U)
  18883. #define DBGMCU_APB4FZ1_DBG_LPTIM3_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM3_Pos) /*!< 0x00000400 */
  18884. #define DBGMCU_APB4FZ1_DBG_LPTIM3 DBGMCU_APB4FZ1_DBG_LPTIM3_Msk
  18885. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Pos (11U)
  18886. #define DBGMCU_APB4FZ1_DBG_LPTIM4_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM4_Pos) /*!< 0x00000800 */
  18887. #define DBGMCU_APB4FZ1_DBG_LPTIM4 DBGMCU_APB4FZ1_DBG_LPTIM4_Msk
  18888. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Pos (12U)
  18889. #define DBGMCU_APB4FZ1_DBG_LPTIM5_Msk (0x1U << DBGMCU_APB4FZ1_DBG_LPTIM5_Pos) /*!< 0x00001000 */
  18890. #define DBGMCU_APB4FZ1_DBG_LPTIM5 DBGMCU_APB4FZ1_DBG_LPTIM5_Msk
  18891. #define DBGMCU_APB4FZ1_DBG_RTC_Pos (16U)
  18892. #define DBGMCU_APB4FZ1_DBG_RTC_Msk (0x1U << DBGMCU_APB4FZ1_DBG_RTC_Pos) /*!< 0x00010000 */
  18893. #define DBGMCU_APB4FZ1_DBG_RTC DBGMCU_APB4FZ1_DBG_RTC_Msk
  18894. #define DBGMCU_APB4FZ1_DBG_IWDG1_Pos (18U)
  18895. #define DBGMCU_APB4FZ1_DBG_IWDG1_Msk (0x1U << DBGMCU_APB4FZ1_DBG_IWDG1_Pos) /*!< 0x00040000 */
  18896. #define DBGMCU_APB4FZ1_DBG_IWDG1 DBGMCU_APB4FZ1_DBG_IWDG1_Msk
  18897. /******************************************************************************/
  18898. /* */
  18899. /* High Resolution Timer (HRTIM) */
  18900. /* */
  18901. /******************************************************************************/
  18902. /******************** Master Timer control register ***************************/
  18903. #define HRTIM_MCR_CK_PSC_Pos (0U)
  18904. #define HRTIM_MCR_CK_PSC_Msk (0x7U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000007 */
  18905. #define HRTIM_MCR_CK_PSC HRTIM_MCR_CK_PSC_Msk /*!< Prescaler mask */
  18906. #define HRTIM_MCR_CK_PSC_0 (0x1U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000001 */
  18907. #define HRTIM_MCR_CK_PSC_1 (0x2U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000002 */
  18908. #define HRTIM_MCR_CK_PSC_2 (0x4U << HRTIM_MCR_CK_PSC_Pos) /*!< 0x00000004 */
  18909. #define HRTIM_MCR_CONT_Pos (3U)
  18910. #define HRTIM_MCR_CONT_Msk (0x1U << HRTIM_MCR_CONT_Pos) /*!< 0x00000008 */
  18911. #define HRTIM_MCR_CONT HRTIM_MCR_CONT_Msk /*!< Continuous mode */
  18912. #define HRTIM_MCR_RETRIG_Pos (4U)
  18913. #define HRTIM_MCR_RETRIG_Msk (0x1U << HRTIM_MCR_RETRIG_Pos) /*!< 0x00000010 */
  18914. #define HRTIM_MCR_RETRIG HRTIM_MCR_RETRIG_Msk /*!< Rettrigreable mode */
  18915. #define HRTIM_MCR_HALF_Pos (5U)
  18916. #define HRTIM_MCR_HALF_Msk (0x1U << HRTIM_MCR_HALF_Pos) /*!< 0x00000020 */
  18917. #define HRTIM_MCR_HALF HRTIM_MCR_HALF_Msk /*!< Half mode */
  18918. #define HRTIM_MCR_SYNC_IN_Pos (8U)
  18919. #define HRTIM_MCR_SYNC_IN_Msk (0x3U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000300 */
  18920. #define HRTIM_MCR_SYNC_IN HRTIM_MCR_SYNC_IN_Msk /*!< Synchronization input master */
  18921. #define HRTIM_MCR_SYNC_IN_0 (0x1U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000100 */
  18922. #define HRTIM_MCR_SYNC_IN_1 (0x2U << HRTIM_MCR_SYNC_IN_Pos) /*!< 0x00000200 */
  18923. #define HRTIM_MCR_SYNCRSTM_Pos (10U)
  18924. #define HRTIM_MCR_SYNCRSTM_Msk (0x1U << HRTIM_MCR_SYNCRSTM_Pos) /*!< 0x00000400 */
  18925. #define HRTIM_MCR_SYNCRSTM HRTIM_MCR_SYNCRSTM_Msk /*!< Synchronization reset master */
  18926. #define HRTIM_MCR_SYNCSTRTM_Pos (11U)
  18927. #define HRTIM_MCR_SYNCSTRTM_Msk (0x1U << HRTIM_MCR_SYNCSTRTM_Pos) /*!< 0x00000800 */
  18928. #define HRTIM_MCR_SYNCSTRTM HRTIM_MCR_SYNCSTRTM_Msk /*!< Synchronization start master */
  18929. #define HRTIM_MCR_SYNC_OUT_Pos (12U)
  18930. #define HRTIM_MCR_SYNC_OUT_Msk (0x3U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00003000 */
  18931. #define HRTIM_MCR_SYNC_OUT HRTIM_MCR_SYNC_OUT_Msk /*!< Synchronization output master */
  18932. #define HRTIM_MCR_SYNC_OUT_0 (0x1U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00001000 */
  18933. #define HRTIM_MCR_SYNC_OUT_1 (0x2U << HRTIM_MCR_SYNC_OUT_Pos) /*!< 0x00002000 */
  18934. #define HRTIM_MCR_SYNC_SRC_Pos (14U)
  18935. #define HRTIM_MCR_SYNC_SRC_Msk (0x3U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x0000C000 */
  18936. #define HRTIM_MCR_SYNC_SRC HRTIM_MCR_SYNC_SRC_Msk /*!< Synchronization source */
  18937. #define HRTIM_MCR_SYNC_SRC_0 (0x1U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x00004000 */
  18938. #define HRTIM_MCR_SYNC_SRC_1 (0x2U << HRTIM_MCR_SYNC_SRC_Pos) /*!< 0x00008000 */
  18939. #define HRTIM_MCR_MCEN_Pos (16U)
  18940. #define HRTIM_MCR_MCEN_Msk (0x1U << HRTIM_MCR_MCEN_Pos) /*!< 0x00010000 */
  18941. #define HRTIM_MCR_MCEN HRTIM_MCR_MCEN_Msk /*!< Master counter enable */
  18942. #define HRTIM_MCR_TACEN_Pos (17U)
  18943. #define HRTIM_MCR_TACEN_Msk (0x1U << HRTIM_MCR_TACEN_Pos) /*!< 0x00020000 */
  18944. #define HRTIM_MCR_TACEN HRTIM_MCR_TACEN_Msk /*!< Timer A counter enable */
  18945. #define HRTIM_MCR_TBCEN_Pos (18U)
  18946. #define HRTIM_MCR_TBCEN_Msk (0x1U << HRTIM_MCR_TBCEN_Pos) /*!< 0x00040000 */
  18947. #define HRTIM_MCR_TBCEN HRTIM_MCR_TBCEN_Msk /*!< Timer B counter enable */
  18948. #define HRTIM_MCR_TCCEN_Pos (19U)
  18949. #define HRTIM_MCR_TCCEN_Msk (0x1U << HRTIM_MCR_TCCEN_Pos) /*!< 0x00080000 */
  18950. #define HRTIM_MCR_TCCEN HRTIM_MCR_TCCEN_Msk /*!< Timer C counter enable */
  18951. #define HRTIM_MCR_TDCEN_Pos (20U)
  18952. #define HRTIM_MCR_TDCEN_Msk (0x1U << HRTIM_MCR_TDCEN_Pos) /*!< 0x00100000 */
  18953. #define HRTIM_MCR_TDCEN HRTIM_MCR_TDCEN_Msk /*!< Timer D counter enable */
  18954. #define HRTIM_MCR_TECEN_Pos (21U)
  18955. #define HRTIM_MCR_TECEN_Msk (0x1U << HRTIM_MCR_TECEN_Pos) /*!< 0x00200000 */
  18956. #define HRTIM_MCR_TECEN HRTIM_MCR_TECEN_Msk /*!< Timer E counter enable */
  18957. #define HRTIM_MCR_DACSYNC_Pos (25U)
  18958. #define HRTIM_MCR_DACSYNC_Msk (0x3U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x06000000 */
  18959. #define HRTIM_MCR_DACSYNC HRTIM_MCR_DACSYNC_Msk /*!< DAC sychronization mask */
  18960. #define HRTIM_MCR_DACSYNC_0 (0x1U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x02000000 */
  18961. #define HRTIM_MCR_DACSYNC_1 (0x2U << HRTIM_MCR_DACSYNC_Pos) /*!< 0x04000000 */
  18962. #define HRTIM_MCR_PREEN_Pos (27U)
  18963. #define HRTIM_MCR_PREEN_Msk (0x1U << HRTIM_MCR_PREEN_Pos) /*!< 0x08000000 */
  18964. #define HRTIM_MCR_PREEN HRTIM_MCR_PREEN_Msk /*!< Master preload enable */
  18965. #define HRTIM_MCR_MREPU_Pos (29U)
  18966. #define HRTIM_MCR_MREPU_Msk (0x1U << HRTIM_MCR_MREPU_Pos) /*!< 0x20000000 */
  18967. #define HRTIM_MCR_MREPU HRTIM_MCR_MREPU_Msk /*!< Master repetition update */
  18968. #define HRTIM_MCR_BRSTDMA_Pos (30U)
  18969. #define HRTIM_MCR_BRSTDMA_Msk (0x3U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0xC0000000 */
  18970. #define HRTIM_MCR_BRSTDMA HRTIM_MCR_BRSTDMA_Msk /*!< Burst DMA update */
  18971. #define HRTIM_MCR_BRSTDMA_0 (0x1U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0x40000000 */
  18972. #define HRTIM_MCR_BRSTDMA_1 (0x2U << HRTIM_MCR_BRSTDMA_Pos) /*!< 0x80000000 */
  18973. /******************** Master Timer Interrupt status register ******************/
  18974. #define HRTIM_MISR_MCMP1_Pos (0U)
  18975. #define HRTIM_MISR_MCMP1_Msk (0x1U << HRTIM_MISR_MCMP1_Pos) /*!< 0x00000001 */
  18976. #define HRTIM_MISR_MCMP1 HRTIM_MISR_MCMP1_Msk /*!< Master compare 1 interrupt flag */
  18977. #define HRTIM_MISR_MCMP2_Pos (1U)
  18978. #define HRTIM_MISR_MCMP2_Msk (0x1U << HRTIM_MISR_MCMP2_Pos) /*!< 0x00000002 */
  18979. #define HRTIM_MISR_MCMP2 HRTIM_MISR_MCMP2_Msk /*!< Master compare 2 interrupt flag */
  18980. #define HRTIM_MISR_MCMP3_Pos (2U)
  18981. #define HRTIM_MISR_MCMP3_Msk (0x1U << HRTIM_MISR_MCMP3_Pos) /*!< 0x00000004 */
  18982. #define HRTIM_MISR_MCMP3 HRTIM_MISR_MCMP3_Msk /*!< Master compare 3 interrupt flag */
  18983. #define HRTIM_MISR_MCMP4_Pos (3U)
  18984. #define HRTIM_MISR_MCMP4_Msk (0x1U << HRTIM_MISR_MCMP4_Pos) /*!< 0x00000008 */
  18985. #define HRTIM_MISR_MCMP4 HRTIM_MISR_MCMP4_Msk /*!< Master compare 4 interrupt flag */
  18986. #define HRTIM_MISR_MREP_Pos (4U)
  18987. #define HRTIM_MISR_MREP_Msk (0x1U << HRTIM_MISR_MREP_Pos) /*!< 0x00000010 */
  18988. #define HRTIM_MISR_MREP HRTIM_MISR_MREP_Msk /*!< Master Repetition interrupt flag */
  18989. #define HRTIM_MISR_SYNC_Pos (5U)
  18990. #define HRTIM_MISR_SYNC_Msk (0x1U << HRTIM_MISR_SYNC_Pos) /*!< 0x00000020 */
  18991. #define HRTIM_MISR_SYNC HRTIM_MISR_SYNC_Msk /*!< Synchronization input interrupt flag */
  18992. #define HRTIM_MISR_MUPD_Pos (6U)
  18993. #define HRTIM_MISR_MUPD_Msk (0x1U << HRTIM_MISR_MUPD_Pos) /*!< 0x00000040 */
  18994. #define HRTIM_MISR_MUPD HRTIM_MISR_MUPD_Msk /*!< Master update interrupt flag */
  18995. /******************** Master Timer Interrupt clear register *******************/
  18996. #define HRTIM_MICR_MCMP1_Pos (0U)
  18997. #define HRTIM_MICR_MCMP1_Msk (0x1U << HRTIM_MICR_MCMP1_Pos) /*!< 0x00000001 */
  18998. #define HRTIM_MICR_MCMP1 HRTIM_MICR_MCMP1_Msk /*!< Master compare 1 interrupt flag clear */
  18999. #define HRTIM_MICR_MCMP2_Pos (1U)
  19000. #define HRTIM_MICR_MCMP2_Msk (0x1U << HRTIM_MICR_MCMP2_Pos) /*!< 0x00000002 */
  19001. #define HRTIM_MICR_MCMP2 HRTIM_MICR_MCMP2_Msk /*!< Master compare 2 interrupt flag clear */
  19002. #define HRTIM_MICR_MCMP3_Pos (2U)
  19003. #define HRTIM_MICR_MCMP3_Msk (0x1U << HRTIM_MICR_MCMP3_Pos) /*!< 0x00000004 */
  19004. #define HRTIM_MICR_MCMP3 HRTIM_MICR_MCMP3_Msk /*!< Master compare 3 interrupt flag clear */
  19005. #define HRTIM_MICR_MCMP4_Pos (3U)
  19006. #define HRTIM_MICR_MCMP4_Msk (0x1U << HRTIM_MICR_MCMP4_Pos) /*!< 0x00000008 */
  19007. #define HRTIM_MICR_MCMP4 HRTIM_MICR_MCMP4_Msk /*!< Master compare 4 interrupt flag clear */
  19008. #define HRTIM_MICR_MREP_Pos (4U)
  19009. #define HRTIM_MICR_MREP_Msk (0x1U << HRTIM_MICR_MREP_Pos) /*!< 0x00000010 */
  19010. #define HRTIM_MICR_MREP HRTIM_MICR_MREP_Msk /*!< Master Repetition interrupt flag clear */
  19011. #define HRTIM_MICR_SYNC_Pos (5U)
  19012. #define HRTIM_MICR_SYNC_Msk (0x1U << HRTIM_MICR_SYNC_Pos) /*!< 0x00000020 */
  19013. #define HRTIM_MICR_SYNC HRTIM_MICR_SYNC_Msk /*!< Synchronization input interrupt flag clear */
  19014. #define HRTIM_MICR_MUPD_Pos (6U)
  19015. #define HRTIM_MICR_MUPD_Msk (0x1U << HRTIM_MICR_MUPD_Pos) /*!< 0x00000040 */
  19016. #define HRTIM_MICR_MUPD HRTIM_MICR_MUPD_Msk /*!< Master update interrupt flag clear */
  19017. /******************** Master Timer DMA/Interrupt enable register **************/
  19018. #define HRTIM_MDIER_MCMP1IE_Pos (0U)
  19019. #define HRTIM_MDIER_MCMP1IE_Msk (0x1U << HRTIM_MDIER_MCMP1IE_Pos) /*!< 0x00000001 */
  19020. #define HRTIM_MDIER_MCMP1IE HRTIM_MDIER_MCMP1IE_Msk /*!< Master compare 1 interrupt enable */
  19021. #define HRTIM_MDIER_MCMP2IE_Pos (1U)
  19022. #define HRTIM_MDIER_MCMP2IE_Msk (0x1U << HRTIM_MDIER_MCMP2IE_Pos) /*!< 0x00000002 */
  19023. #define HRTIM_MDIER_MCMP2IE HRTIM_MDIER_MCMP2IE_Msk /*!< Master compare 2 interrupt enable */
  19024. #define HRTIM_MDIER_MCMP3IE_Pos (2U)
  19025. #define HRTIM_MDIER_MCMP3IE_Msk (0x1U << HRTIM_MDIER_MCMP3IE_Pos) /*!< 0x00000004 */
  19026. #define HRTIM_MDIER_MCMP3IE HRTIM_MDIER_MCMP3IE_Msk /*!< Master compare 3 interrupt enable */
  19027. #define HRTIM_MDIER_MCMP4IE_Pos (3U)
  19028. #define HRTIM_MDIER_MCMP4IE_Msk (0x1U << HRTIM_MDIER_MCMP4IE_Pos) /*!< 0x00000008 */
  19029. #define HRTIM_MDIER_MCMP4IE HRTIM_MDIER_MCMP4IE_Msk /*!< Master compare 4 interrupt enable */
  19030. #define HRTIM_MDIER_MREPIE_Pos (4U)
  19031. #define HRTIM_MDIER_MREPIE_Msk (0x1U << HRTIM_MDIER_MREPIE_Pos) /*!< 0x00000010 */
  19032. #define HRTIM_MDIER_MREPIE HRTIM_MDIER_MREPIE_Msk /*!< Master Repetition interrupt enable */
  19033. #define HRTIM_MDIER_SYNCIE_Pos (5U)
  19034. #define HRTIM_MDIER_SYNCIE_Msk (0x1U << HRTIM_MDIER_SYNCIE_Pos) /*!< 0x00000020 */
  19035. #define HRTIM_MDIER_SYNCIE HRTIM_MDIER_SYNCIE_Msk /*!< Synchronization input interrupt enable */
  19036. #define HRTIM_MDIER_MUPDIE_Pos (6U)
  19037. #define HRTIM_MDIER_MUPDIE_Msk (0x1U << HRTIM_MDIER_MUPDIE_Pos) /*!< 0x00000040 */
  19038. #define HRTIM_MDIER_MUPDIE HRTIM_MDIER_MUPDIE_Msk /*!< Master update interrupt enable */
  19039. #define HRTIM_MDIER_MCMP1DE_Pos (16U)
  19040. #define HRTIM_MDIER_MCMP1DE_Msk (0x1U << HRTIM_MDIER_MCMP1DE_Pos) /*!< 0x00010000 */
  19041. #define HRTIM_MDIER_MCMP1DE HRTIM_MDIER_MCMP1DE_Msk /*!< Master compare 1 DMA enable */
  19042. #define HRTIM_MDIER_MCMP2DE_Pos (17U)
  19043. #define HRTIM_MDIER_MCMP2DE_Msk (0x1U << HRTIM_MDIER_MCMP2DE_Pos) /*!< 0x00020000 */
  19044. #define HRTIM_MDIER_MCMP2DE HRTIM_MDIER_MCMP2DE_Msk /*!< Master compare 2 DMA enable */
  19045. #define HRTIM_MDIER_MCMP3DE_Pos (18U)
  19046. #define HRTIM_MDIER_MCMP3DE_Msk (0x1U << HRTIM_MDIER_MCMP3DE_Pos) /*!< 0x00040000 */
  19047. #define HRTIM_MDIER_MCMP3DE HRTIM_MDIER_MCMP3DE_Msk /*!< Master compare 3 DMA enable */
  19048. #define HRTIM_MDIER_MCMP4DE_Pos (19U)
  19049. #define HRTIM_MDIER_MCMP4DE_Msk (0x1U << HRTIM_MDIER_MCMP4DE_Pos) /*!< 0x00080000 */
  19050. #define HRTIM_MDIER_MCMP4DE HRTIM_MDIER_MCMP4DE_Msk /*!< Master compare 4 DMA enable */
  19051. #define HRTIM_MDIER_MREPDE_Pos (20U)
  19052. #define HRTIM_MDIER_MREPDE_Msk (0x1U << HRTIM_MDIER_MREPDE_Pos) /*!< 0x00100000 */
  19053. #define HRTIM_MDIER_MREPDE HRTIM_MDIER_MREPDE_Msk /*!< Master Repetition DMA enable */
  19054. #define HRTIM_MDIER_SYNCDE_Pos (21U)
  19055. #define HRTIM_MDIER_SYNCDE_Msk (0x1U << HRTIM_MDIER_SYNCDE_Pos) /*!< 0x00200000 */
  19056. #define HRTIM_MDIER_SYNCDE HRTIM_MDIER_SYNCDE_Msk /*!< Synchronization input DMA enable */
  19057. #define HRTIM_MDIER_MUPDDE_Pos (22U)
  19058. #define HRTIM_MDIER_MUPDDE_Msk (0x1U << HRTIM_MDIER_MUPDDE_Pos) /*!< 0x00400000 */
  19059. #define HRTIM_MDIER_MUPDDE HRTIM_MDIER_MUPDDE_Msk /*!< Master update DMA enable */
  19060. /******************* Bit definition for HRTIM_MCNTR register ****************/
  19061. #define HRTIM_MCNTR_MCNTR_Pos (0U)
  19062. #define HRTIM_MCNTR_MCNTR_Msk (0xFFFFU << HRTIM_MCNTR_MCNTR_Pos) /*!< 0x0000FFFF */
  19063. #define HRTIM_MCNTR_MCNTR HRTIM_MCNTR_MCNTR_Msk /*!<Counter Value */
  19064. /******************* Bit definition for HRTIM_MPER register *****************/
  19065. #define HRTIM_MPER_MPER_Pos (0U)
  19066. #define HRTIM_MPER_MPER_Msk (0xFFFFU << HRTIM_MPER_MPER_Pos) /*!< 0x0000FFFF */
  19067. #define HRTIM_MPER_MPER HRTIM_MPER_MPER_Msk /*!< Period Value */
  19068. /******************* Bit definition for HRTIM_MREP register *****************/
  19069. #define HRTIM_MREP_MREP_Pos (0U)
  19070. #define HRTIM_MREP_MREP_Msk (0xFFU << HRTIM_MREP_MREP_Pos) /*!< 0x000000FF */
  19071. #define HRTIM_MREP_MREP HRTIM_MREP_MREP_Msk /*!<Repetition Value */
  19072. /******************* Bit definition for HRTIM_MCMP1R register *****************/
  19073. #define HRTIM_MCMP1R_MCMP1R_Pos (0U)
  19074. #define HRTIM_MCMP1R_MCMP1R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP1R_Pos) /*!< 0x0000FFFF */
  19075. #define HRTIM_MCMP1R_MCMP1R HRTIM_MCMP1R_MCMP1R_Msk /*!<Compare Value */
  19076. /******************* Bit definition for HRTIM_MCMP2R register *****************/
  19077. #define HRTIM_MCMP1R_MCMP2R_Pos (0U)
  19078. #define HRTIM_MCMP1R_MCMP2R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP2R_Pos) /*!< 0x0000FFFF */
  19079. #define HRTIM_MCMP1R_MCMP2R HRTIM_MCMP1R_MCMP2R_Msk /*!<Compare Value */
  19080. /******************* Bit definition for HRTIM_MCMP3R register *****************/
  19081. #define HRTIM_MCMP1R_MCMP3R_Pos (0U)
  19082. #define HRTIM_MCMP1R_MCMP3R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP3R_Pos) /*!< 0x0000FFFF */
  19083. #define HRTIM_MCMP1R_MCMP3R HRTIM_MCMP1R_MCMP3R_Msk /*!<Compare Value */
  19084. /******************* Bit definition for HRTIM_MCMP4R register *****************/
  19085. #define HRTIM_MCMP1R_MCMP4R_Pos (0U)
  19086. #define HRTIM_MCMP1R_MCMP4R_Msk (0xFFFFU << HRTIM_MCMP1R_MCMP4R_Pos) /*!< 0x0000FFFF */
  19087. #define HRTIM_MCMP1R_MCMP4R HRTIM_MCMP1R_MCMP4R_Msk /*!<Compare Value */
  19088. /******************** Slave control register **********************************/
  19089. #define HRTIM_TIMCR_CK_PSC_Pos (0U)
  19090. #define HRTIM_TIMCR_CK_PSC_Msk (0x7U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000007 */
  19091. #define HRTIM_TIMCR_CK_PSC HRTIM_TIMCR_CK_PSC_Msk /*!< Slave prescaler mask*/
  19092. #define HRTIM_TIMCR_CK_PSC_0 (0x1U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000001 */
  19093. #define HRTIM_TIMCR_CK_PSC_1 (0x2U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000002 */
  19094. #define HRTIM_TIMCR_CK_PSC_2 (0x4U << HRTIM_TIMCR_CK_PSC_Pos) /*!< 0x00000004 */
  19095. #define HRTIM_TIMCR_CONT_Pos (3U)
  19096. #define HRTIM_TIMCR_CONT_Msk (0x1U << HRTIM_TIMCR_CONT_Pos) /*!< 0x00000008 */
  19097. #define HRTIM_TIMCR_CONT HRTIM_TIMCR_CONT_Msk /*!< Slave continuous mode */
  19098. #define HRTIM_TIMCR_RETRIG_Pos (4U)
  19099. #define HRTIM_TIMCR_RETRIG_Msk (0x1U << HRTIM_TIMCR_RETRIG_Pos) /*!< 0x00000010 */
  19100. #define HRTIM_TIMCR_RETRIG HRTIM_TIMCR_RETRIG_Msk /*!< Slave Retrigreable mode */
  19101. #define HRTIM_TIMCR_HALF_Pos (5U)
  19102. #define HRTIM_TIMCR_HALF_Msk (0x1U << HRTIM_TIMCR_HALF_Pos) /*!< 0x00000020 */
  19103. #define HRTIM_TIMCR_HALF HRTIM_TIMCR_HALF_Msk /*!< Slave Half mode */
  19104. #define HRTIM_TIMCR_PSHPLL_Pos (6U)
  19105. #define HRTIM_TIMCR_PSHPLL_Msk (0x1U << HRTIM_TIMCR_PSHPLL_Pos) /*!< 0x00000040 */
  19106. #define HRTIM_TIMCR_PSHPLL HRTIM_TIMCR_PSHPLL_Msk /*!< Slave push-pull mode */
  19107. #define HRTIM_TIMCR_SYNCRST_Pos (10U)
  19108. #define HRTIM_TIMCR_SYNCRST_Msk (0x1U << HRTIM_TIMCR_SYNCRST_Pos) /*!< 0x00000400 */
  19109. #define HRTIM_TIMCR_SYNCRST HRTIM_TIMCR_SYNCRST_Msk /*!< Slave synchronization resets */
  19110. #define HRTIM_TIMCR_SYNCSTRT_Pos (11U)
  19111. #define HRTIM_TIMCR_SYNCSTRT_Msk (0x1U << HRTIM_TIMCR_SYNCSTRT_Pos) /*!< 0x00000800 */
  19112. #define HRTIM_TIMCR_SYNCSTRT HRTIM_TIMCR_SYNCSTRT_Msk /*!< Slave synchronization starts */
  19113. #define HRTIM_TIMCR_DELCMP2_Pos (12U)
  19114. #define HRTIM_TIMCR_DELCMP2_Msk (0x3U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00003000 */
  19115. #define HRTIM_TIMCR_DELCMP2 HRTIM_TIMCR_DELCMP2_Msk /*!< Slave delayed compartor 2 mode mask */
  19116. #define HRTIM_TIMCR_DELCMP2_0 (0x1U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00001000 */
  19117. #define HRTIM_TIMCR_DELCMP2_1 (0x2U << HRTIM_TIMCR_DELCMP2_Pos) /*!< 0x00002000 */
  19118. #define HRTIM_TIMCR_DELCMP4_Pos (14U)
  19119. #define HRTIM_TIMCR_DELCMP4_Msk (0x3U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x0000C000 */
  19120. #define HRTIM_TIMCR_DELCMP4 HRTIM_TIMCR_DELCMP4_Msk /*!< Slave delayed compartor 4 mode mask */
  19121. #define HRTIM_TIMCR_DELCMP4_0 (0x1U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x00004000 */
  19122. #define HRTIM_TIMCR_DELCMP4_1 (0x2U << HRTIM_TIMCR_DELCMP4_Pos) /*!< 0x00008000 */
  19123. #define HRTIM_TIMCR_TREPU_Pos (17U)
  19124. #define HRTIM_TIMCR_TREPU_Msk (0x1U << HRTIM_TIMCR_TREPU_Pos) /*!< 0x00020000 */
  19125. #define HRTIM_TIMCR_TREPU HRTIM_TIMCR_TREPU_Msk /*!< Slave repetition update */
  19126. #define HRTIM_TIMCR_TRSTU_Pos (18U)
  19127. #define HRTIM_TIMCR_TRSTU_Msk (0x1U << HRTIM_TIMCR_TRSTU_Pos) /*!< 0x00040000 */
  19128. #define HRTIM_TIMCR_TRSTU HRTIM_TIMCR_TRSTU_Msk /*!< Slave reset update */
  19129. #define HRTIM_TIMCR_TAU_Pos (19U)
  19130. #define HRTIM_TIMCR_TAU_Msk (0x1U << HRTIM_TIMCR_TAU_Pos) /*!< 0x00080000 */
  19131. #define HRTIM_TIMCR_TAU HRTIM_TIMCR_TAU_Msk /*!< Slave Timer A update reserved for TIM A */
  19132. #define HRTIM_TIMCR_TBU_Pos (20U)
  19133. #define HRTIM_TIMCR_TBU_Msk (0x1U << HRTIM_TIMCR_TBU_Pos) /*!< 0x00100000 */
  19134. #define HRTIM_TIMCR_TBU HRTIM_TIMCR_TBU_Msk /*!< Slave Timer B update reserved for TIM B */
  19135. #define HRTIM_TIMCR_TCU_Pos (21U)
  19136. #define HRTIM_TIMCR_TCU_Msk (0x1U << HRTIM_TIMCR_TCU_Pos) /*!< 0x00200000 */
  19137. #define HRTIM_TIMCR_TCU HRTIM_TIMCR_TCU_Msk /*!< Slave Timer C update reserved for TIM C */
  19138. #define HRTIM_TIMCR_TDU_Pos (22U)
  19139. #define HRTIM_TIMCR_TDU_Msk (0x1U << HRTIM_TIMCR_TDU_Pos) /*!< 0x00400000 */
  19140. #define HRTIM_TIMCR_TDU HRTIM_TIMCR_TDU_Msk /*!< Slave Timer D update reserved for TIM D */
  19141. #define HRTIM_TIMCR_TEU_Pos (23U)
  19142. #define HRTIM_TIMCR_TEU_Msk (0x1U << HRTIM_TIMCR_TEU_Pos) /*!< 0x00800000 */
  19143. #define HRTIM_TIMCR_TEU HRTIM_TIMCR_TEU_Msk /*!< Slave Timer E update reserved for TIM E */
  19144. #define HRTIM_TIMCR_MSTU_Pos (24U)
  19145. #define HRTIM_TIMCR_MSTU_Msk (0x1U << HRTIM_TIMCR_MSTU_Pos) /*!< 0x01000000 */
  19146. #define HRTIM_TIMCR_MSTU HRTIM_TIMCR_MSTU_Msk /*!< Master Update */
  19147. #define HRTIM_TIMCR_DACSYNC_Pos (25U)
  19148. #define HRTIM_TIMCR_DACSYNC_Msk (0x3U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x06000000 */
  19149. #define HRTIM_TIMCR_DACSYNC HRTIM_TIMCR_DACSYNC_Msk /*!< DAC sychronization mask */
  19150. #define HRTIM_TIMCR_DACSYNC_0 (0x1U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x02000000 */
  19151. #define HRTIM_TIMCR_DACSYNC_1 (0x2U << HRTIM_TIMCR_DACSYNC_Pos) /*!< 0x04000000 */
  19152. #define HRTIM_TIMCR_PREEN_Pos (27U)
  19153. #define HRTIM_TIMCR_PREEN_Msk (0x1U << HRTIM_TIMCR_PREEN_Pos) /*!< 0x08000000 */
  19154. #define HRTIM_TIMCR_PREEN HRTIM_TIMCR_PREEN_Msk /*!< Slave preload enable */
  19155. #define HRTIM_TIMCR_UPDGAT_Pos (28U)
  19156. #define HRTIM_TIMCR_UPDGAT_Msk (0xFU << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0xF0000000 */
  19157. #define HRTIM_TIMCR_UPDGAT HRTIM_TIMCR_UPDGAT_Msk /*!< Slave update gating mask */
  19158. #define HRTIM_TIMCR_UPDGAT_0 (0x1U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x10000000 */
  19159. #define HRTIM_TIMCR_UPDGAT_1 (0x2U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x20000000 */
  19160. #define HRTIM_TIMCR_UPDGAT_2 (0x4U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x40000000 */
  19161. #define HRTIM_TIMCR_UPDGAT_3 (0x8U << HRTIM_TIMCR_UPDGAT_Pos) /*!< 0x80000000 */
  19162. /******************** Slave Interrupt status register **************************/
  19163. #define HRTIM_TIMISR_CMP1_Pos (0U)
  19164. #define HRTIM_TIMISR_CMP1_Msk (0x1U << HRTIM_TIMISR_CMP1_Pos) /*!< 0x00000001 */
  19165. #define HRTIM_TIMISR_CMP1 HRTIM_TIMISR_CMP1_Msk /*!< Slave compare 1 interrupt flag */
  19166. #define HRTIM_TIMISR_CMP2_Pos (1U)
  19167. #define HRTIM_TIMISR_CMP2_Msk (0x1U << HRTIM_TIMISR_CMP2_Pos) /*!< 0x00000002 */
  19168. #define HRTIM_TIMISR_CMP2 HRTIM_TIMISR_CMP2_Msk /*!< Slave compare 2 interrupt flag */
  19169. #define HRTIM_TIMISR_CMP3_Pos (2U)
  19170. #define HRTIM_TIMISR_CMP3_Msk (0x1U << HRTIM_TIMISR_CMP3_Pos) /*!< 0x00000004 */
  19171. #define HRTIM_TIMISR_CMP3 HRTIM_TIMISR_CMP3_Msk /*!< Slave compare 3 interrupt flag */
  19172. #define HRTIM_TIMISR_CMP4_Pos (3U)
  19173. #define HRTIM_TIMISR_CMP4_Msk (0x1U << HRTIM_TIMISR_CMP4_Pos) /*!< 0x00000008 */
  19174. #define HRTIM_TIMISR_CMP4 HRTIM_TIMISR_CMP4_Msk /*!< Slave compare 4 interrupt flag */
  19175. #define HRTIM_TIMISR_REP_Pos (4U)
  19176. #define HRTIM_TIMISR_REP_Msk (0x1U << HRTIM_TIMISR_REP_Pos) /*!< 0x00000010 */
  19177. #define HRTIM_TIMISR_REP HRTIM_TIMISR_REP_Msk /*!< Slave repetition interrupt flag */
  19178. #define HRTIM_TIMISR_UPD_Pos (6U)
  19179. #define HRTIM_TIMISR_UPD_Msk (0x1U << HRTIM_TIMISR_UPD_Pos) /*!< 0x00000040 */
  19180. #define HRTIM_TIMISR_UPD HRTIM_TIMISR_UPD_Msk /*!< Slave update interrupt flag */
  19181. #define HRTIM_TIMISR_CPT1_Pos (7U)
  19182. #define HRTIM_TIMISR_CPT1_Msk (0x1U << HRTIM_TIMISR_CPT1_Pos) /*!< 0x00000080 */
  19183. #define HRTIM_TIMISR_CPT1 HRTIM_TIMISR_CPT1_Msk /*!< Slave capture 1 interrupt flag */
  19184. #define HRTIM_TIMISR_CPT2_Pos (8U)
  19185. #define HRTIM_TIMISR_CPT2_Msk (0x1U << HRTIM_TIMISR_CPT2_Pos) /*!< 0x00000100 */
  19186. #define HRTIM_TIMISR_CPT2 HRTIM_TIMISR_CPT2_Msk /*!< Slave capture 2 interrupt flag */
  19187. #define HRTIM_TIMISR_SET1_Pos (9U)
  19188. #define HRTIM_TIMISR_SET1_Msk (0x1U << HRTIM_TIMISR_SET1_Pos) /*!< 0x00000200 */
  19189. #define HRTIM_TIMISR_SET1 HRTIM_TIMISR_SET1_Msk /*!< Slave output 1 set interrupt flag */
  19190. #define HRTIM_TIMISR_RST1_Pos (10U)
  19191. #define HRTIM_TIMISR_RST1_Msk (0x1U << HRTIM_TIMISR_RST1_Pos) /*!< 0x00000400 */
  19192. #define HRTIM_TIMISR_RST1 HRTIM_TIMISR_RST1_Msk /*!< Slave output 1 reset interrupt flag */
  19193. #define HRTIM_TIMISR_SET2_Pos (11U)
  19194. #define HRTIM_TIMISR_SET2_Msk (0x1U << HRTIM_TIMISR_SET2_Pos) /*!< 0x00000800 */
  19195. #define HRTIM_TIMISR_SET2 HRTIM_TIMISR_SET2_Msk /*!< Slave output 2 set interrupt flag */
  19196. #define HRTIM_TIMISR_RST2_Pos (12U)
  19197. #define HRTIM_TIMISR_RST2_Msk (0x1U << HRTIM_TIMISR_RST2_Pos) /*!< 0x00001000 */
  19198. #define HRTIM_TIMISR_RST2 HRTIM_TIMISR_RST2_Msk /*!< Slave output 2 reset interrupt flag */
  19199. #define HRTIM_TIMISR_RST_Pos (13U)
  19200. #define HRTIM_TIMISR_RST_Msk (0x1U << HRTIM_TIMISR_RST_Pos) /*!< 0x00002000 */
  19201. #define HRTIM_TIMISR_RST HRTIM_TIMISR_RST_Msk /*!< Slave reset interrupt flag */
  19202. #define HRTIM_TIMISR_DLYPRT_Pos (14U)
  19203. #define HRTIM_TIMISR_DLYPRT_Msk (0x1U << HRTIM_TIMISR_DLYPRT_Pos) /*!< 0x00004000 */
  19204. #define HRTIM_TIMISR_DLYPRT HRTIM_TIMISR_DLYPRT_Msk /*!< Slave output 1 delay protection interrupt flag */
  19205. #define HRTIM_TIMISR_CPPSTAT_Pos (16U)
  19206. #define HRTIM_TIMISR_CPPSTAT_Msk (0x1U << HRTIM_TIMISR_CPPSTAT_Pos) /*!< 0x00010000 */
  19207. #define HRTIM_TIMISR_CPPSTAT HRTIM_TIMISR_CPPSTAT_Msk /*!< Slave current push-pull flag */
  19208. #define HRTIM_TIMISR_IPPSTAT_Pos (17U)
  19209. #define HRTIM_TIMISR_IPPSTAT_Msk (0x1U << HRTIM_TIMISR_IPPSTAT_Pos) /*!< 0x00020000 */
  19210. #define HRTIM_TIMISR_IPPSTAT HRTIM_TIMISR_IPPSTAT_Msk /*!< Slave idle push-pull flag */
  19211. #define HRTIM_TIMISR_O1STAT_Pos (18U)
  19212. #define HRTIM_TIMISR_O1STAT_Msk (0x1U << HRTIM_TIMISR_O1STAT_Pos) /*!< 0x00040000 */
  19213. #define HRTIM_TIMISR_O1STAT HRTIM_TIMISR_O1STAT_Msk /*!< Slave output 1 state flag */
  19214. #define HRTIM_TIMISR_O2STAT_Pos (19U)
  19215. #define HRTIM_TIMISR_O2STAT_Msk (0x1U << HRTIM_TIMISR_O2STAT_Pos) /*!< 0x00080000 */
  19216. #define HRTIM_TIMISR_O2STAT HRTIM_TIMISR_O2STAT_Msk /*!< Slave output 2 state flag */
  19217. #define HRTIM_TIMISR_O1CPY_Pos (20U)
  19218. #define HRTIM_TIMISR_O1CPY_Msk (0x1U << HRTIM_TIMISR_O1CPY_Pos) /*!< 0x00100000 */
  19219. #define HRTIM_TIMISR_O1CPY HRTIM_TIMISR_O1CPY_Msk /*!< Slave output 1 copy flag */
  19220. #define HRTIM_TIMISR_O2CPY_Pos (21U)
  19221. #define HRTIM_TIMISR_O2CPY_Msk (0x1U << HRTIM_TIMISR_O2CPY_Pos) /*!< 0x00200000 */
  19222. #define HRTIM_TIMISR_O2CPY HRTIM_TIMISR_O2CPY_Msk /*!< Slave output 2 copy flag */
  19223. /******************** Slave Interrupt clear register **************************/
  19224. #define HRTIM_TIMICR_CMP1C_Pos (0U)
  19225. #define HRTIM_TIMICR_CMP1C_Msk (0x1U << HRTIM_TIMICR_CMP1C_Pos) /*!< 0x00000001 */
  19226. #define HRTIM_TIMICR_CMP1C HRTIM_TIMICR_CMP1C_Msk /*!< Slave compare 1 clear flag */
  19227. #define HRTIM_TIMICR_CMP2C_Pos (1U)
  19228. #define HRTIM_TIMICR_CMP2C_Msk (0x1U << HRTIM_TIMICR_CMP2C_Pos) /*!< 0x00000002 */
  19229. #define HRTIM_TIMICR_CMP2C HRTIM_TIMICR_CMP2C_Msk /*!< Slave compare 2 clear flag */
  19230. #define HRTIM_TIMICR_CMP3C_Pos (2U)
  19231. #define HRTIM_TIMICR_CMP3C_Msk (0x1U << HRTIM_TIMICR_CMP3C_Pos) /*!< 0x00000004 */
  19232. #define HRTIM_TIMICR_CMP3C HRTIM_TIMICR_CMP3C_Msk /*!< Slave compare 3 clear flag */
  19233. #define HRTIM_TIMICR_CMP4C_Pos (3U)
  19234. #define HRTIM_TIMICR_CMP4C_Msk (0x1U << HRTIM_TIMICR_CMP4C_Pos) /*!< 0x00000008 */
  19235. #define HRTIM_TIMICR_CMP4C HRTIM_TIMICR_CMP4C_Msk /*!< Slave compare 4 clear flag */
  19236. #define HRTIM_TIMICR_REPC_Pos (4U)
  19237. #define HRTIM_TIMICR_REPC_Msk (0x1U << HRTIM_TIMICR_REPC_Pos) /*!< 0x00000010 */
  19238. #define HRTIM_TIMICR_REPC HRTIM_TIMICR_REPC_Msk /*!< Slave repetition clear flag */
  19239. #define HRTIM_TIMICR_UPDC_Pos (6U)
  19240. #define HRTIM_TIMICR_UPDC_Msk (0x1U << HRTIM_TIMICR_UPDC_Pos) /*!< 0x00000040 */
  19241. #define HRTIM_TIMICR_UPDC HRTIM_TIMICR_UPDC_Msk /*!< Slave update clear flag */
  19242. #define HRTIM_TIMICR_CPT1C_Pos (7U)
  19243. #define HRTIM_TIMICR_CPT1C_Msk (0x1U << HRTIM_TIMICR_CPT1C_Pos) /*!< 0x00000080 */
  19244. #define HRTIM_TIMICR_CPT1C HRTIM_TIMICR_CPT1C_Msk /*!< Slave capture 1 clear flag */
  19245. #define HRTIM_TIMICR_CPT2C_Pos (8U)
  19246. #define HRTIM_TIMICR_CPT2C_Msk (0x1U << HRTIM_TIMICR_CPT2C_Pos) /*!< 0x00000100 */
  19247. #define HRTIM_TIMICR_CPT2C HRTIM_TIMICR_CPT2C_Msk /*!< Slave capture 2 clear flag */
  19248. #define HRTIM_TIMICR_SET1C_Pos (9U)
  19249. #define HRTIM_TIMICR_SET1C_Msk (0x1U << HRTIM_TIMICR_SET1C_Pos) /*!< 0x00000200 */
  19250. #define HRTIM_TIMICR_SET1C HRTIM_TIMICR_SET1C_Msk /*!< Slave output 1 set clear flag */
  19251. #define HRTIM_TIMICR_RST1C_Pos (10U)
  19252. #define HRTIM_TIMICR_RST1C_Msk (0x1U << HRTIM_TIMICR_RST1C_Pos) /*!< 0x00000400 */
  19253. #define HRTIM_TIMICR_RST1C HRTIM_TIMICR_RST1C_Msk /*!< Slave output 1 reset clear flag */
  19254. #define HRTIM_TIMICR_SET2C_Pos (11U)
  19255. #define HRTIM_TIMICR_SET2C_Msk (0x1U << HRTIM_TIMICR_SET2C_Pos) /*!< 0x00000800 */
  19256. #define HRTIM_TIMICR_SET2C HRTIM_TIMICR_SET2C_Msk /*!< Slave output 2 set clear flag */
  19257. #define HRTIM_TIMICR_RST2C_Pos (12U)
  19258. #define HRTIM_TIMICR_RST2C_Msk (0x1U << HRTIM_TIMICR_RST2C_Pos) /*!< 0x00001000 */
  19259. #define HRTIM_TIMICR_RST2C HRTIM_TIMICR_RST2C_Msk /*!< Slave output 2 reset clear flag */
  19260. #define HRTIM_TIMICR_RSTC_Pos (13U)
  19261. #define HRTIM_TIMICR_RSTC_Msk (0x1U << HRTIM_TIMICR_RSTC_Pos) /*!< 0x00002000 */
  19262. #define HRTIM_TIMICR_RSTC HRTIM_TIMICR_RSTC_Msk /*!< Slave reset clear flag */
  19263. #define HRTIM_TIMICR_DLYPRTC_Pos (14U)
  19264. #define HRTIM_TIMICR_DLYPRTC_Msk (0x1U << HRTIM_TIMICR_DLYPRTC_Pos) /*!< 0x00004000 */
  19265. #define HRTIM_TIMICR_DLYPRTC HRTIM_TIMICR_DLYPRTC_Msk /*!< Slave output 1 delay protection clear flag */
  19266. /******************** Slave DMA/Interrupt enable register *********************/
  19267. #define HRTIM_TIMDIER_CMP1IE_Pos (0U)
  19268. #define HRTIM_TIMDIER_CMP1IE_Msk (0x1U << HRTIM_TIMDIER_CMP1IE_Pos) /*!< 0x00000001 */
  19269. #define HRTIM_TIMDIER_CMP1IE HRTIM_TIMDIER_CMP1IE_Msk /*!< Slave compare 1 interrupt enable */
  19270. #define HRTIM_TIMDIER_CMP2IE_Pos (1U)
  19271. #define HRTIM_TIMDIER_CMP2IE_Msk (0x1U << HRTIM_TIMDIER_CMP2IE_Pos) /*!< 0x00000002 */
  19272. #define HRTIM_TIMDIER_CMP2IE HRTIM_TIMDIER_CMP2IE_Msk /*!< Slave compare 2 interrupt enable */
  19273. #define HRTIM_TIMDIER_CMP3IE_Pos (2U)
  19274. #define HRTIM_TIMDIER_CMP3IE_Msk (0x1U << HRTIM_TIMDIER_CMP3IE_Pos) /*!< 0x00000004 */
  19275. #define HRTIM_TIMDIER_CMP3IE HRTIM_TIMDIER_CMP3IE_Msk /*!< Slave compare 3 interrupt enable */
  19276. #define HRTIM_TIMDIER_CMP4IE_Pos (3U)
  19277. #define HRTIM_TIMDIER_CMP4IE_Msk (0x1U << HRTIM_TIMDIER_CMP4IE_Pos) /*!< 0x00000008 */
  19278. #define HRTIM_TIMDIER_CMP4IE HRTIM_TIMDIER_CMP4IE_Msk /*!< Slave compare 4 interrupt enable */
  19279. #define HRTIM_TIMDIER_REPIE_Pos (4U)
  19280. #define HRTIM_TIMDIER_REPIE_Msk (0x1U << HRTIM_TIMDIER_REPIE_Pos) /*!< 0x00000010 */
  19281. #define HRTIM_TIMDIER_REPIE HRTIM_TIMDIER_REPIE_Msk /*!< Slave repetition interrupt enable */
  19282. #define HRTIM_TIMDIER_UPDIE_Pos (6U)
  19283. #define HRTIM_TIMDIER_UPDIE_Msk (0x1U << HRTIM_TIMDIER_UPDIE_Pos) /*!< 0x00000040 */
  19284. #define HRTIM_TIMDIER_UPDIE HRTIM_TIMDIER_UPDIE_Msk /*!< Slave update interrupt enable */
  19285. #define HRTIM_TIMDIER_CPT1IE_Pos (7U)
  19286. #define HRTIM_TIMDIER_CPT1IE_Msk (0x1U << HRTIM_TIMDIER_CPT1IE_Pos) /*!< 0x00000080 */
  19287. #define HRTIM_TIMDIER_CPT1IE HRTIM_TIMDIER_CPT1IE_Msk /*!< Slave capture 1 interrupt enable */
  19288. #define HRTIM_TIMDIER_CPT2IE_Pos (8U)
  19289. #define HRTIM_TIMDIER_CPT2IE_Msk (0x1U << HRTIM_TIMDIER_CPT2IE_Pos) /*!< 0x00000100 */
  19290. #define HRTIM_TIMDIER_CPT2IE HRTIM_TIMDIER_CPT2IE_Msk /*!< Slave capture 2 interrupt enable */
  19291. #define HRTIM_TIMDIER_SET1IE_Pos (9U)
  19292. #define HRTIM_TIMDIER_SET1IE_Msk (0x1U << HRTIM_TIMDIER_SET1IE_Pos) /*!< 0x00000200 */
  19293. #define HRTIM_TIMDIER_SET1IE HRTIM_TIMDIER_SET1IE_Msk /*!< Slave output 1 set interrupt enable */
  19294. #define HRTIM_TIMDIER_RST1IE_Pos (10U)
  19295. #define HRTIM_TIMDIER_RST1IE_Msk (0x1U << HRTIM_TIMDIER_RST1IE_Pos) /*!< 0x00000400 */
  19296. #define HRTIM_TIMDIER_RST1IE HRTIM_TIMDIER_RST1IE_Msk /*!< Slave output 1 reset interrupt enable */
  19297. #define HRTIM_TIMDIER_SET2IE_Pos (11U)
  19298. #define HRTIM_TIMDIER_SET2IE_Msk (0x1U << HRTIM_TIMDIER_SET2IE_Pos) /*!< 0x00000800 */
  19299. #define HRTIM_TIMDIER_SET2IE HRTIM_TIMDIER_SET2IE_Msk /*!< Slave output 2 set interrupt enable */
  19300. #define HRTIM_TIMDIER_RST2IE_Pos (12U)
  19301. #define HRTIM_TIMDIER_RST2IE_Msk (0x1U << HRTIM_TIMDIER_RST2IE_Pos) /*!< 0x00001000 */
  19302. #define HRTIM_TIMDIER_RST2IE HRTIM_TIMDIER_RST2IE_Msk /*!< Slave output 2 reset interrupt enable */
  19303. #define HRTIM_TIMDIER_RSTIE_Pos (13U)
  19304. #define HRTIM_TIMDIER_RSTIE_Msk (0x1U << HRTIM_TIMDIER_RSTIE_Pos) /*!< 0x00002000 */
  19305. #define HRTIM_TIMDIER_RSTIE HRTIM_TIMDIER_RSTIE_Msk /*!< Slave reset interrupt enable */
  19306. #define HRTIM_TIMDIER_DLYPRTIE_Pos (14U)
  19307. #define HRTIM_TIMDIER_DLYPRTIE_Msk (0x1U << HRTIM_TIMDIER_DLYPRTIE_Pos) /*!< 0x00004000 */
  19308. #define HRTIM_TIMDIER_DLYPRTIE HRTIM_TIMDIER_DLYPRTIE_Msk /*!< Slave delay protection interrupt enable */
  19309. #define HRTIM_TIMDIER_CMP1DE_Pos (16U)
  19310. #define HRTIM_TIMDIER_CMP1DE_Msk (0x1U << HRTIM_TIMDIER_CMP1DE_Pos) /*!< 0x00010000 */
  19311. #define HRTIM_TIMDIER_CMP1DE HRTIM_TIMDIER_CMP1DE_Msk /*!< Slave compare 1 request enable */
  19312. #define HRTIM_TIMDIER_CMP2DE_Pos (17U)
  19313. #define HRTIM_TIMDIER_CMP2DE_Msk (0x1U << HRTIM_TIMDIER_CMP2DE_Pos) /*!< 0x00020000 */
  19314. #define HRTIM_TIMDIER_CMP2DE HRTIM_TIMDIER_CMP2DE_Msk /*!< Slave compare 2 request enable */
  19315. #define HRTIM_TIMDIER_CMP3DE_Pos (18U)
  19316. #define HRTIM_TIMDIER_CMP3DE_Msk (0x1U << HRTIM_TIMDIER_CMP3DE_Pos) /*!< 0x00040000 */
  19317. #define HRTIM_TIMDIER_CMP3DE HRTIM_TIMDIER_CMP3DE_Msk /*!< Slave compare 3 request enable */
  19318. #define HRTIM_TIMDIER_CMP4DE_Pos (19U)
  19319. #define HRTIM_TIMDIER_CMP4DE_Msk (0x1U << HRTIM_TIMDIER_CMP4DE_Pos) /*!< 0x00080000 */
  19320. #define HRTIM_TIMDIER_CMP4DE HRTIM_TIMDIER_CMP4DE_Msk /*!< Slave compare 4 request enable */
  19321. #define HRTIM_TIMDIER_REPDE_Pos (20U)
  19322. #define HRTIM_TIMDIER_REPDE_Msk (0x1U << HRTIM_TIMDIER_REPDE_Pos) /*!< 0x00100000 */
  19323. #define HRTIM_TIMDIER_REPDE HRTIM_TIMDIER_REPDE_Msk /*!< Slave repetition request enable */
  19324. #define HRTIM_TIMDIER_UPDDE_Pos (22U)
  19325. #define HRTIM_TIMDIER_UPDDE_Msk (0x1U << HRTIM_TIMDIER_UPDDE_Pos) /*!< 0x00400000 */
  19326. #define HRTIM_TIMDIER_UPDDE HRTIM_TIMDIER_UPDDE_Msk /*!< Slave update request enable */
  19327. #define HRTIM_TIMDIER_CPT1DE_Pos (23U)
  19328. #define HRTIM_TIMDIER_CPT1DE_Msk (0x1U << HRTIM_TIMDIER_CPT1DE_Pos) /*!< 0x00800000 */
  19329. #define HRTIM_TIMDIER_CPT1DE HRTIM_TIMDIER_CPT1DE_Msk /*!< Slave capture 1 request enable */
  19330. #define HRTIM_TIMDIER_CPT2DE_Pos (24U)
  19331. #define HRTIM_TIMDIER_CPT2DE_Msk (0x1U << HRTIM_TIMDIER_CPT2DE_Pos) /*!< 0x01000000 */
  19332. #define HRTIM_TIMDIER_CPT2DE HRTIM_TIMDIER_CPT2DE_Msk /*!< Slave capture 2 request enable */
  19333. #define HRTIM_TIMDIER_SET1DE_Pos (25U)
  19334. #define HRTIM_TIMDIER_SET1DE_Msk (0x1U << HRTIM_TIMDIER_SET1DE_Pos) /*!< 0x02000000 */
  19335. #define HRTIM_TIMDIER_SET1DE HRTIM_TIMDIER_SET1DE_Msk /*!< Slave output 1 set request enable */
  19336. #define HRTIM_TIMDIER_RST1DE_Pos (26U)
  19337. #define HRTIM_TIMDIER_RST1DE_Msk (0x1U << HRTIM_TIMDIER_RST1DE_Pos) /*!< 0x04000000 */
  19338. #define HRTIM_TIMDIER_RST1DE HRTIM_TIMDIER_RST1DE_Msk /*!< Slave output 1 reset request enable */
  19339. #define HRTIM_TIMDIER_SET2DE_Pos (27U)
  19340. #define HRTIM_TIMDIER_SET2DE_Msk (0x1U << HRTIM_TIMDIER_SET2DE_Pos) /*!< 0x08000000 */
  19341. #define HRTIM_TIMDIER_SET2DE HRTIM_TIMDIER_SET2DE_Msk /*!< Slave output 2 set request enable */
  19342. #define HRTIM_TIMDIER_RST2DE_Pos (28U)
  19343. #define HRTIM_TIMDIER_RST2DE_Msk (0x1U << HRTIM_TIMDIER_RST2DE_Pos) /*!< 0x10000000 */
  19344. #define HRTIM_TIMDIER_RST2DE HRTIM_TIMDIER_RST2DE_Msk /*!< Slave output 2 reset request enable */
  19345. #define HRTIM_TIMDIER_RSTDE_Pos (29U)
  19346. #define HRTIM_TIMDIER_RSTDE_Msk (0x1U << HRTIM_TIMDIER_RSTDE_Pos) /*!< 0x20000000 */
  19347. #define HRTIM_TIMDIER_RSTDE HRTIM_TIMDIER_RSTDE_Msk /*!< Slave reset request enable */
  19348. #define HRTIM_TIMDIER_DLYPRTDE_Pos (30U)
  19349. #define HRTIM_TIMDIER_DLYPRTDE_Msk (0x1U << HRTIM_TIMDIER_DLYPRTDE_Pos) /*!< 0x40000000 */
  19350. #define HRTIM_TIMDIER_DLYPRTDE HRTIM_TIMDIER_DLYPRTDE_Msk /*!< Slavedelay protection request enable */
  19351. /****************** Bit definition for HRTIM_CNTR register ****************/
  19352. #define HRTIM_CNTR_CNTR_Pos (0U)
  19353. #define HRTIM_CNTR_CNTR_Msk (0xFFFFU << HRTIM_CNTR_CNTR_Pos) /*!< 0x0000FFFF */
  19354. #define HRTIM_CNTR_CNTR HRTIM_CNTR_CNTR_Msk /*!< Counter Value */
  19355. /******************* Bit definition for HRTIM_PER register *****************/
  19356. #define HRTIM_PER_PER_Pos (0U)
  19357. #define HRTIM_PER_PER_Msk (0xFFFFU << HRTIM_PER_PER_Pos) /*!< 0x0000FFFF */
  19358. #define HRTIM_PER_PER HRTIM_PER_PER_Msk /*!< Period Value */
  19359. /******************* Bit definition for HRTIM_REP register *****************/
  19360. #define HRTIM_REP_REP_Pos (0U)
  19361. #define HRTIM_REP_REP_Msk (0xFFU << HRTIM_REP_REP_Pos) /*!< 0x000000FF */
  19362. #define HRTIM_REP_REP HRTIM_REP_REP_Msk /*!< Repetition Value */
  19363. /******************* Bit definition for HRTIM_CMP1R register *****************/
  19364. #define HRTIM_CMP1R_CMP1R_Pos (0U)
  19365. #define HRTIM_CMP1R_CMP1R_Msk (0xFFFFU << HRTIM_CMP1R_CMP1R_Pos) /*!< 0x0000FFFF */
  19366. #define HRTIM_CMP1R_CMP1R HRTIM_CMP1R_CMP1R_Msk /*!< Compare Value */
  19367. /******************* Bit definition for HRTIM_CMP1CR register *****************/
  19368. #define HRTIM_CMP1CR_CMP1CR_Pos (0U)
  19369. #define HRTIM_CMP1CR_CMP1CR_Msk (0xFFFFFFFFU << HRTIM_CMP1CR_CMP1CR_Pos) /*!< 0xFFFFFFFF */
  19370. #define HRTIM_CMP1CR_CMP1CR HRTIM_CMP1CR_CMP1CR_Msk /*!< Compare Value */
  19371. /******************* Bit definition for HRTIM_CMP2R register *****************/
  19372. #define HRTIM_CMP2R_CMP2R_Pos (0U)
  19373. #define HRTIM_CMP2R_CMP2R_Msk (0xFFFFU << HRTIM_CMP2R_CMP2R_Pos) /*!< 0x0000FFFF */
  19374. #define HRTIM_CMP2R_CMP2R HRTIM_CMP2R_CMP2R_Msk /*!< Compare Value */
  19375. /******************* Bit definition for HRTIM_CMP3R register *****************/
  19376. #define HRTIM_CMP3R_CMP3R_Pos (0U)
  19377. #define HRTIM_CMP3R_CMP3R_Msk (0xFFFFU << HRTIM_CMP3R_CMP3R_Pos) /*!< 0x0000FFFF */
  19378. #define HRTIM_CMP3R_CMP3R HRTIM_CMP3R_CMP3R_Msk /*!< Compare Value */
  19379. /******************* Bit definition for HRTIM_CMP4R register *****************/
  19380. #define HRTIM_CMP4R_CMP4R_Pos (0U)
  19381. #define HRTIM_CMP4R_CMP4R_Msk (0xFFFFU << HRTIM_CMP4R_CMP4R_Pos) /*!< 0x0000FFFF */
  19382. #define HRTIM_CMP4R_CMP4R HRTIM_CMP4R_CMP4R_Msk /*!< Compare Value */
  19383. /******************* Bit definition for HRTIM_CPT1R register ****************/
  19384. #define HRTIM_CPT1R_CPT1R_Pos (0U)
  19385. #define HRTIM_CPT1R_CPT1R_Msk (0xFFFFU << HRTIM_CPT1R_CPT1R_Pos) /*!< 0x0000FFFF */
  19386. #define HRTIM_CPT1R_CPT1R HRTIM_CPT1R_CPT1R_Msk /*!< Capture Value */
  19387. /******************* Bit definition for HRTIM_CPT2R register ****************/
  19388. #define HRTIM_CPT2R_CPT2R_Pos (0U)
  19389. #define HRTIM_CPT2R_CPT2R_Msk (0xFFFFU << HRTIM_CPT2R_CPT2R_Pos) /*!< 0x0000FFFF */
  19390. #define HRTIM_CPT2R_CPT2R HRTIM_CPT2R_CPT2R_Msk /*!< Capture Value */
  19391. /******************** Bit definition for Slave Deadtime register **************/
  19392. #define HRTIM_DTR_DTR_Pos (0U)
  19393. #define HRTIM_DTR_DTR_Msk (0x1FFU << HRTIM_DTR_DTR_Pos) /*!< 0x000001FF */
  19394. #define HRTIM_DTR_DTR HRTIM_DTR_DTR_Msk /*!< Dead time rising value */
  19395. #define HRTIM_DTR_DTR_0 (0x001U << HRTIM_DTR_DTR_Pos) /*!< 0x00000001 */
  19396. #define HRTIM_DTR_DTR_1 (0x002U << HRTIM_DTR_DTR_Pos) /*!< 0x00000002 */
  19397. #define HRTIM_DTR_DTR_2 (0x004U << HRTIM_DTR_DTR_Pos) /*!< 0x00000004 */
  19398. #define HRTIM_DTR_DTR_3 (0x008U << HRTIM_DTR_DTR_Pos) /*!< 0x00000008 */
  19399. #define HRTIM_DTR_DTR_4 (0x010U << HRTIM_DTR_DTR_Pos) /*!< 0x00000010 */
  19400. #define HRTIM_DTR_DTR_5 (0x020U << HRTIM_DTR_DTR_Pos) /*!< 0x00000020 */
  19401. #define HRTIM_DTR_DTR_6 (0x040U << HRTIM_DTR_DTR_Pos) /*!< 0x00000040 */
  19402. #define HRTIM_DTR_DTR_7 (0x080U << HRTIM_DTR_DTR_Pos) /*!< 0x00000080 */
  19403. #define HRTIM_DTR_DTR_8 (0x100U << HRTIM_DTR_DTR_Pos) /*!< 0x00000100 */
  19404. #define HRTIM_DTR_SDTR_Pos (9U)
  19405. #define HRTIM_DTR_SDTR_Msk (0x1U << HRTIM_DTR_SDTR_Pos) /*!< 0x00000200 */
  19406. #define HRTIM_DTR_SDTR HRTIM_DTR_SDTR_Msk /*!< Sign dead time rising value */
  19407. #define HRTIM_DTR_DTPRSC_Pos (10U)
  19408. #define HRTIM_DTR_DTPRSC_Msk (0x7U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00001C00 */
  19409. #define HRTIM_DTR_DTPRSC HRTIM_DTR_DTPRSC_Msk /*!< Dead time prescaler */
  19410. #define HRTIM_DTR_DTPRSC_0 (0x1U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00000400 */
  19411. #define HRTIM_DTR_DTPRSC_1 (0x2U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00000800 */
  19412. #define HRTIM_DTR_DTPRSC_2 (0x4U << HRTIM_DTR_DTPRSC_Pos) /*!< 0x00001000 */
  19413. #define HRTIM_DTR_DTRSLK_Pos (14U)
  19414. #define HRTIM_DTR_DTRSLK_Msk (0x1U << HRTIM_DTR_DTRSLK_Pos) /*!< 0x00004000 */
  19415. #define HRTIM_DTR_DTRSLK HRTIM_DTR_DTRSLK_Msk /*!< Dead time rising sign lock */
  19416. #define HRTIM_DTR_DTRLK_Pos (15U)
  19417. #define HRTIM_DTR_DTRLK_Msk (0x1U << HRTIM_DTR_DTRLK_Pos) /*!< 0x00008000 */
  19418. #define HRTIM_DTR_DTRLK HRTIM_DTR_DTRLK_Msk /*!< Dead time rising lock */
  19419. #define HRTIM_DTR_DTF_Pos (16U)
  19420. #define HRTIM_DTR_DTF_Msk (0x1FFU << HRTIM_DTR_DTF_Pos) /*!< 0x01FF0000 */
  19421. #define HRTIM_DTR_DTF HRTIM_DTR_DTF_Msk /*!< Dead time falling value */
  19422. #define HRTIM_DTR_DTF_0 (0x001U << HRTIM_DTR_DTF_Pos) /*!< 0x00010000 */
  19423. #define HRTIM_DTR_DTF_1 (0x002U << HRTIM_DTR_DTF_Pos) /*!< 0x00020000 */
  19424. #define HRTIM_DTR_DTF_2 (0x004U << HRTIM_DTR_DTF_Pos) /*!< 0x00040000 */
  19425. #define HRTIM_DTR_DTF_3 (0x008U << HRTIM_DTR_DTF_Pos) /*!< 0x00080000 */
  19426. #define HRTIM_DTR_DTF_4 (0x010U << HRTIM_DTR_DTF_Pos) /*!< 0x00100000 */
  19427. #define HRTIM_DTR_DTF_5 (0x020U << HRTIM_DTR_DTF_Pos) /*!< 0x00200000 */
  19428. #define HRTIM_DTR_DTF_6 (0x040U << HRTIM_DTR_DTF_Pos) /*!< 0x00400000 */
  19429. #define HRTIM_DTR_DTF_7 (0x080U << HRTIM_DTR_DTF_Pos) /*!< 0x00800000 */
  19430. #define HRTIM_DTR_DTF_8 (0x100U << HRTIM_DTR_DTF_Pos) /*!< 0x01000000 */
  19431. #define HRTIM_DTR_SDTF_Pos (25U)
  19432. #define HRTIM_DTR_SDTF_Msk (0x1U << HRTIM_DTR_SDTF_Pos) /*!< 0x02000000 */
  19433. #define HRTIM_DTR_SDTF HRTIM_DTR_SDTF_Msk /*!< Sign dead time falling value */
  19434. #define HRTIM_DTR_DTFSLK_Pos (30U)
  19435. #define HRTIM_DTR_DTFSLK_Msk (0x1U << HRTIM_DTR_DTFSLK_Pos) /*!< 0x40000000 */
  19436. #define HRTIM_DTR_DTFSLK HRTIM_DTR_DTFSLK_Msk /*!< Dead time falling sign lock */
  19437. #define HRTIM_DTR_DTFLK_Pos (31U)
  19438. #define HRTIM_DTR_DTFLK_Msk (0x1U << HRTIM_DTR_DTFLK_Pos) /*!< 0x80000000 */
  19439. #define HRTIM_DTR_DTFLK HRTIM_DTR_DTFLK_Msk /*!< Dead time falling lock */
  19440. /**** Bit definition for Slave Output 1 set register **************************/
  19441. #define HRTIM_SET1R_SST_Pos (0U)
  19442. #define HRTIM_SET1R_SST_Msk (0x1U << HRTIM_SET1R_SST_Pos) /*!< 0x00000001 */
  19443. #define HRTIM_SET1R_SST HRTIM_SET1R_SST_Msk /*!< software set trigger */
  19444. #define HRTIM_SET1R_RESYNC_Pos (1U)
  19445. #define HRTIM_SET1R_RESYNC_Msk (0x1U << HRTIM_SET1R_RESYNC_Pos) /*!< 0x00000002 */
  19446. #define HRTIM_SET1R_RESYNC HRTIM_SET1R_RESYNC_Msk /*!< Timer A resynchronization */
  19447. #define HRTIM_SET1R_PER_Pos (2U)
  19448. #define HRTIM_SET1R_PER_Msk (0x1U << HRTIM_SET1R_PER_Pos) /*!< 0x00000004 */
  19449. #define HRTIM_SET1R_PER HRTIM_SET1R_PER_Msk /*!< Timer A period */
  19450. #define HRTIM_SET1R_CMP1_Pos (3U)
  19451. #define HRTIM_SET1R_CMP1_Msk (0x1U << HRTIM_SET1R_CMP1_Pos) /*!< 0x00000008 */
  19452. #define HRTIM_SET1R_CMP1 HRTIM_SET1R_CMP1_Msk /*!< Timer A compare 1 */
  19453. #define HRTIM_SET1R_CMP2_Pos (4U)
  19454. #define HRTIM_SET1R_CMP2_Msk (0x1U << HRTIM_SET1R_CMP2_Pos) /*!< 0x00000010 */
  19455. #define HRTIM_SET1R_CMP2 HRTIM_SET1R_CMP2_Msk /*!< Timer A compare 2 */
  19456. #define HRTIM_SET1R_CMP3_Pos (5U)
  19457. #define HRTIM_SET1R_CMP3_Msk (0x1U << HRTIM_SET1R_CMP3_Pos) /*!< 0x00000020 */
  19458. #define HRTIM_SET1R_CMP3 HRTIM_SET1R_CMP3_Msk /*!< Timer A compare 3 */
  19459. #define HRTIM_SET1R_CMP4_Pos (6U)
  19460. #define HRTIM_SET1R_CMP4_Msk (0x1U << HRTIM_SET1R_CMP4_Pos) /*!< 0x00000040 */
  19461. #define HRTIM_SET1R_CMP4 HRTIM_SET1R_CMP4_Msk /*!< Timer A compare 4 */
  19462. #define HRTIM_SET1R_MSTPER_Pos (7U)
  19463. #define HRTIM_SET1R_MSTPER_Msk (0x1U << HRTIM_SET1R_MSTPER_Pos) /*!< 0x00000080 */
  19464. #define HRTIM_SET1R_MSTPER HRTIM_SET1R_MSTPER_Msk /*!< Master period */
  19465. #define HRTIM_SET1R_MSTCMP1_Pos (8U)
  19466. #define HRTIM_SET1R_MSTCMP1_Msk (0x1U << HRTIM_SET1R_MSTCMP1_Pos) /*!< 0x00000100 */
  19467. #define HRTIM_SET1R_MSTCMP1 HRTIM_SET1R_MSTCMP1_Msk /*!< Master compare 1 */
  19468. #define HRTIM_SET1R_MSTCMP2_Pos (9U)
  19469. #define HRTIM_SET1R_MSTCMP2_Msk (0x1U << HRTIM_SET1R_MSTCMP2_Pos) /*!< 0x00000200 */
  19470. #define HRTIM_SET1R_MSTCMP2 HRTIM_SET1R_MSTCMP2_Msk /*!< Master compare 2 */
  19471. #define HRTIM_SET1R_MSTCMP3_Pos (10U)
  19472. #define HRTIM_SET1R_MSTCMP3_Msk (0x1U << HRTIM_SET1R_MSTCMP3_Pos) /*!< 0x00000400 */
  19473. #define HRTIM_SET1R_MSTCMP3 HRTIM_SET1R_MSTCMP3_Msk /*!< Master compare 3 */
  19474. #define HRTIM_SET1R_MSTCMP4_Pos (11U)
  19475. #define HRTIM_SET1R_MSTCMP4_Msk (0x1U << HRTIM_SET1R_MSTCMP4_Pos) /*!< 0x00000800 */
  19476. #define HRTIM_SET1R_MSTCMP4 HRTIM_SET1R_MSTCMP4_Msk /*!< Master compare 4 */
  19477. #define HRTIM_SET1R_TIMEVNT1_Pos (12U)
  19478. #define HRTIM_SET1R_TIMEVNT1_Msk (0x1U << HRTIM_SET1R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19479. #define HRTIM_SET1R_TIMEVNT1 HRTIM_SET1R_TIMEVNT1_Msk /*!< Timer event 1 */
  19480. #define HRTIM_SET1R_TIMEVNT2_Pos (13U)
  19481. #define HRTIM_SET1R_TIMEVNT2_Msk (0x1U << HRTIM_SET1R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19482. #define HRTIM_SET1R_TIMEVNT2 HRTIM_SET1R_TIMEVNT2_Msk /*!< Timer event 2 */
  19483. #define HRTIM_SET1R_TIMEVNT3_Pos (14U)
  19484. #define HRTIM_SET1R_TIMEVNT3_Msk (0x1U << HRTIM_SET1R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19485. #define HRTIM_SET1R_TIMEVNT3 HRTIM_SET1R_TIMEVNT3_Msk /*!< Timer event 3 */
  19486. #define HRTIM_SET1R_TIMEVNT4_Pos (15U)
  19487. #define HRTIM_SET1R_TIMEVNT4_Msk (0x1U << HRTIM_SET1R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19488. #define HRTIM_SET1R_TIMEVNT4 HRTIM_SET1R_TIMEVNT4_Msk /*!< Timer event 4 */
  19489. #define HRTIM_SET1R_TIMEVNT5_Pos (16U)
  19490. #define HRTIM_SET1R_TIMEVNT5_Msk (0x1U << HRTIM_SET1R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19491. #define HRTIM_SET1R_TIMEVNT5 HRTIM_SET1R_TIMEVNT5_Msk /*!< Timer event 5 */
  19492. #define HRTIM_SET1R_TIMEVNT6_Pos (17U)
  19493. #define HRTIM_SET1R_TIMEVNT6_Msk (0x1U << HRTIM_SET1R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19494. #define HRTIM_SET1R_TIMEVNT6 HRTIM_SET1R_TIMEVNT6_Msk /*!< Timer event 6 */
  19495. #define HRTIM_SET1R_TIMEVNT7_Pos (18U)
  19496. #define HRTIM_SET1R_TIMEVNT7_Msk (0x1U << HRTIM_SET1R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19497. #define HRTIM_SET1R_TIMEVNT7 HRTIM_SET1R_TIMEVNT7_Msk /*!< Timer event 7 */
  19498. #define HRTIM_SET1R_TIMEVNT8_Pos (19U)
  19499. #define HRTIM_SET1R_TIMEVNT8_Msk (0x1U << HRTIM_SET1R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19500. #define HRTIM_SET1R_TIMEVNT8 HRTIM_SET1R_TIMEVNT8_Msk /*!< Timer event 8 */
  19501. #define HRTIM_SET1R_TIMEVNT9_Pos (20U)
  19502. #define HRTIM_SET1R_TIMEVNT9_Msk (0x1U << HRTIM_SET1R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19503. #define HRTIM_SET1R_TIMEVNT9 HRTIM_SET1R_TIMEVNT9_Msk /*!< Timer event 9 */
  19504. #define HRTIM_SET1R_EXTVNT1_Pos (21U)
  19505. #define HRTIM_SET1R_EXTVNT1_Msk (0x1U << HRTIM_SET1R_EXTVNT1_Pos) /*!< 0x00200000 */
  19506. #define HRTIM_SET1R_EXTVNT1 HRTIM_SET1R_EXTVNT1_Msk /*!< External event 1 */
  19507. #define HRTIM_SET1R_EXTVNT2_Pos (22U)
  19508. #define HRTIM_SET1R_EXTVNT2_Msk (0x1U << HRTIM_SET1R_EXTVNT2_Pos) /*!< 0x00400000 */
  19509. #define HRTIM_SET1R_EXTVNT2 HRTIM_SET1R_EXTVNT2_Msk /*!< External event 2 */
  19510. #define HRTIM_SET1R_EXTVNT3_Pos (23U)
  19511. #define HRTIM_SET1R_EXTVNT3_Msk (0x1U << HRTIM_SET1R_EXTVNT3_Pos) /*!< 0x00800000 */
  19512. #define HRTIM_SET1R_EXTVNT3 HRTIM_SET1R_EXTVNT3_Msk /*!< External event 3 */
  19513. #define HRTIM_SET1R_EXTVNT4_Pos (24U)
  19514. #define HRTIM_SET1R_EXTVNT4_Msk (0x1U << HRTIM_SET1R_EXTVNT4_Pos) /*!< 0x01000000 */
  19515. #define HRTIM_SET1R_EXTVNT4 HRTIM_SET1R_EXTVNT4_Msk /*!< External event 4 */
  19516. #define HRTIM_SET1R_EXTVNT5_Pos (25U)
  19517. #define HRTIM_SET1R_EXTVNT5_Msk (0x1U << HRTIM_SET1R_EXTVNT5_Pos) /*!< 0x02000000 */
  19518. #define HRTIM_SET1R_EXTVNT5 HRTIM_SET1R_EXTVNT5_Msk /*!< External event 5 */
  19519. #define HRTIM_SET1R_EXTVNT6_Pos (26U)
  19520. #define HRTIM_SET1R_EXTVNT6_Msk (0x1U << HRTIM_SET1R_EXTVNT6_Pos) /*!< 0x04000000 */
  19521. #define HRTIM_SET1R_EXTVNT6 HRTIM_SET1R_EXTVNT6_Msk /*!< External event 6 */
  19522. #define HRTIM_SET1R_EXTVNT7_Pos (27U)
  19523. #define HRTIM_SET1R_EXTVNT7_Msk (0x1U << HRTIM_SET1R_EXTVNT7_Pos) /*!< 0x08000000 */
  19524. #define HRTIM_SET1R_EXTVNT7 HRTIM_SET1R_EXTVNT7_Msk /*!< External event 7 */
  19525. #define HRTIM_SET1R_EXTVNT8_Pos (28U)
  19526. #define HRTIM_SET1R_EXTVNT8_Msk (0x1U << HRTIM_SET1R_EXTVNT8_Pos) /*!< 0x10000000 */
  19527. #define HRTIM_SET1R_EXTVNT8 HRTIM_SET1R_EXTVNT8_Msk /*!< External event 8 */
  19528. #define HRTIM_SET1R_EXTVNT9_Pos (29U)
  19529. #define HRTIM_SET1R_EXTVNT9_Msk (0x1U << HRTIM_SET1R_EXTVNT9_Pos) /*!< 0x20000000 */
  19530. #define HRTIM_SET1R_EXTVNT9 HRTIM_SET1R_EXTVNT9_Msk /*!< External event 9 */
  19531. #define HRTIM_SET1R_EXTVNT10_Pos (30U)
  19532. #define HRTIM_SET1R_EXTVNT10_Msk (0x1U << HRTIM_SET1R_EXTVNT10_Pos) /*!< 0x40000000 */
  19533. #define HRTIM_SET1R_EXTVNT10 HRTIM_SET1R_EXTVNT10_Msk /*!< External event 10 */
  19534. #define HRTIM_SET1R_UPDATE_Pos (31U)
  19535. #define HRTIM_SET1R_UPDATE_Msk (0x1U << HRTIM_SET1R_UPDATE_Pos) /*!< 0x80000000 */
  19536. #define HRTIM_SET1R_UPDATE HRTIM_SET1R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19537. /**** Bit definition for Slave Output 1 reset register ************************/
  19538. #define HRTIM_RST1R_SRT_Pos (0U)
  19539. #define HRTIM_RST1R_SRT_Msk (0x1U << HRTIM_RST1R_SRT_Pos) /*!< 0x00000001 */
  19540. #define HRTIM_RST1R_SRT HRTIM_RST1R_SRT_Msk /*!< software reset trigger */
  19541. #define HRTIM_RST1R_RESYNC_Pos (1U)
  19542. #define HRTIM_RST1R_RESYNC_Msk (0x1U << HRTIM_RST1R_RESYNC_Pos) /*!< 0x00000002 */
  19543. #define HRTIM_RST1R_RESYNC HRTIM_RST1R_RESYNC_Msk /*!< Timer A resynchronization */
  19544. #define HRTIM_RST1R_PER_Pos (2U)
  19545. #define HRTIM_RST1R_PER_Msk (0x1U << HRTIM_RST1R_PER_Pos) /*!< 0x00000004 */
  19546. #define HRTIM_RST1R_PER HRTIM_RST1R_PER_Msk /*!< Timer A period */
  19547. #define HRTIM_RST1R_CMP1_Pos (3U)
  19548. #define HRTIM_RST1R_CMP1_Msk (0x1U << HRTIM_RST1R_CMP1_Pos) /*!< 0x00000008 */
  19549. #define HRTIM_RST1R_CMP1 HRTIM_RST1R_CMP1_Msk /*!< Timer A compare 1 */
  19550. #define HRTIM_RST1R_CMP2_Pos (4U)
  19551. #define HRTIM_RST1R_CMP2_Msk (0x1U << HRTIM_RST1R_CMP2_Pos) /*!< 0x00000010 */
  19552. #define HRTIM_RST1R_CMP2 HRTIM_RST1R_CMP2_Msk /*!< Timer A compare 2 */
  19553. #define HRTIM_RST1R_CMP3_Pos (5U)
  19554. #define HRTIM_RST1R_CMP3_Msk (0x1U << HRTIM_RST1R_CMP3_Pos) /*!< 0x00000020 */
  19555. #define HRTIM_RST1R_CMP3 HRTIM_RST1R_CMP3_Msk /*!< Timer A compare 3 */
  19556. #define HRTIM_RST1R_CMP4_Pos (6U)
  19557. #define HRTIM_RST1R_CMP4_Msk (0x1U << HRTIM_RST1R_CMP4_Pos) /*!< 0x00000040 */
  19558. #define HRTIM_RST1R_CMP4 HRTIM_RST1R_CMP4_Msk /*!< Timer A compare 4 */
  19559. #define HRTIM_RST1R_MSTPER_Pos (7U)
  19560. #define HRTIM_RST1R_MSTPER_Msk (0x1U << HRTIM_RST1R_MSTPER_Pos) /*!< 0x00000080 */
  19561. #define HRTIM_RST1R_MSTPER HRTIM_RST1R_MSTPER_Msk /*!< Master period */
  19562. #define HRTIM_RST1R_MSTCMP1_Pos (8U)
  19563. #define HRTIM_RST1R_MSTCMP1_Msk (0x1U << HRTIM_RST1R_MSTCMP1_Pos) /*!< 0x00000100 */
  19564. #define HRTIM_RST1R_MSTCMP1 HRTIM_RST1R_MSTCMP1_Msk /*!< Master compare 1 */
  19565. #define HRTIM_RST1R_MSTCMP2_Pos (9U)
  19566. #define HRTIM_RST1R_MSTCMP2_Msk (0x1U << HRTIM_RST1R_MSTCMP2_Pos) /*!< 0x00000200 */
  19567. #define HRTIM_RST1R_MSTCMP2 HRTIM_RST1R_MSTCMP2_Msk /*!< Master compare 2 */
  19568. #define HRTIM_RST1R_MSTCMP3_Pos (10U)
  19569. #define HRTIM_RST1R_MSTCMP3_Msk (0x1U << HRTIM_RST1R_MSTCMP3_Pos) /*!< 0x00000400 */
  19570. #define HRTIM_RST1R_MSTCMP3 HRTIM_RST1R_MSTCMP3_Msk /*!< Master compare 3 */
  19571. #define HRTIM_RST1R_MSTCMP4_Pos (11U)
  19572. #define HRTIM_RST1R_MSTCMP4_Msk (0x1U << HRTIM_RST1R_MSTCMP4_Pos) /*!< 0x00000800 */
  19573. #define HRTIM_RST1R_MSTCMP4 HRTIM_RST1R_MSTCMP4_Msk /*!< Master compare 4 */
  19574. #define HRTIM_RST1R_TIMEVNT1_Pos (12U)
  19575. #define HRTIM_RST1R_TIMEVNT1_Msk (0x1U << HRTIM_RST1R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19576. #define HRTIM_RST1R_TIMEVNT1 HRTIM_RST1R_TIMEVNT1_Msk /*!< Timer event 1 */
  19577. #define HRTIM_RST1R_TIMEVNT2_Pos (13U)
  19578. #define HRTIM_RST1R_TIMEVNT2_Msk (0x1U << HRTIM_RST1R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19579. #define HRTIM_RST1R_TIMEVNT2 HRTIM_RST1R_TIMEVNT2_Msk /*!< Timer event 2 */
  19580. #define HRTIM_RST1R_TIMEVNT3_Pos (14U)
  19581. #define HRTIM_RST1R_TIMEVNT3_Msk (0x1U << HRTIM_RST1R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19582. #define HRTIM_RST1R_TIMEVNT3 HRTIM_RST1R_TIMEVNT3_Msk /*!< Timer event 3 */
  19583. #define HRTIM_RST1R_TIMEVNT4_Pos (15U)
  19584. #define HRTIM_RST1R_TIMEVNT4_Msk (0x1U << HRTIM_RST1R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19585. #define HRTIM_RST1R_TIMEVNT4 HRTIM_RST1R_TIMEVNT4_Msk /*!< Timer event 4 */
  19586. #define HRTIM_RST1R_TIMEVNT5_Pos (16U)
  19587. #define HRTIM_RST1R_TIMEVNT5_Msk (0x1U << HRTIM_RST1R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19588. #define HRTIM_RST1R_TIMEVNT5 HRTIM_RST1R_TIMEVNT5_Msk /*!< Timer event 5 */
  19589. #define HRTIM_RST1R_TIMEVNT6_Pos (17U)
  19590. #define HRTIM_RST1R_TIMEVNT6_Msk (0x1U << HRTIM_RST1R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19591. #define HRTIM_RST1R_TIMEVNT6 HRTIM_RST1R_TIMEVNT6_Msk /*!< Timer event 6 */
  19592. #define HRTIM_RST1R_TIMEVNT7_Pos (18U)
  19593. #define HRTIM_RST1R_TIMEVNT7_Msk (0x1U << HRTIM_RST1R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19594. #define HRTIM_RST1R_TIMEVNT7 HRTIM_RST1R_TIMEVNT7_Msk /*!< Timer event 7 */
  19595. #define HRTIM_RST1R_TIMEVNT8_Pos (19U)
  19596. #define HRTIM_RST1R_TIMEVNT8_Msk (0x1U << HRTIM_RST1R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19597. #define HRTIM_RST1R_TIMEVNT8 HRTIM_RST1R_TIMEVNT8_Msk /*!< Timer event 8 */
  19598. #define HRTIM_RST1R_TIMEVNT9_Pos (20U)
  19599. #define HRTIM_RST1R_TIMEVNT9_Msk (0x1U << HRTIM_RST1R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19600. #define HRTIM_RST1R_TIMEVNT9 HRTIM_RST1R_TIMEVNT9_Msk /*!< Timer event 9 */
  19601. #define HRTIM_RST1R_EXTVNT1_Pos (21U)
  19602. #define HRTIM_RST1R_EXTVNT1_Msk (0x1U << HRTIM_RST1R_EXTVNT1_Pos) /*!< 0x00200000 */
  19603. #define HRTIM_RST1R_EXTVNT1 HRTIM_RST1R_EXTVNT1_Msk /*!< External event 1 */
  19604. #define HRTIM_RST1R_EXTVNT2_Pos (22U)
  19605. #define HRTIM_RST1R_EXTVNT2_Msk (0x1U << HRTIM_RST1R_EXTVNT2_Pos) /*!< 0x00400000 */
  19606. #define HRTIM_RST1R_EXTVNT2 HRTIM_RST1R_EXTVNT2_Msk /*!< External event 2 */
  19607. #define HRTIM_RST1R_EXTVNT3_Pos (23U)
  19608. #define HRTIM_RST1R_EXTVNT3_Msk (0x1U << HRTIM_RST1R_EXTVNT3_Pos) /*!< 0x00800000 */
  19609. #define HRTIM_RST1R_EXTVNT3 HRTIM_RST1R_EXTVNT3_Msk /*!< External event 3 */
  19610. #define HRTIM_RST1R_EXTVNT4_Pos (24U)
  19611. #define HRTIM_RST1R_EXTVNT4_Msk (0x1U << HRTIM_RST1R_EXTVNT4_Pos) /*!< 0x01000000 */
  19612. #define HRTIM_RST1R_EXTVNT4 HRTIM_RST1R_EXTVNT4_Msk /*!< External event 4 */
  19613. #define HRTIM_RST1R_EXTVNT5_Pos (25U)
  19614. #define HRTIM_RST1R_EXTVNT5_Msk (0x1U << HRTIM_RST1R_EXTVNT5_Pos) /*!< 0x02000000 */
  19615. #define HRTIM_RST1R_EXTVNT5 HRTIM_RST1R_EXTVNT5_Msk /*!< External event 5 */
  19616. #define HRTIM_RST1R_EXTVNT6_Pos (26U)
  19617. #define HRTIM_RST1R_EXTVNT6_Msk (0x1U << HRTIM_RST1R_EXTVNT6_Pos) /*!< 0x04000000 */
  19618. #define HRTIM_RST1R_EXTVNT6 HRTIM_RST1R_EXTVNT6_Msk /*!< External event 6 */
  19619. #define HRTIM_RST1R_EXTVNT7_Pos (27U)
  19620. #define HRTIM_RST1R_EXTVNT7_Msk (0x1U << HRTIM_RST1R_EXTVNT7_Pos) /*!< 0x08000000 */
  19621. #define HRTIM_RST1R_EXTVNT7 HRTIM_RST1R_EXTVNT7_Msk /*!< External event 7 */
  19622. #define HRTIM_RST1R_EXTVNT8_Pos (28U)
  19623. #define HRTIM_RST1R_EXTVNT8_Msk (0x1U << HRTIM_RST1R_EXTVNT8_Pos) /*!< 0x10000000 */
  19624. #define HRTIM_RST1R_EXTVNT8 HRTIM_RST1R_EXTVNT8_Msk /*!< External event 8 */
  19625. #define HRTIM_RST1R_EXTVNT9_Pos (29U)
  19626. #define HRTIM_RST1R_EXTVNT9_Msk (0x1U << HRTIM_RST1R_EXTVNT9_Pos) /*!< 0x20000000 */
  19627. #define HRTIM_RST1R_EXTVNT9 HRTIM_RST1R_EXTVNT9_Msk /*!< External event 9 */
  19628. #define HRTIM_RST1R_EXTVNT10_Pos (30U)
  19629. #define HRTIM_RST1R_EXTVNT10_Msk (0x1U << HRTIM_RST1R_EXTVNT10_Pos) /*!< 0x40000000 */
  19630. #define HRTIM_RST1R_EXTVNT10 HRTIM_RST1R_EXTVNT10_Msk /*!< External event 10 */
  19631. #define HRTIM_RST1R_UPDATE_Pos (31U)
  19632. #define HRTIM_RST1R_UPDATE_Msk (0x1U << HRTIM_RST1R_UPDATE_Pos) /*!< 0x80000000 */
  19633. #define HRTIM_RST1R_UPDATE HRTIM_RST1R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19634. /**** Bit definition for Slave Output 2 set register **************************/
  19635. #define HRTIM_SET2R_SST_Pos (0U)
  19636. #define HRTIM_SET2R_SST_Msk (0x1U << HRTIM_SET2R_SST_Pos) /*!< 0x00000001 */
  19637. #define HRTIM_SET2R_SST HRTIM_SET2R_SST_Msk /*!< software set trigger */
  19638. #define HRTIM_SET2R_RESYNC_Pos (1U)
  19639. #define HRTIM_SET2R_RESYNC_Msk (0x1U << HRTIM_SET2R_RESYNC_Pos) /*!< 0x00000002 */
  19640. #define HRTIM_SET2R_RESYNC HRTIM_SET2R_RESYNC_Msk /*!< Timer A resynchronization */
  19641. #define HRTIM_SET2R_PER_Pos (2U)
  19642. #define HRTIM_SET2R_PER_Msk (0x1U << HRTIM_SET2R_PER_Pos) /*!< 0x00000004 */
  19643. #define HRTIM_SET2R_PER HRTIM_SET2R_PER_Msk /*!< Timer A period */
  19644. #define HRTIM_SET2R_CMP1_Pos (3U)
  19645. #define HRTIM_SET2R_CMP1_Msk (0x1U << HRTIM_SET2R_CMP1_Pos) /*!< 0x00000008 */
  19646. #define HRTIM_SET2R_CMP1 HRTIM_SET2R_CMP1_Msk /*!< Timer A compare 1 */
  19647. #define HRTIM_SET2R_CMP2_Pos (4U)
  19648. #define HRTIM_SET2R_CMP2_Msk (0x1U << HRTIM_SET2R_CMP2_Pos) /*!< 0x00000010 */
  19649. #define HRTIM_SET2R_CMP2 HRTIM_SET2R_CMP2_Msk /*!< Timer A compare 2 */
  19650. #define HRTIM_SET2R_CMP3_Pos (5U)
  19651. #define HRTIM_SET2R_CMP3_Msk (0x1U << HRTIM_SET2R_CMP3_Pos) /*!< 0x00000020 */
  19652. #define HRTIM_SET2R_CMP3 HRTIM_SET2R_CMP3_Msk /*!< Timer A compare 3 */
  19653. #define HRTIM_SET2R_CMP4_Pos (6U)
  19654. #define HRTIM_SET2R_CMP4_Msk (0x1U << HRTIM_SET2R_CMP4_Pos) /*!< 0x00000040 */
  19655. #define HRTIM_SET2R_CMP4 HRTIM_SET2R_CMP4_Msk /*!< Timer A compare 4 */
  19656. #define HRTIM_SET2R_MSTPER_Pos (7U)
  19657. #define HRTIM_SET2R_MSTPER_Msk (0x1U << HRTIM_SET2R_MSTPER_Pos) /*!< 0x00000080 */
  19658. #define HRTIM_SET2R_MSTPER HRTIM_SET2R_MSTPER_Msk /*!< Master period */
  19659. #define HRTIM_SET2R_MSTCMP1_Pos (8U)
  19660. #define HRTIM_SET2R_MSTCMP1_Msk (0x1U << HRTIM_SET2R_MSTCMP1_Pos) /*!< 0x00000100 */
  19661. #define HRTIM_SET2R_MSTCMP1 HRTIM_SET2R_MSTCMP1_Msk /*!< Master compare 1 */
  19662. #define HRTIM_SET2R_MSTCMP2_Pos (9U)
  19663. #define HRTIM_SET2R_MSTCMP2_Msk (0x1U << HRTIM_SET2R_MSTCMP2_Pos) /*!< 0x00000200 */
  19664. #define HRTIM_SET2R_MSTCMP2 HRTIM_SET2R_MSTCMP2_Msk /*!< Master compare 2 */
  19665. #define HRTIM_SET2R_MSTCMP3_Pos (10U)
  19666. #define HRTIM_SET2R_MSTCMP3_Msk (0x1U << HRTIM_SET2R_MSTCMP3_Pos) /*!< 0x00000400 */
  19667. #define HRTIM_SET2R_MSTCMP3 HRTIM_SET2R_MSTCMP3_Msk /*!< Master compare 3 */
  19668. #define HRTIM_SET2R_MSTCMP4_Pos (11U)
  19669. #define HRTIM_SET2R_MSTCMP4_Msk (0x1U << HRTIM_SET2R_MSTCMP4_Pos) /*!< 0x00000800 */
  19670. #define HRTIM_SET2R_MSTCMP4 HRTIM_SET2R_MSTCMP4_Msk /*!< Master compare 4 */
  19671. #define HRTIM_SET2R_TIMEVNT1_Pos (12U)
  19672. #define HRTIM_SET2R_TIMEVNT1_Msk (0x1U << HRTIM_SET2R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19673. #define HRTIM_SET2R_TIMEVNT1 HRTIM_SET2R_TIMEVNT1_Msk /*!< Timer event 1 */
  19674. #define HRTIM_SET2R_TIMEVNT2_Pos (13U)
  19675. #define HRTIM_SET2R_TIMEVNT2_Msk (0x1U << HRTIM_SET2R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19676. #define HRTIM_SET2R_TIMEVNT2 HRTIM_SET2R_TIMEVNT2_Msk /*!< Timer event 2 */
  19677. #define HRTIM_SET2R_TIMEVNT3_Pos (14U)
  19678. #define HRTIM_SET2R_TIMEVNT3_Msk (0x1U << HRTIM_SET2R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19679. #define HRTIM_SET2R_TIMEVNT3 HRTIM_SET2R_TIMEVNT3_Msk /*!< Timer event 3 */
  19680. #define HRTIM_SET2R_TIMEVNT4_Pos (15U)
  19681. #define HRTIM_SET2R_TIMEVNT4_Msk (0x1U << HRTIM_SET2R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19682. #define HRTIM_SET2R_TIMEVNT4 HRTIM_SET2R_TIMEVNT4_Msk /*!< Timer event 4 */
  19683. #define HRTIM_SET2R_TIMEVNT5_Pos (16U)
  19684. #define HRTIM_SET2R_TIMEVNT5_Msk (0x1U << HRTIM_SET2R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19685. #define HRTIM_SET2R_TIMEVNT5 HRTIM_SET2R_TIMEVNT5_Msk /*!< Timer event 5 */
  19686. #define HRTIM_SET2R_TIMEVNT6_Pos (17U)
  19687. #define HRTIM_SET2R_TIMEVNT6_Msk (0x1U << HRTIM_SET2R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19688. #define HRTIM_SET2R_TIMEVNT6 HRTIM_SET2R_TIMEVNT6_Msk /*!< Timer event 6 */
  19689. #define HRTIM_SET2R_TIMEVNT7_Pos (18U)
  19690. #define HRTIM_SET2R_TIMEVNT7_Msk (0x1U << HRTIM_SET2R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19691. #define HRTIM_SET2R_TIMEVNT7 HRTIM_SET2R_TIMEVNT7_Msk /*!< Timer event 7 */
  19692. #define HRTIM_SET2R_TIMEVNT8_Pos (19U)
  19693. #define HRTIM_SET2R_TIMEVNT8_Msk (0x1U << HRTIM_SET2R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19694. #define HRTIM_SET2R_TIMEVNT8 HRTIM_SET2R_TIMEVNT8_Msk /*!< Timer event 8 */
  19695. #define HRTIM_SET2R_TIMEVNT9_Pos (20U)
  19696. #define HRTIM_SET2R_TIMEVNT9_Msk (0x1U << HRTIM_SET2R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19697. #define HRTIM_SET2R_TIMEVNT9 HRTIM_SET2R_TIMEVNT9_Msk /*!< Timer event 9 */
  19698. #define HRTIM_SET2R_EXTVNT1_Pos (21U)
  19699. #define HRTIM_SET2R_EXTVNT1_Msk (0x1U << HRTIM_SET2R_EXTVNT1_Pos) /*!< 0x00200000 */
  19700. #define HRTIM_SET2R_EXTVNT1 HRTIM_SET2R_EXTVNT1_Msk /*!< External event 1 */
  19701. #define HRTIM_SET2R_EXTVNT2_Pos (22U)
  19702. #define HRTIM_SET2R_EXTVNT2_Msk (0x1U << HRTIM_SET2R_EXTVNT2_Pos) /*!< 0x00400000 */
  19703. #define HRTIM_SET2R_EXTVNT2 HRTIM_SET2R_EXTVNT2_Msk /*!< External event 2 */
  19704. #define HRTIM_SET2R_EXTVNT3_Pos (23U)
  19705. #define HRTIM_SET2R_EXTVNT3_Msk (0x1U << HRTIM_SET2R_EXTVNT3_Pos) /*!< 0x00800000 */
  19706. #define HRTIM_SET2R_EXTVNT3 HRTIM_SET2R_EXTVNT3_Msk /*!< External event 3 */
  19707. #define HRTIM_SET2R_EXTVNT4_Pos (24U)
  19708. #define HRTIM_SET2R_EXTVNT4_Msk (0x1U << HRTIM_SET2R_EXTVNT4_Pos) /*!< 0x01000000 */
  19709. #define HRTIM_SET2R_EXTVNT4 HRTIM_SET2R_EXTVNT4_Msk /*!< External event 4 */
  19710. #define HRTIM_SET2R_EXTVNT5_Pos (25U)
  19711. #define HRTIM_SET2R_EXTVNT5_Msk (0x1U << HRTIM_SET2R_EXTVNT5_Pos) /*!< 0x02000000 */
  19712. #define HRTIM_SET2R_EXTVNT5 HRTIM_SET2R_EXTVNT5_Msk /*!< External event 5 */
  19713. #define HRTIM_SET2R_EXTVNT6_Pos (26U)
  19714. #define HRTIM_SET2R_EXTVNT6_Msk (0x1U << HRTIM_SET2R_EXTVNT6_Pos) /*!< 0x04000000 */
  19715. #define HRTIM_SET2R_EXTVNT6 HRTIM_SET2R_EXTVNT6_Msk /*!< External event 6 */
  19716. #define HRTIM_SET2R_EXTVNT7_Pos (27U)
  19717. #define HRTIM_SET2R_EXTVNT7_Msk (0x1U << HRTIM_SET2R_EXTVNT7_Pos) /*!< 0x08000000 */
  19718. #define HRTIM_SET2R_EXTVNT7 HRTIM_SET2R_EXTVNT7_Msk /*!< External event 7 */
  19719. #define HRTIM_SET2R_EXTVNT8_Pos (28U)
  19720. #define HRTIM_SET2R_EXTVNT8_Msk (0x1U << HRTIM_SET2R_EXTVNT8_Pos) /*!< 0x10000000 */
  19721. #define HRTIM_SET2R_EXTVNT8 HRTIM_SET2R_EXTVNT8_Msk /*!< External event 8 */
  19722. #define HRTIM_SET2R_EXTVNT9_Pos (29U)
  19723. #define HRTIM_SET2R_EXTVNT9_Msk (0x1U << HRTIM_SET2R_EXTVNT9_Pos) /*!< 0x20000000 */
  19724. #define HRTIM_SET2R_EXTVNT9 HRTIM_SET2R_EXTVNT9_Msk /*!< External event 9 */
  19725. #define HRTIM_SET2R_EXTVNT10_Pos (30U)
  19726. #define HRTIM_SET2R_EXTVNT10_Msk (0x1U << HRTIM_SET2R_EXTVNT10_Pos) /*!< 0x40000000 */
  19727. #define HRTIM_SET2R_EXTVNT10 HRTIM_SET2R_EXTVNT10_Msk /*!< External event 10 */
  19728. #define HRTIM_SET2R_UPDATE_Pos (31U)
  19729. #define HRTIM_SET2R_UPDATE_Msk (0x1U << HRTIM_SET2R_UPDATE_Pos) /*!< 0x80000000 */
  19730. #define HRTIM_SET2R_UPDATE HRTIM_SET2R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19731. /**** Bit definition for Slave Output 2 reset register ************************/
  19732. #define HRTIM_RST2R_SRT_Pos (0U)
  19733. #define HRTIM_RST2R_SRT_Msk (0x1U << HRTIM_RST2R_SRT_Pos) /*!< 0x00000001 */
  19734. #define HRTIM_RST2R_SRT HRTIM_RST2R_SRT_Msk /*!< software reset trigger */
  19735. #define HRTIM_RST2R_RESYNC_Pos (1U)
  19736. #define HRTIM_RST2R_RESYNC_Msk (0x1U << HRTIM_RST2R_RESYNC_Pos) /*!< 0x00000002 */
  19737. #define HRTIM_RST2R_RESYNC HRTIM_RST2R_RESYNC_Msk /*!< Timer A resynchronization */
  19738. #define HRTIM_RST2R_PER_Pos (2U)
  19739. #define HRTIM_RST2R_PER_Msk (0x1U << HRTIM_RST2R_PER_Pos) /*!< 0x00000004 */
  19740. #define HRTIM_RST2R_PER HRTIM_RST2R_PER_Msk /*!< Timer A period */
  19741. #define HRTIM_RST2R_CMP1_Pos (3U)
  19742. #define HRTIM_RST2R_CMP1_Msk (0x1U << HRTIM_RST2R_CMP1_Pos) /*!< 0x00000008 */
  19743. #define HRTIM_RST2R_CMP1 HRTIM_RST2R_CMP1_Msk /*!< Timer A compare 1 */
  19744. #define HRTIM_RST2R_CMP2_Pos (4U)
  19745. #define HRTIM_RST2R_CMP2_Msk (0x1U << HRTIM_RST2R_CMP2_Pos) /*!< 0x00000010 */
  19746. #define HRTIM_RST2R_CMP2 HRTIM_RST2R_CMP2_Msk /*!< Timer A compare 2 */
  19747. #define HRTIM_RST2R_CMP3_Pos (5U)
  19748. #define HRTIM_RST2R_CMP3_Msk (0x1U << HRTIM_RST2R_CMP3_Pos) /*!< 0x00000020 */
  19749. #define HRTIM_RST2R_CMP3 HRTIM_RST2R_CMP3_Msk /*!< Timer A compare 3 */
  19750. #define HRTIM_RST2R_CMP4_Pos (6U)
  19751. #define HRTIM_RST2R_CMP4_Msk (0x1U << HRTIM_RST2R_CMP4_Pos) /*!< 0x00000040 */
  19752. #define HRTIM_RST2R_CMP4 HRTIM_RST2R_CMP4_Msk /*!< Timer A compare 4 */
  19753. #define HRTIM_RST2R_MSTPER_Pos (7U)
  19754. #define HRTIM_RST2R_MSTPER_Msk (0x1U << HRTIM_RST2R_MSTPER_Pos) /*!< 0x00000080 */
  19755. #define HRTIM_RST2R_MSTPER HRTIM_RST2R_MSTPER_Msk /*!< Master period */
  19756. #define HRTIM_RST2R_MSTCMP1_Pos (8U)
  19757. #define HRTIM_RST2R_MSTCMP1_Msk (0x1U << HRTIM_RST2R_MSTCMP1_Pos) /*!< 0x00000100 */
  19758. #define HRTIM_RST2R_MSTCMP1 HRTIM_RST2R_MSTCMP1_Msk /*!< Master compare 1 */
  19759. #define HRTIM_RST2R_MSTCMP2_Pos (9U)
  19760. #define HRTIM_RST2R_MSTCMP2_Msk (0x1U << HRTIM_RST2R_MSTCMP2_Pos) /*!< 0x00000200 */
  19761. #define HRTIM_RST2R_MSTCMP2 HRTIM_RST2R_MSTCMP2_Msk /*!< Master compare 2 */
  19762. #define HRTIM_RST2R_MSTCMP3_Pos (10U)
  19763. #define HRTIM_RST2R_MSTCMP3_Msk (0x1U << HRTIM_RST2R_MSTCMP3_Pos) /*!< 0x00000400 */
  19764. #define HRTIM_RST2R_MSTCMP3 HRTIM_RST2R_MSTCMP3_Msk /*!< Master compare 3 */
  19765. #define HRTIM_RST2R_MSTCMP4_Pos (11U)
  19766. #define HRTIM_RST2R_MSTCMP4_Msk (0x1U << HRTIM_RST2R_MSTCMP4_Pos) /*!< 0x00000800 */
  19767. #define HRTIM_RST2R_MSTCMP4 HRTIM_RST2R_MSTCMP4_Msk /*!< Master compare 4 */
  19768. #define HRTIM_RST2R_TIMEVNT1_Pos (12U)
  19769. #define HRTIM_RST2R_TIMEVNT1_Msk (0x1U << HRTIM_RST2R_TIMEVNT1_Pos) /*!< 0x00001000 */
  19770. #define HRTIM_RST2R_TIMEVNT1 HRTIM_RST2R_TIMEVNT1_Msk /*!< Timer event 1 */
  19771. #define HRTIM_RST2R_TIMEVNT2_Pos (13U)
  19772. #define HRTIM_RST2R_TIMEVNT2_Msk (0x1U << HRTIM_RST2R_TIMEVNT2_Pos) /*!< 0x00002000 */
  19773. #define HRTIM_RST2R_TIMEVNT2 HRTIM_RST2R_TIMEVNT2_Msk /*!< Timer event 2 */
  19774. #define HRTIM_RST2R_TIMEVNT3_Pos (14U)
  19775. #define HRTIM_RST2R_TIMEVNT3_Msk (0x1U << HRTIM_RST2R_TIMEVNT3_Pos) /*!< 0x00004000 */
  19776. #define HRTIM_RST2R_TIMEVNT3 HRTIM_RST2R_TIMEVNT3_Msk /*!< Timer event 3 */
  19777. #define HRTIM_RST2R_TIMEVNT4_Pos (15U)
  19778. #define HRTIM_RST2R_TIMEVNT4_Msk (0x1U << HRTIM_RST2R_TIMEVNT4_Pos) /*!< 0x00008000 */
  19779. #define HRTIM_RST2R_TIMEVNT4 HRTIM_RST2R_TIMEVNT4_Msk /*!< Timer event 4 */
  19780. #define HRTIM_RST2R_TIMEVNT5_Pos (16U)
  19781. #define HRTIM_RST2R_TIMEVNT5_Msk (0x1U << HRTIM_RST2R_TIMEVNT5_Pos) /*!< 0x00010000 */
  19782. #define HRTIM_RST2R_TIMEVNT5 HRTIM_RST2R_TIMEVNT5_Msk /*!< Timer event 5 */
  19783. #define HRTIM_RST2R_TIMEVNT6_Pos (17U)
  19784. #define HRTIM_RST2R_TIMEVNT6_Msk (0x1U << HRTIM_RST2R_TIMEVNT6_Pos) /*!< 0x00020000 */
  19785. #define HRTIM_RST2R_TIMEVNT6 HRTIM_RST2R_TIMEVNT6_Msk /*!< Timer event 6 */
  19786. #define HRTIM_RST2R_TIMEVNT7_Pos (18U)
  19787. #define HRTIM_RST2R_TIMEVNT7_Msk (0x1U << HRTIM_RST2R_TIMEVNT7_Pos) /*!< 0x00040000 */
  19788. #define HRTIM_RST2R_TIMEVNT7 HRTIM_RST2R_TIMEVNT7_Msk /*!< Timer event 7 */
  19789. #define HRTIM_RST2R_TIMEVNT8_Pos (19U)
  19790. #define HRTIM_RST2R_TIMEVNT8_Msk (0x1U << HRTIM_RST2R_TIMEVNT8_Pos) /*!< 0x00080000 */
  19791. #define HRTIM_RST2R_TIMEVNT8 HRTIM_RST2R_TIMEVNT8_Msk /*!< Timer event 8 */
  19792. #define HRTIM_RST2R_TIMEVNT9_Pos (20U)
  19793. #define HRTIM_RST2R_TIMEVNT9_Msk (0x1U << HRTIM_RST2R_TIMEVNT9_Pos) /*!< 0x00100000 */
  19794. #define HRTIM_RST2R_TIMEVNT9 HRTIM_RST2R_TIMEVNT9_Msk /*!< Timer event 9 */
  19795. #define HRTIM_RST2R_EXTVNT1_Pos (21U)
  19796. #define HRTIM_RST2R_EXTVNT1_Msk (0x1U << HRTIM_RST2R_EXTVNT1_Pos) /*!< 0x00200000 */
  19797. #define HRTIM_RST2R_EXTVNT1 HRTIM_RST2R_EXTVNT1_Msk /*!< External event 1 */
  19798. #define HRTIM_RST2R_EXTVNT2_Pos (22U)
  19799. #define HRTIM_RST2R_EXTVNT2_Msk (0x1U << HRTIM_RST2R_EXTVNT2_Pos) /*!< 0x00400000 */
  19800. #define HRTIM_RST2R_EXTVNT2 HRTIM_RST2R_EXTVNT2_Msk /*!< External event 2 */
  19801. #define HRTIM_RST2R_EXTVNT3_Pos (23U)
  19802. #define HRTIM_RST2R_EXTVNT3_Msk (0x1U << HRTIM_RST2R_EXTVNT3_Pos) /*!< 0x00800000 */
  19803. #define HRTIM_RST2R_EXTVNT3 HRTIM_RST2R_EXTVNT3_Msk /*!< External event 3 */
  19804. #define HRTIM_RST2R_EXTVNT4_Pos (24U)
  19805. #define HRTIM_RST2R_EXTVNT4_Msk (0x1U << HRTIM_RST2R_EXTVNT4_Pos) /*!< 0x01000000 */
  19806. #define HRTIM_RST2R_EXTVNT4 HRTIM_RST2R_EXTVNT4_Msk /*!< External event 4 */
  19807. #define HRTIM_RST2R_EXTVNT5_Pos (25U)
  19808. #define HRTIM_RST2R_EXTVNT5_Msk (0x1U << HRTIM_RST2R_EXTVNT5_Pos) /*!< 0x02000000 */
  19809. #define HRTIM_RST2R_EXTVNT5 HRTIM_RST2R_EXTVNT5_Msk /*!< External event 5 */
  19810. #define HRTIM_RST2R_EXTVNT6_Pos (26U)
  19811. #define HRTIM_RST2R_EXTVNT6_Msk (0x1U << HRTIM_RST2R_EXTVNT6_Pos) /*!< 0x04000000 */
  19812. #define HRTIM_RST2R_EXTVNT6 HRTIM_RST2R_EXTVNT6_Msk /*!< External event 6 */
  19813. #define HRTIM_RST2R_EXTVNT7_Pos (27U)
  19814. #define HRTIM_RST2R_EXTVNT7_Msk (0x1U << HRTIM_RST2R_EXTVNT7_Pos) /*!< 0x08000000 */
  19815. #define HRTIM_RST2R_EXTVNT7 HRTIM_RST2R_EXTVNT7_Msk /*!< External event 7 */
  19816. #define HRTIM_RST2R_EXTVNT8_Pos (28U)
  19817. #define HRTIM_RST2R_EXTVNT8_Msk (0x1U << HRTIM_RST2R_EXTVNT8_Pos) /*!< 0x10000000 */
  19818. #define HRTIM_RST2R_EXTVNT8 HRTIM_RST2R_EXTVNT8_Msk /*!< External event 8 */
  19819. #define HRTIM_RST2R_EXTVNT9_Pos (29U)
  19820. #define HRTIM_RST2R_EXTVNT9_Msk (0x1U << HRTIM_RST2R_EXTVNT9_Pos) /*!< 0x20000000 */
  19821. #define HRTIM_RST2R_EXTVNT9 HRTIM_RST2R_EXTVNT9_Msk /*!< External event 9 */
  19822. #define HRTIM_RST2R_EXTVNT10_Pos (30U)
  19823. #define HRTIM_RST2R_EXTVNT10_Msk (0x1U << HRTIM_RST2R_EXTVNT10_Pos) /*!< 0x40000000 */
  19824. #define HRTIM_RST2R_EXTVNT10 HRTIM_RST2R_EXTVNT10_Msk /*!< External event 10 */
  19825. #define HRTIM_RST2R_UPDATE_Pos (31U)
  19826. #define HRTIM_RST2R_UPDATE_Msk (0x1U << HRTIM_RST2R_UPDATE_Pos) /*!< 0x80000000 */
  19827. #define HRTIM_RST2R_UPDATE HRTIM_RST2R_UPDATE_Msk /*!< Register update (transfer preload to active) */
  19828. /**** Bit definition for Slave external event filtering register 1 ***********/
  19829. #define HRTIM_EEFR1_EE1LTCH_Pos (0U)
  19830. #define HRTIM_EEFR1_EE1LTCH_Msk (0x1U << HRTIM_EEFR1_EE1LTCH_Pos) /*!< 0x00000001 */
  19831. #define HRTIM_EEFR1_EE1LTCH HRTIM_EEFR1_EE1LTCH_Msk /*!< External Event 1 latch */
  19832. #define HRTIM_EEFR1_EE1FLTR_Pos (1U)
  19833. #define HRTIM_EEFR1_EE1FLTR_Msk (0xFU << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x0000001E */
  19834. #define HRTIM_EEFR1_EE1FLTR HRTIM_EEFR1_EE1FLTR_Msk /*!< External Event 1 filter mask */
  19835. #define HRTIM_EEFR1_EE1FLTR_0 (0x1U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000002 */
  19836. #define HRTIM_EEFR1_EE1FLTR_1 (0x2U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000004 */
  19837. #define HRTIM_EEFR1_EE1FLTR_2 (0x4U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000008 */
  19838. #define HRTIM_EEFR1_EE1FLTR_3 (0x8U << HRTIM_EEFR1_EE1FLTR_Pos) /*!< 0x00000010 */
  19839. #define HRTIM_EEFR1_EE2LTCH_Pos (6U)
  19840. #define HRTIM_EEFR1_EE2LTCH_Msk (0x1U << HRTIM_EEFR1_EE2LTCH_Pos) /*!< 0x00000040 */
  19841. #define HRTIM_EEFR1_EE2LTCH HRTIM_EEFR1_EE2LTCH_Msk /*!< External Event 2 latch */
  19842. #define HRTIM_EEFR1_EE2FLTR_Pos (7U)
  19843. #define HRTIM_EEFR1_EE2FLTR_Msk (0xFU << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000780 */
  19844. #define HRTIM_EEFR1_EE2FLTR HRTIM_EEFR1_EE2FLTR_Msk /*!< External Event 2 filter mask */
  19845. #define HRTIM_EEFR1_EE2FLTR_0 (0x1U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000080 */
  19846. #define HRTIM_EEFR1_EE2FLTR_1 (0x2U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000100 */
  19847. #define HRTIM_EEFR1_EE2FLTR_2 (0x4U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000200 */
  19848. #define HRTIM_EEFR1_EE2FLTR_3 (0x8U << HRTIM_EEFR1_EE2FLTR_Pos) /*!< 0x00000400 */
  19849. #define HRTIM_EEFR1_EE3LTCH_Pos (12U)
  19850. #define HRTIM_EEFR1_EE3LTCH_Msk (0x1U << HRTIM_EEFR1_EE3LTCH_Pos) /*!< 0x00001000 */
  19851. #define HRTIM_EEFR1_EE3LTCH HRTIM_EEFR1_EE3LTCH_Msk /*!< External Event 3 latch */
  19852. #define HRTIM_EEFR1_EE3FLTR_Pos (13U)
  19853. #define HRTIM_EEFR1_EE3FLTR_Msk (0xFU << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x0001E000 */
  19854. #define HRTIM_EEFR1_EE3FLTR HRTIM_EEFR1_EE3FLTR_Msk /*!< External Event 3 filter mask */
  19855. #define HRTIM_EEFR1_EE3FLTR_0 (0x1U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00002000 */
  19856. #define HRTIM_EEFR1_EE3FLTR_1 (0x2U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00004000 */
  19857. #define HRTIM_EEFR1_EE3FLTR_2 (0x4U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00008000 */
  19858. #define HRTIM_EEFR1_EE3FLTR_3 (0x8U << HRTIM_EEFR1_EE3FLTR_Pos) /*!< 0x00010000 */
  19859. #define HRTIM_EEFR1_EE4LTCH_Pos (18U)
  19860. #define HRTIM_EEFR1_EE4LTCH_Msk (0x1U << HRTIM_EEFR1_EE4LTCH_Pos) /*!< 0x00040000 */
  19861. #define HRTIM_EEFR1_EE4LTCH HRTIM_EEFR1_EE4LTCH_Msk /*!< External Event 4 latch */
  19862. #define HRTIM_EEFR1_EE4FLTR_Pos (19U)
  19863. #define HRTIM_EEFR1_EE4FLTR_Msk (0xFU << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00780000 */
  19864. #define HRTIM_EEFR1_EE4FLTR HRTIM_EEFR1_EE4FLTR_Msk /*!< External Event 4 filter mask */
  19865. #define HRTIM_EEFR1_EE4FLTR_0 (0x1U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00080000 */
  19866. #define HRTIM_EEFR1_EE4FLTR_1 (0x2U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00100000 */
  19867. #define HRTIM_EEFR1_EE4FLTR_2 (0x4U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00200000 */
  19868. #define HRTIM_EEFR1_EE4FLTR_3 (0x8U << HRTIM_EEFR1_EE4FLTR_Pos) /*!< 0x00400000 */
  19869. #define HRTIM_EEFR1_EE5LTCH_Pos (24U)
  19870. #define HRTIM_EEFR1_EE5LTCH_Msk (0x1U << HRTIM_EEFR1_EE5LTCH_Pos) /*!< 0x01000000 */
  19871. #define HRTIM_EEFR1_EE5LTCH HRTIM_EEFR1_EE5LTCH_Msk /*!< External Event 5 latch */
  19872. #define HRTIM_EEFR1_EE5FLTR_Pos (25U)
  19873. #define HRTIM_EEFR1_EE5FLTR_Msk (0xFU << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x1E000000 */
  19874. #define HRTIM_EEFR1_EE5FLTR HRTIM_EEFR1_EE5FLTR_Msk /*!< External Event 5 filter mask */
  19875. #define HRTIM_EEFR1_EE5FLTR_0 (0x1U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x02000000 */
  19876. #define HRTIM_EEFR1_EE5FLTR_1 (0x2U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x04000000 */
  19877. #define HRTIM_EEFR1_EE5FLTR_2 (0x4U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x08000000 */
  19878. #define HRTIM_EEFR1_EE5FLTR_3 (0x8U << HRTIM_EEFR1_EE5FLTR_Pos) /*!< 0x10000000 */
  19879. /**** Bit definition for Slave external event filtering register 2 ***********/
  19880. #define HRTIM_EEFR2_EE6LTCH_Pos (0U)
  19881. #define HRTIM_EEFR2_EE6LTCH_Msk (0x1U << HRTIM_EEFR2_EE6LTCH_Pos) /*!< 0x00000001 */
  19882. #define HRTIM_EEFR2_EE6LTCH HRTIM_EEFR2_EE6LTCH_Msk /*!< External Event 6 latch */
  19883. #define HRTIM_EEFR2_EE6FLTR_Pos (1U)
  19884. #define HRTIM_EEFR2_EE6FLTR_Msk (0xFU << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x0000001E */
  19885. #define HRTIM_EEFR2_EE6FLTR HRTIM_EEFR2_EE6FLTR_Msk /*!< External Event 6 filter mask */
  19886. #define HRTIM_EEFR2_EE6FLTR_0 (0x1U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000002 */
  19887. #define HRTIM_EEFR2_EE6FLTR_1 (0x2U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000004 */
  19888. #define HRTIM_EEFR2_EE6FLTR_2 (0x4U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000008 */
  19889. #define HRTIM_EEFR2_EE6FLTR_3 (0x8U << HRTIM_EEFR2_EE6FLTR_Pos) /*!< 0x00000010 */
  19890. #define HRTIM_EEFR2_EE7LTCH_Pos (6U)
  19891. #define HRTIM_EEFR2_EE7LTCH_Msk (0x1U << HRTIM_EEFR2_EE7LTCH_Pos) /*!< 0x00000040 */
  19892. #define HRTIM_EEFR2_EE7LTCH HRTIM_EEFR2_EE7LTCH_Msk /*!< External Event 7 latch */
  19893. #define HRTIM_EEFR2_EE7FLTR_Pos (7U)
  19894. #define HRTIM_EEFR2_EE7FLTR_Msk (0xFU << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000780 */
  19895. #define HRTIM_EEFR2_EE7FLTR HRTIM_EEFR2_EE7FLTR_Msk /*!< External Event 7 filter mask */
  19896. #define HRTIM_EEFR2_EE7FLTR_0 (0x1U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000080 */
  19897. #define HRTIM_EEFR2_EE7FLTR_1 (0x2U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000100 */
  19898. #define HRTIM_EEFR2_EE7FLTR_2 (0x4U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000200 */
  19899. #define HRTIM_EEFR2_EE7FLTR_3 (0x8U << HRTIM_EEFR2_EE7FLTR_Pos) /*!< 0x00000400 */
  19900. #define HRTIM_EEFR2_EE8LTCH_Pos (12U)
  19901. #define HRTIM_EEFR2_EE8LTCH_Msk (0x1U << HRTIM_EEFR2_EE8LTCH_Pos) /*!< 0x00001000 */
  19902. #define HRTIM_EEFR2_EE8LTCH HRTIM_EEFR2_EE8LTCH_Msk /*!< External Event 8 latch */
  19903. #define HRTIM_EEFR2_EE8FLTR_Pos (13U)
  19904. #define HRTIM_EEFR2_EE8FLTR_Msk (0xFU << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x0001E000 */
  19905. #define HRTIM_EEFR2_EE8FLTR HRTIM_EEFR2_EE8FLTR_Msk /*!< External Event 8 filter mask */
  19906. #define HRTIM_EEFR2_EE8FLTR_0 (0x1U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00002000 */
  19907. #define HRTIM_EEFR2_EE8FLTR_1 (0x2U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00004000 */
  19908. #define HRTIM_EEFR2_EE8FLTR_2 (0x4U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00008000 */
  19909. #define HRTIM_EEFR2_EE8FLTR_3 (0x8U << HRTIM_EEFR2_EE8FLTR_Pos) /*!< 0x00010000 */
  19910. #define HRTIM_EEFR2_EE9LTCH_Pos (18U)
  19911. #define HRTIM_EEFR2_EE9LTCH_Msk (0x1U << HRTIM_EEFR2_EE9LTCH_Pos) /*!< 0x00040000 */
  19912. #define HRTIM_EEFR2_EE9LTCH HRTIM_EEFR2_EE9LTCH_Msk /*!< External Event 9 latch */
  19913. #define HRTIM_EEFR2_EE9FLTR_Pos (19U)
  19914. #define HRTIM_EEFR2_EE9FLTR_Msk (0xFU << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00780000 */
  19915. #define HRTIM_EEFR2_EE9FLTR HRTIM_EEFR2_EE9FLTR_Msk /*!< External Event 9 filter mask */
  19916. #define HRTIM_EEFR2_EE9FLTR_0 (0x1U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00080000 */
  19917. #define HRTIM_EEFR2_EE9FLTR_1 (0x2U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00100000 */
  19918. #define HRTIM_EEFR2_EE9FLTR_2 (0x4U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00200000 */
  19919. #define HRTIM_EEFR2_EE9FLTR_3 (0x8U << HRTIM_EEFR2_EE9FLTR_Pos) /*!< 0x00400000 */
  19920. #define HRTIM_EEFR2_EE10LTCH_Pos (24U)
  19921. #define HRTIM_EEFR2_EE10LTCH_Msk (0x1U << HRTIM_EEFR2_EE10LTCH_Pos) /*!< 0x01000000 */
  19922. #define HRTIM_EEFR2_EE10LTCH HRTIM_EEFR2_EE10LTCH_Msk /*!< External Event 10 latch */
  19923. #define HRTIM_EEFR2_EE10FLTR_Pos (25U)
  19924. #define HRTIM_EEFR2_EE10FLTR_Msk (0xFU << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x1E000000 */
  19925. #define HRTIM_EEFR2_EE10FLTR HRTIM_EEFR2_EE10FLTR_Msk /*!< External Event 10 filter mask */
  19926. #define HRTIM_EEFR2_EE10FLTR_0 (0x1U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x02000000 */
  19927. #define HRTIM_EEFR2_EE10FLTR_1 (0x2U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x04000000 */
  19928. #define HRTIM_EEFR2_EE10FLTR_2 (0x4U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x08000000 */
  19929. #define HRTIM_EEFR2_EE10FLTR_3 (0x8U << HRTIM_EEFR2_EE10FLTR_Pos) /*!< 0x10000000 */
  19930. /**** Bit definition for Slave Timer reset register ***************************/
  19931. #define HRTIM_RSTR_UPDATE_Pos (1U)
  19932. #define HRTIM_RSTR_UPDATE_Msk (0x1U << HRTIM_RSTR_UPDATE_Pos) /*!< 0x00000002 */
  19933. #define HRTIM_RSTR_UPDATE HRTIM_RSTR_UPDATE_Msk /*!< Timer update */
  19934. #define HRTIM_RSTR_CMP2_Pos (2U)
  19935. #define HRTIM_RSTR_CMP2_Msk (0x1U << HRTIM_RSTR_CMP2_Pos) /*!< 0x00000004 */
  19936. #define HRTIM_RSTR_CMP2 HRTIM_RSTR_CMP2_Msk /*!< Timer compare2 */
  19937. #define HRTIM_RSTR_CMP4_Pos (3U)
  19938. #define HRTIM_RSTR_CMP4_Msk (0x1U << HRTIM_RSTR_CMP4_Pos) /*!< 0x00000008 */
  19939. #define HRTIM_RSTR_CMP4 HRTIM_RSTR_CMP4_Msk /*!< Timer compare4 */
  19940. #define HRTIM_RSTR_MSTPER_Pos (4U)
  19941. #define HRTIM_RSTR_MSTPER_Msk (0x1U << HRTIM_RSTR_MSTPER_Pos) /*!< 0x00000010 */
  19942. #define HRTIM_RSTR_MSTPER HRTIM_RSTR_MSTPER_Msk /*!< Master period */
  19943. #define HRTIM_RSTR_MSTCMP1_Pos (5U)
  19944. #define HRTIM_RSTR_MSTCMP1_Msk (0x1U << HRTIM_RSTR_MSTCMP1_Pos) /*!< 0x00000020 */
  19945. #define HRTIM_RSTR_MSTCMP1 HRTIM_RSTR_MSTCMP1_Msk /*!< Master compare1 */
  19946. #define HRTIM_RSTR_MSTCMP2_Pos (6U)
  19947. #define HRTIM_RSTR_MSTCMP2_Msk (0x1U << HRTIM_RSTR_MSTCMP2_Pos) /*!< 0x00000040 */
  19948. #define HRTIM_RSTR_MSTCMP2 HRTIM_RSTR_MSTCMP2_Msk /*!< Master compare2 */
  19949. #define HRTIM_RSTR_MSTCMP3_Pos (7U)
  19950. #define HRTIM_RSTR_MSTCMP3_Msk (0x1U << HRTIM_RSTR_MSTCMP3_Pos) /*!< 0x00000080 */
  19951. #define HRTIM_RSTR_MSTCMP3 HRTIM_RSTR_MSTCMP3_Msk /*!< Master compare3 */
  19952. #define HRTIM_RSTR_MSTCMP4_Pos (8U)
  19953. #define HRTIM_RSTR_MSTCMP4_Msk (0x1U << HRTIM_RSTR_MSTCMP4_Pos) /*!< 0x00000100 */
  19954. #define HRTIM_RSTR_MSTCMP4 HRTIM_RSTR_MSTCMP4_Msk /*!< Master compare4 */
  19955. #define HRTIM_RSTR_EXTEVNT1_Pos (9U)
  19956. #define HRTIM_RSTR_EXTEVNT1_Msk (0x1U << HRTIM_RSTR_EXTEVNT1_Pos) /*!< 0x00000200 */
  19957. #define HRTIM_RSTR_EXTEVNT1 HRTIM_RSTR_EXTEVNT1_Msk /*!< External event 1 */
  19958. #define HRTIM_RSTR_EXTEVNT2_Pos (10U)
  19959. #define HRTIM_RSTR_EXTEVNT2_Msk (0x1U << HRTIM_RSTR_EXTEVNT2_Pos) /*!< 0x00000400 */
  19960. #define HRTIM_RSTR_EXTEVNT2 HRTIM_RSTR_EXTEVNT2_Msk /*!< External event 2 */
  19961. #define HRTIM_RSTR_EXTEVNT3_Pos (11U)
  19962. #define HRTIM_RSTR_EXTEVNT3_Msk (0x1U << HRTIM_RSTR_EXTEVNT3_Pos) /*!< 0x00000800 */
  19963. #define HRTIM_RSTR_EXTEVNT3 HRTIM_RSTR_EXTEVNT3_Msk /*!< External event 3 */
  19964. #define HRTIM_RSTR_EXTEVNT4_Pos (12U)
  19965. #define HRTIM_RSTR_EXTEVNT4_Msk (0x1U << HRTIM_RSTR_EXTEVNT4_Pos) /*!< 0x00001000 */
  19966. #define HRTIM_RSTR_EXTEVNT4 HRTIM_RSTR_EXTEVNT4_Msk /*!< External event 4 */
  19967. #define HRTIM_RSTR_EXTEVNT5_Pos (13U)
  19968. #define HRTIM_RSTR_EXTEVNT5_Msk (0x1U << HRTIM_RSTR_EXTEVNT5_Pos) /*!< 0x00002000 */
  19969. #define HRTIM_RSTR_EXTEVNT5 HRTIM_RSTR_EXTEVNT5_Msk /*!< External event 5 */
  19970. #define HRTIM_RSTR_EXTEVNT6_Pos (14U)
  19971. #define HRTIM_RSTR_EXTEVNT6_Msk (0x1U << HRTIM_RSTR_EXTEVNT6_Pos) /*!< 0x00004000 */
  19972. #define HRTIM_RSTR_EXTEVNT6 HRTIM_RSTR_EXTEVNT6_Msk /*!< External event 6 */
  19973. #define HRTIM_RSTR_EXTEVNT7_Pos (15U)
  19974. #define HRTIM_RSTR_EXTEVNT7_Msk (0x1U << HRTIM_RSTR_EXTEVNT7_Pos) /*!< 0x00008000 */
  19975. #define HRTIM_RSTR_EXTEVNT7 HRTIM_RSTR_EXTEVNT7_Msk /*!< External event 7 */
  19976. #define HRTIM_RSTR_EXTEVNT8_Pos (16U)
  19977. #define HRTIM_RSTR_EXTEVNT8_Msk (0x1U << HRTIM_RSTR_EXTEVNT8_Pos) /*!< 0x00010000 */
  19978. #define HRTIM_RSTR_EXTEVNT8 HRTIM_RSTR_EXTEVNT8_Msk /*!< External event 8 */
  19979. #define HRTIM_RSTR_EXTEVNT9_Pos (17U)
  19980. #define HRTIM_RSTR_EXTEVNT9_Msk (0x1U << HRTIM_RSTR_EXTEVNT9_Pos) /*!< 0x00020000 */
  19981. #define HRTIM_RSTR_EXTEVNT9 HRTIM_RSTR_EXTEVNT9_Msk /*!< External event 9 */
  19982. #define HRTIM_RSTR_EXTEVNT10_Pos (18U)
  19983. #define HRTIM_RSTR_EXTEVNT10_Msk (0x1U << HRTIM_RSTR_EXTEVNT10_Pos) /*!< 0x00040000 */
  19984. #define HRTIM_RSTR_EXTEVNT10 HRTIM_RSTR_EXTEVNT10_Msk /*!< External event 10 */
  19985. #define HRTIM_RSTR_TIMBCMP1_Pos (19U)
  19986. #define HRTIM_RSTR_TIMBCMP1_Msk (0x1U << HRTIM_RSTR_TIMBCMP1_Pos) /*!< 0x00080000 */
  19987. #define HRTIM_RSTR_TIMBCMP1 HRTIM_RSTR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  19988. #define HRTIM_RSTR_TIMBCMP2_Pos (20U)
  19989. #define HRTIM_RSTR_TIMBCMP2_Msk (0x1U << HRTIM_RSTR_TIMBCMP2_Pos) /*!< 0x00100000 */
  19990. #define HRTIM_RSTR_TIMBCMP2 HRTIM_RSTR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  19991. #define HRTIM_RSTR_TIMBCMP4_Pos (21U)
  19992. #define HRTIM_RSTR_TIMBCMP4_Msk (0x1U << HRTIM_RSTR_TIMBCMP4_Pos) /*!< 0x00200000 */
  19993. #define HRTIM_RSTR_TIMBCMP4 HRTIM_RSTR_TIMBCMP4_Msk /*!< Timer B compare 4 */
  19994. #define HRTIM_RSTR_TIMCCMP1_Pos (22U)
  19995. #define HRTIM_RSTR_TIMCCMP1_Msk (0x1U << HRTIM_RSTR_TIMCCMP1_Pos) /*!< 0x00400000 */
  19996. #define HRTIM_RSTR_TIMCCMP1 HRTIM_RSTR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  19997. #define HRTIM_RSTR_TIMCCMP2_Pos (23U)
  19998. #define HRTIM_RSTR_TIMCCMP2_Msk (0x1U << HRTIM_RSTR_TIMCCMP2_Pos) /*!< 0x00800000 */
  19999. #define HRTIM_RSTR_TIMCCMP2 HRTIM_RSTR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20000. #define HRTIM_RSTR_TIMCCMP4_Pos (24U)
  20001. #define HRTIM_RSTR_TIMCCMP4_Msk (0x1U << HRTIM_RSTR_TIMCCMP4_Pos) /*!< 0x01000000 */
  20002. #define HRTIM_RSTR_TIMCCMP4 HRTIM_RSTR_TIMCCMP4_Msk /*!< Timer C compare 4 */
  20003. #define HRTIM_RSTR_TIMDCMP1_Pos (25U)
  20004. #define HRTIM_RSTR_TIMDCMP1_Msk (0x1U << HRTIM_RSTR_TIMDCMP1_Pos) /*!< 0x02000000 */
  20005. #define HRTIM_RSTR_TIMDCMP1 HRTIM_RSTR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20006. #define HRTIM_RSTR_TIMDCMP2_Pos (26U)
  20007. #define HRTIM_RSTR_TIMDCMP2_Msk (0x1U << HRTIM_RSTR_TIMDCMP2_Pos) /*!< 0x04000000 */
  20008. #define HRTIM_RSTR_TIMDCMP2 HRTIM_RSTR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20009. #define HRTIM_RSTR_TIMDCMP4_Pos (27U)
  20010. #define HRTIM_RSTR_TIMDCMP4_Msk (0x1U << HRTIM_RSTR_TIMDCMP4_Pos) /*!< 0x08000000 */
  20011. #define HRTIM_RSTR_TIMDCMP4 HRTIM_RSTR_TIMDCMP4_Msk /*!< Timer D compare 4 */
  20012. #define HRTIM_RSTR_TIMECMP1_Pos (28U)
  20013. #define HRTIM_RSTR_TIMECMP1_Msk (0x1U << HRTIM_RSTR_TIMECMP1_Pos) /*!< 0x10000000 */
  20014. #define HRTIM_RSTR_TIMECMP1 HRTIM_RSTR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20015. #define HRTIM_RSTR_TIMECMP2_Pos (29U)
  20016. #define HRTIM_RSTR_TIMECMP2_Msk (0x1U << HRTIM_RSTR_TIMECMP2_Pos) /*!< 0x20000000 */
  20017. #define HRTIM_RSTR_TIMECMP2 HRTIM_RSTR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20018. #define HRTIM_RSTR_TIMECMP4_Pos (30U)
  20019. #define HRTIM_RSTR_TIMECMP4_Msk (0x1U << HRTIM_RSTR_TIMECMP4_Pos) /*!< 0x40000000 */
  20020. #define HRTIM_RSTR_TIMECMP4 HRTIM_RSTR_TIMECMP4_Msk /*!< Timer E compare 4 */
  20021. /**** Bit definition for Slave Timer Chopper register *************************/
  20022. #define HRTIM_CHPR_CARFRQ_Pos (0U)
  20023. #define HRTIM_CHPR_CARFRQ_Msk (0xFU << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x0000000F */
  20024. #define HRTIM_CHPR_CARFRQ HRTIM_CHPR_CARFRQ_Msk /*!< Timer carrier frequency value */
  20025. #define HRTIM_CHPR_CARFRQ_0 (0x1U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000001 */
  20026. #define HRTIM_CHPR_CARFRQ_1 (0x2U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000002 */
  20027. #define HRTIM_CHPR_CARFRQ_2 (0x4U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000004 */
  20028. #define HRTIM_CHPR_CARFRQ_3 (0x8U << HRTIM_CHPR_CARFRQ_Pos) /*!< 0x00000008 */
  20029. #define HRTIM_CHPR_CARDTY_Pos (4U)
  20030. #define HRTIM_CHPR_CARDTY_Msk (0x7U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000070 */
  20031. #define HRTIM_CHPR_CARDTY HRTIM_CHPR_CARDTY_Msk /*!< Timer chopper duty cycle value */
  20032. #define HRTIM_CHPR_CARDTY_0 (0x1U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000010 */
  20033. #define HRTIM_CHPR_CARDTY_1 (0x2U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000020 */
  20034. #define HRTIM_CHPR_CARDTY_2 (0x4U << HRTIM_CHPR_CARDTY_Pos) /*!< 0x00000040 */
  20035. #define HRTIM_CHPR_STRPW_Pos (7U)
  20036. #define HRTIM_CHPR_STRPW_Msk (0xFU << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000780 */
  20037. #define HRTIM_CHPR_STRPW HRTIM_CHPR_STRPW_Msk /*!< Timer start pulse width value */
  20038. #define HRTIM_CHPR_STRPW_0 (0x1U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000080 */
  20039. #define HRTIM_CHPR_STRPW_1 (0x2U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000100 */
  20040. #define HRTIM_CHPR_STRPW_2 (0x4U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000200 */
  20041. #define HRTIM_CHPR_STRPW_3 (0x8U << HRTIM_CHPR_STRPW_Pos) /*!< 0x00000400 */
  20042. /**** Bit definition for Slave Timer Capture 1 control register ***************/
  20043. #define HRTIM_CPT1CR_SWCPT_Pos (0U)
  20044. #define HRTIM_CPT1CR_SWCPT_Msk (0x1U << HRTIM_CPT1CR_SWCPT_Pos) /*!< 0x00000001 */
  20045. #define HRTIM_CPT1CR_SWCPT HRTIM_CPT1CR_SWCPT_Msk /*!< Software capture */
  20046. #define HRTIM_CPT1CR_UPDCPT_Pos (1U)
  20047. #define HRTIM_CPT1CR_UPDCPT_Msk (0x1U << HRTIM_CPT1CR_UPDCPT_Pos) /*!< 0x00000002 */
  20048. #define HRTIM_CPT1CR_UPDCPT HRTIM_CPT1CR_UPDCPT_Msk /*!< Update capture */
  20049. #define HRTIM_CPT1CR_EXEV1CPT_Pos (2U)
  20050. #define HRTIM_CPT1CR_EXEV1CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV1CPT_Pos) /*!< 0x00000004 */
  20051. #define HRTIM_CPT1CR_EXEV1CPT HRTIM_CPT1CR_EXEV1CPT_Msk /*!< External event 1 capture */
  20052. #define HRTIM_CPT1CR_EXEV2CPT_Pos (3U)
  20053. #define HRTIM_CPT1CR_EXEV2CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV2CPT_Pos) /*!< 0x00000008 */
  20054. #define HRTIM_CPT1CR_EXEV2CPT HRTIM_CPT1CR_EXEV2CPT_Msk /*!< External event 2 capture */
  20055. #define HRTIM_CPT1CR_EXEV3CPT_Pos (4U)
  20056. #define HRTIM_CPT1CR_EXEV3CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV3CPT_Pos) /*!< 0x00000010 */
  20057. #define HRTIM_CPT1CR_EXEV3CPT HRTIM_CPT1CR_EXEV3CPT_Msk /*!< External event 3 capture */
  20058. #define HRTIM_CPT1CR_EXEV4CPT_Pos (5U)
  20059. #define HRTIM_CPT1CR_EXEV4CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV4CPT_Pos) /*!< 0x00000020 */
  20060. #define HRTIM_CPT1CR_EXEV4CPT HRTIM_CPT1CR_EXEV4CPT_Msk /*!< External event 4 capture */
  20061. #define HRTIM_CPT1CR_EXEV5CPT_Pos (6U)
  20062. #define HRTIM_CPT1CR_EXEV5CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV5CPT_Pos) /*!< 0x00000040 */
  20063. #define HRTIM_CPT1CR_EXEV5CPT HRTIM_CPT1CR_EXEV5CPT_Msk /*!< External event 5 capture */
  20064. #define HRTIM_CPT1CR_EXEV6CPT_Pos (7U)
  20065. #define HRTIM_CPT1CR_EXEV6CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV6CPT_Pos) /*!< 0x00000080 */
  20066. #define HRTIM_CPT1CR_EXEV6CPT HRTIM_CPT1CR_EXEV6CPT_Msk /*!< External event 6 capture */
  20067. #define HRTIM_CPT1CR_EXEV7CPT_Pos (8U)
  20068. #define HRTIM_CPT1CR_EXEV7CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV7CPT_Pos) /*!< 0x00000100 */
  20069. #define HRTIM_CPT1CR_EXEV7CPT HRTIM_CPT1CR_EXEV7CPT_Msk /*!< External event 7 capture */
  20070. #define HRTIM_CPT1CR_EXEV8CPT_Pos (9U)
  20071. #define HRTIM_CPT1CR_EXEV8CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV8CPT_Pos) /*!< 0x00000200 */
  20072. #define HRTIM_CPT1CR_EXEV8CPT HRTIM_CPT1CR_EXEV8CPT_Msk /*!< External event 8 capture */
  20073. #define HRTIM_CPT1CR_EXEV9CPT_Pos (10U)
  20074. #define HRTIM_CPT1CR_EXEV9CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV9CPT_Pos) /*!< 0x00000400 */
  20075. #define HRTIM_CPT1CR_EXEV9CPT HRTIM_CPT1CR_EXEV9CPT_Msk /*!< External event 9 capture */
  20076. #define HRTIM_CPT1CR_EXEV10CPT_Pos (11U)
  20077. #define HRTIM_CPT1CR_EXEV10CPT_Msk (0x1U << HRTIM_CPT1CR_EXEV10CPT_Pos) /*!< 0x00000800 */
  20078. #define HRTIM_CPT1CR_EXEV10CPT HRTIM_CPT1CR_EXEV10CPT_Msk /*!< External event 10 capture */
  20079. #define HRTIM_CPT1CR_TA1SET_Pos (12U)
  20080. #define HRTIM_CPT1CR_TA1SET_Msk (0x1U << HRTIM_CPT1CR_TA1SET_Pos) /*!< 0x00001000 */
  20081. #define HRTIM_CPT1CR_TA1SET HRTIM_CPT1CR_TA1SET_Msk /*!< Timer A output 1 set */
  20082. #define HRTIM_CPT1CR_TA1RST_Pos (13U)
  20083. #define HRTIM_CPT1CR_TA1RST_Msk (0x1U << HRTIM_CPT1CR_TA1RST_Pos) /*!< 0x00002000 */
  20084. #define HRTIM_CPT1CR_TA1RST HRTIM_CPT1CR_TA1RST_Msk /*!< Timer A output 1 reset */
  20085. #define HRTIM_CPT1CR_TIMACMP1_Pos (14U)
  20086. #define HRTIM_CPT1CR_TIMACMP1_Msk (0x1U << HRTIM_CPT1CR_TIMACMP1_Pos) /*!< 0x00004000 */
  20087. #define HRTIM_CPT1CR_TIMACMP1 HRTIM_CPT1CR_TIMACMP1_Msk /*!< Timer A compare 1 */
  20088. #define HRTIM_CPT1CR_TIMACMP2_Pos (15U)
  20089. #define HRTIM_CPT1CR_TIMACMP2_Msk (0x1U << HRTIM_CPT1CR_TIMACMP2_Pos) /*!< 0x00008000 */
  20090. #define HRTIM_CPT1CR_TIMACMP2 HRTIM_CPT1CR_TIMACMP2_Msk /*!< Timer A compare 2 */
  20091. #define HRTIM_CPT1CR_TB1SET_Pos (16U)
  20092. #define HRTIM_CPT1CR_TB1SET_Msk (0x1U << HRTIM_CPT1CR_TB1SET_Pos) /*!< 0x00010000 */
  20093. #define HRTIM_CPT1CR_TB1SET HRTIM_CPT1CR_TB1SET_Msk /*!< Timer B output 1 set */
  20094. #define HRTIM_CPT1CR_TB1RST_Pos (17U)
  20095. #define HRTIM_CPT1CR_TB1RST_Msk (0x1U << HRTIM_CPT1CR_TB1RST_Pos) /*!< 0x00020000 */
  20096. #define HRTIM_CPT1CR_TB1RST HRTIM_CPT1CR_TB1RST_Msk /*!< Timer B output 1 reset */
  20097. #define HRTIM_CPT1CR_TIMBCMP1_Pos (18U)
  20098. #define HRTIM_CPT1CR_TIMBCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMBCMP1_Pos) /*!< 0x00040000 */
  20099. #define HRTIM_CPT1CR_TIMBCMP1 HRTIM_CPT1CR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  20100. #define HRTIM_CPT1CR_TIMBCMP2_Pos (19U)
  20101. #define HRTIM_CPT1CR_TIMBCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMBCMP2_Pos) /*!< 0x00080000 */
  20102. #define HRTIM_CPT1CR_TIMBCMP2 HRTIM_CPT1CR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  20103. #define HRTIM_CPT1CR_TC1SET_Pos (20U)
  20104. #define HRTIM_CPT1CR_TC1SET_Msk (0x1U << HRTIM_CPT1CR_TC1SET_Pos) /*!< 0x00100000 */
  20105. #define HRTIM_CPT1CR_TC1SET HRTIM_CPT1CR_TC1SET_Msk /*!< Timer C output 1 set */
  20106. #define HRTIM_CPT1CR_TC1RST_Pos (21U)
  20107. #define HRTIM_CPT1CR_TC1RST_Msk (0x1U << HRTIM_CPT1CR_TC1RST_Pos) /*!< 0x00200000 */
  20108. #define HRTIM_CPT1CR_TC1RST HRTIM_CPT1CR_TC1RST_Msk /*!< Timer C output 1 reset */
  20109. #define HRTIM_CPT1CR_TIMCCMP1_Pos (22U)
  20110. #define HRTIM_CPT1CR_TIMCCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMCCMP1_Pos) /*!< 0x00400000 */
  20111. #define HRTIM_CPT1CR_TIMCCMP1 HRTIM_CPT1CR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  20112. #define HRTIM_CPT1CR_TIMCCMP2_Pos (23U)
  20113. #define HRTIM_CPT1CR_TIMCCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMCCMP2_Pos) /*!< 0x00800000 */
  20114. #define HRTIM_CPT1CR_TIMCCMP2 HRTIM_CPT1CR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20115. #define HRTIM_CPT1CR_TD1SET_Pos (24U)
  20116. #define HRTIM_CPT1CR_TD1SET_Msk (0x1U << HRTIM_CPT1CR_TD1SET_Pos) /*!< 0x01000000 */
  20117. #define HRTIM_CPT1CR_TD1SET HRTIM_CPT1CR_TD1SET_Msk /*!< Timer D output 1 set */
  20118. #define HRTIM_CPT1CR_TD1RST_Pos (25U)
  20119. #define HRTIM_CPT1CR_TD1RST_Msk (0x1U << HRTIM_CPT1CR_TD1RST_Pos) /*!< 0x02000000 */
  20120. #define HRTIM_CPT1CR_TD1RST HRTIM_CPT1CR_TD1RST_Msk /*!< Timer D output 1 reset */
  20121. #define HRTIM_CPT1CR_TIMDCMP1_Pos (26U)
  20122. #define HRTIM_CPT1CR_TIMDCMP1_Msk (0x1U << HRTIM_CPT1CR_TIMDCMP1_Pos) /*!< 0x04000000 */
  20123. #define HRTIM_CPT1CR_TIMDCMP1 HRTIM_CPT1CR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20124. #define HRTIM_CPT1CR_TIMDCMP2_Pos (27U)
  20125. #define HRTIM_CPT1CR_TIMDCMP2_Msk (0x1U << HRTIM_CPT1CR_TIMDCMP2_Pos) /*!< 0x08000000 */
  20126. #define HRTIM_CPT1CR_TIMDCMP2 HRTIM_CPT1CR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20127. #define HRTIM_CPT1CR_TE1SET_Pos (28U)
  20128. #define HRTIM_CPT1CR_TE1SET_Msk (0x1U << HRTIM_CPT1CR_TE1SET_Pos) /*!< 0x10000000 */
  20129. #define HRTIM_CPT1CR_TE1SET HRTIM_CPT1CR_TE1SET_Msk /*!< Timer E output 1 set */
  20130. #define HRTIM_CPT1CR_TE1RST_Pos (29U)
  20131. #define HRTIM_CPT1CR_TE1RST_Msk (0x1U << HRTIM_CPT1CR_TE1RST_Pos) /*!< 0x20000000 */
  20132. #define HRTIM_CPT1CR_TE1RST HRTIM_CPT1CR_TE1RST_Msk /*!< Timer E output 1 reset */
  20133. #define HRTIM_CPT1CR_TIMECMP1_Pos (30U)
  20134. #define HRTIM_CPT1CR_TIMECMP1_Msk (0x1U << HRTIM_CPT1CR_TIMECMP1_Pos) /*!< 0x40000000 */
  20135. #define HRTIM_CPT1CR_TIMECMP1 HRTIM_CPT1CR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20136. #define HRTIM_CPT1CR_TIMECMP2_Pos (31U)
  20137. #define HRTIM_CPT1CR_TIMECMP2_Msk (0x1U << HRTIM_CPT1CR_TIMECMP2_Pos) /*!< 0x80000000 */
  20138. #define HRTIM_CPT1CR_TIMECMP2 HRTIM_CPT1CR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20139. /**** Bit definition for Slave Timer Capture 2 control register ***************/
  20140. #define HRTIM_CPT2CR_SWCPT_Pos (0U)
  20141. #define HRTIM_CPT2CR_SWCPT_Msk (0x1U << HRTIM_CPT2CR_SWCPT_Pos) /*!< 0x00000001 */
  20142. #define HRTIM_CPT2CR_SWCPT HRTIM_CPT2CR_SWCPT_Msk /*!< Software capture */
  20143. #define HRTIM_CPT2CR_UPDCPT_Pos (1U)
  20144. #define HRTIM_CPT2CR_UPDCPT_Msk (0x1U << HRTIM_CPT2CR_UPDCPT_Pos) /*!< 0x00000002 */
  20145. #define HRTIM_CPT2CR_UPDCPT HRTIM_CPT2CR_UPDCPT_Msk /*!< Update capture */
  20146. #define HRTIM_CPT2CR_EXEV1CPT_Pos (2U)
  20147. #define HRTIM_CPT2CR_EXEV1CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV1CPT_Pos) /*!< 0x00000004 */
  20148. #define HRTIM_CPT2CR_EXEV1CPT HRTIM_CPT2CR_EXEV1CPT_Msk /*!< External event 1 capture */
  20149. #define HRTIM_CPT2CR_EXEV2CPT_Pos (3U)
  20150. #define HRTIM_CPT2CR_EXEV2CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV2CPT_Pos) /*!< 0x00000008 */
  20151. #define HRTIM_CPT2CR_EXEV2CPT HRTIM_CPT2CR_EXEV2CPT_Msk /*!< External event 2 capture */
  20152. #define HRTIM_CPT2CR_EXEV3CPT_Pos (4U)
  20153. #define HRTIM_CPT2CR_EXEV3CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV3CPT_Pos) /*!< 0x00000010 */
  20154. #define HRTIM_CPT2CR_EXEV3CPT HRTIM_CPT2CR_EXEV3CPT_Msk /*!< External event 3 capture */
  20155. #define HRTIM_CPT2CR_EXEV4CPT_Pos (5U)
  20156. #define HRTIM_CPT2CR_EXEV4CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV4CPT_Pos) /*!< 0x00000020 */
  20157. #define HRTIM_CPT2CR_EXEV4CPT HRTIM_CPT2CR_EXEV4CPT_Msk /*!< External event 4 capture */
  20158. #define HRTIM_CPT2CR_EXEV5CPT_Pos (6U)
  20159. #define HRTIM_CPT2CR_EXEV5CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV5CPT_Pos) /*!< 0x00000040 */
  20160. #define HRTIM_CPT2CR_EXEV5CPT HRTIM_CPT2CR_EXEV5CPT_Msk /*!< External event 5 capture */
  20161. #define HRTIM_CPT2CR_EXEV6CPT_Pos (7U)
  20162. #define HRTIM_CPT2CR_EXEV6CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV6CPT_Pos) /*!< 0x00000080 */
  20163. #define HRTIM_CPT2CR_EXEV6CPT HRTIM_CPT2CR_EXEV6CPT_Msk /*!< External event 6 capture */
  20164. #define HRTIM_CPT2CR_EXEV7CPT_Pos (8U)
  20165. #define HRTIM_CPT2CR_EXEV7CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV7CPT_Pos) /*!< 0x00000100 */
  20166. #define HRTIM_CPT2CR_EXEV7CPT HRTIM_CPT2CR_EXEV7CPT_Msk /*!< External event 7 capture */
  20167. #define HRTIM_CPT2CR_EXEV8CPT_Pos (9U)
  20168. #define HRTIM_CPT2CR_EXEV8CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV8CPT_Pos) /*!< 0x00000200 */
  20169. #define HRTIM_CPT2CR_EXEV8CPT HRTIM_CPT2CR_EXEV8CPT_Msk /*!< External event 8 capture */
  20170. #define HRTIM_CPT2CR_EXEV9CPT_Pos (10U)
  20171. #define HRTIM_CPT2CR_EXEV9CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV9CPT_Pos) /*!< 0x00000400 */
  20172. #define HRTIM_CPT2CR_EXEV9CPT HRTIM_CPT2CR_EXEV9CPT_Msk /*!< External event 9 capture */
  20173. #define HRTIM_CPT2CR_EXEV10CPT_Pos (11U)
  20174. #define HRTIM_CPT2CR_EXEV10CPT_Msk (0x1U << HRTIM_CPT2CR_EXEV10CPT_Pos) /*!< 0x00000800 */
  20175. #define HRTIM_CPT2CR_EXEV10CPT HRTIM_CPT2CR_EXEV10CPT_Msk /*!< External event 10 capture */
  20176. #define HRTIM_CPT2CR_TA1SET_Pos (12U)
  20177. #define HRTIM_CPT2CR_TA1SET_Msk (0x1U << HRTIM_CPT2CR_TA1SET_Pos) /*!< 0x00001000 */
  20178. #define HRTIM_CPT2CR_TA1SET HRTIM_CPT2CR_TA1SET_Msk /*!< Timer A output 1 set */
  20179. #define HRTIM_CPT2CR_TA1RST_Pos (13U)
  20180. #define HRTIM_CPT2CR_TA1RST_Msk (0x1U << HRTIM_CPT2CR_TA1RST_Pos) /*!< 0x00002000 */
  20181. #define HRTIM_CPT2CR_TA1RST HRTIM_CPT2CR_TA1RST_Msk /*!< Timer A output 1 reset */
  20182. #define HRTIM_CPT2CR_TIMACMP1_Pos (14U)
  20183. #define HRTIM_CPT2CR_TIMACMP1_Msk (0x1U << HRTIM_CPT2CR_TIMACMP1_Pos) /*!< 0x00004000 */
  20184. #define HRTIM_CPT2CR_TIMACMP1 HRTIM_CPT2CR_TIMACMP1_Msk /*!< Timer A compare 1 */
  20185. #define HRTIM_CPT2CR_TIMACMP2_Pos (15U)
  20186. #define HRTIM_CPT2CR_TIMACMP2_Msk (0x1U << HRTIM_CPT2CR_TIMACMP2_Pos) /*!< 0x00008000 */
  20187. #define HRTIM_CPT2CR_TIMACMP2 HRTIM_CPT2CR_TIMACMP2_Msk /*!< Timer A compare 2 */
  20188. #define HRTIM_CPT2CR_TB1SET_Pos (16U)
  20189. #define HRTIM_CPT2CR_TB1SET_Msk (0x1U << HRTIM_CPT2CR_TB1SET_Pos) /*!< 0x00010000 */
  20190. #define HRTIM_CPT2CR_TB1SET HRTIM_CPT2CR_TB1SET_Msk /*!< Timer B output 1 set */
  20191. #define HRTIM_CPT2CR_TB1RST_Pos (17U)
  20192. #define HRTIM_CPT2CR_TB1RST_Msk (0x1U << HRTIM_CPT2CR_TB1RST_Pos) /*!< 0x00020000 */
  20193. #define HRTIM_CPT2CR_TB1RST HRTIM_CPT2CR_TB1RST_Msk /*!< Timer B output 1 reset */
  20194. #define HRTIM_CPT2CR_TIMBCMP1_Pos (18U)
  20195. #define HRTIM_CPT2CR_TIMBCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMBCMP1_Pos) /*!< 0x00040000 */
  20196. #define HRTIM_CPT2CR_TIMBCMP1 HRTIM_CPT2CR_TIMBCMP1_Msk /*!< Timer B compare 1 */
  20197. #define HRTIM_CPT2CR_TIMBCMP2_Pos (19U)
  20198. #define HRTIM_CPT2CR_TIMBCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMBCMP2_Pos) /*!< 0x00080000 */
  20199. #define HRTIM_CPT2CR_TIMBCMP2 HRTIM_CPT2CR_TIMBCMP2_Msk /*!< Timer B compare 2 */
  20200. #define HRTIM_CPT2CR_TC1SET_Pos (20U)
  20201. #define HRTIM_CPT2CR_TC1SET_Msk (0x1U << HRTIM_CPT2CR_TC1SET_Pos) /*!< 0x00100000 */
  20202. #define HRTIM_CPT2CR_TC1SET HRTIM_CPT2CR_TC1SET_Msk /*!< Timer C output 1 set */
  20203. #define HRTIM_CPT2CR_TC1RST_Pos (21U)
  20204. #define HRTIM_CPT2CR_TC1RST_Msk (0x1U << HRTIM_CPT2CR_TC1RST_Pos) /*!< 0x00200000 */
  20205. #define HRTIM_CPT2CR_TC1RST HRTIM_CPT2CR_TC1RST_Msk /*!< Timer C output 1 reset */
  20206. #define HRTIM_CPT2CR_TIMCCMP1_Pos (22U)
  20207. #define HRTIM_CPT2CR_TIMCCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMCCMP1_Pos) /*!< 0x00400000 */
  20208. #define HRTIM_CPT2CR_TIMCCMP1 HRTIM_CPT2CR_TIMCCMP1_Msk /*!< Timer C compare 1 */
  20209. #define HRTIM_CPT2CR_TIMCCMP2_Pos (23U)
  20210. #define HRTIM_CPT2CR_TIMCCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMCCMP2_Pos) /*!< 0x00800000 */
  20211. #define HRTIM_CPT2CR_TIMCCMP2 HRTIM_CPT2CR_TIMCCMP2_Msk /*!< Timer C compare 2 */
  20212. #define HRTIM_CPT2CR_TD1SET_Pos (24U)
  20213. #define HRTIM_CPT2CR_TD1SET_Msk (0x1U << HRTIM_CPT2CR_TD1SET_Pos) /*!< 0x01000000 */
  20214. #define HRTIM_CPT2CR_TD1SET HRTIM_CPT2CR_TD1SET_Msk /*!< Timer D output 1 set */
  20215. #define HRTIM_CPT2CR_TD1RST_Pos (25U)
  20216. #define HRTIM_CPT2CR_TD1RST_Msk (0x1U << HRTIM_CPT2CR_TD1RST_Pos) /*!< 0x02000000 */
  20217. #define HRTIM_CPT2CR_TD1RST HRTIM_CPT2CR_TD1RST_Msk /*!< Timer D output 1 reset */
  20218. #define HRTIM_CPT2CR_TIMDCMP1_Pos (26U)
  20219. #define HRTIM_CPT2CR_TIMDCMP1_Msk (0x1U << HRTIM_CPT2CR_TIMDCMP1_Pos) /*!< 0x04000000 */
  20220. #define HRTIM_CPT2CR_TIMDCMP1 HRTIM_CPT2CR_TIMDCMP1_Msk /*!< Timer D compare 1 */
  20221. #define HRTIM_CPT2CR_TIMDCMP2_Pos (27U)
  20222. #define HRTIM_CPT2CR_TIMDCMP2_Msk (0x1U << HRTIM_CPT2CR_TIMDCMP2_Pos) /*!< 0x08000000 */
  20223. #define HRTIM_CPT2CR_TIMDCMP2 HRTIM_CPT2CR_TIMDCMP2_Msk /*!< Timer D compare 2 */
  20224. #define HRTIM_CPT2CR_TE1SET_Pos (28U)
  20225. #define HRTIM_CPT2CR_TE1SET_Msk (0x1U << HRTIM_CPT2CR_TE1SET_Pos) /*!< 0x10000000 */
  20226. #define HRTIM_CPT2CR_TE1SET HRTIM_CPT2CR_TE1SET_Msk /*!< Timer E output 1 set */
  20227. #define HRTIM_CPT2CR_TE1RST_Pos (29U)
  20228. #define HRTIM_CPT2CR_TE1RST_Msk (0x1U << HRTIM_CPT2CR_TE1RST_Pos) /*!< 0x20000000 */
  20229. #define HRTIM_CPT2CR_TE1RST HRTIM_CPT2CR_TE1RST_Msk /*!< Timer E output 1 reset */
  20230. #define HRTIM_CPT2CR_TIMECMP1_Pos (30U)
  20231. #define HRTIM_CPT2CR_TIMECMP1_Msk (0x1U << HRTIM_CPT2CR_TIMECMP1_Pos) /*!< 0x40000000 */
  20232. #define HRTIM_CPT2CR_TIMECMP1 HRTIM_CPT2CR_TIMECMP1_Msk /*!< Timer E compare 1 */
  20233. #define HRTIM_CPT2CR_TIMECMP2_Pos (31U)
  20234. #define HRTIM_CPT2CR_TIMECMP2_Msk (0x1U << HRTIM_CPT2CR_TIMECMP2_Pos) /*!< 0x80000000 */
  20235. #define HRTIM_CPT2CR_TIMECMP2 HRTIM_CPT2CR_TIMECMP2_Msk /*!< Timer E compare 2 */
  20236. /**** Bit definition for Slave Timer Output register **************************/
  20237. #define HRTIM_OUTR_POL1_Pos (1U)
  20238. #define HRTIM_OUTR_POL1_Msk (0x1U << HRTIM_OUTR_POL1_Pos) /*!< 0x00000002 */
  20239. #define HRTIM_OUTR_POL1 HRTIM_OUTR_POL1_Msk /*!< Slave output 1 polarity */
  20240. #define HRTIM_OUTR_IDLM1_Pos (2U)
  20241. #define HRTIM_OUTR_IDLM1_Msk (0x1U << HRTIM_OUTR_IDLM1_Pos) /*!< 0x00000004 */
  20242. #define HRTIM_OUTR_IDLM1 HRTIM_OUTR_IDLM1_Msk /*!< Slave output 1 idle mode */
  20243. #define HRTIM_OUTR_IDLES1_Pos (3U)
  20244. #define HRTIM_OUTR_IDLES1_Msk (0x1U << HRTIM_OUTR_IDLES1_Pos) /*!< 0x00000008 */
  20245. #define HRTIM_OUTR_IDLES1 HRTIM_OUTR_IDLES1_Msk /*!< Slave output 1 idle state */
  20246. #define HRTIM_OUTR_FAULT1_Pos (4U)
  20247. #define HRTIM_OUTR_FAULT1_Msk (0x3U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000030 */
  20248. #define HRTIM_OUTR_FAULT1 HRTIM_OUTR_FAULT1_Msk /*!< Slave output 1 fault state */
  20249. #define HRTIM_OUTR_FAULT1_0 (0x1U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000010 */
  20250. #define HRTIM_OUTR_FAULT1_1 (0x2U << HRTIM_OUTR_FAULT1_Pos) /*!< 0x00000020 */
  20251. #define HRTIM_OUTR_CHP1_Pos (6U)
  20252. #define HRTIM_OUTR_CHP1_Msk (0x1U << HRTIM_OUTR_CHP1_Pos) /*!< 0x00000040 */
  20253. #define HRTIM_OUTR_CHP1 HRTIM_OUTR_CHP1_Msk /*!< Slave output 1 chopper enable */
  20254. #define HRTIM_OUTR_DIDL1_Pos (7U)
  20255. #define HRTIM_OUTR_DIDL1_Msk (0x1U << HRTIM_OUTR_DIDL1_Pos) /*!< 0x00000080 */
  20256. #define HRTIM_OUTR_DIDL1 HRTIM_OUTR_DIDL1_Msk /*!< Slave output 1 dead time idle */
  20257. #define HRTIM_OUTR_DTEN_Pos (8U)
  20258. #define HRTIM_OUTR_DTEN_Msk (0x1U << HRTIM_OUTR_DTEN_Pos) /*!< 0x00000100 */
  20259. #define HRTIM_OUTR_DTEN HRTIM_OUTR_DTEN_Msk /*!< Slave output deadtime enable */
  20260. #define HRTIM_OUTR_DLYPRTEN_Pos (9U)
  20261. #define HRTIM_OUTR_DLYPRTEN_Msk (0x1U << HRTIM_OUTR_DLYPRTEN_Pos) /*!< 0x00000200 */
  20262. #define HRTIM_OUTR_DLYPRTEN HRTIM_OUTR_DLYPRTEN_Msk /*!< Slave output delay protection enable */
  20263. #define HRTIM_OUTR_DLYPRT_Pos (10U)
  20264. #define HRTIM_OUTR_DLYPRT_Msk (0x7U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00001C00 */
  20265. #define HRTIM_OUTR_DLYPRT HRTIM_OUTR_DLYPRT_Msk /*!< Slave output delay protection */
  20266. #define HRTIM_OUTR_DLYPRT_0 (0x1U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00000400 */
  20267. #define HRTIM_OUTR_DLYPRT_1 (0x2U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00000800 */
  20268. #define HRTIM_OUTR_DLYPRT_2 (0x4U << HRTIM_OUTR_DLYPRT_Pos) /*!< 0x00001000 */
  20269. #define HRTIM_OUTR_POL2_Pos (17U)
  20270. #define HRTIM_OUTR_POL2_Msk (0x1U << HRTIM_OUTR_POL2_Pos) /*!< 0x00020000 */
  20271. #define HRTIM_OUTR_POL2 HRTIM_OUTR_POL2_Msk /*!< Slave output 2 polarity */
  20272. #define HRTIM_OUTR_IDLM2_Pos (18U)
  20273. #define HRTIM_OUTR_IDLM2_Msk (0x1U << HRTIM_OUTR_IDLM2_Pos) /*!< 0x00040000 */
  20274. #define HRTIM_OUTR_IDLM2 HRTIM_OUTR_IDLM2_Msk /*!< Slave output 2 idle mode */
  20275. #define HRTIM_OUTR_IDLES2_Pos (19U)
  20276. #define HRTIM_OUTR_IDLES2_Msk (0x1U << HRTIM_OUTR_IDLES2_Pos) /*!< 0x00080000 */
  20277. #define HRTIM_OUTR_IDLES2 HRTIM_OUTR_IDLES2_Msk /*!< Slave output 2 idle state */
  20278. #define HRTIM_OUTR_FAULT2_Pos (20U)
  20279. #define HRTIM_OUTR_FAULT2_Msk (0x3U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00300000 */
  20280. #define HRTIM_OUTR_FAULT2 HRTIM_OUTR_FAULT2_Msk /*!< Slave output 2 fault state */
  20281. #define HRTIM_OUTR_FAULT2_0 (0x1U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00100000 */
  20282. #define HRTIM_OUTR_FAULT2_1 (0x2U << HRTIM_OUTR_FAULT2_Pos) /*!< 0x00200000 */
  20283. #define HRTIM_OUTR_CHP2_Pos (22U)
  20284. #define HRTIM_OUTR_CHP2_Msk (0x1U << HRTIM_OUTR_CHP2_Pos) /*!< 0x00400000 */
  20285. #define HRTIM_OUTR_CHP2 HRTIM_OUTR_CHP2_Msk /*!< Slave output 2 chopper enable */
  20286. #define HRTIM_OUTR_DIDL2_Pos (23U)
  20287. #define HRTIM_OUTR_DIDL2_Msk (0x1U << HRTIM_OUTR_DIDL2_Pos) /*!< 0x00800000 */
  20288. #define HRTIM_OUTR_DIDL2 HRTIM_OUTR_DIDL2_Msk /*!< Slave output 2 dead time idle */
  20289. /**** Bit definition for Slave Timer Fault register ***************************/
  20290. #define HRTIM_FLTR_FLT1EN_Pos (0U)
  20291. #define HRTIM_FLTR_FLT1EN_Msk (0x1U << HRTIM_FLTR_FLT1EN_Pos) /*!< 0x00000001 */
  20292. #define HRTIM_FLTR_FLT1EN HRTIM_FLTR_FLT1EN_Msk /*!< Fault 1 enable */
  20293. #define HRTIM_FLTR_FLT2EN_Pos (1U)
  20294. #define HRTIM_FLTR_FLT2EN_Msk (0x1U << HRTIM_FLTR_FLT2EN_Pos) /*!< 0x00000002 */
  20295. #define HRTIM_FLTR_FLT2EN HRTIM_FLTR_FLT2EN_Msk /*!< Fault 2 enable */
  20296. #define HRTIM_FLTR_FLT3EN_Pos (2U)
  20297. #define HRTIM_FLTR_FLT3EN_Msk (0x1U << HRTIM_FLTR_FLT3EN_Pos) /*!< 0x00000004 */
  20298. #define HRTIM_FLTR_FLT3EN HRTIM_FLTR_FLT3EN_Msk /*!< Fault 3 enable */
  20299. #define HRTIM_FLTR_FLT4EN_Pos (3U)
  20300. #define HRTIM_FLTR_FLT4EN_Msk (0x1U << HRTIM_FLTR_FLT4EN_Pos) /*!< 0x00000008 */
  20301. #define HRTIM_FLTR_FLT4EN HRTIM_FLTR_FLT4EN_Msk /*!< Fault 4 enable */
  20302. #define HRTIM_FLTR_FLT5EN_Pos (4U)
  20303. #define HRTIM_FLTR_FLT5EN_Msk (0x1U << HRTIM_FLTR_FLT5EN_Pos) /*!< 0x00000010 */
  20304. #define HRTIM_FLTR_FLT5EN HRTIM_FLTR_FLT5EN_Msk /*!< Fault 5 enable */
  20305. #define HRTIM_FLTR_FLTLCK_Pos (31U)
  20306. #define HRTIM_FLTR_FLTLCK_Msk (0x1U << HRTIM_FLTR_FLTLCK_Pos) /*!< 0x80000000 */
  20307. #define HRTIM_FLTR_FLTLCK HRTIM_FLTR_FLTLCK_Msk /*!< Fault sources lock */
  20308. /**** Bit definition for Common HRTIM Timer control register 1 ****************/
  20309. #define HRTIM_CR1_MUDIS_Pos (0U)
  20310. #define HRTIM_CR1_MUDIS_Msk (0x1U << HRTIM_CR1_MUDIS_Pos) /*!< 0x00000001 */
  20311. #define HRTIM_CR1_MUDIS HRTIM_CR1_MUDIS_Msk /*!< Master update disable*/
  20312. #define HRTIM_CR1_TAUDIS_Pos (1U)
  20313. #define HRTIM_CR1_TAUDIS_Msk (0x1U << HRTIM_CR1_TAUDIS_Pos) /*!< 0x00000002 */
  20314. #define HRTIM_CR1_TAUDIS HRTIM_CR1_TAUDIS_Msk /*!< Timer A update disable*/
  20315. #define HRTIM_CR1_TBUDIS_Pos (2U)
  20316. #define HRTIM_CR1_TBUDIS_Msk (0x1U << HRTIM_CR1_TBUDIS_Pos) /*!< 0x00000004 */
  20317. #define HRTIM_CR1_TBUDIS HRTIM_CR1_TBUDIS_Msk /*!< Timer B update disable*/
  20318. #define HRTIM_CR1_TCUDIS_Pos (3U)
  20319. #define HRTIM_CR1_TCUDIS_Msk (0x1U << HRTIM_CR1_TCUDIS_Pos) /*!< 0x00000008 */
  20320. #define HRTIM_CR1_TCUDIS HRTIM_CR1_TCUDIS_Msk /*!< Timer C update disable*/
  20321. #define HRTIM_CR1_TDUDIS_Pos (4U)
  20322. #define HRTIM_CR1_TDUDIS_Msk (0x1U << HRTIM_CR1_TDUDIS_Pos) /*!< 0x00000010 */
  20323. #define HRTIM_CR1_TDUDIS HRTIM_CR1_TDUDIS_Msk /*!< Timer D update disable*/
  20324. #define HRTIM_CR1_TEUDIS_Pos (5U)
  20325. #define HRTIM_CR1_TEUDIS_Msk (0x1U << HRTIM_CR1_TEUDIS_Pos) /*!< 0x00000020 */
  20326. #define HRTIM_CR1_TEUDIS HRTIM_CR1_TEUDIS_Msk /*!< Timer E update disable*/
  20327. #define HRTIM_CR1_ADC1USRC_Pos (16U)
  20328. #define HRTIM_CR1_ADC1USRC_Msk (0x7U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00070000 */
  20329. #define HRTIM_CR1_ADC1USRC HRTIM_CR1_ADC1USRC_Msk /*!< ADC Trigger 1 update source */
  20330. #define HRTIM_CR1_ADC1USRC_0 (0x1U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00010000 */
  20331. #define HRTIM_CR1_ADC1USRC_1 (0x2U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00020000 */
  20332. #define HRTIM_CR1_ADC1USRC_2 (0x4U << HRTIM_CR1_ADC1USRC_Pos) /*!< 0x00040000 */
  20333. #define HRTIM_CR1_ADC2USRC_Pos (19U)
  20334. #define HRTIM_CR1_ADC2USRC_Msk (0x7U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00380000 */
  20335. #define HRTIM_CR1_ADC2USRC HRTIM_CR1_ADC2USRC_Msk /*!< ADC Trigger 2 update source */
  20336. #define HRTIM_CR1_ADC2USRC_0 (0x1U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00080000 */
  20337. #define HRTIM_CR1_ADC2USRC_1 (0x2U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00100000 */
  20338. #define HRTIM_CR1_ADC2USRC_2 (0x4U << HRTIM_CR1_ADC2USRC_Pos) /*!< 0x00200000 */
  20339. #define HRTIM_CR1_ADC3USRC_Pos (22U)
  20340. #define HRTIM_CR1_ADC3USRC_Msk (0x7U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x01C00000 */
  20341. #define HRTIM_CR1_ADC3USRC HRTIM_CR1_ADC3USRC_Msk /*!< ADC Trigger 3 update source */
  20342. #define HRTIM_CR1_ADC3USRC_0 (0x1U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x00400000 */
  20343. #define HRTIM_CR1_ADC3USRC_1 (0x2U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x00800000 */
  20344. #define HRTIM_CR1_ADC3USRC_2 (0x4U << HRTIM_CR1_ADC3USRC_Pos) /*!< 0x01000000 */
  20345. #define HRTIM_CR1_ADC4USRC_Pos (25U)
  20346. #define HRTIM_CR1_ADC4USRC_Msk (0x7U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x0E000000 */
  20347. #define HRTIM_CR1_ADC4USRC HRTIM_CR1_ADC4USRC_Msk /*!< ADC Trigger 4 update source */
  20348. #define HRTIM_CR1_ADC4USRC_0 (0x1U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x02000000 */
  20349. #define HRTIM_CR1_ADC4USRC_1 (0x2U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x04000000 */
  20350. #define HRTIM_CR1_ADC4USRC_2 (0x0U << HRTIM_CR1_ADC4USRC_Pos) /*!< 0x0800000 */
  20351. /**** Bit definition for Common HRTIM Timer control register 2 ****************/
  20352. #define HRTIM_CR2_MSWU_Pos (0U)
  20353. #define HRTIM_CR2_MSWU_Msk (0x1U << HRTIM_CR2_MSWU_Pos) /*!< 0x00000001 */
  20354. #define HRTIM_CR2_MSWU HRTIM_CR2_MSWU_Msk /*!< Master software update */
  20355. #define HRTIM_CR2_TASWU_Pos (1U)
  20356. #define HRTIM_CR2_TASWU_Msk (0x1U << HRTIM_CR2_TASWU_Pos) /*!< 0x00000002 */
  20357. #define HRTIM_CR2_TASWU HRTIM_CR2_TASWU_Msk /*!< Timer A software update */
  20358. #define HRTIM_CR2_TBSWU_Pos (2U)
  20359. #define HRTIM_CR2_TBSWU_Msk (0x1U << HRTIM_CR2_TBSWU_Pos) /*!< 0x00000004 */
  20360. #define HRTIM_CR2_TBSWU HRTIM_CR2_TBSWU_Msk /*!< Timer B software update */
  20361. #define HRTIM_CR2_TCSWU_Pos (3U)
  20362. #define HRTIM_CR2_TCSWU_Msk (0x1U << HRTIM_CR2_TCSWU_Pos) /*!< 0x00000008 */
  20363. #define HRTIM_CR2_TCSWU HRTIM_CR2_TCSWU_Msk /*!< Timer C software update */
  20364. #define HRTIM_CR2_TDSWU_Pos (4U)
  20365. #define HRTIM_CR2_TDSWU_Msk (0x1U << HRTIM_CR2_TDSWU_Pos) /*!< 0x00000010 */
  20366. #define HRTIM_CR2_TDSWU HRTIM_CR2_TDSWU_Msk /*!< Timer D software update */
  20367. #define HRTIM_CR2_TESWU_Pos (5U)
  20368. #define HRTIM_CR2_TESWU_Msk (0x1U << HRTIM_CR2_TESWU_Pos) /*!< 0x00000020 */
  20369. #define HRTIM_CR2_TESWU HRTIM_CR2_TESWU_Msk /*!< Timer E software update */
  20370. #define HRTIM_CR2_MRST_Pos (8U)
  20371. #define HRTIM_CR2_MRST_Msk (0x1U << HRTIM_CR2_MRST_Pos) /*!< 0x00000100 */
  20372. #define HRTIM_CR2_MRST HRTIM_CR2_MRST_Msk /*!< Master count software reset */
  20373. #define HRTIM_CR2_TARST_Pos (9U)
  20374. #define HRTIM_CR2_TARST_Msk (0x1U << HRTIM_CR2_TARST_Pos) /*!< 0x00000200 */
  20375. #define HRTIM_CR2_TARST HRTIM_CR2_TARST_Msk /*!< Timer A count software reset */
  20376. #define HRTIM_CR2_TBRST_Pos (10U)
  20377. #define HRTIM_CR2_TBRST_Msk (0x1U << HRTIM_CR2_TBRST_Pos) /*!< 0x00000400 */
  20378. #define HRTIM_CR2_TBRST HRTIM_CR2_TBRST_Msk /*!< Timer B count software reset */
  20379. #define HRTIM_CR2_TCRST_Pos (11U)
  20380. #define HRTIM_CR2_TCRST_Msk (0x1U << HRTIM_CR2_TCRST_Pos) /*!< 0x00000800 */
  20381. #define HRTIM_CR2_TCRST HRTIM_CR2_TCRST_Msk /*!< Timer C count software reset */
  20382. #define HRTIM_CR2_TDRST_Pos (12U)
  20383. #define HRTIM_CR2_TDRST_Msk (0x1U << HRTIM_CR2_TDRST_Pos) /*!< 0x00001000 */
  20384. #define HRTIM_CR2_TDRST HRTIM_CR2_TDRST_Msk /*!< Timer D count software reset */
  20385. #define HRTIM_CR2_TERST_Pos (13U)
  20386. #define HRTIM_CR2_TERST_Msk (0x1U << HRTIM_CR2_TERST_Pos) /*!< 0x00002000 */
  20387. #define HRTIM_CR2_TERST HRTIM_CR2_TERST_Msk /*!< Timer E count software reset */
  20388. /**** Bit definition for Common HRTIM Timer interrupt status register *********/
  20389. #define HRTIM_ISR_FLT1_Pos (0U)
  20390. #define HRTIM_ISR_FLT1_Msk (0x1U << HRTIM_ISR_FLT1_Pos) /*!< 0x00000001 */
  20391. #define HRTIM_ISR_FLT1 HRTIM_ISR_FLT1_Msk /*!< Fault 1 interrupt flag */
  20392. #define HRTIM_ISR_FLT2_Pos (1U)
  20393. #define HRTIM_ISR_FLT2_Msk (0x1U << HRTIM_ISR_FLT2_Pos) /*!< 0x00000002 */
  20394. #define HRTIM_ISR_FLT2 HRTIM_ISR_FLT2_Msk /*!< Fault 2 interrupt flag */
  20395. #define HRTIM_ISR_FLT3_Pos (2U)
  20396. #define HRTIM_ISR_FLT3_Msk (0x1U << HRTIM_ISR_FLT3_Pos) /*!< 0x00000004 */
  20397. #define HRTIM_ISR_FLT3 HRTIM_ISR_FLT3_Msk /*!< Fault 3 interrupt flag */
  20398. #define HRTIM_ISR_FLT4_Pos (3U)
  20399. #define HRTIM_ISR_FLT4_Msk (0x1U << HRTIM_ISR_FLT4_Pos) /*!< 0x00000008 */
  20400. #define HRTIM_ISR_FLT4 HRTIM_ISR_FLT4_Msk /*!< Fault 4 interrupt flag */
  20401. #define HRTIM_ISR_FLT5_Pos (4U)
  20402. #define HRTIM_ISR_FLT5_Msk (0x1U << HRTIM_ISR_FLT5_Pos) /*!< 0x00000010 */
  20403. #define HRTIM_ISR_FLT5 HRTIM_ISR_FLT5_Msk /*!< Fault 5 interrupt flag */
  20404. #define HRTIM_ISR_SYSFLT_Pos (5U)
  20405. #define HRTIM_ISR_SYSFLT_Msk (0x1U << HRTIM_ISR_SYSFLT_Pos) /*!< 0x00000020 */
  20406. #define HRTIM_ISR_SYSFLT HRTIM_ISR_SYSFLT_Msk /*!< System Fault interrupt flag */
  20407. #define HRTIM_ISR_BMPER_Pos (17U)
  20408. #define HRTIM_ISR_BMPER_Msk (0x1U << HRTIM_ISR_BMPER_Pos) /*!< 0x00020000 */
  20409. #define HRTIM_ISR_BMPER HRTIM_ISR_BMPER_Msk /*!< Burst mode period interrupt flag */
  20410. /**** Bit definition for Common HRTIM Timer interrupt clear register **********/
  20411. #define HRTIM_ICR_FLT1C_Pos (0U)
  20412. #define HRTIM_ICR_FLT1C_Msk (0x1U << HRTIM_ICR_FLT1C_Pos) /*!< 0x00000001 */
  20413. #define HRTIM_ICR_FLT1C HRTIM_ICR_FLT1C_Msk /*!< Fault 1 interrupt flag clear */
  20414. #define HRTIM_ICR_FLT2C_Pos (1U)
  20415. #define HRTIM_ICR_FLT2C_Msk (0x1U << HRTIM_ICR_FLT2C_Pos) /*!< 0x00000002 */
  20416. #define HRTIM_ICR_FLT2C HRTIM_ICR_FLT2C_Msk /*!< Fault 2 interrupt flag clear */
  20417. #define HRTIM_ICR_FLT3C_Pos (2U)
  20418. #define HRTIM_ICR_FLT3C_Msk (0x1U << HRTIM_ICR_FLT3C_Pos) /*!< 0x00000004 */
  20419. #define HRTIM_ICR_FLT3C HRTIM_ICR_FLT3C_Msk /*!< Fault 3 interrupt flag clear */
  20420. #define HRTIM_ICR_FLT4C_Pos (3U)
  20421. #define HRTIM_ICR_FLT4C_Msk (0x1U << HRTIM_ICR_FLT4C_Pos) /*!< 0x00000008 */
  20422. #define HRTIM_ICR_FLT4C HRTIM_ICR_FLT4C_Msk /*!< Fault 4 interrupt flag clear */
  20423. #define HRTIM_ICR_FLT5C_Pos (4U)
  20424. #define HRTIM_ICR_FLT5C_Msk (0x1U << HRTIM_ICR_FLT5C_Pos) /*!< 0x00000010 */
  20425. #define HRTIM_ICR_FLT5C HRTIM_ICR_FLT5C_Msk /*!< Fault 5 interrupt flag clear */
  20426. #define HRTIM_ICR_SYSFLTC_Pos (5U)
  20427. #define HRTIM_ICR_SYSFLTC_Msk (0x1U << HRTIM_ICR_SYSFLTC_Pos) /*!< 0x00000020 */
  20428. #define HRTIM_ICR_SYSFLTC HRTIM_ICR_SYSFLTC_Msk /*!< System Fault interrupt flag clear */
  20429. #define HRTIM_ICR_BMPERC_Pos (17U)
  20430. #define HRTIM_ICR_BMPERC_Msk (0x1U << HRTIM_ICR_BMPERC_Pos) /*!< 0x00020000 */
  20431. #define HRTIM_ICR_BMPERC HRTIM_ICR_BMPERC_Msk /*!< Burst mode period interrupt flag clear */
  20432. /**** Bit definition for Common HRTIM Timer interrupt enable register *********/
  20433. #define HRTIM_IER_FLT1_Pos (0U)
  20434. #define HRTIM_IER_FLT1_Msk (0x1U << HRTIM_IER_FLT1_Pos) /*!< 0x00000001 */
  20435. #define HRTIM_IER_FLT1 HRTIM_IER_FLT1_Msk /*!< Fault 1 interrupt enable */
  20436. #define HRTIM_IER_FLT2_Pos (1U)
  20437. #define HRTIM_IER_FLT2_Msk (0x1U << HRTIM_IER_FLT2_Pos) /*!< 0x00000002 */
  20438. #define HRTIM_IER_FLT2 HRTIM_IER_FLT2_Msk /*!< Fault 2 interrupt enable */
  20439. #define HRTIM_IER_FLT3_Pos (2U)
  20440. #define HRTIM_IER_FLT3_Msk (0x1U << HRTIM_IER_FLT3_Pos) /*!< 0x00000004 */
  20441. #define HRTIM_IER_FLT3 HRTIM_IER_FLT3_Msk /*!< Fault 3 interrupt enable */
  20442. #define HRTIM_IER_FLT4_Pos (3U)
  20443. #define HRTIM_IER_FLT4_Msk (0x1U << HRTIM_IER_FLT4_Pos) /*!< 0x00000008 */
  20444. #define HRTIM_IER_FLT4 HRTIM_IER_FLT4_Msk /*!< Fault 4 interrupt enable */
  20445. #define HRTIM_IER_FLT5_Pos (4U)
  20446. #define HRTIM_IER_FLT5_Msk (0x1U << HRTIM_IER_FLT5_Pos) /*!< 0x00000010 */
  20447. #define HRTIM_IER_FLT5 HRTIM_IER_FLT5_Msk /*!< Fault 5 interrupt enable */
  20448. #define HRTIM_IER_SYSFLT_Pos (5U)
  20449. #define HRTIM_IER_SYSFLT_Msk (0x1U << HRTIM_IER_SYSFLT_Pos) /*!< 0x00000020 */
  20450. #define HRTIM_IER_SYSFLT HRTIM_IER_SYSFLT_Msk /*!< System Fault interrupt enable */
  20451. #define HRTIM_IER_BMPER_Pos (17U)
  20452. #define HRTIM_IER_BMPER_Msk (0x1U << HRTIM_IER_BMPER_Pos) /*!< 0x00020000 */
  20453. #define HRTIM_IER_BMPER HRTIM_IER_BMPER_Msk /*!< Burst mode period interrupt enable */
  20454. /**** Bit definition for Common HRTIM Timer output enable register ************/
  20455. #define HRTIM_OENR_TA1OEN_Pos (0U)
  20456. #define HRTIM_OENR_TA1OEN_Msk (0x1U << HRTIM_OENR_TA1OEN_Pos) /*!< 0x00000001 */
  20457. #define HRTIM_OENR_TA1OEN HRTIM_OENR_TA1OEN_Msk /*!< Timer A Output 1 enable */
  20458. #define HRTIM_OENR_TA2OEN_Pos (1U)
  20459. #define HRTIM_OENR_TA2OEN_Msk (0x1U << HRTIM_OENR_TA2OEN_Pos) /*!< 0x00000002 */
  20460. #define HRTIM_OENR_TA2OEN HRTIM_OENR_TA2OEN_Msk /*!< Timer A Output 2 enable */
  20461. #define HRTIM_OENR_TB1OEN_Pos (2U)
  20462. #define HRTIM_OENR_TB1OEN_Msk (0x1U << HRTIM_OENR_TB1OEN_Pos) /*!< 0x00000004 */
  20463. #define HRTIM_OENR_TB1OEN HRTIM_OENR_TB1OEN_Msk /*!< Timer B Output 1 enable */
  20464. #define HRTIM_OENR_TB2OEN_Pos (3U)
  20465. #define HRTIM_OENR_TB2OEN_Msk (0x1U << HRTIM_OENR_TB2OEN_Pos) /*!< 0x00000008 */
  20466. #define HRTIM_OENR_TB2OEN HRTIM_OENR_TB2OEN_Msk /*!< Timer B Output 2 enable */
  20467. #define HRTIM_OENR_TC1OEN_Pos (4U)
  20468. #define HRTIM_OENR_TC1OEN_Msk (0x1U << HRTIM_OENR_TC1OEN_Pos) /*!< 0x00000010 */
  20469. #define HRTIM_OENR_TC1OEN HRTIM_OENR_TC1OEN_Msk /*!< Timer C Output 1 enable */
  20470. #define HRTIM_OENR_TC2OEN_Pos (5U)
  20471. #define HRTIM_OENR_TC2OEN_Msk (0x1U << HRTIM_OENR_TC2OEN_Pos) /*!< 0x00000020 */
  20472. #define HRTIM_OENR_TC2OEN HRTIM_OENR_TC2OEN_Msk /*!< Timer C Output 2 enable */
  20473. #define HRTIM_OENR_TD1OEN_Pos (6U)
  20474. #define HRTIM_OENR_TD1OEN_Msk (0x1U << HRTIM_OENR_TD1OEN_Pos) /*!< 0x00000040 */
  20475. #define HRTIM_OENR_TD1OEN HRTIM_OENR_TD1OEN_Msk /*!< Timer D Output 1 enable */
  20476. #define HRTIM_OENR_TD2OEN_Pos (7U)
  20477. #define HRTIM_OENR_TD2OEN_Msk (0x1U << HRTIM_OENR_TD2OEN_Pos) /*!< 0x00000080 */
  20478. #define HRTIM_OENR_TD2OEN HRTIM_OENR_TD2OEN_Msk /*!< Timer D Output 2 enable */
  20479. #define HRTIM_OENR_TE1OEN_Pos (8U)
  20480. #define HRTIM_OENR_TE1OEN_Msk (0x1U << HRTIM_OENR_TE1OEN_Pos) /*!< 0x00000100 */
  20481. #define HRTIM_OENR_TE1OEN HRTIM_OENR_TE1OEN_Msk /*!< Timer E Output 1 enable */
  20482. #define HRTIM_OENR_TE2OEN_Pos (9U)
  20483. #define HRTIM_OENR_TE2OEN_Msk (0x1U << HRTIM_OENR_TE2OEN_Pos) /*!< 0x00000200 */
  20484. #define HRTIM_OENR_TE2OEN HRTIM_OENR_TE2OEN_Msk /*!< Timer E Output 2 enable */
  20485. /**** Bit definition for Common HRTIM Timer output disable register ***********/
  20486. #define HRTIM_ODISR_TA1ODIS_Pos (0U)
  20487. #define HRTIM_ODISR_TA1ODIS_Msk (0x1U << HRTIM_ODISR_TA1ODIS_Pos) /*!< 0x00000001 */
  20488. #define HRTIM_ODISR_TA1ODIS HRTIM_ODISR_TA1ODIS_Msk /*!< Timer A Output 1 disable */
  20489. #define HRTIM_ODISR_TA2ODIS_Pos (1U)
  20490. #define HRTIM_ODISR_TA2ODIS_Msk (0x1U << HRTIM_ODISR_TA2ODIS_Pos) /*!< 0x00000002 */
  20491. #define HRTIM_ODISR_TA2ODIS HRTIM_ODISR_TA2ODIS_Msk /*!< Timer A Output 2 disable */
  20492. #define HRTIM_ODISR_TB1ODIS_Pos (2U)
  20493. #define HRTIM_ODISR_TB1ODIS_Msk (0x1U << HRTIM_ODISR_TB1ODIS_Pos) /*!< 0x00000004 */
  20494. #define HRTIM_ODISR_TB1ODIS HRTIM_ODISR_TB1ODIS_Msk /*!< Timer B Output 1 disable */
  20495. #define HRTIM_ODISR_TB2ODIS_Pos (3U)
  20496. #define HRTIM_ODISR_TB2ODIS_Msk (0x1U << HRTIM_ODISR_TB2ODIS_Pos) /*!< 0x00000008 */
  20497. #define HRTIM_ODISR_TB2ODIS HRTIM_ODISR_TB2ODIS_Msk /*!< Timer B Output 2 disable */
  20498. #define HRTIM_ODISR_TC1ODIS_Pos (4U)
  20499. #define HRTIM_ODISR_TC1ODIS_Msk (0x1U << HRTIM_ODISR_TC1ODIS_Pos) /*!< 0x00000010 */
  20500. #define HRTIM_ODISR_TC1ODIS HRTIM_ODISR_TC1ODIS_Msk /*!< Timer C Output 1 disable */
  20501. #define HRTIM_ODISR_TC2ODIS_Pos (5U)
  20502. #define HRTIM_ODISR_TC2ODIS_Msk (0x1U << HRTIM_ODISR_TC2ODIS_Pos) /*!< 0x00000020 */
  20503. #define HRTIM_ODISR_TC2ODIS HRTIM_ODISR_TC2ODIS_Msk /*!< Timer C Output 2 disable */
  20504. #define HRTIM_ODISR_TD1ODIS_Pos (6U)
  20505. #define HRTIM_ODISR_TD1ODIS_Msk (0x1U << HRTIM_ODISR_TD1ODIS_Pos) /*!< 0x00000040 */
  20506. #define HRTIM_ODISR_TD1ODIS HRTIM_ODISR_TD1ODIS_Msk /*!< Timer D Output 1 disable */
  20507. #define HRTIM_ODISR_TD2ODIS_Pos (7U)
  20508. #define HRTIM_ODISR_TD2ODIS_Msk (0x1U << HRTIM_ODISR_TD2ODIS_Pos) /*!< 0x00000080 */
  20509. #define HRTIM_ODISR_TD2ODIS HRTIM_ODISR_TD2ODIS_Msk /*!< Timer D Output 2 disable */
  20510. #define HRTIM_ODISR_TE1ODIS_Pos (8U)
  20511. #define HRTIM_ODISR_TE1ODIS_Msk (0x1U << HRTIM_ODISR_TE1ODIS_Pos) /*!< 0x00000100 */
  20512. #define HRTIM_ODISR_TE1ODIS HRTIM_ODISR_TE1ODIS_Msk /*!< Timer E Output 1 disable */
  20513. #define HRTIM_ODISR_TE2ODIS_Pos (9U)
  20514. #define HRTIM_ODISR_TE2ODIS_Msk (0x1U << HRTIM_ODISR_TE2ODIS_Pos) /*!< 0x00000200 */
  20515. #define HRTIM_ODISR_TE2ODIS HRTIM_ODISR_TE2ODIS_Msk /*!< Timer E Output 2 disable */
  20516. /**** Bit definition for Common HRTIM Timer output disable status register *****/
  20517. #define HRTIM_ODSR_TA1ODS_Pos (0U)
  20518. #define HRTIM_ODSR_TA1ODS_Msk (0x1U << HRTIM_ODSR_TA1ODS_Pos) /*!< 0x00000001 */
  20519. #define HRTIM_ODSR_TA1ODS HRTIM_ODSR_TA1ODS_Msk /*!< Timer A Output 1 disable status */
  20520. #define HRTIM_ODSR_TA2ODS_Pos (1U)
  20521. #define HRTIM_ODSR_TA2ODS_Msk (0x1U << HRTIM_ODSR_TA2ODS_Pos) /*!< 0x00000002 */
  20522. #define HRTIM_ODSR_TA2ODS HRTIM_ODSR_TA2ODS_Msk /*!< Timer A Output 2 disable status */
  20523. #define HRTIM_ODSR_TB1ODS_Pos (2U)
  20524. #define HRTIM_ODSR_TB1ODS_Msk (0x1U << HRTIM_ODSR_TB1ODS_Pos) /*!< 0x00000004 */
  20525. #define HRTIM_ODSR_TB1ODS HRTIM_ODSR_TB1ODS_Msk /*!< Timer B Output 1 disable status */
  20526. #define HRTIM_ODSR_TB2ODS_Pos (3U)
  20527. #define HRTIM_ODSR_TB2ODS_Msk (0x1U << HRTIM_ODSR_TB2ODS_Pos) /*!< 0x00000008 */
  20528. #define HRTIM_ODSR_TB2ODS HRTIM_ODSR_TB2ODS_Msk /*!< Timer B Output 2 disable status */
  20529. #define HRTIM_ODSR_TC1ODS_Pos (4U)
  20530. #define HRTIM_ODSR_TC1ODS_Msk (0x1U << HRTIM_ODSR_TC1ODS_Pos) /*!< 0x00000010 */
  20531. #define HRTIM_ODSR_TC1ODS HRTIM_ODSR_TC1ODS_Msk /*!< Timer C Output 1 disable status */
  20532. #define HRTIM_ODSR_TC2ODS_Pos (5U)
  20533. #define HRTIM_ODSR_TC2ODS_Msk (0x1U << HRTIM_ODSR_TC2ODS_Pos) /*!< 0x00000020 */
  20534. #define HRTIM_ODSR_TC2ODS HRTIM_ODSR_TC2ODS_Msk /*!< Timer C Output 2 disable status */
  20535. #define HRTIM_ODSR_TD1ODS_Pos (6U)
  20536. #define HRTIM_ODSR_TD1ODS_Msk (0x1U << HRTIM_ODSR_TD1ODS_Pos) /*!< 0x00000040 */
  20537. #define HRTIM_ODSR_TD1ODS HRTIM_ODSR_TD1ODS_Msk /*!< Timer D Output 1 disable status */
  20538. #define HRTIM_ODSR_TD2ODS_Pos (7U)
  20539. #define HRTIM_ODSR_TD2ODS_Msk (0x1U << HRTIM_ODSR_TD2ODS_Pos) /*!< 0x00000080 */
  20540. #define HRTIM_ODSR_TD2ODS HRTIM_ODSR_TD2ODS_Msk /*!< Timer D Output 2 disable status */
  20541. #define HRTIM_ODSR_TE1ODS_Pos (8U)
  20542. #define HRTIM_ODSR_TE1ODS_Msk (0x1U << HRTIM_ODSR_TE1ODS_Pos) /*!< 0x00000100 */
  20543. #define HRTIM_ODSR_TE1ODS HRTIM_ODSR_TE1ODS_Msk /*!< Timer E Output 1 disable status */
  20544. #define HRTIM_ODSR_TE2ODS_Pos (9U)
  20545. #define HRTIM_ODSR_TE2ODS_Msk (0x1U << HRTIM_ODSR_TE2ODS_Pos) /*!< 0x00000200 */
  20546. #define HRTIM_ODSR_TE2ODS HRTIM_ODSR_TE2ODS_Msk /*!< Timer E Output 2 disable status */
  20547. /**** Bit definition for Common HRTIM Timer Burst mode control register ********/
  20548. #define HRTIM_BMCR_BME_Pos (0U)
  20549. #define HRTIM_BMCR_BME_Msk (0x1U << HRTIM_BMCR_BME_Pos) /*!< 0x00000001 */
  20550. #define HRTIM_BMCR_BME HRTIM_BMCR_BME_Msk /*!< Burst mode enbale */
  20551. #define HRTIM_BMCR_BMOM_Pos (1U)
  20552. #define HRTIM_BMCR_BMOM_Msk (0x1U << HRTIM_BMCR_BMOM_Pos) /*!< 0x00000002 */
  20553. #define HRTIM_BMCR_BMOM HRTIM_BMCR_BMOM_Msk /*!< Burst mode operating mode */
  20554. #define HRTIM_BMCR_BMCLK_Pos (2U)
  20555. #define HRTIM_BMCR_BMCLK_Msk (0xFU << HRTIM_BMCR_BMCLK_Pos) /*!< 0x0000003C */
  20556. #define HRTIM_BMCR_BMCLK HRTIM_BMCR_BMCLK_Msk /*!< Burst mode clock source */
  20557. #define HRTIM_BMCR_BMCLK_0 (0x1U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000004 */
  20558. #define HRTIM_BMCR_BMCLK_1 (0x2U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000008 */
  20559. #define HRTIM_BMCR_BMCLK_2 (0x4U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000010 */
  20560. #define HRTIM_BMCR_BMCLK_3 (0x8U << HRTIM_BMCR_BMCLK_Pos) /*!< 0x00000020 */
  20561. #define HRTIM_BMCR_BMPRSC_Pos (6U)
  20562. #define HRTIM_BMCR_BMPRSC_Msk (0xFU << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x000003C0 */
  20563. #define HRTIM_BMCR_BMPRSC HRTIM_BMCR_BMPRSC_Msk /*!< Burst mode prescaler */
  20564. #define HRTIM_BMCR_BMPRSC_0 (0x1U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000040 */
  20565. #define HRTIM_BMCR_BMPRSC_1 (0x2U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000080 */
  20566. #define HRTIM_BMCR_BMPRSC_2 (0x4U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000100 */
  20567. #define HRTIM_BMCR_BMPRSC_3 (0x8U << HRTIM_BMCR_BMPRSC_Pos) /*!< 0x00000200 */
  20568. #define HRTIM_BMCR_BMPREN_Pos (10U)
  20569. #define HRTIM_BMCR_BMPREN_Msk (0x1U << HRTIM_BMCR_BMPREN_Pos) /*!< 0x00000400 */
  20570. #define HRTIM_BMCR_BMPREN HRTIM_BMCR_BMPREN_Msk /*!< Burst mode Preload bit */
  20571. #define HRTIM_BMCR_MTBM_Pos (16U)
  20572. #define HRTIM_BMCR_MTBM_Msk (0x1U << HRTIM_BMCR_MTBM_Pos) /*!< 0x00010000 */
  20573. #define HRTIM_BMCR_MTBM HRTIM_BMCR_MTBM_Msk /*!< Master Timer Burst mode */
  20574. #define HRTIM_BMCR_TABM_Pos (17U)
  20575. #define HRTIM_BMCR_TABM_Msk (0x1U << HRTIM_BMCR_TABM_Pos) /*!< 0x00020000 */
  20576. #define HRTIM_BMCR_TABM HRTIM_BMCR_TABM_Msk /*!< Timer A Burst mode */
  20577. #define HRTIM_BMCR_TBBM_Pos (18U)
  20578. #define HRTIM_BMCR_TBBM_Msk (0x1U << HRTIM_BMCR_TBBM_Pos) /*!< 0x00040000 */
  20579. #define HRTIM_BMCR_TBBM HRTIM_BMCR_TBBM_Msk /*!< Timer B Burst mode */
  20580. #define HRTIM_BMCR_TCBM_Pos (19U)
  20581. #define HRTIM_BMCR_TCBM_Msk (0x1U << HRTIM_BMCR_TCBM_Pos) /*!< 0x00080000 */
  20582. #define HRTIM_BMCR_TCBM HRTIM_BMCR_TCBM_Msk /*!< Timer C Burst mode */
  20583. #define HRTIM_BMCR_TDBM_Pos (20U)
  20584. #define HRTIM_BMCR_TDBM_Msk (0x1U << HRTIM_BMCR_TDBM_Pos) /*!< 0x00100000 */
  20585. #define HRTIM_BMCR_TDBM HRTIM_BMCR_TDBM_Msk /*!< Timer D Burst mode */
  20586. #define HRTIM_BMCR_TEBM_Pos (21U)
  20587. #define HRTIM_BMCR_TEBM_Msk (0x1U << HRTIM_BMCR_TEBM_Pos) /*!< 0x00200000 */
  20588. #define HRTIM_BMCR_TEBM HRTIM_BMCR_TEBM_Msk /*!< Timer E Burst mode */
  20589. #define HRTIM_BMCR_BMSTAT_Pos (31U)
  20590. #define HRTIM_BMCR_BMSTAT_Msk (0x1U << HRTIM_BMCR_BMSTAT_Pos) /*!< 0x80000000 */
  20591. #define HRTIM_BMCR_BMSTAT HRTIM_BMCR_BMSTAT_Msk /*!< Burst mode status */
  20592. /**** Bit definition for Common HRTIM Timer Burst mode Trigger register *******/
  20593. #define HRTIM_BMTRGR_SW_Pos (0U)
  20594. #define HRTIM_BMTRGR_SW_Msk (0x1U << HRTIM_BMTRGR_SW_Pos) /*!< 0x00000001 */
  20595. #define HRTIM_BMTRGR_SW HRTIM_BMTRGR_SW_Msk /*!< Software start */
  20596. #define HRTIM_BMTRGR_MSTRST_Pos (1U)
  20597. #define HRTIM_BMTRGR_MSTRST_Msk (0x1U << HRTIM_BMTRGR_MSTRST_Pos) /*!< 0x00000002 */
  20598. #define HRTIM_BMTRGR_MSTRST HRTIM_BMTRGR_MSTRST_Msk /*!< Master reset */
  20599. #define HRTIM_BMTRGR_MSTREP_Pos (2U)
  20600. #define HRTIM_BMTRGR_MSTREP_Msk (0x1U << HRTIM_BMTRGR_MSTREP_Pos) /*!< 0x00000004 */
  20601. #define HRTIM_BMTRGR_MSTREP HRTIM_BMTRGR_MSTREP_Msk /*!< Master repetition */
  20602. #define HRTIM_BMTRGR_MSTCMP1_Pos (3U)
  20603. #define HRTIM_BMTRGR_MSTCMP1_Msk (0x1U << HRTIM_BMTRGR_MSTCMP1_Pos) /*!< 0x00000008 */
  20604. #define HRTIM_BMTRGR_MSTCMP1 HRTIM_BMTRGR_MSTCMP1_Msk /*!< Master compare 1 */
  20605. #define HRTIM_BMTRGR_MSTCMP2_Pos (4U)
  20606. #define HRTIM_BMTRGR_MSTCMP2_Msk (0x1U << HRTIM_BMTRGR_MSTCMP2_Pos) /*!< 0x00000010 */
  20607. #define HRTIM_BMTRGR_MSTCMP2 HRTIM_BMTRGR_MSTCMP2_Msk /*!< Master compare 2 */
  20608. #define HRTIM_BMTRGR_MSTCMP3_Pos (5U)
  20609. #define HRTIM_BMTRGR_MSTCMP3_Msk (0x1U << HRTIM_BMTRGR_MSTCMP3_Pos) /*!< 0x00000020 */
  20610. #define HRTIM_BMTRGR_MSTCMP3 HRTIM_BMTRGR_MSTCMP3_Msk /*!< Master compare 3 */
  20611. #define HRTIM_BMTRGR_MSTCMP4_Pos (6U)
  20612. #define HRTIM_BMTRGR_MSTCMP4_Msk (0x1U << HRTIM_BMTRGR_MSTCMP4_Pos) /*!< 0x00000040 */
  20613. #define HRTIM_BMTRGR_MSTCMP4 HRTIM_BMTRGR_MSTCMP4_Msk /*!< Master compare 4 */
  20614. #define HRTIM_BMTRGR_TARST_Pos (7U)
  20615. #define HRTIM_BMTRGR_TARST_Msk (0x1U << HRTIM_BMTRGR_TARST_Pos) /*!< 0x00000080 */
  20616. #define HRTIM_BMTRGR_TARST HRTIM_BMTRGR_TARST_Msk /*!< Timer A reset */
  20617. #define HRTIM_BMTRGR_TAREP_Pos (8U)
  20618. #define HRTIM_BMTRGR_TAREP_Msk (0x1U << HRTIM_BMTRGR_TAREP_Pos) /*!< 0x00000100 */
  20619. #define HRTIM_BMTRGR_TAREP HRTIM_BMTRGR_TAREP_Msk /*!< Timer A repetition */
  20620. #define HRTIM_BMTRGR_TACMP1_Pos (9U)
  20621. #define HRTIM_BMTRGR_TACMP1_Msk (0x1U << HRTIM_BMTRGR_TACMP1_Pos) /*!< 0x00000200 */
  20622. #define HRTIM_BMTRGR_TACMP1 HRTIM_BMTRGR_TACMP1_Msk /*!< Timer A compare 1 */
  20623. #define HRTIM_BMTRGR_TACMP2_Pos (10U)
  20624. #define HRTIM_BMTRGR_TACMP2_Msk (0x1U << HRTIM_BMTRGR_TACMP2_Pos) /*!< 0x00000400 */
  20625. #define HRTIM_BMTRGR_TACMP2 HRTIM_BMTRGR_TACMP2_Msk /*!< Timer A compare 2 */
  20626. #define HRTIM_BMTRGR_TBRST_Pos (11U)
  20627. #define HRTIM_BMTRGR_TBRST_Msk (0x1U << HRTIM_BMTRGR_TBRST_Pos) /*!< 0x00000800 */
  20628. #define HRTIM_BMTRGR_TBRST HRTIM_BMTRGR_TBRST_Msk /*!< Timer B reset */
  20629. #define HRTIM_BMTRGR_TBREP_Pos (12U)
  20630. #define HRTIM_BMTRGR_TBREP_Msk (0x1U << HRTIM_BMTRGR_TBREP_Pos) /*!< 0x00001000 */
  20631. #define HRTIM_BMTRGR_TBREP HRTIM_BMTRGR_TBREP_Msk /*!< Timer B repetition */
  20632. #define HRTIM_BMTRGR_TBCMP1_Pos (13U)
  20633. #define HRTIM_BMTRGR_TBCMP1_Msk (0x1U << HRTIM_BMTRGR_TBCMP1_Pos) /*!< 0x00002000 */
  20634. #define HRTIM_BMTRGR_TBCMP1 HRTIM_BMTRGR_TBCMP1_Msk /*!< Timer B compare 1 */
  20635. #define HRTIM_BMTRGR_TBCMP2_Pos (14U)
  20636. #define HRTIM_BMTRGR_TBCMP2_Msk (0x1U << HRTIM_BMTRGR_TBCMP2_Pos) /*!< 0x00004000 */
  20637. #define HRTIM_BMTRGR_TBCMP2 HRTIM_BMTRGR_TBCMP2_Msk /*!< Timer B compare 2 */
  20638. #define HRTIM_BMTRGR_TCRST_Pos (15U)
  20639. #define HRTIM_BMTRGR_TCRST_Msk (0x1U << HRTIM_BMTRGR_TCRST_Pos) /*!< 0x00008000 */
  20640. #define HRTIM_BMTRGR_TCRST HRTIM_BMTRGR_TCRST_Msk /*!< Timer C reset */
  20641. #define HRTIM_BMTRGR_TCREP_Pos (16U)
  20642. #define HRTIM_BMTRGR_TCREP_Msk (0x1U << HRTIM_BMTRGR_TCREP_Pos) /*!< 0x00010000 */
  20643. #define HRTIM_BMTRGR_TCREP HRTIM_BMTRGR_TCREP_Msk /*!< Timer C repetition */
  20644. #define HRTIM_BMTRGR_TCCMP1_Pos (17U)
  20645. #define HRTIM_BMTRGR_TCCMP1_Msk (0x1U << HRTIM_BMTRGR_TCCMP1_Pos) /*!< 0x00020000 */
  20646. #define HRTIM_BMTRGR_TCCMP1 HRTIM_BMTRGR_TCCMP1_Msk /*!< Timer C compare 1 */
  20647. #define HRTIM_BMTRGR_TCCMP2_Pos (18U)
  20648. #define HRTIM_BMTRGR_TCCMP2_Msk (0x1U << HRTIM_BMTRGR_TCCMP2_Pos) /*!< 0x00040000 */
  20649. #define HRTIM_BMTRGR_TCCMP2 HRTIM_BMTRGR_TCCMP2_Msk /*!< Timer C compare 2 */
  20650. #define HRTIM_BMTRGR_TDRST_Pos (19U)
  20651. #define HRTIM_BMTRGR_TDRST_Msk (0x1U << HRTIM_BMTRGR_TDRST_Pos) /*!< 0x00080000 */
  20652. #define HRTIM_BMTRGR_TDRST HRTIM_BMTRGR_TDRST_Msk /*!< Timer D reset */
  20653. #define HRTIM_BMTRGR_TDREP_Pos (20U)
  20654. #define HRTIM_BMTRGR_TDREP_Msk (0x1U << HRTIM_BMTRGR_TDREP_Pos) /*!< 0x00100000 */
  20655. #define HRTIM_BMTRGR_TDREP HRTIM_BMTRGR_TDREP_Msk /*!< Timer D repetition */
  20656. #define HRTIM_BMTRGR_TDCMP1_Pos (21U)
  20657. #define HRTIM_BMTRGR_TDCMP1_Msk (0x1U << HRTIM_BMTRGR_TDCMP1_Pos) /*!< 0x00200000 */
  20658. #define HRTIM_BMTRGR_TDCMP1 HRTIM_BMTRGR_TDCMP1_Msk /*!< Timer D compare 1 */
  20659. #define HRTIM_BMTRGR_TDCMP2_Pos (22U)
  20660. #define HRTIM_BMTRGR_TDCMP2_Msk (0x1U << HRTIM_BMTRGR_TDCMP2_Pos) /*!< 0x00400000 */
  20661. #define HRTIM_BMTRGR_TDCMP2 HRTIM_BMTRGR_TDCMP2_Msk /*!< Timer D compare 2 */
  20662. #define HRTIM_BMTRGR_TERST_Pos (23U)
  20663. #define HRTIM_BMTRGR_TERST_Msk (0x1U << HRTIM_BMTRGR_TERST_Pos) /*!< 0x00800000 */
  20664. #define HRTIM_BMTRGR_TERST HRTIM_BMTRGR_TERST_Msk /*!< Timer E reset */
  20665. #define HRTIM_BMTRGR_TEREP_Pos (24U)
  20666. #define HRTIM_BMTRGR_TEREP_Msk (0x1U << HRTIM_BMTRGR_TEREP_Pos) /*!< 0x01000000 */
  20667. #define HRTIM_BMTRGR_TEREP HRTIM_BMTRGR_TEREP_Msk /*!< Timer E repetition */
  20668. #define HRTIM_BMTRGR_TECMP1_Pos (25U)
  20669. #define HRTIM_BMTRGR_TECMP1_Msk (0x1U << HRTIM_BMTRGR_TECMP1_Pos) /*!< 0x02000000 */
  20670. #define HRTIM_BMTRGR_TECMP1 HRTIM_BMTRGR_TECMP1_Msk /*!< Timer E compare 1 */
  20671. #define HRTIM_BMTRGR_TECMP2_Pos (26U)
  20672. #define HRTIM_BMTRGR_TECMP2_Msk (0x1U << HRTIM_BMTRGR_TECMP2_Pos) /*!< 0x04000000 */
  20673. #define HRTIM_BMTRGR_TECMP2 HRTIM_BMTRGR_TECMP2_Msk /*!< Timer E compare 2 */
  20674. #define HRTIM_BMTRGR_TAEEV7_Pos (27U)
  20675. #define HRTIM_BMTRGR_TAEEV7_Msk (0x1U << HRTIM_BMTRGR_TAEEV7_Pos) /*!< 0x08000000 */
  20676. #define HRTIM_BMTRGR_TAEEV7 HRTIM_BMTRGR_TAEEV7_Msk /*!< Timer A period following External Event7 */
  20677. #define HRTIM_BMTRGR_TDEEV8_Pos (28U)
  20678. #define HRTIM_BMTRGR_TDEEV8_Msk (0x1U << HRTIM_BMTRGR_TDEEV8_Pos) /*!< 0x10000000 */
  20679. #define HRTIM_BMTRGR_TDEEV8 HRTIM_BMTRGR_TDEEV8_Msk /*!< Timer D period following External Event8 */
  20680. #define HRTIM_BMTRGR_EEV7_Pos (29U)
  20681. #define HRTIM_BMTRGR_EEV7_Msk (0x1U << HRTIM_BMTRGR_EEV7_Pos) /*!< 0x20000000 */
  20682. #define HRTIM_BMTRGR_EEV7 HRTIM_BMTRGR_EEV7_Msk /*!< External Event 7 */
  20683. #define HRTIM_BMTRGR_EEV8_Pos (30U)
  20684. #define HRTIM_BMTRGR_EEV8_Msk (0x1U << HRTIM_BMTRGR_EEV8_Pos) /*!< 0x40000000 */
  20685. #define HRTIM_BMTRGR_EEV8 HRTIM_BMTRGR_EEV8_Msk /*!< External Event 8 */
  20686. #define HRTIM_BMTRGR_OCHPEV_Pos (31U)
  20687. #define HRTIM_BMTRGR_OCHPEV_Msk (0x1U << HRTIM_BMTRGR_OCHPEV_Pos) /*!< 0x80000000 */
  20688. #define HRTIM_BMTRGR_OCHPEV HRTIM_BMTRGR_OCHPEV_Msk /*!< on-chip Event */
  20689. /******************* Bit definition for HRTIM_BMCMPR register ***************/
  20690. #define HRTIM_BMCMPR_BMCMPR_Pos (0U)
  20691. #define HRTIM_BMCMPR_BMCMPR_Msk (0xFFFFU << HRTIM_BMCMPR_BMCMPR_Pos) /*!< 0x0000FFFF */
  20692. #define HRTIM_BMCMPR_BMCMPR HRTIM_BMCMPR_BMCMPR_Msk /*!<!<Burst Compare Value */
  20693. /******************* Bit definition for HRTIM_BMPER register ****************/
  20694. #define HRTIM_BMPER_BMPER_Pos (0U)
  20695. #define HRTIM_BMPER_BMPER_Msk (0xFFFFU << HRTIM_BMPER_BMPER_Pos) /*!< 0x0000FFFF */
  20696. #define HRTIM_BMPER_BMPER HRTIM_BMPER_BMPER_Msk /*!<!<Burst period Value */
  20697. /******************* Bit definition for HRTIM_EECR1 register ****************/
  20698. #define HRTIM_EECR1_EE1SRC_Pos (0U)
  20699. #define HRTIM_EECR1_EE1SRC_Msk (0x3U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000003 */
  20700. #define HRTIM_EECR1_EE1SRC HRTIM_EECR1_EE1SRC_Msk /*!< External event 1 source */
  20701. #define HRTIM_EECR1_EE1SRC_0 (0x1U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000001 */
  20702. #define HRTIM_EECR1_EE1SRC_1 (0x2U << HRTIM_EECR1_EE1SRC_Pos) /*!< 0x00000002 */
  20703. #define HRTIM_EECR1_EE1POL_Pos (2U)
  20704. #define HRTIM_EECR1_EE1POL_Msk (0x1U << HRTIM_EECR1_EE1POL_Pos) /*!< 0x00000004 */
  20705. #define HRTIM_EECR1_EE1POL HRTIM_EECR1_EE1POL_Msk /*!< External event 1 Polarity */
  20706. #define HRTIM_EECR1_EE1SNS_Pos (3U)
  20707. #define HRTIM_EECR1_EE1SNS_Msk (0x3U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000018 */
  20708. #define HRTIM_EECR1_EE1SNS HRTIM_EECR1_EE1SNS_Msk /*!< External event 1 sensitivity */
  20709. #define HRTIM_EECR1_EE1SNS_0 (0x1U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000008 */
  20710. #define HRTIM_EECR1_EE1SNS_1 (0x2U << HRTIM_EECR1_EE1SNS_Pos) /*!< 0x00000010 */
  20711. #define HRTIM_EECR1_EE1FAST_Pos (5U)
  20712. #define HRTIM_EECR1_EE1FAST_Msk (0x1U << HRTIM_EECR1_EE1FAST_Pos) /*!< 0x00000020 */
  20713. #define HRTIM_EECR1_EE1FAST HRTIM_EECR1_EE1FAST_Msk /*!< External event 1 Fast mode */
  20714. #define HRTIM_EECR1_EE2SRC_Pos (6U)
  20715. #define HRTIM_EECR1_EE2SRC_Msk (0x3U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x000000C0 */
  20716. #define HRTIM_EECR1_EE2SRC HRTIM_EECR1_EE2SRC_Msk /*!< External event 2 source */
  20717. #define HRTIM_EECR1_EE2SRC_0 (0x1U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x00000040 */
  20718. #define HRTIM_EECR1_EE2SRC_1 (0x2U << HRTIM_EECR1_EE2SRC_Pos) /*!< 0x00000080 */
  20719. #define HRTIM_EECR1_EE2POL_Pos (8U)
  20720. #define HRTIM_EECR1_EE2POL_Msk (0x1U << HRTIM_EECR1_EE2POL_Pos) /*!< 0x00000100 */
  20721. #define HRTIM_EECR1_EE2POL HRTIM_EECR1_EE2POL_Msk /*!< External event 2 Polarity */
  20722. #define HRTIM_EECR1_EE2SNS_Pos (9U)
  20723. #define HRTIM_EECR1_EE2SNS_Msk (0x3U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000600 */
  20724. #define HRTIM_EECR1_EE2SNS HRTIM_EECR1_EE2SNS_Msk /*!< External event 2 sensitivity */
  20725. #define HRTIM_EECR1_EE2SNS_0 (0x1U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000200 */
  20726. #define HRTIM_EECR1_EE2SNS_1 (0x2U << HRTIM_EECR1_EE2SNS_Pos) /*!< 0x00000400 */
  20727. #define HRTIM_EECR1_EE2FAST_Pos (11U)
  20728. #define HRTIM_EECR1_EE2FAST_Msk (0x1U << HRTIM_EECR1_EE2FAST_Pos) /*!< 0x00000800 */
  20729. #define HRTIM_EECR1_EE2FAST HRTIM_EECR1_EE2FAST_Msk /*!< External event 2 Fast mode */
  20730. #define HRTIM_EECR1_EE3SRC_Pos (12U)
  20731. #define HRTIM_EECR1_EE3SRC_Msk (0x3U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00003000 */
  20732. #define HRTIM_EECR1_EE3SRC HRTIM_EECR1_EE3SRC_Msk /*!< External event 3 source */
  20733. #define HRTIM_EECR1_EE3SRC_0 (0x1U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00001000 */
  20734. #define HRTIM_EECR1_EE3SRC_1 (0x2U << HRTIM_EECR1_EE3SRC_Pos) /*!< 0x00002000 */
  20735. #define HRTIM_EECR1_EE3POL_Pos (14U)
  20736. #define HRTIM_EECR1_EE3POL_Msk (0x1U << HRTIM_EECR1_EE3POL_Pos) /*!< 0x00004000 */
  20737. #define HRTIM_EECR1_EE3POL HRTIM_EECR1_EE3POL_Msk /*!< External event 3 Polarity */
  20738. #define HRTIM_EECR1_EE3SNS_Pos (15U)
  20739. #define HRTIM_EECR1_EE3SNS_Msk (0x3U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00018000 */
  20740. #define HRTIM_EECR1_EE3SNS HRTIM_EECR1_EE3SNS_Msk /*!< External event 3 sensitivity */
  20741. #define HRTIM_EECR1_EE3SNS_0 (0x1U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00008000 */
  20742. #define HRTIM_EECR1_EE3SNS_1 (0x2U << HRTIM_EECR1_EE3SNS_Pos) /*!< 0x00010000 */
  20743. #define HRTIM_EECR1_EE3FAST_Pos (17U)
  20744. #define HRTIM_EECR1_EE3FAST_Msk (0x1U << HRTIM_EECR1_EE3FAST_Pos) /*!< 0x00020000 */
  20745. #define HRTIM_EECR1_EE3FAST HRTIM_EECR1_EE3FAST_Msk /*!< External event 3 Fast mode */
  20746. #define HRTIM_EECR1_EE4SRC_Pos (18U)
  20747. #define HRTIM_EECR1_EE4SRC_Msk (0x3U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x000C0000 */
  20748. #define HRTIM_EECR1_EE4SRC HRTIM_EECR1_EE4SRC_Msk /*!< External event 4 source */
  20749. #define HRTIM_EECR1_EE4SRC_0 (0x1U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x00040000 */
  20750. #define HRTIM_EECR1_EE4SRC_1 (0x2U << HRTIM_EECR1_EE4SRC_Pos) /*!< 0x00080000 */
  20751. #define HRTIM_EECR1_EE4POL_Pos (20U)
  20752. #define HRTIM_EECR1_EE4POL_Msk (0x1U << HRTIM_EECR1_EE4POL_Pos) /*!< 0x00100000 */
  20753. #define HRTIM_EECR1_EE4POL HRTIM_EECR1_EE4POL_Msk /*!< External event 4 Polarity */
  20754. #define HRTIM_EECR1_EE4SNS_Pos (21U)
  20755. #define HRTIM_EECR1_EE4SNS_Msk (0x3U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00600000 */
  20756. #define HRTIM_EECR1_EE4SNS HRTIM_EECR1_EE4SNS_Msk /*!< External event 4 sensitivity */
  20757. #define HRTIM_EECR1_EE4SNS_0 (0x1U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00200000 */
  20758. #define HRTIM_EECR1_EE4SNS_1 (0x2U << HRTIM_EECR1_EE4SNS_Pos) /*!< 0x00400000 */
  20759. #define HRTIM_EECR1_EE4FAST_Pos (23U)
  20760. #define HRTIM_EECR1_EE4FAST_Msk (0x1U << HRTIM_EECR1_EE4FAST_Pos) /*!< 0x00800000 */
  20761. #define HRTIM_EECR1_EE4FAST HRTIM_EECR1_EE4FAST_Msk /*!< External event 4 Fast mode */
  20762. #define HRTIM_EECR1_EE5SRC_Pos (24U)
  20763. #define HRTIM_EECR1_EE5SRC_Msk (0x3U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x03000000 */
  20764. #define HRTIM_EECR1_EE5SRC HRTIM_EECR1_EE5SRC_Msk /*!< External event 5 source */
  20765. #define HRTIM_EECR1_EE5SRC_0 (0x1U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x01000000 */
  20766. #define HRTIM_EECR1_EE5SRC_1 (0x2U << HRTIM_EECR1_EE5SRC_Pos) /*!< 0x02000000 */
  20767. #define HRTIM_EECR1_EE5POL_Pos (26U)
  20768. #define HRTIM_EECR1_EE5POL_Msk (0x1U << HRTIM_EECR1_EE5POL_Pos) /*!< 0x04000000 */
  20769. #define HRTIM_EECR1_EE5POL HRTIM_EECR1_EE5POL_Msk /*!< External event 5 Polarity */
  20770. #define HRTIM_EECR1_EE5SNS_Pos (27U)
  20771. #define HRTIM_EECR1_EE5SNS_Msk (0x3U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x18000000 */
  20772. #define HRTIM_EECR1_EE5SNS HRTIM_EECR1_EE5SNS_Msk /*!< External event 5 sensitivity */
  20773. #define HRTIM_EECR1_EE5SNS_0 (0x1U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x08000000 */
  20774. #define HRTIM_EECR1_EE5SNS_1 (0x2U << HRTIM_EECR1_EE5SNS_Pos) /*!< 0x10000000 */
  20775. #define HRTIM_EECR1_EE5FAST_Pos (29U)
  20776. #define HRTIM_EECR1_EE5FAST_Msk (0x1U << HRTIM_EECR1_EE5FAST_Pos) /*!< 0x20000000 */
  20777. #define HRTIM_EECR1_EE5FAST HRTIM_EECR1_EE5FAST_Msk /*!< External event 5 Fast mode */
  20778. /******************* Bit definition for HRTIM_EECR2 register ****************/
  20779. #define HRTIM_EECR2_EE6SRC_Pos (0U)
  20780. #define HRTIM_EECR2_EE6SRC_Msk (0x3U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000003 */
  20781. #define HRTIM_EECR2_EE6SRC HRTIM_EECR2_EE6SRC_Msk /*!< External event 6 source */
  20782. #define HRTIM_EECR2_EE6SRC_0 (0x1U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000001 */
  20783. #define HRTIM_EECR2_EE6SRC_1 (0x2U << HRTIM_EECR2_EE6SRC_Pos) /*!< 0x00000002 */
  20784. #define HRTIM_EECR2_EE6POL_Pos (2U)
  20785. #define HRTIM_EECR2_EE6POL_Msk (0x1U << HRTIM_EECR2_EE6POL_Pos) /*!< 0x00000004 */
  20786. #define HRTIM_EECR2_EE6POL HRTIM_EECR2_EE6POL_Msk /*!< External event 6 Polarity */
  20787. #define HRTIM_EECR2_EE6SNS_Pos (3U)
  20788. #define HRTIM_EECR2_EE6SNS_Msk (0x3U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000018 */
  20789. #define HRTIM_EECR2_EE6SNS HRTIM_EECR2_EE6SNS_Msk /*!< External event 6 sensitivity */
  20790. #define HRTIM_EECR2_EE6SNS_0 (0x1U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000008 */
  20791. #define HRTIM_EECR2_EE6SNS_1 (0x2U << HRTIM_EECR2_EE6SNS_Pos) /*!< 0x00000010 */
  20792. #define HRTIM_EECR2_EE7SRC_Pos (6U)
  20793. #define HRTIM_EECR2_EE7SRC_Msk (0x3U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x000000C0 */
  20794. #define HRTIM_EECR2_EE7SRC HRTIM_EECR2_EE7SRC_Msk /*!< External event 7 source */
  20795. #define HRTIM_EECR2_EE7SRC_0 (0x1U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x00000040 */
  20796. #define HRTIM_EECR2_EE7SRC_1 (0x2U << HRTIM_EECR2_EE7SRC_Pos) /*!< 0x00000080 */
  20797. #define HRTIM_EECR2_EE7POL_Pos (8U)
  20798. #define HRTIM_EECR2_EE7POL_Msk (0x1U << HRTIM_EECR2_EE7POL_Pos) /*!< 0x00000100 */
  20799. #define HRTIM_EECR2_EE7POL HRTIM_EECR2_EE7POL_Msk /*!< External event 7 Polarity */
  20800. #define HRTIM_EECR2_EE7SNS_Pos (9U)
  20801. #define HRTIM_EECR2_EE7SNS_Msk (0x3U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000600 */
  20802. #define HRTIM_EECR2_EE7SNS HRTIM_EECR2_EE7SNS_Msk /*!< External event 7 sensitivity */
  20803. #define HRTIM_EECR2_EE7SNS_0 (0x1U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000200 */
  20804. #define HRTIM_EECR2_EE7SNS_1 (0x2U << HRTIM_EECR2_EE7SNS_Pos) /*!< 0x00000400 */
  20805. #define HRTIM_EECR2_EE8SRC_Pos (12U)
  20806. #define HRTIM_EECR2_EE8SRC_Msk (0x3U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00003000 */
  20807. #define HRTIM_EECR2_EE8SRC HRTIM_EECR2_EE8SRC_Msk /*!< External event 8 source */
  20808. #define HRTIM_EECR2_EE8SRC_0 (0x1U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00001000 */
  20809. #define HRTIM_EECR2_EE8SRC_1 (0x2U << HRTIM_EECR2_EE8SRC_Pos) /*!< 0x00002000 */
  20810. #define HRTIM_EECR2_EE8POL_Pos (14U)
  20811. #define HRTIM_EECR2_EE8POL_Msk (0x1U << HRTIM_EECR2_EE8POL_Pos) /*!< 0x00004000 */
  20812. #define HRTIM_EECR2_EE8POL HRTIM_EECR2_EE8POL_Msk /*!< External event 8 Polarity */
  20813. #define HRTIM_EECR2_EE8SNS_Pos (15U)
  20814. #define HRTIM_EECR2_EE8SNS_Msk (0x3U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00018000 */
  20815. #define HRTIM_EECR2_EE8SNS HRTIM_EECR2_EE8SNS_Msk /*!< External event 8 sensitivity */
  20816. #define HRTIM_EECR2_EE8SNS_0 (0x1U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00008000 */
  20817. #define HRTIM_EECR2_EE8SNS_1 (0x2U << HRTIM_EECR2_EE8SNS_Pos) /*!< 0x00010000 */
  20818. #define HRTIM_EECR2_EE9SRC_Pos (18U)
  20819. #define HRTIM_EECR2_EE9SRC_Msk (0x3U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x000C0000 */
  20820. #define HRTIM_EECR2_EE9SRC HRTIM_EECR2_EE9SRC_Msk /*!< External event 9 source */
  20821. #define HRTIM_EECR2_EE9SRC_0 (0x1U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x00040000 */
  20822. #define HRTIM_EECR2_EE9SRC_1 (0x2U << HRTIM_EECR2_EE9SRC_Pos) /*!< 0x00080000 */
  20823. #define HRTIM_EECR2_EE9POL_Pos (20U)
  20824. #define HRTIM_EECR2_EE9POL_Msk (0x1U << HRTIM_EECR2_EE9POL_Pos) /*!< 0x00100000 */
  20825. #define HRTIM_EECR2_EE9POL HRTIM_EECR2_EE9POL_Msk /*!< External event 9 Polarity */
  20826. #define HRTIM_EECR2_EE9SNS_Pos (21U)
  20827. #define HRTIM_EECR2_EE9SNS_Msk (0x3U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00600000 */
  20828. #define HRTIM_EECR2_EE9SNS HRTIM_EECR2_EE9SNS_Msk /*!< External event 9 sensitivity */
  20829. #define HRTIM_EECR2_EE9SNS_0 (0x1U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00200000 */
  20830. #define HRTIM_EECR2_EE9SNS_1 (0x2U << HRTIM_EECR2_EE9SNS_Pos) /*!< 0x00400000 */
  20831. #define HRTIM_EECR2_EE10SRC_Pos (24U)
  20832. #define HRTIM_EECR2_EE10SRC_Msk (0x3U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x03000000 */
  20833. #define HRTIM_EECR2_EE10SRC HRTIM_EECR2_EE10SRC_Msk /*!< External event 10 source */
  20834. #define HRTIM_EECR2_EE10SRC_0 (0x1U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x01000000 */
  20835. #define HRTIM_EECR2_EE10SRC_1 (0x2U << HRTIM_EECR2_EE10SRC_Pos) /*!< 0x02000000 */
  20836. #define HRTIM_EECR2_EE10POL_Pos (26U)
  20837. #define HRTIM_EECR2_EE10POL_Msk (0x1U << HRTIM_EECR2_EE10POL_Pos) /*!< 0x04000000 */
  20838. #define HRTIM_EECR2_EE10POL HRTIM_EECR2_EE10POL_Msk /*!< External event 10 Polarity */
  20839. #define HRTIM_EECR2_EE10SNS_Pos (27U)
  20840. #define HRTIM_EECR2_EE10SNS_Msk (0x3U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x18000000 */
  20841. #define HRTIM_EECR2_EE10SNS HRTIM_EECR2_EE10SNS_Msk /*!< External event 10 sensitivity */
  20842. #define HRTIM_EECR2_EE10SNS_0 (0x1U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x08000000 */
  20843. #define HRTIM_EECR2_EE10SNS_1 (0x2U << HRTIM_EECR2_EE10SNS_Pos) /*!< 0x10000000 */
  20844. /******************* Bit definition for HRTIM_EECR3 register ****************/
  20845. #define HRTIM_EECR3_EE6F_Pos (0U)
  20846. #define HRTIM_EECR3_EE6F_Msk (0xFU << HRTIM_EECR3_EE6F_Pos) /*!< 0x0000000F */
  20847. #define HRTIM_EECR3_EE6F HRTIM_EECR3_EE6F_Msk /*!< External event 6 filter */
  20848. #define HRTIM_EECR3_EE6F_0 (0x1U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000001 */
  20849. #define HRTIM_EECR3_EE6F_1 (0x2U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000002 */
  20850. #define HRTIM_EECR3_EE6F_2 (0x4U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000004 */
  20851. #define HRTIM_EECR3_EE6F_3 (0x8U << HRTIM_EECR3_EE6F_Pos) /*!< 0x00000008 */
  20852. #define HRTIM_EECR3_EE7F_Pos (6U)
  20853. #define HRTIM_EECR3_EE7F_Msk (0xFU << HRTIM_EECR3_EE7F_Pos) /*!< 0x000003C0 */
  20854. #define HRTIM_EECR3_EE7F HRTIM_EECR3_EE7F_Msk /*!< External event 7 filter */
  20855. #define HRTIM_EECR3_EE7F_0 (0x1U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000040 */
  20856. #define HRTIM_EECR3_EE7F_1 (0x2U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000080 */
  20857. #define HRTIM_EECR3_EE7F_2 (0x4U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000100 */
  20858. #define HRTIM_EECR3_EE7F_3 (0x8U << HRTIM_EECR3_EE7F_Pos) /*!< 0x00000200 */
  20859. #define HRTIM_EECR3_EE8F_Pos (12U)
  20860. #define HRTIM_EECR3_EE8F_Msk (0xFU << HRTIM_EECR3_EE8F_Pos) /*!< 0x0000F000 */
  20861. #define HRTIM_EECR3_EE8F HRTIM_EECR3_EE8F_Msk /*!< External event 8 filter */
  20862. #define HRTIM_EECR3_EE8F_0 (0x1U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00001000 */
  20863. #define HRTIM_EECR3_EE8F_1 (0x2U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00002000 */
  20864. #define HRTIM_EECR3_EE8F_2 (0x4U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00004000 */
  20865. #define HRTIM_EECR3_EE8F_3 (0x8U << HRTIM_EECR3_EE8F_Pos) /*!< 0x00008000 */
  20866. #define HRTIM_EECR3_EE9F_Pos (18U)
  20867. #define HRTIM_EECR3_EE9F_Msk (0xFU << HRTIM_EECR3_EE9F_Pos) /*!< 0x003C0000 */
  20868. #define HRTIM_EECR3_EE9F HRTIM_EECR3_EE9F_Msk /*!< External event 9 filter */
  20869. #define HRTIM_EECR3_EE9F_0 (0x1U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00040000 */
  20870. #define HRTIM_EECR3_EE9F_1 (0x2U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00080000 */
  20871. #define HRTIM_EECR3_EE9F_2 (0x4U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00100000 */
  20872. #define HRTIM_EECR3_EE9F_3 (0x8U << HRTIM_EECR3_EE9F_Pos) /*!< 0x00200000 */
  20873. #define HRTIM_EECR3_EE10F_Pos (24U)
  20874. #define HRTIM_EECR3_EE10F_Msk (0xFU << HRTIM_EECR3_EE10F_Pos) /*!< 0x0F000000 */
  20875. #define HRTIM_EECR3_EE10F HRTIM_EECR3_EE10F_Msk /*!< External event 10 filter */
  20876. #define HRTIM_EECR3_EE10F_0 (0x1U << HRTIM_EECR3_EE10F_Pos) /*!< 0x01000000 */
  20877. #define HRTIM_EECR3_EE10F_1 (0x2U << HRTIM_EECR3_EE10F_Pos) /*!< 0x02000000 */
  20878. #define HRTIM_EECR3_EE10F_2 (0x4U << HRTIM_EECR3_EE10F_Pos) /*!< 0x04000000 */
  20879. #define HRTIM_EECR3_EE10F_3 (0x8U << HRTIM_EECR3_EE10F_Pos) /*!< 0x08000000 */
  20880. #define HRTIM_EECR3_EEVSD_Pos (30U)
  20881. #define HRTIM_EECR3_EEVSD_Msk (0x3U << HRTIM_EECR3_EEVSD_Pos) /*!< 0xC0000000 */
  20882. #define HRTIM_EECR3_EEVSD HRTIM_EECR3_EEVSD_Msk /*!< External event sampling clock division */
  20883. #define HRTIM_EECR3_EEVSD_0 (0x1U << HRTIM_EECR3_EEVSD_Pos) /*!< 0x40000000 */
  20884. #define HRTIM_EECR3_EEVSD_1 (0x2U << HRTIM_EECR3_EEVSD_Pos) /*!< 0x80000000 */
  20885. /******************* Bit definition for HRTIM_ADC1R register ****************/
  20886. #define HRTIM_ADC1R_AD1MC1_Pos (0U)
  20887. #define HRTIM_ADC1R_AD1MC1_Msk (0x1U << HRTIM_ADC1R_AD1MC1_Pos) /*!< 0x00000001 */
  20888. #define HRTIM_ADC1R_AD1MC1 HRTIM_ADC1R_AD1MC1_Msk /*!< ADC Trigger 1 on master compare 1 */
  20889. #define HRTIM_ADC1R_AD1MC2_Pos (1U)
  20890. #define HRTIM_ADC1R_AD1MC2_Msk (0x1U << HRTIM_ADC1R_AD1MC2_Pos) /*!< 0x00000002 */
  20891. #define HRTIM_ADC1R_AD1MC2 HRTIM_ADC1R_AD1MC2_Msk /*!< ADC Trigger 1 on master compare 2 */
  20892. #define HRTIM_ADC1R_AD1MC3_Pos (2U)
  20893. #define HRTIM_ADC1R_AD1MC3_Msk (0x1U << HRTIM_ADC1R_AD1MC3_Pos) /*!< 0x00000004 */
  20894. #define HRTIM_ADC1R_AD1MC3 HRTIM_ADC1R_AD1MC3_Msk /*!< ADC Trigger 1 on master compare 3 */
  20895. #define HRTIM_ADC1R_AD1MC4_Pos (3U)
  20896. #define HRTIM_ADC1R_AD1MC4_Msk (0x1U << HRTIM_ADC1R_AD1MC4_Pos) /*!< 0x00000008 */
  20897. #define HRTIM_ADC1R_AD1MC4 HRTIM_ADC1R_AD1MC4_Msk /*!< ADC Trigger 1 on master compare 4 */
  20898. #define HRTIM_ADC1R_AD1MPER_Pos (4U)
  20899. #define HRTIM_ADC1R_AD1MPER_Msk (0x1U << HRTIM_ADC1R_AD1MPER_Pos) /*!< 0x00000010 */
  20900. #define HRTIM_ADC1R_AD1MPER HRTIM_ADC1R_AD1MPER_Msk /*!< ADC Trigger 1 on master period */
  20901. #define HRTIM_ADC1R_AD1EEV1_Pos (5U)
  20902. #define HRTIM_ADC1R_AD1EEV1_Msk (0x1U << HRTIM_ADC1R_AD1EEV1_Pos) /*!< 0x00000020 */
  20903. #define HRTIM_ADC1R_AD1EEV1 HRTIM_ADC1R_AD1EEV1_Msk /*!< ADC Trigger 1 on external event 1 */
  20904. #define HRTIM_ADC1R_AD1EEV2_Pos (6U)
  20905. #define HRTIM_ADC1R_AD1EEV2_Msk (0x1U << HRTIM_ADC1R_AD1EEV2_Pos) /*!< 0x00000040 */
  20906. #define HRTIM_ADC1R_AD1EEV2 HRTIM_ADC1R_AD1EEV2_Msk /*!< ADC Trigger 1 on external event 2 */
  20907. #define HRTIM_ADC1R_AD1EEV3_Pos (7U)
  20908. #define HRTIM_ADC1R_AD1EEV3_Msk (0x1U << HRTIM_ADC1R_AD1EEV3_Pos) /*!< 0x00000080 */
  20909. #define HRTIM_ADC1R_AD1EEV3 HRTIM_ADC1R_AD1EEV3_Msk /*!< ADC Trigger 1 on external event 3 */
  20910. #define HRTIM_ADC1R_AD1EEV4_Pos (8U)
  20911. #define HRTIM_ADC1R_AD1EEV4_Msk (0x1U << HRTIM_ADC1R_AD1EEV4_Pos) /*!< 0x00000100 */
  20912. #define HRTIM_ADC1R_AD1EEV4 HRTIM_ADC1R_AD1EEV4_Msk /*!< ADC Trigger 1 on external event 4 */
  20913. #define HRTIM_ADC1R_AD1EEV5_Pos (9U)
  20914. #define HRTIM_ADC1R_AD1EEV5_Msk (0x1U << HRTIM_ADC1R_AD1EEV5_Pos) /*!< 0x00000200 */
  20915. #define HRTIM_ADC1R_AD1EEV5 HRTIM_ADC1R_AD1EEV5_Msk /*!< ADC Trigger 1 on external event 5 */
  20916. #define HRTIM_ADC1R_AD1TAC2_Pos (10U)
  20917. #define HRTIM_ADC1R_AD1TAC2_Msk (0x1U << HRTIM_ADC1R_AD1TAC2_Pos) /*!< 0x00000400 */
  20918. #define HRTIM_ADC1R_AD1TAC2 HRTIM_ADC1R_AD1TAC2_Msk /*!< ADC Trigger 1 on Timer A compare 2 */
  20919. #define HRTIM_ADC1R_AD1TAC3_Pos (11U)
  20920. #define HRTIM_ADC1R_AD1TAC3_Msk (0x1U << HRTIM_ADC1R_AD1TAC3_Pos) /*!< 0x00000800 */
  20921. #define HRTIM_ADC1R_AD1TAC3 HRTIM_ADC1R_AD1TAC3_Msk /*!< ADC Trigger 1 on Timer A compare 3 */
  20922. #define HRTIM_ADC1R_AD1TAC4_Pos (12U)
  20923. #define HRTIM_ADC1R_AD1TAC4_Msk (0x1U << HRTIM_ADC1R_AD1TAC4_Pos) /*!< 0x00001000 */
  20924. #define HRTIM_ADC1R_AD1TAC4 HRTIM_ADC1R_AD1TAC4_Msk /*!< ADC Trigger 1 on Timer A compare 4 */
  20925. #define HRTIM_ADC1R_AD1TAPER_Pos (13U)
  20926. #define HRTIM_ADC1R_AD1TAPER_Msk (0x1U << HRTIM_ADC1R_AD1TAPER_Pos) /*!< 0x00002000 */
  20927. #define HRTIM_ADC1R_AD1TAPER HRTIM_ADC1R_AD1TAPER_Msk /*!< ADC Trigger 1 on Timer A period */
  20928. #define HRTIM_ADC1R_AD1TARST_Pos (14U)
  20929. #define HRTIM_ADC1R_AD1TARST_Msk (0x1U << HRTIM_ADC1R_AD1TARST_Pos) /*!< 0x00004000 */
  20930. #define HRTIM_ADC1R_AD1TARST HRTIM_ADC1R_AD1TARST_Msk /*!< ADC Trigger 1 on Timer A reset */
  20931. #define HRTIM_ADC1R_AD1TBC2_Pos (15U)
  20932. #define HRTIM_ADC1R_AD1TBC2_Msk (0x1U << HRTIM_ADC1R_AD1TBC2_Pos) /*!< 0x00008000 */
  20933. #define HRTIM_ADC1R_AD1TBC2 HRTIM_ADC1R_AD1TBC2_Msk /*!< ADC Trigger 1 on Timer B compare 2 */
  20934. #define HRTIM_ADC1R_AD1TBC3_Pos (16U)
  20935. #define HRTIM_ADC1R_AD1TBC3_Msk (0x1U << HRTIM_ADC1R_AD1TBC3_Pos) /*!< 0x00010000 */
  20936. #define HRTIM_ADC1R_AD1TBC3 HRTIM_ADC1R_AD1TBC3_Msk /*!< ADC Trigger 1 on Timer B compare 3 */
  20937. #define HRTIM_ADC1R_AD1TBC4_Pos (17U)
  20938. #define HRTIM_ADC1R_AD1TBC4_Msk (0x1U << HRTIM_ADC1R_AD1TBC4_Pos) /*!< 0x00020000 */
  20939. #define HRTIM_ADC1R_AD1TBC4 HRTIM_ADC1R_AD1TBC4_Msk /*!< ADC Trigger 1 on Timer B compare 4 */
  20940. #define HRTIM_ADC1R_AD1TBPER_Pos (18U)
  20941. #define HRTIM_ADC1R_AD1TBPER_Msk (0x1U << HRTIM_ADC1R_AD1TBPER_Pos) /*!< 0x00040000 */
  20942. #define HRTIM_ADC1R_AD1TBPER HRTIM_ADC1R_AD1TBPER_Msk /*!< ADC Trigger 1 on Timer B period */
  20943. #define HRTIM_ADC1R_AD1TBRST_Pos (19U)
  20944. #define HRTIM_ADC1R_AD1TBRST_Msk (0x1U << HRTIM_ADC1R_AD1TBRST_Pos) /*!< 0x00080000 */
  20945. #define HRTIM_ADC1R_AD1TBRST HRTIM_ADC1R_AD1TBRST_Msk /*!< ADC Trigger 1 on Timer B reset */
  20946. #define HRTIM_ADC1R_AD1TCC2_Pos (20U)
  20947. #define HRTIM_ADC1R_AD1TCC2_Msk (0x1U << HRTIM_ADC1R_AD1TCC2_Pos) /*!< 0x00100000 */
  20948. #define HRTIM_ADC1R_AD1TCC2 HRTIM_ADC1R_AD1TCC2_Msk /*!< ADC Trigger 1 on Timer C compare 2 */
  20949. #define HRTIM_ADC1R_AD1TCC3_Pos (21U)
  20950. #define HRTIM_ADC1R_AD1TCC3_Msk (0x1U << HRTIM_ADC1R_AD1TCC3_Pos) /*!< 0x00200000 */
  20951. #define HRTIM_ADC1R_AD1TCC3 HRTIM_ADC1R_AD1TCC3_Msk /*!< ADC Trigger 1 on Timer C compare 3 */
  20952. #define HRTIM_ADC1R_AD1TCC4_Pos (22U)
  20953. #define HRTIM_ADC1R_AD1TCC4_Msk (0x1U << HRTIM_ADC1R_AD1TCC4_Pos) /*!< 0x00400000 */
  20954. #define HRTIM_ADC1R_AD1TCC4 HRTIM_ADC1R_AD1TCC4_Msk /*!< ADC Trigger 1 on Timer C compare 4 */
  20955. #define HRTIM_ADC1R_AD1TCPER_Pos (23U)
  20956. #define HRTIM_ADC1R_AD1TCPER_Msk (0x1U << HRTIM_ADC1R_AD1TCPER_Pos) /*!< 0x00800000 */
  20957. #define HRTIM_ADC1R_AD1TCPER HRTIM_ADC1R_AD1TCPER_Msk /*!< ADC Trigger 1 on Timer C period */
  20958. #define HRTIM_ADC1R_AD1TDC2_Pos (24U)
  20959. #define HRTIM_ADC1R_AD1TDC2_Msk (0x1U << HRTIM_ADC1R_AD1TDC2_Pos) /*!< 0x01000000 */
  20960. #define HRTIM_ADC1R_AD1TDC2 HRTIM_ADC1R_AD1TDC2_Msk /*!< ADC Trigger 1 on Timer D compare 2 */
  20961. #define HRTIM_ADC1R_AD1TDC3_Pos (25U)
  20962. #define HRTIM_ADC1R_AD1TDC3_Msk (0x1U << HRTIM_ADC1R_AD1TDC3_Pos) /*!< 0x02000000 */
  20963. #define HRTIM_ADC1R_AD1TDC3 HRTIM_ADC1R_AD1TDC3_Msk /*!< ADC Trigger 1 on Timer D compare 3 */
  20964. #define HRTIM_ADC1R_AD1TDC4_Pos (26U)
  20965. #define HRTIM_ADC1R_AD1TDC4_Msk (0x1U << HRTIM_ADC1R_AD1TDC4_Pos) /*!< 0x04000000 */
  20966. #define HRTIM_ADC1R_AD1TDC4 HRTIM_ADC1R_AD1TDC4_Msk /*!< ADC Trigger 1 on Timer D compare 4 */
  20967. #define HRTIM_ADC1R_AD1TDPER_Pos (27U)
  20968. #define HRTIM_ADC1R_AD1TDPER_Msk (0x1U << HRTIM_ADC1R_AD1TDPER_Pos) /*!< 0x08000000 */
  20969. #define HRTIM_ADC1R_AD1TDPER HRTIM_ADC1R_AD1TDPER_Msk /*!< ADC Trigger 1 on Timer D period */
  20970. #define HRTIM_ADC1R_AD1TEC2_Pos (28U)
  20971. #define HRTIM_ADC1R_AD1TEC2_Msk (0x1U << HRTIM_ADC1R_AD1TEC2_Pos) /*!< 0x10000000 */
  20972. #define HRTIM_ADC1R_AD1TEC2 HRTIM_ADC1R_AD1TEC2_Msk /*!< ADC Trigger 1 on Timer E compare 2 */
  20973. #define HRTIM_ADC1R_AD1TEC3_Pos (29U)
  20974. #define HRTIM_ADC1R_AD1TEC3_Msk (0x1U << HRTIM_ADC1R_AD1TEC3_Pos) /*!< 0x20000000 */
  20975. #define HRTIM_ADC1R_AD1TEC3 HRTIM_ADC1R_AD1TEC3_Msk /*!< ADC Trigger 1 on Timer E compare 3 */
  20976. #define HRTIM_ADC1R_AD1TEC4_Pos (30U)
  20977. #define HRTIM_ADC1R_AD1TEC4_Msk (0x1U << HRTIM_ADC1R_AD1TEC4_Pos) /*!< 0x40000000 */
  20978. #define HRTIM_ADC1R_AD1TEC4 HRTIM_ADC1R_AD1TEC4_Msk /*!< ADC Trigger 1 on Timer E compare 4 */
  20979. #define HRTIM_ADC1R_AD1TEPER_Pos (31U)
  20980. #define HRTIM_ADC1R_AD1TEPER_Msk (0x1U << HRTIM_ADC1R_AD1TEPER_Pos) /*!< 0x80000000 */
  20981. #define HRTIM_ADC1R_AD1TEPER HRTIM_ADC1R_AD1TEPER_Msk /*!< ADC Trigger 1 on Timer E period */
  20982. /******************* Bit definition for HRTIM_ADC2R register ****************/
  20983. #define HRTIM_ADC2R_AD2MC1_Pos (0U)
  20984. #define HRTIM_ADC2R_AD2MC1_Msk (0x1U << HRTIM_ADC2R_AD2MC1_Pos) /*!< 0x00000001 */
  20985. #define HRTIM_ADC2R_AD2MC1 HRTIM_ADC2R_AD2MC1_Msk /*!< ADC Trigger 2 on master compare 1 */
  20986. #define HRTIM_ADC2R_AD2MC2_Pos (1U)
  20987. #define HRTIM_ADC2R_AD2MC2_Msk (0x1U << HRTIM_ADC2R_AD2MC2_Pos) /*!< 0x00000002 */
  20988. #define HRTIM_ADC2R_AD2MC2 HRTIM_ADC2R_AD2MC2_Msk /*!< ADC Trigger 2 on master compare 2 */
  20989. #define HRTIM_ADC2R_AD2MC3_Pos (2U)
  20990. #define HRTIM_ADC2R_AD2MC3_Msk (0x1U << HRTIM_ADC2R_AD2MC3_Pos) /*!< 0x00000004 */
  20991. #define HRTIM_ADC2R_AD2MC3 HRTIM_ADC2R_AD2MC3_Msk /*!< ADC Trigger 2 on master compare 3 */
  20992. #define HRTIM_ADC2R_AD2MC4_Pos (3U)
  20993. #define HRTIM_ADC2R_AD2MC4_Msk (0x1U << HRTIM_ADC2R_AD2MC4_Pos) /*!< 0x00000008 */
  20994. #define HRTIM_ADC2R_AD2MC4 HRTIM_ADC2R_AD2MC4_Msk /*!< ADC Trigger 2 on master compare 4 */
  20995. #define HRTIM_ADC2R_AD2MPER_Pos (4U)
  20996. #define HRTIM_ADC2R_AD2MPER_Msk (0x1U << HRTIM_ADC2R_AD2MPER_Pos) /*!< 0x00000010 */
  20997. #define HRTIM_ADC2R_AD2MPER HRTIM_ADC2R_AD2MPER_Msk /*!< ADC Trigger 2 on master period */
  20998. #define HRTIM_ADC2R_AD2EEV6_Pos (5U)
  20999. #define HRTIM_ADC2R_AD2EEV6_Msk (0x1U << HRTIM_ADC2R_AD2EEV6_Pos) /*!< 0x00000020 */
  21000. #define HRTIM_ADC2R_AD2EEV6 HRTIM_ADC2R_AD2EEV6_Msk /*!< ADC Trigger 2 on external event 6 */
  21001. #define HRTIM_ADC2R_AD2EEV7_Pos (6U)
  21002. #define HRTIM_ADC2R_AD2EEV7_Msk (0x1U << HRTIM_ADC2R_AD2EEV7_Pos) /*!< 0x00000040 */
  21003. #define HRTIM_ADC2R_AD2EEV7 HRTIM_ADC2R_AD2EEV7_Msk /*!< ADC Trigger 2 on external event 7 */
  21004. #define HRTIM_ADC2R_AD2EEV8_Pos (7U)
  21005. #define HRTIM_ADC2R_AD2EEV8_Msk (0x1U << HRTIM_ADC2R_AD2EEV8_Pos) /*!< 0x00000080 */
  21006. #define HRTIM_ADC2R_AD2EEV8 HRTIM_ADC2R_AD2EEV8_Msk /*!< ADC Trigger 2 on external event 8 */
  21007. #define HRTIM_ADC2R_AD2EEV9_Pos (8U)
  21008. #define HRTIM_ADC2R_AD2EEV9_Msk (0x1U << HRTIM_ADC2R_AD2EEV9_Pos) /*!< 0x00000100 */
  21009. #define HRTIM_ADC2R_AD2EEV9 HRTIM_ADC2R_AD2EEV9_Msk /*!< ADC Trigger 2 on external event 9 */
  21010. #define HRTIM_ADC2R_AD2EEV10_Pos (9U)
  21011. #define HRTIM_ADC2R_AD2EEV10_Msk (0x1U << HRTIM_ADC2R_AD2EEV10_Pos) /*!< 0x00000200 */
  21012. #define HRTIM_ADC2R_AD2EEV10 HRTIM_ADC2R_AD2EEV10_Msk /*!< ADC Trigger 2 on external event 10 */
  21013. #define HRTIM_ADC2R_AD2TAC2_Pos (10U)
  21014. #define HRTIM_ADC2R_AD2TAC2_Msk (0x1U << HRTIM_ADC2R_AD2TAC2_Pos) /*!< 0x00000400 */
  21015. #define HRTIM_ADC2R_AD2TAC2 HRTIM_ADC2R_AD2TAC2_Msk /*!< ADC Trigger 2 on Timer A compare 2 */
  21016. #define HRTIM_ADC2R_AD2TAC3_Pos (11U)
  21017. #define HRTIM_ADC2R_AD2TAC3_Msk (0x1U << HRTIM_ADC2R_AD2TAC3_Pos) /*!< 0x00000800 */
  21018. #define HRTIM_ADC2R_AD2TAC3 HRTIM_ADC2R_AD2TAC3_Msk /*!< ADC Trigger 2 on Timer A compare 3 */
  21019. #define HRTIM_ADC2R_AD2TAC4_Pos (12U)
  21020. #define HRTIM_ADC2R_AD2TAC4_Msk (0x1U << HRTIM_ADC2R_AD2TAC4_Pos) /*!< 0x00001000 */
  21021. #define HRTIM_ADC2R_AD2TAC4 HRTIM_ADC2R_AD2TAC4_Msk /*!< ADC Trigger 2 on Timer A compare 4*/
  21022. #define HRTIM_ADC2R_AD2TAPER_Pos (13U)
  21023. #define HRTIM_ADC2R_AD2TAPER_Msk (0x1U << HRTIM_ADC2R_AD2TAPER_Pos) /*!< 0x00002000 */
  21024. #define HRTIM_ADC2R_AD2TAPER HRTIM_ADC2R_AD2TAPER_Msk /*!< ADC Trigger 2 on Timer A period */
  21025. #define HRTIM_ADC2R_AD2TBC2_Pos (14U)
  21026. #define HRTIM_ADC2R_AD2TBC2_Msk (0x1U << HRTIM_ADC2R_AD2TBC2_Pos) /*!< 0x00004000 */
  21027. #define HRTIM_ADC2R_AD2TBC2 HRTIM_ADC2R_AD2TBC2_Msk /*!< ADC Trigger 2 on Timer B compare 2 */
  21028. #define HRTIM_ADC2R_AD2TBC3_Pos (15U)
  21029. #define HRTIM_ADC2R_AD2TBC3_Msk (0x1U << HRTIM_ADC2R_AD2TBC3_Pos) /*!< 0x00008000 */
  21030. #define HRTIM_ADC2R_AD2TBC3 HRTIM_ADC2R_AD2TBC3_Msk /*!< ADC Trigger 2 on Timer B compare 3 */
  21031. #define HRTIM_ADC2R_AD2TBC4_Pos (16U)
  21032. #define HRTIM_ADC2R_AD2TBC4_Msk (0x1U << HRTIM_ADC2R_AD2TBC4_Pos) /*!< 0x00010000 */
  21033. #define HRTIM_ADC2R_AD2TBC4 HRTIM_ADC2R_AD2TBC4_Msk /*!< ADC Trigger 2 on Timer B compare 4 */
  21034. #define HRTIM_ADC2R_AD2TBPER_Pos (17U)
  21035. #define HRTIM_ADC2R_AD2TBPER_Msk (0x1U << HRTIM_ADC2R_AD2TBPER_Pos) /*!< 0x00020000 */
  21036. #define HRTIM_ADC2R_AD2TBPER HRTIM_ADC2R_AD2TBPER_Msk /*!< ADC Trigger 2 on Timer B period */
  21037. #define HRTIM_ADC2R_AD2TCC2_Pos (18U)
  21038. #define HRTIM_ADC2R_AD2TCC2_Msk (0x1U << HRTIM_ADC2R_AD2TCC2_Pos) /*!< 0x00040000 */
  21039. #define HRTIM_ADC2R_AD2TCC2 HRTIM_ADC2R_AD2TCC2_Msk /*!< ADC Trigger 2 on Timer C compare 2 */
  21040. #define HRTIM_ADC2R_AD2TCC3_Pos (19U)
  21041. #define HRTIM_ADC2R_AD2TCC3_Msk (0x1U << HRTIM_ADC2R_AD2TCC3_Pos) /*!< 0x00080000 */
  21042. #define HRTIM_ADC2R_AD2TCC3 HRTIM_ADC2R_AD2TCC3_Msk /*!< ADC Trigger 2 on Timer C compare 3 */
  21043. #define HRTIM_ADC2R_AD2TCC4_Pos (20U)
  21044. #define HRTIM_ADC2R_AD2TCC4_Msk (0x1U << HRTIM_ADC2R_AD2TCC4_Pos) /*!< 0x00100000 */
  21045. #define HRTIM_ADC2R_AD2TCC4 HRTIM_ADC2R_AD2TCC4_Msk /*!< ADC Trigger 2 on Timer C compare 4 */
  21046. #define HRTIM_ADC2R_AD2TCPER_Pos (21U)
  21047. #define HRTIM_ADC2R_AD2TCPER_Msk (0x1U << HRTIM_ADC2R_AD2TCPER_Pos) /*!< 0x00200000 */
  21048. #define HRTIM_ADC2R_AD2TCPER HRTIM_ADC2R_AD2TCPER_Msk /*!< ADC Trigger 2 on Timer C period */
  21049. #define HRTIM_ADC2R_AD2TCRST_Pos (22U)
  21050. #define HRTIM_ADC2R_AD2TCRST_Msk (0x1U << HRTIM_ADC2R_AD2TCRST_Pos) /*!< 0x00400000 */
  21051. #define HRTIM_ADC2R_AD2TCRST HRTIM_ADC2R_AD2TCRST_Msk /*!< ADC Trigger 2 on Timer C reset */
  21052. #define HRTIM_ADC2R_AD2TDC2_Pos (23U)
  21053. #define HRTIM_ADC2R_AD2TDC2_Msk (0x1U << HRTIM_ADC2R_AD2TDC2_Pos) /*!< 0x00800000 */
  21054. #define HRTIM_ADC2R_AD2TDC2 HRTIM_ADC2R_AD2TDC2_Msk /*!< ADC Trigger 2 on Timer D compare 2 */
  21055. #define HRTIM_ADC2R_AD2TDC3_Pos (24U)
  21056. #define HRTIM_ADC2R_AD2TDC3_Msk (0x1U << HRTIM_ADC2R_AD2TDC3_Pos) /*!< 0x01000000 */
  21057. #define HRTIM_ADC2R_AD2TDC3 HRTIM_ADC2R_AD2TDC3_Msk /*!< ADC Trigger 2 on Timer D compare 3 */
  21058. #define HRTIM_ADC2R_AD2TDC4_Pos (25U)
  21059. #define HRTIM_ADC2R_AD2TDC4_Msk (0x1U << HRTIM_ADC2R_AD2TDC4_Pos) /*!< 0x02000000 */
  21060. #define HRTIM_ADC2R_AD2TDC4 HRTIM_ADC2R_AD2TDC4_Msk /*!< ADC Trigger 2 on Timer D compare 4*/
  21061. #define HRTIM_ADC2R_AD2TDPER_Pos (26U)
  21062. #define HRTIM_ADC2R_AD2TDPER_Msk (0x1U << HRTIM_ADC2R_AD2TDPER_Pos) /*!< 0x04000000 */
  21063. #define HRTIM_ADC2R_AD2TDPER HRTIM_ADC2R_AD2TDPER_Msk /*!< ADC Trigger 2 on Timer D period */
  21064. #define HRTIM_ADC2R_AD2TDRST_Pos (27U)
  21065. #define HRTIM_ADC2R_AD2TDRST_Msk (0x1U << HRTIM_ADC2R_AD2TDRST_Pos) /*!< 0x08000000 */
  21066. #define HRTIM_ADC2R_AD2TDRST HRTIM_ADC2R_AD2TDRST_Msk /*!< ADC Trigger 2 on Timer D reset */
  21067. #define HRTIM_ADC2R_AD2TEC2_Pos (28U)
  21068. #define HRTIM_ADC2R_AD2TEC2_Msk (0x1U << HRTIM_ADC2R_AD2TEC2_Pos) /*!< 0x10000000 */
  21069. #define HRTIM_ADC2R_AD2TEC2 HRTIM_ADC2R_AD2TEC2_Msk /*!< ADC Trigger 2 on Timer E compare 2 */
  21070. #define HRTIM_ADC2R_AD2TEC3_Pos (29U)
  21071. #define HRTIM_ADC2R_AD2TEC3_Msk (0x1U << HRTIM_ADC2R_AD2TEC3_Pos) /*!< 0x20000000 */
  21072. #define HRTIM_ADC2R_AD2TEC3 HRTIM_ADC2R_AD2TEC3_Msk /*!< ADC Trigger 2 on Timer E compare 3 */
  21073. #define HRTIM_ADC2R_AD2TEC4_Pos (30U)
  21074. #define HRTIM_ADC2R_AD2TEC4_Msk (0x1U << HRTIM_ADC2R_AD2TEC4_Pos) /*!< 0x40000000 */
  21075. #define HRTIM_ADC2R_AD2TEC4 HRTIM_ADC2R_AD2TEC4_Msk /*!< ADC Trigger 2 on Timer E compare 4 */
  21076. #define HRTIM_ADC2R_AD2TERST_Pos (31U)
  21077. #define HRTIM_ADC2R_AD2TERST_Msk (0x1U << HRTIM_ADC2R_AD2TERST_Pos) /*!< 0x80000000 */
  21078. #define HRTIM_ADC2R_AD2TERST HRTIM_ADC2R_AD2TERST_Msk /*!< ADC Trigger 2 on Timer E reset */
  21079. /******************* Bit definition for HRTIM_ADC3R register ****************/
  21080. #define HRTIM_ADC3R_AD3MC1_Pos (0U)
  21081. #define HRTIM_ADC3R_AD3MC1_Msk (0x1U << HRTIM_ADC3R_AD3MC1_Pos) /*!< 0x00000001 */
  21082. #define HRTIM_ADC3R_AD3MC1 HRTIM_ADC3R_AD3MC1_Msk /*!< ADC Trigger 3 on master compare 1 */
  21083. #define HRTIM_ADC3R_AD3MC2_Pos (1U)
  21084. #define HRTIM_ADC3R_AD3MC2_Msk (0x1U << HRTIM_ADC3R_AD3MC2_Pos) /*!< 0x00000002 */
  21085. #define HRTIM_ADC3R_AD3MC2 HRTIM_ADC3R_AD3MC2_Msk /*!< ADC Trigger 3 on master compare 2 */
  21086. #define HRTIM_ADC3R_AD3MC3_Pos (2U)
  21087. #define HRTIM_ADC3R_AD3MC3_Msk (0x1U << HRTIM_ADC3R_AD3MC3_Pos) /*!< 0x00000004 */
  21088. #define HRTIM_ADC3R_AD3MC3 HRTIM_ADC3R_AD3MC3_Msk /*!< ADC Trigger 3 on master compare 3 */
  21089. #define HRTIM_ADC3R_AD3MC4_Pos (3U)
  21090. #define HRTIM_ADC3R_AD3MC4_Msk (0x1U << HRTIM_ADC3R_AD3MC4_Pos) /*!< 0x00000008 */
  21091. #define HRTIM_ADC3R_AD3MC4 HRTIM_ADC3R_AD3MC4_Msk /*!< ADC Trigger 3 on master compare 4 */
  21092. #define HRTIM_ADC3R_AD3MPER_Pos (4U)
  21093. #define HRTIM_ADC3R_AD3MPER_Msk (0x1U << HRTIM_ADC3R_AD3MPER_Pos) /*!< 0x00000010 */
  21094. #define HRTIM_ADC3R_AD3MPER HRTIM_ADC3R_AD3MPER_Msk /*!< ADC Trigger 3 on master period */
  21095. #define HRTIM_ADC3R_AD3EEV1_Pos (5U)
  21096. #define HRTIM_ADC3R_AD3EEV1_Msk (0x1U << HRTIM_ADC3R_AD3EEV1_Pos) /*!< 0x00000020 */
  21097. #define HRTIM_ADC3R_AD3EEV1 HRTIM_ADC3R_AD3EEV1_Msk /*!< ADC Trigger 3 on external event 1 */
  21098. #define HRTIM_ADC3R_AD3EEV2_Pos (6U)
  21099. #define HRTIM_ADC3R_AD3EEV2_Msk (0x1U << HRTIM_ADC3R_AD3EEV2_Pos) /*!< 0x00000040 */
  21100. #define HRTIM_ADC3R_AD3EEV2 HRTIM_ADC3R_AD3EEV2_Msk /*!< ADC Trigger 3 on external event 2 */
  21101. #define HRTIM_ADC3R_AD3EEV3_Pos (7U)
  21102. #define HRTIM_ADC3R_AD3EEV3_Msk (0x1U << HRTIM_ADC3R_AD3EEV3_Pos) /*!< 0x00000080 */
  21103. #define HRTIM_ADC3R_AD3EEV3 HRTIM_ADC3R_AD3EEV3_Msk /*!< ADC Trigger 3 on external event 3 */
  21104. #define HRTIM_ADC3R_AD3EEV4_Pos (8U)
  21105. #define HRTIM_ADC3R_AD3EEV4_Msk (0x1U << HRTIM_ADC3R_AD3EEV4_Pos) /*!< 0x00000100 */
  21106. #define HRTIM_ADC3R_AD3EEV4 HRTIM_ADC3R_AD3EEV4_Msk /*!< ADC Trigger 3 on external event 4 */
  21107. #define HRTIM_ADC3R_AD3EEV5_Pos (9U)
  21108. #define HRTIM_ADC3R_AD3EEV5_Msk (0x1U << HRTIM_ADC3R_AD3EEV5_Pos) /*!< 0x00000200 */
  21109. #define HRTIM_ADC3R_AD3EEV5 HRTIM_ADC3R_AD3EEV5_Msk /*!< ADC Trigger 3 on external event 5 */
  21110. #define HRTIM_ADC3R_AD3TAC2_Pos (10U)
  21111. #define HRTIM_ADC3R_AD3TAC2_Msk (0x1U << HRTIM_ADC3R_AD3TAC2_Pos) /*!< 0x00000400 */
  21112. #define HRTIM_ADC3R_AD3TAC2 HRTIM_ADC3R_AD3TAC2_Msk /*!< ADC Trigger 3 on Timer A compare 2 */
  21113. #define HRTIM_ADC3R_AD3TAC3_Pos (11U)
  21114. #define HRTIM_ADC3R_AD3TAC3_Msk (0x1U << HRTIM_ADC3R_AD3TAC3_Pos) /*!< 0x00000800 */
  21115. #define HRTIM_ADC3R_AD3TAC3 HRTIM_ADC3R_AD3TAC3_Msk /*!< ADC Trigger 3 on Timer A compare 3 */
  21116. #define HRTIM_ADC3R_AD3TAC4_Pos (12U)
  21117. #define HRTIM_ADC3R_AD3TAC4_Msk (0x1U << HRTIM_ADC3R_AD3TAC4_Pos) /*!< 0x00001000 */
  21118. #define HRTIM_ADC3R_AD3TAC4 HRTIM_ADC3R_AD3TAC4_Msk /*!< ADC Trigger 3 on Timer A compare 4 */
  21119. #define HRTIM_ADC3R_AD3TAPER_Pos (13U)
  21120. #define HRTIM_ADC3R_AD3TAPER_Msk (0x1U << HRTIM_ADC3R_AD3TAPER_Pos) /*!< 0x00002000 */
  21121. #define HRTIM_ADC3R_AD3TAPER HRTIM_ADC3R_AD3TAPER_Msk /*!< ADC Trigger 3 on Timer A period */
  21122. #define HRTIM_ADC3R_AD3TARST_Pos (14U)
  21123. #define HRTIM_ADC3R_AD3TARST_Msk (0x1U << HRTIM_ADC3R_AD3TARST_Pos) /*!< 0x00004000 */
  21124. #define HRTIM_ADC3R_AD3TARST HRTIM_ADC3R_AD3TARST_Msk /*!< ADC Trigger 3 on Timer A reset */
  21125. #define HRTIM_ADC3R_AD3TBC2_Pos (15U)
  21126. #define HRTIM_ADC3R_AD3TBC2_Msk (0x1U << HRTIM_ADC3R_AD3TBC2_Pos) /*!< 0x00008000 */
  21127. #define HRTIM_ADC3R_AD3TBC2 HRTIM_ADC3R_AD3TBC2_Msk /*!< ADC Trigger 3 on Timer B compare 2 */
  21128. #define HRTIM_ADC3R_AD3TBC3_Pos (16U)
  21129. #define HRTIM_ADC3R_AD3TBC3_Msk (0x1U << HRTIM_ADC3R_AD3TBC3_Pos) /*!< 0x00010000 */
  21130. #define HRTIM_ADC3R_AD3TBC3 HRTIM_ADC3R_AD3TBC3_Msk /*!< ADC Trigger 3 on Timer B compare 3 */
  21131. #define HRTIM_ADC3R_AD3TBC4_Pos (17U)
  21132. #define HRTIM_ADC3R_AD3TBC4_Msk (0x1U << HRTIM_ADC3R_AD3TBC4_Pos) /*!< 0x00020000 */
  21133. #define HRTIM_ADC3R_AD3TBC4 HRTIM_ADC3R_AD3TBC4_Msk /*!< ADC Trigger 3 on Timer B compare 4 */
  21134. #define HRTIM_ADC3R_AD3TBPER_Pos (18U)
  21135. #define HRTIM_ADC3R_AD3TBPER_Msk (0x1U << HRTIM_ADC3R_AD3TBPER_Pos) /*!< 0x00040000 */
  21136. #define HRTIM_ADC3R_AD3TBPER HRTIM_ADC3R_AD3TBPER_Msk /*!< ADC Trigger 3 on Timer B period */
  21137. #define HRTIM_ADC3R_AD3TBRST_Pos (19U)
  21138. #define HRTIM_ADC3R_AD3TBRST_Msk (0x1U << HRTIM_ADC3R_AD3TBRST_Pos) /*!< 0x00080000 */
  21139. #define HRTIM_ADC3R_AD3TBRST HRTIM_ADC3R_AD3TBRST_Msk /*!< ADC Trigger 3 on Timer B reset */
  21140. #define HRTIM_ADC3R_AD3TCC2_Pos (20U)
  21141. #define HRTIM_ADC3R_AD3TCC2_Msk (0x1U << HRTIM_ADC3R_AD3TCC2_Pos) /*!< 0x00100000 */
  21142. #define HRTIM_ADC3R_AD3TCC2 HRTIM_ADC3R_AD3TCC2_Msk /*!< ADC Trigger 3 on Timer C compare 2 */
  21143. #define HRTIM_ADC3R_AD3TCC3_Pos (21U)
  21144. #define HRTIM_ADC3R_AD3TCC3_Msk (0x1U << HRTIM_ADC3R_AD3TCC3_Pos) /*!< 0x00200000 */
  21145. #define HRTIM_ADC3R_AD3TCC3 HRTIM_ADC3R_AD3TCC3_Msk /*!< ADC Trigger 3 on Timer C compare 3 */
  21146. #define HRTIM_ADC3R_AD3TCC4_Pos (22U)
  21147. #define HRTIM_ADC3R_AD3TCC4_Msk (0x1U << HRTIM_ADC3R_AD3TCC4_Pos) /*!< 0x00400000 */
  21148. #define HRTIM_ADC3R_AD3TCC4 HRTIM_ADC3R_AD3TCC4_Msk /*!< ADC Trigger 3 on Timer C compare 4 */
  21149. #define HRTIM_ADC3R_AD3TCPER_Pos (23U)
  21150. #define HRTIM_ADC3R_AD3TCPER_Msk (0x1U << HRTIM_ADC3R_AD3TCPER_Pos) /*!< 0x00800000 */
  21151. #define HRTIM_ADC3R_AD3TCPER HRTIM_ADC3R_AD3TCPER_Msk /*!< ADC Trigger 3 on Timer C period */
  21152. #define HRTIM_ADC3R_AD3TDC2_Pos (24U)
  21153. #define HRTIM_ADC3R_AD3TDC2_Msk (0x1U << HRTIM_ADC3R_AD3TDC2_Pos) /*!< 0x01000000 */
  21154. #define HRTIM_ADC3R_AD3TDC2 HRTIM_ADC3R_AD3TDC2_Msk /*!< ADC Trigger 3 on Timer D compare 2 */
  21155. #define HRTIM_ADC3R_AD3TDC3_Pos (25U)
  21156. #define HRTIM_ADC3R_AD3TDC3_Msk (0x1U << HRTIM_ADC3R_AD3TDC3_Pos) /*!< 0x02000000 */
  21157. #define HRTIM_ADC3R_AD3TDC3 HRTIM_ADC3R_AD3TDC3_Msk /*!< ADC Trigger 3 on Timer D compare 3 */
  21158. #define HRTIM_ADC3R_AD3TDC4_Pos (26U)
  21159. #define HRTIM_ADC3R_AD3TDC4_Msk (0x1U << HRTIM_ADC3R_AD3TDC4_Pos) /*!< 0x04000000 */
  21160. #define HRTIM_ADC3R_AD3TDC4 HRTIM_ADC3R_AD3TDC4_Msk /*!< ADC Trigger 3 on Timer D compare 4 */
  21161. #define HRTIM_ADC3R_AD3TDPER_Pos (27U)
  21162. #define HRTIM_ADC3R_AD3TDPER_Msk (0x1U << HRTIM_ADC3R_AD3TDPER_Pos) /*!< 0x08000000 */
  21163. #define HRTIM_ADC3R_AD3TDPER HRTIM_ADC3R_AD3TDPER_Msk /*!< ADC Trigger 3 on Timer D period */
  21164. #define HRTIM_ADC3R_AD3TEC2_Pos (28U)
  21165. #define HRTIM_ADC3R_AD3TEC2_Msk (0x1U << HRTIM_ADC3R_AD3TEC2_Pos) /*!< 0x10000000 */
  21166. #define HRTIM_ADC3R_AD3TEC2 HRTIM_ADC3R_AD3TEC2_Msk /*!< ADC Trigger 3 on Timer E compare 2 */
  21167. #define HRTIM_ADC3R_AD3TEC3_Pos (29U)
  21168. #define HRTIM_ADC3R_AD3TEC3_Msk (0x1U << HRTIM_ADC3R_AD3TEC3_Pos) /*!< 0x20000000 */
  21169. #define HRTIM_ADC3R_AD3TEC3 HRTIM_ADC3R_AD3TEC3_Msk /*!< ADC Trigger 3 on Timer E compare 3 */
  21170. #define HRTIM_ADC3R_AD3TEC4_Pos (30U)
  21171. #define HRTIM_ADC3R_AD3TEC4_Msk (0x1U << HRTIM_ADC3R_AD3TEC4_Pos) /*!< 0x40000000 */
  21172. #define HRTIM_ADC3R_AD3TEC4 HRTIM_ADC3R_AD3TEC4_Msk /*!< ADC Trigger 3 on Timer E compare 4 */
  21173. #define HRTIM_ADC3R_AD3TEPER_Pos (31U)
  21174. #define HRTIM_ADC3R_AD3TEPER_Msk (0x1U << HRTIM_ADC3R_AD3TEPER_Pos) /*!< 0x80000000 */
  21175. #define HRTIM_ADC3R_AD3TEPER HRTIM_ADC3R_AD3TEPER_Msk /*!< ADC Trigger 3 on Timer E period */
  21176. /******************* Bit definition for HRTIM_ADC4R register ****************/
  21177. #define HRTIM_ADC4R_AD4MC1_Pos (0U)
  21178. #define HRTIM_ADC4R_AD4MC1_Msk (0x1U << HRTIM_ADC4R_AD4MC1_Pos) /*!< 0x00000001 */
  21179. #define HRTIM_ADC4R_AD4MC1 HRTIM_ADC4R_AD4MC1_Msk /*!< ADC Trigger 4 on master compare 1 */
  21180. #define HRTIM_ADC4R_AD4MC2_Pos (1U)
  21181. #define HRTIM_ADC4R_AD4MC2_Msk (0x1U << HRTIM_ADC4R_AD4MC2_Pos) /*!< 0x00000002 */
  21182. #define HRTIM_ADC4R_AD4MC2 HRTIM_ADC4R_AD4MC2_Msk /*!< ADC Trigger 4 on master compare 2 */
  21183. #define HRTIM_ADC4R_AD4MC3_Pos (2U)
  21184. #define HRTIM_ADC4R_AD4MC3_Msk (0x1U << HRTIM_ADC4R_AD4MC3_Pos) /*!< 0x00000004 */
  21185. #define HRTIM_ADC4R_AD4MC3 HRTIM_ADC4R_AD4MC3_Msk /*!< ADC Trigger 4 on master compare 3 */
  21186. #define HRTIM_ADC4R_AD4MC4_Pos (3U)
  21187. #define HRTIM_ADC4R_AD4MC4_Msk (0x1U << HRTIM_ADC4R_AD4MC4_Pos) /*!< 0x00000008 */
  21188. #define HRTIM_ADC4R_AD4MC4 HRTIM_ADC4R_AD4MC4_Msk /*!< ADC Trigger 4 on master compare 4 */
  21189. #define HRTIM_ADC4R_AD4MPER_Pos (4U)
  21190. #define HRTIM_ADC4R_AD4MPER_Msk (0x1U << HRTIM_ADC4R_AD4MPER_Pos) /*!< 0x00000010 */
  21191. #define HRTIM_ADC4R_AD4MPER HRTIM_ADC4R_AD4MPER_Msk /*!< ADC Trigger 4 on master period */
  21192. #define HRTIM_ADC4R_AD4EEV6_Pos (5U)
  21193. #define HRTIM_ADC4R_AD4EEV6_Msk (0x1U << HRTIM_ADC4R_AD4EEV6_Pos) /*!< 0x00000020 */
  21194. #define HRTIM_ADC4R_AD4EEV6 HRTIM_ADC4R_AD4EEV6_Msk /*!< ADC Trigger 4 on external event 6 */
  21195. #define HRTIM_ADC4R_AD4EEV7_Pos (6U)
  21196. #define HRTIM_ADC4R_AD4EEV7_Msk (0x1U << HRTIM_ADC4R_AD4EEV7_Pos) /*!< 0x00000040 */
  21197. #define HRTIM_ADC4R_AD4EEV7 HRTIM_ADC4R_AD4EEV7_Msk /*!< ADC Trigger 4 on external event 7 */
  21198. #define HRTIM_ADC4R_AD4EEV8_Pos (7U)
  21199. #define HRTIM_ADC4R_AD4EEV8_Msk (0x1U << HRTIM_ADC4R_AD4EEV8_Pos) /*!< 0x00000080 */
  21200. #define HRTIM_ADC4R_AD4EEV8 HRTIM_ADC4R_AD4EEV8_Msk /*!< ADC Trigger 4 on external event 8 */
  21201. #define HRTIM_ADC4R_AD4EEV9_Pos (8U)
  21202. #define HRTIM_ADC4R_AD4EEV9_Msk (0x1U << HRTIM_ADC4R_AD4EEV9_Pos) /*!< 0x00000100 */
  21203. #define HRTIM_ADC4R_AD4EEV9 HRTIM_ADC4R_AD4EEV9_Msk /*!< ADC Trigger 4 on external event 9 */
  21204. #define HRTIM_ADC4R_AD4EEV10_Pos (9U)
  21205. #define HRTIM_ADC4R_AD4EEV10_Msk (0x1U << HRTIM_ADC4R_AD4EEV10_Pos) /*!< 0x00000200 */
  21206. #define HRTIM_ADC4R_AD4EEV10 HRTIM_ADC4R_AD4EEV10_Msk /*!< ADC Trigger 4 on external event 10 */
  21207. #define HRTIM_ADC4R_AD4TAC2_Pos (10U)
  21208. #define HRTIM_ADC4R_AD4TAC2_Msk (0x1U << HRTIM_ADC4R_AD4TAC2_Pos) /*!< 0x00000400 */
  21209. #define HRTIM_ADC4R_AD4TAC2 HRTIM_ADC4R_AD4TAC2_Msk /*!< ADC Trigger 4 on Timer A compare 2 */
  21210. #define HRTIM_ADC4R_AD4TAC3_Pos (11U)
  21211. #define HRTIM_ADC4R_AD4TAC3_Msk (0x1U << HRTIM_ADC4R_AD4TAC3_Pos) /*!< 0x00000800 */
  21212. #define HRTIM_ADC4R_AD4TAC3 HRTIM_ADC4R_AD4TAC3_Msk /*!< ADC Trigger 4 on Timer A compare 3 */
  21213. #define HRTIM_ADC4R_AD4TAC4_Pos (12U)
  21214. #define HRTIM_ADC4R_AD4TAC4_Msk (0x1U << HRTIM_ADC4R_AD4TAC4_Pos) /*!< 0x00001000 */
  21215. #define HRTIM_ADC4R_AD4TAC4 HRTIM_ADC4R_AD4TAC4_Msk /*!< ADC Trigger 4 on Timer A compare 4*/
  21216. #define HRTIM_ADC4R_AD4TAPER_Pos (13U)
  21217. #define HRTIM_ADC4R_AD4TAPER_Msk (0x1U << HRTIM_ADC4R_AD4TAPER_Pos) /*!< 0x00002000 */
  21218. #define HRTIM_ADC4R_AD4TAPER HRTIM_ADC4R_AD4TAPER_Msk /*!< ADC Trigger 4 on Timer A period */
  21219. #define HRTIM_ADC4R_AD4TBC2_Pos (14U)
  21220. #define HRTIM_ADC4R_AD4TBC2_Msk (0x1U << HRTIM_ADC4R_AD4TBC2_Pos) /*!< 0x00004000 */
  21221. #define HRTIM_ADC4R_AD4TBC2 HRTIM_ADC4R_AD4TBC2_Msk /*!< ADC Trigger 4 on Timer B compare 2 */
  21222. #define HRTIM_ADC4R_AD4TBC3_Pos (15U)
  21223. #define HRTIM_ADC4R_AD4TBC3_Msk (0x1U << HRTIM_ADC4R_AD4TBC3_Pos) /*!< 0x00008000 */
  21224. #define HRTIM_ADC4R_AD4TBC3 HRTIM_ADC4R_AD4TBC3_Msk /*!< ADC Trigger 4 on Timer B compare 3 */
  21225. #define HRTIM_ADC4R_AD4TBC4_Pos (16U)
  21226. #define HRTIM_ADC4R_AD4TBC4_Msk (0x1U << HRTIM_ADC4R_AD4TBC4_Pos) /*!< 0x00010000 */
  21227. #define HRTIM_ADC4R_AD4TBC4 HRTIM_ADC4R_AD4TBC4_Msk /*!< ADC Trigger 4 on Timer B compare 4 */
  21228. #define HRTIM_ADC4R_AD4TBPER_Pos (17U)
  21229. #define HRTIM_ADC4R_AD4TBPER_Msk (0x1U << HRTIM_ADC4R_AD4TBPER_Pos) /*!< 0x00020000 */
  21230. #define HRTIM_ADC4R_AD4TBPER HRTIM_ADC4R_AD4TBPER_Msk /*!< ADC Trigger 4 on Timer B period */
  21231. #define HRTIM_ADC4R_AD4TCC2_Pos (18U)
  21232. #define HRTIM_ADC4R_AD4TCC2_Msk (0x1U << HRTIM_ADC4R_AD4TCC2_Pos) /*!< 0x00040000 */
  21233. #define HRTIM_ADC4R_AD4TCC2 HRTIM_ADC4R_AD4TCC2_Msk /*!< ADC Trigger 4 on Timer C compare 2 */
  21234. #define HRTIM_ADC4R_AD4TCC3_Pos (19U)
  21235. #define HRTIM_ADC4R_AD4TCC3_Msk (0x1U << HRTIM_ADC4R_AD4TCC3_Pos) /*!< 0x00080000 */
  21236. #define HRTIM_ADC4R_AD4TCC3 HRTIM_ADC4R_AD4TCC3_Msk /*!< ADC Trigger 4 on Timer C compare 3 */
  21237. #define HRTIM_ADC4R_AD4TCC4_Pos (20U)
  21238. #define HRTIM_ADC4R_AD4TCC4_Msk (0x1U << HRTIM_ADC4R_AD4TCC4_Pos) /*!< 0x00100000 */
  21239. #define HRTIM_ADC4R_AD4TCC4 HRTIM_ADC4R_AD4TCC4_Msk /*!< ADC Trigger 4 on Timer C compare 4 */
  21240. #define HRTIM_ADC4R_AD4TCPER_Pos (21U)
  21241. #define HRTIM_ADC4R_AD4TCPER_Msk (0x1U << HRTIM_ADC4R_AD4TCPER_Pos) /*!< 0x00200000 */
  21242. #define HRTIM_ADC4R_AD4TCPER HRTIM_ADC4R_AD4TCPER_Msk /*!< ADC Trigger 4 on Timer C period */
  21243. #define HRTIM_ADC4R_AD4TCRST_Pos (22U)
  21244. #define HRTIM_ADC4R_AD4TCRST_Msk (0x1U << HRTIM_ADC4R_AD4TCRST_Pos) /*!< 0x00400000 */
  21245. #define HRTIM_ADC4R_AD4TCRST HRTIM_ADC4R_AD4TCRST_Msk /*!< ADC Trigger 4 on Timer C reset */
  21246. #define HRTIM_ADC4R_AD4TDC2_Pos (23U)
  21247. #define HRTIM_ADC4R_AD4TDC2_Msk (0x1U << HRTIM_ADC4R_AD4TDC2_Pos) /*!< 0x00800000 */
  21248. #define HRTIM_ADC4R_AD4TDC2 HRTIM_ADC4R_AD4TDC2_Msk /*!< ADC Trigger 4 on Timer D compare 2 */
  21249. #define HRTIM_ADC4R_AD4TDC3_Pos (24U)
  21250. #define HRTIM_ADC4R_AD4TDC3_Msk (0x1U << HRTIM_ADC4R_AD4TDC3_Pos) /*!< 0x01000000 */
  21251. #define HRTIM_ADC4R_AD4TDC3 HRTIM_ADC4R_AD4TDC3_Msk /*!< ADC Trigger 4 on Timer D compare 3 */
  21252. #define HRTIM_ADC4R_AD4TDC4_Pos (25U)
  21253. #define HRTIM_ADC4R_AD4TDC4_Msk (0x1U << HRTIM_ADC4R_AD4TDC4_Pos) /*!< 0x02000000 */
  21254. #define HRTIM_ADC4R_AD4TDC4 HRTIM_ADC4R_AD4TDC4_Msk /*!< ADC Trigger 4 on Timer D compare 4*/
  21255. #define HRTIM_ADC4R_AD4TDPER_Pos (26U)
  21256. #define HRTIM_ADC4R_AD4TDPER_Msk (0x1U << HRTIM_ADC4R_AD4TDPER_Pos) /*!< 0x04000000 */
  21257. #define HRTIM_ADC4R_AD4TDPER HRTIM_ADC4R_AD4TDPER_Msk /*!< ADC Trigger 4 on Timer D period */
  21258. #define HRTIM_ADC4R_AD4TDRST_Pos (27U)
  21259. #define HRTIM_ADC4R_AD4TDRST_Msk (0x1U << HRTIM_ADC4R_AD4TDRST_Pos) /*!< 0x08000000 */
  21260. #define HRTIM_ADC4R_AD4TDRST HRTIM_ADC4R_AD4TDRST_Msk /*!< ADC Trigger 4 on Timer D reset */
  21261. #define HRTIM_ADC4R_AD4TEC2_Pos (28U)
  21262. #define HRTIM_ADC4R_AD4TEC2_Msk (0x1U << HRTIM_ADC4R_AD4TEC2_Pos) /*!< 0x10000000 */
  21263. #define HRTIM_ADC4R_AD4TEC2 HRTIM_ADC4R_AD4TEC2_Msk /*!< ADC Trigger 4 on Timer E compare 2 */
  21264. #define HRTIM_ADC4R_AD4TEC3_Pos (29U)
  21265. #define HRTIM_ADC4R_AD4TEC3_Msk (0x1U << HRTIM_ADC4R_AD4TEC3_Pos) /*!< 0x20000000 */
  21266. #define HRTIM_ADC4R_AD4TEC3 HRTIM_ADC4R_AD4TEC3_Msk /*!< ADC Trigger 4 on Timer E compare 3 */
  21267. #define HRTIM_ADC4R_AD4TEC4_Pos (30U)
  21268. #define HRTIM_ADC4R_AD4TEC4_Msk (0x1U << HRTIM_ADC4R_AD4TEC4_Pos) /*!< 0x40000000 */
  21269. #define HRTIM_ADC4R_AD4TEC4 HRTIM_ADC4R_AD4TEC4_Msk /*!< ADC Trigger 4 on Timer E compare 4 */
  21270. #define HRTIM_ADC4R_AD4TERST_Pos (31U)
  21271. #define HRTIM_ADC4R_AD4TERST_Msk (0x1U << HRTIM_ADC4R_AD4TERST_Pos) /*!< 0x80000000 */
  21272. #define HRTIM_ADC4R_AD4TERST HRTIM_ADC4R_AD4TERST_Msk /*!< ADC Trigger 4 on Timer E reset */
  21273. /******************* Bit definition for HRTIM_FLTINR1 register ***************/
  21274. #define HRTIM_FLTINR1_FLT1E_Pos (0U)
  21275. #define HRTIM_FLTINR1_FLT1E_Msk (0x1U << HRTIM_FLTINR1_FLT1E_Pos) /*!< 0x00000001 */
  21276. #define HRTIM_FLTINR1_FLT1E HRTIM_FLTINR1_FLT1E_Msk /*!< Fault 1 enable */
  21277. #define HRTIM_FLTINR1_FLT1P_Pos (1U)
  21278. #define HRTIM_FLTINR1_FLT1P_Msk (0x1U << HRTIM_FLTINR1_FLT1P_Pos) /*!< 0x00000002 */
  21279. #define HRTIM_FLTINR1_FLT1P HRTIM_FLTINR1_FLT1P_Msk /*!< Fault 1 polarity */
  21280. #define HRTIM_FLTINR1_FLT1SRC_Pos (2U)
  21281. #define HRTIM_FLTINR1_FLT1SRC_Msk (0x1U << HRTIM_FLTINR1_FLT1SRC_Pos) /*!< 0x00000004 */
  21282. #define HRTIM_FLTINR1_FLT1SRC HRTIM_FLTINR1_FLT1SRC_Msk /*!< Fault 1 source */
  21283. #define HRTIM_FLTINR1_FLT1F_Pos (3U)
  21284. #define HRTIM_FLTINR1_FLT1F_Msk (0xFU << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000078 */
  21285. #define HRTIM_FLTINR1_FLT1F HRTIM_FLTINR1_FLT1F_Msk /*!< Fault 1 filter */
  21286. #define HRTIM_FLTINR1_FLT1F_0 (0x1U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000008 */
  21287. #define HRTIM_FLTINR1_FLT1F_1 (0x2U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000010 */
  21288. #define HRTIM_FLTINR1_FLT1F_2 (0x4U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000020 */
  21289. #define HRTIM_FLTINR1_FLT1F_3 (0x8U << HRTIM_FLTINR1_FLT1F_Pos) /*!< 0x00000040 */
  21290. #define HRTIM_FLTINR1_FLT1LCK_Pos (7U)
  21291. #define HRTIM_FLTINR1_FLT1LCK_Msk (0x1U << HRTIM_FLTINR1_FLT1LCK_Pos) /*!< 0x00000080 */
  21292. #define HRTIM_FLTINR1_FLT1LCK HRTIM_FLTINR1_FLT1LCK_Msk /*!< Fault 1 lock */
  21293. #define HRTIM_FLTINR1_FLT2E_Pos (8U)
  21294. #define HRTIM_FLTINR1_FLT2E_Msk (0x1U << HRTIM_FLTINR1_FLT2E_Pos) /*!< 0x00000100 */
  21295. #define HRTIM_FLTINR1_FLT2E HRTIM_FLTINR1_FLT2E_Msk /*!< Fault 2 enable */
  21296. #define HRTIM_FLTINR1_FLT2P_Pos (9U)
  21297. #define HRTIM_FLTINR1_FLT2P_Msk (0x1U << HRTIM_FLTINR1_FLT2P_Pos) /*!< 0x00000200 */
  21298. #define HRTIM_FLTINR1_FLT2P HRTIM_FLTINR1_FLT2P_Msk /*!< Fault 2 polarity */
  21299. #define HRTIM_FLTINR1_FLT2SRC_Pos (10U)
  21300. #define HRTIM_FLTINR1_FLT2SRC_Msk (0x1U << HRTIM_FLTINR1_FLT2SRC_Pos) /*!< 0x00000400 */
  21301. #define HRTIM_FLTINR1_FLT2SRC HRTIM_FLTINR1_FLT2SRC_Msk /*!< Fault 2 source */
  21302. #define HRTIM_FLTINR1_FLT2F_Pos (11U)
  21303. #define HRTIM_FLTINR1_FLT2F_Msk (0xFU << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00007800 */
  21304. #define HRTIM_FLTINR1_FLT2F HRTIM_FLTINR1_FLT2F_Msk /*!< Fault 2 filter */
  21305. #define HRTIM_FLTINR1_FLT2F_0 (0x1U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00000800 */
  21306. #define HRTIM_FLTINR1_FLT2F_1 (0x2U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00001000 */
  21307. #define HRTIM_FLTINR1_FLT2F_2 (0x4U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00002000 */
  21308. #define HRTIM_FLTINR1_FLT2F_3 (0x8U << HRTIM_FLTINR1_FLT2F_Pos) /*!< 0x00004000 */
  21309. #define HRTIM_FLTINR1_FLT2LCK_Pos (15U)
  21310. #define HRTIM_FLTINR1_FLT2LCK_Msk (0x1U << HRTIM_FLTINR1_FLT2LCK_Pos) /*!< 0x00008000 */
  21311. #define HRTIM_FLTINR1_FLT2LCK HRTIM_FLTINR1_FLT2LCK_Msk /*!< Fault 2 lock */
  21312. #define HRTIM_FLTINR1_FLT3E_Pos (16U)
  21313. #define HRTIM_FLTINR1_FLT3E_Msk (0x1U << HRTIM_FLTINR1_FLT3E_Pos) /*!< 0x00010000 */
  21314. #define HRTIM_FLTINR1_FLT3E HRTIM_FLTINR1_FLT3E_Msk /*!< Fault 3 enable */
  21315. #define HRTIM_FLTINR1_FLT3P_Pos (17U)
  21316. #define HRTIM_FLTINR1_FLT3P_Msk (0x1U << HRTIM_FLTINR1_FLT3P_Pos) /*!< 0x00020000 */
  21317. #define HRTIM_FLTINR1_FLT3P HRTIM_FLTINR1_FLT3P_Msk /*!< Fault 3 polarity */
  21318. #define HRTIM_FLTINR1_FLT3SRC_Pos (18U)
  21319. #define HRTIM_FLTINR1_FLT3SRC_Msk (0x1U << HRTIM_FLTINR1_FLT3SRC_Pos) /*!< 0x00040000 */
  21320. #define HRTIM_FLTINR1_FLT3SRC HRTIM_FLTINR1_FLT3SRC_Msk /*!< Fault 3 source */
  21321. #define HRTIM_FLTINR1_FLT3F_Pos (19U)
  21322. #define HRTIM_FLTINR1_FLT3F_Msk (0xFU << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00780000 */
  21323. #define HRTIM_FLTINR1_FLT3F HRTIM_FLTINR1_FLT3F_Msk /*!< Fault 3 filter */
  21324. #define HRTIM_FLTINR1_FLT3F_0 (0x1U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00080000 */
  21325. #define HRTIM_FLTINR1_FLT3F_1 (0x2U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00100000 */
  21326. #define HRTIM_FLTINR1_FLT3F_2 (0x4U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00200000 */
  21327. #define HRTIM_FLTINR1_FLT3F_3 (0x8U << HRTIM_FLTINR1_FLT3F_Pos) /*!< 0x00400000 */
  21328. #define HRTIM_FLTINR1_FLT3LCK_Pos (23U)
  21329. #define HRTIM_FLTINR1_FLT3LCK_Msk (0x1U << HRTIM_FLTINR1_FLT3LCK_Pos) /*!< 0x00800000 */
  21330. #define HRTIM_FLTINR1_FLT3LCK HRTIM_FLTINR1_FLT3LCK_Msk /*!< Fault 3 lock */
  21331. #define HRTIM_FLTINR1_FLT4E_Pos (24U)
  21332. #define HRTIM_FLTINR1_FLT4E_Msk (0x1U << HRTIM_FLTINR1_FLT4E_Pos) /*!< 0x01000000 */
  21333. #define HRTIM_FLTINR1_FLT4E HRTIM_FLTINR1_FLT4E_Msk /*!< Fault 4 enable */
  21334. #define HRTIM_FLTINR1_FLT4P_Pos (25U)
  21335. #define HRTIM_FLTINR1_FLT4P_Msk (0x1U << HRTIM_FLTINR1_FLT4P_Pos) /*!< 0x02000000 */
  21336. #define HRTIM_FLTINR1_FLT4P HRTIM_FLTINR1_FLT4P_Msk /*!< Fault 4 polarity */
  21337. #define HRTIM_FLTINR1_FLT4SRC_Pos (26U)
  21338. #define HRTIM_FLTINR1_FLT4SRC_Msk (0x1U << HRTIM_FLTINR1_FLT4SRC_Pos) /*!< 0x04000000 */
  21339. #define HRTIM_FLTINR1_FLT4SRC HRTIM_FLTINR1_FLT4SRC_Msk /*!< Fault 4 source */
  21340. #define HRTIM_FLTINR1_FLT4F_Pos (27U)
  21341. #define HRTIM_FLTINR1_FLT4F_Msk (0xFU << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x78000000 */
  21342. #define HRTIM_FLTINR1_FLT4F HRTIM_FLTINR1_FLT4F_Msk /*!< Fault 4 filter */
  21343. #define HRTIM_FLTINR1_FLT4F_0 (0x1U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x08000000 */
  21344. #define HRTIM_FLTINR1_FLT4F_1 (0x2U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x10000000 */
  21345. #define HRTIM_FLTINR1_FLT4F_2 (0x4U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x20000000 */
  21346. #define HRTIM_FLTINR1_FLT4F_3 (0x8U << HRTIM_FLTINR1_FLT4F_Pos) /*!< 0x40000000 */
  21347. #define HRTIM_FLTINR1_FLT4LCK_Pos (31U)
  21348. #define HRTIM_FLTINR1_FLT4LCK_Msk (0x1U << HRTIM_FLTINR1_FLT4LCK_Pos) /*!< 0x80000000 */
  21349. #define HRTIM_FLTINR1_FLT4LCK HRTIM_FLTINR1_FLT4LCK_Msk /*!< Fault 4 lock */
  21350. /******************* Bit definition for HRTIM_FLTINR2 register ***************/
  21351. #define HRTIM_FLTINR2_FLT5E_Pos (0U)
  21352. #define HRTIM_FLTINR2_FLT5E_Msk (0x1U << HRTIM_FLTINR2_FLT5E_Pos) /*!< 0x00000001 */
  21353. #define HRTIM_FLTINR2_FLT5E HRTIM_FLTINR2_FLT5E_Msk /*!< Fault 5 enable */
  21354. #define HRTIM_FLTINR2_FLT5P_Pos (1U)
  21355. #define HRTIM_FLTINR2_FLT5P_Msk (0x1U << HRTIM_FLTINR2_FLT5P_Pos) /*!< 0x00000002 */
  21356. #define HRTIM_FLTINR2_FLT5P HRTIM_FLTINR2_FLT5P_Msk /*!< Fault 5 polarity */
  21357. #define HRTIM_FLTINR2_FLT5SRC_Pos (2U)
  21358. #define HRTIM_FLTINR2_FLT5SRC_Msk (0x1U << HRTIM_FLTINR2_FLT5SRC_Pos) /*!< 0x00000004 */
  21359. #define HRTIM_FLTINR2_FLT5SRC HRTIM_FLTINR2_FLT5SRC_Msk /*!< Fault 5 source */
  21360. #define HRTIM_FLTINR2_FLT5F_Pos (3U)
  21361. #define HRTIM_FLTINR2_FLT5F_Msk (0xFU << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000078 */
  21362. #define HRTIM_FLTINR2_FLT5F HRTIM_FLTINR2_FLT5F_Msk /*!< Fault 5 filter */
  21363. #define HRTIM_FLTINR2_FLT5F_0 (0x1U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000008 */
  21364. #define HRTIM_FLTINR2_FLT5F_1 (0x2U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000010 */
  21365. #define HRTIM_FLTINR2_FLT5F_2 (0x4U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000020 */
  21366. #define HRTIM_FLTINR2_FLT5F_3 (0x8U << HRTIM_FLTINR2_FLT5F_Pos) /*!< 0x00000040 */
  21367. #define HRTIM_FLTINR2_FLT5LCK_Pos (7U)
  21368. #define HRTIM_FLTINR2_FLT5LCK_Msk (0x1U << HRTIM_FLTINR2_FLT5LCK_Pos) /*!< 0x00000080 */
  21369. #define HRTIM_FLTINR2_FLT5LCK HRTIM_FLTINR2_FLT5LCK_Msk /*!< Fault 5 lock */
  21370. #define HRTIM_FLTINR2_FLTSD_Pos (24U)
  21371. #define HRTIM_FLTINR2_FLTSD_Msk (0x3U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x03000000 */
  21372. #define HRTIM_FLTINR2_FLTSD HRTIM_FLTINR2_FLTSD_Msk /*!< Fault sampling clock division */
  21373. #define HRTIM_FLTINR2_FLTSD_0 (0x1U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x01000000 */
  21374. #define HRTIM_FLTINR2_FLTSD_1 (0x2U << HRTIM_FLTINR2_FLTSD_Pos) /*!< 0x02000000 */
  21375. /******************* Bit definition for HRTIM_BDMUPR register ***************/
  21376. #define HRTIM_BDMUPR_MCR_Pos (0U)
  21377. #define HRTIM_BDMUPR_MCR_Msk (0x1U << HRTIM_BDMUPR_MCR_Pos) /*!< 0x00000001 */
  21378. #define HRTIM_BDMUPR_MCR HRTIM_BDMUPR_MCR_Msk /*!< MCR register update enable */
  21379. #define HRTIM_BDMUPR_MICR_Pos (1U)
  21380. #define HRTIM_BDMUPR_MICR_Msk (0x1U << HRTIM_BDMUPR_MICR_Pos) /*!< 0x00000002 */
  21381. #define HRTIM_BDMUPR_MICR HRTIM_BDMUPR_MICR_Msk /*!< MICR register update enable */
  21382. #define HRTIM_BDMUPR_MDIER_Pos (2U)
  21383. #define HRTIM_BDMUPR_MDIER_Msk (0x1U << HRTIM_BDMUPR_MDIER_Pos) /*!< 0x00000004 */
  21384. #define HRTIM_BDMUPR_MDIER HRTIM_BDMUPR_MDIER_Msk /*!< MDIER register update enable */
  21385. #define HRTIM_BDMUPR_MCNT_Pos (3U)
  21386. #define HRTIM_BDMUPR_MCNT_Msk (0x1U << HRTIM_BDMUPR_MCNT_Pos) /*!< 0x00000008 */
  21387. #define HRTIM_BDMUPR_MCNT HRTIM_BDMUPR_MCNT_Msk /*!< MCNT register update enable */
  21388. #define HRTIM_BDMUPR_MPER_Pos (4U)
  21389. #define HRTIM_BDMUPR_MPER_Msk (0x1U << HRTIM_BDMUPR_MPER_Pos) /*!< 0x00000010 */
  21390. #define HRTIM_BDMUPR_MPER HRTIM_BDMUPR_MPER_Msk /*!< MPER register update enable */
  21391. #define HRTIM_BDMUPR_MREP_Pos (5U)
  21392. #define HRTIM_BDMUPR_MREP_Msk (0x1U << HRTIM_BDMUPR_MREP_Pos) /*!< 0x00000020 */
  21393. #define HRTIM_BDMUPR_MREP HRTIM_BDMUPR_MREP_Msk /*!< MREP register update enable */
  21394. #define HRTIM_BDMUPR_MCMP1_Pos (6U)
  21395. #define HRTIM_BDMUPR_MCMP1_Msk (0x1U << HRTIM_BDMUPR_MCMP1_Pos) /*!< 0x00000040 */
  21396. #define HRTIM_BDMUPR_MCMP1 HRTIM_BDMUPR_MCMP1_Msk /*!< MCMP1 register update enable */
  21397. #define HRTIM_BDMUPR_MCMP2_Pos (7U)
  21398. #define HRTIM_BDMUPR_MCMP2_Msk (0x1U << HRTIM_BDMUPR_MCMP2_Pos) /*!< 0x00000080 */
  21399. #define HRTIM_BDMUPR_MCMP2 HRTIM_BDMUPR_MCMP2_Msk /*!< MCMP2 register update enable */
  21400. #define HRTIM_BDMUPR_MCMP3_Pos (8U)
  21401. #define HRTIM_BDMUPR_MCMP3_Msk (0x1U << HRTIM_BDMUPR_MCMP3_Pos) /*!< 0x00000100 */
  21402. #define HRTIM_BDMUPR_MCMP3 HRTIM_BDMUPR_MCMP3_Msk /*!< MCMP3 register update enable */
  21403. #define HRTIM_BDMUPR_MCMP4_Pos (9U)
  21404. #define HRTIM_BDMUPR_MCMP4_Msk (0x1U << HRTIM_BDMUPR_MCMP4_Pos) /*!< 0x00000200 */
  21405. #define HRTIM_BDMUPR_MCMP4 HRTIM_BDMUPR_MCMP4_Msk /*!< MPCMP4 register update enable */
  21406. /******************* Bit definition for HRTIM_BDTUPR register ***************/
  21407. #define HRTIM_BDTUPR_TIMCR_Pos (0U)
  21408. #define HRTIM_BDTUPR_TIMCR_Msk (0x1U << HRTIM_BDTUPR_TIMCR_Pos) /*!< 0x00000001 */
  21409. #define HRTIM_BDTUPR_TIMCR HRTIM_BDTUPR_TIMCR_Msk /*!< TIMCR register update enable */
  21410. #define HRTIM_BDTUPR_TIMICR_Pos (1U)
  21411. #define HRTIM_BDTUPR_TIMICR_Msk (0x1U << HRTIM_BDTUPR_TIMICR_Pos) /*!< 0x00000002 */
  21412. #define HRTIM_BDTUPR_TIMICR HRTIM_BDTUPR_TIMICR_Msk /*!< TIMICR register update enable */
  21413. #define HRTIM_BDTUPR_TIMDIER_Pos (2U)
  21414. #define HRTIM_BDTUPR_TIMDIER_Msk (0x1U << HRTIM_BDTUPR_TIMDIER_Pos) /*!< 0x00000004 */
  21415. #define HRTIM_BDTUPR_TIMDIER HRTIM_BDTUPR_TIMDIER_Msk /*!< TIMDIER register update enable */
  21416. #define HRTIM_BDTUPR_TIMCNT_Pos (3U)
  21417. #define HRTIM_BDTUPR_TIMCNT_Msk (0x1U << HRTIM_BDTUPR_TIMCNT_Pos) /*!< 0x00000008 */
  21418. #define HRTIM_BDTUPR_TIMCNT HRTIM_BDTUPR_TIMCNT_Msk /*!< TIMCNT register update enable */
  21419. #define HRTIM_BDTUPR_TIMPER_Pos (4U)
  21420. #define HRTIM_BDTUPR_TIMPER_Msk (0x1U << HRTIM_BDTUPR_TIMPER_Pos) /*!< 0x00000010 */
  21421. #define HRTIM_BDTUPR_TIMPER HRTIM_BDTUPR_TIMPER_Msk /*!< TIMPER register update enable */
  21422. #define HRTIM_BDTUPR_TIMREP_Pos (5U)
  21423. #define HRTIM_BDTUPR_TIMREP_Msk (0x1U << HRTIM_BDTUPR_TIMREP_Pos) /*!< 0x00000020 */
  21424. #define HRTIM_BDTUPR_TIMREP HRTIM_BDTUPR_TIMREP_Msk /*!< TIMREP register update enable */
  21425. #define HRTIM_BDTUPR_TIMCMP1_Pos (6U)
  21426. #define HRTIM_BDTUPR_TIMCMP1_Msk (0x1U << HRTIM_BDTUPR_TIMCMP1_Pos) /*!< 0x00000040 */
  21427. #define HRTIM_BDTUPR_TIMCMP1 HRTIM_BDTUPR_TIMCMP1_Msk /*!< TIMCMP1 register update enable */
  21428. #define HRTIM_BDTUPR_TIMCMP2_Pos (7U)
  21429. #define HRTIM_BDTUPR_TIMCMP2_Msk (0x1U << HRTIM_BDTUPR_TIMCMP2_Pos) /*!< 0x00000080 */
  21430. #define HRTIM_BDTUPR_TIMCMP2 HRTIM_BDTUPR_TIMCMP2_Msk /*!< TIMCMP2 register update enable */
  21431. #define HRTIM_BDTUPR_TIMCMP3_Pos (8U)
  21432. #define HRTIM_BDTUPR_TIMCMP3_Msk (0x1U << HRTIM_BDTUPR_TIMCMP3_Pos) /*!< 0x00000100 */
  21433. #define HRTIM_BDTUPR_TIMCMP3 HRTIM_BDTUPR_TIMCMP3_Msk /*!< TIMCMP3 register update enable */
  21434. #define HRTIM_BDTUPR_TIMCMP4_Pos (9U)
  21435. #define HRTIM_BDTUPR_TIMCMP4_Msk (0x1U << HRTIM_BDTUPR_TIMCMP4_Pos) /*!< 0x00000200 */
  21436. #define HRTIM_BDTUPR_TIMCMP4 HRTIM_BDTUPR_TIMCMP4_Msk /*!< TIMCMP4 register update enable */
  21437. #define HRTIM_BDTUPR_TIMDTR_Pos (10U)
  21438. #define HRTIM_BDTUPR_TIMDTR_Msk (0x1U << HRTIM_BDTUPR_TIMDTR_Pos) /*!< 0x00000400 */
  21439. #define HRTIM_BDTUPR_TIMDTR HRTIM_BDTUPR_TIMDTR_Msk /*!< TIMDTR register update enable */
  21440. #define HRTIM_BDTUPR_TIMSET1R_Pos (11U)
  21441. #define HRTIM_BDTUPR_TIMSET1R_Msk (0x1U << HRTIM_BDTUPR_TIMSET1R_Pos) /*!< 0x00000800 */
  21442. #define HRTIM_BDTUPR_TIMSET1R HRTIM_BDTUPR_TIMSET1R_Msk /*!< TIMSET1R register update enable */
  21443. #define HRTIM_BDTUPR_TIMRST1R_Pos (12U)
  21444. #define HRTIM_BDTUPR_TIMRST1R_Msk (0x1U << HRTIM_BDTUPR_TIMRST1R_Pos) /*!< 0x00001000 */
  21445. #define HRTIM_BDTUPR_TIMRST1R HRTIM_BDTUPR_TIMRST1R_Msk /*!< TIMRST1R register update enable */
  21446. #define HRTIM_BDTUPR_TIMSET2R_Pos (13U)
  21447. #define HRTIM_BDTUPR_TIMSET2R_Msk (0x1U << HRTIM_BDTUPR_TIMSET2R_Pos) /*!< 0x00002000 */
  21448. #define HRTIM_BDTUPR_TIMSET2R HRTIM_BDTUPR_TIMSET2R_Msk /*!< TIMSET2R register update enable */
  21449. #define HRTIM_BDTUPR_TIMRST2R_Pos (14U)
  21450. #define HRTIM_BDTUPR_TIMRST2R_Msk (0x1U << HRTIM_BDTUPR_TIMRST2R_Pos) /*!< 0x00004000 */
  21451. #define HRTIM_BDTUPR_TIMRST2R HRTIM_BDTUPR_TIMRST2R_Msk /*!< TIMRST2R register update enable */
  21452. #define HRTIM_BDTUPR_TIMEEFR1_Pos (15U)
  21453. #define HRTIM_BDTUPR_TIMEEFR1_Msk (0x1U << HRTIM_BDTUPR_TIMEEFR1_Pos) /*!< 0x00008000 */
  21454. #define HRTIM_BDTUPR_TIMEEFR1 HRTIM_BDTUPR_TIMEEFR1_Msk /*!< TIMEEFR1 register update enable */
  21455. #define HRTIM_BDTUPR_TIMEEFR2_Pos (16U)
  21456. #define HRTIM_BDTUPR_TIMEEFR2_Msk (0x1U << HRTIM_BDTUPR_TIMEEFR2_Pos) /*!< 0x00010000 */
  21457. #define HRTIM_BDTUPR_TIMEEFR2 HRTIM_BDTUPR_TIMEEFR2_Msk /*!< TIMEEFR2 register update enable */
  21458. #define HRTIM_BDTUPR_TIMRSTR_Pos (17U)
  21459. #define HRTIM_BDTUPR_TIMRSTR_Msk (0x1U << HRTIM_BDTUPR_TIMRSTR_Pos) /*!< 0x00020000 */
  21460. #define HRTIM_BDTUPR_TIMRSTR HRTIM_BDTUPR_TIMRSTR_Msk /*!< TIMRSTR register update enable */
  21461. #define HRTIM_BDTUPR_TIMCHPR_Pos (18U)
  21462. #define HRTIM_BDTUPR_TIMCHPR_Msk (0x1U << HRTIM_BDTUPR_TIMCHPR_Pos) /*!< 0x00040000 */
  21463. #define HRTIM_BDTUPR_TIMCHPR HRTIM_BDTUPR_TIMCHPR_Msk /*!< TIMCHPR register update enable */
  21464. #define HRTIM_BDTUPR_TIMOUTR_Pos (19U)
  21465. #define HRTIM_BDTUPR_TIMOUTR_Msk (0x1U << HRTIM_BDTUPR_TIMOUTR_Pos) /*!< 0x00080000 */
  21466. #define HRTIM_BDTUPR_TIMOUTR HRTIM_BDTUPR_TIMOUTR_Msk /*!< TIMOUTR register update enable */
  21467. #define HRTIM_BDTUPR_TIMFLTR_Pos (20U)
  21468. #define HRTIM_BDTUPR_TIMFLTR_Msk (0x1U << HRTIM_BDTUPR_TIMFLTR_Pos) /*!< 0x00100000 */
  21469. #define HRTIM_BDTUPR_TIMFLTR HRTIM_BDTUPR_TIMFLTR_Msk /*!< TIMFLTR register update enable */
  21470. /******************* Bit definition for HRTIM_BDMADR register ***************/
  21471. #define HRTIM_BDMADR_BDMADR_Pos (0U)
  21472. #define HRTIM_BDMADR_BDMADR_Msk (0xFFFFFFFFU << HRTIM_BDMADR_BDMADR_Pos) /*!< 0xFFFFFFFF */
  21473. #define HRTIM_BDMADR_BDMADR HRTIM_BDMADR_BDMADR_Msk /*!< Burst DMA Data register */
  21474. /******************************************************************************/
  21475. /* */
  21476. /* MDIOS */
  21477. /* */
  21478. /******************************************************************************/
  21479. /******************** Bit definition for MDIOS_CR register *******************/
  21480. #define MDIOS_CR_EN_Pos (0U)
  21481. #define MDIOS_CR_EN_Msk (0x1U << MDIOS_CR_EN_Pos) /*!< 0x00000001 */
  21482. #define MDIOS_CR_EN MDIOS_CR_EN_Msk /*!< MDIOS slave peripheral enable */
  21483. #define MDIOS_CR_WRIE_Pos (1U)
  21484. #define MDIOS_CR_WRIE_Msk (0x1U << MDIOS_CR_WRIE_Pos) /*!< 0x00000002 */
  21485. #define MDIOS_CR_WRIE MDIOS_CR_WRIE_Msk /*!< MDIOS slave register write interrupt enable. */
  21486. #define MDIOS_CR_RDIE_Pos (2U)
  21487. #define MDIOS_CR_RDIE_Msk (0x1U << MDIOS_CR_RDIE_Pos) /*!< 0x00000004 */
  21488. #define MDIOS_CR_RDIE MDIOS_CR_RDIE_Msk /*!< MDIOS slave register read interrupt enable. */
  21489. #define MDIOS_CR_EIE_Pos (3U)
  21490. #define MDIOS_CR_EIE_Msk (0x1U << MDIOS_CR_EIE_Pos) /*!< 0x00000008 */
  21491. #define MDIOS_CR_EIE MDIOS_CR_EIE_Msk /*!< MDIOS slave register error interrupt enable. */
  21492. #define MDIOS_CR_DPC_Pos (7U)
  21493. #define MDIOS_CR_DPC_Msk (0x1U << MDIOS_CR_DPC_Pos) /*!< 0x00000080 */
  21494. #define MDIOS_CR_DPC MDIOS_CR_DPC_Msk /*!< MDIOS slave disable preamble check. */
  21495. #define MDIOS_CR_PORT_ADDRESS_Pos (8U)
  21496. #define MDIOS_CR_PORT_ADDRESS_Msk (0x1FU << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001F00 */
  21497. #define MDIOS_CR_PORT_ADDRESS MDIOS_CR_PORT_ADDRESS_Msk /*!< MDIOS slave port address mask. */
  21498. #define MDIOS_CR_PORT_ADDRESS_0 (0x01U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000100 */
  21499. #define MDIOS_CR_PORT_ADDRESS_1 (0x02U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000200 */
  21500. #define MDIOS_CR_PORT_ADDRESS_2 (0x04U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000400 */
  21501. #define MDIOS_CR_PORT_ADDRESS_3 (0x08U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00000800 */
  21502. #define MDIOS_CR_PORT_ADDRESS_4 (0x10U << MDIOS_CR_PORT_ADDRESS_Pos) /*!< 0x00001000 */
  21503. /******************** Bit definition for MDIOS_SR register *******************/
  21504. #define MDIOS_SR_PERF_Pos (0U)
  21505. #define MDIOS_SR_PERF_Msk (0x1U << MDIOS_SR_PERF_Pos) /*!< 0x00000001 */
  21506. #define MDIOS_SR_PERF MDIOS_SR_PERF_Msk /*!< MDIOS slave turnaround error flag*/
  21507. #define MDIOS_SR_SERF_Pos (1U)
  21508. #define MDIOS_SR_SERF_Msk (0x1U << MDIOS_SR_SERF_Pos) /*!< 0x00000002 */
  21509. #define MDIOS_SR_SERF MDIOS_SR_SERF_Msk /*!< MDIOS slave start error flag */
  21510. #define MDIOS_SR_TERF_Pos (2U)
  21511. #define MDIOS_SR_TERF_Msk (0x1U << MDIOS_SR_TERF_Pos) /*!< 0x00000004 */
  21512. #define MDIOS_SR_TERF MDIOS_SR_TERF_Msk /*!< MDIOS slave preamble error flag */
  21513. /******************** Bit definition for MDIOS_CLRFR register *******************/
  21514. #define MDIOS_SR_CPERF_Pos (0U)
  21515. #define MDIOS_SR_CPERF_Msk (0x1U << MDIOS_SR_CPERF_Pos) /*!< 0x00000001 */
  21516. #define MDIOS_SR_CPERF MDIOS_SR_CPERF_Msk /*!< MDIOS slave Clear the turnaround error flag */
  21517. #define MDIOS_SR_CSERF_Pos (1U)
  21518. #define MDIOS_SR_CSERF_Msk (0x1U << MDIOS_SR_CSERF_Pos) /*!< 0x00000002 */
  21519. #define MDIOS_SR_CSERF MDIOS_SR_CSERF_Msk /*!< MDIOS slave Clear the start error flag */
  21520. #define MDIOS_SR_CTERF_Pos (2U)
  21521. #define MDIOS_SR_CTERF_Msk (0x1U << MDIOS_SR_CTERF_Pos) /*!< 0x00000004 */
  21522. #define MDIOS_SR_CTERF MDIOS_SR_CTERF_Msk /*!< MDIOS slave Clear the preamble error flag */
  21523. /******************************************************************************/
  21524. /* */
  21525. /* USB_OTG */
  21526. /* */
  21527. /******************************************************************************/
  21528. /******************** Bit definition forUSB_OTG_GOTGCTL register ********************/
  21529. #define USB_OTG_GOTGCTL_SRQSCS_Pos (0U)
  21530. #define USB_OTG_GOTGCTL_SRQSCS_Msk (0x1U << USB_OTG_GOTGCTL_SRQSCS_Pos) /*!< 0x00000001 */
  21531. #define USB_OTG_GOTGCTL_SRQSCS USB_OTG_GOTGCTL_SRQSCS_Msk /*!< Session request success */
  21532. #define USB_OTG_GOTGCTL_SRQ_Pos (1U)
  21533. #define USB_OTG_GOTGCTL_SRQ_Msk (0x1U << USB_OTG_GOTGCTL_SRQ_Pos) /*!< 0x00000002 */
  21534. #define USB_OTG_GOTGCTL_SRQ USB_OTG_GOTGCTL_SRQ_Msk /*!< Session request */
  21535. #define USB_OTG_GOTGCTL_VBVALOEN_Pos (2U)
  21536. #define USB_OTG_GOTGCTL_VBVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_VBVALOEN_Pos) /*!< 0x00000004 */
  21537. #define USB_OTG_GOTGCTL_VBVALOEN USB_OTG_GOTGCTL_VBVALOEN_Msk /*!< VBUS valid override enable */
  21538. #define USB_OTG_GOTGCTL_VBVALOVAL_Pos (3U)
  21539. #define USB_OTG_GOTGCTL_VBVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_VBVALOVAL_Pos) /*!< 0x00000008 */
  21540. #define USB_OTG_GOTGCTL_VBVALOVAL USB_OTG_GOTGCTL_VBVALOVAL_Msk /*!< VBUS valid override value */
  21541. #define USB_OTG_GOTGCTL_AVALOEN_Pos (4U)
  21542. #define USB_OTG_GOTGCTL_AVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_AVALOEN_Pos) /*!< 0x00000010 */
  21543. #define USB_OTG_GOTGCTL_AVALOEN USB_OTG_GOTGCTL_AVALOEN_Msk /*!< A-peripheral session valid override enable */
  21544. #define USB_OTG_GOTGCTL_AVALOVAL_Pos (5U)
  21545. #define USB_OTG_GOTGCTL_AVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_AVALOVAL_Pos) /*!< 0x00000020 */
  21546. #define USB_OTG_GOTGCTL_AVALOVAL USB_OTG_GOTGCTL_AVALOVAL_Msk /*!< A-peripheral session valid override value */
  21547. #define USB_OTG_GOTGCTL_BVALOEN_Pos (6U)
  21548. #define USB_OTG_GOTGCTL_BVALOEN_Msk (0x1U << USB_OTG_GOTGCTL_BVALOEN_Pos) /*!< 0x00000040 */
  21549. #define USB_OTG_GOTGCTL_BVALOEN USB_OTG_GOTGCTL_BVALOEN_Msk /*!< B-peripheral session valid override enable */
  21550. #define USB_OTG_GOTGCTL_BVALOVAL_Pos (7U)
  21551. #define USB_OTG_GOTGCTL_BVALOVAL_Msk (0x1U << USB_OTG_GOTGCTL_BVALOVAL_Pos) /*!< 0x00000080 */
  21552. #define USB_OTG_GOTGCTL_BVALOVAL USB_OTG_GOTGCTL_BVALOVAL_Msk /*!< B-peripheral session valid override value */
  21553. #define USB_OTG_GOTGCTL_HNGSCS_Pos (8U)
  21554. #define USB_OTG_GOTGCTL_HNGSCS_Msk (0x1U << USB_OTG_GOTGCTL_HNGSCS_Pos) /*!< 0x00000100 */
  21555. #define USB_OTG_GOTGCTL_HNGSCS USB_OTG_GOTGCTL_HNGSCS_Msk /*!< Host set HNP enable */
  21556. #define USB_OTG_GOTGCTL_HNPRQ_Pos (9U)
  21557. #define USB_OTG_GOTGCTL_HNPRQ_Msk (0x1U << USB_OTG_GOTGCTL_HNPRQ_Pos) /*!< 0x00000200 */
  21558. #define USB_OTG_GOTGCTL_HNPRQ USB_OTG_GOTGCTL_HNPRQ_Msk /*!< HNP request */
  21559. #define USB_OTG_GOTGCTL_HSHNPEN_Pos (10U)
  21560. #define USB_OTG_GOTGCTL_HSHNPEN_Msk (0x1U << USB_OTG_GOTGCTL_HSHNPEN_Pos) /*!< 0x00000400 */
  21561. #define USB_OTG_GOTGCTL_HSHNPEN USB_OTG_GOTGCTL_HSHNPEN_Msk /*!< Host set HNP enable */
  21562. #define USB_OTG_GOTGCTL_DHNPEN_Pos (11U)
  21563. #define USB_OTG_GOTGCTL_DHNPEN_Msk (0x1U << USB_OTG_GOTGCTL_DHNPEN_Pos) /*!< 0x00000800 */
  21564. #define USB_OTG_GOTGCTL_DHNPEN USB_OTG_GOTGCTL_DHNPEN_Msk /*!< Device HNP enabled */
  21565. #define USB_OTG_GOTGCTL_EHEN_Pos (12U)
  21566. #define USB_OTG_GOTGCTL_EHEN_Msk (0x1U << USB_OTG_GOTGCTL_EHEN_Pos) /*!< 0x00001000 */
  21567. #define USB_OTG_GOTGCTL_EHEN USB_OTG_GOTGCTL_EHEN_Msk /*!< Embedded host enable */
  21568. #define USB_OTG_GOTGCTL_CIDSTS_Pos (16U)
  21569. #define USB_OTG_GOTGCTL_CIDSTS_Msk (0x1U << USB_OTG_GOTGCTL_CIDSTS_Pos) /*!< 0x00010000 */
  21570. #define USB_OTG_GOTGCTL_CIDSTS USB_OTG_GOTGCTL_CIDSTS_Msk /*!< Connector ID status */
  21571. #define USB_OTG_GOTGCTL_DBCT_Pos (17U)
  21572. #define USB_OTG_GOTGCTL_DBCT_Msk (0x1U << USB_OTG_GOTGCTL_DBCT_Pos) /*!< 0x00020000 */
  21573. #define USB_OTG_GOTGCTL_DBCT USB_OTG_GOTGCTL_DBCT_Msk /*!< Long/short debounce time */
  21574. #define USB_OTG_GOTGCTL_ASVLD_Pos (18U)
  21575. #define USB_OTG_GOTGCTL_ASVLD_Msk (0x1U << USB_OTG_GOTGCTL_ASVLD_Pos) /*!< 0x00040000 */
  21576. #define USB_OTG_GOTGCTL_ASVLD USB_OTG_GOTGCTL_ASVLD_Msk /*!< A-session valid */
  21577. #define USB_OTG_GOTGCTL_BSESVLD_Pos (19U)
  21578. #define USB_OTG_GOTGCTL_BSESVLD_Msk (0x1U << USB_OTG_GOTGCTL_BSESVLD_Pos) /*!< 0x00080000 */
  21579. #define USB_OTG_GOTGCTL_BSESVLD USB_OTG_GOTGCTL_BSESVLD_Msk /*!< B-session valid */
  21580. #define USB_OTG_GOTGCTL_OTGVER_Pos (20U)
  21581. #define USB_OTG_GOTGCTL_OTGVER_Msk (0x1U << USB_OTG_GOTGCTL_OTGVER_Pos) /*!< 0x00100000 */
  21582. #define USB_OTG_GOTGCTL_OTGVER USB_OTG_GOTGCTL_OTGVER_Msk /*!< OTG version */
  21583. /******************** Bit definition forUSB_OTG_HCFG register ********************/
  21584. #define USB_OTG_HCFG_FSLSPCS_Pos (0U)
  21585. #define USB_OTG_HCFG_FSLSPCS_Msk (0x3U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000003 */
  21586. #define USB_OTG_HCFG_FSLSPCS USB_OTG_HCFG_FSLSPCS_Msk /*!< FS/LS PHY clock select */
  21587. #define USB_OTG_HCFG_FSLSPCS_0 (0x1U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000001 */
  21588. #define USB_OTG_HCFG_FSLSPCS_1 (0x2U << USB_OTG_HCFG_FSLSPCS_Pos) /*!< 0x00000002 */
  21589. #define USB_OTG_HCFG_FSLSS_Pos (2U)
  21590. #define USB_OTG_HCFG_FSLSS_Msk (0x1U << USB_OTG_HCFG_FSLSS_Pos) /*!< 0x00000004 */
  21591. #define USB_OTG_HCFG_FSLSS USB_OTG_HCFG_FSLSS_Msk /*!< FS- and LS-only support */
  21592. /******************** Bit definition forUSB_OTG_DCFG register ********************/
  21593. #define USB_OTG_DCFG_DSPD_Pos (0U)
  21594. #define USB_OTG_DCFG_DSPD_Msk (0x3U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000003 */
  21595. #define USB_OTG_DCFG_DSPD USB_OTG_DCFG_DSPD_Msk /*!< Device speed */
  21596. #define USB_OTG_DCFG_DSPD_0 (0x1U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000001 */
  21597. #define USB_OTG_DCFG_DSPD_1 (0x2U << USB_OTG_DCFG_DSPD_Pos) /*!< 0x00000002 */
  21598. #define USB_OTG_DCFG_NZLSOHSK_Pos (2U)
  21599. #define USB_OTG_DCFG_NZLSOHSK_Msk (0x1U << USB_OTG_DCFG_NZLSOHSK_Pos) /*!< 0x00000004 */
  21600. #define USB_OTG_DCFG_NZLSOHSK USB_OTG_DCFG_NZLSOHSK_Msk /*!< Nonzero-length status OUT handshake */
  21601. #define USB_OTG_DCFG_DAD_Pos (4U)
  21602. #define USB_OTG_DCFG_DAD_Msk (0x7FU << USB_OTG_DCFG_DAD_Pos) /*!< 0x000007F0 */
  21603. #define USB_OTG_DCFG_DAD USB_OTG_DCFG_DAD_Msk /*!< Device address */
  21604. #define USB_OTG_DCFG_DAD_0 (0x01U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000010 */
  21605. #define USB_OTG_DCFG_DAD_1 (0x02U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000020 */
  21606. #define USB_OTG_DCFG_DAD_2 (0x04U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000040 */
  21607. #define USB_OTG_DCFG_DAD_3 (0x08U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000080 */
  21608. #define USB_OTG_DCFG_DAD_4 (0x10U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000100 */
  21609. #define USB_OTG_DCFG_DAD_5 (0x20U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000200 */
  21610. #define USB_OTG_DCFG_DAD_6 (0x40U << USB_OTG_DCFG_DAD_Pos) /*!< 0x00000400 */
  21611. #define USB_OTG_DCFG_PFIVL_Pos (11U)
  21612. #define USB_OTG_DCFG_PFIVL_Msk (0x3U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001800 */
  21613. #define USB_OTG_DCFG_PFIVL USB_OTG_DCFG_PFIVL_Msk /*!< Periodic (micro)frame interval */
  21614. #define USB_OTG_DCFG_PFIVL_0 (0x1U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00000800 */
  21615. #define USB_OTG_DCFG_PFIVL_1 (0x2U << USB_OTG_DCFG_PFIVL_Pos) /*!< 0x00001000 */
  21616. #define USB_OTG_DCFG_PERSCHIVL_Pos (24U)
  21617. #define USB_OTG_DCFG_PERSCHIVL_Msk (0x3U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x03000000 */
  21618. #define USB_OTG_DCFG_PERSCHIVL USB_OTG_DCFG_PERSCHIVL_Msk /*!< Periodic scheduling interval */
  21619. #define USB_OTG_DCFG_PERSCHIVL_0 (0x1U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x01000000 */
  21620. #define USB_OTG_DCFG_PERSCHIVL_1 (0x2U << USB_OTG_DCFG_PERSCHIVL_Pos) /*!< 0x02000000 */
  21621. /******************** Bit definition forUSB_OTG_PCGCR register ********************/
  21622. #define USB_OTG_PCGCR_STPPCLK_Pos (0U)
  21623. #define USB_OTG_PCGCR_STPPCLK_Msk (0x1U << USB_OTG_PCGCR_STPPCLK_Pos) /*!< 0x00000001 */
  21624. #define USB_OTG_PCGCR_STPPCLK USB_OTG_PCGCR_STPPCLK_Msk /*!< Stop PHY clock */
  21625. #define USB_OTG_PCGCR_GATEHCLK_Pos (1U)
  21626. #define USB_OTG_PCGCR_GATEHCLK_Msk (0x1U << USB_OTG_PCGCR_GATEHCLK_Pos) /*!< 0x00000002 */
  21627. #define USB_OTG_PCGCR_GATEHCLK USB_OTG_PCGCR_GATEHCLK_Msk /*!< Gate HCLK */
  21628. #define USB_OTG_PCGCR_PHYSUSP_Pos (4U)
  21629. #define USB_OTG_PCGCR_PHYSUSP_Msk (0x1U << USB_OTG_PCGCR_PHYSUSP_Pos) /*!< 0x00000010 */
  21630. #define USB_OTG_PCGCR_PHYSUSP USB_OTG_PCGCR_PHYSUSP_Msk /*!< PHY suspended */
  21631. /******************** Bit definition forUSB_OTG_GOTGINT register ********************/
  21632. #define USB_OTG_GOTGINT_SEDET_Pos (2U)
  21633. #define USB_OTG_GOTGINT_SEDET_Msk (0x1U << USB_OTG_GOTGINT_SEDET_Pos) /*!< 0x00000004 */
  21634. #define USB_OTG_GOTGINT_SEDET USB_OTG_GOTGINT_SEDET_Msk /*!< Session end detected */
  21635. #define USB_OTG_GOTGINT_SRSSCHG_Pos (8U)
  21636. #define USB_OTG_GOTGINT_SRSSCHG_Msk (0x1U << USB_OTG_GOTGINT_SRSSCHG_Pos) /*!< 0x00000100 */
  21637. #define USB_OTG_GOTGINT_SRSSCHG USB_OTG_GOTGINT_SRSSCHG_Msk /*!< Session request success status change */
  21638. #define USB_OTG_GOTGINT_HNSSCHG_Pos (9U)
  21639. #define USB_OTG_GOTGINT_HNSSCHG_Msk (0x1U << USB_OTG_GOTGINT_HNSSCHG_Pos) /*!< 0x00000200 */
  21640. #define USB_OTG_GOTGINT_HNSSCHG USB_OTG_GOTGINT_HNSSCHG_Msk /*!< Host negotiation success status change */
  21641. #define USB_OTG_GOTGINT_HNGDET_Pos (17U)
  21642. #define USB_OTG_GOTGINT_HNGDET_Msk (0x1U << USB_OTG_GOTGINT_HNGDET_Pos) /*!< 0x00020000 */
  21643. #define USB_OTG_GOTGINT_HNGDET USB_OTG_GOTGINT_HNGDET_Msk /*!< Host negotiation detected */
  21644. #define USB_OTG_GOTGINT_ADTOCHG_Pos (18U)
  21645. #define USB_OTG_GOTGINT_ADTOCHG_Msk (0x1U << USB_OTG_GOTGINT_ADTOCHG_Pos) /*!< 0x00040000 */
  21646. #define USB_OTG_GOTGINT_ADTOCHG USB_OTG_GOTGINT_ADTOCHG_Msk /*!< A-device timeout change */
  21647. #define USB_OTG_GOTGINT_DBCDNE_Pos (19U)
  21648. #define USB_OTG_GOTGINT_DBCDNE_Msk (0x1U << USB_OTG_GOTGINT_DBCDNE_Pos) /*!< 0x00080000 */
  21649. #define USB_OTG_GOTGINT_DBCDNE USB_OTG_GOTGINT_DBCDNE_Msk /*!< Debounce done */
  21650. /******************** Bit definition forUSB_OTG_DCTL register ********************/
  21651. #define USB_OTG_DCTL_RWUSIG_Pos (0U)
  21652. #define USB_OTG_DCTL_RWUSIG_Msk (0x1U << USB_OTG_DCTL_RWUSIG_Pos) /*!< 0x00000001 */
  21653. #define USB_OTG_DCTL_RWUSIG USB_OTG_DCTL_RWUSIG_Msk /*!< Remote wakeup signaling */
  21654. #define USB_OTG_DCTL_SDIS_Pos (1U)
  21655. #define USB_OTG_DCTL_SDIS_Msk (0x1U << USB_OTG_DCTL_SDIS_Pos) /*!< 0x00000002 */
  21656. #define USB_OTG_DCTL_SDIS USB_OTG_DCTL_SDIS_Msk /*!< Soft disconnect */
  21657. #define USB_OTG_DCTL_GINSTS_Pos (2U)
  21658. #define USB_OTG_DCTL_GINSTS_Msk (0x1U << USB_OTG_DCTL_GINSTS_Pos) /*!< 0x00000004 */
  21659. #define USB_OTG_DCTL_GINSTS USB_OTG_DCTL_GINSTS_Msk /*!< Global IN NAK status */
  21660. #define USB_OTG_DCTL_GONSTS_Pos (3U)
  21661. #define USB_OTG_DCTL_GONSTS_Msk (0x1U << USB_OTG_DCTL_GONSTS_Pos) /*!< 0x00000008 */
  21662. #define USB_OTG_DCTL_GONSTS USB_OTG_DCTL_GONSTS_Msk /*!< Global OUT NAK status */
  21663. #define USB_OTG_DCTL_TCTL_Pos (4U)
  21664. #define USB_OTG_DCTL_TCTL_Msk (0x7U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000070 */
  21665. #define USB_OTG_DCTL_TCTL USB_OTG_DCTL_TCTL_Msk /*!< Test control */
  21666. #define USB_OTG_DCTL_TCTL_0 (0x1U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000010 */
  21667. #define USB_OTG_DCTL_TCTL_1 (0x2U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000020 */
  21668. #define USB_OTG_DCTL_TCTL_2 (0x4U << USB_OTG_DCTL_TCTL_Pos) /*!< 0x00000040 */
  21669. #define USB_OTG_DCTL_SGINAK_Pos (7U)
  21670. #define USB_OTG_DCTL_SGINAK_Msk (0x1U << USB_OTG_DCTL_SGINAK_Pos) /*!< 0x00000080 */
  21671. #define USB_OTG_DCTL_SGINAK USB_OTG_DCTL_SGINAK_Msk /*!< Set global IN NAK */
  21672. #define USB_OTG_DCTL_CGINAK_Pos (8U)
  21673. #define USB_OTG_DCTL_CGINAK_Msk (0x1U << USB_OTG_DCTL_CGINAK_Pos) /*!< 0x00000100 */
  21674. #define USB_OTG_DCTL_CGINAK USB_OTG_DCTL_CGINAK_Msk /*!< Clear global IN NAK */
  21675. #define USB_OTG_DCTL_SGONAK_Pos (9U)
  21676. #define USB_OTG_DCTL_SGONAK_Msk (0x1U << USB_OTG_DCTL_SGONAK_Pos) /*!< 0x00000200 */
  21677. #define USB_OTG_DCTL_SGONAK USB_OTG_DCTL_SGONAK_Msk /*!< Set global OUT NAK */
  21678. #define USB_OTG_DCTL_CGONAK_Pos (10U)
  21679. #define USB_OTG_DCTL_CGONAK_Msk (0x1U << USB_OTG_DCTL_CGONAK_Pos) /*!< 0x00000400 */
  21680. #define USB_OTG_DCTL_CGONAK USB_OTG_DCTL_CGONAK_Msk /*!< Clear global OUT NAK */
  21681. #define USB_OTG_DCTL_POPRGDNE_Pos (11U)
  21682. #define USB_OTG_DCTL_POPRGDNE_Msk (0x1U << USB_OTG_DCTL_POPRGDNE_Pos) /*!< 0x00000800 */
  21683. #define USB_OTG_DCTL_POPRGDNE USB_OTG_DCTL_POPRGDNE_Msk /*!< Power-on programming done */
  21684. /******************** Bit definition forUSB_OTG_HFIR register ********************/
  21685. #define USB_OTG_HFIR_FRIVL_Pos (0U)
  21686. #define USB_OTG_HFIR_FRIVL_Msk (0xFFFFU << USB_OTG_HFIR_FRIVL_Pos) /*!< 0x0000FFFF */
  21687. #define USB_OTG_HFIR_FRIVL USB_OTG_HFIR_FRIVL_Msk /*!< Frame interval */
  21688. /******************** Bit definition forUSB_OTG_HFNUM register ********************/
  21689. #define USB_OTG_HFNUM_FRNUM_Pos (0U)
  21690. #define USB_OTG_HFNUM_FRNUM_Msk (0xFFFFU << USB_OTG_HFNUM_FRNUM_Pos) /*!< 0x0000FFFF */
  21691. #define USB_OTG_HFNUM_FRNUM USB_OTG_HFNUM_FRNUM_Msk /*!< Frame number */
  21692. #define USB_OTG_HFNUM_FTREM_Pos (16U)
  21693. #define USB_OTG_HFNUM_FTREM_Msk (0xFFFFU << USB_OTG_HFNUM_FTREM_Pos) /*!< 0xFFFF0000 */
  21694. #define USB_OTG_HFNUM_FTREM USB_OTG_HFNUM_FTREM_Msk /*!< Frame time remaining */
  21695. /******************** Bit definition forUSB_OTG_DSTS register ********************/
  21696. #define USB_OTG_DSTS_SUSPSTS_Pos (0U)
  21697. #define USB_OTG_DSTS_SUSPSTS_Msk (0x1U << USB_OTG_DSTS_SUSPSTS_Pos) /*!< 0x00000001 */
  21698. #define USB_OTG_DSTS_SUSPSTS USB_OTG_DSTS_SUSPSTS_Msk /*!< Suspend status */
  21699. #define USB_OTG_DSTS_ENUMSPD_Pos (1U)
  21700. #define USB_OTG_DSTS_ENUMSPD_Msk (0x3U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000006 */
  21701. #define USB_OTG_DSTS_ENUMSPD USB_OTG_DSTS_ENUMSPD_Msk /*!< Enumerated speed */
  21702. #define USB_OTG_DSTS_ENUMSPD_0 (0x1U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000002 */
  21703. #define USB_OTG_DSTS_ENUMSPD_1 (0x2U << USB_OTG_DSTS_ENUMSPD_Pos) /*!< 0x00000004 */
  21704. #define USB_OTG_DSTS_EERR_Pos (3U)
  21705. #define USB_OTG_DSTS_EERR_Msk (0x1U << USB_OTG_DSTS_EERR_Pos) /*!< 0x00000008 */
  21706. #define USB_OTG_DSTS_EERR USB_OTG_DSTS_EERR_Msk /*!< Erratic error */
  21707. #define USB_OTG_DSTS_FNSOF_Pos (8U)
  21708. #define USB_OTG_DSTS_FNSOF_Msk (0x3FFFU << USB_OTG_DSTS_FNSOF_Pos) /*!< 0x003FFF00 */
  21709. #define USB_OTG_DSTS_FNSOF USB_OTG_DSTS_FNSOF_Msk /*!< Frame number of the received SOF */
  21710. /******************** Bit definition forUSB_OTG_GAHBCFG register ********************/
  21711. #define USB_OTG_GAHBCFG_GINT_Pos (0U)
  21712. #define USB_OTG_GAHBCFG_GINT_Msk (0x1U << USB_OTG_GAHBCFG_GINT_Pos) /*!< 0x00000001 */
  21713. #define USB_OTG_GAHBCFG_GINT USB_OTG_GAHBCFG_GINT_Msk /*!< Global interrupt mask */
  21714. #define USB_OTG_GAHBCFG_HBSTLEN_Pos (1U)
  21715. #define USB_OTG_GAHBCFG_HBSTLEN_Msk (0xFU << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x0000001E */
  21716. #define USB_OTG_GAHBCFG_HBSTLEN USB_OTG_GAHBCFG_HBSTLEN_Msk /*!< Burst length/type */
  21717. #define USB_OTG_GAHBCFG_HBSTLEN_0 (0x1U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000002 */
  21718. #define USB_OTG_GAHBCFG_HBSTLEN_1 (0x2U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000004 */
  21719. #define USB_OTG_GAHBCFG_HBSTLEN_2 (0x4U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000008 */
  21720. #define USB_OTG_GAHBCFG_HBSTLEN_3 (0x8U << USB_OTG_GAHBCFG_HBSTLEN_Pos) /*!< 0x00000010 */
  21721. #define USB_OTG_GAHBCFG_DMAEN_Pos (5U)
  21722. #define USB_OTG_GAHBCFG_DMAEN_Msk (0x1U << USB_OTG_GAHBCFG_DMAEN_Pos) /*!< 0x00000020 */
  21723. #define USB_OTG_GAHBCFG_DMAEN USB_OTG_GAHBCFG_DMAEN_Msk /*!< DMA enable */
  21724. #define USB_OTG_GAHBCFG_TXFELVL_Pos (7U)
  21725. #define USB_OTG_GAHBCFG_TXFELVL_Msk (0x1U << USB_OTG_GAHBCFG_TXFELVL_Pos) /*!< 0x00000080 */
  21726. #define USB_OTG_GAHBCFG_TXFELVL USB_OTG_GAHBCFG_TXFELVL_Msk /*!< TxFIFO empty level */
  21727. #define USB_OTG_GAHBCFG_PTXFELVL_Pos (8U)
  21728. #define USB_OTG_GAHBCFG_PTXFELVL_Msk (0x1U << USB_OTG_GAHBCFG_PTXFELVL_Pos) /*!< 0x00000100 */
  21729. #define USB_OTG_GAHBCFG_PTXFELVL USB_OTG_GAHBCFG_PTXFELVL_Msk /*!< Periodic TxFIFO empty level */
  21730. /******************** Bit definition forUSB_OTG_GUSBCFG register ********************/
  21731. #define USB_OTG_GUSBCFG_TOCAL_Pos (0U)
  21732. #define USB_OTG_GUSBCFG_TOCAL_Msk (0x7U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000007 */
  21733. #define USB_OTG_GUSBCFG_TOCAL USB_OTG_GUSBCFG_TOCAL_Msk /*!< FS timeout calibration */
  21734. #define USB_OTG_GUSBCFG_TOCAL_0 (0x1U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000001 */
  21735. #define USB_OTG_GUSBCFG_TOCAL_1 (0x2U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000002 */
  21736. #define USB_OTG_GUSBCFG_TOCAL_2 (0x4U << USB_OTG_GUSBCFG_TOCAL_Pos) /*!< 0x00000004 */
  21737. #define USB_OTG_GUSBCFG_PHYSEL_Pos (6U)
  21738. #define USB_OTG_GUSBCFG_PHYSEL_Msk (0x1U << USB_OTG_GUSBCFG_PHYSEL_Pos) /*!< 0x00000040 */
  21739. #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 */
  21740. #define USB_OTG_GUSBCFG_SRPCAP_Pos (8U)
  21741. #define USB_OTG_GUSBCFG_SRPCAP_Msk (0x1U << USB_OTG_GUSBCFG_SRPCAP_Pos) /*!< 0x00000100 */
  21742. #define USB_OTG_GUSBCFG_SRPCAP USB_OTG_GUSBCFG_SRPCAP_Msk /*!< SRP-capable */
  21743. #define USB_OTG_GUSBCFG_HNPCAP_Pos (9U)
  21744. #define USB_OTG_GUSBCFG_HNPCAP_Msk (0x1U << USB_OTG_GUSBCFG_HNPCAP_Pos) /*!< 0x00000200 */
  21745. #define USB_OTG_GUSBCFG_HNPCAP USB_OTG_GUSBCFG_HNPCAP_Msk /*!< HNP-capable */
  21746. #define USB_OTG_GUSBCFG_TRDT_Pos (10U)
  21747. #define USB_OTG_GUSBCFG_TRDT_Msk (0xFU << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00003C00 */
  21748. #define USB_OTG_GUSBCFG_TRDT USB_OTG_GUSBCFG_TRDT_Msk /*!< USB turnaround time */
  21749. #define USB_OTG_GUSBCFG_TRDT_0 (0x1U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000400 */
  21750. #define USB_OTG_GUSBCFG_TRDT_1 (0x2U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00000800 */
  21751. #define USB_OTG_GUSBCFG_TRDT_2 (0x4U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00001000 */
  21752. #define USB_OTG_GUSBCFG_TRDT_3 (0x8U << USB_OTG_GUSBCFG_TRDT_Pos) /*!< 0x00002000 */
  21753. #define USB_OTG_GUSBCFG_PHYLPCS_Pos (15U)
  21754. #define USB_OTG_GUSBCFG_PHYLPCS_Msk (0x1U << USB_OTG_GUSBCFG_PHYLPCS_Pos) /*!< 0x00008000 */
  21755. #define USB_OTG_GUSBCFG_PHYLPCS USB_OTG_GUSBCFG_PHYLPCS_Msk /*!< PHY Low-power clock select */
  21756. #define USB_OTG_GUSBCFG_ULPIFSLS_Pos (17U)
  21757. #define USB_OTG_GUSBCFG_ULPIFSLS_Msk (0x1U << USB_OTG_GUSBCFG_ULPIFSLS_Pos) /*!< 0x00020000 */
  21758. #define USB_OTG_GUSBCFG_ULPIFSLS USB_OTG_GUSBCFG_ULPIFSLS_Msk /*!< ULPI FS/LS select */
  21759. #define USB_OTG_GUSBCFG_ULPIAR_Pos (18U)
  21760. #define USB_OTG_GUSBCFG_ULPIAR_Msk (0x1U << USB_OTG_GUSBCFG_ULPIAR_Pos) /*!< 0x00040000 */
  21761. #define USB_OTG_GUSBCFG_ULPIAR USB_OTG_GUSBCFG_ULPIAR_Msk /*!< ULPI Auto-resume */
  21762. #define USB_OTG_GUSBCFG_ULPICSM_Pos (19U)
  21763. #define USB_OTG_GUSBCFG_ULPICSM_Msk (0x1U << USB_OTG_GUSBCFG_ULPICSM_Pos) /*!< 0x00080000 */
  21764. #define USB_OTG_GUSBCFG_ULPICSM USB_OTG_GUSBCFG_ULPICSM_Msk /*!< ULPI Clock SuspendM */
  21765. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Pos (20U)
  21766. #define USB_OTG_GUSBCFG_ULPIEVBUSD_Msk (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSD_Pos) /*!< 0x00100000 */
  21767. #define USB_OTG_GUSBCFG_ULPIEVBUSD USB_OTG_GUSBCFG_ULPIEVBUSD_Msk /*!< ULPI External VBUS Drive */
  21768. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Pos (21U)
  21769. #define USB_OTG_GUSBCFG_ULPIEVBUSI_Msk (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSI_Pos) /*!< 0x00200000 */
  21770. #define USB_OTG_GUSBCFG_ULPIEVBUSI USB_OTG_GUSBCFG_ULPIEVBUSI_Msk /*!< ULPI external VBUS indicator */
  21771. #define USB_OTG_GUSBCFG_TSDPS_Pos (22U)
  21772. #define USB_OTG_GUSBCFG_TSDPS_Msk (0x1U << USB_OTG_GUSBCFG_TSDPS_Pos) /*!< 0x00400000 */
  21773. #define USB_OTG_GUSBCFG_TSDPS USB_OTG_GUSBCFG_TSDPS_Msk /*!< TermSel DLine pulsing selection */
  21774. #define USB_OTG_GUSBCFG_PCCI_Pos (23U)
  21775. #define USB_OTG_GUSBCFG_PCCI_Msk (0x1U << USB_OTG_GUSBCFG_PCCI_Pos) /*!< 0x00800000 */
  21776. #define USB_OTG_GUSBCFG_PCCI USB_OTG_GUSBCFG_PCCI_Msk /*!< Indicator complement */
  21777. #define USB_OTG_GUSBCFG_PTCI_Pos (24U)
  21778. #define USB_OTG_GUSBCFG_PTCI_Msk (0x1U << USB_OTG_GUSBCFG_PTCI_Pos) /*!< 0x01000000 */
  21779. #define USB_OTG_GUSBCFG_PTCI USB_OTG_GUSBCFG_PTCI_Msk /*!< Indicator pass through */
  21780. #define USB_OTG_GUSBCFG_ULPIIPD_Pos (25U)
  21781. #define USB_OTG_GUSBCFG_ULPIIPD_Msk (0x1U << USB_OTG_GUSBCFG_ULPIIPD_Pos) /*!< 0x02000000 */
  21782. #define USB_OTG_GUSBCFG_ULPIIPD USB_OTG_GUSBCFG_ULPIIPD_Msk /*!< ULPI interface protect disable */
  21783. #define USB_OTG_GUSBCFG_FHMOD_Pos (29U)
  21784. #define USB_OTG_GUSBCFG_FHMOD_Msk (0x1U << USB_OTG_GUSBCFG_FHMOD_Pos) /*!< 0x20000000 */
  21785. #define USB_OTG_GUSBCFG_FHMOD USB_OTG_GUSBCFG_FHMOD_Msk /*!< Forced host mode */
  21786. #define USB_OTG_GUSBCFG_FDMOD_Pos (30U)
  21787. #define USB_OTG_GUSBCFG_FDMOD_Msk (0x1U << USB_OTG_GUSBCFG_FDMOD_Pos) /*!< 0x40000000 */
  21788. #define USB_OTG_GUSBCFG_FDMOD USB_OTG_GUSBCFG_FDMOD_Msk /*!< Forced peripheral mode */
  21789. #define USB_OTG_GUSBCFG_CTXPKT_Pos (31U)
  21790. #define USB_OTG_GUSBCFG_CTXPKT_Msk (0x1U << USB_OTG_GUSBCFG_CTXPKT_Pos) /*!< 0x80000000 */
  21791. #define USB_OTG_GUSBCFG_CTXPKT USB_OTG_GUSBCFG_CTXPKT_Msk /*!< Corrupt Tx packet */
  21792. /******************** Bit definition forUSB_OTG_GRSTCTL register ********************/
  21793. #define USB_OTG_GRSTCTL_CSRST_Pos (0U)
  21794. #define USB_OTG_GRSTCTL_CSRST_Msk (0x1U << USB_OTG_GRSTCTL_CSRST_Pos) /*!< 0x00000001 */
  21795. #define USB_OTG_GRSTCTL_CSRST USB_OTG_GRSTCTL_CSRST_Msk /*!< Core soft reset */
  21796. #define USB_OTG_GRSTCTL_HSRST_Pos (1U)
  21797. #define USB_OTG_GRSTCTL_HSRST_Msk (0x1U << USB_OTG_GRSTCTL_HSRST_Pos) /*!< 0x00000002 */
  21798. #define USB_OTG_GRSTCTL_HSRST USB_OTG_GRSTCTL_HSRST_Msk /*!< HCLK soft reset */
  21799. #define USB_OTG_GRSTCTL_FCRST_Pos (2U)
  21800. #define USB_OTG_GRSTCTL_FCRST_Msk (0x1U << USB_OTG_GRSTCTL_FCRST_Pos) /*!< 0x00000004 */
  21801. #define USB_OTG_GRSTCTL_FCRST USB_OTG_GRSTCTL_FCRST_Msk /*!< Host frame counter reset */
  21802. #define USB_OTG_GRSTCTL_RXFFLSH_Pos (4U)
  21803. #define USB_OTG_GRSTCTL_RXFFLSH_Msk (0x1U << USB_OTG_GRSTCTL_RXFFLSH_Pos) /*!< 0x00000010 */
  21804. #define USB_OTG_GRSTCTL_RXFFLSH USB_OTG_GRSTCTL_RXFFLSH_Msk /*!< RxFIFO flush */
  21805. #define USB_OTG_GRSTCTL_TXFFLSH_Pos (5U)
  21806. #define USB_OTG_GRSTCTL_TXFFLSH_Msk (0x1U << USB_OTG_GRSTCTL_TXFFLSH_Pos) /*!< 0x00000020 */
  21807. #define USB_OTG_GRSTCTL_TXFFLSH USB_OTG_GRSTCTL_TXFFLSH_Msk /*!< TxFIFO flush */
  21808. #define USB_OTG_GRSTCTL_TXFNUM_Pos (6U)
  21809. #define USB_OTG_GRSTCTL_TXFNUM_Msk (0x1FU << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x000007C0 */
  21810. #define USB_OTG_GRSTCTL_TXFNUM USB_OTG_GRSTCTL_TXFNUM_Msk /*!< TxFIFO number */
  21811. #define USB_OTG_GRSTCTL_TXFNUM_0 (0x01U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000040 */
  21812. #define USB_OTG_GRSTCTL_TXFNUM_1 (0x02U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000080 */
  21813. #define USB_OTG_GRSTCTL_TXFNUM_2 (0x04U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000100 */
  21814. #define USB_OTG_GRSTCTL_TXFNUM_3 (0x08U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000200 */
  21815. #define USB_OTG_GRSTCTL_TXFNUM_4 (0x10U << USB_OTG_GRSTCTL_TXFNUM_Pos) /*!< 0x00000400 */
  21816. #define USB_OTG_GRSTCTL_DMAREQ_Pos (30U)
  21817. #define USB_OTG_GRSTCTL_DMAREQ_Msk (0x1U << USB_OTG_GRSTCTL_DMAREQ_Pos) /*!< 0x40000000 */
  21818. #define USB_OTG_GRSTCTL_DMAREQ USB_OTG_GRSTCTL_DMAREQ_Msk /*!< DMA request signal */
  21819. #define USB_OTG_GRSTCTL_AHBIDL_Pos (31U)
  21820. #define USB_OTG_GRSTCTL_AHBIDL_Msk (0x1U << USB_OTG_GRSTCTL_AHBIDL_Pos) /*!< 0x80000000 */
  21821. #define USB_OTG_GRSTCTL_AHBIDL USB_OTG_GRSTCTL_AHBIDL_Msk /*!< AHB master idle */
  21822. /******************** Bit definition forUSB_OTG_DIEPMSK register ********************/
  21823. #define USB_OTG_DIEPMSK_XFRCM_Pos (0U)
  21824. #define USB_OTG_DIEPMSK_XFRCM_Msk (0x1U << USB_OTG_DIEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  21825. #define USB_OTG_DIEPMSK_XFRCM USB_OTG_DIEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  21826. #define USB_OTG_DIEPMSK_EPDM_Pos (1U)
  21827. #define USB_OTG_DIEPMSK_EPDM_Msk (0x1U << USB_OTG_DIEPMSK_EPDM_Pos) /*!< 0x00000002 */
  21828. #define USB_OTG_DIEPMSK_EPDM USB_OTG_DIEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  21829. #define USB_OTG_DIEPMSK_TOM_Pos (3U)
  21830. #define USB_OTG_DIEPMSK_TOM_Msk (0x1U << USB_OTG_DIEPMSK_TOM_Pos) /*!< 0x00000008 */
  21831. #define USB_OTG_DIEPMSK_TOM USB_OTG_DIEPMSK_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  21832. #define USB_OTG_DIEPMSK_ITTXFEMSK_Pos (4U)
  21833. #define USB_OTG_DIEPMSK_ITTXFEMSK_Msk (0x1U << USB_OTG_DIEPMSK_ITTXFEMSK_Pos) /*!< 0x00000010 */
  21834. #define USB_OTG_DIEPMSK_ITTXFEMSK USB_OTG_DIEPMSK_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  21835. #define USB_OTG_DIEPMSK_INEPNMM_Pos (5U)
  21836. #define USB_OTG_DIEPMSK_INEPNMM_Msk (0x1U << USB_OTG_DIEPMSK_INEPNMM_Pos) /*!< 0x00000020 */
  21837. #define USB_OTG_DIEPMSK_INEPNMM USB_OTG_DIEPMSK_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  21838. #define USB_OTG_DIEPMSK_INEPNEM_Pos (6U)
  21839. #define USB_OTG_DIEPMSK_INEPNEM_Msk (0x1U << USB_OTG_DIEPMSK_INEPNEM_Pos) /*!< 0x00000040 */
  21840. #define USB_OTG_DIEPMSK_INEPNEM USB_OTG_DIEPMSK_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  21841. #define USB_OTG_DIEPMSK_TXFURM_Pos (8U)
  21842. #define USB_OTG_DIEPMSK_TXFURM_Msk (0x1U << USB_OTG_DIEPMSK_TXFURM_Pos) /*!< 0x00000100 */
  21843. #define USB_OTG_DIEPMSK_TXFURM USB_OTG_DIEPMSK_TXFURM_Msk /*!< FIFO underrun mask */
  21844. #define USB_OTG_DIEPMSK_BIM_Pos (9U)
  21845. #define USB_OTG_DIEPMSK_BIM_Msk (0x1U << USB_OTG_DIEPMSK_BIM_Pos) /*!< 0x00000200 */
  21846. #define USB_OTG_DIEPMSK_BIM USB_OTG_DIEPMSK_BIM_Msk /*!< BNA interrupt mask */
  21847. /******************** Bit definition forUSB_OTG_HPTXSTS register ********************/
  21848. #define USB_OTG_HPTXSTS_PTXFSAVL_Pos (0U)
  21849. #define USB_OTG_HPTXSTS_PTXFSAVL_Msk (0xFFFFU << USB_OTG_HPTXSTS_PTXFSAVL_Pos) /*!< 0x0000FFFF */
  21850. #define USB_OTG_HPTXSTS_PTXFSAVL USB_OTG_HPTXSTS_PTXFSAVL_Msk /*!< Periodic transmit data FIFO space available */
  21851. #define USB_OTG_HPTXSTS_PTXQSAV_Pos (16U)
  21852. #define USB_OTG_HPTXSTS_PTXQSAV_Msk (0xFFU << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00FF0000 */
  21853. #define USB_OTG_HPTXSTS_PTXQSAV USB_OTG_HPTXSTS_PTXQSAV_Msk /*!< Periodic transmit request queue space available */
  21854. #define USB_OTG_HPTXSTS_PTXQSAV_0 (0x01U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00010000 */
  21855. #define USB_OTG_HPTXSTS_PTXQSAV_1 (0x02U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00020000 */
  21856. #define USB_OTG_HPTXSTS_PTXQSAV_2 (0x04U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00040000 */
  21857. #define USB_OTG_HPTXSTS_PTXQSAV_3 (0x08U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00080000 */
  21858. #define USB_OTG_HPTXSTS_PTXQSAV_4 (0x10U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00100000 */
  21859. #define USB_OTG_HPTXSTS_PTXQSAV_5 (0x20U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00200000 */
  21860. #define USB_OTG_HPTXSTS_PTXQSAV_6 (0x40U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00400000 */
  21861. #define USB_OTG_HPTXSTS_PTXQSAV_7 (0x80U << USB_OTG_HPTXSTS_PTXQSAV_Pos) /*!< 0x00800000 */
  21862. #define USB_OTG_HPTXSTS_PTXQTOP_Pos (24U)
  21863. #define USB_OTG_HPTXSTS_PTXQTOP_Msk (0xFFU << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0xFF000000 */
  21864. #define USB_OTG_HPTXSTS_PTXQTOP USB_OTG_HPTXSTS_PTXQTOP_Msk /*!< Top of the periodic transmit request queue */
  21865. #define USB_OTG_HPTXSTS_PTXQTOP_0 (0x01U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x01000000 */
  21866. #define USB_OTG_HPTXSTS_PTXQTOP_1 (0x02U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x02000000 */
  21867. #define USB_OTG_HPTXSTS_PTXQTOP_2 (0x04U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x04000000 */
  21868. #define USB_OTG_HPTXSTS_PTXQTOP_3 (0x08U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x08000000 */
  21869. #define USB_OTG_HPTXSTS_PTXQTOP_4 (0x10U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x10000000 */
  21870. #define USB_OTG_HPTXSTS_PTXQTOP_5 (0x20U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x20000000 */
  21871. #define USB_OTG_HPTXSTS_PTXQTOP_6 (0x40U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x40000000 */
  21872. #define USB_OTG_HPTXSTS_PTXQTOP_7 (0x80U << USB_OTG_HPTXSTS_PTXQTOP_Pos) /*!< 0x80000000 */
  21873. /******************** Bit definition forUSB_OTG_HAINT register ********************/
  21874. #define USB_OTG_HAINT_HAINT_Pos (0U)
  21875. #define USB_OTG_HAINT_HAINT_Msk (0xFFFFU << USB_OTG_HAINT_HAINT_Pos) /*!< 0x0000FFFF */
  21876. #define USB_OTG_HAINT_HAINT USB_OTG_HAINT_HAINT_Msk /*!< Channel interrupts */
  21877. /******************** Bit definition forUSB_OTG_DOEPMSK register ********************/
  21878. #define USB_OTG_DOEPMSK_XFRCM_Pos (0U)
  21879. #define USB_OTG_DOEPMSK_XFRCM_Msk (0x1U << USB_OTG_DOEPMSK_XFRCM_Pos) /*!< 0x00000001 */
  21880. #define USB_OTG_DOEPMSK_XFRCM USB_OTG_DOEPMSK_XFRCM_Msk /*!< Transfer completed interrupt mask */
  21881. #define USB_OTG_DOEPMSK_EPDM_Pos (1U)
  21882. #define USB_OTG_DOEPMSK_EPDM_Msk (0x1U << USB_OTG_DOEPMSK_EPDM_Pos) /*!< 0x00000002 */
  21883. #define USB_OTG_DOEPMSK_EPDM USB_OTG_DOEPMSK_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  21884. #define USB_OTG_DOEPMSK_STUPM_Pos (3U)
  21885. #define USB_OTG_DOEPMSK_STUPM_Msk (0x1U << USB_OTG_DOEPMSK_STUPM_Pos) /*!< 0x00000008 */
  21886. #define USB_OTG_DOEPMSK_STUPM USB_OTG_DOEPMSK_STUPM_Msk /*!< SETUP phase done mask */
  21887. #define USB_OTG_DOEPMSK_OTEPDM_Pos (4U)
  21888. #define USB_OTG_DOEPMSK_OTEPDM_Msk (0x1U << USB_OTG_DOEPMSK_OTEPDM_Pos) /*!< 0x00000010 */
  21889. #define USB_OTG_DOEPMSK_OTEPDM USB_OTG_DOEPMSK_OTEPDM_Msk /*!< OUT token received when endpoint disabled mask */
  21890. #define USB_OTG_DOEPMSK_B2BSTUP_Pos (6U)
  21891. #define USB_OTG_DOEPMSK_B2BSTUP_Msk (0x1U << USB_OTG_DOEPMSK_B2BSTUP_Pos) /*!< 0x00000040 */
  21892. #define USB_OTG_DOEPMSK_B2BSTUP USB_OTG_DOEPMSK_B2BSTUP_Msk /*!< Back-to-back SETUP packets received mask */
  21893. #define USB_OTG_DOEPMSK_OPEM_Pos (8U)
  21894. #define USB_OTG_DOEPMSK_OPEM_Msk (0x1U << USB_OTG_DOEPMSK_OPEM_Pos) /*!< 0x00000100 */
  21895. #define USB_OTG_DOEPMSK_OPEM USB_OTG_DOEPMSK_OPEM_Msk /*!< OUT packet error mask */
  21896. #define USB_OTG_DOEPMSK_BOIM_Pos (9U)
  21897. #define USB_OTG_DOEPMSK_BOIM_Msk (0x1U << USB_OTG_DOEPMSK_BOIM_Pos) /*!< 0x00000200 */
  21898. #define USB_OTG_DOEPMSK_BOIM USB_OTG_DOEPMSK_BOIM_Msk /*!< BNA interrupt mask */
  21899. /******************** Bit definition forUSB_OTG_GINTSTS register ********************/
  21900. #define USB_OTG_GINTSTS_CMOD_Pos (0U)
  21901. #define USB_OTG_GINTSTS_CMOD_Msk (0x1U << USB_OTG_GINTSTS_CMOD_Pos) /*!< 0x00000001 */
  21902. #define USB_OTG_GINTSTS_CMOD USB_OTG_GINTSTS_CMOD_Msk /*!< Current mode of operation */
  21903. #define USB_OTG_GINTSTS_MMIS_Pos (1U)
  21904. #define USB_OTG_GINTSTS_MMIS_Msk (0x1U << USB_OTG_GINTSTS_MMIS_Pos) /*!< 0x00000002 */
  21905. #define USB_OTG_GINTSTS_MMIS USB_OTG_GINTSTS_MMIS_Msk /*!< Mode mismatch interrupt */
  21906. #define USB_OTG_GINTSTS_OTGINT_Pos (2U)
  21907. #define USB_OTG_GINTSTS_OTGINT_Msk (0x1U << USB_OTG_GINTSTS_OTGINT_Pos) /*!< 0x00000004 */
  21908. #define USB_OTG_GINTSTS_OTGINT USB_OTG_GINTSTS_OTGINT_Msk /*!< OTG interrupt */
  21909. #define USB_OTG_GINTSTS_SOF_Pos (3U)
  21910. #define USB_OTG_GINTSTS_SOF_Msk (0x1U << USB_OTG_GINTSTS_SOF_Pos) /*!< 0x00000008 */
  21911. #define USB_OTG_GINTSTS_SOF USB_OTG_GINTSTS_SOF_Msk /*!< Start of frame */
  21912. #define USB_OTG_GINTSTS_RXFLVL_Pos (4U)
  21913. #define USB_OTG_GINTSTS_RXFLVL_Msk (0x1U << USB_OTG_GINTSTS_RXFLVL_Pos) /*!< 0x00000010 */
  21914. #define USB_OTG_GINTSTS_RXFLVL USB_OTG_GINTSTS_RXFLVL_Msk /*!< RxFIFO nonempty */
  21915. #define USB_OTG_GINTSTS_NPTXFE_Pos (5U)
  21916. #define USB_OTG_GINTSTS_NPTXFE_Msk (0x1U << USB_OTG_GINTSTS_NPTXFE_Pos) /*!< 0x00000020 */
  21917. #define USB_OTG_GINTSTS_NPTXFE USB_OTG_GINTSTS_NPTXFE_Msk /*!< Nonperiodic TxFIFO empty */
  21918. #define USB_OTG_GINTSTS_GINAKEFF_Pos (6U)
  21919. #define USB_OTG_GINTSTS_GINAKEFF_Msk (0x1U << USB_OTG_GINTSTS_GINAKEFF_Pos) /*!< 0x00000040 */
  21920. #define USB_OTG_GINTSTS_GINAKEFF USB_OTG_GINTSTS_GINAKEFF_Msk /*!< Global IN nonperiodic NAK effective */
  21921. #define USB_OTG_GINTSTS_BOUTNAKEFF_Pos (7U)
  21922. #define USB_OTG_GINTSTS_BOUTNAKEFF_Msk (0x1U << USB_OTG_GINTSTS_BOUTNAKEFF_Pos) /*!< 0x00000080 */
  21923. #define USB_OTG_GINTSTS_BOUTNAKEFF USB_OTG_GINTSTS_BOUTNAKEFF_Msk /*!< Global OUT NAK effective */
  21924. #define USB_OTG_GINTSTS_ESUSP_Pos (10U)
  21925. #define USB_OTG_GINTSTS_ESUSP_Msk (0x1U << USB_OTG_GINTSTS_ESUSP_Pos) /*!< 0x00000400 */
  21926. #define USB_OTG_GINTSTS_ESUSP USB_OTG_GINTSTS_ESUSP_Msk /*!< Early suspend */
  21927. #define USB_OTG_GINTSTS_USBSUSP_Pos (11U)
  21928. #define USB_OTG_GINTSTS_USBSUSP_Msk (0x1U << USB_OTG_GINTSTS_USBSUSP_Pos) /*!< 0x00000800 */
  21929. #define USB_OTG_GINTSTS_USBSUSP USB_OTG_GINTSTS_USBSUSP_Msk /*!< USB suspend */
  21930. #define USB_OTG_GINTSTS_USBRST_Pos (12U)
  21931. #define USB_OTG_GINTSTS_USBRST_Msk (0x1U << USB_OTG_GINTSTS_USBRST_Pos) /*!< 0x00001000 */
  21932. #define USB_OTG_GINTSTS_USBRST USB_OTG_GINTSTS_USBRST_Msk /*!< USB reset */
  21933. #define USB_OTG_GINTSTS_ENUMDNE_Pos (13U)
  21934. #define USB_OTG_GINTSTS_ENUMDNE_Msk (0x1U << USB_OTG_GINTSTS_ENUMDNE_Pos) /*!< 0x00002000 */
  21935. #define USB_OTG_GINTSTS_ENUMDNE USB_OTG_GINTSTS_ENUMDNE_Msk /*!< Enumeration done */
  21936. #define USB_OTG_GINTSTS_ISOODRP_Pos (14U)
  21937. #define USB_OTG_GINTSTS_ISOODRP_Msk (0x1U << USB_OTG_GINTSTS_ISOODRP_Pos) /*!< 0x00004000 */
  21938. #define USB_OTG_GINTSTS_ISOODRP USB_OTG_GINTSTS_ISOODRP_Msk /*!< Isochronous OUT packet dropped interrupt */
  21939. #define USB_OTG_GINTSTS_EOPF_Pos (15U)
  21940. #define USB_OTG_GINTSTS_EOPF_Msk (0x1U << USB_OTG_GINTSTS_EOPF_Pos) /*!< 0x00008000 */
  21941. #define USB_OTG_GINTSTS_EOPF USB_OTG_GINTSTS_EOPF_Msk /*!< End of periodic frame interrupt */
  21942. #define USB_OTG_GINTSTS_IEPINT_Pos (18U)
  21943. #define USB_OTG_GINTSTS_IEPINT_Msk (0x1U << USB_OTG_GINTSTS_IEPINT_Pos) /*!< 0x00040000 */
  21944. #define USB_OTG_GINTSTS_IEPINT USB_OTG_GINTSTS_IEPINT_Msk /*!< IN endpoint interrupt */
  21945. #define USB_OTG_GINTSTS_OEPINT_Pos (19U)
  21946. #define USB_OTG_GINTSTS_OEPINT_Msk (0x1U << USB_OTG_GINTSTS_OEPINT_Pos) /*!< 0x00080000 */
  21947. #define USB_OTG_GINTSTS_OEPINT USB_OTG_GINTSTS_OEPINT_Msk /*!< OUT endpoint interrupt */
  21948. #define USB_OTG_GINTSTS_IISOIXFR_Pos (20U)
  21949. #define USB_OTG_GINTSTS_IISOIXFR_Msk (0x1U << USB_OTG_GINTSTS_IISOIXFR_Pos) /*!< 0x00100000 */
  21950. #define USB_OTG_GINTSTS_IISOIXFR USB_OTG_GINTSTS_IISOIXFR_Msk /*!< Incomplete isochronous IN transfer */
  21951. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos (21U)
  21952. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk (0x1U << USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos) /*!< 0x00200000 */
  21953. #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk /*!< Incomplete periodic transfer */
  21954. #define USB_OTG_GINTSTS_DATAFSUSP_Pos (22U)
  21955. #define USB_OTG_GINTSTS_DATAFSUSP_Msk (0x1U << USB_OTG_GINTSTS_DATAFSUSP_Pos) /*!< 0x00400000 */
  21956. #define USB_OTG_GINTSTS_DATAFSUSP USB_OTG_GINTSTS_DATAFSUSP_Msk /*!< Data fetch suspended */
  21957. #define USB_OTG_GINTSTS_RSTDET_Pos (23U)
  21958. #define USB_OTG_GINTSTS_RSTDET_Msk (0x1U << USB_OTG_GINTSTS_RSTDET_Pos) /*!< 0x00800000 */
  21959. #define USB_OTG_GINTSTS_RSTDET USB_OTG_GINTSTS_RSTDET_Msk /*!< Reset detected interrupt */
  21960. #define USB_OTG_GINTSTS_HPRTINT_Pos (24U)
  21961. #define USB_OTG_GINTSTS_HPRTINT_Msk (0x1U << USB_OTG_GINTSTS_HPRTINT_Pos) /*!< 0x01000000 */
  21962. #define USB_OTG_GINTSTS_HPRTINT USB_OTG_GINTSTS_HPRTINT_Msk /*!< Host port interrupt */
  21963. #define USB_OTG_GINTSTS_HCINT_Pos (25U)
  21964. #define USB_OTG_GINTSTS_HCINT_Msk (0x1U << USB_OTG_GINTSTS_HCINT_Pos) /*!< 0x02000000 */
  21965. #define USB_OTG_GINTSTS_HCINT USB_OTG_GINTSTS_HCINT_Msk /*!< Host channels interrupt */
  21966. #define USB_OTG_GINTSTS_PTXFE_Pos (26U)
  21967. #define USB_OTG_GINTSTS_PTXFE_Msk (0x1U << USB_OTG_GINTSTS_PTXFE_Pos) /*!< 0x04000000 */
  21968. #define USB_OTG_GINTSTS_PTXFE USB_OTG_GINTSTS_PTXFE_Msk /*!< Periodic TxFIFO empty */
  21969. #define USB_OTG_GINTSTS_LPMINT_Pos (27U)
  21970. #define USB_OTG_GINTSTS_LPMINT_Msk (0x1U << USB_OTG_GINTSTS_LPMINT_Pos) /*!< 0x08000000 */
  21971. #define USB_OTG_GINTSTS_LPMINT USB_OTG_GINTSTS_LPMINT_Msk /*!< LPM interrupt */
  21972. #define USB_OTG_GINTSTS_CIDSCHG_Pos (28U)
  21973. #define USB_OTG_GINTSTS_CIDSCHG_Msk (0x1U << USB_OTG_GINTSTS_CIDSCHG_Pos) /*!< 0x10000000 */
  21974. #define USB_OTG_GINTSTS_CIDSCHG USB_OTG_GINTSTS_CIDSCHG_Msk /*!< Connector ID status change */
  21975. #define USB_OTG_GINTSTS_DISCINT_Pos (29U)
  21976. #define USB_OTG_GINTSTS_DISCINT_Msk (0x1U << USB_OTG_GINTSTS_DISCINT_Pos) /*!< 0x20000000 */
  21977. #define USB_OTG_GINTSTS_DISCINT USB_OTG_GINTSTS_DISCINT_Msk /*!< Disconnect detected interrupt */
  21978. #define USB_OTG_GINTSTS_SRQINT_Pos (30U)
  21979. #define USB_OTG_GINTSTS_SRQINT_Msk (0x1U << USB_OTG_GINTSTS_SRQINT_Pos) /*!< 0x40000000 */
  21980. #define USB_OTG_GINTSTS_SRQINT USB_OTG_GINTSTS_SRQINT_Msk /*!< Session request/new session detected interrupt */
  21981. #define USB_OTG_GINTSTS_WKUINT_Pos (31U)
  21982. #define USB_OTG_GINTSTS_WKUINT_Msk (0x1U << USB_OTG_GINTSTS_WKUINT_Pos) /*!< 0x80000000 */
  21983. #define USB_OTG_GINTSTS_WKUINT USB_OTG_GINTSTS_WKUINT_Msk /*!< Resume/remote wakeup detected interrupt */
  21984. /******************** Bit definition forUSB_OTG_GINTMSK register ********************/
  21985. #define USB_OTG_GINTMSK_MMISM_Pos (1U)
  21986. #define USB_OTG_GINTMSK_MMISM_Msk (0x1U << USB_OTG_GINTMSK_MMISM_Pos) /*!< 0x00000002 */
  21987. #define USB_OTG_GINTMSK_MMISM USB_OTG_GINTMSK_MMISM_Msk /*!< Mode mismatch interrupt mask */
  21988. #define USB_OTG_GINTMSK_OTGINT_Pos (2U)
  21989. #define USB_OTG_GINTMSK_OTGINT_Msk (0x1U << USB_OTG_GINTMSK_OTGINT_Pos) /*!< 0x00000004 */
  21990. #define USB_OTG_GINTMSK_OTGINT USB_OTG_GINTMSK_OTGINT_Msk /*!< OTG interrupt mask */
  21991. #define USB_OTG_GINTMSK_SOFM_Pos (3U)
  21992. #define USB_OTG_GINTMSK_SOFM_Msk (0x1U << USB_OTG_GINTMSK_SOFM_Pos) /*!< 0x00000008 */
  21993. #define USB_OTG_GINTMSK_SOFM USB_OTG_GINTMSK_SOFM_Msk /*!< Start of frame mask */
  21994. #define USB_OTG_GINTMSK_RXFLVLM_Pos (4U)
  21995. #define USB_OTG_GINTMSK_RXFLVLM_Msk (0x1U << USB_OTG_GINTMSK_RXFLVLM_Pos) /*!< 0x00000010 */
  21996. #define USB_OTG_GINTMSK_RXFLVLM USB_OTG_GINTMSK_RXFLVLM_Msk /*!< Receive FIFO nonempty mask */
  21997. #define USB_OTG_GINTMSK_NPTXFEM_Pos (5U)
  21998. #define USB_OTG_GINTMSK_NPTXFEM_Msk (0x1U << USB_OTG_GINTMSK_NPTXFEM_Pos) /*!< 0x00000020 */
  21999. #define USB_OTG_GINTMSK_NPTXFEM USB_OTG_GINTMSK_NPTXFEM_Msk /*!< Nonperiodic TxFIFO empty mask */
  22000. #define USB_OTG_GINTMSK_GINAKEFFM_Pos (6U)
  22001. #define USB_OTG_GINTMSK_GINAKEFFM_Msk (0x1U << USB_OTG_GINTMSK_GINAKEFFM_Pos) /*!< 0x00000040 */
  22002. #define USB_OTG_GINTMSK_GINAKEFFM USB_OTG_GINTMSK_GINAKEFFM_Msk /*!< Global nonperiodic IN NAK effective mask */
  22003. #define USB_OTG_GINTMSK_GONAKEFFM_Pos (7U)
  22004. #define USB_OTG_GINTMSK_GONAKEFFM_Msk (0x1U << USB_OTG_GINTMSK_GONAKEFFM_Pos) /*!< 0x00000080 */
  22005. #define USB_OTG_GINTMSK_GONAKEFFM USB_OTG_GINTMSK_GONAKEFFM_Msk /*!< Global OUT NAK effective mask */
  22006. #define USB_OTG_GINTMSK_ESUSPM_Pos (10U)
  22007. #define USB_OTG_GINTMSK_ESUSPM_Msk (0x1U << USB_OTG_GINTMSK_ESUSPM_Pos) /*!< 0x00000400 */
  22008. #define USB_OTG_GINTMSK_ESUSPM USB_OTG_GINTMSK_ESUSPM_Msk /*!< Early suspend mask */
  22009. #define USB_OTG_GINTMSK_USBSUSPM_Pos (11U)
  22010. #define USB_OTG_GINTMSK_USBSUSPM_Msk (0x1U << USB_OTG_GINTMSK_USBSUSPM_Pos) /*!< 0x00000800 */
  22011. #define USB_OTG_GINTMSK_USBSUSPM USB_OTG_GINTMSK_USBSUSPM_Msk /*!< USB suspend mask */
  22012. #define USB_OTG_GINTMSK_USBRST_Pos (12U)
  22013. #define USB_OTG_GINTMSK_USBRST_Msk (0x1U << USB_OTG_GINTMSK_USBRST_Pos) /*!< 0x00001000 */
  22014. #define USB_OTG_GINTMSK_USBRST USB_OTG_GINTMSK_USBRST_Msk /*!< USB reset mask */
  22015. #define USB_OTG_GINTMSK_ENUMDNEM_Pos (13U)
  22016. #define USB_OTG_GINTMSK_ENUMDNEM_Msk (0x1U << USB_OTG_GINTMSK_ENUMDNEM_Pos) /*!< 0x00002000 */
  22017. #define USB_OTG_GINTMSK_ENUMDNEM USB_OTG_GINTMSK_ENUMDNEM_Msk /*!< Enumeration done mask */
  22018. #define USB_OTG_GINTMSK_ISOODRPM_Pos (14U)
  22019. #define USB_OTG_GINTMSK_ISOODRPM_Msk (0x1U << USB_OTG_GINTMSK_ISOODRPM_Pos) /*!< 0x00004000 */
  22020. #define USB_OTG_GINTMSK_ISOODRPM USB_OTG_GINTMSK_ISOODRPM_Msk /*!< Isochronous OUT packet dropped interrupt mask */
  22021. #define USB_OTG_GINTMSK_EOPFM_Pos (15U)
  22022. #define USB_OTG_GINTMSK_EOPFM_Msk (0x1U << USB_OTG_GINTMSK_EOPFM_Pos) /*!< 0x00008000 */
  22023. #define USB_OTG_GINTMSK_EOPFM USB_OTG_GINTMSK_EOPFM_Msk /*!< End of periodic frame interrupt mask */
  22024. #define USB_OTG_GINTMSK_EPMISM_Pos (17U)
  22025. #define USB_OTG_GINTMSK_EPMISM_Msk (0x1U << USB_OTG_GINTMSK_EPMISM_Pos) /*!< 0x00020000 */
  22026. #define USB_OTG_GINTMSK_EPMISM USB_OTG_GINTMSK_EPMISM_Msk /*!< Endpoint mismatch interrupt mask */
  22027. #define USB_OTG_GINTMSK_IEPINT_Pos (18U)
  22028. #define USB_OTG_GINTMSK_IEPINT_Msk (0x1U << USB_OTG_GINTMSK_IEPINT_Pos) /*!< 0x00040000 */
  22029. #define USB_OTG_GINTMSK_IEPINT USB_OTG_GINTMSK_IEPINT_Msk /*!< IN endpoints interrupt mask */
  22030. #define USB_OTG_GINTMSK_OEPINT_Pos (19U)
  22031. #define USB_OTG_GINTMSK_OEPINT_Msk (0x1U << USB_OTG_GINTMSK_OEPINT_Pos) /*!< 0x00080000 */
  22032. #define USB_OTG_GINTMSK_OEPINT USB_OTG_GINTMSK_OEPINT_Msk /*!< OUT endpoints interrupt mask */
  22033. #define USB_OTG_GINTMSK_IISOIXFRM_Pos (20U)
  22034. #define USB_OTG_GINTMSK_IISOIXFRM_Msk (0x1U << USB_OTG_GINTMSK_IISOIXFRM_Pos) /*!< 0x00100000 */
  22035. #define USB_OTG_GINTMSK_IISOIXFRM USB_OTG_GINTMSK_IISOIXFRM_Msk /*!< Incomplete isochronous IN transfer mask */
  22036. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos (21U)
  22037. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk (0x1U << USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos) /*!< 0x00200000 */
  22038. #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk /*!< Incomplete periodic transfer mask */
  22039. #define USB_OTG_GINTMSK_FSUSPM_Pos (22U)
  22040. #define USB_OTG_GINTMSK_FSUSPM_Msk (0x1U << USB_OTG_GINTMSK_FSUSPM_Pos) /*!< 0x00400000 */
  22041. #define USB_OTG_GINTMSK_FSUSPM USB_OTG_GINTMSK_FSUSPM_Msk /*!< Data fetch suspended mask */
  22042. #define USB_OTG_GINTMSK_RSTDEM_Pos (23U)
  22043. #define USB_OTG_GINTMSK_RSTDEM_Msk (0x1U << USB_OTG_GINTMSK_RSTDEM_Pos) /*!< 0x00800000 */
  22044. #define USB_OTG_GINTMSK_RSTDEM USB_OTG_GINTMSK_RSTDEM_Msk /*!< Reset detected interrupt mask */
  22045. #define USB_OTG_GINTMSK_PRTIM_Pos (24U)
  22046. #define USB_OTG_GINTMSK_PRTIM_Msk (0x1U << USB_OTG_GINTMSK_PRTIM_Pos) /*!< 0x01000000 */
  22047. #define USB_OTG_GINTMSK_PRTIM USB_OTG_GINTMSK_PRTIM_Msk /*!< Host port interrupt mask */
  22048. #define USB_OTG_GINTMSK_HCIM_Pos (25U)
  22049. #define USB_OTG_GINTMSK_HCIM_Msk (0x1U << USB_OTG_GINTMSK_HCIM_Pos) /*!< 0x02000000 */
  22050. #define USB_OTG_GINTMSK_HCIM USB_OTG_GINTMSK_HCIM_Msk /*!< Host channels interrupt mask */
  22051. #define USB_OTG_GINTMSK_PTXFEM_Pos (26U)
  22052. #define USB_OTG_GINTMSK_PTXFEM_Msk (0x1U << USB_OTG_GINTMSK_PTXFEM_Pos) /*!< 0x04000000 */
  22053. #define USB_OTG_GINTMSK_PTXFEM USB_OTG_GINTMSK_PTXFEM_Msk /*!< Periodic TxFIFO empty mask */
  22054. #define USB_OTG_GINTMSK_LPMINTM_Pos (27U)
  22055. #define USB_OTG_GINTMSK_LPMINTM_Msk (0x1U << USB_OTG_GINTMSK_LPMINTM_Pos) /*!< 0x08000000 */
  22056. #define USB_OTG_GINTMSK_LPMINTM USB_OTG_GINTMSK_LPMINTM_Msk /*!< LPM interrupt Mask */
  22057. #define USB_OTG_GINTMSK_CIDSCHGM_Pos (28U)
  22058. #define USB_OTG_GINTMSK_CIDSCHGM_Msk (0x1U << USB_OTG_GINTMSK_CIDSCHGM_Pos) /*!< 0x10000000 */
  22059. #define USB_OTG_GINTMSK_CIDSCHGM USB_OTG_GINTMSK_CIDSCHGM_Msk /*!< Connector ID status change mask */
  22060. #define USB_OTG_GINTMSK_DISCINT_Pos (29U)
  22061. #define USB_OTG_GINTMSK_DISCINT_Msk (0x1U << USB_OTG_GINTMSK_DISCINT_Pos) /*!< 0x20000000 */
  22062. #define USB_OTG_GINTMSK_DISCINT USB_OTG_GINTMSK_DISCINT_Msk /*!< Disconnect detected interrupt mask */
  22063. #define USB_OTG_GINTMSK_SRQIM_Pos (30U)
  22064. #define USB_OTG_GINTMSK_SRQIM_Msk (0x1U << USB_OTG_GINTMSK_SRQIM_Pos) /*!< 0x40000000 */
  22065. #define USB_OTG_GINTMSK_SRQIM USB_OTG_GINTMSK_SRQIM_Msk /*!< Session request/new session detected interrupt mask */
  22066. #define USB_OTG_GINTMSK_WUIM_Pos (31U)
  22067. #define USB_OTG_GINTMSK_WUIM_Msk (0x1U << USB_OTG_GINTMSK_WUIM_Pos) /*!< 0x80000000 */
  22068. #define USB_OTG_GINTMSK_WUIM USB_OTG_GINTMSK_WUIM_Msk /*!< Resume/remote wakeup detected interrupt mask */
  22069. /******************** Bit definition forUSB_OTG_DAINT register ********************/
  22070. #define USB_OTG_DAINT_IEPINT_Pos (0U)
  22071. #define USB_OTG_DAINT_IEPINT_Msk (0xFFFFU << USB_OTG_DAINT_IEPINT_Pos) /*!< 0x0000FFFF */
  22072. #define USB_OTG_DAINT_IEPINT USB_OTG_DAINT_IEPINT_Msk /*!< IN endpoint interrupt bits */
  22073. #define USB_OTG_DAINT_OEPINT_Pos (16U)
  22074. #define USB_OTG_DAINT_OEPINT_Msk (0xFFFFU << USB_OTG_DAINT_OEPINT_Pos) /*!< 0xFFFF0000 */
  22075. #define USB_OTG_DAINT_OEPINT USB_OTG_DAINT_OEPINT_Msk /*!< OUT endpoint interrupt bits */
  22076. /******************** Bit definition forUSB_OTG_HAINTMSK register ********************/
  22077. #define USB_OTG_HAINTMSK_HAINTM_Pos (0U)
  22078. #define USB_OTG_HAINTMSK_HAINTM_Msk (0xFFFFU << USB_OTG_HAINTMSK_HAINTM_Pos) /*!< 0x0000FFFF */
  22079. #define USB_OTG_HAINTMSK_HAINTM USB_OTG_HAINTMSK_HAINTM_Msk /*!< Channel interrupt mask */
  22080. /******************** Bit definition for USB_OTG_GRXSTSP register ********************/
  22081. #define USB_OTG_GRXSTSP_EPNUM_Pos (0U)
  22082. #define USB_OTG_GRXSTSP_EPNUM_Msk (0xFU << USB_OTG_GRXSTSP_EPNUM_Pos) /*!< 0x0000000F */
  22083. #define USB_OTG_GRXSTSP_EPNUM USB_OTG_GRXSTSP_EPNUM_Msk /*!< IN EP interrupt mask bits */
  22084. #define USB_OTG_GRXSTSP_BCNT_Pos (4U)
  22085. #define USB_OTG_GRXSTSP_BCNT_Msk (0x7FFU << USB_OTG_GRXSTSP_BCNT_Pos) /*!< 0x00007FF0 */
  22086. #define USB_OTG_GRXSTSP_BCNT USB_OTG_GRXSTSP_BCNT_Msk /*!< OUT EP interrupt mask bits */
  22087. #define USB_OTG_GRXSTSP_DPID_Pos (15U)
  22088. #define USB_OTG_GRXSTSP_DPID_Msk (0x3U << USB_OTG_GRXSTSP_DPID_Pos) /*!< 0x00018000 */
  22089. #define USB_OTG_GRXSTSP_DPID USB_OTG_GRXSTSP_DPID_Msk /*!< OUT EP interrupt mask bits */
  22090. #define USB_OTG_GRXSTSP_PKTSTS_Pos (17U)
  22091. #define USB_OTG_GRXSTSP_PKTSTS_Msk (0xFU << USB_OTG_GRXSTSP_PKTSTS_Pos) /*!< 0x001E0000 */
  22092. #define USB_OTG_GRXSTSP_PKTSTS USB_OTG_GRXSTSP_PKTSTS_Msk /*!< OUT EP interrupt mask bits */
  22093. /******************** Bit definition forUSB_OTG_DAINTMSK register ********************/
  22094. #define USB_OTG_DAINTMSK_IEPM_Pos (0U)
  22095. #define USB_OTG_DAINTMSK_IEPM_Msk (0xFFFFU << USB_OTG_DAINTMSK_IEPM_Pos) /*!< 0x0000FFFF */
  22096. #define USB_OTG_DAINTMSK_IEPM USB_OTG_DAINTMSK_IEPM_Msk /*!< IN EP interrupt mask bits */
  22097. #define USB_OTG_DAINTMSK_OEPM_Pos (16U)
  22098. #define USB_OTG_DAINTMSK_OEPM_Msk (0xFFFFU << USB_OTG_DAINTMSK_OEPM_Pos) /*!< 0xFFFF0000 */
  22099. #define USB_OTG_DAINTMSK_OEPM USB_OTG_DAINTMSK_OEPM_Msk /*!< OUT EP interrupt mask bits */
  22100. /******************** Bit definition for OTG register ********************/
  22101. #define USB_OTG_CHNUM_Pos (0U)
  22102. #define USB_OTG_CHNUM_Msk (0xFU << USB_OTG_CHNUM_Pos) /*!< 0x0000000F */
  22103. #define USB_OTG_CHNUM USB_OTG_CHNUM_Msk /*!< Channel number */
  22104. #define USB_OTG_CHNUM_0 (0x1U << USB_OTG_CHNUM_Pos) /*!< 0x00000001 */
  22105. #define USB_OTG_CHNUM_1 (0x2U << USB_OTG_CHNUM_Pos) /*!< 0x00000002 */
  22106. #define USB_OTG_CHNUM_2 (0x4U << USB_OTG_CHNUM_Pos) /*!< 0x00000004 */
  22107. #define USB_OTG_CHNUM_3 (0x8U << USB_OTG_CHNUM_Pos) /*!< 0x00000008 */
  22108. #define USB_OTG_BCNT_Pos (4U)
  22109. #define USB_OTG_BCNT_Msk (0x7FFU << USB_OTG_BCNT_Pos) /*!< 0x00007FF0 */
  22110. #define USB_OTG_BCNT USB_OTG_BCNT_Msk /*!< Byte count */
  22111. #define USB_OTG_DPID_Pos (15U)
  22112. #define USB_OTG_DPID_Msk (0x3U << USB_OTG_DPID_Pos) /*!< 0x00018000 */
  22113. #define USB_OTG_DPID USB_OTG_DPID_Msk /*!< Data PID */
  22114. #define USB_OTG_DPID_0 (0x1U << USB_OTG_DPID_Pos) /*!< 0x00008000 */
  22115. #define USB_OTG_DPID_1 (0x2U << USB_OTG_DPID_Pos) /*!< 0x00010000 */
  22116. #define USB_OTG_PKTSTS_Pos (17U)
  22117. #define USB_OTG_PKTSTS_Msk (0xFU << USB_OTG_PKTSTS_Pos) /*!< 0x001E0000 */
  22118. #define USB_OTG_PKTSTS USB_OTG_PKTSTS_Msk /*!< Packet status */
  22119. #define USB_OTG_PKTSTS_0 (0x1U << USB_OTG_PKTSTS_Pos) /*!< 0x00020000 */
  22120. #define USB_OTG_PKTSTS_1 (0x2U << USB_OTG_PKTSTS_Pos) /*!< 0x00040000 */
  22121. #define USB_OTG_PKTSTS_2 (0x4U << USB_OTG_PKTSTS_Pos) /*!< 0x00080000 */
  22122. #define USB_OTG_PKTSTS_3 (0x8U << USB_OTG_PKTSTS_Pos) /*!< 0x00100000 */
  22123. #define USB_OTG_EPNUM_Pos (0U)
  22124. #define USB_OTG_EPNUM_Msk (0xFU << USB_OTG_EPNUM_Pos) /*!< 0x0000000F */
  22125. #define USB_OTG_EPNUM USB_OTG_EPNUM_Msk /*!< Endpoint number */
  22126. #define USB_OTG_EPNUM_0 (0x1U << USB_OTG_EPNUM_Pos) /*!< 0x00000001 */
  22127. #define USB_OTG_EPNUM_1 (0x2U << USB_OTG_EPNUM_Pos) /*!< 0x00000002 */
  22128. #define USB_OTG_EPNUM_2 (0x4U << USB_OTG_EPNUM_Pos) /*!< 0x00000004 */
  22129. #define USB_OTG_EPNUM_3 (0x8U << USB_OTG_EPNUM_Pos) /*!< 0x00000008 */
  22130. #define USB_OTG_FRMNUM_Pos (21U)
  22131. #define USB_OTG_FRMNUM_Msk (0xFU << USB_OTG_FRMNUM_Pos) /*!< 0x01E00000 */
  22132. #define USB_OTG_FRMNUM USB_OTG_FRMNUM_Msk /*!< Frame number */
  22133. #define USB_OTG_FRMNUM_0 (0x1U << USB_OTG_FRMNUM_Pos) /*!< 0x00200000 */
  22134. #define USB_OTG_FRMNUM_1 (0x2U << USB_OTG_FRMNUM_Pos) /*!< 0x00400000 */
  22135. #define USB_OTG_FRMNUM_2 (0x4U << USB_OTG_FRMNUM_Pos) /*!< 0x00800000 */
  22136. #define USB_OTG_FRMNUM_3 (0x8U << USB_OTG_FRMNUM_Pos) /*!< 0x01000000 */
  22137. /******************** Bit definition forUSB_OTG_GRXFSIZ register ********************/
  22138. #define USB_OTG_GRXFSIZ_RXFD_Pos (0U)
  22139. #define USB_OTG_GRXFSIZ_RXFD_Msk (0xFFFFU << USB_OTG_GRXFSIZ_RXFD_Pos) /*!< 0x0000FFFF */
  22140. #define USB_OTG_GRXFSIZ_RXFD USB_OTG_GRXFSIZ_RXFD_Msk /*!< RxFIFO depth */
  22141. /******************** Bit definition forUSB_OTG_DVBUSDIS register ********************/
  22142. #define USB_OTG_DVBUSDIS_VBUSDT_Pos (0U)
  22143. #define USB_OTG_DVBUSDIS_VBUSDT_Msk (0xFFFFU << USB_OTG_DVBUSDIS_VBUSDT_Pos) /*!< 0x0000FFFF */
  22144. #define USB_OTG_DVBUSDIS_VBUSDT USB_OTG_DVBUSDIS_VBUSDT_Msk /*!< Device VBUS discharge time */
  22145. /******************** Bit definition for OTG register ********************/
  22146. #define USB_OTG_NPTXFSA_Pos (0U)
  22147. #define USB_OTG_NPTXFSA_Msk (0xFFFFU << USB_OTG_NPTXFSA_Pos) /*!< 0x0000FFFF */
  22148. #define USB_OTG_NPTXFSA USB_OTG_NPTXFSA_Msk /*!< Nonperiodic transmit RAM start address */
  22149. #define USB_OTG_NPTXFD_Pos (16U)
  22150. #define USB_OTG_NPTXFD_Msk (0xFFFFU << USB_OTG_NPTXFD_Pos) /*!< 0xFFFF0000 */
  22151. #define USB_OTG_NPTXFD USB_OTG_NPTXFD_Msk /*!< Nonperiodic TxFIFO depth */
  22152. #define USB_OTG_TX0FSA_Pos (0U)
  22153. #define USB_OTG_TX0FSA_Msk (0xFFFFU << USB_OTG_TX0FSA_Pos) /*!< 0x0000FFFF */
  22154. #define USB_OTG_TX0FSA USB_OTG_TX0FSA_Msk /*!< Endpoint 0 transmit RAM start address */
  22155. #define USB_OTG_TX0FD_Pos (16U)
  22156. #define USB_OTG_TX0FD_Msk (0xFFFFU << USB_OTG_TX0FD_Pos) /*!< 0xFFFF0000 */
  22157. #define USB_OTG_TX0FD USB_OTG_TX0FD_Msk /*!< Endpoint 0 TxFIFO depth */
  22158. /******************** Bit definition forUSB_OTG_DVBUSPULSE register ********************/
  22159. #define USB_OTG_DVBUSPULSE_DVBUSP_Pos (0U)
  22160. #define USB_OTG_DVBUSPULSE_DVBUSP_Msk (0xFFFU << USB_OTG_DVBUSPULSE_DVBUSP_Pos) /*!< 0x00000FFF */
  22161. #define USB_OTG_DVBUSPULSE_DVBUSP USB_OTG_DVBUSPULSE_DVBUSP_Msk /*!< Device VBUS pulsing time */
  22162. /******************** Bit definition forUSB_OTG_GNPTXSTS register ********************/
  22163. #define USB_OTG_GNPTXSTS_NPTXFSAV_Pos (0U)
  22164. #define USB_OTG_GNPTXSTS_NPTXFSAV_Msk (0xFFFFU << USB_OTG_GNPTXSTS_NPTXFSAV_Pos) /*!< 0x0000FFFF */
  22165. #define USB_OTG_GNPTXSTS_NPTXFSAV USB_OTG_GNPTXSTS_NPTXFSAV_Msk /*!< Nonperiodic TxFIFO space available */
  22166. #define USB_OTG_GNPTXSTS_NPTQXSAV_Pos (16U)
  22167. #define USB_OTG_GNPTXSTS_NPTQXSAV_Msk (0xFFU << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00FF0000 */
  22168. #define USB_OTG_GNPTXSTS_NPTQXSAV USB_OTG_GNPTXSTS_NPTQXSAV_Msk /*!< Nonperiodic transmit request queue space available */
  22169. #define USB_OTG_GNPTXSTS_NPTQXSAV_0 (0x01U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00010000 */
  22170. #define USB_OTG_GNPTXSTS_NPTQXSAV_1 (0x02U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00020000 */
  22171. #define USB_OTG_GNPTXSTS_NPTQXSAV_2 (0x04U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00040000 */
  22172. #define USB_OTG_GNPTXSTS_NPTQXSAV_3 (0x08U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00080000 */
  22173. #define USB_OTG_GNPTXSTS_NPTQXSAV_4 (0x10U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00100000 */
  22174. #define USB_OTG_GNPTXSTS_NPTQXSAV_5 (0x20U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00200000 */
  22175. #define USB_OTG_GNPTXSTS_NPTQXSAV_6 (0x40U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00400000 */
  22176. #define USB_OTG_GNPTXSTS_NPTQXSAV_7 (0x80U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos) /*!< 0x00800000 */
  22177. #define USB_OTG_GNPTXSTS_NPTXQTOP_Pos (24U)
  22178. #define USB_OTG_GNPTXSTS_NPTXQTOP_Msk (0x7FU << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x7F000000 */
  22179. #define USB_OTG_GNPTXSTS_NPTXQTOP USB_OTG_GNPTXSTS_NPTXQTOP_Msk /*!< Top of the nonperiodic transmit request queue */
  22180. #define USB_OTG_GNPTXSTS_NPTXQTOP_0 (0x01U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x01000000 */
  22181. #define USB_OTG_GNPTXSTS_NPTXQTOP_1 (0x02U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x02000000 */
  22182. #define USB_OTG_GNPTXSTS_NPTXQTOP_2 (0x04U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x04000000 */
  22183. #define USB_OTG_GNPTXSTS_NPTXQTOP_3 (0x08U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x08000000 */
  22184. #define USB_OTG_GNPTXSTS_NPTXQTOP_4 (0x10U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x10000000 */
  22185. #define USB_OTG_GNPTXSTS_NPTXQTOP_5 (0x20U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x20000000 */
  22186. #define USB_OTG_GNPTXSTS_NPTXQTOP_6 (0x40U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos) /*!< 0x40000000 */
  22187. /******************** Bit definition forUSB_OTG_DTHRCTL register ********************/
  22188. #define USB_OTG_DTHRCTL_NONISOTHREN_Pos (0U)
  22189. #define USB_OTG_DTHRCTL_NONISOTHREN_Msk (0x1U << USB_OTG_DTHRCTL_NONISOTHREN_Pos) /*!< 0x00000001 */
  22190. #define USB_OTG_DTHRCTL_NONISOTHREN USB_OTG_DTHRCTL_NONISOTHREN_Msk /*!< Nonisochronous IN endpoints threshold enable */
  22191. #define USB_OTG_DTHRCTL_ISOTHREN_Pos (1U)
  22192. #define USB_OTG_DTHRCTL_ISOTHREN_Msk (0x1U << USB_OTG_DTHRCTL_ISOTHREN_Pos) /*!< 0x00000002 */
  22193. #define USB_OTG_DTHRCTL_ISOTHREN USB_OTG_DTHRCTL_ISOTHREN_Msk /*!< ISO IN endpoint threshold enable */
  22194. #define USB_OTG_DTHRCTL_TXTHRLEN_Pos (2U)
  22195. #define USB_OTG_DTHRCTL_TXTHRLEN_Msk (0x1FFU << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x000007FC */
  22196. #define USB_OTG_DTHRCTL_TXTHRLEN USB_OTG_DTHRCTL_TXTHRLEN_Msk /*!< Transmit threshold length */
  22197. #define USB_OTG_DTHRCTL_TXTHRLEN_0 (0x001U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000004 */
  22198. #define USB_OTG_DTHRCTL_TXTHRLEN_1 (0x002U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000008 */
  22199. #define USB_OTG_DTHRCTL_TXTHRLEN_2 (0x004U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000010 */
  22200. #define USB_OTG_DTHRCTL_TXTHRLEN_3 (0x008U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000020 */
  22201. #define USB_OTG_DTHRCTL_TXTHRLEN_4 (0x010U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000040 */
  22202. #define USB_OTG_DTHRCTL_TXTHRLEN_5 (0x020U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000080 */
  22203. #define USB_OTG_DTHRCTL_TXTHRLEN_6 (0x040U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000100 */
  22204. #define USB_OTG_DTHRCTL_TXTHRLEN_7 (0x080U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000200 */
  22205. #define USB_OTG_DTHRCTL_TXTHRLEN_8 (0x100U << USB_OTG_DTHRCTL_TXTHRLEN_Pos) /*!< 0x00000400 */
  22206. #define USB_OTG_DTHRCTL_RXTHREN_Pos (16U)
  22207. #define USB_OTG_DTHRCTL_RXTHREN_Msk (0x1U << USB_OTG_DTHRCTL_RXTHREN_Pos) /*!< 0x00010000 */
  22208. #define USB_OTG_DTHRCTL_RXTHREN USB_OTG_DTHRCTL_RXTHREN_Msk /*!< Receive threshold enable */
  22209. #define USB_OTG_DTHRCTL_RXTHRLEN_Pos (17U)
  22210. #define USB_OTG_DTHRCTL_RXTHRLEN_Msk (0x1FFU << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x03FE0000 */
  22211. #define USB_OTG_DTHRCTL_RXTHRLEN USB_OTG_DTHRCTL_RXTHRLEN_Msk /*!< Receive threshold length */
  22212. #define USB_OTG_DTHRCTL_RXTHRLEN_0 (0x001U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00020000 */
  22213. #define USB_OTG_DTHRCTL_RXTHRLEN_1 (0x002U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00040000 */
  22214. #define USB_OTG_DTHRCTL_RXTHRLEN_2 (0x004U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00080000 */
  22215. #define USB_OTG_DTHRCTL_RXTHRLEN_3 (0x008U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00100000 */
  22216. #define USB_OTG_DTHRCTL_RXTHRLEN_4 (0x010U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00200000 */
  22217. #define USB_OTG_DTHRCTL_RXTHRLEN_5 (0x020U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00400000 */
  22218. #define USB_OTG_DTHRCTL_RXTHRLEN_6 (0x040U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x00800000 */
  22219. #define USB_OTG_DTHRCTL_RXTHRLEN_7 (0x080U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x01000000 */
  22220. #define USB_OTG_DTHRCTL_RXTHRLEN_8 (0x100U << USB_OTG_DTHRCTL_RXTHRLEN_Pos) /*!< 0x02000000 */
  22221. #define USB_OTG_DTHRCTL_ARPEN_Pos (27U)
  22222. #define USB_OTG_DTHRCTL_ARPEN_Msk (0x1U << USB_OTG_DTHRCTL_ARPEN_Pos) /*!< 0x08000000 */
  22223. #define USB_OTG_DTHRCTL_ARPEN USB_OTG_DTHRCTL_ARPEN_Msk /*!< Arbiter parking enable */
  22224. /******************** Bit definition forUSB_OTG_DIEPEMPMSK register ********************/
  22225. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos (0U)
  22226. #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk (0xFFFFU << USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos) /*!< 0x0000FFFF */
  22227. #define USB_OTG_DIEPEMPMSK_INEPTXFEM USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk /*!< IN EP Tx FIFO empty interrupt mask bits */
  22228. /******************** Bit definition forUSB_OTG_DEACHINT register ********************/
  22229. #define USB_OTG_DEACHINT_IEP1INT_Pos (1U)
  22230. #define USB_OTG_DEACHINT_IEP1INT_Msk (0x1U << USB_OTG_DEACHINT_IEP1INT_Pos) /*!< 0x00000002 */
  22231. #define USB_OTG_DEACHINT_IEP1INT USB_OTG_DEACHINT_IEP1INT_Msk /*!< IN endpoint 1interrupt bit */
  22232. #define USB_OTG_DEACHINT_OEP1INT_Pos (17U)
  22233. #define USB_OTG_DEACHINT_OEP1INT_Msk (0x1U << USB_OTG_DEACHINT_OEP1INT_Pos) /*!< 0x00020000 */
  22234. #define USB_OTG_DEACHINT_OEP1INT USB_OTG_DEACHINT_OEP1INT_Msk /*!< OUT endpoint 1 interrupt bit */
  22235. /******************** Bit definition forUSB_OTG_GCCFG register ********************/
  22236. #define USB_OTG_GCCFG_DCDET_Pos (0U)
  22237. #define USB_OTG_GCCFG_DCDET_Msk (0x1U << USB_OTG_GCCFG_DCDET_Pos) /*!< 0x00000001 */
  22238. #define USB_OTG_GCCFG_DCDET USB_OTG_GCCFG_DCDET_Msk /*!< Data contact detection (DCD) status */
  22239. #define USB_OTG_GCCFG_PDET_Pos (1U)
  22240. #define USB_OTG_GCCFG_PDET_Msk (0x1U << USB_OTG_GCCFG_PDET_Pos) /*!< 0x00000002 */
  22241. #define USB_OTG_GCCFG_PDET USB_OTG_GCCFG_PDET_Msk /*!< Primary detection (PD) status */
  22242. #define USB_OTG_GCCFG_SDET_Pos (2U)
  22243. #define USB_OTG_GCCFG_SDET_Msk (0x1U << USB_OTG_GCCFG_SDET_Pos) /*!< 0x00000004 */
  22244. #define USB_OTG_GCCFG_SDET USB_OTG_GCCFG_SDET_Msk /*!< Secondary detection (SD) status */
  22245. #define USB_OTG_GCCFG_PS2DET_Pos (3U)
  22246. #define USB_OTG_GCCFG_PS2DET_Msk (0x1U << USB_OTG_GCCFG_PS2DET_Pos) /*!< 0x00000008 */
  22247. #define USB_OTG_GCCFG_PS2DET USB_OTG_GCCFG_PS2DET_Msk /*!< DM pull-up detection status */
  22248. #define USB_OTG_GCCFG_PWRDWN_Pos (16U)
  22249. #define USB_OTG_GCCFG_PWRDWN_Msk (0x1U << USB_OTG_GCCFG_PWRDWN_Pos) /*!< 0x00010000 */
  22250. #define USB_OTG_GCCFG_PWRDWN USB_OTG_GCCFG_PWRDWN_Msk /*!< Power down */
  22251. #define USB_OTG_GCCFG_BCDEN_Pos (17U)
  22252. #define USB_OTG_GCCFG_BCDEN_Msk (0x1U << USB_OTG_GCCFG_BCDEN_Pos) /*!< 0x00020000 */
  22253. #define USB_OTG_GCCFG_BCDEN USB_OTG_GCCFG_BCDEN_Msk /*!< Battery charging detector (BCD) enable */
  22254. #define USB_OTG_GCCFG_DCDEN_Pos (18U)
  22255. #define USB_OTG_GCCFG_DCDEN_Msk (0x1U << USB_OTG_GCCFG_DCDEN_Pos) /*!< 0x00040000 */
  22256. #define USB_OTG_GCCFG_DCDEN USB_OTG_GCCFG_DCDEN_Msk /*!< Data contact detection (DCD) mode enable*/
  22257. #define USB_OTG_GCCFG_PDEN_Pos (19U)
  22258. #define USB_OTG_GCCFG_PDEN_Msk (0x1U << USB_OTG_GCCFG_PDEN_Pos) /*!< 0x00080000 */
  22259. #define USB_OTG_GCCFG_PDEN USB_OTG_GCCFG_PDEN_Msk /*!< Primary detection (PD) mode enable*/
  22260. #define USB_OTG_GCCFG_SDEN_Pos (20U)
  22261. #define USB_OTG_GCCFG_SDEN_Msk (0x1U << USB_OTG_GCCFG_SDEN_Pos) /*!< 0x00100000 */
  22262. #define USB_OTG_GCCFG_SDEN USB_OTG_GCCFG_SDEN_Msk /*!< Secondary detection (SD) mode enable */
  22263. #define USB_OTG_GCCFG_VBDEN_Pos (21U)
  22264. #define USB_OTG_GCCFG_VBDEN_Msk (0x1U << USB_OTG_GCCFG_VBDEN_Pos) /*!< 0x00200000 */
  22265. #define USB_OTG_GCCFG_VBDEN USB_OTG_GCCFG_VBDEN_Msk /*!< Secondary detection (SD) mode enable */
  22266. /******************** Bit definition forUSB_OTG_GPWRDN) register ********************/
  22267. #define USB_OTG_GPWRDN_ADPMEN_Pos (0U)
  22268. #define USB_OTG_GPWRDN_ADPMEN_Msk (0x1U << USB_OTG_GPWRDN_ADPMEN_Pos) /*!< 0x00000001 */
  22269. #define USB_OTG_GPWRDN_ADPMEN USB_OTG_GPWRDN_ADPMEN_Msk /*!< ADP module enable */
  22270. #define USB_OTG_GPWRDN_ADPIF_Pos (23U)
  22271. #define USB_OTG_GPWRDN_ADPIF_Msk (0x1U << USB_OTG_GPWRDN_ADPIF_Pos) /*!< 0x00800000 */
  22272. #define USB_OTG_GPWRDN_ADPIF USB_OTG_GPWRDN_ADPIF_Msk /*!< ADP Interrupt flag */
  22273. /******************** Bit definition forUSB_OTG_DEACHINTMSK register ********************/
  22274. #define USB_OTG_DEACHINTMSK_IEP1INTM_Pos (1U)
  22275. #define USB_OTG_DEACHINTMSK_IEP1INTM_Msk (0x1U << USB_OTG_DEACHINTMSK_IEP1INTM_Pos) /*!< 0x00000002 */
  22276. #define USB_OTG_DEACHINTMSK_IEP1INTM USB_OTG_DEACHINTMSK_IEP1INTM_Msk /*!< IN Endpoint 1 interrupt mask bit */
  22277. #define USB_OTG_DEACHINTMSK_OEP1INTM_Pos (17U)
  22278. #define USB_OTG_DEACHINTMSK_OEP1INTM_Msk (0x1U << USB_OTG_DEACHINTMSK_OEP1INTM_Pos) /*!< 0x00020000 */
  22279. #define USB_OTG_DEACHINTMSK_OEP1INTM USB_OTG_DEACHINTMSK_OEP1INTM_Msk /*!< OUT Endpoint 1 interrupt mask bit */
  22280. /******************** Bit definition forUSB_OTG_CID register ********************/
  22281. #define USB_OTG_CID_PRODUCT_ID_Pos (0U)
  22282. #define USB_OTG_CID_PRODUCT_ID_Msk (0xFFFFFFFFU << USB_OTG_CID_PRODUCT_ID_Pos) /*!< 0xFFFFFFFF */
  22283. #define USB_OTG_CID_PRODUCT_ID USB_OTG_CID_PRODUCT_ID_Msk /*!< Product ID field */
  22284. /******************** Bit definition for USB_OTG_GLPMCFG register ********************/
  22285. #define USB_OTG_GLPMCFG_LPMEN_Pos (0U)
  22286. #define USB_OTG_GLPMCFG_LPMEN_Msk (0x1U << USB_OTG_GLPMCFG_LPMEN_Pos) /*!< 0x00000001 */
  22287. #define USB_OTG_GLPMCFG_LPMEN USB_OTG_GLPMCFG_LPMEN_Msk /*!< LPM support enable */
  22288. #define USB_OTG_GLPMCFG_LPMACK_Pos (1U)
  22289. #define USB_OTG_GLPMCFG_LPMACK_Msk (0x1U << USB_OTG_GLPMCFG_LPMACK_Pos) /*!< 0x00000002 */
  22290. #define USB_OTG_GLPMCFG_LPMACK USB_OTG_GLPMCFG_LPMACK_Msk /*!< LPM Token acknowledge enable */
  22291. #define USB_OTG_GLPMCFG_BESL_Pos (2U)
  22292. #define USB_OTG_GLPMCFG_BESL_Msk (0xFU << USB_OTG_GLPMCFG_BESL_Pos) /*!< 0x0000003C */
  22293. #define USB_OTG_GLPMCFG_BESL USB_OTG_GLPMCFG_BESL_Msk /*!< BESL value received with last ACKed LPM Token */
  22294. #define USB_OTG_GLPMCFG_REMWAKE_Pos (6U)
  22295. #define USB_OTG_GLPMCFG_REMWAKE_Msk (0x1U << USB_OTG_GLPMCFG_REMWAKE_Pos) /*!< 0x00000040 */
  22296. #define USB_OTG_GLPMCFG_REMWAKE USB_OTG_GLPMCFG_REMWAKE_Msk /*!< bRemoteWake value received with last ACKed LPM Token */
  22297. #define USB_OTG_GLPMCFG_L1SSEN_Pos (7U)
  22298. #define USB_OTG_GLPMCFG_L1SSEN_Msk (0x1U << USB_OTG_GLPMCFG_L1SSEN_Pos) /*!< 0x00000080 */
  22299. #define USB_OTG_GLPMCFG_L1SSEN USB_OTG_GLPMCFG_L1SSEN_Msk /*!< L1 shallow sleep enable */
  22300. #define USB_OTG_GLPMCFG_BESLTHRS_Pos (8U)
  22301. #define USB_OTG_GLPMCFG_BESLTHRS_Msk (0xFU << USB_OTG_GLPMCFG_BESLTHRS_Pos) /*!< 0x00000F00 */
  22302. #define USB_OTG_GLPMCFG_BESLTHRS USB_OTG_GLPMCFG_BESLTHRS_Msk /*!< BESL threshold */
  22303. #define USB_OTG_GLPMCFG_L1DSEN_Pos (12U)
  22304. #define USB_OTG_GLPMCFG_L1DSEN_Msk (0x1U << USB_OTG_GLPMCFG_L1DSEN_Pos) /*!< 0x00001000 */
  22305. #define USB_OTG_GLPMCFG_L1DSEN USB_OTG_GLPMCFG_L1DSEN_Msk /*!< L1 deep sleep enable */
  22306. #define USB_OTG_GLPMCFG_LPMRSP_Pos (13U)
  22307. #define USB_OTG_GLPMCFG_LPMRSP_Msk (0x3U << USB_OTG_GLPMCFG_LPMRSP_Pos) /*!< 0x00006000 */
  22308. #define USB_OTG_GLPMCFG_LPMRSP USB_OTG_GLPMCFG_LPMRSP_Msk /*!< LPM response */
  22309. #define USB_OTG_GLPMCFG_SLPSTS_Pos (15U)
  22310. #define USB_OTG_GLPMCFG_SLPSTS_Msk (0x1U << USB_OTG_GLPMCFG_SLPSTS_Pos) /*!< 0x00008000 */
  22311. #define USB_OTG_GLPMCFG_SLPSTS USB_OTG_GLPMCFG_SLPSTS_Msk /*!< Port sleep status */
  22312. #define USB_OTG_GLPMCFG_L1RSMOK_Pos (16U)
  22313. #define USB_OTG_GLPMCFG_L1RSMOK_Msk (0x1U << USB_OTG_GLPMCFG_L1RSMOK_Pos) /*!< 0x00010000 */
  22314. #define USB_OTG_GLPMCFG_L1RSMOK USB_OTG_GLPMCFG_L1RSMOK_Msk /*!< Sleep State Resume OK */
  22315. #define USB_OTG_GLPMCFG_LPMCHIDX_Pos (17U)
  22316. #define USB_OTG_GLPMCFG_LPMCHIDX_Msk (0xFU << USB_OTG_GLPMCFG_LPMCHIDX_Pos) /*!< 0x001E0000 */
  22317. #define USB_OTG_GLPMCFG_LPMCHIDX USB_OTG_GLPMCFG_LPMCHIDX_Msk /*!< LPM Channel Index */
  22318. #define USB_OTG_GLPMCFG_LPMRCNT_Pos (21U)
  22319. #define USB_OTG_GLPMCFG_LPMRCNT_Msk (0x7U << USB_OTG_GLPMCFG_LPMRCNT_Pos) /*!< 0x00E00000 */
  22320. #define USB_OTG_GLPMCFG_LPMRCNT USB_OTG_GLPMCFG_LPMRCNT_Msk /*!< LPM retry count */
  22321. #define USB_OTG_GLPMCFG_SNDLPM_Pos (24U)
  22322. #define USB_OTG_GLPMCFG_SNDLPM_Msk (0x1U << USB_OTG_GLPMCFG_SNDLPM_Pos) /*!< 0x01000000 */
  22323. #define USB_OTG_GLPMCFG_SNDLPM USB_OTG_GLPMCFG_SNDLPM_Msk /*!< Send LPM transaction */
  22324. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Pos (25U)
  22325. #define USB_OTG_GLPMCFG_LPMRCNTSTS_Msk (0x7U << USB_OTG_GLPMCFG_LPMRCNTSTS_Pos) /*!< 0x0E000000 */
  22326. #define USB_OTG_GLPMCFG_LPMRCNTSTS USB_OTG_GLPMCFG_LPMRCNTSTS_Msk /*!< LPM retry count status */
  22327. #define USB_OTG_GLPMCFG_ENBESL_Pos (28U)
  22328. #define USB_OTG_GLPMCFG_ENBESL_Msk (0x1U << USB_OTG_GLPMCFG_ENBESL_Pos) /*!< 0x10000000 */
  22329. #define USB_OTG_GLPMCFG_ENBESL USB_OTG_GLPMCFG_ENBESL_Msk /*!< Enable best effort service latency */
  22330. /******************** Bit definition forUSB_OTG_DIEPEACHMSK1 register ********************/
  22331. #define USB_OTG_DIEPEACHMSK1_XFRCM_Pos (0U)
  22332. #define USB_OTG_DIEPEACHMSK1_XFRCM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  22333. #define USB_OTG_DIEPEACHMSK1_XFRCM USB_OTG_DIEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22334. #define USB_OTG_DIEPEACHMSK1_EPDM_Pos (1U)
  22335. #define USB_OTG_DIEPEACHMSK1_EPDM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  22336. #define USB_OTG_DIEPEACHMSK1_EPDM USB_OTG_DIEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22337. #define USB_OTG_DIEPEACHMSK1_TOM_Pos (3U)
  22338. #define USB_OTG_DIEPEACHMSK1_TOM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  22339. #define USB_OTG_DIEPEACHMSK1_TOM USB_OTG_DIEPEACHMSK1_TOM_Msk /*!< Timeout condition mask (nonisochronous endpoints) */
  22340. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos (4U)
  22341. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk (0x1U << USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  22342. #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  22343. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Pos (5U)
  22344. #define USB_OTG_DIEPEACHMSK1_INEPNMM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  22345. #define USB_OTG_DIEPEACHMSK1_INEPNMM USB_OTG_DIEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  22346. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Pos (6U)
  22347. #define USB_OTG_DIEPEACHMSK1_INEPNEM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  22348. #define USB_OTG_DIEPEACHMSK1_INEPNEM USB_OTG_DIEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  22349. #define USB_OTG_DIEPEACHMSK1_TXFURM_Pos (8U)
  22350. #define USB_OTG_DIEPEACHMSK1_TXFURM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  22351. #define USB_OTG_DIEPEACHMSK1_TXFURM USB_OTG_DIEPEACHMSK1_TXFURM_Msk /*!< FIFO underrun mask */
  22352. #define USB_OTG_DIEPEACHMSK1_BIM_Pos (9U)
  22353. #define USB_OTG_DIEPEACHMSK1_BIM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  22354. #define USB_OTG_DIEPEACHMSK1_BIM USB_OTG_DIEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  22355. #define USB_OTG_DIEPEACHMSK1_NAKM_Pos (13U)
  22356. #define USB_OTG_DIEPEACHMSK1_NAKM_Msk (0x1U << USB_OTG_DIEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  22357. #define USB_OTG_DIEPEACHMSK1_NAKM USB_OTG_DIEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  22358. /******************** Bit definition forUSB_OTG_HPRT register ********************/
  22359. #define USB_OTG_HPRT_PCSTS_Pos (0U)
  22360. #define USB_OTG_HPRT_PCSTS_Msk (0x1U << USB_OTG_HPRT_PCSTS_Pos) /*!< 0x00000001 */
  22361. #define USB_OTG_HPRT_PCSTS USB_OTG_HPRT_PCSTS_Msk /*!< Port connect status */
  22362. #define USB_OTG_HPRT_PCDET_Pos (1U)
  22363. #define USB_OTG_HPRT_PCDET_Msk (0x1U << USB_OTG_HPRT_PCDET_Pos) /*!< 0x00000002 */
  22364. #define USB_OTG_HPRT_PCDET USB_OTG_HPRT_PCDET_Msk /*!< Port connect detected */
  22365. #define USB_OTG_HPRT_PENA_Pos (2U)
  22366. #define USB_OTG_HPRT_PENA_Msk (0x1U << USB_OTG_HPRT_PENA_Pos) /*!< 0x00000004 */
  22367. #define USB_OTG_HPRT_PENA USB_OTG_HPRT_PENA_Msk /*!< Port enable */
  22368. #define USB_OTG_HPRT_PENCHNG_Pos (3U)
  22369. #define USB_OTG_HPRT_PENCHNG_Msk (0x1U << USB_OTG_HPRT_PENCHNG_Pos) /*!< 0x00000008 */
  22370. #define USB_OTG_HPRT_PENCHNG USB_OTG_HPRT_PENCHNG_Msk /*!< Port enable/disable change */
  22371. #define USB_OTG_HPRT_POCA_Pos (4U)
  22372. #define USB_OTG_HPRT_POCA_Msk (0x1U << USB_OTG_HPRT_POCA_Pos) /*!< 0x00000010 */
  22373. #define USB_OTG_HPRT_POCA USB_OTG_HPRT_POCA_Msk /*!< Port overcurrent active */
  22374. #define USB_OTG_HPRT_POCCHNG_Pos (5U)
  22375. #define USB_OTG_HPRT_POCCHNG_Msk (0x1U << USB_OTG_HPRT_POCCHNG_Pos) /*!< 0x00000020 */
  22376. #define USB_OTG_HPRT_POCCHNG USB_OTG_HPRT_POCCHNG_Msk /*!< Port overcurrent change */
  22377. #define USB_OTG_HPRT_PRES_Pos (6U)
  22378. #define USB_OTG_HPRT_PRES_Msk (0x1U << USB_OTG_HPRT_PRES_Pos) /*!< 0x00000040 */
  22379. #define USB_OTG_HPRT_PRES USB_OTG_HPRT_PRES_Msk /*!< Port resume */
  22380. #define USB_OTG_HPRT_PSUSP_Pos (7U)
  22381. #define USB_OTG_HPRT_PSUSP_Msk (0x1U << USB_OTG_HPRT_PSUSP_Pos) /*!< 0x00000080 */
  22382. #define USB_OTG_HPRT_PSUSP USB_OTG_HPRT_PSUSP_Msk /*!< Port suspend */
  22383. #define USB_OTG_HPRT_PRST_Pos (8U)
  22384. #define USB_OTG_HPRT_PRST_Msk (0x1U << USB_OTG_HPRT_PRST_Pos) /*!< 0x00000100 */
  22385. #define USB_OTG_HPRT_PRST USB_OTG_HPRT_PRST_Msk /*!< Port reset */
  22386. #define USB_OTG_HPRT_PLSTS_Pos (10U)
  22387. #define USB_OTG_HPRT_PLSTS_Msk (0x3U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000C00 */
  22388. #define USB_OTG_HPRT_PLSTS USB_OTG_HPRT_PLSTS_Msk /*!< Port line status */
  22389. #define USB_OTG_HPRT_PLSTS_0 (0x1U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000400 */
  22390. #define USB_OTG_HPRT_PLSTS_1 (0x2U << USB_OTG_HPRT_PLSTS_Pos) /*!< 0x00000800 */
  22391. #define USB_OTG_HPRT_PPWR_Pos (12U)
  22392. #define USB_OTG_HPRT_PPWR_Msk (0x1U << USB_OTG_HPRT_PPWR_Pos) /*!< 0x00001000 */
  22393. #define USB_OTG_HPRT_PPWR USB_OTG_HPRT_PPWR_Msk /*!< Port power */
  22394. #define USB_OTG_HPRT_PTCTL_Pos (13U)
  22395. #define USB_OTG_HPRT_PTCTL_Msk (0xFU << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x0001E000 */
  22396. #define USB_OTG_HPRT_PTCTL USB_OTG_HPRT_PTCTL_Msk /*!< Port test control */
  22397. #define USB_OTG_HPRT_PTCTL_0 (0x1U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00002000 */
  22398. #define USB_OTG_HPRT_PTCTL_1 (0x2U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00004000 */
  22399. #define USB_OTG_HPRT_PTCTL_2 (0x4U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00008000 */
  22400. #define USB_OTG_HPRT_PTCTL_3 (0x8U << USB_OTG_HPRT_PTCTL_Pos) /*!< 0x00010000 */
  22401. #define USB_OTG_HPRT_PSPD_Pos (17U)
  22402. #define USB_OTG_HPRT_PSPD_Msk (0x3U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00060000 */
  22403. #define USB_OTG_HPRT_PSPD USB_OTG_HPRT_PSPD_Msk /*!< Port speed */
  22404. #define USB_OTG_HPRT_PSPD_0 (0x1U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00020000 */
  22405. #define USB_OTG_HPRT_PSPD_1 (0x2U << USB_OTG_HPRT_PSPD_Pos) /*!< 0x00040000 */
  22406. /******************** Bit definition forUSB_OTG_DOEPEACHMSK1 register ********************/
  22407. #define USB_OTG_DOEPEACHMSK1_XFRCM_Pos (0U)
  22408. #define USB_OTG_DOEPEACHMSK1_XFRCM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_XFRCM_Pos) /*!< 0x00000001 */
  22409. #define USB_OTG_DOEPEACHMSK1_XFRCM USB_OTG_DOEPEACHMSK1_XFRCM_Msk /*!< Transfer completed interrupt mask */
  22410. #define USB_OTG_DOEPEACHMSK1_EPDM_Pos (1U)
  22411. #define USB_OTG_DOEPEACHMSK1_EPDM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_EPDM_Pos) /*!< 0x00000002 */
  22412. #define USB_OTG_DOEPEACHMSK1_EPDM USB_OTG_DOEPEACHMSK1_EPDM_Msk /*!< Endpoint disabled interrupt mask */
  22413. #define USB_OTG_DOEPEACHMSK1_TOM_Pos (3U)
  22414. #define USB_OTG_DOEPEACHMSK1_TOM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_TOM_Pos) /*!< 0x00000008 */
  22415. #define USB_OTG_DOEPEACHMSK1_TOM USB_OTG_DOEPEACHMSK1_TOM_Msk /*!< Timeout condition mask */
  22416. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos (4U)
  22417. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk (0x1U << USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
  22418. #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk /*!< IN token received when TxFIFO empty mask */
  22419. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Pos (5U)
  22420. #define USB_OTG_DOEPEACHMSK1_INEPNMM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_INEPNMM_Pos) /*!< 0x00000020 */
  22421. #define USB_OTG_DOEPEACHMSK1_INEPNMM USB_OTG_DOEPEACHMSK1_INEPNMM_Msk /*!< IN token received with EP mismatch mask */
  22422. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Pos (6U)
  22423. #define USB_OTG_DOEPEACHMSK1_INEPNEM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_INEPNEM_Pos) /*!< 0x00000040 */
  22424. #define USB_OTG_DOEPEACHMSK1_INEPNEM USB_OTG_DOEPEACHMSK1_INEPNEM_Msk /*!< IN endpoint NAK effective mask */
  22425. #define USB_OTG_DOEPEACHMSK1_TXFURM_Pos (8U)
  22426. #define USB_OTG_DOEPEACHMSK1_TXFURM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_TXFURM_Pos) /*!< 0x00000100 */
  22427. #define USB_OTG_DOEPEACHMSK1_TXFURM USB_OTG_DOEPEACHMSK1_TXFURM_Msk /*!< OUT packet error mask */
  22428. #define USB_OTG_DOEPEACHMSK1_BIM_Pos (9U)
  22429. #define USB_OTG_DOEPEACHMSK1_BIM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_BIM_Pos) /*!< 0x00000200 */
  22430. #define USB_OTG_DOEPEACHMSK1_BIM USB_OTG_DOEPEACHMSK1_BIM_Msk /*!< BNA interrupt mask */
  22431. #define USB_OTG_DOEPEACHMSK1_BERRM_Pos (12U)
  22432. #define USB_OTG_DOEPEACHMSK1_BERRM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_BERRM_Pos) /*!< 0x00001000 */
  22433. #define USB_OTG_DOEPEACHMSK1_BERRM USB_OTG_DOEPEACHMSK1_BERRM_Msk /*!< Bubble error interrupt mask */
  22434. #define USB_OTG_DOEPEACHMSK1_NAKM_Pos (13U)
  22435. #define USB_OTG_DOEPEACHMSK1_NAKM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_NAKM_Pos) /*!< 0x00002000 */
  22436. #define USB_OTG_DOEPEACHMSK1_NAKM USB_OTG_DOEPEACHMSK1_NAKM_Msk /*!< NAK interrupt mask */
  22437. #define USB_OTG_DOEPEACHMSK1_NYETM_Pos (14U)
  22438. #define USB_OTG_DOEPEACHMSK1_NYETM_Msk (0x1U << USB_OTG_DOEPEACHMSK1_NYETM_Pos) /*!< 0x00004000 */
  22439. #define USB_OTG_DOEPEACHMSK1_NYETM USB_OTG_DOEPEACHMSK1_NYETM_Msk /*!< NYET interrupt mask */
  22440. /******************** Bit definition forUSB_OTG_HPTXFSIZ register ********************/
  22441. #define USB_OTG_HPTXFSIZ_PTXSA_Pos (0U)
  22442. #define USB_OTG_HPTXFSIZ_PTXSA_Msk (0xFFFFU << USB_OTG_HPTXFSIZ_PTXSA_Pos) /*!< 0x0000FFFF */
  22443. #define USB_OTG_HPTXFSIZ_PTXSA USB_OTG_HPTXFSIZ_PTXSA_Msk /*!< Host periodic TxFIFO start address */
  22444. #define USB_OTG_HPTXFSIZ_PTXFD_Pos (16U)
  22445. #define USB_OTG_HPTXFSIZ_PTXFD_Msk (0xFFFFU << USB_OTG_HPTXFSIZ_PTXFD_Pos) /*!< 0xFFFF0000 */
  22446. #define USB_OTG_HPTXFSIZ_PTXFD USB_OTG_HPTXFSIZ_PTXFD_Msk /*!< Host periodic TxFIFO depth */
  22447. /******************** Bit definition forUSB_OTG_DIEPCTL register ********************/
  22448. #define USB_OTG_DIEPCTL_MPSIZ_Pos (0U)
  22449. #define USB_OTG_DIEPCTL_MPSIZ_Msk (0x7FFU << USB_OTG_DIEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  22450. #define USB_OTG_DIEPCTL_MPSIZ USB_OTG_DIEPCTL_MPSIZ_Msk /*!< Maximum packet size */
  22451. #define USB_OTG_DIEPCTL_USBAEP_Pos (15U)
  22452. #define USB_OTG_DIEPCTL_USBAEP_Msk (0x1U << USB_OTG_DIEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  22453. #define USB_OTG_DIEPCTL_USBAEP USB_OTG_DIEPCTL_USBAEP_Msk /*!< USB active endpoint */
  22454. #define USB_OTG_DIEPCTL_EONUM_DPID_Pos (16U)
  22455. #define USB_OTG_DIEPCTL_EONUM_DPID_Msk (0x1U << USB_OTG_DIEPCTL_EONUM_DPID_Pos) /*!< 0x00010000 */
  22456. #define USB_OTG_DIEPCTL_EONUM_DPID USB_OTG_DIEPCTL_EONUM_DPID_Msk /*!< Even/odd frame */
  22457. #define USB_OTG_DIEPCTL_NAKSTS_Pos (17U)
  22458. #define USB_OTG_DIEPCTL_NAKSTS_Msk (0x1U << USB_OTG_DIEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  22459. #define USB_OTG_DIEPCTL_NAKSTS USB_OTG_DIEPCTL_NAKSTS_Msk /*!< NAK status */
  22460. #define USB_OTG_DIEPCTL_EPTYP_Pos (18U)
  22461. #define USB_OTG_DIEPCTL_EPTYP_Msk (0x3U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  22462. #define USB_OTG_DIEPCTL_EPTYP USB_OTG_DIEPCTL_EPTYP_Msk /*!< Endpoint type */
  22463. #define USB_OTG_DIEPCTL_EPTYP_0 (0x1U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  22464. #define USB_OTG_DIEPCTL_EPTYP_1 (0x2U << USB_OTG_DIEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  22465. #define USB_OTG_DIEPCTL_STALL_Pos (21U)
  22466. #define USB_OTG_DIEPCTL_STALL_Msk (0x1U << USB_OTG_DIEPCTL_STALL_Pos) /*!< 0x00200000 */
  22467. #define USB_OTG_DIEPCTL_STALL USB_OTG_DIEPCTL_STALL_Msk /*!< STALL handshake */
  22468. #define USB_OTG_DIEPCTL_TXFNUM_Pos (22U)
  22469. #define USB_OTG_DIEPCTL_TXFNUM_Msk (0xFU << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x03C00000 */
  22470. #define USB_OTG_DIEPCTL_TXFNUM USB_OTG_DIEPCTL_TXFNUM_Msk /*!< TxFIFO number */
  22471. #define USB_OTG_DIEPCTL_TXFNUM_0 (0x1U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00400000 */
  22472. #define USB_OTG_DIEPCTL_TXFNUM_1 (0x2U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x00800000 */
  22473. #define USB_OTG_DIEPCTL_TXFNUM_2 (0x4U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x01000000 */
  22474. #define USB_OTG_DIEPCTL_TXFNUM_3 (0x8U << USB_OTG_DIEPCTL_TXFNUM_Pos) /*!< 0x02000000 */
  22475. #define USB_OTG_DIEPCTL_CNAK_Pos (26U)
  22476. #define USB_OTG_DIEPCTL_CNAK_Msk (0x1U << USB_OTG_DIEPCTL_CNAK_Pos) /*!< 0x04000000 */
  22477. #define USB_OTG_DIEPCTL_CNAK USB_OTG_DIEPCTL_CNAK_Msk /*!< Clear NAK */
  22478. #define USB_OTG_DIEPCTL_SNAK_Pos (27U)
  22479. #define USB_OTG_DIEPCTL_SNAK_Msk (0x1U << USB_OTG_DIEPCTL_SNAK_Pos) /*!< 0x08000000 */
  22480. #define USB_OTG_DIEPCTL_SNAK USB_OTG_DIEPCTL_SNAK_Msk /*!< Set NAK */
  22481. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos (28U)
  22482. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk (0x1U << USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  22483. #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  22484. #define USB_OTG_DIEPCTL_SODDFRM_Pos (29U)
  22485. #define USB_OTG_DIEPCTL_SODDFRM_Msk (0x1U << USB_OTG_DIEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  22486. #define USB_OTG_DIEPCTL_SODDFRM USB_OTG_DIEPCTL_SODDFRM_Msk /*!< Set odd frame */
  22487. #define USB_OTG_DIEPCTL_EPDIS_Pos (30U)
  22488. #define USB_OTG_DIEPCTL_EPDIS_Msk (0x1U << USB_OTG_DIEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  22489. #define USB_OTG_DIEPCTL_EPDIS USB_OTG_DIEPCTL_EPDIS_Msk /*!< Endpoint disable */
  22490. #define USB_OTG_DIEPCTL_EPENA_Pos (31U)
  22491. #define USB_OTG_DIEPCTL_EPENA_Msk (0x1U << USB_OTG_DIEPCTL_EPENA_Pos) /*!< 0x80000000 */
  22492. #define USB_OTG_DIEPCTL_EPENA USB_OTG_DIEPCTL_EPENA_Msk /*!< Endpoint enable */
  22493. /******************** Bit definition forUSB_OTG_HCCHAR register ********************/
  22494. #define USB_OTG_HCCHAR_MPSIZ_Pos (0U)
  22495. #define USB_OTG_HCCHAR_MPSIZ_Msk (0x7FFU << USB_OTG_HCCHAR_MPSIZ_Pos) /*!< 0x000007FF */
  22496. #define USB_OTG_HCCHAR_MPSIZ USB_OTG_HCCHAR_MPSIZ_Msk /*!< Maximum packet size */
  22497. #define USB_OTG_HCCHAR_EPNUM_Pos (11U)
  22498. #define USB_OTG_HCCHAR_EPNUM_Msk (0xFU << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00007800 */
  22499. #define USB_OTG_HCCHAR_EPNUM USB_OTG_HCCHAR_EPNUM_Msk /*!< Endpoint number */
  22500. #define USB_OTG_HCCHAR_EPNUM_0 (0x1U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00000800 */
  22501. #define USB_OTG_HCCHAR_EPNUM_1 (0x2U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00001000 */
  22502. #define USB_OTG_HCCHAR_EPNUM_2 (0x4U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00002000 */
  22503. #define USB_OTG_HCCHAR_EPNUM_3 (0x8U << USB_OTG_HCCHAR_EPNUM_Pos) /*!< 0x00004000 */
  22504. #define USB_OTG_HCCHAR_EPDIR_Pos (15U)
  22505. #define USB_OTG_HCCHAR_EPDIR_Msk (0x1U << USB_OTG_HCCHAR_EPDIR_Pos) /*!< 0x00008000 */
  22506. #define USB_OTG_HCCHAR_EPDIR USB_OTG_HCCHAR_EPDIR_Msk /*!< Endpoint direction */
  22507. #define USB_OTG_HCCHAR_LSDEV_Pos (17U)
  22508. #define USB_OTG_HCCHAR_LSDEV_Msk (0x1U << USB_OTG_HCCHAR_LSDEV_Pos) /*!< 0x00020000 */
  22509. #define USB_OTG_HCCHAR_LSDEV USB_OTG_HCCHAR_LSDEV_Msk /*!< Low-speed device */
  22510. #define USB_OTG_HCCHAR_EPTYP_Pos (18U)
  22511. #define USB_OTG_HCCHAR_EPTYP_Msk (0x3U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x000C0000 */
  22512. #define USB_OTG_HCCHAR_EPTYP USB_OTG_HCCHAR_EPTYP_Msk /*!< Endpoint type */
  22513. #define USB_OTG_HCCHAR_EPTYP_0 (0x1U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00040000 */
  22514. #define USB_OTG_HCCHAR_EPTYP_1 (0x2U << USB_OTG_HCCHAR_EPTYP_Pos) /*!< 0x00080000 */
  22515. #define USB_OTG_HCCHAR_MC_Pos (20U)
  22516. #define USB_OTG_HCCHAR_MC_Msk (0x3U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00300000 */
  22517. #define USB_OTG_HCCHAR_MC USB_OTG_HCCHAR_MC_Msk /*!< Multi Count (MC) / Error Count (EC) */
  22518. #define USB_OTG_HCCHAR_MC_0 (0x1U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00100000 */
  22519. #define USB_OTG_HCCHAR_MC_1 (0x2U << USB_OTG_HCCHAR_MC_Pos) /*!< 0x00200000 */
  22520. #define USB_OTG_HCCHAR_DAD_Pos (22U)
  22521. #define USB_OTG_HCCHAR_DAD_Msk (0x7FU << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x1FC00000 */
  22522. #define USB_OTG_HCCHAR_DAD USB_OTG_HCCHAR_DAD_Msk /*!< Device address */
  22523. #define USB_OTG_HCCHAR_DAD_0 (0x01U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00400000 */
  22524. #define USB_OTG_HCCHAR_DAD_1 (0x02U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x00800000 */
  22525. #define USB_OTG_HCCHAR_DAD_2 (0x04U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x01000000 */
  22526. #define USB_OTG_HCCHAR_DAD_3 (0x08U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x02000000 */
  22527. #define USB_OTG_HCCHAR_DAD_4 (0x10U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x04000000 */
  22528. #define USB_OTG_HCCHAR_DAD_5 (0x20U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x08000000 */
  22529. #define USB_OTG_HCCHAR_DAD_6 (0x40U << USB_OTG_HCCHAR_DAD_Pos) /*!< 0x10000000 */
  22530. #define USB_OTG_HCCHAR_ODDFRM_Pos (29U)
  22531. #define USB_OTG_HCCHAR_ODDFRM_Msk (0x1U << USB_OTG_HCCHAR_ODDFRM_Pos) /*!< 0x20000000 */
  22532. #define USB_OTG_HCCHAR_ODDFRM USB_OTG_HCCHAR_ODDFRM_Msk /*!< Odd frame */
  22533. #define USB_OTG_HCCHAR_CHDIS_Pos (30U)
  22534. #define USB_OTG_HCCHAR_CHDIS_Msk (0x1U << USB_OTG_HCCHAR_CHDIS_Pos) /*!< 0x40000000 */
  22535. #define USB_OTG_HCCHAR_CHDIS USB_OTG_HCCHAR_CHDIS_Msk /*!< Channel disable */
  22536. #define USB_OTG_HCCHAR_CHENA_Pos (31U)
  22537. #define USB_OTG_HCCHAR_CHENA_Msk (0x1U << USB_OTG_HCCHAR_CHENA_Pos) /*!< 0x80000000 */
  22538. #define USB_OTG_HCCHAR_CHENA USB_OTG_HCCHAR_CHENA_Msk /*!< Channel enable */
  22539. /******************** Bit definition forUSB_OTG_HCSPLT register ********************/
  22540. #define USB_OTG_HCSPLT_PRTADDR_Pos (0U)
  22541. #define USB_OTG_HCSPLT_PRTADDR_Msk (0x7FU << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x0000007F */
  22542. #define USB_OTG_HCSPLT_PRTADDR USB_OTG_HCSPLT_PRTADDR_Msk /*!< Port address */
  22543. #define USB_OTG_HCSPLT_PRTADDR_0 (0x01U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000001 */
  22544. #define USB_OTG_HCSPLT_PRTADDR_1 (0x02U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000002 */
  22545. #define USB_OTG_HCSPLT_PRTADDR_2 (0x04U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000004 */
  22546. #define USB_OTG_HCSPLT_PRTADDR_3 (0x08U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000008 */
  22547. #define USB_OTG_HCSPLT_PRTADDR_4 (0x10U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000010 */
  22548. #define USB_OTG_HCSPLT_PRTADDR_5 (0x20U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000020 */
  22549. #define USB_OTG_HCSPLT_PRTADDR_6 (0x40U << USB_OTG_HCSPLT_PRTADDR_Pos) /*!< 0x00000040 */
  22550. #define USB_OTG_HCSPLT_HUBADDR_Pos (7U)
  22551. #define USB_OTG_HCSPLT_HUBADDR_Msk (0x7FU << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00003F80 */
  22552. #define USB_OTG_HCSPLT_HUBADDR USB_OTG_HCSPLT_HUBADDR_Msk /*!< Hub address */
  22553. #define USB_OTG_HCSPLT_HUBADDR_0 (0x01U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000080 */
  22554. #define USB_OTG_HCSPLT_HUBADDR_1 (0x02U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000100 */
  22555. #define USB_OTG_HCSPLT_HUBADDR_2 (0x04U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000200 */
  22556. #define USB_OTG_HCSPLT_HUBADDR_3 (0x08U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000400 */
  22557. #define USB_OTG_HCSPLT_HUBADDR_4 (0x10U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00000800 */
  22558. #define USB_OTG_HCSPLT_HUBADDR_5 (0x20U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00001000 */
  22559. #define USB_OTG_HCSPLT_HUBADDR_6 (0x40U << USB_OTG_HCSPLT_HUBADDR_Pos) /*!< 0x00002000 */
  22560. #define USB_OTG_HCSPLT_XACTPOS_Pos (14U)
  22561. #define USB_OTG_HCSPLT_XACTPOS_Msk (0x3U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x0000C000 */
  22562. #define USB_OTG_HCSPLT_XACTPOS USB_OTG_HCSPLT_XACTPOS_Msk /*!< XACTPOS */
  22563. #define USB_OTG_HCSPLT_XACTPOS_0 (0x1U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00004000 */
  22564. #define USB_OTG_HCSPLT_XACTPOS_1 (0x2U << USB_OTG_HCSPLT_XACTPOS_Pos) /*!< 0x00008000 */
  22565. #define USB_OTG_HCSPLT_COMPLSPLT_Pos (16U)
  22566. #define USB_OTG_HCSPLT_COMPLSPLT_Msk (0x1U << USB_OTG_HCSPLT_COMPLSPLT_Pos) /*!< 0x00010000 */
  22567. #define USB_OTG_HCSPLT_COMPLSPLT USB_OTG_HCSPLT_COMPLSPLT_Msk /*!< Do complete split */
  22568. #define USB_OTG_HCSPLT_SPLITEN_Pos (31U)
  22569. #define USB_OTG_HCSPLT_SPLITEN_Msk (0x1U << USB_OTG_HCSPLT_SPLITEN_Pos) /*!< 0x80000000 */
  22570. #define USB_OTG_HCSPLT_SPLITEN USB_OTG_HCSPLT_SPLITEN_Msk /*!< Split enable */
  22571. /******************** Bit definition forUSB_OTG_HCINT register ********************/
  22572. #define USB_OTG_HCINT_XFRC_Pos (0U)
  22573. #define USB_OTG_HCINT_XFRC_Msk (0x1U << USB_OTG_HCINT_XFRC_Pos) /*!< 0x00000001 */
  22574. #define USB_OTG_HCINT_XFRC USB_OTG_HCINT_XFRC_Msk /*!< Transfer completed */
  22575. #define USB_OTG_HCINT_CHH_Pos (1U)
  22576. #define USB_OTG_HCINT_CHH_Msk (0x1U << USB_OTG_HCINT_CHH_Pos) /*!< 0x00000002 */
  22577. #define USB_OTG_HCINT_CHH USB_OTG_HCINT_CHH_Msk /*!< Channel halted */
  22578. #define USB_OTG_HCINT_AHBERR_Pos (2U)
  22579. #define USB_OTG_HCINT_AHBERR_Msk (0x1U << USB_OTG_HCINT_AHBERR_Pos) /*!< 0x00000004 */
  22580. #define USB_OTG_HCINT_AHBERR USB_OTG_HCINT_AHBERR_Msk /*!< AHB error */
  22581. #define USB_OTG_HCINT_STALL_Pos (3U)
  22582. #define USB_OTG_HCINT_STALL_Msk (0x1U << USB_OTG_HCINT_STALL_Pos) /*!< 0x00000008 */
  22583. #define USB_OTG_HCINT_STALL USB_OTG_HCINT_STALL_Msk /*!< STALL response received interrupt */
  22584. #define USB_OTG_HCINT_NAK_Pos (4U)
  22585. #define USB_OTG_HCINT_NAK_Msk (0x1U << USB_OTG_HCINT_NAK_Pos) /*!< 0x00000010 */
  22586. #define USB_OTG_HCINT_NAK USB_OTG_HCINT_NAK_Msk /*!< NAK response received interrupt */
  22587. #define USB_OTG_HCINT_ACK_Pos (5U)
  22588. #define USB_OTG_HCINT_ACK_Msk (0x1U << USB_OTG_HCINT_ACK_Pos) /*!< 0x00000020 */
  22589. #define USB_OTG_HCINT_ACK USB_OTG_HCINT_ACK_Msk /*!< ACK response received/transmitted interrupt */
  22590. #define USB_OTG_HCINT_NYET_Pos (6U)
  22591. #define USB_OTG_HCINT_NYET_Msk (0x1U << USB_OTG_HCINT_NYET_Pos) /*!< 0x00000040 */
  22592. #define USB_OTG_HCINT_NYET USB_OTG_HCINT_NYET_Msk /*!< Response received interrupt */
  22593. #define USB_OTG_HCINT_TXERR_Pos (7U)
  22594. #define USB_OTG_HCINT_TXERR_Msk (0x1U << USB_OTG_HCINT_TXERR_Pos) /*!< 0x00000080 */
  22595. #define USB_OTG_HCINT_TXERR USB_OTG_HCINT_TXERR_Msk /*!< Transaction error */
  22596. #define USB_OTG_HCINT_BBERR_Pos (8U)
  22597. #define USB_OTG_HCINT_BBERR_Msk (0x1U << USB_OTG_HCINT_BBERR_Pos) /*!< 0x00000100 */
  22598. #define USB_OTG_HCINT_BBERR USB_OTG_HCINT_BBERR_Msk /*!< Babble error */
  22599. #define USB_OTG_HCINT_FRMOR_Pos (9U)
  22600. #define USB_OTG_HCINT_FRMOR_Msk (0x1U << USB_OTG_HCINT_FRMOR_Pos) /*!< 0x00000200 */
  22601. #define USB_OTG_HCINT_FRMOR USB_OTG_HCINT_FRMOR_Msk /*!< Frame overrun */
  22602. #define USB_OTG_HCINT_DTERR_Pos (10U)
  22603. #define USB_OTG_HCINT_DTERR_Msk (0x1U << USB_OTG_HCINT_DTERR_Pos) /*!< 0x00000400 */
  22604. #define USB_OTG_HCINT_DTERR USB_OTG_HCINT_DTERR_Msk /*!< Data toggle error */
  22605. /******************** Bit definition forUSB_OTG_DIEPINT register ********************/
  22606. #define USB_OTG_DIEPINT_XFRC_Pos (0U)
  22607. #define USB_OTG_DIEPINT_XFRC_Msk (0x1U << USB_OTG_DIEPINT_XFRC_Pos) /*!< 0x00000001 */
  22608. #define USB_OTG_DIEPINT_XFRC USB_OTG_DIEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  22609. #define USB_OTG_DIEPINT_EPDISD_Pos (1U)
  22610. #define USB_OTG_DIEPINT_EPDISD_Msk (0x1U << USB_OTG_DIEPINT_EPDISD_Pos) /*!< 0x00000002 */
  22611. #define USB_OTG_DIEPINT_EPDISD USB_OTG_DIEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  22612. #define USB_OTG_DIEPINT_TOC_Pos (3U)
  22613. #define USB_OTG_DIEPINT_TOC_Msk (0x1U << USB_OTG_DIEPINT_TOC_Pos) /*!< 0x00000008 */
  22614. #define USB_OTG_DIEPINT_TOC USB_OTG_DIEPINT_TOC_Msk /*!< Timeout condition */
  22615. #define USB_OTG_DIEPINT_ITTXFE_Pos (4U)
  22616. #define USB_OTG_DIEPINT_ITTXFE_Msk (0x1U << USB_OTG_DIEPINT_ITTXFE_Pos) /*!< 0x00000010 */
  22617. #define USB_OTG_DIEPINT_ITTXFE USB_OTG_DIEPINT_ITTXFE_Msk /*!< IN token received when TxFIFO is empty */
  22618. #define USB_OTG_DIEPINT_INEPNE_Pos (6U)
  22619. #define USB_OTG_DIEPINT_INEPNE_Msk (0x1U << USB_OTG_DIEPINT_INEPNE_Pos) /*!< 0x00000040 */
  22620. #define USB_OTG_DIEPINT_INEPNE USB_OTG_DIEPINT_INEPNE_Msk /*!< IN endpoint NAK effective */
  22621. #define USB_OTG_DIEPINT_TXFE_Pos (7U)
  22622. #define USB_OTG_DIEPINT_TXFE_Msk (0x1U << USB_OTG_DIEPINT_TXFE_Pos) /*!< 0x00000080 */
  22623. #define USB_OTG_DIEPINT_TXFE USB_OTG_DIEPINT_TXFE_Msk /*!< Transmit FIFO empty */
  22624. #define USB_OTG_DIEPINT_TXFIFOUDRN_Pos (8U)
  22625. #define USB_OTG_DIEPINT_TXFIFOUDRN_Msk (0x1U << USB_OTG_DIEPINT_TXFIFOUDRN_Pos) /*!< 0x00000100 */
  22626. #define USB_OTG_DIEPINT_TXFIFOUDRN USB_OTG_DIEPINT_TXFIFOUDRN_Msk /*!< Transmit Fifo Underrun */
  22627. #define USB_OTG_DIEPINT_BNA_Pos (9U)
  22628. #define USB_OTG_DIEPINT_BNA_Msk (0x1U << USB_OTG_DIEPINT_BNA_Pos) /*!< 0x00000200 */
  22629. #define USB_OTG_DIEPINT_BNA USB_OTG_DIEPINT_BNA_Msk /*!< Buffer not available interrupt */
  22630. #define USB_OTG_DIEPINT_PKTDRPSTS_Pos (11U)
  22631. #define USB_OTG_DIEPINT_PKTDRPSTS_Msk (0x1U << USB_OTG_DIEPINT_PKTDRPSTS_Pos) /*!< 0x00000800 */
  22632. #define USB_OTG_DIEPINT_PKTDRPSTS USB_OTG_DIEPINT_PKTDRPSTS_Msk /*!< Packet dropped status */
  22633. #define USB_OTG_DIEPINT_BERR_Pos (12U)
  22634. #define USB_OTG_DIEPINT_BERR_Msk (0x1U << USB_OTG_DIEPINT_BERR_Pos) /*!< 0x00001000 */
  22635. #define USB_OTG_DIEPINT_BERR USB_OTG_DIEPINT_BERR_Msk /*!< Babble error interrupt */
  22636. #define USB_OTG_DIEPINT_NAK_Pos (13U)
  22637. #define USB_OTG_DIEPINT_NAK_Msk (0x1U << USB_OTG_DIEPINT_NAK_Pos) /*!< 0x00002000 */
  22638. #define USB_OTG_DIEPINT_NAK USB_OTG_DIEPINT_NAK_Msk /*!< NAK interrupt */
  22639. /******************** Bit definition forUSB_OTG_HCINTMSK register ********************/
  22640. #define USB_OTG_HCINTMSK_XFRCM_Pos (0U)
  22641. #define USB_OTG_HCINTMSK_XFRCM_Msk (0x1U << USB_OTG_HCINTMSK_XFRCM_Pos) /*!< 0x00000001 */
  22642. #define USB_OTG_HCINTMSK_XFRCM USB_OTG_HCINTMSK_XFRCM_Msk /*!< Transfer completed mask */
  22643. #define USB_OTG_HCINTMSK_CHHM_Pos (1U)
  22644. #define USB_OTG_HCINTMSK_CHHM_Msk (0x1U << USB_OTG_HCINTMSK_CHHM_Pos) /*!< 0x00000002 */
  22645. #define USB_OTG_HCINTMSK_CHHM USB_OTG_HCINTMSK_CHHM_Msk /*!< Channel halted mask */
  22646. #define USB_OTG_HCINTMSK_AHBERR_Pos (2U)
  22647. #define USB_OTG_HCINTMSK_AHBERR_Msk (0x1U << USB_OTG_HCINTMSK_AHBERR_Pos) /*!< 0x00000004 */
  22648. #define USB_OTG_HCINTMSK_AHBERR USB_OTG_HCINTMSK_AHBERR_Msk /*!< AHB error */
  22649. #define USB_OTG_HCINTMSK_STALLM_Pos (3U)
  22650. #define USB_OTG_HCINTMSK_STALLM_Msk (0x1U << USB_OTG_HCINTMSK_STALLM_Pos) /*!< 0x00000008 */
  22651. #define USB_OTG_HCINTMSK_STALLM USB_OTG_HCINTMSK_STALLM_Msk /*!< STALL response received interrupt mask */
  22652. #define USB_OTG_HCINTMSK_NAKM_Pos (4U)
  22653. #define USB_OTG_HCINTMSK_NAKM_Msk (0x1U << USB_OTG_HCINTMSK_NAKM_Pos) /*!< 0x00000010 */
  22654. #define USB_OTG_HCINTMSK_NAKM USB_OTG_HCINTMSK_NAKM_Msk /*!< NAK response received interrupt mask */
  22655. #define USB_OTG_HCINTMSK_ACKM_Pos (5U)
  22656. #define USB_OTG_HCINTMSK_ACKM_Msk (0x1U << USB_OTG_HCINTMSK_ACKM_Pos) /*!< 0x00000020 */
  22657. #define USB_OTG_HCINTMSK_ACKM USB_OTG_HCINTMSK_ACKM_Msk /*!< ACK response received/transmitted interrupt mask */
  22658. #define USB_OTG_HCINTMSK_NYET_Pos (6U)
  22659. #define USB_OTG_HCINTMSK_NYET_Msk (0x1U << USB_OTG_HCINTMSK_NYET_Pos) /*!< 0x00000040 */
  22660. #define USB_OTG_HCINTMSK_NYET USB_OTG_HCINTMSK_NYET_Msk /*!< response received interrupt mask */
  22661. #define USB_OTG_HCINTMSK_TXERRM_Pos (7U)
  22662. #define USB_OTG_HCINTMSK_TXERRM_Msk (0x1U << USB_OTG_HCINTMSK_TXERRM_Pos) /*!< 0x00000080 */
  22663. #define USB_OTG_HCINTMSK_TXERRM USB_OTG_HCINTMSK_TXERRM_Msk /*!< Transaction error mask */
  22664. #define USB_OTG_HCINTMSK_BBERRM_Pos (8U)
  22665. #define USB_OTG_HCINTMSK_BBERRM_Msk (0x1U << USB_OTG_HCINTMSK_BBERRM_Pos) /*!< 0x00000100 */
  22666. #define USB_OTG_HCINTMSK_BBERRM USB_OTG_HCINTMSK_BBERRM_Msk /*!< Babble error mask */
  22667. #define USB_OTG_HCINTMSK_FRMORM_Pos (9U)
  22668. #define USB_OTG_HCINTMSK_FRMORM_Msk (0x1U << USB_OTG_HCINTMSK_FRMORM_Pos) /*!< 0x00000200 */
  22669. #define USB_OTG_HCINTMSK_FRMORM USB_OTG_HCINTMSK_FRMORM_Msk /*!< Frame overrun mask */
  22670. #define USB_OTG_HCINTMSK_DTERRM_Pos (10U)
  22671. #define USB_OTG_HCINTMSK_DTERRM_Msk (0x1U << USB_OTG_HCINTMSK_DTERRM_Pos) /*!< 0x00000400 */
  22672. #define USB_OTG_HCINTMSK_DTERRM USB_OTG_HCINTMSK_DTERRM_Msk /*!< Data toggle error mask */
  22673. /******************** Bit definition for USB_OTG_DIEPTSIZ register ********************/
  22674. #define USB_OTG_DIEPTSIZ_XFRSIZ_Pos (0U)
  22675. #define USB_OTG_DIEPTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_DIEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  22676. #define USB_OTG_DIEPTSIZ_XFRSIZ USB_OTG_DIEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  22677. #define USB_OTG_DIEPTSIZ_PKTCNT_Pos (19U)
  22678. #define USB_OTG_DIEPTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_DIEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  22679. #define USB_OTG_DIEPTSIZ_PKTCNT USB_OTG_DIEPTSIZ_PKTCNT_Msk /*!< Packet count */
  22680. #define USB_OTG_DIEPTSIZ_MULCNT_Pos (29U)
  22681. #define USB_OTG_DIEPTSIZ_MULCNT_Msk (0x3U << USB_OTG_DIEPTSIZ_MULCNT_Pos) /*!< 0x60000000 */
  22682. #define USB_OTG_DIEPTSIZ_MULCNT USB_OTG_DIEPTSIZ_MULCNT_Msk /*!< Packet count */
  22683. /******************** Bit definition forUSB_OTG_HCTSIZ register ********************/
  22684. #define USB_OTG_HCTSIZ_XFRSIZ_Pos (0U)
  22685. #define USB_OTG_HCTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_HCTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  22686. #define USB_OTG_HCTSIZ_XFRSIZ USB_OTG_HCTSIZ_XFRSIZ_Msk /*!< Transfer size */
  22687. #define USB_OTG_HCTSIZ_PKTCNT_Pos (19U)
  22688. #define USB_OTG_HCTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_HCTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  22689. #define USB_OTG_HCTSIZ_PKTCNT USB_OTG_HCTSIZ_PKTCNT_Msk /*!< Packet count */
  22690. #define USB_OTG_HCTSIZ_DOPING_Pos (31U)
  22691. #define USB_OTG_HCTSIZ_DOPING_Msk (0x1U << USB_OTG_HCTSIZ_DOPING_Pos) /*!< 0x80000000 */
  22692. #define USB_OTG_HCTSIZ_DOPING USB_OTG_HCTSIZ_DOPING_Msk /*!< Do PING */
  22693. #define USB_OTG_HCTSIZ_DPID_Pos (29U)
  22694. #define USB_OTG_HCTSIZ_DPID_Msk (0x3U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x60000000 */
  22695. #define USB_OTG_HCTSIZ_DPID USB_OTG_HCTSIZ_DPID_Msk /*!< Data PID */
  22696. #define USB_OTG_HCTSIZ_DPID_0 (0x1U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x20000000 */
  22697. #define USB_OTG_HCTSIZ_DPID_1 (0x2U << USB_OTG_HCTSIZ_DPID_Pos) /*!< 0x40000000 */
  22698. /******************** Bit definition forUSB_OTG_DIEPDMA register ********************/
  22699. #define USB_OTG_DIEPDMA_DMAADDR_Pos (0U)
  22700. #define USB_OTG_DIEPDMA_DMAADDR_Msk (0xFFFFFFFFU << USB_OTG_DIEPDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  22701. #define USB_OTG_DIEPDMA_DMAADDR USB_OTG_DIEPDMA_DMAADDR_Msk /*!< DMA address */
  22702. /******************** Bit definition forUSB_OTG_HCDMA register ********************/
  22703. #define USB_OTG_HCDMA_DMAADDR_Pos (0U)
  22704. #define USB_OTG_HCDMA_DMAADDR_Msk (0xFFFFFFFFU << USB_OTG_HCDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
  22705. #define USB_OTG_HCDMA_DMAADDR USB_OTG_HCDMA_DMAADDR_Msk /*!< DMA address */
  22706. /******************** Bit definition forUSB_OTG_DTXFSTS register ********************/
  22707. #define USB_OTG_DTXFSTS_INEPTFSAV_Pos (0U)
  22708. #define USB_OTG_DTXFSTS_INEPTFSAV_Msk (0xFFFFU << USB_OTG_DTXFSTS_INEPTFSAV_Pos) /*!< 0x0000FFFF */
  22709. #define USB_OTG_DTXFSTS_INEPTFSAV USB_OTG_DTXFSTS_INEPTFSAV_Msk /*!< IN endpoint TxFIFO space available */
  22710. /******************** Bit definition forUSB_OTG_DIEPTXF register ********************/
  22711. #define USB_OTG_DIEPTXF_INEPTXSA_Pos (0U)
  22712. #define USB_OTG_DIEPTXF_INEPTXSA_Msk (0xFFFFU << USB_OTG_DIEPTXF_INEPTXSA_Pos) /*!< 0x0000FFFF */
  22713. #define USB_OTG_DIEPTXF_INEPTXSA USB_OTG_DIEPTXF_INEPTXSA_Msk /*!< IN endpoint FIFOx transmit RAM start address */
  22714. #define USB_OTG_DIEPTXF_INEPTXFD_Pos (16U)
  22715. #define USB_OTG_DIEPTXF_INEPTXFD_Msk (0xFFFFU << USB_OTG_DIEPTXF_INEPTXFD_Pos) /*!< 0xFFFF0000 */
  22716. #define USB_OTG_DIEPTXF_INEPTXFD USB_OTG_DIEPTXF_INEPTXFD_Msk /*!< IN endpoint TxFIFO depth */
  22717. /******************** Bit definition forUSB_OTG_DOEPCTL register ********************/
  22718. #define USB_OTG_DOEPCTL_MPSIZ_Pos (0U)
  22719. #define USB_OTG_DOEPCTL_MPSIZ_Msk (0x7FFU << USB_OTG_DOEPCTL_MPSIZ_Pos) /*!< 0x000007FF */
  22720. #define USB_OTG_DOEPCTL_MPSIZ USB_OTG_DOEPCTL_MPSIZ_Msk /*!< Maximum packet size */ /*!<Bit 1 */
  22721. #define USB_OTG_DOEPCTL_USBAEP_Pos (15U)
  22722. #define USB_OTG_DOEPCTL_USBAEP_Msk (0x1U << USB_OTG_DOEPCTL_USBAEP_Pos) /*!< 0x00008000 */
  22723. #define USB_OTG_DOEPCTL_USBAEP USB_OTG_DOEPCTL_USBAEP_Msk /*!< USB active endpoint */
  22724. #define USB_OTG_DOEPCTL_NAKSTS_Pos (17U)
  22725. #define USB_OTG_DOEPCTL_NAKSTS_Msk (0x1U << USB_OTG_DOEPCTL_NAKSTS_Pos) /*!< 0x00020000 */
  22726. #define USB_OTG_DOEPCTL_NAKSTS USB_OTG_DOEPCTL_NAKSTS_Msk /*!< NAK status */
  22727. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos (28U)
  22728. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk (0x1U << USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
  22729. #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk /*!< Set DATA0 PID */
  22730. #define USB_OTG_DOEPCTL_SODDFRM_Pos (29U)
  22731. #define USB_OTG_DOEPCTL_SODDFRM_Msk (0x1U << USB_OTG_DOEPCTL_SODDFRM_Pos) /*!< 0x20000000 */
  22732. #define USB_OTG_DOEPCTL_SODDFRM USB_OTG_DOEPCTL_SODDFRM_Msk /*!< Set odd frame */
  22733. #define USB_OTG_DOEPCTL_EPTYP_Pos (18U)
  22734. #define USB_OTG_DOEPCTL_EPTYP_Msk (0x3U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x000C0000 */
  22735. #define USB_OTG_DOEPCTL_EPTYP USB_OTG_DOEPCTL_EPTYP_Msk /*!< Endpoint type */
  22736. #define USB_OTG_DOEPCTL_EPTYP_0 (0x1U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00040000 */
  22737. #define USB_OTG_DOEPCTL_EPTYP_1 (0x2U << USB_OTG_DOEPCTL_EPTYP_Pos) /*!< 0x00080000 */
  22738. #define USB_OTG_DOEPCTL_SNPM_Pos (20U)
  22739. #define USB_OTG_DOEPCTL_SNPM_Msk (0x1U << USB_OTG_DOEPCTL_SNPM_Pos) /*!< 0x00100000 */
  22740. #define USB_OTG_DOEPCTL_SNPM USB_OTG_DOEPCTL_SNPM_Msk /*!< Snoop mode */
  22741. #define USB_OTG_DOEPCTL_STALL_Pos (21U)
  22742. #define USB_OTG_DOEPCTL_STALL_Msk (0x1U << USB_OTG_DOEPCTL_STALL_Pos) /*!< 0x00200000 */
  22743. #define USB_OTG_DOEPCTL_STALL USB_OTG_DOEPCTL_STALL_Msk /*!< STALL handshake */
  22744. #define USB_OTG_DOEPCTL_CNAK_Pos (26U)
  22745. #define USB_OTG_DOEPCTL_CNAK_Msk (0x1U << USB_OTG_DOEPCTL_CNAK_Pos) /*!< 0x04000000 */
  22746. #define USB_OTG_DOEPCTL_CNAK USB_OTG_DOEPCTL_CNAK_Msk /*!< Clear NAK */
  22747. #define USB_OTG_DOEPCTL_SNAK_Pos (27U)
  22748. #define USB_OTG_DOEPCTL_SNAK_Msk (0x1U << USB_OTG_DOEPCTL_SNAK_Pos) /*!< 0x08000000 */
  22749. #define USB_OTG_DOEPCTL_SNAK USB_OTG_DOEPCTL_SNAK_Msk /*!< Set NAK */
  22750. #define USB_OTG_DOEPCTL_EPDIS_Pos (30U)
  22751. #define USB_OTG_DOEPCTL_EPDIS_Msk (0x1U << USB_OTG_DOEPCTL_EPDIS_Pos) /*!< 0x40000000 */
  22752. #define USB_OTG_DOEPCTL_EPDIS USB_OTG_DOEPCTL_EPDIS_Msk /*!< Endpoint disable */
  22753. #define USB_OTG_DOEPCTL_EPENA_Pos (31U)
  22754. #define USB_OTG_DOEPCTL_EPENA_Msk (0x1U << USB_OTG_DOEPCTL_EPENA_Pos) /*!< 0x80000000 */
  22755. #define USB_OTG_DOEPCTL_EPENA USB_OTG_DOEPCTL_EPENA_Msk /*!< Endpoint enable */
  22756. /******************** Bit definition forUSB_OTG_DOEPINT register ********************/
  22757. #define USB_OTG_DOEPINT_XFRC_Pos (0U)
  22758. #define USB_OTG_DOEPINT_XFRC_Msk (0x1U << USB_OTG_DOEPINT_XFRC_Pos) /*!< 0x00000001 */
  22759. #define USB_OTG_DOEPINT_XFRC USB_OTG_DOEPINT_XFRC_Msk /*!< Transfer completed interrupt */
  22760. #define USB_OTG_DOEPINT_EPDISD_Pos (1U)
  22761. #define USB_OTG_DOEPINT_EPDISD_Msk (0x1U << USB_OTG_DOEPINT_EPDISD_Pos) /*!< 0x00000002 */
  22762. #define USB_OTG_DOEPINT_EPDISD USB_OTG_DOEPINT_EPDISD_Msk /*!< Endpoint disabled interrupt */
  22763. #define USB_OTG_DOEPINT_STUP_Pos (3U)
  22764. #define USB_OTG_DOEPINT_STUP_Msk (0x1U << USB_OTG_DOEPINT_STUP_Pos) /*!< 0x00000008 */
  22765. #define USB_OTG_DOEPINT_STUP USB_OTG_DOEPINT_STUP_Msk /*!< SETUP phase done */
  22766. #define USB_OTG_DOEPINT_OTEPDIS_Pos (4U)
  22767. #define USB_OTG_DOEPINT_OTEPDIS_Msk (0x1U << USB_OTG_DOEPINT_OTEPDIS_Pos) /*!< 0x00000010 */
  22768. #define USB_OTG_DOEPINT_OTEPDIS USB_OTG_DOEPINT_OTEPDIS_Msk /*!< OUT token received when endpoint disabled */
  22769. #define USB_OTG_DOEPINT_OTEPSPR_Pos (5U)
  22770. #define USB_OTG_DOEPINT_OTEPSPR_Msk (0x1U << USB_OTG_DOEPINT_OTEPSPR_Pos) /*!< 0x00000020 */
  22771. #define USB_OTG_DOEPINT_OTEPSPR USB_OTG_DOEPINT_OTEPSPR_Msk /*!< OUT Status Phase Received interrupt */
  22772. #define USB_OTG_DOEPINT_B2BSTUP_Pos (6U)
  22773. #define USB_OTG_DOEPINT_B2BSTUP_Msk (0x1U << USB_OTG_DOEPINT_B2BSTUP_Pos) /*!< 0x00000040 */
  22774. #define USB_OTG_DOEPINT_B2BSTUP USB_OTG_DOEPINT_B2BSTUP_Msk /*!< Back-to-back SETUP packets received */
  22775. #define USB_OTG_DOEPINT_NYET_Pos (14U)
  22776. #define USB_OTG_DOEPINT_NYET_Msk (0x1U << USB_OTG_DOEPINT_NYET_Pos) /*!< 0x00004000 */
  22777. #define USB_OTG_DOEPINT_NYET USB_OTG_DOEPINT_NYET_Msk /*!< NYET interrupt */
  22778. /******************** Bit definition forUSB_OTG_DOEPTSIZ register ********************/
  22779. #define USB_OTG_DOEPTSIZ_XFRSIZ_Pos (0U)
  22780. #define USB_OTG_DOEPTSIZ_XFRSIZ_Msk (0x7FFFFU << USB_OTG_DOEPTSIZ_XFRSIZ_Pos) /*!< 0x0007FFFF */
  22781. #define USB_OTG_DOEPTSIZ_XFRSIZ USB_OTG_DOEPTSIZ_XFRSIZ_Msk /*!< Transfer size */
  22782. #define USB_OTG_DOEPTSIZ_PKTCNT_Pos (19U)
  22783. #define USB_OTG_DOEPTSIZ_PKTCNT_Msk (0x3FFU << USB_OTG_DOEPTSIZ_PKTCNT_Pos) /*!< 0x1FF80000 */
  22784. #define USB_OTG_DOEPTSIZ_PKTCNT USB_OTG_DOEPTSIZ_PKTCNT_Msk /*!< Packet count */
  22785. #define USB_OTG_DOEPTSIZ_STUPCNT_Pos (29U)
  22786. #define USB_OTG_DOEPTSIZ_STUPCNT_Msk (0x3U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x60000000 */
  22787. #define USB_OTG_DOEPTSIZ_STUPCNT USB_OTG_DOEPTSIZ_STUPCNT_Msk /*!< SETUP packet count */
  22788. #define USB_OTG_DOEPTSIZ_STUPCNT_0 (0x1U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x20000000 */
  22789. #define USB_OTG_DOEPTSIZ_STUPCNT_1 (0x2U << USB_OTG_DOEPTSIZ_STUPCNT_Pos) /*!< 0x40000000 */
  22790. /******************** Bit definition for PCGCCTL register ********************/
  22791. #define USB_OTG_PCGCCTL_STOPCLK_Pos (0U)
  22792. #define USB_OTG_PCGCCTL_STOPCLK_Msk (0x1U << USB_OTG_PCGCCTL_STOPCLK_Pos) /*!< 0x00000001 */
  22793. #define USB_OTG_PCGCCTL_STOPCLK USB_OTG_PCGCCTL_STOPCLK_Msk /*!< SETUP packet count */
  22794. #define USB_OTG_PCGCCTL_GATECLK_Pos (1U)
  22795. #define USB_OTG_PCGCCTL_GATECLK_Msk (0x1U << USB_OTG_PCGCCTL_GATECLK_Pos) /*!< 0x00000002 */
  22796. #define USB_OTG_PCGCCTL_GATECLK USB_OTG_PCGCCTL_GATECLK_Msk /*!<Bit 0 */
  22797. #define USB_OTG_PCGCCTL_PHYSUSP_Pos (4U)
  22798. #define USB_OTG_PCGCCTL_PHYSUSP_Msk (0x1U << USB_OTG_PCGCCTL_PHYSUSP_Pos) /*!< 0x00000010 */
  22799. #define USB_OTG_PCGCCTL_PHYSUSP USB_OTG_PCGCCTL_PHYSUSP_Msk /*!<Bit 1 */
  22800. /**
  22801. * @}
  22802. */
  22803. /**
  22804. * @}
  22805. */
  22806. /** @addtogroup Exported_macros
  22807. * @{
  22808. */
  22809. /******************************* ADC Instances ********************************/
  22810. #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
  22811. ((INSTANCE) == ADC2) || \
  22812. ((INSTANCE) == ADC3))
  22813. #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)
  22814. #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON ||\
  22815. (INSTANCE) == ADC3_COMMON)
  22816. /******************************** COMP Instances ******************************/
  22817. #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
  22818. ((INSTANCE) == COMP2))
  22819. #define IS_COMP_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == COMP12_COMMON)
  22820. /******************** COMP Instances with window mode capability **************/
  22821. #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2)
  22822. /******************************* CRC Instances ********************************/
  22823. #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
  22824. /******************************* DAC Instances ********************************/
  22825. #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
  22826. /******************************* DCMI Instances *******************************/
  22827. #define IS_DCMI_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DCMI)
  22828. /****************************** DFSDM Instances *******************************/
  22829. #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0) || \
  22830. ((INSTANCE) == DFSDM1_Filter1) || \
  22831. ((INSTANCE) == DFSDM1_Filter2) || \
  22832. ((INSTANCE) == DFSDM1_Filter3))
  22833. #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0) || \
  22834. ((INSTANCE) == DFSDM1_Channel1) || \
  22835. ((INSTANCE) == DFSDM1_Channel2) || \
  22836. ((INSTANCE) == DFSDM1_Channel3) || \
  22837. ((INSTANCE) == DFSDM1_Channel4) || \
  22838. ((INSTANCE) == DFSDM1_Channel5) || \
  22839. ((INSTANCE) == DFSDM1_Channel6) || \
  22840. ((INSTANCE) == DFSDM1_Channel7))
  22841. /******************************** DMA Instances *******************************/
  22842. #define IS_DMA_STREAM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Stream0) || \
  22843. ((INSTANCE) == DMA1_Stream1) || \
  22844. ((INSTANCE) == DMA1_Stream2) || \
  22845. ((INSTANCE) == DMA1_Stream3) || \
  22846. ((INSTANCE) == DMA1_Stream4) || \
  22847. ((INSTANCE) == DMA1_Stream5) || \
  22848. ((INSTANCE) == DMA1_Stream6) || \
  22849. ((INSTANCE) == DMA1_Stream7) || \
  22850. ((INSTANCE) == DMA2_Stream0) || \
  22851. ((INSTANCE) == DMA2_Stream1) || \
  22852. ((INSTANCE) == DMA2_Stream2) || \
  22853. ((INSTANCE) == DMA2_Stream3) || \
  22854. ((INSTANCE) == DMA2_Stream4) || \
  22855. ((INSTANCE) == DMA2_Stream5) || \
  22856. ((INSTANCE) == DMA2_Stream6) || \
  22857. ((INSTANCE) == DMA2_Stream7) || \
  22858. ((INSTANCE) == BDMA_Channel0) || \
  22859. ((INSTANCE) == BDMA_Channel1) || \
  22860. ((INSTANCE) == BDMA_Channel2) || \
  22861. ((INSTANCE) == BDMA_Channel3) || \
  22862. ((INSTANCE) == BDMA_Channel4) || \
  22863. ((INSTANCE) == BDMA_Channel5) || \
  22864. ((INSTANCE) == BDMA_Channel6) || \
  22865. ((INSTANCE) == BDMA_Channel7))
  22866. /******************************** DMA Request Generator Instances **************/
  22867. #define IS_DMA_REQUEST_GEN_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMAMUX1_RequestGenerator0) || \
  22868. ((INSTANCE) == DMAMUX1_RequestGenerator1) || \
  22869. ((INSTANCE) == DMAMUX1_RequestGenerator2) || \
  22870. ((INSTANCE) == DMAMUX1_RequestGenerator3) || \
  22871. ((INSTANCE) == DMAMUX1_RequestGenerator4) || \
  22872. ((INSTANCE) == DMAMUX1_RequestGenerator5) || \
  22873. ((INSTANCE) == DMAMUX1_RequestGenerator6) || \
  22874. ((INSTANCE) == DMAMUX1_RequestGenerator7) || \
  22875. ((INSTANCE) == DMAMUX2_RequestGenerator0) || \
  22876. ((INSTANCE) == DMAMUX2_RequestGenerator1) || \
  22877. ((INSTANCE) == DMAMUX2_RequestGenerator2) || \
  22878. ((INSTANCE) == DMAMUX2_RequestGenerator3) || \
  22879. ((INSTANCE) == DMAMUX2_RequestGenerator4) || \
  22880. ((INSTANCE) == DMAMUX2_RequestGenerator5) || \
  22881. ((INSTANCE) == DMAMUX2_RequestGenerator6) || \
  22882. ((INSTANCE) == DMAMUX2_RequestGenerator7))
  22883. /******************************* DMA2D Instances *******************************/
  22884. #define IS_DMA2D_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == DMA2D)
  22885. /******************************** MDMA Request Generator Instances **************/
  22886. #define IS_MDMA_STREAM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == MDMA_Channel0) || \
  22887. ((INSTANCE) == MDMA_Channel1) || \
  22888. ((INSTANCE) == MDMA_Channel2) || \
  22889. ((INSTANCE) == MDMA_Channel3) || \
  22890. ((INSTANCE) == MDMA_Channel4) || \
  22891. ((INSTANCE) == MDMA_Channel5) || \
  22892. ((INSTANCE) == MDMA_Channel6) || \
  22893. ((INSTANCE) == MDMA_Channel7) || \
  22894. ((INSTANCE) == MDMA_Channel8) || \
  22895. ((INSTANCE) == MDMA_Channel9) || \
  22896. ((INSTANCE) == MDMA_Channel10) || \
  22897. ((INSTANCE) == MDMA_Channel11) || \
  22898. ((INSTANCE) == MDMA_Channel12) || \
  22899. ((INSTANCE) == MDMA_Channel13) || \
  22900. ((INSTANCE) == MDMA_Channel14) || \
  22901. ((INSTANCE) == MDMA_Channel15))
  22902. /******************************* QUADSPI Instances *******************************/
  22903. #define IS_QSPI_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == QUADSPI)
  22904. /******************************* FDCAN Instances ******************************/
  22905. #define IS_FDCAN_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == FDCAN1) || \
  22906. ((__INSTANCE__) == FDCAN2))
  22907. #define IS_FDCAN_TT_INSTANCE(__INSTANCE__) ((__INSTANCE__) == FDCAN1)
  22908. /******************************* GPIO Instances *******************************/
  22909. #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
  22910. ((INSTANCE) == GPIOB) || \
  22911. ((INSTANCE) == GPIOC) || \
  22912. ((INSTANCE) == GPIOD) || \
  22913. ((INSTANCE) == GPIOE) || \
  22914. ((INSTANCE) == GPIOF) || \
  22915. ((INSTANCE) == GPIOG) || \
  22916. ((INSTANCE) == GPIOH) || \
  22917. ((INSTANCE) == GPIOI) || \
  22918. ((INSTANCE) == GPIOJ) || \
  22919. ((INSTANCE) == GPIOK))
  22920. /**************************** GPIO Lock Instances *****************************/
  22921. /* On H7, all GPIO Bank support the Lock mechanism */
  22922. #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
  22923. /******************************** HSEM Instances *******************************/
  22924. #define IS_HSEM_ALL_INSTANCE(INSTANCE) ((INSTANCE) == HSEM)
  22925. #define HSEM_CM7_MASTERID (0x00000003U) /* Semaphore Master CM7 ID */
  22926. #define HSEM_SEMID_MIN (0U) /* HSEM ID Min*/
  22927. #define HSEM_SEMID_MAX (31U) /* HSEM ID Max */
  22928. #define HSEM_PROCESSID_MIN (0U) /* HSEM Process ID Min */
  22929. #define HSEM_PROCESSID_MAX (255U) /* HSEM Process ID Max */
  22930. #define HSEM_CLEAR_KEY_MIN (0U) /* HSEM clear Key Min value */
  22931. #define HSEM_CLEAR_KEY_MAX (0xFFFFU) /* HSEM clear Key Max value */
  22932. /******************************** I2C Instances *******************************/
  22933. #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  22934. ((INSTANCE) == I2C2) || \
  22935. ((INSTANCE) == I2C3) || \
  22936. ((INSTANCE) == I2C4))
  22937. /************** I2C Instances : wakeup capability from stop modes *************/
  22938. #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
  22939. /****************************** SMBUS Instances *******************************/
  22940. #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
  22941. ((INSTANCE) == I2C2) || \
  22942. ((INSTANCE) == I2C3) || \
  22943. ((INSTANCE) == I2C4))
  22944. /******************************** I2S Instances *******************************/
  22945. #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  22946. ((INSTANCE) == SPI2) || \
  22947. ((INSTANCE) == SPI3))
  22948. /****************************** LTDC Instances ********************************/
  22949. #define IS_LTDC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LTDC)
  22950. /******************************* RNG Instances ********************************/
  22951. #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG)
  22952. /****************************** RTC Instances *********************************/
  22953. #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
  22954. /******************************** SMBUS Instances *****************************/
  22955. #define IS_SMBUS_INSTANCE(INSTANCE) ((INSTANCE) == I2C1)
  22956. /******************************** SPI Instances *******************************/
  22957. #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  22958. ((INSTANCE) == SPI2) || \
  22959. ((INSTANCE) == SPI3) || \
  22960. ((INSTANCE) == SPI4) || \
  22961. ((INSTANCE) == SPI5) || \
  22962. ((INSTANCE) == SPI6))
  22963. #define IS_SPI_HIGHEND_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
  22964. ((INSTANCE) == SPI2) || \
  22965. ((INSTANCE) == SPI3))
  22966. /******************************** SWPMI Instances *****************************/
  22967. #define IS_SWPMI_INSTANCE(INSTANCE) ((INSTANCE) == SWPMI1)
  22968. /****************** LPTIM Instances : All supported instances *****************/
  22969. #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \
  22970. ((INSTANCE) == LPTIM2) || \
  22971. ((INSTANCE) == LPTIM3) ||\
  22972. ((INSTANCE) == LPTIM4) ||\
  22973. ((INSTANCE) == LPTIM5))
  22974. /****************** TIM Instances : All supported instances *******************/
  22975. #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22976. ((INSTANCE) == TIM2) || \
  22977. ((INSTANCE) == TIM3) || \
  22978. ((INSTANCE) == TIM4) || \
  22979. ((INSTANCE) == TIM5) || \
  22980. ((INSTANCE) == TIM6) || \
  22981. ((INSTANCE) == TIM7) || \
  22982. ((INSTANCE) == TIM8) || \
  22983. ((INSTANCE) == TIM12) || \
  22984. ((INSTANCE) == TIM13) || \
  22985. ((INSTANCE) == TIM14) || \
  22986. ((INSTANCE) == TIM15) || \
  22987. ((INSTANCE) == TIM16) || \
  22988. ((INSTANCE) == TIM17))
  22989. /************* TIM Instances : at least 1 capture/compare channel *************/
  22990. #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  22991. ((INSTANCE) == TIM2) || \
  22992. ((INSTANCE) == TIM3) || \
  22993. ((INSTANCE) == TIM4) || \
  22994. ((INSTANCE) == TIM5) || \
  22995. ((INSTANCE) == TIM8) || \
  22996. ((INSTANCE) == TIM12) || \
  22997. ((INSTANCE) == TIM13) || \
  22998. ((INSTANCE) == TIM14) || \
  22999. ((INSTANCE) == TIM15) || \
  23000. ((INSTANCE) == TIM16) || \
  23001. ((INSTANCE) == TIM17))
  23002. /************ TIM Instances : at least 2 capture/compare channels *************/
  23003. #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23004. ((INSTANCE) == TIM2) || \
  23005. ((INSTANCE) == TIM3) || \
  23006. ((INSTANCE) == TIM4) || \
  23007. ((INSTANCE) == TIM5) || \
  23008. ((INSTANCE) == TIM8) || \
  23009. ((INSTANCE) == TIM12) || \
  23010. ((INSTANCE) == TIM15))
  23011. /************ TIM Instances : at least 3 capture/compare channels *************/
  23012. #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23013. ((INSTANCE) == TIM2) || \
  23014. ((INSTANCE) == TIM3) || \
  23015. ((INSTANCE) == TIM4) || \
  23016. ((INSTANCE) == TIM5) || \
  23017. ((INSTANCE) == TIM8))
  23018. /************ TIM Instances : at least 4 capture/compare channels *************/
  23019. #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23020. ((INSTANCE) == TIM2) || \
  23021. ((INSTANCE) == TIM3) || \
  23022. ((INSTANCE) == TIM4) || \
  23023. ((INSTANCE) == TIM5) || \
  23024. ((INSTANCE) == TIM8))
  23025. /************ TIM Instances : at least 5 capture/compare channels *************/
  23026. #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23027. ((INSTANCE) == TIM8))
  23028. /************ TIM Instances : at least 6 capture/compare channels *************/
  23029. #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23030. ((INSTANCE) == TIM8))
  23031. /******************** TIM Instances : Advanced-control timers *****************/
  23032. /******************* TIM Instances : Timer input XOR function *****************/
  23033. #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23034. ((INSTANCE) == TIM2) || \
  23035. ((INSTANCE) == TIM3) || \
  23036. ((INSTANCE) == TIM4) || \
  23037. ((INSTANCE) == TIM5) || \
  23038. ((INSTANCE) == TIM8))
  23039. /****************** TIM Instances : DMA requests generation (UDE) *************/
  23040. #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23041. ((INSTANCE) == TIM2) || \
  23042. ((INSTANCE) == TIM3) || \
  23043. ((INSTANCE) == TIM4) || \
  23044. ((INSTANCE) == TIM5) || \
  23045. ((INSTANCE) == TIM6) || \
  23046. ((INSTANCE) == TIM7) || \
  23047. ((INSTANCE) == TIM8) || \
  23048. ((INSTANCE) == TIM15) || \
  23049. ((INSTANCE) == TIM16) || \
  23050. ((INSTANCE) == TIM17))
  23051. /************ TIM Instances : DMA requests generation (CCxDE) *****************/
  23052. #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23053. ((INSTANCE) == TIM2) || \
  23054. ((INSTANCE) == TIM3) || \
  23055. ((INSTANCE) == TIM4) || \
  23056. ((INSTANCE) == TIM5) || \
  23057. ((INSTANCE) == TIM8) || \
  23058. ((INSTANCE) == TIM15) || \
  23059. ((INSTANCE) == TIM16) || \
  23060. ((INSTANCE) == TIM17))
  23061. /************ TIM Instances : DMA requests generation (COMDE) *****************/
  23062. #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23063. ((INSTANCE) == TIM2) || \
  23064. ((INSTANCE) == TIM3) || \
  23065. ((INSTANCE) == TIM4) || \
  23066. ((INSTANCE) == TIM5) || \
  23067. ((INSTANCE) == TIM8) || \
  23068. ((INSTANCE) == TIM15))
  23069. /******************** TIM Instances : DMA burst feature ***********************/
  23070. #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23071. ((INSTANCE) == TIM2) || \
  23072. ((INSTANCE) == TIM3) || \
  23073. ((INSTANCE) == TIM4) || \
  23074. ((INSTANCE) == TIM5) || \
  23075. ((INSTANCE) == TIM8))
  23076. /***************** TIM Instances : external trigger reamp input availabe *******/
  23077. #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23078. ((INSTANCE) == TIM2) || \
  23079. ((INSTANCE) == TIM3) || \
  23080. ((INSTANCE) == TIM4) || \
  23081. ((INSTANCE) == TIM5) || \
  23082. ((INSTANCE) == TIM8))
  23083. /***************** TIM Instances : external trigger reamp input availabe *******/
  23084. #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23085. ((INSTANCE) == TIM2) || \
  23086. ((INSTANCE) == TIM3) || \
  23087. ((INSTANCE) == TIM5) || \
  23088. ((INSTANCE) == TIM8))
  23089. /****** TIM Instances : master mode available (TIMx_CR2.MMS available )********/
  23090. #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23091. ((INSTANCE) == TIM2) || \
  23092. ((INSTANCE) == TIM3) || \
  23093. ((INSTANCE) == TIM4) || \
  23094. ((INSTANCE) == TIM5) || \
  23095. ((INSTANCE) == TIM6) || \
  23096. ((INSTANCE) == TIM7) || \
  23097. ((INSTANCE) == TIM8) || \
  23098. ((INSTANCE) == TIM15))
  23099. /****** TIM Instances : Salve mode available (TIMx_SMCR.TS available )*********/
  23100. #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23101. ((INSTANCE) == TIM2) || \
  23102. ((INSTANCE) == TIM3) || \
  23103. ((INSTANCE) == TIM4) || \
  23104. ((INSTANCE) == TIM5) || \
  23105. ((INSTANCE) == TIM8) || \
  23106. ((INSTANCE) == TIM12))
  23107. /****** TIM Instances : TRGO2 available (TIMx_CR2.MMS2 available )*********/
  23108. #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23109. ((INSTANCE) == TIM8))
  23110. /****** TIM Instances : TISEL available (TIMx_TISEL available )*********/
  23111. #define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23112. ((INSTANCE) == TIM2) || \
  23113. ((INSTANCE) == TIM3) || \
  23114. ((INSTANCE) == TIM4) || \
  23115. ((INSTANCE) == TIM5) || \
  23116. ((INSTANCE) == TIM8) || \
  23117. ((INSTANCE) == TIM15) || \
  23118. ((INSTANCE) == TIM16) || \
  23119. ((INSTANCE) == TIM17))
  23120. /****************** TIM Instances : supporting commutation event *************/
  23121. #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23122. ((INSTANCE) == TIM8) || \
  23123. ((INSTANCE) == TIM15) || \
  23124. ((INSTANCE) == TIM16) || \
  23125. ((INSTANCE) == TIM17))
  23126. /****** TIM Instances : TIM_CCR5_GC5C available (TIMx_CCR5.GC5C available )*********/
  23127. #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
  23128. ((INSTANCE) == TIM8))
  23129. /******************* TIM Instances : output(s) available **********************/
  23130. #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
  23131. ((((INSTANCE) == TIM1) && \
  23132. (((CHANNEL) == TIM_CHANNEL_1) || \
  23133. ((CHANNEL) == TIM_CHANNEL_2) || \
  23134. ((CHANNEL) == TIM_CHANNEL_3) || \
  23135. ((CHANNEL) == TIM_CHANNEL_4))) \
  23136. || \
  23137. (((INSTANCE) == TIM2) && \
  23138. (((CHANNEL) == TIM_CHANNEL_1) || \
  23139. ((CHANNEL) == TIM_CHANNEL_2) || \
  23140. ((CHANNEL) == TIM_CHANNEL_3) || \
  23141. ((CHANNEL) == TIM_CHANNEL_4))) \
  23142. || \
  23143. (((INSTANCE) == TIM3) && \
  23144. (((CHANNEL) == TIM_CHANNEL_1)|| \
  23145. ((CHANNEL) == TIM_CHANNEL_2) || \
  23146. ((CHANNEL) == TIM_CHANNEL_3) || \
  23147. ((CHANNEL) == TIM_CHANNEL_4))) \
  23148. || \
  23149. (((INSTANCE) == TIM4) && \
  23150. (((CHANNEL) == TIM_CHANNEL_1) || \
  23151. ((CHANNEL) == TIM_CHANNEL_2) || \
  23152. ((CHANNEL) == TIM_CHANNEL_3) || \
  23153. ((CHANNEL) == TIM_CHANNEL_4))) \
  23154. || \
  23155. (((INSTANCE) == TIM5) && \
  23156. (((CHANNEL) == TIM_CHANNEL_1) || \
  23157. ((CHANNEL) == TIM_CHANNEL_2) || \
  23158. ((CHANNEL) == TIM_CHANNEL_3) || \
  23159. ((CHANNEL) == TIM_CHANNEL_4))) \
  23160. || \
  23161. (((INSTANCE) == TIM8) && \
  23162. (((CHANNEL) == TIM_CHANNEL_1) || \
  23163. ((CHANNEL) == TIM_CHANNEL_2) || \
  23164. ((CHANNEL) == TIM_CHANNEL_3) || \
  23165. ((CHANNEL) == TIM_CHANNEL_4))) \
  23166. || \
  23167. (((INSTANCE) == TIM13) && \
  23168. (((CHANNEL) == TIM_CHANNEL_1))) \
  23169. || \
  23170. (((INSTANCE) == TIM14) && \
  23171. (((CHANNEL) == TIM_CHANNEL_1))) \
  23172. || \
  23173. (((INSTANCE) == TIM15) && \
  23174. (((CHANNEL) == TIM_CHANNEL_1) || \
  23175. ((CHANNEL) == TIM_CHANNEL_2))) \
  23176. || \
  23177. (((INSTANCE) == TIM16) && \
  23178. (((CHANNEL) == TIM_CHANNEL_1))) \
  23179. || \
  23180. (((INSTANCE) == TIM17) && \
  23181. (((CHANNEL) == TIM_CHANNEL_1))))
  23182. /****************** TIM Instances : supporting the break function *************/
  23183. #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
  23184. (((INSTANCE) == TIM1) || \
  23185. ((INSTANCE) == TIM8) || \
  23186. ((INSTANCE) == TIM15) || \
  23187. ((INSTANCE) == TIM16) || \
  23188. ((INSTANCE) == TIM17))
  23189. /****************** TIM Instances : supporting complementary output(s) ********/
  23190. #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
  23191. ((((INSTANCE) == TIM1) && \
  23192. (((CHANNEL) == TIM_CHANNEL_1) || \
  23193. ((CHANNEL) == TIM_CHANNEL_2) || \
  23194. ((CHANNEL) == TIM_CHANNEL_3))) \
  23195. || \
  23196. (((INSTANCE) == TIM8) && \
  23197. (((CHANNEL) == TIM_CHANNEL_1) || \
  23198. ((CHANNEL) == TIM_CHANNEL_2) || \
  23199. ((CHANNEL) == TIM_CHANNEL_3))) \
  23200. || \
  23201. (((INSTANCE) == TIM15) && \
  23202. ((CHANNEL) == TIM_CHANNEL_1)) \
  23203. || \
  23204. (((INSTANCE) == TIM16) && \
  23205. ((CHANNEL) == TIM_CHANNEL_1)) \
  23206. || \
  23207. (((INSTANCE) == TIM17) && \
  23208. ((CHANNEL) == TIM_CHANNEL_1)))
  23209. /****************** TIM Instances : supporting counting mode selection ********/
  23210. #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
  23211. (((INSTANCE) == TIM1) || \
  23212. ((INSTANCE) == TIM2) || \
  23213. ((INSTANCE) == TIM3) || \
  23214. ((INSTANCE) == TIM4) || \
  23215. ((INSTANCE) == TIM5) || \
  23216. ((INSTANCE) == TIM8))
  23217. /****************** TIM Instances : supporting repetition counter *************/
  23218. #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
  23219. (((INSTANCE) == TIM1) || \
  23220. ((INSTANCE) == TIM8) || \
  23221. ((INSTANCE) == TIM15) || \
  23222. ((INSTANCE) == TIM16) || \
  23223. ((INSTANCE) == TIM17))
  23224. /****************** TIM Instances : supporting clock division *****************/
  23225. #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
  23226. (((INSTANCE) == TIM1) || \
  23227. ((INSTANCE) == TIM2) || \
  23228. ((INSTANCE) == TIM3) || \
  23229. ((INSTANCE) == TIM4) || \
  23230. ((INSTANCE) == TIM5) || \
  23231. ((INSTANCE) == TIM8) || \
  23232. ((INSTANCE) == TIM15) || \
  23233. ((INSTANCE) == TIM16) || \
  23234. ((INSTANCE) == TIM17))
  23235. /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
  23236. #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
  23237. (((INSTANCE) == TIM1) || \
  23238. ((INSTANCE) == TIM2) || \
  23239. ((INSTANCE) == TIM3) || \
  23240. ((INSTANCE) == TIM4) || \
  23241. ((INSTANCE) == TIM5) || \
  23242. ((INSTANCE) == TIM8))
  23243. /****************** TIM Instances : supporting external clock mode 2 **********/
  23244. #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
  23245. (((INSTANCE) == TIM1) || \
  23246. ((INSTANCE) == TIM2) || \
  23247. ((INSTANCE) == TIM3) || \
  23248. ((INSTANCE) == TIM4) || \
  23249. ((INSTANCE) == TIM5) || \
  23250. ((INSTANCE) == TIM8))
  23251. /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
  23252. #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
  23253. (((INSTANCE) == TIM1) || \
  23254. ((INSTANCE) == TIM2) || \
  23255. ((INSTANCE) == TIM3) || \
  23256. ((INSTANCE) == TIM4) || \
  23257. ((INSTANCE) == TIM5) || \
  23258. ((INSTANCE) == TIM8) || \
  23259. ((INSTANCE) == TIM15))
  23260. /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
  23261. #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
  23262. (((INSTANCE) == TIM1) || \
  23263. ((INSTANCE) == TIM2) || \
  23264. ((INSTANCE) == TIM3) || \
  23265. ((INSTANCE) == TIM4) || \
  23266. ((INSTANCE) == TIM5) || \
  23267. ((INSTANCE) == TIM8) || \
  23268. ((INSTANCE) == TIM15))
  23269. /****************** TIM Instances : supporting OCxREF clear *******************/
  23270. #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
  23271. (((INSTANCE) == TIM1) || \
  23272. ((INSTANCE) == TIM2) || \
  23273. ((INSTANCE) == TIM3))
  23274. /****************** TIM Instances : TIM_32B_COUNTER ***************************/
  23275. #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
  23276. (((INSTANCE) == TIM2) || \
  23277. ((INSTANCE) == TIM5))
  23278. /****************** TIM Instances : TIM_BKIN2 ***************************/
  23279. #define IS_TIM_BKIN2_INSTANCE(INSTANCE)\
  23280. (((INSTANCE) == TIM1) || \
  23281. ((INSTANCE) == TIM8))
  23282. /****************************** HRTIM Instances *******************************/
  23283. #define IS_HRTIM_ALL_INSTANCE(INSTANCE) (((INSTANCE) == HRTIM1))
  23284. /******************** USART Instances : Synchronous mode **********************/
  23285. #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23286. ((INSTANCE) == USART2) || \
  23287. ((INSTANCE) == USART3) || \
  23288. ((INSTANCE) == USART6))
  23289. /******************** UART Instances : Asynchronous mode **********************/
  23290. #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23291. ((INSTANCE) == USART2) || \
  23292. ((INSTANCE) == USART3) || \
  23293. ((INSTANCE) == UART4) || \
  23294. ((INSTANCE) == UART5) || \
  23295. ((INSTANCE) == USART6) || \
  23296. ((INSTANCE) == UART7) || \
  23297. ((INSTANCE) == UART8))
  23298. /****************** UART Instances : Auto Baud Rate detection *****************/
  23299. #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23300. ((INSTANCE) == USART2) || \
  23301. ((INSTANCE) == USART3) || \
  23302. ((INSTANCE) == UART4) || \
  23303. ((INSTANCE) == UART5) || \
  23304. ((INSTANCE) == USART6) || \
  23305. ((INSTANCE) == UART7) || \
  23306. ((INSTANCE) == UART8))
  23307. /*********************** UART Instances : Driver Enable ***********************/
  23308. #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23309. ((INSTANCE) == USART2) || \
  23310. ((INSTANCE) == USART3) || \
  23311. ((INSTANCE) == UART4) || \
  23312. ((INSTANCE) == UART5) || \
  23313. ((INSTANCE) == USART6) || \
  23314. ((INSTANCE) == UART7) || \
  23315. ((INSTANCE) == UART8) || \
  23316. ((INSTANCE) == LPUART1))
  23317. /********************* UART Instances : Half-Duplex mode **********************/
  23318. #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23319. ((INSTANCE) == USART2) || \
  23320. ((INSTANCE) == USART3) || \
  23321. ((INSTANCE) == UART4) || \
  23322. ((INSTANCE) == UART5) || \
  23323. ((INSTANCE) == USART6) || \
  23324. ((INSTANCE) == UART7) || \
  23325. ((INSTANCE) == UART8) || \
  23326. ((INSTANCE) == LPUART1))
  23327. /******************* UART Instances : Hardware Flow control *******************/
  23328. #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23329. ((INSTANCE) == USART2) || \
  23330. ((INSTANCE) == USART3) || \
  23331. ((INSTANCE) == UART4) || \
  23332. ((INSTANCE) == UART5) || \
  23333. ((INSTANCE) == USART6) || \
  23334. ((INSTANCE) == UART7) || \
  23335. ((INSTANCE) == UART8) || \
  23336. ((INSTANCE) == LPUART1))
  23337. /************************* UART Instances : LIN mode **************************/
  23338. #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23339. ((INSTANCE) == USART2) || \
  23340. ((INSTANCE) == USART3) || \
  23341. ((INSTANCE) == UART4) || \
  23342. ((INSTANCE) == UART5) || \
  23343. ((INSTANCE) == USART6) || \
  23344. ((INSTANCE) == UART7) || \
  23345. ((INSTANCE) == UART8))
  23346. /****************** UART Instances : Wake-up from Stop mode *******************/
  23347. #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23348. ((INSTANCE) == USART2) || \
  23349. ((INSTANCE) == USART3) || \
  23350. ((INSTANCE) == UART4) || \
  23351. ((INSTANCE) == UART5) || \
  23352. ((INSTANCE) == USART6) || \
  23353. ((INSTANCE) == UART7) || \
  23354. ((INSTANCE) == UART8) || \
  23355. ((INSTANCE) == LPUART1))
  23356. /************************* UART Instances : IRDA mode *************************/
  23357. #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23358. ((INSTANCE) == USART2) || \
  23359. ((INSTANCE) == USART3) || \
  23360. ((INSTANCE) == UART4) || \
  23361. ((INSTANCE) == UART5) || \
  23362. ((INSTANCE) == USART6) || \
  23363. ((INSTANCE) == UART7) || \
  23364. ((INSTANCE) == UART8))
  23365. /********************* USART Instances : Smard card mode **********************/
  23366. #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
  23367. ((INSTANCE) == USART2) || \
  23368. ((INSTANCE) == USART3) || \
  23369. ((INSTANCE) == USART6))
  23370. /****************************** LPUART Instance *******************************/
  23371. #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1)
  23372. /****************************** IWDG Instances ********************************/
  23373. #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG1)
  23374. /****************************** USB Instances ********************************/
  23375. #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB)
  23376. /****************************** WWDG Instances ********************************/
  23377. #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG1)
  23378. /****************************** MDIOS Instances ********************************/
  23379. #define IS_MDIOS_ALL_INSTANCE(INSTANCE) ((INSTANCE) == MDIOS)
  23380. /****************************** CEC Instances *********************************/
  23381. #define IS_CEC_ALL_INSTANCE(__INSTANCE__) ((__INSTANCE__) == CEC)
  23382. /****************************** SAI Instances ********************************/
  23383. #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A) || \
  23384. ((INSTANCE) == SAI1_Block_B) || \
  23385. ((INSTANCE) == SAI2_Block_A) || \
  23386. ((INSTANCE) == SAI2_Block_B) || \
  23387. ((INSTANCE) == SAI3_Block_A) || \
  23388. ((INSTANCE) == SAI3_Block_B) || \
  23389. ((INSTANCE) == SAI4_Block_A) || \
  23390. ((INSTANCE) == SAI4_Block_B))
  23391. /****************************** SPDIFRX Instances ********************************/
  23392. #define IS_SPDIFRX_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPDIFRX)
  23393. /****************************** OPAMP Instances *******************************/
  23394. #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \
  23395. ((INSTANCE) == OPAMP2))
  23396. #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP12_COMMON)
  23397. /******************************************************************************/
  23398. /* For a painless codes migration between the STM32H7xx device product */
  23399. /* lines, or with STM32F7xx devices the aliases defined below are put */
  23400. /* in place to overcome the differences in the interrupt handlers and IRQn */
  23401. /* definitions. No need to update developed interrupt code when moving */
  23402. /* across product lines within the same STM32H7 Family */
  23403. /******************************************************************************/
  23404. /* Aliases for __IRQn */
  23405. #define HASH_RNG_IRQn RNG_IRQn
  23406. #define TIM1_BRK_TIM9_IRQn TIM1_BRK_IRQn
  23407. #define TIM1_UP_TIM10_IRQn TIM1_UP_IRQn
  23408. #define TIM1_TRG_COM_TIM11_IRQn TIM1_TRG_COM_IRQn
  23409. #define PVD_IRQn PVD_AVD_IRQn
  23410. /* Aliases for __IRQHandler */
  23411. #define HASH_RNG_IRQHandler RNG_IRQHandler
  23412. #define TIM1_BRK_TIM9_IRQHandler TIM1_BRK_IRQHandler
  23413. #define TIM1_UP_TIM9_IRQHandler TIM1_UP_IRQHandler
  23414. #define TIM1_TRG_COM_TIM11_IRQHandler TIM1_TRG_COM_IRQHandler
  23415. #define PVD_IRQHandler PVD_AVD_IRQHandler
  23416. /**
  23417. * @}
  23418. */
  23419. /****************************** Product define *********************************/
  23420. #define FLASH_SIZE 0x200000 /* 2MB */
  23421. #define FLASH_BANK_SIZE (FLASH_SIZE >> 1) /* 1MB */
  23422. #define FLASH_SECTOR_SIZE 0x00020000 /* 128 KB */
  23423. /**
  23424. * @}
  23425. */
  23426. /**
  23427. * @}
  23428. */
  23429. #ifdef __cplusplus
  23430. }
  23431. #endif /* __cplusplus */
  23432. #endif /* __STM32H7xx_H */
  23433. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/